;OATH = window.OATH || {};OATH.VideoPlatform = OATH.VideoPlatform || {};OATH.VideoPlatform.PlayerHosting = {"app":"omega","bucket":null,"colo":"ne1","dbColo":"us-east-2","env":"prod","ver":"8.1.170","config":null,"expiry":600,"req":{"ypv":null,"path":"/p/oath/js/1/ad-request.gif","usm":{"bucket":"fb_hosted_demand_control","config":null}},"type":"oath-player-desktop.js","g":[],"gv":2};

!function(t){function e(e){for(var i,r,o=e[0],s=e[1],a=0,u=[];a<o.length;a++)r=o[a],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&u.push(n[r][0]),n[r]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t[i]=s[i]);for(c&&c(e);u.length;)u.shift()()}var i={},n={0:0};function r(t){return s.p+""+({1:"vendors~three"}[t]||t)+".chunk."+{1:"760c8dbdd70b10b46621"}[t]+".js"}if("function"==typeof r){var o=r;r=function(){try{if("function"!=typeof replaceOathPlayerSrc)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' is not a function or not available at runtime. See https://github.com/agoldis/webpack-require-from#troubleshooting");var t=replaceOathPlayerSrc(o.apply(this,arguments));if(!t||"string"!=typeof t)throw new Error("WebpackRequireFrom: 'replaceOathPlayerSrc' does not return string. See https://github.com/agoldis/webpack-require-from#troubleshooting");return t}catch(t){return o.apply(this,arguments)}}}function s(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.e=function(t){var e=[],i=n[t];if(0!==i)if(i)e.push(i[2]);else{var o=new Promise(function(e,r){i=n[t]=[e,r]});e.push(i[2]=o);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=r(t);var l=new Error;a=function(e){u.onerror=u.onload=null,clearTimeout(c);var i=n[t];if(0!==i){if(i){var r=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,i[1](l)}n[t]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:u})},12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(e)},s.m=t,s.c=i,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(i,n,function(e){return t[e]}.bind(null,n));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s.oe=function(t){throw t};var a=window.loadOathPlayerChunk=window.loadOathPlayerChunk||[],u=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var c=u;s(s.s=0)}({"++Nx":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("8PPl"),o=i("M3h3"),s=i("N08P"),a=i("WSjl"),u=i("kdA9"),l=i("R+G7"),c=i("fLR+"),d=i("+Ojf"),h=i("gp5d"),p=i("EUld"),f=i("v/u1"),_=i("M1T5"),m=function(){function t(e,i,n){this.consent={gdprApplies:null,consentData:null},this._version="0.2.137",this._jshlsVersion="1.1.237",this._waitingForUserTap=!1,this._drmSystem="none",this._isDrmAvailable=!1,this._uiState=new _.default,this._uiState.width=e&&e.width||this._uiState.width,this._uiState.height=e&&e.height||this._uiState.height,this._uiState.videoWidth=this._uiState.width,this._uiState.videoHeight=this._uiState.height,this._playbackConfig={desiredBitrate:t.DESIRED_BITRATE,mp4Abr:!1,bitrate:0,bitrates:[],heights:[],startTime:NaN,preconnect:!0,skipFormats:[],isResumingFromSavedPosition:!1,requestType:null,requestAction:null,playlistLoop:!1},this._guid=n,this._errors=[],this._config=e,this._playerConfig=this._configure(e),this._overrideAutoplay(),this._determineWaitingForUserTap(),this._overrideStartScreen(),this._prepareMediaStore(i),this._preparePlayerHostingConfig(),this._getConsentData(),this.playlist=new f.default(this._mediaStore),this.playlist.addItems(this._playerConfig.mediaItems),this.ccUserPreferences={show:!1,lang:"en-US",fontSize:24,fontName:"Arial, Helvetica, sans-serif",fontColor:"#ffffff",fontOpacity:1,fontEffect:"none",bgColor:"#000000",bgOpacity:.75,ccPos:"bottom",isAvailable:!1},this.rendered=!1}return t.prototype.destroy=function(){this.playlist.destroy(),this.rendererTypes=[],this.adsRendererTypes=[]},Object.defineProperty(t.prototype,"config",{get:function(){return this._playerConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this._playerConfig.site||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this._playerConfig.region||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this._playerConfig.lang||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"recoveryFailureTimeout",{get:function(){return t.RECOVERY_FAILURE_TIMEOUT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ccOnMute",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.ccOnMute;return t&&void 0!==t.ccOnMute?t.ccOnMute:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chromeless",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.chromeless;return t&&void 0!==t.chromeless?t.chromeless:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"docking",{get:function(){var t=this._playerConfig.ui;return t?t.docking:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logos",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.logos;return t?t.logos:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showControls",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.showControls;return t&&void 0!==t.showControls?t.showControls:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startScreenConfig",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.startScreen;return t?t.startScreen:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitleOnStart",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.title.showOnStart;return t&&t.title?t.title.showOnStart:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitleOnHover",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.title.showOnHover;return t&&t.title&&void 0!==t.title.showOnHover?t.title.showOnHover:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showStartScreen",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.startScreen.show;return t&&t.startScreen&&void 0!==t.startScreen.show?t.startScreen.show:e},set:function(t){var e=this._playerConfig.ui;e&&e.startScreen&&(e.startScreen.show=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFullscreenButton",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.showFullscreenButton;return t&&void 0!==t.showFullscreenButton?t.showFullscreenButton:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){var t=this._playerConfig.ui,e=h.defaultConfigs.ui.endScreen.show;return!t||!t.endScreen&&void 0===t.endScreen.show?e:t.endScreen.show},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopAtLastFrame",{get:function(){var t=this._playerConfig.stopAtLastFrame;return void 0===t?h.defaultConfigs.stopAtLastFrame:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"thumbnailDimensions",{get:function(){return{width:this.uiState.videoWidth,height:this.uiState.videoHeight}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vttIndex",{get:function(){return-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playlistUIConfig",{get:function(){var t=h.defaultConfigs.ui.playlist,e=this._playerConfig.ui;return e?e.playlist:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){var t=this._playerConfig.continuousPlay;return void 0===t?h.defaultConfigs.continuousPlay:t},set:function(t){this._playerConfig.continuousPlay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"adPlaybackOnly",{get:function(){var t=this._playerConfig.adPlaybackOnly;return void 0===t?h.defaultConfigs.adPlaybackOnly:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoplay",{get:function(){var t=this._playerConfig.autoplay;return void 0===t?h.defaultConfigs.autoplay:t},set:function(t){this._playerConfig.autoplay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stopBufferingOnPause",{get:function(){var t=this._playerConfig.stopBufferingOnPause;return void 0===t?h.defaultConfigs.stopBufferingOnPause:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preload",{get:function(){var t=this._playerConfig.preload;return void 0===t?h.defaultConfigs.preload:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){var t=this._playerConfig.fullscreen;return void 0===t?h.defaultConfigs.fullscreen:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipWatchedVideos",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this._playbackConfig.bitrate},set:function(t){this._playbackConfig.bitrate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitrates",{get:function(){return this._playbackConfig.bitrates},set:function(t){this._playbackConfig.bitrates=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"heights",{get:function(){return this._playbackConfig.heights},set:function(t){this._playbackConfig.heights=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mp4Abr",{get:function(){return this._playbackConfig.mp4Abr},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startTime",{get:function(){return this._playbackConfig.startTime},set:function(t){this._playbackConfig.startTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preconnect",{get:function(){return this._playbackConfig.preconnect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isResumingFromSavedPosition",{set:function(t){this._playbackConfig.isResumingFromSavedPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestType",{get:function(){return this._playbackConfig.requestType},set:function(t){this._playbackConfig.requestType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requestAction",{get:function(){return this._playbackConfig.requestAction},set:function(t){this._playbackConfig.requestAction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playlistLoop",{get:function(){return this._playbackConfig.playlistLoop},set:function(t){this._playbackConfig.playlistLoop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredBitrate",{get:function(){return this._playbackConfig.desiredBitrate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uiState",{get:function(){return this._uiState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playbackState",{get:function(){return this._playbackState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitingForUserTap",{get:function(){return this._waitingForUserTap},set:function(t){this._waitingForUserTap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preloadBufferSize",{get:function(){var t=this._playerConfig.preloadBufferSize;return void 0===t?h.defaultConfigs.preloadBufferSize:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userPreferences",{get:function(){return{closedCaptions:{show:!1,lang:"en-US",fontSize:24,fontName:"Arial, Helvetica, sans-serif",fontColor:"#ffffff",fontOpacity:1,fontEffect:"none",bgColor:"#000000",bgOpacity:.75,ccPos:"bottom",isAvailable:!1},isAdult:null,isAuthenticated:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipOnError",{get:function(){return this._playerConfig.skipOnError||h.SkipOnError.NEVER},set:function(t){this._playerConfig.skipOnError=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"liveUnloadOnPause",{get:function(){return this._playerConfig.liveUnloadOnPause||!0},set:function(t){this._playerConfig.liveUnloadOnPause=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDrmAvailable",{set:function(t){this._isDrmAvailable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"drmSystem",{set:function(t){t&&(this._drmSystem=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"muteMode",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"jshlsVersion",{get:function(){return this._jshlsVersion},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"casting",{get:function(){return void 0===this._playerConfig.casting||this._playerConfig.casting},enumerable:!0,configurable:!0}),t.prototype.setShowStartScreen=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},Object.defineProperty(t.prototype,"guid",{get:function(){return this._guid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputConfig",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},set:function(t){this._errors=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstCriticalError",{get:function(){for(var t=0,e=this.errors;t<e.length;t++){var i=e[t];if(i.category||i.subcategory)return i}return null},enumerable:!0,configurable:!0}),t.prototype.setPlaybackState=function(t){if(this._playbackState)throw new Error("playbackState is already set");this._playbackState=t,this._overrideVolume(),this._overrideMute()},t.prototype.isPlaylistStructured=function(){return!1},t.prototype.isLocal=function(){return this._version.indexOf("local")>-1},t.prototype.isMobileStrmInlineExpr=function(){return(n.userAgent.ios||n.userAgent.android)&&l.default.canPlayInline},t.prototype.isAutoplayAllowed=function(){var t=!0!==l.default.network.mobile;return!n.userAgent.mobile||l.default.autoplaySupported&&t},t.prototype.isMobileWebAutoplayCase=function(){return n.userAgent.mobile&&(this.autoplay||this.isMobileStrmInlineExpr())},t.prototype.endVideo=function(){this._playbackConfig.bitrate=0},Object.defineProperty(t.prototype,"loop",{get:function(){var t=this._playerConfig.loop;return void 0===t&&(t=h.defaultConfigs.loop),this.getPlaylistRenderingType()===r.PlaylistRenderingType.ONLY_MEDIA_ITEMS?t:!(!this.playlist.isEndOfPlaylist()&&t)&&t},set:function(t){c.isBoolean(t)&&(this._playerConfig.loop=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mute",{get:function(){return this._playbackState&&this._playbackState.mute},set:function(t){this._playbackState&&c.isBoolean(t)&&(this._playbackState.mute=t)},enumerable:!0,configurable:!0}),t.prototype.getState=function(){return this.playbackState.state},t.prototype.setState=function(t){this._playbackState&&(Object.keys(a.States).indexOf(t.toUpperCase())>-1&&(this.playbackState.state=t))},Object.defineProperty(t.prototype,"volume",{get:function(){return this._playbackState&&this._playbackState.volume},set:function(t){this._playbackState&&c.isNumber(t)&&t>=0&&t<=1&&(this._playbackState.volume=t)},enumerable:!0,configurable:!0}),t.prototype.isPaused=function(){return this.playbackState&&this.playbackState.paused},t.prototype.setPaused=function(t){this.playbackState&&c.isBoolean(t)&&(this.playbackState.paused=t)},t.prototype.isSeeking=function(){return this.playbackState&&this.playbackState.seeking},t.prototype.setSeeking=function(t){this.playbackState&&c.isBoolean(t)&&(this.playbackState.seeking=t)},t.prototype.isLoading=function(){return this.playbackState&&this.playbackState.loading},t.prototype.setLoading=function(t){this.playbackState&&c.isBoolean(t)&&(this.playbackState.loading=t)},t.prototype.getPlaylistRenderingType=function(){var t=this.playlist&&this.playlist.playlistId,e=this._config&&this._config.playlist,i=e&&e.mediaItems||[];return t?0===i.length?r.PlaylistRenderingType.PLAYLIST_ID:r.PlaylistRenderingType.PLAYLIST_ID_AND_MEDIA_ITEMS:r.PlaylistRenderingType.ONLY_MEDIA_ITEMS},Object.defineProperty(t.prototype,"mediaStore",{get:function(){return this._mediaStore},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seekControls",{get:function(){return this._playerConfig.ui&&this._playerConfig.ui.seekControls||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backgroundPause",{get:function(){return this._playerConfig.backgroundPause?this._playerConfig.backgroundPause:h.defaultConfigs.backgroundPause},enumerable:!0,configurable:!0}),t.prototype.getEventsDto=function(){var t={rendererType:this.playbackState&&this.playbackState.rendererType,playerVersion:this._version,autoPlay:this.autoplay,mute:this.mute,paused:this.isPaused(),docking:this.docking,requestType:this.requestType,requestAction:this.requestAction,playerRootElement:this.playerRootElement,uiState:{width:this.uiState.width,height:this.uiState.height,isFullScreen:this.uiState.isFullscreen,isDocked:this.uiState.isDocked},showEndScreen:this.showEndScreen,drmsys:this._drmSystem,drm:this._isDrmAvailable,playbackMode:this.playbackState&&this.playbackState.playbackMode,currentMediaType:this.playbackState&&this.playbackState.currentMediaType,currentTs:Date.now()},e=this.playlist.getCurrentItem();return e?d.default.extend(t,{videoId:e.id,sessionId:e.videoSession,videoLength:e.duration,isLive:e.isLive(),isCCAvailable:e.isCCAvailable,cdn:e.getCDN(),samplingId:e.samplingId,audioLanguage:e.getCurrentAudioLanguage(),mediaItemRendererType:e.rendererType,customConfig:e.customConfig,brandingData:e.brandingData,streamProtocol:e.getStreamProtocol(),license:e.license,title:e.title,contentType:e.getStreamType(),description:e.description,aspectRatio:e.getAspectRatio()}):t},t.prototype._configure=function(t){var e=d.default.deepCopy(t);return e=d.default.mergeObjects(e,h.defaultConfigs),e=this._finalizeConfiguration(e)},t.prototype._finalizeConfiguration=function(t){if(!t)return t;var e=t.ui;e&&e.chromeless&&(e.startScreen&&(e.startScreen.show=!1),e.endScreen&&(e.endScreen.show=!1),e.showControls=!1);var i=t.connectionType;return i&&i.raw&&"boolean"==typeof i.mobile&&l.default.updateNetwork(i.mobile,i.raw),t},t.prototype._overrideAutoplay=function(){!u.default.get("vp-dont-autoplay")&&this.isAutoplayAllowed()||(this.autoplay=!1)},t.prototype._overrideMute=function(){if(this.muteMode)this.mute=!0;else if(n.userAgent.desktop&&this.autoplay){var t=l.default.needsGestureToPlayUnmuted&&(n.userAgent.firefox>=66||n.userAgent.chrome>=66||n.userAgent.edge>=17);(n.userAgent.safari>=11||t)&&(this.mute=!0)}},t.prototype._overrideVolume=function(){if(n.userAgent.mobile&&l.default.autoplaySupported)return this.volume=1,void(this.mute=!0);var t=h.defaultConfigs.volume,e=h.defaultConfigs.mute,i=u.default.get(r.LocalStorageKey.VOLUME);i&&(t=i.volume,e=i.mute);var o=this._config.volume;c.isNumber(o)&&o>=0&&o<=1&&(t=o),c.isBoolean(this._config.mute)&&(e=this._playerConfig.mute),this.volume=t,this.mute=e},t.prototype._overrideStartScreen=function(){(!this.autoplay||this.playbackState&&this.waitingForUserTap)&&!this.chromeless&&(this.showStartScreen=!0)},t.prototype._prepareRenderers=function(){this.rendererTypes=s.default.getRendererTypes(),this.adsRendererTypes=s.default.getAdRendererTypes();var t=this.rendererTypes.slice(0);this.adsRendererTypes.forEach(function(e){-1!==t.indexOf(e)&&t.push(e)}),this.capabilities=this._getCapabilities(t)},t.prototype._getCapabilities=function(t){var e=this,i={};return t?(t.forEach(function(t){var n=o.default.get(t);n&&(i[t]=n,e._playbackConfig.skipFormats.length>0&&(i[t].preferredFormats=i[t].preferredFormats.filter(function(t){return-1===e._playbackConfig.skipFormats.indexOf(t)})))}),i):i},t.prototype._prepareMediaStore=function(t){this._prepareRenderers(),this._mediaStore=t||new p.default(this.rendererTypes,this.adsRendererTypes,this.capabilities)},t.prototype._preparePlayerHostingConfig=function(){var t={},e=d.default.getSingleton("PlayerHosting");e&&e.ver&&e.ver===this.version&&(t.bucket=e.bucket,t.env=e.env,t.colo=e.colo,t.config=e.config&&"object"==typeof e.config?e.config:null,t.log=e.req&&e.req.usm&&e.req.usm.config&&e.req.usm.config.log||""),this.playerHostingConfig=t},t.prototype._determineWaitingForUserTap=function(){l.default.canPlayInline&&l.default.autoplayByUIEvtOnly&&this.autoplay&&(this.waitingForUserTap=!0)},t.prototype._getConsentData=function(){var t=this;void 0!==window.__cmp&&window.__cmp("getConsentData",null,function(e){t.consent.gdprApplies=e.gdprApplies,t.consent.consentData=e.consentData})},t.DESIRED_BITRATE=900,t.RECOVERY_FAILURE_TIMEOUT=120,t}();e.default=m},"+NrX":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("ToqN"),a=i("A4+F"),u=i("O/dN"),l=i("oIMU"),c=i("tgpW"),d=i("2IYR"),h=i("R+G7"),p=i("+Ojf"),f=i("ECHB"),_=i("mczr");h.default.hasTouchRestrictions&&(o=c.default.getPool());var m=function(t){function e(i,n){var r=t.call(this,"html-renderer")||this;return r.type=e.type,r._triggerSubtitleTracks=!1,r._eventBus=i,r._model=n,r}return r(e,t),e.canUse=function(){return!0},e.prototype.create=function(t){var e=this;return this.node=t instanceof HTMLVideoElement?t:o?o.get():p.default.createVideoNode(),this.node||(this.node=p.default.createVideoNode()),this.node.setAttribute("id",p.default.generateGuid()),p.default.classList(this.node).add("vp-html5-video"),this._bindEvents(),this._overridePlayMethod(this.node),s.userAgent.mobile&&h.default.autoplayByUIEvtOnly&&this._model.autoplay&&d.default&&(this._unbindTapToPlayRestriction=d.default.setupTouchToPlayRestrictionRemoval(this.node,function(){e._unbindTapToPlayRestriction=null,e._eventBus.publish(l.TOUCH_TO_PLAY_RESTRICTION_REMOVED)})),this._active=!1,this.node},e.prototype.destroy=function(){this._unbindEvents(),this.node&&(o&&o.discard(this.node),this.node.pause(),this.node.src="",this.node.load(),this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.node),this._unbindTapToPlayRestriction&&(this._unbindTapToPlayRestriction(),this._unbindTapToPlayRestriction=null)},e.prototype.enterFullScreen=function(){if(this.node){var t=this.node.requestFullscreen||this.node.webkitRequestFullscreen||this.node.webkitEnterFullscreen;t&&t.call(this.node)}},e.prototype.exitFullScreen=function(){if(this.node){var t=document.exitFullscreen||document.webkitExitFullscreen;t?t.call(document):this.node.webkitExitFullscreen&&this.node.webkitExitFullscreen()}},e.prototype.detachNode=function(){this._unbindEvents(),this.node&&this.node.pause&&this.node.pause()},e.prototype.getCurrentDate=function(){return null},e.prototype.getCurrentTime=function(){return this.node?this.node.currentTime:0},e.prototype.getDuration=function(){return this.node?this.node.duration:0},e.prototype.getMuted=function(){return!!this.node&&this.node.muted},e.prototype.getVolume=function(){return this.node?this.node.volume:NaN},e.prototype.isAirplaying=function(){return!(!this.node||!this.node.webkitCurrentPlaybackTargetIsWireless)},e.prototype.reattachNode=function(){this._bindEvents()},e.prototype.seek=function(t){var e=this;if(this.node)try{this.node.currentTime=t}catch(n){if("InvalidStateError"===n.name)var i=this.on(_.RendererEvent.LOADEDMETADATA,function(){e.node&&(e.node.currentTime=t,e.removeEventListener(_.RendererEvent.LOADEDMETADATA,i))},this)}},e.prototype.setActive=function(t){this._active=t},e.prototype.setMute=function(t){this.node&&"boolean"==typeof t&&(s.userAgent.mobile&&h.default.autoplaySupported&&d.default?d.default.setMuteSafe(this.node,t):this.node.muted=t)},e.prototype.setVolume=function(t){this.node&&this.node.volume!==t&&(this.node.volume=t)},e.prototype.showAirplayTargetMenu=function(){this.node&&"function"==typeof this.node.webkitShowPlaybackTargetPicker&&this.node.webkitShowPlaybackTargetPicker()},e.prototype.waitForReady=function(t){t()},e.prototype.reportError=function(t,e,i,n,r,o){var s=p.default.createErr(e,this._model.playbackState,i,n,r,o);this._eventBus.publish(t,s)},e.prototype.enableMobileNativeCC=function(t){if(this.node){var e=document.createDocumentFragment();this._deleteTracks(),t.langList.forEach(function(i){var n=document.createElement("track");n.setAttribute("label","English"),n.setAttribute("srclang",i.lang),n.setAttribute("kind","subtitles"),n.setAttribute("type","text/vtt"),i.lang===t.selectedLang&&n.setAttribute("default","true"),n.src=i.url,n.track&&(n.track.mode="hidden"),e.appendChild(n)}),this.node.appendChild(e)}},e.prototype._bindEvents=function(){var t=this;if(this.node){this._onVideoEvent=function(e){if(!t.ended){var i=e.type,n=_.RendererEvent[i.toUpperCase()];i===_.NativeVideoEvent.PLAYING&&t.node.paused||(i===_.NativeVideoEvent.VOLUMECHANGE&&t.publish(_.RendererEvent.VOLUMECHANGE,{volume:t.node.volume,mute:t.node.muted}),t._handleVideoEvent(i,n))}}.bind(this),Object.keys(_.NativeVideoEvent).forEach(function(e){t.node.addEventListener(_.NativeVideoEvent[e],t._onVideoEvent)}),s.userAgent.iphone&&!h.default.canPlayInline||(this._videoTap=new f.default(this.node,function(){t.publish(_.CustomRendererEvent.CLICK)})),s.userAgent.safari>=8&&this._setupTrackListener(),s.userAgent.ios&&this._setupFullscreenEndListener(),h.default.airplaySupported&&this._model.casting&&this._setupAirplayAvailabilityListener(),this._eventKeys={},this._eventKeys[l.FULLSCREEN_CHANGE]=this._eventBus.addEventListener(l.FULLSCREEN_CHANGE,function(){t.node&&t._eventBus.publish(l.PLAYER_RESIZE,t.node.clientWidth,t.node.clientHeight)},this)}},e.prototype._startPlay=function(){var t=this;if(this.node){var e=this.node.play();return e&&"function"==typeof e.catch&&e.catch(function(e){t.node.paused}),e}},e.prototype._deleteTracks=function(){if(this.node)for(var t=this.node.querySelectorAll("track"),e=0;e<t.length;e++)this.node.removeChild(t[e])},e.prototype._getCodeForNodeError=function(t){if(!(t&&t instanceof MediaError))return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR;switch(t.code){case MediaError.MEDIA_ERR_ABORTED:return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_ABORTED;case MediaError.MEDIA_ERR_NETWORK:return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_NETWORK;case MediaError.MEDIA_ERR_DECODE:return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_DECODE;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_SRC_NOT_SUPPORTED;default:return u.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR}},e.prototype._setupAirplayAvailabilityListener=function(){var t=this;if(h.default.airplaySupported&&this.node){var e=function(e){t._eventBus.publish(a.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,"available"===e.availability)},i=function(){t._eventBus.publish(a.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,{connected:t.isAirplaying(),isInitialEvt:!t._initialAirplayStateEvtFired}),t._initialAirplayStateEvtFired||(t._initialAirplayStateEvtFired=!0)};this.node.addEventListener("webkitplaybacktargetavailabilitychanged",e),this.node.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",i),this._removeAirplayAvailabilityListener=function(){t.node&&(t.node.removeEventListener("webkitplaybacktargetavailabilitychanged",e),t.node.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",i))}}},e.prototype._setupTrackListener=function(){var t=this;if(this.node&&this.node.textTracks){var e=function(e){var i=e.track;i&&("metadata"===i.kind?(i.mode="hidden",i.addEventListener("cuechange",function(e){var i=e.target,n=i&&i.activeCues[0],r=n&&n.value&&n.value.data,o=n&&n.value&&n.value.info;if(o)r=o;else if("string"==typeof r)try{r=JSON.parse(r)}catch(t){}else r=r instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint8Array(r)):{};t._eventBus.publish(l.TIMED_METADATA_RECEIVED,r)})):"subtitles"===i.kind&&t._triggerSubtitleTracks&&t._eventBus.publish(l.SUBTITLE_TRACK_RECEIVED,{itemId:t._currentPlayableItem.id,track:i}))},i=function(t){for(var e=0,i=t&&t.srcElement;e<i.length;e++){var n=i[e];"metadata"===n.kind&&"disabled"===n.mode&&(n.mode="hidden")}};this.node.textTracks.addEventListener("addtrack",e),this.node.textTracks.addEventListener("change",i),this._removeTrackListener=function(){t.node&&t.node.textTracks&&(t.node.textTracks.removeEventListener("addtrack",e),t.node.textTracks.removeEventListener("change",i))}}},e.prototype._setupFullscreenEndListener=function(){var t=this;if(this.node){var e=function(){t.publish(_.CustomRendererEvent.END_FULLSCREEN)};this.node.addEventListener("webkitendfullscreen",e),this._removeFullscreenEndListener=function(){t._removeFullscreenEndListener=null,t.node.removeEventListener("webkitendfullscreen",e)}}},e.prototype._unbindEvents=function(){var t=this;this._removeTrackListener&&this._removeTrackListener(),this._removeFullscreenEndListener&&this._removeFullscreenEndListener(),this._removeAirplayAvailabilityListener&&this._removeAirplayAvailabilityListener(),Object.keys(_.NativeVideoEvent).forEach(function(e){t.node&&t.node.removeEventListener(_.NativeVideoEvent[e],t._onVideoEvent)}),this._videoTap&&(this._videoTap.destroy(),this._videoTap=null),this._eventBus.removeEventListeners(this._eventKeys)},e.prototype._overridePlayMethod=function(t){var e=this;t.__play||(t.__play=t.play.bind(t),t.play=function(){var i=t.__play();return i&&"function"==typeof i.catch&&i.catch(function(i){t.paused&&e.publish(_.CustomRendererEvent.PLAYBACK_START_BLOCKED)}),i})},e.type=_.RendererType.HTML5_RAW,e}(_.Renderer);e.default=m},"+O1b":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("s4NR"),r=i("ToqN"),o=i("t8Yn"),s=i("4g0/"),a=i("he5r"),u=i("XevZ"),l=function(){function e(t){this._model=t}return e.prototype.resolve=function(e,i){var n=this;if(this._model.playlistId||this._model.relatedVideoId){var r=2,o=this._getPlaylistUrl(e),s=function(t){n._parseResponse(t,function(t,e){t||!e?(t=t||"",i({code:u.getErrorCode(),message:t})):i(null,e)})},a=function(t,e,l){r>0?(r--,n._makeSapiRequest(o,s,a)):i({code:u.getErrorCode(t,e,l),message:t.message})};this._makeSapiRequest(o,s,a)}else t(function(){i({message:"No playlist and video id"})})},e.prototype._makeSapiRequest=function(t,e,i){s.Loader.ajax(t,{context:this,successHandler:e,failureHandler:i})},e.prototype._parseResponse=function(t,e){try{var i=JSON.parse(t),n=i&&i.channel&&i.channel.result&&i.channel.result[0]&&i.channel.result[0].videos;if(!n)return void e("No playlist items");e(null,n.map(function(t){var e=t.id;return{mimetype:o.MediaItemInterfaces.MediaItemMimeType.SAPI,id:e}}))}catch(t){e(t.message)}},e.prototype._getPlaylistUrl=function(t){var e=this._model,i=e.config||{},o=i.rapidConfig&&i.rapidConfig.pageParams||{},s={video_uuid:e.relatedVideoId||"",channel_id:e.playlistId||"",channel_alias:"",count:t.count||a.PLAYLIST_COUNT_PER_PAGE,start:t.start||0,dev_type:r.userAgent.mobile?"smartphone":"desktop",offnetwork:e.offNetwork,site:i.site||"",region:i.region||"",lang:i.lang||"",expn:i.expName||"",expb:i.expBucket||"",vp:0,image_sizes:a.PLAYLIST_THUMB_DIMENSION,ssl:!0,"context.json":"",pblob:""};return o&&(s["context.json"]=JSON.stringify({pt:o.pt||"",pct:o.pct||"",pstcat:o.pstcat||"",p_sec:o.p_sec||"",p_subsec:o.p_subsec||"",pstaid_p:o.pstaid_p||"",ticker:o.ticker||"",sport:o.sport||""})),e.pblob&&(s.pblob=JSON.stringify(e.pblob)),"//video-api.yql.yahoo.com/v1/video/alias/channels/wf-channel=related-videos?"+n.stringify(s)},e}();e.default=l}).call(this,i("URgk").setImmediate)},"+Ojf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("8PPl"),o=i("O/dN"),s=i("u8By"),a=i("yegX"),u=i("mczr"),l=i("fLR+"),c=function(){function t(){}return t.getWindow=function(){return window},t.getCssBuildUrl=function(e,i,n){var r="vdms-video-player.css",o=t.getWindow(),s="https:"===o.location.protocol?t.assetDomainHttps:t.assetDomainHttp;return n&&"fuji"!==n&&(r="vdms-video-player-"+n+".css"),e?"//"+o.location.host+"/"+r:"prod"===i?s+"/prod/"+r:s+"/builds/"+i+"/"+r},t.loadCssAsset=function(t,e,i,n){if(!document.getElementById(t)){var r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("id",t),r.setAttribute("href",e),r.addEventListener("load",i),r.addEventListener("error",n),document.head.appendChild(r)}},t.generateGuid=function(e){return e?(0|16*Math.random()).toString(16):(""+1e7+-1e3+-4e3+-8e3+-1e11).replace(/1|0/g,t.generateGuid)},t.isValidRequestAction=function(t){return[null,r.REQUEST_TYPES.CLICK,r.REQUEST_TYPES.AUTOPLAY,r.REQUEST_TYPES.HOVER,r.REQUEST_TYPES.PLAY,r.REQUEST_TYPES.PAUSE,r.REQUEST_TYPES.SCROLL,r.REQUEST_TYPES.SWIPE,r.REQUEST_TYPES.BACKGROUND].indexOf(t)>-1},t.isValidRequestType=function(t){return[null,r.REQUEST_TYPES.CLICK,r.REQUEST_TYPES.AUTOPLAY,r.REQUEST_TYPES.API,r.REQUEST_TYPES.CONTINUOUS].indexOf(t)>-1},t.sanitizeAndUnescape=function(t){if(l.isNullOrUndefined(t))return"";var e=t.toString().replace(/<\/?[^>]+>/g,""),i=document.createElement("div");return i.innerHTML=e,i.textContent},t.getHostname=function(t){var e=document.createElement("a");return e.href=t,e.hostname},t.getFormat=function(t){var e=null;return t=t.toLowerCase(),["mpd","mp4","m3u8","webm","flv","f4m","mp4b","m3u8_playlist","m3u8_master","m3u8:fmp4"].forEach(function(i){-1!==t.indexOf(i)&&(e=i)}),e},t.extend=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return l.isObject(t)||(t={}),e.forEach(function(e){if(e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),t},t.mergeStringEnums=function(t,e){return Object.assign({},t,e)},t.formatTime=function(t){var e=Math.floor(t/3600),i=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*i),r=n<10?"0"+n:n.toString(),o="";if(e>0){var s=i<10?"0"+i:i.toString();o=e.toString()+":"+s+":"+r}else l.isNumber(i)&&(o=i.toString()+":"+r);return o},t.findClosest=function(t,e,i){for(var n=i||document,r=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;t&&t!==n;t=t.parentNode)if(r.call(t,e))return t;return null},t.getOffsetLeftFromEl=function(t,e){for(var i=0;t;)isNaN(t.offsetLeft)||(i+=t.offsetLeft),t=t.offsetParent,e&&this.classList(t).contains(e)&&(t=null);return i},t.getOffsetLeftFromDocument=function(t){var e=document.body,i=document.documentElement,n=0,r=window.pageXOffset||i.scrollLeft||e.scrollLeft,o=i.clientLeft||e.clientLeft||0;try{var s=t.getBoundingClientRect();n=s?s.left:0}catch(t){}return Math.round(n+r-o)},t.getScriptUrl=function(e,i,n){var r,o=t.scriptType;t.scriptType||(o="min");var s="-"+o+".js";e?r="/"+n+s:r=("https:"===document.location.protocol?t.assetDomainHttps:t.assetDomainHttp)+"/rx/builds/"+i+"/"+n+s;return r},t.createErr=function(t,e,i,r,s,a,u){return new o.default(t,i,r,{playbackState:e,msg:s,debugMsg:a,prefetch:u},n.userAgent)},t.insertCssIntoHead=function(t){var e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.appendChild(document.createTextNode(t)),e.appendChild(i)},t.classList=function(t){if(t&&t.classList)return t.classList;function e(e){return function(i){var n=t&&l.isString(t.className)?t.className.split(/\s+/):[],r=n.indexOf(i),o=e(n,r,i);return t&&l.isString(t.className)&&(t.className=n.join(" ")),o}}return{add:e(function(t,e,i){~e||t.push(i)}),remove:e(function(t,e){~e&&t.splice(e,1)}),toggle:e(function(t,e,i){~e?t.splice(e,1):t.push(i)}),contains:e(function(t,e){return!!~e})}},t.render=function(t,e,i){var n=document.createElement("div");return n.innerHTML=t.render(e,i),n.children[0]},t.getFullscreenElement=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},t.fixProtocol=function(t){return n.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t.setSingleton=function(t,e){window.VDMS=window.VDMS||{},window.VDMS.VideoPlayer=window.VDMS.VideoPlayer||{},window.VDMS.VideoPlayer[t]=e},t.getSingleton=function(t){return window.VDMS&&window.VDMS.VideoPlayer&&window.VDMS.VideoPlayer[t]?window.VDMS.VideoPlayer[t]:null},t.getAssetUrl=function(e,i,n){var r="https:"===t.getWindow().location.protocol?t.assetDomainHttps:t.assetDomainHttp;return e?"/"+n:"player.swf"===n||"simpleplayer.swf"===n?t.getPlayerSwfUrl(i,n):r+"/rx/builds/"+i+"/assets/"+n},t.getPlayerSwfUrl=function(e,i){var r,o=t.getWindow(),s=o.location.protocol,a=("https:"===s?t.assetDomainHttps:t.assetDomainHttp)+"/rx/builds/"+e+"/assets/"+i,u=o.location.hostname;return n.userAgent.chrome&&(o.parent!==o&&(r=t.parseDomain(o.document.referrer))&&(u=r),!{"www.yahoo.com":!0,"news.yahoo.com":!0,"sports.yahoo.com":!0,"finance.yahoo.com":!0,"answers.yahoo.com":!0,"www.tumblr.com":!0,"beta.finance.yahoo.com":!0,"au.yahoo.com":!0,"be.yahoo.com":!0,"fr-be.yahoo.com":!0,"br.yahoo.com":!0,"ca.yahoo.com":!0,"de.yahoo.com":!0,"espanol.yahoo.com":!0,"es.yahoo.com":!0,"fr.yahoo.com":!0,"gr.yahoo.com":!0,"hk.yahoo.com":!0,"id.yahoo.com":!0,"ie.yahoo.com":!0,"in.yahoo.com":!0,"it.yahoo.com":!0,"my.yahoo.com":!0,"nz.yahoo.com":!0,"ro.yahoo.com":!0,"se.yahoo.com":!0,"sg.yahoo.com":!0,"tw.yahoo.com":!0,"uk.yahoo.com":!0,"us.yahoo.com":!0,"ve.yahoo.com":!0,"vn.yahoo.com":!0,"maktoob.yahoo.com":!0,"en-maktoob.yahoo.com":!0,"za.yahoo.com":!0,"qc.yahoo.com":!0,"att.yahoo.com":!0,"espanol.att.yahoo.com":!0,"frontier.yahoo.com":!0,"verizon.yahoo.com":!0,"ca.rogers.yahoo.com":!0,"fr-ca.rogers.yahoo.com":!0,"tatadocomo.yahoo.com":!0,"tikona.yahoo.com":!0,"ideanetsetter.yahoo.com":!0,"mtsindia.yahoo.com":!0,"smartfren.yahoo.com":!0,"tournament.fantasysports.yahoo.com":!0,"baseball.fantasysports.yahoo.com":!0,"football.fantasysports.yahoo.com":!0,"hockey.fantasysports.yahoo.com":!0,"basketball.fantasysports.yahoo.com":!0,"uk.news.yahoo.com":!0,"uk.sports.yahoo.com":!0,"fr.news.yahoo.com":!0,"fr.sports.yahoo.com":!0,"de.nachrichten.yahoo.com":!0,"de.sports.yahoo.com":!0,"it.notizie.yahoo.com":!0,"uk.style.yahoo.com":!0,"de.style.yahoo.com":!0,"fr.style.yahoo.com":!0,"es.vida-estilo.yahoo.com":!0,"it.style.yahoo.com":!0,"uk.movies.yahoo.com":!0,"de.kino.yahoo.com":!0,"m6info.yahoo.com":!0,"es.noticias.yahoo.com":!0}[u]?/.*mg\d*\.mail\.yahoo\.com$/.test(u)&&(a=s+"//"+u+"/lyimg/videoinmail/"+e+"/assets/"+i):a=s+"//"+u+"/sy/rx/builds/"+e+"/assets/"+i),a},t.parseDomain=function(t){var e=/^https?:\/\/([A-Za-z0-9\.\-]*)(?:$|\/|:)/.exec(t);return e?e[1]:null},t.getElementViewability=function(t){try{var e=t.getBoundingClientRect();if(!e||0===e.height||0===e.width)return 0;var i=void 0,n=window.innerHeight;return i=e.top>=0?e.bottom>n?n-e.top>0?n-e.top:0:e.height:e.bottom>n?n:e.bottom<0?0:e.bottom,Math.round(i/e.height*100)}catch(t){return 0}},t.hasUnwatchedClips=function(t){return!1},t.isIFrame=function(){var e=t.getWindow();try{return e.top!==e.self}catch(t){return!0}},t.isPlayerInBackground=function(){return this.hidden||(void 0!==document.hidden?this.hidden="hidden":void 0!==document.mozHidden?this.hidden="mozHidden":void 0!==document.msHidden?this.hidden="msHidden":void 0!==document.webkitHidden?this.hidden="webkitHidden":this.hidden="unsupported"),"unsupported"===this.hidden?!document.hasFocus():document[this.hidden]},t.isAdBreakType=function(t){return t===s.AdBreakType.PREROLL||t===s.AdBreakType.MIDROLL||t===s.AdBreakType.POSTROLL||t===s.AdBreakType.TRIGGER||t===s.AdBreakType.NON_LINEAR||t===s.AdBreakType.NATIVE},t.strSubstitute=function(t,e){return t.replace(/\{([^\{\}]*)\}/g,function(t,i){var n="function"==typeof e?e(i):e[i];return l.isNullOrUndefined(n)?t:n})},t.querystring=function(e,i,n,r){return i=i||"&",n=n||"=",r=r||encodeURIComponent,e?(l.isObject(e)&&(e=[e]),e.map(function(e){return Object.keys(e).map(function(o){var s=r(t.stringifyPrimitive(o));return null===e[o]?s:(s+=n,l.isArray(e[o])?e[o].map(function(e){return s+r(t.stringifyPrimitive(e))}).join(i):s+r(t.stringifyPrimitive(e[o])))}).join(i)}).join(i)):""},t.getHostUrl=function(){var t=document.referrer;try{window.top.location.href&&(t=window.top.location.href)}catch(t){}return t},t.stringifyPrimitive=function(t){return l.isString(t)?t:l.isBoolean(t)?t.toString():l.isNumber(t)&&isFinite(t)?t.toString():""},t.forceDOMRedrawOnElement=function(t){t&&t.offsetHeight},t.uniquifyArray=function(t){return t.filter(function(t,e,i){return i.indexOf(t)===e})},t.replaceStrParam=function(t,e,i){return t.replace(new RegExp(e+"=\\w*"),e+"="+i)},t.parseRootHost=function(e){var i=t.parseDomain(e),n="";if(i){var r=i.split(".");n=r.length>=2?r[r.length-2]:i}return n},t.redirect=function(t,e){try{e?window.top.location.replace(t):window.top.location.assign(t)}catch(t){window.DOMException}},t.noop=function(){},t.createVideoNode=function(){var t=document.createElement("div");return n.userAgent.tv?t.innerHTML='<video preload="meta" crossorigin="anonymous"><source/></video>':t.innerHTML="<video preload></video>",t.children[0]},t.getUrlStatus=function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){4===i.readyState&&e(i.status)},i.send()},t.bucketize=function(){return Math.floor(100*Math.random())},t.once=function(t){var e=this,i=function(){return i.called?i.value:(i.called=!0,i.value=t.apply(e,arguments),i.value)};return i.called=!1,i},t.appendQueryString=function(t,e){var i=-1===t.indexOf("?")?"?":"&",n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+e[r]);return t+i+n.join("&")},t.cssHexToRgb=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},t.decimalToHexString=function(t,e,i){var n=Number(t).toString(16).toUpperCase();return e?n.padStart(e,i):n},t.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.deepCopy=function(t){var e=this;if(l.isNullOrUndefined(t))return t;var i={};return Object.keys(t).forEach(function(n){l.isArray(t[n])?i[n]=t[n].slice():l.isObject(t[n])?i[n]=e.deepCopy(t[n]):i[n]=t[n]}),i},t.mergeObjects=function(e,i,n){if(void 0===n&&(n=!1),l.isNullOrUndefined(e))return i;for(var r in i)if(l.isNullOrUndefined(e[r])||n){var o=i[r];l.isArray(o)?e[r]=o.slice():l.isObject(o)?e[r]=t.deepCopy(o):e[r]=o}else l.isObject(e[r])&&(e[r]=this.mergeObjects(e[r],i[r]));return e},t.stringToArray16=function(t){for(var e=new ArrayBuffer(2*t.length),i=new Uint16Array(e),n=0,r=t.length;n<r;n++)i[n]=t.charCodeAt(n);return i},t.array16ToString=function(t){var e=new Uint16Array(t.buffer);return String.fromCharCode.apply(null,e)},t.base64DecodeUint8Array=function(t){for(var e=window.atob(t),i=e.length,n=new Uint8Array(new ArrayBuffer(i)),r=0;r<i;r++)n[r]=e.charCodeAt(r);return n},t.base64EncodeUint8Array=function(t){for(var e,i,n,r,o,s,a,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;c<t.length;)r=(e=t[c++])>>2,o=(3&e)<<4|(i=c<t.length?t[c++]:Number.NaN)>>4,s=(15&i)<<2|(n=c<t.length?t[c++]:Number.NaN)>>6,a=63&n,isNaN(i)?s=a=64:isNaN(n)&&(a=64),l+=u.charAt(r)+u.charAt(o)+u.charAt(s)+u.charAt(a);return l},t.getResourceLoadTime=function(t){if(window.performance&&window.performance.getEntriesByType){var e=window.performance.getEntriesByType("resource"),i=void 0;for(i in e)if(e[i].name.match(t))return e[i].duration}return null},t.getPlaybackMode=function(t){return t instanceof a.default?u.PlaybackMode.AD:u.PlaybackMode.VIDEO},t.getAdBreakStartOffset=function(t){var e=[];return t.forEach(function(i,n){var r,o=i.adBreakItems&&i.adBreakItems.some(function(t){return!!t.instream});if(n>0&&o){for(var s=0,a=1;a<=n;a++)s+=t[a-1].duration;r=i.startOffset-s}else r=i.startOffset;var u={adBreakId:i.adBreakId,startOffset:r,type:i.type};e.push(u)}),e},t.detectRegexPattern=function(t,e){var i=new RegExp(t).exec(e);return i&&i[0]?i[0]:null},t.extractID3Data=function(t){if(!t||!t.length)return null;var e=0;for(e=0;e<t.length&&!(t[e]>31);e++);var i=0;for(i=t.length-1;i>=0&&!(t[i]<=31);i--);return i=i<e?t.length:i,String.fromCharCode.apply(null,t.subarray(e,i))},t.initIframeCmp=function(){if(!window.__cmp){for(var t,e=window;!t;){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===window.top)break;e=e.parent}var i={};window.__cmp=function(e,n,r){if(t){var o=Math.random()+"",s={__cmpCall:{command:e,parameter:n,callId:o}};i[o]=r,t.postMessage(s,"*")}else r({msg:"CMP not found"},!1)},window.addEventListener("message",function(t){var e="string"==typeof t.data,n=t.data;if(e)try{n=JSON.parse(t.data)}catch(t){}if(n.__cmpReturn){var r=n.__cmpReturn;i[r.callId](r.returnValue,r.success),delete i[r.callId]}},!1)}},t.areDimensionsEqual=function(t,e){return t.width===e.width&&t.height===e.height&&t.videoWidth===e.videoWidth&&t.videoHeight===e.videoHeight},t.assetDomainHttp="http://assets.video.yahoo.net",t.assetDomainHttps="https://assets.video.yahoo.net",t.scriptType="PLAYER_DEBUG_TYPE",t.yuiAdded=!1,t}();e.default=c},"+SyR":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._controller=t,this._playlist=this._controller.getPlaylist()}return t.prototype.getMediaItems=function(){return this._playlist.getItems()},t.prototype.removeAllMediaItems=function(){var t=this._playlist.size;this._playlist.removeItems(0,t)},t.prototype.removeMediaItems=function(t){var e=this;t.forEach(function(t){var i=e._playlist.getItemPosition(t.id);e._playlist.removeItems(i,1)})},t.prototype.insertMediaItems=function(t,e){if(Array.isArray(t)){for(var i=this._shouldPrefetchMetadata(t),n=e,r=0,o=t;r<o.length;r++){var s=o[r];this._playlist.addItemAtIndex(s,n),n++}i&&this._controller.fetchMetadata()}},t.prototype.appendMediaItems=function(t){if(Array.isArray(t)){var e=this._shouldPrefetchMetadata(t);this._playlist.addItems(t),e&&this._controller.fetchMetadata()}},t.prototype.getCurrentMediaItem=function(){return this._playlist.getCurrentItem()},t.prototype.setCurrentMediaItem=function(t){if(this._controller.mediaStore.get(t.id)){var e=this._playlist.getItemPosition(t.id);this._playlist.setPosition(e)}else this._playlist.addItems([t]),this._controller.fetchMetadata(),this._playlist.setPosition(this._playlist.size-1)},t.prototype.setMediaItemTitle=function(t,e){var i=this._playlist.getMediaItemById(t);i&&(i.title=e)},t.prototype._shouldPrefetchMetadata=function(t){var e=this._controller.mediaStore;return t.filter(function(t){var i=t.id;return null===e.get(i)}).length>0},t}();e.default=n},"+kCX":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("BZeT"),s=i("ToqN"),a=i("A4+F"),u=i("8PPl"),l=i("O/dN"),c=i("oIMU"),d=i("oIMU"),h=i("mczr"),p=i("1get"),f=i("fLR+"),_=i("+Ojf"),m=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.type=e.type,r._resetStates(),r}return r(e,t),e.canUse=function(){return p.default.useHtml5MseDefault()&&p.default.isHtml5MseAvailable()},e.prototype.create=function(e){this.node=t.prototype.create.call(this,e);var i=this._getHtml5HlsConfig();return this._jsPlayer=new o(this.node,i),this.node},e.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this.seeking=!1,this._eventBus.publish(c.PROFILE_START,d.METRICS.STREAM_PLAY_TO_RENDER),this._jsPlayer.play(t)},e.prototype.pause=function(){this._jsPlayer.pause()},e.prototype.preload=function(t){!t||f.isNumber(t.startOffset)&&t.startOffset>0||this._jsPlayer.preload(t.bufferLimit)},e.prototype.setPlayableItem=function(t,e){var i=this;if(void 0===e&&(e=0),!t)return!1;this._resetStates(),this._mode=_.default.getPlaybackMode(t);var n,r=t.isLive(),o=t.streamProfiles;if(o&&o.length||(o=t.streams),!o)return!1;var a=[];if(o.forEach(function(t){t&&t.format&&t.format.indexOf("m3u8")>=0?(t.hls_info=t.hlsInfo,a.push(t),i._contentType="hls"):t&&t.format&&t.format.indexOf("mpd")>=0&&(n=t.url,i._contentType="dash")}),"hls"===this._contentType){var u=[];if(t.altStreams&&(t.altStreams=this._filterDuplicateAltStreams(t.altStreams),t.altStreams.forEach(function(t){u.push(t)})),this._eventBus.publish(c.PROFILE_START,d.METRICS.STREAM_REQUEST_TO_RENDER),this._mode===h.PlaybackMode.VIDEO&&this._eventBus.publish(c.PROFILE_START,d.METRICS.LOAD_TO_LOADED_DATA),a.length>0)return this._jsPlayer.setSrc({streams:a,altStreams:u,sessionId:t.videoSession,currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:r}),this._currentPlayableItem=t,!0}else if("dash"===this._contentType){if(59===s.userAgent.firefox){var p=_.default.createErr(l.ErrorGroup.Streaming,this._model.playbackState,l.E_PLAYER_JS_HLS,l.PLAYER_JS_HLS_CODES.MEDIA_ERR_DECODE);return this._eventBus.publish(c.ERROR,p),!1}if(null!==n)return this._jsPlayer.setSrc({url:n,sessionId:t.videoSession,currLang:t&&t.getCurrLanguage(),is360:t.is360Video(),live:r}),this._currentPlayableItem=t,!0}return!1},e.prototype.waitForReady=function(t){t()},e.prototype.getCurrentDate=function(){return this._jsPlayer.getCurrentDate()},e.prototype.setQuality=function(t){this._jsPlayer.setQuality(t)},e.prototype.setAudioLanguage=function(t){this._jsPlayer.setAudioLanguage(t)},e.prototype.stopMedia=function(){this._jsPlayer.unload()},e.prototype.bindCustomEvents=function(){var t=this;if(this.node){this._onCustomVideoEvents=function(e){var i=e.type;t._handleHLSVideoEvent(i,e)}.bind(this),Object.keys(d.HLSVideoEvent).forEach(function(e){t.node&&t.node.addEventListener(d.HLSVideoEvent[e],t._onCustomVideoEvents)})}},e.prototype.unbindCustomEvents=function(){var t=this;this.node&&Object.keys(d.HLSVideoEvent).forEach(function(e){t.node&&t.node.removeEventListener(d.HLSVideoEvent[e],t._onCustomVideoEvents)})},e.prototype.bindPlaybackEvents=function(){},e.prototype.unbindPlaybackEvents=function(){},e.prototype.suspendStreaming=function(){this._jsPlayer&&this._jsPlayer.suspendStreaming()},e.prototype.resumeStreaming=function(){this._jsPlayer&&this._jsPlayer.resumeStreaming()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this._jsPlayer&&this._jsPlayer.destroy()},e.prototype._bindEvents=function(){t.prototype._bindEvents.call(this),this.bindCustomEvents()},e.prototype._unbindEvents=function(){t.prototype._unbindEvents.call(this),this.unbindCustomEvents()},e.prototype._handleVideoEvent=function(t,e){switch(t===h.NativeVideoEvent.PLAYING&&this._eventBus.publish(c.PROFILE_END,[d.METRICS.STREAM_PLAY_TO_RENDER,d.METRICS.STREAM_REQUEST_TO_RENDER]),t){case h.NativeVideoEvent.SEEKING:case h.NativeVideoEvent.SEEKED:this.node&&this.publish(e,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered});break;case h.NativeVideoEvent.ERROR:if(!this.node)return;if(this._mode!==h.PlaybackMode.VIDEO){this.publish(h.RendererEvent.ERROR,this.node.error);break}var i=this.node.error,n=this._jsPlayer.error||{},r=void 0,o=void 0;f.isNumber(n.code)?(r=n.code.toString(),o=n.message):(r=i.code.toString(),o=i.message);var s=_.default.createErr(l.ErrorGroup.Streaming,this._model.playbackState,l.E_PLAYER_JS_HLS,r,null,o);this.publish(h.RendererEvent.ERROR,i),this._eventBus.publish(c.ERROR,s);break;case h.NativeVideoEvent.ENDED:this.ended=!0;var a=this._model.playlist.getCurrentItem();if(!a)return;a.isLive()&&this._eventBus.publish(c.WARNING,_.default.createErr(l.ErrorGroup.Streaming,this._model.playbackState,l.E_WARNING,l.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE),!0),this.publish(e);break;case h.NativeVideoEvent.PAUSE:if(this.ended)break;if(this.seeking)break;this.publish(e);break;case h.NativeVideoEvent.PLAY:this._playingCalled=!1,this.publish(e);break;case h.NativeVideoEvent.PLAYING:this._playingCalled=!0,this.publish(e);break;case h.NativeVideoEvent.TIMEUPDATE:if(!this.node)return;this.publish(e,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this._playingCalled||(this._playingCalled=!0,this.publish(h.RendererEvent.PLAYING));break;case h.NativeVideoEvent.LOADEDDATA:this._eventBus.publish(c.PROFILE_END,d.METRICS.LOAD_TO_LOADED_DATA),this.publish(e);break;case h.NativeVideoEvent.WAITING:case h.NativeVideoEvent.VOLUMECHANGE:break;default:this.publish(e)}},e.prototype._handleHLSVideoEvent=function(t,e){var i;switch(t){case d.HLSVideoEvent.INFO_UPDATE:if(this._active){var n=e.detail.mediaInfo,r=n.currentStreamBitrate;0===this._model.bitrate&&r>0&&this._eventBus.publish(a.ExternalEvt.BITRATE_CHANGE,r,{}),n.drmsys&&n.drm&&(this._model.isDrmAvailable=n.drm,this._model.drmSystem=n.drmsys),this._eventBus.publish(c.PLAYBACK_INFO,n)}break;case d.HLSVideoEvent.STREAM_SWITCHED:var o=e.detail.bitrate,s={reason:e.detail.reason,oldFrameRate:e.detail.oldFrameRate,newFrameRate:e.detail.newFrameRate};this._eventBus.publish(a.ExternalEvt.BITRATE_CHANGE,o,s);break;case d.HLSVideoEvent.HLS_WAITING:e&&e.detail&&!f.isNullOrUndefined(e.detail.bufferInit)&&this.publish(h.RendererEvent.WAITING,{value:e.detail.value,ignoreBuffering:e.detail.bufferInit});break;case d.HLSVideoEvent.SEGMENT_FIRST_BYTE_LOADED:this._eventBus.publish(c.SEGMENT_FIRST_BYTE_LOADED,e.detail);break;case d.HLSVideoEvent.SEGMENT_RENDERED:var l=this._jsPlayer.getSegInfo();l&&l.segInfo&&this._sendSegInfo(l);break;case d.HLSVideoEvent.VTT_SEGMENT_LOADED:var p=this._model?this._model.playlist:null;if(e.detail&&p){var m=void 0;if(this._model.playbackState.ad)m=this._currentPlayableItem.id;else{var y=p.getMediaItemBySessionId(e.detail.sessionId);m=y?y.id:null}e.detail.itemId=m}this._eventBus.publish(c.VTT_SEGMENT_LOADED,e.detail);break;case d.HLSVideoEvent.LIVE_LOADING_LATE:this._eventBus.publish(c.LIVE_LOADING_LATE);break;case d.HLSVideoEvent.STREAM_UPDATED:this._eventBus.publish(c.MEDIA_PLAYLIST_UPDATED);break;case d.HLSVideoEvent.CUEPOINT_DETECTED:this._eventBus.publish(a.ExternalEvt.CUEPOINT_DETECTED,e.detail.cuepointDuration,e.detail.timeGapBeforeCUEOUT);break;case d.HLSVideoEvent.CUEPOINT_STARTED:this._eventBus.publish(a.ExternalEvt.CUEPOINT_STARTED,e.detail.cuepointDuration,e.detail.cuepointPlayedTime);break;case d.HLSVideoEvent.SUBTITLE_STREAM_UPDATED:this._eventBus.publish(c.SUBTITLE_PLAYLIST_UPDATED);break;case d.HLSVideoEvent.ABR_DATA_UPDATED:this._sendAbrAnalytics&&this._eventBus.publish(c.ABR_DATA_UPDATE,e.detail);break;case d.HLSVideoEvent.PRELOAD_PROGRESS:this._eventBus.publish(c.PROFILE_END,d.METRICS.STREAM_REQUEST_TO_RENDER);break;case d.HLSVideoEvent.SEGINFO_METRICS_AVAILABLE:this._sendSegInfo(e.detail);break;case d.HLSVideoEvent.CONTENT_LOAD_FINISHED:this._eventBus.publish(c.CONTENT_LOAD_FINISHED,e.detail);break;case d.HLSVideoEvent.PRELOAD_START:this._eventBus.publish(c.PRELOAD_START);break;case d.HLSVideoEvent.PRELOAD_COMPLETE:this._eventBus.publish(c.PRELOAD_COMPLETE);break;case d.HLSVideoEvent.BUFFER_GROWTH_DETECTED:this._eventBus.publish(c.BUFFER_GROWTH_DETECTED,e.detail);break;case d.HLSVideoEvent.CC_VTT_AVAILABLE:(i=this._model.playlist.getMediaItemBySessionId(e.detail.sessionId))&&i.setCCAvailability(!0);break;case d.HLSVideoEvent.MULTI_LANGUAGES_AVAILABLE:(i=this._model.playlist.getMediaItemBySessionId(e.detail.sessionId))&&i.setMultiLanguages(e.detail.languages),this._eventBus.publish(c.MULTI_LANGUAGES_AVAILABLE);break;case d.HLSVideoEvent.MEDIA_METADATA_LOADED:var v=this._model.bitrates,g=this._model.heights;this._model.bitrates=v&&v.length?v:e.detail.map(function(t){return t.bitrate/1e3}),this._model.heights=g&&g.length?g:e.detail.map(function(t){return t.height});break;case d.HLSVideoEvent.TIMED_METADATA_READY:var E=_.default.extractID3Data(e.detail.data);if(E){var b=_.default.detectRegexPattern(u.ID3_MATCH_PATTERN.JSON,E);if(b)try{E=JSON.parse(b)}catch(t){}this._eventBus.publish(c.TIMED_METADATA_RECEIVED,E)}}},e.prototype._getHtml5HlsConfig=function(){return this._sendAbrAnalytics=!1,{useWorker:!0,sendAbrAnalytics:this._sendAbrAnalytics,stopBufferingOnPause:this._model.stopBufferingOnPause,dimensions:{width:this._model.uiState.width,height:this._model.uiState.height}}},e.prototype._isPlayerVisible=function(){var t=document.getElementsByClassName(u.VIDEO_MAIN_ELEMENT_CLASS);return!_.default.isPlayerInBackground()&&t&&t.length>0&&0!==_.default.getElementViewability(t[0])},e.prototype._filterDuplicateAltStreams=function(t){if(!t)return t;var e={};return t.filter(function(t){var i=t.type+"_"+t.host+t.path;return!e[i]&&(e[i]=1,!0)})},e.prototype._sendSegInfo=function(t){var e=t.segInfo,i=t.sessionId,n=this._isPlayerVisible();e.forEach(function(t){t.vis=n}),this._eventBus.publish(c.SEG_INFO_AVAILABLE,{val:e,session:i,bufferLen:t.bufferLen})},e.prototype._resetStates=function(){this._currentPlayableItem=null,this._contentType=null,this._mode=h.PlaybackMode.VIDEO,this._playingCalled=!0,this.seeking=!1,this.ended=!1},e.type=h.RendererType.HTML5_HLS,e}(i("+NrX").default);e.default=m},"+orS":function(t,e,i){"use strict";var n=i("5yHC");e.apply=function(){r()};var r=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=window.document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}!n.ie&&window.CustomEvent||(t.prototype=window.Event.prototype,window.CustomEvent=t)}},"+uLo":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){void 0===i&&(i=0);var n=t.call(this,"Timer")||this;if(!e||isNaN(e))throw new Error("Invalid Argument: No delay");return n.delay=Math.max(e,20),n._repeatCount=i>0?i:Number.POSITIVE_INFINITY,n._currentCount=0,n.running=!1,n.startTime=0,n._timerHandle=null,n._subscriptions={},n._eventKeys={},n}return r(e,t),e.prototype.destroy=function(){this.reset(),this._subscriptions={},t.prototype.removeEventListeners.call(this,this._eventKeys),t.prototype.destroy.call(this)},e.prototype.addEventListener=function(i,n,r){if(void 0===i&&(i=e.TIMER_EVENT),!r)throw new Error("Invalid Argument: No context");var o=t.prototype.addEventListener.call(this,i,n,r);return this._eventKeys[i]=o,o},e.prototype.removeEventListener=function(i,n){void 0===i&&(i=e.TIMER_EVENT),void 0===n&&(n=""),t.prototype.removeEventListeners.call(this,this._eventKeys)},e.prototype.start=function(){var t=this;this._timerHandle||this.running||(this._timerHandle=window.setInterval(function(){t._currentCount++,t._currentCount>=t._repeatCount&&t.stop(),t.publish(e.TIMER_EVENT),t.startTime=Date.now()},this.delay),this.startTime=Date.now(),this.running=!0)},e.prototype.stop=function(){this._timerHandle&&this.running&&(window.clearInterval(this._timerHandle),this._timerHandle=null,this.running=!1,this.startTime=0)},e.prototype.reset=function(){this.stop(),this._currentCount=0,this.startTime=0},e.TIMER_EVENT="timedOut",e}(i("JcWZ").default);e.default=o},"/7QA":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("xkpU");n.objectAssignPolyfill(),n.arrayIncludesPolyfill();var r=i("t8Yn"),o=i("Krh1"),s=i("9rUw"),a=i("c+yx"),u=window,l=["OATH"];a.default.isYahooDomain()&&l.push("YAHOO"),l.forEach(function(t){u[t]=u[t]||{},u[t].VideoPlatform=u[t].VideoPlatform||{},u[t].VideoPlatform.VideoPlayer=s.default,u[t].VideoPlatform.Events=a.default.extend(o.API,r.Events),"YAHOO"===t&&(u[t].VideoPlatform.API_Events=a.default.extend(o.API,r.Events))}),window.replaceOathPlayerSrc=function(t){var e=t.substring(t.lastIndexOf("/")+1),i=e.substring(0,e.indexOf("."));if(!t.includes("assets.video.yahoo.net"))return"/"+e;switch(i){case"vendors~three":return"https://assets.video.yahoo.net/oath/three/0.83.0/"+e;default:return t}}},"/Ggr":function(t,e,i){"use strict";t.exports=u;var n=i("sjSS"),r=i("4rDT"),o=i("9nRl"),s=i("lPOR"),a=i("KtsB");function u(t,e){this._properties=t,this._callback=e,this._tsDemux=t.noDemux?null:new n(t.demux,this.processSegmentData.bind(this)),this._mp4Generator=new r,this.DEFAULT_WIDTH=640,this.DEFAULT_HEIGHT=360,this.GAP_EPSILON=100,this._startOffsetTimestamp=this._properties.startOffsetTimestamp,this._lastAudioTimestamp=this._properties.lastAudioTimestamp,this._lastAudioFrameDuration=this._properties.lastAudioFrameDuration,this._isAltAudioActive=this._properties.isAltAudioActive,this._prevSegEndTimeStamps=this._properties.prevSegEndTimeStamps;var i=this._properties.mp4State;this._shouldInit={audio:!i||!i.audio||i.audio.shouldInit,video:!i||!i.video||i.video.shouldInit},this._discontinuityOffsets={audio:0,video:0},this._extractedStartTime={audio:{dts:NaN,pts:NaN},video:{dts:NaN,pts:NaN}}}u.prototype.destroy=function(){this._tsDemux&&(this._tsDemux.destroy(),this._tsDemux=null),this._mp4Generator.destroy()},u.prototype.close=function(){this._tsDemux&&this._tsDemux.destroy()},u.prototype.append=function(t){this._tsDemux&&this._tsDemux.append(t)},u.prototype.endOfSegment=function(){this._tsDemux&&this._tsDemux.endOfSegment()},u.prototype.processSegmentData=function(t){if(t&&!t.error){var e,i=t.avData,n=t.pos,r=t.timedMetadata,o=this._properties.startTime,u=this._properties.timescale;if(i){var l=this._properties.pcr;(null==l||isNaN(l))&&(this._properties.pcr=l=i.pcr-o*u);var c=[],d=i.audio,h=i.video,p=null,f=0,_=[];if(d&&d.frames&&d.frames.length&&!this._isAltAudioActive&&(d.type="audio",d.config.timescale=u,d.config.duration=this._properties.duration*d.config.timescale,d.config.useEditBox=this._properties.useEditBox,this._computeDiscontinuityOffset("audio",d.frames[0],l,o,u),f=l+this._discontinuityOffsets.audio,d.frames.forEach(function(t){t.dts-=f,t.pts-=f}),d.startTime=d.frames[0].dts,d.endTime=d.frames[d.frames.length-1].dts,c.push(d)),h&&h.frames&&h.frames.length){h.type="video",h.config.timescale=u,h.config.duration=this._properties.duration*h.config.timescale,h.config.width=this._properties.width||this.DEFAULT_WIDTH,h.config.height=this._properties.height||this.DEFAULT_HEIGHT,h.config.useEditBox=this._properties.useEditBox,this._computeDiscontinuityOffset("video",h.frames[0],l,o,u),f=l+this._discontinuityOffsets.video,h.frames.forEach(function(t){t.dts-=f,t.pts-=f}),h.startTime=h.frames[0].dts,h.endTime=h.frames[h.frames.length-1].dts,p=h.frames[0].pts,c.push(h);for(var m=0;m<h.frames.length;m++)for(var y=0;y<h.frames[m].cea608Data.length;y++){var v=h.frames[m].cea608Data[y];v.pts=h.frames[m].pts,v.dts=h.frames[m].dts,v.timescale=h.config.timescale,_.push(v)}}e=new a({type:s.MessageTypes.MESSAGE,id:s.MessageIds.APPEND_SRC_BUFFER});var g={};g.position=this.position=n,g.pcr=l,"number"!=typeof this._startOffsetTimestamp&&"number"==typeof p&&(this._startOffsetTimestamp=p),g.startOffsetTimestamp=this._startOffsetTimestamp;var E=this._convertToMp4(c);g.lastAudioTimestamp=this._lastAudioTimestamp,g.lastAudioFrameDuration=this._lastAudioFrameDuration,e.putParam("parsedInfo",g);var b=[];E&&E.tracks&&(e.putParam("tracks",E.tracks),E.tracks.forEach(function(t){b.push(t.data.buffer)}),_&&_.length>0&&e.putParam("cea608TrackData",_),e.putParam("transferables",b))}else{if(!r)return;r.timestamp=(r.pts-this._properties.pcr)/u,delete r.pts,(e=new a({type:s.MessageTypes.MESSAGE,id:s.MessageIds.TIMED_METADATA})).putParam("timedMetadata",r)}this._callback&&this._callback(e)}},u.prototype._computeDiscontinuityOffset=function(t,e,i,n,r){var o=this._properties.discontinuity,s=this._extractedStartTime[t];isNaN(s.dts)&&isNaN(s.pts)&&(this._extractedStartTime[t]={dts:e.dts-i,pts:e.pts-i});var a=this._discontinuityOffsets[t];if(o&&0===a){var u=this._prevSegEndTimeStamps?this._prevSegEndTimeStamps.audio:NaN;n=isNaN(u)?n*r:u,this._discontinuityOffsets[t]=this._extractedStartTime[t].dts-n}},u.prototype._convertToMp4=function(t){var e=this;if(t&&t.length){var i={tracks:[]};return t.forEach(function(t){if(t){t.config.offset=e._properties.live?0:e._startOffsetTimestamp;var n=e._properties.mp4State,r=e._shouldInit[t.type];t.config.shouldInit=o.isNullOrUndefined(r)?"start"===e.position:r,t.config.seqNum=n[t.type]?n[t.type].seqNum++:0,"video"===t.type?t.config.defaultFrameDuration=e._properties.timescale/e._properties.frameRate:"audio"===t.type&&(t.config.defaultFrameDuration=Math.ceil(1024*e._properties.timescale/t.config.samplingFreq),e._closeGapsInBuffer(t.frames,t.config.defaultFrameDuration)),e._shouldInit[t.type]=!1,e._properties.onlyMetadata&&(t.frames=[]);var s=e._mp4Generator.generate(t);s.onlyMetadata=e._properties.onlyMetadata,i.tracks.push(s)}}),i}},u.prototype._closeGapsInBuffer=function(t,e){if(t&&t.length){var i=t[t.length-1].dts,n=t[0].dts;if(o.isNumber(this._lastAudioTimestamp)&&!isNaN(this._lastAudioTimestamp)){var r=n-this._lastAudioTimestamp,s=Math.ceil(2*this._lastAudioFrameDuration)-this.GAP_EPSILON,a=Math.ceil(6*this._lastAudioFrameDuration);if(r>s);else if(r<this._lastAudioFrameDuration-this.GAP_EPSILON){var u=this._lastAudioTimestamp+this._lastAudioFrameDuration;u-n>e&&(u=n+e-1),t[0].pts=u,t[0].dts=t[0].pts}if(r>s&&r<a)for(var l=Math.floor(r/e),c=0;c<l;c++){var d=t[0].dts;t.unshift(o.deepCopy(t[0])),t[0].dts=d-e,t[0].pts=t[0].dts}}this._lastAudioTimestamp=i,this._lastAudioFrameDuration=e}}},"/iNa":function(t,e,i){"use strict";var n=t.exports={};n.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},n.guid=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},n.base64ToBuffer=function(t){return new Uint8Array(atob(t).split("").map(function(t){return t.charCodeAt(0)}))},n.arrayToUint8Array=function(t){for(var e=t.length,i=new Uint8Array(e),n=new DataView(i.buffer),r=0;r<e;r++)n.setUint8(r,t[r]);return i},n.isDrmItemContained=function(t,e){if(!t||!e||0===e.length)return!1;for(var i=0;i<e.length;i++)if(t.widevine.pssh===e[i].widevine.pssh)return!0;return!1},n.isAbsoluteUrl=function(t){return 0===t.indexOf("http")},n.isUplynk=function(t){return!(!t||!t.length)&&((t=t.toLowerCase()).indexOf("uplynk.com")>-1||t.indexOf("downlynk.com")>-1||t.indexOf("uplynk.localhost")>-1||t.indexOf("downlynk.localhost")>-1)},n.isWithCreds=function(t){return t&&t.length&&n.isUplynk(t)&&t.indexOf("expand=finance")>-1}},"/jeC":function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE1IDI5LjA5MnMuNjI0LTEuMDggMS4yMzQtMS42NjhjLjg2Mi0uODI3IDIuMDg0LTEuMzQ2IDMuNzM2LTEuNTg0IDIuMDczLS4zIDMuNTc2LTEgNC40NjMtMi4wNzIuNzE1LS44NzIuODIzLTEuNzQuODI1LTIuMTg0VjQuMTE0aC0uNjgzYy0uODguNjMtMi41NjggMS40OTMtNC43MzguOTU4QzE2LjA3NSA0LjE0OCAxNSAuOTA2IDE1IC45MDZzLTEuMDc2IDMuMjQtNC44MzcgNC4xNjZjLTIuMTczLjUzNS0zLjg2LS4zMy00Ljc0Mi0uOTZoLS42Nzh2MTcuNDcyYzAgLjQ0LjEwOCAxLjMxMi44MjUgMi4xODQuODg1IDEuMDcyIDIuMzg2IDEuNzcgNC40NiAyLjA3MiAxLjY1NS4yMzggMi44NzYuNzU3IDMuNzM4IDEuNTg4LjYzMy42MDggMS4yMzQgMS42NjQgMS4yMzQgMS42NjQiLz48cGF0aCBmaWxsPSIjMDEzNzY5IiBkPSJNMjQuNjQgNC43OTZzLTIuMDU2IDEuNi00Ljk1Ljg3NUMxNi4zMSA0LjgzIDE1IDIuMjk4IDE1IDIuMjk4cy0xLjMxMiAyLjUzLTQuNjkgMy4zNzRjLTIuODk3LjcyNS00Ljk1My0uODc0LTQuOTUzLS44NzR2MTYuNzg4YzAgLjU3LjI0IDIuOTkzIDQuNzU4IDMuNjQ2IDEuNzg2LjI2IDMuMTIuODMyIDQuMDc4IDEuNzU0LjM0NC4zMy42MDYuNjY2LjgwNS45NzguMi0uMzEyLjQ2LS42NDguODA4LS45NzguOTU2LS45MjIgMi4yOS0xLjQ5NCA0LjA3NC0xLjc1NCA0LjUyLS42NTIgNC43Ni0zLjA3NiA0Ljc2LTMuNjQ2VjQuNzk2eiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNSAyNi4yNTNzMS4zMS0xLjYyMiA0LjcyLTIuMTQ3YzMuOTAzLS42IDMuNzg4LTIuNDMzIDMuNzg4LTIuNTI1di04Ljc5NGwtMTcuMDIuMDAydjguNzkyYzAgLjA5My0uMTEyIDEuOTI1IDMuNzkgMi41MjUgMy40MS41MjYgNC43MiAyLjE0OCA0LjcyIDIuMTQ4Ii8+PHBhdGggZmlsbD0iI0Q1MEEwQSIgZD0iTTExLjAzIDE5LjIxM3YtNC4xOGwtLjUyMy0uMjk1VjEzLjY1aDIuMzl2MS4wODhsLS41LjI5NXY4LjUzbC0xLjI3OC0uMzg0LTEuODQ3LTUuNDV2My41OWwuNTg2LjQ1MnYxLjExbC0yLjU2NS0uNjU3di0uOTRsLjU4Ni0uMjMydi02LjAxNWwtLjYtLjNWMTMuNjVoMS45NE0xNS40MzIgMjMuMDM4bC41MS42MXYxLjA4NmwtMi41MzgtLjk0OHYtLjkybC41Ni0uMjN2LTcuNjAzbC0uNTU2LS4yODN2LTEuMWg0LjQwOHYyLjIxaC0uOTY4bC0uMjk1LS45MDdoLTEuMTJ2Mi41NTJoLjg0bC4zMy0uNDg0aC42Nzd2Mi4yN2gtLjY3NmwtLjMyLS40NmgtLjg1Mk0xOC4yMzYgMjMuNDJ2LTEuMDg1bC42My0uNTE3di02Ljc4NWwtLjU0LS4yODN2LTEuMWgyLjU0MnYxLjFsLS40OTcuMjgzdjYuMzY0bDEuMDkzLS4yOTMuMjA3LTEuNjdoMS4wNXYyLjc5Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTYuOTMyIDEwLjk4NmwtLjc3LS41OGguOTQybC4zMS0uODg4LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNy0uNzY3LS41MzctLjc2NC41MzdNMTAuMjcyIDEwLjk4NmwtLjc3LS41OGguOTRsLjMxLS44ODguMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA3LS43NjctLjUzNy0uNzY0LjUzN002LjkzMiA3Ljk3NWwtLjc3LS41NzhoLjk0MmwuMzEtLjg5LjMxMi44OWguOTRsLS43Ny41NzguMjgzLjkwNS0uNzY3LS41NC0uNzY0LjU0TTEwLjI3MiA3Ljk3NWwtLjc3LS41NzhoLjk0bC4zMS0uODkuMzEyLjg5aC45NGwtLjc3LjU3OC4yODUuOTA1LS43NjctLjU0LS43NjQuNTRNMjMuMzQ4IDExLjg5M2wtLjc2NC0uNTM4LS43NjYuNTM4LjI4NC0uOTA3LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDExLjg5M2wtLjc2NC0uNTM4LS43NjcuNTM4LjI4NC0uOTA3LS43NzItLjU3OGguOTRsLjMxNC0uODkuMzEuODloLjk0bC0uNzcuNTc4TTIzLjM0OCA4Ljg4bC0uNzY0LS41NC0uNzY2LjU0LjI4NC0uOTA1LS43Ny0uNTc4aC45NGwuMzEyLS44OS4zMS44OWguOTQybC0uNzcuNTc4TTIwLjAxIDguODhsLS43NjQtLjU0LS43NjcuNTQuMjg0LS45MDUtLjc3Mi0uNTc4aC45NGwuMzE0LS44OS4zMS44OWguOTRsLS43Ny41NzhNMTUuNzMgNy4zMThjLS4zNDItLjI4LS43MjctLjQ2NC0xLjEzNS0uNTUyLjEtLjA5NC4yMDItLjE3Mi4yODgtLjI0Ny41MS4xMi44NTQuMzUgMS4wODguNTQ1LS4wOC4wODQtLjE2My4xNy0uMjQuMjUzbS0uNDkzLjU5OGMtLjMyNy0uMjgtLjcyNC0uNDgtMS4xNzUtLjU3LjA3LS4wODguMTUtLjE4NS4yMjgtLjI3LjM0My4wNi43ODIuMjQgMS4xNjcuNTU3LS4wOC4wOTYtLjE1Mi4xOS0uMjIuMjgzbS0uNDQ1LjYyNGMtLjM1My0uMjk1LS43NjMtLjQ3NS0xLjE2Ni0uNTUzIDAgMCAuMTIyLS4yMDIuMTkzLS4zMDQuNDkuMDk2Ljg5My4zMjcgMS4xNy41NjQtLjA3LjEtLjEzOC4yLS4xOTguMjkzbTIuMzI4LTIuOTgzcy0uNC4yMDgtLjk1Ni43NTNjLjEyNi4wNzQuMjY4LjE3LjM0OC4yNC0uMDg1LjA3Mi0uMTcuMTU0LS4yNS4yMy0uMzYtLjMtLjczOC0uNDUtMS4wMy0uNTIzLjA5Ny0uMDY3LjItLjEzOC4zMDItLjIuMTU2LjAzNy4zMS4xLjMxLjEuNjI3LS40NzggMS4xNy0uNjg2IDEuMTctLjY4NnMtLjA2Mi0uMDMtLjIzLS4wMjhjLTIuNDcuMDMzLTQuNzQ2IDEuODc2LTQuMzE4IDUuMDM0LjA0OC4zMzQuMTc2Ljk0NC4zNDMgMS4yMS4wNTQtLjUyNi4yNTItMS42ODcuODM4LTIuOTM0LS4yMDUtLjA3My0uMzc1LS4xMDMtLjM3NS0uMTAzLjA2Mi0uMTI3LjE0NS0uMjg2LjE0NS0uMjg2LjQzMy4wODIuODE0LjI2NSAxLjE0Ni41MjUtLjA3OC4xMjctLjEzMy4yMS0uMTcuMjgtLjExOC0uMDk0LS4yMzYtLjE3LS4zNjQtLjI0NC0uNjYgMS4xNS0uOTY1IDIuMjQtMS4wOSAyLjgwOC4wMDguMDM0LjA3OC4wNTMuMTM4LjA0NSAyLjcwNi0uMzUzIDMuOTczLTEuNzMgNC4zNTgtMy4yMy4yNTMtLjk4LjE3Mi0yLjAwNS0uMTY4LTIuODQ0LS4wMjQtLjA1Ny0uMDctLjE1Ni0uMTQ4LS4xNSIvPjwvc3ZnPg=="},"/pFH":function(t,e,i){"use strict";e.a=function(t){var e=this.constructor;return this.then(function(i){return e.resolve(t()).then(function(){return i})},function(i){return e.resolve(t()).then(function(){return e.reject(i)})})}},0:function(t,e,i){t.exports=i("/7QA")},"0CSc":function(t,e,i){"use strict";var n=i("IdCN"),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,i){for(var n=0,r=t.length;n<r;n++)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))},a=function(t,e,i){for(var n=0,r=t.length;n<r;n++)null==i?e(t.charAt(n),n,t):e.call(i,t.charAt(n),n,t)},u=function(t,e,i){for(var n in t)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))};t.exports=function(t,e,i){if(!n(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=i),"[object Array]"===r.call(t)?s(t,e,o):"string"==typeof t?a(t,e,o):u(t,e,o)}},"0VsI":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baseconfigSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/baseconfigSchema",type:"object",properties:{site:{type:"string"},siteAnalytics:{type:"string"},region:{type:"string"},referrer:{type:"string"},jurisdiction:{type:"string"},_html5:{type:"boolean"},experienceType:{type:"string"},strmExprUnMuteOnClick:{type:"boolean"},experienceName:{type:"string"},experienceBucket:{type:"string"},experienceNavStartTime:{type:"string"},pageSpaceId:{type:"string"},syndication:{type:"string"},allowGeoRequest:{type:"boolean"},geoData:{type:"object",properties:{latitude:{type:"string"},longitude:{type:"string"},accuracy:{type:"string"}}}}}},"0r65":function(t,e){var i=arguments[3],n=arguments[4],r=arguments[5],o=JSON.stringify;t.exports=function(t){for(var e,s=Object.keys(r),a=0,u=s.length;a<u;a++){var l=s[a];if(r[l].exports===t){e=l;break}}if(!e){e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(a=0,u=s.length;a<u;a++){c[l=s[a]]=l}n[e]=[Function(["require","module","exports"],"("+t+")(self)"),c]}var d=Math.floor(Math.pow(16,8)*Math.random()).toString(16),h={};h[e]=e,n[d]=[Function(["require"],"require("+o(e)+")(self)"),h];var p="("+i+")({"+Object.keys(n).map(function(t){return o(t)+":["+n[t][0]+","+o(n[t][1])+"]"}).join(",")+"},{},["+o(d)+"])",f=window.URL||window.webkitURL||window.mozURL||window.msURL;return new Worker(f.createObjectURL(new Blob([p],{type:"text/javascript"})))}},"0xFk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vrmSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/vrmSchema",type:"object",properties:{companyId:{type:"string"},playerId:{type:"string"}}}},"0z0/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ctvSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/ctvSchema",type:"object",properties:{man:{type:"string"},class:{type:"string"},ctvMetricsParams:{type:"object",properties:{ctv_db:{type:"string"},ctv_dc:{type:"string"},_di:{type:"string"},ctv_di:{type:"string"},ctv_ddv:{type:"string"},ctv_dfv:{type:"string"},_dv:{type:"string"},_lo:{type:"string"},_dm:{type:"string"},_dl:{type:"string"},_dc:{type:"string"},_osv:{type:"string"},ctv_yb:{type:"string"},_sr:{type:"string"},ctv_yr:{type:"string"},ctv_ybv:{type:"string"},ctv_yv:{type:"string"},_an:{type:"string"},_av:{type:"string"},_at:{type:"string"}}},forceHttp:{type:"boolean"}}}},"0zFh":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=function(){function t(t){var e=this;this._exposeMethods=["clear","getCurrentItem","getCurrentItemDescription","getCurrentItemId","getCurrentItemLiveStatus","getCurrentItemMarkers","getCurrentItemProviderName","getCurrentItemTitle","getIndexForId","getItem","getItemById","getItemId","getItems","getPosition","getSize","removeItem","removeItemById","removeItems","removeItemsById","sendPrefetchInfo","setPosition","setPositionById"],this._playlist=t,this._exposeMethods.forEach(function(t){e[t]=function(){return this._playlist[t].apply(this._playlist,arguments)}})}return t.prototype.addItem=function(t){return this._playlist.addItem(this._transformIds([t])[0])},t.prototype.addItems=function(t,e){return void 0===e&&(e=!1),this._playlist.addItems(this._transformIds(t),e)},t.prototype.setItems=function(t){return this._playlist.setItems(this._transformIds(t))},Object.defineProperty(t.prototype,"playlist",{set:function(t){this._playlist=t},enumerable:!0,configurable:!0}),t.prototype._transformIds=function(t){var e=this._getPresumedMimetype();return t.map(function(t){return{id:t,mimetype:e}})},t.prototype._getPresumedMimetype=function(){var t=this._playlist.getCurrentItem();return t&&t.mimetype||n.MediaItemInterfaces.MediaItemMimeType.SAPI},t}();e.default=r},"1GgL":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("zW5x"),r=function(){function t(t,e){this._timeoutId=null,this._mediaItemData=e,this._sapiClient=new n.default(t)}return t.prototype.verify=function(t){if(this._sapiClient){var e={onComplete:function(){t(!0)},onError:function(){t(!1)},onProgress:function(){},onApiCallInfo:function(){}};this._mediaItemData&&this._sapiClient.resolve([this._mediaItemData],{},e)}},t.prototype.scheduleVerification=function(t,e){var i=this;this._cancelScheduledVerification(),this._timeoutId=window.setTimeout(function(){i.verify(t)},e)},t.prototype.destroy=function(){this._cancelScheduledVerification(),this._sapiClient=null,this._mediaItemData=null},t.prototype._cancelScheduledVerification=function(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},t}();e.default=r},"1KsK":function(t,e,i){"use strict";var n=Object.prototype.toString;t.exports=function(t){var e=n.call(t),i="[object Arguments]"===e;return i||(i="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),i}},"1LND":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("8PPl"),r=function(){function t(t){this._controller=t}return t.prototype.getSize=function(){return this._controller.getPlaylistItems().length},t.prototype.getPosition=function(){return this._controller.getPlaylist()?this._controller.getPlaylist().position:null},t.prototype.sendPrefetchInfo=function(t){return this._controller.sendPrefetchInfo(t)},t.prototype.setPosition=function(t){if(!(t in this._controller.getPlaylistItems()))throw new Error("setPosition called with invalid position");var e=this._controller.autoplay,i=e?{type:n.REQUEST_TYPES.API,action:n.REQUEST_TYPES.AUTOPLAY}:null;this._controller.setPlaylistPosition(t,e,i)},t.prototype.setPositionById=function(t){var e=this._controller.getPlaylistItemIds().indexOf(t);if(-1===e)throw new Error("setPositionById called with id not in playlist");var i=this._controller.autoplay,r=i?{type:n.REQUEST_TYPES.API,action:n.REQUEST_TYPES.AUTOPLAY}:null;this._controller.setPlaylistPosition(e,i,r)},t.prototype.addItem=function(t){this.addItems([t])},t.prototype.addItems=function(t,e){if(Array.isArray(t)){var i=this._controller.getPlaylist();e&&i.removeItems(0,i.size),i.addItems(t);var n=t.map(function(t){var e=t.id;return i.getMediaItemById(e)});n.length>0&&this._controller.fetchMetadata(n)}},t.prototype.setItems=function(t){this.addItems(t,!0)},t.prototype.getItems=function(){return this._controller.getPlaylistItemIds()?this._controller.getPlaylistItemIds().slice(0):null},t.prototype.getItemId=function(t){var e=this._controller.getPlaylistItemIds();if(!(t in e))throw new Error("getItemId called with invalid position");return e[t]},t.prototype.getCurrentItemId=function(){var t=this._controller.getCurrentMediaItem();return t?t.id:null},t.prototype.getCurrentItem=function(){var t=this._controller.getCurrentMediaItem();return t?this.getItemById(t.id):null},t.prototype.getCurrentItemTitle=function(){var t=this.getCurrentItem();return t?t.title:null},t.prototype.getCurrentItemLiveStatus=function(){var t=this.getCurrentItem();return t?t.isLive:null},t.prototype.getCurrentItemDescription=function(){var t=this.getCurrentItem();return t?t.description:null},t.prototype.getCurrentItemProviderName=function(){var t=this.getCurrentItem();return t&&t.provider?t.provider.name:null},t.prototype.getCurrentItemMarkers=function(){var t=this._controller.getCurrentMediaItem();return t&&t.videoMarkers||null},t.prototype.getItem=function(t){var e=this._controller.getPlaylistItemIds();if(!(t in e))throw new Error("getItem called with invalid position");return this.getItemById(e[t])},t.prototype.getItemById=function(t){var e=this,i=this._controller.mediaStore;if(!i)return null;var n=i.getById(t);return n?{id:n.id,mimetype:n.mimetype,title:n.title,description:n.description,duration:n.duration,publishTime:n.publishTime,provider:n.provider,credits:n.credits,shareUrl:n.shareUrl,setShareUrl:function(t){e.shareUrl=t,n.shareUrl=t},thumbnail:n.images&&n.images.defaultThumbnail,visualSeek:n.visualSeek,isLive:n.isLive(),closedCaptions:n.closedCaptions,streams:n.streams,videoMarkers:n.videoMarkers,languages:n.getMultiLanguages(),license:n.license}:null},t.prototype.getIndexForId=function(t){return this._controller.getPlaylistItemIds().indexOf(t)},t.prototype.removeItem=function(t){if(!(t in this._controller.getPlaylistItems()))throw new Error("removeItem called with invalid position");this._controller.removePlaylistItems(t,1)},t.prototype.removeItems=function(t,e){var i=this._controller.getPlaylistItems();if(!(t in i&&t+e-1 in i))throw new Error("removeItems called with invalid position/count");this._controller.removePlaylistItems(t,e)},t.prototype.removeItemById=function(t){var e=this._controller.getPlaylistItemIds().indexOf(t);if(-1===e)throw new Error("removeItemById called with id not in playlist");this._controller.removePlaylistItems(e,1)},t.prototype.removeItemsById=function(t){var e=this;t.forEach(function(t){e.removeItemById(t)})},t.prototype.clear=function(){this._controller.removePlaylistItems(0,this._controller.getPlaylistItems().length)},t}();e.default=r},"1get":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("fLR+"),o=i("+kCX"),s=i("R+G7"),a=function(){function t(){}return t.isHtml5MseAvailable=function(){return!!r.isFunction(o.default)&&(!!t.isMSEAvailable()&&(t.isMSECompatible('video/mp4; codecs="avc1.640010"')&&t.isMSECompatible('audio/mp4; codecs="mp4a.40.2"')))},t.useHtml5MseDefault=function(){return n.userAgent.tv?!(n.userAgent.tizen||n.userAgent.orsay||n.userAgent.firetv||n.userAgent.presto)&&!!t.isHtml5MseAvailable():n.userAgent.mobile?!!(n.userAgent.android&&n.userAgent.chrome&&s.default.hasNativeAutoplaySupport):!n.userAgent.winXP&&!n.userAgent.winVista&&(n.userAgent.chrome>=47||n.userAgent.firefox>=44||n.userAgent.ie>=11||n.userAgent.edge>=12)},t.is360Supported=function(){return!!n.userAgent.desktop&&!!(n.userAgent.chrome||n.userAgent.firefox||n.userAgent.opera||n.userAgent.safari)},t.isMSEAvailable=function(){return"undefined"!=typeof MediaSource},t.isMSECompatible=function(t){var e=MediaSource;if(e&&!e.isTypeSupported){var i=document.createElement("video");return!(!i||!i.canPlayType(t))}return!(!e||!e.isTypeSupported(t))},t.isAndroidVersionAbove4=function(){return!!n.userAgent.androidVersion&&parseInt(n.userAgent.androidVersion,10)>=4},t.canPlayType=function(t,e){var i;try{e||(e=document.createElement("video")),i=!!e.canPlayType&&"probably"===e.canPlayType(t)}catch(t){i=!1}return i},t}();e.default=a},"1mKx":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("kdA9"),r=10,o=20,s=function(){function t(t,e,i,n){var s=this;this._videoTag=t,this._availableBitrates=e?e.sort(function(t,e){return t-e}):[],this.reservoirLength=i||r,this.cushionLength=n||o,this.currentBitrate=0,this._bufferingEventsForBitrates={},this._availableBitrates.forEach(function(t){s._bufferingEventsForBitrates[t]=0}),t&&t.addEventListener("waiting",function(){s._bufferingEventsForBitrates[s.currentBitrate]=s._bufferingEventsForBitrates[s.currentBitrate]+1},!1)}return t.prototype.setTargetBitrate=function(t){n.default.put("yvpTargetBitrate",t)},t.prototype.getTargetBitrate=function(){var t=n.default.get("yvpTargetBitrate");return(t=parseInt(t,10))||(t=900,this.setTargetBitrate(900)),t},t.prototype.getBufferOccupancy=function(){for(var t=this._videoTag.buffered,e=this._videoTag.currentTime,i=0,n=0;n<t.length;n++){var r=t.start(n),o=t.end(n);return r<=e&&o>=e&&(i=o-e)>=this._videoTag.length-e?Number.MAX_VALUE:i}return i},t.prototype.getRecommendedBitrate=function(t,e,i){e=e||this._availableBitrates,i=void 0===i?this.getBufferOccupancy():i,t=void 0===t?e.indexOf(this.currentBitrate):t;var n=e[t],r=e[0],o=e[e.length-1],s=n===o?o:e[t+1],a=n===r?r:e[t-1],u=this._getIdealRecommendedBitrate(e,i),l=n;return u>=s?l=this._findMaxLessEqualIdealRate(e,u):u<=a&&(l=this._findMinGreaterEqualIdealRate(e,u)),l},t.prototype.getNumberOfBufferingsForBitrate=function(t){return this._bufferingEventsForBitrates[t]},t.prototype._getIdealRecommendedBitrate=function(t,e){if(e===Number.MAX_VALUE)return this.currentBitrate;var i=t[0];if(e>this.reservoirLength){var n=t[0],r=(t[t.length-1]-n)/this.cushionLength;i=(e-this.reservoirLength)*r+n}return i},t.prototype._findMaxLessEqualIdealRate=function(t,e){for(var i=t.length-1;i>=0;i--){var n=t[i];if(n<=e)return n}return t[0]},t.prototype._findMinGreaterEqualIdealRate=function(t,e){for(var i=0,n=t;i<n.length;i++){var r=n[i];if(r>=e)return r}return t[t.length-1]},t}();e.default=s},"1seS":function(t,e,i){"use strict";var n=Array.prototype.slice,r=i("1KsK"),o=Object.keys,s=o?function(t){return o(t)}:i("sYn3"),a=Object.keys;s.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return r(t)?a(n.call(t)):a(t)}):Object.keys=s;return Object.keys||s},t.exports=s},"21xW":function(t,e,i){"use strict";t.exports=h;var n=i("/iNa"),r=i("6I/I"),o=r.Streamer,s=r.Events,a=r.SynchTypes,u=i("HNE+"),l=i("y5bh").HLSEvent,c=i("V66C").StreamTypes,d=i("9nRl");function h(t,e){o.call(this,t,e),this._eventKeys={},this._eventKeys[l.MEDIA_LOADED]=this.__controller.addEventListener(l.MEDIA_LOADED,this._onMediaLoaded,this),this.DEFAULT_STREAM_UPDATE_INTERVAL=8e3,this.MAX_STREAM_UPDATE_INTERVAL=1e4,this.PAST_BUFFER_LENGTH_LIMIT=this._model.config.pastBufferLengthLimit.live,this.LONG_PAUSE_INTERVAL=24e3,this._updateStreamTimer=new u(this.DEFAULT_STREAM_UPDATE_INTERVAL),this._updateStreamTimer.addEventListener(this._loadCurrentStream,this),this._synchPosition=null,this._timestampAtPause=null,this._restartProcessOnSynch=!1,this._pauseTimer=new u(this.LONG_PAUSE_INTERVAL,1),this._pauseTimer.addEventListener(this._onLongPauseInterval,this)}n.inherits(h,o),h.prototype.destroy=function(){this._updateStreamTimer.destroy(),this._pauseTimer.destroy(),this.__controller.removeEventListeners(this._eventKeys),o.prototype.destroy.call(this)},h.prototype.onPlay=function(t){if(this._scheduleStreamUpdate(),this._shouldSynch()){var e=this._timestampAtPause?a.TIME_GAP:a.INIT;this._synch(e),this.process(this._targetPosition),this._timestampAtPause=null}else this._manualStreamChange&&(this._targetPosition=t,this._paused=!1,this.process(this._targetPosition),this._timestampAtPause=null);o.prototype.onPlay.call(this),this._pauseTimer.stop()},h.prototype.onPause=function(){this._timestampAtPause=Date.now(),this._pauseTimer.start(),o.prototype.onPause.call(this)},h.prototype.onSeeking=function(t){this._setEndOfStream(!1),this._restartProcessOnSynch&&(this._closeLoadingSegments(),this.process(t))},h.prototype.onSynchComplete=function(){this._synchPosition=null,this._targetPosition=null,this.type===c.MAIN&&this._model.setLivePlaybackStartTime(null)},h.prototype.suspendStreaming=function(){this._updateStreamTimer&&this._updateStreamTimer.stop()},h.prototype.resumeStreaming=function(){this._updateStreamTimer&&this._updateStreamTimer.start()},h.prototype._shouldSynch=function(){if(!this._timestampAtPause)return!0;var t=this._currentStream,e=t&&t.targetDuration?3*t.targetDuration*1e3:this.LONG_PAUSE_INTERVAL;return Date.now()-this._timestampAtPause>e},h.prototype._synch=function(t){if(this._model.hasEndlist)this._setEndOfStream(!0);else{var e=this._currentStream;if(e.segments.length&&!d.isNullOrUndefined(e.endSeqNum)&&!d.isNullOrUndefined(e.startSeqNum)){var i=this._getFirstSegmentSeqNum(),n=e.getSegmentfromSeqNum(i);this._targetPosition=n?n.startTime:null,this._synchPosition=this._targetPosition,e.type===c.MAIN&&this._model.setLivePlaybackStartTime(this._synchPosition);var r=this._model.userAgent;this._restartProcessOnSynch=r&&r.safariDesktop&&t===a.TIME_GAP,this.publish(s.LIVE_SYNCH,this,{synchPosition:this._synchPosition,synchType:t})}}},h.prototype._onLongPauseInterval=function(){},h.prototype._shouldLoadSegment=function(){return!this._endOfLive&&this._state!==this.STATES.LOADING&&!this._paused&&!this._isBufferFull()},h.prototype._updateStream=function(){this.isActive()&&(!this._switching&&this._state!==this.STATES.INITIALIZING||this._loadingStream||(this._loadCurrentStream(),this._scheduleStreamUpdate()))},h.prototype._getFirstSegmentSeqNum=function(){var t=this._currentStream,e=this._model.getLivePlaybackStartTime();return t.type===c.MAIN||d.isNullOrUndefined(e)?Math.max(t.endSeqNum-this.SEGMENT_OFFSET,t.startSeqNum):t.getSeqNumBeforePosition(e)},h.prototype._getFirstNonBufferedSeqNum=function(t){return t},h.prototype.onStreamLoaded=function(t){this._scheduleStreamUpdate(),o.prototype.onStreamLoaded.call(this,t)},h.prototype._onMediaLoaded=function(){this._scheduleStreamUpdate()},h.prototype._scheduleStreamUpdate=function(){var t,e;this._model.hasEndlist?this._updateStreamTimer.destroy():this._currentStream.isDash()&&this.type!==c.MAIN?this._updateStreamTimer.destroy():(t=this._updateStreamTimer.startTime>0?Date.now()-this._updateStreamTimer.startTime:0,this._updateStreamTimer.reset(),e=this._model.getStreamRefreshInterval()||this.DEFAULT_STREAM_UPDATE_INTERVAL,e-=t,e=Math.max(e,100),e=Math.min(e,this.MAX_STREAM_UPDATE_INTERVAL),this._updateStreamTimer.delay=e,this._updateStreamTimer.start())},h.prototype._getStreamLoadOptions=function(){var t={url:this._currentStream.url,withResponseHeaders:this._model.isDash()};return this._paused&&(t.stopStreamLoadOnError=!0,t.maxRetries=1),t},h.prototype.stopStreamUpdate=function(){this._updateStreamTimer.reset()},h.prototype.canSwitch=function(t){return!this._synchPosition&&("mid-segment"!==t||this._state===this.STATES.LOADING)},h.prototype._handleSegmentEnd=function(){var t=this._currentStream;t&&t.endSeqNum===this._seqNum&&this._model.hasEndlist&&this._setEndOfStream(!0)}},"25Pf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.getEnv=function(t){var e="video-api.yql.yahoo.com";switch(t){case"stage":e="video-api-stage.yql.yahoo.com";break;case"beta":e="video.beta.media.yql.yahoo.com";break;default:e="video-api.yql.yahoo.com"}return e},t}();e.default=n},"2F+v":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div>"),n.b("\n"+i),n.b("    <div class='vp-top-bar vp-vis-hidden'>"),n.b("\n"+i),n.b("        <div class='vp-content-type hide' tabindex='0'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-playing-item-title-header vp-vis-hidden'></div>"),n.b("\n"+i),n.b("    <div class='vp-playing-item-title vp-vis-hidden'></div>"),n.b("\n"+i),n.b("    <div class='vp-logos vp-vis-hidden vp-hide' aria-hidden='true'></div>"),n.b("\n"+i),n.b("    <div class='vp-bottom-bar vp-vis-hidden'>"),n.b("\n"+i),n.s(n.f("isMobile",t,e,1),t,e,1,0,0,"")||(n.b("            <div class='vp-slider' role='slider' tabindex='0'>"),n.b("\n"+i),n.b("                <div class='vp-slider-extension' aria-hidden='true'></div>"),n.b("\n"+i),n.b("                <div class='vp-handle'></div>"),n.b("\n"+i),n.b("                <div class='vp-buffer-bar'></div>"),n.b("\n"+i),n.b("                <div class='vp-playback-bar'></div>"),n.b("\n"+i),n.b("                <div class='vp-visual-seek'>"),n.b("\n"+i),n.b("                    <div class='vp-vs-thumbnail'></div>"),n.b("\n"+i),n.b("                    <div class='vp-vs-time'></div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i)),n.b("        <div class='vp-bottom-container'>"),n.b("\n"+i),n.s(n.f("isMobile",t,e,1),t,e,0,960,1581,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <div class='vp-slider' role='slider' tabindex='0'>"),n.b("\n"+i),n.b("                    <div class='vp-slider-extension' aria-hidden='true'></div>"),n.b("\n"+i),n.b("                    <div class='vp-handle'>"),n.b("\n"+i),n.b('                        <div class="vp-handle-touch-target"></div>'),n.b("\n"+i),n.b("                    </div>"),n.b("\n"+i),n.b("                    <div class='vp-buffer-bar'></div>"),n.b("\n"+i),n.b("                    <div class='vp-playback-bar'></div>"),n.b("\n"+i),n.b("                    <div class='vp-visual-seek'>"),n.b("\n"+i),n.b("                        <div class='vp-vs-thumbnail'></div>"),n.b("\n"+i),n.b("                        <div class='vp-vs-time'></div>"),n.b("\n"+i),n.b("                    </div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i)}),t.pop()),n.b("            <div class='vp-play-controls'>"),n.b("\n"+i),n.b("                <div class='vp-play-btn' role='button' tabindex='0'></div>"),n.b("\n"+i),n.b("                <div class='vp-upnext-container hide'>"),n.b("\n"+i),n.b("                    <div class='vp-upnext-btn' role='button'>"),n.b("\n"+i),n.b("                    </div>"),n.b("\n"+i),n.b("                    <div class='vp-upnext-playlist' role='dialog'>"),n.b("\n"+i),n.b("                        <div class='vp-hover-elem'></div>"),n.b("\n"+i),n.b("                    </div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("                <div class='vp-backward-btn' role='button'>"),n.b("\n"+i),n.b('                    <svg width="23" height="23" xmlns="http://www.w3.org/2000/svg">'),n.b("\n"+i),n.b("                        <g>"),n.b("\n"+i),n.b('                            <g transform="matrix(-1,0,0,1,23,0) " fill-rule="evenodd" fill="none">'),n.b("\n"+i),n.b('                                <path d="m3.5,13.5c0,4.4 3.6,8 8,8s8,-3.6 8,-8l-2,0c0,3.3 -2.7,6 -6,6s-6,-2.7 -6,-6s2.7,-6 6,-6l0,4l5,-5l-5,-5l0,4c-4.4,0 -8,3.6 -8,8z"'),n.b("\n"+i),n.b('                                    fill-rule="nonzero" fill="#FFF"/>'),n.b("\n"+i),n.b("                            </g>"),n.b("\n"+i),n.b('                            <text xml:space="preserve" text-anchor="start" font-family="Helvetica, Arial, sans-serif" font-size="6"'),n.b("\n"+i),n.b('                                class="vp-backward-time" y="16.3" x="8" stroke-width="0" stroke="#000" fill="#ffffff"></text>'),n.b("\n"+i),n.b("                        </g>"),n.b("\n"+i),n.b("                    </svg>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("                <div class='vp-forward-btn' role='button'>"),n.b("\n"+i),n.b('                    <svg width="23" height="23" xmlns="http://www.w3.org/2000/svg">'),n.b("\n"+i),n.b("                        <g>"),n.b("\n"+i),n.b('                            <g fill-rule="evenodd" fill="none">'),n.b("\n"+i),n.b('                                <path d="m3.5,13.5c0,4.4 3.6,8 8,8s8,-3.6 8,-8l-2,0c0,3.3 -2.7,6 -6,6s-6,-2.7 -6,-6s2.7,-6 6,-6l0,4l5,-5l-5,-5l0,4c-4.4,0 -8,3.6 -8,8z"'),n.b("\n"+i),n.b('                                    fill-rule="nonzero" fill="#FFF"/>'),n.b("\n"+i),n.b("                            </g>"),n.b("\n"+i),n.b('                            <text stroke="#ffffff" xml:space="preserve" text-anchor="start" font-family="Helvetica, Arial, sans-serif" font-size="6"'),n.b("\n"+i),n.b('                                class="vp-forward-time" y="16.3" x="8.15" stroke-width="0" fill="#ffffff"></text>'),n.b("\n"+i),n.b("                        </g>"),n.b("\n"+i),n.b("                    </svg>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("                <div class='vp-time-container' tabindex='-1' aria-hidden='true'>"),n.b("\n"+i),n.b("                    <div class='vp-current-time "),n.s(n.f("isMobile",t,e,1),t,e,0,3901,3913,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b(" vp-pb-time ")}),t.pop()),n.b("'></div>"),n.b("\n"+i),n.b("                    <div class='vp-total-time "),n.s(n.f("isMobile",t,e,1),t,e,0,3994,4006,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b(" vp-pb-time ")}),t.pop()),n.b("'></div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("            <div class='vp-menu-controls'>"),n.b("\n"+i),n.s(n.f("isMobile",t,e,1),t,e,1,0,0,"")||(n.b("                <div class='vp-setting-btn vp-button' role='button' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.SETTINGS",t,e,0))),n.b("'>"),n.b("\n"+i),n.b("                    <div class='vp-setting-pointer' aria-hidden='true'></div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i)),n.s(n.f("isMobile",t,e,1),t,e,0,4415,4574,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                    <div class='vp-multiaudio-btn vp-button vp-hidden' role='button' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.MULTI_AUDIO",t,e,0))),n.b("'></div>"),n.b("\n"+i)}),t.pop()),n.b("                <div class='vp-airplay-btn vp-button vp-hidden' role='button' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.AIRPLAY",t,e,0))),n.b("'></div>"),n.b("\n"+i),n.b("                <div class='vp-cc-btn vp-button vp-hide' role='button' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.CC",t,e,0))),n.b("'>"),n.b("\n"+i),n.b("                    <div class='vp-cc-pointer'></div>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("                <div class='vp-volume-btn vp-button' role='button' tabindex='0'>"),n.b("\n"+i),n.s(n.f("isMobile",t,e,1),t,e,1,0,0,"")||(n.b("                    <div class='vp-volume-bar-container'>"),n.b("\n"+i),n.b("                        <div class='vp-multi-audio'></div>"),n.b("\n"+i),n.b("                        <div class='vp-volume-item'>"),n.b("\n"+i),n.b("                            <div class='vp-volume-icon'></div>"),n.b("\n"+i),n.b("                            <div class='vp-volume-level'>"),n.b("\n"+i),n.b("                                <div class='vp-volume-bar'>"),n.b("\n"+i),n.b("                                    <div class='vp-volume-handle'></div>"),n.b("\n"+i),n.b("                                </div>"),n.b("\n"+i),n.b("                                <div class='vp-volume-value'></div>"),n.b("\n"+i),n.b("                            </div>"),n.b("\n"+i),n.b("                        </div>"),n.b("\n"+i),n.b("                    </div>"),n.b("\n"+i)),n.b("                </div>"),n.b("\n"+i),n.b("                <div class='vp-chromecast-btn vp-button' role='button' tabindex='0' style='display:none;' aria-label='"),n.b(n.v(n.d("strings.CHROMECAST",t,e,0))),n.b("'></div>"),n.b("\n"+i),n.b("                <div class='vp-fullscreen-btn vp-button' role='button' tabindex='0'></div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-cast-overlay vp-vis-hidden'>"),n.b("\n"+i),n.b("        <div>"),n.b("\n"+i),n.b("            <div class='cast-overlay-header'>"),n.b("\n"+i),n.b("                <div class='cast-device-info'>"),n.b("\n"+i),n.b("                    <p class='cast-device-name'>"),n.b(n.v(n.d("strings.CAST_PLAYING_RECEIVER",t,e,0))),n.b("</p>"),n.b("\n"+i),n.b("                    <small class='cast-device-type'>"),n.b(n.v(n.d("strings.CHROMECAST",t,e,0))),n.b("</small>"),n.b("\n"+i),n.b("                </div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("            <div class='cast-overlay-content'></div>"),n.b("\n"+i),n.b("            <div class='cast-overlay-footer'>"),n.b("\n"+i),n.b("                <small class='cast-disconnect-btn'>"),n.b(n.v(n.d("strings.DISCONNECT",t,e,0))),n.b("</small>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    "),n.s(n.f("isMobile",t,e,1),t,e,0,6599,6643,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b("<div class='vp-multi-audio vp-hidden'></div>")}),t.pop()),n.b("\n"+i),n.b("    <div class='vp-mute-indicator vp-vis-hidden'></div>"),n.b("\n"+i),n.b("    <div class='vp-object-overlay vp-vis-hidden'></div>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},"2IYR":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("ECHB"),o=i("R+G7"),s=i("+Ojf"),a=function(){function t(){}return t.hasFirstPlaybackStartHappened=function(t){return!0===t.__hasPlayedVideo},t.onceFirstPlaybackStarts=function(e,i){o.default.hasMuteAtFirstPlayRestriction&&(i="function"==typeof i?i:void 0,t.hasFirstPlaybackStartHappened(e)?i&&i():(e.__firstPlaybackStartCb&&(e.__firstPlaybackStartCb=null,delete e.__firstPlaybackStartCb),i&&(e.__firstPlaybackStartCb=i)))},t.waitForValidUserGestureEvent=function(t){if("function"!=typeof t)return s.default.noop;var e,i=["keydown","mousedown"];n.userAgent.mobile&&(o.default.autoplayByUIEvtOnly?i.push("touchend"):(i.push("tap"),e=new r.default(window)));var a=function(){u&&u(),t()},u=function(){e&&e.destroy(),i&&i.forEach(function(t){a&&window.removeEventListener(t,a,!0)}),i=e=a=u=null};return i.forEach(function(t){a&&window.addEventListener(t,a,!0)}),u},t.isUnmuteRestrictionRemoved=function(t){return!!t&&("boolean"!=typeof t.__userTouchRestrictionRemoved||t.__userTouchRestrictionRemoved)},t.removeUnmuteRestriction=function(e){if(e&&!t.isUnmuteRestrictionRemoved(e)){var i=e.muted;e.muted=!1,e.__userTouchRestrictionRemoved=!0,e.setAttribute("data-restricted","false"),e.muted!==i&&(e.muted=i)}},t.removeTouchToPlayRestriction=function(e){e&&o.default.autoplayByUIEvtOnly&&!t.isTouchToPlayRestrictionRemoved(e)&&(e.load(),e.__userTouchToPlayRestrictionRemoved=!0)},t.isTouchToPlayRestrictionRemoved=function(t){return!!t&&(!o.default.autoplayByUIEvtOnly||!!t.__userTouchToPlayRestrictionRemoved)},t.setupTouchToPlayRestrictionRemoval=function(e,i){return!o.default.autoplayByUIEvtOnly||t.isTouchToPlayRestrictionRemoved(e)?(i(),s.default.noop):t.waitForValidUserGestureEvent(function(){t.removeTouchToPlayRestriction(e),i()})},t.createMobileVideoNode=function(){var t=s.default.createVideoNode();return n.userAgent.mobile&&o.default.autoplaySupported?(t.controlsList&&"function"==typeof t.controlsList.add&&t.controlsList.add("nodownload"),o.default.canPlayInline&&t.setAttribute("playsinline","true"),t.muted=!0,t.__userTouchRestrictionRemoved=!1,t.setAttribute("data-restricted","true"),o.default.autoplayByUIEvtOnly&&(t.__userTouchToPlayRestrictionRemoved=!1),o.default.hasMuteAtFirstPlayRestriction&&(t.__onPlaying=function(){t.__hasPlayedVideo=!0,t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb(),delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.__hasPlayedVideo=!1,t.addEventListener("playing",t.__onPlaying)),t):t},t.setMuteSafe=function(e,i){e.muted!==i&&t.isUnmuteRestrictionRemoved(e)&&(o.default.hasMuteAtFirstPlayRestriction&&!t.hasFirstPlaybackStartHappened(e)?t.onceFirstPlaybackStarts(e,function(){e.muted=i}):e.muted=i)},t.cleanupVideoNode=function(t){t.__firstPlaybackStartCb&&(t.__firstPlaybackStartCb=null,delete t.__firstPlaybackStartCb),t.__onPlaying&&(t.removeEventListener("playing",t.__onPlaying),delete t.__onPlaying)},t.available=!0,t}();e.default=a},"2fkz":function(t,e,i){"use strict";t.exports.Command=o;var n=i("RwmF"),r=i("/iNa");function o(t,e){this.data=t,this.client=e,n.call(this,this.constructor.name)}t.exports.CmdNames={CMD_MEDIA_LOAD:"MediaLoad",CMD_STREAM_LOAD:"StreamLoad",CMD_LICENSE_LOAD:"LicenseLoad",CMD_SEGMENT_LOAD:"SegmentLoad",CMD_MP4_INIT_SEGMENT_LOAD:"Mp4InitSegmentLoad",CMD_SUBTITLE_SEGMENT_LOAD:"SubtitleSegmentLoad",CMD_ERROR_HANDLE:"ErrorHandle"},t.exports.CmdEvents={CMD_COMPLETE:"Complete",CMD_PROGRESS:"Progress",CMD_ERROR:"Error"},r.inherits(o,n),o.prototype.destroy=function(){this.data=null,n.prototype.destroy.call(this)},o.prototype.execute=function(){},o.prototype.cancel=function(){}},"3/TB":function(t,e,i){"use strict";t.exports=u;var n=i("HdM5"),r=i("UbnH"),o=i("/iNa"),s=i("RwmF"),a=i("bXaf");function u(t){if(!t)throw new Error("Invalid argument: data argument of the ProcessorChain is not complete");var e=this;e._config=t,e._preProcessor=null,e._processor=null,s.call(e,e.constructor.name),t.encryptionData&&(e._preProcessor=e.__controller.create(a,t.encryptionData)),e._processor=n.create(e.__controller,t.containerFormat,t),e._preProcessor&&e._processor.setSource(e._preProcessor),e._first=e._preProcessor||e._processor,e._last=e._processor,e._last&&(e._last.addEventListener(r.DATA_PROCESS_PROGRESS,function(t,i){e.publish(r.DATA_PROCESS_PROGRESS,t,i)},e),e._last.addEventListener(r.DATA_PROCESS_COMPLETE,function(t){e.publish(r.DATA_PROCESS_COMPLETE,t)},e),e._last.addEventListener(r.DATA_PROCESS_ERROR,function(){e.publish(r.DATA_PROCESS_ERROR)},e))}o.inherits(u,s),u.prototype.destroy=function(){this._preProcessor&&(this._preProcessor.destroy(),this._preProcessor=null),this._processor&&(this._processor.destroy(),this._processor=null),this._first=null,this._last=null,s.prototype.destroy.call(this)},u.prototype.append=function(t){this._first&&this._first.append(t)},u.prototype.close=function(){this._first&&this._first.close()},u.prototype.endOfSegment=function(){this._first&&this._first.endOfSegment()}},"3WiS":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("xqNZ"),l=i("+Ojf"),c=i("ECHB"),d=i("CIyJ");!function(t){t.UI_INTERACT="start-screen-ui-interact",t.START_SCREEN_CLICK="start-screen-click"}(o=e.StartScreenEvent||(e.StartScreenEvent={}));var h=function(t){function e(e){var i=t.call(this,"StartScreen")||this;return i._eventBus=e,i}return r(e,t),e.prototype.create=function(t,e){var i=this,n=e.startScreenConfig,r={showTitle:n.showTitle&&t.title,showButton:n.showButton,showDescription:n.showDescription&&t.description,showProvider:!1},s=t.posterUrl||t.thumbnail;this.node=l.default.render(d,{item:t,config:r,width:e.uiState.width,height:e.uiState.height,imageSrc:s,strings:u.default,show:e.uiState&&e.uiState.isCSSLoaded});return this._startScreenTap=new c.default(this.node,function(){var t=function(){i.publish(o.START_SCREEN_CLICK),i.publish(o.UI_INTERACT,{srcElement:"startScreen"})};a.userAgent.htc_one?window.setTimeout(t,500):t()}),this.node},e.prototype.updateTitle=function(t){var e=this.node&&this.node.querySelector(".vp-start-screen-title");e&&(e.textContent=t)},e.prototype.destroy=function(){this._startScreenTap&&(this._startScreenTap.destroy(),this._startScreenTap=null)},e}(s.default);e.StartScreen=h},"3h5f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2"),r=i("ma23"),o=function(){function t(){this.version="0.2.137",this.mimetype=n.MediaItemMimeType.CONTAINER,this.type=r.PluginType.METADATA}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.resolve=function(t,e,i){var r=t.map(function(t){return t.metadata=t.metadata||{},t.metadata.type=n.MediaItemType.CONTAINER,t});i.onComplete(r)},t.prototype.recover=function(t,e,i){},t.prototype.cancel=function(){},t}();e.default=o},"3kti":function(t,e,i){"use strict";t.exports=n;function n(){}n.prototype._getID3Data=function(t,e){for(var i=e,n=0;this._isHeader(t,e);)n+=10,n+=this._readSize(t,e+6),this._isFooter(t,e+10)&&(n+=10),e+=n;return n>0?t.subarray(i,i+n):null},n.prototype._isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},n.prototype._isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},n.prototype._readSize=function(t,e){var i=(127&t[e])<<21;return i|=(127&t[e+1])<<14,i|=(127&t[e+2])<<7,i|=127&t[e+3]},n.prototype.getString=function(t){var e=this._getID3Data(t,0);if(!e||!e.length)return null;for(var i="",n=0;n<e.length;n++)i+=String.fromCharCode(e[n]);return i},n.prototype._extendedHeaderSize=function(t){return 100===t[5]?self._readSize(t,10):0},n.prototype._getFrameId=function(t,e){var i=t.subarray(e,e+4);return String.fromCharCode.apply(null,i)},n.prototype.getID3Payload=function(t){var e=this._getID3Data(t,0);if(!e||!e.length)return null;var i=10+this._extendedHeaderSize(e);return{key:this._getFrameId(e,i),data:e.subarray(i+10)}},n.prototype.extractID3FromMessage=function(t){if(!t)return null;t=new Uint8Array(t);for(var e=0;!this._isHeader(t,e);)e++;return e+10>t.length?null:t.subarray(e)}},"4JlD":function(t,e,i){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,i,a){return e=e||"&",i=i||"=",null===t&&(t=void 0),"object"==typeof t?o(s(t),function(s){var a=encodeURIComponent(n(s))+i;return r(t[s])?o(t[s],function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[s]))}).join(e):a?encodeURIComponent(n(a))+i+encodeURIComponent(n(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var i=[],n=0;n<t.length;n++)i.push(e(t[n],n));return i}var s=Object.keys||function(t){var e=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e}},"4Qju":function(t,e,i){"use strict";(function(t){var i="undefined"!=typeof window?window:void 0!==t&&t.window?t.window:{},n=i.navigator?i.navigator:"undefined"!=typeof navigator?navigator:{},r=n.userAgent?n.userAgent.toLowerCase().replace(/<[A-Za-z]+.*?(\/>|>.*?<\/[A-Za-z]+>)|javascript:/g,""):"",o=function(t){if(null===t)return!1;var e=t[1];return parseFloat(e.replace("_",".").split(".",2).join("."))||1},s=function(t){for(var e=(i&&i.location&&i.location.search&&i.location.search.substring(1)||"").split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])===t)return decodeURIComponent(r[1])}return null};if(e.ua=r,e.chromium=o(/chromium\/([^\s]*)/.exec(r)),e.edge=o(/edge\/([^\s]*)/.exec(r)),e.opera=/opr\/|opera\//.test(r),e.chrome=!e.chromium&&!e.edge&&!e.opera&&(o(/chrome\/([^\s]*)/.exec(r))||o(/crios\/([^\s]*)/.exec(r))),e.ie=o(/msie ([^;]*)/.exec(r))||o(/trident.*; rv:([0-9.]+)/.exec(r)),e.firefox=!e.ie&&o(/firefox\/([^\s]*)/.exec(r)),e.android=/android/.test(r),e.androidTablet=e.android&&!/mobile/.test(r),e.htc_one=/htc_one/.test(r),e.vizio=/vizio/.test(r)||"vizio"===s("man"),e.tivo=/tivo/.test(r),e.presto=e.opera&&/presto/i.test(r),e.fios=/verizon.*(stb|vms|ipc)/.test(r),e.philips=/philipstv/.test(r),e.toshiba=/tsb/.test(r),e.amazon=e.android&&/amazonwebappplatform/.test(r)&&/aft/.test(r),e.lg=/web0s/.test(r),e.tizen=/tizen/.test(r),e.orsay=/smarttv/.test(r)&&!e.tizen&&!e.lg&&!e.philips,e.samsung=e.orsay||e.tizen,e.sony=/sony|bravia/.test(r),e.playstation=/(playstation)/.test(r),e.ios=/(ipad|iphone|ipod)/.test(r),e.iphone=/(iphone|ipod)/.test(r)&&!/ipad/.test(r),e.ipad=e.ios&&!e.iphone,e.androidBrowser=!e.chrome&&/android/.test(r),e.androidVersion=o(/android\s([0-9.]*)/.exec(r)),e.safari=!e.chrome&&!e.chromium&&!e.android&&/safari\/([^\s]*)/.test(r)&&o(/version\/([^\s]*)/.exec(r)),e.iosWebView=e.ios&&!navigator.standalone&&!e.safari,e.iosVersion=e.ios&&o(/\bos ((\d+_?){2,3})\s/.exec(r)),e.mobile=e.ios||e.android&&!e.amazon,e.safariDesktop=!e.mobile&&e.safari,e.tv=e.vizio||e.tivo||e.amazon||e.samsung||e.sony||e.playstation||e.lg||e.fios||e.philips||e.toshiba,e.desktop=!e.mobile&&!e.tv,e.phantomJS=i.window&&i.window._phantom,e.tv){var a=void 0!==a?a:void 0!==t&&t.tv?t.tv:{};if(e.class=e.ua,e.vizio)e.os="vizio",e.class=s("class")||s("soc"),a&&a.tts&&(e.class+="-tts");else if(e.tivo)e.os="tivo",/tcd849/.test(r)?e.class="TCD849":/tcd8d9/.test(r)?e.class="TCD8D9":/tcd8f9/.test(r)?e.class="TCD8F9":/tcd8/.test(r)?e.class="TCD8":/tcdd/.test(r)?e.class="TCDD":/tcd7/.test(r)?e.class="TCD7":/tcda9/.test(r)&&(e.class="TCDA9");else if(e.amazon)e.os="amazon",/aftb/.test(r)?e.class="AFTB":/afts/.test(r)?e.class="AFTS":/aftm/.test(r)?e.class="AFTM":/aftn/.test(r)?e.class="AFTN":/aftrs/.test(r)?e.class="AFTRS":/aftt/.test(r)&&(e.class="AFTT");else if(e.lg)e.os="lg",/qtwebengine/.test(r)?e.class="3":/safari\/537/.test(r)?e.class="1":/safari\/538/.test(r)&&(e.class="2");else if(e.samsung){e.os="samsung";var u="default";if(e.tizen){var l=void 0!==l?l:i.tizen;l&&l.systeminfo&&(e.version=l.systeminfo.getCapability("http://tizen.org/feature/platform.version"));var c=void 0!==c?c:i.webapis;if(c&&c.productinfo&&c.productinfo.getRealModel)try{var d=c.productinfo.getRealModel(),h=d.substr(4,isNaN(Number(d[5]))?2:1);u=h+d.substr(1===h.length?5:6,1)}catch(t){u="default"}}else u="orsay";e.class=u}else e.roku||e.chromecast||e.toshiba||e.philips||e.appletv||e.xbox||(e.sony?(e.os="sony",/bdp/.test(r)?e.class="BDP":/bravia|sony-kj/.test(r)?e.class="BRAVIA":e.class="default"):e.playstation?(e.os="playstation",/4pro/.test(r)?e.class="4PRO":/playstation 4/.test(r)?e.class="4":/vita/i.test(r)&&(e.class="VITA")):e.fios?(e.os="fios",/stb/.test(r)?e.class="STB":/vms/.test(r)?e.class="VMS":/ipc/.test(r)&&(e.class="IPC")):e.os=null)}else e.ios?e.os="ios":e.android?e.os="android":/windows|win32/.test(r)?(e.os="windows",e.winXP=/(windows nt 5\.[1-3])/.test(r),e.class=e.winXP?"XP":e.class,e.winVista=/(windows nt 6\.0)/.test(r),e.class=e.winVista?"VISTA":e.class,e.win7=/(windows nt 6\.1)/.test(r),e.class=e.win7?"7":e.class,e.win8=/(windows nt 6\.2)/.test(r),e.class=e.win8?"8":e.class,e.win8_1=/(windows nt 6\.3)/.test(r),e.class=-1*e.win?"8_1":e.class,e.win10=/(windows nt 10\.0)/.test(r),e.class=e.win10?"10":e.class,e.win64=/(wow64|win64)/.test(r),e.architecture=e.win64?"64":"32"):/macintosh|mac_powerpc/.test(r)?e.os="macintosh":/symbos/.test(r)?e.os="symbos":/linux/.test(r)?e.os="linux":e.os=null}).call(this,i("yLpj"))},"4g0/":function(t,e,i){t.exports=i("bE/8")},"4oyL":function(t,e,i){"use strict";t.exports={userAgent:i("sLCx"),capabilities:i("IlcD")}},"4rDT":function(t,e,i){"use strict";t.exports=r;var n=i("caRl");function r(){this._mp4Content=null,this._mp4Box=new n}r.prototype.destroy=function(){this._mp4Content=null},r.prototype.generate=function(t){if(!t)return null;var e=[t],i=null,n=null,r=null,o=0;if(t.config.shouldInit){var s="audio"===t.type?"mp41":"avc1";o+=(i=this._generateInitSegment(e,s))?i.length:0}t.frames.length&&(o+=(n=this._generateFragmentMetadata(e))?n.length:0,o+=(r=this._generateFragmentData(e))?r.length:0),this._mp4Content=new Uint8Array(o);var a=0;i&&(this._mp4Content.set(i,a),a+=i.length),n&&(this._mp4Content.set(n,a),a+=n.length),r&&(this._mp4Content.set(r,a),a+=r.length);var u=t.frames.length>0?t.frames[t.frames.length-1].duration:0,l=t.endTime+u;return{data:this._mp4Content,type:t.type,codec:t.config.codec,mimeType:t.type+'/mp4; codecs="'+t.config.codec+'"',startTime:t.frames.length?t.startTime/t.config.timescale:0,endTime:t.frames.length?l/t.config.timescale:0,endTimestamp:l}},r.prototype._generateInitSegment=function(t,e){if(!t||!t.length)return null;var i=this._mp4Box.initSegment(t,e);return i||null},r.prototype._generateFragmentMetadata=function(t){var e=this,i=0;return t&&t.length?(t.forEach(function(t){i=t.config.seqNum,t.frames&&t.frames.length&&t.frames.forEach(function(i,n,r){i.size=i.nalUnitSize?i.nalUnitSize+4*i.nalUnits.length:i.data?i.data.length:0,n<r.length-1?i.duration=t.frames[n+1].dts-i.dts:i.duration=n>0?i.dts-t.frames[n-1].dts:t.config.defaultFrameDuration||e._getDefaultDuration(t.type.track.config.timescale),i.duration})}),e._mp4Box.moof(i,t)):null},r.prototype._generateFragmentData=function(t){var e=this;if(!t||!t.length)return null;var i,n=[],r=0;t.forEach(function(t){"video"===t.type&&t.frames.forEach(function(t){t.normalizedData=new Uint8Array(t.nalUnitSize+4*t.nalUnits.length);var e=new DataView(t.normalizedData.buffer),i=0;t.nalUnits.forEach(function(n){e.setUint32(i,n.data.byteLength),i+=4,t.normalizedData.set(n.data,i),i+=n.data.byteLength}),t.data=t.normalizedData}),(i=e._mp4Box.mdat(t))&&i.length&&(n.push(i),r+=i.length)});var o=new Uint8Array(r),s=0;return n.forEach(function(t){o.set(t,s),s+=t.length}),o},r.prototype._getDefaultDuration=function(t,e){return("audio"===t?.0232199546:.0333333333)*e}},"4rJX":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-loading-screen vp-vis-hidden'>"),n.b("\n"+i),n.b("    <div class='vp-loading-spinner vp-spinner-icon'></div>"),n.b("\n"+i),n.b("</div>"),n.fl()},partials:{},subs:{}})},"5Gwc":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-nfl-branding-container'>"),n.b("\n"+i),n.b("    <div class='vp-nfl-branding'>"),n.b("\n"+i),n.b("        <a href='http://www.nfl.com/' target='nfl_site'>"),n.b("\n"+i),n.b("            <span class='vp-nfl-brand vp-nfl-brand-span'></span>"),n.b("\n"+i),n.b("            <span class='vp-nfl-brand vp-nfl-brand-logo'></span>"),n.b("\n"+i),n.b("        </a>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.fl()},partials:{},subs:{}},"<div class='vp-nfl-branding-container'>\n    <div class='vp-nfl-branding'>\n        <a href='http://www.nfl.com/' target='nfl_site'>\n            <span class='vp-nfl-brand vp-nfl-brand-span'></span>\n            <span class='vp-nfl-brand vp-nfl-brand-logo'></span>\n        </a>\n    </div>\n</div>",n)},"5RR1":function(t,e,i){"use strict";t.exports=a;var n=i("nyAz"),r=i("9nRl"),o=i("/iNa"),s=i("x7P6").StreamingMode;function a(t){if(!t||!t.userAgent)throw new Error("Invalid/incomplete configuration to AppModel");this.configure(t),this.streams=[],this.altRenditionGroups=[],this.live=!1,this.duration=0,this.timescale=9e4,this.TIMESTAMP_COMPARE_EPSILON=.065,this.PIXEL_RATIO_360=6,this.currentPlayingStreamIndex=0,this.currentLoadingStreamIndex=0,this.preloading=!1,this.currentKbps=0,this.infoUpdateSent=!0,this.streamingMode=s.HLS,this.drmRequired=!1,this.drmInfo=[],this.licenseType="none",this.is360=t.metadata&&t.metadata.is360||!1,this.setDimensions(t.dimensions)}a.prototype.destroy=function(){this.config=null,this.streams=[],this.altRenditionGroups=[]},a.prototype.configure=function(t){var e=this;e.config=e.config||r.deepCopy(n),e.userAgent=t.userAgent,t&&Object.keys(t).forEach(function(i){e.config.hasOwnProperty(i)&&(e.config[i]=t[i])}),e.config.demux.startChunkWithKeyFrame=!(e.userAgent.chrome&&e.userAgent.chrome>=50)||e._isUplynk(t.metadata),e.config.demux.useTimer=!(e.userAgent.chrome||e.userAgent.ie||e.userAgent.edge)},a.prototype._isUplynk=function(t){if(!t)return!1;var e=t.url,i=t.streams&&t.streams.length?this._getStreamUrl(t.streams[0]):null;return o.isUplynk(e||i)},a.prototype._getStreamUrl=function(t){if(!t)return null;var e=t.url;return!e&&t.host&&t.path&&(e=t.host+t.path),e},a.prototype.update=function(t){var e=this;t&&(Object.keys(t).forEach(function(i){("currentKbps"!==i||t.currentKbps||e.infoUpdateSent)&&e.hasOwnProperty(i)&&(e[i]=t[i])}),e.infoUpdateSent=!1)},a.prototype.setDimensions=function(t){var e=this._context.node;this._dimensions=t||{width:e?e.clientWidth:0,height:e?e.clientHeight:0}},a.prototype.getBufferLength=function(){var t,e,i=this._context.node,n=i.buffered,r=0,o=i.currentTime;if(0===o){for(t=0;t<n.length;t++)r+=n.end(t)-n.start(t);return r}var s=this._context.mediaSource;r=1/0;for(var a=0;a<s.activeSourceBuffers.length;a++){var u=this._getBufferLengthInSrcBuffer(o,s.activeSourceBuffers[a]);u>=0&&(r=Math.min(r,u))}for(t=0;t<n.length;t++)if(o>=n.start(t)&&o<n.end(t)){e=t;break}return e>=0&&n.length&&(r=Math.min(n.end(e)-o,r)),r===1/0&&(r=0),r},a.prototype._getBufferLengthInSrcBuffer=function(t,e){if(!e)return-1;for(var i,n=e.buffered,r=0,o=0;o<n.length;o++)if(t>=n.start(o)&&t<n.end(o)){i=o;break}return i>=0&&n.length&&(r=n.end(i)-t),r},a.prototype.getBufferedDto=function(){for(var t=this._context.node.buffered,e={length:t.length,ranges:[]},i=0;i<t.length;i++)e.ranges[i]={start:t.start(i),end:t.end(i)};return e},a.prototype.getCurrentPlayingStream=function(){return this.streams&&this.streams.length&&this.currentPlayingStreamIndex>=0&&this.currentPlayingStreamIndex<this.streams.length?this.streams[this.currentPlayingStreamIndex]:null},a.prototype.getDimensions=function(){return this._dimensions},a.prototype.getPixelRatio=function(){var t=1;try{window&&(t=window.devicePixelRatio)}catch(e){t=1}return t||(t=1),this.is360&&(t*=this.PIXEL_RATIO_360),t},a.prototype.getCurrentDate=function(){var t=this.getCurrentPlayingStream(),e=this._context.node.currentTime,i=t?t.segments:null;if(i)for(var n=i.length-1;n>=0;n--)if(i[n].programDateTime>0&&e>=i[n].startTime){var r=parseInt(1e3*(e-i[n].startTime));return i[n].programDateTime+r}}},"5bs/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("z88l"),r=i("he5r"),o=i("+O1b"),s=function(){function t(t){this._playlist=null,this._playlistFetchIndex=0,this._fetching=!1,this._destroyed=!1,this._fetchCompleteCallback=null,this._model=t,this._sapiPlaylist=new o.default(this._model)}return t.prototype.fetchMore=function(t){var e=this;this._fetching||this._destroyed||(this._fetching=!0,this._sapiPlaylist.resolve({start:this._playlistFetchIndex},function(i,n){e._fetching=!1,e._destroyed||(!i&&n&&(e._playlistFetchIndex+=n.length),t(i,n))}))},t.prototype.onPlaybackStart=function(){this._shouldFetchMore()&&this._fetchMoreToRender()},t.prototype.onPlaylistComplete=function(t){this._shouldFetchMore()&&this._model.skipOnError!==r.SkipOnError.NEVER&&(this._fetchCompleteCallback=t,this._fetching||this._fetchMoreToRender())},t.prototype.onPlayerRendered=function(){var t=this._playlist;this._model.loop||this._model.showEndScreen||!t||t.getSize()-t.getPosition()<r.PLAYLIST_COUNT_PER_PAGE&&this._model.playlistMimetype!==n.STRUCTURED_PLAYLIST_MIMETYPE&&this._model.videoRecommendations&&this._fetchMoreToRender()},Object.defineProperty(t.prototype,"playlist",{set:function(t){this._playlist=t},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._destroyed=!0},t.prototype._shouldFetchMore=function(){if(!this._playlist)return!1;var t=this._playlist.getPosition()+1===this._playlist.getSize(),e=!(!this._model.playlistId&&!this._model.relatedVideoId);return t&&this._model.continuousPlay&&!this._model.loop&&e&&this._model.playlistMimetype!==n.STRUCTURED_PLAYLIST_MIMETYPE&&!this._model.showEndScreen},t.prototype._fetchComplete=function(t,e){!t&&e&&this._playlist&&this._playlist.addItems(e),this._fetchCompleteCallback&&this._fetchCompleteCallback(t,e),this._fetchCompleteCallback=null},t.prototype._fetchMoreToRender=function(){var t=this;this.fetchMore(function(e,i){t._fetchComplete(e,i)})},t}();e.default=s},"5yHC":function(t,e,i){"use strict";t.exports=i("4oyL").userAgent},"6I/I":function(t,e,i){"use strict";t.exports.Streamer=y;var n=i("/iNa"),r=i("RwmF"),o=i("2fkz").CmdNames,s=i("iSaY"),a=i("y5bh").HLSEvent,u=i("7M2b"),l=u.StreamLoader,c=u.Events,d=i("lPOR"),h=i("R6Gm"),p=i("V66C").StreamTypes,f=i("8z9E"),_=t.exports.Events={SEG_LOAD_START:"streamerSegLoadStart",SEG_LOAD_PROGRESS:"streamerSegLoadProgress",SEG_LOAD_COMPLETE:"streamerSegLoadComplete",SEG_LOAD_ERROR:"streamerSegLoadError",PRELOAD_COMPLETE:"streamerPreloadComplete",STREAM_LOAD_COMPLETE:"StreamLoadComplete",STREAM_LOAD_ERROR:"StreamLoadError",LIVE_SYNCH:"streamerLiveSynch"},m=t.exports.SynchTypes={INIT:"synchAtInit",TIME_GAP:"synchAtTimeGap"};function y(t){var e=this.__controller;r.call(this,this.constructor.name),this._model=e.model,this._services=e.services,this._commandManager=e.create(h),this._streamLoader=e.create(l,this._commandManager),this._streamLoader.addEventListener(c.STREAM_LOADED,this.onStreamLoaded,this),this._streamLoader.addEventListener(c.STREAM_LOAD_ERROR,this.onStreamLoadError,this),this.AVG_BW_MEASUREMENT_INTERVAL=30,this._playedSinceLastBWMeasurement=0,this._lastPlayedTime=0,this._commandName=o.CMD_SEGMENT_LOAD,this._currentStream=t,this.type=t?t.type:null;var i=t.altRenditionGroups&&t.altRenditionGroups.SUBTITLES&&t.altRenditionGroups.SUBTITLES.hasStreams();this.type&&this.type!==p.VIDEO&&this.type!==p.MAIN||i||(this._cea608TrackData=[],this._cea608Parser=new f(this.sendVttEventCB.bind(this))),this.STATES={ERROR:-1,NONE:0,INITIALIZING:1,INITIALIZED:2,LOADING:3},this._state=this.STATES.NONE,this._loadingStream=!1,this._preloading=!1,this._seqNum=NaN,this._endOfStream=!1,this._targetPosition=null,this._paused=!1,this._maxBuffer=this._model.config.maxBuffer,this._live=this._model.live,this._isAltAudioActive=!1,this._manualStreamChange=!1,this._endTimestamps={audio:NaN,video:NaN},this._switching=!1,this._retryExclusion=[403]}n.inherits(y,r),y.prototype.destroy=function(){this._streamLoader.destroy(),this._state=this.STATES.NONE,this._currentStream=null,this._commandManager&&(this._commandManager.destroy(),this._commandManager=null),r.prototype.destroy.call(this)},y.prototype.setCurrentStream=function(t){t&&!t.equals(this._currentStream)&&(this._currentStream=t,this.onSwitchBegin())},y.prototype.isActive=function(){return this._currentStream&&this._currentStream.url&&this._currentStream.url.length>0},y.prototype.setAltAudioActive=function(t){this._isAltAudioActive=t},y.prototype.getCurrentStream=function(){return this._currentStream},y.prototype.process=function(t){if("number"==typeof t&&(this._targetPosition=t),this.isStreamReady()||this._state===this.STATES.ERROR){if(this._shouldLoadSegment()){var e=this._getNextSeqNum(this._targetPosition),i=this._isSegmentAvailable(e);"empty"!==i?"ahead"!==i&&("behind"!==i?this._shouldLoadSegment()&&(this._targetPosition=null,this._loadSegment(e)):this._synch(m.TIME_GAP)):this._updateStream()}}else this._initializeStream()},y.prototype.suspendStreaming=y.prototype.resumeStreaming=function(){},y.prototype.onPlay=function(t){this._paused=!1,this._maxBuffer=this._model.config.maxBuffer,t&&this.onSynchBegin()},y.prototype.onPlaying=function(){this._manualStreamChange=!1},y.prototype.onPause=function(){this._paused=!0},y.prototype.onSeeking=function(t){this._closeLoadingSegments(),this._setEndOfStream(!1),this.process(t)},y.prototype.onSeeked=function(){},y.prototype.onError=function(){this._commandManager&&this._commandManager.removeAllCommands()},y.prototype.onComplete=function(){},y.prototype.onTimeUpdate=function(t){if(this._lastPlayedTime){var e=t-this._lastPlayedTime;e>0&&(this._playedSinceLastBWMeasurement+=e)}this._playedSinceLastBWMeasurement>this.AVG_BW_MEASUREMENT_INTERVAL&&(this._setAvgBWToLocalStorage(this._services.bandwidthEstimator.averageBandwidth),this._playedSinceLastBWMeasurement=0),this._lastPlayedTime=t},y.prototype.onPreloadBegin=function(){this._preloading=!0,this._maxBuffer=this._model.config.preloadBufferLimit},y.prototype.onPreloadEnd=function(){this._preloading=!1},y.prototype._synch=function(){},y.prototype.isStreamReady=function(){var t=this._currentStream;return t&&t.isReady()&&this._state>=this.STATES.INITIALIZED},y.prototype._initializeStream=function(){this.isActive()&&(this._state=this.STATES.INITIALIZING,this._updateStream())},y.prototype._shouldLoadSegment=function(){var t=this._isBufferFull(),e=this._model.config.stopBufferingOnPause;return this._preloading&&t&&this.publish(_.PRELOAD_COMPLETE,this),!this._endOfStream&&this._state!==this.STATES.LOADING&&((!this._paused||!e)&&(!t&&!this._isTotalBufferFull()))},y.prototype._isSegmentAvailable=function(t){var e=this._currentStream;if(!e||e.isEmpty()||isNaN(t))return"empty";if(!e.contains(t)){if(t<e.startSeqNum)return"behind";if(t>e.endSeqNum)return"ahead"}return"available"},y.prototype._isBufferFull=function(){if(this.type&&this._model.bufferedAndPending){var t={buffered:0,pending:0},e=this._model.bufferedAndPending.video||t;return this.type!==p.MAIN&&this.type!==p.VIDEO&&(e=this._model.bufferedAndPending.audio||t),e.buffered+e.pending>=this._maxBuffer}return this._model.bufferLength+this._model.pendingBufferLength>=this._maxBuffer},y.prototype._isTotalBufferFull=function(){var t=this._model;return t.getTotalBufferLength()>=t.config.maxTotalBuffer},y.prototype.onSwitchBegin=function(){this._switching=!0,this._updateStream()},y.prototype.onSwitchEnd=function(){this._switching=!1},y.prototype._updateStream=function(){this._loadingStream||this._loadCurrentStream()},y.prototype._loadCurrentStream=function(){this.isActive()&&(this._loadingStream=!0,this._streamLoader.load(this._currentStream,this._getStreamLoadOptions()))},y.prototype._getStreamLoadOptions=function(){return{url:this._currentStream.url,retryExclusion:this._retryExclusion,withResponseHeaders:this._model.isDash()}},y.prototype.onStreamLoaded=function(t){this._state===this.STATES.INITIALIZING&&(this._state=this.STATES.INITIALIZED),this._loadingStream=!1,this.publish(_.STREAM_LOAD_COMPLETE,this,{stream:t.dto()})},y.prototype.onStreamLoadError=function(t,e){e.code===s.ERR_XHR_LOAD_LIVE_PAUSE[0]&&this.stopStreamUpdate(),this.publish(_.STREAM_LOAD_ERROR,this,{err:e,stream:t}),this._state=this.STATES.ERROR,this._loadingStream=!1,this.process()},y.prototype._getNextSeqNum=function(t){var e=this._currentStream,i=NaN;return i="number"==typeof t?e.getSeqNumBeforePosition(t+this._model.TIMESTAMP_COMPARE_EPSILON):isNaN(this._seqNum)?this._getFirstSegmentSeqNum():this._state===this.STATES.ERROR||this._segAborted?this._seqNum:this._seqNum+1,i=this._getFirstNonBufferedSeqNum(i),this._live||(i=Math.max(i,e.startSeqNum),i=Math.min(i,e.endSeqNum)),i},y.prototype._getFirstNonBufferedSeqNum=function(t){var e=this._currentStream,i=this._model.bufferedRanges,n=i.length,r=this._getBufferedRangeIndex(t),o=this._model.userAgent;if(o&&o.safariDesktop)return t;if(this._model.isDash())return t;if(r>=0&&n&&r<n){var s=i.ranges[r].end;return!this._live&&s>=this._model.duration?(this._setEndOfStream(!0),e.endSeqNum):e.getSeqNumBeforePosition(s)}return t},y.prototype._getFirstSegmentSeqNum=function(){return this._currentStream.getSeqNumBeforePosition(0)},y.prototype._getBufferedRangeIndex=function(t){var e=this._currentStream.getSegmentfromSeqNum(t);if(!e)return-1;for(var i=this._model.TIMESTAMP_COMPARE_EPSILON,n=this._model.bufferedRanges,r=0;r<n.length;r++){var o=n.ranges[r],s=o.start-i,a=o.end+i;if(s=0===e.startTime&&s<.1?0:s,e.startTime>=s&&e.startTime+e.duration<=a)return r}return-1},y.prototype._beforeLoadSegment=function(){},y.prototype._loadSegment=function(t){if(this._beforeLoadSegment(t),!(this._state<this.STATES.INITIALIZED)){this._closeLoadingSegments(),this._state=this.STATES.LOADING,this._seqNum=t,this._segAborted=!1;var e=this._executeSegmentLoadCommand(this._seqNum);e&&(this._printLoadMessage(e,this._currentStream),this.publish(_.SEG_LOAD_START,this),this._afterLoadSegment(t))}},y.prototype._afterLoadSegment=function(){},y.prototype._executeSegmentLoadCommand=function(t){var e=this._getSegmentLoadCmdData(t),i=e?e.segment:null;return i?(this._currSegLoadCmd=this._commandManager.executeCommand(this._commandName,e,this),i):null},y.prototype._getSegmentLoadCmdData=function(t){var e=this._currentStream;return e?{segment:e.getSegmentfromSeqNum(t),stream:e}:null},y.prototype.onSegmentLoadProgress=function(t,e){var i,n,r,o,s,a=this;if(e)if(e.id!==d.MessageIds.TIMED_METADATA){e.getParam?(i=e.getParam("tracks"),n=e.getParam("perfInfo"),r=e.getParam("bytesTotal")||0,o=e.getParam("parsedInfo"),s=e.getParam("cea608TrackData")):e.cea608TrackData&&(s=e.cea608TrackData);var u=o?o.position:e.position,l=o&&o.inWorkerScope||!1;switch(a.publish(_.SEG_LOAD_PROGRESS,a,{seqNum:a._seqNum,position:u,bytesTotal:r,inWorkerScope:l,perfInfo:n}),a._model.preloading=a._preloading,u){case"firstByte":return;case"start":break;case"end":a._state===a.STATES.LOADING&&(a._state=a.STATES.INITIALIZED)}if(i&&(i.forEach(function(t){t.minBufferTime=a.__controller.getMinimumBufferTime(),a._endTimestamps[t.type]=t.endTimestamp}),a._sendToBuffer(i,e.getParam("transferables"))),a._cea608TrackData&&s&&s.length>0)for(var c=0;c<s.length;c++)a._cea608TrackData.push(s[c]);"end"===u&&(a._model.setSegEndTimeStamps(a.type,a._currentStream.groupId,a._seqNum,a._endTimestamps),a._endTimestamps.audio=NaN,a._endTimestamps.video=NaN)}else{var h=e.getParam("timedMetadata");a._model.updateTimedMetadata(h,a._seqNum)}},y.prototype.onSegmentLoadComplete=function(t,e){if(this._state===this.STATES.LOADING&&(this._state=this.STATES.INITIALIZED),this._cea608TrackData&&this._cea608TrackData.length>0){for(var i=[],n=0;n<this._cea608TrackData.length;n++){for(var r=this._cea608TrackData[n],o=0;o<i.length&&r.pts>=i[o].pts;)o++;i.splice(o,0,r)}var s=this._currentStream.getSegmentfromSeqNum(this._seqNum);this._cea608Parser.parse(i,s),this._cea608TrackData=[]}this._commandManager.removeCommand(t),e&&e.getParam("segTimeStamp")&&this._model.setPrevSegTimeStamps(e.getParam("segTimeStamp")),this._handleSegmentEnd(),this.publish(_.SEG_LOAD_COMPLETE,this,{stream:this._currentStream}),this._currSegLoadCmd=null},y.prototype.onSegmentLoadError=function(t,e){this.abortCurrentSegment(t),this._currSegLoadCmd=null;var i=e&&e.code===s.ERR_XHR_LOAD[0]?new s.Error(s.ERR_SEGMENT_LOAD):e;this.publish(_.SEG_LOAD_ERROR,this,{seqNum:this._seqNum,err:i,stream:this._currentStream})},y.prototype.abortCurrentSegment=function(t){return this._state!==this.STATES.LOADING?null:(t&&this._commandManager.removeCommand(t),this._state===this.STATES.LOADING&&(this._state=this.STATES.INITIALIZED),this._segAborted=!0,this._endTimestamps.audio=NaN,this._endTimestamps.video=NaN,this._seqNum)},y.prototype._closeLoadingSegments=function(){this._state===this.STATES.LOADING&&(this._state=this.STATES.INITIALIZED),this._endTimestamps.audio=NaN,this._endTimestamps.video=NaN,this._commandManager.removeRelatedCommands(this._commandName)},y.prototype._sendToBuffer=function(t,e){t&&this.__controller.sendMessage(d.MessageIds.APPEND_SRC_BUFFER,[t],["tracks"],e)},y.prototype._setEndOfStream=function(t){this._endOfStream=t,this._endTimestamps.audio=NaN,this._endTimestamps.video=NaN,this.type===p.MAIN&&this.__controller.sendMessage(d.MessageIds.END_OF_STREAM,[t],["endOfStream"])},y.prototype._handleSegmentEnd=function(){var t=this._currentStream;t&&t.endSeqNum===this._seqNum&&this._setEndOfStream(!0)},y.prototype._setAvgBWToLocalStorage=function(t){var e={avgBWtimestamp:Date.now(),avgBW:t};this.type===p.MAIN&&this.__controller.sendMessage(d.MessageIds.SAVE_AVG_BANDWIDTH,[e],["avgBwInfo"])},y.prototype.onManualStreamChange=function(){this._setEndOfStream(!1),this._manualStreamChange=!0,this._closeLoadingSegments(),this._streamLoader.cancel(),this._loadingStream=!1,this._state=this._state!==this.STATES.ERROR?this.STATES.INITIALIZING:this._state,this._updateStream()},y.prototype.onSynchBegin=function(){},y.prototype.onSynchComplete=function(){},y.prototype.onSynchMetadataReady=function(t){this._closeLoadingSegments(),this._setEndOfStream(!1),this.process(t)},y.prototype.canSwitch=function(t){return"mid-segment"!==t||this._state===this.STATES.LOADING},y.prototype.isInError=function(){return this._state===this.STATES.ERROR},y.prototype.getSegLoadCommand=function(){return this._commandManager.getCommand(this._commandName)},y.prototype._printLoadMessage=function(){},y.prototype.sendVttEventCB=function(t){this.__controller.sendEvent(a.VTT_SEGMENT_LOADED,t)}},"6N1G":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){var i=this,n=function(n){if(e&&e.get)return e.get(t,n,i)},r=Object.getOwnPropertyNames(t),o={};for(var s in r.forEach(function(e){var r={enumerable:!!(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable,get:n.bind(t,e)};Object.defineProperty(i,e,r),o[e]=!0}),t)o[s]||Object.defineProperty(i,s,{get:n.bind(t,s)});Object.seal(t),Object.seal(i)};e.default=n},"6ayh":function(t,e,i){"use strict";var n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=Object.getPrototypeOf||function(t){return t.__proto__},s=void 0,a="undefined"==typeof Uint8Array?void 0:o(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":r?o([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":s&&r&&Symbol.asyncIterator?s[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":r?o(o([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&r?o((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&r?o((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":r?o(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":r?Symbol:void 0,"$ %SymbolPrototype%":r?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":a,"$ %TypedArrayPrototype%":a?a.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};t.exports=function(t,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var i="$ "+t;if(!(i in u))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===u[i]&&!e)throw new TypeError("intrinsic "+t+" exists, but is not available. Please file an issue!");return u[i]}},"6ir0":function(t,e,i){"use strict";t.exports=function(t){t._instances={},t.addEventListener("message",function(e){!function(t,e){var i=e;if(!t)return;var n=t.instanceId,s=t.moduleName,a=t.funcName,u=t.args;switch(t.id){case o.CREATE:i._instances[n]=Object.create(r[s].prototype),r[s].apply(i._instances[n],u);break;case o.DESTROY:i._instances.hasOwnProperty(n)&&(i._instances[n].destroy(),delete i._instances[n]);break;case o.CALL_METHOD:if(i._instances.hasOwnProperty(n)){var l=i._instances[n];l&&l[a]&&"function"==typeof l[a]&&l[a].apply(l,u)}}}(function(t,e){if(!e)return;var i=new s(t.data),n=i.instanceId;return i.putParam("callback",function(t,i){t.instanceId=n,function(t,e,i){if(!i)return;var n=t.dto();i.postMessage(n,e)}(t,i,e)}),i}(e,t),t)})};var n=i("lPOR"),r=n.WorkerDefs,o=n.MessageIds,s=i("KtsB")},"6nrW":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s,a,u=i("JcWZ"),l=i("ToqN"),c=i("yegX"),d=i("dgSz"),h=i("R+G7"),p=i("1get"),f=i("fLR+"),_=i("+Ojf"),m=i("O/dN"),y=i("ma23"),v=i("WC4C"),g=i("+kCX"),E=i("q5U7"),b=i("GX4R"),S=i("ReYQ"),A=i("8NcX"),T=i("ek6g"),I=i("mczr"),C=i("pM7s");!function(t){t.RENDERER_SWITCH="renderer-switch",t.RENDERER_CREATED="renderer-created",t.RENDERER_TIMEOUT="error-timeout",t.RENDERER_READY_TO_PLAY="renderer-ready-to-play"}(o=e.RendererControllerEvent||(e.RendererControllerEvent={})),function(t){t.CLICK="ActiveRendererClick",t.SRC_SWITCHING="ActiveRendererSrcSwitching",t.SRC_SWITCHED="ActiveRendererSrcSwitched",t.PLAYBACK_START_BLOCKED="ActiveRendererPlayBlocked",t.SKIPPED="ActiveRendererSkipped",t.PAUSE="ActiveRendererPause",t.ENDED="ActiveRendererEnded",t.ERROR="ActiveRendererError",t.LOADEDMETADATA="ActiveRendererLoadedMetadata",t.LOADEDDATA="ActiveRendererLoadedData",t.STALLED="ActiveRendererStalled",t.LOADSTART="ActiveRendererLoadStart",t.PLAY="ActiveRendererPlay",t.PLAYING="ActiveRendererPlaying",t.SEEKING="ActiveRendererSeeking",t.SEEKED="ActiveRendererSeeked",t.TIMEUPDATE="ActiveRendererTimeupdate",t.VOLUMECHANGE="ActiveRendererVolumechange",t.WAITING="ActiveRendererWaiting",t.END_FULLSCREEN="ActiveRendererEndFullscreen"}(s=e.ActiveRendererEvent||(e.ActiveRendererEvent={})),function(t){t.SRC_SWITCHING="NextRendererSrcSwitching",t.SRC_SWITCHED="NextRendererSrcSwitched",t.PAUSE="NextRendererPaused",t.ENDED="NextRendererEnded",t.ERROR="NextRendererVideoError",t.LOADEDMETADATA="NextRendererLoadedMetadata",t.LOADEDDATA="NextRendererLoadedData",t.STALLED="NextRendererStalled",t.LOADSTART="NextRendererLoadStart",t.PLAY="NextRendererPlay",t.PLAYING="NextRendererPlaying",t.SEEKING="NextRendererSeeking",t.SEEKED="NextRendererSeeked",t.TIMEUPDATE="NextRendererTimeupdate",t.VOLUMECHANGE="NextRendererVolumechange",t.WAITING="NextRendererWaiting"}(a=e.NextRendererEvent||(e.NextRendererEvent={}));var R=function(t){function e(e,i,n){var r=t.call(this,"RendererController")||this;return r._pluginManager=n,r._model=e,r._eventBus=i,r._activeRenderer=null,r._nextRenderer=null,r._nextRendererSignature=null,r._nextRendererSetItemSignature=null,r._inactiveRenderers={},r._rendererSubKeys={},r._nextRendererSubKeys={},r._rendererSwitchingSupported=r._isRendererSwitchingSupported(),r._waitingForReady=!1,r}return r(e,t),e.prototype.prepareNextRenderer=function(t,e){var i=this;if(e||(e=function(){}),t){var n=this._findBestExternalPlayer(t),r=n?I.RendererType.EXTERNAL:t.rendererType;if(!r){var s=void 0,a=void 0,u=void 0;return p.default.isHtml5MseAvailable()?(s=m.PLAYER_CODES.E_NO_RENDERER_FOUND,a="no renderer type is applicable for the playable item",u=_.default.createErr(m.ErrorGroup.Configuration,this._model.playbackState,m.E_PLAYER,s,"",a)):(s=m.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,a="flash renderer is not supported for the playable item",u=_.default.createErr(m.ErrorGroup.Restriction,this._model.playbackState,m.E_INFO,s,"",a)),void e(u)}var l=this._generateRendererSignature(t);if(this._nextRendererSignature!==l)!this._rendererSwitchingSupported&&this._activeRenderer&&this._activeRenderer.type===r&&this._activeRenderer.type!==I.RendererType.EXTERNAL||t.isRecovering()&&this._activeRenderer?this._nextRenderer=this._activeRenderer:(this._nextRenderer=r===I.RendererType.EXTERNAL?this._setupExternalRenderer(n):this._setupRenderer(r),this._bindNextRendererEvents(this._nextRenderer)),this._nextRendererSignature=l,this._waitingForReady=!0,this._nextRenderer.waitForReady(function(t){i._waitingForReady=!1,t&&(i.publish(o.RENDERER_TIMEOUT),i._nextRenderer&&i._destroyRenderer(i._nextRenderer)),e(t)});else{if(this._waitingForReady)return;e()}}else e(new Error("no playable item to be rendered"))},e.prototype.setItemNextRenderer=function(t,e){var i=this;if(void 0===e&&(e=0),!t)return!1;var n=this._generateRendererSignature(t);if(this._nextRendererSignature!==n)return this.prepareNextRenderer(t,function(){i.setItemNextRenderer(t,e)}),!0;var r=this._generateRendererSignature(t,e);return this._nextRendererSetItemSignature===r||!!this._nextRenderer&&(this._nextRendererSetItemSignature=r,this._nextRenderer.setPlayableItem(t,e))},e.prototype.preloadNextRenderer=function(){if(this._nextRenderer&&this._nextRenderer.preload){var t=this._nextRenderer.getPlayableItem();if(t&&this._model.preload&&this._nextRenderer.type===I.RendererType.HTML5_HLS){var e={startOffset:t.customConfig&&t.customConfig.playbackStart||NaN,bufferLimit:this._model.preloadBufferSize||30};this._nextRenderer.preload(e)}}},e.prototype.switchAndPlayNextRenderer=function(t,e){void 0===e&&(e=!1),this.switchToNextRenderer(e),this.publish(o.RENDERER_READY_TO_PLAY,t)},e.prototype.switchToNextRenderer=function(t){void 0===t&&(t=!1),this._nextRenderer&&(delete this._inactiveRenderers[this._nextRenderer.type],this._unbindNextRendererEvents(this._nextRenderer),this.switchToRenderer(this._nextRenderer,t),this._nextRendererSignature=null,this._nextRendererSetItemSignature=null)},e.prototype.didRendererTimeOut=function(){return!(!this._activeRenderer||!this._activeRenderer.timedOut)},e.prototype.getActiveRenderer=function(){return this._activeRenderer},e.prototype.getNextRendererNode=function(){return this._nextRenderer&&this._nextRenderer.node||null},e.prototype.syncPlaybackState=function(){this._activeRenderer&&(this._activeRenderer.paused=this._model.isPaused(),this._activeRenderer.seeking=this._model.isSeeking())},e.prototype.rewindAfterEnd=function(t){if(this._activeRenderer)if(t)switch(this._activeRenderer.type){case I.RendererType.HTML5_RAW:case I.RendererType.HTML5_HLS:this._activeRenderer.node&&(this._activeRenderer.node.src="")}else this._activeRenderer.seek(0)},e.prototype.play=function(t){this._activeRenderer&&this._activeRenderer.play(t)},e.prototype.pause=function(){this._activeRenderer&&(this._activeRenderer.type===I.RendererType.HTML5_TV_TIZEN||this._activeRenderer.type===I.RendererType.HTML5_TV_ORSAY||(f.isFunction(this._activeRenderer.pause)?this._activeRenderer.pause():this._activeRenderer.node&&this._activeRenderer.node.pause()))},e.prototype.getCurrentDate=function(){return this._activeRenderer&&this._activeRenderer.getCurrentDate()||0},e.prototype.endVideo=function(){var t=this._activeRenderer;t&&!t.ended&&(t.ended=!0,t.type===I.RendererType.HTML5_TV_TIZEN||t.type===I.RendererType.HTML5_TV_ORSAY||(f.isFunction(t.stop)?t.stop():t.node&&t.node.pause()))},e.prototype.seek=function(t){this._activeRenderer&&this._activeRenderer.seek(t)},e.prototype.getCurrentTime=function(){return this._activeRenderer?this._activeRenderer.getCurrentTime():0},e.prototype.getDuration=function(){return this._activeRenderer?this._activeRenderer.getDuration():NaN},e.prototype.getMuted=function(){if(this._activeRenderer)return this._activeRenderer.getMuted()},e.prototype.getVolume=function(){return this._activeRenderer?this._activeRenderer.getVolume():NaN},e.prototype.setQuality=function(t){this._activeRenderer&&this._activeRenderer.setQuality(t)},e.prototype.enterFS=function(){this._activeRenderer&&this._activeRenderer.enterFullScreen&&this._activeRenderer.enterFullScreen()},e.prototype.exitFS=function(){this._activeRenderer&&this._activeRenderer.exitFullScreen&&this._activeRenderer.exitFullScreen()},e.prototype.showAirplayTargetMenu=function(){this._activeRenderer&&this._activeRenderer.showAirplayTargetMenu&&this._activeRenderer.showAirplayTargetMenu()},e.prototype.setVolume=function(t){this._activeRenderer&&this._activeRenderer.setVolume(t)},e.prototype.setMute=function(t){this._activeRenderer&&this._activeRenderer.setMute(!!t)},e.prototype.setAudioLanguage=function(t){this._activeRenderer&&this._activeRenderer.setAudioLanguage&&this._activeRenderer.setAudioLanguage(t)},e.prototype.stopMedia=function(){if(this._activeRenderer)return this._activeRenderer.stopMedia()},e.prototype.skip=function(){this._activeRenderer&&f.isFunction(this._activeRenderer.skip)&&this._activeRenderer.skip()},e.prototype.switchToRenderer=function(t,e){this._unbindActiveRendererEvents(this._activeRenderer);var i=this._activeRenderer,n=i&&i!==t;n&&l.userAgent.mobile&&this.exitFS(),this._setActiveRenderer(t),this._model.playbackState.rendererType=t.type,this.setVolume(this._model.volume),this.setMute(this._model.mute),this._bindActiveRendererEvents(this._activeRenderer),n&&(i.type===I.RendererType.HTML5_HLS_360||i.type===I.RendererType.HTML5_RAW_360||i.type===I.RendererType.EXTERNAL?_.default.classList(i.container).remove("vp-renderer-active"):i.node&&_.default.classList(i.node).remove("vp-renderer-active"),e?this._destroyRenderer(i):this._addToInactiveRenderers(i)),this._toggleRendererOperation(t,!0),t.type===I.RendererType.HTML5_HLS_360||t.type===I.RendererType.HTML5_RAW_360||t.type===I.RendererType.EXTERNAL?_.default.classList(t.container).add("vp-renderer-active"):t.node&&_.default.classList(t.node).add("vp-renderer-active"),this.publish(o.RENDERER_SWITCH,i,t)},e.prototype.enableMobileNativeCC=function(t){this._activeRenderer&&this._activeRenderer.enableMobileNativeCC&&this._activeRenderer.enableMobileNativeCC(t)},e.prototype.handleAdvancePreparePreloadNextRenderer=function(t){var e=this;t&&t.rendererType===I.RendererType.HTML5_HLS&&this.prepareNextRenderer(t,function(i){i||e._nextRenderer===e._activeRenderer||t.isLive()||(e.setItemNextRenderer(t,0),e.preloadNextRenderer())})},e.prototype.suspendStreaming=function(){this._activeRenderer&&this._activeRenderer.suspendStreaming()},e.prototype.resumeStreaming=function(){this._activeRenderer&&this._activeRenderer.resumeStreaming()},e.prototype.destroy=function(){this._activeRenderer&&this._activeRenderer.destroy(),this._nextRenderer&&this._nextRenderer.destroy()},e.prototype._bindActiveRendererEvents=function(t){t&&(this._bind(t,I.CustomRendererEvent,s,this._rendererSubKeys),this._bind(t,I.RendererEvent,s,this._rendererSubKeys))},e.prototype._unbindActiveRendererEvents=function(t){t&&(t.removeEventListeners(this._rendererSubKeys),this._rendererSubKeys={})},e.prototype._bindNextRendererEvents=function(t){t&&t!==this._activeRenderer&&this._bind(t,I.RendererEvent,a,this._nextRendererSubKeys)},e.prototype._unbindNextRendererEvents=function(t){t&&(t.removeEventListeners(this._nextRendererSubKeys),this._nextRendererSubKeys={})},e.prototype._bind=function(t,e,i,n){var r=this;if(n)for(var o=function(o){if(e[o]){var a=e[o];n[a]=t.on(a,function(t){i[o]&&r.publish.call(r,i[o],t)},s)}},s=this,a=0,u=Object.keys(e);a<u.length;a++){o(u[a])}},e.prototype._createRenderer=function(t){var e=this._model,i=this._eventBus,n=this._inactiveRenderers[t];if(n)return n.bindCustomEvents(),n;switch(t){case I.RendererType.HTML5_HLS:n=new g.default(i,e);break;case I.RendererType.HTML5_RAW_360:n=new S.default(i,e);break;case I.RendererType.HTML5_HLS_360:n=new E.default(i,e);break;case I.RendererType.EXTERNAL:n=new v.default;break;case I.RendererType.HTML5_TV:n=new A.default(i,e);break;case I.RendererType.HTML5_TV_ORSAY:n=new T.default(i,e);break;case I.RendererType.HTML5_TV_TIZEN:n=new C.default(i,e);break;case I.RendererType.HTML5_RAW:default:n=new b.default(i,e)}return this.publish(o.RENDERER_CREATED,n),this._model.showControls&&!h.default.canPlayInline&&n.node&&(n.node.controls=!0),this._setInactiveRenderer(n,t),n},e.prototype._setupRenderer=function(t){return this._createRenderer(t)},e.prototype._setupExternalRenderer=function(t){if(this._activeRenderer&&this._activeRenderer.type===I.RendererType.EXTERNAL&&this._activeRenderer.getExternalPlayer()===t)return this._activeRenderer;var e=this._setupRenderer(I.RendererType.EXTERNAL);return e.setExternalPlayer(t),e},e.prototype._addToInactiveRenderers=function(t){var e,i=[I.RendererType.HTML5_RAW_360,I.RendererType.HTML5_HLS_360];t&&(e=t.type,this._toggleRendererOperation(t,!1),this._inactiveRenderers[e]||-1!==i.indexOf(e)?t.destroy():this._setInactiveRenderer(t,e))},e.prototype._toggleRendererOperation=function(t,e){t&&(e?(t.detachNode&&t.detachNode(),t.reattachNode&&t.reattachNode()):(t.detachNode&&t.detachNode(),t.stopMedia&&t.stopMedia()))},e.prototype._findBestExternalPlayer=function(t){if(!(t instanceof c.default&&t.adPluginMimeType))return null;if(!this._model.config.ads.preferExternalPlayback)return null;var e,i=this._pluginManager.getPlugin(y.PluginType.AD,t.adPluginMimeType);if(!i||!f.isExternalPlayer(i))return null;var n=(e=i).getCapabilities(),r=!1,o=!1;return t.streams.forEach(function(t){/\.m3u8/i.test(t.url)?r=!0:/\.(?:mp4|webm)/i.test(t.url)&&(o=!0)}),r&&n.indexOf(I.ExternalPlayerCapability.RENDER_HLS)>-1||o&&n.indexOf(I.ExternalPlayerCapability.RENDER_PDL)>-1?e:null},e.prototype._generateRendererSignature=function(t,e){var i,n=[];if(e||(e=0),n.push(t.rendererType),n.push(e),t instanceof c.default){n.push("ad"),n.push(t.adBreakItemId),t.adPluginMimeType&&n.push(t.adPluginMimeType),(i=t.streams)&&i.length>0&&n.push(i[0].url);var r=t.adBreak;r&&(n.push(r.adBreakId),n.push(r.adBreakItems.length))}else t instanceof d.default&&(n.push("mediaItem"),n.push(t.id),(i=t.streams)&&i.length>0&&n.push(i[0].url));return n.join("|")},e.prototype._isRendererSwitchingSupported=function(){var t=l.userAgent.mobile&&!h.default.hasNativeAutoplaySupport;return!(l.userAgent.tv||l.userAgent.ios||t)},e.prototype._destroyRenderer=function(t){return delete this._inactiveRenderers[t.type],t.destroy()},e.prototype._setActiveRenderer=function(t){t&&(this._activeRenderer=t,t.setActive(!0))},e.prototype._setInactiveRenderer=function(t,e){t&&(this._inactiveRenderers[e]=t,t.setActive(!1))},e}(u.default);e.RendererController=R},"77/b":function(t,e,i){"use strict";t.exports=a;var n=i("EKCA"),r=i("y5bh").HLSEvent,o=i("V66C").StreamTypes,s=i("hifa");function a(t,e,i,a){var u=this;if(u.type=t,u.groupId=e,u._altStreams=[],u._updater=u.__controller.create(s),i){i.forEach(function(t){var e=u.__controller.create(n,t);u._altStreams.push(e),u._updater.addStream(e)});var l=u._selectStream("default");l||(l=u._selectStream("autoSelect")),l&&(u.setCurrentStream(l),l.type===o.SUBTITLES&&u.__controller.sendEvent(r.CC_VTT_AVAILABLE,{sessionId:u.__controller.model.sessionId})),t===o.AUDIO&&(a&&u.setCurrentStreamWithName(a),u._checkMultiLanguages())}u._isValid()}a.prototype._selectStream=function(t){for(var e=0;e<this._altStreams.length;e++)if(this._altStreams[e][t])return this._altStreams[e];return null},a.prototype.destroy=function(){this._altStreams.forEach(function(t){t.destroy()}),this._altStreams=[],this._updater.destroy()},a.prototype.getCurrentStream=function(){return this._currentStream},a.prototype.setCurrentStream=function(t){t&&(this._currentStream=t)},a.prototype.setCurrentStreamWithName=function(t){if(!t||!this._currentStream||t===this._currentStream.name)return!1;for(var e=0;e<this._altStreams.length;e++){var i=this._altStreams[e];if(t===i.name)return this.setCurrentStream(i),!0}return!1},a.prototype.update=function(t){this._updater.update(t)},a.prototype.adjustStartTime=function(t,e){var i=this;i._altStreams.forEach(function(n){n.adjusted||i._updater.adjustStartTime(n,t,e)})},a.prototype.getContainerFormat=function(){return this._currentStream?this._currentStream.containerFormat:null},a.prototype.setContainerFormat=function(t){this._altStreams.forEach(function(e){e.containerFormat||(e.containerFormat=t)})},a.prototype.getDrmInfo=function(){for(var t=[],e=0;e<this._altStreams.length;e++){var i=this._altStreams[e].drmInfo;if(!i)break;for(var n=0;n<i.length;n++)t.push(i[n])}return t},a.prototype.hasStreams=function(){return this._altStreams.length>0},a.prototype._isValid=function(){return!0},a.prototype._checkMultiLanguages=function(){var t=this,e={},i=[];t._altStreams.forEach(function(n){e[n.name]||(e[n.name]=1,i.push({name:n.name,language:n.language,selected:t._currentStream&&n.name===t._currentStream.name}))}),i.length>1&&t.__controller.sendEvent(r.MULTI_LANGUAGES_AVAILABLE,{sessionId:t.__controller.model.sessionId,languages:i})}},"7M2b":function(t,e,i){"use strict";t.exports.StreamLoader=l;var n=i("2fkz").CmdNames,r=i("x7P6").MetadataTypes,o=i("iSaY"),s=i("/iNa"),a=i("RwmF"),u=t.exports.Events={STREAM_LOADED:"streamLoaded",STREAM_LOAD_ERROR:"streamLoadError"};function l(t){a.call(this,this.constructor.name),this._model=this.__controller.model,this._commandManager=t,this._parser=this.__controller.services.metadataParser,this.stream=null,this.loaded=!1}s.inherits(l,a),l.prototype.destroy=function(){a.prototype.destroy.call(this)},l.prototype.load=function(t,e){t&&(this.stream=t,this.loaded=!1,this._commandManager.executeCommand(n.CMD_STREAM_LOAD,{stream:t,retryOpts:e},this))},l.prototype.cancel=function(){this._commandManager.removeRelatedCommands(n.CMD_STREAM_LOAD)},l.prototype.onStreamLoadComplete=function(t,e){if(t)if(e&&e.stream){var i=e.stream,n={rawData:e.data,headers:e.headers,type:r.RAW,streamType:i.type,groupId:i.groupId,name:i.name,url:e.streamUrl,index:i.index};this._model.build(this._parser.parse(n)),this._commandManager.removeCommand(t),this.loaded=!0,this.publish(u.STREAM_LOADED,i)}else this._commandManager.removeCommand(t)},l.prototype.onStreamLoadError=function(t,e){this._commandManager.removeCommand(t);var i=e.code===o.ERR_XHR_LOAD[0]?new o.Error(o.ERR_PLAYLIST_LOAD):e;this.publish(u.STREAM_LOAD_ERROR,this.stream,i)}},"7fx/":function(t,e,i){var n=i("guzb");"string"==typeof n&&(n=[[t.i,n,""]]);i("ZuTH")(n,{})},"7pT8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.uploadType="individual",this.expCount=0,this.pending={},this.complete=0}return t.runExperiment=function(){(new t)._fetchWork()},t.sendBeacon=function(){this.runExperiment()},t.prototype._extractResourceTiming=function(t){var e="";return e="[",["startTime","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd"].forEach(function(i){e+=t[i]+","}),e=e.slice(0,-1)+"]"},t.prototype._extractHeader=function(t,e){if(0==e.length)return"{}";var i="{";return e.forEach(function(e){i+='"'+e+'":"'+t.getResponseHeader(e)+'",'}),i=i.slice(0,-1)+"}"},t.prototype._fetchWork=function(){var t=this,e=!1;new Promise(function(t,i){var n=setTimeout(function(){e=!0,i(new Error("Work Order Request Timed Out"))},2e3);fetch("https://edge-mcdn.secure.yahoo.com/exp.json").then(function(i){clearTimeout(n),e||t(i)}).catch(function(t){e||i(t)})}).then(function(t){return t.json()}).then(function(e){t._parseWork(e)}).catch(function(t){})},t.prototype._parseWork=function(t){var e=t.expCount,i=t.selection;this.uploadType=t.uploadType;var n=[],r=[];if(0!==e){if(e>=t.expList.length)r=t.expList;else if("random"===i)for(var o=0;o<e;o++){(s=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(s-=1),r.push(t.expList[s])}else if("ordered"===i){(s=Math.floor(Math.random()*(t.expList.length+1)))===t.expList.length&&(s-=1);for(o=0;o<e;o++)s+o>=t.expList.length&&(s=-1*o),r.push(t.expList[s+o])}else if("individual"===i)for(var s=100*Math.random(),a=0,u=t.expList;a<u.length;a++){var l=u[a];t.runProb<s&&r.push(l)}for(var c=0,d=r;c<d.length;c++)for(l=d[c],o=0;o<l.trials;o++){s=Math.ceil(99999999999999*Math.random()).toString(36);var h=l.target.replace("<RAND>",s),p=new RegExp(l.beaconRegex,"gi").exec(h),f=[];l.parseHeaders&&(f=l.parseHeaders),null!==p&&null!==p[1]?n.push([h,p[1],l.timeout,f,l.name,l.uploadEndpoints]):n.push([h,l.name,l.timeout,f,l.name,l.uploadEndpoints]),this.expCount++}this._sendBeacons(n)}},t.prototype._sendBeacons=function(t){for(var e=this,i=function(t,i,n,r,o,s){var a=!1;new Promise(function(e,i){var r=setTimeout(function(){a=!0,i(new Error("Experiment Timed Out"))},n),o=new Image;o.onload=function(){clearTimeout(r),a||e()},o.onerror=function(){clearTimeout(r),a||e()},o.src=t}).then(function(){var a;if(r.length>0)new Promise(function(e,i){var r=!1,o=setTimeout(function(){r=!0,i(new Error("Header Request Timed Out"))},n);(a=new XMLHttpRequest).open("GET",t,!0),a.onload=function(){clearTimeout(o),r||e()},a.onerror=function(){clearTimeout(o),r||e()},a.send()}).then(function(){if("performance"in window&&"getEntriesByType"in window.performance){var n=window.performance.getEntriesByName(t);e.expCount=n.length>1?e.expCount+n.length-1:e.expCount;for(var u=0,l=n;u<l.length;u++){var c=l[u];e._sendClientMeasurements("0",i,c,e._extractHeader(a,r),o,s)}}else e._sendClientMeasurements("2",i,null,e._extractHeader(a,r),o,s)}).catch(function(n){if("performance"in window&&"getEntriesByType"in window.performance){var r=window.performance.getEntriesByName(t);e.expCount=r.length>1?e.expCount+r.length-1:e.expCount;for(var a=0,u=r;a<u.length;a++){var l=u[a];e._sendClientMeasurements("4",i,l,"",o,s)}}else e._sendClientMeasurements("6",i,null,"",o,s)});else if("performance"in window&&"getEntriesByType"in window.performance){var u=window.performance.getEntriesByName(t);e.expCount=u.length>1?e.expCount+u.length-1:e.expCount;for(var l=0,c=u;l<c.length;l++){var d=c[l];e._sendClientMeasurements("0",i,d,"",o,s)}}else e._sendClientMeasurements("2",i,null,"",o,s)}).catch(function(t){a?e._sendClientMeasurements("16",i,null,"",o,s):e._sendClientMeasurements("1",i,null,"",o,s)})},n=0,r=t;n<r.length;n++){var o=r[n];i(o[0],o[1],o[2],o[3],o[4],o[5])}},t.prototype._sendClientMeasurements=function(t,e,i,n,r,o){var s=this;if(0!==o.length){var a=function(t,e){var i=0;new Promise(function(i,n){var r=new Image;r.onload=function(){return i()},r.onerror=function(){return n()},r.src=t[0]+e}).catch(function(n){(i+=1)<t.length&&a(t[i],e)})},u="{";null!=r&&(u+='"n":"'+r+'",'),u+=null===i?'"m":[],':'"m":'+this._extractResourceTiming(i)+",",u+='"r":'+t+",",""!=n&&(u+='"h":'+n+","),u+='"b":"'+e+'"}';var l="",c=[];o.forEach(function(t){l+=t.replace("<BEACON>",e),c.push(t.replace("<BEACON>",e))}),"group"==this.uploadType?(l in this.pending||(this.pending[l]=[]),this.pending[l].push([u,c]),this.complete++,this.complete==this.expCount&&Object.keys(this.pending).forEach(function(t){var e,i="[";s.pending[t].forEach(function(t){i+=t[0]+",",e=t[1]}),i=i.slice(0,-1)+"]",a(e,btoa(i))})):(u="["+u+"]",a(c,btoa(u)))}},t}();e.default=n},"7sdD":function(t,e,i){"use strict";var n=i("vgmO"),r=i("g2LC"),o=i("ZESv"),s=i("U6jy");function a(t,e,i){var n=t;return r(e)?(i=e,"string"==typeof t&&(n={uri:t})):n=s(e,{uri:t}),n.callback=i,n}function u(t,e,i){return l(e=a(t,e,i))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),y)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(d),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function s(){if(!l){var e;clearTimeout(d),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=v,s=null;return 0!==e?(r={body:n(),statusCode:e,method:p,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=o(c.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,r,r.body)}}var a,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var d,h=c.url=t.uri||t.url,p=c.method=t.method||"GET",f=t.body||t.data,_=c.headers=t.headers||{},m=!!t.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:c};if("json"in t&&!1!==t.json&&(y=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(s,0)},c.onload=s,c.onerror=r,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=r,c.open(p,h,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(d=setTimeout(function(){if(!l){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}},t.timeout)),c.setRequestHeader)for(a in _)_.hasOwnProperty(a)&&c.setRequestHeader(a,_[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(f||null),c}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i<t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,i,n){return(i=a(e,i,n)).method=t.toUpperCase(),l(i)}})},"82c2":function(t,e,i){"use strict";var n=i("1seS"),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,u=a&&function(){var t={};try{for(var e in a(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,i,n){var r;e in t&&("function"!=typeof(r=n)||"[object Function]"!==o.call(r)||!n())||(u?a(t,e,{configurable:!0,enumerable:!1,value:i,writable:!0}):t[e]=i)},c=function(t,e){var i=arguments.length>2?arguments[2]:{},o=n(e);r&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)l(t,o[a],e[o[a]],i[o[a]])};c.supportsDescriptors=!!u,t.exports=c},"8NcX":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("ToqN"),s=i("oIMU"),a=i("WSjl"),u=i("fLR+"),l=i("+Ojf"),c=i("GX4R"),d=i("mczr"),h={hls:"application/vnd.apple.mpegurl",mp4:"video/mp4",webm:"video/webm"},p=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return r(e,t),e.canUse=function(){return!!o.userAgent.tv&&(!o.userAgent.tizen&&!o.userAgent.orsay&&!(!o.userAgent.firetv&&!o.userAgent.presto))},e.prototype.play=function(t){void 0===t&&(t=0),this.node&&(this.ended=!1,u.isNumber(t)&&t>0&&t<this.node.duration&&(this.node.currentTime=t),this.seeking=!1,this._eventBus.publish(s.PROFILE_START,s.METRICS.STREAM_PLAY_TO_RENDER),this._startPlay())},e.prototype.switchStream=function(t){this._switchSrc(t.url,t.getType())},e.prototype._onPlaybackProgress=function(t){if(t-this._lastABRCheckTime>10){this._lastABRCheckTime=t;var e=this._getBestStream(this._bitrateSelector.getRecommendedBitrate());e&&(this._switchSrc(e.url,e.getType()),this._updateStreamBitrateInfo(e))}},e.prototype._setSrc=function(t,e,i){var n=this;if(this.node&&(this.ended=!1,this.sourceEl||(this.sourceEl=this.node.getElementsByTagName("source")[0]),this.sourceEl.src!==t.url||i)){this._deleteTracks(),o.userAgent.vizio&&"vizio-mtk"===window.appid&&(t.url=l.default.appendQueryString(t.url,{appid:window.appid})),this._eventBus.publish(s.PROFILE_START,s.METRICS.STREAM_REQUEST_TO_RENDER);var r=h[t.getType()]||"video/mp4";if(this.sourceEl.type=r,this._isHttpForced()&&(t.url="http"+t.url.substring(5),t.url.indexOf("protocol=https")>-1&&(t.url=t.url.replace(/protocol=https/i,"protocol=http"))),this.sourceEl.src=t.url,e)var u=this.on(d.RendererEvent.LOADEDMETADATA,function(){n.node&&(n.node.currentTime=e),n.removeEventListener(d.RendererEvent.LOADEDMETADATA,u)},this);this._currentSrcFormat=t.format||"",this._currentStream=t,this._mode===d.PlaybackMode.VIDEO&&this._eventBus.publish(s.PROFILE_START,s.METRICS.LOAD_TO_LOADED_DATA),this.node.load(),this._model.getState()===a.default.VIDEO&&this.play()}},e.prototype._switchSrc=function(t,e){if(this.node){var i=this.node.clientWidth,n=this.node.clientHeight;if(this.sourceEl.src===t)return this.publish(d.CustomRendererEvent.SRC_SWITCHING),void this.publish(d.CustomRendererEvent.SRC_SWITCHED);this._isSwitching=!0,this.node.pause(),this._currentTime=this.node.currentTime;var r=document.createElement("canvas");this._canvas=r,r.className="vp-switching-canvas",r.width=i,r.height=n;var o=this._calculateCanvasPosition();r.style.cssText="width:"+o.width+"px;height:"+o.height+"px;left:"+o.left+"px;top:"+o.top+"px",this.node.parentNode&&this.node.parentNode.appendChild(r);try{var s=r.getContext("2d");s&&s.drawImage(this.node,0,0,i,n)}catch(t){}this.publish(d.CustomRendererEvent.SRC_SWITCHING);var a=e&&h[e]||"video/mp4";this._isHttpForced()&&(t="http"+t.substring(5)).indexOf("protocol=https")>-1&&(t=t.replace(/protocol=https/i,"protocol=http")),this.sourceEl.src=t,this.sourceEl.type=a}},e.prototype._isHttpForced=function(){return!1},e.type=d.RendererType.HTML5_TV,e}(c.default);e.default=p},"8PPl":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(e.VIDEO_TAG_READY_STATES||(e.VIDEO_TAG_READY_STATES={})),e.CHROMECAST_RECEIVER_ID="84BB6CBA",e.PLAYLIST_COUNT_PER_PAGE=12,e.PLAYLIST_HIDDEN_COUNT_PER_PAGE=6,e.PLAYLIST_ENDSCREEN_COUNT_PER_PAGE=12,e.PLAYLIST_ITEM_WIDTH=134,e.PLAYLIST_ITEM_MARGIN_RIGHT=14,e.UP_NEXT_COUNTDOWN_TIME=5,e.DOCKED_PLAYER_FULL="full",function(t){t.SCHEDULED="scheduled",t.NO_ARCHIVE="no-archive",t.POST="post",t.REPLAY="replay"}(e.LIVE_STATES_FOR_VOD||(e.LIVE_STATES_FOR_VOD={})),function(t){t.VP_SCRIPT_EXEC="VP_SCRIPT_EXEC",t.VP_INIT="VP_INIT",t.VP_CTRL_RENDER="VP_CTRL_RENDER",t.VP_CTRL_FETCH_METADATA="VP_CTRL_FETCH_METADATA",t.VP_CTRL_PREPARE_AUTOPLAY="VP_CTRL_PREPARE_AUTOPLAY",t.VP_CTRL_LOAD_METADATA="VP_CTRL_LOAD_METADATA",t.VP_CTRL_PREPARE_START="VP_CTRL_PREPARE_START",t.VP_RC_SETUP="VP_RC_SETUP_",t.VP_RC_PREPARE_NEXT="VP_RC_PREPARE_NEXT_",t.VP_RC_PRELOAD_NEXT_AD="VP_RC_PRELOAD_NEXT_AD_",t.VP_RC_PRELOAD_NEXT="VP_RC_PRELOAD_NEXT_",t.VP_AD_FETCH="VP_AD_FETCH",t.VP_AD_SETUP_TIMEOUT="VP_AD_SETUP_TIMEOUT",t.VP_AD_WAIT_FOR_AD_READY="VP_AD_WAIT_FOR_AD_READY",t.VP_AD_MAYBE_PLAY="VP_AD_MAYBE_PLAY",t.VP_AD_PREPARE_START="VP_AD_PREPARE_START",t.VP_AD_NORMAL_PREPARE_RENDERER="VP_AD_NORMAL_PREPARE_RENDERER"}(e.PERF||(e.PERF={})),function(t){t.PLAYLIST_ID="playlist_id",t.PLAYLIST_ID_AND_MEDIA_ITEMS="playlist_id_and_mediaItems",t.ONLY_MEDIA_ITEMS="mediaItems"}(e.PlaylistRenderingType||(e.PlaylistRenderingType={})),function(t){t.THREE_SIXTY="360"}(e.VIDEO_TYPE||(e.VIDEO_TYPE={})),e.HIGH_DEFINITION_HEIGHT_THRESHOLD=720,e.HIGH_DEFINITION_WIDTH_THRESHOLD=1080,function(t){t.PORTRAIT="portrait",t.LANDSCAPE="landscape"}(e.Orientation||(e.Orientation={})),e.SUPPORTED_THEMES=["fuji","aol"],function(t){t.wrapper="vp-ddm-wrapper",t.selectedWrapper="vp-ddm-selected-wrapper",t.selected="vp-ddm-selected",t.availability="vp-ddm-availability",t.notAvailable="not-available",t.dropDownIcon="vp-ddm-chevron",t.list="vp-ddm-list",t.listItem="vp-ddm-item"}(e.DDM_CSS_SETTINGS||(e.DDM_CSS_SETTINGS={})),function(t){t.CLICK="click",t.AUTOPLAY="autoplay",t.API="api",t.CONTINUOUS="continuous",t.HOVER="hover",t.PLAY="play",t.PAUSE="pause",t.SCROLL="scroll",t.SWIPE="swipe",t.BACKGROUND="background"}(e.REQUEST_TYPES||(e.REQUEST_TYPES={})),function(t){t.VOLUME="yvpVolume"}(e.LocalStorageKey||(e.LocalStorageKey={})),e.ID3_MATCH_PATTERN={JSON:/\{([\S\s]*)\}/,NIELSEN:/\bwww.nielsen.com.*(\/\d+){3}/},function(t){t.BOTTOM="bottom",t.RIGHT="right",t.HIDDEN="hidden"}(e.PLAYLIST_POS||(e.PLAYLIST_POS={})),function(t){t[t.WIDTH=604]="WIDTH",t[t.HEIGHT=340]="HEIGHT"}(e.HideBreakpointDimensions||(e.HideBreakpointDimensions={})),e.VIDEO_MAIN_ELEMENT_CLASS="vp-main",function(t){t.ttml="ttml",t.srt="srt"}(e.CaptionsFormats||(e.CaptionsFormats={}))},"8z9E":function(t,e,i){"use strict";function n(t){this._sendVttEventCB=t,this._segment=null,this._inXdsMode=!1,this._currentChannelIndex=0,this._channels=[],this._currentChannel=null,this._lastData1=0,this._lastData2=0,this._current608ChannelIndex=0,this._popOnDisplayRows=[],this._captionStartTime=0,this._captionEndTime=0,this._captionCurrentTime=0,this._hasCaptionDisplayData=!1,this._maxCC608Duration=4}t.exports=n,n.prototype.destroy=function(){this._sendVttEventCB=null},n.prototype.parse=function(t,e){this._segment=e;for(var i=0;i<t.length;i++)this._parseData(t[i]);this._segment=null},n.prototype._parseData=function(t){if(this._hasOddParity(t.data1)&&this._hasOddParity(t.data2)&&(this._captionCurrentTime=t.pts/t.timescale,t.data1&=127,t.data2&=127,0!==t.data1||0!==t.data2))if(t.data1>=1&&t.data1<=14&&1===t.fieldType&&(this._inXdsMode=!0),15===t.data1&&this._inXdsMode&&1===t.fieldType)this._inXdsMode=!1;else{if(t.data1>=16&&t.data1<31){if(this._checkForDuplicateCommands(t.data1,t.data2))return;if(8!=(8&t.data1)&&0===t.fieldType?this._updateCurrentChannel(0):8==(8&t.data1)&&0===t.fieldType?this._updateCurrentChannel(1):8!=(8&t.data1)&&1===t.fieldType?this._updateCurrentChannel(2):8==(8&t.data1)&&1===t.fieldType&&this._updateCurrentChannel(3),null===this._currentChannel)return;this._processPreambleAddressCode(t),this._processMidrowCode(t),this._processMiscCodes(t);var e=119&t.data1;17===e&&48==(112&t.data2)?this._processSpecialChars(15&t.data2):18!==e&&26!==e||64&t.data2?19!==e&&27!==e||64&t.data2||this._processExtendedPortugueseGermanDanish(63&t.data2):this._processExtendedSpanishFrench(63&t.data2)}else{if(this._inXdsMode&&1===t.fieldType)return;if(t.data1>=32&&t.data1<=126){if(0===t.fieldType&&2===this._currentChannelIndex?this._updateCurrentChannel(0):0===t.fieldType&&3===this._currentChannelIndex?this._updateCurrentChannel(1):1===t.fieldType&&0===this._currentChannelIndex?this._updateCurrentChannel(2):1===t.fieldType&&1===this._currentChannelIndex&&this._updateCurrentChannel(3),null===this._currentChannel)return;var i=this._convertAsciiTo608(t.data1);if(this._currentChannel.appendChar(i),t.data2>=32&&t.data2<=126){var n=this._convertAsciiTo608(t.data2);this._currentChannel.appendChar(n)}}}this._lastData1=t.data1,this._lastData2=t.data2}},n.prototype._processPreambleAddressCode=function(t){var e=119&t.data1,i=96&t.data2;17===e&&64===i?(this._currentChannel.startNewRow(1),this._decodeCCStyle(t.data2)):17===e&&96===i?(this._currentChannel.startNewRow(2),this._decodeCCStyle(t.data2)):18===e&&64===i?(this._currentChannel.startNewRow(3),this._decodeCCStyle(t.data2)):18===e&&96===i?(this._currentChannel.startNewRow(4),this._decodeCCStyle(t.data2)):21===e&&64===i?(this._currentChannel.startNewRow(5),this._decodeCCStyle(t.data2)):21===e&&96===i?(this._currentChannel.startNewRow(6),this._decodeCCStyle(t.data2)):22===e&&64===i?(this._currentChannel.startNewRow(7),this._decodeCCStyle(t.data2)):22===e&&96===i?(this._currentChannel.startNewRow(8),this._decodeCCStyle(t.data2)):23===e&&64===i?(this._currentChannel.startNewRow(9),this._decodeCCStyle(t.data2)):23===e&&96===i?(this._currentChannel.startNewRow(10),this._decodeCCStyle(t.data2)):16===e&&64===i?(this._currentChannel.startNewRow(11),this._decodeCCStyle(t.data2)):19===e&&64===i?(this._currentChannel.startNewRow(12),this._decodeCCStyle(t.data2)):19===e&&96===i?(this._currentChannel.startNewRow(13),this._decodeCCStyle(t.data2)):20===e&&64===i?(this._currentChannel.startNewRow(14),this._decodeCCStyle(t.data2)):20===e&&96===i&&(this._currentChannel.startNewRow(15),this._decodeCCStyle(t.data2))},n.prototype._processMidrowCode=function(t){17===(119&t.data1)&&32==(112&t.data2)&&(this._decodeCCStyle(t.data2),this._currentChannel.appendChar(" "))},n.prototype._processMiscCodes=function(t){var e=119&t.data1;20===e&&32===t.data2?this._currentChannel.setMode(r.POP_ON_MODE):20===e&&33===t.data2?this._currentChannel.backspace():20===e&&36===t.data2?this._currentChannel.clearEndOfRow():20===e&&37===t.data2?this._currentChannel.setMode(r.ROLL_UP_MODE,2):20===e&&38===t.data2?this._currentChannel.setMode(r.ROLL_UP_MODE,3):20===e&&39===t.data2?this._currentChannel.setMode(r.ROLL_UP_MODE,4):20===e&&41===t.data2?this._currentChannel.setMode(r.PAINT_ON_MODE):20===e&&44===t.data2?this._currentChannel.eraseDisplayMemory():20===e&&45===t.data2?this._currentChannel.linebreak():20===e&&46===t.data2?this._currentChannel.eraseNondisplayMemory():20===e&&47===t.data2?this._currentChannel.endOfCaption():23===e&&33===t.data2?this._currentChannel.setIndent(1):23===e&&34===t.data2?this._currentChannel.setIndent(2):23===e&&35===t.data2&&this._currentChannel.setIndent(3)},n.prototype._processSpecialChars=function(t){var e=["®","°","½","¿","™","¢","£","♪","à"," ","è","â","ê","î","ô","û"],i=t;i<0||i>=e.length||this._currentChannel.appendChar(e[i])},n.prototype._processExtendedSpanishFrench=function(t){var e=["Á","É","Ó","Ú","Ü","ü","´","¡","*","'","-","©","℠","·",'"','"',"À","Â","Ç","È","Ê","Ë","ë","Î","Ï","ï","Ô","Ù","ù","Û","«","»"],i=t-32;i<0||i>=e.length||this._currentChannel.appendChar(e[i])},n.prototype._processExtendedPortugueseGermanDanish=function(t){var e=["Ã","ã","Í","Ì","ì","Ò","ò","Õ","õ","{","}","\\","^","_","|","~","Ä","ä","Ö","ö","ß","¥","¤","¦","Å","å","Ø","ø","┌","┐","└","┘"],i=t-32;i<0||i>=e.length||this._currentChannel.appendChar(e[i])},n.prototype._hasOddParity=function(t){return[0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0][t]},n.prototype._convertAsciiTo608=function(t){return 42===t?"á":92===t?"é":94===t?"í":95===t?"ó":96===t?"ú":123===t?"ç":124===t?"÷":125===t?"Ñ":126===t?"ñ":String.fromCharCode(t)},n.prototype._checkForDuplicateCommands=function(t,e){return this._lastData1===t&&this._lastData2===e},n.prototype._decodeCCStyle=function(t){if(16==(16&t)){var e=0;0==(14&t)?e=0:2==(14&t)?e=4:4==(14&t)?e=8:6==(14&t)?e=12:8==(14&t)?e=16:10==(14&t)?e=20:12==(14&t)?e=24:14==(14&t)&&(e=28),this._currentChannel.setColumn(e)}else 14==(14&t)&&this._currentChannel.setItalic();1==(1&t)&&this._currentChannel.setUnderlined()},n.prototype._updateCurrentChannel=function(t){this._channels[t]||(this._channels[t]=new o(t,this.onFlipMemories.bind(this),this.onEraseDisplayMemory.bind(this),this.onLinebreak.bind(this))),this._currentChannelIndex=t,this._currentChannel=this._channels[t]},n.prototype.getChannel=function(t){return this._channels[t]},n.prototype.translate608RowToVTTLine=function(t){var e=[10,15.33,20.66,26,31.33,36.66,42,47.33,52.66,58,63.33,68.66,74,79.33,84.66];return t<1||t>e.length?e[0]:e[t-1]},n.prototype.translate608ColumnToVTTPosition=function(t){var e=0;return t<=4?e=10:t>=5&&t<=8?e=20:t>=9&&t<=12?e=30:t>=13&&t<=16?e=40:t>=17&&t<=20?e=50:t>=21&&t<=24?e=60:t>=25&&t<=29?e=70:t>=29&&(e=80),e},n.prototype.onFlipMemories=function(t){this._hasCaptionDisplayData&&this.onEraseDisplayMemory(t);var e=this.getChannel(t);if(e.getMode()===r.POP_ON_MODE){if(this._captionStartTime=this._captionCurrentTime,t===this._current608ChannelIndex){var i=this._popOnDisplayRows;this._popOnDisplayRows=e.getCaptionRows(),e.setCaptionRows(i);for(var n=0;n<this._popOnDisplayRows.length;n++)this._popOnDisplayRows[n]&&this._popOnDisplayRows[n].hasCaptionData()&&(this._hasCaptionDisplayData=!0)}e.eraseNondisplayMemory()}},n.prototype._getWebVttSettings=function(t,e){var i=[];i.push("snapToLines:false"),i.push("align:start");var n="line:"+this.translate608RowToVTTLine(e)+"%";i.push(n);var r="position:"+this.translate608ColumnToVTTPosition(t)+"%";return i.push(r),i},n.prototype._getRowTextAndAdjacent=function(t,e,i){for(var n=e[t].toString();t<e.length-1;){var r=e[t+1];if(r&&r.hasCaptionData()){var o=r.toString();o.length>0&&(n+="\n"+o),i&&r.reset(),t++}else t++}return{rowIdx:t,rowText:n}},n.prototype.onEraseDisplayMemory=function(t){var e=this.getChannel(t),i=e.getMode();if(t===this._current608ChannelIndex){if(i===r.POP_ON_MODE){this._captionEndTime=this._captionCurrentTime;for(var n=0;n<this._popOnDisplayRows.length;n++){var o=this._popOnDisplayRows[n];if(o&&o.hasCaptionData()){var s=o.getStartPosition(),a=this._getWebVttSettings(s,n+1),u=this._getRowTextAndAdjacent(n,this._popOnDisplayRows,!0);n=u.rowIdx;var l=u.rowText;this._captionEndTime-this._captionStartTime>this._maxCC608Duration&&(this._captionEndTime=this._captionStartTime+this._maxCC608Duration),this._publishAsWebVTT(l,a),this._captionStartTime+=.001,o.reset()}}}else i===r.ROLL_UP_MODE||i===r.PAINT_ON_MODE?(-1!==this._captionStartTime&&0!==this._captionStartTime||(this._captionStartTime=this._captionCurrentTime),this._captionEndTime>this._captionStartTime&&(this._captionStartTime=this._captionEndTime),this._publishRollUpAndPaintOn(t),e.eraseNondisplayMemory()):i&&e.eraseNondisplayMemory();this._hasCaptionDisplayData=!1}else e.eraseNondisplayMemory()},n.prototype.onLinebreak=function(t){if(t===this._current608ChannelIndex){var e=this.getChannel(t).getMode();e!==r.ROLL_UP_MODE&&e!==r.PAINT_ON_MODE||(-1!==this._captionStartTime&&0!==this._captionStartTime||(this._captionStartTime=this._captionCurrentTime),this._captionEndTime>this._captionStartTime&&(this._captionStartTime=this._captionEndTime),this._publishRollUpAndPaintOn(t))}},n.prototype._publishRollUpAndPaintOn=function(t){for(var e=this.getChannel(t).getCaptionRows(),i=0;i<e.length;i++){var n=e[i];if(n&&n.hasCaptionData()){var r=this._getWebVttSettings(12,i),o=this._getRowTextAndAdjacent(i,e,!1);i=o.rowIdx;var s=o.rowText;this._captionEndTime=this._captionStartTime+1.5,this._publishAsWebVTT(s,r),this._captionStartTime+=.001}}this._captionStartTime=-1},n.prototype._publishAsWebVTT=function(t,e){var i="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n";i+=this._toHMS(this._captionStartTime),i+=" --\x3e ",i+=this._toHMS(this._captionEndTime);for(var n=0;n<e.length;n++)i+=" "+e[n];if(i+="\n",i+=t+"\n",this._sendVttEventCB){var r={discontinuity:this._segment.discontinuity,sequenceNum:this._segment.seqNum,startTime:this._segment.startTime,programDateTime:this._segment.programDateTime,url:this._segment.url,duration:this._segment.duration,clockReference:0,localCueTime:0,mpegTSTime:0,data:i,offset:0,adjustedTime:0};this._sendVttEventCB(r)}},n.prototype._toHMS=function(t){var e=Math.floor(t/60/60);e=this._doubleDigit(e);var i=Math.floor(t/60%60);i=this._doubleDigit(i);var n=(t%60).toFixed(3);return e+":"+i+":"+(n=this._doubleDigit(n))},n.prototype._doubleDigit=function(t){return t<10&&(t="0"+t),t};var r={POP_ON_MODE:0,ROLL_UP_MODE:1,PAINT_ON_MODE:3};function o(t,e,i,n){this._channelNum=t,this._rollupRows=0,this._rows=[],this._currentRowIndex=null,this._currentRow=null,this._mode=null,this._onFlipMemories=e,this._onEraseDisplayMemory=i,this._onLinebreak=n}function s(){this._startPos=32,this._endPos=-1,this._isUnderlined=!1,this._isItalic=!1,this._characterPosition=0,this._characters=[],this.MAX_CHARS=32}function a(){this.character="",this.isUnderlined=!1,this.isItalic=!1}o.prototype.setMode=function(t,e){this._mode=t,e<2?e=2:e>4&&(e=4),this._rollupRows=e},o.prototype.getMode=function(){return this._mode},o.prototype._doRollup=function(t){if(!(t<1||t>15)){(t<this._rollupRows||null===this._currentRowIndex)&&(this._currentRowIndex=this._rollupRows);for(var e=this._rows[0],i=0;i<this._rows.length;i++)i<this._rows.length-1?this._rows[i]=this._rows[i+1]:this._rows[i]=e,(i>this._currentRowIndex||this._currentRowIndex-this._rollupRows>0&&i<this._currentRowIndex-this._rollupRows)&&this._rows[i]&&this._rows[i].reset()}},o.prototype._notifyPaintOn=function(){this._onLinebreak&&this._onLinebreak(this._channelNum)},o.prototype.startNewRow=function(t){if(!(t<1||t>15)){this._mode===r.ROLL_UP_MODE?this._doRollup(t):this._mode===r.PAINT_ON_MODE&&this._notifyPaintOn(),this._currentRowIndex=t,this._currentRow=this.getCaptionRow(t),this._currentRow.reset()}},o.prototype.getCaptionRows=function(){return this._rows},o.prototype.setCaptionRows=function(t){this._rows=t},o.prototype.setIndent=function(t){this._currentRow&&this._currentRow.tabIndex(t)},o.prototype.setColumn=function(t){this._currentRow&&this._currentRow.columnIndex(t)},o.prototype.setItalic=function(){this._currentRow&&this._currentRow.setIsItalic(!0)},o.prototype.setUnderlined=function(){this._currentRow&&this._currentRow.setIsUnderlined(!0)},o.prototype.appendChar=function(t){this._currentRow&&this._currentRow.writeChar(t)},o.prototype.linebreak=function(){this._onLinebreak&&this._onLinebreak(this._channelNum)},o.prototype.eraseNondisplayMemory=function(){for(var t=0;t<this._rows.length;t++)this._rows[t]&&this._rows[t].reset()},o.prototype.clearEndOfRow=function(){this._currentRow&&this._currentRow.clearToEnd()},o.prototype.backspace=function(){this._currentRow&&this._currentRow.backspace()},o.prototype.eraseDisplayMemory=function(){this._onEraseDisplayMemory(this._channelNum)},o.prototype.endOfCaption=function(){this._onFlipMemories(this._channelNum)},o.prototype.getCaptionRow=function(t){if(t<1||t>15)return null;var e=t-1;return this._rows[e]||(this._rows[e]=new s),this._rows[e]},s.prototype.reset=function(){this._isItalic=!1,this._isUnderlined=!1;for(var t=0;t<this._characters.length;t++)this._characters[t]&&this._characters[t].reset();this._characterPosition=0,this._startPos=32,this._endPos=-1},s.prototype.clearToEnd=function(){for(var t=this._characterPosition;t<this._characters.length;t++)this._characters[t]&&this._characters[t].reset()},s.prototype.columnIndex=function(t){t<0||t>=this.MAX_CHARS||(this._characterPosition=t)},s.prototype.tabIndex=function(t){this._incrementPosition(t)},s.prototype.writeChar=function(t){var e=this._characters[this._characterPosition];e||(this._characters[this._characterPosition]=new a,e=this._characters[this._characterPosition]),e.setValue(t,this._isItalic,this._isUnderlined),this._characterPosition<this._startPos&&(this._startPos=this._characterPosition),this._characterPosition>this._endPos&&(this._endPos=this._characterPosition),this._incrementPosition(1)},s.prototype.backspace=function(){this._characterPosition>0&&(this._characters[this._characterPosition].reset(),this._characterPosition--)},s.prototype._incrementPosition=function(t){this._characterPosition+t<this.MAX_CHARS?this._characterPosition+=t:this._characterPosition=this.MAX_CHARS-1},s.prototype.setIsItalic=function(t){this._isItalic=t},s.prototype.setIsUnderlined=function(t){this._isUnderlined=t},s.prototype.hasCaptionData=function(){return 32!==this._startPos||-1!==this._endPos},s.prototype.getCharacterAt=function(t){return t<0||t>=this.MAX_CHARS?null:this._characters[t]},s.prototype.getStartPosition=function(){return this._startPos},s.prototype.getEndPosition=function(){return this._endPos},s.prototype.toString=function(){var t="",e=!1,i=!1;if(this.hasCaptionData())for(var n=this._startPos;n<=this._endPos;n++){var r=this.getCharacterAt(n);r.isItalic&&!i?(t+="<i>",i=!0):i&&!r.isItalic&&(t+="</i>",i=!1),r.isUnderlined&&!e?(t+="<u>",e=!0):e&&!r.isUnderlined&&(t+="</u>",e=!1),"&"===r.character?t+="&amp;":"<"===r.character?t+="&lt;":">"===r.character?t+="&gt;":t+=r.character}return e&&(t+="</u>",e=!1),i&&(t+="</i>",i=!1),t},a.prototype.reset=function(){this.character="",this.isItalic=!1,this.isUnderlined=!1},a.prototype.setValue=function(t,e,i){this.character=t,this.isItalic=e,this.isUnderlined=i}},"9BmL":function(t,e,i){"use strict";t.exports.AacStreamer=u,t.exports.AacLiveStreamer=l;var n=i("/iNa"),r=i("6I/I").Streamer,o=i("21xW"),s=i("lPOR"),a=i("9nRl");function u(t,e){this._creator(t,e)}function l(t,e){this._creator(t,e)}n.inherits(u,r),n.inherits(l,o),l.prototype._creator=u.prototype._creator=function(t,e){this.constructor.super_.call(this,t,e),this._super=this.constructor.super_.prototype,this.processOnlyMetadata=!1,this.lastAudioTimestamp=NaN,this.lastAudioFrameDuration=NaN,this.primary=!1,this._codec="mp4a.40.2",this._trackType="audio",this._initMp4State();var i=[{type:this._trackType,mimeType:this._trackType+'/mp4; codecs="'+this._codec+'"',minBufferTime:this.__controller.getMinimumBufferTime()}];this.__controller.sendMessage(s.MessageIds.CREATE_SRC_BUFFER,[i],["tracks"]),this._state=this.STATES.INITIALIZED},l.prototype.destroy=u.prototype.destroy=function(){this._super.destroy.call(this)},l.prototype.onSeeking=u.prototype.onSeeking=function(t){this.lastAudioTimestamp=NaN,this._super.onSeeking.call(this,t)},l.prototype.onSwitchBegin=u.prototype.onSwitchBegin=function(){this._initMp4State(),this._super.onSwitchBegin.call(this)},l.prototype.onManualStreamChange=u.prototype.onManualStreamChange=function(){this._initMp4State(),this.lastAudioTimestamp=NaN,this._super.onManualStreamChange.call(this)},l.prototype._beforeLoadSegment=u.prototype._beforeLoadSegment=function(){this._initMp4State()},l.prototype._getSegmentLoadCmdData=u.prototype._getSegmentLoadCmdData=function(t){if(!this.isActive())return null;var e=this._currentStream;return{segment:e.getSegmentfromSeqNum(t),stream:e,state:{mp4:this._mp4State,lastAudioTimestamp:this.lastAudioTimestamp,lastAudioFrameDuration:this.lastAudioFrameDuration},onlyMetadata:this.processOnlyMetadata}},l.prototype.onSegmentLoadProgress=u.prototype.onSegmentLoadProgress=function(t,e,i){if(e){var n=e.getParam?e.getParam("parsedInfo"):null;n&&(a.isNumber(n.lastAudioTimestamp)&&(this.lastAudioTimestamp=n.lastAudioTimestamp),a.isNumber(n.lastAudioFrameDuration)&&(this.lastAudioFrameDuration=n.lastAudioFrameDuration)),this._super.onSegmentLoadProgress.call(this,t,e,i)}},l.prototype._initMp4State=u.prototype._initMp4State=function(){this._mp4State={video:{shouldInit:!0,seqNum:0},audio:{shouldInit:!0,seqNum:0}}},l.prototype._printLoadMessage=u.prototype._printLoadMessage=function(t,e){},l.prototype._synch=function(t){this.lastAudioTimestamp=NaN,this.isActive()&&this._super._synch.call(this,t)}},"9EqR":function(t,e,i){"use strict";function n(t){t&&(this.url=t.url,this.name=t.name,this.range=t.range);var e=this.range;this.loaded=!1,this.data=e&&e.end>=0&&e.start>=0&&e.end>e.start?new Uint8Array(e.end-e.start+1):null,this._readOffset=0,this._chunkLength=this.data?this.data.byteLength:0}t.exports=n,n.prototype.destroy=function(){this.data=null},n.prototype.append=function(t){if(this.loaded||!t)return 0;var e=0;if(this._chunkLength&&this.data){e=Math.min(t.byteLength,this._chunkLength-this._readOffset);for(var i=0;i<e;i++)this.data[this._readOffset+i]=t[i];this._readOffset+=e,this._readOffset>=this._chunkLength&&(this.loaded=!0)}else{var n=t.byteLength;if(!n)return;var r=null,o=0;this.data&&(o=(r=this.data).length),e=o+n,this.data=new Uint8Array(e),r&&this.data.set(r),this.data.set(t,o),this._readOffset+=e}return e},n.prototype.equals=function(t){return!!t&&(this.url===t.url&&this.name===t.name&&(!this.range||!t.range||this.range.start===t.range.start&&this.range.end===t.range.end))}},"9d71":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("A4+F"),r=i("8PPl"),o=i("oIMU"),s=i("ma23"),a=i("WSjl"),u=function(){function t(t,e,i,n){this._eventBus=t,this._view=e,this._model=i,this._pluginManager=n}return t.prototype.syncState=function(){var t=this._model.getState();t===a.States.INIT||t===a.States.WAITING||t===a.States.VIDEO?this._render():t===a.States.END&&this._remove()},t.prototype.destroy=function(){this._remove()},t.prototype._render=function(){var t=this._model.playlist&&this._model.playlist.getCurrentItem();if(this._pluginManager&&t&&t.brandingData&&!this._brandingElem){var e=this._pluginManager.getPlugin(s.PluginType.BRANDING,t.brandingData.mimetype),i=e&&e.create(t.brandingData);i&&(this._brandingElem=i,this._brandingElem.style.visibility="hidden",this._addBrandingToPage(),this._brandingElemHeight=this._brandingElem.offsetHeight,this._setBrandedContentHeight(),this._brandingElem.style.visibility=null,this._handleEvents())}},t.prototype._addBrandingToPage=function(){var t=this._view.getContentNode(),e=this._view.getPlaylistController(),i=e.getPlaylistRootElement(),n=e.isPlaylistShown(),o=e.getPlaylistUIPosition();n&&o===r.PLAYLIST_POS.BOTTOM&&i?i.parentNode.insertBefore(this._brandingElem,i):t.appendChild(this._brandingElem)},t.prototype._handleEvents=function(){var t=this;this._contentHeightEventKeys||(this._contentHeightEventKeys=this._eventBus.on([n.ExternalEvt.PLAYER_DOCKED_CHANGE,o.FULLSCREEN_CHANGE],function(e){t._contentHeightTimeout&&(window.clearTimeout(t._contentHeightTimeout),t._contentHeightTimeout=null),e===o.FULLSCREEN_CHANGE?t._contentHeightTimeout=window.setTimeout(function(){t._contentHeightTimeout=null,t._setBrandedContentHeight()},700):t._setBrandedContentHeight()},this))},t.prototype._remove=function(){var t=this._view.getMainElement();t&&(t.style.height="100%"),this._brandingElem&&(this._brandingElem.parentNode.removeChild(this._brandingElem),this._brandingElem=null,this._brandingElemHeight=null,this._removeEvents())},t.prototype._removeEvents=function(){this._contentHeightEventKeys&&(this._eventBus.removeEventListeners(this._contentHeightEventKeys),this._contentHeightEventKeys=null)},t.prototype._setBrandedContentHeight=function(){var t=this._view.getContentNode(),e=this._view.getMainElement();this._brandingElem&&this._brandingElemHeight&&t&&e&&(e.style.height="calc(100% - "+this._brandingElemHeight+"px)")},t}();e.default=u},"9gA9":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-ccsettings-container vp-vis-hidden' tabindex='0'>"),n.b("\n"+i),n.b("    <div class='vp-ccsettings-main'>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listitem' data-item-type='header'>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-item' tabindex='0'>More Captions Settings</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-caret-icon right'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-divider'></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listitem' data-item-type='Caption Languages'>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-item' tabindex='0'>Caption Languages</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-value' tabindex='0'>English</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-caret-icon right'></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listitem' data-item-type='Closed Captions'>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-item' tabindex='0'>Closed Captions</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-value' tabindex='0'>ON</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-toggle vp-on' tabindex='0'>"),n.b("\n"+i),n.b("                <div class='vp-ccsettings-toggle-handle' tabindex='0'></div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-ccsettings-extra'>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listitem' data-item-type='header'>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-caret-icon left'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-item' tabindex='0'>More Captions Settings</div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-value' tabindex='0'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-divider'></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listoptions'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-ccsettings-options'>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listitem' data-item-type='header'>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-caret-icon left'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-item' tabindex='0'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-value' tabindex='0'></div>"),n.b("\n"+i),n.b("            <div class='vp-ccsettings-divider'></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-ccsettings-listoptions'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},"9nRl":function(t,e){e.isArray=function(t){return Array.isArray(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},e.isString=function(t){return"string"==typeof t},e.isObject=function(t){return"[object Object]"===(e=t,Object.prototype.toString.call(e));var e},e.isFunction=function(t){return"function"==typeof t},e.deepCopy=function(t){var i={};return e.isNullOrUndefined(t)?t:(Object.keys(t).forEach(function(n){e.isArray(t[n])?i[n]=t[n].slice():e.isObject(t[n])?i[n]=e.deepCopy(t[n]):i[n]=t[n]}),i)}},"9rUw":function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("JcWZ"),s=i("pBvk"),a=i("t8Yn"),u=i("w7tx"),l=i("aKiy"),c=i("0VsI"),d=i("zuu9"),h=i("Wf6Z"),p=i("DDi/"),f=i("0z0/"),_=i("a4Db"),m=i("nD/R"),y=i("JheV"),v=i("DzsB"),g=i("Y4Rh"),E=i("0zFh"),b=i("c+yx"),S=function(t){function e(e,i){var n=t.call(this,"OathPlayer")||this;return n.version="8.1.170",n.playerType="desktop",n.jshlsVer="1.1.237",n.vdmsVer="0.2.137",n._rawConfig=e,n._initTime=Date.now(),e=JSON.parse(JSON.stringify(e)),e=b.default.isLegacyConfig(e)?b.default.transformLegacyConfig(e):e,n._validateConfig(e),n._controller=new u.default(e,i,n),n._controller.initialize(),n._controls=new l.default(n._controller),n._playlist=new E.default(n._controller.getPlaylist()),n._exposeApis(),n}return r(e,t),e.prototype.render=function(t){return this._controller.render(t),this},e.prototype.destroy=function(){this._controller.destroy(),t.prototype.destroy.call(this)},e.prototype.getCurrentTime=function(){return this._controller.getCurrentTime()},e.prototype.getCurrentDate=function(){return this._controller.getCurrentDate()},e.prototype.getVolume=function(){return this._controller.getVolume()},e.prototype.setQueryString=function(t){},e.prototype.removeAllMediaItems=function(){return!0},e.prototype.play=function(t){void 0===t&&(t=0),this._controls.play(t,null)},e.prototype.pause=function(){this._controls.pause(null)},e.prototype.mute=function(){this._controls.setMute(!0)},e.prototype.unMute=function(){this._controls.setMute(!1)},e.prototype.setVolume=function(t){this._controls.setVolume(t)},e.prototype.seek=function(t){this._controls.seek(t)},e.prototype.getMediaStore=function(){return this._controller.getMediaStore()},e.prototype.isPlaying=function(){return this._controller.isPlayMode()},e.prototype.isPlayMode=function(){return this._controller.isPlayMode()},e.prototype.isDocked=function(){return this._controller.isDocked()},e.prototype.setMediaItemTitle=function(t,e){return this._controller.setMediaItemTitle(t,e)},e.prototype.isLoading=function(){return this._controller.isLoading()},e.prototype.getVideoElement=function(){return this._controller.getVideoElement()},e.prototype.getRootElement=function(){return this._controller.getRootElement()},e.prototype.updateDockingConfig=function(t,e,i,n,r,o){this._controller.updateDockingConfig(t,e,i,n,r,o)},e.prototype.undockVideoPlayer=function(t){this._controller&&this._controller.undockVideoPlayer(t)},e.prototype.on=function(e,i,n){var r,o=this;if(Object.keys(a.Events).some(function(t){return a.Events[t]===e})){var s=this._controller.addVdmsListener(e,i);r=function(){o._controller.removeVdmsListener(e,s)}}else{var u=t.prototype.addEventListener.call(this,e,i,n);r=function(){t.prototype.removeEventListener.call(o,e,u)}}return r.detach=r,r},e.prototype.suspend=function(){this._controller.suspend()},e.prototype.resume=function(){this._controller.resume(),this._playlist.playlist=this._controller.getPlaylist()},e.prototype.isSuspended=function(){return this._controller&&this._controller.isSuspended()||!1},e.prototype.isRendered=function(){return this._controller&&this._controller.isRendered()||!1},e.prototype.updateGeoConfig=function(t){this._controller.updateGeoConfig(t)},e.prototype.getPlaybackStartDto=function(){return this._controller.getPlaybackStartDto()},e.prototype.getInitTime=function(){return this._initTime},Object.defineProperty(e.prototype,"guid",{get:function(){return this._controller&&this._controller.guid||""},enumerable:!0,configurable:!0}),e.prototype.addCustomControlElement=function(t){return this._controller.addCustomControlElement(t)},Object.defineProperty(e.prototype,"oathConfig",{get:function(){return this._rawConfig},enumerable:!0,configurable:!0}),e.prototype._exposeApis=function(){if(b.default.isOathDomain()){this.playlist=this._playlist,this.controls=this._controls,this.config=this._rawConfig}},e.prototype._validateConfig=function(t){try{var e=new s.Validator;e.addSchema(c.baseconfigSchema,"/baseconfigSchema"),e.addSchema(d.closedcaptionsSchema,"/closedcaptionsSchema"),e.addSchema(h.cmsSchema,"/cmsSchema"),e.addSchema(f.ctvSchema,"/ctvSchema"),e.addSchema(m.metricsSchema,"/metricsSchema"),e.addSchema(y.playbackSchema,"/playbackSchema"),e.addSchema(v.uiSchema,"/uiSchema"),e.addSchema(g.yvapSchema,"/yvapSchema"),e.addSchema(_.failoverSchema,"/failoverSchema"),e.validate(t,p.configSchema,{throwError:!0})}catch(t){var i="Invalid player config: "+t.property+" "+t.message;throw new Error(i)}},e}(o.default);e.default=S},"9s7j":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.s(n.f("items",t,e,1),t,e,0,10,1415,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.s(n.f("sectionLabel",t,e,1),t,e,0,32,316,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("        <li class='vp-pl-section-label vp-show' data-label-for-id='"),n.b(n.v(n.f("firstItemId",t,e,0))),n.b("'>"),n.b("\n"+i),n.s(n.f("sectionLabelIcon",t,e,1),t,e,0,151,247,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <img class='vp-playlist-icon section' src='"),n.b(n.v(n.f("sectionLabelIcon",t,e,0))),n.b("'/>"),n.b("\n"+i)}),t.pop()),n.b("            "),n.b(n.v(n.f("sectionLabel",t,e,0))),n.b("\n"+i),n.b("        </li>"),n.b("\n"+i)}),t.pop()),n.s(n.f("sectionLabel",t,e,1),t,e,1,0,0,"")||(n.b("        <li class='vp-playlist-item' data-id='"),n.b(n.v(n.f("id",t,e,0))),n.b("'>"),n.b("\n"+i),n.s(n.f("labelIcon",t,e,1),t,e,0,437,571,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <span class='yvp-playlist-icon-wrapper'><img class='yvp-playlist-icon item' src='"),n.b(n.v(n.f("labelIcon",t,e,0))),n.b("'/></span>"),n.b("\n"+i)}),t.pop()),n.b("            <img class='vp-playlist-item-image' loading='lazy' src='"),n.b(n.v(n.f("thumbnail",t,e,0))),n.b("' />"),n.b("\n"+i),n.b("            <div class='yvp-playlist-item-watched "),n.s(n.f("isItemWatched",t,e,1),t,e,0,740,748,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b("yvp-show")}),t.pop()),n.b("'>"),n.b("\n"+i),n.b("                <div class='yvp-watched'>"),n.b(n.v(n.d("strings.WATCHED",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("            <div class='vp-playlist-border'></div>"),n.b("\n"+i),n.b("            <div class='vp-playlist-item-gradient'>"),n.b("\n"+i),n.b("                <div class='vp-pl-meta'>"),n.b("\n"+i),n.b("                    <span class='vp-pl-title'>"),n.b(n.v(n.f("title",t,e,0))),n.b("</span>"),n.b("\n"+i),n.b("                    <span class='vp-now-playing'>"),n.b(n.v(n.d("strings.NOW_PLAYING",t,e,0))),n.b("</span>"),n.b("\n"+i),n.s(n.f("provider",t,e,1),t,e,0,1175,1269,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                        <span class='vp-pl-provider'>"),n.b(n.v(n.f("provider",t,e,0))),n.b("</span>"),n.b("\n"+i)}),t.pop()),n.b("                </div>"),n.b("\n"+i),n.b("            </div>"),n.b("\n"+i),n.b("            <div class='vp-pl-dur'>"),n.b(n.v(n.f("duration",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("        </li>"),n.b("\n"+i))}),t.pop()),n.fl()},partials:{},subs:{}},"{{#items}}\n    {{#sectionLabel}}\n        <li class='vp-pl-section-label vp-show' data-label-for-id='{{firstItemId}}'>\n            {{#sectionLabelIcon}}\n                <img class='vp-playlist-icon section' src='{{sectionLabelIcon}}'/>\n            {{/sectionLabelIcon}}\n            {{sectionLabel}}\n        </li>\n    {{/sectionLabel}}\n    {{^sectionLabel}}\n        <li class='vp-playlist-item' data-id='{{id}}'>\n            {{#labelIcon}}\n                <span class='yvp-playlist-icon-wrapper'><img class='yvp-playlist-icon item' src='{{labelIcon}}'/></span>\n            {{/labelIcon}}\n            <img class='vp-playlist-item-image' loading='lazy' src='{{thumbnail}}' />\n            <div class='yvp-playlist-item-watched {{#isItemWatched}}yvp-show{{/isItemWatched}}'>\n                <div class='yvp-watched'>{{strings.WATCHED}}</div>\n            </div>\n            <div class='vp-playlist-border'></div>\n            <div class='vp-playlist-item-gradient'>\n                <div class='vp-pl-meta'>\n                    <span class='vp-pl-title'>{{title}}</span>\n                    <span class='vp-now-playing'>{{strings.NOW_PLAYING}}</span>\n                    {{#provider}}\n                        <span class='vp-pl-provider'>{{provider}}</span>\n                    {{/provider}}\n                </div>\n            </div>\n            <div class='vp-pl-dur'>{{duration}}</div>\n        </li>\n    {{/sectionLabel}}\n{{/items}}",n)},"A4+F":function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0});var r,o=i("oIMU"),s=i("oIMU");!function(t){t.ABR_DATA_UPDATE="abrDataUpdate",t.AD_BREAK_ENDED="ad-break-ended",t.AD_BREAK_ITEM_CURRENT="ad-break-item-current",t.AD_BREAK_ITEM_ENDED="ad-break-item-ended",t.AD_BREAK_ITEM_ERROR="ad-break-item-error",t.AD_BREAK_ITEM_SKIPPED="ad-break-item-skipped",t.AD_BREAK_ITEM_CLICKED="ad-break-item-clicked",t.AD_BREAK_STARTED="ad-break-started",t.AD_METRICS="ad-metrics",t.AIRPLAY_AVAILABILITY_CHANGE="airplay-availability-change",t.AIRPLAY_CONNECTION_STATE_CHANGE="airplay-connection-state-change",t.BEACON_SEND="beaconSend",t.BITRATE_CHANGE="bitrateChange",t.BUFFERING_START="bufferingStart",t.BUFFERING_END="bufferingEnd",t.CAST_AVAILABILITY_CHANGE="cast-availability-change",t.CAST_CONNECTED_STATE_CHANGE="cast-connected-state-change",t.CC_AVAILABLE="media-item-cc-available",t.CC_UI_TOGGLE="ccUiToggle",t.CC_LANGUAGE_CHANGE="ccLanguageChange",t.CC_UPDATE_STYLE="ccUpdateStyle",t.CC_SETTINGS="ccSettings",t.CMS_API_CALLED="cmsApiCalled",t.CONTROLS_AUDIO_CHANGE="controlsAudioChange",t.CTRL_PLAYPAUSE="ctrlPlayPause",t.CTRL_SEEK="ctrlSeek",t.CTRL_VOLUME="ctrlVolume",t.CTRL_SETTINGS="ctrlSettings",t.CTRL_PLAYREQUEST="ctrlPlayRequest",t.CTRL_REPLAY="ctrlReplay",t.CUEPOINT_STARTED="cuepointStarted",t.CUEPOINT_STOPPED="cuepointStopped",t.CUEPOINT_DETECTED="cuepointDetected",t.DURATION_CHANGE="durationChange",t.HLS_FIRST_TS_LOAD_START="hlsFirstTsLoadStart",t.HLS_FIRST_TS_FIRST_BYTE_ARRIVE="hlsFirstTsFirstByteArrive",t.LOADING_BEGIN="loading-begin",t.LOADING_END="loading-end",t.MARKERS_RECEIVED="markers-received",t.MEDIA_ITEM_ADDED="media-item-added",t.MEDIA_ITEM_CURRENT="media-item-current",t.MEDIA_ITEM_COMPLETE="media-item-complete",t.MEDIA_ITEM_ERROR="media-item-error",t.MEDIA_ITEM_METADATA="media-item-metadata",t.MEDIA_ITEM_NEED_SOURCE="media-item-need-source",t.MEDIA_ITEM_REMOVED="media-item-removed",t.METADATA_READY="metadata-ready",t.MULTI_AUDIO_AVAILABLE="multi-audio-available",t.NIELSEN_REQUIRED="nielsen-required",t.PLAYBACK_COMPLETE="playbackComplete",t.PLAYBACK_STOPPED="playbackStopped",t.PLAYBACK_ERROR="playbackError",t.PLAYBACK_PAUSE="playbackPause",t.PLAYBACK_PROGRESS="playbackProgress",t.PLAYBACK_READY="playbackReady",t.PLAYBACK_REQUEST="playbackRequest",t.PLAYBACK_RESUMED="playbackResumed",t.PLAYBACK_SEEK_COMPLETE="playbackSeek",t.PLAYBACK_SEEKING="playbackSeeking",t.PLAYBACK_START="playbackStart",t.PLAYBACK_STALLED="playbackStalled",t.PLAYBACK_TIME_UPDATE="playbackTimeUpdate",t.PLAYBACK_TIMEOUT="playback-timeout",t.PLAYER_DOCKED_CHANGE="player-docked-change",t.PLAYER_ERROR="playerError",t.PLAYER_FULLSCREEN_CHANGE="fullscreenChange",t.PLAYER_INFO="playerInfo",t.PLAYER_MUTE_CHANGE="muteChange",t.PLAYER_READY="playerReady",t.PLAYER_RENDERED="render",t.PLAYER_VIEWPORT_CHANGE="player-viewport-change",t.PLAYER_VOLUME_CHANGE="volumeChange",t.PLAYER_WARNING="playerWarning",t.PLAYLIST_COMPLETE="playlistComplete",t.PLAYLIST_POSITION_CHANGE="playlistPositionChange",t.RECOVERY_METADATA_READY="recoveryMetadataReady",t.START_SCREEN_RENDERED="startScreenRenderered",t.UI_INTERACT="uiInteract",t.VIDEO_STARTED="video-started",t.VIDEO_REQUEST="videoRequest",t.SEG_INFO_AVAILABLE="segInfoAvailable",t.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",t.THREE_SIXTY_INTERACT="threeSixtyInteract",t.THREE_SIXTY_PIE_INTERACT="threeSixtyPieInteract",t.TIMED_METADATA_RECEIVED="timed-metadata-received"}(r=e.ExternalEvt||(e.ExternalEvt={}));var a=((n={})[r.ABR_DATA_UPDATE]=o.ABR_DATA_UPDATE,n[r.AD_BREAK_ENDED]=o.AD_BREAK_ENDED,n[r.AD_BREAK_ITEM_CLICKED]=o.AD_BREAK_ITEM_CLICKED,n[r.AD_BREAK_ITEM_CURRENT]=o.AD_BREAK_ITEM_CURRENT,n[r.AD_BREAK_ITEM_ENDED]=o.AD_BREAK_ITEM_ENDED,n[r.AD_BREAK_ITEM_ERROR]=o.AD_BREAK_ITEM_ERROR,n[r.AD_BREAK_ITEM_SKIPPED]=o.AD_BREAK_ITEM_SKIPPED,n[r.AD_BREAK_STARTED]=o.AD_BREAK_STARTED,n[r.AD_METRICS]=o.AD_METRICS,n[r.CC_LANGUAGE_CHANGE]=o.CCEvent.LANGUAGE_CHANGE,n[r.CC_SETTINGS]=o.CCEvent.SETTINGS,n[r.CC_UI_TOGGLE]=o.CCEvent.UI_TOGGLE,n[r.CC_UPDATE_STYLE]=o.CCEvent.UPDATE_STYLE,n[r.CMS_API_CALLED]=o.API_CALLED,n[r.CONTROLS_AUDIO_CHANGE]=o.CONTROLS_AUDIO_CHANGE,n[r.CTRL_PLAYPAUSE]=o.CTRL_PLAYPAUSE,n[r.CTRL_PLAYREQUEST]=o.CTRL_PLAYREQUEST,n[r.CTRL_REPLAY]=o.CTRL_REPLAY,n[r.CTRL_SEEK]=o.CTRL_SEEK,n[r.CTRL_SETTINGS]=o.CTRL_SETTINGS,n[r.CTRL_VOLUME]=o.CTRL_VOLUME,n[r.HLS_FIRST_TS_FIRST_BYTE_ARRIVE]=o.HLS_FIRST_TS_FIRST_BYTE_ARRIVE,n[r.HLS_FIRST_TS_LOAD_START]=o.HLS_FIRST_TS_LOAD_START,n[r.MEDIA_ITEM_ADDED]=o.MEDIA_ITEM_ADDED,n[r.MEDIA_ITEM_CURRENT]=o.MEDIA_ITEM_CURRENT,n[r.MEDIA_ITEM_COMPLETE]=o.MEDIA_ITEM_COMPLETE,n[r.MEDIA_ITEM_ERROR]=o.MEDIA_ITEM_ERROR,n[r.MEDIA_ITEM_METADATA]=o.MEDIA_ITEM_METADATA,n[r.MEDIA_ITEM_NEED_SOURCE]=o.MEDIA_ITEM_NEED_SOURCE,n[r.MEDIA_ITEM_REMOVED]=o.MEDIA_ITEM_REMOVED,n[r.METADATA_READY]=o.METADATA_AVAILABLE,n[r.MULTI_AUDIO_AVAILABLE]=o.MULTI_LANGUAGES_AVAILABLE,n[r.PLAYBACK_COMPLETE]=o.PLAYBACK_COMPLETE,n[r.PLAYBACK_STOPPED]=o.PLAYBACK_STOPPED,n[r.PLAYBACK_PAUSE]=s.VideoEvent.PAUSE,n[r.PLAYBACK_PROGRESS]=o.PLAYBACK_PROGRESS,n[r.PLAYBACK_REQUEST]=o.PLAYBACK_REQUEST,n[r.PLAYBACK_RESUMED]=o.PLAYBACK_RESUMED,n[r.PLAYBACK_SEEKING]=s.VideoEvent.SEEKING,n[r.PLAYBACK_START]=o.PLAYBACK_STARTED,n[r.PLAYBACK_STALLED]=o.PLAYBACK_STALLED,n[r.PLAYBACK_TIME_UPDATE]=s.VideoEvent.TIMEUPDATE,n[r.PLAYER_ERROR]=o.INTERNAL_ERROR,n[r.PLAYER_FULLSCREEN_CHANGE]=o.FULLSCREEN_CHANGE,n[r.PLAYER_INFO]=o.INFO,n[r.PLAYER_WARNING]=o.WARNING,n[r.RECOVERY_METADATA_READY]=o.RECOVERY_METADATA_READY,n[r.SEG_INFO_AVAILABLE]=o.SEG_INFO_AVAILABLE,n[r.SEGMENT_FIRST_BYTE_LOADED]=o.SEGMENT_FIRST_BYTE_LOADED,n[r.START_SCREEN_RENDERED]=o.START_SCREEN_RENDERED,n[r.THREE_SIXTY_INTERACT]=o.THREE_SIXTY_INTERACT,n[r.THREE_SIXTY_PIE_INTERACT]=o.THREE_SIXTY_PIE_INTERACT,n[r.TIMED_METADATA_RECEIVED]=o.TIMED_METADATA_RECEIVED,n[r.VIDEO_REQUEST]=o.VIDEO_REQUEST,n[o.OPSS_VISIBILITY_CHANGED]=o.OPSS_VISIBILITY_CHANGED,n),u=function(){function t(t,e,i){this._player=t,this._controller=e,this._eventBus=i,Object.keys(r).forEach(function(t){var e=r[t];a[e]||(a[e]=e)})}return t.prototype.enablePublish=function(){var t=this;Object.keys(a).forEach(function(e){var i=a[e];t._eventBus.addEventListener(i,function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=Array.prototype.slice.call(i,0),o=t._controller&&t._controller.getEventsDto()||{};r.push(o),setTimeout(function(){var i;(i=t._player).publish.apply(i,[e].concat(r))})},t)})},t.prototype.getAllExternalEvtNames=function(){return Object.keys(a)},t}();e.ExternalEvtAPI=u},AkMV:function(t,e,i){"use strict";t.exports={ftyp:{fullBox:!1,properties:{majorBrand:{length:32,type:"string"},minorVersion:{length:32},compatibleBrands:{type:"array",itemSchema:{length:32,type:"string"}}}},moov:{fullBox:!1},styp:{fullBox:!1,properties:{majorBrand:{length:32,type:"string"},minorVersion:{length:32},compatibleBrands:{type:"array",itemSchema:{length:32,type:"string"}}}},moof:{fullBox:!1},mdat:{fullBox:!1},sidx:{fullBox:!0,properties:{referenceId:{length:32},timescale:{length:32},earliestPresentationTime:{length:32},firstOffset:{length:32},reserved:{length:16},referenceCount:{length:16},referenceData:{type:"array",lengthField:"referenceCount",itemSchema:{referenceType:{length:1},referencedSize:{length:31},subsegmentDuration:{length:32},startsWithSAP:{length:1},sapType:{length:3},sapDeltaTime:{length:28}}}}},emsg:{fullBox:!0,properties:{schemeIdUri:{type:"string"},value:{type:"string"},timescale:{length:32},presentationTimeDelta:{length:32},eventDuration:{length:32},id:{length:32},message:{type:"array",itemSchema:{length:8}}}},trak:{fullBox:!1,parents:["moov"]},mdia:{fullBox:!1,parents:["trak"]},mvhd:{fullBox:!0,parents:["moov"],properties:{creationTime:{length:32},modificationTime:{length:32},timescale:{length:32},duration:{length:32},rate:{length:32},volume:{length:16},reserved:{length:80},matrix:{type:"array",length:9,itemSchema:{length:32}},preDefined:{length:192},nextTrackId:{length:32}}},mdhd:{fullBox:!0,parents:["mdia"],properties:{creationTime:{length:32},modificationTime:{length:32},timescale:{length:32},duration:{length:32},language:{length:16},preDefined:{length:16}}},esds:{fullBox:!0,parents:["mp4a","enca"],properties:{descriptorTag:{length:8},descriptorLength:{length:8},esId:{length:16},streamPriority:{length:8},decoderConfigDesc:{length:8},decoderConfigLength:{length:8},codecTag:{length:8},streamType:{length:8},bufferSize:{length:8},bufferSize2:{length:16},maxBitrate:{length:32},avgBitrate:{length:32},decoderInfoDescriptor:{length:8},decoderInfoDescriptorLength:{length:8},audioSpecificConfig0:{length:8},audioSpecificConfig1:{length:8},audioSpecificConfig2:{length:8,validator:248,validationProperty:"audioSpecificConfig0",validationResult:40},audioSpecificConfig3:{length:8,validator:248,validationProperty:"audioSpecificConfig0",validationResult:40},slDescriptor:{length:8},slDescriptorLength:{length:8},slValue:{length:8}}},mp4a:{fullBox:!1,parents:["stsd"],payload:28,properties:{reserved0:{length:48},dataReferenceIndex:{length:16},reserved1:{length:32},reserved2:{length:32},channelCount:{length:16},sampleSize:{length:16},predefined:{length:16},reserved3:{length:16},sampleRate:{length:32}}},enca:{fullBox:!1,parents:["stsd"],payload:28,properties:{reserved0:{length:48},dataReferenceIndex:{length:16},reserved1:{length:32},reserved2:{length:32},channelCount:{length:16},sampleSize:{length:16},predefined:{length:16},reserved3:{length:16},sampleRate:{length:32}}},stsd:{fullBox:!0,parents:["stbl"],payload:4,properties:{entryCount:{length:32}}},stbl:{fullBox:!1,parents:["minf"]},minf:{fullBox:!1,parents:["mdia"]},traf:{fullBox:!1,parents:["moof"]},tfdt:{fullBox:!0,parents:["traf"],properties:{baseMediaDecodeTime:{length:32}}},tfhd:{fullBox:!0,parents:["traf"],properties:{trackId:{length:32},baseDataOffset:{length:64,validator:1},sampleDescriptionIndex:{length:32,validator:2},defaultSampleDuration:{length:32,validator:8},defaultSampleSize:{length:32,validator:16},defaultSampleFlags:{length:32,validator:32}}},trun:{fullBox:!0,parents:["traf"],properties:{sampleCount:{length:32},dataOffset:{validator:1,length:32},firstSampleFlags:{validator:4,length:32},sampleData:{type:"array",lengthField:"sampleCount",itemSchema:{sampleDuration:{validator:256,length:32},sampleSize:{validator:512,length:32},sampleFlags:{validator:1024,length:32},sampleCompositionTimeOffset:{validator:2048,length:32}}}}},vttc:{fullBox:!1},vtte:{fullBox:!1},vsid:{fullBox:!1,parents:["vttc"],properties:{sourceId:{length:32}}},ctim:{fullBox:!1,parents:["vttc"],properties:{cueTime:{type:"boxstring"}}},payl:{fullBox:!1,parents:["vttc"],properties:{cueText:{type:"boxstring"}}},iden:{fullBox:!1,parents:["vttc"],properties:{cueId:{type:"boxstring"}}},sttg:{fullBox:!1,parents:["vttc"],properties:{settings:{type:"boxstring"}}}}},AuZZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PARAMS=["s","_ex","_NOL","test","cached_vs","expn","expt","expb","vsid","lms_id","bckt","env","ccap","loc","site","lang","intl","ccode","sec","cpos","pt","pd","pct","pstcat","ver","p_sec","p_subsec","pstaid_p","pkgt","subsec","_rid","bx","ar","vrmver"],e.INT_DEFAULT="",e.STRING_DEFAULT="none",e.HIDE_KEY="__hide__beacon__key__",e.NULL_DEFAULT="*null",e.VRM_VERSION="2.0"},"B/eG":function(t,e,i){"use strict";i.r(e),function(t){var n=i("/pFH"),r=setTimeout;function o(t){return Boolean(t&&void 0!==t.length)}function s(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(t,this)}function u(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn(function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void c(e.promise,t)}l(e.promise,n)}else(1===t._state?l:c)(e.promise,t._value)})):t._deferreds.push(e)}function l(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof a)return t._state=3,t._value=e,void d(t);if("function"==typeof i)return void p((n=i,r=e,function(){n.apply(r,arguments)}),t)}t._state=1,t._value=e,d(t)}catch(e){c(t,e)}var n,r}function c(t,e){t._state=2,t._value=e,d(t)}function d(t){2===t._state&&0===t._deferreds.length&&a._immediateFn(function(){t._handled||a._unhandledRejectionFn(t._value)});for(var e=0,i=t._deferreds.length;e<i;e++)u(t,t._deferreds[e]);t._deferreds=null}function h(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function p(t,e){var i=!1;try{t(function(t){i||(i=!0,l(e,t))},function(t){i||(i=!0,c(e,t))})}catch(t){if(i)return;i=!0,c(e,t)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var i=new this.constructor(s);return u(this,new h(t,e,i)),i},a.prototype.finally=n.a,a.all=function(t){return new a(function(e,i){if(!o(t))return i(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var r=n.length;function s(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var a=o.then;if("function"==typeof a)return void a.call(o,function(e){s(t,e)},i)}n[t]=o,0==--r&&e(n)}catch(t){i(t)}}for(var a=0;a<n.length;a++)s(a,n[a])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(t){return new a(function(e,i){i(t)})},a.race=function(t){return new a(function(e,i){if(!o(t))return i(new TypeError("Promise.race accepts an array"));for(var n=0,r=t.length;n<r;n++)a.resolve(t[n]).then(e,i)})},a._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){r(t,0)},a._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console},e.default=a}.call(this,i("URgk").setImmediate)},BHZG:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("JcWZ"),r=i("Lux/"),o=i("yzVy"),s=i("+Ojf"),a=i("ECHB"),u=i("ma23"),l=i("xqNZ"),c=i("miuH"),d=function(){function t(){this.version="0.2.137",this.mimetype=t.mimetype,this.type=u.PluginType.AD,this._showExtendedProgressMsg=!1,this._rendered=!1,this._eventBus=new n.default("DefaultAdPlugin"),this._subscribedEventsMap={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this._clickUrl=null,this._ctaEl=null,this._progressUpdateEl=null,this._viewFragment=null,this._ctaElTap&&this._ctaElTap.destroy(),this._subscribedEventsMap=null,this._rendered=!1,this._eventBus.destroy()},t.prototype.canRenderUI=function(t){return!0},t.prototype.renderUI=function(t,e){var i=this,n=e.position,r=void 0===n?0:n,a=e.adBreakItems,u=this._renderTemplate();if(this._rendered=!0,t.interactionConfig&&t.interactionConfig.clickUrl?(this._clickUrl=t.interactionConfig.clickUrl,s.default.classList(this._ctaEl).remove("vp-hidden")):(this._clickUrl=null,s.default.classList(this._ctaEl).add("vp-hidden")),t.type===o.AdBreakItemType.BUMPER)return this._adBreakDuration=t.duration,s.default.classList(this._progressUpdateEl.parentElement).add("vp-hidden"),u;s.default.classList(this._progressUpdateEl.parentElement).remove("vp-hidden");var c=this._getRelativeAdPositioningData(a,r),d=c.position,h=c.totalAds,p=c.duration;return this._adBreakDuration=p,this._breakProgStrShort=s.default.strSubstitute(1===h?l.default.ADV_SHORT:l.default.ADV_MULT_SHORT,{position:d+1,total:h}),this._breakProgStrLong=s.default.strSubstitute(1===h?l.default.ADV_LONG:l.default.ADV_MULT_LONG,{position:d+1,total:h}),0===d&&(this._progressUpdateEl.innerText=s.default.strSubstitute(this._breakProgStrLong,{remaining:Math.round(this._adBreakDuration)}),this._showExtendedProgressMsg=!0,setTimeout(function(){i._showExtendedProgressMsg=!1},1500)),u},t.prototype.unrenderUI=function(){this._rendered=!1,this._clearView()},t.prototype.onPlayerEvent=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t===u.PluginPlayerEvent.AD_PLAYBACK_PROGRESS&&this._rendered){var n=e[0];this._onPlaybackProgress(n)}},t.prototype.addEventListener=function(t,e){var i=this._eventBus.addEventListener(t,e,null);this._subscribedEventsMap[t]=this._subscribedEventsMap[t]||[],this._subscribedEventsMap[t].push([e,i])},t.prototype.removeEventListener=function(t,e){this._subscribedEventsMap[t]=this._subscribedEventsMap[t]||[];for(var i=0,n=this._subscribedEventsMap[t];i<n.length;i++){var r=n[i],o=r[0],s=r[1];if(o===e)return void this._eventBus.removeEventListener(t,s)}},t.prototype._clearView=function(){this._clickUrl=null,this._progressUpdateEl&&(this._progressUpdateEl.innerText="")},t.prototype._onPlaybackProgress=function(t){if(this._progressUpdateEl){var e,i,n=t.currentTime,r=t.duration;this._showExtendedProgressMsg?(e=this._breakProgStrLong,i=this._adBreakDuration):(e=this._breakProgStrShort,i=r);var o=Math.round(i-n);this._progressUpdateEl.innerText=s.default.strSubstitute(e,{remaining:o})}},t.prototype._getRelativeAdPositioningData=function(t,e){if(e<0||e>t.length-1)return{position:0,totalAds:0,duration:0};if(t[e].type===o.AdBreakItemType.BUMPER)return{position:0,totalAds:1,duration:t[e].duration};for(var i=-1,n=e-1;n>=0;n--){if((u=t[n]).type===o.AdBreakItemType.BUMPER){i=n;break}}var r=i+1,s=0,a=0;for(n=r;n<t.length;n++){var u;if((u=t[n]).type===o.AdBreakItemType.BUMPER)break;s++,a+=u.duration}return{position:e-r,totalAds:s,duration:a}},t.prototype._dispatchEvent=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];(e=this._eventBus).publish.apply(e,[t].concat(i))},t.prototype._renderTemplate=function(){var t=this;return this._viewFragment?(this._clearView(),this._viewFragment):(this._viewFragment=s.default.render(c,l.default),this._progressUpdateEl=this._viewFragment.querySelector(".vp-adbreak-progress span"),this._ctaEl=this._viewFragment.querySelector(".vp-adbreakitem-cta"),this._ctaElTap=new a.default(this._ctaEl,function(e){t._clickUrl&&(window.open(t._clickUrl,"_blank"),t._dispatchEvent(r.AdPluginUIEvent.CTA_TRIGGERED))}),this._clearView(),this._viewFragment)},t.mimetype="adplugin/default-ad-view",t}();e.default=d},BHlS:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("O/dN"),u=i("oIMU"),l=i("UDn2"),c=i("+uLo"),d=i("fLR+"),h=i("+Ojf"),p=["200","400","501","430","410"],f=["7","57","304","307"],_=["700","701","710","711","720","721","722","730","731","732","740","750","760"],m=["103","500","502","503","550","403","404","504"],y=["11","12","13","14"],v=[a.PLAYER_DRM_CODES.ERR_DRM_LICENSE_REQUEST];!function(t){t.RECOVERY_START="recovery-start",t.RECOVERY_METADATA_READY="recovery-metadata-ready"}(o=e.RecovererEvent||(e.RecovererEvent={}));var g=function(t){function e(e){var i=t.call(this,"Recoverer")||this;return i._model=e,i._recovering=!1,i._errRecoveryCount=0,i._errRecovering=null,i._reset(),i._recoveryState=0,i}return r(e,t),e.prototype.recover=function(t){if(!(this._model.playbackState.ad||h.default.isAdBreakType(this._model.playbackState.currentMediaType)||this._recovering&&this._recoveryState!==t)){this._stopFrozenDetectionTimer(),this._recovering||(this._recovering=!0,this.publish(u.WARNING,h.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,a.E_WARNING,a.WARNING_CODES.E_RECOVERY_STATUS,null,"recovering"))),4===t&&this.publish(u.WARNING,h.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,a.E_WARNING,a.WARNING_CODES.E_RECOVER_LONG_PAUSE,null,"Recovering from long pause on live")),this._recoveryState=t||3,2!==this._recoveryState&&(this._errRecovering=null);var e=this._getCurrentItem();e&&(e.failoverCount++,e.recoveryStatus=l.ItemRecoveryStatus.RECOVERING),this.publish(o.RECOVERY_START)}},e.prototype.destroy=function(){this._deactivate()},e.prototype.stopTimers=function(){this._stopFrozenDetectionTimer(),this._stopCdnDownTimer(),this._stopRecoveryFailureTimer()},e.prototype.toggleRecoverer=function(t){t&&t.value?this._activate(1):(this._recovering&&this.publish(u.WARNING,h.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,a.E_WARNING,a.WARNING_CODES.E_RECOVERY_STATUS,null,"recovered")),this._deactivate())},e.prototype.onRecoveryMetadataReady=function(){if(this._recoveryState)this.publish(u.WARNING,h.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,a.E_WARNING,a.WARNING_CODES.E_PLAYBACK_FROZEN_DETECTED,null,this._getErrorString())),this.publish(o.RECOVERY_METADATA_READY),this._reset();else{var t=this._getCurrentItem();t&&t.failoverCount--}},e.prototype.onMetadataLoadFailed=function(){this._recovering&&1===this._recoveryState&&this._restartTimer()},Object.defineProperty(e.prototype,"recovering",{get:function(){return this._recovering},enumerable:!0,configurable:!0}),e.prototype.onError=function(t){var e=this,i=2;if(t&&(t.isRecoverable=!this._isErrorUnrecoverable(t),t.isRecoverable)){if(m.indexOf(t.subcategory.toString())>0?i=9:t.subcategory.toString()!==a.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_SRC_NOT_SUPPORTED&&t.subcategory.toString()!==a.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_ABORTED||(i=5),t.debugMessage)switch(t.debugMessage){case a.DRM_DEBUG_CODES.KEY_SESSION_FAILED:i=6;break;case a.DRM_DEBUG_CODES.LICENSE_REQUEST_FAILED:i=7;break;case a.DRM_DEBUG_CODES.CERT_LOAD_FAILED:i=8}if(this._errRecoveryCount++,this._errRecovering=t,"400"===t.category.toString()&&"7"===t.subcategory.toString())return this._stopCdnDownTimer(),this._cdnDownTimer=new c.default(1e4*Math.random(),1),this._cdnDownTimer.addEventListener(c.default.TIMER_EVENT,function(){e._activate(i)},this),void this._cdnDownTimer.start();this._activate(i)}},e.prototype._isErrorUnrecoverable=function(t){if(this._errRecoveryCount>20)return!0;var e=t.category.toString(),i=p.indexOf(e);if(i<0)return!0;var n=t.subcategory.toString();switch(p[i]){case a.E_WARNING:return f.indexOf(n)<0;case a.E_PLAYER:return f.indexOf(n)<0&&_.indexOf(n)<0;case a.E_SAPI_STREAM:return m.indexOf(n)<0;case a.E_PLAYER_JS_HLS:return y.indexOf(n)<0;case a.E_PLAYER_DRM:return v.indexOf(n)<0}return!0},e.prototype._reset=function(){this._recoveryTimeoutVal=1e4*Math.random()+1e4,this._recoveryTimeoutIncr=2e3,this._stopFrozenDetectionTimer()},e.prototype._getCurrentItem=function(){return this._model.playlist?this._model.playlist.getCurrentItem():null},e.prototype._activate=function(t){this._startRecoveryFailureTimer(),1!==t?this.recover(t):this._startTimer(this._recoveryTimeoutVal)},e.prototype._deactivate=function(){this._reset(),this.stopTimers(),this._recovering=!1,this._recoveryState=0,this._errRecovering=null,this._errRecoveryCount=0},e.prototype._startTimer=function(t){var e=this;this._stopFrozenDetectionTimer(),this._frozenDetectionTimer=new c.default(t,1),this._frozenDetectionTimer.addEventListener(c.default.TIMER_EVENT,function(){e.recover(e._recoveryState?e._recoveryState:1)},this),this._frozenDetectionTimer.start()},e.prototype._restartTimer=function(t){(t=!!d.isNullOrUndefined(t)||t)&&(this._recoveryTimeoutVal+=this._recoveryTimeoutIncr,this._recoveryTimeoutIncr*=2),this._startTimer(this._recoveryTimeoutVal)},e.prototype._startRecoveryFailureTimer=function(){var t=this;this._recoveryFailureTimer||(this._recoveryFailureTimer=new c.default(1e3*this._model.recoveryFailureTimeout,1),this._recoveryFailureTimer.addEventListener(c.default.TIMER_EVENT,function(){var e=h.default.createErr(a.ErrorGroup.Streaming,t._model.playbackState,a.E_PLAYER,a.PLAYER_CODES.E_RECOVERY_FAILURE,null,t._getErrorString());t.publish(u.ERROR,e),t._deactivate()},this),this._recoveryFailureTimer.start())},e.prototype._stopFrozenDetectionTimer=function(){this._frozenDetectionTimer&&(this._frozenDetectionTimer.destroy(),this._frozenDetectionTimer=null)},e.prototype._stopCdnDownTimer=function(){this._cdnDownTimer&&(this._cdnDownTimer.destroy(),this._cdnDownTimer=null)},e.prototype._stopRecoveryFailureTimer=function(){this._recoveryFailureTimer&&(this._recoveryFailureTimer.destroy(),this._recoveryFailureTimer=null)},e.prototype._onBufferGrowthDetected=function(){var t=this._getCurrentItem();t&&!t.isLive()&&this._restartTimer(!1)},e.prototype._getErrorString=function(){return 2===this._recoveryState?this._recoveryState+"-"+this._errRecovering.category+"-"+this._errRecovering.subcategory:this._recoveryState.toString()},e}(s.default);e.default=g},BHp4:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div>"),n.b("\n"+i),n.b("        <div class='vp-audio-header'>"),n.b("\n"+i),n.b("            <span class='vp-audio-list-title'>"),n.b(n.v(n.d("Strings.AUDIO_TRACK",t,e,0))),n.b("</span>"),n.b("\n"+i),n.s(n.f("isMobile",t,e,1),t,e,0,142,233,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b('            <span class="vp-audio-list-close" data-action="close">&#x2715;</span>'),n.b("\n"+i)}),t.pop()),n.b("        </div>"),n.b("\n"+i),n.s(n.f("items",t,e,1),t,e,0,276,576,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("        <div class='vp-audio-item "),n.s(n.f("selected",t,e,1),t,e,0,324,346,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b("vp-audio-item-selected")}),t.pop()),n.b("' data-selected=\""),n.b(n.v(n.f("selected",t,e,0))),n.b('" data-language="'),n.b(n.v(n.f("language",t,e,0))),n.b('" data-name="'),n.b(n.v(n.f("name",t,e,0))),n.b('">'),n.b("\n"+i),n.b("            <span class='vp-audio-item-check'></span>"),n.b("\n"+i),n.b("            <span class='vp-audio-item-title'>"),n.b(n.v(n.f("name",t,e,0))),n.b("</span>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i)}),t.pop()),n.b("</div>"),n.fl()},partials:{},subs:{}})},BZeT:function(t,e,i){"use strict";t.exports=s;var n=i("Xovh"),r=i("iSaY"),o=i("+orS");function s(t,e){var i=this;i._opts=e||{},i._node="string"==typeof t?document.querySelector(t):t||null,Object.defineProperty(i,"error",{enumerable:!0,get:function(){return i._context?i._context.error:null}}),o.apply()}s.prototype.setSrc=function(t){if(!this._node)throw new r.Error(r.ERR_API_NO_NODE).error;if(t){if(t!==this._metadata){this._metadata=t,this._context&&this.unload();try{this._context=new n(window,this._node,this._metadata,this._opts)}catch(t){}}}else this._node.src=""},s.prototype.getSegInfo=function(){try{return this._context?this._context.getSegInfo():null}catch(t){return null}},s.prototype.setQuality=function(t){try{this._context.setABRMode(t)}catch(t){}},s.prototype.setAudioLanguage=function(t){try{this._context.setAudioLanguage(t)}catch(t){}},s.prototype.unload=function(){this._context&&this._context.destroy(),this._context=null},s.prototype.play=function(t){this._context&&this._context.play(t)},s.prototype.pause=function(){this._context?this._context.pause():this._node&&this._node.pause()},s.prototype.preload=function(t){this._context&&this._context.preload(t)},s.prototype.getCurrentDate=function(){if(this._context)return this._context.getCurrentDate()||null},s.prototype.suspendStreaming=function(){this._context&&this._context.suspendStreaming()},s.prototype.resumeStreaming=function(){this._context&&this._context.resumeStreaming()},s.prototype.destroy=function(){this._context&&this._context.destroy(),this._context=null,this._metadata=null,this._opts=null,this._node=null}},C4jF:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("O/dN"),s=i("UDn2"),a=i("ma23"),u=i("+Ojf"),l=i("LrgL"),c=i("vdbb"),d=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.cmdName=c.CmdName.CMD_SOURCE_METADATA_LOAD,n._loading=!1,n._destroyed=!1,n}return r(e,t),e.prototype.destroy=function(){this._destroyed=!0,this.cancel(),t.prototype.destroy.call(this)},e.prototype.execute=function(){if(!this._loading&&!this._destroyed){var t=this.data,e=t.autoplay,i=t.failoverCount,n=t.gdprConsent,r=t.mimetype,l=t.mediaItemDataArr,d=t.rendererCapabilities,h=t.rendererTypes,p=t.sessionId,f=t.recovering,_=t.thumbnailDimensions,m=t.tryCount,y=this._pluginManager.getPlugin(a.PluginType.SOURCE_METADATA,r),v={autoplay:e,failoverCount:i,gdprConsent:n,rendererCapabilities:d,rendererTypes:h,sessionId:p,thumbnailDimensions:_,tryCount:m};if(y)this._plugin=y,this._loading=!0,this.publish(c.CmdEvent.CMD_PROGRESS,this,l,s.SourceState.FETCHING),!0===f?y.recover(l[0],v,this):y.resolve(l,v,this);else{var g="No source metadata plugin found for mimetype = "+r,E=u.default.createErr(o.ErrorGroup.Service,null,o.E_PLAYER,o.PLAYER_CODES.E_NO_PLUGIN_FOUND,g);this.publish(c.CmdEvent.CMD_ERROR,this,E)}}},e.prototype.cancel=function(){this._plugin&&this._loading&&(this._plugin.cancel(),this._loading=!1)},e.prototype.onProgress=function(t){this._loading&&!this._destroyed&&this.publish(c.CmdEvent.CMD_PROGRESS,this,t)},e.prototype.onComplete=function(t){this._loading&&!this._destroyed&&(this._loading=!1,this.publish(c.CmdEvent.CMD_COMPLETE,this,t))},e.prototype.onError=function(t){if(this._loading&&!this._destroyed&&(this._loading=!1,t.code&&t.code.length)){var e=u.default.createErr(t.group||o.ErrorGroup.Service,null,t.category||o.E_PLAYER,t.code,t.message);this.publish(c.CmdEvent.CMD_ERROR,this,this.data.mediaItemDataArr,e)}},e.prototype.onApiCallInfo=function(t){t&&this.publish(c.CmdEvent.CMD_INFO,this,t)},e}(l.default);e.default=d},CIyJ:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-start-screen "),n.s(n.f("show",t,e,1),t,e,1,0,0,"")||n.b("vp-vis-hidden vp-disp-none"),n.b("' tabindex='-1'>"),n.b("\n"+i),n.b("    <img class='vp-start-screen-image' src='"),n.b(n.v(n.f("imageSrc",t,e,0))),n.b("' width='"),n.b(n.v(n.f("width",t,e,0))),n.b("' height='"),n.b(n.v(n.f("height",t,e,0))),n.b("' aria-hidden='true'>"),n.b("\n"+i),n.s(n.d("config.showButton",t,e,1),t,e,0,231,350,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("        <div class='vp-start-screen-button' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.PLAY_VIDEO",t,e,0))),n.b("' role='button'></div>"),n.b("\n"+i)}),t.pop()),n.b("    <div class='vp-start-screen-bar-wrapper'>"),n.b("\n"+i),n.b("        <div class='vp-start-screen-bar' tabindex='-1'>"),n.b("\n"+i),n.s(n.d("config.showProvider",t,e,1),t,e,0,511,618,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <h4 class='vp-start-screen-provider' tabindex='1'>"),n.b(n.v(n.d("item.provider.name",t,e,0))),n.b("</h4>"),n.b("\n"+i)}),t.pop()),n.s(n.d("config.showTitle",t,e,1),t,e,0,676,772,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <h3 class='vp-start-screen-title' tabindex='2'>"),n.b(n.v(n.d("item.title",t,e,0))),n.b("</h3>"),n.b("\n"+i)}),t.pop()),n.s(n.d("config.showDescription",t,e,1),t,e,0,833,939,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <p class='vp-start-screen-description' tabindex='3'>"),n.b(n.v(n.d("item.description",t,e,0))),n.b("</p>"),n.b("\n"+i)}),t.pop()),n.b("        </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},CgWD:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t.TAP="tap"}(n||(n={}));var r={AD:[{combination:[38,38,40,40,191],alt:!0},{combination:[40,40,38,38,37,39,37,39]}],NORMAL:[{combination:[79,80,69,78,83,73,77,83,73,77]},{combination:[79,80,83,83]},{combination:[37,37,39,39,13],alt:!0},{combination:[38,38,40,40,37,39,37,39]}]},o={AD:[n.LEFT,n.RIGHT,n.UP,n.DOWN,n.TAP,n.TAP,n.TAP],NORMAL:[n.UP,n.DOWN,n.LEFT,n.RIGHT,n.TAP,n.TAP]},s=function(){function t(t,e){this._touches=[],this._numAltPressedKeydowns=0,this._longestPassphraseLength=0,this._keyPressed=[],this._cb=e,this._type=t,this._passPhrases=r[this._type],this._bindTouchEvents(),this._bindKeys()}return t.prototype.destroy=function(){document.removeEventListener("keydown",this._onKeyDownListener,!1),document.removeEventListener("touchstart",this._touchstart,!1),document.removeEventListener("touchmove",this._touchmove,!1),document.removeEventListener("touchend",this._touchend,!1)},t.prototype._bindKeys=function(){var t=this;this._numAltPressedKeydowns=0,this._longestPassphraseLength=0,this._passPhrases.forEach(function(e){e.length=e.combination.length,e.value=e.length?e.combination.toString():null,e.length>t._longestPassphraseLength&&(t._longestPassphraseLength=e.length)}),this._onKeyDownListener=this._onKeyDown.bind(this),document.addEventListener("keydown",this._onKeyDownListener,!1)},t.prototype._onKeyDown=function(t){var e=this;this._numAltPressedKeydowns=t.altDown||t.altKey?this._numAltPressedKeydowns+1:0,this._keyPressed.push(t.keyCode),this._keyPressed.length>this._longestPassphraseLength&&this._keyPressed.shift(),this._passPhrases.some(function(t){var i=e._keyPressed.slice(Math.max(e._keyPressed.length-t.length,0)).toString()===t.value;return t.alt?i&&e._numAltPressedKeydowns>t.length:i})&&this._cb()},t.prototype._touchstart=function(t){this._startX=t.changedTouches[0].pageX,this._startY=t.changedTouches[0].pageY,this._stopX=0,this._stopY=0},t.prototype._touchmove=function(t){if(1===t.touches.length){var e=t.touches[0];this._stopX=e.pageX,this._stopY=e.pageY}},t.prototype._touchend=function(){var t,e=o[this._type];this._stopX||this._stopY?t=Math.abs(this._startX-this._stopX)>Math.abs(this._startY-this._stopY)?this._startX-this._stopX<0?n.RIGHT:n.LEFT:this._startY-this._stopY<0?n.DOWN:n.UP:t=n.TAP;this._touches.push(t),this._touches.length>e.length&&this._touches.shift(),this._touches.length===e.length&&this._touches.every(function(t,i){return t===e[i]})&&this._cb()},t.prototype._bindTouchEvents=function(){this._touchstart=this._touchstart.bind(this),this._touchmove=this._touchmove.bind(this),this._touchend=this._touchend.bind(this),document.addEventListener("touchstart",this._touchstart,!1),document.addEventListener("touchmove",this._touchmove,!1),document.addEventListener("touchend",this._touchend,!1)},t}();e.default=s},Cp2M:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.configSchema={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{adPlaybackOnly:{type:"boolean"},analytics:{type:"boolean"},autoplay:{type:"boolean"},casting:{type:"boolean"},continuousPlay:{type:"boolean"},enableRecovery:{type:"boolean"},fullscreen:{type:"boolean"},height:{type:"number"},lang:{type:"string"},loop:{type:"boolean"},mediaItems:{type:"array",items:[{$ref:"/mediaItemSchema"}],minItems:1},mute:{type:"boolean"},preload:{type:"boolean"},region:{type:"string"},site:{type:"string"},skipOnError:{type:"string",enum:["always","timebased","never"]},stopAtLastFrame:{type:"boolean"},stopBufferingOnPause:{type:"boolean"},ui:{$ref:"/uiSchema"},width:{type:"number"},backgroundPause:{type:"object",properties:{onMute:{type:"boolean",default:!0},onUnmute:{type:"boolean",default:!1},timeToPause:{type:"number",default:5},suspendStreamingTime:{type:"number",default:20},backgroundSuspendStreaming:{type:"boolean",default:!0}}},ads:{type:"object",properties:{timeout:{type:"object",properties:{load:{type:"number",minimum:1},start:{type:"number",minimum:1}}}}},vrmConfig:{$ref:"/vrmSchema"}},required:["mediaItems"]}},D1bo:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("JcWZ"),s=i("ToqN"),a=i("g6gz"),u=i("ury3"),l=i("Q+FR"),c=i("A4+F"),d=i("+SyR"),h=i("1LND"),p=i("xOqZ"),f=i("oIMU"),_=i("Cp2M"),m=i("heKF"),y=i("lYNO"),v=i("Mkxr"),g=i("eapS"),E=i("0xFk"),b=i("c6dB"),S=i("fLR+"),A=i("+Ojf"),T=i("d6Mc"),I=i("H8YR"),C=i("pBvk").Validator,R=function(t){function e(e,i){var n=t.call(this,"VdmsPlayer")||this;return n._suspendedState=!1,n.version="0.2.137",n.playerType="PLAYER_TYPE",n.language="SCRIPT_LANGUAGE_I18N",n.config=e,n.mediaStore=i,n.guid=A.default.generateGuid(),n._validateConfig(e),n._loadCSS(),n._create(e,i),n}return r(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._profiler&&this._profiler.destroy(),this._controller&&(this._controller.destroy(),this._controller=null),this._cleanUpAnalytics(),window.removeEventListener("pageshow",this._bfCacheHandler,!1)},Object.defineProperty(e.prototype,"state",{get:function(){return T.PlayerState.PAUSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return new Error},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._controlsAPI.getVolume()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"audioTracks",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoTracks",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textTracks",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._controlsAPI.getDuration()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawDuration",{get:function(){return this._controlsAPI.getRawDuration()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._controlsAPI.getCurrentTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawCurrentTime",{get:function(){return this._controlsAPI.getRawCurrentTime()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentDate",{get:function(){return this._controlsAPI.getCurrentDate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seekable",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waiting",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seeking",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.getThumbnail=function(t){return""},Object.defineProperty(e.prototype,"castingDeviceType",{get:function(){return T.CastDeviceType.NONE},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"castingDeviceName",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"castingConnectionState",{get:function(){return T.CastConnectionState.NOT_CONNECTED},enumerable:!0,configurable:!0}),e.prototype.getChromecastButton=function(){return""},e.prototype.isCastingAvailable=function(t){return!1},e.prototype.startCasting=function(t){return!1},e.prototype.stopCasting=function(){return!1},e.prototype.initialize=function(){this._controller&&this._controller.initialize()},e.prototype.render=function(t){return this._validateState(),this._selector=t,this._controller&&this._controller.render(t),this},e.prototype.setQueryString=function(t){},e.prototype.getMediaItems=function(){return this._mediaItemsAPI.getMediaItems()},e.prototype.removeAllMediaItems=function(){this._mediaItemsAPI.removeAllMediaItems()},e.prototype.removeMediaItems=function(t){this._mediaItemsAPI.removeMediaItems(t)},e.prototype.insertMediaItems=function(t,e){this._mediaItemsAPI.insertMediaItems(t,e)},e.prototype.appendMediaItems=function(t){this._mediaItemsAPI.appendMediaItems(t)},e.prototype.getCurrentMediaItem=function(){return this._mediaItemsAPI.getCurrentMediaItem()},e.prototype.setCurrentMediaItem=function(t){this._mediaItemsAPI.setCurrentMediaItem(t)},e.prototype.setMediaItemTitle=function(t,e){this._mediaItemsAPI.setMediaItemTitle(t,e);var i=this.getCurrentMediaItem();i&&i.id===t&&this._controller.updateCurrentItemTitle(e)},e.prototype.getCurrentAdBreak=function(){return this._adBreakAPI.getCurrentAdBreak()},e.prototype.getCurrentAdBreakItem=function(){return this._adBreakAPI.getCurrentAdBreakItem()},e.prototype.play=function(t){void 0===t&&(t=0),this._controlsAPI.play(t,null)},e.prototype.pause=function(){this._controlsAPI.pause(null)},e.prototype.mute=function(){this._controlsAPI.setMute(!0)},e.prototype.unMute=function(){this._controlsAPI.setMute(!1)},e.prototype.setVolume=function(t){S.isNumber(t)&&this._controlsAPI.setVolume(t)},e.prototype.seek=function(t){this._controlsAPI.seek(t)},e.prototype.registerPlugin=function(t){this._controller&&this._controller.registerPlugin(t)},e.prototype.getVideoElement=function(){return this._validateState(),this._controller?this._controller.videoElement:null},e.prototype.getRootElement=function(){return this._validateState(),this._controller?this._controller.rootElement:null},e.prototype.suspendState=function(){if(!s.userAgent.desktop&&!this.isSuspended()){this._validateState();var t={boundEvents:this._events,currentTime:this._controlsAPI.getCurrentTime(),mediaStore:this.getMediaStore(),playlist:this._controller.getPlaylistItems(),position:this._playlistAPI.getPosition(),selector:this._selector};return this._suspendedState=!0,this.destroy(),t}},e.prototype.resumeState=function(t){this.isSuspended()&&t&&(this._suspendedState=!1,this._create(this.config,t.mediaStore),this._playlistAPI.setItems(t.playlist),this._playlistAPI.setPosition(t.position),this._controller.startTime=t.currentTime,this._events=t.boundEvents)},e.prototype.isSuspended=function(){return this._suspendedState},e.prototype.isRendered=function(){return this._validateState(),!!this._controller&&this._controller.rendered},e.prototype.preload=function(){this._controlsAPI.preload()},e.prototype.disableControls=function(){this._controlsAPI.disableControls()},e.prototype.enableControls=function(){this._controlsAPI.enableControls()},e.prototype.enableCC=function(t){this._controlsAPI.enableCC(t)},e.prototype.disableCC=function(){this._controlsAPI.disableCC()},e.prototype.isPlaying=function(){return this._controller.isPlayMode()},e.prototype.isPlayMode=function(){return this._controller.isPlayMode()},e.prototype.isLoading=function(){return this._controller.isLoading()},e.prototype.getPlaybackState=function(){return this._controlsAPI.getPlaybackState()},e.prototype.getCurrentTime=function(){return this._controlsAPI.getCurrentTime()},e.prototype.getTimeRemaining=function(){return this._controlsAPI.getTimeRemaining()},e.prototype.setFullscreen=function(t){void 0===t&&(t=!0),this._controlsAPI.setFullscreen(t)},e.prototype.getFullscreen=function(){return this._controlsAPI.getFullscreen()},e.prototype.getVolume=function(){return this._controlsAPI.getVolume()},e.prototype.setMute=function(t){void 0===t&&(t=!0),this._controlsAPI.setMute(t)},e.prototype.getMute=function(){return this._controlsAPI.getMute()},e.prototype.addCustomControlElement=function(t){return this._controller.addCustomControlElement(t)},e.prototype.setLoop=function(t){this._controlsAPI.setLoop(t)},e.prototype.setContinuousPlay=function(t){void 0===t&&(t=!0),this._controlsAPI.setContinuousPlay(t)},e.prototype.resumeContinuousPlay=function(){this._controlsAPI.resumeContinuousPlay()},e.prototype.getCurrentDate=function(){return this._controlsAPI.getCurrentDate()},e.prototype.addItems=function(t,e){this._playlistAPI.addItems(t,e)},e.prototype.addMetricsEventListener=function(t,e){var i=this._externalEvtAPI.getAllExternalEvtNames();return this.addEventListeners(i,t,e)},e.prototype.canPlayManifestString=function(t){return!0},e.prototype.setAudioLanguage=function(t){this._controlsAPI.setAudioLanguage(t)},e.prototype.getPlaylist=function(){return this._playlistAPI},e.prototype.getMediaStore=function(){return this._validateState(),{_privateMediaStore:this._controller.mediaStore}},e.prototype.getPlaybackStartDto=function(){var t=this._controller.model,e=this._profiler;return{isResume:t.isResumingFromSavedPosition,initTime:e.startTime,cmsLatency:e.getItem(f.METRICS.CMS_REQUEST),cmsSourceLatency:e.getItem(f.METRICS.CMS_SOURCE_REQUEST),playbackStartLatency:e.getItem(f.METRICS.PLAYBACK_START),autoPlayLatency:e.getItem(f.METRICS.INIT_TO_START),autoPlayAllowed:t.isAutoplayAllowed(),clickToPlayLatency:e.getItem(f.METRICS.CLICK_TO_START),adPluginLatency:e.getItem(f.METRICS.AD_PLUGIN)}},e.prototype.getInitTime=function(){return this._profiler.startTime},e.prototype.__setError=function(t,e,i,n,r){if(this._validateState(),!this._controller)return null;this._controller.setCustomError(t,e,i,n,r)},e.prototype.isDocked=function(){return this._validateState(),this._controller&&this._controller.docked},e.prototype.updateDockingConfig=function(t,e,i,n,r,o){this._validateState(),this._controller.updateDockingConfig(t,e,i,n,r,o)},e.prototype.undockVideoPlayer=function(t){this._validateState(),this._controller.undockVideoPlayer(t)},e.prototype._validateConfig=function(t){try{var e=new C;e.addSchema(v.streamSchema,"/streamSchema"),e.addSchema(y.sourceSchema,"/sourceSchema"),e.addSchema(m.mediaItemSchema,"/mediaItemSchema"),e.addSchema(g.uiSchema,"/uiSchema"),e.addSchema(E.vrmSchema,"/vrmSchema"),e.validate(t,_.configSchema,{throwError:!0})}catch(t){var i="Invalid player config: "+t.property+" "+t.message;throw new Error(i)}},e.prototype._create=function(t,e){this._eventBus=new o.default("internal"),this._createAnalytics();var i=null;e&&(i=e._privateMediaStore||null),this._handleBrowserbfCache(),this._profiler=new b.Profiler(t,this._eventBus),this._controller=new p.default(t,i,this.guid,this._eventBus,this._profiler),this._externalEvtAPI=new c.ExternalEvtAPI(this,this._controller,this._eventBus),this._externalEvtAPI.enablePublish(),this._controller.initNewPlayback(),this._controlsAPI=new l.default(this._controller),this._playlistAPI=new h.default(this._controller),this._mediaItemsAPI=new d.default(this._controller),this._adBreakAPI=new u.default(this._controller)},e.prototype._handleBrowserbfCache=function(){var t=this;this._bfCacheHandler=function(e){e.persisted&&t._reload()},s.userAgent.safari&&window.addEventListener("pageshow",this._bfCacheHandler,!1)},e.prototype._validateState=function(){if(this.isSuspended()||!this._controller)throw new Error("INVALID_STATE_ERR: An attempt was made to use videoplayer instance that is not, or no longer, usable.");return!0},e.prototype._reload=function(){this.destroy(),this._create(this.config,this.mediaStore),this.render(this._selector)},e.prototype._cleanUpAnalytics=function(){this._analyticsList.forEach(function(t){t.destroy()}),this._analyticsList=[]},e.prototype._createAnalytics=function(){var t=this;this._analyticsList=this._analyticsList||[],!0===this.config.analytics&&this._analyticsList.push(new I.default(this));var e=!1;this._eventBus.addEventListener(c.ExternalEvt.NIELSEN_REQUIRED,function(){if(!e){var i=(t.config.nielsenConfig||{}).nielsenAppId||null;t._analyticsList.push(new a.default(t,i)),e=!0}},this)},e.prototype._loadCSS=function(){var t=this.config.cssTheme,e=A.default.getCssBuildUrl("7edafaecbd".indexOf("local")>-1,"7edafaecbd",t);A.default.loadCssAsset("vp-css",e,function(){A.default.setSingleton("isCSSLoaded",!0)},function(){A.default.setSingleton("isCSSError",!0)})},e}(o.default);e.default=R},D3zA:function(t,e,i){"use strict";var n=i("aI7X");t.exports=Function.prototype.bind||n},D77f:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i("JcWZ"),u=i("ToqN"),l=i("M44j"),c=i("6nrW"),d=i("A4+F"),h=i("8PPl"),p=i("oIMU"),f=i("u8By"),_=i("yegX"),m=i("dgSz"),y=i("canP"),v=i("WSjl"),g=i("R+G7"),E=i("1get"),b=i("fLR+"),S=i("+Ojf"),A=i("xQ2D");!function(t){t.PLAY_CAST="play-cast",t.PAUSE_CAST="pause-cast",t.SEEK_CAST="seek-cast",t.SRC_SWITCHING="playback-src-switching",t.SRC_SWITCHED="playback-src-switched",t.CLICK="playback-video-click",t.PAUSE="playback-paused",t.PLAYBACK_ERROR="playback-error",t.LOADEDMETADATA="playback-loadedmetadata",t.LOADEDDATA="playback-loadeddata",t.STALLED="playback-stalled",t.LOADSTART="playback-loadstart",t.PLAY="playback-play",t.PLAYING="playback-playing",t.SEEKING="playback-seeking",t.SEEKED="playback-seeked",t.WAITING="playback-waiting",t.TIMEUPDATE="playback-timeupdate",t.MUTE_CHANGED="playback-mutechanged",t.VOLUME_CHANGED="playback-volumechanged",t.END_FULLSCREEN="playback-endfullscreen",t.PLAYBACK_START_NOT_ALLOWED="playback-start-not-allowed",t.PLAYBACK_START_BLOCKED="playback-play-blocked",t.PLAYBACK_RESUME="playback-resume",t.PLAYBACK_NEW_ATTEMPT="playback-new-attempt",t.PLAYBACK_REQUEST="playback-request",t.PLAYBACK_LOADING="playback-loading",t.PLAYBACK_PAUSING="playback-pausing",t.PLAYBACK_STARTED="playback-started",t.PLAYBACK_ERROR_NO_VALID_STREAM="playback-error-no-valid-stream",t.PLAYBACK_ERROR_BEFORE_METADATA_READY="playback-error-before-metadata-ready",t.PLAYBACK_ERROR_INCONSISTENT_METADATA="playback-error-inconsistent-metadata",t.PLAYBACK_ERROR_NO_RENDERER="playback-error-no-renderer",t.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED="playback-error-flash-not-supported",t.PLAYBACK_SYNC_VIEW="playback-sync-view",t.PLAYBACK_PROGRESS="playback-progress",t.PLAYBACK_NEED_MEDIA_ITEM_METADATA="playback-need-media-item-metadata",t.PLAYBACK_NEED_MEDIA_ITEM_SOURCE="playback-need-media-item-source",t.MODE_CHANGE="playback-mode-change",t.RENDERER_SWITCH="playback-renderer-switch",t.RENDERER_TIMEOUT="playback-renderer-timeout",t.RENDERER_CREATED="playback-renderer-created",t.SET_PLAYLIST_POSITION_BEFORE="playback-set-playlist-position-before",t.STOP_CURRENT_PLAYBACK="playback-stop-current-playback",t.MEDIA_ITEM_IS_LOADED="playback-media-item-is-loaded",t.MEDIA_ITEM_CURRENT="playback-media-item-current",t.MEDIA_ITEM_PLAYBACK_STARTED="playback-media-item-started",t.MEDIA_ITEM_PLAYBACK_RESUMED="playback-media-item-resumed",t.MEDIA_ITEM_PLAYBACK_PROGRESS="playback-media-item-progress",t.MEDIA_ITEM_PLAYBACK_ENDED="playback-media-item-ended",t.MEDIA_ITEM_PLAYBACK_STOPPED="playback-media-item-stopped",t.MEDIA_ITEM_ERROR="playback-media-item-error",t.PLAYLIST_POSITION_HAS_CHANGED="playback-playlist-position-has-changed",t.PLAYLIST_NO_MORE_ITEM_TO_PLAY="playback-playlist-no-more-item-to-play",t.AD_BREAK_STARTED="playback-ad-break-started",t.AD_BREAK_ENDED="playback-ad-break-ended",t.AD_BREAK_NEED_RESOLVE="playback-ad-break-need-resolve",t.AD_BREAK_ITEM_CURRENT="playback-ad-break-item-current",t.AD_BREAK_ITEM_PLAYBACK_STARTED="playback-ad-break-item-started",t.AD_BREAK_ITEM_PLAYBACK_SKIPPED="playback-ad-break-item-skipped",t.AD_BREAK_ITEM_PLAYBACK_RESUMED="playback-ad-break-item-resumed",t.AD_BREAK_ITEM_PLAYBACK_PROGRESS="playback-ad-break-item-progress",t.AD_BREAK_ITEM_PLAYBACK_ENDED="playback-ad-break-item-ended",t.AD_BREAK_ITEM_PLAYBACK_STOPPED="playback-ad-break-item-stopped",t.AD_BREAK_ITEM_ERROR="playback-ad-break-item-error",t.CREATE_OVERLAY_CONTAINER="playback-create-overlay-container",t.AD_METRICS="ad-metrics"}(s=e.PlaybackEvent||(e.PlaybackEvent={}));var T=function(t){function e(e,i,n){var r=t.call(this,"PlaybackController")||this;return r._firstClickToStartPlayCalled=!1,r._firstPlay=!0,r._hasNotifiedItemStarted=!1,r._playbackProgressCalled=!1,r._waitMetadataBeforePlay=!1,r._waitTapRestrictionRemoved=!1,r._mediaUnloaded=!1,r._forcePlayingAdBreakData=null,r._seekStartTime=null,r._model=e,r._eventBus=i,r._playbackStarted={},r._rendererController=new c.RendererController(e,i,n),r._setupRendererControllerEvents(),r._playbackState=new y.default,r._model.setPlaybackState(r._playbackState),r._adPlaybackController=new l.AdPlaybackController(e,n),r._setupAdPlaybackControllerEvents(),r._pauseHandler=new A.default(r,r._model),r._setupPauseHandlerEvents(),r}return r(e,t),e.prototype.startPlayback=function(t){var e=this;if(void 0===t&&(t=null),this._model.playbackState.shouldPlay=!0,this._pauseHandler.resumeStreaming(),this._model.getState()===v.default.VIDEO)return this._playCurrent(0),void this._adPlaybackController.resumeClientAdStartTimer();var i=this._model.playlist.getCurrentItem();if(i&&this._model.rendered&&!this._model.playbackState.attemptingPlayback())if(this._model.autoplay||this._firstClickToStartPlayCalled||(this._firstClickToStartPlayCalled=!0,this.publish(p.PROFILE_START,p.METRICS.CLICK_TO_START)),this._model.castState&&this._model.castState.connected)this.publish(s.PLAY_CAST);else{if(t&&(this._model.requestType=t.type,t.action&&S.default.isValidRequestAction(t.action)&&(this._model.requestAction=t.action)),!this._isPlaybackStartAllowed())return this._model.showStartScreen=!0,this._model.autoplay=!1,void this.enterInitState();this._model.waitingForUserTap?this._waitTapRestrictionRemoved||(this._waitTapRestrictionRemoved=!0,this._waitToPlaySubscriptionKey=this.once(p.TOUCH_TO_PLAY_RESTRICTION_REMOVED,function(){e._waitTapRestrictionRemoved=!1,e.startPlayback(t)},this)):(this._spinnerMonitorStartTime=null,this._model.isPaused()?this.playCurrent():g.default.autoplaySupported||i.fetchFinished()?this._startNewPlayback(i):this.publish(s.PLAYBACK_ERROR_BEFORE_METADATA_READY))}},e.prototype.playCurrent=function(t){this._rendererController.play(t)},e.prototype.handleSourceAvailable=function(t){var e=this._model.playlist.getCurrentItem();e&&t&&(e.equals(t)?this._playbackState.playingItem instanceof _.default?this._rendererController.handleAdvancePreparePreloadNextRenderer(t):(this._adPlaybackController.prepareAdsForItem(t),this._loadSourceOfMediaItem(t)):(this._adPlaybackController.prepareAdsForItem(t),this._rendererController.handleAdvancePreparePreloadNextRenderer(t)))},e.prototype.handleAdBreakResolved=function(t,e){this._adPlaybackController.handleAdBreakResolved(t,e)},e.prototype.skipAd=function(){this._rendererController.skip()},e.prototype.handleCriticalError=function(t){this._clearPlaybackTimeout(),this._model.playbackState.criticalError=t,this._handleMediaItemPlaybackStopped(),this._rendererController.endVideo(),this._rendererController.stopMedia()},e.prototype.pause=function(t){if(this._model.playbackState.shouldPlay=!1,this._model.playbackState.hasRendererPlayCalled&&this._model.rendered){var e=this._model.castState;if(e&&e.connected&&!e.paused)this.publish(s.PAUSE_CAST);else{if(this._waitToPlaySubscriptionKey)return this.removeEventListener(p.TOUCH_TO_PLAY_RESTRICTION_REMOVED,this._waitToPlaySubscriptionKey),void delete this._waitToPlaySubscriptionKey;t&&(this._model.requestType=t.type,S.default.isValidRequestAction(t.action)&&(this._model.requestAction=t.action)),this._model.playbackState.attemptingPlayback()&&(this.pauseCurrent(),this._clearPlaybackTimeout(),this._pauseHandler.scheduleSuspend())}}},e.prototype.pauseCurrent=function(){this._rendererController.pause()},e.prototype.seek=function(t){this._model.rendered&&(this._model.castState&&this._model.castState.connected?this.publish(s.SEEK_CAST,t):this._model.getState()===v.default.VIDEO&&this._rendererController.seek(t))},e.prototype.seekCurrent=function(t){if(this._model.rendered&&this._model.getState()===v.default.VIDEO){var e=this._getRawSeekSeconds(t);this.seek(e)}},e.prototype.syncPlaybackState=function(){this._rendererController.syncPlaybackState()},e.prototype.getRawCurrentTime=function(){return this._rendererController.getCurrentTime()},e.prototype.getCurrentTime=function(){return this._currentTime||0},e.prototype.getCurrentDate=function(){return this._rendererController.getCurrentDate()},e.prototype.rewindAfterEnd=function(t){this._rendererController.rewindAfterEnd(t)},e.prototype.getRawDuration=function(){return this._rendererController.getDuration()},e.prototype.getDuration=function(){var t=this.getPlayingItem();if(!t){var e=this._model.playlist.getCurrentItem();return e?e.duration:NaN}if(t instanceof m.default)return t.duration;if(t instanceof _.default){if(t.instream)return t.duration;var i=this.getRawDuration();return isNaN(i)?t.duration:i}return NaN},e.prototype.enterFS=function(){this._rendererController.enterFS()},e.prototype.exitFS=function(){this._rendererController.exitFS()},e.prototype.showAirplayTargetMenu=function(){this._rendererController.showAirplayTargetMenu()},e.prototype.setQuality=function(t){this._rendererController.setQuality(t)},e.prototype.setVolume=function(t){var e=this._model.volume;this._model.volume=t,this._rendererController.setVolume(t),this._eventBus.publish(p.CTRL_VOLUME,e),this._eventBus.publish(d.ExternalEvt.PLAYER_VOLUME_CHANGE,t)},e.prototype.setMute=function(t){this._model.mute=t,this._rendererController.setMute(t),this._eventBus.publish(d.ExternalEvt.PLAYER_MUTE_CHANGE,t)},e.prototype.setAudioLanguage=function(t){this._rendererController.setAudioLanguage(t)},e.prototype.stopMedia=function(){this._rendererController.stopMedia()},e.prototype.enableMobileNativeCC=function(t){this._rendererController.enableMobileNativeCC(t)},e.prototype.resumeContinuousPlay=function(t){this._model.continuousPlay=!0;var e={skipWatchedVideos:this._model.skipWatchedVideos};if(this._model.getState()===v.default.END){var i=this._model.playlist.getNextPosition(this._model.continuousPlay,this._model.loop,e);-1!==i&&this.setPlaylistPosition(i,!0,t)}},e.prototype.setPlaylistPosition=function(t,e,i){if(this._model.rendered){var n=this._model.playlist,r=n.getCurrentItem(),o=n.getMediaItemAt(t);if(!(r&&r.equals(o)&&this._model.playbackState.isInitializing())){this.stopCurrentPlayback(i),this._model.errors=[],this._model.playbackState.criticalError=null,n.position=t;var a=n.getCurrentItem();a?(this.initNewPlayback(a),e&&this.startPlayback(i),this.publish(s.PLAYLIST_POSITION_HAS_CHANGED,a)):this.publish(s.PLAYLIST_NO_MORE_ITEM_TO_PLAY),this.publish(s.PLAYBACK_SYNC_VIEW)}}},e.prototype.initNewPlayback=function(t){this.enterInitState(),this._requestVideo(t)},e.prototype.enterInitState=function(){this._model.setState(v.default.INIT),this._resetPlaybackStates(),this.publish(s.PLAYBACK_SYNC_VIEW)},e.prototype.getPlayingItem=function(){var t=this._getLoadedPlayableItem();return t instanceof m.default&&this._adPlaybackController.getPlayingInstreamAd()||t},e.prototype.stopCurrentPlayback=function(t){var e=this.getPlayingItem();e instanceof _.default?(this.publish(s.AD_BREAK_ITEM_PLAYBACK_STOPPED,e),this._adPlaybackController.handleAdBreakItemEnded(e)):e instanceof m.default&&(!t||t.type===h.REQUEST_TYPES.CONTINUOUS&&t.action!==h.REQUEST_TYPES.CLICK||this.publish(s.MEDIA_ITEM_PLAYBACK_STOPPED,e),e.position=0,this._model.playbackState.looped=!1,this._model.startTime=NaN,this._handleMediaItemPlaybackStopped(e));var i=this._model.playlist.getCurrentItem();this._setCurrentMediaType(i&&i.getStreamType()||""),this._resetPlaybackStarted(),this._rendererController.endVideo(),this._rendererController.stopMedia()},e.prototype.getActiveRenderer=function(){return this._rendererController.getActiveRenderer()},e.prototype.suspendStreaming=function(){this._rendererController&&this._rendererController.suspendStreaming()},e.prototype.resumeStreaming=function(){this._rendererController&&this._rendererController.resumeStreaming()},e.prototype.handleVisibilityChange=function(t){this._pauseHandler.onVisibilityChange(t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this._adPlaybackController.destroy(),this._pauseHandler.destroy()},e.prototype._setLoadingMode=function(t){this._resetPlaybackStates(),this._model.setState(v.default.VIDEO),this._model.setLoading(!0),this.publish(s.PLAYBACK_LOADING,t)},e.prototype._setPauseMode=function(){this._model.setPaused(!0),this._model.setLoading(!1),this.publish(s.PLAYBACK_PAUSING)},e.prototype._startNewPlayback=function(t){return this._currentMediaItem=t,this._resetPlayedFlags(),this._resetPlaybackStates(),this.publish(p.PROFILE_START,p.METRICS.PLAYBACK_START),t.isContainer()?(this._adPlaybackController.startTracking(t),t.adBreaks&&t.adBreaks.length||!t.adConfig?t.hasNativeAd()?this._adPlaybackController.playClientAdBreaks(t,f.AdBreakType.NATIVE):t.hasStreams()&&this._startPlaying(t):(this._adPlaybackController.prepareAdsForItem(t),this._adPlaybackController.playClientAdBreaks(t,f.AdBreakType.NATIVE)),void this.publish(s.PLAYBACK_SYNC_VIEW)):t.hasSource()?(this._startPlaying(t),void this.publish(s.PLAYBACK_SYNC_VIEW)):(this._model.setState(v.default.WAITING),this._model.setLoading(!0),this._waitMetadataBeforePlay=!0,this.publish(s.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,t),void this.publish(s.PLAYBACK_SYNC_VIEW))},e.prototype._getLoadedPlayableItem=function(){var t=this._rendererController.getActiveRenderer();return t?t.getPlayableItem():null},e.prototype._loadSourceOfMediaItem=function(t){var e,i=this;if(t.hasLiveStreams()&&t.hasLiveStateForVod())this.publish(s.PLAYBACK_ERROR_INCONSISTENT_METADATA);else{if(this._model.playbackState.loadedItem=t,t.customConfig&&t.customConfig.meta&&t.customConfig.meta.videoMarkers){var n=t.customConfig.meta.videoMarkers.markers;n&&n.length>0&&this._eventBus.publish(d.ExternalEvt.MARKERS_RECEIVED,((e={})[t.id]=n,e))}if(t.hasMetadata())this._model.playbackState.attemptingPlayback()||this._mediaUnloaded||this._model.firstCriticalError||this.enterInitState();else if(!(this._model&&this._model.playlist&&this._model.playlist.getCurrentItem()).equals(t))return;var r=t.position||this._model.startTime;this._rendererController.prepareNextRenderer(t,function(e){if(e)return i._clearPlaybackTimeout(),void(E.default.isHtml5MseAvailable()?i.publish(s.PLAYBACK_ERROR_NO_RENDERER,e):i.publish(s.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,e));if(i._hasNotifiedItemStarted=!1,i._rendererController.setItemNextRenderer(t,r))if(i._waitMetadataBeforePlay){if(i._waitMetadataBeforePlay=!1,!i._isPlaybackStartAllowed())return void i.publish(s.PLAYBACK_START_NOT_ALLOWED);i._startPlaying(t)}else i._rendererController.preloadNextRenderer();else i.publish(s.PLAYBACK_ERROR_NO_VALID_STREAM)}),this.publish(s.MEDIA_ITEM_IS_LOADED,t),this._mediaUnloaded=!1}},e.prototype._startPlaying=function(t){t===this._model.playlist.getCurrentItem()&&(this._hasCriticalError()||(this._model.setState(v.default.VIDEO),this._model.setLoading(!0),this.publish(s.PLAYBACK_REQUEST,t.id),this._model.playbackState.hasStartedPlayback=!0,this._firstPlay=!1,this._adPlaybackController.prepareAdsForItem(t),this._adPlaybackController.startTracking(t),this.publish(p.PROFILE_START,p.METRICS.AD_PLUGIN),this._adPlaybackController.playClientAdBreaks(t,f.AdBreakType.PREROLL),this.publish(s.PLAYBACK_SYNC_VIEW)))},e.prototype._startPlayingItem=function(t){var e=this;if(this._resetPlayedFlags(),t===this._model.playlist.getCurrentItem()){this._setCurrentMediaType(t.getStreamType()),this.publish(p.PROFILE_END,p.METRICS.AD_PLUGIN),t.restartIfNeeded();var i=this._model.startTime||0;t.isLongForm()&&isNaN(this._model.startTime)&&t.position>0&&(this._model.isResumingFromSavedPosition=!0,i=t.position),this._rendererController.prepareNextRenderer(t,function(n){n?e._clearPlaybackTimeout():e._rendererController.setItemNextRenderer(t,i)?e._rendererController.switchAndPlayNextRenderer(i):e.publish(s.PLAYBACK_ERROR_NO_VALID_STREAM)})}},e.prototype._startPlayingAdBreakItem=function(t){var e=this;this.publish(s.AD_BREAK_ITEM_CURRENT,t),t.streams&&0!==t.streams.length?this._rendererController.prepareNextRenderer(t,function(i){e._rendererController.setItemNextRenderer(t)?e._rendererController.switchAndPlayNextRenderer():e._handleAdBreakItemError(t)}):this._handleAdBreakItemError(t,new Error("No valid streams found"))},e.prototype._playCurrent=function(t){this.playCurrent(t),this._model.playbackState.hasCurrentItemPlayed||this._setLoadingMode(t),this._model.playbackState.hasRendererPlayCalled=!0},e.prototype._isPlaybackStartAllowed=function(){if(!this._firstPlay)return!0;var t=this._model.playlist.getCurrentItem();return!(this._model.requestType===h.REQUEST_TYPES.AUTOPLAY&&this._model.autoplay&&t&&t.blockAutoplay)&&(!u.userAgent.mobile||this._isMobilePlaybackStartAllowed())},e.prototype._isMobilePlaybackStartAllowed=function(t){return void 0===t&&(t={}),!(this._model.requestType!==h.REQUEST_TYPES.CLICK&&!this._model.isAutoplayAllowed())},e.prototype._resetPlayedFlags=function(){this._model.playbackState.hasCurrentItemPlayed=!1,this._model.playbackState.hasRendererPlayCalled=!1},e.prototype._hasCriticalError=function(){for(var t=0,e=this._model.errors;t<e.length;t++){var i=e[t];if(i.category||i.subcategory)return i}return null},e.prototype._clearPlaybackTimeout=function(){this._playbackTimeout&&clearTimeout(this._playbackTimeout)},e.prototype._setupPauseHandlerEvents=function(){var t=this;this._pauseHandler&&(this._pauseHandler.on(A.PauseHandlerEvents.RESUME_STREAMING,function(){t.resumeStreaming()},this),this._pauseHandler.on(A.PauseHandlerEvents.SUSPEND_STREAMING,function(){t.suspendStreaming()},this),this._pauseHandler.on(A.PauseHandlerEvents.CTRL_PLAYPAUSE,function(e){t._eventBus.publish(p.CTRL_PLAYPAUSE,e)},this))},e.prototype._setupRendererControllerEvents=function(){var t=this;this._rendererController.on(c.RendererControllerEvent.RENDERER_SWITCH,function(e,i){t.publish(s.RENDERER_SWITCH,e,i)},this),this._rendererController.on(c.RendererControllerEvent.RENDERER_TIMEOUT,function(){t.publish(s.RENDERER_TIMEOUT)},this),this._rendererController.on(c.RendererControllerEvent.RENDERER_CREATED,function(e){t.publish(s.RENDERER_CREATED,e)},this),this._rendererController.on(c.RendererControllerEvent.RENDERER_READY_TO_PLAY,function(e){t._model.playbackState.shouldPlay?t._playCurrent(e):(t._setPauseMode(),t._adPlaybackController.pauseClientAdStartTimer())},this),this._handleActiveRendererEvents()},e.prototype._resetPlaybackStarted=function(){this._playbackStarted={}},e.prototype._requestVideo=function(t){t&&(t.mayUpdateVideoSession(),t.useVideoSession(),this._eventBus.publish(p.VIDEO_REQUEST,!1),this.publish(s.MEDIA_ITEM_CURRENT,t))},e.prototype._resetPlaybackStates=function(){this._model.setPaused(!1),this._model.setSeeking(!1),this._model.setLoading(!1)},e.prototype._handleMediaItemPlaybackStopped=function(t){t&&(t.position=0,this._model.playbackState.previousItem=t,this.rewindAfterEnd(t.isLive())),this._model.setState(v.default.END),this._model.endVideo(),this._resetPlaybackStates()},e.prototype._handleNewPlaybackStarted=function(t){this._playbackProgressCalled=!1,this._playbackStarted[t.id]=!0;var e=!1;if(this._playbackState.duration=this.getDuration(),t instanceof m.default){this._forcePlayingAdBreakData=null;var i=this.getRawDuration();t.setRawDuration(i);var n=t.adBreaks;if(n&&n.length&&n[0].type===f.AdBreakType.PREROLL){var r=n[0];r&&r.adBreakItems&&r.adBreakItems[0].instream&&(e=!0)}e||this.publish(s.MEDIA_ITEM_PLAYBACK_STARTED,t,this.getCurrentTime())}else t instanceof _.default&&this._adPlaybackController.handleAdBreakItemPlaybackStarted(t);this._model.startTime=NaN},e.prototype._handleAdBreakItemError=function(t,e){this.publish(s.AD_BREAK_ITEM_ERROR,t,e),this._adPlaybackController.handleAdBreakItemError(t)},e.prototype._onActiveRendererClick=function(){this.publish(s.CLICK)},e.prototype._onActiveRendererPlaying=function(){this.publish(p.PROFILE_END,p.METRICS.AD_PLUGIN),this._model.playbackState.hasCurrentItemPlayed=!0;var t=this.getPlayingItem();this._playbackState.playingItem=t,this._seekStartTime=null,this._model.playbackState.videoLoading()&&(u.userAgent.android||(this._model.setLoading(!1),this.publish(s.PLAYBACK_SYNC_VIEW))),this._model.isPaused()&&(this._model.setPaused(!1),this._longPauseTimeout&&clearTimeout(this._longPauseTimeout),t instanceof m.default?this.publish(s.MEDIA_ITEM_PLAYBACK_RESUMED,t):t instanceof _.default&&this.publish(s.AD_BREAK_ITEM_PLAYBACK_RESUMED,t)),t&&!this._playbackStarted[t.id]&&this._handleNewPlaybackStarted(t),this._pauseHandler.onPlaybackPlaying(),this.publish(s.PLAYING,t)},e.prototype._onActiveRendererTimeupdate=function(t){var e=t.currentTime,i=t.duration,n=t.buffered;u.userAgent.android&&!this._playbackProgressCalled&&(this._model.setLoading(!1),this.publish(s.PLAYBACK_SYNC_VIEW),this._playbackProgressCalled=!0),this._adPlaybackController.updatePlaybackProgress({currentTime:e,playingItem:this._getLoadedPlayableItem()});var r=this.getPlayingItem();if(this._playbackState.playingItem=r,this._playbackState.currentRawTime=e,r&&(this._updateCurrentTime(r,e),r instanceof m.default&&(r.position=e),b.isNumber(e)&&b.isNumber(i)&&!(e>i+1))){if(r.getDuration()||r.isLive()||r.setDuration(i),this._playbackState.duration=this.getDuration(),this._model.isLoading()&&(!u.userAgent.safari||u.userAgent.safari<6)){this._spinnerMonitorStartTime?e-this._spinnerMonitorStartTime>=1.5&&(this._spinnerMonitorStartTime=null,this._model.setLoading(!1),this.publish(s.PLAYBACK_SYNC_VIEW)):this._spinnerMonitorStartTime=e}else this._spinnerMonitorStartTime=null;var o={playingItem:r,currentTime:e,duration:i,buffered:n};r instanceof m.default?this.publish(s.MEDIA_ITEM_PLAYBACK_PROGRESS,o):r instanceof _.default&&this.publish(s.AD_BREAK_ITEM_PLAYBACK_PROGRESS,o),this.publish(s.PLAYBACK_PROGRESS,{currentItem:r,currentTime:e,duration:i,buffered:n}),this.publish(s.TIMEUPDATE,t)}},e.prototype._updateCurrentTime=function(t,e){var i;t instanceof m.default&&(i=this._getCurrentTimeForMediaItem(t,e)),t instanceof _.default&&(i=this._getCurrentTimeForAdBreakItem(t,e)),this._currentTime=i,this._playbackState.currentTime=i},e.prototype._getCurrentTimeForMediaItem=function(t,e){for(var i=e,n=t.adBreaks,r=n&&n.length||0,o=0;o<r;o++){var s=n[o];if(!(e>=s.startOffset))break;s.adBreakItems.forEach(function(t){t.instream&&(i-=t.duration)})}return i},e.prototype._getCurrentTimeForAdBreakItem=function(t,e){var i=e,n=t.adBreak;if(t.instream){i=e-n.startOffset;for(var r=n.adBreakItems,o=0,s=r.length;o<s;o++){var a=r[o];if(t.adBreakItemId===a.adBreakItemId)break;a.instream&&(i-=a.duration)}}return i},e.prototype._getRawSeekSeconds=function(t){var e=this._getLoadedPlayableItem(),i=t;if(e instanceof m.default)for(var n=e.adBreaks,r=n&&n.length||0,o=0;o<r;o++){var s=n[o];if(!(s.startOffset<=i))break;s.adBreakItems.forEach(function(t){t.instream&&(i+=t.duration)})}return i},e.prototype._onActiveRendererSeeking=function(t){null===this._seekStartTime&&(this._seekStartTime=this._playbackState.currentRawTime),this._model.setLoading(!0),this.publish(s.SEEKING,t)},e.prototype._onActiveRendererSeeked=function(t){this._model.setLoading(!1),this._spinnerMonitorStartTime=null;var e=this._seekStartTime;this._seekStartTime=null,this._adPlaybackController.handleMediaItemSeeked(this.getPlayingItem(),t.currentTime,e),this._forcePlayingAdBreakData||this.publish(s.SEEKED,t)},e.prototype._handleMediaItemEnded=function(t){this._resetPlaybackStarted(),this._forcePlayingAdBreakData=null;var e=this._model.playlist,i=e.getCurrentItem();if(i&&i===t){this._adPlaybackController.onMediaItemPlaybackEnded(t);var n=this._model.continuousPlay,r=this._model.loop,o={playlistLoop:this._model.playlistLoop,skipWatchedVideos:this._model.skipWatchedVideos,looped:!1,ended:!1},a=e.getNextPosition(n,r,o);if(this.publish(s.MEDIA_ITEM_PLAYBACK_ENDED,t,o),this._model.stopAtLastFrame)return this.pauseCurrent(),void this._onActiveRendererPause();if(this._handleMediaItemPlaybackStopped(i),-1!==a){var u=void 0;(n||r)&&(u={type:h.REQUEST_TYPES.CONTINUOUS,action:h.REQUEST_TYPES.AUTOPLAY}),this.setPlaylistPosition(a,n||r,u),this._model.playbackState.looped=o.looped}else this._model.skipWatchedVideos&&(this._model.continuousPlay=!1),this._eventBus.publish(d.ExternalEvt.PLAYLIST_COMPLETE);this.publish(s.PLAYBACK_SYNC_VIEW)}},e.prototype._onActiveRendererEnded=function(){this._playbackState.playingItem=null;var t=this.getPlayingItem();t instanceof m.default?this._handleMediaItemEnded(t):t instanceof _.default&&this._adPlaybackController.handleAdBreakItemEnded(t)},e.prototype._onActiveRendererPause=function(){this._model.getState()!==v.default.INIT&&this._model.getState()!==v.default.END&&(this._model.setPaused(!0),this.publish(s.PAUSE))},e.prototype._onActiveRendererError=function(t){var e=this.getPlayingItem();e instanceof m.default?this.publish(s.MEDIA_ITEM_ERROR,e,t):e instanceof _.default&&this._handleAdBreakItemError(e,t)},e.prototype._onActiveRendererWaiting=function(t){if(t){if(!u.userAgent.tv){var e=t.value;this._model.setLoading(e),this.publish(s.PLAYBACK_SYNC_VIEW)}this.publish(s.WAITING,t)}},e.prototype._onActiveRendererStalled=function(){this.publish(s.STALLED)},e.prototype._onActiveRendererLoadStart=function(){this.publish(s.LOADSTART)},e.prototype._onActiveRendererPlay=function(){this.publish(s.PLAY)},e.prototype._onActiveRendererVolumeChange=function(t){var e=this._rendererController,i=t&&b.isBoolean(t.mute)?t.mute:e.getMuted(),n=t&&b.isNumber(t.volume)?t.volume:e.getVolume();i!==this._model.mute&&this.publish(s.MUTE_CHANGED,i),n!==this._model.volume&&this.publish(s.VOLUME_CHANGED,n)},e.prototype._onActiveRendererLoadedData=function(){this.publish(s.LOADEDDATA)},e.prototype._onActiveRendererLoadedMetadata=function(){this.publish(s.LOADEDMETADATA)},e.prototype._onActiveRendererSrcSwitching=function(){this.publish(s.SRC_SWITCHING)},e.prototype._onActiveRendererSrcSwitched=function(){this.publish(s.SRC_SWITCHED)},e.prototype._onActiveRendererPlayBlocked=function(){this.publish(s.PLAYBACK_START_BLOCKED)},e.prototype._onActiveRendererSkipped=function(){var t=this.getPlayingItem();t instanceof _.default&&this.publish(s.AD_BREAK_ITEM_PLAYBACK_SKIPPED,t)},e.prototype._onActiveRendererEndFullscreen=function(){this.publish(s.END_FULLSCREEN)},e.prototype._handleActiveRendererEvents=function(){for(var t=0,e=Object.values(c.ActiveRendererEvent);t<e.length;t++){var i=e[t],n="_on"+i;this._rendererController.on(i,this[n],this)}},e.prototype._setupAdPlaybackControllerEvents=function(){var t=this;this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_NEED_RESOLVE,function(e,i){t.publish(s.AD_BREAK_NEED_RESOLVE,e,i)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_ITEM_PLAY,function(e){t._startPlayingAdBreakItem(e)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_CLIENT_COMPLETED,function(e,i){switch(e){case f.AdBreakType.PREROLL:t._startPlayingItem(i);break;case f.AdBreakType.NATIVE:}},this),this._adPlaybackController.on(p.AD_SUBTITLE_TRACK_ADDED,function(e){t.publish(p.AD_SUBTITLE_TRACK_ADDED,o({},e,{itemId:t.getPlayingItem().adBreakItemId}))},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_CLIENT_TIMEOUT,function(e,i){switch(e){case f.AdBreakType.PREROLL:t._startPlayingItem(i)}},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_STARTED,function(e){t.publish(s.AD_BREAK_STARTED,e)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_ENDED,function(e){var i=e.type;switch(e.setActive(!1),i){case f.AdBreakType.PREROLL:e.adBreakItems[e.adBreakItems.length-1].instream&&t.publish(s.MEDIA_ITEM_PLAYBACK_STARTED,e.mediaItem);break;case f.AdBreakType.NATIVE:t._handleMediaItemEnded(e.mediaItem)}t.publish(s.AD_BREAK_ENDED,e),t._forcePlayingAdBreakData&&(t.seek(t._forcePlayingAdBreakData.deferredSeekTime),t._forcePlayingAdBreakData=null)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_FORCE_PLAY_MIDROLL,function(e){var i=t.getRawCurrentTime();e.type!==f.AdBreakType.MIDROLL||!e.active||e.startOffset>i||e.adBreakItems.length&&e.adBreakItems[0].instream&&(t._forcePlayingAdBreakData={adBreak:e,deferredSeekTime:i},t.seek(e.startOffset))},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_ITEM_STARTED,function(e){t._playbackState.playingItem=e,e.instream&&t.publish(s.AD_BREAK_ITEM_CURRENT,e),t.publish(s.AD_BREAK_ITEM_PLAYBACK_STARTED,e)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_ITEM_ENDED,function(e){t.publish(s.AD_BREAK_ITEM_PLAYBACK_ENDED,e)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_BREAK_SKIP,function(e,i){if(i){var n=e.startOffset+e.duration;n=(1e4*n+11)/1e4,t.seek(n)}},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.AD_METRICS,function(e){t.publish(s.AD_METRICS,e)},this),this._adPlaybackController.on(l.AdPlaybackControllerEvent.CREATE_OVERLAY_CONTAINER,function(e){t.publish(s.CREATE_OVERLAY_CONTAINER,e)},this)},e.prototype._setCurrentMediaType=function(t){this._model.playbackState.currentMediaType=t},e}(a.default);e.PlaybackController=T},D9J0:function(t,e,i){"use strict";t.exports=r;var n=i("y5bh").HLSEvent;function r(){this._model=this.__controller.model,this._ignoreBuffering=!1,this._buffering=!1,this._loadedList=[],this._renderedList=[],this._loadingSegment=null,this._renderingSegment=null,this._eventKeys={},this._prevAvgBandwidth=NaN,this._registerListeners(),this._playbackPosition=0,this._bufferingTime=0,this._timeUpdateTimestamp=0,this._isFirstSegment=!0}function o(){this.seqNum=-1,this.beginTime=NaN,this.endTime=NaN,this.bitrateIndex=-1,this.switchReason="none",this.bufferCount=0,this.bufferTime=0,this.timeToFirstByte=0,this.timeToDownload=0,this.timeToRequest=0,this.observedBitrate=0,this.actualBitrate=0,this.frameDrop=0,this.frameRateSum=0,this.frameRateSampleCount=0,this.frameRate=30}r.prototype.destroy=function(){this._loadedList=[],this._renderedList=[],this._renderingSegment=null,this._loadingSegment=null,this._removeListeners()},r.prototype._registerListeners=function(){this._eventKeys[n.WAITING]=this.__controller.addEventListener(n.WAITING,this._onWaiting,this)},r.prototype._removeListeners=function(){this.__controller.removeEventListeners(this._eventKeys)},r.prototype.onComplete=function(){this.segmentRenderNext()},r.prototype.onTimeUpdate=function(t){var e=this._model.getCurrentPlayingStream();if(this._playbackPosition=t,this.updateRenderState(this._renderingSegment,this._playbackPosition),this._model.live&&e&&e.cuepoints.length>0&&this.cuepointEventDispatcher(this._playbackPosition,e.cuepoints),t>0&&this._renderingSegment){var i=this._findTimedMetadataAtCurrentTime();i&&this.__controller.sendEvent(n.TIMED_METADATA_READY,i.payload)}},r.prototype._findTimedMetadataAtCurrentTime=function(){var t=this,e=t._renderingSegment.seqNum,i=t._model.timedMetadataStore[e],n=t._playbackPosition;if(!i||!i.length)return null;t._model.live&&Object.keys(t._model.timedMetadataStore).forEach(function(i){i>e||t._model.timedMetadataStore[i].every(function(e){return n-e.timestamp>=t._model.config.pastBufferLengthLimit.live})&&delete t._model.timedMetadataStore[i]});if(n<i[0].timestamp||n>i[i.length-1].timestamp+.6)return null;for(var r=null,o=i.length-1;o>=0;o--){var s=i[o],a=(1e4*n-1e4*s.timestamp)/1e4;if(a>=0&&a<=.6){if(s.recent)continue;r=s;break}}return r&&(r.recent=!0,setTimeout(function(){delete r.recent},600)),r},r.prototype._onWaiting=function(t){t&&(t.bufferInit||(t.value?this._onBufferingBegin():this._onBufferingEnd(t.waitTime)))},r.prototype.segmentLoadBegin=function(t,e){if(e){var i=new o;i.seqNum=t,i.beginTime=e.beginTime,i.timeToFirstByte=e.timeToFirstByte,i.bitrateIndex=Math.max(0,e.bitrateIndex),i.switchReason=e.switchReason,i.frameRate=e.frameRate,i.observedBitrate=1e3*e.observedBitrate,i.endTime=e.endTime,i.perfInfo={},i.actualBitrate=e.endTime!==e.beginTime?.008*e.bytesTotal/(e.endTime-e.beginTime):0,this._loadingSegment&&this._loadedList.push(this._loadingSegment),this._loadingSegment=i,(this._renderingSegment&&t===this._renderingSegment.seqNum||!this._renderingSegment)&&this.segmentRenderNext(i)}},r.prototype.segmentLoadEnd=function(t,e){var i=this._loadingSegment;i&&i.seqNum===t&&(e&&(i.timeToDownload=e.timeToDownload,i.perfInfo=e.perfInfo,i.segmentInWorker=e.segmentInWorker,i.actualBitrate=i.endTime!==i.beginTime?.008*e.bytesTotal/(i.endTime-i.beginTime):0),this._loadedList.push(i),this._loadingSegment=null)},r.prototype.segmentRenderNext=function(t){this._renderingSegment&&(this._renderedList.push(this._renderingSegment),this._renderingSegment=null,this.__controller.sendEvent(n.SEGMENT_RENDERED)),t&&(this._renderingSegment=t,this._model.setCurrentPlayingStream(t.bitrateIndex))},r.prototype.updateRenderState=function(t,e){if(!(isNaN(e)||e<=0)&&(t||(t=this._getNextSegment(e))&&this.segmentRenderNext(t),t&&(this._frameStats&&(t.frameDrop=this._frameStats.frameDrop,t.frameRateSum+=Number(this._frameStats.frameRate.toFixed(2)),t.frameRateSampleCount++),!(e>=t.beginTime&&e<t.endTime)))){var i=this._getNextSegment(e);if(i&&(this.segmentRenderNext(i),i.bitrateIndex!==t.bitrateIndex)){var r=this._model.streams,o={bitrate:Math.round(r[i.bitrateIndex].bitrate/1e3),reason:i.switchReason,oldFrameRate:t.frameRate,newFrameRate:i.frameRate};this.__controller.sendEvent(n.STREAM_SWITCHED,o)}}},r.prototype.updateFrameStats=function(t){t&&(this._frameStats=t)},r.prototype._getNextSegment=function(t){if(this._loadingSegment&&t>=this._loadingSegment.beginTime&&t<this._loadingSegment.endTime)return this._loadingSegment;if(this._loadedList.length)for(var e=this._loadedList.length-1;e>=0;e--)if(t>=this._loadedList[e].beginTime&&t<this._loadedList[e].endTime)return this._loadedList[e];return null},r.prototype._onBufferingBegin=function(){this._buffering||(this._buffering=!0,this._renderingSegment,this._loadingSegment)},r.prototype._onBufferingEnd=function(t){if(this._buffering){this._rebufferingStartTime=NaN,this._buffering=!1;var e=this._renderingSegment,i=e&&!isNaN(t)&&t>0;e&&(e.bufferTime+=i?t:0,e.bufferCount+=i?1:0)}},r.prototype.getMetrics=function(){var t=this._renderingSegment,e=[];if(this._renderedList.length){for(var i=0;i<this._renderedList.length;i++)e.push(this._dto(this._renderedList[i]));this._renderedList=[]}return t&&(e.push(this._dto(t)),t.bufferCount=0,t.bufferTime=0,t.timeToFirstByte=NaN,t.timeToDownload&&(t.timeToDownload=NaN)),e},r.prototype._dto=function(t){if(!t)return null;var e=this._model.streams;t.bitrateIndex=e.length>0?Math.min(t.bitrateIndex,e.length-1):0;var i=e[t.bitrateIndex].bitrate/1e3,n=e[t.bitrateIndex].avgBitrate/1e3;return t.bufferTime>0&&!t.bufferCount?t.bufferCount=1:!t.bufferTime&&t.bufferCount>0&&(t.bufferCount=0),{seq_num:t.seqNum,max_b:i,avg_b:n,ib:i,ob:t.observedBitrate.toFixed(2),ab:Math.round(t.actualBitrate),num_buf:t.bufferCount,buf_dur:t.bufferTime,req_t:t.timeToRequest,fb_dl_t:t.timeToFirstByte,req_dl_t:t.timeToDownload,drop_f:t.frameDrop,avg_fr:(t.frameRateSum/t.frameRateSampleCount).toFixed(2)}},r.prototype.getMetricsBandwidthInfo=function(){var t=this.__controller.services.bandwidthEstimator,e=t.averageBandwidth===this._prevAvgBandwidth?0:t.averageBandwidth;return this._prevAvgBandwidth!==t.averageBandwidth&&(this._prevAvgBandwidth=t.averageBandwidth),e},r.prototype.cuepointEventDispatcher=function(t,e){var i,r=e.length,o=r-1;if(r>0){if(this.shouldFireCueDetectedEvent(t,e[o]))return e[o].setCueOutDetectedState(!0),i={cuepointDuration:e[o].cuepointDuration,timeGapBeforeCUEOUT:e[o].startTime-t},void this.__controller.sendEvent(n.CUEPOINT_DETECTED,i);if(this.shouldFireCueOutEvent(t,e[o]))return e[o].setCueOutFiredState(!0),i={cuepointDuration:e[o].cuepointDuration,cuepointPlayedTime:t-e[o].startTime},void this.__controller.sendEvent(n.CUEPOINT_STARTED,i)}},r.prototype.shouldFireCueDetectedEvent=function(t,e){return!!e.startTime&&(!e.isCueOutDetectedFired&&e.startTime>t)},r.prototype.shouldFireCueOutEvent=function(t,e){if(!e.startTime)return!1;var i=this._getCurrentPlayingSeqNum(t);return!e.isCueOutFired&&i===e.startSeqNum&&t>e.startTime},r.prototype._getCurrentPlayingSeqNum=function(t){var e=this._model.getCurrentPlayingStream(),i=e?e.segments:null;if(i){if(1===i.length)return i[0].seqNum;for(var n=i.length-1;n>=0;n--)if(t>=i[n].startTime)return i[n].seqNum}return null}},"DDi/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.configSchema={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{version:{default:"8.1.170",type:"string"},jshlsVersion:{default:"1.1.237",type:"string"},playlist:{type:"object",properties:{id:{type:"string"}}},CMS:{$ref:"/cmsSchema"},pageLatency:{type:"object",properties:{pagePlayerJsDownloadTime:{type:"number"},pageReqToPlayerInitTime:{type:"number"}}},forcePreloadBufferLimit:{default:32,type:"number"},html5_hls:{type:"object",properties:{useWorker:{type:"boolean"},preloadBufferLimit:{defaul:8,type:"number"}}},geoData:{type:"object",properties:{latitude:{type:"string"},longitude:{type:"string"},accuracy:{type:"string"}}},ui:{$ref:"/uiSchema"},YVAP:{$ref:"/yvapSchema"},metrics:{$ref:"/metricsSchema"},playback:{$ref:"/playbackSchema"},playbackState:{type:"object",properties:{mute:{type:"boolean"},volume:{type:"number"}}},uiState:{type:"object",properties:{isCSSLoaded:{type:"boolean"},deviceOrientation:{type:"boolean"}}},userPreferences:{type:"object",properties:{closedCaptions:{$ref:"/closedcaptionsSchema"},isAdult:{type:"boolean"},isAuthenticated:{type:"boolean"}}},baseConfig:{$ref:"/baseconfigSchema"},rapidConfig:{type:"object",properties:{rapid:{type:"object"},clickParams:{type:"object"},pageParams:{type:"object"}}},playerDimension:{type:"object",properties:{width:{type:"number",default:0},height:{type:"number",default:0}}},aspectRatio:{type:"number"},CTV:{$ref:"/ctvSchema"},failOver:{$ref:"/failoverSchema"},autoplayIgnoreConnType:{type:"boolean"},muteMode:{type:"boolean"},watchHistory:{type:"object",properties:{enabled:{type:"boolean",default:!1},watchedPeriod:{type:"number",default:.5},expiry:{type:"number",default:129600},skipWatchedVideos:{type:"boolean",default:!0}}},pblob:{type:"object"}}}},DTfC:function(t,e,i){var n=i("skmB"),r=i("H0QZ");function o(t,e){this.id=t,this.ref=e}t.exports.SchemaScanResult=o,t.exports.scan=function(t,e){function i(t,e){if(e&&"object"==typeof e)if(e.$ref){var o=n.resolve(t,e.$ref);l[o]=l[o]?l[o]+1:0}else{var c=e.id?n.resolve(t,e.id):t;if(c){if(c.indexOf("#")<0&&(c+="#"),u[c]){if(!r.deepCompareStrict(u[c],e))throw new Error("Schema <"+e+"> already exists with different definition");return u[c]}u[c]=e,"#"==c[c.length-1]&&(u[c.substring(0,c.length-1)]=e)}s(c+"/items",e.items instanceof Array?e.items:[e.items]),s(c+"/extends",e.extends instanceof Array?e.extends:[e.extends]),i(c+"/additionalItems",e.additionalItems),a(c+"/properties",e.properties),i(c+"/additionalProperties",e.additionalProperties),a(c+"/definitions",e.definitions),a(c+"/patternProperties",e.patternProperties),a(c+"/dependencies",e.dependencies),s(c+"/disallow",e.disallow),s(c+"/allOf",e.allOf),s(c+"/anyOf",e.anyOf),s(c+"/oneOf",e.oneOf),i(c+"/not",e.not)}}function s(t,e){if(e instanceof Array)for(var n=0;n<e.length;n++)i(t+"/"+n,e[n])}function a(t,e){if(e&&"object"==typeof e)for(var n in e)i(t+"/"+n,e[n])}var u={},l={};return i(t,e),new o(u,l)}},Db1k:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("s4NR"),r=i("t8Yn"),o=i("h8UC"),s=i("4g0/"),a=i("he5r"),u=i("XevZ"),l=i("zW5x"),c=i("25Pf"),d=function(){function e(t){this._model=t,this.name="SapiMetadataPlugin",this.version="8.1.170",this.mimetype=r.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=r.Plugin.PluginType.METADATA,this._cancelled=!1,this._posterThumbnailSize="";var e=this._model.config&&this._model.config.CMS;this._endPoint=e&&e.host||c.default.getEnv(e&&e.env||""),this._sapiClient=new l.default(this._model),s.Loader.preconnect("preconnect-sapi","//"+this._endPoint)}return e.prototype.prepare=function(){},e.prototype.resolve=function(e,i,n){var r=i.rendererTypes,s=i.rendererCapabilities;Array.isArray(e)&&0!==e.length&&r&&(r.some(function(t){return s[t].preferredFormats.length>0})?(this._sapiClient.parseMediaItemsResponse(e),Array.isArray(e)&&e.every(this._hasAllRequiredMeta)?t(function(){n.onComplete(e)}):this._fetchMetadata(e,i,n)):this._sendError("R",o.errorCodes.E_INFO,o.errorCodes.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED,"",n))},e.prototype.recover=function(t,e,i){},e.prototype.cancel=function(){this._cancelled=!0},e.prototype.destroy=function(){this.cancel()},e.prototype._fetchMetadata=function(t,e,i){var n=this,r=this._getSapiMetadataUrl(t,e),o=2,s=function(e){n._cancelled||n._parseResponse(t,e,function(t,e){t||!e?(t=t||"",n._sendError(null,null,u.getErrorCode(),t,i)):i.onComplete(e)})},a=function(t,e,l){n._cancelled||(o>0?(o--,n._makeSapiRequest(r,s,a)):n._sendError(null,null,u.getErrorCode(t,e,l),t.message,i))};this._makeSapiRequest(r,s,a)},e.prototype._makeSapiRequest=function(t,e,i){s.Loader.ajax(t,{context:this,successHandler:e,failureHandler:i,withCookie:!1})},e.prototype._getSapiMetadataUrl=function(t,e){var i=t.map(function(t){return t.id}).join(","),r=e.thumbnailDimensions;r&&r.width&&r.height||(r={width:l.DEFAULT_WIDTH,height:l.DEFAULT_HEIGHT}),this._posterThumbnailSize=r.width+"x"+r.height;var o=[this._posterThumbnailSize,a.PLAYLIST_THUMB_DIMENSION],s={dev_type:this._sapiClient.getDeviceType(),region:this._model.region||"US",lang:this._model.lang,site:this._model.site,image_sizes:o.join(",")};return"//"+this._endPoint+"/v1/video/videos/"+i+"?"+n.stringify(s)},e.prototype._parseResponse=function(t,e,i){var n=this;try{var r=JSON.parse(e),o=r&&r.videos&&r.videos.result;if(!o)return void i("Bad sapi response");t.forEach(function(t){o.some(function(e,i){return!(!e||t.id!==e.id)&&(n._parseMediaObjItem(t,e),o.splice(i,1),!0)})}),i(null,t)}catch(t){i(t.message)}},e.prototype._parseMediaObjItem=function(t,e){var i={};i.title=e.title||e.description||l.DEFAULT_MEDIA_ITEM_META.title,i.description=e.description||l.DEFAULT_MEDIA_ITEM_META.description,i.duration=e.duration||l.DEFAULT_MEDIA_ITEM_META.duration,i.posterUrl=this._getPosterUrl(e.thumbnails)||l.DEFAULT_MEDIA_ITEM_META.posterUrl,i.thumbnail=this._getThumbnailUrl(e.thumbnails)||i.posterUrl||l.DEFAULT_MEDIA_ITEM_META.thumbnail,t.metadata=i},e.prototype._sendError=function(t,e,i,n,r){var o={code:i,message:n,group:t||void 0,category:e||void 0};r.onError(o)},e.prototype._getPosterUrl=function(t){var e=this;if(!t||0===t.length)return"";var i=t.filter(function(t){return t.tag===e._posterThumbnailSize}),n=t.filter(function(t){return"original"===t.tag});return i&&i[0]&&i[0].url||n&&n[0]&&n[0].url||t[0].url||""},e.prototype._getThumbnailUrl=function(t){if(!t||0===t.length)return"";var e=t.filter(function(t){return t.tag===a.PLAYLIST_THUMB_DIMENSION});return e&&e[0]&&e[0].url||t[0].url||""},e.prototype._hasAllRequiredMeta=function(t){return!(!t||!t.metadata||void 0===t.metadata.title||void 0===t.metadata.description||void 0===t.metadata.thumbnail||void 0===t.metadata.posterUrl||void 0===t.metadata.duration)},e}();e.default=d}).call(this,i("URgk").setImmediate)},DlJI:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("BHZG"),u=i("Lux/"),l=i("PwYT"),c=i("ma23"),d=i("fLR+"),h=i("+Ojf");!function(t){t.CTA_TRIGGERED="ads-view--cta-triggered",t.CLICKED="ads-view--ui-clicked",t.SKIP_AD_REQUESTED="ads-view--skip-ad-requsted"}(o=e.AdsViewEvent||(e.AdsViewEvent={}));var p=function(t){function e(e){var i=t.call(this,"AdsView")||this;return i._pluginManager=e,i._activeAdViewAdPlugin=null,i._stopListeningUIEvents=h.default.noop,i._defaultAdViewAdPlugin=i._getAdPluginByMimetype(a.default.mimetype),i}return r(e,t),Object.defineProperty(e.prototype,"node",{get:function(){return this._adViewWrapperEl},enumerable:!0,configurable:!0}),e.prototype.create=function(){return this._adViewWrapperEl?this._adViewWrapperEl:(this._adViewWrapperEl=document.createElement("div"),h.default.classList(this._adViewWrapperEl).add("vp-adview-wrapper"),h.default.classList(this._adViewWrapperEl).add("vp-hidden"),this._adViewWrapperEl)},e.prototype.onAdBreakStart=function(t){this._show()},e.prototype.onAdBreakEnd=function(t){this._hide(),this._cleanupAdView(),this._setActiveAdViewAdPlugin(null)},e.prototype.onAdBreakItemCurrent=function(t){this._currAdItemSkipAllowed=!1,this._cleanupAdView();var e=t.adBreak,i=e.adBreakItems.indexOf(t);if(t.interactionConfig&&t.interactionConfig.chromeless)this._setActiveAdViewAdPlugin(null);else{this._setActiveAdViewAdPlugin(this._getNextAdViewPlugin(t));var n=this._activeAdViewAdPlugin.renderUI(t.rawItemData,{position:i,total:e.adBreakItems.length,adBreakDuration:e.duration,adBreakItems:e.adBreakItems.map(function(t){return t.rawItemData})});n?this._adViewWrapperEl.appendChild(n):this._setActiveAdViewAdPlugin(null)}},e.prototype.destroy=function(){this._hide(),this._cleanupAdView(),this._setActiveAdViewAdPlugin(null),this._defaultAdViewAdPlugin=null,this._pluginManager=null,this._adViewWrapperEl=null},e.prototype._show=function(){this._adViewWrapperEl&&h.default.classList(this._adViewWrapperEl).remove("vp-hidden")},e.prototype._hide=function(){this._adViewWrapperEl&&h.default.classList(this._adViewWrapperEl).add("vp-hidden")},e.prototype._cleanupAdView=function(){if(this._activeAdViewAdPlugin&&this._activeAdViewAdPlugin.unrenderUI(),this._adViewWrapperEl)for(;this._adViewWrapperEl.firstChild;)this._adViewWrapperEl.removeChild(this._adViewWrapperEl.firstChild)},e.prototype._onAdUIEvent=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];switch(e){case u.AdPluginUIEvent.CTA_TRIGGERED:this.publish(o.CTA_TRIGGERED);break;case u.AdPluginUIEvent.CLICKED:this.publish(o.CLICKED);break;case u.AdPluginUIEvent.SKIP_AD:this.publish(o.SKIP_AD_REQUESTED)}},e.prototype._setActiveAdViewAdPlugin=function(t){t!==this._activeAdViewAdPlugin&&(this._stopListeningUIEvents(),t?(this._activeAdViewAdPlugin=t,this._stopListeningUIEvents=l.listenEventDispatcherEvts(this._activeAdViewAdPlugin,Object.keys(u.AdPluginUIEvent).map(function(t){return u.AdPluginUIEvent[t]}),this._onAdUIEvent.bind(this))):(this._activeAdViewAdPlugin=null,this._stopListeningUIEvents=h.default.noop))},e.prototype._enableClickBlocking=function(t){this._adViewWrapperEl&&h.default.classList(this._adViewWrapperEl)[t?"add":"remove"]("vp-block-pointer-evts")},e.prototype._getNextAdViewPlugin=function(t){var e=this._getAdPluginByMimetype(t.adPluginMimeType);return e&&d.isAdViewAdPlugin(e)&&e.canRenderUI(t.rawItemData)?e:this._defaultAdViewAdPlugin},e.prototype._getAdPluginByMimetype=function(t){return t?this._pluginManager.getPlugin(c.PluginType.AD,t):null},e}(s.default);e.default=p},DwGB:function(t,e,i){"use strict";var n=i("6ayh"),r=n("%Object%"),o=n("%TypeError%"),s=n("%String%"),a=i("xG2L"),u=i("IFfy"),l=i("xhJ2"),c=i("WXWk"),d=i("u1Mj"),h=i("IdCN"),p=i("Lxf3"),f=i("oNNP"),_={ToPrimitive:p,ToBoolean:function(t){return!!t},ToNumber:function(t){return+t},ToInteger:function(t){var e=this.ToNumber(t);return u(e)?0:0!==e&&l(e)?c(e)*Math.floor(Math.abs(e)):e},ToInt32:function(t){return this.ToNumber(t)>>0},ToUint32:function(t){return this.ToNumber(t)>>>0},ToUint16:function(t){var e=this.ToNumber(t);if(u(e)||0===e||!l(e))return 0;var i=c(e)*Math.floor(Math.abs(e));return d(i,65536)},ToString:function(t){return s(t)},ToObject:function(t){return this.CheckObjectCoercible(t),r(t)},CheckObjectCoercible:function(t,e){if(null==t)throw new o(e||"Cannot call method on "+t);return t},IsCallable:h,SameValue:function(t,e){return t===e?0!==t||1/t==1/e:u(t)&&u(e)},Type:function(t){return null===t?"Null":void 0===t?"Undefined":"function"==typeof t||"object"==typeof t?"Object":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"string"==typeof t?"String":void 0},IsPropertyDescriptor:function(t){if("Object"!==this.Type(t))return!1;var e={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in t)if(f(t,i)&&!e[i])return!1;var n=f(t,"[[Value]]"),r=f(t,"[[Get]]")||f(t,"[[Set]]");if(n&&r)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(t){return void 0!==t&&(a(this,"Property Descriptor","Desc",t),!(!f(t,"[[Get]]")&&!f(t,"[[Set]]")))},IsDataDescriptor:function(t){return void 0!==t&&(a(this,"Property Descriptor","Desc",t),!(!f(t,"[[Value]]")&&!f(t,"[[Writable]]")))},IsGenericDescriptor:function(t){return void 0!==t&&(a(this,"Property Descriptor","Desc",t),!this.IsAccessorDescriptor(t)&&!this.IsDataDescriptor(t))},FromPropertyDescriptor:function(t){if(void 0===t)return t;if(a(this,"Property Descriptor","Desc",t),this.IsDataDescriptor(t))return{value:t["[[Value]]"],writable:!!t["[[Writable]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};if(this.IsAccessorDescriptor(t))return{get:t["[[Get]]"],set:t["[[Set]]"],enumerable:!!t["[[Enumerable]]"],configurable:!!t["[[Configurable]]"]};throw new o("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(t){if("Object"!==this.Type(t))throw new o("ToPropertyDescriptor requires an object");var e={};if(f(t,"enumerable")&&(e["[[Enumerable]]"]=this.ToBoolean(t.enumerable)),f(t,"configurable")&&(e["[[Configurable]]"]=this.ToBoolean(t.configurable)),f(t,"value")&&(e["[[Value]]"]=t.value),f(t,"writable")&&(e["[[Writable]]"]=this.ToBoolean(t.writable)),f(t,"get")){var i=t.get;if(void 0!==i&&!this.IsCallable(i))throw new TypeError("getter must be a function");e["[[Get]]"]=i}if(f(t,"set")){var n=t.set;if(void 0!==n&&!this.IsCallable(n))throw new o("setter must be a function");e["[[Set]]"]=n}if((f(e,"[[Get]]")||f(e,"[[Set]]"))&&(f(e,"[[Value]]")||f(e,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}};t.exports=_},DzsB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uiSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/uiSchema",type:"object",properties:{contentTypeLabel:{type:"string"},displayMarkers:{type:"object",properties:{type:{type:"string"},group:{type:"boolean"}}},showEndScreen:{type:"boolean"},showFullscreen:{type:"boolean"},showAgeGate:{type:"boolean"},logoOverlay:{type:"string",enum:["bottomRight","bottomLeft","off"]},allowGeoRequest:{type:"boolean"},thumbnailDimensions:{type:"object",properties:{height:{type:"number"},width:{type:"number"}}},vttIndex:{type:"number"}}}},ECHB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fLR+"),r=["touchstart","touchmove","touchend","touchcancel","mousedown","mouseup"],o=function(){function t(t,e,i){void 0===i&&(i=!1);var o=this;t=n.isString(t)?document.getElementById(t):t,this.element=t,this.moved=!1,this.mouseDown=!1,this._isTouchDevice=!1,n.isFunction(e)?(this.onTap=e,this.shouldPropagate=i):(this.onTap=function(){},this.shouldPropagate=!!n.isBoolean(e)&&e),t&&t.addEventListener("tap",this.onTap,!1),r.forEach(function(e){t&&t.addEventListener(e,o,!1)})}return t.prototype.destroy=function(){var t=this,e=this.element;e&&(e.removeEventListener("tap",this.onTap,!1),r.forEach(function(i){e.removeEventListener(i,t,!1)}),this.element=null)},t.prototype.isTouchDevice=function(){return this._isTouchDevice},t.prototype.handleEvent=function(t){switch(t.type){case"mousedown":if(this.isTouchDevice())return;case"touchstart":this._start(t);break;case"touchmove":this._move(t);break;case"mouseup":if(this.isTouchDevice())return;case"touchend":this._end(t);break;case"touchcancel":this._cancel()}},t.prototype._start=function(t){var e,i="touchstart"===t.type;i&&(this._isTouchDevice=!0,e=t.touches&&t.touches[0]||{}),this.mouseDown=!0,this.startX=i?e.clientX:t.clientX,this.startY=i?e.clientY:t.clientY,this.lastPageX=i?e.pageX:t.pageX,this.lastPageY=i?e.pageY:t.pageY,this.moved=!1},t.prototype._move=function(t){var e=t.touches[0];this.lastPageX=e.pageX,this.lastPageY=e.pageY,(Math.abs(e.clientX-this.startX)>10||Math.abs(e.clientY-this.startY)>10)&&(this.moved=!0)},t.prototype._end=function(t){var e;!this.moved&&this.mouseDown&&(this.mouseDown=!1,void 0!==document.CustomEvent?e=new document.CustomEvent("tap",{bubbles:!0,cancelable:!0}):(e=document.createEvent("Event")).initEvent("tap",!0,!0),e.pageX=t.pageX||this.lastPageX,e.pageY=t.pageY||this.lastPageY,e.eventSource=t.srcElement,e.eventTarget=t.target,t.handled&&!this.shouldPropagate||this.element&&this.element.dispatchEvent(e),t.handled=!0)},t.prototype._cancel=function(){this.moved=!1},t}();e.default=o},EKCA:function(t,e,i){"use strict";t.exports=d;var n=i("MIFH"),r=i("aPvX"),o=i("/iNa"),s=i("9nRl"),a=i("V66C"),u=a.Stream,l=a.StreamTypes,c=i("x7P6").StreamingMode;function d(t){this.constructor.super_.call(this),this._super=this.constructor.super_.prototype,this.segments=[],t&&this.updateConfig(t)}o.inherits(d,u),d.prototype.destroy=function(){this.segments=[],this._super.destroy.call(this)},d.prototype.updateConfig=function(t){var e=this;e._super.updateConfig.call(e,t),t&&(e.type=t.type||e.type,e.groupId=t.groupId||e.groupId,e.language=t.language||e.language,e.name=t.name||e.name,e.default=s.isNullOrUndefined(t.default)?e.default:t.default,e.autoSelect=s.isNullOrUndefined(t.autoSelect)?e.autoSelect:t.autoSelect,e.forced=s.isNullOrUndefined(t.forced)?e.forced:t.forced);var i=n;e.type===l.SUBTITLES&&(i=e.streamingMode===c.DASH&&"mp4"===t.containerFormat?n:r),t.segmentInfoList&&t.segmentInfoList.length&&(e.segments=t.segmentInfoList.map(function(t){return t.bitrate=e.bitrate,t.sessionId=e.sessionId,t.cdn=e.cdn,e.__controller.create(i,t)})),e.segments.length&&(e.startSeqNum=e.segments[0].seqNum,e.endSeqNum=e.segments[e.segments.length-1].seqNum),e.adjusted=e.type===l.MAIN||e.adjusted},d.prototype.equals=function(t){return!!t&&(this.url===t.url&&this.groupId===t.groupId&&this.name===t.name)},d.prototype.setStreamIndex=function(){},d.prototype.dto=function(){}},EUld:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("JcWZ"),s=i("dgSz");!function(t){t.METADATA_AVAILABLE="media-store-metadata-available",t.SOURCE_AVAILABLE="media-store-source-available",t.MEDIA_ITEM_ADDED="media-item-added",t.MEDIA_ITEM_REMOVED="media-item-removed"}(e.MediaStoreEvent||(e.MediaStoreEvent={}));var a=function(t){function e(e,i,n){var r=t.call(this,"MediaStore")||this;return r._items={},r._rendererTypes=e,r._adRendererTypes=i,r._capabilities=n,r}return r(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.addItems=function(t){for(var e=0,i=t;e<i.length;e++){var n=i[e];this.addItem(n)}},e.prototype.addItem=function(t){s.default.normalizeKey(t);var e=s.default.createKey(t.id,t.mimetype);if(this._items[e])return e;var i=new s.default(t,this._rendererTypes,this._adRendererTypes,this._capabilities);return this._items[i.key]=i,i.key},e.prototype.updateItem=function(t){if(!t||!t.id||!t.mimetype)return null;var e=s.default.createKey(t.id,t.mimetype),i=this._items[e];return i?i.build(t,this._rendererTypes,this._adRendererTypes,this._capabilities):(i=new s.default(t,this._rendererTypes,this._adRendererTypes,this._capabilities)).updateVideoSession(),this._items[i.key]=i,i},e.prototype.updateItemState=function(t,e){if(t){var i=this.getByData(t);i&&i.state!==e&&i.setState(e)}},e.prototype.updateItemSourceState=function(t,e){if(t){var i=this.getByData(t);i&&i.sourceState!==e&&i.setSourceState(e)}},e.prototype.get=function(t){return t&&this._items[t]||null},e.prototype.getById=function(t){if(!t)return null;for(var e in this._items)if(0===e.indexOf(t))return this._items[e];return null},e.prototype.getByData=function(t){if(!t)return null;var e=s.default.createKey(t.id,t.mimetype);return this._items[e]||null},e.prototype.getBySessionId=function(t){if(!t)return null;for(var e=0,i=Object.keys(this._items);e<i.length;e++){var n=i[e],r=this._items[n];if(r&&r.videoSession===t)return r}return null},e}(o.default);e.default=a},EsLZ:function(t,e,i){"use strict";t.exports=h;var n=i("/iNa"),r=i("2fkz"),o=r.Command,s=r.CmdNames,a=r.CmdEvents,u=i("HNE+"),l=i("x7P6").AbrModes,c=i("9nRl"),d=i("iSaY");function h(t,e){var i=this;if(!t||c.isNullOrUndefined(t.streamIndex)||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");o.call(i,t,e),i.name=s.CMD_ERROR_HANDLE,i.__controller=i.data.controller,i._model=i.__controller.model,i.ERR_INTERVAL_AFTER_BUFFER_EMPTY=1e4,i._errorHandlingTimer=new u(i.ERR_INTERVAL_AFTER_BUFFER_EMPTY,1),i._errorHandlingTimer.addEventListener(function(){i._errorHandlingTimer.destroy(),i._publishError()},i),i._init(t.streamIndex),i._selectedStreamIndex=-1}n.inherits(h,o),h.prototype.destroy=function(){this._errorHandlingTimer&&this._errorHandlingTimer.destroy(),o.prototype.destroy.call(this)},h.prototype.execute=function(t){if(t>=0&&this._retryIndexList.length){var e=this._retryIndexList.indexOf(t);this._retryIndexList.splice(e,1)}if(!this._errorHandlingTimer.running||-1===this._selectedStreamIndex||t===this._selectedStreamIndex)if(this.data.error&&this.data.error.code===d.ERR_XHR_LOAD_FORBIDDEN[0])this._publishError();else{if(this._model.getABRMode()===l.AUTO){if(this._retryIndexList.length){var i=this._retryIndexList.shift();return this.publish(a.CMD_PROGRESS,this,{index:i}),void(this._selectedStreamIndex=i)}if(0!==this._model.currentLoadingStreamIndex)return this.publish(a.CMD_PROGRESS,this,{index:0}),void(this._selectedStreamIndex=0)}this._model.bufferLength>.15||this._errorHandlingTimer.start()}},h.prototype.cancel=function(){},h.prototype._init=function(t){if(this._retryIndexList=[],!(t<0||t>=this._model.streams.length)){var e,i=t;for(e=i-1;e>=0;e--)this._retryIndexList.push(e);for(e=i+1;e<this._model.streams.length;e++)this._retryIndexList.push(e)}},h.prototype._publishError=function(){this.publish(a.CMD_ERROR,this)}},Eyma:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-end-screen vp-end-replay'>"),n.b("\n"+i),n.b('    <div class="vp-end-rep-icon"></div>'),n.b("\n"+i),n.b("</div>"),n.fl()},partials:{},subs:{}})},FHv4:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s,a,u,l=i("JcWZ"),c=i("ToqN"),d=i("G3JL"),h=i("GZfa"),p=i("DlJI"),f=i("9d71"),_=i("X1lw"),m=i("CgWD"),y=i("izmf"),v=i("s9EW"),g=i("Rv5J"),E=i("3WiS"),b=i("ECHB"),S=i("A4+F"),A=i("8PPl"),T=i("8PPl"),I=i("O/dN"),C=i("oIMU"),R=i("oIMU"),L=i("WSjl"),P=i("R+G7"),O=i("fLR+"),D=i("+Ojf"),M=i("gp5d"),w=i("LKsC"),N=i("mczr"),k=i("XBl0"),B=i("Eyma");D.default.insertCssIntoHead(".vp-vis-hidden { visibility: hidden;} .vp-disp-none { display: none;}"),function(t){t.END_SCREEN="end-screen",t.ERROR="error",t.VIDEO="video",t.START_SCREEN="start-screen",t.BLOCKED="blocked"}(o=e.ViewState||(e.ViewState={})),function(t){t.LOADING="loading",t.SWITCHING="switching",t.PLAYING="playing",t.PAUSED="paused",t.CASTING="casting"}(s||(s={})),function(t){t.NORMAL="normal",t.SMALL="smallscreen",t.VERY_SMALL="verysmallscreen"}(a||(a={})),function(t){t[t.SMALL_WIDTH=350]="SMALL_WIDTH",t[t.SMALL_HEIGHT=210]="SMALL_HEIGHT",t[t.VERY_SMALL_WIDTH=200]="VERY_SMALL_WIDTH",t[t.VERY_SMALL_HEIGHT=175]="VERY_SMALL_HEIGHT"}(u||(u={}));var x,U=["webkitfullscreenchange","mozfullscreenchange","msfullscreenchange","MSFullscreenChange","fullscreenchange"];!function(t){t.SYNC_PLAYBACK_STATE="view-sync-playback-state",t.SYNC_VIDEO_END="view-sync-video-end",t.SYNC_ENTER_FULLSCREEN="view-sync-enter-fullscreen",t.SYNC_EXIT_FULLSCREEN="view-sync-exit-fullscreen",t.SYNC_SHOW_AIRPLAY_TARGET_MENU="view-sync-show-airplay-target-menu",t.SEEK="view-seek",t.SET_VOLUME="view-set-volume",t.SET_MUTE="view-set-mute",t.TOGGLE_CC="view-toggle-cc",t.CC_LANGUAGE_CHANGE="view-cc-language-change",t.CC_STYLE_CHANGE="view-cc-style-change",t.TOGGLE_PLAY_PAUSE="view-toggle-play-pause",t.SET_AUDIO_LANGUAGE="view-set-audio-language",t.START_SCREEN_CLICK="start-screen-click",t.UI_INTERACT="view-ui-interact",t.SKIP_AD_REQUESTED="view--ad-skip-requested",t.AD_CLICKED="view-ad-clicked",t.OPSS_VISIBILITY_CHANGED="view-opss-visibility-changed",t.FORWARD_SEEK="view-forward-seek",t.BACKWARD_SEEK="view-backward-seek"}(x=e.ViewEvent||(e.ViewEvent={}));var V=function(t){function e(e,i,n,r,o,u){var l=t.call(this,"View")||this;l._rootElem=e,l._model=i,l._eventBus=n,l._profiler=r,l._pluginManager=o,l._playbackController=u,l._viewSize=a.NORMAL,l._isFullScreen=!1,l._isDocked=!1,l._lastScrollY=0;var d=0,h=0;return l._rootElem&&(d=l._rootElem.clientWidth,h=l._rootElem.clientHeight,l._viewSize=l._getViewSize(d,h)),l._eventBus.addEventListener(C.VideoEvent.SRC_SWITCHING,function(){l._setFlag(s.SWITCHING,!0)},l),l._eventBus.addEventListener(C.VideoEvent.SRC_SWITCHED,function(){l._setFlag(s.SWITCHING,!1)},l),l._eventBus.publish(C.PLAYER_DIMENSION_CHANGE,{height:l._rootElem&&l._rootElem.clientHeight||l._model.uiState.height||0,width:l._rootElem&&l._rootElem.clientWidth||l._model.uiState.width||0,videoWidth:l._mainElem&&l._mainElem.clientWidth||l._model.uiState.videoWidth||0,videoHeight:l._mainElem&&l._mainElem.clientHeight||l._model.uiState.videoHeight||0}),l._eventBus.addEventListener(S.ExternalEvt.PLAYER_MUTE_CHANGE,l._onMuteChange,l),l._eventBus.addEventListener(C.UP_NEXT_PG_CLICK,l._onUpnextPgClick,l),l._eventBus.addEventListener(C.PLAYER_DIMENSION_CHANGE,l._onDimensionChange,l),l._eventBus.addEventListener(C.Device.ORIENTATION_CHANGE,l._onOrientationChange,l),c.userAgent.mobile&&P.default.canPlayInline&&(l._model.uiState.deviceOrientation=l._getDeviceOrientation(),l._bindWindowResize()),l}return r(e,t),e.prototype.render=function(){var t=this;this._model.rendered=!0,this._contentElem=D.default.render(k,{enableDocking:this._model.docking&&(this._model.docking.enableOnScrollDown||this._model.docking.enableOnScrollUp)}),this._mainElem=this._contentElem.querySelector("."+A.VIDEO_MAIN_ELEMENT_CLASS),this._rootElem&&this._rootElem.appendChild(this._contentElem),D.default.classList(this._contentElem).add(this._viewSize),Object.keys(c.userAgent).filter(function(t){return c.userAgent[t]}).forEach(function(e){"os"===e&&(e=c.userAgent.os),"ie"===e&&D.default.classList(t._contentElem).add("vp-"+e.toLowerCase()+c.userAgent[e]),D.default.classList(t._contentElem).add("vp-browser-"+e.toLowerCase())}),P.default.deviceType&&D.default.classList(this._contentElem).add("vp-device-"+P.default.deviceType),c.userAgent.mobile&&P.default.canPlayInline&&D.default.classList(this._contentElem).add("vp-browser-playsinline"),this._model.chromeless||O.isFunction(v.default)&&(this._loadingScreen=new v.default(this._eventBus)),this._loadingScreen&&this._mainElem&&this._mainElem.appendChild(this._loadingScreen.create()),this._model.showControls&&P.default.canPlayInline&&(this._controls=new _.Controls(this._eventBus,this,this._model,this._pluginManager),this._setupControls());var e=function(e){t._mouseMoveHandler()},i=function(e){t._mouseOutHandler(e)};this._bindMouseEvents=function(){t._lastMouseMoveCoordinates={},t._lastTarget=t._contentElem,t._contentElem.addEventListener("mousemove",function(i){t._lastMouseMoveCoordinates.x!==i.clientX&&t._lastMouseMoveCoordinates.y!==i.clientY&&(e(),t._lastMouseMoveCoordinates.x=i.clientX,t._lastMouseMoveCoordinates.y=i.clientY,t._lastTarget=i.target)}),t._contentElem.addEventListener("mouseover",function(i){var n=null;t._lastTarget&&(n=t._lastTarget.parentElement),!n||D.default.classList(n).contains("vp-play-controls")||D.default.classList(n).contains("vp-menu-controls")||e()}),t._contentElem.addEventListener("mouseout",function(e){var n=null,r=t._contentElem.getBoundingClientRect();t._lastTarget&&(n=t._lastTarget.parentElement),n&&(D.default.classList(n).contains("vp-play-controls")||D.default.classList(n).contains("vp-menu-controls")||i(e),(D.default.classList(n).contains("vp-play-controls")||D.default.classList(n).contains("vp-menu-controls"))&&(e.clientX<=r.left||e.clientX>=r.right||e.clientY>=r.bottom)&&i(e))})},this._bindTouchEvents=function(){var t=this;this._playerSurfaceTap=new b.default(this._contentElem,function(){(!t.getFullscreen()||c.userAgent.android&&D.default.getFullscreenElement()===t._contentElem)&&t.toggleControlsVisibility()}),this._eventBus.addEventListener(C.CONTROLS_SEEKING,function(){t._autoHideControlsTimeout&&clearTimeout(t._autoHideControlsTimeout),t._autoHideControlsTimeout=window.setTimeout(t._onAutoHideControls.bind(t),5e3)},this)},c.userAgent.tv||c.userAgent.mobile?c.userAgent.mobile&&this._controls&&P.default.canPlayInline&&this._bindTouchEvents():this._bindMouseEvents(),this._unbindMouseEvents=function(){t._contentElem.removeEventListener("mousemove",e),t._contentElem.removeEventListener("mouseover",e),t._contentElem.removeEventListener("mouseout",i)},O.isFunction(this._handleFullscreenChange.bind)&&(this._fullscreenChangeEventHandler=this._handleFullscreenChange.bind(this),U.forEach(function(e){document.addEventListener(e,t._fullscreenChangeEventHandler)})),this._initAdsView(),this._playlistController=new w.PlaylistController(this,this._pluginManager),this._setupPlaylistControllerEvents(),this._bindDockingScrollListener(),this._rendererController=null,this._easterEgg=new m.default("NORMAL",function(){t._openSimSim||(t._openSimSim=new g.default(t._model,t._eventBus,t._profiler,t._rendererController,t._adsDiagnostics,t._pluginManager),t._adsDiagnostics=null,t._mainElem&&t._mainElem.appendChild(t._openSimSim.create()),t._setupOpssEventListeners()),t._openSimSim.render()}),this.createAdsInfoPanel=function(e){t._adsEasterEgg||(t._adsEasterEgg=new m.default("AD",function(){t._adsInfoPanel||(t._adsInfoPanel=new d.default(t._model,t._eventBus,t._profiler,e),t._mainElem&&t._mainElem.appendChild(t._adsInfoPanel.create())),t._adsInfoPanel.show()}))},c.userAgent.desktop&&this._mainElem&&this._mainElem.addEventListener("contextmenu",function(e){t._model.playbackState.rendererType!==N.RendererType.HTML5_HLS&&t._model.playbackState.rendererType!==N.RendererType.HTML5_RAW||e.preventDefault()});var n=document.querySelector("#vp-css");c.userAgent.ie&&c.userAgent.ie<=10&&setTimeout(function(){n&&n.sheet.cssRules&&n.sheet.cssRules.length>0?t._onCssLoadSuccess():t._onCssLoadError()},150),c.userAgent.ie&&c.userAgent.ie<=10||!this._model.uiState||this._model.uiState.isCSSLoaded||(!0===D.default.getSingleton("isCSSLoaded")?this._onCssLoadSuccess():!0===D.default.getSingleton("isCSSError")?this._onCssLoadError():n&&(n.addEventListener("error",this._onCssLoadError.bind(this)),n.addEventListener("load",this._onCssLoadSuccess.bind(this)))),this._branding=new f.default(this._eventBus,this,this._model,this._pluginManager)},e.prototype.getEventBus=function(){return this._eventBus},e.prototype.getModel=function(){return this._model},e.prototype.getAdsOverlay=function(){return this._adsOverlay},e.prototype.toggleControlsVisibility=function(){D.default.classList(this._contentElem).contains("vp-hide-controls")?(D.default.classList(this._contentElem).remove("vp-hide-controls"),this._controls.onControlsBarChange(!0),this._objectOverlay&&D.default.classList(this._objectOverlay).remove("vp-overlay-hide-cursor"),this._autoHideControlsTimeout&&clearTimeout(this._autoHideControlsTimeout),this._model.playbackState.seeking||(this._autoHideControlsTimeout=window.setTimeout(this._onAutoHideControls.bind(this),5e3))):(D.default.classList(this._contentElem).add("vp-hide-controls"),this._controls.onControlsBarChange(!1))},e.prototype.updateAdDiagnostics=function(t){this._adsDiagnostics=t},e.prototype.isDocked=function(){return this._isDocked},e.prototype.dockVideoPlayer=function(){var t=window.scrollY,e=!0,i=this._model.docking.width,n=this._model.docking.height;if(this._lastScrollY>t&&(e=!1),this._model.docking.enableOnScrollDown===e&&this._model.docking.enableOnScrollUp!==e&&!this._fsDocked&&(this._model.docking.enableOnMuted||!this._model.mute)&&!(c.userAgent.mobile&&this._model.docking.mobile&&this._model.docking.mobile.disable)){if(this._preDockedWidth=this._contentElem.clientWidth,this._preDockedHeight=this._contentElem.clientHeight,i===A.DOCKED_PLAYER_FULL){if(this._model.uiState.deviceOrientation===T.Orientation.LANDSCAPE)return;i=window.innerWidth,n=this._preDockedHeight/this._preDockedWidth*i}if(this._isDocked=!0,this._updateDockedElements(),this._playlistController.togglePlaylistUI(!0),D.default.classList(this._contentElem).add("vp-docked"),this._model.docking.showInfoCard&&D.default.classList(this._contentElem).add("vp-docked-show-meta"),this._model.docking.fadeInAnimation){if(D.default.classList(this._contentElem).add("vp-docked-fadein"),D.default.classList(this._rootElem).add("vp-docked-mode"),(a=c.userAgent.mobile&&this._model.docking.mobile?this._model.docking.mobile.position||{}:this._model.docking.position||{}).top>-1&&(this._contentElem.style.top=a.top+"px"),a.bottom>-1&&a.top<0){var r=0;this._model.docking.showInfoCard&&(r=84),this._contentElem.style.bottom=r+a.bottom+"px"}a.right>-1&&a.left<0&&(this._contentElem.style.right=a.right+"px"),a.left>-1&&(this._contentElem.style.left=a.left+"px")}else{this._setContentElementFixed();var o=this._contentElem.getBoundingClientRect(),s=document.querySelector("body");if(!s)return;var a,u=s.clientWidth,l=window.innerHeight,d=0,h=0;if((a=this._model.docking.position||{}).top>-1&&(h=a.top,this._contentElem.style.top="0px"),a.bottom>-1){var p=0;this._model.docking.showInfoCard&&(p=84),h=l-n-p-a.bottom,this._contentElem.style.bottom=""}a.right>-1&&(d=u-o.left-i-a.right,this._contentElem.style.right=""),a.left>-1&&(d=a.left,this._contentElem.style.left="0px"),this._contentElem.style.transform="translate3d("+d+"px, "+h+"px, 0)",D.default.classList(this._contentElem).add("vp-docked-animated"),D.default.classList(this._rootElem).add("vp-docked-mode")}this._contentElem.style.width=i+"px",this._contentElem.style.height=n+"px",this._eventBus.publish(S.ExternalEvt.PLAYER_VIEWPORT_CHANGE,!1),this._eventBus.publish(C.PLAYER_DIMENSION_CHANGE,this.getPlayerDimensions()),this._model.uiState.isDocked=!0,this._eventBus.publish(S.ExternalEvt.PLAYER_DOCKED_CHANGE,!0)}},e.prototype.undockVideoPlayer=function(t){var e=this;void 0===t&&(t=!1),D.default.classList(this._contentElem).remove("vp-docked"),D.default.classList(this._contentElem).remove("vp-docked-show-meta"),this._model.docking.fadeInAnimation?(D.default.classList(this._contentElem).remove("vp-docked-fadein"),this._contentElem.style.top="",this._contentElem.style.right="",this._contentElem.style.bottom="",this._contentElem.style.left="",this._contentElem.style.width="",this._contentElem.style.height=""):(this._contentElem.style.transform="translate3d(0, 0, 0)",this._setContentElementFixed()),this._isDocked=!1,this._playlistController.togglePlaylistUI(!1),t&&!this._model.isPaused()&&this._eventBus.publish(C.TOGGLE_PLAY_PAUSE),window.setTimeout(function(){e._isDocked||(e._model.uiState.isDocked=!1,e._model.docking.fadeInAnimation||(e._contentElem.style.width="",e._contentElem.style.height="",D.default.classList(e._contentElem).remove("vp-docked-animated"),e._contentElem.style.position="",e._contentElem.style.transform="",e._contentElem.style.top="",e._contentElem.style.right="",e._contentElem.style.bottom="",e._contentElem.style.left=""),e._dockedBg&&(e._rootElem.removeChild(e._dockedBg),e._dockedBg=null),D.default.classList(e._rootElem).remove("vp-docked-mode"),e._eventBus.publish(S.ExternalEvt.PLAYER_VIEWPORT_CHANGE,!0),e._eventBus.publish(C.PLAYER_DIMENSION_CHANGE,e.getPlayerDimensions())),e._eventBus.publish(S.ExternalEvt.PLAYER_DOCKED_CHANGE,!1)},250)},e.prototype.updateDockingConfig=function(t,e,i,n,r,o){"boolean"==typeof t&&(this._model.docking.enableOnScrollDown=t),"boolean"==typeof e&&(this._model.docking.enableOnScrollUp=e),this._model.docking.position=this._model.docking.position||{},isNaN(i)||(this._model.docking.position.top=i),isNaN(n)||(this._model.docking.position.right=n),isNaN(r)||(this._model.docking.position.left=r),isNaN(o)||(this._model.docking.position.bottom=o),t||e?(this._bindDockingScrollListener(),this._isDocked&&this.dockVideoPlayer()):(this._removeDockingScrollListener(),this._isDocked&&this.undockVideoPlayer())},e.prototype.createAdsOverlay=function(){if(this._adsOverlay)return this._adsOverlay.node.innerHTML="",this._adsOverlay.node;if(!this._mainElem||c.userAgent.mobile||this._model.chromeless)return null;this._adsOverlay=new h.default(this._eventBus,this);var t=this._adsOverlay.create(),e=this._mainElem.querySelector(".vp-adview-wrapper");return e?this._mainElem.insertBefore(t,e):this._mainElem.appendChild(t),t},e.prototype.destroyAdsOverlay=function(){this._adsOverlay&&this._adsOverlay.destroy()},e.prototype.showAirplayTargetMenu=function(){this.publish(x.SYNC_SHOW_AIRPLAY_TARGET_MENU)},e.prototype.getContentNode=function(){return this._contentElem},e.prototype.getOpenSimSim=function(){return this._openSimSim},e.prototype.getMainElement=function(){return this._mainElem},e.prototype.getCCElement=function(){return this._mainElem?this._mainElem.querySelector(".vp-cc-element"):null},e.prototype.getRootElement=function(){return this._rootElem},e.prototype.getVideoElement=function(){return this._rootElem&&this._rootElem.getElementsByTagName("video")[0]},e.prototype.setKeyboardFocus=function(){this._contentElem.focus()},e.prototype.updateViewOnEscPress=function(){this._openSimSim&&this._openSimSim.isOpen()?this._openSimSim.close():this._adsInfoPanel&&this._adsInfoPanel.isOpen()?this._adsInfoPanel.close():this.getFullscreen()&&this.setFullscreen(!1)},e.prototype.disableControls=function(){D.default.classList(this._contentElem).add("vp-disable-controls")},e.prototype.enableControls=function(){D.default.classList(this._contentElem).remove("vp-disable-controls")},e.prototype.resetState=function(){this._destroyStartScreen(),this._destroyEndScreen(),this._destroyBranding()},e.prototype.syncViewState=function(){var t=this._model,e=t.playlist&&t.playlist.getCurrentItem(),i=t.playbackState,n=t.castState,r=n&&n.connected,a=o.START_SCREEN;this._setFlag(s.CASTING,r),r&&(n.mediaLoaded&&!n.paused?D.default.classList(this._contentElem).add("vp-cast-playing"):D.default.classList(this._contentElem).remove("vp-cast-playing"));var u=D.default.classList(this._contentElem).contains("vp-flag-"+s.LOADING);switch(this._setFlag(s.LOADING,t.isLoading()),!u&&t.isLoading()?this._eventBus.publish(S.ExternalEvt.LOADING_BEGIN):u&&!t.isLoading()&&this._eventBus.publish(S.ExternalEvt.LOADING_END),t.getState()){case L.States.INIT:case L.States.WAITING:a=o.START_SCREEN;var l=!t.autoplay||t.waitingForUserTap,d=e&&(e.hasThumbnail()&&!c.userAgent.mobile||e.fetchFinished());if(l&&d){var h=t.continuousPlay&&0!==t.playlist.position,p=t.skipOnError===M.SkipOnError.ALWAYS||t.skipOnError===M.SkipOnError.TIMEBASED;h&&p&&i.hasStartedPlayback||this._renderStartScreen()}break;case L.States.VIDEO:this._syncMode(i),this._syncPlaybackState(),a=o.VIDEO;break;case L.States.END:this._model.continuousPlay||this.setFullscreen(!1),i.criticalError?(t.chromeless?this._eventBus.publish(S.ExternalEvt.PLAYER_ERROR,i.criticalError):this._renderErrorScreen(i.criticalError,e,t.guid),a=o.ERROR):(this._renderEndScreen(i.previousItem),a=o.END_SCREEN)}this._currentViewState=a,this._setViewState(a),this._synchAriaState(),this._branding&&this._branding.syncState()},e.prototype.getCurrentViewState=function(){return this._currentViewState},e.prototype.setFullscreen=function(t){var e=this._contentElem,i=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen,n=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen;t?(c.userAgent.ios?this.publish(x.SYNC_ENTER_FULLSCREEN):c.userAgent.android&&!this._controls?this.publish(x.SYNC_ENTER_FULLSCREEN):i&&!this._isFullScreen?i.call(e):this._enterLightbox(),this._eventBus.publish(C.CTRL_FULLSCREEN,"ON")):(c.userAgent.ios?this.publish(x.SYNC_EXIT_FULLSCREEN):n&&this._isFullScreen?n.call(document):this._exitLightbox(),this._eventBus.publish(C.CTRL_FULLSCREEN,"OFF")),this._isFullScreen===t||i||n||(this._handleFullscreenChange(),this._eventBus.publish(C.FULLSCREEN_CHANGE,t),this._isFullScreen=t),t&&c.userAgent.mobile&&P.default.autoplaySupported&&this._model.playbackState.mute&&!this._model.muteMode&&this.publish(x.SET_MUTE,!1),this._synchAriaState()},e.prototype.getFullscreen=function(){var t=D.default.getFullscreenElement(),e=this._playbackController.getActiveRenderer(),i=c.userAgent.mobile&&(document.isFullScreen||document.webkitIsFullScreen)||c.userAgent.ios&&e&&e.node&&e.node.webkitDisplayingFullscreen,n=document.querySelector("body");return t===this._contentElem||n&&D.default.classList(n).contains("vp-lightbox")||i},e.prototype.toggleFullscreen=function(){this.setFullscreen(!this.getFullscreen())},e.prototype.updateVolumeUI=function(t,e){this._controls&&this._controls.updateVolumeUI(t,e)},e.prototype.updateClosedCaptionUI=function(t){this._controls&&this._controls.updateClosedCaptionUI(t)},e.prototype.clearAutoHideTimeout=function(){this._autoHideControlsTimeout&&window.clearTimeout(this._autoHideControlsTimeout)},e.prototype.setOverlayActive=function(t){t?D.default.classList(this._contentElem).add("vp-overlay-active"):D.default.classList(this._contentElem).remove("vp-overlay-active")},e.prototype.destroyFullscreenChangeListeners=function(){var t=this;this._fullscreenChangeEventHandler&&U.forEach(function(e){document.removeEventListener(e,t._fullscreenChangeEventHandler)})},e.prototype.getPlayerDimensions=function(){return{width:this._contentElem.clientWidth,height:this._contentElem.clientHeight,videoWidth:this._mainElem.clientWidth,videoHeight:this._mainElem.clientHeight}},Object.defineProperty(e.prototype,"controls",{get:function(){return this._controls},enumerable:!0,configurable:!0}),e.prototype.getPlaylistController=function(){return this._playlistController},e.prototype.isStreamMode=function(){return c.userAgent.desktop&&(this._viewSize===a.SMALL||D.default.classList(this._contentElem).contains("vp-stream"))},e.prototype.isMiniStreamMode=function(){return c.userAgent.desktop&&(this._viewSize===a.VERY_SMALL||D.default.classList(this._contentElem).contains("vp-ministream"))},e.prototype.addRendererNode=function(t){var e=this.getMainElement();if(e){if(D.default.classList(t).contains("vp-external-video")){for(var i=0,n=e.children[i];i<e.children.length&&"video"!==n.tagName.toLowerCase();)n=e.children[++i];if(n&&"video"===n.tagName.toLowerCase())return void e.insertBefore(t,n)}e.appendChild(t)}},e.prototype.onMediaItemLoaded=function(t){t.isLive()?D.default.classList(this._contentElem).add("vp-live"):D.default.classList(this._contentElem).remove("vp-live"),this.isStreamMode()&&!this.getFullscreen()&&D.default.classList(this._contentElem).add("vp-stream"),this.isMiniStreamMode()&&!this.getFullscreen()&&D.default.classList(this._contentElem).add("vp-ministream"),this._controls&&this._controls.onMediaItemLoaded(t)},e.prototype.onMediaItemCurrent=function(t){this._controls&&this._controls.onMediaItemCurrent(t)},e.prototype.onMediaItemPlaybackStarted=function(t){(this._model.docking.enableOnScrollDown||this._model.docking.enableOnScrollUp)&&this._isDocked&&this._updateDockedElements(),this._controls&&this._controls.onMediaItemPlaybackStarted(t)},e.prototype.onMediaItemPlaybackProgress=function(t){this._controls&&this._controls.onMediaItemPlaybackProgress(t)},e.prototype.onAdBreakStarted=function(t){this._adsView.onAdBreakStart(t)},e.prototype.onAdBreakEnded=function(t){this._adsView.onAdBreakEnd(t)},e.prototype.onAdBreakItemCurrent=function(t){this._adsView.onAdBreakItemCurrent(t)},e.prototype.onAdBreakItemStarted=function(t){this._controls&&this._controls.onAdPlaybackStarted()},e.prototype.onAdBreakItemEnded=function(t){this._controls&&this._controls.onAdPlaybackEnded()},e.prototype.onAdPlaybackProgress=function(t){var e=t.playingItem,i=this._model.playbackState.currentTime,n=this._model.playbackState.duration;e&&O.isNumber(i)&&O.isNumber(n)&&this._controls&&this._controls.onAdPlaybackProgress(t)},e.prototype.setTheme=function(t){t&&D.default.classList(this._contentElem).add(t)},e.prototype.onlanguageChange=function(t){this.publish(x.CC_LANGUAGE_CHANGE,t)},e.prototype.updateClosedCaptionStyle=function(t){this.publish(x.CC_STYLE_CHANGE,t)},e.prototype.updateCurrentItemTitle=function(t){this._controls.updateCurrentItemTitle(t),this._isDocked&&this._dockedMetaTitleElem&&(this._dockedMetaTitleElem.textContent=t),this._startScreen&&this._startScreen.updateTitle(t)},e.prototype.addCustomControlElement=function(t){return this._controls.addCustomControlElement(t)},e.prototype.destroy=function(){this._controls&&this._controls.destroy(),this._easterEgg&&this._easterEgg.destroy(),this._adsEasterEgg&&this._adsEasterEgg.destroy(),this._errorScreen&&this._errorScreen.destroy(),this._loadingScreen&&this._loadingScreen.destroy(),this._adsView&&this._adsView.destroy(),this._playlistController&&this._playlistController.destroy(),this._rendererController&&this._rendererController.destroy(),this._startScreen&&this._startScreen.destroy(),this._playerSurfaceTap&&this._playerSurfaceTap.destroy(),this.destroyAdsOverlay(),this.destroyFullscreenChangeListeners(),c.userAgent.tv||c.userAgent.mobile||!this._unbindMouseEvents||this._unbindMouseEvents(),this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null),this._openSimSim&&this._openSimSim.destroy(),this._adsInfoPanel&&this._adsInfoPanel.destroy(),this._rootElem&&(this._rootElem.innerHTML=""),this._removeDockingScrollListener()},e.prototype._onOrientationChange=function(t){this._model.uiState.deviceOrientation=t,this._model.uiState.isDocked&&this._model.docking.width===A.DOCKED_PLAYER_FULL&&t===T.Orientation.LANDSCAPE&&!this.getFullscreen()&&this.undockVideoPlayer(!0)},e.prototype._bindWindowResize=function(){this._resizeHandler=this._onResizeHandler.bind(this),window.addEventListener("resize",this._resizeHandler)},e.prototype._getDeviceOrientation=function(){var t=T.Orientation.LANDSCAPE;return window.innerHeight>window.innerWidth&&(t=T.Orientation.PORTRAIT),t},e.prototype._onResizeHandler=function(){this._eventBus.publish(C.Device.ORIENTATION_CHANGE,this._getDeviceOrientation())},e.prototype._bindDockingScrollListener=function(){this._detectViewportChangeHandler&&this._removeDockingScrollListener(),(!(c.userAgent.ie>0&&c.userAgent.ie<10)&&!c.userAgent.mobile||c.userAgent.mobile&&P.default.canPlayInline)&&this._model.docking&&(this._model.docking.enableOnScrollDown||this._model.docking.enableOnScrollUp)&&(this._detectViewportChangeHandler=this._detectViewportChange.bind(this),window.addEventListener("scroll",this._detectViewportChangeHandler))},e.prototype._removeDockingScrollListener=function(){this._detectViewportChangeHandler&&(window.removeEventListener("scroll",this._detectViewportChangeHandler),this._detectViewportChangeHandler=null)},e.prototype._detectViewportChange=function(){var t=window.pageYOffset;if(t!==this._lastScrollY&&!this._isFullScreen){this._lastScrollY=t;var e=D.default.getElementViewability(this._rootElem)>=this._model.docking.threshold;e||this._isDocked||this._model.getState()!==L.States.VIDEO||this._model.isPaused()?e&&this._isDocked&&this.undockVideoPlayer():this.dockVideoPlayer()}},e.prototype._initAdsView=function(){var t=this;return this._adsView||(this._adsView=new p.default(this._pluginManager),this._adsView.addEventListener(p.AdsViewEvent.SKIP_AD_REQUESTED,function(){t.publish(x.SKIP_AD_REQUESTED)},this),this._adsView.addEventListener(p.AdsViewEvent.CLICKED,function(){t.publish(x.AD_CLICKED)},this),this._mainElem.appendChild(this._adsView.create())),this._adsView},e.prototype._setContentElementFixed=function(){var t=this._rootElem.getBoundingClientRect(),e=document.querySelector("body");if(e){var i=e.clientWidth,n=this._model.docking.position||{};n.top>-1&&(this._contentElem.style.top=t.top+"px"),n.bottom>-1&&(this._contentElem.style.bottom=t.bottom+"px"),n.right>-1&&(this._contentElem.style.right=i-t.right+"px"),n.left>-1&&(this._contentElem.style.left=t.left+"px"),this._contentElem.style.width=this._preDockedWidth+"px",this._contentElem.style.height=this._preDockedHeight+"px",this._contentElem.style.position="fixed"}},e.prototype._updateDockedElements=function(){var t=this,e=this._model.docking;if(e.enableOnScrollDown||e.enableOnScrollUp){this._dockedMetaTitleElem&&this._dockedBg||(this._dockedMetaTitleElem=this._contentElem.querySelector(".vp-docked-title"),this._dockedMetaProviderElem=this._contentElem.querySelector(".vp-docked-provider"),this._dockedBg=document.createElement("div"),this._dockedBg.setAttribute("class","vp-docked-bg"),this._dockedBgImg=document.createElement("img"),this._dockedBgImg.setAttribute("class","vp-docked-img"),this._dockedBgOverlay=document.createElement("div"),this._dockedBgOverlay.setAttribute("class","vp-docked-overlay"),this._dockedBgOverlayText=document.createElement("div"),this._dockedBgOverlayText.setAttribute("class","vp-docked-overlay-text"),this._dockedBgOverlayText.innerHTML="Scroll back up to restore default view.",this._dockedBgOverlay.appendChild(this._dockedBgOverlayText),this._dockedBg.appendChild(this._dockedBgImg),this._dockedBg.appendChild(this._dockedBgOverlay),this._dockedCloseButton||(this._dockedCloseButton=document.createElement("div"),this._dockedCloseButton.setAttribute("class","vp-docked-close-button"),this._dockedCloseButtonTap=new b.default(this._dockedCloseButton,function(e){e.stopPropagation(),t.undockVideoPlayer(!t._model.isPaused()),t.publish(x.UI_INTERACT,{srcElement:"ui_pop_close_clk"})}),e.closeButtonFadeIn||D.default.classList(this._dockedCloseButton).add("vp-nofade")),this._mainElem&&this._mainElem.appendChild(this._dockedCloseButton),this._rootElem&&this._rootElem.appendChild(this._dockedBg));var i=this._model.playlist.getCurrentItem();i&&(i.thumbnail&&this._dockedBgImg.setAttribute("src",i.thumbnail),this._dockedMetaTitleElem&&i.title&&(this._dockedMetaTitleElem.innerHTML=i.title))}},e.prototype._onCssLoadSuccess=function(){var t,e=this.getContentNode().querySelectorAll(".vp-vis-hidden"),i=e.length;for(t=0;t<i;t++)D.default.classList(e[t]).remove("vp-vis-hidden");this._mainElem.style.height="",this._model.uiState.isCSSLoaded=!0},e.prototype._onCssLoadError=function(){var t,e=this.getContentNode().querySelectorAll(".vp-vis-hidden"),i=e.length;for(t=0;t<i;t++)D.default.classList(e[t]).add("vp-disp-none");this._model.uiState.isCSSLoaded=!1,this._eventBus.publish(C.WARNING,D.default.createErr(I.ErrorGroup.Streaming,this._model.playbackState,I.E_WARNING,I.WARNING_CODES.E_CSS_DOWNLOAD_FAILED),!1)},e.prototype._setViewState=function(t){var e="vp-state-"+t,i=D.default.classList(this._contentElem);Object.keys(o).forEach(function(t){var n="vp-state-"+o[t];i.contains(n)&&n!==e&&i.remove(n)}),i.contains(e)||i.add(e)},e.prototype._setFlag=function(t,e){var i=D.default.classList(this._contentElem),n="vp-flag-"+t,r=i.contains(n);e?r||i.add(n):r&&i.remove(n)},e.prototype._renderStartScreen=function(){var t=this._model,e=t.playlist.getCurrentItem();e&&!this._startScreen&&(t.showStartScreen&&(this._startScreen=new E.StartScreen(this._eventBus),this._setupStartScreenEvents(),this._mainElem&&this._mainElem.appendChild(this._startScreen.create(e,t))),this._eventBus.publish(C.START_SCREEN_RENDERED))},e.prototype._destroyStartScreen=function(){var t=this._startScreen&&this._startScreen.node;t&&(this._mainElem&&this._mainElem.removeChild(t),this._startScreen&&(this._startScreen.destroy(),this._startScreen=null))},e.prototype._renderEndScreen=function(t){var e=this;if(t){var i=this._model.showEndScreen;if(i){if(!this._contentElem.querySelector(".vp-end-replay")){var n=D.default.render(B,{});this._endScreenTap=new b.default(n,function(){e._eventBus.publish(C.RELATED_ITEM_CLICK,t.id,-1,!1,!1)}),this._mainElem&&this._mainElem.appendChild(n),this._endScreenNode=n}!this._startScreen&&i&&this._renderStartScreen(),this._eventBus.publish(C.END_SCREEN_RENDERED),this.publish(x.UI_INTERACT,{srcElement:"es-view"})}}},e.prototype._destroyEndScreen=function(){this._endScreenNode&&this._mainElem&&(this._mainElem.removeChild(this._endScreenNode),this._endScreenNode=null),this._endScreenTap&&this._endScreenTap.destroy()},e.prototype._renderErrorScreen=function(t,e,i){if(!this._errorScreen){this._errorScreen=new y.default(this._eventBus);var n=e?e.thumbnail:null,r=n||"";if(e=e||this._model.playlist.getCurrentItem(),this._mainElem){var o=e&&e.videoSession||"";this._mainElem.appendChild(this._errorScreen.create(t,i,o,r))}this.publish(x.UI_INTERACT,{srcElement:"err-view-"+t.category+"-"+t.subcategory})}},e.prototype._synchAriaState=function(){this._controls&&this._controls.syncAriaState()},e.prototype._enterLightbox=function(){var t=document.querySelector("body");if(t&&!D.default.classList(t).contains("vp-lightbox")){for(var e=this._contentElem.parentNode;e&&"BODY"!==e.nodeName;)D.default.classList(e).add("vp-lightbox-ancestor"),e=e.parentNode;D.default.classList(t).add("vp-lightbox")}},e.prototype._exitLightbox=function(){var t=document.querySelector("body");if(t&&D.default.classList(t).contains("vp-lightbox")){D.default.classList(t).remove("vp-lightbox");for(var e=this._contentElem.parentNode;e&&"BODY"!==e.nodeName;)D.default.classList(e).remove("vp-lightbox-ancestor"),e=e.parentNode}},e.prototype._onMuteChange=function(t){t?D.default.classList(this._contentElem).add("vp-muted"):D.default.classList(this._contentElem).remove("vp-muted")},e.prototype._mouseMoveHandler=function(){this._autoHideControlsTimeout&&window.clearTimeout(this._autoHideControlsTimeout),D.default.classList(this._contentElem).remove("vp-hide-controls"),this._objectOverlay&&D.default.classList(this._objectOverlay).remove("vp-overlay-hide-cursor"),this._model.isSeeking()||this._model.isPaused()||(this._autoHideControlsTimeout=window.setTimeout(this._onAutoHideControls.bind(this),5e3)),this._controls.onControlsBarChange(!0),this.getFullscreen()||this._eventBus.publish(R.CCEvent.POSITION_FLOAT,!0)},e.prototype._mouseOutHandler=function(t){"mouseout"===t.type&&(this._autoHideControlsTimeout&&window.clearTimeout(this._autoHideControlsTimeout),D.default.classList(this._contentElem).add("vp-hide-controls"),this._controls.onControlsBarChange(!1),this.getFullscreen()||this._eventBus.publish(R.CCEvent.POSITION_FLOAT,!1))},e.prototype._onAutoHideControls=function(){this._objectOverlay=this._contentElem&&this._contentElem.querySelector(".vp-object-overlay"),this._autoHideControlsTimeout&&(window.clearTimeout(this._autoHideControlsTimeout),this._autoHideControlsTimeout=null),D.default.classList(this._contentElem).add("vp-hide-controls"),this._controls.onControlsBarChange(!1)},e.prototype._onUpnextPgClick=function(){this._autoHideControlsTimeout&&window.clearTimeout(this._autoHideControlsTimeout),this._model.isSeeking()||(this._autoHideControlsTimeout=window.setTimeout(this._onAutoHideControls.bind(this),5e3))},e.prototype._handleFullscreenChange=function(){var t=this.getFullscreen();t?(D.default.classList(this._contentElem).add("vp-state-fullscreen"),this._isDocked&&(this._fsDocked=!0,this.undockVideoPlayer())):(D.default.classList(this._contentElem).remove("vp-state-fullscreen"),(this._isDocked||this._fsDocked)&&(this._fsDocked=!1,this._lastScrollY=window.scrollY,this.dockVideoPlayer())),this._isFullScreen!==t&&(this._model.uiState.isFullscreen=t,this._eventBus.publish(C.FULLSCREEN_CHANGE,t),this._isFullScreen=t)},e.prototype._onDimensionChange=function(t){var e,i=t.width||1,n=t.height||1,r=this._getViewSize(i,n);(this.isStreamMode()||this.isMiniStreamMode())&&r===a.NORMAL&&this._removeStreamMode(),c.userAgent.desktop&&(r===a.VERY_SMALL?D.default.classList(this._contentElem).add("vp-ministream"):r===a.SMALL&&(D.default.classList(this._contentElem).add("vp-stream"),this._playlistController.detachUpNextMouseEvents(),(e=this.getContentNode().querySelector(".vp-upnext-playlist"))&&D.default.classList(e).add("hide")))},e.prototype._removeStreamMode=function(){var t,e=this.getContentNode();D.default.classList(e).remove("vp-ministream"),D.default.classList(e).remove("vp-stream"),this._playlistController.attachUpNextMouseEvents(),(t=this.getContentNode().querySelector(".vp-upnext-playlist"))&&D.default.classList(t).remove("hide")},e.prototype._getViewSize=function(t,e){var i=a.NORMAL;return(t<=u.VERY_SMALL_WIDTH||e<=u.VERY_SMALL_HEIGHT)&&(i=a.VERY_SMALL),(t<=u.SMALL_WIDTH&&t>u.VERY_SMALL_WIDTH||e<=u.SMALL_HEIGHT&&e>u.VERY_SMALL_HEIGHT)&&(i=a.SMALL),i},e.prototype._viewUIInteract=function(t){this.publish(x.UI_INTERACT,t)},e.prototype._syncMode=function(t){var e=this.getContentNode(),i="vp-mode-"+this._model.playbackState.playbackMode,n=D.default.classList(e);Object.keys(N.PlaybackMode).forEach(function(t){var e="vp-mode-"+N.PlaybackMode[t];n.contains(e)&&e!==i&&n.remove(e)}),n.contains(i)||n.add(i)},e.prototype._syncPlaybackState=function(){!this._model.isPaused()?(this._setFlag(s.PLAYING,!0),this._setFlag(s.PAUSED,!1)):(this._setFlag(s.PLAYING,!1),this._setFlag(s.PAUSED,!0)),this.publish(x.SYNC_PLAYBACK_STATE)},e.prototype._setupControls=function(){var t=this,e=this._controls,i=e?e.create():null;i&&Object.keys(i).forEach(function(e){t._mainElem&&i[e]&&t._mainElem.appendChild(i[e])}),e.on(_.ControlsEvent.SEEK,function(e){t.publish(x.SEEK,e)},this),e.on(_.ControlsEvent.SET_VOLUME,function(e){t.publish(x.SET_VOLUME,e)},this),e.on(_.ControlsEvent.SET_MUTE,function(e){t.publish(x.SET_MUTE,e)},this),e.on(_.ControlsEvent.TOGGLE_CC,function(e,i){t.publish(x.TOGGLE_CC,e,i)},this),e.on(_.ControlsEvent.SET_AUDIO_LANGUAGE,function(e,i){t.publish(x.SET_AUDIO_LANGUAGE,e,i)},this),e.on(_.ControlsEvent.UI_INTERACT,function(e){t._viewUIInteract(e)},this),e.on(_.ControlsEvent.TOGGLE_PLAY_PAUSE,function(){t.publish(x.TOGGLE_PLAY_PAUSE)},this),e.on(_.ControlsEvent.LOGO_CLICK,function(){t._model.playbackState.state===L.States.INIT?t.publish(x.START_SCREEN_CLICK):t.publish(x.TOGGLE_PLAY_PAUSE)},this),e.on(_.ControlsEvent.FORWARD_SEEK,function(){t.publish(x.FORWARD_SEEK)},this),e.on(_.ControlsEvent.BACKWARD_SEEK,function(){t.publish(x.BACKWARD_SEEK)},this),e.on(_.ControlsEvent.SET_QUALITY,function(e){t._playbackController.setQuality(e)},this)},e.prototype._setupPlaylistControllerEvents=function(){var t=this;this._playlistController.on(w.PlaylistViewEvents.UI_INTERACT,function(e){t._viewUIInteract(e)},this)},e.prototype._setupStartScreenEvents=function(){var t=this,e=this._startScreen;e.on(E.StartScreenEvent.UI_INTERACT,function(e){t._viewUIInteract(e)},this),e.on(E.StartScreenEvent.START_SCREEN_CLICK,function(){t.publish(x.START_SCREEN_CLICK)},this)},e.prototype._setupOpssEventListeners=function(){var t=this;this._openSimSim.on(g.OpssEvent.VISIBILITY_CHANGED,function(e,i){t.publish(x.OPSS_VISIBILITY_CHANGED,e,i)},this)},e.prototype._destroyBranding=function(){this._branding&&this._branding.destroy()},e}(l.default);e.default=V},FXl5:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.ERR_RESTRICTED_NETWORK_TYPE="Due to rights restrictions, this live stream is only available on cellular data. Turn off wifi to watch.",t.ERR_DRM_UNSUPPORTED_NETWORK_WIFI="Due to license restrictions, this video cannot be played over WiFi on your device. To view this video, turn off WiFi and use your cellular data connection instead.",t.ERR_TITLE_CANNOT_PLAY_VIDEO="Cannot Play Video",t}();e.default=n},"G3+v":function(t,e,i){"use strict";var n=i("Vi6U");t.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:n}},G3JL:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,i,n){this._model=t,this._eventBus=e,this._profiler=i,this._adsDiagnostics=n}return t.prototype.create=function(){return document.createElement("div")},t.prototype.show=function(){},t.prototype.isOpen=function(){return!1},t.prototype.close=function(){},t.prototype.destroy=function(){},t}();e.default=n},GX4R:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("ToqN"),s=i("lHkY"),a=i("O/dN"),u=i("oIMU"),l=i("oIMU"),c=i("mczr"),d=i("WSjl"),h=i("1mKx"),p=i("R+G7"),f=i("1get"),_=i("v5jO"),m=i("fLR+"),y=i("+Ojf"),v=i("+NrX"),g=i("kfTt"),E=[1,5],b=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.type=e.type,r._capabilities=n.capabilities[c.RendererType.HTML5_RAW],r._resetStates(),(o.userAgent.desktop||o.userAgent.mobile&&p.default.hasNativeAutoplaySupport)&&(r._triggerSubtitleTracks=!0),r._rebufferingManager=new g.default,r._rebufferingManager.on(g.RebufferingEvent.WAITING,r._onWaiting,r),r._rebufferingManager.on(g.RebufferingEvent.SEG_INFO_AVAILABLE,r._onSegInfoAvailable,r),r}return r(e,t),e.canUse=function(){return!o.userAgent.tv},e.prototype.destroy=function(){this._fairplayLicenseManager&&this._fairplayLicenseManager.destroy(),t.prototype.destroy.call(this)},e.prototype.play=function(t){if(void 0===t&&(t=0),this.ended=!1,this.node){if(this._firstPlay){if(!p.default.autoplaySupported){if(o.userAgent.ios){var e=this.node.src;this.node.src="",this.node.load(),this.node.src=e}o.userAgent.mobile&&this.node.load()}}else{var i=this._model.playlist.getCurrentItem(),n=isNaN(this.node.duration)?i&&i.duration:this.node.duration;n||(n=0),m.isNumber(t)&&t>0&&t<n&&(this.node.currentTime=t)}this._firstPlay=!1,this._eventBus.publish(l.PROFILE_START,u.METRICS.STREAM_PLAY_TO_RENDER),this._startPlay(),this._playRequested||(this._rebufferingManager.publishWaitingEvent(!0),this._playRequested=!0)}},e.prototype.preload=function(t){},e.prototype.setPlayableItem=function(t,e){void 0===e&&(e=0),this._resetStates(),this._mode=y.default.getPlaybackMode(t);var i=t.streams||[],n=!1,r=null;this._streams=i,this._retryStreams=i.slice(0),this._rebufferingManager.init(this.node),(o.userAgent.safari>=6||o.userAgent.tv)&&i.forEach(function(t){t.format&&t.format.indexOf("m3u8")>-1&&(t.isPrimary||t.is_primary||!r)&&(r=t,n=!0)});var s=[];if(n){if(r)return this._setSrc(r,e),this._currentPlayableItem=t,!0}else{i.forEach(function(t){s.push(parseInt(t.videoMetadata.bitrate+"",10))}),s=s.sort(),this._bitrateSelector=new h.default(this.node,s);var a=this._bitrateSelector.getTargetBitrate();if(r=this._getBestStream(a))return this._setSrc(r,e),this._updateStreamBitrateInfo(r),this._model.mp4Abr&&s.length>1&&(this._timeupdateSubForAbrKey=this.on(c.RendererEvent.TIMEUPDATE,this._onPlaybackProgress,this),this._lastABRCheckTime=0),this._currentPlayableItem=t,!0}return!1},e.prototype.setQuality=function(t){this._switchSrc(t.stream.url),this._updateStreamBitrateInfo(t.stream)},e.prototype.retryStreams=function(t){var e=this,i=this._currentStream;if(i&&this._retryCount<=2)window.setTimeout(function(){e._retryStream(i,t)},1e3*E[this._retryCount-1]);else{this._retryCount=0;var n=this._retryStreams.indexOf(i);if(this._retryStreams.splice(n,1),0===this._retryStreams.length)return i;var r=_.default.findStreamByProperty(this._retryStreams,_.default.BITRATE,this._bitrateSelector.getTargetBitrate(),this._capabilities);this._retryStream(r,t)}return null},e.prototype.stopMedia=function(){this.node.removeAttribute("src"),this.node.load()},e.prototype.bindCustomEvents=function(){},e.prototype.unbindCustomEvents=function(){},e.prototype.unbindPlaybackEvents=function(){},e.prototype.suspendStreaming=function(){this.stopMedia()},e.prototype.resumeStreaming=function(){this._eventBus.publish(l.LIVE_RELOAD_MEDIA)},e.prototype.setAudioLanguage=function(t){if(this.node&&this.node.audioTracks&&this.node.audioTracks.length){for(var e,i=-1,n=0;n<this.node.audioTracks.length;n++)(e=this.node.audioTracks[n]).enabled=!1,e.label===t&&-1===i&&(i=n);i>-1&&(this.node.audioTracks[i].enabled=!0)}},e.prototype._handleVideoEvent=function(t,e){var i=this;if(this.node)switch(t===c.NativeVideoEvent.PLAYING&&this._eventBus.publish(l.PROFILE_END,[u.METRICS.STREAM_PLAY_TO_RENDER,u.METRICS.STREAM_REQUEST_TO_RENDER]),t){case c.NativeVideoEvent.TIMEUPDATE:this._rebufferingManager.playbackStuck||(this._playingPublished||(this._playingPublished=!0,this.publish(c.RendererEvent.PLAYING)),this.seeking&&(this.publish(c.RendererEvent.SEEKED,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this.seeking=!1));var n=this.node.currentTime;if(o.userAgent.android){if(!this._hasPlayed&&o.userAgent.chrome<33&&n>1&&n<2)(_=this._model.playlist.getCurrentItem())&&_.isLive()?(this.node.pause(),this._startPlay()):this.seek(0),this._hasPlayed=!0;!this._fsEvt&&o.userAgent.androidVersion<=4.4&&this.node.addEventListener("webkitfullscreenchange",function(){if(i.node){var t=i.node.currentTime;i._fsEvt=!0,i.node.load();var e=i.on(c.RendererEvent.LOADEDMETADATA,function(){if(i.node){i._startPlay();var n=i._model.playlist.getCurrentItem();n&&n.isLive()&&(i.node.currentTime=parseInt(t+"",10)),i.removeEventListener(c.RendererEvent.LOADEDMETADATA,e)}},i)}},!1)}this._isSwitching||this._rebufferingManager.playbackStuck||this.publish(e,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this._lastUpdatedTime=this.node.currentTime;break;case c.NativeVideoEvent.SEEKING:this.seeking=!0,this._rebufferingManager.onSeeking(),this._isSwitching||this._rebufferingManager.playbackStuck||this.publish(e,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered}),this._lastUpdatedTime=this.node.currentTime;break;case c.NativeVideoEvent.SEEKED:this._isSwitching?this._playNewStream():this._rebufferingManager.playbackStuck||(this.seeking=!1,this.publish(e,{currentTime:this.node.currentTime,duration:this.node.duration,buffered:this.node.buffered})),this._lastUpdatedTime=this.node.currentTime;break;case c.NativeVideoEvent.ERROR:if(this._mode!==c.PlaybackMode.VIDEO){this.publish(c.RendererEvent.ERROR,this.node.error);break}var r=this.node.error,s=this._getCodeForNodeError(r),d=this._retryStreams.length<=1&&this._retryCount>=2,h=a.E_WARNING,p=l.WARNING;d&&(h=a.E_PLAYER,p=l.ERROR);var f=y.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,h,s,null,this.node.src);if(parseInt(f.subcategory,10)>=303&&parseInt(f.subcategory,10)<=308){this._retryCount++,d||this._eventBus.publish(p,f);var _,m=null;return(m=(_=this._model.playlist.getCurrentItem())&&!_.isLive()?this.retryStreams(this._lastUpdatedTime):this.retryStreams(0))?void y.default.getUrlStatus(m.url,function(t){401===t?f.subcategory=a.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED:404===t&&(f.subcategory=a.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND),f.errorType=a.E_PLAYER,i._eventBus.publish(l.ERROR,f)}):void 0}this.publish(c.RendererEvent.ERROR,r),f.errorType=a.E_PLAYER,this._eventBus.publish(p,f);break;case c.NativeVideoEvent.ENDED:this.ended=!0,this._hasPlayed=!1,this._rebufferingManager.onEnded(),this._rebufferingManager.playbackStuck&&this._rebufferingManager.publishWaitingEvent(!1),this.publish(e);break;case c.NativeVideoEvent.LOADEDDATA:if(this._isSwitching){this._seekToCurrentTime();break}this._eventBus.publish(l.PROFILE_END,u.METRICS.LOAD_TO_LOADED_DATA),this.publish(e),this.node.audioTracks&&this.node.audioTracks.length>1&&this._updateMultiAudioStreamMeta();break;case c.NativeVideoEvent.PAUSE:if(this.ended||this.node.ended)break;if(this.seeking)break;if(!this.node.paused)break;this._rebufferingManager.playbackStuck&&this._rebufferingManager.publishWaitingEvent(!1),this.publish(e);break;case c.NativeVideoEvent.PLAY:case c.NativeVideoEvent.PLAYING:if(this._isSwitching){t===c.NativeVideoEvent.PLAYING&&this._finishSwitching();break}this._rebufferingManager.playbackStuck||(this._playingPublished=t===c.NativeVideoEvent.PLAYING,this.publish(e));break;case c.NativeVideoEvent.WAITING:case c.NativeVideoEvent.VOLUMECHANGE:break;default:this.publish(e)}},e.prototype._checkFormat=function(t,e){return t.indexOf(e)>-1},e.prototype._areFormatsCrashy=function(t,e){return this._checkFormat(t,"mp4")&&this._checkFormat(e,"m3u8")||this._checkFormat(t,"m3u8")&&this._checkFormat(e,"mp4")},e.prototype._resetStates=function(){this._isSwitching=!1,this._currentSrcFormat="",this._currentStream=null,this._retryCount=0,this._retryStreams=[],this._retryState=null,this._playRequested=!1,this._lastUpdatedTime=0,this._playingPublished=!1,this._currentPlayableItem=null,this._mode=c.PlaybackMode.VIDEO,this._hasPlayed=!1,this._fsEvt=!1,this._lastABRCheckTime=0,this._timeupdateSubForAbrKey&&(this.removeEventListener(c.RendererEvent.TIMEUPDATE,this._timeupdateSubForAbrKey),this._timeupdateSubForAbrKey=null),this.seeking=!1,this.ended=!1},e.prototype._getFirstPrimaryStream=function(){var t=null;if(this._streams)for(var e=0,i=this._streams;e<i.length;e++){var n=i[e];if(n.isPrimary){t=n;break}}return t},e.prototype._getBestStream=function(t){var e=this._getFirstPrimaryStream();return e||(e=_.default.findStreamByProperty(this._streams,"bitrate",t,this._capabilities)),!e&&this._streams&&this._streams.length>0&&(e=this._streams[0]),e},e.prototype._onPlaybackProgress=function(t){if(t-this._lastABRCheckTime>10){this._lastABRCheckTime=t;var e=this._getBestStream(this._bitrateSelector.getRecommendedBitrate());e&&(this._switchSrc(e.url),this._updateStreamBitrateInfo(e))}},e.prototype._updateStreamBitrateInfo=function(t){this._bitrateSelector&&(this._bitrateSelector.currentBitrate=t.videoMetadata.bitrate),this._eventBus.publish(l.PLAYBACK_INFO,{currentStreamBitrate:t.videoMetadata.bitrate,qualityLevels:this._streams.length})},e.prototype._setSrc=function(t,e,i){var n=this;if(this.node){var r=this._model.playlist.getCurrentItem();if(r.license&&r.license.isDrm&&!p.default.drmSupported){var h=void 0;return o.userAgent.ios&&o.userAgent.iosVersion<11.2||o.userAgent.android&&!o.userAgent.chrome?h=a.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_OS:o.userAgent.ios&&!o.userAgent.safari&&(h=a.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_BROWSER),void this._eventBus.publish(l.INFO,y.default.createErr(a.ErrorGroup.Streaming,this._model.playbackState,a.E_PLAYER_DRM,h,null,this.node.src))}if(o.userAgent.safari&&(this._fairplayLicenseManager||(this._fairplayLicenseManager=new s.default(this.node,t.fairplayCertificatePath,this._onDrmDetected.bind(this),this.reportError.bind(this)))),this.ended=!1,this._hasPlayed=!1,this.node.src!==t.url||i){if(o.userAgent.iphone&&this.node.hasOwnProperty("webkitDisplayingFullscreen")&&!this.node.webkitDisplayingFullscreen&&t.format&&this._areFormatsCrashy(t.format,this._currentSrcFormat)){var _=this.node.parentNode;this.destroy(),_&&_.appendChild(this.create())}if(o.userAgent.android&&t.live&&(o.userAgent.chrome&&o.userAgent.chrome<30||!f.default.isAndroidVersionAbove4())){var m=y.default.createErr(a.ErrorGroup.Restriction,this._model.playbackState,a.E_INFO,a.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED);return void this._eventBus.publish(l.INFO,m)}if(this._deleteTracks(),this._eventBus.publish(l.PROFILE_START,u.METRICS.STREAM_REQUEST_TO_RENDER),this.node.src=t.url,e)var v=this.on(c.RendererEvent.LOADEDMETADATA,function(){n.node&&(n.node.currentTime=e),n.removeEventListener(c.RendererEvent.LOADEDMETADATA,v)},this);this._firstPlay=!0,this._currentSrcFormat=t.format||"",this._currentStream=t,this._mode===c.PlaybackMode.VIDEO&&this._eventBus.publish(l.PROFILE_START,u.METRICS.LOAD_TO_LOADED_DATA),o.userAgent.mobile?p.default.hasNativeAutoplaySupport&&this.node.load():(this.node.load(),this._model.getState()===d.States.VIDEO&&this.play())}}},e.prototype._calculateCanvasPosition=function(){if(!this.node)return{};var t=this.node.videoWidth/this.node.videoHeight,e=this.node.clientWidth,i=this.node.clientHeight,n=0,r=0;return e/i>t?(r=parseInt(i.toFixed(2),10),n=parseInt((t*i).toFixed(2),10)):(n=parseInt(e.toFixed(2),10),r=parseInt((e/t).toFixed(2),10)),{width:n,height:r,left:Math.max((e-n)/2,0),top:Math.max((i-r)/2,0)}},e.prototype._seekToCurrentTime=function(){this.seek(this._currentTime)},e.prototype._onDrmDetected=function(){this._model.isDrmAvailable=!0,this._model.drmSystem="fairplay"},e.prototype._playNewStream=function(){if(this.node){this._startPlay();var t=this._canvas.parentNode;t&&t.removeChild(this._canvas)}},e.prototype._finishSwitching=function(){this.publish(c.CustomRendererEvent.SRC_SWITCHED),this._isSwitching=!1},e.prototype._switchSrc=function(t,e){if(this.node){var i=this.node.clientWidth,n=this.node.clientHeight;if(this.node.src===t)return this.publish(c.CustomRendererEvent.SRC_SWITCHING),void this.publish(c.CustomRendererEvent.SRC_SWITCHED);this._isSwitching=!0,this.node.pause(),this._currentTime=this.node.currentTime;var r=document.createElement("canvas");this._canvas=r,r.className="vp-switching-canvas",r.width=i,r.height=n;var o=this._calculateCanvasPosition();r.style.cssText="width:"+o.width+"px;height:"+o.height+"px;left:"+o.left+"px;top:"+o.top+"px";var s=this.node.parentNode;s&&s.appendChild(r);var a=r.getContext("2d");a&&a.drawImage(this.node,0,0,i,n),this.publish(c.CustomRendererEvent.SRC_SWITCHING),this.node.src=t}},e.prototype._retryStream=function(t,e){this._setSrc(t,e,!0),this._updateStreamBitrateInfo(t)},e.prototype._updateMultiAudioStreamMeta=function(){if(this.node&&this.node.audioTracks&&!(this.node.audioTracks.length<2)){var t=Array.prototype.slice.call(this.node.audioTracks).map(function(t){return{name:t.label,language:t.language,selected:t.enabled}}),e=this._model.playlist.getCurrentItem();e&&(e.setMultiLanguages(t),this._eventBus.publish(l.MULTI_LANGUAGES_AVAILABLE))}},e.prototype._onWaiting=function(t){t.value&&(this._playingPublished=!1),t.ignoreBuffering=t.ignoreBuffering||this.seeking,this.publish(c.RendererEvent.WAITING,t)},e.prototype._onSegInfoAvailable=function(t){this._eventBus.publish(l.SEG_INFO_AVAILABLE,t)},e.type=c.RendererType.HTML5_RAW,e}(v.default);e.default=b},GYWy:function(t,e,i){(function(t,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var a,u=2147483647,l=36,c=1,d=26,h=38,p=700,f=72,_=128,m="-",y=/^xn--/,v=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,S=Math.floor,A=String.fromCharCode;function T(t){throw new RangeError(E[t])}function I(t,e){for(var i=t.length,n=[];i--;)n[i]=e(t[i]);return n}function C(t,e){var i=t.split("@"),n="";return i.length>1&&(n=i[0]+"@",t=i[1]),n+I((t=t.replace(g,".")).split("."),e).join(".")}function R(t){for(var e,i,n=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(i=t.charCodeAt(r++)))?n.push(((1023&e)<<10)+(1023&i)+65536):(n.push(e),r--):n.push(e);return n}function L(t){return I(t,function(t){var e="";return t>65535&&(e+=A((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=A(t)}).join("")}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,i){var n=0;for(t=i?S(t/p):t>>1,t+=S(t/e);t>b*d>>1;n+=l)t=S(t/b);return S(n+(b+1)*t/(t+h))}function D(t){var e,i,n,r,o,s,a,h,p,y,v,g=[],E=t.length,b=0,A=_,I=f;for((i=t.lastIndexOf(m))<0&&(i=0),n=0;n<i;++n)t.charCodeAt(n)>=128&&T("not-basic"),g.push(t.charCodeAt(n));for(r=i>0?i+1:0;r<E;){for(o=b,s=1,a=l;r>=E&&T("invalid-input"),((h=(v=t.charCodeAt(r++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||h>S((u-b)/s))&&T("overflow"),b+=h*s,!(h<(p=a<=I?c:a>=I+d?d:a-I));a+=l)s>S(u/(y=l-p))&&T("overflow"),s*=y;I=O(b-o,e=g.length+1,0==o),S(b/e)>u-A&&T("overflow"),A+=S(b/e),b%=e,g.splice(b++,0,A)}return L(g)}function M(t){var e,i,n,r,o,s,a,h,p,y,v,g,E,b,I,C=[];for(g=(t=R(t)).length,e=_,i=0,o=f,s=0;s<g;++s)(v=t[s])<128&&C.push(A(v));for(n=r=C.length,r&&C.push(m);n<g;){for(a=u,s=0;s<g;++s)(v=t[s])>=e&&v<a&&(a=v);for(a-e>S((u-i)/(E=n+1))&&T("overflow"),i+=(a-e)*E,e=a,s=0;s<g;++s)if((v=t[s])<e&&++i>u&&T("overflow"),v==e){for(h=i,p=l;!(h<(y=p<=o?c:p>=o+d?d:p-o));p+=l)I=h-y,b=l-y,C.push(A(P(y+I%b,0))),h=S(I/b);C.push(A(P(h,0))),o=O(i,E,n==r),i=0,++n}++i,++e}return C.join("")}a={version:"1.4.1",ucs2:{decode:R,encode:L},decode:D,encode:M,toASCII:function(t){return C(t,function(t){return v.test(t)?"xn--"+M(t):t})},toUnicode:function(t){return C(t,function(t){return y.test(t)?D(t.slice(4).toLowerCase()):t})}},void 0===(r=function(){return a}.call(e,i,e,t))||(t.exports=r)}()}).call(this,i("YuTi")(t),i("yLpj"))},GZfa:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+Ojf"),r=i("kjk6"),o=function(){function t(t,e){this._eventBus=t,this._viewRootEl=e.getRootElement()||null}return t.prototype.create=function(){return this.node=n.default.render(r,{}),this.node},t.prototype.destroy=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node),this._viewRootEl=null,this._eventBus=null,this.node=null},t}();e.default=o},H0QZ:function(t,e,i){"use strict";var n=i("skmB"),r=e.ValidationError=function(t,e,i,n,r,o){n&&(this.property=n),t&&(this.message=t),i&&(i.id?this.schema=i.id:this.schema=i),e&&(this.instance=e),this.name=r,this.argument=o,this.stack=this.toString()};r.prototype.toString=function(){return this.property+" "+this.message};var o=e.ValidatorResult=function(t,e,i,n){this.instance=t,this.schema=e,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.disableFormat=i&&!0===i.disableFormat};function s(t,e){return e+": "+t.toString()+"\n"}o.prototype.addError=function(t){var e;if("string"==typeof t)e=new r(t,this.instance,this.schema,this.propertyPath);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");e=new r(t.message,this.instance,this.schema,this.propertyPath,t.name,t.argument)}if(this.throwError)throw e;return this.errors.push(e),e},o.prototype.importErrors=function(t){"string"==typeof t||t&&t.validatorType?this.addError(t):t&&t.errors&&Array.prototype.push.apply(this.errors,t.errors)},o.prototype.toString=function(t){return this.errors.map(s).join("")},Object.defineProperty(o.prototype,"valid",{get:function(){return!this.errors.length}});var a=e.SchemaError=function t(e,i){this.message=e,this.schema=i,Error.call(this,e),Error.captureStackTrace(this,t)};a.prototype=Object.create(Error.prototype,{constructor:{value:a,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var u=e.SchemaContext=function(t,e,i,n,r){this.schema=t,this.options=e,this.propertyPath=i,this.base=n,this.schemas=r};u.prototype.resolve=function(t){return n.resolve(this.base,t)},u.prototype.makeChild=function(t,e){var i=void 0===e?this.propertyPath:this.propertyPath+c(e),r=n.resolve(this.base,t.id||""),o=new u(t,this.options,i,r,Object.create(this.schemas));return t.id&&!o.schemas[r]&&(o.schemas[r]=t),o};var l=e.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(t){return"string"==typeof t&&parseFloat(t)===parseInt(t,10)&&!isNaN(t)},regex:function(t){var e=!0;try{new RegExp(t)}catch(t){e=!1}return e},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],e.isFormat=function(t,e,i){if("string"==typeof t&&void 0!==l[e]){if(l[e]instanceof RegExp)return l[e].test(t);if("function"==typeof l[e])return l[e](t)}else if(i&&i.customFormats&&"function"==typeof i.customFormats[e])return i.customFormats[e](t);return!0};var c=e.makeSuffix=function(t){return(t=t.toString()).match(/[.\s\[\]]/)||t.match(/^[\d]/)?t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]":"."+t};function d(t,e){var i=Array.isArray(e),n=i&&[]||{};return i?(t=t||[],n=n.concat(t),e.forEach(function(t,e,i,n){"object"==typeof i?e[n]=d(t[n],i):-1===t.indexOf(i)&&e.push(i)}.bind(null,t,n))):(t&&"object"==typeof t&&Object.keys(t).forEach(function(t,e,i){e[i]=t[i]}.bind(null,t,n)),Object.keys(e).forEach(function(t,e,i,n){"object"==typeof e[n]&&e[n]&&t[n]?i[n]=d(t[n],e[n]):i[n]=e[n]}.bind(null,t,e,n))),n}function h(t){return"/"+encodeURIComponent(t).replace(/~/g,"%7E")}e.deepCompareStrict=function t(e,i){if(typeof e!=typeof i)return!1;if(e instanceof Array)return i instanceof Array&&(e.length===i.length&&e.every(function(n,r){return t(e[r],i[r])}));if("object"==typeof e){if(!e||!i)return e===i;var n=Object.keys(e),r=Object.keys(i);return n.length===r.length&&n.every(function(n){return t(e[n],i[n])})}return e===i},t.exports.deepMerge=d,e.objectGetPath=function(t,e){for(var i,n=e.split("/").slice(1);"string"==typeof(i=n.shift());){var r=decodeURIComponent(i.replace(/~0/,"~").replace(/~1/g,"/"));if(!(r in t))return;t=t[r]}return t},e.encodePath=function(t){return t.map(h).join("")},e.getDecimalPlaces=function(t){var e=0;if(isNaN(t))return e;"number"!=typeof t&&(t=Number(t));var i=t.toString().split("e");if(2===i.length){if("-"!==i[1][0])return e;e=Number(i[1].slice(1))}var n=i[0].split(".");return 2===n.length&&(e+=n[1].length),e}},H8YR:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("A4+F"),r=i("mczr"),o=i("fLR+"),s=i("+Ojf"),a=i("vTO9"),u=i("r/m/"),l=i("vYwU"),c=i("iBPZ"),d=function(){function t(t){this._player=t,this._playerFileName="vdms-player",this._adPlayed=!1,this._sessionComplete=!1,this._evtListeners=[{evt:n.ExternalEvt.VIDEO_REQUEST,cb:this._sendGenericBeacon.bind(this,"VIDEO_REQUEST")},{evt:n.ExternalEvt.PLAYBACK_RESUMED,cb:this._sendGenericBeacon.bind(this,"PLAYBACK_RESUMED")},{evt:n.ExternalEvt.PLAYBACK_STALLED,cb:this._sendGenericBeacon.bind(this,"PLAYBACK_STALLED")},{evt:n.ExternalEvt.CTRL_SEEK,cb:this._sendGenericBeacon.bind(this,"CTRL_SEEK")},{evt:n.ExternalEvt.CTRL_VOLUME,cb:this._sendGenericBeacon.bind(this,"CTRL_VOLUME")},{evt:n.ExternalEvt.CTRL_PLAYPAUSE,cb:this._sendGenericBeacon.bind(this,"CTRL_PLAYPAUSE")},{evt:n.ExternalEvt.CTRL_REPLAY,cb:this._sendGenericBeacon.bind(this,"CTRL_REPLAY")},{evt:n.ExternalEvt.CTRL_PLAYREQUEST,cb:this._sendGenericBeacon.bind(this,"CTRL_PLAYREQUEST")},{evt:n.ExternalEvt.CTRL_SETTINGS,cb:this._sendGenericBeacon.bind(this,"CTRL_SETTINGS")},{evt:n.ExternalEvt.CONTROLS_AUDIO_CHANGE,cb:this._sendGenericBeacon.bind(this,"CONTROLS_AUDIO_CHANGE")},{evt:n.ExternalEvt.THREE_SIXTY_INTERACT,cb:this._sendGenericBeacon.bind(this,"THREE_SIXTY_INTERACT")},{evt:n.ExternalEvt.THREE_SIXTY_PIE_INTERACT,cb:this._sendGenericBeacon.bind(this,"THREE_SIXTY_PIE_INTERACT")},{evt:n.ExternalEvt.CC_LANGUAGE_CHANGE,cb:this._sendGenericBeacon.bind(this,"CC_LANGUAGE_CHANGE")},{evt:n.ExternalEvt.CC_UPDATE_STYLE,cb:this._sendGenericBeacon.bind(this,"CC_UPDATE_STYLE")},{evt:n.ExternalEvt.CC_SETTINGS,cb:this._sendGenericBeacon.bind(this,"CC_SETTINGS")},{evt:n.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,cb:this._onAirplayConnectionStateChange},{evt:n.ExternalEvt.BITRATE_CHANGE,cb:this._onBitrateChange},{evt:n.ExternalEvt.UI_INTERACT,cb:this._onUiInteraction},{evt:n.ExternalEvt.CC_UI_TOGGLE,cb:this._onCcToggle},{evt:n.ExternalEvt.PLAYER_FULLSCREEN_CHANGE,cb:this._onFullScreenToggle},{evt:n.ExternalEvt.PLAYER_INFO,cb:this._onPlayerInfo},{evt:n.ExternalEvt.ABR_DATA_UPDATE,cb:this._onAbrDataUpdate},{evt:n.ExternalEvt.CMS_API_CALLED,cb:this._onApiCalled},{evt:n.ExternalEvt.PLAYER_ERROR,cb:this._onError},{evt:n.ExternalEvt.PLAYER_WARNING,cb:this._onWarning},{evt:n.ExternalEvt.PLAYBACK_START,cb:this._onPlaybackStarted},{evt:n.ExternalEvt.PLAYBACK_COMPLETE,cb:this._onPlaybackComplete},{evt:n.ExternalEvt.AD_METRICS,cb:this._onAdMetricsAvailable}],this._player&&(this._model=this._getAnalyticsModel(this._player),this._progressManager=new l.default(this._player,this._model),this._evtKeys={},this._bindEvents())}return t.prototype.destroy=function(){this._onPlayerDestroyed("destroy"),this._player.removeEventListeners(this._evtKeys),this._progressManager.destroy(),this._model.destroy(),this._evtKeys={}},t.prototype._onPlaybackStarted=function(t){var e=this._player.getPlaybackStartDto();t.ad=this._adPlayed?1:0,t.rsm=e.isResume||"",t.pdtl=this._model.programDateTimeLatency,this._updateLatencyParams(t,e),this._updateEventDetails(t,a.BEACONS.PLAYBACK_START),this._sendBeacon(t)},t.prototype._getAnalyticsModel=function(t){return new u.default(t)},t.prototype._bindEvents=function(){var t=this;window.addEventListener("unload",this._sendUnloadBeacon.bind(this)),this._player.addEventListener(n.ExternalEvt.VIDEO_REQUEST,this._onVideoRequest,this),this._progressManager.addEventListener(l.ProgressEvent.VIDEO_PROGRESS,this._onVideoProgress,this),this._evtListeners.forEach(function(e){t._evtKeys[e.evt]=t._player.addEventListener(e.evt,t._handleVideoEvent.bind(t,e),t)})},t.prototype._handleVideoEvent=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length-1,r=e[n]||{};this._model.update(r);var s=this._model.getCommonParams(),a=o.isObject(e[n])?Array.prototype.slice.call(e,0,n):e;t.cb.apply(this,a.concat([s]))},t.prototype._sendGenericBeacon=function(t){for(var e=this,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=t&&a.BEACONS[t]||null,o=i[i.length-1];if(r){var s=Array.prototype.slice.call(i,0,i.length-1),u=r.payloadParams;if(s.length&&u&&u.length===s.length)for(var l=0;l<s.length;l++)o[u[l]]=s[l].toString();else if(u&&u.length)return;r.params&&r.params.forEach(function(t){o[t.key]=e._model[t.value]}),this._updateEventDetails(o,r),this._sendBeacon(o)}},t.prototype._sendBeacon=function(t){this._filterSkipParams(t);var e="https://bats.video.yahoo.com/p?"+s.default.querystring(t,"&","=",function(t){return encodeURIComponent(t).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")});c.default.sendImageBeacon(e),this._model.onBeaconSent()},t.prototype._filterSkipParams=function(t){for(var e in t)t.hasOwnProperty(e)&&t[e]===this._model.SKIP_PARAM_IN_BEACON&&delete t[e]},t.prototype._onVideoRequest=function(t,e){this._adPlayed=!1,this._sessionComplete=!1,this._model.onVideoRequest(t,e)},t.prototype._onBitrateChange=function(t,e,i){this._updateEventDetails(i,a.BEACONS.BITRATE_CHANGE),i.value=t.toString(),i.value_e=this._model.bitrate,i.reason=e.reason||"",i.fr=e.newFrameRate||"",i.fr_old=e.oldFrameRate||"",this._sendBeacon(i),this._model.bitrate=t},t.prototype._onAirplayConnectionStateChange=function(t,e){t.isInitialEvt||(this._updateEventDetails(e,a.BEACONS.AIRPLAY_CONNECTION_STATE_CHANGE),e.value=t.connected?"1":"0",this._sendBeacon(e))},t.prototype._onUiInteraction=function(t,e){this._updateEventDetails(e,a.BEACONS.UI_INTERACT),e.evt=["ui_pl_nxt_clk","ui_pl_nxt_hvr","ui_pl_scrl","ui_pl_thmb_clk"].indexOf(t.srcElement)>-1?"ui_pl":e.evt,e.V_slk=t.srcElement,this._sendBeacon(e)},t.prototype._onCcToggle=function(t,e,i){this._updateEventDetails(i,a.BEACONS.CC_TOGGLE),i.value=t?"1":"0",this._sendBeacon(i)},t.prototype._onFullScreenToggle=function(t,e){this._updateEventDetails(e,a.BEACONS.FULLSCREEN_CHANGE),e.value=t?"ON":"OFF",this._sendBeacon(e)},t.prototype._onPlayerInfo=function(t,e){this._updateEventDetails(e,a.BEACONS.PLAYER_INFO),e.ecode=t.rep||"",e.estring=t.debugMessage||t.message||"",this._sendBeacon(e)},t.prototype._onAbrDataUpdate=function(t,e){this._updateEventDetails(e,a.BEACONS.ABR_DATA_UPDATE),e.sc=t.sc||"",e.ib=t.ib||"",e.bft=t.bft||"",e.ci=t.ci||"",e.dw=t.dw||"",e.dh=t.dh||"",e.pr=t.pr||"",e.eb=t.eb||"",e.bl=t.bl||"",e.swc=t.swc||"",e.dfr=t.dfr||"",e.fbl=t.fbl?t.fbl.toString():"",e.ted="",t.ted&&t.ted.length&&(e.ted=t.ted.map(function(t){return JSON.stringify(t)}).toString()),e.ni=t.ni||"",e.rs=t.rs||"",this._sendBeacon(e)},t.prototype._onApiCalled=function(t,e){var i=c.default.prepareApiInfo(t.url,t.perfObj);this._updateEventDetails(e,a.BEACONS.CMS_API_CALLED),e.source=i.source||"na",e.url=i.url||"",e.latency=i.latency||"",e.http_code=i.http_code||"na",e.resp_len=i.resp_len||"na",e.instrument=i.instrument||"",e.perf_info=i.perfInfo||"",e.perf_stack=i.perfStack||"",this._sendBeacon(e)},t.prototype._onError=function(t,e){t.isRecoverable||(this._updateEventDetails(e,a.BEACONS.PLAYER_ERROR),e.ecode=t.rep||"",e.estring=t.debugMessage||t.message||"",e.dur=Math.round(this._progressManager.totalWatchTime)||"",this._sendBeacon(e),this._onPlayerDestroyed("error"))},t.prototype._onWarning=function(t,e){this._updateEventDetails(e,a.BEACONS.PLAYER_WARNING),e&&(e.ecode=t.rep||"",e.estring=t.debugMessage||t.message||""),this._sendBeacon(e)},t.prototype._onPlaybackComplete=function(t,e){this._sendSessionCompleteBeacon(a.BEACONS.PLAYBACK_COMPLETE,e)},t.prototype._sendUnloadBeacon=function(){this._onPlayerDestroyed("unload")},t.prototype._onPlayerDestroyed=function(t){var e=this._model.getCommonParams();e&&(e.ext_resn=t||"na"),this._sendSessionCompleteBeacon(a.BEACONS.INCOMPLETE_EXIT,e)},t.prototype._sendSessionCompleteBeacon=function(t,e){this._sessionComplete||(this._sessionComplete=!0,this._updateEventDetails(e,t),e.pdtl=this._model.programDateTimeLatency,e.alang=this._model.audioLanguage,this._model.playbackMode===r.PlaybackMode.AD?this._updateAdPlaybackStats(e):this._progressManager.updatePlaybackStats(e),this._sendBeacon(e))},t.prototype._onVideoProgress=function(t){var e=this._model.getCommonParams();this._updateEventDetails(e,t),this._progressManager.updatePlaybackStats(e),this._sendBeacon(e)},t.prototype._onAdMetricsAvailable=function(t,e){if(t&&t.evt){t.evt=t.evt.toLowerCase(),"ad_dlv"===t.evt&&(this._adPlayed=!0,this._updateLatencyParams(e,this._player.getPlaybackStartDto())),this._model.adParams=t;for(var i=["string","number","boolean","undefined"],n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var s=r[n];(i.indexOf(typeof t[s])>=0||null===t[s])&&o.isNullOrUndefined(e[s])&&(e[s]=t[s])}e.V_sec="pb",this._sendBeacon(e),"ad_comp"===t.evt&&(this._model.adParams=null)}},t.prototype._getProfilerTimeDiff=function(t){return t&&o.isNumber(t.timeDiff)&&t.timeDiff.toString()||""},t.prototype._getProfilerTimeStamp=function(t,e){return t&&t.startTime&&e&&(e+t.startTime).toString()||""},t.prototype._updateEventDetails=function(t,e){t&&e&&(t.evt=e.evt,t.V_sec=e.type)},t.prototype._updateAdPlaybackStats=function(t){var e=this._player.getCurrentTime(),i=this._model.adParams&&this._model.adParams.pos,n=this._model.adParams&&this._model.adParams.dur||null;t.pos=i||"ad",t.dur=e>0?Math.floor(e):0,t.dur_d=o.isNumber(n)&&e>n&&Math.floor(e-n)||0,t.buff_info="",t.buf_dur=0},t.prototype._updateLatencyParams=function(t,e){t.apallwd=e.autoPlayAllowed||"",t.jsdt=s.default.getResourceLoadTime(this._playerFileName+".js")||"",t.cssdt=s.default.getResourceLoadTime(/vdms-video-player\.css/)||"",t.swfdt=s.default.getResourceLoadTime(/player\.swf/)||"",t.req_type=this._model.requestType||"",t.req_action=this._model.requestAction||"",t.apl=this._getProfilerTimeDiff(e.autoPlayLatency),t.s_apl=this._getProfilerTimeStamp(e.autoPlayLatency,e.initTime),t.ucl=this._getProfilerTimeDiff(e.clickToPlayLatency),t.tpb=this._getProfilerTimeDiff(e.playbackStartLatency),t.s_tpb=this._getProfilerTimeStamp(e.playbackStartLatency,e.initTime),t.tmeta_call=this._getProfilerTimeDiff(e.cmsLatency),t.s_tsapic=this._getProfilerTimeStamp(e.cmsLatency,e.initTime),t.tsrc_call=this._getProfilerTimeDiff(e.cmsSourceLatency),t.s_tssrcapic=this._getProfilerTimeStamp(e.cmsSourceLatency,e.initTime),t.tadp=this._getProfilerTimeDiff(e.adPluginLatency),t.s_tadpc=this._getProfilerTimeStamp(e.adPluginLatency,e.initTime)},t}();e.default=d},"HNE+":function(t,e,i){"use strict";t.exports=r;var n=i("RwmF");function r(t,e){if(!t||isNaN(t))throw new Error("Invalid Argument: No delay");n.call(this,this.constructor.name),this.delay=Math.max(t,20),this.repeatCount=e>0?e:Number.POSITIVE_INFINITY,this.currentCount=0,this.running=!1,this.startTime=0,this._timerHandle=null,this._subscriptions={},this._eventKeys={}}i("/iNa").inherits(r,n),r.prototype.destroy=function(){this.reset(),this._subscriptions={},n.prototype.removeEventListeners.call(this,this._eventKeys),n.prototype.destroy.call(this)},r.prototype.addEventListener=function(t,e){if(!e)throw new Error("Invalid Argument: No context");var i=n.prototype.addEventListener.call(this,"timedOut",t,e);this._eventKeys.timedOut=i},r.prototype.removeEventListener=function(t,e){if(!e)throw new Error("Invalid Argument: No context");n.removeEventListeners(this._eventKeys)},r.prototype.start=function(){var t=this;t._timerHandle||t.running||(t._timerHandle=setInterval(function(){t.currentCount++,t.currentCount>=t.repeatCount&&t.stop(),t.publish("timedOut"),t.startTime=Date.now()},t.delay),t.startTime=Date.now(),t.running=!0)},r.prototype.stop=function(){this._timerHandle&&this.running&&(clearInterval(this._timerHandle),this._timerHandle=null,this.running=!1,this.startTime=0)},r.prototype.reset=function(){this.stop(),this.currentCount=0,this.startTime=0}},HakF:function(t,e,i){"use strict";t.exports=r;var n=i("bh81");function r(){this._rules=[],this._rules.push(new n.BandwidthRule),this._rules.push(new n.BufferRule),this._rules.push(new n.ResolutionRule)}r.prototype.destroy=function(){this._rules=[]},r.prototype.getNextStreamIndex=function(t,e){if(!n.validateAbrInput(t))return-1;if(e)return(new n.StartupRule).getNextStreamIndex(t);var i=Number.MAX_VALUE;return this._rules.forEach(function(e){var n=e.getNextStreamIndex(t);n<0||(i=Math.min(i,n))}),i===Number.MAX_VALUE?-1:i}},HdM5:function(t,e,i){"use strict";var n=i("fcYp"),r=i("vtmz"),o=i("h2IM");t.exports.create=function(t,e,i){if(!t||!e||"function"!=typeof t.create)return null;var s;switch(e){case"mp4":s=o;break;case"aac":s=r;break;default:case"ts":s=n}return t.create(s,i)}},Hyvp:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("vdbb");e.create=function(t,e,i){var r=n[t+"Command"];return r?new r(e,i):null}},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var r=(s=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[i].concat(o).concat([r]).join("\n")}var s;return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),e.push(s))}},e}},IFfy:function(t,e){t.exports=Number.isNaN||function(t){return t!=t}},IWBN:function(t,e,i){"use strict";function n(){try{this._window=this.getWindow()}catch(t){this._window=null}this._isSupported=!1,this._window&&this._window.performance&&"function"==typeof this._window.performance.clearResourceTimings&&"function"==typeof this._window.performance.getEntriesByName&&(this._isSupported=!0,this._window.performance.onresourcetimingbufferfull=this._clearResourceTiming.bind(this))}t.exports=n,e.entryTypes=["mark","measure","navigation","frame","resource","server"],n.prototype.getWindow=function(){return window},n.prototype._clearResourceTiming=function(){this._isSupported&&this._window.performance.clearResourceTimings()},n.prototype.getPerformanceTiming=function(t,i,n){var r,o={};if(!t||!i&&!n)return null;if(n&&e.entryTypes.indexOf(n)<0)return null;if(!this._isSupported)return null;if(!(r=i?this._window.performance.getEntriesByName(i,n||void 0):this._window.performance.getEntriesByType(n))||!r.length)return null;var s=r[r.length-1];return t.forEach(function(t){o[t]=s[t]}),o},n.prototype.destroy=function(){this._isSupported&&this._window&&(this._window.performance.onresourcetimingbufferfull=null),this._window=null,this._isSupported=!1}},IdCN:function(t,e,i){"use strict";var n=Function.prototype.toString,r=/^\s*class\b/,o=function(t){try{var e=n.call(t);return r.test(e)}catch(t){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(a)return function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}}(t);if(o(t))return!1;var e=s.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},IlcD:function(t,e,i){"use strict";var n=i("sLCx"),r={wifi:!0,broadband:!0,dsl:!0,cable:!0};function o(){if("undefined"!=typeof navigator)return(navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)||{}).type}function s(){if(!n.mobile)return!0;var t=n.android&&n.chrome>=50,e=n.ios&&!n.iosWebView&&n.safari>=10;return t||e}t.exports={getConnectionType:o,isAutoplaySupported:s,isAutoplayAllowed:function(t){return!n.mobile||!(!(t=(o()||t||"").replace(/^cs_/i,"").toLowerCase())||!r[t])&&s()}}},JQCY:function(t,e,i){"use strict";t.exports=u;var n=i("Tavk"),r=i("frbn"),o=i("3kti"),s=n.AACStream,a=n.AVCStream;function u(t,e,i){this.streamType=t,this.streamId=e,this._packetList=[],this._endOfSegment=!1,this._demuxConfig=i,this._timedMetadata=null,this._id3=new o,"audio"===t?this._stream=new s(this._demuxConfig):"video"===t&&(this._stream=new a(this._demuxConfig))}function l(t){this._data=new r(Uint8Array,t),this.complete=!1}u.prototype.destroy=function(){this._packetList=[],this._stream&&(this._stream.destroy(),this._stream=null)},u.prototype.isReady=function(){var t=!!this._stream&&this._stream.ready;return this._endOfSegment||t},u.prototype.addPacket=function(t){this._packetList.length&&this._parsePacket(),this._packetList.push(new l(t))},u.prototype.append=function(t){var e=this._packetList.length;t&&e&&this._packetList[e-1].append(t)},u.prototype.endOfSegment=function(){this._endOfSegment=!0,this._parsePacket()},u.prototype.getFrames=function(t){return this._stream?this._stream.getFrames(t):null},u.prototype.getTimedMetadata=function(){return this._timedMetadata?this._timedMetadata:null},u.prototype.getConfig=function(){return this._stream?this._stream.getConfig():null},u.prototype._parsePacket=function(){var t=this._packetList.length;if(t){var e=this._packetList[t-1];e.complete=!0,0===e.parse()&&("id3"===this.streamType?this._timedMetadata={payload:this._id3.getID3Payload(e.packetInfo.streamData),pts:this._packetList.length&&this._packetList[0].packetInfo.pts}:this._stream&&this._stream.readFrames(e),this._packetList.pop())}},l.prototype.append=function(t){this._data&&this._data.set(t)},l.prototype.parse=function(){if(this.packetInfo={},!this.complete||!this._data||!this._data.length)return this.packetInfo.result=-1,-1;if(this._data.length<6)return this.packetInfo.result=-2,-2;var t=0;if(1!==(this._data.get(t++)<<16)+(this._data.get(t++)<<8)+this._data.get(t++))return this.packetInfo.result=-3,-3;this.packetInfo.streamId=this._data.get(t++),t+=2,t++;var e=(192&this._data.get(t++))>>6,i=this._data.get(t++);return 2!==e&&3!==e||(this.packetInfo.pts=this._parseTimestamp(this._data.subArray(t,t+5)),this.packetInfo.dts=this.packetInfo.pts,t+=5,i-=5,3===e&&(this.packetInfo.dts=this._parseTimestamp(this._data.subArray(t,t+5)),t+=5,i-=5)),t+=i,this.packetInfo.streamData=this._data.subArray(t),this.packetInfo.result=0,0},l.prototype._parseTimestamp=function(t){if(!t||!t.length)return 0;var e=0,i=(14&t[e++])>>>1,n=(t[e++]<<8)+(254&t[e++])>>>1,r=(4&i)>>2,o=2*((i&=3)<<29)+(n<<=15)+((t[e++]<<8)+t[e++]>>>1);return r?-1*Math.pow(2,32)+o:o}},JcQw:function(t,e,i){"use strict";e.E_INFO="100",e.E_WARNING="200",e.E_YVAP="300",e.E_PLAYER="400",e.E_PLAYER_FAILOVER="407",e.E_PLAYER_DRM="410",e.E_PLAYER_JS_HLS="430",e.E_SAPI_ABSTRACT="500",e.E_SAPI_STREAM="501",e.E_SAPI_PLAYLIST="502",e.E_SAPI_RELATED="503",e.E_SAPI_POPULAR="504",e.E_SAPI_CLOSEDCAPTION="505",e.E_CAST="800",e.INFO_CODES={E_SAPI_LICENSE_ERROR:"200",E_SAPI_UNAVAILABLE_TEMP:"201",E_SAPI_GEO:"202",E_SAPI_DEVICE:"203",E_SAPI_EMBED:"204",E_SAPI_BLACKOUT:"208",E_SAPI_AUTH_FAILED:"210",E_SAPI_INVALID_AUTH_KEY_VERSION:"211",E_SAPI_GEO_POSITION_REQUIRED:"212",E_SAPI_RESTRICTED_NETWORK_TYPE:"214",E_SAPI_UNSUPPORTED_LIVE_ON_HTML:"305",E_PLAYER_ANDROID_CHROME_REQUIRED:"500",E_FLASH_RENDERER_NOT_SUPPORTED:"605",E_PLAYER_FLASH_IS_BLOCKED_SAFARI_STYLE_NONE:"610",E_PLAYER_FLASH_IS_BLOCKED_GENERAL_STYLE_NONE:"611",E_PLAYER_FLASH_IS_BLOCKED_REPLACED_BY_BGINACTIVE:"612",E_PLAYER_FLASH_IS_BLOCKED_POWER_SAVING:"613",E_PLAYER_FLASH_IS_BLOCKED_BLOCKERS_SCREEN:"614",E_PLAYER_NO_COMPATIBLE_FORMAT:"700",E_PLAYER_360_IS_NOT_SUPPORTED:"701"},e.WARNING_CODES={E_PLAYBACK_TIMEOUT:"1",E_RECOVER_LONG_PAUSE:"50",E_LIVE_PLAYBACK_COMPLETE:"800",E_FLASH_CRASHED:"801",E_SWF_TIMEOUT:"802",E_SSL_MISMATCH:"803",E_CSS_DOWNLOAD_FAILED:"804",E_PLAYBACK_FROZEN_DETECTED:"900",E_ER_TRY:"901",E_RECOVERY_STATUS:"902"},e.PLAYER_CODES={E_PLAYER_PLAYBACK_ERROR:"100",E_PLAYER_NOT_ENABLED:"200",E_PLAYER_NOT_UPTO_DATE:"201",E_PLAYER_PTS_DISCONTINUITY:"250",E_PLAYER_RELOAD_FRAGMENT:"251",E_FLASH_LIVE_NOT_SUPPORTED:"252",E_PLAYER_HTML5_PLAYBACK_ERROR:"303",E_PLAYER_HTML5_PLAYBACK_ERROR_ABORTED:"304",E_PLAYER_HTML5_PLAYBACK_ERROR_NETWORK:"305",E_PLAYER_HTML5_PLAYBACK_ERROR_DECODE:"306",E_PLAYER_HTML5_PLAYBACK_ERROR_SRC_NOT_SUPPORTED:"307",E_PLAYER_HTML5_PLAYBACK_ERROR_ENCRYPTED:"308",E_PLAYER_HTML5_PLAYBACK_ERROR_PLAY_INITIATED_BEFORE_METADATA_READY:"309",E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED:"310",E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND:"311",E_PLAYER_CMS_JSONP_REQUEST_FAILURE:"101",E_PLAYER_CMS_JSONP_REQUEST_FAILURE_SILENT_FAIL:"102",E_PLAYER_CMS_RESPONSE:"405",E_PLAYER_CMS_JSONP_REQUEST_TIMEOUT:"408",E_PLAYER_CMS_JSONP_REQUEST_TIMEOUT_SILENT_FAIL:"409",E_PLAYER_CMS_XHR_REQUEST_SERVER_CONNECTION_FAILED:"700",E_PLAYER_CMS_XHR_REQUEST_SERVER_CONNECTION_FAILED_TIMEOUT:"701",E_PLAYER_CMS_XHR_REQUEST_RESPONSE_NOT_RECEIVED:"710",E_PLAYER_CMS_XHR_REQUEST_RESPONSE_NOT_RECEIVED_TIMEOUT:"711",E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED:"720",E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED_TIMEOUT:"721",E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED_408:"722",E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE:"730",E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE_TIMEOUT:"731",E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE_408:"732",E_PLAYER_CMS_XHR_REQUEST_ERROR:"740",E_PLAYER_CMS_XHR_REQUEST_TIMEOUT:"750",E_PLAYER_CMS_XHR_REQUEST_CORS_ERROR:"760",E_INTERNAL_VIOLATION:"600",E_INVALID_CONFIGURATION:"601",E_RECOVERY_FAILURE:"602",E_NO_PLUGIN_FOUND:"603",E_NO_RENDERER_FOUND:"604",E_FLASH_RENDERER_NOT_SUPPORTED:"605"},e.PLAYER_DRM_CODES={ERR_DRM_UNSUPPORTED_OS:"1",ERR_DRM_UNSUPPORTED_BROWSER:"2",ERR_DRM_EME_MISSING:"3",ERR_DRM_INIT:"4",ERR_DRM_CONFIG:"5",ERR_DRM_CERTPATH_MISSING:"6",ERR_DRM_CERT_LOAD_FAILED:"7",ERR_DRM_CERT_NO_DATA:"8",ERR_DRM_NO_KEY_SYSTEM:"9",ERR_DRM_KEY_CREATION_FAILED:"10",ERR_DRM_KEY_SESSION_FAILED:"11",ERR_DRM_KEY_ERROR:"12",ERR_DRM_LICENSE_REQUEST:"13",ERR_DRM_FORBIDDEN_LICENSE:"14"},e.PLAYER_JS_HLS_CODES={MEDIA_ERR_ABORTED:"1",MEDIA_ERR_NETWORK:"2",MEDIA_ERR_DECODE:"3",MEDIA_ERR_SRC_NOT_SUPPORTED:"4",ERR_XHR_LOAD:"11",ERR_PLAYLIST_LOAD:"12",ERR_SUBS_LOAD:"13",ERR_SEGMENT_LOAD:"14",ERR_PARTIAL_LOAD:"15",ERR_MASTER_PLAYLIST_PARSE:"16",ERR_MEDIA_PLAYLIST_PARSE:"17",ERR_SEGMENT_PARSE:"18",ERR_API_NO_NODE:"19",ERR_MIMETYPE_NOT_SUPPORTED:"20"},e.SAPI_CODES={E_SAPI_INCOMPATIBLE_FORMAT:"100",E_SAPI_NO_STREAMS_RETURNED:"103",E_SAPI_USER_NOT_AUTHORIZED:"205",E_SAPI_RESTRICTED_TO_INTERNAL:"206",E_SAPI_DRM_RESTRICTED:"207",E_SAPI_UNSUPPORTED_FORMAT:"300",E_SAPI_EXTERNAL_NO_STREAMS:"301",E_SAPI_NO_PLAYABLE_STREAMS:"302",E_SAPI_NOT_FOUND:"400",E_SAPI_TEMP_ERR_JAPI_TIMEOUT:"500",E_SAPI_TEMP_ERR_JAPI_UNKNOWN:"502",E_SAPI_TEMP_ERR_JAPI_CARMOT:"503",E_SAPI_TEMP_ERR_JAPI_UNMAPPED:"550",E_SAPI_EMPTY_ATLAS_ACCOUNT_NAME:"401",E_SAPI_EMPTY_SECURE_KEY:"402",E_SAPI_EMPTY_LIST:"403",E_SAPI_INVALID_DATA:"404",E_SAPI_INVALID_VIDEO:"405",E_SAPI_EMPTY_STREAM_URL:"406",E_SAPI_MISSING_PROVIDER:"501",E_SAPI_SYSTEM_ERROR:"504"},e.CAST_CODES={E_CAST_CONNECTION_REQUEST_FAILED:"1"}},JcWZ:function(t,e,i){t.exports=i("LmRr")},JheV:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.playbackSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/playbackSchema",type:"object",properties:{skipWatchedVideos:{type:"boolean"},bitrate:{default:0,type:"number"},targetBitrate:{type:"number"},disableGPU:{type:"boolean"},quality:{type:"string"},bitrates:{type:"array",items:[{type:"number"}]},desiredBitrate:{default:900,type:"number"},startTime:{type:"number"},conviva:{type:"boolean"},preconnect:{type:"boolean"},abr:{type:"boolean"},protocol:{type:"string"},skipFormats:{type:"array",items:[{type:"string"}]},playInlineVideo:{type:"boolean"},isResume:{type:"boolean"},ignoreEndlist:{type:"boolean"}}}},JqHr:function(t,e,i){"use strict";var n=this&&this.__assign||Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};Object.defineProperty(e,"__esModule",{value:!0});var r=i("t8Yn"),o=i("AuZZ"),s=i("he5r"),a=i("d/ck"),u=i("c+yx"),l=i("Y4D7"),c={},d=function(){function t(t,e){this._guid="",this._config=t,this._mediaStore=e,this._setPageLatency(),this.offNetwork=u.default.isOffNetwork(),this._initWatchHistory(t.watchHistory)}return t.prototype.getEventsDto=function(){var t=this._config.rapidConfig||{},e=t.pageParams||{},i=t.clickParams||{},r={pageSpaceId:this._config.pageSpaceId||t&&t.Spaceid||"1111",experienceName:this._config.expName||"",experienceBucket:this._config.expBucket||"",experienceType:this._config.expType||"",cpos:this._config.cpos||"",ccode:this._config.ccode||"",offNetwork:this.offNetwork,site:this._config.site||"",siteAnalytics:this._config.siteAnalytics||"",comscoreC4:this._config.comscoreC4||o.NULL_DEFAULT,region:this._config.region||"",referrer:this._config.referrer||"",lang:this._config.lang||"",pageLatency:this._pageLatency||""},s="strm"===e.sec?i.pstaid:e.pstaid,a={pt:e.pt||"",pd:e.pd||"",pct:e.pct||"",pstcat:e.pstcat||"",p_sec:e.p_sec||"",p_subsec:e.p_subsec||"",ver:e.ver||"",_rid:e._rid||"",pstaid_p:s||"",pkgt:i.pkgt||"",sec:i.sec||this._config.sec||"",subsec:i.subsec||""};return n({},r,a)},t.prototype.destroy=function(){},Object.defineProperty(t.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"videoRecommendations",{get:function(){return void 0===this._config.videoRecommendations||this._config.videoRecommendations},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"site",{get:function(){return this._config.site||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this._config.region||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lang",{get:function(){return this._config.lang||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"experienceBucket",{get:function(){return this._config.expBucket||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"experienceName",{get:function(){return this._config.expName||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yvapAccountId",{get:function(){return this._config.YVAP&&this._config.YVAP.accountId||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"syndication",{get:function(){return this._config.synd||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cTopic",{get:function(){return this._config.cTopic||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pspid",{get:function(){return this._config.CMS&&this._config.CMS.suppressAdContext?"":this._config.pageSpaceId||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playlistId",{get:function(){return this._config.playlist&&this._config.playlist.id||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loop",{get:function(){return this._config.loop||!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"continuousPlay",{get:function(){return this._config.continuousPlay||!1},set:function(t){this._config.continuousPlay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relatedVideoId",{get:function(){var t=this._config.mediaItems;return t&&0!==t.length&&t[0].mimetype===r.MediaItemInterfaces.MediaItemMimeType.SAPI?t[0].id:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playlistMimetype",{get:function(){return this._config.ui&&this._config.ui.playlist&&this._config.ui.playlist.mimetype||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowGeoRequest",{get:function(){return this._config.allowGeoRequest||!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"geoData",{get:function(){return this._config.geoData||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"guid",{get:function(){return this._guid},set:function(t){this._guid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEndScreen",{get:function(){return this._config.ui&&this._config.ui.endScreen&&this._config.ui.endScreen.show||!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipOnError",{get:function(){return this._config.skipOnError||s.SkipOnError.NEVER},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aspectRatio",{get:function(){return a.isNumber(this._config.aspectRatio)?this._config.aspectRatio:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"watchHistoryConfig",{get:function(){return this._config.watchHistory},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"watchHistory",{get:function(){return this._watchHistory||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pblob",{get:function(){return this._config.pblob||null},enumerable:!0,configurable:!0}),t.prototype.updateGeoConfig=function(t){a.isBoolean(t.allowGeoRequest)&&(this._config.allowGeoRequest=t.allowGeoRequest);var e=t.geoData;e&&a.isString(e.latitude)&&a.isString(e.longitude)&&a.isString(e.accuracy)?this._config.geoData=e:null===e&&(this._config.geoData=null)},t.prototype.setMediaItemWatched=function(t,e){c[t]={watched:e}},t.prototype.isMediaItemWatched=function(t){return!!c[t]&&!!c[t].watched},t.prototype._setPageLatency=function(){window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&(this._pageLatency=(new Date).getTime()-window.performance.timing.navigationStart)},t.prototype._initWatchHistory=function(t){this._watchHistory=null,t&&t.enabled&&(this._watchHistory=new l.default({watchHistoryEnabled:t.enabled,watchedPeriod:t.watchedPeriod,watchHistoryExpiry:t.expiry},this),this._watchHistory.clearExpired())},t}();e.default=d},"K+58":function(t,e,i){"use strict";function n(){}t.exports=n,n.prototype.destroy=function(){},n.prototype.parse=function(t,e){for(var i=[],n=0;255===t[e];)n+=255,e++;if(n+=t[e],!(++e>=t.length)){for(var r=0;255===t[e];)r+=255,e++;if(r+=t[e],e++,4===n){var o=t[e],s=t[e+1]<<8|t[e+2],a=t[e+3]<<24|t[e+4]<<16|t[e+5]<<8|t[e+6],u=t[e+7];if(181===o&&49===s&&1195456820===a&&3===u){var l=31&t[e+8];e+=9;var c,d,h=0;for(e++;h<l;){if(c=(4&t[e])>>2,d=3&t[e],c&&(0===d||1===d)){var p={fieldType:d,data1:t[e+1],data2:t[e+2]};i.push(p)}e+=3,h++}}}return e+=r,i}}},KCCg:function(t,e){var i,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!c){var t=a(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++d<e;)u&&u[d].run();d=-1,e=l.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function _(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new f(t,e)),1!==l.length||c||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=_,r.addListener=_,r.once=_,r.off=_,r.removeListener=_,r.removeAllListeners=_,r.emit=_,r.prependListener=_,r.prependOnceListener=_,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},KUzV:function(t,e,i){"use strict";var n=i("skmB"),r=i("aZDc"),o=i("H0QZ"),s=i("DTfC").scan,a=o.ValidatorResult,u=o.SchemaError,l=o.SchemaContext,c=function t(){this.customFormats=Object.create(t.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(h),this.attributes=Object.create(r.validators)};function d(t){var e="string"==typeof t?t:t.$ref;return"string"==typeof e&&e}c.prototype.customFormats={},c.prototype.schemas=null,c.prototype.types=null,c.prototype.attributes=null,c.prototype.unresolvedRefs=null,c.prototype.addSchema=function(t,e){var i=this;if(!t)return null;var n=s(e||"/",t),r=e||t.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(t){return void 0===i.schemas[t]}),this.schemas[r]},c.prototype.addSubSchemaArray=function(t,e){if(e instanceof Array)for(var i=0;i<e.length;i++)this.addSubSchema(t,e[i])},c.prototype.addSubSchemaObject=function(t,e){if(e&&"object"==typeof e)for(var i in e)this.addSubSchema(t,e[i])},c.prototype.setSchemas=function(t){this.schemas=t},c.prototype.getSchema=function(t){return this.schemas[t]},c.prototype.validate=function(t,e,i,r){i||(i={});var o=i.propertyName||"instance",a=n.resolve(i.base||"/",e.id||"");if(!r){(r=new l(e,i,o,a,Object.create(this.schemas))).schemas[a]||(r.schemas[a]=e);var c=s(a,e);for(var d in c.id){var h=c.id[d];r.schemas[d]=h}}if(e){var p=this.validateSchema(t,e,i,r);if(!p)throw new Error("Result undefined");return p}throw new u("no schema specified",e)},c.prototype.validateSchema=function(t,e,i,n){var s,c=new a(t,e,i,n);if("boolean"==typeof e)!0===e?e={}:!1===e&&(e={type:[]});else if(!e)throw new Error("schema is undefined");if(e.extends)if(e.extends instanceof Array){var h={schema:e,ctx:n};e.extends.forEach(this.schemaTraverser.bind(this,h)),e=h.schema,h.schema=null,h.ctx=null,h=null}else e=o.deepMerge(e,this.superResolve(e.extends,n));if(s=d(e)){var p=this.resolve(e,s,n),f=new l(p.subschema,i,n.propertyPath,p.switchSchema,n.schemas);return this.validateSchema(t,p.subschema,i,f)}var _=i&&i.skipAttributes||[];for(var m in e)if(!r.ignoreProperties[m]&&_.indexOf(m)<0){var y=null,v=this.attributes[m];if(v)y=v.call(this,t,e,i,n);else if(!1===i.allowUnknownAttributes)throw new u("Unsupported attribute: "+m,e);y&&c.importErrors(y)}if("function"==typeof i.rewrite){var g=i.rewrite.call(this,t,e,i,n);c.instance=g}return c},c.prototype.schemaTraverser=function(t,e){t.schema=o.deepMerge(t.schema,this.superResolve(e,t.ctx))},c.prototype.superResolve=function(t,e){var i;return(i=d(t))?this.resolve(t,i,e).subschema:t},c.prototype.resolve=function(t,e,i){if(e=i.resolve(e),i.schemas[e])return{subschema:i.schemas[e],switchSchema:e};var r=n.parse(e),s=r&&r.hash,a=s&&s.length&&e.substr(0,e.length-s.length);if(!a||!i.schemas[a])throw new u("no such schema <"+e+">",t);var l=o.objectGetPath(i.schemas[a],s.substr(1));if(void 0===l)throw new u("no such schema "+s+" located in <"+a+">",t);return{subschema:l,switchSchema:e}},c.prototype.testType=function(t,e,i,n,r){if("function"==typeof this.types[r])return this.types[r].call(this,t);if(r&&"object"==typeof r){var o=this.validateSchema(t,r,i,n);return void 0===o||!(o&&o.errors.length)}return!0};var h=c.prototype.types={};h.string=function(t){return"string"==typeof t},h.number=function(t){return"number"==typeof t&&isFinite(t)},h.integer=function(t){return"number"==typeof t&&t%1==0},h.boolean=function(t){return"boolean"==typeof t},h.array=function(t){return Array.isArray(t)},h.null=function(t){return null===t},h.date=function(t){return t instanceof Date},h.any=function(t){return!0},h.object=function(t){return t&&"object"==typeof t&&!(t instanceof Array)&&!(t instanceof Date)},t.exports=c},KZhz:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("8PPl");!function(t){t.PAGE_VISIBILITY_CHANGED="page-visibility-changed"}(o=e.VisibilityEvent||(e.VisibilityEvent={}));var u=[{prop:"hidden",name:"visibilitychange"},{prop:"mozHidden",name:"mozvisibilitychange"},{prop:"webkitHidden",name:"webkitvisibilitychange"},{prop:"msHidden",name:"msvisibilitychange"}],l=function(t){function e(e){var i=t.call(this,"VisibilityManager")||this;return i._model=e,i._visibilityEventName=null,i._hidden="hidden",i._playerMainElement=null,i._visibilityEventName=i._getDocumentVisibilityEventName(),i}return r(e,t),e.prototype.destroy=function(){this._visibilityEventName&&(document.removeEventListener(this._visibilityEventName,this._onBrowserTabChange,!1),this._visibilityEventName=null)},e.prototype.activate=function(){this._visibilityEventName&&(this._onBrowserTabChange=this._onBrowserTabChange.bind(this),document.addEventListener(this._visibilityEventName,this._onBrowserTabChange,!1))},e.prototype._getDocumentVisibilityEventName=function(){var t=u.filter(function(t){return t.prop in document}),e=t&&t[0];return e?(this._hidden=e.prop,e.name):null},e.prototype._getVideoHiddenState=function(){if(!this._playerMainElement){var t=this._model.playerRootElement&&void 0!==this._model.playerRootElement.getElementsByClassName&&this._model.playerRootElement.getElementsByClassName(a.VIDEO_MAIN_ELEMENT_CLASS);this._playerMainElement=t&&t.length&&t[0]||null}return document[this._hidden]||this._playerMainElement&&null===this._playerMainElement.offsetParent||!1},e.prototype._onBrowserTabChange=function(){this.publish(o.PAGE_VISIBILITY_CHANGED,!this._getVideoHiddenState())},e}(s.default);e.default=l},Krh1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.AD_PLAYBACK_START="adStart",t.AD_PLAYBACK_PAUSE="adPause",t.AD_PLAYBACK_RESUME="adResume",t.AD_PLAYBACK_PROGRESS="adProgress",t.AD_PLAYBACK_STOP="adComplete",t.AD_NONE="adNone",t.AD_ERROR="adError",t.PLAYBACK_STARTED="playback-started",t.PLAYBACK_ENDED="playback-ended"}(e.API||(e.API={}))},KtsB:function(t,e,i){"use strict";function n(t){t&&(this.type=t.type,this.id=t.id,this.moduleName=t.moduleName,this.instanceId=t.instanceId,this.funcName=t.funcName,this.timestamp=t.timestamp||Date.now(),this.args=t.args||[],this.argNames=t.argNames||[],this.transferables=t.transferables)}t.exports=n,n.prototype.putParam=function(t,e){e&&(this.args.push(e),this.argNames.push(t||""))},n.prototype.getParam=function(t){if(!t)return null;var e=this.argNames.indexOf(t);return e>=0?this.args[e]:null},n.prototype.dto=function(){var t=this,e={};return Object.keys(t).forEach(function(i){"__controller"!==i&&(e[i]=t[i])}),e},n.prototype.addMedia=function(){var t;return this.__controller&&(t=this.__controller.model.getMediaDto(),this.putParam("media",t)),t}},KxEA:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+Ojf"),r=i("vdbb"),o=i("Hyvp"),s=function(){function t(t){for(var e in this._pluginManager=t,this._commandMap={},this._eventKeys={},r.CmdName)if(r.CmdName.hasOwnProperty(e)){var i=r.CmdName[e];this._commandMap[i]={}}}return t.prototype.destroy=function(){this.removeAllCommands(),this._commandMap={}},t.prototype.executeCommand=function(t,e,i){var n=this.createCommand(t,e,i);return n&&n.execute(),n},t.prototype.createCommand=function(t,e,i){var s;try{(s=o.create(t,e,i))&&(s.pluginManager=this._pluginManager)}catch(t){s=null}if(!s)return null;for(var a in s.key=n.default.guid(),r.CmdEvent)if(r.CmdEvent.hasOwnProperty(a)){var u=r.CmdEvent[a],l="on"+t+u;i[l]&&(this._eventKeys[u+t+s.key]=s.addEventListener(u,i[l],i))}return this._commandMap[t][s.key]=s,s},t.prototype.removeCommand=function(t){if(t){var e=this._commandMap[t.cmdName];if(e[t.key]===t){if(delete e[t.key],t.client)for(var i in r.CmdEvent)if(r.CmdEvent.hasOwnProperty(i)){var n=r.CmdEvent[i],o="on"+t.cmdName+n;t.client[o]&&(t.removeEventListener(n,this._eventKeys[n+t.cmdName+t.key]),delete this._eventKeys[n+t.cmdName+t.key])}t.destroy()}}},t.prototype.removeRelatedCommands=function(t){if(this._commandMap.hasOwnProperty(t)){var e=this._commandMap[t];for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];n&&this.removeCommand(n)}}},t.prototype.removeAllCommands=function(){for(var t in this._commandMap)this._commandMap.hasOwnProperty(t)&&this.removeRelatedCommands(t)},t.prototype.getCommand=function(t){var e=this._commandMap[t];if(!e)return null;var i=Object.keys(e);return i.length<1?null:e[i[i.length-1]]},t}();e.default=s},LFVj:function(t,e,i){"use strict";function n(){this.reset(),this.switchCount=0}t.exports=n,n.prototype.destroy=function(){this._list=[]},n.prototype.reset=function(){this.scenario="",this.estimatedBandwidth=NaN,this.currentIndex=NaN,this.displayWidth=NaN,this.displayHeight=NaN,this.pixelRatio=1,this.bufferLength=0,this.nextIndex=NaN,this.reason="",this._list=[],this.time=NaN},n.prototype.push=function(t){t&&this._list.push(t)},n.prototype.getDto=function(){var t={};return t.sc=this.scenario.charAt(0),t.ci=this.currentIndex,t.dw=this.displayWidth,t.dh=this.displayHeight,t.pr=this.pixelRatio.toFixed(2),t.eb=this.estimatedBandwidth.toFixed(3),t.bl=this.bufferLength.toFixed(2),t.swc=this.switchCount,t.ted=this._list.slice(),t.ni=this.nextIndex,t.rs=this.reason,t.time=this.time,t}},LKsC:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("8PPl"),l=i("oIMU"),c=i("oIMU"),d=i("+Ojf"),h=i("szUk"),p=i("ECHB"),f=u.PLAYLIST_POS.BOTTOM,_=u.PLAYLIST_POS.RIGHT,m=u.PLAYLIST_POS.HIDDEN,y={hidden:200,bottom:540,right:627};!function(t){t.UI_INTERACT="playlist-ui-interact"}(o=e.PlaylistViewEvents||(e.PlaylistViewEvents={}));var v=function(t){function e(e,i){var n=t.call(this,"PlaylistController")||this;return n._view=e,n._pluginManager=i,n._rootElem=e.getRootElement(),n._mainElem=e.getMainElement(),n._contentElem=e.getContentNode(),n._model=e.getModel(),n._eventBus=e.getEventBus(),n._subKeys={},n._init(),n._bindEventListeners(),n._bindPlaylistWindowResize(),n}return r(e,t),e.prototype.destroy=function(){this._resizeHandler&&(window.removeEventListener("resize",this._resizeHandler),this._resizeHandler=null),this._upNextBtnTap&&(this._upNextBtnTap.destroy(),this._upNextBtnTap=null),this._resetContentDimensionsForPlaylist(),this._subKeys&&(this._eventBus.removeEventListeners(this._subKeys),this._subKeys={})},e.prototype.attachUpNextMouseEvents=function(){var t=this;this._upNextContainer&&this._upNextContainer.addEventListener("mouseover",function(){d.default.classList(t._bottomBar).contains("vp-bottom-upnext")||(d.default.classList(t._bottomBar).add("vp-bottom-upnext"),t._bottomBarContainer.style.top=t._getUpnextBottomContainerTop()+"px",t.publish(o.UI_INTERACT,{srcElement:"ctrl-next-hover"}),t.publish(o.UI_INTERACT,{srcElement:"ui_pl_nxt_hvr"}))}),this._upNextContainer&&this._upNextContainer.addEventListener("mouseout",function(){window.setTimeout(function(){parseInt(window.getComputedStyle(t._hiddenPlaylistNode).zIndex,10)<0&&(d.default.classList(t._bottomBar).remove("vp-bottom-upnext"),t._bottomBarContainer&&t._bottomBarContainer.removeAttribute("style"))},100)})},e.prototype.detachUpNextMouseEvents=function(){var t=this;this._upNextContainer&&this._upNextContainer.addEventListener("mouseover",function(){d.default.classList(t._bottomBar).remove("vp-bottom-upnext"),t._bottomBarContainer&&t._bottomBarContainer.removeAttribute("style")})},e.prototype.togglePlaylistUI=function(t){if(!this._view.getFullscreen()&&this._shouldShowPlaylist&&this._playlistUIPosition!==m){var e=".vp-playlist-mode-"+this._playlistUIPosition,i=this._contentElem&&this._contentElem.querySelector(e);switch(t?d.default.classList(i).add("vp-hide-playlist"):this._contentElem.clientWidth>y[this._playlistUIPosition]&&d.default.classList(i).remove("vp-hide-playlist"),this._playlistUIPosition){case _:!0===t?this._mainElem&&this._mainElem.removeAttribute("style"):this._onResizeHandler();break;case f:!0===t?this._contentElem&&(this._contentElem.style.height=this._playlistDimensions.rootElem.height+"px"):(this._contentElem&&(this._contentElem.style.height=this._playlistDimensions.contentElem.height+"px"),this._rootElem&&(this._rootElem.style.height=this._playlistDimensions.rootElem.height+"px"))}}},e.prototype.getPlaylistRootElement=function(){return this._playlistNode},e.prototype.getPlaylistUIPosition=function(){return this._playlistUIPosition},e.prototype.isPlaylistInStream=function(){return this._isPlaylistInStreamMode},e.prototype.isPlaylistShown=function(){return this._shouldShowPlaylist},e.prototype.onMediaItemLoaded=function(){this._shouldShowPlaylist&&(this._hasPlaylistRendered?this._playlist.syncView():this._render())},e.prototype.onMediaItemCurrent=function(t){this._shouldShowPlaylist&&(this._syncUpNextButton(),this._playlist&&this._playlist.onMediaItemCurrent())},e.prototype.onAdBreakStarted=function(){this._shouldShowPlaylist&&this._enableUpNextButton(!1)},e.prototype.onAdBreakEnded=function(){this._syncUpNextButton()},e.prototype._bindEventListeners=function(){this._shouldShowPlaylist&&(this._model.continuousPlay=!0,this._setContentDimensionsForPlaylist(),this._subKeys[l.FULLSCREEN_CHANGE]=this._eventBus.addEventListener(l.FULLSCREEN_CHANGE,this._onFullScreenChange,this),this._subKeys[c.VideoEvent.ENDED]=this._eventBus.addEventListener(c.VideoEvent.ENDED,this._onVideoEnded,this),this._subKeys[l.METADATA_AVAILABLE]=this._eventBus.addEventListener(l.METADATA_AVAILABLE,this._onMetadataAvailable,this)),this._upNextBtn&&(this._upNextBtnTap=new p.default(this._upNextBtn,this._onUpNextBtnTap.bind(this)))},e.prototype._onVideoEnded=function(){this._enableUpNextButton(!1)},e.prototype._onMetadataAvailable=function(){this._syncUpNextButton()},e.prototype._syncUpNextButton=function(){this._shouldShowPlaylist&&(this._model.playlist.isEndOfPlaylist()?this._enableUpNextButton(!1):this._enableUpNextButton(!0))},e.prototype._enableUpNextButton=function(t){if(this._shouldShowPlaylist&&this._upNEnabled!==t&&this._upNextContainer){var e=this._model.playlist,i=e?e.getCurrentItem():null;t&&i&&!i.isLive()?d.default.classList(this._upNextContainer).remove("disabled"):d.default.classList(this._upNextContainer).add("disabled"),this._upNEnabled=t}},e.prototype._onUpNextBtnTap=function(){if(a.userAgent.mobile&&this._upNextPlist)return this._upNextPlist.style.display="block",void(d.default.classList(this._upNextPlist).contains("open")?(d.default.classList(this._bottomBar).remove("vp-bottom-upnext"),d.default.classList(this._upNextPlist).remove("open"),this._bottomBarContainer&&this._bottomBarContainer.removeAttribute("style")):(d.default.classList(this._upNextPlist).add("open"),this._bottomBarContainer&&(this._bottomBarContainer.style.top=this._getUpnextBottomContainerTop()+"px"),d.default.classList(this._bottomBar).add("vp-bottom-upnext")));this._playlist.upNextBtnTapHandler()},e.prototype._initPlaylistView=function(){var t=this._view.controls;return!!t&&(this._bottomBar=t&&t.getBottomBar(),this._bottomBarContainer=this._bottomBar.querySelector(".vp-bottom-container"),this._upNextBtn=this._bottomBar.querySelector(".vp-upnext-btn"),this._upNextPlist=this._bottomBar.querySelector(".vp-upnext-playlist"),this._upNextContainer=this._bottomBar.querySelector(".vp-upnext-container"),!0)},e.prototype._init=function(){var t,e=this._model.playlistUIConfig;if(this._hasPlaylistRendered=!1,this._playlistUIPosition=null,this._isPlaylistInStreamMode=!1,this._shouldShowPlaylist=!1,e&&!0===e.show&&(this._playlistUIPosition=e.position,!0===e.inStream&&this._playlistUIPosition===_&&(this._isPlaylistInStreamMode=!0),!a.userAgent.mobile)){t=this._rootElem&&this._rootElem.clientWidth;var i=y[this._playlistUIPosition];t&&t>=i&&(this._shouldShowPlaylist=!0)}this._shouldShowPlaylist&&(this._initPlaylistView()||(this._shouldShowPlaylist=!1))},e.prototype._setContentDimensionsForPlaylist=function(){var t,e,i;if(this._shouldShowPlaylist&&this._playlistUIPosition!==m){switch(this._playlistDimensions={rootElem:{height:null,width:null},contentElem:{height:null,width:null},mainElem:{height:null,width:null}},this._playlistUIPosition){case f:e=(t=this._rootElem?this._rootElem.clientHeight:0)+83,this._rootElem&&(this._rootElem.style.height=e+"px"),this._contentElem&&(this._contentElem.style.height=t+"px"),this._contentElemPlaylistHeight=t+"px",this._playlistDimensions.rootElem.height=e,this._playlistDimensions.rootElem.width=this._rootElem?this._rootElem.clientWidth:0,this._playlistDimensions.contentElem.height=this._contentElem?this._contentElem.clientHeight:0;break;case _:i=(this._contentElem?this._contentElem.clientWidth:0)-(this._isPlaylistInStreamMode?276:318),this._mainElem&&(this._mainElem.style.width=i+"px"),this._playlistDimensions.rootElem.width=this._rootElem?this._rootElem.clientWidth:0,this._playlistDimensions.mainElem.width=i}this._eventBus.publish(l.PLAYER_DIMENSION_CHANGE,this._view.getPlayerDimensions())}},e.prototype._resetContentDimensionsForPlaylist=function(){var t;if(this._shouldShowPlaylist)switch(this._playlistUIPosition){case f:t=(this._rootElem?this._rootElem.clientHeight:0)-83,this._rootElem&&(this._rootElem.style.height=t+"px"),this._playlistDimensions.rootElem.height=t}},e.prototype._getUpnextBottomContainerTop=function(){return(this._contentElem?this._contentElem.clientHeight:0)-(this._bottomBarContainer?this._bottomBarContainer.clientHeight:0)},e.prototype._render=function(){if(!a.userAgent.mobile||this._playlistUIPosition===m){switch(this._playlist=new h.default(this._eventBus,this._view,this._model,this._pluginManager),this._playlistUIPosition){case m:this._playlistNode=this._playlist.create(m),this._hiddenPlaylistNode=this._playlistNode,this._upNextPlist&&this._upNextPlist.appendChild(this._hiddenPlaylistNode),d.default.classList(this._upNextContainer).remove("hide"),a.userAgent.mobile||this.attachUpNextMouseEvents();break;case f:this._hiddenPlaylistNode=this._playlist.create(m),this._playlistNode=this._playlist.create(f),this._upNextPlist&&this._upNextPlist.appendChild(this._hiddenPlaylistNode),this._contentElem&&this._contentElem.appendChild(this._playlistNode),d.default.classList(this._upNextContainer).remove("hide"),d.default.classList(this._upNextPlist).add("hide");break;case _:this._hiddenPlaylistNode=this._playlist.create(m),this._playlistNode=this._playlist.create(_),this._upNextPlist&&this._upNextPlist.appendChild(this._hiddenPlaylistNode),this._contentElem&&this._contentElem.appendChild(this._playlistNode),d.default.classList(this._upNextContainer).remove("hide"),d.default.classList(this._upNextPlist).add("hide")}this._playlist.setPlaylistViewSize(),this._hasPlaylistRendered=!0}},e.prototype._onFullScreenChange=function(){this._view.isDocked()||this._playlistUIPosition!==m&&(!0===this._view.getFullscreen()?this._playlistUIPosition===f?this._contentElem&&(this._contentElem.style.height="100%"):this._playlistUIPosition===_&&this._mainElem&&this._mainElem.style&&(this._mainElem&&(this._mainElem.style.width="100%"),this._mainElem&&(this._mainElem.style.zIndex="1")):this._playlistUIPosition===f?this._contentElem&&(this._contentElem.style.height=this._contentElemPlaylistHeight):this._playlistUIPosition===_&&(this._mainElem&&(this._mainElem.style.width=this._playlistDimensions.mainElem.width),this._mainElem&&(this._mainElem.style.zIndex="auto")))},e.prototype._onResizeHandler=function(){if(!this._view.getFullscreen())if(this._hasPlaylistRendered){var t=this._contentElem?this._contentElem.clientWidth:0,e=y[this._playlistUIPosition];switch(this._playlistUIPosition){case _:var i=t-(this._isPlaylistInStreamMode?276:318);t>=e?(this._mainElem.style.width=i+"px",this._playlistDimensions.mainElem.width=i,d.default.classList(this._playlistNode).remove("vp-hide-playlist")):(this._mainElem.style.width=t+"px",this._playlistDimensions.mainElem.width=t,d.default.classList(this._playlistNode).add("vp-hide-playlist"));break;case f:this._playlist&&this._playlist.syncPgBtns(),t>=e?d.default.classList(this._playlistNode).remove("vp-hide-playlist"):d.default.classList(this._playlistNode).add("vp-hide-playlist")}var n=this._view.getPlayerDimensions();d.default.areDimensionsEqual(n,this._model.uiState)||this._eventBus.publish(l.PLAYER_DIMENSION_CHANGE,n)}else this._init(),this._bindEventListeners(),this._shouldShowPlaylist&&this._render()},e.prototype._bindPlaylistWindowResize=function(){this._resizeHandler=this._onResizeHandler.bind(this),window.addEventListener("resize",this._resizeHandler)},e}(s.default);e.PlaylistController=v},Ld5f:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PROVIDER_BRANDING_TEMPLATES={"video.nflhighlights.com":i("5Gwc")}},"Le/s":function(t,e,i){"use strict";t.exports=c;var n=i("/iNa"),r=i("yvII").Events,o=i("y5bh").HLSEvent,s=i("2fkz"),a=s.Command,u=s.CmdNames,l=s.CmdEvents;function c(t,e){if(!(t&&t.controller&&t.subtitleStream&&t.segment))throw new Error("Invalid Argument: data arg is incomplete");a.call(this,t,e),this.name=u.CMD_SUBTITLE_SEGMENT_LOAD,this._stream=t.subtitleStream,this.__controller=t.controller,this._segment=t.segment||null,this._eventKeys={},this._setupLoader()}n.inherits(c,a),c.prototype.destroy=function(){this._loader.destroy(),this.__controller.removeEventListeners(this._eventKeys),a.prototype.destroy.call(this)},c.prototype.execute=function(){this._segment&&this._loader&&this._loader.load(this._segment.url)},c.prototype.cancel=function(){},c.prototype._setupLoader=function(){var t=this;t._loader=t.__controller.services.getNewLoader();t._loader.addEventListener(r.COMPLETE,function(e){t._onLoadComplete(e)},t),t._loader.addEventListener(r.ERROR,function(e){t.publish(l.CMD_ERROR,t,e)},t)},c.prototype._onLoadComplete=function(t){if(this._segment){this._segment.data=t.data;var e=this._segment.pcr();null!=e?this._parse():this.__controller.addEventListener(o.PCR_AVAILABLE,this._parse,this)}},c.prototype._parse=function(){this._segment.parseSegment(),this.publish(l.CMD_COMPLETE,this,{data:this._segment.toObject(),url:this._segment.url})}},LmRr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){void 0===t&&(t="anonymous"),this.name=t,this._events={},this._eventKeyCounter=0}return t.prototype.destroy=function(){this._events={}},t.prototype.addEventListener=function(t,e,i){return this._events?this._subscribe(t,e,i):""},t.prototype.addEventListeners=function(t,e,i){var n=this,r={};return this._events&&t.length?(t.forEach(function(t){var o=e.bind(i,t);r[t]=n._subscribe(t,o,i)}),r):r},t.prototype.on=function(t,e,i){return Array.isArray(t)?this.addEventListeners(t,e,i):this.addEventListener(t,e,i)},t.prototype.removeEventListener=function(t,e){this._events&&t in this._events&&this._events[t].hasOwnProperty(e)&&delete this._events[t][e]},t.prototype.removeEventListeners=function(t){if(this._events&&t)for(var e=0,i=Object.keys(t);e<i.length;e++){var n=i[e],r=t[n];n in this._events&&this._events[n].hasOwnProperty(r)&&(delete this._events[n][r],delete t[n])}},t.prototype.once=function(t,e,i){var n=this,r=this.addEventListener(t,function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];e.apply(i,Array.prototype.slice.call(o,0)),n.removeEventListener(t,r)},this);return r},t.prototype.publish=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(this._events&&t in this._events){var n=this._events[t];n&&this._invokeSubscriptions(n,t,!1,e);var r=this._events["*"];r&&this._invokeSubscriptions(r,t,!0,e)}},t.prototype._invokeSubscriptions=function(t,e,i,n){for(var r=0,o=Object.keys(t);r<o.length;r++){var s=t[o[r]];if(s)try{var a=s.listener;a&&(i?a.apply(s.subscriber,[e].concat(n)):a.apply(s.subscriber,n))}catch(t){}}},t.prototype._subscribe=function(t,e,i){this._events[t]||(this._events[t]={});var n=t+"_"+ ++this._eventKeyCounter;return this._events[t][n]={subscriber:i,listener:e},n},t}();e.default=n},LrgL:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,i){var n=t.call(this,"Command")||this;return n.cmdName="Command",n.data=e,n.client=i,n}return r(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.data=null},Object.defineProperty(e.prototype,"pluginManager",{set:function(t){this._pluginManager=t},enumerable:!0,configurable:!0}),e}(i("JcWZ").default);e.default=o},"Lux/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("mczr");e.AdPluginPlaybackCapability=n.ExternalPlayerCapability,e.AdPlayerEvent=n.ExternalPlayerEvent;var r,o,s,a,u=i("+Ojf").default.mergeStringEnums;!function(t){t.METRICS="ad-plugin--metrics",t.DIAGNOSTICS="ad-plugin--diagnostics"}(r=e.AdPluginMetricsEvent||(e.AdPluginMetricsEvent={})),function(t){t.AD_BREAKS_AVAILABLE="ad-plugin--breaks-available",t.AD_BREAK_RESOLVED="ad-plugin--break-resolved",t.AD_BREAK_RESOLVE_ERROR="ad-plugin--break-resolve-error",t.AD_SUBTITLES_FOUND="ad-plugin--subtitles-found"}(o=e.AdPluginMetadataEvent||(e.AdPluginMetadataEvent={})),function(t){t.CTA_TRIGGERED="ad-plugin-ui-cta-triggered",t.SKIP_AD="ad-plugin-ui-skip-ad",t.CLICKED="ad-plugin-ui-clicked"}(s=e.AdPluginUIEvent||(e.AdPluginUIEvent={})),function(t){t.NONLINEAR_AD_RENDERED="ad-plugin-nonlinear-ad-rendered",t.NONLINEAR_AD_CLEARED="ad-plugin-nonlinear-ad-cleared",t.NONLINEAR_AD_DISMISSED="ad-plugin-nonlinear-ad-dismissed",t.NONLINEAR_AD_CLICKED="ad-plugin-nonlinear-ad-clicked"}(a=e.AdPluginOverlayAdEvent||(e.AdPluginOverlayAdEvent={})),e.AdPluginEvent=u(o,u(r,u(a,u(s,n.ExternalPlayerEvent))))},Lxf3:function(t,e,i){"use strict";var n=Object.prototype.toString,r=i("Teho"),o=i("IdCN"),s=function(t){var e;if((e=arguments.length>1?arguments[1]:"[object Date]"===n.call(t)?String:Number)===String||e===Number){var i,s,a=e===String?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<a.length;++s)if(o(t[a[s]])&&(i=t[a[s]](),r(i)))return i;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")};t.exports=function(t){return r(t)?t:arguments.length>1?s(t,arguments[1]):s(t)}},M1T5:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){this.width=640,this.height=360,this.startScreenRendered=!1,this.isDocked=!1,this.isCSSLoaded=!1,this.deviceOrientation=null,this.isFullscreen=!1};e.default=n},M3h3:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("ToqN"),o=i("1get"),s=i("mczr"),a=document.createElement("video"),u=function(){var t=!1;try{a.canPlayType&&!(t=o.default.canPlayType('application/vnd.apple.mpegURL; codecs="avc1.42E01E, mp4a.40.2"',a))&&r.userAgent.tv&&(t=o.default.canPlayType("application/vnd.apple.mpegurl",a))}catch(e){t=!1}return r.userAgent.tv&&(window.noHLS&&(t=!1),window.hls&&(t=!0)),t}(),l=function(){var t=!1;try{t=o.default.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"',a)}catch(e){t=!1}return t}(),c=function(){var t=!1;try{t=o.default.canPlayType('video/webm; codecs="vp8, vorbis"',a)}catch(e){t=!1}return r.userAgent.tv&&(t=!1),t}(),d=!r.userAgent.safari,h=(n=[],r.userAgent.android&&n.push("mp4b"),(u||r.userAgent.android&&o.default.isAndroidVersionAbove4())&&n.push("m3u8"),(d||r.userAgent.android&&o.default.isAndroidVersionAbove4())&&n.push("mpd"),l&&n.push("mp4"),c&&n.push("webm"),n),p=function(){var t=h.slice(),e=t.indexOf("mp4b");return e>-1&&t.splice(e+1,0,"mp4"),t.push(""),t}(),f=function(){function t(){}return t.get=function(t){var e=null;switch(t){case s.RendererType.HTML5_HLS:case s.RendererType.HTML5_HLS_360:(e={acceptedProtocols:["http"],preferredFormats:[],acceptedFormats:[],is360Renderer:t===s.RendererType.HTML5_HLS_360,canDecryptAES:!0}).preferredFormats=["m3u8"],e.acceptedFormats=["m3u8","m3u8_playlist","m3u8:fmp4"];break;case s.RendererType.HTML5_RAW:case s.RendererType.HTML5_RAW_360:(e={acceptedProtocols:["http"],preferredFormats:h,acceptedFormats:p,is360Renderer:t===s.RendererType.HTML5_RAW_360,canDecryptAES:!0}).preferredFormats=e.preferredFormats.filter(function(t){return"mpd"!==t}),e.acceptedFormats=e.acceptedFormats.filter(function(t){return"mpd"!==t});break;case s.RendererType.HTML5_TV:case s.RendererType.HTML5_TV_TIZEN:case s.RendererType.HTML5_TV_ORSAY:e={acceptedProtocols:["http"],preferredFormats:["m3u8","mp4"],acceptedFormats:["m3u8","m3u8_playlist","mp4"],is360Renderer:!1,canDecryptAES:!0};break;case s.RendererType.EXTERNAL:e={acceptedProtocols:[],preferredFormats:[],acceptedFormats:[],is360Renderer:!1,canDecryptAES:!1}}return e},t}();e.default=f},M44j:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("Lux/"),u=i("PwYT"),l=i("u8By"),c=i("dgSz"),d=i("ma23"),h=i("+uLo"),p=i("fLR+"),f=i("oIMU");!function(t){t.AD_BREAK_NEED_RESOLVE="ad-break-need-resolve",t.AD_BREAK_ITEM_NEED_SOURCE="ad-break-item-need-source",t.AD_BREAK_ITEM_PLAY="ad-break-item-play",t.AD_BREAK_STARTED="ad-break-started",t.AD_BREAK_ENDED="ad-break-ended",t.AD_BREAK_ITEM_STARTED="ad-break-item-started",t.AD_BREAK_ITEM_ENDED="ad-break-item-ended",t.AD_BREAK_SKIP="ad-break-skip",t.AD_BREAK_FORCE_PLAY_MIDROLL="ad-break-force-play-midroll",t.AD_CLIENT_COMPLETED="ad-client-completed",t.AD_CLIENT_TIMEOUT="ad-client-timeout",t.CREATE_OVERLAY_CONTAINER="create-overlay-container",t.AD_METRICS="ad-metrics",t.AD_DIAGNOSTICS="ad-diagnostics"}(o=e.AdPlaybackControllerEvent||(e.AdPlaybackControllerEvent={}));var _=function(t){function e(e,i){var n=t.call(this,"AdPlaybackController")||this;n._model=e,n._pluginsManager=i,n._playingInstreamAdBreakItem=null,n._toResolveAdBreaks={},n._resolvedAdBreakItems={},n._playedAdBreakItemIds={},n._adPluginMap={},n._existingAdPluginsEventRemoval={};var r=n._model.config.ads.timeout,o=r.load+r.start;return n._adBreakFetchInProgress={},n._clientAdStartTimer=new h.default(1e3*o,1),n._timerEvtKey=n._clientAdStartTimer.addEventListener(h.default.TIMER_EVENT,n._onClientAdTimeout,n),n}return r(e,t),e.prototype.prepareAdsForItem=function(t){var e=t.refPlaybackId;if(t.adConfig&&t.adConfig.mimetype){var i=this._pluginsManager.getPlugin(d.PluginType.AD,t.adConfig.mimetype),n=this._setAdPlugin(e,i);i&&n&&p.isAdResolverAdPlugin(i)&&(this._adBreakFetchInProgress[e]={item:t,beginTS:Date.now()},this.publish(o.AD_METRICS,{evt:"ad_fetch"}),i.fetchAdBreaks({refId:e,config:t.adConfig.value}))}else this._setAdPlugin(e,null)},e.prototype.startTracking=function(t){var e=this,i=t.refPlaybackId;this._cleanUpAdClientTracking(),this._mediaItem=t,this._toResolveAdBreaks[i]={},this._resolvedAdBreakItems[i]={},this._playedAdBreakItemIds[i]=[],this._waitToResolveAdBreakIds={},this._instreamAdBreakItemsData=[],this._currentAdBreakItem=null,this._hasOngoingAttemptedAdPlayback=!1,this._playingInstreamAdBreakItem=null,this._clientAdTimeoutType=null,this._clientAdTimeoutItem=null,this._mediaItem.adBreaks&&(this._clientAdStartTimer.reset(),this._mediaItem.adBreaks.forEach(function(i){e._classifyAdBreak(t,i)}))},e.prototype.resolveAdBreaks=function(t,e){var i=this,n=t.refPlaybackId,r=this._toResolveAdBreaks[n][e],o=this._adPluginMap[n];p.isAdResolverAdPlugin(o)&&r&&0!==r.length&&r.forEach(function(t){i._waitToResolveAdBreakIds[t.adBreakId]||(i._waitToResolveAdBreakIds[t.adBreakId]=t.mediaItem,o.resolveAdBreak(t.rawItemData))})},e.prototype.getPlayingInstreamAd=function(){return this._playingInstreamAdBreakItem||null},e.prototype.updatePlaybackProgress=function(t){var e=t.currentTime;if(t.playingItem===this._mediaItem){var i=this._findInstreamAdBreakItemAtTime(e);if(i!==this._playingInstreamAdBreakItem){var n=this._playingInstreamAdBreakItem;this._playingInstreamAdBreakItem=i,this._handleInstreamAdBreakItemItemSwitch(n,i)}}},e.prototype.onMediaItemPlaybackEnded=function(t){},e.prototype.handleMediaItemSeeked=function(t,e,i){if(t===this._mediaItem&&(i=p.isNumber(i)?i:0,t instanceof c.default&&!t.isLive()&&t.adBreaks.length)){for(var n=void 0,r=0,s=t.adBreaks;r<s.length;r++){var a=s[r];a.startOffset<=e&&a.type===l.AdBreakType.MIDROLL&&(n=a)}if(n&&n.active){var u=n.startOffset;u>=i&&u<e&&this.publish(o.AD_BREAK_FORCE_PLAY_MIDROLL,n)}}},e.prototype.playClientAdBreaks=function(t,e){var i=this;if(this._mediaItem===t){this._model.playbackState.currentMediaType=e;var n=Object.keys(this._adBreakFetchInProgress).map(function(t){return i._adBreakFetchInProgress[t].item}).some(function(t){return t===i._mediaItem});if(this._startClientAdStartTimer(e,t),!n){var r=t.refPlaybackId,s=this._toResolveAdBreaks[r]&&this._toResolveAdBreaks[r][e]||[],a=this._resolvedAdBreakItems[r]&&this._resolvedAdBreakItems[r][e]||[];if(0===s.length&&0===a.length)return this._cleanUpAdClientTracking(),void this.publish(o.AD_CLIENT_COMPLETED,e,t);this.resolveAdBreaks(t,e),this._playNextClientAdBreakItem(t,e)}}},e.prototype.pauseClientAdStartTimer=function(){this._clientAdStartTimer&&this._clientAdStartTimer.stop()},e.prototype.resumeClientAdStartTimer=function(){this._clientAdStartTimer&&0!==this._clientAdStartTimer.startTime&&this._clientAdStartTimer.start()},e.prototype.handleAdBreakResolved=function(t,e){delete this._waitToResolveAdBreakIds[e.adBreakId],t===this._mediaItem&&(this._classifyAdBreak(t,e),this._hasOngoingAttemptedAdPlayback||this._playNextClientAdBreakItem(t,e.type))},e.prototype.handleAdBreakItemPlaybackStarted=function(t){t.instream||(this._stopClientAdStartTimer(),this.publish(o.AD_BREAK_ITEM_STARTED,t))},e.prototype.handleAdBreakItemEnded=function(t){this._onAdBreakItemEnded(t,!1,!1)},e.prototype.handleAdBreakItemError=function(t){this._onAdBreakItemEnded(t,!0,!1)},e.prototype.stopCurrentPlayback=function(t){this.publish(o.AD_BREAK_ENDED,t&&t.adBreak||null)},e.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this._clientAdStartTimer.removeEventListener(h.default.TIMER_EVENT,this._timerEvtKey),this._clientAdStartTimer.destroy(),Object.keys(this._existingAdPluginsEventRemoval).forEach(function(t){e._existingAdPluginsEventRemoval[t]()}),this._adBreakFetchInProgress=null},e.prototype._onAdBreakItemEnded=function(t,e,i){if(!t.instream){this.publish(o.AD_BREAK_ITEM_ENDED,t),this._currentAdBreakItem=null;var n=t.adBreak,r=n.mediaItem;this._model.loop&&n.type===l.AdBreakType.NATIVE||(i||t===n.adBreakItems[n.adBreakItems.length-1])&&this.publish(o.AD_BREAK_ENDED,n),i||this._playNextClientAdBreakItem(r,n.type)}},e.prototype._findInstreamAdBreakItemAtTime=function(t){for(var e=0,i=this._instreamAdBreakItemsData.length-1;e<=i;){var n=e+Math.floor((i-e)/2),r=this._instreamAdBreakItemsData[n];if(t>=r.startOffset&&t<r.endOffset)return r.adBreakItem;t>r.endOffset?e=n+1:i=n-1}return null},e.prototype._handleInstreamAdBreakItemItemSwitch=function(t,e){if(e&&!t){if(e===e.adBreak.adBreakItems[0]){if(!e.adBreak.active)return this._playingInstreamAdBreakItem=null,void this.publish(o.AD_BREAK_SKIP,e.adBreak,!0);this.publish(o.AD_BREAK_STARTED,e.adBreak)}this.publish(o.AD_BREAK_ITEM_STARTED,e)}!e&&t&&(this.publish(o.AD_BREAK_ITEM_ENDED,t),t===t.adBreak.adBreakItems[t.adBreak.adBreakItems.length-1]&&this.publish(o.AD_BREAK_ENDED,t.adBreak)),e&&t&&(this.publish(o.AD_BREAK_ITEM_ENDED,t),this.publish(o.AD_BREAK_ITEM_STARTED,e))},e.prototype._classifyAdBreak=function(t,e){var i=this,n=e.type,r=t.refPlaybackId;this._toResolveAdBreaks[r]=this._toResolveAdBreaks[r]||{},this._toResolveAdBreaks[r][n]=this._toResolveAdBreaks[r][n]||[],this._resolvedAdBreakItems[r]=this._resolvedAdBreakItems[r]||{},this._resolvedAdBreakItems[r][n]=this._resolvedAdBreakItems[r][n]||[],e.hasResolved()?e.adBreakItems.forEach(function(t,o){if(t.instream){var s=0===o?e.startOffset:i._instreamAdBreakItemsData[i._instreamAdBreakItemsData.length-1].endOffset;i._instreamAdBreakItemsData.push({adBreakItem:t,startOffset:s,endOffset:s+t.duration})}else i._resolvedAdBreakItems[r][n].push(t)}):this._toResolveAdBreaks[r][n].push(e)},e.prototype._cleanUpAdClientTracking=function(){if(this._stopClientAdStartTimer(),this._mediaItem){var t=this._mediaItem.refPlaybackId;this._mediaItem&&this._adBreakFetchInProgress&&delete this._adBreakFetchInProgress[t]}this._hasOngoingAttemptedAdPlayback=!1,this._waitToResolveAdBreakIds={}},e.prototype._playNextClientAdBreakItem=function(t,e){var i,n=this,r=t.refPlaybackId,s=this._resolvedAdBreakItems[r]&&this._resolvedAdBreakItems[r][e]||[],a=s.filter(function(t){return-1===(n._playedAdBreakItemIds[r]||[]).indexOf(t.adBreakItemId)});if(!(i=e===l.AdBreakType.NATIVE&&this._model.loop?s[0]:a[0]))return Object.keys(this._waitToResolveAdBreakIds).length>0?void 0:(this._cleanUpAdClientTracking(),void this.publish(o.AD_CLIENT_COMPLETED,e,this._mediaItem));this._hasOngoingAttemptedAdPlayback=!0,this._playedAdBreakItemIds[r]=this._playedAdBreakItemIds[r]||[],this._playedAdBreakItemIds[r].push(i.adBreakItemId),i===i.adBreak.adBreakItems[0]&&this.publish(o.AD_BREAK_STARTED,i.adBreak),this.publish(o.AD_METRICS,{evt:"ad_play"}),this._currentAdBreakItem=i,this.publish(o.AD_BREAK_ITEM_PLAY,i)},e.prototype._startClientAdStartTimer=function(t,e){this._stopClientAdStartTimer(),this._clientAdTimeoutType=t,this._clientAdTimeoutItem=e,this._clientAdStartTimer.start()},e.prototype._onClientAdTimeout=function(){var t=this._clientAdTimeoutType,e=this._clientAdTimeoutItem;this._currentAdBreakItem&&this._onAdBreakItemEnded(this._currentAdBreakItem,!0,!0),this._cleanUpAdClientTracking(),this.publish(o.AD_CLIENT_TIMEOUT,t,e)},e.prototype._stopClientAdStartTimer=function(){this._clientAdStartTimer.reset(),this._clientAdTimeoutType=null,this._clientAdTimeoutItem=null},e.prototype._handleAdPluginEvent=function(t,e){for(var i,n,r=this,s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];switch(e){case a.AdPluginEvent.AD_BREAK_RESOLVED:if(i=s[0],!(n=this._waitToResolveAdBreakIds[i.adBreakId]))return;var c=n.updateAdBreak(i,this._model.adsRendererTypes,this._model.capabilities);this.handleAdBreakResolved(n,c);break;case a.AdPluginEvent.AD_BREAK_RESOLVE_ERROR:i=s[0],delete this._waitToResolveAdBreakIds[i.adBreakId];break;case a.AdPluginEvent.AD_SUBTITLES_FOUND:this.publish(f.AD_SUBTITLE_TRACK_ADDED,s[0]);break;case a.AdPluginEvent.AD_BREAKS_AVAILABLE:var d=s[0],h=this._adBreakFetchInProgress[d.refId];if(n=h.item,delete this._adBreakFetchInProgress[d.refId],this.publish(o.AD_METRICS,{evt:"ad_fetched",latency:Date.now()-h.beginTS}),!n||!d.refId||!d.adBreaks)return;n.addAdBreaks(d.adBreaks),n.adBreaks.forEach(function(t){r._classifyAdBreak(n,t)}),n.adBreaks.some(function(t){return t.type===l.AdBreakType.NON_LINEAR})&&p.isAdOverlayRendererAdPlugin(t)&&this.publish(o.CREATE_OVERLAY_CONTAINER,function(e){e&&t.setNonlinearAdContainer(e)}),n===this._mediaItem&&n===this._clientAdTimeoutItem&&this._clientAdStartTimer&&this._clientAdTimeoutType&&this.playClientAdBreaks(n,this._clientAdTimeoutType);break;case a.AdPluginEvent.DIAGNOSTICS:var _=s[0];this.publish(o.AD_DIAGNOSTICS,_);break;case a.AdPluginEvent.METRICS:this._sendAnalyticsEvent(e,s&&s[0])}},e.prototype._setAdPlugin=function(t,e){return!this._adPluginMap[t]&&(this._adPluginMap[t]=e,e&&(this._existingAdPluginsEventRemoval[e.mimetype]||(this._existingAdPluginsEventRemoval[e.mimetype]=u.listenEventDispatcherEvts(e,Object.keys(a.AdPluginEvent).map(function(t){return a.AdPluginEvent[t]}),this._handleAdPluginEvent.bind(this)))),!0)},e.prototype._sendAnalyticsEvent=function(t,e){var i,n=e&&e.evt;n&&((i=e&&"object"==typeof e?Object.assign({},e):{}).evt=i.evt||n,this.publish(o.AD_METRICS,i))},e}(s.default);e.AdPlaybackController=_},MIFH:function(t,e,i){"use strict";function n(t){t&&(this.duration=t.duration,this.url=t.url,this.initSegment=t.initSegment,this.seqNum=t.sequenceNum,this.startTime=t.startTime,this.discontinuity=t.discontinuity,this.programDateTime=t.programDateTime,this.streamIndex=t.levelIndex,this.bitrate=t.bitrate,this.sessionId=t.sessionId,this.cdn=t.cdn,this._segmentIndex=this.streamIndex+"_"+this.seqNum,this.brStartOffset=t.brStartOffset,this.brEndOffset=t.brEndOffset,this.containerFormat=t.containerFormat,this.encryptionData=t.encryptionData,this.endTimestamps=t.endTimestamps,this.periodId=t.periodId),this.endTimestamps||(this.endTimestamps={audio:NaN,video:NaN}),this.totalDownloadTime=0,this.timeToFirstByte=0,this._clockReference=0}t.exports=n,n.prototype.setStreamIndex=function(t){this.streamIndex=t,this._segmentIndex=this.streamIndex+"_"+this.seqNum},n.prototype.dto=function(){var t=this,e={};return Object.keys(t).forEach(function(i){"__controller"!==i&&(e[i]=t[i])}),e}},MPla:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("fLR+"),o=i("+Ojf"),s=i("7sdD");e.XHR_ERROR="XHR error",e.XHR_TIMEOUT="XHR request timed out",e.JSONP_ERROR="jsonp error",e.JSONP_TIMED_OUT="jsonp request timed out";var a=function(){function t(){}return t.ajax=function(t,i){t=o.default.fixProtocol(t);var a=o.default.getWindow(),u=i.context,l=i.responseTypeJson,c=i.withCookie,d=i.timeout,h=o.default.once(i.successHandler),p=o.default.once(i.failureHandler),f=!1,_=null,m={url:t,cors:n.userAgent.ie&&n.userAgent.ie<10||c,withCredentials:c,timeout:d||3e3,responseType:i.responseType,headers:i.headers,method:i.method,body:i.body,beforeSend:i.beforeSend};if(u&&h&&p){var y=(new Date).getTime(),v=new s(m,function(n,o,s){if(!f){if(i.collectPerfData){if(_={},r.isFunction(v.getResponseHeader)&&(_.resp_len=v.getResponseHeader("Content-Length")||"na"),a.performance&&a.performance.getEntriesByName){var c=0===t.indexOf("http")?t:location.protocol+t;_.resourceTiming=a.performance.getEntriesByName(c).pop(),_.resourceTimingEntries=a.performance.getEntries()}_.http_code=o.statusCode}if(o.timeDiff=(new Date).getTime()-y,n){var m=null;r.isFunction(v.getResponseHeader)&&(m=v.getResponseHeader("Access-Control-Allow-Origin"));var g=a.location.protocol+"//"+a.location.host;if(m&&m!==g)p.call(u,new Error(e.XHR_ERROR),"default","cors");else{var E=o.timeDiff>=d?e.XHR_TIMEOUT:e.XHR_ERROR;p.call(u,new Error(E),o.previousState,o.statusCode,o.timeDiff,_,v)}}else o.statusCode<200||o.statusCode>=300?p.call(u,new Error(e.XHR_ERROR+": statusCode = "+o.statusCode),o.previousState,o.statusCode,o.timeDiff,_,v):h.call(u,l?JSON.parse(s):s,!1,_,v)}});v.previousState=v.readyState;var g=v.onreadystatechange;v.onreadystatechange=function(){4===v.readyState?g.call(v):v.previousState=v.readyState}}return function(){f=!0}},t.preconnect=function(t,e){if(document&&!document.head.querySelector("#"+t)){var i=document.createElement("link");i.setAttribute("rel","preconnect"),i.setAttribute("id",t),i.setAttribute("href",e);var n=document.getElementsByTagName("head")[0];n&&n.appendChild(i)}},t.querystring=function(t,e,i,n){return void 0===e&&(e="&"),void 0===i&&(i="="),void 0===n&&(n=encodeURIComponent),r.isObject(t)&&(t=[t]),t.map(function(t){return Object.keys(t).map(function(s){var a=n(o.default.stringifyPrimitive(s));return null===t[s]?a:(a+=i,r.isArray(t[s])?t[s].map(function(t){return a+n(o.default.stringifyPrimitive(t))}).join(e):a+n(o.default.stringifyPrimitive(t[s])))}).join(e)}).join(e)},t}();e.default=a},Mjcq:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ma23"),r=i("fLR+"),o=i("+Ojf"),s=function(){function t(){this.version="0.2.137",this.type=n.PluginType.VISUAL_SEEK,this.mimetype="visualseek/uplynk",this._visualSeekMetadataMap={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this._visualSeekMetadataMap={}},t.prototype.canSeek=function(t){return t&&!!this._visualSeekMetadataMap[t]},t.prototype.update=function(t,e){var i=this._visualSeekMetadataMap[t]||{};i.assetInfo=e&&e.assetInfo||i.assetInfo,i.adBreaks=e&&e.adBreaks||i.adBreaks,this._visualSeekMetadataMap[t]=i},t.prototype.getThumbnailData=function(t,e,i){if(!r.isString(t)||!r.isNumber(e))return null;var n=this._visualSeekMetadataMap[t].assetInfo;if(!(n&&n.thumbs&&n.thumbPrefix&&n.sliceDuration&&n.maxSlice))return null;var o=this.getUrl(t,e,i);return{isAd:"AD"===o,url:o,width:this.getWidth(t,i),height:this.getHeight(t,i)}},t.prototype.getUrl=function(t,e,i){var n=this._visualSeekMetadataMap[t],r=n.assetInfo,s=r.thumbPrefix,a=this.getThumbInfo(t,i),u=e,l=0,c=!1,d=null,h=0;if(n.adBreaks&&n.adBreaks.length){if(n.adBreaks.some(function(t){if(t.startOffset<e&&t.startOffset+t.duration>e)return c=!0,!0;if(t.startOffset<=e)l+=t.duration,d=t;else if(t.startOffset>e)return!0;return!1}),c)return"AD";h=d&&d.customInfo&&d.customInfo.index||0,u=Math.max(0,u-l)}var p=Math.floor(u/r.sliceDuration)+h;p=Math.min(p,r.maxSlice);var f=o.default.decimalToHexString(p,8,"0");return s+a.prefix+f+".jpg"},t.prototype.getWidth=function(t,e){return this.getThumbInfo(t).width},t.prototype.getHeight=function(t,e){return this.getThumbInfo(t).height},t.prototype.getThumbInfo=function(t,e){void 0===e&&(e=128);var i=this._visualSeekMetadataMap[t].assetInfo.thumbs;return i&&i.length?1===i.length?i[0]:i.find(function(t){return t.width===e})||i[0]:{width:0,height:0,prefix:""}},t}();e.default=s},Mkxr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.streamSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/streamSchema",type:"object",properties:{audioMetadata:{type:"object",properties:{autoSelect:{type:"boolean"},bitrate:{type:"number"},channels:{type:"number"},default:{type:"boolean"},forced:{type:"boolean"},samplingRate:{type:"number"}}},cdn:{type:"string"},fairplayCertificatePath:{type:"string"},live:{type:"boolean"},manifest:{type:"string"},mimeType:{type:"string"},rcMode:{type:"string"},type:{type:"string"},url:{type:"string"},videoMetadata:{type:"object",properties:{avgBitrate:{type:"number"},bitrate:{type:"number"},framerate:{type:"number"},height:{type:"number"},profile:{type:"string"},width:{type:"number"}}}},required:["url"]}},MyAg:function(t,e,i){"use strict";t.exports=o;var n=i("mfA3"),r=i("iSaY");function o(){this._node=this._context.node,this._mediaSource=this._context.mediaSource,this._switchManager=null,this._sourceBuffers=[],this._error=!1,this._model=this._context.appModel,this._pastBufferLengthLimit=this._model.config.pastBufferLengthLimit}o.prototype.destroy=function(){this._abortBuffer(),this._sourceBuffers=[]},o.prototype.setSwitchManager=function(t){this._switchManager=t},o.prototype.process=function(){this._areSourceBuffersClosed()&&"open"===this._mediaSource.readyState&&this._mediaSource.endOfStream()},o.prototype.onError=function(){this._error=!0},o.prototype.onSeeking=function(t,e){t&&this._abortBuffer(),e&&this._recreateSrcBuffers()},o.prototype._getSourceBuffer=function(t){for(var e=0;e<this._sourceBuffers.length;e++)if(t===this._sourceBuffers[e].type)return this._sourceBuffers[e];return null},o.prototype.setMinimumBufferTime=function(t){this._sourceBuffers.forEach(function(e){e.setMinBufferTime(t)})},o.prototype.createSourceBuffer=function(t,e,i){if(!this._mediaSource||this._error)return null;var o=this._getSourceBuffer(t);if(!o)if(this._context.isMimetypeSupported(e)){o=this._context.create(n,this._mediaSource,t,e),this._sourceBuffers.push(o);var s=this._model.config.minBufferTime,a=isNaN(i)?this._model.live?s.live:s.vod:i;this.setMinimumBufferTime(a)}else{var u=new r.Error(r.ERR_MIMETYPE_NOT_SUPPORTED);this._context.notifyError(u)}return o},o.prototype._removeSrcBuffers=function(){if(this._mediaSource&&!this._error)for(;this._sourceBuffers.length>0;){this._sourceBuffers.shift().destroy()}},o.prototype._recreateSrcBuffers=function(){var t=this,e=[];t._mediaSource&&!t._error&&"open"===t._mediaSource.readyState&&(t._sourceBuffers.forEach(function(t){e.push({type:t.type,mimeType:t.mimeType})}),t._removeSrcBuffers(),e.forEach(function(e){t.createSourceBuffer(e.type,e.mimeType,NaN)}))},o.prototype._abortBuffer=function(){this._mediaSource&&!this._error&&this._sourceBuffers.forEach(function(t){t.abort()})},o.prototype.clear=function(t,e){if(this._mediaSource&&!this._error)if(t){if(!(t&&t.end-t.start<10)&&e){e.clearBuffer(t.start,t.end,function(t){})}}else this._sourceBuffers.forEach(function(t){t.clearAll()})},o.prototype.clearSrcBuffer=function(t,e){var i=this._getSourceBuffer(t);if(i)if(e){i.clearBuffer(e.start,e.end,function(t){})}else i.clearAll()},o.prototype.appendBuffer=function(t,e){var i=this,n=i.createSourceBuffer(t.type,t.mimeType);n&&!i._error&&t.data&&t.data.length&&n.appendBuffer(t.data,t.startTime,t.endTime,t.onlyMetadata,function(t,n){i._onAppendBufferComplete(t,n),e(t,n)})},o.prototype.endOfStream=function(t){this._sourceBuffers.forEach(function(e){e.setEndOfStream(t)})},o.prototype._areSourceBuffersClosed=function(){if(!this._sourceBuffers.length)return!1;var t=!0;return this._sourceBuffers.forEach(function(e){t=t&&"closed"===e.state}),t},o.prototype.getPendingBufferLength=function(){var t=0;return this._sourceBuffers.forEach(function(e){var i=e.getTotalPendingBufferLength();t<i&&(t=i)}),t},o.prototype.getBufferedAndPending=function(){var t={};return this._sourceBuffers.forEach(function(e){var i=e.getTotalPendingBufferLength(),n=e.getBufferLength();-1!==e.mimeType.indexOf("video")?t.video={buffered:n,pending:i,mimeType:e.mimeType}:t.audio={buffered:n,pending:i,mimeType:e.mimeType}}),t},o.prototype.resetReadyState=function(){this._sourceBuffers.forEach(function(t){t.ready=!1})},o.prototype.areSrcBuffersReady=function(){for(var t=0;t<this._sourceBuffers.length;t++)if(!this._sourceBuffers[t].ready)return!1;return!0},o.prototype._onAppendBufferComplete=function(t,e){e&&(this.clear(this._getPastBufferRange(e),e),this.clear(this._getFutureBufferRange(e),e))},o.prototype._getPastBufferRange=function(t){var e=this._node.currentTime,i=null;try{i=t.buffer.buffered}catch(t){i=null}var n=0,r=0,o=this._model.live?this._pastBufferLengthLimit.live:this._pastBufferLengthLimit.vod;return i&&i.length&&(n=i.start(0),r=Math.max(e-o,0)),{start:n,end:r}},o.prototype._getFutureBufferRange=function(t){var e=this._node.currentTime,i=null;try{i=t.buffer.buffered}catch(t){i=null}var n=this._model.live?this._pastBufferLengthLimit.live:this._pastBufferLengthLimit.vod,r={start:0,end:0};return i&&i.length>1&&e+n<i.start(1)&&(r.start=i.start(1),r.end=i.end(1)),r}},"N+vR":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div>"),n.b("\n"+i),n.b("    <pre>"),n.b("\n"+i),n.b(n.v(n.f("config",t,e,0))),n.b("\n"+i),n.b("    </pre>"),n.b("\n"+i),n.b("    <table border='1'>"),n.b("\n"+i),n.b("        <style>"),n.b("\n"+i),n.b("            .bars {"),n.b("\n"+i),n.b("                white-space: nowrap;"),n.b("\n"+i),n.b("            }"),n.b("\n"+i),n.b("            .bars div {"),n.b("\n"+i),n.b("                display: inline-block;"),n.b("\n"+i),n.b("                height: 25px;"),n.b("\n"+i),n.b("            }"),n.b("\n"+i),n.b("            .bar {"),n.b("\n"+i),n.b("                background-color: #714fff;"),n.b("\n"+i),n.b("                border: 1px solid #000;"),n.b("\n"+i),n.b("            }"),n.b("\n"+i),n.b("        </style>"),n.b("\n"+i),n.b("        <tr>"),n.b("\n"+i),n.b("            <th>Type</th>"),n.b("\n"+i),n.b("            <th>Description</th>"),n.b("\n"+i),n.b("            <th>Start</th>"),n.b("\n"+i),n.b("            <th>End</th>"),n.b("\n"+i),n.b("            <th>Diff</th>"),n.b("\n"+i),n.b("            <th>Bar</th>"),n.b("\n"+i),n.b("        </tr>"),n.b("\n"+i),n.s(n.f("profileItems",t,e,1),t,e,0,602,1024,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("            <tr>"),n.b("\n"+i),n.b("                <td>"),n.b(n.v(n.f("type",t,e,0))),n.b("</td>"),n.b("\n"+i),n.b("                <td>"),n.b(n.v(n.f("desc",t,e,0))),n.b("</td>"),n.b("\n"+i),n.b("                <td>"),n.b(n.v(n.f("startTime",t,e,0))),n.b("</td>"),n.b("\n"+i),n.b("                <td>"),n.b(n.v(n.f("endTime",t,e,0))),n.b("</td>"),n.b("\n"+i),n.b("                <td>"),n.b(n.v(n.f("timeDiff",t,e,0))),n.b("</td>"),n.b("\n"+i),n.b("                <td class='bars'>"),n.b("\n"+i),n.b("                    <div style='width: "),n.b(n.v(n.f("startWidth",t,e,0))),n.b("px;'></div>"),n.b("\n"+i),n.b("                    <div class='bar' style='width: "),n.b(n.v(n.f("barWidth",t,e,0))),n.b("px;'></div>"),n.b("\n"+i),n.b("                </td>"),n.b("\n"+i),n.b("            </tr>"),n.b("\n"+i)}),t.pop()),n.b("    </table>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},N08P:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+kCX"),r=i("q5U7"),o=i("GX4R"),s=i("ReYQ"),a=i("8NcX"),u=i("ek6g"),l=i("pM7s"),c=function(){function t(){}return t.getRendererTypes=function(){for(var t=[],e=0,i=[n.default,o.default,r.default,s.default,l.default,u.default,a.default];e<i.length;e++){var c=i[e];c&&c.canUse()&&t.push(c.type)}return t},t.getAdRendererTypes=function(){for(var t=[],e=0,i=[n.default,o.default,l.default,u.default,a.default];e<i.length;e++){var r=i[e];r&&r.canUse()&&t.push(r.type)}return t},t}();e.default=c},NMH2:function(t,e,i){"use strict";function n(t,e,i){t&&e&&i&&(this._node=t,this._client=i,this._mediaSource=e,this._addEventListeners())}t.exports=n,n.prototype.destroy=function(){this._removeEventListeners()},n.prototype._addEventListeners=function(){var t=this;t._videoEventHandler=t._onNativeVideoEvent.bind(t),t._videoNativeEvents=["play","playing","pause","seeking","seeked","ended","error","timeupdate"],t._videoNativeEvents.forEach(function(e){t._node.addEventListener(e,t._videoEventHandler)}),t._mediaSourceOpenHandler=t._onMediaSourceOpen.bind(t),t._mediaSource.addEventListener("sourceopen",t._mediaSourceOpenHandler),window.addEventListener("resize",t._videoEventHandler)},n.prototype._removeEventListeners=function(){var t=this;t._videoNativeEvents.forEach(function(e){t._node.removeEventListener(e,t._videoEventHandler)}),t._mediaSource.removeEventListener("sourceopen",t._mediaSourceOpenHandler),window.removeEventListener("resize",t._videoEventHandler)},n.prototype._onNativeVideoEvent=function(t){this._client.sendVideoEvent(t)},n.prototype._onMediaSourceOpen=function(t){this._client.onMediaSourceOpen(t)}},Nfvh:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.INIT="init",t.WAITING="waiting",t.VIDEO="video",t.END="end"}(n||(n={})),e.default=n},"O/dN":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("WSjl"),r=i("xqNZ"),o=i("h8UC").errorCodes,s=["305","306","307"];e.E_INFO=o.E_INFO,e.E_WARNING=o.E_WARNING,e.E_YVAP=o.E_YVAP,e.E_SAPI_STREAM=o.E_SAPI_STREAM,e.E_SAPI_PLAYLIST=o.E_SAPI_PLAYLIST,e.E_SAPI_RELATED=o.E_SAPI_RELATED,e.E_SAPI_POPULAR=o.E_SAPI_POPULAR,e.E_CAST=o.E_CAST,e.E_PLAYER=o.E_PLAYER,e.E_PLAYER_FAILOVER=o.E_PLAYER_FAILOVER,e.E_PLAYER_DRM=o.E_PLAYER_DRM,e.E_PLAYER_JS_HLS=o.E_PLAYER_JS_HLS,e.E_SAPI_ABSTRACT=o.E_SAPI_ABSTRACT,e.E_SAPI_CLOSEDCAPTION=o.E_SAPI_CLOSEDCAPTION;var a=e.E_PLAYER,u=e.E_PLAYER_FAILOVER,l=e.E_PLAYER_JS_HLS,c=e.E_SAPI_ABSTRACT,d=e.E_SAPI_CLOSEDCAPTION;function h(t){return t.group+t.phase+"-"+t.category+"-"+t.subcategory}function p(t){var e=[];if(t)for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e}function f(t,e,i){e.forEach(function(e){t[e]=i})}e.INFO_CODES=o.INFO_CODES,e.WARNING_CODES=o.WARNING_CODES,e.PLAYER_CODES=o.PLAYER_CODES,e.PLAYER_DRM_CODES=o.PLAYER_DRM_CODES,e.PLAYER_JS_HLS_CODES=o.PLAYER_JS_HLS_CODES,e.SAPI_CODES=o.SAPI_CODES,e.CAST_CODES=o.CAST_CODES,e.rep=h,e.isInfoCode=function(t){for(var i in e.INFO_CODES)if(e.INFO_CODES.hasOwnProperty(i)&&e.INFO_CODES[i]===t)return!0;return!1},function(t){t.Streaming="P",t.Service="S",t.Configuration="C",t.Restriction="R"}(e.ErrorGroup||(e.ErrorGroup={})),function(t){t.KEY_SESSION_FAILED="1",t.LICENSE_REQUEST_FAILED="2",t.CERT_LOAD_FAILED="3"}(e.DRM_DEBUG_CODES||(e.DRM_DEBUG_CODES={}));var _={};_[e.INFO_CODES.E_PLAYER_360_IS_NOT_SUPPORTED]=r.default.ERR_TITLE_CANNOT_PLAY_360_VIDEO,_[e.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,_[e.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,f(_,[e.INFO_CODES.E_SAPI_LICENSE_ERROR,e.INFO_CODES.E_SAPI_UNAVAILABLE_TEMP,e.INFO_CODES.E_SAPI_GEO,e.INFO_CODES.E_SAPI_BLACKOUT],r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE),p(e.INFO_CODES).forEach(function(t){_[t]||(_[t]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO)});var m={};m[e.INFO_CODES.E_SAPI_UNAVAILABLE_TEMP]=r.default.ERR_UNAVAILABLE,m[e.INFO_CODES.E_SAPI_LICENSE_ERROR]=r.default.ERR_UNAVAILABLE,m[e.INFO_CODES.E_SAPI_GEO]=r.default.ERR_GEO,m[e.INFO_CODES.E_SAPI_BLACKOUT]=r.default.ERR_BLACKOUT,m[e.INFO_CODES.E_SAPI_DEVICE]=r.default.ERR_DEVICE,m[e.INFO_CODES.E_SAPI_EMBED]=r.default.ERR_EMBED,m[e.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED]=r.default.ERR_ANDROID_LIVE_CHROME_REQUIRED,m[e.INFO_CODES.E_PLAYER_NO_COMPATIBLE_FORMAT]=r.default.ERR_BROWSER_UNSUPPORTED,m[e.INFO_CODES.E_PLAYER_360_IS_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED_SKIP_IN_10,m[e.INFO_CODES.E_FLASH_RENDERER_NOT_SUPPORTED]=r.default.ERR_BROWSER_UNSUPPORTED,f(m,[e.INFO_CODES.E_SAPI_UNSUPPORTED_LIVE_ON_HTML,e.INFO_CODES.E_PLAYER_FLASH_IS_BLOCKED_SAFARI_STYLE_NONE,e.INFO_CODES.E_PLAYER_FLASH_IS_BLOCKED_GENERAL_STYLE_NONE,e.INFO_CODES.E_PLAYER_FLASH_IS_BLOCKED_REPLACED_BY_BGINACTIVE,e.INFO_CODES.E_PLAYER_FLASH_IS_BLOCKED_POWER_SAVING,e.INFO_CODES.E_PLAYER_FLASH_IS_BLOCKED_BLOCKERS_SCREEN],r.default.ERR_FLASH_IS_BLOCKED);var y={};y[e.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_SRC_NOT_SUPPORTED]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE,y[e.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE]=r.default.ERR_TITLE_CANNOT_PLAY_VIDEO,f(y,[e.PLAYER_CODES.E_PLAYER_NOT_ENABLED,e.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_ABORTED],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO),p(e.PLAYER_CODES).forEach(function(t){y[t]||(y[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)});var v={};v[e.PLAYER_CODES.E_PLAYER_NOT_ENABLED]=r.default.ERR_FLASH_LATEST_DOWNLOAD,v[e.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_NETWORK]=r.default.ERR_NETWORK_ISSUE,e.PLAYER_CODES.E_NO_PLUGIN_FOUND="603",p(e.PLAYER_CODES).forEach(function(t){v[t]||(v[t]=r.default.ERR_GENERAL_ERROR)});var g={};p(e.PLAYER_JS_HLS_CODES).forEach(function(t){g[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG});var E={};p(e.PLAYER_JS_HLS_CODES).forEach(function(t){E[t]=r.default.ERR_GENERAL_ERROR});var b={};f(b,[e.SAPI_CODES.E_SAPI_INCOMPATIBLE_FORMAT,e.SAPI_CODES.E_SAPI_NO_STREAMS_RETURNED,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_TIMEOUT,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_UNKNOWN,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_CARMOT,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_UNMAPPED],r.default.ERR_TITLE_SOMETHING_WENT_WRONG),f(b,[e.SAPI_CODES.E_SAPI_USER_NOT_AUTHORIZED,e.SAPI_CODES.E_SAPI_DRM_RESTRICTED],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO),p(e.SAPI_CODES).forEach(function(t){b[t]||(b[t]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE)});var S={};S[e.SAPI_CODES.E_SAPI_USER_NOT_AUTHORIZED]=r.default.ERR_UNAUTHORIZED,S[e.SAPI_CODES.E_SAPI_RESTRICTED_TO_INTERNAL]=r.default.ERR_UNAVAILABLE,f(S,[e.SAPI_CODES.E_SAPI_INCOMPATIBLE_FORMAT,e.SAPI_CODES.E_SAPI_NO_STREAMS_RETURNED,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_TIMEOUT,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_UNKNOWN,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_CARMOT,e.SAPI_CODES.E_SAPI_TEMP_ERR_JAPI_UNMAPPED],r.default.ERR_GENERAL_ERROR),p(e.SAPI_CODES).forEach(function(t){S[t]||(S[t]=r.default.ERR_MISSING_OR_DAMAGED)});var A={};p(e.WARNING_CODES).forEach(function(t){t!==e.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE&&(A[t]=r.default.ERR_TITLE_SOMETHING_WENT_WRONG)}),A[e.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE]=r.default.ERR_TITLE_VIDEO_NOT_AVAILABLE;var T={};T[e.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE]=r.default.ERR_LIVE_PLAYBACK_COMPLETE,p(e.WARNING_CODES).forEach(function(t){t!==e.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE&&(T[t]=r.default.ERR_GENERAL_ERROR)});var I={};I[e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_BROWSER]=function(t){return t.android?r.default.ERR_DRM_ANDROID_UNSUPPORTED_BROWSER:t.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_BROWSER:null},I[e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_OS]=function(t){return t.ios?r.default.ERR_DRM_IOS_UNSUPPORTED_OS_VER:null},I[e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_NETWORK_TYPE_WIFI]=r.default.ERR_DRM_UNSUPPORTED_NETWORK_WIFI,f(I,[e.PLAYER_DRM_CODES.ERR_DRM_CERTPATH_MISSING],r.default.ERR_GENERAL_ERROR);var C={};f(C,[e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_BROWSER,e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_OS,e.PLAYER_DRM_CODES.ERR_DRM_UNSUPPORTED_NETWORK_TYPE,e.PLAYER_DRM_CODES.ERR_DRM_CERTPATH_MISSING],r.default.ERR_TITLE_CANNOT_PLAY_VIDEO);var R=function(){function t(t,e,i,n,r){if(!t||!e||!i)throw new Error("Error must be created with a group, category, and subcategory!");this.errorInfo=n,this._userAgent=r,this.group=t,this.phase=this._getPhaseFromState(n),this.category=e,this.subcategory=i,this._msg=n?n.msg:null,this.debugMessage=n?n.debugMsg:null,this.prefetch=!(!n||void 0===n.prefetch)&&n.prefetch,this.isRecoverable=!1}return Object.defineProperty(t.prototype,"rep",{get:function(){return h(this)},enumerable:!0,configurable:!0}),t.prototype.isSAPIError=function(){return this.category>=c&&this.category<=d},t.prototype._getPhaseFromState=function(t){var e="S";return t&&t.playbackState&&(t.playbackState.state===n.States.VIDEO||t.playbackState.state===n.States.END)&&(e="P"),e},Object.defineProperty(t.prototype,"title",{get:function(){var t=null,i=this.errorInfo.playbackState&&this.errorInfo.playbackState.loadedItem&&this.errorInfo.playbackState.loadedItem.isLive();if(this.isSAPIError())t=b;else{if(this.category===a&&-1!==s.indexOf(this.subcategory)&&i&&this._userAgent&&(this._userAgent.android||this._userAgent.ios))return r.default.ERR_TITLE_SOMETHING_WENT_WRONG;this.category===a||this.category===u?t=y:this.category===e.E_WARNING?t=A:this.category===e.E_INFO?t=_:this.category===e.E_PLAYER_DRM?t=C:this.category===l&&(t=g)}return t&&t[this.subcategory]||r.default.ERR_TITLE_SOMETHING_WENT_WRONG},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var t=null,i=this.errorInfo.playbackState&&this.errorInfo.playbackState.loadedItem&&this.errorInfo.playbackState.loadedItem.isLive();if(this.isSAPIError())t=S;else{if(this.category===a&&-1!==s.indexOf(this.subcategory)&&i&&this._userAgent&&(this._userAgent.android||this._userAgent.ios))return r.default.ERR_LIVE_IOS_PLAYBACK;this.category===a||this.category===u?t=v:this.category===e.E_PLAYER_DRM?t=I:this.category===e.E_WARNING?t=T:this.category===e.E_INFO?t=m:this.category===l&&(t=E)}var n=t&&t[this.subcategory];return n="function"==typeof n?n(this._userAgent):n,this._msg||n||r.default.ERR_TECH_DIFFICULTIES},enumerable:!0,configurable:!0}),t}();e.default=R},OaPV:function(t,e,i){"use strict";function n(t){this.COLLECTION_INTERVAL=100,this.MIN_SAMPLE_SIZE=5e4,this.SAMPLE_QUEUE_LENGTH=40,this.INSTANCE_SAMPLE_QUEUE_LENGTH=15,this.BW_ADJUSTMENT_FACTOR=.8,this._samplesQueue=[],this._instanceSamplesQueue=[],this.averageBandwidth=t||0,this.instantaneousBandwidth=t||0}t.exports=n,n.prototype.destroy=function(){this._samplesQueue=[],this._instanceSamplesQueue=[],this.averageBandwidth=0,this.instantaneousTotalBandwidth=0},n.prototype.addSample=function(t){if(t&&!(t.time<=0)){this._addSingleSample(t);var e=0,i=this._samplesQueue.length,n=i*(i+1)/2,r=1/n;this._samplesQueue.forEach(function(t,i){e+=(i+1)*r*t.bandwidth}),this.averageBandwidth=this.BW_ADJUSTMENT_FACTOR*e,e=0,i=this._instanceSamplesQueue.length,r=1/(n=i*(i+1)/2),this._instanceSamplesQueue.forEach(function(t,i){e+=(i+1)*r*t.bandwidth}),this.instantaneousBandwidth=this.BW_ADJUSTMENT_FACTOR*e}},n.prototype._addSingleSample=function(t){!t||t.time<=0||(t.bandwidth=t.size/t.time*.008,t.bandwidth=Math.min(60,t.bandwidth),this._samplesQueue.push(t),this._instanceSamplesQueue.push(t),this._samplesQueue.length>this.SAMPLE_QUEUE_LENGTH&&this._samplesQueue.shift(),this._instanceSamplesQueue.length>this.INSTANCE_SAMPLE_QUEUE_LENGTH&&this._instanceSamplesQueue.shift())},n.prototype.replaceSamples=function(t,e){var i=t&&e?t/e*.008:0;if(i>0){this.averageBandwidth=i,this._samplesQueue=[];for(var n=Math.min(Math.ceil(e/this.COLLECTION_INTERVAL),this.SAMPLE_QUEUE_LENGTH),r=0;r<n;r++){var o={bandwidth:i};this._samplesQueue.push(o)}}}},Oj6Y:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("aAR2"),r=function(){function t(){this._openSimSim=new n.default}return t.prototype.updateOathPlayerOpss=function(t,e,i){this._openSimSim.updateOathPlayerInfo(t,e,i)},t}();e.default=r},OtQS:function(t,e,i){"use strict";t.exports=a;var n=i("RwmF"),r=i("/iNa"),o=i("2fkz").CmdNames,s=i("V66C").StreamTypes;function a(t){this._model=this.__controller.model,this._commandManager=t,this.SWITCH_ON_ERROR="switchOnError",this._error=null,n.call(this,this.constructor.name),this.running=!1}r.inherits(a,n),a.prototype.destroy=function(){this._model=null,this._commandManager=null,this._error=null,this.running=!1},a.prototype.handle=function(t,e){if(t&&e&&e.type!==s.SUBTITLES){var i=e.index;this._error=t;var n={streamIndex:i,error:t};this.running=!0;var r=this._commandManager.getCommand(o.CMD_ERROR_HANDLE);r?r.execute(i):this._commandManager.executeCommand(o.CMD_ERROR_HANDLE,n,this)}},a.prototype.onErrorHandleProgress=function(t,e){this.publish(this.SWITCH_ON_ERROR,e.index)},a.prototype.onErrorHandleError=function(t){this.running=!1,this._commandManager.removeCommand(t),this.__controller.notifyError(this._error)},a.prototype.onLoadComplete=function(){this.running=!1;var t=this._commandManager.getCommand(o.CMD_ERROR_HANDLE);this._commandManager.removeCommand(t)}},P8vF:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div tabindex='0' class='vp-playlist-container "),n.b(n.v(n.f("modeClass",t,e,0))),n.b(" vp-pl-loading vp-playlist-theme-"),n.b(n.v(n.f("theme",t,e,0))),n.b(" "),n.b(n.v(n.f("streamModeClass",t,e,0))),n.b(" vp-vis-hidden'>"),n.b("\n"+i),n.s(n.f("isHiddenMode",t,e,1),t,e,0,156,216,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b('    <div class="vp-upnext-title">'),n.b(n.v(n.d("strings.UP_NEXT",t,e,0))),n.b("</div>"),n.b("\n"+i)}),t.pop()),n.b('    <div class="vp-playlist-pg-btn vp-playlist-pg-btn-prev disabled"></div>'),n.b("\n"+i),n.b('    <div class="vp-playlist-pg-btn vp-playlist-pg-btn-next"></div>'),n.b("\n"+i),n.b('    <div class="vp-playlist-strip">'),n.b("\n"+i),n.b('        <ul class="vp-playlist-strip-list strip-animate">'),n.b("\n"),n.b("\n"+i),n.b("        </ul>"),n.b("\n"+i),n.b('        <div class="vp-pl-loader-bg"></div>'),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b('    <div class="vp-pl-loader vp-spinner-icon"></div>'),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},PCHl:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("JcWZ"),s=i("ToqN"),a=i("A4+F"),u=i("8PPl"),l=i("oIMU"),c=i("mczr"),d=i("MPla"),h=i("kdA9"),p=i("fLR+"),f=i("+Ojf"),_=i("ybd4"),m="en-us";e.CC_LOCAL_STORAGE="yvpCC";var y,v={none:"",dropshadow:"2px 1px 1px rgba(0, 0, 0, 1)",raised:"3px 3px 4px rgba(0, 0, 0, 0.75)",depressed:"0px -4px 4px rgba(0, 0, 0, 0.54)",uniform:"-2px -2px 0 #000, -2px 2px 0 #000, -2px 0 0 #000, 2px -2px 0 #000, 2px 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000"},g=Math.floor((Math.pow(2,33)-1)/90);!function(t){t.CC_AVAILABILITY_UPDATE="cc-availability-update",t.CC_LIST_FETCHED="cc-list-fetched",t.CC_LIST_FETCHED_MOBILE="cc-list-fetched-mobile",t.TOGGLE_SIMPLE_CC_CONTROLS="cc-toggle-simple-cc-controls"}(y=e.CCControllerEvent||(e.CCControllerEvent={}));var E=function(t){function i(e,i,n){var r=t.call(this,"CC Controller")||this;r._eventBus=e,r._model=i,r._view=n,r._userPreferences=r._model.ccUserPreferences||{},r._syncCCLocalStorage(),r._eventBus.addEventListener(l.VideoEvent.PLAYING,r.onMediaItemPlaybackStarted,r),s.userAgent.tv||r._eventBus.addEventListener(l.AD_BREAK_ENDED,r.onAdBreakEnded,r),r._eventBus.addEventListener(l.PLAYBACK_PROGRESS,r._onPlaybackProgress,r),r._eventBus.addEventListener(l.FULLSCREEN_CHANGE,r._adjustCCSizeToScreen,r),r._eventBus.addEventListener(a.ExternalEvt.PLAYER_VIEWPORT_CHANGE,r._adjustCCSizeToScreen,r),r._eventBus.addEventListener(l.VTT_SEGMENT_LOADED,r._loadVttSegment,r),r._eventBus.addEventListener(l.CCEvent.REQUEST_UI_DATA_FOR_MEDIA_ITEM,r.onMediaItemLoaded,r),r._eventBus.addEventListener(l.CCEvent.LANGUAGE_CHANGE,r.onLanguageChange,r),r._eventBus.addEventListener(l.CCEvent.UPDATE_STYLE,r.updateCCStyle,r),r._eventBus.addEventListener(l.CCEvent.POSITION_CHANGE,r._updateCCPosition,r),r._eventBus.addEventListener(l.CCEvent.POSITION_FLOAT,r._floatCCPosition,r),r._eventBus.addEventListener(l.CCEvent.USER_STYLE_PREFERENCES_CHANGE,r._syncCCPreferences,r),r._eventBus.addEventListener(l.SUBTITLE_TRACK_RECEIVED,r._onSubtitleTrackReceived,r),r._eventBus.addEventListener(l.AD_SUBTITLE_TRACK_ADDED,r._onAdSubtitleTrackAdded,r),r._currentMediaCCPool=[],r._currentMediaItem=null,r._currentAdItem=null,r._defaultLang=m,r._captionStore={},r._ccElement=document.createElement("div"),f.default.classList(r._ccElement).add("vp-cc-element"),r._CCElementInnerSpan=document.createElement("span"),r._ccElement.appendChild(r._CCElementInnerSpan),r._currentFontSize=r._userPreferences.fontSize,r.updateCCStyle();var o=r._view.getMainElement();return o&&o.appendChild(r._ccElement),s.userAgent.tv&&(r._vttFetcher=new _.default(r._eventBus,r._model)),r._enableCCOnMute=!1,r._model.ccOnMute&&r._model.mute&&(r._enableCCOnMute=!0),r._lastCCText="",r}return r(i,t),i.saveCCSettingsToLocalStorage=function(t){var i=h.default.get(e.CC_LOCAL_STORAGE)||{};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);h.default.put(e.CC_LOCAL_STORAGE,i)},i.getLanguageForCode=function(t){(t=t.toLowerCase().split("-")).length>1&&(t.pop(),t=t.join("-"));return{id:"Bahasa Indonesia",ms:"Bahasa Melayu",cs:"čeština",da:"dansk",de:"Deutsch",et:"eesti",en:"English",es:"español",fil:"Filipino",fr:"français",hr:"hrvatski",it:"italiano",lv:"latviešu",lt:"lietuvių",hu:"magyar",nl:"Nederlands",nb:"norsk bokmål",pl:"polski",pt:"português",ro:"română",sk:"slovenčina",sl:"slovenščina",fi:"suomi",sv:"svenska",vi:"Tiếng Việt",tr:"Türkçe",el:"Ελληνικά",bg:"български",ru:"русский","sr-cyrl":"Српски",uk:"українська",he:"‎עברית‏‎",ar:"‎العربية‏‎",mr:"मराठी",hi:"हिन्दी",bn:"বাংলা",gu:"ગુજરાતી",ta:"தமிழ்",te:"తెలుగు",kn:"ಕನ್ನಡ",ml:"മലയാളം",th:"ไทย",ur:"اردو زبان",ko:"한국어","zh-hans":"简体中文","zh-hant":"繁體中文",ja:"日本人"}[t]},i.prototype.onMediaItemLoaded=function(t){if(t){if(this._currentMediaItem&&this._currentMediaItem.id!==t.id&&delete this._captionStore[this._currentMediaItem.id],this._currentMediaItem=t,this._isLive=t.isLive(),!this._captionStore[t.id]){var e={ccAvailable:!1,vttPresent:!1,parsedCaptions:null};this._captionStore[t.id]=e,this._canPlayVtt(t)?(e.vttPresent=!0,this._hideAndDisableCC(!0)):(e.ccAvailable=!0,e.vttPresent=!1,this._currentCC=null,this.publish(y.CC_AVAILABILITY_UPDATE,!0),this._processAndPropagateCC(t.closedCaptions))}this._vttFetcher&&this._vttFetcher.onMediaItemLoaded(t)}},i.prototype.destroy=function(){this._captionStore=null},i.prototype.enableAndPersist=function(t){this._enable(!0,t)},i.prototype.disable=function(){this._disable(!1)},i.prototype.disableAndPersist=function(){this._disable(!0)},i.prototype.enable=function(t){this._enable(!1,t)},i.prototype.toggleFromUI=function(t,e){!1===e?t?this.enable():this.disable():t?this.enableAndPersist():this.disableAndPersist()},i.prototype.onAdPlaybackStarted=function(t){var e=this;s.userAgent.tv||window.setTimeout(function(){e._currentAdItem=t},0)},i.prototype.onAdPlaybackProgress=function(t){var e=t.currentTime,i=t.duration;if(this._currentAdItem){var n=this._currentAdItem.adId||this._currentAdItem.id||null;n&&this._renderVODCC(n,e,i)}},i.prototype.onAdBreakEnded=function(){this._hideAndDisableCC(!0),this.onMediaItemLoaded(this._currentMediaItem),this.resetCC()},i.prototype.resetCC=function(){this._currentAdItem=null;var t=this._currentMediaItem?this._captionStore[this._currentMediaItem.id]:null;t&&t.ccAvailable&&this._propagateCC()},i.prototype.onMediaItemPlaybackStarted=function(){this.resetCC()},i.prototype.onMediaItemPlaybackEnded=function(){this.disable()},i.prototype.onLanguageChange=function(t){this.enableAndPersist(t)},i.prototype.updateCCStyle=function(){if(this._ccElement){var t=f.default.cssHexToRgb(this._userPreferences.bgColor)||{r:0,g:0,b:0},e=0===this._userPreferences.bgOpacity?"transparent":"rgba("+t.r+","+t.g+","+t.b+","+this._userPreferences.bgOpacity+")",i=v[this._userPreferences.fontEffect];this._ccElement.style.fontFamily=this._userPreferences.fontName,this._adjustCCSizeToScreen(),this._ccElement.style.color=this._userPreferences.fontColor,this._CCElementInnerSpan.style.backgroundColor=e,this._ccElement.style.textShadow=i,this._updateCCPosition("top"===this._userPreferences.ccPos),s.userAgent.tv&&(s.userAgent.samsung&&this._applyExtraCCSettings(),Object.assign(this._ccElement.style,{position:"absolute",width:"100%",textAlign:"center",bottom:"14%",zIndex:"30"}))}},i.prototype._syncCCLocalStorage=function(){var t=h.default.get(e.CC_LOCAL_STORAGE),i=t&&t.ccSettings;if(i)for(var n in i)i.hasOwnProperty(n)&&!p.isNullOrUndefined(i[n])&&(this._userPreferences[n]=i[n])},i.prototype._propagateCC=function(){var t,e=[m],i=this._getCurrentCaptionId(),n=i?this._captionStore[i]:null;if(this._currentMediaCCPool&&this._currentMediaCCPool.length&&(e=this._currentMediaCCPool.map(function(t){return t.lang})),t=this._currentCC&&this._currentCC.lang||this._userPreferences.lang,this._setCCSimpleMode(!1),n&&!n.hasNonNativeCC){var r=n&&n.tracks||null;r&&r.length&&(e=r.map(function(t){return t.language}),t=this._currentTrack&&this._currentTrack.language||this._userPreferences.lang,this._setCCSimpleMode(!0))}this.publish(y.CC_LIST_FETCHED,{langList:e,selectedLang:t});var o=this._userPreferences.show||this._enableCCOnMute;this._view.controls.updateClosedCaptionButtonState(o),this.publish(y.CC_AVAILABILITY_UPDATE,!0),(this._userPreferences.show||this._enableCCOnMute)&&this.enable()},i.prototype._getCurrentCaptionId=function(){var t,e,i=this._model.playbackState;return i&&i.playingItem&&i.playingItem.adBreakItemId?t=i.playingItem.adBreakItemId:(e=this._model.playlist.getCurrentItem())&&(t=e&&e.id),t},i.prototype._setCCSimpleMode=function(t){this.publish(y.TOGGLE_SIMPLE_CC_CONTROLS,t)},i.prototype._enable=function(t,e){var i=this,n=this._getCurrentCaptionId(),r=n?this._captionStore[n]:null;if(!r||!r.ccAvailable)return!1;var o=function(){var n=r.tracks||[];return!(!n||n.length<1)&&(i._currentTrack=i._getTrackByLanguage(r,e),!!i._currentTrack&&(n.forEach(function(t){t===i._currentTrack?t.mode="showing":t.mode="hidden"}),i._saveAndPropagateData({show:!0,lang:i._currentTrack.language},t),!0))};return r.vttPresent?(f.default.classList(this._ccElement).remove("vp-hide"),f.default.classList(this._ccElement).add("vp-show"),this._isLive&&f.default.classList(this._ccElement).add("vp-live-cc"),r&&r.hasNonNativeCC?(this._saveAndPropagateData({show:!0,lang:m},t),!0):o()):(this._currentCC=this._getCCByLanguage(e),this._currentCC||(this._currentCC=this._getCCByLanguage(this._userPreferences.lang)||this._currentMediaCCPool[0]),!(!s.userAgent.desktop&&!s.userAgent.tv)&&(this._prepareCCForRendering(this._currentCC,function(e){e?(r.parsedCaptions=i._currentCC.parsedCC,f.default.classList(i._ccElement).remove("vp-hide"),f.default.classList(i._ccElement).add("vp-show"),i._saveAndPropagateData({show:!0,lang:i._currentCC.lang},t)):o()}),!0))},i.prototype._getCCByLanguage=function(t){for(var e,i=0,n=this._currentMediaCCPool;i<n.length;i++){var r=n[i];if(t&&r&&r.lang&&r.lang.toLowerCase()===t.toLowerCase().replace("_","-"))return r;r.lang===m&&(e=r)}return e},i.prototype._prepareCCForRendering=function(t,e){var i=this;if(t){var n=this._getCurrentCaptionId(),r=n?this._captionStore[n]:null,o=t.format||u.CaptionsFormats.ttml;if(r&&t){var a={url:t.url};if(s.userAgent.ie&&s.userAgent.ie<10&&(a.cors=!0),t.parsedCC)return e&&e(!0);d.default.ajax(t.url,{context:this,failureHandler:function(t){i._hideAndDisableCC(),e&&e(!1)},successHandler:function(n){r.parsedCaptions=t.parsedCC="srt"===o?i._parseSrt(n):i._grabCCFromTTML(n),r.parsedCaptions&&(r.hasNonNativeCC=!0,i._currentMediaItem&&i._currentMediaItem.setCCAvailability(!0),e&&e(!0)),e&&e(!1)}})}else e&&e(!1)}else e&&e(!1)},i.prototype._hideAndDisableCC=function(t){if(this.publish(y.CC_AVAILABILITY_UPDATE,!1),this._currentCC=null,this._currentTrack=null,this.disable(),t){var e=this._getCurrentCaptionId(),i=e?this._captionStore[e]:null;i&&(i.ccAvailable=!1),this._currentMediaCCPool=[]}},i.prototype._disable=function(t){var e=this._getCurrentCaptionId(),i=e?this._captionStore[e]:null;return this._saveAndPropagateData({show:!1},t),this._isLive&&!this._model.playbackState.ad||!i||i.vttPresent||(i.parsedCaptions=null),i&&i.tracks&&i.tracks.forEach(function(t){t.mode="hidden"}),f.default.classList(this._ccElement).remove("vp-show"),f.default.classList(this._ccElement).add("vp-hide"),!0},i.prototype._saveAndPropagateData=function(t,e){var n,r;t||(t={}),n=t&&t.show,r=t&&t.lang,this._eventBus.publish(l.CCEvent.TOGGLE,n),e&&(p.isBoolean(n)&&(this._userPreferences.show=n,this._enableCCOnMute=n),r&&p.isString(r)&&(this._userPreferences.lang=r),i.saveCCSettingsToLocalStorage({ccSettings:this._userPreferences}))},i.prototype._onPlaybackProgress=function(t,e,i){var n=this._currentMediaItem&&this._currentMediaItem.id||null;n&&!this._currentAdItem&&(this._isLive?this._renderLiveCC(n,e):this._renderVODCC(n,e,i))},i.prototype._renderLiveCC=function(t,e){var i=this;if(t){var n=this._captionStore[t];if(n&&n.hasNonNativeCC&&this._hideNativeCC(n),n&&n.parsedCaptions&&n.parsedCaptions.length){for(var r=0;r<n.parsedCaptions.length&&n.parsedCaptions[r].end<e;)r++;if(r>0&&(setTimeout(function(){n.parsedCaptions.splice(0,r)},100),r>=n.parsedCaptions.length))return;var o=!1;if(n.parsedCaptions[r]&&(o=e>=n.parsedCaptions[r].begin&&e<=n.parsedCaptions[r].end),o){var s=n.parsedCaptions[r].text||"";this._updateCCTextNode(s,n.parsedCaptions[r].settings)}else this._ccLiveClearTO||(this._ccLiveClearTO=setTimeout(function(){i._updateCCTextNode(""),clearTimeout(i._ccLiveClearTO),i._ccLiveClearTO=null},1e3))}else""!==this._CCElementInnerSpan.innerHTML&&this._updateCCTextNode("")}},i.prototype._renderVODCC=function(t,e,i){if(t){var n=this._captionStore[t];if(n&&n.hasNonNativeCC&&this._hideNativeCC(n),n&&n.ccAvailable&&n.parsedCaptions&&n.parsedCaptions.length){for(var r=e/i,o=n.parsedCaptions.length,s=Math.floor(r*o);s>0&&s<o&&e<n.parsedCaptions[s].begin;)s--;for(;s<o&&e>n.parsedCaptions[s].end;)s++;var a=s>=0&&s<o;if(a=a&&n.parsedCaptions[s].begin<=e&&e<=n.parsedCaptions[s].end&&!!n.parsedCaptions[s].text){var u=n.parsedCaptions[s].text||"";this._updateCCTextNode(u,n.parsedCaptions[s].settings)}else this._updateCCTextNode("")}else this._updateCCTextNode("")}},i.prototype._updateCCTextNode=function(t,e){if(t!==this._lastCCText)if(this._lastCCText=t,t){if(this._CCElementInnerSpan.innerHTML=s.userAgent.tv?t:this._breakLinesAndPadSides(t),e)for(var i=0,n=e;i<n.length;i++){var r=n[i].split(":"),o=r[0],a=r[1];"align"===o&&"start"===a?this._ccElement.style.textAlign="left":"line"!==o||this._userPreferences.ccPos?"position"===o&&(this._ccElement.style.left=a,this._limitCCElementSize(),this._ccElement.style.right=""):this._ccElement.style.top=a}}else this._CCElementInnerSpan.innerHTML=""},i.prototype._limitCCElementSize=function(){var t=parseInt(getComputedStyle(this._ccElement).left,10),e=this._model.uiState.videoWidth-t-10+"px";this._ccElement.style.width=e},i.prototype._onSubtitleTrackReceived=function(t){if(t&&t.itemId){var e=t.itemId,i=this._captionStore[e];i||(i={ccAvailable:!1,vttPresent:!1,parsedCaptions:null,tracks:[]},this._captionStore[e]=i);var n=t.track;n&&(n.mode="hidden",i.ccAvailable=!0,i.tracks||(i.tracks=[]),i.tracks.push(n));var r=this._getCurrentCaptionId();r&&r===e&&this._propagateCC()}},i.prototype._onAdSubtitleTrackAdded=function(t){var e=this;this._captionStore[t.itemId]={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this._currentMediaCCPool.push(t.track),this.publish(y.CC_AVAILABILITY_UPDATE,!0),this.publish(y.CC_LIST_FETCHED,{langList:[t.track.lang],selectedLang:t.track.lang}),this._prepareCCForRendering(t.track,function(i){e._currentCC=e._getCCByLanguage(t.track.lang),e._currentCC.ccAvailable=!0,f.default.classList(e._ccElement).remove("vp-hide"),f.default.classList(e._ccElement).add("vp-show"),e._captionStore[t.itemId]=e._currentCC,e._propagateCC(),e._saveAndPropagateData({show:!0,lang:e._currentCC.lang},!1),e._enable(!1,t.track.lang)})},i.prototype._breakLinesAndPadSides=function(t){var e;if(t){var i=t.split("<br/>");if(i.length>1){for(e=0;e<i.length;e++)i[e].trim()&&(i[e]="&nbsp;"+i[e]+"&nbsp;",e<i.length-1&&(i[e]+="<br/>"));return i.join("")}t=t.trim(),this._CCElementInnerSpan.innerHTML=t;var n=Math.floor(this._CCElementInnerSpan.offsetHeight/(this._currentFontSize+2)),r=[],o=0,s=void 0,a=void 0;for(e=0;e<n;e++)(s=e===n-1)?a=t.length:(a=Math.floor(t.length/n*(e+1)),/\s/.test(t.charAt(a))||(a=t.indexOf(" ",t.lastIndexOf(" ",a)))),a>o&&r.push("&nbsp;"+t.substring(o,a)+"&nbsp;"+(s?"":"<br/>")),o=a+1;return r.join("")}return t},i.prototype._hideNativeCC=function(t){(t&&t.tracks||[]).forEach(function(t){t.mode="hidden"})},i.prototype._syncCCPreferences=function(){this.updateCCStyle()},i.prototype._adjustCCSizeToScreen=function(){var t=0,e=this._view.getMainElement();e&&(t=e.offsetWidth);var i=Math.ceil(this._userPreferences.fontSize*(t/640));t>640?i=Math.ceil(.8*i):t<640?i<10&&(i=10):i=this._userPreferences.fontSize,this._currentFontSize=i,this._ccElement.style.fontSize=this._currentFontSize+"px"},i.prototype._loadVttSegment=function(t,e){if(t){var i=t.itemId;if(i){var n=this._captionStore[i];if(n||(n={ccAvailable:!1,vttPresent:!1,parsedCaptions:null},this._captionStore[i]=n),n.hasNonNativeCC=!0,!n.parsedCaptions||!n.ccAvailable){n.parsedCaptions=n.parsedCaptions||[],n.vttPresent=!0,n.ccAvailable=!0;var r=this._model.playlist.getMediaItemById(i);r&&r.setCCAvailability(!0);var o=this._getCurrentCaptionId();o&&o===i&&this._propagateCC()}if(n.vttPresent){var s=t.adjustedTime?t.adjustedTime:0,a=this._parseVTT(t.data||"",s,e);n.parsedCaptions=this._appendToCaptionStore(n.parsedCaptions,a)}}}},i.prototype._appendToCaptionStore=function(t,e){if(t&&e){if(!t.length)return e;for(var i=0;i<e.length;){for(var n=t.length-1;n>=0;){if(t[n].begin===e[i].begin){t.splice(n,1,e[i]);break}if(!(t[n].begin>e[i].begin)){t.splice(n+1,0,e[i]);break}n--}-1===n&&t[0].begin>e[i].begin&&t.unshift(e[i]),i++}return t}},i.prototype._canPlayVtt=function(t){if(!t)return!1;if(this._isLive||!this._isLive&&t.rendererType===c.RendererType.HTML5_HLS){var e=t.getSubtitleStreams();if(e&&e.length>0)return!0}return!t.closedCaptions||!t.closedCaptions.length},i.prototype._processAndPropagateCC=function(t){var e=this;this._getCCByRenderer(function(t){e._currentMediaCCPool=t,e._currentMediaCCPool.length>0?(s.userAgent.mobile?e.publish(y.CC_LIST_FETCHED_MOBILE,{langList:e._currentMediaCCPool,selectedLang:e._userPreferences.lang}):(e.publish(y.CC_LIST_FETCHED,{langList:e._currentMediaCCPool.map(function(t){return t.lang}),selectedLang:e._userPreferences.lang}),e._currentMediaItem&&e._currentMediaItem.setCCAvailability(!0)),e._userPreferences.show||e._enableCCOnMute?e.enable(e._userPreferences.lang):e.disable()):e._hideAndDisableCC(!0)},t,s.userAgent.desktop||s.userAgent.tv)},i.prototype._transformTTMLToVTT=function(t,e){var i=this,n=!1,r=[];e.forEach(function(o){i._ccUrlToVttBlobUrl(o.url,function(i){i?(o.url=i,function(i){r.push(i),r.length===e.length&&t(r)}(o)):(!n&&t(r),n=!0)})})},i.prototype._ccUrlToVttBlobUrl=function(t,e){var i=this,n={url:t};s.userAgent.ie&&s.userAgent.ie<10&&(n.cors=!0);d.default.ajax(t,{context:this,failureHandler:function(){return e(null)},successHandler:function(n){try{var r=t.indexOf("ttml")>-1?i._ttmlToVtt(n):n,o=new Uint8Array(i._utf8ToBytes(r)),s=URL.createObjectURL(new Blob([o],{type:"text/vtt"}));e(s)}catch(t){e(null)}}})},i.prototype._getCCByRenderer=function(t,e,i){var n,r=function(t){return t.content_type===n};if(i)n="application/ttml+xml",t(e.filter(r));else{n="text/vtt";var o=e.filter(r);0===o.length?this._transformTTMLToVTT(t,e):t(o)}},i.prototype._utf8ToBytes=function(t){for(var e=[],i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n<=127)e.push(n);else{var r=i;n>=55296&&n<=57343&&i++;for(var o=0,s=encodeURIComponent(t.slice(r,i+1)).substr(1).split("%");o<s.length;o++){var a=s[o];e.push(parseInt(a,16))}}}return e},i.prototype._ttmlToVtt=function(t){var e="WEBVTT\n\n",i=(new window.DOMParser).parseFromString(t,"application/xml").documentElement.querySelectorAll("p");return Array.prototype.forEach.call(i,function(t){var i=t.getAttribute("id"),n=t.getAttribute("begin"),r=t.getAttribute("end"),o="";Array.prototype.forEach.call(t.childNodes,function(t){""!==t.textContent&&(o+=t.textContent+" ")}),o=o.replace(/<br.*?\/\>/," "),e+=i+"\n",e+=n+" --\x3e "+r+"\n",e+=o+"\n\n"}),e},i.prototype._grabCCFromTTML=function(t){for(var e=[],i=0,n=(new window.DOMParser).parseFromString(t,"application/xml").documentElement.querySelectorAll("p");i<n.length;i++){var r=n[i],o={};if(o.begin=this._parseToSeconds(r.getAttribute("begin")),o.end=this._parseToSeconds(r.getAttribute("end")),!o.end&&(o.end=this._parseToSeconds(r.getAttribute("dur"))&&this._parseToSeconds(r.getAttribute("begin"))+this._parseToSeconds(r.getAttribute("dur")),!o.end)){e=null,this._hideAndDisableCC(!0);break}""!==r.textContent&&(o.text=r.textContent),e.push(o)}return e},i.prototype._parseSrt=function(t){var e=[],i=t.split(/\r\n|\r|\n/),n=function(t){var e=null,i=(t=t.replace(",",".")).split(":");try{e=3600*Number(i[0])+60*Number(i[1])+Number(i[2])}catch(t){return null}return e};try{if(i.length<=1)throw new Error("Invalid SRT document: no data found");var r=void 0,o=void 0,s=void 0,a=void 0,u=0;for(r=0;r<i.length;r++){var l={},c=a=+(o=i[r]);if(""!==o)if(!isNaN(c)&&u<c)if(-1!==(o=i[++r]).indexOf(" --\x3e ")){if(s=o.split(" --\x3e "),l.begin=s[0].trim(),l.end=s[1].trim(),(o=i[++r])&&""!==o){l.text=o,i[r+1]&&""!==i[r+1]&&(l.text+="<br />"+i[r+1],r++);var d=l.begin,h=void 0;for(l.end?h=l.end:l.dur&&(h=d+l.dur),e.push({begin:n(d),end:n(h),text:l.text});""!==i[r]&&r<i.length;)r++;u=a}}else for(;""!==i[r]&&r<i.length;)r++;else for(;""!==i[r]&&r<i.length;)r++}}catch(t){}return e},i.prototype._parseVTT=function(t,e,i){for(var n,r,o,a,u=t.split(/\r\n|\r|\n/),l=u.length,c=/((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})\s+.+\s+((?:\d{2,}:)?\d{2}:\d{2}\.\d{2,3})/,d=[],h=0,p=0,f=0;f<l;f++)if(c.test(u[f])){if(p>0){for(o=u[r=f-1]&&u[r].trim(),a=u[r-1]&&u[r-1].trim(),""!==o&&""===a&&r--,n=p;n<=r;n++)d[h].text+=u[n]+(n+1<=r?"<br/>":"");h++}var _=u[f].match(c);if(!_)continue;!i||this._zeroTimeIndicator||s.userAgent.tizen||(this._zeroTimeIndicator=1e3*this._parseToSeconds(_[1]));var m=1e3*this._parseToSeconds(_[1]),y=1e3*this._parseToSeconds(_[2]);i&&!s.userAgent.tizen?(m-=this._zeroTimeIndicator,y-=this._zeroTimeIndicator):(m=m%g+e,y=y%g+e),d[h]={begin:m/1e3,end:y/1e3,text:""},p=f+1;for(var v=[],E=u[f].split(/\s+/).filter(function(t){return t.length>0}),b=3;b<E.length;b++)v.push(E[b]);v.length>0&&(d[h].settings=v)}if(p>0&&p<l)for(n=p;n<l;n++)d[h].text+=u[n]+(n+2<l?"<br/>":"");return d},i.prototype._parseToSeconds=function(t){var e,i,n=0;if(t)for(var r=(i=(e=t.split(":")).length)-1;r>=0;r--)n+=e[i-1-r]*Math.pow(60,r);return n},i.prototype._getTrackByLanguage=function(t,e){var i,n=t&&t.tracks||[],r=function(t){n.some(function(e){var n=e.language;return!(!n||!t||n.toLowerCase()!==t.toLowerCase())&&(i=e,!0)})};return r(e=e||this._userPreferences.lang||m),!i&&this._userPreferences.lang&&r(this._userPreferences.lang),!i&&n[0]&&(i=n[0]),i},i.prototype._floatCCPosition=function(t){var e=this._ccElement,i=this._getCurrentCaptionId(),n=i?this._captionStore[i]:null;n&&n.ccAvailable&&!f.default.classList(e).contains("vp-hide")&&("bottom"===this._userPreferences.ccPos&&(t?(f.default.classList(e).remove("float"),f.default.classList(e).remove("bottom")):(f.default.classList(e).add("float"),f.default.classList(e).add("bottom"))))},i.prototype._updateCCPosition=function(t){var e=this._ccElement;t?(f.default.classList(e).remove("bottom"),f.default.classList(e).add("top")):(f.default.classList(e).add("bottom"),f.default.classList(e).remove("top"))},i.prototype._applyExtraCCSettings=function(){var t=v[this._userPreferences.fontEffect],e=this._userPreferences.windowBgColor&&f.default.cssHexToRgb(this._userPreferences.windowBgColor)||{r:0,g:0,b:0},i=0===this._userPreferences.windowBgOpacity?"transparent":"rgba("+e.r+","+e.g+","+e.b+","+this._userPreferences.windowBgOpacity+")";this._ccElement.style.backgroundColor=i;var n=this._userPreferences.fontColor&&f.default.cssHexToRgb(this._userPreferences.fontColor)||{r:255,g:255,b:255},r=0===this._userPreferences.fontOpacity?"transparent":"rgba("+n.r+","+n.g+","+n.b+","+this._userPreferences.fontOpacity+")";this._CCElementInnerSpan.style.color=r;var o=this._userPreferences.fontEdgeColor&&f.default.cssHexToRgb(this._userPreferences.fontEdgeColor)||{r:255,g:255,b:255};switch(this._userPreferences.fontEffect){case"dropshadow":case"raised":case"depressed":t=t.replace("rgba(0, 0, 0","rgba("+o.r+", "+o.g+", "+o.b);break;case"uniform":t=t.replace(/#000/g,this._userPreferences.fontEdgeColor)}this._ccElement.style["text-shadow"]=t},i}(o.default);e.CCController=E},PKsF:function(t,e,i){!function(t){var e=/\S/,i=/\"/g,n=/\n/g,r=/\r/g,o=/\\/g,s=/\u2028/,a=/\u2029/;function u(t){"}"===t.n.substr(t.n.length-1)&&(t.n=t.n.substring(0,t.n.length-1))}function l(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function c(t,e,i){if(e.charAt(i)!=t.charAt(0))return!1;for(var n=1,r=t.length;n<r;n++)if(e.charAt(i+n)!=t.charAt(n))return!1;return!0}t.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},t.scan=function(i,n){var r=i.length,o=0,s=null,a=null,d="",h=[],p=!1,f=0,_=0,m="{{",y="}}";function v(){d.length>0&&(h.push({tag:"_t",text:new String(d)}),d="")}function g(i,n){if(v(),i&&function(){for(var i=!0,n=_;n<h.length;n++)if(!(i=t.tags[h[n].tag]<t.tags._v||"_t"==h[n].tag&&null===h[n].text.match(e)))return!1;return i}())for(var r,o=_;o<h.length;o++)h[o].text&&((r=h[o+1])&&">"==r.tag&&(r.indent=h[o].text.toString()),h.splice(o,1));else n||h.push({tag:"\n"});p=!1,_=h.length}function E(t,e){var i="="+y,n=t.indexOf(i,e),r=l(t.substring(t.indexOf("=",e)+1,n)).split(" ");return m=r[0],y=r[r.length-1],n+i.length-1}for(n&&(n=n.split(" "),m=n[0],y=n[1]),f=0;f<r;f++)0==o?c(m,i,f)?(--f,v(),o=1):"\n"==i.charAt(f)?g(p):d+=i.charAt(f):1==o?(f+=m.length-1,"="==(s=(a=t.tags[i.charAt(f+1)])?i.charAt(f+1):"_v")?(f=E(i,f),o=0):(a&&f++,o=2),p=f):c(y,i,f)?(h.push({tag:s,n:l(d),otag:m,ctag:y,i:"/"==s?p-m.length:f+y.length}),d="",f+=y.length-1,o=0,"{"==s&&("}}"==y?f++:u(h[h.length-1]))):d+=i.charAt(f);return g(p,!0),h};var d={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,e){for(var i=0,n=e.length;i<n;i++)if(e[i].o==t.n)return t.tag="#",!0}function p(t,e,i){for(var n=0,r=i.length;n<r;n++)if(i[n].c==t&&i[n].o==e)return!0}function f(t){var e=[];for(var i in t.partials)e.push('"'+m(i)+'":{name:"'+m(t.partials[i].name)+'", '+f(t.partials[i])+"}");return"partials: {"+e.join(",")+"}, subs: "+function(t){var e=[];for(var i in t)e.push('"'+m(i)+'": function(c,p,t,i) {'+t[i]+"}");return"{ "+e.join(",")+" }"}(t.subs)}t.stringify=function(e,i,n){return"{code: function (c,p,i) { "+t.wrapMain(e.code)+" },"+f(e)+"}"};var _=0;function m(t){return t.replace(o,"\\\\").replace(i,'\\"').replace(n,"\\n").replace(r,"\\r").replace(s,"\\u2028").replace(a,"\\u2029")}function y(t){return~t.indexOf(".")?"d":"f"}function v(t,e){var i="<"+(e.prefix||"")+t.n+_++;return e.partials[i]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+m(i)+'",c,p,"'+(t.indent||"")+'"));',i}function g(t,e){e.code+="t.b(t.t(t."+y(t.n)+'("'+m(t.n)+'",c,p,0)));'}function E(t){return"t.b("+t+");"}t.generate=function(e,i,n){_=0;var r={code:"",subs:{},partials:{}};return t.walk(e,r),n.asString?this.stringify(r,i,n):this.makeTemplate(r,i,n)},t.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},t.template=t.Template,t.makeTemplate=function(t,e,i){var n=this.makePartials(t);return n.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(n,e,this,i)},t.makePartials=function(t){var e,i={subs:{},partials:t.partials,name:t.name};for(e in i.partials)i.partials[e]=this.makePartials(i.partials[e]);for(e in t.subs)i.subs[e]=new Function("c","p","t","i",t.subs[e]);return i},t.codegen={"#":function(e,i){i.code+="if(t.s(t."+y(e.n)+'("'+m(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',t.walk(e.nodes,i),i.code+="});c.pop();}"},"^":function(e,i){i.code+="if(!t.s(t."+y(e.n)+'("'+m(e.n)+'",c,p,1),c,p,1,0,0,"")){',t.walk(e.nodes,i),i.code+="};"},">":v,"<":function(e,i){var n={partials:{},code:"",subs:{},inPartial:!0};t.walk(e.nodes,n);var r=i.partials[v(e,i)];r.subs=n.subs,r.partials=n.partials},$:function(e,i){var n={subs:{},code:"",partials:i.partials,prefix:e.n};t.walk(e.nodes,n),i.subs[e.n]=n.code,i.inPartial||(i.code+='t.sub("'+m(e.n)+'",c,p,i);')},"\n":function(t,e){e.code+=E('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+y(t.n)+'("'+m(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=E('"'+m(t.text)+'"')},"{":g,"&":g},t.walk=function(e,i){for(var n,r=0,o=e.length;r<o;r++)(n=t.codegen[e[r].tag])&&n(e[r],i);return i},t.parse=function(e,i,n){return function e(i,n,r,o){var s,a=[],u=null,l=null;for(s=r[r.length-1];i.length>0;){if(l=i.shift(),s&&"<"==s.tag&&!(l.tag in d))throw new Error("Illegal content in < super tag.");if(t.tags[l.tag]<=t.tags.$||h(l,o))r.push(l),l.nodes=e(i,l.tag,r,o);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(u=r.pop(),l.n!=u.n&&!p(l.n,u.n,o))throw new Error("Nesting error: "+u.n+" vs. "+l.n);return u.end=l.i,a}"\n"==l.tag&&(l.last=0==i.length||"\n"==i[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}(e,0,[],(n=n||{}).sectionTags||[])},t.cache={},t.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},t.compile=function(e,i){i=i||{};var n=t.cacheKey(e,i),r=this.cache[n];if(r){var o=r.partials;for(var s in o)delete o[s].instance;return r}return r=this.generate(this.parse(this.scan(e,i.delimiters),e,i),e,i),this.cache[n]=r}}(e)},Pp1v:function(t,e,i){"use strict";t.exports=l;var n=i("/iNa"),r=i("yvII").Events,o=i("2fkz"),s=o.Command,a=o.CmdNames,u=o.CmdEvents;function l(t,e){if(!t||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");s.call(this,t,e),this._maxRetries=1,this._retryExclusion=[403],this.name=a.CMD_LICENSE_LOAD,this._loader=t.controller.services.getNewLoader(this._configureLoaderOptions())}n.inherits(l,s),l.prototype.destroy=function(){this._loader.destroy(),s.prototype.destroy.call(this)},l.prototype.execute=function(){var t=this,e=t.data.url;t._loader.addEventListener(r.COMPLETE,function(e){t.publish(u.CMD_COMPLETE,t,e)},t),t._loader.addEventListener(r.ERROR,function(e){t.publish(u.CMD_ERROR,t,e)},t),t._loader.load(e,t.data.challenge)},l.prototype.cancel=function(){},l.prototype._configureLoaderOptions=function(){return{method:"POST",responseType:"arraybuffer",headerFields:this.data.headerFields,url:this.data.url,maxRetries:this._maxRetries,retryExclusion:this._retryExclusion}}},Pqkt:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2"),r=i("ma23"),o=i("MPla"),s="content.uplynk.com",a={title:"",description:"",posterUrl:"",thumbnail:"",duration:0,type:n.MediaItemType.VOD},u=function(){function t(){this.version="0.2.137",this.mimetype=n.MediaItemMimeType.UPLYNK,this.type=r.PluginType.METADATA,this._cancelRequests=[],this._assetInfoFetched={},o.default.preconnect("preconnect-uplynk","//"+s)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,e,i){var n=this;if(Array.isArray(t)&&0!==t.length){var r=t.map(function(t){return new Promise(function(e,r){n._resolveMediaItem(t,e,r,i)})});this._cancelled=!1;var o=function(){n._cancelled=!0};this._cancelRequests.push(o),Promise.all(r).then(function(t){n._cancelled||(n._removeCancelRequest(o),i.onComplete(t))}).catch(function(t){if(!n._cancelled){n._removeCancelRequest(o);var e={code:"1",message:t.toString()};i.onError(e)}})}},t.prototype.recover=function(t,e,i){},t.prototype.cancel=function(){this._cancelRequests.forEach(function(t){t()}),this._cancelRequests=[]},t.prototype.destroy=function(){this.cancel()},t.prototype._resolveMediaItem=function(t,e,i,r){var o=this,s=t.id,u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t&&t.length?t[0]:null,s=t.length?t[4]:null,a=t.length?t[5]:null;o._cancelled||r.onApiCallInfo({url:a&&a.url||null,perfObj:s}),i(n)},l=function(i,n,u,l){t.metadata=t.metadata||{},t.metadata.title=i.meta&&i.meta.title||i.desc||a.title,t.metadata.description=i.desc||a.description,t.metadata.posterUrl=i.poster_url||a.posterUrl,t.metadata.thumbnail=i.poster_url||a.thumbnail,t.metadata.duration=i.duration||a.duration,t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.assetInfo={maxSlice:i.max_slice,sliceDuration:i.slice_dur,thumbPrefix:i.thumb_prefix,thumbs:i.thumbs},o._assetInfoFetched[s]=!0,o._cancelled||r.onApiCallInfo({url:l&&l.url||null,perfObj:u}),e(t)};!function(){var i=t.metadata;if(!i||i.type!==n.MediaItemType.LIVE_CHANNEL&&i.type!==n.MediaItemType.LIVE_EVENT||o._setDefaultItemMetadata(t),o._hasAllRequiredMeta(t)||o._assetInfoFetched[s])return e(t);o._makeAssetInfoRequest(t,l,u)}()},t.prototype._makeAssetInfoRequest=function(t,e,i){var n=t.customConfig&&t.customConfig.sid,r="https://"+s+"/player/assetinfo/{assetid}.json".replace("{assetid}",t.id)+(n?"?pbs="+n:"");this._makeRequest(r,e,i)},t.prototype._makeRequest=function(t,e,i){var n=this,r=o.default.ajax(t,{context:this,successHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];n._removeCancelRequest(r),e.apply(void 0,t)},failureHandler:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._removeCancelRequest(r),i.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this._cancelRequests.push(r)},t.prototype._removeCancelRequest=function(t){if(t){var e=this._cancelRequests.indexOf(t);e>=0&&this._cancelRequests.splice(e,1)}},t.prototype._setDefaultItemMetadata=function(t){for(var e in t.metadata=t.metadata||{},a)void 0===t.metadata[e]&&(t.metadata[e]=a[e])},t.prototype._hasAllRequiredMeta=function(t){return!(!t||!t.metadata||void 0===t.metadata.title||void 0===t.metadata.description||void 0===t.metadata.thumbnail||void 0===t.metadata.posterUrl||void 0===t.metadata.duration)},t}();e.default=u},Pu4D:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("t8Yn"),s=i("TQia"),a=function(t){function e(e){var i=t.call(this,e)||this;return i._playerFileName="oath-player",i}return r(e,t),e.prototype._onPlaybackStarted=function(e){e.pgltcy=this._model.pageLatency&&this._model.pageLatency.toString()||"na";var i=this._model.mmActivityId;i&&(e.mm_activity_id=i),t.prototype._onPlaybackStarted.call(this,e)},e.prototype._getAnalyticsModel=function(t){return new s.default(t)},e}(o.Analytics.VdmsAnalytics);e.default=a},PwYT:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listenEventDispatcherEvts=function(t,e,i){var n={},r=Array.isArray(e)?e:[e];return r.forEach(function(e){var r=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];i.apply(void 0,[t,e].concat(n))}}(e);t.addEventListener(e,r),n[e]=r}),function(){n&&(r.forEach(function(e){var i=n[e];t.removeEventListener(e,i)}),r=n=null)}}},"Q+FR":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("8PPl"),r=i("WSjl"),o=i("+Ojf"),s=function(){function t(t){this._controller=t,this._model=t.model}return t.prototype.play=function(t,e){this._controller.getPlaybackState()===r.States.INIT&&t>0&&t<this.getDuration()&&(this._controller.startTime=t);var i={type:n.REQUEST_TYPES.API,action:null};e&&o.default.isValidRequestAction(e.requestAction)&&(i.action=e.requestAction),this._controller.play(i)},t.prototype.pause=function(t){var e={type:n.REQUEST_TYPES.API,action:null};t&&o.default.isValidRequestAction(t.requestAction)&&(e.action=t.requestAction),this._controller.pause(e)},t.prototype.preload=function(){this._controller.preload()},t.prototype.seek=function(t){this._controller.seek(t)},t.prototype.disableControls=function(){this._controller.disableControls()},t.prototype.enableControls=function(){this._controller.enableControls()},t.prototype.enableCC=function(t){this._controller.enableCC(t)},t.prototype.disableCC=function(){this._controller.disableCC()},t.prototype.isPlaying=function(){return this._controller.isPlayMode()},t.prototype.isPlayMode=function(){return this._controller.isPlayMode()},t.prototype.getPlaybackState=function(){return this._controller.getPlaybackState()},t.prototype.isLoading=function(){return this._controller.isLoading()},t.prototype.getDuration=function(){return this._controller.duration},t.prototype.getRawDuration=function(){return this._controller.rawDuration},t.prototype.getCurrentTime=function(){return this._controller.currentTime},t.prototype.getRawCurrentTime=function(){return this._controller.rawCurrentTime},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this._controller.fullscreen=t},t.prototype.getFullscreen=function(){return this._controller.fullscreen},t.prototype.setVolume=function(t){t=(t=t<0?0:t)>1?1:t,this._controller.volume=t},t.prototype.getVolume=function(){return this._controller.volume},t.prototype.setMute=function(t){this._controller.mute=t},t.prototype.getMute=function(){return this._controller.mute},t.prototype.setLoop=function(t){this._controller.loop=t},t.prototype.setContinuousPlay=function(t){this._controller.continuousPlay=t},t.prototype.resumeContinuousPlay=function(){var t={type:n.REQUEST_TYPES.API};this._controller.resumeContinuousPlay(t)},t.prototype.getCurrentDate=function(){return this._controller.currentDate},t.prototype.setAudioLanguage=function(t){},t}();e.default=s},QOmE:function(t,e,i){"use strict";t.exports=a;var n=i("x7P6").StreamingMode,r=i("x7P6").MetadataTypes,o=i("TsVQ"),s=i("tPWK");function a(){this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3},this.mpdParser=new o}a.prototype.destroy=function(){this.mpdParser.destroy()},a.prototype.parse=function(t){if(!t)return null;return t.type===r.STRUCTURED?(new s).parseStructuredMetadata(t):this._parseRawMetadata(t)},a.prototype._parseRawMetadata=function(t){var e={},i=t.rawData;return""!==i&&i?-1!==i.indexOf("<MPD")?(t.streamingMode=n.DASH,this.mpdParser.parse(t)):-1!==i.indexOf("#EXTM3U")?(t.streamingMode=n.HLS,(new s).parse(t)):(e.error=this.ERRORS.INVALID_M3U8,e):(e.error=this.ERRORS.EMPTY_DATA,e)}},"R+G7":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=function(){function t(){}return Object.defineProperty(t,"deviceType",{get:function(){return n.userAgent.mobile?n.userAgent.ipad||n.userAgent.androidTablet?"tablet":"phone":n.userAgent.tv?"tv":"desktop"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"canPlayInline",{get:function(){return!n.userAgent.mobile||(n.userAgent.android&&n.userAgent.chrome>=50||n.userAgent.ios&&n.userAgent.iosVersion>=10)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"hasMuteAtFirstPlayRestriction",{get:function(){return n.userAgent.android&&n.userAgent.chrome>=56},enumerable:!0,configurable:!0}),Object.defineProperty(t,"hasLoadRestriction",{get:function(){return n.userAgent.ios&&n.userAgent.iosVersion>=11},enumerable:!0,configurable:!0}),Object.defineProperty(t,"hasTouchRestrictions",{get:function(){return n.userAgent.mobile&&(t.hasNativeAutoplaySupport||t.hasLoadRestriction)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"needsGestureToPlay",{get:function(){return t._needsGestureToPlay(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"needsGestureToPlayUnmuted",{get:function(){return t._needsGestureToPlay(!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"autoplaySupported",{get:function(){return t.canPlayInline&&t.isAutoplaySupported()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"drmSupported",{get:function(){return n.userAgent.ios?!(!(n.userAgent.iosVersion>11.2&&n.userAgent.safari)||n.userAgent.iosWebView||n.userAgent.chrome||n.userAgent.firefox):n.userAgent.android?!!n.userAgent.chrome:!!n.userAgent.desktop},enumerable:!0,configurable:!0}),Object.defineProperty(t,"autoplayByUIEvtOnly",{get:function(){return t.autoplaySupported&&t.canAutoplayByUIEvtOnly()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"hasNativeAutoplaySupport",{get:function(){return t.autoplaySupported&&!t.autoplayByUIEvtOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t,"airplaySupported",{get:function(){return!1},enumerable:!0,configurable:!0}),t.updateNetwork=function(e,i){i&&!t.network.available&&(t.network.mobile=e,t.network.connectionType=i,t.network.available=!0)},t.update=function(t,e){"boolean"==typeof t&&e&&!this.network.available&&(this.network.mobile=t,this.network.connectionType=e,this.network.available=!0)},t.isAutoplaySupported=function(){return!n.userAgent.mobile||(n.userAgent.android&&n.userAgent.chrome>=50||n.userAgent.ios&&n.userAgent.iosVersion>=10||!1)},t.canAutoplayByUIEvtOnly=function(){return!!(n.userAgent.android&&n.userAgent.chrome>=50&&n.userAgent.chrome<53||n.userAgent.iosVersion>=10&&t.needsGestureToPlay)},t._needsGestureToPlay=function(t){var e=window.document.createElement("video");e.muted=t,e.setAttribute("playsinline","true");var i=e.play&&e.play();i&&i.catch(function(t){});var n=e.paused;return e=null,n},t.network={available:!1,connectionType:"unknown",mobile:!1},t}();e.default=r},R6Gm:function(t,e,i){"use strict";t.exports=u;var n=i("2fkz"),r=n.CmdEvents,o=n.CmdNames,s=i("tGho"),a=i("/iNa");function u(){for(var t in this._commandMap={},this._eventKeys={},o)o.hasOwnProperty(t)&&(this._commandMap[o[t]]={})}u.prototype.destroy=function(){this.removeAllCommands(),this._commandMap=null},u.prototype.executeCommand=function(t,e,i){e&&(e.controller=this.__controller);var n=this.createCommand(t,e,i);return n&&n.execute(),n},u.prototype.createCommand=function(t,e,i){var n;try{n=s.create(t,e,i)}catch(t){n=null}if(!n)return null;for(var o in n.key=a.guid(),r)if(r.hasOwnProperty(o)){var u=r[o],l="on"+t+u;i[l]&&(this._eventKeys[u+t+n.key]=n.addEventListener(u,i[l],i))}return this._commandMap[t][n.key]=n,n},u.prototype.removeCommand=function(t){if(t){var e=this._commandMap[t.name];if(e[t.key]===t){if(delete e[t.key],t.client)for(var i in r)if(r.hasOwnProperty(i)){var n=r[i],o="on"+t.name+n;t.client[o]&&(t.removeEventListener(n,this._eventKeys[n+t.name+t.key]),delete this._eventKeys[n+t.name+t.key])}t.destroy()}}},u.prototype.removeRelatedCommands=function(t){if(this._commandMap.hasOwnProperty(t)){var e=this._commandMap[t];for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];n&&this.removeCommand(n)}}},u.prototype.removeAllCommands=function(){for(var t in this._commandMap)this._commandMap.hasOwnProperty(t)&&this.removeRelatedCommands(t)},u.prototype.getCommand=function(t){var e=this._commandMap[t];if(!e)return null;var i=Object.keys(e);return i.length<1?null:e[i[i.length-1]]}},R9ZO:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=i("c+yx"),o=i("AuZZ"),s="https:"===document.location.protocol?"https://sb.":"http://b.";e.COMSCORE_IAB_VENDOR_ID=77;var a=function(){function t(t,e){this._player=t,this._playlist=e,this._bufferingStart=!1,this._bitrate=0,this._partNumber=0,this._currentIndex=0,this._gdprApplies=!1,this._ucfr="",this._contentIndex=null,t&&e&&(r.default.initIframeCmp(),this._getVendorConsent(),this._streamSenseTag={},this._comscoreBeaconQueue=[],this._eventMap={},this._loadStreamSense())}return t.prototype.destroy=function(){this._streamSenseTag=null,this._comscoreBeaconQueue=null,this._eventMap=null,this._contentIndex=null},t.prototype._bindEvents=function(){this._player.addEventListener(n.Events.MEDIA_ITEM_METADATA,this._onMediaItemChanged,this),this._player.addEventListener(n.Events.PLAYBACK_COMPLETE,this._onPlaybackComplete,this),this._player.addEventListener(n.Events.PLAYBACK_SEEKING,this._onPlaybackSeeking,this),this._player.addEventListener(n.Events.PLAYBACK_SEEK_COMPLETE,this._onPlaybackSeeked,this),this._player.addEventListener(n.Events.PLAYBACK_PAUSE,this._onPlaybackPaused,this),this._player.addEventListener(n.Events.PLAYBACK_RESUMED,this._onPlaybackResumed,this),this._player.addEventListener(n.Events.BUFFERING_START,this._onWaiting,this),this._player.addEventListener(n.Events.PLAYBACK_START,this._setVideoClipLabels,this),this._player.addEventListener(n.Events.VIDEO_STARTED,this._onPlaying,this),this._player.addEventListener(n.Events.PLAYER_VOLUME_CHANGE,this._onVolumeChanged,this),this._player.addEventListener(n.Events.BITRATE_CHANGE,this._onBitrateChange,this),this._player.addEventListener(n.Events.AD_BREAK_ITEM_ENDED,this._onAdPlaybackComplete,this),this._player.addEventListener(n.Events.AD_BREAK_ITEM_CURRENT,this._setAdClipLabels,this)},t.prototype._loadStreamSense=function(){var t=this;if(window.ns_&&window.ns_.StreamSense)this._createStreamingTag();else{r.default.lazyLoad("https://s.yimg.com/rx/builds/7.86.675.1520450663/assets/streamsense.min.js",function(e){e&&window.ns_&&window.ns_.StreamSense&&t._createStreamingTag()})}},t.prototype._createStreamingTag=function(){var t=s+"scorecardresearch.com/p?c1=2&c2=7241469";this._streamSenseTag=new window.ns_.StreamSense({},t),this._eventMap={play:window.ns_.StreamSense.PlayerEvents.PLAY,pause:window.ns_.StreamSense.PlayerEvents.PAUSE,buffer:window.ns_.StreamSense.PlayerEvents.BUFFER,end:window.ns_.StreamSense.PlayerEvents.END},this._bindEvents()},t.prototype._onBitrateChange=function(t){this._bitrate=t},t.prototype._onMediaItemChanged=function(t,e){var i=this;this._currentIndex=0,this._contentIndex=null,this._partNumber=0;var n=e.offNetwork?4:window.top!==window.self?3:1,r="";switch(n){case 3:r="Emb onNet";break;case 4:r="Emb offNet";break;default:r="onProp"}var s=this._getObjectFromstate(e,"metrics"),a=this._getObjectFromstate(e,"license");this._setComscorePersistentLabels(e),this._addToComscoreQueue(function(){i._setPlaylist({y_lms:a.salesforceId||o.INT_DEFAULT,c6:s.comscore6||o.INT_DEFAULT,y_sp:e&&e.streamProtocol?e.streamProtocol:o.STRING_DEFAULT,y_stype:e&&e.streamType?e.streamType:o.STRING_DEFAULT,ns_st_pl:e&&e.title?e.title:o.STRING_DEFAULT,ns_st_cs:e.uiState.width+"x"+e.uiState.height,y_st:e.siteAnalytics||e.site||o.STRING_DEFAULT,y_rg:e.region,y_lc:r,y_pb:o.STRING_DEFAULT})})},t.prototype._onPlaybackSeeking=function(t){var e=this,i=this._player.getCurrentTime();this._addToComscoreQueue(function(){var n=t.paused?"pause":"play";e._notifyState(n,{ns_st_ui:"seeking"},(1e3*i).toString())})},t.prototype._onPlaybackSeeked=function(t){var e=this,i=this._player.getCurrentTime();this._addToComscoreQueue(function(){var n=t.paused?"pause":"play";e._notifyState(n,{ns_st_ui:"seeking"},(1e3*i).toString())})},t.prototype._onWaiting=function(t){var e=this,i=this._player.getCurrentTime();this._addToComscoreQueue(function(){e._notifyState("buffer",{},(1e3*i).toString())}),this._bufferingStart=!0},t.prototype._onPlaying=function(t,e){var i=this,n=this._player.getCurrentTime();this._bufferingStart&&(this._addToComscoreQueue(function(){i._notifyState("play",{},(1e3*n).toString())}),this._bufferingStart=!1)},t.prototype._onPlaybackComplete=function(t,e){var i=this,n=this._player.getCurrentTime(),r=this._bitrate,o={};o.ns_st_br=r.toString();var s=this._playlist.getIndexForId(t.id),a=this._playlist.getSize();-1!==s&&s===a-1&&(o.ns_st_pe="1"),this._addToComscoreQueue(function(){i._notifyState("end",o,(1e3*n).toString())})},t.prototype._onPlaybackPaused=function(t){var e=this,i=this._player.getCurrentTime();this._addToComscoreQueue(function(){e._notifyState("pause",{},(1e3*i).toString())})},t.prototype._onPlaybackResumed=function(t,e){var i=this,n=this._player.getCurrentTime();this._addToComscoreQueue(function(){i._notifyState("play",{},(1e3*n).toString())})},t.prototype._onVolumeChanged=function(t){var e=this;this._addToComscoreQueue(function(){e._updateClipAttrs({ns_st_vo:Math.round(100*t)})})},t.prototype._onAdOrContentStarted=function(){var t=this,e=this._player.getCurrentTime();this._addToComscoreQueue(function(){var i=t._bitrate,n={};0!==i&&(n.ns_st_br=i.toString()),t._notifyState("play",n,(1e3*e).toString())})},t.prototype._setComscorePersistentLabels=function(t){var e=this,i={},n=t.rendererType,s=r.default.getHostUrl(),a=s?s.replace(/(_ylt(.)+(\?)|_ylt(.)+)/,"?"):s,u=this._getObjectFromstate(t,"metrics");i.ns_site="yahoo-video","html"===n&&(i.ns_st_mp="h"),i.ns_st_mv=t.playerVersion,i.ca2=this._getComscoreCAfield(t,"PLAYBACK_START","CA2"),i.ca4=t.comscoreC4,i.ca6=u.comscore6||o.INT_DEFAULT,i.c3=o.NULL_DEFAULT,i.ca3=o.NULL_DEFAULT,i.c4=t.comscoreC4,i.c7=a,i.c9=function(){if(t.referrer)return t.referrer;var e=window.top&&window.top.document?window.top.document:null,i=window.history&&window.history.state&&window.history.state.referer?window.history.state.referer:null,n=o.STRING_DEFAULT;return e&&""===e.referrer&&i?n=i:e&&e.referrer&&(n=e.referrer),n.replace(/(_ylt(.)+(\?)|_ylt(.)+)/,"?")}(),this._gdprApplies&&(i.cs_ucfr=this._ucfr),this._addToComscoreQueue(function(){e._setPersistentLabels(i)})},t.prototype._getObjectFromstate=function(t,e){var i={};return t&&t[e]?i=t[e]:t&&t.customConfig&&t.customConfig[e]&&(i=t.customConfig[e]),i},t.prototype._setVideoClipLabels=function(t){var e=this,i=!0===t.autoPlay?"1":"0",s=r.default.getHostUrl(),a=s?s.replace(/(_ylt(.)+(\?)|_ylt(.)+)/,"?"):s,u=this._getObjectFromstate(t,"metrics"),l=this._getObjectFromstate(t,"meta"),c=this._getObjectFromstate(t,"brandingData").branding,d=this._getObjectFromstate(t,"license");null===this._contentIndex&&(this._currentIndex++,this._contentIndex=this._currentIndex);var h={c5:u.comscoreCM5||o.INT_DEFAULT,ca5:u.comscoreCM5||o.INT_DEFAULT,ns_st_pr:t&&t.title?t.title:o.STRING_DEFAULT,ns_st_ep:l.showName||d.title||o.STRING_DEFAULT,ns_st_ge:l.genre?l.genre.split(",")[0]:o.NULL_DEFAULT,ns_st_cu:a,ns_st_vo:Math.round(100*this._player.getVolume()),ns_st_ty:n.Analytics.VdmsAnalyticsModel.getStreamType(t.playbackMode,t.currentMediaType,t.duration),ns_st_cn:this._contentIndex,ns_st_ci:t.videoId,ns_st_st:o.NULL_DEFAULT,ns_st_pu:o.NULL_DEFAULT,ns_st_sn:o.NULL_DEFAULT,ns_st_en:o.NULL_DEFAULT,ns_st_ce:0,ns_st_ddt:o.NULL_DEFAULT,ns_st_tdt:o.NULL_DEFAULT,ns_st_ia:0,y_pid:c&&c.providerId?c.providerId:o.INT_DEFAULT,y_lbl:l.credits&&l.credits.label?l.credits.label:o.STRING_DEFAULT,ns_st_pn:++this._partNumber,y_art:l.credits&&l.credits.main_artists?l.credits.main_artists.split(/[,;]/)[0]:o.STRING_DEFAULT,y_pvid:c&&c.providerVideoId?c.providerVideoId:o.INT_DEFAULT,y_s:t.pageSpaceId,y_c:t.cdn,y_ap:i},p=t.videoLength,f="vc11";if("na"!==p&&p>600&&(f="vc12"),t.isLive){var _=l.eventStart,m=l.eventEnd;p=""!==_&&""!==m?m-_:null,h.ns_st_li="1",f="vc23"}h.ns_st_ct=f,h.ns_st_cl=p&&"na"!==p?(1e3*p).toString():o.INT_DEFAULT,this._addToComscoreQueue(function(){e._setClip(h)}),this._onAdOrContentStarted()},t.prototype._setPersistentLabels=function(t){this._streamSenseTag.setLabels(t)},t.prototype._setPlaylist=function(t){this._streamSenseTag.setPlaylist(t)},t.prototype._setClip=function(t){this._streamSenseTag.setClip(t)},t.prototype._notifyState=function(t,e,i){this._streamSenseTag.notify(this._eventMap[t],e,i)},t.prototype._onAdPlaybackComplete=function(){var t=this,e=this._player.getCurrentTime();this._addToComscoreQueue(function(){t._notifyState("end",{},(1e3*e).toString())})},t.prototype._setAdClipLabels=function(t,e){var i=this,r=!0===e.autoPlay?"1":"0",s=this._getObjectFromstate(e,"brandingData").branding,a=this._getObjectFromstate(e,"meta"),u=t.adBreak,l="va11",c=t.adBreakItemId||o.INT_DEFAULT,d=u.type,h=t.duration;e.isLive?l="va21":"postroll"===d?l="va13":"midroll"===d&&(l="va12");var p={c5:"09",ca5:"09",ns_st_ty:n.Analytics.VdmsAnalyticsModel.getStreamType(e.playbackMode,e.currentMediaType,h),ns_st_ct:l,ns_st_ad:"1",ns_st_pr:"ad",ns_st_ep:"ad",ns_st_cu:o.STRING_DEFAULT,ns_st_vo:Math.round(100*this._player.getVolume()),ns_st_cn:++this._currentIndex,ns_st_ci:c,ns_st_cl:h?(1e3*h).toString():o.STRING_DEFAULT,ns_st_pn:"1",y_pid:s&&s.providerId?s.providerId:o.INT_DEFAULT,y_lbl:a.credits&&a.credits.label?a.credits.label:o.STRING_DEFAULT,y_art:a.credits&&a.credits.main_artists?a.credits.main_artists.split(/[,;]/)[0]:o.STRING_DEFAULT,y_pvid:s&&s.providerVideoId?s.providerVideoId:o.INT_DEFAULT,y_s:e.pageSpaceId,y_ap:r};this._addToComscoreQueue(function(){i._setClip(p)}),this._onAdOrContentStarted()},t.prototype._updateClipAttrs=function(t){var e=this._streamSenseTag.getClip();e&&e.setLabels(t)},t.prototype._fireComscoreBeacons=function(){this._comscoreBeaconQueue.forEach(function(t){t()}),this._comscoreBeaconQueue=[]},t.prototype._getComscoreCAfield=function(t,e,i){var n,r=t&&t.customConfig&&t.customConfig.metrics?t.customConfig.metrics.beacons:null;if(r){var s=r[e]&&r[e][0]||{};if("cs"===s.target&&s.addParam)s.addParam.split("&").forEach(function(t){-1!==t.indexOf(i)&&(n=t.split("=")[1])})}return n||o.INT_DEFAULT},t.prototype._addToComscoreQueue=function(t){this._comscoreBeaconQueue.push(t),this._streamSenseTag&&this._fireComscoreBeacons()},t.prototype._getVendorConsent=function(){var t=this;window.__cmp&&window.__cmp("getVendorConsents",new Uint16Array([e.COMSCORE_IAB_VENDOR_ID]),function(i,n){n&&i&&i.vendorConsents&&i.vendorConsents[e.COMSCORE_IAB_VENDOR_ID]?(t._gdprApplies=!!i.gdprApplies,t._ucfr=!0===i.vendorConsents[e.COMSCORE_IAB_VENDOR_ID]?"1":"0"):i&&i.msg})},t}();e.default=a},ReYQ:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("ToqN"),a=i("oIMU"),u=i("mczr"),l=i("1get"),c=i("+Ojf"),d=i("eU8N"),h=i("GX4R"),p=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.type=e.type,r._capabilities=n.capabilities[u.RendererType.HTML5_RAW_360],r}return r(e,t),e.canUse=function(){return!s.userAgent.tv&&(l.default.is360Supported()&&t.canUse.call(this))},e.prototype.create=function(e){return t.prototype.create.call(this,e),this._init360(),this.container},e.prototype.destroy=function(){this._destroy360(),t.prototype.destroy.call(this)},e.prototype.waitForReady=function(t){var e=this;this._isReady?(this._onReady(),t()):this._360ReadySubscriptionKey=this._eventBus.addEventListener(a.THREE_SIXTY_READY,function(){e._onReady(),t()},this)},e.prototype._init360=function(){var t=this;this._isReady=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this._node360=document.createElement("div"),this._node360.classList.add("vp-360-node"),this._node360.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",c.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this._node360),this._lazyLoadDepsLibrary().then(function(){t._initAfterLazyLoad()}).catch(function(t){}))},e.prototype._lazyLoadDepsLibrary=function(){return new Promise(function(t,e){i.e(1).then(function(){o=i("Womt"),t(o)}.bind(null,i)).catch(function(t){e(t)})})},e.prototype._initAfterLazyLoad=function(){this._camera=new o.PerspectiveCamera(70,16/9,.01,1e3),this._camera.target=new o.Vector3(0,0,0);var t=new o.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var e=new o.VideoTexture(this.node);e.minFilter=o.NearestFilter;var i=new o.MeshBasicMaterial({map:e}),n=new o.Mesh(t,i);this._scene=new o.Scene,this._scene.add(n),this._360renderer=new o.WebGLRenderer,this._360renderer.setPixelRatio(window.devicePixelRatio),this._node360&&this._node360.appendChild(this._360renderer.domElement),this._pie360=new d.default(this.container),this._pie360.render(),this._lon=0,this._lat=0,this._stopAnimation=!0,this._bind360Events(),this._isReady=!0,this._eventBus.publish(a.THREE_SIXTY_READY)},e.prototype._bind360Events=function(){var t=this;this._mouseDownHandler=this._onMouseDown.bind(this),this._mouseMoveHandler=this._onMouseMove.bind(this),this._mouseUpHandler=this._onMouseUp.bind(this),this._mouseOverHandler=this._onMouseOver.bind(this),this._mouseOutHandler=this._onMouseOut.bind(this),this._resizeHandler=this._onResize.bind(this),this.container&&(this.container.addEventListener("mousedown",this._mouseDownHandler,!1),this.container.addEventListener("mousemove",this._mouseMoveHandler,!1),this.container.addEventListener("mouseup",this._mouseUpHandler,!1),this.container.addEventListener("mouseover",this._mouseOverHandler,!1),this.container.addEventListener("mouseout",this._mouseOutHandler,!1),this.container.addEventListener("resize",this._resizeHandler,!1)),this._onPauseHandler=this._onPause.bind(this),this._onPlayingHandler=this._onPlaying.bind(this),this._onSeekedHandler=this._onSeeked.bind(this),this.node&&(this.node.addEventListener("pause",this._onPauseHandler),this.node.addEventListener("playing",this._onPlayingHandler),this.node.addEventListener("seeked",this._onSeekedHandler)),this._pie360&&this._pie360.addClickListener(this._backToInitialPosition.bind(this)),this._eventSubscriptionKeys={},this._eventSubscriptionKeys[a.PLAYER_RESIZE]=this._eventBus.addEventListener(a.PLAYER_RESIZE,function(e,i){window.setTimeout(function(){t._isFullscreen&&(e=window.screen.width,i=window.screen.height),t._resize(e,i)},1)},this),this._eventSubscriptionKeys[a.FULLSCREEN_CHANGE]=this._eventBus.addEventListener(a.FULLSCREEN_CHANGE,function(e){t._isFullscreen=!!e},this),this._eventSubscriptionKeys[a.PLAYER_DIMENSION_CHANGE]=this._eventBus.addEventListener(a.PLAYER_DIMENSION_CHANGE,function(){var e,i,n;t.node&&t.node.parentNode&&((e=window.getComputedStyle(t.node.parentNode))&&(i=parseInt(e.getPropertyValue("width"),10),n=parseInt(e.getPropertyValue("height"),10)),i&&!isNaN(i)&&n&&!isNaN(n)&&t._resize(i,n))},this)},e.prototype._backToInitialPosition=function(){this._lon=0,this._lat=0,this._update(),this._pie360&&this._pie360.update(this._lon),this._eventBus.publish(a.THREE_SIXTY_PIE_INTERACT)},e.prototype._unbind360Events=function(){var t=this;this._eventSubscriptionKeys&&Object.keys(this._eventSubscriptionKeys).forEach(function(e){t._eventBus.removeEventListener(e,t._eventSubscriptionKeys[e])}),this._mouseDownHandler&&(this.container&&this.container.removeEventListener("mousedown",this._mouseDownHandler,!1),this._mouseDownHandler=null),this._mouseMoveHandler&&(this.container&&this.container.removeEventListener("mousemove",this._mouseMoveHandler,!1),this._mouseMoveHandler=null),this._mouseUpHandler&&(this.container&&this.container.removeEventListener("mouseup",this._mouseUpHandler,!1),this._mouseUpHandler=null),this._mouseOverHandler&&(this.container&&this.container.removeEventListener("mouseover",this._mouseOverHandler,!1),this._mouseOverHandler=null),this._resizeHandler&&(this.container&&this.container.removeEventListener("resize",this._resizeHandler,!1),this._resizeHandler=null),this._mouseOverHandler&&(this.container&&this.container.removeEventListener("mouseover",this._mouseOverHandler,!1),this._mouseOverHandler=null),this._onPauseHandler&&(this.node&&this.node.removeEventListener("pause",this._onPauseHandler),this._onPauseHandler=null),this._onPlayingHandler&&(this.node&&this.node.removeEventListener("playing",this._onPlayingHandler),this._onPlayingHandler=null),this._onSeekedHandler&&(this.node&&this.node.removeEventListener("seeked",this._onSeekedHandler),this._onSeekedHandler=null),this._360ReadySubscriptionKey&&(this._eventBus.removeEventListener(a.THREE_SIXTY_READY,this._360ReadySubscriptionKey),this._360ReadySubscriptionKey=null)},e.prototype._stopDragging=function(){this._isUserInteracting=!1,this.container&&(this.container.classList.remove("grabbing-360"),this.container.classList.add("over-360")),this._isPausedAnimate&&(this._isPausedAnimate=!1,this._stopAnimation=!0)},e.prototype._resize=function(t,e){var i=t,n=e;e*(16/9)>t&&(n=t/(16/9)),this._camera&&(this._camera.setViewOffset(t,e,t-i,e-n,i,n),this._camera.updateProjectionMatrix()),this._360renderer&&this._360renderer.setSize(t,e)},e.prototype._animate=function(){var t=this._animate.bind(this);if(this._stopAnimation&&this._requestAnimationId)return window.cancelAnimationFrame(this._requestAnimationId),void(this._requestAnimationId=null);this._requestAnimationId=window.requestAnimationFrame(t),this._update()},e.prototype._update=function(){var t,e;this._lat=Math.max(-85,Math.min(85,this._lat)),t=o.Math.degToRad(90+this._lat),e=o.Math.degToRad(this._lon),this._camera&&(this._camera.position.x=500*Math.sin(t)*Math.cos(e),this._camera.position.y=500*Math.cos(t),this._camera.position.z=500*Math.sin(t)*Math.sin(e),this._camera.lookAt(this._camera.target),this._camera.position.copy(this._camera.target).negate(),this._scene&&this._360renderer&&this._360renderer.render(this._scene,this._camera))},e.prototype._destroy360=function(){this._requestAnimationId&&window.cancelAnimationFrame(this._requestAnimationId),this._stopAnimation=!0,this._unbind360Events(),this._pie360&&(this._pie360.destroy(),this._pie360=null),this._node360&&(this._node360.parentNode&&this._node360.parentNode.removeChild(this._node360),this._node360=null),this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this._camera=null,this._scene=null,this._360renderer=null},e.prototype._onPause=function(){this._isPaused=!0,this._stopAnimation=!0},e.prototype._onPlaying=function(){this._isPaused=!1,this._stopAnimation=!1,this._animate()},e.prototype._onSeeked=function(){this._update()},e.prototype._onMouseOver=function(){this.container&&this.container.classList.add("over-360")},e.prototype._onMouseDown=function(t){this._hasMouseDownAndMoved=!1,this.container&&(this.container.classList.remove("over-360"),this.container.classList.add("grabbing-360")),this._isUserInteracting=!0,this._onPointerDownPointX=t.clientX,this._onPointerDownPointY=t.clientY,this._onPointerDownLon=this._lon,this._onPointerDownLat=this._lat},e.prototype._onMouseMove=function(t){this._isUserInteracting&&(this._isPaused&&!this._isPausedAnimate&&(this._isPausedAnimate=!0,this._stopAnimation=!1,this._animate()),this._hasMouseDownAndMoved=!0,this._lon=.1*(this._onPointerDownPointX-t.clientX)+this._onPointerDownLon,this._lat=.1*(t.clientY-this._onPointerDownPointY)+this._onPointerDownLat,this._pie360&&this._pie360.update(this._lon))},e.prototype._onMouseUp=function(){this._isUserInteracting&&(this._stopDragging(),this._hasMouseDownAndMoved?this._eventBus.publish(a.THREE_SIXTY_INTERACT):this._eventBus.publish(a.TOGGLE_PLAY_PAUSE)),this._hasMouseDownAndMoved=!1},e.prototype._onMouseOut=function(){this._stopDragging()},e.prototype._onResize=function(){this.container&&this._resize(this.container.offsetWidth,this.container.offsetHeight)},e.prototype._onReady=function(){this._360ReadySubscriptionKey&&(this._eventBus.removeEventListener(a.THREE_SIXTY_READY,this._360ReadySubscriptionKey),this._360ReadySubscriptionKey=null),!this._isInitialized&&this._360renderer&&this.container&&(this._360renderer.setSize(this.container.offsetWidth,this.container.offsetHeight),this._isInitialized=!0)},e.type=u.RendererType.HTML5_RAW_360,e}(h.default);e.default=p},Ru0y:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fLR+"),r=i("+Ojf"),o=i("Mkxr"),s=i("pBvk").Validator,a={audioMetadata:{bitrate:0,channels:1},videoMetadata:{avgBitrate:0,bitrate:0,framerate:0,height:0,width:0},live:!1,manifest:"",url:"",aspectRatio:""},u=function(){function t(t){this._configure(t),"subtitle"===this.type&&(this.type="SUBTITLES")}return t.prototype.isRTMP=function(){var t=/^rtmp(?:e|t|te|s)?:\/\//;return t.test(this.host)||t.test(this.url)},t.prototype.isRTX=function(){return this.url.indexOf("/rtx/")>-1},t.prototype.isAtlas=function(){var t=this.host;return this.hlsInfo&&(t=this.hlsInfo.ts_url),/atlas\.cdn\.yimg\.com/.test(t)},t.prototype.isUplynk=function(){if(this.url&&this.url.length){var t=this.url.toLowerCase();return t.indexOf("uplynk.com")>-1||t.indexOf("downlynk.com")>-1||t.indexOf("uplynk.localhost")>-1||t.indexOf("downlynk.localhost")>-1}return!1},t.prototype.getType=function(){var t="unknown",e=this.url,i=this._getProtocol();return"m3u8:fmp4"===this.format?t="hls-fmp4":e&&(i&&(i.indexOf("rtmp")>-1||i.indexOf("rtsp")>-1)?t=i:/\/*\.f4m/i.test(e)?t=this.isRTX()?"rtx-hds":"hds":/\/*\.m3u8/i.test(e)||e.length>0&&e.indexOf("content=hls")>-1?t=this.isRTX()?"rtx-hls":"hls":/\/*\.mp4/i.test(e)?t="mp4":/\/*\.webm/i.test(e)?t="webm":/\/*\.mpd/i.test(e)&&(t="dash")),t},Object.defineProperty(t.prototype,"bitrate",{get:function(){return this.videoMetadata?this.videoMetadata.bitrate||0:this.audioMetadata&&this.audioMetadata.bitrate||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"avgBitrate",{get:function(){return this.videoMetadata&&this.videoMetadata.avgBitrate||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.videoMetadata&&this.videoMetadata.width||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.videoMetadata&&this.videoMetadata.height||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"framerate",{get:function(){return this.videoMetadata&&this.videoMetadata.framerate||0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"profile",{get:function(){return this.videoMetadata&&this.videoMetadata.profile||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"channels",{get:function(){return this.audioMetadata&&this.audioMetadata.channels>=0?this.audioMetadata.channels:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forced",{get:function(){return this.audioMetadata&&this.audioMetadata.forced},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"default",{get:function(){return this.audioMetadata&&this.audioMetadata.default},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoSelect",{get:function(){return this.audioMetadata&&this.audioMetadata.autoSelect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamProtocol",{get:function(){return this._getProtocol()},enumerable:!0,configurable:!0}),t.prototype._configure=function(t){this._validateConfig(t);var e=r.default.deepCopy(t);if(e=r.default.mergeObjects(e,a),r.default.mergeObjects(this,e,!0),n.isString(this.url)&&0!==this.url.length||this.host&&this.path&&(this.url=this.host+this.path),this.type&&(this.format=this.type),this.format||(this.format=r.default.getFormat(this.url)),!this.host&&n.isString(this.url)&&this.url.length>0){this.host=this._getProtocol()+"://"+r.default.getHostname(this.url);var i=this.url.split(this.host);i.length>=2&&(this.path=i[1])}this.cdn&&this.cdn.length||(this.cdn=this._getCdnFromUrl(this.url))},t.prototype._validateConfig=function(t){try{(new s).validate(t,o.streamSchema,{throwError:!0})}catch(t){var e="Invalid stream config: "+t.property+" "+t.message;throw new Error(e)}},t.prototype._getProtocol=function(){var t="http",e=this.url.split(":");return e.length>1&&(t=e[0]),t},t.prototype._getCdnFromUrl=function(t){var e="unknown";return t&&t.length>0&&(e=t.indexOf("akamai")>-1?"akamai":t.indexOf("yahoo.com")>-1||t.indexOf("yimg.com")>-1?"atlas":t.indexOf("llnwd.net")>-1?"limelight":t.indexOf("fastly.com")>-1?"fastly":t.indexOf("edgecast.com")>-1?"edgecast":r.default.parseRootHost(t)),e},t}();e.default=u},Ruv9:function(t,e,i){var n=i("PKsF");n.Template=i("cK6b").Template,n.template=n.Template,t.exports=n},Rv5J:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("A4+F"),l=i("ybd4"),c=i("oIMU"),d=i("oIMU"),h=i("mczr"),p=i("xqNZ"),f=i("R+G7"),_=i("fLR+"),m=i("+Ojf"),y=i("ECHB"),v=i("hWVc");!function(t){t.VISIBILITY_CHANGED="visibility-changed"}(o=e.OpssEvent||(e.OpssEvent={}));var g=function(t){function e(e,i,n,r,o,s,a){var l=t.call(this,"OpenSimSim")||this;l._html5eventsSubscriptionKeys={},l._model=e,l._eventBus=i,l._profiler=n,l._rendererController=r,l._adsDiagnostics=o,l._pluginManager=s,l._isSwfReady=!1,l._playbackInfo={},l._oldUuid=null;var d=console;return l._logger=a||d.log.bind(d),l._timestamps=[],l._history={bitrate:{title:"Bit Rate History",data:[]},speed:{title:"Download Speed History",data:[]},bufferLength:{title:"Buffer Length History",data:[]},frameRate:{title:"Frame Rate History",data:[]}},l._eventBus.addEventListener(c.PLAYBACK_INFO,function(t){l._playbackInfo=t,l._timestamps.push(Date.now()/1e3),l._history.bitrate.data.push(parseFloat(t.currentStreamBitrate)),l._history.speed.data.push(parseFloat(t.currentKbps)),l._history.bufferLength.data.push(parseFloat(t.bufferLength)),l._history.frameRate.data.push(parseFloat(t.frameRate?t.frameRate:0)),l._updateInfo()},l),l._eventBus.addEventListener(c.SWF_READY,function(){l._isSwfReady=!0},l),l._eventBus.addEventListener(c.YVAP_INFO_UPDATE,function(t){l._yvapDom=t},l),l._eventBus.addEventListener(u.ExternalEvt.PLAYLIST_POSITION_CHANGE,function(){l._updateBasicMediaItemInfo()},l),l._eventBus.addEventListener(c.RENDERER_SWITCHED,l._onRendererSwitched,l),l._eventBus.addEventListener(c.YVAP_MIDROLL_CACHE_UPDATE,l._updateMidrollCacheStats,l),l}return r(e,t),e.prototype.create=function(){var t=this;this._node=m.default.render(v,{version:this._model.version,strings:p.default}),this._midrollCacheStats=this._node.querySelector(".vp-midrollcache-data"),this._adsInfoArea=this._node.querySelector(".vp-adsinfopanel-adsinfo");var e=this._node.querySelector(".ad-info-table");if(e){var i=this._adInfoTableTemplate=this._node.removeChild(e);if(i){var n=i.querySelector("div.vp-tablerow");n&&(this._adInfoRowTemplate=i.removeChild(n))}}var r=this._node.querySelector(".vp-opensimsim-close-btn");r&&(this._closeTap=new y.default(r,function(e){e.stopPropagation(),t.close()}));var o=this._node.querySelector(".vp-profile-btn");o&&(this._profileTap=new y.default(o,function(e){e.stopPropagation(),t._profiler.render(t._yvapDom)})),this._updatePlatformInfo(),this._tableTap=new y.default(this._adsInfoArea,function(e){var i=e.eventSource||e.eventTarget;if(i&&"linkbtn"===i.className)try{t._logAdDiagnosticsById(i.parentNode.parentNode.customData.playbackId)}catch(t){}});var s=this._node.querySelector(".vp-section-expand-config");s&&(this._expandTap=new y.default(s,function(){var e=t._node.querySelector(".vp-opensimsim-current-config");e&&t._showHide(e,s)}));var a=this._node.querySelector(".vp-section-expand-plugins");a&&(this._expandPluginsTap=new y.default(a,function(){var e=t._node.querySelector(".vp-opensimsim-current-plugins");e&&t._showHide(e,a)}));var u=this._node.querySelector(".vp-section-expand-ads");u&&(this._expandAdsTap=new y.default(u,function(){var e=t._node.querySelector(".vp-adsinfopanel-adsinfo");e&&t._showHide(e,u)}));var l=this._node.querySelector(".vp-section-expand-hosting");l&&(this._expandHostingTap=new y.default(l,function(){var e=t._node.querySelector(".vp-opensimsim-hosting-config");e&&t._showHide(e,l)}));var c=this._node.querySelector(".vp-section-expand-context");return c&&(this._expandContextTap=new y.default(c,function(){var e=t._node.querySelector(".vp-opensimsim-current-context");e&&t._showHide(e,c)})),this._node},e.prototype.render=function(){this._handleHTML5Info(),this._renderHostingInfo(),this._renderExpInfo(),this._renderPluginsInfo(),this._updateBasicMediaItemInfo(),this._updateInfo(),this._adsDiagnostics&&(this._drawAdInfoTables(),this._registerAdDataUpdateCallbacks()),this._node.style.display="block",this.publish(o.VISIBILITY_CHANGED,!0,this._node)},e.prototype.isOpen=function(){return"none"!==this._node.style.display},e.prototype.close=function(){this._node.style.display="none",this.publish(o.VISIBILITY_CHANGED,!1,this._node),this._toggleHTML5Info(!1),this._adsDiagnostics&&this._unregisterAdDataUpdateCallbacks()},e.prototype.destroy=function(){this._toggleHTML5Info(!1),this._closeTap&&this._closeTap.destroy(),this._profileTap&&this._profileTap.destroy(),this._tableTap&&this._tableTap.destroy()},e.prototype.fetchInfo=function(){return{history:this._history,playbackInfo:this._playbackInfo,profile:this._profiler}},e.prototype._updateMidrollCacheStats=function(t){var e="",i={retryCount:"retries",targetAdsDuration:"target",totalUniqueAds:"num_uniq",totalDuplicatedAds:"num_dup",totalNoAds:"num_noad",uniqueAdsDuration:"uniq_dur"};Object.keys(t).forEach(function(n){var r,o;e+=(r=i[n]||n,o=t[n],"<div class='floated-item'>"+r+":<span> "+o+"</span></div>")}),this._midrollCacheStats&&(this._midrollCacheStats.innerHTML=e)},e.prototype._showHide=function(t,e){var i=m.default.classList(t).contains("vp-hide"),n=m.default.classList(t).contains("vp-adsinfopanel-adsinfo"),r=n?this._node.querySelector(".vp-adinfo-section"):null;if(i){if(m.default.classList(t).remove("vp-hide"),m.default.classList(e).remove("vp-expanded"),m.default.classList(e).add("vp-collapsed"),n){r&&m.default.classList(r).remove("vp-hide");var o=this._node.querySelector(".vp-inviewport");o&&this._setViewPort(o)}}else m.default.classList(t).add("vp-hide"),m.default.classList(e).remove("vp-collapsed"),m.default.classList(e).add("vp-expanded"),n&&r&&m.default.classList(r).add("vp-hide")},e.prototype._setViewPort=function(t){t&&t.scrollIntoView()},e.prototype._drawAdInfoTables=function(){var t=this;this._adsInfoArea&&(this._adsInfoArea.innerHTML="");var e=this._adsDiagnostics.getAllAdDiagnostics();Object.keys(e).forEach(function(i){t._drawAdDiagnosticsTable(e[i],i)})},e.prototype._drawAdDiagnosticsTable=function(t,e){var i=this,n=this._adInfoTableTemplate.cloneNode(!0);n.children[0].innerHTML="<strong>MEDIA UUID: </strong>"+e,Object.keys(t).forEach(function(e){var r=t[e];i._insertAdsDiagnosticsRow(n,r)}),n.setAttribute("relvideo",e),this._oldUuid=e,this._adsInfoArea&&this._adsInfoArea.appendChild(n)},e.prototype._insertAdsDiagnosticsRow=function(t,e){if(t&&e){var i=this._adInfoRowTemplate.cloneNode(!0);if(e){var n=e.playbackId,r=e.clipId;i.setAttribute("apbid",n),i.customData={playbackId:n,uuid:r,adstate:e.adstate};var o=i.querySelector(".adPbId");o&&(o.innerHTML=n);var s=i.querySelector(".addur");s&&(s.innerHTML=e.duration);var a=i.querySelector(".adposition");a&&(a.innerHTML=e.position);var u=i.querySelector(".crId");u&&(u.innerHTML=e.creativeId);var l=i.querySelector(".vCrId");l&&(l.innerHTML=e.vastCreativeId);var c=i.querySelector(".bId");c&&(c.innerHTML=e.bookingId),this._updateAdStateInRow(i,e.adstate),t.rowCount=void 0===t.rowCount?0:t.rowCount+1,t.rowCount%2!=0&&m.default.classList(i).add("vp-altrow")}else m.default.classList(i).add("emptyrow");t.appendChild(i)}},e.prototype._updateAdStateInRow=function(t,e){var i=m.default.classList(t);"playing"===e?i.add("currad"):i.contains("currad")&&i.remove("currad");var n=t.querySelector(".pbstate");n&&((i=m.default.classList(n)).remove("st-"+t.customData.adstate),t.customData.adstate=e,i.add("st-"+e),n.innerHTML=e)},e.prototype._registerAdDataUpdateCallbacks=function(){this._adsDiagnostics.registerAdStateChangeListener(this._onAdStateChange.bind(this)),this._adsDiagnostics.registerAdDataAvailableListener(this._onAdDataAvailable.bind(this))},e.prototype._unregisterAdDataUpdateCallbacks=function(){this._adsDiagnostics.registerAdStateChangeListener(null),this._adsDiagnostics.registerAdDataAvailableListener(null)},e.prototype._onAdStateChange=function(t,e,i){if(this._adsInfoArea){var n=this._adsInfoArea.querySelector("[apbid="+t+"]");n&&this._updateAdStateInRow(n,e)}},e.prototype._onAdDataAvailable=function(t){this._drawAdInfoTables(),this._oldUuid=t.clipId},e.prototype._handleHTML5Info=function(t){this._isHTML5()?(t=t||this._rendererController&&this._rendererController.getActiveRenderer())&&(this._videoNode=t.node,this._toggleHTML5Info(!0)):this._toggleHTML5Info(!1)},e.prototype._renderHostingInfo=function(){var t=this._node.querySelector(".vp-opensimsim-hosting"),e=window.VDMS,i=e&&e.VideoPlatform&&e.VideoPlatform.PlayerHosting||"local";t&&(t.innerHTML=JSON.stringify(i,void 0,2))},e.prototype._renderPluginsInfo=function(){var t=this._pluginManager.getExternalPlugins(),e=this._node.querySelector(".vp-opensimsim-plugins"),i="",n=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){i+="<div><span class='vp-details'>"+e+": </span>"+t.mimetype+" - "+t.version+"</div>"})};for(var r in t)n(r);e&&(e.innerHTML=i)},e.prototype._renderExpInfo=function(){var t=this._model.inputConfig,e=this._node.querySelector(".vp-opensimsim-expSiteName");e&&(e.innerHTML="<span class='vp-details'>site: </span>"+t.site);var i=this._node.querySelector(".vp-opensimsim-expName");i&&(i.innerHTML="<span class='vp-details'>expName: </span>"+t.expName);var n=this._node.querySelector(".vp-opensimsim-expBucketName");n&&(n.innerHTML="<span class='vp-details'>expBucketName: </span>"+t.expBucket);var r=this._node.querySelector(".vp-opensimsim-expType");r&&(r.innerHTML="<span class='vp-details'>expType: </span>"+t.expType)},e.prototype._onRendererSwitched=function(t){this._handleHTML5Info(t.active),this._updateBasicMediaItemInfo(),this._updateInfo()},e.prototype._isHTML5=function(){if(a.userAgent.tv)return!0;var t=this._model.playbackState.rendererType;return!(!a.userAgent.safari||t!==h.RendererType.HTML5_HLS&&t!==h.RendererType.HTML5_RAW)},e.prototype._renderGraph=function(t,e,i,n,r){for(var o=e.length-1,s=0,a=t[o],u=e[o],l=e[o],c=o-1;c>=0;c--)if(u=Math.min(u,e[c]),l=Math.max(l,e[c]),c>0&&a-t[c-1]>45){s=c;break}var d=t[s];u>0&&(u=0),u===l&&(l=u+1),i.save(),i.translate(40,r),i.scale((n-40)/45,-1*r/(l-u)),i.beginPath(),i.moveTo(0,e[s]-u);for(var h=s+1;h<e.length;h++)i.lineTo(t[h]-d,e[h]-u);i.restore(),i.lineWidth=1,i.lineCap="round",i.lineJoin="round",i.strokeStyle="white",i.stroke(),i.font="8pt Monospace",i.fillStyle="white",i.fillText(l.toFixed(1),0,10),i.fillText(u.toFixed(1),0,60)},e.prototype._generateHtmlFromKeyValues=function(t){var e="";return Object.keys(t).forEach(function(i){var n=t[i];e+="<div><span class='vp-details'>"+i+":</span> "+n+"</div>"}),e},e.prototype._generateConfigHTML=function(t,e){var i=this,n="";return Object.keys(t).forEach(function(r){var o=t[r];o&&"object"==typeof o?isNaN(r)?(n+="<div>"+r+" :</div>",n+='<div style="padding-left: 10px">'+i._generateConfigHTML(o)+"</div>"):n+="<div>"+i._generateConfigHTML(o,r)+"</div>":n+="<div>"+(e?e+" : ":"")+r+" : "+o+"</div>"}),n},e.prototype._generateHtmlTitle=function(t){return'<div class="vp-opensimsim-title">'+t+"</div>"},e.prototype._updatePlatformInfo=function(){var t={OS:a.userAgent.os,Mobile:a.userAgent.mobile,"User Agent":a.userAgent.ua};a.userAgent.mobile&&(t["Can Play Inline"]=f.default.canPlayInline,t["Autoplay Supported"]=f.default.autoplaySupported,f.default.autoplaySupported&&(t["Has Native Autoplay Support"]=f.default.hasNativeAutoplaySupport),t["Network Info Available"]=f.default.network.available,t["Network Connection Type (SAPI)"]=f.default.network.connectionType,t["Network Connection Type (User Agent)"]=a.capabilities.getConnectionType()||"n/a",t["Is Mobile Network"]="boolean"==typeof f.default.network.mobile?f.default.network.mobile:"n/a");var e=this._node.querySelector(".vp-opensimsim-platform");e&&(e.innerHTML=this._generateHtmlFromKeyValues(t))},e.prototype._updateBasicMediaItemInfo=function(){var t=this._model.playlist.getCurrentItem(),e=this._node.querySelector(".vp-opensimsim-uuid");e&&(e.innerHTML="<span class='vp-details'>UUID:</span> "+(t?t.id:"")),(e=this._node.querySelector(".vp-sessionId"))&&(e.innerHTML="<span class='vp-details'>SessionId:</span> "+(t?t.videoSession:"none")),this._isHTML5()&&!a.userAgent.samsung&&((e=this._node.querySelector(".vp-opensimsim-url"))&&(t&&t.isLive()?e.innerHTML="Master Playlist URL : "+this._videoNode.currentSrc:a.userAgent.tv&&(e.innerHTML="Current Source URL : "+this._videoNode.currentSrc)),(e=this._node.querySelector(".vp-opensimsim-config"))&&(e.innerHTML=this._generateHtmlTitle("Config")+this._generateConfigHTML(this._model.inputConfig)))},e.prototype._updateInfo=function(){var t=this,e=this._model.playlist.getCurrentItem(),i=this._playbackInfo,n=i.deliveryProtocol;e&&(n+=" / "+e.getType());var r=this._node.querySelector(".vp-opensimsim-graphs");r&&(r.innerHTML=""),Object.keys(this._history).forEach(function(e){var i=t._history[e].data;if(i.some(function(t){return _.isNumber(t)})){var n=document.createElement("div");m.default.classList(n).add("vp-opensimsim-graph");var o=document.createElement("div");o.innerHTML=t._history[e].title,n.appendChild(o);var s=document.createElement("canvas");s.width=150,s.height=60,n.appendChild(s),r&&r.appendChild(n);var a=s.getContext("2d");a&&t._renderGraph(t._timestamps,i,a,150,60)}});var o={"Total Quality Levels":i.qualityLevels,"Encoding Method":e&&e.streams.length>0?e.streams[0].rcMode:"na","Current Bitrate":i.currentStreamBitrate+" kbps",Protocol:n,CDN:e?e.getCDN():"","Recovery count":e?e.failoverCount:0,"Buffer Length":i.bufferLength+" secs","Frame Rate":i.frameRate,"Download Speed":i.currentKbps+" kbps","Dropped Frames":i.droppedFrames,"Media Size":i.mediaWidth+" x "+i.mediaHeight,"Buffering Count":0,"Total buffering time":"",Protected:i.drm?"Yes":"No"};e&&e.rendererType===h.RendererType.HTML5_HLS&&(o["Buffering Count"]=i.bufferingCount,o["Total buffering time"]=i.totalBufferingTime+" ms");var s=this._node.querySelector(".vp-opensimsim-detail");if(s&&(s.innerHTML=this._generateHtmlFromKeyValues(o)),s=this._node.querySelector(".vp-opensimsim-renderertype")){var a=this._model.playbackState.rendererType||"(no renderer yet)";a=a===h.RendererType.HTML5_HLS?a+" "+this._model.jshlsVersion:a,s.innerHTML="<span class='vp-details'>Renderer Type:</span> "+a}(s=this._node.querySelector(".vp-opensimsim-profile"))&&(s.innerHTML=JSON.stringify(this._model.inputConfig,void 0,2))},e.prototype._toggleHTML5Info=function(t){var e=this._node.querySelector(".vp-opensimsim-tv");if(this._unsubscribeToHTML5Events(),this._clearHTML5Timers(),e&&(e.innerHTML=""),t&&e){e.innerHTML+='<div class="vp-opensimsim-url"></div>',e.innerHTML+=this._generateHtmlTitle("HTML5 Video States");if(e.innerHTML+=this._generateHtmlFromKeyValues({"Current Time":'<span class="vp-opensimsim-time"></span>',"Playback State":'<span class="vp-opensimsim-playback"></span>',"Player State":'<span class="vp-opensimsim-state"></span>',"Buffering State":'<span class="vp-opensimsim-buffering"></span>',"Network State":'<span class="vp-opensimsim-network"></span>',"Ready State":'<span class="vp-opensimsim-ready"></span>',"Error State":'<span class="vp-opensimsim-error">none</span>'}),a.userAgent.tv&&_.isFunction(l.default)){e.innerHTML+=this._generateHtmlTitle("VTT Info");e.innerHTML+=this._generateHtmlFromKeyValues({"VTT Index":'<span class="vp-opensimsim-vttindex"></span>',"VTT URL":'<span class="vp-opensimsim-vtturl"></span>',"STREAM BITRATES":'<span class="vp-opensimsim-bitrate-list"></span>'})}e.innerHTML+='<div class="vp-opensimsim-config"></div>',this._setupHTML5Timers(),this._subscribeToHTML5Events()}},e.prototype._unsubscribeToHTML5Events=function(){var t=this;this._html5eventsSubscriptionKeys&&Object.keys(this._html5eventsSubscriptionKeys).forEach(function(e){t._eventBus.removeEventListener(e,t._html5eventsSubscriptionKeys[e])}),this._html5eventsSubscriptionKeys={}},e.prototype._subscribeToHTML5Events=function(){var t=this;this._html5eventsSubscriptionKeys[d.VideoEvent.TIMEUPDATE]=this._eventBus.addEventListener(d.VideoEvent.TIMEUPDATE,function(e){var i=t._node.querySelector(".vp-opensimsim-time");i&&(i.innerHTML=e)},this);["PLAYING","PAUSE","SEEKING","SEEKED"].forEach(function(e){t._html5eventsSubscriptionKeys[e]=t._eventBus.addEventListener(d.VideoEvent[e],function(){var i=t._node.querySelector(".vp-opensimsim-playback");i&&(i.innerHTML=e)},t)}),this._html5eventsSubscriptionKeys[d.VideoEvent.WAITING]=this._eventBus.addEventListener(d.VideoEvent.WAITING,function(e){var i=t._node.querySelector(".vp-opensimsim-buffering");i&&(i.innerHTML=e.value)},this);var e=[null,"aborted","network","decode","source not supported"];this._html5eventsSubscriptionKeys[d.VideoEvent.ERROR]=this._eventBus.addEventListener(d.VideoEvent.ERROR,function(i){var n=t._node.querySelector(".vp-opensimsim-error");n&&(n.innerHTML=e[i.code]||"")},this),a.userAgent.tv&&_.isFunction(l.default)&&(this._html5eventsSubscriptionKeys[c.VTT_SEGMENT_LOADED]=this._eventBus.addEventListener(c.VTT_SEGMENT_LOADED,function(e,i,n,r){var o=t._node.querySelector(".vp-opensimsim-vttindex");o&&(o.innerHTML=n);var s=t._node.querySelector(".vp-opensimsim-vtturl");s&&(s.innerHTML=r)},this),this._html5eventsSubscriptionKeys[c.CTV.GET_BITRATE_FOR_OPSS]=this._eventBus.addEventListener(c.CTV.GET_BITRATE_FOR_OPSS,function(e){var i=t._node.querySelector(".vp-opensimsim-bitrate-list");i&&(i.innerHTML="Bitrates : "+JSON.stringify(e))},this))},e.prototype._setupHTML5Timers=function(){var t=this;this._playerStateTimer=window.setInterval(function(){var e=t._node.querySelector(".vp-opensimsim-state");e&&(e.innerHTML=t._model.getState())},1e3);var e=["network empty","network idle","network loading","network no source"];if(!a.userAgent.samsung){this._networkStateTimer=window.setInterval(function(){var i=e[t._videoNode.networkState],n=t._node.querySelector(".vp-opensimsim-network");n&&(n.innerHTML=i)},1e3);var i=["have nothing","have metadata","have current data","have future data","have enough data"];this._readyStateTimer=window.setInterval(function(){var e=t._node.querySelector(".vp-opensimsim-ready");e&&(e.innerHTML=i[t._videoNode.readyState])},1e3)}},e.prototype._clearHTML5Timers=function(){this._playerStateTimer&&window.clearInterval(this._playerStateTimer),this._networkStateTimer&&window.clearInterval(this._networkStateTimer),this._readyStateTimer&&window.clearInterval(this._readyStateTimer)},e.prototype._logAdDiagnosticsById=function(t){var e=this._adsDiagnostics.getAdDiagnosticsById(t);this._logger("[ad diagnostics]",e)},e}(s.default);e.default=g},RwmF:function(t,e,i){"use strict";function n(t){this.name=t||"unnamed",this._events={},this._eventKeyCounter=0}t.exports=n,n.prototype.addEventListener=function(t,e,i){if(this._events){this._events[t]||(this._events[t]={});var n=t+"_"+ ++this._eventKeyCounter;return this._events[t][n]={subscriber:i,cb:e},n}},n.prototype.removeEventListener=function(t,e){this._events&&t in this._events&&this._events[t].hasOwnProperty(e)&&delete this._events[t][e]},n.prototype.removeEventListeners=function(t){var e=this;e._events&&t&&Object.keys(t).forEach(function(i){var n=t[i];i in e._events&&e._events[i].hasOwnProperty(n)&&(delete e._events[i][n],delete t[i])})},n.prototype.publish=function(t){var e=this;if(e._events&&t in e._events){var i=e._events[t],n=arguments;Object.keys(i).forEach(function(t){var e=i[t];if(e)try{e.cb&&"function"==typeof e.cb&&e.cb.apply(e.subscriber,Array.prototype.slice.call(n,1))}catch(t){}})}},n.prototype.destroy=function(){this._events=null}},RyId:function(t,e,i){var n=i("cXla");"string"==typeof n&&(n=[[t.i,n,""]]);i("ZuTH")(n,{})},S4Ou:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("Lux/"),r=i("u8By"),o=i("yzVy"),s=i("ma23"),a={adBreakId:"0.0.0.1158043937",adBreakItems:[{adBreakItemId:"0b0f3c7b47c64a559081a2d4b7640da6",customInfo:null,duration:30,instream:!1,interactionConfig:{allowSeek:!1,allowSkipOffset:5,chromeless:!1,clickUrl:"https://example.org/ad"},source:{streams:[{url:"https://cdn.adap.tv/aolvideo/K93816-NAT-MY19-ES-Launch-30s-WhyBother-Preroll-1920x10801-30-960x540-512-09292018221227-269.MP4"}]},type:o.AdBreakItemType.AD}],backToLiveDuration:0,customInfo:null,duration:30,startOffset:0,startTime:0,type:r.AdBreakType.PREROLL},u={adBreakId:"0.0.0.4594585498",adBreakItems:[{adBreakItemId:"0b0f3c7b47c64a559081a2d4b7640da6",customInfo:null,duration:10,instream:!1,source:{streams:[{url:""}]},type:o.AdBreakItemType.AD}],backToLiveDuration:0,customInfo:null,duration:10,startOffset:10,startTime:10,type:r.AdBreakType.NON_LINEAR},l={adBreakId:"0.0.0.012345",adBreakItems:[{adBreakItemId:"01345bumper",customInfo:null,duration:15,instream:!1,interactionConfig:null,source:{streams:[{url:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4"}]},type:o.AdBreakItemType.BUMPER}],backToLiveDuration:0,customInfo:null,duration:15,startOffset:0,startTime:0,type:r.AdBreakType.PREROLL},c="adplugin/dummy",d=["ended","error","loadedmetadata","loadeddata","pause","stalled","loadstart","play","playing","seeking","seeked","timeupdate","volumechange","waiting"],h=0,p=function(){function t(){this.version="0.2.137",this.type=s.PluginType.AD,this.mimetype=c,this._videoEl=null,this._currentAdItem=null,this._container=null,this._ended=!1,this._playbackPrepared=!1,this._loadedAd=null,this._currentVol=1,this._isMuted=!1,this._impressionFired=!1,this._stoppingVideo=!1,this._skipRequested=!1,this._renderedNonLinearAdsMap={},this._trackTimeUpdateForNonLinearRendering=!1,this._currentMediaAdBreaks=[],this._events={},this._videoEventListener=this._videoEventListener.bind(this),this._onRendererClick=this._onRendererClick.bind(this)}return t.prototype.prepare=function(t){},t.prototype.destroy=function(){},t.prototype.canRenderUI=function(t){return!(!t||!t.customInfo||"aries-ad"!==t.customInfo.customAdType)},t.prototype.renderUI=function(t,e){var i="",n=Math.random().toString(36).substring(2);return i="aries-ad"===t.customInfo.customAdType?'\n            <style>\n                .vp-adview-aries-ad .aries-header {\n                    background-color: #000;\n                    position: absolute;\n                    width: 100%;\n                    height: 50px;\n                    opacity: 0.5;\n                }\n                .vp-adview-aries-ad .aries-title {\n                    border-radius: 3px;\n                    color: #7f97f8;\n                    position: absolute;\n                    left: 12px;\n                    top: 15px;\n                    padding: 2px 5px;\n                    font-size: 12px;\n                }\n                .vp-adview-aries-ad .aries-title .aries-title-str {\n                    text-decoration: underline;\n                    font-weight: 500;\n                }\n                .vp-adview-aries-ad .aries-cta {\n                    position: absolute;\n                    right: 12px;\n                    top: 12px;\n                }\n                .vp-adview-aries-ad .aries-cta .aries-btn {\n                    border-radius: 3px;\n                    background-color: #7f97f8;\n                    color: #000;\n                    padding: 4px 6px;\n                    font-size: 14px;\n                    pointer-events: auto;\n                }\n            </style>\n            <div class="vp-adview-aries-ad">\n                <div class="aries-header"></div>\n                <div class="aries-title">\n                    <span>Aries Native Ad: </span><span class="aries-title-str">'+(t.customInfo.title||"")+'</span>\n                </div>\n                <div class="aries-cta">\n                    <div class="aries-btn">'+(t.customInfo.cta||"Learn")+"</div>\n                </div>\n            </div>\n            ":'\n            <style>\n                .dummy-adview-header h6 { border-bottom: 1px solid #ccc }\n                .dummy-adview-cta { border: 0;}\n                .dummy-brand {\n                    writing-mode: vertical-rl;\n                    text-orientation: upright;\n                    float: right;\n                }\n            </style>\n            <article class="dummy-adview-header">\n                <span>Ad</span> <span class="">1/5</span> <span class="dummy-adview-timeleft"></span> sec\n            </article>\n            <article class="dummy-adview-footer">\n                <button class="dummy-adview-cta">Learn More</button>\n            </article>\n            <p class="dummy-brand">Dummy Ad UI</p>\n            ',this._renderedAdUI=document.createElement("div"),this._renderedAdUI.setAttribute("id",n),this._renderedAdUI.innerHTML=i,this._renderedAdUI},t.prototype.unrenderUI=function(){},t.prototype.setNonlinearAdContainer=function(t){this._nonLinearAdsContainer=t},t.prototype.onPlayerEvent=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];switch(t){case s.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_PROGRESS:if(this._trackTimeUpdateForNonLinearRendering){var n=e[0];this._maybeRenderNonLinearAdBreak(n)}break;case s.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_ENDED:this._nonLinearAdsContainer.innerHTML="",this._nonLinearAdsContainer=null,this._renderedNonLinearAdsMap={},this._trackTimeUpdateForNonLinearRendering=!1,this._currentMediaAdBreaks.length=0}},t.prototype.getCapabilities=function(){return[n.AdPluginPlaybackCapability.RENDER_PDL]},t.prototype.fetchAdBreaks=function(t){var e=this,i=t.refId,o=t.config;if(o&&o.nativeAdsRawResponse){var s=0,a=o.nativeAdsRawResponse.ads.map(function(t,e){return s+=t.duration,{adBreakItemId:"native-ad-item-"+e,adPluginMimeType:"adplugin/dummy",duration:t.duration,type:"ad",source:{streams:[{url:t.stream}]},customInfo:{customAdType:"aries-ad",title:t.title,cta:t.cta}}}),u={adBreakId:"native-ad-1",startOffset:0,type:r.AdBreakType.NATIVE,duration:s,adBreakItems:a};this._currentMediaAdBreaks=[u],this._dispatchEvent(n.AdPluginEvent.AD_BREAKS_AVAILABLE,{refId:i,adBreaks:this._currentMediaAdBreaks})}else this._currentMediaAdBreaks=this._getDummyAdBreaks(),this._trackTimeUpdateForNonLinearRendering=this._currentMediaAdBreaks.some(function(t){return t.type===r.AdBreakType.NON_LINEAR}),setTimeout(function(){e._dispatchEvent(n.AdPluginEvent.METRICS,{evt:"ad_call"}),e._dispatchEvent(n.AdPluginEvent.AD_BREAKS_AVAILABLE,{refId:i,adBreaks:e._currentMediaAdBreaks})},30)},t.prototype.resolveAdBreak=function(t){var e=this;if(!(t.adBreakItems.length>0)){var i=t.type===r.AdBreakType.NON_LINEAR,o=i?u:a;t.adBreakItems=Array.isArray(t.adBreakItems)?t.adBreakItems:[];for(var s=0;s<1;s++){var d=JSON.parse(JSON.stringify(o)).adBreakItems[0];d.adBreakItemId="dummy_ad_break_item_"+ ++h,d.adPluginMimeType=c,t.duration+=d.duration,t.adBreakItems.push(d)}var p=JSON.parse(JSON.stringify(l)).adBreakItems[0];p.adBreakItemId="dummy_ad_break_item_"+ ++h,p.adPluginMimeType=c,t.duration+=p.duration,t.adBreakItems.push(p),setTimeout(function(){e._dispatchEvent(n.AdPluginEvent.AD_BREAK_RESOLVED,t)},30)}},t.prototype.addEventListener=function(t,e){this._events[t]=this._events[t]||[],this._events[t].push(e)},t.prototype.removeEventListener=function(t,e){if(this._events[t])for(var i=0,n=this._events[t].length;i<n;i++)if(this._events[t][i]===e){this._events[t].splice(i,1);break}},t.prototype.preparePlayback=function(t,e,i){if(e)if(this._videoEl&&!this._videoEl.paused&&this.stop(),e!==this._videoEl&&(this._unbindEvents(this._videoEl),this._videoEl=e,this._bindEvents(this._videoEl)),this._playbackPrepared=!1,this._impressionFired=!1,this._ended=!1,this._stoppingVideo=!1,this._skipRequested=!1,this._loadedAd=null,this._container=i,this._currentAdItem=t,t.source&&t.source.streams&&t.source.streams.length){var r=t.source.streams.filter(function(t){return/\.(?:mp4|webm)/i.test(t.url)});r.length?(this._loadedAd=t,this._videoEl.src=r[0].url,this._videoEl.load(),this._playbackPrepared=!0,this._container.addEventListener("click",this._onRendererClick),this._dispatchEvent(n.AdPluginEvent.ITEM_LOADED,t)):this._dispatchEvent(n.AdPluginEvent.PLAYBACK_ERROR,t,new Error("compatible streams missing"))}else this._dispatchEvent(n.AdPluginEvent.PLAYBACK_ERROR,t,new Error("streams missing"))},t.prototype.play=function(t){this._videoEl&&this._playbackPrepared&&(this._videoEl.play(),this._dispatchEvent(n.AdPluginEvent.PLAY_REQUESTED,this._loadedAd))},t.prototype.pause=function(){this._videoEl&&this._videoEl.pause()},t.prototype.seek=function(t){this._videoEl&&(this._videoEl.currentTime=t)},t.prototype.stop=function(){this._videoEl&&!this._ended&&(this._stoppingVideo=!0,this._videoEl.pause(),this._videoEl.src="",this._videoEl.load())},t.prototype.skip=function(){this._skipRequested=!0,this.stop()},t.prototype.mute=function(t){this._videoEl&&(this._isMuted=t,this._videoEl.muted=t)},t.prototype.isMuted=function(){return!!this._videoEl&&this._videoEl.muted},t.prototype.setVolume=function(t){this._videoEl&&(this._currentVol=t,this._videoEl.volume=t)},t.prototype.getVolume=function(){return this._videoEl?this._videoEl.volume:1},t.prototype.getCurrentTime=function(){return this._videoEl?this._videoEl.currentTime:0},t.prototype.getDuration=function(){return this._videoEl?this._videoEl.duration:0},t.prototype.unload=function(){this.stop(),this._container.removeEventListener("click",this._onRendererClick),this._videoEl=null,this._container=null,this._currentAdItem=null},t.prototype._onRendererClick=function(){this._videoEl.paused?this._videoEl.play():(this._videoEl.pause(),this._currentAdItem.interactionConfig&&this._currentAdItem.interactionConfig.clickUrl&&window.open(this._currentAdItem.interactionConfig.clickUrl))},t.prototype._dispatchEvent=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this._events[t])for(var r=0,o=this._events[t].length;r<o;r++)(e=this._events[t])[r].apply(e,i)},t.prototype._bindEvents=function(t){var e=this;t&&d.forEach(function(i){t.addEventListener(i,e._videoEventListener)})},t.prototype._unbindEvents=function(t){var e=this;t&&d.forEach(function(i){t.removeEventListener(i,e._videoEventListener)})},t.prototype._getDummyAdBreaks=function(){var t=[],e=JSON.parse(JSON.stringify(a));e.adBreakId="dummy_preroll_break_1",e.mimetype=c,e.type=r.AdBreakType.PREROLL,e.duration=0,e.startOffset=0,e.adBreakItems.length=0;var i=JSON.parse(JSON.stringify(a));i.adBreakId="dummy_midroll_break_1",i.mimetype=c,i.type=r.AdBreakType.MIDROLL,i.duration=0,i.startOffset=15,i.adBreakItems.length=0;var n=JSON.parse(JSON.stringify(u));return n.adBreakId="dummy_overlay_break_1",n.mimetype=c,n.duration=0,n.startOffset=30,n.adBreakItems.length=0,t.push(e),t.push(i),t.push(n),t},t.prototype._maybeRenderNonLinearAdBreak=function(t){var e=this;this._currentMediaAdBreaks.forEach(function(i){i.type===r.AdBreakType.NON_LINEAR&&(t<i.startOffset&&t>i.startOffset-1?e.resolveAdBreak(i):t>i.startOffset&&t<i.startOffset+i.duration?e._renderNonLinearAdBreak(i):(t>i.startOffset+i.duration||t<i.startOffset)&&e._unrenderNonLinearAdBreak(i))})},t.prototype._renderNonLinearAdBreak=function(t){var e=this;if(!this._renderedNonLinearAdsMap[t.adBreakId]&&t.adBreakItems&&t.adBreakItems.length){var i=this._renderedNonLinearAdsMap[t.adBreakId]={};t.adBreakItems.forEach(function(t){e._renderNonLinearAdItem(t,e._nonLinearAdsContainer,i)})}},t.prototype._unrenderNonLinearAdBreak=function(t){var e=this;if(this._renderedNonLinearAdsMap[t.adBreakId]){var i=this._renderedNonLinearAdsMap[t.adBreakId];t.adBreakItems.forEach(function(t){e._unrenderNonLinearAdItem(t,i)}),delete this._renderedNonLinearAdsMap[t.adBreakId]}},t.prototype._renderNonLinearAdItem=function(t,e,i){if(t&&e){var r=e.querySelector("#dummy-overlay-ad-styles");r||((r=document.createElement("style")).setAttribute("id","dummy-overlay-ad-styles"),r.innerHTML="\n                div.dummy-overlay-ad {\n                    background-color: rgba(22, 135, 255, 0.55);\n                    cursor: pointer;\n                    height: 55px;\n                    width: 60%;\n                    position: absolute;\n                    bottom: 54px;\n                    left: 50%;\n                    transform: translateX(-50%)\n                }\n            ",e.appendChild(r));var o=document.createElement("div");o.classList.add("dummy-overlay-ad"),e.appendChild(o);var s=o.style.backgroundColor;o.onclick=function(){o.style.backgroundColor="red"!==o.style.backgroundColor?"red":s},i[t.adBreakItemId]={item:t,overlay:o},this._dispatchEvent(n.AdPluginEvent.NONLINEAR_AD_RENDERED,{adBreakItem:t})}},t.prototype._unrenderNonLinearAdItem=function(t,e){var i=e[t.adBreakItemId].overlay;if(i){i.onclick=null;var r=i.parentElement;if(r&&(r.removeChild(i),!r.querySelector(".dummy-overlay-ad"))){var o=r.querySelector("#dummy-overlay-ad-styles");r.removeChild(o)}delete e[t.adBreakItemId],this._dispatchEvent(n.AdPluginEvent.NONLINEAR_AD_CLEARED,{adBreakItem:t})}},t.prototype._handleVideoEnded=function(){this._skipRequested&&this._dispatchEvent(n.AdPluginEvent.SKIPPED,this._loadedAd),this._ended=!0,this._dispatchEvent(n.AdPluginEvent.PLAY_COMPLETE,this._loadedAd)},t.prototype._videoEventListener=function(t){if(!this._ended){var e=t.type,i=t.target;switch(e){case"timeupdate":this._dispatchEvent(n.AdPluginEvent.TIME_UPDATE,i.currentTime,i.duration),!this._impressionFired&&i.currentTime>3&&(this._impressionFired=!0,this._dispatchEvent(n.AdPluginEvent.METRICS,{evt:"ad_impression"}));break;case"ended":this._handleVideoEnded();break;case"error":if(this._stoppingVideo&&i.error&&4===i.error.code){this._handleVideoEnded();break}this._dispatchEvent(n.AdPluginEvent.PLAYBACK_ERROR,i.error);break;case"playing":this._dispatchEvent(n.AdPluginEvent.PLAYING,this._loadedAd);break;case"pause":this._stoppingVideo?this._handleVideoEnded():this._dispatchEvent(n.AdPluginEvent.PAUSED,this._loadedAd);break;case"volumechange":i.muted!==this._isMuted?this._dispatchEvent(n.AdPluginEvent.MUTE_CHANGED,i.muted):i.volume!==this._currentVol&&this._dispatchEvent(n.AdPluginEvent.VOLUME_CHANGED,i.volume)}}},t}();e.default=p},SQuN:function(t,e,i){"use strict";function n(t){t&&(this.startSeqNum=t.startSeqNum,this.startTime=t.startTime,this.cuepointDuration=t.cuepointDuration,this.isCueOutFired=!1,this.isCueOutDetectedFired=!1)}t.exports=n,n.prototype.setCueOutFiredState=function(t){this.isCueOutFired=t},n.prototype.setCueOutDetectedState=function(t){this.isCueOutDetectedFired=t},n.prototype.setCueOutStartTime=function(t){this.startTime=t},n.prototype.dto=function(){var t=this,e={};return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}},STAJ:function(t,e,i){"use strict";t.exports=o;var n=i("AkMV"),r=i("9nRl");function o(){this._pointer=0}o.prototype.destroy=function(){this._pointer=0},o.prototype.parse=function(t,e,i){if(!t||!e||!n[e])return null;this._pointer=0;var o=new DataView(t.buffer);if(r.isNullOrUndefined(i)?(i=this.findBoxOffset(o,e),this._pointer=i):this._pointer=i,this._pointer<0)return null;var s=this.parseHeader(o,e,this._pointer);return!s||s.boxSize>o.byteLength?null:"sidx"===s.boxType?this._parseSidx(o,s,i):this._parse(o,s)},o.prototype._parseAll=function(t){var e=[];if(!t)return e;this._pointer=0;for(var i=new DataView(t.buffer);this._pointer+8<=i.byteLength;){var r=this._pointer,o=this._binaryToString(i.getUint32(r+4),4);if(n[o]){var s=this.parseHeader(i,o,r);s&&("sidx"===s.boxType?e.push(this._parseSidx(i,s)):e.push(this._parse(i,s)))}else this._pointer++}return e},o.prototype.parseHeader=function(t,e,i){var r={boxOffset:i};this._pointer=i;var o=this._parseBox(t,r);return-1===o||r.boxType!==e?null:n[e].fullBox&&-1===(o=this._parseFullBox(t,r))?null:r},o.prototype.extractVttCaptions=function(t){var e=[];if(this._pointer=0,!t)return e;var i=new DataView(t.buffer),n=this.findBoxOffset(i,"mdat");if(n<0)return e;var r=t.slice(n+8),o=this._parseAll(r);if(!o.length)return e;for(var s=0;s<o.length;s++){var a=o[s];if(a)if("vttc"===a.boxType){this._pointer=0;var u=r.slice(a.boxOffset+8,a.boxOffset+a.boxSize),l=this._parseAll(u);e.push(this._getVttCaption(l))}else"vtte"===a.boxType&&e.push({})}return e},o.prototype._parse=function(t,e,i){if(!t||!e||e.boxSize>t.byteLength)return e;var r=n[e.boxType],o=r.properties;if(!o)return this._pointer+=e.boxSize-(r.fullBox?12:8),e;for(var s=Object.keys(o),a=0;a<s.length;a++){var u=s[a],l=o[u];if(this._isPresent(l.validator,e[l.validationProperty]||e.flags,l.validationResult))if("array"===l.type){e[u]=[];var c=l.length||l.lengthField&&e[l.lengthField],d=l.itemSchema;if(!d)break;c?this._readFixedLengthArray(e,u,t,c,d,i):this._readVariableLengthArray(e,u,t,d)}else this._setProp(t,l,i,u),e[u]=this._readSingleProp(e,l,t)}return e},o.prototype._setProp=function(t,e,i,n,r,o){if(i&&e){var s=!i.pos||i.pos&&i.pos===r||r===o-1&&-1===i.pos;i.name&&n===i.name&&i.length&&e.length&&i.length===e.length&&s&&this._setBytes(t,i)}},o.prototype._readFixedLengthArray=function(t,e,i,n,r,o){for(var s,a=0;a<n;a++){if(r.length)s=this._readSingleProp(t,r,i);else{s={};for(var u=Object.keys(r),l=0;l<u.length;l++){var c=u[l],d=r[c];this._isPresent(d.validator,t.flags)&&(this._setProp(i,d,o,c,a,n),s[c]=this._readSingleProp(t,d,i))}}t[e].push(s)}},o.prototype._readVariableLengthArray=function(t,e,i,n){for(var r;this._pointer<t.boxOffset+t.boxSize;)r=this._readSingleProp(t,n,i),t[e].push(r)},o.prototype._isPresent=function(t,e,i){return!t||(i?(e&t)===i:e&t)},o.prototype._readSingleProp=function(t,e,i){var n;return e.length&&(n=this._readBytes(i,e.length),this._pointer+=n.readBytes,n.readBytes===e.length/8)?"string"===e.type?this._binaryToString(n.value,4):n.value:"string"===e.type?this._readString(t,i):"boxstring"===e.type?this._readBoxString(t,i):null},o.prototype._readBytes=function(t,e){var i={value:0,readBytes:0},n=e/8;if(this._pointer+n<=t.byteLength){switch(e){case 8:i.value=t.getUint8(this._pointer);break;case 16:i.value=t.getUint16(this._pointer);break;case 32:i.value=t.getUint32(this._pointer);break;case 64:for(var r=new Uint8Array(8),o=0;o<8;o++)r[o]=t.getUint8(this._pointer+o);i.value=r}i.readBytes=n}return i},o.prototype._setBytes=function(t,e){var i=e.value;switch(e.length){case 8:t.setUint8(this._pointer,i);break;case 16:t.setUint16(this._pointer,i);break;case 32:t.setUint32(this._pointer,i)}},o.prototype._readString=function(t,e){var i="",n=this._readBytes(e,8);for(this._pointer+=n.readBytes;n.readBytes>0&&n.value>0&&this._pointer<t.boxOffset+t.boxSize;)i+=String.fromCharCode(n.value),n=this._readBytes(e,8),this._pointer+=n.readBytes;return i},o.prototype._readBoxString=function(t,e){var i=t.boxSize-(this._pointer-t.boxOffset),n=String.fromCharCode.apply(null,new Uint8Array(e.buffer,this._pointer,i));return this._pointer+=i,n},o.prototype.findBoxOffset=function(t,e){if(!t||t.byteLength<8)return-1;var i,r=n[e].parents,o=0;if(r&&r.length>0){for(var s=!1,a=0;a<r.length;a++){var u=r[a];if((i=this.findBoxOffset(t,u))>=0){o=i+(n[u].fullBox?12:8);var l=n[u].payload;l&&(o+=l),s=!0;break}}if(!s)return-1}for(;o+8<=t.byteLength;){if(this._binaryToString(t.getUint32(o+4),4)===e)return o;var c=t.getUint32(o);if(!(c>0))break;o+=c}return-1},o.prototype._parseBox=function(t,e){if(!t||!e||t.byteLength<8)return-1;e.boxSize=t.getUint32(this._pointer),this._pointer+=4;var i=t.getUint32(this._pointer);return e.boxType=this._binaryToString(i,4),this._pointer+=4,1===e.boxSize&&(e.boxSize=this._getUint64(t),this._pointer+=8),0},o.prototype._parseFullBox=function(t,e){if(!t||!e)return-1;var i=t.getUint32(this._pointer);return e.boxVersion=i>>24,e.flags=16777215&i,this._pointer+=4,0},o.prototype._parseSidx=function(t,e,i){var n;if(!t||!e)return null;i=i||0,this._pointer+=4,this._pointer+=4,0===e.boxVersion?(t.getUint32(this._pointer),this._pointer+=4,n=t.getUint32(this._pointer),this._pointer+=4):(this._getUint64(t),this._pointer+=8,n=this._getUint64(t),this._pointer+=8),this._pointer+=2;var r=t.getUint16(this._pointer);this._pointer+=2;for(var o=e.boxOffset+e.boxSize+n,s=[],a=0;a<r;a++){var u=t.getUint32(this._pointer);if(this._pointer+=4,1===u>>>31)return null;var l=2147483647&u;this._pointer+=8,s.push({brStartOffset:o+i,brEndOffset:o+i+l-1}),o+=l}return s},o.prototype.setSingleProp=function(t,e,i){if(t&&e){var n=new DataView(t.buffer),r=this.findBoxOffset(n,e);if(!(r<0)){this._pointer=r;var o=this.parseHeader(n,e,r);o&&this._parse(n,o,i)}}},o.prototype._binaryToString=function(t,e){if(!t||!e)return"";for(var i=new Array(e),n=e-1;n>=0;n--){var r=255&t;i[n]=String.fromCharCode(r),t>>>=8}return i.join("")},o.prototype._getUint64=function(t){var e=this._pointer,i=t.getUint32(e);e+=4;var n=t.getUint32(e);return i*Math.pow(2,32)+n},o.prototype._getVttCaption=function(t){for(var e={},i=0;i<t.length;i++){var n=t[i];if(n)switch(n.boxType){case"vsid":e.sourceId=n.sourceId;break;case"ctim":e.cueTime=n.cueTime;break;case"payl":e.cueText=n.cueText}}return e}},TQia:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("t8Yn"),s=i("c+yx"),a=i("AuZZ"),u=function(t){function e(e){var i=t.call(this,e)||this;return i.pageLatency="",i.mmActivityId="",i.s="",i._ex=a.HIDE_KEY,i._NOL=a.HIDE_KEY,i.test="",i.cached_vs="",i.expn="",i.expt="",i.expb="",i.vsid="",i.lms_id="",i.bckt="",i.env="",i.ccap="",i.loc="",i.site="",i.intl="",i.lang="",i.ccode="",i.sec="",i.cpos="",i.pt="",i.pd="",i.pct="",i.pstcat="",i.p_sec="",i.p_subsec="",i.ver="",i.pstaid_p="",i.pkgt="",i.subsec="",i._rid="",i.bx="",i.ar="",i.vrmver=a.VRM_VERSION,i.bckt=s.default.getBckt(),i}return r(e,t),e.prototype.update=function(e){t.prototype.update.call(this,e),this.expn=e.experienceName&&e.experienceName.toLowerCase()||this.expn,this.expb=e.experienceBucket||this.expb,this.test=this.expb,this.expt=e.experienceType&&e.experienceType.toLowerCase()||this.expt,this.s=e.pageSpaceId||this.s,this.pt=e.pt||this.pt,this.pd=e.pd||this.pd,this.pct=e.pct||this.pct,this.pstcat=e.pstcat||this.pstcat,this.ver=e.ver||this.ver,this.p_sec=e.p_sec||this.p_sec,this.p_subsec=e.p_subsec||this.p_subsec,this._rid=e._rid||this._rid,this.pstaid_p=e.pstaid_p||this.pstaid_p,this.pkgt=e.pkgt||this.pkgt,this.sec=e.sec||this.sec,this.subsec=e.subsec||this.subsec,this.cpos=e.cpos||this.cpos,this.ccode=e.ccode||this.ccode,this._ex=e.offNetwork?"1":this._ex,this._NOL=e.offNetwork?"1":this._NOL,this.site=e.site&&e.site.toLowerCase()||this.site,this.intl=e.region&&e.region.toLowerCase()||this.intl,this.lang=e.lang&&e.lang.toLowerCase()||this.lang,this.expm=e.experienceName&&"lightbox"===e.experienceName.toLowerCase()?"lightbox":this.expm,this.lms_id=e.license&&e.license.salesforceId||this.lms_id,this.pageLatency=e.pageLatency,this.pltype=s.default.getPlayerType(),this.mmActivityId=e.customConfig&&e.customConfig.metrics&&e.customConfig.metrics.mmActivityId||this.mmActivityId,this.bx=s.default.getCookie("BX")||this.bx,this.ar=e.aspectRatio||this.ar},e.prototype.getCommonParams=function(){var e=this,i=t.prototype.getCommonParams.call(this)||{};return a.PARAMS.forEach(function(t){e[t]!==a.HIDE_KEY&&(i[t]=e[t])}),i},e}(o.Analytics.VdmsAnalyticsModel);e.default=u},Tavk:function(t,e,i){"use strict";t.exports.AACStream=l,t.exports.AVCStream=c;var n=i("K+58"),r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],o=["Null","Main","LC","SSR","LTP"],s=9e4,a=.033,u=t.exports.NAL_UNIT_TYPES={NON_IDR:1,IDR:5,AD_INFO_SEI:6,SPS:7,PPS:8,AUD:9};function l(t){this._frames=[],this._demuxConfig=t||{},this._config={},this.ready=!1,this._defaultFrameDuration=0}function c(t){this._frames=[],this._demuxConfig=t||{},this._config={},this._keyFrameIndex=0,this.ready=!1,this._keyFrameCount=0,this._defaultFrameDuration=a*s,this._seiParser=new n}l.prototype.destroy=function(){this._frames=[]},l.prototype.readFrames=function(t){t&&t.packetInfo&&this.readFramesFromBitstream(t.packetInfo.streamData,t.packetInfo.pts)},l.prototype.readFramesFromBitstream=function(t,e){if(!t||t.length<6)return 0;for(var i=0,n=0,r=0;i<t.length;){var o=0,s=(t[i++]<<8)+t[i++],a=1&s;if(65520==(65520&s)&&0===(6&s)){this._parseConfig(t.subarray(i,i+2)),this._config.codec="mp4a.40.2",i++;var u=(t[i++]<<16)+(t[i++]<<8)+t[i++];for(u=(262112&u)>>>5,n=1+(3&t[i++]),a?u-=7:(u-=9,i+=2);o<n&&i<t.length;){var l=e+r*this._defaultFrameDuration;this._frames.push({data:t.subarray(i,i+u),dts:l,pts:l,keyframe:!1,flags:{isLeading:!1,dependsOn:!0,isDependedOn:!1,hasRedundancy:!1,paddingValue:!1,isNonSyncSample:!1,degradationPriority:1}}),i+=u,o++,r++}}else i--}return this.ready=this._checkReadiness(),i},l.prototype._parseConfig=function(t){if(t&&!(t.length<2)){var e=1+((192&t[0])>>>6);e=e>4?4:e,this._config.audioObjectTypeIndex=e,this._config.audioObjectType=o[e],e=(e=(60&t[0])>>>2)<13?e:0,this._config.samplingFreqIndex=e,this._config.samplingFreq=r[e],this._config.channels=(1&t[0])<<2|(192&t[1])>>>6,this._config.sampleSize=16,this._defaultFrameDuration=1024*s/this._config.samplingFreq}},l.prototype._checkReadiness=function(){var t=this._frames.length;return(t>0?this._frames[t-1].pts-this._frames[0].pts+this._defaultFrameDuration:0)>=.1*s},l.prototype.getFrames=function(){return this.ready=!1,this._frames.splice(0,this._frames.length)},l.prototype.getConfig=function(){return this._config},l.prototype.getLastFrameDetails=function(){return this._frames.length?{timestamp:this._frames[this._frames.length-1].dts,duration:this._defaultFrameDuration}:null},c.prototype.destroy=function(){this._frames=[],this._seiParser.destroy()},c.prototype.readFrames=function(t){if(t&&t.packetInfo){var e=t.packetInfo.streamData;if(e&&!(e.length<4)){for(var i,n,r=0,o=0,s=0,a=r,l={nalUnits:[],nalUnitSize:0,dts:t.packetInfo.dts,pts:t.packetInfo.pts,keyframe:!1,data:e,cea608Data:[],flags:{isLeading:0,dependsOn:0,isDependedOn:0,hasRedundancy:0,paddingValue:0,isNonSyncSample:!1,degradationPriority:0}},c=4294967295,d=!1;r<e.length;){if(n=NaN,1===(c=c<<8|e[r++])&&(n=4),1===(16777215&c)){if(!d&&r>n&&this._frames&&this._frames.length){var h=this._frames[this._frames.length-1],p=h.nalUnits,f=p[p.length-1];if(f){var _,m=r-n;h.nalUnitSize+=m,f.data?((_=new Uint8Array(f.data.byteLength+m)).set(f.data,0),_.set(e.subarray(0,m),f.data.byteLength)):(_=new Uint8Array(m)).set(e.subarray(0,m),0),f.data=_,(_=new Uint8Array(h.data.byteLength+m)).set(h.data,0),_.set(e.subarray(0,m),h.data.byteLength),h.data=_}}if(d=!0,c=4294967295,n=n||3,(o=l.nalUnits.length)>=1&&null===l.nalUnits[o-1].data)switch(s=r-a-n,i=e.subarray(a,a+s),l.nalUnitSize+=s,l.nalUnits[o-1].data=i,l.nalUnits[o-1].type){case u.SPS:this._config.profileIndication=i[1],this._config.profileCompatibility=i[2],this._config.levelIndication=i[3],this._config.numOfSPS=1,this._config.spsLength=i.length,this._config.sps=i;break;case u.PPS:this._config.numOfPPS=1,this._config.ppsLength=i.length,this._config.pps=i}a=r,s=0;var y=31&e[r++];if(y<u.AUD&&l.nalUnits.push({data:null,type:y}),y===u.IDR)this._keyFrameIndex=this._frames.length,l.keyframe=!0,l.flags.dependsOn=2,this._keyFrameCount++;else if(y===u.NON_IDR)l.keyframe=!1,l.flags.dependsOn=1,l.flags.isNonSyncSample=!0;else if(y===u.AD_INFO_SEI)for(var v=this._seiParser.parse(e,r),g=0;g<v.length;g++)l.cea608Data.push(v[g])}}(o=l.nalUnits.length)>=1&&null===l.nalUnits[o-1].data&&a<e.length&&(s=r-a,l.nalUnits[o-1].data=e.subarray(a,a+s),l.nalUnitSize+=s),this._config.codec=this._getVideoCodecType(this._config),l.nalUnitSize>0&&this._frames.push(l),this.ready=this._checkReadiness()}}},c.prototype._checkReadiness=function(){var t=this._frames.length,e=t>0?this._frames[t-1].pts-this._frames[0].pts+this._defaultFrameDuration:0,i=.1*s;return this._demuxConfig.startChunkWithKeyFrame?this._keyFrameCount>=2:t>1&&e>=i},c.prototype.getFrames=function(t){var e=this._demuxConfig.startChunkWithKeyFrame&&t&&t.keyFrameBoundary,i=t.keyFrameBoundary?this._frames.length-1:this._frames.length;e&&(i=this._keyFrameIndex,this._keyFrameCount=1,this.ready=!1);var n=this._frames.splice(0,i);return this._keyFrameIndex=0,n},c.prototype.getConfig=function(){return this._config},c.prototype._getVideoCodecType=function(t){var e=t&&t.profileIndication||66;return"avc1."+((e=Math.max(e,66))<<16|(t&&t.profileCompatibility||0)<<8|(t&&t.levelIndication||10)).toString(16)}},Teho:function(t,e){t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},ToqN:function(t,e,i){"use strict";t.exports={userAgent:i("4Qju"),capabilities:i("bAFD")}},TsVQ:function(t,e,i){"use strict";t.exports=s;var n=i("x7P6").StreamingMode,r=i("V66C").StreamTypes,o=i("/iNa");function s(){this._cuepointList=[],this._parsedDom=null,this._check="blah",this._upLynkPrefix=null,this._startTimeOffset=null,this.ERRORS={INVALID_MPD:1,EMPTY_DATA:2,NO_SEGMENTS:3}}s.prototype.destroy=function(){},s.prototype._iso8601ToMS=function(t){return t?Date.parse(t):0},s.prototype._presentationTimeToMS=function(t){var e=0;if(t&&"P"===t.charAt(0)){t.match(/[\d|.|\+]+[A-Z]/g).forEach(function(t){var i=t.charAt(t.length-1),n=parseFloat(t,10);"S"===i?n*=1e3:"M"===i?n*=6e4:"H"===i&&(n*=36e5),e+=n})}else t&&!isNaN(t)&&(e=parseFloat(t,10));return e},s.prototype._formatPathNumber=function(t,e){if(void 0===t||void 0===e)return"";if("08d"===t){for(var i=e.toString();i.length<8;)i="0"+i;return i}return e},s.prototype._generateSegmentInfo=function(t,e,i,n,r,o){var s={brEndOffset:-1,brStartOffset:-1,containerFormat:"mp4",discontinuity:0,duration:t/1e3,levelIndex:0,periodId:e,sequenceNum:i,startTime:n/1e3,url:r,initSegment:{url:o}};return null===this._startTimeOffset?(this._startTimeOffset=s.startTime,s.startTime=0):(s.startTime-=this._startTimeOffset,s.startTime=Math.round(1e3*s.startTime)/1e3),s},s.prototype._createStreamInfo=function(t,e,i,o,s,a,u,l){var c=this._getStreamType(e),d=this._getTimeScale(i),h=this._getSegmentDurationMS(i),p=s>h?s/d:h/d,f={groupId:i.id,bitrate:parseInt(i.bandwidth),codecs:[i.codecs],containerFormat:"mp4",drmInfo:[],duration:o/1e3,hasAudio:c===r.AUDIO,hasEndList:!s&&o>0,height:c===r.VIDEO?i.height:0,segmentInfoList:[],type:c,width:c===r.VIDEO?i.width:0,streamingMode:n.DASH,initSegment:{url:l},url:u,targetDuration:p};if(c===r.AUDIO?(f.audioCodec=i.codecs,f.language=e.lang,f.autoSelect=!1,f.default=!1,f.groupId=i.id,f.channels=i.audioChannnelConfiguration?i.audioChannnelConfiguration.value:0):c===r.VIDEO?(f.audioGroupId="audio",f.subtitlesGroupId="subs",f.videoCodec=i.codecs):c===r.SUBTITLES&&(f.language=e.lang,f.groupId=i.id,f.codec=i.codecs,f.autoSelect=!1,f.subtitlesCodec=i.codecs),e.drm.length>0){for(var _={},m=0;m<e.drm.length;m++){var y=e.drm[m];_.periodId=t.id;var v={prefix:null!==this._upLynkPrefix?this._upLynkPrefix:"",pssh:y.pssh};"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===y.schemeIdUri?(v.type="wv",_.widevine=v):"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"===y.schemeIdUri&&(v.type="pr",v.pro=y.pro,_.playready=v)}f.drmInfo.push(_)}return f},s.prototype._getTimeScale=function(t){return t.segmentList?parseInt(t.segmentList.timescale,10):t.segmentTemplate?parseInt(t.segmentTemplate.timescale,10):1e3},s.prototype._getSegmentDurationMS=function(t){var e=this._getTimeScale(t);return t.segmentList?1e3*parseInt(t.segmentList.duration,10)/e:t.segmentTemplate?1e3*parseInt(t.segmentTemplate.duration,10)/e:0},s.prototype._createSegmentList=function(t,e,i,n,r,s,a,u){var l=new RegExp(/\$Number%([\d|.|\+]*[a-zA-Z])\$/),c=t.startMS,d=t.durationMS,h=this._getSegmentDurationMS(e),p=[],f="";if(e.segmentList)for(var _=0;_<e.segmentList.segments.length;_++){var m=e.segmentList.segments[_],y=Math.min(h,d);d-=y,f=i&&!o.isAbsoluteUrl(m)?i+m:m,p.push(this._generateSegmentInfo(y,t.id,_,c,f,n)),c+=y}else if(e.segmentTemplate){var v=e.segmentTemplate,g=parseInt(v.startNumber,10),E=0,b=Math.ceil(t.durationMS/h),S=0,A=0,T=0;if("dynamic"===u?(S=Math.min(Math.floor((s-t.startMS)/h),b),A=Math.max(Math.floor((s-t.startMS-a)/h),1)):(S=b,A=1),S<=0||A>S)E=0;else{var I=A-1;g+=I,E=S===A?1:S-A+1,T=t.startMS+I*h,d-=I*h,E<0&&(E=0)}for(var C=v.media.replace("$RepresentationID$",e.id),R=l.test(C)?C.match(l)[1]:"",L=g;L<E+g;L++){var P=C.replace(l,this._formatPathNumber(R,L)),O=Math.min(h,d);d-=O,f=i&&!o.isAbsoluteUrl(P)?i+P:P;var D=this._generateSegmentInfo(O,t.id,L-g,T,f,n);p.push(D),T+=O}}return p},s.prototype._getInitSegmentUrl=function(t,e){var i=null;return t.segmentList?i=t.segmentList.initialization.sourceURL:t.segmentTemplate&&(i=t.segmentTemplate.initialization.replace("$RepresentationID$",t.id)),e&&!o.isAbsoluteUrl(i)?e+i:i},s.prototype._getXmlDocument=function(t){return(new DOMParser).parseFromString(t,"application/xml")},s.prototype.parse=function(t){var e=this,i={};if(!t)return null;var o=e._getXmlDocument(t.rawData);if(null===o||null===o.documentElement||void 0===o.documentElement)return i.error=e.ERRORS.INVALID_MPD,i;if("MPD"!==o.documentElement.nodeName)return i.error=e.ERRORS.INVALID_MPD,i;t.headers&&t.headers.length>0&&t.headers.forEach(function(t){"x-uplynk-prefix"===t.name&&(e._upLynkPrefix=t.value)}),e._parsedDom=o,e._appendAttributes(o.documentElement,i);var s=e._iso8601ToMS(i.publishTime),a=e._getNowGMT(s);i.streamingMode=n.DASH,i.drm=!1,i.reloadUrl=t.url;for(var u=[],l=o.documentElement.childNodes,c=0;c<l.length;c++){var d=l[c];if(1===d.nodeType)if("Period"===d.nodeName){var h=e._parsePeriod(d);null!==h&&u.push(h)}else"Location"===d.nodeName&&(i.reloadUrl=d.childNodes[0].nodeValue)}for(var p=[],f=[],_=[],m=e._presentationTimeToMS(i.mediaPresentationDuration),y=e._presentationTimeToMS(i.minimumUpdatePeriod),v=e._presentationTimeToMS(i.suggestedPresentationDelay),g=e._iso8601ToMS(i.availabilityStartTime),E=0,b=-1,S=0;S<u.length;S++){var A=u[S];A.startMS=e._getPeriodStartMS(A,g,E),-1===b&&(b=A.startMS);var T=S+1<u.length?u[S+1]:null;A.endMS=e._getPeriodEndMS(A,A.startMS,g,T,b,m,y,a),A.durationMS=A.endMS-A.startMS;for(var I=0;I<A.adaptationSets.length;I++)for(var C=A.adaptationSets[I],R=e._getStreamType(C),L=0;L<C.representations.length;L++){var P=C.representations[L],O=P.baseURL?P.baseURL:C.baseURL,D=e._getInitSegmentUrl(P,O),M=e._createStreamInfo(A,C,P,m,y,i.type,i.reloadUrl,D),w=e._createSegmentList(A,P,O,D,b,a,v,i.type);w.length>0&&(Array.prototype.push.apply(M.segmentInfoList,w),R===r.VIDEO?e._appendStreamInfoToGroup(p,M):R===r.AUDIO?e._appendStreamInfoToGroup(f,M):R===r.SUBTITLES&&e._appendStreamInfoToGroup(_,M)),C.drm.length>0&&(i.drm=!0)}E+=A.durationMS}this._setAltTrackDefault(f),this._setAltTrackDefault(_);var N={AUDIO:{audio:f},SUBTITLES:{subs:_}};return i.streamInfoList=p,i.renditionGroups=N,i},s.prototype._setAltTrackDefault=function(t){t&&t.length>0&&(t[0].autoSelect=!0,t[0].default=!0)},s.prototype._appendStreamInfoToGroup=function(t,e){for(var i=0;i<t.length;i++)if(t[i].groupId===e.groupId)return void this._appendStreamInfo(t[i],e);e.index=t.length,t.push(e)},s.prototype._getStreamType=function(t){return"video/mp4"===t.mimeType?r.VIDEO:"audio/mp4"===t.mimeType?r.AUDIO:"application/mp4"===t.mimeType&&"text"===t.contentType?r.SUBTITLES:r.VIDEO},s.prototype._appendStreamInfo=function(t,e){for(var i=t.segmentInfoList[t.segmentInfoList.length-1].sequenceNum+1,n=0;n<e.segmentInfoList.length;n++){var r=e.segmentInfoList[n];r.sequenceNum=i+n,t.segmentInfoList.push(r)}for(var o=0;o<e.drmInfo.length;o++)t.drmInfo.push(e.drmInfo[o]);e.bitrate>t.bitrate&&(t.bitrate=e.bitrate)},s.prototype._appendAttributes=function(t,e){for(var i=t.attributes,n=0;n<i.length;n++)e[i[n].nodeName]=i[n].nodeValue;return i.length},s.prototype._parsePeriod=function(t){var e={adaptationSets:[]};this._appendAttributes(t,e);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];if(1===n.nodeType)if("AssetIdentifier"===n.nodeName){var r={};this._appendAttributes(n,r),e.assetIdentifier=r}else if("AdaptationSet"===n.nodeName){var o=this._parseAdaptationSet(n);null!==o&&e.adaptationSets.push(o)}}return e},s.prototype._parseAdaptationSet=function(t){var e={representations:[],drm:[]};this._appendAttributes(t,e);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];if(1===n.nodeType)if("Role"===n.nodeName){var r={};this._appendAttributes(n,r),e.role=r}else if("BaseURL"===n.nodeName)e.baseURL=n.childNodes[0].nodeValue;else if("ContentProtection"===n.nodeName){var o=this._parseContentProtection(n);null!==o&&e.drm.push(o)}else if("Representation"===n.nodeName){var s=this._parseRepresentation(n);null!==s&&e.representations.push(s)}else n.nodeName}return e},s.prototype._parseContentProtection=function(t){var e={};this._appendAttributes(t,e);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];if(1===n.nodeType)if(-1!==n.nodeName.indexOf("pssh"))e.pssh=n.childNodes[0].nodeValue;else if("mspr:pro"===n.nodeName)e.pro=n.childNodes[0].nodeValue;else if("ms:laurl"===n.nodeName){var r={};this._appendAttributes(n,r),e.laurl=r}}return e},s.prototype._parseRepresentation=function(t){var e={};this._appendAttributes(t,e);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];if(1===n.nodeType)if("AudioChannelConfiguration"===n.nodeName){var r={};this._appendAttributes(n,r),e.audioChannnelConfiguration=r}else if("BaseURL"===n.nodeName)e.baseURL=n.childNodes[0].nodeValue;else if("SegmentTemplate"===n.nodeName){var o={};this._appendAttributes(n,o),e.segmentTemplate=o}else if("SegmentList"===n.nodeName){var s=this._parseSegmentList(n);null!==s&&(e.segmentList=s)}}return e},s.prototype._parseSegmentList=function(t){var e={segments:[]};this._appendAttributes(t,e);for(var i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];if(1===n.nodeType)if("Initialization"===n.nodeName){var r={};this._appendAttributes(n,r),e.initialization=r}else if("SegmentURL"===n.nodeName){var o=n.getAttribute("media");null!==o&&e.segments.push(o)}}return e},s.prototype._getPeriodStartMS=function(t,e,i){return t.start?e+this._presentationTimeToMS(t.start):i},s.prototype._getPeriodEndMS=function(t,e,i,n,r,o,s,a){return t.duration?e+this._presentationTimeToMS(t.duration):n&&n.start?i+this._presentationTimeToMS(n.start):o?i+r+o:s+a},s.prototype._getNowGMT=function(t){var e=Date.now();return this._localRemoteTimeDiff||(this._localRemoteTimeDiff=e-t),e-this._localRemoteTimeDiff}},U6jy:function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)i.call(n,r)&&(t[r]=n[r])}return t};var i=Object.prototype.hasOwnProperty},UDn2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.VOD="vod",t.LIVE_EVENT="liveEvent",t.LIVE_CHANNEL="liveChannel",t.CONTAINER="container"}(e.MediaItemType||(e.MediaItemType={})),function(t){t.NO_DATA="no-data",t.FETCHING="fetching",t.HAS_DATA="has-data",t.ERROR="error"}(e.ItemState||(e.ItemState={})),function(t){t.NO_DATA="no-source-data",t.FETCHING="fetching-source",t.HAS_DATA="has-source-data",t.ERROR="source-error"}(e.SourceState||(e.SourceState={})),function(t){t.NOT_RECOVERING="not-recovering",t.RECOVERING="recovering",t.RECOVERED="recovered"}(e.ItemRecoveryStatus||(e.ItemRecoveryStatus={})),function(t){t.UPLYNK="media/uplynk",t.SAPI="media/sapi",t.CONTAINER="media/container"}(e.MediaItemMimeType||(e.MediaItemMimeType={}))},URgk:function(t,e,i){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,i("yLpj"))},UbnH:function(t,e,i){"use strict";t.exports={DATA_PROCESS_PROGRESS:"dataProcessProgress",DATA_PROCESS_ERROR:"dataProcessError",DATA_PROCESS_COMPLETE:"dataProcessComplete"}},V66C:function(t,e,i){"use strict";t.exports.Stream=c;var n=e.StreamTypes={MAIN:"MAIN",AUDIO:"AUDIO",VIDEO:"VIDEO",SUBTITLES:"SUBTITLES",CLOSED_CAPTIONS:"CLOSED_CAPTIONS"},r=i("MIFH"),o=i("SQuN"),s=i("9EqR"),a=i("x7P6").StreamingMode,u=i("STAJ"),l=i("rnuW");function c(t,e){this.segments=[],this.cuepoints=[],this.type=n.MAIN,this.videoCodec=null,this.audioCodec=null,this.mp4Chunks={sidx:null,first:null},this.adjusted=!1,this._initSegmentCache=new l(this),this.activeInitSegment=null,t&&(this._initAlternateGroups(t,e),this.updateConfig(t)),this._mp4Parser=new u}c.prototype.destroy=function(){var t=this;t.segments=[],t.cuepoints=[],"mp4"===t.containerFormat&&Object.keys(t.mp4Chunks).forEach(function(e){var i=t.mp4Chunks[e];i&&i.destroy()}),t._initSegmentCache.destroy()},c.prototype._initAlternateGroups=function(t,e){if(this.altRenditionGroups={},e)for(var i=0;i<e.length;i++){var n=e[i];n.groupId===t.audioGroupId?(this.altRenditionGroups.AUDIO=n,this.audioGroupId=t.audioGroupId):n.groupId===t.videoGroupId?(this.altRenditionGroups.VIDEO=n,this.videoGroupId=t.videoGroupId):n.groupId===t.subtitlesGroupId?(this.altRenditionGroups.SUBTITLES=n,this.subtitlesGroupId=t.subtitlesGroupId):n.groupId===t.ccGroupId&&(this.altRenditionGroups.CLOSED_CAPTIONS=n,this.ccGroupId=t.ccGroupId)}},c.prototype.getAlternateStream=function(t){if(this.altRenditionGroups[t])return this.altRenditionGroups[t].getCurrentStream()},c.prototype.setAlternateStream=function(t,e){this.altRenditionGroups[t]&&this.altRenditionGroups[t].setCurrentStream(e)},c.prototype.updateConfig=function(t){var e=this,i=e.audioCodec&&e.audioCodec.length>0;if(t&&(e.streamingMode=t.streamingMode||e.streamingMode,e.bitrate=t.bitrate||e.bitrate,e.avgBitrate=t.avgBitrate||e.avgBitrate,e.url=t.url||e.url,e.containerFormat=t.containerFormat||e.containerFormat,e.cdn=t.cdn||e.cdn,e.rcMode=t.rcMode||"cbr",e.channels=t.channels>=0?t.channels:e.channels,e.width=t.width>=0?t.width:e.width,e.height=t.height>=0?t.height:e.height,e.index=t.index>=0?t.index:e.index,e.hlsInfo=t.hlsInfo||e.hlsInfo,e.targetDuration=t.targetDuration||NaN,e.sessionId=t.sessionId||null,e.audioCodec=t.audioCodec||e.audioCodec,e.videoCodec=t.videoCodec||e.videoCodec,e.type=t.type||n.MAIN,e.sidxOffset=t.sidxOffset>=0?t.sidxOffset:e.sidxOffset,e.sidxLength=t.sidxLength>=0?t.sidxLength:e.sidxLength,e.firstSegOffset=t.firstSegOffset>=0?t.firstSegOffset:e.firstSegOffset,e.firstSegLength=t.firstSegLength>=0?t.firstSegLength:e.firstSegLength,e.hasAudio=t.hasAudio||i||e.channels>0||e.hasAudio,e.groupId=t.groupId||null,void 0!==t.hasEndList&&null!==t.hasEndList&&(e.hasEndList=t.hasEndList),e.hlsInfo&&e.hlsInfo.mp4_url&&(e.mp4Chunks.sidx=e._createMp4Chunk("sidx",e.sidxOffset,e.sidxLength,e.hlsInfo.mp4_url),e.mp4Chunks.first=e._createMp4Chunk("first",e.firstSegOffset,e.firstSegLength,e.hlsInfo.mp4_url)),t.drmInfo&&(e.drmInfo=t.drmInfo)),e.url&&e.url.length&&e.url.indexOf("_60fps")>=0?e.frameRate=60:e.frameRate="AUDIO"===e.type?0:30,t&&t.segmentInfoList){var s=[];t.segmentInfoList.forEach(function(t){t.levelIndex=e.index,t.bitrate=e.bitrate,t.sessionId=e.sessionId,t.cdn=e.cdn;var i=e.getSegmentfromSeqNum(t.sequenceNum);i&&(t.endTimestamps=i.endTimestamps),s.push(e.__controller.create(r,t))}),s.length&&(e.segments=s,e.startSeqNum=s[0].seqNum,e.endSeqNum=s[s.length-1].seqNum,t.cuepointList&&t.cuepointList.length&&(t.cuepointList.forEach(function(t){e.hasCuepoint(t.startSeqNum)||e.cuepoints.push(new o(t))}),e.updateCuepointTime()))}e.segments&&e.segments.length&&(e.refreshInterval=1e3*e.segments[e.segments.length-1].duration);var a=e.altRenditionGroups?e.altRenditionGroups.AUDIO:null;e.type===n.MAIN&&a&&e.containerFormat&&!a.getContainerFormat()&&a.setContainerFormat("ts"===e.containerFormat?"aac":"mp4")},c.prototype.addInitSegment=function(t){return"mp4"===this.containerFormat?this._initSegmentCache.add(t):null},c.prototype.getInitSegment=function(t){if(!t){if(!this.segments.length)return null;t=this.segments[0]}return this._initSegmentCache.get(t.initSegment)},c.prototype._createMp4Chunk=function(t,e,i,n){var r,o=this.mp4Chunks[t];return o||("mp4"===this.containerFormat&&n?(e>=0&&i>=0&&(r={start:e,end:e+i-1}),new s({name:t,url:n,range:r})):null)},c.prototype.getMp4Chunk=function(t){return"mp4"===this.containerFormat?this.mp4Chunks[t]:null},c.prototype.dto=function(){var t=this,e={segments:[],cuepoints:[]},i=["segments","__controller","cuepoints","altRenditionGroups","_initSegmentCache","activeInitSegment"];return Object.keys(t).forEach(function(n){i.indexOf(n)>=0||(e[n]=t[n])}),t.segments.forEach(function(t){e.segments.push(t.dto())}),t.cuepoints.forEach(function(t){e.cuepoints.push(t.dto())}),e},c.prototype.setStreamIndex=function(t){this.index=t,this.segments.forEach(function(e){e.setStreamIndex(t)})},c.prototype.getSeqNumBeforePosition=function(t){if(!this.segments.length)return NaN;if(t<this.segments[0].startTime)return this.startSeqNum;for(var e=0;e<this.segments.length;e++){var i=this.segments[e];if(i&&i.startTime<=t&&i.startTime+i.duration>t)return this.startSeqNum+e}var n=this.segments[this.segments.length-1];return n&&n.startTime+n.duration===t?this.endSeqNum:NaN},c.prototype.getSegmentfromSeqNum=function(t){var e=this.getIndexFromSeqNum(t);return e>=0&&e<this.segments.length?this.segments[e]:null},c.prototype.getIndexFromSeqNum=function(t){if(t>=this.startSeqNum&&t<=this.endSeqNum)for(var e=0;e<this.segments.length;e++)if(this.segments[e]&&this.segments[e].seqNum===t)return e;return-1},c.prototype.contains=function(t){return t>=this.startSeqNum&&t<=this.endSeqNum},c.prototype.isEmpty=function(){return 0===this.segments.length},c.prototype.isReady=function(){if("mp4"!==this.containerFormat)return this.url&&this.segments.length>0;var t=this._initSegmentCache.getFirst();if(this.streamingMode===a.HLS&&this.hlsInfo&&this.hlsInfo.mp4_url){var e=this.mp4Chunks.sidx;return t&&e&&t.loaded&&e.loaded}return t&&t.loaded&&this.segments.length>0},c.prototype.hasCuepoint=function(t){for(var e=this.cuepoints.length-1;e>=0;e--)if(this.cuepoints[e].startSeqNum===t)return!0;return!1},c.prototype.updateCuepointTime=function(){for(var t,e=0;e<this.cuepoints.length;e++)(t=this.getSegmentfromSeqNum(this.cuepoints[e].startSeqNum))&&this.cuepoints[e].setCueOutStartTime(t.startTime)},c.prototype.equals=function(t){return!!t&&(this.url===t.url&&this.type===t.type&&(this.isDash()?this.groupId===t.groupId:this.index===t.index))},c.prototype.updateSegmentRanges=function(t){if(t&&t.length)for(var e=0;e<t.length&&e<this.segments.length;e++)this.segments[e].brStartOffset=t[e].brStartOffset,this.segments[e].brEndOffset=t[e].brEndOffset},c.prototype.setMp4Timescale=function(t){if("mp4"===this.containerFormat&&t&&t.loaded&&t.data){var e=this._mp4Parser.parse(t.data,"mdhd");if(e&&e.timescale>0)this.timescale=e.timescale;else{var i=this._mp4Parser.parse(t.data,"mvhd");this.timescale=i.timescale}}},c.prototype.isDash=function(){return this.streamingMode===a.DASH},c.prototype.getDrmInfo=function(){return this.drmInfo}},Vi6U:function(t,e,i){"use strict";var n=i("D3zA"),r=i("DwGB"),o=n.call(Function.call,String.prototype.replace),s=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,a=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var t=r.ToString(r.CheckObjectCoercible(this));return o(o(t,s,""),a,"")}},WC4C:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("ToqN"),a=i("PwYT"),u=i("tgpW"),l=i("R+G7"),c=i("+Ojf"),d=i("mczr");s.userAgent.mobile&&l.default.hasNativeAutoplaySupport&&(o=u.default.getPool());var h=0,p=function(t){function e(){var i=t.call(this,"external-renderer")||this;return i.type=e.type,i.timedOut=!1,i._stopPlayerEvtListening=c.default.noop,i}return r(e,t),e.canUse=function(){return!0},Object.defineProperty(e.prototype,"mimetype",{get:function(){return this._externalPlayer?this._externalPlayer.mimetype:void 0},enumerable:!0,configurable:!0}),e.prototype.create=function(t){return this.node=t instanceof HTMLVideoElement?t:o?o.get():c.default.createVideoNode(),this.node.setAttribute("id","vp-ext-rndr-"+ ++h),c.default.classList(this.node).add("vp-html5-video"),this.container=document.createElement("div"),this.container.setAttribute("id",c.default.generateGuid()),c.default.classList(this.container).add("vp-external-video"),this.container.appendChild(this.node),this.container},e.prototype.getExternalPlayer=function(){return this._externalPlayer},e.prototype.setExternalPlayer=function(t){this._externalPlayer&&this._externalPlayer!==t&&this._unbindExternalPlayerEvents(),this._externalPlayer=t,this._bindExternalPlayerEvents()},e.prototype.play=function(t){this._externalPlayer&&this._currentPlayableItem&&this._externalPlayer.play(this._currentPlayableItem.rawItemData)},e.prototype.preload=function(t){},e.prototype.setPlayableItem=function(t,e){return void 0===e&&(e=0),!!t&&(this._mode=c.default.getPlaybackMode(t),!!this._externalPlayer&&(this._playbackError=null,this._externalPlayer.preparePlayback(t.rawItemData,this.node,this.container),!this._playbackError&&(this._currentPlayableItem=t,!0)))},e.prototype.waitForReady=function(t){t&&t()},e.prototype.seek=function(t){this._externalPlayer&&this._externalPlayer.seek(t)},e.prototype.pause=function(){this._externalPlayer&&this._externalPlayer.pause()},e.prototype.skip=function(){this._externalPlayer&&this._externalPlayer.skip()},e.prototype.getCurrentDate=function(){return null},e.prototype.getCurrentTime=function(){return this._externalPlayer?this._externalPlayer.getCurrentTime():0},e.prototype.getDuration=function(){return this._externalPlayer?this._externalPlayer.getDuration():0},e.prototype.getMuted=function(){return!(!this._externalPlayer||!this._externalPlayer.isMuted())},e.prototype.getVolume=function(){return this._externalPlayer?this._externalPlayer.getVolume():NaN},e.prototype.setQuality=function(t){},e.prototype.enterFullScreen=function(){if(this.node){var t=this.node,e=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen;e&&e.call(this.node)}},e.prototype.exitFullScreen=function(){if(this.node){var t=document.exitFullscreen||document.webkitExitFullscreen;t?t.call(document):this.node.webkitExitFullscreen&&this.node.webkitExitFullscreen()}},e.prototype.setVolume=function(t){this._externalPlayer&&this._externalPlayer.setVolume(t)},e.prototype.setMute=function(t){this._externalPlayer&&this._externalPlayer.mute(t)},e.prototype.setAudioLanguage=function(t){},e.prototype.stopMedia=function(){return!!this._externalPlayer&&(this._externalPlayer.stop(),!0)},e.prototype.bindCustomEvents=function(){},e.prototype.destroy=function(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this._externalPlayer&&(this._unbindExternalPlayerEvents(),this._externalPlayer=null)},e.prototype.detachNode=function(){this.node&&this.node.pause()},e.prototype.reattachNode=function(){},e.prototype.setActive=function(t){this._active=t,t||(this._externalPlayer&&this._externalPlayer.unload(),this.container.innerHTML="",this.container.appendChild(this.node))},e.prototype.showAirplayTargetMenu=function(){},e.prototype.suspendStreaming=function(){},e.prototype.resumeStreaming=function(){},e.prototype._bindExternalPlayerEvents=function(){this._externalPlayer&&(this._stopPlayerEvtListening=a.listenEventDispatcherEvts(this._externalPlayer,Object.keys(d.ExternalPlayerEvent).map(function(t){return d.ExternalPlayerEvent[t]}),this._handleExternalPlayerEvt.bind(this)))},e.prototype._unbindExternalPlayerEvents=function(){this._stopPlayerEvtListening(),this._stopPlayerEvtListening=c.default.noop},e.prototype._handleExternalPlayerEvt=function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];switch(d.ExternalPlayerEvent.TIME_UPDATE,e){case d.ExternalPlayerEvent.TIME_UPDATE:this.publish(d.RendererEvent.TIMEUPDATE,{currentTime:this._externalPlayer.getCurrentTime(),duration:this._externalPlayer.getDuration(),buffered:this.node.buffered});break;case d.ExternalPlayerEvent.PLAYBACK_ERROR:var r=i[0]||this.node.error;this._playbackError=r||{},this.publish(d.RendererEvent.ERROR,r);break;case d.ExternalPlayerEvent.ITEM_LOADED:this.publish(d.RendererEvent.LOADSTART);break;case d.ExternalPlayerEvent.MUTE_CHANGED:case d.ExternalPlayerEvent.VOLUME_CHANGED:this.publish(d.RendererEvent.VOLUMECHANGE,{volume:this._externalPlayer.getVolume(),mute:this._externalPlayer.isMuted()});break;case d.ExternalPlayerEvent.PLAY_REQUESTED:this.ended=!1;break;case d.ExternalPlayerEvent.PLAYING:this.paused=!1,this.ended=!1,this.publish(d.RendererEvent.PLAYING);break;case d.ExternalPlayerEvent.PAUSED:this.paused=!0,this.publish(d.RendererEvent.PAUSE);break;case d.ExternalPlayerEvent.PLAY_COMPLETE:this.ended=!0,this.publish(d.RendererEvent.ENDED);break;case d.ExternalPlayerEvent.SKIPPED:this.publish(d.CustomRendererEvent.SKIPPED)}},e.type=d.RendererType.EXTERNAL,e}(d.Renderer);e.default=p},WSjl:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.INIT="init",t.WAITING="waiting",t.VIDEO="video",t.END="end"}(n=e.States||(e.States={})),e.default=n},WXWk:function(t,e){t.exports=function(t){return t>=0?1:-1}},Wf6Z:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cmsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/cmsSchema",type:"object",properties:{colo:{type:"string"},suppressAdContext:{type:"boolean"},enableCache:{type:"boolean"},cachedVs:{type:"string"},env:{type:"string"}}}},X1lw:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("A4+F"),l=i("8PPl"),c=i("oIMU"),d=i("u8By"),h=i("ma23"),p=i("mczr"),f=i("xqNZ"),_=i("R+G7"),m=i("fLR+"),y=i("+Ojf"),v=i("oorc"),g=i("q9al"),E=i("ECHB"),b=i("2F+v"),S=i("BHp4");!function(t){t.LOGO_CLICK="controls-logo-click",t.SEEK="controls-seek",t.SET_VOLUME="controls-set-volume",t.SET_MUTE="controls-set-mute",t.TOGGLE_CC="controls-toggle-cc",t.TOGGLE_PLAY_PAUSE="controls-toggle-play-pause",t.SET_AUDIO_LANGUAGE="controls-set-audio",t.FORWARD_SEEK="controls-forward-seek",t.BACKWARD_SEEK="controls-backward-seek",t.SET_QUALITY="controls-quality-set",t.UI_INTERACT="controls-ui-interact"}(o=e.ControlsEvent||(e.ControlsEvent={}));var A=function(t){function e(e,i,n,r){var o=t.call(this,"Controls")||this;return o._eventBus=e,o._view=i,o._model=n,o._pluginManager=r,o._ccAvailable=!0,o._eventBus.addEventListener(c.VideoEvent.PLAYING,o._onVideoPlaying,o),o._eventBus.addEventListener(c.CAST.CAPTION_AVAILABILITY_CHANGED,o.updateClosedCaptionUI,o),o._eventBus.addEventListener(c.RELATED_ITEM_CLICK,o._onRelatedItemClick,o),o._eventBus.addEventListener(c.FULLSCREEN_CHANGE,function(){o._updateFullscreen(o._view.getFullscreen())},o),o._eventBus.addEventListener(u.ExternalEvt.AIRPLAY_AVAILABILITY_CHANGE,function(t){o._airplayBtn&&y.default.classList(o._airplayBtn)[t?"remove":"add"]("vp-hidden")},o),o._eventBus.addEventListener(u.ExternalEvt.AIRPLAY_CONNECTION_STATE_CHANGE,function(t){o._airplayBtn&&y.default.classList(o._airplayBtn)[t.connected?"add":"remove"]("vp-airplay-on")},o),o._eventBus.addEventListener(c.KEYDOWN,o._onKeyDown,o),o._eventBus.addEventListener(u.ExternalEvt.PLAYER_DOCKED_CHANGE,o._onDockingChange,o),o._eventBus.addEventListener(c.CCEvent.TOGGLE,o.updateClosedCaptionButtonState,o),o}return r(e,t),e.prototype.create=function(){var t=y.default.render(b,{isMobile:a.userAgent.mobile,strings:f.default}),e={logoContainer:t.querySelector(".vp-logos"),multiAudioList:t.querySelector(".vp-multi-audio"),bottomBar:t.querySelector(".vp-bottom-bar"),topBar:t.querySelector(".vp-top-bar"),titleBar:t.querySelector(".vp-playing-item-title"),muteIndicator:t.querySelector(".vp-mute-indicator"),objectOverlay:t.querySelector(".vp-object-overlay")};this._bottomBar=e.bottomBar,this._slider=this._bottomBar.querySelector(".vp-slider"),this._bufferBar=this._bottomBar.querySelector(".vp-buffer-bar"),this._timeDisplay=this._bottomBar.querySelector(".vp-time-container"),this._menuControls=this._bottomBar.querySelector(".vp-menu-controls"),this._currentTimeLabel=this._bottomBar.querySelector(".vp-current-time"),this._totalTimeLabel=this._bottomBar.querySelector(".vp-total-time"),this._handle=this._bottomBar.querySelector(".vp-handle"),this._playbackBar=this._bottomBar.querySelector(".vp-playback-bar"),this._playBtn=this._bottomBar.querySelector(".vp-play-btn"),this._forwardSeekBtn=this._bottomBar.querySelector(".vp-forward-btn"),this._backwardSeekBtn=this._bottomBar.querySelector(".vp-backward-btn"),this._renderSeekControl(),this._seekBar=this._bottomBar.querySelector(".vp-seek"),this._visualSeekContainer=this._bottomBar.querySelector(".vp-visual-seek"),this._ccBtn=this._bottomBar.querySelector(".vp-cc-btn"),this._ccSettingsPointer=this._bottomBar.querySelector(".vp-cc-pointer"),this._airplayBtn=this._bottomBar.querySelector(".vp-airplay-btn"),this._fullscreenBtn=this._bottomBar.querySelector(".vp-fullscreen-btn"),this._volumeBtn=this._bottomBar.querySelector(".vp-volume-btn"),this._volumeBarContainer=this._bottomBar.querySelector(".vp-volume-bar-container"),this._volumeIndicator=this._bottomBar.querySelector(".vp-volume-level"),this._volumeBar=this._bottomBar.querySelector(".vp-volume-bar"),this._volumeValue=this._bottomBar.querySelector(".vp-volume-value"),this._volumeHandle=this._bottomBar.querySelector(".vp-volume-handle"),this._multiAudioContainer=e.multiAudioList,this._multiAudioBtn=this._bottomBar.querySelector(".vp-multiaudio-btn"),this._logoContainer=e.logoContainer,this._muteIndicator=e.muteIndicator,this._titleBar=e.titleBar,this._headerTitleBar=this._bottomBar&&this._bottomBar.parentNode.querySelector(".vp-playing-item-title-header"),this._topBar=e.topBar,this._contentType=this._topBar&&this._topBar.querySelector(".vp-content-type"),this._showTitleOnHover=this._model.showTitleOnHover;var i=this._fullscreenBtn&&a.userAgent.ie&&a.userAgent.ie<=10&&y.default.isIFrame();if(i=i||!this._model.showFullscreenButton){var n=document.createElement("div");y.default.classList(n).add("vp-fullscreen-btn-replacement"),this._fullscreenBtn&&(this._fullscreenBtn.parentNode.insertBefore(n,this._fullscreenBtn),this._fullscreenBtn.parentNode.removeChild(this._fullscreenBtn),this._fullscreenBtn=null)}return _.default.airplaySupported&&this._model.casting||this._airplayBtn&&this._airplayBtn.parentNode&&(this._airplayBtn.parentNode.removeChild(this._airplayBtn),delete this._airplayBtn),this._initAriaProperties(),(!a.userAgent.ie||a.userAgent.ie>10)&&this._renderCCSettings(),this._renderQualitySettings(),this._bindEvents(),this._ccBtn&&(this._desktopControls?this._desktopControls.createCCBtnTooltip(this._ccBtn):!a.userAgent.mobile||a.userAgent.chrome&&_.default.hasNativeAutoplaySupport||(this._ccBtn.style.display="none")),a.userAgent.mobile||delete e.multiAudioList,this._renderLogos(),this._syncVolumeUI(),e},e.prototype.syncAriaState=function(){this._model.isPaused()?this._playBtn.setAttribute("aria-label",f.default.PLAY_VIDEO):this._playBtn.setAttribute("aria-label",f.default.PAUSE_VIDEO),this._fullscreenBtn&&(this._view.getFullscreen()?this._fullscreenBtn.setAttribute("aria-label",f.default.GO_TO_NORMAL_SCREEN):this._fullscreenBtn.setAttribute("aria-label",f.default.GO_TO_FULLSCREEN)),this._volumeBtn&&(y.default.classList(this._volumeBtn).contains("muted")?this._volumeBtn.setAttribute("aria-label",f.default.UNMUTE):this._volumeBtn.setAttribute("aria-label",f.default.MUTE))},e.prototype.getBottomBar=function(){return this._bottomBar},e.prototype.onMediaItemLoaded=function(t){this._isLive=t.isLive(),this._liveState="",this._contentType.innerHTML="",this._contentType.setAttribute("aria-label",""),y.default.classList(this._contentType).add("hide"),this._isLive?this._setLiveMode():this._setVodMode()},e.prototype.updateVolumeUI=function(t,e){"boolean"!=typeof e||m.isNullOrUndefined(e)?this._updateMuteBtn(!t):(this._updateMuteBtn(e),t=e?0:t),this._updateVolumeBar(t)},e.prototype.updateClosedCaptionUI=function(t){this._ccAvailable=t,t?(y.default.classList(this._ccBtn).remove("vp-hide"),y.default.classList(this._ccSettingsNode).remove("vp-hide"),this._updateCCTooltip(f.default.CAPTIONS_AVAILABLE)):(y.default.classList(this._ccBtn).add("vp-hide"),y.default.classList(this._ccSettingsNode).add("vp-hide"),this._updateCCTooltip(f.default.CAPTIONS_NOT_AVAILABLE))},e.prototype.updateClosedCaptionButtonState=function(t){t?(y.default.classList(this._ccBtn).add("vp-on"),this._updateCCTooltip(f.default.CAPTIONS_ON)):(y.default.classList(this._ccBtn).remove("vp-on"),this._updateCCTooltip(f.default.CAPTIONS_OFF)),this._ccSettings&&this._ccSettings.updateCCToggleState(t),this._ccAvailable||this._updateCCTooltip(f.default.CAPTIONS_NOT_AVAILABLE)},e.prototype.updateAvailableLanguages=function(t){this._ccSettings&&this._ccSettings.updateAvailableLanguages(t)},e.prototype.onPlayerResize=function(t){this._ccSettings&&this._ccSettings.onPlayerResize(t),t.width<=l.HideBreakpointDimensions.WIDTH&&t.height<=l.HideBreakpointDimensions.HEIGHT?y.default.classList(this._settingsBtn).add("vp-hide"):y.default.classList(this._settingsBtn).remove("vp-hide"),this._settings&&this._settings.onPlayerResize(t,this._settingsPointer)},e.prototype.onlanguageChange=function(t){this._view&&this._view.onlanguageChange(t)},e.prototype.updateClosedCaptionStyle=function(t){this._view&&this._view.updateClosedCaptionStyle(t)},e.prototype.onMediaItemCurrent=function(t){},e.prototype.onMediaItemPlaybackStarted=function(t){this._isLive?this._setLiveMode():this._setVodMode(),this._syncVolumeUI(),this._renderTitle(),this._renderLogos(),this._sliderAddEventListener(),this._multiAudioContainer&&this._checkForMultiAudio(),this._clearOldAdBreaks(),this._updateAdBreaks(t),this._settings&&this._settings.onPlaybackStarted(t);var e=this._model.uiState.width<=l.HideBreakpointDimensions.WIDTH&&this._model.uiState.height<=l.HideBreakpointDimensions.HEIGHT;this._settings&&this._settings.shouldEnableSettings()&&!e?y.default.classList(this._settingsBtn).remove("vp-hide"):y.default.classList(this._settingsBtn).add("vp-hide")},e.prototype.onMediaItemPlaybackProgress=function(t){var e=t.buffered,i=this._model.playbackState.currentTime,n=this._model.playbackState.playbackMode;e&&this._updateBuffer(e),void 0!==i&&n===p.PlaybackMode.VIDEO&&this._updateProgress(i)},e.prototype.onAdPlaybackStarted=function(){this._syncVolumeUI(),this._hideLogos(),this._hideVisualSeek(),this._sliderRemoveEventListener(),y.default.classList(this._forwardSeekBtn).add("vp-disable"),y.default.classList(this._backwardSeekBtn).add("vp-disable"),y.default.classList(this._slider).add("vp-disable"),y.default.classList(this._contentType).add("hide"),y.default.classList(this._timeDisplay).add("vp-hide"),y.default.classList(this._settingsBtn).add("vp-hide"),this._settings&&this._settings.isOpen()&&this._settings.toggleSettings(this._settingsPointer)},e.prototype.onAdPlaybackEnded=function(){this._sliderAddEventListener(),this._model.seekControls.show&&(y.default.classList(this._forwardSeekBtn).remove("vp-disable"),y.default.classList(this._backwardSeekBtn).remove("vp-disable")),y.default.classList(this._slider).remove("vp-disable"),y.default.classList(this._timeDisplay).remove("vp-hide"),this._settings&&this._settings.shouldEnableSettings()&&y.default.classList(this._settingsBtn).remove("vp-hide")},e.prototype.onAdPlaybackProgress=function(t){},e.prototype.onControlsBarChange=function(t){!this._showTitleOnHover||this._view.isDocked()&&this._model.docking.showInfoCard||(t?this._showTitle():(this._hideTitle(),y.default.classList(this._handle).remove("active"),y.default.classList(this._slider).remove("vp-thick-slider"),this._hideVisualSeek()))},e.prototype.getCCElement=function(){return this._view?this._view.getCCElement():null},e.prototype.getMainElement=function(){return this._view.getMainElement()},e.prototype.updateCurrentItemTitle=function(t){this._titleBar.textContent=t},e.prototype.addCustomControlElement=function(t){var e=t.icon||"",i=t.label||"",n=t.className||"",r=document.createElement("div");return r.setAttribute("class",n),r.setAttribute("style",'background-image: url("'+e+'")'),r.setAttribute("aria-label",i),r.setAttribute("role","button"),r.setAttribute("tabindex","0"),y.default.classList(r).add("vp-button"),this._menuControls.insertBefore(r,this._menuControls.firstChild),r},e.prototype.destroy=function(){this._ccBtnTap&&this._ccBtnTap.destroy(),this._airplayTap&&this._airplayTap.destroy(),this._settingsTap&&this._settingsTap.destroy(),this._playTap&&this._playBtn&&(this._playTap.destroy(),this._fullscreenBtn&&this._fullscreenTap&&this._fullscreenTap.destroy(),this._seekTap&&this._seekTap.destroy(),this._forwardSeekTap&&this._forwardSeekTap.destroy(),this._backwardSeekTap&&this._backwardSeekTap.destroy(),this._sliderRemoveEventListener(),this._unbindVolume()),this._upNextBtnTap&&(this._upNextBtn.removeEventListener("tap",this._onUpNextBtnTap),this._upNextBtnTap.destroy()),this._logoContainerTap&&this._logoContainerTap.destroy(),this._multiAudioContainerTap&&this._multiAudioContainerTap.destroy(),this._multiAudioBtnTap&&this._multiAudioBtnTap.destroy(),this._muteIndicator&&this._unBindMuteIndicator(),this._view.getContentNode().removeEventListener("keydown",this._handleKeyDown,!1),this._sliderTap&&this._sliderTap.destroy()},e.prototype._onDockingChange=function(){var t=this,e=this._model.logos;e&&!y.default.classList(this._logoContainer).contains("vp-hide")&&this._logoContainer.querySelector(".vp-logo")&&Object.keys(e).forEach(function(i){var n=t._logoContainer.querySelector(".vp-logo-type-"+i+" img");t._setLogoDimensions(n,e[i])})},e.prototype._renderLogos=function(){var t=this,e=this._model.logos;this._logoContainer&&e&&(Object.keys(e).forEach(function(i){e[i]&&t._renderLogo(e[i],i)}),y.default.classList(this._logoContainer).remove("vp-hide"))},e.prototype._renderSeekControl=function(){if(this._bottomBar){a.userAgent.android&&(this._forwardSeekBtn.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"),this._backwardSeekBtn.querySelector("svg").setAttribute("transform","scale(1.5, 1.5) translate(4.5, 4.5)"));var t=this._forwardSeekBtn.querySelector(".vp-forward-time"),e=this._backwardSeekBtn.querySelector(".vp-backward-time");t.innerHTML=e.innerHTML=this._model.seekControls.offset,this._model.seekControls.offset<10&&(t.setAttribute("transform","translate(2, 0.4)"),e.setAttribute("transform","translate(1.8, 0.4)"))}},e.prototype._renderLogo=function(t,e){var i=this;if(t&&t.url){var n=this._logoContainer.querySelector(".vp-logo-type-"+e);n||((n=document.createElement("div")).innerHTML="<img />",n.setAttribute("class","vp-logo vp-logo-type-"+e),this._logoContainerTap=new E.default(n,function(){return i.publish(o.LOGO_CLICK)}),this._logoContainer.appendChild(n));var r=n.querySelector("img"),s=["bottomLeft","bottomRight","topRight","topLeft","off"],a=t.position&&s.indexOf(t.position)>-1?t.position:"bottomRight",u=y.default.classList(n);s.forEach(function(t){t!==a&&u.contains("vp-logo-"+t)&&u.remove("vp-logo-"+t)}),t.fadeOut&&/^\d+\.?\d*s$/.test(t.fadeOut)&&(u.add("vp-logo-fadeout"),n.setAttribute("data-fadeout",t.fadeOut)),u.contains(a)||u.add("vp-logo-"+a),t.url&&r.src!==t.url&&(r.src=t.url,this._setLogoDimensions(r,t))}},e.prototype._renderQualitySettings=function(){var t=this;this._settings=new g.default(this._model),this._settingsBtn=this._bottomBar.querySelector(".vp-setting-btn"),this._settingsPointer=this._bottomBar.querySelector(".vp-setting-pointer"),this._settingsBtn&&(this._settingsTap=new E.default(this._settingsBtn,function(){t._settings&&t._settings.toggleSettings(t._settingsPointer),t._ccSettings.hideActiveContainer(t._ccSettingsPointer)})),this._settingsContainer=this._settings.create(),this._menuControls.parentNode.insertBefore(this._settingsContainer,this._menuControls.nextSibling),this._settings.on(g.SettingsEvent.SET_QUALITY,function(e){t.publish(o.SET_QUALITY,e)},this),this._settings.on(g.SettingsEvent.UI_INTERACT,function(e){t.publish(o.UI_INTERACT,e)},this)},e.prototype._setLogoDimensions=function(t,e){var i=this._view.isDocked();e&&e.height&&t&&(t.height=i?Math.min(e.height,this._model.docking.height/10):e.height),e&&e.width&&t&&(t.width=i?Math.min(e.width,this._model.docking.width/10):e.width)},e.prototype._hideLogos=function(){this._logoContainer&&y.default.classList(this._logoContainer).add("vp-hide")},e.prototype._fadeOutLogos=function(){var t=this._logoContainer.querySelectorAll(".vp-logo-fadeout");if(!(t.length<1))for(var e=0,i=t;e<i.length;e++){var n=i[e],r=n&&n.getAttribute("data-fadeout");r&&Object.assign(n.style,{opacity:0,transition:"visibility "+r+" ease-in-out "+r+", opacity "+r+" ease-in-out",visibility:"hidden"})}},e.prototype._setTitle=function(t){var e=this;!this._model.autoplay||this._view.isDocked()&&this._model.docking.showInfoCard||(y.default.classList(this._titleBar).add("vp-title-standard"),this._adjustTitleAndHeaderPositions(!0),this._hideTitleTimer=window.setTimeout(function(){y.default.classList(e._titleBar).add("vp-hide"),e._changeToHeaderTitle(t)},6e3))},e.prototype._renderTitle=function(){this._hideTitleTimer&&clearTimeout(this._hideTitleTimer),this._titleHeader=null;var t=this._model.playlist.getCurrentItem(),e=t&&t.title||"";switch(this._updateCurrentHeaderTitle(),this.updateCurrentItemTitle(e),y.default.classList(this._titleBar).remove("vp-title-standard"),y.default.classList(this._titleBar).remove("vp-secondary"),y.default.classList(this._titleBar).remove("vp-hide"),this._titleHeader&&this._headerTitleBar&&(y.default.classList(this._headerTitleBar).remove("vp-title-header-standard"),y.default.classList(this._headerTitleBar).remove("vp-hide")),this._model.showTitleOnStart||""){case"fadeoutall":this._setTitle(!0);break;case"standard":this._setTitle(!1)}},e.prototype._updateCurrentHeaderTitle=function(){var t=this._headerTitleBar;if(this._canUpdateHeaderTitle()){var e=this._titleHeader,i=e&&e.open_label||e&&e.label||"";t.innerHTML=this._formatTitleHeader(i)}else t&&""!==t.innerHTML&&(t.innerHTML="",y.default.classList(t).add("vp-hide"))},e.prototype._adjustTitleAndHeaderPositions=function(t){if(this._canUpdateHeaderTitle()){var e=y.default.classList(this._headerTitleBar);e.remove("vp-hide"),e.add("vp-title-header-standard"),y.default.classList(this._titleBar).add("vp-secondary"),t?e.add("vp-title-shown"):e.remove("vp-title-shown")}},e.prototype._changeToHeaderTitle=function(t){var e=this;if(this._titleHeaderFadeInTimer&&clearTimeout(this._titleHeaderFadeInTimer),this._titleHeaderFadeOutTimer&&clearTimeout(this._titleHeaderFadeOutTimer),this._canUpdateHeaderTitle()){var i=this._headerTitleBar,n=y.default.classList(i);n.remove("vp-title-shown"),n.add("vp-hide");var r=this._titleHeader,o=r&&r.label||"";this._titleHeaderFadeInTimer=window.setTimeout(function(){i.innerHTML=e._formatTitleHeader(o),n.remove("vp-hide"),t&&(e._titleHeaderFadeOutTimer=window.setTimeout(function(){i.innerHTML="",n.add("vp-hide")},5e3))},300)}},e.prototype._canUpdateHeaderTitle=function(){return!(!this._headerTitleBar||!this._titleHeader)},e.prototype._formatTitleHeader=function(t){if(!t||""===t)return"";return""+t.replace(/\*\*([^\*]+(\s[^\*]+)*)\*\*/gi,"<strong>$1</strong>")},e.prototype._showTitle=function(){y.default.classList(this._titleBar).add("vp-title-standard"),y.default.classList(this._titleBar).remove("vp-hide"),this._adjustTitleAndHeaderPositions(!0)},e.prototype._hideTitle=function(){y.default.classList(this._titleBar).add("vp-title-standard"),y.default.classList(this._titleBar).add("vp-hide"),this._adjustTitleAndHeaderPositions(!1)},e.prototype._setLiveMode=function(){y.default.classList(this._slider).add("vp-disable"),y.default.classList(this._forwardSeekBtn).add("vp-disable"),y.default.classList(this._backwardSeekBtn).add("vp-disable"),y.default.classList(this._timeDisplay).add("vp-hide"),this._liveState&&"live"===this._liveState&&(this._contentType.innerHTML=f.default.LIVE,this._contentType.setAttribute("aria-label",f.default.LIVE),y.default.classList(this._contentType).remove("hide"),y.default.classList(this._titleBar).add("vp-live"))},e.prototype._setVodMode=function(){y.default.classList(this._slider).remove("vp-disable"),this._model.seekControls.show?(y.default.classList(this._forwardSeekBtn).remove("vp-disable"),y.default.classList(this._backwardSeekBtn).remove("vp-disable")):(y.default.classList(this._forwardSeekBtn).add("vp-disable"),y.default.classList(this._backwardSeekBtn).add("vp-disable")),y.default.classList(this._timeDisplay).remove("vp-hide"),y.default.classList(this._titleBar).remove("vp-live")},e.prototype._bindEvents=function(){var t=this;if(this._playTap=new E.default(this._playBtn,function(e){e.stopPropagation();var i=t._view.getCurrentViewState(),n=t._model.playlist.getCurrentItem(),r=n&&n.id,s=t._model.isPaused()?"ctrl-play-btn":"ctrl-pause-btn";"end-screen"===i?(t._eventBus.publish(c.RELATED_ITEM_CLICK,r,-1,!1,!1),t._resetTimeLabels()):(t.publish(o.UI_INTERACT,{srcElement:s}),t.publish(o.TOGGLE_PLAY_PAUSE))}),this._fullscreenBtn){this._fullscreenTap=new E.default(this._fullscreenBtn,function(e){e.stopPropagation(),t._view.toggleFullscreen(),t.publish(o.UI_INTERACT,{srcElement:"ctrl-fullscr-btn"})})}this._bottomBarClick=new E.default(this._bottomBar,function(t){t.stopPropagation()}),this._airplayBtn&&(this._airplayTap=new E.default(this._airplayBtn,function(){t._view.showAirplayTargetMenu(),t.publish(o.UI_INTERACT,{srcElement:"ctrl-airplay-btn"})})),this._multiAudioBtn&&(this._multiAudioBtnTap=new E.default(this._multiAudioBtn,function(){y.default.classList(t._multiAudioContainer).remove("vp-hidden"),t.publish(o.UI_INTERACT,{srcElement:"ctrl-multi-audio-btn"})})),this._bindccBtn(),this._handleKeyDown=function(e){t._eventBus.publish(c.KEYDOWN,{keyCode:e.keyCode,shiftDown:e.shiftKey,ctrlDown:e.ctrlKey,altDown:e.altKey,target:e.target,preventDefault:function(){e.preventDefault()}})},this._view.getContentNode().addEventListener("keydown",this._handleKeyDown,!1),this._sliderTap=new E.default(this._slider,function(t){t.stopPropagation()}),this._sliderAddEventListener(),this._setupSeekEventLister(),this._bindVolume(),this._bindMuteIndicator()},e.prototype._renderCCSettings=function(){this._ccSettings=new v.default(this,this._model),this._ccSettingsNode=this._ccSettings.create(),a.userAgent.mobile&&y.default.classList(this._ccSettingsNode).add("vp-hide"),this._menuControls.parentNode.insertBefore(this._ccSettingsNode,this._menuControls.nextSibling)},e.prototype._bindccBtn=function(){var t=this;this._ccBtn&&(this._ccBtnTap=new E.default(this._ccBtn,function(e){if(e.stopPropagation(),t._ccAvailable){var i=!y.default.classList(t._ccBtn).contains("vp-on"),n="cc-"+(i?"on":"off")+(!(!t._model.castState||!t._model.castState.connected)?"-cast":"");t.publish(o.UI_INTERACT,{srcElement:n}),t.publish(o.TOGGLE_CC,i,!0),t.updateClosedCaptionButtonState(i)}}),this._ccSettings&&this._bindccBtnHover())},e.prototype._bindccBtnHover=function(){var t=this;this._mouseOutCCBtnTimeout=null;this._onccBtnHover=function(e){a.userAgent.mobile||t._settings&&t._settings.isOpen()||(t._preventTouchDefault(e),t._ccSettings.showActiveContainer(t._ccSettingsPointer),y.default.classList(t._volumeBarContainer).remove("open"))},this._onccBtnLeave=function(e){t._preventTouchDefault(e),t._mouseOutCCBtnTimeout&&clearTimeout(t._mouseOutCCBtnTimeout),t._mouseOutCCBtnTimeout=window.setTimeout(function(){t._ccSettings.hideActiveContainer(t._ccSettingsPointer)},1e3)},this._onccSettingsContainerHover=function(e){a.userAgent.mobile||(t._preventTouchDefault(e),t._mouseOutCCBtnTimeout&&clearTimeout(t._mouseOutCCBtnTimeout))},this._bindScrollOverEvents(this._ccBtn,this._onccBtnHover,this._onccBtnLeave),this._bindScrollOverEvents(this._ccSettingsNode,this._onccSettingsContainerHover,this._onccBtnLeave)},e.prototype._updateCCTooltip=function(t){this._desktopControls&&this._desktopControls.updateCCTooltip(t)},e.prototype._onRelatedItemClick=function(){var t=this._model.playlist.getCurrentItem(),e=t&&t.title||"";this._resetTimeLabels(),this._updateCurrentHeaderTitle(),this.updateCurrentItemTitle(e)},e.prototype._resetTimeLabels=function(){this._currentTimeLabel.innerHTML="0:00",this._totalTimeLabel.innerHTML="0:00"},e.prototype._updateFullscreen=function(t){this._fullscreenBtn&&(t?(y.default.classList(this._fullscreenBtn).add("fullscreen"),this._updateFullscreenTooltip(f.default.EXIT_FULLSCREEN)):(y.default.classList(this._fullscreenBtn).remove("fullscreen"),this._updateFullscreenTooltip(f.default.FULLSCREEN_SPACE))),this._fullScreenStreamModeUpdate(t),this.syncAriaState()},e.prototype._updateFullscreenTooltip=function(t){if(this._fullscreenBtn){var e=this._fullscreenBtn.querySelector(".vp-tooltip-content");e&&(e.innerHTML=t)}},e.prototype._setupSeekEventLister=function(){var t=this;if(this._model.seekControls.show){this._forwardSeekTap=new E.default(this._forwardSeekBtn,function(e){e.stopPropagation(),t.publish(o.FORWARD_SEEK),t.publish(o.UI_INTERACT,{srcElement:"ctrl-forward-seek-btn"})});this._backwardSeekTap=new E.default(this._backwardSeekBtn,function(e){e.stopPropagation(),t.publish(o.BACKWARD_SEEK),t.publish(o.UI_INTERACT,{srcElement:"ctrl-backward-seek-btn"})})}},e.prototype._sliderAddEventListener=function(){var t=this;this._seekBar&&(this._seekTap=new E.default(this._seekBar,function(e){e.stopPropagation();var i=t._seekBar,n=(e.clientX||e.touches&&e.touches[0]&&e.touches[0].clientX||e.pageX)-(i&&i.getBoundingClientRect().left||0),r=i?n/i.clientWidth:1,s=Math.min(r*t._duration,Math.max(t._duration-1,0));t.publish(o.SEEK,s)})),this._onSliderMove=function(e){t._eventBus.publish(c.SEEK_BAR_MOUSEOVER,e),y.default.classList(t._handle).add("active"),y.default.classList(t._slider).add("vp-thick-slider"),t._updateVisualSeek(e),t._preventTouchDefault(e)},this._onSliderLeave=function(e){t._eventBus.publish(c.SEEK_BAR_MOUSEOUT,e),y.default.classList(t._handle).remove("active"),y.default.classList(t._slider).remove("vp-thick-slider"),t._hideVisualSeek(),t._preventTouchDefault(e)},this._bindScrollOverEvents(this._slider,this._onSliderMove,this._onSliderLeave),this._onSeekDown=function(e){if(!isNaN(t._duration)){y.default.classList(t._handle).add("active"),t._preventTouchDefault(e),t._seeking=!0,t._eventBus.publish(c.CONTROLS_SEEK_START);var i=t._getSeekFraction(e),n=Math.min(i*t._duration,Math.max(t._duration-1,0));t._eventBus.publish(c.CTRL_SEEK,Math.round(n)),t._onSeekMove(e)}},this._onSeekMove=function(e){if(t._seeking){t._preventTouchDefault(e),y.default.classList(t._bottomBar).add("vp-drag"),y.default.classList(t._handle).add("active"),y.default.classList(t._slider).add("vp-thick-slider"),t._updateVisualSeek(e);var i=t._getSeekFraction(e),n=Math.min(i*t._duration,Math.max(t._duration-1,0));n=n>1?n:1,t._playbackBar.setAttribute("style","width: "+100*i+"%;"),t._bufferBar.setAttribute("style","width: 0%;"),t._handle.setAttribute("style","left: "+100*i+"%;"),t._eventBus.publish(c.CONTROLS_SEEKING,n)}},this._onSeekUp=function(e){t._seeking&&(y.default.classList(t._bottomBar).remove("vp-drag"),y.default.classList(t._handle).remove("active"),y.default.classList(t._slider).remove("vp-thick-slider"),t._hideVisualSeek(),t._preventTouchDefault(e),t._seeking=!1,t._eventBus.publish(c.CONTROLS_SEEK_END))},this._bindDragEvents(this._slider,this._onSeekDown,this._onSeekMove,this._onSeekUp)},e.prototype._sliderRemoveEventListener=function(){this._unbindScrollOverEvents(this._slider,this._onSliderMove,this._onSliderLeave),this._unbindDragEvents(this._slider,this._onSeekDown,this._onSeekMove,this._onSeekUp)},e.prototype._preventTouchDefault=function(t){-1!==t.type.indexOf("touch")&&t.preventDefault()},e.prototype._updateAdBreaks=function(t){var e=this,i=t.adBreaks,n=t.duration;i&&0===i.length||!m.isNumber(n)||0===n||y.default.getAdBreakStartOffset(i).forEach(function(t){if(t.type===d.AdBreakType.MIDROLL||t.type===d.AdBreakType.POSTROLL){var i=document.createElement("div");y.default.classList(i).add("vp-ad-break"),i.style.left=t.startOffset/n*100+"%",e._slider.appendChild(i)}})},e.prototype._clearOldAdBreaks=function(){for(var t=this._slider.querySelectorAll(".vp-ad-break"),e=0;e<t.length;e++)this._slider.removeChild(t[e])},e.prototype._onVideoPlaying=function(){this._fadeOutLogos()},e.prototype._onKeyDown=function(t){var e,i=this._model.volume,n=this._model.playbackState.currentTime,r=this._duration,s=this._model.playbackState.playbackMode;switch(t.keyCode){case 13:this._eventBus.publish(c.TOGGLE_PLAY_PAUSE);break;case 27:this._view.updateViewOnEscPress();break;case 32:t.preventDefault(),this._eventBus.publish(c.TOGGLE_PLAY_PAUSE);break;case 37:t.preventDefault(),s!==p.PlaybackMode.VIDEO||this._isLive||(e=n-5,this._eventBus.publish(c.CONTROLS_SEEKING,e>=0?e:0));break;case 38:t.preventDefault();var a=i+.05;this.publish(o.SET_VOLUME,a>1?1:a);break;case 39:t.preventDefault(),s!==p.PlaybackMode.VIDEO||this._isLive||(e=n+5,this.publish(o.SEEK,e<=r?e:r));break;case 40:t.preventDefault();var u=i-.05;this.publish(o.SET_VOLUME,u<0?0:u);break;case 67:if(this._ccBtn){var l=!y.default.classList(this._ccBtn).contains("vp-on");this.publish(o.TOGGLE_CC,l,!0)}break;case 70:this._view.toggleFullscreen();break;case 77:this.publish(o.SET_MUTE,!this._model.mute)}if(t.keyCode>=48&&t.keyCode<=57){var d=(t.keyCode-48)/10;r>0&&this._eventBus.publish(c.CONTROLS_SEEKING,r*d)}},e.prototype._updateProgress=function(t){var e=Math.min(t/this._duration*100,100);this._currentTimeLabel&&m.isNumber(t)&&m.isNumber(this._duration)&&(this._currentTimeLabel.innerHTML=y.default.formatTime(t)),this._totalTimeLabel&&m.isNumber(this._duration)&&(this._totalTimeLabel.innerHTML=y.default.formatTime(this._duration)),m.isNumber(t)&&m.isNumber(this._duration)&&(this._playbackBar.setAttribute("style","width: "+e+"%;"),this._seeking||this._handle.setAttribute("style","left: "+e+"%;"),this._slider.setAttribute("aria-valuemax",this._duration.toString()),this._slider.setAttribute("aria-valuenow",t.toString()),this._slider.setAttribute("aria-valuetext",y.default.formatTime(t)+" of "+y.default.formatTime(this._duration)))},e.prototype._updateBuffer=function(t){var e=0;t.length>0&&(e=t.end(0)/this._duration*100),this._bufferBar.setAttribute("style","width: "+e+"%;")},e.prototype._getVisualSeekPlugin=function(t,e){if(!(this._pluginManager&&t&&e&&e.mimetype))return null;if(!this._visualSeekPlugin){var i=this._pluginManager.getPlugin(h.PluginType.VISUAL_SEEK,e.mimetype);this._visualSeekPlugin=i}return this._visualSeekPlugin&&!this._visualSeekPlugin.canSeek(t)&&this._visualSeekPlugin.update(t,e),this._visualSeekPlugin},e.prototype._updateVisualSeek=function(t){var e=this,i=this._model.playlist.getCurrentItem(),n=this._getVisualSeekPlugin(i.id,i.visualSeekData);if(n){var r=this._getSeekFraction(t),o=r*i.getRawDuration(),s=r*i.duration,a=n.getThumbnailData(i.id,o);if(a&&a.url){var u=this._view.getContentNode();if(!y.default.classList(u).contains("vp-hide-controls")){var l;l=r<.09?.09:r>.91?.91:r,this._visualSeekContainer.style.display="block",this._visualSeekContainer.style.left=100*l+"%";var c=this._visualSeekContainer.querySelector(".vp-vs-time");c&&(c.innerHTML=y.default.formatTime(s));var d=a.height,p=a.index,f=a.url,_=a.width,m=a.isAd,v=this._visualSeekContainer.querySelector(".vp-vs-thumbnail");if(!m)if(v.innerHTML="",n.visualSeekType===h.VisualSeekType.SPRITE){v.style.background="url("+f+")";var g=p%100,E=g%10*_,b=Math.floor(g/10)*d;v.style.backgroundPosition="-"+E+"px -"+b+"px"}else this._lastVisualSeekImage=f,this._visualSeekTimeout=this._visualSeekTimeout||setTimeout(function(){var t=e._visualSeekContainer.querySelector(".vp-vs-thumbnail");e._lastVisualSeekImage&&(t.style.background="url("+e._lastVisualSeekImage+")"),clearTimeout(e._visualSeekTimeout),e._visualSeekTimeout=null},50)}}}},e.prototype._bindDragEvents=function(t,e,i,n){["mousedown","touchstart"].forEach(function(i){t.addEventListener(i,e)}),["mousemove","touchmove"].forEach(function(t){document.addEventListener(t,i)}),["mouseup","touchend"].forEach(function(t){document.addEventListener(t,n)})},e.prototype._unbindDragEvents=function(t,e,i,n){["mousedown","touchstart"].forEach(function(i){t.removeEventListener(i,e)}),["mousemove","touchmove"].forEach(function(t){document.removeEventListener(t,i)}),["mouseup","touchend"].forEach(function(t){document.removeEventListener(t,n)})},e.prototype._bindScrollOverEvents=function(t,e,i){["mouseenter","touchstart"].forEach(function(i){t.addEventListener(i,e)}),["mousemove","touchmove"].forEach(function(i){t.addEventListener(i,e)}),["mouseleave","touchend"].forEach(function(e){t.addEventListener(e,i)})},e.prototype._unbindScrollOverEvents=function(t,e,i){["mouseenter","touchstart"].forEach(function(i){t.removeEventListener(i,e)}),["mousemove","touchmove"].forEach(function(i){t.removeEventListener(i,e)}),["mouseleave","touchend"].forEach(function(e){t.removeEventListener(e,i)})},e.prototype._syncVolumeUI=function(){this._volumeBtn&&this.updateVolumeUI(this._model.volume,this._model.mute)},e.prototype._bindMute=function(){var t=this;this._volumeTap=new E.default(this._volumeBtn,function(e){var i;t._isVolumeInChange||(e.stopPropagation(),t._showVolumeHandle(),t._view.clearAutoHideTimeout(),t._mouseOutVolumeBtnTimeout&&clearTimeout(t._mouseOutVolumeBtnTimeout),i=!t._model.mute,t.publish(o.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(i?"on":"off")}),t.publish(o.SET_MUTE,i),t._applyCCOnMute(i))})},e.prototype._bindVolumeBar=function(){var t=this;this._volumeBarTap=new E.default(this._volumeIndicator,function(i){i.stopPropagation(),t._showVolumeHandle(),e(i)});var e=function(e){var i,n=function(e){var i;return i=t._view.getFullscreen()&&(a.userAgent.chrome||a.userAgent.safari)?e.pageX-y.default.getOffsetLeftFromEl(t._volumeIndicator,l.VIDEO_MAIN_ELEMENT_CLASS):e.pageX-y.default.getOffsetLeftFromDocument(t._volumeIndicator),t._volumeIndicator.getBoundingClientRect().left?Math.max(0,Math.min(1,i/t._volumeIndicator.clientWidth)):0}(e);i=0===n,t._model.mute!==i&&(t.publish(o.UI_INTERACT,{srcElement:"ctrl-mute-btn-"+(i?"on":"off")}),t.publish(o.SET_MUTE,i)),t.publish(o.SET_VOLUME,n)};this._onVolumeBarDown=function(e){t._preventTouchDefault(e),t._isVolumeInChange=!0,t._showVolumeHandle(),t._onVolumeBarMove(e)},this._onVolumeBarMove=function(i){t._isVolumeInChange&&(t._preventTouchDefault(i),t._showVolumeHandle(),e(i),t._onVolumeBtnHover(i))},this._onVolumeBarUp=function(e){t._isVolumeInChange&&(t._preventTouchDefault(e),t._isVolumeInChange=!1)},this._bindDragEvents(this._volumeIndicator,this._onVolumeBarDown,this._onVolumeBarMove,this._onVolumeBarUp)},e.prototype._bindMuteIndicator=function(){var t,e=this;this._muteOnTimeout=function(i){i.stopPropagation(),t||(t=window.setTimeout(function(){e.publish(o.UI_INTERACT,{srcElement:"ctrl-mute-btn-off"}),t=null},600))},this._muteIndicator&&(["mouseenter","touchstart"].forEach(function(t){e._muteIndicator.addEventListener(t,e._muteOnTimeout)}),["mousemove","touchmove"].forEach(function(t){e._muteIndicator.addEventListener(t,e._muteOnTimeout)}))},e.prototype._unBindMuteIndicator=function(){var t=this;this._muteIndicator&&(["mouseenter","touchstart"].forEach(function(e){t._muteIndicator.removeEventListener(e,t._muteOnTimeout)}),["mousemove","touchmove"].forEach(function(e){t._muteIndicator.removeEventListener(e,t._muteOnTimeout)}))},e.prototype._applyCCOnMute=function(t){this._model.ccOnMute&&(t?this.publish(o.TOGGLE_CC,!0,!1):this.publish(o.TOGGLE_CC,!1,!1),this.updateClosedCaptionButtonState(t))},e.prototype._showVolumeHandle=function(){this._volumeHandle&&y.default.classList(this._volumeHandle).add("show")},e.prototype._bindVolumeBtnHover=function(){var t=this;this._mouseOutVolumeBtnTimeout=null;var e=!1;this._onVolumeBtnHover=function(i){t._preventTouchDefault(i),t._settings&&t._settings.isOpen()||(y.default.classList(t._volumeBarContainer).add("open"),e||(t._syncVolumeUI(),e=!0),t._showVolumeHandle(),t._ccSettings&&t._ccSettings.hideActiveContainer(t._ccSettingsPointer))},this._onVolumeBtnLeave=function(e){t._preventTouchDefault(e),t._mouseOutVolumeBtnTimeout&&clearTimeout(t._mouseOutVolumeBtnTimeout),t._mouseOutVolumeBtnTimeout=window.setTimeout(function(){y.default.classList(t._volumeBarContainer).remove("open")},500)},this._onVolumeBarContainerHover=function(e){t._preventTouchDefault(e),t._mouseOutVolumeBtnTimeout&&clearTimeout(t._mouseOutVolumeBtnTimeout)},this._bindScrollOverEvents(this._volumeBtn,this._onVolumeBtnHover,this._onVolumeBtnLeave),this._bindScrollOverEvents(this._volumeBarContainer,this._onVolumeBarContainerHover,this._onVolumeBtnLeave)},e.prototype._bindVolume=function(){var t=this;this._volumeBtn&&this._bindMute(),this._volumeBarContainer&&this._volumeBtn&&(this._bindVolumeBar(),this._bindVolumeBtnHover()),this._multiAudioContainer&&(this._multiAudioContainerTap=new E.default(this._multiAudioContainer,function(e){e.stopPropagation();var i=y.default.findClosest(e.eventTarget,".vp-audio-item",t._multiAudioContainer);if(i){var n=t._multiAudioContainer.querySelector(".vp-audio-item-selected"),r=n&&n.getAttribute("data-name");n&&y.default.classList(n).remove("vp-audio-item-selected"),y.default.classList(i).add("vp-audio-item-selected"),t.publish(o.SET_AUDIO_LANGUAGE,i.getAttribute("data-name"),r)}else"close"===e.eventTarget.getAttribute("data-action")&&y.default.classList(t._multiAudioContainer).add("vp-hidden")}))},e.prototype._unbindVolume=function(){this._volumeBtn&&this._volumeTap.destroy(),this._volumeBarContainer&&(this._volumeBarTap.destroy(),this._unbindDragEvents(this._volumeBarContainer,this._onVolumeBarDown,this._onVolumeBarMove,this._onVolumeBarUp),this._unbindScrollOverEvents(this._volumeBtn,this._onVolumeBtnHover,this._onVolumeBtnLeave),this._unbindScrollOverEvents(this._volumeBarContainer,this._onVolumeBarContainerHover,this._onVolumeBtnLeave))},e.prototype._updateMuteBtn=function(t){var e=this._view.getContentNode();this._volumeBtn&&(t?(y.default.classList(this._volumeBtn).add("muted"),y.default.classList(e).add("vp-muted")):(y.default.classList(this._volumeBtn).remove("muted"),y.default.classList(e).remove("vp-muted"))),this.syncAriaState()},e.prototype._updateVolumeBar=function(t){if(this._volumeBar){var e=Math.ceil(100*t),i=100-e;this._volumeBar.setAttribute("style","width:"+e+"%"),this._volumeValue.setAttribute("style","width:"+i+"%")}if(this._volumeHandle){var n=Math.ceil(t*(this._volumeIndicator.clientWidth-this._volumeHandle.offsetWidth/2));this._volumeHandle.setAttribute("style","left:"+n+"px")}},e.prototype._checkForMultiAudio=function(){var t=this._model.playlist.getCurrentItem();t&&t.isMultiAudioAvailable()?(this._renderMultiAudioItems(),y.default.classList(this._volumeBarContainer).add("vp-multi-audio-available"),this._multiAudioBtn&&y.default.classList(this._multiAudioBtn).remove("vp-hidden")):(y.default.classList(this._volumeBarContainer).remove("vp-multi-audio-available"),this._multiAudioBtn&&y.default.classList(this._multiAudioBtn).add("vp-hidden"),this._multiAudioContainer.innerHTML="")},e.prototype._renderMultiAudioItems=function(){var t=this._model.playlist.getCurrentItem(),e=y.default.render(S,{isMobile:a.userAgent.mobile,items:t&&t.languages||[],Strings:f.default});this._multiAudioContainer.appendChild(e)},e.prototype._getSeekFraction=function(t){var e=((t.clientX||t.touches&&t.touches[0]&&t.touches[0].clientX||t.pageX)-this._slider.getBoundingClientRect().left)/this._slider.clientWidth;return Math.max(0,Math.min(1,e))},e.prototype._hideVisualSeek=function(){this._visualSeekContainer.style.display="none",this._lastVisualSeekImage=""},e.prototype._fullScreenStreamModeUpdate=function(t){var e=this._view.getContentNode(),i=this._view.isStreamMode()||this._view.isMiniStreamMode(),n=this._view.isMiniStreamMode()?"vp-ministream":"vp-stream";i&&(t?y.default.classList(e).remove(n):(y.default.classList(e).add(n),this._desktopControls&&this._desktopControls.resetSettings()))},e.prototype._initAriaProperties=function(){this._playBtn.setAttribute("aria-label",f.default.PLAY_VIDEO),this._slider.setAttribute("aria-label",f.default.SEEK_SLIDER),this._slider.setAttribute("aria-valuemin","0"),this._fullscreenBtn&&this._fullscreenBtn.setAttribute("aria-label",f.default.GO_TO_FULLSCREEN),this._volumeBtn&&(y.default.classList(this._volumeBtn).contains("muted")?this._volumeBtn.setAttribute("aria-label",f.default.UNMUTE):this._volumeBtn.setAttribute("aria-label",f.default.MUTE))},Object.defineProperty(e.prototype,"_duration",{get:function(){return this._model.playbackState.duration},enumerable:!0,configurable:!0}),e}(s.default);e.Controls=A},XBl0:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div tabindex='0' class='vp-content vp-hide-controls' aria-label='Yahoo Video Player'>"),n.b("\n"+i),n.b("    \x3c!-- assigning a default 100% height to vp-main until CSS loads for the player --\x3e"),n.b("\n"+i),n.b("    <div class='vp-main' tabindex='0' style=\"height:100%\"></div>"),n.b("\n"+i),n.b("    <div class='vp-docked-meta'>"),n.b("\n"+i),n.b('        <div class="vp-docked-title"></div>'),n.b("\n"+i),n.b('        <div class="vp-docked-provider"></div>'),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.fl()},partials:{},subs:{}})},XPHM:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("lSF3"),o=i("c+yx");(n=window.crypto||window.msCrypto)||("undefined"!=typeof crypto?n=crypto:"undefined"!=typeof msCrypto&&(n=msCrypto)),n=n&&(n.subtle||n.webkitSubtle)||null;var s={name:"HMAC",hash:{name:"SHA-1"}},a=function(t){for(var e=unescape(encodeURIComponent(t)),i=new ArrayBuffer(e.length),n=new Uint8Array(i),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},u=function(t,e){return new r.Promise(function(i,r){n&&n.importKey||r(new Error("crypto is not supported by the current browser")),n.importKey("raw",a(e),s,!1,["sign","verify"]).then(function(e){return n.sign(e.algorithm,e,a(t))}).then(function(t){var e;i((e=t,String.fromCharCode.apply(null,new Uint8Array(e))))}).catch(function(t){r(t)})})},l=function(){function t(){}return t.getXAuthParams=function(t,e){var i,n={},s=(new Date).getTime(),a=Math.random().toString(36).slice(2,12),l="",c=1,d=o.default.getSingleton("PlayerHosting");if(d&&(c=d.gv||1,i=d.g||[],Array.isArray(i))){for(var h=[],p=0,f=i;p<f.length;p++){var _=f[p];h.push(String.fromCharCode(_))}l=h.join("")}var m="dev_id="+e+"&nonce="+a+"&ts="+s+"&uuid="+t+"&v="+c;return new r.Promise(function(t,i){u(m,l).then(function(i){var r=btoa(i);n.xauth_v=c,n.xauth_ts=s,n.xauth_nonce=a,n.xauth_dev_id=e,n.xauth_signature=r,t(n)}).catch(function(t){i({})})})},t}();e.default=l},XevZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("h8UC"),r=i("4g0/"),o={0:{timeout:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_SERVER_CONNECTION_FAILED_TIMEOUT,default:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_SERVER_CONNECTION_FAILED},1:{timeout:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_RESPONSE_NOT_RECEIVED_TIMEOUT,default:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_RESPONSE_NOT_RECEIVED},2:{408:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED_408,timeout:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED_TIMEOUT,default:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_LOAD_FAILED},3:{408:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE_408,timeout:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE_TIMEOUT,default:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_NOT_COMPLETE},default:{timeout:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_TIMEOUT,cors:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_CORS_ERROR,default:n.errorCodes.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_ERROR}};e.getErrorCode=function(t,e,i){return e=e&&o[e]?e:"default",t&&t.message===r.LoaderConstants.XHR_TIMEOUT?i="timeout":i&&o[e][i]||(i="default"),o[e][i]}},Xovh:function(t,e,i){"use strict";t.exports=l;var n=i("rtwX"),r=i("RwmF"),o=i("y5bh"),s=i("/iNa"),a=i("4oyL").userAgent,u=i("5RR1");function l(t,e,i,n){var o=this;r.call(o,o.constructor.name),o.node=e,o.window=t,o.mediaSource=new t.MediaSource,o._jobQueue=[],o._streaming=!1,o.node.mediaKeys?(o.node.src="",o.node.setMediaKeys(null).then(function(){o._init(t,e,i,n)})):o._init(t,e,i,n)}s.inherits(l,r),l.prototype._init=function(t,e,i,r){this.node.src=t.URL.createObjectURL(this.mediaSource),(r=r||{}).userAgent=a,r.inWorkerScope=!1,r.metadata=i,this.appModel=this.create(u,r),this.controller=this.create(n,i),this._streaming=!0,this.node.load(),this._flushJobQueue()},l.prototype.create=function(){var t=this,e=Array.prototype.slice.call(arguments),i=e.shift(),n=Object.create(i.prototype);return n._context=t,i.apply(n,e),n},l.prototype.sendEvent=function(t,e){this.publish(t,e),t&&o.ExternalEvents.indexOf(t)>=0&&this.node.dispatchEvent(this._createCustomEvent(t,e))},l.prototype.getSegInfo=function(){return this.controller?this.controller.getSegInfo():null},l.prototype.notifyError=function(t){this.error=t;var e=this.error.type||"decode";"open"===this.mediaSource.readyState&&this.mediaSource.endOfStream(e),this.controller&&this.controller.destroy()},l.prototype.isMimetypeSupported=function(t){return this.window.MediaSource.isTypeSupported(t)},l.prototype._createCustomEvent=function(t,e){return new this.window.CustomEvent(t,{detail:e,bubbles:!1,cancelable:!1})},l.prototype.setABRMode=function(t){this.controller?this.controller.setABRMode(t):this._jobQueue.push(["setABRMode",[t]])},l.prototype.setAudioLanguage=function(t){this.controller?this.controller.setAudioLanguage(t):this._jobQueue.push(["setAudioLanguage",[t]])},l.prototype.play=function(t){this.controller?this.controller.play(t):this._jobQueue.push(["play",[t]])},l.prototype.pause=function(){this.controller?this.controller.pause():this._jobQueue.push(["pause"])},l.prototype.preload=function(t){this.controller?this.controller.preload(t):this._jobQueue.push(["preload",[t]])},l.prototype.getCurrentDate=function(){return this.controller?this.controller.getCurrentDate():null},l.prototype.suspendStreaming=function(){this.controller&&(this._streaming=!1,this.controller.suspendStreaming())},l.prototype.resumeStreaming=function(){this.controller&&!this._streaming&&(this.controller.resumeStreaming(),this._streaming=!0)},l.prototype.destroy=function(){this.controller&&this.controller.destroy(),this.appModel&&this.appModel.destroy(),this.mediaSource=null,this._streaming=!1,r.prototype.destroy.call(this)},l.prototype._flushJobQueue=function(){var t=this,e=t._jobQueue;t._jobQueue=[],e.forEach(function(e){var i=t.controller,n=i[e[0]],r=e.length>1?e[1]:null;n&&"function"==typeof n&&n.apply(i,r)})}},Y4D7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fezk"),r=129600,o=.5,s=function(){function t(t,e){this._isEnabled=t.watchHistoryEnabled||!1,this._watchedPeriod=t.watchedPeriod||o,this._expirationPeriod=t.watchHistoryExpiry||r,this._model=e}return t.prototype.isWatched=function(t,e){if(!this._isEnabled)return!1;if(!t)throw new Error("UUID not passed for isWatched!");var i=n.default.get("vpResumeTimeItems");if(!i||!i[t])return!1;var r=i[t].position;return this.isDeemedWatched(r,e)},t.prototype.clearExpired=function(){var t=n.default.get("vpResumeTimeItems"),e=(new Date).getTime(),i=!1;t&&(Object.keys(t).forEach(function(n){var r=t[n].expiryTime;r&&e-r>0&&(delete t[n],i=!0)}),i&&n.default.put("vpResumeTimeItems",t))},t.prototype.saveProgress=function(t,e){var i=n.default.get("vpResumeTimeItems")||{},r=this._expirationPeriod;i[t.id]={position:t.position},e&&(i[t.id].expiryTime=(new Date).getTime()+1e3*r,this.isDeemedWatched(t.position,t.duration)?this._model.setMediaItemWatched(t.id,!0):this._model.setMediaItemWatched(t.id,!1)),n.default.put("vpResumeTimeItems",i)},t.prototype.getProgress=function(t){if(!t)throw new Error("UUID not passed for getProgress!");var e=n.default.get("vpResumeTimeItems");return e?e[t]:null},t.prototype.isDeemedWatched=function(t,e){var i=this._watchedPeriod;return!(!this._isEnabled||!e)&&(i>=0&&i<=1?t>=e*i:e<=i?t>=e-5:t>=i)},t}();e.default=s},Y4Rh:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yvapSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/yvapSchema",type:["object","null"],properties:{accountId:{type:"string"},timeout:{type:["number","string"]},cTopic:{type:"string"},standaloneAd:{type:"object",properties:{xml:{type:"string"},showAdSlug:{type:"boolean"}}},vpaidTimeout:{type:"number"},adsReady:{type:"boolean"},preInitVpaid:{type:"boolean"}}}},YBdB:function(t,e,i){(function(t,e){!function(t,i){"use strict";if(!t.setImmediate){var n,r,o,s,a,u=1,l={},c=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick(function(){f(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){f(t.data)},n=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,n=function(t){var e=d.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):n=function(t){setTimeout(f,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&f(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return l[u]=r,n(u),u++},h.clearImmediate=p}function p(t){delete l[t]}function f(t){if(c)setTimeout(f,0,t);else{var e=l[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(i,n)}}(e)}finally{p(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i("yLpj"),i("KCCg"))},YLu2:function(t,e,i){"use strict";t.exports={Command:i("2fkz"),MediaLoadCommand:i("rJdA"),StreamLoadCommand:i("dK7O"),LicenseLoadCommand:i("Pp1v"),SegmentLoadCommand:i("nHOF"),Mp4InitSegmentLoadCommand:i("vFZV"),SubtitleSegmentLoadCommand:i("Le/s"),ErrorHandleCommand:i("EsLZ")}},YMIh:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2");!function(t){t.MEDIA_ITEM="media-item",t.AD_BREAK_ITEM="ad-break-item"}(e.PlayableItemType||(e.PlayableItemType={}));var r=function(){function t(){this.state=n.ItemState.NO_DATA,this.sourceState=n.SourceState.NO_DATA}return t.prototype.setState=function(t){this.state=t},t.prototype.setSourceState=function(t){this.sourceState=t},t.prototype.hasError=function(){return this.state===n.ItemState.ERROR},t.prototype.hasMetadata=function(){return this.state===n.ItemState.HAS_DATA},t.prototype.hasNoMetadata=function(){return this.state===n.ItemState.NO_DATA},t.prototype.hasExpiredMetadata=function(){return!1},t.prototype.isConsistentMetadata=function(){return!0},t.prototype.hasStreams=function(){return!1},t.prototype.hasSource=function(){return this.sourceState===n.SourceState.HAS_DATA},t.prototype.equals=function(t){return t&&t.id===this.id},t.prototype.getPlayableItemType=function(){return null},t.prototype.setDuration=function(t){},t.prototype.getDuration=function(){return NaN},t.prototype.isRecovering=function(){return!1},t.prototype.getStreamType=function(){return null},t.prototype.isReadyToPlay=function(){return this.hasMetadata()&&this.hasSource()&&this.hasStreams()&&!this.hasError()},t.prototype.isLive=function(){return!1},t.prototype.is360Video=function(){return!1},t}();e.PlayableItem=r},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},ZESv:function(t,e,i){var n=i("yp9T"),r=i("0CSc");t.exports=function(t){if(!t)return{};var e={};return r(n(t).split("\n"),function(t){var i,r=t.indexOf(":"),o=n(t.slice(0,r)).toLowerCase(),s=n(t.slice(r+1));void 0===e[o]?e[o]=s:(i=e[o],"[object Array]"===Object.prototype.toString.call(i)?e[o].push(s):e[o]=[e[o],s])}),e}},ZuTH:function(t,e){var i={},n=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},r=n(function(){return/msie 9\b/.test(window.navigator.userAgent.toLowerCase())}),o=n(function(){return document.head||document.getElementsByTagName("head")[0]}),s=null,a=0;function u(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(d(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(d(r.parts[s],e));i[r.id]={id:r.id,refs:1,parts:a}}}}function l(t){for(var e=[],i={},n=0;n<t.length;n++){var r=t[n],o=r[0],s={css:r[1],media:r[2],sourceMap:r[3]};i[o]?i[o].parts.push(s):e.push(i[o]={id:o,parts:[s]})}return e}function c(){var t=document.createElement("style"),e=o();return t.type="text/css",e.appendChild(t),t}function d(t,e){var i,n,r;if(e.singleton){var o=a++;i=s||(s=c()),n=h.bind(null,i,o,!1),r=h.bind(null,i,o,!0)}else i=c(),n=function(t,e){var i=e.css,n=e.media,r=e.sourceMap;if(r&&"function"==typeof btoa)try{i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(JSON.stringify(r))+" */",i='@import url("data:text/css;base64,'+btoa(i)+'")'}catch(t){}n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),r=function(){i.parentNode.removeChild(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}function h(t,e,i,n){var r=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=function(t,e,i){var n=["/** >>"+e+" **/","/** "+e+"<< **/"],r=t.lastIndexOf(n[0]),o=i?n[0]+i+n[1]:"";if(t.lastIndexOf(n[0])>=0){var s=t.lastIndexOf(n[1])+n[1].length;return t.slice(0,r)+o+t.slice(s)}return t+o}(t.styleSheet.cssText,e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(e=e||{}).singleton&&(e.singleton=r());var n=l(t);return u(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var s=n[o];(a=i[s.id]).refs--,r.push(a)}t&&u(l(t),e);for(o=0;o<r.length;o++){var a;if(0===(a=r[o]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete i[a.id]}}}}},a2lm:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-error-screen vp-vis-hidden'>"),n.b("\n"+i),n.b("    <img class='vp-error-screen-image "),n.s(n.f("showBgImage",t,e,1),t,e,0,98,105,"{{ }}")&&(n.rs(t,e,function(t,e,i){i.b("vp-show")}),t.pop()),n.b("' src='"),n.b(n.v(n.f("imageSrc",t,e,0))),n.b("'>"),n.b("\n"+i),n.b("    <div class='vp-error-screen-background'></div>"),n.b("\n"+i),n.b("    <div class='vp-error-title'>"),n.b(n.v(n.f("title",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("    <div class='vp-error-desc vp-error-message'>"),n.b(n.t(n.f("message",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("    <div class='vp-error-code'>"),n.b(n.v(n.f("rep",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("</div>"),n.fl()},partials:{},subs:{}})},a4Db:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.failoverSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/failoverSchema",type:"object",properties:{fastInitRecoverer:{type:"boolean"},beaconDisasterMode:{default:!1,type:"boolean"},sapiUrl:{type:"string"},convivaSamplingRate:{type:"object",properties:{vod:{default:0,type:"number"},live:{default:0,type:"number"}}},recoveryFailureTimeout:{default:120,type:"number"}}}},aAR2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.updateOathPlayerInfo=function(t,e,i){if(!1!==t){var n=e&&e.querySelector(".vp-opensimsim-info");if(n){var r=n.querySelector(".vp-opensimsim-title"),o=this._versionHTMLNode(i.version),s=n.querySelector(".vp-opensimsim-lmsid");n.insertBefore(o,r);var a=this._getHostingInfo(),u=n.querySelector(".vp-opensimsim-hosting");u&&(u.innerHTML=a);var l=n.querySelector(".vp-opensimsim-profile");l&&(l.innerHTML=JSON.stringify(i.config,void 0,2)),s&&(s.innerHTML="<span class='vp-details'> License Id(LMS ID): </span> "+i.lmsId)}}},t.prototype._versionHTMLNode=function(t){var e=document.createElement("div");e.classList.add("vp-opensimsim-oath-title");var i=document.createElement("div");i.classList.add("vp-opensimsim-title"),i.innerHTML="OATH PLAYER";var n=document.createElement("div");return n.innerHTML=t,e.appendChild(i),e.appendChild(n),e},t.prototype._getHostingInfo=function(){var t=window.OATH,e=t&&t.VideoPlatform&&t.VideoPlatform.PlayerHosting||"local";return JSON.stringify(e,void 0,2)},t}();e.default=n},aI7X:function(t,e,i){"use strict";var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError(n+e);for(var i,s=r.call(arguments,1),a=function(){if(this instanceof i){var n=e.apply(this,s.concat(r.call(arguments)));return Object(n)===n?n:this}return e.apply(t,s.concat(r.call(arguments)))},u=Math.max(0,e.length-s.length),l=[],c=0;c<u;c++)l.push("$"+c);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),e.prototype){var d=function(){};d.prototype=e.prototype,i.prototype=new d,d.prototype=null}return i}},aKiy:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("he5r"),r=i("Nfvh"),o=i("d/ck"),s=i("c+yx"),a=function(){function t(t){this._controller=t}return t.prototype.play=function(t,e){this._controller.getPlaybackState()===r.default.INIT&&o.isNumber(t)&&t>0&&t<this.getDuration()&&this._controller.setStartTime(t),this._controller.play({type:n.REQUEST_TYPES.API,action:e&&s.default.isValidRequestAction(e.requestAction)?e.requestAction:void 0})},t.prototype.pause=function(t){this._controller.pause({type:n.REQUEST_TYPES.API,action:t&&s.default.isValidRequestAction(t.requestAction)?t.requestAction:void 0})},t.prototype.preload=function(t){this._controller.preload(t)},t.prototype.seek=function(t){this._controller.seek(t)},t.prototype.disableControls=function(){this._controller.disableControls()},t.prototype.enableControls=function(){this._controller.enableControls()},t.prototype.enableCC=function(t){this._controller.enableCC(t)},t.prototype.disableCC=function(){this._controller.disableCC()},t.prototype.isPlaying=function(){return this._controller.isPlayMode()},t.prototype.isPlayMode=function(){return this._controller.isPlayMode()},t.prototype.getPlaybackState=function(){return this._controller.getPlaybackState()},t.prototype.isLoading=function(){return this._controller.isLoading()},t.prototype.getDuration=function(){var t=this._controller.getCurrentMediaItem();return t&&t.duration},t.prototype.getCurrentTime=function(){return this._controller.getCurrentTime()},t.prototype.getTimeRemaining=function(){return this.getDuration()-this.getCurrentTime()},t.prototype.setFullscreen=function(t){this._controller.setFullscreen(t)},t.prototype.getFullscreen=function(){return this._controller.getFullscreen()},t.prototype.setVolume=function(t){t=(t=t<0?0:t)>1?1:t,this._controller.setVolume(t)},t.prototype.getVolume=function(){return this._controller.getVolume()},t.prototype.setMute=function(t){this._controller.setMute(t)},t.prototype.getMute=function(){return this._controller.getMute()},t.prototype.setLoop=function(t){this._controller.setLoop(t)},t.prototype.setContinuousPlay=function(t){this._controller.setContinuousPlay(t)},t.prototype.resumeContinuousPlay=function(){this._controller.resumeContinuousPlay({type:n.REQUEST_TYPES.API})},t.prototype.getBitrate=function(){throw new Error("getBitrate is unimplemented!")},t.prototype.setResolution=function(){throw new Error("setResolution is unimplemented!")},t.prototype.displayClosedCaptions=function(){throw new Error("displayClosedCaptions is unimplemented!")},t.prototype.getCurrentDate=function(){return this._controller.getCurrentDate()},t.prototype.setAudioLanguage=function(t){this._controller.setAudioLanguage(t)},t}();e.default=a},aPvX:function(t,e,i){"use strict";function n(t){t&&(this.discontinuity=t.discontinuity,this.seqNum=t.sequenceNum,this.startTime=t.startTime,this.programDateTime=t.programDateTime,this.url=t.url,this.duration=t.duration),this.clockReference=0,this.localCueTime=0,this.mpegTSTime=0,this.offset=0,this.adjustedTime=0}t.exports=n,n.prototype.destroy=function(){this.data=null},n.prototype.toObject=function(){var t={};return t.discontinuity=this.discontinuity,t.sequenceNum=this.seqNum,t.startTime=this.startTime,t.programDateTime=this.programDateTime,t.url=this.url,t.duration=this.duration,t.playlistUrl=this.playlistUrl,t.clockReference=this.clockReference,t.localCueTime=this.localCueTime,t.mpegTSTime=this.mpegTSTime,t.data=this.data,t.offset=this.offset,t.adjustedTime=this.adjustedTime,t},n.prototype.parseSegment=function(){if(this.data){var t=this.data.split("\n");if(!(t.length<=0)&&0===t[0].indexOf("WEBVTT")){for(var e=Math.floor((Math.pow(2,33)-1)/90),i=0,n=0,r=1;r<t.length;r++){var o=t[r].trim();if(0===o.indexOf("X-TIMESTAMP-MAP")){var s=new RegExp(/LOCAL[:=]([^,]+)/),a=new RegExp(/MPEGTS[:=]([^,]+)/);n=0,i=0;var u=s.exec(o);if(u&&u.length>=2){var l=u[1].split(":");if(l&&l.length>=3){var c=l[2].split("."),d=0,h=0;c&&c.length>=2&&(d=parseInt(c[0]),h=parseInt(c[1])),n=1e3*(3600*l[0]+60*l[1]+d)+h,n%=e}}var p=a.exec(o);p&&p.length>=2&&(i=parseFloat(p[1]),i=Math.round(i/90)),this.clockReference=this.pcr(),this.localCueTime=n,this.mpegTSTime=i,null===this.clockReference||this.clockReference}else if(o.indexOf("--\x3e")>=0){var f=o.split("--\x3e");if(f){var _=f[0].split(":");if(_){var m=1e3*(3600*parseInt(_[0])+60*parseInt(_[1])+parseFloat(_[2]));null!==this.clockReference&&void 0!==this.clockReference||(this.clockReference=m%e+this.mpegTSTime)}}break}}this.adjustedTime=i-n-this.clockReference+this.offset}}},n.prototype.pcr=function(){if(!this.__controller)return 0;var t=this.__controller.model,e=t.getPCR();if("number"!=typeof e)return null;if(e=e/this.__controller.model.timescale*1e3,t.live&&e<0){var i=-Math.floor(Math.pow(2,32)/90),n=Math.floor((Math.pow(2,32)-1)/90);e=Math.abs(e-i)+n}return e},n.prototype.isBuffered=function(){return!!this.data}},aQXI:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2"),r=i("ma23"),o={id:"6b972eae-d38f-3dd8-8edd-cbcc8d011ded",mimetype:"media/dummy",metadata:{description:"Getting a handle on your spending is the linchpin in crafting a viable retirement plan.",duration:359,title:"How Much Will You Spend in Retirement?",thumbnail:"https://media.zenfs.com/en-US/video/morningstar_993/82a973fefacee4a6453cdd3d0201cb32",type:n.MediaItemType.VOD,videoTypes:[]}},s=function(){function e(){this.version="0.2.137",this.mimetype="media/dummy",this.type=r.PluginType.METADATA}return e.prototype.prepare=function(){},e.prototype.destroy=function(){},e.prototype.resolve=function(e,i,n){new Promise(function(e,i){try{t(function(){e(o)})}catch(t){i(t)}}).then(function(t){n.onComplete([t])}).catch(function(t){var e={code:"1",message:t.toString()};n.onError(e)})},e.prototype.recover=function(t,e,i){},e.prototype.cancel=function(){},e}();e.default=s}).call(this,i("URgk").setImmediate)},aZDc:function(t,e,i){"use strict";var n=i("H0QZ"),r=n.ValidatorResult,o=n.SchemaError,s={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,exclusiveMinimum:!0,exclusiveMaximum:!0,additionalItems:!0,$schema:!0,$ref:!0,extends:!0}},a=s.validators={};function u(t,e,i,n,r){var o=e.throwError;e.throwError=!1;var s=this.validateSchema(t,r,e,i);return e.throwError=o,!s.valid&&n instanceof Function&&n(s),s.valid}function l(t,e,i,n,r,o){if(this.types.object(t)&&(!e.properties||void 0===e.properties[r]))if(!1===e.additionalProperties)o.addError({name:"additionalProperties",argument:r,message:"additionalProperty "+JSON.stringify(r)+" exists in instance when not allowed"});else{var s=e.additionalProperties||{};"function"==typeof i.preValidateProperty&&i.preValidateProperty(t,r,s,i,n);var a=this.validateSchema(t[r],s,i,n.makeChild(s,r));a.instance!==o.instance[r]&&(o.instance[r]=a.instance),o.importErrors(a)}}a.type=function(t,e,i,n){if(void 0===t)return null;var o=new r(t,e,i,n),s=Array.isArray(e.type)?e.type:[e.type];if(!s.some(this.testType.bind(this,t,e,i,n))){var a=s.map(function(t){return t.id&&"<"+t.id+">"||t+""});o.addError({name:"type",argument:a,message:"is not of a type(s) "+a})}return o},a.anyOf=function(t,e,i,n){if(void 0===t)return null;var s=new r(t,e,i,n),a=new r(t,e,i,n);if(!Array.isArray(e.anyOf))throw new o("anyOf must be an array");if(!e.anyOf.some(u.bind(this,t,i,n,function(t){a.importErrors(t)}))){var l=e.anyOf.map(function(t,e){return t.id&&"<"+t.id+">"||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"});i.nestedErrors&&s.importErrors(a),s.addError({name:"anyOf",argument:l,message:"is not any of "+l.join(",")})}return s},a.allOf=function(t,e,i,n){if(void 0===t)return null;if(!Array.isArray(e.allOf))throw new o("allOf must be an array");var s=new r(t,e,i,n),a=this;return e.allOf.forEach(function(e,r){var o=a.validateSchema(t,e,i,n);if(!o.valid){var u=e.id&&"<"+e.id+">"||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+r+"]";s.addError({name:"allOf",argument:{id:u,length:o.errors.length,valid:o},message:"does not match allOf schema "+u+" with "+o.errors.length+" error[s]:"}),s.importErrors(o)}}),s},a.oneOf=function(t,e,i,n){if(void 0===t)return null;if(!Array.isArray(e.oneOf))throw new o("oneOf must be an array");var s=new r(t,e,i,n),a=new r(t,e,i,n),l=e.oneOf.filter(u.bind(this,t,i,n,function(t){a.importErrors(t)})).length,c=e.oneOf.map(function(t,e){return t.id&&"<"+t.id+">"||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"});return 1!==l&&(i.nestedErrors&&s.importErrors(a),s.addError({name:"oneOf",argument:c,message:"is not exactly one from "+c.join(",")})),s},a.properties=function(t,e,i,n){if(this.types.object(t)){var o=new r(t,e,i,n),s=e.properties||{};for(var a in s){"function"==typeof i.preValidateProperty&&i.preValidateProperty(t,a,s[a],i,n);var u=Object.hasOwnProperty.call(t,a)?t[a]:void 0,l=this.validateSchema(u,s[a],i,n.makeChild(s[a],a));l.instance!==o.instance[a]&&(o.instance[a]=l.instance),o.importErrors(l)}return o}},a.patternProperties=function(t,e,i,n){if(this.types.object(t)){var o=new r(t,e,i,n),s=e.patternProperties||{};for(var a in t){var u=!0;for(var c in s){if(new RegExp(c).test(a)){u=!1,"function"==typeof i.preValidateProperty&&i.preValidateProperty(t,a,s[c],i,n);var d=this.validateSchema(t[a],s[c],i,n.makeChild(s[c],a));d.instance!==o.instance[a]&&(o.instance[a]=d.instance),o.importErrors(d)}}u&&l.call(this,t,e,i,n,a,o)}return o}},a.additionalProperties=function(t,e,i,n){if(this.types.object(t)){if(e.patternProperties)return null;var o=new r(t,e,i,n);for(var s in t)l.call(this,t,e,i,n,s,o);return o}},a.minProperties=function(t,e,i,n){if(this.types.object(t)){var o=new r(t,e,i,n);return Object.keys(t).length>=e.minProperties||o.addError({name:"minProperties",argument:e.minProperties,message:"does not meet minimum property length of "+e.minProperties}),o}},a.maxProperties=function(t,e,i,n){if(this.types.object(t)){var o=new r(t,e,i,n);return Object.keys(t).length<=e.maxProperties||o.addError({name:"maxProperties",argument:e.maxProperties,message:"does not meet maximum property length of "+e.maxProperties}),o}},a.items=function(t,e,i,n){var o=this;if(this.types.array(t)&&e.items){var s=new r(t,e,i,n);return t.every(function(t,r){var a=Array.isArray(e.items)?e.items[r]||e.additionalItems:e.items;if(void 0===a)return!0;if(!1===a)return s.addError({name:"items",message:"additionalItems not permitted"}),!1;var u=o.validateSchema(t,a,i,n.makeChild(a,r));return u.instance!==s.instance[r]&&(s.instance[r]=u.instance),s.importErrors(u),!0}),s}},a.minimum=function(t,e,i,n){if(this.types.number(t)){var o=new r(t,e,i,n);return(e.exclusiveMinimum&&!0===e.exclusiveMinimum?t>e.minimum:t>=e.minimum)||o.addError({name:"minimum",argument:e.minimum,message:"must have a minimum value of "+e.minimum}),o}},a.maximum=function(t,e,i,n){if(this.types.number(t)){var o=new r(t,e,i,n);return(e.exclusiveMaximum&&!0===e.exclusiveMaximum?t<e.maximum:t<=e.maximum)||o.addError({name:"maximum",argument:e.maximum,message:"must have a maximum value of "+e.maximum}),o}};var c=function(t,e,i,s,a,u){if(this.types.number(t)){var l=e[a];if(0==l)throw new o(a+" cannot be zero");var c=new r(t,e,i,s),d=n.getDecimalPlaces(t),h=n.getDecimalPlaces(l),p=Math.max(d,h),f=Math.pow(10,p);return Math.round(t*f)%Math.round(l*f)!=0&&c.addError({name:a,argument:l,message:u+JSON.stringify(l)}),c}};function d(t,e,i){var r,o=i.length;for(r=e+1;r<o;r++)if(n.deepCompareStrict(t,i[r]))return!1;return!0}a.multipleOf=function(t,e,i,n){return c.call(this,t,e,i,n,"multipleOf","is not a multiple of (divisible by) ")},a.divisibleBy=function(t,e,i,n){return c.call(this,t,e,i,n,"divisibleBy","is not divisible by (multiple of) ")},a.required=function(t,e,i,n){var o=new r(t,e,i,n);return void 0===t&&!0===e.required?o.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(e.required)&&e.required.forEach(function(e){void 0===t[e]&&o.addError({name:"required",argument:e,message:"requires property "+JSON.stringify(e)})}),o},a.pattern=function(t,e,i,n){if(this.types.string(t)){var o=new r(t,e,i,n);return t.match(e.pattern)||o.addError({name:"pattern",argument:e.pattern,message:"does not match pattern "+JSON.stringify(e.pattern)}),o}},a.format=function(t,e,i,o){if(void 0!==t){var s=new r(t,e,i,o);return s.disableFormat||n.isFormat(t,e.format,this)||s.addError({name:"format",argument:e.format,message:"does not conform to the "+JSON.stringify(e.format)+" format"}),s}},a.minLength=function(t,e,i,n){if(this.types.string(t)){var o=new r(t,e,i,n),s=t.match(/[\uDC00-\uDFFF]/g);return t.length-(s?s.length:0)>=e.minLength||o.addError({name:"minLength",argument:e.minLength,message:"does not meet minimum length of "+e.minLength}),o}},a.maxLength=function(t,e,i,n){if(this.types.string(t)){var o=new r(t,e,i,n),s=t.match(/[\uDC00-\uDFFF]/g);return t.length-(s?s.length:0)<=e.maxLength||o.addError({name:"maxLength",argument:e.maxLength,message:"does not meet maximum length of "+e.maxLength}),o}},a.minItems=function(t,e,i,n){if(this.types.array(t)){var o=new r(t,e,i,n);return t.length>=e.minItems||o.addError({name:"minItems",argument:e.minItems,message:"does not meet minimum length of "+e.minItems}),o}},a.maxItems=function(t,e,i,n){if(this.types.array(t)){var o=new r(t,e,i,n);return t.length<=e.maxItems||o.addError({name:"maxItems",argument:e.maxItems,message:"does not meet maximum length of "+e.maxItems}),o}},a.uniqueItems=function(t,e,i,o){if(this.types.array(t)){var s=new r(t,e,i,o);return t.every(function(t,e,i){for(var r=e+1;r<i.length;r++)if(n.deepCompareStrict(t,i[r]))return!1;return!0})||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}},a.uniqueItems=function(t,e,i,n){if(this.types.array(t)){var o=new r(t,e,i,n);return t.every(d)||o.addError({name:"uniqueItems",message:"contains duplicate item"}),o}},a.dependencies=function(t,e,i,n){if(this.types.object(t)){var o=new r(t,e,i,n);for(var s in e.dependencies)if(void 0!==t[s]){var a=e.dependencies[s],u=n.makeChild(a,s);if("string"==typeof a&&(a=[a]),Array.isArray(a))a.forEach(function(e){void 0===t[e]&&o.addError({name:"dependencies",argument:u.propertyPath,message:"property "+e+" not found, required by "+u.propertyPath})});else{var l=this.validateSchema(t,a,i,u);o.instance!==l.instance&&(o.instance=l.instance),l&&l.errors.length&&(o.addError({name:"dependencies",argument:u.propertyPath,message:"does not meet dependency required by "+u.propertyPath}),o.importErrors(l))}}return o}},a.enum=function(t,e,i,s){if(void 0===t)return null;if(!Array.isArray(e.enum))throw new o("enum expects an array",e);var a=new r(t,e,i,s);return e.enum.some(n.deepCompareStrict.bind(null,t))||a.addError({name:"enum",argument:e.enum,message:"is not one of enum values: "+e.enum.map(String).join(",")}),a},a.const=function(t,e,i,o){if(void 0===t)return null;var s=new r(t,e,i,o);return n.deepCompareStrict(e.const,t)||s.addError({name:"const",argument:e.const,message:"does not exactly match expected constant: "+e.const}),s},a.not=a.disallow=function(t,e,i,n){var o=this;if(void 0===t)return null;var s=new r(t,e,i,n),a=e.not||e.disallow;return a?(Array.isArray(a)||(a=[a]),a.forEach(function(r){if(o.testType(t,e,i,n,r)){var a=r&&r.id&&"<"+r.id+">"||r;s.addError({name:"not",argument:a,message:"is of prohibited type "+a})}}),s):null},t.exports=s},afoZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=i("6N1G"),o=function(){function t(){var t=this;this._proxyCalls=[],this._proxy=new r.default(Object.create(n.Player.prototype),{get:function(e,i){var n=t;return function(){n._proxyCalls.push({method:i,args:arguments}),"render"===i&&n._render.apply(n,arguments)}}})}return t.prototype.destroy=function(){var t=this._proxyNode;this._proxy=void 0,this._proxyCalls=[],t&&t.parentNode&&(t.parentNode.removeChild(t),this._proxyNode=void 0)},t.prototype.execute=function(t){this._proxyCalls.forEach(function(e){var i=e.method,n=e.args;t[i].apply(t,n)}),this._proxyCalls=[]},t.prototype.getProxy=function(){return this._proxy},t.prototype._render=function(t){var e="string"==typeof t?document.querySelector(t):t;if(null!==e&&e instanceof window.HTMLElement){var i=document.createElement("div");i.setAttribute("style","width:100%;height:100%;background:#000;position:absolute;left:0;top:0;"),e.appendChild(i),this._proxyNode=i}},t}();e.default=o},bAFD:function(t,e,i){"use strict";var n=i("4Qju"),r={wifi:!0,broadband:!0,dsl:!0,cable:!0};function o(){if("undefined"!=typeof navigator)return(navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection)||{}).type}function s(){if(!n.mobile)return!0;var t=n.android&&n.chrome>=50,e=n.ios&&!n.iosWebView&&n.safari>=10;return t||e}t.exports={getConnectionType:o,isAutoplaySupported:s,isAutoplayAllowed:function(t){return!n.mobile||!(!(t=(o()||t||"").replace(/^cs_/i,"").toLowerCase())||!r[t])&&s()}}},"bE/8":function(t,e,i){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var r=n(i("sdq/")),o=r;e.Loader=r.default,e.LoaderConstants=o},bXaf:function(t,e,i){"use strict";t.exports=l;var n=i("UbnH"),r=i("/iNa"),o=i("RwmF"),s="AES-CBC",a="Key Import is rejected",u="Decryption is rejected";function l(){this._userAgent=this.__controller.model.userAgent,o.call(this,this.constructor.name),"undefined"==typeof window?this._crypto=crypto||msCrypto:this._crypto=window.crypto||window.msCrypto,this._crypto=this._crypto.subtle||this._crypto.webkitSubtle,this._data=null,this._key=null,this._cryptoAlgo={name:s,length:128,iv:null}}r.inherits(l,o),l.prototype.destroy=function(){this.close(),o.prototype.destroy.call(this)},l.prototype.close=function(){this._data=null,this._buffer=null,this._key=null,this._cryptoKey=null},l.prototype.append=function(t){t&&("key"===t.type?this._setKey(t):this._appendData(t))},l.prototype._appendData=function(t){if(t)if(this._buffer){var e=new Uint8Array(this._buffer.byteLength+t.byteLength);e.set(new Uint8Array(this._buffer),0),e.set(new Uint8Array(t),this._buffer.byteLength),this._buffer=e}else this._buffer=t},l.prototype._setKey=function(t){var e=this;t&&(t.initVector||(t.initVector=e._getInitVectorFromSeqNum(t.seqNum)),e._key=t,e._cryptoAlgo.iv=e._hexToByte(t.initVector).buffer,11!==e._userAgent.ie?e._crypto.importKey("raw",t.data,e._cryptoAlgo,!0,["decrypt"]).then(function(t){e._cryptoKey=t,e._decryptAndAppend()},function(t){e._onError(a,t)}):e._importKeyInIE(t))},l.prototype._importKeyInIE=function(t){var e=this,i=e._crypto.importKey("raw",t.data,e._cryptoAlgo,!0,["decrypt"]);i?(i.onerror=function(t){e._onError(a,t)},i.oncomplete=function(t){e._cryptoKey=t&&t.target?t.target.result:null,e._decryptAndAppend()}):e._onError("Key Import operation is not created in IE-11")},l.prototype._decryptAndAppend=function(){var t=this;if(t._cryptoKey&&t._buffer&&t._buffer.byteLength&&t._endOfSegment){var e=t._buffer.buffer,i=e.byteLength-e.byteLength%16,n=e.slice(0,i);t._buffer=new Uint8Array(e.slice(i)),11!==t._userAgent.ie?t._crypto.decrypt(t._cryptoAlgo,t._cryptoKey,n).then(function(e){t._sendDecryptedData(e)},function(e){t._onError(u,e)}).catch(function(e){t._onError("Exception",e.toString())}):t._decryptInIE(n)}},l.prototype._decryptInIE=function(t){var e=this;if(e._cryptoKey&&t){var i=e._crypto.decrypt(e._cryptoAlgo,e._cryptoKey,t);i?(i.onerror=function(t){e._onError(u,t)},i.oncomplete=function(t){t&&t.target&&e._sendDecryptedData(t.target.result)}):e._onError("Decryption operation is not created in IE-11")}},l.prototype._sendDecryptedData=function(t){this.publish(n.DATA_PROCESS_PROGRESS,new Uint8Array(t)),this._endOfSegment&&(0===this._buffer.byteLength?this.publish(n.DATA_PROCESS_COMPLETE):this._decryptAndAppend())},l.prototype._hexToByte=function(t){for(var e=[],i=0,n=(t=t.substr(2)).length;i<n;i+=2)e.push(parseInt(t.substr(i,2),16));return new Uint8Array(e)},l.prototype.endOfSegment=function(){this._endOfSegment=!0,this._key&&this._cryptoKey&&this._decryptAndAppend()},l.prototype._onError=function(t,e){this.publish(n.DATA_PROCESS_ERROR)},l.prototype._getInitVectorFromSeqNum=function(t){for(var e="0x",i=(t=t||0).toString(16),n=i.length<32?32-i.length:0,r=0;r<n;r++)e+="0";return e+=i}},bfqm:function(t,e,i){"use strict";t.exports=u;var n=i("/Ggr"),r=i("lPOR"),o=i("/iNa"),s=i("jYym"),a=i("KtsB");function u(t,e){if(this._model=this.__controller.model,this._useWorker=this._model.config.useWorker,this._userAgent=this._model.userAgent,this._moduleName="HlsTransformer",this._instanceId=o.guid(),this._properties=t,this._callback=e,this.MIN_BUFFER_LENGTH=5,this._shouldUseWorker()){if(this._worker=this.__controller.services.getWorker(this._moduleName),this._worker)return this._worker.addEventListener("message",this._onMessage.bind(this)),void this._sendMessage(r.MessageIds.CREATE,[t]);this._model.config.useWorker=!1}this._transformer=new n(t,e),this._useWorker=!1}u.prototype.destroy=function(){this._useWorker&&this._worker?this._sendMessage(r.MessageIds.DESTROY):this._transformer.destroy()},u.prototype.close=function(){this._useWorker&&this._worker?this._sendMessage(r.MessageIds.CALL_METHOD,null,"close"):this._transformer.close()},u.prototype.append=function(t){this._useWorker&&this._worker?this._sendMessage(r.MessageIds.CALL_METHOD,[t],"append",[t.buffer]):this._transformer.append(t)},u.prototype.endOfSegment=function(){this._useWorker&&this._worker?this._sendMessage(r.MessageIds.CALL_METHOD,null,"endOfSegment"):this._transformer.endOfSegment()},u.prototype._onMessage=function(t){if(t){var e=t.data?new a(t.data):t;if(e&&e.instanceId===this._instanceId&&(e.id===r.MessageIds.APPEND_SRC_BUFFER||e.id===r.MessageIds.TIMED_METADATA)){var i=e.getParam("parsedInfo");i&&(i.inWorkerScope=!0),this._callback(e)}}},u.prototype._shouldUseWorker=function(){return!!this._useWorker&&(this._userAgent.chrome&&!this._userAgent.win7?this._useWorker=!(this.__controller&&this.__controller.getState()>=s.PLAY_REQUESTED)||this._model.bufferLength>this.MIN_BUFFER_LENGTH:this._useWorker=!1,this._useWorker)},u.prototype._sendMessage=function(t,e,i,n){if(this._worker&&t){var o={type:r.MessageTypes.MESSAGE,id:t,moduleName:this._moduleName,instanceId:this._instanceId,funcName:i,args:e,timestamp:Date.now()};this._worker.postMessage(o,n)}}},bh81:function(t,e,i){"use strict";function n(){this.PIXEL_THRESHOLD_FACTOR=.5}function r(){this.BANDWIDTH_FACTOR_LOW=1.3,this.BANDWIDTH_FACTOR_HIGH=1.6,this.MIN_BW_FOR_LOW_FACTOR=25e5,this.MIN_BUFFER_TO_SWITCH_DOWN=10}function o(){this.BANDWIDTH_FACTOR_LOW=1.3,this.BANDWIDTH_FACTOR_HIGH=1.6,this.MIN_BW_FOR_LOW_FACTOR=25e5,this.MIN_BUFFER_TO_SWITCH_UP=6,this.MIN_LENGTH_DATA=2,this.ALLOWED_LOAD_TIME=500}function s(){this.MAX_WIDTH_240P=427,this.MAX_HEIGHT_240P=240,this.MAX_BITRATE_240P=9e5,this.MAX_BITRATE_LIMIT=1e7,this.PIXEL_RATIO_360=6}t.exports.StartupRule=n,t.exports.BandwidthRule=r,t.exports.BufferRule=o,t.exports.ResolutionRule=s,e.validateAbrInput=function(t){return!(!t||"object"!=typeof t||!t.bitrateList||!t.bitrateList.length||"number"!=typeof t.estimatedBandwidthInBps||isNaN(t.estimatedBandwidthInBps)||void 0===t.currentIndex||null===t.currentIndex||isNaN(t.currentIndex)||void 0===t.bufferLength||isNaN(t.bufferLength)||void 0===t.displayWidth||isNaN(t.displayWidth)||t.displayWidth<=0||void 0===t.displayHeight||isNaN(t.displayHeight)||t.displayHeight<=0||void 0===t.streams||t.streams.length<=0)},n.prototype.getNextStreamIndex=function(t){if(!e.validateAbrInput(t))return-1;for(var i,n=t.displayWidth*t.displayHeight*this.PIXEL_THRESHOLD_FACTOR,r=t.streams.length-1;r>=0;r--){var o=t.streams[r].width*t.streams[r].height;if(!i&&o<n&&(i=o),i&&o<i)return r+1}return 0},r.prototype.getNextStreamIndex=function(t){if(!e.validateAbrInput(t))return-1;for(var i=0,n=t.estimatedBandwidthInBps||t.bwHistory,r=this._getBandwidthFactor(n),o=0;o<t.bitrateList.length&&!(n<r*t.bitrateList[o]);o++)i=o;return i<t.currentIndex&&t.bufferLength>this.MIN_BUFFER_TO_SWITCH_DOWN&&(i=t.currentIndex),i},r.prototype._getBandwidthFactor=function(t){return t>=this.MIN_BW_FOR_LOW_FACTOR?this.BANDWIDTH_FACTOR_LOW:this.BANDWIDTH_FACTOR_HIGH},o.prototype.getNextStreamIndex=function(t){if(!e.validateAbrInput(t))return-1;var i=t.segmentLength?Math.min(t.segmentLength,this.MIN_BUFFER_TO_SWITCH_UP):this.MIN_BUFFER_TO_SWITCH_UP;return 0===t.bufferLength?this._getIndexWithLoadTime(t):t.bufferLength<i?t.currentIndex:t.bitrateList.length-1},o.prototype._getIndexWithLoadTime=function(t){for(var e=0,i=t.estimatedBandwidthInBps||t.bwHistory,n=this._getBandwidthFactor(i),r=this.ALLOWED_LOAD_TIME/1e3,o=0;o<t.bitrateList.length&&!(n*t.bitrateList[o]*this.MIN_LENGTH_DATA/i>r);o++)e=o;return e},o.prototype._getBandwidthFactor=function(t){return t>=this.MIN_BW_FOR_LOW_FACTOR?this.BANDWIDTH_FACTOR_LOW:this.BANDWIDTH_FACTOR_HIGH},s.prototype.getNextStreamIndex=function(t){if(!e.validateAbrInput(t))return-1;var i=t.pixelRatio||this.getPixelRatio(t),n=t.displayWidth,r=t.displayHeight;!isNaN(i)&&i>1&&(n*=i,r*=i);for(var o=0,s=0;s<t.streams.length&&!(t.streams[s].width>n||t.streams[s].height>r);s++)o=s;var a=t.streams[o].width,u=t.streams[o].height,l=n<=this.MAX_WIDTH_240P||r<=this.MAX_HEIGHT_240P?this.MAX_BITRATE_240P:this.MAX_BITRATE_LIMIT;if((o=this._getMaxIdxWithSameDim(t,a,u,l))<t.streams.length-1&&t.bitrateList[o+1]<l){var c=t.streams[o+1].width,d=t.streams[o+1].height,h=t.streams[o].height;Math.abs(d-r)<=Math.abs(h-r)&&(o=this._getMaxIdxWithSameDim(t,c,d,l))}return o},s.prototype._getMaxIdxWithSameDim=function(t,e,i,n){var r=0;return t.streams.forEach(function(o,s){var a=t.bitrateList[s];o&&o.width===e&&o.height===i&&a<=n&&s>r&&a>t.bitrateList[r]&&(r=s)}),r},s.prototype.getPixelRatio=function(t){var e=1;try{window&&(e=window.devicePixelRatio)}catch(t){e=1}return e||(e=1),t.is360&&(e*=this.PIXEL_RATIO_360),e}},"c+yx":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=i("s4NR"),o=i("ToqN"),s=i("t8Yn"),a=i("he5r"),u=i("d/ck"),l=["yahoo.com","yahoo.co.jp","yahoo.net","yahoo.fr","yimg.com","rivals.com","tumblr.com","txmblr.com","flickr.com","maktoob.com","grindtv.com","thepostgame.com","nfl.com","nfljapan.com","movie.yahoo-leisure.hk","mmovie.yahoo-leisure.hk","test.player.vdms.io"],c=["aol.com","oath.com","verizondigitalmediaservices.com","ouroath.com","vzbuilders.com"].concat(l);!function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOAD_COMPLETE=2]="LOAD_COMPLETE"}(n=e.SCRIPT_LOAD_STATE||(e.SCRIPT_LOAD_STATE={}));var d=function(){function t(){}return t.isOffNetwork=function(e,i){e=e||t.getHostUrl();var n=t.parseDomain(e);if(!e||o.userAgent.samsung)return!1;var r=i?l:c,s=[];return["cdn.ampproject.org","amp.cloudflare.com","bing-amp.com"].forEach(function(t){r.forEach(function(e){var i=e.replace(/-/g,"--").replace(/\./g,"-");s.push(i+"."+t)})}),(s=s.concat(r)).push("localhost"),!n||!s.some(function(t){return-1!==n.indexOf(t,n.length-t.length)})},t.isYahooDomain=function(e){return!1===t.isOffNetwork(e,!0)},t.isOathDomain=function(e){return!1===t.isOffNetwork(e,!1)},t.isWhitelistedDomain=function(e){var i=t.parseDomain(e||t.getHostUrl())||"";return["publishing.oath.com"].some(function(t){return!!i.match(new RegExp(t+"$"))})},t.getHostUrl=function(){var t=document.referrer;try{window.top.location.href&&(t=window.top.location.href)}catch(t){}return t},t.parseDomain=function(t){var e=/^https?:\/\/([A-Za-z0-9\.\-]*)(?:$|\/|:)/.exec(t);return e?e[1]:null},t.isValidUrl=function(t){return/^https:\/\/[a-z0-9-\.]+\.[a-z]{2,4}\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/.test(t)},t.getPageQueryString=function(){var e=t._getWindow().location.search;return e&&0===e.indexOf("?")&&(e=e.substr(1)),r.parse(e,void 0,void 0,{decodeURIComponent:window.decodeURIComponent})},t.sendIframeBeacon=function(e){e=t.fixProtocol(e);var i,n=Math.random(),r=document.querySelector("#vp-beacons"),o="vp-beacons-"+n;return r||(r=t.createBeaconsIframe(document,"vp-beacons"),document.body.appendChild(r)),(i=t.createBeaconsIframe(r.contentDocument,o)).src=e,"complete"===r.contentDocument.readyState?r.contentDocument.body.appendChild(i):r.contentDocument.body.onload=function(){r.contentDocument.body.appendChild(i)},!0},t.createBeaconsIframe=function(t,e){var i=t.createElement("iframe");return i.frameBorder=0,i.width=0,i.height=0,i.marginwidth=0,i.marginheight=0,i.hspace=0,i.vspace=0,i.frameborder=0,i.scrolling="no",i.id=e,i.style.display="none",i.title="",i},t.sendImageBeacon=function(e){e=t.fixProtocol(e);var i=new Image;i.onload=i.onabort=i.onerror=function(){i.onload=i.onabort=i.onerror=null,i=null},i.src=e},t.fixProtocol=function(t){return o.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t.lazyLoad=function(e,i){var r=t.getLazyLoadState(e);if(r.state!==n.LOADING){if(r.state===n.LOAD_COMPLETE)return i(!0);r.state=n.LOADING,r.subscribers.push(i);t.loadScript(e,function(t){r.state=n.LOAD_COMPLETE,r.subscribers.forEach(function(e){return e(t)})})}else r.subscribers.push(i)},t.getLazyLoadState=function(e){var i=t.getSingleton("lazyLoadState"),r={state:n.NOT_LOADED,subscribers:[]};if(i&&i[e])r=i[e];else if(i)i[e]=r;else{var o={};o[e]=r,t.setSingleton("lazyLoadState",o)}return r},t.loadScript=function(t,e){var i=document.createElement("script");i.async=!0,i.src=t,i.onload=function(){return e(!0)},i.onerror=function(){return e(!1)},document.body.appendChild(i)},t.setSingleton=function(t,e){window.OATH=window.OATH||{},window.OATH.VideoPlatform=window.OATH.VideoPlatform||{},window.OATH.VideoPlatform[t]=e},t.getSingleton=function(t){return window.OATH&&window.OATH.VideoPlatform&&window.OATH.VideoPlatform[t]?window.OATH.VideoPlatform[t]:null},t.isValidRequestAction=function(t){return-1!==[null,a.REQUEST_TYPES.CLICK,a.REQUEST_TYPES.AUTOPLAY,a.REQUEST_TYPES.HOVER,a.REQUEST_TYPES.PLAY,a.REQUEST_TYPES.PAUSE,a.REQUEST_TYPES.SCROLL,a.REQUEST_TYPES.SWIPE,a.REQUEST_TYPES.BACKGROUND].indexOf(t)},t.transformLegacyConfig=function(e){var i=Object.assign({mediaItems:[],ui:{},watchHistory:{enabled:!1,watchedPeriod:.5,expiry:129600,skipWatchedVideos:!0}},e),n=!1;if(e.playlist&&e.playlist.mediaItems){e.playlist=Object.assign({},e.playlist);for(var r=0,o=e.playlist.mediaItems;r<o.length;r++){var l=o[r],c=null;l.id===a.GEMINI_STUB_VIDEO_ID&&e.YVAP&&e.YVAP.standaloneAd&&(c=t._transformGeminiAdItem(l,e)),c||(c={mimetype:l.id?s.MediaItemInterfaces.MediaItemMimeType.SAPI:s.MediaItemInterfaces.MediaItemMimeType.CONTAINER,id:l.id||""},(l.meta||l.streams)&&(c.customConfig={response:l}),l.streams&&c.mimetype===s.MediaItemInterfaces.MediaItemMimeType.CONTAINER&&(c.source=c.source||{},c.source.streams=l.streams),l.meta&&l.meta.playlist_config&&(n=!0));var d=l.images;d&&(d.thumbnail||d.large||d.medium||d.small)&&(c.metadata=c.metadata||{},c.metadata.thumbnail=d.thumbnail||d.large||d.medium||d.small),i.mediaItems.push(c)}void 0!==i.playlist.videoRecommendations&&(i.videoRecommendations=i.playlist.videoRecommendations),i.playlist.id?delete i.playlist.mediaItems:delete i.playlist}e.region&&(i.region=e.region.toUpperCase()),e.docking&&(i.ui.docking=Object.assign({},e.docking),i.ui.docking.position={},["Top","Right","Bottom","Left"].forEach(function(t){var n="position"+t,r=e.docking[n];i.ui.docking.position[t.toLowerCase()]="number"==typeof r?r:-1,delete i.ui.docking[n]}),delete i.docking);return[["ccOnMute","ccOnMute"],["chromeless","chromeless"],["showControls","showControls"],["showAgeGate","showAgeGate"],["fullscreenBtn","showFullscreenButton"]].forEach(function(t){void 0!==e[t[0]]&&(i.ui[t[1]]=!!e[t[0]]),delete i[t[0]]}),void 0!==e.startscreen&&"object"!=typeof e.startscreen?(i.ui.startScreen={show:!!e.startscreen},delete i.startscreen):"object"==typeof e.startscreen&&e.startscreen&&(i.ui.startScreen=i.ui.startScreen||{},["showButton","show","showDesc","showControls","showProvider","showTitle"].forEach(function(t){void 0!==e.startscreen[t]&&(i.ui.startScreen[t]=!!e.startscreen[t])}),i.ui.startScreen.showDescription=!!e.startscreen.showDesc,delete i.ui.startScreen.showDesc,delete i.startscreen),void 0!==e.endscreen&&"object"!=typeof e.endscreen?(i.ui.endScreen={show:!!e.endscreen},delete i.endscreen):"object"==typeof e.endscreen&&e.endscreen&&(i.ui.endScreen=e.endscreen,delete i.endscreen),void 0!==e.replayonlyendscreen&&"boolean"==typeof e.replayonlyendscreen&&(i.ui.endScreen={show:!!e.replayonlyendscreen},delete i.replayonlyendscreen),["Start","Hover"].forEach(function(t){var n="showTitleOn"+t;void 0!==e[n]&&(i.ui.title=i.ui.title||{},i.ui.title["showOn"+t]=e[n],delete i[n])}),void 0!==e.watchHistoryEnabled&&(i.watchHistory.enabled=e.watchHistoryEnabled,delete i.watchHistoryEnabled),void 0!==e.watchedPeriod&&(i.watchHistory.watchedPeriod=e.watchedPeriod,delete i.watchedPeriod),void 0!==e.watchHistoryExpiry&&(i.watchHistory.expiry=e.watchHistoryExpiry,delete i.watchHistoryExpiry),e.YVAP&&("number"==typeof e.YVAP.timeout&&(i.ads=i.ads||{timeout:{}},i.ads.timeout.load=e.YVAP.timeout),"number"==typeof e.YVAP.vpaidTimeout&&(i.ads=i.ads||{timeout:{}},i.ads.timeout.start=e.YVAP.vpaidTimeout)),e.playlistUI&&(i.ui.playlist=e.playlistUI,delete i.playlistUI),n&&i.ui.playlist&&(i.ui.playlist.mimetype="playlist/structured"),["height","width"].forEach(function(t){e[t]&&u.isString(e[t])&&(i[t]=parseInt(e[t],10),u.isNumber(i[t])||delete i[t])}),i},t.isLegacyConfig=function(t){return!(!t||!t.playlist||!t.playlist.mediaItems&&!t.playlist.id)},t.formatTime=function(t){var e=Math.floor(t/3600),i=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*i),r=n<10?"0"+n:n.toString(),o="";if(e>0){var s=i<10?"0"+i:i.toString();o=e.toString()+":"+s+":"+r}else u.isNumber(i)&&(o=i.toString()+":"+r);return o},t.getPlayerType=function(){var e=t.getSingleton("PlayerHosting"),i="desktop";if(e&&e.type){var n=e.type.match(/^oath\-player\-([a-z\-]*)\.js/);n&&n[1]&&(i=n[1])}return"nextgen-"+(i="mobile-ios"===i?"ios":i)},t.getBckt=function(){var e=t.getSingleton("PlayerHosting");if(e){var i=e.bucket,n=e.env;return i||("prod"===n?"Treatment_Oath_Player":null)||"none"}return"Treatment_Oath_Player"},t.isInternalUser=function(){var e=t.getSingleton("PlayerHosting");return e&&"stage"===e.env},t.initIframeCmp=function(){if(!window.__cmp){for(var t,e=window;!t;){try{e.frames.__cmpLocator&&(t=e)}catch(t){}if(e===window.top)break;e=e.parent}var i={};window.__cmp=function(e,n,r){if(t){var o=Math.random()+"",s={__cmpCall:{command:e,parameter:n,callId:o}};i[o]=r,t.postMessage(s,"*")}else r({msg:"CMP not found"},!1)},window.addEventListener("message",function(t){var e="string"==typeof t.data,n=t.data;if(e)try{n=JSON.parse(t.data)}catch(t){}if(n.__cmpReturn){var r=n.__cmpReturn;i[r.callId](r.returnValue,r.success),delete i[r.callId]}},!1)}},t.getCookie=function(t){t+="=";var e=document.cookie.split(/;\s*/),i=null;return e.forEach(function(e){e.indexOf(t)>-1&&(i=e.replace(t,""))}),i},t.extend=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return u.isObject(t)||(t={}),e.forEach(function(e){if(e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}),t},t._transformGeminiAdItem=function(t,e){return t&&e&&e.YVAP&&e.YVAP.standaloneAd&&e.YVAP.standaloneAd.gemini?{mimetype:s.MediaItemInterfaces.MediaItemMimeType.CONTAINER,metadata:{type:s.MediaItemInterfaces.MediaItemType.CONTAINER},id:"gemini-ad-"+Math.ceil(1e11*Math.random()),adConfig:{mimetype:a.VRM_PLUGIN_MIMETYPE,value:{YVAP:e.YVAP}}}:null},t._getWindow=function(){return window},t}();e.default=d},c6dB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("fLR+"),o=i("+Ojf"),s=i("oIMU"),a=i("N+vR"),u=function(){function t(t,e){this._config=t,this.startTime=Date.now(),this._profileItems=[],this._eventBus=e,this._eventKeys={},this._handleEvents()}return t.prototype.getItem=function(t){var e=this._findItem(t);return e>-1?this._profileItems[e]:null},t.prototype.render=function(t){var e,i=this._profileItems.slice(0);i.forEach(function(t){t.startWidth=t.startTime/4,t.barWidth=t.timeDiff/4});try{e=JSON.parse(JSON.stringify(this._config))}catch(t){e={}}var r=o.default.render(a,{config:JSON.stringify(e,null,2),profileItems:i});if(t){var s=document.createElement("div");s.appendChild(r),s.appendChild(t),r=s}if(n.userAgent.mobile)document.write(r.innerHTML);else{var u=window.open();u&&u.document.write(r.innerHTML)}},t.prototype.destroy=function(){this._eventBus.removeEventListeners(this._eventKeys)},t.prototype._findItem=function(t){for(var e=0;e<this._profileItems.length;e++){var i=this._profileItems[e];if(t.type===i.type)return e}return-1},t.prototype._handleEvents=function(){var t=this;this._eventKeys[s.PROFILE_START]=this._eventBus.addEventListener(s.PROFILE_START,function(e){void 0===e&&(e=[]),(e=r.isArray(e)?e:[e]).forEach(function(e){t._start(e)})},this),this._eventKeys[s.PROFILE_END]=this._eventBus.addEventListener(s.PROFILE_END,function(e){void 0===e&&(e=[]);for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];(e=r.isArray(e)?e:[e]).forEach(function(e){t._end.apply(t,[e].concat(i))})},this)},t.prototype._start=function(t){var e=this._findItem(t);e>-1&&this._profileItems.splice(e,1),this._profileItems.push({type:t.type,desc:t.desc,startTime:Date.now()-this.startTime,endTime:void 0})},t.prototype._end=function(t,e,i){void 0===e&&(e=Date.now()),void 0===i&&(i=!0);var n=this.getItem(t);e||(e=Date.now(),i=!0),n&&void 0===n.endTime&&(n.endTime=i?e-this.startTime:e,n.timeDiff=n.endTime-(n.startTime||0))},t}();e.Profiler=u},cDre:function(t,e,i){"use strict";t.exports.StreamingController=g;var n=i("6I/I").Events,r=i("k721"),o=i("rWzN"),s=i("OtQS"),a=i("HNE+"),u=i("7M2b"),l=u.StreamLoader,c=u.Events,d=i("V66C").StreamTypes,h=i("/iNa"),p=i("RwmF"),f=i("y5bh").HLSEvent,_=i("R6Gm"),m=i("x7P6").AbrModes,y=i("lPOR"),v=t.exports.Events={STREAM_METADATA_LOADED:"streamMetadataLoaded",STREAM_METADATA_LOAD_ERROR:"streamMetadataLoadError",PRELOAD_COMPLETE:"preloadComplete",SEG_LOAD_PROGRESS:"streamingControllerSegLoadProgress"};function g(){p.call(this,this.constructor.name),this._model=this.__controller.model,this._services=this.__controller.services,this._commandManager=this.__controller.create(_),this._metrics=this._services.segmentMetrics,this._streamLoaders={},this._loadingStreamsTotal=0,this._loadedStreamCount=0,this._streamers={},this._primaryStreamer=null,this._streamerCount=0,this._errorHandler=this.__controller.create(s,this._commandManager),this._errorHandler.addEventListener(this._errorHandler.SWITCH_ON_ERROR,this._onErrorSwitch,this),this._switchManager=this.__controller.create(o),this._switchManager.addEventListener(this._switchManager.SWITCH_BEGIN,this._onSwitchBegin,this),this._switchManager.addEventListener(this._switchManager.SWITCH_END,this._onSwitchEnd,this),this._loadMonitorTimer=new a(1e3*this._model.config.segmentLoadMonitorInterval),this._loadMonitorTimer.addEventListener(this._onLoadMonitor,this),this._streamerEventKeys={},this._jobQueue=[],this._paused=!1,this._switching=!1,this._manualStreamChange=!1,this._switchScenario=this._switchManager.SCENARIOS.STARTUP,this.STATES={ERROR:-1,INITIAL:0,STREAM_METADATA_LOADED:1,INITIALIZED:2},this._state=this.STATES.INITIAL}h.inherits(g,p),g.prototype.loadStream=function(t){var e=this;t&&e._state===e.STATES.INITIAL&&(e._createStreamLoader(t).load(t),e._loadingStreamsTotal++,Object.keys(t.altRenditionGroups).forEach(function(i){var n=t.getAlternateStream(i);n&&n.url&&(e._createStreamLoader(n).load(n),e._loadingStreamsTotal++)}))},g.prototype.loadAllSubtitleStreams=function(){var t=this;if(t._state===t.STATES.INITIAL){var e=[];t._model.streams.forEach(function(i){var n=i.getAlternateStream(d.SUBTITLES);n&&e.indexOf(n.url)<0&&(e.push(n.url),t._createStreamLoader(n).load(n),t._loadingStreamsTotal++)}),t._state=t.STATES.STREAM_METADATA_LOADED,t.publish(v.STREAM_METADATA_LOADED)}},g.prototype._createStreamLoader=function(t){var e=this.__controller.create(l,this._commandManager);return e.addEventListener(c.STREAM_LOADED,this._onStreamLoaded,this),e.addEventListener(c.STREAM_LOAD_ERROR,this._onStreamLoadError,this),this._streamLoaders[t.url]=e,t.type===d.SUBTITLES&&this._loadedStreamCount++,e},g.prototype._destroyStreamLoaders=function(){var t=this;Object.keys(t._streamLoaders).forEach(function(e){var i=t._streamLoaders[e];i&&i.destroy()}),t._streamLoaders={},t._loadingStreamsTotal=0},g.prototype._onStreamLoaded=function(t){if(t){var e=this._streamLoaders[t.url];if(e){if(this._state>=this.STATES.STREAM_METADATA_LOADED)return e.destroy(),delete this._streamLoaders[t.url],void this._model.synchStreamTimelines(t.type);t.type!==d.SUBTITLES&&this._loadedStreamCount++,this._loadedStreamCount>=this._loadingStreamsTotal&&(this._state=this.STATES.STREAM_METADATA_LOADED,this._model.synchStreamTimelines(),this.publish(v.STREAM_METADATA_LOADED)),e.destroy(),delete this._streamLoaders[t.url]}}},g.prototype._onStreamLoadError=function(t,e){t&&t.type===d.SUBTITLES||(this._state=this.STATES.ERROR,this.publish(v.STREAM_METADATA_LOAD_ERROR,e))},g.prototype.init=function(){var t=this;if(t._state!==t.STATES.ERROR&&t._state!==t.STATES.INITIALIZED){var e=t._model.getCurrentLoadingStream();if(e){t._loadedStreamCount=0;var i=t._createStreamer(e);i.addEventListener(n.PRELOAD_COMPLETE,t._onPreloadComplete,t),i.addEventListener(n.LIVE_SYNCH,t._onSynchBegin,t),t._streamers.MAIN=i,t._primaryStreamer=i,t._streamerCount++,Object.keys(e.altRenditionGroups).forEach(function(i){var n=e.getAlternateStream(i);if(n){var r=t._createStreamer(n);r&&(t._streamers[i]=r,t._streamerCount++)}}),t._setAltAudioActive(),t._switchStream(),t._state=t.STATES.INITIALIZED}}},g.prototype.isInitialized=function(){return this._state>=this.STATES.INITIALIZED},g.prototype._createStreamer=function(t){if(!t)return null;var e=r.create(this.__controller,t,this._model.live);return this._addStreamerEventListeners(e),e},g.prototype._destroyStreamers=function(){var t=this;Object.keys(t._streamers).forEach(function(e){t._streamers[e].destroy()}),t._streamers={},t._primaryStreamer=null},g.prototype._addStreamerEventListeners=function(t){var e=this;if(t){var i={};i[n.SEG_LOAD_START]=e._onSegLoadStart,i[n.SEG_LOAD_PROGRESS]=e._onSegLoadProgress,i[n.SEG_LOAD_COMPLETE]=e._onSegLoadComplete,i[n.SEG_LOAD_ERROR]=e._onSegLoadError,i[n.STREAM_LOAD_ERROR]=e._onStreamerStreamLoadError,i[n.STREAM_LOAD_COMPLETE]=e._onStreamerStreamLoadComplete,Object.keys(n).forEach(function(r){var o=n[r];t.addEventListener(o,i[o],e)})}},g.prototype._setAltAudioActive=function(){var t=this._streamers.AUDIO;this._primaryStreamer&&this._primaryStreamer.setAltAudioActive(t&&t.isActive())},g.prototype._callStreamers=function(){var t=this,e=Array.prototype.slice.call(arguments),i=e.shift(),n=t._primaryStreamer;n&&n[i]&&"function"==typeof n[i]&&n[i].apply(n,e),Object.keys(t._streamers).forEach(function(r){r!==d.MAIN&&(n=t._streamers[r])&&n[i]&&"function"==typeof n[i]&&n[i].apply(n,e)})},g.prototype.process=function(){this._callStreamers("process"),this._switchScenario=this._switchManager.SCENARIOS.LOAD},g.prototype.suspendStreaming=function(){this._callStreamers("suspendStreaming")},g.prototype.resumeStreaming=function(){this._callStreamers("resumeStreaming")},g.prototype.setABRMode=function(t){var e=this._model;e.setABRMode(t)&&e.getABRMode()!==m.AUTO&&(this._manualStreamChange=!0,this.__controller.sendMessage(y.MessageIds.PAUSE_BEFORE_STREAM_CHANGE,["video"],["streamType"]),this._switching=!1,this._switchStream(),this._callStreamers("onManualStreamChange"))},g.prototype.setAudioLanguage=function(t){var e=this._model;if(e.setAudioLanguage(t)){this._manualStreamChange=!0,this.__controller.sendMessage(y.MessageIds.PAUSE_BEFORE_STREAM_CHANGE,["audio"],["streamType"]);var i=d.AUDIO,n=e.getCurrentLoadingStream(),r=n?n.getAlternateStream(i):null,o=this._streamers[i];r&&o&&o.setCurrentStream(r),this._setAltAudioActive(),this._callStreamers("onManualStreamChange")}},g.prototype.getMetrics=function(){return this._metrics.getMetrics()},g.prototype.onPlay=function(t){this._loadMonitorTimer.start(),this._isAllStreamersReady()?(this._callStreamers("onPlay",t),this._paused=!1,this._manualStreamChange=!1):this._jobQueue.push([this,this.onPlay,[t]])},g.prototype.onPlaying=function(){this._callStreamers("onPlaying")},g.prototype.onPause=function(){this._loadMonitorTimer.stop(),this._callStreamers("onPause"),this._paused=!0},g.prototype.onSeeking=function(t){this._model.live||this._switchStream(),this._callStreamers("onSeeking",t)},g.prototype.onSeeked=function(t){this._callStreamers("onSeeked",t)},g.prototype.onComplete=function(){this._metrics.onComplete(),this._callStreamers("onComplete")},g.prototype.onError=function(){this._callStreamers("onError")},g.prototype.onTimeUpdate=function(t){this._callStreamers("onTimeUpdate",t),this._metrics.onTimeUpdate(t)},g.prototype.onSynchMetadataReady=function(t){this._switchStream(),this._callStreamers("onSynchMetadataReady",t)},g.prototype.onSynchComplete=function(){this._callStreamers("onSynchComplete")},g.prototype.onPreloadBegin=function(){this._callStreamers("onPreloadBegin")},g.prototype.onPreloadEnd=function(){this._callStreamers("onPreloadEnd")},g.prototype._onErrorSwitch=function(t){this._switching=!1,this._switchStream(this._switchManager.SCENARIOS.ERROR,{index:t})},g.prototype._onSwitchBegin=function(){var t=this,e=t._model.getCurrentLoadingStream();t._switching=!0,t._primaryStreamer.setCurrentStream(e),Object.keys(e.altRenditionGroups).forEach(function(i){var n=e.getAlternateStream(i);n&&t._streamers[i]&&t._streamers[i].setCurrentStream(n)}),t._setAltAudioActive()},g.prototype._onSwitchEnd=function(){this._switching=!1,this._callStreamers("onSwitchEnd")},g.prototype._onLoadMonitor=function(){var t=this._primaryStreamer?this._primaryStreamer.getSegLoadCommand():null;t&&this._switchStream(this._switchManager.SCENARIOS.MIDSEGMENT,{command:t,position:t.position})},g.prototype._setSegLoadMetrics=function(t,e,i,n,r){var o=this._model.getCurrentLoadingStream(),s=o?o.getSegmentfromSeqNum(e):null,a={bitrateIndex:o?o.index:0,frameRate:o?o.frameRate:30,bytesTotal:i};"firstByte"===t?(a.beginTime=s?s.startTime:NaN,a.switchReason="none",a.observedBitrate=this._services.bandwidthEstimator.averageBandwidth,a.timeToFirstByte=s?s.timeToFirstByte:NaN,a.endTime=s?s.startTime+s.duration:NaN,this._metrics.segmentLoadBegin(e,a)):"end"===t&&(a.perfInfo=r,a.timeToDownload=s?s.totalDownloadTime:NaN,a.segmentInWorker=!!n,this._metrics.segmentLoadEnd(e,a))},g.prototype._resetLoadMonitorTimer=function(){this._loadMonitorTimer.reset(),this._paused||this._errorHandler.running||this._loadMonitorTimer.start()},g.prototype._switchStream=function(t,e){if(t=t||this._switchScenario,!this._switching)if(t!==this._switchManager.SCENARIOS.MIDSEGMENT){var i=e?e.index:null;this._switchManager.switchStream(t,null,i)}else{var n=e?e.command:null,r=e?e.position:null;this._abortAndSwitchStream(t,n,r)}},g.prototype._abortAndSwitchStream=function(t,e,i){if("end"!==i&&(this._primaryStreamer&&this._primaryStreamer.canSwitch(t)&&this._switchManager.switchStream(t,"down"))){var n=this._primaryStreamer.abortCurrentSegment(e);n&&this._setSegLoadMetrics("end",n),this.process()}},g.prototype._onSegLoadStart=function(){this._resetLoadMonitorTimer()},g.prototype._onSegLoadProgress=function(t,e){if(this._isPrimaryStreamer(t)&&e){this.publish(v.SEG_LOAD_PROGRESS,e.bytesTotal),"firstByte"===e.position&&this._switchManager.switchComplete();var i=e.position,n=e.bytesTotal,r=e.inWorkerScope,o=e.perfInfo,s=e.seqNum;this._setSegLoadMetrics(i,s,n,r,o),this._resetLoadMonitorTimer()}},g.prototype._onSegLoadComplete=function(t){this._checkAndStopErrorHandling(),this._isPrimaryStreamer(t)&&this._switchStream()},g.prototype._onSegLoadError=function(t,e){this._isPrimaryStreamer(t)&&this._setSegLoadMetrics("end",e.seqNum),this._handleError(e.err,e.stream)},g.prototype._onStreamerStreamLoadComplete=function(t,e){if(this._checkAndStopErrorHandling(),this._isPrimaryStreamer(t)||this._model.synchStreamTimelines(t.type),this.__controller.sendEvent(f.STREAM_UPDATED,e),this._jobQueue.length>0&&this._flushJobQueue(),this._manualStreamChange){for(var i=0,n=Object.keys(this._streamers),r=0;r<this._streamerCount;r++)this._streamers[n[r]].isActive()&&i++;++this._loadedStreamCount>=i&&(this._loadedStreamCount=0,this.__controller.sendMessage(y.MessageIds.PLAY_AFTER_STREAM_CHANGE))}},g.prototype._onStreamerStreamLoadError=function(t,e){this._handleError(e.err,e.stream)},g.prototype._handleError=function(t,e){this._loadMonitorTimer.stop(),this._errorHandler.handle(t,e)},g.prototype._checkAndStopErrorHandling=function(){var t=this,e=!0;t._errorHandler.running&&(Object.keys(t._streamers).forEach(function(i){var n=t._streamers[i],r=n?n.getCurrentStream():null;r&&r.type!==d.SUBTITLES&&(e=e&&!n.isInError())}),e&&(t._errorHandler.onLoadComplete(),t._resetLoadMonitorTimer()))},g.prototype._onPreloadComplete=function(){this.onPreloadEnd(),this.publish(v.PRELOAD_COMPLETE)},g.prototype._onSynchBegin=function(t,e){this._isPrimaryStreamer(t)&&this.__controller.sendEvent(f.LIVE_SYNCH,e)},g.prototype._isPrimaryStreamer=function(t){return t&&t.type===d.MAIN},g.prototype._isAllStreamersReady=function(){var t=this;if(t._state!==t.STATES.INITIALIZED)return!1;var e=!0;return Object.keys(t._streamers).forEach(function(i){if(i!==d.SUBTITLES){var n=t._streamers[i];e=e&&(!n.isActive()||n.isStreamReady())}}),e},g.prototype._flushJobQueue=function(){var t=this._jobQueue;this._jobQueue=[],t.forEach(function(t){var e=t[0],i=t[1],n=t.length>2?t[2]:null;i&&"function"==typeof i&&i.apply(e,n)})},g.prototype.destroy=function(){this._destroyStreamers(),this._destroyStreamLoaders(),this._errorHandler&&(this._errorHandler.destroy(),this._errorHandler=null),this._commandManager&&(this._commandManager.destroy(),this._commandManager=null),this._switchManager&&(this._switchManager.destroy(),this._switchManager=null),this._loadMonitorTimer.destroy(),this._jobQueue=[],p.prototype.destroy.call(this)}},cK6b:function(t,e,i){!function(t){function e(t,e,i){var n;return e&&"object"==typeof e&&(void 0!==e[t]?n=e[t]:i&&e.get&&"function"==typeof e.get&&(n=e.get(t))),n}t.Template=function(t,e,i,n){t=t||{},this.r=t.code||this.r,this.c=i,this.options=n||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,i){return""},v:function(t){return t=u(t),a.test(t)?t.replace(i,"&amp;").replace(n,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(s,"&quot;"):t},t:u,render:function(t,e,i){return this.ri([t],e||{},i)},ri:function(t,e,i){return this.r(t,e,i)},ep:function(t,e){var i=this.partials[t],n=e[i.name];if(i.instance&&i.base==n)return i.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[t].base=n,i.subs){for(key in e.stackText||(e.stackText={}),i.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);n=function(t,e,i,n,r,o){function s(){}function a(){}var u;s.prototype=t,a.prototype=t.subs;var l=new s;for(u in l.subs=new a,l.subsText={},l.buf="",n=n||{},l.stackSubs=n,l.subsText=o,e)n[u]||(n[u]=e[u]);for(u in n)l.subs[u]=n[u];for(u in r=r||{},l.stackPartials=r,i)r[u]||(r[u]=i[u]);for(u in r)l.partials[u]=r[u];return l}(n,i.subs,i.partials,this.stackSubs,this.stackPartials,e.stackText)}return this.partials[t].instance=n,n},rp:function(t,e,i,n){var r=this.ep(t,i);return r?r.ri(e,i,n):""},rs:function(t,e,i){var n=t[t.length-1];if(l(n))for(var r=0;r<n.length;r++)t.push(n[r]),i(t,e,this),t.pop();else i(t,e,this)},s:function(t,e,i,n,r,o,s){var a;return(!l(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,i,n,r,o,s)),a=!!t,!n&&a&&e&&e.push("object"==typeof t?t:e[e.length-1]),a)},d:function(t,i,n,r){var o,s=t.split("."),a=this.f(s[0],i,n,r),u=this.options.modelGet,c=null;if("."===t&&l(i[i.length-2]))a=i[i.length-1];else for(var d=1;d<s.length;d++)void 0!==(o=e(s[d],a,u))?(c=a,a=o):a="";return!(r&&!a)&&(r||"function"!=typeof a||(i.push(c),a=this.mv(a,i,n),i.pop()),a)},f:function(t,i,n,r){for(var o=!1,s=!1,a=this.options.modelGet,u=i.length-1;u>=0;u--)if(void 0!==(o=e(t,i[u],a))){s=!0;break}return s?(r||"function"!=typeof o||(o=this.mv(o,i,n)),o):!r&&""},ls:function(t,e,i,n,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(u(t.call(e,n)),e,i)),this.options.delimiters=o,!1},ct:function(t,e,i){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,i)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,i,n,r,o,s){var a,u=e[e.length-1],l=t.call(u);return"function"==typeof l?!!n||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(l,u,i,a.substring(r,o),s)):l},mv:function(t,e,i){var n=e[e.length-1],r=t.call(n);return"function"==typeof r?this.ct(u(r.call(n)),n,i):r},sub:function(t,e,i,n){var r=this.subs[t];r&&(this.activeSub=t,r(e,i,this,n),this.activeSub=!1)}};var i=/&/g,n=/</g,r=/>/g,o=/\'/g,s=/\"/g,a=/[&<>\"\']/;function u(t){return String(null==t?"":t)}var l=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},cXla:function(t,e,i){(t.exports=i("I1BE")(!1)).push([t.i,".yvp-playlist-icon-wrapper{position:absolute;left:0;height:100%;width:24px;background:rgba(0,0,0,.7)}.yvp-playlist-icon-wrapper .yvp-playlist-icon.item{position:absolute;top:50%;margin-top:-7px;left:5px}.yvp-playlist-icon{display:inline-block;vertical-align:top;width:14px;height:14px}.yvp-playlist-icon.item{opacity:1;margin-right:5px}.yvp-playlist-item-watched{display:none;width:126px;top:0;position:absolute;height:70px;text-align:center;vertical-align:center;background:rgba(18,23,23,.75)}.yvp-playlist-item-watched.yvp-show{display:block}.yvp-playlist-item-watched.yvp-hide{display:none}.yvp-watched{font-size:11px;overflow:hidden;color:#9ea2af;font-style:italic;font-family:Helvetica Neue,Helvetica,helvetica,arial,sans-serif;line-height:16px;white-space:normal;text-overflow:ellipsis;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}",""])},caRl:function(t,e,i){"use strict";t.exports=n;function n(){}n.prototype.initSegment=function(t,e){var i=this.ftyp(e),n=this.moov(t),r=new Uint8Array(i.byteLength+n.byteLength);return r.set(i),r.set(n,i.byteLength),r},n.prototype.ftyp=function(t){t=t||"avc1";var e=new Uint8Array([105,115,111,109]),i=new Uint8Array([0,0,0,1]),n=new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);return this._box("ftyp",[e,i,n])},n.prototype.moov=function(t){var e=[];e.push(this._mvhd(t[0].config.duration,t[0].config.timescale));for(var i=0;i<t.length;i++)e.push(this._trak(t[i]));return e.push(this._mvex(t)),this._box("moov",e)},n.prototype.moof=function(t,e){var i=[];i.push(this._mfhd(t));for(var n=0;n<e.length;n++){var r=this._traf(e[n]);i.push(r)}return this._box("moof",i)},n.prototype.mdat=function(t){var e=[];if(t&&t.frames)for(var i=0;i<t.frames.length;i++)e.push(t.frames[i].data);return this._box("mdat",e)},n.prototype._mfhd=function(t){var e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,t),this._fullBox("mfhd",0,new Uint8Array(3),[e])},n.prototype._traf=function(t){if(t){var e,i,n=[],r=32,o=this._tfhd(t);return r+=o.length,n.push(o),t.frames&&t.frames.length&&(r+=(e=this._tfdt(t.frames[0].dts)).length,n.push(e)),"video"===t.type&&(r+=(i=this._sdtp(t)).length),n.push(this._trun(t,r)),i&&n.push(i),this._box("traf",n)}},n.prototype._tfhd=function(t){var e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,t.streamId),this._fullBox("tfhd",0,new Uint8Array([0,0,0]),[e])},n.prototype._tfdt=function(t){var e=new Uint8Array(4);return new DataView(e.buffer).setUint32(0,Math.max(0,t)),this._fullBox("tfdt",0,new Uint8Array([0,0,0]),[e])},n.prototype._trun=function(t,e){var i=t.frames||[],n=i.length,r=this._getTrunFlags(i),o=0,s=r[1],a=0;for(a=0;a<4;a++)o+=s&1<<a?1:0;var u=new Uint8Array(4*o*n),l=new DataView(u.buffer);e+=20+u.length+8;var c=this._getTrunHeader(n,e),d=0;for(a=0;a<n;a++){var h=i[a];if(1&s&&(l.setUint32(d,h.duration),d+=4),2&s&&(l.setUint32(d,h.size),d+=4),4&s){var p=(h.flags.isLeading<<2|h.flags.dependsOn)<<24|(h.flags.isDependedOn<<6|h.flags.hasRedundancy<<4|h.flags.paddingValue<<1|h.flags.isNonSyncSample)<<16|(240&h.flags.degradationPriority)<<8|15&h.flags.degradationPriority;l.setUint32(d,p),d+=4}8&s&&(l.setUint32(d,h.pts-h.dts),d+=4)}return this._fullBox("trun",0,r,[c,u])},n.prototype._sdtp=function(t){for(var e=t.frames||[],i=e.length,n=new Uint8Array(i),r=0;r<i;r++){var o=e[r];o.flags&&(n[r]=o.flags.isLeading<<6|o.flags.dependsOn<<4|o.flags.isDependedOn<<2|o.flags.hasRedundancy)}return this._fullBox("sdtp",0,new Uint8Array(3),[n])},n.prototype._getTrunHeader=function(t,e){var i=new Uint8Array(8),n=new DataView(i.buffer);return n.setUint32(0,t),n.setInt32(4,e),i},n.prototype._getTrunFlags=function(t){var e=t.length,i=new Uint8Array(3);return i[2]=1,e&&(void 0!==t[0].duration&&(i[1]|=1),void 0!==t[0].size&&(i[1]|=2),void 0!==t[0].flags&&(i[1]|=4),void 0!==t[0].pts&&(i[1]|=8)),i},n.prototype._mvhd=function(t,e){var i=new Uint8Array(96),n=new DataView(i.buffer);n.setUint32(0,1),n.setUint32(4,2);var r=e||9e4;return n.setUint32(8,r),t&&n.setUint32(12,t),n.setUint32(16,65536),n.setUint16(20,256),n.setUint32(32,65536),n.setUint32(48,65536),n.setUint32(64,1073741824),n.setUint32(92,4294967295),this._fullBox("mvhd",0,new Uint8Array(3),[i])},n.prototype._trak=function(t){t.config.duration=t.config.duration||4294967295;var e=[this._tkhd(t)];return t.config.useEditBox&&e.push(this._edts(t)),e.push(this._mdia(t)),this._box("trak",e)},n.prototype._tkhd=function(t){var e=new Uint8Array(80),i=new DataView(e.buffer);return i.setUint32(8,t.streamId),i.setUint32(16,t.config.duration),i.setUint8(32,"audio"===t.type?1:0),i.setUint32(36,65536),i.setUint32(52,65536),i.setUint32(68,1073741824),i.setUint16(72,t.config.width),i.setUint16(76,t.config.height),this._fullBox("tkhd",0,new Uint8Array([0,0,7]),[e])},n.prototype._edts=function(t){return this._box("edts",[this._elst(t)])},n.prototype._elst=function(t){var e=new Uint8Array(16),i=new DataView(e.buffer);return i.setUint32(0,1),i.setUint32(4,0),i.setUint32(8,t.config.offset),i.setUint16(12,1),i.setUint16(14,0),this._fullBox("elst",0,new Uint8Array(3),[e])},n.prototype._mdia=function(t){return this._box("mdia",[this._mdhd(t),this._hdlr(t.type),this._minf(t)])},n.prototype._mdhd=function(t){var e=new Uint8Array(20),i=new DataView(e.buffer);i.setUint32(0,2),i.setUint32(4,3);var n=t.config.timescale||9e4;return i.setUint32(8,n),i.setUint32(12,t.config.duration),i.setUint16(16,21956),this._fullBox("mdhd",0,new Uint8Array(3),[e])},n.prototype._hdlr=function(t){var e={video:1986618469,audio:1936684398,hint:1751740020},i=new Uint8Array(32),n=new DataView(i.buffer);return n.setUint32(4,e[t]),n.setUint32(20,e[t]),n.setUint32(24,1214344804),n.setUint32(28,1818587648),this._fullBox("hdlr",0,new Uint8Array(3),[i])},n.prototype._minf=function(t){var e="audio"===t.type?this._smhd():this._vmhd();return this._box("minf",[e,this._dinf(),this._stbl(t)])},n.prototype._vmhd=function(){var t=new Uint8Array(8);return this._fullBox("vmhd",0,new Uint8Array([0,0,1]),[t])},n.prototype._smhd=function(){var t=new Uint8Array(4);return this._fullBox("smhd",0,new Uint8Array(3),[t])},n.prototype._dinf=function(){return this._box("dinf",[this._dref()])},n.prototype._dref=function(){var t=new Uint8Array([0,0,0,1]),e=[];return e.push(t),e.push(this._url(new Uint8Array([0,0,1]))),this._fullBox("dref",0,new Uint8Array(3),e)},n.prototype._url=function(t){return this._fullBox("url ",0,t,[])},n.prototype._urn=function(t){return this._fullBox("urn ",0,t,[])},n.prototype._stbl=function(t){return this._box("stbl",[this._stsd(t),this._stts(),this._stsc(),this._stsz(),this._stco()])},n.prototype._stsd=function(t){var e="audio"===t.type?this._audioSample(t):this._videoSample(t),i=new Uint8Array([0,0,0,1]);return this._fullBox("stsd",0,new Uint8Array(3),[i,e])},n.prototype._videoSample=function(t){var e=[];e.push((65280&t.config.ppsLength)>>>8),e.push(255&t.config.ppsLength);try{t.config.ppsLength>0&&(e=e.concat(Array.prototype.slice.call(t.config.pps)))}catch(t){}var i=[];i.push((65280&t.config.spsLength)>>>8),i.push(255&t.config.spsLength);try{t.config.spsLength>0&&(i=i.concat(Array.prototype.slice.call(t.config.sps)))}catch(t){}var n=new Uint8Array(78),r=new DataView(n.buffer);return r.setUint16(6,1),r.setUint16(24,t.config.width),r.setUint16(26,t.config.height),r.setUint32(28,4718592),r.setUint32(32,4718592),r.setUint16(40,1),r.setUint32(42,259613032),r.setUint32(46,1869557110),r.setUint32(50,1768187247),r.setUint32(54,761818227),r.setUint16(74,24),r.setUint16(76,65535),this._box("avc1",[n,this._box("avcC",[new Uint8Array([1,t.config.profileIndication,t.config.profileCompatibility,t.config.levelIndication,255].concat([255&t.config.numOfSPS|224]).concat(i).concat([255&t.config.numOfPPS]).concat(e))]),this._btrt()])},n.prototype._btrt=function(){var t=new Uint8Array(12);return new DataView(t.buffer).setUint32(0,1875072),this._box("btrt",[t])},n.prototype._audioSample=function(t){var e=new Uint8Array(8),i=new DataView(e.buffer);i.setUint16(6,1);var n=new Uint8Array(20);return(i=new DataView(n.buffer)).setUint16(8,t.config.channels),i.setUint16(10,t.config.sampleSize),i.setUint16(16,t.config.samplingFreq),this._box("mp4a",[e,n,this._esds(t)])},n.prototype._esds=function(t){var e=new Uint8Array(27),i=new DataView(e.buffer);return i.setUint8(0,3),i.setUint8(1,25),i.setUint8(5,4),i.setUint8(6,17),i.setUint8(7,64),i.setUint8(8,21),i.setUint16(10,1536),i.setUint8(20,5),i.setUint8(21,2),i.setUint8(22,t.config.audioObjectTypeIndex<<3|t.config.samplingFreqIndex>>>1),i.setUint8(23,t.config.samplingFreqIndex<<7|t.config.channels<<3),i.setUint8(24,6),i.setUint8(25,1),i.setUint8(26,2),this._fullBox("esds",0,new Uint8Array(3),[e])},n.prototype._stts=function(){var t=new Uint8Array(4);return this._fullBox("stts",0,new Uint8Array(3),[t])},n.prototype._stsc=function(){var t=new Uint8Array(4);return this._fullBox("stsc",0,new Uint8Array(3),[t])},n.prototype._stsz=function(){var t=new Uint8Array(8);return this._fullBox("stsz",0,new Uint8Array(3),[t])},n.prototype._stco=function(){var t=new Uint8Array(4);return this._fullBox("stco",0,new Uint8Array(3),[t])},n.prototype._mvex=function(t){for(var e=[],i=0;i<t.length;i++)e.push(this._trex(t[i]));return this._box("mvex",e)},n.prototype._trex=function(t){var e=new Uint8Array(20),i=new DataView(e.buffer);return i.setUint32(0,t.streamId),i.setUint32(4,1),i.setUint32(16,65537),"video"!==t.type&&(e[e.length-1]=0),this._fullBox("trex",0,new Uint8Array(3),[e])},n.prototype._fullBox=function(t,e,i,n){var r=new Uint8Array(1);r[0]=e;var o=[r,i];return o=o.concat(n),this._box(t,o)},n.prototype._box=function(t,e){var i=0,n=new Uint8Array([t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]),r=0,o=0;for(o=0;o<e.length;o++)r+=e[o].length;var s=new Uint8Array(r+8);for(new DataView(s.buffer,s.byteOffset,s.byteLength).setUint32(0,s.byteLength),s.set(n,4),i=8,o=0;o<e.length;o++)s.set(e[o],i),i+=e[o].length;return s}},canP:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("WSjl"),r=i("+Ojf"),o=function(){function t(){this.mute=!1,this.volume=.5,this.ad=null,this.state=n.States.INIT,this.paused=!1,this.seeking=!1,this.loading=!0,this.criticalError=null,this.previousItem=null,this.looped=!1,this.loadedItem=null,this.loadedAdBreakItem=null,this.rendererType=null,this.hasStartedPlayback=!1,this.hasCurrentItemPlayed=!1,this.hasRendererPlayCalled=!1,this._currentMediaType="",this.shouldPlay=!0}return Object.defineProperty(t.prototype,"playingItem",{get:function(){return this._playableItem},set:function(t){this._playableItem=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._currentTime},set:function(t){this._currentTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentRawTime",{get:function(){return this._currentRawTime},set:function(t){this._currentRawTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},set:function(t){this._duration=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"playbackMode",{get:function(){return r.default.getPlaybackMode(this._playableItem)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentMediaType",{get:function(){return this._currentMediaType},set:function(t){this._currentMediaType=t},enumerable:!0,configurable:!0}),t.prototype.attemptingPlayback=function(){return this.isVideoPlaying()||this.state===n.States.WAITING},t.prototype.isVideoPlaying=function(){return this.videoSet()&&!this.paused},t.prototype.videoSet=function(){return this.state===n.States.VIDEO},t.prototype.isOnCriticalError=function(){return!(this.state!==n.States.END||!this.criticalError)},t.prototype.isInitializing=function(){return this.state===n.States.INIT||this.state===n.States.WAITING},t.prototype.videoLoading=function(){return this.videoSet()&&this.loading},t.prototype.isAdPlaying=function(){return!(!this.videoSet()||!this.ad)},t}();e.default=o},"d/ck":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=function(t){return Array.isArray(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},e.isString=function(t){return"string"==typeof t},e.isObject=function(t){return"[object Object]"===(e=t,Object.prototype.toString.call(e));var e},e.isFunction=function(t){return"function"==typeof t},e.isNonEmptyString=function(t){return"string"==typeof t&&""!==t}},d6Mc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.PAUSED="paused",t.PLAYING="playing",t.WAITING="waiting"}(e.PlayerState||(e.PlayerState={})),function(t){t.NONE="none",t.AIRPLAY="airplay",t.CHROMECAST="chromecast",t.HDMI="hdmi"}(e.CastDeviceType||(e.CastDeviceType={})),function(t){t.NOT_CONNECTED="not-connected",t.CONNECTING="connecting",t.CONNECTED="connected"}(e.CastConnectionState||(e.CastConnectionState={}))},dK7O:function(t,e,i){"use strict";t.exports=l;var n=i("/iNa"),r=i("yvII").Events,o=i("2fkz"),s=o.Command,a=o.CmdNames,u=o.CmdEvents;function l(t,e){if(!(t&&t.stream&&t.stream.url&&t.controller))throw new Error("Invalid argument: data argument of the command is not complete");s.call(this,t,e),this.name=a.CMD_STREAM_LOAD,this._loader=t.controller.services.getNewLoader(t.retryOpts,t.stream.url)}n.inherits(l,s),l.prototype.destroy=function(){this._loader.destroy(),s.prototype.destroy.call(this)},l.prototype.execute=function(){var t=this,e=t.data.stream.url;t._loader.addEventListener(r.COMPLETE,function(i){t.publish(u.CMD_COMPLETE,t,{data:i.data,headers:i.headers,streamUrl:e,stream:t.data.stream})},t),t._loader.addEventListener(r.ERROR,function(e){t.publish(u.CMD_ERROR,t,e)},t),t._loader.load(e)},l.prototype.cancel=function(){}},dgSz:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("8PPl"),s=i("v5jO"),a=i("fLR+"),u=i("+Ojf"),l=i("oYNg"),c=i("u8By"),d=i("UDn2"),h=i("YMIh"),p=i("heKF"),f=i("lYNO"),_=i("Mkxr"),m=i("Ru0y"),y=i("pBvk").Validator,v={id:"",mimetype:d.MediaItemMimeType.UPLYNK,metadata:{description:"",duration:0,title:"",thumbnail:"",type:d.MediaItemType.VOD,videoTypes:[]},source:{},customConfig:null,adConfig:null,useVrmAds:!1},g=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.state=d.ItemState.NO_DATA,o.sourceState=d.SourceState.NO_DATA,o.recoveryStatus=d.ItemRecoveryStatus.NOT_RECOVERING,o.tryCount=1,o.failoverCount=0,o.isCCAvailable=!1,o.languages=[],o.altStreams=[],o.streamProfiles=[],o.blockAutoplay=!1,o.adBreaks=[],o.useVrmAds=!1,o._position=0,o._streams=[],o._rawDuration=NaN,o.build(e,i,n,r),o}return r(e,t),e.createKey=function(t,e){return t+"#"+e},e.normalizeKey=function(t){t.id||(t.id=u.default.generateGuid()),t.mimetype||(t.mimetype=d.MediaItemMimeType.CONTAINER)},Object.defineProperty(e.prototype,"key",{get:function(){return this._key},enumerable:!0,configurable:!0}),e.prototype.hasStreams=function(){return 0!==this._streams.length},e.prototype.equals=function(t){return!!t&&this.key===t.key},e.prototype.getPlayableItemType=function(){return h.PlayableItemType.MEDIA_ITEM},e.prototype.getDuration=function(){return this.duration},e.prototype.setDuration=function(t){this.duration=t},e.prototype.isRecovering=function(){return this.recoveryStatus===d.ItemRecoveryStatus.RECOVERING},e.prototype.isConsistentMetadata=function(){return!this.hasLiveStreams()||!this.hasLiveStateForVod()},e.prototype.getStreamType=function(){return this.metadata&&this.metadata.type||d.MediaItemType.VOD},e.prototype.isLive=function(){return!!this.hasLiveStreams()},e.prototype.is360Video=function(){var t=this.metadata?this.metadata.videoTypes:null;return!(!t||!t.length)&&-1!==t.indexOf(o.VIDEO_TYPE.THREE_SIXTY)},e.prototype.build=function(t,e,i,n){t&&(this._adRendererTypes=i,this._capabilities=n,this._rawItemData=u.default.deepCopy(t),this._configure(t),t.source&&t.source.streams&&this._buildStreams(t.source.streams,e,n),t.adBreaks&&this._buildAdBreaks(t.adBreaks,i,n))},e.prototype.hasNativeAd=function(){return!!this.isContainer()&&!(!this.adBreaks||!this.adBreaks.length||this.adBreaks[0].type!==c.AdBreakType.NATIVE)},e.prototype.isContainer=function(){return this.metadata&&this.metadata.type===d.MediaItemType.CONTAINER},e.prototype.getRawDuration=function(){return this._rawDuration},e.prototype.setRawDuration=function(t){this._rawDuration=t},Object.defineProperty(e.prototype,"rawItemData",{get:function(){return this._rawItemData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.metadata?this.metadata.description:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.metadata&&a.isNumber(this.metadata.duration)?this.metadata.duration:NaN},set:function(t){this.metadata&&(this.metadata.duration=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.metadata?this.metadata.title:void 0},set:function(t){this.metadata&&(this.metadata.title=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"posterUrl",{get:function(){return this.metadata?this.metadata.posterUrl:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbnail",{get:function(){return this.metadata?this.metadata.thumbnail:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(t){this._position=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"refPlaybackId",{get:function(){return this._key+"#"+this.videoSession},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"samplingId",{get:function(){return this._samplingId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"streams",{get:function(){return this._streams},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualSeekData",{get:function(){return this._visualSeekData},set:function(t){this._visualSeekData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brandingData",{get:function(){return this._brandingData},set:function(t){this._brandingData=t},enumerable:!0,configurable:!0}),e.prototype.updateAdBreak=function(t,e,i){var n=this,r=null;return this.adBreaks.forEach(function(o,s){t.adBreakId===o.adBreakId&&(r=new l.default(n,t,e,i),n.adBreaks[s]=r)}),r},e.prototype.removeAdBreaks=function(t){var e=this;if(Array.isArray(t)){t.forEach(function(t){var i,n,r=(i=t.adBreakId,e.adBreaks.some(function(t,e){return t.adBreakId===i?(n=e,!0):(n=-1,!1)}),n);-1!==r&&e.adBreaks.splice(r,1)})}},e.prototype.addAdBreaks=function(t){var e=this;if(Array.isArray(t)){t.forEach(function(t){if(n=t.adBreakId,!e.adBreaks.some(function(t){return t.adBreakId===n})){var i=new l.default(e,t,e._adRendererTypes,e._capabilities);e.adBreaks.push(i)}var n})}},e.prototype.getRecoveryStatusForBeacon=function(){var t=this.recoveryStatus===d.ItemRecoveryStatus.RECOVERED;return t&&(this.recoveryStatus=d.ItemRecoveryStatus.NOT_RECOVERING),t},e.prototype.fetchFinished=function(){return this.state===d.ItemState.HAS_DATA||this.state===d.ItemState.ERROR},e.prototype.isLongForm=function(){return!(!this.metadata||!this.metadata.duration)&&this.metadata.duration>600},e.prototype.restartIfNeeded=function(){this.position+10>this.duration&&(this.position=0)},e.prototype.getCDN=function(){return this._streams.length>0?this._streams[0].cdn:null},e.prototype.hasLiveStreams=function(){for(var t=0,e=this._streams;t<e.length;t++){if(e[t].live)return!0}return!1},e.prototype.hasLiveStateForVod=function(){return!1},e.prototype.hasThumbnail=function(){var t=this.metadata&&this.metadata.thumbnail;return void 0!==t&&t.length>0},e.prototype.generateVSid=function(){for(var t=[],e="abcdefghijklmnopqrstuvwxyz123456789",i=0;i<8;i++)t.push(e.charAt(Math.floor(Math.random()*e.length)));return t.join("")},e.prototype.generateSamplingId=function(){return Math.floor(10*Math.random())},e.prototype.getType=function(){return this.hasStreams()?this._streams[0].getType():"none"},e.prototype.getStreamProtocol=function(){return this.hasStreams()?this._streams[0].streamProtocol:"none"},e.prototype.getSubtitleStreams=function(){return this.altStreams.filter(function(t){return"SUBTITLES"===t.type})},e.prototype.mayUpdateVideoSession=function(){this._isNewVideoSession||this._initNewVideoSession()},e.prototype.useVideoSession=function(){this._isNewVideoSession=!1},e.prototype.setCCAvailability=function(t){a.isBoolean(t)&&(this.isCCAvailable=t)},e.prototype.setMultiLanguages=function(t){this.languages=t},e.prototype.getMultiLanguages=function(){return this.languages},e.prototype.setCurrLanguage=function(t){if(this.languages&&this.languages.length)for(var e=0,i=this.languages;e<i.length;e++){var n=i[e];n.name===t?(this._currentLang=n,n.selected=!0):n.selected=!1}},e.prototype.getCurrLanguage=function(){return this._currentLang},e.prototype.getCurrentAudioLanguage=function(){if(!this.isMultiAudioAvailable())return null;var t=this.languages||[];return(t=t.filter(function(t){return!!t.selected})).length?t[0].name:null},e.prototype.isMultiAudioAvailable=function(){return Array.isArray(this.languages)&&this.languages.length>=2},e.prototype.updateVideoSession=function(){this.videoSession=this.generateVSid(),this._isNewVideoSession=!0,this._samplingId=this.generateSamplingId()},e.prototype.getAspectRatio=function(){return this._streams.length>0?this._streams[0].aspectRatio:null},e.prototype._buildAdBreaks=function(t,e,i){var n=this;this.adBreaks=t.map(function(t){return new l.default(n,t,e,i)})},e.prototype._configure=function(t){this._validateConfig(t);var i=u.default.deepCopy(t);i=u.default.mergeObjects(i,v),u.default.mergeObjects(this,i,!0),this._key=e.createKey(this.id,this.mimetype)},e.prototype._validateConfig=function(t){try{var e=new y;e.addSchema(_.streamSchema,"/streamSchema"),e.addSchema(f.sourceSchema,"/sourceSchema"),e.validate(t,p.mediaItemSchema,{throwError:!0})}catch(t){var i="Invalid media item config: "+t.property+" "+t.message;throw new Error(i)}},e.prototype._buildStreams=function(t,e,i){var n=this;if(t&&t.length){this._streams=[];for(var r=t.map(function(t){return t.hasOwnProperty("live")||(t.live=n.metadata&&(n.metadata.type===d.MediaItemType.LIVE_CHANNEL||n.metadata.type===d.MediaItemType.LIVE_EVENT)),new m.default(t)}),o=0,a=e;o<a.length;o++){var u=a[o],l=i[u];if(!(this.is360Video()&&!l.is360Renderer||!this.is360Video()&&l.is360Renderer)){var c=s.default.findAcceptedStreams(r,l);if(0!==c.length){this.rendererType=u,this._streams=c;break}}}this._streams.length>0&&this._streams.sort(function(t,e){return t.videoMetadata.bitrate-e.videoMetadata.bitrate})}},e.prototype._initNewVideoSession=function(){this.updateVideoSession(),this._resetSourceState()},e.prototype._resetSourceState=function(){this.setSourceState(d.SourceState.NO_DATA)},e}(h.PlayableItem);e.default=g},ds4h:function(t,e,i){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"e/9d":function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-ccsettings-listitem' data-item-type='"),n.b(n.v(n.f("itemContent",t,e,0))),n.b("' >"),n.b("\n"+i),n.b("    <div class='vp-ccsettings-checkmark'></div>"),n.b("\n"+i),n.b("    <div class='vp-ccsettings-item' tabindex='0'>"),n.b(n.v(n.f("itemContent",t,e,0))),n.b("</div>"),n.b("\n"+i),n.s(n.f("valueRequired",t,e,1),t,e,0,212,290,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("    <div class='vp-ccsettings-value' tabindex='0'>"),n.b(n.v(n.f("valueContent",t,e,0))),n.b("</div>"),n.b("\n"+i)}),t.pop()),n.s(n.f("caratRequired",t,e,1),t,e,0,331,391,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("    <div class='vp-ccsettings-caret-icon right'></div>"),n.b("\n"+i)}),t.pop()),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},eU8N:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._canvas=document.createElement("canvas"),this._ctx=this._canvas.getContext("2d"),this._canvas.setAttribute("width","80"),this._canvas.setAttribute("height","80"),this._canvas.classList.add("vp-360-pie"),t.appendChild(this._canvas),this._movement=1}return t.prototype.render=function(){this._draw()},t.prototype.addClickListener=function(t){this._onClick=function(e){e.preventDefault(),e.stopPropagation(),t&&t()},this._doNothing=function(t){t.preventDefault(),t.stopPropagation()},this._canvas.addEventListener("click",this._onClick,!1),this._canvas.addEventListener("mousedown",this._doNothing,!1),this._canvas.addEventListener("mouseup",this._doNothing,!1)},t.prototype.update=function(t){var e=t%360;e<0&&(e=360+e),e*=-1,this._movement=e/90+Math.PI/4-3.79,this._draw()},t.prototype.destroy=function(){this._canvas.removeEventListener("click",this._onClick,!1),this._canvas.removeEventListener("mousedown",this._doNothing,!1),this._canvas.removeEventListener("mouseup",this._doNothing,!1),this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},t.prototype._draw=function(){var t=this._ctx;if(t){t.clearRect(0,0,80,80),t.beginPath(),t.arc(40,40,28,0,2*Math.PI),t.shadowColor="rgba(18, 23, 23, 0.5)",t.shadowBlur=10,t.lineWidth=4,t.strokeStyle="#fff",t.stroke(),t.beginPath(),t.arc(40,3,2,0,2*Math.PI),t.fillStyle="#fff",t.fill();var e=-.5*Math.PI*this._movement;t.beginPath(),t.arc(40,40,28,Math.PI/4+e,-Math.PI/4+e,!0),t.lineTo(40,40),t.fillStyle="rgba(255, 255, 255, 0.6)",t.fill()}},t}();e.default=n},eapS:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uiSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/uiSchema",type:"object",properties:{ccOnMute:{type:"boolean"},chromeless:{type:"boolean"},docking:{type:"object",properties:{enableOnMuted:{type:"boolean"},enableOnScrollDown:{type:"boolean"},enableOnScrollUp:{type:"boolean"},fadeInAnimation:{type:"boolean"},closeButtonFadeIn:{type:"boolean"},height:{type:"number"},position:{type:"object",properties:{bottom:{type:"number"},left:{type:"number"},right:{type:"number"},top:{type:"number"}}},showInfoCard:{type:"boolean"},threshold:{type:"number"},width:{type:"number"}}},endScreen:{type:"object",properties:{show:{type:"boolean"}}},playlist:{type:"object",properties:{inStream:{type:"boolean"},show:{type:"boolean"},position:{type:"string",enum:["right","bottom","hidden"]},theme:{type:"string",enum:["dark","light"]}}},showControls:{type:"boolean"},showFullscreenButton:{type:"boolean"},startScreen:{type:"object",properties:{show:{type:"boolean"},showButton:{type:"boolean"},showDescription:{type:"boolean"},showProvider:{type:"boolean"},showTitle:{type:"boolean"}}},seekControls:{type:"object",properties:{show:{type:"boolean"},offset:{type:"number",maximum:99,minimum:0}}},title:{type:"object",properties:{showOnHover:{type:"boolean"},showOnStart:{type:"string"}}}}}},ecni:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=function(){function t(){this.name="SapiVisualSeek",this.version="8.1.170",this.type=n.Plugin.PluginType.VISUAL_SEEK,this.visualSeekType=n.Plugin.VisualSeekType.SPRITE,this.mimetype="visualseek/sapi",this._visualSeekMetadataMap={}}return t.prototype.prepare=function(){},t.prototype.destroy=function(){this._visualSeekMetadataMap={}},t.prototype.canSeek=function(t){return t&&!(!this._visualSeekMetadataMap[t]||!this._visualSeekMetadataMap[t].visualSeek)||!1},t.prototype.update=function(t,e){var i=this._visualSeekMetadataMap[t]||{};i.visualSeek=e&&e.visualSeek||i.visualSeek,this._visualSeekMetadataMap[t]=i},t.prototype.getThumbnailData=function(t,e){var i=this._visualSeekMetadataMap[t]&&this._visualSeekMetadataMap[t].visualSeek;if(!(i&&i.width&&i.height&&i.frequency&&i.images))return null;var n=Math.ceil(Math.floor(e)/i.frequency),r=this._getThumbnailUrl(i.images,n);return r?{index:n,isAd:!1,url:r,width:i.width,height:i.height}:null},t.prototype._getThumbnailUrl=function(t,e){for(var i=0,n=t;i<n.length;i++){var r=n[i],o=r.start_index,s=r.count,a=r.url;if(o<=e&&e-o<s)return a}return null},t}();e.default=r},eeAi:function(t,e,i){"use strict";t.exports.Fmp4SubtitleStreamer=l,t.exports.Fmp4SubtitleLiveStreamer=c;var n=i("/iNa"),r=i("rdAy").Fmp4Streamer,o=i("rdAy").Fmp4LiveStreamer,s=i("STAJ"),a=i("9nRl"),u=i("y5bh").HLSEvent;function l(t){r.call(this,t),this._init()}function c(t){o.call(this,t),this._init()}n.inherits(l,r),n.inherits(c,o),l.prototype.destroy=function(){this._mp4Parser=null,this._data="",r.prototype.destroy.call(this)},c.prototype.destroy=function(){this._mp4Parser=null,this._data="",o.prototype.destroy.call(this)},c.prototype._init=l.prototype._init=function(){this._trackType="subtitle",this._mp4Parser=new s,this._insertVttHeader()},c.prototype._beforeLoadSegment=l.prototype._beforeLoadSegment=function(t){this._insertVttHeader(),r.prototype._beforeLoadSegment.call(this,t)},c.prototype.onSegmentLoadProgress=l.prototype.onSegmentLoadProgress=function(t,e){var i=this,n=i._currentStream;if(e&&n&&n.timescale){var r=e.stream;if((!r||n.equals(r))&&"firstByte"!==e.position){var o=i._mp4Parser.extractVttCaptions(e.data);if(o.length){var s=i._mp4Parser.parse(e.data,"trun"),a=s?s.sampleData:[];if(a.length===o.length){var u=i._mp4Parser.parse(e.data,"tfdt"),l=u?u.baseMediaDecodeTime:0,c=l=1e3*l/n.timescale;o.forEach(function(t,e){var r=a[e],o=r?1e3*r.sampleDuration/n.timescale:0;if(t.cueText){var s=i._toMillisec(t.cueTime)+l,u=null!==s?s+o:c+o;i._data+="\n"+i._toDateTime(s)+" --\x3e "+i._toDateTime(u),i._data+="\n"+t.cueText+"\n"}c+=o}),i._data+="\n"}}}}},c.prototype.onSegmentLoadComplete=l.prototype.onSegmentLoadComplete=function(t,e){var i=this._currentStream;if(i){var n=i.getSegmentfromSeqNum(this._seqNum);n&&this.__controller.sendEvent(u.VTT_SEGMENT_LOADED,this._dto(n))}this._super.onSegmentLoadComplete.call(this,t,e),this._data=""},c.prototype._insertVttHeader=l.prototype._insertVttHeader=function(){this._data="WEBVTT\nX-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:0\n\n"},c.prototype._toMillisec=l.prototype._toMillisec=function(t){var e=null;if(!t)return e;var i=t.split(":");if(i&&i.length>=3){var n=i[2].split("."),r=0,o=0;n&&n.length>=2&&(r=parseInt(n[0]),o=parseInt(n[1])),e=1e3*(3600*i[0]+60*i[1]+r)+o}return e},c.prototype._toDateTime=l.prototype._toDateTime=function(t){var e="";if(a.isNullOrUndefined(t))return e;function i(t){return t<10?"0"+t:""+t}var n=Math.floor(t/1e3),r=Math.floor(t-1e3*n),o=Math.floor(n/3600);n-=3600*o;var s,u=Math.floor(n/60);return n-=60*u,e=i(o)+":"+i(u)+":"+i(n)+"."+((s=r)<10?"00"+s:s<100?"0"+s:""+s)},c.prototype._dto=l.prototype._dto=function(t){var e={};return t&&(e.discontinuity=t.discontinuity,e.sequenceNum=t.seqNum,e.startTime=t.startTime,e.programDateTime=t.programDateTime,e.url=t.url,e.duration=t.duration,e.clockReference=0,e.localCueTime=0,e.mpegTSTime=0,e.data=this._data,e.offset=0,e.adjustedTime=0),e},c.prototype._printLoadMessage=l.prototype._printLoadMessage=function(){},c.prototype._sendInitSegment=l.prototype._sendInitSegment=function(t){this._currentStream.activeInitSegment=t},c.prototype._addDrmItem=l.prototype._addDrmItem=function(){}},ek6g:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("ToqN"),s=i("O/dN"),a=i("oIMU"),u=i("+Ojf"),l=i("GX4R"),c=i("mczr"),d=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r._eventBus=i,r._model=n,r.type=e.type,r._logger=console,r.seeking=!1,r.ended=!1,r._isSwitching=!1,r._currentSrcFormat="",r._currentStream=null,r._lastUpdatedTime=0,r._retryCount=0,r._retryStreams=[],r._retryState=null,r._seeked=!1,r.currentPlayTime=0,r.error=!1,r.setCCPrefs(),r}return r(e,t),e.canUse=function(){return!!o.userAgent.tv&&!!o.userAgent.orsay},e.prototype.create=function(t){var e=document.getElementById("sefplayer");return this.node=e||this._createNode(),this.node.style.display="inline-block",this.node},e.prototype.detachNode=function(){this._unbindAndStop()},e.prototype.seek=function(t){try{var e=Math.round(t-this.currentPlayTime);e>0?this.node.Execute("JumpForward",e):this.node.Execute("JumpBackward",-e)}catch(t){this._logger.error("Error while seeking",t)}},e.prototype.pause=function(){if(this.node)try{this.node.paused||(this.node.Execute("Pause"),this.node.paused=!0,this.publish(c.RendererEvent.PAUSE))}catch(t){this._logger.error("Error while pausing video",t)}},e.prototype.setVolume=function(t){},e.prototype.destroy=function(){this._unbindAndStop(),this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.node},e.prototype.stop=function(){this._unbindAndStop();try{sf.service.setScreenSaver(!1)}catch(t){this._logger.error("Error while stopping avplay",t)}},e.prototype.waitForReady=function(t){t()},e.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this._firstPlay=!1,this.seeking=!1,this._eventBus.publish(a.PROFILE_START,a.METRICS.STREAM_PLAY_TO_RENDER);try{this.node.paused?(this.node.Execute("Resume"),this.node.paused=!1):this.node.Execute("Play"),this.publish(c.RendererEvent.PLAYING)}catch(t){this._logger.error("Error while playing stream",t)}},e.prototype.getCurrentTime=function(){return this.currentPlayTime},e.prototype.setCCPrefs=function(){if(webapis&&webapis.tv)try{var t=this._model.userPreferences.closedCaptions;t.fontName=this._getFontName(),t.fontColor=this._getColor(),t.fontOpacity=this._getFontOpacity(),t.fontSize=this._getSize(),t.bgColor=this._getBgColor(),t.bgOpacity=this._getBgOpacity(),t.fontEffect=this._getFontEffect(),t.fontEdgeColor=this._getEdgeColor(),this._eventBus.publish(a.CCEvent.UPDATE_STYLE)}catch(t){this._logger.log("Error while setting CC prefs",t)}},e.prototype._bindEvents=function(){var t=this,e=this.node;e&&(e.OnEvent=function(e,i,n){switch(e){case 1:case 2:case 3:case 4:case 5:case 6:t._logger.log("event type error : ",e,i,n),t._handleError(e);break;case 7:t.publish(c.RendererEvent.PLAYING);break;case 8:t.ended=!0,t._rebufferingManager.onEnded(),t.node.Execute("Stop"),t.publish(c.RendererEvent.ENDED);break;case 9:t.publish(c.RendererEvent.LOADEDMETADATA);break;case 10:case 11:case 12:case 13:break;case 14:var r=i/1e3;t.currentPlayTime=r;var o=t.node.Execute("GetDuration")/1e3;t._logger.log("Current playtime: "+r+" of: "+o),t.publish(c.RendererEvent.TIMEUPDATE,{currentTime:r,duration:o,buffered:{}})}})},e.prototype._unbindEvents=function(){if(this.node)try{this.node.OnEvent=null}catch(t){this._logger.error("Error occurred while unsetting listener ",t)}},e.prototype._getCodeForNodeError=function(t){switch(t){case 1:case 4:case 5:return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_NETWORK;case 2:return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED;case 3:return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND;default:return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR}},e.prototype._setSrc=function(t,e,i){if(this.ended=!1,this.src!==t.url||i){this._eventBus.publish(a.PROFILE_START,a.METRICS.STREAM_REQUEST_TO_RENDER),this._firstPlay=!0,this._currentSrcFormat=t.format||"",this._currentStream=t,this._mode===c.PlaybackMode.VIDEO&&this._eventBus.publish(a.PROFILE_START,a.METRICS.LOAD_TO_LOADED_DATA),this.src=t.url;var n=this.node;try{n.Open("Player","1.010","Player"),n.Execute("InitPlayer",this.src+"|COMPONENT=HLS"),n.Execute("StartPlayback")}catch(t){this._logger.error("Error while setting up the stream",t)}}},e.prototype._switchSrc=function(){},e.prototype._handleWaitingEvent=function(){},e.prototype._createNode=function(){try{sf.service.setScreenSaver(!0)}catch(t){this._logger.log("Error while setting screensaver on",t)}var t=document.createElement("div");return t.innerHTML='<object id="sefplayer" border=0 classid="clsid:SAMSUNG-INFOLINK-SEF" style="position:fixed;top:0px;left:0px;width:1280px;height:720px;"></object>',t.children[0]},e.prototype._unbindAndStop=function(){if(this.node){this._unbindEvents();try{this.node.Execute("Stop")}catch(t){this._logger.log("Error happened while stopping",t)}}},e.prototype._handleError=function(t){var e=this;if(this._mode===c.PlaybackMode.VIDEO){var i=this._getCodeForNodeError(t),n=1===this._retryStreams.length&&2===this._retryCount,r=this._model.playlist.getCurrentItem(),o=s.E_WARNING,l=a.WARNING,d=null;n&&(o=s.E_PLAYER,l=a.ERROR);var h=u.default.createErr(s.ErrorGroup.Streaming,this._model.playbackState,o,i,null,this.src);if(this._logger.log("Video node errored out because: ",t),parseInt(h.subcategory,10)>=303&&parseInt(h.subcategory,10)<=308)return this._retryCount++,n||this._eventBus.publish(l,h),(d=r&&!r.isLive()?this.retryStreams(this._lastUpdatedTime):this.retryStreams(0))?void u.default.getUrlStatus(d.url,function(t){401===t?h.subcategory=s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED:404===t&&(h.subcategory=s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND),e._eventBus.publish(a.ERROR,h)}):void 0;this.publish(c.RendererEvent.ERROR,t),this._eventBus.publish(l,h)}else this.publish(c.RendererEvent.ERROR,t)},e.prototype._getFontLanguage=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_LANGUAGE_TYPE)){case t.CAPTION_LANGUAGE_AUTO:return"en-US";case t.CAPTION_LANGUAGE_JPN:return"ja";case t.CAPTION_LANGUAGE_ENG:return"en-US";case t.CAPTION_LANGUAGE_GER:return"de";case t.CAPTION_LANGUAGE_FRE:return"fr";case t.CAPTION_LANGUAGE_ITA:return"it";case t.CAPTION_LANGUAGE_RUS:return"ru";case t.CAPTION_LANGUAGE_CHS:return"zh-cn";case t.CAPTION_LANGUAGE_KOR:return"ko";case t.CAPTION_LANGUAGE_SPA:return"es";default:return"en-US"}},e.prototype._getFontFeature=function(t,e){var i=webapis.tv.closedcaption;return e?i.getClosedCaptionOption(i.PROFILE_CC_FCC,t):i.getClosedCaptionOption(i.PROFILE_CC,t)},e.prototype._getSize=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_FONT_SIZE)){case t.CAPTION_SIZE_SMALL:return 12;case t.CAPTION_SIZE_STANDARD:return 24;case t.CAPTION_SIZE_LARGE:return 36;case t.CAPTION_SIZE_EXTRA_LARGE:return 48;case t.CAPTION_SIZE_DEFAULT:default:return 24}},e.prototype._getFontOpacity=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_FG_OPACITY)){case t.CAPTION_OPACITY_SOLID:return"1";case t.CAPTION_OPACITY_TRANSLUCENT:return"0.5";case t.CAPTION_OPACITY_TRANSPARENT:return"0";case t.CAPTION_OPACITY_DEFAULT:default:return"1"}},e.prototype._getFontEffect=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_EDGE_TYPE,!0)){case t.CAPTION_EDGE_NONE:return"none";case t.CAPTION_EDGE_RAISED:return"raised";case t.CAPTION_EDGE_DEPRESSED:return"depressed";case t.CAPTION_EDGE_UNIFORM:return"uniform";case t.CAPTION_EDGE_DROP_SHADOWED:return"dropshadow";default:return"none"}},e.prototype._getEdgeColor=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_EDGE_COLOR,!0)){case t.CAPTION_COLOR_DEFAULT:case t.CAPTION_COLOR_WHITE:return"#ffffff";case t.CAPTION_COLOR_BLACK:return"#000000";case t.CAPTION_COLOR_RED:return"#ff0000";case t.CAPTION_COLOR_GREEN:return"#00ff00";case t.CAPTION_COLOR_BLUE:return"#0000ff";case t.CAPTION_COLOR_YELLOW:return"#ffff00";case t.CAPTION_COLOR_MAGENTA:return"#ff00ff";case t.CAPTION_COLOR_CYAN:return"#00ffff";default:return"#ffffff"}},e.prototype._getBgOpacity=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_BG_OPACITY)){case t.CAPTION_OPACITY_SOLID:return"1";case t.CAPTION_OPACITY_TRANSLUCENT:return"0.5";case t.CAPTION_OPACITY_TRANSPARENT:return"0";case t.CAPTION_OPACITY_DEFAULT:default:return"1"}},e.prototype._getBgColor=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_BG_COLOR)){case t.CAPTION_COLOR_DEFAULT:return"#000000";case t.CAPTION_COLOR_WHITE:return"#ffffff";case t.CAPTION_COLOR_BLACK:return"#000000";case t.CAPTION_COLOR_RED:return"#ff0000";case t.CAPTION_COLOR_GREEN:return"#00ff00";case t.CAPTION_COLOR_BLUE:return"#0000ff";case t.CAPTION_COLOR_YELLOW:return"#ffff00";case t.CAPTION_COLOR_MAGENTA:return"#ff00ff";case t.CAPTION_COLOR_CYAN:return"#00ffff";default:return"#000000"}},e.prototype._getFontName=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_FONT_STYLE)){case t.CAPTION_FONT_DEFAULT:case t.CAPTION_FONT_STYLE0:return"sans-serif";case t.CAPTION_FONT_STYLE1:return"PT Mono";case t.CAPTION_FONT_STYLE2:return"Crimson Text";case t.CAPTION_FONT_STYLE3:return"Inconsolata";case t.CAPTION_FONT_STYLE4:return"sans-serif";case t.CAPTION_FONT_STYLE5:return"Neucha";case t.CAPTION_FONT_STYLE6:return"Oleo Script";case t.CAPTION_FONT_STYLE7:return"Carrois Gothic SC";case t.CAPTION_FONT_UNDEFINED:default:return"sans-serif"}},e.prototype._getColor=function(){var t=webapis.tv.closedcaption;switch(this._getFontFeature(t.CAPTION_FG_COLOR)){case t.CAPTION_COLOR_DEFAULT:case t.CAPTION_COLOR_WHITE:return"#ffffff";case t.CAPTION_COLOR_BLACK:return"#000000";case t.CAPTION_COLOR_RED:return"#ff0000";case t.CAPTION_COLOR_GREEN:return"#00ff00";case t.CAPTION_COLOR_BLUE:return"#0000ff";case t.CAPTION_COLOR_YELLOW:return"#ffff00";case t.CAPTION_COLOR_MAGENTA:return"#ff00ff";case t.CAPTION_COLOR_CYAN:return"#00ffff";default:return"#ffffff"}},e.type=c.RendererType.HTML5_TV_ORSAY,e}(l.default);e.default=d},"fLR+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ma23");function r(t){return"string"==typeof t}function o(t){return"function"==typeof t}function s(t){return!!t&&o(t.onPlayerEvent)}function a(t){return!!t&&((t.type===n.PluginType.METADATA||t.type===n.PluginType.SOURCE_METADATA||t.type===n.PluginType.AD||t.type===n.PluginType.VISUAL_SEEK||t.type===n.PluginType.BRANDING||t.type===n.PluginType.PLAYLIST)&&r(t.mimetype)&&r(t.version)&&o(t.prepare)&&o(t.destroy))}function u(t){return!!t&&o(t.addEventListener)&&o(t.removeEventListener)}function l(t){return u(t)&&["getCapabilities","preparePlayback","play","pause","seek","stop","skip","mute","isMuted","setVolume","getVolume","getCurrentTime","getDuration","unload"].every(function(e){return o(t[e])})}function c(t){return!!t&&l(t)}function d(t){return!!t&&u(t)&&["setNonlinearAdContainer"].every(function(e){return o(t[e])})}function h(t){return u(t)&&s(t)&&["canRenderUI","renderUI","unrenderUI"].every(function(e){return o(t[e])})}function p(t){return!!t&&o(t.fetchAdBreaks)&&o(t.resolveAdBreak)&&u(t)}e.isArray=function(t){return Array.isArray(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t&&!isNaN(t)},e.isString=r,e.isObject=function(t){return"[object Object]"===(e=t,Object.prototype.toString.call(e));var e},e.isFunction=o,e.isNonEmptyString=function(t){return"string"==typeof t&&""!==t},e.isPlayerPluginEventListener=s,e.isPlugin=a,e.isEventDispatcher=u,e.isExternalPlayer=l,e.isAdPlayerAdPlugin=c,e.isAdOverlayRendererAdPlugin=d,e.isAdViewAdPlugin=h,e.isAdResolverAdPlugin=p,e.isAdPlugin=function(t){return!!t&&a(t)&&(p(t)||h(t)||c(t)||d(t))}},fcYp:function(t,e,i){"use strict";t.exports=a;var n=i("bfqm"),r=i("/iNa"),o=i("RwmF"),s=i("UbnH");function a(t){o.call(this,this.constructor.name),this._config=t,this._hlsTransformer=this.__controller.create(n,t,this._onTransformProgress.bind(this))}r.inherits(a,o),a.prototype.destroy=function(){this._hlsTransformer.destroy(),o.prototype.destroy.call(this)},a.prototype.setSource=function(t){this._source=t,this._addEventListeners()},a.prototype._addEventListeners=function(){var t=this;t._source&&(t._source.addEventListener(s.DATA_PROCESS_PROGRESS,function(e){t.append(e)},t),t._source.addEventListener(s.DATA_PROCESS_COMPLETE,function(){t.endOfSegment()},t),t._source.addEventListener(s.DATA_PROCESS_ERROR,function(e){t.publish(s.DATA_PROCESS_ERROR,e)},t))},a.prototype.close=function(){this._hlsTransformer.close()},a.prototype.append=function(t){this._hlsTransformer.append(t)},a.prototype.endOfSegment=function(){this._hlsTransformer.endOfSegment()},a.prototype._onTransformProgress=function(t){var e;t&&(this.publish(s.DATA_PROCESS_PROGRESS,t),t.getParam&&(e=t.getParam("parsedInfo")),"end"===(e?e.position:t.position)&&this.publish(s.DATA_PROCESS_COMPLETE,t))}},fezk:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.get=function(t){var e;try{e=(e=window.localStorage.getItem(t))&&JSON.parse(e)||null}catch(t){e=null}return e},t.put=function(t,e){if(!t||!e)return!1;try{return e=JSON.stringify(e),localStorage.setItem(t,e),!0}catch(t){return!1}},t.remove=function(t){try{localStorage.removeItem(t)}catch(t){return}},t.getAllKeys=function(){var t=[];try{for(var e=0,i=localStorage.length;e<i;++e){var n=localStorage.key(e);n&&t.push(n)}return t}catch(e){return t}},t}();e.default=n},frbn:function(t,e,i){"use strict";var n=i("9nRl");function r(t,e){this._data=[],this.length=0,this._type=t||Uint8Array,e&&this.set(e)}t.exports=r,r.prototype.destroy=function(){this._data=[],this.length=0},r.prototype.set=function(t){this._data.push(t),this.length=this.length+t.length},r.prototype.get=function(t){if(n.isNullOrUndefined(t)||t<0||t>this.length)throw new Error("[DataManager] Array position out of bounds");for(var e=0,i=0,r=null,o=0;o<this._data.length;o++){var s=this._data[o];if(t<(e+=s.length)){r=s[t-i];break}i+=s.length}return r},r.prototype.subArray=function(t,e){if((n.isNullOrUndefined(e)||e>this.length)&&(e=this.length),n.isNullOrUndefined(t)&&(t=0),t>=e)return new this._type(0);for(var i=e-t,r=new this._type(i),o=0,s=0,a=0,u=0;u<this._data.length;u++){var l=this._data[u];if(a+=l.length,o>0){if(e<=a){r.set(l.subarray(0,i-o),o);break}r.set(l.subarray(0),o),o+=l.length}else{if(t<a&&e<=a){r=l.subarray(t-s,e-s);break}if(t<a){var c=t-s;r.set(l.subarray(c)),o=l.length-c}}s+=l.length}return r}},g2LC:function(t,e){t.exports=function(t){var e=i.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var i=Object.prototype.toString},g6gz:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("A4+F"),r=i("8PPl"),o=i("+Ojf"),s="",a="";if("0.2.137".indexOf("local")>-1)s=location.protocol+"//"+location.host,a="/nielsen-iframe.html";else{a=(s="https://assets.video.yahoo.net")+"/builds/0.2.137/nielsen-iframe.html"}var u,l,c;e.NIELSEN_IAB_VENDOR_ID=373,function(t){t.linear="1",t.dynamic="2"}(u=e.NielsenAdType||(e.NielsenAdType={})),function(t){t.LOAD_METADATA="loadMetadata",t.SEND_ID3="sendID3",t.END="end"}(l=e.NielsenEvents||(e.NielsenEvents={})),function(t){t.INITIALIZE="initialize",t.SEND_BEACON="sendBeacon"}(c=e.IframeMessageType||(e.IframeMessageType={}));var d=function(){function t(t,e){this._player=t,this._nielsenIframe=null,this._playerId="",this._sentLoadBeacon=!1,this._sentEndBeacon=!1,this._beaconingActive=!1,this._beaconQueue=[],this._iframeLoaded=!1,this._activationSub="",this._hasCMPConsent=!1,this._evtListeners=[{evt:n.ExternalEvt.PLAYBACK_START,cb:this._sendLoadBeacon.bind(this)},{evt:n.ExternalEvt.TIMED_METADATA_RECEIVED,cb:this._onTimedMetadata.bind(this)},{evt:n.ExternalEvt.PLAYBACK_COMPLETE,cb:this._sendEndBeacon.bind(this)},{evt:n.ExternalEvt.PLAYBACK_STOPPED,cb:this._sendEndBeacon.bind(this)},{evt:n.ExternalEvt.MEDIA_ITEM_ERROR,cb:this._sendEndBeacon.bind(this)}],this._appId="P77FED7E1-92A2-4B10-A9AA-16756377EB20",t&&(o.default.initIframeCmp(),this._getVendorConsent(),this._playerId="vp-player-"+Math.floor(1e4*Math.random()),e&&e.length&&(this._appId=e),this._loadNielsenIframe(),this._evtKeys={},this._bindIframeMessageListener(),this._activateBeaconing(),this._activationSub=this._player.addEventListener(n.ExternalEvt.NIELSEN_REQUIRED,this._activateBeaconing.bind(this),this))}return t.prototype.destroy=function(){this._nielsenIframe&&(this._player.removeEventListeners(this._evtKeys),window.removeEventListener("message",this._iframeMessageHandler),this._nielsenIframe=null,this._beaconQueue=null,this._evtKeys={},this._player.removeEventListener(n.ExternalEvt.NIELSEN_REQUIRED,this._activationSub))},t.prototype._activateBeaconing=function(){this._beaconingActive||(this._bindEvents(),this._sentEndBeacon=!1,this._sentLoadBeacon=!1,this._beaconingActive=!0)},t.prototype._deActivateBeaconing=function(){this._beaconingActive&&(this._player.removeEventListeners(this._evtKeys),window.removeEventListener("beforeunload",this._sendEndBeacon.bind(this)),this._sentEndBeacon=!0,this._beaconingActive=!1)},t.prototype._loadNielsenIframe=function(){var t=this;this._nielsenIframe=document.getElementById("vp-nielsen-iframe"),this._nielsenIframe?(this._createSDKInstance(),this._iframeLoaded=!0):(this._nielsenIframe=document.createElement("iframe"),this._nielsenIframe.id="vp-nielsen-iframe",this._nielsenIframe.style.display="none",this._nielsenIframe.onload=function(){t._createSDKInstance(),t._iframeLoaded=!0,t._hasCMPConsent&&t._fireBeacons()},this._nielsenIframe.src=a,document.body.appendChild(this._nielsenIframe))},t.prototype._createSDKInstance=function(){this._sendIframeMessages(c.INITIALIZE,null,{appid:this._appId})},t.prototype._sendIframeMessages=function(t,e,i){if(this._nielsenIframe&&this._nielsenIframe.contentWindow){var n={messageType:t,nielsenEvent:e,payload:i,playerid:this._playerId};this._nielsenIframe.contentWindow.postMessage(n,s)}},t.prototype._bindEvents=function(){var t=this;window.addEventListener("beforeunload",this._sendEndBeacon.bind(this)),this._evtListeners.forEach(function(e){t._evtKeys[e.evt]=t._player.addEventListener(e.evt,e.cb,t)})},t.prototype._bindIframeMessageListener=function(){window.addEventListener&&window.addEventListener("message",this._iframeMessageHandler.bind(this))},t.prototype._iframeMessageHandler=function(t){if(t.origin===s){var e=t.data&&t.data.messageType,i=t.data&&t.data.success||!1;if(e&&!i)return;e===c.SEND_BEACON&&i&&(this._sentLoadBeacon=!0)}},t.prototype._sendNielsenBeacon=function(t,e){var i=this;this._beaconQueue.push(function(){i._sendIframeMessages(c.SEND_BEACON,t,e)}),this._nielsenIframe&&this._iframeLoaded&&this._hasCMPConsent&&this._fireBeacons()},t.prototype._fireBeacons=function(){this._beaconQueue.forEach(function(t){t()}),this._beaconQueue=[]},t.prototype._sendLoadBeacon=function(t){var e=this._player.getCurrentMediaItem(),i=e&&e.id,n={type:"content",channelName:t&&t.brandingData&&t.brandingData.branding&&t.brandingData.branding.providerId?i+";"+t.brandingData.branding.providerId:i,adModel:u.linear};this._sendNielsenBeacon(l.LOAD_METADATA,n)},t.prototype._sendEndBeacon=function(){if(this._sentLoadBeacon&&!this._sentEndBeacon){var t=Date.now()/1e3;this._sendNielsenBeacon(l.END,t),this._sentLoadBeacon=!1,this._deActivateBeaconing()}},t.prototype._onTimedMetadata=function(t){var e=o.default.detectRegexPattern(r.ID3_MATCH_PATTERN.NIELSEN,t);e&&this._sentLoadBeacon&&this._sendNielsenBeacon(l.SEND_ID3,e)},t.prototype._getVendorConsent=function(){var t=this;window.__cmp?window.__cmp("getVendorConsents",new Uint16Array([e.NIELSEN_IAB_VENDOR_ID]),function(i,n){n&&(i&&!i.gdprApplies?t._hasCMPConsent=!0:i&&i.gdprApplies&&(t._hasCMPConsent=i.vendorConsents&&!!i.vendorConsents[e.NIELSEN_IAB_VENDOR_ID])),t._hasCMPConsent||t._deActivateBeaconing()}):this._deActivateBeaconing()},t}();e.default=d},gp5d:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ALWAYS="always",t.TIMEBASED="timebased",t.NEVER="never"}(n=e.SkipOnError||(e.SkipOnError={})),e.defaultConfigs={adPlaybackOnly:!1,analytics:!0,autoplay:!1,casting:!0,continuousPlay:!1,enableRecovery:!0,fullscreen:!1,height:0,lang:"",loop:!1,mute:!1,preload:!1,region:"",site:"",skipOnError:n.NEVER,stopAtLastFrame:!1,stopBufferingOnPause:!1,liveUnloadOnPause:!0,ads:{timeout:{load:3,start:10},preferExternalPlayback:!0},ui:{ccOnMute:!1,chromeless:!1,docking:{enableOnMuted:!0,enableOnScrollDown:!1,enableOnScrollUp:!1,fadeInAnimation:!0,closeButtonFadeIn:!1,height:180,position:{bottom:20,left:-1,right:20,top:-1},showInfoCard:!0,threshold:50,width:320},endScreen:{show:!1},logos:{network:null,provider:null,rating:null},playlist:{inStream:!1,show:!1,position:"hidden",theme:"dark",mimetype:"playlist/simple"},seekControls:{show:!1,offset:10},showControls:!0,showFullscreenButton:!0,startScreen:{show:!0,showButton:!0,showDescription:!0,showProvider:!0,showTitle:!0},title:{showOnHover:!0,showOnStart:""}},backgroundPause:{onMute:!0,onUnmute:!1,timeToPause:5,suspendStreamingTime:20,backgroundSuspendStreaming:!0},volume:1,width:0,iframeRender:!1,pauseLiveVideo:!1,pauseVODVideo:!1,preloadBufferSize:32}},guzb:function(t,e,i){var n=i("sEG9");(t.exports=i("I1BE")(!1)).push([t.i,".vp-nfl-branding-container{width:100%;height:36px;position:relative;z-index:22;background:#011832;background:-moz-linear-gradient(left,#011832 0,#103155 40%,#011832 100%);background-image:-webkit-linear-gradient(left,#011832,#103155 40%,#011832);background-image:-o-linear-gradient(left,#011832 0,#103155 40%,#011832 100%);background-image:linear-gradient(left,#011832,#103155 40%,#011832);*background:#011832;white-space:nowrap}.vp-browser-mobile .vp-nfl-branding-container{height:52px}.vp-nfl-branding{margin:10px auto;display:inline-block;zoom:1;width:30%;height:100%}.vp-browser-mobile .vp-nfl-branding{margin:15px auto}.vp-nfl-branding-container .vp-nfl-brand{display:inline-block;height:100%;background-position:50%;margin-left:10px;background-repeat:no-repeat;background-size:100%}.vp-nfl-branding-container .vp-nfl-brand-span{background-image:url("+n(i("/jeC"))+");width:20px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-span{width:30px;height:30px}.vp-nfl-branding-container .vp-nfl-brand-logo{background-image:url("+n(i("svza"))+");width:110px}.vp-browser-mobile .vp-nfl-branding-container .vp-nfl-brand-logo{margin-left:50px;margin-top:2px;width:157px;height:20px}",""])},gvSP:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("r/m/"),r=i("H8YR"),o=i("A4+F");e.Events=o.ExternalEvt;var s=i("1LND");e.Playlist=s.default;var a=i("Lux/"),u=i("UDn2");e.MediaItemInterfaces=u;var l=i("ma23");e.Plugin=l;var c=i("mczr");e.RendererType=c.RendererType;var d=i("D1bo");e.Player=d.default;t.replaceVdmsPlayerSrc=function(t){var e=t.substring(t.lastIndexOf("/")+1),i=e.substring(0,e.indexOf("."));if(!t.includes("assets.video.yahoo.net"))return"/"+e;switch(i){case"vendors~three":return"https://assets.video.yahoo.net/three/THREE_VERSION/"+e;default:return t}},l.AdPluginEvent=a.AdPluginEvent,l.AdPluginPlaybackCapability=a.AdPluginPlaybackCapability,window.VDMS=window.VDMS||{},window.VDMS.Player=d.default,window.VDMS.Plugin=l,window.VDMS.Events=o.ExternalEvt;var h={VdmsAnalytics:r.default,VdmsAnalyticsModel:n.default};e.Analytics=h}).call(this,i("yLpj"))},h2IM:function(t,e,i){"use strict";t.exports=f;var n=i("9nRl"),r=i("/iNa"),o=i("RwmF"),s=i("UbnH"),a=i("STAJ"),u=i("3kti"),l=i("lPOR"),c=i("KtsB"),d=i("K+58"),h=i("Tavk").NAL_UNIT_TYPES,p=i("V66C").StreamTypes;function f(t){o.call(this,this.constructor.name),this._data=null,this._config=t,this._id3Parser=new u,this._mp4Parser=new a,this._seiParser=new d}r.inherits(f,o),f.prototype.destroy=function(){this._data=null,this._mp4Parser.destroy(),this._seiParser.destroy(),o.prototype.destroy.call(this)},f.prototype.setSource=function(t){this._source=t,this._addEventListeners()},f.prototype._addEventListeners=function(){var t=this;t._source&&(t._source.addEventListener(s.DATA_PROCESS_PROGRESS,function(e){t.append(e)},t),t._source.addEventListener(s.DATA_PROCESS_COMPLETE,function(){t.endOfSegment()},t),t._source.addEventListener(s.DATA_PROCESS_ERROR,function(e){t.publish(s.DATA_PROCESS_ERROR,e)},t))},f.prototype.close=function(){this._data=null},f.prototype.append=function(t){if(t){var e=t.length;if(e){var i=null,n=0;this._data&&(n=(i=this._data).length);var r=n+e;this._data=new Uint8Array(r),i&&this._data.set(i),this._data.set(t,n),this._probeData()}}},f.prototype._probeData=function(){for(;this._data&&this._data.length>=8;){var t=this._data.length,e=new DataView(this._data.buffer),i=this._mp4Parser.parse(this._data,"styp"),n=this._mp4Parser.parse(this._data,"emsg"),r=this._mp4Parser.parse(this._data,"moof"),o=this._mp4Parser.parse(this._data,"ftyp"),a=this._mp4Parser.parse(this._data,"moov");if(o&&a){this._config.userAgent.android&&this._fixAndroidAAC();var u=[];o&&u.push(o),a&&u.push(a);var l=this._getFragmentStart(u),c=this._getFragmentEnd(u),d=new Uint8Array(this._data.buffer.slice(l,c));this.publish(s.DATA_PROCESS_PROGRESS,{position:"init",data:d}),this._data.length>c?this._data=new Uint8Array(this._data.buffer.slice(c)):this._data=null}else{if(!r)return;var h=this._mp4Parser.findBoxOffset(e,"mdat");if(h<0)return;var f=this._mp4Parser.parseHeader(e,"mdat",h),_=[];i&&_.push(i),n&&_.push(n),r&&_.push(r),f&&_.push(f);var m=this._getFragmentStart(_),y=this._getFragmentEnd(_);if(t<y)return;var v=this._getDefaultSampleDuration(),g=this._config.timescale,E=this._getSamplesAndDuration(),b=this._getBaseTime(),S=this._getTotalDuration(E,v);if(this._config.dash){var A=Math.round(this._config.startTime*g),T=this._config.segDuration*g;b!==A&&(b=A,this._setBaseTime(b)),S!==T&&(this._alignSegmentDuration(E,T),S=T)}var I=null;this._config.type!==p.MAIN&&this._config.type!==p.VIDEO||(I=this._parseCea608(h,E,b,g));var C=new Uint8Array(this._data.buffer.slice(m,y));this._position="firstByte"===this._position?"start":"middle",this.publish(s.DATA_PROCESS_PROGRESS,{position:this._position,data:C,cea608TrackData:I,baseTime:b,defaultSampleDuration:v,totalDuration:S,samples:E.samples}),this._config.dash&&n&&this._processMetadata(n),this._data.length>y?this._data=new Uint8Array(this._data.buffer.slice(y)):this._data=null}}},f.prototype.endOfSegment=function(){this._probeData(),this.publish(s.DATA_PROCESS_COMPLETE)},f.prototype._getFragmentStart=function(t){if(!t||!t.length)return 0;var e=Number.POSITIVE_INFINITY;return t.forEach(function(t){e=Math.min(e,t.boxOffset)}),e},f.prototype._getFragmentEnd=function(t){if(!t||!t.length)return 0;var e=0,i=t[0];return t.forEach(function(t){e<t.boxOffset&&(e=t.boxOffset,i=t)}),i.boxOffset+i.boxSize},f.prototype._getBaseTime=function(){var t=this._mp4Parser.parse(this._data,"tfdt");return t?t.baseMediaDecodeTime:0},f.prototype._setBaseTime=function(t){this._mp4Parser.setSingleProp(this._data,"tfdt",{name:"baseMediaDecodeTime",value:t,length:32})},f.prototype._alignSegmentDuration=function(t,e){if(t&&t.totalDuration){var i=e-t.totalDuration,n=t.samples[t.samples.length-1].duration+i;n<0&&(n=0),this._mp4Parser.setSingleProp(this._data,"trun",{name:"sampleDuration",value:n,length:32,pos:-1})}},f.prototype._getDefaultSampleDuration=function(){var t=this._mp4Parser.parse(this._data,"tfhd");return t&&t.defaultSampleDuration>0?t.defaultSampleDuration:0},f.prototype._getTotalDuration=function(t,e){return t.totalDuration?t.totalDuration:t.samples.length*e},f.prototype._getSamplesAndDuration=function(){var t=[],e=0,i=this._mp4Parser.parse(this._data,"trun");if(i&&i.sampleData)for(var r=i.sampleData.length,o=i.sampleData,s=0;s<r;s++){var a={};o[s].sampleDuration&&(a.duration=o[s].sampleDuration,e+=a.duration),o[s].sampleSize&&(a.size=o[s].sampleSize),o[s].sampleFlags&&(a.flags=o[s].sampleFlags),n.isNullOrUndefined(o[s].sampleCompositionTimeOffset)||(a.cto=o[s].sampleCompositionTimeOffset),t.push(a)}return{samples:t,totalDuration:e}},f.prototype._processMetadata=function(t){if(t){var e=this._convertFromMediaTimeScale(t.presentationTimeDelta,t.timescale),i=t.message&&this._id3Parser.extractID3FromMessage(t.message),n={payload:i&&this._id3Parser.getID3Payload(i),timestamp:this._config.startTime+e},r=new c({type:l.MessageTypes.MESSAGE,id:l.MessageIds.TIMED_METADATA});r.putParam("timedMetadata",n),this.publish(s.DATA_PROCESS_PROGRESS,r)}},f.prototype._convertFromMediaTimeScale=function(t,e){return 0===e?0:t/e},f.prototype._fixAndroidAAC=function(){var t=this._mp4Parser.parse(this._data,"esds");if(t){var e=t.audioSpecificConfig0>>3,i=t.audioSpecificConfig0<<1&14|t.audioSpecificConfig1>>7&1,n=t.audioSpecificConfig1>>3&7;if(5===e){var r=(e=2)<<3|(14&i)>>1,o=(1&i)<<7|n<<3;this._mp4Parser.setSingleProp(this._data,"esds",{name:"audioSpecificConfig0",value:r,length:8}),this._mp4Parser.setSingleProp(this._data,"esds",{name:"audioSpecificConfig1",value:o,length:8}),this._mp4Parser.setSingleProp(this._data,"esds",{name:"audioSpecificConfig2",value:0,length:8}),this._mp4Parser.setSingleProp(this._data,"esds",{name:"audioSpecificConfig3",value:0,length:8})}}},f.prototype._parseCea608=function(t,e,i,n){for(var r=[],o=this._data.slice(t+8),s=i,a=0,u=0,l=0;l<e.samples.length;l++){var c=e.samples[l];for(u+=c.size;a<u&&a<o.length;){var d=o[a]<<24|o[a+1]<<16|o[a+2]<<8|o[a+3];if((15&o[a+=4])===h.AD_INFO_SEI)for(var p=this._seiParser.parse(o,a+1),f=0;f<p.length;f++){var _=p[f];_.pts=s+c.cto,_.dts=s,_.timescale=n,r.push(_)}a+=d}s+=c.duration}return r}},h8UC:function(t,e,i){"use strict";var n=i("JcQw");t.exports={errorCodes:n}},hWVc:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-opensimsim' style='display: none'>"),n.b("\n"+i),n.b("    <button class='vp-opensimsim-close-btn vp-close-btn'></button>"),n.b("\n"+i),n.b("    <div class='vp-opensimsim-info'>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title'>VDMS PLAYER</div>"),n.b("\n"+i),n.b("        <div>"),n.b(n.v(n.f("version",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("        <div class='vp-nav'>"),n.b("\n"+i),n.b("            <span class='vp-profile-btn'>Profile</span>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title'>CURRENT MEDIA</div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-renderertype'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-uuid'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-lmsid'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-tv'></div>"),n.b("\n"+i),n.b("        <br>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-graphs'></div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-detail'></div>"),n.b("\n"+i),n.b("        <div class='vp-swf-ready'></div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title vp-section-expand-context vp-expanded'>CONTEXT</div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-current-context vp-hide'>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-expSiteName'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-expBucketName'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-expName'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-expType'></div>"),n.b("\n"+i),n.b("            <div><span class='vp-details'>Page SpaceID: </span>"),n.b(n.v(n.f("spaceId",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("            <div class='vp-sessionId'></div>"),n.b("\n"+i),n.b("            <div class='vp-videoSpaceId'></div>"),n.b("\n"+i),n.b("            <div class='vp-opensimsim-platform'></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        \x3c!-- <div class='vp-profile-btn'>Profile</div> --\x3e"),n.b("\n"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title vp-section-expand-plugins vp-expanded'>PLUGINS</div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-current-plugins vp-hide'>"),n.b("\n"+i),n.b("            <pre class='vp-opensimsim-plugins'></pre>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title vp-section-expand-config vp-expanded'>PLAYER CONFIG</div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-current-config vp-hide'>"),n.b("\n"+i),n.b("            <pre class='vp-opensimsim-profile'></pre>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title vp-section-expand-hosting vp-expanded'>HOSTING CONFIG</div>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-hosting-config vp-hide'>"),n.b("\n"+i),n.b("            <pre class='vp-opensimsim-hosting'></pre>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"),n.b("\n"+i),n.b("        \x3c!-- <div class='vp-opensimsim-title'>AD CONTEXT</div> --\x3e"),n.b("\n"+i),n.b("        <div class='vp-inviewport'>"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-title vp-section-expand-ads vp-expanded'>AD HISTORY CONTEXT</div>"),n.b("\n"+i),n.b("        \x3c!-- <br> --\x3e"),n.b("\n"+i),n.b("        <div class='vp-adinfo-section vp-hide' style=\"padding-bottom: 15px;\">"),n.b("\n"+i),n.b("            <div class='vp-details'>Midroll Cache Stats: <div class='vp-midrollcache-data'></div></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"+i),n.b("        <div class='vp-adsinfopanel-adsinfo vp-hide'><div style='text-align: center;'>YVAP disabled!!</div></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"),n.b("\n"+i),n.b("    <section class='ad-info-table vp-table'>"),n.b("\n"),n.b("\n"+i),n.b("        <div class='vp-opensimsim-adinfo-uuid'>"),n.b("</div>"),n.b("\n"+i),n.b("        <header class='vp-tablerow'>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>position</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>dur</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>adPbId</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>crId</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>vCrId</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>bId</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>State</div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell vp-tablecell-header'>log</div>"),n.b("\n"+i),n.b("        </header>"),n.b("\n"+i),n.b("        <div class='vp-tablerow'>"),n.b("\n"+i),n.b("            <div class='adposition vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='addur vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='adPbId vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='crId vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='vCrId vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='bId vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='pbstate vp-tablecell'></div>"),n.b("\n"+i),n.b("            <div class='vp-tablecell'><button class='linkbtn'>log</button></div>"),n.b("\n"+i),n.b("        </div>"),n.b("\n"),n.b("\n"+i),n.b("    </section>"),n.b("\n"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},he5r:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.CLICK="click",t.AUTOPLAY="autoplay",t.API="api",t.CONTINUOUS="continuous",t.HOVER="hover",t.PLAY="play",t.PAUSE="pause",t.SCROLL="scroll",t.SWIPE="swipe",t.BACKGROUND="background"}(e.REQUEST_TYPES||(e.REQUEST_TYPES={})),e.GEMINI_STUB_VIDEO_ID="6bf451fd-11f9-37f9-a54c-d73d795839f6",e.PLAYLIST_THUMB_DIMENSION="260x144",e.PLAYLIST_SECTION_ICON_DIMENSION="14x14",e.PLAYLIST_LABEL_ICON_DIMENSION="70x70",e.PLAYLIST_COUNT_PER_PAGE=12,function(t){t.BOTTOM="bottom",t.RIGHT="right",t.HIDDEN="hidden"}(e.PLAYLIST_POS||(e.PLAYLIST_POS={})),function(t){t.ALWAYS="always",t.TIMEBASED="timebased",t.NEVER="never"}(e.SkipOnError||(e.SkipOnError={})),e.VRM_PLUGIN_MIMETYPE="adplugin/vrm"},heKF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2");e.mediaItemSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/mediaItemSchema",type:"object",properties:{adConfig:{type:"object",properties:{mimetype:{type:"string"},value:{type:{}}}},customConfig:{type:"object"},id:{type:"string"},metadata:{type:"object",properties:{description:{type:"string"},duration:{type:"number"},title:{type:"string"},thumbnail:{type:"string"},posterUrl:{type:"string"},type:{type:"string",enum:Object.keys(n.MediaItemType).map(function(t){return n.MediaItemType[t]})},videoTypes:{type:"array"}}},mimetype:{type:"string"},source:{$ref:"/sourceSchema"}},dependencies:{mimetype:["id"]}}},hifa:function(t,e,i){"use strict";t.exports=r;var n=i("9nRl");function r(){this._segTimeMap={},this._lastSegmentSeqNum=Number.NaN,this._discontinuity=!1,this._firstDiscontinuousStartTime=NaN,this._streams=[]}r.prototype.destroy=function(){this._segTimeMap={},this._streams=[]},r.prototype.addStream=function(t){this._streams.push(t),this._streams.length&&(this._lastSegmentSeqNum=this._streams[0].endSeqNum)},r.prototype.update=function(t){if(t){var e=this._getTargetStream(t);if(e){var i=this.__controller.model.live;if(i&&(t=e.isDash()?this._convertSequenceNums(t,e):this._convertSegmentStartTime(t)),e.updateConfig(t),i&&!e.isDash()&&this._lastSegmentSeqNum>=e.endSeqNum){var n=1e3*e.targetDuration,r=!isNaN(n)&&n>0?n:e.refreshInterval;e.refreshInterval=.5*r}this._lastSegmentSeqNum=e.endSeqNum}}},r.prototype._getTargetStream=function(t){if(!t||!this._streams.length)return null;for(var e=0;e<this._streams.length;e++)if(this._streams[e].equals(t))return this._streams[e];return null},r.prototype._convertSegmentStartTime=function(t){var e=this;if(!t)return t;var i=t.segmentInfoList;if(!i||!i.length)return t;Object.keys(e._segTimeMap).length||(e._segTimeMap[i[0].sequenceNum]={startTime:i[0].startTime,programDateTime:i[0].programDateTime});var n,r,o,s,a=e._segTimeMap[i[0].sequenceNum];if(a&&"number"==typeof a.startTime)n=e._segTimeMap[i[0].sequenceNum].startTime;else{var u=Object.keys(e._segTimeMap),l=parseInt(u[u.length-1]);i[i.length-1].sequenceNum;var c=0;for(r=1;r<i.length;r++)if(-1!==u.indexOf(i[r].sequenceNum.toString())){c=r;break}if(c)for(n=e._segTimeMap[i[c].sequenceNum].startTime,r=c-1;r>=0;r--)n-=i[r].duration;else{if(i[0].sequenceNum>l)o=parseInt(u[u.length-1]),s=e._segTimeMap[o];else for(r=i[i.length-1].sequenceNum;r<=l;){if(-1!==u.indexOf(r.toString())){o=r,s=e._segTimeMap[o];break}r++}n="number"==typeof s.programDateTime?s.startTime+(i[0].programDateTime-s.programDateTime)/1e3:s.startTime+(i[0].sequenceNum-o)*i[0].duration}}var d=0;return i.forEach(function(t){t.startTime=n+d,d+=t.duration,!e._discontinuity&&t.discontinuity&&(e._discontinuity=!0,e._firstDiscontinuousStartTime=t.startTime),e._discontinuity&&!isNaN(e._firstDiscontinuousStartTime)&&(t.discontinuity=t.startTime>=e._firstDiscontinuousStartTime),e._segTimeMap[t.sequenceNum]||(e._segTimeMap[t.sequenceNum]={startTime:t.startTime,programDateTime:t.programDateTime})}),t},r.prototype._convertSequenceNums=function(t,e){if(!t||!e)return t;var i=t.segmentInfoList;if(!i||!i.length)return t;var n=e.segments;if(!n||!n.length)return t;for(var r=0,o=!1,s=0;s<n.length;s++)if(r=n[s].seqNum,n[s].startTime>=i[0].startTime){o=!0;break}o||r++;for(var a=0;a<i.length;a++)i[a].sequenceNum=r,r++;return t},r.prototype.adjustStartTime=function(t,e,i){var r=this;if(t&&!n.isNullOrUndefined(i)&&!n.isNullOrUndefined(e)){var o=Object.keys(r._segTimeMap),s=o.length?o[0]:null,a=s?r._segTimeMap[s]:null,u=a?(a.programDateTime-i)/1e3-(a.startTime-e):0;u?(o.forEach(function(t){(a=r._segTimeMap[t]).startTime+=u}),t.segments.forEach(function(t){a=r._segTimeMap[t.seqNum],t.startTime=a?a.startTime:t.startTime+u}),t.adjusted=!0):t.adjusted=!0}}},iBPZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+Ojf"),r=function(){function t(){}return t.sendImageBeacon=function(t){t=n.default.fixProtocol(t);var e=new Image;e.onload=e.onabort=e.onerror=function(){e.onload=e.onabort=e.onerror=null,e=null},e.src=t},t.sendUnloadBeacon=function(e){return e=n.default.fixProtocol(e),navigator&&navigator.sendBeacon?navigator.sendBeacon(e,null):t.sendImageBeacon(e),!0},t.sendIframeBeacon=function(e){e=n.default.fixProtocol(e);var i,r=Math.random(),o=document.querySelector("#vp-beacons"),s="vp-beacons-"+r;return o||(o=t.createBeaconsIframe(document,"vp-beacons"),document.body.appendChild(o)),(i=t.createBeaconsIframe(o.contentDocument,s)).src=e,"complete"===o.contentDocument.readyState?o.contentDocument.body.appendChild(i):o.contentDocument.body.onload=function(){o.contentDocument.body.appendChild(i)},!0},t.createBeaconsIframe=function(t,e){var i=t.createElement("iframe");return i.frameBorder=0,i.width=0,i.height=0,i.marginwidth=0,i.marginheight=0,i.hspace=0,i.vspace=0,i.frameborder=0,i.scrolling="no",i.id=e,i.style.display="none",i.title="",i},t.prepareApiInfo=function(t,e){(e=e||{}).url=t,e.instrument=e.instrument||"none",e.perfInfo="na",e.perfStack="na",e.source="player";var i=e.resourceTiming,n=e.resourceTimingEntries;if(i){var r={};["connectEnd","connectStart","domainLookupEnd","domainLookupStart","duration","fetchStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","startTime"].forEach(function(t){r[t]=i[t].toFixed(2)}),e.latency=r&&r.duration||"",e.perfInfo=JSON.stringify(r);var o=[];e.resourceTimingEntries&&i.requestStart-i.connectStart>500&&n.forEach(function(t){t.startTime<i.startTime&&o.push({url:t.name,st:t.startTime.toFixed(2),du:(t.responseEnd-t.startTime).toFixed(2)})}),e.perfStack=0===o.length?"na":JSON.stringify(o)}return e},t}();e.default=r},iLlr:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};Object.defineProperty(e,"__esModule",{value:!0});var s,a=i("JcWZ"),u=i("vdbb"),l=i("O/dN"),c=i("oIMU"),d=i("UDn2"),h=i("fLR+"),p=i("+Ojf");!function(t){t.METADATA_AVAILABLE="metadata-available",t.SOURCE_AVAILABLE="metadata-source-available",t.SOURCE_LOAD_FAILED="metadata-source-load-failed",t.API_INFO_AVAILABLE="api-info-available"}(s=e.MetadataEvent||(e.MetadataEvent={}));var f=function(t){function e(e,i){var n=t.call(this,"MetadataController")||this;return n._commandManager=e,n._model=i,n._mediaStore=i.mediaStore,n}return r(e,t),e.prototype.destroy=function(){this._commandManager.removeRelatedCommands(u.CmdName.CMD_METADATA_LOAD),this._commandManager.removeRelatedCommands(u.CmdName.CMD_SOURCE_METADATA_LOAD),t.prototype.destroy.call(this)},e.prototype.loadItem=function(t){var e=t.rawItemData;this._commandManager.executeCommand(u.CmdName.CMD_METADATA_LOAD,o({mimetype:t.mimetype,mediaItemDataArr:[e]},this._getCommandData()),this)},e.prototype.loadSource=function(t){var e=t.rawItemData;t.isContainer()||(t.hasSource()?this.publish(s.SOURCE_AVAILABLE,t):(this.publish(c.PROFILE_START,c.METRICS.CMS_SOURCE_REQUEST),this._commandManager.executeCommand(u.CmdName.CMD_SOURCE_METADATA_LOAD,o({mimetype:t.mimetype,mediaItemDataArr:[e]},this._getCommandData()),this)))},e.prototype.recover=function(t){var e=t.rawItemData;this._commandManager.executeCommand(u.CmdName.CMD_SOURCE_METADATA_LOAD,o({mimetype:t.mimetype,mediaItemDataArr:[e],recovering:!0},this._getCommandData()),this)},e.prototype.loadMetadata=function(t){var e,i=this,n=this._model;if((e=t&&t.length?t:n.playlist.getItems())&&e.length){var r=[];e.forEach(function(t){r.push(t.rawItemData)});var s={};r.forEach(function(t){var e=t.mimetype;s[e]||(s[e]=[]),s[e].push(t)}),this._isCurrentItemLoading(r)&&this.publish(c.PROFILE_START,c.METRICS.CMS_REQUEST),Object.keys(s).forEach(function(t){i._commandManager.executeCommand(u.CmdName.CMD_METADATA_LOAD,o({mimetype:t,mediaItemDataArr:s[t]},i._getCommandData()),i)})}},e.prototype.onSourceMetadataLoadComplete=function(t,e){var i=this;this.publish(c.PROFILE_END,c.METRICS.CMS_SOURCE_REQUEST),this._commandManager.removeCommand(t),this._model.playlist.update(e).forEach(function(t){t.setSourceState(d.SourceState.HAS_DATA),i.publish(s.SOURCE_AVAILABLE,t)})},e.prototype.onSourceMetadataLoadProgress=function(t,e,i){i&&this._model.playlist.updateMediaItemsSourceState(e,i)},e.prototype.onSourceMetadataLoadError=function(t,e,i){var n=this;this._commandManager.removeCommand(t);var r=p.default.createErr(i.group,this._model.playbackState,i.category,i.subcategory,i.message);e.forEach(function(t){n.publish(s.SOURCE_LOAD_FAILED,t,r)})},e.prototype.onMetadataLoadComplete=function(t,e){var i=this;this._commandManager.removeCommand(t),this._transformMetadata(e),this._isCurrentItemLoading(e)&&this.publish(c.PROFILE_END,c.METRICS.CMS_REQUEST),this._model.playlist.update(e).forEach(function(t){t.setState(d.ItemState.HAS_DATA),i.publish(s.METADATA_AVAILABLE,t)})},e.prototype.onMetadataLoadProgress=function(t,e,i){i&&this._model.playlist.updateMediaItemsState(e,i)},e.prototype.onMetadataLoadInfo=function(t,e){e&&this.publish(s.API_INFO_AVAILABLE,e)},e.prototype.onSourceMetadataLoadInfo=function(t,e){e&&this.publish(s.API_INFO_AVAILABLE,e)},e.prototype.onMetadataLoadError=function(t,e){this._commandManager.removeCommand(t);var i=p.default.createErr(l.ErrorGroup.Configuration,this._model.playbackState,e.category,e.subcategory,e.message);this.publish(c.ERROR,i)},e.prototype._isCurrentItemLoading=function(t){var e=this._model.playlist.getCurrentItem();return e&&t&&t.length&&t.some(function(t){return t.id===e.id})},e.prototype._getCommandData=function(){var t=this._model,e={autoplay:t.autoplay,gdprConsent:t.consent,rendererCapabilities:t.capabilities,rendererTypes:t.rendererTypes,thumbnailDimensions:t.thumbnailDimensions},i=this._model.playlist.getCurrentItem();return i&&(i.videoSession&&(e.sessionId=i.videoSession),h.isNumber(i.tryCount)&&(e.tryCount=i.tryCount),h.isNumber(i.failoverCount)&&(e.failoverCount=i.failoverCount)),e},e.prototype._transformMetadata=function(t){t&&t.forEach(function(t){t.metadata&&(t.metadata.title=p.default.sanitizeAndUnescape(t.metadata.title),t.metadata.description=p.default.sanitizeAndUnescape(t.metadata.description))})},e}(a.default);e.MetadataController=f},iMSc:function(t,e,i){"use strict";t.exports.TsStreamer=l,t.exports.TsLiveStreamer=c;var n=i("/iNa"),r=i("6I/I").Streamer,o=i("21xW"),s=i("2fkz").CmdNames,a=i("9nRl"),u=i("lPOR");function l(t,e){this._creator(t,e)}function c(t,e){this._creator(t,e),this.SEGMENT_OFFSET=2}n.inherits(l,r),n.inherits(c,o),c.prototype._creator=l.prototype._creator=function(t,e){this.constructor.super_.call(this,t,e),this._super=this.constructor.super_.prototype,this.processOnlyMetadata=!1,this.lastAudioTimestamp=NaN,this.lastAudioFrameDuration=NaN,this._initMp4State(),this._commandName=s.CMD_SEGMENT_LOAD,this.primary=!0;var i=this.__controller.getMinimumBufferTime(),n=[{codec:"avc1.640021",type:"video",mimeType:'video/mp4; codecs="avc1.640021"',minBufferTime:i}];t&&t.hasAudio&&n.push({codec:"mp4a.40.2",type:"audio",mimeType:'audio/mp4; codecs="mp4a.40.2"',minBufferTime:i}),this.__controller.sendMessage(u.MessageIds.CREATE_SRC_BUFFER,[n],["tracks"]),this._state=this.STATES.INITIALIZED},c.prototype.destroy=l.prototype.destroy=function(){this._initMp4State(),this._super.destroy.call(this)},c.prototype.onSeeking=l.prototype.onSeeking=function(t){this.lastAudioTimestamp=NaN,this._super.onSeeking.call(this,t)},c.prototype.onSwitchBegin=l.prototype.onSwitchBegin=function(){this._initMp4State(),this._super.onSwitchBegin.call(this)},c.prototype._beforeLoadSegment=l.prototype._beforeLoadSegment=function(){this._initMp4State()},c.prototype._getSegmentLoadCmdData=l.prototype._getSegmentLoadCmdData=function(t){return{segment:this._model.getSegment(this._model.currentLoadingStreamIndex,t),stream:this._currentStream,state:{mp4:this._mp4State,lastAudioTimestamp:this.lastAudioTimestamp,lastAudioFrameDuration:this.lastAudioFrameDuration,isAltAudioActive:this._isAltAudioActive},onlyMetadata:this.processOnlyMetadata}},c.prototype.onSegmentLoadProgress=l.prototype.onSegmentLoadProgress=function(t,e,i){if(e){var n=e.getParam?e.getParam("parsedInfo"):null;n&&(a.isNumber(n.pcr)&&this._model.setPCR(n.pcr),a.isNumber(n.startOffsetTimestamp)&&this._model.setStartOffset(n.startOffsetTimestamp),a.isNumber(n.lastAudioTimestamp)&&(this.lastAudioTimestamp=n.lastAudioTimestamp),a.isNumber(n.lastAudioFrameDuration)&&(this.lastAudioFrameDuration=n.lastAudioFrameDuration)),this._super.onSegmentLoadProgress.call(this,t,e,i)}},c.prototype._sendToBuffer=l.prototype._sendToBuffer=function(t,e){var i=this;t&&(i._super._sendToBuffer.call(i,t,e),t.forEach(function(t){i._mp4State[t.type].shouldInit=!1}))},c.prototype.onSynchMetadataReady=l.prototype.onSynchMetadataReady=function(t){this.processOnlyMetadata=!1,this._super.onSynchMetadataReady.call(this,t)},c.prototype.onManualStreamChange=l.prototype.onManualStreamChange=function(){this._initMp4State(),this.lastAudioTimestamp=NaN,this._super.onManualStreamChange.call(this)},c.prototype._initMp4State=l.prototype._initMp4State=function(){this._mp4State={audio:{shouldInit:!0,seqNum:0},video:{shouldInit:!0,seqNum:0}}},c.prototype._printLoadMessage=l.prototype._printLoadMessage=function(t,e){},l.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},c.prototype._synch=function(t){this.lastAudioTimestamp=NaN,this._super._synch.call(this,t)}},iSaY:function(t,e,i){"use strict";var n="api",r="network",o="decode";function s(t,e){this.code=t[0],this.message=t[1],this.type=t[2],this.isDrm=t[3],e&&(this.message+=": "+e),this.error=new Error(this.message,this.code)}t.exports={Error:s,ERR_XHR_LOAD:[11,"Failed to load xhr request",r,!1],ERR_PLAYLIST_LOAD:[12,"Failed to load Playlist",r,!1],ERR_SUBS_LOAD:[13,"Failed to load Subtitle",r,!1],ERR_SEGMENT_LOAD:[14,"Failed to load Segment",r,!1],ERR_PARTIAL_LOAD:[15,"Loader failed to load complete data",r,!1],ERR_MASTER_PLAYLIST_PARSE:[16,"Failed to parse Master Playlist",o,!1],ERR_MEDIA_PLAYLIST_PARSE:[17,"Failed to parse Media Playlist",o,!1],ERR_SEGMENT_PARSE:[18,"Failed to parse segment data",o,!1],ERR_API_NO_NODE:[19,"No video node is being set",n,!1],ERR_MIMETYPE_NOT_SUPPORTED:[20,"Mimetype is not supported in current browser",o,!1],ERR_XHR_LOAD_LIVE_PAUSE:[21,"Failed to load xhr request during live pause",r,!1],ERR_DRM_EME_MISSING:[22,"Browser EME components not detected or HTTPS required",o,!0],ERR_DRM_INIT:[23,"Failed to initialize DRM components",o,!0],ERR_DRM_CONFIG:[24,"Browser/system does not support the requested DRM configurations",o,!0],ERR_DRM_LICENSE_REQUEST:[25,"Failed to get DRM license",o,!0],ERR_XHR_LOAD_FORBIDDEN:[27,"Forbidden to load xhr request",r,!1]},s.prototype.dto=function(){return{code:this.code,message:this.message,type:this.type,isDrm:this.isDrm}}},izmf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("+Ojf"),r=i("a2lm"),o=function(){function t(t){this._eventBus=t}return t.prototype.create=function(t,e,i,o){this.node=n.default.render(r,{title:t.title,message:t.message,rep:t.rep,guid:{guid:e},sessionId:{videoSession:i},imageSrc:o,showBgImage:!!o});var s=this.node.querySelector(".vp-error-message"),a=t.errorInfo&&t.errorInfo.msg;return s&&a&&(s.innerHTML=a),n.default.classList(this.node).remove("vp-vis-hidden"),this.node},t.prototype.destroy=function(){this.node=null},t}();e.default=o},jYym:function(t,e,i){"use strict";t.exports={ERROR:-1,INITIAL:0,MEDIA_METADATA_LOADING:1,MEDIA_METADATA_LOADED:2,STREAM_METADATA_LOADING:3,STREAM_METADATA_LOADED:4,MEDIA_LOADED:5,PRELOADING:6,PLAY_REQUESTED:7,PLAYING:8,PAUSED:9,PLAY_COMPLETE:10}},jslM:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s,a=i("JcWZ"),u=i("oIMU");!function(t){t.PRELOADING="preloading",t.IDLE="idle"}(o||(o={})),function(t){t.START_PRELOAD="startPreload",t.PLAYER_IDLE="playerIdle"}(s=e.PreloadEvent||(e.PreloadEvent={}));var l=function(t){function e(e){var i=t.call(this,"PreloadManager")||this;return i._eventBus=e,i._preloadState=o.IDLE,i._preloadItem=null,i._eventBus.addEventListener(u.PRELOAD_START,i._onPreloadStart,i),i._eventBus.addEventListener(u.PRELOAD_COMPLETE,i._onPreloadComplete,i),i}return r(e,t),e.prototype.destroy=function(){this._preloadItem=null,this._preloadState=o.IDLE},e.prototype.startPreload=function(){if(this._preloadState===o.IDLE){var t=this._getPreloadItem();this.publish(s.START_PRELOAD,t)}},e.prototype.stopPreload=function(){},e.prototype.setPreloadItem=function(t){this._preloadItem=t},e.prototype._getPreloadItem=function(){return this._preloadItem},e.prototype._onPreloadStart=function(){this._preloadState=o.PRELOADING},e.prototype._onPreloadComplete=function(){this._preloadState=o.IDLE,this.publish(s.PLAYER_IDLE)},e}(a.default);e.default=l},k721:function(t,e,i){"use strict";var n=i("iMSc"),r=i("xbIp"),o=i("rdAy"),s=i("9BmL"),a=i("eeAi"),u=i("V66C").StreamTypes,l=n.TsStreamer,c=n.TsLiveStreamer,d=r.SubtitleStreamer,h=r.SubtitleLiveStreamer,p=o.Fmp4Streamer,f=o.Fmp4LiveStreamer,_=s.AacStreamer,m=s.AacLiveStreamer,y=a.Fmp4SubtitleStreamer,v=a.Fmp4SubtitleLiveStreamer;t.exports.create=function(t,e,i){if(!t||!e||"function"!=typeof t.create)return null;var n,r=e.type===u.SUBTITLES;switch(e.containerFormat){case"vtt":n=i?h:d;break;case"aac":n=i?m:_;break;case"mp4":n=r?i?v:y:i?f:p;break;case"ts":n=i?c:l}return n?t.create(n,e):null}},kd2E:function(t,e,i){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,i,o){e=e||"&",i=i||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=t.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var d,h,p,f,_=t[c].replace(a,"%20"),m=_.indexOf(i);m>=0?(d=_.substr(0,m),h=_.substr(m+1)):(d=_,h=""),p=decodeURIComponent(d),f=decodeURIComponent(h),n(s,p)?r(s[p])?s[p].push(f):s[p]=[s[p],f]:s[p]=f}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},kdA9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.get=function(t){var e;try{e=(e=window.localStorage.getItem(t))&&JSON.parse(e)||null}catch(t){e=null}return e},t.put=function(t,e){if(!t||!e)return!1;try{return e=JSON.stringify(e),localStorage.setItem(t,e),!0}catch(t){return!1}},t.remove=function(t){try{localStorage.removeItem(t)}catch(t){return}},t.getAllKeys=function(){var t=[];try{for(var e=0,i=localStorage.length;e<i;++e){var n=localStorage.key(e);n&&t.push(n)}return t}catch(e){return t}},t}();e.default=n},kfTt:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("8PPl"),l=i("+uLo");!function(t){t.WAITING="waiting",t.SEG_INFO_AVAILABLE="seg-info-available"}(o=e.RebufferingEvent||(e.RebufferingEvent={}));var c=function(t){function e(){var e=t.call(this,"Html5RawRebufferingManager")||this;return e._waitingEventTimer=null,e._waitingTime=0,e._bufferingStartTime=null,e._segInfoTime=0,e.reset(),e}return r(e,t),e.prototype.destroy=function(){this._clearWaitingEventTimer()},e.prototype.init=function(t){t&&(this._node=t,this.reset(),this._handleWaitingEvent())},e.prototype.onSeeking=function(){this._checkBuffering()},e.prototype.onEnded=function(){this._clearWaitingEventTimer()},e.prototype.reset=function(){this._ignoreBuffering=!0,this.playbackStuck=!1,this._timeAtBufferEmpty=NaN,this._lastKnownPlaybackTime=0,this._lastBufferCheckTime=null,this._waitingTime=0,this._segInfoTime=0,this._bufferingStartTime=null},e.prototype.publishWaitingEvent=function(t){if((!this.playbackStuck||!t)&&(this.playbackStuck||t)){var e={type:"waiting",value:t,ignoreBuffering:this._ignoreBuffering};this.publish(o.WAITING,e),this.playbackStuck=t,t?(this._timeAtBufferEmpty=this._node&&this._node.currentTime||0,this._ignoreBuffering||(this._bufferingStartTime=Date.now())):(this._ignoreBuffering=!1,this._timeAtBufferEmpty=NaN,this._bufferingStartTime&&(this._waitingTime+=Date.now()-this._bufferingStartTime,this._bufferingStartTime=null))}},e.prototype._handleWaitingEvent=function(){this._clearWaitingEventTimer(),this._waitingEventTimer=new l.default(250),this._waitingEventTimer.on(l.default.TIMER_EVENT,this._onTimer,this),this._waitingEventTimer.start()},e.prototype._onTimer=function(){this._checkBuffering(),this._getSegInfoDelta()>5e3&&(this._sendSegInfo(),this._segInfoTime=0)},e.prototype._checkBuffering=function(t){if(void 0===t&&(t=!1),this&&this._node){var e=this._getBufferCheckDelta();if(t||!(e<150)){var i=this._node.currentTime,n=!1;if(a.userAgent.safari>=6){var r=0;this._node.buffered&&this._node.buffered.length>0&&(r=this._node.buffered.end(this._node.buffered.length-1)),n=this._node.readyState!==u.VIDEO_TAG_READY_STATES.HAVE_ENOUGH_DATA||r>0&&r+1<this._node.duration&&r<i}i!==this._lastKnownPlaybackTime&&!n||this._node.paused?!isNaN(this._timeAtBufferEmpty)&&i>this._timeAtBufferEmpty&&this.publishWaitingEvent(!1):this.playbackStuck||(this._ignoreBuffering=i<=.02,this.publishWaitingEvent(!0)),this._lastKnownPlaybackTime=i,this._lastBufferCheckTime=Date.now()}}else this._clearWaitingEventTimer()},e.prototype._getBufferCheckDelta=function(){var t=Date.now();return this._lastBufferCheckTime=this._lastBufferCheckTime||t,t-this._lastBufferCheckTime},e.prototype._getSegInfoDelta=function(){var t=Date.now();return this._segInfoTime=this._segInfoTime||t,t-this._segInfoTime},e.prototype._sendSegInfo=function(){this.publish(o.SEG_INFO_AVAILABLE,{val:[{buf_dur:this._waitingTime}]}),this._waitingTime=0},e.prototype._clearWaitingEventTimer=function(){this._waitingEventTimer&&(this._waitingEventTimer.destroy(),this._waitingEventTimer=null)},e}(s.default);e.default=c},"khC+":function(t,e,i){"use strict";var n=i("vgmO"),r=i("g2LC"),o=i("ZESv"),s=i("U6jy");function a(t,e,i){var n=t;return r(e)?(i=e,"string"==typeof t&&(n={uri:t})):n=s(e,{uri:t}),n.callback=i,n}function u(t,e,i){return l(e=a(t,e,i))}function l(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),y)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(d),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function s(){if(!l){var e;clearTimeout(d),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=v,s=null;return 0!==e?(r={body:n(),statusCode:e,method:p,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=o(c.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,r,r.body)}}var a,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var d,h=c.url=t.uri||t.url,p=c.method=t.method||"GET",f=t.body||t.data,_=c.headers=t.headers||{},m=!!t.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:c};if("json"in t&&!1!==t.json&&(y=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(s,0)},c.onload=s,c.onerror=r,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=r,c.open(p,h,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(d=setTimeout(function(){if(!l){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}},t.timeout)),c.setRequestHeader)for(a in _)_.hasOwnProperty(a)&&c.setRequestHeader(a,_[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(f||null),c}t.exports=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i<t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,i,n){return(i=a(e,i,n)).method=t.toUpperCase(),l(i)}})},kjk6:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-ads-overlay'></div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},lHkY:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("O/dN"),r=i("oIMU"),o=i("MPla"),s=i("+Ojf"),a="https://assets.video.yahoo.net/fairplay.cer",u=n.PLAYER_DRM_CODES,l=n.ErrorGroup.Configuration,c=function(){function t(t,e,i,n){this._video=t,this._certificatePath=e||a,this._webkitNeedKeyCB=i,this._errorDispatcher=n,this._keyListener=this._onWebKitNeedKey.bind(this),this._webkitkeymessageListener=this._onWebKitKeyMessage.bind(this),this._webkitkeyerrorListener=this._onWebKitKeyError.bind(this),this._video.addEventListener("webkitneedkey",this._keyListener)}return t.prototype.destroy=function(){this._video.removeEventListener("webkitneedkey",this._keyListener),this._keySession=null},t.prototype._cleanup=function(){this._video.removeEventListener("webkitneedkey",this._keyListener),this._keySession&&(this._keySession.removeEventListener("webkitkeymessage",this._webkitkeymessageListener),this._keySession.removeEventListener("webkitkeyerror",this._webkitkeyerrorListener),this._keySession=null)},t.prototype._load=function(){var t=this;null!==this._certificatePath&&""!==this._certificatePath?void 0!==window.WebKitMediaKeys?o.default.ajax(this._certificatePath,{method:"GET",context:this,headers:{Pragma:"Cache-Control: no-cache","Cache-Control":"max-age=0"},responseType:"arraybuffer",successHandler:function(e){t._onCertificateLoaded(e)},failureHandler:function(e){t._dispatchError(u.ERR_DRM_CERT_LOAD_FAILED)}}):this._dispatchError(u.ERR_DRM_UNSUPPORTED_BROWSER,l):this._dispatchError(u.ERR_DRM_CERTPATH_MISSING,l)},t.prototype._onCertificateLoaded=function(t){var e=new Uint8Array(t);if(null!==e){var i=this._getSPCUrl(this._initData),n=this._extractContentId(i),r=this._concatInitDataIdAndCertificate(this._initData,n,e);if(!this._video.webkitKeys){var o=this._selectKeySystem();this._video.webkitSetMediaKeys(new WebKitMediaKeys(o))}this._video.webkitKeys||this._dispatchError(u.ERR_DRM_KEY_CREATION_FAILED),this._keySession=this._video.webkitKeys.createSession("video/mp4",r),this._keySession?(this._keySession.contentId=n,this._keySession.destinationURL=i,this._keySession.addEventListener("webkitkeymessage",this._webkitkeymessageListener),this._keySession.addEventListener("webkitkeyadded",function(t){}),this._keySession.addEventListener("webkitkeyerror",this._webkitkeyerrorListener)):this._dispatchError(u.ERR_DRM_KEY_SESSION_FAILED)}else this._dispatchError(u.ERR_DRM_CERT_NO_DATA)},t.prototype._onWebKitNeedKey=function(t){this._webkitNeedKeyCB(),null!==t.initData?(this._initData=t.initData,this._load()):this._dispatchError(u.ERR_DRM_INIT)},t.prototype._onWebKitKeyMessage=function(t){this._licenseRequestReady(t.target,t.message)},t.prototype._onWebKitKeyError=function(t){this._dispatchError(u.ERR_DRM_KEY_ERROR)},t.prototype._extractContentId=function(t){var e=document.createElement("a");e.href=t;var i=e.search.substr(1).split("&").filter(function(t){return t.length>2&&"b"===t[0]&&"="===t[1]});return i.length?i[0].split("=")[1]:""},t.prototype._getSPCUrl=function(t){var e=s.default.array16ToString(t).replace("skd://","https://");return e=e.substring(1,e.length)},t.prototype._concatInitDataIdAndCertificate=function(t,e,i){"string"==typeof e&&(e=s.default.stringToArray16(e));var n=0,r=new ArrayBuffer(t.byteLength+4+e.byteLength+4+i.byteLength),o=new DataView(r);new Uint8Array(r,n,t.byteLength).set(t),n+=t.byteLength,o.setUint32(n,e.byteLength,!0),n+=4;var a=new Uint8Array(r,n,e.byteLength);return a.set(e),n+=a.byteLength,o.setUint32(n,i.byteLength,!0),n+=4,new Uint8Array(r,n,i.byteLength).set(i),new Uint8Array(r,0,r.byteLength)},t.prototype._selectKeySystem=function(){return WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4")?"com.apple.fps.1_0":(this._dispatchError(u.ERR_DRM_NO_KEY_SYSTEM),null)},t.prototype._licenseRequestReady=function(t,e){var i=this,n={spc:s.default.base64EncodeUint8Array(e),assetId:t.contentId};o.default.ajax(t.destinationURL,{method:"POST",body:JSON.stringify(n),context:this,responseTypeJson:!0,beforeSend:function(e){e.session=t},successHandler:function(t,e,n,r){i._licenseRequestLoaded(t,r.session)},failureHandler:function(t,e,n){var r=403===n?u.ERR_DRM_FORBIDDEN_LICENSE:u.ERR_DRM_LICENSE_REQUEST;i._dispatchError(r)}})},t.prototype._licenseRequestLoaded=function(t,e){e.update(s.default.base64DecodeUint8Array(t.ckc))},t.prototype._dispatchError=function(t,e){void 0===e&&(e=n.ErrorGroup.Streaming);Object.keys(u)[parseInt(t,10)-1];this._errorDispatcher(r.ERROR,e,n.E_PLAYER_DRM,t),this._cleanup()},t}();e.default=c},lPOR:function(t,e,i){"use strict";t.exports.WorkerDefs={HlsTransformer:i("/Ggr"),Controller:i("qKMm")},t.exports.MessageTypes={EVENT:"event",MESSAGE:"message"},t.exports.MessageIds={CREATE:"create",DESTROY:"destroy",CALL_METHOD:"callMethod",EVENT:"eventPublish",CREATE_SRC_BUFFER:"createSrcBuffer",APPEND_SRC_BUFFER:"appendSrcBuffer",TIMED_METADATA:"timedMetadata",CLEAR_SRC_BUFFER:"clearSrcBuffer",END_OF_STREAM:"endOfStream",SAVE_AVG_BANDWIDTH:"saveAvgBandwidth",PLAY_AFTER_STREAM_CHANGE:"playAfterStreamChange",PAUSE_BEFORE_STREAM_CHANGE:"pauseBeforeStreamChange",DRM_INIT:"drmInit",DRM_LICENSE_INFO:"drmLicenseInfo",SKIP_GAP:"skipGap"}},lSF3:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n,r,o=i("B/eG");if(e.Promise=n,"undefined"!=typeof self?r=self:void 0!==t&&(r=t),r){var s=r.Promise,a=null;try{a=Object.prototype.toString.call(s.resolve())}catch(t){}"[object Promise]"===a&&(e.Promise=n=s)}n||(e.Promise=n=o.default)}).call(this,i("yLpj"))},lYNO:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sourceSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/sourceSchema",type:"object",properties:{streams:{type:"array",items:{$ref:"/streamSchema"},minItems:0}}}},m1ef:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=i("c+yx"),o=function(){function t(t){this._player=t,this._player&&this._player.addEventListener(n.Events.VIDEO_STARTED,this._sendMarketingBeacon,this)}return t.prototype.destroy=function(){this._player=null},t.prototype._sendMarketingBeacon=function(t){var e=t.customConfig&&t.customConfig.metrics&&t.customConfig.metrics.mmActivityId;if(e&&r.default.isValidUrl(e)){var i=e+"?rnd="+Math.random();r.default.sendIframeBeacon(i)}},t}();e.default=o},mKXf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ma23"),r=i("fLR+"),o=function(){function t(){this._pluginMap={},this._defaultPlugins=[]}return t.prototype.destroy=function(){this._pluginMap={},this._defaultPlugins=[]},t.prototype.register=function(t,e){if(r.isNullOrUndefined(t))throw new Error("Plugin instance is null");if(!this._isValidPlugin(t))throw new Error("Plugin interface is invalid or incomplete");if(this.getPlugin(t.type,t.mimetype))throw new Error("Plugin with same type and mimetype exists");this._pluginMap[t.type]||(this._pluginMap[t.type]=[]),this._pluginMap[t.type].push(t);try{t.prepare(e)}catch(t){}},Object.defineProperty(t.prototype,"defaultPlugins",{get:function(){return this._defaultPlugins},set:function(t){this._defaultPlugins=t},enumerable:!0,configurable:!0}),t.prototype.getExternalPlugins=function(){var t=this,e={},i=function(i){if(n._pluginMap.hasOwnProperty(i)){var r=n._pluginMap[i].filter(function(e){return!function(e){return t._defaultPlugins.some(function(t){return e.mimetype===t.mimetype&&e.type===t.type})}(e)});e[i]||(e[i]=[]),r.forEach(function(t){e[i].push(t)})}},n=this;for(var r in this._pluginMap)i(r);return e},t.prototype.getPlugin=function(t,e){var i=this._pluginMap[t];if(!i)return null;for(var n=0,r=i;n<r.length;n++){var o=r[n];if(o&&o.mimetype===e)return o}return null},t.prototype._isValidPlugin=function(t){if(!t||r.isNullOrUndefined(t.mimetype)||!r.isString(t.mimetype)||r.isNullOrUndefined(t.type)||!this._isValidType(t.type)||r.isNullOrUndefined(t.prepare)||!r.isFunction(t.prepare)||r.isNullOrUndefined(t.destroy)||!r.isFunction(t.destroy))return!1;switch(t.type){case n.PluginType.METADATA:return this._isValidMetadataPlugin(t);case n.PluginType.SOURCE_METADATA:return this._isValidSourceMetadataPlugin(t);case n.PluginType.AD:return r.isAdPlugin(t);case n.PluginType.VISUAL_SEEK:return this._isValidVisualSeekPlugin(t);case n.PluginType.BRANDING:return this._isValidBrandingPlugin(t);case n.PluginType.PLAYLIST:return this._isValidPlaylistPlugin(t)}return!1},t.prototype._isValidType=function(t){return t===n.PluginType.METADATA||t===n.PluginType.SOURCE_METADATA||t===n.PluginType.AD||t===n.PluginType.VISUAL_SEEK||t===n.PluginType.BRANDING||t===n.PluginType.PLAYLIST},t.prototype._isValidMetadataPlugin=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.recover)||!r.isFunction(t.recover)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype._isValidSourceMetadataPlugin=function(t){return!(!t||r.isNullOrUndefined(t.resolve)||!r.isFunction(t.resolve)||r.isNullOrUndefined(t.recover)||!r.isFunction(t.recover)||r.isNullOrUndefined(t.cancel)||!r.isFunction(t.cancel))},t.prototype._isValidVisualSeekPlugin=function(t){return!(!t||r.isNullOrUndefined(t.getThumbnailData)||r.isNullOrUndefined(t.update)||!r.isFunction(t.getThumbnailData)||!r.isFunction(t.update))},t.prototype._isValidBrandingPlugin=function(t){return!(!t||r.isNullOrUndefined(t.create)||!r.isFunction(t.create))},t.prototype._isValidPlaylistPlugin=function(t){return!(!t||!r.isFunction(t.create))},t}();e.default=o},mY9v:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b("<div class='vp-settings-container vp-vis-hidden' tabindex='0'>"),n.b("\n"+i),n.b("    <div class='vp-settings-item vp-settings-header' tabindex='0' aria-label='"),n.b(n.v(n.d("strings.VIDEO_QUALITY",t,e,0))),n.b("'>"),n.b("\n"+i),n.b("        "),n.b(n.v(n.d("strings.VIDEO_QUALITY",t,e,0))),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-settings-divider'></div>"),n.b("\n"+i),n.b("    <div class='vp-settings-item "),n.b(n.v(n.d("itemClasses.high",t,e,0))),n.b(" vp-disable' tabindex='2'>"),n.b("\n"+i),n.b("        <div class='vp-settings-checkmark'></div>"),n.b("\n"+i),n.b("        "),n.b(n.v(n.d("strings.HIGH",t,e,0))),n.b("\n"+i),n.b("        <div class='vp-settings-hdicon'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-settings-item "),n.b(n.v(n.d("itemClasses.medium",t,e,0))),n.b(" vp-disable' tabindex='3'>"),n.b("\n"+i),n.b("        <div class='vp-settings-checkmark'></div>"),n.b("\n"+i),n.b("        "),n.b(n.v(n.d("strings.MEDIUM",t,e,0))),n.b("\n"+i),n.b("        <div class='vp-settings-hdicon'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-settings-item "),n.b(n.v(n.d("itemClasses.low",t,e,0))),n.b(" vp-disable vp-last-item' tabindex='4'>"),n.b("\n"+i),n.b("        <div class='vp-settings-checkmark'></div>"),n.b("\n"+i),n.b("        "),n.b(n.v(n.d("strings.LOW",t,e,0))),n.b("\n"+i),n.b("        <div class='vp-settings-hdicon'></div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-settings-item "),n.b(n.v(n.d("itemClasses.auto",t,e,0))),n.b(" vp-active vp-disable' tabindex='1'>"),n.b("\n"+i),n.b("        <div class='vp-settings-checkmark'></div>"),n.b("\n"+i),n.b("        "),n.b(n.v(n.d("strings.AUTO",t,e,0))),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},ma23:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.BASE="plugin",t.METADATA="metadata-plugin",t.SOURCE_METADATA="source-metadata-plugin",t.AD="ad-plugin",t.VISUAL_SEEK="visual-seek",t.BRANDING="branding",t.PLAYLIST="playlist"}(e.PluginType||(e.PluginType={})),function(t){t.MEDIA_ITEM_PLAYBACK_STARTED="media-item-playback-started",t.MEDIA_ITEM_PLAYBACK_ENDED="media-item-playback-ended",t.MEDIA_ITEM_PLAYBACK_PROGRESS="media-item-playback-progress",t.AD_PLAYBACK_PROGRESS="ad-playback-progress"}(e.PluginPlayerEvent||(e.PluginPlayerEvent={})),function(t){t.IMAGE="image",t.SPRITE="sprite"}(e.VisualSeekType||(e.VisualSeekType={}))},mczr:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ");!function(t){t.EXTERNAL="EXTERNAL",t.HTML5_HLS="HTML5_HLS",t.HTML5_RAW="HTML5_RAW",t.HTML5_RAW_360="HTML5_RAW_360",t.HTML5_HLS_360="HTML5_HLS_360",t.HTML5_TV="HTML5_TV",t.HTML5_TV_TIZEN="HTML5_TV_TIZEN",t.HTML5_TV_ORSAY="HTML5_TV_ORSAY",t.UNKNOWN="UNKNOWN"}(o=e.RendererType||(e.RendererType={})),function(t){t.VIDEO="video",t.AD="ad"}(e.PlaybackMode||(e.PlaybackMode={})),function(t){t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.PAUSE="pause",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting"}(e.NativeVideoEvent||(e.NativeVideoEvent={})),function(t){t.PAUSE="pause",t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting"}(e.RendererEvent||(e.RendererEvent={})),function(t){t.SRC_SWITCHING="src-switching",t.SRC_SWITCHED="src-switched",t.CLICK="renderer-click",t.PLAYBACK_START_BLOCKED="play-blocked",t.SKIPPED="renderer-item-skipped",t.END_FULLSCREEN="end-fullscreen"}(e.CustomRendererEvent||(e.CustomRendererEvent={})),function(t){t.RENDER_PDL="1",t.RENDER_VPAID="2",t.RENDER_HLS="3"}(e.ExternalPlayerCapability||(e.ExternalPlayerCapability={})),function(t){t.PLAYBACK_ERROR="external-player-error",t.ITEM_LOADED="external-player-item-loaded",t.PLAY_REQUESTED="external-player-play-requested",t.PLAYING="external-player-playing",t.PAUSED="external-player-paused",t.PLAY_COMPLETE="external-player-play-complete",t.TIME_UPDATE="external-player-time-update",t.MUTE_CHANGED="external-player-mute-changed",t.VOLUME_CHANGED="external-player-volume-changed",t.SKIPPED="external-player-item-skipped"}(e.ExternalPlayerEvent||(e.ExternalPlayerEvent={}));var a=function(t){function e(i){void 0===i&&(i="renderer");var n=t.call(this,i)||this;return n.type=e.type,n._currentPlayableItem=null,n}return r(e,t),e.canUse=function(){return!1},e.prototype.getPlayableItem=function(){return this._currentPlayableItem},e.type=o.UNKNOWN,e}(s.default);e.Renderer=a,e.default=a},mfA3:function(t,e,i){"use strict";t.exports=s;var n=.1,r="append",o="remove";function s(t,e,i){var r=this;r._node=r._context.node,r._destroyed=!1,r.type=e,r.mimeType=i,r._mediaSource=t,r.buffer=t.addSourceBuffer(i),r._appendQueue=[],r._removeQueue=[],r._waitingList=[],r._endOfStream=!1,r._minBufferTime=n,r.ready=!1,r.TIMESTAMP_COMPARE_EPSILON=.065,r.GOP_LENGTH=2,r._transferCompleteHandler=r._onTransferComplete.bind(r),r.buffer.addEventListener("updateend",r._transferCompleteHandler),r._errorHandler=function(){r.abort()},r.buffer.addEventListener("error",r._errorHandler),r.state="open"}s.prototype.destroy=function(){this.remove(),this._appendQueue=[],this._removeQueue=[],this._waitingList=[],this.state="closed"},s.prototype.remove=function(){this._destroyed||(this._destroyed=!0,this.abort(),this.buffer.removeEventListener("updateend",this._transferCompleteHandler),this.buffer.removeEventListener("error",this._errorHandler),"closed"!==this._mediaSource.readyState&&this._mediaSource.removeSourceBuffer(this.buffer))},s.prototype.setMinBufferTime=function(t){this._minBufferTime=Math.max(n,t)},s.prototype.appendBuffer=function(t,e,i,n,o){if(!this._destroyed){var s={type:r,cb:o,buffer:t,startTime:e,endTime:i,time:i-e,onlyMetadata:n||!1};this._appendQueue.push(s),this._processSourceBufferTasks()}},s.prototype.clearBuffer=function(t,e,i){if(this._destroyed||t>=e)return i("["+this.constructor.name+"] Invalid remove buffer call");var n={type:o,cb:i,startTime:t,endTime:Math.round(1e3*parseFloat(e))/1e3};this._removeQueue.push(n),this._processSourceBufferTasks()},s.prototype.abort=function(){if("open"===this._mediaSource.readyState&&!this._destroyed){this._appendQueue=[],this._removeQueue=[],this._waitingList=[];try{this.buffer.abort()}catch(t){}}},s.prototype.clearAll=function(){if("closed"!==this._mediaSource.readyState&&!this._destroyed){this.abort();try{var t=this.buffer.buffered,e=t.length?t.start(0):0,i=t.length?t.end(t.length-1):0;i>e&&this.buffer.remove(e,i)}catch(t){}}},s.prototype.setEndOfStream=function(t){this._endOfStream=t,this._destroyed||(t?(this._markClosedOnComplete(),this._processSourceBufferTasks()):this.state=this._appendQueue.length?this.state:"empty")},s.prototype._markClosedOnComplete=function(){this._endOfStream&&"empty"===this.state&&!this._waitingList.length&&(this.state="closed")},s.prototype._onTransferComplete=function(){if(!this._destroyed){if(this.ready=!0,this._waitingList.length)this._waitingList.shift().cb(null,this);this._appendQueue.length||(this.state="empty"),this._processSourceBufferTasks(),this._markClosedOnComplete()}},s.prototype._processSourceBufferTasks=function(){for(;this._removeQueue.length;){if(this.buffer.updating)return;this._performTask(this._removeQueue.shift())}for(;this._appendQueue.length;){if(this.buffer.updating)return;var t=this.getBufferLength()+this.getTotalPendingBufferLength(),e=this._appendQueue.length&&this._appendQueue[0]&&this._appendQueue[0].onlyMetadata;if(!this._endOfStream&&t<this._minBufferTime&&!e)return;this._performTask(this._appendQueue.shift())}},s.prototype._performTask=function(t){if(t&&t.type)try{t.type===r?this.buffer.appendBuffer(t.buffer):t.type===o&&this.buffer.remove(t.startTime,t.endTime),this._waitingList.push(t),this.state="updating"}catch(e){if("QuotaExceededError"===e.name)this._clearOnQuotaExceed()&&t.type===r&&this._appendQueue.unshift(t)}},s.prototype._clearOnQuotaExceed=function(){var t=this._node.buffered,e=t.length>0?t.start(0):NaN,i=this._node.currentTime-this.GOP_LENGTH;return i>e&&(this.buffer.remove(e,i),!0)},s.prototype.getTotalPendingBufferLength=function(){var t=0;return this._appendQueue.forEach(function(e){e&&e.time&&(t+=e.time)}),t},s.prototype.getBufferLength=function(){var t,e=this._context.node,i=this.TIMESTAMP_COMPARE_EPSILON,n=0,r=e.currentTime,o=null;try{o=this.buffer.buffered;for(var s=0;o&&s<o.length;s++)if(r+i>=o.start(s)&&r<o.end(s)){t=s;break}t>=0&&o&&o.length&&(n=o.end(t)-r)}catch(t){}return n}},mhJ4:function(t,e,i){"use strict";t.exports=o;var n=i("/iNa"),r=i("/Ggr");function o(t,e){t.noDemux=!0,this.constructor.super_.call(this,t,e),this._super=this.constructor.super_.prototype}n.inherits(o,r),o.prototype.destroy=function(){this._super.destroy.call(this)}},miuH:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.b('<div class="vp-adview-simple">'),n.b("\n"+i),n.b('    <div class="vp-adbreak-progress">'),n.b("\n"+i),n.b("        <span>Ad 1/3: 15s</span>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b('    <div class="vp-adbreakitem-cta">'),n.b("\n"+i),n.b('        <div class="vp-adview-btn">Get Now</div>'),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("</div>"),n.b("\n"),n.fl()},partials:{},subs:{}})},"nD/R":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.metricsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/metricsSchema",type:"object",properties:{disableAllBeacons:{type:"boolean"},comscoreC4:{type:"string"},ccode:{type:"string"},sec:{type:"string"},skipComscore:{type:"boolean"},skipABRBeacon:{type:"boolean"},ywaSamplingRate:{default:1,type:"number"},ultSamplingRate:{default:1,type:"number"},qosSamplingRate:{default:1,type:"number"},cpos:{type:"string"},progressBeaconStrategy:{type:"object",properties:{fixed:{type:"array",items:[{type:"number"}]},recurring:{type:"number"},playerUnload:{type:"boolean"},playPause:{type:"boolean"}}}}}},nHOF:function(t,e,i){"use strict";t.exports=f;var n=i("/iNa"),r=i("yvII").Events,o=i("3/TB"),s=i("UbnH"),a=i("IWBN"),u=i("HNE+"),l=i("y5bh").HLSEvent,c=i("2fkz"),d=c.Command,h=c.CmdNames,p=c.CmdEvents;function f(t,e){this._validateData(t),d.call(this,t,e),this.name=h.CMD_SEGMENT_LOAD,this._segment=t.segment,this._stream=t.stream,this.__controller=this.data.controller,this._model=this.__controller.model,this._url=this._segment?this._segment.url:t.url,this._streamIndex=this._segment?this._segment.streamIndex:t.stream.index,this._encryptionData=this._segment?this._segment.encryptionData:null,this._loading=!1,this._loadProfiler=new a,this._bytesTotal=0,this._segmentPerfInfo=null;var i=t.controller.services;this._retryExclusion=[403],this._loader=i.getNewLoader(this._configureLoaderOptions()),this._encryptionData&&this._encryptionData.keyUri&&(this._keyLoader=i.getNewLoader(this._configureKeyLoaderOptions())),this._bandwidthEstimator=this.__controller.services.bandwidthEstimator,this._metricsTimer=new u(this._bandwidthEstimator.COLLECTION_INTERVAL),this._metricsTimer.addEventListener(this._addSample,this),this._createSegmentLoadProcessor()}n.inherits(f,d),f.prototype.destroy=function(){this.cancel(),this._loader.destroy(),this._metricsTimer.destroy(),this._loadProfiler.destroy(),this._keyLoader&&this._keyLoader.destroy(),this._segmentDataProcessor&&this._segmentDataProcessor.destroy(),d.prototype.destroy.call(this)},f.prototype._validateData=function(t){if(!(t&&t.segment&&t.stream&&t.controller))throw new Error("Invalid argument: data argument of the command is not complete")},f.prototype._configureKeyLoaderOptions=function(){return{responseType:"arraybuffer",isChunkedLoad:!1,headerFields:{},retryExclusion:this._retryExclusion}},f.prototype._configureLoaderOptions=function(){var t={responseType:"arraybuffer",isChunkedLoad:!0,headerFields:{},retryExclusion:this._retryExclusion},e=this._segment?this._segment.bitrate*this._segment.duration/8:0;return this._segment.brStartOffset>=0&&this._segment.brEndOffset>=0&&(t.headerFields.Range="bytes="+this._segment.brStartOffset+"-"+this._segment.brEndOffset,e=this._segment.brEndOffset-this._segment.brStartOffset+1),t.minChunkSize=.025*e,"atlas"===this._segment.cdn&&(t.headerFields.Accept="*/*; X-PB-SESSION-ID="+this._segment.sessionId),0===this._segment.streamIndex&&(t.timeout=1e4),t},f.prototype._createSegmentLoadProcessor=function(){var t=this._getSegmentLoadProcessorConfig();t.containerFormat=this._segment.containerFormat,t.encryptionData=this._encryptionData;var e=this.__controller.create(o,t);e&&(e.addEventListener(s.DATA_PROCESS_PROGRESS,this._onDataProcessProgress,this),e.addEventListener(s.DATA_PROCESS_COMPLETE,this._onDataProcessComplete,this),e.addEventListener(s.DATA_PROCESS_ERROR,this._onDataProcessError,this),this._segmentDataProcessor=e)},f.prototype._getSegmentLoadProcessorConfig=function(){return{seqNum:this._segment.seqNum,discontinuity:this._segment.discontinuity,demux:this._model.config.demux,width:this._stream?this._stream.width:640,height:this._stream?this._stream.height:360,timescale:this._stream.timescale?this._stream.timescale:this._model.timescale,duration:this._model.duration,segDuration:this._segment.duration?this._segment.duration:-1,pcr:this._model.getPCR(),frameRate:this._stream?this._stream.frameRate:30,mp4State:this.data.state?this.data.state.mp4:null,startOffsetTimestamp:this._model.startOffsetTimestamp,startTime:this._segment.startTime,lastAudioTimestamp:this.data.state?this.data.state.lastAudioTimestamp:NaN,lastAudioFrameDuration:this.data.state?this.data.state.lastAudioFrameDuration:NaN,prevSegEndTimeStamps:this._model.getPrevSegEndTimestamps(this._stream,this._segment),isAltAudioActive:!!this.data.state&&this.data.state.isAltAudioActive,live:this._model.live,onlyMetadata:this.data.onlyMetadata,useEditBox:!0,userAgent:this._model.userAgent,dash:this._model.isDash(),type:this._stream.type}},f.prototype.execute=function(){this._bytesTotal=0,this._beginning=!1,this._loading=!0,this._chunkLoadStartTime=Date.now(),this._chunkLength=0,this._chunkDownloadTime=0,this._segment&&(this._segment.totalDownloadTime=0,this._segment.timeToFirstByte=0),this._startLoadTime=Date.now(),this._metricsTimer.start(),this._encryptionData&&this._keyLoader&&this._loadEncryptionData(),this._loadSegmentData()},f.prototype.cancel=function(){this._close(),this._loader.reset()},f.prototype._close=function(){this._metricsTimer.reset(),this._segmentDataProcessor&&this._segmentDataProcessor.close(),this._loading=!1},f.prototype._loadEncryptionData=function(){var t=this;if(t._encryptionData&&t._keyLoader){var e=t._stream.lastKey,i=t._encryptionData.keyUri;if(e&&e.keyUri&&e.key&&e.keyUri===i)t._onKeyLoadComplete(e.key);else{t._keyLoader.addEventListener(r.COMPLETE,function(e){t._onKeyLoadComplete(e)},t),t._keyLoader.addEventListener(r.ERROR,function(e){t.publish(p.CMD_ERROR,t,e)},t),t._keyLoader.load(i)}}},f.prototype._loadSegmentData=function(){var t=this;if(t._loader){var e=t._url;t._loader.addEventListener(r.COMPLETE,function(){t._onLoadComplete()},t),t._loader.addEventListener(r.PROGRESS,function(e,i){t._onProgress(e,i)},t),t._loader.addEventListener(r.ERROR,function(e){t.publish(p.CMD_ERROR,t,e)},t),t._loader.addEventListener(r.BYTES_LOADED,function(e,i){t._onBytesLoaded(e,i)},t),t._loader.load(e)}},f.prototype._onBytesLoaded=function(t,e){this._segment&&0===this._segment.timeToFirstByte&&(this._segment.timeToFirstByte=Date.now()-this._startLoadTime,this.__controller.sendEvent(l.SEGMENT_FIRST_BYTE_LOADED,e),this.publish(p.CMD_PROGRESS,this,{position:"firstByte"})),this._chunkLength+=Math.max(t-this._bytesTotal,0),this._bytesTotal=t},f.prototype._onProgress=function(t,e){e!==this._bytesTotal&&this._onBytesLoaded(e),this._segmentDataProcessor&&this._segmentDataProcessor.append(t)},f.prototype._onLoadComplete=function(){this._addSample(),this._metricsTimer.stop();var t=this._getTotalDownloadTime();this._segmentDataProcessor&&this._segmentDataProcessor.endOfSegment(),t>0&&this._bandwidthEstimator.replaceSamples(this._bytesTotal,t)},f.prototype._onKeyLoadComplete=function(t){t.type="key",t.initVector=this._encryptionData.initVector,t.seqNum=this._segment.seqNum,this._segment.encryptionData.key=t,this._stream.lastKey=this._encryptionData,this._segmentDataProcessor.append(t)},f.prototype._onDataProcessProgress=function(t){t&&(t.putParam&&(this._segmentPerfInfo&&t.putParam("perfInfo",this._segmentPerfInfo),t.putParam("bytesTotal",this._bytesTotal)),this.publish(p.CMD_PROGRESS,this,t))},f.prototype._onDataProcessComplete=function(t){this.publish(p.CMD_COMPLETE,this,t)},f.prototype._onDataProcessError=function(){},f.prototype._addSample=function(){var t=Math.max(this._chunkLength,0),e=Date.now();this._chunkDownloadTime=e-this._chunkLoadStartTime,this._metricsTimer.reset(),this._bandwidthEstimator&&this._chunkDownloadTime>10&&(this._chunkLoadStartTime=e,this._segment&&(this._segment.totalDownloadTime+=this._chunkDownloadTime),this._chunkLength=0,this._bandwidthEstimator.addSample({size:t,time:this._chunkDownloadTime})),this._metricsTimer.start()},f.prototype._getTotalDownloadTime=function(){var t=this._loadProfiler?this._loadProfiler.getPerformanceTiming(["startTime","requestStart","responseStart","responseEnd","secureConnectionStart","fetchStart","connectStart","domainLookupStart"],this._url):null;return this._segmentPerfInfo=t,t&&t.responseEnd&&t.startTime?t.responseEnd-t.startTime:null}},nyAz:function(t,e,i){"use strict";t.exports={useWorker:!0,maxRetries:5,maxBuffer:60,maxTotalBuffer:300,requestTimeout:10,chunkedRequestTimeout:5,pastBufferLengthLimit:{vod:180,live:10},segmentLoadMonitorInterval:1,preloadBufferLimit:0,skipGapLimit:.5,variableMinBuffer:!0,minBufferTime:{vod:.1,live:4},sendAbrAnalytics:!1,demux:{startChunkWithKeyFrame:!0},stopBufferingOnPause:!1,dimensions:{width:640,height:360},bwHistoryMaxAge:300}},oIMU:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MEDIA_ITEM_NEED_SOURCE="media-item-need-source",e.MEDIA_ITEM_ERROR="media-item-error",e.MEDIA_ITEM_METADATA="media-item-metadata",e.MEDIA_ITEM_ADDED="media-item-added",e.MEDIA_ITEM_REMOVED="media-item-removed",e.MEDIA_ITEM_CURRENT="media-item-current",e.MEDIA_ITEM_COMPLETE="media-item-complete",e.AD_BREAK_STARTED="ad-break-started",e.AD_BREAK_ENDED="ad-break-ended",e.AD_BREAK_ITEM_CURRENT="ad-break-item-current",e.AD_BREAK_ITEM_ENDED="ad-break-item-ended",e.AD_BREAK_ITEM_ERROR="ad-break-item-error",e.AD_BREAK_ITEM_SKIPPED="ad-break-item-skipped",e.AD_BREAK_ITEM_CLICKED="ad-break-item-clicked",e.AD_METRICS="ad-metrics",e.OPSS_VISIBILITY_CHANGED="opss-visibility-changed",e.TIMED_METADATA_RECEIVED="timed-metadata-received",e.ERROR="player-error",e.INTERNAL_ERROR="player-internal-error",e.WARNING="player-warning",e.INFO="player-info",e.KEYDOWN="keydown",e.WINDOW_ON_FOCUS="focus",e.WINDOW_ON_BLUR="blur",e.START_SCREEN_RENDERED="start-screen-rendered",e.START_SCREEN_CLICK="start-screen-click",e.END_SCREEN_RENDERED="end-screen-rendered",e.CTRL_ENDSCREEN_VID="selected-endscreen-video",e.RELATED_ITEM_CLICK="related-item-click",e.UP_NEXT_PG_CLICK="upnext-pg-click",e.SEEK_BAR_MOUSEOVER="seek-bar-mouseover",e.SEEK_BAR_MOUSEOUT="seek-bar-mouseout",e.TOGGLE_PLAY_PAUSE="toggle-play-pause",e.CONTROLS_SEEK_START="controls-seek-start",e.CONTROLS_SEEK_END="controls-seek-end",e.CONTROLS_SEEKING="controls-seeking",e.CONTROLS_SET_VOLUME="controls-set-volume",e.CONTROLS_SET_MUTE="controls-set-mute",e.FULLSCREEN_CHANGE="fullscreen-change",e.PLAYER_DIMENSION_CHANGE="player-dimension-change",e.METADATA_AVAILABLE="metadata-available",e.RELATED_ITEMS_LOADED="related-items-loaded",e.RENDERER_SWITCHED="renderer-switched",e.TOUCH_TO_PLAY_RESTRICTION_REMOVED="mobile-touch-play-restriction-removed",e.RENDER_PLAYLIST_FIRST_BATCH="render-playlist-first-batch",function(t){t.TOGGLE_PLAYING="cast-toggle-playing",t.BUFFERING="cast-buffering",t.MEDIA_CHANGED="cast-media-changed",t.PLAYBACK_PROGRESS="cast-playback-progress",t.VIDEO_ENDED="cast-video-ended",t.PLAYLIST_ENDED="cast-playlist-ended",t.CONNECTION_STATUS_CHANGED="cast-connection-changed",t.VOLUME_CHANGED="cast-receiver-volume-changed",t.MUTE_CHANGED="cast-receiver-mute-changed",t.CAPTION_AVAILABILITY_CHANGED="cast-captions-availability-changed"}(e.CAST||(e.CAST={})),e.CONTROLS_AUDIO_CHANGE="controlsAudioChange",e.MULTI_LANGUAGES_AVAILABLE="multiLanguagesAvailable",e.THREE_SIXTY_READY="360-ready",e.THREE_SIXTY_INTERACT="360-interact",e.THREE_SIXTY_PIE_INTERACT="360-pie-interact",e.SWF_READY="swf-ready",e.SWF_READY_TIMEOUT="swf-ready-timeout",e.PLAYER_RESIZE="player-resize",e.RENDERER_PLUGIN_LOADED="rendererPluginLoaded",e.RENDERER_PLUGIN_LOAD_FAILED="rendererPluginLoadFailed",e.RENDERER_PLUGIN_LOAD_TIMED_OUT="rendererPluginLoadTimedOut",e.VTT_SEGMENT_LOADED="vttSegmentLoaded",e.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",e.MEDIA_RELOAD_BEGIN="mediaReloadBegin",e.MEDIA_RELOAD_END="mediaReloadEnd",e.MEDIA_PLAYLIST_LOADED="mediaPlaylistLoaded",e.MEDIA_PLAYLIST_UPDATED="mediaPlaylistUpdated",e.SUBTITLE_PLAYLIST_UPDATED="subtitlePlaylistUpdated",e.BITRATE_LIST_CHANGED="bitrateListChanged",e.ABR_DATA_UPDATE="abrDataUpdate",e.FRAG_LOAD_RETRY_FAILURE="fragLoadRetryFailure",e.LIVE_MEDIA_PLAYLIST_LOAD_RETRY_FAILURE="liveMediaPlaylistLoadRetryFailure",e.LIVE_LOADING_LATE="liveLoadingLate",e.RECOVERY_START="recoveryStart",e.RECOVERY_METADATA_READY="recoveryMetadataReady",e.ER_READY="erReady",e.ER_ERROR="erError",e.CONVIVA_READY_FOR_SESSION_CREATION="convivaReadyForSessionCreation",e.PLAYBACK_INFO="playback-info",e.RELOAD_FRAGMENT="ReloadFragment",e.SUBTITLE_TRACK_RECEIVED="subtitle-track-received",e.AD_SUBTITLE_TRACK_ADDED="ad-subtitle-track-added",e.PAGE_VISIBILITY_CHANGED="pageVisibilityChanged",e.LIVE_RELOAD_MEDIA="reloadMedia",function(t){t.INFO_UPDATE="infoUpdate",t.SEGMENT_FIRST_BYTE_LOADED="segmentFirstByteLoaded",t.SEGMENT_RENDERED="segmentRendered",t.VTT_SEGMENT_LOADED="vttSegmentLoaded",t.STREAM_SWITCHED="streamSwitched",t.LIVE_LOADING_LATE="liveLoadingLate",t.STREAM_UPDATED="streamUpdated",t.HLS_WAITING="hlsWaiting",t.CUEPOINT_DETECTED="cuepointDetected",t.CUEPOINT_STARTED="cuepointStarted",t.SUBTITLE_STREAM_UPDATED="subtitleStreamUpdated",t.ABR_DATA_UPDATED="abrDataUpdated",t.PRELOAD_PROGRESS="preloadProgress",t.SEGINFO_METRICS_AVAILABLE="segInfoMetricsAvailable",t.CONTENT_LOAD_FINISHED="contentLoadFinished",t.PRELOAD_START="preloadStart",t.PRELOAD_COMPLETE="preloadComplete",t.BUFFER_GROWTH_DETECTED="bufferGrowthDetected",t.CC_VTT_AVAILABLE="ccVttAvailable",t.MULTI_LANGUAGES_AVAILABLE="multiLanguagesAvailable",t.TIMED_METADATA_READY="timedMetadataReady",t.MEDIA_METADATA_LOADED="mediaMetadataLoaded"}(e.HLSVideoEvent||(e.HLSVideoEvent={})),e.SEG_INFO_AVAILABLE="segInfoAvailable",e.CONTENT_LOAD_FINISHED="contentLoadFinished",e.PRELOAD_START="preloadStart",e.PRELOAD_COMPLETE="preloadComplete",e.BUFFER_GROWTH_DETECTED="bufferGrowthDetected",function(t){t.SRC_SWITCHING="video-src-switching",t.SRC_SWITCHED="video-src-switched",t.CLICK="video-click",t.PAUSE="pause",t.ENDED="ended",t.ERROR="error",t.LOADEDMETADATA="loadedmetadata",t.LOADEDDATA="loadeddata",t.STALLED="stalled",t.LOADSTART="loadstart",t.PLAY="play",t.PLAYING="playing",t.SEEKING="seeking",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.VOLUMECHANGE="volumechange",t.WAITING="waiting"}(e.VideoEvent||(e.VideoEvent={})),e.VIDEO_REQUEST="video-request",e.PLAYBACK_REQUEST="playback-request",e.PLAYBACK_STARTED="playback-started",e.PLAYBACK_RESUMED="playback-resumed",e.PLAYBACK_PROGRESS="playback-progress",e.PLAYBACK_STALLED="playback-stalled",e.PLAYBACK_COMPLETE="playback-complete",e.PLAYBACK_STOPPED="playback-stopped",e.PLAYBACK_ERROR="playback-error",e.API_CALLED="api-called",e.HLS_FIRST_TS_LOAD_START="hls-first-ts-load-start",e.HLS_FIRST_TS_FIRST_BYTE_ARRIVE="hls-first-ts-first-byte-arrive",e.CTRL_PLAYPAUSE="ctrl-play-pause",e.CTRL_SEEK="ctrl-seek",e.CTRL_VOLUME="ctrl-volume",e.CTRL_FULLSCREEN="ctrl-fullscreen",e.CTRL_SETTINGS="ctrl-settings",e.CTRL_REPLAY="ctrl-replay",e.CTRL_PLAYREQUEST="ctrl-playrequest",e.CUEIN_DETECTED="cue-in-detected",e.YVAP_INFO_UPDATE="yvap-info-update",e.YVAP_MIDROLL_CACHE_UPDATE="yvap-midroll-cache-update",function(t){t.SETTINGS="cc-settings",t.TOGGLE="cc-toggle",t.UI_TOGGLE="cc-ui-toggle",t.REQUEST_UI_DATA_FOR_MEDIA_ITEM="cc-request-ui-data-for-media-item",t.REMOVED="cc-destroy",t.SHOW_CONTROLS="cc-show-controls",t.LANGUAGE_CHANGE="cc-language-change",t.CC_OPTIONS_LANGUAGE_CHANGE="cc-options-language-change",t.FONT_SIZE_CHANGE="cc-font-size-change",t.FONT_FACE_CHANGE="cc-font-face-change",t.BG_OPACITY_CHANGE="cc-bg-opacity-change",t.USER_STYLE_PREFERENCES_CHANGE="cc-user-style-preferences-change",t.UPDATE_STYLE="cc-update-style",t.POSITION_CHANGE="cc-position-change",t.POSITION_FLOAT="cc-position-float"}(e.CCEvent||(e.CCEvent={})),function(t){t.GET_BITRATE_FOR_OPSS="ctv-get-bitrate-for-opss"}(e.CTV||(e.CTV={})),e.BEFORE_PROGRESS_BEACON="before-progress-beacon",e.BEFORE_INCOMPLETE_EXIT="before-incomplete-exit",e.METRICS={INIT_TO_STARTSCREEN:{type:"titssc",desc:"VideoPlayer init to StartScreen Rendered"},HLS_FIRST_TS_LOAD_START:{type:"hftls",desc:"First ts loading starts in HLS"},HLS_FIRST_TS_FIRST_BYTE_ARRIVE:{type:"hftfba",desc:"First byte arrives for the first ts loading in HLS"},CLICK_TO_START:{type:"ttsapf",desc:"Player click to playback start"},INIT_TO_START:{type:"ttsapt",desc:"Init to playback start (autoplay)"},PLAYBACK_START:{type:"tpb",desc:"Playback request to playback start"},INIT_CONT_PLAY_START:{type:"tcps",desc:"Time difference between video-end and next video start"},PLAYBACK_STALLED:{type:"tps",desc:"Playback buffering start to buffering end"},LOAD_TO_LOADED_DATA:{type:"tltld",desc:"Time from load() to loaded data"},CMS_REQUEST:{type:"tsapic",desc:"CMS request to CMS response"},CMS_SOURCE_REQUEST:{type:"tssrcapic",desc:"CMS source request to CMS source response"},SWF_READY:{type:"tswfr",desc:"Player SWF is ready"},SWF_OBJECT_TO_INIT_START:{type:"tobtswfinit",desc:"Time from creation of object tag to call of swf constructor"},INIT_RENDER_GAP:{type:"tirg",desc:"Time gap between end of construction and beginning of render"},RENDER_TO_SWF:{type:"trtswf",desc:"Time from init to object tag creation"},SET_WATCH_HISTORY:{type:"tsetwh",desc:"YQL+ call to save watch history"},VP_CONSTRUCTOR:{type:"tcons",desc:"VideoPlayer Constructor"},GET_USER_PREFS:{type:"tgetcc",desc:"YQL+ call to get captions preferences"},CREATE_RENDERER:{type:"trcreate",desc:"Creating the renderer (swf/html)"},YVAP_READY:{type:"tyvapr",desc:"VideoAdPlugin is ready"},YVAP_NOAD:{type:"tyvapadn",desc:"Ad None"},YVAP_ADSTARTED:{type:"tyvapads",desc:"Ad Started"},STREAM_REQUEST_TO_RENDER:{type:"treqtr",desc:"Stream Latency (From request to render)"},STREAM_PLAY_TO_RENDER:{type:"tsltps",desc:"Media playback start to video render"},AD_PLUGIN:{type:"tadp",desc:"ad plugin latency - for ad playback start or timeout"}},function(t){t.ORIENTATION_CHANGE="device-orientation-change"}(e.Device||(e.Device={})),e.PROFILE_START="profile-start",e.PROFILE_END="profile-end"},oNNP:function(t,e,i){"use strict";var n=i("D3zA");t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},oYNg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fLR+"),r=i("+Ojf"),o=i("yegX"),s=function(){function t(t,e,i,n){var s=this;this._mediaItem=t,e.adBreakId=e.adBreakId||r.default.generateGuid(),this._rawAdBreakData=r.default.deepCopy(e),this._adRendererTypes=i,this._capabilities=n,this.adBreakId=e.adBreakId,Array.isArray(e.adBreakItems)&&(this.adBreakItems=e.adBreakItems.map(function(t){return new o.default(s,t,i,n)})),this._duration=e.duration||0,0===this._duration&&this.adBreakItems&&this.adBreakItems.forEach(function(t){s._duration+=t.duration||0}),this.customInfo=e.customInfo,this.startOffset=e.startOffset,this.type=e.type,this.mimetype=e.mimetype||"",this.backToLiveDuration=e.backToLiveDuration||0,this.startTime=e.startTime||0,this.active=e.active||!0}return Object.defineProperty(t.prototype,"mediaItem",{get:function(){return this._mediaItem},enumerable:!0,configurable:!0}),t.prototype.appendAdBreakItems=function(t){var e=this;t.forEach(function(t){if(!e._isBreakItemExist(t.adBreakItemId)){var i=new o.default(e,t,e._adRendererTypes,e._capabilities);e.adBreakItems.push(i),e._duration+=i.duration||0}})},t.prototype.insertAdBreakItems=function(t,e){var i=this,n=e;t.forEach(function(t){if(!i._isBreakItemExist(t.adBreakItemId)){var e=new o.default(i,t,i._adRendererTypes,i._capabilities);i.adBreakItems.splice(n,0,e),i._duration+=e.duration||0,n++}})},t.prototype.removeAdBreakItems=function(t){var e,i=this,n=this.adBreakItems.length;t.forEach(function(t){i._isBreakItemExist(t.adBreakItemId)&&function(t){for(e=0;e<n;e++)if(i.adBreakItems[e].adBreakItemId===t.adBreakItemId){i._duration-=t.duration||0,i._duration<0&&(i._duration=0),i.adBreakItems.splice(e,1);break}}(t)})},t.prototype.setActive=function(t){n.isBoolean(t)&&(this.active=t)},t.prototype.backToLive=function(){},t.prototype.breakNow=function(){},Object.defineProperty(t.prototype,"rawItemData",{get:function(){return r.default.deepCopy(this._rawAdBreakData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t.prototype.hasResolved=function(){return!(!this.adBreakItems||0===this.adBreakItems.length)},t.prototype._isBreakItemExist=function(t){return this.adBreakItems.some(function(e){return e.adBreakItemId===t})},t}();e.default=s},oorc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r,o,s,a,u,l,c,d,h=i("PCHl"),p=i("8PPl"),f=i("xqNZ"),_=i("kdA9"),m=i("+Ojf"),y=i("X1lw"),v=i("ECHB");!function(t){t.Main=".vp-ccsettings-main",t.Extra=".vp-ccsettings-extra",t.Options=".vp-ccsettings-options"}(n=e.SettingsSubContainers||(e.SettingsSubContainers={})),function(t){t.Toggle=".vp-ccsettings-toggle",t.ToggleLabel='.vp-ccsettings-listitem[data-item-type="Closed Captions"] .vp-ccsettings-value',t.LanguageListItem='.vp-ccsettings-listitem[data-item-type="Caption Languages"]',t.HeaderListItem='.vp-ccsettings-listitem[data-item-type="header"]',t.Item=".vp-ccsettings-item",t.Value=".vp-ccsettings-value",t.ListItem=".vp-ccsettings-listitem",t.ListOptions=".vp-ccsettings-listoptions",t.Pointer=".vp-ccsettings-pointer",t.CheckMark=".vp-ccsettings-checkmark",t.Preview="vp-ccsettings-preview"}(r=e.ItemClasses||(e.ItemClasses={})),function(t){t.Plain="none",t.Dropshadow="dropshadow",t.Raised="raised",t.Depressed="depressed",t.Uniform="uniform"}(o=e.CCEffects||(e.CCEffects={})),function(t){t.Top="top",t.Bottom="bottom"}(s=e.CCPosition||(e.CCPosition={})),function(t){t["Extra Small"]="16",t.Small="20",t.Medium="24",t.Large="28",t["Extra Large"]="32"}(a=e.CCFontSize||(e.CCFontSize={})),function(t){t.Georgia="Georgia, serif",t["Palatino Linotype"]='"Palatino Linotype", "Book Antiqua", Palatino, serif',t["Times New Roman"]='"Times New Roman", Times, serif',t.Helvetica="Helvetica, sans-serif",t.Arial="Arial, Helvetica, sans-serif",t["Arial Black"]='"Arial Black", Gadget, sans-serif',t["Comic Sans MS"]='"Comic Sans MS", cursive, sans-serif',t.Impact="Impact, Charcoal, sans-serif",t["Lucida Sans Unicode"]='"Lucida Sans Unicode", "Lucida Grande", sans-serif',t.Tahoma="Tahoma, Geneva, sans-serif",t["Trebuchet MS"]='"Trebuchet MS", Helvetica, sans-serif',t.Verdana="Verdana, Geneva, sans-serif",t["Courier New"]='"Courier New", Courier, monospace',t["Lucida Console"]='"Lucida Console", Monaco, monospace'}(u=e.CCFontFamily||(e.CCFontFamily={})),function(t){t.White="#FFFFFF",t.Grey="#E7E7E7",t.Black="#000000",t.Red="#FC2525",t.Green="#29FD2F",t.Blue="#2524FB",t.Cyan="#2CFEFE",t.Yellow="#FEF149",t.Magenta="#EC369C"}(l=e.CCFontColor||(e.CCFontColor={})),function(t){t.White="#FFFFFF",t["Light Gray"]="#c7c7c7",t.Gray="#919191",t["Dark Gray"]="#5b5b5b",t.Black="#000000",t.Red="#FC2424",t.Green="#29FD2F",t.Blue="#2424FB",t.Cyan="#2CFDFD",t.Yellow="#FDF048",t.Magenta="#EC359B"}(c=e.CCBackgroundColor||(e.CCBackgroundColor={})),function(t){t.Transparent="0",t["25%"]="25",t["50%"]="50",t["75%"]="75",t["100%"]="100"}(d=e.CCBackgroundTransparency||(e.CCBackgroundTransparency={}));var g={Effects:o,Position:s,"Font Size":a,"Font Family":u,"Font Color":l,"Background Color":c,"Background Transparency":d};e.ExtraSettingsDefaultValues={Effects:"Plain",Position:"Bottom","Font Size":"Medium","Font Family":"Helvetica","Font Color":"White","Background Color":"Black","Background Transparency":"75%"},e.DEFAULT_CC_DATA={selectedLang:"en-us",langList:["en-us"]},e.ACTIVATION_CLASSES={OPEN:"vp-open",VISBILITYHIDDEN:"vp-vis-hide",VISBILITYSHOW:"vp-vis-show",ACTIVE:"vp-active",ON:"vp-on"};var E=i("9gA9"),b=i("e/9d"),S=function(){function t(t,e){this._controls=t,this._model=e}return t.prototype.create=function(){this._syncLocalStoragePrefs(),this._settingsContainer=m.default.render(E,{strings:f}),this._renderMainMenu(),this._activeContainer=this._mainSettingContainer,this._renderExtraSettings(),this._currentOptionType=null,this.updateAvailableLanguages(e.DEFAULT_CC_DATA),this._ccPreviewElement=document.createElement("div"),this._ccPreviewElement.innerHTML="Captions will look like this",m.default.classList(this._ccPreviewElement).add(r.Preview),m.default.classList(this._ccPreviewElement).add("vp-vis-hidden");var t=this._controls.getMainElement();return t&&t.appendChild(this._ccPreviewElement),this.syncMenuUI(),this.onPlayerResize(this._model.uiState),this._settingsContainer},t.prototype.syncMenuUI=function(){this._updateExtraMenu(),this._updateExtraSettingOptionMenu(),this._updateLanguageMenu()},t.prototype.showActiveContainer=function(t){this._changeActiveContainerTimer&&clearTimeout(this._changeActiveContainerTimer),this._activeContainer&&m.default.classList(t).add(e.ACTIVATION_CLASSES.OPEN),this._activeContainer&&m.default.classList(this._activeContainer).add(e.ACTIVATION_CLASSES.OPEN)},t.prototype.hideActiveContainer=function(t){var i=this;this._activeContainer&&m.default.classList(this._activeContainer).remove(e.ACTIVATION_CLASSES.OPEN),this._activeContainer&&m.default.classList(t).remove(e.ACTIVATION_CLASSES.OPEN),this._changeActiveContainerTimer&&clearTimeout(this._changeActiveContainerTimer),this._changeActiveContainerTimer=window.setTimeout(function(){i._activeContainer=i._mainSettingContainer},1e4)},t.prototype.updateCCToggleState=function(t){var i=this._mainSettingsSelector.ccToggleNode,n=this._mainSettingsSelector.ccToggleLabel;t?m.default.classList(i).add(e.ACTIVATION_CLASSES.ON):m.default.classList(i).remove(e.ACTIVATION_CLASSES.ON),n.innerHTML=t?"ON":"OFF"},t.prototype.destroy=function(){this._tapList.forEach(function(t){return t.destroy()}),this._optionMenuTaps.forEach(function(t){return t.destroy()}),this._tapList=null,this._optionMenuTaps=null,this._currentOptionType=null,this._ccSettingCurrentValues=null,this._availableLanguages=null,this._currentLanguage=null,this._mainSettingsSelector=null,this._optionsSelector=null,this._settingsContainer=null,this._mainSettingContainer=null,this._extraSettingContainer=null,this._optionsContainer=null,this._activeContainer=null},t.prototype.updateAvailableLanguages=function(t){this._availableLanguages=this._availableLanguages||[],this._currentLanguage=t.selectedLang||this._currentLanguage,t&&t.langList&&t.langList.length&&(this._availableLanguages=t.langList),this._updateLanguageMenu()},t.prototype.onPlayerResize=function(t){t&&t.width&&t.height&&(t.width>=p.HideBreakpointDimensions.WIDTH&&t.height>=p.HideBreakpointDimensions.HEIGHT?this._settingsContainer&&m.default.classList(this._settingsContainer).remove(e.ACTIVATION_CLASSES.VISBILITYHIDDEN):this._settingsContainer&&m.default.classList(this._settingsContainer).add(e.ACTIVATION_CLASSES.VISBILITYHIDDEN))},t.prototype._showCCPreview=function(){var t=this;if(this._ccElement=this._controls.getCCElement(),this._ccElement){var i=this._ccElement.querySelector("span").style,n=this._ccElement.style;this._ccPreviewElement.style.fontFamily=n.fontFamily,this._ccPreviewElement.style.fontSize=n.fontSize,this._ccPreviewElement.style.top=this._model.ccUserPreferences.ccPos===s.Top?"5%":"",this._ccPreviewElement.style.bottom=this._model.ccUserPreferences.ccPos===s.Bottom?"16%":"",this._ccPreviewElement.style.left=n.left||"2.5%",this._ccPreviewElement.style.color=n.color,this._ccPreviewElement.style.textShadow=n.textShadow,this._ccPreviewElement.style.backgroundColor=i.backgroundColor,this._ccElement.style.visibility="hidden",m.default.classList(this._ccPreviewElement).add(e.ACTIVATION_CLASSES.ACTIVE),this._ccPreviewTimeout&&clearTimeout(this._ccPreviewTimeout),this._ccPreviewTimeout=window.setTimeout(function(){t._ccElement.style.visibility="visible",m.default.classList(t._ccPreviewElement).remove(e.ACTIVATION_CLASSES.ACTIVE)},2e3)}},t.prototype._syncLocalStoragePrefs=function(){var t=_.default.get(h.CC_LOCAL_STORAGE)?_.default.get(h.CC_LOCAL_STORAGE).ccSettingsMenu:null;t||h.CCController.saveCCSettingsToLocalStorage({ccSettingsMenu:e.ExtraSettingsDefaultValues}),this._ccSettingCurrentValues=t||e.ExtraSettingsDefaultValues},t.prototype._updateLanguageMenu=function(){var t=h.CCController.getLanguageForCode(this._currentLanguage),e=this._mainSettingsSelector.languageNode.querySelector(r.Value);e&&(e.innerHTML=t),this._currentOptionType&&"Language"===this._currentOptionType&&this._updateListCheckMark(t)},t.prototype._updateExtraSettingOptionMenu=function(){if(this._currentOptionType){var t=this._ccSettingCurrentValues[this._currentOptionType];this._updateListCheckMark(t)}},t.prototype._updateListCheckMark=function(t){var i=this._optionsContainer.querySelectorAll(r.ListItem);Array.prototype.forEach.call(i,function(i){var n=i.querySelector(r.CheckMark);i.dataset.itemType!==t?(m.default.classList(i).remove(e.ACTIVATION_CLASSES.ACTIVE),m.default.classList(n).remove(e.ACTIVATION_CLASSES.VISBILITYSHOW)):(m.default.classList(i).add(e.ACTIVATION_CLASSES.ACTIVE),m.default.classList(n).add(e.ACTIVATION_CLASSES.VISBILITYSHOW))})},t.prototype._updateExtraMenu=function(){var t=this,e=this._extraSettingContainer.querySelectorAll(r.ListItem);Array.prototype.forEach.call(e,function(e){var i=e.dataset.itemType;"header"!==i&&(e.querySelector(r.Value).innerHTML=t._ccSettingCurrentValues[i].replace(/\s/g,"&nbsp;"))})},t.prototype._renderMainMenu=function(){this._mainSettingContainer=this._settingsContainer.querySelector(n.Main),this._mainSettingsSelector={headerNode:this._mainSettingContainer.querySelector(r.HeaderListItem),ccToggleNode:this._mainSettingContainer.querySelector(r.Toggle),ccToggleLabel:this._mainSettingContainer.querySelector(r.ToggleLabel),languageNode:this._mainSettingContainer.querySelector(r.LanguageListItem)},this._bindMainMenu()},t.prototype._bindMainMenu=function(){var t=this;this._tapList=[],this._tapList.push(new v.default(this._mainSettingsSelector.headerNode,function(){t._onSubSettingsOpen(n.Extra)})),this._tapList.push(new v.default(this._mainSettingsSelector.languageNode,function(){t._renderLanguageContainer(),t._onSubSettingsOpen(n.Options)})),this._tapList.push(new v.default(this._mainSettingsSelector.ccToggleNode,this._onCCToggleClick.bind(this)))},t.prototype._renderLanguageContainer=function(){var t=this;this._renderOptionHeader("Language",n.Main);var e=this._optionsContainer.querySelector(r.ListOptions);this._availableLanguages.forEach(function(i){var n=h.CCController.getLanguageForCode(i),r=t._renderListItem(!1,n,null);e.appendChild(r),t._optionMenuTaps.push(new v.default(r,function(){t._onLanguageItemClick(i)}))}),this._currentOptionType="Language",this._updateLanguageMenu()},t.prototype._onLanguageItemClick=function(t){this._currentLanguage=t,this._controls.onlanguageChange(t),this._controls.updateClosedCaptionButtonState(!0),this._updateLanguageMenu()},t.prototype._onCCToggleClick=function(){var t=m.default.classList(this._mainSettingsSelector.ccToggleNode).contains(e.ACTIVATION_CLASSES.ON)||!1;this._controls.publish(y.ControlsEvent.TOGGLE_CC,!t,!0),this._controls.updateClosedCaptionButtonState(!t)},t.prototype._renderExtraSettings=function(){var t=this;this._extraSettingContainer=this._settingsContainer.querySelector(n.Extra),this._optionsContainer=this._settingsContainer.querySelector(n.Options),this._optionsSelector={headerNode:this._optionsContainer.querySelector(r.HeaderListItem),headerValue:this._optionsContainer.querySelector(r.Item)},this._tapList.push(new v.default(this._extraSettingContainer.firstElementChild,function(){t._onSubSettingsOpen(n.Main)}));var e=this._extraSettingContainer.querySelector(r.ListOptions);Object.keys(this._ccSettingCurrentValues).forEach(function(i){var r=t._renderListItem(!0,i,t._ccSettingCurrentValues[i]);e.appendChild(r);var o=r.dataset.itemType;t._tapList.push(new v.default(r,function(){t._onSubSettingsOpen(n.Options),t._renderOptionsContainer(o)}))})},t.prototype._renderListItem=function(t,e,i){return m.default.render(b,{caratRequired:t,itemContent:e,valueContent:i,valueRequired:!!i})},t.prototype._onSubSettingsOpen=function(t){var i=this;Object.keys(n).map(function(r){var o=i._settingsContainer.querySelector(n[r]);n[r]===t?(m.default.classList(o).add(e.ACTIVATION_CLASSES.OPEN),i._activeContainer=o):m.default.classList(o).remove(e.ACTIVATION_CLASSES.OPEN)})},t.prototype._renderOptionHeader=function(t,e){var i=this;this._optionMenuTaps&&this._optionMenuTaps.length&&this._optionMenuTaps.forEach(function(t){return t.destroy()}),this._optionMenuTaps=[];var n=this._optionsContainer.querySelector(r.ListOptions),o=n.querySelectorAll(r.ListItem);Array.prototype.forEach.call(o,function(t){"header"!==t.dataset.itemType&&n.removeChild(t)}),this._optionMenuTaps.push(new v.default(this._optionsSelector.headerNode,function(){i._onSubSettingsOpen(e)})),this._optionsSelector.headerValue.innerHTML=t},t.prototype._renderOptionsContainer=function(t){var e=this;this._renderOptionHeader(t,n.Extra);var i=g[t],o=this._optionsContainer.querySelector(r.ListOptions);Object.keys(i).map(function(n){var r=e._renderListItem(!1,n,null);o.appendChild(r),e._optionMenuTaps.push(new v.default(r,function(){var r=i[n];e._updateCCSettings(t,r,n)}))}),this._currentOptionType=t,this._updateListCheckMark(this._ccSettingCurrentValues[t])},t.prototype._updateCCSettings=function(t,e,i){if(this._model.ccUserPreferences){var n,r=this._model.ccUserPreferences;switch(t){case"Effects":r.fontEffect=e;break;case"Position":r.ccPos=e;break;case"Font Size":r.fontSize=Number(e),n="size: "+e;break;case"Font Family":r.fontName=e,n="font: "+e;break;case"Font Color":r.fontColor=e;break;case"Background Color":r.bgColor=e;break;case"Background Transparency":try{var o=Number(e);r.bgOpacity=o/100,n="opacity: "+o}catch(t){return}}this._controls.updateClosedCaptionStyle(n),this._ccSettingCurrentValues[t]=i,h.CCController.saveCCSettingsToLocalStorage({ccSettings:r,ccSettingsMenu:this._ccSettingCurrentValues}),this.syncMenuUI(),this._showCCPreview()}},t}();e.default=S},"p/Bv":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=i("zW5x"),o=function(){function e(t){this.name="SapiSourcePlugin",this.version="8.1.170",this.mimetype=n.MediaItemInterfaces.MediaItemMimeType.SAPI,this.type=n.Plugin.PluginType.SOURCE_METADATA,this._recovering=!1,this._maxRetries=2,this._forceRefresh=!0,this._sapiClient=new r.default(t)}return e.prototype.prepare=function(){},e.prototype.resolve=function(e,i,n){var r;this._sapiClient.parseMediaItemsResponse(e),!(Array.isArray(e)&&e.every(this._hasStreamMeta))||this._recovering||this._forceRefresh?(r=this._recovering?0:this._maxRetries,this._sapiClient.resolve(e,i,n,r)):e.length>0&&t(function(){n.onComplete(e)}),this._recovering=!1},e.prototype.recover=function(t,e,i){t&&(this._recovering=!0,this.resolve([t],e,i))},e.prototype.cancel=function(){this._sapiClient.cancel()},e.prototype.destroy=function(){this.cancel()},e.prototype._hasStreamMeta=function(t){return!!(t&&t.source&&t.source.streams&&t.source.streams[0]&&t.source.streams[0].url)},e}();e.default=o}).call(this,i("URgk").setImmediate)},pBvk:function(t,e,i){"use strict";var n=t.exports.Validator=i("KUzV");t.exports.ValidatorResult=i("H0QZ").ValidatorResult,t.exports.ValidationError=i("H0QZ").ValidationError,t.exports.SchemaError=i("H0QZ").SchemaError,t.exports.SchemaScanResult=i("DTfC").SchemaScanResult,t.exports.scan=i("DTfC").scan,t.exports.validate=function(t,e,i){return(new n).validate(t,e,i)}},pM7s:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("ToqN"),s=i("O/dN"),a=i("oIMU"),u=i("+Ojf"),l=i("GX4R"),c=i("mczr"),d=function(t){function e(i,n,r){var o=t.call(this,i,n)||this;o._eventBus=i,o._model=n,o.api=r,o.type=e.type;try{o.api=webapis}catch(t){r&&(o.api=r)}return o.seeking=!1,o.ended=!1,o._isSwitching=!1,o._currentSrcFormat="",o._currentStream=null,o._lastUpdatedTime=0,o._logger=console,o._retryCount=0,o._retryStreams=[],o._retryState=null,o._seeked=!1,o.currentPlayTime=0,o._vodTimeOffset=0,o.error=!1,o.setCCPrefs(),o}return r(e,t),e.canUse=function(){return!!o.userAgent.tv&&!!o.userAgent.tizen},e.prototype.create=function(t){var e=document.getElementById("avplayer");return this.node=e||this._createNode(),this.node.style.display="inline-block",this.node},e.prototype.detachNode=function(){this._unbindEvents(),this.clearPlayTimer();try{this.api.avplay.pause()}catch(t){this._logger.log("Error happened while pausing",t)}},e.prototype.clearPlayTimer=function(){this._currentPlayTimer&&(clearInterval(this._currentPlayTimer),this._currentPlayTimer=null)},e.prototype.seek=function(t){try{this.clearPlayTimer(),this.api.avplay.seekTo(1e3*t)}catch(t){this._logger.error("Error while seeking",t)}},e.prototype.pause=function(){this._logger.log("Pausing tizen");try{this.clearPlayTimer(),this.api.avplay.pause(),"PAUSED"===this.api.avplay.getState()&&(this.paused=!0,this.publish(c.RendererEvent.PAUSE))}catch(t){this._logger.error("Error while pausing video",t)}},e.prototype.setVolume=function(t){},e.prototype.destroy=function(){this._unbindEvents(),this.clearPlayTimer();try{this.api.avplay.close()}catch(t){this._logger.error("Error while closing avplay",t)}this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},e.prototype.stop=function(){this.clearPlayTimer();try{this._logger.log("stopping video"),this.api.avplay.stop(),this.api.appcommon.setScreenSaver(this.api.appcommon.AppCommonScreenSaverState.SCREEN_SAVER_ON)}catch(t){this._logger.error("Error while stopping avplay",t)}this._unbindEvents()},e.prototype.waitForReady=function(t){t()},e.prototype.play=function(t){void 0===t&&(t=0),this.ended=!1,this._firstPlay=!1,this.seeking=!1,this._eventBus.publish(a.PROFILE_START,a.METRICS.STREAM_PLAY_TO_RENDER);try{this.api.avplay.play(),this.api.appcommon.setScreenSaver(this.api.appcommon.AppCommonScreenSaverState.SCREEN_SAVER_OFF);var e=this.api.avplay.getState();this.paused&&"PLAYING"===e&&(this.paused=!1,this.publish(c.RendererEvent.PLAYING))}catch(t){this._logger.error("Error while playing stream",t)}},e.prototype.getCurrentTime=function(){return this.currentPlayTime/1e3},e.prototype.setCCPrefs=function(){var t=this._model.userPreferences.closedCaptions;try{var e=this.api&&this.api.tvinfo,i=e&&e.TvInfoMenuKey;e&&i&&(t.bgColor=this._getColor(e.getMenuValue(i.CAPTION_BG_COLOR_KEY),!1),t.fontColor=this._getColor(e.getMenuValue(i.CAPTION_FG_COLOR_KEY),!0),t.bgOpacity=this._getOpacity(e.getMenuValue(i.CAPTION_BG_OPACITY_KEY),!0),t.fontOpacity=this._getOpacity(e.getMenuValue(i.CAPTION_FG_OPACITY_KEY),!1),t.fontEffect=this._getEffect(e.getMenuValue(i.CAPTION_EDGE_TYPE_KEY)),t.fontEdgeColor=this._getColor(e.getMenuValue(i.CAPTION_EDGE_COLOR_KEY),!1),t.fontSize=this._getSize(e.getMenuValue(i.CAPTION_FONT_SIZE_KEY)),t.fontName=this._getName(e.getMenuValue(i.CAPTION_FONT_STYLE_KEY)),t.windowBgOpacity=this._getOpacity(e.getMenuValue(i.CAPTION_WINDOW_OPACITY_KEY),!0),t.windowBgColor=this._getColor(e.getMenuValue(i.CAPTION_WINDOW_COLOR_KEY),!1))}catch(t){this._logger.error("Error while fetching menu settings",t)}this._eventBus.publish(a.CCEvent.UPDATE_STYLE)},e.prototype._bindEvents=function(){var t=this;this._listeners={onbufferingstart:function(){t.clearPlayTimer(),t._logger.log("Buffering start."),t._eventBus.publish("render"),t._publishWaitingEvent(!0,!1)},onbufferingprogress:function(e){t._logger.log("Buffering progress data : "+e),t.clearPlayTimer(),t._publishWaitingEvent(!1,!1)},onbufferingcomplete:function(){t._logger.log("Buffering complete."),t.clearPlayTimer(),t._publishWaitingEvent(!1,!1),t.duration=t.api.avplay.getDuration(),t.publish(c.RendererEvent.PLAYING),t._eventBus.publish(a.PROFILE_END,[a.METRICS.STREAM_PLAY_TO_RENDER,a.METRICS.STREAM_REQUEST_TO_RENDER])},oncurrentplaytime:function(e){t._logger.log("Current playtime: "+e+" of: "+t.duration),0===t._vodTimeOffset&&0===t.currentPlayTime&&(t._isLive||(t._vodTimeOffset=e-1e3)),t._origCurrentPlayTime!==e&&(t._origCurrentPlayTime=e,e-=t._vodTimeOffset,t.currentPlayTime=e,t.clearPlayTimer(),(t._isLive||e<=t.duration)&&t.publish(c.RendererEvent.TIMEUPDATE,{currentTime:e/1e3,duration:t.duration/1e3,buffered:{}}),t._currentPlayTimer=setInterval(function(){e+=300,(t._isLive||e<=t.duration)&&t.publish(c.RendererEvent.TIMEUPDATE,{currentTime:e/1e3,duration:t.duration/1e3,buffered:{}})},300))},onevent:function(e,i){t._logger.log("event type: "+e+", data: "+i)},onstreamcompleted:function(){t._logger.log("Stream Completed"),t.clearPlayTimer(),t.ended=!0,t._rebufferingManager.onEnded(),t._publishWaitingEvent(!1,!1),t._isLive=!1,t.currentPlayTime=0,t._vodTimeOffset=0,t.paused=!1,t.publish(c.RendererEvent.ENDED)},onerror:function(e){t._logger.log("event type error : "+e),t._handleError(e),t.clearPlayTimer()}};try{this.api.avplay.setListener(this._listeners)}catch(t){this._logger.log("Error while setting listener",t)}},e.prototype._unbindEvents=function(){this._listeners=null,this._vodTimeOffset=0,this.paused=!1;try{this.api.avplay.setListener(null)}catch(t){this._logger.error("Error occurred while unsetting listener ",t)}},e.prototype._getCodeForNodeError=function(t){switch(t.name){case"PLAYER_ERROR_VIDEO_CODEC_NOT_SUPPORTED":case"PLAYER_ERROR_AUDIO_CODEC_NOT_SUPPORTED":case"PLAYER_ERROR_NOT_SUPPORTED_FILE":return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_SRC_NOT_SUPPORTED;case"PLAYER_ERROR_CONNECTION_FAILED":return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_NETWORK;case"PLAYER_ERROR_NO_AUTH":return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED;case"PLAYER_ERROR_NO_SUCH_FILE":return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND;default:return s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR}},e.prototype._setSrc=function(t,e,i){if(this.ended=!1,this.src!==t.url||i){this._eventBus.publish(a.PROFILE_START,a.METRICS.STREAM_REQUEST_TO_RENDER),this._firstPlay=!0,this._currentSrcFormat=t.format||"",this._currentStream=t,this._isLive=t.live,this._mode===c.PlaybackMode.VIDEO&&this._eventBus.publish(a.PROFILE_START,a.METRICS.LOAD_TO_LOADED_DATA),this.src=t.url;try{"PLAYING"===this.api.avplay.getState()&&this.api.avplay.stop(),this.api.avplay.open(this.src),this._bindEvents(),this.api.avplay.prepare(),this.api.avplay.setDisplayRect(0,0,window.innerWidth,window.innerHeight),this.api.avplay.setDisplayMethod("PLAYER_DISPLAY_MODE_FULL_SCREEN"),this.api.avplay.setStreamingProperty("ADAPTIVE_INFO","STARTBITRATE=HIGHEST")}catch(t){this._logger.error("Error while setting up the stream",t)}}},e.prototype._switchSrc=function(){},e.prototype._handleWaitingEvent=function(){},e.prototype._onWaiting=function(t){},e.prototype._publishWaitingEvent=function(t,e){this.publish(c.RendererEvent.WAITING,{type:"waiting",value:t,ignoreBuffering:e}),this._rebufferingManager.playbackStuck=t},e.prototype._createNode=function(){var t=document.createElement("div");return t.innerHTML='<object id="avplayer" type="application/avplayer"style="display:none; position:fixed; top:0px; left:0px; width:100%; height:100%"></object>',t.children[0]},e.prototype._handleError=function(t){var e=this;if(this._mode===c.PlaybackMode.VIDEO){var i=this._getCodeForNodeError(t),n=1===this._retryStreams.length&&2===this._retryCount,r=this._model.playlist.getCurrentItem(),o=s.E_WARNING,l=a.WARNING,d=null;n&&(o=s.E_PLAYER,l=a.ERROR);var h=u.default.createErr(s.ErrorGroup.Streaming,this._model.playbackState,o,i,null,this.src);if(this._logger.log("Video node errored out because: ",t),parseInt(h.subcategory,10)>=303&&parseInt(h.subcategory,10)<=308)return this._retryCount++,n||this._eventBus.publish(l,h),(d=r&&!r.isLive()?this.retryStreams(this._lastUpdatedTime):this.retryStreams(0))?void u.default.getUrlStatus(d.url,function(t){401===t?h.subcategory=s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_AUTHORIZED:404===t&&(h.subcategory=s.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_URL_NOT_FOUND),e._eventBus.publish(a.ERROR,h)}):void 0;this.error=!0,this.publish(c.RendererEvent.ERROR,t),this._eventBus.publish(l,h)}else this.publish(c.RendererEvent.ERROR,t)},e.prototype._getColor=function(t,e){var i=this.api.tvinfo.TvInfoMenuValue;switch(t){case i.CAPTION_COLOR_DEFAULT:return e?"#ffffff":"#000000";case i.CAPTION_COLOR_WHITE:return"#ffffff";case i.CAPTION_COLOR_BLACK:return"#000000";case i.CAPTION_COLOR_RED:return"#ff0000";case i.CAPTION_COLOR_GREEN:return"#00ff00";case i.CAPTION_COLOR_BLUE:return"#0000ff";case i.CAPTION_COLOR_YELLOW:return"#ffff00";case i.CAPTION_COLOR_MAGENTA:return"#ff00ff";case i.CAPTION_COLOR_CYAN:return"#00ffff";default:return"#ffffff"}},e.prototype._getOpacity=function(t,e){var i=this.api.tvinfo.TvInfoMenuValue;switch(t){case i.CAPTION_OPACITY_SOLID:case i.CAPTION_OPACITY_FLASHING:return"1";case i.CAPTION_OPACITY_TRANSLUCENT:return"0.75";case i.CAPTION_OPACITY_DEFAULT:return e?"0":"1";case i.CAPTION_OPACITY_TRANSPARENT:return"0";default:return e?"0":"1"}},e.prototype._getEffect=function(t){var e=this.api.tvinfo.TvInfoMenuValue;switch(t){case e.CAPTION_EDGE_NONE:return"none";case e.CAPTION_EDGE_RAISED:return"raised";case e.CAPTION_EDGE_DEPRESSED:return"depressed";case e.CAPTION_EDGE_UNIFORM:return"uniform";case e.CAPTION_EDGE_DROP_SHADOWED:return"dropshadow";default:return"none"}},e.prototype._getSize=function(t){var e=this.api.tvinfo.TvInfoMenuValue;switch(t){case e.CAPTION_SIZE_DEFAULT:return 24;case e.CAPTION_SIZE_SMALL:return 18;case e.CAPTION_SIZE_STANDARD:return 24;case e.CAPTION_SIZE_LARGE:return 27;case e.CAPTION_SIZE_EXTRA_LARGE:return 30;default:return 24}},e.prototype._getName=function(t){var e=this.api.tvinfo.TvInfoMenuValue;switch(t){case e.CAPTION_FONT_DEFAULT:case e.CAPTION_FONT_STYLE0:return"sans-serif";case e.CAPTION_FONT_STYLE1:return"PT Mono";case e.CAPTION_FONT_STYLE2:return"Crimson Text";case e.CAPTION_FONT_STYLE3:return"Inconsolata";case e.CAPTION_FONT_STYLE4:return"sans-serif";case e.CAPTION_FONT_STYLE5:return"Neucha";case e.CAPTION_FONT_STYLE6:return"Oleo Script";case e.CAPTION_FONT_STYLE7:return"Carrois Gothic SC";default:return"sans-serif"}},e.type=c.RendererType.HTML5_TV_TIZEN,e}(l.default);e.default=d},pwzT:function(t,e,i){"use strict";function n(){this.LOCALSTORAGE_PREFIX="com.yahoo.yep",this._islocalStorageAvailable=this._islocalStorageSupported()}t.exports=n,n.prototype._islocalStorageSupported=function(){return"localStorage"in window&&null!==window.localStorage},n.prototype.writeProperty=function(t,e){this._islocalStorageAvailable&&(e=JSON.stringify(e),t=this.LOCALSTORAGE_PREFIX+"."+t,window.localStorage.setItem(t,e))},n.prototype.readProperty=function(t){if(!t||!t.length)return null;if(this._islocalStorageAvailable){t=this.LOCALSTORAGE_PREFIX+"."+t;var e=JSON.parse(window.localStorage.getItem(t));return e||null}return null}},q5U7:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("ToqN"),a=i("oIMU"),u=i("mczr"),l=i("1get"),c=i("+Ojf"),d=i("eU8N"),h=i("+kCX"),p=function(t){function e(i,n){var r=t.call(this,i,n)||this;return r.type=e.type,r}return r(e,t),e.canUse=function(){return!s.userAgent.tv&&(l.default.is360Supported()&&t.canUse.call(this))},e.prototype.create=function(e){return t.prototype.create.call(this,e),this._init360(),this.container},e.prototype.destroy=function(){this._destroy360(),t.prototype.destroy.call(this)},e.prototype.waitForReady=function(t){var e=this;this._isReady?(this._onReady(),t()):this._360ReadySubscriptionKey=this._eventBus.addEventListener(a.THREE_SIXTY_READY,function(){e._onReady(),t()},this)},e.prototype._init360=function(){var t=this;this._isReady=!1,this.node&&(this.node.setAttribute("crossorigin","anonymous"),this.node.style.visibility="hidden",this._node360=document.createElement("div"),this._node360.classList.add("vp-360-node"),this._node360.style.position="absolute",this.container=document.createElement("div"),this.container.setAttribute("id",c.default.generateGuid()),this.container.classList.add("vp-360-video"),this.container.appendChild(this.node),this.container.appendChild(this._node360),this._lazyLoadDepsLibrary().then(function(){t._initAfterLazyLoad()}).catch(function(t){}))},e.prototype._lazyLoadDepsLibrary=function(){return new Promise(function(t,e){i.e(1).then(function(){o=i("Womt"),t(o)}.bind(null,i)).catch(function(t){e(t)})})},e.prototype._initAfterLazyLoad=function(){this._camera=new o.PerspectiveCamera(70,16/9,.01,1e3),this._camera.target=new o.Vector3(0,0,0);var t=new o.SphereBufferGeometry(500,64,32);t.scale(-1,1,1);var e=new o.VideoTexture(this.node);e.minFilter=o.NearestFilter;var i=new o.MeshBasicMaterial({map:e}),n=new o.Mesh(t,i);this._scene=new o.Scene,this._scene.add(n),this._360renderer=new o.WebGLRenderer,this._360renderer.setPixelRatio(window.devicePixelRatio),this._node360&&this._node360.appendChild(this._360renderer.domElement),this._pie360=new d.default(this.container),this._pie360.render(),this._lon=0,this._lat=0,this._stopAnimation=!0,this._bind360Events(),this._isReady=!0,this._eventBus.publish(a.THREE_SIXTY_READY)},e.prototype._bind360Events=function(){var t=this;this._mouseDownHandler=this._onMouseDown.bind(this),this._mouseMoveHandler=this._onMouseMove.bind(this),this._mouseUpHandler=this._onMouseUp.bind(this),this._mouseOverHandler=this._onMouseOver.bind(this),this._mouseOutHandler=this._onMouseOut.bind(this),this._resizeHandler=this._onResize.bind(this),this.container&&(this.container.addEventListener("mousedown",this._mouseDownHandler,!1),this.container.addEventListener("mousemove",this._mouseMoveHandler,!1),this.container.addEventListener("mouseup",this._mouseUpHandler,!1),this.container.addEventListener("mouseover",this._mouseOverHandler,!1),this.container.addEventListener("mouseout",this._mouseOutHandler,!1),this.container.addEventListener("resize",this._resizeHandler,!1)),this._onPauseHandler=this._onPause.bind(this),this._onPlayingHandler=this._onPlaying.bind(this),this._onSeekedHandler=this._onSeeked.bind(this),this.node&&(this.node.addEventListener("pause",this._onPauseHandler),this.node.addEventListener("playing",this._onPlayingHandler),this.node.addEventListener("seeked",this._onSeekedHandler)),this._pie360&&this._pie360.addClickListener(this._backToInitialPosition.bind(this)),this._eventSubscriptionKeys={},this._eventSubscriptionKeys[a.PLAYER_RESIZE]=this._eventBus.addEventListener(a.PLAYER_RESIZE,function(e,i){window.setTimeout(function(){t._isFullscreen&&(e=window.screen.width,i=window.screen.height),t._resize(e,i)},1)},this),this._eventSubscriptionKeys[a.FULLSCREEN_CHANGE]=this._eventBus.addEventListener(a.FULLSCREEN_CHANGE,function(e){t._isFullscreen=!!e},this),this._eventSubscriptionKeys[a.PLAYER_DIMENSION_CHANGE]=this._eventBus.addEventListener(a.PLAYER_DIMENSION_CHANGE,function(){var e,i,n;t.node&&t.node.parentNode&&((e=window.getComputedStyle(t.node.parentNode))&&(i=parseInt(e.getPropertyValue("width"),10),n=parseInt(e.getPropertyValue("height"),10)),i&&!isNaN(i)&&n&&!isNaN(n)&&t._resize(i,n))},this)},e.prototype._backToInitialPosition=function(){this._lon=0,this._lat=0,this._update(),this._pie360&&this._pie360.update(this._lon),this._eventBus.publish(a.THREE_SIXTY_PIE_INTERACT)},e.prototype._unbind360Events=function(){var t=this;this._eventSubscriptionKeys&&Object.keys(this._eventSubscriptionKeys).forEach(function(e){t._eventBus.removeEventListener(e,t._eventSubscriptionKeys[e])}),this._mouseDownHandler&&(this.container&&this.container.removeEventListener("mousedown",this._mouseDownHandler,!1),this._mouseDownHandler=null),this._mouseMoveHandler&&(this.container&&this.container.removeEventListener("mousemove",this._mouseMoveHandler,!1),this._mouseMoveHandler=null),this._mouseUpHandler&&(this.container&&this.container.removeEventListener("mouseup",this._mouseUpHandler,!1),this._mouseUpHandler=null),this._mouseOverHandler&&(this.container&&this.container.removeEventListener("mouseover",this._mouseOverHandler,!1),this._mouseOverHandler=null),this._resizeHandler&&(this.container&&this.container.removeEventListener("resize",this._resizeHandler,!1),this._resizeHandler=null),this._mouseOverHandler&&(this.container&&this.container.removeEventListener("mouseover",this._mouseOverHandler,!1),this._mouseOverHandler=null),this._onPauseHandler&&(this.node&&this.node.removeEventListener("pause",this._onPauseHandler),this._onPauseHandler=null),this._onPlayingHandler&&(this.node&&this.node.removeEventListener("playing",this._onPlayingHandler),this._onPlayingHandler=null),this._onSeekedHandler&&(this.node&&this.node.removeEventListener("seeked",this._onSeekedHandler),this._onSeekedHandler=null),this._360ReadySubscriptionKey&&(this._eventBus.removeEventListener(a.THREE_SIXTY_READY,this._360ReadySubscriptionKey),this._360ReadySubscriptionKey=null)},e.prototype._stopDragging=function(){this._isUserInteracting=!1,this.container&&(this.container.classList.remove("grabbing-360"),this.container.classList.add("over-360")),this._isPausedAnimate&&(this._isPausedAnimate=!1,this._stopAnimation=!0)},e.prototype._resize=function(t,e){var i=t,n=e;e*(16/9)>t&&(n=t/(16/9)),this._camera&&(this._camera.setViewOffset(t,e,t-i,e-n,i,n),this._camera.updateProjectionMatrix()),this._360renderer&&this._360renderer.setSize(t,e)},e.prototype._animate=function(){var t=this._animate.bind(this);if(this._stopAnimation&&this._requestAnimationId)return window.cancelAnimationFrame(this._requestAnimationId),void(this._requestAnimationId=null);this._requestAnimationId=window.requestAnimationFrame(t),this._update()},e.prototype._update=function(){var t,e;this._lat=Math.max(-85,Math.min(85,this._lat)),t=o.Math.degToRad(90+this._lat),e=o.Math.degToRad(this._lon),this._camera&&(this._camera.position.x=500*Math.sin(t)*Math.cos(e),this._camera.position.y=500*Math.cos(t),this._camera.position.z=500*Math.sin(t)*Math.sin(e),this._camera.lookAt(this._camera.target),this._camera.position.copy(this._camera.target).negate(),this._scene&&this._360renderer&&this._360renderer.render(this._scene,this._camera))},e.prototype._destroy360=function(){this._requestAnimationId&&window.cancelAnimationFrame(this._requestAnimationId),this._stopAnimation=!0,this._unbind360Events(),this._pie360&&(this._pie360.destroy(),this._pie360=null),this._node360&&(this._node360.parentNode&&this._node360.parentNode.removeChild(this._node360),this._node360=null),this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this._camera=null,this._scene=null,this._360renderer=null},e.prototype._onPause=function(){this._isPaused=!0,this._stopAnimation=!0},e.prototype._onPlaying=function(){this._isPaused=!1,this._stopAnimation=!1,this._animate()},e.prototype._onSeeked=function(){this._update()},e.prototype._onMouseOver=function(){this.container&&this.container.classList.add("over-360")},e.prototype._onMouseDown=function(t){this._hasMouseDownAndMoved=!1,this.container&&(this.container.classList.remove("over-360"),this.container.classList.add("grabbing-360")),this._isUserInteracting=!0,this._onPointerDownPointX=t.clientX,this._onPointerDownPointY=t.clientY,this._onPointerDownLon=this._lon,this._onPointerDownLat=this._lat},e.prototype._onMouseMove=function(t){this._isUserInteracting&&(this._isPaused&&!this._isPausedAnimate&&(this._isPausedAnimate=!0,this._stopAnimation=!1,this._animate()),this._hasMouseDownAndMoved=!0,this._lon=.1*(this._onPointerDownPointX-t.clientX)+this._onPointerDownLon,this._lat=.1*(t.clientY-this._onPointerDownPointY)+this._onPointerDownLat,this._pie360&&this._pie360.update(this._lon))},e.prototype._onMouseUp=function(){this._isUserInteracting&&(this._stopDragging(),this._hasMouseDownAndMoved?this._eventBus.publish(a.THREE_SIXTY_INTERACT):this._eventBus.publish(a.TOGGLE_PLAY_PAUSE)),this._hasMouseDownAndMoved=!1},e.prototype._onMouseOut=function(){this._stopDragging()},e.prototype._onResize=function(){this.container&&this._resize(this.container.offsetWidth,this.container.offsetHeight)},e.prototype._onReady=function(){this._360ReadySubscriptionKey&&(this._eventBus.removeEventListener(a.THREE_SIXTY_READY,this._360ReadySubscriptionKey),this._360ReadySubscriptionKey=null),!this._isInitialized&&this._360renderer&&this.container&&(this._360renderer.setSize(this.container.offsetWidth,this.container.offsetHeight),this._isInitialized=!0)},e.type=u.RendererType.HTML5_HLS_360,e}(h.default);e.default=p},q9al:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s,a,u,l=i("JcWZ"),c=i("8PPl"),d=i("mczr"),h=i("xqNZ"),p=i("v5jO"),f=i("+Ojf"),_=i("ECHB"),m=i("mY9v");e.SUPPORTED_RENDERER_TYPES=[d.RendererType.HTML5_HLS,d.RendererType.HTML5_HLS_360],function(t){t.SET_QUALITY="settings-quality-set",t.UI_INTERACT="settings-ui-interact"}(o=e.SettingsEvent||(e.SettingsEvent={})),function(t){t.OPEN="vp-open",t.ACTIVE="vp-active",t.DISABLE="vp-disable",t.ON="vp-on"}(s=e.activationClasses||(e.activationClasses={})),function(t){t.low="low",t.medium="medium",t.high="high",t.auto="auto"}(a=e.StreamQualities||(e.StreamQualities={})),function(t){t.hdIcon="vp-settings-hdicon",t.low="vp-quality-low",t.medium="vp-quality-medium",t.high="vp-quality-high",t.auto="vp-quality-auto"}(u=e.itemClasses||(e.itemClasses={}));var y=function(t){function i(e){var i=t.call(this,"settings")||this;return i._model=e,i._qualityBtnTaps={},i}return r(i,t),i.prototype.create=function(){return this._node=f.default.render(m,{strings:h.default,itemClasses:u}),this._qualityBtnControl={low:this._node.querySelector("."+u.low),medium:this._node.querySelector("."+u.medium),high:this._node.querySelector("."+u.high),auto:this._node.querySelector("."+u.auto)},this._currentActivatedQuality=a.auto,this._node},i.prototype.onPlaybackStarted=function(t){this.shouldEnableSettings()&&(this._bindQualityBtns(t),this.activateItem(a.auto))},i.prototype.onPlayerResize=function(t,e){t.width<=c.HideBreakpointDimensions.WIDTH&&t.height<=c.HideBreakpointDimensions.HEIGHT&&this.isOpen()&&this.toggleSettings(e)},i.prototype.activateItem=function(t){f.default.classList(this._qualityBtnControl[this._currentActivatedQuality]).remove(s.ACTIVE),f.default.classList(this._qualityBtnControl[a[t]]).add(s.ACTIVE),this._currentActivatedQuality=a[t]},i.prototype.toggleSettings=function(t){this.shouldEnableSettings()&&(this.isOpen()?(f.default.classList(this._node).remove(s.OPEN),f.default.classList(t).remove(s.OPEN)):(f.default.classList(this._node).add(s.OPEN),f.default.classList(t).add(s.OPEN)))},i.prototype.isOpen=function(){return f.default.classList(this._node).contains(s.OPEN)&&!f.default.classList(this._node).contains(s.DISABLE)},i.prototype.destroy=function(){var t=this;Object.keys(this._qualityBtnTaps).forEach(function(e){t._qualityBtnTaps[e].destroy()})},i.prototype.shouldEnableSettings=function(){var t=this._model.playbackState.rendererType,i=this._model.playlist.getCurrentItem();return e.SUPPORTED_RENDERER_TYPES.indexOf(t)>-1&&i&&(i.streams.length>1||i.streamProfiles.length>1||this._model.bitrates.length>1)},i.prototype._bindQualityBtn=function(t,e){var i=this,n=this._qualityBtnControl[e];this._qualityBtnTaps[e]=new _.default(n,function(n){n.stopPropagation();var r="sr-"+e;i.publish(o.UI_INTERACT,{srcElement:r}),i.publish(o.SET_QUALITY,{preference:e,stream:t}),i.activateItem(e)})},i.prototype._bindQualityBtns=function(t){var e=this;this._populateStreamSelections(t),Object.keys(this._qualityBtnControl).filter(function(t){return!f.default.classList(e._qualityBtnControl[t]).contains(s.DISABLE)}).forEach(function(t){e._bindQualityBtn(e._qualityMap[t],t)})},i.prototype._populateStreamSelections=function(t){var e=this,i=t.streams,n=t.streamProfiles,r=this._model.capabilities[t.rendererType];if(i.length>1)this._qualityMap=p.default.mapStreamsToQualities(i);else if(n.length>1)this._qualityMap=p.default.mapStreamsToQualities(n);else if(this._model.bitrates.length>1){var o=[];this._model.bitrates.forEach(function(t,i){o.push({bitrate:t,height:e._model.heights[i]})}),this._qualityMap=p.default.mapStreamsToQualities(o)}this._qualityMap=this._qualityMap||{},this._qualityMap.auto=p.default.findStreamByProperty(i,"bitrate",this._model.desiredBitrate,r),Object.keys(this._qualityBtnControl).forEach(function(t){var i=e._qualityMap[t];if(i){f.default.classList(e._qualityBtnControl[t]).remove(s.DISABLE);var n=e._qualityBtnControl[t].querySelector("."+u.hdIcon);n&&i.height&&i.height>=720&&f.default.classList(n).add(s.ON)}else f.default.classList(e._qualityBtnControl[t]).add(s.DISABLE)})},i}(l.default);e.default=y},qKMm:function(t,e,i){"use strict";t.exports=b;var n=i("y5bh").HLSEvent,r=i("iSaY"),o=i("cDre"),s=o.StreamingController,a=o.Events,u=i("t8qO"),l=i("x7P6").MetadataTypes,c=i("2fkz").CmdNames,d=i("R6Gm"),h=i("HNE+"),p=i("jYym"),f=i("RwmF"),_=i("/iNa"),m=i("x7P6").Model,y=i("yCb9"),v=i("lPOR"),g=i("KtsB"),E=i("4oyL").userAgent;function b(t,e){f.call(this,this.constructor.name),this._properties=t,this._callback=e,this.model=this.create(m,t),this.services=this.create(y),this._parser=this.services.metadataParser,this._commandManager=this.create(d),this._streamingController=this.create(s),this._bufferMonitor=this.create(u),this._state=p.INITIAL,this._eventKeys={},this._inWorkerScope=this._properties.config.inWorkerScope,this._addEventListeners(),this._seeking=!1,this._playStarted=!1,this._processTimer=new h(250),this._processTimer.addEventListener(this._process,this),this.initialize()}_.inherits(b,f),b.prototype.create=function(){var t=this,e=Array.prototype.slice.call(arguments),i=e.shift(),n=Object.create(i.prototype);return n.__controller=t,i.apply(n,e),n},b.prototype.destroy=function(){this._streamingController&&(this._streamingController.destroy(),this._streamingController=null),this._bufferMonitor&&(this._bufferMonitor.destroy(),this._bufferMonitor=null),this._commandManager&&(this._commandManager.destroy(),this._commandManager=null),this.services&&(this.services.destroy(),this.services=null),this._processTimer&&(this._processTimer.destroy(),this._processTimer=null),this._state=p.INITIAL,this.removeEventListeners(this._eventKeys),f.prototype.destroy.call(this)},b.prototype.initialize=function(){this._loadMetadata()},b.prototype.getSegInfo=function(){var t=this._streamingController.getMetrics();return this._inWorkerScope&&this.sendEvent(n.SEG_INFO_METRICS_AVAILABLE,t),t},b.prototype.sendEvent=function(t,e){this.publish(t,e);var i=this.create(g,{type:v.MessageTypes.EVENT,id:t,args:[e],argNames:["eventData"]});this._notifyClient(i)},b.prototype.sendMessage=function(t,e,i,n){var r=this.create(g,{type:v.MessageTypes.MESSAGE,id:t,args:e,argNames:i});this._notifyClient(r,n)},b.prototype.notifyError=function(t){this.error=t;var e=this._state;e!==p.ERROR&&this._setState(p.ERROR),e!==p.PAUSED&&this.sendEvent(n.ERROR,"HlsError"===this.error.constructor.name?this.error.dto():this.error)},b.prototype._notifyClient=function(t,e){t&&this._callback&&(t.addMedia(),this._callback(t,e))},b.prototype._addEventListeners=function(){this._streamingController.addEventListener(a.STREAM_METADATA_LOADED,this._onStreamMetadataLoaded,this),this._streamingController.addEventListener(a.STREAM_METADATA_LOAD_ERROR,this._onStreamMetadataLoadError,this),this._streamingController.addEventListener(a.PRELOAD_COMPLETE,this._onPreloadComplete,this),this._streamingController.addEventListener(a.SEG_LOAD_PROGRESS,this._onSegLoadProgress,this)},b.prototype._beforeStateChange=function(t){},b.prototype._setState=function(t,e){this._beforeStateChange(t),this._state=t,this.sendEvent(n.STATE_CHANGED,t),this._afterStateChange(e)},b.prototype.getState=function(){return this._state},b.prototype._afterStateChange=function(t){switch(this._state){case p.MEDIA_METADATA_LOADING:this._loadMedia();break;case p.MEDIA_METADATA_LOADED:if(this.sendEvent(n.MEDIA_METADATA_LOADED),this.model.isDash()){this.sendMessage(v.MessageIds.DRM_INIT),this._setState(p.MEDIA_LOADED);break}this._setState(p.STREAM_METADATA_LOADING);break;case p.STREAM_METADATA_LOADING:this._streamingController.loadStream(this.model.getCurrentLoadingStream());break;case p.STREAM_METADATA_LOADED:this._setState(p.MEDIA_LOADED);break;case p.MEDIA_LOADED:if(E.android&&E.chrome&&this.model.drmInfo&&this.model.drmInfo.length)return;this._initializeStreamingController();break;case p.PRELOADING:this._streamingController.onPreloadBegin(),this.sendEvent(n.PRELOAD_START),this._processTimer.start();break;case p.PLAY_REQUESTED:this._processTimer.start(),this._streamingController.onPlay(t),this._playStarted||(this._bufferMonitor.onPlayRequested(),this._playStarted=!0);break;case p.PLAYING:this._streamingController.onPlaying();break;case p.PLAY_COMPLETE:this._processTimer.stop(),this._streamingController.onComplete(),this._bufferMonitor.onComplete();break;case p.ERROR:this._processTimer.stop(),this._streamingController.onError(),this._commandManager.removeAllCommands(),this._bufferMonitor.onError()}},b.prototype._loadMetadata=function(){var t=this.model.metadata;if(this._state===p.INITIAL)return t.type===l.STRUCTURED?(this.model.build(this._parser.parse(t)),void(t.hasStreamMetadata?t.hasSubtitleMetadata?this._streamingController.loadAllSubtitleStreams():this._setState(p.MEDIA_LOADED):t.hasMediaMetadata&&this._setState(p.MEDIA_METADATA_LOADED))):void this._setState(p.MEDIA_METADATA_LOADING)},b.prototype._process=function(){this._state<p.MEDIA_LOADED||(this._bufferMonitor.checkBuffering(),this._streamingController.process())},b.prototype.onPlay=function(t){this._state===p.ERROR&&this.error&&this.notifyError(this.error),this._state<p.MEDIA_LOADED||(this._state===p.PRELOADING&&(this._streamingController.onPreloadEnd(),this.sendEvent(n.PRELOAD_COMPLETE)),this._setState(p.PLAY_REQUESTED,t))},b.prototype.onPlaying=function(){this._state<p.MEDIA_LOADED||(this._setState(p.PLAYING),this._bufferMonitor.onPlaying())},b.prototype.onPause=function(){this._state<p.MEDIA_LOADED||(this._streamingController.onPause(),this._bufferMonitor.onPause(),this._setState(p.PAUSED))},b.prototype.onSeeking=function(t){this._state<p.MEDIA_LOADED||(this._seeking=!0,this._streamingController.onSeeking(t),this._bufferMonitor.onSeeking())},b.prototype.onSeeked=function(t){this._state<p.MEDIA_LOADED||(this._seeking=!1,this._streamingController.onSeeked(t),this._bufferMonitor.onSeeked())},b.prototype.onComplete=function(){this._state<p.MEDIA_LOADED||this._setState(p.PLAY_COMPLETE)},b.prototype.onError=function(t){this._setState(p.ERROR)},b.prototype.onTimeUpdate=function(t){this._updateModel(t),this._bufferMonitor.onTimeUpdate(),this._streamingController.onTimeUpdate(this.model.currentTime)},b.prototype.onUpdate=function(t){this._updateModel(t),this._bufferMonitor.onTimeUpdate()},b.prototype.onSynchComplete=function(t){this._streamingController.onSynchComplete(),this._bufferMonitor.onVideoSync(t)},b.prototype.onSynchMetadataReady=function(t){this._streamingController.onSynchMetadataReady(t)},b.prototype._updateModel=function(t){t&&(this.model.currentTime=t.currentTime,this.model.bufferedAndPending=t.bufferedAndPending,this.model.bufferLength=t.bufferLength,this.model.pendingBufferLength=t.pendingBufferLength,this.model.bufferedRanges=t.bufferedRanges,this.model.dimensions=t.dimensions,this.model.pixelRatio=t.pixelRatio,this.services.segmentMetrics.updateFrameStats(t.frameStats))},b.prototype._loadMedia=function(){var t=this.model.getMediaUrl(),e=t&&-1!==t.indexOf(".mpd"),i={url:t,withResponseHeaders:e};this._commandManager.executeCommand(c.CMD_MEDIA_LOAD,i,this)},b.prototype.onMediaLoadComplete=function(t,e){if(t)if(e){var i={rawData:e.data,headers:e.headers,type:l.RAW,url:t.data?t.data.url:"",cdn:this.model.getMediaCdn()};this.model.build(this._parser.parse(i)),this._commandManager.removeCommand(t),this._setState(p.MEDIA_METADATA_LOADED)}else this._commandManager.removeCommand(t)},b.prototype.onMediaLoadError=function(t,e){t&&this._commandManager.removeCommand(t),e&&1===e.code&&(this._setState(p.ERROR),this.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD)))},b.prototype._onStreamMetadataLoaded=function(){this._state<p.MEDIA_LOADED&&this._setState(p.STREAM_METADATA_LOADED)},b.prototype._onStreamMetadataLoadError=function(){this._setState(p.ERROR),this.notifyError(new r.Error(r.ERR_PLAYLIST_LOAD))},b.prototype._onPreloadComplete=function(){this._state===p.PRELOADING&&(this._setState(p.MEDIA_LOADED),this.sendEvent(n.PRELOAD_COMPLETE)),this._processTimer.reset()},b.prototype._onSegLoadProgress=function(){this._bufferMonitor.isBuffering()&&this.sendEvent(n.BUFFER_GROWTH_DETECTED)},b.prototype._stateToString=function(t){for(var e=Object.keys(p),i=0;i<e.length;i++)if(t===p[e[i]])return e[i]},b.prototype.preload=function(t){t&&(this.model.config.preloadBufferLimit=t,this.model.bufferLength+this.model.pendingBufferLength<t&&this._state===p.MEDIA_LOADED&&this._setState(p.PRELOADING))},b.prototype.setABRMode=function(t){this._state<p.MEDIA_LOADED||this._streamingController.setABRMode(t)},b.prototype.setAudioLanguage=function(t){this._state<p.MEDIA_LOADED||this._streamingController.setAudioLanguage(t)},b.prototype.getMinimumBufferTime=function(){return this._bufferMonitor.getMinimumBufferTime()},b.prototype.suspendStreaming=function(){this._processTimer.stop(),this._streamingController.suspendStreaming()},b.prototype.resumeStreaming=function(){this._state!==p.PRELOADING&&this._state!==p.PLAY_REQUESTED&&this._state!==p.PLAYING&&this._state!==p.PAUSED||(this._streamingController.resumeStreaming(),this._processTimer.start())},b.prototype._initializeStreamingController=function(){this._streamingController.isInitialized()||(this._streamingController.init(),this.sendEvent(n.MEDIA_LOADED),!this.model.live&&this.model.bufferLength+this.model.pendingBufferLength<this.model.config.preloadBufferLimit&&this._setState(p.PRELOADING))},b.prototype.onGenerateRequestComplete=function(){this._initializeStreamingController()}},qrnT:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("t8Yn"),r=i("Ld5f"),o=function(){function t(){this.name="ProviderBrandingPlugin",this.version="8.1.170",this.type=n.Plugin.PluginType.BRANDING,this.mimetype="branding/provider"}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t){var e=document.createElement("div"),i=this._renderBranding(t);return i?(e.innerHTML=i,e.children[0]):null},t.prototype._renderBranding=function(t){var e=t&&t.branding&&t.branding.providerId,n=e&&r.PROVIDER_BRANDING_TEMPLATES[e];return this._shouldRenderBranding(t)?(i("7fx/"),n.render()):null},t.prototype._shouldRenderBranding=function(t){var e=t&&t.branding&&t.branding.providerId,i=e&&r.PROVIDER_BRANDING_TEMPLATES[e],n=t&&t.branding.gameOrigin||[];return!(i&&"video.nflhighlights.com"===e&&n.indexOf("vzw")>-1)&&!!i},t}();e.default=o},"r/m/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("8PPl"),r=i("u8By"),o=i("UDn2"),s=i("mczr"),a=i("fLR+"),u=i("+Ojf"),l=i("vTO9"),c=function(){function t(t){this._player=t,this.viewability={value:0,timestamp:0,rect:{top:null,bottom:null,height:null},windowHeight:null,isVisible:0,invisibleElement:""},this.progressBeaconsInfo={timeLastSent:{}},this.SKIP_PARAM_IN_BEACON="___skip_param_in_beacon___",this.expm="na",this.pltype="vdms",this._bitrate=0,this._V="V",this.type="",this.ss="",this.vid="",this.pstaid="",this.prt="none",this.cprt="none",this.vs="",this.vlng="none",this.pver="",this.host=document.location.host,this._w=document.location.href,this._R=document.referrer,this.pls="",this.auto="",this.snd="",this.deos="",this.deom="",this.psz="",this.ccav="",this.cdn="uncalculated",this.smpl="",this.cont=1,this.replay=0,this.focus="",this.bit=0,this.endscreen=0,this.drmsys="none",this.drm=!1,this._sqno=0,this.ts=0,this.pl_type="",this.pl_uuid="",this.pl_intr="",this.pl_sec="",this.resetProgressBeaconsState()}return t.getStreamType=function(e,i,n){return Object.values(r.AdBreakType).includes(i)?t.getAdType(i):Object.values(o.MediaItemType).includes(i)?t.getContentType(i,i,n):e===s.PlaybackMode.AD?"ad":i},t.getContentType=function(e,i,n){if(e===r.AdBreakType.NATIVE)return"ad native";switch(i){case o.MediaItemType.VOD:return 0===n?"":n>t.LONG_VOD_DURATION?"vod long":"vod short";case o.MediaItemType.LIVE_EVENT:case o.MediaItemType.LIVE_CHANNEL:return"live";case o.MediaItemType.CONTAINER:return"streamurl"}return""},t.getAdType=function(t){switch(t){case r.AdBreakType.PREROLL:return"ad pre-roll";case r.AdBreakType.MIDROLL:return"ad mid-roll";case r.AdBreakType.POSTROLL:return"ad post-roll";case r.AdBreakType.TRIGGER:return"ad trigger";case r.AdBreakType.NON_LINEAR:return"ad non-linear";case r.AdBreakType.NATIVE:return"ad native"}return""},t.prototype.destroy=function(){this.pls="",this._sqno=0},t.prototype.update=function(e){this.requestType=e.requestType||"",this.requestAction=e.requestAction||"none",this.audioLanguage=e.audioLanguage||"",this._playerRootElement=e.playerRootElement||this._playerRootElement,this.playbackMode=e.playbackMode,this.adParams=this.playbackMode!==s.PlaybackMode.AD?null:this.adParams,this.type=t.getContentType(e.currentMediaType,e.contentType,e.videoLength)||"",this.pls=this._player.guid,this.ss=this._getStreamStatus(e.currentMediaType)||this.ss,this.vid=e.videoId||this.vid,this.pstaid=e.videoId||this.pstaid,this.prt=this._getRendererType(e.rendererType)||this.prt,this.cprt=this._getRendererType(e.mediaItemRendererType)||this.cprt,this.vs=e.sessionId||this.vs,this.vlng=e.videoLength&&parseFloat(parseFloat(e.videoLength).toFixed(2)).toString()||this.vlng,this.pver="0.2.137"===e.playerVersion?"local":e.playerVersion,this.auto=!0===e.autoPlay?"true":"false",this.snd=!0===e.mute?"m":"um",this.deos=e.docking&&!0===e.docking.enableOnScrollDown?"1":"0",this.deom=e.docking&&!0===e.docking.enableOnMuted?"1":"0",this.psz=e.uiState&&e.uiState.width&&e.uiState.height?e.uiState.width+"x"+e.uiState.height:this.psz,this.ccav=!0===e.isCCAvailable?"1":"0",this.cdn=e.cdn||this.cdn,this.smpl=a.isNullOrUndefined(e.samplingId)?this.smpl:e.samplingId.toString(),this.focus=u.default.isPlayerInBackground()?"0":"1",this.expm=(e.uiState&&!0===e.uiState.isFullScreen?"fullscreen":e.uiState&&!0===e.uiState.isDocked&&"docked")||"na",this.endscreen=e.showEndScreen?1:0,this.drmsys=e.drmsys,this.drm=e.drm,this.ts=e.currentTs-this._player.getInitTime()},t.prototype.getCommonParams=function(){var t=this,e={t:Math.random()};return l.PARAMS.forEach(function(i){e[i]=t[i]}),e},t.prototype.onVideoRequest=function(t,e){this._currentVideo&&(e.videoId===this._currentVideo?this.replay++:this.cont++),this._currentVideo=e.videoId,this.bitrate=0},t.prototype.onBeaconSent=function(){this._sqno++},t.prototype.resetProgressBeaconsState=function(){this.progressBeaconsInfo.timeLastSent=l.PROGRESS_BEACON_INTERVALS.reduce(function(t,e){return t[e.key]=-1,t},{})},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._player.getCurrentTime()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){var t=this._player.volume;return t&&t>0&&t.toString()||"0"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitrate",{get:function(){return this._bitrate},set:function(t){this._bitrate=Math.round(t),this.bit=Math.round(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"programDateTimeLatency",{get:function(){var t=this._player.getCurrentDate(),e=(new Date).getTime();return t>0?(e-t).toString():""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"play_pos",{get:function(){return parseFloat(this.currentTime.toFixed(2)).toString()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return this._getPlayerViewability(this._playerRootElement).toString()+"%"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewd",{get:function(){var t=this.viewability;return JSON.stringify({ts:this.viewability.timestamp,t:a.isNullOrUndefined(t.rect.top)?"":t.rect.top,b:a.isNullOrUndefined(t.rect.bottom)?"":t.rect.bottom,h:a.isNullOrUndefined(t.rect.height)?"":t.rect.height,wh:this.viewability.windowHeight||"",v:this.viewability.isVisible,i:this.viewability.invisibleElement})},enumerable:!0,configurable:!0}),t.prototype._getRendererType=function(t){if(!t)return"";switch(t){case s.RendererType.HTML5_HLS:return"html5-hls";case s.RendererType.HTML5_HLS_360:return"html5-hls-360";case s.RendererType.HTML5_RAW_360:return"html-360";case s.RendererType.EXTERNAL:case s.RendererType.HTML5_RAW:case s.RendererType.HTML5_TV:case s.RendererType.HTML5_TV_TIZEN:case s.RendererType.HTML5_TV_ORSAY:default:return"html"}},t.prototype._getStreamStatus=function(t){return t===o.MediaItemType.LIVE_EVENT||t===o.MediaItemType.LIVE_CHANNEL?"live":"vod"},t.prototype._getPlayerViewability=function(t){var e=(new Date).getTime();if(t&&e-this.viewability.timestamp>1e3){var i=t&&void 0!==t.getElementsByClassName?t.getElementsByClassName(n.VIDEO_MAIN_ELEMENT_CLASS):null;i&&i.length&&(this.viewability.value=u.default.getElementViewability(i[0]),this.viewability.timestamp=e,this.viewability.rect=i[0].getBoundingClientRect(),this.viewability.windowHeight=window.innerHeight,this.viewability.isVisible=null!==i[0].offsetParent?1:0,this.viewability.invisibleElement=this.viewability.isVisible?"":this._getInvisibleParentId(i[0]))}return this.viewability.value},t.prototype._getInvisibleParentId=function(t){return t?t.parentElement&&"none"!==t.style.display?this._getInvisibleParentId(t.parentElement):JSON.stringify({n:t.nodeName,i:t.id,cl:t.classList}):""},t.LONG_VOD_DURATION=600,t}();e.default=c},rH6S:function(module,exports,__webpack_require__){(function(global){function jb(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var jc="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},lf="undefined"!=typeof window&&window===this?this:void 0!==global&&null!=global?global:this;function zh(){zh=function(){},lf.Symbol||(lf.Symbol=Ah)}var Ah=(d=0,function(t){return"jscomp_symbol_"+(t||"")+d++}),d,Bl;function Bh(){zh();var t=lf.Symbol.iterator;t||(t=lf.Symbol.iterator=lf.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&jc(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return xl(jb(this))}}),Bh=function(){}}function xl(t){return Bh(),(t={next:t})[lf.Symbol.iterator]=function(){return this},t}function yl(t,e){Bh(),t instanceof String&&(t+="");var i=0,n={next:function(){if(i<t.length){var r=i++;return{value:e(r,t[r]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n}function zl(t,e){if(e){var i=lf;t=t.split(".");for(var n=0;n<t.length-1;n++){var r=t[n];r in i||(i[r]={}),i=i[r]}(e=e(n=i[t=t[t.length-1]]))!=n&&null!=e&&jc(i,t,{configurable:!0,writable:!0,value:e})}}function Al(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:jb(t)}}if(zl("Array.prototype.keys",function(t){return t||function(){return yl(this,function(t){return t})}}),zl("String.prototype.startsWith",function(t){return t||function(t,e){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var i=this+"",n=i.length,r=(t+="").length;e=Math.max(0,Math.min(0|e,i.length));for(var o=0;o<r&&e<n;)if(i[e++]!=t[o++])return!1;return o>=r}}),zl("Array.prototype.fill",function(t){return t||function(t,e,i){var n=this.length||0;for(0>e&&(e=Math.max(0,n+e)),(null==i||i>n)&&(i=n),0>(i=Number(i))&&(i=Math.max(0,n+i)),e=Number(e||0);e<i;e++)this[e]=t;return this}}),zl("Array.prototype.entries",function(t){return t||function(){return yl(this,function(t,e){return[t,e]})}}),zl("Object.getOwnPropertySymbols",function(t){return t||function(){return[]}}),zl("Promise",function(t){function e(t){this.Re=0,this.vj=void 0,this.Td=[];var e=this.ki();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}}function i(){this.fc=null}function n(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;i.prototype.il=function(t){if(null==this.fc){this.fc=[];var e=this;this.jl(function(){e.iq()})}this.fc.push(t)};var r=lf.setTimeout;i.prototype.jl=function(t){r(t,0)},i.prototype.iq=function(){for(;this.fc&&this.fc.length;){var t=this.fc;this.fc=[];for(var e=0;e<t.length;++e){var i=t[e];t[e]=null;try{i()}catch(t){this.yp(t)}}}this.fc=null},i.prototype.yp=function(t){this.jl(function(){throw t})},e.prototype.ki=function(){function t(t){return function(n){i||(i=!0,t.call(e,n))}}var e=this,i=!1;return{resolve:t(this.zt),reject:t(this.pj)}},e.prototype.zt=function(t){if(t===this)this.pj(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.iu(t);else{t:switch(typeof t){case"object":var i=null!=t;break t;case"function":i=!0;break t;default:i=!1}i?this.yt(t):this.am(t)}},e.prototype.yt=function(t){var e=void 0;try{e=t.then}catch(t){return void this.pj(t)}"function"==typeof e?this.ju(e,t):this.am(t)},e.prototype.pj=function(t){this.En(2,t)},e.prototype.am=function(t){this.En(1,t)},e.prototype.En=function(t,e){if(0!=this.Re)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.Re);this.Re=t,this.vj=e,this.jq()},e.prototype.jq=function(){if(null!=this.Td){for(var t=0;t<this.Td.length;++t)o.il(this.Td[t]);this.Td=null}};var o=new i;return e.prototype.iu=function(t){var e=this.ki();t.Nf(e.resolve,e.reject)},e.prototype.ju=function(t,e){var i=this.ki();try{t.call(e,i.resolve,i.reject)}catch(t){i.reject(t)}},e.prototype.then=function(t,i){function n(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(t){o(t)}}:e}var r,o,s=new e(function(t,e){r=t,o=e});return this.Nf(n(t,r),n(i,o)),s},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Nf=function(t,e){function i(){switch(n.Re){case 1:t(n.vj);break;case 2:e(n.vj);break;default:throw Error("Unexpected state: "+n.Re)}}var n=this;null==this.Td?o.il(i):this.Td.push(i)},e.resolve=n,e.reject=function(t){return new e(function(e,i){i(t)})},e.race=function(t){return new e(function(e,i){for(var r=Al(t),o=r.next();!o.done;o=r.next())n(o.value).Nf(e,i)})},e.all=function(t){var i=Al(t),r=i.next();return r.done?n([]):new e(function(t,e){function o(e){return function(i){s[e]=i,0==--a&&t(s)}}var s=[],a=0;do{s.push(void 0),a++,n(r.value).Nf(o(s.length-1),e),r=i.next()}while(!r.done)})},e}),zl("Object.is",function(t){return t||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}}),"function"==typeof Object.setPrototypeOf)Bl=Object.setPrototypeOf;else{var Cl;t:{var at={a:!0},bt={};try{bt.__proto__=at,Cl=bt.a;break t}catch(d){}Cl=!1}Bl=Cl?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var ct=Bl;zl("Object.setPrototypeOf",function(t){return t||ct}),zl("Array.from",function(t){return t||function(t,e,i){e=null!=e?e:function(t){return t};var n=[],r="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];if("function"==typeof r){t=r.call(t);for(var o=0;!(r=t.next()).done;)n.push(e.call(i,r.value,o++))}else for(r=t.length,o=0;o<r;o++)n.push(e.call(i,t[o],o));return n}});var dt="function"==typeof Object.assign?Object.assign:function(t,e){for(var i=1;i<arguments.length;i++){var n=arguments[i];if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};zl("Object.assign",function(t){return t||dt}),zl("Object.values",function(t){return t||function(t){var e,i=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(t[e]);return i}}),zl("Array.prototype.find",function(t){return t||function(t,e){t:{var i=this;i instanceof String&&(i=String(i));for(var n=i.length,r=0;r<n;r++){var o=i[r];if(t.call(e,o,r,i)){t=o;break t}}t=void 0}return t}});var et=window;function ft(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={Ee:n,xs:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.xs=!0,r.exports}var i={};return e.gx=t,e.c=i,e.d=function(t,i,n){e.Ls(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)e.d(n,r,function(e){return t[e]}.bind(null,r));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.Ls=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.Cx=178)}([function(t){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,i){function n(t,e){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}function r(t){t&&(window.Promise?window.Promise.resolve().then(t):setTimeout(t,1))}function o(t,e){return t.sort(function(t,i){return(e?1:-1)*(t.width*t.height-i.width*i.height)})}function s(t){var e="<video ".concat("%PLAY_INLINE%",' style="').concat("display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0; margin: 0; z-index: 1;",'"></video>'),i=F.Ud()?"playsinline muted":"";return new x.a(t).Ks(e.replace("%PLAY_INLINE%",i))}function a(t){return"html5-vpaid".concat(!0===t?",swf":"")}function u(){var t=/CPU OS (.*) like Mac OS X/.exec(navigator.userAgent),e=!!navigator.userAgent.match("iPad")&&1;return t&&(e=+t[1].replace(/_/,".").replace(/_/g,"")),e}function l(t){return"function"!=typeof t.getAttribute||"function"!=typeof t.appendChild}function c(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function d(t){return n(t,"Function")}function h(t){return n(t,"Object")}function p(t){return n(t,"String")}function f(t){return null!=t?Array.isArray(t)||n(t,"HTMLCollection")||n(t,"NodeList")?t:[t]:[]}function _(t,e){(t=f(t)).forEach(function(t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t.style[i]=e[i])})}function m(t,e,i,n){var r;for(r in t=i?i.ownerDocument.createElement(t):window.vdb&&window.vdb.ue&&window.vdb.ue.createElement?window.vdb.ue.createElement(t):document.createElement(t),e=e||{})if(Object.prototype.hasOwnProperty.call(e,r)){var o=e[r];null!==o&&("style"===r&&"object"===B()(o)?_(t,o):t.setAttribute(r,Array.isArray(o)?o.join(" "):o))}return n&&(t.innerHTML=n),i&&i.appendChild(t),t}function y(t,e){t=f(t),e=f(e);for(var i=0;i<t.length;++i){for(var n=[],r=0;r<e.length;++r)new RegExp("(^|\\s)".concat(e[r],"(\\s|$)")).test(t[i].className)||n.push(e[r]);t[i].className="".concat(t[i].className," ").concat(n.join(" ")).trim()}}function v(t,e){t=f(t),e=f(e);for(var i=0;i<t.length;++i)if(t[i]&&t[i].className)for(var n=0;n<e.length;++n)t[i].className=t[i].className.replace(new RegExp("(^|\\s+)".concat(e[n],"(\\s+|$)"),"g")," ").trim()}function g(t,e,i){v(t,e),y(t,i)}function E(t){if(Array.isArray(t)&&0<t.length)return!1;if(h(t))for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function b(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];for(t=1;t<e.length;t++)for(var n in e[t])Object.prototype.hasOwnProperty.call(e[t],n)&&(e[0][n]=e[t][n]);return e[0]}function S(t){return Array.isArray(t)&&(t=t.slice()),t}function A(t){return new U.a(function(e,i){setTimeout(function(){i(Error("timeout ".concat(t," ms reached")))},t)})}function T(t){return!(!t||"function"!=typeof t)&&(0>String(Function.prototype.toString).indexOf("[native code]")?t!==Function.prototype.toString&&null:0<=String(t).indexOf("[native code]"))}function I(t){var e=V.a.Aa();try{if(t&&"function"==typeof t)if(t instanceof e.Function)var i=!0;else{var n=t.toString();n&&(i=!(!(n=new t.constructor("return window; ")())||!n.top))}}catch(t){}return!!i}function C(t){if(!t)return null;if("string"==typeof t)return t;var e=[];if(t&&"object"===B()(t))for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=t[i];if(0===n||n&&"function"!=typeof n){var r="".concat(encodeURIComponent(i),"=");r+=encodeURIComponent(String(n)),e.push(r)}}return e.join("&")}function R(t,e){var i={};if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].split("="),o=r[0];try{o=decodeURIComponent(o)}catch(t){}try{var s=void 0;1<r.length&&(s=decodeURIComponent(r[1])),i[o]=s,e&&e(o,s)}catch(t){}}}return i}function L(t){for(var e,i=[],n=0;n<t.length;n++)(e=C(t[n]))&&i.push(e);return i.join("&")}function P(t,e,i){var n=Array.prototype.toJSON;if(delete Array.prototype.toJSON,window.JSON&&window.JSON.stringify)try{var r=JSON.stringify(t,e,i)}catch(t){}else r=window.JSON&&window.JSON.encode?window.JSON.encode(t):String.valueOf(t);return n&&(Array.prototype.toJSON=n),r}function O(t){return window.atob(t)}function D(t,e){for(var i in e=e||{},t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function M(t){if(""===t)return 0;var e=0;(t=(t=t.split(".")[0]).split(":")).reverse();for(var i=[1,60,3600],n=0;n<t.length;n++)e+=t[n]*i[n];return e}function w(t,e){return null!=t?t:e}function N(t,e){t:{for(var i=0;i<t.length;i++)if(e(t[i],i,t)){e=i;break t}e=void 0}return t[e]}function k(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(t).filter(function(t){return 0===t.indexOf(e)}).reduce(function(n,r){var o=i.modify?r.split(e)[1]:r;return n[o=!1!==i.Yx?o.toLowerCase():o]=t[r],n},{})}i(34),i(16),i(25),t=i(27),i.n(t),i(94),i(68),t=i(19);var B=i.n(t);i(6),i(39),i(65),i(17),i(40);var x=i(47);i(2);var U=i(9);i(7);var V=i(8);i.d(e,"d",function(){return r}),i.d(e,"E",function(){return o}),i.d(e,"i",function(){return s}),i.d(e,"n",function(){return a}),i.d(e,"r",function(){return l}),i.d(e,"A",function(){return c}),i.d(e,"q",function(){return d}),i.d(e,"u",function(){return h}),i.d(e,"v",function(){return p}),i.d(e,"G",function(){return f}),i.d(e,"D",function(){return _}),i.d(e,"h",function(){return m}),i.d(e,"a",function(){return y}),i.d(e,"z",function(){return v}),i.d(e,"B",function(){return g}),i.d(e,"p",function(){return E}),i.d(e,"k",function(){return b}),i.d(e,"f",function(){return S}),i.d(e,"y",function(){return A}),i.d(e,"t",function(){return T}),i.d(e,"e",function(){return I}),i.d(e,"C",function(){return C}),i.d(e,"j",function(){return R}),i.d(e,"x",function(){return L}),i.d(e,"w",function(){return P}),i.d(e,"b",function(){return O}),i.d(e,"g",function(){return D}),i.d(e,"F",function(){return M}),i.d(e,"o",function(){return w}),i.d(e,"m",function(){return N}),i.d(e,"l",function(){return k}),i.d(e,"c",function(){return F}),i.d(e,"s",function(){return H});var j=navigator.userAgent.toLowerCase();e=navigator.platform.toLowerCase(),(i=j.match(/(samsungbrowser|edge)[\s\/:]([\w\d\.]+)/))||(i=j.match(/(opera|ie|trident|firefox|fxios|chrome|crios|version|fban)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)),i?(t=i[0].match(/(chrome|crios)\/(.*?)\s/))&&(i=[null,"chrome",t[2]]):i=[null,"unknown",0],t=("ie"===i[1]||"trident"===i[1])&&document.documentMode;var F={fw:{Kv:!!window.Bx,json:!!window.JSON,query:!!document.querySelector,iy:!!document.evaluate},ms:function(){return"ios"===F.platform.name},ug:function(){return/android|blackberry|iphone|ipad|ipod|opera mini|iemobile/i.test(j)},name:"version"===i[1]?i[3]:i[1],platform:{name:j.match(/ip(?:ad|od|hone)/)?"ios":(j.match(/(?:webos|android)/)||e.match(/mac|win|linux/)||["other"])[0],version:function(){var t=/Android (\d+(?:\.\d+)+)/.exec(navigator.userAgent),e=!!navigator.userAgent.match("Android")&&1;if(t){t=t[1].split("."),e=0;for(var i=1,n=0;n<t.length;n++)e+=parseInt(t[n])/i,i*=10}return e}()||u()||function(){var t=/iPhone OS (.*) like Mac OS X/.exec(navigator.userAgent),e=!(!navigator.userAgent.match("iPod")&&!navigator.userAgent.match("iPhone"))&&1;return t&&(e=+t[1].replace(/_/,".").replace(/_/g,"")),e}()||""},Ud:function(){var t=F.ms();return!F.ug()||u()||t&&"safari"===F.name&&10<=F.version||t&&"chrome"===F.name&&54<=F.version||t&&"fxios"===F.name&&10.3<=F.version||t&&"fban"===F.name||!!F.platform.android&&"chrome"===F.name&&53<=F.version||!!F.platform.android&&"firefox"===F.name||!!F.platform.android&&"samsungbrowser"===F.name&&6.2<=F.version},version:t||parseFloat("opera"===i[1]&&i[4]?i[4]:i[2])};F[F.name]=!0,F[F.name+parseInt(F.version,10)]=!0,F.platform[F.platform.name]=!0;var H=0<=navigator.userAgent.indexOf("MSIE ")||0<=navigator.userAgent.indexOf("Trident/");try{var Y=document.createElement("canvas");window.WebGLRenderingContext&&(Y.getContext("webgl")||Y.getContext("experimental-webgl"))}catch(t){}},function(t,e,i){i.d(e,"a",function(){return s}),t=i(56),i.n(t),t=i(6),i.n(t);var n=i(79),r=i(147).default,o=i(12).default,s=function(){function t(){}var e=t.prototype;return e.Z=function(){this.qb?this.qb.Z():void 0!==this.Ya.nodeType?r.removeEventListener(this.Ya,this.vh,this.mf):this.Ya.removeEventListener(this.vh,this.mf,this.Yk)},e.link=function(){if(!arguments.length)return this;this.qb||(this.qb=new n.a(this));for(var t=0;t<arguments.length;++t){var e=0>t||arguments.length<=t?void 0:arguments[t];e.qb?this.qb.Fs(e.qb):this.qb.$a(e)}return this.qb.Qp(),this},t.bind=function(e,i,n,o,s){o=!!o;var a=new t;return a.Ya=e,a.vh=i,a.xk=n,a.Yk=o,a.Ok=!!s,a.mf=function(){if(this.Ok&&this.Z(),this.xk){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];this.xk.apply(window,e)}}.bind(a),void 0!==e.nodeType?r.addEventListener(e,i,a.mf):e.addEventListener(i,a.mf,o),a},t.qa=function(e,i,n){return t.bind(e,i,n,void 0,!0)},t.empty=function(){var e=new t;return e.Ya=new o,e.vh="DOESN'T_MATTER",e.Yk=!0,e.Ok=!0,e},t.group=function(){for(var e=t.empty(),i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return n.forEach(function(i){i.length?(i=t.group.apply(null,i),e.link(i)):e.link(i)}),e},t}()},function(t,e,i){function n(t){return 10>t?"0".concat(t):t}function r(t,e,i){if(l.indexOf(t)>=o()&&window.console){var r=new Date,a=r.getMilliseconds();i=["".concat(n(r.getHours()),":").concat(n(r.getMinutes()),":").concat(n(r.getSeconds()),".").concat(10>a?"00".concat(a):100>a?"0".concat(a):a),"[".concat(t,"]"),"".concat(e,":").concat(h.nn?" ".concat(h.nn):"")].concat(Array.prototype.slice.apply(i)),r=t.toLowerCase(),window.console[r]||(r="log"),r=window.console[r],"object"===s()(r)&&(r=Function.prototype.bind.call(r,window.console)),r&&r.apply(window.console,i)}for(r=0;r<c.length;r++)c[r](t,e,i)}function o(){if(void 0===h.Ch){var t=parseInt(a.a.Ta("aolplayerloglvl"),10);h.Ch=isNaN(t)?Number(u.a["logger.level"]):t}return h.Ch}i(76),i(34),t=i(19);var s=i.n(t),a=i(7),u=i(15),l=["DEBUG","INFO","WARN","ERROR"],c=[],d={},h=function(){function t(t){this.name=t}var e=t.prototype;return e.debug=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];r("DEBUG",this.name,e)},e.info=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];r("INFO",this.name,e)},e.warn=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];r("WARN",this.name,e)},e.error=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];r("ERROR",this.name,e)},t}();e.a={iv:h,Iv:function(t){c.push(t)},qm:o,K:function(t){return d[t]||(d[t]=new h(t)),d[t]},Kx:function(t){h.Ch=t},Px:function(t){h.nn=t}}},function(t,e,i){i(117)("asyncIterator")},function(t,e,i){function n(t){var e=t===K;t=k(e?G:I(t));for(var i,n=[],r=0;t.length>r;)c(Y,i=t[r++])&&(!e||c(K,i))&&n.push(Y[i]);return n}function r(t){t=k(I(t));for(var e,i=[],n=0;t.length>n;)c(Y,e=t[n++])||e==V||e==p||i.push(e);return i}function o(t,e){if(t=I(t),e=C(e,!0),t!==K||!c(Y,e)||c(G,e)){var i=w(t,e);return!i||!c(Y,e)||c(t,V)&&t[V][e]||(i.enumerable=!0),i}}function s(t){var e=F.call(this,t=C(t,!0));return!(this===K&&c(Y,t)&&!c(G,t))&&(!(e||!c(this,t)||!c(Y,t)||c(this,V)&&this[V][t])||e)}function a(t,e){A(t);for(var i,n=b(e=I(e)),r=0,o=n.length;o>r;)u(t,i=n[r++],e[i]);return t}function u(t,e,i){return t===K&&u(G,e,i),A(t),e=C(e,!0),A(i),c(Y,e)?(i.enumerable?(c(t,V)&&t[V][e]&&(t[V][e]=!1),i=L(i,{enumerable:R(0,!1)})):(c(t,V)||N(t,V,R(1,{})),t[V][e]=!0),z(t,e,i)):N(t,e,i)}function l(t){var e=Y[t]=L(B.prototype);return e.Ah=t,e}t=i(13);var c=i(32),d=i(20);e=i(21);var h=i(29),p=i(137).eo,f=i(23),_=i(53),m=i(60),y=i(48),v=i(11),g=i(118),E=i(117),b=i(138),S=i(92),A=i(14),T=i(24),I=i(35),C=i(58),R=i(46),L=i(83),P=i(139),O=i(71),D=i(22),M=i(43),w=O.U,N=D.U,k=P.U,B=t.Symbol,x=t.JSON,U=x&&x.stringify,V=v("_hidden"),j=v("toPrimitive"),F={}.propertyIsEnumerable,H=_("symbol-registry"),Y=_("symbols"),G=_("op-symbols"),K=Object.prototype;_="function"==typeof B;var q=t.lv,W=!q||!q.prototype||!q.prototype.gw,z=d&&f(function(){return 7!=L(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=w(K,e);n&&delete K[e],N(t,e,i),n&&t!==K&&N(K,e,n)}:N,X=_&&"symbol"==typeof B.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof B};for(_||(h((B=function(){function t(i){this===K&&t.call(G,i),c(this,V)&&c(this[V],e)&&(this[V][e]=!1),z(this,e,R(1,i))}if(this instanceof B)throw TypeError("Symbol is not a constructor!");var e=y(0<arguments.length?arguments[0]:void 0);return d&&W&&z(K,e,{configurable:!0,set:t}),l(e)}).prototype,"toString",function(){return this.Ah}),O.U=o,D.U=u,i(64).U=P.U=r,i(63).U=s,i(91).U=n,d&&!i(52)&&h(K,"propertyIsEnumerable",s,!0),g.U=function(t){return l(v(t))}),e(e.Yj+e.no+e.Oa*!_,{Symbol:B}),h="hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables".split(" "),g=0;h.length>g;)v(h[g++]);for(M=M(v.store),h=0;M.length>h;)E(M[h++]);e(e.Zb+e.Oa*!_,"Symbol",{for:function(t){return c(H,t+="")?H[t]:H[t]=B(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},ay:function(){W=!0},by:function(){W=!1}}),e(e.Zb+e.Oa*!_,"Object",{create:function(t,e){return void 0===e?L(t):a(L(t),e)},defineProperty:u,defineProperties:a,getOwnPropertyDescriptor:o,getOwnPropertyNames:r,getOwnPropertySymbols:n}),x&&e(e.Zb+e.Oa*(!_||f(function(){var t=B();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))})),"JSON",{stringify:function(t){for(var e,i=[t],n=1;arguments.length>n;)i.push(arguments[n++]);if(e=n=i[1],(T(n)||void 0!==t)&&!X(t))return S(n)||(n=function(t,i){if("function"==typeof e&&(i=e.call(this,t,i)),!X(i))return i}),i[1]=n,U.apply(x,i)}}),B.prototype[j]||i(28)(B.prototype,j,B.prototype.valueOf),m(B,"Symbol"),m(Math,"Math",!0),m(t.JSON,"JSON",!0)},function(t,e,i){t=i(16);var n=i(43);e=i(29);var r=i(13),o=i(28),s=i(50),a=i(11);i=a("iterator"),a=a("toStringTag");var u=s.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,dv:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,fv:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,kv:!1,Plugin:!1,PluginArray:!1,ov:!1,qv:!1,rv:!1,sv:!1,tv:!1,uv:!1,vv:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1};n=n(l);for(var c=0;c<n.length;c++){var d,h=n[c],p=l[h],f=r[h];if((f=f&&f.prototype)&&(f[i]||o(f,i,u),f[a]||o(f,a,h),s[h]=u,p))for(d in t)f[d]||e(f,d,t[d],!0)}},function(t,e,i){i.d(e,"a",function(){return s}),t=i(6),i.n(t),t=i(119),i.n(t),t=i(94),i.n(t);var n=i(18),r=i(78),o=i(8),s=function(){function t(){}return t.gn=function(t){var e=document.createElement("a");return e.href=t,{host:e.host,hostname:e.hostname,origin:e.origin||"".concat(e.protocol,"//").concat(e.hostname),pathname:e.pathname,port:e.port,protocol:e.protocol,query:e.search}},t.mm=function(e){if(!e||"string"!=typeof e)return"";var i=(e=t.gn(e).pathname||"").lastIndexOf(".");return-1!==i?e.substring(i+1).toLowerCase():""},t.vb=function(){return o.a.vb()},t.ci=function(t){return o.a.vb()&&(t=n.a.qj(t,"http://","https://")),t},t.Id=function(t){return(t=/(?:(?:[\w]+:)?\/\/)?([^?#\/:]+)/.exec(void 0!==t?t:o.a.tb()))?t[1]:""},t.Ta=function(t,e){return r.a.Ta(t,void 0!==e?e:o.a.tb())},t.Nw=function(t,e){return e.forEach(function(e){t+="".concat((-1===t.indexOf("?")?"?":"&")+e.key,"=").concat(e.value)}),t},t}()},function(t,e,i){i.d(e,"a",function(){return r});var n=i(51),r=function(){function t(){}return t.Aa=function(){return window},t.tb=function(t){return n.a.tb(t)},t.Kd=function(t){return n.a.Kd(t)},t.jg=function(t){return n.a.jg(t)},t.vb=function(){return n.a.vb()},t.uw=function(){var t=this.Kd();try{return t.document.referrer}catch(t){return null}},t.Cw=function(){return window.performance},t.Jr=function(){return window.navigator.userAgent},t.Nd=function(){try{return window.self!==window.top}catch(t){return!0}},t.br=function(){for(var t=window.self,e=0;t!==window.top&&t.parent;){try{if(t.parent&&t.parent.location&&!t.parent.location.href)throw Error("HandleSafari")}catch(t){if(!(2>e))break;e++}t=t.parent}return e},t}()},function(t,e,i){function n(){}function r(t,e){for(;3===t.Pc;)t=t.wd;0===t.Pc?t.ce.push(e):p(function(){var i=1===t.Pc?e.Os:e.cn;if(null===i)(1===t.Pc?o:s)(e.sc,t.wd);else{try{var n=i(t.wd)}catch(t){return void s(e.sc,t)}o(e.sc,n)}},1)}function o(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===d()(e)||"function"==typeof e)){var i=e.then;if(e instanceof f)return t.Pc=3,t.wd=e,void a(t);if("function"==typeof i)return void l(function(t,e){return function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];t.apply(e,n)}}(i,e),t)}t.Pc=1,t.wd=e,a(t)}catch(e){s(t,e)}}function s(t,e){for(var i,n=0,r=t.ce.length;!i&&n<r;n++)i=t.ce[n].cn;i||"1"!==h.a.Ta("logpromisereject")||window.console,t.Pc=2,t.wd=e,a(t)}function a(t){t.ce.forEach(function(e){return r(t,e)}),t.ce=null}function u(t,e,i){this.Os="function"==typeof t?t:null,this.cn="function"==typeof e?e:null,this.sc=i}function l(t,e){var i=!1;try{t(function(t){i||(i=!0,o(e,t))},function(t){i||(i=!0,s(e,t))})}catch(t){i||(i=!0,s(e,t))}}t=i(27);var c=i.n(t);t=i(6),i.n(t),t=i(19);var d=i.n(t),h=i(7),p=window.Promise?function(t){window.Promise.resolve().then(t)}:setTimeout,f=function(){function t(t){if("object"!==d()(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.Pc=0,this.wd=void 0,this.ce=[],l(t,this)}var e=t.prototype;return e.catch=function(t){return this.then(null,t)},e.then=function(e,i){var o=new t(n);return r(this,new u(e,i,o)),o},e.finally=function(t){return this.then(t,t)},t}();f.all=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Array.prototype.slice.call(1===e.length&&Array.isArray(e[0])?e[0]:e);return new f(function(t,e){function i(o,s){try{if(s&&("object"===d()(s)||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(t){i(o,t)},e)}n[o]=s,0==--r&&t(n)}catch(t){e(t)}}if(0===n.length)return t([]);for(var r=n.length,o=0;o<n.length;o++)i(o,n[o])})},f.resolve=function(t){return t&&"object"===d()(t)&&t.constructor===f?t:new f(function(e){e(t)})},f.reject=function(t){return new f(function(e,i){i(t)})},f.race=function(t){return new f(function(e,i){t.forEach(function(t){return t.then(e,i)})})},f.$u=function(t){var e=null;return function(){e=e||f.resolve();for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return e.then(t.bind.apply(t,c()([this].concat(n))))}},f.$u(function(){})(),e.a=f},function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,i){var n=i(53)("wks"),r=i(48),o=i(13).Symbol,s="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=n},function(t,e,i){i.r(e),i.d(e,"default",function(){return a}),t=i(16),i.n(t),t=i(25),i.n(t),t=i(6),i.n(t),t=i(4),i.n(t),t=i(5),i.n(t);var n=i(3),r=Symbol(),o=Symbol(),s=Symbol(),a=function(){function t(){this[r]={},this[o]=[],this[s]=n.a.K("EventBus")}var e=t.prototype;return e.addEventListener=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;this[r][t]||(this[r][t]=[]),this[r][t].push({ng:e,priority:i})},e.removeEventListener=function(t,e){this[r][t]&&(this[r][t]=this[r][t].filter(function(t){return t.ng!==e}))},e.Gv=function(t){this[o].push(t)},e.dispatchEvent=function(t){var e=this;if("string"==typeof t)var i=t,n=Array.prototype.slice.call(arguments,1);else i=t.type,t.target=this,n=Array.prototype.slice.call(arguments,0);var s=this[r][i];s&&((s=s.slice()).sort(function(t,e){return e.priority-t.priority}),s.forEach(function(t){return e.Gk(i,n,t.ng)})),this[o].forEach(function(t){return t.call({},i,n)})},e.Gk=function(t,e,i){try{i.apply({},e)}catch(i){this[s].error(i,"event",{args:e,type:t})}},e.un=function(){var t=this;this[s].info("Removing all listeners."),Object.keys(this[r]).forEach(function(e){Array.isArray(t[r][e])&&delete t[r][e]})},t}()},function(t){t=t.exports="undefined"!=typeof window&&Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=t)},function(t,e,i){var n=i(24);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){i.d(e,"a",function(){return n}),t=i(16),i.n(t),t=i(25),i.n(t),t=i(6),i.n(t);var n=function(){function t(){}return t.Pr=function(e){var i="stage"===e,n=i?".dev":"",r=i?"-stage":"",o={"adserver.url":"https://video".concat(r).concat(".adaptv.advertising.com","/"),"adstracker.url":"https://video".concat(r).concat(".adaptv.advertising.com","/"),"aeg.default_vendor":i?"593fb37531e0a533fe6dd8fa":"593fb311c214e33ec50202f0","cdn.url":"https://cdn-ssl".concat(".vidible.tv","/").concat(e,"/"),"default.bcid":i?"50d595ec0364e95588c77bd2":"56bcd17ce4b018167fea5539","default.bid":i?"53a2cd08e4b0915a797d6a2e":"56bcd17de4b0a5976ac0da12","default.pid":i?"5912acc731e0a563e7535e52":"59947c0544a64b1a49e52a48","delivery.url":"https://delivery".concat(n).concat(".vidible.tv","/"),"ima.url":"https://s0.2mdn.net/instream/html5/ima3".concat(i?"_debug":"",".js"),"logger.level":i?"0":"3","s3.url":"https://s3.amazonaws.com/vdb-cdn-files/","tracking.url":"https://trk".concat(n).concat(".vidible.tv","/trk/")};Object.keys(o).forEach(function(e){t[e]=o[e]})},t}()},function(t,e,i){e=i(74);var n=i(102),r=i(50),o=i(35);t.exports=i(85)(Array,"Array",function(t,e){this.yf=o(t),this.ee=0,this.Ah=e},function(){var t=this.yf,e=this.Ah,i=this.ee++;return!t||i>=t.length?(this.yf=void 0,n(1)):n(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),r.Arguments=r.Array,e("keys"),e("values"),e("entries")},function(t,e,i){var n=i(14),r=i(38),o=i(33),s=i(49),a=i(72),u=i(54),l=Math.max,c=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;i(55)("replace",2,function(t,e,i,f){function _(t,e,n,o,s,a){var u=n+t.length,l=o.length,c=p;return void 0!==s&&(s=r(s),c=h),i.call(a,c,function(i,r){switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(u);case"<":i=s[r.slice(1,-1)];break;default:var a=+r;if(0===a)return i;if(a>l)return 0===(a=d(a/10))?i:a<=l?void 0===o[a-1]?r.charAt(1):o[a-1]+r.charAt(1):i;i=o[a-1]}return void 0===i?"":i})}return[function(n,r){var o=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var r=f(i,t,this,e);if(r.done)return r.value;var d=n(t);t=String(this),(r="function"==typeof e)||(e=String(e));var h=d.global;if(h){var p=d.Se;d.lastIndex=0}for(var m=[];;){var y=u(d,t);if(null===y)break;if(m.push(y),!h)break;""===String(y[0])&&(d.lastIndex=a(t,o(d.lastIndex),p))}for(p="",h=d=0;h<m.length;h++){y=m[h];for(var v=String(y[0]),g=l(c(s(y.index),t.length),0),E=[],b=1;b<y.length;b++){var S=y[b];E.push(void 0===S?S:String(S))}y=y.groups,r?(E=[v].concat(E,g,t),void 0!==y&&E.push(y),y=String(e.apply(void 0,E))):y=_(v,t,g,E,y,e),g>=d&&(p+=t.slice(d,g)+y,d=g+v.length)}return p+t.slice(d)}]})},function(t,e,i){i.d(e,"a",function(){return n}),t=i(68),i.n(t),t=i(17),i.n(t);var n=function(){function t(){}return t.tg=function(e){return!e||""===t.trim(e)},t.Sv=function(t,e){return t&&"".concat(t.substring(0,t.lastIndexOf(".")),".").concat(e)},t.trim=function(e,i){return t.Cs(t.yn(e,i),i)},t.Cs=function(t,e){return null==e&&(e="\\s"),t&&t.replace(new RegExp("^[".concat(e,"]+"),"g"),"")},t.yn=function(t,e){return null==e&&(e="\\s"),t&&t.replace(new RegExp("[".concat(e,"]+$"),"g"),"")},t.startsWith=function(t,e){return t&&0===t.indexOf(e)},t.endsWith=function(t,e){var i=t&&t.lastIndexOf(e);return-1!==i&&i===t.length-e.length},t.qj=function(t,e,i){return t&&t.replace(new RegExp(e,"g"),i)},t.yx=function(t){return t&&t.replace(/.*?:\/\//g,"")},t.Rl=function(){return!1},t.ql=function(t){if(t)return(t=t.toLowerCase()).charAt(0).toUpperCase()+t.slice(1)},t}()},function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(n){return"function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?t.exports=i=function(t){return e(t)}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)},i(n)}t.exports=i},function(t,e,i){t.exports=!i(23)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){function n(t,e,i){var l=t&n.Oa,c=t&n.Yj,d=t&n.Zb,h=t&n.Dc,p=t&n.Zn;d=c?r:d?r[e]||(r[e]={}):(r[e]||{}).prototype;var f,_=c?o:o[e]||(o[e]={}),m=_.prototype||(_.prototype={});for(f in c&&(i=e),i)e=((c=!l&&d&&void 0!==d[f])?d:i)[f],c=p&&c?u(e,r):h&&"function"==typeof e?u(Function.call,e):e,d&&a(d,f,e,t&n.lo),_[f]!=e&&s(_,f,c),h&&m[f]!=e&&(m[f]=e)}var r=i(13),o=i(31),s=i(28),a=i(29),u=i(42);r.Vv=o,n.Oa=1,n.Yj=2,n.Zb=4,n.Dc=8,n.Zn=16,n.no=32,n.lo=64,n.mv=128,t.exports=n},function(t,e,i){var n=i(14),r=i(81),o=i(58),s=Object.defineProperty;e.U=i(20)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){var n=i(38),r=i(43);i(107)("keys",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(109),r=i(110),o=i(111);t.exports=function(t,e){return n(t)||r(t,e)||o()}},function(t,e,i){var n=i(140),r=i(141),o=i(142);t.exports=function(t){return n(t)||r(t)||o()}},function(t,e,i){var n=i(22),r=i(46);t.exports=i(20)?function(t,e,i){return n.U(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(13),r=i(28),o=i(32),s=i(48)("src"),a=i(98),u=(""+a).split("toString");i(31).ax=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var l="function"==typeof i;l&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(l&&(o(i,s)||r(i,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(d,e,a){a.d(e,"a",function(){return p}),d=a(40),a.n(d),d=a(19);var k=a.n(d);d=a(156),a.n(d);var f=a(1),m=a(8),p=function(){function a(){}return a.Np=function(){try{var a=function(){var a=!1;eval('func = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(void 0)()}catch(t){a=!0}return a}()}catch(t){a=0}return a},a.Mp=function(){var t=!1;try{({}).U()}catch(e){t=!0}return t},a.Hp=function(){var t=m.a.Aa();return!!(Object(f.e)(t.AudioContext)&&(t=new t.AudioContext,t=Object(f.e)(t.createBufferSource)&&t.createBufferSource()||{},t.detune&&Object.prototype.hasOwnProperty.call(t.detune,"value")))&&(t.detune.value=100,100===t.detune.value)},a.Fp=function(){try{var t=document.createElement("canvas");t.width=1,t.height=1;var e=t.getContext("2d");e.globalCompositeOperation="multiply",e.fillStyle="rgb(0,255,255)",e.fillRect(0,0,1,1),e.fill(),e.fillStyle="rgb(255,255,0)",e.fillRect(0,0,1,1),e.fill();var i=e.getImageData(0,0,1,1).data;return i[0]===i[2]&&i[1]===i[3]}catch(t){return!1}},a.Kp=function(){try{var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}catch(t){return!1}},a.Jp=function(){try{return eval("1 == [for (item of [1,2,3]) item][0]")}catch(t){return!1}},a.Gp=function(){var t=m.a.Aa();try{return"object"===k()(t.Intl.Collator().resolvedOptions())}catch(t){return!1}},a.Lp=function(){var t=m.a.Aa();try{return 0===new t.Uint16Array(1)[0]}catch(t){return!1}},a.Dp=function(){var t=m.a.Aa();try{return t.ActiveXObject&&-1===t.ActiveXObject.toString().indexOf("native")}catch(t){return!1}},a.Ip=function(){var t=m.a.Aa();try{return-1===Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")}catch(t){return!1}},a.btoa=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=m.a.Aa();if(!Object(f.e)(i.btoa)||e){e=String(t),i=0;for(var n="",r=0,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.charAt(0|r)||(o="=",r%1);n+=o.charAt((63&i>>8)-r%1*8)){var s=e.charCodeAt(r+=.75);if(255<s)return"";i=i<<8|s}return n}return i.btoa(t)},a.Ep=function(t){try{return t.Zh&&Object(f.t)(t.Zh([{Zp:"ease-in",transform:"scale(1)"},{Zp:"ease-in",transform:"scale(1.3)"}],{duration:1300,ex:1}).reverse)?1:0}catch(t){return 0}},a}()},function(t){t=t.exports={version:"2.6.5"},"number"==typeof __e&&(__e=t)},function(t){var e={}.hasOwnProperty;t.exports=function(t,i){return e.call(t,i)}},function(t,e,i){var n=i(49),r=Math.min;t.exports=function(t){return 0<t?r(n(t),9007199254740991):0}},function(t,e,i){t=i(22).U,e=Function.prototype;var n=/^\s*function ([^ (]*)/;"name"in e||i(20)&&t(e,"name",{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(t){return""}}})},function(t,e,i){var n=i(70),r=i(37);t.exports=function(t){return n(r(t))}},function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,i){var n=i(37);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(75),r=i(14),o=i(86),s=i(72),a=i(33),u=i(54),l=i(66);t=i(23);var c=Math.min,d=[].push,h=!t(function(){RegExp(4294967295,"y")});i(55)("split",2,function(t,e,i,p){var f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(r,t,e);var o,s,a,u=[],c=0;for(e=void 0===e?4294967295:e>>>0,t=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.Se?"u":"")+(t.sticky?"y":"")+"g");(o=l.call(t,r))&&!((s=t.lastIndex)>c&&(u.push(r.slice(c,o.index)),1<o.length&&o.index<r.length&&d.apply(u,o.slice(1)),a=o[0].length,c=s,u.length>=e));)t.lastIndex===o.index&&t.lastIndex++;return c===r.length?(a||!t.test(""))&&u.push(""):u.push(r.slice(c)),u.length>e?u.slice(0,e):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i;return[function(i,n){var r=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,r,n):f.call(String(r),i,n)},function(t,e){var n=p(f,t,this,e,f!==i);if(n.done)return n.value;var l=r(t);t=String(this);var d=o(l,RegExp);if(n=l.Se,l=new d(h?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.Se?"u":"")+(h?"y":"g")),0===(e=void 0===e?4294967295:e>>>0))return[];if(0===t.length)return null===u(l,t)?[t]:[];var _=0,m=0;for(d=[];m<t.length;){l.lastIndex=h?m:0;var y,v=u(l,h?t:t.slice(m));if(null===v||(y=c(a(l.lastIndex+(h?0:m)),t.length))===_)m=s(t,m,n);else{if(d.push(t.slice(_,m)),d.length===e)return d;for(_=1;_<=v.length-1;_++)if(d.push(v[_]),d.length===e)return d;m=_=y}}return d.push(t.slice(_)),d}]})},function(t,e,i){i(145);var n=i(14),r=i(67),o=i(20),s=/./.toString;i(23)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?i(29)(RegExp.prototype,"toString",function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)},!0):"toString"!=s.name&&i(29)(RegExp.prototype,"toString",function(){return s.call(this)},!0)},function(t,e,i){i.d(e,"d",function(){return n}),i.d(e,"a",function(){return r}),i.d(e,"c",function(){return o}),i.d(e,"b",function(){return s});var n="preroll",r="midroll",o="nonlinear",s="native"},function(t,e,i){var n=i(59);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){var n=i(82),r=i(62);t.exports=Object.keys||function(t){return n(t,r)}},function(t){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){i.d(e,"c",function(){return n}),i.d(e,"a",function(){return r}),i.d(e,"b",function(){return o});var n="media-item-playback-started",r="media-item-playback-ended",o="media-item-playback-progress"},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){i(16),i(25),i(6),i(17);var n=i(57),r=i(9);i.d(e,"a",function(){return o});var o=function(){function t(t){this.Ia=this.wf=t}var e=t.prototype;return e.Rx=function(t){this.Ia=t},t.oe=function(t,e,i){if(void 0===i)return t.getAttribute(e);null===i?t.removeAttribute(e):t.setAttribute(e,i)},e.Dk=function(t,e,i){var n="TABLE"===t.nodeName,r=this.Ia.createElement("div");r.innerHTML="<".concat(t.nodeName,">").concat(e,"</").concat(t.nodeName,">"),i(n?t.lastChild:t,n?r.lastChild.lastChild:r.lastChild)},e.Ks=function(t){var e=this.Ia.createElement("div");return e.innerHTML=t,e.lastChild},e.zk=function(t){for(var e,i="",r=0;null!=(e=t[r++]);)e.nodeType===n.c||e.nodeType===n.a?i+=e.nodeValue:e.nodeType!==n.b&&(i+=this.zk(e.childNodes));return i},e.replace=function(t,e){this.Dk(t,e,function(e,i){return t.replaceChild(i,e),e})},e.append=function(t,e){this.Dk(t,e,function(t,e){return t.appendChild(e.firstChild),e.firstChild})},e.nc=function(t,e){if(null==e)return t.innerHTML;try{t.innerHTML=e}catch(i){this.replace(t,e)}return null},e.text=function(e,i){return null==i?this.zk([e]):(t.empty(e),e.appendChild(this.Ia.createTextNode(i)),null)},t.empty=function(t){if(t&&t.removeChild)for(;t.firstChild;)t.removeChild(t.firstChild)},e.createElement=function(t){return this.Ia.createElement(t)},e.createDocumentFragment=function(){return this.Ia.createDocumentFragment()},e.eg=function(t){return(t=t||this.Ia).head||t.getElementsByTagName("head")[0]},e.uk=function(e,i,n,r){var o=this.createElement("script");return t.oe(o,"type","text/javascript"),r&&Object.keys(r).forEach(function(e){return t.oe(o,e,r[e])}),n&&t.oe(o,"async","true"),e&&t.oe(o,"src",e),i&&t.oe(o,"crossorigin","anonymous"),o},e.Rd=function(t,e,i){function n(){o.onload=function(){},o.onerror=function(){},o.onreadystatechange=function(){},s.removeChild(o)}t&&0===t.indexOf("//")&&0!==window.location.protocol.indexOf("http")&&(t="https:".concat(t));var o=this.uk(t,e,i,void 0),s=this.eg(this.wf);return t=new r.a(function(t,e){o.onload=t,o.onerror=e}),o.onreadystatechange=function(){"complete"!==o.readyState&&"loaded"!==o.readyState||o.onload()},t.then(n,n),s.appendChild(o),t},e.Sr=function(t){var e=this.uk();return this.text(e,t),this.eg().appendChild(e),e},e.yw=function(t,e,i){var n="VDBCallback".concat(Math.round(1e4*Math.random())),r=i||this.wf&&this.wf.defaultView||window;r[n]=function(){if("function"==typeof e){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];e.apply({},i)}try{delete r[n]}catch(t){r[n]=void 0}},this.Rd(t.replace("[callback]",n))},e.fx=function(t){var e=this.Ia.createElement("link");this.eg().appendChild(e),e.rel="stylesheet",e.type="text/css",e.href=t},e.mi=function(t,e){e=e||this.eg();var i="".concat(function(t){function e(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function i(t,i,n,r,o,s){return t=e(e(i,t),e(r,s)),e(t<<o|t>>>32-o,n)}function n(t,e,n,r,o,s,a){return i(e&n|~e&r,t,e,o,s,a)}function r(t,e,n,r,o,s,a){return i(e&r|n&~r,t,e,o,s,a)}function o(t,e,n,r,o,s,a){return i(n^(e|~r),t,e,o,s,a)}return function(t){for(var e,i="",n=0;n<t.length;n++)e=t.charCodeAt(n),i+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return i}(function(t){var s,a=Array(t.length>>2);for(s=0;s<a.length;s++)a[s]=0;for(s=0;s<8*t.length;s+=8)a[s>>5]|=(255&t.charCodeAt(s/8))<<s%32;a[(t=8*t.length)>>5]|=128<<t%32,a[14+(t+64>>>9<<4)]=t,t=1732584193,s=-271733879;for(var u=-1732584194,l=271733878,c=0;c<a.length;c+=16){var d=t,h=s,p=u,f=l;t=n(t,s,u,l,a[c+0],7,-680876936),l=n(l,t,s,u,a[c+1],12,-389564586),u=n(u,l,t,s,a[c+2],17,606105819),s=n(s,u,l,t,a[c+3],22,-1044525330),t=n(t,s,u,l,a[c+4],7,-176418897),l=n(l,t,s,u,a[c+5],12,1200080426),u=n(u,l,t,s,a[c+6],17,-1473231341),s=n(s,u,l,t,a[c+7],22,-45705983),t=n(t,s,u,l,a[c+8],7,1770035416),l=n(l,t,s,u,a[c+9],12,-1958414417),u=n(u,l,t,s,a[c+10],17,-42063),s=n(s,u,l,t,a[c+11],22,-1990404162),t=n(t,s,u,l,a[c+12],7,1804603682),l=n(l,t,s,u,a[c+13],12,-40341101),u=n(u,l,t,s,a[c+14],17,-1502002290),t=r(t,s=n(s,u,l,t,a[c+15],22,1236535329),u,l,a[c+1],5,-165796510),l=r(l,t,s,u,a[c+6],9,-1069501632),u=r(u,l,t,s,a[c+11],14,643717713),s=r(s,u,l,t,a[c+0],20,-373897302),t=r(t,s,u,l,a[c+5],5,-701558691),l=r(l,t,s,u,a[c+10],9,38016083),u=r(u,l,t,s,a[c+15],14,-660478335),s=r(s,u,l,t,a[c+4],20,-405537848),t=r(t,s,u,l,a[c+9],5,568446438),l=r(l,t,s,u,a[c+14],9,-1019803690),u=r(u,l,t,s,a[c+3],14,-187363961),s=r(s,u,l,t,a[c+8],20,1163531501),t=r(t,s,u,l,a[c+13],5,-1444681467),l=r(l,t,s,u,a[c+2],9,-51403784),u=r(u,l,t,s,a[c+7],14,1735328473),t=i((s=r(s,u,l,t,a[c+12],20,-1926607734))^u^l,t,s,a[c+5],4,-378558),l=i(t^s^u,l,t,a[c+8],11,-2022574463),u=i(l^t^s,u,l,a[c+11],16,1839030562),s=i(u^l^t,s,u,a[c+14],23,-35309556),t=i(s^u^l,t,s,a[c+1],4,-1530992060),l=i(t^s^u,l,t,a[c+4],11,1272893353),u=i(l^t^s,u,l,a[c+7],16,-155497632),s=i(u^l^t,s,u,a[c+10],23,-1094730640),t=i(s^u^l,t,s,a[c+13],4,681279174),l=i(t^s^u,l,t,a[c+0],11,-358537222),u=i(l^t^s,u,l,a[c+3],16,-722521979),s=i(u^l^t,s,u,a[c+6],23,76029189),t=i(s^u^l,t,s,a[c+9],4,-640364487),l=i(t^s^u,l,t,a[c+12],11,-421815835),u=i(l^t^s,u,l,a[c+15],16,530742520),t=o(t,s=i(u^l^t,s,u,a[c+2],23,-995338651),u,l,a[c+0],6,-198630844),l=o(l,t,s,u,a[c+7],10,1126891415),u=o(u,l,t,s,a[c+14],15,-1416354905),s=o(s,u,l,t,a[c+5],21,-57434055),t=o(t,s,u,l,a[c+12],6,1700485571),l=o(l,t,s,u,a[c+3],10,-1894986606),u=o(u,l,t,s,a[c+10],15,-1051523),s=o(s,u,l,t,a[c+1],21,-2054922799),t=o(t,s,u,l,a[c+8],6,1873313359),l=o(l,t,s,u,a[c+15],10,-30611744),u=o(u,l,t,s,a[c+6],15,-1560198380),s=o(s,u,l,t,a[c+13],21,1309151649),t=o(t,s,u,l,a[c+4],6,-145523070),l=o(l,t,s,u,a[c+11],10,-1120210379),u=o(u,l,t,s,a[c+2],15,718787259),s=o(s,u,l,t,a[c+9],21,-343485551),t=e(t,d),s=e(s,h),u=e(u,p),l=e(l,f)}for(a=[t,s,u,l],t="",s=0;s<32*a.length;s+=8)t+=String.fromCharCode(a[s>>5]>>>s%32&255);return t}(function(t){for(var e,i,n="",r=-1;++r<t.length;)e=t.charCodeAt(r),i=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&56319>=e&&56320<=i&&57343>=i&&(e=65536+((1023&e)<<10)+(1023&i),r++),127>=e?n+=String.fromCharCode(e):2047>=e?n+=String.fromCharCode(192|e>>>6&31,128|63&e):65535>=e?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):2097151>=e&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}(t)))}(t),"-style");if(!this.Ia.getElementById(i)){var n=this.Ia.createElement("style");n.setAttribute("id",i),n.type="text/css",n.appendChild(this.Ia.createTextNode(t)),e.appendChild(n)}},e.cw=function(t,e){this.mi(t,e)},e.Yv=function(t){var e=this.Ia.createElement("img");return e.src=t,e},e.Xv=function(t){var e=this.Ia.createElement("div");return null!=t&&(e.className=t),e},e.log=function(t){this.Hc||(this.Hc=this.Ia.createElement("div"),this.Hc.style.position="fixed",this.Hc.style.top="0px",this.Hc.style.left="0px",this.wf.getElementsByTagName("body")[0].appendChild(this.Hc)),this.Hc.innerHTML="".concat(t,"<br>").concat(this.Hc.innerHTML)},t}()},function(t){var e=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?i:e)(t)}},function(t){t.exports={}},function(t,e,i){t=i(27);var n=i.n(t);i(65),i(17),i.d(e,"a",function(){return r});var r=function(){function t(){}return t.tb=function(t){t=t||window;var e=this.Kd(t);t=t&&t.location&&t.location.ancestorOrigins;var i,r=e.document&&e.document.referrer;if(e===window.top)return e.location.href;if(r&&(i=!!(i=r.match(/.*?\.ampproject\.(?:org|net)\/(?:.\/)*([^?]+)/i))&&i[1]))return i;if(t&&1<t.length){for(e=n()(t),r=0;r<e.length;r++)if(i=e[r].match(/(.*)\.cdn\.ampproject\.(?:org|net)/i)){var o=i[1];break}return(o=!!o&&o.replace(/--/g,"${dash}").replace(/-/g,".").replace(/\$\{dash\}/g,"-"))?o:t[t.length-1]}return r||e.location.href},t.Kd=function(t){for(t=t||window;t;)try{var e=t.parent;if(!e.document)break;if(t=e,e===e.parent)break}catch(t){break}return t},t.jg=function(t){t=t||window;try{return t.parent}catch(t){}return null},t.vb=function(){return-1===(window.location.protocol||this.tb()||"").indexOf("http:")},t}()},function(t){t.exports=!1},function(t,e,i){e=i(31);var n=i(13),r=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:e.version,mode:i(52)?"pure":"global",Uv:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){var n=i(73),r=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){if("object"!=typeof(t=i.call(t,e)))throw new TypeError("RegExp exec method returned something other than an Object or null");return t}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,i){i(101);var n=i(29),r=i(28),o=i(23),s=i(37),a=i(11),u=i(66),l=a("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d=function(){var t=/(?:)/,e=t.exec;return t.exec=function(){return e.apply(this,arguments)},2===(t="ab".split(t)).length&&"a"===t[0]&&"b"===t[1]}();t.exports=function(t,e,i){var h=a(t),p=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),f=p?!o(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[l]=function(){return i}),i[h](""),!e}):void 0;if(!p||!f||"replace"===t&&!c||"split"===t&&!d){var _=/./[h],m=(i=i(s,h,""[t],function(t,e,i,n,r){return e.exec===u?p&&!r?{done:!0,value:_.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}))[1];n(String.prototype,t,i[0]),r(RegExp.prototype,h,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},function(t,e,i){i(146)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){i.d(e,"c",function(){return n}),i.d(e,"a",function(){return r}),i.d(e,"b",function(){return o});var n=3,r=4,o=8},function(t,e,i){var n=i(24);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t))||"function"==typeof(i=t.valueOf)&&!n(r=i.call(t))||!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(22).U,r=i(32),o=i(11)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(53)("keys"),r=i(48);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t){t.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(t,e){e.U={}.propertyIsEnumerable},function(t,e,i){var n=i(82),r=i(62).concat("length","prototype");e.U=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){var n=i(14),r=i(33),o=i(72),s=i(54);i(55)("match",1,function(t,e,i,a){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=a(i,t,this);if(e.done)return e.value;if(t=n(t),e=String(this),!t.global)return s(t,e);var u=t.Se;t.lastIndex=0;for(var l,c=[],d=0;null!==(l=s(t,e));)l=String(l[0]),c[d]=l,""===l&&(t.lastIndex=o(e,r(t.lastIndex),u)),d++;return 0===d?null:c}]})},function(t,e,i){var n=i(67),r=RegExp.prototype.exec,o=String.prototype.replace;e=r;var s=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),a=void 0!==/()??/.exec("")[1];(s||a)&&(e=function(t){var e,i,u;a&&(i=new RegExp("^"+this.source+"$(?!\\s)",n.call(this))),s&&(e=this.lastIndex);var l=r.call(this,t);return s&&l&&(this.lastIndex=this.global?l.index+l[0].length:e),a&&l&&1<l.length&&o.call(l[0],i,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(l[u]=void 0)}),l}),t.exports=e},function(t,e,i){var n=i(14);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.Se&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){t=i(13);var n=i(95),r=i(22).U,o=i(64).U,s=i(75),a=i(67),u=t.RegExp,l=u,c=u.prototype,d=/a/g,h=/a/g,p=new u(d)!==d;if(i(20)&&(!p||i(23)(function(){return h[i(11)("match")]=!1,u(d)!=d||u(h)==h||"/a/i"!=u(d,"i")}))){u=function(t,e){var i=this instanceof u,r=s(t),o=void 0===e;return!i&&r&&t.constructor===u&&o?t:n(p?new l(r&&!o?t.source:t,e):l((r=t instanceof u)?t.source:t,r&&o?a.call(t):e),i?this:c,u)},e=function(t){t in u||r(u,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},o=o(l);for(var f=0;o.length>f;)e(o[f++]);c.constructor=u,u.prototype=c,i(29)(t,"RegExp",u)}i(96)("RegExp")},function(t,e,i){e=i(24);var n=i(13).document,r=e(n)&&e(n.createElement);t.exports=function(t){return r?n.createElement(t):{}}},function(t,e,i){var n=i(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){var n=i(63),r=i(46),o=i(35),s=i(58),a=i(32),u=i(81),l=Object.getOwnPropertyDescriptor;e.U=i(20)?l:function(t,e){if(t=o(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(a(t,e))return r(!n.U.call(t,e),t[e])}},function(t,e,i){var n=i(84)(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},function(t,e,i){var n=i(36),r=i(11)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e;if(void 0===t)var i="Undefined";else{if(null===t)var s="Null";else{t:{var a=t=Object(t);try{s=a[r];break t}catch(t){}s=void 0}s="string"==typeof(i=s)?i:o?n(t):"Object"==(e=n(t))&&"function"==typeof t.callee?"Arguments":e}i=s}return i}},function(t,e,i){var n=i(11)("unscopables"),r=Array.prototype;null==r[n]&&i(28)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,i){var n=i(24),r=i(36),o=i(11)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,i){function n(t){var e=s(t,!1);if("string"==typeof e&&2<e.length)if(43===(t=(e=m?e.trim():d(e,3)).charCodeAt(0))||45===t){if(88===(t=e.charCodeAt(2))||120===t)return NaN}else if(48===t){switch(e.charCodeAt(1)){case 66:case 98:t=2;var i=49;break;case 79:case 111:t=8,i=55;break;default:return+e}for(var n,r=0,o=(e=e.slice(2)).length;r<o;r++)if(48>(n=e.charCodeAt(r))||n>i)return NaN;return parseInt(e,t)}return+e}t=i(13),e=i(32);var r=i(36),o=i(95),s=i(58),a=i(23),u=i(64).U,l=i(71).U,c=i(22).U,d=i(148).trim,h=t.Number,p=h,f=h.prototype,_="Number"==r(i(83)(f)),m="trim"in String.prototype;if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=1>arguments.length?0:t,i=this;return i instanceof h&&(_?a(function(){f.valueOf.call(i)}):"Number"!=r(i))?o(new p(n(e)),i,h):n(e)},u=i(20)?u(p):"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON isFinite isInteger isNaN isSafeInteger MAX_SAFE_INTEGER MIN_SAFE_INTEGER parseFloat parseInt isInteger".split(" ");for(var y,v=0;u.length>v;v++)e(p,y=u[v])&&!e(h,y)&&c(h,y,l(p,y));h.prototype=f,f.constructor=h,i(29)(t,"Number",h)}},function(t,e,i){t=i(21);var n=i(112)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),t(t.Dc+t.Oa*r,"Array",{find:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}}),i(74)("find")},function(t,e,i){i.d(e,"a",function(){return n}),t=i(68),i.n(t),t=i(17),i.n(t);var n=function(){function t(){}return t.Ta=function(t,e){return t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),null==(t=new RegExp("[\\?&]".concat(t,"=([^&#]*)")).exec(e))?"":decodeURIComponent(t[1].replace(/\+/g," "))},t}()},function(t,e,i){function n(t){for(var e=0,i=this.a.length;e<i;e++)t.call(this,this.a[e])}function r(t){t.qb=null,t.Z()}function o(t){t.qb=this}i.d(e,"a",function(){return s});var s=function(){function t(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];this.a=e}var e=t.prototype;return e.Fs=function(t){var e=this;n.call(t,function(t){e.$a(t)})},e.Z=function(){n.call(this,r)},e.Qp=function(){n.call(this,o)},e.$a=function(t){-1===this.a.indexOf(t)&&this.a.push(t)},e.Hv=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];for(t=0;t<e.length;t++)this.$a(e[t])},t}()},function(t,e,i){t.exports=i(150)},function(t,e,i){t.exports=!i(20)&&!i(23)(function(){return 7!=Object.defineProperty(i(69)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(32),r=i(35),o=i(99)(!1),s=i(61)("IE_PROTO");t.exports=function(t,e){t=r(t);var i,a=0,u=[];for(i in t)i!=s&&n(t,i)&&u.push(i);for(;e.length>a;)n(t,i=e[a++])&&(~o(u,i)||u.push(i));return u}},function(t,e,i){function n(){var t=i(69)("iframe"),e=a.length;for(t.style.display="none",i(93).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),n=t.Oa;e--;)delete n.prototype[a[e]];return n()}function r(){}var o=i(14),s=i(100),a=i(62),u=i(61)("IE_PROTO");t.exports=Object.create||function(t,e){if(null!==t){r.prototype=o(t);var i=new r;r.prototype=null,i[u]=t}else i=n();return void 0===e?i:s(i,e)}},function(t,e,i){var n=i(49),r=i(37);t.exports=function(t){return function(e,i){e=String(r(e)),i=n(i);var o,s=e.length;if(0>i||i>=s)return t?"":void 0;var a=e.charCodeAt(i);return 55296>a||56319<a||i+1===s||56320>(o=e.charCodeAt(i+1))||57343<o?t?e.charAt(i):a:t?e.slice(i,i+2):o-56320+(a-55296<<10)+65536}}},function(t,e,i){function n(){return this}var r=i(52),o=i(21),s=i(29),a=i(28),u=i(50),l=i(103),c=i(60),d=i(104),h=i(11)("iterator"),p=!([].keys&&"next"in[].keys());t.exports=function(t,e,i,f,_,m,y){function v(t){return!p&&t in S?S[t]:function(){return new i(this,t)}}l(i,e,f),f=e+" Iterator";var g,E="values"==_,b=!1,S=t.prototype,A=S[h]||S["@@iterator"]||_&&S[_],T=A||v(_),I=_?E?v("entries"):T:void 0,C="Array"==e&&S.entries||A;if(C&&((t=d(C.call(new t)))!==Object.prototype&&t.next&&(c(t,f,!0),r||"function"==typeof t[h]||a(t,h,n))),E&&A&&"values"!==A.name&&(b=!0,T=function(){return A.call(this)}),r&&!y||!p&&!b&&S[h]||a(S,h,T),u[e]=T,u[f]=n,_){var R={values:E?T:v("values"),keys:m?T:v("keys"),entries:I};if(y)for(g in R)g in S||s(S,g,R[g]);else o(o.Dc+o.Oa*(p||b),e,R)}return R}},function(t,e,i){var n=i(14),r=i(59),o=i(11)("species");t.exports=function(t,e){var i;return void 0===(t=n(t).constructor)||null==(i=n(t)[o])?e:r(i)}},function(t,e,i){var n=i(84)(!0);i(85)(String,"String",function(t){this.yf=String(t),this.ee=0},function(){var t=this.yf,e=this.ee;return e>=t.length?{value:void 0,done:!0}:(t=n(t,e),this.ee+=t.length,{value:t,done:!1})})},function(t,e,i){(t=i(21))(t.Zb+t.Oa,"Object",{assign:i(153)})},function(d,e,a){function k(t){var e=+(1e6*Math.random()).toFixed(0);return t[e]?k(t):e}function f(t){t=(t=t.toString()).substring(t.indexOf("{")+1,t.lastIndexOf("}"));try{var e=new window.Blob([t],{type:"application/javascript"})}catch(i){window.BlobBuilder=p,(e=new window.BlobBuilder).append(t),e=e.getBlob()}return window.URL.createObjectURL(e)}d=a(40),a.n(d);var m=a(3).a.K("Timers"),p=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder;e.a=function(){function a(){var t=this,e={},i={};t.onmessage=function(n){switch(n.data.type){case"setTimeout":e[n.data.id]=setTimeout(function(){t.postMessage({id:n.data.id,type:"setTimeout"})},n.data.timeout);break;case"clearTimeout":clearTimeout(e[n.data.id]),delete e[n.data.id];break;case"setInterval":i[n.data.id]=setInterval(function(){t.postMessage({id:n.data.id,type:"setInterval"})},n.data.timeout);break;case"clearInterval":clearInterval(i[n.data.id]),delete i[n.data.id]}}}var d=!1;try{d=eval("(_ => true)()")}catch(t){m.debug("Modern browser check failed")}if(!(window.Worker&&window.Promise&&d&&window.Blob&&p))return!1;window.URL=window.URL||window.webkitURL;try{var e=new window.Worker(f(a))}catch(t){return m.debug("Failed to instantiate worker"),!1}var t={},y={};return e.onmessage=function(e){"setTimeout"===(e=e.data).type&&t[e.id]&&(t[e.id](),delete t[e.id]),"setInterval"===e.type&&y[e.id]&&y[e.id]()},{clearInterval:function(t){delete y[t],e.postMessage({id:t,type:"clearInterval"})},clearTimeout:function(i){delete t[i],e.postMessage({id:i,type:"clearTimeout"})},setInterval:function(t,i){var n=k(y);return y[n]=t,e.postMessage({id:n,timeout:i,type:"setInterval"}),n},setTimeout:function(i,n){var r=k(t);return t[r]=i,e.postMessage({id:r,timeout:n,type:"setTimeout"}),r}}}()||{clearInterval:clearInterval.bind(window),clearTimeout:clearTimeout.bind(window),setInterval:setInterval.bind(window),setTimeout:setTimeout.bind(window)}},function(t,e,i){var n=i(49),r=Math.max,o=Math.min;t.exports=function(t,e){return 0>(t=n(t))?r(t+e,0):o(t,e)}},function(t,e){e.U=Object.getOwnPropertySymbols},function(t,e,i){var n=i(36);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){e=i(13).document,t.exports=e&&e.documentElement},function(t,e,i){var n=i(14),r=i(105),o=i(54);i(55)("search",1,function(t,e,i,s){return[function(i){var n=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=s(i,t,this);if(e.done)return e.value;t=n(t);var a=String(this);return e=t.lastIndex,r(e,0)||(t.lastIndex=0),a=o(t,a),r(t.lastIndex,e)||(t.lastIndex=e),null===a?-1:a.index}]})},function(t,e,i){var n=i(24),r=i(106).set;t.exports=function(t,e,i){var o;return(e=e.constructor)!==i&&"function"==typeof e&&(o=e.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,i){var n=i(13),r=i(22),o=i(20),s=i(11)("species");t.exports=function(t){t=n[t],o&&t&&!t[s]&&r.U(t,s,{configurable:!0,get:function(){return this}})}},function(t){function e(t,e,i,n,r,o,s){try{var a=t[o](s),u=a.value}catch(t){return void i(t)}a.done?e(u):Promise.resolve(u).then(n,r)}t.exports=function(t){return function(){var i=this,n=arguments;return new Promise(function(r,o){function s(t){e(u,r,o,s,a,"next",t)}function a(t){e(u,r,o,s,a,"throw",t)}var u=t.apply(i,n);s(void 0)})}}},function(t,e,i){t.exports=i(53)("native-function-to-string",Function.toString)},function(t,e,i){var n=i(35),r=i(33),o=i(90);t.exports=function(t){return function(e,i,s){e=n(e);var a=r(e.length);if(s=o(s,a),t&&i!=i){for(;a>s;)if((i=e[s++])!=i)return!0}else for(;a>s;s++)if((t||s in e)&&e[s]===i)return t||s||0;return!t&&-1}}},function(t,e,i){var n=i(22),r=i(14),o=i(43);t.exports=i(20)?Object.defineProperties:function(t,e){r(t);for(var i,s=o(e),a=s.length,u=0;a>u;)n.U(t,i=s[u++],e[i]);return t}},function(t,e,i){t=i(66),i(21)({target:"RegExp",wx:!0,hw:t!==/./.exec},{exec:t})},function(t){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(83),r=i(46),o=i(60),s={};i(28)(s,i(11)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:r(1,i)}),o(t,e+" Iterator")}},function(t,e,i){var n=i(32),r=i(38),o=i(61)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,i){function n(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var r=i(24),o=i(14);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=i(42)(Function.call,i(71).U(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return n(t,i),e?t.__proto__=i:r(t,i),t}}({},!1):void 0),check:n}},function(t,e,i){var n=i(21),r=i(31),o=i(23);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],s={};s[t]=e(i),n(n.Zb+n.Oa*o(function(){i(1)}),"Object",s)}},function(t){!function(e){function i(t,e,i,n){return e=Object.create((e&&e.prototype instanceof r?e:r).prototype),n=new p(n||[]),e.Bk=l(t,i,n),e}function n(t,e,i){try{return{type:"normal",ea:t.call(e,i)}}catch(t){return{type:"throw",ea:t}}}function r(){}function o(){}function s(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this.Bk(e,t)}})}function u(t){function e(i,r,o,s){if("throw"!==(i=n(t[i],t,r)).type){var a=i.ea;return(i=a.value)&&"object"==typeof i&&v.call(i,"__await")?Promise.resolve(i.oo).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(i).then(function(t){a.value=t,o(a)},function(t){return e("throw",t,o,s)})}s(i.ea)}var i;this.Bk=function(t,n){function r(){return new Promise(function(i,r){e(t,n,i,r)})}return i=i?i.then(r,r):r()}}function l(t,e,i){var r=T;return function(o,s){if(r===C)throw Error("Generator is already running");if(r===R){if("throw"===o)throw s;return _()}for(i.method=o,i.ea=s;;){if((o=i.re)&&(o=c(o,i))){if(o===L)continue;return o}if("next"===i.method)i.zn=i.Xo=i.ea;else if("throw"===i.method){if(r===T)throw r=R,i.ea;i.Wp(i.ea)}else"return"===i.method&&i.Ef("return",i.ea);if(r=C,"normal"===(o=n(t,e,i)).type){if(r=i.done?R:I,o.ea===L)continue;return{value:o.ea,done:i.done}}"throw"===o.type&&(r=R,i.method="throw",i.ea=o.ea)}}}function c(t,e){var i=t.iterator[e.method];if(i===m){if(e.re=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.ea=m,c(t,e),"throw"===e.method))return L;e.method="throw",e.ea=new TypeError("The iterator does not provide a 'throw' method")}return L}return"throw"===(i=n(i,t.iterator,e.ea)).type?(e.method="throw",e.ea=i.ea,e.re=null,L):(i=i.ea)?i.done?(e[t.Ax]=i.value,e.next=t.hx,"return"!==e.method&&(e.method="next",e.ea=m),e.re=null,L):i:(e.method="throw",e.ea=new TypeError("iterator result is not an object"),e.re=null,L)}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.tp=t[3]),this.nb.push(e)}function h(t){var e=t.Dd||{};e.type="normal",delete e.ea,t.Dd=e}function p(t){this.nb=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function f(t){if(t){var e=t[E];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1;return(e=function e(){for(;++i<t.length;)if(v.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=m,e.done=!0,e}).next=e}}return{next:_}}function _(){return{value:m,done:!0}}var m,y=Object.prototype,v=y.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},E=g.iterator||"@@iterator",b=g.asyncIterator||"@@asyncIterator",S=g.toStringTag||"@@toStringTag";g="object"==typeof t;var A=e.regeneratorRuntime;if(A)g&&(t.exports=A);else{(A=e.regeneratorRuntime=g?t.exports:{}).Oj=i;var T="suspendedStart",I="suspendedYield",C="executing",R="completed",L={};(e={})[E]=function(){return this},(g=(g=Object.getPrototypeOf)&&g(g(f([]))))&&g!==y&&v.call(g,E)&&(e=g);var P=s.prototype=r.prototype=Object.create(e);o.prototype=P.constructor=s,s.constructor=o,s[S]=o.displayName="GeneratorFunction",A.hs=function(t){return!!(t="function"==typeof t&&t.constructor)&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},A.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(P),t},A.Pv=function(t){return{oo:t}},a(u.prototype),u.prototype[b]=function(){return this},A.AsyncIterator=u,A.async=function(t,e,n,r){var o=new u(i(t,e,n,r));return A.hs(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},a(P),P[S]="Generator",P[E]=function(){return this},P.toString=function(){return"[object Generator]"},A.keys=function(t){var e,i=[];for(e in t)i.push(e);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},A.values=f,p.prototype={constructor:p,reset:function(t){if(this.next=this.Ua=0,this.zn=this.Xo=m,this.done=!1,this.re=null,this.method="next",this.ea=m,this.nb.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&v.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.nb[0].Dd;if("throw"===t.type)throw t.ea;return this.Dt},Wp:function(t){function e(e,n){return o.type="throw",o.ea=t,i.next=e,n&&(i.method="next",i.ea=m),!!n}if(this.done)throw t;for(var i=this,n=this.nb.length-1;0<=n;--n){var r=this.nb[n],o=r.Dd;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.Ua){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.Ua<r.catchLoc)return e(r.catchLoc,!0);if(this.Ua<r.finallyLoc)return e(r.finallyLoc)}else if(s){if(this.Ua<r.catchLoc)return e(r.catchLoc,!0)}else{if(!a)throw Error("try statement without catch or finally");if(this.Ua<r.finallyLoc)return e(r.finallyLoc)}}}},Ef:function(t,e){for(var i=this.nb.length-1;0<=i;--i){var n=this.nb[i];if(n.tryLoc<=this.Ua&&v.call(n,"finallyLoc")&&this.Ua<n.finallyLoc){var r=n;break}}return r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null),(i=r?r.Dd:{}).type=t,i.ea=e,r?(this.method="next",this.next=r.finallyLoc,L):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.ea;return"break"===t.type||"continue"===t.type?this.next=t.ea:"return"===t.type?(this.Dt=this.ea=t.ea,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),L},finish:function(t){for(var e=this.nb.length-1;0<=e;--e){var i=this.nb[e];if(i.finallyLoc===t)return this.complete(i.Dd,i.tp),h(i),L}},catch:function(t){for(var e=this.nb.length-1;0<=e;--e){var i=this.nb[e];if(i.tryLoc===t){if("throw"===(t=i.Dd).type){var n=t.ea;h(i)}return n}}throw Error("illegal catch attempt")}}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t){t.exports=function(t){if(Array.isArray(t))return t}},function(t){t.exports=function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,i){var n=i(42),r=i(70),o=i(38),s=i(33),a=i(113);t.exports=function(t,e){var i=1==t,u=2==t,l=3==t,c=4==t,d=6==t,h=5==t||d,p=e||a;return function(e,a,f){var _=o(e),m=r(_);a=n(a,f,3),f=s(m.length);var y,v,g=0;for(e=i?p(e,f):u?p(e,0):void 0;f>g;g++)if((h||g in m)&&(v=a(y=m[g],g,_),t))if(i)e[g]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return g;case 2:e.push(y)}else if(c)return!1;return d?-1:l||c?c:e}}},function(t,e,i){var n=i(114);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(24),r=i(92),o=i(11)("species");t.exports=function(t){if(r(t)){var e=t.constructor;"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&(null===(e=e[o])&&(e=void 0))}return void 0===e?Array:e}},function(t,e,i){var n=i(22),r=i(46);t.exports=function(t,e,i){e in t?n.U(t,e,r(0,i)):t[e]=i}},,function(t,e,i){var n=i(13),r=i(31),o=i(52),s=i(118),a=i(22).U;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.U(t)})}},function(t,e,i){e.U=i(11)},function(t,e,i){t=i(21);var n=i(33),r=i(143),o="".startsWith;t(t.Dc+t.Oa*i(144)("startsWith"),"String",{startsWith:function(t){var e=r(this,t,"startsWith"),i=n(Math.min(1<arguments.length?arguments[1]:void 0,e.length)),s=String(t);return o?o.call(e,s,i):e.slice(i,i+s.length)===s}})},function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",n=t[3];return n?e&&"function"==typeof btoa?(t="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */",e=n.Tx.map(function(t){return"/*# sourceURL="+n.Sx+t+" */"}),[i].concat(e).concat([t]).join("\n")):[i].join("\n"):i}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.Ee=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(n[o]=!0)}for(r=0;r<t.length;r++)null!=(o=t[r])[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),e.push(o))},e}},function(t,e,i){t=i(21);var n=i(158),r=i(35),o=i(71),s=i(115);t(t.Zb,"Object",{getOwnPropertyDescriptors:function(t){t=r(t);for(var e,i,a=o.U,u=n(t),l={},c=0;u.length>c;)void 0!==(i=a(t,e=u[c++]))&&s(l,e,i);return l}})},,,,,,,,,,function(t){t.exports='<svg version="1.1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 153.61 94.026" style="position: absolute; top: 0; left: 0;"><path fill="#D0D0D0" d="M59.34,13.276h-1.695c-0.365,0-0.936-0.08-0.936,0.046v-0.045h-0.007L35.237,32.322l-18.146-0.025 c-0.598,0-1.191,0.131-1.748,0.363c-1.554,0.609-2.783,1.992-2.783,3.727v0.13v27.081v0.129c0,1.733,1.23,3.117,2.786,3.728 c0.555,0.232,1.149,0.362,1.745,0.362h8.677l9.471-0.025l21.467,19.045h0.006V86.79c0,0.126,0.567,0.046,0.935,0.046h1.695 c1.564,0,2.562-1.172,2.562-2.735V16.014C61.902,14.448,60.904,13.276,59.34,13.276z"></path><path fill="#D0D0D0" d="M90.036,50.255c0-8.711-3.873-16.511-10.009-21.824l-4.062,8.188c3.104,2.611,5.292,6.252,6.051,10.387 c0,0,0.255,1.449,0.255,3.242c0,1.796-0.255,3.403-0.255,3.403c-0.758,4.133-2.947,7.772-6.051,10.385l4.062,8.188 c6.137-5.313,10.009-13.112,10.009-21.823c0-0.022,0-0.05-0.001-0.074C90.036,50.302,90.036,50.277,90.036,50.255z"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;1;1;1;0" repeatCount="indefinite"></animate></path><path fill="#D0D0D0" d="M109.87,51.171c0.006-0.294,0.013-1.035,0.013-1.052c0-0.014,0.001-0.027,0.001-0.043 c0-0.041-0.008-0.713-0.014-1.007c-0.008-0.384-0.021-0.767-0.035-1.146c-0.002-0.029-0.002-0.061-0.004-0.09 c-0.57-13.265-6.172-25.227-14.831-34.259l-5.091,7.23c5.758,5.744,9.907,13.108,11.559,21.339c0,0,0.785,5.252,0.788,7.976 c-0.003,2.726-0.288,5.386-0.811,7.966l0.021,0.012c-1.65,8.23-5.801,15.596-11.559,21.34l5.091,7.23 c8.659-9.032,14.261-20.994,14.831-34.26c0.002-0.029,0.002-0.06,0.004-0.089C109.851,51.937,109.863,51.554,109.87,51.171z"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;0;1;1;0" repeatCount="indefinite"></animate></path></svg>'},function(t){t.exports='<svg version="1.1" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 153.61 94.026" style="position: absolute; top: 0; left: 0;"><path fill="#D0D0D0" d="M19.744,30.013c-2.616,0-5.236,2.157-5.236,4.874v16.125v4v11.307c0,2.717,2.62,4.693,5.236,4.693h20.962 l24.795,22h0.007V92.96c0,0.146,0.657,0.053,1.079,0.053h1.96c1.808,0,2.961-1.353,2.961-3.161v-3.513V55.013v-1.196 L29.766,30.013H19.744z"></path><path fill="#D0D0D0" d="M71.508,14.868v-3.513c0-1.808-1.153-3.341-2.962-3.341h-1.96c-0.421,0-1.078,0.087-1.078,0.233V8.014 h-0.007L50.189,21.599l21.319,12.157V14.868z"></path><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#D0D0D0" points="0,9.526 5.5,0 153.61,84.5 148.11,94.026"></polygon><path fill="#D0D0D0" d="M88.19,67.712l4.53,7.949c2.171-1.907,4.088-4.093,5.698-6.499l-7.343-4.188 C90.266,65.987,89.316,66.909,88.19,67.712"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;1;1;1;0" repeatCount="indefinite"></animate></path><path fill="#D0D0D0" d="M104.001,50.754c0-10.063-4.474-19.072-11.563-25.209l-4.691,9.459C91.331,38.02,93.86,42.225,94.735,47 l9.225,5.261C103.982,51.761,104.001,51.26,104.001,50.754"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;1;1;1;0" repeatCount="indefinite"></animate></path><path fill="#D0D0D0" d="M126.931,50.553c0-16.354-6.628-31.147-17.192-42.167l-5.881,8.353 c8.727,8.705,14.263,20.63,14.263,33.814c0,3.164-0.33,6.254-0.937,9.249l8.131,4.636 C126.363,59.997,126.931,55.357,126.931,50.553"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;0;1;1;0" repeatCount="indefinite"></animate></path><path fill="#D0D0D0" d="M103.327,84.819l6.105,8.001c3.613-3.632,6.739-7.679,9.322-12.062l-8.214-4.685 C108.479,79.268,106.057,82.206,103.327,84.819"><animate attributeType="CSS" attributeName="opacity" dur="2s" values="0;0;1;1;0" repeatCount="indefinite"></animate></path></svg>'},function(t,e,i){e=i(154),t.exports="string"==typeof e?e:e.toString()},function(t){t.exports='<svg version="1.1" id="Layer_2" xmlns="https://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 841.891 595.279" enable-background="new 0 0 841.891 595.279" xml:space="preserve"><radialGradient id="SVGID_1_" cx="428.8484" cy="299.6243" r="29.6255" gradientTransform="matrix(1 0 0 -1 -0.0552 595.1392)" gradientUnits="userSpaceOnUse"><stop offset="0" style="stop-color:#FFFFFF"></stop><stop offset="1" style="stop-color:#000000"></stop></radialGradient><circle opacity="0.7" fill="url(#SVGID_1_)" enable-background="new" cx="428.794" cy="295.515" r="29.625"></circle><path fill="#D9D9D9" d="M428.794,263.765c-17.536,0-31.751,14.215-31.751,31.75s14.215,31.75,31.751,31.75 c17.534,0,31.75-14.215,31.75-31.75S446.328,263.765,428.794,263.765z M428.794,325.14c-16.361,0-29.626-13.264-29.626-29.625 s13.265-29.625,29.626-29.625c16.36,0,29.625,13.264,29.625,29.625S445.154,325.14,428.794,325.14z"></path><g><g><polygon fill="#FFFFFF" points="422.169,284.64 422.169,307.64 441.044,296.14"></polygon></g></g></svg>'},function(t,e,i){e=i(155),t.exports="string"==typeof e?e:e.toString()},,function(t,e,i){function n(t){a(t,r,{value:{Ee:"O"+ ++u,Xu:{}}})}var r=i(48)("meta"),o=i(24),s=i(32),a=i(22).U,u=0,l=Object.isExtensible||function(){return!0},c=!i(23)(function(){return l(Object.preventExtensions({}))}),d=t.exports={eo:r,io:!1,ew:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,r)){if(!l(t))return"F";if(!e)return"E";n(t)}return t[r].Ee},Uw:function(t,e){if(!s(t,r)){if(!l(t))return!0;if(!e)return!1;n(t)}return t[r].Xu},mx:function(t){return c&&d.io&&l(t)&&!s(t,r)&&n(t),t}}},function(t,e,i){var n=i(43),r=i(91),o=i(63);t.exports=function(t){var e=n(t),i=r.U;if(i){i=i(t);for(var s,a=o.U,u=0;i.length>u;)a.call(t,s=i[u++])&&e.push(s)}return e}},function(t,e,i){var n=i(35),r=i(64).U,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.U=function(t){if(s&&"[object Window]"==o.call(t))try{var e=r(t)}catch(t){e=s.slice()}else e=r(n(t));return e}},function(t){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){var n=i(75),r=i(37);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},function(t,e,i){var n=i(11)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,i){i(20)&&"g"!=/./g.flags&&i(22).U(RegExp.prototype,"flags",{configurable:!0,get:i(67)})},function(t,e,i){function n(t,e,i,n){t=String(s(t));var r="<"+e;return""!==i&&(r+=" "+i+'="'+String(n).replace(a,"&quot;")+'"'),r+">"+t+"</"+e+">"}var r=i(21),o=i(23),s=i(37),a=/"/g;t.exports=function(t,e){var i={};i[t]=e(n),r(r.Dc+r.Oa*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",i)}},function(t,e,i){function n(t,e){t||(t=window.event),t.stop=function(){var e=t;e.preventDefault(e),e.stopPropagation(e)},void 0===t.target&&(t.target=t.srcElement||e),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1}),t.stopPropagation||(t.stopPropagation=function(){t.cancelBubble=!0}),t.target&&3===t.target.nodeType&&(t.target=t.target.parentNode);var i=e.ownerDocument;return i&&null==t.pageX&&null!=t.clientX&&(e=i.documentElement,i=i.body,t.pageX=t.clientX+(e&&e.scrollLeft||i&&i.scrollLeft||0)-(e&&e.clientLeft||i&&i.clientLeft||0),t.pageY=t.clientY+(e&&e.scrollTop||i&&i.scrollTop||0)-(e&&e.clientTop||i&&i.clientTop||0)),t}function r(t,e){return function(i){return n(i,t),e(i)}}function o(){d||(document.body||setTimeout(o,13),d=!0)}function s(){if(!d){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(s,1)}o()}}function a(t){return t.match(/:/)?t:"on".concat(t)}i.r(e),i.d(e,"default",function(){return h}),t=i(39),i.n(t),t=i(65),i.n(t);var u,l=[],c=!1,d=!1;"undefined"!=typeof document&&(document.addEventListener?u=function(){document.removeEventListener("DOMContentLoaded",u,!1),o()}:document.attachEvent&&(u=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",u),o())})),function(){if(!c)if(c=!0,"complete"===document.readyState)o();else if(document.addEventListener)document.addEventListener("DOMContentLoaded",u,!1),window.addEventListener("load",o,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",u),window.attachEvent("onload",o);var t=!1;try{t=null==window.frameElement}catch(t){}document.documentElement.doScroll&&t&&s()}}();var h=function(){function t(){}return t.addEventListener=function(t,e,i){if(3!==t.nodeType&&8!==t.nodeType){var n=r(t,i);l.push({element:t,ng:i,Bt:n,type:e}),e.match(/:/)&&t.attachEvent?t.attachEvent("ondataavailable",n):t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent(a(e),n)}},t.dispatchEvent=function(t,e,i){var r=t.ownerDocument||t.document;return r.createEvent?((r=r.createEvent("HTMLEvents")).data=i,n(r,t),r.Sl=e,r.initEvent(e,!0,!0),!t.dispatchEvent(r)):(n(r=r.createEventObject(),t),r.data=i,e.match(/:/)?(r.Sl=e,r.hq="ondataavailable",t.fireEvent(r.hq,r)):t.fireEvent(a(e),r))},t.removeEventListener=function(t,e,i){if(3!==t.nodeType&&8!==t.nodeType){for(var n,r=0,o=0;o<l.length;o++)l[o].element!==t||l[o].type!==e||l[o].ng!==i?l[r++]=l[o]:n=l[o].Bt;l.length=r,i=n,document.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent(a(e),i)}},t.Oj=function(e){var i={addEventListener:function(i,n){t.addEventListener(e,i,n)},ix:function(t,e){t=t.split(" ");for(var n=0;n<t.length;n++)i.removeEventListener(t[n],e)},jx:function(t,e){t=t.split(" ");for(var n=0;n<t.length;n++)i.addEventListener(t[n],e)},removeEventListener:function(i,n){t.removeEventListener(e,i,n)}};return i.element=e,i},t}()},function(t,e,i){function n(t,e,i){var n={},o=s(function(){return!!a[t]()||"​"!="​"[t]()});e=n[t]=o?e(c):a[t],i&&(n[i]=e),r(r.Dc+r.Oa*o,"String",n)}var r=i(21),o=i(37),s=i(23),a=i(149);e="["+a+"]";var u=RegExp("^"+e+e+"*"),l=RegExp(e+e+"*$"),c=n.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=n},function(t){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,i){var n=(e=function(){return this||"object"==typeof self&&self}()||Function("return this")()).regeneratorRuntime&&0<=Object.getOwnPropertyNames(e).indexOf("regeneratorRuntime"),r=n&&e.regeneratorRuntime;if(e.regeneratorRuntime=void 0,t.exports=i(108),n)e.regeneratorRuntime=r;else try{delete e.regeneratorRuntime}catch(t){e.regeneratorRuntime=void 0}},function(t,e,i){t=i(21);var n=i(152)(!1);t(t.Zb,"Object",{values:function(t){return n(t)}})},function(t,e,i){var n=i(43),r=i(35),o=i(63).U;t.exports=function(t){return function(e){e=r(e);for(var i,s=n(e),a=s.length,u=0,l=[];a>u;)o.call(e,i=s[u++])&&l.push(t?[i,e[i]]:e[i]);return l}}},function(t,e,i){var n=i(43),r=i(91),o=i(63),s=i(38),a=i(70),u=Object.assign;t.exports=!u||i(23)(function(){var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||"abcdefghijklmnopqrst"!=Object.keys(u({},e)).join("")})?function(t,e){for(var i=s(t),u=arguments.length,l=1,c=r.U,d=o.U;u>l;)for(var h,p=a(arguments[l++]),f=c?n(p).concat(c(p)):n(p),_=f.length,m=0;_>m;)d.call(p,h=f[m++])&&(i[h]=p[h]);return i}:u},function(t,e,i){(t.exports=i(120)(!1)).push([t.Ee,"#ad-skip-button-container {\n    position: absolute;\n    top: 0;\n    overflow: hidden;\n    width: 100%;\n    height: 100%;\n}\n\n#ad-skip-button {\n    position: absolute;\n    width: 85px;\n    right: -85px;\n    bottom: 101px;\n    padding: 6px 0;\n    background-color: rgba(34, 34, 34, .85);\n    color: #d0d0d0;\n    font: 12px Arial;\n    text-align: center;\n    border: 1px #747474 solid;\n    border-right: 0;\n    transition: right 1s ease-in;\n}\n\n.fullscreen-mode #ad-skip-button {\n    width: 165px;\n    bottom: 98px;\n    padding: 9px 0;\n    border-width: 1.5px;\n    font-size: 18px;\n}\n\n#ad-skip-button.skippable {\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n#ad-skip-button.skippable:hover {\n    color: #fff;\n}\n\n#ad-skip-button.expand-skip-button {\n    opacity: 1;\n    right: 0;\n    margin-right: 0;\n}\n\n#ad-skip-button.collapse-skip-button {\n    opacity: 0;\n    right: -110px;\n}\n\n.fullscreen-mode .collapse-skip-button {\n    opacity: 0;\n    right: -165px;\n}\n",""])},function(t,e,i){(t.exports=i(120)(!1)).push([t.Ee,"video {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n}\n\niframe {\n    position: absolute;\n    z-index: 2;\n    pointer-events: auto !important;\n}\n",""])},function(t,e,i){(t=i(21))(t.Dc,"Array",{fill:i(157)}),i(74)("fill")},function(t,e,i){var n=i(38),r=i(90),o=i(33);t.exports=function(t){var e=n(this),i=o(e.length),s=arguments.length,a=r(1<s?arguments[1]:void 0,i);for(i=void 0===(s=2<s?arguments[2]:void 0)?i:r(s,i);i>a;)e[a++]=t;return e}},function(t,e,i){var n=i(64),r=i(91),o=i(14);e=i(13).Reflect,t.exports=e&&e.ownKeys||function(t){var e=n.U(o(t)),i=r.U;return i?e.concat(i(t)):e}},,,,,,,,,,,,,,,,,,,,function(t,e,i){function n(t){function e(e){return new ab(e,new t(e))}return e.N=t.N.concat(ab.N),e}function r(){this.Wm=this.Kl=this.left=this.top=this.height=this.width=0,this.position=""}function o(){this.Nj=this.bj=this.Ga=""}function s(){this.vendor="",this.Rm=[],this.Tl=[],this.Ca=[],this.Lj=[]}function a(){this.value=""}function u(t,e){this.type=t.match(/([A-Z]?[^A-Z]*)/g).slice(0,-1).join("_").toLowerCase(),this.value=So.ha(e)}function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=window.crypto||window.msCrypto;return e=window.Uint16Array&&e&&e.getRandomValues?e.getRandomValues(new window.Uint16Array(1))[0]%16:Math.floor(16*(Math.random()||0)%16),("x"===t?e:3&e|8).toString(16)})}function c(){this.value=this.Dm=""}function d(){this.height=this.width=null,this.id="",this.parameters=this.Op=this.ua=this.Ul=this.Vl=null,this.Ja="",this.xb=[]}function h(t){this.type=t}function p(){this.type=null,this.value=this.mimeType=""}function f(t,e){var i=this;this.xe={},e?(this.lang=t.getAttribute("language"),this.Ol=os[this.lang],this.xe=rs()({},t.getAttribute("type").split("/")[1],So.ha(t))):(this.lang=t.getAttribute("lang"),this.Ol=t.getAttribute("displayText"),(So.ga(t).Format||[]).forEach(function(t){return i.xe[t.getAttribute("type")]=So.ha(t)}))}function _(){this.value="",this.av=!1}function m(){this.height=this.width=null,this.Mj=this.gi=this.fi=this.In=this.Rg=this.Qg="",this.duration=this.offset=null}function y(t){this.type="".concat(t)}function v(t){this.url=t}function g(){this.Ca=[],this.id=this.mp="",this.Va=null}function E(){this.name=this.version=""}function b(t,e){function i(){try{(function(){var t={Accept:"text/javascript, application/json, text/html, application/xml, text/xml, */*","Content-Type":"application/x-www-form-urlencoded"};Object.keys(t).forEach(function(i){Object.prototype.hasOwnProperty.call(e.headers,i)||(e.headers[i]=t[i])}),e.contentType&&(e.headers["Content-Type"]=e.contentType),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])})})(),n.send(e.Dg)}catch(t){e.error&&e.error()}}var n="undefined"!=typeof XMLHttpRequest&&new XMLHttpRequest,r={},o=!1;e.method=e.method?e.method.toLowerCase():"get",e.async=!1!==e.async,e.Dg=e.Dg||"",n.onreadystatechange=function(){if(4===n.readyState){var t=n.getResponseHeader("content-type")||"";r.status=n.status,r.text=n.responseText,/json/.test(t)?r.data=function(t){return"string"==typeof t&&t?JSON.parse(mr.a.trim(t)):null}(n.responseText):/xml/.test(t)&&(r.data=function(t){if(window.DOMParser)return(new DOMParser).parseFromString(t,"text/xml");var e=new window.ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e}(n.responseText)),r.Wb=200<=n.status&&300>n.status||304===n.status||0===n.status&&n.responseText,r.Wb?e.Wb&&e.Wb(r,n):e.error&&yr.a.setTimeout(function(){e.error(r,n,o)},1),e.complete&&e.complete(r,n)}};try{n.open(e.method,t,e.async),void 0!==n.withCredentials&&(n.withCredentials=!!e.withCredentials)}catch(t){}e.headers=e.headers||{},e.timeout&&(n.timeout=e.timeout,o=!1,n.ontimeout=function(){return o=!0});var s={data:function(t){return e.Dg=Object(_r.C)(t),s},end:function(t){return e.complete=t,i(),s},Xw:function(t,i){return e.headers[t]=i,s},send:function(t,n){return e.Dg=Object(_r.C)(t),e.complete=n,i(),s}};return s}function S(t,e,i,n,r,o){return void 0===o&&(o={}),o.Wb=i,o.error=n,o.method="get",t&&gr.Bs(t),b(t,o).send(e,r)}function A(t,e,i){return new fr.a(function(n,r){S(t,e||null,n,function(t,e,i){r({request:e,response:t,Xb:i})},null,i)})}function T(t){return this[Er]||(this[Er]=A(t||"https://video.adaptv.advertising.com/ad/ads/advertisers/advertisers.txt").then(function(){return!(!_r.c.safari||!pr.a.vb())&&function(){var t=Object(_r.h)("div",{class:"adsbox"},document.body);return t.style.height="1px",t.style.width="1px",new fr.a(function(e){window.setTimeout(function(){e(0===t.offsetHeight),Object(_r.A)(t)},100)})}.call(this)}.bind(this),function(){return!0}.bind(this))),this[Er]}function I(t,e){return-1<(e?Pr:Pr.concat(["All"])).indexOf(t)}function C(t){return{adSessionId:this[Ca],data:{context:{accessMode:"full",adCount:1,adServingId:"c532d16d-4d7f-4449-bd29-2ec0e693fc86",adSessionType:"html",apiVersion:"1.0",environment:"web",omidJsInfo:{omidImplementer:"o2-sdk",serviceVersion:"4.1.1"},videoElement:this[Ma].Lc},verificationParameters:this[La].Lj[0]&&this[La].Lj[0].value},timestamp:+new Date,type:t}}function R(t){ga.debug("onSessionEvent",t),this[Aa]&&this[Aa](C.call(this,t)),P.call(this,this[Ia],t)}function L(){Object(_r.A)(this[Sa])}function P(t,e){var i=C.call(this,e);t[e]?(ga.debug("notifyListeners",e),t[e].forEach(function(t){return t(i)})):(ga.debug("notifyListeners - cache",e),this[Ra][e]||(this[Ra][e]=[]),this[Ra][e].push(i))}function O(){var t=this;this[Pa].addEventListener(va.Fc,function(e){P.call(t,t[Ta],e.Bb)}),this[wa].addEventListener(Zo.Eb,function(){R.call(this,ma),Object(_r.d)(L.bind(this))}.bind(this))}function D(t){var e=this;ga.debug("loadScript",t);var i=new Is;return this[Sa]=new fa(this[Da]).Gm({Sd:function(n,r){(function(t){var e=this;t.omid3p={addEventListener:function(t,i){if(ga.debug("addEventListener",t),-1<Object.values(dr).indexOf(t))var n=e[Ia];else{if(!(-1<Object.values(cr).indexOf(t)))return;n=e[Ta]}n[t]||(n[t]=[]),n[t].push(i),e[Ra][t]&&e[Ra][t].forEach(function(t){return i(t)})},registerSessionObserver:function(t,i){ga.debug("registerSessionObserver",i),e[Aa]=t,R.call(e,ya)}}}).call(e,n.contentWindow),new da.a(r).Rd(t).then(i.resolve,i.reject)}}),this[Sa].style.display="none",this[Sa].id="adverificationloaderframe",i.sa()}function M(){var t=this;if(ga.debug("onNotExecuted",this[ba]),0<this[La].Ca.length){var e=new ks("verificationNotExecuted");e.hc=this[La].Ca.map(function(e){return e=e.url,ga.debug("replaceMacros",e),e.replace(/\[REASON]/g,t[ba])}),this[Pa].dispatchEvent(e)}}function w(){this.Hh.Bn(this.Ms),this.I.ic().hj=this.Ns}function N(){"url"===this.At?(this.value=this.I.Pb().resolve(this.value),this.ue.Rd(this.value)):this[qa]=this.ue.Sr(this.value)}function k(t,e){var i=this;this.Sa.$a($o.a.bind(this.I,t,function(){clearTimeout(i.ll),i.ll=setTimeout(i.ka.bind(i),i.timeout),i.Sa.$a($o.a.qa(i.I,e,B.bind(i))),i.Sa.$a($o.a.bind(i.I,Zo.Eb,B.bind(i)))}))}function B(){clearTimeout(this.ll)}function x(t,e){return t.ol-e.ol}function U(t,e){switch(t){case 0:return!1;case 1:return!0;default:return e}}function V(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.push(new Ds(e))}),t}function j(t,e){return t[e]&&t[e][0]?So.ga(t[e][0]).rule.map(function(t){return new yu(t,e)}):[]}function F(){var t=[],e=this.Nb(1<arguments.length?arguments[1]:void 0);return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(i){(i=e.parse(i))&&t.push(i)}),t}function H(t,e){return t?F.call(this,So.ga(t[0])[e],e):[]}function Y(t,e){e.forEach(function(e){(e=e.url)&&t.hc.push(e)})}function G(t,e,i,n){var r=this;t&&t.Ca&&t.Ca.forEach(function(t){var o;if(o=t.type===i&&t.url){var s=mr.a.trim(t.offset||"");n&&n.Bb===ra&&s?(o=n.data||{}).duration?(s=-1===s.indexOf("%")?Object(_r.F)(s):o.duration*Number(s.substr(0,s.length-1))/100,(o=o.currentTime>=s&&-1===r.Uk.indexOf(t))&&r.Uk.push(t)):o=!1:o=!0}o&&(o=t.url,function(t){return 0<qu.filter(function(e){return-1<t.indexOf(e)}).length}(t.url)||(o+="".concat(-1<t.url.indexOf("?")?"&":"?","cb=").concat(Math.random().toString(10).substr(2))),e.push(o))})}function K(t,e){throw new Nr(t,e||io)}function q(t,e){this[Tc].warn("Unable to release",t,"(Reason: ".concat(e,")"))}function W(t,e){var i=this,n=this[wc].gs()?t.aeg&&t.aeg[0]&&[t.aeg[0]]||[]:t.aeg||[];this[Vc]&&this[Vc].type.toLowerCase()===e&&(n=this[jc].Us(n)),this[wc].Gt({audiences:[],utid:this[Nc]});var r=[];return n.forEach(function(n){var o=[];n.forEach(function(n){try{if(n instanceof hc)var r=n;else n.type||(n.type=t.type||e),n.podId||(n.podId=t.podId),n.slotAdSeq||(n.slotAdSeq=t.adSeq),n.transactionId=i[kc]||t.txid,n.adxResult=i[Bc]||t.adxResult,n.usid=i[xc]||t.usid,n.auid=i[Uc]||t.auid,n.parentSlot=t.slot,i[wc].Jm()&&(n.usesShim=!0),r=mc.parse(n,i[Mc],i[Fc].M("adSystem"));o.push(r)}catch(t){Hc.error("Error in entry parsing logic: ".concat(t.message))}}),r.push(o)}),r}function z(t){return t.aeg.some(function(t){return 0<t.length})}function X(t){return"Midroll"===t||"Overlay"===t}function Q(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];id.debug("init ad pools with ad groups",e),this[nd]=[],e.forEach(function(e){var i=[];e.forEach(function(t){var e=new Cc(t);e.nd="aem_".concat(pd++),t.forEach(function(t){return t.nd=e.nd}),i.push(e)}),t[nd].push(i)}),this[dd]=this[nd].length+1,id.debug("Created Ad Pools",this[nd])}function J(t){Q.call(this),this[sd].dispatchEvent(new Ga(Ga.zc,{error:t,pa:Ur}))}function Z(t,e){var i=this;this[nd]=[],this[sd].dispatchEvent(new Ga(Ga.LOADING,{zd:this[rd].Vc,Bd:this[rd].Bd,type:t})),this[ud].load(t,e).then(function(e){return tt.call(i,e,t)},J.bind(this))}function $(t){return t&&t.nd&&t.ie?"".concat(t.nd,".").concat(t.ie):null}function tt(t,e){try{var i=this[cd].parse(t,e),n=new Ga(Ga.LOADED,i,e,t&&t.timings,t&&t.podSize,t&&t.defaultSlot,t&&t.version);Q.call(this,n.data.zd),this[sd].dispatchEvent(n)}catch(t){J.call(this)}}function et(t){try{var e=t.document.hasFocus&&t.document.hasFocus()}catch(t){}return e}function it(t){var e=[];return t.forEach(function(t){var i,n=t.length-1,r=t[n];t=(i=Array.prototype).concat.apply(i,md()(t.slice(0,n))),e.push(new Ad(t,r))}),new Cd(e)}function nt(t,e){return new Cd([new Td(t,e)])}function rt(t,e,i){var n=Math.round(t),r=~~(n/3600),o=n-3600*r;return i=~~(o-60*(n=~~(o/60)))-(500<(t=i?+(t%1).toFixed(3).substring(2):0)?1:0),"".concat((0<r||e?"".concat((10>r?"0":"")+r,":"):"")+(10>n?"0":"")+n,":").concat(10>i?"0":"").concat(i).concat(t?".".concat(t):"")}function ot(t){Object(_r.v)(t)?window.open(t,"_blank"):Rd.error("Failed to open new tab due to invalid url",t)}function st(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return 3>e.length?"":(t=e[2].replace(/^m\./,""),e=e[0],this[Od].Ka(t)||e)}function at(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return 3>e.length?"":(t=e[2].replace(/^m\./,""),encodeURIComponent(this[Od].Ka(t)||""))}function ut(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return 3>arguments.length?"":(t=e[2],(e=ct.call(this)).metadata&&e.metadata[t])}function lt(){var t=this[Pd].Zc()||{};return{width:parseInt(t.width,10)||0,height:parseInt(t.height,10)||0}}function ct(){return this[Pd].cb()||{}}function dt(){return encodeURIComponent(this[Od].Ka("url")||pr.a.tb(window))}function ht(t,e){this[uh].dispatchEvent(new Jo(Zo.Uj,{ad:this[hh],Cm:e,stopped:null!==this[ph],pa:this[mh],vc:t}))}function pt(t,e){ih.warn("interruptOnError",t),clearTimeout(this[ph]),this[ph]=null;var i=t instanceof wr?t.message:t;t=t instanceof eh?t.Mn:null,e=new th(i,i===gh?th.ko:th.gf,t,t?fo:e),this.dispatchEvent("AD_LOAD_INTERRUPTED",e)}function ft(t,e){var i=this[yh].Kr(t,this[nh],this[_h]),n=this[nh]&&!t?this[nh].Be(i):this[oh];this[uh].dispatchEvent(new Jo(Eh,{ad:this[nh],url:i})),this[yh].qt(t,i,this[nh]).then(function(n){this[uh].dispatchEvent(new Jo(bh,{ad:this[nh],url:i}));var r=n.data;r||(r=n.text),mr.a.tg(n.text)?this.Wc("Empty VAST error",null,jr):null===this[ph]||this.Xs(r,e,t,i),ht.call(this,i,n)}.bind(this),function(e){if(this[uh].dispatchEvent(new Jo(bh,{ad:this[nh],url:i})),t||!_t.call(this,e.Xb,n)){var r=Fr;e.Xb?r=Br:pr.a.vb()&&0!==i.indexOf("https:")&&(r=to),this.Wc("VAST ajax error",e.Xb?"request timeout over ".concat(n,"ms"):null,r)}ht.call(this,i,e)}.bind(this))}function _t(t,e){return!(!this[nh]||!this[nh].Cj())&&(this[lh].ld("ad",null,"switching to the next ad in [urls] in the same entry.".concat(t?" Because of timeout (".concat(e,")"):"")),ft.call(this,null),!0)}function mt(t){t.ads.sort(function(t,e){return t.Va-e.Va})}function yt(t){clearTimeout(this[ph]),this[ph]=null,this.dispatchEvent("AD_LOAD_COMPLETE",t)}function vt(t){this[hh]&&(this.dispatchEvent("ISSUE_WITH_AD",t),this[hh].Nl(this[sh],t))}function gt(){0===this.me.length&&(this.reset(),this.tk&&this.tk())}function Et(){this[Uh].innerHTML="",Object(_r.h)("div",{style:"position: absolute; display: block; left: 10%; width: 80%; top: 25.5%; height: 49%;"},this[Uh],this[jh]?xh.a:kh.a)}function bt(){var t=this;Wh.debug("mouseClickHandler"),this[Jh]||(this.H.se(),this[Jh]=setTimeout(function(){return t[Jh]=null},100))}function St(){this[tp]!==zh.Fb&&(this[Qh]=!0,this[Xh]=$o.a.group($o.a.bind(this.X,"VideoClickEvent",bt.bind(this)),$o.a.bind(this.X,"VideoErrorEvent",function(t){this.$d(t.message,t.code)}.bind(this)),$o.a.bind(this.X,"VideoPlayEvent",function(){this.oj(),this[tp]=zh.PLAYING}.bind(this)),$o.a.bind(this.X,"VideoStartEvent",function(){this.fe||(this.td.$t((new Date).getTime()-this[ep]),this.oj(),this.Ma(ua),this.zg(),this.dd())}.bind(this)),$o.a.bind(this.X,"VideoResumeEvent",function(){this[tp]=zh.PLAYING,this.track(oa),this.H.dn()}.bind(this)),$o.a.bind(this.X,"VideoPauseEvent",function(){this[tp]=zh.PAUSED,this.track(ea),this.H.bn()}.bind(this)),$o.a.bind(this.X,"VideoEndEvent",function(t){t.complete&&this.Ma(qs),this.X.rj(),this[tp]=zh.Fb,this[Xh].Z(),this.H.complete(!1,t)}.bind(this)),$o.a.bind(this.X,"VideoVolumeChangedEvent",function(t){this.H.Bg(t),!0===t.muted?this.track(ta):this.track(ca)}.bind(this)),$o.a.bind(this.X,"VideoTimeUpdateEvent",function(t){this.H.Ag(t),this.Gj(this.X.Sq())}.bind(this)),$o.a.bind(this.X,"VideoWaiting",function(){this.H.Ts()}.bind(this)),$o.a.bind(this.X,"VideoFallbackEvent",function(t){this.H.Iu(t.url)}.bind(this)),$o.a.bind(this[Zh],"click",bt.bind(this))),this.H.va.ua&&((this.X.yi().style||{}).cursor="pointer"),this.ej())}function At(t){var e=this;this[vp]=this[vp]||t.data.skippable,this[vp]&&(this[yp]=function(t){var e=t.data;t=e.duration;var i=e.skipOffsetTime;e=e.skipOffsetPercent;var n=this[mp];i||0===i?n=i:(e||0===e)&&(n=~~(t*e/100));return n<Math.min(this[lp],t)?n:null}.call(this,t),null!==this[yp]&&(It.call(this),setTimeout(function(){return Object(_r.B)(e[hp],"collapse-skip-button","expand-skip-button")},800)))}function Tt(t){if(!this[op]){var e="";this[dp]&&(e="| ".concat(Math.round((t?t.data.duration:0)-(t?Math.floor(t.data.currentTime):0)))),this[pp].innerHTML=this[gp].replace("%t",e).trim(),Object(_r.a)(this[hp],"skippable"),this[op]=!0,$o.a.qa(this[hp],"click",function(){this[op]&&(this[sp].skip(),Object(_r.z)(this[hp],"skippable"),this[op]=!1)}.bind(this)).link(this[bp])}}function It(){if($o.a.qa(this[sp],Zo.Eb,function(){this[cp]&&this[sp].removeEventListener(Zo.yc,this[cp]),Object(_r.B)(this[hp],"expand-skip-button","collapse-skip-button"),Object(_r.z)(this[hp],"skippable"),this[op]=!0}.bind(this)).link(this[bp]),0<this[yp]&&(this[cp]=function(t){var e=Math.floor(t.data.currentTime);0<this[_p]&&this[yp]-this[_p]<e&&(0>=(e=this[yp]-e)?Tt.call(this,t):Ct.call(this,e))}.bind(this),this[sp].addEventListener(Zo.yc,this[cp])),!this[hp]){var t=this[ap].querySelector("#".concat("ad-skip-button"));if(t)this[hp]=t,this[pp]=this[hp].querySelector("#".concat("ad-skip-button-text"));else{this[up].mi(rp.a),this[fp]=Object(_r.h)("div",{id:"ad-skip-button-container"},this[ap]),t={};try{t=getComputedStyle(this[Sp].Lc)||{}}catch(t){}this[hp]=Object(_r.h)("div",{id:"ad-skip-button",style:{zIndex:t.zIndex&&"auto"!==t.zIndex?t.zIndex:3}},this[fp]),this[pp]=Object(_r.h)("div",{id:"ad-skip-button-text"},this[hp])}}0<this[yp]?Ct.call(this,this[yp]):Tt.call(this)}function Ct(t){this[op]||(this[_p]=t,this[pp].innerHTML=this[Ep].replace("%d",this[_p]))}function Rt(){return!!Cp&&!!Tp[Cp.fullscreenEnabled]}function Lt(){return!!Tp[Cp.fullscreenElement]}function Pt(t){var e=this[xp][t];if(e){for(var i=arguments.length,n=Array(1<i?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];e.call.apply(e,[this].concat(n))}}function Ot(t,e){var i=this;this[Wp].link($o.a.bind(this[Bp],t,function(){try{if(-1!==Dp.indexOf(t)){if(-1!==i[Up].indexOf(t))return void i.H.dispatchEvent(new Jo(Rp.nk,t));i[Up].push(t)}for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(i,r)}catch(e){Lp.error("Failed to handle ".concat(t," event:"),e)}}))}function Dt(t){var e=document.createEvent("MouseEvent");e.initEvent(t.type,!t.cancelBubble,t.cancelable),this[Hp].dispatchEvent(e)}function Mt(t){this.element.style.visibility=t?"visible":"hidden"}function wt(t){if(this.Pa)try{for(var e=this.Pa[t],i=arguments.length,n=Array(1<i?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return e?e.apply(this.Pa,n):this.Pa.Jb(t,n)}catch(e){Lp.error(t,e)}}function Nt(){Lp.debug("onAdPlaying"),this.H.dn()}function kt(t){Lp.error(t);var e=Bt.call(this);this.error={P:e.P,code:e.code,description:"".concat(e.description," ").concat(t),fa:e.fa},this[sf]&&this[sf].call(this,this.error),this.$l()}function Bt(t){var e=this[tf]||Pp;return this[Fp]&&!this.Pa?e=mo:this.Pa&&!this[ef]?e=t?oo:ro:this[ef]&&!this.Yi()?e=t?co:lo:this.Yi()&&(e=uo),e}function xt(t){t=Object(_r.u)(t)?Object(_r.u)(t.data)?t.data.message||t.data.errorMessage:"Internal Vpaid Error":t,Lp.warn("VPAID_UNIT:",t),-1===Op.indexOf(t)?this.$d(t):this.stop()}function Ut(t){Lp.debug("VPAID_UNIT:",t)}function Vt(){Lp.debug("onAdUserAcceptInvitation");var t=wt.call(this,"getAdLinear");this.track(Hs),this.H.dispatchEvent(new Jo("VASTAdInteraction",t?"acceptInvitationLinear":"acceptInvitation"))}function jt(){Lp.debug("onAdUserMinimize"),this.track(Ks)}function Ft(){Lp.debug("onAdUserClose");var t=wt.call(this,"getAdLinear");this.track(Gs),this.H.dispatchEvent(new Jo("VASTAdInteraction",t?"closeLinear":"close"))}function Ht(){-1===this.Za.indexOf("//imasdk.googleapis.com")&&(Lp.debug("Ad Skippable State changed to",wt.call(this,"getAdSkippableState")),this.H.dispatchEvent(new Jo(Zo.Ze,{jd:this.getAdSkippableState()})))}function Yt(){var t=wt.call(this,"getAdExpanded");Lp.debug("Ad Expanded changed to",t),t?(this.track(Xs),this.H.jn(),this.H.dispatchEvent(new Jo("VASTAdInteraction","expand"))):(this.track(Ks),this.H.xn(),this.H.dispatchEvent(new Jo("VASTAdInteraction","collapse")))}function Gt(){Lp.debug("Ad size changed to: w=".concat(wt.call(this,"getAdWidth")," h=").concat(wt.call(this,"getAdHeight")))}function Kt(){Lp.debug("Ad Duration changed to",wt.call(this,"getAdDuration"))}function qt(){Lp.debug("Ad Remaining Time changed to",this.kc()),this.H.wj()}function Wt(){var t=this;this.fe||(this.oj(),Lp.debug("Ad Impression"),this.dd(),this.zg({initlatency:this[$p],loadlatency:this[Zp]}),(this.Wi()||"Overlay"===this[Mp])&&Mt.call(this,!0),setTimeout(function(){return t[of]=!0},500))}function zt(t,e,i){Lp.debug("Clickthrough portion of the ad was clicked",t,e,i),(i=!!t&&(!!i||void 0===i))?e=!!t:(t=null,e=!1),this.H.se(t,e,!i)}function Xt(){Lp.debug("A non-clickthrough event has occured"),this.H.dispatchEvent(new Jo("VASTAdInteraction"))}function Qt(){Lp.debug("Video 0% completed"),this.Ma(ua)}function Jt(){Lp.debug("Video 25% completed"),this.Ma(Qs)}function Zt(){Lp.debug("Video 50% completed"),this.Ma($s)}function $t(){Lp.debug("Video 75% completed"),this.Ma(la)}function te(){Lp.debug("Video 100% completed"),this.Ma(qs)}function ee(){var t=wt.call(this,"getAdLinear");t!==this[zp]&&(this[zp]=t,Lp.debug("Ad linear changed to",t),this.H.Me(t))}function ie(){this[ef]=!0,Lp.debug("ad has been loaded",this),this[$p]=(new Date).getTime()-this[Qp],this.td.Vt(this[$p]),this.setVolume(this[Kp]),this.H.dispatchEvent(new Jo(Zo.hh,{Ba:this.H.ad&&this.H.ad.Ba||""})),this.ej()}function ne(){Lp.debug("Ad has started"),this.td.It((new Date).getTime()-this[Jp]),this.setVolume(this[Kp]),this.Yl(),this.H.Ng(),this.H.Hg()}function re(){Lp.debug("Ad has stopped"),this.fe||this.rb||(this.error=ho),this[Yp]&&clearTimeout(this[Yp]),this.dispose(),this.H.complete(!1,{currentTime:this.getCurrentTime()})}function oe(){Lp.debug("Ad was skipped"),this.$l()}function se(){var t=this.getVolume();if(t!==this[Kp]&&this.Yi()){var e=!t;Lp.debug("Ad Volume changed to",t),e?this.track(ta):this.track(ca),this[Kp]=t,this.H.Bg({muted:e,volume:this[Kp]})}}function ae(){Lp.debug("onAdPaused"),this.H.bn(),!this[of]&&0<this.getVolume()&&!this[rf]&&(this.setVolume(0),this.resume())}function ue(){this.Jc||this.yg(new wr("ad engine did not finish loading")),this.dispatchEvent(new Zo(Zo.Db,this.L.getType(),{Uf:this.sh,error:le.call(this,this.gr()),loaded:this.Jc}))}function le(t){return t&&t.pa&&(t.pa.latency=this[Ef]),t}function ce(){for(this.target.innerHTML="";this[Mf].firstChild;)this.target.appendChild(this[Mf].firstChild);delete Pf[this.target.id]}function de(t,e){return e.filter(function(e){return(e.el===t.parent||+e.width===t.width&&+e.height===t.height)&&"end-card"!==e.mt})[0]}function he(t,e,i){var n=this;this[Kf].forEach(function(r){var o=r.parent;if(!t[o])for(var s=0;s<i.Of.length;s++){var a=i.Of[s],u=de(r,a.qe);if(u){r=new Yf(e,a,u,r,n[Qf],n[Xf]),n[Xf].dispatchEvent(new Jo("VASTCompanionAdStarted")),e.dispatchEvent(new ks("companionDisplay",a)),n[Xf].za(Zo.Yn),r.Md(),n[Wf].push(r),t[o]=!0;break}}})}function pe(){this.xh.Z(),Object(_r.A)(this.element)}function fe(t){return(t=(t=t?t.url:"")&&mr.a.trim(t))&&!mr.a.startsWith(t,"rtmp",!0)}function _e(t,e,i){var n=null,r=null,o=null;if(t.length){o=t.slice();for(var s=t.length-1;0<=s;s--){var a=t[s];if(!a.gd&&a.width<=e&&a.height<=i&&(n=a),a.width>=e&&a.height>=i){r=a;break}}r&&(o.splice(o.indexOf(r),1),o.unshift(r)),n&&(o.splice(o.indexOf(n),1),o.unshift(n))}return o}function me(){var t=[],e=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(i){var n=i.xb[0];if(n)switch(c_.debug("resolveByMimeType","Found supported resource",n),n.type){case as:(function(t){return 0<d_.filter(function(e){return new RegExp(e).test(t)}).length})(n.mimeType)&&e.push(i);break;case us:case ls:t.push(i)}}),t.concat(e)}function ye(t){return-1!=="".concat(t).indexOf("%")}function ve(t,e){var i={height:e,width:t,x:0,y:0};i.x=(this.S.offsetWidth-t)/2,i.y=(this.S.offsetHeight-e)/2;var n=this.S.offsetWidth,o=this.S.offsetHeight;switch(this.gb.position){case r.hk:i.y=0;break;case r.gk:i.x=this.S.offsetWidth-t;break;case r.dk:i.y=this.S.offsetHeight-e;break;case r.fk:i.x=0;break;case r.dh:this.S.parentNode&&n===this.S.parentNode.offsetWidth&&(o=this.S.parentNode.offsetHeight),i.x=ye(this.gb.left)?parseFloat(this.gb.left)*n/100:this.gb.left,i.x-=t/2,i.y=ye(this.gb.top)?parseFloat(this.gb.top)*o/100:this.gb.top,i.y-=e/2}return i}function ge(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=(e=vd()(e,2))[0];if(e=e[1],i&&e)return Array.isArray(e)||(e=[e]),e.map(function(e){var n=t[P_].oa(T_);return n.addEventListener(T_.jk,function(){i(e)}),n.xj(e),n})}function Ee(t,e){this[z_].dispatchEvent(new ks(t,this[X_])),function(t,e){q_.debug("loadViewabilityBeaconScript",t);var i=this[Q_].filter(function(e){return e.type===t})[0];if(i){var n=[];e&&n.push([K_,e.mg()]),i.prepare(null,this[J_],n),i.ka()}}.call(this,t,e),!this[z_].wc||"iab_viewable"!==t&&"iab_detection_failed"!==t||function(t){var e=this;this[z_].wc.forEach(function(i){var n=i.Ga,r=i.bj;if(i=i.Nj,"iab_viewable"===t&&n)return n.ka();if("iab_detection_failed"===t){if(i&&-1===e[W_].na())return i.ka();if(r)return r.ka()}})}.call(this,t)}function be(t){var e=this;t.addEventListener("VASTAdStarted",this.dispatchEvent.bind(this)),t.addEventListener("VASTAdError",function(t){$_.warn("VAST error occurred in ad",t)}.bind(this,t)),t.addEventListener("VastMediaElementReady",function(t){this[bm]&&"Overlay"!==this.ba().getType()?this.I.dispatchEvent(new Jo(Zo.$j)):t.Ab()}.bind(this,t)),t.addEventListener(Zo.gh,this.I.dispatchEvent.bind(this.I)),t.addEventListener(Zo.hh,this.I.dispatchEvent.bind(this.I)),t.addEventListener(Zo.We,this.I.dispatchEvent.bind(this.I)),t.addEventListener(Zo.Ze,this.I.dispatchEvent.bind(this.I)),t.Md(this.I.getVolume()),t.va&&t.va.qc&&t.va.qc.forEach(function(i){return new o_(i,e.X,e[sm]).nu(t)})}function Se(t){var e=this;$_.debug("prepareCreatives",t),function(t){var e=this;$_.debug("instrumentAd",t),em.forEach(function(i){return t.addEventListener(i,function(t){this[am].Oe(t,this.L)}.bind(e))}),t.addEventListener(ks.hb,function(t){return e.Ph(t.Mb())}),t.addEventListener(va.Fc,function(t){var i=im[t.Bb];i&&e.ia(i,t.data)})}.call(this,t),this[Em].Ur(t),this.ad=t,this[Sm]&&(this.ad=Me.call(this)||t),this[dm]=[],this[fm]=[],this.ad.aa.forEach(function(t){$_.debug("prepareCreatives","creative",t),t instanceof is?e[dm].push(t):t instanceof ys&&e[fm].push(t)}),this.ad.rn(this[am],{Ev:this.Ea()},this.J.He())}function Ae(t,e){$_.debug("displayOverlay"),this[_m].ei(),t=new f_(this[_m],this[ym].ads[0]||this.ad,t,this[hm],e,this.I,this),this[vm].push(t),t.addEventListener("VASTAdStarted",this.If.bind(this,t)),t.addEventListener("VASTAdEngineComplete",function(){this.rc("started")?this.ia("finished"):this.ia("failover")}.bind(this)),t.addEventListener("VASTAdInteraction",function(t){this.za(Zo.Sj,{action:t.data})}.bind(this)),t.addEventListener("VASTAdEngineComplete",Pe.bind(this,t)),be.call(this,t),e=t.gb.Wm,isNaN(e)&&(e=t.da.Ym),e===Number.POSITIVE_INFINITY||this.J.Pd()||(e=1e3*(isNaN(e)?15:e),this[_m].Fg(Le.bind(this),e))}function Te(t){var e=this;if(this.J.cs())return!1;this.rc("started")?this[om].ld("ad",null,"ad failed after start"):this[nm].Tc(ks.Da,{error:t}),this.Af=null,this[um]++;var i=this[ym].lm(),n=i||this[ym];if(this[ym].qr(i).forEach(function(i){var n=new ks(ks.Da,null,null,{error:t});i.dispatchEvent(n),e[am].Oe(n)}),n){if(i=0,-1===this.ib.Ib)for(var r=0;r<n.ads.length;r++)if(n.ads[r]&&!n.ads[r].Va){i=r;break}if(r=n.ads[i])return this.za(Zo.pk,{cq:!0,pa:t}),this[ym]=n,r.Le?function(t){this.Ha.Zd(),this.Ha.gt(this[ym],t)}.call(this,i):(this[ym].ads.splice(i,1),$_.debug("showNextLinearCreative","show failover ad"),Se.call(this,r),this.Vb(),Ce.call(this)),!0}return this.rc("loaded")&&!this.rc("started")&&this.ia("failover"),!1}function Ie(){var t=this;this.pd=$o.a.group($o.a.bind(this[nm],"VASTAdEngineComplete",function(e){Pe.call(t,t[nm],e)}),$o.a.bind(this[nm],Oh.mk,function(t){t=t.tn,this.xa&&(t=Math.min(this.xa.sn(),t)),t=new Oh(t),this.dispatchEvent(t),this.I.dispatchEvent(t)}.bind(this)),$o.a.bind(this[nm],Zo.Xe,function(t){$_.debug("received linear change event",t),t.data.isLinear||this.ia("non-linear"),this.I.dispatchEvent("AdSystem.LinearChange",t)}.bind(this)),$o.a.bind(this[nm],"VASTAdImpression",this.pg.bind(this)),$o.a.bind(this[nm],"VASTAdStarting",this.Uh.bind(this)),$o.a.bind(this[nm],"VASTAdStarted",function(e){t.If(t[nm],e),e=+t[nm].getDuration();var i=+t[rm].duration;0<e&&(e>1.8*i||i>1.8*e)&&t[om].ld("ad",null,"ad duration mismatch: expected ".concat(i," but real duration: ").concat(e))}),$o.a.bind(this[nm],"VASTAdPaused",this.Rh.bind(this)),$o.a.bind(this[nm],"VASTAdResumed",this.Th.bind(this)),$o.a.bind(this[nm],"VASTAdVolumeChanged",this.Jf.bind(this)),$o.a.bind(this[nm],"VASTAdTimeUpdate",function(e){t[gm]=t.getDuration(),t.fl(e);var i=t[rm]||{};if(i.jd&&!t[mm]){var n=0;e=e.data||{},i.Jg?n=i.Jg:i.Ig&&(n=e.duration*i.Ig/100),e.currentTime>=n&&(t[mm]=!0,t.I.dispatchEvent(new Jo(Zo.Ze,{jd:t.getAdSkippableState()})))}}),$o.a.bind(this[nm],"VASTAdWaiting",this.op.bind(this)),$o.a.bind(this[nm],"VASTAdInteraction",this.Fj.bind(this)),$o.a.bind(this[nm],Rp.nk,function(t){this[om].ld("ad",null,'VPAID sends "'.concat(t.data,'" event twice'))}.bind(this)))}function Ce(){if($_.debug("showFirstLinearCreative",this[dm]),0===this[dm].length)if(this.ad){this[nm]=new hf(this.xa,this.ad,{},this.I,this);var t=Qr;Te.call(this,t)||(this.Tb(new th(t.description,null,null,t)),this.complete())}else this.complete();else if((t=this.ad)&&(t=this.ad,t=((new Date).getTime()-t.zs)/1e3>t.expires),t)this[nm]=new hf(this.xa,this.ad,{},this.I,this),t=Vr,Te.call(this,t)||(this.Tb(new th(t.description,null,null,t)),this.complete());else{this.Qa=null,this[rm]=this[dm].shift(),this.ad.dispatchEvent(new ks(ks.LOADED,this[rm])),this[cm]?this[cm]=!1:this.Gf(),t=this.S.offsetWidth;var e=this.S.offsetHeight;0===t&&(this.S.style.width="100%",t=this.S.offsetWidth),0===e&&(this.S.style.height="100%",e=this.S.offsetHeight),(t=l_.uj(t,e,this[rm].kb))?(this[hm]=t[0],function(){var t=this;$_.debug("prepareExtensions",this.ad),this.ad.sb.forEach(function(e){$_.debug("prepare extension",e),e.prepare(t)})}.call(this),function(){var t=this;$_.debug("prepareVerifications",this.ad),this.ad.Nu.forEach(function(e){$_.debug("prepare verification",e),t.V.oa(Na).prepare(e,t.ad)})}.call(this),this.qk=new Z_(this.ad,this[rm],this.I),this[rm].zl.prepare(this.V,this.ad),this.ad.wc&&function(){var t=this;$_.debug("prepareAdViewableImpression",this.ad),this.ad.wc.forEach(function(e){var i=e.Ga,n=e.bj;e=e.Nj,i&&($_.debug("prepare viewable container",i),i.prepare(null,t.I)),n&&($_.debug("prepare notViewable container",n),n.prepare(null,t.I)),e&&($_.debug("prepare viewUndetermined container",e),e.prepare(null,t.I))})}.call(this),this.I.dispatchEvent(new Jo("VASTAdLoading",{ad:this.L,url:this[hm].url})),t=new hf(this.xa,this.ad,this[rm],this.I,this).Sn(t).Zu(this[rm].Hm),this[nm]=t,this.pd&&(this.pd.Z(),this.pd=null),Ie.call(this),this[vm].push(t),be.call(this,t)):Ce.call(this)}}function Re(){for(var t=this[ym].parent;t&&t.parent&&(0===t.ads.length||!t.ads[0].Va);)this.Ha.Up(),t=t.parent;return t}function Le(t,e){if($_.debug("killAds"),this.Bh=!0,this[_m].stop(),this[dm]=[],0<this[vm].length){var i=this[vm];t||(this[vm]=[]),i.forEach(function(t){return t.stop(e)})}else Pe.call(this)}function Pe(t,e){if($_.debug("completeAd",t,e),this[_m].stop(),this.jf=!1,e){if(null!=function(t,e){var i=[];return this[vm].forEach(function(e){e!==t&&i.push(e)}),this[vm]=[],0===i.length?null:(new Ph(i,Pe.bind(this,t,e)).Ju(),i.forEach(function(t){return t.stop()}),i)}.call(this,t,e))return;var i=t.sq();if(i&&(this.Tb(new th(i.message||i.description,null,null,i)),this.Af=De.call(this,i)),e.force&&(this.jf=!0),this.yd(e.currentTime,e.data),t instanceof hf)return $_.debug("showNextLinearCreative"),void(this.Qa?(this.Af||(this.Af=De.call(this)),Te.call(this,this.Af)||Pe.call(this)):((t=-1===this.ib.Ib)&&(t=!(!(t=this[ym].ads[0])||!t.Va)),(this.I.Xi()||t)&&function(){var t=this[ym].ads[0];return t?(t.Le?(t=this[ym],this.Ha.Zd(),this.Ha.fd(t)):(this[ym].ads.shift(),Se.call(this,t),this.Vb(),Ce.call(this)),!0):!!(t=Re.call(this))&&(this.Ha.Zd(),this.Ha.fd(t),!0)}.call(this)||Pe.call(this)));if(t instanceof f_)return void Pe.call(this)}this.jf||this.complete()}function Oe(t){if(t=t.da)return Or.a.mm(t.url)||t.url}function De(t){return(t=Object(_r.g)(t||{})).code=t.code||this.Qa.code||tm.code,t.description=t.description||this.Qa&&this.Qa.message||tm.description,t}function Me(){return Object(_r.m)(this[ym].ads,function(t){return!isNaN(t.nq)})}function we(t,e){var i=this;t.hc.forEach(function(n){if(!function(t){return!!t&&0<Mm.filter(function(e){return t.replace(/(https?:)?/,"").replace(/&cb=[^&]*/,"").replace(/&apid=\[object\sObject]/,"&apid=[APID]").replace(/;ord=[^;]*/,";ord=[timestamp]")===e}).length}.call(i,n)){if(n=i[Rm].Pb().resolve(n),t.type===ks.Da){var r=eo;e&&"Overlay"===e.getType()&&(r=Yr),r=t.data.error||r;var o=encodeURIComponent((t.data.Kb||"").slice(0,100));n=it([Lu.concat(r.code),Du.concat(r.fa),Gl.concat(o)]).resolve(n)}i[Dm].gc(n)}})}function Ne(t,e){for(;t;)Im.debug("onVastEvent","process",t),we.call(this,t,e),t=t.im()}function ke(t,e){if(Array.isArray(t)){var i=Object(_r.f)(t);(t=i.pop()).N=i}return(i=t.N)||((i=(i=/\(((?:\s*\w*\s*,?)+)\)/g).exec(t.toString()))&&(i=i[1].replace(/\s+/g,"")),i=i&&i.split(",")||[]),t={Vp:i,sg:this,jt:t},e?new Vm(t):new Um(t)}function Be(){var t=this.Mc.mg(),e=[];switch(this.Mc.getName()){case"viewabilityDefVideo3P":e.push([K_,t]);break;case"viewabilityDefStatic3P":e.push([M_,t])}return e}function xe(){var t=this,e=function(){var t=this,e=[];return Object.keys(oy).forEach(function(i){(function(t,e){var i=oy[e],n=this[ny][i];i&&n&&function(t){return t=this[ry][t],Array.isArray(t)?t:[t]}.call(this,e).forEach(function(i){t.push(new mu(e,i,n))})}).call(t,e,i)}),$m.debug("rules prepared",e),e}.call(this);0<e.length&&e.map(function(e){return t[ey].oa(Zm).xj(e)})}function Ue(t){if(-1===this[fy].indexOf(t)){var e=this[dy]&&this[dy][t];e&&(ay.debug("Tracking pixels",t,e),this[cy].Zl({ln:e})),this[fy].push(t)}}function Ve(){var t=je.call(this);if(this[Py]){var e=t.width,i=Math.min(this[Py].width,e);t=Math.min(this[Py].height,t.height);var n=this.S.style;n.position="absolute",n.bottom="0",n.width="".concat(i,"px"),n.height="".concat(t,"px"),n.left="".concat((e-i)/2,"px"),this[Dy].resize(i,t,this[wy].ViewMode.NORMAL)}else this[Dy].resize(t.width,t.height,this[wy].ViewMode.NORMAL)}function je(){var t=this.S.parentNode;return{height:t.clientHeight,width:t.clientWidth}}function Fe(t){t=t.getError().getMessage(),this.Tb(new th(t,th.gf)),Ry.error("onError()",t),this.rc("loaded")?this.Vf():this.complete(),this.uc("loaded",qr,t,"IMA"),He.call(this)}function He(){var t=this;Ry.debug("destroy()"),this[Ly]&&this.I.removeEventListener("AdSystem.Resize",this[Ly]),this[Dy]&&(this[ky]&&(this[ky].Z(),this[ky]=null),this[Dy].destroy()),setTimeout(function(){t[Ny]&&t[Ny].destroy(),_r.A(t.S)},1e3)}function Ye(){this.Po||(this.Po=!0,Ry.debug("onContentPauseRequested()"),this.Uh())}function Ge(){var t=this;if(this[Ny].initialize(),this[Dy]){var e=this[wy].AdEvent.Type;Ry.debug("bind AdsManager event listeners"),this[ky]=$o.a.group($o.a.bind(this[Dy],e.CONTENT_PAUSE_REQUESTED,Ye.bind(this)),$o.a.bind(this[Dy],e.CONTENT_RESUME_REQUESTED,function(){Ry.debug("onContentResumeRequested()"),this.Oc?(this.complete(),this.S.style.setProperty("visibility","hidden")):(this.Tb(new th("IMA fired the event onContentResumeRequested but an ad was not started")),this.complete(),this.uc("loaded",qr,"IMA fired the event onContentResumeRequested but an ad was not started","IMA"),He.call(this))}.bind(this)),$o.a.bind(this[Dy],e.ALL_ADS_COMPLETED,He.bind(this))),function(){var t=this[wy].AdEvent.Type;return[t.LOADED,t.STARTED,t.CLICK,t.FIRST_QUARTILE,t.MIDPOINT,t.THIRD_QUARTILE,t.SKIPPED,t.COMPLETE,t.PAUSED,t.RESUMED,t.VOLUME_CHANGED,t.VOLUME_MUTED,t.EXPANDED_CHANGED,t.USER_CLOSE,this[wy].AdErrorEvent.Type.AD_ERROR]}.call(this).forEach(function(e){return t[Dy].addEventListener(e,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Ry.debug("onAdEvent",t);var e=this[wy].AdEvent.Type,i=t.getAd&&t.getAd(),n=i&&i.getDuration(),r=i&&!!i.isLinear();switch(t.type){case e.LOADED:if(this.setVolume(this.I.getVolume()),e=!!this.L.ns(),r||this.za(Zo.xc),r!==e){Ry.warn("Ignore ad. Expected ".concat(e?"":"non-","linear ad, ")+"but found ".concat(r?"":"non-","linear ad")),He.call(this);break}this.S.style.setProperty("visibility","visible"),this.Gf(),r||(t=t.getAdData(),this[Py]={height:t.height,width:t.width},Ve.call(this));break;case e.STARTED:this.pg(),this.If(),this.setVolume(this.I.getVolume()),r&&(this[Oy]=setInterval(Ke.bind(this,t,n),250));break;case e.PAUSED:this[Oy]&&clearInterval(this[Oy]),this.Rh();break;case e.RESUMED:this[Oy]=setInterval(Ke.bind(this,t,n),250),this.Th();break;case e.CLICK:this.Ph(t.getAd().getClickThroughUrl());break;case e.FIRST_QUARTILE:this.ia("q1");break;case e.MIDPOINT:this.ia("q2");break;case e.THIRD_QUARTILE:this.ia("q3");break;case e.VOLUME_CHANGED:case e.VOLUME_MUTED:this.Jf();break;case e.SKIPPED:case e.COMPLETE:this.yd(n),this[Oy]&&clearInterval(this[Oy]);break;case e.EXPANDED_CHANGED:this.Fj(i.expanded?"expand":"collapse");break;case e.USER_CLOSE:this.Fj(r?"closeLinear":"close");break;case this[wy].AdErrorEvent.Type.AD_ERROR:Fe.call(this,t)}}.bind(t))}),this[Ly]=Ve.bind(this),this.I.addEventListener("AdSystem.Resize",this[Ly]);try{this[Dy].init(this.S.offsetWidth,this.S.offsetHeight,this[wy].ViewMode.NORMAL),_r.A(this[By]),this[Dy].start()}catch(t){}}else this.Tb(new th("Failed to obtain IMA ads manager")),Ry.warn("showAd()","error",this.Qa),this.complete(),this.uc("loaded",Kr,"Failed to obtain IMA ads manager","IMA"),He.call(this)}function Ke(t,e){if(!this.jb()){var i=Math.max(this[Dy].getRemainingTime(),0),n=Math.round(e-i);(t=t.data||{}).timeRemaining=i,t.progressPercent=n/e*100,this.za(Zo.yc,t)}}function qe(t){var e=this[Hy].filter(function(e){return e.yj===t})[0];return(e=e&&e.ys)||(e=$o.a.empty(),this[Hy].push({ys:e,yj:t})),e}function We(t){ze.call(this,t),qe.call(this,t).link($o.a.bind(t,Zo.Na,function(t){var e=this,i=this[Yy].indexOf(t),n=t.ba();Fy.debug("Winner shim is ".concat(n?n.getName():"undefined",". Killing others.")),(n=this[Yy].concat()).splice(i,1),n.forEach(function(t){ze.call(e,t),t.stop()}),this[Yy]=[t]}.bind(this,t)),$o.a.bind(t,Zo.Db,this.lu.bind(this,t))),t.yb()}function ze(t){qe.call(this,t).Z(),this[Hy]=this[Hy].filter(function(e){return e.yj!==t})}function Xe(t){ze.call(this,t),-1!==(t=this[Yy].indexOf(t))&&this[Yy].splice(t,1)}function Qe(){return this[cv].every(function(t){return t.Ie()})}function Je(t,e){this[lv]!==rv.LOADED&&this[lv]!==rv.od&&(this[lv]=rv.LOADED,function(){var t=this,e=this[uv];this[uv]=[],e.forEach(function(e){nv.debug("Execute deferred function:",e),e.call(t)})}.call(this),t&&t(e.data))}function Ze(t,e){$o.a.qa(t,Zo.ob,Je.bind(this,e)),t.hl($o.a.bind(t,Zo.ob,function(t,e){nv.debug("adapterReady",t),this[cv][0]&&(this[lv]===rv.od&&(this[cv][0].vg()&&(nv.debug("run the most priority adapter",t),$e.call(this)),-1===this[hv]&&$e.call(this)),this[ov].dispatchEvent(Zo.ob,e))}.bind(this,t)),$o.a.bind(t,Zo.Db,function(t){var e=t.Ra;nv.debug("adapterComplete","configEntry",e,"event",t);var i=t.pp,n=i===this[fv];if(n&&(this[fv]=null),i.Ie()){var r=t.data&&t.data.Uf,o=t.data&&t.data.error&&t.data.error.pa;nv.debug("adapterFailed",e,i,n),this[av].Um(e),Qe.call(this)?ei.call(this,"all ads are failed",r,o,e):this[lv]===rv.od&&n&&(nv.info("Engine completed with error."),ti.call(this)?(nv.info("Trying next engine..."),$e.call(this)):this.dispatchEvent(new Jo(Jo.df,{error:"no alive adapters left"})))}else ti.call(this)?this[lv]=rv.LOADED:(this[lv]=rv.Fb,this.reset()),this.dispatchEvent(new Jo(Jo.df));this[ov].dispatchEvent(Zo.Db,t)}.bind(this)))}function $e(){if(!this[fv])for(var t=0;t<this[cv].length;t++){var e=this[cv][t];if(e.vg()){t=e,nv.debug("runReadyEngineAdapter",t),this[fv]=t,this[ov].dispatchEvent(Zo.Ve,t),t.yb();break}}}function ti(){return this[cv].some(function(t){return t.qs()||t.vg()})}function ei(t,e,i,n){nv.debug("finish",t),this.stop(),this.dispatchEvent(new Jo(Jo.df,{Ra:n,Uf:e,error:t,pa:i}))}function ii(t){t=new t(this[ov]),this[_v][t.getType()]=t}function ni(){var t=this;this[bv].addEventListener(Ga.LOADING,si.bind(this)),this[bv].addEventListener(Ga.LOADED,ai.bind(this,"LOADED")),this[bv].addEventListener(Ga.zc,ai.bind(this,"FAILED")),this[bv].addEventListener(Zo.Ve,ui.bind(this)),this[bv].addEventListener(Zo.Na,oi.bind(this)),this[bv].addEventListener(Zo.xc,function(){oi.call(this),ri.call(this)}.bind(this)),this[bv].addEventListener(Zo.Sg,function(e){t[vv]||si.call(t),t[gv]&&!t[gv].end&&ui.call(t),t[gv]={ads:[],duration:null,end:null,label:"aegGroup",start:+new Date},t[vv].adGroups.push(t[gv]),function(t){var e=this;t.forEach(function(t){var i=function(t){t=t.ba();var e="",i="",n="",r="",o="",s="";return t&&(e=t.getAcid(),i=t.getType(),n=t.getVendor(),r=t.getName(),s=t.getRuleId(),o=t.getAsid()),i={adChain:[],adMediaFiles:[],duration:null,end:null,name:r,start:+new Date,type:i,vendor:n},s&&(i.rid=s),e&&(i.acid=e),o&&(i.asid=o),this[Ev].push({ad:i,ni:t}),this[gv].ads.push(i),i}.call(e,t);t.addEventListener(Zo.ob,function(){i.end=+new Date,i.duration=i.end-i.start}),t.addEventListener(Zo.Db,function(){i.complete=+new Date})})}.call(t,e)}),this[bv].addEventListener(Eh,function(e){e=e.data;var i=li.call(t,e.ad);i&&i.adChain.push({duration:null,end:null,start:+new Date,url:e.url})}),this[bv].addEventListener(Sh,function(e){e=e.data,$o.a.qa(e.ad,ks.Da,function(t,e){var i=li.call(this,t.ni);if(i){var n,r=i.adChain;if(0<r.length)e=e.data.error.code===eo.code&&e.data.Kb?e.data.Kb:"".concat(e.data.error.description," ").concat(e.data.Kb),t.vc?r.forEach(function(e){e.url===t.vc&&(n=e)}):n=r[r.length-1],n.error=e,0<(i=i.adMediaFiles).length&&(i[i.length-1].error=e)}}.bind(t,e))}),this[bv].addEventListener(bh,function(e){(e=(e=li.call(t,e.data.ad))&&e.adChain||[]).length&&((e=e[e.length-1]).end=+new Date,e.duration=e.end-e.start)}),this[bv].addEventListener("VASTAdLoading",function(e){e=e.data;var i=li.call(t,e.ad);i&&(t[Sv]={duration:null,end:null,start:+new Date,url:e.url},i.adMediaFiles.push(t[Sv]))})}function ri(){var t=new Date;this[Av].contentWindow.postMessage(JSON.stringify({data:this[yv],$v:t,key:"ad-time-".concat(t.getTime()),method:"set",status:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"SUCCESS"}),"*")}function oi(t){this[yv].adStartTime||(this[yv].startAdTime=+new Date,this[yv].adStartTime=this[yv].startAdTime-this[yv].initTime,ui.call(this),t&&t.data&&(t=li.call(this,t.data.ad))&&t.adMediaFiles.length&&((t=t.adMediaFiles[t.adMediaFiles.length-1]).end=this[yv].startAdTime?this[yv].startAdTime:+new Date,t.duration=t.end-t.start))}function si(t){var e=t&&t.data||{};return this[vv]&&!this[vv].adServerResponse&&ai.call(this,"FAILED",t),this[vv]={adGroups:[],adStrategy:e.Bd,duration:null,end:null,label:"adServerRequest",requestUrl:null,start:+new Date,type:e.type},this[yv].adServerRequests.push(this[vv]),this[vv]}function ai(t,e){this[vv]||si.call(this);var i=this[vv];if(!(i.end&&i.status||(i.end=+new Date,i.duration=i.end-i.start,i.requestUrl=e&&e.data&&e.data.zx||null,i.status=t,"FAILED"!==t))){var n="Failed ad server response";e&&e.data&&e.data.error&&e.data.error.Xb&&(n="Ad server response timeout: ".concat(e.data.error.request.timeout,"ms")),i.error=n,ri.call(this,t)}}function ui(){this[gv]&&(this[gv].end=+new Date,this[gv].duration=this[gv].end-this[gv].start)}function li(t){var e=this[Ev].filter(function(e){return e.ni===t}).slice(-1);return(e=vd()(e,1)[0])&&e.ad||null}function ci(t){var e=this[wv].oa(T_);return e.xj(new mu("default",t)),e}function di(){return this[Nv].isMuted()?2:1}function hi(){var t=this[Uv].na();return 0>t?3:50>t?2:1}function pi(){return this[xv].Pi()}function fi(){return this[xv].Ai()}function _i(){return this[Vv].inView100.De()}function mi(){return this[Vv].inView50.De()}function yi(){return this[Vv].inView50Continuous.De()}function vi(){var t=1e3*this[Nv].getDuration()||3e4;return this[Vv].inView50Continuous.De()>Math.min(t/2,15e3)}function gi(){return Rt()&&Lt()}function Ei(){return encodeURIComponent(this[jv].er())}function bi(){return this[kv].Nm()}function Si(){var t=this[Bv].Hn;return t&&!Object(_r.p)(t)||!1}function Ai(){this[Gv].style&&(this[Gv].style.visibility="visible",this[Gv].style.display="block")}function Ti(t,e){Jv[e].call(this),t()}function Ii(){return 1}function Ci(){return Date.now()}function Ri(){var t=(new Date).getTime(),e=document.createElement("template"),i=document.createElement("details"),n=document.createElement("img");return(new rg).append(this[dg].wl&&this[dg].wl.hy).append(document.documentMode).append(document.fonts&&document.fonts.ready).append(1&t).append(this[dg].ActiveXObject).append(this[dg].wl).append(this[pg].serviceWorker).append(this[dg].opera).append(this[dg].sidebar).append(!1).append(2&t).append(!this[dg].ActiveXObject).append(ji.call(this,"-ms-ime-align")).append(ji.call(this,"-ms-scroll-limit")).append(Vi.call(this,"-webkit-font-feature-settings")).append(4&t).append(this[dg].ActiveXObject).append(ji.call(this,"-moz-appearance")||ji.call(this,"mozAppearance")).append(this[dg].Bv).append(this[dg].Rv).append(Object.prototype.hasOwnProperty.call(e,"content")).append(this[dg].performance&&Object.prototype.hasOwnProperty.call(this[dg].performance,"getEntriesByType")).append(8&t).append(Vi.call(this,"image-rendering")).append(Vi.call(this,"object-fit")).append(Object.prototype.hasOwnProperty.call(i,"open")).append(this[dg].screen&&Object.prototype.hasOwnProperty.call(this[dg].screen,"orientation")).append(this[dg].performance).append(Vi.call(this,"shape-image-threshold")).append(this[ug][0]).append(Object.prototype.hasOwnProperty.call(n,"srcset")).append(this[lg]).Mi()}function Li(){var t=(new Date).getTime(),e=og.a.Fp();return(new rg).append(this[cg]).append(32&t).append(this[ug][1]).append(this[ug][2]).append(og.a.Np()).append(og.a.Mp()).append(og.a.Hp()).append(64&t).append(e||Object(_r.t)(this[pg].vibrate)?1:0).append(e).append(this[ug][3]).append(og.a.Kp()).append(Fi.call(this,"image-rendering","pixelated")).append(Object(_r.t)(document.elementsFromPoint)).append(Fi.call(this,"object-fit","inherit")).append(Fi.call(this,"shape-image-threshold",.9)).append(Fi.call(this,"word-break","keep-all")).append(og.a.Jp()).append(this[_g]&&Object(_r.t)(this[hg].supports)).append(this[dg].Intl&&Object(_r.t)(this[dg].Intl.Collator)).append(Object(_r.t)(document.createElement("dialog").show)).append(256&t).append(this[ug][4]).append(this[ug][5]).append(document.documentElement&&Object(_r.t)(document.documentElement.webkitRequestFullScreen)).append(Object(_r.t)(this[pg].getBattery)).append(this[pg].permissions&&Object(_r.t)(this[pg].permissions.query)).append(this[dg].AudioContext&&Object(_r.t)((new this[dg].AudioContext).createBuffer)).append(this[ug][6]).append(this[dg].webkitRequestAnimationFrame&&Object(_r.t)(this[dg].webkitRequestAnimationFrame)).append(this[dg].BroadcastChannel&&Object(_r.t)(this[dg].BroadcastChannel.call)).Mi()}function Pi(){var t=(new Date).getTime();return(new rg).append(Object(_r.t)(this[dg].FontFace)).append(Object(_r.t)(this[dg].Gamepad)).append(1024&t).append(Object(_r.t)(this[dg].MutationEvent)).append(Object(_r.t)(this[dg].MutationObserver)).append(this[dg].crypto&&Object(_r.t)(this[dg].crypto.getRandomValues)).append(Object(_r.t)(document.body.createShadowRoot)).append(Object(_r.t)(document.body.webkitCreateShadowRoot)).append(Object(_r.t)(this[dg].fetch)).append(Object(_r.t)(this[dg].createImageBitmap)).append(this[pg].serviceWorker&&Object(_r.t)(this[pg].serviceWorker.register)).append(Object(_r.t)(this[pg].webkitGetGamepads)).append(this[dg].speechSynthesis&&Object(_r.t)(this[dg].speechSynthesis.speak)).append(Object(_r.t)(this[dg].webkitRTCPeerConnection)).append(Fi.call(this,"--fake-var",0)).append(4096&t).append(Fi.call(this,"cursor","grab")).append(Fi.call(this,"cursor","zoom-in")).append(Fi.call(this,"image-orientation","270deg")).append(Object(_r.t)(this[dg].Proxy)).append(Fi.call(this,"position","sticky")).append(void 0===document.createElement("style").Dx).append(this[fg]&&this[fg].getEntriesByType&&this[fg].getEntriesByType("resource")instanceof Array).append(void 0===this[dg].hv).append(og.a.Gp()).append("boolean"==typeof this[pg].onLine).append(16384&t).append(void 0===this[pg].gy).append(this[fg]&&this[fg].now&&"number"==typeof this[fg].now()).append(og.a.Lp()).append(og.a.Dp()).append(og.a.Ip()).Mi()}function Oi(){return this[ug][7]}function Di(){return(new Date).getTimezoneOffset()}function Mi(){return"".concat(this[dg].innerWidth||document.documentElement.clientWidth||document.body.clientWidth,"x").concat(this[dg].innerHeight||document.documentElement.clientHeight||document.body.clientHeight)}function wi(){return"".concat(this[dg].outerWidth||document&&document.body&&document.body.offsetWidth,"x").concat(this[dg].outerHeight||document&&document.body&&document.body.offsetHeight)}function Ni(){return"".concat(this[dg].screen.availWidth,"x").concat(this[dg].screen.availHeight)}function ki(){return"".concat(this[dg].screen.width,"x").concat(this[dg].screen.height)}function Bi(){return og.a.btoa(this[pg].userAgent)}function xi(){return og.a.btoa(this[pg].platform)}function Ui(){return og.a.btoa(this[pg].vendor)}function Vi(t){return this[mg]&&Object.prototype.hasOwnProperty.call(this[mg],t)}function ji(t){return this[yg]&&Object.prototype.hasOwnProperty.call(this[yg],t)}function Fi(t,e){return this[_g]&&this[hg].supports(t,e)}function Hi(t){for(var e=arguments.length,i=Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(e={data:1===i.length?i[0]:i,type:t},this.$b.contentWindow)try{this.$b.contentWindow.postMessage(e,this[Eg])}catch(t){Ag.error("Unable to send message",e,t)}}function Yi(t){t.origin===this[Eg]&&t.data.location===this.$b.src?(t.preventDefault(),"ready"===t.data.type?(this.uf.resolve({data:t.data.data,Rn:this}),function(){var t=this;this.subscribe(function(e){t[Sg]=e.data},"statechange")}.call(this)):"error"===t.data.type?this.bd(t.data.data):(t.data.data.property&&(this[Sg][t.data.data.property]=t.data.data.value),this[bg][t.data.type]&&this[bg][t.data.type].forEach(function(e){return e.listener(t.data)}))):Ag.debug("Ignore message from ".concat(t.origin))}function Gi(t,e,i){return i?"".concat(e,"dev/").concat("ad-client","/js/").concat(i,"/"):"".concat(t).concat("ad-client","/js/").concat("10.0.0","/")}function Ki(t,e,i){return i=[[Yl,this[Og].rq()],[Ou,i],[Gu,this[Mg].ui().join(",")]],t=t||e&&e.getUrl(i),t=this[Og].Pb().resolve(t,i),t=Or.a.ci(t),mr.a.qj(t,"#",encodeURIComponent("#"))}function qi(){return(qi=Fs()(Vs.a.mark(function t(e,i,n){var r,o;return Vs.a.Oj(function(t){for(;;)switch(t.Ua=t.next){case 0:return Pg.debug("Loading Vast ".concat(i)),r=n&&!e?n.Be(i):this[Ng],t.Ua=2,t.next=5,A(i,null,{timeout:r,withCredentials:!0});case 5:return o=t.zn,t.Ef("return",o);case 9:if(t.Ua=9,t.Kn=t.catch(2),!n||!n.Lm()||e){t.next=13;break}return t.Ef("return",fr.a.reject(t.Kn));case 13:return t.Ef("return",A(i,null,{timeout:r}));case 14:case"end":return t.stop()}},t,this,[[2,9]])}))).apply(this,arguments)}function Wi(t){var e=this;return gE.debug("prepareAdConfig",t),t.filter(function(t){return t.Cl(e[lE])}).map(function(t){return t.prepare(e.Pb(),e[lE])})}function zi(t,e,i){gE.debug("resumePlayer",this[lE],this[zg]),clearTimeout(this[Vg]),this[Kg]=0,this[Wg].reset(),this[Jg].Z(),this[Gg]=this[Yg].Ib,I(this[lE])&&(t={adPodsPlayed:this[qg],engineErrors:e,reason:t,vastError:i},this[zg]?(this.dispatchEvent(new Zo(Zo.xc,this[lE],t)),this[zg]=!1):this.dispatchEvent(new Zo(Zo.Tj,this[lE],t)))}function Xi(){var t=this[jg].ze(this[lE]);t=Wi.call(this,t),this[iE]=t,gE.debug("onAdEntriesReceived",t),0<t.length?this[Wg].os()?this.Lg():(this[Wg].reset(),this[Wg].load(t,this.Lg.bind(this))):zi.call(this)}function Qi(t,e,i){gE.debug("runNextOrResume"),"Overlay"!==this[lE]&&0<this[Gg]&&this.Xi()&&this[$g]?(t=this[jg].ze(this[lE]),gE.debug("runWaterfall",t),t.length?Xi.call(this,{entries:t}):(this[$g]=!1,$o.a.group($o.a.qa(this[Qg],Ga.zc,Xi.bind(this)),$o.a.qa(this[Qg],Ga.LOADED,Xi.bind(this))),this[jg].qn(this[lE]))):(this[sE]&&this[sE](t?{Uf:e,error:t,pa:i}:void 0),zi.call(this,t,e,i))}function Ji(t){if(gE.debug("runnerCompleteHandler",t),this[eE])zi.call(this,"STOPPED_BY_TIMER");else if(t&&t.data&&t.data.error){var e=t.data.error,i=t.data.Uf,n=t.data.pa;t=t.data.Ra;var r=!0;this[Xg].fm().disableFailoverOnDlvFailure&&(r=0===this[Kg]);var o,s=this[jg].ze(this[lE]);if(this[iE]=Wi.call(this,s),this[Wg].reset(),gE.warn("on ad group failed:",e,this[iE]),this[iE].length&&this.Xi()&&!this[Xg].Od()&&r)gE.info("fallback to next adGroup",this[iE]),this[sE]?o=this[sE]:this[Xg].Pd()||(o=this[Wg].yb.bind(this[Wg])),this.dispatchEvent(new Zo(Zo.Rj,null,{Ra:t,pa:n})),this[Wg].load(this[iE],o);else this.dispatchEvent(new Zo(Zo.Zj,null,{Ra:t,pa:n})),Qi.call(this,"AD_GROUP_FAILED",i,n)}else this[$g]=!0,--this[Gg],Qi.call(this)}function Zi(t,e){var i=this[jg].ze(this[lE]);gE.debug("onAdsLoaded",i),this[dE]=e.Fr();var n=e.wr();n&&(this[Yg].Ib=n,this[Gg]=this[Yg].Ib),this[Fg]=0,this[qg]=0,this[mE]=0,this[iE]=Wi.call(this,i||[]),this[nE]&&this[nE].pause(),n=i[0]&&i[0].Ik,i=i[0]&&i[0].lc(),n&&this[Xg].bu(n),i&&this[Xg].hu(i),t&&t({zd:e.data.zd,entries:this[iE],Cg:e.data.Cg,Xx:this[dE],pa:e.data.pa})}function $i(){this[SE]=!1,this[AE]=this[IE].shift(),this[AE]?(this[SE]=!0,this[AE]()):(this[TE].forEach(function(t){return t()}),this[TE]=[])}function tn(t,e){var i={};Object(_r.g)(this.J.getParameters(),i),Object(_r.g)(e,i),t+=i?"?".concat(Object(_r.C)(i)):"",this.gc(t)}function en(t,e){return t=t.data||{},this.ra({at:(t.type||"Preroll").toLowerCase()},{acid:t.acid,adIdx:t.sequence||-1,adseq:t.slotAdSeq,aen:t.name,asid:t.asid,device:this.J.km(),itg:this.ca.Ci(),pbl:t.isPayable,pc:t.profitCenter,poid:t.podId,ps:Object(_r.n)(!1),rcid:t.ruleCompanyId,region:this.J.ym(),rid:t.ruleId,scope:t.isHouseAd?"ha":null,seq:this.ca.cb()?this.ca.cb().sequence:-1,sfbid:t.bookingId,sfliid:t.lineItemId,site:this.J.zm(),spaceid:this[wE].lc(),txid:t.transactionId,usid:t.usid,v:t.vendor,vid:this.ca.xi(),w:t&&t.Rf},e)}function nn(t,e){var i=t.data;if(t=t.data.Xm){var n=t.xb;n=n&&n[0]&&n[0].mimeType||t.mimeType,t=t.Ja?"".concat(t.Ja," ").concat(n):n}else t=void 0;return this.ra({crt:t||"",curl:i.url||"",stg:i.Hf},{aid:i.Ff,al:i.lp,crl:i.kq,dt:i.Kb,et:i.gq,st:i.fq},e)}function rn(){return Object(_r.C)({bcid:this[lb].bg(),pid:this[lb].kg()})}function on(t,e){"function"==typeof this[yb].setAttribute&&this[yb].setAttribute(t,e)}function sn(){this.dispatchEvent("VideoProgressEvent",{buffered:this[yb].buffered,duration:this.getDuration(),waiting:3>this[yb].readyState})}function an(){this.dispatchEvent("VideoLoadEvent")}function un(){var t={duration:this.getDuration()},e=this[Eb]===fb.PAUSED,i=this[Eb]===fb.LOADING;this[Eb]=fb.PLAYING,e?this.dispatchEvent("VideoResumeEvent",t):(i&&this.dispatchEvent("VideoStartEvent",t),this.dispatchEvent("VideoPlayEvent",t))}function ln(){this.dispatchEvent("VideoTimeUpdateEvent",{buffered:this.Iq(),currentTime:this.getCurrentTime(),duration:this.getDuration(),durationWithoutAds:0})}function cn(){this[yb].paused&&!this[yb].ended&&(this[Eb]=fb.PAUSED,this.dispatchEvent("VideoPauseEvent"))}function dn(){this.dispatchEvent("VideoWaiting")}function hn(t){this[Eb]!==fb.IDLE&&(this[Eb]=fb.IDLE,this.dispatchEvent("VideoEndEvent",{complete:"ended"===t.type,currentTime:this.getCurrentTime()}))}function pn(t){this[Ib]&&this[Cb]<this[Ib].length-1?(this[Cb]++,t=this[Ib][this[Cb]],on.call(this,"src",t),this.dispatchEvent("VideoFallbackEvent",{url:t})):(t=(t=(t=t&&t.data&&t.data.code)||this[yb].error&&this[yb].error.code)||null,this.dispatchEvent("VideoErrorEvent",{code:t,message:"Can't play video ".concat(this[yb].currentSrc,": ").concat(t)}))}function fn(){this.isMuted()||0===this[yb].volume||(this[Ab]=this[yb].volume),this.dispatchEvent("VideoVolumeChangedEvent",{muted:this.isMuted(),volume:this.getVolume()})}function _n(){this.dispatchEvent("VideoClickEvent")}function mn(){Object(_r.r)(this[yb])&&(fn.call(this),function(){var t=this;this[Sb]&&clearTimeout(this[Sb]),this[bb].removeEventListener("volumechange",fn,this),this[Sb]=setTimeout(function(){t[Sb]=null,t[bb].addEventListener("volumechange",fn,t)},100)}.call(this))}function yn(t,e){this[Tb]=!1,this[yb]=e,this[bb]&&(this[bb].un(),delete this[bb]),this[bb]=new pb(this[yb]),this.setVolume(this[Ab]),this[bb].addEventListener("loadstart",an,this),this[bb].addEventListener("progress",sn,this),this[bb].addEventListener("timeupdate",ln,this),this[bb].addEventListener("pause",cn,this),this[bb].addEventListener("waiting",dn,this),this[bb].addEventListener("ended",hn,this),this[bb].addEventListener("abort",hn,this),this[bb].addEventListener("error",pn,this),this[bb].addEventListener("volumechange",fn,this),this[bb].addEventListener("click",_n,this),this[bb].addEventListener("playing",un,this),on.call(this,"src",t);try{this[yb].load()}catch(t){}return this[Eb]=fb.LOADING,!1}function vn(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0;this[Vb]=t.slot,t.slots&&(this[jb]=t.slots),this[Hb]=t.txid,this[Yb]=t.adxResult,this[Gb]=t.usid,this[Jb]=e&&(this[Zb][this[Kb]]||t.aeg&&t.aeg[0]&&t.aeg[0][0])}function gn(t,e){$o.a.qa(this[Wb],t,bn.bind(this,e,!1)).link(this[qb])}function En(t){this[jb]=null,this[Zb]=[],this[Qb]=t.Mr(),this[Kb]=t.ag(),this[Fb]=t.Uq(),vn.call(this,t.data&&t.data.source||{}),this[Vb]&&(this[qb]&&this[qb].Z(),this[qb]=$o.a.empty(),"LOOKAHEAD"===this[Yb]&&gn.call(this,Zo.Xg,"UAX_SKIP"),this[Xb].Pd()&&"Preroll"===this[Kb]||gn.call(this,Zo.xc,this[Vb]),gn.call(this,Zo.Yg,this[Vb])),function(){if("2"===this[Qb]){var t,e;this[jb]&&this[jb].forEach(function(i){"Preroll"===i.type&&(t=!0),"Bumper"===i.type&&(e=!0)}),e||this[jb].push({type:"Bumper"}),t||this[jb].push({type:"Preroll"})}}.call(this)}function bn(t,e){this[Wb].dispatchEvent(new Jo("Reporting.Ad.Slot.Opportunity",{Xh:this[Yb],Il:this[Jb],Rf:this[zb].offsetWidth,Zr:e,slot:t,transactionId:this[Hb],type:this[Kb],usid:this[Gb]})),this[Vb]=void 0,this[Hb]=void 0,this[Yb]=void 0,this[Gb]=void 0}function Sn(t){var e=this.ca.cb();t={action:t,seq:e?e.Va:"",vid:this.ca.xi()};var i=!(!e||"youtube"!==e.ey)&&this.ca.ba();return t.asid=i?i.getAsid():e?e.metadata&&e.metadata.asid:"",t.acid=i?i.getAcid():e?e.metadata&&e.metadata.acid:"",t.rid=i?i.getRuleId():"",t.vid=i?i.getVideoId():t.vid,t}function An(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=(new Date).getTime()-this.J.cr(),n=this.J.Ji(),r=this.ca.Ci();6e4<i&&(this.uh.ld("player load time failure","outliers",{edt:i}),i=null),this.ka("display.gif",{ab:+e,csid:n&&n.playerTemplate&&n.playerTemplate.csid||null,dt:i,h:t.height,itg:r,sact:this.J.Jd(),spaceid:this[iS].lc(),w:t.width})}function Tn(t,e){this.Cp(t),this.Ou(t,e),this.Ue(t),this.ij(t)}function In(t,e,i){e=t+(e?e.id:""),-1===this.Lh.indexOf(e)&&(this.ka(t,i),this.Lh.push(e))}function Cn(){this.dc.zu({nj:this.qd},this.Bf),this.sf&&this.sf.dispatchEvent("trackDecile")}function Rn(){var t={nj:this.rd};this.dc.Gj(t,this.Bf),this.sf&&this.sf.dispatchEvent("trackQuartile",t)}function Ln(){this[yS]&&(yr.a.clearTimeout(this[yS]),delete this[yS])}function Pn(t,e){this[SS]===t?this[bS]=e:e.destroy()}function On(){var t=this.J.si();t=t?Object(_r.g)(t):{};var e=this.J.Xf(),i=this.ca.Zc(),n=this.J.dg();return e&&(t.APID=e.dy),t.width=i.width,t.height=i.height,t["p.vw.active"]=this.Nc.wb()?1:0,t["p.vw.viewable"]=this.Nc.Ce(),t["p.vw.viewableOpportunity"]=this.Nc.na(),t.moatViewableOpportunity=this.Nc.na(),t.adapViewableOpportunity=this.Nc.na(),t.r=pr.a.tb(window),t.ps="html5-vpaid",t.plseq=this.ca.jm()+1,t.sid=this.J.Bi(),t.vvuid=this.J.sm().vvuid,t.lookahead=!0,n&&(t.euconsent=n.euconsent,t.gdpr=n.gdpr,t.isOathFirstParty=n.isOathFirstParty),t}function Dn(t,e){"function"==typeof t.setAttribute&&t.setAttribute(e,"")}function Mn(t){"function"==typeof t.getAttribute&&t.getAttribute("playsinline")||Dn(t,"playsinline"),"function"==typeof t.getAttribute&&t.getAttribute("webkit-playsinline")||Dn(t,"webkit-playsinline")}function wn(t){return t&&t.aeg&&t.aeg[0]&&t.aeg[0][0]&&"GEMINI"===t.aeg[0][0].getAdEngineType()}function Nn(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=[];return t.slots&&t.slots.forEach(function(t){t.hasAds&&e.push({adBreakItemId:l(),adPluginMimeType:"adplugin/vrm",customInfo:{hasGemini:wn(t),slot:t},duration:30,instream:!1,source:{streams:[{url:"dummy.mp4"}]},type:"Bumper"===t.type?"bumper":"ad"})}),e}function kn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Bn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?kn(i,!0).forEach(function(e){rs()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):kn(i).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function xn(t){return!(t=t&&t.kb&&t.kb[0])||"vpaid"!==t.Ja&&"application/javascript"!==t.mimeType?2:4}function Un(t){switch(t&&t.aa&&t.aa[0]&&t.aa[0].kb&&t.aa[0].kb[0]&&t.aa[0].kb[0].mimeType){case"application/javascript":return"vp-js";case"video/mp4":return"mp4";case"application/x-shockwave-flash":return"vp-swf";case"video/webm":return"webm"}}function Vn(t){t=t.data,this[kA].Ij(t);var e=t&&t.cc&&t.cc.ads&&t.cc.ads[0],i=e&&e.aa&&e.aa[0];this[HA].dispatchEvent(lA,this[kA].ma({crid:i&&i.id,evt:"ad_req",mtype:Un(e),plcid:e&&e.Ba||"",r_type:xn(i),url:t&&t.getUrl()}))}function jn(t){var e=this,i=t.data,n=t.data.Cm.response||t.data.Cm;(function(t,e,i,n){return this[BA].sa().then(function(r){return n?fo.P:i&&i.P?i.P:200<=t.status&&299>=t.status&&t.Wb&&t.text&&""!==t.text?e?2:1:r?kr.P:500<=t.status&&599>=t.status?Ur.P:t.text&&""!==t.text?200>t.status||299<t.status||i||!t.Wb?Gr.P:void 0:jr.P})}).call(this,n,i.ad,i.pa,i.stopped).then(function(t){var r=i.ad;e[HA].dispatchEvent(lA,e[kA].ma({crid:i.ad&&i.ad.aa&&i.ad.aa[0]&&i.ad.aa[0].id,evt:"ad_req",mtype:Un(i.ad),plcid:i.ad&&i.ad.Ba||"",r_code:t,r_type:399<n.status||!n.Wb||!n.text||""===n.text?106:xn(r&&r.aa&&r.aa[0]),url:i.vc}))})}function Fn(t){this[kA].ta({pos_loc:"slot-opp"}),t.data.type&&this[kA].ta({dlvretry:0,pos:t.data.type.toLowerCase()}),t.data.Il&&this[kA].Pg(t.data.Il),this[HA].dispatchEvent(lA,this[kA].ma({evt:"ad_oppty",taken:"AVAIL"!==t.data.slot||t.data.Zr?2:1}))}function Hn(){this[PA].dispatchEvent(cA,this[RA].getTimeLog())}function Yn(t){this[LA]=!1,this[FA]=setTimeout(Xn.bind(this),2e3),Hn.call(this),this[kA].ta({mtype:t&&t.data&&t.data.mimeType}),"application/javascript"===t.data.mimeType&&this[HA].dispatchEvent(lA,this[kA].ma({evt:"ad_beg"})),this[DA]=!0,this[MA]=this[RA].isMuted(),this[wA]=0}function Gn(t){"Overlay"===t.data.ne&&"close"===t.data.action&&this[PA].dispatchEvent(pA,this[kA].ma(t.data))}function Kn(t){var e=this;t.data.raw.forEach(function(t){var i=Object.keys(t.xe)[0];e[PA].dispatchEvent(uA,{track:Bn({},t,{format:i,language:t.lang,url:t.xe[i]})})})}function qn(t){this[kA].$h(),this[kA].ta({sx:t.data&&t.data.Ba||""}),this[HA].dispatchEvent(lA,this[kA].ma({adseq:this[kA].Xc("adseq"),at:this[kA].Xc("at"),evt:"ad_dlv",initlatency:this[YA].fg(),latency:this[YA].$f(),loadlatency:this[YA].gg(),ms_lat:this[YA].hg()})),this.Fd=!1}function Wn(t){(t.data.muted&&!1===this[MA]||!1===t.data.muted&&this[MA])&&this[PA].dispatchEvent(QS,this[kA].ma({muteState:t.data.muted?"muted":"unmuted"})),this[MA]=t.data.muted}function zn(t){var e=t&&t.data&&t.data.currentTime||this[RA].getCurrentTime()||0;this[PA].dispatchEvent(nA,e,this[kA].ma(t.data)),this[NA]=e,2<=e&&Xn.call(this)}function Xn(){this[LA]||(this[HA].dispatchEvent(lA,this[kA].ma({dur:2,dur_d:Qn.call(this,2),evt:"ad_view"})),this[LA]=!0)}function Qn(t){var e=t-this[wA];return this[wA]=t,e}function Jn(t){var e=this,i=t.data.vastError;if(this[DA]&&!i)this[DA]=!1,this[PA].dispatchEvent(ZS,this[kA].ma()),clearTimeout(this[FA]);else{Hn.call(this);var n=this[kA].ma({evt:"ad_err",initlatency:this[YA].fg(),latency:this[YA].$f(),loadlatency:this[YA].gg(),ms_lat:this[YA].hg(),plcid:i&&i.Ba||""});this[BA].sa().then(function(t){(t=t?kr.P:i&&i.P)||(t=e[UA]?co.P:oo.P),n.a_dlv_err=t,e[PA].dispatchEvent(tA,n),e[jA]&&(e[jA]=!1,e[HA].dispatchEvent(lA,n))})}this.Fd=!1}function Zn(t){var e=Math.floor(this[RA].getCurrentTime()||this[NA]);if("finished"===t.data.adStage)this[HA].dispatchEvent(lA,this[kA].ma({dur:e,dur_d:Qn.call(this,e),evt:"ad_comp"}));else{var i=25;switch(t.data.adStage){case"q2":i=50;break;case"q3":i=75}this[HA].dispatchEvent(lA,this[kA].ma({dur:e,dur_d:Qn.call(this,e),evt:"ad_prog",q:i}))}}function $n(t){var e="ad",i="",n="",r="",o=0,s="";if(t.data.adModel?(s=t.data.adModel.Ba||"",t.data.adModel.aa instanceof Array&&t.data.adModel.aa.forEach(function(t){t.kb instanceof Array&&t.kb.forEach(function(t){t.Ja&&"vpaid"===t.Ja.toLowerCase()&&(e="vpaid"),s||(s=t.Ba||"")})}),t.data.adModel.I&&(i=t.data.adModel.I.name||"")):e="no-ad",t.data.params&&t.data.params.urls){var a=t.data.params.urls;n=Or.a.Id(a[0]||""),1<a.length&&(r=Or.a.Id(a[1]||""),o=a.length-1)}this[kA].ta({ad_sys:i}),this[kA].Fu(t.data.adModel&&t.data.adModel.aa||[]),i={adid:t.data.adModel?t.data.adModel.id:"",adl:t.data.latency,crid:t.data.adModel&&t.data.adModel.Gl||"",dlvretry:this[RA].em()?1:0,evt:"ad_call",f_call:n,f_hop:r,n_hop:o,plcid:s,r_code:2,r_type:e,tmout:t.data.ad&&t.data.ad.zi(),v_cr_id:t.data.adModel&&t.data.adModel.Kj||"",vptm:Math.min(t.data.ad&&t.data.ad.xf||2147483647,this[xA].Bj)},this[jA]=!0,this[kA].Ij(t.Ra),this[kA].Pg(t.Ra),this[HA].dispatchEvent(lA,this[kA].ma(i)),this[UA]=!1,this.Fd=!0}function tr(t){nr.call(this,!1,t.data.pa,t.data.Ra)}function er(t){nr.call(this,!0,t.data.pa,t.data.Ra),this[kA].tt(),this[kA].ta({adseq:this[kA].Xc("adseq")+1,dlvretry:this[RA].em()?1:0}),this.Fd=!1}function ir(t){this[UA]=!1,this[kA].$h(),t.data.cq&&(t={a_dlv_err:(t=t.data.pa)&&t.P||eo.P,adseq:this[kA].Xc("adseq"),at:this[kA].Xc("at"),evt:"ad_dlvf",initlatency:this[YA].fg(),latency:this[YA].$f(),loadlatency:this[YA].gg(),ms_lat:this[YA].hg(),plcid:t&&t.Ba||""},rr.call(this,t,"a_dlv_err")),this.Fd=!1}function nr(t,e,i){this[kA].Ij(i),this.Fd?t&&(this[kA].$h(),t={a_dlv_err:e&&e.P||Hr.P,adseq:this[kA].Xc("adseq"),at:this[kA].Xc("at"),evt:"ad_dlvf",initlatency:this[YA].fg(),latency:this[YA].$f(),loadlatency:this[YA].gg(),ms_lat:this[YA].hg()},rr.call(this,t,"a_dlv_err")):rr.call(this,{adl:e?e.latency:null,evt:t?"ad_callf":"ad_call",r_code:e&&e.P||Gr.P},"r_code"),this.Fd=!1}function rr(t,e){var i=this,n=this[kA].ma(t);this[BA].sa().then(function(t){t&&(n[e]=kr.P),i[HA].dispatchEvent(lA,n)})}function or(t){0<t.length&&(t=t[0].ba(),this[kA].Pg(t),this[VA].Du(t,this[RA].ag()))}function sr(){this[UA]=!1}function ar(t){this[HA].dispatchEvent(lA,this[kA].ma({evt:"ad_init",plcid:t.data&&t.data.Ba||""})),this[UA]=!0}function ur(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function lr(t){var e={initlatency:"vil",latency:function(t){return t.initlatency?"vst":"_lat"},loadlatency:"vsl",mimetype:"mtype"};return Object.keys(t).forEach(function(i){if(e[i]){var n=e[i]instanceof Function?e[i](t):e[i];t[n]=t[i]}}),t}i.r(e);var cr={};i.r(cr),i.d(cr,"ACCEPT_INVITATION",function(){return Hs}),i.d(cr,"CLICK",function(){return Ys}),i.d(cr,"CLOSE",function(){return Gs}),i.d(cr,"COLLAPSE",function(){return Ks}),i.d(cr,"COMPLETE",function(){return qs}),i.d(cr,"CREATIVE_VIEW",function(){return Ws}),i.d(cr,"EXIT_FULLSCREEN",function(){return zs}),i.d(cr,"EXPAND",function(){return Xs}),i.d(cr,"FIRST_QUARTILE",function(){return Qs}),i.d(cr,"FULLSCREEN",function(){return Js}),i.d(cr,"IMPRESSION",function(){return Zs}),i.d(cr,"MIDPOINT",function(){return $s}),i.d(cr,"MUTE",function(){return ta}),i.d(cr,"PAUSE",function(){return ea}),i.d(cr,"PLAYER_COLLAPSE",function(){return ia}),i.d(cr,"PLAYER_EXPAND",function(){return na}),i.d(cr,"PROGRESS",function(){return ra}),i.d(cr,"RESUME",function(){return oa}),i.d(cr,"REWIND",function(){return sa}),i.d(cr,"SKIP",function(){return aa}),i.d(cr,"START",function(){return ua}),i.d(cr,"THIRD_QUARTILE",function(){return la}),i.d(cr,"UNMUTE",function(){return ca});var dr={};i.r(dr),i.d(dr,"SESSION_ERROR",function(){return _a}),i.d(dr,"SESSION_FINISH",function(){return ma}),i.d(dr,"SESSION_START",function(){return ya});var hr={};i.r(hr),i.d(hr,"ITEM_LOADED",function(){return XS}),i.d(hr,"MUTE_CHANGED",function(){return QS}),i.d(hr,"PAUSED",function(){return JS}),i.d(hr,"PLAY_COMPLETE",function(){return ZS}),i.d(hr,"PLAY_REQUESTED",function(){return $S}),i.d(hr,"PLAYBACK_ERROR",function(){return tA}),i.d(hr,"PLAYING",function(){return eA}),i.d(hr,"SKIPPED",function(){return iA}),i.d(hr,"TIME_UPDATE",function(){return nA}),i.d(hr,"VOLUME_CHANGED",function(){return rA}),i.d(hr,"AD_BREAKS_AVAILABLE",function(){return oA}),i.d(hr,"RESOLVE_ERROR",function(){return sA}),i.d(hr,"RESOLVED",function(){return aA}),i.d(hr,"AD_SUBTITLES_FOUND",function(){return uA}),i.d(hr,"METRICS",function(){return lA}),i.d(hr,"DIAGNOSTIC",function(){return cA}),i.d(hr,"NONLINEAR_AD_RENDERED",function(){return dA}),i.d(hr,"NONLINEAR_AD_CLICKED",function(){return hA}),i.d(hr,"NONLINEAR_AD_DISMISSED",function(){return pA}),i(4),i(5);var pr=i(8),fr=i(9),_r=i(1);i(16),i(25),i(6);var mr=i(18),yr=i(89),vr=i(3),gr=new(function(){function t(){this.Ys=[],this.rt=[]}var e=t.prototype;return e.As=function(t){0===vr.a.qm()&&this.Ys.push({ts:+new Date,url:t})},e.Bs=function(t){0===vr.a.qm()&&this.rt.push({ts:+new Date,url:t})},t}()),Er=Symbol(),br=function(){function t(){}var e=t.prototype;return e.check=function(t){return T.call(this,t)},e.reset=function(){this[Er]=null},e.sa=function(){return this[Er]},t}(),Sr=Symbol(),Ar=Symbol(),Tr=function(){function t(t){this[Ar]=t,this[Sr]=t}var e=t.prototype;return e.au=function(t){this[Sr]=t},e.Ob=function(){return this[Ar]},e.tm=function(){return this[Sr]},e.Nq=function(){return{dl:this[Ar],px:this[Sr]}},t}(),Ir=function(t,e,i,n,r){vr.a.K("CompanionSlot").debug("init","width",t,"height",e,"parent",i,"keepCompanion",n,"selectorType",r),this.width=t||0,this.height=e||0,this.parent=i,this.keepCompanion=n||!1,this.selectorType=r||"id"};i(76);var Cr=i(0),Rr=i.n(Cr);i(34),i(65),i(17);var Lr=["Bumper","Midroll","Overlay","Preroll"],Pr=["Bumper","Midroll","Preroll"],Or=i(7),Dr=i(19),Mr=i.n(Dr),wr=function(){function t(t,e){this.message=t||"",this.code=e}return t.prototype.toString=function(){return"Error{message=".concat(this.message,"}")},t}(),Nr=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e}(wr),kr={P:124},Br={P:102,code:301,description:"URI reached a timeout as defined by the video player.",fa:9402},xr={code:205,description:"InLine ad is skipped due to a category violation"},Ur={P:100,description:"Ad entries loading timeout, ajax error or parsing error"},Vr={code:301,description:"Ad has expired"},jr={P:5122,code:100,description:"Empty response",fa:9401},Fr={P:104,code:401,description:"File not found. Unable to find Linear/MediaFile from URI",fa:9521},Hr={P:114,code:400,description:"General    Linear    error. Video player is unable to display the Linear Ad",fa:9524},Yr={code:500,description:"General NonLinearAds error."},Gr={P:5130,code:300,description:"General Wrapper error",fa:9413},Kr={P:203,code:901,description:"Failed to inject GoogleIMA3 Dependencies.",fa:9570},qr={P:203,code:901,description:"Failed to initialize GoogleIMA3 adManager.",fa:9571},Wr={P:114,code:405,description:"Problem displaying MediaFile.",fa:9521},zr={P:125,code:303,description:"No ads VAST response after one or more Wrappers. Also includes number of empty VAST responses from fallback.",fa:9432},Xr={P:1,code:303,description:"No ads VAST response ",fa:9432},Qr={P:120,code:403,description:"Couldn’t find MediaFile that is supported by this video player, based on the attributes of the MediaFile element.",fa:9412},Jr={code:502,description:"Unable to fetch NonLinearAds/NonLinear resource."},Zr={code:501,description:"Unable to display non-linear ad because creative dimensions do not align with creative display area"},$r={code:503,description:"Could not find NonLinear resource with supported type."},to={P:121,code:401,description:"SSL mismatch",fa:9521},eo={P:112,code:900,description:"Undefined error."},io={P:108,code:100,description:"VAST parsing error",fa:9401},no={P:5125,code:101,description:"VAST schema validation",fa:9411},ro={P:203,code:901,description:"VPAID ad init error",fa:9416},oo={P:204,code:901,description:"VPAID ad init timeout",fa:9526},so={P:202,code:901,description:"VPAID ad load error",fa:9416},ao={P:202,code:409,description:"Interactive unit in the InteractiveCreativeFile node was not executed",fa:9416},uo={P:114,code:901,description:"VPAID ad renderer error",fa:9416},lo={P:301,code:901,description:"VPAID ad start error",fa:9416},co={P:302,code:304,description:"VPAID ad start timeout",fa:9522},ho={P:401,code:901,description:"vpaid creative stopped without impression",fa:9416},po={P:125,code:302,description:"Wrapper limit reached, as defined by the video player. Too many Wrapper responses have been received with no InLine response.",fa:9413},fo={P:105,code:301,description:"Timeout of VAST URI provided in Wrapper element, or of VAST URI provided in a subsequent Wrapper element. (URI was either unavailable or reached a timeout as defined by the video player.)",fa:9402},_o={code:602,description:"Unable to display required Companion."},mo={P:201,code:901,description:"VPAID setup error",fa:9416},yo=Symbol(),vo=Symbol(),go=function(){function t(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];this[vo]=t,this[yo]={},function(t){var e=this;t.forEach(function(t){return e[yo][t.mc()]=t})}.call(this,e)}var e=t.prototype;return e.Nb=function(t){return this[yo][t]},e.Xd=function(){},e.W=function(){},e.parse=function(t){return this.Xd&&this.Xd(t)?this.W(t):null},e.mc=function(){return this[vo]},t}(),Eo=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.Xd=function(t){return t&&t.nodeName===this.mc()&&t.hasChildNodes()&&t.firstElementChild},e}(go),bo=i(57),So=function(){function t(){}return t.og=function(t){var e={};t=t.childNodes;for(var i=0;i<t.length;i++){var n=t[i],r=n.nodeName;1===n.nodeType&&(e[r]||(e[r]=n))}return e},t.Qi=function(t,e){t=t.childNodes;for(var i=0;i<t.length;i++){var n=t[i];if(1===n.nodeType&&n.nodeName===e)return n}return null},t.ga=function(t,e){var i={};return t&&Array.prototype.forEach.call(t.childNodes||[],function(t){var n=t.nodeName;1===t.nodeType&&(!e||0===e.length||-1<e.indexOf(n))&&(i[n]||(i[n]=[]),i[n].push(t))}),i},t.Or=function(t){return!!t&&(3===t.nodeType||2===t.nodeType||!!t.hasChildNodes()&&!t.firstElementChild)},t.ha=function(t){return function t(e){for(var i,n="",r=0;null!=(i=e[r++]);)i.nodeType===bo.c||i.nodeType===bo.a?(i=i.nodeValue&&i.nodeValue.trim())&&(n+=i):i.nodeType!==bo.b&&(n+=t(i.childNodes));return n}([t])},t}(),Ao=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.Xd=function(t){return t&&t.nodeName===this.mc()&&So.Or(t)},e}(go),To=new(function(t){function e(){return t.call(this,"AdSystem")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new E;return e.version=t.getAttribute("version"),e.name=So.ha(t),e},e}(Ao)),Io=function(t){function e(){var e=t.call(this)||this;return e.qe=[],e.Qh="",e.required=null,e}return Rr()(e,t),e}(g),Co=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.W=function(t){var e=this.Ed();return e.url=mr.a.trim(So.ha(t)),e},i.Ed=function(){return new v},e}(Ao),Ro=new Co("Survey"),Lo=new Co("Attempt"),Po=new Co("Impression"),Oo=new Co("Error"),Do=new Co("VASTAdTagURI"),Mo=new Co("CompanionClickThrough"),wo=new Co("NonLinearClickThrough"),No=function(t){function e(e,i){return(e=t.call(this,e)||this).id=i,e}return Rr()(e,t),e}(v),ko=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);return i.id=e.getAttribute("id"),i},i.Ed=function(){return new No},e}(Co),Bo=new ko("ClickThrough"),xo=new ko("ClickTracking"),Uo=new ko("CustomClick"),Vo=new ko("CompanionClickTracking"),jo=new ko("NonLinearClickTracking"),Fo=new y("STREAMING"),Ho=new y("PROGRESSIVE"),Yo=function(t){function e(e,i){return(e=t.call(this,e,i)||this).Ml=null,e.mimeType="",e.width=null,e.height=null,e.Pp="",e.Mf=null,e.Gs=null,e.maxBitrate=null,e.gd=!0,e.Ne=!0,e.Ja="",e}return Rr()(e,t),e}(No),Go=new(function(t){function e(){return t.call(this,"MediaFile")||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);switch(String(e.getAttribute("delivery"))){case"streaming":i.Ml=Fo;break;case"progressive":i.Ml=Ho}var n=e.getAttribute("height");return i.height=isNaN(n)?0:n,n=e.getAttribute("width"),i.width=isNaN(n)?0:n,i.Pp=e.getAttribute("codec"),i.Mf=e.getAttribute("bitrate"),i.Gs=e.getAttribute("minBitrate"),i.maxBitrate=e.getAttribute("maxBitrate"),n=e.getAttribute("scalable"),i.gd=!n||("true"===n||0<parseInt(n)),i.Ne="true"===e.getAttribute("maintainAspectRatio"),i.mimeType=e.getAttribute("type"),i.Ja=e.getAttribute("apiFramework"),i.url&&-1!==i.url.indexOf("acds.prod.vidible.tv")&&(i.Ba=Or.a.Ta("placementId",i.url)),i},i.Ed=function(){return new Yo},e}(ko)),Ko=function(t){function e(e,i){return(e=t.call(this,e,i)||this).type=void 0,e.Ja="",e.Ku=!1,e}return Rr()(e,t),e}(No),qo=new(function(t){function e(){return t.call(this,"InteractiveCreativeFile")||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);return i.Ja=e.getAttribute("apiFramework")||"vpaid",i.type=e.getAttribute("type"),i.Ku=e.getAttribute("variableDuration")||!1,i},i.Ed=function(){return new Ko},e}(ko)),Wo=function(t){function e(e,i,n){return(e=t.call(this,e)||this).type=i,e.offset=n,e}return Rr()(e,t),e}(v),zo=new(function(t){function e(){return t.call(this,"Tracking")||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);return i.type=e.getAttribute("event"),i.offset=e.getAttribute("offset"),i},i.Ed=function(){return new Wo},e}(Co)),Xo=new(function(t){function e(){return t.call(this,"Icon")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new m;e.width=+t.getAttribute("width")||0,e.height=+t.getAttribute("height")||0,e.Qg=+t.getAttribute("xPosition")||t.getAttribute("xPosition"),e.Rg=+t.getAttribute("yPosition")||t.getAttribute("yPosition"),e.offset=Object(_r.F)(t.getAttribute("offset")||""),e.duration=Object(_r.F)(t.getAttribute("duration")||""),t=So.ga(t);var i=So.ga(t.IconClicks[0]),n=i.IconClickThrough&&i.IconClickThrough[0];return i=i.IconClickTracking&&i.IconClickTracking[0],t.StaticResource&&t.StaticResource[0]&&(e.In=So.ha(t.StaticResource[0]).trim()),t.IconViewTracking&&t.IconViewTracking[0]&&(e.Mj=So.ha(t.IconViewTracking[0]).trim()),n&&(e.fi=So.ha(n).trim()),i&&(e.gi=So.ha(i).trim()),e},e}(Eo)),Qo=new(function(t){function e(){return t.call(this,"AdParameters")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new _;return e.value=So.ha(t),e.av=t.getAttribute("xmlEncoded"),e},e}(Ao)),Jo=function(){function t(t,e){this.type=t,this.data=e||{},this.target=null}var e=t.prototype;return e.clone=function(){return new t(this.type,this.data)},e.toString=function(){return"Event{type=".concat(this.type,"}")},t}();Jo.df="complete";var Zo=function(t){function e(e,i,n){return(e=t.call(this,e,n)||this).data.adType=i,e.ne=null,e}return Rr()(e,t),e.prototype.clone=function(){return new e(this.type,this.ne,this.data)},e}(Jo);Zo.Tj="Ads.Resolve.Error",Zo.xc="Ads.Blocker.Complete",Zo.Xn="Ads.Blocker.Started",Zo.Sg="Ads.Engines.Load",Zo.ob="Ads.Engine.Ready",Zo.Ve="Ads.Engine.Run",Zo.Db="Ads.Engine.Complete",Zo.We="Ads.Engine.Impression",Zo.Sj="Ads.Engine.Interaction",Zo.Xe="Ads.Engine.LinearChange",Zo.Vg="Ads.Ad.Request",Zo.Uj="Ads.Ad.Response",Zo.Tg="Ads.Ad.Loaded",Zo.Yg="Ads.Ad.Starting",Zo.Na="Ads.Ad.Started",Zo.Eb="Ads.Ad.Finished",Zo.Ye="Ads.Ad.Paused",Zo.Wg="Ads.Ad.Resumed",Zo.$e="Ads.Ad.VolumeChanged",Zo.Qj="Ads.Ad.Click",Zo.Ug="Ads.Ad.Quartile",Zo.yc="Ads.Ad.TimeUpdate",Zo.Wj="Ads.Ad.Waiting",Zo.Yn="adshowcompanions",Zo.Xg="Ads.Ad.Skipped",Zo.Ze="Ads.Ad.SkippableStateChange",Zo.Zg="Ads.Ad.SubtitlesFound",Zo.pk="Ads.Ad.VastFailover",Zo.gh="Ads.Ad.VpaidInitializing",Zo.hh="Ads.Ad.VpaidLoaded",Zo.Rj="Ads.Ad.AdGroupFailover",Zo.Zj="Ads.Ad.LastAdGroupFailed",Zo.Vj="Ads.Ad.AdTimeoutReached",Zo.Zg="Ads.Ad.AdSubtitlesFound",Zo.$j="Ads.Ad.AdElementReady";var $o=i(2),ts=Symbol(),es=function(){function t(t,e){var i=this;this.Jn={},this.lt=t,this[ts]=e,t.forEach(function(t){var e=t.Ol,n=t.xe;Object.keys(n).map(function(t){return n[t]=Or.a.ci(n[t])}),i.Jn[t.lang]={displayText:e,formats:n}})}return t.prototype.prepare=function(t){var e=this;this[ts]||(this[ts]=t);var i=this[ts].M("eventBus");$o.a.qa(i,Zo.Yg,function(){i.dispatchEvent(new Zo(Zo.Zg,null,{raw:e.lt,subtitles:e.Jn}))})},t}(),is=function(t){function e(){var e=t.call(this)||this;return e.xl=[],e.kb=[],e.Hm=null,e.qc=[],e.duration=null,e.jd=!1,e.Jg=null,e.Ig=null,e.parameters=null,e.ua=null,e.Tp=null,e.zl=new es([]),e}return Rr()(e,t),e}(g),ns=i(44),rs=i.n(ns);i(39);var os={ar:"العربية",de:"deutsch",en:"english",es:"español",fr:"français",he:"עברית",id:"Indonesian",it:"Italiano",ja:"日本語",ru:"русский",tl:"Filipino",zh:"简体中文 (中国)","zh-tw":"繁體中文 (台灣)"},ss=new(function(t){function e(){return t.call(this,"Linear",[zo,Bo,xo,Uo,Go,Xo,Qo])||this}return Rr()(e,t),e.prototype.W=function(t){var e=new is,i=So.og(t);if((t=t.getAttribute("skipoffset"))&&(e.jd=!0,"%"===t.slice(-1)?e.Ig=Number(t.slice(0,-1)):e.Jg=Object(_r.F)(t)),t=So.ha(i.Duration),e.duration=t?Object(_r.F)(t):NaN,(t=i.AdParameters)&&(e.parameters=Qo.parse(t)),(t=i.TrackingEvents)&&(So.ga(t).Tracking||[]).forEach(function(t){return e.Ca.push(zo.parse(t))}),t=i.VideoClicks){var n=(t=So.ga(t)).ClickThrough;n&&(n=n[0])&&(e.ua=Bo.parse(n)),(n=t.ClickTracking)&&n.forEach(function(t){return e.xl.push(xo.parse(t))}),(t=t.CustomClick)&&(t=t[0])&&(e.Tp=Uo.parse(t))}return(t=i.Icons)&&(t=So.ga(t).Icon)&&t.forEach(function(t){return e.qc.push(Xo.parse(t,!0))}),((i=i.MediaFiles)&&So.ga(i).MediaFile||[]).forEach(function(t){(t=Go.parse(t))&&e.kb.push(t)}),t=i&&So.Qi(i,"ClosedCaptionFiles")||[],t=(i&&t&&So.ga(t).ClosedCaptionFile||[]).map(function(t){return new f(t,!0)}),e.zl=new es(t),(i=(i&&So.ga(i).InteractiveCreativeFile||[])[0])&&(i=qo.parse(i))&&(e.Hm=i),e},e}(Eo)),as=new h("STATIC"),us=new h("IFRAME"),ls=new h("HTML"),cs=function(t){function e(e,i){return(e=t.call(this,e)||this).Uo=i,e}return Rr()(e,t),e.prototype.W=function(t){var e=new p;return e.type=this.Uo,e.value=So.ha(t),e.mimeType=t.getAttribute("creativeType"),e},e}(Ao),ds=new cs("StaticResource",as),hs=new cs("IFrameResource",us),ps=new cs("HTMLResource",ls),fs=function(t){function e(e){return t.call(this,e,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).concat([ds,hs,ps,Qo,zo]))||this}Rr()(e,t);var i=e.prototype;return i.W=function(t){var e=this,i=this.El();i.height=t.getAttribute("height"),i.width=t.getAttribute("width"),i.id=t.getAttribute("id");var n=t.getAttribute("expandedWidth");return i.Vl=isNaN(n)?0:n,n=t.getAttribute("expandedHeight"),i.Ul=isNaN(n)?0:n,i.Ja=t.getAttribute("apiFramework"),[(t=So.ga(t)).StaticResource||[],t.IFrameResource||[],t.HTMLResource||[]].forEach(function(t){t.forEach(function(t){(t=e.Nb(t.nodeName).parse(t))&&i.xb.push(t)})}),(n=t.AdParameters)&&(i.parameters=Qo.parse(n[0])),(n=t[this.vi()])&&(i.ua=this.Jq().parse(n[0])),(t=t[this.wi()])&&(i.Op=this.Lq().parse(t[0])),i},i.Jq=function(){return this.Nb(this.vi())},i.Lq=function(){return this.Nb(this.wi())},e}(Eo),_s=function(t){function e(){var e=t.call(this)||this;return e.gd=!0,e.Ne=!0,e.Ym=null,e}return Rr()(e,t),e}(d),ms=new(function(t){function e(){return t.call(this,"NonLinear",[wo,jo])||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e),n=e.getAttribute("scalable");i.gd=!n||("true"===n||0<parseInt(n));var r="true"===(n=e.getAttribute("maintainAspectRatio"))||0<parseInt(n);return i.Ne=!n||r,e=e.getAttribute("minSuggestedDuration"),i.Ym=e?Object(_r.F)(e):NaN,i},i.El=function(){return new _s},i.vi=function(){return wo.mc()},i.wi=function(){return jo.mc()},e}(fs)),ys=function(t){function e(){var e=t.call(this)||this;return e.Zm=[],e}return Rr()(e,t),e}(g),vs=new(function(t){function e(){return t.call(this,"NonLinearAds",[zo,ms])||this}return Rr()(e,t),e.prototype.W=function(t){var e=new ys,i=(t=So.ga(t)).NonLinear;return i&&i.forEach(function(t){return e.Zm.push(ms.parse(t))}),(t=t.TrackingEvents)&&(So.ga(t[0]).Tracking||[]).forEach(function(t){return e.Ca.push(zo.parse(t))}),e},e}(Eo)),gs=function(t){function e(){var e=t.call(this)||this;return e.xp=null,e.wp=null,e.el="",e.up="",e.Ca=[],e}return Rr()(e,t),e}(d),Es=new(function(t){function e(){return t.call(this,"Companion",[Mo,Vo])||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);i.xp=e.getAttribute("assetWidth"),i.wp=e.getAttribute("assetHeight"),i.el=e.getAttribute("adSlotID"),i.mt=e.getAttribute("renderingMode");var n=(e=So.og(e)).AltText;if(n&&(i.up=So.ha(n)),e=e.TrackingEvents){var r=this.Nb("Tracking");(So.ga(e).Tracking||[]).forEach(function(t){return i.Ca.push(r.parse(t))})}return i},i.El=function(){return new gs},i.vi=function(){return Mo.mc()},i.wi=function(){return Vo.mc()},e}(fs)),bs=new(function(t){function e(){return t.call(this,"CompanionAds",[Es])||this}return Rr()(e,t),e.prototype.W=function(t){var e=new Io;e.required=t.getAttribute("required");var i=So.ga(t,["Companion"]).Companion;return i&&(e.Qh=t.outerHTML,i.forEach(function(t){return e.qe.push(Es.parse(t))})),e},e}(Eo)),Ss=new(function(t){function e(){return t.call(this,"UniversalAdId")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new c;return e.value=So.ha(t),e.Dm=t.getAttribute("idRegistry"),e},e}(Ao)),As=new(function(t){function e(){return t.call(this,"Creative",[ss,vs,bs])||this}return Rr()(e,t),e.prototype.W=function(t){var e,i=this,n=null;return[].slice.call(t.childNodes).forEach(function(r){if("UniversalAdId"===r.nodeName)e=r;else{var o=i.Nb(r.nodeName);o&&(n=o.parse(r))&&(n.id=t.getAttribute("id"),r=t.getAttribute("sequence"),n.Va=isNaN(r)?0:r,n.mp=t.getAttribute("adID")||t.getAttribute("AdID"))}}),n&&(n.Cu=Ss.parse(e)),n},e}(Eo)),Ts=function(){function t(t){this.type=t.getAttribute("type")}return t.prototype.prepare=function(t){t.Bl={vx:this.type||"Equirectangular"}},t}();i(56);var Is=function(){function t(){var t=this;this.tf=new fr.a(function(e,i){t.resolve=e,t.reject=i})}return t.prototype.sa=function(){return this.tf},t}(),Cs={q1:"AdVideoFirstQuartile",q2:"AdVideoMidpoint",q3:"AdVideoThirdQuartile"},Rs=vr.a.K("vdb.reporting.moat.BaseTracker"),Ls=""!==Or.a.Ta("moatdebug"),Ps=function(t){function e(e,i,n,r,o){return t.call(this,e,i,r,n,o,Zo.Na,Zo.Eb)||this}return Rr()(e,t),e.prototype.nh=function(){t.prototype.nh.call(this),this.nf=!1,$o.a.bind(this.Ya,Zo.$e,this.Mo.bind(this)).link(this.Ic),$o.a.bind(this.Ya,Zo.Eb,this.Jo.bind(this)).link(this.Ic),$o.a.bind(this.Ya,Zo.Ye,this.Ko.bind(this)).link(this.Ic),$o.a.bind(this.Ya,Zo.Wg,this.Lo.bind(this)).link(this.Ic),$o.a.bind(this.Ya,Zo.Ug,function(t){this.Wo(t.data.adStage)}.bind(this)).link(this.Ic)},e}(function(){function t(t,e,i,n,r,o,s){Rs.debug("Init Moat tracking"),this.ca=r,this.Ya=i,this.Hk=t,this.ph=n,this.$q=e,this.Mg=$o.a.bind(this.Ya,o,this.Sp.bind(this)),s&&(this.Ql=$o.a.bind(this.Ya,s,this.Mg.Z.bind(this.Mg)))}var e=t.prototype;return e.Sp=function(t){Rs.debug("Creating new Moat API instance"),this.Ll(),this.Ic=$o.a.empty(),this.Fk=new Is;var e=isFinite(t.data.duration)?t.data.duration:-1,i=this.ca.cb(),n=i&&i.videoUrls&&i.videoUrls[0];t=this.$q(i,t),Ls&&Rs.warn("MOAT: ",t),this.Rp(t,e,n),this.Qr(),this.nh(),this.md("AdImpression"),this.md("AdVideoStart")},e.Rp=function(t,e,i){this.ud="_moatApi".concat(Math.floor(1e8*Math.random())),this.rf={adData:{duration:e||0,ids:t,url:i||"no-video"},dispatchEvent:function(t){this.sendEvent&&this.sendEvent(t)}},t=this.ph.ownerDocument,this.Oh=t.defaultView||t.parentWindow,this.Oh[this.ud]=this.rf},e.Qr=function(){var t=this,e="https://z.moatads.com/".concat(this.Hk,"/moatvideo.js#").concat(this.ud);this.Hb=document.createElement("script"),this.Hb.type="text/javascript",this.ph.insertBefore(this.Hb,this.ph.childNodes[0]||null),this.Hb.src=e,this.Hb.onload=function(){t.Fk.resolve(),Object(_r.d)(function(){[].forEach.call(document.querySelectorAll('[id^="MoatPx"]'),function(t){t.tabIndex=-1})})}},e.md=function(t){t={adVolume:this.ca.getVolume(),type:t},Ls&&Rs.warn("MOAT:",this.Hk,t),this.Fk.sa().then(this.rf.dispatchEvent.bind(this.rf,t))},e.Ll=function(){if(this.Yo&&(this.Mg&&this.Mg.Z(),this.Ql&&this.Ql.Z()),this.ud)try{delete this.Oh[this.ud]}catch(t){this.Oh[this.ud]=void 0}this.Hb&&this.Hb.parentNode&&this.Hb.parentNode.removeChild(this.Hb),this.Ic&&this.Ic.Z(),this.rf=this.Hb=this.ud=void 0},e.ou=function(){this.Yo=!0},e.nh=function(){this.nf=!1},e.Mo=function(){this.md("AdVolumeChange")},e.Jo=function(){this.md("AdVideoComplete"),this.Ll()},e.Ko=function(){this.nf=!0,this.md("AdPaused")},e.Lo=function(){this.nf&&(this.nf=!1,this.md("AdPlaying"))},e.Wo=function(t){(t=Cs[t])&&this.md(t)},t}()),Os=function(){function t(t){var e=this;this.params=this.pageUrl=this.marketplaceId=this.adId=this.campaignId=this.orgId="";var i=So.ga(t);Object.keys(i).forEach(function(t){return e[t]=So.ha(i[t][0])})}return t.prototype.prepare=function(t){this.params&&(this.params=t.Pb().resolve(this.params));var e=t.eb(),i=e.M("adContainerProvider").Ob();e=e.M("environment"),new Ps("aolonebuyervideoflashint2012897410256",function(){return{level1:this.orgId,level2:this.campaignId,level3:this.adId,level4:this.marketplaceId,partnerCode:"aolonebuyervideoflashint2012897410256",slicer1:this.pageUrl,viewMode:"normal",zMoatParams:this.params}}.bind(this),i,t,e).ou()},t}(),Ds=function(){function t(t){t&&(this.type=t.getAttribute("type"),this.value=So.ha(t))}var e=t.prototype;return e.prepare=function(t,e,i){this.Sa=t,this.I=e,this.kj=i,this.Ds=e.Pb()},e.ka=function(){(new Image).src=this.Ds.resolve(this.value,this.kj)},t}(),Ms=Symbol(),ws=Symbol(),Ns=Symbol(),ks=function(t){function e(e,i,n,r){return(e=t.call(this,e,r)||this)[Ms]=i,e[ws]=n,e.hc=[],e.Mm=!0,e}Rr()(e,t);var i=e.prototype;return i.Pt=function(t){t.Mm=!1,this[Ns]=t},i.Ae=function(){return this[Ms]||null},i.Mb=function(){return this[ws]||null},i.im=function(){return this[Ns]||null},i.clone=function(){return new e(this.type,this[Ms],this[ws],this.data)},e}(Jo);ks.af="VastEventAttempt",ks.Bc="VastEventImpression",ks.hb="VastEventClick",ks.Da="VastEventError",ks.LOADED="loaded";var Bs=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.prepare=function(e,i){switch(t.prototype.prepare.call(this,e,i.I),this.type){case"companionDisplay":this.Sa.$a($o.a.qa(i,"VASTCompanionAdStarted",this.ka.bind(this)));break;case"companionClick":case"clickThru":(function(t,e){var i=this;this.Sa.$a($o.a.bind(t,e,function(t){((t=t.Ae().qe)&&"companionClick"===i.type||!t&&"clickThru"===i.type)&&i.ka()}))}).call(this,i.ad,ks.hb)}},e}(Ds),xs=i(79),Us=i(80),Vs=i.n(Us);i(108);var js=i(97),Fs=i.n(js);i(151);var Hs="acceptInvitation",Ys="click",Gs="close",Ks="collapse",qs="complete",Ws="creativeView",zs="exitFullscreen",Xs="expand",Qs="firstQuartile",Js="fullscreen",Zs="impression",$s="midpoint",ta="mute",ea="pause",ia="playerCollapse",na="playerExpand",ra="progress",oa="resume",sa="rewind",aa="skip",ua="start",la="thirdQuartile",ca="unmute",da=i(47);i(40),i(87);var ha=vr.a.K("HtmlInjector"),pa=Symbol(),fa=function(){function t(t){this[pa]=t}return t.prototype.Gm=function(t){ha.debug("injectIFrame",t);var e=(t=t||{}).width,i=t.height;return e=e?"".concat(e,"px"):"100%",i=i?"".concat(i,"px"):"100%",e=Object(_r.h)("iframe",{frameBorder:0,height:i,marginHeight:0,marginWidth:0,scrolling:"no",src:"javascript:void(0)",width:e},this[pa]),function t(e,i,n){ha.debug("waitAndInject",n);var r=n.Sd,o=n.ux,s=n.Ww,a=e.contentWindow,u=new Is,l=e.document;e.contentDocument?l=e.contentDocument:e.contentWindow&&(l=e.contentWindow.document),s&&(a.onIFrameReady=function(){ha.debug("onIFrameReady"),u.resolve()}),l?(l.open(),o&&o(e),r&&fr.a.all([new fr.a(function(t){if("safari"===_r.c.name)if(l.body)t();else var i=setInterval(function(){l.body&&(clearInterval(i),t())},100);else $o.a.bind(e,"load",t)}),new fr.a(function(t){_r.s&&"complete"!==l.readyState?$o.a.bind(l,"readystatechange",function(){"complete"===l.readyState&&t()}):t()})]).then(function(){return ha.debug("frame ready",s),s?u.sa():new fr.a(function(t){a.onIFrameReady=t,(t=l.createElement("script")).innerHTML="onIFrameReady()",l.body.appendChild(t)})}).then(function(){ha.debug("calling onLoaded"),r(e,l)}),a.onerror=function(t,e,i,n){"Script error."!==t&&e&&i&&n&&vr.a.K("IframeError").error([t,"Url: ",e,"Line: ",i,"Column: ",n].join(", "))},l.write(i),l.close()):Object(_r.d)(t.bind(this,e,i,n))}.call(this,e,"",t),e},t}(),_a="sessionError",ma="sessionFinish",ya="sessionStart",va=function(t){function e(i,n,r){return(n=t.call(this,e.Fc,n,null)||this).Bb=i,n.data=r||{},n}return Rr()(e,t),e.prototype.clone=function(){return new e(this.Bb,this.Ae(),this.data)},e}(ks);va.Fc="VASTEventVideoTracking";var ga=vr.a.K("VerificationController"),Ea=["*"],ba=Symbol(),Sa=Symbol(),Aa=Symbol(),Ta=Symbol(),Ia=Symbol(),Ca=Symbol(),Ra=Symbol(),La=Symbol(),Pa=Symbol(),Oa=Symbol(),Da=Symbol(),Ma=Symbol(),wa=Symbol(),Na=function(){function t(t){this[Oa]=t.dom,this[Da]=t.adContainerProvider.Ob(),this[Ma]=t.videoTagProvider,this[wa]=t.eventBus,this[ba]=2,this[Ta]={},this[Ia]={},this[Ra]={},this[Ca]=l()}return t.prototype.prepare=function(){var t=Fs()(Vs.a.mark(function t(e,i){var n;return Vs.a.Oj(function(t){for(;;)switch(t.Ua=t.next){case 0:if(ga.debug("prepare"),this[La]=e,this[Pa]=i,ga.debug("selectOne",this[La].vendor),-1<Ea.indexOf(this[La].vendor)||-1<Ea.indexOf("*")?n=this[La].Rm[0]||this[La].Tl[0]:(this[ba]=1,n=void 0),!n){t.next=18;break}return O.call(this),t.Ua=6,t.next=9,D.call(this,n.url);case 9:t.next=16;break;case 11:t.Ua=11,t.Kn=t.catch(6),this[ba]=3,M.call(this),L.call(this);case 16:t.next=19;break;case 18:M.call(this);case 19:case"end":return t.stop()}},t,this,[[6,11]])}));return function(e,i){return t.apply(this,arguments)}}(),t}();Na.N=["dom","adContainerProvider","videoTagProvider","eventBus"];var ka=vr.a.K("VastExtension"),Ba=function(){function t(){this.type=null,this.Im={},this.scripts=[],this.Ln=[],this.Jl=[],this.Qn=[],this.bl=[],this.rl=[],this.$i=null,this.we=[],this.gl=[]}return t.prototype.prepare=function(t){switch(ka.debug("prepare",this.type),this.Sa=new xs.a,this.Mu=t,this.I=t.I,this.sg=this.I.eb(),this.ad=t.ad,this.type){case"adaptv_scripts":(function(){var t=this;this.scripts.forEach(function(e){return e.prepare(t.Sa,t.ad,t.I)})}).call(this);break;case"adaptv_timeout_beacons":(function(){var t=this;this.Ln.forEach(function(e){return e.prepare(t.Sa,t.ad,t.I)})}).call(this);break;case"one_video_custom_tracking_beacons":(function(){var t=this;this.Jl.forEach(function(e){return e.prepare(t.Sa,t.Mu)})}).call(this);break;case"ad_chromes":(function(){var t=this;this.bl.forEach(function(e){return e.prepare(t.I)})}).call(this);break;case"vidible_captions":new es(this.rl,this.sg).prepare();break;case"vidible_360":this.kp.prepare(this.ad);break;case"o2Player_leaveBehind":this.$i&&this.$i.prepare(this.I,this.Sa);break;case"one_video_feacons":(function(){var t=this;this.we.forEach(function(e){return e.prepare(t.I)})}).call(this);break;case"AdVerifications":(function(){var t=this;this.gl.forEach(function(e){t.sg.oa(Na).prepare(e,t.ad)})}).call(this)}$o.a.qa(this.I,Zo.Eb,function(){ka.debug("unbindEvents"),this.Sa&&(this.Sa.Z(),this.Sa=null)}.bind(this))},t}(),xa=function(){function t(t){var e=this;this.we=[],t.forEach(function(t){(So.ga(t).Feacon||[]).forEach(function(t){return e.we.push(So.ha(t))})})}return t.prototype.prepare=function(t){var e=t.Pb();this.we.forEach(function(t){return(new Image).src=e.resolve(t)})},t}(),Ua=function(){function t(t,e){this.type=t,this.data=e}return t.prototype.clone=function(){return new t(this.type,this.data)},t}(),Va=Symbol(),ja=Symbol(),Fa=Symbol(),Ha=Symbol(),Ya=Symbol(),Ga=function(t){function e(e,i,n,r,o,s,a){return(e=t.call(this,e,i)||this)[Va]=r,e[ja]=o,e[Fa]=n,e[Ha]=s,e[Ya]=a,e}Rr()(e,t);var i=e.prototype;return i.Fr=function(){return this[Va]},i.wr=function(){return this[ja]},i.ag=function(){return this[Fa]},i.Uq=function(){return this[Ha]},i.Mr=function(){return this[Ya]},i.clone=function(){return new e(this.type,this.data,this[Fa],this[Va],this[ja],this[Ha],this[Ya])},e}(Ua);Ga.LOADING="EntriesManagerEvent.LOADING",Ga.LOADED="EntriesManagerEvent.LOADED",Ga.zc="EntriesManagerEvent.FAILED";var Ka=function(){function t(t){this.ii=JSON.parse(So.ha(t))}return t.prototype.prepare=function(t,e){this.I=t,e.$a($o.a.bind(t,Zo.Eb,function(){this.ii.replace=!0,this.ii.type="Overlay",this.Ms=this.Hh.ig().aegOverride,this.Hh.Bn(this.ii),$o.a.group($o.a.qa(this.I,Ga.LOADED,w.bind(this)),$o.a.qa(this.I,Ga.zc,w.bind(this))),this.Ns=this.I.ic().hj,this.I.ic().hj="00:00:01"}.bind(this))),this.Hh=this.I.eb().M("config")},t}(),qa=Symbol(),Wa=function(){function t(t){this.At=t.getAttribute("resourceType"),this.event=t.getAttribute("event"),this.value=So.ha(t)}return t.prototype.prepare=function(t,e,i){this.I=i,this.ue=i.eb().M("dom"),t.$a($o.a.bind(i,Zo.Eb,function(){Object(_r.A)(this[qa])}.bind(this))),this.event===Zs?t.$a($o.a.bind(e,ks.Bc,N.bind(this))):N.call(this)},t}(),za=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.prepare=function(e,i,n){if(this.ad=i,t.prototype.prepare.call(this,e,n),(e=function(){return this.ad.sb.filter(function(t){return"one_video_inventory_attributes"===t.type})[0]}.call(this))&&(this.timeout=e.Im[this.type]),!this.timeout)switch(this.type){case"ad_loaded_timeout":this.timeout=5e3;break;case"ad_started_timeout":this.timeout=7e3;break;case"break_loaded_timeout":this.timeout=3e4}switch(this.type){case"ad_loaded_timeout":k.call(this,Zo.Tg,Zo.Na);break;case"ad_started_timeout":k.call(this,Zo.Na,Zo.yc);break;case"break_loaded_timeout":k.call(this,Zo.Ve,Zo.Na)}},e}(Ds),Xa=new(function(t){function e(){return t.call(this,"JavaScriptResource")||this}return Rr()(e,t),e.prototype.W=function(e){var i=t.prototype.W.call(this,e);return i.Ja=e.getAttribute("apiFramework"),i.ol=e.getAttribute("browserOptional"),i},e}(Co)),Qa=new(function(t){function e(){return t.call(this,"JavaScriptResource")||this}return Rr()(e,t),e.prototype.W=function(e){var i=t.prototype.W.call(this,e);return i.Ja=e.getAttribute("apiFramework"),i.type=e.getAttribute("type"),i},e}(Co)),Ja=new(function(t){function e(){return t.call(this,"VerificationParameters")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new a;return e.value=So.ha(t),e},e}(Ao)),Za=new(function(t){function e(){return t.call(this,"Verification",[Xa,Qa,Ja,zo])||this}return Rr()(e,t),e.prototype.W=function(t){var e=new s,i=So.ga(t),n=i.JavaScriptResource||[],r=i.ExecutableResource||[],o=i.VerificationParameters||[];return i=So.ga((i.TrackingEvents||[])[0]).Tracking||[],e.Rm=n.map(function(t){return Xa.parse(t)}).sort(x),e.Tl=r.map(function(t){return Qa.parse(t)}),e.Lj=o.map(function(t){return Ja.parse(t)}),e.Ca=i.map(function(t){return zo.parse(t)}),e.vendor=t.getAttribute("vendor"),e},e}(Eo)),$a=i(10),tu=i.n($a),eu=vr.a.K("BaseViewabilityRules"),iu=Symbol(),nu=Symbol(),ru=Symbol(),ou=Symbol(),su=Symbol(),au=function(){function t(){eu.debug("constructor"),this[iu]=2,this[nu]=50,this[ru]=!1,this[ou]=!1,this[su]=null}var e=t.prototype;return e.Fi=function(){return this[iu]},e.Ei=function(){return this[nu]},e.Ui=function(){return this[ru]},e.Ti=function(){return this[ou]},e.mg=function(){return this[su]},t}(),uu=vr.a.K("GeminiViewabilityRules"),lu=Symbol(),cu=Symbol(),du=Symbol(),hu=Symbol(),pu=Symbol(),fu=Symbol(),_u=Symbol(),mu=function(t){function e(e,i,n){var r=t.call(this)||this;return uu.debug("constructor",i),i=i||{},r[lu]=e,r[cu]=+i.d||t.prototype.Fi.call(tu()(r)),r[du]=+i.p||t.prototype.Ei.call(tu()(r)),r[hu]=U(i.c,t.prototype.Ui.call(tu()(r))),r[pu]=U(i.a,t.prototype.Ti.call(tu()(r))),r[fu]=+i.t||t.prototype.mg.call(tu()(r)),r[_u]=n||[],r}Rr()(e,t);var i=e.prototype;return i.getName=function(){return this[lu]},i.Fi=function(){return this[cu]},i.Ei=function(){return this[du]},i.Ui=function(){return this[hu]},i.Ti=function(){return this[pu]},i.mg=function(){return this[fu]},i.rr=function(){return this[_u]},i.dx=function(){return 1===this[fu]},e}(au),yu=function(t){function e(e,i){return t.call(this,i,{a:e.getAttribute("a"),c:e.getAttribute("c"),d:e.getAttribute("d"),p:e.getAttribute("p"),t:e.getAttribute("t")})||this}return Rr()(e,t),e}(mu),vu=new(function(t){function e(){return t.call(this,"Extension")||this}Rr()(e,t);var i=e.prototype;return i.W=function(t){var e=new Ba;e.type=t.getAttribute("type");var i=So.ga(t);switch(e.type){case"adaptv_scripts":e.scripts=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.push(new Wa(e))}),t}(i.Script);break;case"one_video_inventory_attributes":e.Im=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e={};return Object.keys(t).forEach(function(i){i=new u(i,t[i][0]),e[i.type]=i.value}),e}(i);break;case"adaptv_timeout_beacons":e.Ln=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.push(new za(e))}),t}(i.Beacon);break;case"adaptv_iab_viewable_beacons":e.Qn=V(i.Beacon);break;case"Viewability3P":e.Su=V(i.Beacon);break;case"ViewabilityRules":e.Uu=j(i,"viewabilityDefVideo"),e.Tu=j(i,"viewabilityDefVideo3P");break;case"one_video_custom_tracking_beacons":e.Jl=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.push(new Bs(e))}),t}(i.Beacon);break;case"ad_chromes":e.bl=function(t){var e=[];return(So.ga(t).AdChrome||[]).forEach(function(t){"MoatChrome"===t.getAttribute("type")&&e.push(new Os(t))}),e}(i.AdChromes[0]);break;case"o2Player_leaveBehind":e.$i=new Ka(t);break;case"vidible_captions":e.rl=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.push(new f(e))}),t}(i.Caption);break;case"vidible_360":e.kp=function(){return new Ts(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[])}(i.Projection[0]);break;case"one_video_feacons":e.we.push(new xa(i.Feacons));break;case"AdVerifications":e.gl=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){t=(So.ga(e).Verification||[]).map(function(t){return Za.parse(t)})}),t}(i.AdVerifications)}return e},i.Xd=function(t){return t&&t.nodeName===this.mc()},e}(Eo)),gu=new(function(t){function e(){return t.call(this,"ViewableImpression")||this}return Rr()(e,t),e.prototype.W=function(t){var e=new o;return t=So.og(t),e.Ga=new Ds(t.Viewable),e.bj=new Ds(t.NotViewable),e.Nj=new Ds(t.ViewUndetermined),e},e}(Eo)),Eu=function(t){function e(e){return t.call(this,e,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).concat([To,Lo,Oo,Po,As,vu,Za,gu]))||this}return Rr()(e,t),e.prototype.W=function(t){var e=this.Dl();return t=So.ga(t),e.I=To.parse(t.AdSystem[0]),e.kl=F.call(this,t.Attempt,"Attempt"),e.qg=F.call(this,t.Impression,"Impression"),e.qg.forEach(function(t){-1===t.url.indexOf("log.adaptv.advertising.com")||e.Ba||(e.Ba=Or.a.Ta("5",t.url))}),e.ve=F.call(this,t.Error,"Error"),e.aa=H.call(this,t.Creatives,"Creative"),e.aa.sort(function(t,e){return t.Va-e.Va}),e.sb=H.call(this,t.Extensions,"Extension"),e.Nu=H.call(this,t.AdVerifications,"Verification"),t.ViewableImpression&&(e.wc=[gu.parse(t.ViewableImpression[0])]),function(t){var e=t.filter(function(t){return t instanceof is})[0];if(t=t.filter(function(t){return t instanceof Io})[0],e&&t){var i=["clickThru","companionClick","companionDisplay"],n=t.Ca;e.Ca.forEach(function(t){var e=t.type;-1!==i.indexOf(e)&&0===n.filter(function(t){return t.type===e}).length&&n.push(t)})}}(e.aa),e},e}(Eo),bu=vr.a.K("CompanionShowEvent"),Su=function(t){function e(i,n){return bu.debug("init",i,"childEvent",n),(i=t.call(this,e.bf,i)||this).Of=n instanceof e?n.Of.slice(0):[],i}return Rr()(e,t),e.prototype.clone=function(){return bu.debug("clone"),new e(this.Ae(),this)},e}(ks);Su.bf="VASTEventCompanionShow";var Au=vr.a.K("CompanionTrackingEvent"),Tu=function(t){function e(i,n,r){return Au.debug("init",i,n,r),(n=t.call(this,e.cf,n,null)||this).Bb=i,n.Al=r,n}return Rr()(e,t),e.prototype.clone=function(){return Au.debug("clone"),new e(this.Bb,this.Ae(),this.Al)},e}(ks);Tu.cf="VASTEventCompanionTracking";var Iu,Cu=i(12),Ru=["[AD_DURATION]","{ad_duration}"],Lu=["[ERRORCODE]","%5BERRORCODE%5D"],Pu=["{adSpotTime}"],Ou=["[ADTYPE]"],Du=["{errNo}"],Mu=["[ADAP_VIEWABLE_OPPORTUNITY]"],wu=["{adNumber}","{adSeq}"],Nu=["[ADSERVINGID]"],ku=["[APID]"],Bu=["[APIFRAMEWORKS]"],xu=["[APP_ID]"],Uu=["[ASSETURI]","[AD_MEDIA_FILE_URL]","AD_MEDIA_FILE_URL"],Vu=["|ap|","[AUTOPLAY]","[AUTO_INITIATION]"],ju=["[BCID]","[bcid]"],Fu=["|beoncw|","[BEON_CW]"],Hu=["|beonvid|","[BEON_VIDEO_ID]"],Yu=["[BID]"],Gu=["[BLOCKEDADCATEGORIES]"],Ku=["[BREAKPOSITION]"],qu=["[cachebuster]","[CACHEBUSTER]","[CACHE_BUSTER]","[CACHE_BREAKER]","[CACHEBUSTING]"],Wu=["[container_height]","[CONTAINER_HEIGHT]"],zu=["[container_width]","[CONTAINER_WIDTH]"],Xu=["[CONTENTPLAYHEAD]","[MEDIAPLAYHEAD]"],Qu=["{creativeLoadTime}"],Ju=["[DE_RSS_ID]"],Zu=["|DE_URL|","[DE_URL]"],$u=["[DEPTH]"],tl=["[DOMAIN_ROOT]"],el=["[DOMAIN_NAME]"],il=["[ECPM]"],nl=["[EUCONSENT]","EUCONSENT","[GDPR_CONSENT]"],rl=["[P_VW_ACTIVE]","<a.active>"],ol=["[GDPR]","GDPR"],sl=["[IP_ADDR]","[IPADDRESS]","IPADDRESS"],al=["[OATH_FIRSTPARTY]","OATH_FIRSTPARTY"],ul=["[LOCATION_LAT]","[LATITUDE]","LATITUDE"],ll=["[LOCATION_LON]","[LONGITUDE]","LONGITUDE"],cl=["[MOAT_PREBID]"],dl=["|muted|","[MUTED]"],hl=["[MCC]","[MNC]","[APPNAME]"],pl=["[PID]"],fl=["{PlayerInitTime}"],_l=["{playerRev}"],ml=["[P_VW_SIZE]","<a.psize>","{psize}"],yl=["[PLAYER_TYPE]"],vl=["[PLAYLIST_SEQUENCE]"],gl=["[RSS_ID]"],El=["[SID]"],bl=["[SOUND]"],Sl=["[SPACE_ID]","SPACE_ID"],Al=["[timestamp]","[TIMESTAMP]"],Tl=["[UNIVERSALADID]"],Il=["[USER_AGENT]","[USERAGENT]","USERAGENT"],Cl=["[VAST_DURATION]","{vast_duration}"],Rl=["[VIDEO_COMPANY_ID]"],Ll=["[VIDEO_DESCRIPTION]","VIDEO_DESCRIPTION"],Pl=["[VIDEO_DETAIL_PAGE]","VIDEO_DETAIL_PAGE"],Ol=["[VIDEO_DURATION]","VIDEO_DURATION"],Dl=["[VIDEO_FILE_URL]","VIDEO_FILE_URL"],Ml=["[video_height]","[VIDEO_HEIGHT]"],wl=["[VIDEO_ID]","VIDEO_ID"],Nl=["[VIDEO_KEYWORDS]","VIDEO_KEYWORDS"],kl=["|%|","[VIDEO_PERCENT]"],Bl=["[VIDEO_TITLE]","VIDEO_TITLE"],xl=["[VIDEO_TITLE_ENC]"],Ul="[VIDEO_URL] VIDEO_URL |URL| [CONTENT_URL] [EMBEDDING_PAGE_URL] EMBEDDING_PAGE_URL [URL] [A_D_PAGEURL]".split(" "),Vl=["[video_width]","[VIDEO_WIDTH]"],jl=["[P_VW_VIEWABLE]","<a.viewable>"],Fl=["[P_VW_VIEWABLE_OPPORTUNITY]","<a.viewableOpportunity>"],Hl=["[VVUID]"],Yl=["[ADCOUNT]"],Gl=["[VPAID_ERROR_MESSAGE]","{errmsg}"],Kl=["[SS_REQ]","SS_REQ"],ql="[TRANSACTIONID] [PLACEMENTTYPE] [IFA] [IFATYPE] [CLIENTUA] [SERVERSIDE] [DOMAIN] [PAGEURL] [APPBUNDLE] [VASTVERSIONS] [EXTENSIONS] [VERIFICATIONVENDORS] [OMIDPARTNER] [MEDIAMIME] [PLAYERCAPABILITIES] [CLICKTYPE] [PLAYERSTATE] [INVENTORYSTATE] [PLAYERSIZE] [ADPLAYHEAD] [CONTENTID] [CONTENTURI] [PODSEQUENCE] [CLICKPOS] [LIMITADTRACKING] [REGULATIONS] [GDPRCONSENT]".split(" "),Wl=["[LATLONG]"],zl=vr.a.K("AbstractAd"),Xl=Symbol(),Ql=function(t){function e(){var e=t.call(this)||this;return e.Uk=[],e.kl=[],e.qg=[],e.ve=[],e.aa=[],e.sb=[],e.Le=!1,e.id="",e.state={loaded:!1},e}Rr()(e,t);var i=e.prototype;return i.rn=function(t,e,i){var n=this,r=new ks(ks.af,null,null,e);this[Xl]=function(){n.dispatchEvent(r),t.Oe(r),n[Xl]=null},(this.state.loaded||i)&&this[Xl]()},i.dispatchEvent=function(e){zl.debug("dispatchEvent",e);var i=e.Ae();switch(i=e.Mm?i:!Object(_r.p)(i)&&function(t){return this.aa.filter(function(e){return e.__proto__===t.__proto__})[0]}.call(this,i),e.type){case ks.af:this.uo||(Y(e,this.kl),this.uo=!0);break;case ks.Bc:Y(e,this.qg);break;case ks.Da:this[Xl]&&this[Xl](),Y(e,this.ve);break;case ks.hb:i instanceof is?(Y(e,i.xl),i.Ca&&i.Ca.forEach(function(t){"clickThru"===t.type&&t.url&&e.hc.push(t.url)})):i&&i.qe&&G.call(this,i,e.hc,"companionClick");break;case va.Fc:G.call(this,i,e.hc,e.Bb,e);break;case Su.bf:this.aa.forEach(function(t){t instanceof Io&&e.Of.push(t)});break;case Tu.cf:if(!i)return;e.Al.Ca.forEach(function(t){t.type===e.Bb&&t.url&&e.hc.push(t.url)});break;case ks.LOADED:this[Xl]&&this[Xl](),this.state.loaded=!0;case"iab_detection_started":case"iab_viewable":case"iab_detection_failed":case"VIDEO_VIEW_3P":case"companionDisplay":case"stopped":case"linearChange":G.call(this,i,e.hc,e.type)}return t.prototype.dispatchEvent.call(this,e)},i.Nl=function(t,e){this.Bo||(this.Bo=!0,e=new ks(ks.Da,null,null,{error:e}),this.dispatchEvent(e),t.Oe(e))},e}(Cu.default),Jl=function(t){function e(){var e=t.call(this)||this;return e.title="",e.description="",e.sp="",e.qu=null,e.zs=Date.now(),e}return Rr()(e,t),e}(Ql),Zl=new(function(t){function e(){return t.call(this,"InLine",[Ro])||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);return e=So.og(e),i.title=So.ha(e.AdTitle),i.description=So.ha(e.Description),i.sp=So.ha(e.Advertiser),i.qu=Ro.parse(e.Survey),i.np=So.ha(e.AdServingId),i.bi=So.ha(e.Category),i.expires=parseInt(So.ha(e.Expires),10),i},i.Dl=function(){return new Jl},e}(Eu)),$l=[ks.af,ks.Bc,ks.hb,ks.LOADED,va.Fc,Tu.cf,Su.bf,"iab_detection_started","iab_viewable","iab_detection_failed","VIDEO_VIEW_3P","companionDisplay","stopped","linearChange"],tc=function(t){function e(){var e=t.call(this)||this;return e.Le=!0,e.vl=null,e}Rr()(e,t);var i=e.prototype;return i.Ap=function(t){var e=this;t.ads.forEach(function(t){return $l.forEach(function(i){return t.addEventListener(i,function(t){var e=t.clone();t.Pt(e),this.dispatchEvent(e)}.bind(e))})})},i.ht=function(t,e){t.ads.forEach(function(t){e.sb&&(t.sb=(t.sb||[]).concat(e.sb)),e.wc&&(t.wc=(t.wc||[]).concat(e.wc)),t.aa.forEach(function(t){var i=0<e.aa.length&&e.aa[0]instanceof is;t.qc&&0===t.qc.length&&i&&(t.qc=t.qc.concat(e.aa[0].qc))}),t.Cd&&t.Le&&(t.Cd=e.Cd.concat(t.Cd).filter(function(t,e,i){return i.indexOf(t)===e}))})},e}(Ql),ec=new(function(t){function e(){return t.call(this,"Wrapper",[Do])||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e),n=So.Qi(e,"BlockedAdCategories");return i.vl=Do.parse(So.Qi(e,"VASTAdTagURI")),i.Cd=n&&(So.ha(n).split(",")||[]),i},i.Dl=function(){return new tc},e}(Eu)),ic=new(function(t){function e(){return t.call(this,"Ad",[Zl,ec])||this}return Rr()(e,t),e.prototype.W=function(t){var e=null,i=t.firstElementChild,n=this.Nb(i.nodeName);return n&&((e=n.parse(i)).ne=t.getAttribute("adType")||"video",e.id=t.getAttribute("id"),i=t.getAttribute("sequence"),t=t.getAttribute("fallbackSequence"),i&&(e.Va=+i),t&&(e.nq=+t)),e},e}(Eo)),nc=function(t){function e(e,i){return(e=t.call(this,e)||this).version=i,e}return Rr()(e,t),e}(v),rc=new(function(t){function e(){return t.call(this,"Error")||this}Rr()(e,t);var i=e.prototype;return i.W=function(e){var i=t.prototype.W.call(this,e);return i.version=e.getAttribute("version"),i},i.Ed=function(){return new nc},e}(Co)),oc=function(){function t(){this.ads=[],this.ve=[]}var e=t.prototype;return e.lm=function(){return 0<this.ads.length?this:this.parent?this.parent.lm():null},e.qr=function(t){for(var e=[],i=this;;){if(i.ed&&e.push(i.ed),i.parent===t||!t)return e;if(!i.parent)return[];i=i.parent}},t}(),sc=Symbol(),ac=function(t){function e(e){var i=t.call(this,"VAST",[ic,rc])||this;return i[sc]=e,i}Rr()(e,t);var i=e.prototype;return i.Xd=function(){return!0},i.W=function(t){var e=this,i=new oc,n=So.ga(t);if(i.Wx=t.getAttribute("adaptvFailover")||!1,t=n.Error){var r=this.Nb("Error");t.forEach(function(t){(t=r.parse(t))&&i.ve.push(t)})}if((t=n.Extensions)&&this[sc]&&t.forEach(function(t){(So.ga(t).Extension||[]).forEach(function(t){"one_video_feacons"===(t&&t.getAttribute("type"))&&(t=So.ga(t).Feacons,new xa(t).prepare(e[sc]))})}),n=n.Ad){var o=this.Nb("Ad");n.forEach(function(t,e){(t=o.parse(t))&&(t.Ft=e+1,i.ads.push(t))})}return i},e}(Eo),uc=vr.a.K("VastParser"),lc=Symbol(),cc=function(){function t(t){this[lc]=t}return t.prototype.parse=function(t){return new ac(this[lc]).parse(function(t){t:{var e=Mr()(t);if("string"===e)try{if(void 0!==window.DOMParser){var i=(new window.DOMParser).parseFromString(t,"text/xml");(0<i.getElementsByTagName("parsererror").length||!i.documentElement)&&K("Invalid XML");var n=i}else K("No XML parser found"),n=void 0;break t}catch(e){uc.error(e,"Invalid VAST xml",t),K("Invalid VAST: ".concat(e.message||e))}else{if("object"===e){n=t;break t}K("Cannot parse VAST: non-supported type",e)}n=void 0}return"VAST"!==(t=n.documentElement).nodeName&&K("Invalid VAST XML",no),t}(t))},t}(),dc=Symbol(),hc=function(){function t(){}var e=t.prototype;return e.parse=function(t,e,i){if(this.ib=e||{},this.Wk=t.transactionId,this.lh=t.adxResult,this.Zk=t.usid,this.Nk=t.rcid,this.No=t.overlayURL,this.cp=t.thumbnail,this.Do=t.fullsizeThumbnail,this.jp=t.videoTitle,this.ip=t.videoId,this.hp=t.videoDuration,this.po=t.acid,this.so=t.asid,this.vo=t.auid,this.pf=t.usesShim||!1,this.Vo=t.rid,this.bc=t.parentSlot,this.Ik=t.pblob||"",this.Zo=t.spaceId||"",t.cpm&&(this.bb=Number(t.cpm),isNaN(this.bb)&&(this.bb=Number(Object(_r.b)(t.cpm)))),this.bb=this.bb||0,(this.sd=t.impTracker)&&(this.sd=this.sd.replace(/\[ECPM]/g,this.bb||"")),this.ya=t.urls||[],t.url&&-1===this.ya.indexOf(t.url)&&this.ya.unshift(t.url),this.Mh=this.ya.length,this.Cj(),this.ih=t.adEngineType||"VAST",this.le=t.vastXml)try{"GEMINI"===this.ih?this.kf=JSON.parse(this.le):(this.cc=new cc(i).parse(this.le),this.wh=!1,0<this.cc.ads.length&&(this.wh=!0))}catch(t){this.$k=t}if(this.zf=t.vastAds,t.prebidConfig)try{this.Kk=JSON.parse(t.prebidConfig)}catch(t){}if(this.J=t.config,!this.hf&&!this.le&&!this.zf&&"PREBID"!==this.ih)throw Error("URL, VAST XML or Ads should be specified for each ad config entry");return this.fp=t.vendor&&t.vendor.match(/[0-9a-zA-Z]{24}/g)?t.vendor:"",this.gp=t.vendorName,this.Eh=t.name,this.xf=1e3*t.startTimeout||2147483647,this.Ro=Number(t.priorityBoost)||1,this.ke=t.type||t.adTypes&&t.adTypes[0]||"All",this.Xk=t.types||[],this.Go=t.houseAd||!1,this.$o=t.strictSiteCheck||!1,this.Qo=void 0===t.pbl||t.pbl,this.So=t.profitCenter,e=t.saleforce||{},this.wo=e.bookingId,this.Ho=e.lineItemId,this.Sk=(t.trackers||{}).Impression||[],this.yk=t.extraProperties||{},this.Jk=t.podId,this.Qk=t.slotAdSeq,this.sk=t.bsfv,this},e.qp=function(t){this.ya.push(t)},e.Er=function(){return{adxResult:this.lh,slot:this.bc,txid:this.Wk,usid:this.Zk}},e.getUrl=function(t){return Iu?Iu.resolve(this.hf,t):this.hf},e.Ow=function(){return this.Mh},e.Lm=function(){return 1<this.Mh&&this.Mh===this.ya.length+1},e.Cj=function(){return 0<this.ya.length&&(this.hf=this.ya.shift(),!0)},e.Mq=function(){return this.J},e.Fw=function(){return this.Kk},e.zi=function(){var t=this,e=0;return this.ya.forEach(function(i){return e+=t.Be(i)}),e+=this.Be(this.hf)},e.Be=function(t){return-1===Or.a.Id(t||"").indexOf("konduit.me")?this.ib.ub:1e4},e.getVendor=function(){return this.fp||""},e.Lr=function(){return this.gp||""},e.Fq=function(){return this.wo||""},e.jr=function(){return this.Ho||""},e.zr=function(){return this.So||""},e.xw=function(){return this.pf},e.getAdEngineType=function(){return this.ih||""},e.getType=function(){return this.ke||""},e.getAcid=function(){return this.po||""},e.getOverlayURL=function(){return this.No||""},e.getThumbnail=function(){return this.cp||""},e.getFullsizeThumbnail=function(){return this.Do||""},e.getVideoTitle=function(){return this.jp||""},e.getVideoId=function(){return this.ip||""},e.getVideoDuration=function(){return this.hp},e.Mw=function(){return this.Sk},e.getAsid=function(){return this.so||""},e.Dq=function(){return this.vo||""},e.Ld=function(){return this.le||""},e.Qw=function(){return this.cc},e.ww=function(){return this.kf},e.Vw=function(){return this.wh},e.Rw=function(){return this.$k},e.Pw=function(){return this.zf},e.getName=function(){return this.Eh||""},e.vs=function(){return this.$o||!1},e.ks=function(){return this.Go||!1},e.dr=function(){if(this.sd)return Iu?Iu.resolve(this.sd):this.sd},e.Hw=function(){return this.bb*this.Ro},e.rw=function(){return this.bb},e.getRuleId=function(){return this.Vo},e.Lw=function(){return this.xf},e.getTransactionId=function(){return this.Wk},e.kw=function(){return this.lh},e.getUsid=function(){return this.Zk},e.Iw=function(){return this.Nk},e.vw=function(){return this.yk},e.ns=function(){return I(this.ke)},e.rs=function(){return this.Qo},e.Ew=function(){return this.Jk},e.Kw=function(){return this.Qk},e.Cl=function(t){return this.ke===t||"All"===this.ke&&I(t,!0)||-1!==this.Xk.indexOf(t)||-1!==this.Xk.indexOf("All")},e.prepare=function(t,e){if(!(-1<Lr.indexOf(e)))throw Error("Bad type value: ".concat(e));var i=this.clone();return i.ke=e,Iu=t,i},e.clone=function(){var e=new t;return Object(_r.g)(this,e),e},e.Bw=function(){return this.Ik},e.lc=function(){return this.Zo},e.An=function(t){this[dc]=t},e.oi=function(){return this[dc]},e.nw=function(){return this.sk},t}();r.hk="TOP",r.gk="RIGHT",r.dk="BOTTOM",r.fk="LEFT",r.ek="FULL",r.dh="CUSTOM-CENTER";var pc=vr.a.K("OverlayAdConfigEntry"),fc=function(t){function e(){var e=t.call(this)||this;return e.lb=null,e}Rr()(e,t);var i=e.prototype;return i.clone=function(){var t=new e;return Object(_r.g)(this,t),t},i.parse=function(e,i){if(t.prototype.parse.call(this,e,i),e=e.slot||e||{},pc.debug("parse, slot:",e),this.lb=new r,this.lb.Kl=e.delay||1,this.lb.width=e.width,this.lb.height=e.height,this.lb.top=e.top,this.lb.left=e.left,this.lb.Wm=1e3*e.maxShowTime||this.ib.maxLinearShowTime||Number.POSITIVE_INFINITY,this.lb.position=e.position||r.ek,pc.debug("slotInfo",this.lb),e=this.lb.position,i=-1!==[r.dk,r.ek,r.fk,r.gk,r.hk,r.dh].indexOf(e),pc.debug("position support:",e,i),!i)throw Error("Bad overlay slot position: ".concat(e));return this},e}(hc),_c=vr.a.K("AdConfigEntryParser"),mc=function(){function t(){}return t.parse=function(t,e,i){_c.debug("parse",t);var n=t.type||t.adTypes[0];switch(n){case"Overlay":return(new fc).parse(t,e);case"Preroll":case"Midroll":case"Bumper":case"All":case null:return(new hc).parse(t,e,i);default:throw Error("Bad ad config entry type: ".concat(n))}},t}(),yc=vr.a.K("AdsConfig"),vc=function(){function t(t){this.hi=[],this.Vc=[],t=t.config.fm(),yc.debug("parse",t),this.Nv=t.asids||[],this.rp=null==t.prerollInterleave?1:t.prerollInterleave,this.Ib=t.podSize||1,this.Yp=t.domainOptimisation,this.hj=t.overlayTiming;var e=t.timeout||{};this.Vm=1e3*(e.maxLinearShow||90),this.kd=1e3*e.soft||400,this.ub=1e3*e.hard||8*this.kd,this.Bj=Math.min(1e3*e.start||6*this.ub,2147483647),this.Es=Math.min(1e3*e.maxAdSearch||0,2147483647),this.ub<this.kd&&(e=[this.ub,this.kd],this.kd=e[0],this.ub=e[1]),this.volume=t.volume,this.Bd=t.adStrategy||"ADSET_BASED",this.Xr=t.isBrandedContent,this.Hn=t.skipSettings||{},this.ua=t.clickThroughUrl,this.Jt(t.aeg||[]),function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];yc.debug("parseCompanionSlots",e),e.forEach(function(e){e=new Ir(e.width,e.height,e.parent,e.keepCompanion,e.selectorType),t.hi.push(e)})}.call(this,t.companions)}return t.prototype.Jt=function(){var t=this;(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){return t.Vc.push(e.map(function(e){return mc.parse(e,t)}))})},t}();vc.N=["config"];var gc=Symbol(),Ec=vr.a.K("ScriptLoader"),bc=function(){function t(t){this[gc]=t.actionTracker}return t.prototype.Tr=function(t,e){var i=document;Ec.debug("loading",t);var n=i.createElement("script");n.type="text/javascript",n.src=t,function(t,e){function i(){t.onerror=function(){},t.onreadystatechange=function(){},t.onload=function(){},t.parentNode.removeChild(t)}var n=this;t.onload=function(){n[gc].Bu(t.src),i(),null!=e&&e(!0)},t.onerror=function(){i(),null!=e&&e(!1)},t.onreadystatechange=function(){"complete"!==t.readyState&&"loaded"!==t.readyState||t.onload()}}.call(this,n,e),i.getElementsByTagName("head")[0].appendChild(n)},t}();bc.N=["actionTracker"];var Sc=function(){function t(){this.ac=!1}var e=t.prototype;return e.Fg=function(t,e,i){this.Ih=0,this.bp=e,this.oh=t,this.ac=!1,(i||void 0===i)&&this.start()},e.start=function(){this.resume()},e.stop=function(){this.pause()},e.pause=function(){this.ac&&(this.ac=!1,this.Ih+=(new Date).getTime()-this.Rk,clearTimeout(this.Tk))},e.resume=function(){!this.ac&&this.oh&&(this.ac=!0,this.Rk=(new Date).getTime(),this.Tk=setTimeout(this.oh,this.sn()))},e.$c=function(){return this.ac||!1},e.sn=function(){return Math.max(this.bp-this.$p(),0)},e.$p=function(){return this.Ih+(this.ac?(new Date).getTime()-this.Rk:0)},e.ei=function(){this.ac=!1,clearTimeout(this.Tk),this.oh=null},t}(),Ac=Symbol(),Tc=Symbol(),Ic=Symbol(),Cc=function(t){function e(e,i){var n=t.call(this)||this;return n[Tc]=vr.a.K(i||"Pool"),n[Ic]=!1,function(){this[Ac]=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).concat(),this[Tc].debug("Register",this[Ac]);var t=(new Date).getTime();this[Ac].forEach(function(e,i){return e.ie="".concat(t,"_").concat(i)})}.call(tu()(n),e),n}Rr()(e,t);var i=e.prototype;return i.getEntries=function(){return this[Ac]},i.size=function(){return this[Ac].length},i.tg=function(){return 0===this.size()},i.addEventListener=function(i,n){t.prototype.addEventListener.call(this,i,n),i===e.Event.ik&&this.tg()&&this.Gk(i,[this],n)},i.release=function(t){if(t)if(t.ie){for(var i=0;i<this[Ac].length;i++)if(this[Ac][i].ie===t.ie)return t=this[Ac].splice(i,1),this[Tc].debug("Released",t,"pool",this[Ac]),void(this.tg()&&this.dispatchEvent(e.Event.ik,this));q.call(this,t,"not found")}else q.call(this,t,"entry w/o pool key");else q.call(this,t,"invalid entry value")},e}(Cu.default);Cc.Event={ik:"Pool.Released.All"};var Rc=i(15),Lc=vr.a.K("AEGOverrider"),Pc=Symbol(),Oc=Symbol(),Dc=function(){function t(t){Lc.debug("init"),this[Pc]=[],this[Oc]=t}return t.prototype.Us=function(t){return Object(_r.p)(this[Oc])?t:(this[Pc]=t,Array.isArray(this[Pc])?(this[Oc].vendor||(this[Oc].vendor=Rc.a["aeg.default_vendor"]),0<this[Pc].length&&0<this[Pc][0].length?(delete(t=this[Pc][0][0]).url,delete t.vastXml,this[Pc][0][0]=Object(_r.k)(t,this[Oc])):(this[Pc][0]=[],this[Pc][0].push(this[Oc])),this[Pc]):void 0)},t}(),Mc=Symbol(),wc=Symbol(),Nc=Symbol(),kc=Symbol(),Bc=Symbol(),xc=Symbol(),Uc=Symbol(),Vc=Symbol(),jc=Symbol(),Fc=Symbol(),Hc=vr.a.K("EntriesServerResponseParser"),Yc=function(){function t(t){this[wc]=t.config,this[Mc]=t.adsConfig,this[Fc]=t.injector}return t.prototype.parse=function(t,e){var i=this;if(!Object(_r.u)(t))throw Error("Received bad source ".concat(t));this[Nc]=t.apid,this[kc]=t.txid,this[Bc]=t.adxResult,this[xc]=t.usid,this[Uc]=t.auid,this[Vc]=this[wc].ig().aegOverride,this[jc]=new Dc(this[wc].pr()),e=function(t,e){var i=this;return t.map(function(t){return W.call(i,t,e)})}.call(this,t.slots||(t.aeg?[t]:[]),e);var n=t.pods||[];if(n.forEach(function(t){t.slots&&t.slots.forEach(function(e,n){e.adSeq=n+1,e.podId=t.id,e.aeg=W.call(i,e),e.hasAds=z(e)})}),0===n.length){n=e[0]&&e[0][0]&&e[0][0][0]&&e[0][0][0].getType()||"Preroll";var r={aeg:e[0]||[],type:n};r.hasAds=z(r),n=[{slots:[r],type:n}]}return{zd:e,Cg:n,source:t}},t}();Yc.N=["config","adsConfig","injector"];var Gc=vr.a.K("BaseAdEntriesLoader"),Kc=Symbol(),qc=function(t){function e(e){var i=t.call(this)||this;return i[Kc]=e.errorTracker,i.ya=e.urls,i.Fh=e.parametersCombine,i}return Rr()(e,t),e.prototype.load=function(t,e){return e=e&&Object(_r.C)(e)||"",A("".concat(t,"&").concat(e),null,{timeout:5e3,withCredentials:!0}).then(function(t){return t.data}).catch(function(t){Gc.error("Failed to load entries",t)})},e}(Cu.default);qc.N=["errorTracker","parametersCombine","urls"];var Wc=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.load=function(e){return t.prototype.load.call(this,this.ya.vq(),this.Fh.Bq(e))},e}(qc);Wc.N=["errorTracker","parametersCombine","urls"];var zc=Symbol(),Xc=Symbol(),Qc=Symbol(),Jc=Symbol(),Zc=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.load=function(e,i){if(this[Jc]=e,e=this.Fh.Oi(this[Jc]),X(this[Jc])){if((i=this[Xc][this[Jc]]&&this[Xc][this[Jc]][i]&&this[Xc][this[Jc]][i].shift()).calculated)return fr.a.resolve(this.mj({schema:{pods:[i]}}));e.schemaId=this[zc],e.podId=i.id}return t.prototype.load.call(this,this.ya.wq(),e).then(this.mj.bind(this))},i.mj=function(t,e){e&&(this[Jc]=e),(e=t.schema||{}).id&&(this[zc]=e.id),e=e.pods||[],function(t){t.forEach(function(t){t.type=mr.a.ql(t.type),t.slots&&t.slots.forEach(function(t){t.type=mr.a.ql(t.type)})})}.call(this,e),function(t){function e(t,e){return"Bumper"===t.type?1:"Bumper"===e.type?-1:0}return t.forEach(function(t){t.slots&&t.slots.sort(e)}),t}.call(this,e);var i=function(t){var e=this,i=t.filter(function(t){return t.type===e[Jc]});return t=t.filter(function(t){return t.type!==e[Jc]&&t.calculated}),i=[].concat.apply([],i.filter(function(t){return t.slots}).map(function(t){return t.slots})),t=[].concat.apply([],t.filter(function(t){return t.slots}).map(function(t){return t.slots})),this[Qc]=i.length,i.concat(t)}.call(this,e),n=function(t){var e=this;this[Xc]={};var i={};return t.forEach(function(t){var n=t.type;X(n)&&(e[Xc][n]||(e[Xc][n]={}),e[Xc][n][t.time]||(e[Xc][n][t.time]=[]),e[Xc][n][t.time].push(t),i[n]||(i[n]=""),i[n]+="".concat(t.time,";"))}),i}.call(this,e),r=this[Qc];return this[Qc]=null,{defaultSlot:t.slot,podSize:r,pods:e,slots:i,timings:n,version:t.version||"1"}},e}(qc);Zc.N=["errorTracker","parametersCombine","urls"];var $c=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.load=function(e){return t.prototype.load.call(this,this.ya.xq(),this.Fh.Oi(e))},e}(qc);$c.N=["errorTracker","parametersCombine","urls"];var td=Symbol(),ed=function(){function t(t){this[td]=t}return t.prototype.Fl=function(t){switch(t){case"CONTENT_BASED":t=$c;break;case"CONTENT_BASED_WITH_PODS":t=Zc;break;default:t=Wc}return new t(this[td])},t}();ed.N=["errorTracker","parametersCombine","urls"];var id=vr.a.K("AdEntriesManager"),nd=Symbol(),rd=Symbol(),od=Symbol(),sd=Symbol(),ad=Symbol(),ud=Symbol(),ld=Symbol(),cd=Symbol(),dd=Symbol(),hd=Symbol(),pd=1,fd=function(){function t(t){this[sd]=t.eventBus,this[rd]=t.adsConfig,this[od]=t.config;var e=t.injector;this[hd]=t.slotOpportunityHandler,this[ld]=e.oa(ed),this[cd]=e.oa(Yc),this[ud]=this[ld].Fl(this[rd].Bd),this[nd]=[],this[ad]={}}var e=t.prototype;return e.release=function(t){if(!(this[rd].Vc&&0<this[rd].Vc.length)){for(var e=0;e<this[nd].length;e++){for(var i=this[nd][e],n=0;n<i.length;n++){var r=i[n];if(r.nd===t.nd)return r.release(t),void(0===r.size()&&(id.debug("Remove empty pool",r),i.splice(n,1)))}0===i.length&&(id.debug("Remove empty ad pools",i),this[nd].splice(e,1))}id.warn("Unable to release entry because pool doesn't exist",t,this[nd])}},e.qn=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;this[sd].dispatchEvent(new Jo("Reporting.Ad.Request",{type:t}));var n=this[od].ig().aegOverride;this[rd].Vc&&0<this[rd].Vc.length?(i=new Ga(Ga.LOADED,{zd:[this[rd].Vc]},t),Q.call(this,i.data.zd),this[sd].dispatchEvent(i)):i?"2"===i.version?(this[rd].Bd="CONTENT_BASED_WITH_PODS",this[ud]=this[ld].Fl(this[rd].Bd),tt.call(this,this[ud].mj(i,t),t)):tt.call(this,i,t):n&&n.replace?tt.call(this,{aeg:[]},t):(id.debug("receive ad entries"),Z.call(this,t,e))},e.Um=function(t){(t=$(t))&&(this[ad][t]=t)},e.ze=function(t){(function(){this[nd]=this[nd].filter(function(t){return 0<t.length});for(var t=0;t<this[nd].length;t++)this[nd][t]=this[nd][t].filter(function(t){return 0<t.size()})}).call(this),function(){var t=this;this[nd]=this[nd].filter(function(t){return 0<t.length});for(var e=0;e<this[nd].length;e++)this[nd][e]=this[nd][e].filter(function(e){return 0<e.getEntries().filter(function(e){return!t[ad][$(e)]}).length})}.call(this);var e=this[nd][0]||[];if(this[nd].length<this[dd]&&0<e.length){var i=e[0].getEntries();0<i.length&&-1!==["html5","scriptapi","html-vpaid"].indexOf(this[od].Yc())&&this[hd].Jj(i[0].Er())}return this[dd]=this[nd].length,(e=e.filter(function(e){return e.getEntries().filter(function(e){return e.Cl(t)})}))[0]&&e[0].getEntries()||[]},e.Ht=function(t){Q.call(this,[t])},t}();fd.N=["eventBus","adsConfig","config","injector","slotOpportunityHandler"];var _d=i(27),md=i.n(_d),yd=i(26),vd=i.n(yd),gd=function(t){var e,i,n,r=null,o=null,s=null;return["","webkit","moz","ms","o"].forEach(function(a){e=a?"".concat(a,"VisibilityState"):"visibilityState",i=a?"".concat(a,"Hidden"):"hidden",n="".concat(a,"visibilitychange"),r||void 0===t[e]||(r=e),o||void 0===t[i]||(o=i),s||void 0===t[i]||(s=n)}),{hidden:o,visibilityState:r,Wu:s}}(pr.a.Aa().document),Ed=function(){function t(){}return t.hasFocus=function(){return!(!et(pr.a.Aa())&&!et(pr.a.Aa().top))},t.wb=function(){return!!t.hasFocus()||!1===pr.a.Aa().document[gd.hidden]||"visible"===pr.a.Aa().document[gd.visibilityState]},t.Tw=function(){return gd.Wu},t}();i(68);var bd=Symbol(),Sd=Symbol(),Ad=function(){function t(t,e){Array.isArray(t)||(t=[t]),this[bd]=e,this[Sd]=t.slice(0)}var e=t.prototype;return e.um=function(){return this[Sd]},e.apply=function(t){if(!t||!this[Sd].some(function(e){return-1<t.indexOf(e)}))return t;var e=t,i=this[bd];i=null!=(i=Object(_r.q)(i)?i():i)?i.toString():"";for(var n=0;n<this[Sd].length;n++){var r=this[Sd][n],o=null!=r.match(/^[^\w%\s]/g),s=null!=r.match(/[^\w%\s]$/g);r=r.replace(/([{}\(\)\^$&.\*\?\/\+\|\[\\\\]|\]|\-)/g,"\\$1"),e=e.replace(new RegExp((o?"":"([^\\w%\\s]|^)")+r+(s?"":"([^\\w%\\s]|$)"),"g"),(o?"":"$1")+i+(s?"":"$2"))}return e},e.Rl=function(t){return t.um()[0]===this.um()[0]},t}(),Td=function(){function t(t,e){this.Oo=t,this.To=e}return t.prototype.apply=function(t){return t.replace(this.Oo,this.To)},t}(),Id=Symbol(),Cd=function(){function t(t){this[Id]=t||[]}var e=t.prototype;return e.join=function(e){if(!e)return this;var i=new t,n=this;return i.resolve=function(t){return e.resolve(n.resolve(t))},i},e.resolve=function(t){if(!t)return t;for(var e=0;e<this[Id].length;e++)t=this[Id][e].apply(t);return t},t}(),Rd=vr.a.K("Common"),Ld=document.createElement("video");document.createElement("video");var Pd=Symbol(),Od=Symbol(),Dd=Symbol(),Md=Symbol(),wd=Symbol(),Nd=Symbol(),kd=function(){function t(t,e){var i=this;this[Pd]=t.environment,this[Od]=t.config,this[Dd]=t.smartViewability,this[Md]=t.display,this[Nd]=t.hostWindowParamsObtainer,this.Eg=(e||[]).concat([[ku,function(){var t=i[Od].Xf();return t&&t.utid}],[xu,function(){return i[Od].Ka("app_id")}],[Uu,function(){return i[Pd].ba()&&i[Pd].ba().oi()||i[Md].oi()}],[Vu,function(){return i[Od].He()?1:0}],[ju,function(){return i[Od].bg()}],[Fu,function(){return Object(_r.o)(i[Od].Ka("beoncw"),0)}],[Hu,function(){return Object(_r.o)(i[Od].Ka("beonvid"),1)}],[Yu,function(){return i[Od].ti()}],[qu,function(){return Math.random().toString().slice(2,10)}],[Wu,function(){return lt.call(i).height}],[zu,function(){return lt.call(i).width}],[Xu,function(){return rt(i[Md].getCurrentTime(),!0,!0)}],[Ju,function(){return ct.call(i).deRssId}],[Zu,function(){return encodeURIComponent(dt.call(i))}],[tl,function(){return i.Vq()}],[el,function(){return location.host}],[rl,function(){return Ed.wb()?1:0}],[dl,function(){return i[Md].isMuted()?1:0}],[hl,function(){return""}],[pl,function(){return i[Od].kg()}],[yl,function(){return i[Od].Yc()}],[ml,function(){var t=lt.call(i);return 0===(t=Math.max(t.width,t.height))?-1:350>t?1:500>t?2:3}],[gl,function(){return ct.call(i).rssVideoId}],[Al,function(){return(new Date).getTime()}],[Il,function(){return encodeURIComponent(pr.a.Jr())}],[Rl,function(){return ct.call(i).Tv}],[Ll,function(){return ct.call(i).description}],[Pl,function(){return ct.call(i).detailPage}],[Ol,function(){var t=ct.call(i).metadata||{};return t.duration?Math.round(t.duration/1e3):""}],[Dl,function(){var t=ct.call(i);return t.videoUrls&&t.videoUrls[0]}],[Ml,function(){return lt.call(i).height}],[wl,function(){return ct.call(i).id}],[Nl,function(){return ct.call(i).keywords}],[kl,function(){return(i[Pd].Ki()||{}).Zv}],[Bl,function(){return ct.call(i).title}],[xl,function(){return encodeURIComponent(ct.call(i).title||"")}],[Ul,function(){return dt.call(i)}],[Vl,function(){return lt.call(i).width}],[Mu.concat(cl),function(){return i[Dd].na()}],[jl.concat(Fl),function(){return i[Dd].Ce()}],[Hl,function(){return i[Od].sm().vvuid}],[ul,function(){return i[Od].Hd()?i[Od].Hd().latitude:""}],[ll,function(){return i[Od].Hd()?i[Od].Hd().longitude:""}],[sl,function(){return i[Od].Hd()?i[Od].Hd().ipAddress:""}],[$u,function(){return pr.a.br()}],[El,function(){return i[Od].Ka("sid")||i[Od].Bi()}],[bl,function(){return parseInt(100*i[Pd].getVolume(),10)}],[Sl,this[Nd].lc()],[nl,function(){var t=i[Od].dg();return t&&t.euconsent}],[ol,function(){var t=i[Od].dg();return t&&t.gdpr}],[vl,function(){var t=i[Pd].jm();return 0<=t?t+1:""}],[al,function(){var t=i[Od].dg();return t&&t.isOathFirstParty}],[Kl,0]]),this[wd]=this.Eg.map(function(t){return t=vd()(t,2),new Ad(t[0],t[1])})}var e=t.prototype;return e.vp=function(t){return t.reduce(function(t,e){e=vd()(e,2);var i=new Ad(e[0],e[1]);return(e=Object(_r.m)(t,function(t){return t.Rl(i)}))?t[t.indexOf(e)]=i:t.push(i),t},md()(this[wd]))},e.resolve=function(t,e){return e=e?this.vp(e):this[wd],new Cd(e).join(nt(/(\[MACROS:)(.+?)(\])/g,st.bind(this)).join(nt(/(\|MACROS:)(.+?)(\|)/g,st.bind(this))).join(nt(/(\[ENC_MACROS:)(.+?)(\])/g,at.bind(this))).join(nt(/(\|ENC_MACROS:)(.+?)(\|)/g,at.bind(this)))).join(nt(/(\[META:)(.+?)(\])/g,ut.bind(this)).join(nt(/(\|meta:)(.+?)(\|)/g,ut.bind(this)))).resolve(t)},e.Vq=function(){var t=location.hostname.split(/\./);switch(t.length){case 2:return t.slice(-2)[0];default:return t.slice(-3)[0]}},t}();kd.N=["environment","config","smartViewability","display","hostWindowParamsObtainer"];var Bd=Symbol(),xd=Symbol(),Ud=Symbol(),Vd=Symbol(),jd=Symbol(),Fd=Symbol(),Hd=[1,2,7].toString(),Yd=function(t){function e(e){var i=e.geminiMacrosResolver,n=t.call(this,e,[[wu,function(){return n[Bd].Rb()}],[il,function(){return n[Bd].ba()&&n[Bd].ba().bb||""}],[Qu,function(){return n[xd].Qq()}],[fl,function(){return n[xd].vr()}],[Pu,function(){return n[xd].yq()}],[_l,function(){return n[Ud].wm()}],[Cl,function(){return n[Bd].Ea()}],[Ru,function(){return Math.round(n[Bd].getDuration())}],[Bu,function(){return Hd}],[Ku,function(){return n.Hq()}],[Yl,function(){return n[Bd].qq()}],[Ou,function(){return n[Bd].Sb()}],[Nu,function(){return n[Bd].Lb()}],[Tl,function(){return n[Bd].Qb()}],[Gu,function(){return n[jd].ui().join(",")}],[ql,function(){return-1}],[Wl,function(){return-2}]].concat(i.Eg))||this;return n[xd]=e.adTimeLogger,n[Ud]=e.config,n[Vd]=e.environment,n[jd]=e.blockedCategoriesHandler,n[Fd]=i,n}Rr()(e,t);var i=e.prototype;return i.hd=function(t){return this[Bd]=t,this},i.Hq=function(){var t=this[Bd].ag();if(this[Vd].Vr())return"4";switch(t){case"Preroll":case"Bumper":return"1";case"Midroll":return"2";case"Overlay":return"0";default:throw Error("Bad ad type: ".concat(t))}},e}(kd);Yd.N="adTimeLogger adsConfig environment config smartViewability display blockedCategoriesHandler hostWindowParamsObtainer geminiMacrosResolver".split(" ");var Gd=Symbol(),Kd=function(t){function e(){var e=t.call(this)||this;return e[Gd]="Engine.LOADING",e}Rr()(e,t);var i=e.prototype;return i.hl=function(){},i.load=function(){},i.yb=function(){this[Gd]="Engine.RUNNING",void 0!==this.Df&&this.setVolume(this.Df)},i.ready=function(){this[Gd]="Engine.READY"},i.stop=function(){this[Gd]="Engine.STOPPED"},i.complete=function(t){this[Gd]=t?"Engine.FAILED":"Engine.COMPLETE"},i.skip=function(){},i.pause=function(){},i.resume=function(){},i.setVolume=function(t){this.Df=t},i.getDuration=function(){return 0},i.getCurrentTime=function(){return 0},i.Ea=function(){return 0},i.getAdSkippableState=function(){return!1},i.qs=function(){return"Engine.LOADING"===this[Gd]},i.vg=function(){return"Engine.READY"===this[Gd]},i.$c=function(){return"Engine.RUNNING"===this[Gd]},i.Km=function(){return"Engine.COMPLETE"===this[Gd]},i.Ie=function(){return"Engine.FAILED"===this[Gd]},i.Ke=function(){return"Engine.STOPPED"===this[Gd]},i.jb=function(){return!1},i.ba=function(){return null},i.Rb=function(){return null},i.Sb=function(){return null},i.Lb=function(){return null},i.Qb=function(){return null},i.getAdCompanions=function(){return""},e}(Cu.default),qd=vr.a.K("AdEngineAdapter"),Wd=Symbol(),zd=Symbol(),Xd=Symbol(),Qd=Symbol(),Jd=function(t){function e(e,i,n){var r=t.call(this)||this;return r[Wd]=e,r[Xd]=i,r[Qd]=n,r[zd]=$o.a.group($o.a.bind(r[Wd],Zo.ob,r.ready.bind(tu()(r))),$o.a.bind(r[Wd],Zo.Db,r.complete.bind(tu()(r))),$o.a.bind(r[Wd],Zo.Na,r.dispatchEvent.bind(tu()(r)))),r}Rr()(e,t);var i=e.prototype;return i.hl=function(){this[zd].link($o.a.group(arguments))},i.load=function(){qd.debug("load"),this[Wd].load()},i.ready=function(e){t.prototype.ready.call(this),qd.debug("onEngineReady",e),e.Ra=this[Wd].ba(),this.dispatchEvent(e)},i.yb=function(){if(!this.Ke()){t.prototype.yb.call(this);var e=this.ba().getType();qd.debug("run","adType",e),"Overlay"===e?this[Wd].Yd():this[Wd].zj(this[Xd].Vm)}},i.stop=function(){var e=!this.Km()&&!this.Ie()&&!this.Ke();qd.debug("stop",e),e&&(this[Wd].stop(),t.prototype.stop.call(this))},i.complete=function(e){qd.debug("onEngineComplete",e),e.Ra=this.ba(),e.pp=this,(this.$c()||e.data.error)&&this[Qd].release(this.ba()),t.prototype.complete.call(this,e.data.error),this.dispatchEvent(e),this[zd].Z()},i.skip=function(){this[Wd].skip()},i.pause=function(){this[Wd].pause()},i.resume=function(){this[Wd].resume()},i.setVolume=function(e){t.prototype.setVolume.call(this,e),this.$c()&&this[Wd].setVolume(e)},i.getDuration=function(){if(this[Wd].getDuration)return this[Wd].getDuration()},i.getCurrentTime=function(){if(this[Wd].getCurrentTime)return this[Wd].getCurrentTime()},i.Ea=function(){if(this[Wd].Ea)return this[Wd].Ea()},i.getAdSkippableState=function(){if(this[Wd].getAdSkippableState)return this[Wd].getAdSkippableState()},i.Rb=function(){if(this[Wd].Rb)return this[Wd].Rb()},i.Sb=function(){if(this[Wd].Sb)return this[Wd].Sb()},i.Lb=function(){if(this[Wd].Lb)return this[Wd].Lb()},i.Qb=function(){if(this[Wd].Qb)return this[Wd].Qb()},i.jb=function(){if(this[Wd].jb)return this[Wd].jb()},i.ba=function(){return this[Wd].ba()},i.getAdCompanions=function(){if(this[Wd].getAdCompanions)return this[Wd].getAdCompanions()},e}(Kd),Zd=Symbol(),$d=function(){function t(t){this[Zd]=t}var e=t.prototype;return e.Pf=function(){},e.getType=function(){return null},e.ri=function(){return this[Zd]},t}();i(88);var th=function(t){function e(i,n,r,o){return(i=t.call(this,i)||this).severity=void 0===n?e.gf:n,i.timeout=r,i.pa=o,i}return Rr()(e,t),e}(wr);th.ko=0,th.gf=1,th.nv=2;var eh=function(t){function e(e,i){return(e=t.call(this,e)||this).Mn=i||0,e}return Rr()(e,t),e}(wr),ih=vr.a.K("VastLoader"),nh=Symbol(),rh=Symbol(),oh=Symbol(),sh=Symbol(),ah=Symbol(),uh=Symbol(),lh=Symbol(),ch=Symbol(),dh=Symbol(),hh=Symbol(),ph=Symbol(),fh=Symbol(),_h=Symbol(),mh=Symbol(),yh=Symbol(),vh=function(t){function e(e,i,n){var r=t.call(this)||this;return r[uh]=e,r[sh]=i,r[nh]=n,r[ch]=0,r[rh]=new cc(r[uh]),r.V=r[uh].eb(),r[ah]=r.V.M("urls"),r[lh]=r.V.M("errorTracker"),r.J=r.V.M("config"),r[oh]=r.V.M("adsConfig").ub,r[fh]=r.V.M("blockedCategoriesHandler"),r[yh]=r.V.M("vastRequestLoader"),r}Rr()(e,t);var i=e.prototype;return i.Ri=function(){this[ch]=0},i.Zd=function(){var t=this[nh]?this[nh].zi():this[oh];this[ph]=window.setTimeout(function(t){vt.call(this,fo),pt.call(this,new eh("Loading timeout ".concat(t," ms is exceeded"),t),fo)}.bind(this,t),t)},i.Xs=function(t,e,i,n){ih.debug("parseAndProcess",t);try{var r=this[rh].parse(t);ih.debug("vastModel",Object.assign({},r)),r.Dj=n,e&&e(r),this.fd(r,null,0,n)}catch(t){ih.error("Failed to parse VAST ",t),!i&&_t.call(this)||this.Wc(t.message,null,t.code||no)}},i.fd=function(t,e){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=3<arguments.length?arguments[3]:void 0;if(ih.debug("processModel",t),0===t.ads.length)t.ve.forEach(function(t){i[lh].gc(t.url.replace(/\[ERRORCODE\]|%5BERRORCODE%5D|\{errNo\}/g,"303"))}),(n=0<this[ch]&&zr)?vt.call(this,n):n=Xr,this.Wc(gh,null,n);else{e||mt(t);var o=t.ads[n];this[uh].dispatchEvent(new Jo(Sh,{ad:o,ni:this[nh],vc:r})),this[dh]=t,o.Kj=o.aa&&o.aa[0]&&o.aa[0].id||t.ed&&t.ed.Kj,o.Gl=t.ed&&t.ed.Gl||o.Kj,o.Le?(this[ch]+=1,this[hh]=t.ads.splice(n,1)[0],this[_h]=o.ne,o.Cd&&this[fh].Mt(o.Cd),8>=this[ch]?(o.rn(this[sh],{},this.J.He()),ft.call(this,o.vl.url,function(e){o.Ap(e),o.ht(e,i[hh]),e.parent=t,e.ed=o})):(this[dh]=null,vt.call(this,po),this.Wc("Max number of wrapper redirects ".concat(8," is exceeded"),null,po))):(this[hh]=t.ads[n],o.bi&&-1!==this[fh].ui().indexOf(o.bi)?(vt.call(this,xr),this.Wc("Inline ad with category ".concat(o.bi," has been blocked"),null,xr)):yt.call(this,t))}},i.gt=function(t,e){this.fd(t,void 0,e)},i.load=function(t){this.Ri(),this.Zd(),ft.call(this,t)},i.Up=function(){--this[ch]},i.Wc=function(t,e,i){var n=this[dh];this[dh]=null,ih.debug("failover",t,n),i=i||Gr,this[mh]=i,n?("VAST ajax error"===t&&vt.call(this,i),0===n.ads.length&&n.parent&&(t=n.ed,e=new ks(ks.Da,null,null,{error:i}),t.dispatchEvent(e),this[sh].Oe(e),n=n.parent,this[dh]=n),this[hh]===n.ads[0]&&n.ads.shift(),this.fd(n,!0)):pt.call(this,t+(e?" (".concat(e,")"):""),i)},e}(Cu.default),gh="No ads provided",Eh="VastLoader.Vast.Loading",bh="VastLoader.Vast.Loaded",Sh="VastLoader.Vast.ProcessAd",Ah=Symbol(),Th=Symbol(),Ih=function(t){function e(e,i,n){return(i=t.call(this,e,i)||this)[Ah]=n,i[Th]=e,i}return Rr()(e,t),e.prototype.load=function(){this.Ri(),this.Zd();var t=new oc;t.ads=this[Ah]||[],this.fd(t)},e}(vh),Ch=Symbol(),Rh=Symbol(),Lh=function(t){function e(e,i,n){return(i=t.call(this,e,i)||this)[Ch]=e,i[Rh]=n,i}return Rr()(e,t),e.prototype.load=function(){this.Ri(),this.Zd(),this[Ch].dispatchEvent(new Zo(Zo.Vg,null,this[Rh]));var t=this[Rh].cc;t?this.fd(t):(t=this[Rh].$k,this.Wc(t.message,null,t.code||no))},e}(vh);i(77);var Ph=function(){function t(t,e){this.me=t.slice(),this.tk=e,this.qf=[],gt.call(this)}var e=t.prototype;return e.reset=function(){for(var t=0;t<this.qf.length;t++)this.qf[t].Z();this.qf=[]},e.release=function(t){-1!==(t=this.me.indexOf(t))&&(this.me.splice(t,1),gt.call(this))},e.Ju=function(){for(var t=0;t<this.me.length;t++){var e=this.me[t];e=$o.a.bind(e,"VASTAdEngineComplete",this.release.bind(this,e)),this.qf.push(e)}},t}(),Oh=function(t){function e(i){var n=t.call(this,e.mk)||this;return n.tn=i,n}return Rr()(e,t),e.prototype.clone=function(){return new e(this.tn)},e}(Jo);Oh.mk="AdRemainingTimeUpdateEvent";var Dh=vr.a.K("AdView"),Mh=Symbol(),wh=function(t){function e(e,i,n,r,o,s){Dh.debug("create",{ad:i,creative:n,mediaContent:r});var a=t.call(this)||this;return a.je=e,a.ad=i,a.va=n,a.da=r,a.Mk=!0,a.pb=o,a.V=o.eb(),a.be=a.V.M("adContainerProvider"),a.S=a.be.Ob(),a.uh=a.V.M("errorTracker"),a.J=a.V.M("config"),a.ae=s.ba(),a.ro=s,a.Fe=Object(_r.h)("div",{class:"ad-icons-layer",style:"position: relative"}),a.type="AdView",a}Rr()(e,t);var i=e.prototype;return i.Md=function(t){var e=this;(this.T=this.Wd())?(this.pb.addEventListener("AdSystem.Resize",this.T.resize.bind(this.T)),this.pb.addEventListener("AdSystem.InvokeAdMethod",function(t){e.T.invokeAdMethod(t.name,t.data)}),this.T.H=this,this.setVolume(t),function(){if(this.T.Od&&this.T.Od()&&!this.J.Pd()){var t=this.ae&&this.ae.getUrl()&&Or.a.Ta("o2token",this.ae.getUrl())?"enabled":"disabled";this.uh.ld("ad",null,"Player gets o2shim to play ad. Open API: ".concat(t))}this.T.load()}.call(this)):this.complete(!0)},i.noResize=function(){this.Mk=!1},i.Uc=function(){this.resize(),this.T.element&&this.S.appendChild(this.T.element),this.S.appendChild(this.Fe),this.T.rg(),this.Hg()},i.Ab=function(){this.T&&this.T.Ab()},i.resize=function(){if(this.Mk&&this.T.element){var t=this.T.element.style;t.position="absolute";var e=this.ai(this.S.offsetWidth,this.S.offsetHeight,this.getAdWidth(),this.getAdHeight(),this.Zf(),this.Yf());t.top="".concat(e.y,"px"),t.left="".concat(e.x,"px"),t.width="".concat(e.width,"px"),t.height="".concat(e.height,"px")}},i.stop=function(t){Dh.debug("stop",this.T),this.T?t?this.T.$d("Stopping ad initiation: start timeout reached"):this.T.stop():this.complete(!0)},i.skip=function(){Dh.debug("skip",this.T),this.T?this.T.skip():this.complete(!0)},i.complete=function(t,e){Dh.debug("complete"),this.T&&Object(_r.A)(this.T.element),Object(_r.A)(this.Fe),this.T&&this.T.error?this.dispatchEvent(new Jo("VASTAdError")):t?this.dispatchEvent(new Jo("VASTAdFinishedForce")):this.dispatchEvent(new Jo("VASTAdFinished")),this.li(t,e)},i.li=function(t,e){var i=new Jo("VASTAdEngineComplete");e&&(i.data=e.data,i.currentTime=e.currentTime),i.force=t,this.dispatchEvent(i)},i.Hg=function(){},i.Tc=function(t,e){if(Dh.debug("dispatchVastEvent",t,e),t===ks.Da){if(this.Co)return;this.Co=!0,this.ro.uc("loaded",e.error,e.Kb)}this.ad.dispatchEvent(new ks(t,this.va,null,e))},i.Qf=function(t,e){Dh.debug("dispatchVastTrackerEvent",t,e),this.ad.dispatchEvent(new va(t,this.va,e))},i.se=function(t,e,i){var n;Dh.debug("dispatchClickThrough",t),this[Mh]=!i,i||(n=this.Mb())&&!e||!t||"string"!=typeof t||(n=t),this.ad.dispatchEvent(new ks(ks.hb,this.va,n))},i.setVolume=function(t){void 0!==t&&(this.Df=t),this.T&&this.T.setVolume(this.Df)},i.pause=function(){this.T&&this.T.pause()},i.pg=function(){this.dispatchEvent(new Jo("VASTAdImpression"))},i.bn=function(){this.jj(),this.jn(),this.dispatchEvent(new Jo("VASTAdPaused",void 0))},i.Bg=function(t){this.dispatchEvent(new Jo("VASTAdVolumeChanged",t))},i.Ag=function(t){t.Bl=this.ad.Bl,this.dispatchEvent(new Jo("VASTAdTimeUpdate",t)),this.Qf(ra,t)},i.Ts=function(){this.dispatchEvent(new Jo("VASTAdWaiting"))},i.jn=function(){this.je&&this.je.pause()},i.resume=function(){this.T&&this.T.resume()},i.dn=function(){this.wj(),this.xn(),this.dispatchEvent(new Jo("VASTAdResumed"))},i.xn=function(){this.je&&this.je.resume()},i.sq=function(){if(this.T){var t=this.T.error;return t&&"object"===Mr()(t)&&(t.Ba=this.ad.Ba||""),t}return null},i.ai=function(t,e,i,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!0);var s=t,a=e;return r?o&&(s/a<i/n?a=n*s/i:s=i*a/n):(s=i,a=n),{height:a,width:s,x:(t-s)/2,y:(e-a)/2}},i.getAdWidth=function(){return-1},i.getAdHeight=function(){return-1},i.Zf=function(){return!0},i.Yf=function(){return!0},i.Me=function(){this.ad.dispatchEvent(new ks("linearChange",this.va))},i.Wd=function(){},i.ba=function(){return this.ae},i.Mb=function(){},i.jj=function(){},i.wj=function(){},i.zw=function(){return this.da},i.ur=function(){return this[Mh]},i.wg=function(t){return(t=t||this.da)&&t.Ja&&"vpaid"===t.Ja.toLowerCase()},e}(Cu.default),Nh=i(131),kh=i.n(Nh),Bh=i(132),xh=i.n(Bh),Uh=Symbol(),Vh=Symbol(),jh=Symbol(),Fh=function(t){function e(e,i){var n=t.call(this)||this;return n[jh]=e,n[Vh]=Object(_r.h)("div",{id:"oath-volume-button-container",style:{bottom:"20px",cursor:"pointer",height:"26px",position:"absolute",right:"20px",width:"26px",zIndex:10}},i),n[Uh]=Object(_r.h)("div",{id:"oath-volume-button-icon",style:{backgroundColor:"rgba(34, 34, 34, 0.85)",borderRadius:"20%",display:"block",height:"100%",position:"absolute",width:"100%"}},n[Vh]),Et.call(tu()(n)),n[Vh].addEventListener("click",function(t){t.stopPropagation(),this.dispatchEvent(Fh.hb,!this[jh])}.bind(tu()(n))),n}Rr()(e,t);var i=e.prototype;return i.Ss=function(t){this[jh]=t,Et.call(this)},i.destroy=function(){Object(_r.A)(this[Vh])},e}(Cu.default);Fh.hb="MuteButton.Click";var Hh=/^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)o2shim/i,Yh=Symbol(),Gh=Symbol(),Kh=Symbol(),qh=function(){function t(t,e){this.X=t,this.td=e,this[Yh]=[],this.td&&this.td.reset()}var e=t.prototype;return e.Ab=function(){},e.rg=function(){},e.createElement=function(){},e.load=function(){this.element=this.createElement()},e.zg=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this.H.va;t.duration=e.duration,t.skippable=e.jd||!1,t.skipOffsetTime=e.Jg||null,t.skipOffsetPercent=e.Ig||null,(e=this.H.ad?this.H.ad.Va:null)&&(t.sequence=e),this.X&&this.X.aq(),this.Yl(t),this.H.dispatchEvent(new Jo("VASTAdStarted",t))},e.ej=function(){this.H.dispatchEvent(new Jo("VastMediaElementReady"))},e.Yl=function(t){this[Gh]||(this.H.dispatchEvent(new Jo("VASTAdStarting",t)),this[Gh]=!0)},e.dd=function(){this.fe||(this.fe=!0,this.H.pg(),this.H.Tc(ks.Bc),this.H.dispatchEvent(new Jo(Zo.We,{Ba:this.H.ad&&this.H.ad.Ba||""})),this.track(Ws))},e.Gj=function(t){.25<t&&this.Ma(Qs),.5<t&&this.Ma($s),.75<t&&this.Ma(la)},e.stop=function(){this.H.complete(!0)},e.$d=function(){this.stop()},e.skip=function(){this.H.stop()},e.track=function(t,e){this.H.Qf(t,e)},e.Ma=function(t){t===qs&&!this[Kh]||-1!==this[Yh].indexOf(t)||(this[Yh].push(t),this.track(t,void 0))},e.Od=function(){return Hh.test(this.Za)},e.resize=function(){},e.invokeAdMethod=function(){},e.setVolume=function(){},e.resume=function(){},e.pause=function(){},e.getCurrentTime=function(){var t=this.kc(),e=this.getDuration();return 0<e&&0<t?e-t:0},e.kc=function(){return-1},e.getDuration=function(){return-1},e.oj=function(){this[Kh]=!0},e.Yi=function(){return this[Kh]},t}(),Wh=vr.a.K("SimpleVideoMediaElement"),zh={ef:"created",PAUSED:"paused",PLAYING:"playing",Fb:"stopped"},Xh=Symbol(),Qh=Symbol(),Jh=Symbol(),Zh=Symbol(),$h=Symbol(),tp=Symbol(),ep=Symbol(),ip=function(t){function e(e,i,n,r){return e=t.call(this,e,r.M("latencyLogger"))||this,Wh.debug("init",i),e[tp]=zh.ef,e[$h]=i.url,e[Zh]=n,e[ep]=(new Date).getTime(),e}Rr()(e,t);var i=e.prototype;return i.load=function(){t.prototype.load.call(this),this.H.Uc()},i.rg=function(){Wh.debug("initElement"),(this.us()?this.X.eu(this[$h]):this.X.Yt(this[$h])).then(St.bind(this))},i.us=function(){var t=this.H.ba();return t&&"Preroll"===t.getType()},i.Ab=function(){this[tp]!==zh.Fb&&this.X.play()},i.stop=function(){if(Wh.debug("stop"),this[tp]=zh.Fb,this[Qh]){this[Xh].Z(),this.X.stop(),this.X.rj();var e=this.X.yi().style;e&&(e.cursor="")}t.prototype.stop.call(this)},i.pause=function(){this[tp]===zh.PLAYING&&this.X.pause()},i.resume=function(){this[tp]===zh.PAUSED&&this.X.play()},i.kc=function(){return this.X.kc()},i.$d=function(t,e){Wh.debug("stopByError",t),this[tp]=zh.Fb;var i=Hr,n="video playback error";switch(e){case 2:i=Fr;break;case 3:case 4:i=Wr;break;case 5:i=Wr,n="autoplay issue"}this.error=i,this.H.dispatchEvent(new Jo("VASTAdError"),t),this.fe||this.H.Tc(ks.Da,{Kb:n,error:i}),this.stop()},i.setVolume=function(t){this.X.setVolume(t),this.X.mute(0===t)},i.getDuration=function(){return this.X.getDuration()},e}(qh),np=i(133),rp=i.n(np),op=Symbol(),sp=Symbol(),ap=Symbol(),up=Symbol(),lp=Symbol(),cp=Symbol(),dp=Symbol(),hp=Symbol(),pp=Symbol(),fp=Symbol(),_p=Symbol(),mp=Symbol(),yp=Symbol(),vp=Symbol(),gp=Symbol(),Ep=Symbol(),bp=Symbol(),Sp=Symbol(),Ap=function(){function t(t){var e=this,i=t.adsConfig.Hn||{};this[vp]=!Object(_r.p)(i),this[sp]=t.adSystem,this[up]=t.dom,this[ap]=t.adContainerProvider.Ob(),this[Sp]=t.videoTagProvider,this[gp]=i.skippableText||"Skip ad %t",this[Ep]=i.timerText||"Skip ad in %ds",this[dp]=i.showTimer||!1,this[mp]=i.skipInSeconds||5,this[lp]=i.maxLinearShowTime||90,this[op]=!1,this[bp]=$o.a.group($o.a.bind(this[sp],Zo.Na,At.bind(this)),$o.a.bind(this[sp],Zo.Ze,function(t){t.data.jd&&!e[hp]&&(e[yp]=0,It.call(e),Object(_r.B)(e[hp],"collapse-skip-button","expand-skip-button"))}))}return t.prototype.destroy=function(){this[bp].Z(),Object(_r.A)(this[fp])},t}();Ap.N="adSystem adsConfig display dom adContainerProvider videoTagProvider".split(" ");var Tp=document,Ip=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],Cp=Ip.find(function(t){return t[1]in Tp})||[];Cp.forEach(function(t,e){return Cp[Ip[0][e]]=t});var Rp=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e}(Jo);Rp.nk="UNIQUE_ERROR";var Lp=vr.a.K("VPAIDMediaElement"),Pp={P:203,code:901,description:"General VPAID error.",fa:9416},Op=["There was an error in the google ad. AdError 1009: The VAST response document is empty."],Dp="AdStarted AdStopped AdSkipped AdLoaded AdImpression AdVideoStart AdVideoFirstQuartile AdVideoMidpoint AdVideoThirdQuartile AdVideoComplete".split(" "),Mp=Symbol(),wp=Symbol(),Np=Symbol(),kp=Symbol(),Bp=Symbol(),xp=Symbol(),Up=Symbol(),Vp=Symbol(),jp=Symbol(),Fp=Symbol(),Hp=Symbol(),Yp=Symbol(),Gp=Symbol(),Kp=Symbol(),qp=Symbol(),Wp=Symbol(),zp=Symbol(),Xp=Symbol(),Qp=Symbol(),Jp=Symbol(),Zp=Symbol(),$p=Symbol(),tf=Symbol(),ef=Symbol(),nf=Symbol(),rf=Symbol(),of=Symbol(),sf=Symbol(),af=Symbol(),uf=function(t){function e(e,i,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];Lp.debug("init");var o=t.call(this,n.M("display"),n.M("latencyLogger"))||this;return o[xp]={},o[zp]=!0,o[Fp]=e,o[Mp]=i,o[jp]=n,o[Up]=[],o[Wp]=$o.a.empty(),o[Hp]=o[jp].M("adContainerProvider").Ob(),o[kp]=o[jp].M("config"),o[Np]=o[jp].M("adSystem"),o[wp]=o[jp].M("adsConfig"),o[Kp]=0,o.Za=o[Fp].url||o[Fp].value,o[nf]=function(){Lt()?(this.Ma(Js),this.Ma(na)):(this.Ma(zs),this.Ma(ia))}.bind(tu()(o)),o[af]=r,o}Rr()(e,t);var i=e.prototype;return i.bd=function(t){return this[sf]=t,this},i.load=function(){t.prototype.load.call(this),this.H.noResize(),this.H.Uc(),Mt.call(this,!(this.Wi()||"Overlay"===this[Mp]))},i.createElement=function(){return Object(_r.h)("div",{style:"position: absolute; width: 100%; height: 100%; z-index: 1; text-align: left; top:0px;"})},i.rg=function(){var t=this;if(Lp.debug("initElement"),Mt.call(this,!(this.Wi()||"Overlay"===this[Mp])),this[Xp]=(new Date).getTime(),this[kp].Jm()||this[kp].Pm()){Lp.debug("Use secure vpaid runner");var e=this[jp].resolve("secureRunner")}else Lp.debug("Use insecure vpaid runner"),e=this[jp].resolve("insecureRunner");e.then(function(e){t[qp]=e,t.H.dispatchEvent(new Jo(Zo.gh)),t[qp].Wh(t.element,t.Za,t[Mp],t.X,t[kp],t[wp].hi).then(function(t){this.Pa=t.Rn,this[Zp]=(new Date).getTime()-this[Xp],this.td.Xt(this[Zp]);try{this.Rr(t.data)}catch(t){kt.call(this,t.message)}}.bind(t),function(t){switch(t.type){case"RM.getVpaidAdIsMissing":kt.call(this,"function getVPAIDAd does not exist");break;case"RM.noCreative":kt.call(this,"getVPAIDAd() does not return a creative");break;case"RM.APIFunctionIsMissing":kt.call(this,"API function ".concat(t.name," is missing"));break;case"RM.VPAIDUrlUnavailable":this[tf]=this[af]?ao:so,kt.call(this,"Vpaid url ".concat(t.url," is unavailable"));break;default:this.$d("Error with vpaid: ".concat(t))}}.bind(t))})},i.Rr=function(t){wt.call(this,"handshakeVersion","2.0"),function(){var t=this,e=[["AdClickThru",zt],["AdDurationChange",Kt],["AdError",xt],["AdExpandedChange",Yt],["AdImpression",Wt],["AdInteraction",Xt],["AdLinearChange",ee],["AdLoaded",ie],["AdLog",Ut],["AdPaused",ae],["AdPlaying",Nt],["AdRemainingTimeChange",qt],["AdSizeChange",Gt],["AdSkippableStateChange",Ht],["AdSkipped",oe],["AdStarted",ne],["AdStopped",re],["AdUserAcceptInvitation",Vt],["AdUserClose",Ft],["AdUserMinimize",jt],["AdVideoComplete",te],["AdVideoFirstQuartile",Jt],["AdVideoMidpoint",Zt],["AdVideoStart",Qt],["AdVideoThirdQuartile",$t],["AdVolumeChange",se]],i=this;this[Bp]={addEventListener:function(t,e){i[xp][t]=e,wt.call(i,"subscribe",Pt.bind(i,t),t,i)},removeEventListener:function(t){delete i[xp][t];try{wt.call(i,"unsubscribe",Pt,t)}catch(t){}}},e.forEach(function(e){return Ot.call(t,e[0],e[1])}),this[Vp]=0}.call(this);var e=t.width;t=t.height,this[Qp]=(new Date).getTime(),this[Gp]="normal";var i=this.H.bm(),n=this.H.pi();n={AdParameters:n&&n.value},Lp.debug("initAd",e,t,this[Gp],i,n),wt.call(this,"initAd",e,t,this[Gp],i,n),wt.call(this,"subscribe",Dt.bind(this),"mousemove"),wt.call(this,"subscribe",Dt.bind(this),"mouseover"),Rt()&&Tp.addEventListener(Cp.fullscreenchange,this[nf])},i.Wi=function(){return"Midroll"===this[Mp]},i.Ab=function(){this[Np].ba().An(this.Za),this.rb||(this[Jp]=(new Date).getTime(),Lp.debug("startAd"),wt.call(this,"startAd"))},i.resize=function(){t.prototype.resize.call(this),this[Gp]=Rt()&&Lt()?"fullscreen":"normal";var e=this.X.Pi(),i=this.X.Ai();Lp.debug("resize ad",{height:i,viewMode:this[Gp],width:e}),wt.call(this,"resizeAd",e,i,this[Gp])},i.$d=function(t){Lp.debug("stopByError",t),this.error=Bt.call(this,"Stopping ad initiation: start timeout reached"===t),this.H.dispatchEvent(new Jo("VASTAdError"),t),this.H.Tc(ks.Da,{Kb:t,error:this.error}),this.stop(this.error)},i.getAdSkippableState=function(){return-1===this.Za.indexOf("//imasdk.googleapis.com")&&wt.call(this,"getAdSkippableState")},i.getDuration=function(){if(!this.Pa)return 0;var t=wt.call(this,"getAdDuration");return(!t||0>=t)&&0<this[Vp]&&(t=this[Vp]),t},i.stop=function(t){Lp.debug("stopAd"),this.rb||(this.rb=!0,this.Pa?(this[Wp]&&(this[Wp].Z(),Ot.call(this,"AdStopped",re)),-1!==this.Za.indexOf("vista.js")&&t?wt.call(this,"stopAd",{details:t.description,errorCode:t.code,internalErrorCode:t.P}):wt.call(this,"stopAd"),this[Yp]=setTimeout(re.bind(this),400)):re.call(this))},i.$l=function(){Lp.debug("forceStop"),this.dispose(),this[Yp]&&clearTimeout(this[Yp]),this.H.complete(!0)},i.dispose=function(){Lp.debug("dispose"),this[Wp]&&(this[Wp].Z(),this[Wp]=null),this.Pa&&(this.Pa.Rc&&this.Pa.Rc(),this.Pa=null),Rt()&&Tp.removeEventListener(Cp.fullscreenchange,this[nf])},i.skip=function(){wt.call(this,"skipAd")},i.setVolume=function(t){this[Kp]=t,wt.call(this,"setAdVolume",t)},i.getVolume=function(){return wt.call(this,"getAdVolume")},i.pause=function(){wt.call(this,"pauseAd"),this[rf]=!0},i.resume=function(){wt.call(this,"resumeAd")},i.expandAd=function(){wt.call(this,"expandAd")},i.collapseAd=function(){wt.call(this,"collapseAd")},i.invokeAdMethod=function(t,e){wt.call(this,"invokeAdMethod",t,e)},i.getAdRemainingTime=function(){return wt.call(this,"getAdRemainingTime")},i.kc=function(){if(!this.Pa)return 0;var t=this.getAdRemainingTime();return t>this[Vp]&&(this[Vp]=t),t},i.dd=function(){t.prototype.dd.call(this),this[zp]=wt.call(this,"getAdLinear"),this[qp]&&this[qp].show()},e}(qh),lf=vr.a.K("LinearView"),cf=["o2unit"],df=Symbol(),hf=function(t){function e(e,i,n,r,o){if((e=t.call(this,e,i,n,null,r,o)||this).Dh=[],e.lf=null,e.kh=e.ae.getType(),e.J=e.V.M("config"),e.X=e.V.M("display"),e.J.Eu({tu:new Is}),!e.wg()&&"string"==typeof(n=(n=(i=tu()(e)).va||{}).parameters&&n.parameters.value)){try{i.jh=JSON.parse(n)}catch(t){lf.debug("error parsing adParameters string",t)}if((n=Object(_r.j)(n.trim().replace(/\+/g,"%20"))).cd){try{var s=JSON.parse(n.cd)}catch(t){}(s=s||{}).startMuted&&(i.pb.isMuted()||i.pb.mute(!0)),s.muteButtonEnabled&&setTimeout(function(){this.Kc=new Fh(this.pb.isMuted(),this.S),this.Kc.addEventListener(Fh.hb,this.pb.mute.bind(this.pb))}.bind(i),100)}}return-1===cf.indexOf(e.J.Yc())&&(e[df]=e.V.oa(Ap)),e}Rr()(e,t);var i=e.prototype;return i.Bg=function(e){t.prototype.Bg.call(this,e),this.Kc&&this.Kc.Ss(e.muted)},i.Iu=function(t){this.da=this.Dh.filter(function(e){return e.url===t})[0]},i.Zu=function(t){return this.lf=t,this},i.Sn=function(t){return this.da=(this.Dh=t)&&t[0],this},i.Md=function(e){t.prototype.Md.call(this,e)},i.Wd=function(){if(!this.xo&&this.lf&&this.wg(this.lf)){var t=this.lf;this.mh="vpaid";var e=new uf(t,this.kh,this.V,!0).bd(function(t){this.Ak=!0,this.Tc(ks.Da,{error:t})}.bind(this))}else t=this.da,this.wg()?(this.mh="vpaid",e=new uf(t,this.kh,this.V)):e=new ip(this.X,this.Dh[0],this.S,this.V);return this.xo=t,e},i.complete=function(e,i){this.Kc&&this.Kc.destroy(),this[df]&&this[df].destroy(),this.jj(),t.prototype.complete.call(this,e,i)},i.li=function(e,i){this.Ak?(this.Ak=!1,this.Md()):t.prototype.li.call(this,e,i)},i.Me=function(e){t.prototype.Me.call(this,e);var i=new Zo(Zo.Xe,this.kh,{isLinear:e});lf.debug("linear state changed to",e,"dispatch event",i),this.dispatchEvent(i)},i.Hg=function(){lf.debug("showCompanion"),this.ad.dispatchEvent(new Su(this.va))},i.pi=function(){return this.va.parameters},i.bm=function(){return this.da.Mf},i.Yf=function(){return this.da.Ne},i.Zf=function(){return this.da.gd},i.getAdHeight=function(){return this.da.height},i.getAdWidth=function(){return this.da.width},i.Mb=function(){var t=this.jh&&this.jh.ua?this.jh.ua:this.pb.Kq();return t||(t=(t=this.va.ua)?t.url:null),t},i.getDuration=function(){if(this.T)return this.T.getDuration()},i.getCurrentTime=function(){if(this.T)return this.T.getCurrentTime()},i.getAdSkippableState=function(){if(this.T&&this.T.getAdSkippableState)return this.T.getAdSkippableState()},i.lw=function(){return this.mh},i.jw=function(){return this.ad.id},i.stop=function(e){this.Kc&&this.Kc.destroy(),t.prototype.stop.call(this,e)},i.skip=function(){this.getAdSkippableState()?t.prototype.skip.call(this):t.prototype.stop.call(this)},i.Ng=function(){this.vf||(0<this.T.kc()?this.vf=setInterval(function(){var t=this.T.kc();if(0>=t)clearInterval(this.vf);else{this.dispatchEvent(new Oh(1e3*t)),t=this.T.getCurrentTime();var e=this.T.getDuration()||t;this.Ag({currentTime:Math.min(t,e),duration:e})}}.bind(this),1e3):(clearTimeout(this.Kh),this.Kh=setTimeout(this.Ng.bind(this),200)))},i.jj=function(){clearInterval(this.vf),clearTimeout(this.Kh),this.Kh=this.vf=null},i.wj=function(){this.Ng()},e}(wh),pf=vr.a.K("AdEngineBase"),ff=Symbol(),_f=Symbol(),mf=Symbol(),yf=Symbol(),vf=Symbol(),gf=Symbol(),Ef=Symbol(),bf=Symbol(),Sf=Symbol(),Af=Symbol(),Tf=Symbol(),If=Symbol(),Cf=!1,Rf=function(t){function e(e,i,n){var r=t.call(this)||this;return pf.debug("init"),r.I=e,r.L=i,r.Ha=n,r.Jc=!1,r[Af]=!1,r[ff]=!1,r[mf]=[],r.V=r.I.eb(),r[yf]=r.V.M("externalTracker"),r[Tf]=r.V.M("actionTracker"),r.X=r.V.M("display"),r.J=r.V.M("config"),r.ib=r.V.M("adsConfig"),r.be=r.V.M("adContainerProvider"),r.S=r.be.Ob(),r.Ha&&(r.Ha.addEventListener("AD_LOAD_COMPLETE",r.Sd.bind(tu()(r))),r.Ha.addEventListener("AD_LOAD_INTERRUPTED",r.yg.bind(tu()(r)))),r}Rr()(e,t);var i=e.prototype;return i.ba=function(){return this.L},i.iw=function(){return this.S||null},i.gr=function(){return this.Qa||null},i.Tb=function(t){t&&!t.pa&&this.Qa&&this.Qa.pa&&(t.pa=this.Qa.pa),(this.Qa=t)&&t.message&&(this.sh=this.sh?this.sh+", ".concat(t.message):t.message)},i.Yd=function(){pf.debug("showOverlay"),this[gf]=(new Date).getTime(),this.ia("loaded")},i.Vb=function(t,e){var i=this;this[Sf]=t||this[Sf]||0,pf.debug("startAdTimers","maxTime",t),t=this.L.xf,e=e||Math.min(t,this.ib.Bj),e=Math.floor(e),this[vf]&&clearTimeout(this[vf]),0<e&&this.J.Ud()&&(this[vf]=setTimeout(function(){i.I.dispatchEvent(new Jo(Zo.Vj,i.L.getType())),i.Vf(!0)},e)),this[gf]=(new Date).getTime(),0<this[Sf]&&(this.xa=new Sc,this.xa.Fg(function(){i.jf=!0,i.stop()},this[Sf],!1))},i.load=function(){pf.debug("load");t:{if(this.L.vs()){var t=Or.a.Id(this.J.Ka("url")),e=Or.a.Id(pr.a.tb(window));if(t&&e&&t!==e&&"undefined"!==t){Cf||(this.ia("site-mismatch"),this.Tb(new th("Site check is not passed, required ".concat(t,", but found ").concat(e))),Cf=!0),t=!1;break t}}t=!0}this[ff]=t,this[_f]=(new Date).getTime(),this[ff]?(this.track("Reporting.Ad.Engine.Request",{te:this.S.offsetHeight,Rf:this.S.offsetWidth}),this.Qa=null,this.Ha&&this.Ha.load&&this.Ha.load()):(this.Jc=!1,this.dispatchEvent(new Zo(Zo.ob,this.L.getType(),{ad:this.L})))},i.Sd=function(t,e){pf.debug("onLoaded",t),this.ready(!0,t,e)},i.yg=function(t){pf.debug("onInterrupted",t),this.Tb(t)},i.stop=function(){pf.debug("stop"),this.rb||(this.Oc=!1,this.rb=!0,this.xa&&this.xa.stop(),ue.call(this))},i.skip=function(){pf.debug("skip"),this.stop()},i.complete=function(){pf.debug("complete"),this[vf]&&clearTimeout(this[vf]),this.Oc=!1,this.rb||!this[ff]||this.Jc||this.On(!1,this.Qa&&this.Qa.timeout),this.rb||(this.rb=!0,ue.call(this))},i.ready=function(t,e,i){pf.debug("ready"),this.Jc=!0,this.On(t),this.Jh({ad:this.L,adModel:e,latency:this[Ef],params:i})},i.Jh=function(t){this.dispatchEvent(new Zo(Zo.ob,this.L.getType(),t))},i.Gf=function(){pf.debug("adLoaded"),this.za(Zo.Tg,void 0),this.xu()},i.xu=function(){this.ia("loaded"),this.L.pf||this.ia("win")},i.pg=function(){var t=this.L.dr();t&&(t=this.I.Pb().resolve(t),this[yf].gc(t))},i.Uh=function(t){pf.debug("adStarting"),this.za(Zo.Yg,t)},i.If=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};pf.debug("adStarted",e),this[vf]&&clearTimeout(this[vf]),this[Af]=!1,this.Gc=t,this.L.pf&&this.ia("win"),this.xa&&this.xa.start(),this.I.Xl&&(this.I.Xl=!1,this.ia("boost"));var i=e.data||{};t&&t instanceof hf&&(i.apiType=t.mh,i.adId=t.ad.id,i.adIconsContainer=t.Fe,i.mimeType=(t.da||{}).mimeType),i.parameters||(i.parameters={}),i.parameters.minibar=!!this.L.yk.minibar,i.latency=(new Date).getTime()-this[gf],this.Oc=!0,this.za(Zo.Na,i),this.ia("started",e.data),this[If]&&(this.pause(),this[If]=!1)},i.Rh=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};pf.debug("adPaused"),this[Af]=!0,this.xa&&this.xa.pause(),this.za(Zo.Ye,t.data)},i.Jf=function(){this.za(Zo.$e,(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).data)},i.fl=function(t){var e=(t=t.data).data||t,i=e.currentTime;0<(e=Math.min(e.duration,this[Sf]))?(t.timeRemaining=e-i,t.progressPercent=i/e*100):(t.progressPercent=0,t.timeRemaining=0),this.za(Zo.yc,t)},i.op=function(){this.za(Zo.Wj)},i.pause=function(){this.Oc||(this[If]=!0)},i.Th=function(){pf.debug("adResumed"),this[Af]=!1,this.xa&&this.xa.resume(),this.za(Zo.Wg)},i.resume=function(){this[If]=!1},i.jb=function(){return this[Af]},i.Ph=function(t){this.za(Zo.Qj,{clickThroughUrl:t,playerHandle:this.Gc.ur()}),this.track("Reporting.Basic.Click",{ua:t,yl:"ad"})},i.yd=function(t,e){pf.debug("adFinished",{currentTime:t,data:e}),this[vf]&&clearTimeout(this[vf]),this.jf||this.Bh?this.ia("killed",e):this.Oc&&(this.Pk?this.ia("skipped",e):this.ia("finished",e)),this.za(Zo.Eb,{currentTime:t})},i.Vf=function(){pf.debug("failOver"),this.I.Xl=!0,this.ia("failover")},i.bw=function(t){pf.debug("earlyStop",t),this.Tb(new th(t)),this.ia("early-stop")},i.track=function(t,e){pf.debug("track","eventType",t,"params",e),e=Object(_r.g)(e),e=Object(_r.k)(e,{acid:this.L.getAcid(),asid:this.L.getAsid(),auid:this.L.Dq(),bookingId:this.L.Fq(),bsfv:this.L.sk,costPerImpression:this.L.bb,fullsizeThumbnail:this.L.getFullsizeThumbnail(),isHouseAd:this.L.ks(),isPayable:this.L.rs(),lineItemId:this.L.jr(),name:this.L.getName(),overlayURL:this.L.getOverlayURL(),podId:this.L.Jk,profitCenter:this.L.zr(),ruleCompanyId:this.L.Nk,ruleId:this.L.getRuleId(),slotAdSeq:this.L.Qk,thirdPartyImpressionTrackers:this.L.Sk,thumbnail:this.L.getThumbnail(),transactionId:this.L.getTransactionId(),type:this.L.getType(),url:e.url||this.L.getUrl(),usid:this.L.getUsid(),vastXml:this.L.Ld(),vendor:this.L.getVendor(),videoDuration:this.L.getVideoDuration(),videoTitle:this.L.getVideoTitle()}),this.I.dispatchEvent(new Jo(t,e))},i.Fj=function(t){this[Tf].action("AdInteraction",null,null,null,null,{c1:"string"==typeof t.data?t.data:""}),this.xa&&this.xa.stop()},i.ia=function(t,e){function i(t){return r?t+r:t}pf.debug("trackFlow","adStage",t,"params",e);var n=null,r=this.I.Aq();e&&(r=e.Va||r,n=e.Jv||null);var o=this.Gc&&this.Gc.ad?this.Gc.ad:this.ad;if(o&&(n=n||o.id||null),o=i(t),"killed"===t&&!this.rc(i("started"))&&this.rc(i("loaded"))&&(t="failover"),!this.rc(o)){var s={Xh:this.L.lh,Bp:this.J.Nm(),bb:this.L.bb,te:this.S.offsetHeight,Rf:this.S.offsetWidth,muted:this.I.isMuted(),cy:this.L.getUsid()};switch(r&&(s.sequence=r),t){case"loaded":s.latency=this[Ef];break;case"starting":case"started":s.latency=(new Date).getTime()-this[gf];break;case"failover":this[bf]&&(s.latency=(new Date).getTime()-this[bf])}Object(_r.g)(e,s),e=this.Lf(t,s,n),"IMA"===this.L.getAdEngineType()&&(e.Xm={mimeType:"IMA"}),this.track("Reporting.Ad.Engine.Flow",e),this[mf][o]=!0,-1!==["q1","q2","q3","finished"].indexOf(t)&&this.za(Zo.Ug,e)}},i.uc=function(t,e,i,n){pf.debug("trackAdIssue","adStage",t,"details",i),this.track("Reporting.Ad.Issue",this.Lf(t,{Kb:"".concat(e.description).concat(i?" ".concat(i):""),fq:e.fa,gq:e.code,kq:n}))},i.On=function(t,e){pf.debug("trackResponse","success",t,"timeout",e),this[_f]?this[Ef]=(new Date).getTime()-this[_f]:(this[Ef]=0,pf.error("load is not called before track response")),this[bf]=(new Date).getTime(),this.track("Reporting.Ad.Engine.Response",{te:this.S.offsetHeight,Rf:this.S.offsetWidth,ws:t,latency:this[Ef],timeout:void 0===e?null:e,Lu:this.Jc?this.ep:0})},i.Lf=function(t,e,i){pf.debug("basicAdParams","adStage",t,"additional",e,"adId",i);var n={};return null!=i&&(n.adImpressionId=i,n.Ff=i),null!=t&&(n.adStage=t,n.Hf=t),Object(_r.g)(e,n),n},i.rc=function(t){return this[mf][t]||!1},i.za=function(t,e){e||(e={}),e.ad=this.L,this.dispatchEvent(new Zo(t,this.L.getType(),e)),this.I.dispatchEvent(new Zo(t,this.L.getType(),e))},e}(Cu.default),Lf=vr.a.K("ExternalMediaElement"),Pf={},Of=Symbol(),Df=Symbol(),Mf=Symbol(),wf=Symbol(),Nf=Symbol(),kf=function(t){function e(e){var i=t.call(this)||this;return i[Df]=e,i.nc="<span>Companion HTML</span>",i}Rr()(e,t);var i=e.prototype;return i.Em=function(t,e){Lf.debug("initPeer","parent",t);try{this[wf]=this[Df].document}catch(t){return}if(this.target=this.Sc="class"===e?this[wf].getElementsByClassName(t)[0]:this[wf].getElementById(t),!this.Sc){var i=pr.a.jg(this[Df]);if(i&&this[Df]!==i)return this[Df]=i,void this.Em(t,e)}for((e=Pf[t])&&e(),this[Mf]=this[wf].createDocumentFragment();this.target&&this.target.firstChild;)this[Mf].appendChild(this.target.firstChild);null==this.Sc&&Lf.error("Cannot find element with id",t)},i.stop=function(){Lf.debug("stop"),this[Of]||(ce.call(this),this.element.removeEventListener("click",this[Nf])),t.prototype.stop.call(this)},i.Ab=function(){this.zg(),this.dd(),Pf[this.target.id]=ce.bind(this);var t=document.createElement("iframe");(t.frameElement||t).style.cssText="width:100%; height: 100%; border: 0;",t.marginWidth="0",t.marginHeight="0",this.element.appendChild(t),(t=t.contentWindow?t.contentWindow.document:t.contentDocument).open(),t.write(this.nc),t.close(),this[Nf]=function(){Lf.debug("onClick"),this.H.se()}.bind(this),t.body.addEventListener("click",this[Nf].bind(this))},i.load=function(){Lf.debug("load"),t.prototype.load.call(this),this.H.Uc(),this.Ab()},i.createElement=function(){return Lf.debug("createDisplayObject"),this.Sc},i.Wt=function(t){this[Of]=t},i.dd=function(){this.track(Ws)},e}(qh),Bf=function(t){function e(e,i){return(i=t.call(this,i)||this).nc=e,i}return Rr()(e,t),e}(kf),xf=function(t){function e(e,i){return(i=t.call(this,i)||this).nc="<iframe ".concat('width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" src="'.concat(e,'"'),"></iframe>"),i}return Rr()(e,t),e}(kf),Uf=vr.a.K("StaticResourceMediaElement"),Vf=function(t){function e(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t.call(this,2<arguments.length?arguments[2]:void 0)||this;return 0===(i=i.toLowerCase()).indexOf("image/")||""===i?n.nc='<img width="100%" height="100%" src="'.concat(e,'" />'):"application/x-javascript"===i?n.nc='<script src="'.concat(e,'"><\/script>'):(Uf.warn("Non-supported mime type",i),n.nc=null),n}return Rr()(e,t),e}(kf),jf=vr.a.K("CompanionView"),Ff=Symbol(),Hf=Symbol(),Yf=function(t){function e(e,i,n,r,o,s){return o=t.call(this,null,e,i,n,o,s)||this,jf.debug("init",e,i,n,r),e=o.V.M("dom"),o.S=e.createDocumentFragment(),o.bc=r,o[Ff]=o.V.M("hostWindowProvider"),o[Hf]=e,o.noResize(),o}Rr()(e,t);var i=e.prototype;return i.Wd=function(){jf.debug("resolveMediaElement");var e=this.da.xb[0],i=this[Ff].Aa();switch(e.type){case ls:var n=new Bf(e.value,i);break;case us:n=new xf(e.value,i);break;case as:n=new Vf(e.value,e.mimeType,i)}if(n)if(n.nc){if(n.Wt(this.bc&&this.bc.keepCompanion),n.Em(this.bc.parent,this.bc.selectorType),n.Sc)return n.Sc=Object(_r.h)("div",{style:"width: ".concat(this.bc.width,"px; height: ").concat(this.bc.height,"px")},n.Sc),n;jf.warn("Media element could not find a container")}else jf.warn("Media element doesn't have any markup");else jf.warn("Non-supported companion media type",e.type);return t.prototype.Wd.call(this)},i.Uc=function(){this.T.rg()},i.pi=function(){return this.da.parameters},i.Yf=function(){return!0},i.Zf=function(){return!1},i.getAdHeight=function(){return this.da.height},i.getAdWidth=function(){return this.da.width},i.Mb=function(){return this.da.ua?this.da.ua.url:null},i.Qf=function(t){t===Ws&&this.ad.dispatchEvent(new Tu(t,this.va,this.da))},i.resume=function(){jf.debug("resume")},i.pause=function(){jf.debug("pause")},e}(wh),Gf=vr.a.K("CompanionEngine"),Kf=Symbol(),qf=Symbol(),Wf=Symbol(),zf=Symbol(),Xf=Symbol(),Qf=Symbol(),Jf=Symbol(),Zf=function(){function t(t,e,i,n){this[Xf]=t,this[qf]=e,this[Jf]=n,this[Qf]=t.I,this[Kf]=i.hi,this[zf]=[],this[Wf]=[]}var e=t.prototype;return e.Ur=function(t){this[zf]=t.aa.filter(function(t){return t instanceof Io}),t.addEventListener(Su.bf,function(t,e){if(Gf.debug("showCompanions",e),!(1<this[Wf].length)){for(var i={};e;)he.call(this,i,t,e),e=e.im();t:{for(e=0;e<this[zf].length;e++)if((i=this[zf][e])&&i.qe.length&&("any"===i.required||"all"===i.required)){e=!0;break t}e=!1}e&&!this[Wf].length&&t.Nl(this[qf],_o)}}.bind(this,t))},e.getAdCompanions=function(){var t="";return this[zf].forEach(function(e){!t&&e.Qh&&(t=e.Qh)}),t},t}(),$f=function(){function t(){}return t.prototype.parse=function(t){this.Ff=t.id},t}(),t_=function(){function t(){}return t.prototype.parse=function(t){var e=t.aa[0].Ca[0];e.type===ua&&(e=e.url,this.Sh=/cid=(\d+)/.exec(e)[1],this.Kf=/src=(\d+)/.exec(e)[1]),this.Ff=t.id},t}();t_.mo="collective";var e_=vr.a.K("LoadableImageElement"),i_=function(t){function e(e,i){return i=t.call(this,i)||this,e_.debug("init",e),i.Za=Or.a.ci(e),i}Rr()(e,t);var i=e.prototype;return i.createElement=function(){e_.debug("createElement");var t=Object(_r.h)("img",{style:{position:"absolute",zIndex:1}});return this.xh=$o.a.group($o.a.qa(t,"load",this.dj.bind(this)),$o.a.qa(t,"error",this.an.bind(this))),t.src=this.Za.replace(/\s+/g,""),t},i.Ab=function(){e_.debug("draw"),this.zg(),this.dd(),this.H.Uc()},i.dj=function(){e_.info("onImageLoaded",this.Za),this.element.addEventListener("click",function(){e_.debug("onImageClick"),this.H.se()}.bind(this)),this.ej()},i.an=function(t){e_.debug("onImageError",t),this.element.offsetWidth?this.dj():(this.H.Tc(ks.Da,{error:Jr}),this.H.complete(!0))},i.stop=function(){e_.debug("stop"),this.xh&&this.xh.Z(),t.prototype.stop.call(this)},e}(qh),n_=vr.a.K("IconElement"),r_=Symbol(),o_=function(t){function e(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=2<arguments.length?arguments[2]:void 0,n=t.call(this,e.In,1<arguments.length?arguments[1]:void 0)||this;return n_.debug("create",e),n.icon=e,n[r_]=i,n}Rr()(e,t);var i=e.prototype;return i.nu=function(t){this.H=t,this.load(),Object(_r.D)(this.element,{height:"".concat(this.icon.height,"px"),width:"".concat(this.icon.width,"px"),zIndex:3}),this.H.addEventListener("VASTAdError",pe.bind(this)),this.H.addEventListener("VASTAdFinished",pe.bind(this)),this.H.addEventListener("VASTAdFinishedForce",pe.bind(this))},i.an=function(){this.H.Tc(ks.Da,{error:Jr})},i.dj=function(){var t=this;switch(this.icon.Qg){case"left":this.element.style.left="0px";break;case"right":this.element.style.right="0px";break;default:"number"==typeof this.icon.Qg&&(this.element.style.left="".concat(this.icon.Qg,"px"))}switch(this.icon.Rg){case"bottom":this.element.style.bottom="0px";break;default:this.element.style.top="".concat("number"==typeof this.icon.Rg?this.icon.Rg:0,"px")}this.icon.fi&&(this.element.style.cursor="pointer",this.element.addEventListener("click",function(e){e.stopPropagation(),t.H.se(t.icon.fi,!0)})),this.icon.gi&&this.element.addEventListener("click",function(t){this[r_].gc(t)}.bind(this,this.icon.gi)),this.icon.Mj&&this[r_].gc(this.icon.Mj),0===this.icon.offset&&this.H.Fe.appendChild(this.element),0===this.icon.offset&&0===this.icon.duration||(this.Ej=function(t){t.data.currentTime>this.icon.offset&&(this.H.Fe.appendChild(this.element),0===this.icon.duration&&this.H.removeEventListener("VASTAdTimeUpdate",this.Ej)),0<this.icon.duration&&t.data.currentTime>this.icon.offset+this.icon.duration&&(Object(_r.A)(this.element),this.H.removeEventListener("VASTAdTimeUpdate",this.Ej))}.bind(this),this.H.addEventListener("VASTAdTimeUpdate",this.Ej))},e}(i_);i(119);var s_=vr.a.K("LinearResolver"),a_=["application/javascript","application/x-javascript"],u_=a_.concat(["uplynk/m3u8"]),l_=function(){function t(){}return t.uj=function(t,e,i){var n=i.filter(function(t){var e=t.mimeType;try{var i=Ld&&"function"==typeof Ld.canPlayType&&(!e||Ld.canPlayType(e))}catch(t){i=!1}return!!i||-1<u_.indexOf(t.mimeType)}),r=_e((n=function(t){var e={Sm:[],video:[]};return t.forEach(function(t){-1<a_.indexOf(t.mimeType)?e.Sm.push(t):e.video.push(t)}),e}(n=function(t){return t.slice().sort(function(t,e){return(t.width*t.height-(+t.Mf||0)||0)<(e.width*e.height-(+e.Mf||0)||0)?1:-1})}(n=n.filter(fe)))).video,t,e);return null==r&&(r=_e(n.Sm,t,e)),null==r&&0<i.length&&s_.warn("None of the provided mime-types is supported",i),r},t}(),c_=vr.a.K("NonLinearResolver"),d_=["image/.*","application/javascript","application/x-javascript"],h_=function(){function t(){}return t.resolve=function(t,e){e=Object(_r.E)(e.slice(),!1),c_.debug("resolve",t,e);var i,n=me(e);return 0<e.length&&0===n.length&&(i=$r),e=n.filter(function(e){return e.gd||e.width<=t.width&&e.height<=t.height}),0<n.length&&0===e.length&&(i=Zr),e[0]||{error:i}},t}(),p_=vr.a.K("OverlayView"),f_=function(t){function e(e,i,n,r,o,s,a){return p_.debug("init",i,n),(e=t.call(this,e,i,n,r,s,a)||this).S=e.be.tm(),e.X=e.V.M("display"),e.gb=o,e}Rr()(e,t);var i=e.prototype;return i.Wd=function(){var e=this.da.xb[0]||{};if(e.type===as){if(this.wg())return new uf(e,"Overlay",this.V);var i=this.da,n=i.xb[0]||{};return p_.debug("buildMediaUrl",n),e=n.value,-1!==["video/ogg","video/mp4","video/webm"].indexOf(n.mimeType)&&i.ua&&(i=encodeURIComponent(i.ua.url),i="clickTAG=".concat(i,"&clickTag=").concat(i),e+=-1===e.indexOf("?")?"?":"&",e+=i),this.pb.ba().An(e),new i_(e,this.X)}return t.prototype.Wd.call(this)},i.Hg=function(){p_.debug("showCompanion"),this.ad.dispatchEvent(new Su(this.va))},i.Uc=function(){t.prototype.Uc.call(this),this.je.start(),this.ad.dispatchEvent(new ks(ks.LOADED,this.va))},i.pi=function(){return this.da.parameters},i.Yf=function(){return this.da.Ne},i.Zf=function(){return this.da.gd},i.getAdHeight=function(){return Math.max(this.da.height,this.da.Ul)},i.getAdWidth=function(){return Math.max(this.da.width,this.da.Vl)},i.Mb=function(){var t=this.da.ua;return t?t.url:null},i.ai=function(e,i,n,r,o,s){void 0===o&&(o=!0),void 0===s&&(s=!0);var a=this.gb.width,u=this.gb.height;return ye(a)&&(a=parseFloat(this.gb.width)*this.S.offsetWidth/100),ye(u)&&(s?u=a/(u=this.getAdWidth()/this.getAdHeight()):u=parseFloat(this.gb.height)*this.S.offsetHeight/100),a=a||e,u=u||i,e=t.prototype.ai.call(this,a,u,n,r,o,s),"application/javascript"===(this.da.xb[0]||{}).mimeType?ve.call(this,a,u):ve.call(this,Math.min(e.width,a),Math.min(e.height,u))},i.Me=function(e){t.prototype.Me.call(this),this.pb.dispatchEvent(new Zo(Zo.Xe,"Overlay",{isLinear:e})),e?this.pause():this.resume()},i.bm=function(){return 0},i.Ng=function(){},i.noResize=function(){},e}(wh),__=function(){function t(){}return t.Rq=function(e){var i=[];return Object(_r.G)(e).forEach(function(e){(e.kb||[]).forEach(function(e){return i.push(t.lr(e))})}),i},t.lr=function(t){return t=t||{},Or.a.mm(t.url||"")||t.mimeType},t}(),m_=Symbol(),y_=Symbol(),v_=Symbol(),g_=function(t){function e(e){var i=t.call(this)||this;return i[y_]=e.eventBus,i[v_]=e.smartViewability,i.Og=0,i.ml(),i}Rr()(e,t);var i=e.prototype;return i.ml=function(){this[m_]=$o.a.group($o.a.bind(this[y_],Zo.Na,this.cj.bind(this)),$o.a.bind(this[y_],Zo.yc,this.xg.bind(this)),$o.a.bind(this[y_],Zo.Ye,this.tj.bind(this)),$o.a.bind(this[y_],Zo.Wj,this.tj.bind(this)),$o.a.bind(this[y_],Zo.xc,this.$m.bind(this)))},i.na=function(){return this[v_].na()},i.tj=function(){this.Og=0},i.cj=function(){this.sj()},i.xg=function(){},i.$m=function(){},i.sj=function(){this.tj()},i.Z=function(){this[m_].Z()},e}(Cu.default);g_.N=["eventBus","smartViewability"];var E_=Symbol(),b_=Symbol(),S_=Symbol(),A_=Symbol(),T_=function(t){function e(e){var i=t.call(this,e)||this;return i[S_]=e.environment,i[E_]=0,i[b_]=0,i[A_]=!1,i}Rr()(e,t);var i=e.prototype;return i.xj=function(t){this.Mc=t},i.xg=function(){if(!this[A_]){var t=+new Date;this.Og&&(!(this.na()>=this.Mc.Ei())||this.Mc.Ti()&&this[S_].isMuted()?this.Mc.Ui()&&(this[E_]=0):this[E_]+=t-this.Og,this[b_]=Math.max(this[b_],this[E_])),this.Og=t,this.De()/1e3>=this.Mc.Fi()&&this.fj()}},i.fj=function(){this[A_]=!0,this.Z(),this.dispatchEvent(e.jk)},i.Om=function(){return this[A_]},i.reset=function(){this[A_]=!1,this.ml()},i.De=function(){return this[b_]},e}(g_);T_.N=["eventBus","environment","smartViewability"],T_.jk="VM.RuleSatisfied";var I_=Symbol(),C_=Symbol(),R_=Symbol(),L_=Symbol(),P_=Symbol(),O_=Symbol(),D_=function(t){function e(e){var i=t.call(this,e)||this;return i[L_]=[],i[P_]=e.injector,i}Rr()(e,t);var i=e.prototype;return i.Ot=function(t){this[I_]=t.start,this[C_]=t.lq,this[L_]=function(t){var e=ge.call(this,t.Wb),i=ge.call(this,t.Ru);return t=ge.call(this,t.Qu),i=e.concat(i,t),this[O_]=e[0],i.filter(function(t){return t})}.call(this,t)},i.cj=function(){t.prototype.cj.call(this),this[R_]=!0,this[I_]()},i.xg=function(){this[O_].Om()||this[L_].forEach(function(t){return t.xg()})},i.$m=function(){var t=this[O_].Om();this[R_]&&!t&&this[C_]()},i.sj=function(){t.prototype.sj.call(this),this[R_]=!1,this[L_].forEach(function(t){return t.reset()})},e}(g_);D_.N=["eventBus","smartViewability","injector"];var M_=["$(S_VIEW_TYPE)"],w_=["$(V_AUD_INFO)"],N_=["$(V_AUD_TIME_INVIEW_100)"],k_=["$(V_AUTOPLAYED)"],B_=["$(V_EXPANDED)"],x_=["$(V_IS_INVIEW_100_HALFTIME)"],U_=["$(V_MOAT_IVT)"],V_=["$(V_PLAYER_HEIGHT)"],j_=["$(V_PLAYER_WIDTH)"],F_=["$(V_SKIP_AVAIL)"],H_=["$(V_TIME_INVIEW_50)"],Y_=["$(V_TIME_INVIEW_50_MAX_CONTINUOUS)"],G_=["$(V_VIEW_INFO)"],K_=["$(V_VIEW_TYPE)"],q_=vr.a.K("AdViewabilityTracker"),W_=Symbol(),z_=Symbol(),X_=Symbol(),Q_=Symbol(),J_=Symbol(),Z_=function(){function t(t,e,i){this[z_]=t,this[X_]=e,this[J_]=i,this[W_]=this[J_].eb().oa(D_),this[Q_]=function(){var t=[],e=this[z_].sb.filter(function(t){return"Viewability3P"===t.type})[0],i=this[z_].sb.filter(function(t){return"adaptv_iab_viewable_beacons"===t.type})[0];return i&&(t=t.concat(i.Qn)),e&&(t=t.concat(e.Su)),t}.call(this),t=[],e=[],(i=function(){return this[z_].sb.filter(function(t){return"ViewabilityRules"===t.type})[0]}.call(this))&&(t=i.Tu,e=i.Uu),i=new mu("iab_viewable",{d:2,p:50}),this[W_].Ot({lq:Ee.bind(this,"iab_detection_failed"),start:Ee.bind(this,"iab_detection_started"),Wb:[Ee.bind(this,"iab_viewable"),i],Qu:[Ee.bind(this,"VIDEO_VIEW"),e],Ru:[Ee.bind(this,"VIDEO_VIEW_3P"),t]})}return t.prototype.Z=function(){this[W_].Z()},t}(),$_=vr.a.K("VastEngine"),tm=eo,em=[ks.af,ks.Bc,ks.Da,ks.hb,ks.LOADED,"iab_viewable","iab_detection_started","iab_detection_failed","VIDEO_VIEW_3P","companionDisplay","companionClick","stopped","linearChange","verificationNotExecuted",Tu.cf,va.Fc],im={};im[Qs]="q1",im[$s]="q2",im[la]="q3",im[qs]="finished";var nm=Symbol(),rm=Symbol(),om=Symbol(),sm=Symbol(),am=Symbol(),um=Symbol(),lm=Symbol(),cm=Symbol(),dm=Symbol(),hm=Symbol(),pm=Symbol(),fm=Symbol(),_m=Symbol(),mm=Symbol(),ym=Symbol(),vm=Symbol(),gm=Symbol(),Em=Symbol(),bm=Symbol(),Sm=Symbol(),Am=Symbol(),Tm=function(t){function e(e,i,n,r){return(e=t.call(this,e,i,n)||this)[pm]=e.be.tm(),e[am]=r,e[dm]=[],e[fm]=[],e[bm]=e.J.Od()||e.J.Pd(),e[cm]=!0,e[um]=0,e[vm]=[],e[_m]=new Sc,e[Em]=new Zf(tu()(e),r,e.ib,e.L),e[om]=e.V.M("errorTracker"),e[sm]=e.V.M("adTracker"),e.I.addEventListener("AdSystem.Resize",function(){this[vm].forEach(function(t){return t.resize()})}.bind(tu()(e))),e.Ha.addEventListener("ISSUE_WITH_AD",function(t){this.uc("loaded",t)}.bind(tu()(e))),e.I.addEventListener(Zo.Vj,function(){this[Sm]=!0}.bind(tu()(e))),e}Rr()(e,t);var i=e.prototype;return i.Sd=function(e){if($_.debug("onLoaded",e),this.ep=e.ads.length,!this.rb){this[ym]=e,e=this[ym].ads.shift();t:switch(this.L.getVendor()){case t_.mo:var i=new t_;break t;default:i=new $f}this[lm]=i,this[lm].parse(e),Se.call(this,e),this.Jc?Ce.call(this):(t.prototype.Sd.call(this,e,{urls:this.Eo()}),this[bm]&&"Overlay"!==this.ba().getType()&&(this.J.Pd()&&(this[Am]=(new Date).getTime(),this.Vb(this.I.ic()&&this.I.ic().Vm)),Ce.call(this)))}},i.Eo=function(){var t=[];return function e(i){t.push(i.Dj),i.parent&&e(i.parent)}(this[ym]),t.reverse()},i.Jh=function(e){this[dm].length&&(e.crid=this[dm][0].id||""),t.prototype.Jh.call(this,e)},i.zj=function(t){this[Am]=(new Date).getTime(),this.Vb(t),this.Gf(),this[bm]?this[nm].Ab():Ce.call(this)},i.Yd=function(){var e=this;t.prototype.Yd.call(this);var i=this.L.lb;$_.debug("showOverlay",i);var n,r=this[pm].offsetWidth,o=this[pm].offsetHeight,s=isNaN(i.width)?r:Math.min(i.width,r),a=isNaN(i.height)?o:Math.min(i.height,o);Object(_r.m)(this[fm],function(t){var r=h_.resolve({height:a,width:s,x:0,y:0},t.Zm);if(r)return r.xb&&r.xb[0]&&r.xb[0].value?(e[hm]=r,e[_m].Fg(Ae.bind(e,t,i),1e3*i.Kl),!0):(n=e[hm]&&e[hm].error,!1)})||(this.ad&&this.ad.dispatchEvent(new ks(ks.Da,null,null,{error:n})),this.uc("loaded",$r,"Unable to find suitable overlay creatives"))},i.stop=function(){this.rb||(this[_m].stop(),this.ad&&this.ad.state.loaded?Le.call(this):this.ia("early-stop"),this.pd&&(this.pd.Z(),this.pd=null),this[rm]=null,t.prototype.stop.call(this))},i.skip=function(){this.Pk=!0,this.Gc?(this.Gc.Qf(aa),this.Gc.skip()):Le.call(this,!0)},i.pause=function(){$_.debug("pause"),t.prototype.pause.call(this),this.Oc&&(this[_m].pause(),this[vm].forEach(function(t){return t.pause()}))},i.resume=function(){$_.debug("resume"),t.prototype.resume.call(this),this.Oc&&(this[_m].resume(),this[vm].forEach(function(t){return t.resume()}))},i.setVolume=function(t){$_.debug("setVolume",t),this[vm].forEach(function(e){return e.setVolume(t)})},i.getDuration=function(){var t=this[gm]||0;return this[vm].forEach(function(e){e.getDuration&&(t=Math.max(t,e.getDuration()))}),t},i.getCurrentTime=function(){var t=this[vm].find(function(t){return t.getCurrentTime});return t?t.getCurrentTime():0},i.Ea=function(){return this[rm]?this[rm].duration:0<this[dm].length?this[dm][0].duration:0},i.getAdSkippableState=function(){var t=!!this[rm]&&this[rm].jd;if(this[nm].getAdSkippableState){var e=this[nm].getAdSkippableState();t=void 0===e?t:e}return t},i.Rb=function(){return this.ad&&this.ad.Ft},i.Sb=function(){return this.ad&&this.ad.ne},i.Lb=function(){return this.ad&&this.ad.np},i.Qb=function(){if(this[rm])return this[rm].Cu},i.Lf=function(e,i,n){return!n&&this[lm]&&(n=this[lm].Ff),t.prototype.Lf.call(this,e,i,n)},i.ia=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};i.lp=this.Ea()||"NULL",this[lm]&&(this[lm].Sh&&(i.Sh=this[lm].Sh),this[lm].Kf&&(i.Kf=this[lm].Kf),this[hm]&&(i.Xm=this[hm])),i.mq=this[um],t.prototype.ia.call(this,e,i)},i.yg=function(e){var i=e;i instanceof th||(i=i instanceof eh?new th(e.message,th.gf,e.Mn):new th(e.message)),$_.debug("onInterrupted",i,"configEntry",this.L),t.prototype.yg.call(this,i),Pe.call(this)},i.yd=function(e,i){t.prototype.yd.call(this,e,i),this.ad&&this.ad.dispatchEvent(new ks("stopped",this[rm])),Re.call(this)||0!==this[ym].ads.length||this.stop(),this.ad=null,this.Pk=!1},i.track=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(i.vastModelAd=this.ad,"Reporting.Ad.Issue"===e){for(var n="",r=this[ym];r&&r.Dj;)n="".concat(r.Dj," ").concat(n),r=r.parent;i.url=n}t.prototype.track.call(this,e,i)},i.uc=function(e,i,n){t.prototype.uc.call(this,e,i,n,function(){var t=[];if(this.ad&&this.ad.aa&&this.ad.aa.length)t=__.Rq(this.ad.aa);else if(this[vm]&&this[vm].length)t=this[vm].map(function(t){return Oe(t)});else if(this[nm]){var e=Oe(this[nm]);e&&t.push(e)}return t.join(",")}.call(this))},i.Vf=function(e){t.prototype.Vf.call(this),Le.call(this,!1,e)},i.complete=function(){t.prototype.complete.call(this),this.qk&&this.qk.Z()},i.getAdCompanions=function(){return this[Em].getAdCompanions()},i.Vb=function(e){var i=Math.min(this.L.xf,this.ib.Bj),n=.8*i;!this[Sm]&&Me.call(this)&&(i=0<n-((new Date).getTime()-this[Am])?n:1),t.prototype.Vb.call(this,e,i),this[Sm]=!1},e}(Rf),Im=vr.a.K("VastEventHandler"),Cm=/https?:/,Rm=Symbol(),Lm=Symbol(),Pm=Symbol(),Om=Symbol(),Dm=Symbol(),Mm=[],wm=function(){function t(t){this[Rm]=t,this[Lm]=this[Rm].ic(),t=this[Rm].eb(),this[Om]=t.M("eventBus"),this[Dm]=t.M("externalTracker"),this[Pm]=t.M("config"),this[Lm].Xr&&this[Om].addEventListener("Reporting.Ad.Engine.Response",function(t){var e=this,i=t.data.thirdPartyImpressionTrackers||[];try{var n=t.data.vastModelAd.qg[0].url}catch(t){Im.debug("Vast impression tracker not found where expected."),n=null}n&&i.push(n),i.forEach(function(t){t=t.replace(Cm,"");var i=/&cb=[^&]*?/.test(t),n=/\?/.test(t)?"&":"?";t=i?t:"".concat(t).concat(n,"cb=[CACHE_BUSTER]"),e[Dm].gc(e[Rm].Pb().resolve(t))}),Mm=i}.bind(this))}return t.prototype.Oe=function(t,e){if(Im.debug("onVastEvent",t,e),t.type===ks.Bc?Object(_r.d)(Ne.bind(this,t,e)):Ne.call(this,t,e),t.type===ks.hb)try{this[Pm].Od()&&this[Rm].hn();var i=t.Mb();Im.info("Open on ad click",i),i&&ot(i)}catch(t){Im.error("onVastEvent",t)}},t}(),Nm=vr.a.K("VastEngineProducer"),km=Symbol(),Bm=function(t){function e(e){var i=t.call(this,e)||this;return i[km]=new wm(e),i}Rr()(e,t);var i=e.prototype;return i.Pf=function(t){Nm.debug("createAdEngine",t);var e=this.ri(),i=new(this.rm(t))(e,this[km],t.Ld()?t:t.zf||t);return new Tm(e,t,i,this[km])},i.rm=function(t){var e=t.cc;return t.Ld()&&e&&e.ads&&0<e.ads.length?Lh:t.zf?Ih:vh},i.getType=function(){return"VAST"},e}($d),xm=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.getType=function(){return"VIDEO"},e}(Bm),Um=function(){function t(t){this.V=t.sg,this.rh=t.Vp,this.Lk=t.jt}var e=t.prototype;return e.Gi=function(){var t=this;return this.tf||(this.tf=this.V.vt(this.rh).then(function(e){return t.yh.apply(t,md()(e))})),this.tf},e.Hi=function(){if(!this.vd){var t=this.V.wt(this.rh);if(t=this.qh.apply(this,md()(t)),!this.Ck(t))throw Error("can't be created synchronously");this.vd=t}return this.vd},e.Ck=function(t){return null==t||"function"!=typeof t.then},e.qh=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.Lk.apply(null,e)},e.yh=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=this;return new fr.a(function(t){n.vd=n.qh.apply(n,e),t(n.vd)})},t}(),Vm=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.qh=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n={};return this.rh.forEach(function(t,i){n[t]=e[i]}),new this.Lk(n)},i.yh=function(){for(var e=this,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.prototype.yh.apply(this,n).then(function(t){var i=t;return e.vd.pm&&(i=e.vd.pm().then(function(){return t})),i})},i.Ck=function(t){return"function"!=typeof t.pm},e}(Um),jm=function(){function t(t){this.ge={},this.wk=!0,(this.Eh=t)&&this.wa(t,this)}var e=t.prototype;return e.pn=function(t,e,i){if(this.ge[t]){if(this.wk)throw Error("".concat(t," can't be provided twice"))}else this.ge[t]=ke.call(this,e,i);return this},e.Pe=function(t,e){return this.pn(t,e,!0)},e.la=function(t,e){return this.wa(t,this.oa(e))},e.wa=function(t,e){return this.pn(t,function(){return e})},e.Je=function(t){return void 0!==this.ge[t]},e.resolve=function(t){var e=this.ge[t];return e=e?e.Gi():fr.a.reject("no such dependency ".concat(t)),fr.a.race([e,Object(_r.y)(8e3).catch(function(){throw Error("".concat(t," isn't resolved in ").concat(8e3,"ms"))})])},e.M=function(t){var e=this.ge[t];if(!e)throw Error("no such dependency ".concat(t));return e.Hi()},e.vt=function(t){var e=this;return fr.a.all(t.map(function(t){return e.resolve(t)}))},e.wt=function(t){var e=this;return t.map(function(t){return e.M(t)})},e.Wv=function(t){return ke.call(this,t,!0).Gi()},e.oa=function(t){return ke.call(this,t,!0).Hi()},e.Fm=function(t){return ke.call(this,t).Gi()},e.$w=function(t){return ke.call(this,t).Hi()},e.Lx=function(t){void 0!==t.bq&&(this.wk=t.bq)},t}(),Fm=function(t){function e(e){var i=t.call(this,e.Eh)||this;return i.Gh=e,i}Rr()(e,t);var i=e.prototype;return i.resolve=function(e){var i=this;return t.prototype.resolve.call(this,e).catch(function(t){if(!/no such dependency/.exec(t))throw t;return t=i.Gh.resolve(e)})},i.Je=function(e){return t.prototype.Je.call(this,e)||this.Gh.Je(e)},i.M=function(e){try{return t.prototype.M.call(this,e)}catch(t){return this.Gh.M(e)}},e}(jm),Hm=Symbol(),Ym=Symbol(),Gm=function(){function t(t){this[Hm]=t.dom,this[Ym]=t.geminiMacrosResolver}return t.prototype.Zl=function(t){var e=this,i=t.kj;t.ln.forEach(function(t){e[Hm].createElement("img").src=e[Ym].resolve(t,i)})},t}();Gm.N=["dom","geminiMacrosResolver"];var Km=Symbol(),qm=Symbol(),Wm=Symbol(),zm=Symbol(),Xm=vr.a.K("GeminiAdView"),Qm=function(t){function e(e){var i=e.adSystem,n=[],r=t.call(this,null,{dispatchEvent:function(t){n.forEach(function(e){return e(t)})}},null,i,e.adEngine)||this;return Xm.debug("instance created"),r[zm]=e.environment,r[Km]=e.adContainerProvider.Ob(),r[qm]=i,r[Wm]=n,r}Rr()(e,t);var i=e.prototype;return i.Yu=function(t){return this[Wm].push(t),this},i.load=function(t){try{var e=JSON.parse(t.tag)}catch(t){e={}}this.Sn(function(t){t=((t.assets||[]).find(function(t){return"VIDEO_PRIMARY"===t.usageType})||{}).mediaInfo||[];var e=this[zm].Zc();return l_.uj(e.width,e.height,t.map(function(t){return Object.assign({},t,{mimeType:t.contentType})}))}.call(this,e)).Md(0),this.va={ua:{url:e.clickUrl}}},e}(hf);Qm.N=["adEngine","adSystem","adContainerProvider","environment"];var Jm=Symbol(),Zm=function(t){function e(e){var i=t.call(this,e)||this;return i[Jm]=e.geminiPixelsTracker,i}return Rr()(e,t),e.prototype.fj=function(){t.prototype.fj.call(this),this[Jm].Zl({ln:this.Mc.rr(),kj:Be.call(this)})},e}(T_);Zm.N=["eventBus","smartViewability","geminiPixelsTracker"];var $m=vr.a.K("GeminiRulesResolver"),ty=Symbol(),ey=Symbol(),iy=Symbol(),ny=Symbol(),ry=Symbol(),oy={viewabilityDefStatic:"STATIC_VIEW",viewabilityDefStatic3P:"STATIC_VIEW_3P",viewabilityDefVideo:"VIDEO_VIEW",viewabilityDefVideo3P:"VIDEO_VIEW_3P"},sy=function(){function t(t){$m.debug("constructor",t),this[ty]=t.adConfigEntry,this[ey]=t.injector}return t.prototype.resolve=function(){$m.debug("resolve"),this[iy]=((this[ty].kf||{}).ads||[])[0]||{},this[ry]=this[iy].rules||{},this[ny]=this[iy].actionUrls||{},xe.call(this)},t}();sy.N=["adConfigEntry","injector"];var ay=vr.a.K("GeminiEngine"),uy=Symbol(),ly=Symbol(),cy=Symbol(),dy=Symbol(),hy=Symbol(),py=Symbol(),fy=Symbol(),_y=Symbol(),my=function(t){function e(e){var i=t.call(this,e.adSystem,e.adConfigEntry)||this;return i[py]=new Is,i[fy]=[],i[ly]=new Fm(e.injector),i[uy]=e.errorTracker,i[cy]=e.geminiPixelsTracker,i[ly].wa("adEngine",tu()(i)),ay.debug("instance created"),i[ly].oa(sy).resolve(),i}Rr()(e,t);var i=e.prototype;return i.load=function(){t.prototype.load.call(this),this.I.dispatchEvent(new Zo(Zo.Vg,null,this.L)),this.Gf(),this.ready(!0)},i.zj=function(t){ay.debug("show linear ad");var e=((this.L.kf||{}).ads||[])[0]||{};this[dy]=e.actionUrls||{},this.Uh(),this.Vb(t),this[hy]=this[ly].oa(Qm),this[hy].Yu(function(t){var e="function"==typeof t.Mb&&t.Mb();switch(t.type){case ks.hb:e&&(this.Ph(e),ot(e));break;case ks.Bc:this.If(this[hy]);break;case va.Fc:var i;switch(e=t.Bb,e=(i={},rs()(i,Qs,"VIDEO_QUARTILE_25"),rs()(i,$s,"VIDEO_QUARTILE_50"),rs()(i,la,"VIDEO_QUARTILE_75"),rs()(i,qs,"VIDEO_QUARTILE_100"),i)[e],Ue.call(this,e),t.Bb){case ra:this.fl(t),Ue.call(this,"VIDEO_START"),30<t.data.currentTime&&Ue.call(this,"VIDEO_30_SEC");break;case qs:this.ia("finished",t.data),this.complete();break;case ea:this.Rh(t);break;case Qs:this.ia("q1",t.data);break;case $s:this.ia("q2",t.data);break;case la:this.ia("q3",t.data)}}}.bind(this)).load(e),this[py].resolve(this[hy]),this[_y]=$o.a.group($o.a.bind(this[hy],"VastMediaElementReady",function(){this[hy].Ab()}.bind(this)),$o.a.bind(this[hy],"VASTAdFinished",this.yd.bind(this)),$o.a.bind(this[hy],"VASTAdResumed",this.Th.bind(this)),$o.a.bind(this[hy],"VASTAdEngineComplete",this.complete.bind(this)),$o.a.bind(this[hy],Zo.We,this.I.dispatchEvent.bind(this.I)))},i.Yd=function(){throw Error("overlay is not supported")},i.stop=function(){ay.debug("stop"),this[py].sa().then(function(t){return t.stop()})},i.complete=function(){this[_y]&&this[_y].Z(),t.prototype.complete.call(this)},i.skip=function(){ay.debug("skip"),this[py].sa().then(function(t){return t.skip()})},i.pause=function(){ay.debug("pause"),this[py].sa().then(function(t){return t.pause()})},i.resume=function(){ay.debug("resume"),this[py].sa().then(function(t){return t.resume()})},i.setVolume=function(t){ay.debug("setVolume",t),this[py].sa().then(function(e){return e.setVolume(t)})},i.getDuration=function(){return this[hy]&&this[hy].getDuration()||0},i.getCurrentTime=function(){return this[hy]&&this[hy].getCurrentTime()||0},i.Ea=function(){return this.getDuration()},i.getAdSkippableState=function(){return!1},i.getAdCompanions=function(){return""},e}(Rf);my.N="injector adConfigEntry adSystem adContainerProvider errorTracker geminiPixelsTracker".split(" ");var yy=vr.a.K("GeminiEngineProducer"),vy=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.Pf=function(t){yy.debug("createAdEngine",t);var e=new Fm(this.ri().eb());return e.wa("adConfigEntry",t),e.Pe("geminiPixelsTracker",Gm),e.oa(my)},i.getType=function(){return"GEMINI"},e}($d),gy=i(134),Ey=i.n(gy),by=vr.a.K("ImaLibLoader"),Sy={zc:"failed",LOADING:"loading",bk:"not_started",lk:"success"},Ay=Symbol(),Ty=Symbol(),Iy=Symbol(),Cy=function(){function t(t){this[Ay]=t.scriptLoader,this[Ty]=[],this[Iy]=Sy.bk}return t.prototype.load=function(t){this[Iy]===Sy.bk&&(by.debug("Loading IMA lib..."),this[Iy]=Sy.LOADING,this[Ay].Tr(Rc.a["ima.url"],function(t){t&&window.google&&window.google.ima?(this[Iy]=Sy.lk,by.debug("IMA lib loaded","version",window.google.ima.VERSION)):(t=!1,this[Iy]=Sy.zc,by.error("Failed to load IMA lib")),this[Ty].forEach(function(e){return e(t)}),this[Ty]=[]}.bind(this))),t&&(this[Iy]===Sy.LOADING?this[Ty].push(t):this[Iy]===Sy.lk?t(!0):t(!1))},t}();Cy.N=["scriptLoader"];var Ry=vr.a.K("ImaEngine"),Ly=Symbol(),Py=Symbol(),Oy=Symbol(),Dy=Symbol(),My=Symbol(),wy=Symbol(),Ny=Symbol(),ky=Symbol(),By=Symbol(),xy=Symbol(),Uy=function(t){function e(e,i){return e=t.call(this,e,i)||this,Ry.debug("init"),e.S=_r.h("div",{class:"ima-ad-container",style:"width: 100%; height: 100%; position: absolute; z-index: 1"},e.S),tu()(e).S.style.setProperty("visibility","hidden"),e[xy]=e.V.oa(Cy),e[xy].load(),e}Rr()(e,t);var i=e.prototype;return i.load=function(){var e=this;this[xy].load(function(i){if(i){t.prototype.load.call(e),e[wy]=window.google.ima,e[wy].settings.setVpaidMode(e[wy].ImaSdkSettings.VpaidMode[e.J.Pm()?"ENABLED":"INSECURE"]),e[wy].settings.setDisableCustomPlaybackForIOS10Plus(!0),i="Preroll"===e.L.getType()?e.X.nl().yi():null,e[Ny]=new e[wy].AdDisplayContainer(e.S,i),Ry.debug("load()","AdDisplayContainer",e[Ny]),e[My]=new e[wy].AdsLoader(e[Ny]),e[My].addEventListener(e[wy].AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(t){Ry.debug("onAdsManagerLoaded()",t),this.Bh||(this[Dy]=t.getAdsManager(this.X.Li()),this.ready(!0))}.bind(e),!1),e[My].addEventListener(e[wy].AdErrorEvent.Type.AD_ERROR,Fe.bind(e),!1),(i=new e[wy].AdsRequest).adTagUrl=e.L.getUrl();var n=je.call(e);i.nonLinearAdSlotWidth=n.width,i.linearAdSlotWidth=n.width,i.nonLinearAdSlotHeight=n.height,i.linearAdSlotHeight=n.height,i.setAdWillAutoPlay(e.J.Ji().autoplay),i.setAdWillPlayMuted(0===e.I.getVolume()),Ry.debug("requestAds()",i),e[My].requestAds(i)}else Ry.error("Failed to load IMA lib"),e.complete(),He.call(e)})},i.stop=function(){this.Bh=!0,t.prototype.stop.call(this),this.yd(this.getCurrentTime()),He.call(this)},i.getCurrentTime=function(){var t=this[Dy]&&this[Dy].getCurrentAd();return Math.round(t&&t.getDuration()-this[Dy].getRemainingTime()||0)},i.pause=function(){this[Dy].pause()},i.Jf=function(){var e={};e.volume=this[Dy].getVolume(),t.prototype.Jf.call(this,{data:e})},i.resume=function(){this[Dy].resume()},i.setVolume=function(t){Ry.debug("setVolume()",t),this[Dy].setVolume(t),function(t){this.J.Ud()&&Array.prototype.slice.call(this.S.getElementsByTagName("video")).forEach(function(e){return e.muted=t})}.call(this,!t)},i.zj=function(t){var e=this,i=this.L.getType();_r.c.ug()&&"Midroll"===i?(Ye.call(this),function(t){_r.A(this[By]),Ry.debug("showCovering()"),this[By]=_r.h("div",{backgroundColor:"#000",display:"table",height:"100%",position:"absolute",width:"100%",zIndex:100},this.S);var e=_r.h("div",{display:"table-cell",textAlign:"center",verticalAlign:"middle"},this[By]);_r.h("div",{class:"ima-play-button"},e,Ey.a).addEventListener("click",t,!1),this.S.style.setProperty("visibility","visible")}.call(this,function(){e.Vb(t),Ge.call(e)})):(this.Vb(t),Ge.call(this))},i.Yd=function(){t.prototype.Yd.call(this),Ge.call(this)},e}(Rf),Vy=vr.a.K("ImaEngineProducer"),jy=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.Pf=function(t){return Vy.debug("createAdEngine",t),new Uy(this.ri(),t)},i.getType=function(){return"IMA"},e}($d),Fy=vr.a.K("MassiveAdEngineAdapter"),Hy=Symbol(),Yy=Symbol(),Gy=Symbol(),Ky=Symbol(),qy=function(t){function e(e,i,n){var r=t.call(this)||this;return r[Yy]=[],r[Hy]=[],r[Gy]=[],e.forEach(function(t){return r[Yy].push(new Jd(t,i,n))}),r}Rr()(e,t);var i=e.prototype;return i.load=function(){var e=this;t.prototype.load.call(this),this[Gy]=[],this[Yy].concat().forEach(function(t){qe.call(e,t).link($o.a.bind(t,Zo.ob,e.ready.bind(e,t)),$o.a.bind(t,Zo.Db,e.mu.bind(e,t))),t.load()})},i.yb=function(){var e=this;t.prototype.yb.call(this),this[Gy].forEach(function(t){return We.call(e,t)}),this[Gy]=[]},i.ready=function(e,i){this[Ky]||(this[Ky]=!0,t.prototype.ready.call(this),this.dispatchEvent(i)),this.$c()?We.call(this,e):this[Gy].push(e)},i.mu=function(e,i){Xe.call(this,e),0===this[Yy].length&&(t.prototype.complete.call(this,!0),i.Ra=e.ba(),this.dispatchEvent(i))},i.lu=function(e,i){Xe.call(this,e),0===this[Yy].length&&(t.prototype.complete.call(this,e.Ie()),i.Ra=e.ba(),this.dispatchEvent(i))},i.stop=function(){var e=this;this.Km()||this.Ie()||this.Ke()||(t.prototype.stop.call(this),this[Yy]=[],this[Hy].forEach(function(t){(t=t.yj).stop(),ze.call(e,t)}))},i.skip=function(){t.prototype.skip.call(this),this[Yy].forEach(function(t){return t.skip()})},i.pause=function(){t.prototype.pause.call(this),this[Yy].forEach(function(t){return t.pause()})},i.resume=function(){t.prototype.resume.call(this),this[Yy].forEach(function(t){return t.resume()})},i.setVolume=function(e){t.prototype.setVolume.call(this),this.$c()&&this[Yy].forEach(function(t){return t.setVolume(e)})},i.getDuration=function(){return 0<this[Yy].length?this[Yy][0].getDuration():t.prototype.getDuration.call(this)},i.Ea=function(){return 0<this[Yy].length?this[Yy][0].Ea():t.prototype.Ea.call(this)},i.getCurrentTime=function(){return 0<this[Yy].length?this[Yy][0].getCurrentTime():t.prototype.getCurrentTime.call(this)},i.getAdSkippableState=function(){return 0<this[Yy].length&&"function"==typeof this[Yy][0].getAdSkippableState?this[Yy][0].getAdSkippableState():t.prototype.getAdSkippableState.call(this)},i.jb=function(){return 0<this[Yy].length?this[Yy][0].jb():t.prototype.jb.call(this)},i.ba=function(){return 0<this[Yy].length?this[Yy][0].ba():t.prototype.ba.call(this)},e}(Kd),Wy=Symbol(),zy=Symbol(),Xy=Symbol(),Qy=Symbol(),Jy=Symbol(),Zy=Symbol(),$y={bids:[],code:"video1",mediaTypes:{video:{context:"instream"}}},tv={output:"vast"},ev=function(t){function e(e,i,n){return(e=t.call(this,e,i,n)||this)[Qy]=n,e[Wy]=e.V.M("dom"),e[zy]=e.V.M("environment"),e[Xy]=e.V.M("urls").xr(),e}return Rr()(e,t),e.prototype.load=function(){var e=this,i=this[zy].Zc();if($y.sizes=[i.width,i.height],i=this[Qy].Kk,Array.isArray(i)?$y.bids=i:$y.bids[0]=i,this[Zy]=this.J.Ka("prebid_ad_server")||"dfp",i=this.J.Ka("prebid_params"))try{i=JSON.parse(decodeURIComponent(i))}catch(t){}return this[Jy]=Object(_r.k)(tv,i||{}),this[Wy].Rd(this[Xy]).then(function(){var t=this,e=new Is;return window.pbjs.que.push(function(){window.pbjs.addAdUnits($y),window.pbjs.setConfig({cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),window.pbjs.requestBids({bidsBackHandler:function(){var i=window.pbjs.adServers[t[Zy]].buildVideoUrl({adUnit:$y,params:t[Jy]});e.resolve(i)}})}),window.pbjs.bidderSettings={standard:{adserverTargeting:[{key:"hb_bidder",val:function(t){return t.bidderCode}},{key:"hb_adid",val:function(t){return t.adId}},{key:"hb_pb",val:function(){return"10.00"}},{key:"hb_size",val:function(t){return t.size}}]}},e.sa()}.bind(this)).then(function(i){return e[Qy].qp(i),e[Qy].Cj(),t.prototype.load.call(e,i)})},e}(vh),iv=function(t){function e(){return t.apply(this,arguments)||this}Rr()(e,t);var i=e.prototype;return i.rm=function(){return ev},i.getType=function(){return"PREBID"},e}(Bm),nv=vr.a.K("AdsRunner"),rv={ef:"Created",LOADED:"Loaded",od:"Running",Fb:"Stopped"},ov=Symbol(),sv=Symbol(),av=Symbol(),uv=Symbol(),lv=Symbol(),cv=Symbol(),dv=Symbol(),hv=Symbol(),pv=Symbol(),fv=Symbol(),_v=Symbol(),mv=function(t){function e(e,i){nv.debug("init");var n=t.call(this)||this;return n[ov]=e,n[sv]=e.ic(),n[av]=i,n[_v]={},n.reset(),e=tu()(n),ii.call(e,Bm),ii.call(e,xm),ii.call(e,jy),ii.call(e,iv),ii.call(e,vy),n}Rr()(e,t);var i=e.prototype;return i.reset=function(){this[uv]=[],this[lv]=rv.ef,this[cv]=[],this[fv]=null,this[dv]=0,this[hv]=-1,this[pv]=-1},i.yb=function(){if(nv.debug("run"),this.Ke())ei.call(this,"Runner already stopped");else if(this[lv]!==rv.LOADED){var t=this.yb;nv.debug("Register deferred function:",t),this[uv].push(t)}else this[lv]=rv.od,this[cv][0].vg()&&(nv.debug("run the most priority adapter",this[cv][0]),$e.call(this)),-1===this[hv]&&$e.call(this),this[lv]!==rv.ef&&(0===this[cv].length?ei.call(this,"No adapters - finish"):Qe.call(this)&&ei.call(this,"All adapters failed - finish"))},i.load=function(t,e){var i=this;if(nv.debug("load",t),0===t.length)ei.call(this,"no ad entries");else{var n=[],r=this[sv].ub;t.forEach(function(t){r=Math.max(r,t.zi());var o=t.getAdEngineType(),s=i[_v][o];s?(o=s.Pf(t),t.pf?n.push(o):(t=new Jd(o,i[sv],i[av]),i[cv].push(t),Ze.call(i,t,e))):(nv.error("Ignore ad config entry ",t," Unknown ad engine type ",o),i[av].Um(t))}),0<n.length&&(t=new qy(n,this[sv],this[av]),this[cv].push(t),Ze.call(this,t,e)),this[hv]=setTimeout(function(){nv.debug("softTimeout (".concat(this[sv].kd,"s)")),this[hv]=-1,this[lv]===rv.od&&(this[cv][0].$c()?nv.info("the most priority adapter is already running"):$e.call(this))}.bind(this),this[sv].kd),this[pv]=setTimeout(function(){nv.debug("hardTimeout (".concat(this[sv].ub/1e3,"s)")),this[pv]=-1,this[lv]===rv.od&&(this[fv]||ei.call(this,"hard timeout"))}.bind(this),r),this[ov].dispatchEvent(Zo.Sg,this[cv]),this[cv].forEach(function(t){void 0!==i[dv]&&t.setVolume(i[dv]),t.load()})}},i.stop=function(){nv.debug("stop"),this[lv]=rv.Fb,this[cv].forEach(function(t){return t.stop()})},i.skip=function(){this[fv]?this[fv].skip():this[cv][0]&&this[cv][0].skip()},i.pause=function(){this[cv].forEach(function(t){return t.pause()})},i.jb=function(){if(this[fv])return this[fv].jb()},i.resume=function(){this[cv].forEach(function(t){t.$c()&&t.resume()})},i.setVolume=function(t){this[dv]=t,this[cv].forEach(function(e){return e.setVolume(t)})},i.getDuration=function(){if(this[fv])return this[fv].getDuration()},i.Ea=function(){if(this[fv])return this[fv].Ea()},i.getAdSkippableState=function(){if(this[fv])return this[fv].getAdSkippableState()},i.Rb=function(){if(this[fv])return this[fv].Rb()},i.Sb=function(){if(this[fv])return this[fv].Sb()},i.Lb=function(){if(this[fv])return this[fv].Lb()},i.Qb=function(){if(this[fv])return this[fv].Qb()},i.getCurrentTime=function(){if(this[fv])return this[fv].getCurrentTime()},i.Ke=function(){return this[lv]===rv.Fb},i.os=function(){return this[lv]===rv.LOADED},i.getAdCompanions=function(){var t="";return this[cv].forEach(function(e){e=e.getAdCompanions(),t||(t=e)}),t},e}(Cu.default),yv=Symbol(),vv=Symbol(),gv=Symbol(),Ev=Symbol(),bv=Symbol(),Sv=Symbol(),Av=Symbol(),Tv=function(){function t(t){this[yv]={adServerRequests:[],adStartTime:null,initTime:+new Date,startAdTime:null},this[vv]=null,this[gv]=null,this[Ev]=[],this[bv]=t,ni.call(this),t=this[bv].cm().dl,this[Av]=document.createElement("iframe"),this[Av].style.display="none",this[Av].src="https://cdn.vidible.tv/prod/player/ad-time/local-storage.html",t.parentElement&&t.parentElement.appendChild(this[Av])}var e=t.prototype;return e.kr=function(){return this[yv]},e.Qq=function(){return this[Sv]?this[Sv].end-this[Sv].start:0},e.vr=function(){return 0<this[yv].adServerRequests.length?this[yv].adServerRequests[0].start-this[yv].initTime:0},e.yq=function(){return this[yv].adStartTime||0},t}(),Iv=Symbol(),Cv=Symbol(),Rv=Symbol(),Lv=Symbol(),Pv=function(){function t(){}var e=t.prototype;return e.It=function(t){this[Iv]=t},e.$f=function(){return this[Iv]},e.Xt=function(t){this[Cv]=t},e.gg=function(){return this[Cv]},e.Vt=function(t){this[Rv]=t},e.fg=function(){return this[Rv]},e.$t=function(t){this[Lv]=t},e.hg=function(){return this[Lv]},e.reset=function(){this[Iv]=null,this[Cv]=null,this[Rv]=null,this[Lv]=null},t}(),Ov=Symbol(),Dv=function(){function t(){this[Ov]=[]}var e=t.prototype;return e.ui=function(){return this[Ov]},e.Mt=function(t){this[Ov]=t},t}(),Mv=Symbol(),wv=Symbol(),Nv=Symbol(),kv=Symbol(),Bv=Symbol(),xv=Symbol(),Uv=Symbol(),Vv=Symbol(),jv=Symbol(),Fv=function(){function t(t){this[kv]=t.config,this[Bv]=t.adsConfig,this[xv]=t.display,this[Uv]=t.smartViewability,this[jv]=t.moatIvtResolver,this[wv]=t.injector,t=100;var e=this[xv].Pi()*this[xv].Ai();(_r.c.ug||3e4<e)&&(t=80),this[Vv]={},this[Vv].inView100=ci.call(this,{a:1,c:0,p:100}),this[Vv].inView50=ci.call(this,{a:0,c:0,p:50}),this[Vv].inView50Continuous=ci.call(this,{a:0,c:1,p:50}),this[Vv].inView50Continuous=ci.call(this,{a:0,c:1,p:t}),this.Eg=[[k_,bi.bind(this)],[F_,Si.bind(this)],[j_,pi.bind(this)],[V_,fi.bind(this)],[G_,hi.bind(this)],[w_,di.bind(this)],[B_,gi.bind(this)],[N_,_i.bind(this)],[U_,Ei.bind(this)],[H_,mi.bind(this)],[Y_,yi.bind(this)],[x_,vi.bind(this)]],this[Mv]=it(this.Eg)}var e=t.prototype;return e.hd=function(t){return this[Nv]=t,this},e.resolve=function(t,e){return e?(e=it(e),e=this[Mv].join(e)):e=this[Mv],e.resolve(t)},t}();Fv.N="injector adsConfig config display moatIvtResolver smartViewability".split(" ");var Hv=function(){function t(t){this.vk=t}var e=t.prototype;return e.Wh=function(){},e.show=function(){},e.Zw=function(){},t}(),Yv=function(){function t(t,e){this.$b=t,this.Za=e,this.uf=new Is,this.rk="handshakeVersion initAd startAd stopAd skipAd resizeAd pauseAd resumeAd expandAd collapseAd subscribe unsubscribe".split(" ")}var e=t.prototype;return e.xm=function(){return this.uf.sa()},e.Rc=function(){Object(_r.A)(this.$b)},e.bd=function(t){this.Rc(),this.uf.reject(t)},e.Jb=function(t,e){"setAdVolume"===t&&this.mute(0===e[0])},e.mute=function(){},t}(),Gv=Symbol(),Kv=Symbol(),qv=Symbol(),Wv=Symbol(),zv=Symbol(),Xv=Symbol(),Qv=Symbol(),Jv={AdImpression:function(){"Midroll"===this[Kv]&&Ai.call(this)},AdVideoStart:function(){Ai.call(this)}},Zv=function(t){function e(e,i,n,r,o,s){return(e=t.call(this,e,i)||this)[Kv]=n,e[Wv]=r,e[zv]=o,e[Qv]=s,e}Rr()(e,t);var i=e.prototype;return i.Si=function(t){var e=this;"Overlay"===this[Kv]||"Midroll"===this[Kv]||this[Wv].isPlaying()?(this[Gv]=Object(_r.i)(t),this.$b.parentElement.appendChild(this[Gv])):(this[qv]=!0,this[Wv].nl(),this[Gv]=this[Wv].Li()),function(t,e,i){var n=new Is,r=document.createElement("script");return r.src=e,t.appendChild(r),r.onload=r.onreadystatechange=function(){var e=r.readyState;if(!e||"complete"===e||"loaded"===e){if(e=t.ownerDocument.defaultView.getVPAIDAd){var o=e();o?(e=i.filter(function(t){return!o[t]})).length?n.reject({name:e[0],type:"RM.APIFunctionIsMissing"}):n.resolve({creative:o,height:t.offsetHeight,width:t.offsetWidth}):n.reject({type:"RM.noCreative"})}else n.reject({type:"RM.getVpaidAdIsMissing"});r.onload=null,r.onreadystatechange=null}},r.onerror=function(){return n.reject({type:"RM.VPAIDUrlUnavailable",url:e})},n.sa()}(t.body,this.Za,this.rk).then(function(t){e[Xv]=t.creative,e.uf.resolve({data:t,Rn:e})},this.bd.bind(this))},i.Jb=function(e,i){var n;return t.prototype.Jb.call(this,e,i),this[Xv][e]&&(n=this[Xv])[e].apply(n,md()(i))},i.initAd=function(t,e,i,n,r){var o=Object(_r.h)("div",{class:"vpaid-content",style:"height: 100%"},this.$b.contentDocument.body),s=this[zv].tq().tu;o={companionSlots:this[Qv],slot:o,topOffsetPromise:s?s.sa():fr.a.resolve(),videoSlot:this[Gv],videoSlotCanAutoPlay:!0},t=t||this[Gv].offsetWidth,e=e||this[Gv].offsetHeight,this[Xv].initAd(t,e,i,n,r,o)},i.subscribe=function(t,e,i){Jv[e]?this[Xv].subscribe(Ti.bind(this,t,e),e,i):this[Xv].subscribe(t,e,i)},i.unsubscribe=function(t,e){Jv[e]?this[Xv].unsubscribe(Ti.bind(this,t,e),e):this[Xv].unsubscribe(t,e)},i.Rc=function(){t.prototype.Rc.call(this),this[qv]&&this[Wv].rj()},i.mute=function(t){this[Gv].muted=t},e}(Yv),$v=i(135),tg=i.n($v),eg=function(t){function e(e){return t.call(this,e.dom)||this}return Rr()(e,t),e.prototype.Wh=function(t,e,i,n,r,o){var s=this,a=new Is;return(t=new fa(t).Gm({Sd:function(t,u){s.vk.mi(tg.a,u.head),(t=new Zv(t,e,i,n,r,o)).Si(u),t.xm().then(a.resolve,a.reject)}})).style.pointerEvents="auto !important",t.style.position="absolute",t.style.top="0",a.sa()},e}(Hv);eg.N=["dom"];var ig=Symbol(),ng=Symbol(),rg=function(){function t(){this[ig]=0,this[ng]=0}var e=t.prototype;return e.Mi=function(){return this[ng]},e.append=function(t){return this[ng]|=(t?1:0)<<this[ig]++,this},t}(),og=i(30),sg=vr.a.K("MoatIvtResolver"),ag=Symbol(),ug=Symbol(),lg=Symbol(),cg=Symbol(),dg=Symbol(),hg=Symbol(),pg=Symbol(),fg=Symbol(),_g=Symbol(),mg=Symbol(),yg=Symbol(),vg=function(){function t(){sg.debug("init"),this[lg]=0,this[cg]=0,this[mg]=document&&document.body&&document.body.style?document.body.style:{},this[yg]=document&&document.documentElement&&document.documentElement.style?document.documentElement.style:{},this[dg]=pr.a.Aa(),this[hg]=this[dg].CSS,this[pg]=this[dg].navigator,this[fg]=this[dg].performance,this[_g]=!(!this[dg].CSS||!this[dg].CSS.supports);var t=document.createElement("div"),e={};if(t.style){t.style.wordSpacing="10%",e[0]="10%"===t.style.wordSpacing?1:0,t.style.width="1px",t.style.width="-webkit-min-content",t.style.width="min-content",e[1]="1px"===t.style.width?0:1,t.style.width="1px",t.style.width="calc(1px - 1px)",t.style.width="-webkit-calc(1px - 1px)",e[2]="1px"===t.style.width?0:1,e[3]=Object(_r.t)(t.matches),e[4]=og.a.Ep(t),e[5]=t.Zh&&Object(_r.t)(t.Zh)?1:0,t.style.fontStretch="ultra-condensed",e[6]="ultra-condensed"===t.style.fontStretch?1:0;var i=null,n=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];if(_r.s)try{t.addBehavior("#default#clientCaps");for(var r=0;r<n.length;r++)if(i=t.qw(n[r],"componentid").replace(/,/g,".")){e[7]=i.split(".")[0];break}}catch(t){}e[7]=e[7]||0}this[ug]=e,this[ag]={a:Ii,b:Ci,c:Ri.bind(this),d:Li.bind(this),e:Pi.bind(this),i:Oi.bind(this),j:Di,k:Mi.bind(this),l:wi.bind(this),m:Ni.bind(this),n:ki.bind(this),o:Bi.bind(this),p:xi.bind(this),q:Ui.bind(this)}}return t.prototype.er=function(){var t=this,e=[];return Object.keys(this[ag]).forEach(function(i){try{var n=t[ag][i]();e.push("".concat(i,"=").concat(n)),sg.debug("ivt signal composed: ".concat(i,"=").concat(n))}catch(t){sg.debug("can't compose ivt signal '".concat(i,"': ").concat(t.message))}}),e.join("&")},t}(),gg=Symbol(),Eg=Symbol(),bg=Symbol(),Sg=Symbol(),Ag=vr.a.K("SecureVPAID"),Tg=function(t){function e(e,i){return(e=t.call(this,e,i)||this)[gg]=$o.a.empty(),e[Sg]={size:{}},e[bg]=[],e}Rr()(e,t);var i=e.prototype;return i.Si=function(){this[Eg]=Or.a.gn(this.$b.src).origin,$o.a.bind(this.$b.contentWindow.parent,"message",Yi.bind(this)).link(this[gg]),this.Jb("init",{url:this.Za,vpaidInterface:this.rk})},i.Jb=function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];t.prototype.Jb.call(this,i[0],i[1]),Hi.apply(this,[].concat(Array.prototype.slice.call(i)))},i.initAd=function(t,e,i,n,r){this.Jb("initAd",t,e,i,n,r,{videoSlotCanAutoPlay:!0})},i.subscribe=function(t,e,i,n){this[bg][e]||(this[bg][e]=[],this.Jb("subscribe",{eventName:e,getter:n})),this[bg][e].push({Sl:e,listener:t})},i.unsubscribe=function(t,e){this[bg][e]=this[bg][e].filter(function(e){return e.listener!==t}),0===this[bg][e].length&&this.Jb("unsubscribe",{eventName:e})},i.getAdVolume=function(){return this[Sg].volume},i.getAdSkippableState=function(){return this[Sg].isSkippable},i.getAdExpanded=function(){return this[Sg].isExpanded},i.getAdWidth=function(){return this[Sg].size.width},i.getAdHeight=function(){return this[Sg].size.height},i.getAdDuration=function(){return this[Sg].duration},i.getAdLinear=function(){return this[Sg].isLinear},i.getAdRemainingTime=function(){return this[Sg].remainingTime},i.Rc=function(){this[bg]=[],this[gg].Z(),t.prototype.Rc.call(this)},i.mute=function(t){Hi.call(this,"mute",t)},e}(Yv),Ig=i(78),Cg=0,Rg=function(t){function e(e){return t.call(this,e.dom)||this}return Rr()(e,t),e.prototype.Wh=function(t,e){var i=Ig.a.Ta("oathPlayerBuildTag",window.location.href);i="".concat(Gi(Rc.a["cdn.url"],Rc.a["s3.url"],i),"xdomain-vpaid.html?id=").concat(Cg++);var n=this.vk.createElement("iframe");return n.id="xdomainFrame",n.style.position="absolute",n.style.top=0,n.style.width="100%",n.style.height="100%",n.style.zIndex=2,n.style.pointerEvents="auto !important",n.setAttribute("frameborder","0"),n.setAttribute("allow","autoplay"),e=new Tg(n,e),n.onload=e.Si.bind(e),n.src=i,t.appendChild(n),e.xm()},e}(Hv);Rg.N=["dom"];var Lg=new da.a(window.document),Pg=vr.a.K("VastRequestLoader"),Og=Symbol(),Dg=Symbol(),Mg=Symbol(),wg=Symbol(),Ng=Symbol(),kg=function(){function t(t){Pg.debug("init"),this[Dg]=t.injector,this[wg]={},this[Mg]=this[Dg].M("blockedCategoriesHandler"),this[Ng]=this[Dg].M("adsConfig").ub}var e=t.prototype;return e.hd=function(t){return this[Og]=t,this},e.qt=function(t,e,i){var n=t||[i.getUrl()];if(Object.prototype.hasOwnProperty.call(this[wg],n)){var r=this[wg][n];Pg.debug("VastPreloadRequest for ".concat(n),r),n=r.Cr()}else n=void 0;return n||function(t,e,i){return qi.apply(this,arguments)}.call(this,t,e,i)},e.Kr=function(t,e,i){return Ki.call(this,t,e,i)},e.preload=function(t){var e=this;!t||!t.adBreakItems||0>=t.adBreakItems.length||t.adBreakItems.forEach(function(t){t.customInfo.slot.aeg.forEach(function(t){if(!((t=t[0]).Ld()||t.getUrl()&&e[wg][t.getUrl()])){Pg.debug("Preloading vast for {".concat(t.getUrl(),"}"));var i=Ki.call(e,null,t),n=t?t.Be(i):e[Ng];e[wg][t.getUrl()]=new Bg(i,t,n).request()}})})},t}(),Bg=function(){function t(t,e,i){this.vc=t,this.cl=e,this.vn=i,this.state=0}var e=t.prototype;return e.request=function(){var t=this;return S(this.vc,null,this.fn.bind(this),function(e,i,n){t.cl&&t.cl.Lm()&&t.bd(e,i,n),S(t.vc,null,t.fn.bind(t),t.bd.bind(t),null,{timeout:t.vn})}.bind(this),null,{timeout:this.vn,withCredentials:!0}),this},e.Cr=function(){var t=this;return Pg.debug("Request Promise",this.vc,this.state),new fr.a(function(e,i){1===t.state?e(t.response,t.request):2===t.state?i({request:t.request,response:t.response,Xb:t.Xb}):t.sc={reject:i,resolve:e}})},e.fn=function(t,e){this.state=1,this.response=t,this.request=e,this.sc&&this.sc.resolve(this.response,this.request)},e.bd=function(t,e,i){this.state=2,this.response=t,this.request=e,this.Xb=i,this.sc&&this.sc.reject({request:this.request,response:this.response,Xb:this.Xb})},t}();kg.N=["injector"];var xg=Symbol(),Ug=Symbol(),Vg=Symbol(),jg=Symbol(),Fg=Symbol(),Hg=Symbol(),Yg=Symbol(),Gg=Symbol(),Kg=Symbol(),qg=Symbol(),Wg=Symbol(),zg=Symbol(),Xg=Symbol(),Qg=Symbol(),Jg=Symbol(),Zg=Symbol(),$g=Symbol(),tE=Symbol(),eE=Symbol(),iE=Symbol(),nE=Symbol(),rE=Symbol(),oE=Symbol(),sE=Symbol(),aE=Symbol(),uE=Symbol(),lE=Symbol(),cE=Symbol(),dE=Symbol(),hE=Symbol(),pE=Symbol(),fE=Symbol(),_E=Symbol(),mE=Symbol(),yE=Symbol(),vE=Symbol(),gE=vr.a.K("AdSystem"),EE=function(){function t(t){this[Ug]=t.adContainerProvider,this[hE]=t.adTracker,this[Xg]=t.config,this[tE]=t.injector,this[Yg]=t.adsConfig,this[Qg]=t.eventBus,this[uE]=t.slotOpportunityHandler,this[fE]=t.environment,this[Gg]=0,this[Kg]=0,this[Fg]=0,this[aE]=0,this[cE]=0,this[qg]=0,this[mE]=0,this[eE]=!1,this[$g]=!1,this[Zg]=!1,this[Jg]=new xs.a,this[iE]=[],this[Hg]=new Tv(this),this[yE]=new Pv,this[tE].Pe("secureRunner",Rg).Pe("insecureRunner",eg).Pe("blockedCategoriesHandler",Dv).la("scriptLoader",bc).la("moatIvtResolver",vg).la("geminiMacrosResolver",Fv).la("vastRequestLoader",kg).wa("adTimeLogger",this[Hg]).wa("latencyLogger",this[yE]),this[tE].M("geminiMacrosResolver").hd(this),this[vE]=this[tE].M("vastRequestLoader").hd(this),this[jg]=this[tE].oa(fd),this[rE]=this[tE].oa(Yd).hd(this),this[_E]=!!Or.a.Ta("nosyncpixels")||!!this[Xg].Ka("nosyncpixels")||!1,this[Xg].$r()||this[_E]||(.2>=Math.random()||Or.a.Ta("forceSmartPixel"))&&Lg.Rd("https://tag.sp.advertising.com/sp.js",!1,!0),gE.debug("setup"),this.addEventListener(Zo.Tg,function(){this[Kg]+=1,this[mE]+=1}.bind(this)),this.addEventListener(Zo.Na,function(){clearTimeout(this[Vg]),this[qg]+=1}.bind(this)),this.addEventListener(Zo.Ve,function(t){this[xg]=t.ba()}.bind(this)),this.addEventListener(Zo.Db,function(t){this[xg]=t.Ra}.bind(this)),this.addEventListener(Zo.$e,function(t){this[cE]=t.data.muted?0:t.data.volume}.bind(this)),this.addEventListener("AdSystem.LinearChange",function(t){t.data.isLinear||(1>=this.hr()?this.dispatchEvent(Zo.Xe,t):this.Js())}.bind(this)),this[hE].Kt(this[Yg]),this[hE].zp(),this[Wg]=new mv(this,this[jg]),this[Wg].setVolume(this[cE]),this[Wg].addEventListener(Jo.df,Ji.bind(this)),this[Gg]=this[Yg].Ib}var e=t.prototype;return e.load=function(t,e){this.aj(t,this.Tm.bind(this,null,e,null))},e.Zs=function(t){this[vE].preload(t)},e.Tm=function(t,e,i){var n=this;i&&(i===this[lE]?(this[Gg]=this[Yg].Ib,this[qg]=0):this[lE]=i),this[nE]&&this[nE].resume(),this[pE]=e,t&&(this[jg].Ht(t),this[iE]=Wi.call(this,this[jg].ze(this[lE]))),this[sE]||(this[sE]=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};n[pE]&&n[pE](t),n[sE]=null,n[pE]=null}),0<this[iE].length?this[Wg].load(this[iE],this[sE]):this[sE]&&this[sE]()},e.aj=function(t,e){var i=this;t=t||{},gE.debug("Load ads",t),this[sE]=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};i[nE]&&i[nE].ei(),t.timings=i[dE],i[pE]&&i[pE](t),i[sE]=null,i[pE]=null},t.type&&(this[lE]=t.type),this[iE]=[],this[eE]=!1,"Preroll"===this[lE]&&0!=this[aE]++%this[Yg].rp?e():(t.preloadedConfig&&function(t){var e=this;[{Ub:function(){var t;return(t=e[Xg]).cu.apply(t,arguments)},Cb:t.pid},{Ub:function(){var t;return(t=e[Xg]).Nt.apply(t,arguments)},Cb:t.bcid},{Ub:function(){var t;return(t=e[fE]).Rt.apply(t,arguments)},Cb:t.vid},{Ub:function(){var t;return(t=e[Xg]).Lt.apply(t,arguments)},Cb:t.bckt},{Ub:function(){var t;return(t=e[Xg]).Ut.apply(t,arguments)},Cb:t.expn},{Ub:function(){var t;return(t=e[Xg]).Tt.apply(t,arguments)},Cb:t.expb},{Ub:function(){var t;return(t=e[Xg]).St.apply(t,arguments)},Cb:t.device},{Ub:function(){var t;return(t=e[Xg]).fu.apply(t,arguments)},Cb:t.region},{Ub:function(){var t;return(t=e[Xg]).gu.apply(t,arguments)},Cb:t.site}].forEach(function(t){return t.Cb&&t.Ub(t.Cb)})}.call(this,t.preloadedConfig),$o.a.group($o.a.qa(this[Qg],Ga.zc,Zi.bind(this,e)),$o.a.qa(this[Qg],Ga.LOADED,Zi.bind(this,e))),this[jg].qn(this[lE],t.originalTime,t.preloadedConfig),clearTimeout(this[Vg]),clearTimeout(this[nE]),0<(e=this[Yg].Es)&&(this[Vg]=setTimeout(function(){this[eE]=!0,this.stop()}.bind(this),e)),t.loadTimeLimit&&"Preroll"===this[lE]&&(this[nE]=new Sc(function(){this.dispatchEvent(new Zo(Zo.xc,this[lE]))}.bind(this),t.loadTimeLimit,!0)))},e.Lg=function(){gE.info("Start ads",this[iE],"of type",this[lE]),this[zg]=!0,0<this[iE].length?(gE.debug("blockPlayer"),I(this[lE])&&this[Jg].$a($o.a.qa(this,Zo.Na,this.dispatchEvent.bind(this,new Zo(Zo.Xn,this[lE])))),this[Wg].yb()):(gE.info("No ads to start - resume content"),zi.call(this,"NO_ADS"))},e.hn=function(){gE.debug("Pause Ads"),this[Wg].pause()},e.isPlaying=function(){return!this[Wg].jb()},e.Ct=function(){gE.debug("Resume Ads"),this[Wg].resume()},e.setVolume=function(t){gE.debug("Set Volume",t),this[cE]=t,this[Wg].setVolume(this[cE])},e.mute=function(t){gE.debug("Mute"),t?(this[oE]=this[cE],this.setVolume(0)):0<this[oE]?this.setVolume(this[oE]):0===this[cE]&&this.setVolume(1)},e.isMuted=function(){return!this[cE]},e.getDuration=function(){return this[Wg].getDuration()},e.Ea=function(){return this[Wg].Ea()},e.getAdSkippableState=function(){return this[Wg].getAdSkippableState()},e.getVolume=function(){return this[cE]},e.Kq=function(){return this.ic().ua},e.Rb=function(){return this[Wg].Rb()},e.Sb=function(){return this[Wg].Sb()},e.stop=function(){gE.debug("stop"),this[sE]=null,this[pE]=null,this[Wg]&&this[Wg].stop()},e.skip=function(){gE.debug("skip"),this.dispatchEvent(new Jo("Reporting.Basic.Click",{yl:"skipAhead"})),this[Wg].skip(),this.dispatchEvent(new Zo(Zo.Xg,this[lE]))},e.Pb=function(){return this[rE]},e.Js=function(){this[Wg].stop(),Ji.call(this)},e.hr=function(){return this[Gg]},e.Aq=function(){return this[Kg]},e.ic=function(){return this[Yg]},e.Xi=function(){return this[qg]<this[Yg].Ib},e.cm=function(){return this[Ug].Nq()},e.resize=function(){this.dispatchEvent("AdSystem.Resize")},e.eb=function(){return this[tE]},e.ba=function(){return this[xg]},e.getTimeLog=function(){return this[Hg].kr()},e.ag=function(){return this[lE]},e.addEventListener=function(t,e,i){this[Qg].addEventListener(t,e,i)},e.removeEventListener=function(t,e){this[Qg].removeEventListener(t,e)},e.dispatchEvent=function(){this[Qg].dispatchEvent.apply(this[Qg],arguments)},e.invokeAdMethod=function(t,e){this.dispatchEvent("AdSystem.InvokeAdMethod",{data:e,name:t})},e.getAdCompanions=function(){return this[Wg].getAdCompanions()},e.getCurrentTime=function(){return this[Wg].getCurrentTime()},e.qq=function(){return this[mE]},e.Lb=function(){return this[Wg].Lb()||-1},e.Qb=function(){var t=-1,e=this[Wg].Qb();return e&&(t=encodeURIComponent("".concat(e.Dm," ").concat(e.value))),t},e.em=function(){return this[Kg]},e.rq=function(){var t=this[Yg].Ib;return-1===t?12341234:t},t}();EE.N="injector adTracker config eventBus adsConfig adContainerProvider externalTracker errorTracker urls display parametersCombine smartViewability moatViewability slotOpportunityHandler environment".split(" ");var bE,SE=Symbol(),AE=Symbol(),TE=Symbol(),IE=Symbol(),CE=function(){function t(){this[IE]=[],this[TE]=[],this[SE]=!1}var e=t.prototype;return e.add=function(t){var e=this;return new fr.a(function(i){e[IE].push(function(){var n=t();i(e[IE][e[IE].length-1]),n&&n.then?n.then($i.bind(e)):(void 0===n||n)&&$i.call(e)}),e[SE]||$i.call(e)})},e.aw=function(){var t=this;return new fr.a(function(e){t[IE].length?t[TE].push(e):e()})},e.next=function(){$i.call(this)},e.empty=function(){this[IE]=[],$i.call(this)},t}(),RE=vr.a.K("PrimalTracker"),LE=function(){function t(e){this.J=e.config,this.yo=e.debugInfo,this.ya=e.urls,this.Ao=this.J.Ir(),bE=t.kt}var e=t.prototype;return e.ka=function(t,e){e=e||{},this.J.Qm()&&(e.itg="tbv"),this.gc(function(t,e){var i={bckt:this.J.Eq()||"",expb:this.J.Wq()||"",expn:this.J.Xq()||""};return i=Object(_r.x)([this.J.hm(),this.J.si(),this.J.Br(),{apid:this.J.Xf().utid},i]),e=Object(_r.C)(e),this.Vk=this.Vk||this.ya.Hr(),"".concat(this.Vk,"/").concat(t,"?").concat(i).concat(e?"&".concat(e):"","&cb=").concat(Math.random())}.call(this,t,e))},e.gc=function(t){if(RE.debug("PIXEL",t),this.Ao)if("string"!=typeof t||-1===t.indexOf("//"))RE.debug("not sending pixel",t);else{pr.a.vb()&&(t=mr.a.qj(t,"http://","https://")),0===t.indexOf("//")&&0!==window.location.protocol.indexOf("http")&&(t="https:".concat(t)),t=t.replace("[APID]",this.J.Xf().utid);var e=document.createElement("img");e.src=t,bE.add(function(){return!1});var i=bE.next.bind(bE),n=setTimeout(function(){i(),e.onload=null,e.onerror=null},1e3),r=function(){clearTimeout(n),i()};e.onload=r,e.onerror=r,this.yo.As(t)}else RE.debug("tracking is disabled")},t}();LE.N=["config","debugInfo","urls"],LE.kt=new CE;var PE=Symbol(),OE=function(t){function e(e){var i=t.call(this,e)||this;return i.ca=e.environment,i.Nc=e.smartViewability,i.Io=e.moatViewability,i.uh=e.errorTracker,i[PE]=e.hostWindowParamsObtainer,i}Rr()(e,t);var i=e.prototype;return i.ra=function(t,e,i){return Object.keys(t).forEach(function(e){return i[e]=t[e]}),Object.keys(e).forEach(function(t){if(null!==e[t]){var n=isNaN(e[t]);"number"==typeof e[t]&&n||(i[t]=e[t])}}),i},i.Ue=function(t){this.ra({"p.vw.active":+Ed.wb(),"p.vw.sound":Math.round(100*this.ca.getVolume()),vwa:this.Nc.na()},{vwm:this.Io.na()},t)},i.ij=function(t){var e=window.s_265||{};e={spaceid:this[PE].lc(),ss:e.channel||""},this.ra(e,{},t)},e}(LE);OE.N="config debugInfo urls environment smartViewability moatViewability errorTracker hostWindowParamsObtainer".split(" ");var DE=Symbol(),ME=Symbol(),wE=Symbol(),NE=vr.a.K("AdTracker"),kE=function(t){function e(e){var i=t.call(this,e)||this;return i[DE]=e.eventBus,i[wE]=e.hostWindowParamsObtainer,i}Rr()(e,t);var i=e.prototype;return i.zp=function(){this[ME]||(this[ME]=$o.a.group($o.a.bind(this[DE],"Reporting.Ad.Request",function(t){NE.debug("trackAdRequest",t);var e={};this.ra({at:(t.data.type||"Preroll").toLowerCase(),device:this.J.km(),ps:Object(_r.n)(!1),region:this.J.ym(),site:this.J.zm(),spaceid:this[wE].lc(),vid:this.ca.xi()},{},e),this.Ue(e),this.ka("ad-request.gif",e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Ad.Issue",function(t){NE.debug("trackAdIssue",t);var e={};en.call(this,t,e),nn.call(this,t,e),this.ra({},{sact:this.J.Jd()},e),this.ka("ad-issue.gif",e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Ad.Engine.Request",function(t){NE.debug("trackAdEngineRequest",t);var e={};en.call(this,t,e),this.Ue(e),this.ra({},{auid:t.data.auid,h:t.data.te,sact:this.J.Jd()},e),this.ka("ad-engine-request.gif",e),this.zo&&(e.acid||e.rid)&&tn.call(this,this.ya.zq(),e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Ad.Engine.Response",function(t){NE.debug("trackAdEngineResponse",t);var e={};en.call(this,t,e);var i=t.data.latency/100,n=this.ib.ub;this.ra({aert:t.data.latency,ar:t.data.ws?"yes":t.data.timeout?"timeout":"no",fo:t.data.Lu,ft:i<=this.ib.kd?0:i<=n?1:2},{to:t.data.timeout},e),this.ra({},{auid:t.data.auid,h:t.data.te,sact:this.J.Jd()},e),this.ka("ad-engine-response.gif",e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Ad.Engine.Flow",function(t){NE.debug("trackAdEngineFlow",t);var e={};en.call(this,t,e),nn.call(this,t,e);var i=t.data.mq||0;this.ra({ap:t.data.Bp,atsub:"LOOKAHEAD"===t.data.Xh?"SKIPPABLE_PREROLL":"",avid:t.data.Kf,cpm:t.data.bb,fo:t.data.Hf&&"win"!==t.data.Hf&&"loaded"!==t.data.Hf?i:void 0,h:t.data.te,m:t.data.muted},{ltc:t.data.latency},e),this.ij(e),this.Ue(e),this.ra({},{auid:t.data.auid,bsfv:"started"===e.stg&&t.data.bsfv?t.data.bsfv.sort().toString():"",sact:this.J.Jd()},e),this.ka("ad-engine-flow.gif",e),"started"===e.stg&&(e.acid||e.rid)&&tn.call(this,this.ya.uq(),e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Basic.Click",function(t){NE.debug("trackAdClick",t);var e={};en.call(this,t,e);var i=this.ca.cb();this.ra({cd:t.data.ua||"none",ct:t.data.yl,t:i&&i.time||0},{},e),this.ka("click.gif",e)}.bind(this)),$o.a.bind(this[DE],"Reporting.Ad.Slot.Opportunity",function(t){NE.debug("trackSlotOpportunity",t);var e={};en.call(this,t,e),this.ra({atsub:"LOOKAHEAD"===t.data.Xh?"SKIPPABLE_PREROLL":"",slot:t.data.slot},{},e),this.Ue(e),this.ij(e),this.ka("slot-opp.gif",e)}.bind(this))))},i.detach=function(){this[ME]&&this[ME].Z()},i.Kt=function(t){this.ib=t,this.zo=t.Yp},e}(OE);kE.N="config debugInfo environment eventBus moatViewability smartViewability urls hostWindowParamsObtainer".split(" ");var BE=Symbol(),xE=Symbol(),UE=Symbol(),VE=Symbol(),jE=Symbol(),FE=Symbol(),HE=Symbol(),YE=Symbol(),GE=Symbol(),KE=Symbol(),qE=Symbol(),WE=Symbol(),zE=Symbol(),XE=Symbol(),QE=Symbol(),JE=Symbol(),ZE=Symbol(),$E=Symbol(),tb=Symbol(),eb=Symbol(),ib=Symbol(),nb=Symbol(),rb=function(){function t(t){this[BE]=t,this[zE]=this[BE].bcid,this[XE]=this[BE].id,this[FE]=this[BE].timestamp,this[xE]={},this[UE]={},this[VE]={},this[GE]=!1,this[KE]=this[BE].macros||{},this[qE]=_r.l(this[KE],"rm."),this[jE]={vvuid:t.vvuid||l(this[FE])},this[tb]=_r.j(this[BE].queryString||""),this[tb].orgId&&(this[HE]=this[tb].orgId),this[tb].placementId&&(this[WE]=this[tb].placementId),this[tb].vrid&&(this[JE]=this[tb].vrid),this[tb].pblob&&(this[ZE]=this[tb].pblob,t=this[ZE].split("|"),this[$E]=3<=t.length?t[2]:""),this[QE]=this[BE].isEU}var e=t.prototype;return e.cs=function(){return"1"===this[tb].disableFailover},e.Hx=function(t){this[GE]=t},e.Aw=function(){return this[HE]},e.Mx=function(t){t&&(this[HE]=t)},e.Dw=function(){return this[WE]},e.Nx=function(t){t&&(this[WE]=t)},e.Bi=function(){return this[BE].sid},e.Gx=function(t){this[BE].bid=this[BE].bid||{},this[BE].bid.id=t},e.ti=function(){return this[BE].bid&&this[BE].bid.id||""},e.Sw=function(){return{}},e.ig=function(){return this[xE]},e.Bn=function(t){this[xE].aegOverride=t},e.bg=function(){return this[zE]},e.Nt=function(t){this[zE]=t},e.kg=function(){return this[XE]},e.cu=function(t){this[XE]=t},e.Yc=function(){return this[BE].playerType||"o2unit"},e.Od=function(){return"o2unit"===this.Yc()},e.Pd=function(){return"VDMS"===this.Yc()},e.cr=function(){return this[FE]},e.tq=function(){return this[VE]},e.Gt=function(t){this[UE]=t},e.Xf=function(){return this[UE]},e.wm=function(){return this[BE].jsVersion},e.getParameters=function(){var t={};return _r.g(this.hm(),t),_r.g(this[KE],t),t},e.hm=function(){var t={bcid:this.bg(),bid:this.ti(),pid:this.kg(),pt:this.Yc(),pv:this.wm(),r:pr.a.tb(window),s:Or.a.vb()?"true":void 0,sid:this.Bi(),vvuid:this[jE].vvuid};return this[HE]&&(t.orgId=this[HE]),this[WE]&&(t.plcid=this[WE]),this[$E]&&(t.spid=this[$E]),this[ZE]&&(t.pblob=this[ZE]),this[JE]&&(t.vrid=this[JE]),t},e.Eu=function(t){_r.g(t,this[VE])},e.Ka=function(t){return t="string"==typeof t?t.toLowerCase():t,this[KE]["m."+t]||this[KE][t]},e.si=function(){return this[KE]},e.Br=function(){return this[qE]},e.sm=function(){return this[jE]},e.Hu=function(t){this[jE].vvuid=t},e.pr=function(){return this.ig().aegOverride||{}},e.Ji=function(){return this[BE]},e.Qm=function(){return-1!==(this[BE].queryString||"").indexOf("tbv=on")},e.Hd=function(){return this[BE].geo},e.Ud=function(){return this[GE]||_r.c.Ud()},e.Qx=function(t){this[YE]=t},e.Jd=function(){return this[YE]},e.fm=function(){return this[BE].adSettings},e.Ix=function(t){this[BE].adSettings.companions=t},e.Ir=function(){return this[BE].trackingEnabled},e.He=function(){return this[BE].autoplay},e.Nm=function(){var t=this.He();if(!t)return!1;var e=this.Ud();return void 0===e?t:t&&e},e.Jm=function(){return this[BE].aggressiveMode},e.gs=function(){return this[BE].frosOnly},e.Pm=function(){return"1"===this.Ka("secureVPAIDsMode")},e.dg=function(){return this[BE].GDPRData},e.yr=function(){return this[BE].preview},e.$r=function(){return this[QE]},e.Jw=function(){return null},e.Lt=function(t){this[BE].bckt=t},e.Eq=function(){return this[BE].bckt},e.Ut=function(t){this[BE].expn=t},e.Xq=function(){return this[BE].expn},e.Tt=function(t){this[BE].expb=t},e.Wq=function(){return this[BE].expb},e.bu=function(t){this[ZE]=t},e.hu=function(t){this[$E]=t},e.St=function(t){this[eb]=t},e.km=function(){return this[eb]},e.fu=function(t){this[ib]=t},e.ym=function(){return this[ib]},e.gu=function(t){this[nb]=t},e.zm=function(){return this[nb]},t}(),ob=Symbol(),sb=Symbol(),ab=function(){function t(t,e){var i=this;t=t.eventBus,this[ob]=!0,this[sb]=e,$o.a.group($o.a.qa(t,Zo.Db,function(){return i[ob]=!1}),$o.a.qa(t,Zo.ob,function(){return i[ob]=!1}))}var e=t.prototype;return e.zb=function(t){this[sb].zb(t)},e.wb=function(){return this[ob]?1:this[sb].wb()},e.na=function(t){return this[ob]?100:this[sb].na(t)},e.Ce=function(){return this[ob]?1:this[sb].Ce()},t}();ab.N=["eventBus"];var ub=Symbol(),lb=Symbol(),cb=function(){function t(t,e){this[lb]=t;var i={ads:Rc.a["adserver.url"],adt:Rc.a["adstracker.url"],cdn:Rc.a["cdn.url"],trk:Rc.a["tracking.url"]},n={};Object.keys(i).forEach(function(t){n[t]=mr.a.yn(e&&e[t]||i[t],"\\s/")}),this[ub]=n}var e=t.prototype;return e.xq=function(){return"".concat(this[ub].ads,"/vrm?").concat(rn.call(this))},e.wq=function(){return"".concat(this[ub].ads,"/vrm/pods?").concat(rn.call(this))},e.vq=function(){return"".concat(this[ub].ads,"/ads?").concat(rn.call(this))},e.xr=function(){var t=Ig.a.Ta("oathPlayerBuildTag",window.location.href);return"".concat(Gi(Rc.a["cdn.url"],Rc.a["s3.url"],t),"prebid.js")},e.pw=function(t){return"".concat(this[ub].cdn,"/").concat(t||"")},e.Hr=function(){return this[ub].trk},e.uq=function(){return this[ub].ads+"/".concat("ads/ad-start.gif")+""},e.zq=function(){return this[ub].adt+"/".concat("ads/ad-request.gif")+""},t}(),db=Symbol(),hb=Symbol(),pb=function(){function t(t){this[hb]=t||new Cu.default,this[db]=[]}var e=t.prototype;return e.addEventListener=function(t,e,i){i=i?e.bind(i):e,this[db].push([t,e,i]),this[hb].addEventListener(t,i)},e.removeEventListener=function(t,e){for(var i=this[db],n=0;n<i.length;++n){var r=vd()(i[n],3),o=r[1],s=r[2];r[0]===t&&(o!==e&&e||this[hb].removeEventListener(t,s))}},e.un=function(){for(var t=this[db],e=0;e<t.length;++e){var i=vd()(t[e],3);this[hb].removeEventListener(i[0],i[2])}},e.dispatchEvent=function(t,e){this[hb].dispatchEvent(t,e)},t}(),fb={bv:"cleaning",IDLE:"idle",LOADING:"loading",PAUSED:"paused",PLAYING:"playing"},_b=Symbol(),mb=Symbol(),yb=Symbol(),vb=Symbol(),gb=Symbol(),Eb=Symbol(),bb=Symbol(),Sb=Symbol(),Ab=Symbol(),Tb=Symbol(),Ib=Symbol(),Cb=Symbol(),Rb=Symbol(),Lb=function(){function t(t){this[mb]=t.videoTagProvider,this[Eb]=fb.IDLE,this[gb]=new Cu.default,this[_b]=new CE}var e=t.prototype;return e.dispatchEvent=function(){var t;(t=this[gb]).dispatchEvent.apply(t,arguments)},e.addEventListener=function(){var t;(t=this[gb]).addEventListener.apply(t,arguments)},e.removeEventListener=function(){var t;(t=this[gb]).removeEventListener.apply(t,arguments)},e.yi=function(){return this[yb]},e.Li=function(){return this[mb].Lc},e.nl=function(){return this[Eb]=fb.PLAYING,this[yb]=this.Li(),this},e.play=function(){if(this[yb]){var t=Math.random();this[vb]=t;var e=this[yb].play();e&&e.catch(function(t){if(this[Eb]!==fb.IDLE)if(this.isMuted()){("function"==typeof this[yb].getAttribute?this[yb].getAttribute("playsinline"):void 0)||this[Tb]?t===this[vb]&&pn.call(this,{data:{code:5}}):(this[Tb]=!0,on.call(this,"playsinline",""),this.play())}else this[Eb]=fb.LOADING,this.mute(!0),this.dispatchEvent("VideoVolumeChangedEvent",{muted:!0,volume:0}),this.play()}.bind(this,t))}},e.setVolume=function(t){try{this[Ab]=t,this[yb]&&(this[yb].volume=t,mn.call(this))}catch(t){}this.mute(0===t)},e.getVolume=function(){return this[Ab]},e.isMuted=function(){return this[yb]&&this[yb].muted||0===this.getVolume()},e.mute=function(){this[yb]&&(this[yb].muted=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],mn.call(this))},e.getDuration=function(){return Math.min(Math.max(this[yb]&&this[yb].duration||0,0),1e8)},e.kc=function(){return this.getDuration()-this.getCurrentTime()},e.getCurrentTime=function(){return Math.max(Math.min(this[yb]&&this[yb].currentTime||0,this.getDuration()),0)},e.Iq=function(){return this[yb]&&this[yb].buffered},e.Sq=function(){return this.getCurrentTime()/this.getDuration()||0},e.pause=function(){this[yb]&&this[yb].pause()},e.rj=function(){this.isPlaying()&&this.pause(),this[Eb]=fb.IDLE,this[yb]&&(da.a.empty(this[yb]),on.call(this,"src",""),"function"==typeof this[yb].removeAttribute&&this[yb].removeAttribute("src")),this[_b].next()},e.stop=function(){this[yb]&&(this[bb].removeEventListener("progress",sn),this[yb].pause(),this[yb].load())},e.eu=function(t){return this[_b].add(yn.bind(this,t,this[mb].Lc))},e.Yt=function(t){return this[_b].add(yn.bind(this,t,this[mb].mr()))},e.isPlaying=function(){return this[Eb]===fb.PLAYING},e.Pi=function(){return this[yb]&&this[yb].offsetWidth||0},e.Ai=function(){return this[yb]&&this[yb].offsetHeight||0},e.oi=function(){return this[Rb]?this[Rb]:this[yb]&&this[yb].currentSrc},e.aq=function(){this[_b].empty()},t}();Lb.N=["videoTagProvider"];var Pb=Symbol(),Ob=Symbol(),Db=Symbol(),Mb=Symbol(),wb=Symbol(),Nb=Symbol(),kb=Symbol(),Bb=Symbol(),xb=Symbol(),Ub=function(){function t(t){this[Ob]=t.adContainerProvider.Ob(),this[Db]=t.config.Qm()?"tbv":"",this[Bb]=0}var e=t.prototype;return e.hd=function(t){this[Pb]=t},e.Qt=function(t){(this[Mb]=t)&&t.id&&(this[xb]=t.id)},e.cb=function(){return this[Mb]},e.xi=function(){return this[xb]},e.Rt=function(){this[xb]=0<arguments.length&&void 0!==arguments[0]?arguments[0]:""},e.Jx=function(t){this[wb]=t},e.jm=function(){return this[wb]},e.ba=function(){return this[Pb].ba()},e.getVolume=function(){return this[Pb].getVolume()||0},e.isMuted=function(){return this[Pb].isMuted()},e.Vr=function(){return!this[Mb]},e.Zc=function(){return{height:this[Ob].offsetHeight,width:this[Ob].offsetWidth}},e.Ki=function(){var t=this.Zc();return{currentPercent:(+this.lg()/this.getVideoDuration()||0).toFixed(2),currentTime:this.lg(),h:t.height,totalVideoCount:this[Bb],videoLength:this.getVideoDuration(),w:t.width}},e.Ci=function(){return this[Db]},e.lg=function(){return this[Nb]||0},e.getVideoDuration=function(){return this[kb]||0},e.Qe=function(t){this[kb]=t},e.Oq=function(){return this[Nb]},e.Rs=function(){this[Bb]++},e.Dn=function(t){this[Nb]=t},t}();Ub.N=["adContainerProvider","config"];var Vb=Symbol(),jb=Symbol(),Fb=Symbol(),Hb=Symbol(),Yb=Symbol(),Gb=Symbol(),Kb=Symbol(),qb=Symbol(),Wb=Symbol(),zb=Symbol(),Xb=Symbol(),Qb=Symbol(),Jb=Symbol(),Zb=Symbol(),$b=function(){function t(t){this[Wb]=t.eventBus,this[zb]=t.adContainerProvider.Ob(),this[Xb]=t.config,$o.a.bind(this[Wb],Ga.LOADED,En.bind(this))}var e=t.prototype;return e.pq=function(){this[qb]&&this[qb].Z(),bn.call(this,this[Vb]||this[Fb]||"UAX_SKIP")},e.Jj=function(t,e){if("2"===this[Qb]){for(var i=0;i<this[jb].length;i++)if(!this[jb][i].type||this[jb][i].type===t.type){this[jb].splice(i,i+1);break}this[Kb]=t.type,vn.call(this,t,e),bn.call(this,this[Vb]||this[Fb],!this[Vb])}},e.Et=function(){var t=this;"2"===this[Qb]?md()(this[jb]).forEach(function(e){t.Jj(e,!0)}):this[Vb]&&this.pq()},e.Du=function(t,e){this[Zb][e]=t},t}();$b.N=["eventBus","adContainerProvider","config"];var tS=vr.a.K("BasicTracker"),eS=Symbol(),iS=Symbol(),nS=function(t){function e(e){tS.debug("init");var i=t.call(this,e)||this;return i.Wl=[],i[eS]=e.injector,i[iS]=e.hostWindowParamsObtainer,i}Rr()(e,t);var i=e.prototype;return i.Bu=function(t){var e=Sn.call(this,"ResourceLoaded"),i=this.J.Ji()||{};e.c1="ResourceLoaded",e.c2=t,e.pv=i.jsVersion,e.pt=this.J.Yc(),this.ka("action.gif",e)},i.click=function(t,e){tS.debug("click");var i={};void 0!==t&&(i.category=t),void 0!==e&&(i.clickName=e),this.ka("click.gif",i)},i.display=function(t){tS.debug("display"),this[eS].Je("adBlockerSniffer")?this[eS].M("adBlockerSniffer").check().then(An.bind(this,t)):An.call(this,t)},i.action=function(t,e,i,n,r,o,s){tS.debug("action",t),(t=Sn.call(this,t)).ct=i,e&&(t.at=e),n&&(t.adId=n.Fv,t.rid=n.rid,t.txid=n.$x),r&&(t.externalId=r),o&&(t.c1=o.c1||o.Cv,t.c2=o.c2||o.Av,t.c3=o.c3||o.zv),s&&(t.PollId=s.tx,t.AnswerId=s.Mv),this.ka("action.gif",t)},i.dw=function(t,e){tS.debug("ad-fallback (".concat(t,", ").concat(e,")")),this.ka("ad-fallback.gif",{Dv:t,Ov:e.toLowerCase()})},i.Ux=function(t){this.Wl.push(t)},i.Ex=function(){this.action("LoadExtra",null,null,null,null,{c1:this.Wl.join(",")})},i.Fx=function(t){this.action("videoSkipped",null,null,null,null,{c1:t})},e}(OE);nS.N="config debugInfo urls environment smartViewability moatViewability errorTracker injector hostWindowParamsObtainer".split(" ");var rS,oS,sS=function(t){function e(e){var i=t.call(this,e)||this;return i.ca=e.environment,i}Rr()(e,t);var i=e.prototype;return i.ld=function(t,e,i,n,r,o){var s=this,a=Object(_r.w)(i)||"",u={dt:a.substring(0,3e3),ec:n||"",edt:i&&i.edt?i.edt:null,et:t,itg:this.ca.Ci(),sact:this.J.Jd(),st:e};t={code:n,Kb:i=Array.isArray(i)&&i[0].match(/([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]/g)?Object(_r.w)(i.slice(1)):a,Vx:e,type:t},Object(_r.w)(t)!==Object(_r.w)(oS)?(this.ka("error.gif",u),rS=void 0):(Object(_r.q)(rS)||(rS=function(t,e,i){var n;return function(){var r=this,o=arguments,s=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||t.apply(r,o)},e),s&&t.apply(r,o)}}(function(){s.ka("error.gif",u)},r||2e3,o||!1)),rS()),oS=Object(_r.g)(t,oS)},i.Zx=function(t,e,i){t={params:t},Object(_r.g)(e,t),this.ld("no_params",void 0,t,void 0,void 0,i)},e}(LE);sS.N=["environment","config","debugInfo","urls"];var aS=function(t){function e(e){var i=t.call(this,e)||this;return i.V=e.injector,i}Rr()(e,t);var i=e.prototype;return i.Pu=function(t){var e=this.ca.Ki()||{};e=Math.min(3*e.videoLength,e.currentPlayTime||e.currentTime||0),this.ra({t:0<e?Math.floor(e):0},{},t)},i.Cp=function(t){if(this.V.Je("bufferedCalculator")){var e=this.V.M("bufferedCalculator"),i=this.V.M("bitrateTracker");e=e.ow(void 0),i=i.mw(void 0),this.ra({},{bft:e,bit:i},t)}},i.Ou=function(t,e){e=e||this.ca.cb()||{};var i={cvt:Math.floor(void 0!==e.currentTime?e.currentTime:this.ca.lg()),fs:Rt()?+Lt():0,seq:e.Va,vid:e.id||"",vpt:e.fy},n={vcdn:Or.a.Id(e&&e.videoUrls&&e.videoUrls.length&&e.videoUrls[0])};e.raw&&(e.raw.mpid&&(i.mpid=e.raw.mpid),e.raw.vcid&&(i.vcid=e.raw.vcid)),this.ra(i,n,t)},i.Fn=function(t){var e=this.ca.Zc()||{};this.ra({h:e.height,w:e.width},{},t)},i.Gn=function(t){this.ra({},{csid:null},t)},e}(OE);aS.N="config debugInfo urls environment smartViewability moatViewability errorTracker injector hostWindowParamsObtainer".split(" ");var uS=function(t){function e(e){var i=t.call(this,e)||this;return i.ca=e.environment,i.qo=e.actionTracker,i.Lh=[],i}Rr()(e,t);var i=e.prototype;return i.gj=function(){this.Lh=[]},i.Au=function(t){var e={};this.Fn(e),this.Gn(e),Tn.call(this,e,t),In.call(this,"video-play.gif",t,e)},i.Gj=function(t,e){t={q:t.nj},Tn.call(this,t,e),this.ka("video-quartile.gif",t)},i.zu=function(t,e){t={d:t.nj},Tn.call(this,t,e),this.ka("video-decile.gif",t)},i.wu=function(t){var e={};Tn.call(this,e,t),In.call(this,"video-3sec.gif",t,e)},i.Pn=function(t){var e={pct:this.ca.Ki().currentPercent||0};this.Pu(e),Tn.call(this,e,t),In.call(this,"video-time.gif",t,e)},i.yu=function(){var t={},e=this.ca.bx()?this.ca.lg():null,i=this.ca.Oq();this.Fn(t),this.Gn(t),Tn.call(this,t,void 0),this.qo.action("AutoPause",e,i)},e}(aS);uS.N="actionTracker config debugInfo environment errorTracker injector moatViewability smartViewability urls hostWindowParamsObtainer".split(" ");var lS=Symbol(),cS=function(){function t(t){this[lS]=t}var e=t.prototype;return e.Qe=function(t){this[lS]=t},e.Ar=function(t){return Math.floor(t/(this[lS]/4))},e.Tq=function(t){return Math.floor(t/(this[lS]/10))},t}(),dS=function(){function t(t){this.dc=t.videoTracker,this.th=t.environment,this.Nh=new cS,this.xd=new Sc}var e=t.prototype;return e.Ox=function(t){this.sf=t},e.Qe=function(t){this.Nh.Qe(t)},e.Ag=function(t){0<t&&(function t(e){var i=this.Nh.Tq(e);this.qd=this.qd||0,this.qd<i&&10>i&&(this.qd++,Cn.call(this),t.call(this,e))}.call(this,t),function t(e){var i=this.Nh.Ar(e);this.rd=this.rd||0,this.rd<i&&4>i&&(this.rd++,Rn.call(this),t.call(this,e))}.call(this,t))},e.Qs=function(){this.Cf=!0,this.qd=this.rd=0,this.Bf=this.th.cb(),this.dc.Au(this.Bf),this.xd.Fg(function(){this.xd.ei(),this.dc.wu(this.Bf)}.bind(this),3e3)},e.Ps=function(){this.Cf&&(this.rd=4,this.qd=10,Cn.call(this),Rn.call(this),this.xd.pause(),this.dc.Pn(this.th.cb()),this.Cf=!1)},e.kx=function(){this.dc.yu()},e.gj=function(){this.dc.gj()},e.ox=function(){this.xd.resume()},e.nx=function(){this.xd.pause()},e.lx=function(){this.Cf&&(this.xd.pause(),this.dc.Pn(this.th.cb()),this.Cf=!1)},t}();dS.N=["videoTracker","environment"];var hS=Symbol(),pS=function(){function t(t){this[hS]=t.hostWindowProvider}return t.prototype.lc=function(){return function(){var t=this[hS].Aa();try{for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.reduce(function(t,e){return t[e]},t)}catch(t){return null}}.call(this,"rapidConfig","spaceid")||(_r.c.ug()?793604935:793604934)},t}();pS.N=["hostWindowProvider"];var fS=function(){function t(t){this.window=t}var e=t.prototype;return e.Aa=function(){return this.window},e.tw=function(){return this.window.document},t}(),_S=function(){function t(t){this.Gb=t.viewabilitySubject}var e=t.prototype;return e.zb=function(t){this.Gb=t},e.wb=function(){return Ed.wb()},e.na=function(){},e.Ce=function(){var t=this.na();return this.Gb&&-1!==t?!this.wb()||50>t?0:1:-1},t}();_S.N=["viewabilitySubject"];var mS=Symbol(),yS=Symbol(),vS=Symbol(),gS=function(t){function e(e){if((e=t.call(this,e)||this)[mS]=-1,void 0===window.IntersectionObserver)return tu()(e);var i=tu()(e);i[yS]=yr.a.setTimeout(Ln.bind(i),100);for(var n=window.IntersectionObserver,r=function(t){t=t[t.length-1].intersectionRatio,isNaN(t)||(this[yS]&&Ln.call(this),this[mS]=Math.round(100*t))}.bind(i),o=[],s=0;100>s;s+=5)o.push(s/100);return o.push(1),i[vS]=new n(r,{root:null,threshold:o}),i[vS].observe(i.Gb),e}Rr()(e,t);var i=e.prototype;return i.zb=function(t){this[mS]=-1,this[vS]&&(this[vS].unobserve(this.Gb),this.Gb=t,this[vS].observe(this.Gb))},i.wb=function(){return 0<this.na()},i.na=function(){return Ed.wb()?this[mS]:0},e}(_S);gS.N=["viewabilitySubject"];var ES,bS=Symbol(),SS=Symbol(),AS=Symbol(),TS=Symbol(),IS=function(t){function e(e){var i=t.call(this,e)||this;return i[AS]=e.dom,e=e.config,i[TS]=!!e.Ka("disable_3p")||!!e.Ka("disable_moat")||!!e.yr(),i[TS]||(ES||(ES=function(){var t=pr.a.Kd(window),e="moatApiInit".concat(+new Date),i=new Is,n=t.location.protocol;return n="".concat(0===n.indexOf("http")?n:"https:","//z.moatads.com/").concat("aolvidibleapi29384728347","/moatapi.js#moatApiCallback=").concat(e),t[e]=function(n){i.resolve(n),t[e]=void 0},this[AS].Rd(n),i.sa()}.call(tu()(i))),i.zb(i.Gb)),i}Rr()(e,t);var i=e.prototype;return i.zb=function(t){var e=this;if(!this[TS]){if(this[bS]){if(this[SS]===t)return;this[bS].destroy(),this[bS]=null}this[SS]=t,ES.then(function(i){i.startTracking(t,{ready:Pn.bind(e,t)})})}},i.na=function(){if(!this[bS]||!this[SS]||3>this[SS].offsetHeight)return-1;var t=this[bS].getPercentViewable();return isNaN(t)||null===t?-1:Math.min(Math.round(t),100)},i.Ce=function(){var t=this.na();return 0>t||100<t?-1:50>t?0:1},e}(_S);IS.N=["viewabilitySubject","dom","config"];var CS=function(){function t(t){this.Nc=t.smartViewability,this.J=t.config,this.ca=t.environment,this.Fo=t.hostWindowParamsObtainer}var e=t.prototype;return e.sw=function(){var t=this.Oi("Preroll");return Object.keys(t).forEach(function(e){t["ad.".concat(e)]=t[e],delete t[e]}),t["ad.m.ssai"]=1,t["ad.ps"]="vast_only",t.ad="vrm",t.v=2,t.bcid=this.J.bg(),t.pid=this.J.kg(),t.bid=this.J.ti(),t},e.Oi=function(t){var e=this.ca.cb(),i={};if(e&&e.id){i.vid=e.id,i.pt="html5",i.at=t?t.toLowerCase():"";var n=this.J.si();Object.keys(n).forEach(function(t){0===t.indexOf("m.vrm")&&(i[t]=n[t])})}return i["p.vw.sound"]=Math.round(100*this.ca.getVolume()),i.autoplayInit=this.J.He()?1:0,i.space_id||(i.space_id=i.spaceid||this.Fo.lc()),Object(_r.g)(On.call(this),i)},e.Bq=function(t){var e=this.ca.cb(),i={};return e&&(i.vid=e.id,(e=e.metadata||{}).duration&&(i.t=e.duration/1e3)),i.at=t?t.toLowerCase():"",Object(_r.g)(On.call(this),i)},t}();CS.N=["smartViewability","config","environment","hostWindowParamsObtainer"];var RS={Vn:"aboveVisibleArea",$n:"belowVisibleArea",Ac:"hidden",Cc:"inVisibleArea",ho:"leftToVisibleArea",jo:"rightToVisibleArea",Xa:"NA"},LS={Wn:1,ah:0},PS={co:1,ck:0,Xa:-1},OS={Xj:3,ak:2,Ec:1},DS={bh:1,ff:0,Xa:-1},MS={cv:LS,ev:PS,gv:OS,jv:RS,wv:DS,kk:{ao:function(){return this.bo++},bo:1,URL:"//redir.adap.tv/redir/client/VPixel.swf"},mn:[],Te:{},Yw:{},Yq:function(t){for(var e=t,i=0,n=0,r=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)window.getComputedStyle&&(r=window.getComputedStyle(e,null)),i+=e.offsetLeft-e.scrollLeft+(r?parseInt(r.getPropertyValue("border-left-width"),10):0),n+=e.offsetTop-e.scrollTop+(r?parseInt(r.getPropertyValue("border-top-width"),10):0),e=e.offsetParent;return t.xv=i,t.yv=n,{x:i,y:n}},Gd:function(t,e){var i=document.defaultView||document.parentWindow;try{i=t.ownerDocument.defaultView||t.ownerDocument.parentWindow}catch(t){}return t.currentStyle?t.currentStyle[e]:i&&i.getComputedStyle&&i.getComputedStyle(t,"")?i.getComputedStyle(t,"")[e]:t.style?t.style[e]:""},jc:function(t){var e={height:0,R:0,O:0,width:0};if(t){e.width=t.offsetWidth,e.height=t.offsetHeight;var i=!1;try{var n=t.getBoundingClientRect();e.R=Math.round(n.left),e.O=Math.round(n.top),i=!0}catch(t){}if(!i)try{var r=this.Yq(t);e.R=r.x,e.O=r.y}catch(t){}}return e},tc:function(t,e){var i=0,n=t.length+t.offset,r=e.length+e.offset;return n<e.offset||t.offset>r?{length:0,offset:-1/0}:(t.offset>=e.offset&&n<=r?i=t.length:t.offset<=e.offset&&n>=r?i=e.length:t.offset<=e.offset?i=Math.abs(n-e.offset):t.offset>e.offset&&(i=Math.abs(r-t.offset)),{length:i,offset:Math.max(t.offset,e.offset)})},Vi:function(t,e){var i=this.di(t);if((e=e||this.Nd(t))===OS.Ec)return!0;if(e===OS.ak)return this.di(t);try{var n=t.ownerDocument.defaultView||t.ownerDocument.parentWindow}catch(t){}try{var r=this.nm(n)}catch(t){return!0}for(t=0;t<r.length&&!i;t++)i=r[t],i=this.di(i);return i},di:function(t){function e(t){return t&&"string"==typeof t.id&&-1<t.id.indexOf("player_googima")}function i(t){var i;if(e(t))return!0;var n=this.Ii(t);for(i=0;i<n.length;++i)if((t=n[i])&&e(t.node))return!0;return!1}var n=!1,r=t;for(t=!this.Gd(t,"visibility")&&!i.call(this,t);r&&!n&&(n="hidden"===this.Gd(r,"visibility")||"none"===this.Gd(r,"display")||this.js(r),i.call(this,r)&&(n=!1),n=t||n,r!==r.ownerDocument.body);)r=r.parentNode;return n},Ii:function(t){var e=[],i=t.parentNode;try{for(;i&&i!==i.ownerDocument.body;)1===i.nodeType&&(e.push(this.Gg(i)),i=i.parentNode)}catch(t){}for(0===e.length?i=t:(i=e[0],t=e[0]);i;)null!=(i=i.nextSibling)&&1===i.nodeType&&e.push(this.Gg(i));for(;t;)null!=(t=t.previousSibling)&&1===t.nodeType&&e.push(this.Gg(t));return e},vu:function(t,e,i){var n,r=null,o=this.tc({length:t.width,offset:t.R},{length:e.width,offset:e.R}),s=this.tc({length:t.height,offset:t.O},{length:e.height,offset:e.O});if(0<o&&0<s){var a=[{x:o.offset,y:s.offset},{x:o.offset+o.length,y:s.offset},{x:o.offset,y:s.offset+s.length},{x:o.offset+o.length,y:s.offset+s.length},{x:o.offset+Math.floor(o.length/2),y:s.offset+Math.floor(s.length/2)}];for(n=0;5>n;n++){var u={x:Math.random()*o.length+o.offset,y:Math.random()*s.length+s.offset};a.push(u)}for(n=0;n<a.length;n++)if((u=this.Pl(a[n].x,a[n].y,i))===t.node||u===e.node){r=u;break}}return r},Pl:function(t,e,i){return(i=i||window).document.elementFromPoint(t,e)},Yr:function(t,e,i,n){var r=!0,o=this.jc(e),s=this.tc({length:t.width,offset:t.R},{length:o.width,offset:o.R+i.R}),a=this.tc({length:t.height,offset:t.O},{length:o.height,offset:o.O+i.O}),u=s.length*a.length/(o.width*o.height);if(0===u)return{ji:!1};var l=this.Pl(Math.floor(s.length/2)+s.offset,Math.floor(a.length/2)+a.offset,n);return null===l?r=!0:l===e||"ADAPTV_HTML5_IFRAME"===l.id||"IFRAME"===l.nodeName?r=!1:l!==t.node&&(t.R+t.width)*(t.O+t.height)==(o.R+i.R+o.width)*(o.O+i.O+o.height)&&(r=!1),this.vu({height:t.height,R:t.R,node:t.node,O:t.O,width:t.width},{height:o.height,R:o.R+i.R,node:e,O:o.O+i.O,width:o.width},n)===e&&(r=!1),{ji:r,height:a.length,R:s.offset,kn:u,O:a.offset,width:s.length}},sl:function(t,e,i,n){var r;for(r=0;r<t.length;r++)if(1===t[r].node.nodeType&&this.ul(t[r],e,i,[],t,n))return!0;return!1},ul:function(t,e,i,n,r,o){var s=!1,a=t.node;if((t=this.Yr(t,e,i,o)).ji&&.5<=t.kn)return!0;if(t.ji&&.5>t.kn)t.node=a,n.push(t);else if(a&&a.children&&1<=a.children.length)for(t=a.children,a=0;a<t.length;a++)if(1===t[a].nodeType){var u=this.Gg(t[a]);s=s||this.ul(u,e,i,n,r,o)}return s||this.Is(n,e,i)},Gg:function(t){var e=this.jc(t);return e.node=t,e},Is:function(t,e,i){var n,r=0,o=0;if(this.jc(e),this.Hj(t),2>t.length)return!1;e=this.jc(e);var s=this.Hj(t);for(n=0;n<t.length;n++)r+=t[n].width*t[n].height;for(n=0;n<s.length;n++){var a=this.tc({length:s[n].Sf.width,offset:s[n].Sf.R},{length:s[n].Tf.width,offset:s[n].Tf.R});t=this.tc({length:s[n].Sf.height,offset:s[n].Sf.O},{length:s[n].Tf.height,offset:s[n].Tf.O}),a=this.tc({length:a.length,offset:a.offset},{length:e.width,offset:e.R+i.R}),t=this.tc({length:t.length,offset:t.offset},{length:e.height,offset:e.O+i.O}),o+=a.length*t.length}return.5<=(r-o)/(e.width*e.height)},Hj:function(t,e){var i;for(e=e||[],i=1;2<=t.length&&i<t.length;i++)t[0].node!==t[i].node&&e.push({Sf:t[0],Tf:t[i]});return 2>=t.length?e:this.Hj(t.slice(1),e)},cx:function(t){var e,i={R:0,O:0};try{var n=this.nm()}catch(t){n=[]}var r=this.Ii(t),o=window,s=this.sl(r,t,i,o);for(e=0;e<n.length&&!s;e++){o=o.parent;var a=this.jc(n[e]);for(i.R+=a.R,i.O+=a.O,a=0;a<r.length;a++)r[a].R+=i.R,r[a].O+=i.O;a=this.Ii(n[e]),r=r.concat(a),s=s||this.sl(r,t,i,o)}return s},js:function(t){var e=t.parentNode;return!(!e||"BODY"===t.tagName||"visible"===this.Gd(e,"overflow")&&"visible"===this.Gd(e,"overflow-x")&&"visible"===this.Gd(e,"overflow-y"))&&(0>t.offsetLeft||0>t.offsetTop||!(1<e.offsetWidth&&1<e.offsetHeight))},nm:function(t){var e=[];for(t=t||window;t!==window.top;)e.push(t.frameElement),t=t.parent;return e},Nd:function(t){t=t||document.body;try{return window.top.location.href?t.ownerDocument.defaultView.frameElement?OS.Xj:OS.ak:OS.Ec}catch(t){return OS.Ec}},Bm:function(t){var e=t.document,i=e.compatMode&&"BackCompat"!==e.compatMode?e.documentElement:e.body,n={width:0,height:0,R:0,O:0};return void 0!==t.innerWidth?(n.width=t.innerWidth,n.height=t.innerHeight):t.document.documentElement&&(t.document.documentElement.clientWidth||t.document.documentElement.clientHeight)?(n.width=t.document.documentElement.clientWidth,n.height=t.document.documentElement.clientHeight):document.body.offsetWidth&&document.body.offsetHeight&&(n.width=t.document.body.offsetWidth,n.height=t.document.body.offsetHeight),n.R=e.all?i.scrollLeft:t.pageXOffset,n.O=e.all?i.scrollTop:t.pageYOffset,n},cg:function(t,e){return 0<e.width&&0<e.height&&0<t.width&&0<t.height?t.O+t.height<=e.O?RS.Vn:t.O>=e.height+e.O?RS.$n:t.R+t.width<=e.R?RS.ho:t.R>=e.width+e.R?RS.jo:RS.Cc:RS.Ac},Ni:function(t,e){var i={R:0,O:0,width:0,height:0},n=e.R-t.R;return i.R=Math.max(n,0),i.width=Math.max(0,Math.min(Math.min(e.width,t.width),Math.min(e.width+n,t.width-n))),n=e.O-t.O,i.O=Math.max(n,0),i.height=Math.max(0,Math.min(Math.min(e.height,t.height),Math.min(e.height+n,t.height-n))),i},Zq:function(t,e){return t=Math.min(e.width-t.R,t.width+t.R)/t.width*100,t=Math.round(100*Math.min(Math.max(0,t),100))/100,Math.round(t)},Nr:function(t,e){return t=Math.min(e.height-t.O,t.height+t.O)/t.height*100,t=Math.round(100*Math.min(Math.max(0,t),100))/100,Math.round(t)},vm:function(t,e,i){var n=MS.Nd(t),r=0,o=0,s=RS.Xa;return n!==OS.Ec&&(this.Vi(t,n)?s=RS.Ac:(t={R:0,O:0,width:i.width,height:i.height},(s=this.cg(e,t))===RS.Cc&&(r=this.Zq(e,t),o=this.Nr(e,t)),r&&o||(r=0))),{fb:r,position:s,Wa:r}},sr:function(t,e,i,n){var r={fb:0,position:RS.Xa,Wa:0},o=MS.Nd(t);if(o===OS.Ec)return r;if(this.Vi(t,o)&&(r.position=RS.Ac),r.position!==RS.Ac&&(t=i[i.length-1],o={height:n.height,R:0,O:0,width:n.width},n=this.cg(t,o),r.position=n,n===RS.Cc)){for(t=this.Ni(t,o),o=i.length-1;0<o&&(n=this.cg(i[o-1],t))===RS.Cc;)t=this.Ni(i[o-1],t),o--;n===RS.Cc&&this.cg(e,t)===RS.Cc?(i=(t=this.Ni(e,t)).width/e.width*100,i=Math.round(100*i)/100,i=Math.round(i),r.fb=i,i=t.height/e.height*100,i=Math.round(100*i)/100,i=Math.round(i),r.Wa=i):r.position=RS.Ac}return r},dm:function(t){var e=window,i={Qv:"NA",Y:{fb:0,height:0,R:0,position:RS.Xa,O:0,Wa:0,width:0},hostname:window.location.hostname,La:{Hl:!1,height:0,R:0,Qd:0,Ws:"",O:0,uu:"",width:0},Ge:!1,Yb:{height:0,R:0,O:0,width:0}},n=this.jc(t);if(i.Y.R=n.R,i.Y.O=n.O,i.Y.width=n.width,i.Y.height=n.height,(n=MS.Nd(t))===OS.Ec)return i.Ge=!0,i.La.Hl=!0,i.La.Qd=-1,i.Y.fb=100,i.Y.Wa=100,i;n===OS.Xj&&(i.Ge=!0,i.La.uu=window.top.location.href),this.Vi(t,n)&&(i.Y.position=RS.Ac);try{e=t.ownerDocument.defaultView||e}catch(t){}if(i.Yb=this.Bm(e),(n=this.vm(t,i.Y,i.Yb)).position!==RS.Cc)return i.Y.position=n.position,i.Y.fb=n.fb,i.Y.Wa=n.Wa,i.Y.width=i.Y.width<i.Yb.width?i.Y.width:i.Yb.width,i.Y.height=i.Y.height<i.Yb.height?i.Y.height:i.Yb.height,i;try{if(i.Ge){window.parent&&window.parent.location&&(i.La.Ws=window.parent.location.href),i.Yb=this.Bm(window.top);for(var r=[];e!==window.top;){var o=this.jc(e.frameElement);0===i.La.Qd&&(i.La.width=o.width,i.La.height=o.height),i.La.R=o.R,i.La.O=o.O,r[i.La.Qd]=o,i.La.Qd+=1,e=e.parent}n=this.sr(t,i.Y,r,i.Yb),i.Y.position=n.position,i.Y.fb=n.fb,i.Y.Wa=n.Wa}}catch(t){i.La.Qd=-1}return i.Ge||(n=this.vm(t,i.Y,i.Yb),i.Y.position=n.position,i.Y.fb=n.fb,i.Y.Wa=n.Wa),i},tr:function(t,e){var i=null;if(this.Te[t]&&this.Te[t][t]&&this.Te[t].parentNode)return this.Te[t];if(e&&document[e]&&document[e][t])i=document[e];else if(e&&window[e]&&window[e][t])i=window[e];else{var n,r=document.getElementsByTagName("object"),o=document.getElementsByTagName("embed"),s=[];for(e=0,n=r.length;e<n;s.push(r[e++]));for(r=[],e=0,n=o.length;e<n;r.push(o[e++]));for(o=s.concat(r),e=0;e<o.length;e++)try{if(o[e][t]()){i=o[e];break}}catch(t){}}return i&&(this.Te[t]=i),i},nr:function(t){if(!t)return{height:0,width:0};for(var e=t.offsetWidth,i=t.offsetHeight;t&&"BODY"!==t.tagName;)e=Math.min(t.offsetWidth,e),i=Math.min(t.offsetHeight,i),t=t.parentNode;return{height:i,width:e}},bs:function(t){return null!==t&&"object"===Mr()(t)&&1===t.nodeType},oq:function(){if(void 0!==navigator.plugins&&"object"===Mr()(navigator.plugins["Shockwave Flash"])&&void 0!==navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return!0;if(void 0!==window.ActiveXObject)try{return new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(t){}return!1},om:function(t,e,i,n){var r,o=MS.mn,s=!this.oq(),a="7221 7658 7257 7386 7480 7716 7597 7865".split(" "),u=["mindjoltinc","cinesport"],l=!1;for(t=this.bs(t)?t:this.tr(e,t),r=0;r<a.length;r++)if(a[r]===n){l=!0;break}for(r=0;r<u.length;r++)if(u[r]===n){l=!0;break}if((l||s)&&((n=MS.Am(t)).Ga=n.Wf,n.Vu=n.Wf,i&&t[i](n),s))return n;for(r=0;r<o.length;++r)if(o[r].id===e){var c=o[r];break}return c||(c=new MS.eh(e,t),o.push(c)),c.om(i)},xx:function(t){var e,i=MS.mn;for(e=0;e<i.length;e++)if(i[e].id===t){i[e].dispose(),i.splice(e,1);break}},Am:function(t){var e={active:LS.ah,Xp:"",Wf:DS.Xa,hasFocus:PS.Xa};if(t){var i=MS.dm(t);if(e.rx=i.Y.width,e.qx=i.Y.height,e.Xp=t.id,i.Y.position!==RS.Xa){t=i.Y.width*i.Y.fb/100;var n=i.Y.height*i.Y.Wa/100;e.Wf=0===t||0===n?DS.ff:.5<=t*n/(i.Y.width*i.Y.height)?DS.bh:DS.ff}else i.Ge&&(e.eq="inIframe"),i.La.Hl&&(e.eq="iframeCrossDomain");if(i=!1,!document.hasFocus||!document.hasFocus())if(t=["webkit","moz","ms","o"],document.visibilityState)i="visible"!==document.visibilityState;else for(n=0;n<t.length;n++)if(document["".concat(t[n],"VisibilityState")]){i="visible"!==document["".concat(t[n],"VisibilityState")];break}e.active=i?LS.ah:LS.Wn,e.hasFocus=MS.ls()}return e},ls:function(){return!0===document.hidden?PS.ck:MS.Nd()===OS.Ec?PS.Xa:window.top.document.hasFocus?window.top.document.hasFocus()?PS.co:PS.ck:PS.Xa},$g:function(t){var e=MS.jc(this.oc),i=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,n=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,r=MS.nr(t);this.Vd=1,this.Hs=3,this.oc=t,this.top=e.O+n,this.left=e.R+i,this.width=e.width,this.height=e.height,this.minWidth=r.width,this.minHeight=r.height,this.Tn=this.minWidth/(this.Vd+1),this.Un=this.minHeight/(this.Vd+1)}};MS.$g.prototype={constructor:MS.$g,Pq:function(){return window.Vh&&window.Vh.ds?[]:[{x:-1e4,y:-1e4}]},Gr:function(){var t,e=[],i=this.left;for(t=0;t<this.Vd;t++)i+=this.Tn,e.push({x:i,y:this.top});return e},Dr:function(){var t,e=[],i=this.top;for(t=0;t<this.Vd;t++)i+=this.Un,e.push({x:this.left+this.minWidth-1,y:i});return e},Gq:function(){var t,e=[],i=this.left;for(t=0;t<this.Vd;t++)i+=this.Tn,e.push({x:i,y:this.top+this.minHeight-1});return e},ir:function(){var t,e=[],i=this.top;for(t=0;t<this.Vd;t++)i+=this.Un,e.push({x:this.left,y:i});return e},Cq:function(){return[this.Pq(),this.Gr(),this.Dr(),this.Gq(),this.ir()]},gm:function(){var t=this.Cq();return[].concat.apply([],t)}},MS.eh=function(t,e){this.id=t,this.Fa=new MS.$g(e),this.Aj=!1,this.Ga=-1,this.mb=[],this.timeout=void 0,this.Nn=1800,this.Qc=""},MS.eh.prototype={constructor:MS.eh,om:function(t){var e=this;if(!this.Aj){for(this.Qc=t,t=0;t<this.Fa.gm().length;t++){var i=new MS.fh;i.Fm(this,this.pu),this.mb.push(i)}return setTimeout(function(){e.ot()},1),this.timeout=setTimeout(function(){clearTimeout(e.timeout),!e.Yh()&&e.pl()&&e.Fa&&e.Fa.oc[e.Qc](e.Di())},this.Nn),this.Aj=!0,null}t&&this.Fa.oc[t](this.Di())},ot:function(){var t;if(this.Fa){var e=this.Fa.gm();for(t=0;t<e.length;t++){var i=e[t];this.mb[t].nt(i.x,i.y)}}},pu:function(){if(this.Yh()&&(clearTimeout(this.timeout),this.pl())){var t=this.Di();this.Fa.oc[this.Qc](t)}},Di:function(){var t,e=MS.Am(this.Fa.oc),i=0;if(this.Yh()){for(t=0;t<this.mb.length;t++){i+=this.mb[t].Ga}this.ye=i>=this.Fa.Hs?DS.bh:DS.ff}else this.ye=DS.Xa;return e.ye=this.ye,e.Ga=this.ye===DS.Xa?e.Wf:this.ye,e.active===LS.ah&&e.Ga===DS.bh&&(e.Ga=DS.ff),e.Vu=e.Ga,e},Yh:function(){var t,e=0;if(this.Fa&&window.Vh&&!window.Vh.ds&&0!==this.mb[0].Ga)return!1;for(t=0;t<this.mb.length;t++)-1<this.mb[t].Ga&&e++;return e===this.mb.length},pl:function(){return this.Qc&&this.Fa&&this.Fa.oc&&this.Fa.oc[this.Qc]&&"function"==typeof this.Fa.oc[this.Qc]},dispose:function(){var t,e=this.mb.length;for(t=0;t<e;t++)this.mb[t].destroy();this.Fa=null,this.Aj=!1,this.Ga=-1,this.mb=[],this.timeout=0,this.Nn=1800,this.id=this.Qc=""}},MS.fh=function(){var t=this;this.Ga=-1,this.id=MS.kk.ao(),this.Zi="__adaptv__spotnotify__".concat(this.id.toString()),this.interval=0,this.lj=this.pe=this.Kg=null,window[this.Zi]=function(e,i,n){t.Ga=n,t.pe&&(t.pe.apply(t.lj),t.pe=null)}},MS.fh.prototype={constructor:MS.fh,Fm:function(t,e){var i="adaptvSpotDiv_".concat(this.id),n="adaptvVWSpot_".concat(this.id);if(!document.getElementById(i)){var r=['<object width="1px" height="1px" id="{spotId}" name="{spotId}" align="center" style="height: 1px !important; width: 1px !important;"><param name="movie" value="','" /><param name="bgcolor" value="#000000"/><param name="allowScriptAccess" value="always" /><param name="FlashVars" value="autoStart=true&callback={callback}"/><embed src="','" width="1px" height="1px" id="{spotId}" name="{spotId}" align="center" bgcolor="#000000" allowScriptAccess="always" FlashVars="autoStart=true&callback={callback}" type="application/x-shockwave-flash"/></object>'].join(MS.kk.URL);r=(r=r.split("{spotId}").join(n)).split("{callback}").join(this.Zi),n=document.body||document.getElementsByTagName("body")[0]||document.documentElement;var o=document.createElement("div");o.id=i,o.style.height="1px",o.style.width="1px",o.style.position="absolute",o.innerHTML=r,n.appendChild(o),this.Kg=o,this.lj=t,this.pe=e}},nt:function(t,e){this.Kg.style.left="".concat(t,"px"),this.Kg.style.top="".concat(e,"px")},destroy:function(){var t=document.body||document.getElementsByTagName("body")[0]||document.documentElement,e=document.getElementById("adaptvSpotDiv_".concat(this.id));e&&t.removeChild(e),this.lj=this.pe=this.Kg=null,delete window[this.Zi]}};var wS=MS,NS=function(t){function e(){return t.apply(this,arguments)||this}return Rr()(e,t),e.prototype.na=function(t){if(!this.Gb)return-1;var e=wS.dm(this.Gb).Y,i=e.fb*e.Wa/100;return t&&e.O<t&&(i=Math.max(0,100*(e.Wa*e.height/100-t+Math.max(0,e.O))/e.height)),Math.min(Math.round(i),100)},e}(_S),kS=vr.a.K("SmartViewability"),BS=Symbol(),xS=Symbol(),US=Symbol(),VS=function(t){function e(e){kS.debug("init");var i=t.call(this,e)||this;return i[BS]=e.moatViewability,i[xS]=e.intersectionViewability,i[US]=new NS(e),i}Rr()(e,t);var i=e.prototype;return i.zb=function(e){kS.debug("setElement",e),t.prototype.zb.call(this,e),this[xS].zb(e),this[BS].zb(e),this[US].zb(e)},i.na=function(){kS.debug("getVisiblePercent, try moatViewability");var t=this[BS].na();return-1===t&&(kS.debug("intersectionViewability fallback"),-1===(t=this[xS].na())&&(kS.debug("adapVisiblePercent fallback"),t=this[US].na())),kS.debug("visible percent",t),t},e}(_S);VS.N=["viewabilitySubject","moatViewability","intersectionViewability"];var jS=function(){function t(t,e){this.Lc=t,this.Ek=e}var e=t.prototype;return e.mr=function(){return this.Ek||this.Lc},e.Gw=function(){return this.Lc},e.Zt=function(t){Mn(t),this.Ek=t},e.Cn=function(t){Mn(t),this.Lc=t},t}();Rc.a.Pr(Or.a.Ta("oathPlayerBuildEnvironment")||"prod");var FS=Symbol(),HS=Symbol(),YS=Symbol(),GS=Symbol(),KS=Symbol(),qS=Symbol(),WS=function(){function t(){this[FS]=new jm("injector")}var e=t.prototype;return e.ku=function(t){this[KS]=t.slot;var e=this[KS].ownerDocument||window.document;t.dontPredefineVideoTag||(this[HS]=t.video||this[KS].appendChild(Object(_r.i)(e)),this[HS]=Array.isArray(this[HS])?this[HS]:[this[HS]]),this[YS]=new da.a(e),this[GS]={adSettings:{adStrategy:"ADSET_BASED",aeg:[],asids:[],companions:[],domainOptimisation:!0,podSize:-1,prerollInterleave:1,timeout:{hard:7,maxLinearShow:3600}},bcid:Rc.a["default.bcid"],bid:{id:Rc.a["default.bid"]},id:Rc.a["default.pid"],isEU:!0,jsVersion:"1.0.237",sid:l(),timestamp:+new Date},e=t.companionSlots;var i="boolean"==typeof t.disableFailoverOnDlvFailure&&t.disableFailoverOnDlvFailure;this[GS].frosOnly=t.frosOnly,this[GS].playerType=t.playerType||"VRM_plgn",this[GS].trackingEnabled=!0,this[GS].bcid=t.buyerCompanyId,this[GS].geo=t.geo,this[GS].id=t.playerId,this[GS].sid=t.sid||this[GS].sid,this[GS].jsVersion=t.jsVersion||this[GS].jsVersion,this[GS].bid.id=t.playlistId||this[GS].bid.id,this[GS].vvuid=t.vvuid,this[GS].autoplay=t.autoplay,this[GS].macros=t.macros,this[GS].overrideUrls=t.overrideUrls,this[GS].currentVideo=t.currentVideo,this[GS].aggressiveMode=t.aggressiveMode,this[GS].adSettings=this[GS].adSettings||{},this[GS].adSettings.timeout=t.timeout||{},this[GS].adSettings.adStrategy=t.adStrategy||"CONTENT_BASED",this[GS].adSettings.companions=e||this[GS].adSettings.companions,this[GS].adSettings.skipSettings=t.skipSettings||{},this[GS].adSettings.asids=t.asids,this[GS].adSettings.aeg=t.aeg,this[GS].adSettings.podSize=t.podSize,this[GS].adSettings.prerollInterleave=t.prerollInterleave,this[GS].adSettings.domainOptimisation=t.domainOptimisation,this[GS].adSettings.chromeHackPreinitialisation=t.chromeHackPreinitialisation,this[GS].adSettings.isBrandedContent=t.isBrandedContent,this[GS].adSettings.clickThroughUrl=t.clickThroughUrl,this[GS].adSettings.disableFailoverOnDlvFailure=i,this[qS]=t.fakeViewability,this[GS].GDPRData=t.GDPRData,this[GS].isEU=!1!==t.isEU},e.xt=function(){var t=new rb(this[GS]),e=new cb(t,this[GS].overrideUrls),i=new jS;if(this[HS]&&1<this[HS].length){var r=this[HS][0].parentElement||this[HS][0];i.Cn(this[HS][0]),i.Zt(this[HS][1])}else r=this[KS];var o=pr.a.jg(window)||window;this[FS].wa("config",t).wa("debugInfo",gr).wa("urls",e).wa("videoTagProvider",i).wa("adContainerProvider",new Tr(this[KS])).wa("dom",this[YS]).wa("viewabilitySubject",r).wa("hostWindowProvider",new fS(o)).la("eventBus",Cu.default).la("environment",Ub).la("hostWindowParamsObtainer",pS).la("adsConfig",vc).la("primalTracker",LE).la("display",Lb).la("slotOpportunityHandler",$b).la("errorTracker",sS),this[qS]?this[FS].la("moatViewability",n(IS)).la("intersectionViewability",n(gS)).la("smartViewability",n(VS)):this[FS].la("moatViewability",IS).la("intersectionViewability",gS).la("smartViewability",VS),this[FS].la("adTracker",kE).la("parametersCombine",CS).la("externalTracker",OE).la("actionTracker",nS).la("adSystem",EE).la("videoTracker",uS).la("videoTrackerManager",dS),t=this[FS].M("adSystem"),(e=this[FS].M("environment")).hd(t),this[GS].currentVideo&&e.Qt(this[GS].currentVideo)},e.Mq=function(){return this[GS]},e.eb=function(){return this[FS]},t}(),zS=i(51),XS="external-player-item-loaded",QS="external-player-mute-changed",JS="external-player-paused",ZS="external-player-play-complete",$S="external-player-play-requested",tA="external-player-error",eA="external-player-playing",iA="external-player-item-skipped",nA="external-player-time-update",rA="external-player-volume-changed",oA="ad-plugin--breaks-available",sA="ad-plugin--break-resolve-error",aA="ad-plugin--break-resolved",uA="ad-plugin--subtitles-found",lA="ad-plugin--metrics",cA="ad-plugin--diagnostics",dA="ad-plugin-nonlinear-ad-rendered",hA="ad-plugin-nonlinear-ad-clicked",pA="ad-plugin-nonlinear-ad-dismissed",fA=i(45),_A=i(41),mA=Symbol("adBreaks"),yA=Symbol("adSystem"),vA=Symbol("overlayAdBreak"),gA=Symbol("vastLoadPromise"),EA=Symbol("eventBus"),bA=Symbol("prepairedItems"),SA=Symbol("slotOppHandler"),AA=Symbol("metricsEventHandler"),TA=Symbol(),IA=Symbol(),CA=function(){function t(t){this[yA]=t.adSystem,this[SA]=t.slotOpportunityHandler,this[AA]=t.metricsEventHandler,this[mA]=[],this[EA]=new Cu.default,this[bA]=[]}var e=t.prototype;return e.du=function(t){this[vA]&&function(t){var e=this,i=this[vA],n=i&&i.adBreakItems[0];n&&t>i.startTime&&(this.preparePlayback(n,!0).then(function(){e.play(n,!0)}),this[vA]=null)}.call(this,t)},e.bt=function(){var t=this[mA].find(function(t){return t.type===_A.c});t&&(this[vA]=t)},e.preparePlayback=function(e,i){var n=this,r=e.adBreakItemId;return-1===this[bA].indexOf(r)?this[bA].push(r):function(t){t.customInfo.slot.aeg.forEach(function(t){t.forEach(function(t){"GEMINI"===t.getAdEngineType()&&((t.kf||{}).ads||[]).forEach(function(t){return t.actionUrls={}})})})}(e),this[AA].$s(),this[IA]=e.customInfo.hasGemini||i,this[gA]||(this[gA]=function(t){var e=this;return new fr.a(function(i,n){e[yA].Tm(t.customInfo.slot.aeg,function(){(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).error?n():i(t)},t.customInfo.slot.type)})}.call(this,e)),this[IA]||(this[TA]=new fr.a(function(t){n[yA].addEventListener(Zo.$j,t)})),this[gA].then(function(){n[gA]=null,n[EA].dispatchEvent(t.Pj,e)},function(){n[IA]=null,n[gA]=null,n[TA]=null})},e.on=function(t){this[yA].Zs(t)},e.resolveAdBreak=function(t){var e=this;return new fr.a(function(i){e[yA].aj({originalTime:rt(t.startTime,!0),type:"midroll"===t.type?"Midroll":"Preroll"},function(e){e=e.Cg,t.adBreakItems=Nn(e&&e[0]),i()})})},e.play=function(t,e){var i=this;return this[SA].Jj(t.customInfo.slot),this[IA]||e?(this[gA]||fr.a.resolve()).then(function(){i[IA]=null,i[yA].Lg()}):(this[IA]=null,this[TA].then(function(){i[TA]=null,i[yA].Lg()}))},e.fetchAdBreaks=function(t){var e=this;return t&&function(t){(t=t.aeg)&&t.forEach(function(t){t.forEach(function(t){"overlay"===(t.type||t.adTypes&&t.adTypes[0]).toLowerCase()&&(t.slot=t.slot||{},(t=t.slot).width="45%",t.position=r.dh,t.left="18.5%",t.top="90%")})})}(t),new fr.a(function(i){e[yA].aj({preloadedConfig:t},function(t){e[mA]=function(){var t=[];return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){var i=Nn(e);if(0<i.length||"Midroll"===e.type){var n=e.time?Object(_r.F)(e.time):34;(n={adBreakId:l(),adBreakItems:i,mimetype:"adplugin/vrm",startOffset:n,startTime:n}).type=i[0]&&i[0].customInfo.hasGemini?_A.b:e.type&&"Overlay"===e.type?_A.c:e.type&&e.type.toLowerCase(),n.type=n.type||"preroll",t.push(n)}}),t}(t.Cg),t=e[mA].map(function(t){var e=Object.assign({},t);return e.adBreakItems=t.adBreakItems.slice(),e}),i(t)})})},e.addEventListener=function(t,e){this[EA].addEventListener(t,e)},e.removeEventListener=function(t,e){this[EA].removeEventListener(t,e)},t}();CA.N=["adSystem","slotOpportunityHandler","metricsEventHandler"],CA.Pj="AdBreakManager.AD_BREAK_PREPARED",i(121);var RA=Symbol(),LA=Symbol(),PA=Symbol(),OA=Symbol(),DA=Symbol(),MA=Symbol(),wA=Symbol(),NA=Symbol(),kA=Symbol(),BA=Symbol(),xA=Symbol(),UA=Symbol(),VA=Symbol(),jA=Symbol(),FA=Symbol(),HA=Symbol(),YA=Symbol(),GA=function(){function t(t){this[RA]=t.adSystem,this[PA]=t.pluginEventBus,this[kA]=t.metricsHandler,this[BA]=t.adBlockerSniffer,this[VA]=t.slotOpportunityHandler,this[xA]=t.adsConfig,this[HA]=t.metricsEventHandler,this[YA]=t.latencyLogger,this[OA]={},this[DA]=!1,function(){var t=this;[[Zo.Na,[eA,dA],Yn.bind(this)],[Zo.We,[],qn.bind(this)],[Zo.xc,[],null,Jn.bind(this)],[Zo.Tj,[],null,Jn.bind(this)],[Zo.$e,[rA],null,Wn.bind(this)],[Zo.yc,[],zn.bind(this)],[Zo.Ye,[JS]],[Zo.Wg,[eA]],[Zo.Xg,[iA]],[Zo.Ug,[],Zn.bind(this)],[Zo.Qj,[null,hA]],[Zo.Sj,[],Gn.bind(this)],["Reporting.Ad.Slot.Opportunity",[],Fn.bind(this)],[Zo.pk,[],ir.bind(this)],[Zo.gh,[],sr.bind(this)],[Zo.hh,[],ar.bind(this)],[Zo.ob,[],$n.bind(this)],[Zo.Rj,[],er.bind(this)],[Zo.Zj,[],tr.bind(this)],[Zo.Sg,[],or.bind(this)],[Zo.Uj,[],jn.bind(this)],[Zo.Vg,[],Vn.bind(this)],[Zo.Zg,[],Kn.bind(this)]].forEach(function(e){var i=(e=vd()(e,4))[0],n=vd()(e[1],2),r=n[0],o=n[1],s=e[2],a=e[3];t[RA].addEventListener(i,function(e){s&&s(e),e.data&&"Overlay"===e.data.adType&&o?t[PA].dispatchEvent(o,t[kA].ma(e.data)):r&&t[PA].dispatchEvent(r,t[kA].ma(e.data)),a&&a(e)})})}.call(this),this[PA].addEventListener(sA,Hn.bind(this))}var e=t.prototype;return e.Wr=function(){return this[DA]},e.ut=function(){this[jA]=!1},t}();GA.N="adSystem pluginEventBus metricsHandler adBlockerSniffer slotOpportunityHandler adsConfig metricsEventHandler latencyLogger".split(" ");var KA=function(){function t(){}return t.prototype.su=function(t){var e=(t=t.YVAP.standaloneAd).gemini;return t={ads:[{actionUrls:t.beacons,rules:t.rules,tag:JSON.stringify({assets:[{mediaInfo:e.mediaInfo,usageType:"VIDEO_PRIMARY"}],clickUrl:e.clickUrl})}]},{adxResult:"SHOW_ADS",aeg:[[{adEngineType:"GEMINI",adTypes:["Preroll"],name:"Empty - Preroll",rcid:"5512a39b09eab108e072da23",rid:"5c4ef9c68fcaa91a27b5d264",url:"http://s3.amazonaws.com/vdb-cdn-files/dev/player-auto-tests/vast/empty.xml",usesShim:!1,vastXml:JSON.stringify(t),vendor:"569fa372e4b0e41110650e54"}]],apid:"O2cad7c149-5370-11e8-9ef2-0242da4b2b2b",auid:"2948598777606229655__TIME__2018-05-30+04%3A00%3A18",rids:["5ade359bc673db38c7f14e5e"],slot:"AVAIL",usid:"c2dc0332-349c-48b7-8f3d-8d82d2b764df"}},t}(),qA=Symbol(),WA=Symbol(),zA=Symbol(),XA=Symbol(),QA=function(){function t(t){this[qA]=t.adSystem,this[WA]=t.smartViewability,this[XA]={at:0}}var e=t.prototype;return e.Xc=function(t){return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ur(i,!0).forEach(function(e){rs()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ur(i).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}({},this[zA],{},this[XA])[t]},e.ma=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=Math.round(this[qA].getDuration());return e&&this.ta({ad_lng:e}),this.ta({view:this[WA].na()}),lr.call(this,Object.assign({},this[zA],t))},e.ta=function(t){this[zA]=Object.assign({},this[zA],t)},e.wn=function(){this[zA]={}},e.Gu=function(t){var e=1;t.customInfo&&t.customInfo.slot&&t.customInfo.slot.aeg&&t.customInfo.slot.aeg.forEach(function(t){t.forEach(function(t){t.Ld()&&(e=2)})}),this.ta({medT:e})},e.Pg=function(t){(t=t||this[qA].ba())&&this.ta({ntwk:"GEMINI"===t.getAdEngineType()?"standalone_gemini_native":t.Lr()})},e.Ij=function(t){(t=t||this[qA].ba())&&this.ta({medS:t.Ld()?t.cc?t.wh?2:3:4:1})},e.Fu=function(t){var e,i=this[qA].cm().dl;t.forEach(function(t){e||(t=l_.uj(i.offsetWidth,i.offsetHeight,t.kb||[]))&&0<t.length&&(e=t[0].mimeType)}),this.ta({mtype:e})},e.$h=function(){this[XA].at++},e.tt=function(){this[XA].at=0},t}();QA.N=["adSystem","smartViewability"];var JA=Symbol(),ZA=Symbol(),$A=Symbol(),tT=Symbol(),eT=function(){function t(t){this[JA]=t.videoTrackerManager,this[ZA]=t.slotOpportunityHandler,this[$A]=t.environment,this[tT]=t.metricsHandler}return t.prototype.onPlayerEvent=function(t,e){switch(t){case fA.c:t=vd()(e,1)[0],this[tT].ta({medS:1,medT:1,ntwk:""}),this[ZA].Et(),this[$A].Rs(),this[$A].Dn(0),this[$A].Qe(t.duration),this[JA].gj(),this[JA].Qe(t.duration),this[JA].Qs();break;case fA.b:t=vd()(e,1)[0],this[$A].Dn(t),this[JA].Ag(t);break;case fA.a:this[JA].Ps()}},t}();eT.N=["adSystem","slotOpportunityHandler","videoTrackerManager","environment","metricsHandler"];var iT=Symbol(),nT=Symbol(),rT=Symbol(),oT=function(){function t(t){this[nT]=t.pluginEventBus,this[iT]=[]}var e=t.prototype;return e.dispatchEvent=function(t,e){if("ad_oppty"===e.evt)var i=this[rT]=!0;this[rT]||"ad_req"===e.evt?this[nT].dispatchEvent(t,e):this[iT].push({event:t,Vs:e}),i&&function(){var t=this;this[iT].forEach(function(e){t[nT].dispatchEvent(e.event,e.Vs)}),this[iT]=[]}.call(this)},e.$s=function(){this[rT]=!1},t}();oT.N=["pluginEventBus"];var sT=vr.a.K("VrmAdPlugin"),aT=Symbol("adBlockerSniffer"),uT=Symbol("adBreakManager"),lT=Symbol("eventBus"),cT=Symbol("fetchedOnce"),dT=Symbol("injector"),hT=Symbol("playerEventHandler"),pT=Symbol("adSystemEventHandler"),fT=Symbol("metricsHandler"),_T=Symbol("slot"),mT=Symbol("adSystemStarter"),yT=Symbol("adSystem"),vT=Symbol("config"),gT=function(){function t(){sT.debug("init"),this[lT]=new Cu.default,this[mT]=new WS,this[dT]=this[mT].eb(),this[aT]=new br(this),this[aT].check(),this[dT].wa("pluginEventBus",this[lT]),this[dT].wa("adBlockerSniffer",this[aT]),this.type="ad-plugin",this.mimetype="adplugin/vrm",this.version="1.0.237"}var e=t.prototype;return e.getCapabilities=function(){return["1","2"]},e.prepare=function(t){var e=this;sT.debug("prepare",t),t=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];(t=Object.assign({},t)).playerType="VDMS",t.macros=t.macros||{},t.macros["m.".concat("disable_3p")]=!0,t.macros["m.".concat("securevpaidsmode")]="1",t.macros["m.".concat("disableflashad")]="1",t.dontPredefineVideoTag=!0,t.sid=t.playerGuid||l(),t.playerId=e?"5b3260f8dbaab35b11ca3a6e":"5afc75ea3a04293dad9f1a1f",t.buyerCompanyId=e?"5b32606132679a7241fe5ca9":"5afc769f7239855a15fcee15";var i=t.timeout||{};return t.timeout=i,i.hard=i.hard||3,i.start=i.start||12,i.maxAdSearch=i.maxAdSearch||30,t.currentVideo={id:e?"5b3261c2cd472447b9cd4d4b":"5ba51c50007d0c73e2b8eddd"},t.slot||((e=document.createElement("div")).style.width="100%",e.style.height="100%",t.slot=e),t}(t),this[_T]=t.slot,function(t){var e=zS.a.Kd(),i=zS.a.tb()||"undefined",n=zS.a.vb(),r=t.queryString||"";t="".concat(Rc.a["tracking.url"],"impression.gif?")+"pid=".concat(t.id||Rc.a["default.pid"],"&")+"bcid=".concat(t.bcid||Rc.a["default.bcid"],"&")+"s=".concat(n,"&")+"pv=".concat(t.jsVersion||"1.0.237","&")+"ifr=".concat(window!==e,"&")+"cb=".concat(Math.random(),"&")+"pt=".concat(t.playerType,"&")+"sid=".concat(t.sid,"&")+"r=".concat(encodeURIComponent(i))+"".concat(-1===r.indexOf("tbv=on")?"":"&itg=tbv"),(e=document.createElement("img")).src=t}(t),this[mT].ku(t),this[mT].xt(),this[fT]=this[dT].oa(QA),this[dT].wa("metricsHandler",this[fT]),this[dT].Pe("metricsEventHandler",oT),this[hT]=this[dT].oa(eT),this[pT]=this[dT].oa(GA),this[uT]=this[dT].oa(CA),this[vT]=this[dT].M("config"),this[uT].addEventListener(CA.Pj,function(t){e[lT].dispatchEvent(XS,t,e[fT].ma())}),t=this[dT].M("actionTracker");var i=this[dT].M("environment");this[yT]=this[dT].M("adSystem"),t.display(i.Zc())},e.addEventListener=function(t,e){this[lT].addEventListener(t,e)},e.removeEventListener=function(t,e){this[lT].removeEventListener(t,e)},e.onPlayerEvent=function(t){for(var e=arguments.length,i=Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];sT.debug("onPlayerEvent",t,i),this[hT].onPlayerEvent(t,i),t===fA.b&&this[uT].du(i[0])},e.fetchAdBreaks=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};sT.debug("fetchAdBreaks",e);var i=e.refId;e=e.config.YVAP?this[dT].oa(KA).su(e.config):e.config,this[fT].ta({pos:"preroll"}),this[cT]?this[vT].Hu(l()):this[cT]=!0,this[uT].fetchAdBreaks(e).then(function(e){t[lT].dispatchEvent(oA,{adBreaks:e,refId:i},t[fT].ma())})},e.resolveAdBreak=function(t){var e=this;this[fT].ta({pos_loc:"resolve-ad-break"}),this[fT].ta({pos:t.type&&t.type.toLowerCase()}),sT.debug("resolveAdBreak",t),0<t.adBreakItems.length?(this[uT].on(t),this[lT].dispatchEvent(aA,t,this[fT].ma())):this[uT].resolveAdBreak(t).then(function(){0<t.adBreakItems.length?(e[uT].on(t),e[lT].dispatchEvent(aA,t,e[fT].ma())):e[lT].dispatchEvent(sA,t,e[fT].ma({r_code:100}))})},e.preparePlayback=function(t,e,i){var n=this;this[fT].ta({pos_loc:"prepare-playback"}),this[fT].ta({adseq:1,pos:t.customInfo.slot.type&&t.customInfo.slot.type.toLowerCase()}),t.customInfo.slot.aeg.every(function(t){var e=0<t.length;return e&&n[fT].Pg(t[0]),!e}),sT.debug("preparePlayback",t,e,i),i&&this[_T]&&i.appendChild(this[_T]),e&&this[dT].M("videoTagProvider").Cn(e),this[fT].Gu(t),this[pT].ut(),this[uT].preparePlayback(t)},e.play=function(t){var e=this;sT.debug("play",t),this[pT].Wr()?this[yT].Ct():this[uT].play(t).then(function(){e[lT].dispatchEvent($S,e[fT].ma())})},e.pause=function(){sT.debug("pause"),this[yT].hn()},e.seek=function(){sT.debug("seek")},e.stop=function(){sT.debug("stop"),this[yT].stop()},e.skip=function(){sT.debug("skip"),this[yT].skip()},e.mute=function(t){sT.debug("mute"),this[yT].mute(t)},e.isMuted=function(){return this[yT].isMuted()},e.setVolume=function(t){sT.debug("setVolume",t),this[yT].setVolume(t)},e.getVolume=function(){return this[yT].getVolume()},e.getCurrentTime=function(){return this[yT].getCurrentTime()},e.getDuration=function(){return this[yT].getDuration()},e.unload=function(){sT.debug("unload"),this[fT]&&this[fT].wn(),this[yT]&&this[yT].stop()},e.destroy=function(){sT.debug("destroy"),this[_T]=void 0,this[fT]&&this[fT].wn(),this[yT]&&this[yT].stop()},e.canRenderUI=function(t){return wn(t.customInfo.slot)},e.renderUI=function(){return null},e.unrenderUI=function(){},e.setNonlinearAdContainer=function(t){sT.debug("setNonlinearAdContainer",t),t&&this[dT].M("adContainerProvider").au(t),this[uT].bt()},t}();i.d(e,"VrmAdPlugin",function(){return gT}),i.d(e,"AdPluginEvent",function(){return hr})}])}module.exports=ft()}).call(this,__webpack_require__("yLpj"))},rJdA:function(t,e,i){"use strict";t.exports=l;var n=i("/iNa"),r=i("yvII").Events,o=i("2fkz"),s=o.Command,a=o.CmdNames,u=o.CmdEvents;function l(t,e){if(!t||!t.url||!t.controller)throw new Error("Invalid argument: data argument of the command is not complete");s.call(this,t,e),this.name=a.CMD_MEDIA_LOAD,this._loader=t.controller.services.getNewLoader(t)}n.inherits(l,s),l.prototype.destroy=function(){this._loader.destroy(),s.prototype.destroy.call(this)},l.prototype.execute=function(){var t=this,e=t.data.url;t._loader.addEventListener(r.COMPLETE,function(e){t.publish(u.CMD_COMPLETE,t,e)},t),t._loader.addEventListener(r.ERROR,function(e){t.publish(u.CMD_ERROR,t,e)},t),t._loader.load(e)},l.prototype.cancel=function(){}},rWzN:function(t,e,i){"use strict";t.exports=c;var n=i("HakF"),r=i("x7P6").AbrModes,o=i("RwmF"),s=i("/iNa"),a=i("y5bh").HLSEvent,u=i("LFVj"),l=i("bh81").ResolutionRule;function c(){this._model=this.__controller.model,this._abrController=this.__controller.create(n),this._abrInputData={estimatedBandwidthInBps:0,bitrateList:[],currentIndex:0,bufferLength:0},this._eventKeys={},this._onMediaLoaded(),this.SWITCH_BEGIN="switchBegin",this.SWITCH_END="switchEnd",this.SCENARIOS={STARTUP:"startup",LOAD:"load",ERROR:"error",MIDSEGMENT:"mid-segment"},this.switching=!0,this._useAnalytics=this._model.config.sendAbrAnalytics,this._analytics=new u,o.call(this,this.constructor.name),this._eventKeys[a.MEDIA_LOADED]=this.__controller.addEventListener(a.MEDIA_LOADED,this._onMediaLoaded,this)}s.inherits(c,o),c.prototype.destroy=function(){this._abrController.destroy(),this.__controller.removeEventListeners(this._eventKeys),this._analytics.destroy(),o.prototype.destroy.call(this)},c.prototype.switchStream=function(t,e,i){var n=this;n._model.getABRMode()!==r.AUTO&&n._model.streams.forEach(function(t,e){n._model.getUserReqBitrate()===t.bitrate&&(i=e)});var o=n._model.currentLoadingStreamIndex,s=n._prepareAbrInput(),a=n._getNextStreamIndex(i,t,s);return n._useAnalytics&&(n._analytics.nextIndex=a,n._analytics.scenario=t,n._updateAnalytics(s),t===n.SCENARIOS.LOAD&&n._sendAnalyticsData()),!(a<0)&&(a!==o&&((!e||!("up"===e&&a<o||"down"===e&&a>o))&&(n._model.setCurrentLoadingStream(a),n.switching=!0,n.publish(n.SWITCH_BEGIN,a),n._useAnalytics&&n._analytics.switchCount++,!0)))},c.prototype._getNextStreamIndex=function(t,e,i){return"number"==typeof t?t:this._abrController.getNextStreamIndex(i,e===this.SCENARIOS.STARTUP)},c.prototype.switchComplete=function(){this.switching=!1,this.publish(this.SWITCH_END)},c.prototype._prepareAbrInput=function(){this._prepareBitrateList();var t=this._abrInputData,e=this.__controller.services.bandwidthEstimator,i=this._model.dimensions;return t.estimatedBandwidthInBps=1e3*e.averageBandwidth*1e3,t.currentIndex=this._model.currentLoadingStreamIndex,t.bufferLength=this._model.bufferLength,t.displayWidth=isNaN(i.width)?640:i.width,t.displayHeight=isNaN(i.height)?360:i.height,t.pixelRatio=this._model.pixelRatio,t.is360=this._model.is360,t.streams=this._model.streams,t.segmentLength=this._model.getSegmentLength(),t},c.prototype._onMediaLoaded=function(){this._prepareBitrateList()},c.prototype._updateAnalytics=function(t){var e=Date.now();this._analytics.pixelRatio=(new l).getPixelRatio({is360:this._model.is360}),this._analytics.baseTime||(this._analytics.baseTime=e),t&&(this._analytics.currentIndex=t.currentIndex,this._analytics.displayHeight=t.displayHeight,this._analytics.displayWidth=t.displayWidth,this._analytics.estimatedBandwidth=Math.floor(t.estimatedBandwidthInBps/1e3),this._analytics.bufferLength=t.bufferLength,this._analytics.time=e-this._analytics.baseTime);var i={};i.bl=this._model.bufferLength.toFixed(2),i.sc=this._analytics.scenario?this._analytics.scenario.charAt(0):"",i.dw=t?t.displayWidth:NaN,i.dh=t?t.displayHeight:NaN,i.eb=t?Math.floor(t.estimatedBandwidthInBps/1e3):NaN,i.ci=this._analytics.currentIndex,i.ni=this._analytics.nextIndex,i.pr=this._analytics.pixelRatio.toFixed(2),i.time=this._analytics.time,this._analytics.push(i)},c.prototype.addBufferingEntry=function(t,e,i){if(t>=0){var n={bl:this._model.bufferLength.toFixed(2),sc:"b",mbt:t.toFixed(1),br:Math.floor(i),eb:Math.floor(e),ci:this._model.currentLoadingStreamIndex,time:this._analytics.baseTime?Date.now()-this._analytics.baseTime:0};this._analytics.push(n)}},c.prototype._sendAnalyticsData=function(){this.__controller.sendEvent(a.ABR_DATA_UPDATED,this._analytics.getDto()),this._analytics.reset()},c.prototype._prepareBitrateList=function(){var t=this;t._model.streams&&!t._abrInputData.bitrateList.length&&(t._abrInputData.bitrateList=[],t._model.streams.forEach(function(e){t._abrInputData.bitrateList.push("VBR"===e.rcMode.toUpperCase()?e.avgBitrate:e.bitrate)}))}},rdAy:function(t,e,i){"use strict";t.exports.Fmp4Streamer=d,t.exports.Fmp4LiveStreamer=h;var n=i("/iNa"),r=i("21xW"),o=i("6I/I").Streamer,s=i("2fkz").CmdNames,a=i("V66C").StreamTypes,u=i("lPOR"),l=i("x7P6").StreamingMode,c=i("9nRl");function d(t,e){o.call(this,t,e),this._super=this.constructor.super_.prototype,this._currentPeriod=null,this._init(t)}function h(t,e){r.call(this,t,e),this._super=this.constructor.super_.prototype,this._currentPeriod=null,this._init(t),this.SEGMENT_OFFSET=7}n.inherits(d,o),n.inherits(h,r),d.prototype.destroy=function(){o.prototype.destroy.call(this)},h.prototype.destroy=function(){r.prototype.destroy.call(this)},h.prototype._init=d.prototype._init=function(t){this._setCodecType(t);var e=[{type:this._trackType,mimeType:this._trackType+'/mp4; codecs="'+this._codec+'"',minBufferTime:this.__controller.getMinimumBufferTime()}];this.__controller.sendMessage(u.MessageIds.CREATE_SRC_BUFFER,[e],["tracks"])},h.prototype._setCodecType=d.prototype._setCodecType=function(t){t.type===a.AUDIO?(this._codec=this._model.userAgent.android?"mp4a.40.2":t.audioCodec||"mp4a.40.2",this._trackType="audio"):(this._codec=t.videoCodec||"avc1.640021",this._trackType="video")},h.prototype.setCurrentStream=d.prototype.setCurrentStream=function(t){t&&this._currentStream&&!t.equals(this._currentStream)&&(this._currentStream=t,this._state===this.STATES.LOADING&&this.abortCurrentSegment(this._currSegLoadCmd),this.isStreamReady()||(this._state=this.STATES.NONE))},h.prototype._loadInitSegment=d.prototype._loadInitSegment=function(t,e,i,n){var r=this._currentStream;this._commandManager.removeRelatedCommands(s.CMD_MP4_INIT_SEGMENT_LOAD);var o={stream:r,segment:e,initSegment:t,comboLoad:i,cached:n};this._commandManager.executeCommand(s.CMD_MP4_INIT_SEGMENT_LOAD,o,this)},h.prototype._initializeStream=d.prototype._initializeStream=function(t){if(!(this._state>=this.STATES.INITIALIZING)){var e=c.isNullOrUndefined(t)?this._getNextSeqNum(this._targetPosition):t,i=this._currentStream,n=e===i.startSeqNum,r=i.getSegmentfromSeqNum(e);if(r){var o=i.getInitSegment(r),s=!c.isNullOrUndefined(o);s||(o=i.addInitSegment(r.initSegment));var a=i.streamingMode===l.HLS&&!c.isNullOrUndefined(i.mp4Chunks.first);a&&(r=n?r:null),this._state=this.STATES.INITIALIZING,r&&r.periodId!==this._currentPeriod&&this._onPeriodChange(r.periodId),this._addDrmItem(r?r.periodId:null),this._loadInitSegment(o,r,a,s)}}},h.prototype.onMp4InitSegmentLoadProgress=d.prototype.onMp4InitSegmentLoadProgress=function(t,e){var i=this._currentStream;if(e&&i){var n=t.getSegment();if(e.comboLoad&&n&&"firstByte"===e.position)this.onSegmentLoadProgress(t,e);else{var r=e.chunk,o=e.stream;if(r&&o){var s=o.getInitSegment(n);switch(r.name){case"init":o.setMp4Timescale(s);break;case"sidx":var a=r.data;a&&o.updateSegmentRanges(this._services.mp4BoxParser.parse(a,"sidx",o.sidxOffset));break;case"first":return void this.onSegmentLoadProgress(t,e)}i.equals(o)&&o.isReady()&&(this._sendInitSegment(s),this._state=this.STATES.INITIALIZED,e.comboLoad&&n&&(this._seqNum=n.seqNum,this._state=this.STATES.LOADING))}}}},h.prototype.onMp4InitSegmentLoadComplete=d.prototype.onMp4InitSegmentLoadComplete=function(t,e){if(e){var i=t.getSegment();e.comboLoad&&i?this.onSegmentLoadComplete(t):(this._state<this.STATES.INITIALIZED&&this._currentStream.equals(e.stream)&&(this._state=this.STATES.INITIALIZED),this._commandManager.removeCommand(t))}},h.prototype.onMp4InitSegmentLoadError=d.prototype.onMp4InitSegmentLoadError=function(t,e){this._commandManager.removeCommand(t)},h.prototype.onSegmentLoadProgress=d.prototype.onSegmentLoadProgress=function(t,e){var i=this._currentStream;if(e&&i){var n=e.stream;if(!n||i.equals(n)){if("firstByte"!==e.position){var r={data:new Uint8Array(e.data),codec:this._codec,type:this._trackType,minBufferTime:this.__controller.getMinimumBufferTime(),frames:e.samples,startTime:i.timescale>0?e.baseTime/i.timescale:NaN,endTime:i.timescale>0?(e.baseTime+e.totalDuration)/i.timescale:NaN};this._sendToBuffer([r])}o.prototype.onSegmentLoadProgress.call(this,t,e)}}},h.prototype._onPeriodChange=d.prototype._onPeriodChange=function(t){if(this._currentPeriod!==t){this._currentPeriod=t;var e=this._currentStream;"MAIN"!==this.type&&"AUDIO"!==this.type||this._printCurrentRays(t,e),this._addDrmItem(t)}},h.prototype._printCurrentRays=d.prototype._printCurrentRays=function(t,e){for(var i=this._model.streams,n=(this.type,0);n<i.length;n++)i[n].groupId;e.groupId},h.prototype._addDrmItem=d.prototype._addDrmItem=function(t){var e=this,i=e._currentStream;i&&i.drmInfo&&!c.isNullOrUndefined(t)&&i.drmInfo.forEach(function(i){i.periodId===t&&e.__controller.sendMessage(u.MessageIds.DRM_LICENSE_INFO,[i],["drmItem"])})},h.prototype._sendInitSegment=d.prototype._sendInitSegment=function(t){var e=this._currentStream;if(t){var i=t.data;if(i){var n={data:new Uint8Array(i.buffer),codec:this._codec,type:this._trackType,minBufferTime:this.__controller.getMinimumBufferTime(),onlyMetadata:!0};this._sendToBuffer([n]),e.activeInitSegment=t;var r=e?e.getMp4Chunk("sidx"):null;if(r){var o=r.data;o&&(n.data=new Uint8Array(o.buffer),this._sendToBuffer([n]))}}}},h.prototype._printLoadMessage=d.prototype._printLoadMessage=function(t,e){},h.prototype._beforeLoadSegment=d.prototype._beforeLoadSegment=function(t){var e=this._currentStream.getSegmentfromSeqNum(t);e&&e.periodId!==this._currentPeriod&&this._onPeriodChange(e.periodId),this._state=this.STATES.NONE,this._segAborted=!0,this._seqNum=t,this._initializeStream(t)},d.prototype.onSynchBegin=function(){this.processOnlyMetadata=!0},h.prototype._synch=function(t){this.lastAudioTimestamp=NaN,this._super._synch.call(this,t)}},rnuW:function(t,e,i){"use strict";t.exports=r;var n=i("9EqR");function r(){this._cache={}}r.prototype.destroy=function(){var t=this;Object.keys(t._cache).forEach(function(e){var i=t._cache[e];i&&i.destroy()}),t._cache={}},r.prototype.add=function(t){if(!t||!t.url)return null;var e=this._hash(t);return this._cache[e]||(this._cache[e]=new n({name:"init",url:t.url,range:t.range})),this._cache[e]},r.prototype.remove=function(t){if(t&&t.url){var e=this._hash(t);(t=this._cache[e])&&(t.destroy(),delete this._cache[e])}},r.prototype.get=function(t){if(!t||!t.url)return null;var e=this._hash(t);return this._cache[e]},r.prototype.getFirst=function(){var t=Object.keys(this._cache);return t&&t.length?this._cache[t[0]]:null},r.prototype._hash=function(t){var e=t.range,i=e?"_"+e.start+"_"+e.end:"";return t.url+i}},rtwX:function(t,e,i){"use strict";t.exports=E;var n=i("lPOR"),r=n.MessageIds,o=n.MessageTypes,s=i("/iNa"),a=i("HNE+"),u=i("6ir0"),l=i("0r65"),c=i("qKMm"),d=i("NMH2"),h=i("MyAg"),p=i("y5bh").HLSEvent,f=i("w+YI"),_=i("KtsB"),m=i("pwzT"),y=i("6I/I").SynchTypes,v=i("ulAJ").LicenseManager,g={SYNCH_BEGIN:"synchBegin",SYNCH_METADATA_READY:"synchMetadataReady",SYNCH_DONE:"synchDone"};function E(t){this._moduleName="Controller",this._instanceId=s.guid(),this._node=this._context.node,this._mediaSource=this._context.mediaSource,this._model=this._context.appModel,this.mediaLoaded=!1,this._preloadProgressSent=!1,this._synchPosition=null,this._sessionId=t?t.sessionId:null,this._videoEventHandler=new d(this._node,this._context.mediaSource,this),this._bufferController=this._context.create(h),this._playbackMetrics=this._context.create(f),this._localStorageHandler=new m,this._updateTimer=new a(250),this._updateTimer.addEventListener(this._update,this),this._jobQueue=[];var e={userAgent:this._model.userAgent,metadata:t,config:this._model.config};if(e.config.bwHistory=this._getAverageBWFromLS(),this._useWorker=this._shouldUseWorker(e),this._useWorker){if(this._worker=this._getWorker(this._moduleName),this._worker)return e.config.inWorkerScope=!0,this._worker.addEventListener("message",this._onMessage.bind(this)),void this._sendMessage(r.CREATE,[e]);this._model.config.useWorker=!1}this._controller=new c(e,this._onCallback.bind(this)),this._useWorker=!1,this._paused=!1,this._pausedOnStreamChange=!1,this._pausedPositionOnStreamChange=null,this._synchPosition=null,this._synchState=g.SYNCH_DONE,this._synchType=null,this._resetSrcBuffersOnSeek=!1}E.prototype.destroy=function(){this._videoEventHandler.destroy(),this._bufferController.destroy(),this._playbackMetrics.destroy(),this._jobQueue=null,this._licenseManager&&this._licenseManager.destroy(),this._updateTimer&&(this._updateTimer.destroy(),this._updateTimer=null),this._useWorker&&this._worker?(this._sendMessage(r.DESTROY),this._worker.terminate()):this._controller.destroy()},E.prototype._shouldUseWorker=function(t){var e=t?t.userAgent:null,i=!t||!t.config||t.config.useWorker;if(!e)return i;if(e.chrome&&!e.win7)return!1;if(e.safariDesktop)return!1;var n=t?t.metadata:null;return!(n&&n.url&&n.url.indexOf(".mpd")>-1)&&(!(e.firefox&&n&&n.streams&&n.streams.length&&"m3u8:fmp4"===n.streams[0].format)&&((!this._isUplynk(n)||!(e.safari||e.edge||e.ie))&&i))},E.prototype._isUplynk=function(t){if(!t)return!1;var e=t.url,i=t.streams&&t.streams.length?this._getStreamUrl(t.streams[0]):null;return s.isUplynk(e||i)},E.prototype._getStreamUrl=function(t){if(!t)return null;var e=t.url;return!e&&t.host&&t.path&&(e=t.host+t.path),e},E.prototype.sendVideoEvent=function(t){if(t)switch(t.type){case"play":this._onPlay();break;case"playing":this._onPlaying();break;case"pause":this._onPause();break;case"seeking":this._onSeeking(t);break;case"seeked":this._onSeeked(t);break;case"ended":this._onComplete();break;case"error":this._onError();break;case"timeupdate":this._onTimeUpdate(t);break;case"resize":this._onResize(t)}},E.prototype.onMediaSourceOpen=function(){this.mediaLoaded&&(this._updateTimer.reset(),this._updateTimer.start(),this._jobQueue.length&&this._flushJobQueue())},E.prototype.play=function(t){if(!this._mediaSource||"closed"!==this._mediaSource.readyState&&this.mediaLoaded){var e=this._model.live?this._node.currentTime:this._model.duration,i=t>0&&t<=e?t:null;i&&this._onSynchBegin(i,y.INIT),this._startPlaying()}else this._jobQueue.push([this,this.play,[t]])},E.prototype.pause=function(){!this._mediaSource||"closed"!==this._mediaSource.readyState&&this.mediaLoaded?this._node.pause():this._jobQueue.push([this,this.pause])},E.prototype.preload=function(t){!this._mediaSource||"closed"!==this._mediaSource.readyState&&this.mediaLoaded?this._callMethod("preload",[t]):this._jobQueue.push([this,this.preload,[t]])},E.prototype.setABRMode=function(t){this._callMethod("setABRMode",[t])},E.prototype.setAudioLanguage=function(t){this._callMethod("setAudioLanguage",[t])},E.prototype.suspendStreaming=function(){this._callMethod("suspendStreaming")},E.prototype.resumeStreaming=function(){this._callMethod("resumeStreaming")},E.prototype.getSegInfo=function(){var t={mode:"sync",segInfo:null,bufferLen:null,sessionId:this._sessionId};return this._useWorker&&this._worker?(t.mode="async",this._sendMessage(r.CALL_METHOD,null,"getSegInfo")):t.segInfo=this._controller.getSegInfo(),t.bufferLen=this._model.getBufferLength(),t},E.prototype._onPlay=function(){if(this._model.setDimensions(),!this._mediaSource||"closed"!==this._mediaSource.readyState&&this.mediaLoaded){var t=this._synchPosition;this._pausedPositionOnStreamChange&&(t=this._pausedPositionOnStreamChange,this._pausedPositionOnStreamChange=null),this._paused=!1,this._callMethod("onPlay",[t]),this._playbackMetrics.onPlay()}else this._jobQueue.push([this,this._onPlay])},E.prototype._onPlaying=function(){this._callMethod("onPlaying")},E.prototype._onPause=function(){this._paused=!0,this._callMethod("onPause"),this._playbackMetrics.onPause()},E.prototype._onSeeking=function(t){var e=t.target.currentTime,i=!this._model.live,n=!1,r=this._model.userAgent;r&&r.safariDesktop&&(n=!this._model.live||this._resetSrcBuffersOnSeek),this._bufferController.onSeeking(i,n),this._resetSrcBuffersOnSeek=!1,this._callMethod("onSeeking",[e])},E.prototype._onSeeked=function(t){var e=t.target.currentTime;this._callMethod("onSeeked",[e])},E.prototype._onComplete=function(){this._updateTimer.stop(),this._callMethod("onComplete")},E.prototype._onError=function(){var t=this._node.error?this._node.error.code:null;this._callMethod("onError",[t]),this._bufferController.onError()},E.prototype._onResize=function(){this._model.setDimensions()},E.prototype._onTimeUpdate=function(){this._doUpdate("onTimeUpdate")},E.prototype._update=function(){this.mediaLoaded&&this._doUpdate("onUpdate")},E.prototype._doUpdate=function(t){this._bufferController.process();var e={currentTime:this._node.currentTime,bufferedAndPending:this._bufferController.getBufferedAndPending(),bufferLength:this._model.getBufferLength(),pendingBufferLength:this._bufferController.getPendingBufferLength(),bufferedRanges:this._model.getBufferedDto(),dimensions:this._model.getDimensions(),pixelRatio:this._model.getPixelRatio(),frameStats:this._playbackMetrics.getFpsStats()};this._callMethod(t,[e])},E.prototype._onMediaLoaded=function(){this.mediaLoaded=!0,this._mediaSource&&"closed"===this._mediaSource.readyState||(this._updateTimer.start(),this._jobQueue.length&&this._flushJobQueue())},E.prototype._onSynchBegin=function(t,e){this._synchPosition=t,this._synchState=g.SYNCH_BEGIN,this._synchType=e,this._model.live&&(this._bufferController.resetReadyState(),this._bufferController.clear())},E.prototype._onSynchComplete=function(t){this._synchPosition=null,this._synchState=g.SYNCH_DONE,this._synchType=null,this._model.live&&this._callMethod("onSynchComplete",[t])},E.prototype._flushJobQueue=function(){var t=this._jobQueue;this._jobQueue=[],t.forEach(function(t){var e=t[0],i=t[1],n=t.length>2?t[2]:null;i&&"function"==typeof i&&i.apply(e,n)})},E.prototype._callMethod=function(t,e){this._useWorker&&this._worker?this._sendMessage(r.CALL_METHOD,e,t):this._controller[t].apply(this._controller,e)},E.prototype._getWorker=function(t){if(!t)return null;if(this._useWorker&&"undefined"!=typeof Worker)try{return this._worker||(this._worker=l(u)),this._worker}catch(t){}return null},E.prototype._onMessage=function(t){if(t){var e=t.data?new _(t.data):t;if(e&&e.instanceId===this._instanceId){var i=e.getParam("media");if(i&&this._model.update(i),e.type!==o.EVENT)switch(e.id){case r.CREATE_SRC_BUFFER:this._createSrcBuffers(e.getParam("tracks"));break;case r.APPEND_SRC_BUFFER:this._appendSrcBuffers(e.getParam("tracks"));break;case r.SAVE_AVG_BANDWIDTH:this._setAvgBWToLocalStorage(e.getParam("avgBwInfo"));break;case r.END_OF_STREAM:e.args&&e.args.length&&(this._bufferController.endOfStream(e.getParam("endOfStream")),this._context.sendEvent(p.CONTENT_LOAD_FINISHED,e.args[0]));break;case r.PAUSE_BEFORE_STREAM_CHANGE:this._pauseOnStreamChange(e.getParam("streamType"));break;case r.PLAY_AFTER_STREAM_CHANGE:this._playOnStreamChange();break;case r.DRM_INIT:this._licenseManager||(this._licenseManager=new v(this._controller,this._node,this._context));for(var n=0;n<this._model.drmInfo.length;n++)this._licenseManager.addDrmItem(this._model.drmInfo[n]);break;case r.DRM_LICENSE_INFO:this._licenseManager&&this._licenseManager.addDrmItem(e.getParam("drmItem"));break;case r.SKIP_GAP:this._node.currentTime=e.getParam("seekPosition")}else this._handleEvent(e.id,e.getParam("eventData"))}}},E.prototype._onCallback=function(t){t.instanceId=this._instanceId,this._onMessage(t)},E.prototype._handleEvent=function(t,e){if(t){switch(t){case p.MEDIA_LOADED:this._onMediaLoaded();break;case p.WAITING:var i=e?e.minBufferTime:.1;this._bufferController.setMinimumBufferTime(i),this._playbackMetrics.updateBufferingInfo(e);break;case p.LIVE_SYNCH:var n=e?e.synchPosition:null,r=e?e.synchType:y.INIT;this._onSynchBegin(n,r);break;case p.SEG_INFO_METRICS_AVAILABLE:e={segInfo:e,bufferLen:this._model.getBufferLength(),sessionId:this._sessionId};break;case p.VTT_SEGMENT_LOADED:e&&(e.sessionId=this._sessionId);break;case p.MEDIA_METADATA_LOADED:e=this._model.streams;break;case p.ERROR:return e.error=new Error(e.message,e.code),void this._context.notifyError(e)}this._context.sendEvent(t,e)}},E.prototype._createSrcBuffers=function(t){var e=this;t&&(!e._mediaSource||"closed"!==e._mediaSource.readyState&&e.mediaLoaded?(e._setMediaSourceDuration(),t.forEach(function(t){e._bufferController.createSourceBuffer(t.type,t.mimeType,t.minBufferTime)})):e._jobQueue.push([e,e._createSrcBuffers,[t]]))},E.prototype._setMediaSourceDuration=function(){this._mediaSource&&!this._mediaSource.duration&&this._model.duration>0&&(this._mediaSource.duration=this._model.duration)},E.prototype._appendSrcBuffers=function(t){var e=this;t&&(t.forEach(function(t){e._bufferController.appendBuffer(t,function(t,i){e._onAppendBufferComplete(t,i)})}),e._model.preloading&&!e._preloadProgressSent&&(e._context.sendEvent(p.PRELOAD_PROGRESS),e._preloadProgressSent=!0))},E.prototype._onAppendBufferComplete=function(){if(!this._model.live&&this._synchState===g.SYNCH_BEGIN){if(!this._bufferController.areSrcBuffersReady())return;return this._bufferController.onSeeking(!0),this._synchState=g.SYNCH_METADATA_READY,void this._callMethod("onSynchMetadataReady",[this._synchPosition])}if(this._synchPosition&&this._bufferController.areSrcBuffersReady()){var t=this._getSeekable(this._node),e=this._node.buffered;if(t.length&&e.length){var i=t.start(t.length-1),n=t.end(t.length-1),r=this._model.TIMESTAMP_COMPARE_EPSILON;if(this._synchPosition+r>=i&&this._synchPosition<=n){for(var o=this._synchPosition,s=0;s<e.length;s++)if(!(o>e.end(s))&&o<e.start(s)){o=e.start(s);break}var a=this._model.userAgent;this._resetSrcBuffersOnSeek=a&&a.safariDesktop&&this._model.live&&this._synchType===y.TIME_GAP;try{this._node.currentTime=o}catch(t){}this._onSynchComplete(o)}}}},E.prototype._sendMessage=function(t,e,i){if(this._worker&&t){var n={type:o.MESSAGE,id:t,moduleName:this._moduleName,instanceId:this._instanceId,funcName:i,args:e,timestamp:Date.now()};this._worker.postMessage(n)}},E.prototype._getAverageBWFromLS=function(){var t=this._localStorageHandler.readProperty("avgBW"),e=t?t.avgBWtimestamp:null;if((e?Date.now()-parseInt(e):Number.MAX_VALUE)<1e3*this._model.config.bwHistoryMaxAge&&t){var i=t.avgBW;return i?parseInt(i):0}return 0},E.prototype._setAvgBWToLocalStorage=function(t){t&&this._localStorageHandler&&this._localStorageHandler.writeProperty("avgBW",t)},E.prototype._playOnStreamChange=function(){this._pausedOnStreamChange&&(this._startPlaying(),this._pausedOnStreamChange=!1,this._context.sendEvent(p.WAITING,{value:!1,bufferInit:!1}))},E.prototype._pauseOnStreamChange=function(t){var e=this._node.currentTime,i=this._model.live;i&&"audio"===t?this._bufferController.clearSrcBuffer(t):this._bufferController.clear(),this._paused||(this._context.sendEvent(p.WAITING,{value:!0,bufferInit:!1}),this._node.pause(),this._pausedOnStreamChange=!0),i?this._pausedPositionOnStreamChange=e:this._node.currentTime=e},E.prototype._startPlaying=function(){var t=this;if(t._node){var e=t._node.play();return e&&"function"==typeof e.catch&&e.catch(function(){t._node.paused&&t._context.sendEvent(p.PLAY_BLOCKED)}),e}},E.prototype.getCurrentDate=function(){return this._model.getCurrentDate()},E.prototype._getSeekable=function(t){var e=this._model.userAgent;return this._model.live&&e.edge&&e.edge>=17&&e.edge<18?t.buffered:t.seekable}},"s/21":function(t,e,i){"use strict";var n=i("82c2"),r=i("G3+v");t.exports=function(){var t=r();return n(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t}},s4NR:function(t,e,i){"use strict";e.decode=e.parse=i("kd2E"),e.encode=e.stringify=i("4JlD")},s9EW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("A4+F"),r=i("+Ojf"),o=i("4rJX"),s=function(){function t(t){this._eventBus=t}return t.prototype.create=function(){return this.node=r.default.render(o,{}),this._eventBus.addEventListener(n.ExternalEvt.LOADING_BEGIN,this._onLoadingScreenVisible,this),this._eventBus.addEventListener(n.ExternalEvt.LOADING_END,this.hide,this),this.node},t.prototype.hide=function(){this.node&&r.default.classList(this.node).remove("vp-show-spinner")},t.prototype.destroy=function(){this.node=null},t.prototype._onLoadingScreenVisible=function(){this.node&&(r.default.forceDOMRedrawOnElement(this.node),r.default.classList(this.node).add("vp-show-spinner"))},t}();e.default=s},sEG9:function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},sLCx:function(t,e,i){"use strict";var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase().replace(/<[A-Za-z]+.*?(\/>|>.*?<\/[A-Za-z]+>)|javascript:/g,""):"",r="undefined"!=typeof window?window:{},o=function(t){if(null===t)return!1;var e=t[1];return parseFloat(e.replace("_",".").split(".",2).join("."))||1},s=function(t){for(var e=(r&&r.location&&r.location.search&&r.location.search.substring(1)||"").split("&"),i=0;i<e.length;i++){var n=e[i].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}return null};if(e.ua=n,e.chromium=o(/chromium\/([^\s]*)/.exec(n)),e.edge=o(/edge\/([^\s]*)/.exec(n)),e.opera=/opr\/|opera\//.test(n),e.chrome=!e.chromium&&!e.edge&&!e.opera&&(o(/chrome\/([^\s]*)/.exec(n))||o(/crios\/([^\s]*)/.exec(n))),e.ie=o(/msie ([^;]*)/.exec(n))||o(/trident.*; rv:([0-9.]+)/.exec(n)),e.firefox=!e.ie&&o(/firefox\/([^\s]*)/.exec(n)),e.android=/android/.test(n),e.androidTablet=e.android&&!/mobile/.test(n),e.htc_one=/htc_one/.test(n),e.vizio=/Vizio/i.test(n)||"vizio"===s("man"),e.tivo=/TiVo/i.test(n),e.fios=/Verizon_STB|\(Verizon.*VMS1100|\(Verizon.*IPC1100|\(Verizon.*IPC3200/i.test(n),e.firetv=e.android&&/amazonwebappplatform/.test(n)&&/aft/.test(n),e.lg=/web0s/.test(n),e.tizen=/tizen/.test(n),e.orsay=/smarttv/.test(n)&&!e.tizen&&!e.lg,e.samsung=e.orsay||e.tizen,e.sony=/(sony)/.test(n),e.ps4=/(playstation 4)/.test(n),e.ios=/(ipad|iphone|ipod)/.test(n),e.iphone=/(iphone|ipod)/.test(n)&&!/ipad/.test(n),e.ipad=e.ios&&!e.iphone,e.androidBrowser=!e.chrome&&/android/.test(n),e.androidVersion=o(/android\s([0-9.]*)/.exec(n)),e.safari=!e.chrome&&!e.chromium&&!e.android&&/safari\/([^\s]*)/.test(n)&&o(/version\/([^\s]*)/.exec(n)),e.iosWebView=e.ios&&!navigator.standalone&&!e.safari,e.iosVersion=e.ios&&o(/\bos ((\d+_?){2,3})\s/.exec(n)),e.mobile=e.ios||e.android&&!e.firetv,e.safariDesktop=!e.mobile&&e.safari,e.tv=e.vizio||e.tivo||e.firetv||e.samsung||e.sony||e.ps4||e.lg||e.fios,e.desktop=!e.mobile&&!e.tv,e.phantomJS=r.window&&r.window._phantom,e.tv)if(e.vizio)e.os="vizio",e.model=s("class")||s("soc");else if(e.tivo)e.os="tivo",/tcd849/.test(n)?(e.model="series6",e.version="tcd849"):/tcd8d9/.test(n)?(e.model="series6",e.version="tcd8d9"):/tcd8f9/.test(n)?(e.model="series6",e.version="tcd8f9"):/tcd8/.test(n)?(e.model="series5",e.version="tcd8"):/tcdd/.test(n)?(e.model="series5",e.version="tcdd"):e.model="series4";else if(e.firetv)e.os="firetv",/aftb/.test(n)?e.model="aftb":/afts/.test(n)?e.model="afts":(/aftm/.test(n),e.model="aftm");else if(e.lg)e.os="lg",e.model="lg";else if(e.samsung){e.os="samsung";var a=void 0!==a?a:window.tizen;a&&a.systeminfo?(e.model="tizen",e.version=a.systeminfo.getCapability("http://tizen.org/feature/platform.version")):e.model="orsay"}else e.sony?(e.os="sony",/bdp/.test(n)?e.model="bdp":e.model="tv"):e.ps4?(e.os="ps4",e.model="4"):e.fios?e.os="fios":e.os=null;else e.ios?e.os="ios":e.android?e.os="android":/windows|win32/.test(n)?(e.os="windows",e.winXP=/(windows nt 5\.[1-3])/.test(n),e.winVista=/(windows nt 6\.0)/.test(n),e.win7=/(windows nt 6\.1)/.test(n),e.win8=/(windows nt 6\.2)/.test(n),e.win8_1=/(windows nt 6\.3)/.test(n),e.win10=/(windows nt 10\.0)/.test(n),e.win64=/(wow64|win64)/.test(n)):/macintosh|mac_powerpc/.test(n)?e.os="macintosh":/symbos/.test(n)?e.os="symbos":/linux/.test(n)?e.os="linux":e.os=null},sYn3:function(t,e,i){"use strict";var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=i("1KsK"),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),l=a.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,i="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),h=[];if(!e&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var f=l&&i;if(a&&t.length>0&&!r.call(t,0))for(var _=0;_<t.length;++_)h.push(String(_));if(n&&t.length>0)for(var m=0;m<t.length;++m)h.push(String(m));else for(var y in t)f&&"prototype"===y||!r.call(t,y)||h.push(String(y));if(u)for(var v=function(t){if("undefined"==typeof window||!p)return d(t);try{return d(t)}catch(t){return!1}}(t),g=0;g<c.length;++g)v&&"constructor"===c[g]||!r.call(t,c[g])||h.push(c[g]);return h}}t.exports=n},"sdq/":function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i("ToqN"),o=n(i("khC+")),s=function(t){return Array.isArray(t)},a=function(t){return"boolean"==typeof t},u=function(t){return"function"==typeof t},l=function(t){return"number"==typeof t&&!isNaN(t)},c=function(t){return"[object Object]"===Object.prototype.toString.call(t)},d=function(t){return"string"==typeof t};e.XHR_ERROR="XHR error",e.XHR_TIMEOUT="XHR request timed out",e.JSONP_ERROR="jsonp error",e.JSONP_TIMED_OUT="jsonp request timed out";var h=function(){function t(){}return t.ajax=function(i,n){i=t._fixProtocol(i);var s=t._getWindow(),a=n.context,l=n.responseTypeJson,c=n.withCookie,d=n.timeout,h=t._once(n.successHandler),p=t._once(n.failureHandler),f=!1,_=null,m={url:i,cors:r.userAgent.ie&&r.userAgent.ie<10||c,withCredentials:c,timeout:d||3e3};if(a&&h&&p){var y=(new Date).getTime(),v=new o.default(m,function(t,r,o){if(!f)if(n.collectPerfData&&(_={},u(v.getResponseHeader)&&(_.resp_len=v.getResponseHeader("Content-Length")||"na"),s.performance&&s.performance.getEntriesByName&&(_.resourceTiming=s.performance.getEntriesByName(location.protocol+i).pop(),_.resourceTimingEntries=s.performance.getEntries()),_.http_code=r.statusCode),r.timeDiff=(new Date).getTime()-y,t){var c=null;u(v.getResponseHeader)&&(c=v.getResponseHeader("Access-Control-Allow-Origin"));var m=s.location.protocol+"//"+s.location.host;if(c&&c!==m)p.call(a,new Error(e.XHR_ERROR),"default","cors");else{var g=r.timeDiff>=d?e.XHR_TIMEOUT:e.XHR_ERROR;p.call(a,new Error(g),r.rawRequest.previousState,r.statusCode,r.timeDiff,_)}}else r.statusCode<200||r.statusCode>=300?p.call(a,new Error(e.XHR_ERROR+": statusCode = "+r.statusCode),r.rawRequest.previousState,r.statusCode,r.timeDiff,_):h.call(a,l?JSON.parse(o):o,!1,_)});v.previousState=v.readyState;var g=v.onreadystatechange;v.onreadystatechange=function(){4===v.readyState?g.call(v):v.previousState=v.readyState}}return function(){f=!0}},t.preconnect=function(t,e){if(document&&!document.head.querySelector("#"+t)){var i=document.createElement("link");i.setAttribute("rel","preconnect"),i.setAttribute("id",t),i.setAttribute("href",e);var n=document.getElementsByTagName("head")[0];n&&n.appendChild(i)}},t.querystring=function(e,i,n,r){return void 0===i&&(i="&"),void 0===n&&(n="="),void 0===r&&(r=encodeURIComponent),c(e)&&(e=[e]),e.map(function(e){return Object.keys(e).map(function(o){var a=r(t._stringifyPrimitive(o));return null===e[o]?a:(a+=n,s(e[o])?e[o].map(function(e){return a+r(t._stringifyPrimitive(e))}).join(i):a+r(t._stringifyPrimitive(e[o])))}).join(i)}).join(i)},t._stringifyPrimitive=function(t){return d(t)?t:a(t)?t.toString():l(t)&&isFinite(t)?t.toString():""},t._fixProtocol=function(t){return r.userAgent.samsung&&0===t.indexOf("//")?"https:"+t:t},t._once=function(t){var e=this,i=function(){return i.called?i.value:(i.called=!0,i.value=t.apply(e,arguments),i.value)};return i.called=!1,i},t._getWindow=function(){return window},t}();e.default=h},sjSS:function(t,e,i){"use strict";t.exports=o;var n=i("JQCY"),r=i("iSaY");function o(t,e){this._data=null,this._demuxConfig=t||{},this._dataListener=e,this._pcrPID=0,this._programMapPID=NaN,this._streamIds={},this._pesStreams={},this._packetsBeforePMT=[],this._state="initial",this._position="start",this._endOfSegment=!1}o.prototype.destroy=function(){this._data=null,this._packetsBeforePMT=[],this._state="initial",this._position="start";var t=this._pesStreams;for(var e in t)t.hasOwnProperty(e)&&t[e].destroy();this._pesStreams={}},o.prototype.append=function(t){if(t){var e=t.length;if(e){var i=null,n=0;this._data&&(n=(i=this._data).length);var o=n+e;return this._data=new Uint8Array(o),i&&this._data.set(i),this._data.set(t,n),-2===this._parse()?{error:r.ERR_SEGMENT_PARSE}:void 0}}},o.prototype.endOfSegment=function(){this._endOfSegment=!0,this._data&&this._data.length<188&&this._handleEndOfSegment()},o.prototype._parse=function(){if(!this._data)return-1;for(var t=0;this._data.length;){var e=this._parsePacket(this._data.subarray(0,188));if(0===e)t++,this._data=this._data.subarray(188),t>=500&&(this._sendDemuxedData(),t=0);else{if(-2!==e)break;var i=this._probeSyncByte(this._data);if(!(i>=0))break;this._data=this._data.subarray(i)}}return this._endOfSegment&&0===this._data.length?this._handleEndOfSegment():this._sendDemuxedData(),0},o.prototype._parsePacket=function(t){if(!t||t.length<1)return-1;var e=0,i={};if(71!==t[e++])return-2;if(!t||t.length<188)return-1;var n=t[e++];(i.startIndicator=(64&n)>>6,i.pid=((31&n)<<8)+t[e++],n=t[e++],i.adaptationFieldExists=(32&n)>>5,i.payloadExists=(16&n)>>4,i.adaptationFieldLength=0,i.adaptationFieldExists)&&(i.adaptationFieldLength=t[e++],16&t[e++]&&i.pid===this._pcrPID&&i.adaptationFieldLength>=7&&this._readPCR(t.subarray(e,e+6)),e+=i.adaptationFieldLength-1);return!i.payloadExists||i.adaptationFieldLength>=183?0:(this._parsePayload(t.subarray(e),i),0)},o.prototype._readPCR=function(t){if(t&&!(t.length<6)){var e=0,i=t[e++],n=(128&i)>>>7;i=((i&=127)<<24)+(t[e++]<<16)+(t[e++]<<8)+t[e++];var r=t[e++];e++;var o=2*i+((128&r)>>>7),s=n?-1*Math.pow(2,32)+o:o;this._firstPcr||(this._firstPcr=s)}},o.prototype._parsePayload=function(t,e){var i,n,r;if(t&&e&&!isNaN(e.pid)&&(this._streamIds.aac&&(i=this._streamIds.aac),this._streamIds.avc&&(n=this._streamIds.avc),this._streamIds.id3&&(r=this._streamIds.id3),!(e.pid>=1&&e.pid<=15||8191===e.pid)))switch(e.pid){case 0:this._parsePAT(t,e);break;case this._programMapPID:this._parsePMT(t,e);break;case i:this._parseMediaData("audio",i,t,e);break;case n:this._parseMediaData("video",n,t,e);break;case r:this._parseMediaData("id3",r,t,e),this._sendTimedMetadata();break;default:this._parseUnknownPacket(t,e)}},o.prototype._parsePAT=function(t,e){if(t){var i=0;if(e.startIndicator){var n=t[i++];i+=n}t[i++];i+=4,i+=3,(t[i++]<<8)+t[i++]>0&&(this._programMapPID=((31&t[i++])<<8)+t[i++]),this._state="patParsed"}},o.prototype._parsePMT=function(t,e){if(t){var i=0;if(e&&e.startIndicator){var n=t[i++];i+=n}t[i++];var r=((15&t[i++])<<8)+t[i++],o=i;i+=2,i+=3,this._pcrPID=((31&t[i++])<<8)+t[i++];var s=((15&t[i++])<<8)+t[i++];i+=s;for(var a=null,u=null,l=0;i-o<r-4;)switch(a=t[i++],u=((31&t[i++])<<8)+t[i++],l=((15&t[i++])<<8)+t[i++],i+=l,a){case 3:case 4:this._streamIds.mp3=u;break;case 15:this._streamIds.aac=u;break;case 27:this._streamIds.avc=u;break;case 21:this._streamIds.id3=u}this._state="pmtParsed"}},o.prototype._parseMediaData=function(t,e,i,r){if(i){var o=this._pesStreams,s=o[e];r.startIndicator?(s||(o[e]=new n(t,e,this._demuxConfig),s=o[e]),s.addPacket(i)):s&&s.append(i)}},o.prototype._parseUnknownPacket=function(t,e){if(t&&!(t.length<4)&&e.startIndicator){var i=0,n=(t[0]<<16)+(t[1]<<8)+t[2],r=t[i++];i+=r;var o=t.length>i?t[i]:NaN;if(1===n){var s=t[3]>>>4;14===s?(this._streamIds.avc=e.pid,this._parseMediaData("video",this._streamIds.avc,t,e)):12!==s&&13!==s||(this._streamIds.aac=e.pid,this._parseMediaData("audio",this._streamIds.aac,t,e))}else 2===o&&this._parsePMT(t,e)}},o.prototype._isReady=function(){var t=!0;for(var e in this._streamIds)if("id3"!==e&&this._streamIds.hasOwnProperty(e)){var i=this._streamIds[e];this._pesStreams[i]&&(t=t&&this._pesStreams[i].isReady())}return t},o.prototype._sendDemuxedData=function(){if(this._isReady()){var t={},e=!1,i=!1,n=this._pesStreams,r=Number.POSITIVE_INFINITY;for(var o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s){var a={frames:s.getFrames({keyFrameBoundary:"end"!==this._position}),config:s.getConfig(),streamId:s.streamId};"audio"===s.streamType&&o===this._streamIds.aac.toString()?(t.audio=a,e=t.audio.frames&&t.audio.frames.length):"video"===s.streamType&&o===this._streamIds.avc.toString()&&(t.video=a,i=t.video.frames&&t.video.frames.length)}}e&&(r=Math.min(r,t.audio.frames[0].dts)),i&&(r=Math.min(r,t.video.frames[0].dts)),r!==Number.POSITIVE_INFINITY&&(t.pcr=r),("end"===this._position||e||i)&&(this._dataListener&&this._dataListener({pos:this._position,avData:t}),"start"===this._position&&(this._position="middle"))}},o.prototype._sendTimedMetadata=function(){var t=this,e=t._pesStreams,i=null;Object.keys(e).forEach(function(n){var r=e[n];r&&"id3"===r.streamType&&n===t._streamIds.id3.toString()&&(i=r.getTimedMetadata())}),i&&t._dataListener&&t._dataListener({pos:"timedMetadata",timedMetadata:i})},o.prototype._probeSyncByte=function(t){if(!t)return-1;for(var e=0;e<t.length;e++)if(71===t[e])return e;return-1},o.prototype._handleEndOfSegment=function(){this._position="end";var t=this._pesStreams;for(var e in t)t.hasOwnProperty(e)&&(t[e].endOfSegment(),"id3"===t[e].streamType&&this._sendTimedMetadata());this._sendDemuxedData()}},skmB:function(t,e,i){"use strict";var n=i("GYWy"),r=i("ds4h");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=g,e.resolve=function(t,e){return g(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?g(t,!1,!0).resolveObject(e):e},e.format=function(t){r.isString(t)&&(t=g(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),d=["%","/","?",";","#"].concat(c),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=i("s4NR");function g(t,e,i){if(t&&r.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,i),n}o.prototype.parse=function(t,e,i){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",l=t.split(a);l[0]=l[0].replace(/\\/g,"/");var g=t=l.join(a);if(g=g.trim(),!i&&1===t.split("#").length){var E=u.exec(g);if(E)return this.path=g,this.href=g,this.pathname=E[1],E[2]?(this.search=E[2],this.query=e?v.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var b=s.exec(g);if(b){var S=(b=b[0]).toLowerCase();this.protocol=S,g=g.substr(b.length)}if(i||b||g.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===g.substr(0,2);!A||b&&m[b]||(g=g.substr(2),this.slashes=!0)}if(!m[b]&&(A||b&&!y[b])){for(var T,I,C=-1,R=0;R<h.length;R++){-1!==(L=g.indexOf(h[R]))&&(-1===C||L<C)&&(C=L)}-1!==(I=-1===C?g.lastIndexOf("@"):g.lastIndexOf("@",C))&&(T=g.slice(0,I),g=g.slice(I+1),this.auth=decodeURIComponent(T)),C=-1;for(R=0;R<d.length;R++){var L;-1!==(L=g.indexOf(d[R]))&&(-1===C||L<C)&&(C=L)}-1===C&&(C=g.length),this.host=g.slice(0,C),g=g.slice(C),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var O=this.hostname.split(/\./),D=(R=0,O.length);R<D;R++){var M=O[R];if(M&&!M.match(p)){for(var w="",N=0,k=M.length;N<k;N++)M.charCodeAt(N)>127?w+="x":w+=M[N];if(!w.match(p)){var B=O.slice(0,R),x=O.slice(R+1),U=M.match(f);U&&(B.push(U[1]),x.unshift(U[2])),x.length&&(g="/"+x.join(".")+g),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var V=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+V,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!_[S])for(R=0,D=c.length;R<D;R++){var F=c[R];if(-1!==g.indexOf(F)){var H=encodeURIComponent(F);H===F&&(H=escape(F)),g=g.split(F).join(H)}}var Y=g.indexOf("#");-1!==Y&&(this.hash=g.substr(Y),g=g.slice(0,Y));var G=g.indexOf("?");if(-1!==G?(this.search=g.substr(G),this.query=g.substr(G+1),e&&(this.query=v.parse(this.query)),g=g.slice(0,G)):e&&(this.search="",this.query={}),g&&(this.pathname=g),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){V=this.pathname||"";var K=this.search||"";this.path=V+K}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",i=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(s=v.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||y[e])&&!1!==o?(o="//"+(o||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+o+(i=i.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(t){return this.resolveObject(g(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(r.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var i=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];i[a]=this[a]}if(i.hash=t.hash,""===t.href)return i.href=i.format(),i;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(i[c]=t[c])}return y[i.protocol]&&i.hostname&&!i.pathname&&(i.path=i.pathname="/"),i.href=i.format(),i}if(t.protocol&&t.protocol!==i.protocol){if(!y[t.protocol]){for(var d=Object.keys(t),h=0;h<d.length;h++){var p=d[h];i[p]=t[p]}return i.href=i.format(),i}if(i.protocol=t.protocol,t.host||m[t.protocol])i.pathname=t.pathname;else{for(var f=(t.pathname||"").split("/");f.length&&!(t.host=f.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),i.pathname=f.join("/")}if(i.search=t.search,i.query=t.query,i.host=t.host||"",i.auth=t.auth,i.hostname=t.hostname||t.host,i.port=t.port,i.pathname||i.search){var _=i.pathname||"",v=i.search||"";i.path=_+v}return i.slashes=i.slashes||t.slashes,i.href=i.format(),i}var g=i.pathname&&"/"===i.pathname.charAt(0),E=t.host||t.pathname&&"/"===t.pathname.charAt(0),b=E||g||i.host&&t.pathname,S=b,A=i.pathname&&i.pathname.split("/")||[],T=(f=t.pathname&&t.pathname.split("/")||[],i.protocol&&!y[i.protocol]);if(T&&(i.hostname="",i.port=null,i.host&&(""===A[0]?A[0]=i.host:A.unshift(i.host)),i.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===f[0]?f[0]=t.host:f.unshift(t.host)),t.host=null),b=b&&(""===f[0]||""===A[0])),E)i.host=t.host||""===t.host?t.host:i.host,i.hostname=t.hostname||""===t.hostname?t.hostname:i.hostname,i.search=t.search,i.query=t.query,A=f;else if(f.length)A||(A=[]),A.pop(),A=A.concat(f),i.search=t.search,i.query=t.query;else if(!r.isNullOrUndefined(t.search)){if(T)i.hostname=i.host=A.shift(),(P=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=P.shift(),i.host=i.hostname=P.shift());return i.search=t.search,i.query=t.query,r.isNull(i.pathname)&&r.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i}if(!A.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var I=A.slice(-1)[0],C=(i.host||t.host||A.length>1)&&("."===I||".."===I)||""===I,R=0,L=A.length;L>=0;L--)"."===(I=A[L])?A.splice(L,1):".."===I?(A.splice(L,1),R++):R&&(A.splice(L,1),R--);if(!b&&!S)for(;R--;R)A.unshift("..");!b||""===A[0]||A[0]&&"/"===A[0].charAt(0)||A.unshift(""),C&&"/"!==A.join("/").substr(-1)&&A.push("");var P,O=""===A[0]||A[0]&&"/"===A[0].charAt(0);T&&(i.hostname=i.host=O?"":A.length?A.shift():"",(P=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=P.shift(),i.host=i.hostname=P.shift()));return(b=b||i.host&&A.length)&&!O&&A.unshift(""),A.length?i.pathname=A.join("/"):(i.pathname=null,i.path=null),r.isNull(i.pathname)&&r.isNull(i.search)||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},svza:function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNTcuMDQyIiBoZWlnaHQ9IjIwLjAxNSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCByZXF1aXJlZEV4dGVuc2lvbnM9Imh0dHA6Ly9ucy5hZG9iZS5jb20vQWRvYmVJbGx1c3RyYXRvci8xMC4wLyIgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBmaWxsPSIjZmZmIiBkPSJNMTU2Ljk2IDEuODc3bC01LjI1NSAxOC4xMjZoLTcuOTkybDIuMTk4LTcuMzg0LTUuNDYgNi4zNGgtMi42bC0zLjExNC0xMS44M2gtNi4yMjdsMS4yNy01LjI1MmgxMS44OGwxLjI1NyA3LjI1IDYuMDQ3LTcuMjQ2di0uMDA1aDcuOTk1em0tMzIuNTEzIDEzLjI0Yy0uODA4IDIuNjg4LTMuNjQ1IDQuODg3LTYuMzAyIDQuODg3aC0xMS44NmMtMi42NiAwLTQuMTcyLTIuMi0zLjM2NC00Ljg4N2wxLjg5OC02LjMxMmg4LjQxNmwtMS44NjYgNS43NDdoNC42MWwyLjM3NS03LjM3NmgtMTMuMDI2Yy45NTgtMi41IDMuNzUyLTUuMjk4IDYuMjc1LTUuMjk4aDExLjg2YzIuNjU3IDAgNC4wNTYgMy4wMTggMy4yNDcgNS43MDVsLTIuMjY0IDcuNTM0em0tMjIuNTMtNS4yNzZoLTcuMzAybC44MDgtMi42MzJoLTMuOWwtMi4zNiA3LjMyMmgzLjlsLjU4Ny0xLjM2NWg3LjI2bC0xLjA4NCAzLjU4Yy0uODEgMi42ODgtMy4xNjMgMy4yNTgtNS44MiAzLjI1OGgtOS4yNGMtMi42NTYgMC00LjE3LTIuMi0zLjM2Mi00Ljg4N2wyLjI2NC03LjUzM2MuODA4LTIuNjg4IDIuOTEtNS43MDUgNi43MzUtNS43MDVoOC42NWMyLjg5MyAwIDQuMzQ4IDMuMyAzLjU2MiA1Ljg1bC0uNjk4IDIuMTEzek03MC45ODUgMjAuMDA3bDEuNjUtNi43MjJoNi40NGwtMS42NTIgNi43MjJoLTYuNDM4em0tNy4zOS02LjcyaDYuNDM4bC0xLjY1IDYuNzJoLS40OTV2LjAwM0g1NS43NjZ2LS4wMDdoLTUuNzJsNC43OC0xNi4wNThoLTEuOTEyTDU0LjA3LjA2NWgxLjkxbC4wMDQtLjAxaDkuMjM4TDYwLjM5NiAxNi4yN2gyLjQ2N2wuNzMyLTIuOTg0ek01MC4yNTggNi45MTJINDMuN2wuNzI0LTIuOTdoLTE0LjY1TDMwLjkzLjA2N2gyMC45MzZsLS4wMTQuMDZoLjA2TDUwLjI2IDYuOTE0ek0xNy41MTggMjBoLTYuNzgyTDguOSAzLjk0NUgyLjkxNUw0LjA3LjA2NWg0LjM4NnYtLjAxaDguNzdsMS43MjggMTUuMTIgNC41LTE1LjEyaDUuNDhsLTUuOTQgMTkuOTQ2aC01LjQ3N3pNNy41NzggNS40NWwuNDQgNC42NzMtMy4wMzcgOS44OEguMDUzTDQuNDk2IDUuNDVINy41OHptMzIuMzQ2LS4yNzhsLTEuMjE3IDQuMDMyaDcuMzk3bC0uODczIDMuNzRoLTcuNjVMMzUuNDUgMjBoLTguNjNsNC40NzYtMTQuODI4aDguNjN6bTkzLjI2NCAzLjUzbDEuNDU3IDYuNDctMS40MyA0LjgzMmgtNi43NjRMMTI5LjgxIDguN2gzLjM4eiIvPjwvc3dpdGNoPjwvc3ZnPg=="},szUk:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("8PPl"),o=i("LKsC"),s=i("oIMU"),a=i("ma23"),u=i("xqNZ"),l=i("+Ojf"),c=i("ECHB"),d=i("P8vF"),h=function(){function t(t,e,i,n){this._eventBus=t,this._view=e,this._model=i,this._pluginManager=n,this._eventBus.addEventListener(s.PLAYER_DIMENSION_CHANGE,this._onDimensionChange,this),this._eventBus.addEventListener(s.FULLSCREEN_CHANGE,this._onFullscreenChange,this),this._playlistController=this._view.getPlaylistController(),this._onPlaylistItemTapBound=this._onPlaylistItemTap.bind(this)}return t.prototype.create=function(t){if(-1===[r.PLAYLIST_POS.BOTTOM,r.PLAYLIST_POS.RIGHT,r.PLAYLIST_POS.HIDDEN].indexOf(t))return null;var e="vp-playlist-mode-"+t;this._scrollLeft=0,this._taps=[],this._theme=this._getTheme(t),this._mode=t;var i=l.default.render(d,{strings:u.default,modeClass:e,isHiddenMode:t===r.PLAYLIST_POS.HIDDEN||!1,theme:this._theme,streamModeClass:this._model.playlistUIConfig.inStream?"vp-playlist-in-stream":""});return this._model.uiState&&this._model.uiState.isCSSLoaded&&l.default.classList(i).remove("vp-vis-hidden"),this._updatePlaylistNodes(i),this._renderPlaylist(),this._bindEvents(!0),i},t.prototype.syncView=function(){this._renderPlaylist()},t.prototype.upNextBtnTapHandler=function(){if(!this._model.playlist.isEndOfPlaylist()){var t=this._model.playlist.position+1,e=this._model.playlist.getMediaItemAt(t).id;this._eventBus.publish(o.PlaylistViewEvents.UI_INTERACT,{srcElement:"ctrl-next-click"}),this._eventBus.publish(o.PlaylistViewEvents.UI_INTERACT,{srcElement:"ui_pl_nxt_clk"}),this._eventBus.publish(s.RELATED_ITEM_CLICK,e,t,!1);var i=this._mode===r.PLAYLIST_POS.RIGHT;this._setCurrentVideoItemUI(this._mode,i)}},t.prototype.syncPgBtns=function(){this._playlistStrip.scrollWidth<=this._playlistStrip.scrollLeft+this._playlistStrip.offsetWidth?this._pgNextDisabled=!0:this._pgNextDisabled=!1,this._playlistStrip.scrollLeft<=0?this._pgPrevDisabled=!0:this._pgPrevDisabled=!1,this._pgPrevDisabled?l.default.classList(this._pgPrev).add("disabled"):l.default.classList(this._pgPrev).remove("disabled"),this._pgNextDisabled?l.default.classList(this._pgNext).add("disabled"):l.default.classList(this._pgNext).remove("disabled")},t.prototype.destroy=function(){var t=this;(this._destroyPageTaps(),this._taps&&this._taps.forEach(function(t){t.destroy()}),this._taps=[],this._playlist)&&this._getItemNodes().forEach(function(e){e.removeEventListener("tap",t._onPlaylistItemTapBound)})},t.prototype.setPlaylistViewSize=function(){var t=Math.floor(this._playlistStrip.offsetWidth/r.PLAYLIST_ITEM_WIDTH);this._pgNextDisabled=t>=this._model.playlist.getItems().length,this.syncPgBtns()},t.prototype.onMediaItemCurrent=function(){var t;t=this._view.getFullscreen()?r.PLAYLIST_POS.HIDDEN:this._mode,this._setCurrentVideoItemUI(t,!0)},t.prototype._onPlaylistItemTap=function(t){l.default.classList(this._node).remove("open");var e=this._getItemNodes().indexOf(t.target);this._eventBus.publish(s.RELATED_ITEM_CLICK,t.target.getAttribute("data-id"),e,!1),this._eventBus.publish(o.PlaylistViewEvents.UI_INTERACT,{srcElement:"ui_pl_thmb_clk"}),this.onMediaItemCurrent()},t.prototype._renderPlaylist=function(){var t=this._model.playlist.getItems();t&&0!==t.length&&(this._taps=[],this._renderPlaylistItems(t),this._playlistStrip.scrollLeft=this._scrollLeft,this.syncPgBtns())},t.prototype._bindEvents=function(t){var e=this;if(this._pgPrevTap=new c.default(this._pgPrev),this._pgPrev.addEventListener("tap",function(){e._onPageBtnTap(!1)}),this._pgNextTap=new c.default(this._pgNext),this._pgNext.addEventListener("tap",function(){e._onPageBtnTap(!0)}),this._mode===r.PLAYLIST_POS.RIGHT&&!n.userAgent.mobile){var i=function(t){var i=e._playlist.scrollTop,n=e._playlist.scrollHeight,r=e._playlist.offsetHeight,o="DOMMouseScroll"===t.type?-40*t.detail:t.wheelDelta,s=o>0,a=function(){return t.stopPropagation(),t.preventDefault(),t.returnValue=!1,!1};return!s&&-o>n-r-i?(e._playlist.scrollTop=n,a()):!(s&&o>i)||(e._playlist.scrollTop=0,a())};this._playlistStrip.addEventListener("mousewheel",i),this._playlistStrip.addEventListener("DOMMouseScroll",i)}},t.prototype._renderPlaylistItems=function(t){var e=this,i=t&&t.filter(function(t){var i='.vp-playlist-item[data-id="'+t.id+'"]';return!e._playlist.querySelector(i)})||[],n=this._pluginManager.getPlugin(a.PluginType.PLAYLIST,this._model.playlistUIConfig.mimetype);if(n){var r=n.create(this._mode,i,this._playlistStrip,u.default),o=document.createDocumentFragment();r.forEach(function(t,i){e._taps.push(new c.default(t,i)),t.addEventListener("tap",e._onPlaylistItemTapBound),o.appendChild(t)}),this._playlist.appendChild(o),this.setPlaylistViewSize(),l.default.classList(this._playlistContainer).remove("vp-pl-loading"),this._view.getFullscreen()||this._setCurrentVideoItemUI(this._mode,!1)}},t.prototype._onPageBtnTap=function(t){var e=this._view.getFullscreen();if((this._mode!==r.PLAYLIST_POS.RIGHT||e)&&!(this._pgNextDisabled&&t||this._pgPrevDisabled&&!t)){this._eventBus.publish(s.UP_NEXT_PG_CLICK);var i="next-";i=t?i+"right":i+"left",this._eventBus.publish(o.PlaylistViewEvents.UI_INTERACT,{srcElement:i});var n=r.PLAYLIST_ITEM_WIDTH-4+r.PLAYLIST_ITEM_MARGIN_RIGHT,a=Math.floor(this._playlistStrip.offsetWidth/n)*n;t?this._playlistStrip.scrollLeft=Math.min(this._playlistStrip.scrollLeft+a,this._playlistStrip.scrollWidth-this._playlistStrip.offsetWidth):t||(this._playlistStrip.scrollLeft=Math.max(this._playlistStrip.scrollLeft-a,0)),this._scrollLeft=this._playlistStrip.scrollLeft,this.syncPgBtns()}},t.prototype._setCurrentVideoItemUI=function(t,e){var i=this._model.playlist.getCurrentItem(),n=i&&i.id,o=this._playlist.querySelector(".vp-currently-playing"),s='.vp-playlist-item[data-id="'+n+'"]',a=this._playlist.querySelector(s);if(o&&(l.default.classList(o).remove("vp-currently-playing"),t!==r.PLAYLIST_POS.RIGHT)){var u=o.querySelector(".vp-pl-title"),c=o.querySelector(".vp-pl-dur"),d=o.querySelector(".vp-playlist-item-gradient"),h=o.querySelector(".vp-now-playing");l.default.classList(u).remove("vp-show"),l.default.classList(c).remove("vp-hide"),l.default.classList(d).remove("vp-playlist-item-gradient-duration"),l.default.classList(h).remove("vp-show")}if(a){var p=a.offsetLeft,f=a.offsetWidth,_='[data-label-for-id="'+n+'"]',m=this._playlist.querySelector(_);if(l.default.classList(a).add("vp-currently-playing"),t!==r.PLAYLIST_POS.RIGHT){var y=a.querySelector(".vp-pl-dur"),v=a.querySelector(".vp-playlist-item-gradient"),g=a.querySelector(".vp-now-playing");l.default.classList(y).add("vp-hide"),l.default.classList(v).add("vp-playlist-item-gradient-duration"),l.default.classList(g).add("vp-show");var E=f+r.PLAYLIST_ITEM_MARGIN_RIGHT;p=t===r.PLAYLIST_POS.HIDDEN?p+E:p,this._playlist.parentElement.scrollLeft=p}else if(t===r.PLAYLIST_POS.RIGHT&&e){var b=a.offsetTop;this._playlist.scrollTop=m?m.offsetTop:b-5}this.syncPgBtns()}},t.prototype._getTheme=function(t){var e,i=this._model.playlistUIConfig&&this._model.playlistUIConfig.theme||"dark";switch(t){case r.PLAYLIST_POS.BOTTOM:case r.PLAYLIST_POS.RIGHT:e=i;break;case r.PLAYLIST_POS.HIDDEN:e="dark";break;default:e="dark"}return e},t.prototype._updatePlaylistNodes=function(t){this._node=t,this._playlist=t.querySelector(".vp-playlist-strip-list"),this._playlistStrip=t.querySelector(".vp-playlist-strip"),this._playlistContainer=t,this._pgPrev=t.querySelector(".vp-playlist-pg-btn-prev"),this._pgNext=t.querySelector(".vp-playlist-pg-btn-next")},t.prototype._onFullscreenChange=function(){var t,e,i,n,o,s,a=this,u=this._view.getFullscreen(),d=this._view.getContentNode();if(this._onDimensionChange(),this._playlistController.isPlaylistShown()&&this.setPlaylistViewSize(),this._mode===r.PLAYLIST_POS.BOTTOM||this._mode===r.PLAYLIST_POS.RIGHT){if(o=d.querySelector(".vp-upnext-playlist"),t=d.querySelector(".vp-playlist-mode-hidden"),e=d.querySelector(".vp-playlist-mode-"+this._mode),i=t.querySelector(".vp-playlist-strip-list"),n=e.querySelector(".vp-playlist-strip-list"),u)i.innerHTML=n.innerHTML,n.innerHTML="",l.default.classList(o).remove("hide"),l.default.classList(t).remove("vp-pl-loading"),this._updatePlaylistNodes(t),this._playlistController&&this._playlistController.attachUpNextMouseEvents(),setTimeout(function(){a._setCurrentVideoItemUI(r.PLAYLIST_POS.HIDDEN,!0)},500);else{n.innerHTML=i.innerHTML,i.innerHTML="",s=this._mode===r.PLAYLIST_POS.RIGHT,l.default.classList(o).add("hide"),this._updatePlaylistNodes(e),this._playlistController&&this._playlistController.detachUpNextMouseEvents();var h=this._playlist.querySelector(".vp-currently-playing");h&&l.default.classList(h).remove("vp-hide"),setTimeout(function(){a._setCurrentVideoItemUI(a._mode,s)},500)}this._destroyPageTaps(),this._taps&&this._taps.forEach(function(t){t.destroy()}),this._taps=[],this._bindEvents(!1),this._getItemNodes().forEach(function(t){a._taps.push(new c.default(t)),t.addEventListener("tap",a._onPlaylistItemTapBound)})}},t.prototype._onDimensionChange=function(){var t=this;this._playlistController.isPlaylistShown()&&(this._scrollLeft=0,setTimeout(function(){t.setPlaylistViewSize()},1e3))},t.prototype._destroyPageTaps=function(){this._pgNextTap&&this._pgNext&&(this._pgNextTap.destroy(),this._pgNext.removeEventListener("tap",this._onPageBtnTap)),this._pgPrevTap&&this._pgPrev&&(this._pgPrevTap.destroy(),this._pgPrev.removeEventListener("tap",this._onPageBtnTap))},t.prototype._getItemNodes=function(){return Array.prototype.slice.call(this._playlist.querySelectorAll(".vp-playlist-item"),0)},t}();e.default=h},t7Hg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("7pT8"),r=i("t8Yn"),o=function(){function t(t){this._player=t,this._player&&(this._renderKey=this._player.addEventListener(r.Events.PLAYER_RENDERED,this._sendPixieBeacon,this))}return t.prototype.destroy=function(){this._player&&this._renderKey&&this._player.removeEventListener(r.Events.PLAYER_RENDERED,this._renderKey),this._player=null},t.prototype._sendPixieBeacon=function(){n.default.sendBeacon()},t}();e.default=o},t8Yn:function(t,e,i){t.exports=i("gvSP")},t8qO:function(t,e,i){"use strict";t.exports=o;var n=i("y5bh").HLSEvent,r=i("lPOR");function o(){this._model=this.__controller.model,this._buffering=!1,this._error=!1,this._timeAtBufferEmpty=NaN,this._waitingEvtObj={},this._paused=!0,this._lastTime=-1,this.MIN_BUFFER_TO_PLAY=1,this.MIN_TIME_TO_BUFFER_CHECK=150,this.BUFFER_REPORT_THRESHOLD=20,this.MIN_BUFFER_TIME_UPPER_BOUND=5,this.WEIGHT=.5,this._bufferInit=!0,this._seeking=!1,this._resetMeasurements()}o.prototype.onPlayRequested=function(){this._setBufferEmpty()},o.prototype.destroy=function(){},o.prototype.checkBuffering=function(t){var e=this._model.bufferLength,i=this._model.currentTime,n=this._model.duration;if(!(isFinite(n)&&i+.05>n)){var r=this._getBufferCheckDelta();!t&&r<this.MIN_TIME_TO_BUFFER_CHECK||(!(e<=.02||this._lastKnownVideoTime===i&&e<this.MIN_BUFFER_TO_PLAY)||this._paused||this._model.preloading||this._buffering?!isNaN(this._timeAtBufferEmpty)&&i>this._timeAtBufferEmpty?this._setBufferFull():!this._paused&&this._lastKnownVideoTime===i&&this._model.getTotalBufferLength()>this.MIN_BUFFER_TO_PLAY&&this._checkBufferGap():this._setBufferEmpty(),this._lastKnownVideoTime=i,this._lastBufferCheckTime=Date.now())}},o.prototype.onPlaying=function(){this._paused=!1},o.prototype.onPause=function(){this._paused=!0,this._buffering&&(this._waitingEvtObj.bufferInit=!0,this._setBufferFull())},o.prototype.onSeeking=function(){this._seeking=!0},o.prototype.onSeeked=function(){this._seeking=!1},o.prototype.onTimeUpdate=function(){this._buffering&&this.checkBuffering(!0)},o.prototype.onVideoSync=function(t){this._lastKnownVideoTime=t},o.prototype.onError=function(){this._buffering&&this._setBufferFull()},o.prototype.onComplete=function(){this._buffering&&this._setBufferFull(),this._resetMeasurements()},o.prototype._checkBufferGap=function(){if(!(this._model.bufferedRanges.length<2)){var t=this._model.TIMESTAMP_COMPARE_EPSILON,e=this._model.currentTime;this._model.userAgent&&this._model.userAgent.chrome&&(e-=3);for(var i=this._model.bufferedRanges.ranges,n=0;n<i.length-1;n++){var o=i[n],s=i[n+1];s.start-o.end>this._model.config.skipGapLimit||e>o.end-t&&e<s.start&&this.__controller.sendMessage(r.MessageIds.SKIP_GAP,[s.start],["seekPosition"])}}},o.prototype._setBufferEmpty=function(){if(!this._buffering){this._buffering=!0;var t=this.getMinimumBufferTime();this._setBufferingStartTime(),this._timeAtBufferEmpty=this._model.currentTime,this._seeking&&(this._bufferInit=!0),this._waitingEvtObj={value:this._buffering,bufferInit:this._bufferInit,minBufferTime:t},this.__controller.sendEvent(n.WAITING,this._waitingEvtObj)}},o.prototype._setBufferFull=function(){this._buffering&&(this._buffering=!1,this._timeAtBufferEmpty=NaN,this._waitingEvtObj={value:!1,waitTime:this._getRebufferingTime(),bufferInit:this._bufferInit,minBufferTime:.1},this.__controller.sendEvent(n.WAITING,this._waitingEvtObj),this._waitingEvtObj={},this._bufferInit=!1)},o.prototype.getMinimumBufferTime=function(){var t=this.__controller.services.bandwidthEstimator.instantaneousBandwidth,e=this._model.getCurrentLoadingStream(),i=e?e.bitrate/1e6:0,n=this._model.config.minBufferTime;return n=this._model.live?n.live:n.vod,this._model.config.variableMinBuffer&&i&&!isNaN(t)?this._calculateMinimumBufferTime(t/i,n):n},o.prototype._calculateMinimumBufferTime=function(t,e){var i=this.MIN_BUFFER_TIME_UPPER_BOUND;if(e>=i)return e;var n=Math.max(e,0);if(t>=1)return n;var r=t*i;return 1*Math.max(n,i-r*this.WEIGHT).toFixed(1)},o.prototype._getBufferCheckDelta=function(){var t=Date.now();return this._lastBufferCheckTime=this._lastBufferCheckTime||t,t-this._lastBufferCheckTime},o.prototype._setBufferingStartTime=function(){var t=this._getBufferCheckDelta(),e=this._getVideoProgressDelta();this._bufferingStartTime=Date.now()-Math.max(t-e,0)},o.prototype._getRebufferingTime=function(){var t=this._getVideoProgressDelta(),e=Math.max(Date.now()-this._bufferingStartTime-t,0);return this._waitingEvtObj.bufferInit?0:e<this.BUFFER_REPORT_THRESHOLD?0:e},o.prototype._getVideoProgressDelta=function(){var t=0;return this._lastKnownVideoTime&&(t=1e3*(this._model.currentTime-this._lastKnownVideoTime).toFixed(3)),t},o.prototype._resetMeasurements=function(){this._lastBufferCheckTime=null,this._lastKnownVideoTime=null},o.prototype.isBuffering=function(){return this._buffering}},tGho:function(t,e,i){"use strict";var n=i("2fkz").CmdNames,r=i("YLu2");t.exports.create=function(t,e,i){for(var o in n){if(n.hasOwnProperty(o))if(n[o]===t)return new(0,r[t+"Command"])(e,i)}return null}},tPWK:function(t,e,i){"use strict";t.exports=l;var n=i("x7P6"),r=n.MetadataTypes,o=n.StreamingMode,s=i("V66C").StreamTypes,a="#EXT-X-MEDIA:TYPE=SUBTITLES,",u="#EXT-X-MEDIA-SEQUENCE:";function l(){this._cuepointList=[],this.ERRORS={INVALID_M3U8:1,EMPTY_DATA:2,NO_SEGMENTS:3}}l.prototype.parse=function(t){if(!t)return null;return t.type===r.STRUCTURED?this.parseStructuredMetadata(t):this._parseRawMetadata(t)},l.prototype._parseRawMetadata=function(t){var e={},i=t.rawData;if(""===i||!i)return e.error=this.ERRORS.EMPTY_DATA,e;var n=i.split("\n");return 0!==n[0].indexOf("#EXTM3U")?(e.error=this.ERRORS.INVALID_M3U8,e):i.indexOf("#EXTINF:")>0?this._parseMediaPlaylist(n,t):i.indexOf("#EXT-X-STREAM-INF:")>0?this._parseMasterPlaylist(n,t):(e.error=this.ERRORS.INVALID_M3U8,e)},l.prototype.parseStructuredMetadata=function(t){var e=this,i={};return i.streamInfoList=e.parseStreamInfo(t.streams),t.hasStreamMetadata&&i.streamInfoList.forEach(function(t){t.segmentInfoList=e.parseSegmentInfo(t.hlsInfo,t.initSegment,t.index),t.duration=0,t.segmentInfoList.forEach(function(e){t.duration+=e.duration}),t.hasEndList=!0,t.targetDuration=t.hlsInfo.segment_duration}),t.hasAltStreamMetadata&&(i.renditionGroups={},t.altStreams.forEach(function(t){var n,r=t.manifestContent;r&&0===r.indexOf(a)?((n=e._extractSubtitles(r,t.host)).type=s.SUBTITLES,n.containerFormat="vtt"):(n=e.parseStreamInfo([t])[0]).hlsInfo&&(n.segmentInfoList=e.parseSegmentInfo(n.hlsInfo,n.initSegment)),e._buildRenditionGroupsInfo(i.renditionGroups,n)})),i},l.prototype._parseMasterPlaylist=function(t,e){for(var i=[],n={},r=e.url,o=e.cdn,s=0;s<t.length;s++){var a=null,u=t[s].trim();if(0===u.indexOf("#EXT-X-STREAM-INF:")){a=this._parseStreamAttributes(this._getAttributes(u.substr("#EXT-X-STREAM-INF:".length)));do{u=t[++s]}while(u.match(/^\s*$/));a.url=this._extractURL(u,r),a.cdn=o,i.push(a)}else 0===u.indexOf("#EXT-X-MEDIA:")&&(u=u.replace(/"/g,""),a=this._parseAlternateStreamAttributes(this._getAttributes(u.substr("#EXT-X-MEDIA:".length)),r),this._buildRenditionGroupsInfo(n,a))}return{streamInfoList:i,renditionGroups:n}},l.prototype._buildRenditionGroupsInfo=function(t,e){if(e.type&&e.groupId){var i=t[e.type];i||(i=t[e.type]={});var n=i[e.groupId];n&&n.length?n.push(e):i[e.groupId]=[e]}},l.prototype._getAttributes=function(t){for(var e={},i=t.indexOf("=");-1!==i;){var n=t.substr(0,i),r=0;'"'===(t=t.substr(i+1)).charAt(0)?(r=t.substr(1).indexOf('"'),e[n]=t.substr(1,r),t=t.substr(r+3)):(r=-1===(r=t.indexOf(","))?t.length:r,e[n]=t.substr(0,r),t=t.substr(r+1)),i=t.indexOf("=")}return e},l.prototype._parseMediaPlaylist=function(t,e){var i={},n={},r=[],a=[],l={streamInfoList:[],renditionGroups:{}};if(!t||!t.length)return l;var c=e.url,d=e.index;n.discontinuity=!1,n.sequenceNum=0,n.startTime=0,n.programDateTime=0,n.brStartOffset=-1,n.brEndOffset=-1,n.levelIndex=d,i.discontinuitySeqNum=0,i.index=d,i.targetDuration=0,i.hasEndList=!1,i.url=c,i.duration=0,i.containerFormat="",i.streamingMode=o.HLS;for(var h=0;h<t.length;h++){var p=t[h].trim();if(!p.match(/^\s*$/)){if(0===p.indexOf(u)&&(i.seqNum=parseInt(p.substr(u.length)),n.sequenceNum=i.seqNum),0===p.indexOf("#EXT-X-DISCONTINUITY-SEQUENCE:"))i.discontinuitySeqNum=parseInt(p.substr("#EXT-X-DISCONTINUITY-SEQUENCE:".length));else if(0===p.indexOf("#EXT-X-DISCONTINUITY"))n.discontinuity=!0;else if(0===p.indexOf("#EXT-X-TARGETDURATION:"))i.targetDuration=parseFloat(p.substr("#EXT-X-TARGETDURATION:".length));else if(0===p.indexOf("#EXT-X-MAP")){var f=this._parseIndexSegmentData(p,c);n.initSegment=f}else if(0===p.indexOf("#EXT-X-KEY"))n.encryptionData=this._parseSegmentKeyData(p,c);else if(0===p.indexOf("#EXT-X-PROGRAM-DATE-TIME:"))n.programDateTime=this._parseProgramDateTime(p);else if(0===p.indexOf("#EXTINF:")){var _=p.indexOf(",");n.duration=-1===_?parseFloat(p.substr("#EXTINF:".length)):parseFloat(p.substr("#EXTINF:".length,_-"#EXTINF:".length)),i.duration+=n.duration;do{p=t[++h].trim()}while(p.match(/^\s*$/));if(0===p.indexOf("#EXT-X-BYTERANGE:")){var m=p.substr("#EXT-X-BYTERANGE:".length,p.length-"#EXT-X-BYTERANGE:".length),y=m.indexOf("@");n.brStartOffset=parseInt(m.substr(y+1,m.length-y-1)),n.brEndOffset=n.brStartOffset+parseInt(m.substr(0,y))-1;do{p=t[++h].trim()}while(p.match(/^\s*$/))}n.url=this._extractURL(p,c),n.containerFormat=this._getContainerFormat(n.url),i.containerFormat=n.containerFormat,r.push(this._copySegmentInfo(n)),n.startTime+=n.duration,n.sequenceNum++,n.programDateTime=0,n.brStartOffset=-1,n.brEndOffset=-1,n.encryptionData&&(n.encryptionData.initVector=null)}else 0===p.indexOf("#EXT-X-ENDLIST")&&(i.hasEndList=!0);if(p.indexOf("#EXT-X-CUE-OUT:")>=0){var v=this._createCueOutSegment(n.sequenceNum,p);a.push(v)}}}if(r.length&&(i.segmentInfoList=r,i.initSegment=r[0].initSegment),a.length&&(i.cuepointList=a),e.streamType&&e.streamType!==s.MAIN){var g=l.renditionGroups;i.type=e.streamType,i.groupId=e.groupId,i.name=e.name,this._buildRenditionGroupsInfo(g,i)}else l.streamInfoList.push(i);return l},l.prototype._parseStreamAttributes=function(t){if(!t)return null;var e={streamingMode:o.HLS};return Object.keys(t).forEach(function(i){var n=t[i];switch(i){case"BANDWIDTH":e.bitrate=1*n;break;case"AVERAGE-BANDWIDTH":e.avgBitrate=1*n;break;case"RESOLUTION":var r=n.split("x");e.width=parseInt(r[0]),e.height=parseInt(r[1]);break;case"CODECS":e.codecs=n.split(","),e.hasAudio=-1!==n.indexOf("mp4a");break;case"AUDIO":e.audioGroupId=n.replace(/"/g,"");break;case"VIDEO":e.videoGroupId=n.replace(/"/g,"");break;case"SUBTITLES":e.subtitlesGroupId=n.replace(/"/g,"");break;case"CLOSED-CAPTIONS":e.ccGroupId=n.replace(/"/g,"")}}),e},l.prototype._getContainerFormat=function(t,e){var i=null;return t&&t.length?t.indexOf(".ts")>-1?i="ts":t.indexOf(".mp4")>-1||t.indexOf(".m4s")>-1?i="mp4":t.indexOf(".aac")>-1?i="aac":t.indexOf(".vtt")>-1&&(i="vtt"):e&&(e.indexOf("mp2t")>-1?i="ts":e.indexOf("mp4")>-1?i="mp4":e.indexOf("aac")>-1?i="aac":e.indexOf("vtt")>-1&&(i="vtt")),i},l.prototype._extractURL=function(t,e){var i=null;return"http://"===t.substr(0,7)||"https://"===t.substr(0,8)?t:(e.indexOf("?")>-1&&(e=e.substr(0,e.indexOf("?"))),"/"===t.substr(0,1)?e.substr(0,e.indexOf("//")+2)+(i=e.substr(e.indexOf("//")+2)).substr(0,i.indexOf("/"))+t:e.substr(0,e.lastIndexOf("/")+1)+t)},l.prototype._extractSubtitles=function(t,e){var i=(t=t.replace(/"/g,"")).substr(a.length).split(",");return this._parseSubtitleAttributes(i,t,e)},l.prototype._parseSubtitleAttributes=function(t,e,i){var n=this,r={};return t&&t.length&&(t.forEach(function(t){t.indexOf("GROUP-ID")>-1?r.groupId=t.split("=")[1]:t.indexOf("LANGUAGE")>-1?r.language=t.split("=")[1]:t.indexOf("NAME")>-1?r.name=t.split("=")[1]:t.indexOf("AUTOSELECT")>-1?r.autoSelect="YES"===t.split("=")[1]:t.indexOf("DEFAULT")>-1?r.default="YES"===t.split("=")[1]:t.indexOf("URI")>-1?r.url=n._extractURL(t.substr(4),i):t.indexOf("FORCED")>-1&&(r.forced="YES"===t.split("=")[1])}),r.streamingMode=o.HLS),r},l.prototype._parseAlternateStreamAttributes=function(t,e){var i=this;if(!t)return null;var n={streamingMode:o.HLS};return Object.keys(t).forEach(function(r){var o=t[r];switch(r){case"TYPE":n.type=o,n.type===s.SUBTITLES&&(n.containerFormat="vtt");break;case"GROUP-ID":n.groupId=o;break;case"LANGUAGE":n.language=o;break;case"NAME":n.name=o;break;case"AUTOSELECT":n.autoSelect="YES"===o;break;case"DEFAULT":n.default="YES"===o;break;case"FORCED":n.forced="YES"===o;break;case"URI":n.url=i._extractURL(o,e)}}),n},l.prototype._copyVTTInfo=function(t){var e={};return e.discontinuity=t.discontinuity,e.sequenceNum=t.sequenceNum,e.startTime=t.startTime,e.programDateTime=t.programDateTime,e.url=t.url,e.duration=t.duration,e},l.prototype._parseIndexSegmentData=function(t,e){if(!t)return null;for(var i={},n=t.substr("#EXT-X-MAP".length+1).split(","),r=0;r<n.length;r++){var o=n[r].split("=");if(0===o[0].indexOf("URI"))i.url=this._extractURL(n[r].substr(5,n[r].length-6),e);else if(0===o[0].indexOf("BYTERANGE")){var s=o[1].indexOf("@");i.range={start:parseInt(o[1].substr(s+1,o[1].length-s-2)),end:parseInt(o[1].substr(1,s-1)-1)}}}return i},l.prototype._parseSegmentKeyData=function(t,e){if(!t)return null;for(var i={},n=t.substr("#EXT-X-KEY".length+1).split(","),r=0;r<n.length;r++){var o=n[r].split("=");0===o[0].indexOf("URI")?i.keyUri=this._extractURL(n[r].substr(5,n[r].length-6),e):0===o[0].indexOf("METHOD")?i.method=o[1]:0===o[0].indexOf("IV")&&(i.initVector=o[1])}return i},l.prototype._parseProgramDateTime=function(t){if(!t)return 0;var e,i,n=t.substr("#EXT-X-PROGRAM-DATE-TIME:".length).split("T"),r=n[0].split("-"),o=parseInt(r[0]),s=parseInt(r[1])-1,a=parseInt(r[2]),u=n[1],l=0;if(u.indexOf("Z")>=0)e=u.substr(0,u.indexOf("Z")).split(":");else if(u.indexOf("+")>=0){var c=u.split("+");e=c[0].split(":"),i=c[1].split(":"),l=-1}else if(u.indexOf("-")>=0){var d=u.split("-");e=d[0].split(":"),i=d[1].split(":"),l=1}var h=0,p=0,f=0;(e&&(h=parseInt(e[0]),p=parseInt(e[1]),f=parseFloat(e[2])),i)&&(h=(24+h+l*parseInt(i[0]))%24,(p+=l*parseInt(i[1]))>=60?(h++,p-=60):p<0&&(h--,p+=60));return new Date(Date.UTC(o,s,a,h,p,f)).getTime()},l.prototype._copySegmentInfo=function(t){var e={};e.discontinuity=t.discontinuity,e.sequenceNum=t.sequenceNum,e.startTime=t.startTime,e.programDateTime=t.programDateTime,e.brStartOffset=t.brStartOffset,e.brEndOffset=t.brEndOffset,e.containerFormat=t.containerFormat,e.levelIndex=t.levelIndex,e.url=t.url,e.duration=t.duration;var i=t.encryptionData;i&&(e.encryptionData={keyUri:i.keyUri,method:i.method,initVector:i.initVector});var n=t.initSegment;return n&&(e.initSegment={url:n.url},n.range&&(e.initSegment.range={start:n.range.start,end:n.range.end})),e},l.prototype.parseStreamInfo=function(t){var e=this;if(!t)return null;var i=[];return t.forEach(function(t,n){var r=t.host;t.path&&""!==t.path?r+=t.path:t.url&&(r=t.url);var a={streamingMode:o.HLS,bitrate:1e3*t.bitrate,avgBitrate:t.avgBitrate?1e3*t.avgBitrate:0,channels:t.channels,height:t.height,width:t.width,url:r,index:n,hlsInfo:t.hls_info,cdn:t.cdn,rcMode:t.rcMode||"cbr",format:t.format,audioCodec:t.acodec,videoCodec:t.vcodec,autoSelect:t.auto_select,default:t.default,type:(t.type||s.MAIN).toUpperCase(),name:t.name,groupId:t.group_id,language:t.language,forced:t.forced};if(t.alt_renditions&&(a.audioGroupId=t.alt_renditions.audio_group_id,a.videoGroupId=t.alt_renditions.video_group_id,a.subtitlesGroupId=t.alt_renditions.subtitle_group_id,a.ccGroupId=t.alt_renditions.cc_group_id),a.hlsInfo&&a.hlsInfo.mp4_url){var u=a.hlsInfo;a.initSegment={url:u.mp4_url},u.init_segment_offset>=0&&u.init_segment_length>=0&&(a.initSegment.range={start:u.init_segment_offset,end:u.init_segment_offset+u.init_segment_length-1}),a.sidxOffset=u.sidx_offset,a.sidxLength=u.sidx_length,a.firstSegOffset=u.first_segment_offset,a.firstSegLength=u.first_segment_length}if(t.manifestContent&&t.manifestContent.indexOf("SUBTITLES")>-1){var l=t.manifestContent.split('SUBTITLES="')[1];a.subtitlesGroupId=l.substr(0,l.indexOf('"'))}if(a.hlsInfo){var c=a.hlsInfo.ts_url||a.hlsInfo.mp4_url;a.containerFormat=e._getContainerFormat(c,a.hlsInfo.mime_type)}i.push(a)}),i},l.prototype.parseSegmentInfo=function(t,e,i){if(!t)return null;var n=[],r={brStartOffset:-1,brEndOffset:-1,programDateTime:0,discontinuity:!1};r.sequenceNum=t.start_index,r.startTime=0,r.initSegment=e;var o="";t.ts_url&&(o=t.ts_url.indexOf("?")>=0?"&":"?");for(var s=0;s<t.segments_count;s++){if(t.ts_url)if(t.ts_url.indexOf("_xx.ts")>=0){var a="_"+r.sequenceNum.toString()+".ts";r.url=t.ts_url.replace("_xx.ts",a),r.url=r.url+o+"yh=1"}else r.url=t.ts_url+o+"num="+r.sequenceNum.toString();else r.url=t.mp4_url,0===s&&(r.brStartOffset=t.first_segment_offset,r.brEndOffset=r.brStartOffset+t.first_segment_length-1);r.levelIndex=i,r.duration=t.segment_duration,s===t.segments_count-1&&(r.duration=t.last_segment_duration),r.containerFormat=this._getContainerFormat(r.url,t.mime_type),n.push(this._copySegmentInfo(r)),r.sequenceNum++,r.startTime+=r.duration,r.brStartOffset=-1,r.brEndOffset=-1}return n},l.prototype._cueoutTimeParser=function(t){var e=t.split(":"),i=0;return e.length>1&&(i=1e3*parseFloat(e[1])),i},l.prototype._createCueOutSegment=function(t,e){var i=t;if(!(i<0)){var n=this._cueoutTimeParser(e),r={};return r.startSeqNum=i,r.startTime=NaN,r.cuepointDuration=n,r}}},tgpW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("2IYR"),o=i("R+G7"),s=i("+Ojf"),a=function(){function t(){this._elementPool=[],this._elementsInUse=[],this._unbindGestureHandler=null,this._hasTouchRestriction=o.default.hasTouchRestrictions,this._nodeIdx=1,this.fill()}return t.getPool=function(){return t._singletonPoolInstance||(t._singletonPoolInstance=new t),t._singletonPoolInstance},t.prototype.get=function(){this._elementPool.length<=2&&this.fill();var t=this._elementPool.shift();if(t)return r.default.isUnmuteRestrictionRemoved(t)||this._elementsInUse.push(t),t.setAttribute("data-vp-ridx",this._nodeIdx+""),t.__rendererIndex=this._nodeIdx,this._nodeIdx++,t},t.prototype.fill=function(){this._addNewItems(10-this._elementPool.length)},t.prototype.discard=function(t){r.default.cleanupVideoNode(t);var e=this._elementsInUse.indexOf(t);-1!==e&&this._elementsInUse.splice(e,1)},t.prototype.destroy=function(){this._unbindGestureHandler&&this._unbindGestureHandler(),this._elementPool.length=0,this._elementsInUse.length=0,this._elementsInUse=this._elementPool=[],this._unbindGestureHandler=null},t.prototype._addNewItems=function(t){for(var e=0;e<t;e++){var i=n.userAgent.mobile?r.default.createMobileVideoNode():s.default.createVideoNode();this._elementPool.push(i)}this._hasTouchRestriction&&this._setupRendererRestrictionRemoval()},t.prototype._setupRendererRestrictionRemoval=function(){var t=this;this._unbindGestureHandler||(this._unbindGestureHandler=r.default.waitForValidUserGestureEvent(function(){t._unbindGestureHandler=null,t._elementsInUse.forEach(r.default.removeUnmuteRestriction),t._elementPool.forEach(r.default.removeUnmuteRestriction),t._elementsInUse.forEach(r.default.removeTouchToPlayRestriction),t._elementPool.forEach(r.default.removeTouchToPlayRestriction),t._elementsInUse.length=0}))},t}();e.default=a},u1Mj:function(t,e){t.exports=function(t,e){var i=t%e;return Math.floor(i>=0?i:i+e)}},u8By:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.PREROLL="preroll",t.POSTROLL="postroll",t.MIDROLL="midroll",t.TRIGGER="trigger",t.NON_LINEAR="nonlinear",t.NATIVE="native"}(e.AdBreakType||(e.AdBreakType={})),function(t){t.DUMMY="ad/dummy"}(e.AdBreakMimeType||(e.AdBreakMimeType={}))},ulAJ:function(t,e,i){"use strict";t.exports.LicenseManager=u;var n=i("/iNa"),r=i("iSaY"),o=i("R6Gm"),s=i("2fkz").CmdNames,a=i("HNE+");function u(t,e,i){this._commandName=s.CMD_LICENSE_LOAD,this.LICENSE_TYPE_NONE=0,this.LICENSE_TYPE_WIDEVINE=1,this.LICENSE_TYPE_PLAYREADY=2,this._licenseType=0,this.playreadyKeySystem={keySystem:"com.microsoft.playready",supportedConfig:[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"',robustness:""}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"',robustness:""}]}]},this.widevineKeySystem={keySystem:"com.widevine.alpha",supportedConfig:[{label:"foo",initDataTypes:["cenc"],sessionTypes:["temporary"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.5"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.640028"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.640028"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d001f"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.4d001f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.42000d"',robustness:"HW_SECURE_ALL"},{contentType:'video/mp4; codecs="avc1.42000d"',robustness:"SW_SECURE_CRYPTO"}]}]},this.LICENSE_STATUS_DONE="DONE",this.LICENSE_STATUS_LOADING="LOADING",this.LICENSE_STATUS_NEW="NEW_REQ",this._commandManager=t.create(o),this._keySessions=[],window.addEventListener("beforeunload",this._closeSessions.bind(this)),this._video=e,this._context=i,this._keyServerPrefix=null,this._mediaKeys=null,this._mediaKeysError=null,this._keyRequests=[],this._timer=new a(250),this._timer.addEventListener(this._checkMediaKeys,this),this._generateRequestsCompleted=0,this._controller=t,this._initMediaKeys()}u.prototype.addDrmItem=function(t){n.isDrmItemContained(t,this._keyRequests)||(t.status=this.LICENSE_STATUS_NEW,this._keyRequests.push(t),this._processPendingKeys(this))},u.prototype._initMediaKeys=function(){var t=this;t._mediaKeys=null,navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(t.widevineKeySystem.keySystem,t.widevineKeySystem.supportedConfig).then(function(e){t._licenseType=t.LICENSE_TYPE_WIDEVINE,t._context.appModel.licenseType="widevine",e.createMediaKeys().then(function(e){t._onMediaKeyAcquired(t,e)},function(){t._mediaKeysError={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for Widevine"}})},function(){navigator.requestMediaKeySystemAccess(t.playreadyKeySystem.keySystem,t.playreadyKeySystem.supportedConfig).then(function(e){t._licenseType=t.LICENSE_TYPE_PLAYREADY,t._context.appModel.licenseType="playready",e.createMediaKeys().then(function(e){t._onMediaKeyAcquired(t,e)},function(){t._mediaKeysError={type:r.ERR_DRM_INIT,message:"LicenseManager - createMediaKeys() failed for PlayReady"}})},function(){t._mediaKeysError={type:r.ERR_DRM_CONFIG,message:"LicenseManager - Your browser/system does not support the requested configurations for playing DRM protected content."}})}):t._mediaKeysError={type:r.ERR_DRM_EME_MISSING,message:"LicenseManager - Browser EME components not detected! (also check URL for HTTPS)"}},u.prototype._onMediaKeyAcquired=function(t,e){t._mediaKeys=e,t._timer.start()},u.prototype._checkMediaKeys=function(){var t=this;t._video.mediaKeys||(t._timer.stop(),t._video.setMediaKeys(t._mediaKeys).then(function(){t._processPendingKeys(t)},function(e){t._mediaKeysError={type:r.ERR_DRM_INIT,message:"LicenseManager - "+e}}))},u.prototype._processPendingKeys=function(t){if(null===t._mediaKeys&&null!==t._mediaKeysError)return t._notifyError(t._mediaKeysError.type,t._mediaKeysError.message),void(t._mediaKeysError=null);if(null!==t._mediaKeys)for(var e=0;e<t._keyRequests.length;e++){var i=t._keyRequests[e];i.status===t.LICENSE_STATUS_NEW&&(t._licenseType===t.LICENSE_TYPE_WIDEVINE?(i.widevine.initData=n.base64ToBuffer(i.widevine.pssh),i.widevine.initDataType="cenc",i.status=t.LICENSE_STATUS_LOADING,t._getNewKeySession(t,i.widevine)):t._licenseType===t.LICENSE_TYPE_PLAYREADY&&(i.playready.initData=n.base64ToBuffer(i.playready.pssh),i.playready.initDataType="cenc",i.status=t.LICENSE_STATUS_LOADING,t._getNewKeySession(t,i.playready)))}},u.prototype._getNewKeySession=function(t,e){var i=t._mediaKeys.createSession("temporary");t._keySessions.push(i),i.addEventListener("message",function(i){t._downloadNewKey(t,e,i)},!1);var n=i.generateRequest(e.initDataType,e.initData);n.then(function(){t._generateRequestsCompleted++,t._generateRequestsCompleted===t._keyRequests.length&&t._controller.onGenerateRequestComplete()}),n.catch(function(e){t._notifyError(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - keySession.generateRequest() failed: "+e)})},u.prototype._getLicenseUrl=function(t,e){return t._licenseType===t.LICENSE_TYPE_PLAYREADY?e.prefix+"/pr":t._licenseType===t.LICENSE_TYPE_WIDEVINE?e.prefix+"/wv":""},u.prototype._downloadNewKey=function(t,e,i){var n=t._getLicenseUrl(t,e),r=t._parseKeyMessage(t,i.message);t._commandManager.executeCommand(t._commandName,{challenge:r.challenge,headerFields:r.headerFields,url:n,drmInfo:e,event:i},t)},u.prototype._parseKeyMessage=function(t,e){var i,o={};if(t._licenseType===t.LICENSE_TYPE_PLAYREADY){var s=(new DOMParser).parseFromString(String.fromCharCode.apply(null,new Uint16Array(e)),"application/xml");s.getElementsByTagName("Challenge")[0]?i=n.base64ToBuffer(s.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue).buffer:t._notifyError(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Cannot find <Challenge> in key message");var a=s.getElementsByTagName("name"),u=s.getElementsByTagName("value");a.length!==u.length&&t._notifyError(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - Playready: Mismatched header <name>/<value> pair in key message");for(var l=0;l<a.length;l++)o[a[l].childNodes[0].nodeValue]=u[l].childNodes[0].nodeValue}else t._licenseType===t.LICENSE_TYPE_WIDEVINE&&(i=e);return{challenge:i,headerFields:o}},u.prototype.onLicenseLoadComplete=function(t,e){var i=this,n=t.data?t.data.event:null,o=t.data?t.data.drmInfo:null;n.target.update(e.data).catch(function(t){i._notifyError(r.ERR_DRM_LICENSE_REQUEST,"LicenseManager - call to MediaKeySession.update() failed: "+t)});for(var s=0;s<i._keyRequests.length;s++)i._keyRequests[s].widevine.pssh!==o.pssh&&i._keyRequests[s].playready.pssh!==o.pssh||(i._keyRequests[s].status=i.LICENSE_STATUS_DONE)},u.prototype.onLicenseLoadError=function(){this._notifyError(r.ERR_XHR_LOAD,"LicenseManager - XHR failed")},u.prototype._notifyError=function(t,e){var i=new r.Error(t,e);this._context.notifyError(i)},u.prototype._closeSessions=function(){for(var t=0;t<this._keySessions.length;t++)this._keySessions[t].close().then(function(){});this._keySessions=[]},u.prototype.destroy=function(){this._pssh=null,this._mediaKeys=null,this._keyRequests=[],this._closeSessions(),this._timer.destroy()}},ury3:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("mczr"),r=i("+Ojf"),o=function(){function t(t){this._controller=t}return t.prototype.getCurrentAdBreak=function(){var t=this.getCurrentAdBreakItem();return t?t.adBreak:null},t.prototype.getCurrentAdBreakItem=function(){var t=this._controller.getPlayingItem();return r.default.getPlaybackMode(t)===n.PlaybackMode.AD?t:null},t}();e.default=o},"v/u1":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fLR+"),r=i("EUld"),o=function(){function t(t){this.position=-1,this._itemKeys=[],this._mediaStore=t}return t.prototype.destroy=function(){this._itemKeys=[],this.position=-1},t.prototype.addItems=function(t){if(t&&t.length){for(var e=0,i=t;e<i.length;e++){var n=i[e],o=this._mediaStore.addItem(n);this.contains(o)||(this._itemKeys.push(o),this._mediaStore.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,o))}this._itemKeys.length&&-1===this.position&&(this.position=0)}},t.prototype.addItemAtIndex=function(t,e){if(t&&void 0!==e&&!(e<0)){var i=this._mediaStore.addItem(t);this.contains(i)||(this._itemKeys.splice(e,0,i),this._mediaStore.publish(r.MediaStoreEvent.MEDIA_ITEM_ADDED,i)),this._itemKeys.length&&-1===this.position&&(this.position=0)}},t.prototype.removeItems=function(t,e){var i=this;this._itemKeys.slice(t,t+e).forEach(function(t){return i._mediaStore.publish(r.MediaStoreEvent.MEDIA_ITEM_REMOVED,t)}),this._itemKeys.splice(t,e),this.position>=t+e?this.position-=e:t<=this.position&&this.position<t+e&&(this.position=-1)},t.prototype.update=function(t){var e=this,i=[];return t?(t.forEach(function(t){e._mediaStore.getByData(t)&&i.push(e._mediaStore.updateItem(t))}),i):i},t.prototype.updateMediaItemsState=function(t,e){var i=this;t&&t.forEach(function(t){i._mediaStore.updateItemState(t,e)})},t.prototype.updateMediaItemsSourceState=function(t,e){var i=this;t&&t.forEach(function(t){i._mediaStore.updateItemSourceState(t,e)})},t.prototype.contains=function(t){return this._itemKeys.indexOf(t)>=0},t.prototype.getMediaItemAt=function(t){return t<0||t>=this._itemKeys.length?null:this._mediaStore.get(this._itemKeys[t])},t.prototype.getMediaItemById=function(t){return t?this._mediaStore.getById(t):null},t.prototype.getMediaItemBySessionId=function(t){return t?this._mediaStore.getBySessionId(t):null},t.prototype.getCurrentItem=function(){return this.getMediaItemAt(this.position)},t.prototype.appendItem=function(t){if(t){var e=this._itemKeys.length;return this._itemKeys.push(t.key),e}return-1},t.prototype.getItems=function(){for(var t=[],e=0;e<this._itemKeys.length;e++){var i=this.getMediaItemAt(e);i&&t.push(i)}return t},t.prototype.getItemIds=function(){for(var t=[],e=0;e<this._itemKeys.length;e++){var i=this.getMediaItemAt(e);i&&t.push(i.id)}return t},t.prototype.getItemPosition=function(t){for(var e=0,i=0,n=this._itemKeys;i<n.length;i++){if(0===n[i].indexOf(t))return e;e++}return-1},Object.defineProperty(t.prototype,"size",{get:function(){return this._itemKeys.length},enumerable:!0,configurable:!0}),t.prototype.setPosition=function(t){n.isNumber(t)&&(this.position=t)},t.prototype.getNextPosition=function(t,e,i){if((i=i||{}).looped=!1,i.ended=!1,-1===this.position)return-1;if(!this._itemKeys.length)return-1;var n=this.position+1;if(i.playlistLoop&&n===this._itemKeys.length)return i.looped=!0,0;if(t){if(n<this._itemKeys.length)return n;if(e&&n===this._itemKeys.length)return i.looped=!0,0}return!t&&e?(i.looped=!0,this.position):(i.ended=!0,-1)},t.prototype.getCurrentPosition=function(){return this.position},t.prototype.isEndOfPlaylist=function(){return this.position===this._itemKeys.length-1},Object.defineProperty(t.prototype,"playlistId",{get:function(){return this._playlistId},set:function(t){this._playlistId=t},enumerable:!0,configurable:!0}),t.prototype._addError=function(t,e){var i=new Error(t);if(!e)throw i;e.push(i)},t}();e.default=o},v0b8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("pBvk"),r=i("u8By"),o=i("yzVy"),s=i("UDn2"),a=i("ma23"),u=i("MPla"),l=i("fLR+"),c="content.uplynk.com",d={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{playURL:{type:"string"}},required:["playURL"]},h=function(){function t(){this.version="0.2.137",this.mimetype=s.MediaItemMimeType.UPLYNK,this.type=a.PluginType.SOURCE_METADATA,this._cancelRequests=[],this._gdprParams={},this._recovering=!1,this._cancelled=!1,u.default.preconnect("preconnect-uplynk","//"+c)}return t.prototype.prepare=function(){},t.prototype.resolve=function(t,e,i){var n=this;if(Array.isArray(t)&&0!==t.length){this._gdprParams=this._getGdprParams(e.gdprConsent);var r=t.map(function(t){return new Promise(function(e,r){n._resolveMediaItem(t,e,r,i)})});this._cancelled=!1;var o=function(){n._cancelled=!0};this._cancelRequests.push(o),Promise.all(r).then(function(t){n._cancelled||(n._removeCancelRequest(o),i.onComplete(t))}).catch(function(t){if(!n._cancelled){n._removeCancelRequest(o);var e={code:"1",message:t.toString()};i.onError(e)}}),this._recovering=!1}},t.prototype.recover=function(t,e,i){t&&(this._recovering=!0,this.resolve([t],e,i))},t.prototype.cancel=function(){this._cancelRequests.forEach(function(t){t()}),this._cancelRequests=[]},t.prototype.destroy=function(){this.cancel()},t.prototype._resolveMediaItem=function(t,e,i,r){var o=this;this._hasValidSource(t)&&!this._recovering?e(t):this._makePreplayRequest(t,function(a,u,l,c){var h=a&&n.validate(a,d);if(!h||!h.valid)return i("Invalid preplay response");var p=a.sid,f=t.metadata,_=f&&(f.type===s.MediaItemType.LIVE_EVENT||f.type===s.MediaItemType.LIVE_CHANNEL);t.source={streams:[{url:a.playURL,live:_}]},t.customConfig=t.customConfig||{},t.customConfig.sid=p,t.customConfig.prefix=a.prefix,a.ads&&a.ads.breaks&&a.ads.breaks.length>0&&(t.adBreaks=o._transformAdBreaks(a.ads.breaks,a.ads.breakOffsets),t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/uplynk"},t.visualSeekData.adBreaks=t.adBreaks),o._cancelled||r.onApiCallInfo({url:c&&c.url||null,perfObj:l}),e(t)},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t&&t.length?t[0]:null,s=t.length?t[4]:null,a=t.length?t[5]:null;o._cancelled||r.onApiCallInfo({url:a&&a.url||null,perfObj:s}),i(n)})},t.prototype._makePreplayRequest=function(t,e,i){var n="/api/v3/preplay/{assetid}.json",r=t.metadata;r&&r.type===s.MediaItemType.LIVE_CHANNEL?n="/api/v3/preplay/channel/{assetid}.json":r&&r.type===s.MediaItemType.LIVE_EVENT&&(n="/api/v3/preplay/event/{assetid}.json");var o=t.customConfig||{},a="https://"+c+n.replace("{assetid}",t.id)+(o.preplay&&o.preplay.qs?"?"+o.preplay.qs:"");this._makeRequest(a,e,i)},t.prototype._makeRequest=function(t,e,i){var n=this,r=u.default.ajax(t,{context:this,successHandler:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];n._removeCancelRequest(r),e.apply(void 0,t)},failureHandler:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n._removeCancelRequest(r),i.apply(void 0,t)},withCookie:!1,responseTypeJson:!0,collectPerfData:!0});this._cancelRequests.push(r)},t.prototype._removeCancelRequest=function(t){if(t){var e=this._cancelRequests.indexOf(t);e>=0&&this._cancelRequests.splice(e,1)}},t.prototype._hasValidSource=function(t){return!!(t.source&&t.source.streams&&t.source.streams.length)},t.prototype._transformAdBreaks=function(t,e){var i=this;return t.map(function(t){var n=e&&e.find(function(e){if(e&&e.timeOffset===t.timeOffset)return!0})||{};return{adBreakId:t.breakId||"",duration:t.duration||0,startOffset:t.timeOffset||0,type:i._mapAdBreakPosition(t.position),adBreakItems:i._transformAds(t.ads),customInfo:{index:n.index}}})},t.prototype._transformAds=function(t){return t.map(function(t){return{adBreakItemId:t.creative||"",duration:t.duration||0,type:o.AdBreakItemType.AD,instream:!0,interactionConfig:{allowSeek:!1,allowSkipOffset:0,chromeless:!1},customInfo:{}}})},t.prototype._mapAdBreakPosition=function(t){return"preroll"===t?r.AdBreakType.PREROLL:"midroll"===t?r.AdBreakType.MIDROLL:"postroll"===t?r.AdBreakType.POSTROLL:null},t.prototype._getGdprParams=function(t){return{gdpr:t&&!l.isNullOrUndefined(t.gdprApplies)?t.gdprApplies:"",euconsent:t&&t.consentData||""}},t}();e.default=h},v5jO:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.isFormatInAcceptedFormats=function(t,e){return e.some(function(e){return t===e})},t.isProtocolInAcceptedProtocols=function(t,e){var i=!1;return e.forEach(function(e){t.indexOf(e)>-1&&(i=!0)}),i},t.findAcceptedStreams=function(e,i){return e.filter(function(e){return!!t.isFormatInAcceptedFormats(e.format,i.acceptedFormats)&&(!(e.isUplynk()&&"m3u8"===e.format&&!i.canDecryptAES)&&!!t.isProtocolInAcceptedProtocols(e._getProtocol(),i.acceptedProtocols))})},t.findStreamByProperty=function(e,i,n,r){return e=t.findAcceptedStreams(e,r).sort(function(t,e){return t[i]-e[i]}),"resolution"===i&&(i="height"),t.findStream(e,n,i)},t.filterStreamByResolution=function(t,e,i){return t.filter(function(t){var n=t&&t.height;if(n){if(e&&n<e)return!1;if(i&&n>i)return!1}return!0})},t.isHlsLive=function(t){return t.url.match(/\.m3u8/)&&t.live||!1},t.mapStreamsToQualities=function(t){var e={low:null,medium:null,high:null};return t.forEach(function(t){var i=1*t.bitrate+2*t.height;i<=1500?e.low?i>e.low.bitrate+2*e.low.height&&(e.low=t):e.low=t:i<=2500?e.medium?i>e.medium.bitrate+2*e.medium.height&&(e.medium=t):e.medium=t:e.high?i>e.high.bitrate+2*e.high.height&&(e.high=t):e.high=t}),e},t.findStream=function(t,e,i){var n;return t&&t.forEach(function(t){n?t[i]<=e&&(n=t):n=t}),n},t.BITRATE="bitrate",t.RESOLUTION="resolution",t}();e.default=n},vFZV:function(t,e,i){"use strict";t.exports=u;var n=i("/iNa"),r=i("2fkz"),o=r.CmdNames,s=r.CmdEvents,a=i("nHOF");function u(t,e){this._stream=t.stream,this._chunks=[],this._comboLoad=!!t.comboLoad,this._initSegment=t.initSegment,this._segment=t.segment,this._cached=t.cached,this._super=this.constructor.super_.prototype,this.constructor.super_.call(this,t,e),this._url=t.initSegment.url,this.name=o.CMD_MP4_INIT_SEGMENT_LOAD}n.inherits(u,a),u.prototype.destroy=function(){this._chunks=[],this._super.destroy.call(this)},u.prototype._validateData=function(t){if(!(t&&t.controller&&t.stream&&t.initSegment&&t.initSegment.url))throw new Error("Invalid argument: data argument of the command is not complete")},u.prototype._prepareChunks=function(){if(this._chunks.push(this._initSegment),this._comboLoad){var t=this._stream.getMp4Chunk("sidx"),e=this._stream.getMp4Chunk("first");t&&this._chunks.push(t),e&&this._segment&&this._chunks.push(e)}},u.prototype._configureLoaderOptions=function(){var t={responseType:"arraybuffer",isChunkedLoad:!0,minChunkSize:1e3,headerFields:{}};this._prepareChunks();var e=-1,i=-1;if(this._chunks.length){var n=this._chunks[0].range,r=this._chunks[this._chunks.length-1].range;n&&r&&(e=n.start,i=r.end)}if(e>=0&&i>=0&&(t.headerFields.Range="bytes="+e+"-"+i,this._contentLength=i-e+1),"atlas"===(this._stream.cdn||this._segment&&this._segment.cdn)){var o=this._stream.sessionId||this._segment&&this._segment.sessionId;t.headerFields.Accept="*/*; X-PB-SESSION-ID="+o}return t},u.prototype._createSegmentLoadProcessor=function(){this._segment&&this._super._createSegmentLoadProcessor.call(this)},u.prototype._loadSegmentData=function(){!this._comboLoad&&this._cached&&this._initSegment.loaded?this._onLoadComplete():this._super._loadSegmentData.call(this)},u.prototype._onProgress=function(t,e){t&&(this._comboLoad?this._onComboLoadProgress(t,e):this._onInitSegmentLoadProgress(t,e))},u.prototype._onComboLoadProgress=function(t,e){if(t){var i=0,n=t.byteLength,r=t;e!==this._bytesTotal&&this._onBytesLoaded(e);for(var o=null,a=0;a<this._chunks.length;a++){if(o=this._chunks[a],!r)return;if(o.loaded||(i+=o.append(r),"first"===o.name&&this._segmentDataProcessor&&this._segmentDataProcessor.append(r),o.loaded&&"first"!==o.name&&this.publish(s.CMD_PROGRESS,this,{chunk:o,stream:this._stream,comboLoad:this._comboLoad})),i>=n)return;if(i>0&&(r=t.subarray(i)),!o.loaded)return}}},u.prototype._onInitSegmentLoadProgress=function(t,e){e!==this._bytesTotal?this._onBytesLoaded(e):this._segmentDataProcessor.append(t)},u.prototype._onLoadComplete=function(){if(!this._comboLoad){var t=this._chunks[0];t&&(t.loaded=!0,this.publish(s.CMD_PROGRESS,this,{chunk:t,stream:this._stream,comboLoad:this._comboLoad}),this.publish(s.CMD_COMPLETE,this,{stream:this._stream,comboLoad:this._comboLoad}))}this._super._onLoadComplete.call(this)},u.prototype._onDataProcessComplete=function(){this.publish(s.CMD_COMPLETE,this,{stream:this._stream,comboLoad:this._comboLoad})},u.prototype._onDataProcessProgress=function(t,e){if(t){if(!this._comboLoad){var i=this._chunks[0];return i&&!i.loaded&&i.append(t.data),void this.publish(s.CMD_PROGRESS,this,{chunk:i,stream:this._stream,comboLoad:this._comboLoad})}t.stream=this._stream,t.chunk={name:"first"},this._super._onDataProcessProgress.call(this,t,e)}},u.prototype._getTotalDownloadTime=function(){return 0},u.prototype.getSegment=function(){return this._segment}},vTO9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_SEG_INFO_ENTRIES_PER_BEACON=15,e.BEACONS={VIDEO_REQUEST:{evt:"v_request",type:"pb",payloadParams:["prefetch"],params:[{key:"es",value:"endscreen"}]},PLAYBACK_RESUMED:{evt:"p_resm",type:"pb"},PLAYBACK_STALLED:{evt:"v_stall",type:"pb",payloadParams:["value"]},BITRATE_CHANGE:{evt:"v_btrt",type:"pb"},PLAYER_INFO:{evt:"info",type:"pb"},ABR_DATA_UPDATE:{evt:"v_abr",type:"pb"},CMS_API_CALLED:{evt:"v_api",type:"pb"},PLAYER_ERROR:{evt:"error",type:"pb"},PLAYER_WARNING:{evt:"warn",type:"pb"},PLAYBACK_START:{evt:"v_start",type:"pb"},PLAYBACK_STREAM_START:{evt:"v_strm_view",type:"pb"},PLAYBACK_PROGRESS:{evt:"v_prog",type:"pb"},PLAYBACK_COMPLETE:{evt:"v_comp",type:"pb"},INCOMPLETE_EXIT:{evt:"v_ncomp",type:"pb",payloadParams:["ext_resn"]},CTRL_SEEK:{evt:"ui_seek",type:"ctrl",payloadParams:["value_e"],params:[{key:"value",value:"lastKnownPlaybackTime"}]},CTRL_PLAYPAUSE:{evt:"ui_pp",type:"ctrl",payloadParams:["value"],params:[{key:"req_type",value:"requestType"},{key:"req_action",value:"requestAction"}]},CTRL_VOLUME:{evt:"ui_cv",type:"ctrl",payloadParams:["value"],params:[{key:"value_e",value:"volume"}]},CTRL_REPLAY:{evt:"ui_esrpl",type:"ctrl"},CTRL_PLAYREQUEST:{evt:"ui_pb_req",type:"ctrl",payloadParams:["req_type"]},CTRL_SETTINGS:{evt:"ui_stgs",type:"ctrl"},CONTROLS_AUDIO_CHANGE:{evt:"ui_aslng",type:"ctrl",payloadParams:["value","value_e"]},THREE_SIXTY_INTERACT:{evt:"ui_360_interact",type:"ctrl"},THREE_SIXTY_PIE_INTERACT:{evt:"ui_360_pie_interact",type:"ctrl"},AIRPLAY_CONNECTION_STATE_CHANGE:{evt:"ui_airp",type:"ctrl"},UI_INTERACT:{evt:"none",type:"ctrl"},CC_TOGGLE:{evt:"ui_cctog",type:"ctrl"},CC_LANGUAGE_CHANGE:{evt:"ui_cclng",type:"ctrl",payloadParams:["value"]},CC_UPDATE_STYLE:{evt:"ui_ccstl",type:"ctrl",payloadParams:["value"]},CC_SETTINGS:{evt:"ui_ccstg",type:"ctrl"},FULLSCREEN_CHANGE:{evt:"ui_fs",type:"ctrl"}},e.PROGRESS_BEACON_INTERVALS=[{time:3,beacon:e.BEACONS.PLAYBACK_STREAM_START,key:"vstrm-view"},{time:10,beacon:e.BEACONS.PLAYBACK_PROGRESS,key:"vprog--initial"},{time:30,beacon:e.BEACONS.PLAYBACK_PROGRESS,recurring:!0,key:"vprog--recurring"}],e.PARAMS=["_V","type","ss","vid","pstaid","prt","cprt","vs","vlng","pver","host","_w","_R","pls","pltype","auto","snd","deos","deom","play_pos","psz","ccav","cdn","smpl","cont","replay","focus","view","expm","bit","drm","drmsys","_sqno","ts","pl_type","pl_uuid","pl_intr","pl_sec","viewd"]},vYwU:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("A4+F"),u=i("mczr"),l=i("fLR+"),c=i("vTO9");!function(t){t.VIDEO_PROGRESS="video-progress"}(o=e.ProgressEvent||(e.ProgressEvent={}));var d=function(t){function e(e,i){var n=t.call(this,"AnalyticsProgressManager")||this;return n._player=e,n._model=i,n._totalWatchTime=0,n._evtKeys={},n._segInfo=[],n._seeking=!1,n._progressBeaconTime=0,n._recovering=!1,n._recoveryStatus="",n._bufferingStartTime=null,n._rebufferingTime=0,[{evt:a.ExternalEvt.VIDEO_REQUEST,cb:n._onVideoRequest},{evt:a.ExternalEvt.PLAYBACK_PAUSE,cb:n._onPause},{evt:a.ExternalEvt.SEG_INFO_AVAILABLE,cb:n._onSegInfoAvailable},{evt:a.ExternalEvt.PLAYBACK_TIME_UPDATE,cb:n._onTimeUpdate},{evt:a.ExternalEvt.PLAYBACK_SEEKING,cb:n._onSeeking},{evt:a.ExternalEvt.PLAYBACK_SEEK_COMPLETE,cb:n._onSeekComplete},{evt:a.ExternalEvt.RECOVERY_METADATA_READY,cb:n._onRecoveryStart},{evt:a.ExternalEvt.BUFFERING_START,cb:n._onBufferingStart},{evt:a.ExternalEvt.BUFFERING_END,cb:n._onBufferingEnd}].forEach(function(t){n._evtKeys[t.evt]=n._player.addEventListener(t.evt,t.cb,n)}),n}return r(e,t),e.prototype.destroy=function(){this._player.removeEventListeners(this._evtKeys),this._resetProgressIntervals()},e.prototype.updatePlaybackStats=function(t){var e=this._getSegInfoMetrics();t.dur=Math.floor(this._totalWatchTime)||"",t.dur_d=Math.floor(this._totalWatchTime)-Math.floor(this._progressBeaconTime)||0,t.buff_info=e.segInfo||"",t.buf_dur=e.bufDur||0,this._recoveryStatus&&(t.rcvr_status=this._recoveryStatus)},Object.defineProperty(e.prototype,"totalWatchTime",{get:function(){return this._totalWatchTime},enumerable:!0,configurable:!0}),e.prototype._onVideoRequest=function(t,e){this._resetProgressIntervals()},e.prototype._onPause=function(t){t.playbackMode!==u.PlaybackMode.AD&&this._publishVideoProgress(c.BEACONS.PLAYBACK_PROGRESS),this._onBufferingEnd()},e.prototype._onSeeking=function(t){this._seeking=!0,this._onBufferingEnd()},e.prototype._onSeekComplete=function(){this._seeking=!1,this._model.lastKnownPlaybackTime=this._model.currentTime},e.prototype._onSegInfoAvailable=function(t){this._segInfo=this._segInfo.concat(t.val)},e.prototype._onTimeUpdate=function(t,e){if(!(this._seeking||l.isNullOrUndefined(t)||t<0||e.playbackMode===u.PlaybackMode.AD))if(l.isNullOrUndefined(this._model.lastKnownPlaybackTime))this._model.lastKnownPlaybackTime=t;else if(t>0&&(this._onBufferingEnd(),this._recovering))this._onRecoveryDone();else{var i=t-this._model.lastKnownPlaybackTime;this._model.lastKnownPlaybackTime=t,i>0&&(this._totalWatchTime+=i),this._checkProgress()}},e.prototype._checkProgress=function(){var t=this;c.PROGRESS_BEACON_INTERVALS.forEach(function(e){var i=t._totalWatchTime,n=t._model.progressBeaconsInfo.timeLastSent[e.key],r=-1===n?0:n;(e.recurring&&i>r+e.time||!e.recurring&&-1===n&&i>e.time)&&(t._model.progressBeaconsInfo.timeLastSent[e.key]=Math.floor(i),t._publishVideoProgress(e.beacon))})},e.prototype._publishVideoProgress=function(t){this.publish(o.VIDEO_PROGRESS,t),this._progressBeaconTime=Math.floor(this._totalWatchTime)},e.prototype._resetProgressIntervals=function(){this._segInfo=[],this._totalWatchTime=0,this._progressBeaconTime=0,this._model.lastKnownPlaybackTime=null,this._model.resetProgressBeaconsState(),this._bufferingStartTime=null,this._recovering=!1,this._rebufferingTime=0},e.prototype._getSegInfoMetrics=function(){var t;return this._recovering?(this._updateRebufferingTime(),t=[{buf_dur:this._rebufferingTime}],this._rebufferingTime=0):t=this._segInfo.splice(0,Math.min(c.MAX_SEG_INFO_ENTRIES_PER_BEACON,this._segInfo.length)),{segInfo:JSON.stringify({seg:t}),bufDur:t.reduce(function(t,e){return e.buf_dur+t},0)}},e.prototype._onBufferingStart=function(){this._bufferingStartTime=Date.now()},e.prototype._onBufferingEnd=function(){this._updateRebufferingTime(),this._bufferingStartTime=null},e.prototype._updateRebufferingTime=function(){this._bufferingStartTime&&(this._rebufferingTime+=Date.now()-this._bufferingStartTime,this._bufferingStartTime=Date.now())},e.prototype._onRecoveryStart=function(){this._recovering=!0,this._recoveryStatus="recovering",this._publishVideoProgress(c.BEACONS.PLAYBACK_PROGRESS)},e.prototype._onRecoveryDone=function(){this._recoveryStatus="recovered",this._publishVideoProgress(c.BEACONS.PLAYBACK_PROGRESS),this._recovering=!1,this._recoveryStatus=""},e}(s.default);e.default=d},vdbb:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("LrgL");e.Command=n.default;var r=i("yv9F");e.MetadataLoadCommand=r.default;var o,s,a=i("C4jF");e.SourceMetadataLoadCommand=a.default,function(t){t.CMD_SOURCE_METADATA_LOAD="SourceMetadataLoad",t.CMD_METADATA_LOAD="MetadataLoad"}(o||(o={})),e.CmdName=o,function(t){t.CMD_COMPLETE="Complete",t.CMD_PROGRESS="Progress",t.CMD_ERROR="Error",t.CMD_INFO="Info"}(s||(s={})),e.CmdEvent=s},vgmO:function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,i("yLpj"))},vtmz:function(t,e,i){"use strict";t.exports=c;var n=i("mhJ4"),r=i("/iNa"),o=i("9nRl"),s=i("RwmF"),a=i("UbnH"),u=i("Tavk").AACStream,l=i("y5bh").HLSEvent.PCR_AVAILABLE;function c(t){s.call(this,this.constructor.name),this._config=t,this._data=null,this._position="start",this._stream=new u,this._endOfSegment=!1,this._eventKeys={},this._converter=this.__controller.create(n,t,this._onTransformProgress.bind(this)),this._lastAudioTimestamp=t.lastAudioTimestamp,this._lastAudioFrameDuration=t.lastAudioFrameDuration,o.isNullOrUndefined(this._config.pcr)&&(this._eventKeys[l]=this.__controller.addEventListener(l,this._onPcrAvailable,this))}r.inherits(c,s),c.prototype.destroy=function(){this.close(),this._converter.destroy(),this._stream.destroy(),s.prototype.destroy.call(this)},c.prototype.setSource=function(t){this._source=t,this._addEventListeners()},c.prototype._addEventListeners=function(){var t=this;t._source&&(t._source.addEventListener(a.DATA_PROCESS_PROGRESS,function(e){t.append(e)},t),t._source.addEventListener(a.DATA_PROCESS_COMPLETE,function(){t.endOfSegment()},t),t._source.addEventListener(a.DATA_PROCESS_ERROR,function(e){t.publish(a.DATA_PROCESS_ERROR,e)},t))},c.prototype.close=function(){this._data=null,this.__controller.removeEventListener(l,this._eventKeys[l]),this._converter.close()},c.prototype.append=function(t){if(t){var e=t.length;if(e){var i=null,n=0;this._data&&(n=(i=this._data).length);var r=n+e;this._data=new Uint8Array(r),i&&this._data.set(i),this._data.set(t,n),this._parse()}}},c.prototype._onPcrAvailable=function(t){this._config.pcr=t,this._parse(),this.__controller.removeEventListener(l,this._eventKeys[l])},c.prototype._parse=function(){var t=this._config.pcr;if(!o.isNullOrUndefined(t)){if(this._data&&this._data.length>0){var e;e=this._lastAudioTimestamp&&this._lastAudioFrameDuration?t+this._lastAudioTimestamp+this._lastAudioFrameDuration:t+this._config.startTime*this._config.timescale;var i=this._stream.readFramesFromBitstream(this._data,e);this._data=this._data.subarray(i)}var n=this._stream.getLastFrameDetails();n&&(this._lastAudioTimestamp=n.timestamp-t,this._lastAudioFrameDuration=n.duration),(this._stream.ready||this._endOfSegment)&&this._sendFrames()}},c.prototype._sendFrames=function(){var t=this._stream.getFrames(),e=t&&t.length>0;if("end"===this._position||e){var i=e?t[0].dts:null,n={audio:{frames:t,config:this._stream.getConfig()},pcr:i};this._converter.processSegmentData({avData:n,pos:this._position}),"start"===this._position&&(this._position="middle")}},c.prototype.endOfSegment=function(){this._position="end",this._endOfSegment=!0,this._parse(),this._converter.endOfSegment()},c.prototype._onTransformProgress=function(t,e){var i;t&&(this.publish(a.DATA_PROCESS_PROGRESS,t,e),t.getParam&&(i=t.getParam("parsedInfo")),"end"===(i?i.position:t.position)&&this.publish(a.DATA_PROCESS_COMPLETE))}},"w+YI":function(t,e,i){"use strict";t.exports=o;var n=i("y5bh").HLSEvent,r=i("HNE+");function o(){this._model=this._context.appModel,this._node=this._context.node,this._mediaInfo={currentStreamBitrate:0,frameDrop:0,frameRateSum:0,frameRateSampleCount:0,currentKbps:0,deliveryProtocol:this._getDeliveryProtocol(),bufferingCount:0,totalBufferingTime:0,streamingMode:this._model.streamingMode},this.FRAMERATE_SAMPLE_SIZE=4,this._frameRateStats={prevTotalFrames:0,prevTotalDroppedFrames:0,prevFrameRateMeasuredTime:0,frameRateSampleCollector:[],currentFrameRate:0},this._timer=new r(1e3),this._timer.addEventListener(this._sendInfoUpdate,this)}o.prototype.destroy=function(){this._mediaInfo=null,this._timer.destroy()},o.prototype.onPlay=function(){this._timer.start()},o.prototype.onPause=function(){this._timer.stop()},o.prototype.updateBufferingInfo=function(t){t&&(t.value||t.bufferInit||(this._mediaInfo.bufferingCount++,this._mediaInfo.totalBufferingTime+=t.waitTime))},o.prototype._sendInfoUpdate=function(){var t=this._model.streams,e=this._mediaInfo,i=this._model.getCurrentPlayingStream(),r=this.getFpsStats();i&&(e.currentStreamIndex=this._model.currentPlayingStreamIndex,e.currentStreamBitrate=i.bitrate/1e3,e.mediaWidth=i.width,e.mediaHeight=i.height),t.length&&(e.qualityLevels=t.length,e.minBitRate=t[0].bitrate,e.maxBitRate=t[e.qualityLevels-1].bitrate),e.bufferLength=this._model.getBufferLength().toFixed(2),e.bufferLength,e.frameRate=r.frameRate.toFixed(2),e.droppedFrames=r.droppedFrames,e.currentKbps=(1e3*this._model.currentKbps).toFixed(0),e.streamingMode=this._model.streamingMode,e.drm=this._model.drmRequired,e.drmsys=this._model.licenseType,this._model.infoUpdateSent=!0,this._context.sendEvent(n.INFO_UPDATE,{mediaInfo:this._mediaInfo})},o.prototype.getWindow=function(){return window},o.prototype._getDeliveryProtocol=function(){var t=this.getWindow();return t&&t.location&&t.location.protocol?t.location.protocol.slice(0,-1):"http"},o.prototype.getFpsStats=function(){var t,e,i=this._node,n=0,r=this._frameRateStats,o=i.currentTime-r.prevFrameRateMeasuredTime,s=this._fpsBrowserSupport(),a=0;return(s.isWebKitFpsAvailable||s.isNonWebKitFpsAvailable)&&(t=s.isWebKitFpsAvailable?i:i.getVideoPlaybackQuality(),e=s.isWebKitFpsAvailable?t.webkitDecodedFrameCount:t.totalVideoFrames,a=s.isWebKitFpsAvailable?t.webkitDroppedFrameCount:t.droppedVideoFrames,(n=r.prevFrameRateMeasuredTime>0&&0!==o?(e-r.prevTotalFrames-(a-r.prevTotalDroppedFrames))/o:r.currentFrameRate)&&r.frameRateSampleCollector.push(n),this._calculateCurrentFrameRate(),r.prevTotalFrames=e,r.prevTotalDroppedFrames=a,r.prevFrameRateMeasuredTime=i.currentTime),{frameRate:r.currentFrameRate,droppedFrames:a}},o.prototype._fpsBrowserSupport=function(){var t=this._node;return{isWebKitFpsAvailable:void 0!==t.webkitDecodedFrameCount,isNonWebKitFpsAvailable:"function"==typeof t.getVideoPlaybackQuality}},o.prototype._calculateCurrentFrameRate=function(){var t=this._frameRateStats.frameRateSampleCollector;if(t.length>=this.FRAMERATE_SAMPLE_SIZE){var e=t.reduce(function(t,e){return t+e});this._frameRateStats.currentFrameRate=e/t.length,t.splice(0,t.length)}}},w7tx:function(t,e,i){"use strict";var n,r,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=i("JcWZ"),u=i("t8Yn"),l=i("h8UC"),c=i("qrnT"),d=i("Db1k"),h=i("p/Bv"),p=i("z88l"),f=i("ecni"),_=i("Pu4D"),m=i("R9ZO"),y=i("m1ef"),v=i("t7Hg"),g=i("he5r"),E=i("5bs/"),b=i("Krh1"),S=i("JqHr"),A=i("1GgL"),T=i("FXl5"),I=i("afoZ"),C=i("c+yx"),R=i("Oj6Y");e.LEGACY_EVENTS_MAP=((r={})[u.Events.AD_BREAK_ITEM_CURRENT]=b.API.AD_PLAYBACK_START,r[u.Events.AD_BREAK_ITEM_ENDED]=b.API.AD_PLAYBACK_STOP,r[u.Events.PLAYBACK_START]=b.API.PLAYBACK_STARTED,r[u.Events.PLAYBACK_COMPLETE]=b.API.PLAYBACK_ENDED,r);var L=function(t){function i(e,i,n){var r=t.call(this,"OathController")||this;return r._plugins=[],r._suspendedStateData=null,r._networkRestrictionVerifier=null,r._structuredPlaylistPlugin=null,r._config=e,r._mediaStore=i,r._player=n,r._model=new S.default(e,i),r._playlistController=new E.default(r._model),r._config.analytics=!1,r._vdmsPlayer=r._createPlayer(),r._analytics=new _.default(r._player),r._marketingPx=new y.default(r._player),r._pixieAnalytics=new v.default(r._player),r._comscoreAnalytics=new m.default(r._player,r.getPlaylist()),r._view=new R.default,r._vdmsPlayer.on(u.Events.MEDIA_ITEM_CURRENT,r._onMediaItemCurrent,r),r._vdmsPlayer.on(u.Events.PLAYBACK_PROGRESS,r._onPlaybackProgress,r),r._setVideoRecommendationsContinuousPlay(),r}return o(i,t),i.prototype.destroy=function(){this._model.destroy(),this._vdmsPlayer.destroy(),this._analytics.destroy(),this._vdmsPlayerProxy&&this._vdmsPlayerProxy.destroy(),this._networkRestrictionVerifier&&(this._networkRestrictionVerifier.destroy(),this._networkRestrictionVerifier=null),t.prototype.destroy.call(this)},i.prototype.initialize=function(){var t=this;this._vdmsPlayer.addMetricsEventListener(function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=Array.prototype.slice.call(e,0,e.length-1),r=e[e.length-1],o=t._model.getEventsDto();o.playerVersion=t._player.version,t._player.publish.apply(t._player,n.concat(s({},r,o))),t._handleLegacyEvents(n[0],n.slice(1))},this),this._bindEvents(),this._registerPlugins(),this._vdmsPlayer.initialize()},i.prototype.render=function(t){this._vdmsPlayer.render(t)},i.prototype.getCurrentTime=function(){return this._vdmsPlayer.getCurrentTime()},i.prototype.getCurrentDate=function(){return this._vdmsPlayer.getCurrentDate()},i.prototype.getVolume=function(){return this._vdmsPlayer.getVolume()},i.prototype.getMediaStore=function(){return this._vdmsPlayer.getMediaStore()},i.prototype.getCurrentMediaItem=function(){return this.getPlaylist().getCurrentItem()},i.prototype.getPlaybackState=function(){return this._vdmsPlayer.getPlaybackState()},i.prototype.play=function(t){return this._vdmsPlayer.play(t)},i.prototype.setStartTime=function(t){this.seek(t)},i.prototype.pause=function(t){this._vdmsPlayer.pause()},i.prototype.preload=function(t){},i.prototype.seek=function(t){this._vdmsPlayer.seek(t)},i.prototype.disableControls=function(){this._vdmsPlayer.disableControls()},i.prototype.enableControls=function(){this._vdmsPlayer.enableControls()},i.prototype.enableCC=function(t){return this._vdmsPlayer.enableCC(t)},i.prototype.disableCC=function(){return this._vdmsPlayer.disableCC()},i.prototype.isPlayMode=function(){return this._vdmsPlayer.isPlayMode()},i.prototype.isLoading=function(){return this._vdmsPlayer.isLoading()},i.prototype.setFullscreen=function(t){this._vdmsPlayer.setFullscreen(t)},i.prototype.getFullscreen=function(){return this._vdmsPlayer.getFullscreen()},i.prototype.setVolume=function(t){this._vdmsPlayer.setVolume(t)},i.prototype.setMute=function(t){this._vdmsPlayer.setMute(t)},i.prototype.getMute=function(){return this._vdmsPlayer.getMute()},i.prototype.setLoop=function(t){return this._vdmsPlayer.setLoop(t)},i.prototype.setContinuousPlay=function(t){return this._vdmsPlayer.setContinuousPlay(t)},i.prototype.resumeContinuousPlay=function(t){this._vdmsPlayer.resumeContinuousPlay()},i.prototype.setAudioLanguage=function(t){this._vdmsPlayer.setAudioLanguage(t)},i.prototype.isDocked=function(){return this._vdmsPlayer.isDocked()},i.prototype.setMediaItemTitle=function(t,e){return this._vdmsPlayer.setMediaItemTitle(t,e)},i.prototype.addVdmsListener=function(t,e){return this._vdmsPlayer.addEventListener(t,e,this._player)},i.prototype.removeVdmsListener=function(t,e){return this._vdmsPlayer.removeEventListener(t,e)},i.prototype.getPlaybackStartDto=function(){return this._vdmsPlayer.getPlaybackStartDto()},i.prototype.updateDockingConfig=function(t,e,i,n,r,o){this._vdmsPlayer.updateDockingConfig(t,e,i,n,r,o)},i.prototype.getPlaylist=function(){return this._vdmsPlayer.getPlaylist()},i.prototype.suspend=function(){var t=this._vdmsPlayer.suspendState();t&&(this._suspendedStateData=t,this._destroyPlugins())},i.prototype.resume=function(){this._suspendedStateData&&(this._vdmsPlayer.resumeState(this._suspendedStateData),this._registerPlugins(),this._vdmsPlayer.initialize(),this._vdmsPlayer.render(this._suspendedStateData.selector),this._playlistController.playlist=this.getPlaylist(),this._suspendedStateData=null)},i.prototype.updateGeoConfig=function(t){this._model.updateGeoConfig(t)},i.prototype.getVideoElement=function(){return this._vdmsPlayer.getVideoElement()},i.prototype.getRootElement=function(){return this._vdmsPlayer.getRootElement()},i.prototype.isSuspended=function(){return this._vdmsPlayer&&this._vdmsPlayer.isSuspended()||!1},i.prototype.undockVideoPlayer=function(t){return this._vdmsPlayer&&this._vdmsPlayer.undockVideoPlayer(t)},i.prototype.addCustomControlElement=function(t){return this._vdmsPlayer.addCustomControlElement(t)},i.prototype.isRendered=function(){return this._vdmsPlayer&&this._vdmsPlayer.isRendered()||!1},Object.defineProperty(i.prototype,"guid",{get:function(){return this._vdmsPlayer&&this._vdmsPlayer.guid||""},enumerable:!0,configurable:!0}),i.prototype._createPlayer=function(t){void 0===t&&(t=!0);var e=this._config,i=e.mediaItems;e.playlist;if(this._model.playlistId&&(!i||0===i.length)){var n=this._createPlayerProxy();return this._resolvePlaylistId(),n}return this._createVdmsPlayer()},i.prototype._createPlayerProxy=function(){return this._vdmsPlayer?this._vdmsPlayer:(this._vdmsPlayerProxy=new I.default,this._vdmsPlayerProxy.getProxy())},i.prototype._createVdmsPlayer=function(){this._addPluginConfig();var t=new u.Player(this._config,this._mediaStore);return this._playlistController.playlist=t.getPlaylist(),this._model.guid=t.guid,t},i.prototype._resolvePlaylistId=function(){var t=this;this._vdmsPlayerProxy&&this._playlistController.fetchMore(function(e,i){t._vdmsPlayerProxy&&(!e&&i&&(t._config.mediaItems=i),t._vdmsPlayer=t._createVdmsPlayer(),t._vdmsPlayerProxy.execute(t._vdmsPlayer),t._vdmsPlayerProxy.destroy(),t._vdmsPlayerProxy=void 0)})},i.prototype._bindEvents=function(){this._vdmsPlayer.on(u.Events.PLAYBACK_START,this._handlePlaybackStart,this),this._vdmsPlayer.on(u.Events.PLAYER_RENDERED,this._handlePlayerRendered,this),this._vdmsPlayer.on(u.Events.MEDIA_ITEM_METADATA,this._handleMediaItemMetadataAvailable,this),this._vdmsPlayer.on(u.Events.PLAYBACK_STOPPED,this._handleMediaItemEnded,this),this._vdmsPlayer.on(u.Events.MEDIA_ITEM_COMPLETE,this._handleMediaItemEnded,this),this._vdmsPlayer.on(u.Events.PLAYLIST_COMPLETE,this._handlePlaylistComplete,this),this._vdmsPlayer.once("opss-visibility-changed",this._handleOpssVisibilityChanged,this)},i.prototype._handlePlaybackStart=function(){this._playlistController.onPlaybackStart()},i.prototype._handlePlaylistComplete=function(t){this._playlistController.onPlaylistComplete(t)},i.prototype._onPlaybackProgress=function(t,e,i){this._model.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this._structuredPlaylistPlugin&&this._structuredPlaylistPlugin.onMediaPlaybackProgress(t,e,i)},i.prototype._onMediaItemCurrent=function(t){if(this._model.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE){var e=this._model.isMediaItemWatched(t.id),i=this._model.watchHistoryConfig&&this._model.watchHistoryConfig.enabled&&this._model.watchHistoryConfig.skipWatchedVideos;if(e&&i){var n=this.getPlaylist().getPosition();this.getPlaylist().setPosition(n+1)}}},i.prototype._handlePlayerRendered=function(){this._playlistController.onPlayerRendered()},i.prototype._handleMediaItemMetadataAvailable=function(t,e){this._networkRestrictionVerifier&&(this._networkRestrictionVerifier.destroy(),this._networkRestrictionVerifier=null),t.customConfig&&t.customConfig.allowedConnectionTypes&&(this._networkRestrictionVerifier=new A.default(this._model,t.rawItemData),this._scheduleNextNetworkRestrictionVerification())},i.prototype._handleMediaItemEnded=function(t){this._networkRestrictionVerifier&&(this._networkRestrictionVerifier.destroy(),this._networkRestrictionVerifier=null),this._model.playlistMimetype===p.STRUCTURED_PLAYLIST_MIMETYPE&&this._structuredPlaylistPlugin&&this._structuredPlaylistPlugin.onMediaItemEnded(t)},i.prototype._setVideoRecommendationsContinuousPlay=function(){this._model.videoRecommendations&&(this.setContinuousPlay(!0),this._model.continuousPlay=!0)},i.prototype._handleOpssVisibilityChanged=function(t,e){var i=this.getCurrentMediaItem(),n=i&&i.license,r={version:this._player.version,config:this._player.oathConfig,lmsId:n&&n.salesforceId||""};this._view.updateOathPlayerOpss(t,e,r)},i.prototype._scheduleNextNetworkRestrictionVerification=function(t){var e=this;void 0===t&&(t=18e4),this._networkRestrictionVerifier&&this._networkRestrictionVerifier.scheduleVerification(function(t){t?e._scheduleNextNetworkRestrictionVerification():e._vdmsPlayer.__setError("info","R",l.errorCodes.E_PLAYER,l.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,T.default.ERR_RESTRICTED_NETWORK_TYPE)},t)},i.prototype._registerPlugins=function(){var t=this;this._structuredPlaylistPlugin=new p.default(this._model),this._plugins.push(new c.default),this._plugins.push(new d.default(this._model)),this._plugins.push(new h.default(this._model)),this._plugins.push(new f.default),this._plugins.push(this._structuredPlaylistPlugin),this._plugins.forEach(function(e){t._vdmsPlayer.registerPlugin(e)})},i.prototype._destroyPlugins=function(){this._plugins.forEach(function(t){t.destroy()}),this._plugins=[]},i.prototype._handleLegacyEvents=function(t,i){var n,r;switch(i=i||[],t){case u.Events.AD_BREAK_ITEM_CURRENT:case u.Events.AD_BREAK_ITEM_ENDED:n=i.length&&i[0]&&i[0].id||"",this._player.publish.apply(this._player,[e.LEGACY_EVENTS_MAP[t],n]);break;case u.Events.PLAYBACK_RESUMED:(r=this._vdmsPlayer.getCurrentAdBreakItem())&&this._player.publish.apply(this._player,[b.API.AD_PLAYBACK_RESUME,r.id]);break;case u.Events.PLAYBACK_PAUSE:(r=this._vdmsPlayer.getCurrentAdBreakItem())&&this._player.publish.apply(this._player,[b.API.AD_PLAYBACK_PAUSE]);break;default:e.LEGACY_EVENTS_MAP[t]&&this._player.publish.apply(this._player,[e.LEGACY_EVENTS_MAP[t]].concat(i))}},i.prototype._addPluginConfig=function(){var t,e,i=((t={})[g.VRM_PLUGIN_MIMETYPE]={playerBucket:C.default.getBckt(),experienceName:this._model.experienceName,experienceBucket:this._model.experienceBucket},t);this._config.pluginConfigs=((e={})[u.Plugin.PluginType.AD]=i,e)},i}(a.default);e.default=L},wfVE:function(t,e,i){var n=i("Ruv9");t.exports=new n.Template({code:function(t,e,i){var n=this;return n.b(i=i||""),n.s(n.f("items",t,e,1),t,e,0,10,562,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b('<li class="vp-playlist-item" data-id=\''),n.b(n.v(n.f("id",t,e,0))),n.b("'>"),n.b("\n"+i),n.b('    <img class="vp-playlist-item-image" src=\''),n.b(n.v(n.f("thumbnail",t,e,0))),n.b("'/>"),n.b("\n"+i),n.b('    <div class="vp-playlist-border"></div>'),n.b("\n"+i),n.b('    <div class="vp-playlist-item-gradient">'),n.b("\n"+i),n.b('        <div class="vp-pl-meta">'),n.b("\n"+i),n.b("            <span class='vp-pl-title'>"),n.b(n.v(n.f("title",t,e,0))),n.b("</span>"),n.b("\n"+i),n.b("            <span class='vp-now-playing'>"),n.b(n.v(n.d("strings.NOW_PLAYING",t,e,0))),n.b("</span>"),n.b("\n"+i),n.s(n.f("provider",t,e,1),t,e,0,392,470,"{{ }}")&&(n.rs(t,e,function(t,e,n){n.b("                <span class='vp-pl-provider'>"),n.b(n.v(n.f("provider",t,e,0))),n.b("</span>"),n.b("\n"+i)}),t.pop()),n.b("        </div>"),n.b("\n"+i),n.b("    </div>"),n.b("\n"+i),n.b("    <div class='vp-pl-dur'>"),n.b(n.v(n.f("duration",t,e,0))),n.b("</div>"),n.b("\n"+i),n.b("</li>"),n.b("\n"+i)}),t.pop()),n.fl()},partials:{},subs:{}})},wuUd:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("UDn2"),s=i("ma23"),a=function(t){function e(){var e=t.call(this)||this;return e.mimetype=o.MediaItemMimeType.CONTAINER,e.type=s.PluginType.SOURCE_METADATA,e}return r(e,t),e}(i("3h5f").default);e.default=a},x7P6:function(t,e,i){"use strict";e.Model=f;var n=e.StreamingMode={DASH:"dash",HLS:"hls"};e.MetadataTypes={RAW:"raw",RAW_SUBTITLE:"rawSubtitle",STRUCTURED:"structured"};var r=e.AbrModes={AUTO:"auto",LOW:"low",MID:"medium",HIGH:"high"},o=i("V66C"),s=o.Stream,a=o.StreamTypes,u=i("77/b"),l=i("y5bh").HLSEvent,c=i("nyAz"),d=i("9nRl"),h=i("/iNa"),p=i("hifa");function f(t){if(!(t&&t.userAgent&&t.config&&t.metadata))throw new Error("Incomplete input parameters to Model");this.configure(t.config,t.userAgent),this._media={},this.streams=[],this.altRenditionGroups=[],this._streamUpdater=this.__controller.create(p),this._setMetadata(t.metadata),this.live=t.metadata&&t.metadata.live,this.hasEndlist=!1,this.duration=0,this.bufferLength=0,this.pendingBufferLength=0,this.bufferedRanges={length:0,ranges:[]},this.currentTime=0,this.timescale=9e4,this.TIMESTAMP_COMPARE_EPSILON=.065,this.preloading=!1,this.timedMetadataStore={},this.dimensions=t.config.dimensions?t.config.dimensions:{width:NaN,height:NaN},this.pixelRatio=1,this.bwHistory=t.config.bwHistory,this._abrMode=r.AUTO,this._userReqBitrate=0,this._segTimeMap={},this.currentLoadingStreamIndex=-1,this._pcr=null,this._livePlaybackStartTime=null,this._streamingMode=t.metadata.url&&-1!==t.metadata.url.indexOf(".mpd")?n.DASH:n.HLS,this.drmRequired=!1,this.drmInfo=[]}f.prototype.destroy=function(){this.config=null,this.streams&&(this.streams.forEach(function(t){t.destroy()}),this.streams=[]),this.altRenditionGroups&&(this.altRenditionGroups.forEach(function(t){t.destroy()}),this.altRenditionGroups=[]),this._segTimeMap={},this._streamUpdater.destroy(),this.timedMetadataStore=null},f.prototype.configure=function(t,e){var i=this;i.config=i.config||d.deepCopy(c),i.userAgent=e,t&&(Object.keys(t).forEach(function(e){i.config.hasOwnProperty(e)&&(i.config[e]=t[e])}),i.inWorkerScope=t.inWorkerScope),d.isNullOrUndefined(i.config.demux.startChunkWithKeyFrame)&&i.userAgent&&(i.config.demux.startChunkWithKeyFrame=!(i.userAgent.chrome&&i.userAgent.chrome>=50))},f.prototype.build=function(t){if(t){t.streamingMode===n.DASH&&(this._streamingMode=t.streamingMode,this.drmRequired=t.drm,this._mpd=t,this.live=!(!t.type||"dynamic"!==t.type.toLowerCase()));var e=this._buildAltRenditionGroups(t.renditionGroups);this._buildStreams(t.streamInfoList,e)}},f.prototype._collectDrmInfo=function(t){var e,i,n,r;for(e=0;e<t.length&&(n=t[e].getDrmInfo());e++)for(i=0;i<n.length;i++)r=n[i],h.isDrmItemContained(r,this.drmInfo)||this.drmInfo.push(r)},f.prototype._buildAltRenditionGroups=function(t){var e=this;return t?(Object.keys(t).forEach(function(i){var n=t[i];n&&Object.keys(n).forEach(function(t){var r=e._getAltRenditionGroup(i,t),o=n[t];o&&o.length&&(e._setLiveConfig(o[0]),r?e._updateAlternateRenditionGroup(i,t,o):e._addAlternateRenditionGroup(i,t,o))})}),e._collectDrmInfo(e.altRenditionGroups),e.altRenditionGroups):e.altRenditionGroups},f.prototype._getAltRenditionGroup=function(t,e){for(var i=0;i<this.altRenditionGroups.length;i++){var n=this.altRenditionGroups[i];if(n.type===t&&n.groupId===e)return n}return null},f.prototype._addAlternateRenditionGroup=function(t,e,i){var n=this.metadata&&this.metadata.currLang,r=this.__controller.create(u,t,e,i,n);this.altRenditionGroups.push(r)},f.prototype._updateAlternateRenditionGroup=function(t,e,i){if(i&&i.length){var n=this._getAltRenditionGroup(t,e);i.forEach(function(t){n.update(t)})}},f.prototype._buildStreams=function(t,e){var i=this;t&&t.length&&((t=i._filterStreams(t)).forEach(function(t){t.sessionId=i.sessionId,t.type=a.MAIN,i._setLiveConfig(t);for(var n=!1,r=i.isDash()?"groupId":"url",o=0;o<i.streams.length;o++){if(i.streams[o][r]===t[r]){i.updateStream(o,t),n=!0;break}}n||i.addStream(t,e)}),i._collectDrmInfo(i.streams),i._sortStreams(),i.duration=i.live?NaN:t[0].duration)},f.prototype._filterStreams=function(t){return t&&t.length?(this.userAgent.firefox&&t[0].channels&&(t=this._filterMonoChannelStreams(t)),t=t.filter(function(t){var e=t.codecs;if(!e)return!0;for(var i=0;i<e.length;i++)if(-1===e[i].indexOf("avc1")&&-1===e[i].indexOf("mp4a")&&-1===e[i].indexOf("aac"))return!1;return!0})):t},f.prototype._filterMonoChannelStreams=function(t){for(var e=!1,i=t[0].channels,n=1;n<t.length;n++)if(t[n].channels&&i!==t[n].channels){e=!0;break}return e?t.filter(function(t){return 1!==t.channels}):t},f.prototype.isDash=function(){return this._streamingMode===n.DASH},f.prototype.addStream=function(t,e){var i=this.__controller.create(s,t,e);this.streams.push(i),i.setStreamIndex(this.streams.length-1),this._streamUpdater.addStream(i),1===this.streams.length&&this.setCurrentLoadingStream(i.index)},f.prototype.updateStream=function(t,e){t>=this.streams.length||(!0===e.hasEndList&&(this.hasEndlist=!0),this._streamUpdater.update(e))},f.prototype.synchStreamTimelines=function(t){var e=this.getCurrentLoadingStream();if(e&&this.live&&e.segments.length){var i=e.segments[0].programDateTime,n=e.segments[0].startTime;d.isNullOrUndefined(i)||d.isNullOrUndefined(n)||this.altRenditionGroups.forEach(function(e){t&&e.type!==t||e.adjustStartTime(n,i)})}},f.prototype.getCurrentLoadingStream=function(){return this.getStreamByIndex(this.currentLoadingStreamIndex)},f.prototype.setCurrentLoadingStream=function(t){this.streams&&this.streams.length&&(t<0||t>=this.streams.length||(this.currentLoadingStreamIndex=t))},f.prototype.getCurrentPlayingStream=function(){return this.getStreamByIndex(this.currentPlayingStreamIndex)},f.prototype.setCurrentPlayingStream=function(t){this.streams&&this.streams.length&&(t<0||t>=this.streams.length||(this.currentPlayingStreamIndex=t))},f.prototype.getTotalBufferLength=function(){for(var t=this.bufferedRanges,e=0,i=0;i<t.length;i++)e+=t.ranges[i].end-t.ranges[i].start;return e},f.prototype.setPCR=function(t){(null===this._pcr||void 0===this._pcr||isNaN(this._pcr))&&(this._pcr=t,this.__controller.sendEvent(l.PCR_AVAILABLE,t))},f.prototype.getPCR=function(){return this._pcr},f.prototype.setLivePlaybackStartTime=function(t){this._livePlaybackStartTime=t},f.prototype.getLivePlaybackStartTime=function(){return this._livePlaybackStartTime},f.prototype.setStartOffset=function(t){this.startOffsetTimestamp&&!isNaN(this.startOffsetTimestamp)||(this.startOffsetTimestamp=t)},f.prototype.setSegEndTimeStamps=function(t,e,i,n){if(t&&n){var r=t===a.MAIN?this.streams:this._getAltRenditionGroup(t,e);r&&r.length&&r.forEach(function(t){var e=t.getSegmentfromSeqNum(i);e&&(e.endTimestamps.audio=n.audio,e.endTimestamps.video=n.video)})}},f.prototype.getPrevSegEndTimestamps=function(t,e){if(!t||!e)return null;var i=t.getIndexFromSeqNum(e.seqNum);return i>=1&&t.segments&&i<t.segments.length?t.segments[i-1].endTimestamps:null},f.prototype.getStreamRefreshInterval=function(){var t=this.getCurrentLoadingStream();return t?t.refreshInterval:null},f.prototype._setMetadata=function(t){if(t){this.sessionId=t?t.sessionId:null,this.is360=!!t&&t.is360,t.type=e.MetadataTypes.RAW,this.metadata=t;var i=t.streams,n=t.altStreams;i&&i.length>0&&((i[0].hls_info||i[0].hlsInfo||i.length>1)&&(this.metadata.type=e.MetadataTypes.STRUCTURED,this.metadata.hasMediaMetadata=!0),(i[0].hls_info||i[0].hlsInfo)&&(this.metadata.hasStreamMetadata=!0)),this.metadata.hasMediaMetadata||this.metadata.hasStreamMetadata||(this._media=i&&1===i.length?i[0]:t),n&&n.length&&(this.metadata.hasAltStreamMetadata=!0)}},f.prototype._sortStreams=function(){this.streams.sort(function(t,e){return t.bitrate-e.bitrate}),this.streams.forEach(function(t,e){t.index=e,t.segments.forEach(function(t){t.setStreamIndex(e)})})},f.prototype.getSegment=function(t,e){return t<0||t>=this.streams.length?null:this.streams[t].getSegmentfromSeqNum(e)},f.prototype._getFallbackStreams=function(t){var e=[];return this.streams.forEach(function(i){i.index!==t&&e.push({index:i.index,url:i.url})}),e},f.prototype.setABRMode=function(t){var e=this,i=e._abrMode;return e._abrMode=r.AUTO,Object.keys(r).forEach(function(i){r[i]===t.preference&&(e._abrMode=t.preference)}),e._userReqBitrate=1e3*t.stream.bitrate,i!==e._abrMode},f.prototype.getABRMode=function(){return this._abrMode},f.prototype.setAudioLanguage=function(t){var e=!1;return this.altRenditionGroups.forEach(function(i){i.type===a.AUDIO&&(e=i.setCurrentStreamWithName(t)||e)}),e},f.prototype.getMediaDto=function(){var t={streams:[],altRenditionGroups:[],live:this.live,duration:this.duration,currentPlayingStreamIndex:this.currentPlayingStreamIndex,currentLoadingStreamIndex:this.currentLoadingStreamIndex,preloading:this.preloading,currentKbps:this.__controller.services.segmentMetrics.getMetricsBandwidthInfo(),abrMode:this._abrMode,streamingMode:this._streamingMode,drmRequired:this.drmRequired,drmInfo:this.drmInfo};return this.streams.forEach(function(e){t.streams.push(e.dto())}),t},f.prototype.getUserReqBitrate=function(){return this._userReqBitrate},f.prototype._setLiveConfig=function(t){t&&t.segmentInfoList&&!d.isNullOrUndefined(t.hasEndList)&&d.isNullOrUndefined(this.live)&&(this.live=!t.hasEndList)},f.prototype.getMediaUrl=function(){var t=this._media.url||"";return!t.length&&this._media.host&&this._media.path&&(t=this._media.host+this._media.path),t},f.prototype.getMediaCdn=function(){return this._media.cdn||""},f.prototype.getStreamByIndex=function(t){return this.streams&&this.streams.length&&t>=0&&t<this.streams.length?this.streams[t]:null},f.prototype.getSegmentLength=function(){return this.streams&&this.streams.length?this.streams[0].targetDuration:NaN},f.prototype.updateTimedMetadata=function(t,e){if(t&&t.payload){this.timedMetadataStore[e]=this.timedMetadataStore[e]||[];for(var i=this.timedMetadataStore[e].length,n=0;n<this.timedMetadataStore[e].length;n++){var r=this.timedMetadataStore[e][n];if(Math.abs(r.timestamp-t.timestamp)<=.1)return!1;if(t.timestamp<r.timestamp){i=n;break}}return this.timedMetadataStore[e].splice(i,0,t),!0}}},xG2L:function(t,e,i){"use strict";var n=i("6ayh"),r=n("%TypeError%"),o=n("%SyntaxError%"),s=i("oNNP"),a={"Property Descriptor":function(t,e){if("Object"!==t.Type(e))return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(s(e,n)&&!i[n])return!1;var o=s(e,"[[Value]]"),a=s(e,"[[Get]]")||s(e,"[[Set]]");if(o&&a)throw new r("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(t,e,i,n){var s=a[e];if("function"!=typeof s)throw new o("unknown record type: "+e);if(!s(t,n))throw new r(i+" must be a "+e)}},xOqZ:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("rH6S"),r=i("ToqN"),o=i("A4+F"),s=i("PCHl"),a=i("KxEA"),u=i("8PPl"),l=i("O/dN"),c=i("oIMU"),d=i("gp5d"),h=i("dgSz"),p=i("UDn2"),f=i("EUld"),_=i("++Nx"),m=i("mKXf"),y=i("ma23"),v=i("mczr"),g=i("WSjl"),E=i("kdA9"),b=i("2IYR"),S=i("R+G7"),A=i("fLR+"),T=i("+Ojf"),I=i("FHv4"),C=i("iLlr"),R=i("D77f"),L=i("jslM"),P=i("BHlS"),O=i("KZhz"),D=i("BHZG"),M=i("S4Ou"),w=i("3h5f"),N=i("wuUd"),k=i("aQXI"),B=i("yFah"),x=i("Pqkt"),U=i("v0b8"),V=i("zC69"),j=i("Mjcq"),F=function(){function e(t,e,i,n,r){this._defaultPlugins=[],this._firstPlaylistBatchLoaded=!1,this._firstPlay=!0,this._config=t,this._profiler=r,this._eventBus=n,this._eventBus.publish(c.PROFILE_START,[c.METRICS.RENDER_TO_SWF,c.METRICS.VP_CONSTRUCTOR]),this._model=new _.default(t,e,i),this._mediaStore=this._model.mediaStore,this._setupMediaStoreEvents(),this._playerEventsListenerPlugins=[],this._pluginManager=new m.default,this._commandManager=new a.default(this._pluginManager),this._preloadManager=new L.default(this._eventBus),this._setupPreloadManagerEvents(),this._playbackController=new R.PlaybackController(this._model,this._eventBus,this._pluginManager),this._setupPlaybackControllerEvents(),this._model.autoplay&&this._eventBus.publish(c.PROFILE_START,c.METRICS.INIT_TO_START),this._createRecoverer(),this._bindEvents(),this._eventBus.publish(c.PROFILE_END,c.METRICS.VP_CONSTRUCTOR),this._eventBus.publish(c.PROFILE_START,c.METRICS.INIT_RENDER_GAP),this._createVisibilityManager(),this._registerDefaultPlugins()}return e.prototype.initialize=function(){this._metadataController||(this._metadataController=new C.MetadataController(this._commandManager,this._model),this._setupMetadataControllerEvents(),this.fetchMetadata())},e.prototype.fetchMetadata=function(t){this._metadataController&&this._metadataController.loadMetadata(t)},e.prototype.destroy=function(){this._view&&this._view.destroy(),this._destroyRecoverer(),this._eventBus&&this._eventBus.destroy(),this._ccController&&this._ccController.destroy(),this._model&&this._model.destroy(),this._metadataController&&this._metadataController.destroy(),this._playbackController&&this._playbackController.destroy(),this._visibilityManager&&this._visibilityManager.destroy(),this._cleanupDefaultPlugins(),this._pluginManager.destroy(),this._commandManager.destroy()},e.prototype.render=function(t){this._eventBus.publish(c.PROFILE_END,c.METRICS.INIT_RENDER_GAP),this._eventBus.publish(c.PROFILE_START,c.METRICS.CREATE_RENDERER),this._setupVisibilityManagerEvents();var e=A.isString(t)?document.querySelector(t):t;if(null===e&&this._eventBus.publish(c.ERROR,this._createConfigError(l.PLAYER_CODES.E_INVALID_CONFIGURATION,!1,"Invalid DOM node or CSS selector specified. Cannot render player.")),this._view=new I.default(e,this._model,this._eventBus,this._profiler,this._pluginManager,this._playbackController),this._setupViewEvents(),this._model.playerRootElement=e,this._view.render(),this._playlistController=this._view.getPlaylistController(),A.isFunction(s.CCController)&&(this._ccController=new s.CCController(this._eventBus,this._model,this._view),this._setupCCControllerEvents()),this._model.firstCriticalError)this._onError(this._model.firstCriticalError);else{if(this._playerReadyEventFired=!1,this._view.syncViewState(),this._model.autoplay){var i={type:u.REQUEST_TYPES.AUTOPLAY,action:u.REQUEST_TYPES.AUTOPLAY};this.play(i)}else{var n=this._model.playlist.getCurrentItem();this._preloadManager.setPreloadItem(n),this._preloadManager.startPreload()}this._eventBus.publish(o.ExternalEvt.PLAYER_RENDERED),this._eventBus.publish(c.PROFILE_END,c.METRICS.CREATE_RENDERER),this._view.setTheme(this._config.cssTheme)}},Object.defineProperty(e.prototype,"model",{get:function(){return this._model},enumerable:!0,configurable:!0}),e.prototype.registerPlugin=function(t){var e=this._model.config,i=e.pluginConfigs&&e.pluginConfigs[t.type]&&e.pluginConfigs[t.type][t.mimetype];switch(t.type){case y.PluginType.AD:i=Object.assign({autoplay:e.autoplay,playerGuid:this._model.guid,timeout:{hard:e.ads.timeout.load,start:e.ads.timeout.start,maxAdSearch:e.ads.timeout.maxAdSearch||604800},disableFailoverOnDlvFailure:!1},i)}this._pluginManager.register(t,i),A.isPlayerPluginEventListener(t)&&this._playerEventsListenerPlugins.push(t)},Object.defineProperty(e.prototype,"rootElement",{get:function(){return this._model.rendered?this._view.getRootElement():null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoElement",{get:function(){return this._model.rendered?this._view.getVideoElement():null},enumerable:!0,configurable:!0}),e.prototype.supportSendBeacon=function(){return!(r.userAgent.ie||r.userAgent.safari||r.userAgent.ios)},e.prototype.play=function(t){void 0===t&&(t=null),this._playbackController.startPlayback(t)},e.prototype.pause=function(t){!this._model.isPaused()&&this._model.playbackState.shouldPlay&&(this._playbackController.pause(t),this._eventBus.publish(c.CTRL_PLAYPAUSE,"pause"))},e.prototype.seek=function(t){this._playbackController.seek(t)},e.prototype.recover=function(){this._recoverer&&this._recoverer.recover()},e.prototype.preload=function(){this._preloadManager.startPreload()},e.prototype.stopPreload=function(){this._preloadManager.stopPreload()},e.prototype.disableControls=function(){this._model.rendered&&this._view.disableControls()},e.prototype.enableControls=function(){this._model.rendered&&this._view.enableControls()},e.prototype.enableCC=function(t){this._ccController&&this._ccController.enable(t)},e.prototype.disableCC=function(){this._ccController&&this._ccController.disable()},e.prototype.isPlayMode=function(){var t=this._model.getState();return(t===g.default.VIDEO||t===g.default.WAITING)&&!this._model.isPaused()},e.prototype.isLoading=function(){return this._model.playbackState.videoLoading()},e.prototype.setCustomError=function(t,e,i,n,r){if(/^player-/.test(t)||(t="player-"+t),-1===[c.ERROR,c.WARNING,c.INFO].indexOf(t))throw new Error("invalid error level");if(-1===Object.keys(l.ErrorGroup).map(function(t){return l.ErrorGroup[t]}).indexOf(e))throw new Error("invalid error group");this._eventBus.publish(t,T.default.createErr(e,this._model.playbackState,i,n,r))},Object.defineProperty(e.prototype,"fullscreen",{get:function(){return!!this._model.rendered&&this._view.getFullscreen()},set:function(t){this._model.rendered&&this._view.setFullscreen(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._model.volume},set:function(t){t>0&&!this._model.muteMode&&(this._model.mute=!1),E.default.put(u.LocalStorageKey.VOLUME,{volume:t,mute:this._model.mute}),this._model.rendered&&this._playbackController.setVolume(t),this._view.updateVolumeUI(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._model.rendered?this._playbackController.getCurrentTime():0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawCurrentTime",{get:function(){return this._model.rendered?this._playbackController.getRawCurrentTime():0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mute",{get:function(){return this._model.mute},set:function(t){this._model.muteMode&&this._model.mute||(E.default.put(u.LocalStorageKey.VOLUME,{volume:this._model.volume,mute:t}),this._model.rendered&&this._playbackController.setMute(t),this._view.updateVolumeUI(this._model.volume,t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loop",{set:function(t){this._model.loop=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"continuousPlay",{get:function(){return this._model.continuousPlay},set:function(t){this._model.continuousPlay=t},enumerable:!0,configurable:!0}),e.prototype.resumeContinuousPlay=function(t){this._playbackController.resumeContinuousPlay(t)},Object.defineProperty(e.prototype,"autoplay",{get:function(){return this._model.autoplay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mediaStore",{get:function(){return this._model.mediaStore},enumerable:!0,configurable:!0}),e.prototype.getPlaybackState=function(){return this._model.getState()},e.prototype.getCurrentMediaItem=function(){return this._model.playlist.getCurrentItem()},e.prototype.getPlaylistItems=function(){return this._model.playlist.getItems().map(function(t){return{id:t.id,mimetype:t.mimetype}})},e.prototype.getPlaylistItemIds=function(){return this._model.playlist.getItemIds()},e.prototype.getPlaylist=function(){return this._model.playlist},Object.defineProperty(e.prototype,"rendered",{get:function(){return this._model.rendered},enumerable:!0,configurable:!0}),e.prototype.updateCurrentItemTitle=function(t){this._view.updateCurrentItemTitle(t)},e.prototype.addCustomControlElement=function(t){return this._view.addCustomControlElement(t)},e.prototype.setPlaylistPosition=function(t,e,i){this._playbackController.setPlaylistPosition(t,e,i)},e.prototype.sendPrefetchInfo=function(t){var e={url:t.url,source:t.source,latency:t.latency||"na",http_code:t.http_code||"na",resp_len:t.resp_len||"na",instrument:t.instrument||"na",perfInfo:t.perfInfo||"na",perfStack:t.perfStack||"na"};return!(!e.source||!e.url)&&(this._eventBus.publish(c.API_CALLED,e),!0)},e.prototype.removePlaylistItems=function(t,e){this._model.playlist.removeItems(t,e)},e.prototype.error=function(t){t&&this._eventBus.publish(c.ERROR,this._createConfigError(t.code,!1,t.msg))},Object.defineProperty(e.prototype,"docked",{get:function(){return!!this._model.rendered&&this._view.isDocked()},enumerable:!0,configurable:!0}),e.prototype.updateDockingConfig=function(t,e,i,n,r,o){this._model.rendered&&this._view.updateDockingConfig(t,e,i,n,r,o)},e.prototype.dockVideoPlayer=function(){this._model.rendered&&this._view.dockVideoPlayer()},e.prototype.undockVideoPlayer=function(t){this._model.rendered&&this._view.undockVideoPlayer(t)},e.prototype.initNewPlayback=function(){var t=this.getCurrentMediaItem();this._playbackController.initNewPlayback(t)},Object.defineProperty(e.prototype,"startTime",{set:function(t){this._model.startTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentDate",{get:function(){return this._model.rendered?this._playbackController.getCurrentDate():0},enumerable:!0,configurable:!0}),e.prototype.getEventsDto=function(){return this._model.getEventsDto()},e.prototype.getPlayingItem=function(){return this._playbackController.getPlayingItem()},Object.defineProperty(e.prototype,"duration",{get:function(){return this._playbackController.getDuration()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawDuration",{get:function(){return this._playbackController.getRawDuration()},enumerable:!0,configurable:!0}),e.prototype._bindEvents=function(){var t=this;this._eventBus.addEventListener(c.ERROR,this._onError,this),this._eventBus.addEventListener(c.INFO,this._onError,this),this._eventBus.addEventListener(c.WARNING,this._onWarning,this),this._eventBus.addEventListener(c.RELATED_ITEM_CLICK,this._onRelatedItemClick,this),this._eventBus.addEventListener(c.TOGGLE_PLAY_PAUSE,this._togglePlayPause,this),this._eventBus.addEventListener(c.CONTROLS_SEEK_START,this._onControlsSeekStart,this),this._eventBus.addEventListener(c.CONTROLS_SEEK_END,this._onControlsSeekEnd,this),this._eventBus.addEventListener(c.CONTROLS_SEEKING,this._onControlsSeeking,this),this._eventBus.addEventListener(c.PLAYBACK_REQUEST,this._onPlaybackRequest,this),this._eventBus.addEventListener(c.PLAYER_DIMENSION_CHANGE,this._onDimensionChange,this),this._eventBus.addEventListener(c.MEDIA_RELOAD_BEGIN,this._onMediaReloadBegin,this),this._eventBus.addEventListener(c.MEDIA_RELOAD_END,this._onMediaReloadEnd,this),this._eventBus.addEventListener(o.ExternalEvt.BITRATE_CHANGE,this._onBitrateChange,this),this._eventBus.addEventListener(c.KEYDOWN,this._onKeyDown,this),this._eventBus.addEventListener(c.BITRATE_LIST_CHANGED,this._onBitrateListChanged,this),this._eventBus.addEventListener(c.RELOAD_FRAGMENT,this._onReloadFragment,this),this._eventBus.addEventListener(c.ER_READY,this._onER,this),this._eventBus.addEventListener(c.CONTENT_LOAD_FINISHED,this._onContentLoadFinished,this),this._eventBus.addEventListener(c.PRELOAD_COMPLETE,this._onPreloadComplete,this),this._eventBus.addEventListener(c.LIVE_RELOAD_MEDIA,this._onReloadMedia,this),this._model.waitingForUserTap&&this._eventBus.once(c.TOUCH_TO_PLAY_RESTRICTION_REMOVED,function(){t._model.waitingForUserTap=!1},this)},e.prototype._registerDefaultPlugins=function(){var t=this;this._defaultPlugins.push(new U.default),this._defaultPlugins.push(new x.default),this._defaultPlugins.push(new j.default),this._defaultPlugins.push(new D.default),this._defaultPlugins.push(new w.default),this._defaultPlugins.push(new N.default),this._defaultPlugins.push(new n.VrmAdPlugin),this._defaultPlugins.push(new M.default),this._defaultPlugins.push(new k.default),this._defaultPlugins.push(new B.default),this._defaultPlugins.push(new V.default),this._defaultPlugins.forEach(function(e){t.registerPlugin(e)}),this._pluginManager.defaultPlugins=this._defaultPlugins},e.prototype._cleanupDefaultPlugins=function(){this._defaultPlugins.forEach(function(t){t.destroy()}),this._defaultPlugins=[]},e.prototype._publishToPlugin=function(e){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var r=function(n){t(function(){try{n.onPlayerEvent.apply(n,[e].concat(i))}catch(t){}})},o=0,s=this._playerEventsListenerPlugins;o<s.length;o++){var a=s[o];r(a)}},e.prototype._createRecoverer=function(){this._recoverer||(this._recoverer=new P.default(this._model),this._setupRecovererEvents())},e.prototype._createVisibilityManager=function(){this._visibilityManager=new O.default(this._model)},e.prototype._setupVisibilityManagerEvents=function(){var t=this;this._visibilityManager.activate(),this._visibilityManager.on(O.VisibilityEvent.PAGE_VISIBILITY_CHANGED,function(e){t._playbackController.handleVisibilityChange(e)},this)},e.prototype._notifyVideoStarted=function(){this._notifedVideoStarted||(this._eventBus.publish(c.PROFILE_END,[c.METRICS.PLAYBACK_START,c.METRICS.INIT_TO_START,c.METRICS.CLICK_TO_START]),this._eventBus.publish(o.ExternalEvt.VIDEO_STARTED),this._notifedVideoStarted=!0),this._clearPlaybackTimeout()},e.prototype._togglePlayPause=function(){this._model.castState&&this._model.castState.connected||this._model.getState()===g.default.VIDEO&&(this._model.isPaused()?(this._playbackController.startPlayback({type:u.REQUEST_TYPES.CLICK,action:u.REQUEST_TYPES.PLAY}),this._eventBus.publish(c.CTRL_PLAYPAUSE,"play")):(this._playbackController.pause({type:u.REQUEST_TYPES.CLICK,action:u.REQUEST_TYPES.PAUSE}),this._eventBus.publish(c.CTRL_PLAYPAUSE,"pause")))},e.prototype._onKeyDown=function(t){var e=t.keyCode,i="key-"+e;32!==e&&38!==e&&40!==e||(t.preventDefault(),this._eventBus.publish(o.ExternalEvt.UI_INTERACT,{srcElement:i}))},e.prototype._onCastConnectionChange=function(t,e){if(t)this._model.playbackState.isVideoPlaying()&&this._playbackController.pauseCurrent();else if(e.playlist_pos===this._model.playlist.position){var i=this._model.playlist.getCurrentItem();this._model.getState()===g.default.VIDEO&&i&&!i.isLive()&&this.seek(i.position),this.play()}else if(A.isNumber(e.playlist_pos)&&"unknown"!==e.playlist_pos)this.setPlaylistPosition(e.playlist_pos,!0);else if(e.media_uuid){var n=this._model.playlist.getItemPosition(e.media_uuid);this.setPlaylistPosition(n>-1?n:0,!0)}else this.play();this._view.syncViewState()},e.prototype._onPlaybackRequest=function(){this._setPlaybackTimeout(),this._createConvivaSession()},e.prototype._setPlaybackTimeout=function(){var t=this,e=this._model.playlist.getCurrentItem();!this._playbackTimeout&&e&&e.state!==p.ItemState.ERROR&&(this._playbackTimeout=window.setTimeout(function(){t._eventBus.publish(o.ExternalEvt.PLAYBACK_TIMEOUT,t._createStreamingError(l.WARNING_CODES.E_PLAYBACK_TIMEOUT,!0,"No playback after 10 seconds of requesting to play on player"))},1e4))},e.prototype._createConvivaSession=function(){var t=this._model.playlist.getCurrentItem();t&&t.rendererType===v.RendererType.HTML5_HLS&&this._eventBus.publish(c.CONVIVA_READY_FOR_SESSION_CREATION,t)},e.prototype._clearPlaybackTimeout=function(){this._playbackTimeout&&clearTimeout(this._playbackTimeout)},e.prototype._onDimensionChange=function(t){this._model.uiState.width=t.width,this._model.uiState.height=t.height,this._model.uiState.videoWidth=t.videoWidth,this._model.uiState.videoHeight=t.videoHeight,this._view&&this._view.controls&&this._view.controls.onPlayerResize(t)},e.prototype._onStartScreenClick=function(){r.userAgent.mobile&&S.default.autoplaySupported&&this._model.playbackState.mute&&!this._model.muteMode&&!this._model.config.mute&&(this.mute=!1),this._eventBus.publish(c.CTRL_PLAYREQUEST,"ctp");var t={type:u.REQUEST_TYPES.CLICK,action:u.REQUEST_TYPES.CLICK};this._playbackController.startPlayback(t),this._view.getContentNode().focus(),S.default.hasLoadRestriction&&this._model.autoplay&&b.default&&(this._model.waitingForUserTap=!1)},e.prototype._onRelatedItemClick=function(t,e,i){var n,r=this._model.playlist,s={srcElement:"next-vid-"+e},a=-1===e?c.CTRL_REPLAY:c.CTRL_ENDSCREEN_VID;-1===e&&(s.srcElement="es-rpl"),e>-2&&this._eventBus.publish(o.ExternalEvt.UI_INTERACT,s),this._eventBus.publish(a,{vid:t,vindex:e});var l={type:u.REQUEST_TYPES.CONTINUOUS,action:i?u.REQUEST_TYPES.AUTOPLAY:u.REQUEST_TYPES.CLICK};n=r.getItemPosition(t),this.setPlaylistPosition(n,!0,l)},e.prototype._onError=function(t){var e=this;if(this._recoverer.onError(t),this._eventBus.publish(c.INTERNAL_ERROR,t),!this._recoverer||!t.isRecoverable){try{throw new Error("Stack Trace")}catch(t){}this._model.errors.push(t),this._maybeSkip(function(){var t=e._model.firstCriticalError;t&&(e._recoverer.stopTimers(),e._playbackController.handleCriticalError(t),e._applyErrorFilters(t),e.disableCC(),e._view&&e._view.syncViewState())})}},e.prototype._onWarning=function(t,e){e&&this._onError(t)},e.prototype._onReloadFragment=function(t){this._eventBus.publish(c.WARNING,this._createStreamingError(l.PLAYER_CODES.E_PLAYER_RELOAD_FRAGMENT,!0,null,t))},e.prototype._applyErrorFilters=function(t){var e=function(){r.userAgent.desktop&&(t.category=l.E_PLAYER,t.subcategory=l.PLAYER_CODES.E_PLAYER_NOT_ENABLED)};switch(t.category){case l.E_SAPI_ABSTRACT:case l.E_SAPI_STREAM:case l.E_SAPI_PLAYLIST:case l.E_SAPI_RELATED:case l.E_SAPI_POPULAR:switch(t.subcategory){case l.INFO_CODES.E_SAPI_UNSUPPORTED_LIVE_ON_HTML:r.userAgent.android?(t.category=l.E_INFO,t.subcategory=l.INFO_CODES.E_PLAYER_ANDROID_CHROME_REQUIRED):e();break;case l.SAPI_CODES.E_SAPI_DRM_RESTRICTED:r.userAgent.desktop&&e()}break;case l.E_PLAYER:switch(t.subcategory){case l.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_ENCRYPTED:e()}}},e.prototype._initiateAgeGate=function(){},e.prototype._onControlsSeekStart=function(){this._model.isSeeking()||(this._model.setSeeking(!0),this._view.syncViewState())},e.prototype._onControlsSeekEnd=function(){this._model.isSeeking()&&(this._model.isPaused()||this._playbackController.playCurrent(),this._model.setSeeking(!1),this._view.syncViewState())},e.prototype._onControlsSeeking=function(t){this._model.castState&&this._model.castState.connected||this._playbackController.seekCurrent(t)},e.prototype._onBitrateChange=function(t){this._model.bitrate=t},e.prototype._onMediaReloadBegin=function(){this._toggleSpinner(!0)},e.prototype._onMediaReloadEnd=function(){this._toggleSpinner(!1)},e.prototype._toggleSpinner=function(t){this._model.setLoading(t),this._view.syncViewState()},e.prototype._onBitrateListChanged=function(t,e){this._model.bitrates=t,this._model.heights=e},e.prototype._onRecoveryStart=function(){this._model.isLoading()||(this._model.setLoading(!0),this._view.syncViewState());var t=this._model.playlist.getCurrentItem();t&&this._metadataController.recover(t)},e.prototype._onRecoveryMetadata=function(t){if(this._recoverer.recovering){var e=this._model.getState();this._playbackController.getCurrentTime()>0&&(this._model.startTime=this._playbackController.getCurrentTime()),this._recoverer.onRecoveryMetadataReady(),this._playbackController.handleSourceAvailable(t),t.recoveryStatus=p.ItemRecoveryStatus.RECOVERED,e===g.default.VIDEO&&this._playbackController.playCurrent(this._model.startTime)}else t.recoveryStatus=p.ItemRecoveryStatus.NOT_RECOVERING},e.prototype._onER=function(t){},e.prototype._destroyRecoverer=function(){this._recoverer&&(this._recoverer.destroy(),this._recoverer=null)},e.prototype._maybeSkip=function(t){var e=this,i=this._model&&this._model.playlist&&this._model.playlist.getCurrentItem();switch(i&&i.is360Video()&&(this._model.skipOnError=d.SkipOnError.TIMEBASED),this._model.skipOnError){case d.SkipOnError.ALWAYS:this._maybeSkipImpl(t);break;case d.SkipOnError.TIMEBASED:t(),window.setTimeout(function(){e._maybeSkipImpl()},1e4);break;case d.SkipOnError.NEVER:default:t()}},e.prototype._maybeSkipImpl=function(t){var e=this,i=this._model.playlist.getNextPosition(!0,this._model.loop),n=this._model.playlist.position,r=this._model.autoplay||this._model.continuousPlay&&this._model.playbackState.hasStartedPlayback;-1!==i&&i!==n?(this.setPlaylistPosition(i,r),this._view&&this._view.syncViewState()):-1===i&&this._eventBus.publish(o.ExternalEvt.PLAYLIST_COMPLETE,function(t,n){i=e._model.playlist.getNextPosition(!0,e._model.loop),!t&&n&&-1!==i?e.setPlaylistPosition(i,r):(e._model.setState(g.default.END),e._model.playbackState.criticalError=e._model.firstCriticalError,e._view&&e._view.syncViewState())})},e.prototype._onContentLoadFinished=function(t){if(t){var e,i=this._model.playlist,n=i.getCurrentPosition(),r=i.getNextPosition(!0,this._model.loop);-1!==r&&r!==n&&(e=i.getMediaItemAt(r))&&(e.mayUpdateVideoSession(),this._preloadManager.setPreloadItem(e),this._preloadManager.startPreload())}},e.prototype._onPreloadComplete=function(){},e.prototype._onReloadMedia=function(){this._recoverer.recover(4)},e.prototype._createStreamingError=function(t,e,i,n){return T.default.createErr(l.ErrorGroup.Streaming,this._model.playbackState,e?l.E_WARNING:l.E_PLAYER,t,i,n)},e.prototype._createConfigError=function(t,e,i,n){return T.default.createErr(l.ErrorGroup.Configuration,this._model.playbackState,e?l.E_WARNING:l.E_PLAYER,t,i,n)},e.prototype._setupMediaStoreEvents=function(){var t=this,e=this._mediaStore;e.on(f.MediaStoreEvent.MEDIA_ITEM_ADDED,function(e){t._eventBus.publish(c.MEDIA_ITEM_ADDED,e)},this),e.on(f.MediaStoreEvent.MEDIA_ITEM_REMOVED,function(e){t._eventBus.publish(c.MEDIA_ITEM_REMOVED,e)},this)},e.prototype._buildPluginMediaItemProxy=function(t){return t?{id:t.id,duration:t.duration}:null},e.prototype._setupPlaybackControllerEvents=function(){var t=this,e=this._playbackController;e.on(R.PlaybackEvent.PLAY_CAST,function(){},this),e.on(R.PlaybackEvent.PAUSE_CAST,function(){},this),e.on(R.PlaybackEvent.SEEK_CAST,function(){},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR_BEFORE_METADATA_READY,function(){t._eventBus.publish(c.INFO,t._createConfigError(l.PLAYER_CODES.E_PLAYER_HTML5_PLAYBACK_ERROR_PLAY_INITIATED_BEFORE_METADATA_READY,!0,"Cannot play before metadata is available"))},this),e.on(R.PlaybackEvent.PLAYLIST_NO_MORE_ITEM_TO_PLAY,function(){t._destroyRecoverer()},this),e.on(R.PlaybackEvent.PLAYBACK_LOADING,function(e){t._view.syncViewState(),t._model.fullscreen&&t._view.setFullscreen(!0)},this),e.on(R.PlaybackEvent.PLAYBACK_PAUSING,function(){t._view.syncViewState()},this),e.on(R.PlaybackEvent.AD_BREAK_STARTED,function(e){t._view.onAdBreakStarted(e),t._view.syncViewState(),t._playlistController.onAdBreakStarted(),t._eventBus.publish(c.AD_BREAK_STARTED,e)},this),e.on(R.PlaybackEvent.AD_BREAK_ENDED,function(e){t._view.onAdBreakEnded(e),t._view.syncViewState(),t._playlistController.onAdBreakEnded(),t._eventBus.publish(c.AD_BREAK_ENDED,e)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_CURRENT,function(e){t._view.onAdBreakItemCurrent(e),t._eventBus.publish(c.AD_BREAK_ITEM_CURRENT,e)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_STARTED,function(e){t._notifyVideoStarted(),t._view.syncViewState(),t._view.onAdBreakItemStarted(e),t._ccController.onAdPlaybackStarted(e);var i=e.adBreak,n=i.adBreakItems.length;if(i.adBreakItems[n-1]===e){var r=i.mediaItem;t._preloadManager.setPreloadItem(r),t._preloadManager.startPreload()}},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_SKIPPED,function(e){t._eventBus.publish(c.AD_BREAK_ITEM_SKIPPED,e)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_RESUMED,function(e){t._eventBus.publish(c.PLAYBACK_RESUMED,e?e.id:null)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_ENDED,function(e){t._view.onAdBreakItemEnded(e),t._eventBus.publish(c.AD_BREAK_ITEM_ENDED,e)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_STOPPED,function(t){},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_PLAYBACK_PROGRESS,function(e){t._view.onAdPlaybackProgress(e),t._publishToPlugin(y.PluginPlayerEvent.AD_PLAYBACK_PROGRESS,{currentTime:t._model.playbackState.currentTime,duration:t._model.playbackState.duration}),t._ccController.onAdPlaybackProgress(e)},this),e.on(R.PlaybackEvent.AD_BREAK_ITEM_ERROR,function(e){t._eventBus.publish(c.AD_BREAK_ITEM_ERROR,e)},this),e.on(c.AD_SUBTITLE_TRACK_ADDED,function(e){t._eventBus.publish(c.AD_SUBTITLE_TRACK_ADDED,e)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_CURRENT,function(e){t._view&&t._view.onMediaItemCurrent(e),t._playlistController&&t._playlistController.onMediaItemCurrent(e),t._eventBus.publish(c.MEDIA_ITEM_CURRENT,e)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STARTED,function(e){t._notifyVideoStarted(),t._view.onMediaItemPlaybackStarted(e),t._ccController.onMediaItemPlaybackStarted(),t._publishToPlugin(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_STARTED,t._buildPluginMediaItemProxy(e)),t._eventBus.publish(c.PLAYBACK_STARTED)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_PLAYBACK_RESUMED,function(e){t._eventBus.publish(c.PLAYBACK_RESUMED,e?e.id:null)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,function(e){t._view.syncViewState(),t._view.onMediaItemPlaybackProgress(e),e&&e.currentTime&&t._publishToPlugin(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_PROGRESS,e.currentTime,t._buildPluginMediaItemProxy(e.playingItem))},this),e.on(R.PlaybackEvent.PLAYBACK_RESUME,function(e){t._eventBus.publish(c.PLAYBACK_RESUMED,e?e.id:null),t._view.syncViewState()},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR,function(e){t._eventBus.publish(c.PLAYBACK_ERROR,e)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_ERROR,function(e,i){t._eventBus.publish(c.MEDIA_ITEM_ERROR,e)},this),e.on(R.PlaybackEvent.WAITING,function(e){if(e){if(t._recoverer&&t._recoverer.toggleRecoverer(e),e.value&&!e.ignoreBuffering)t._eventBus.publish(c.PROFILE_START,c.METRICS.PLAYBACK_STALLED);else if(!e.ignoreBuffering){t._eventBus.publish(c.PROFILE_END,c.METRICS.PLAYBACK_STALLED);var i=t._profiler.getItem(c.METRICS.PLAYBACK_STALLED);i&&t._eventBus.publish(c.PLAYBACK_STALLED,i.timeDiff?i.timeDiff/1e3:"")}var n=!0===e.value?o.ExternalEvt.BUFFERING_START:o.ExternalEvt.BUFFERING_END;t._eventBus.publish(n)}},this),e.on(R.PlaybackEvent.END_FULLSCREEN,function(){t._view.setFullscreen(!1)},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR_NO_VALID_STREAM,function(){t._eventBus.publish(c.ERROR,T.default.createErr(l.ErrorGroup.Service,t._model.playbackState,l.E_SAPI_STREAM,l.SAPI_CODES.E_SAPI_NO_PLAYABLE_STREAMS))},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR_NO_RENDERER,function(e){t._eventBus.publish(c.ERROR,e)},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR_FLASH_NOT_SUPPORTED,function(e){t._eventBus.publish(c.INFO,e)},this),e.on(R.PlaybackEvent.PLAYBACK_SYNC_VIEW,function(){t._view&&t._view.syncViewState()},this),e.on(R.PlaybackEvent.MUTE_CHANGED,function(e){t._model.mute=e,t._view.updateVolumeUI(t._model.volume,t._model.mute)},this),e.on(R.PlaybackEvent.VOLUME_CHANGED,function(e){t._model.volume=e,t._view.updateVolumeUI(t._model.volume,t._model.mute),t._eventBus.publish(c.VideoEvent.VOLUMECHANGE)},this),e.on(R.PlaybackEvent.PLAYBACK_START_BLOCKED,function(){t._model.playbackState.paused=!0,t._model.playbackState.loading=!1,t._view.syncViewState(),t._eventBus.publish(c.VideoEvent.PAUSE)},this),e.on(R.PlaybackEvent.RENDERER_SWITCH,function(e,i){r.userAgent.mobile&&t._view.getFullscreen()&&e!==i&&i&&i.exitFullScreen&&i.exitFullScreen(),t._view.syncViewState()},this),e.on(R.PlaybackEvent.RENDERER_TIMEOUT,function(){t._view.syncViewState()},this),e.on(R.PlaybackEvent.RENDERER_CREATED,function(e){t._view.addRendererNode(e.create())},this),e.on(R.PlaybackEvent.MEDIA_ITEM_PLAYBACK_STOPPED,function(e){t._recoverer&&t._recoverer.stopTimers(),t._view.syncViewState(),t._model.continuousPlay||t._view.setFullscreen(!1),t._eventBus.publish(c.PLAYBACK_STOPPED,e)},this),e.on(R.PlaybackEvent.PLAYLIST_POSITION_HAS_CHANGED,function(e){e&&(t._view.resetState(),t._eventBus.publish(o.ExternalEvt.PLAYLIST_POSITION_CHANGE,t._model.playlist.position))},this),e.on(R.PlaybackEvent.PLAYBACK_ERROR_INCONSISTENT_METADATA,function(){t._eventBus.publish(c.WARNING,t._createStreamingError(l.WARNING_CODES.E_LIVE_PLAYBACK_COMPLETE,!0),!0)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_IS_LOADED,function(e){t._createRecoverer(),t._view.onMediaItemLoaded(e),t._ccController&&t._ccController.onMediaItemLoaded(e);var i=e.customConfig,n=t._config.nielsenConfig;(i&&i.nielsenRequired||n&&n.enableNielsen)&&t._eventBus.publish(o.ExternalEvt.NIELSEN_REQUIRED),t._eventBus.publish(c.MEDIA_ITEM_METADATA,e)},this),e.on(R.PlaybackEvent.SEEKING,function(){t._view.syncViewState(),t._eventBus.publish(c.VideoEvent.SEEKING)},this),e.on(R.PlaybackEvent.SEEKED,function(){t._view.syncViewState(),t._eventBus.publish(o.ExternalEvt.PLAYBACK_SEEK_COMPLETE)},this),e.on(R.PlaybackEvent.MEDIA_ITEM_PLAYBACK_ENDED,function(e,i){t._view.destroyAdsOverlay(),t._ccController.onMediaItemPlaybackEnded(),t._eventBus.publish(c.PLAYBACK_COMPLETE,e),t._eventBus.publish(c.MEDIA_ITEM_COMPLETE,e),t._publishToPlugin(y.PluginPlayerEvent.MEDIA_ITEM_PLAYBACK_ENDED,t._buildPluginMediaItemProxy(e))},this),e.on(R.PlaybackEvent.STALLED,function(){t._eventBus.publish(c.VideoEvent.STALLED)},this),e.on(R.PlaybackEvent.LOADSTART,function(){t._eventBus.publish(c.VideoEvent.LOADSTART)},this),e.on(R.PlaybackEvent.LOADEDDATA,function(){t._eventBus.publish(c.VideoEvent.LOADEDDATA)},this),e.on(R.PlaybackEvent.LOADEDMETADATA,function(){t._eventBus.publish(c.VideoEvent.LOADEDMETADATA)},this),e.on(R.PlaybackEvent.PLAY,function(){t._eventBus.publish(c.VideoEvent.PLAY)},this),e.on(R.PlaybackEvent.PLAYING,function(e){t._view.syncViewState(),t._eventBus.publish(c.VideoEvent.PLAYING)},this),e.on(R.PlaybackEvent.PAUSE,function(){t._view.syncViewState(),t._eventBus.publish(c.VideoEvent.PAUSE)},this),e.on(R.PlaybackEvent.SRC_SWITCHING,function(){t._eventBus.publish(c.VideoEvent.SRC_SWITCHING)},this),e.on(R.PlaybackEvent.SRC_SWITCHED,function(){t._eventBus.publish(c.VideoEvent.SRC_SWITCHED)},this),e.on(R.PlaybackEvent.TIMEUPDATE,function(e){t._eventBus.publish(c.VideoEvent.TIMEUPDATE,e&&e.currentTime)},this),e.on(R.PlaybackEvent.CLICK,function(){t._eventBus.publish(o.ExternalEvt.UI_INTERACT,{srcElement:"video-click"}),r.userAgent.desktop&&t._view.controls&&t._togglePlayPause()},this),e.on(R.PlaybackEvent.PLAYBACK_PROGRESS,function(e){var i=e.currentItem,n=e.currentTime,r=e.duration,o=e.buffered,s=t._view.getPlayerDimensions();T.default.areDimensionsEqual(s,t._model.uiState)||t._eventBus.publish(c.PLAYER_DIMENSION_CHANGE,s),t._eventBus.publish(c.PLAYBACK_PROGRESS,i.id,n,r,o)},this),e.on(R.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_METADATA,function(e){t._metadataController.loadItem(e)},this),e.on(R.PlaybackEvent.PLAYBACK_NEED_MEDIA_ITEM_SOURCE,function(e){t._metadataController.loadSource(e),t._eventBus.publish(c.MEDIA_ITEM_NEED_SOURCE,e)},this),e.on(R.PlaybackEvent.AD_BREAK_NEED_RESOLVE,function(t,e){},this),e.on(R.PlaybackEvent.AD_METRICS,function(e){t._eventBus.publish(c.AD_METRICS,e)},this),e.on(R.PlaybackEvent.CREATE_OVERLAY_CONTAINER,function(e){e(t._view.createAdsOverlay())},this),this._setupProfilerEvents(e)},e.prototype._setupViewEvents=function(){var t=this,e=this._view;e.on(I.ViewEvent.SKIP_AD_REQUESTED,function(){var e=t.getPlayingItem();e&&T.default.getPlaybackMode(e)===v.PlaybackMode.AD&&t._playbackController.skipAd()},this),e.on(I.ViewEvent.SYNC_PLAYBACK_STATE,function(){t._playbackController.syncPlaybackState()},this),e.on(I.ViewEvent.SYNC_ENTER_FULLSCREEN,function(){t._playbackController.enterFS()},this),e.on(I.ViewEvent.SYNC_EXIT_FULLSCREEN,function(){t._playbackController.exitFS()},this),e.on(I.ViewEvent.SYNC_SHOW_AIRPLAY_TARGET_MENU,function(){t._playbackController.showAirplayTargetMenu()},this),e.on(I.ViewEvent.SEEK,function(e){t._playbackController.seekCurrent(e)},this),e.on(I.ViewEvent.SET_VOLUME,function(e){t.volume=e},this),e.on(I.ViewEvent.SET_MUTE,function(e){t.mute=e},this),e.on(I.ViewEvent.TOGGLE_CC,function(e,i){t._eventBus.publish(c.CCEvent.UI_TOGGLE,e,i),t._ccController.toggleFromUI(e,i)},this),e.on(I.ViewEvent.SET_AUDIO_LANGUAGE,function(e,i){t._eventBus.publish(c.CONTROLS_AUDIO_CHANGE,e,i);var n=t._model.playlist.getCurrentItem();n&&n.setCurrLanguage(e),t._playbackController.setAudioLanguage(e)},this),e.on(I.ViewEvent.UI_INTERACT,function(e){t._eventBus.publish(o.ExternalEvt.UI_INTERACT,e)},this),e.on(I.ViewEvent.TOGGLE_PLAY_PAUSE,function(){t._togglePlayPause()},this),e.on(I.ViewEvent.START_SCREEN_CLICK,function(){t._onStartScreenClick()},this),e.on(I.ViewEvent.AD_CLICKED,function(){t._eventBus.publish(c.AD_BREAK_ITEM_CLICKED)},this),e.on(I.ViewEvent.CC_LANGUAGE_CHANGE,function(e){t._ccController.onLanguageChange(e)},this),e.on(I.ViewEvent.CC_STYLE_CHANGE,function(e){t._ccController.updateCCStyle(),e&&t._eventBus.publish(c.CCEvent.UPDATE_STYLE,e)},this),e.on(I.ViewEvent.OPSS_VISIBILITY_CHANGED,function(e,i){t._eventBus.publish(c.OPSS_VISIBILITY_CHANGED,e,i)},this),e.on(I.ViewEvent.FORWARD_SEEK,function(){var e=t._playbackController.getCurrentTime(),i=Math.min(e+t._model.seekControls.offset,t.duration-1);t._playbackController.seekCurrent(i)},this),e.on(I.ViewEvent.BACKWARD_SEEK,function(){var e=t._playbackController.getCurrentTime()-t._model.seekControls.offset;t._playbackController.seekCurrent(e)},this)},e.prototype._setupRecovererEvents=function(){var t=this,e=this._recoverer;e.on(c.ERROR,function(e){t._eventBus.publish(c.ERROR,e)},this),e.on(c.WARNING,function(e){t._eventBus.publish(c.WARNING,e)},this),e.on(P.RecovererEvent.RECOVERY_START,this._onRecoveryStart,this),e.on(P.RecovererEvent.RECOVERY_METADATA_READY,function(){t._eventBus.publish(c.RECOVERY_METADATA_READY)},this)},e.prototype._setupCCControllerEvents=function(){var t=this,e=this._ccController;e.on(s.CCControllerEvent.CC_AVAILABILITY_UPDATE,function(e){t._view.updateClosedCaptionUI(e)},this),e.on(s.CCControllerEvent.CC_LIST_FETCHED,function(e){t._view.controls.updateAvailableLanguages(e)},this),e.on(s.CCControllerEvent.CC_LIST_FETCHED_MOBILE,function(e){t._playbackController.enableMobileNativeCC(e)},this),e.on(s.CCControllerEvent.TOGGLE_SIMPLE_CC_CONTROLS,function(t){},this)},e.prototype._setupMetadataControllerEvents=function(){var t=this,e=this._metadataController;e.on(c.ERROR,function(e){t._eventBus.publish(c.ERROR,e)},this),e.on(C.MetadataEvent.METADATA_AVAILABLE,function(e){t._model.playlist.getCurrentItem().equals(e)&&t._view&&t._view.syncViewState(),t._eventBus.publish(c.METADATA_AVAILABLE,e.id),t._playerReadyEventFired||(t._playerReadyEventFired=!0,t._eventBus.publish(o.ExternalEvt.PLAYER_READY)),t._playlistController&&t._playlistController.onMediaItemLoaded()},this),e.on(C.MetadataEvent.SOURCE_AVAILABLE,function(e){t._onSourceMetadataAvailable(e)},this),e.on(C.MetadataEvent.SOURCE_LOAD_FAILED,function(e,i){var n=t._model.playlist.getCurrentItem();if(n&&n.key===h.default.createKey(e.id,e.mimetype)){if(t._isRecovering(n))return void t._recoverer.onMetadataLoadFailed();t._eventBus.publish(c.ERROR,i)}},this),e.on(C.MetadataEvent.API_INFO_AVAILABLE,function(e){t._eventBus.publish(c.API_CALLED,e)},this),this._setupProfilerEvents(this._metadataController)},e.prototype._setupProfilerEvents=function(t){var e=this;[c.PROFILE_START,c.PROFILE_END].forEach(function(i){t.addEventListener(i,function(t){e._eventBus.publish(i,t)},e)})},e.prototype._setupPreloadManagerEvents=function(){var t=this,e=this._preloadManager;e.on(L.PreloadEvent.START_PRELOAD,function(e){t._metadataController.loadSource(e)},this),e.on(L.PreloadEvent.PLAYER_IDLE,function(){},this)},e.prototype._onSourceMetadataAvailable=function(t){this._isRecovering(t)?this._onRecoveryMetadata(t):this._playbackController.handleSourceAvailable(t)},e.prototype._isRecovering=function(t){var e=this._model.playlist.getCurrentItem();return t.isRecovering()&&e&&e.equals(t)},e}();e.default=F}).call(this,i("URgk").setImmediate)},xQ2D:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,s=i("JcWZ"),a=i("ToqN"),u=i("8PPl"),l=i("WSjl"),c=i("+uLo"),d={BACKGROUND:5e3,SUSPEND:2e4},h="BACKGROUND",p="SUSPEND";!function(t){t.SUSPEND_STREAMING="suspend-streaming",t.RESUME_STREAMING="resume-streaming",t.CTRL_PLAYPAUSE="ctrlPlayPause"}(o=e.PauseHandlerEvents||(e.PauseHandlerEvents={}));var f=function(t){function e(e,i){var n=t.call(this,"pauseHandler")||this;if(n._controller=e,n._model=i,!n._controller||!n._model)throw new Error("[PauseHandler] Invalid arguments");var r=n._backGroundPauseConfig=Object.assign({},n._model.backgroundPause);return n._backGroundPauseConfig.timeToPause=r.timeToPause?1e3*r.timeToPause:d.BACKGROUND,n._backgroundPausing=r.onMute||r.onUnmute,n._backGroundPauseConfig.suspendStreamingTime=r.suspendStreamingTime?1e3*r.suspendStreamingTime:d.SUSPEND,n._backGroundPauseConfig.backgroundSuspendStreaming=!0,n._pauseTimers={BACKGROUND:new c.default(r.timeToPause,1),SUSPEND:new c.default(r.suspendStreamingTime,1)},n._pauseTimersEvtKeys={BACKGROUND:n._pauseTimers.BACKGROUND.addEventListener(c.default.TIMER_EVENT,n._onPauseHandler,n),SUSPEND:n._pauseTimers.SUSPEND.addEventListener(c.default.TIMER_EVENT,n._onSuspendHandler,n)},n._pausedFromVisibility=!1,n._suspended=!1,n}return r(e,t),e.prototype.destroy=function(){this._pauseTimers.BACKGROUND.removeEventListener(c.default.TIMER_EVENT,this._pauseTimersEvtKeys.BACKGROUND),this._pauseTimers.BACKGROUND.destroy(),this._pauseTimers.SUSPEND.removeEventListener(c.default.TIMER_EVENT,this._pauseTimersEvtKeys.SUSPEND),this._pauseTimers.SUSPEND.destroy()},e.prototype.onPlaybackPlaying=function(){this._pausedFromVisibility&&a.userAgent.chrome&&this._controller.seek(this._controller.getCurrentTime()),this._pausedFromVisibility=!1},e.prototype.onVisibilityChange=function(t){t?(this._clear(h),this._clear(p),this._play()):this._shouldBackgroundPause()&&this._schedulePause()},e.prototype.suspendStreaming=function(){this._isLive()&&(this._suspended=!0,this.publish(o.SUSPEND_STREAMING))},e.prototype.resumeStreaming=function(){this._clear(p),this._isLive()&&this._suspended&&(this.publish(o.RESUME_STREAMING),this._suspended=!1)},e.prototype.scheduleSuspend=function(){this._backGroundPauseConfig.backgroundSuspendStreaming&&this._pauseTimers.SUSPEND.start()},e.prototype._onSuspendHandler=function(){this._clear(p),this.suspendStreaming()},e.prototype._shouldBackgroundPause=function(){if(!this._backgroundPausing||!this._isPlaying())return!1;var t=this._model.mute;return!(t&&!this._backGroundPauseConfig.onMute||!t&&!this._backGroundPauseConfig.onUnmute)},e.prototype._schedulePause=function(){this._pauseTimers.BACKGROUND.start()},e.prototype._onPauseHandler=function(){this._clear(h),this._pause()},e.prototype._pause=function(){this._pausedFromVisibility=!0,this._controller.pause({type:u.REQUEST_TYPES.API,action:u.REQUEST_TYPES.BACKGROUND}),this.publish(o.CTRL_PLAYPAUSE,"pause")},e.prototype._play=function(){this._backgroundPausing&&!this._isPlaying()&&this._pausedFromVisibility&&(this.resumeStreaming(),this._controller.startPlayback({type:u.REQUEST_TYPES.API,action:u.REQUEST_TYPES.BACKGROUND}),this.publish(o.CTRL_PLAYPAUSE,"play"))},e.prototype._isPlaying=function(){return this._model.getState()===l.default.VIDEO&&!this._model.isPaused()&&!this._model.playbackState.loading},e.prototype._clear=function(t){this._pauseTimers[t].reset()},e.prototype._isLive=function(){var t=this._model.playlist.getCurrentItem();return!!t&&t.isLive()},e}(s.default);e.default=f},xbIp:function(t,e,i){"use strict";t.exports.SubtitleStreamer=u,t.exports.SubtitleLiveStreamer=l;var n=i("/iNa"),r=i("6I/I").Streamer,o=i("21xW"),s=i("2fkz").CmdNames,a=i("y5bh").HLSEvent;function u(t,e){this._creator(t,e)}function l(t,e){this._creator(t,e)}n.inherits(u,r),n.inherits(l,o),l.prototype._creator=u.prototype._creator=function(t,e){this.constructor.super_.call(this,t,e),this._super=this.constructor.super_.prototype,this._buffered={},this._commandName=s.CMD_SUBTITLE_SEGMENT_LOAD,this.primary=!1,this._state=t.isReady()?this.STATES.INITIALIZED:this.STATES.NONE},l.prototype.destroy=u.prototype.destroy=function(){this._buffered={},this._super.destroy.call(this)},l.prototype.onPlay=u.prototype.onPlay=function(t){this._super.onPlay.call(this,t)},l.prototype.onTimeUpdate=u.prototype.onTimeUpdate=function(t){this._lastPlayedTime=t},l.prototype._isBufferFull=u.prototype._isBufferFull=function(){return this._getBufferLength(this._lastPlayedTime)>=this._maxBuffer},l.prototype._isTotalBufferFull=u.prototype._isTotalBufferFull=function(){return this._getBufferLength()>=this._model.config.maxTotalBuffer},l.prototype._getSegmentLoadCmdData=u.prototype._getSegmentLoadCmdData=function(t){var e=this._currentStream;return e?{subtitleStream:e,segment:e.getSegmentfromSeqNum(t),live:this._model.live}:{}},l.prototype.onSubtitleSegmentLoadComplete=u.prototype.onSubtitleSegmentLoadComplete=function(t,e){if(e){var i=e.data;this.__controller.sendEvent(a.VTT_SEGMENT_LOADED,i),this._buffered[i.sequenceNum]={start:i.startTime,end:i.startTime+i.duration}}this._super.onSegmentLoadComplete.call(this,t)},l.prototype.onSubtitleSegmentLoadError=u.prototype.onSubtitleSegmentLoadError=function(t){this._state=this.STATES.NONE,this._commandManager.removeCommand(t)},l.prototype._getFirstNonBufferedSeqNum=u.prototype._getFirstNonBufferedSeqNum=function(t){var e=this._currentStream,i=t;if(!isNaN(i))for(;this._buffered[i];)i++;return!this._live&&i>e.endSeqNum?(this._setEndOfStream(!0),e.endSeqNum):i},l.prototype._getBufferLength=u.prototype._getBufferLength=function(t){var e=this._currentStream,i=e.getSeqNumBeforePosition(t);if(isNaN(i))return 0;for(var n=0;i<=e.endSeqNum;i++){var r=this._buffered[i];if(!r)break;n=r.end-t}return n},l.prototype._getTotalBufferLength=u.prototype._getTotalBufferLength=function(){var t=this,e=0;return Object.keys(t._buffered).forEach(function(i){var n=t._buffered[i];n&&(e+=n.end-n.start)}),e},l.prototype._printLoadMessage=u.prototype._printLoadMessage=function(){this._currentStream},l.prototype._getBufferedRangeIndex=u.prototype._getBufferedRangeIndex=function(){},l.prototype._sendToBuffer=u.prototype._sendToBuffer=function(){},l.prototype.onSynchMetadataReady=u.prototype.onSynchMetadataReady=function(){},l.prototype.setABRMode=u.prototype.setABRMode=function(){},l.prototype.canSwitch=u.prototype.canSwitch=function(){return!0}},xhJ2:function(t,e){var i=Number.isNaN||function(t){return t!=t};t.exports=Number.isFinite||function(t){return"number"==typeof t&&!i(t)&&t!==1/0&&t!==-1/0}},xkpU:function(t,e,i){"use strict";var n=this;Object.defineProperty(e,"__esModule",{value:!0}),e.objectAssignPolyfill=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])}return i},writable:!0,configurable:!0})},e.arrayIncludesPolyfill=function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==n)throw new TypeError('"this" is null or not defined');var i=Object(n),r=i.length>>>0;if(0===r)return!1;var o,s,a=0|e,u=Math.max(a>=0?a:r-Math.abs(a),0);for(;u<r;){if((o=i[u])===(s=t)||"number"==typeof o&&"number"==typeof s&&isNaN(o)&&isNaN(s))return!0;u++}return!1}})}},xqNZ:function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.MENU="Menu",t.ELAPSED_TIME="elapsed time",t.REMAINING_TIME="remaining time",t.NUM_SECONDS="{num-seconds} seconds",t.NUM_SECOND="{num-seconds} second",t.EMBED="Embed",t.NOW_PLAYING="Now Playing",t.WATCHED="watched",t.LIVE="Live",t.PLAY_VIDEO="Play Video",t.BACK="Back",t.CONTENT_RESTRICTED="Content Restricted",t.AGE_GATE_DESC="This content is intended for mature audiences. Viewer discretion advised.",t.SIGN_IN_TO_VIEW_ACTION="Sign-in to view",t.CONTINUE_ACTION="Continue",t.AGE_GATE_BDAY_DESC="This content is intended for mature audiences. Please enter your date of birth below to continue.",t.SUBMIT_ACTION="Submit",t.AGE_GATE_NOT_ALLOWED_DESC="Sorry. This content is intended for mature audiences.",t.MATURE="Mature",t.SETTINGS="Settings",t.VIDEO_QUALITY="Video Quality",t.QUALITY="QUALITY",t.AUTO="Auto",t.LOW="Good",t.MEDIUM="Better",t.HIGH="Best",t.LOGIN_MESSAGE="Please sign in to use this feature.",t.EMBED_NOT_ALLOWED="This video cannot be embedded due to provider license restrictions.",t.TOP="Top",t.BOTTOM="Bottom",t.ON="On",t.OFF="Off",t.CC_PREVIEW="Bottom",t.CC_PREVIEW_MESSAGE="Captions will look like this",t.BACKGROUND="background",t.EFFECTS="effects",t.RAISED="raised",t.NO_ITEM_AVAILABLE="No item available",t.CC="Closed Captions",t.LANGUAGE="Language",t.POSITION="Position",t.ERR_ANDROID_LIVE_CHROME_REQUIRED='This video requires Android 4.0 or above and the latest version of the Google Chrome browser.<br>You can get the latest version of Chrome from the <a href="https://play.google.com/store/apps/details?id=com.android.chrome">Google Play store</a>.',t.ERR_LIVE_PLAYBACK_COMPLETE="This live event has ended.",t.ERR_NETWORK_ISSUE="Videos cannot play due to a network issue. Please check your Internet connection and try again.",t.ERR_DEVICE="Due to license restrictions; this video cannot be viewed on this device.",t.ERR_EMBED="Due to license restrictions; this video can only be viewed on Yahoo.",t.ERR_FLASH_IS_BLOCKED="This video requires Flash. Verify Flash is not disabled or blocked, then <a href='javascript:window.location.reload();'>reload</a> the page.",t.ERR_COOKIE_DISABLED="This video cannot be played due to a browser settings issue. Enable third party cookies in your browser, then <a href='javascript:window.location.reload();'>reload</a> the page.",t.ERR_FLASH_LATEST_DOWNLOAD="The latest version of Adobe Flash is required to play this video. <a class='vp-error-flash-download-wrapper' href='http://get.adobe.com/flashplayer/'>Download the free Flash player here.</a>",t.ERR_GEO="Unfortunately, this video is not available in your region.",t.ERR_BLACKOUT="Due to local blackout restrictions, this live event cannot be viewed in your area.",t.ERR_TECH_DIFFICULTIES="If this error is occurring repeatedly, we may be experiencing technical difficulties. We apologize for the inconvenience. <a class='vp-browser-refresh' href='javascript:window.location.reload();'>Refresh Browser</a>",t.ERR_UNAUTHORIZED="You must be a paid subscriber to view this video.",t.ERR_UNAVAILABLE="Unfortunately, this video is no longer available.",t.ERR_MISSING_OR_DAMAGED="Unfortunately, this video is missing or damaged and cannot be played.",t.ERR_BROWSER_UNSUPPORTED="This browser is unsupported. To view this video, try another browser.",t.ERR_BROWSER_UNSUPPORTED_SKIP_IN_10="This browser is unsupported. To view this video, try another browser. In few seconds, we will go to the next video.",t.ERR_GENERAL_ERROR="Unfortunately, an error occurred. To try again, <a href='javascript:window.location.reload();'>refresh the browser</a>.",t.ERR_LIVE_IOS_PLAYBACK="Unfortunately, an error occurred. To try again, either <a href='javascript:window.location.reload();'>refresh</a> the browser or download the <a class='vp-browser-refresh' href='https://mobile.yahoo.com/sports'>Yahoo Sports app</a>",t.ERR_DRM_ANDROID_UNSUPPORTED_BROWSER='This video requires DRM, which is not supported by this web browser. To view this video, use the <a href="https://play.google.com/store/apps/details?id=com.android.chrome">Google Chrome web browser</a> instead.',t.ERR_DRM_IOS_UNSUPPORTED_BROWSER="This video requires DRM, which is not supported by this web browser. To view this video, use the Apple Safari web browser instead.",t.ERR_DRM_IOS_UNSUPPORTED_OS_VER="This video requires DRM, which is not supported by the older version of iOS on your device. To view this video, update your device to the latest version of iOS.",t.ERR_DRM_UNSUPPORTED_NETWORK_WIFI="Due to license restrictions, this video cannot be played over WiFi on your device. To view this video, turn off WiFi and use your cellular data connection instead.",t.ERR_TITLE_CANNOT_PLAY_VIDEO="Cannot Play Video",t.ERR_TITLE_CANNOT_PLAY_360_VIDEO="Cannot Play 360 Video",t.ERR_TITLE_SOMETHING_WENT_WRONG="Something Went Wrong",t.ERR_TITLE_VIDEO_NOT_AVAILABLE="Video Not Available",t.CHROMECAST="Chromecast",t.DISCONNECT="Disconnect",t.CAST_PLAYING_RECEIVER="Playing on {device-name}",t.AIRPLAY="Airplay",t.PAUSE_VIDEO="Pause Video",t.GO_TO_FULLSCREEN="Go to full screen",t.GO_TO_NORMAL_SCREEN="Go to normal screen",t.UNMUTE="Unmute",t.MUTE="Mute",t.SEEK_SLIDER="Seek slider",t.UP_NEXT="Up next",t.FULLSCREEN_SPACE="Full Screen",t.PRESETS="Presets",t.CC_SETTINGS="Closed Caption Settings",t.CC_TYPE_SIZE="Type Size",t.SUBMIT_FEEDBACK="Submit Feedback",t.ADV_SHORT="Ad: {remaining}s",t.ADV_LONG="Ad: video resumes in {remaining}s",t.ADV_MULT_SHORT="Ad {position}/{total}: {remaining}s",t.ADV_MULT_LONG="Ad {position}/{total}: video resumes in {remaining}s",t.TEXT="Text",t.STYLE_OPTIONS="Style Options",t.PLAIN="Plain",t.SHADOW="Shadow",t.LOWERED="Lowered",t.OUTLINE="Outline",t.CAPTIONS_ON="Captions On",t.CAPTIONS_OFF="Captions Off",t.CAPTIONS_AVAILABLE="Captions Available",t.MULTI_AUDIO="Select Audio Language",t.AUDIO_TRACK="Audio Track",t.CAPTIONS_NOT_AVAILABLE="Captions Not Available",t.EXIT_FULLSCREEN="Exit Full Screen",t.MORE_MARKERS="+{count_markers} more"}(n||(n={})),e.default=n},y5bh:function(t,e,i){"use strict";e.HLSEvent={STATE_CHANGED:"stateChanged",PRELOAD_PROGRESS:"preloadProgress",MEDIA_LOADED:"mediaLoaded",MEDIA_METADATA_LOADED:"mediaMetadataLoaded",STREAM_UPDATED:"streamUpdated",INFO_UPDATE:"infoUpdate",SEGMENT_FIRST_BYTE_LOADED:"segmentFirstByteLoaded",SEGMENT_RENDERED:"segmentRendered",VTT_SEGMENT_LOADED:"vttSegmentLoaded",PCR_AVAILABLE:"pcrAvailable",STREAM_SWITCHED:"streamSwitched",LIVE_LOADING_LATE:"liveLoadingLate",LIVE_SYNCH:"liveSynch",WAITING:"hlsWaiting",CUEPOINT_DETECTED:"cuepointDetected",CUEPOINT_STARTED:"cuepointStarted",ABR_DATA_UPDATED:"abrDataUpdated",ERROR:"error",SEG_INFO_METRICS_AVAILABLE:"segInfoMetricsAvailable",CONTENT_LOAD_FINISHED:"contentLoadFinished",PRELOAD_START:"preloadStart",PRELOAD_COMPLETE:"preloadComplete",CC_VTT_AVAILABLE:"ccVttAvailable",BUFFER_GROWTH_DETECTED:"bufferGrowthDetected",MULTI_LANGUAGES_AVAILABLE:"multiLanguagesAvailable",TIMED_METADATA_READY:"timedMetadataReady",PLAY_BLOCKED:"playbackBlocked"},e.ExternalEvents=[e.HLSEvent.MEDIA_LOADED,e.HLSEvent.MEDIA_METADATA_LOADED,e.HLSEvent.INFO_UPDATE,e.HLSEvent.VTT_SEGMENT_LOADED,e.HLSEvent.SEGMENT_FIRST_BYTE_LOADED,e.HLSEvent.SEGMENT_RENDERED,e.HLSEvent.STREAM_SWITCHED,e.HLSEvent.LIVE_LOADING_LATE,e.HLSEvent.STREAM_UPDATED,e.HLSEvent.WAITING,e.HLSEvent.CUEPOINT_DETECTED,e.HLSEvent.CUEPOINT_STARTED,e.HLSEvent.ABR_DATA_UPDATED,e.HLSEvent.PRELOAD_PROGRESS,e.HLSEvent.SEG_INFO_METRICS_AVAILABLE,e.HLSEvent.CONTENT_LOAD_FINISHED,e.HLSEvent.PRELOAD_START,e.HLSEvent.PRELOAD_COMPLETE,e.HLSEvent.CC_VTT_AVAILABLE,e.HLSEvent.BUFFER_GROWTH_DETECTED,e.HLSEvent.MULTI_LANGUAGES_AVAILABLE,e.HLSEvent.TIMED_METADATA_READY,e.HLSEvent.PLAY_BLOCKED]},yCb9:function(t,e,i){"use strict";t.exports=d;var n=i("QOmE"),r=i("STAJ"),o=i("OaPV"),s=i("D9J0"),a=i("yvII"),u=i("6ir0"),l=i("0r65"),c=i("/iNa");function d(){this._model=this.__controller.model,this._workerMap={},this.bandwidthEstimator=new o(this._model.bwHistory),this.segmentMetrics=this.__controller.create(s),this.metadataParser=this.__controller.create(n),this.mp4BoxParser=new r}d.prototype.destroy=function(){var t=this;t.bandwidthEstimator.destroy(),t.segmentMetrics.destroy(),t.metadataParser.destroy(),t._workerMap&&Object.keys(t._workerMap).forEach(function(e){t._workerMap[e].terminate()})},d.prototype.getNewLoader=function(t,e){var i=this._model,n=i.config,r=i.userAgent,o=i.inWorkerScope;(t=t||{}).maxRetries=t.maxRetries||n.maxRetries,t.requestTimeout=t.requestTimeout||n.requestTimeout,t.chunkedRequestTimeout=t.chunkedRequestTimeout||n.chunkedRequestTimeout,t.useMSStream=!!r&&(r.ie||r.edge),t.stopStreamLoadOnError=t.stopStreamLoadOnError||n.stopStreamLoadOnError,t.withCredentials=c.isWithCreds(e||t.url)||!1;var s=null;try{s=a.getLoader(new a.LoadRequest(t),t.window,o)}catch(t){s=null}return s},d.prototype.getWorker=function(t){if(!t)return null;if(this._model.config.useWorker&&"undefined"!=typeof Worker)try{return this._workerMap[t]||(this._workerMap[t]=l(u)),this._workerMap[t]}catch(t){}return null}},yFah:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n=i("UDn2"),r=i("ma23"),o={id:"6b972eae-d38f-3dd8-8edd-cbcc8d011ded",mimetype:"media/dummy",metadata:{description:"Getting a handle on your spending is the linchpin in crafting a viable retirement plan.",duration:359,title:"How Much Will You Spend in Retirement?",thumbnail:"https://media.zenfs.com/en-US/video/morningstar_993/82a973fefacee4a6453cdd3d0201cb32",type:n.MediaItemType.VOD,videoTypes:[]},source:{streams:[{url:"https://edgecast-vod.yahoo.net/tripleplay4us/morningstar_993/data_zurEohCROAgK6-EqdlOAAIilWfEpIrQCHPio7iv9tNqR10TRO1-J_a3n86yRETqbG5jyjBm1cYI-~A3_34.m3u8",live:!1}]},adConfig:{mimetype:"adplugin/dummy",value:{status:{code:"OK"},rids:["5b055cf3868e8001c0ce8ceb"],aeg:[[{rid:"5b055cf3868e8001c0ce8ceb",url:"https://control-test-ec.adaptv.advertising.com/a/h/_2JTaTCrWEY+uCMYb2KK5XX9JxQsoPLbA6rc+znsxXm_uUWALVdHLfpJwmLgzlF0?cb=[CACHE_BREAKER]&pageUrl=http%3A%2F%2Faol.com&eov=eov&ctx.plid=5afc75ea3a04293dad9f1a1f&ctx.container_height=[CONTAINER_HEIGHT]&ctx.container_width=[CONTAINER_WIDTH]&gdpr=[GDPR]&gdpr_consent=[EUCONSENT]&lat=[LOCATION_LAT]&lon=[LOCATION_LON]&a.sdk=O2&mnc=[MNC]&pi.sound=[SOUND]&pi.sideviewInitiation=&spot_id=0&apid=[APID]&pi.autoInitiation=[AUTO_INITIATION]&session_id=[USID]&moatViewableOpportunity=[MOAT_PREBID]&p.vw.viewable=[P_VW_VIEWABLE]&pi.sideview=0&mcc=[MCC]&p.vw.viewableOpportunity=[P_VW_VIEWABLE_OPPORTUNITY]&a.d.pageUrl=&p.vw.active=[P_VW_ACTIVE]&width=[VIDEO_WIDTH]&a.ip=69.147.100.13&adapViewableOpportunity=[ADAP_VIEWABLE_OPPORTUNITY]&height=[VIDEO_HEIGHT]&pi.flashonpage=[FLASH_SUPPORT]&o2token=AAABY5NnbJTtTCwD_nMR7b-T0J3bbLBmWbo3Pw%3D%3D",adEngineType:"VAST",vendor:"569fa372e4b0e41110650e54",rcid:"5512a39b09eab108e072da23",name:"Test Unified Player - Ads test",usesShim:!1,useInlinePlayer:!1,adTypes:["Preroll"]}]],txid:"b7fd7e1d-dfbc-4415-aa2a-d7f69ed5d78b",apid:"O20b8295f4-5f80-11e8-9a8e-02425510c2bf",slot:"AVAIL",adxResult:"SHOW_ADS",usid:"96d299d4-9f22-419b-84be-5e68fe813386"}}},s=function(){function e(){this.version="0.2.137",this.mimetype="media/dummy",this.type=r.PluginType.SOURCE_METADATA}return e.prototype.prepare=function(){},e.prototype.destroy=function(){},e.prototype.resolve=function(e,i,n){new Promise(function(e,i){try{t(function(){e(o)})}catch(t){i(t)}}).then(function(t){n.onComplete([t])}).catch(function(t){var e={code:"1",message:t.toString()};n.onError(e)})},e.prototype.recover=function(t,e,i){},e.prototype.cancel=function(){},e}();e.default=s}).call(this,i("URgk").setImmediate)},yLpj:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},ybd4:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("oIMU"),r=i("MPla"),o=10,s=function(){function t(t,e){this._vttIndex=3,this._eventBus=t,this._eventBus.addEventListener(n.PLAYBACK_PROGRESS,this._onPlaybackProgress,this),this._eventBus.addEventListener(n.PLAYBACK_RESUMED,this._onPlaybackResumed,this),this._model=e;var i=e.vttIndex;i>=1&&i<=o&&(this._vttIndex=i),this._vttPlaylistURL="",this._language="",this._vttList=[],this._resumed=!1,this._endReached=!1}return t.prototype.onMediaItemLoaded=function(t){var e=this;if(t.isLive()&&t&&t.streams&&t.streams[0]&&t.streams[0].url){var i=t.streams[0].url;this._urlPrefix=i.substring(0,i.lastIndexOf("/"));r.default.ajax(i,{context:this,failureHandler:function(t){},successHandler:function(t){if(-1!==t.indexOf("#EXTM3U")){for(var i=/#*BANDWIDTH=([0-9]+)/g,r=[],o=i.exec(t);null!==o;)r.push(o[1]),o=i.exec(t);r&&e._eventBus.publish(n.CTV.GET_BITRATE_FOR_OPSS,r);var s=t.match(/TYPE=SUBTITLES.+URI=['|"](.+?)['|"]/);if(s){var a=s[0].match(/LANGUAGE=['|"](.+?)['|"]/);if(!a)return;e._language=a[1],e._vttPlaylistURL=e._completeURL(s[1]),0===e._vttPlaylistURL.indexOf("http")&&(e._urlPrefix=e._vttPlaylistURL.substring(0,e._vttPlaylistURL.lastIndexOf("/")))}}}})}},t.prototype._onPlaybackProgress=function(t,e){if(!this._endReached&&this._vttPlaylistURL)return this._lastTime||0===this._lastTime?this._resumed?(this._resumed=!1,this._lastTime=e,this._vttList=[],void this._updateVttList()):void(e-this._lastTime>=2&&(this._lastTime+=2,this._updateVttList())):(this._lastTime=e,void this._updateVttList())},t.prototype._onPlaybackResumed=function(){this._resumed=!0},t.prototype._updateVttList=function(){var t=this;if(this._vttPlaylistURL){r.default.ajax(this._vttPlaylistURL,{context:this,successHandler:function(e){var i=0,n=e.match(/#EXT-X-MEDIA-SEQUENCE:(.+)/);if(n&&(i=Number(n[1])),0===t._vttList.length)t._addVttDataToList(e,i);else{var r=e.lastIndexOf("#EXTINF:"),o=e.match(/#EXTINF:/g).length,s=e.substring(r);t._addVttDataToList(s,i+o-1)}t._endReached=e.indexOf("#EXT-X-ENDLIST")>-1},failureHandler:function(t){}})}},t.prototype._addVttDataToList=function(t,e){for(var i="",n=0,r=0,s=t.split(/\r\n|\r|\n/);r<s.length;r++){var a=s[r];if(a){var u=a.match(/#EXT-X-PROGRAM-DATE-TIME:(.+)/);if(u)i=u[1];else{var l=a.match(/#EXTINF:(.+),/);if(l)n=parseInt(l[1],10);else if("#"!==a.charAt(0)){var c=this._vttList[this._vttList.length-1];if(c&&a===c.url)return;var d={};d.url=a,d.seqNum=e++,i&&(d.dateTime=i),n&&(d.duration=n),this._language&&(d.language=this._language),this._vttList.push(d),this._vttList.length>o&&this._vttList.shift(),this._sendVttEvent()}}}}},t.prototype._sendVttEvent=function(){var t=this,e=this._vttList[this._vttList.length-this._vttIndex];if(e){r.default.ajax(this._completeURL(e.url),{context:this,failureHandler:function(t){},successHandler:function(i){var r={mpegTSTime:0,localCueTime:0,clockReference:0};r.data=i,t._eventBus.publish(n.VTT_SEGMENT_LOADED,r,!0,t._vttIndex,t._completeURL(e.url))}})}},t.prototype._completeURL=function(t){return 0===t.indexOf("http")?t:"/"===t.charAt(0)?this._urlPrefix+t:this._urlPrefix+"/"+t},t}();e.default=s},yegX:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("v5jO"),s=i("+Ojf"),a=i("YMIh"),u=i("Ru0y"),l=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._streams=[],o._adBreak=e,o._rawAdBreakItemData=i,o.id=i.adBreakItemId,o.adBreakItemId=i.adBreakItemId,o.adPluginMimeType=i.adPluginMimeType,o.customConfig=i.customInfo||null,o.duration=i.duration||NaN,o.instream=i.instream,o.interactionConfig=i.interactionConfig,o.type=i.type,o.videoSession=o._generateVSid(),i.source&&i.source.streams&&o._buildStreams(i.source.streams,n,r),o}return r(e,t),e.prototype.hasStreams=function(){return this.streams.length>1},e.prototype.equals=function(t){return!!t&&(t.id===this.id&&this.adBreakItemId===t.adBreakItemId)},e.prototype.getPlayableItemType=function(){return a.PlayableItemType.AD_BREAK_ITEM},e.prototype.setDuration=function(t){this.duration=t},e.prototype.getDuration=function(){return this.duration},e.prototype.getStreamType=function(){return this._adBreak&&this._adBreak.type||""},Object.defineProperty(e.prototype,"adBreak",{get:function(){return this._adBreak},enumerable:!0,configurable:!0}),e.prototype.skip=function(){},Object.defineProperty(e.prototype,"rawItemData",{get:function(){return s.default.deepCopy(this._rawAdBreakItemData)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"streams",{get:function(){return this._streams},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"streamProfiles",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"altStreams",{get:function(){return[]},set:function(t){},enumerable:!0,configurable:!0}),e.prototype.getCurrLanguage=function(){return null},e.prototype._generateVSid=function(){for(var t=[],e="abcdefghijklmnopqrstuvwxyz123456789",i=0;i<8;i++)t.push(e.charAt(Math.floor(Math.random()*e.length)));return t.join("")},e.prototype._buildStreams=function(t,e,i){if(t&&t.length&&0===this._streams.length){for(var n=t.map(function(t){return new u.default(t)}),r=0,s=e;r<s.length;r++){var a=s[r],l=i[a],c=o.default.findAcceptedStreams(n,l);if(0!==c.length){this.rendererType=a,this._streams=c;break}}this._streams.length>0&&this._streams.sort(function(t,e){return t.videoMetadata.bitrate-e.videoMetadata.bitrate})}},e}(a.PlayableItem);e.default=l},yp9T:function(t,e,i){"use strict";var n=i("D3zA"),r=i("82c2"),o=i("Vi6U"),s=i("G3+v"),a=i("s/21"),u=n.call(Function.call,s());r(u,{getPolyfill:s,implementation:o,shim:a}),t.exports=u},yv9F:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i("O/dN"),s=i("UDn2"),a=i("ma23"),u=i("+Ojf"),l=i("LrgL"),c=i("vdbb"),d=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.cmdName=c.CmdName.CMD_METADATA_LOAD,n._loading=!1,n._destroyed=!1,n}return r(e,t),e.prototype.destroy=function(){this._destroyed=!0,this.cancel(),t.prototype.destroy.call(this)},e.prototype.execute=function(){if(!this._loading&&!this._destroyed){var t=this.data,e=t.autoplay,i=t.failoverCount,n=t.gdprConsent,r=t.mimetype,l=t.mediaItemDataArr,d=t.rendererCapabilities,h=t.rendererTypes,p=t.sessionId,f=t.thumbnailDimensions,_=t.tryCount,m=this._pluginManager.getPlugin(a.PluginType.METADATA,r),y={autoplay:e,failoverCount:i,gdprConsent:n,rendererCapabilities:d,rendererTypes:h,sessionId:p,thumbnailDimensions:f,tryCount:_};if(m)this._plugin=m,this._loading=!0,this.publish(c.CmdEvent.CMD_PROGRESS,this,l,s.ItemState.FETCHING),m.resolve(l,y,this);else{var v="No metadata plugin found for mimetype = "+r,g=u.default.createErr(o.ErrorGroup.Service,null,o.E_PLAYER,o.PLAYER_CODES.E_NO_PLUGIN_FOUND,v);this.publish(c.CmdEvent.CMD_ERROR,this,g)}}},e.prototype.cancel=function(){this._plugin&&this._loading&&(this._plugin.cancel(),this._loading=!1)},e.prototype.onProgress=function(t){this._loading&&!this._destroyed&&this.publish(c.CmdEvent.CMD_PROGRESS,this,t)},e.prototype.onComplete=function(t){this._loading&&!this._destroyed&&(this._loading=!1,this.publish(c.CmdEvent.CMD_COMPLETE,this,t))},e.prototype.onError=function(t){if(this._loading&&!this._destroyed&&(this._loading=!1,t.code&&t.code.length)){var e=u.default.createErr(t.group||o.ErrorGroup.Service,null,t.category||o.E_PLAYER,t.code||o.PLAYER_CODES.E_PLAYER_CMS_XHR_REQUEST_RESPONSE_NOT_RECEIVED,t.message);this.publish(c.CmdEvent.CMD_ERROR,this,e)}},e.prototype.onApiCallInfo=function(t){t&&this.publish(c.CmdEvent.CMD_INFO,this,t)},e}(l.default);e.default=d},yvII:function(t,e,i){"use strict";e.Loader=h,e.LoadRequest=function(t){if(!t||n.isNullOrUndefined(t.maxRetries)||n.isNullOrUndefined(t.requestTimeout)||n.isNullOrUndefined(t.chunkedRequestTimeout))throw new Error("[LoadRequest] Invalid Arguments: Request details are not complete");this.method=t.method||"GET",this.chunked=t.isChunkedLoad||!1,this.useMSStream=t.useMSStream||!1,this.maxRetries=t.maxRetries,this.retryExclusion=t.retryExclusion,this.requestTimeout=1e3*t.requestTimeout,this.chunkedRequestTimeout=1e3*t.chunkedRequestTimeout,this.responseType=t.responseType||"text",this.headerFields=t.headerFields,this.minChunkSize=n.isNullOrUndefined(t.minChunkSize)?1e5:t.minChunkSize,this.stopStreamLoadOnError=t.stopStreamLoadOnError,this.url=t.url,this.withCredentials=t.withCredentials||!1,this.withResponseHeaders=t.withResponseHeaders||!1},e.Events={COMPLETE:"complete",ERROR:"error",PROGRESS:"progress",BYTES_LOADED:"bytesLoaded"};var n=i("9nRl"),r=i("/iNa"),o=i("RwmF"),s=i("iSaY"),a=i("HNE+"),u=0,l=3,c=4,d=1;function h(t,e,i){if(!t)throw new Error("[Loader] Invalid Arguments: Loader created without a load request");o.call(this,"Loader"),this.request=t,this._inWorkerScope=i,this.window=this._inWorkerScope?null:e||window,this._xhr=null,this._xhrMetaData={},this._backOffInit=[1e3,1e3,2e3,2e3,3e3,3e3,5e3],this._backOffInterval=5e3,this._retryTimer=new a(1e3,1),this._retryTimer.addEventListener(this.load,this),this.MIN_TIMEOUT=2e3,this.MAX_TIMEOUT=15e3,this._retries=0,this._maxRetries=t.maxRetries,this._requestTimer=new a(this._getTimeOut(),1),this._requestTimer.addEventListener(this._onTimeout,this)}function p(t,e,i){h.call(this,t,e,i)}function f(t,e,i){p.call(this,t,e,i)}e.getLoader=function(t,e,i){if(!t)throw new Error("[LoaderFactory] Invalid Arguments: Loader created without a load request");return t.chunked?t.useMSStream?new f(t,e,i):new p(t,e,i):new h(t,e,i)},r.inherits(h,o),r.inherits(p,h),r.inherits(f,p),h.prototype.load=function(t,i){var n=this;if(!n.request)throw new Error("[Loader] InvalidStateError: load called without a request");if(n.url=t||n.request.url,!n.url)return n.publish(e.Events.ERROR,new s.Error(s.ERR_XHR_LOAD));n._cancelCurrentRequest(),n._xhr=n._inWorkerScope?new XMLHttpRequest:new n.window.XMLHttpRequest,n._xhr._offset=0,n._xhr._finished=!1,n._initialize(),n._xhr.withCredentials=n.request.withCredentials,n._xhr.open(n.request.method,n.url,!0),n._headerFields=n.request.headerFields,n._headerFields&&Object.keys(n._headerFields).forEach(function(t){n._xhr.setRequestHeader(t,n._headerFields[t])}),n._setResponseType(),n._requestTimer.reset(),n._requestTimer.start(),n._xhr.send(i)},h.prototype._setResponseType=function(){this._xhr.responseType=this.request.responseType},h.prototype._initialize=function(){var t=this;t._xhr.onerror=t._handleError.bind(t),t._xhr.onreadystatechange=function(){if(t._xhr&&t._xhr.readyState===c&&!t._xhr._finished){if(!t._statusGood(t._xhr.status))return t._requestTimer.stop(),t._handleError();t._xhr._finished=!0;var i={data:t._xhr.response};if(t.request.withResponseHeaders){var n=t._xhr.getAllResponseHeaders();if(n){var r=n.trim().split(/[\r\n]+/),o=[];r.forEach(function(t){var e=t.split(": "),i=e.shift(),n=e.join(": ");o.push({name:i,value:n})}),i.headers=o}}t.publish(e.Events.COMPLETE,i),t._requestTimer.stop()}}},h.prototype._getResponseHeader=function(t){var e=new RegExp(t+": (.*)","ig"),i=this._xhr.getAllResponseHeaders(),n=e.exec(i);return n&&n.length>1?n[1]:""},h.prototype._statusGood=function(t){return t>=200&&t<300},h.prototype._cleanupOnTimeout=function(){Date.now(),this._requestTimestamp;this._requestTimer.stop()},h.prototype._onTimeout=function(){this._cleanupOnTimeout(),this._handleError()},h.prototype._handlePartialLoadError=function(){this.reset(),this._sendError(s.ERR_PARTIAL_LOAD)},h.prototype._getBackoffTime=function(){var t=this._backOffInit.length,e=this._retries;return e<t?this._backOffInit[e]:this._backOffInit[t-1]+this._backOffInterval*(e-t+1)},h.prototype._handleError=function(){this._cancelCurrentRequest(),this._retries<this._maxRetries&&(!this.request.retryExclusion||-1===this.request.retryExclusion.indexOf(this._xhr.status))?(this._retries++,this._retryTimer.delay=this._getBackoffTime(),this._retryTimer.reset(),this._retryTimer.start(),this.request.headerFields&&this._xhr.readyState===c&&0===this._xhr.status&&(this.request.headerFields=null)):this.request.stopStreamLoadOnError?this._sendError(s.ERR_XHR_LOAD_LIVE_PAUSE):403===this._xhr.status?this._sendError(s.ERR_XHR_LOAD_FORBIDDEN):this._sendError(s.ERR_XHR_LOAD)},h.prototype._sendError=function(t){this.publish(e.Events.ERROR,new s.Error(t))},h.prototype._cancelCurrentRequest=function(){this._xhr&&this._xhr.readyState!==c&&this._xhr.readyState!==u&&(this._xhr._finished=!0,this._xhr.abort()),this._retryTimer.stop(),this._requestTimer.stop()},h.prototype._getTimeOut=function(){var t=this.request,e=t.chunked?t.chunkedRequestTimeout:t.requestTimeout;return isNaN(e)||e<this.MIN_TIMEOUT||e>this.MAX_TIMEOUT?this.MAX_TIMEOUT:e},h.prototype.reset=function(){this._cancelCurrentRequest(),this._xhr=null,this.request=null},h.prototype.destroy=function(){this.reset(),this._retryTimer.destroy(),this._requestTimer.destroy(),o.prototype.destroy.call(this)},p.prototype.destroy=function(){h.prototype.destroy.call(this)},p.prototype._initialize=function(){var t=this,i=function(){if(t._xhr&&!t._xhr._finished&&(t._xhr.readyState===c||t._xhr.readyState===l)){if(!t._statusGood(t._xhr.status))return t._requestTimer.stop(),0===t._xhr._offset?t._handleError():void t._handlePartialLoadError();var i=t._xhr.responseText,n=i.length-t._xhr._offset;if(n>0&&(t._requestTimer.stop(),t._xhrMetaData.atlasMarker=t._getResponseHeader("X-ATLAS-MARKERS"),t.publish(e.Events.BYTES_LOADED,i.length,t._xhrMetaData)),n>t.request.minChunkSize||t._xhr.readyState===c){for(var r=new Uint8Array(n),o=0;o<n;o++)r[o]=255&i.charCodeAt(o+t._xhr._offset);t._xhr._offset=i.length,t.publish(e.Events.PROGRESS,r,i.length)}t._requestTimer.start(),t._xhr.readyState===c&&(t._xhr._finished=!0,t.publish(e.Events.COMPLETE),t._requestTimer.stop())}};t._xhr.onreadystatechange=i,t._xhr.onprogress=i},p.prototype._onTimeout=function(){this._cleanupOnTimeout(),this._xhr._offset>0&&this._xhr.readyState===l?this._handlePartialLoadError():this._handleError()},p.prototype._setResponseType=function(){this._xhr.overrideMimeType("text/plain; charset=x-user-defined")},f.prototype.destroy=function(){p.prototype.destroy.call(this)},f.prototype._initialize=function(){var t=this;t._xhr.onreadystatechange=function(){if(t._xhr.readyState===l){if(!t._statusGood(t._xhr.status))return t._requestTimer.stop(),t._handleError();var i=t._xhr.response;if(t._MSStreamReader||(t._MSStreamReader=t._inWorkerScope?new MSStreamReader:new t.window.MSStreamReader),t._MSStreamReader.readyState===d)return;t._MSStreamReader.readAsArrayBuffer(i),t._MSStreamReader.onprogress=function(){t._requestTimer.stop();var i=t._MSStreamReader.result;i.byteLength>0&&(t._xhrMetaData.atlasMarker=t._getResponseHeader("X-ATLAS-MARKERS"),t.publish(e.Events.BYTES_LOADED,i.byteLength,t._xhrMetaData));var n=new Uint8Array(i.slice(t._xhr._offset,i.byteLength));t._xhr._offset=i.byteLength,t.publish(e.Events.PROGRESS,n,i.byteLength),t._requestTimer.start()},t._MSStreamReader.onload=function(){t._requestTimer.stop(),t.publish(e.Events.COMPLETE)},t._MSStreamReader.onerror=function(){t._requestTimer.stop()}}}},f.prototype._setResponseType=function(){this._xhr.responseType="ms-stream"},f.prototype.reset=function(){h.prototype.reset.call(this),this._MSStreamReader&&this._MSStreamReader.abort()}},yzVy:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.AD="ad",t.BLACKOUT="blackout",t.BUMPER="bumper"}(e.AdBreakItemType||(e.AdBreakItemType={}))},z88l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("t8Yn"),o=i("he5r"),s=i("d/ck"),a=i("c+yx"),u=i("9s7j");e.STRUCTURED_PLAYLIST_MIMETYPE="playlist/structured";var l=function(){function t(t){this.name="StructuredPlaylistPlugin",this.version="8.1.170",this.mimetype=e.STRUCTURED_PLAYLIST_MIMETYPE,this.type=r.Plugin.PluginType.PLAYLIST,this._model=t,this._playlistDOMNode=null}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,e,n,r){var o=this._getTemplateItems(t,e),s=document.createElement("div");return this._playlistDOMNode=n,s.innerHTML=u.render({items:o,strings:r}),i("RyId"),Array.prototype.slice.call(s.children)},t.prototype.onMediaItemEnded=function(t){var e=t.id,i=this._model.isMediaItemWatched(e),n={id:t.id,position:t.duration,duration:t.duration};this._isBumper(t)||(this._model.watchHistory&&this._model.watchHistory.saveProgress(n,!0),this._setItemWatched(e,i))},t.prototype.onMediaPlaybackProgress=function(t,e,i){var n=this._model.isMediaItemWatched(t),r={id:t,position:e,duration:i};this._model.watchHistory&&this._model.watchHistory.saveProgress(r,!0),e%10==0&&this._setItemWatched(t,n)},t.prototype._getTemplateItems=function(t,e){var i=this,n=[];return e.forEach(function(e){if(!i._isBumper(e)&&e&&e.metadata&&e.metadata.thumbnail){var r=i._getSectionLabel(e),o=!1;r&&n.push({sectionLabel:r,sectionLabelIcon:i._getSectionLabelIconUrl(e),firstItemId:e.id}),i._model.watchHistory&&i._model.watchHistory.isWatched(e.id,e.metadata.duration||0)&&(i._model.setMediaItemWatched(e.id,!0),o=!0),n.push({id:e.id,title:i._formatTitle(e.metadata.title),thumbnail:e.metadata.thumbnail,duration:i._formatDuration(e.metadata.duration),provider:e.brandingData?i._formatProvider(t,e.brandingData):"",labelIcon:i._getLabelIconUrl(e),isItemWatched:o})}}),e.length>0&&this._allItemsWatched(e)&&(this._model.watchHistoryConfig.skipWatchedVideos=!1),n},t.prototype._formatDuration=function(t){return t&&s.isNumber(t)?a.default.formatTime(t):""},t.prototype._formatTitle=function(t){var e=n.userAgent.chrome>43;return t?t.length>40&&!e?t.substring(0,40)+"...":t:""},t.prototype._formatProvider=function(t,e){return t===o.PLAYLIST_POS.RIGHT&&e&&e.branding&&e.branding.providerName?e.branding.providerName:""},t.prototype._getLabelIconUrl=function(t){var e=t.customConfig&&t.customConfig.playlistConfig;return e&&e.label&&e.label.icons?this._getImageUrlByTag(e.label.icons,o.PLAYLIST_LABEL_ICON_DIMENSION):""},t.prototype._getSectionLabel=function(t){var e=t.customConfig&&t.customConfig.playlistConfig;return e&&e.section&&e.section.label||""},t.prototype._getSectionLabelIconUrl=function(t){var e=t.customConfig&&t.customConfig.playlistConfig;return e&&e.section&&e.section.icons?this._getImageUrlByTag(e.section.icons,o.PLAYLIST_SECTION_ICON_DIMENSION):""},t.prototype._getImageUrlByTag=function(t,e){if(t)for(var i=0,n=t;i<n.length;i++){var r=n[i];if(r.tag===e)return r.url}return""},t.prototype._isBumper=function(t){return!!(t.customConfig&&t.customConfig.playlistConfig&&t.customConfig.playlistConfig.is_bumper)},t.prototype._setItemWatched=function(t,e){var i='.vp-playlist-item[data-id="'+t+'"]',n=this._playlistDOMNode&&this._playlistDOMNode.querySelector(i);n&&(e?this._showWatchedIndicator(n):this._hideWatchedIndicator(n))},t.prototype._showWatchedIndicator=function(t){var e=t.querySelector(".yvp-playlist-item-watched");e&&e.classList.add("yvp-show")},t.prototype._hideWatchedIndicator=function(t){var e=t.querySelector(".yvp-playlist-item-watched");e&&e.classList.remove("yvp-show")},t.prototype._allItemsWatched=function(t){var e=this;return t.every(function(t){if(!t||!t.metadata)return!1;if(e._isBumper(t))return!0;var i=t.metadata&&t.metadata.duration;return e._model.watchHistory&&e._model.watchHistory.isWatched(t.id,i||0)||!1})},t}();e.default=l},zC69:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("ToqN"),r=i("8PPl"),o=i("ma23"),s=i("fLR+"),a=i("+Ojf"),u=i("wfVE"),l=function(){function t(){this.version="0.2.137",this.mimetype="playlist/simple",this.type=o.PluginType.PLAYLIST}return t.prototype.prepare=function(){},t.prototype.destroy=function(){},t.prototype.create=function(t,e,i){var n=this._getTemplateItems(t,e),r=document.createElement("div");return r.innerHTML=u.render({items:n,strings:i}),Array.prototype.slice.call(r.children)},t.prototype._formatDuration=function(t){return t&&s.isNumber(t)?a.default.formatTime(t):""},t.prototype._formatTitle=function(t){var e=n.userAgent.chrome>43;return t?t.length>40&&!e?t.substring(0,40)+"...":t:""},t.prototype._formatProvider=function(t,e){return t===r.PLAYLIST_POS.RIGHT&&e&&e.branding&&e.branding.providerName?e.branding.providerName:""},t.prototype._getTemplateItems=function(t,e){var i=this,n=[];return e.forEach(function(e){e&&e.metadata&&e.metadata.thumbnail&&n.push({id:e.id,title:i._formatTitle(e.metadata.title),thumbnail:e.metadata.thumbnail,duration:i._formatDuration(e.metadata.duration),provider:i._formatProvider(t,e.brandingData)})}),n},t}();e.default=l},zW5x:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("s4NR"),r=i("ToqN"),o=i("t8Yn"),s=i("h8UC"),a=i("4g0/"),u=i("FXl5"),l=i("d/ck"),c=i("lSF3"),d=i("c+yx"),h=i("XevZ"),p=i("Ld5f"),f=i("XPHM"),_=i("25Pf");e.DEFAULT_AD_SYSTEM="vrm",e.DEFAULT_AD_SYSTEM_VERSION="2";e.DEFAULT_WIDTH=640,e.DEFAULT_HEIGHT=360,e.DEFAULT_MEDIA_ITEM_META={title:"",description:"",thumbnail:"",posterUrl:"",duration:0};var m=function(){function t(t){this._cancelled=!1,this._model=t;var e=this._model.config&&this._model.config.CMS;this._endPoint=e&&e.host||_.default.getEnv(e&&e.env||""),a.Loader.preconnect("preconnect-sapi","//"+this._endPoint)}return t.prototype.resolve=function(t,e,i,n){var r=this;if(void 0===n&&(n=0),Array.isArray(t)&&0!==t.length){var o="",a=this._getSapiUrl(t,e),l=n>0?n:0,c=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!r._cancelled){var a=e[0],l=void 0,c=e[2];try{l=JSON.parse(a),c.instrument=l.query&&l.query.results&&l.query.results.instrument?JSON.stringify(l.query.results.instrument):"none"}catch(t){}i.onApiCallInfo({perfObj:c,url:o}),r._parseResponse(t,a,function(t,e){if(!t&&e&&e.length){for(var n=0,o=e;n<o.length;n++){var a=(o[n].customConfig||{}).mediaItemStatus||{},l=parseInt(a.code,10);if(!isNaN(l)&&l>100){var c="",d=null,p=null;return r._errorCategoryHasCode(s.errorCodes.INFO_CODES,a.code)&&(d=s.errorCodes.E_INFO),r._isRestrictionError(d,a.code)&&(p="R"),a.code===s.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE&&(c=u.default.ERR_RESTRICTED_NETWORK_TYPE),a.code===s.errorCodes.SAPI_CODES.E_SAPI_UNSUPPORTED_FORMAT&&(p="S",d=s.errorCodes.E_SAPI_STREAM),void r._sendError(p,d,a.code,c,i)}}i.onComplete(e)}else t=t||"",r._sendError(null,null,h.getErrorCode(),t,i)})}},d=function(t,e,n,s,a){if(!r._cancelled){if(0===l||!o)return i.onApiCallInfo({perfObj:a||{},url:o}),void r._sendError(null,null,h.getErrorCode(t,e,n),t.message,i);l--,r._makeSapiRequest(o,c,d)}};a.then(function(t){o=t,r._makeSapiRequest(o,c,d)}).catch(function(){d.apply(r)})}},t.prototype.cancel=function(){this._cancelled=!0},t.prototype.parseMediaItemsResponse=function(t){var e=this;Array.isArray(t)&&t.length>0&&t.forEach(function(t){t.customConfig&&t.customConfig.response&&(e._parseMediaObjItem(t,t.customConfig.response,!1),delete t.customConfig.response)})},t.prototype.getDeviceType=function(){var t=navigator.platform.toLowerCase(),e=["mac","win"].some(function(e){return t.indexOf(e)>-1});return r.userAgent.tv?"tv-widget":e||!r.userAgent.ipad&&!r.userAgent.androidTablet?!e&&r.userAgent.mobile?"smartphone":"desktop":"tablet"},t.prototype._makeSapiRequest=function(t,e,i){a.Loader.ajax(t,{context:this,successHandler:e,failureHandler:i,collectPerfData:!0,withCookie:!0})},t.prototype._parseMediaObjItem=function(t,i,n){var r=this;void 0===n&&(n=!0);var o=i.meta||{},s=i.streams||[],a=i.license||{},u=t.metadata||{},l=i.metrics||{},c=t.customConfig||{};if(u.title=o.title||o.description,u.description=o.description,u.thumbnail=o.thumbnail,u.posterUrl=o.posterUrl,u.duration=o.duration,u.videoTypes=o.video_types,!c.playlistConfig&&o.playlist_config&&(c.playlistConfig=o.playlist_config),t.customConfig=t.customConfig||{},t.customConfig.nielsenRequired=o.nielsen_beacons||!1,i.status&&(t.customConfig.mediaItemStatus=i.status),o.allowed_connection_types&&(t.customConfig.allowedConnectionTypes=o.allowed_connection_types),t.customConfig.metrics={comscoreCM5:l.comscore_cm5||"",ywa:l.ywa||[],comscore6:l.comscore6||"",pspId:l.pspid||"",plidl:l.plidl||"",isrc:l.isrc||"",mmActivityId:l.mmActivityId||"",mediametrie:l.mediametrie||""},t.customConfig.meta={genre:o.genre||"",showName:o.show_name||"",credits:o.credits||{},eventStart:o.event_start||0,eventEnd:o.event_stop||0,videoMarkers:o.video_markers||null},n&&(u.title=u.title||e.DEFAULT_MEDIA_ITEM_META.title,u.description=u.description||e.DEFAULT_MEDIA_ITEM_META.description,u.thumbnail=u.thumbnail||e.DEFAULT_MEDIA_ITEM_META.thumbnail,u.posterUrl=u.posterUrl||e.DEFAULT_MEDIA_ITEM_META.posterUrl,u.duration=u.duration||e.DEFAULT_MEDIA_ITEM_META.duration),t.source={streams:s.map(function(t){return r._formatStreamMetadata(t)})},u.type=this._getStreamType(t.source.streams),t.metadata=u,a){var d={};d.title=a.title,d.accountName=a.account_name,d.originatingProperty=a.originating_property,d.accountId=a.account_id,d.salesforceId=a.salesforce_id,d.isDrm=a.is_drm,t.license=d}t.visualSeekData=t.visualSeekData||{mimetype:"visualseek/sapi"},t.visualSeekData.visualSeek=i.visualseek,o.provider&&(t.brandingData=t.brandingData||{branding:{}},o.provider.provider_id&&p.PROVIDER_BRANDING_TEMPLATES[o.provider.provider_id]&&(t.brandingData.mimetype="branding/provider"),t.brandingData.branding=t.brandingData.branding||{},t.brandingData.branding.providerId=o.provider.provider_id,t.brandingData.branding.providerName=o.provider.name,t.brandingData.branding.providerVideoId=o.provider.provider_video_id,t.brandingData.branding.gameOrigin=o.game_origin||[]),i[e.DEFAULT_AD_SYSTEM]&&(t.adConfig={value:i[e.DEFAULT_AD_SYSTEM],mimetype:"adplugin/"+e.DEFAULT_AD_SYSTEM}),i.closedcaptions&&(t.closedCaptions=i.closedcaptions)},t.prototype._parseResponse=function(t,e,i){var n=this;try{var r=JSON.parse(e),o=r&&r.query&&r.query.results&&r.query.results.mediaObj;if(!o)return void i("Bad sapi response");t.forEach(function(t){o.some(function(e,i){return!(!e||t.id!==e.id)&&(n._parseMediaObjItem(t,e),o.splice(i,1),!0)})}),i(null,t)}catch(t){i(t.message)}},t.prototype._sendError=function(t,e,i,n,r){var o={code:i,message:n,group:t||void 0,category:e||void 0};r.onError(o)},t.prototype._errorCategoryHasCode=function(t,e){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e)return!0;return!1},t.prototype._isRestrictionError=function(t,e){return t===s.errorCodes.E_INFO&&[s.errorCodes.INFO_CODES.E_SAPI_RESTRICTED_NETWORK_TYPE,s.errorCodes.INFO_CODES.E_SAPI_GEO,s.errorCodes.INFO_CODES.E_SAPI_BLACKOUT,s.errorCodes.INFO_CODES.E_SAPI_DEVICE,s.errorCodes.INFO_CODES.E_SAPI_EMBED].indexOf(e)>-1},t.prototype._getSapiUrl=function(t,i){var s=this,a=this._model,u=t.map(function(t){return t.id}).join(","),h=i.rendererTypes,p=i.rendererCapabilities,f={},_={},m=i.gdprConsent,y=i.thumbnailDimensions,v="//"+this._endPoint+"/v1/video/sapi/streams/"+u;h&&h.forEach(function(t){var e=p[t],i=e.acceptedProtocols,n=e.preferredFormats;i.forEach(function(t){return f[t]=!0}),n.forEach(function(t){return _[t]=!0})}),y&&y.width&&y.height||(y={width:e.DEFAULT_WIDTH,height:e.DEFAULT_HEIGHT});var g={srid:Math.floor(4294967295*Math.random()),protocol:Object.keys(f).join(","),format:Object.keys(_).join(","),rt:"html",devtype:this.getDeviceType(),offnetwork:!d.default.isOathDomain()&&!d.default.isWhitelistedDomain(),plid:a.guid,region:a.region||"US",site:a.site,expb:a.experienceBucket,expn:a.experienceName,bckt:d.default.getBckt(),lang:a.lang,width:y.width,height:y.height,resize:!0,ps:i.sessionId,autoplay:i.autoplay,image_sizes:"",excludePS:!0,acctid:a.yvapAccountId,synd:a.syndication,pspid:a.pspid,plidl:"",topic:a.cTopic,pver:"",try:l.isNumber(Number(i.tryCount))?Number(i.tryCount):1,failover_count:l.isNumber(Number(i.failoverCount))?Number(i.failoverCount):0,ads:e.DEFAULT_AD_SYSTEM+e.DEFAULT_AD_SYSTEM_VERSION},E=d.default.getPageQueryString(),b=E.ad_debug,S=E.upet;return b&&(g.ad_debug=b),S&&(g.upet=S),h&&-1!==h.indexOf(o.RendererType.HTML5_HLS)&&(g.hlspre=!0),a.aspectRatio&&(g.aspectr=a.aspectRatio),m&&!l.isNullOrUndefined(m.gdprApplies)&&(g.gdpr=!0===m.gdprApplies,g.iabconsent=m.consentData||""),a.pblob&&(g.pblob=JSON.stringify(a.pblob)),new c.Promise(function(t,e){a.allowGeoRequest&&r.userAgent.mobile?s._buildGPSClipParams(u).then(function(e){var i=Object.assign({},g,e);t(v+"?"+n.stringify(i))}).catch(function(){t(v+"?"+n.stringify(g))}):t(v+"?"+n.stringify(g))})},t.prototype._formatStreamMetadata=function(t){return t?{url:t.host+t.path,live:t.live,format:t.format,cdn:t.cdn,rcMode:t.rc_mode,mimeType:t.mime_type,aspectRatio:t.aspect_ratio,videoMetadata:{avgBitrate:t.avgbitrate||0,bitrate:t.bitrate||0,framerate:t.framerate||0,height:t.height||0,width:t.width||0,profile:t.h264_profile},audioMetadata:{channels:t.channels||0,forced:t.forced,autoSelect:t.auto_select,default:t.default}}:null},t.prototype._buildGPSClipParams=function(t){var e=this;return new c.Promise(function(i,n){f.default.getXAuthParams(t,e.getDeviceType()).then(function(t){var n=e._model.geoData;if(n&&n.latitude&&n.longitude&&n.accuracy){var r=n.latitude+";"+n.longitude+" epu="+n.accuracy,o=Object.assign({},t,{"geo-position":r});i(o)}else i(t)}).catch(function(){n({})})})},t.prototype._getStreamType=function(t){return t.some(function(t){return t.live})?o.MediaItemInterfaces.MediaItemType.LIVE_EVENT:o.MediaItemInterfaces.MediaItemType.VOD},t}();e.default=m},zuu9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.closedcaptionsSchema={$schema:"http://json-schema.org/draft-07/schema#",id:"/closedcaptionsSchema",type:"object",properties:{show:{type:"boolean"},lang:{default:"en-US",type:"string"},fontSize:{default:24,type:"number"},fontName:{default:"Arial, Helvetica, sans-serif",type:"string"},fontColor:{default:"#ffffff",type:"string"},fontOpacity:{default:1,type:"number"},fontEffect:{default:"none",type:"string"},bgColor:{default:"#000000",type:"string"},bgOpacity:{default:.75,type:"number"},ccPos:{default:"bottom",type:"string"},isAvailable:{type:"boolean"}}}}});
//# sourceMappingURL=oath-player-desktop.js.map