bitmovin-analytics 2.51.0 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitmovin-analytics-bitmovin-player-web-x.js +2 -2
- package/bitmovin-analytics-bitmovin-player-web-x.js.map +1 -1
- package/bitmovin-analytics-bitmovin-player.js +2 -2
- package/bitmovin-analytics-bitmovin-player.js.map +1 -1
- package/bitmovin-analytics.js +2 -2
- package/bitmovin-analytics.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* This source code and its use and distribution, is subject to the terms
|
|
6
6
|
* and conditions of the applicable license agreement.
|
|
7
7
|
*
|
|
8
|
-
* Bitmovin Analytics Collector Version 2.
|
|
8
|
+
* Bitmovin Analytics Collector Version 2.52.0
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bitmovin=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.analytics=t())}(self,(function(){return function(){var e={28:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxInternalAdapter=void 0;var o=i(2663),s=i(2361),u=i(556),c=i(7224),l=i(7614),d=i(9557),p=i(3413),h=i(2647),m=i(5406),v=i(7299),f=function(e){function t(t,i){var a=e.call(this,i)||this;a.onBeforeUnLoadEvent=!1,a.context=t;var n=new o.HeartbeatService((function(){return a.currentTime})),r=new m.BitmovinPwxAnalyticsStateMachine(a.stateMachineCallbacks,n,a.opts);return n.setListener(r),a.stateMachine=r,a}return n(t,e),t.prototype.getSource=function(){return this.context.registry.get(v.SourceExportNames.SourceState)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.getSource().playback.playhead.position},enumerable:!1,configurable:!0}),t.prototype.getAutoPlay=function(){return this.getSource().config.playback.autoplay},t.prototype.getCurrentPlaybackInfo=function(){var e,t,i,a,n,o,s,u=null===(e=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".m3u8")}))[0])||void 0===e?void 0:e.url,l=null===(t=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".mpd")}))[0])||void 0===t?void 0:t.url,d=null===(i=this.getSource().video.element)||void 0===i?void 0:i.getBoundingClientRect(),h=Math.round(null!==(a=null==d?void 0:d.width)&&void 0!==a?a:1),m=Math.round(null!==(n=null==d?void 0:d.height)&&void 0!==n?n:1),v=void 0;return u?v=c.StreamTypes.hls:l&&(v=c.StreamTypes.dash),r(r({},this.getCommonPlaybackInfo()),{droppedFrames:0,isMuted:null===(o=this.getSource().video.element)||void 0===o?void 0:o.muted,isLive:"live"===this.getSource().stream.type,videoWindowHeight:m,videoWindowWidth:h,videoDuration:(0,p.normalizeVideoDuration)(null===(s=this.getSource().video.element)||void 0===s?void 0:s.duration),videoPlaybackHeight:m,videoPlaybackWidth:h,m3u8Url:u,mpdUrl:l,streamFormat:v,videoCodec:void 0,audioCodec:void 0,videoBitrate:0,audioBitrate:0})},t.prototype.getPlayerName=function(){return u.Player.BITMOVIN_PWX},t.prototype.getPlayerTech=function(){return"webx:html5"},t.prototype.getPlayerVersion=function(){return this.context.registry.get(v.CoreExportNames.Constants).Version},t.prototype.initialize=function(e){return this.registerEventListeners(),this.registerUnloadEventListeners(),[new d.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new l.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],void 0)]},t.prototype.registerUnloadEventListeners=function(){var e=this,t=function(){if(!e.onBeforeUnLoadEvent){e.onBeforeUnLoadEvent=!0;var t=e.context.registry.get(v.SourceExportNames.SourceState).playback.playhead.position;e.eventCallback(s.Event.UNLOAD,{currentTime:t})}e.release()};t=t.bind(!0),this.context.abortSignal.addEventListener("abort",t),this.windowEventTracker.addEventListener("beforeunload",t),this.windowEventTracker.addEventListener("unload",t)},t.prototype.registerEventListeners=function(){var e=this,t=this.context.registry.get(v.SourcesApiExportNames.SourceEventBus),i=this.context.registry.get(v.SourceExportNames.SourceState).playback,a=this.context.registry.get(v.PlaybackApiEventsPackageExportNames.PlaybackEvent);t.on(a.Ready,(function(){e.eventCallback(s.Event.SOURCE_LOADED,{currentTime:i.playhead.position})})),t.on(a.Play,(function(){e.eventCallback(s.Event.PLAY,{currentTime:i.playhead.position})})),t.on(a.Playing,(function(){e.eventCallback(s.Event.PLAYING,{currentTime:i.playhead.position})})),t.on(a.Paused,(function(){e.eventCallback(s.Event.PAUSE,{currentTime:i.playhead.position})})),t.on(a.TimeChanged,(function(){e.eventCallback(s.Event.TIMECHANGED,{currentTime:i.playhead.position})})),t.on(a.VideoAttached,(function(){e.eventCallback(s.Event.SOURCE_LOADED,{currentTime:i.playhead.position})})),t.on(a.Ended,(function(){e.eventCallback(s.Event.END,{currentTime:i.playhead.position})}));var n=function(){var t=e.context.abortSignal.reason;"SourceRemovedError"===t.name||"FrameworkDisposedError"===t.name?e.eventCallback(s.Event.SOURCE_UNLOADED,{currentTime:i.playhead.position}):e.eventCallback(s.Event.ERROR,{currentTime:i.playhead.position,code:1007,message:t.message,data:t,originalError:t}),e.context.abortSignal.removeEventListener("abort",n)};this.context.abortSignal.addEventListener("abort",n)},t}(h.InternalAdapter);t.BitmovinPwxInternalAdapter=f},92:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.post=function(e,t,i,r){void 0===r&&(r=!0);(0,n.isReactNative)()&&!r&&(r=!0);var o,s=!1;window.XDomainRequest?(o=new window.XDomainRequest,s=!0):o=new XMLHttpRequest;var u=function(){if(o.readyState==XMLHttpRequest.DONE){if(o.responseText<=0)return;var e=JSON.parse(o.responseText);i(e)}};s?o.onload=u:o.onreadystatechange=u;try{o.open("POST",e,r),s||o.setRequestHeader("Content-Type","text/plain"),o.send(JSON.stringify(t))}catch(e){a.logger.error("Failed to send POST request.",e)}};var a=i(1916),n=i(5063)},348:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Feature=void 0;var a=i(5063),n=function(){function e(){this._config=void 0,this._isEnabled=!0}return Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},enumerable:!1,configurable:!0}),e.prototype.disable=function(){this._isEnabled=!1,this.disabled()},e.prototype.configure=function(e,t){return(0,a.isNotNullish)(t)&&(this._config=this.extractConfig(t)),this.configured(e,this._config),this._config},e}();t.Feature=n},399:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowTheoPlayerVersion=t.getWindowVideojsVersion=t.getWindowNavigatorUserAgent=t.getWindowNavigatorLanguage=t.hasWindowWebOSApi=t.getWindowWebOSApi=t.getWindowPerformance=t.getWindowLocationPathname=t.getWindowLocationHostname=t.removeWindowEventListener=t.addWindowEventListener=t.getWindowScreenDimensions=t.getWindowDevicePixelRatio=void 0;var a=i(1460),n=i(1820),r=i(5063);t.getWindowDevicePixelRatio=function(){return(0,r.isNullish)(window)||(0,r.isNullish)(window.devicePixelRatio)?1:window.devicePixelRatio>0?window.devicePixelRatio:1};t.getWindowScreenDimensions=function(){if(!(0,r.isNullish)(window)&&!(0,r.isNullish)(window.screen)&&(0,a.isNumber)(window.screen.width)&&(0,a.isNumber)(window.screen.height)){var e=(0,t.getWindowDevicePixelRatio)(),i=window.screen.width*e,n=window.screen.height*e;if(!(!isFinite(i)||!isFinite(n)||i<=0||n<=0))return{width:i,height:n,scale:e}}};t.addWindowEventListener=function(e,t){(0,r.isNullish)(window)||!(0,r.isFunction)(window.addEventListener)||(0,r.isNullish)(t)||window.addEventListener(e,t)};t.removeWindowEventListener=function(e,t){(0,r.isNullish)(window)||!(0,r.isFunction)(window.removeEventListener)||(0,r.isNullish)(t)||window.removeEventListener(e,t)};t.getWindowLocationHostname=function(){if(!(0,r.isNullish)(window)&&!(0,r.isNullish)(window.location)&&(0,n.isValidString)(window.location.hostname))return window.location.hostname};t.getWindowLocationPathname=function(){if(!(0,r.isNullish)(window)&&!(0,r.isNullish)(window.location)&&(0,n.isValidString)(window.location.pathname))return window.location.pathname};t.getWindowPerformance=function(){if(!(0,r.isNullish)(window))return window.performance};t.getWindowWebOSApi=function(){return(0,r.isNullish)(window)?{}:{webOSSystem:window.webOSSystem,PalmSystem:window.PalmSystem}};t.hasWindowWebOSApi=function(){var e=(0,t.getWindowWebOSApi)(),i=e.webOSSystem,a=e.PalmSystem;return!(0,r.isNullish)(i)||!(0,r.isNullish)(a)};t.getWindowNavigatorLanguage=function(){if(!(0,r.isNullish)(window)&&!(0,r.isNullish)(window.navigator))return window.navigator.language||window.navigator.userLanguage};t.getWindowNavigatorUserAgent=function(){if(!(0,r.isNullish)(null===window||void 0===window?void 0:window.navigator)&&(0,n.isValidString)(window.navigator.userAgent))return window.navigator.userAgent};t.getWindowVideojsVersion=function(){var e;if(!(0,r.isNullish)(window))return null===(e=window.videojs)||void 0===e?void 0:e.VERSION};t.getWindowTheoPlayerVersion=function(){var e;if(!(0,r.isNullish)(window))return null===(e=window.THEOplayer)||void 0===e?void 0:e.version}},404:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodecHelper=void 0;var i={avc:['video/mp4; codecs="avc1.42000a"'],vp9:['video/mp4; codecs="vp09.00.50.08"'],av1:['video/mp4; codecs="av01.0.08M.08"'],hevc:['video/mp4; codecs="hev1.1.6.L93.B0"']},a=function(){function e(){}return Object.defineProperty(e,"supportedVideoFormats",{get:function(){var e=this;if("MediaSource"in window)return Object.getOwnPropertyNames(i).filter((function(t){return i[t].some((function(t){return e.isCodecSupported(t)}))}))},enumerable:!1,configurable:!0}),e.isCodecSupported=function(e){return"MediaSource"in window&&MediaSource.isTypeSupported(e)},e}();t.CodecHelper=a},556:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0,function(e){e.AMAZON_IVS="amazonivs",e.BITMOVIN="bitmovin",e.BITMOVIN_PWX="bitmovin-pwx",e.CHROMECAST_SHAKA="chromecast-shaka",e.DASHJS="dashjs",e.HLSJS="hlsjs",e.HTML5="html5",e.JW="jw",e.RADIANT="radiant",e.SHAKA="shaka",e.THEOPLAYER="theoplayer",e.VIDEOJS="videojs"}(i||(t.Player=i={}))},675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var i=function(){function e(){this.callbacks=[]}return e.prototype.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){return t.unsubscribe(e)}},e.prototype.dispatch=function(e){this.callbacks.slice(0).forEach((function(t){t(e)}))},e.prototype.unsubscribe=function(e){var t=this.callbacks.indexOf(e);t>-1&&this.callbacks.splice(t,1)},Object.defineProperty(e.prototype,"subscriberCount",{get:function(){return this.callbacks.length},enumerable:!1,configurable:!0}),e}();t.EventDispatcher=i},847:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCookieMaxAgeValue=t.validateCookieDomainValue=t.SessionPersistenceHandler=t.COOKIE_DEFAULT_MAX_AGE=t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID=void 0;var a=i(3848),n=i(1460),r=i(1820),o=i(5063),s=i(2982);t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID="bitmovin_analytics_uuid",t.COOKIE_DEFAULT_MAX_AGE=31536e3;var u=function(e){var i=e.config;if(!1===(null==i?void 0:i.cookiesEnabled))return(0,a.deleteCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID),void(this.userId=(0,s.generateUUID)());var n=(0,a.getCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID);this.userId=(0,o.isNotNullish)(n)&&!(0,r.isBlank)(n)?n:(0,s.generateUUID)();var u=(0,t.validateCookieDomainValue)(null==i?void 0:i.cookiesDomain),c=(0,t.validateCookieMaxAgeValue)(null==i?void 0:i.cookiesMaxAge),l=Date.now(),d=new Date(l+1e3*c).toUTCString();(0,a.setCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID,this.userId,{domain:u,expires:d,maxAge:c})};t.SessionPersistenceHandler=u;t.validateCookieDomainValue=function(e){if(!(0,o.isNullish)(e)&&(0,r.isValidString)(e)&&!(0,r.isBlank)(e))return encodeURIComponent(e)};t.validateCookieMaxAgeValue=function(e){return(0,o.isNullish)(e)?t.COOKIE_DEFAULT_MAX_AGE:(0,n.isNumber)(e)?e:t.COOKIE_DEFAULT_MAX_AGE}},1125:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueueBackend=void 0;var i=function(){function e(){this.queue=[],this.unloadQueue=[],this.syncQueue=[],this.adQueue=[]}return e.prototype.sendRequest=function(e){this.queue.push(e)},e.prototype.sendUnloadRequest=function(e){this.unloadQueue.push(e)},e.prototype.sendRequestSynchronous=function(e){this.syncQueue.push(e)},e.prototype.sendAdRequest=function(e){this.adQueue.push(e)},e.prototype.flushTo=function(e){this.queue.forEach((function(t){e.sendRequest(t)})),this.unloadQueue.forEach((function(t){e.sendUnloadRequest(t)})),this.syncQueue.forEach((function(t){e.sendRequestSynchronous(t)})),this.adQueue.forEach((function(t){e.sendAdRequest(t)}))},e}();t.QueueBackend=i},1460:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFiniteNumber=t.isNumber=void 0;var a=i(5063);t.isNumber=function(e){return!(0,a.isNullish)(e)&&"number"==typeof e};t.isFiniteNumber=function(e){return!!(0,t.isNumber)(e)&&((0,a.isFunction)(Number.isFinite)?Number.isFinite(e):isFinite(e))}},1652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDebugging=void 0;var i=function(e,t,i,a,n){this.event=e,this.from=t,this.to=i,this.timestamp=a,this.eventObject=n};t.EventDebugging=i},1820:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=t.endsWith=t.isBlank=t.isEmpty=t.isValidString=void 0;var a=i(5063);t.isValidString=function(e){return(0,a.isNotNullish)(e)&&"string"==typeof e};t.isEmpty=function(e){return(0,a.isNullish)(e)||0===e.length};t.isBlank=function(e){return(0,t.isEmpty)(e)||(0,t.isEmpty)(null==e?void 0:e.trim())};t.endsWith=function(e,i){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(i))&&((0,a.isFunction)(String.prototype.endsWith)?e.endsWith(i):e.substring(e.length-i.length)===i)};t.startsWith=function(e,i){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(i))&&((0,a.isFunction)(String.prototype.startsWith)?e.startsWith(i):e.substring(0,i.length)===i)}},1916:function(e,t){"use strict";var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.padRight=void 0;var a=function(){function e(){}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.initialize=function(e){this.analyticsDebugConfig=e},e.prototype.log=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.log(e,t)},e.prototype.table=function(e,t){this.enabled&&console.table(e,t)},e.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.warn(e,t)},e.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.error(e,t)},e.prototype.errorMessageToUser=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];console.error.apply(console,i([e],t,!1))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this.analyticsDebugConfig||!1},enumerable:!1,configurable:!0}),e}();t.padRight=function(e,t){return(e+new Array(t).join(" ")).slice(0,t)},t.logger=a.getInstance()},2168:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIMETypes=void 0,t.getMIMETypeFromFileExtension=function(e){var i=e.split(/[?#]/)[0].toLowerCase();if((0,a.endsWith)(i,".m3u8"))return t.MIMETypes.HLS;if((0,a.endsWith)(i,".mp4")||(0,a.endsWith)(i,".m4v")||(0,a.endsWith)(i,".m4a"))return t.MIMETypes.MP4;if((0,a.endsWith)(i,".webm"))return t.MIMETypes.WEBM;if((0,a.endsWith)(i,".mpd"))return t.MIMETypes.DASH;return};var a=i(1820);t.MIMETypes={MP4:"video/mp4",WEBM:"video/webm",HLS:"application/x-mpegURL",DASH:"application/dash+xml"}},2226:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoOpBackend=void 0;var i=function(){function e(){}return e.prototype.sendRequest=function(e){},e.prototype.sendUnloadRequest=function(e){},e.prototype.sendRequestSynchronous=function(e){},e.prototype.sendAdRequest=function(e){},e}();t.NoOpBackend=i},2361:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=t.JSM_INITIAL_EVENT=void 0,t.JSM_INITIAL_EVENT="jsm-initial",function(e){e.AUDIO_CHANGE="audioChange",e.AUDIOTRACK_CHANGED="audioTrackChanged",e.CUSTOM_DATA_CHANGE="customDataChange",e.END="end",e.END_AD="adEnd",e.END_BUFFERING="endBuffering",e.END_CAST="endCasting",e.END_FULLSCREEN="endFullscreen",e.ERROR="playerError",e.FINISH_QUALITY_CHANGE="finishQualityChange",e.LOADSTART_AUTOPLAY="loadstartAutoplay",e.MANUAL_SOURCE_CHANGE="manualSourceChangeInitiated",e.MUTE="mute",e.PAUSE="pause",e.PLAY="play",e.PLAYING="playing",e.READY="ready",e.SCREEN_RESIZE="resize",e.SEEK="seek",e.SEEKED="seeked",e.SOURCE_LOADED="sourceLoaded",e.SOURCE_UNLOADED="sourceUnloaded",e.START_AD="adStart",e.START_BUFFERING="startBuffering",e.START_CAST="startCasting",e.START_FULLSCREEN="startFullscreen",e.SUBTITLE_CHANGE="subtitleChange",e.TIMECHANGED="timechanged",e.UN_MUTE="unMute",e.UNLOAD="unload",e.VIDEO_CHANGE="videoChange",e.VIDEOSTART_TIMEOUT="VIDEOSTART_TIMEOUT"}(i||(t.Event=i={}))},2364:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteBackend=void 0;var a=i(5426),n=i(5063),r=function(){function e(e,t,i){this.licenseKey=i,this.hasAdModule=e,this.analyticsCall=new a.AnalyticsCall(t)}return e.prototype.sendRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequest(e,n.noOp)},e.prototype.sendUnloadRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequestSynchronous(e,n.noOp)},e.prototype.sendAdRequest=function(e){e.key=this.licenseKey,this.hasAdModule&&this.analyticsCall.sendAdRequest(e)},e}();t.RemoteBackend=r},2376:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowEventTracker=void 0;var a=i(399),n=function(){function e(){this.trackedObjects=[]}return e.prototype.addEventListener=function(e,t){this.trackedObjects.push({eventName:e,func:t}),(0,a.addWindowEventListener)(e,t)},e.prototype.release=function(){for(;0!==this.trackedObjects.length;){var e=this.trackedObjects.pop();void 0!==e&&(0,a.removeWindowEventListener)(e.eventName,e.func)}},e}();t.WindowEventTracker=n},2506:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAnalyticsPackage=void 0;var a,n,r,o=i(5063),s=i(2767),u=i(7299);t.BitmovinPwxAnalyticsPackage=(a="analytics-package",n=function(e,t){var i,a,n=t.registry.get(u.CoreExportNames.CoreEffects),r=n.EventListenerEffectFactory,c=n.StateEffectFactory,l=t.using(r,c),d=l.registry.get(u.BundleExportNames.Logger),p=l.registry.get(u.SourceExportNames.SourceState),h=l.registry.get(u.BundleExportNames.PlayerConfig),m=null!==(i=h.analytics)&&void 0!==i?i:{};m.playerKey=null!==(a=m.playerKey)&&void 0!==a?a:h.key,d.log("Applying analytics config ".concat((0,o.tryJSONStringify)(m)));var v=new s.BitmovinPwxAdapter(l,m);d.log('Analytics package initializing for "'.concat(p.url,'"...'));var f=function(){l.abortSignal.removeEventListener("abort",f),d.log('Analytics package disposing for "'.concat(p.url,'"')),v.dispose()};l.abortSignal.addEventListener("abort",f)},r=[u.BundleExportNames.Logger,u.BundleExportNames.PlayerConfig,u.CoreExportNames.Constants,u.CoreExportNames.CoreEffects,u.CoreExportNames.CoreStateAtoms,u.SourceExportNames.SourceState,u.SourcesApiExportNames.SourceEventBus,u.PlaybackApiEventsPackageExportNames.PlaybackEvent],n._name=a,{onAdd:n,dependencies:r})},2595:function(e,t){var i;i={VERSION:"2.4.0",Result:{SUCCEEDED:1,NOTRANSITION:2,CANCELLED:3,PENDING:4},Error:{INVALID_TRANSITION:100,PENDING_TRANSITION:200,INVALID_CALLBACK:300},WILDCARD:"*",ASYNC:"async",create:function(e,t){var a="string"==typeof e.initial?{state:e.initial}:e.initial,n=e.terminal||e.final,r=t||e.target||{},o=e.events||[],s=e.callbacks||{},u={},c={},l=function(e){var t=Array.isArray(e.from)?e.from:e.from?[e.from]:[i.WILDCARD];u[e.name]=u[e.name]||{};for(var a=0;a<t.length;a++)c[t[a]]=c[t[a]]||[],c[t[a]].push(e.name),u[e.name][t[a]]=e.to||t[a];e.to&&(c[e.to]=c[e.to]||[])};a&&(a.event=a.event||"startup",l({name:a.event,from:"none",to:a.state}));for(var d=0;d<o.length;d++)l(o[d]);for(var p in u)u.hasOwnProperty(p)&&(r[p]=i.buildEvent(p,u[p]));for(var p in s)s.hasOwnProperty(p)&&(r[p]=s[p]);return r.current="none",r.is=function(e){return Array.isArray(e)?e.indexOf(this.current)>=0:this.current===e},r.can=function(e){return!this.transition&&void 0!==u[e]&&(u[e].hasOwnProperty(this.current)||u[e].hasOwnProperty(i.WILDCARD))},r.cannot=function(e){return!this.can(e)},r.transitions=function(){return(c[this.current]||[]).concat(c[i.WILDCARD]||[])},r.isFinished=function(){return this.is(n)},r.error=e.error||function(e,t,i,a,n,r,o){throw o||r},r.states=function(){return Object.keys(c).sort()},a&&!a.defer&&r[a.event](),r},doCallback:function(e,t,a,n,r,o){if(t)try{return t.apply(e,[a,n,r].concat(o))}catch(t){return e.error(a,n,r,o,i.Error.INVALID_CALLBACK,"an exception occurred in a caller-provided callback function",t)}},beforeAnyEvent:function(e,t,a,n,r){return i.doCallback(e,e.onbeforeevent,t,a,n,r)},afterAnyEvent:function(e,t,a,n,r){return i.doCallback(e,e.onafterevent||e.onevent,t,a,n,r)},leaveAnyState:function(e,t,a,n,r){return i.doCallback(e,e.onleavestate,t,a,n,r)},enterAnyState:function(e,t,a,n,r){return i.doCallback(e,e.onenterstate||e.onstate,t,a,n,r)},changeState:function(e,t,a,n,r){return i.doCallback(e,e.onchangestate,t,a,n,r)},beforeThisEvent:function(e,t,a,n,r){return i.doCallback(e,e["onbefore"+t],t,a,n,r)},afterThisEvent:function(e,t,a,n,r){return i.doCallback(e,e["onafter"+t]||e["on"+t],t,a,n,r)},leaveThisState:function(e,t,a,n,r){return i.doCallback(e,e["onleave"+a],t,a,n,r)},enterThisState:function(e,t,a,n,r){return i.doCallback(e,e["onenter"+n]||e["on"+n],t,a,n,r)},beforeEvent:function(e,t,a,n,r){if(!1===i.beforeThisEvent(e,t,a,n,r)||!1===i.beforeAnyEvent(e,t,a,n,r))return!1},afterEvent:function(e,t,a,n,r){i.afterThisEvent(e,t,a,n,r),i.afterAnyEvent(e,t,a,n,r)},leaveState:function(e,t,a,n,r){var o=i.leaveThisState(e,t,a,n,r),s=i.leaveAnyState(e,t,a,n,r);return!1!==o&&!1!==s&&(i.ASYNC===o||i.ASYNC===s?i.ASYNC:void 0)},enterState:function(e,t,a,n,r){i.enterThisState(e,t,a,n,r),i.enterAnyState(e,t,a,n,r)},buildEvent:function(e,t){return function(){var a=this.current,n=t[a]||(t[i.WILDCARD]!=i.WILDCARD?t[i.WILDCARD]:a)||a,r=Array.prototype.slice.call(arguments);if(this.transition)return this.error(e,a,n,r,i.Error.PENDING_TRANSITION,"event "+e+" inappropriate because previous transition did not complete");if(this.cannot(e))return this.error(e,a,n,r,i.Error.INVALID_TRANSITION,"event "+e+" inappropriate in current state "+this.current);if(!1===i.beforeEvent(this,e,a,n,r))return i.Result.CANCELLED;if(a===n)return i.afterEvent(this,e,a,n,r),i.Result.NOTRANSITION;var o=this;this.transition=function(){return o.transition=null,o.current=n,i.enterState(o,e,a,n,r),i.changeState(o,e,a,n,r),i.afterEvent(o,e,a,n,r),i.Result.SUCCEEDED},this.transition.cancel=function(){o.transition=null,i.afterEvent(o,e,a,n,r)};var s=i.leaveState(this,e,a,n,r);return!1===s?(this.transition=null,i.Result.CANCELLED):i.ASYNC===s?i.Result.PENDING:this.transition?this.transition():void 0}}},e.exports&&(t=e.exports=i),t.StateMachine=i},2647:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InternalAdapter=void 0;var n=i(675),r=i(9796),o=i(4916),s=i(4300),u=i(2361),c=i(4820),l=i(1916),d=i(5063),p=i(2376),h=i(399),m=function(){function e(e){var t=this;this.onLicenseKeyReceived=new n.EventDispatcher,this.onLicenseCallFailed=new n.EventDispatcher,this.qualityChangeService=new r.default,this.ssaiService=new s.SsaiService,this.stateMachineCallbacks=a({},c.defaultStateMachineCallbacks),this.sourceInfoFallbackService=new o.SourceInfoFallbackService,this.drmPerformanceInfo=void 0,this.windowEventTracker=new p.WindowEventTracker,this.eventCallback=function(e,i){i=i||{},t.stateMachine?t.stateMachine.callEvent(e,i,Date.now()):l.logger.log("Bitmovin Analytics: StateMachine isn't ready yet")},e||(e={starttime:void 0}),e.starttime||(e.starttime=(0,d.getCurrentTimestamp)()),this.opts=e}return e.prototype.release=function(){this.stateMachine.resetIntervals(),this.stateMachineCallbacks.release(),this.resetSourceRelatedState(),this.windowEventTracker.release()},e.prototype.getCommonPlaybackInfo=function(){var e=(0,h.getWindowScreenDimensions)();return{screenHeight:null==e?void 0:e.height,screenWidth:null==e?void 0:e.width}},e.prototype.getDrmPerformanceInfo=function(){},e.prototype.getSegmentInfo=function(){return[]},e.prototype.getDownloadSpeedInfo=function(){return{segmentsDownloadCount:0,segmentsDownloadSize:0,segmentsDownloadTime:0,avgDownloadSpeed:0,minDownloadSpeed:0,maxDownloadSpeed:0,avgTimeToFirstByte:0}},e.prototype.resetDownloadSpeedInfoMeasures=function(){},e.prototype.setCustomData=function(e){var t=this.stateMachine.currentState,i={customDataValues:e,currentTime:this.currentTime};!this.stateMachine.currentState||"PAUSE"!==this.stateMachine.currentState&&"PLAYING"!==this.stateMachine.currentState?this.stateMachineCallbacks.customdatachange(void 0,void 0,i):(this.eventCallback(u.Event.CUSTOM_DATA_CHANGE,{currentTime:this.currentTime}),this.eventCallback(u.Event[t],i))},e.prototype.sourceChange=function(e){this.eventCallback(u.Event.MANUAL_SOURCE_CHANGE,{currentTime:this.currentTime,config:e})},e.prototype.resetSourceRelatedState=function(){this.sourceInfoFallbackService.reset(),this.drmPerformanceInfo=void 0},e.prototype.programChange=function(e){var t=this.ssaiService.isInActiveState();this.stateMachine.programChange(this.currentTime,t,e)},e}();t.InternalAdapter=m},2663:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeartbeatService=t.DEFAULT_HEARTBEAT_INTERVAL_MS=void 0,t.DEFAULT_HEARTBEAT_INTERVAL_MS=59700;var i=function(){function e(e){this.getPlayerCurrentTime=e}return e.prototype.setListener=function(e){this.listener=e},e.prototype.startHeartbeat=function(){var e=this;void 0!==this.heartbeatInterval&&this.clearHeartbeat(),this.heartbeatInterval=setInterval((function(){var t;null===(t=e.listener)||void 0===t||t.onHeartbeat(e.getPlayerCurrentTime())}),t.DEFAULT_HEARTBEAT_INTERVAL_MS)},e.prototype.stopHeartbeat=function(){this.clearHeartbeat()},e.prototype.clearHeartbeat=function(){clearTimeout(this.heartbeatInterval),this.heartbeatInterval=void 0},e}();t.HeartbeatService=i},2767:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAdapter=void 0;var a=i(4350),n=i(8331),r=i(9627),o=i(4926),s=i(28),u=function(){function e(e,t){var i=this;this.getCurrentImpressionId=function(){return i.analytics.getCurrentImpressionId()},this.getUserId=function(){return i.analytics.getUserId()},this.setCustomData=function(e){return i.internalAdapter.setCustomData(e)},this.setCustomDataOnce=function(e){return i.analytics.setCustomDataOnce(e)},this.sourceChange=function(e){throw new Error("Method not implemented.")};var o=(0,n.sanitizeAnalyticsConfig)(t);if(!(0,r.areCollectorRequirementsValid)(o))throw new Error("Failed to create BitmovinPwxAdapter: domain is required");(0,n.guardAgainstDuplicatedUserId)(o),this.internalAdapter=new s.BitmovinPwxInternalAdapter(e),this.analytics=a.Analytics.create(o,this.internalAdapter)}return e.prototype.dispose=function(){this.internalAdapter.release()},Object.defineProperty(e.prototype,"version",{get:function(){return o.VERSION},enumerable:!1,configurable:!0}),e.version=o.VERSION,e}();t.BitmovinPwxAdapter=u},2780:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LongPlaytimeFilteringBackend=void 0;var a=i(5063),n=function(){function e(e){this.nextBackend=e}return e.prototype.sendRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.nextBackend.sendAdRequest(e)},e.prototype.isPlayedAboveThreshold=function(e){return((0,a.isNullish)(e.played)?0:e.played)>=9e4},e}();t.LongPlaytimeFilteringBackend=n},2974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=void 0;t.objectValues=function(e){return Object.keys(e).map((function(t){return e[t]}))}},2982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0;t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},3054:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackendFactory=void 0;var a=i(5253),n=i(4649),r=i(7540),o=i(3489),s=i(2780),u=i(2226),c=i(7390),l=function(){function e(){}return e.prototype.createBackend=function(e,t,i,a){if(!this.isEnabled(e))return new u.NoOpBackend;var n=this.createInnerBackend(e,t,i,a);return this.decorateWithDebuggingBackend(e,n)},e.prototype.decorateWithDebuggingBackend=function(e,t){return e.debug?new r.DebuggingBackend(e,t):t},e.prototype.decorateWithBackendFromConfigIfAvailable=function(e,t){return void 0!==e&&void 0!==e.config&&void 0!==e.config.wrapBackend?e.config.wrapBackend(t):t},e.prototype.isEnabled=function(e){return void 0===e.config||!1!==e.config.enabled},e.prototype.createInnerBackend=function(e,t,i,r){var u=e.config&&e.config.backendUrl||n.ANALYTICS_BACKEND_BASE_URL,l=new o.LicenseCheckingBackend(t,a.LicenseCall,u,i,r);l=this.decorateWithBackendFromConfigIfAvailable(e,l);var d=new c.SequenceNumberBackend(l);return new s.LongPlaytimeFilteringBackend(d)},e}();t.BackendFactory=l},3413:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeVideoDuration=function(e){if((0,n.isNullish)(e)||Number.isNaN(e)||e===1/0)return 0;return e},t.buildPlaybackInfoStreamTypeFields=function(e,t){var i={streamFormat:null!=e?e:void 0,progUrl:t};if((0,n.isNullish)(e))return i;if(e===a.StreamTypes.dash)return{streamFormat:e,mpdUrl:t};if(e===a.StreamTypes.hls)return{streamFormat:e,m3u8Url:t};if(e===a.StreamTypes.prog)return{streamFormat:e,progUrl:t};return i};var a=i(7224),n=i(5063)},3458:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0;var i=function(){function e(e,t,i){void 0===i&&(i="CRITICAL"),this.code=e,this.message=t,this.errorSeverity=i}return e.BITMOVIN_PLAYER_LICENSING_ERROR=new e(1103,""),e.SETUP_MISSING_LICENSE_WHITELIST=new e(1105,""),e.QUALITY_CHANGE_THRESHOLD_EXCEEDED=new e(1e4,"ANALYTICS_QUALITY_CHANGE_THRESHOLD_EXCEEDED","INFO"),e.BUFFERING_TIMEOUT_REACHED=new e(10001,"ANALYTICS_BUFFERING_TIMEOUT_REACHED"),e.VIDEO_STARTUP_TIMEOUT_REACHED=new e(10002,"ANALYTICS_VIDEOSTART_TIMEOUT_REACHED"),e}();t.ErrorCode=i},3489:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCheckingBackend=void 0;var n=i(4501),r=i(1916),o=i(4649),s=i(2226),u=i(1125),c=i(2364),l=function(){function e(e,t,i,n,r){var c=this;this.licenseCall=t,this.backendBaseUrl=i,this.adapter=n,this.authenticationCallback=r,this.licenseKeyReceived=function(e){clearTimeout(c.licenseLazyLoadingTimeoutHandle),c.unsubscribeFromAdapter(),c.info.key=e.licenseKey,c.promise=c.wrapLicenseCheckPromiseWithCallback(c.performLicenseCheck(),c.authenticationCallback)},this.licenseCallFailed=function(){clearTimeout(c.licenseLazyLoadingTimeoutHandle),c.unsubscribeFromAdapter(),c.backend=new s.NoOpBackend,c.authenticationCallback.authenticationCompleted(!1,void 0)},this.licenseLazyLoadingTimeout=function(){c.unsubscribeFromAdapter(),c.backend=new s.NoOpBackend,c.authenticationCallback.authenticationCompleted(!1,void 0)},this.info=a({},e),this.backend=new u.QueueBackend,this.licenseCall=t,void 0!==e.key&&""!==e.key?this.promise=this.wrapLicenseCheckPromiseWithCallback(this.performLicenseCheck(),this.authenticationCallback):!0===n.supportsDeferredLicenseLoading?(n.onLicenseKeyReceived.subscribe(this.licenseKeyReceived),n.onLicenseCallFailed.subscribe(this.licenseCallFailed),this.licenseLazyLoadingTimeoutHandle=setTimeout(this.licenseLazyLoadingTimeout,o.ANALYTICS_LICENSECALL_TIMEOUT)):(r.authenticationCompleted(!1,void 0),this.backend=new s.NoOpBackend)}return e.prototype.performLicenseCheck=function(){var e=this,t=this.info,i=t.key,a=t.domain,o=t.version;if(!i||""===i){var u={status:n.LicensingResult.Denied,message:"No license key provided"};return this.backend=new s.NoOpBackend,Promise.resolve(u)}return this.licenseCall(i,a,o,this.backendBaseUrl).then((function(t){if(t.status!==n.LicensingResult.Granted)throw new Error(t.message);var a=new c.RemoteBackend(!0,e.backendBaseUrl,i);return e.backend.flushTo(a),e.backend=a,t})).catch((function(t){return"Ignoring Impression due to DNT Header being set"===t.message?r.logger.error("License Check for Bitmovin Analytics failed because of",t):r.logger.errorMessageToUser("License Check for Bitmovin Analytics failed because of",t),e.backend=new s.NoOpBackend,{status:n.LicensingResult.Denied,message:t.message}}))},e.prototype.sendRequest=function(e){this.backend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.backend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.backend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.backend.sendAdRequest(e)},e.prototype.unsubscribeFromAdapter=function(){this.adapter.onLicenseKeyReceived.unsubscribe(this.licenseKeyReceived),this.adapter.onLicenseCallFailed.unsubscribe(this.licenseCallFailed)},e.prototype.wrapLicenseCheckPromiseWithCallback=function(e,t){return e.then((function(e){return t.authenticationCompleted(e.status===n.LicensingResult.Granted,e.features),e}))},e}();t.LicenseCheckingBackend=l},3565:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoStartFailedReason=void 0,t.createVideoStartFailedReason=function(e){switch(e){case n.Event.ERROR:return a.PLAYER_ERROR;case n.Event.UNLOAD:case n.Event.MANUAL_SOURCE_CHANGE:case n.Event.SOURCE_UNLOADED:return a.PAGE_CLOSED;case n.Event.VIDEOSTART_TIMEOUT:return a.TIMEOUT;default:return a.UNKNOWN}};var a,n=i(2361);!function(e){e.PAGE_CLOSED="PAGE_CLOSED",e.PLAYER_ERROR="PLAYER_ERROR",e.TIMEOUT="TIMEOUT",e.UNKNOWN="UNKNOWN"}(a||(t.VideoStartFailedReason=a={}))},3588:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AD_TYPE=void 0,function(e){e[e.NO_AD=0]="NO_AD",e[e.CSAI=1]="CSAI",e[e.SSAI=2]="SSAI"}(i||(t.AD_TYPE=i={}))},3612:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewportTracker=void 0;var a=i(3848),n=i(1916),r=i(1820),o=i(5063),s=function(){function e(e,t,i){void 0===i&&(i=1);var r=this;this.inViewport=void 0,this.threshold=i,this.onIntersectionChanged=t,this.element=e;try{var o={root:null,rootMargin:"0px",threshold:i};this.observer=new IntersectionObserver((function(e,t){return r.handleIntersect(e,t)}),o),this.observer.observe(e)}catch(e){n.logger.log("Couldn't create instance of IntersectionObserver. timeInViewport will always be reported as 100%.")}this.hiddenPropertyName=(0,a.getDocumentPropertyWithPrefix)("hidden"),this.hiddenPropertyName&&(this.visibilityChange=this.hiddenPropertyName.replace("hidden","")+"visibilitychange",(0,a.addDocumentEventListener)(this.visibilityChange,this.handleVisibilityChange=this.handleVisibilityChange.bind(this),!1))}return e.prototype.isHidden=function(){return!((0,o.isNullish)(document)||!(0,r.isValidString)(this.hiddenPropertyName))&&!0===document[this.hiddenPropertyName]},e.prototype.isInViewport=function(){return!this.isHidden()&&(!!(0,o.isNullish)(this.inViewport)||this.inViewport)},e.prototype.dispose=function(){this.observer&&(this.observer.unobserve(this.element),this.observer.disconnect()),this.visibilityChange&&(0,a.removeDocumentEventListener)(this.visibilityChange,this.handleVisibilityChange,!1)},e.prototype.handleVisibilityChange=function(){this.onIntersectionChanged()},e.prototype.handleIntersect=function(e,t){var i=this;e.forEach((function(e){e.target===i.element&&(i.inViewport=!(e.intersectionRatio<i.threshold))})),this.onIntersectionChanged()},e}();t.ViewportTracker=s},3848:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.setCookie=t.getCookie=t.removeDocumentEventListener=t.addDocumentEventListener=t.isVideoInFullscreen=t.isDocumentHidden=t.getDocumentPropertyWithPrefix=void 0;var a=i(1916),n=i(1820),r=i(5063);t.getDocumentPropertyWithPrefix=function(e){if(!(0,r.isNullish)(document)){if(e in document)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0,a=["webkit","moz","ms","o"];i<a.length;i++){var n=a[i]+t;if(n in document)return n}}};t.isDocumentHidden=function(){var e=(0,t.getDocumentPropertyWithPrefix)("hidden");return!!(0,n.isValidString)(e)&&!0===document[e]};t.isVideoInFullscreen=function(){var e,i=(0,t.getDocumentPropertyWithPrefix)("fullscreenElement");return!!(0,n.isValidString)(i)&&"VIDEO"===(null===(e=document[i])||void 0===e?void 0:e.nodeName)};t.addDocumentEventListener=function(e,t,i){(0,r.isNullish)(document)||!(0,r.isFunction)(document.addEventListener)||(0,r.isNullish)(t)||document.addEventListener(e,t,i)};t.removeDocumentEventListener=function(e,t,i){(0,r.isNullish)(document)||!(0,r.isFunction)(document.removeEventListener)||(0,r.isNullish)(t)||document.removeEventListener(e,t,i)};t.getCookie=function(e){if(!(0,r.isNullish)(document)){var t;try{t=document.cookie.split(";")}catch(e){return void a.logger.log("failed to access cookie objects on document",e)}for(var i=e+"=",n=0,o=t;n<o.length;n++){for(var s=o[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(i))return s.substring(i.length,s.length)}return""}};t.setCookie=function(e,t,i){if(!(0,r.isNullish)(document)){var n=e+"="+t+"; path=/";(null==i?void 0:i.domain)&&(n+="; domain=".concat(i.domain)),(null==i?void 0:i.expires)&&(n+="; expires=".concat(i.expires)),(null==i?void 0:i.maxAge)&&(n+="; max-age=".concat(i.maxAge));try{document.cookie=n}catch(e){return void a.logger.log("failed to set cookie object on document",e)}}};t.deleteCookie=function(e){if(!(0,r.isNullish)(document))try{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}catch(e){return void a.logger.log("failed to delete cookies from document",e)}}},4300:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SsaiService=void 0;var n,r=i(3588),o=i(3458),s=i(5529),u=i(5063),c=i(2982),l=i(7906);!function(e){e[e.AD_BREAK_STARTED=0]="AD_BREAK_STARTED",e[e.ACTIVE=1]="ACTIVE",e[e.IDLE=2]="IDLE"}(n||(n={}));var d=function(){function e(){this.eventHandler=void 0,this.adIndex=-1,this.state=n.IDLE,this.isFirstSampleOfAd=!1,this.sentAdQuartiles=[],this.errorSent=!1}return e.prototype.activate=function(e){this.eventHandler=e},e.prototype.adBreakStart=function(e){p(this.eventHandler)&&this.state==n.IDLE&&(this.state=n.AD_BREAK_STARTED,this.currentAdMetadata=a({},e))},e.prototype.adStart=function(e){var t;if(p(this.eventHandler)&&this.state!=n.IDLE){var i=(new Date).getTime(),a=this.eventHandler.getPlayerCurrentTime();this.eventHandler.reportPlaybackInteraction(i,a),this.state=n.ACTIVE,this.isFirstSampleOfAd=!0,this.adIndex++,this.resetAdData(),this.currentAdMetadata={adPosition:null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adPosition,adId:null==e?void 0:e.adId,adSystem:null==e?void 0:e.adSystem,customData:null==e?void 0:e.customData},this.currentAdImpressionId=(0,c.generateUUID)(),this.timestampOfAdStart=(0,l.getCurrentMonotonicTimestampInMs)(),this.eventHandler.reportEngagementInteraction({type:"started",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{}})}},e.prototype.adQuartileFinished=function(e,t){p(this.eventHandler)&&this.state==n.ACTIVE&&(this.sentAdQuartiles.includes(e)||(this.eventHandler.reportEngagementInteraction({type:"quartile",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},quartile:e,quartileMetadata:t,timeSinceAdStartedInMs:(0,l.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.sentAdQuartiles.push(e)))},e.prototype.adBreakEnd=function(){if(p(this.eventHandler)&&this.state!=n.IDLE){if(this.state==n.ACTIVE){var e=(new Date).getTime(),t=this.eventHandler.getPlayerCurrentTime();this.eventHandler.reportPlaybackInteraction(e,t)}this.resetAdBreakData()}},e.prototype.manipulate=function(e){var t,i,a,o;if(p(this.eventHandler)&&this.state==n.ACTIVE){e.ad=r.AD_TYPE.SSAI,e.adId=null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adId,e.adSystem=null===(i=this.currentAdMetadata)||void 0===i?void 0:i.adSystem,e.adPosition=null===(a=this.currentAdMetadata)||void 0===a?void 0:a.adPosition,this.isFirstSampleOfAd&&(e.adIndex=this.adIndex,this.isFirstSampleOfAd=!1);var c=null===(o=this.currentAdMetadata)||void 0===o?void 0:o.customData;(0,u.isNotNullish)(c)&&s.customDataValuesKeys.forEach((function(t){c[t]&&(e[t]=c[t])})),e[l.SSAI_RELATED_SAMPLE_MARKER]=!0}},e.prototype.sendAdEngagementErrorSample=function(e,t){p(this.eventHandler)&&this.state===n.ACTIVE&&(this.errorSent||e.code!==o.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.code&&(this.eventHandler.reportEngagementInteraction({type:"error",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},analyticsError:e,originalError:t,timeSinceAdStartedInMs:(0,l.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.errorSent=!0))},e.prototype.isInActiveState=function(){return this.state===n.ACTIVE},e.prototype.resetSourceRelatedState=function(){this.resetAdBreakData(),this.adIndex=-1},e.prototype.resetAdBreakData=function(){this.state=n.IDLE,this.isFirstSampleOfAd=!1,delete this.currentAdMetadata,this.resetAdData()},e.prototype.resetAdData=function(){var e,t,i;null===(e=this.currentAdMetadata)||void 0===e||delete e.customData,null===(t=this.currentAdMetadata)||void 0===t||delete t.adId,null===(i=this.currentAdMetadata)||void 0===i||delete i.adSystem,this.errorSent=!1,this.currentAdImpressionId=void 0,this.sentAdQuartiles=[],this.timestampOfAdStart=void 0},e}();function p(e){return(0,u.isNotNullish)(e)}t.SsaiService=d},4350:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Analytics=void 0,t.setQualityInfoOnSample=k;var n=i(3588),r=i(3458),o=i(8525),s=i(3565),u=i(6845),c=i(5529),l=i(8331),d=i(404),p=i(1916),h=i(1460),m=i(6481),v=i(1820),f=i(5063),g=i(5063),y=i(2982),S=i(4926),E=i(8421),A=i(399),D=i(8917),T=i(3054),b=i(675),C=i(7721),I=i(2226),N=i(847),_=i(8918),R=i(7906),P=function(){function e(e,t,i,n,r,o,s){var u=this;this.adapter=t,this.backendFactory=i,this.sessionHandler=n,this.featureManager=r,this.onErrorDetailEventDispatcher=o,this.identicalErrorReportingLimiter=s,this.adSamplePageLoadTime=0,this.adSamplePlayerStartupTime=0,this.adSampleAutoplay=!1,this.hasSentStartupSample=!1,this.droppedSampleFrames=0,this.playerStartupTime=0,this.authenticationCallback={authenticationCompleted:function(e,t){u.featureManager.configureFeatures(e,t)}},this.sourceChange=function(e){if(p.logger.log("Processing Source Change for Analytics",e),(0,g.isNullish)(e))u.adapter.sourceChange(u.config);else{(0,l.guardConfigChangeAgainstMissingTitle)(u.config,e),(0,l.guardConfigChangeAgainstMissingIsLive)(u.config,e),(0,l.guardAgainstDuplicatedUserId)(e);var t=(0,l.mergeAnalyticsConfig)(u.config,e);u.adapter.sourceChange(t)}},this.setCustomDataOnce=function(e){var t=a({},u.config);u.setState("customdatachange"),u.sendSample(e),u.config=a({},t),u.setConfigParameters(),u.setAutoDetectedDeviceInformation()},this.setCustomData=function(e){u.adapter.setCustomData(e)},this.getCurrentImpressionId=function(){return u.sample.impressionId},this.getUserId=function(){return u.sessionHandler.userId},this.changeCustomData=function(e){u.config=a(a({},u.config),(0,c.extractCustomDataFieldsOnly)(e)),u.setConfigParameters(),u.setAutoDetectedDeviceInformation()},this.config=e,this.sessionHandler=new N.SessionPersistenceHandler(this.config);var d=this;this.errorDetailTrackingSettingsProvider={get domain(){return(0,l.getDomainFromAnalyticsConfig)(d.config)},get licenseKey(){var e;return null!==(e=d.config.key)&&void 0!==e?e:""},get impressionId(){var e;return null!==(e=d.getCurrentImpressionId())&&void 0!==e?e:""},get collectorConfig(){return d.config.config}};var h=this.adapter.onLicenseKeyReceived.subscribe((function(e){u.config.key||(u.config.key=e.licenseKey),h()}));this.sample=this.buildInitialSample(),this.droppedSampleFrames=0,this.init(),this.setupStateMachineCallbacks();var m=this.adapter.initialize(this);this.featureManager.registerFeatures(m),this.adapter.adModule&&(this.adAnalytics=new D.AdAnalytics(this,this.adapter.adModule))}return Object.defineProperty(e.prototype,"version",{get:function(){return S.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorDetailSubscribable",{get:function(){return this.onErrorDetailEventDispatcher},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!0===this.adapter.supportsDeferredLicenseLoading||(0,v.isValidString)(this.config.key)&&!(0,v.isBlank)(this.config.key)){p.logger.initialize(this.config.debug),this.featureManager.resetFeatures();var e=(0,l.getDomainFromAnalyticsConfig)(this.config);this.backend=this.backendFactory.createBackend(this.config,{key:this.config.key,domain:e,version:S.VERSION},this.adapter,this.authenticationCallback),this.hasSentStartupSample=!1,this.identicalErrorReportingLimiter.reset(),this.setConfigParameters(),this.setAutoDetectedDeviceInformation(),this.sample.impressionId=(0,y.generateUUID)(),this.sample.userId=this.sessionHandler.userId,this.adapter.videoCompletionTracker&&this.adapter.videoCompletionTracker.reset(),this.adapter.qualityChangeService.resetValues(),this.adapter.ssaiService.resetSourceRelatedState()}else p.logger.errorMessageToUser("Invalid analytics license key provided")},e.prototype.setConfigParameters=function(){var e;this.sample.key=this.config.key,this.sample.playerKey=this.config.playerKey,this.config.player&&(this.sample.player=this.config.player),this.sample.domain=(0,l.getDomainFromAnalyticsConfig)(this.config),this.sample.deviceInformation=(0,l.getDeviceInformationFromAnalyticsConfig)(this.config),this.sample.isLive=!!(0,g.isNotNullish)(this.config.isLive)&&this.config.isLive,this.sample.cdnProvider=this.config.cdnProvider,this.sample.videoId=this.config.videoId,this.sample.videoTitle=this.config.title,this.sample.customUserId=null!==(e=this.config.userId)&&void 0!==e?e:this.config.customUserId,f.transferCustomDataFields(this.config,this.sample),this.sample.experimentName=this.config.experimentName},e.prototype.setAutoDetectedDeviceInformation=function(){var e,t;if(!(0,g.isNotNullish)(null===(e=this.sample.deviceInformation)||void 0===e?void 0:e.model)&&(0,A.hasWindowWebOSApi)()){var i=(0,E.getWebOSTVModelName)();(0,g.isNullish)(i)||(this.sample.deviceInformation=null!==(t=this.sample.deviceInformation)&&void 0!==t?t:{},this.sample.deviceInformation.model=i)}},e.prototype.setupStateMachineCallbacks=function(){var e=this;this.adapter.stateMachineCallbacks.setup=function(t,i){var a;p.logger.log("Setup bitmovin analytics "+e.sample.analyticsVersion+" with impressionId: "+e.sample.impressionId),e.setDuration(t),e.setState(i),e.sample.playerStartupTime=t,e.playerStartupTime=e.sample.playerStartupTime,e.adSamplePlayerStartupTime=e.sample.playerStartupTime;var n=(0,A.getWindowPerformance)();if((0,g.isNotNullish)(null===(a=null==n?void 0:n.timing)||void 0===a?void 0:a.navigationStart)){var r=Date.now()-n.timing.navigationStart;e.sample.pageLoadTime=r,e.adSamplePageLoadTime=r}e.sendSample()},this.adapter.stateMachineCallbacks.startup=function(t,i){e.setState(i),e.sample.supportedVideoCodecs=d.CodecHelper.supportedVideoFormats;var a=Math.max(t,1);e.setDuration(a),e.sample.videoStartupTime=a,e.sample.startupTime=(e.playerStartupTime||0)+a,e.sample.autoplay=e.adapter.getAutoPlay(),e.adSampleAutoplay=e.sample.autoplay;var n=e.adapter.getDrmPerformanceInfo();(0,g.isNotNullish)(n)&&(e.sample.drmType=n.drmType,e.sample.drmLoadTime=n.drmLoadTime);var r=e.adapter.getCurrentPlaybackInfo(),o=r.videoBitrate,s=r.audioBitrate;e.adapter.qualityChangeService.setStartupHasFinished(o,s),e.hasSentStartupSample=!0,e.sendSample()},this.adapter.stateMachineCallbacks.programChange=function(t){e.playerStartupTime=0,e.adSamplePlayerStartupTime=0,e.config=(0,l.applySourceMetadataToAnalyticsConfig)(e.config,t),e.sample=e.buildInitialSample(),e.sample.path=(0,v.isValidString)(t.path)?t.path:(0,m.getDefaultSamplePath)(),e.init(),e.setState("programchange"),e.sample.isProgramChange=!0,e.sample.supportedVideoCodecs=d.CodecHelper.supportedVideoFormats;e.setDuration(1),e.sample.videoStartupTime=1,e.sample.startupTime=1,e.sample.autoplay=e.adapter.getAutoPlay(),e.adSampleAutoplay=e.sample.autoplay,e.sample.drmType=void 0,e.sample.drmLoadTime=void 0;var i=e.adapter.getCurrentPlaybackInfo(),a=i.videoBitrate,n=i.audioBitrate;e.adapter.qualityChangeService.setStartupHasFinished(a,n),e.hasSentStartupSample=!0,e.sendSample()},this.adapter.stateMachineCallbacks.updateSourceMetadata=function(t){e.config=(0,l.applySourceMetadataToAnalyticsConfig)(e.config,t),e.setConfigParameters(),e.setAutoDetectedDeviceInformation(),e.sample.path=(0,v.isValidString)(t.path)?t.path:(0,m.getDefaultSamplePath)()},this.adapter.stateMachineCallbacks.playing=function(t,i){e.setDuration(t),e.setState(i),e.sample.played=t,e.setCompletionValues(),e.sendSample()},this.adapter.stateMachineCallbacks.unload=function(t,i){var a=e.sample.videoTimeStart;"playing"===i&&(e.setDuration(t),e.setState(i),e.sample.played=t,e.setCompletionValues(),(0,h.isNumber)(e.sample.videoTimeEnd)&&(a=e.sample.videoTimeEnd),e.backend.sendUnloadRequest(e.sample),(0,m.clearSampleStateValues)(e.sample)),e.hasSentStartupSample&&(e.setVideoTimeStart(a),e.setVideoTimeEnd(a),e.setState("closed"),e.backend.sendUnloadRequest(e.sample),(0,m.clearSampleStateValues)(e.sample))},this.adapter.stateMachineCallbacks.heartbeat=function(t,i,n){e.setState(i),e.setDuration(t),e.sample=a(a({},e.sample),n),"playing"===i&&e.setCompletionValues(),e.sendSample()},this.adapter.stateMachineCallbacks.qualitychange=function(t){e.adapter.qualityChangeService.startResetInterval(),e.adapter.qualityChangeService.increaseCounter(),e.adapter.qualityChangeService.hasExceededQualityChangeThreshold()?e.adapter.stateMachineCallbacks.error({code:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.code,message:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.message,errorSeverity:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.errorSeverity,legacyData:void 0,data:{},currentTime:t.currentTime}):(e.setState("qualitychange"),e.setDuration(0),e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.adapter.stateMachineCallbacks.updateSampleQualityInfo(t),e.sendSample())},this.adapter.stateMachineCallbacks.updateSampleQualityInfo=function(t){"audio"===t.type?((0,h.isNumber)(t.bitrate)&&(e.sample.audioBitrate=t.bitrate),(0,v.isValidString)(t.codec)&&(e.sample.audioCodec=t.codec)):"video"===t.type&&((0,h.isNumber)(t.bitrate)&&(e.sample.videoBitrate=t.bitrate),(0,v.isValidString)(t.codec)&&(e.sample.videoCodec=t.codec),(0,h.isNumber)(t.height)&&(e.sample.videoPlaybackHeight=t.height),(0,h.isNumber)(t.width)&&(e.sample.videoPlaybackWidth=t.width))},this.adapter.stateMachineCallbacks.audiotrack_changing=function(){e.sendSample()},this.adapter.stateMachineCallbacks.pause=function(t,i){e.setDuration(t),e.setState(i),e.sample.paused=t,e.sendSample()},this.adapter.stateMachineCallbacks.seeking=function(t){e.setDuration(t),e.setState("seeking"),e.sample.seeked=t,e.sendSample()},this.adapter.stateMachineCallbacks.rebuffering=function(t,i){e.setDuration(t),e.setState(i),e.sample.buffered=t,e.sendSample()},this.adapter.stateMachineCallbacks.videoStartFailed=function(t,i){e.setState("startup"),e.sample.videoStartFailed=!0,e.sample.videoStartFailedReason=i,e.sample.duration=t,i!==s.VideoStartFailedReason.PLAYER_ERROR&&(i===s.VideoStartFailedReason.TIMEOUT&&(e.sample.errorCode=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.code,e.sample.errorMessage=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.message,e.sample.errorSeverity=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.errorSeverity,e.onErrorDetailEventDispatcher.dispatch({code:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.code,message:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.message,severity:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.errorSeverity})),e.sendSample())},this.adapter.stateMachineCallbacks.error=function(t){var i,a=e.transformError({code:t.code,message:t.message,severity:null!==(i=t.errorSeverity)&&void 0!==i?i:"CRITICAL"},t.originalError);!a.code||e.identicalErrorReportingLimiter.shouldReportError(a.code,a.severity)?(e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.setState("error"),e.setDuration(0),e.sample.errorCode=a.code,e.sample.errorMessage=a.message,e.sample.errorSeverity=a.severity,e.sample.errorData=(0,g.tryJSONStringify)(t.legacyData),e.sample.errorSegments=e.adapter.getSegmentInfo().map((function(e){return e.name})),e.adapter.onError&&e.adapter.onError(),e.onErrorDetailEventDispatcher.dispatch({code:a.code,message:a.message,severity:a.severity,errorData:t.data}),e.sendSample()):p.logger.log("Bitmovin Analytics: Processing of the error with code ".concat(a.code," was ignored because the error limit was exceeded."))},this.adapter.stateMachineCallbacks.ad=function(t,i){e.setDuration(t),e.setState(i),e.sample.ad=n.AD_TYPE.CSAI,e.sendSample()},this.adapter.stateMachineCallbacks.mute=function(){e.sample.isMuted=!0},this.adapter.stateMachineCallbacks.unMute=function(){e.sample.isMuted=!1},this.adapter.stateMachineCallbacks.subtitle_changing=function(){e.sendSample()},this.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent=function(t){(0,h.isNumber)(null==t?void 0:t.currentTime)&&e.setVideoTimeEnd(f.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent=function(t){(0,h.isNumber)(null==t?void 0:t.currentTime)&&e.setVideoTimeStart(f.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.manualSourceChange=function(t){e.adapter.resetSourceRelatedState(),e.sample=e.buildInitialSample(),e.droppedSampleFrames=0,e.playerStartupTime=0,e.config=Object.keys(t.config).length>0?t.config:e.config,e.init()},this.adapter.stateMachineCallbacks.initialSourceChange=function(t){e.config=t.config,e.setConfigParameters(),e.setAutoDetectedDeviceInformation()},this.adapter.stateMachineCallbacks.end=function(){e.sample=e.buildInitialSample(),e.droppedSampleFrames=0,e.playerStartupTime=0,e.init()},this.adapter.stateMachineCallbacks.release=function(){var t;e.backend=new I.NoOpBackend,null===(t=e.adAnalytics)||void 0===t||t.release(),e.adapter.qualityChangeService.stopResetInterval(),e.identicalErrorReportingLimiter.reset()},this.adapter.stateMachineCallbacks.customdatachange=function(t,i,a){(0,g.isNotNullish)(null==a?void 0:a.customDataValues)&&e.changeCustomData(a.customDataValues)}},e.prototype.setDuration=function(e){this.sample.duration=e},e.prototype.setState=function(e){this.sample.state=e},e.prototype.setPlaybackInfoFromAdapter=function(){var e=this.adapter.getCurrentPlaybackInfo();e&&(this.sample.isLive=(0,g.isNotNullish)(this.config.isLive)?this.config.isLive:e.isLive,(0,g.isNullish)(this.sample.isLive)&&(this.sample.isLive=!1),(0,v.isValidString)(e.size)&&(this.sample.size=e.size),(0,v.isValidString)(e.playerTech)&&(this.sample.playerTech=e.playerTech),(0,h.isNumber)(e.videoDuration)&&(this.sample.videoDuration=f.calculateTime(e.videoDuration||0)),(0,v.isValidString)(e.streamFormat)&&(this.sample.streamFormat=e.streamFormat),(0,v.isValidString)(e.mpdUrl)&&(this.sample.mpdUrl=e.mpdUrl),(0,v.isValidString)(e.m3u8Url)&&(this.sample.m3u8Url=e.m3u8Url),(0,v.isValidString)(e.progUrl)&&(this.sample.progUrl=e.progUrl),(0,h.isNumber)(e.videoWindowWidth)&&(this.sample.videoWindowWidth=e.videoWindowWidth),(0,h.isNumber)(e.videoWindowHeight)&&(this.sample.videoWindowHeight=e.videoWindowHeight),(0,h.isNumber)(e.screenHeight)&&(this.sample.screenHeight=e.screenHeight),(0,h.isNumber)(e.screenWidth)&&(this.sample.screenWidth=e.screenWidth),f.isBoolean(e.isMuted)&&(this.sample.isMuted=e.isMuted),f.isBoolean(e.isCasting)&&(this.sample.isCasting=e.isCasting),(0,v.isValidString)(e.castTech)&&(this.sample.castTech=e.castTech),(0,v.isValidString)(e.videoTitle)&&!this.config.title&&(this.sample.videoTitle=e.videoTitle),(0,v.isValidString)(e.audioCodec)&&(this.sample.audioCodec=e.audioCodec),(0,v.isValidString)(e.videoCodec)&&(this.sample.videoCodec=e.videoCodec),(0,v.isValidString)(e.audioLanguage)&&(this.sample.audioLanguage=e.audioLanguage),f.isBoolean(e.subtitleEnabled)&&(this.sample.subtitleEnabled=e.subtitleEnabled),(0,v.isValidString)(e.subtitleLanguage)?this.sample.subtitleLanguage=e.subtitleLanguage:this.sample.subtitleLanguage=void 0,(0,h.isNumber)(e.droppedFrames)&&(this.sample.droppedFrames=Math.max(e.droppedFrames-this.droppedSampleFrames,0),this.droppedSampleFrames=e.droppedFrames))},e.prototype.sendSample=function(e){if(this.setPlaybackInfoFromAdapter(),this.sample.time=f.getCurrentTimestamp(),this.sample.downloadSpeedInfo=this.adapter.getDownloadSpeedInfo(),this.adapter.resetDownloadSpeedInfoMeasures(),this.adapter.ssaiService.manipulate(this.sample),null!=e&&this.changeCustomData(e),(0,g.isNullish)(this.sample.videoBitrate)||this.sample.videoBitrate<=0){k(this.sample,this.adapter.getCurrentPlaybackInfo());var t=a({},this.sample);this.backend.sendRequest(t)}else{t=a({},this.sample);this.backend.sendRequest(t),k(this.sample,this.adapter.getCurrentPlaybackInfo())}(0,m.clearSampleStateValues)(this.sample)},e.prototype.sendSsaiEngagementAdSample=function(e){var t;if(!0===(null===(t=this.config.config)||void 0===t?void 0:t.ssaiEngagementTrackingEnabled))if((0,_.isSsaiEngagementStartedData)(e)){var i=(0,R.createStartedAdSample)(this.sample,e);this.backend.sendAdRequest(i)}else if((0,_.isSsaiEngagementQuartileData)(e)){i=(0,R.createQuartileAdSample)(this.sample,e);this.backend.sendAdRequest(i)}else if((0,_.isSsaiEngagementErrorData)(e)){e.analyticsError=this.transformError(e.analyticsError,e.originalError);var a=(0,R.createErrorAdSample)(this.sample,e);this.backend.sendAdRequest(a)}else;},e.prototype.setCompletionValues=function(){if(this.adapter.videoCompletionTracker){var e=this.adapter.videoCompletionTracker.addWatched({start:this.sample.videoTimeStart,end:this.sample.videoTimeEnd}),t=this.adapter.videoCompletionTracker.getCompletionPercentage();Number.isNaN(e)||Number.isNaN(t)||(this.sample.completed=e,this.sample.completedTotal=t)}},e.prototype.setVideoTimeStart=function(e){this.sample.videoTimeStart=e},e.prototype.setVideoTimeEnd=function(e){this.sample.videoTimeEnd=e},e.prototype.transformError=function(e,t){var i,a,n={code:e.code,message:e.message,severity:e.severity};try{var r=null===(a=null===(i=this.config.config)||void 0===i?void 0:i.errorTransformerCallback)||void 0===a?void 0:a.transform(n,{originalError:t});n.code=(0,h.isNumber)(null==r?void 0:r.code)?null==r?void 0:r.code:n.code,n.message=(0,v.isValidString)(null==r?void 0:r.message)?null==r?void 0:r.message:n.message,n.severity=(0,v.isValidString)(null==r?void 0:r.severity)&&(0,g.isErrorSeverity)(null==r?void 0:r.severity)?r.severity:n.severity}catch(e){p.logger.error("Error in errorTransformerCallback",e)}return n},e.prototype.buildInitialSample=function(){var e,t=this.config.player||this.adapter.getPlayerName();return{ad:0,analyticsVersion:S.VERSION,audioBitrate:0,buffered:0,completedTotal:0,droppedFrames:0,duration:0,isLive:null!==(e=this.config.isLive)&&void 0!==e&&e,language:(0,A.getWindowNavigatorLanguage)(),pageLoadTime:0,pageLoadType:f.getPageLoadType(),path:(0,m.getDefaultSamplePath)(),paused:0,platform:"web",played:0,player:t,playerStartupTime:0,playerTech:this.adapter.getPlayerTech(),screenHeight:screen.height,screenWidth:screen.width,seeked:0,size:o.PlayerSize.Window,startupTime:0,time:0,userAgent:(0,A.getWindowNavigatorUserAgent)(),version:t+"-"+this.adapter.getPlayerVersion(),videoBitrate:0,videoDuration:0,videoPlaybackHeight:0,videoPlaybackWidth:0,videoStartupTime:0,videoTimeEnd:0,videoTimeStart:0,videoWindowHeight:0,videoWindowWidth:0}},e.create=function(t,i){return new e(t,i,new T.BackendFactory,new N.SessionPersistenceHandler(t),new u.FeatureManager,new b.EventDispatcher,new C.IdenticalErrorReportingLimiter)},e.version=S.VERSION,e}();function k(e,t){(0,h.isNumber)(t.videoPlaybackHeight)&&(e.videoPlaybackHeight=t.videoPlaybackHeight),(0,h.isNumber)(t.videoPlaybackWidth)&&(e.videoPlaybackWidth=t.videoPlaybackWidth),(0,h.isNumber)(t.videoBitrate)&&(e.videoBitrate=t.videoBitrate),(0,h.isNumber)(t.audioBitrate)&&(e.audioBitrate=t.audioBitrate)}t.Analytics=P},4355:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.CdnProvider=void 0,function(e){e.AKAMAI="akamai",e.BITGRAVITY="bitgravity",e.CHINACACHE="chinacache",e.CLOUDFLARE="cloudflare",e.CLOUDFRONT="cloudfront",e.FASTLY="fastly",e.MAXCDN="maxcdn"}(i||(t.CdnProvider=i={}))},4439:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdSample=void 0;var a=i(5063),n=function(){function e(t){if(this.clicked=0,this.closed=0,this.completed=0,this.midpoint=0,this.quartile1=0,this.quartile3=0,this.skipped=0,this.started=0,t){if(this.adClickthroughUrl=t.clickThroughUrl,this.adId=t.id,this.mediaUrl=t.mediaFileUrl,this.mediaUrl)try{var i=new URL(this.mediaUrl);this.mediaPath=i.pathname,this.mediaServer=i.hostname}catch(e){}this.isLinear=t.isLinear,this.adPlaybackHeight=t.height,this.adPlaybackWidth=t.width,t.data&&(this.videoBitrate=void 0===t.data.bitrate?void 0:1e3*t.data.bitrate,this.streamFormat=t.data.mimeType);var n=t.data;n&&(n.adSystem&&(this.adSystem=n.adSystem.name),n.advertiser&&(this.advertiserName=n.advertiser.name),this.apiFramework=n.apiFramework,n.creative&&(this.creativeAdId=n.creative.adId,this.creativeId=n.creative.id,n.creative.universalAdId&&(this.universalAdIdRegistry=n.creative.universalAdId.idRegistry,this.universalAdIdValue=n.creative.universalAdId.value)),this.adDescription=n.adDescription,this.minSuggestedDuration=a.calculateTimeWithUndefined(n.minSuggestedDuration),n.survey&&(this.surveyUrl=n.survey.uri),this.adTitle=n.adTitle,this.wrapperAdsCount=n.wrapperAdIds?n.wrapperAdIds.length:0)}var r=t;r&&(this.adSkipAfter=e.parseSkipAfter(r.skippableAfter),this.adSkippable=r.skippable||(void 0===this.adSkipAfter?void 0:this.adSkipAfter>=0),this.adDuration=a.calculateTime(r.duration))}return e.parseSkipAfter=function(e){if(void 0!==e)return-1===e?e:a.calculateTime(e)},e}();t.AdSample=n},4501:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LicensingResult=void 0,function(e){e.Denied="denied",e.Granted="granted",e.Skip="skip"}(i||(t.LicensingResult=i={}))},4649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEQUENCE_NUMBER_LIMIT=t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=t.ANALYTICS_REBUFFER_TIMEOUT=t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=t.ANALYTICS_VIDEOSTART_TIMEOUT=t.ANALYTICS_LICENSECALL_TIMEOUT=t.ANALYTICS_BACKEND_BASE_URL=t.MESSAGE_NAMESPACE=void 0,t.MESSAGE_NAMESPACE="urn:x-cast:com.bitmovin.analytics.cast",t.ANALYTICS_BACKEND_BASE_URL="https://analytics-ingress-global.bitmovin.com",t.ANALYTICS_LICENSECALL_TIMEOUT=6e4,t.ANALYTICS_VIDEOSTART_TIMEOUT=6e4,t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=50,t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=36e5,t.ANALYTICS_REBUFFER_TIMEOUT=12e4,t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=3,t.SEQUENCE_NUMBER_LIMIT=1e3},4820:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStateMachineCallbacks=void 0,t.defaultStateMachineCallbacks={setup:function(){},startup:function(){},programChange:function(){},updateSourceMetadata:function(){},playing:function(){},heartbeat:function(){},qualitychange:function(){},updateSampleQualityInfo:function(){},audiotrack_changing:function(){},pause:function(){},seeking:function(){},rebuffering:function(){},error:function(){},end:function(){},unload:function(){},ad:function(){},mute:function(){},unMute:function(){},subtitle_changing:function(){},setVideoTimeEndFromEvent:function(){},setVideoTimeStartFromEvent:function(){},videoStartFailed:function(){},startCasting:function(){},casting:function(){},manualSourceChange:function(){},initialSourceChange:function(){},muting_ready:function(){},customdatachange:function(){},release:function(){}}},4916:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceInfoFallbackService=void 0;var a=i(1820),n=i(5063),r=function(){function e(){}return e.prototype.reset=function(){this.streamFormat=void 0,this.audioCodec=void 0,this.videoCodec=void 0},e.prototype.setStreamFormat=function(e){this.streamFormat=e},e.prototype.applyStreamFormat=function(e){(0,a.isBlank)(this.streamFormat)||(e.streamFormat=this.streamFormat)},e.prototype.applyAndStoreCodecInfo=function(e,t){(0,n.isNotNullish)(null==t?void 0:t.audioCodec)&&(this.audioCodec=t.audioCodec),(0,n.isNotNullish)(null==t?void 0:t.videoCodec)&&(this.videoCodec=t.videoCodec),(0,a.isBlank)(this.audioCodec)||(e.audioCodec=this.audioCodec),(0,a.isBlank)(this.videoCodec)||(e.videoCodec=this.videoCodec)},e}();t.SourceInfoFallbackService=r},4926:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="v2.51.0"},5063:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryJSONStringify=t.isAudioMuted=t.isReactNative=t.joinUrls=t.getURLResourceName=t.calculatePercentage=t.transferCustomDataFields=t.getCustomDataString=t.noOp=t.getCurrentTimestamp=t.calculateTimeWithUndefined=t.calculateTime=t.removeTrailingSlash=t.isFunction=t.isPlainObject=t.isObject=t.toBoolean=t.isBoolean=t.isNotNullish=t.isNullish=void 0,t.isErrorSeverity=function(e){return"CRITICAL"===e||"INFO"===e},t.getPageLoadType=function(){if((0,r.isDocumentHidden)())return a.PAGE_LOAD_TYPE.BACKGROUND;return a.PAGE_LOAD_TYPE.FOREGROUND};var a=i(9946),n=i(5529),r=i(3848),o=i(1820);t.isNullish=function(e){return null==e};t.isNotNullish=function(e){return!(0,t.isNullish)(e)};t.isBoolean=function(e){return!(0,t.isNullish)(e)&&"boolean"==typeof e};t.toBoolean=function(e){return Boolean(e).valueOf()};t.isObject=function(e){return(0,t.isNotNullish)(e)&&"object"==typeof e};t.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)};t.isFunction=function(e){return"function"==typeof e};t.removeTrailingSlash=function(e){return e.replace(/\/$/g,"")};t.calculateTime=function(e){return Math.round(1e3*e)};t.calculateTimeWithUndefined=function(e){if(!(0,t.isNullish)(e))return(0,t.calculateTime)(e)};t.getCurrentTimestamp=function(){return Date.now()};t.noOp=function(){};t.getCustomDataString=function(e){return"object"==typeof e?(0,t.tryJSONStringify)(e):(0,t.isFunction)(e)?(0,t.getCustomDataString)(e()):void 0===e?e:"string"!=typeof e?String(e):e};t.transferCustomDataFields=function(e,i){for(var a=1;a<=n.customDataFieldCount;a++){var r="customData".concat(a);i[r]=(0,t.getCustomDataString)(e[r])}};t.calculatePercentage=function(e,t){if(void 0!==t&&0!==t)return Math.round((e||0)/t*100)};t.getURLResourceName=function(e){return 0===e.length?"":e.split("/").pop()||""};t.joinUrls=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return((0,o.endsWith)(e,"/")&&void 0!==t?e.substr(0,e.length-1):e)+"/"+((0,o.startsWith)(t,"/")?t.substr(1):t)}))};t.isReactNative=function(){return(0,t.isNotNullish)(navigator)&&"ReactNative"===navigator.product};t.isAudioMuted=function(e,t){return e||t<.01};t.tryJSONStringify=function(e){if(!(0,t.isNullish)(e))try{return JSON.stringify(e)}catch(e){return}}},5253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCall=function(e,t,i,r){var o=(0,n.joinUrls)(r,"/licensing"),s={analyticsVersion:i,domain:t,key:e};return new Promise((function(e){(0,a.post)(o,s,(function(t){e(t)}))}))};var a=i(92),n=i(5063)},5406:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAnalyticsStateMachine=t.State=void 0;var r,o=i(2595),s=i(7596),u=i(8253),c=i(2361),l=i(1652),d=i(1916),p=i(1460),h=i(5063);!function(e){e.END="END",e.ERROR="ERROR",e.PAUSE="PAUSE",e.PLAYING="PLAYING",e.READY="READY",e.SETUP="SETUP",e.SOURCE_LOADED="SOURCE_LOADED",e.STARTUP="STARTUP",e.VIDEOSTART_FAILED="VIDEOSTART_FAILED"}(r||(t.State=r={}));var m=function(e){function t(t,i,a){var n=e.call(this,t,i,a)||this;return n.enabledDebugging=!1,n.debuggingStates=[],n}return n(t,e),t.prototype.createStateMachine=function(e){var t,i=this;return o.StateMachine.create({initial:{state:r.SETUP,event:c.JSM_INITIAL_EVENT},error:u.customStateMachineErrorCallback,events:[{name:c.Event.SOURCE_LOADED,from:[r.SETUP,r.ERROR],to:r.READY},(0,u.on)(c.Event.READY).stayIn(r.READY),(0,u.on)(c.Event.PAUSE).stayIn(r.READY),(0,u.on)(c.Event.TIMECHANGED).stayIn(r.READY),{name:c.Event.PLAY,from:r.READY,to:r.STARTUP},{name:c.Event.PLAYING,from:r.READY,to:r.PLAYING},(0,u.on)(c.Event.PLAY).stayIn(r.STARTUP),(0,u.on)(c.Event.PLAYING).stayIn(r.STARTUP),{name:c.Event.TIMECHANGED,from:r.STARTUP,to:r.PLAYING},(0,u.on)(c.Event.READY).stayIn(r.STARTUP),{name:c.Event.PAUSE,from:r.STARTUP,to:r.READY},(0,u.on)(c.Event.PLAYING).stayIn(r.PLAYING),(0,u.on)(c.Event.TIMECHANGED).stayIn(r.PLAYING),{name:c.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},(0,u.on)(c.Event.TIMECHANGED).stayIn(r.PAUSE),(0,u.on)(c.Event.PAUSE).stayIn(r.PAUSE),{name:c.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:c.Event.PLAYING,from:r.PAUSE,to:r.PLAYING},{name:c.Event.END,from:r.PLAYING,to:r.END},{name:c.Event.END,from:r.PAUSE,to:r.END},{name:c.Event.PLAYING,from:r.END,to:r.STARTUP},(0,u.on)(c.Event.TIMECHANGED).stayIn(r.END),(0,u.on)(c.Event.END).stayIn(r.END),{name:c.Event.PLAY,from:r.END,to:r.STARTUP},{name:c.Event.ERROR,from:r.STARTUP,to:r.VIDEOSTART_FAILED},{name:c.Event.ERROR,from:(0,u.getAllStatesBut)([r.STARTUP],r),to:r.ERROR},{name:c.Event.UNLOAD,from:(0,u.getAllStatesBut)([r.STARTUP],r),to:r.END},{name:c.Event.UNLOAD,from:[r.STARTUP],to:r.VIDEOSTART_FAILED}],callbacks:(t={},t["onleave".concat(r.PLAYING)]=function(){i.playingHeartbeatService.stopHeartbeat()},t.onleavestate=function(e,t,a,n,o){if((0,u.logStateMachineTransition)("LEAVE",e,t,a),e!==c.JSM_INITIAL_EVENT&&n){i.addStatesToLog(e,t,a,n,o);var s=n-i.onEnterStateTimestamp,l=t===r.STARTUP&&a===r.PLAYING;i.maybeSetOrClearVideoStartTimeouts(t,a),l&&i.stateMachineCallbacks.startup(s,r.STARTUP.toLowerCase());var p=String(t).toLowerCase();if(e===c.Event.UNLOAD)i.stateMachineCallbacks.unload(s,p);else if(t===r.SETUP)i.stateMachineCallbacks.setup(1,r.SETUP.toLowerCase());else if(e===c.Event.PAUSE&&t===r.STARTUP&&a===r.READY)i.clearVideoStartTimeout();else if(t!==r.ERROR&&!l){var m=i.stateMachineCallbacks[p];if((0,h.isFunction)(m))try{m(s,p,o)}catch(e){d.logger.error("Exception occurred in State Machine callback "+p,o,e)}else(0,u.logMissingCallbackWarning)(t,[r.READY])}}},t["onenter".concat(r.PLAYING)]=function(){i.playingHeartbeatService.startHeartbeat()},t.onenterstate=function(t,a,n,r,o){(0,u.logStateMachineTransition)("ENTER",t,a,n),i.onEnterStateTimestamp=null!=r?r:Date.now(),(0,p.isNumber)(e.starttime)&&t===c.JSM_INITIAL_EVENT&&(i.onEnterStateTimestamp=e.starttime)},t["onafter".concat(c.Event.ERROR)]=function(e,t,a,n,r){i.stateMachineCallbacks.error(r)},t)})},t.prototype.addStatesToLog=function(e,t,i,a,n){this.enabledDebugging&&this.debuggingStates.push(new l.EventDebugging(e,t,i,a,n))},t.prototype.getStates=function(){return this.debuggingStates},t.prototype.setEnabledDebugging=function(e){this.enabledDebugging=e},t.prototype.maybeSetOrClearVideoStartTimeouts=function(e,t){e===r.READY&&t===r.STARTUP?this.setVideoStartTimeout():e===r.STARTUP&&t===r.PLAYING&&this.clearVideoStartTimeout()},t}(s.AnalyticsStateMachine);t.BitmovinPwxAnalyticsStateMachine=m},5426:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsCall=void 0;var a=i(7906),n=i(92),r=i(5063),o=function(){function e(e){this.analyticsServerUrl=(0,r.joinUrls)(e,"analytics"),this.adAnalyticsServerUrl=(0,r.joinUrls)(e,"analytics/a")}return e.prototype.sendRequest=function(e,t){var i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),(0,n.post)(i,e,t)},e.prototype.sendUnloadRequest=function(e){var t=this,i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),this.trySendBeacon((function(e){return t.sendRequestSynchronous(e,r.noOp)}),i,e)},e.prototype.trySendBeacon=function(e,t,i,a){if(void 0===a&&(a={}),void 0===navigator.sendBeacon)e(i);else{var n=new Blob([JSON.stringify(i)],a);navigator.sendBeacon(t,n)||e(i)}},e.prototype.sendRequestSynchronous=function(e,t){var i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),(0,n.post)(i,e,t,!1)},e.prototype.sendAdRequest=function(e){var t=this.adAnalyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(t=(0,a.appendSsaiRoutingParam)(t));this.trySendBeacon((function(e){return(0,n.post)(t,e,r.noOp)}),t,e)},e}();t.AnalyticsCall=o},5529:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeCustomDataValues=t.extractCustomDataFieldsOnly=t.customDataFieldCount=t.customDataValuesKeys=void 0;var a=i(5063);t.customDataValuesKeys=["customData1","customData2","customData3","customData4","customData5","customData6","customData7","customData8","customData9","customData10","customData11","customData12","customData13","customData14","customData15","customData16","customData17","customData18","customData19","customData20","customData21","customData22","customData23","customData24","customData25","customData26","customData27","customData28","customData29","customData30","customData31","customData32","customData33","customData34","customData35","customData36","customData37","customData38","customData39","customData40","customData41","customData42","customData43","customData44","customData45","customData46","customData47","customData48","customData49","customData50","customData51","customData52","customData53","customData54","customData55","customData56","customData57","customData58","customData59","customData60","customData61","customData62","customData63","customData64","customData65","customData66","customData67","customData68","customData69","customData70","customData71","customData72","customData73","customData74","customData75","customData76","customData77","customData78","customData79","customData80","customData81","customData82","customData83","customData84","customData85","customData86","customData87","customData88","customData89","customData90","customData91","customData92","customData93","customData94","customData95","customData96","customData97","customData98","customData99","customData100","experimentName"],t.customDataFieldCount=t.customDataValuesKeys.filter((function(e){return e.match("customData\\d+")})).length;t.extractCustomDataFieldsOnly=function(e){var i={};return t.customDataValuesKeys.forEach((function(t){e[t]&&(i[t]=e[t])})),i};t.sanitizeCustomDataValues=function(e){var i=(0,t.extractCustomDataFieldsOnly)(e),n={};return(0,a.transferCustomDataFields)(i,n),n.experimentName=(0,a.getCustomDataString)(i.experimentName),n}},5791:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdAnalyticsSample=void 0;var a=i(5063),n=function(e){this.platform="web",e&&(this.videoImpressionId=e.impressionId,this.userAgent=e.userAgent,this.language=e.language,this.cdnProvider=e.cdnProvider,a.transferCustomDataFields(e,this),this.customUserId=e.customUserId,this.domain=e.domain,this.experimentName=e.experimentName,this.key=e.key,this.path=e.path,this.player=e.player,this.playerKey=e.playerKey,this.playerTech=e.playerTech,this.screenHeight=e.screenHeight,this.screenWidth=e.screenWidth,this.version=e.version,this.size=e.size,this.userId=e.userId,this.videoId=e.videoId,this.videoTitle=e.videoTitle,this.videoWindowHeight=e.videoWindowHeight,this.videoWindowWidth=e.videoWindowWidth,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec)};t.AdAnalyticsSample=n},6481:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearSampleStateValues=function(e){e.ad=0,e.adId=void 0,e.adIndex=void 0,e.adPosition=void 0,e.adSystem=void 0,e.autoplay=void 0,e.buffered=0,e.castTech=void 0,e.completed=void 0,e.drmLoadTime=void 0,e.droppedFrames=0,e.duration=0,e.errorCode=void 0,e.errorData=void 0,e.errorMessage=void 0,e.errorSegments=void 0,e.errorSeverity=void 0,e.isProgramChange=void 0,e.pageLoadTime=0,e.paused=0,e.played=0,e.playerStartupTime=0,e.seeked=0,e.startupTime=0,e.state=void 0,e.videoStartFailed=void 0,e.videoStartFailedReason=void 0,e.videoStartupTime=0,e[a.SSAI_RELATED_SAMPLE_MARKER]=void 0},t.getDefaultSamplePath=function(){var e=(0,o.getWindowLocationPathname)();return(0,n.isValidString)(e)?(0,r.removeTrailingSlash)(e):void 0};var a=i(7906),n=i(1820),r=i(5063),o=i(399)},6845:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureManager=void 0;var a=i(1916),n=function(){function e(){this.features=[]}return e.prototype.registerFeatures=function(e){this.features=e},e.prototype.unregisterFeatures=function(){this.features.forEach((function(e){return e.disable()})),this.features=[]},e.prototype.resetFeatures=function(){this.features.forEach((function(e){return e.reset()}))},e.prototype.configureFeatures=function(e,t){this.features=this.features.filter((function(i){var n=i.configure(e,t);return!(!e||!0!==(null==n?void 0:n.enabled))||(a.logger.log("Disabling feature ".concat(i.constructor.name," as it isn't enabled according to license callback.")),i.disable(),!1)})),this.features.forEach((function(e){return e.enabled()}))},e}();t.FeatureManager=n},7224:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamTypes=void 0,t.getStreamTypesFromURL=function(e){if((0,r.isNullish)(e)||(0,n.isBlank)(e))return;var t=e.split(/[?#]/)[0].toLowerCase();if((0,n.endsWith)(t,".m3u8"))return a.hls;if((0,n.endsWith)(t,".mp4")||(0,n.endsWith)(t,".m4v")||(0,n.endsWith)(t,".m4a"))return a.prog;if((0,n.endsWith)(t,".webm"))return a.prog;if((0,n.endsWith)(t,".mpd"))return a.dash;return},t.getStreamTypeFromMIMEType=function(e){var t;return((t={})[o.MIMETypes.MP4]=a.prog,t[o.MIMETypes.WEBM]=a.prog,t[o.MIMETypes.HLS]=a.hls,t[o.MIMETypes.DASH]=a.dash,t)[e]};var a,n=i(1820),r=i(5063),o=i(2168);!function(e){e.dash="dash",e.hls="hls",e.prog="progressive"}(a||(t.StreamTypes=a={}))},7232:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakSample=void 0;var a=i(5063),n=function(e,t){this.adFallbackIndex=0,t&&(this.manifestDownloadTime=a.calculateTime(t.downloadTiming.downloadTime)),e&&(this.adReplaceContentDuration=a.calculateTimeWithUndefined(e.replaceContentDuration),this.adFallbackIndex=(e.currentFallbackIndex||-1)+1);var i=e;i&&("pre"===i.position||"post"===i.position?this.adPosition=i.position:(this.adPosition="mid",this.adOffset=i.position),this.adPreloadOffset=a.calculateTimeWithUndefined(i.preloadOffset));var n=e;if(n){this.adIsPersistent=n.persistent;var r=n.tag;if(this.adFallbackIndex>0&&n.fallbackTags&&n.fallbackTags.length>=this.adFallbackIndex&&(r=n.fallbackTags[this.adFallbackIndex-1]),r&&(this.adTagType=r.type,this.adTagUrl=r.url),this.adTagUrl)try{var o=new URL(this.adTagUrl);this.adTagServer=o.hostname,this.adTagPath=o.pathname}catch(e){}}var s=e;s&&(this.adScheduleTime=a.calculateTimeWithUndefined(s.scheduleTime),this.adIdPlayer=s.id)};t.AdBreakSample=n},7299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourcesApiExportNames=t.SourceExportNames=t.PlaybackApiEventsPackageExportNames=t.CoreExportNames=t.BundleExportNames=void 0;t.BundleExportNames={Logger:"logger",PlayerConfig:"player-config"};t.CoreExportNames={Utils:"utils",Constants:"constants",CoreEffects:"core-effects",CoreStateAtoms:"core-state-atoms"};t.PlaybackApiEventsPackageExportNames={PlaybackEvent:"playback-event"};t.SourceExportNames={CreateSourceStateAtom:"create-source-state-atom",CreateSourceReference:"create-source-reference",SourceReferences:"source-references",SourceState:"source-state-atom"};t.SourcesApiExportNames={SourceApiManager:"source-api-manager",VideoElementUtils:"video-element-utils",SourceEventBus:"source-event-bus"}},7390:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceNumberBackend=void 0;var a=i(4649),n=function(){function e(e){this.sequenceNumber=0,this.nextBackend=e}return e.prototype.sendRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendAdRequest(e)},e.prototype.updateSampleBeforeSending=function(e){e.sequenceNumber=this.sequenceNumber++},e.prototype.isSequenceNumberAboveThreshold=function(e){var t;return(null!==(t=e.sequenceNumber)&&void 0!==t?t:0)>a.SEQUENCE_NUMBER_LIMIT},e}();t.SequenceNumberBackend=n},7540:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggingBackend=void 0;var a=i(1916),n=function(){function e(e,t){this.underlying=t,e.debug&&e.debug.fields&&(this.debugFields=e.debug.fields)}return e.prototype.sendRequest=function(e){this.printFields(e),this.underlying.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.printFields(e),this.underlying.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.printFields(e),this.underlying.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.underlying.sendAdRequest(e)},e.prototype.printFields=function(e){if(this.debugFields&&this.debugFields.length){var t={};this.debugFields.forEach((function(i){return t[i]=e[i]})),a.logger.table([t])}},e}();t.DebuggingBackend=n},7596:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsStateMachine=void 0;var n=i(7906),r=i(3458),o=i(2361),s=i(1916),u=i(4649),c=i(5063),l=i(5063),d=[3e3,5e3,1e4,3e4,59700],p=function(){function e(e,t,i){this.stateMachineCallbacks=e,this.onEnterStateTimestamp=0,this.videoStartupTimeoutMs=u.ANALYTICS_VIDEOSTART_TIMEOUT,this.rebufferTimeoutMs=u.ANALYTICS_REBUFFER_TIMEOUT,this.currentRebufferingIntervalIndex=0,this.stateMachine=this.createStateMachine(i),this.playingHeartbeatService=t}return e.prototype.callEvent=function(e,t,i){var a=this.stateMachine[e];if(null!=a)try{a.call(this.stateMachine,i,t)}catch(a){s.logger.error('StateMachine ignored event "'.concat(e,'" call, because it has thrown exception in the current state "').concat(this.currentState,'"'),t,i,a)}else s.logger.warn('StateMachine ignored event "'.concat(e,'" call, because it was not defined'),t,i)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this.stateMachine.current},enumerable:!1,configurable:!0}),e.prototype.resetIntervals=function(){this.clearVideoStartTimeout(),this.clearRebufferingTimeoutHandle(!0),this.clearRebufferingHeartbeatHandle()},e.prototype.startRebufferingHeartbeatInterval=function(e){var t=this;void 0===e&&(e=!0),this.resetRebufferingHelpers(e),this.startRebufferingTimeoutHandle(),this.rebufferingHeartbeatIntervalHandle=setInterval((function(){var e=t.stateMachine.current.toLowerCase();if("rebuffering"===e){var i=(new Date).getTime(),a=i-t.onEnterStateTimestamp;t.stateMachineCallbacks.heartbeat(a,e,{buffered:a}),t.onEnterStateTimestamp=i,t.currentRebufferingIntervalIndex=Math.min(t.currentRebufferingIntervalIndex+1,d.length-1),t.startRebufferingHeartbeatInterval(!1)}else t.resetRebufferingHelpers()}),d[this.currentRebufferingIntervalIndex])},e.prototype.resetRebufferingHelpers=function(e){void 0===e&&(e=!0),e&&(this.currentRebufferingIntervalIndex=0),this.clearRebufferingHeartbeatHandle(),this.clearRebufferingTimeoutHandle(e)},e.prototype.clearRebufferingHeartbeatHandle=function(){(0,l.isNotNullish)(this.rebufferingHeartbeatIntervalHandle)&&(clearInterval(this.rebufferingHeartbeatIntervalHandle),this.rebufferingHeartbeatIntervalHandle=void 0)},e.prototype.startRebufferingTimeoutHandle=function(){var e=this;this.currentRebufferingIntervalIndex>0||(this.rebufferingTimeoutHandle=setTimeout((function(){e.callEvent(o.Event.ERROR,a(a({},r.ErrorCode.BUFFERING_TIMEOUT_REACHED),{data:{additionalData:"StateMachine timed out after ".concat(e.rebufferTimeoutMs," ms of consecutive buffering.")}}),c.getCurrentTimestamp()),e.stateMachineCallbacks.release()}),this.rebufferTimeoutMs))},e.prototype.clearRebufferingTimeoutHandle=function(e){e&&(0,l.isNotNullish)(this.rebufferingTimeoutHandle)&&(clearTimeout(this.rebufferingTimeoutHandle),this.rebufferingTimeoutHandle=void 0)},e.prototype.setVideoStartTimeout=function(){var e=this;(0,l.isNotNullish)(this.videoStartTimeout)&&this.clearVideoStartTimeout(),this.videoStartTimeout=setTimeout((function(){e.callEvent(o.Event.VIDEOSTART_TIMEOUT,{},Date.now()),e.stateMachineCallbacks.release()}),this.videoStartupTimeoutMs)},e.prototype.clearVideoStartTimeout=function(){clearTimeout(this.videoStartTimeout),this.videoStartTimeout=void 0},e.prototype.onHeartbeat=function(e){this.sendPlayingSample(Date.now(),e)},e.prototype.sendPlayingSample=function(e,t,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1);var r=this.stateMachine.current.toLowerCase();if("playing"===r){this.stateMachineCallbacks.setVideoTimeEndFromEvent({currentTime:t});var o=e-this.onEnterStateTimestamp,u={played:o,isProgramChange:!!a||void 0};i&&(u[n.SSAI_RELATED_SAMPLE_MARKER]=!0),this.stateMachineCallbacks.heartbeat(o,r,u),this.resetCurrentStateStart(e,t)}else s.logger.warn('Unexpected call of "sendPlayingSample" in AnalyticsStateMachine from "'.concat(r,'" state'))},e.prototype.resetCurrentStateStart=function(e,t){this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent({currentTime:t})},e.prototype.programChange=function(e,t,i){if("SETUP"!==this.stateMachine.current&&"READY"!==this.stateMachine.current&&"STARTUP"!==this.stateMachine.current&&"STARTUP_AUTOPLAY"!==this.stateMachine.current){var a=Date.now();"PLAYING"===this.stateMachine.current?this.sendPlayingSample(a,e,t,!0):this.resetCurrentStateStart(a,e),this.stateMachineCallbacks.programChange(i)}else this.stateMachineCallbacks.updateSourceMetadata(i)},e}();t.AnalyticsStateMachine=p},7614:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)},n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailBackend=void 0;var r=i(92),o=i(4649),s=i(5063),u=function(){function e(e){var t;this._queue=[],this._enabled=!1,this.backendUrl=(0,s.joinUrls)(null!==(t=null==e?void 0:e.backendUrl)&&void 0!==t?t:o.ANALYTICS_BACKEND_BASE_URL,"/analytics/error")}return Object.defineProperty(e.prototype,"queue",{get:function(){return this._queue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!1,configurable:!0}),e.copyErrorDetailTruncateStringsAndUrls=function(e,t,i){var n,r,o=this;return a(a({},e),{message:null===(n=e.message)||void 0===n?void 0:n.substr(0,t),data:this.copyErrorDataTruncateStrings(e.data,t),httpRequests:null===(r=e.httpRequests)||void 0===r?void 0:r.map((function(e){return o.copyHttpRequestTruncateUrls(e,i)}))})},e.copyHttpRequestTruncateUrls=function(e,t){var i,n;return a(a({},e),{url:null===(i=e.url)||void 0===i?void 0:i.substr(0,t),lastRedirectLocation:null===(n=e.lastRedirectLocation)||void 0===n?void 0:n.substr(0,t)})},e.copyErrorDataTruncateStrings=function(e,t){var i,n;return a(a({},e),{exceptionMessage:null===(i=e.exceptionMessage)||void 0===i?void 0:i.substr(0,t),additionalData:null===(n=e.additionalData)||void 0===n?void 0:n.substr(0,t)})},e.copyErrorDetailTruncateHttpRequests=function(e,t){var i;return a(a({},e),{httpRequests:null===(i=e.httpRequests)||void 0===i?void 0:i.slice(-t)})},e.prototype.limitHttpRequestsOfQueuedErrorDetails=function(t){var i=this;this._queue.forEach((function(a,n){i._queue[n]=e.copyErrorDetailTruncateHttpRequests(a,t)}))},e.prototype.send=function(t){var i=e.copyErrorDetailTruncateStringsAndUrls(t,e.MAX_STRING_LENGTH,e.MAX_URL_LENGTH);this.enabled?(0,r.post)(this.backendUrl,i,(function(){})):this._queue.push(i)},e.prototype.flush=function(){for(var e=n([],this._queue,!0),t=e.shift();(0,s.isNotNullish)(t);)this.removeFromQueue(t),this.send(t),t=e.shift()},e.prototype.clear=function(){this._queue.splice(0,this._queue.length)},e.prototype.removeFromQueue=function(e){var t=this._queue.findIndex((function(t){return t===e}));t>=0&&this._queue.splice(t,1)},e.MAX_URL_LENGTH=450,e.MAX_STRING_LENGTH=2e3,e}();t.ErrorDetailBackend=u},7721:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdenticalErrorReportingLimiter=void 0;var i=function(){function e(){this._currentErrorCount=0}return e.prototype.shouldReportError=function(t,i){return t===this._lastErrorCode&&i===this._lastErrorSeverity?(this._currentErrorCount++,this._currentErrorCount<=e.MAX_IDENTICAL_ERROR_REPORTING):(this._lastErrorCode=t,this._lastErrorSeverity=i,this._currentErrorCount=1,!0)},e.prototype.reset=function(){this._lastErrorCode=void 0,this._lastErrorSeverity=void 0,this._currentErrorCount=0},e.MAX_IDENTICAL_ERROR_REPORTING=5,e}();t.IdenticalErrorReportingLimiter=i},7906:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTING_URL_PARAM_VALUE_SSAI=t.ROUTING_URL_PARAM=t.SSAI_RELATED_SAMPLE_MARKER=void 0,t.isSsaiRelatedSample=function(e){if(e[t.SSAI_RELATED_SAMPLE_MARKER])return delete e[t.SSAI_RELATED_SAMPLE_MARKER],!0;if(2===e.adType)return!0;return!1},t.appendSsaiRoutingParam=function(e){return"".concat(e,"?").concat(t.ROUTING_URL_PARAM,"=").concat(t.ROUTING_URL_PARAM_VALUE_SSAI)},t.createErrorAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:void 0,quartileMetadata:void 0,errorCode:t.analyticsError.code,errorMessage:t.analyticsError.message,errorSeverity:t.analyticsError.severity,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs})},t.createStartedAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:"started",quartileMetadata:void 0,errorCode:void 0,errorMessage:void 0,errorSeverity:void 0,timeSinceAdStartedInMs:void 0})},t.createQuartileAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:t.quartile,quartileMetadata:t.quartileMetadata,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs,errorCode:void 0,errorMessage:void 0,errorSeverity:void 0})},t.getCurrentMonotonicTimestampInMs=u,t.getMonotonicTimestampInMsSince=function(e){if((0,r.isNullish)(e))return;return u()-e};var n=i(5529),r=i(5063),o=i(399);function s(e){var t,i=e.playbackSample,o=e.currentAdImpressionId,s=e.adIndex,u=e.currentAdMetadata,c=e.quartile,l=e.quartileMetadata,d=e.errorCode,p=e.errorMessage,h=e.errorSeverity,m=e.timeSinceAdStartedInMs,v=a(a({},{audioBitrate:null==(t=i)?void 0:t.audioBitrate,analyticsVersion:null==t?void 0:t.analyticsVersion,adPlaybackHeight:null==t?void 0:t.videoPlaybackHeight,adPlaybackWidth:null==t?void 0:t.videoPlaybackWidth,cdnProvider:null==t?void 0:t.cdnProvider,customData1:null==t?void 0:t.customData1,customData2:null==t?void 0:t.customData2,customData3:null==t?void 0:t.customData3,customData4:null==t?void 0:t.customData4,customData5:null==t?void 0:t.customData5,customData6:null==t?void 0:t.customData6,customData7:null==t?void 0:t.customData7,customData8:null==t?void 0:t.customData8,customData9:null==t?void 0:t.customData9,customData10:null==t?void 0:t.customData10,customData11:null==t?void 0:t.customData11,customData12:null==t?void 0:t.customData12,customData13:null==t?void 0:t.customData13,customData14:null==t?void 0:t.customData14,customData15:null==t?void 0:t.customData15,customData16:null==t?void 0:t.customData16,customData17:null==t?void 0:t.customData17,customData18:null==t?void 0:t.customData18,customData19:null==t?void 0:t.customData19,customData20:null==t?void 0:t.customData20,customData21:null==t?void 0:t.customData21,customData22:null==t?void 0:t.customData22,customData23:null==t?void 0:t.customData23,customData24:null==t?void 0:t.customData24,customData25:null==t?void 0:t.customData25,customData26:null==t?void 0:t.customData26,customData27:null==t?void 0:t.customData27,customData28:null==t?void 0:t.customData28,customData29:null==t?void 0:t.customData29,customData30:null==t?void 0:t.customData30,customData31:null==t?void 0:t.customData31,customData32:null==t?void 0:t.customData32,customData33:null==t?void 0:t.customData33,customData34:null==t?void 0:t.customData34,customData35:null==t?void 0:t.customData35,customData36:null==t?void 0:t.customData36,customData37:null==t?void 0:t.customData37,customData38:null==t?void 0:t.customData38,customData39:null==t?void 0:t.customData39,customData40:null==t?void 0:t.customData40,customData41:null==t?void 0:t.customData41,customData42:null==t?void 0:t.customData42,customData43:null==t?void 0:t.customData43,customData44:null==t?void 0:t.customData44,customData45:null==t?void 0:t.customData45,customData46:null==t?void 0:t.customData46,customData47:null==t?void 0:t.customData47,customData48:null==t?void 0:t.customData48,customData49:null==t?void 0:t.customData49,customData50:null==t?void 0:t.customData50,customData51:null==t?void 0:t.customData51,customData52:null==t?void 0:t.customData52,customData53:null==t?void 0:t.customData53,customData54:null==t?void 0:t.customData54,customData55:null==t?void 0:t.customData55,customData56:null==t?void 0:t.customData56,customData57:null==t?void 0:t.customData57,customData58:null==t?void 0:t.customData58,customData59:null==t?void 0:t.customData59,customData60:null==t?void 0:t.customData60,customData61:null==t?void 0:t.customData61,customData62:null==t?void 0:t.customData62,customData63:null==t?void 0:t.customData63,customData64:null==t?void 0:t.customData64,customData65:null==t?void 0:t.customData65,customData66:null==t?void 0:t.customData66,customData67:null==t?void 0:t.customData67,customData68:null==t?void 0:t.customData68,customData69:null==t?void 0:t.customData69,customData70:null==t?void 0:t.customData70,customData71:null==t?void 0:t.customData71,customData72:null==t?void 0:t.customData72,customData73:null==t?void 0:t.customData73,customData74:null==t?void 0:t.customData74,customData75:null==t?void 0:t.customData75,customData76:null==t?void 0:t.customData76,customData77:null==t?void 0:t.customData77,customData78:null==t?void 0:t.customData78,customData79:null==t?void 0:t.customData79,customData80:null==t?void 0:t.customData80,customData81:null==t?void 0:t.customData81,customData82:null==t?void 0:t.customData82,customData83:null==t?void 0:t.customData83,customData84:null==t?void 0:t.customData84,customData85:null==t?void 0:t.customData85,customData86:null==t?void 0:t.customData86,customData87:null==t?void 0:t.customData87,customData88:null==t?void 0:t.customData88,customData89:null==t?void 0:t.customData89,customData90:null==t?void 0:t.customData90,customData91:null==t?void 0:t.customData91,customData92:null==t?void 0:t.customData92,customData93:null==t?void 0:t.customData93,customData94:null==t?void 0:t.customData94,customData95:null==t?void 0:t.customData95,customData96:null==t?void 0:t.customData96,customData97:null==t?void 0:t.customData97,customData98:null==t?void 0:t.customData98,customData99:null==t?void 0:t.customData99,customData100:null==t?void 0:t.customData100,customUserId:null==t?void 0:t.customUserId,domain:null==t?void 0:t.domain,experimentName:null==t?void 0:t.experimentName,key:null==t?void 0:t.key,language:null==t?void 0:t.language,path:null==t?void 0:t.path,platform:null==t?void 0:t.platform,player:null==t?void 0:t.player,playerKey:null==t?void 0:t.playerKey,playerTech:null==t?void 0:t.playerTech,size:null==t?void 0:t.size,screenHeight:null==t?void 0:t.screenHeight,screenWidth:null==t?void 0:t.screenWidth,streamFormat:null==t?void 0:t.streamFormat,userAgent:null==t?void 0:t.userAgent,userId:null==t?void 0:t.userId,version:null==t?void 0:t.version,videoBitrate:null==t?void 0:t.videoBitrate,videoId:null==t?void 0:t.videoId,videoImpressionId:null==t?void 0:t.impressionId,videoTitle:null==t?void 0:t.videoTitle,videoWindowHeight:null==t?void 0:t.videoWindowHeight,videoWindowWidth:null==t?void 0:t.videoWindowWidth}),{adId:null==u?void 0:u.adId,adImpressionId:o,adIndex:s,adPosition:null==u?void 0:u.adPosition,adSystem:null==u?void 0:u.adSystem,adType:2,errorCode:d,errorMessage:p,errorSeverity:h,time:Date.now(),timeSinceAdStartedInMs:m});switch(c){case"started":v.started=1;break;case"first":v.quartile1=1,v.quartile1FailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"midpoint":v.midpoint=1,v.midpointFailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"third":v.quartile3=1,v.quartile3FailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"completed":v.completed=1,v.completedFailedBeaconUrl=null==l?void 0:l.failedBeaconUrl}var f=null==u?void 0:u.customData;return(0,r.isNotNullish)(f)&&n.customDataValuesKeys.forEach((function(e){f[e]&&(v[e]=f[e])})),v}function u(){var e=(0,o.getWindowPerformance)();return(0,r.isNullish)(null==e?void 0:e.now)||!(0,r.isFunction)(window.performance.now)?Date.now():Math.floor(e.now())}t.SSAI_RELATED_SAMPLE_MARKER="triggeredBySsai",t.ROUTING_URL_PARAM="routingParam",t.ROUTING_URL_PARAM_VALUE_SSAI="ssai"},8253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logStateMachineTransition=t.logMissingCallbackWarning=t.customStateMachineErrorCallback=t.whileIn=t.on=void 0,t.getAllStates=s,t.getAllStatesBut=function(e,t){return s(t).filter((function(t){return e.indexOf(t)<0}))};var a=i(2595),n=i(1916),r=i(2974),o=i(5063);t.on=function(e){return{stayIn:function(t){return{name:e,from:t,to:t}}}};t.whileIn=function(e){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.map((function(t){return{name:t,from:e,to:e}}))};return{runEventCallbacksFor:t,passOver:t}};t.customStateMachineErrorCallback=function(e,t,i,r,s,u,c){var l='StateMachine ignored event "'.concat(e,'", ').concat(u),d={eventName:e,from:t,to:i,args:(0,o.tryJSONStringify)(r),errorCode:s,errorMessage:u};s!==a.Error.INVALID_TRANSITION?n.logger.error(l,d):n.logger.log(l,d)};t.logMissingCallbackWarning=function(e,t){(void 0===t&&(t=[]),(0,o.isNullish)(e))||(0,o.isNullish)(t.find((function(t){return e===t})))&&n.logger.warn("Could not find StateMachine callback function for "+e)};function s(e){return(0,r.objectValues)(e)}t.logStateMachineTransition=function(e,t,i,a){"ENTER"===e?n.logger.log("[ENTER] ".concat((0,n.padRight)(a,20)," EVENT: ").concat((0,n.padRight)(t,20)," from ").concat((0,n.padRight)(i,20))):n.logger.log("[LEAVE] ".concat((0,n.padRight)(i,20)," EVENT: ").concat((0,n.padRight)(t,20)," to ").concat((0,n.padRight)(a,20)))}},8331:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeAnalyticsConfig=function(e){if((0,u.isNullish)(e))return{};s.isBoolean(e.isLive)||(e.isLive=void 0);(0,u.isNotNullish)(e.config)&&(0,u.isNotNullish)(e.config.errorTransformerCallback)&&((0,u.isFunction)(e.config.errorTransformerCallback.transform)||(e.config.errorTransformerCallback=void 0));return e},t.guardConfigChangeAgainstMissingTitle=function(e,t){if((0,u.isNullish)(e)||(0,u.isNullish)(t))return;e.title&&(0,o.isBlank)(t.title)&&r.logger.error("The new analytics configuration does not contain the field `title`")},t.guardConfigChangeAgainstMissingIsLive=function(e,t){if((0,u.isNullish)(e)||(0,u.isNullish)(t))return;e.isLive&&(0,u.isNullish)(t.isLive)&&r.logger.error("The new analytics configuration does not contain the field `isLive`. It will default to `false` which might be unintended? Once stream playback information is available the type will be populated.")},t.guardAgainstDuplicatedUserId=function(e){if((0,u.isNullish)(e))return;(0,u.isNotNullish)(e.customUserId)&&(0,u.isNotNullish)(e.userId)&&r.logger.warn("Configuration Warning: \nCustomUserId and UserId are set in the config \nValue of UserId will be used in sample \nPlease only use one configuration field to set your userId")},t.getDeviceInformationFromAnalyticsConfig=function(e){if((0,u.isNullish)(e))return;var t={};(0,o.isValidString)(e.deviceType)&&!(0,o.isBlank)(e.deviceType)&&(t.model=e.deviceType);(0,o.isValidString)(e.deviceClass)&&!(0,o.isBlank)(e.deviceClass)&&(t.deviceClass=e.deviceClass);if(0===Object.keys(t).length)return;return t},t.getDomainFromAnalyticsConfig=function(e){var t,i,a=(0,c.getWindowLocationHostname)(),n=a?s.removeTrailingSlash(a):"";return null!==(i=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.origin)&&void 0!==i?i:n},t.mergeAnalyticsConfig=function(e,t){var i=function(e){var t=["cdnProvider","videoId","title","isLive","experimentName"],i=/customData\d{1,3}$/g;for(var a in e)((0,u.isNotNullish)(a.match(i))||t.includes(a))&&delete e[a];return e}(e),n=function(e,t){if((0,u.isNotNullish)(t))return a(a(a({},e),{enabled:!0}),t);return null!=e?e:{}}(e.config,t.config);return a(a(a({},i),t),{config:n})},t.applySourceMetadataToAnalyticsConfig=function(e,t){var i=a({},e);(0,u.isNotNullish)(t.title)&&(i.title=t.title);(0,u.isNotNullish)(t.videoId)&&(i.videoId=t.videoId);(0,u.isNotNullish)(t.cdnProvider)&&(i.cdnProvider=t.cdnProvider);(0,u.isNotNullish)(t.isLive)&&(i.isLive=t.isLive);(0,u.isNotNullish)(t.customData)&&(i=a(a({},i),(0,n.extractCustomDataFieldsOnly)(t.customData)));return i};var n=i(5529),r=i(1916),o=i(1820),s=i(5063),u=i(5063),c=i(399)},8421:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWebOSTVModelName=function(){try{var e=(0,n.getWindowWebOSApi)(),t=e.webOSSystem,i=e.PalmSystem,r=(null==t?void 0:t.deviceInfo)?JSON.parse(t.deviceInfo):(null==i?void 0:i.deviceInfo)&&JSON.parse(i.deviceInfo);return(0,a.isValidString)(null==r?void 0:r.modelName)&&!(0,a.isBlank)(null==r?void 0:r.modelName)?r.modelName:void 0}catch(e){return}};var a=i(1820),n=i(399)},8525:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerSize=void 0,function(e){e.Fullscreen="FULLSCREEN",e.Window="WINDOW"}(i||(t.PlayerSize=i={}))},8917:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdAnalytics=void 0;var n,r=i(5791),o=i(7232),s=i(4439),u=i(1916),c=i(5063),l=i(5063),d=i(2982),p=i(4926),h=i(3612);!function(e){e.FIRST_QUARTILE="firstQuartile",e.MIDPOINT="midpoint",e.THIRD_QUARTILE="thirdQuartile"}(n||(n={}));var m=function(){function e(e,t){var i=this;this.onBeforeUnLoadEvent=!1,this.adManifestLoadedEvents=[],this.isPlaying=!1,this.adPodPosition=0,this.analytics=e,this.adapter=t,this.adapter.adCallbacks.onAdStarted=function(e){return i.onAdStarted(e)},this.adapter.adCallbacks.onAdFinished=function(e){return i.onAdFinished(e)},this.adapter.adCallbacks.onAdBreakStarted=function(e){return i.onAdBreakStarted(e)},this.adapter.adCallbacks.onAdBreakFinished=function(e){return i.onAdBreakFinished(e)},this.adapter.adCallbacks.onAdClicked=function(e){return i.onAdClicked(e)},this.adapter.adCallbacks.onAdError=function(e){return i.onAdError(e)},this.adapter.adCallbacks.onAdManifestLoaded=function(e){return i.onAdManifestLoaded(e)},this.adapter.adCallbacks.onPlay=function(){return i.onPlay()},this.adapter.adCallbacks.onPause=function(){return i.onPause()},this.adapter.adCallbacks.onBeforeUnload=function(){return i.onBeforeUnload()},this.adapter.adCallbacks.onAdSkipped=function(e){return i.onAdSkipped(e)},this.adapter.adCallbacks.onAdQuartile=function(e){return i.onAdQuartile(e)},this.viewportTracker=new h.ViewportTracker(this.adapter.getContainer(),(function(){return i.onIntersectionChanged()}),.5)}return e.prototype.release=function(){this.clearCurrentTimeInterval(),this.viewportTracker.dispose()},e.prototype.onIntersectionChanged=function(){this.activeAdSample&&(this.isContainerInViewport()?this.enterViewportTimestamp=c.getCurrentTimestamp():this.enterViewportTimestamp&&(this.activeAdSample.timeInViewport=(this.activeAdSample.timeInViewport||0)+c.getCurrentTimestamp()-this.enterViewportTimestamp))},e.prototype.isContainerInViewport=function(){return!this.viewportTracker||this.viewportTracker.isInViewport()},e.prototype.onPlay=function(){if(this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample){var e=c.getCurrentTimestamp();this.beginPlayingTimestamp=e,this.enterViewportTimestamp=e,this.isPlaying=!0}},e.prototype.onPause=function(){this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample&&(this.updatePlayingTime(this.activeAdSample),this.isPlaying=!1)},e.prototype.onAdManifestLoaded=function(e){var t=e.adConfig;t&&t.tag&&"vmap"===t.tag.type?this.sendAnalyticsRequest(new o.AdBreakSample(e.adConfig,e)):e.adBreak&&this.adManifestLoadedEvents.push(e)},e.prototype.onAdBreakStarted=function(e){this.adPodPosition=0,this.activeAdBreakSample=new o.AdBreakSample(e.adBreak,this.getAdManifestLoadedEvent(e.adBreak)),this.adStartupTimestamp=c.getCurrentTimestamp()},e.prototype.onAdBreakFinished=function(e){this.resetActiveAd(),this.activeAdBreakSample=void 0},e.prototype.onAdStarted=function(e){e.ad.isLinear&&(this.resetActiveAd(),this.activeAdSample=new s.AdSample(e.ad),this.currentTime=void 0,this.activeAdSample.adStartupTime=this.adStartupTimestamp?c.getCurrentTimestamp()-this.adStartupTimestamp:void 0,this.startAd(this.activeAdSample))},e.prototype.onAdFinished=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=a({},this.activeAdSample);t.completed=1,this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.adDuration)}},e.prototype.onAdSkipped=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=a({},this.activeAdSample);t.skipped=1,t.skipPosition=this.currentTime,t.skipPercentage=c.calculatePercentage(this.activeAdSample.skipPosition,this.activeAdSample.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.skipPosition)}},e.prototype.onAdError=function(e){var t,i,a=this,n=e.data||{adBreak:void 0,adConfig:void 0,code:void 0,message:void 0},r=n.adConfig,s=n.adBreak,u=n.code,d=n.message,p=new o.AdBreakSample(s||r,s?this.getAdManifestLoadedEvent(s):void 0),h=this.analytics.transformError({code:u||e.code,message:d||e.name,severity:"CRITICAL"},e);p.errorCode=h.code,p.errorData=(0,l.tryJSONStringify)(e.data),p.errorMessage=h.message,p.errorSeverity=h.severity,this.activeAdSample&&s&&s.ads&&s.ads.includes((function(e){return e.id===a.activeAdSample.adId}))&&(i=(t=this.activeAdSample).errorPosition=this.currentTime,t.errorPercentage=c.calculatePercentage(t.errorPosition,t.adDuration)),this.completeAd(p,t,i)},e.prototype.onAdClicked=function(e){this.activeAdSample&&(this.activeAdSample.adClickthroughUrl=e.clickThroughUrl,this.activeAdSample.clicked=1,this.activeAdSample.clickPosition=this.currentTime,this.activeAdSample.clickPercentage=c.calculatePercentage(this.activeAdSample.clickPosition,this.activeAdSample.adDuration))},e.prototype.onAdQuartile=function(e){this.activeAdSample&&(e.quartile===n.FIRST_QUARTILE?this.activeAdSample.quartile1=1:e.quartile===n.MIDPOINT?this.activeAdSample.midpoint=1:e.quartile===n.THIRD_QUARTILE&&(this.activeAdSample.quartile3=1))},e.prototype.onBeforeUnload=function(){if(!this.onBeforeUnLoadEvent&&(this.onBeforeUnLoadEvent=!0,this.activeAdSample&&this.activeAdBreakSample)){var e=a({},this.activeAdSample);e.closed=1,e.closePosition=this.currentTime,e.closePercentage=c.calculatePercentage(e.closePosition,e.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,e,e.closePosition)}},e.prototype.createNewAdAnalyticsSample=function(e){var t=this.adapter.getAdModuleInfo();return a(a({},new r.AdAnalyticsSample(e)),{analyticsVersion:p.VERSION,adModule:t.name,adModuleVersion:t.version,playerStartupTime:this.analytics.adSamplePlayerStartupTime,pageLoadTime:this.analytics.adSamplePageLoadTime,autoplay:this.analytics.adSampleAutoplay,pageLoadType:c.getPageLoadType()})},e.prototype.getAdManifestLoadedEvent=function(e){if(e)return this.adManifestLoadedEvents.find((function(t){return t.adBreak&&t.adBreak.id===e.id}))},e.prototype.sendAnalyticsRequest=function(e,t){var i=a(a(a({},this.createNewAdAnalyticsSample(this.analytics.sample)),e),t||new s.AdSample);i.time=c.getCurrentTimestamp(),i.adImpressionId=(0,d.generateUUID)(),i.percentageInViewport=c.calculatePercentage(i.timeInViewport,i.timePlayed),this.analytics.backend.sendAdRequest(i)},e.prototype.updatePlayingTime=function(e){var t=c.getCurrentTimestamp();this.beginPlayingTimestamp&&this.isPlaying&&(void 0!==e.timePlayed&&(e.timePlayed+=t-this.beginPlayingTimestamp),this.isContainerInViewport()&&this.enterViewportTimestamp&&void 0!==e.timeInViewport&&(e.timeInViewport+=t-this.enterViewportTimestamp))},e.prototype.startAd=function(t){var i=this;t.started=1,t.timePlayed=0,t.timeInViewport=0,t.adPodPosition=this.adPodPosition;var a=c.getCurrentTimestamp();this.beginPlayingTimestamp=a,this.enterViewportTimestamp=this.isContainerInViewport()?a:void 0,this.isPlaying=!0,this.currentTime=0,this.adPodPosition++,this.currentTimeInterval=setInterval((function(){try{t&&void 0!==t.adDuration&&t.adDuration>0&&i.adapter.isLinearAdActive()&&(i.currentTime=c.calculateTime(Math.max(i.adapter.currentTime(),0)))}catch(e){u.logger.log("AdStarted monitoring interval failed and got cleared",e),i.resetActiveAd()}}),e.TIMEOUT_CURRENT_TIME_INTERVAL)},e.prototype.completeAd=function(e,t,i){void 0===t&&(t=new s.AdSample),t.exitPosition=i,t.playPercentage=c.calculatePercentage(t.exitPosition,t.adDuration),this.adStartupTimestamp=c.getCurrentTimestamp(),this.updatePlayingTime(t),this.isPlaying=!1,this.sendAnalyticsRequest(e,t)},e.prototype.resetActiveAd=function(){this.clearCurrentTimeInterval(),this.activeAdSample=void 0},e.prototype.clearCurrentTimeInterval=function(){clearInterval(this.currentTimeInterval),delete this.currentTime},e.MODULE_NAME="ads",e.TIMEOUT_CURRENT_TIME_INTERVAL=100,e}();t.AdAnalytics=m},8918:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSsaiEngagementErrorData=function(e){return"error"===e.type},t.isSsaiEngagementQuartileData=function(e){return"quartile"===e.type},t.isSsaiEngagementStartedData=function(e){return"started"===e.type}},9557:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailTracking=void 0;var o=i(1916),s=i(5063),u=i(4926),c=function(e){function t(t,i,a,n){var c=e.call(this)||this;return c.settingsProvider=t,c.backend=i,c.subscribables=a,c.httpRequestTracking=n,c.errorIndex=0,c.onErrorHandler=function(e){var t,i;try{if(!c.isEnabled)return;var a=null===(t=c.httpRequestTracking)||void 0===t?void 0:t.httpRequests,n=(0,s.isNullish)(a)?void 0:r([],a,!0),l=c.errorIndex;c.errorIndex++;var d={platform:"web",licenseKey:c.settingsProvider.licenseKey,domain:c.settingsProvider.domain,impressionId:c.settingsProvider.impressionId,analyticsVersion:u.VERSION,errorId:l,timestamp:(0,s.getCurrentTimestamp)(),code:e.code,message:e.message,data:null!==(i=e.errorData)&&void 0!==i?i:{additionalData:void 0,exceptionMessage:void 0,exceptionStacktrace:void 0},httpRequests:n,severity:e.severity};o.logger.log("ErrorDetailTracking.onError: ".concat((0,s.tryJSONStringify)(d))),c.backend.send(d)}catch(e){o.logger.error("ErrorDetailTracking.onError: Error in handler",e)}},a.forEach((function(e){return e.subscribe(c.onErrorHandler)})),c}return n(t,e),t.prototype.reset=function(){var e;null===(e=this.httpRequestTracking)||void 0===e||e.reset(),this.errorIndex=0},t.prototype.enabled=function(){this.backend.enabled=!0,this.backend.flush()},t.prototype.disabled=function(){var e,t=this;this.errorIndex=0,null===(e=this.httpRequestTracking)||void 0===e||e.disable(),this.backend.clear(),this.subscribables.forEach((function(e){return e.unsubscribe(t.onErrorHandler)}))},t.prototype.configured=function(e,t){var i,a,n=Math.max(null!==(i=null==t?void 0:t.numberOfHttpRequests)&&void 0!==i?i:0,0);null===(a=this.httpRequestTracking)||void 0===a||a.configure(n),this.backend.limitHttpRequestsOfQueuedErrorDetails(n)},t.prototype.extractConfig=function(e){return e.errorDetails},t}(i(348).Feature);t.ErrorDetailTracking=c},9627:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCollectorRequirementsValid=function(e){var t=[],i=(0,r.isBlank)((0,a.getDomainFromAnalyticsConfig)(e));i&&t.push("no `domain` value found (neither from `window.location` object nor provided by `AnalyticsConfig.config.origin`). Without this value, we cannot verify the origin of your analytics data. Please provide the registered domain via the config during collector creation.");if(t.length>0){var o="Collector setup failed:"+t.join(" -- ");n.logger.errorMessageToUser(o)}return!i};var a=i(8331),n=i(1916),r=i(1820)},9796:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1460),n=i(4649),r=function(){function e(e){void 0===e&&(e=n.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD),this.qualityChangeCount=0,this.previousVideoBitrate=0,this.previousAudioBitrate=0,this.startupHasFinished=!1,this.QUALITY_CHANGE_COUNT_THRESHOLD=e}return e.prototype.resetValues=function(){this.qualityChangeCount=0,this.stopResetInterval(),this.previousVideoBitrate=0,this.previousAudioBitrate=0,this.startupHasFinished=!1},e.prototype.increaseCounter=function(){this.qualityChangeCount++},e.prototype.hasExceededQualityChangeThreshold=function(){return this.qualityChangeCount>this.QUALITY_CHANGE_COUNT_THRESHOLD},e.prototype.setStartupHasFinished=function(e,t){this.startupHasFinished=!0,(0,a.isFiniteNumber)(e)&&(this.previousVideoBitrate=e),(0,a.isFiniteNumber)(t)&&(this.previousAudioBitrate=t)},e.prototype.shouldAllowVideoQualityChange=function(e){return this.startupHasFinished&&(0,a.isFiniteNumber)(e)&&0!==this.previousVideoBitrate&&this.previousVideoBitrate!==e&&!this.hasExceededQualityChangeThreshold()},e.prototype.setVideoBitrate=function(e){this.startupHasFinished&&(this.previousVideoBitrate=e)},e.prototype.shouldAllowAudioQualityChange=function(e){return this.startupHasFinished&&(0,a.isFiniteNumber)(e)&&0!==this.previousAudioBitrate&&this.previousAudioBitrate!==e&&!this.hasExceededQualityChangeThreshold()},e.prototype.setAudioBitrate=function(e){this.startupHasFinished&&(this.previousAudioBitrate=e)},e.prototype.startResetInterval=function(){var e=this;void 0===this.qualityChangeCountResetIntervalId&&(this.qualityChangeCountResetIntervalId=setInterval((function(){e.qualityChangeCount=0}),n.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL))},e.prototype.stopResetInterval=function(){void 0!==this.qualityChangeCountResetIntervalId&&(clearInterval(this.qualityChangeCountResetIntervalId),delete this.qualityChangeCountResetIntervalId)},e}();t.default=r},9946:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.PAGE_LOAD_TYPE=void 0,function(e){e[e.FOREGROUND=1]="FOREGROUND",e[e.BACKGROUND=2]="BACKGROUND"}(i||(t.PAGE_LOAD_TYPE=i={}))}},t={};function i(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,i),r.exports}var a={};return function(){"use strict";var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.BitmovinPwxAnalyticsPackage=e.CdnProviders=e.Players=e.version=void 0;var t=i(2506);Object.defineProperty(e,"BitmovinPwxAnalyticsPackage",{enumerable:!0,get:function(){return t.BitmovinPwxAnalyticsPackage}});var n=i(4355);Object.defineProperty(e,"CdnProviders",{enumerable:!0,get:function(){return n.CdnProvider}});var r=i(556);Object.defineProperty(e,"Players",{enumerable:!0,get:function(){return r.Player}});var o=i(4926);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.VERSION}})}(),a}()}));
|
|
11
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bitmovin=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.analytics=t())}(self,(function(){return function(){var e={2595:function(e,t){var i;i={VERSION:"2.4.0",Result:{SUCCEEDED:1,NOTRANSITION:2,CANCELLED:3,PENDING:4},Error:{INVALID_TRANSITION:100,PENDING_TRANSITION:200,INVALID_CALLBACK:300},WILDCARD:"*",ASYNC:"async",create:function(e,t){var a="string"==typeof e.initial?{state:e.initial}:e.initial,n=e.terminal||e.final,r=t||e.target||{},o=e.events||[],s=e.callbacks||{},u={},c={},l=function(e){var t=Array.isArray(e.from)?e.from:e.from?[e.from]:[i.WILDCARD];u[e.name]=u[e.name]||{};for(var a=0;a<t.length;a++)c[t[a]]=c[t[a]]||[],c[t[a]].push(e.name),u[e.name][t[a]]=e.to||t[a];e.to&&(c[e.to]=c[e.to]||[])};a&&(a.event=a.event||"startup",l({name:a.event,from:"none",to:a.state}));for(var d=0;d<o.length;d++)l(o[d]);for(var p in u)u.hasOwnProperty(p)&&(r[p]=i.buildEvent(p,u[p]));for(var p in s)s.hasOwnProperty(p)&&(r[p]=s[p]);return r.current="none",r.is=function(e){return Array.isArray(e)?e.indexOf(this.current)>=0:this.current===e},r.can=function(e){return!this.transition&&void 0!==u[e]&&(u[e].hasOwnProperty(this.current)||u[e].hasOwnProperty(i.WILDCARD))},r.cannot=function(e){return!this.can(e)},r.transitions=function(){return(c[this.current]||[]).concat(c[i.WILDCARD]||[])},r.isFinished=function(){return this.is(n)},r.error=e.error||function(e,t,i,a,n,r,o){throw o||r},r.states=function(){return Object.keys(c).sort()},a&&!a.defer&&r[a.event](),r},doCallback:function(e,t,a,n,r,o){if(t)try{return t.apply(e,[a,n,r].concat(o))}catch(t){return e.error(a,n,r,o,i.Error.INVALID_CALLBACK,"an exception occurred in a caller-provided callback function",t)}},beforeAnyEvent:function(e,t,a,n,r){return i.doCallback(e,e.onbeforeevent,t,a,n,r)},afterAnyEvent:function(e,t,a,n,r){return i.doCallback(e,e.onafterevent||e.onevent,t,a,n,r)},leaveAnyState:function(e,t,a,n,r){return i.doCallback(e,e.onleavestate,t,a,n,r)},enterAnyState:function(e,t,a,n,r){return i.doCallback(e,e.onenterstate||e.onstate,t,a,n,r)},changeState:function(e,t,a,n,r){return i.doCallback(e,e.onchangestate,t,a,n,r)},beforeThisEvent:function(e,t,a,n,r){return i.doCallback(e,e["onbefore"+t],t,a,n,r)},afterThisEvent:function(e,t,a,n,r){return i.doCallback(e,e["onafter"+t]||e["on"+t],t,a,n,r)},leaveThisState:function(e,t,a,n,r){return i.doCallback(e,e["onleave"+a],t,a,n,r)},enterThisState:function(e,t,a,n,r){return i.doCallback(e,e["onenter"+n]||e["on"+n],t,a,n,r)},beforeEvent:function(e,t,a,n,r){if(!1===i.beforeThisEvent(e,t,a,n,r)||!1===i.beforeAnyEvent(e,t,a,n,r))return!1},afterEvent:function(e,t,a,n,r){i.afterThisEvent(e,t,a,n,r),i.afterAnyEvent(e,t,a,n,r)},leaveState:function(e,t,a,n,r){var o=i.leaveThisState(e,t,a,n,r),s=i.leaveAnyState(e,t,a,n,r);return!1!==o&&!1!==s&&(i.ASYNC===o||i.ASYNC===s?i.ASYNC:void 0)},enterState:function(e,t,a,n,r){i.enterThisState(e,t,a,n,r),i.enterAnyState(e,t,a,n,r)},buildEvent:function(e,t){return function(){var a=this.current,n=t[a]||(t[i.WILDCARD]!=i.WILDCARD?t[i.WILDCARD]:a)||a,r=Array.prototype.slice.call(arguments);if(this.transition)return this.error(e,a,n,r,i.Error.PENDING_TRANSITION,"event "+e+" inappropriate because previous transition did not complete");if(this.cannot(e))return this.error(e,a,n,r,i.Error.INVALID_TRANSITION,"event "+e+" inappropriate in current state "+this.current);if(!1===i.beforeEvent(this,e,a,n,r))return i.Result.CANCELLED;if(a===n)return i.afterEvent(this,e,a,n,r),i.Result.NOTRANSITION;var o=this;this.transition=function(){return o.transition=null,o.current=n,i.enterState(o,e,a,n,r),i.changeState(o,e,a,n,r),i.afterEvent(o,e,a,n,r),i.Result.SUCCEEDED},this.transition.cancel=function(){o.transition=null,i.afterEvent(o,e,a,n,r)};var s=i.leaveState(this,e,a,n,r);return!1===s?(this.transition=null,i.Result.CANCELLED):i.ASYNC===s?i.Result.PENDING:this.transition?this.transition():void 0}}},e.exports&&(t=e.exports=i),t.StateMachine=i},2767:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAdapter=void 0;var a=i(4350),n=i(8331),r=i(9627),o=i(4926),s=i(28),u=function(){function e(e,t){var i=this;this.getCurrentImpressionId=function(){return i.analytics.getCurrentImpressionId()},this.getUserId=function(){return i.analytics.getUserId()},this.setCustomData=function(e){return i.internalAdapter.setCustomData(e)},this.setCustomDataOnce=function(e){return i.analytics.setCustomDataOnce(e)},this.sourceChange=function(e){throw new Error("Method not implemented.")};var o=(0,n.sanitizeAnalyticsConfig)(t);if(!(0,r.areCollectorRequirementsValid)(o))throw new Error("Failed to create BitmovinPwxAdapter: domain is required");(0,n.guardAgainstDuplicatedUserId)(o),this.internalAdapter=new s.BitmovinPwxInternalAdapter(e),this.analytics=a.Analytics.create(o,this.internalAdapter)}return e.prototype.dispose=function(){this.internalAdapter.release()},Object.defineProperty(e.prototype,"version",{get:function(){return o.VERSION},enumerable:!1,configurable:!0}),e.version=o.VERSION,e}();t.BitmovinPwxAdapter=u},2506:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAnalyticsPackage=void 0;var a,n,r,o=i(5063),s=i(2767),u=i(7299);t.BitmovinPwxAnalyticsPackage=(a="analytics-package",n=function(e,t){var i,a,n=t.registry.get(u.CoreExportNames.CoreEffects),r=n.EventListenerEffectFactory,c=n.StateEffectFactory,l=t.using(r,c),d=l.registry.get(u.BundleExportNames.Logger),p=l.registry.get(u.SourceExportNames.SourceState),h=l.registry.get(u.BundleExportNames.PlayerConfig),m=null!==(i=h.analytics)&&void 0!==i?i:{};m.playerKey=null!==(a=m.playerKey)&&void 0!==a?a:h.key,d.log("Applying analytics config ".concat((0,o.tryJSONStringify)(m)));var v=new s.BitmovinPwxAdapter(l,m);d.log('Analytics package initializing for "'.concat(p.url,'"...'));var f=function(){l.abortSignal.removeEventListener("abort",f),d.log('Analytics package disposing for "'.concat(p.url,'"')),v.dispose()};l.abortSignal.addEventListener("abort",f)},r=[u.BundleExportNames.Logger,u.BundleExportNames.PlayerConfig,u.CoreExportNames.Constants,u.CoreExportNames.CoreEffects,u.CoreExportNames.CoreStateAtoms,u.SourceExportNames.SourceState,u.SourcesApiExportNames.SourceEventBus,u.PlaybackApiEventsPackageExportNames.PlaybackEvent],n._name=a,{onAdd:n,dependencies:r})},5406:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAnalyticsStateMachine=t.State=void 0;var r,o=i(2595),s=i(7596),u=i(8253),c=i(2361),l=i(1652),d=i(1916),p=i(1460),h=i(5063);!function(e){e.END="END",e.ERROR="ERROR",e.PAUSE="PAUSE",e.PLAYING="PLAYING",e.READY="READY",e.SETUP="SETUP",e.SOURCE_LOADED="SOURCE_LOADED",e.STARTUP="STARTUP",e.VIDEOSTART_FAILED="VIDEOSTART_FAILED"}(r||(t.State=r={}));var m=function(e){function t(t,i,a){var n=e.call(this,t,i,a)||this;return n.enabledDebugging=!1,n.debuggingStates=[],n}return n(t,e),t.prototype.createStateMachine=function(e){var t,i=this;return o.StateMachine.create({initial:{state:r.SETUP,event:c.JSM_INITIAL_EVENT},error:u.customStateMachineErrorCallback,events:[{name:c.Event.SOURCE_LOADED,from:[r.SETUP,r.ERROR],to:r.READY},(0,u.on)(c.Event.READY).stayIn(r.READY),(0,u.on)(c.Event.PAUSE).stayIn(r.READY),(0,u.on)(c.Event.TIMECHANGED).stayIn(r.READY),{name:c.Event.PLAY,from:r.READY,to:r.STARTUP},{name:c.Event.PLAYING,from:r.READY,to:r.PLAYING},(0,u.on)(c.Event.PLAY).stayIn(r.STARTUP),(0,u.on)(c.Event.PLAYING).stayIn(r.STARTUP),{name:c.Event.TIMECHANGED,from:r.STARTUP,to:r.PLAYING},(0,u.on)(c.Event.READY).stayIn(r.STARTUP),{name:c.Event.PAUSE,from:r.STARTUP,to:r.READY},(0,u.on)(c.Event.PLAYING).stayIn(r.PLAYING),(0,u.on)(c.Event.TIMECHANGED).stayIn(r.PLAYING),{name:c.Event.PAUSE,from:r.PLAYING,to:r.PAUSE},(0,u.on)(c.Event.TIMECHANGED).stayIn(r.PAUSE),(0,u.on)(c.Event.PAUSE).stayIn(r.PAUSE),{name:c.Event.PLAY,from:r.PAUSE,to:r.PLAYING},{name:c.Event.PLAYING,from:r.PAUSE,to:r.PLAYING},{name:c.Event.END,from:r.PLAYING,to:r.END},{name:c.Event.END,from:r.PAUSE,to:r.END},{name:c.Event.PLAYING,from:r.END,to:r.STARTUP},(0,u.on)(c.Event.TIMECHANGED).stayIn(r.END),(0,u.on)(c.Event.END).stayIn(r.END),{name:c.Event.PLAY,from:r.END,to:r.STARTUP},{name:c.Event.ERROR,from:r.STARTUP,to:r.VIDEOSTART_FAILED},{name:c.Event.ERROR,from:(0,u.getAllStatesBut)([r.STARTUP],r),to:r.ERROR},{name:c.Event.UNLOAD,from:(0,u.getAllStatesBut)([r.STARTUP],r),to:r.END},{name:c.Event.UNLOAD,from:[r.STARTUP],to:r.VIDEOSTART_FAILED}],callbacks:(t={},t["onleave".concat(r.PLAYING)]=function(){i.playingHeartbeatService.stopHeartbeat()},t.onleavestate=function(e,t,a,n,o){if((0,u.logStateMachineTransition)("LEAVE",e,t,a),e!==c.JSM_INITIAL_EVENT&&n){i.addStatesToLog(e,t,a,n,o);var s=n-i.onEnterStateTimestamp,l=t===r.STARTUP&&a===r.PLAYING;i.maybeSetOrClearVideoStartTimeouts(t,a),l&&i.stateMachineCallbacks.startup(s,r.STARTUP.toLowerCase());var p=String(t).toLowerCase();if(e===c.Event.UNLOAD)i.stateMachineCallbacks.unload(s,p);else if(t===r.SETUP)i.stateMachineCallbacks.setup(1,r.SETUP.toLowerCase());else if(e===c.Event.PAUSE&&t===r.STARTUP&&a===r.READY)i.clearVideoStartTimeout();else if(t!==r.ERROR&&!l){var m=i.stateMachineCallbacks[p];if((0,h.isFunction)(m))try{m(s,p,o)}catch(e){d.logger.error("Exception occurred in State Machine callback "+p,o,e)}else(0,u.logMissingCallbackWarning)(t,[r.READY])}}},t["onenter".concat(r.PLAYING)]=function(){i.playingHeartbeatService.startHeartbeat()},t.onenterstate=function(t,a,n,r,o){(0,u.logStateMachineTransition)("ENTER",t,a,n),i.onEnterStateTimestamp=null!=r?r:Date.now(),(0,p.isNumber)(e.starttime)&&t===c.JSM_INITIAL_EVENT&&(i.onEnterStateTimestamp=e.starttime)},t["onafter".concat(c.Event.ERROR)]=function(e,t,a,n,r){i.stateMachineCallbacks.error(r)},t)})},t.prototype.addStatesToLog=function(e,t,i,a,n){this.enabledDebugging&&this.debuggingStates.push(new l.EventDebugging(e,t,i,a,n))},t.prototype.getStates=function(){return this.debuggingStates},t.prototype.setEnabledDebugging=function(e){this.enabledDebugging=e},t.prototype.maybeSetOrClearVideoStartTimeouts=function(e,t){e===r.READY&&t===r.STARTUP?this.setVideoStartTimeout():e===r.STARTUP&&t===r.PLAYING&&this.clearVideoStartTimeout()},t}(s.AnalyticsStateMachine);t.BitmovinPwxAnalyticsStateMachine=m},28:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxInternalAdapter=void 0;var o=i(2663),s=i(2361),u=i(556),c=i(7224),l=i(7614),d=i(9557),p=i(3413),h=i(2647),m=i(5406),v=i(7299),f=function(e){function t(t,i){var a=e.call(this,i)||this;a.onBeforeUnLoadEvent=!1,a.context=t;var n=new o.HeartbeatService((function(){return a.currentTime})),r=new m.BitmovinPwxAnalyticsStateMachine(a.stateMachineCallbacks,n,a.opts);return n.setListener(r),a.stateMachine=r,a}return n(t,e),t.prototype.getSource=function(){return this.context.registry.get(v.SourceExportNames.SourceState)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.getSource().playback.playhead.position},enumerable:!1,configurable:!0}),t.prototype.getAutoPlay=function(){return this.getSource().config.playback.autoplay},t.prototype.getCurrentPlaybackInfo=function(){var e,t,i,a,n,o,s,u=null===(e=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".m3u8")}))[0])||void 0===e?void 0:e.url,l=null===(t=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".mpd")}))[0])||void 0===t?void 0:t.url,d=null===(i=this.getSource().video.element)||void 0===i?void 0:i.getBoundingClientRect(),h=Math.round(null!==(a=null==d?void 0:d.width)&&void 0!==a?a:1),m=Math.round(null!==(n=null==d?void 0:d.height)&&void 0!==n?n:1),v=void 0;return u?v=c.StreamTypes.hls:l&&(v=c.StreamTypes.dash),r(r({},this.getCommonPlaybackInfo()),{droppedFrames:0,isMuted:null===(o=this.getSource().video.element)||void 0===o?void 0:o.muted,isLive:"live"===this.getSource().stream.type,videoWindowHeight:m,videoWindowWidth:h,videoDuration:(0,p.normalizeVideoDuration)(null===(s=this.getSource().video.element)||void 0===s?void 0:s.duration),videoPlaybackHeight:m,videoPlaybackWidth:h,m3u8Url:u,mpdUrl:l,streamFormat:v,videoCodec:void 0,audioCodec:void 0,videoBitrate:0,audioBitrate:0})},t.prototype.getPlayerName=function(){return u.Player.BITMOVIN_PWX},t.prototype.getPlayerTech=function(){return"webx:html5"},t.prototype.getPlayerVersion=function(){return this.context.registry.get(v.CoreExportNames.Constants).Version},t.prototype.initialize=function(e){return this.registerEventListeners(),this.registerUnloadEventListeners(),[new d.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new l.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],void 0)]},t.prototype.registerUnloadEventListeners=function(){var e=this,t=function(){if(!e.onBeforeUnLoadEvent){e.onBeforeUnLoadEvent=!0;var t=e.context.registry.get(v.SourceExportNames.SourceState).playback.playhead.position;e.eventCallback(s.Event.UNLOAD,{currentTime:t})}e.release()};t=t.bind(!0),this.context.abortSignal.addEventListener("abort",t),this.windowEventTracker.addEventListener("beforeunload",t),this.windowEventTracker.addEventListener("unload",t)},t.prototype.registerEventListeners=function(){var e=this,t=this.context.registry.get(v.SourcesApiExportNames.SourceEventBus),i=this.context.registry.get(v.SourceExportNames.SourceState).playback,a=this.context.registry.get(v.PlaybackApiEventsPackageExportNames.PlaybackEvent);t.on(a.Ready,(function(){e.eventCallback(s.Event.SOURCE_LOADED,{currentTime:i.playhead.position})})),t.on(a.Play,(function(){e.eventCallback(s.Event.PLAY,{currentTime:i.playhead.position})})),t.on(a.Playing,(function(){e.eventCallback(s.Event.PLAYING,{currentTime:i.playhead.position})})),t.on(a.Paused,(function(){e.eventCallback(s.Event.PAUSE,{currentTime:i.playhead.position})})),t.on(a.TimeChanged,(function(){e.eventCallback(s.Event.TIMECHANGED,{currentTime:i.playhead.position})})),t.on(a.VideoAttached,(function(){e.eventCallback(s.Event.SOURCE_LOADED,{currentTime:i.playhead.position})})),t.on(a.Ended,(function(){e.eventCallback(s.Event.END,{currentTime:i.playhead.position})}));var n=function(){var t=e.context.abortSignal.reason;"SourceRemovedError"===t.name||"FrameworkDisposedError"===t.name?e.eventCallback(s.Event.SOURCE_UNLOADED,{currentTime:i.playhead.position}):e.eventCallback(s.Event.ERROR,{currentTime:i.playhead.position,code:1007,message:t.message,data:t,originalError:t}),e.context.abortSignal.removeEventListener("abort",n)};this.context.abortSignal.addEventListener("abort",n)},t}(h.InternalAdapter);t.BitmovinPwxInternalAdapter=f},7299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourcesApiExportNames=t.SourceExportNames=t.PlaybackApiEventsPackageExportNames=t.CoreExportNames=t.BundleExportNames=void 0;t.BundleExportNames={Logger:"logger",PlayerConfig:"player-config"};t.CoreExportNames={Utils:"utils",Constants:"constants",CoreEffects:"core-effects",CoreStateAtoms:"core-state-atoms"};t.PlaybackApiEventsPackageExportNames={PlaybackEvent:"playback-event"};t.SourceExportNames={CreateSourceStateAtom:"create-source-state-atom",CreateSourceReference:"create-source-reference",SourceReferences:"source-references",SourceState:"source-state-atom"};t.SourcesApiExportNames={SourceApiManager:"source-api-manager",VideoElementUtils:"video-element-utils",SourceEventBus:"source-event-bus"}},2647:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.InternalAdapter=void 0;var n=i(675),r=i(9796),o=i(4916),s=i(4300),u=i(2361),c=i(4820),l=i(9422),d=i(1916),p=i(5063),h=i(2376),m=function(){function e(e){this.onLicenseKeyReceived=new n.EventDispatcher,this.onLicenseCallFailed=new n.EventDispatcher,this.qualityChangeService=new r.default,this.ssaiService=new s.SsaiService,this.stateMachineCallbacks=a({},c.defaultStateMachineCallbacks),this.sourceInfoFallbackService=new o.SourceInfoFallbackService,this.drmPerformanceInfo=void 0,this.windowEventTracker=new h.WindowEventTracker,e||(e={starttime:void 0}),e.starttime||(e.starttime=(0,p.getCurrentTimestamp)()),this.opts=e}return e.prototype.release=function(){this.stateMachine.resetIntervals(),this.stateMachineCallbacks.release(),this.resetSourceRelatedState(),this.windowEventTracker.release()},e.prototype.eventCallback=function(e,t,i){void 0===i&&(i=Date.now()),t=t||{},this.stateMachine?this.stateMachine.callEvent(e,t,i):d.logger.log("Bitmovin Analytics: StateMachine isn't ready yet")},e.prototype.getCommonPlaybackInfo=function(){var e=(0,l.getGlobalScreenDimensions)();return{screenHeight:null==e?void 0:e.height,screenWidth:null==e?void 0:e.width}},e.prototype.getDrmPerformanceInfo=function(){},e.prototype.getSegmentInfo=function(){return[]},e.prototype.getDownloadSpeedInfo=function(){return{segmentsDownloadCount:0,segmentsDownloadSize:0,segmentsDownloadTime:0,avgDownloadSpeed:0,minDownloadSpeed:0,maxDownloadSpeed:0,avgTimeToFirstByte:0}},e.prototype.resetDownloadSpeedInfoMeasures=function(){},e.prototype.setCustomData=function(e){var t=this.stateMachine.currentState,i={customDataValues:e,currentTime:this.currentTime};!this.stateMachine.currentState||"PAUSE"!==this.stateMachine.currentState&&"PLAYING"!==this.stateMachine.currentState?this.stateMachineCallbacks.customdatachange(void 0,void 0,i):(this.eventCallback(u.Event.CUSTOM_DATA_CHANGE,{currentTime:this.currentTime}),this.eventCallback(u.Event[t],i))},e.prototype.sourceChange=function(e){this.eventCallback(u.Event.MANUAL_SOURCE_CHANGE,{currentTime:this.currentTime,config:e})},e.prototype.resetSourceRelatedState=function(){this.sourceInfoFallbackService.reset(),this.drmPerformanceInfo=void 0},e.prototype.programChange=function(e){var t=this.ssaiService.isInActiveState();this.stateMachine.programChange(this.currentTime,t,e)},e}();t.InternalAdapter=m},7596:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsStateMachine=void 0;var n=i(7906),r=i(3458),o=i(2361),s=i(1916),u=i(4649),c=i(5063),l=i(5063),d=[3e3,5e3,1e4,3e4,59700],p=function(){function e(e,t,i){this.stateMachineCallbacks=e,this.onEnterStateTimestamp=0,this.videoStartupTimeoutMs=u.ANALYTICS_VIDEOSTART_TIMEOUT,this.rebufferTimeoutMs=u.ANALYTICS_REBUFFER_TIMEOUT,this.currentRebufferingIntervalIndex=0,this.stateMachine=this.createStateMachine(i),this.playingHeartbeatService=t}return e.prototype.callEvent=function(e,t,i){var a=this.stateMachine[e];if(null!=a)try{a.call(this.stateMachine,i,t)}catch(a){s.logger.error('StateMachine ignored event "'.concat(e,'" call, because it has thrown exception in the current state "').concat(this.currentState,'"'),t,i,a)}else s.logger.warn('StateMachine ignored event "'.concat(e,'" call, because it was not defined'),t,i)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this.stateMachine.current},enumerable:!1,configurable:!0}),e.prototype.resetIntervals=function(){this.clearVideoStartTimeout(),this.clearRebufferingTimeoutHandle(!0),this.clearRebufferingHeartbeatHandle()},e.prototype.startRebufferingHeartbeatInterval=function(e){var t=this;void 0===e&&(e=!0),this.resetRebufferingHelpers(e),this.startRebufferingTimeoutHandle(),this.rebufferingHeartbeatIntervalHandle=setInterval((function(){var e=t.stateMachine.current.toLowerCase();if("rebuffering"===e){var i=(new Date).getTime(),a=i-t.onEnterStateTimestamp;t.stateMachineCallbacks.heartbeat(a,e,{buffered:a}),t.onEnterStateTimestamp=i,t.currentRebufferingIntervalIndex=Math.min(t.currentRebufferingIntervalIndex+1,d.length-1),t.startRebufferingHeartbeatInterval(!1)}else t.resetRebufferingHelpers()}),d[this.currentRebufferingIntervalIndex])},e.prototype.resetRebufferingHelpers=function(e){void 0===e&&(e=!0),e&&(this.currentRebufferingIntervalIndex=0),this.clearRebufferingHeartbeatHandle(),this.clearRebufferingTimeoutHandle(e)},e.prototype.clearRebufferingHeartbeatHandle=function(){(0,l.isNotNullish)(this.rebufferingHeartbeatIntervalHandle)&&(clearInterval(this.rebufferingHeartbeatIntervalHandle),this.rebufferingHeartbeatIntervalHandle=void 0)},e.prototype.startRebufferingTimeoutHandle=function(){var e=this;this.currentRebufferingIntervalIndex>0||(this.rebufferingTimeoutHandle=setTimeout((function(){e.callEvent(o.Event.ERROR,a(a({},r.ErrorCode.BUFFERING_TIMEOUT_REACHED),{data:{additionalData:"StateMachine timed out after ".concat(e.rebufferTimeoutMs," ms of consecutive buffering.")}}),c.getCurrentTimestamp()),e.stateMachineCallbacks.release()}),this.rebufferTimeoutMs))},e.prototype.clearRebufferingTimeoutHandle=function(e){e&&(0,l.isNotNullish)(this.rebufferingTimeoutHandle)&&(clearTimeout(this.rebufferingTimeoutHandle),this.rebufferingTimeoutHandle=void 0)},e.prototype.setVideoStartTimeout=function(){var e=this;(0,l.isNotNullish)(this.videoStartTimeout)&&this.clearVideoStartTimeout(),this.videoStartTimeout=setTimeout((function(){e.callEvent(o.Event.VIDEOSTART_TIMEOUT,{},Date.now()),e.stateMachineCallbacks.release()}),this.videoStartupTimeoutMs)},e.prototype.clearVideoStartTimeout=function(){clearTimeout(this.videoStartTimeout),this.videoStartTimeout=void 0},e.prototype.onHeartbeat=function(e){this.sendPlayingSample(Date.now(),e)},e.prototype.sendPlayingSample=function(e,t,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1);var r=this.stateMachine.current.toLowerCase();if("playing"===r){this.stateMachineCallbacks.setVideoTimeEndFromEvent({currentTime:t});var o=e-this.onEnterStateTimestamp,u={played:o,isProgramChange:!!a||void 0};i&&(u[n.SSAI_RELATED_SAMPLE_MARKER]=!0),this.stateMachineCallbacks.heartbeat(o,r,u),this.resetCurrentStateStart(e,t)}else s.logger.warn('Unexpected call of "sendPlayingSample" in AnalyticsStateMachine from "'.concat(r,'" state'))},e.prototype.resetCurrentStateStart=function(e,t){this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent({currentTime:t})},e.prototype.programChange=function(e,t,i){if("SETUP"!==this.stateMachine.current&&"READY"!==this.stateMachine.current&&"STARTUP"!==this.stateMachine.current&&"STARTUP_AUTOPLAY"!==this.stateMachine.current){var a=Date.now();"PLAYING"===this.stateMachine.current?this.sendPlayingSample(a,e,t,!0):this.resetCurrentStateStart(a,e),this.stateMachineCallbacks.programChange(i)}else this.stateMachineCallbacks.updateSourceMetadata(i)},e}();t.AnalyticsStateMachine=p},8253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logStateMachineTransition=t.logMissingCallbackWarning=t.customStateMachineErrorCallback=t.whileIn=t.on=void 0,t.getAllStates=s,t.getAllStatesBut=function(e,t){return s(t).filter((function(t){return e.indexOf(t)<0}))};var a=i(2595),n=i(1916),r=i(2974),o=i(5063);t.on=function(e){return{stayIn:function(t){return{name:e,from:t,to:t}}}};t.whileIn=function(e){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.map((function(t){return{name:t,from:e,to:e}}))};return{runEventCallbacksFor:t,passOver:t}};t.customStateMachineErrorCallback=function(e,t,i,r,s,u,c){var l='StateMachine ignored event "'.concat(e,'", ').concat(u),d={eventName:e,from:t,to:i,args:(0,o.tryJSONStringify)(r),errorCode:s,errorMessage:u};s!==a.Error.INVALID_TRANSITION?n.logger.error(l,d):n.logger.log(l,d)};t.logMissingCallbackWarning=function(e,t){(void 0===t&&(t=[]),(0,o.isNullish)(e))||(0,o.isNullish)(t.find((function(t){return e===t})))&&n.logger.warn("Could not find StateMachine callback function for "+e)};function s(e){return(0,r.objectValues)(e)}t.logStateMachineTransition=function(e,t,i,a){"ENTER"===e?n.logger.log("[ENTER] ".concat((0,n.padRight)(a,20)," EVENT: ").concat((0,n.padRight)(t,20)," from ").concat((0,n.padRight)(i,20))):n.logger.log("[LEAVE] ".concat((0,n.padRight)(i,20)," EVENT: ").concat((0,n.padRight)(t,20)," to ").concat((0,n.padRight)(a,20)))}},8917:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdAnalytics=void 0;var n,r=i(5791),o=i(7232),s=i(4439),u=i(1916),c=i(5063),l=i(5063),d=i(2982),p=i(4926),h=i(3612);!function(e){e.FIRST_QUARTILE="firstQuartile",e.MIDPOINT="midpoint",e.THIRD_QUARTILE="thirdQuartile"}(n||(n={}));var m=function(){function e(e,t){var i=this;this.onBeforeUnLoadEvent=!1,this.adManifestLoadedEvents=[],this.isPlaying=!1,this.adPodPosition=0,this.analytics=e,this.adapter=t,this.adapter.adCallbacks.onAdStarted=function(e){return i.onAdStarted(e)},this.adapter.adCallbacks.onAdFinished=function(e){return i.onAdFinished(e)},this.adapter.adCallbacks.onAdBreakStarted=function(e){return i.onAdBreakStarted(e)},this.adapter.adCallbacks.onAdBreakFinished=function(e){return i.onAdBreakFinished(e)},this.adapter.adCallbacks.onAdClicked=function(e){return i.onAdClicked(e)},this.adapter.adCallbacks.onAdError=function(e){return i.onAdError(e)},this.adapter.adCallbacks.onAdManifestLoaded=function(e){return i.onAdManifestLoaded(e)},this.adapter.adCallbacks.onPlay=function(){return i.onPlay()},this.adapter.adCallbacks.onPause=function(){return i.onPause()},this.adapter.adCallbacks.onBeforeUnload=function(){return i.onBeforeUnload()},this.adapter.adCallbacks.onAdSkipped=function(e){return i.onAdSkipped(e)},this.adapter.adCallbacks.onAdQuartile=function(e){return i.onAdQuartile(e)},this.viewportTracker=new h.ViewportTracker(this.adapter.getContainer(),(function(){return i.onIntersectionChanged()}),.5)}return e.prototype.release=function(){this.clearCurrentTimeInterval(),this.viewportTracker.dispose()},e.prototype.onIntersectionChanged=function(){this.activeAdSample&&(this.isContainerInViewport()?this.enterViewportTimestamp=c.getCurrentTimestamp():this.enterViewportTimestamp&&(this.activeAdSample.timeInViewport=(this.activeAdSample.timeInViewport||0)+c.getCurrentTimestamp()-this.enterViewportTimestamp))},e.prototype.isContainerInViewport=function(){return!this.viewportTracker||this.viewportTracker.isInViewport()},e.prototype.onPlay=function(){if(this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample){var e=c.getCurrentTimestamp();this.beginPlayingTimestamp=e,this.enterViewportTimestamp=e,this.isPlaying=!0}},e.prototype.onPause=function(){this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample&&(this.updatePlayingTime(this.activeAdSample),this.isPlaying=!1)},e.prototype.onAdManifestLoaded=function(e){var t=e.adConfig;t&&t.tag&&"vmap"===t.tag.type?this.sendAnalyticsRequest(new o.AdBreakSample(e.adConfig,e)):e.adBreak&&this.adManifestLoadedEvents.push(e)},e.prototype.onAdBreakStarted=function(e){this.adPodPosition=0,this.activeAdBreakSample=new o.AdBreakSample(e.adBreak,this.getAdManifestLoadedEvent(e.adBreak)),this.adStartupTimestamp=c.getCurrentTimestamp()},e.prototype.onAdBreakFinished=function(e){this.resetActiveAd(),this.activeAdBreakSample=void 0},e.prototype.onAdStarted=function(e){e.ad.isLinear&&(this.resetActiveAd(),this.activeAdSample=new s.AdSample(e.ad),this.currentTime=void 0,this.activeAdSample.adStartupTime=this.adStartupTimestamp?c.getCurrentTimestamp()-this.adStartupTimestamp:void 0,this.startAd(this.activeAdSample))},e.prototype.onAdFinished=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=a({},this.activeAdSample);t.completed=1,this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.adDuration)}},e.prototype.onAdSkipped=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=a({},this.activeAdSample);t.skipped=1,t.skipPosition=this.currentTime,t.skipPercentage=c.calculatePercentage(this.activeAdSample.skipPosition,this.activeAdSample.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.skipPosition)}},e.prototype.onAdError=function(e){var t,i,a=this,n=e.data||{adBreak:void 0,adConfig:void 0,code:void 0,message:void 0},r=n.adConfig,s=n.adBreak,u=n.code,d=n.message,p=new o.AdBreakSample(s||r,s?this.getAdManifestLoadedEvent(s):void 0),h=this.analytics.transformError({code:u||e.code,message:d||e.name,severity:"CRITICAL"},e);p.errorCode=h.code,p.errorData=(0,l.tryJSONStringify)(e.data),p.errorMessage=h.message,p.errorSeverity=h.severity,this.activeAdSample&&s&&s.ads&&s.ads.includes((function(e){return e.id===a.activeAdSample.adId}))&&(i=(t=this.activeAdSample).errorPosition=this.currentTime,t.errorPercentage=c.calculatePercentage(t.errorPosition,t.adDuration)),this.completeAd(p,t,i)},e.prototype.onAdClicked=function(e){this.activeAdSample&&(this.activeAdSample.adClickthroughUrl=e.clickThroughUrl,this.activeAdSample.clicked=1,this.activeAdSample.clickPosition=this.currentTime,this.activeAdSample.clickPercentage=c.calculatePercentage(this.activeAdSample.clickPosition,this.activeAdSample.adDuration))},e.prototype.onAdQuartile=function(e){this.activeAdSample&&(e.quartile===n.FIRST_QUARTILE?this.activeAdSample.quartile1=1:e.quartile===n.MIDPOINT?this.activeAdSample.midpoint=1:e.quartile===n.THIRD_QUARTILE&&(this.activeAdSample.quartile3=1))},e.prototype.onBeforeUnload=function(){if(!this.onBeforeUnLoadEvent&&(this.onBeforeUnLoadEvent=!0,this.activeAdSample&&this.activeAdBreakSample)){var e=a({},this.activeAdSample);e.closed=1,e.closePosition=this.currentTime,e.closePercentage=c.calculatePercentage(e.closePosition,e.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,e,e.closePosition)}},e.prototype.createNewAdAnalyticsSample=function(e){var t=this.adapter.getAdModuleInfo();return a(a({},new r.AdAnalyticsSample(e)),{analyticsVersion:p.VERSION,adModule:t.name,adModuleVersion:t.version,autoplay:this.adapter.getAutoPlay(),pageLoadType:c.getPageLoadType()})},e.prototype.getAdManifestLoadedEvent=function(e){if(e)return this.adManifestLoadedEvents.find((function(t){return t.adBreak&&t.adBreak.id===e.id}))},e.prototype.sendAnalyticsRequest=function(e,t){var i=a(a(a({},this.createNewAdAnalyticsSample(this.analytics.sample)),e),t||new s.AdSample);i.time=c.getCurrentTimestamp(),i.adImpressionId=(0,d.generateUUID)(),i.percentageInViewport=c.calculatePercentage(i.timeInViewport,i.timePlayed),this.analytics.backend.sendAdRequest(i)},e.prototype.updatePlayingTime=function(e){var t=c.getCurrentTimestamp();this.beginPlayingTimestamp&&this.isPlaying&&(void 0!==e.timePlayed&&(e.timePlayed+=t-this.beginPlayingTimestamp),this.isContainerInViewport()&&this.enterViewportTimestamp&&void 0!==e.timeInViewport&&(e.timeInViewport+=t-this.enterViewportTimestamp))},e.prototype.startAd=function(t){var i=this;t.started=1,t.timePlayed=0,t.timeInViewport=0,t.adPodPosition=this.adPodPosition;var a=c.getCurrentTimestamp();this.beginPlayingTimestamp=a,this.enterViewportTimestamp=this.isContainerInViewport()?a:void 0,this.isPlaying=!0,this.currentTime=0,this.adPodPosition++,this.currentTimeInterval=setInterval((function(){try{t&&void 0!==t.adDuration&&t.adDuration>0&&i.adapter.isLinearAdActive()&&(i.currentTime=c.calculateTime(Math.max(i.adapter.currentTime(),0)))}catch(e){u.logger.log("AdStarted monitoring interval failed and got cleared",e),i.resetActiveAd()}}),e.TIMEOUT_CURRENT_TIME_INTERVAL)},e.prototype.completeAd=function(e,t,i){void 0===t&&(t=new s.AdSample),t.exitPosition=i,t.playPercentage=c.calculatePercentage(t.exitPosition,t.adDuration),this.adStartupTimestamp=c.getCurrentTimestamp(),this.updatePlayingTime(t),this.isPlaying=!1,this.sendAnalyticsRequest(e,t)},e.prototype.resetActiveAd=function(){this.clearCurrentTimeInterval(),this.activeAdSample=void 0},e.prototype.clearCurrentTimeInterval=function(){clearInterval(this.currentTimeInterval),delete this.currentTime},e.MODULE_NAME="ads",e.TIMEOUT_CURRENT_TIME_INTERVAL=100,e}();t.AdAnalytics=m},4350:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Analytics=void 0,t.setQualityInfoOnSample=M;var n=i(3588),r=i(3458),o=i(8525),s=i(3565),u=i(6845),c=i(5529),l=i(8331),d=i(404),p=i(5923),h=i(9422),m=i(1916),v=i(1460),f=i(6481),g=i(1820),y=i(5063),S=i(5063),E=i(2982),A=i(4926),b=i(8421),D=i(8917),T=i(3054),I=i(675),C=i(7721),N=i(2226),_=i(847),R=i(8918),P=i(7906),k=function(){function e(e,t,i,n,r,o,s){var u=this;this.adapter=t,this.backendFactory=i,this.sessionHandler=n,this.featureManager=r,this.onErrorDetailEventDispatcher=o,this.identicalErrorReportingLimiter=s,this.hasSentStartupSample=!1,this.droppedSampleFrames=0,this.playerStartupTime=0,this.authenticationCallback={authenticationCompleted:function(e,t){u.featureManager.configureFeatures(e,t)}},this.sourceChange=function(e){if(m.logger.log("Processing Source Change for Analytics",e),(0,S.isNullish)(e))u.adapter.sourceChange(u.config);else{(0,l.guardConfigChangeAgainstMissingTitle)(u.config,e),(0,l.guardConfigChangeAgainstMissingIsLive)(u.config,e),(0,l.guardAgainstDuplicatedUserId)(e);var t=(0,l.mergeAnalyticsConfig)(u.config,e);u.adapter.sourceChange(t)}},this.setCustomDataOnce=function(e){var t=a({},u.config);u.setState("customdatachange"),u.sendSample(e),u.config=a({},t),u.setConfigParameters(),u.setAutoDetectedDeviceInformation()},this.setCustomData=function(e){u.adapter.setCustomData(e)},this.getCurrentImpressionId=function(){return u.sample.impressionId},this.getUserId=function(){return u.sessionHandler.userId},this.changeCustomData=function(e){u.config=a(a({},u.config),(0,c.extractCustomDataFieldsOnly)(e)),u.setConfigParameters(),u.setAutoDetectedDeviceInformation()},this.config=e,this.sessionHandler=new _.SessionPersistenceHandler(this.config);var d=this;this.errorDetailTrackingSettingsProvider={get domain(){return(0,l.getDomainFromAnalyticsConfig)(d.config)},get licenseKey(){var e;return null!==(e=d.config.key)&&void 0!==e?e:""},get impressionId(){var e;return null!==(e=d.getCurrentImpressionId())&&void 0!==e?e:""},get collectorConfig(){return d.config.config}};var p=this.adapter.onLicenseKeyReceived.subscribe((function(e){u.config.key||(u.config.key=e.licenseKey),p()}));this.sample=this.buildInitialSample(),this.droppedSampleFrames=0,this.init(),this.setupStateMachineCallbacks();var h=this.adapter.initialize(this);this.featureManager.registerFeatures(h),this.adapter.adModule&&(this.adAnalytics=new D.AdAnalytics(this,this.adapter.adModule))}return Object.defineProperty(e.prototype,"version",{get:function(){return A.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorDetailSubscribable",{get:function(){return this.onErrorDetailEventDispatcher},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!0===this.adapter.supportsDeferredLicenseLoading||(0,g.isValidString)(this.config.key)&&!(0,g.isBlank)(this.config.key)){m.logger.initialize(this.config.debug),this.featureManager.resetFeatures();var e=(0,l.getDomainFromAnalyticsConfig)(this.config);this.backend=this.backendFactory.createBackend(this.config,{key:this.config.key,domain:e,version:A.VERSION},this.adapter,this.authenticationCallback),this.hasSentStartupSample=!1,this.identicalErrorReportingLimiter.reset(),this.setConfigParameters(),this.setAutoDetectedDeviceInformation(),this.sample.impressionId=(0,E.generateUUID)(),this.sample.userId=this.sessionHandler.userId,this.adapter.videoCompletionTracker&&this.adapter.videoCompletionTracker.reset(),this.adapter.qualityChangeService.resetValues(),this.adapter.ssaiService.resetSourceRelatedState()}else m.logger.errorMessageToUser("Invalid analytics license key provided")},e.prototype.setConfigParameters=function(){var e;this.sample.key=this.config.key,this.sample.playerKey=this.config.playerKey,this.config.player&&(this.sample.player=this.config.player),this.sample.domain=(0,l.getDomainFromAnalyticsConfig)(this.config),this.sample.deviceInformation=(0,l.getDeviceInformationFromAnalyticsConfig)(this.config),this.sample.isLive=!!(0,S.isNotNullish)(this.config.isLive)&&this.config.isLive,this.sample.cdnProvider=this.config.cdnProvider,this.sample.videoId=this.config.videoId,this.sample.videoTitle=this.config.title,this.sample.customUserId=null!==(e=this.config.userId)&&void 0!==e?e:this.config.customUserId,y.transferCustomDataFields(this.config,this.sample),this.sample.experimentName=this.config.experimentName},e.prototype.setAutoDetectedDeviceInformation=function(){var e,t;if(!(0,S.isNotNullish)(null===(e=this.sample.deviceInformation)||void 0===e?void 0:e.model)&&(0,h.hasGlobalWebOSApi)()){var i=(0,b.getWebOSTVModelName)();(0,S.isNullish)(i)||(this.sample.deviceInformation=null!==(t=this.sample.deviceInformation)&&void 0!==t?t:{},this.sample.deviceInformation.model=i)}},e.prototype.setupStateMachineCallbacks=function(){var e=this;this.adapter.stateMachineCallbacks.setup=function(t,i){var a,n;m.logger.log("Setup bitmovin analytics "+e.sample.analyticsVersion+" with impressionId: "+e.sample.impressionId),e.setDuration(t),e.setState(i),e.sample.playerStartupTime=t,e.playerStartupTime=e.sample.playerStartupTime;var r=null===(n=null===(a=p.globalScope.performance)||void 0===a?void 0:a.timing)||void 0===n?void 0:n.navigationStart;if((0,S.isNotNullish)(r)&&(0,v.isFiniteNumber)(r)){var o=Math.round(Date.now()-p.globalScope.performance.timing.navigationStart);e.sample.pageLoadTime=o}e.sendSample()},this.adapter.stateMachineCallbacks.startup=function(t,i){e.setState(i),e.sample.supportedVideoCodecs=d.CodecHelper.supportedVideoFormats;var a=Math.max(t,1);e.setDuration(a),e.sample.videoStartupTime=a,e.sample.startupTime=(e.playerStartupTime||0)+a,e.sample.autoplay=e.adapter.getAutoPlay();var n=e.adapter.getDrmPerformanceInfo();(0,S.isNotNullish)(n)&&(e.sample.drmType=n.drmType,e.sample.drmLoadTime=n.drmLoadTime);var r=e.adapter.getCurrentPlaybackInfo(),o=r.videoBitrate,s=r.audioBitrate;e.adapter.qualityChangeService.setStartupHasFinished(o,s),e.hasSentStartupSample=!0,e.sendSample()},this.adapter.stateMachineCallbacks.programChange=function(t){e.playerStartupTime=0,e.config=(0,l.applySourceMetadataToAnalyticsConfig)(e.config,t),e.sample=e.buildInitialSample(),e.sample.path=(0,g.isValidString)(t.path)?t.path:(0,f.getDefaultSamplePath)(),e.init(),e.setState("programchange"),e.sample.isProgramChange=!0,e.sample.supportedVideoCodecs=d.CodecHelper.supportedVideoFormats;e.setDuration(1),e.sample.videoStartupTime=1,e.sample.startupTime=1,e.sample.autoplay=e.adapter.getAutoPlay(),e.sample.drmType=void 0,e.sample.drmLoadTime=void 0;var i=e.adapter.getCurrentPlaybackInfo(),a=i.videoBitrate,n=i.audioBitrate;e.adapter.qualityChangeService.setStartupHasFinished(a,n),e.hasSentStartupSample=!0,e.sendSample()},this.adapter.stateMachineCallbacks.updateSourceMetadata=function(t){e.config=(0,l.applySourceMetadataToAnalyticsConfig)(e.config,t),e.setConfigParameters(),e.setAutoDetectedDeviceInformation(),e.sample.path=(0,g.isValidString)(t.path)?t.path:(0,f.getDefaultSamplePath)()},this.adapter.stateMachineCallbacks.playing=function(t,i){e.setDuration(t),e.setState(i),e.sample.played=t,e.setCompletionValues(),e.sendSample()},this.adapter.stateMachineCallbacks.unload=function(t,i){var a=e.sample.videoTimeStart;"playing"===i&&(e.setDuration(t),e.setState(i),e.sample.played=t,e.setCompletionValues(),(0,v.isNumber)(e.sample.videoTimeEnd)&&(a=e.sample.videoTimeEnd),e.backend.sendUnloadRequest(e.sample),(0,f.clearSampleStateValues)(e.sample)),e.hasSentStartupSample&&(e.setVideoTimeStart(a),e.setVideoTimeEnd(a),e.setState("closed"),e.backend.sendUnloadRequest(e.sample),(0,f.clearSampleStateValues)(e.sample))},this.adapter.stateMachineCallbacks.heartbeat=function(t,i,n){e.setState(i),e.setDuration(t),e.sample=a(a({},e.sample),n),"playing"===i&&e.setCompletionValues(),e.sendSample()},this.adapter.stateMachineCallbacks.qualitychange=function(t){e.adapter.qualityChangeService.startResetInterval(),e.adapter.qualityChangeService.increaseCounter(),e.adapter.qualityChangeService.hasExceededQualityChangeThreshold()?e.adapter.stateMachineCallbacks.error({code:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.code,message:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.message,errorSeverity:r.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.errorSeverity,legacyData:void 0,data:{},currentTime:t.currentTime}):(e.setState("qualitychange"),e.setDuration(0),e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.adapter.stateMachineCallbacks.updateSampleQualityInfo(t),e.sendSample())},this.adapter.stateMachineCallbacks.updateSampleQualityInfo=function(t){"audio"===t.type?((0,v.isNumber)(t.bitrate)&&(e.sample.audioBitrate=t.bitrate),(0,g.isValidString)(t.codec)&&(e.sample.audioCodec=t.codec)):"video"===t.type&&((0,v.isNumber)(t.bitrate)&&(e.sample.videoBitrate=t.bitrate),(0,g.isValidString)(t.codec)&&(e.sample.videoCodec=t.codec),(0,v.isNumber)(t.height)&&(e.sample.videoPlaybackHeight=t.height),(0,v.isNumber)(t.width)&&(e.sample.videoPlaybackWidth=t.width))},this.adapter.stateMachineCallbacks.audiotrack_changing=function(){e.sendSample()},this.adapter.stateMachineCallbacks.pause=function(t,i){e.setDuration(t),e.setState(i),e.sample.paused=t,e.sendSample()},this.adapter.stateMachineCallbacks.seeking=function(t){e.setDuration(t),e.setState("seeking"),e.sample.seeked=t,e.sendSample()},this.adapter.stateMachineCallbacks.rebuffering=function(t,i){e.setDuration(t),e.setState(i),e.sample.buffered=t,e.sendSample()},this.adapter.stateMachineCallbacks.videoStartFailed=function(t,i){e.setState("startup"),e.sample.videoStartFailed=!0,e.sample.videoStartFailedReason=i,e.sample.duration=t,i!==s.VideoStartFailedReason.PLAYER_ERROR&&(i===s.VideoStartFailedReason.TIMEOUT&&(e.sample.errorCode=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.code,e.sample.errorMessage=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.message,e.sample.errorSeverity=r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.errorSeverity,e.onErrorDetailEventDispatcher.dispatch({code:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.code,message:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.message,severity:r.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.errorSeverity})),e.sendSample())},this.adapter.stateMachineCallbacks.error=function(t){var i,a=e.transformError({code:t.code,message:t.message,severity:null!==(i=t.errorSeverity)&&void 0!==i?i:"CRITICAL"},t.originalError);!a.code||e.identicalErrorReportingLimiter.shouldReportError(a.code,a.severity)?(e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.setState("error"),e.setDuration(0),e.sample.errorCode=a.code,e.sample.errorMessage=a.message,e.sample.errorSeverity=a.severity,e.sample.errorData=(0,S.tryJSONStringify)(t.legacyData),e.sample.errorSegments=e.adapter.getSegmentInfo().map((function(e){return e.name})),e.adapter.onError&&e.adapter.onError(),e.onErrorDetailEventDispatcher.dispatch({code:a.code,message:a.message,severity:a.severity,errorData:t.data}),e.sendSample()):m.logger.log("Bitmovin Analytics: Processing of the error with code ".concat(a.code," was ignored because the error limit was exceeded."))},this.adapter.stateMachineCallbacks.ad=function(t,i){e.setDuration(t),e.setState(i),e.sample.ad=n.AD_TYPE.CSAI,e.sendSample()},this.adapter.stateMachineCallbacks.mute=function(){e.sample.isMuted=!0},this.adapter.stateMachineCallbacks.unMute=function(){e.sample.isMuted=!1},this.adapter.stateMachineCallbacks.subtitle_changing=function(){e.sendSample()},this.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent=function(t){(0,v.isNumber)(null==t?void 0:t.currentTime)&&e.setVideoTimeEnd(y.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent=function(t){(0,v.isNumber)(null==t?void 0:t.currentTime)&&e.setVideoTimeStart(y.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.manualSourceChange=function(t){e.adapter.resetSourceRelatedState(),e.sample=e.buildInitialSample(),e.droppedSampleFrames=0,e.playerStartupTime=0,e.config=Object.keys(t.config).length>0?t.config:e.config,e.init()},this.adapter.stateMachineCallbacks.initialSourceChange=function(t){e.config=t.config,e.setConfigParameters(),e.setAutoDetectedDeviceInformation()},this.adapter.stateMachineCallbacks.end=function(){e.sample=e.buildInitialSample(),e.droppedSampleFrames=0,e.playerStartupTime=0,e.init()},this.adapter.stateMachineCallbacks.release=function(){var t;e.backend=new N.NoOpBackend,null===(t=e.adAnalytics)||void 0===t||t.release(),e.adapter.qualityChangeService.stopResetInterval(),e.identicalErrorReportingLimiter.reset()},this.adapter.stateMachineCallbacks.customdatachange=function(t,i,a){(0,S.isNotNullish)(null==a?void 0:a.customDataValues)&&e.changeCustomData(a.customDataValues)}},e.prototype.setDuration=function(e){this.sample.duration=e},e.prototype.setState=function(e){this.sample.state=e},e.prototype.setPlaybackInfoFromAdapter=function(){var e=this.adapter.getCurrentPlaybackInfo();e&&(this.sample.isLive=(0,S.isNotNullish)(this.config.isLive)?this.config.isLive:e.isLive,(0,S.isNullish)(this.sample.isLive)&&(this.sample.isLive=!1),(0,g.isValidString)(e.size)&&(this.sample.size=e.size),(0,g.isValidString)(e.playerTech)&&(this.sample.playerTech=e.playerTech),(0,v.isNumber)(e.videoDuration)&&(this.sample.videoDuration=y.calculateTime(e.videoDuration||0)),(0,g.isValidString)(e.streamFormat)&&(this.sample.streamFormat=e.streamFormat),(0,g.isValidString)(e.mpdUrl)&&(this.sample.mpdUrl=e.mpdUrl),(0,g.isValidString)(e.m3u8Url)&&(this.sample.m3u8Url=e.m3u8Url),(0,g.isValidString)(e.progUrl)&&(this.sample.progUrl=e.progUrl),(0,v.isNumber)(e.videoWindowWidth)&&(this.sample.videoWindowWidth=e.videoWindowWidth),(0,v.isNumber)(e.videoWindowHeight)&&(this.sample.videoWindowHeight=e.videoWindowHeight),(0,v.isNumber)(e.screenHeight)&&(this.sample.screenHeight=e.screenHeight),(0,v.isNumber)(e.screenWidth)&&(this.sample.screenWidth=e.screenWidth),y.isBoolean(e.isMuted)&&(this.sample.isMuted=e.isMuted),y.isBoolean(e.isCasting)&&(this.sample.isCasting=e.isCasting),(0,g.isValidString)(e.castTech)&&(this.sample.castTech=e.castTech),(0,g.isValidString)(e.videoTitle)&&!this.config.title&&(this.sample.videoTitle=e.videoTitle),(0,g.isValidString)(e.audioCodec)&&(this.sample.audioCodec=e.audioCodec),(0,g.isValidString)(e.videoCodec)&&(this.sample.videoCodec=e.videoCodec),(0,g.isValidString)(e.audioLanguage)&&(this.sample.audioLanguage=e.audioLanguage),y.isBoolean(e.subtitleEnabled)&&(this.sample.subtitleEnabled=e.subtitleEnabled),(0,g.isValidString)(e.subtitleLanguage)?this.sample.subtitleLanguage=e.subtitleLanguage:this.sample.subtitleLanguage=void 0,(0,v.isNumber)(e.droppedFrames)&&(this.sample.droppedFrames=Math.max(e.droppedFrames-this.droppedSampleFrames,0),this.droppedSampleFrames=e.droppedFrames))},e.prototype.sendSample=function(e){if(this.setPlaybackInfoFromAdapter(),this.sample.time=y.getCurrentTimestamp(),this.sample.downloadSpeedInfo=this.adapter.getDownloadSpeedInfo(),this.adapter.resetDownloadSpeedInfoMeasures(),this.adapter.ssaiService.manipulate(this.sample),null!=e&&this.changeCustomData(e),(0,S.isNullish)(this.sample.videoBitrate)||this.sample.videoBitrate<=0){M(this.sample,this.adapter.getCurrentPlaybackInfo());var t=a({},this.sample);this.backend.sendRequest(t)}else{t=a({},this.sample);this.backend.sendRequest(t),M(this.sample,this.adapter.getCurrentPlaybackInfo())}(0,f.clearSampleStateValues)(this.sample)},e.prototype.sendSsaiEngagementAdSample=function(e){var t;if(!0===(null===(t=this.config.config)||void 0===t?void 0:t.ssaiEngagementTrackingEnabled))if((0,R.isSsaiEngagementStartedData)(e)){var i=(0,P.createStartedAdSample)(this.sample,e);this.backend.sendAdRequest(i)}else if((0,R.isSsaiEngagementQuartileData)(e)){i=(0,P.createQuartileAdSample)(this.sample,e);this.backend.sendAdRequest(i)}else if((0,R.isSsaiEngagementErrorData)(e)){e.analyticsError=this.transformError(e.analyticsError,e.originalError);var a=(0,P.createErrorAdSample)(this.sample,e);this.backend.sendAdRequest(a)}else;},e.prototype.setCompletionValues=function(){if(this.adapter.videoCompletionTracker){var e=this.adapter.videoCompletionTracker.addWatched({start:this.sample.videoTimeStart,end:this.sample.videoTimeEnd}),t=this.adapter.videoCompletionTracker.getCompletionPercentage();Number.isNaN(e)||Number.isNaN(t)||(this.sample.completed=e,this.sample.completedTotal=t)}},e.prototype.setVideoTimeStart=function(e){this.sample.videoTimeStart=e},e.prototype.setVideoTimeEnd=function(e){this.sample.videoTimeEnd=e},e.prototype.transformError=function(e,t){var i,a,n={code:e.code,message:e.message,severity:e.severity};try{var r=null===(a=null===(i=this.config.config)||void 0===i?void 0:i.errorTransformerCallback)||void 0===a?void 0:a.transform(n,{originalError:t});n.code=(0,v.isNumber)(null==r?void 0:r.code)?null==r?void 0:r.code:n.code,n.message=(0,g.isValidString)(null==r?void 0:r.message)?null==r?void 0:r.message:n.message,n.severity=(0,g.isValidString)(null==r?void 0:r.severity)&&(0,S.isErrorSeverity)(null==r?void 0:r.severity)?r.severity:n.severity}catch(e){m.logger.error("Error in errorTransformerCallback",e)}return n},e.prototype.buildInitialSample=function(){var e,t=this.config.player||this.adapter.getPlayerName(),i=(0,h.getGlobalScreenDimensions)();return{ad:0,analyticsVersion:A.VERSION,audioBitrate:0,buffered:0,completedTotal:0,droppedFrames:0,duration:0,isLive:null!==(e=this.config.isLive)&&void 0!==e&&e,language:(0,h.getGlobalNavigatorLanguage)(),pageLoadTime:0,pageLoadType:y.getPageLoadType(),path:(0,f.getDefaultSamplePath)(),paused:0,platform:"web",played:0,player:t,playerStartupTime:0,playerTech:this.adapter.getPlayerTech(),screenHeight:null==i?void 0:i.height,screenWidth:null==i?void 0:i.width,seeked:0,size:o.PlayerSize.Window,startupTime:0,time:0,userAgent:(0,h.getGlobalNavigatorUserAgent)(),version:t+"-"+this.adapter.getPlayerVersion(),videoBitrate:0,videoDuration:0,videoPlaybackHeight:0,videoPlaybackWidth:0,videoStartupTime:0,videoTimeEnd:0,videoTimeStart:0,videoWindowHeight:0,videoWindowWidth:0}},e.create=function(t,i){return new e(t,i,new T.BackendFactory,new _.SessionPersistenceHandler(t),new u.FeatureManager,new I.EventDispatcher,new C.IdenticalErrorReportingLimiter)},e.version=A.VERSION,e}();function M(e,t){(0,v.isNumber)(t.videoPlaybackHeight)&&(e.videoPlaybackHeight=t.videoPlaybackHeight),(0,v.isNumber)(t.videoPlaybackWidth)&&(e.videoPlaybackWidth=t.videoPlaybackWidth),(0,v.isNumber)(t.videoBitrate)&&(e.videoBitrate=t.videoBitrate),(0,v.isNumber)(t.audioBitrate)&&(e.audioBitrate=t.audioBitrate)}t.Analytics=k},3054:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackendFactory=void 0;var a=i(5253),n=i(4649),r=i(7540),o=i(3489),s=i(399),u=i(2226),c=i(7390),l=function(){function e(){}return e.prototype.createBackend=function(e,t,i,a){if(!this.isEnabled(e))return new u.NoOpBackend;var n=this.createInnerBackend(e,t,i,a);return this.decorateWithDebuggingBackend(e,n)},e.prototype.decorateWithDebuggingBackend=function(e,t){return e.debug?new r.DebuggingBackend(e,t):t},e.prototype.decorateWithBackendFromConfigIfAvailable=function(e,t){return void 0!==e&&void 0!==e.config&&void 0!==e.config.wrapBackend?e.config.wrapBackend(t):t},e.prototype.isEnabled=function(e){return void 0===e.config||!1!==e.config.enabled},e.prototype.createInnerBackend=function(e,t,i,r){var u=e.config&&e.config.backendUrl||n.ANALYTICS_BACKEND_BASE_URL,l=new o.LicenseCheckingBackend(t,a.LicenseCall,u,i,r);l=this.decorateWithBackendFromConfigIfAvailable(e,l);var d=new c.SequenceNumberBackend(l);return new s.LongPlaytimeFilteringBackend(d)},e}();t.BackendFactory=l},7540:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggingBackend=void 0;var a=i(1916),n=function(){function e(e,t){this.underlying=t,e.debug&&e.debug.fields&&(this.debugFields=e.debug.fields)}return e.prototype.sendRequest=function(e){this.printFields(e),this.underlying.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.printFields(e),this.underlying.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.printFields(e),this.underlying.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.underlying.sendAdRequest(e)},e.prototype.printFields=function(e){if(this.debugFields&&this.debugFields.length){var t={};this.debugFields.forEach((function(i){return t[i]=e[i]})),a.logger.table([t])}},e}();t.DebuggingBackend=n},675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var i=function(){function e(){this.callbacks=[]}return e.prototype.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){return t.unsubscribe(e)}},e.prototype.dispatch=function(e){this.callbacks.slice(0).forEach((function(t){t(e)}))},e.prototype.unsubscribe=function(e){var t=this.callbacks.indexOf(e);t>-1&&this.callbacks.splice(t,1)},Object.defineProperty(e.prototype,"subscriberCount",{get:function(){return this.callbacks.length},enumerable:!1,configurable:!0}),e}();t.EventDispatcher=i},2663:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeartbeatService=t.DEFAULT_HEARTBEAT_INTERVAL_MS=void 0,t.DEFAULT_HEARTBEAT_INTERVAL_MS=59700;var i=function(){function e(e){this.getPlayerCurrentTime=e}return e.prototype.setListener=function(e){this.listener=e},e.prototype.startHeartbeat=function(){var e=this;void 0!==this.heartbeatInterval&&this.clearHeartbeat(),this.heartbeatInterval=setInterval((function(){var t;null===(t=e.listener)||void 0===t||t.onHeartbeat(e.getPlayerCurrentTime())}),t.DEFAULT_HEARTBEAT_INTERVAL_MS)},e.prototype.stopHeartbeat=function(){this.clearHeartbeat()},e.prototype.clearHeartbeat=function(){clearTimeout(this.heartbeatInterval),this.heartbeatInterval=void 0},e}();t.HeartbeatService=i},7721:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdenticalErrorReportingLimiter=void 0;var i=function(){function e(){this._currentErrorCount=0}return e.prototype.shouldReportError=function(t,i){return t===this._lastErrorCode&&i===this._lastErrorSeverity?(this._currentErrorCount++,this._currentErrorCount<=e.MAX_IDENTICAL_ERROR_REPORTING):(this._lastErrorCode=t,this._lastErrorSeverity=i,this._currentErrorCount=1,!0)},e.prototype.reset=function(){this._lastErrorCode=void 0,this._lastErrorSeverity=void 0,this._currentErrorCount=0},e.MAX_IDENTICAL_ERROR_REPORTING=5,e}();t.IdenticalErrorReportingLimiter=i},3489:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCheckingBackend=void 0;var n=i(4501),r=i(1916),o=i(4649),s=i(2226),u=i(1125),c=i(2364),l=function(){function e(e,t,i,n,r){var c=this;this.licenseCall=t,this.backendBaseUrl=i,this.adapter=n,this.authenticationCallback=r,this.licenseKeyReceived=function(e){clearTimeout(c.licenseLazyLoadingTimeoutHandle),c.unsubscribeFromAdapter(),c.info.key=e.licenseKey,c.promise=c.wrapLicenseCheckPromiseWithCallback(c.performLicenseCheck(),c.authenticationCallback)},this.licenseCallFailed=function(){clearTimeout(c.licenseLazyLoadingTimeoutHandle),c.unsubscribeFromAdapter(),c.backend=new s.NoOpBackend,c.authenticationCallback.authenticationCompleted(!1,void 0)},this.licenseLazyLoadingTimeout=function(){c.unsubscribeFromAdapter(),c.backend=new s.NoOpBackend,c.authenticationCallback.authenticationCompleted(!1,void 0)},this.info=a({},e),this.backend=new u.QueueBackend,this.licenseCall=t,void 0!==e.key&&""!==e.key?this.promise=this.wrapLicenseCheckPromiseWithCallback(this.performLicenseCheck(),this.authenticationCallback):!0===n.supportsDeferredLicenseLoading?(n.onLicenseKeyReceived.subscribe(this.licenseKeyReceived),n.onLicenseCallFailed.subscribe(this.licenseCallFailed),this.licenseLazyLoadingTimeoutHandle=setTimeout(this.licenseLazyLoadingTimeout,o.ANALYTICS_LICENSECALL_TIMEOUT)):(r.authenticationCompleted(!1,void 0),this.backend=new s.NoOpBackend)}return e.prototype.performLicenseCheck=function(){var e=this,t=this.info,i=t.key,a=t.domain,o=t.version;if(!i||""===i){var u={status:n.LicensingResult.Denied,message:"No license key provided"};return this.backend=new s.NoOpBackend,Promise.resolve(u)}return this.licenseCall(i,a,o,this.backendBaseUrl).then((function(t){if(t.status!==n.LicensingResult.Granted)throw new Error(t.message);var a=new c.RemoteBackend(!0,e.backendBaseUrl,i);return e.backend.flushTo(a),e.backend=a,t})).catch((function(t){return"Ignoring Impression due to DNT Header being set"===t.message?r.logger.error("License Check for Bitmovin Analytics failed because of",t):r.logger.errorMessageToUser("License Check for Bitmovin Analytics failed because of",t),e.backend=new s.NoOpBackend,{status:n.LicensingResult.Denied,message:t.message}}))},e.prototype.sendRequest=function(e){this.backend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.backend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.backend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.backend.sendAdRequest(e)},e.prototype.unsubscribeFromAdapter=function(){this.adapter.onLicenseKeyReceived.unsubscribe(this.licenseKeyReceived),this.adapter.onLicenseCallFailed.unsubscribe(this.licenseCallFailed)},e.prototype.wrapLicenseCheckPromiseWithCallback=function(e,t){return e.then((function(e){return t.authenticationCompleted(e.status===n.LicensingResult.Granted,e.features),e}))},e}();t.LicenseCheckingBackend=l},399:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LongPlaytimeFilteringBackend=void 0;var a=i(5063),n=function(){function e(e){this.nextBackend=e}return e.prototype.sendRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.nextBackend.sendAdRequest(e)},e.prototype.isPlayedAboveThreshold=function(e){return((0,a.isNullish)(e.played)?0:e.played)>=9e4},e}();t.LongPlaytimeFilteringBackend=n},2226:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoOpBackend=void 0;var i=function(){function e(){}return e.prototype.sendRequest=function(e){},e.prototype.sendUnloadRequest=function(e){},e.prototype.sendRequestSynchronous=function(e){},e.prototype.sendAdRequest=function(e){},e}();t.NoOpBackend=i},9796:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1460),n=i(4649),r=function(){function e(e){void 0===e&&(e=n.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD),this.qualityChangeCount=0,this.previousVideoBitrate=0,this.previousAudioBitrate=0,this.startupHasFinished=!1,this.QUALITY_CHANGE_COUNT_THRESHOLD=e}return e.prototype.resetValues=function(){this.qualityChangeCount=0,this.stopResetInterval(),this.previousVideoBitrate=0,this.previousAudioBitrate=0,this.startupHasFinished=!1},e.prototype.increaseCounter=function(){this.qualityChangeCount++},e.prototype.hasExceededQualityChangeThreshold=function(){return this.qualityChangeCount>this.QUALITY_CHANGE_COUNT_THRESHOLD},e.prototype.setStartupHasFinished=function(e,t){this.startupHasFinished=!0,(0,a.isFiniteNumber)(e)&&(this.previousVideoBitrate=e),(0,a.isFiniteNumber)(t)&&(this.previousAudioBitrate=t)},e.prototype.shouldAllowVideoQualityChange=function(e){return this.startupHasFinished&&(0,a.isFiniteNumber)(e)&&0!==this.previousVideoBitrate&&this.previousVideoBitrate!==e&&!this.hasExceededQualityChangeThreshold()},e.prototype.setVideoBitrate=function(e){this.startupHasFinished&&(this.previousVideoBitrate=e)},e.prototype.shouldAllowAudioQualityChange=function(e){return this.startupHasFinished&&(0,a.isFiniteNumber)(e)&&0!==this.previousAudioBitrate&&this.previousAudioBitrate!==e&&!this.hasExceededQualityChangeThreshold()},e.prototype.setAudioBitrate=function(e){this.startupHasFinished&&(this.previousAudioBitrate=e)},e.prototype.startResetInterval=function(){var e=this;void 0===this.qualityChangeCountResetIntervalId&&(this.qualityChangeCountResetIntervalId=setInterval((function(){e.qualityChangeCount=0}),n.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL))},e.prototype.stopResetInterval=function(){void 0!==this.qualityChangeCountResetIntervalId&&(clearInterval(this.qualityChangeCountResetIntervalId),delete this.qualityChangeCountResetIntervalId)},e}();t.default=r},1125:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueueBackend=void 0;var i=function(){function e(){this.queue=[],this.unloadQueue=[],this.syncQueue=[],this.adQueue=[]}return e.prototype.sendRequest=function(e){this.queue.push(e)},e.prototype.sendUnloadRequest=function(e){this.unloadQueue.push(e)},e.prototype.sendRequestSynchronous=function(e){this.syncQueue.push(e)},e.prototype.sendAdRequest=function(e){this.adQueue.push(e)},e.prototype.flushTo=function(e){this.queue.forEach((function(t){e.sendRequest(t)})),this.unloadQueue.forEach((function(t){e.sendUnloadRequest(t)})),this.syncQueue.forEach((function(t){e.sendRequestSynchronous(t)})),this.adQueue.forEach((function(t){e.sendAdRequest(t)}))},e}();t.QueueBackend=i},2364:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteBackend=void 0;var a=i(5426),n=i(5063),r=function(){function e(e,t,i){this.licenseKey=i,this.hasAdModule=e,this.analyticsCall=new a.AnalyticsCall(t)}return e.prototype.sendRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequest(e,n.noOp)},e.prototype.sendUnloadRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequestSynchronous(e,n.noOp)},e.prototype.sendAdRequest=function(e){e.key=this.licenseKey,this.hasAdModule&&this.analyticsCall.sendAdRequest(e)},e}();t.RemoteBackend=r},7390:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceNumberBackend=void 0;var a=i(4649),n=function(){function e(e){this.sequenceNumber=0,this.nextBackend=e}return e.prototype.sendRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendAdRequest(e)},e.prototype.updateSampleBeforeSending=function(e){e.sequenceNumber=this.sequenceNumber++},e.prototype.isSequenceNumberAboveThreshold=function(e){var t;return(null!==(t=e.sequenceNumber)&&void 0!==t?t:0)>a.SEQUENCE_NUMBER_LIMIT},e}();t.SequenceNumberBackend=n},847:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCookieMaxAgeValue=t.validateCookieDomainValue=t.SessionPersistenceHandler=t.COOKIE_DEFAULT_MAX_AGE=t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID=void 0;var a=i(3848),n=i(1460),r=i(1820),o=i(5063),s=i(2982);t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID="bitmovin_analytics_uuid",t.COOKIE_DEFAULT_MAX_AGE=31536e3;var u=function(e){var i=e.config;if(!1===(null==i?void 0:i.cookiesEnabled))return(0,a.deleteCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID),void(this.userId=(0,s.generateUUID)());var n=(0,a.getCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID);this.userId=(0,o.isNotNullish)(n)&&!(0,r.isBlank)(n)?n:(0,s.generateUUID)();var u=(0,t.validateCookieDomainValue)(null==i?void 0:i.cookiesDomain),c=(0,t.validateCookieMaxAgeValue)(null==i?void 0:i.cookiesMaxAge),l=Date.now(),d=new Date(l+1e3*c).toUTCString();(0,a.setCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID,this.userId,{domain:u,expires:d,maxAge:c})};t.SessionPersistenceHandler=u;t.validateCookieDomainValue=function(e){if(!(0,o.isNullish)(e)&&(0,r.isValidString)(e)&&!(0,r.isBlank)(e))return encodeURIComponent(e)};t.validateCookieMaxAgeValue=function(e){return(0,o.isNullish)(e)?t.COOKIE_DEFAULT_MAX_AGE:(0,n.isNumber)(e)?e:t.COOKIE_DEFAULT_MAX_AGE}},4916:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceInfoFallbackService=void 0;var a=i(1820),n=i(5063),r=function(){function e(){}return e.prototype.reset=function(){this.streamFormat=void 0,this.audioCodec=void 0,this.videoCodec=void 0},e.prototype.setStreamFormat=function(e){this.streamFormat=e},e.prototype.applyStreamFormat=function(e){(0,a.isBlank)(this.streamFormat)||(e.streamFormat=this.streamFormat)},e.prototype.applyAndStoreCodecInfo=function(e,t){(0,n.isNotNullish)(null==t?void 0:t.audioCodec)&&(this.audioCodec=t.audioCodec),(0,n.isNotNullish)(null==t?void 0:t.videoCodec)&&(this.videoCodec=t.videoCodec),(0,a.isBlank)(this.audioCodec)||(e.audioCodec=this.audioCodec),(0,a.isBlank)(this.videoCodec)||(e.videoCodec=this.videoCodec)},e}();t.SourceInfoFallbackService=r},4300:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SsaiService=void 0;var n,r=i(3588),o=i(3458),s=i(5529),u=i(5063),c=i(2982),l=i(7906);!function(e){e[e.AD_BREAK_STARTED=0]="AD_BREAK_STARTED",e[e.ACTIVE=1]="ACTIVE",e[e.IDLE=2]="IDLE"}(n||(n={}));var d=function(){function e(){this.eventHandler=void 0,this.adIndex=-1,this.state=n.IDLE,this.isFirstSampleOfAd=!1,this.sentAdQuartiles=[],this.errorSent=!1}return e.prototype.activate=function(e){this.eventHandler=e},e.prototype.adBreakStart=function(e){p(this.eventHandler)&&this.state==n.IDLE&&(this.state=n.AD_BREAK_STARTED,this.currentAdMetadata=a({},e))},e.prototype.adStart=function(e){var t;if(p(this.eventHandler)&&this.state!=n.IDLE){var i=(new Date).getTime(),a=this.eventHandler.getPlayerCurrentTime();this.eventHandler.reportPlaybackInteraction(i,a),this.state=n.ACTIVE,this.isFirstSampleOfAd=!0,this.adIndex++,this.resetAdData(),this.currentAdMetadata={adPosition:null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adPosition,adId:null==e?void 0:e.adId,adSystem:null==e?void 0:e.adSystem,customData:null==e?void 0:e.customData},this.currentAdImpressionId=(0,c.generateUUID)(),this.timestampOfAdStart=(0,l.getCurrentMonotonicTimestampInMs)(),this.eventHandler.reportEngagementInteraction({type:"started",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{}})}},e.prototype.adQuartileFinished=function(e,t){p(this.eventHandler)&&this.state==n.ACTIVE&&(this.sentAdQuartiles.includes(e)||(this.eventHandler.reportEngagementInteraction({type:"quartile",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},quartile:e,quartileMetadata:t,timeSinceAdStartedInMs:(0,l.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.sentAdQuartiles.push(e)))},e.prototype.adBreakEnd=function(){if(p(this.eventHandler)&&this.state!=n.IDLE){if(this.state==n.ACTIVE){var e=(new Date).getTime(),t=this.eventHandler.getPlayerCurrentTime();this.eventHandler.reportPlaybackInteraction(e,t)}this.resetAdBreakData()}},e.prototype.manipulate=function(e){var t,i,a,o;if(p(this.eventHandler)&&this.state==n.ACTIVE){e.ad=r.AD_TYPE.SSAI,e.adId=null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adId,e.adSystem=null===(i=this.currentAdMetadata)||void 0===i?void 0:i.adSystem,e.adPosition=null===(a=this.currentAdMetadata)||void 0===a?void 0:a.adPosition,this.isFirstSampleOfAd&&(e.adIndex=this.adIndex,this.isFirstSampleOfAd=!1);var c=null===(o=this.currentAdMetadata)||void 0===o?void 0:o.customData;(0,u.isNotNullish)(c)&&s.customDataValuesKeys.forEach((function(t){c[t]&&(e[t]=c[t])})),e[l.SSAI_RELATED_SAMPLE_MARKER]=!0}},e.prototype.sendAdEngagementErrorSample=function(e,t){p(this.eventHandler)&&this.state===n.ACTIVE&&(this.errorSent||e.code!==o.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.code&&(this.eventHandler.reportEngagementInteraction({type:"error",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,u.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},analyticsError:e,originalError:t,timeSinceAdStartedInMs:(0,l.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.errorSent=!0))},e.prototype.isInActiveState=function(){return this.state===n.ACTIVE},e.prototype.resetSourceRelatedState=function(){this.resetAdBreakData(),this.adIndex=-1},e.prototype.resetAdBreakData=function(){this.state=n.IDLE,this.isFirstSampleOfAd=!1,delete this.currentAdMetadata,this.resetAdData()},e.prototype.resetAdData=function(){var e,t,i;null===(e=this.currentAdMetadata)||void 0===e||delete e.customData,null===(t=this.currentAdMetadata)||void 0===t||delete t.adId,null===(i=this.currentAdMetadata)||void 0===i||delete i.adSystem,this.errorSent=!1,this.currentAdImpressionId=void 0,this.sentAdQuartiles=[],this.timestampOfAdStart=void 0},e}();function p(e){return(0,u.isNotNullish)(e)}t.SsaiService=d},8918:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSsaiEngagementErrorData=function(e){return"error"===e.type},t.isSsaiEngagementQuartileData=function(e){return"quartile"===e.type},t.isSsaiEngagementStartedData=function(e){return"started"===e.type}},7906:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTING_URL_PARAM_VALUE_SSAI=t.ROUTING_URL_PARAM=t.SSAI_RELATED_SAMPLE_MARKER=void 0,t.isSsaiRelatedSample=function(e){if(e[t.SSAI_RELATED_SAMPLE_MARKER])return delete e[t.SSAI_RELATED_SAMPLE_MARKER],!0;if(2===e.adType)return!0;return!1},t.appendSsaiRoutingParam=function(e){return"".concat(e,"?").concat(t.ROUTING_URL_PARAM,"=").concat(t.ROUTING_URL_PARAM_VALUE_SSAI)},t.createErrorAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:void 0,quartileMetadata:void 0,errorCode:t.analyticsError.code,errorMessage:t.analyticsError.message,errorSeverity:t.analyticsError.severity,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs})},t.createStartedAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:"started",quartileMetadata:void 0,errorCode:void 0,errorMessage:void 0,errorSeverity:void 0,timeSinceAdStartedInMs:void 0})},t.createQuartileAdSample=function(e,t){return s({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:t.quartile,quartileMetadata:t.quartileMetadata,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs,errorCode:void 0,errorMessage:void 0,errorSeverity:void 0})},t.getCurrentMonotonicTimestampInMs=u,t.getMonotonicTimestampInMsSince=function(e){if((0,o.isNullish)(e))return;return u()-e};var n=i(5529),r=i(9422),o=i(5063);function s(e){var t,i=e.playbackSample,r=e.currentAdImpressionId,s=e.adIndex,u=e.currentAdMetadata,c=e.quartile,l=e.quartileMetadata,d=e.errorCode,p=e.errorMessage,h=e.errorSeverity,m=e.timeSinceAdStartedInMs,v=a(a({},{audioBitrate:null==(t=i)?void 0:t.audioBitrate,analyticsVersion:null==t?void 0:t.analyticsVersion,adPlaybackHeight:null==t?void 0:t.videoPlaybackHeight,adPlaybackWidth:null==t?void 0:t.videoPlaybackWidth,cdnProvider:null==t?void 0:t.cdnProvider,customData1:null==t?void 0:t.customData1,customData2:null==t?void 0:t.customData2,customData3:null==t?void 0:t.customData3,customData4:null==t?void 0:t.customData4,customData5:null==t?void 0:t.customData5,customData6:null==t?void 0:t.customData6,customData7:null==t?void 0:t.customData7,customData8:null==t?void 0:t.customData8,customData9:null==t?void 0:t.customData9,customData10:null==t?void 0:t.customData10,customData11:null==t?void 0:t.customData11,customData12:null==t?void 0:t.customData12,customData13:null==t?void 0:t.customData13,customData14:null==t?void 0:t.customData14,customData15:null==t?void 0:t.customData15,customData16:null==t?void 0:t.customData16,customData17:null==t?void 0:t.customData17,customData18:null==t?void 0:t.customData18,customData19:null==t?void 0:t.customData19,customData20:null==t?void 0:t.customData20,customData21:null==t?void 0:t.customData21,customData22:null==t?void 0:t.customData22,customData23:null==t?void 0:t.customData23,customData24:null==t?void 0:t.customData24,customData25:null==t?void 0:t.customData25,customData26:null==t?void 0:t.customData26,customData27:null==t?void 0:t.customData27,customData28:null==t?void 0:t.customData28,customData29:null==t?void 0:t.customData29,customData30:null==t?void 0:t.customData30,customData31:null==t?void 0:t.customData31,customData32:null==t?void 0:t.customData32,customData33:null==t?void 0:t.customData33,customData34:null==t?void 0:t.customData34,customData35:null==t?void 0:t.customData35,customData36:null==t?void 0:t.customData36,customData37:null==t?void 0:t.customData37,customData38:null==t?void 0:t.customData38,customData39:null==t?void 0:t.customData39,customData40:null==t?void 0:t.customData40,customData41:null==t?void 0:t.customData41,customData42:null==t?void 0:t.customData42,customData43:null==t?void 0:t.customData43,customData44:null==t?void 0:t.customData44,customData45:null==t?void 0:t.customData45,customData46:null==t?void 0:t.customData46,customData47:null==t?void 0:t.customData47,customData48:null==t?void 0:t.customData48,customData49:null==t?void 0:t.customData49,customData50:null==t?void 0:t.customData50,customData51:null==t?void 0:t.customData51,customData52:null==t?void 0:t.customData52,customData53:null==t?void 0:t.customData53,customData54:null==t?void 0:t.customData54,customData55:null==t?void 0:t.customData55,customData56:null==t?void 0:t.customData56,customData57:null==t?void 0:t.customData57,customData58:null==t?void 0:t.customData58,customData59:null==t?void 0:t.customData59,customData60:null==t?void 0:t.customData60,customData61:null==t?void 0:t.customData61,customData62:null==t?void 0:t.customData62,customData63:null==t?void 0:t.customData63,customData64:null==t?void 0:t.customData64,customData65:null==t?void 0:t.customData65,customData66:null==t?void 0:t.customData66,customData67:null==t?void 0:t.customData67,customData68:null==t?void 0:t.customData68,customData69:null==t?void 0:t.customData69,customData70:null==t?void 0:t.customData70,customData71:null==t?void 0:t.customData71,customData72:null==t?void 0:t.customData72,customData73:null==t?void 0:t.customData73,customData74:null==t?void 0:t.customData74,customData75:null==t?void 0:t.customData75,customData76:null==t?void 0:t.customData76,customData77:null==t?void 0:t.customData77,customData78:null==t?void 0:t.customData78,customData79:null==t?void 0:t.customData79,customData80:null==t?void 0:t.customData80,customData81:null==t?void 0:t.customData81,customData82:null==t?void 0:t.customData82,customData83:null==t?void 0:t.customData83,customData84:null==t?void 0:t.customData84,customData85:null==t?void 0:t.customData85,customData86:null==t?void 0:t.customData86,customData87:null==t?void 0:t.customData87,customData88:null==t?void 0:t.customData88,customData89:null==t?void 0:t.customData89,customData90:null==t?void 0:t.customData90,customData91:null==t?void 0:t.customData91,customData92:null==t?void 0:t.customData92,customData93:null==t?void 0:t.customData93,customData94:null==t?void 0:t.customData94,customData95:null==t?void 0:t.customData95,customData96:null==t?void 0:t.customData96,customData97:null==t?void 0:t.customData97,customData98:null==t?void 0:t.customData98,customData99:null==t?void 0:t.customData99,customData100:null==t?void 0:t.customData100,customUserId:null==t?void 0:t.customUserId,domain:null==t?void 0:t.domain,experimentName:null==t?void 0:t.experimentName,key:null==t?void 0:t.key,language:null==t?void 0:t.language,path:null==t?void 0:t.path,platform:null==t?void 0:t.platform,player:null==t?void 0:t.player,playerKey:null==t?void 0:t.playerKey,playerTech:null==t?void 0:t.playerTech,size:null==t?void 0:t.size,screenHeight:null==t?void 0:t.screenHeight,screenWidth:null==t?void 0:t.screenWidth,streamFormat:null==t?void 0:t.streamFormat,userAgent:null==t?void 0:t.userAgent,userId:null==t?void 0:t.userId,version:null==t?void 0:t.version,videoBitrate:null==t?void 0:t.videoBitrate,videoId:null==t?void 0:t.videoId,videoImpressionId:null==t?void 0:t.impressionId,videoTitle:null==t?void 0:t.videoTitle,videoWindowHeight:null==t?void 0:t.videoWindowHeight,videoWindowWidth:null==t?void 0:t.videoWindowWidth}),{adId:null==u?void 0:u.adId,adImpressionId:r,adIndex:s,adPosition:null==u?void 0:u.adPosition,adSystem:null==u?void 0:u.adSystem,adType:2,errorCode:d,errorMessage:p,errorSeverity:h,time:Date.now(),timeSinceAdStartedInMs:m});switch(c){case"started":v.started=1;break;case"first":v.quartile1=1,v.quartile1FailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"midpoint":v.midpoint=1,v.midpointFailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"third":v.quartile3=1,v.quartile3FailedBeaconUrl=null==l?void 0:l.failedBeaconUrl;break;case"completed":v.completed=1,v.completedFailedBeaconUrl=null==l?void 0:l.failedBeaconUrl}var f=null==u?void 0:u.customData;return(0,o.isNotNullish)(f)&&n.customDataValuesKeys.forEach((function(e){f[e]&&(v[e]=f[e])})),v}function u(){var e=(0,r.getGlobalPerformanceNow)();return(0,o.isNullish)(e)?Date.now():Math.floor(e)}t.SSAI_RELATED_SAMPLE_MARKER="triggeredBySsai",t.ROUTING_URL_PARAM="routingParam",t.ROUTING_URL_PARAM_VALUE_SSAI="ssai"},3588:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AD_TYPE=void 0,function(e){e[e.NO_AD=0]="NO_AD",e[e.CSAI=1]="CSAI",e[e.SSAI=2]="SSAI"}(i||(t.AD_TYPE=i={}))},4355:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.CdnProvider=void 0,function(e){e.AKAMAI="akamai",e.BITGRAVITY="bitgravity",e.CHINACACHE="chinacache",e.CLOUDFLARE="cloudflare",e.CLOUDFRONT="cloudfront",e.FASTLY="fastly",e.MAXCDN="maxcdn"}(i||(t.CdnProvider=i={}))},3458:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0;var i=function(){function e(e,t,i){void 0===i&&(i="CRITICAL"),this.code=e,this.message=t,this.errorSeverity=i}return e.BITMOVIN_PLAYER_LICENSING_ERROR=new e(1103,""),e.SETUP_MISSING_LICENSE_WHITELIST=new e(1105,""),e.QUALITY_CHANGE_THRESHOLD_EXCEEDED=new e(1e4,"ANALYTICS_QUALITY_CHANGE_THRESHOLD_EXCEEDED","INFO"),e.BUFFERING_TIMEOUT_REACHED=new e(10001,"ANALYTICS_BUFFERING_TIMEOUT_REACHED"),e.VIDEO_STARTUP_TIMEOUT_REACHED=new e(10002,"ANALYTICS_VIDEOSTART_TIMEOUT_REACHED"),e}();t.ErrorCode=i},2361:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=t.JSM_INITIAL_EVENT=void 0,t.JSM_INITIAL_EVENT="jsm-initial",function(e){e.AUDIO_CHANGE="audioChange",e.AUDIOTRACK_CHANGED="audioTrackChanged",e.CUSTOM_DATA_CHANGE="customDataChange",e.END="end",e.END_AD="adEnd",e.END_BUFFERING="endBuffering",e.END_CAST="endCasting",e.END_FULLSCREEN="endFullscreen",e.ERROR="playerError",e.FINISH_QUALITY_CHANGE="finishQualityChange",e.LOADSTART_AUTOPLAY="loadstartAutoplay",e.MANUAL_SOURCE_CHANGE="manualSourceChangeInitiated",e.MUTE="mute",e.PAUSE="pause",e.PLAY="play",e.PLAYING="playing",e.READY="ready",e.SCREEN_RESIZE="resize",e.SEEK="seek",e.SEEKED="seeked",e.SOURCE_LOADED="sourceLoaded",e.SOURCE_UNLOADED="sourceUnloaded",e.START_AD="adStart",e.START_BUFFERING="startBuffering",e.START_CAST="startCasting",e.START_FULLSCREEN="startFullscreen",e.SUBTITLE_CHANGE="subtitleChange",e.TIMECHANGED="timechanged",e.UN_MUTE="unMute",e.UNLOAD="unload",e.VIDEO_CHANGE="videoChange",e.VIDEOSTART_TIMEOUT="VIDEOSTART_TIMEOUT"}(i||(t.Event=i={}))},2168:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIMETypes=void 0,t.getMIMETypeFromFileExtension=function(e){var i=e.split(/[?#]/)[0].toLowerCase();if((0,a.endsWith)(i,".m3u8"))return t.MIMETypes.HLS;if((0,a.endsWith)(i,".mp4")||(0,a.endsWith)(i,".m4v")||(0,a.endsWith)(i,".m4a"))return t.MIMETypes.MP4;if((0,a.endsWith)(i,".webm"))return t.MIMETypes.WEBM;if((0,a.endsWith)(i,".mpd"))return t.MIMETypes.DASH;return};var a=i(1820);t.MIMETypes={MP4:"video/mp4",WEBM:"video/webm",HLS:"application/x-mpegURL",DASH:"application/dash+xml"}},9946:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.PAGE_LOAD_TYPE=void 0,function(e){e[e.FOREGROUND=1]="FOREGROUND",e[e.BACKGROUND=2]="BACKGROUND"}(i||(t.PAGE_LOAD_TYPE=i={}))},556:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0,function(e){e.AMAZON_IVS="amazonivs",e.BITMOVIN="bitmovin",e.BITMOVIN_PWX="bitmovin-pwx",e.CHROMECAST_SHAKA="chromecast-shaka",e.DASHJS="dashjs",e.HLSJS="hlsjs",e.HTML5="html5",e.JW="jw",e.RADIANT="radiant",e.SHAKA="shaka",e.THEOPLAYER="theoplayer",e.VIDEOJS="videojs"}(i||(t.Player=i={}))},8525:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerSize=void 0,function(e){e.Fullscreen="FULLSCREEN",e.Window="WINDOW"}(i||(t.PlayerSize=i={}))},7224:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamTypes=void 0,t.getStreamTypesFromURL=function(e){if((0,r.isNullish)(e)||(0,n.isBlank)(e))return;var t=e.split(/[?#]/)[0].toLowerCase();if((0,n.endsWith)(t,".m3u8"))return a.hls;if((0,n.endsWith)(t,".mp4")||(0,n.endsWith)(t,".m4v")||(0,n.endsWith)(t,".m4a"))return a.prog;if((0,n.endsWith)(t,".webm"))return a.prog;if((0,n.endsWith)(t,".mpd"))return a.dash;return},t.getStreamTypeFromMIMEType=function(e){var t;return((t={})[o.MIMETypes.MP4]=a.prog,t[o.MIMETypes.WEBM]=a.prog,t[o.MIMETypes.HLS]=a.hls,t[o.MIMETypes.DASH]=a.dash,t)[e]};var a,n=i(1820),r=i(5063),o=i(2168);!function(e){e.dash="dash",e.hls="hls",e.prog="progressive"}(a||(t.StreamTypes=a={}))},3565:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoStartFailedReason=void 0,t.createVideoStartFailedReason=function(e){switch(e){case n.Event.ERROR:return a.PLAYER_ERROR;case n.Event.UNLOAD:case n.Event.MANUAL_SOURCE_CHANGE:case n.Event.SOURCE_UNLOADED:return a.PAGE_CLOSED;case n.Event.VIDEOSTART_TIMEOUT:return a.TIMEOUT;default:return a.UNKNOWN}};var a,n=i(2361);!function(e){e.PAGE_CLOSED="PAGE_CLOSED",e.PLAYER_ERROR="PLAYER_ERROR",e.TIMEOUT="TIMEOUT",e.UNKNOWN="UNKNOWN"}(a||(t.VideoStartFailedReason=a={}))},348:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Feature=void 0;var a=i(5063),n=function(){function e(){this._config=void 0,this._isEnabled=!0}return Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},enumerable:!1,configurable:!0}),e.prototype.disable=function(){this._isEnabled=!1,this.disabled()},e.prototype.configure=function(e,t){return(0,a.isNotNullish)(t)&&(this._config=this.extractConfig(t)),this.configured(e,this._config),this._config},e}();t.Feature=n},6845:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureManager=void 0;var a=i(1916),n=function(){function e(){this.features=[]}return e.prototype.registerFeatures=function(e){this.features=e},e.prototype.unregisterFeatures=function(){this.features.forEach((function(e){return e.disable()})),this.features=[]},e.prototype.resetFeatures=function(){this.features.forEach((function(e){return e.reset()}))},e.prototype.configureFeatures=function(e,t){this.features=this.features.filter((function(i){var n=i.configure(e,t);return!(!e||!0!==(null==n?void 0:n.enabled))||(a.logger.log("Disabling feature ".concat(i.constructor.name," as it isn't enabled according to license callback.")),i.disable(),!1)})),this.features.forEach((function(e){return e.enabled()}))},e}();t.FeatureManager=n},7614:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)},n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailBackend=void 0;var r=i(92),o=i(4649),s=i(5063),u=function(){function e(e){var t;this._queue=[],this._enabled=!1,this.backendUrl=(0,s.joinUrls)(null!==(t=null==e?void 0:e.backendUrl)&&void 0!==t?t:o.ANALYTICS_BACKEND_BASE_URL,"/analytics/error")}return Object.defineProperty(e.prototype,"queue",{get:function(){return this._queue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!1,configurable:!0}),e.copyErrorDetailTruncateStringsAndUrls=function(e,t,i){var n,r,o=this;return a(a({},e),{message:null===(n=e.message)||void 0===n?void 0:n.substr(0,t),data:this.copyErrorDataTruncateStrings(e.data,t),httpRequests:null===(r=e.httpRequests)||void 0===r?void 0:r.map((function(e){return o.copyHttpRequestTruncateUrls(e,i)}))})},e.copyHttpRequestTruncateUrls=function(e,t){var i,n;return a(a({},e),{url:null===(i=e.url)||void 0===i?void 0:i.substr(0,t),lastRedirectLocation:null===(n=e.lastRedirectLocation)||void 0===n?void 0:n.substr(0,t)})},e.copyErrorDataTruncateStrings=function(e,t){var i,n;return a(a({},e),{exceptionMessage:null===(i=e.exceptionMessage)||void 0===i?void 0:i.substr(0,t),additionalData:null===(n=e.additionalData)||void 0===n?void 0:n.substr(0,t)})},e.copyErrorDetailTruncateHttpRequests=function(e,t){var i;return a(a({},e),{httpRequests:null===(i=e.httpRequests)||void 0===i?void 0:i.slice(-t)})},e.prototype.limitHttpRequestsOfQueuedErrorDetails=function(t){var i=this;this._queue.forEach((function(a,n){i._queue[n]=e.copyErrorDetailTruncateHttpRequests(a,t)}))},e.prototype.send=function(t){var i=e.copyErrorDetailTruncateStringsAndUrls(t,e.MAX_STRING_LENGTH,e.MAX_URL_LENGTH);this.enabled?(0,r.post)(this.backendUrl,i,(function(){})):this._queue.push(i)},e.prototype.flush=function(){for(var e=n([],this._queue,!0),t=e.shift();(0,s.isNotNullish)(t);)this.removeFromQueue(t),this.send(t),t=e.shift()},e.prototype.clear=function(){this._queue.splice(0,this._queue.length)},e.prototype.removeFromQueue=function(e){var t=this._queue.findIndex((function(t){return t===e}));t>=0&&this._queue.splice(t,1)},e.MAX_URL_LENGTH=450,e.MAX_STRING_LENGTH=2e3,e}();t.ErrorDetailBackend=u},9557:function(e,t,i){"use strict";var a,n=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailTracking=void 0;var o=i(1916),s=i(5063),u=i(4926),c=function(e){function t(t,i,a,n){var c=e.call(this)||this;return c.settingsProvider=t,c.backend=i,c.subscribables=a,c.httpRequestTracking=n,c.errorIndex=0,c.onErrorHandler=function(e){var t,i;try{if(!c.isEnabled)return;var a=null===(t=c.httpRequestTracking)||void 0===t?void 0:t.httpRequests,n=(0,s.isNullish)(a)?void 0:r([],a,!0),l=c.errorIndex;c.errorIndex++;var d={platform:"web",licenseKey:c.settingsProvider.licenseKey,domain:c.settingsProvider.domain,impressionId:c.settingsProvider.impressionId,analyticsVersion:u.VERSION,errorId:l,timestamp:(0,s.getCurrentTimestamp)(),code:e.code,message:e.message,data:null!==(i=e.errorData)&&void 0!==i?i:{additionalData:void 0,exceptionMessage:void 0,exceptionStacktrace:void 0},httpRequests:n,severity:e.severity};o.logger.log("ErrorDetailTracking.onError: ".concat((0,s.tryJSONStringify)(d))),c.backend.send(d)}catch(e){o.logger.error("ErrorDetailTracking.onError: Error in handler",e)}},a.forEach((function(e){return e.subscribe(c.onErrorHandler)})),c}return n(t,e),t.prototype.reset=function(){var e;null===(e=this.httpRequestTracking)||void 0===e||e.reset(),this.errorIndex=0},t.prototype.enabled=function(){this.backend.enabled=!0,this.backend.flush()},t.prototype.disabled=function(){var e,t=this;this.errorIndex=0,null===(e=this.httpRequestTracking)||void 0===e||e.disable(),this.backend.clear(),this.subscribables.forEach((function(e){return e.unsubscribe(t.onErrorHandler)}))},t.prototype.configured=function(e,t){var i,a,n=Math.max(null!==(i=null==t?void 0:t.numberOfHttpRequests)&&void 0!==i?i:0,0);null===(a=this.httpRequestTracking)||void 0===a||a.configure(n),this.backend.limitHttpRequestsOfQueuedErrorDetails(n)},t.prototype.extractConfig=function(e){return e.errorDetails},t}(i(348).Feature);t.ErrorDetailTracking=c},5791:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdAnalyticsSample=void 0;var a=i(5063),n=function(e){this.platform="web",e&&(this.videoImpressionId=e.impressionId,this.userAgent=e.userAgent,this.language=e.language,this.cdnProvider=e.cdnProvider,a.transferCustomDataFields(e,this),this.customUserId=e.customUserId,this.domain=e.domain,this.experimentName=e.experimentName,this.key=e.key,this.path=e.path,this.player=e.player,this.playerKey=e.playerKey,this.playerTech=e.playerTech,this.screenHeight=e.screenHeight,this.screenWidth=e.screenWidth,this.version=e.version,this.size=e.size,this.userId=e.userId,this.videoId=e.videoId,this.videoTitle=e.videoTitle,this.videoWindowHeight=e.videoWindowHeight,this.videoWindowWidth=e.videoWindowWidth,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec)};t.AdAnalyticsSample=n},7232:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakSample=void 0;var a=i(1460),n=i(5063),r=function(e,t){this.adFallbackIndex=0,t&&(this.manifestDownloadTime=n.calculateTime(t.downloadTiming.downloadTime)),e&&(this.adReplaceContentDuration=n.calculateTimeWithUndefined(e.replaceContentDuration),this.adFallbackIndex=(e.currentFallbackIndex||-1)+1);var i=e;i&&("pre"===i.position||"post"===i.position?this.adPosition=i.position:(this.adPosition="mid",this.adOffset=i.position),this.adPreloadOffset=n.calculateTimeWithUndefined(i.preloadOffset));var r=e;if(r){this.adIsPersistent=r.persistent;var o=r.tag;if(this.adFallbackIndex>0&&r.fallbackTags&&r.fallbackTags.length>=this.adFallbackIndex&&(o=r.fallbackTags[this.adFallbackIndex-1]),o&&(this.adTagType=o.type,this.adTagUrl=o.url),this.adTagUrl)try{var s=new URL(this.adTagUrl);this.adTagServer=s.hostname,this.adTagPath=s.pathname}catch(e){}}var u=e;u&&((0,a.isFiniteNumber)(u.scheduleTime)&&(this.adScheduleTime=n.calculateTime(u.scheduleTime)),this.adIdPlayer=u.id)};t.AdBreakSample=r},4439:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdSample=void 0;var a=i(5063),n=function(){function e(t){if(this.clicked=0,this.closed=0,this.completed=0,this.midpoint=0,this.quartile1=0,this.quartile3=0,this.skipped=0,this.started=0,t){if(this.adClickthroughUrl=t.clickThroughUrl,this.adId=t.id,this.mediaUrl=t.mediaFileUrl,this.mediaUrl)try{var i=new URL(this.mediaUrl);this.mediaPath=i.pathname,this.mediaServer=i.hostname}catch(e){}this.isLinear=t.isLinear,this.adPlaybackHeight=t.height,this.adPlaybackWidth=t.width,t.data&&(this.videoBitrate=void 0===t.data.bitrate?void 0:1e3*t.data.bitrate,this.streamFormat=t.data.mimeType);var n=t.data;n&&(n.adSystem&&(this.adSystem=n.adSystem.name),n.advertiser&&(this.advertiserName=n.advertiser.name),this.apiFramework=n.apiFramework,n.creative&&(this.creativeAdId=n.creative.adId,this.creativeId=n.creative.id,n.creative.universalAdId&&(this.universalAdIdRegistry=n.creative.universalAdId.idRegistry,this.universalAdIdValue=n.creative.universalAdId.value)),this.adDescription=n.adDescription,this.minSuggestedDuration=a.calculateTimeWithUndefined(n.minSuggestedDuration),n.survey&&(this.surveyUrl=n.survey.uri),this.adTitle=n.adTitle,this.wrapperAdsCount=n.wrapperAdIds?n.wrapperAdIds.length:0)}var r=t;r&&(this.adSkipAfter=e.parseSkipAfter(r.skippableAfter),this.adSkippable=r.skippable||(void 0===this.adSkipAfter?void 0:this.adSkipAfter>=0),this.adDuration=a.calculateTime(r.duration))}return e.parseSkipAfter=function(e){if(void 0!==e)return-1===e?e:a.calculateTime(e)},e}();t.AdSample=n},5529:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeCustomDataValues=t.extractCustomDataFieldsOnly=t.customDataFieldCount=t.customDataValuesKeys=void 0;var a=i(5063);t.customDataValuesKeys=["customData1","customData2","customData3","customData4","customData5","customData6","customData7","customData8","customData9","customData10","customData11","customData12","customData13","customData14","customData15","customData16","customData17","customData18","customData19","customData20","customData21","customData22","customData23","customData24","customData25","customData26","customData27","customData28","customData29","customData30","customData31","customData32","customData33","customData34","customData35","customData36","customData37","customData38","customData39","customData40","customData41","customData42","customData43","customData44","customData45","customData46","customData47","customData48","customData49","customData50","customData51","customData52","customData53","customData54","customData55","customData56","customData57","customData58","customData59","customData60","customData61","customData62","customData63","customData64","customData65","customData66","customData67","customData68","customData69","customData70","customData71","customData72","customData73","customData74","customData75","customData76","customData77","customData78","customData79","customData80","customData81","customData82","customData83","customData84","customData85","customData86","customData87","customData88","customData89","customData90","customData91","customData92","customData93","customData94","customData95","customData96","customData97","customData98","customData99","customData100","experimentName"],t.customDataFieldCount=t.customDataValuesKeys.filter((function(e){return e.match("customData\\d+")})).length;t.extractCustomDataFieldsOnly=function(e){var i={};return t.customDataValuesKeys.forEach((function(t){e[t]&&(i[t]=e[t])})),i};t.sanitizeCustomDataValues=function(e){var i=(0,t.extractCustomDataFieldsOnly)(e),n={};return(0,a.transferCustomDataFields)(i,n),n.experimentName=(0,a.getCustomDataString)(i.experimentName),n}},4501:function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.LicensingResult=void 0,function(e){e.Denied="denied",e.Granted="granted",e.Skip="skip"}(i||(t.LicensingResult=i={}))},3413:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeVideoDuration=function(e){if((0,n.isNullish)(e)||Number.isNaN(e)||e===1/0)return 0;return e},t.buildPlaybackInfoStreamTypeFields=function(e,t){var i={streamFormat:null!=e?e:void 0,progUrl:t};if((0,n.isNullish)(e))return i;if(e===a.StreamTypes.dash)return{streamFormat:e,mpdUrl:t};if(e===a.StreamTypes.hls)return{streamFormat:e,m3u8Url:t};if(e===a.StreamTypes.prog)return{streamFormat:e,progUrl:t};return i};var a=i(7224),n=i(5063)},4820:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStateMachineCallbacks=void 0,t.defaultStateMachineCallbacks={setup:function(){},startup:function(){},programChange:function(){},updateSourceMetadata:function(){},playing:function(){},heartbeat:function(){},qualitychange:function(){},updateSampleQualityInfo:function(){},audiotrack_changing:function(){},pause:function(){},seeking:function(){},rebuffering:function(){},error:function(){},end:function(){},unload:function(){},ad:function(){},mute:function(){},unMute:function(){},subtitle_changing:function(){},setVideoTimeEndFromEvent:function(){},setVideoTimeStartFromEvent:function(){},videoStartFailed:function(){},startCasting:function(){},casting:function(){},manualSourceChange:function(){},initialSourceChange:function(){},muting_ready:function(){},customdatachange:function(){},release:function(){}}},5426:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsCall=void 0;var a=i(7906),n=i(5923),r=i(92),o=i(5063),s=function(){function e(e){this.analyticsServerUrl=(0,o.joinUrls)(e,"analytics"),this.adAnalyticsServerUrl=(0,o.joinUrls)(e,"analytics/a")}return e.prototype.sendRequest=function(e,t){var i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),(0,r.post)(i,e,t)},e.prototype.sendUnloadRequest=function(e){var t=this,i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),this.trySendBeacon((function(e){return t.sendRequestSynchronous(e,o.noOp)}),i,e)},e.prototype.trySendBeacon=function(e,t,i,a){var r;if(void 0===a&&(a={}),void 0===(null===(r=n.globalScope.navigator)||void 0===r?void 0:r.sendBeacon))e(i);else{var o=new Blob([JSON.stringify(i)],a);n.globalScope.navigator.sendBeacon(t,o)||e(i)}},e.prototype.sendRequestSynchronous=function(e,t){var i=this.analyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(i=(0,a.appendSsaiRoutingParam)(i)),(0,r.post)(i,e,t,!1)},e.prototype.sendAdRequest=function(e){var t=this.adAnalyticsServerUrl;(0,a.isSsaiRelatedSample)(e)&&(t=(0,a.appendSsaiRoutingParam)(t));this.trySendBeacon((function(e){return(0,r.post)(t,e,o.noOp)}),t,e)},e}();t.AnalyticsCall=s},404:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodecHelper=void 0;var a=i(5923),n=i(5063),r={avc:['video/mp4; codecs="avc1.42000a"'],vp9:['video/mp4; codecs="vp09.00.50.08"'],av1:['video/mp4; codecs="av01.0.08M.08"'],hevc:['video/mp4; codecs="hev1.1.6.L93.B0"']},o=function(){function e(){}return Object.defineProperty(e,"supportedVideoFormats",{get:function(){var e;if(!(0,n.isNullish)(null===(e=a.globalScope.MediaSource)||void 0===e?void 0:e.isTypeSupported)&&(0,n.isFunction)(a.globalScope.MediaSource.isTypeSupported))return Object.getOwnPropertyNames(r).filter((function(e){return r[e].some((function(e){return a.globalScope.MediaSource.isTypeSupported(e)}))}))},enumerable:!1,configurable:!0}),e}();t.CodecHelper=o},1652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDebugging=void 0;var i=function(e,t,i,a,n){this.event=e,this.from=t,this.to=i,this.timestamp=a,this.eventObject=n};t.EventDebugging=i},92:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.post=function(e,t,i,o){void 0===o&&(o=!0);(0,r.isReactNative)()&&!o&&(o=!0);var s,u=!1;a.globalScope.XDomainRequest?(s=new a.globalScope.XDomainRequest,u=!0):s=new XMLHttpRequest;var c=function(){if(s.readyState==XMLHttpRequest.DONE){if(s.responseText<=0)return;var e=JSON.parse(s.responseText);i(e)}};u?s.onload=c:s.onreadystatechange=c;try{s.open("POST",e,o),u||s.setRequestHeader("Content-Type","text/plain"),s.send(JSON.stringify(t))}catch(e){n.logger.error("Failed to send POST request.",e)}};var a=i(5923),n=i(1916),r=i(5063)},5253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCall=function(e,t,i,r){var o=(0,n.joinUrls)(r,"/licensing"),s={analyticsVersion:i,domain:t,key:e};return new Promise((function(e){(0,a.post)(o,s,(function(t){e(t)}))}))};var a=i(92),n=i(5063)},1916:function(e,t){"use strict";var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var a,n=0,r=t.length;n<r;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.padRight=void 0;var a=function(){function e(){}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.initialize=function(e){this.analyticsDebugConfig=e},e.prototype.log=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.log(e,t)},e.prototype.table=function(e,t){this.enabled&&console.table(e,t)},e.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.warn(e,t)},e.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.enabled&&console.error(e,t)},e.prototype.errorMessageToUser=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];console.error.apply(console,i([e],t,!1))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this.analyticsDebugConfig||!1},enumerable:!1,configurable:!0}),e}();t.padRight=function(e,t){return(e+new Array(t).join(" ")).slice(0,t)},t.logger=a.getInstance()},4649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEQUENCE_NUMBER_LIMIT=t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=t.ANALYTICS_REBUFFER_TIMEOUT=t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=t.ANALYTICS_VIDEOSTART_TIMEOUT=t.ANALYTICS_LICENSECALL_TIMEOUT=t.ANALYTICS_BACKEND_BASE_URL=t.MESSAGE_NAMESPACE=void 0,t.MESSAGE_NAMESPACE="urn:x-cast:com.bitmovin.analytics.cast",t.ANALYTICS_BACKEND_BASE_URL="https://analytics-ingress-global.bitmovin.com",t.ANALYTICS_LICENSECALL_TIMEOUT=6e4,t.ANALYTICS_VIDEOSTART_TIMEOUT=6e4,t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=50,t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=36e5,t.ANALYTICS_REBUFFER_TIMEOUT=12e4,t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=3,t.SEQUENCE_NUMBER_LIMIT=1e3},5063:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tryJSONStringify=t.isAudioMuted=t.isReactNative=t.joinUrls=t.getURLResourceName=t.calculatePercentage=t.transferCustomDataFields=t.getCustomDataString=t.noOp=t.getCurrentTimestamp=t.calculateTimeWithUndefined=t.calculateTime=t.removeTrailingSlash=t.isFunction=t.isPlainObject=t.isObject=t.toBoolean=t.isBoolean=t.isNotNullish=t.isNullish=void 0,t.isErrorSeverity=function(e){return"CRITICAL"===e||"INFO"===e},t.getPageLoadType=function(){if((0,r.isDocumentHidden)())return a.PAGE_LOAD_TYPE.BACKGROUND;return a.PAGE_LOAD_TYPE.FOREGROUND},t.isArrayBuffer=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)};var a=i(9946),n=i(5529),r=i(3848),o=i(9422),s=i(1820);t.isNullish=function(e){return null==e};t.isNotNullish=function(e){return!(0,t.isNullish)(e)};t.isBoolean=function(e){return!(0,t.isNullish)(e)&&"boolean"==typeof e};t.toBoolean=function(e){return Boolean(e).valueOf()};t.isObject=function(e){return(0,t.isNotNullish)(e)&&"object"==typeof e};t.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)};t.isFunction=function(e){return"function"==typeof e};t.removeTrailingSlash=function(e){return e.replace(/\/$/g,"")};t.calculateTime=function(e){return Math.round(1e3*e)};t.calculateTimeWithUndefined=function(e){if(!(0,t.isNullish)(e))return(0,t.calculateTime)(e)};t.getCurrentTimestamp=function(){return Date.now()};t.noOp=function(){};t.getCustomDataString=function(e){return"object"==typeof e?(0,t.tryJSONStringify)(e):(0,t.isFunction)(e)?(0,t.getCustomDataString)(e()):void 0===e?e:"string"!=typeof e?String(e):e};t.transferCustomDataFields=function(e,i){for(var a=1;a<=n.customDataFieldCount;a++){var r="customData".concat(a);i[r]=(0,t.getCustomDataString)(e[r])}};t.calculatePercentage=function(e,t){if(void 0!==t&&0!==t)return Math.round((e||0)/t*100)};t.getURLResourceName=function(e){return 0===e.length?"":e.split("/").pop()||""};t.joinUrls=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce((function(e,t){return((0,s.endsWith)(e,"/")&&void 0!==t?e.substr(0,e.length-1):e)+"/"+((0,s.startsWith)(t,"/")?t.substr(1):t)}))};t.isReactNative=function(){return"ReactNative"===(0,o.getGlobalNavigatorProduct)()};t.isAudioMuted=function(e,t){return e||t<.01};t.tryJSONStringify=function(e){if(!(0,t.isNullish)(e))try{return JSON.stringify(e)}catch(e){return}}},4926:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="v2.52.0"},3612:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewportTracker=void 0;var a=i(3848),n=i(5923),r=i(1916),o=i(1820),s=i(5063),u=function(){function e(e,t,i){void 0===i&&(i=1);var n=this;this.inViewport=void 0,this.threshold=i,this.onIntersectionChanged=t,this.element=e;try{var o={root:null,rootMargin:"0px",threshold:i};this.observer=new IntersectionObserver((function(e,t){return n.handleIntersect(e,t)}),o),this.observer.observe(e)}catch(e){r.logger.log("Couldn't create instance of IntersectionObserver. timeInViewport will always be reported as 100%.")}this.hiddenPropertyName=(0,a.getDocumentPropertyWithPrefix)("hidden"),this.hiddenPropertyName&&(this.visibilityChange=this.hiddenPropertyName.replace("hidden","")+"visibilitychange",(0,a.addDocumentEventListener)(this.visibilityChange,this.handleVisibilityChange=this.handleVisibilityChange.bind(this),!1))}return e.prototype.isHidden=function(){return!((0,s.isNullish)(n.globalScope.document)||!(0,o.isValidString)(this.hiddenPropertyName))&&!0===n.globalScope.document[this.hiddenPropertyName]},e.prototype.isInViewport=function(){return!this.isHidden()&&(!!(0,s.isNullish)(this.inViewport)||this.inViewport)},e.prototype.dispose=function(){this.observer&&(this.observer.unobserve(this.element),this.observer.disconnect()),this.visibilityChange&&(0,a.removeDocumentEventListener)(this.visibilityChange,this.handleVisibilityChange,!1)},e.prototype.handleVisibilityChange=function(){this.onIntersectionChanged()},e.prototype.handleIntersect=function(e,t){var i=this;e.forEach((function(e){e.target===i.element&&(i.inViewport=!(e.intersectionRatio<i.threshold))})),this.onIntersectionChanged()},e}();t.ViewportTracker=u},8421:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWebOSTVModelName=function(){try{var e=(0,a.getGlobalWebOSApi)(),t=e.webOSSystem,i=e.PalmSystem,r=(null==t?void 0:t.deviceInfo)?JSON.parse(t.deviceInfo):(null==i?void 0:i.deviceInfo)&&JSON.parse(i.deviceInfo);return(0,n.isValidString)(null==r?void 0:r.modelName)&&!(0,n.isBlank)(null==r?void 0:r.modelName)?r.modelName:void 0}catch(e){return}};var a=i(9422),n=i(1820)},2376:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WindowEventTracker=void 0;var a=i(9422),n=function(){function e(){this.trackedObjects=[]}return e.prototype.addEventListener=function(e,t){this.trackedObjects.push({eventName:e,func:t}),(0,a.addGlobalEventListener)(e,t)},e.prototype.release=function(){for(;0!==this.trackedObjects.length;){var e=this.trackedObjects.pop();void 0!==e&&(0,a.removeGlobalEventListener)(e.eventName,e.func)}},e}();t.WindowEventTracker=n},8331:function(e,t,i){"use strict";var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeAnalyticsConfig=function(e){if((0,c.isNullish)(e))return{};u.isBoolean(e.isLive)||(e.isLive=void 0);(0,c.isNotNullish)(e.config)&&(0,c.isNotNullish)(e.config.errorTransformerCallback)&&((0,c.isFunction)(e.config.errorTransformerCallback.transform)||(e.config.errorTransformerCallback=void 0));return e},t.guardConfigChangeAgainstMissingTitle=function(e,t){if((0,c.isNullish)(e)||(0,c.isNullish)(t))return;e.title&&(0,s.isBlank)(t.title)&&o.logger.error("The new analytics configuration does not contain the field `title`")},t.guardConfigChangeAgainstMissingIsLive=function(e,t){if((0,c.isNullish)(e)||(0,c.isNullish)(t))return;e.isLive&&(0,c.isNullish)(t.isLive)&&o.logger.error("The new analytics configuration does not contain the field `isLive`. It will default to `false` which might be unintended? Once stream playback information is available the type will be populated.")},t.guardAgainstDuplicatedUserId=function(e){if((0,c.isNullish)(e))return;(0,c.isNotNullish)(e.customUserId)&&(0,c.isNotNullish)(e.userId)&&o.logger.warn("Configuration Warning: \nCustomUserId and UserId are set in the config \nValue of UserId will be used in sample \nPlease only use one configuration field to set your userId")},t.getDeviceInformationFromAnalyticsConfig=function(e){if((0,c.isNullish)(e))return;var t={};(0,s.isValidString)(e.deviceType)&&!(0,s.isBlank)(e.deviceType)&&(t.model=e.deviceType);(0,s.isValidString)(e.deviceClass)&&!(0,s.isBlank)(e.deviceClass)&&(t.deviceClass=e.deviceClass);if(0===Object.keys(t).length)return;return t},t.getDomainFromAnalyticsConfig=function(e){var t,i,a=(0,r.getGlobalLocationHostname)(),n=a?u.removeTrailingSlash(a):"";return null!==(i=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.origin)&&void 0!==i?i:n},t.mergeAnalyticsConfig=function(e,t){var i=function(e){var t=["cdnProvider","videoId","title","isLive","experimentName"],i=/customData\d{1,3}$/g;for(var a in e)((0,c.isNotNullish)(a.match(i))||t.includes(a))&&delete e[a];return e}(e),n=function(e,t){if((0,c.isNotNullish)(t))return a(a(a({},e),{enabled:!0}),t);return null!=e?e:{}}(e.config,t.config);return a(a(a({},i),t),{config:n})},t.applySourceMetadataToAnalyticsConfig=function(e,t){var i=a({},e);(0,c.isNotNullish)(t.title)&&(i.title=t.title);(0,c.isNotNullish)(t.videoId)&&(i.videoId=t.videoId);(0,c.isNotNullish)(t.cdnProvider)&&(i.cdnProvider=t.cdnProvider);(0,c.isNotNullish)(t.isLive)&&(i.isLive=t.isLive);(0,c.isNotNullish)(t.customData)&&(i=a(a({},i),(0,n.extractCustomDataFieldsOnly)(t.customData)));return i};var n=i(5529),r=i(9422),o=i(1916),s=i(1820),u=i(5063),c=i(5063)},9627:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCollectorRequirementsValid=function(e){var t=[],i=(0,r.isBlank)((0,a.getDomainFromAnalyticsConfig)(e));i&&t.push("no `domain` value found (neither from `window.location` object nor provided by `AnalyticsConfig.config.origin`). Without this value, we cannot verify the origin of your analytics data. Please provide the registered domain via the config during collector creation.");if(t.length>0){var o="Collector setup failed:"+t.join(" -- ");n.logger.errorMessageToUser(o)}return!i};var a=i(8331),n=i(1916),r=i(1820)},3848:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.setCookie=t.getCookie=t.removeDocumentEventListener=t.addDocumentEventListener=t.isVideoInFullscreen=t.isDocumentHidden=t.getDocumentPropertyWithPrefix=void 0;var a=i(1916),n=i(1820),r=i(5063);t.getDocumentPropertyWithPrefix=function(e){if(!(0,r.isNullish)(document)){if(e in document)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=0,a=["webkit","moz","ms","o"];i<a.length;i++){var n=a[i]+t;if(n in document)return n}}};t.isDocumentHidden=function(){var e=(0,t.getDocumentPropertyWithPrefix)("hidden");return!!(0,n.isValidString)(e)&&!0===document[e]};t.isVideoInFullscreen=function(){var e,i=(0,t.getDocumentPropertyWithPrefix)("fullscreenElement");return!!(0,n.isValidString)(i)&&"VIDEO"===(null===(e=document[i])||void 0===e?void 0:e.nodeName)};t.addDocumentEventListener=function(e,t,i){(0,r.isNullish)(document)||!(0,r.isFunction)(document.addEventListener)||(0,r.isNullish)(t)||document.addEventListener(e,t,i)};t.removeDocumentEventListener=function(e,t,i){(0,r.isNullish)(document)||!(0,r.isFunction)(document.removeEventListener)||(0,r.isNullish)(t)||document.removeEventListener(e,t,i)};t.getCookie=function(e){if(!(0,r.isNullish)(document)){var t;try{t=document.cookie.split(";")}catch(e){return void a.logger.log("failed to access cookie objects on document",e)}for(var i=e+"=",n=0,o=t;n<o.length;n++){for(var s=o[n];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(i))return s.substring(i.length,s.length)}return""}};t.setCookie=function(e,t,i){if(!(0,r.isNullish)(document)){var n=e+"="+t+"; path=/";(null==i?void 0:i.domain)&&(n+="; domain=".concat(i.domain)),(null==i?void 0:i.expires)&&(n+="; expires=".concat(i.expires)),(null==i?void 0:i.maxAge)&&(n+="; max-age=".concat(i.maxAge));try{document.cookie=n}catch(e){return void a.logger.log("failed to set cookie object on document",e)}}};t.deleteCookie=function(e){if(!(0,r.isNullish)(document))try{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}catch(e){return void a.logger.log("failed to delete cookies from document",e)}}},5923:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalScope=void 0,t.globalScope=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if(void 0!==i.g)return i.g;if("undefined"!=typeof self)return self;throw new Error("Unable to locate global object")}()},9422:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGlobalTheoPlayerVersion=t.getGlobalVideojsVersion=t.getGlobalNavigatorUserAgent=t.getGlobalNavigatorProduct=t.getGlobalNavigatorLanguage=t.hasGlobalWebOSApi=t.getGlobalWebOSApi=t.getGlobalPerformanceNow=t.getGlobalLocationPathname=t.getGlobalLocationHostname=t.removeGlobalEventListener=t.addGlobalEventListener=t.getGlobalScreenDimensions=t.getGlobalDevicePixelRatio=void 0;var a=i(5923),n=i(1460),r=i(1820),o=i(5063);t.getGlobalDevicePixelRatio=function(){return(0,o.isNullish)(a.globalScope.devicePixelRatio)?1:a.globalScope.devicePixelRatio>0?a.globalScope.devicePixelRatio:1};t.getGlobalScreenDimensions=function(){if(!(0,o.isNullish)(a.globalScope.screen)&&(0,n.isNumber)(a.globalScope.screen.width)&&(0,n.isNumber)(a.globalScope.screen.height)){var e=(0,t.getGlobalDevicePixelRatio)(),i=a.globalScope.screen.width*e,r=a.globalScope.screen.height*e;if(!(!isFinite(i)||!isFinite(r)||i<=0||r<=0))return{width:i,height:r,scale:e}}};t.addGlobalEventListener=function(e,t){(0,o.isNullish)(a.globalScope.addEventListener)||!(0,o.isFunction)(a.globalScope.addEventListener)||(0,o.isNullish)(t)||a.globalScope.addEventListener(e,t)};t.removeGlobalEventListener=function(e,t){(0,o.isNullish)(a.globalScope.removeEventListener)||!(0,o.isFunction)(a.globalScope.removeEventListener)||(0,o.isNullish)(t)||a.globalScope.removeEventListener(e,t)};t.getGlobalLocationHostname=function(){if(!(0,o.isNullish)(a.globalScope.location)&&(0,r.isValidString)(a.globalScope.location.hostname))return a.globalScope.location.hostname};t.getGlobalLocationPathname=function(){if(!(0,o.isNullish)(a.globalScope.location)&&(0,r.isValidString)(a.globalScope.location.pathname))return a.globalScope.location.pathname};t.getGlobalPerformanceNow=function(){var e;if(!(0,o.isNullish)(null===(e=a.globalScope.performance)||void 0===e?void 0:e.now)&&(0,o.isFunction)(a.globalScope.performance.now))return a.globalScope.performance.now()};t.getGlobalWebOSApi=function(){return{webOSSystem:a.globalScope.webOSSystem,PalmSystem:a.globalScope.PalmSystem}};t.hasGlobalWebOSApi=function(){var e=(0,t.getGlobalWebOSApi)(),i=e.webOSSystem,a=e.PalmSystem;return!(0,o.isNullish)(i)||!(0,o.isNullish)(a)};t.getGlobalNavigatorLanguage=function(){if(!(0,o.isNullish)(a.globalScope.navigator))return a.globalScope.navigator.language||a.globalScope.navigator.userLanguage};t.getGlobalNavigatorProduct=function(){if(!(0,o.isNullish)(a.globalScope.navigator))return a.globalScope.navigator.product};t.getGlobalNavigatorUserAgent=function(){if(!(0,o.isNullish)(a.globalScope.navigator)&&(0,r.isValidString)(a.globalScope.navigator.userAgent))return a.globalScope.navigator.userAgent};t.getGlobalVideojsVersion=function(){if(!(0,o.isNullish)(a.globalScope.videojs))return a.globalScope.videojs.VERSION};t.getGlobalTheoPlayerVersion=function(){if(!(0,o.isNullish)(a.globalScope.THEOplayer))return a.globalScope.THEOplayer.version}},1460:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntOrUndefined=t.isFiniteNumber=t.isNumber=void 0;var a=i(5063);t.isNumber=function(e){return!(0,a.isNullish)(e)&&"number"==typeof e};t.isFiniteNumber=function(e){return!!(0,t.isNumber)(e)&&((0,a.isFunction)(Number.isFinite)?Number.isFinite(e):isFinite(e))};t.parseIntOrUndefined=function(e){var i=parseInt(e,10);return(0,t.isFiniteNumber)(i)?i:void 0}},2974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectValues=void 0;t.objectValues=function(e){return Object.keys(e).map((function(t){return e[t]}))}},6481:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearSampleStateValues=function(e){e.ad=0,e.adId=void 0,e.adIndex=void 0,e.adPosition=void 0,e.adSystem=void 0,e.autoplay=void 0,e.buffered=0,e.castTech=void 0,e.completed=void 0,e.drmLoadTime=void 0,e.droppedFrames=0,e.duration=0,e.errorCode=void 0,e.errorData=void 0,e.errorMessage=void 0,e.errorSegments=void 0,e.errorSeverity=void 0,e.isProgramChange=void 0,e.pageLoadTime=0,e.paused=0,e.played=0,e.playerStartupTime=0,e.seeked=0,e.startupTime=0,e.state=void 0,e.videoStartFailed=void 0,e.videoStartFailedReason=void 0,e.videoStartupTime=0,e[a.SSAI_RELATED_SAMPLE_MARKER]=void 0},t.getDefaultSamplePath=function(){var e=(0,n.getGlobalLocationPathname)();return(0,r.isValidString)(e)?(0,o.removeTrailingSlash)(e):void 0};var a=i(7906),n=i(9422),r=i(1820),o=i(5063)},1820:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=t.endsWith=t.isBlank=t.isEmpty=t.isValidString=void 0;var a=i(5063);t.isValidString=function(e){return(0,a.isNotNullish)(e)&&"string"==typeof e};t.isEmpty=function(e){return(0,a.isNullish)(e)||0===e.length};t.isBlank=function(e){return(0,t.isEmpty)(e)||(0,t.isEmpty)(null==e?void 0:e.trim())};t.endsWith=function(e,i){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(i))&&((0,a.isFunction)(String.prototype.endsWith)?e.endsWith(i):e.substring(e.length-i.length)===i)};t.startsWith=function(e,i){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(i))&&((0,a.isFunction)(String.prototype.startsWith)?e.startsWith(i):e.substring(0,i.length)===i)}},2982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0;t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}},t={};function i(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a].call(r.exports,r,r.exports,i),r.exports}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var a={};return function(){"use strict";var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.BitmovinPwxAnalyticsPackage=e.CdnProviders=e.Players=e.version=void 0;var t=i(2506);Object.defineProperty(e,"BitmovinPwxAnalyticsPackage",{enumerable:!0,get:function(){return t.BitmovinPwxAnalyticsPackage}});var n=i(4355);Object.defineProperty(e,"CdnProviders",{enumerable:!0,get:function(){return n.CdnProvider}});var r=i(556);Object.defineProperty(e,"Players",{enumerable:!0,get:function(){return r.Player}});var o=i(4926);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.VERSION}})}(),a}()}));
|
|
12
12
|
//# sourceMappingURL=bitmovin-analytics-bitmovin-player-web-x.js.map
|