@viewlift/player-backup 2.0.265-backup → 2.0.266-backup

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.
Files changed (145) hide show
  1. package/cjs/{autoNextVideo-286a72f2.js → autoNextVideo-1949226d.js} +1 -1
  2. package/cjs/bundle.css +597 -597
  3. package/cjs/{features-9fcbe89d.js → features-1907e0ec.js} +1 -1
  4. package/cjs/generic-500845f0.js +1 -0
  5. package/cjs/{index-ec92d4e3.js → index-5237cb68.js} +1 -1
  6. package/cjs/{index-1b1f220d.js → index-fa2d6f33.js} +1 -1
  7. package/cjs/index.js +1 -1
  8. package/cjs/{multicamv2-8f8a6ca4.js → multicamv2-5b067c28.js} +1 -1
  9. package/cjs/{multicamv2-9c5cfb7c.js → multicamv2-6bb0326d.js} +1 -1
  10. package/cjs/{nextEpisodeButton-416a7b7d.js → nextEpisodeButton-19ea5358.js} +1 -1
  11. package/cjs/{playlist-b84c4881.js → playlist-0f88791a.js} +1 -1
  12. package/cjs/{series-f15deefd.js → series-80055c05.js} +1 -1
  13. package/cjs/{series-v2-153582ab.js → series-v2-5d3fd68d.js} +1 -1
  14. package/cjs/{series-v2-ef6ad058.js → series-v2-7a515166.js} +1 -1
  15. package/cjs/{skin-e7f83ec7.js → skin-0b00da79.js} +1 -1
  16. package/cjs/{skin-2320b400.js → skin-156f69fb.js} +1 -1
  17. package/cjs/{skin-da292ff2.js → skin-2d523755.js} +1 -1
  18. package/cjs/{skin-796b64fe.js → skin-34eff1d6.js} +1 -1
  19. package/cjs/{skin-ea8c5b0e.js → skin-457f5c7d.js} +1 -1
  20. package/cjs/{skin-228ba96b.js → skin-47f57b21.js} +1 -1
  21. package/cjs/{skin-ac1ab4b6.js → skin-4bc06df1.js} +1 -1
  22. package/cjs/{skin-39c77833.js → skin-a9ec6afc.js} +1 -1
  23. package/cjs/{skin-7291d01d.js → skin-d1c1d0e2.js} +1 -1
  24. package/cjs/{skin-d4460618.js → skin-d42ac897.js} +1 -1
  25. package/cjs/{util-d3734cd9.js → util-19bcc434.js} +1 -1
  26. package/cjs/{videoSelector-095d614f.js → videoSelector-1bf97a60.js} +1 -1
  27. package/cjs/{videoSelector-796d5fbe.js → videoSelector-8abb9472.js} +1 -1
  28. package/esm/{autoNextVideo-f34ed8ed.js → autoNextVideo-4628db56.js} +1 -1
  29. package/esm/bundle.css +597 -597
  30. package/esm/{features-2820ac47.js → features-545c2e76.js} +1 -1
  31. package/esm/generic-79c7dae3.js +1 -0
  32. package/esm/{index-241b2666.js → index-6a28dcc1.js} +1 -1
  33. package/esm/{index-4fb2c3f6.js → index-d3e760d6.js} +1 -1
  34. package/esm/index.js +1 -1
  35. package/esm/{multicamv2-ef3c32dd.js → multicamv2-72c981f6.js} +1 -1
  36. package/esm/{multicamv2-21eda7f7.js → multicamv2-97d65544.js} +1 -1
  37. package/esm/{nextEpisodeButton-0f62efa9.js → nextEpisodeButton-fe640384.js} +1 -1
  38. package/esm/{playlist-61356e83.js → playlist-b70a3f20.js} +1 -1
  39. package/esm/{series-9823330d.js → series-f0eef0d4.js} +1 -1
  40. package/esm/{series-v2-31654dc0.js → series-v2-4f495705.js} +1 -1
  41. package/esm/{series-v2-79ebc051.js → series-v2-74d7bfc5.js} +1 -1
  42. package/esm/{skin-ccfcc5cc.js → skin-408a1df2.js} +1 -1
  43. package/esm/{skin-13a1ba23.js → skin-46def1ff.js} +1 -1
  44. package/esm/{skin-d66cb2d0.js → skin-473d54a4.js} +1 -1
  45. package/esm/{skin-626d8784.js → skin-62060e23.js} +1 -1
  46. package/esm/{skin-9e9f4e79.js → skin-a6ec4b44.js} +1 -1
  47. package/esm/{skin-63ce846c.js → skin-c2b55dc5.js} +1 -1
  48. package/esm/{skin-d30e0e38.js → skin-ce2d6f0a.js} +1 -1
  49. package/esm/{skin-d559c89f.js → skin-d3672ada.js} +1 -1
  50. package/esm/{skin-a7c4274e.js → skin-dc09dcac.js} +1 -1
  51. package/esm/{skin-48a8afa9.js → skin-e48ca84f.js} +1 -1
  52. package/esm/{util-335174b2.js → util-93288c09.js} +1 -1
  53. package/esm/{videoSelector-7707e0e2.js → videoSelector-a5f295ae.js} +1 -1
  54. package/esm/{videoSelector-96962ea8.js → videoSelector-b4db840c.js} +1 -1
  55. package/package.json +1 -1
  56. package/cjs/generic-87933502.js +0 -1
  57. package/esm/apis/index.d.ts +0 -11
  58. package/esm/assets/icons.d.ts +0 -22
  59. package/esm/components/advertisement/advertisement.d.ts +0 -1
  60. package/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
  61. package/esm/components/big-mute-btn/index.d.ts +0 -9
  62. package/esm/components/broadcaster_image/index.d.ts +0 -1
  63. package/esm/components/caption-settings/caption-settings.d.ts +0 -14
  64. package/esm/components/dvr-seekbar/index.d.ts +0 -14
  65. package/esm/components/multicam/multicam.d.ts +0 -18
  66. package/esm/components/multicam-v2/multicamv2.d.ts +0 -13
  67. package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
  68. package/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
  69. package/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
  70. package/esm/components/playlist-tray/playlist.d.ts +0 -15
  71. package/esm/components/quality-selector/index.d.ts +0 -1
  72. package/esm/components/resolution/resolution.d.ts +0 -19
  73. package/esm/components/series/series.d.ts +0 -10
  74. package/esm/components/series-v2/helper.d.ts +0 -3
  75. package/esm/components/series-v2/series-v2.d.ts +0 -25
  76. package/esm/components/series-v2_TEMP/helper.d.ts +0 -1
  77. package/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
  78. package/esm/components/settings-icon/settings-icon.d.ts +0 -17
  79. package/esm/components/timer/index.d.ts +0 -5
  80. package/esm/components/trickplay/helper.d.ts +0 -13
  81. package/esm/components/trickplay/index.d.ts +0 -1
  82. package/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
  83. package/esm/components/video-selector/videoSelector.d.ts +0 -18
  84. package/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
  85. package/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
  86. package/esm/contentHandler/content_types/epg.d.ts +0 -4
  87. package/esm/contentHandler/content_types/external.d.ts +0 -4
  88. package/esm/contentHandler/content_types/index.d.ts +0 -5
  89. package/esm/contentHandler/content_types/series.d.ts +0 -4
  90. package/esm/contentHandler/content_types/vod.d.ts +0 -4
  91. package/esm/contentHandler/firePlayer.d.ts +0 -4
  92. package/esm/core/captions.d.ts +0 -10
  93. package/esm/core/generic.d.ts +0 -48
  94. package/esm/core/player_instance.d.ts +0 -6
  95. package/esm/core/renditions.d.ts +0 -6
  96. package/esm/core/util.d.ts +0 -19
  97. package/esm/core/volume.d.ts +0 -2
  98. package/esm/dash/dashHandler.d.ts +0 -1
  99. package/esm/dash/linear_ssai.d.ts +0 -1
  100. package/esm/dash/sgai.d.ts +0 -10
  101. package/esm/features.d.ts +0 -31
  102. package/esm/generic-62a2101a.js +0 -1
  103. package/esm/globalPlayerEvents.d.ts +0 -8
  104. package/esm/helpers/browser.d.ts +0 -2
  105. package/esm/helpers/currentVideoInfo.d.ts +0 -19
  106. package/esm/helpers/errorHandling.d.ts +0 -2
  107. package/esm/helpers/loader.d.ts +0 -2
  108. package/esm/helpers/localisation.d.ts +0 -2
  109. package/esm/helpers/scriptLoader.d.ts +0 -2
  110. package/esm/helpers/secondary-switching.d.ts +0 -1
  111. package/esm/helpers/skin.d.ts +0 -20
  112. package/esm/helpers/sourceRetriever.d.ts +0 -11
  113. package/esm/helpers/ssaiEventHandler.d.ts +0 -27
  114. package/esm/helpers/token.d.ts +0 -9
  115. package/esm/index.d.ts +0 -39
  116. package/esm/plugins/chromecast.d.ts +0 -18
  117. package/esm/plugins/comscore_dist/index.d.ts +0 -50
  118. package/esm/plugins/index.d.ts +0 -2
  119. package/esm/plugins/library.d.ts +0 -8
  120. package/esm/plugins/videojs-dash5.es.d.ts +0 -51
  121. package/esm/plugins/videojs_contrib_dash.d.ts +0 -51
  122. package/esm/skin/carousel/skin.d.ts +0 -1
  123. package/esm/skin/default/events.d.ts +0 -1
  124. package/esm/skin/default/skin.d.ts +0 -1
  125. package/esm/skin/defaultV2/events.d.ts +0 -1
  126. package/esm/skin/defaultV2/skin.d.ts +0 -1
  127. package/esm/skin/index.d.ts +0 -1
  128. package/esm/skin/mini/events.d.ts +0 -1
  129. package/esm/skin/mini/skin.d.ts +0 -1
  130. package/esm/skin/minimalist/skin.d.ts +0 -1
  131. package/esm/skin/multiplayer/events.d.ts +0 -1
  132. package/esm/skin/multiplayer/skin.d.ts +0 -1
  133. package/esm/skin/news/events.d.ts +0 -1
  134. package/esm/skin/news/skin.d.ts +0 -1
  135. package/esm/skin/news_live/events.d.ts +0 -1
  136. package/esm/skin/news_live/skin.d.ts +0 -1
  137. package/esm/skin/vl_one/events.d.ts +0 -1
  138. package/esm/skin/vl_one/skin.d.ts +0 -1
  139. package/esm/utilities/analytics.d.ts +0 -3
  140. package/esm/utilities/beacon.d.ts +0 -3
  141. package/esm/utilities/comscore.d.ts +0 -5
  142. package/esm/utilities/controlsColor.d.ts +0 -1
  143. package/esm/utilities/conviva.d.ts +0 -5
  144. package/esm/utilities/keyboardShortcuts.d.ts +0 -5
  145. package/esm/utilities/replaceMacros.d.ts +0 -1
@@ -1,15 +0,0 @@
1
- export default playlistSelector;
2
- declare const playlistSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class playlistSelector extends playlistSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- addFunctionality(selectionContainer: any): void;
15
- }
@@ -1 +0,0 @@
1
- export function addQualitySelector(playerId: any): void;
@@ -1,19 +0,0 @@
1
- export default resolutionModule;
2
- export function playSelectedResolution(playerId: any, obj: any, auto: any): void;
3
- declare const resolutionModule_base: typeof import("video.js/dist/types/component").default;
4
- declare class resolutionModule extends resolutionModule_base {
5
- constructor(player: any, options?: {});
6
- masterRenditions: any[];
7
- playerId: any;
8
- skin: any;
9
- icon: any;
10
- fontSizeOptions: number[];
11
- toggleContentOnHover(head: any, content: any): void;
12
- changeFontSize(optionSelected: any): void;
13
- createRenditions(masterRenditions: any): void;
14
- addCustomFont: (content: any) => void;
15
- addDynamicSwitchIfAuto(): void;
16
- resetRenditions: () => void;
17
- createEl(): Element;
18
- addAutoRendition(videoType: any, renditionValues: any): void;
19
- }
@@ -1,10 +0,0 @@
1
- export function customSeasonList(buttonElement: any, seriesData: any): void;
2
- declare const seriesModule_base: typeof import("video.js/dist/types/component").default;
3
- export class seriesModule extends seriesModule_base {
4
- constructor(player: any, options?: {});
5
- seriesData: any[];
6
- createEl(): HTMLDivElement;
7
- loadCSS(): void;
8
- }
9
- export function handleSeasonChange(season: any, idx: any, player: any, config: any): void;
10
- export {};
@@ -1,3 +0,0 @@
1
- export function createSeriesWatchMap(seriesId: any, token: any): void;
2
- export function getSeasonNumber(): number;
3
- export function getEpisodeNumber(): any;
@@ -1,25 +0,0 @@
1
- export default SeriesV2;
2
- declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class SeriesV2 extends SeriesV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- currentVideoData: any;
9
- selectedSeason: number;
10
- cb: any;
11
- autoPlayNext: any;
12
- watchMap: any;
13
- createEl(): Element;
14
- loadCSS(): void;
15
- toggleOpenClose(selectionContainer: any): void;
16
- handleTabIndexSelector(): void;
17
- handleCloseTabIndex(): void;
18
- initialiseStructure(): void;
19
- handleSeriesCloseIcon(icon: any, selectionContainer: any, head: any): void;
20
- addFunctionality(selectionContainer: any): void;
21
- createSeasonLister(): Element;
22
- loadSeriesAssetById(episodes: any, i: any): void;
23
- getSeasonDetailsContainer(episodes: any, content: any): Window;
24
- showSeasonDetails(season: any): void;
25
- }
@@ -1 +0,0 @@
1
- export function createSeriesWatchMap(seriesId: any, token: any): void;
@@ -1,21 +0,0 @@
1
- export default SeriesV2;
2
- declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class SeriesV2 extends SeriesV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- currentVideoData: any;
9
- selectedSeason: number;
10
- cb: any;
11
- autoPlayNext: any;
12
- watchMap: any;
13
- createEl(): Element;
14
- loadCSS(): void;
15
- toggleOpenClose(selectionContainer: any): void;
16
- initialiseStructure(): void;
17
- addFunctionality(selectionContainer: any): void;
18
- createSeasonLister(): Element;
19
- getSeasonDetailsContainer(episodes: any, content: any): Window;
20
- showSeasonDetails(season: any): void;
21
- }
@@ -1,17 +0,0 @@
1
- export default SettingsV2;
2
- declare const SettingsV2_base: typeof import("video.js/dist/types/component").default;
3
- declare class SettingsV2 extends SettingsV2_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- currentVideoData: any;
8
- fillResolutionBitrateMap(renditions: any): void;
9
- resolutionBitrateMap: Map<any, any>;
10
- isEnhancedBitrate(rendition: any): boolean;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- addFunctionality(selectionContainer: any): void;
15
- createAudioQualityContainer(): Element;
16
- createVideoQualityContainer(): Element;
17
- }
@@ -1,5 +0,0 @@
1
- export function handleCountdownTimer(playerId: any, err: any, completeCb: any): void;
2
- export function monthDiff(d1: any, d2: any): number;
3
- export function yearDiff(date1: any, date2: any): number;
4
- export function getValues(countDown: any, targetDate: any): number[];
5
- export function createUI([years, months, weeks, days, hours, minutes, seconds, container]: [any, any, any, any, any, any, any, any]): void;
@@ -1,13 +0,0 @@
1
- export function processAllImages(imageStreams: any): Promise<{}>;
2
- export function fetchAndParseM3U8(url: any, playerId: any): Promise<any[]>;
3
- export function getImageStreams(masterURI: any, imageURI: any): Promise<{
4
- resolution: any;
5
- duration: any;
6
- uri: any;
7
- layout: any;
8
- }[]>;
9
- export function fetchAndParseMPD(mpdUrl: any, playerId: any): Promise<{
10
- duration: number;
11
- layout: string;
12
- uri: string;
13
- }[]>;
@@ -1 +0,0 @@
1
- export function initiateTrickplay(playerId: any): Promise<void>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- export default videoSelector;
2
- declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class videoSelector extends videoSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- loadVideoAssetById(i: any): void;
15
- handleTabIndexSelector(): void;
16
- handleCloseTabIndex(): void;
17
- addFunctionality(selectionContainer: any): void;
18
- }
@@ -1,16 +0,0 @@
1
- export default videoSelector;
2
- declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
3
- declare class videoSelector extends videoSelector_base {
4
- constructor(player: any, options?: {});
5
- playerId: any;
6
- seriesData: any;
7
- videos: any;
8
- cb: any;
9
- autoNext: any;
10
- currentVideoData: any;
11
- createEl(): Element;
12
- loadCSS(): void;
13
- initialiseStructure(): void;
14
- toggleOpenClose(): void;
15
- addFunctionality(selectionContainer: any): void;
16
- }
@@ -1,2 +0,0 @@
1
- export function getWatchHistoryByIdFromStorage(profileId: any, videoId: any, site: any): any[];
2
- export function initiateWatchHistoryHandling(playerId: any, config: any, id: any): void;
@@ -1,4 +0,0 @@
1
- export function epgHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function externalHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): void;
@@ -1,5 +0,0 @@
1
- import { externalHandler } from "./external";
2
- import { videoHandler } from "./vod";
3
- import { epgHandler } from "./epg";
4
- import { seriesHandler } from "./series";
5
- export { externalHandler, videoHandler, epgHandler, seriesHandler };
@@ -1,4 +0,0 @@
1
- export function seriesHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function videoHandler(config: any, { resolve, reject }: {
2
- resolve: any;
3
- reject: any;
4
- }): Promise<void>;
@@ -1,4 +0,0 @@
1
- export function playerOptionsConfig(playerId: any, { res, sres }: {
2
- res?: any;
3
- sres?: any;
4
- }, config: any, feedback: any): void;
@@ -1,10 +0,0 @@
1
- export function getCaptions(playerId: any): any;
2
- export function removeCaptions(playerId: any): void;
3
- /**
4
- * Adds Subtitles in the player
5
- * @param {String} [playerId] [playerId of the player]
6
- * @param {String} [subTitles] [subTitles to be added]
7
- */
8
- export function addCaptions(playerId?: string, subTitles?: string): void;
9
- export function enableCaptions(playerId: any, trackId: any): void;
10
- export function disableCaptions(playerId: any, trackId: any): void;
@@ -1,48 +0,0 @@
1
- /**
2
- * Play video
3
- * @param {String} [playerId] [playerId of the player]
4
- */
5
- export function play(playerId?: string): void;
6
- /**
7
- * Pause video
8
- * @param {String} [playerId] [playerId of the player]
9
- */
10
- export function pause(playerId?: string): void;
11
- export function isPaused(playerId: any): boolean;
12
- /**
13
- * Skips video
14
- * @param {String} [playerId] [playerId of the player]
15
- * @param {Number} [time] [time in seconds to be skipped]
16
- */
17
- export function skip(playerId?: string, time?: number): void;
18
- /**
19
- * Rewinds video
20
- * @param {String} [playerId=undefined] [playerId of the player]
21
- * @param {Number} [time=0] [time in seconds to be rewinded]
22
- */
23
- export function rewind(playerId?: string, time?: number): void;
24
- /**
25
- * Reset Player
26
- * @param {String} [playerId] [playerId of the player]
27
- */
28
- export function reset(playerId?: string): void;
29
- /**
30
- * Check if player is initialised
31
- * @param {String} [playerId] [playerId of the player]
32
- * @return {Boolean} player state i.e true if initialised and false if not
33
- */
34
- export function isPlayerInitialised(playerId?: string): boolean;
35
- export function load(playerId: any, videoId: any, token_deprecated: any): Promise<any>;
36
- /**
37
- * Loads video in player
38
- * @param {Object} [player] [instance of the player]
39
- * @param {String} src [src url of the video]
40
- */
41
- export function loadVideo(playerId: any, src: string): void;
42
- export function loadVideoInstantly(playerId: any, src: any, cancelTimeout: any): Promise<any>;
43
- export function dispose(playerId: any): void;
44
- export function removeMountedCSS(): void;
45
- export function initiateErrorHandling(err: any, playerId: any, reject: any, vId: any): void;
46
- export function setTitle(playerId: any, info: any): void;
47
- export function disableControls(playerId: any): void;
48
- export function authenticateLC(playerId: any, params: any, load_asset?: boolean): Promise<any>;
@@ -1,6 +0,0 @@
1
- /**
2
- * Player Instance
3
- * @param {String} [playerId] [playerId of the player]
4
- * @return {Object/Boolean} instance of the player if exists else false
5
- */
6
- export function getPlayer(playerId?: string): any;
@@ -1,6 +0,0 @@
1
- /**
2
- * Get Resolutions for drm/nondrm videos
3
- * @param {String} [playerId] [playerId of the player]
4
- * @return {Array} [Resolutions] ]
5
- */
6
- export function getRenditions(playerId?: string): any[];
@@ -1,19 +0,0 @@
1
- export function seekToTimeStamp(playerId: any, time: any, cb: any): void;
2
- export function getVideoDuration(playerId: any): any;
3
- export function onVideoEnded(playerId: any, cb: any): void;
4
- export function onTimeUpdate(playerId: any, cb: any): void;
5
- export function setPlaybackSpeed(playerId: any, speed: any): string;
6
- export function playerEvents(): {
7
- onPlay: (playerId: any, cb: any) => void;
8
- onPause: (playerId: any, cb: any) => void;
9
- onMute: (playerId: any, cb: any) => void;
10
- onPictureInPictureChange: (playerId: any, cb: any) => void;
11
- onFullScreenChange: (playerId: any, cb: any) => void;
12
- onSetVolume: (playerId: any, cb: any) => void;
13
- onSeeked: (playerId: any, cb: any) => void;
14
- onSubtitleEnable: (playerId: any, cb: any) => void;
15
- onDisableSubtitles: (playerId: any, cb: any) => void;
16
- onSubtitleCueChange: (playerId: any, cb: any) => void;
17
- onError: (playerId: any, cb: any) => void;
18
- };
19
- export function onReplay(playerId: any, cb: any): void;
@@ -1,2 +0,0 @@
1
- export function setVolume(playerId: any, volume: any, cb: any): void;
2
- export function getVolume(playerId: any): string;
@@ -1 +0,0 @@
1
- export function loadVideo_withDash(src: any): Promise<void>;
@@ -1 +0,0 @@
1
- export function setupAdvertisementMarkersForLinear(playerId: any): Promise<void>;
@@ -1,10 +0,0 @@
1
- export function setupAdvertisementMarkers(playerId: any, watchHistoryResumeTime: any): Promise<void>;
2
- export function getSGAIEnabledSource(playerId: any, entitlement_res: any): Promise<{
3
- src: any;
4
- type: string;
5
- }>;
6
- export namespace trackingUrlManager {
7
- function set(param: any): void;
8
- function get(): string;
9
- }
10
- export const trackMap: Map<any, any>;
package/esm/features.d.ts DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * Adds Rewind Button to control bar
3
- * @param {String} [playerId] [playerId of the player]
4
- */
5
- export function addRewindButton(playerId?: string, skin: any, icon: any): void;
6
- /**
7
- * Adds Skip Button to control bar
8
- * @param {String} [playerId] [playerId of the player]
9
- */
10
- export function addSkipButton(playerId?: string, skin: any, icon: any): void;
11
- /**
12
- * Adds Slow Mo Button to control bar
13
- * @param {String} [playerId] [playerId of the player]
14
- */
15
- export function addSlowMotion(playerId?: string): void;
16
- export function addResolutionModule(playerId: any, skin: any, icon: any): void;
17
- export function addVideoSelector(playerId: any, related: any): void;
18
- export function addMulticamView(playerId: any, config: any): void;
19
- export function addSeriesModule(playerId: any, seriesData: any, config: any): void;
20
- export function addNextEpisodeButton(sres: any, res: any, playerId: any): void;
21
- export function addMulticamSelector(playerId: any, streams: any): void;
22
- export function addPlaylistSelector(playerId: any, playlist: any): void;
23
- export function addCaptionButton(playerId: any, options: any): void;
24
- export function addSettingsButtonV2(playerId: any, options: any): void;
25
- export function addSeriesSelectorV2(playerId: any, options: any): void;
26
- export function addOutputtingOverlay(playerId: any, url: any): void;
27
- export function addDBClickFullScreen(playerId: any): void;
28
- export function addBigMuteButton(playerId: any, options: any): void;
29
- export function addVideoSelector_DEFAULTV2_TEMP(playerId: any, related: any): void;
30
- export function addSeriesSelectorV2_DEFAULTV2_TEMP(playerId: any, options: any): void;
31
- export function addMulticamSelector_DEFAULTV2_TEMP(playerId: any, streams: any): void;
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import o from"video.js";import i from"axios";import{g as r,t as l,c as a}from"./skin-4f84b841.js";import{i as d,d as u}from"./browser-d4613b36.js";import s from"md5";import c from"js-cookie";import{a as v,r as m}from"./captions-2b4caf69.js";import f from"@babel/runtime/helpers/typeof";import p from"@babel/runtime/helpers/toConsumableArray";import g from"@babel/runtime/helpers/slicedToArray";import{destroyComscoreTag as h,formulateComscorePayload as w,createComscoreStreamingTag as I,setComscorePlayerInstance as y}from"@viewlift/comscore/index.js";function E(){var e,n;null===(e=window)||void 0===e||null===(n=e.dataLayer)||void 0===n||n.push(arguments)}function T(e){window.dataLayer=window.dataLayer||[],E("js",new Date),E("config",e)}function b(e,n){E("event",e,n)}var _={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function O(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?S(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var D={name:"@viewlift/player",version:"2.1.29",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",scripts:{prepublishOnly:"release-assistant"},dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1","@viewlift/comscore":"^1.0.11",axios:"^1.2.3",md5:"^2.3.0",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"},overrides:{"min-document":"^2.19.1"}};window.vl_player_version=D.version;var A,L=function(){var e,n,t,o;return null!==(e=window)&&void 0!==e&&null!==(n=e.customData)&&void 0!==n&&n.overrideEntitlementBaseUrl?(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementBaseUrl)+"/video/status":N.get()+"".concat(null==_?void 0:_.getVideoDetails)},P=function(e,n){var t,o,r,l,a,d,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):i({url:L(),params:O({id:e,deviceType:"web_browser",contentConsumption:"web",ssaiDisable:u},null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:n,"Sdk-Version":D.version,"x-player-name":"videojs",adbTempToken:null===(a=window)||void 0===a||null===(d=a.customData)||void 0===d?void 0:d.adbTempToken},withCredentials:!0})},k=function(e,n){var t,o,r,l,a,d,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.overrideEntitlementResponse?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.overrideEntitlementResponse})}):i({url:N.get()+_.getLinearChannelDetails,params:O(O(O(O(O({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web",ssaiDisable:u},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.entitlement),method:"GET",headers:{Authorization:n,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO",adbTempToken:null===(a=window)||void 0===a||null===(d=a.customData)||void 0===d?void 0:d.adbTempToken}})},F=function(e,n){var t,o,r=$(n),l=(null==r?void 0:r.site)||null;return null!==(t=window)&&void 0!==t&&null!==(o=t.customData)&&void 0!==o&&o.seriesData?new Promise(function(e,n){var t,o;return e({data:null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o?void 0:o.seriesData})}):i({url:N.get()+"/v3/content/series/".concat(e),params:{site:l},method:"GET",headers:{Authorization:n}})},R=function(){var e=n(t.mark(function e(n){var o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X();case 2:return o=e.sent,e.abrupt("return",i({url:N.get()+"".concat(null==_?void 0:_.saveWatchHistoryV2),method:"POST",headers:{Authorization:o},data:O({},n),params:O({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),C=function(e,n){var t,o,r=window.contentType;return i({method:"GET",url:N.get()+"".concat(null==_?void 0:_.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:n,"x-api-key":null===(t=window)||void 0===t||null===(o=t.watchHistory)||void 0===o?void 0:o.xApiKey},timeout:15e3})},j=function(e){var n=e.videoId;return i({method:"GET",url:N.get()+"".concat(null==_?void 0:_.getSeriesWatchHistoryV2,"/").concat(n),headers:{Authorization:e.token},timeout:15e3})},N=(A=null==_?void 0:_.apiBaseUrl,{set:function(e){e&&(A=e)},get:function(){return A}}),V=function(e,n,t,o){var r,l;return i({url:t,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==o?void 0:o.latitude,longitude:null==o?void 0:o.longitude},method:"GET",headers:{Authorization:n,adbTempToken:null===(r=window)||void 0===r||null===(l=r.customData)||void 0===l?void 0:l.adbTempToken},withCredentials:!0})},W=function(e){var n=JSON.parse(atob(null==e?void 0:e.split(".")[1])),t=null==n?void 0:n.exp;if(new Date(1e3*t).getTime()<(new Date).getTime())return!0},U=null;function B(){return{set:function(e){e&&(U=e)},get:function(){return U}}}var M,x,H,G,Y,Q,z,q=function(){var e=n(t.mark(function e(){var n,o,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=B().get(),o=N.get(),e.prev=2,e.next=5,i({method:"GET",url:"".concat(o,"/identity/refresh/").concat(n)});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return e.apply(this,arguments)}}(),K=null,X=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!W(n)){e.next=6;break}return K||(K=q().then(function(e){var t,o,i=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(o=e.data)||void 0===o?void 0:o.refreshToken;return i&&sessionStorage.setItem("vlp_token",i),r&&B().set(r),i||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){K=null})),e.abrupt("return",K);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),J=function(e){var n=!0,t=null==e?void 0:e.videoSourceUrl,o=null==e?void 0:e.asat;return t&&!o&&(n=!1),n},$=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},Z=(Q=new Map,{set:function(e){var n,t=(null==e||null===(n=e.video)||void 0===n?void 0:n.id)||e||null;Q.set(t,(Q.get(t)||0)+1)},get:function(e){return Q.get(e)},clear:function(){Q.clear()}}),ee=function(e){x=e},ne=function(){return x},te=function(e){M=e},oe=function(){return M},ie=function(){return H},re=function(e){H=e},le=function(){return Y},ae=function(e){G=new Map,e.map(function(e,n){G.set(e.id,n)})},de=function(e){if(G){var n=G.get(e);re(n+1)}},ue=(z=0,{set:function(e){e>=0&&(z=e)},get:function(){return z}});function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function ce(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?se(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):se(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var ve=0,me=null,fe=function(){var e,n,t,o,i,r,l,a=ne();return"linearchannel"==((null==a?void 0:a.contentType)||"video")?null==a||null===(e=a.linearchannel)||void 0===e||null===(n=e.channels)||void 0===n||null===(t=n.find(function(e){return(null==e?void 0:e.id)===(null==a?void 0:a.channelId)}))||void 0===t||null===(o=t.content)||void 0===o?void 0:o.id:(null==a||null===(i=a.video)||void 0===i||null===(r=i.gist)||void 0===r?void 0:r.id)||(null==a||null===(l=a.video)||void 0===l?void 0:l.id)||(null==a?void 0:a.id)};function pe(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function ge(){return me||window.sessionStorage.getItem("uid")}function he(){return we.apply(this,arguments)}function we(){return(we=n(t.mark(function e(){var n,o;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(o=JSON.parse(atob(n.split(".")[1])))||!o.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==o?void 0:o.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ie(e){return e?String(e):""}window.initialise=function(e){window.sid=pe(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var n=Math.floor(e.currentTime());e.on("error",function(){var t,o,i,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,b(r?"FAILED_TO_START":"DROPPED_STREAM",ce({pfm:window.platform,uid:ge(),vid:fe(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:n===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,n,t){e.one("play",tryCatch(function(){var o,i,r;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),b("PLAY",ce({pfm:window.platform,uid:ge(),vid:fe(),videoPosition:Math.floor(e.currentTime())},null===(o=window)||void 0===o||null===(i=o.customData)||void 0===i||null===(r=i.beacon)||void 0===r?void 0:r.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),n&&n("started_video_playback",ce({"Video ID":fe(),watchTime:Math.floor(e.currentTime())},t))}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var n,t;null!=e&&null!==(n=e.el_)&&void 0!==n&&null!==(t=n.className)&&void 0!==t&&t.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,n){var t,o;if(n.el_){var i,r,l,a=e+.1;if(+a.toFixed(2)%5==0&&null!=n&&null!==(t=n.el_)&&void 0!==t&&null!==(o=t.className)&&void 0!==o&&o.includes("vjs-waiting")&&ve<4)ve++,b("BUFFERING",ce({pfm:window.platform,uid:ge(),vid:fe(),videoPosition:n.el_&&Math.floor(n.currentTime())},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"BUFFERING",videoPosition:n.el_&&Math.floor(n.currentTime()),isAdEvent:!1});return a}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var n,t,o;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,b("FIRST_FRAME",ce({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ge(),vid:fe()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})})},window.ads=function(e){e.on("adsready",function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,function(){var n,t,o,i,r,l;b("AD_REQUEST",ce({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ge(),vid:fe(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),b("AD_IMPRESSION",ce({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:ge(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:fe()},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})}),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,function(){window.ttFirstFrame=0}),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,function(){window.ttFirstFrame=0})})},window.ping=function(e){var n=[];e.on("timeupdate",function(){var t=Math.floor(e.currentTime());t>=30&&t%30==0&&!n.includes(t)&&(ve=0,n.push(t),fireEvent({eventName:"PING",videoPosition:t,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))})},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch(function(){for(var n=e.currentTime(),t=e.duration(),o=e.buffered(),i=0;i<o.length;i++){var r=o.start(i),l=o.end(i);if(ye(n,r,l)){var a=Math.round(t-l);if(isFinite(a))return a}}})()};var ye=function(e,n,t){return e>=n&&e<=t},Ee=function(){var e,n=ne(),t=(null==n?void 0:n.contentType)||"video";return(null==n||null===(e=n[t])||void 0===e?void 0:e.network)||null};function Te(e,n){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){null!=n&&n.userId&&(me=n.userId);var t=r(e);window.initialise(t,null==n?void 0:n.analyticsCb),window.firstFrame(t,null==n?void 0:n.analyticsCb,null==n?void 0:n.analyticsEventParams),t.on("loadedmetadata",function(){window.endFirstFrame(t)})}}window.fireEvent=function(){var e=n(t.mark(function e(n){var o,r,l,a,d,u,s,c,v,m,f,p,g,h,w,I,y,E,T,b,S;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X();case 2:return y=e.sent,E=$(y),T=null==E?void 0:E.site,b=null==E?void 0:E.siteId,e.t0=ce,e.t1=ce,e.t2=ce({aid:T,cid:b,pfm:window.platform},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(l=r.beacon)||void 0===l?void 0:l.params),e.t3={},e.t4=ge(),e.t5=fe(),e.t6=n.url||document.location.href,e.t7=n.ref||document.referrer,e.t8=n.eventName,e.t9=null!==(a=n.videoPosition)&&void 0!==a?a:null,e.t10=window.environment,e.t11=n.dp1||"",e.t12=n.dp2||"",e.t13=n.dp3||"",e.t14=n.dp4||"",e.t15=n.dp5||"",e.t16=!0===n.isAdEvent?n.videoPosition:null,e.t17=!0===n.isAdEvent?Ie(n.adPosition):"",e.next=26,he();case 26:e.t18=e.sent,e.t19=n.playerType||"native",e.t20=n.mediaType||"VIDEO",e.t21=window.sid,e.t22=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t23=null!==(u=n.bitrate)&&void 0!==u?u:null,e.t24=null!==(s=n.resHeight)&&void 0!==s?s:null,e.t25=null!==(c=n.resWidth)&&void 0!==c?c:null,e.t26=null!==(v=n.bufferHealth)&&void 0!==v?v:null,e.t27=null!==(m=Ee())&&void 0!==m?m:null,e.t28=null!=T?T:null,e.t29={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:null,resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26,networkname:e.t27,brandname:e.t28},e.t30=(null==n?void 0:n.duration)&&{duration:n.duration},e.t31=(0,e.t1)(e.t2,e.t3,e.t29,e.t30),e.t32=null===(f=window)||void 0===f||null===(p=f.customData)||void 0===p||null===(g=p.beacon)||void 0===g?void 0:g.params,e.t33=(0,e.t0)(e.t31,e.t32),S=[e.t33],i({url:(null===(h=window)||void 0===h||null===(w=h.customData)||void 0===w||null===(I=w.beacon)||void 0===I?void 0:I.url)||N.get()+_.getBeaconUrl,method:"post",headers:{Authorization:y},contentType:"application/x-www-form-urlencoded",dataType:"text",data:S}).catch(function(e){console.error(e)});case 44:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var be=function(e,n){var t=new Map;j({videoId:e,token:n}).then(function(e){e.data.map(function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),Y=t}).catch(function(e){return console.log(e)})},_e=function(){var e=ue.get();return e>=0?e+1:1},Se=function(){var e,n,t,o=oe(),i=ne(),r=null==i||null===(e=i.video)||void 0===e?void 0:e.id,l=ue.get(),a=null==o||null===(n=o[l])||void 0===n||null===(t=n.episodes)||void 0===t?void 0:t.findIndex(function(e){return(null==e?void 0:e.id)===r});return a>=0?a+1:1};function Oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function De(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Oe(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Ae=s,Le=function(e,n){return e&&n?"".concat(e,"x").concat(n):e>1024?"L":e>768?"M":"S"},Pe=function(e){var n=ke(e,"video.tags",[]),t=ke(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return n.length>0?n.map(function(e){return e.title}).join(","):t},ke=function(e,n,t){for(var o=0,i=(n=n.split(".")).length;o<i;o++){var r;e=null===(r=e)||void 0===r?void 0:r[n[o]]}return e||t},Fe=function(){var e,n,t,o,i,l,a,d,u,s,v,m,f,p,g,h,w,I,y,E,T,b,_,S,O,D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",A=arguments.length>1?arguments[1]:void 0,L=arguments.length>2?arguments[2]:void 0;if(null!==(e=window)&&void 0!==e&&null!==(n=e.customData)&&void 0!==n&&n.disableMacros)return D;var P=(null==L?void 0:L.siteName)||(null==L?void 0:L.site)||"",k=(null==L?void 0:L.contentType)||"video",F=(null==L||null===(t=L[k])||void 0===t?void 0:t.metadata)||(null==L||null===(o=L[k])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.metadata),R=r(A);if(!D.includes("VIEWLIFT_"))return D;var C,j=window.getComputedStyle(document.getElementById(A),null),N=Math.trunc(j.getPropertyValue("height").slice(0,-2)),V=Math.trunc(j.getPropertyValue("width").slice(0,-2)),W="linearchannel"===k?null==L||null===(l=L.linearchannel)||void 0===l||null===(a=l.channels)||void 0===a||null===(d=a.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===d||null===(u=d.content)||void 0===u?void 0:u.id:ke(L,"video.gist.id",""),U="linearchannel"===k?null==L||null===(s=L.linearchannel)||void 0===s||null===(v=s.channels)||void 0===v||null===(m=v.find(function(e){return(null==e?void 0:e.id)===(null==L?void 0:L.channelId)}))||void 0===m?void 0:m.title:ke(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),B=null,M=null;"function"==typeof window.__gpp&&(null===(C=window)||void 0===C||C.__gpp("ping",function(e){B=null==e?void 0:e.gppString,M=null==e?void 0:e.sectionList[0]}));var x=c.get("us_privacy")||c.get("usprivacy"),H=void 0!==x?x:"1YNN",G=null!==(f=null===(p=JSON.parse(localStorage.getItem("selectedMvpdProvider")||"{}"))||void 0===p?void 0:p.fwIdentifier)&&void 0!==f?f:null,Y=De(De({},Re(F)),{},{VIEWLIFT_WIDTH:V,VIEWLIFT_HEIGHT:N,VIEWLIFT_SIZE:Le(V,N),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(g=window)||void 0===g?void 0:g.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:ke(L,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==R||null===(h=R.options_)||void 0===h?void 0:h.autoplay)||1,VIEWLIFT_MUTE:(null==R||null===(w=R.options_)||void 0===w?void 0:w.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==P||"usanetwork"==P?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:Pe(L),VIEWLIFT_MEDIA_ID:W,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(ke(L,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:W,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+ke(L,"video.gist.permalink","")),VIEWLIFT_CONSENT:c.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:ke(null===(I=window)||void 0===I||null===(y=I.app_data)||void 0===y||null===(E=y.site)||void 0===E?void 0:E.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_ROKU_AD_ID:"",VIEWLIFT_ROKU_AD_KEYS:"",VIEWLIFT_RDID:"",VIEWLIFT_GDPR:"spinco"==P||"usanetwork"==P?"":ke(null===(T=window)||void 0===T||null===(b=T.app_data)||void 0===b||null===(_=b.site)||void 0===_?void 0:_.settings,"compliance.gdpr")?1:0,VIEWLIFT_US_PRIVACY:H,VIEWLIFT_TVE_PROVIDER:G?Ae(G):"",VIEWLIFT_CONTENT_DURATION_MS:1e3*ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:ke(L,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:W,VIEWLIFT_CONTENT_TITLE:U,VIEWLIFT_CONTENT_SERIES_TITLE:ke(L,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:ke(L,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:Se(),VIEWLIFT_SEASON_NUMBER:_e(),VIEWLIFT_CONTENT_TAGS:Pe(L),VIEWLIFT_GPP_SID:M||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:B||"VIEWLIFT_GPP",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:"",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:""},null===(S=window)||void 0===S||null===(O=S.customData)||void 0===O?void 0:O.macros);for(var Q in Y){var z=new RegExp(Q,"g");D=D.replace(z,Y[Q])}return D},Re=function(e){var n,t,o,i,r,l,a,u,s,c={},v=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){v.set(e.name,e.value)}));var m=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(o=t.subscription)||void 0===o?void 0:o.SVOD)||!1,f=(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(l=r.subscription)||void 0===l?void 0:l.TVE)||!1;return m||f?(d()?m?c=De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.dtc")||""}):f&&(c=De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.tve")||""})):m?c=De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.web.dtc")||""}):f&&(c=De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.web.tve")||""})),m?c=De(De({},c),{},{VIEWLIFT_SFID:v.get("sfid.dtc")||v.get("sfid.web.dtc")||""}):f&&(c=De(De({},c),{},{VIEWLIFT_SFID:v.get("sfid.tve")||v.get("sfid.web.tve")||""})),c=d()?De(De({},c),{},{VIEWLIFT_PROF:v.get("prof.mweb")||""}):De(De({},c),{},{VIEWLIFT_PROF:v.get("prof.web")||""})):(c=De(De({},c),{},{VIEWLIFT_SFID:v.get("sfid.dtc")||v.get("sfid.web.dtc")||""}),c=d()?De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:v.get("prof.mweb")||""}):De(De({},c),{},{VIEWLIFT_CSID:v.get("csid.web.dtc")||"",VIEWLIFT_PROF:v.get("prof.web")||""})),c=De(De({},c),{},{VIEWLIFT_AFID:v.get("afid"),VIEWLIFT_NIELSEN_APP_ID:v.get("VIEWLIFT_NIELSEN_APP_ID")||ke(null===(a=window)||void 0===a||null===(u=a.app_data)||void 0===u||null===(s=u.appcmsMain)||void 0===s?void 0:s.analytics,"nielsen.id")||"",VIEWLIFT_CHANNEL:v.get("VIEWLIFT_CHANNEL")||"",VIEWLIFT_GRACE_NOTE_ID:v.get("VIEWLIFT_GRACE_NOTE_ID")||"",VIEWLIFT_EXTERNAL_AD_ID:v.get("VIEWLIFT_EXTERNAL_AD_ID")||""})},Ce=function(e,n){var t,o,i,r,l,a,d,s,c,v,m,f,p,g=(null==e?void 0:e.contentType)||"video",h=null==e||null===(t=e[g])||void 0===t?void 0:t.drmEnabled,w=null==e||null===(o=e[g])||void 0===o||null===(i=o.streamingInfo)||void 0===i?void 0:i.videoAssets,I=null==e||null===(r=e[g])||void 0===r||null===(l=r.streamingInfo)||void 0===l?void 0:l.audioAssets,y=(null==e||null===(a=e[g])||void 0===a||null===(d=a.streamingInfo)||void 0===d||null===(s=d.videoAssets)||void 0===s?void 0:s.hls)||!1;null==e||null===(c=e[g])||void 0===c||null===(v=c.liveDetails)||void 0===v||v.isDvrEnabled;var E=(null==e||null===(m=e[g])||void 0===m||null===(f=m.streamingInfo)||void 0===f||null===(p=f.videoAssets)||void 0===p?void 0:p.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=I&&I.hls)return Ne(I);if(h){var T=Ve(w,n);return T.src=Fe(T.src,n,e),T}if("Safari"!==u()&&E)return je(w);if(y){var b=Ne(w);return b.src=Fe(b.src,n,e),b}if(null!=w&&w.mpeg){var _=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(w);return _.src=Fe(_.src,n,e),_}return null},je=function(e){var n=null==e?void 0:e.dash;return n?{src:n,type:"application/dash+xml"}:null},Ne=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},Ve=function(e,n){var t=(null==e?void 0:e.drmProvider)||null,i=e.fairPlayCmaf||e.fairPlay,l=e.widevine,a=e.playReady,d=u();if(r(n),"Safari"===d){var s=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var i={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};o.xhr(i,function(e,n,o){console.log(e),e&&t(e),t(null,new Uint8Array(o))})},getContentId:function(e,n){if(n){var t=n.indexOf("\0")+1;return n.slice(t)}},getLicense:function(n,t,i,r){var l={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:i,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};o.xhr(l,function(e,n,t){console.log(e),e&&r(e),r(null,t)})}}}}}(i);return We(n),s}var c,v={src:l.url,type:"application/dash+xml"};return"caliente"==(null===(c=window)||void 0===c?void 0:c.siteName)?(We(n),v.keySystems={"com.widevine.alpha":{url:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==a?void 0:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==a?void 0:a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==t?(v.keySystemOptions=[],v.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),v.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==a?void 0:a.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(v.keySystemOptions=[],v.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),v.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==a?void 0:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==a?void 0:a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),v};var We=function(e){var n=r(e);if("function"==typeof n.eme)try{n.eme(),"Safari"==u()&&n.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Ue=function(e,n){var t=e.src,o=e.type;if(!t||"string"!=typeof t||!t.includes(".com"))return{src:t,type:o};n=n.replace(/\/$/,"");var i=t.split(".com")[1]||"";return{src:i?"".concat(n).concat(i):t,type:o}},Be=function(e,n){if(import("./error-2395864b.js").then(function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)}),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}else{var o=document.getElementById(e);if(o){var i=document.createElement("div");i.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(n),i.appendChild(r),o.append(i)}}},Me=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var xe=!1,He=function(e,n,t){var o=Fe(n,e,t),i=r(e);if(n&&window.google){if("function"!=typeof i.ima&&"object"!==f(i.ima))return;i.ima.initializeAdDisplayContainer&&i.ima.initializeAdDisplayContainer(),function(e,n){var t,o,i,l=r(e);if(null!==l.el_){xe=!0;var a={id:e,adTagUrl:"".concat(n),adLabel:"Your video will resume after this sponsor message"};l.ima.initializeAdDisplayContainer&&l.ima.initializeAdDisplayContainer(),xe&&null!==l.el_&&("function"==typeof l.ima?l.ima(a):setTimeout(function(){l.ima.setContentWithAdTag(null,n,!0),l.ima.requestAds()},1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),l.one(u,function(){s&&l.ima.initializeAdDisplayContainer()});var c=(null===(t=window)||void 0===t||null===(o=t.customData)||void 0===o||null===(i=o.ads)||void 0===i?void 0:i.adEventHandler)||null;l.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),l.one("ads-manager",function(e){var n=e.adsManager;n.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})}),n.addEventListener(google.ima.AdEvent.Type.LOADED,function(e){c&&c({status:"LOADED",msg:"Advertisement Loaded",data:e})})}),l.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,o)}};function Ge(e,n){var t,o,i,l=r(e),a=null==l||null===(t=l.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,d=document.getElementsByTagName("video")[0];null===(i=document)||void 0===i||i.addEventListener("keydown",function(t){var o,i,r,u,s,c,v,m,f;if(Qe.enabled&&!t.metaKey&&!t.ctrlKey&&"input"!=t.target.localName&&"textarea"!=t.target.localName){var p=t.key,g=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(p)&&(t.preventDefault(),null==d||d.focus()),p){case" ":null==a||a.click();break;case"m":case"M":l.muted(!l.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":g&&!1===n.liveui||Un(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(u=r.appcmsMain)||void 0===u||null===(s=u.adsConfig)||void 0===s?void 0:s.vodAdSticherProvider)&&null!==(c=window)&&void 0!==c&&null!==(v=c.app_data)&&void 0!==v&&null!==(m=v.appcmsMain)&&void 0!==m&&null!==(f=m.adsConfig)&&void 0!==f&&f.vodAdClientSideTracking)return;g||Wn(e,10)}}},!0)}var Ye,Qe=(Ye=!0,{enable:function(){Ye=!0},disable:function(){Ye=!1},get enabled(){return Ye}}),ze="ssai-breakStart",qe="ssai-adImpression",Ke="ssai-firstQuartile",Xe="ssai-midpoint",Je="ssai-thirdQuartile",$e="ssai-complete",Ze="ssai-breakEnd",en={breakStart:ze,impression:qe,firstQuartile:Ke,midpoint:Xe,thirdQuartile:Je,complete:$e,breakEnd:Ze};function nn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,i=en[o];i&&t.trigger(i,n)}function tn(e){var n=r(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var o=function(e,n){return t(n)};return n.on(e,o),function(){return n.off(e,o)}};return{adBreakStart:function(e){return t(ze,e)},adImpression:function(e){return t(qe,e)},adFirstQuartile:function(e){return t(Ke,e)},adMidpoint:function(e){return t(Xe,e)},adThirdQuartile:function(e){return t(Je,e)},adComplete:function(e){return t($e,e)},adBreakEnd:function(e){return t(Ze,e)}}}function on(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function rn(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?on(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):on(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var ln,an=(ln={},{get:function(){return ln},set:function(e){ln=e}});function dn(e,n){var t,o,i,l,a,d,u,s,c,v,m,f,p,g,E,T,b=null==e?void 0:e.playerId,_=r(b);if(null!=e&&null!==(t=e.comscore)&&void 0!==t&&t.enable){var S=ne(),O=(null==S||null===(o=S.video)||void 0===o?void 0:o.metadata)||[],D=(null==O?void 0:O.length)&&O.filter(function(e){return"advertisingGenre"===e.name});if(null!==(i=D)&&void 0!==i&&i.length){var A=D.map(function(e){return e.value});D=null==A?void 0:A.join(",")}h();var L,P,k,F=null===(l=window)||void 0===l?void 0:l.lcProgrammeDetails,R=Array.isArray(null==F?void 0:F.category)?null==F||null===(a=F.category)||void 0===a?void 0:a.join(","):(null==F?void 0:F.category)||null,C=rn(rn(rn({},null==S?void 0:S.video),null==S?void 0:S.linearchannel),{},{siteName:(null==S?void 0:S.site)||null,programId:(null==F?void 0:F.videotmsid)||null,programTitle:(null==F?void 0:F.lcProgrammeName)||null,episodeId:(null==F?void 0:F.videotmsid)||null,seasonNumber:(null==S||null===(d=S.video)||void 0===d||null===(u=d.series)||void 0===u?void 0:u.seasonNumber)||(null==F||null===(s=F.seriesDetails)||void 0===s?void 0:s.season)||null,episodeNumber:(null==S||null===(c=S.video)||void 0===c||null===(v=c.series)||void 0===v?void 0:v.episodeNumber)||(null==F||null===(m=F.seriesDetails)||void 0===m?void 0:m.episode)||null,episodeTitle:(null==F?void 0:F.lcSubTitle)||null,isCompleteEpisode:!!(null!=S&&null!==(f=S.video)&&void 0!==f&&f.series||null!=F&&null!==(p=F.seriesDetails)&&void 0!==p&&p.episode),genre:D||R,comscoreConfig:{implementationId:(null==e||null===(g=e.comscore)||void 0===g?void 0:g.implementationId)||null,projectId:(null==e||null===(E=e.comscore)||void 0===E?void 0:E.projectId)||null}});if(null!=C&&null!==(T=C.streamingInfo)&&void 0!==T&&T.isLiveStream?C.contentType="LIVE":C.contentType="LONG_FORM_ON_DEMAND",null==C||!C.network){var j,N=(null==C?void 0:C.metadata)||[],V=null==N||null===(j=N.find(function(e){return"network"===e.name}))||void 0===j?void 0:j.value;C.network=V||null}null!=C&&C.network&&null!=C&&C.genre&&(C.customGenre="".concat(C.network,"_").concat((null==C?void 0:C.programTitle)||(L=C,null!=L&&L.series?null==L||null===(k=L.series)||void 0===k?void 0:k.title:null==L||null===(P=L.gist)||void 0===P?void 0:P.title),"_").concat(C.genre)),null!=F&&F.airDate&&(C.publishDate=F.airDate),null!=C&&C.runtime&&"function"==typeof _.duration&&(C.runtime=1e3*Math.ceil(_.duration()));var W=w(C,_);console.log("comscoreOptions player data",W),I(rn({playerName:"Video.js"},W)),y(_)}}function un(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function sn(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?un(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):un(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function cn(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return vn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?vn(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function vn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var mn,fn=function(){var e="";return{set:function(n){n&&(e=n)},get:function(){return e}}}(),pn=(mn=null,{set:function(e){mn=e},get position(){return mn}});function gn(e,n){return hn.apply(this,arguments)}function hn(){return(hn=n(t.mark(function e(n,o){var i,l,a,d,u,s,c,v,m,f,p,h,w,I,y,E,T,b;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r(n),a=Ce(o,n),d=a.src,u=(null==o?void 0:o.contentType)||"video",null==o||null===(i=o[u])||void 0===i||null===(l=i.streamingInfo)||void 0===l||l.isLiveStream,s=d.replace("/dash/","/session/").replace("/master/","/session/"),s=Fe(s,n,o),c=In(s),v=g(c,2),m=v[0],f=v[1],p=wn(f)||{},s=new URL(s.split("?")[0]),Object.keys(f).length>0&&Object.entries(f).forEach(function(e){var n=g(e,2),t=n[0],o=n[1];s.searchParams.set(t,o)}),e.prev=11,e.next=14,fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(sn({adsParams:sn({},m)},p))});case 14:return h=e.sent,e.next=17,h.json();case 17:return w=e.sent,I="https://"+new URL(s).hostname,y=w.trackingUrl,E=w.manifestUrl,T=I+y,b=I+E,fn.set(T),console.log("%c TRACKING URL","background: #bdf369; color: #000",T),a.src=b,e.abrupt("return",a);case 29:return e.prev=29,e.t0=e.catch(11),e.abrupt("return",a);case 32:case"end":return e.stop()}},e,null,[[11,29]])}))).apply(this,arguments)}function wn(e){var n;return Object.fromEntries(null==Object||null===(n=Object.entries(e))||void 0===n?void 0:n.map(function(e){var n=g(e,2),t=n[0],o=n[1];return[null==t?void 0:t.replace(/^aws\./,""),String(o)]}))||{}}function In(e){var n={};if(!e.split("?")[1])return[{},{}];var t,o=new URL(e,window.location.origin),i=cn((null==o?void 0:o.searchParams)||[]);try{for(i.s();!(t=i.n()).done;){var r=g(t.value,2),l=r[0],a=r[1];n[decodeURIComponent(l)]=decodeURIComponent(a||"")}}catch(e){i.e(e)}finally{i.f()}for(var d={},u={},s=0,c=Object.entries(n);s<c.length;s++){var v=g(c[s],2),m=v[0],f=v[1];if(m.startsWith("ads."))d[m.replace(/^ads\./,"")]=f;else u[m]=f}return[d,u]}var yn,En,Tn,bn=new Map;function _n(e,n){return Sn.apply(this,arguments)}function Sn(){return Sn=n(t.mark(function e(o,i){var a,d,u,s,c,v,m,f,g,h,w,I,y,E,T,b,_,S,O,D,A,L,P,k,F;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:F=function(e,n,t,i,l,a){var d,u,s=r(o);if(!s.seeking()){var c=n.startTimeInSeconds;n.durationInSeconds,e<P&&L.clear(),P=e;var v=(null==n||null===(d=n.ads)||void 0===d||null===(u=d[i])||void 0===u?void 0:u.adId)||c;Math.floor(s.currentTime());var m,f=cn(t);try{var p=function(){var t,r,d,u=m.value,c=u.eventType,f=u.beaconUrls,p=u.startTimeInSeconds,g=u.startTime,h=u.durationInSeconds,w=p||0,I=f,y=(null===(t=window)||void 0===t||null===(r=t.customData)||void 0===r||null===(d=r.ads)||void 0===d?void 0:d.adEventHandler)||null,E="".concat(w,"_").concat(c),T=bn.get("pod-".concat(l))||[];if(console.warn(e,w,"map:",c,"condition1:",e>=w,"map:",bn),e>=w&&!T.includes(E)){T.push(E),bn.set("pod-".concat(l),T);try{k(c,n,I,s)}catch(e){console.error("Error when calling triggerAdBeacon:",e,c,n)}if("breakEnd"==c){var b=pn.position;pn.set(null),setTimeout(function(){null!=b&&(s.currentTime(b),a())},500)}if("function"==typeof y)try{var _,S={eventType:c,startTimeInSeconds:p,startTime:g,durationInSeconds:h,ad:null==n||null===(_=n.ads)||void 0===_?void 0:_[i],adIndex:i};y({adsData:S}),nn(o,S)}catch(e){console.error("Error when calling ads callback:",e)}var O=an.get();if(O&&0!==Object.keys(O).length){var D=O.formulateComscoreAdPayload,A=O.startComscoreAdTracking,P=O.finishComscoreAdTracking,F=O.endComscoreAdTracking,R="".concat(w,"_").concat(v,"_").concat(c);if(!L.has(R))if(L.set(R,!0),"impression"===c){var C,j=fn.get();A(D(sn(sn({},null==n||null===(C=n.ads)||void 0===C?void 0:C[i]),{},{trackingUrl:j})))}else"complete"===c?P():"breakEnd"===c&&F()}}};for(f.s();!(m=f.n()).done;)p()}catch(e){f.e(e)}finally{f.f()}}},k=function(e,n,t,o){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},A=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},bn.clear(),pn.set(i),g=fn.get(),(h=r(o)).one("loadeddata",function(){g&&D(g)}),w=new Map,I=new Map,y=-1,E=(null===(a=document)||void 0===a||null===(d=a.getElementsByClassName("tvProviderImage"))||void 0===d?void 0:d[0])||null,T=(null==h||null===(u=h.controlBar)||void 0===u?void 0:u.getChild("videoSelector"))||null,b=(null==h||null===(s=h.controlBar)||void 0===s?void 0:s.getChild("seriesV2"))||null,_=(null==h||null===(c=h.el())||void 0===c||null===(v=c.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===v?void 0:v[0])||null,S=(null==h||null===(m=h.el())||void 0===m||null===(f=m.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===f?void 0:f[0])||null,O=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0==(null==t?void 0:t.length))return p(o);var i=[],r=null==o?void 0:o.find(function(e){return"breakEnd"===(null==e?void 0:e.eventType)}),l=(null==r||null===(e=r.beaconUrls)||void 0===e?void 0:e.find(function(e){return e.includes("videoView")}))||null,a=(null==t?void 0:t.length)>1?null==t?void 0:t[(null==t?void 0:t.length)-1]:null==t?void 0:t[0],d=null==a||null===(n=a.trackingEvents)||void 0===n?void 0:n.filter(function(e){return["breakEnd"].includes(null==e?void 0:e.eventType)}),u=(null==d?void 0:d.some(function(e){var n;return null==e||null===(n=e.beaconUrls)||void 0===n?void 0:n.some(function(e){return e.includes("videoView")})}))||!1;if(!u&&l){var s=null==d?void 0:d.map(function(e){return sn(sn({},e),{},{eventType:"videoView",beaconUrls:[l]})});null!=s&&s[0]&&i.push(null==s?void 0:s[0])}return i},D=function(){var e=n(t.mark(function e(n){var a,d,u,s,c,v,m,f,g,h,D,L,P,k,R,C,j,N,V,W,U,B,M,x;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return W=function(e){document.removeEventListener("pointermove",V),document.removeEventListener("pointerup",W),0===e.button&&j()},V=function(e){},N=function(){var e,n=h.currentTime(),t=null,o=cn(g);try{for(o.s();!(e=o.n()).done;){var i=e.value,r=i.startTimeInSeconds,l=i.durationInSeconds,a=(i.ads,Math.floor(r+l));n>=r&&n<=a&&(t=a,w.set(r,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){h.currentTime(t+2.2)},100))},j=function(){var e,n=h.currentTime(),t=null,o=cn(g);try{for(o.s();!(e=o.n()).done;){var i=e.value,r=i.startTimeInSeconds,l=i.durationInSeconds,a=i.ads,d=Math.floor(r+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>d||n>r)&&!w.has(r)||n>=r&&n<=d)&&(t=r,w.set(r,!0),I.set(r,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){h.currentTime(t+.4)},100))},c=!1,e.next=7,fetch(n);case 7:return v=e.sent,e.next=10,v.json();case 10:m=e.sent,f=m.avails,g=[],h=r(o),D=h.controlBar.progressControl,L=D.seekBar.el(),null===(a=document)||void 0===a||a.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),f.map(function(e,n){var t;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(c=!0),g.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:O(null==e?void 0:e.ads,null==e?void 0:e.adBreakTrackingEvents)})}),!c&&i&&(h.currentTime(i),N()),null!=g&&g.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",g),window.adsQueueList=g,"function"==typeof(C=(null===(P=window)||void 0===P||null===(k=P.customData)||void 0===k||null===(R=k.ads)||void 0===R?void 0:R.onAdBreaksLoaded)||null)&&C(g)),console.log(g,"data"),g.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=h.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var i=n/o*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(i,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(i,"%"),r.style.pointerEvents="none",L.appendChild(r)}}),h._timeUpdateHandler&&h.off("timeupdate",h._timeUpdateHandler),h._timeUpdateHandler=l(function(){var e=h.currentTime();if(e!==y){y=e;for(var n=!1,t=function(){var t=g[o],i=t.startTimeInSeconds,r=t.durationInSeconds,l=t.ads,a=i+r;if(e>=i-1.2&&e<=a+1.2){var d;e>=i&&e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&w.set(i,!0),Qe.disable(),E&&E.classList.add("vjs-hidden"),_&&(_.style.pointerEvents="none",_.classList.add("vjs-hidden")),S&&(S.style.pointerEvents="none",S.classList.add("vjs-hidden")),T&&(T.el().style.pointerEvents="none",T.el().classList.add("vjs-hidden")),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),D.el().classList.add("hide-progress-bar");for(var u=e-i,s=0,c=0,v=0;v<l.length;v++){var m,f=null==l||null===(m=l[v])||void 0===m?void 0:m.durationInSeconds;if(u<s+f){c=v;break}s+=f}l[c];var h=Math.max(0,r-u),y=Math.round(h);U.style.display="block",x.textContent="".concat(c+1," of ").concat(l.length," • ").concat(A(y));var O=[];return null==l||l.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});O.push.apply(O,p(n))}),(null==t||null===(d=t.podSlotImpressionBeacon)||void 0===d?void 0:d.length)>0&&O.push.apply(O,p(null==t?void 0:t.podSlotImpressionBeacon)),F(e,t,O,c,o,N),"break"}I.delete(i)},o=0;o<g.length;o++){if("break"===t())break}n||(U.style.display="none",D.el().classList.remove("hide-progress-bar"),T&&(T.el().style.pointerEvents="auto",T.el().classList.remove("vjs-hidden")),b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),E&&E.classList.remove("vjs-hidden"),_&&(_.style.pointerEvents="auto",_.classList.remove("vjs-hidden")),S&&(S.style.pointerEvents="auto",S.classList.remove("vjs-hidden")),Qe.enable())}},1e3),h.on("timeupdate",h._timeUpdateHandler),null===(d=document)||void 0===d||d.addEventListener("keydown",function(e){Qe.enabled&&"ArrowRight"==e.key&&(j(),Wn(o,10),e.stopPropagation())}),D.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",V),document.addEventListener("pointerup",W))}),null===(u=document)||void 0===u||null===(s=u.querySelectorAll(".ssai-ad-container"))||void 0===s||s.forEach(function(e){return null==e?void 0:e.remove()}),(U=document.createElement("div")).className="ssai-ad-container",(B=document.createElement("div")).className="sponsored-adbox",(M=document.createElement("div")).className="sponsored-text",M.textContent="Sponsored Ad",B.append(M),(x=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",U.append(B),U.append(x),h.el().appendChild(U);case 44:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),L=new Map,P=-1;case 21:case"end":return e.stop()}},e)})),Sn.apply(this,arguments)}function On(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Dn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Dn(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,r=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw r}}}}function Dn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function An(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Ln(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?An(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):An(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}var Pn={},kn=(null===(yn=window)||void 0===yn||null===(En=yn.location)||void 0===En||null===(Tn=En.search)||void 0===Tn?void 0:Tn.includes("debug=true"))||!1,Fn=null;function Rn(e){return Cn.apply(this,arguments)}function Cn(){return Cn=n(t.mark(function e(o){var i,a,d,u,s,c,v,m,f,g,h,w,I,y,E,T,b,_,S,O,D,A,L,P,k,F,R;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:R=function(e,n,t,i,l){var a,d,u=r(o);if(!u.seeking()){var s=n.startTimeInSeconds;n.durationInSeconds;var c=(null==n||null===(a=n.ads)||void 0===a||null===(d=a[i])||void 0===d?void 0:d.adId)||s;Math.floor(u.currentTime());var v,m=On(t);try{for(m.s();!(v=m.n()).done;){var f,p,g,h=v.value,w=h.eventType,I=h.beaconUrls,y=h.startTimeInSeconds,E=h.startTime,T=h.durationInSeconds,b=(h.eventId,y||s),_=I,S=(null===(f=window)||void 0===f||null===(p=f.customData)||void 0===p||null===(g=p.ads)||void 0===g?void 0:g.adEventHandler)||null,O="".concat(c,"_").concat(w),D="pod-".concat(s);P.has(D)||P.set(D,new Set);var A=P.get(D);if(kn&&console.warn(e,b,"map:",w,"condition1:",e>=b,"map:",P),e>=b&&e<=b+k&&!A.has(O)){A.add(O);try{F(w,n,_,u)}catch(e){console.error("Error when calling triggerAdBeacon:",e,w,n)}if("function"==typeof S)try{var L,R={eventType:w,startTimeInSeconds:y,startTime:E,durationInSeconds:T,ad:null==n||null===(L=n.ads)||void 0===L?void 0:L[i],adIndex:i};S({adsData:R}),nn(o,R)}catch(e){console.error("Error when calling ads callback:",e)}var C=an.get();if(C&&0!==Object.keys(C).length){var j=C.formulateComscoreAdPayload,N=C.startComscoreAdTracking,V=C.finishComscoreAdTracking,W=C.endComscoreAdTracking;if("impression"===w){var U,B=fn.get();N(j(Ln(Ln({},null==n||null===(U=n.ads)||void 0===U?void 0:U[i]),{},{trackingUrl:B})))}else"complete"===w?V():"breakEnd"===w&&W()}}}}catch(e){m.e(e)}finally{m.f()}}},F=function(e,n,t,o){var i,r,l;"breakEnd"===e&&(null===(i=Pn)||void 0===i?void 0:i.currentAdIndex)+1!=(null===(r=Pn)||void 0===r?void 0:r.totalAds)&&(null==n||null===(l=n.ads)||void 0===l?void 0:l.length)>0||(kn&&console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})}))},h=function(){Fn&&clearInterval(Fn)},f=fn.get(),(g=r(o)).one("loadeddata",function(){h(),Fn=setInterval(function(){f&&!g.paused()&&L(f)},2e3)}),g.on("dispose",function(){h()}),w=new Map,I=new Map,y=-1,E=null,T=(null===(i=document)||void 0===i||null===(a=i.getElementsByClassName("tvProviderImage"))||void 0===a?void 0:a[0])||null,b=(null==g||null===(d=g.controlBar)||void 0===d?void 0:d.getChild("videoSelector"))||null,_=(null==g||null===(u=g.controlBar)||void 0===u?void 0:u.getChild("seriesV2"))||null,S=(null==g||null===(s=g.el())||void 0===s||null===(c=s.getElementsByClassName("vjs-button vjs-rewind-button"))||void 0===c?void 0:c[0])||null,O=(null==g||null===(v=g.el())||void 0===v||null===(m=v.getElementsByClassName("vjs-button vjs-skip-button"))||void 0===m?void 0:m[0])||null,D=!1,A=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0==(null==t?void 0:t.length))return p(o);var i=[],r=null==o?void 0:o.find(function(e){return"breakEnd"===(null==e?void 0:e.eventType)}),l=(null==r||null===(e=r.beaconUrls)||void 0===e?void 0:e.find(function(e){return e.includes("videoView")}))||null,a=(null==t?void 0:t.length)>1?null==t?void 0:t[(null==t?void 0:t.length)-1]:null==t?void 0:t[0],d=null==a||null===(n=a.trackingEvents)||void 0===n?void 0:n.filter(function(e){return["breakEnd"].includes(null==e?void 0:e.eventType)}),u=(null==d?void 0:d.some(function(e){var n;return null==e||null===(n=e.beaconUrls)||void 0===n?void 0:n.some(function(e){return e.includes("videoView")})}))||!1;if(!u&&l){var s=null==d?void 0:d.map(function(e){return Ln(Ln({},e),{},{eventType:"videoView",beaconUrls:[l]})});null!=s&&s[0]&&i.push(null==s?void 0:s[0])}return i},L=function(){var e=n(t.mark(function e(n){var i,a,d,u,s,c,v,m,f,g;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new URL(n),E&&a.searchParams.append("nextToken",E),e.next=4,fetch(a.toString(),{method:"GET"});case 4:return d=e.sent,e.next=7,d.json();case 7:u=e.sent,s=u.avails,c=u.nextToken||null,E=c,v=[],m=r(o),f=m.controlBar.progressControl,g=f.seekBar.el(),null===(i=document)||void 0===i||i.querySelectorAll(".vjs-seekbar-marker").forEach(function(e){return null==e?void 0:e.remove()}),s.map(function(e,n){v.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:A(null==e?void 0:e.ads,null==e?void 0:e.adBreakTrackingEvents)})}),kn&&console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",v),null!=v&&v.length&&(window.adsQueueList=v),v.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=m.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var i=n/o*100,r=document.createElement("div");r.className="vjs-seekbar-marker",r.style.left="".concat(i,"%"),r.style.position="absolute",r.style.top="0",r.style.bottom="0",r.style.width="2px",r.style.backgroundColor="#fecc09",r.style.left="".concat(i,"%"),r.style.pointerEvents="none",g.appendChild(r)}}),m._timeUpdateHandler&&m.off("timeupdate",m._timeUpdateHandler),m._timeUpdateHandler=l(function(){var e=m.currentTime();if(e!==y){y=e;for(var n=function(){var n=v[t],o=n.startTimeInSeconds,i=n.durationInSeconds,r=n.ads,l=o+i;if(e>=o-1.2&&e<=l+1.2){var a;D=!!(e>=o&&e<=l&&Array.isArray(r)&&(null==r?void 0:r.length)>0),e>l&&w.set(o,!0),Qe.disable(),T&&T.classList.add("vjs-hidden"),S&&(S.style.pointerEvents="none",S.classList.add("vjs-hidden")),O&&(O.style.pointerEvents="none",O.classList.add("vjs-hidden")),b&&(b.el().style.pointerEvents="none",b.el().classList.add("vjs-hidden")),_&&(_.el().style.pointerEvents="none",_.el().classList.add("vjs-hidden")),f.el().classList.add("hide-progress-bar");for(var d=e-o,u=0,s=0,c=0;c<r.length;c++){var m,g=null==r||null===(m=r[c])||void 0===m?void 0:m.durationInSeconds;if(d<u+g){s=c;break}u+=g}setTimeout(function(){Pn.totalAds=null==r?void 0:r.length,Pn.currentAdIndex=s},1e3);var h=[];return null==r||r.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});h.push.apply(h,p(n))}),(null==n||null===(a=n.podSlotImpressionBeacon)||void 0===a?void 0:a.length)>0&&h.push.apply(h,p(null==n?void 0:n.podSlotImpressionBeacon)),R(e,n,h,s),"break"}I.delete(o)},t=0;t<v.length;t++){if("break"===n())break}D||(Pn={},f.el().classList.remove("hide-progress-bar"),b&&(b.el().style.pointerEvents="auto",b.el().classList.remove("vjs-hidden")),_&&(_.el().style.pointerEvents="auto",_.el().classList.remove("vjs-hidden")),T&&T.classList.remove("vjs-hidden"),S&&(S.style.pointerEvents="auto",S.classList.remove("vjs-hidden")),O&&(O.style.pointerEvents="auto",O.classList.remove("vjs-hidden")),Qe.enable())}},1e3),m.on("timeupdate",m._timeUpdateHandler);case 23:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),P=new Map,k=2.5;case 22:case"end":return e.stop()}},e)})),Cn.apply(this,arguments)}function jn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}var Nn=function(e){o(e).play()},Vn=function(e){o(e).pause()},Wn=function(e,n){var t=o(e),i=t.currentTime()+n;t.currentTime(i)},Un=function(e,n){var t=o(e),i=t.currentTime(),r=i<=n?0:i-n;t.currentTime(r)},Bn=function(e){return!!o.getPlayer("".concat(e))},Mn=function(e){return o(e).paused()},xn=function(){var e=n(t.mark(function e(o,i){var l,a,d,u=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l=u.length>2&&void 0!==u[2]&&u[2],e.next=3,X();case 3:return a=e.sent,d=r(o),e.abrupt("return",new Promise(function(e,r){k(i,a).then(function(){var r=n(t.mark(function n(r){var a,u,s,c,v,m,f,p;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(m=null==r?void 0:r.data,window.sid=pe(),m.contentType="linearchannel",m.channelId=null==i?void 0:i.channelId,f=(null==m||null===(a=m.linearchannel)||void 0===a?void 0:a.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(u=window)||void 0===u||null===(s=u.app_data)||void 0===s||null===(c=s.appcmsMain)||void 0===c||null===(v=c.adsConfig)||void 0===v?void 0:v.vodAdSticherProvider)||!1,p=Ce(m,o),!f){n.next=11;break}return n.next=9,gn(o,m);case 9:p=n.sent,l=!0;case 11:ee(m),p&&l?(zn(o,p),f&&Rn(o),d.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:m})})):(an.get()&&0!==Object.keys(an.get()).length&&dn({playerId:o,comscore:{enable:!0}}),e({status:!0,msg:"Feed authenticated",response:m}));case 13:case"end":return n.stop()}},n)}));return function(e){return r.apply(this,arguments)}}()).catch(function(e){r({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),Hn=function(){var e=n(t.mark(function e(o,i,l){var a,d,u,s,c,f,p;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X();case 2:return s=e.sent,(oe()||null)&&de(i),c=0,f=0,p=null,null!==(a=window)&&void 0!==a&&a.watchHistory&&null!==(d=window)&&void 0!==d&&null!==(u=d.watchHistory)&&void 0!==u&&u.enable&&C(i,s).then(function(e){var n,t,o,i,r,l,a;(null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),c=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,(f=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedPercentage)||null)<95)&&(p=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedTime)||null)}).catch(function(e){var n,t,o,i;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(i=o.watchHistory)||void 0===i||i.cb(e))}),e.abrupt("return",new Promise(function(e,l){P(i,s).then(function(){var i=n(t.mark(function n(i){var a,d,u,s,g,h,w,I,y,E,T,b,_,S,O,D,A,L,P,k,F,R,C,j,N,V,W,U,B,M,x,H,G,Y,Q,z,q,K;return t.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(D=null==i?void 0:i.data,A=(null==D?void 0:D.contentType)||"video",L=(null==D||null===(a=D[A])||void 0===a?void 0:a.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(d=window)||void 0===d||null===(u=d.app_data)||void 0===u||null===(s=u.appcmsMain)||void 0===s||null===(g=s.adsConfig)||void 0===g?void 0:g.vodAdSticherProvider)||!1,P=(null==D||null===(h=D.video)||void 0===h||null===(w=h.streamingInfo)||void 0===w?void 0:w.isLiveStream)||!1,ee(i.data),(k=(null==D||null===(I=D.ads)||void 0===I||null===(y=I.preRoll)||void 0===y||null===(E=y.adTags)||void 0===E||null===(T=E.web)||void 0===T?void 0:T.active)&&(null==D||null===(b=D.ads)||void 0===b||null===(_=b.preRoll)||void 0===_||null===(S=_.adTags)||void 0===S||null===(O=S.web)||void 0===O?void 0:O.url))&&He(o,k,D),F=Ce(D,o),!L){n.next=12;break}return n.next=11,gn(o,D);case 11:F=n.sent;case 12:F?(H=(null==D||null===(R=D.video)||void 0===R||null===(C=R.gist)||void 0===C?void 0:C.videoImageUrl)||(null==D||null===(j=D.video)||void 0===j||null===(N=j.gist)||void 0===N||null===(V=N.imageGist)||void 0===V?void 0:V.r16x9),(G=r(o)).poster(H),zn(o,F),L&&_n(o,p),G.on("loadstart",function(){P&&e({status:!0,msg:"Video Loaded",response:D})}),G.on("loadeddata",function(){Me(),e({status:!0,msg:"Video Loaded",response:D})}),G.one("play",function(){c&&!L&&f<95&&setTimeout(function(){G.currentTime(c)},0)}),G.one("error",function(){var e;l({status:!1,msg:(null==G||null===(e=G.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==D||null===(W=D.video)||void 0===W||null===(U=W.contentDetails)||void 0===U||null===(B=U.closedCaptions)||void 0===B?void 0:B.length)>0||(null==D||null===(M=D.video)||void 0===M||null===(x=M.closedCaptions)||void 0===x?void 0:x.length)>0?(K=(null==D||null===(Q=D.video)||void 0===Q||null===(z=Q.contentDetails)||void 0===z?void 0:z.closedCaptions)||(null==D||null===(q=D.video)||void 0===q?void 0:q.closedCaptions),Y=K.filter(function(e){return"VTT"===e.format}),v(o,Y)):m(o)):(Be(o,"Incompatible Source, only hls,mp4,drm content is allowed"),l("Incompatible Source, only hls,mp4,drm content is allowed"));case 13:case"end":return n.stop()}},n)}));return function(e){return i.apply(this,arguments)}}()).catch(function(e){qn(e,o,l,i)})}));case 10:case"end":return e.stop()}},e)}));return function(n,t,o){return e.apply(this,arguments)}}(),Gn=function(e,n,t){var o=r(e);return o.src(n),new Promise(function(e,n){var i=0;o.one("loadedmetadata",function(){clearTimeout(i),e({status:!0,msg:"video loaded"})}),o.one("loadstart",function(e){i=setTimeout(function(){n("FAILED: Took too long to load")},t)})})},Yn=function(e){var n=r(e),t=(an.get()||{}).destroyComscoreTag;if(Qn(),t&&t(),a(),window.onresize=null,n)n.dispose();else{var o=document.getElementById(e);o&&o.remove()}},Qn=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},zn=function(e,n){var t=r(e);t&&t.src(n)},qn=function(n,t,o,i){var r,l,a,d,u,s,c=null==n||null===(r=n.response)||void 0===r||null===(l=r.data)||void 0===l?void 0:l.errorCode,v=(null==n||null===(a=n.response)||void 0===a||null===(d=a.data)||void 0===d?void 0:d.errorMessage)||(null==n?void 0:n.message);Bn(t)&&Be(t,(null===(u=window)||void 0===u?void 0:u.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),o&&o(function(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(o),!0).forEach(function(t){e(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):jn(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}({status:!1,response:n,msg:"".concat(v)},i&&{videoId:i}))},Kn=function(e){var n=document.getElementById(e),t=n.getElementsByClassName("vjs-control-bar")[0];t&&(t.style.visibility="hidden");var o=n.getElementsByClassName("vjs-big-play-button")[0];o&&(o.style.display="none");var i=n.getElementsByClassName("vjs-fullscreen-control")[0];i&&(i.style.display="none")};export{j as $,F as A,be as B,ue as C,te as D,Gn as E,Wn as F,Nn as G,Vn as H,Un as I,Bn as J,Hn as K,xn as L,Yn as M,V as N,tn as O,N as P,J as Q,B as R,W as S,T,bn as U,Ge as V,ie as W,Mn as X,re as Y,Rn as Z,_n as _,Se as a,ae as a0,de as a1,oe as b,an as c,_e as d,ne as e,Ce as f,ge as g,ee as h,dn as i,Me as j,Be as k,zn as l,le as m,Kn as n,Te as o,He as p,Ue as q,gn as r,R as s,$ as t,P as u,Z as v,C as w,qn as x,X as y,k as z};
@@ -1,8 +0,0 @@
1
- /**
2
- * Fires internal player events which are generic for all skins
3
- * @param {String} [playerId] [playerId of the player]
4
- */
5
- export function globalPlayerEvents(playerId?: string, config: any, feedback: any, { res, sres }: {
6
- res: any;
7
- sres: any;
8
- }): void;
@@ -1,2 +0,0 @@
1
- export function detectBrowser(): "IE" | "Opera" | "Chrome" | "Safari" | "Firefox" | "Unknown";
2
- export function isMobile(): boolean;
@@ -1,19 +0,0 @@
1
- export function setCurrentSeries(data: any): void;
2
- export function setCurrentVideo(data: any): void;
3
- export function getCurrentSeries(): any;
4
- export function getCurrentVideo(): any;
5
- export function setVideoIdx(val: any): void;
6
- export function getVideoIdx(): any;
7
- export function createIdxMapping(arr: any): void;
8
- export function setVideoIdxById(videoId: any): void;
9
- export function setSeriesWatchMap(val: any): void;
10
- export function getSeriesWatchMap(): any;
11
- export namespace seasonIdxManager {
12
- function set(idx: any): void;
13
- function get(): number;
14
- }
15
- export namespace videoReplayTracker {
16
- function set(res: any): void;
17
- function get(videoId: any): any;
18
- function clear(): void;
19
- }
@@ -1,2 +0,0 @@
1
- export function handleError(playerId: any, message: any): void;
2
- export function clearError(): void;
@@ -1,2 +0,0 @@
1
- export function showLoader(playerId: any): void;
2
- export function hideLoader(playerId: any): void;
@@ -1,2 +0,0 @@
1
- export function setLocalisation(map: any): void;
2
- export function getLocalisation(key: any): any;
@@ -1,2 +0,0 @@
1
- export default loadScript;
2
- declare function loadScript(src: any): Promise<any>;
@@ -1 +0,0 @@
1
- export function switchToSecondaryAsset(res: any, playerId: any): boolean;