bitmovin-player 8.263.0 → 8.264.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/bitmovinplayer-serviceworker.js +2 -2
  2. package/bitmovinplayer-serviceworker.prod.js +2 -2
  3. package/bitmovinplayer-ui.css +1 -1
  4. package/bitmovinplayer-ui.js +2 -2
  5. package/bitmovinplayer.js +2 -2
  6. package/bitmovinplayer.prod.js +2 -2
  7. package/modules/bitmovinplayer-abr.js +2 -2
  8. package/modules/bitmovinplayer-abr.prod.js +2 -2
  9. package/modules/bitmovinplayer-advertising-bitmovin.js +2 -2
  10. package/modules/bitmovinplayer-advertising-bitmovin.prod.js +2 -2
  11. package/modules/bitmovinplayer-advertising-core.js +2 -2
  12. package/modules/bitmovinplayer-advertising-core.prod.js +2 -2
  13. package/modules/bitmovinplayer-advertising-ima.js +2 -2
  14. package/modules/bitmovinplayer-advertising-ima.prod.js +2 -2
  15. package/modules/bitmovinplayer-advertising-omsdk.js +2 -2
  16. package/modules/bitmovinplayer-advertising-omsdk.prod.js +2 -2
  17. package/modules/bitmovinplayer-analytics.js +1 -1
  18. package/modules/bitmovinplayer-analytics.prod.js +1 -1
  19. package/modules/bitmovinplayer-container-mp4.js +2 -2
  20. package/modules/bitmovinplayer-container-mp4.prod.js +2 -2
  21. package/modules/bitmovinplayer-container-ts.js +2 -2
  22. package/modules/bitmovinplayer-container-ts.prod.js +2 -2
  23. package/modules/bitmovinplayer-container-webm.js +2 -2
  24. package/modules/bitmovinplayer-container-webm.prod.js +2 -2
  25. package/modules/bitmovinplayer-core.js +2 -2
  26. package/modules/bitmovinplayer-core.prod.js +2 -2
  27. package/modules/bitmovinplayer-crypto.js +1 -1
  28. package/modules/bitmovinplayer-crypto.prod.js +1 -1
  29. package/modules/bitmovinplayer-dash.js +1 -1
  30. package/modules/bitmovinplayer-dash.prod.js +1 -1
  31. package/modules/bitmovinplayer-drm.js +2 -2
  32. package/modules/bitmovinplayer-drm.prod.js +2 -2
  33. package/modules/bitmovinplayer-engine-bitmovin.js +2 -2
  34. package/modules/bitmovinplayer-engine-bitmovin.prod.js +2 -2
  35. package/modules/bitmovinplayer-engine-native.js +2 -2
  36. package/modules/bitmovinplayer-engine-native.prod.js +2 -2
  37. package/modules/bitmovinplayer-engine-webrtc.js +2 -2
  38. package/modules/bitmovinplayer-engine-webrtc.prod.js +2 -2
  39. package/modules/bitmovinplayer-envivio.js +1 -1
  40. package/modules/bitmovinplayer-envivio.prod.js +1 -1
  41. package/modules/bitmovinplayer-hls.js +2 -2
  42. package/modules/bitmovinplayer-hls.prod.js +2 -2
  43. package/modules/bitmovinplayer-lowlatency.js +2 -2
  44. package/modules/bitmovinplayer-lowlatency.prod.js +2 -2
  45. package/modules/bitmovinplayer-mserenderer.js +2 -2
  46. package/modules/bitmovinplayer-mserenderer.prod.js +2 -2
  47. package/modules/bitmovinplayer-patch.js +1 -1
  48. package/modules/bitmovinplayer-patch.prod.js +1 -1
  49. package/modules/bitmovinplayer-playstation4.js +2 -2
  50. package/modules/bitmovinplayer-playstation4.prod.js +2 -2
  51. package/modules/bitmovinplayer-playstation5.js +2 -2
  52. package/modules/bitmovinplayer-playstation5.prod.js +2 -2
  53. package/modules/bitmovinplayer-polyfill.js +1 -1
  54. package/modules/bitmovinplayer-polyfill.prod.js +1 -1
  55. package/modules/bitmovinplayer-reactnative.js +1 -1
  56. package/modules/bitmovinplayer-reactnative.prod.js +1 -1
  57. package/modules/bitmovinplayer-remotecontrol.js +2 -2
  58. package/modules/bitmovinplayer-remotecontrol.prod.js +2 -2
  59. package/modules/bitmovinplayer-serviceworker-client.js +2 -2
  60. package/modules/bitmovinplayer-serviceworker-client.prod.js +2 -2
  61. package/modules/bitmovinplayer-serviceworker.js +2 -2
  62. package/modules/bitmovinplayer-serviceworker.prod.js +2 -2
  63. package/modules/bitmovinplayer-sgai.js +2 -2
  64. package/modules/bitmovinplayer-sgai.prod.js +2 -2
  65. package/modules/bitmovinplayer-smooth.js +2 -2
  66. package/modules/bitmovinplayer-smooth.prod.js +2 -2
  67. package/modules/bitmovinplayer-style.js +2 -2
  68. package/modules/bitmovinplayer-style.prod.js +2 -2
  69. package/modules/bitmovinplayer-subtitles-cea608.js +2 -2
  70. package/modules/bitmovinplayer-subtitles-cea608.prod.js +2 -2
  71. package/modules/bitmovinplayer-subtitles-native.js +2 -2
  72. package/modules/bitmovinplayer-subtitles-native.prod.js +2 -2
  73. package/modules/bitmovinplayer-subtitles-ttml.js +1 -1
  74. package/modules/bitmovinplayer-subtitles-ttml.prod.js +2 -2
  75. package/modules/bitmovinplayer-subtitles-vtt.js +2 -2
  76. package/modules/bitmovinplayer-subtitles-vtt.prod.js +1 -1
  77. package/modules/bitmovinplayer-subtitles.js +2 -2
  78. package/modules/bitmovinplayer-subtitles.prod.js +2 -2
  79. package/modules/bitmovinplayer-thumbnail-imp.js +2 -2
  80. package/modules/bitmovinplayer-thumbnail-imp.prod.js +2 -2
  81. package/modules/bitmovinplayer-thumbnail.js +2 -2
  82. package/modules/bitmovinplayer-thumbnail.prod.js +2 -2
  83. package/modules/bitmovinplayer-tizen.js +2 -2
  84. package/modules/bitmovinplayer-tizen.prod.js +2 -2
  85. package/modules/bitmovinplayer-ui.js +2 -2
  86. package/modules/bitmovinplayer-ui.prod.js +1 -1
  87. package/modules/bitmovinplayer-vidaa.js +2 -2
  88. package/modules/bitmovinplayer-vidaa.prod.js +2 -2
  89. package/modules/bitmovinplayer-vr.js +2 -2
  90. package/modules/bitmovinplayer-vr.prod.js +2 -2
  91. package/modules/bitmovinplayer-webos.js +2 -2
  92. package/modules/bitmovinplayer-webos.prod.js +2 -2
  93. package/modules/bitmovinplayer-wpe.js +2 -2
  94. package/modules/bitmovinplayer-wpe.prod.js +1 -1
  95. package/modules/bitmovinplayer-xml.js +1 -1
  96. package/modules/bitmovinplayer-xml.prod.js +1 -1
  97. package/package.json +1 -1
  98. package/types/advertising/API.d.ts +1 -1
  99. package/types/core/PlayerAPI.d.ts +1 -1
@@ -9,10 +9,10 @@
9
9
  * This software includes open-source components. See THIRD_PARTY_NOTICES
10
10
  * in the distribution for details.
11
11
  *
12
- * Bitmovin Player Version 8.263.0
12
+ * Bitmovin Player Version 8.264.0
13
13
  *
14
14
  ****************************************************************************/
15
15
 
16
16
  (function() {
17
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["bitmovinplayer-ui"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerui=t())}(self,function(){return function(){var e={5437:function(){},323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOM=void 0;var n=function(){function e(e,t,n){if(e instanceof Array){if(e.length>0&&e[0]instanceof HTMLElement){var o=e;this.elements=o}}else if(e instanceof HTMLElement){var i=e;this.elements=[i]}else if(e instanceof Document||e instanceof ShadowRoot)this.documentOrShadowRoot=e,this.elements=null;else if(t){var r=e;for(var s in i=document.createElement(r),t){var a=t[s];null!=a&&i.setAttribute(s,a)}n&&(i.component=n),this.elements=[i]}else{var l=e;this.elements=this.findChildElements(l)}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.elements?this.elements.length:0},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return void 0===e?this.elements:!this.elements||e>=this.elements.length||e<-this.elements.length?void 0:e<0?this.elements[this.elements.length-e]:this.elements[e]},e.prototype.forEach=function(e){this.elements&&this.elements.forEach(function(t){e(t)})},e.prototype.findChildElementsOfElement=function(e,t){var n=e.querySelectorAll(t);return[].slice.call(n)},e.prototype.findChildElements=function(e){var t=this,n=[];return this.elements?(this.forEach(function(o){n=n.concat(t.findChildElementsOfElement(o,e))}),n):this.findChildElementsOfElement(document,e)},e.prototype.find=function(t){return new e(this.findChildElements(t))},e.prototype.focusToFirstInput=function(){var e=this.findChildElements('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0&&e[0].focus()},e.prototype.scrollTo=function(e,t){this.elements[0].scrollTo(e,t)},e.prototype.html=function(e){return arguments.length>0?this.setHtml(e):this.getHtml()},e.prototype.getHtml=function(){return this.elements[0].innerHTML},e.prototype.setHtml=function(e){return void 0!==e&&null!=e||(e=""),this.forEach(function(t){t.innerHTML=e}),this},e.prototype.empty=function(){return this.forEach(function(e){e.innerHTML=""}),this},e.prototype.val=function(){var e=this.elements[0];if(e instanceof HTMLSelectElement||e instanceof HTMLInputElement)return e.value;throw new Error("val() not supported for ".concat(typeof e))},e.prototype.attr=function(e,t){return arguments.length>1?this.setAttr(e,t):this.getAttr(e)},e.prototype.removeAttr=function(e){this.forEach(function(t){t.removeAttribute(e)})},e.prototype.getAttr=function(e){return this.elements[0].getAttribute(e)},e.prototype.setAttr=function(e,t){return this.forEach(function(n){n.setAttribute(e,t)}),this},e.prototype.data=function(e,t){return arguments.length>1?this.setData(e,t):this.getData(e)},e.prototype.getData=function(e){return this.elements[0].getAttribute("data-"+e)},e.prototype.setData=function(e,t){return this.forEach(function(n){n.setAttribute("data-"+e,t)}),this},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.appendChild(e.elements[o])})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.insertBefore(e.elements[o],t.firstChild)})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.remove=function(){var e=function(e){var t=e.parentNode;t&&t.removeChild(e)};this.elements?this.forEach(function(t){return e(t)}):e(this.documentOrShadowRoot)},e.prototype.offset=function(){var e=this.elements[0].getBoundingClientRect(),t=document.body.parentElement.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left}},e.prototype.width=function(){return this.elements[0].offsetWidth},e.prototype.height=function(){return this.elements[0].offsetHeight},e.prototype.size=function(){return{width:this.width(),height:this.height()}},e.prototype.on=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.addEventListener(e,t,n):o.forEach(function(o){o.addEventListener(e,t,n)})}),this},e.prototype.off=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.removeEventListener(e,t,n):o.forEach(function(o){o.removeEventListener(e,t,n)})}),this},e.prototype.addClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).add.apply(n,o)}else t.className+=" "+e}),this},e.prototype.removeClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).remove.apply(n,o)}else t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}),this},e.prototype.hasClass=function(e){var t=!1;return this.forEach(function(n){n.classList?n.classList.contains(e)&&(t=!0):new RegExp("(^| )"+e+"( |$)","gi").test(n.className)&&(t=!0)}),t},e.prototype.css=function(e,t){if("string"==typeof e){var n=e;return 2===arguments.length?this.setCss(n,t):this.getCss(n)}var o=e;return this.setCssCollection(o)},e.prototype.removeCss=function(e,t){return void 0===t&&(t=0),this.elements[t].style.removeProperty(e)},e.prototype.getCss=function(e){return getComputedStyle(this.elements[0])[e]},e.prototype.setCss=function(e,t){return this.forEach(function(n){n.style[e]=t}),this},e.prototype.setCssCollection=function(e){return this.forEach(function(t){Object.assign(t.style,e)}),this},e}();t.DOM=n},938:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var r=n(1971),s=n(3998),a=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e){this.listeners.push(new l(e))},e.prototype.subscribeOnce=function(e){this.listeners.push(new l(e,!0))},e.prototype.subscribeRateLimited=function(e,t){this.listeners.push(new c(e,t))},e.prototype.unsubscribe=function(e){for(var t=0;t<this.listeners.length;t++){var n=this.listeners[t];if(n.listener===e)return n.clear(),r.ArrayUtils.remove(this.listeners,n),!0}return!1},e.prototype.unsubscribeAll=function(){for(var e=0,t=this.listeners;e<t.length;e++)t[e].clear();this.listeners=[]},e.prototype.dispatch=function(e,t){void 0===t&&(t=null);for(var n=[],o=0,i=this.listeners.slice(0);o<i.length;o++){var s=i[o];s.fire(e,t),s.isOnce()&&n.push(s)}for(var a=0,l=n;a<l.length;a++){var c=l[a];r.ArrayUtils.remove(this.listeners,c)}},e.prototype.getEvent=function(){return this},e}();t.EventDispatcher=a;var l=function(){function e(e,t){void 0===t&&(t=!1),this.eventListener=e,this.once=t}return Object.defineProperty(e.prototype,"listener",{get:function(){return this.eventListener},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){this.eventListener(e,t)},e.prototype.isOnce=function(){return this.once},e.prototype.clear=function(){},e}(),c=function(e){function t(t,n){var o=e.call(this,t)||this;o.rateMs=n;var i=function(){o.rateLimitTimout.start()};return o.rateLimitTimout=new s.Timeout(o.rateMs,function(){o.lastSeenEvent&&(o.fireSuper(o.lastSeenEvent.sender,o.lastSeenEvent.args),i(),o.lastSeenEvent=null)}),o.rateLimitingEventListener=function(e,t){if(o.shouldFireEvent())return o.fireSuper(e,t),void i();o.lastSeenEvent={sender:e,args:t}},o}return i(t,e),t.prototype.shouldFireEvent=function(){return!this.rateLimitTimout.isActive()},t.prototype.fireSuper=function(t,n){e.prototype.fire.call(this,t,n)},t.prototype.fire=function(e,t){this.rateLimitingEventListener(e,t)},t.prototype.clear=function(){e.prototype.clear.call(this),this.rateLimitTimout.clear()},t}(l)},3423:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7247:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.UIFactory=void 0;var r,s=n(4048),a=n(8666),l=n(6441),c=n(9523),u=n(1886),p=n(6448),f=n(4073),d=n(8634),g=n(8902),h=n(5277),v=n(9052),y=n(1779),m=n(8950),b=n(9024),C=n(9819),S=n(7273),P=n(4617),w=n(5110),E=n(6003),O=n(8754),_=n(5829),k=n(5932),T=n(1291),x=n(4200),A=n(739),L=n(2717),M=n(6233),I=n(2680),B=n(1904),D=n(2691),j=n(5705),U=n(9529),R=n(1942),F=n(823),H=n(5816),z=n(3850),V=n(4947),N=n(7395),W=n(4536),G=n(1758),K=n(5801),q=n(1015),Q=n(796),Y=n(7776),X=n(4487),J=n(6250),Z=n(9263),$=n(2963),ee=n(1368),te=n(7280),ne=n(4636),oe=n(4103),ie=n(5375),re=n(5256),se=n(9434);!function(e){function t(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!1);var o={components:[],hidden:!0,pageTransitionAnimation:!0};null!=t&&(o.hideDelay=t);var i=new f.SettingsPanel(o),r=[new $.DynamicSettingsPanelItem({label:K.i18n.getLocalizer("settings.video.quality"),settingComponent:new l.VideoQualitySelectBox,container:i}),new $.DynamicSettingsPanelItem({label:K.i18n.getLocalizer("speed"),settingComponent:new c.PlaybackSpeedSelectBox,container:i}),new $.DynamicSettingsPanelItem({label:K.i18n.getLocalizer("settings.audio.track"),settingComponent:new u.AudioTrackSelectBox,container:i}),new $.DynamicSettingsPanelItem({label:K.i18n.getLocalizer("settings.audio.quality"),settingComponent:new p.AudioQualitySelectBox,container:i})];if(n){var s=new Z.EcoModeContainer;s.setOnToggleCallback(function(){i.getDomElement().css({width:"",height:""})}),r.unshift(s)}var v=new a.SettingsPanelPage({components:r});i.addComponent(v);var y=new d.SubtitleSettingsPanelPage({settingsPanel:i,overlay:e,useDynamicSettingsPanelItem:!0}),m=new g.SettingsPanelPageOpenButton({targetPage:y,container:i,ariaLabel:K.i18n.getLocalizer("settings.subtitles"),text:K.i18n.getLocalizer("settings.subtitles.options")}),b=new h.SubtitleSelectBox,C=new $.DynamicSettingsPanelItem({label:K.i18n.getLocalizer("settings.subtitles"),backNavigationRightComponent:m,settingComponent:b,container:i});return v.addComponent(C),i.addComponent(y),i}var n;e.buildUI=function(t,n){return void 0===n&&(n={}),new G.UIManager(t,[{ui:e.defaultLayouts.emptyState(),condition:function(e){return!e.isSourceLoaded}},{ui:e.defaultLayouts.smallScreenAds(),condition:function(e){return e.documentWidth<800&&e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.smallScreen(),condition:function(e){return!e.isAd&&!e.adRequiresUi&&e.documentWidth<800}},o(o({},e.defaultLayouts.tvAds()),{condition:function(e){return e.isTv&&e.isAd&&e.adRequiresUi}}),o(o({},e.defaultLayouts.tv()),{condition:function(e){return e.isTv&&!e.isAd&&!e.adRequiresUi}}),{ui:e.defaultLayouts.ads(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.main(n),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],n)},e.buildSmallScreenUI=function(t,n){return void 0===n&&(n={}),new G.UIManager(t,[{ui:e.defaultLayouts.smallScreenAds(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.smallScreen(),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],n)},e.buildCastReceiverUI=function(t,n){return void 0===n&&(n={}),new G.UIManager(t,e.defaultLayouts.castReceiver(n),n)},e.buildTvUI=function(t,n){return void 0===n&&(n={}),new G.UIManager(t,[o(o({},e.defaultLayouts.tvAds()),{condition:function(e){return e.isAd&&e.adRequiresUi}}),o(o({},e.defaultLayouts.tv()),{condition:function(e){return!e.isAd&&!e.adRequiresUi}})],n)},e.buildSubtitleUI=function(t,n){return void 0===n&&(n={}),new G.UIManager(t,e.defaultLayouts.subtitle(),n)},(n=e.defaultLayouts||(e.defaultLayouts={})).subtitle=function(){var e=new s.SubtitleOverlay,t=new f.SettingsPanel({components:[],hidden:!0}),n=new d.SubtitleSettingsPanelPage({settingsPanel:t,overlay:e});return t.addComponent(n),new M.UIContainer({components:[e,t]})},n.main=function(e){void 0===e&&(e={});var n=new s.SubtitleOverlay,o=t(n,void 0,!0===e.ecoMode),r=new v.ControlBar({components:[new y.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new y.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new E.VolumeSlider,new O.Spacer,new _.PictureInPictureToggleButton,new k.AirPlayToggleButton,new T.CastToggleButton,new x.VRToggleButton,new A.SettingsToggleButton({settingsPanel:o}),new L.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]}),a=[e.includeWatermark?new R.Watermark:null].filter(function(e){return e});return new M.UIContainer({components:i(i([n,new I.BufferingOverlay,new B.PlaybackToggleOverlay,new D.CastStatusOverlay,r,new j.TitleBar,new U.RecommendationOverlay],a,!0),[new ne.DismissClickOverlay({target:o}),o,new F.ErrorMessageOverlay],!1),hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished]})},n.ads=function(){var e=new z.AdControlBar({components:[new y.Container({components:[new m.AdCounterLabel,new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new y.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new O.Spacer,new L.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new M.UIContainer({components:[new I.BufferingOverlay,new H.AdClickOverlay,new B.PlaybackToggleOverlay,new te.AdStatusOverlay,e,new j.TitleBar({components:[new y.Container({components:[new oe.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new F.ErrorMessageOverlay],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished],cssClasses:["ui-ads"]})},n.smallScreen=function(){var e=new s.SubtitleOverlay,n=t(e,-1),o=new v.ControlBar({components:[new y.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new y.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new E.VolumeSlider,new O.Spacer,new _.PictureInPictureToggleButton,new A.SettingsToggleButton({settingsPanel:n}),new L.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]});return new M.UIContainer({components:[e,new I.BufferingOverlay,new D.CastStatusOverlay,re.BrowserUtils.isMobile?new ee.TouchControlOverlay:new B.PlaybackToggleOverlay,new U.RecommendationOverlay,o,new j.TitleBar({components:[new y.Container({components:[new V.MetadataLabel({content:V.MetadataLabelContent.Title}),new O.Spacer,new T.CastToggleButton,new k.AirPlayToggleButton,new x.VRToggleButton],cssClasses:["titlebar-row"]})]}),new ne.DismissClickOverlay({target:n}),n,new F.ErrorMessageOverlay],cssClasses:["ui-smallscreen"],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished]})},n.smallScreenAds=function(){var e=new z.AdControlBar({components:[new y.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new y.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new O.Spacer,new L.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new M.UIContainer({components:[new I.BufferingOverlay,new H.AdClickOverlay,new B.PlaybackToggleOverlay,e,new j.TitleBar({components:[new y.Container({components:[new oe.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new te.AdStatusOverlay,new F.ErrorMessageOverlay],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished],cssClasses:["ui-smallscreen","ui-ads"]})},n.castReceiver=function(e){void 0===e&&(e={});var t=new v.ControlBar({components:[new y.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({smoothPlaybackPositionUpdateIntervalMs:-1}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]})]}),n=[e.includeWatermark?new R.Watermark:null].filter(function(e){return e});return new W.CastUIContainer({components:i(i([new s.SubtitleOverlay,new I.BufferingOverlay,new B.PlaybackToggleOverlay,t,new j.TitleBar({keepHiddenWithoutMetadata:!0})],n,!0),[new F.ErrorMessageOverlay],!1),cssClasses:["ui-cast-receiver"],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished]})},n.tv=function(){var e=new C.SeekBar({label:new S.SeekBarLabel}),n=new s.SubtitleOverlay,o=t(n,5e3),i=new q.SubtitleListBox({title:K.i18n.getLocalizer("settings.subtitles")}),r=new A.SettingsToggleButton({settingsPanel:i,autoHideWhenNoActiveSettings:!0,cssClass:"ui-subtitle-list-box-toggle-button",text:K.i18n.getLocalizer("settings.subtitles")}),a=new Q.AudioTrackListBox({title:K.i18n.getLocalizer("settings.audio.track")}),l=new A.SettingsToggleButton({settingsPanel:a,autoHideWhenNoActiveSettings:!0,cssClass:"ui-audio-track-list-box-toggle-button",text:K.i18n.getLocalizer("settings.audio.track")}),c=new j.TitleBar({components:[new y.Container({components:[new V.MetadataLabel({content:V.MetadataLabelContent.Title})],cssClasses:["ui-titlebar-top"]}),new y.Container({components:[new V.MetadataLabel({content:V.MetadataLabelContent.Description})],cssClasses:["ui-titlebar-bottom"]})]}),u=new P.PlaybackToggleButton,p=new y.Container({components:[u,new O.Spacer,r,l,new A.SettingsToggleButton({settingsPanel:o})],cssClasses:["controlbar-bottom"]}),f=new v.ControlBar({components:[new y.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),e,new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),p]}),d=new B.PlaybackToggleOverlay,g=new U.RecommendationOverlay,h=new M.UIContainer({components:[n,new I.BufferingOverlay,d,f,c,o,i,a,g,new F.ErrorMessageOverlay],cssClasses:["ui-tv"],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished]});return{ui:h,spatialNavigation:new Y.SpatialNavigation(new X.RootNavigationGroup(h,d,e,new ie.FocusableContainer(p,u)),new J.SettingsPanelNavigationGroup(o,{closeOnSelect:!1}),new J.SettingsPanelNavigationGroup(i),new J.SettingsPanelNavigationGroup(a),new se.RecommendationOverlayNavigationGroup(g))}},n.tvAds=function(){var e=new B.PlaybackToggleOverlay,t=new te.AdStatusOverlay,n=new M.UIContainer({components:[new I.BufferingOverlay,new H.AdClickOverlay,e,t,new z.AdControlBar({components:[new y.Container({components:[new m.AdCounterLabel,new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]})]}),new j.TitleBar({components:[new y.Container({components:[new oe.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new F.ErrorMessageOverlay],cssClasses:["ui-tv","ui-ads"],hidePlayerStateExceptions:[N.PlayerUtils.PlayerState.Prepared,N.PlayerUtils.PlayerState.Paused,N.PlayerUtils.PlayerState.Finished]});return{ui:n,spatialNavigation:new Y.SpatialNavigation(new X.RootNavigationGroup(n,e,t.adSkipButton))}},n.emptyState=function(){return new M.UIContainer({components:[new I.BufferingOverlay,new B.PlaybackToggleOverlay,new F.ErrorMessageOverlay],cssClasses:["ui","ui-empty-state"]})}}(r||(t.UIFactory=r={}))},1758:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapper=t.UIInstanceManager=t.UIManager=void 0;var a=n(6233),l=n(323),c=n(1779),u=n(938),p=n(3226),f=n(1971),d=n(5256),g=n(1767),h=n(5801),v=n(8101),y=n(2157),m=n(7885),b=n(8919),C=n(7682),S=n(1281),P=function(){function e(e,t,n){void 0===n&&(n={});var o=this;if(this.events={onUiVariantResolve:new u.EventDispatcher,onActiveUiChanged:new u.EventDispatcher},t instanceof a.UIContainer){var i=t,c=[];c.push({ui:i}),this.uiVariants=c}else this.uiVariants=t;this.subtitleSettingsManager=new m.SubtitleSettingsManager,this.shadowDomManager=new C.ShadowDomManager,this.player=e,this.managerPlayerWrapper=new O(e),n.metadata=n.metadata?n.metadata:{},this.config=r(r({playbackSpeedSelectionEnabled:!0,autoUiVariantResolve:!0,disableAutoHideWhenHovered:!1,enableSeekPreview:!0,shadowDom:!1},n),{events:{onUpdated:new u.EventDispatcher},volumeController:new g.VolumeController(this.managerPlayerWrapper.getPlayer()),adBreakTracker:new S.AdBreakTracker(this.managerPlayerWrapper.getPlayer())}),this.recommendationsApi={add:function(e){o.config.metadata.recommendations.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return f.ArrayUtils.remove(o.config.metadata.recommendations,e)===e&&(o.config.events.onUpdated.dispatch(o),!0)},list:function(){return s([],o.config.metadata.recommendations,!0)}},this.timelineMarkersApi={add:function(e){o.config.metadata.markers.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return f.ArrayUtils.remove(o.config.metadata.markers,e)===e&&(o.config.events.onUpdated.dispatch(o),!0)},list:function(){return s([],o.config.metadata.markers,!0)}};var p=function(){var t=e.getSource()||{};o.config.metadata=r({},n.metadata);var i={metadata:{title:t.title,description:t.description,markers:t.markers,recommendations:t.recommendations}};o.config.metadata.title=i.metadata.title||n.metadata.title,o.config.metadata.description=i.metadata.description||n.metadata.description,o.config.metadata.markers=s([],i.metadata.markers||n.metadata.markers||[],!0),o.config.metadata.recommendations=s([],i.metadata.recommendations||n.metadata.recommendations||[],!0),b.StorageUtils.setStorageApiDisabled(n)};p(),this.config.localization&&h.i18n.setConfig(this.config.localization),this.subtitleSettingsManager.initialize();var d=function(){p(),o.config.events.onUpdated.dispatch(o)},P=this.managerPlayerWrapper.getPlayer();P.on(this.player.exports.PlayerEvent.SourceLoaded,d),(0,y.isMobileV3PlayerAPI)(P)&&P.on(y.MobileV3PlayerEvent.PlaylistTransition,d),n.container?this.uiContainerElement=(n.container,HTMLElement,new l.DOM(n.container)):this.uiContainerElement=new l.DOM(e.getContainer()),(1==this.config.shadowDom||this.config.shadowDom&&this.config.shadowDom.enabled)&&(C.ShadowDomManager.isShadowDomSupported()?this.shadowDomManager.initialize(this.uiContainerElement,!0===this.config.shadowDom?{enabled:!0}:this.config.shadowDom):console.warn("Shadow DOM is not supported in this environment. Falling back to classic UI rendering.")),this.uiInstanceManagers=[];for(var w=[],_=0,k=this.uiVariants;_<k.length;_++){var T=k[_];null==T.condition&&w.push(T),this.uiInstanceManagers.push(new E(e,T.ui,this.config,this.subtitleSettingsManager,this.uiWrapperElement,T.spatialNavigation))}if(w.length>1)throw Error("Too many UIs without a condition: You cannot have more than one default UI");if(w.length>0&&w[0]!==this.uiVariants[this.uiVariants.length-1])throw Error("Invalid UI variant order: the default UI (without condition) must be at the end of the list");var x=null,A=null!=e.getSource();e.on(e.exports.PlayerEvent.SourceLoaded,function(){A=!0}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){A=!1});var L=function(t){if(null!=t)switch(t.type){case e.exports.PlayerEvent.AdStarted:x=t;break;case e.exports.PlayerEvent.AdBreakFinished:x=null,o.config.events.onUpdated.dispatch(o);break;case e.exports.PlayerEvent.SourceLoaded:break;case e.exports.PlayerEvent.SourceUnloaded:x=null}var n=null!=x,i=!1;if(n){var r=x.ad;if(r.isLinear){var s=r;i=s.uiConfig&&s.uiConfig.requestsUi||!1}}i&&o.config.events.onUpdated.dispatch(o),o.resolveUiVariant({isAd:n,adRequiresUi:i,isSourceLoaded:A},function(e){e.isAd&&o.currentUi.getWrappedPlayer().fireEventInUI(o.player.exports.PlayerEvent.AdStarted,x)})};this.config.autoUiVariantResolve&&(this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceLoaded,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceUnloaded,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Play,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Paused,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Playing,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdStarted,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdBreakFinished,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.PlayerResized,L),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.ViewModeChanged,L)),this.focusVisibilityTracker=new v.FocusVisibilityTracker("bmpui",this.uiWrapperElement),L(null)}return e.localize=function(e){return h.i18n.getLocalizer(e)},e.setLocalizationConfig=function(e){h.i18n.setConfig(e)},e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUiVariants=function(){return this.uiVariants},e.prototype.switchToUiVariant=function(e,t){var n=this.uiVariants.indexOf(e),o=this.currentUi,i=this.uiInstanceManagers[n];i!==this.currentUi&&(this.currentUi&&this.currentUi.getUI().hide(),this.currentUi=i,null!=this.currentUi&&(this.currentUi.isConfigured()||(this.addUi(this.currentUi),this.currentUi.getUI().isHidden()||this.currentUi.getUI().hide()),t&&t(),this.currentUi.getUI().show(),this.events.onActiveUiChanged.dispatch(this,{previousUi:o,currentUi:i})))},e.prototype.resolveUiVariant=function(e,t){void 0===e&&(e={});var n={isAd:!1,adRequiresUi:!1,isFullscreen:this.player.getViewMode()===this.player.exports.ViewMode.Fullscreen,isMobile:d.BrowserUtils.isMobile,isTv:d.BrowserUtils.isTv,isPlaying:this.player.isPlaying(),isSourceLoaded:!1,width:this.uiContainerElement.width(),documentWidth:document.body.clientWidth},o=r(r({},n),e);this.events.onUiVariantResolve.dispatch(this,o);for(var i=null,s=0,a=this.uiVariants;s<a.length;s++){var l=a[s],c=null==l.condition||!0===l.condition(o);null==i&&c?i=l:l.ui.hide()}this.switchToUiVariant(i,function(){t&&t(o)})},Object.defineProperty(e.prototype,"uiWrapperElement",{get:function(){var e=this.shadowDomManager.getShadowRoot();return null!=e?new l.DOM(e):this.uiContainerElement},enumerable:!1,configurable:!0}),e.prototype.addUi=function(e){var t=e.getUI().getDomElement(),n=e.getWrappedPlayer();e.configureControls(),this.uiWrapperElement.append(t),n.getSource()&&this.config.events.onUpdated.dispatch(this),window.requestAnimationFrame?requestAnimationFrame(function(){e.onConfigured.dispatch(e.getUI())}):setTimeout(function(){e.onConfigured.dispatch(e.getUI())},0)},e.prototype.releaseUi=function(e){e.releaseControls();var t=e.getUI();t.hasDomElement()&&t.getDomElement().remove(),e.clearEventHandlers()},e.prototype.release=function(){this.config.adBreakTracker.release();for(var e=0,t=this.uiInstanceManagers;e<t.length;e++){var n=t[e];this.releaseUi(n)}this.managerPlayerWrapper.clearEventHandlers(),this.focusVisibilityTracker.release(),this.shadowDomManager.release()},Object.defineProperty(e.prototype,"onUiVariantResolve",{get:function(){return this.events.onUiVariantResolve},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onActiveUiChanged",{get:function(){return this.events.onActiveUiChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeUi",{get:function(){return this.currentUi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recommendations",{get:function(){return this.recommendationsApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timelineMarkers",{get:function(){return this.timelineMarkersApi},enumerable:!1,configurable:!0}),e.prototype.getTimelineMarkers=function(){return this.timelineMarkers.list()},e.prototype.addTimelineMarker=function(e){this.timelineMarkers.add(e)},e.prototype.removeTimelineMarker=function(e){return this.timelineMarkers.remove(e)},e}();t.UIManager=P;var w=function(){function e(e,t,n,o,i,r){this.events={onConfigured:new u.EventDispatcher,onSeek:new u.EventDispatcher,onSeekPreview:new u.EventDispatcher,onSeeked:new u.EventDispatcher,onComponentShow:new u.EventDispatcher,onComponentHide:new u.EventDispatcher,onComponentViewModeChanged:new u.EventDispatcher,onControlsShow:new u.EventDispatcher,onPreviewControlsHide:new u.EventDispatcher,onControlsHide:new u.EventDispatcher,onRelease:new u.EventDispatcher,onBufferingShow:new u.EventDispatcher,onBufferingHide:new u.EventDispatcher},this.playerWrapper=new O(e),this.ui=t,this.config=n,this.subtitleSettingsManager=o,this.uiWrapperElement=i,this.spatialNavigation=r}return e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUI=function(){return this.ui},e.prototype.getPlayer=function(){return this.playerWrapper.getPlayer()},Object.defineProperty(e.prototype,"onConfigured",{get:function(){return this.events.onConfigured},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeek",{get:function(){return this.events.onSeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeekPreview",{get:function(){return this.events.onSeekPreview},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this.events.onSeeked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentShow",{get:function(){return this.events.onComponentShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentHide",{get:function(){return this.events.onComponentHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsShow",{get:function(){return this.events.onControlsShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onPreviewControlsHide",{get:function(){return this.events.onPreviewControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsHide",{get:function(){return this.events.onControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingShow",{get:function(){return this.events.onBufferingShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingHide",{get:function(){return this.events.onBufferingHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRelease",{get:function(){return this.events.onRelease},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentViewModeChanged",{get:function(){return this.events.onComponentViewModeChanged},enumerable:!1,configurable:!0}),e.prototype.clearEventHandlers=function(){this.playerWrapper.clearEventHandlers();var e=this.events;for(var t in e)e[t].unsubscribeAll()},e}();t.UIInstanceManager=w;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getWrappedPlayer=function(){return this.getPlayer()},t.prototype.configureControls=function(){this.configureControlsTree(this.getUI()),this.configured=!0},t.prototype.isConfigured=function(){return this.configured},t.prototype.configureControlsTree=function(e){var t=this,n=[];p.UIUtils.traverseTree(e,function(e){for(var o=0,i=n;o<i.length;o++)if(i[o]===e)throw console&&console.error("Circular reference in UI tree",e),Error("Circular reference in UI tree: "+e.constructor.name);e.initialize(),e.configure(t.getPlayer(),t),n.push(e)})},t.prototype.releaseControls=function(){var e;this.configured&&(this.onRelease.dispatch(this.getUI()),this.releaseControlsTree(this.getUI()),this.configured=!1),null===(e=this.spatialNavigation)||void 0===e||e.release(),this.released=!0},t.prototype.isReleased=function(){return this.released},t.prototype.releaseControlsTree=function(e){if(e.release(),e instanceof c.Container)for(var t=0,n=e.getComponents();t<n.length;t++){var o=n[t];this.releaseControlsTree(o)}},t.prototype.clearEventHandlers=function(){e.prototype.clearEventHandlers.call(this)},t}(w),O=function(){function e(e){var t=this;this.eventHandlers={},this.player=e;for(var n=Object.getOwnPropertyNames(Object.getPrototypeOf({})),o=s(["constructor"],n,!0),i=[],r=[],a=0,l=function(e){for(var t=[];e;){var n=Object.getOwnPropertyNames(e).filter(function(e){return-1===t.indexOf(e)});t=t.concat(n),e=Object.getPrototypeOf(e)}return t}(e).filter(function(e){return-1===o.indexOf(e)});a<l.length;a++){var c=l[a];"function"==typeof e[c]?i.push(c):r.push(c)}for(var u={},p=function(t){u[t]=function(){return e[t].apply(e,arguments)}},d=0,g=i;d<g.length;d++)p(g[d]);for(var h=function(t){var n=function(e){for(;e;){var n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;e=Object.getPrototypeOf(e)}}(e);n&&(n.get||n.set)?Object.defineProperty(u,t,{get:function(){return n.get.call(e)},set:function(t){return n.set.call(e,t)}}):u[t]=e[t]},v=0,y=r;v<y.length;v++)h(y[v]);u.on=function(n,o){return e.on(n,o),t.eventHandlers[n]||(t.eventHandlers[n]=[]),t.eventHandlers[n].push(o),u},u.off=function(n,o){return e.off(n,o),t.eventHandlers[n]&&f.ArrayUtils.remove(t.eventHandlers[n],o),u},u.fireEventInUI=function(e,n){if(t.eventHandlers[e])for(var o=Object.assign({},{timestamp:Date.now(),type:e,uiSourced:!0},n),i=0,r=t.eventHandlers[e];i<r.length;i++)(0,r[i])(o)},this.wrapper=u}return e.prototype.getPlayer=function(){return this.wrapper},e.prototype.clearEventHandlers=function(){try{this.player.getSource()}catch(e){e instanceof this.player.exports.PlayerAPINotAvailableError&&(this.eventHandlers={})}for(var e in this.eventHandlers)for(var t=0,n=this.eventHandlers[e];t<n.length;t++){var o=n[t];this.player.off(e,o)}},e}();t.PlayerWrapper=O},4536:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastUIContainer=void 0;var r=n(6233),s=n(3998),a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1;this.castUiHideTimeout=new s.Timeout(i.hideDelay,function(){n.onControlsHide.dispatch(o),r=!1});var a=function(){r||(n.onControlsShow.dispatch(o),r=!0)},l=function(){a(),o.castUiHideTimeout.clear()},c=function(){a(),o.castUiHideTimeout.start()};t.on(t.exports.PlayerEvent.Play,c),t.on(t.exports.PlayerEvent.Paused,l),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,function(){t.isPlaying()?c():l()}),n.getConfig().events.onUpdated.subscribe(c)},t.prototype.release=function(){e.prototype.release.call(this),this.castUiHideTimeout.clear()},t}(r.UIContainer);t.CastUIContainer=a},5955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.ViewMode=void 0;var o,i=n(6504),r=n(323),s=n(938),a=n(5801);!function(e){e.Persistent="persistent",e.Temporary="temporary"}(o||(t.ViewMode=o={}));var l=function(){function e(e){void 0===e&&(e={});var t=this;this.languageChangedHandler=function(){return t.onLanguageChanged()},this.componentEvents={onShow:new s.EventDispatcher,onHide:new s.EventDispatcher,onViewModeChanged:new s.EventDispatcher,onHoverChanged:new s.EventDispatcher,onEnabled:new s.EventDispatcher,onDisabled:new s.EventDispatcher,onFocusChanged:new s.EventDispatcher},this.config=this.mergeConfig(e,{tag:"div",id:"bmpui-id-"+i.Guid.next(),cssPrefix:"bmpui",cssClass:"ui-component",cssClasses:[],hidden:!1,disabled:!1,tabIndex:-1},{}),this.viewMode=o.Temporary,a.i18n.getConfig().events.onLanguageChanged.subscribe(this.languageChangedHandler)}return e.prototype.initialize=function(){this.hidden=this.config.hidden,this.disabled=this.config.disabled,this.isHidden()&&(this.hidden=!1,this.hide()),this.isDisabled()&&(this.disabled=!1,this.disable())},e.prototype.configure=function(e,t){var n=this;this.onShow.subscribe(function(){return t.onComponentShow.dispatch(n)}),this.onHide.subscribe(function(){return t.onComponentHide.dispatch(n)}),this.onViewModeChanged.subscribe(function(e,o){return t.onComponentViewModeChanged.dispatch(n,o)}),this.getDomElement().on("mouseenter",function(){return n.onHoverChangedEvent(!0)}),this.getDomElement().on("mouseleave",function(){return n.onHoverChangedEvent(!1)}),this.getDomElement().on("focusin",function(){return n.onFocusChangedEvent(!0)}),this.getDomElement().on("focusout",function(){return n.onFocusChangedEvent(!1)})},e.prototype.release=function(){a.i18n.getConfig().events.onLanguageChanged.unsubscribe(this.languageChangedHandler)},e.prototype.onLanguageChanged=function(){},e.prototype.toDomElement=function(){var e=new r.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role},this);return"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString()),e},e.prototype.getDomElement=function(){return this.element||(this.element=this.toDomElement()),this.element},e.prototype.hasDomElement=function(){return Boolean(this.element)},e.prototype.setAriaLabel=function(e){this.setAriaAttr("label",a.i18n.performLocalization(e))},e.prototype.setAriaAttr=function(e,t){this.getDomElement().attr("aria-".concat(e),t)},e.prototype.mergeConfig=function(e,t,n){return Object.assign({},n,t,e)},e.prototype.getCssClasses=function(){var e=this,t=[this.config.cssClass].concat(this.config.cssClasses);return(t=t.map(function(t){return e.prefixCss(t)})).join(" ").trim()},e.prototype.prefixCss=function(e){return this.config.cssPrefix+"-"+e},e.prototype.getConfig=function(){return this.config},e.prototype.hide=function(){this.hidden||(this.hidden=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_HIDDEN)),this.onHideEvent())},e.prototype.show=function(){this.hidden&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_HIDDEN)),this.hidden=!1,this.onShowEvent())},e.prototype.isHidden=function(){return this.hidden},e.prototype.isShown=function(){return!this.isHidden()},e.prototype.toggleHidden=function(){this.isHidden()?this.show():this.hide()},e.prototype.disable=function(){this.disabled||(this.disabled=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_DISABLED)),this.onDisabledEvent())},e.prototype.enable=function(){this.disabled&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_DISABLED)),this.disabled=!1,this.onEnabledEvent())},e.prototype.isDisabled=function(){return this.disabled},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isHovered=function(){return this.hovered},e.prototype.onShowEvent=function(){this.componentEvents.onShow.dispatch(this)},e.prototype.onHideEvent=function(){this.componentEvents.onHide.dispatch(this)},e.prototype.onEnabledEvent=function(){this.componentEvents.onEnabled.dispatch(this)},e.prototype.onDisabledEvent=function(){this.componentEvents.onDisabled.dispatch(this)},e.prototype.onViewModeChangedEvent=function(e){this.viewMode!==e&&(this.viewMode=e,this.componentEvents.onViewModeChanged.dispatch(this,{mode:e}))},e.prototype.onHoverChangedEvent=function(e){this.hovered=e,this.componentEvents.onHoverChanged.dispatch(this,{hovered:e})},e.prototype.onFocusChangedEvent=function(e){this.componentEvents.onFocusChanged.dispatch(this,{focused:e})},Object.defineProperty(e.prototype,"onShow",{get:function(){return this.componentEvents.onShow.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHide",{get:function(){return this.componentEvents.onHide.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onEnabled",{get:function(){return this.componentEvents.onEnabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDisabled",{get:function(){return this.componentEvents.onDisabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHoverChanged",{get:function(){return this.componentEvents.onHoverChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onViewModeChanged",{get:function(){return this.componentEvents.onViewModeChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onFocusedChanged",{get:function(){return this.componentEvents.onFocusChanged.getEvent()},enumerable:!1,configurable:!0}),e.CLASS_HIDDEN="hidden",e.CLASS_DISABLED="disabled",e}();t.Component=l},1779:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var r=n(5955),s=n(323),a=n(1971),l=n(5801),c=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-container",components:[]},n.config),n.componentsToAppend=[],n.componentsToPrepend=[],n.componentsToRemove=[],n.componentsInPersistentViewMode=0,n}return i(t,e),t.prototype.addComponent=function(e){this.config.components.push(e),this.componentsToAppend.push(e)},t.prototype.prependComponent=function(e){this.config.components.unshift(e),this.componentsToPrepend.push(e)},t.prototype.removeComponent=function(e){return null!=a.ArrayUtils.remove(this.config.components,e)&&(this.componentsToRemove.push(e),!0)},t.prototype.getComponents=function(){return this.config.components},t.prototype.removeComponents=function(){for(var e=0,t=this.getComponents().slice();e<t.length;e++){var n=t[e];this.removeComponent(n)}},t.prototype.updateComponents=function(){for(var e;void 0!==(e=this.componentsToRemove.shift());)e.getDomElement().remove();for(;void 0!==(e=this.componentsToAppend.shift());)this.innerContainerElement.append(e.getDomElement());for(;void 0!==(e=this.componentsToPrepend.shift());)this.innerContainerElement.prepend(e.getDomElement())},t.prototype.toDomElement=function(){var e=new s.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role,"aria-label":l.i18n.performLocalization(this.config.ariaLabel)},this);"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString());var t=new s.DOM(this.config.tag,{class:this.prefixCss("container-wrapper")});this.innerContainerElement=t;for(var n=0,o=this.config.components;n<o.length;n++){var i=o[n];this.componentsToAppend.push(i)}return this.updateComponents(),e.append(t),e},t.prototype.suspendHideTimeout=function(){},t.prototype.resumeHideTimeout=function(){},t.prototype.trackComponentViewMode=function(e){e===r.ViewMode.Persistent?this.componentsInPersistentViewMode++:e===r.ViewMode.Temporary&&(this.componentsInPersistentViewMode=Math.max(this.componentsInPersistentViewMode-1,0)),this.componentsInPersistentViewMode>0?this.suspendHideTimeout():this.resumeHideTimeout()},t}(r.Component);t.Container=c},9052:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ControlBar=void 0;var r=n(1779),s=n(3226),a=n(8754),l=n(5801),c=n(5256),u=n(4073),p=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-controlbar",hidden:!0,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=0,l=!1;n.getConfig().disableAutoHideWhenHovered&&!c.BrowserUtils.isTouchSupported&&s.UIUtils.traverseTree(this,function(e){e instanceof r.Container||e instanceof a.Spacer||e.onHoverChanged.subscribe(function(e,t){t.hovered?i++:i--})}),c.BrowserUtils.isMobile&&(n.onComponentShow.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!0)}),n.onComponentHide.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!1)})),n.onControlsShow.subscribe(function(){o.show()}),n.onPreviewControlsHide.subscribe(function(e,t){t.cancel=t.cancel||i>0||l}),n.onControlsHide.subscribe(function(){o.hide()})},t}(r.Container);t.ControlBar=p},5589:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.prefixCss=function(e){return r.instance().prefixCss(e)};var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.instance=function(){return t._instance||(t._instance=new t),t._instance},t.prototype.prefixCss=function(t){return e.prototype.prefixCss.call(this,t)},t}(n(5955).Component)},9263:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeContainer=void 0;var r=n(5801),s=n(1779),a=n(8432),l=n(8248),c=n(1742),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.savedEmissons=0;var o=new a.EcoModeToggleButton,i=new l.Label({text:r.i18n.getLocalizer("ecoMode.title"),for:o.getConfig().id,id:"ecomodelabel"});return n.emissionsSavedLabel=new l.Label({text:"".concat(n.savedEmissons.toFixed(4)," gCO2"),cssClass:"ui-label-savedEnergy"}),n.ecoModeToggleButtonItem=new c.SettingsPanelItem({label:i,settingComponent:o}),n.ecoModeSavedEmissionsItem=new c.SettingsPanelItem({label:"Saved Emissions",settingComponent:n.emissionsSavedLabel,hidden:!0}),n.addComponent(n.ecoModeToggleButtonItem),n.addComponent(n.ecoModeSavedEmissionsItem),o.onToggleOn.subscribe(function(){n.ecoModeSavedEmissionsItem.show(),n.onToggleCallback()}),o.onToggleOff.subscribe(function(){n.ecoModeSavedEmissionsItem.hide(),n.onToggleCallback()}),n}return i(t,e),t.prototype.setOnToggleCallback=function(e){this.onToggleCallback=e},t.prototype.configure=function(e){var t=this;e.on(e.exports.PlayerEvent.SegmentPlayback,function(n){if(n.mimeType.includes("video")){var o=n.mediaInfo,i=o.height,r=o.width,s=o.bitrate,a=o.frameRate,l=t.getMaxQualityAvailable(e.getAvailableVideoQualities()),c=l.height,u=l.bitrate,p=l.width,f=t.calculateEnergyConsumption(a,i,r,s,n.duration),d=t.calculateEnergyConsumption(a,c,p,u,n.duration);t.ecoModeSavedEmissionsItem.isShown()&&t.updateSavedEmissions(f,d,t.emissionsSavedLabel)}})},t.prototype.updateSavedEmissions=function(e,t,n){this.currentEnergyEmission=475*e;var o=475*t;this.savedEmissons+=o-this.currentEnergyEmission,n.setText(this.savedEmissons.toFixed(4)+" gCO2")},t.prototype.calculateEnergyConsumption=function(e,t,n,o,i){return(.035*e+5.76e-9*t*n+o/1e3*(697e-8+324e-7)+4.16+8.52+1.15)*i/36e5},t.prototype.getMaxQualityAvailable=function(e){var t=e.sort(function(e,t){return e.bitrate-t.bitrate});return t[t.length-1]},t}(s.Container);t.EcoModeContainer=u},4647:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var r=n(5955),s=n(323),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-icon"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return new s.DOM("div",{class:this.getCssClasses()})},t}(r.Component);t.Icon=a},2806:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationItem=void 0;var s=n(5955),a=n(938),l=n(323),c=n(8248),u=n(1823),p=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-item",recommendationConfig:null,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),f(this.config.recommendationConfig.resource)||this.onClick.subscribe(function(){t.load(o.config.recommendationConfig.resource),t.play()})},t.prototype.toDomElement=function(){var e,t,n=this,o=this.config.recommendationConfig,i=o.resource,s={};f(i)?(e="a",s={href:i.url},t=i.thumbnail):(e="button",t=i.poster);var a=new l.DOM(e,r(r({id:this.config.id,class:this.getCssClasses()},s),{tabindex:this.config.tabIndex.toString()}),this);t&&a.css({"background-image":'url("'.concat(t,'")')});var p=new l.DOM("div",{class:this.prefixCss("title-container")},this),d=new c.Label({text:o.title,cssClass:"title"});if(p.append(d.getDomElement()),a.append(p),null!=o.duration){var g=new c.Label({text:o.duration?u.StringUtils.secondsToTime(o.duration):"",cssClass:"duration"});a.append(g.getDomElement())}return f(i)||a.on("click",function(e){e.preventDefault(),e.stopPropagation(),n.onClickEvent()}),a},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);function f(e){return"url"in e}t.RecommendationItem=p},8754:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Spacer=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-spacer"},n.config),n}return i(t,e),t.prototype.onShowEvent=function(){},t.prototype.onHideEvent=function(){},t.prototype.onHoverChangedEvent=function(e){},t}(n(5955).Component);t.Spacer=r},5705:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;var r=n(1779),s=n(4947),a=n(8248),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-titlebar",hidden:!0,keepHiddenWithoutMetadata:!1,components:[new r.Container({components:[new s.MetadataLabel({content:s.MetadataLabelContent.Title})],cssClasses:["titlebar-row"]}),new r.Container({components:[new s.MetadataLabel({content:s.MetadataLabelContent.Description})],cssClasses:["titlebar-row"]})]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!this.isHidden(),s=!0,a=function(){s=o.hasNonEmptyComponents(o.getComponents()),o.isShown()?i.keepHiddenWithoutMetadata&&!s&&o.hide():r&&(i.keepHiddenWithoutMetadata&&!s||o.show())};this.subscribeToTextChanges(this.getComponents(),a),n.onControlsShow.subscribe(function(){r=!0,i.keepHiddenWithoutMetadata&&!s||o.show()}),n.onControlsHide.subscribe(function(){r=!1,o.hide()}),a()},t.prototype.hasNonEmptyComponents=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];if(c(o)&&!o.isEmpty())return!0;if(o instanceof r.Container&&this.hasNonEmptyComponents(o.getComponents()))return!0}return!1},t.prototype.subscribeToTextChanges=function(e,t){for(var n=0,o=e;n<o.length;n++){var i=o[n];i instanceof a.Label&&i.onTextChanged.subscribe(t),i instanceof r.Container&&this.subscribeToTextChanges(i.getComponents(),t)}},t}(r.Container);function c(e){return"object"==typeof e&&null!==e&&"function"==typeof e.isEmpty}t.TitleBar=l},6884:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvNoiseCanvas=void 0;var r=n(5955),s=n(323),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.canvasWidth=160,n.canvasHeight=90,n.interferenceHeight=50,n.lastFrameUpdate=0,n.frameInterval=60,n.useAnimationFrame=!!window.requestAnimationFrame,n.config=n.mergeConfig(t,{cssClass:"ui-tvnoisecanvas"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.canvas=new s.DOM("canvas",{class:this.getCssClasses()},this)},t.prototype.start=function(){this.canvasElement=this.canvas.get(0),this.canvasContext=this.canvasElement.getContext("2d"),this.noiseAnimationWindowPos=-this.canvasHeight,this.lastFrameUpdate=0,this.canvasElement.width=this.canvasWidth,this.canvasElement.height=this.canvasHeight,this.renderFrame()},t.prototype.stop=function(){this.useAnimationFrame?cancelAnimationFrame(this.frameUpdateHandlerId):clearTimeout(this.frameUpdateHandlerId)},t.prototype.renderFrame=function(){if(this.lastFrameUpdate+this.frameInterval>(new Date).getTime())this.scheduleNextRender();else{for(var e,t=this.canvasWidth,n=this.canvasHeight,o=this.canvasContext.createImageData(t,n),i=0;i<n;i++)for(var r=0;r<t;r++)e=t*i*4+4*r,o.data[e]=255*Math.random(),(i<this.noiseAnimationWindowPos||i>this.noiseAnimationWindowPos+this.interferenceHeight)&&(o.data[e]*=.85),o.data[e+1]=o.data[e],o.data[e+2]=o.data[e],o.data[e+3]=50;this.canvasContext.putImageData(o,0,0),this.lastFrameUpdate=(new Date).getTime(),this.noiseAnimationWindowPos+=7,this.noiseAnimationWindowPos>n&&(this.noiseAnimationWindowPos=-n),this.scheduleNextRender()}},t.prototype.scheduleNextRender=function(){this.useAnimationFrame?this.frameUpdateHandlerId=window.requestAnimationFrame(this.renderFrame.bind(this)):this.frameUpdateHandlerId=window.setTimeout(this.renderFrame.bind(this),this.frameInterval)},t}(r.Component);t.TvNoiseCanvas=a},6233:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UIContainer=void 0;var r=n(1779),s=n(323),a=n(3998),l=n(7395),c=n(938),u=n(5801),p=n(9404),f=n(1368),d=n(4073),g=function(e){function t(t){var n=e.call(this,t)||this;return n.hideUi=function(){},n.showUi=function(){},n.toggleUiShown=function(){},n.config=n.mergeConfig(t,{cssClass:"ui-uicontainer",role:"region",ariaLabel:u.i18n.getLocalizer("player"),hideDelay:2e3,hideImmediatelyOnMouseLeave:!0,deferUiHideWhileSettingsOpen:!0},n.config),n.playerStateChange=new c.EventDispatcher,n.hidingPrevented=function(){return!1},n}return i(t,e),t.prototype.configure=function(t,n){var o=this.getConfig();o.userInteractionEventSource?this.userInteractionEventSource=new s.DOM(o.userInteractionEventSource):this.userInteractionEventSource=this.getDomElement(),e.prototype.configure.call(this,t,n),this.configureUIShowHide(t,n),this.configurePlayerStates(t,n)},t.prototype.configureUIShowHide=function(e,n){var o=this,i=this.getConfig(),r=!1,s=!1,l=!1;if(n.onConfigured.subscribe(function(){r?n.onControlsShow.dispatch(o):n.onControlsHide.dispatch(o)}),-1!==i.hideDelay){var c,u=!1,g=!0;i.deferUiHideWhileSettingsOpen&&(n.onComponentShow.subscribe(function(e){e instanceof d.SettingsPanel&&(s=!0)}),n.onComponentHide.subscribe(function(e){e instanceof d.SettingsPanel&&(s=!1,l&&(o.hideUi(!0),l=!1))})),this.hidingPrevented=function(){return i.hidePlayerStateExceptions&&i.hidePlayerStateExceptions.indexOf(c)>-1},this.showUi=function(){l=!1,r||(n.onControlsShow.dispatch(o),r=!0),u||e.isCasting()||o.hidingPrevented()||o.uiHideTimeout.start()},this.hideUi=function(t){if(void 0===t&&(t=!1),r&&!e.isCasting()){if(t)return n.onControlsHide.dispatch(o),void(r=!1);if(i.deferUiHideWhileSettingsOpen&&s)return void(l=!0);var a={};n.onPreviewControlsHide.dispatch(o,a),a.cancel?o.showUi():(n.onControlsHide.dispatch(o),r=!1)}},this.toggleUiShown=function(){r?o.hideUi():o.showUi()},this.uiHideTimeout=new a.Timeout(i.hideDelay,this.hideUi);var h=function(e){return!(e.target.component instanceof f.TouchControlOverlay)};this.userInteractionEvents=[{name:"touchend",handler:function(n){h(n)&&(r||(g&&!e.isPlaying()?g=!1:function(e){var n=function(e){return!e||e===o.userInteractionEventSource.get(0)||e.component instanceof t?null:e.component&&e.component instanceof p.Button||e.component instanceof f.TouchControlOverlay?e.component:n(e.parentElement)},i=n(e.target);return!(i&&i.getConfig().acceptsTouchWithUiHidden)}(n)&&n.preventDefault(),o.showUi()))}},{name:"mouseenter",handler:function(e){h(e)&&o.showUi()}},{name:"mousemove",handler:function(e){h(e)&&o.showUi()}},{name:"focusin",handler:function(e){h(e)&&o.showUi()}},{name:"keydown",handler:function(e){h(e)&&o.showUi()}},{name:"mouseleave",handler:function(){u||o.hidingPrevented()||(o.config.hideImmediatelyOnMouseLeave?o.hideUi(!0):o.uiHideTimeout.start())}},{name:"wheel",handler:function(e){h(e)&&o.showUi()}}],this.userInteractionEvents.forEach(function(e){return o.userInteractionEventSource.on(e.name,e.handler)}),this.userInteractionEventSource.on("click",function(e){h(e)&&o.showUi()},{capture:!0}),n.onSeek.subscribe(function(){o.uiHideTimeout.clear(),u=!0}),n.onSeeked.subscribe(function(){u=!1,o.hidingPrevented()||o.uiHideTimeout.start()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return o.trackComponentViewMode(n)}),e.on(e.exports.PlayerEvent.CastStarted,function(){o.showUi()}),this.playerStateChange.subscribe(function(e,t){c=t,o.hidingPrevented()?(o.uiHideTimeout.clear(),o.showUi()):o.uiHideTimeout.start()})}else r=!0},t.prototype.configurePlayerStates=function(e,n){var o=this,i=this.getDomElement(),r=[];for(var a in l.PlayerUtils.PlayerState)if(isNaN(Number(a))){var c=l.PlayerUtils.PlayerState[l.PlayerUtils.PlayerState[a]];r[l.PlayerUtils.PlayerState[a]]=this.prefixCss(t.STATE_PREFIX+c.toLowerCase())}var u=function(e){i.removeClass(r[l.PlayerUtils.PlayerState.Idle]),i.removeClass(r[l.PlayerUtils.PlayerState.Prepared]),i.removeClass(r[l.PlayerUtils.PlayerState.Playing]),i.removeClass(r[l.PlayerUtils.PlayerState.Paused]),i.removeClass(r[l.PlayerUtils.PlayerState.Finished]),i.addClass(r[e]),o.playerStateChange.dispatch(o,e)};e.on(e.exports.PlayerEvent.SourceLoaded,function(){u(l.PlayerUtils.PlayerState.Prepared)}),e.on(e.exports.PlayerEvent.Play,function(){u(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Playing,function(){u(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Paused,function(){u(l.PlayerUtils.PlayerState.Paused)}),e.on(e.exports.PlayerEvent.PlaybackFinished,function(){u(l.PlayerUtils.PlayerState.Finished)}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){u(l.PlayerUtils.PlayerState.Idle)}),n.getConfig().events.onUpdated.subscribe(function(){u(l.PlayerUtils.getState(e))}),e.on(e.exports.PlayerEvent.ViewModeChanged,function(){e.getViewMode()===e.exports.ViewMode.Fullscreen?i.addClass(o.prefixCss(t.FULLSCREEN)):i.removeClass(o.prefixCss(t.FULLSCREEN))}),e.getViewMode()===e.exports.ViewMode.Fullscreen&&i.addClass(this.prefixCss(t.FULLSCREEN)),e.on(e.exports.PlayerEvent.StallStarted,function(){i.addClass(o.prefixCss(t.BUFFERING))}),e.on(e.exports.PlayerEvent.StallEnded,function(){i.removeClass(o.prefixCss(t.BUFFERING))}),e.isStalled()&&i.addClass(this.prefixCss(t.BUFFERING)),e.on(e.exports.PlayerEvent.CastStarted,function(){i.addClass(o.prefixCss(t.REMOTE_CONTROL))}),e.on(e.exports.PlayerEvent.CastStopped,function(){i.removeClass(o.prefixCss(t.REMOTE_CONTROL))}),e.isCasting()&&i.addClass(this.prefixCss(t.REMOTE_CONTROL)),n.onControlsShow.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_HIDDEN)),i.addClass(o.prefixCss(t.CONTROLS_SHOWN))}),n.onControlsHide.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_SHOWN)),i.addClass(o.prefixCss(t.CONTROLS_HIDDEN))});var p=function(e,t){i.removeClass(o.prefixCss("layout-max-width-400")),i.removeClass(o.prefixCss("layout-max-width-600")),i.removeClass(o.prefixCss("layout-max-width-800")),i.removeClass(o.prefixCss("layout-max-width-1200")),e<=400?i.addClass(o.prefixCss("layout-max-width-400")):e<=600?i.addClass(o.prefixCss("layout-max-width-600")):e<=800?i.addClass(o.prefixCss("layout-max-width-800")):e<=1200&&i.addClass(o.prefixCss("layout-max-width-1200"))};e.on(e.exports.PlayerEvent.PlayerResized,function(e){var t=Math.round(Number(e.width.substring(0,e.width.length-2)));Math.round(Number(e.height.substring(0,e.height.length-2))),p(t)}),p(new s.DOM(e.getContainer()).width(),new s.DOM(e.getContainer()).height())},t.prototype.release=function(){var t=this;this.hideUi(!0),this.userInteractionEvents&&this.userInteractionEvents.forEach(function(e){return t.userInteractionEventSource.off(e.name,e.handler)}),e.prototype.release.call(this),this.uiHideTimeout&&this.uiHideTimeout.clear()},t.prototype.onPlayerStateChange=function(){return this.playerStateChange.getEvent()},t.prototype.suspendHideTimeout=function(){this.uiHideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.uiHideTimeout.resume(!this.hidingPrevented())},t.prototype.toDomElement=function(){var t=e.prototype.toDomElement.call(this);return document&&void 0!==document.createElement("p").style.flex?t.addClass(this.prefixCss("flexbox")):t.addClass(this.prefixCss("no-flexbox")),t},t.STATE_PREFIX="player-state-",t.FULLSCREEN="fullscreen",t.BUFFERING="buffering",t.REMOTE_CONTROL="remote-control",t.CONTROLS_SHOWN="controls-shown",t.CONTROLS_HIDDEN="controls-hidden",t}(r.Container);t.UIContainer=g},1942:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Watermark=void 0;var r=n(6326),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-watermark",url:"http://bitmovin.com",role:"link",text:"logo",ariaLabel:s.i18n.getLocalizer("watermarkLink")},n.config),n}return i(t,e),t}(r.ClickOverlay);t.Watermark=a},5816:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{acceptsTouchWithUiHidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=null;t.on(t.exports.PlayerEvent.AdStarted,function(e){var t=e.ad;o.setUrl(t.clickThroughUrl),i=t.clickThroughUrlOpened});var r=function(){o.setUrl(null)};t.on(t.exports.PlayerEvent.AdFinished,r),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),this.onClick.subscribe(function(){t.pause("ui-ad-click-overlay"),i&&i()})},t}(n(6326).ClickOverlay);t.AdClickOverlay=r},3850:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AdControlBar=void 0;var s=n(9052),a=n(1779),l=n(5801),c=n(9819),u=function(e){function t(t){var n=e.call(this,t)||this;return n.containersToHide=[],n.containersToKeepVisible=[],n.config=n.mergeConfig(t,{cssClasses:["ad-controlbar"],hidden:!1,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n.config.components.forEach(function(e){e instanceof a.Container&&(n.containsSeekBar(e)?n.containersToKeepVisible.push(e):n.containersToHide.push(e))}),n}return i(t,e),t.prototype.hide=function(){this.containersToHide.forEach(function(e){e.hide()})},t.prototype.show=function(){r(r([],this.containersToHide,!0),this.containersToKeepVisible,!0).forEach(function(e){e.show()})},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),n.onControlsShow.subscribe(function(){o.show()}),n.onControlsHide.subscribe(function(){o.hide()})},t.prototype.containsSeekBar=function(e){for(var t=0,n=e.getComponents();t<n.length;t++){var o=n[t];if(o instanceof c.SeekBar)return!0;if(o instanceof a.Container&&this.containsSeekBar(o))return!0}return!1},t}(s.ControlBar);t.AdControlBar=u},8950:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdCounterLabel=void 0;var r=n(5801),s=n(8248),a=n(1823),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adBreakTrackerAdCountChangedHandler=function(e,t){n.setAdCounterFromAdBreakTracker(t.currentAdIndex,t.totalNumberOfAds)},n.config=n.mergeConfig(t,{cssClass:"ui-label-ad-counter",adCountOutOfTotal:r.i18n.getLocalizer("ads.adNumberOfTotal")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.adBreakTracker=n.getConfig().adBreakTracker,this.adBreakTracker.onAdCountChanged.subscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker.currentAdIndex>0&&this.adBreakTracker.totalNumberOfAds>0&&this.setAdCounterFromAdBreakTracker(this.adBreakTracker.currentAdIndex,this.adBreakTracker.totalNumberOfAds)},t.prototype.release=function(){var t;null===(t=this.adBreakTracker)||void 0===t||t.onAdCountChanged.unsubscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker=void 0,this.player=void 0,e.prototype.release.call(this)},t.prototype.onLanguageChanged=function(){var e,t,n,o,i,r;((null===(e=this.adBreakTracker)||void 0===e?void 0:e.currentAdIndex)>0||(null===(o=null===(n=null===(t=this.player)||void 0===t?void 0:t.ads)||void 0===n?void 0:n.isLinearAdActive)||void 0===o?void 0:o.call(n)))&&this.setAdCounterFromAdBreakTracker(null===(i=this.adBreakTracker)||void 0===i?void 0:i.currentAdIndex,null===(r=this.adBreakTracker)||void 0===r?void 0:r.totalNumberOfAds)},t.prototype.setAdCounterFromAdBreakTracker=function(e,t){0!==e||0!==t?this.setText(a.StringUtils.replaceAdMessagePlaceholders(r.i18n.performLocalization(this.config.adCountOutOfTotal),this.player,void 0,e,t)):this.setText("")},t}(s.Label);t.AdCounterLabel=l},4103:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdMessageLabel=void 0;var r=n(8248),s=n(5801),a=n(1823),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-ad-message-label"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=i.text||"",l=function(){o.setText(a.StringUtils.replaceAdMessagePlaceholders(s.i18n.performLocalization(r),t))},c=function(){t.off(t.exports.PlayerEvent.TimeChanged,l)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad.uiConfig;r=(null==n?void 0:n.message)||i.text||"",l(),t.on(t.exports.PlayerEvent.TimeChanged,l)}),t.on(t.exports.PlayerEvent.AdSkipped,c),t.on(t.exports.PlayerEvent.AdError,c),t.on(t.exports.PlayerEvent.AdFinished,c),t.on(t.exports.PlayerEvent.SourceUnloaded,c)},t}(r.Label);t.AdMessageLabel=l},8751:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdSkipButton=void 0;var r=n(9404),s=n(1823),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.skipOffset=-1,n.config=n.mergeConfig(t,{cssClass:"ui-button-ad-skip",untilSkippableMessage:a.i18n.getLocalizer("ads.skippableIn"),skippableMessage:a.i18n.getLocalizer("ads.skip"),acceptsTouchWithUiHidden:!0,buttonStyle:r.ButtonStyle.TextWithTrailingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t;var i=this.getConfig();this.untilSkippableMessage=i.untilSkippableMessage,this.skippableMessage=i.skippableMessage,this.skipOffset=-1,this.updateSkipMessageHandler=function(){o.show(),t.getCurrentTime()<o.skipOffset?(o.setText(s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(o.untilSkippableMessage),t,o.skipOffset)),o.disable()):(o.setText(s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(o.skippableMessage),t)),o.enable())};var r=function(){o.updateSkipMessageHandler&&t.off(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad;o.skipOffset=n.skippableAfter,o.untilSkippableMessage=n.uiConfig&&n.uiConfig.untilSkippableMessage||i.untilSkippableMessage,o.skippableMessage=n.uiConfig&&n.uiConfig.skippableMessage||i.skippableMessage,"number"==typeof o.skipOffset&&o.skipOffset>=0?(o.updateSkipMessageHandler(),t.on(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)):o.hide()}),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),t.on(t.exports.PlayerEvent.AdFinished,r),this.onClick.subscribe(function(){t.ads.skip()})},t.prototype.onLanguageChanged=function(){this.updateSkipMessageHandler&&"number"==typeof this.skipOffset&&this.skipOffset>=0&&this.updateSkipMessageHandler()},t.prototype.release=function(){this.player&&this.updateSkipMessageHandler&&this.player.off(this.player.exports.PlayerEvent.TimeChanged,this.updateSkipMessageHandler),e.prototype.release.call(this)},t}(r.Button);t.AdSkipButton=l},7280:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdStatusOverlay=void 0;var r=n(1779),s=n(8751),a=n(8754),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adSkipButton=new s.AdSkipButton,n.config=n.mergeConfig(t,{components:[new r.Container({components:[new a.Spacer,n.adSkipButton],cssClasses:["bar"]})],cssClass:"ui-ad-status-overlay"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n)},t}(r.Container);t.AdStatusOverlay=l},5932:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AirPlayToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-airplaytogglebutton",text:s.i18n.getLocalizer("appleAirplay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),t.isAirplayAvailable){this.onClick.subscribe(function(){t.isAirplayAvailable()?t.showAirplayTargetPicker():console&&console.log("AirPlay unavailable")});var i=function(){t.isAirplayAvailable()?o.show():o.hide()},r=function(){t.isAirplayActive()?o.on():o.off()};t.on(t.exports.PlayerEvent.AirplayAvailable,i),t.on(t.exports.PlayerEvent.AirplayChanged,r),i(),r()}else this.hide()},t}(r.ToggleButton);t.AirPlayToggleButton=a},9404:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonStyle=void 0;var r,s=n(5955),a=n(323),l=n(938),c=n(5801),u=n(4647);!function(e){e.Icon="icon",e.Text="text",e.TextWithLeadingIcon="text-icon-leading",e.TextWithTrailingIcon="text-icon-trailing"}(r||(t.ButtonStyle=r={}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.buttonEvents={onClick:new l.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-button",role:"button",tabIndex:0,acceptsTouchWithUiHidden:!1,buttonStyle:r.Icon},n.config),n}return i(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,n={id:this.config.id,"aria-label":c.i18n.performLocalization(this.config.ariaLabel||this.config.text),class:this.getCssClasses(),type:"button",tabindex:this.config.tabIndex.toString()};null!=this.config.role&&(n.role=this.config.role);var o=new a.DOM("button",n,this),i=function(){var e=new u.Icon;o.append(e.getDomElement())},s=function(){o.append(new a.DOM("span",{class:e.prefixCss("label")}).html(c.i18n.performLocalization(e.config.text)))};switch(this.config.buttonStyle){case r.Icon:i();break;case r.Text:s();break;case r.TextWithLeadingIcon:i(),s();break;case r.TextWithTrailingIcon:s(),i()}return o.on("click",function(t){t.preventDefault(),e.onClickEvent()}),o.on("touchstart",function(n){e.getDomElement().addClass(t.CLASS_TOUCHED)}),o.on("touchend",function(n){e.getDomElement().removeClass(t.CLASS_TOUCHED)}),o},t.prototype.setText=function(e){this.getDomElement().find("."+this.prefixCss("label")).html(c.i18n.performLocalization(e))},t.prototype.onClickEvent=function(){this.buttonEvents.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.buttonEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),t.CLASS_TOUCHED="touched",t}(s.Component);t.Button=p},1291:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-casttogglebutton",text:s.i18n.getLocalizer("googleCast")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.isCastAvailable()?t.isCasting()?t.castStop():t.castVideo():console&&console.log("Cast unavailable")});var i=function(){t.isCastAvailable()?o.show():o.hide()};t.on(t.exports.PlayerEvent.CastAvailable,i),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStarted,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStopped,function(){o.off()}),i(),t.isCasting()&&this.on()},t}(r.ToggleButton);t.CastToggleButton=a},7990:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-closebutton",text:s.i18n.getLocalizer("close")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.onClick.subscribe(function(){o.target.hide()})},t}(r.Button);t.CloseButton=a},8432:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={text:s.i18n.getLocalizer("ecoMode"),cssClass:"ui-ecomodetogglebutton",onClass:"on",offClass:"off",ariaLabel:s.i18n.getLocalizer("ecoMode")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.areAdaptationApisAvailable(t)?(this.onClick.subscribe(function(){o.toggle()}),this.onToggleOn.subscribe(function(){o.enableEcoMode(t),t.setVideoQuality("auto")}),this.onToggleOff.subscribe(function(){o.disableEcoMode(t)}),t.on(t.exports.PlayerEvent.VideoQualityChanged,function(e){"auto"!==e.targetQuality.id&&(o.off(),o.disableEcoMode(t))})):e.prototype.disable.call(this)},t.prototype.areAdaptationApisAvailable=function(e){var t=Boolean(e.adaptation.getConfig&&"function"==typeof e.adaptation.getConfig),n=Boolean(e.adaptation.setConfig&&"function"==typeof e.adaptation.setConfig);return Boolean(e.adaptation&&t&&n)},t.prototype.enableEcoMode=function(e){this.adaptationConfig=e.adaptation.getConfig();var t=e.getAvailableVideoQualities()[0].codec;t.includes("avc")&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:720},limitToPlayerSize:!0}),(t.includes("hvc")||t.includes("hev"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1080},limitToPlayerSize:!0}),(t.includes("av1")||t.includes("av01"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1440},limitToPlayerSize:!0})},t.prototype.disableEcoMode=function(e){e.adaptation.setConfig(this.adaptationConfig)},t}(r.ToggleButton);t.EcoModeToggleButton=a},2717:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-fullscreentogglebutton",text:s.i18n.getLocalizer("fullscreen")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.Fullscreen)},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?o.on():o.off()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),this.onClick.subscribe(function(){if(i()){var e=t.getViewMode()===t.exports.ViewMode.Fullscreen?t.exports.ViewMode.Inline:t.exports.ViewMode.Fullscreen;t.setViewMode(e)}else console&&console.log("Fullscreen unavailable")}),s(),r()},t}(r.ToggleButton);t.FullscreenToggleButton=a},958:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HugePlaybackToggleButton=void 0;var r=n(4617),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugeplaybacktogglebutton",text:s.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var i=function(){t.isPlaying()||o.isPlayInitiated?t.pause("ui"):t.play("ui")},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?t.setViewMode(t.exports.ViewMode.Inline):t.setViewMode(t.exports.ViewMode.Fullscreen)},s=!0,a=0,l=0;this.onClick.subscribe(function(){if(s)return i(),void(o.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen));var e=Date.now();return e-a<200?(r(),void(l=e)):e-a<500?(r(),i(),void(l=e)):(a=e,void setTimeout(function(){Date.now()-l>200&&i()},200))}),t.on(t.exports.PlayerEvent.Play,function(){s=!1}),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(s=!0)});var c=function(){o.setTransitionAnimationsEnabled(!1),o.onToggle.subscribeOnce(function(){o.setTransitionAnimationsEnabled(!0)})};c();var u=t.getConfig().playback&&Boolean(t.getConfig().playback.autoplay),p=!t.getSource()&&u;(t.isPlaying()||p)&&(this.on(),c(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&c()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.HugePlaybackToggleButton=a},1308:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HugeReplayButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugereplaybutton",text:s.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.play("ui")})},t}(r.Button);t.HugeReplayButton=a},5829:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPictureToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-piptogglebutton",text:s.i18n.getLocalizer("pictureInPicture")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.PictureInPicture)},r=function(){t.getViewMode()===t.exports.ViewMode.PictureInPicture?o.on():o.off()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),this.onClick.subscribe(function(){if(i()){var e=t.getViewMode()===t.exports.ViewMode.PictureInPicture?t.exports.ViewMode.Inline:t.exports.ViewMode.PictureInPicture;t.setViewMode(e)}else console&&console.log("PIP unavailable")}),s(),r()},t}(r.ToggleButton);t.PictureInPictureToggleButton=a},4617:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleButton=void 0;var r=n(2572),s=n(7395),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktogglebutton",text:a.i18n.getLocalizer("play"),onAriaLabel:a.i18n.getLocalizer("pause"),offAriaLabel:a.i18n.getLocalizer("play")},n.config),n.isPlayInitiated=!1,n}return i(t,e),t.prototype.configure=function(n,o,i){var r=this;void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),"boolean"==typeof o.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=o.getConfig().enterFullscreenOnInitialPlayback);var a=!1,l=!0,c=function(){a||(n.isPlaying()||r.isPlayInitiated?r.on():r.off())};n.on(n.exports.PlayerEvent.Play,function(e){r.isPlayInitiated=!0,l=!1,c()}),n.on(n.exports.PlayerEvent.Paused,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.Playing,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.SourceLoaded,c),o.getConfig().events.onUpdated.subscribe(c),n.on(n.exports.PlayerEvent.SourceUnloaded,c),n.on(n.exports.PlayerEvent.PlaybackFinished,c),n.on(n.exports.PlayerEvent.CastStarted,c),n.on(n.exports.PlayerEvent.Warning,function(e){e.code===n.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(r.isPlayInitiated=!1,l=!0,r.off())});var u=function(){n.isLive()&&!s.PlayerUtils.isTimeShiftAvailable(n)?r.getDomElement().addClass(r.prefixCss(t.CLASS_STOPTOGGLE)):r.getDomElement().removeClass(r.prefixCss(t.CLASS_STOPTOGGLE))},p=new s.PlayerUtils.TimeShiftAvailabilityDetector(n),f=new s.PlayerUtils.LiveStreamDetector(n,o);p.onTimeShiftAvailabilityChanged.subscribe(function(){return u()}),f.onLiveChanged.subscribe(function(){return u()}),p.detect(),f.detect(),i&&this.onClick.subscribe(function(){n.isPlaying()||r.isPlayInitiated?n.pause("ui"):(n.play("ui"),l&&r.config.enterFullscreenOnInitialPlayback&&n.setViewMode(n.exports.ViewMode.Fullscreen))}),o.onSeek.subscribe(function(){a=!0}),o.onSeeked.subscribe(function(){a=!1}),c()},t.CLASS_STOPTOGGLE="stoptoggle",t}(r.ToggleButton);t.PlaybackToggleButton=l},6757:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QuickSeekButton=void 0;var r=n(9404),s=n(5801),a=n(7395),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.onSeek=function(e){n.currentSeekTarget=e.seekTarget},n.onSeekedOrTimeShifted=function(){n.currentSeekTarget=null},n.onTimeShift=function(e){n.currentSeekTarget=n.player.getTimeShift()+(e.target-e.position)},n.currentSeekTarget=null,n.config=n.mergeConfig(t,{seekSeconds:-10,cssClass:"ui-quickseekbutton"},n.config);var o=n.config.seekSeconds<0?"rewind":"forward";return n.config.text=n.config.text||s.i18n.getLocalizer("quickseek.".concat(o)),n.config.ariaLabel=n.config.ariaLabel||s.i18n.getLocalizer("quickseek.".concat(o),{seekSeconds:Math.abs(n.config.seekSeconds)}),n.getDomElement().data(n.prefixCss("seek-direction"),o).data(n.prefixCss("seek-seconds"),Math.abs(n.config.seekSeconds).toString()),n}return i(t,e),t.prototype.configure=function(t,n){var o,i,r=this;e.prototype.configure.call(this,t,n),this.player=t;var s=function(e,t){e&&!t?r.hide():r.show()},l=new a.PlayerUtils.TimeShiftAvailabilityDetector(t);l.onTimeShiftAvailabilityChanged.subscribe(function(e,t){i=t.timeShiftAvailable,s(o,i)});var c=new a.PlayerUtils.LiveStreamDetector(t,n);c.onLiveChanged.subscribe(function(e,t){o=t.live,s(o,i)}),l.detect(),c.detect(),this.onClick.subscribe(function(){if((!o||i)&&!(o&&r.config.seekSeconds>0&&0===t.getTimeShift())){var e=(null!==r.currentSeekTarget?r.currentSeekTarget:o?t.getTimeShift():t.getCurrentTime())+r.config.seekSeconds;if(o){var n=a.PlayerUtils.clampValueToRange(e,t.getMaxTimeShift(),0);t.timeShift(n)}else n=a.PlayerUtils.clampValueToRange(e,0,t.getDuration()),t.seek(n)}}),this.player.on(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.on(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.on(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.on(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted)},t.prototype.release=function(){this.player.off(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.off(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.off(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.off(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted),this.currentSeekTarget=null,this.player=null},t}(r.Button);t.QuickSeekButton=l},2663:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplayButton=void 0;var r=n(9404),s=n(5801),a=n(7395),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-replaybutton",text:s.i18n.getLocalizer("replay"),ariaLabel:s.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.isLive()&&this.hide(),new a.PlayerUtils.LiveStreamDetector(t,n).onLiveChanged.subscribe(function(e,t){t.live?o.hide():o.show()}),this.onClick.subscribe(function(){t.hasEnded()?t.play("ui"):t.seek(0)})},t}(r.Button);t.ReplayButton=l},5092:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SmallCenteredPlaybackToggleButton=void 0;var r=n(4617),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-smallcenteredplaybacktogglebutton",text:s.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var r=!0;this.onClick.subscribe(function(){t.isPlaying()||i.isPlayInitiated?t.pause("ui"):t.play("ui"),r&&i.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen)}),t.on(t.exports.PlayerEvent.Playing,function(){r=!1});var s=function(){i.setTransitionAnimationsEnabled(!1),i.onToggle.subscribeOnce(function(){i.setTransitionAnimationsEnabled(!0)})};s();var a=Boolean(null===(o=t.getConfig().playback)||void 0===o?void 0:o.autoplay),l=!t.getSource()&&a;(t.isPlaying()||l)&&(this.on(),s(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&s()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.SmallCenteredPlaybackToggleButton=a},2572:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleButton=void 0;var r=n(9404),s=n(938),a=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleButtonEvents={onToggle:new s.EventDispatcher,onToggleOn:new s.EventDispatcher,onToggleOff:new s.EventDispatcher},t.onAriaLabel&&(t.ariaLabel=t.onAriaLabel),n.config=n.mergeConfig(t,{cssClass:"ui-togglebutton",onClass:"on",offClass:"off"},n.config),n.useAriaPressedAttributeAsToggleIndicator=!n.config.onAriaLabel||!n.config.offAriaLabel,n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.getDomElement().addClass(this.prefixCss(o.offClass)),this.useAriaPressedAttributeAsToggleIndicator=!this.config.onAriaLabel||!this.config.offAriaLabel,this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)},t.prototype.on=function(){if(this.isOff()){var e=this.getConfig();this.onState=!0,this.getDomElement().removeClass(this.prefixCss(e.offClass)),this.getDomElement().addClass(this.prefixCss(e.onClass)),this.onToggleEvent(),this.onToggleOnEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","true"):this.setAriaLabel(this.config.onAriaLabel)}},t.prototype.off=function(){if(this.isOn()){var e=this.getConfig();this.onState=!1,this.getDomElement().removeClass(this.prefixCss(e.onClass)),this.getDomElement().addClass(this.prefixCss(e.offClass)),this.onToggleEvent(),this.onToggleOffEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)}},t.prototype.toggle=function(){this.isOn()?this.off():this.on()},t.prototype.isOn=function(){return this.onState},t.prototype.isOff=function(){return!this.isOn()},t.prototype.onClickEvent=function(){e.prototype.onClickEvent.call(this),this.onToggleEvent()},t.prototype.onToggleEvent=function(){this.toggleButtonEvents.onToggle.dispatch(this)},t.prototype.onToggleOnEvent=function(){this.toggleButtonEvents.onToggleOn.dispatch(this)},t.prototype.onToggleOffEvent=function(){this.toggleButtonEvents.onToggleOff.dispatch(this)},Object.defineProperty(t.prototype,"onToggle",{get:function(){return this.toggleButtonEvents.onToggle.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOn",{get:function(){return this.toggleButtonEvents.onToggleOn.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOff",{get:function(){return this.toggleButtonEvents.onToggleOff.getEvent()},enumerable:!1,configurable:!0}),t}(r.Button);t.ToggleButton=a},4200:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VRToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-vrtogglebutton",text:s.i18n.getLocalizer("vr")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=t.getSource();return e&&Boolean(e.vr)},r=function(){var e=t.getSource();return t.vr&&Boolean(e.vr)},s=function(e){e.type===t.exports.PlayerEvent.Warning&&e.code!==t.exports.WarningCode.VR_RENDERING_ERROR||(i()&&r()?(o.show(),t.vr&&t.vr.getStereo()?o.on():o.off()):o.hide())},a=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.VRStereoChanged,s),t.on(t.exports.PlayerEvent.Warning,s),t.on(t.exports.PlayerEvent.SourceUnloaded,a),n.getConfig().events.onUpdated.subscribe(a),this.onClick.subscribe(function(){r()?t.vr&&t.vr.getStereo()?t.vr.setStereo(!1):t.vr.setStereo(!0):console&&console.log("No VR content")}),a()},t}(r.ToggleButton);t.VRToggleButton=a},6713:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeControlButton=void 0;var r=n(1779),s=n(6003),a=n(5110),l=n(3998),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.volumeToggleButton=new a.VolumeToggleButton,n.volumeSlider=new s.VolumeSlider({vertical:null==t.vertical||t.vertical,hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-volumecontrolbutton",components:[n.volumeToggleButton,n.volumeSlider],hideDelay:500},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getVolumeToggleButton(),r=this.getVolumeSlider();this.volumeSliderHideTimeout=new l.Timeout(this.getConfig().hideDelay,function(){r.hide()});var s=!1;i.getDomElement().on("mouseenter",function(){r.isHidden()&&r.show(),o.volumeSliderHideTimeout.clear()}),i.getDomElement().on("mouseleave",function(){o.volumeSliderHideTimeout.reset()}),r.getDomElement().on("mouseenter",function(){o.volumeSliderHideTimeout.clear(),s=!0}),r.getDomElement().on("mouseleave",function(){r.isSeeking()?o.volumeSliderHideTimeout.clear():o.volumeSliderHideTimeout.reset(),s=!1}),r.onSeeked.subscribe(function(){s||o.volumeSliderHideTimeout.reset()})},t.prototype.release=function(){e.prototype.release.call(this),this.volumeSliderHideTimeout.clear()},t.prototype.getVolumeToggleButton=function(){return this.volumeToggleButton},t.prototype.getVolumeSlider=function(){return this.volumeSlider},t}(r.Container);t.VolumeControlButton=c},5110:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={cssClass:"ui-volumetogglebutton",text:s.i18n.getLocalizer("settings.audio.mute"),onClass:"muted",offClass:"unmuted",ariaLabel:s.i18n.getLocalizer("settings.audio.mute")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getConfig().volumeController;i.onChanged.subscribe(function(e,t){t.muted?o.on():o.off();var n=Math.ceil(t.volume/10);o.getDomElement().data(o.prefixCss("volume-level-tens"),String(n))}),this.onClick.subscribe(function(){i.toggleMuted()}),i.onChangedEvent()},t}(r.ToggleButton);t.VolumeToggleButton=a},8248:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Label=t.LabelStyle=void 0;var r,s=n(5955),a=n(323),l=n(938),c=n(5801),u=n(4647);!function(e){e.Text="text",e.TextWithLeadingIcon="text-icon-leading",e.TextWithTrailingIcon="text-icon-trailing"}(r||(t.LabelStyle=r={}));var p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.textElement=null,n.labelEvents={onClick:new l.EventDispatcher,onTextChanged:new l.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-label",labelStyle:r.Text},n.config),n.text=n.config.text,n}return i(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,t=null!=this.config.for?"label":"span",n=new a.DOM("span",{class:this.prefixCss("ui-label-text")},this).html(c.i18n.performLocalization(this.text));this.textElement=n;var o=new a.DOM(t,{id:this.config.id,for:this.config.for,class:this.getCssClasses(),tabindex:this.config.tabIndex.toString()},this);if(o.append(n),o.on("click",function(){e.onClickEvent()}),this.config.labelStyle!==r.Text){var i=new u.Icon;switch(this.config.labelStyle){case r.TextWithTrailingIcon:o.append(i.getDomElement());break;case r.TextWithLeadingIcon:o.prepend(i.getDomElement())}}return o},t.prototype.setText=function(e){var t;if(e!==this.text||"function"==typeof e){this.text=e;var n=c.i18n.performLocalization(e);null===(t=this.textElement)||void 0===t||t.html(c.i18n.performLocalization(e)),this.onTextChangedEvent(n)}},t.prototype.getText=function(){return c.i18n.performLocalization(this.text)},t.prototype.clearText=function(){var e;null===(e=this.textElement)||void 0===e||e.html(""),this.onTextChangedEvent(null)},t.prototype.isEmpty=function(){return!this.text},t.prototype.onClickEvent=function(){this.labelEvents.onClick.dispatch(this)},t.prototype.onTextChangedEvent=function(e){this.labelEvents.onTextChanged.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.labelEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTextChanged",{get:function(){return this.labelEvents.onTextChanged.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);t.Label=p},4947:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataLabel=t.MetadataLabelContent=void 0;var r,s=n(8248);!function(e){e[e.Title=0]="Title",e[e.Description=1]="Description"}(r||(t.MetadataLabelContent=r={}));var a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["label-metadata","label-metadata-"+r[t.content].toLowerCase()]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),s=n.getConfig(),a=function(){switch(i.content){case r.Title:o.setText(s.metadata.title);break;case r.Description:o.setText(s.metadata.description)}};a(),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){o.setText(null)}),n.getConfig().events.onUpdated.subscribe(a)},t}(s.Label);t.MetadataLabel=a},9024:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTimeLabel=t.PlaybackTimeLabelMode=void 0;var r,s=n(8248),a=n(7395),l=n(1823),c=n(5801);!function(e){e[e.CurrentTime=0]="CurrentTime",e[e.TotalTime=1]="TotalTime",e[e.CurrentAndTotalTime=2]="CurrentAndTotalTime",e[e.RemainingTime=3]="RemainingTime"}(r||(t.PlaybackTimeLabelMode=r={}));var u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktimelabel",timeLabelMode:r.CurrentAndTotalTime,hideInLivePlayback:!1},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1,s=this.prefixCss("ui-playbacktimelabel-live"),u=this.prefixCss("ui-playbacktimelabel-live-edge"),p=0,f=function(){t.timeShift(0)},d=function(){if(r){var e=t.getTimeShift()<0,n=t.getMaxTimeShift()<0;e||t.isPaused()&&n?o.getDomElement().removeClass(u):o.getDomElement().addClass(u)}},g=function(){r||t.getDuration()===1/0||o.setTime(a.PlayerUtils.getCurrentTimeRelativeToSeekableRange(t),t.getDuration());var e=o.getDomElement().width();e>p&&(p=e,o.getDomElement().css({"min-width":p+"px"}))},h=function(){o.timeFormat=Math.abs(t.isLive()?t.getMaxTimeShift():t.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,g()},v=new a.PlayerUtils.LiveStreamDetector(t,n);v.onLiveChanged.subscribe(function(e,n){r=n.live,g(),h(),(r=t.isLive())?(o.getDomElement().addClass(s),o.setText(c.i18n.getLocalizer("live")),i.hideInLivePlayback&&o.hide(),o.onClick.subscribe(f),d()):(o.getDomElement().removeClass(s),o.getDomElement().removeClass(u),o.show(),o.onClick.unsubscribe(f))}),v.detect();var y=function(){p=0,o.getDomElement().css({"min-width":null}),h()};t.on(t.exports.PlayerEvent.TimeChanged,g),t.on(t.exports.PlayerEvent.Ready,h),t.on(t.exports.PlayerEvent.Seeked,g),t.on(t.exports.PlayerEvent.TimeShift,d),t.on(t.exports.PlayerEvent.TimeShifted,d),t.on(t.exports.PlayerEvent.Playing,d),t.on(t.exports.PlayerEvent.Paused,d),t.on(t.exports.PlayerEvent.StallStarted,d),t.on(t.exports.PlayerEvent.StallEnded,d),t.on(t.exports.PlayerEvent.DurationChanged,y),n.getConfig().events.onUpdated.subscribe(y),y()},t.prototype.setTime=function(e,t){var n=l.StringUtils.secondsToTime(e,this.timeFormat),o=l.StringUtils.secondsToTime(t,this.timeFormat);switch(this.config.timeLabelMode){case r.CurrentTime:this.setText("".concat(n));break;case r.TotalTime:this.setText("".concat(o));break;case r.CurrentAndTotalTime:this.setText("".concat(n," / ").concat(o));break;case r.RemainingTime:this.setText("".concat(l.StringUtils.secondsToTime(t-e,this.timeFormat)))}},t.prototype.setTimeFormat=function(e){this.timeFormat=e},t}(s.Label);t.PlaybackTimeLabel=u},796:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackListBox=void 0;var s=n(6171),a=n(9367),l=n(1886),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.AudioTrackSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.AudioTrackSwitchHandler(t,this.config.listSelector,n)},t}(s.ListBox);t.AudioTrackListBox=c},7725:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ItemSelectionList=void 0;var r=n(6541),s=n(323),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{tag:"ul",cssClass:"ui-itemselectionlist"},n.config),n}return i(t,e),t.prototype.isActive=function(){return this.items.length>1},t.prototype.toDomElement=function(){var e=new s.DOM("ul",{id:this.config.id,class:this.getCssClasses()},this);return this.listElement=e,this.updateDomItems(),e},t.prototype.updateDomItems=function(e){var n=this;void 0===e&&(e=null),this.listElement.empty();for(var o=null,i=function(e){e.addClass(n.prefixCss(t.CLASS_SELECTED))},r=function(r){var c=new s.DOM("li",{type:"li",class:l.prefixCss("ui-selectionlistitem")}).append(new s.DOM("a",{}).html(a.i18n.performLocalization(r.label)));o||(null==e||String(e)===r.key)&&(o=c),c.on("click",function(){o&&function(e){e.removeClass(n.prefixCss(t.CLASS_SELECTED))}(o),o=c,i(c),n.onItemSelectedEvent(r.key,!1)}),o&&i(o),l.listElement.append(c)},l=this,c=0,u=this.items;c<u.length;c++)r(u[c])},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.CLASS_SELECTED="selected",t}(r.ListSelector);t.ItemSelectionList=l},6171:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0;var r=n(4073),s=n(8666),a=n(5856),l=n(1742),c=n(8248),u=function(e){function t(t){var n=e.call(this,t)||this;if(n.settingsPanelPage=new s.SettingsPanelPage({}),n.listSelector=t.listSelector,n.config=n.mergeConfig(t,{hidden:!0,cssClasses:["ui-listbox"]},n.config),n.addComponent(n.settingsPanelPage),t.title){var o=new c.Label({text:t.title,cssClasses:["title-label"]});n.settingsPanelPage.addComponent(new l.SettingsPanelItem({label:o,cssClasses:["title-item"],isSetting:!1}))}return n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){var i=o.listSelector.getItemForKey(e);if(!i)return null;var r=new a.SettingsPanelSelectOption({label:i.label,labelStyle:c.LabelStyle.TextWithLeadingIcon,settingComponent:o.listSelector,settingsValue:i.key,addSettingAsComponent:!1});return r.configure(t,n),r},r=function(){for(var e=0,t=o.settingsPanelPage.getComponents().filter(function(e){return e instanceof a.SettingsPanelSelectOption});e<t.length;e++){var n=t[e];o.settingsPanelPage.removeSettingsPanelItem(n)}for(var r=0,s=o.listSelector.getItems();r<s.length;r++){var l=s[r],c=i(l.key);c&&o.settingsPanelPage.addSettingsPanelItem(c)}o.onSettingsStateChangedEvent()},s=!1;this.listSelector.onItemsChanged.subscribe(function(){s=!0,r()}),this.settingsPanelPage.configure(t,n),this.listSelector.configure(t,n),s||r()},t}(r.SettingsPanel);t.ListBox=u},6541:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListSelector=void 0;var s=n(5955),a=n(938),l=n(1971),c=n(5801),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.selectedItem=null,n.listSelectorEvents={onItemAdded:new a.EventDispatcher,onItemRemoved:new a.EventDispatcher,onItemsChanged:new a.EventDispatcher,onItemSelected:new a.EventDispatcher,onItemSelectionChanged:new a.EventDispatcher},n.config=n.mergeConfig(t,{items:[],cssClass:"ui-listselector"},n.config),n.items=n.config.items,n}return i(t,e),t.prototype.normalizeItem=function(e){var t=r({},e);return this.config.filter&&!this.config.filter(t)?null:(this.config.translator&&(t.label=this.config.translator(t)),t)},t.prototype.getItemIndex=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].key===e)return t;return-1},t.prototype.haveItemsChanged=function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var o=e[n],i=t[n];if(o.key!==i.key||c.i18n.performLocalization(o.label)!==c.i18n.performLocalization(i.label)||o.ariaLabel!==i.ariaLabel)return!0}return!1},t.prototype.insertItem=function(e,t){if(this.config.comparator)return this.items.push(e),void this.items.sort(this.config.comparator);if(t){var n=this.items.findIndex(function(t){return t.key>e.key});n<0?this.items.push(e):this.items.splice(n,0,e)}else this.items.push(e)},t.prototype.getItems=function(){return this.items},t.prototype.hasItem=function(e){return this.getItemIndex(e)>-1},t.prototype.addItem=function(e,t,n,o){void 0===n&&(n=!1),void 0===o&&(o="");var i=this.normalizeItem(r({key:e,label:t},o&&{ariaLabel:o}));if(i){var s=this.getItemIndex(e);s>-1&&(l.ArrayUtils.remove(this.items,this.items[s]),this.onItemRemovedEvent(e)),this.insertItem(i,n),this.onItemAddedEvent(e),this.onItemsChangedEvent()}},t.prototype.removeItem=function(e){var t=this.getItemIndex(e);return t>-1&&(l.ArrayUtils.remove(this.items,this.items[t]),this.onItemRemovedEvent(e),this.onItemsChangedEvent(),!0)},t.prototype.selectItem=function(e){return e===this.selectedItem||this.getItemIndex(e)>-1&&(this.selectedItem=e,this.onItemSelectedEvent(e),!0)},t.prototype.getSelectedItem=function(){return this.selectedItem},t.prototype.getItemForKey=function(e){return this.items.find(function(t){return t.key===e})},t.prototype.synchronizeItems=function(e){var t=this,n=e.map(function(e){return t.normalizeItem(e)}).filter(function(e){return null!==e});this.config.comparator&&n.sort(this.config.comparator);var o=this.haveItemsChanged(this.items,n),i=new Set(this.items.map(function(e){return e.key})),r=new Set(n.map(function(e){return e.key})),s=this.items.filter(function(e){return!r.has(e.key)}).map(function(e){return e.key}),a=n.filter(function(e){return!i.has(e.key)}).map(function(e){return e.key});this.items=n,null===this.selectedItem||r.has(this.selectedItem)||(this.selectedItem=null);for(var l=0,c=s;l<c.length;l++){var u=c[l];this.onItemRemovedEvent(u)}for(var p=0,f=a;p<f.length;p++)u=f[p],this.onItemAddedEvent(u);o&&this.onItemsChangedEvent()},t.prototype.clearItems=function(){if(0!==this.items.length){var e=this.items;this.items=[],this.selectedItem=null;for(var t=0,n=e;t<n.length;t++){var o=n[t];this.onItemRemovedEvent(o.key)}this.onItemsChangedEvent()}},t.prototype.itemCount=function(){return Object.keys(this.items).length},t.prototype.onItemAddedEvent=function(e){this.listSelectorEvents.onItemAdded.dispatch(this,e)},t.prototype.onItemRemovedEvent=function(e){this.listSelectorEvents.onItemRemoved.dispatch(this,e)},t.prototype.onItemsChangedEvent=function(){this.listSelectorEvents.onItemsChanged.dispatch(this)},t.prototype.onItemSelectedEvent=function(e){this.listSelectorEvents.onItemSelected.dispatch(this,e)},t.prototype.onItemSelectionChangedEvent=function(e){this.listSelectorEvents.onItemSelectionChanged.dispatch(this,e)},t.prototype.dispatchItemSelectionChanged=function(e,t){void 0===t&&(t=!0),t&&this.selectItem(e),this.onItemSelectionChangedEvent(e)},Object.defineProperty(t.prototype,"onItemAdded",{get:function(){return this.listSelectorEvents.onItemAdded.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemRemoved",{get:function(){return this.listSelectorEvents.onItemRemoved.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemsChanged",{get:function(){return this.listSelectorEvents.onItemsChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelected",{get:function(){return this.listSelectorEvents.onItemSelected.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelectionChanged",{get:function(){return this.listSelectorEvents.onItemSelectionChanged.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);t.ListSelector=u},1015:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleListBox=void 0;var s=n(6171),a=n(1436),l=n(5277),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.SubtitleSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.SubtitleSwitchHandler(t,this.config.listSelector,n)},t}(s.ListBox);t.SubtitleListBox=c},2680:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferingOverlay=void 0;var r=n(1779),s=n(5955),a=n(3998),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.indicators=[new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"})],n.config=n.mergeConfig(t,{cssClass:"ui-buffering-overlay",hidden:!0,components:n.indicators,showDelayMs:1e3},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=new a.Timeout(i.showDelayMs,function(){n.onBufferingShow.dispatch(o),o.show()}),s=function(){r.start()},l=function(){t.isPlaying()&&s()},c=function(){r.clear(),n.onBufferingHide.dispatch(o),o.hide()};t.on(t.exports.PlayerEvent.StallStarted,s),t.on(t.exports.PlayerEvent.StallEnded,c),t.on(t.exports.PlayerEvent.Play,s),t.on(t.exports.PlayerEvent.Playing,c),t.on(t.exports.PlayerEvent.Paused,c),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,c),t.on(t.exports.PlayerEvent.TimeShift,l),t.on(t.exports.PlayerEvent.TimeShifted,c),t.on(t.exports.PlayerEvent.SourceUnloaded,c),t.isStalled()&&this.show()},t}(r.Container);t.BufferingOverlay=l},2691:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastStatusOverlay=void 0;var r=n(1779),s=n(8248),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.statusLabel=new s.Label({cssClass:"ui-cast-status-label"}),n.config=n.mergeConfig(t,{cssClass:"ui-cast-status-overlay",components:[n.statusLabel],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(e){o.show();var t=e.castPayload.deviceName;o.statusLabel.setText(a.i18n.getLocalizer("connectingTo",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStarted,function(e){o.show();var t=e.deviceName;o.statusLabel.setText(a.i18n.getLocalizer("playingOn",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStopped,function(e){o.hide()})},t}(r.Container);t.CastStatusOverlay=l},6326:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-clickoverlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.setUrl(this.config.url);var t=this.getDomElement();t.on("click",function(){t.data("url")&&window.open(t.data("url"),"_blank")})},t.prototype.getUrl=function(){return this.getDomElement().data("url")},t.prototype.setUrl=function(e){void 0!==e&&null!=e||(e=""),this.getDomElement().data("url",e)},t}(n(9404).Button);t.ClickOverlay=r},4636:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DismissClickOverlay=void 0;var r=n(1779),s=n(4073),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-dismiss-click-overlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.config.target.onShow.subscribe(function(){o.show()}),this.config.target.onHide.subscribe(function(){o.hide()}),this.getDomElement().on("click",function(){o.config.target instanceof s.SettingsPanel?o.config.target.hideAndReset():o.config.target.hide()})},t}(r.Container);t.DismissClickOverlay=a},823:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessageOverlay=void 0;var r=n(1779),s=n(8248),a=n(6884),l=n(2414),c=n(2157),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.errorLabel=new s.Label({cssClass:"ui-errormessage-label"}),n.tvNoiseBackground=new a.TvNoiseCanvas,n.config=n.mergeConfig(t,{cssClass:"ui-errormessage-overlay",components:[n.tvNoiseBackground,n.errorLabel],hidden:!0,role:"status"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=function(e,t){var r=function(e,t){if(e){if("function"==typeof e)return e(t);if(e[t.code]){var n=e[t.code];return"string"==typeof n?n:n(t)}}}(n.getConfig().errorMessages||i.messages,e);r&&(t=r),o.display(t)};if((0,c.isMobileV3PlayerAPI)(t)){var s=function(e){var t=l.ErrorUtils.defaultMobileV3ErrorMessageTranslator(e);r(e,t)};t.on(c.MobileV3PlayerEvent.PlayerError,s),t.on(c.MobileV3PlayerEvent.SourceError,s)}else t.on(t.exports.PlayerEvent.Error,function(e){var t=l.ErrorUtils.defaultWebErrorMessageTranslator(e);r(e,t)});t.on(t.exports.PlayerEvent.SourceLoaded,function(e){o.isShown()&&o.clear()})},t.prototype.display=function(e){this.errorLabel.setText(e),this.tvNoiseBackground.start(),this.show()},t.prototype.clear=function(){this.errorLabel.setText(""),this.tvNoiseBackground.stop(),this.hide()},t.prototype.release=function(){e.prototype.release.call(this),this.clear()},t}(r.Container);t.ErrorMessageOverlay=u},1904:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleOverlay=void 0;var r=n(1779),s=n(958),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.playbackToggleButton=new s.HugePlaybackToggleButton({enterFullscreenOnInitialPlayback:Boolean(t.enterFullscreenOnInitialPlayback)}),n.config=n.mergeConfig(t,{cssClass:"ui-playbacktoggle-overlay",components:[n.playbackToggleButton]},n.config),n}return i(t,e),t}(r.Container);t.PlaybackToggleOverlay=a},9529:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlay=void 0;var r=n(1779),s=n(1308),a=n(2806),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.replayButton=new s.HugeReplayButton,n.recommendationContainer=new r.Container({components:[],cssClasses:["recommendation-overlay-row","recommendations-section"]}),n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-overlay",hidden:!0,components:[new r.Container({components:[n.replayButton,n.recommendationContainer],cssClasses:["recommendation-overlay-row","replay-section"]})]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=function(){i.recommendationContainer.removeComponents(),i.recommendationContainer.updateComponents(),i.getDomElement().removeClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))},s=function(){r();var e=o.getConfig().metadata.recommendations;if(0!=e.length){var s=1;e.forEach(function(e){var t=new a.RecommendationItem({recommendationConfig:e,cssClasses:["recommendation-item-"+s++]});t.configure(n,o),i.recommendationContainer.addComponent(t)}),i.recommendationContainer.updateComponents(),i.getDomElement().addClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))}};o.getConfig().events.onUpdated.subscribe(s),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){r(),i.hide()}),n.on(n.exports.PlayerEvent.PlaybackFinished,function(){i.show()}),n.on(n.exports.PlayerEvent.Play,function(){i.hide()}),s()},t.CLASS_HAS_RECOMMENDATIONS="recommendations",t}(r.Container);t.RecommendationOverlay=l},4048:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleRegionContainer=t.SubtitleRegionContainerManager=t.SubtitleLabel=t.SubtitleOverlay=void 0;var r=n(1779),s=n(8248),a=n(9052),l=n(938),c=n(323),u=n(5801),p=n(5810),f=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,n)||this;return o.preprocessLabelEventCallback=new l.EventDispatcher,o.cea608Enabled=!1,o.cea608FontSizeFactor=1,o.cea608SmallPlayerHeightThreshold=t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD,o.filterFontSizeOptions=function(e){if(o.cea608Enabled&&null!==e.key){var t=parseInt(e.key,10);return!isNaN(t)&&t<=200}return!0},o.previewSubtitleActive=!1,o.previewSubtitle=new d({text:u.i18n.getLocalizer("subtitle.example")}),o.config=o.mergeConfig(n,{cssClass:"ui-subtitle-overlay",enableCea608CaptionFormatting:!0},o.config),o}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=o.getConfig();void 0!==r.cea608SmallPlayerHeightThreshold&&(this.cea608SmallPlayerHeightThreshold=r.cea608SmallPlayerHeightThreshold);var s=new g;this.subtitleManager=s,this.subtitleContainerManager=new h(this),n.on(n.exports.PlayerEvent.CueEnter,function(e){var t=i.generateLabel(e);s.cueEnter(e,t),i.preprocessLabelEventCallback.dispatch(e,t),i.previewSubtitleActive&&i.subtitleContainerManager.removeLabel(i.previewSubtitle),i.show(),i.subtitleContainerManager.addLabel(t,i.getDomElement().size()),i.updateComponents(),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueUpdate,function(e){var t=i.generateLabel(e),n=s.cueUpdate(e,t);i.preprocessLabelEventCallback.dispatch(e,t),n&&(i.subtitleContainerManager.replaceLabel(n,t,i.getDomElement().size()),i.updateComponents()),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueExit,function(e){var t=s.cueExit(e);t&&(i.subtitleContainerManager.removeLabel(t),i.updateComponents()),s.hasCues||(i.previewSubtitleActive?(i.subtitleContainerManager.addLabel(i.previewSubtitle),i.updateComponents()):i.hide())});var l=function(){i.hide(),i.subtitleContainerManager.clear(),s.clear(),i.removeComponents(),i.updateComponents()},u=function(){s.clearInactiveCues(n.getCurrentTime()).forEach(function(e){i.subtitleContainerManager.removeLabel(e.label)}),i.updateComponents()};n.on(n.exports.PlayerEvent.AudioChanged,l),n.on(n.exports.PlayerEvent.SubtitleDisabled,l),n.on(n.exports.PlayerEvent.Seeked,u),n.on(n.exports.PlayerEvent.TimeShifted,u),n.on(n.exports.PlayerEvent.PlaybackFinished,l),n.on(n.exports.PlayerEvent.SourceUnloaded,l),o.onComponentShow.subscribe(function(e){if(e instanceof a.ControlBar){i.getDomElement().addClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&m(i.getDomElement()).then(i.ensureCea608GridSizeUpdated)}}),o.onComponentHide.subscribe(function(e){if(e instanceof a.ControlBar){i.getDomElement().removeClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&m(i.getDomElement()).then(i.ensureCea608GridSizeUpdated)}}),this.configureCea608Captions(n,o),l(),this.updateCea608PushupFromPlayerHeight(new c.DOM(n.getContainer()).height())},t.prototype.updateCea608PushupFromPlayerHeight=function(e){this.cea608SmallPlayerHeightThreshold>0&&e<=this.cea608SmallPlayerHeightThreshold?this.getDomElement().addClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED))},t.prototype.setFontSizeFactor=function(e){this.cea608FontSizeFactor=Math.max(.5,Math.min(2,e))},t.prototype.detectCroppedSubtitleLabel=function(e){var t=this.getDomElement().get(0),n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{top:n.top<o.top,right:n.right>o.right,bottom:n.bottom>o.bottom,left:n.left<o.left}},t.prototype.handleSubtitleCropping=function(e){var t=e.getDomElement(),n=this.detectCroppedSubtitleLabel(t.get(0));n.top&&(t.css("top","0"),t.removeCss("bottom")),n.right&&(t.css("right","0"),t.removeCss("left")),n.bottom&&(t.css("bottom","0"),t.removeCss("top")),n.left&&(t.css("left","0"),t.removeCss("right"))},t.prototype.generateLabel=function(e){var t,n=e.region,o=(null===(t=e.position)||void 0===t?void 0:t.row)||0;return y(e)&&(e.position.row=e.position.row||0,e.position.column=e.position.column||0,n=n||"cea608-row-".concat(e.position.row)),new d({text:e.html||g.generateImageTagText(e.image)||e.text,cssClasses:e.vtt&&!e.vtt.region?["subtitle-vtt-cue"]:[],vtt:e.vtt,region:n,regionStyle:e.regionStyle,originalRowPosition:o})},t.prototype.resolveFontSizeFactor=function(e){return parseInt(e)/100},t.prototype.configureCea608Captions=function(e,n){var o,i,r=this,s=0,a=0,l=0;this.cea608Enabled=!1;var c={overlayWidth:0,overlayHeight:0,fontSizeFactor:0},u=n.getSubtitleSettingsManager();if(null!=u.fontSize.value){var p=this.resolveFontSizeFactor(u.fontSize.value);this.setFontSizeFactor(p)}u.fontSize.onChanged.subscribe(function(e,t){if(t.isSet()){var n=r.resolveFontSizeFactor(t.value);r.setFontSizeFactor(n)}else r.setFontSizeFactor(1);r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),null===(o=this.onShow)||void 0===o||o.subscribe(function(){r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.ensureCea608GridSizeUpdated=function(){var e=r.getDomElement(),n=e.width(),o=e.height(),u=n!==c.overlayWidth||o!==c.overlayHeight,p=r.cea608FontSizeFactor!==c.fontSizeFactor;if(u||p){c={overlayWidth:n,overlayHeight:o,fontSizeFactor:r.cea608FontSizeFactor};var f=new d({text:"X"});f.getDomElement().css({"font-size":"200px","line-height":"200px",visibility:"hidden"}),r.addComponent(f),r.updateComponents(),r.show();var g=f.getDomElement().width(),h=f.getDomElement().height(),y=g/h;r.removeComponent(f),r.updateComponents(),r.subtitleManager.hasCues||r.hide();var m=1-parseFloat(t.DEFAULT_CAPTION_LEFT_OFFSET)/100,b=Math.floor(m*n)-10,C=o;if(b/C>g*t.CEA608_NUM_COLUMNS/(h*t.CEA608_NUM_ROWS)){s=C/t.CEA608_NUM_ROWS,a=.8*s*.75*r.cea608FontSizeFactor;var S=b/t.CEA608_NUM_COLUMNS,P=a*y;l=Math.max(S-P,0)}else s=b/t.CEA608_NUM_COLUMNS/y,a=.8*s*.75*r.cea608FontSizeFactor,l=0;i=.2*s,e.get().forEach(function(e){e.style.setProperty("--cea608-row-height","".concat(s,"px"))});for(var w=function(e){var t={"font-size":"".concat(a,"px"),"line-height":"".concat(s-i,"px")};r.isCea608FormattingEnabled()&&(t["letter-spacing"]="".concat(l,"px")),e.getDomElement().css(t),e.regionStyle="margin: ".concat(i/2,"px; height: ").concat(s,"px")},E=0,O=r.getComponents();E<O.length;E++){var _=O[E];_ instanceof v&&(_.getDomElement().css({margin:"".concat(i/2,"px"),height:"".concat(s,"px")}),_.getComponents().forEach(function(e){w(e)})),_ instanceof d&&w(_)}}},e.on(e.exports.PlayerEvent.PlayerResized,function(e){r.updateCea608PushupFromPlayerHeight(parseFloat(e.height)),r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.preprocessLabelEventCallback.subscribe(function(e,n){if(y(e)){r.cea608Enabled||(r.cea608Enabled=!0,r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608)),r.isCea608FormattingEnabled()&&r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)));var o=e.position.column*t.CEA608_COLUMN_OFFSET+"%";"0%"===o&&(o=t.DEFAULT_CAPTION_LEFT_OFFSET);var c={left:o,"font-size":"".concat(a,"px"),"line-height":"".concat(s-i,"px")};r.isCea608FormattingEnabled()&&(c["letter-spacing"]="".concat(l,"px")),n.getDomElement().css(c),n.regionStyle="margin: ".concat(i/2,"px; height: ").concat(s,"px")}});var f=function(){r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608)),r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)),r.cea608Enabled&&(c={overlayWidth:0,overlayHeight:0,fontSizeFactor:0}),r.cea608Enabled=!1};e.on(e.exports.PlayerEvent.CueExit,function(){r.subtitleManager.hasCues||f()}),e.on(e.exports.PlayerEvent.SourceUnloaded,f),e.on(e.exports.PlayerEvent.SubtitleEnabled,f),e.on(e.exports.PlayerEvent.SubtitleDisabled,f)},t.prototype.enablePreviewSubtitleLabel=function(){this.subtitleManager.hasCues||(this.previewSubtitleActive=!0,this.subtitleContainerManager.addLabel(this.previewSubtitle),this.updateComponents(),this.show())},t.prototype.removePreviewSubtitleLabel=function(){this.previewSubtitleActive&&(this.previewSubtitleActive=!1,this.subtitleContainerManager.removeLabel(this.previewSubtitle),this.updateComponents())},t.prototype.isCea608FormattingEnabled=function(){var e;return!1!==(null===(e=this.config)||void 0===e?void 0:e.enableCea608CaptionFormatting)},t.CLASS_CONTROLBAR_VISIBLE="controlbar-visible",t.CLASS_CEA_608="cea608",t.CLASS_CEA608_PUSHUP_DISABLED="cea608-pushup-disabled",t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD=360,t.CLASS_CEA_608_FORMATTING="cea608-formatting",t.CEA608_NUM_ROWS=15,t.CEA608_NUM_COLUMNS=32,t.CEA608_COLUMN_OFFSET=100/t.CEA608_NUM_COLUMNS,t.DEFAULT_CAPTION_LEFT_OFFSET="0.5%",t}(r.Container);t.SubtitleOverlay=f;var d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-subtitle-label"},n.config),n}return i(t,e),Object.defineProperty(t.prototype,"vtt",{get:function(){return this.config.vtt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.config.region},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"regionStyle",{get:function(){return this.config.regionStyle},set:function(e){this.config.regionStyle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originalRowPosition",{get:function(){return this.config.originalRowPosition},set:function(e){this.config.originalRowPosition=e},enumerable:!1,configurable:!0}),t}(s.Label);t.SubtitleLabel=d;var g=function(){function e(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0}return e.calculateId=function(e){var t=e.start+"-"+e.text;return e.position&&(t+="-"+e.position.row+"-"+e.position.column),t},e.prototype.cueEnter=function(e,t){this.addCueToMap(e,t)},e.prototype.cueUpdate=function(e,t){var n=this.popCueFromMap(e);if(n)return this.addCueToMap(e,t),n},e.prototype.addCueToMap=function(t,n){var o=e.calculateId(t);this.activeSubtitleCueMap[o]=this.activeSubtitleCueMap[o]||[],this.activeSubtitleCueMap[o].push({event:t,label:n}),this.activeSubtitleCueCount++},e.prototype.popCueFromMap=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0){var i=o.shift();return this.activeSubtitleCueCount--,i.label}},e.prototype.clearInactiveCues=function(e){var t=this,n=[];return Object.keys(this.activeSubtitleCueMap).forEach(function(o){t.activeSubtitleCueMap[o].forEach(function(o){(e<o.event.start||e>o.event.end)&&(t.popCueFromMap(o.event),n.push(o))})}),n},e.generateImageTagText=function(e){if(e){var t=new c.DOM("img",{src:e});return t.css("width","100%"),t.get(0).outerHTML}},e.prototype.getCues=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0)return o.map(function(e){return e.label})},e.prototype.cueExit=function(e){return this.popCueFromMap(e)},Object.defineProperty(e.prototype,"cueCount",{get:function(){return this.activeSubtitleCueCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCues",{get:function(){return this.cueCount>0},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0},e}(),h=function(){function e(e){this.subtitleOverlay=e,this.subtitleRegionContainers={},this.subtitleOverlay=e}return e.prototype.getRegion=function(e){return e.vtt?{regionContainerId:e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt",regionName:"vtt"}:{regionContainerId:e.region||"default",regionName:e.region||"default"}},e.prototype.addLabel=function(e,t){var n=this.getRegion(e),o=n.regionContainerId,i=n.regionName,r=["subtitle-position-".concat(i)];if(e.vtt&&e.vtt.region?(r.push("subtitle-vtt-region-container"),r.push("vtt-region-".concat(e.vtt.region.id))):e.vtt&&r.push("subtitle-vtt-cue-container"),!this.subtitleRegionContainers[o]){var s=new v({cssClasses:r});for(var a in this.subtitleRegionContainers[o]=s,e.regionStyle&&s.getDomElement().attr("style",e.regionStyle),e.vtt&&s.getDomElement().css("position","static"),s.getDomElement(),this.subtitleRegionContainers)this.subtitleOverlay.addComponent(this.subtitleRegionContainers[a])}this.subtitleRegionContainers[o].addLabel(e,t)},e.prototype.replaceLabel=function(e,t,n){var o=this.getRegion(e),i=this.getRegion(t);if(o.regionContainerId===i.regionContainerId){var r=this.subtitleRegionContainers[o.regionContainerId];return r.removeLabel(e),void r.addLabel(t,n)}this.removeLabel(e),this.addLabel(t,n)},e.prototype.removeLabel=function(e){var t;t=e.vtt?e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt":e.region||"default",this.subtitleRegionContainers[t].removeLabel(e),this.subtitleRegionContainers[t].isEmpty()&&(this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[t]),delete this.subtitleRegionContainers[t])},e.prototype.clear=function(){for(var e in this.subtitleRegionContainers)this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[e]);this.subtitleRegionContainers={}},e}();t.SubtitleRegionContainerManager=h;var v=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.labelCount=0,n.config=n.mergeConfig(t,{cssClass:"subtitle-region-container"},n.config),n}return i(t,e),t.prototype.addLabel=function(e,t){this.labelCount++,e.vtt&&(e.vtt.region&&t&&p.VttUtils.setVttRegionStyles(this,e.vtt.region,t),p.VttUtils.setVttCueBoxStyles(e,t)),this.addComponent(e),this.updateComponents()},t.prototype.removeLabel=function(e){this.labelCount--,this.removeComponent(e),this.updateComponents()},t.prototype.isEmpty=function(){return 0===this.labelCount},t}(r.Container);function y(e){return null!=e.position}function m(e){return"none"!==getComputedStyle(e.get(0)).transitionProperty?new Promise(function(t){var n=function(){e.off("transitionend",n),e.off("transitioncancel",n),t()};e.on("transitionend",n),e.on("transitioncancel",n)}):Promise.resolve()}t.SubtitleRegionContainer=v},1368:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TouchControlOverlay=void 0;var r=n(1779),s=n(5092),a=n(938),l=n(3998),c=n(8248),u=n(5801),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.SEEK_FORWARD_CLASS="seek-forward",n.SEEK_BACKWARD_CLASS="seek-backward",n.touchControlEvents={onSingleClick:new a.EventDispatcher,onDoubleClick:new a.EventDispatcher,onSeekBackward:new a.EventDispatcher,onSeekForward:new a.EventDispatcher},n.playbackToggleButton=new s.SmallCenteredPlaybackToggleButton({enterFullscreenOnInitialPlayback:Boolean(t.enterFullscreenOnInitialPlayback)}),n.seekForwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-forward-label",hidden:!0}),n.seekBackwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-backward-label",hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-touch-control-overlay",acceptsTouchWithUiHidden:!0,seekTime:10,seekDoubleTapMargin:15,seekDoubleTapTimeout:200,components:[n.seekBackwardLabel,n.playbackToggleButton,n.seekForwardLabel]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=0,s=0;this.doubleTapTimeout=new l.Timeout(this.config.seekDoubleTapTimeout,function(){i.couldBeDoubleTapping=!1,s=0,setTimeout(function(){return i.hideSeekAnimationElements()},150)});var a=!1,c=!1,p=function(){i.playbackToggleButton.show()},f=function(){i.playbackToggleButton.hide()};o.onBufferingShow.subscribe(function(){a=!0,f()}),o.onBufferingHide.subscribe(function(){a=!1,c&&p()}),o.onControlsHide.subscribe(function(){c=!1,f()}),o.onControlsShow.subscribe(function(){c=!0,a||p()}),this.touchControlEvents.onSeekBackward.subscribe(function(){r-=i.config.seekTime,n.seek(r),i.seekBackwardLabel.setText(Math.abs(Math.round(r-s))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekBackwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_BACKWARD_CLASS)),i.seekForwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_FORWARD_CLASS))}),this.touchControlEvents.onSeekForward.subscribe(function(){r+=i.config.seekTime,n.seek(r),i.seekForwardLabel.setText(Math.abs(Math.round(r-s))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekForwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_FORWARD_CLASS)),i.seekBackwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_BACKWARD_CLASS))}),this.touchControlEvents.onSingleClick.subscribe(function(e,t){o.getUI().toggleUiShown(),r=n.getCurrentTime(),s=r;var a=t.target.getBoundingClientRect(),l=t.clientX-a.left,c=t.clientY-a.top;i.latestTapPosition={x:l,y:c}}),this.touchControlEvents.onDoubleClick.subscribe(function(e,n){o.getUI().hideUi();var r=n.target;if(r&&r.component instanceof t){var s=r.clientWidth,a=.4*s,l=r.getBoundingClientRect(),c=n.clientX-l.left,u=n.clientY-l.top,p=i.config.seekDoubleTapMargin;Math.abs(i.latestTapPosition.x-c)<=p&&Math.abs(i.latestTapPosition.y-u)<=p&&(c<a?i.touchControlEvents.onSeekBackward.dispatch(i):c>s-a&&i.touchControlEvents.onSeekForward.dispatch(i)),i.latestTapPosition={x:c,y:u}}}),this.getDomElement().on("click",function(e){e.target.component instanceof t&&d(e)});var d=function(e){i.couldBeDoubleTapping?i.onDoubleClickEvent(e):i.onSingleClickEvent(e),i.couldBeDoubleTapping=!0,i.doubleTapTimeout.start()}},t.prototype.hideSeekAnimationElements=function(){this.getDomElement().removeClass(this.prefixCss(this.SEEK_FORWARD_CLASS)),this.getDomElement().removeClass(this.prefixCss(this.SEEK_BACKWARD_CLASS)),this.seekForwardLabel.hide(),this.seekBackwardLabel.hide()},t.prototype.onDoubleClickEvent=function(e){this.touchControlEvents.onDoubleClick.dispatch(this,e)},t.prototype.onSingleClickEvent=function(e){this.touchControlEvents.onSingleClick.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.touchControlEvents.onSingleClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.TouchControlOverlay=p},9819:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBar=void 0;var r=n(5223),s=n(5955),a=n(323),l=n(938),c=n(3998),u=n(7395),p=n(1823),f=n(9436),d=n(5801),g=n(5256),h=n(8347),v=n(3101),y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.playbackPositionPercentage=0,n.isUserSeeking=!1,n.isAdPlaying=!1,n.seekBarEvents={onSeek:new l.EventDispatcher,onSeekPreview:new l.EventDispatcher,onSeeked:new l.EventDispatcher},n.seekWhileScrubbing=function(e,t){t.scrubbing&&n.seek(t.position)},n.getTargetSeekPosition=function(e){var t;if(n.player.isLive()){var o=n.player.getMaxTimeShift();t=o-o*(e/100)}else{var i=u.PlayerUtils.getSeekableRangeStart(n.player,0);t=n.player.getDuration()*(e/100)+i}return t},n.seek=function(e){var t=n.getTargetSeekPosition(e);n.player.isLive()?n.player.timeShift(t,"ui"):n.player.seek(t,"ui")},n.updateLabelPosition=function(e){n.uiBoundingRect||(n.uiBoundingRect=n.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()),n.label.setPositionInBounds(e,n.uiBoundingRect)};var o=n.config.keyStepIncrements||{leftRight:1,upDown:5};return n.config=n.mergeConfig(t,{cssClass:"ui-seekbar",vertical:!1,smoothPlaybackPositionUpdateIntervalMs:50,keyStepIncrements:o,ariaLabel:d.i18n.getLocalizer("seekBar"),tabIndex:0,snappingRange:1,enableSeekPreview:!0,snappingEnabled:!0},n.config),n.label=n.config.label,n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.hasLabel()&&this.getLabel().initialize()},t.prototype.setAriaSliderMinMax=function(e,t){this.getDomElement().attr("aria-valuemin",e),this.getDomElement().attr("aria-valuemax",t)},t.prototype.setAriaSliderValues=function(){if(this.seekBarType===f.SeekBarType.Live){var e=Math.ceil(this.player.getTimeShift()).toString(),t="".concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.timeshift"))," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.value")),": ").concat(e);this.getDomElement().attr("aria-valuenow",e),this.getDomElement().attr("aria-valuetext",t),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(t))}else if(this.seekBarType===f.SeekBarType.Vod){var n="".concat(p.StringUtils.secondsToText(this.player.getCurrentTime())," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.durationText"))," ").concat(p.StringUtils.secondsToText(this.player.getDuration()));this.getDomElement().attr("aria-valuenow",Math.floor(this.player.getCurrentTime()).toString()),this.getDomElement().attr("aria-valuetext",n),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(p.StringUtils.secondsToText(this.player.getCurrentTime())))}},t.prototype.getPlaybackPositionPercentage=function(){return this.player.isLive()?100-100/this.player.getMaxTimeShift()*this.player.getTimeShift():100/this.player.getDuration()*this.getRelativeCurrentTime()},t.prototype.updateBufferLevel=function(e){var t;t=this.player.isLive()?100:e+(0,v.getMinBufferLevel)(this.player),this.setBufferPosition(t)},t.prototype.configure=function(n,o,i){var s=this;if(void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),this.player=n,this.uiManager=o,this.setPosition(this.seekBarBackdrop,100),new f.SeekBarController(this.config.keyStepIncrements,n,o.getConfig().volumeController).setSeekBarControls(this.getDomElement(),function(){return s.seekBarType}),i){var a=function(){s.isUiShown=!0,!s.smoothPlaybackPositionUpdater||n.isLive()||s.smoothPlaybackPositionUpdater.isActive()||(g(null,!0),s.smoothPlaybackPositionUpdater.start())};n.on(n.exports.PlayerEvent.AdStarted,function(){s.isAdPlaying=!0,a()}),n.on(n.exports.PlayerEvent.AdBreakFinished,function(){s.isAdPlaying=!1}),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){s.isAdPlaying=!1}),o.onControlsShow.subscribe(a),o.onControlsHide.subscribe(function(){s.isAdPlaying||(s.isUiShown=!1,s.smoothPlaybackPositionUpdater&&s.smoothPlaybackPositionUpdater.isActive()&&s.smoothPlaybackPositionUpdater.clear())});var l,c=!1,p=!1,d=!1,g=function(e,o){if(void 0===e&&(e=null),void 0===o&&(o=!1),!s.isUserSeeking){var i=s.getPlaybackPositionPercentage();if(s.updateBufferLevel(i),p&&e&&e.type===n.exports.PlayerEvent.SegmentRequestFinished&&i!==s.playbackPositionPercentage&&(i=s.playbackPositionPercentage),n.isLive())0===n.getMaxTimeShift()?s.setPlaybackPosition(100):(s.isSeeking()||s.setPlaybackPosition(i),s.setAriaSliderMinMax(n.getMaxTimeShift().toString(),"0"));else{var r=s.config.smoothPlaybackPositionUpdateIntervalMs===t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED||o||n.isPaused(),a=n.isPaused()===n.isPlaying();!r&&!a||s.isSeeking()||s.setPlaybackPosition(i),s.setAriaSliderMinMax("0",n.getDuration().toString())}s.isUiShown&&s.setAriaSliderValues()}};n.on(n.exports.PlayerEvent.Ready,g),n.on(n.exports.PlayerEvent.TimeChanged,g),n.on(n.exports.PlayerEvent.StallEnded,g),n.on(n.exports.PlayerEvent.TimeShifted,g),n.on(n.exports.PlayerEvent.SegmentRequestFinished,g),this.configureLivePausedTimeshiftUpdater(n,o,g);var h=function(){d=!0,s.setSeeking(!0),p=!1},v=function(e){void 0===e&&(e=null),d=!1,s.setSeeking(!1),g(e,!0)};n.on(n.exports.PlayerEvent.Seek,h),n.on(n.exports.PlayerEvent.Seeked,v),n.on(n.exports.PlayerEvent.TimeShift,h),n.on(n.exports.PlayerEvent.TimeShifted,v);var y=function(e){return!!e.groupPlayback};this.onSeek.subscribe(function(e){s.isUserSeeking=!0,o.onSeek.dispatch(e),y(n)&&n.groupPlayback.hasJoined()&&!l&&(l=n.groupPlayback.beginSuspension(r.GroupPlaybackSuspensionReason.UserIsScrubbing)),d||(c=n.isPlaying())&&n.pause("ui-seek")}),this.onSeekPreview.subscribe(function(e,t){o.onSeekPreview.dispatch(e,t),p=t.scrubbing}),"boolean"==typeof o.getConfig().enableSeekPreview&&(this.config.enableSeekPreview=o.getConfig().enableSeekPreview),this.config.enableSeekPreview&&this.onSeekPreview.subscribeRateLimited(this.seekWhileScrubbing,200),this.onSeeked.subscribe(function(e,t){if(s.isUserSeeking=!1,s.seek(t),o.onSeeked.dispatch(e),c&&n.play("ui-seek"),y(n)&&n.groupPlayback.hasJoined()&&l){var i=s.getTargetSeekPosition(t);n.groupPlayback.endSuspension(l,{proposedPlaybackTime:i}),l=void 0}}),this.hasLabel()&&this.getLabel().configure(n,o);var m=!1,b=!1,C=function(e,t){e&&!t?s.hide():s.show(),g(null,!0),s.refreshPlaybackPosition()},S=new u.PlayerUtils.LiveStreamDetector(n,o);S.onLiveChanged.subscribe(function(e,t){(m=t.live)&&null!=s.smoothPlaybackPositionUpdater?(s.smoothPlaybackPositionUpdater.clear(),s.seekBarType=f.SeekBarType.Live):s.seekBarType=f.SeekBarType.Vod,C(m,b)});var P=new u.PlayerUtils.TimeShiftAvailabilityDetector(n);P.onTimeShiftAvailabilityChanged.subscribe(function(e,t){b=t.timeShiftAvailable,C(m,b)}),S.detect(),P.detect(),n.on(n.exports.PlayerEvent.PlayerResized,function(){s.refreshPlaybackPosition(),s.uiBoundingRect=s.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()}),o.onConfigured.subscribe(function(){s.refreshPlaybackPosition()}),n.on(n.exports.PlayerEvent.SourceLoaded,function(){s.refreshPlaybackPosition()}),o.getConfig().events.onUpdated.subscribe(function(){g()}),"number"==typeof o.getConfig().seekbarSnappingRange&&(this.config.snappingRange=o.getConfig().seekbarSnappingRange),"boolean"==typeof o.getConfig().seekbarSnappingEnabled&&(this.config.snappingEnabled=o.getConfig().seekbarSnappingEnabled),g(),this.setBufferPosition(0),this.setSeekPosition(0),this.config.smoothPlaybackPositionUpdateIntervalMs!==t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED&&this.configureSmoothPlaybackPositionUpdater(n,o),this.initializeTimelineMarkers(n,o)}else this.seekBarType=f.SeekBarType.Volume},t.prototype.initializeTimelineMarkers=function(e,t){var n=this,o={cssPrefix:this.config.cssPrefix,snappingRange:this.config.snappingRange};this.timelineMarkersHandler=new h.TimelineMarkersHandler(o,function(){return n.seekBar.width()},this.seekBarMarkersContainer),this.timelineMarkersHandler.initialize(e,t)},t.prototype.configureLivePausedTimeshiftUpdater=function(e,t,n){var o=this;this.pausedTimeshiftUpdater=new c.Timeout(1e3,n,!0),e.on(e.exports.PlayerEvent.Paused,function(){e.isLive()&&e.getMaxTimeShift()<0&&o.pausedTimeshiftUpdater.start()}),e.on(e.exports.PlayerEvent.Play,function(){return o.pausedTimeshiftUpdater.clear()})},t.prototype.configureSmoothPlaybackPositionUpdater=function(e,t){var n=this,o=0,i=0,r=.05;this.smoothPlaybackPositionUpdater=new c.Timeout(50,function(){if(!n.isSeeking()){try{if(0===n.player.getDuration())return n.setPlaybackPosition(0),void(o=0);o+=r,i=n.getRelativeCurrentTime()}catch(t){return void(t instanceof e.exports.PlayerAPINotAvailableError&&n.smoothPlaybackPositionUpdater.clear())}var t=o-i;Math.abs(t)>2?o=i:t<=-.05?o+=r:t>=r&&(o-=r);var s=100/e.getDuration()*o;n.setPlaybackPosition(s)}},!0);var s=function(){e.isLive()||(o=n.getRelativeCurrentTime(),n.smoothPlaybackPositionUpdater.start())},a=function(){n.smoothPlaybackPositionUpdater.clear()};e.on(e.exports.PlayerEvent.Play,s),e.on(e.exports.PlayerEvent.Playing,s),e.on(e.exports.PlayerEvent.Paused,a),e.on(e.exports.PlayerEvent.PlaybackFinished,a),e.on(e.exports.PlayerEvent.Seeked,function(){o=n.getRelativeCurrentTime()}),e.on(e.exports.PlayerEvent.SourceUnloaded,a),e.isPlaying()&&s()},t.prototype.getRelativeCurrentTime=function(){return u.PlayerUtils.getCurrentTimeRelativeToSeekableRange(this.player)},t.prototype.release=function(){e.prototype.release.call(this),this.smoothPlaybackPositionUpdater&&this.smoothPlaybackPositionUpdater.clear(),this.pausedTimeshiftUpdater&&this.pausedTimeshiftUpdater.clear(),this.config.enableSeekPreview&&this.onSeekPreview.unsubscribe(this.seekWhileScrubbing)},t.prototype.toDomElement=function(){var e=this;this.config.vertical&&this.config.cssClasses.push("vertical");var t=new a.DOM("div",{id:this.config.id,class:this.getCssClasses(),role:"slider","aria-label":d.i18n.performLocalization(this.config.ariaLabel),tabindex:this.config.tabIndex.toString()},this),n=new a.DOM("div",{class:this.prefixCss("seekbar")});this.seekBar=n;var o=new a.DOM("div",{class:this.prefixCss("seekbar-bars")}),i=new a.DOM("div",{class:this.prefixCss("seekbar-bufferlevel")});this.seekBarBufferPosition=i;var r=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition")});this.seekBarPlaybackPosition=r;var s=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition-marker")});this.seekBarPlaybackPositionMarker=s;var l=new a.DOM("div",{class:this.prefixCss("seekbar-seekposition")});this.seekBarSeekPosition=l;var c=new a.DOM("div",{class:this.prefixCss("seekbar-backdrop")});this.seekBarBackdrop=c;var u=new a.DOM("div",{class:this.prefixCss("seekbar-markers")});this.seekBarMarkersContainer=u,o.append(this.seekBarBackdrop,this.seekBarBufferPosition,this.seekBarSeekPosition,this.seekBarPlaybackPosition),n.append(o,this.seekBarMarkersContainer,this.seekBarPlaybackPositionMarker);var p=!1,f=function(t){t.preventDefault(),null!=e.player.vr&&t.stopPropagation();var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekPreviewEvent(o,i,!0)},h=function(t){var n;t.preventDefault(),new a.DOM(document).off("touchmove mousemove",f),new a.DOM(document).off("touchend mouseup",h);var o=100*e.getOffset(t);if(e.config.snappingEnabled){var i=null===(n=e.timelineMarkersHandler)||void 0===n?void 0:n.getMarkerAtPosition(o);o=i?i.position:o}e.setSeeking(!1),p=!1,e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekedEvent(o)};return n.on("touchstart mousedown",function(t){var n=g.BrowserUtils.isTouchSupported&&e.isTouchEvent(t);t.preventDefault(),null!=e.player.vr&&t.stopPropagation(),e.setSeeking(!0),p=!0,e.onSeekEvent(),new a.DOM(document).on(n?"touchmove":"mousemove",f),new a.DOM(document).on(n?"touchend":"mouseup",h)}),n.on("touchmove mousemove",function(t){t.preventDefault(),p&&f(t);var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.onSeekPreviewEvent(o,i,!1),e.hasLabel()&&e.getLabel().isHidden()&&e.getLabel().show()}),n.on("touchend mouseleave",function(t){t.preventDefault(),e.setSeekPosition(0),e.hasLabel()&&e.getLabel().hide()}),t.append(n),this.label&&t.append(this.label.getDomElement()),t},t.prototype.getHorizontalOffset=function(e){var t=this.seekBar.offset().left,n=1/this.seekBar.width()*(e-t);return this.sanitizeOffset(n)},t.prototype.getVerticalOffset=function(e){var t=this.seekBar.offset().top,n=1/this.seekBar.height()*(e-t);return 1-this.sanitizeOffset(n)},t.prototype.getOffset=function(e){return g.BrowserUtils.isTouchSupported&&this.isTouchEvent(e)?this.config.vertical?this.getVerticalOffset("touchend"===e.type?e.changedTouches[0].pageY:e.touches[0].pageY):this.getHorizontalOffset("touchend"===e.type?e.changedTouches[0].pageX:e.touches[0].pageX):e instanceof MouseEvent?this.config.vertical?this.getVerticalOffset(e.pageY):this.getHorizontalOffset(e.pageX):(console&&console.warn("invalid event"),0)},t.prototype.sanitizeOffset=function(e){return e<0?e=0:e>1&&(e=1),e},t.prototype.setPlaybackPosition=function(e){this.playbackPositionPercentage=e,this.setPosition(this.seekBarPlaybackPosition,e);var t=(this.config.vertical?this.seekBar.height()-this.seekBarPlaybackPositionMarker.height():this.seekBar.width())/100*e;this.config.vertical&&(t=this.seekBar.height()-t-this.seekBarPlaybackPositionMarker.height());var n=this.config.vertical?{transform:"translateY("+t+"px)","-ms-transform":"translateY("+t+"px)","-webkit-transform":"translateY("+t+"px)"}:{transform:"translateX("+t+"px)","-ms-transform":"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)"};this.seekBarPlaybackPositionMarker.css(n)},t.prototype.refreshPlaybackPosition=function(){this.setPlaybackPosition(this.playbackPositionPercentage)},t.prototype.setBufferPosition=function(e){this.setPosition(this.seekBarBufferPosition,e)},t.prototype.setSeekPosition=function(e){this.setPosition(this.seekBarSeekPosition,e)},t.prototype.setPosition=function(e,t){var n=t/100;n>=.99999&&n<=1.00001&&(n=.99999);var o=this.config.vertical?{transform:"scaleY("+n+")","-ms-transform":"scaleY("+n+")","-webkit-transform":"scaleY("+n+")"}:{transform:"scaleX("+n+")","-ms-transform":"scaleX("+n+")","-webkit-transform":"scaleX("+n+")"};e.css(o)},t.prototype.setSeeking=function(e){e?this.getDomElement().addClass(this.prefixCss(t.CLASS_SEEKING)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.isSeeking=function(){return this.getDomElement().hasClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.hasLabel=function(){return null!=this.label},t.prototype.getLabel=function(){return this.label},t.prototype.onSeekEvent=function(){this.seekBarEvents.onSeek.dispatch(this)},t.prototype.clearAllThickenedMarkers=function(){var e;null===(e=this.seekBarMarkersContainer.find(".".concat(this.prefixCss("seekbar-marker"))))||void 0===e||e.removeClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.thickenMarker=function(e){(null==e?void 0:e.element)&&e.element.addClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.onSeekPreviewEvent=function(e,t,n){var o=this.timelineMarkersHandler&&this.timelineMarkersHandler.getMarkerAtPosition(e),i=e;o&&(o.duration>0?e<o.position?i=o.position:e>o.position+o.duration&&(i=o.position+o.duration):i=o.position),this.label&&this.updateLabelPosition(t),n&&(this.clearAllThickenedMarkers(),this.thickenMarker(o)),this.seekBarEvents.onSeekPreview.dispatch(this,{scrubbing:n,position:i,marker:o})},t.prototype.onSeekedEvent=function(e){this.clearAllThickenedMarkers(),this.seekBarEvents.onSeeked.dispatch(this,e)},Object.defineProperty(t.prototype,"onSeek",{get:function(){return this.seekBarEvents.onSeek.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeekPreview",{get:function(){return this.seekBarEvents.onSeekPreview.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeeked",{get:function(){return this.seekBarEvents.onSeeked.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onShowEvent=function(){e.prototype.onShowEvent.call(this),this.refreshPlaybackPosition()},t.prototype.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED=-1,t.CLASS_SEEKING="seeking",t.CLASS_CHAPTER_HOVERED="hovered",t}(s.Component);t.SeekBar=y},7273:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarLabel=void 0;var r=n(1779),s=n(8248),a=n(5955),l=n(1823),c=n(815),u=n(7395),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.appliedMarkerCssClasses=[],n.initializeTimeFormat=function(){var e=n.player;null!=e&&(n.timeFormat=Math.abs(e.isLive()?e.getMaxTimeShift():e.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,n.setTitleText(null),n.setThumbnail(null))},n.handleSeekPreview=function(e,t){if(n.player.isLive()){var o=n.player.getMaxTimeShift(),i=o-o*(t.position/100);n.setTime(i);var r=(l=i,c=n.player.getTimeShift(),n.player.getCurrentTime()-c+l);n.setThumbnail(n.player.getThumbnail(r))}else{var s=n.player.getDuration()*(t.position/100);n.setTime(s);var a=s+u.PlayerUtils.getSeekableRangeStart(n.player,0);n.setThumbnail(n.player.getThumbnail(a))}var l,c;if(t.marker?n.setTitleText(t.marker.marker.title):n.setTitleText(null),n.appliedMarkerCssClasses.length>0&&(n.getDomElement().removeClass(n.appliedMarkerCssClasses.join(" ")),n.appliedMarkerCssClasses=[]),t.marker){var p=(t.marker.marker.cssClasses||[]).map(function(e){return n.prefixCss(e)});n.getDomElement().addClass(p.join(" ")),n.appliedMarkerCssClasses=p}},n.timeLabel=new s.Label({cssClasses:["seekbar-label-metadata","seekbar-label-time"]}),n.titleLabel=new s.Label({cssClasses:["seekbar-label-metadata","seekbar-label-title"]}),n.thumbnail=new a.Component({cssClasses:["seekbar-thumbnail"],role:"img"}),n.thumbnailImageLoader=new c.ImageLoader,n.container=new r.Container({components:[n.titleLabel,n.thumbnail,n.timeLabel],cssClass:"seekbar-label-inner"}),n.config=n.mergeConfig(t,{cssClass:"ui-seekbar-label",components:[n.container],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.uiManager=n,n.onSeekPreview.subscribeRateLimited(this.handleSeekPreview,100),n.getConfig().events.onUpdated.subscribe(this.initializeTimeFormat),t.on(this.player.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat),this.initializeTimeFormat()},t.prototype.setPositionInBounds=function(e,t){this.getDomElement().css("left",e+"px");var n=this.container.getDomElement().get(0).parentElement.getBoundingClientRect(),o=0;n.right>t.right?o=n.right-t.right:n.left<t.left&&(o=n.left-t.left),0!==o&&this.getDomElement().css("left",e-o+"px")},t.prototype.setText=function(e){this.timeLabel.setText(e)},t.prototype.setTime=function(e){this.setText(l.StringUtils.secondsToTime(e,this.timeFormat))},t.prototype.setTitleText=function(e){this.titleLabel.setText(e),null==e?this.titleLabel.hide():this.titleLabel.show()},t.prototype.setThumbnail=function(e){var t=this;void 0===e&&(e=null);var n=this.thumbnail.getDomElement();null==e?n.css({"background-image":null,display:"none",width:null,height:null}):this.thumbnailImageLoader.load(e.url,function(o,i,r){void 0!==e.x?n.css(t.thumbnailCssSprite(e,i,r)):n.css(t.thumbnailCssSingleImage(e,i,r))})},t.prototype.thumbnailCssSprite=function(e,t,n){var o=t/e.width*100,i=n/e.height*100,r=e.x/e.width*100,s=e.y/e.height*100,a=1/e.width*e.height;return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(100*a,"%"),"background-size":"".concat(o,"% ").concat(i,"%"),"background-position":"-".concat(r,"% -").concat(s,"%")}},t.prototype.thumbnailCssSingleImage=function(e,t,n){var o=1/t*n;return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(100*o,"%"),"background-size":"100% 100%","background-position":"0 0"}},t.prototype.release=function(){e.prototype.release.call(this),this.uiManager.onSeekPreview.unsubscribe(this.handleSeekPreview),this.player.off(this.player.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat)},t}(r.Container);t.SeekBarLabel=p},6003:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeSlider=void 0;var r=n(9819),s=n(5801),a=n(5256),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.updateVolumeWhileScrubbing=function(e,t){t.scrubbing&&n.volumeTransition&&n.volumeTransition.update(t.position)},n.config=n.mergeConfig(t,{cssClass:"ui-volumeslider",hideIfVolumeControlProhibited:!0,hideOnMobile:!0,ariaLabel:s.i18n.getLocalizer("settings.audio.volume"),tabIndex:0},n.config),n}return i(t,e),t.prototype.setVolumeAriaSliderValues=function(e){this.getDomElement().attr("aria-valuenow",Math.ceil(e).toString()),this.getDomElement().attr("aria-valuetext","".concat(s.i18n.performLocalization(s.i18n.getLocalizer("seekBar.value")),": ").concat(Math.ceil(e)))},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),this.setAriaSliderMinMax("0","100");var i=this.getConfig(),r=n.getConfig().volumeController;i.hideOnMobile&&a.BrowserUtils.isMobile||i.hideIfVolumeControlProhibited&&!this.detectVolumeControlAvailability()?this.hide():(r.onChanged.subscribe(function(e,t){t.muted?(o.setVolumeAriaSliderValues(0),o.setPlaybackPosition(0)):(o.setPlaybackPosition(t.volume),o.setVolumeAriaSliderValues(t.volume))}),this.onSeek.subscribe(function(){o.volumeTransition=r.startTransition()}),this.onSeekPreview.subscribeRateLimited(this.updateVolumeWhileScrubbing,50),this.onSeeked.subscribe(function(e,t){o.volumeTransition&&o.volumeTransition.finish(t)}),t.on(t.exports.PlayerEvent.PlayerResized,function(){o.refreshPlaybackPosition()}),n.onConfigured.subscribe(function(){o.refreshPlaybackPosition()}),n.getConfig().events.onUpdated.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentShow.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentHide.subscribe(function(){o.refreshPlaybackPosition()}),r.onChangedEvent())},t.prototype.detectVolumeControlAvailability=function(){var e=document.createElement("video");return e.volume=.7,1!==e.volume},t.prototype.release=function(){e.prototype.release.call(this),this.onSeekPreview.unsubscribe(this.updateVolumeWhileScrubbing)},t}(r.SeekBar);t.VolumeSlider=l},6448:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioQualitySelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audioqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getAudioQuality().id)},r=function(){var e=t.getAvailableAudioQualities();o.clearItems(),o.addItem("auto",s.i18n.getLocalizer("auto"));for(var n=0,r=e;n<r.length;n++){var a=r[n];o.addItem(a.id,a.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setAudioQuality(n)}),t.on(t.exports.PlayerEvent.AudioChanged,r),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.AudioQualityChanged,i),t.exports.PlayerEvent.AudioQualityAdded&&(t.on(t.exports.PlayerEvent.AudioQualityAdded,r),t.on(t.exports.PlayerEvent.AudioQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t}(r.SelectBox);t.AudioQualitySelectBox=a},1886:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSelectBox=void 0;var r=n(7353),s=n(9367),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audiotrackselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.AudioTrackSwitchHandler(t,this,n)},t}(r.SelectBox);t.AudioTrackSelectBox=a},2963:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicSettingsPanelItem=void 0;var r=n(8248),s=n(5801),a=n(5277),l=n(1742),c=n(5856),u=n(8666),p=n(3177),f=n(8091),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSelectedItemChanged=function(){var e=n.settingComponent.getItemForKey(n.settingComponent.getSelectedItem());if(null!=e){var t=e.label;if(n.settingComponent instanceof a.SubtitleSelectBox){var o=n.settingComponent.getItems().length;t=s.i18n.performLocalization(t)+" ("+(o-1)+")"}n.selectedOptionLabel.setText(t)}else n.selectedOptionLabel.setText("-")},n.backNavigationRightComponent=t.backNavigationRightComponent,n.settingComponent=t.settingComponent,n.selectedOptionLabel=new r.Label({text:"-",for:n.getConfig().id,cssClasses:["ui-label-setting-selected-option"],labelStyle:r.LabelStyle.TextWithTrailingIcon}),n.config=n.mergeConfig(t,{components:[n.selectedOptionLabel],cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!1,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t,this.uimanager=n,null!=this.backNavigationRightComponent&&this.backNavigationRightComponent.configure(this.player,this.uimanager),null!=this.settingComponent&&this.settingComponent.configure(this.player,this.uimanager),this.settingComponent.onItemSelected.subscribe(this.handleSelectedItemChanged),this.handleSelectedItemChanged(),this.onClick.subscribe(function(){o.displayItemsSubPage()})},t.prototype.onLanguageChanged=function(){this.handleSelectedItemChanged()},t.prototype.buildSubPanelPage=function(){var e=this,t=this.settingComponent.getItems(),n=new u.SettingsPanelPage({removeOnPop:!0}),o=this.config.label,i=new p.SettingsPanelPageBackButton({text:o,container:this.config.container});i.configure(this.player,this.uimanager);var s=new l.SettingsPanelItem({label:i,settingComponent:this.backNavigationRightComponent,cssClasses:["title-item"],isSetting:!1});s.configure(this.player,this.uimanager),n.addComponent(s),t.map(function(t){return new c.SettingsPanelSelectOption({label:t.label,labelStyle:r.LabelStyle.TextWithLeadingIcon,settingComponent:e.settingComponent,settingsValue:t.key,addSettingAsComponent:!1})}).forEach(function(t){t.configure(e.player,e.uimanager),n.addComponent(t)}),n.configure(this.player,this.uimanager);var a=this.settingComponent;return a instanceof f.SubtitleSettingSelectBox&&(n.onActive.subscribe(function(){return a.overlay.enablePreviewSubtitleLabel()}),n.onInactive.subscribe(function(){return a.overlay.removePreviewSubtitleLabel()})),n},t.prototype.displayItemsSubPage=function(){var e=this.buildSubPanelPage();this.config.container.addPage(e),this.config.container.setActivePage(e)},t}(n(9800).InteractiveSettingsPanelItem);t.DynamicSettingsPanelItem=d},9800:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveSettingsPanelItem=void 0;var r=n(1742),s=n(938),a=n(6565),l=n(8151),c=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new s.EventDispatcher},n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){e.preventDefault(),e.stopPropagation(),o.onClickEvent()};this.getDomElement().on("click",i);var r=function(e){((0,a.getKeyMapForPlatform)()[e.keyCode]===l.Action.SELECT||["Enter"," "].includes(e.key)||["Enter","Space"].includes(e.code))&&i(e)};this.onFocusedChanged.subscribe(function(e,t){t.focused?o.getDomElement().on("keydown",r):o.getDomElement().off("keydown",r)})},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.SettingsPanelItem);t.InteractiveSettingsPanelItem=c},9523:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackSpeedSelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.defaultPlaybackSpeeds=[.25,.5,1,1.5,2],n.config=n.mergeConfig(t,{cssClasses:["ui-playbackspeedselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addDefaultItems(),this.onItemSelectionChanged.subscribe(function(e,n){t.setPlaybackSpeed(parseFloat(n))});var i=function(){var e=t.getPlaybackSpeed();o.setSpeed(e)};t.on(t.exports.PlayerEvent.PlaybackSpeedChanged,i),n.getConfig().events.onUpdated.subscribe(i)},t.prototype.setSpeed=function(e){this.selectItem(String(e))||(this.clearItems(),this.addDefaultItems([e]),this.selectItem(String(e)))},t.prototype.addDefaultItems=function(e){var t=this;void 0===e&&(e=[]),this.defaultPlaybackSpeeds.concat(e).sort().forEach(function(e){1!==e?t.addItem(String(e),"".concat(e,"x")):t.addItem(String(e),s.i18n.getLocalizer("normal"))})},t.prototype.clearItems=function(){this.items=[],this.selectedItem=null},t}(r.SelectBox);t.PlaybackSpeedSelectBox=a},7353:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectBox=void 0;var r=n(6541),s=n(323),a=n(5801),l=n(7395),c=n(5955),u=["mousemove","mouseenter","mouseleave","touchstart","touchmove","touchend","pointermove","click","keydown","keypress","keyup","blur"],p=["change","keyup","mouseup"],f=[["click",function(){return!0}],["keydown",function(e){return[" ","ArrowUp","ArrowDown"].includes(e.key)}],["mousedown",function(){return!0}]],d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.dropdownCloseListenerTimeoutId=0,n.removeDropdownCloseListeners=function(){},n.removeDropdownOpenedListeners=function(){},n.onChange=function(){var e=n.selectElement.val();n.onItemSelectedEvent(e,!1)},n.closeDropdown=function(){var e=n.getSelectElement();void 0!==e&&e.blur()},n.onPlayerStateChange=function(e,t){[l.PlayerUtils.PlayerState.Idle,l.PlayerUtils.PlayerState.Finished].includes(t)&&n.closeDropdown()},n.onDropdownOpened=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.dropdownCloseListenerTimeoutId=window.setTimeout(function(){return n.addDropdownCloseListeners()},100),n.onViewModeChangedEvent(c.ViewMode.Persistent)},n.onDropdownClosed=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.removeDropdownCloseListeners(),n.onViewModeChangedEvent(c.ViewMode.Temporary)},n.config=n.mergeConfig(t,{cssClass:"ui-selectbox"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.selectElement=new s.DOM("select",{id:this.config.id,class:this.getCssClasses(),"aria-label":a.i18n.performLocalization(this.config.ariaLabel)},this),this.onDisabled.subscribe(this.closeDropdown),this.onHide.subscribe(this.closeDropdown),this.addDropdownOpenedListeners(),this.updateDomItems(),this.selectElement.on("change",this.onChange),this.selectElement},t.prototype.configure=function(t,n){var o;e.prototype.configure.call(this,t,n),this.uiContainer=n.getUI(),null===(o=this.uiContainer)||void 0===o||o.onPlayerStateChange().subscribe(this.onPlayerStateChange),this.uiWrapperElement=n.uiWrapperElement},t.prototype.getSelectElement=function(){var e,t;return null===(t=null===(e=this.selectElement)||void 0===e?void 0:e.get())||void 0===t?void 0:t[0]},t.prototype.updateDomItems=function(e){if(void 0===e&&(e=null),void 0!==this.selectElement){this.selectElement.empty();for(var t=0,n=this.items;t<n.length;t++){var o=n[t],i=new s.DOM("option",{value:String(o.key)}).html(a.i18n.performLocalization(o.label));o.key===String(e)&&i.attr("selected","selected"),this.selectElement.append(i)}}},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.prototype.addDropdownCloseListeners=function(){var e=this;this.removeDropdownCloseListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId),u.forEach(function(t){return e.uiWrapperElement.on(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.on(t,e.onDropdownClosed,!0)}),this.removeDropdownCloseListeners=function(){u.forEach(function(t){return e.uiWrapperElement.off(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.off(t,e.onDropdownClosed,!0)})}},t.prototype.addDropdownOpenedListeners=function(){var e=this,t=[];this.removeDropdownOpenedListeners();for(var n=function(n,i){var r=function(t){i(t)&&e.onDropdownOpened()};t.push(function(){return e.selectElement.off(n,r,!0)}),o.selectElement.on(n,r,!0)},o=this,i=0,r=f;i<r.length;i++){var s=r[i];n(s[0],s[1])}this.removeDropdownOpenedListeners=function(){for(var e=0,n=t;e<n.length;e++)(0,n[e])()}},t.prototype.release=function(){e.prototype.release.call(this),this.removeDropdownCloseListeners(),this.removeDropdownOpenedListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId)},t}(r.ListSelector);t.SelectBox=d},4073:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanel=t.NavigationDirection=void 0;var r,s=n(1779),a=n(7353),l=n(3998),c=n(938),u=n(8666),p=n(6565),f=n(8151);!function(e){e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards"}(r||(t.NavigationDirection=r={}));var d=function(e){function t(t){var n=e.call(this,t)||this;return n.navigationStack=[],n.currentState=null,n.resetStateTimerId=null,n.shouldResetStateImmediately=!1,n.settingsPanelEvents={onSettingsStateChanged:new c.EventDispatcher,onActivePageChanged:new c.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel",hideDelay:5e3,pageTransitionAnimation:!0,stateResetDelay:5e3},n.config),n.activePage=n.getRootPage(),n.onActivePageChangedEvent(),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig();n.onControlsHide.subscribe(function(){return o.hideHoveredSelectBoxes()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return o.trackComponentViewMode(n)}),i.hideDelay>-1&&(this.hideTimeout=new l.Timeout(i.hideDelay,function(){o.hide(),o.hideHoveredSelectBoxes()}),this.getDomElement().on("mouseenter mousemove",function(){o.hideTimeout.reset()}),this.getDomElement().on("mouseleave",function(){o.hideTimeout.reset()}),this.getDomElement().on("focusin",function(){o.hideTimeout.clear()}),this.getDomElement().on("focusout",function(){o.hideTimeout.reset()})),i.pageTransitionAnimation&&t.on(t.exports.PlayerEvent.PlayerResized,function(){o.getDomElement().css({width:"",height:""})});var r=function(e){(0,p.getKeyMapForPlatform)()[e.keyCode]===f.Action.BACK&&(o.hide(),o.resetState())};this.onHide.subscribe(function(){o.shouldResetStateImmediately?(o.currentState=null,o.shouldResetStateImmediately=!1):(o.currentState=o.maybeSaveCurrentState(),null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),i.stateResetDelay>-1&&(o.resetStateTimerId=window.setTimeout(function(){return o.resetState()},i.stateResetDelay))),i.hideDelay>-1&&o.hideTimeout.clear(),o.activePage.onInactiveEvent(),document.removeEventListener("keyup",r)}),this.onShow.subscribe(function(){null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),null!==o.currentState?o.restoreNavigationState(o.currentState):o.updateActivePageClass(),o.activePage.onActiveEvent(),i.hideDelay>-1&&o.hideTimeout.start(),document.addEventListener("keyup",r)}),this.getRootPage().onSettingsStateChanged.subscribe(function(){o.onSettingsStateChangedEvent()}),n.onControlsHide.subscribe(function(){o.hide()}),n.onControlsShow.subscribe(function(){null!==o.currentState&&o.show()}),this.updateActivePageClass()},t.prototype.getActivePage=function(){return this.activePage},t.prototype.setActivePageIndex=function(e){this.setActivePage(this.getPages()[e])},t.prototype.setActivePage=function(e){e!==this.getActivePage()?this.navigateToPage(e,this.getActivePage(),r.Forwards,!this.config.pageTransitionAnimation):console.warn("Page is already the current one ... skipping navigation")},t.prototype.popToRootSettingsPanelPage=function(){this.resetNavigation(this.config.pageTransitionAnimation)},t.prototype.popSettingsPanelPage=function(){if(0!==this.navigationStack.length){var e=this.navigationStack[this.navigationStack.length-2];e||(e=this.getRootPage());var t=this.activePage;this.navigateToPage(e,this.activePage,r.Backwards,!this.config.pageTransitionAnimation),t.getConfig().removeOnPop&&(this.removeComponent(t),this.updateComponents())}else console.warn("Already on the root page ... skipping navigation")},t.prototype.rootPageHasActiveSettings=function(){return this.getRootPage().hasActiveSettings()},t.prototype.getPages=function(){return this.config.components.filter(function(e){return e instanceof u.SettingsPanelPage})},t.prototype.getRootPage=function(){return this.getPages()[0]},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onActivePageChanged",{get:function(){return this.settingsPanelEvents.onActivePageChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.hideAndReset=function(){this.shouldResetStateImmediately=!0,this.hide(),this.resetState()},t.prototype.release=function(){e.prototype.release.call(this),this.hideTimeout&&this.hideTimeout.clear()},t.prototype.addComponent=function(t){0===this.getPages().length&&t instanceof u.SettingsPanelPage&&(this.activePage=t,this.onActivePageChangedEvent()),e.prototype.addComponent.call(this,t)},t.prototype.addPage=function(e){this.addComponent(e),this.updateComponents()},t.prototype.suspendHideTimeout=function(){this.hideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.hideTimeout.resume(!0)},t.prototype.updateActivePageClass=function(){var e=this;this.getPages().forEach(function(n){n===e.activePage?n.getDomElement().addClass(e.prefixCss(t.CLASS_ACTIVE_PAGE)):n.getDomElement().removeClass(e.prefixCss(t.CLASS_ACTIVE_PAGE))})},t.prototype.resetNavigation=function(e){var t=this.getActivePage(),n=this.getRootPage();t&&(e||t.onInactiveEvent()),this.navigationStack=[],this.animateNavigation(n,t,e),this.activePage=n,this.updateActivePageClass(),this.onActivePageChangedEvent()},Object.defineProperty(t.prototype,"wrapperScrollTop",{get:function(){var e,t;return null!==(t=null===(e=this.innerContainerElement.get(0))||void 0===e?void 0:e.scrollTop)&&void 0!==t?t:0},set:function(e){var t=this.innerContainerElement.get(0);t&&(t.scrollTop=e)},enumerable:!1,configurable:!0}),t.prototype.resetState=function(){this.activePage=this.getRootPage(),this.navigationStack=[],this.currentState=null,this.resetStateTimerId=null,this.isHidden()&&this.getDomElement().css({width:"",height:""})},t.prototype.buildCurrentState=function(){var e=this.getPages();return{activePageIndex:e.indexOf(this.getActivePage()),navigationStackIndices:this.navigationStack.map(function(t){return e.indexOf(t)}),scrollTop:this.getDomElement().get(0).scrollTop,wrapperScrollTop:this.wrapperScrollTop}},t.prototype.isDefaultPanelState=function(){var e,t=this.getDomElement().get(0),n=this.getActivePage()===this.getRootPage(),o=0===this.navigationStack.length,i=0===(null!==(e=null==t?void 0:t.scrollTop)&&void 0!==e?e:0)&&0===this.wrapperScrollTop;return n&&o&&i},t.prototype.maybeSaveCurrentState=function(){return this.isDefaultPanelState()?null:this.buildCurrentState()},t.prototype.restoreNavigationState=function(e){var t,n=this.getPages();this.activePage=null!==(t=n[e.activePageIndex])&&void 0!==t?t:this.getRootPage(),this.navigationStack=e.navigationStackIndices.map(function(e){return n[e]}).filter(Boolean),this.updateActivePageClass(),this.onActivePageChangedEvent(),this.activePage.onActiveEvent(),this.getDomElement().get(0).scrollTop=e.scrollTop,this.wrapperScrollTop=e.wrapperScrollTop},t.prototype.navigateToPage=function(e,t,n,o){this.activePage=e,n===r.Forwards?this.navigationStack.push(e):this.navigationStack.pop(),this.animateNavigation(e,t,o),this.updateActivePageClass(),t.onInactiveEvent(),e.onActiveEvent(),this.onActivePageChangedEvent()},t.prototype.animateNavigation=function(e,t,n){if(this.config.pageTransitionAnimation){var o=this.getDomElement(),i=this.getDomElement().get(0),r=i.scrollWidth,s=i.scrollHeight;t.getDomElement().css("display","none"),this.getDomElement().css({width:"",height:""});var a=e.getDomElement().get(0),l=a.cloneNode(!0);a.parentNode.appendChild(l),l.style.display="block";var c=i.scrollWidth,u=i.scrollHeight;l.parentElement.removeChild(l),t.getDomElement().css("display",""),o.css({width:r+"px",height:s+"px"}),n||this.forceBrowserReflow(),o.css({width:c+"px",height:u+"px"})}},t.prototype.forceBrowserReflow=function(){this.getDomElement().get(0).offsetLeft},t.prototype.hideHoveredSelectBoxes=function(){this.getComputedItems().map(function(e){return e.settingComponent}).filter(function(e){return e instanceof a.SelectBox}).forEach(function(e){return e.closeDropdown()})},t.prototype.getComputedItems=function(){for(var e=[],t=0,n=this.getPages();t<n.length;t++){var o=n[t];e.push.apply(e,o.getItems())}return e},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelEvents.onSettingsStateChanged.dispatch(this)},t.prototype.onActivePageChangedEvent=function(){this.settingsPanelEvents.onActivePageChanged.dispatch(this)},t.CLASS_ACTIVE_PAGE="active",t}(s.Container);t.SettingsPanel=d},1742:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelItem=void 0;var r=n(1779),s=n(5955),a=n(938),l=n(8248),c=n(6441),u=n(6448),p=n(9523),f=n(6541),d=function(e){function t(t){var n=e.call(this,t)||this;n.settingsPanelItemEvents={onActiveChanged:new a.EventDispatcher},n.settingComponent=t.settingComponent,n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!0,isSetting:!0,labelStyle:l.LabelStyle.Text},n.config);var o=t.label;return null!==o&&(o instanceof s.Component?n.label=o:n.label=new l.Label({text:o,labelStyle:t.labelStyle}),n.addComponent(n.label)),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),null!=this.settingComponent&&this.config.addSettingAsComponent&&(this.addComponent(this.settingComponent),this.updateComponents()),this.settingComponent instanceof f.ListSelector){var i=function(){if(o.settingComponent instanceof f.ListSelector){var e=2;(o.settingComponent instanceof c.VideoQualitySelectBox&&o.settingComponent.hasAutoItem()||o.settingComponent instanceof u.AudioQualitySelectBox)&&(e=3),o.settingComponent.itemCount()<e||o.settingComponent instanceof p.PlaybackSpeedSelectBox&&!n.getConfig().playbackSpeedSelectionEnabled?o.hide():o.show(),o.onActiveChangedEvent(),o.getDomElement().attr("aria-haspopup","true")}};this.settingComponent.onItemAdded.subscribe(i),this.settingComponent.onItemRemoved.subscribe(i),i()}},t.prototype.onLanguageChanged=function(){this.label instanceof l.Label&&"function"==typeof this.config.label&&this.label.setText(this.config.label)},t.prototype.isActive=function(){return this.isShown()},t.prototype.onActiveChangedEvent=function(){this.settingsPanelItemEvents.onActiveChanged.dispatch(this)},Object.defineProperty(t.prototype,"onActiveChanged",{get:function(){return this.settingsPanelItemEvents.onActiveChanged.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.SettingsPanelItem=d},8666:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPage=void 0;var r=n(1779),s=n(1742),a=n(938),l=n(5256),c=n(9800),u=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsPanelPageEvents={onSettingsStateChanged:new a.EventDispatcher,onActive:new a.EventDispatcher,onInactive:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-page",role:"menu",removeOnPop:!1},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);for(var r=function(){i.onSettingsStateChangedEvent();for(var e=null,n=0,o=i.getItems();n<o.length;n++){var r=o[n];r.getDomElement().removeClass(i.prefixCss(t.CLASS_LAST)),r.isShown()&&(e=r)}e&&e.getDomElement().addClass(i.prefixCss(t.CLASS_LAST))},s=0,a=this.getItems();s<a.length;s++)a[s].onActiveChanged.subscribe(r)},t.prototype.hasActiveSettings=function(){for(var e=0,t=this.getItems();e<t.length;e++){var n=t[e];if(n.getConfig().isSetting&&n.isActive())return!0}return!1},t.prototype.getItems=function(){return this.config.components.filter(function(e){return e instanceof s.SettingsPanelItem})},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelPageEvents.onSettingsStateChanged.dispatch(this)},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelPageEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onActiveEvent=function(){var e=this.getItems().filter(function(e){return e.isActive()&&e.getConfig().isSetting});this.settingsPanelPageEvents.onActive.dispatch(this),!(e.length>0)||l.BrowserUtils.isIOS||l.BrowserUtils.isMacIntel&&l.BrowserUtils.isTouchSupported||(e[0]instanceof c.InteractiveSettingsPanelItem?e[0].getDomElement().get(0).focus():e[0].getDomElement().focusToFirstInput())},Object.defineProperty(t.prototype,"onActive",{get:function(){return this.settingsPanelPageEvents.onActive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onInactiveEvent=function(){this.settingsPanelPageEvents.onInactive.dispatch(this)},Object.defineProperty(t.prototype,"onInactive",{get:function(){return this.settingsPanelPageEvents.onInactive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.addSettingsPanelItem=function(e){this.addComponent(e),this.updateComponents()},t.prototype.removeSettingsPanelItem=function(e){this.removeComponent(e),this.updateComponents()},t.CLASS_LAST="last",t}(r.Container);t.SettingsPanelPage=u},3177:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageBackButton=void 0;var r=n(8297),s=n(5801),a=n(9404),l=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settingspanelpagebackbutton",text:s.i18n.getLocalizer("back"),buttonStyle:a.ButtonStyle.TextWithLeadingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){o.popPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageBackButton=l},8297:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageNavigatorButton=void 0;var r=n(9404),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{buttonStyle:r.ButtonStyle.Text},n.config),n.container=n.config.container,n.targetPage=n.config.targetPage,n}return i(t,e),t.prototype.popPage=function(){this.container.popSettingsPanelPage()},t.prototype.pushTargetPage=function(){this.container.setActivePage(this.targetPage)},t}(r.Button);t.SettingsPanelPageNavigatorButton=s},8902:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageOpenButton=void 0;var r=n(8297),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:s.i18n.getLocalizer("settings.subtitles.options"),role:"menuitem"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.getDomElement().attr("aria-haspopup","true"),this.getDomElement().attr("aria-owns",this.config.targetPage.getConfig().id),this.onClick.subscribe(function(){o.pushTargetPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageOpenButton=a},5856:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelSelectOption=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsValue=t.settingsValue,n.config=n.mergeConfig(t,{cssClasses:["ui-settings-panel-item-select-option"],role:"menuitem",tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=o.settingComponent.getSelectedItem();o.settingsValue===e?o.getDomElement().addClass(o.prefixCss("selected")):o.getDomElement().removeClass(o.prefixCss("selected"))};this.settingComponent.onItemSelected.subscribe(i),this.onClick.subscribe(function(){o.settingComponent.dispatchItemSelectionChanged(o.settingsValue)}),i()},t}(n(9800).InteractiveSettingsPanelItem);t.SettingsPanelSelectOption=r},739:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToggleButton=void 0;var r=n(2572),s=n(4073),a=n(1971),l=n(5801),c=function(e){function t(t){var n=e.call(this,t)||this;if(n.visibleSettingsPanels=[],!t.settingsPanel)throw new Error("Required SettingsPanel is missing");return n.config=n.mergeConfig(t,{cssClass:"ui-settingstogglebutton",text:l.i18n.getLocalizer("settings"),settingsPanel:null,autoHideWhenNoActiveSettings:!0,role:"pop-up button"},n.config),n.getDomElement().attr("aria-owns",t.settingsPanel.getActivePage().getConfig().id),n.getDomElement().attr("aria-haspopup","true"),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=i.settingsPanel;if(this.onClick.subscribe(function(){r.isShown()||o.visibleSettingsPanels.slice().forEach(function(e){return e.hide()}),r.toggleHidden()}),r.onShow.subscribe(function(){o.on()}),r.onHide.subscribe(function(){o.off()}),n.onComponentShow.subscribe(function(e){e instanceof s.SettingsPanel&&(o.visibleSettingsPanels.push(e),e.onHide.subscribeOnce(function(){return a.ArrayUtils.remove(o.visibleSettingsPanels,e)}))}),i.autoHideWhenNoActiveSettings){var l=function(){r.rootPageHasActiveSettings()?o.isHidden()&&o.show():o.isShown()&&o.hide()};r.onSettingsStateChanged.subscribe(l),l()}},t}(r.ToggleButton);t.SettingsToggleButton=c},5277:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSelectBox=void 0;var s=n(7353),a=n(1436),l=n(5801),c=function(e){function t(t){void 0===t&&(t={});var n=this,o=t.comparator?function(e,n){return e.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY&&n.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?0:e.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?-1:n.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?1:t.comparator(e,n)}:void 0;return(n=e.call(this,r(r({},t),{comparator:o}))||this).config=n.mergeConfig(r(r({},t),{comparator:o}),{cssClasses:["ui-subtitleselectbox"],ariaLabel:l.i18n.getLocalizer("subtitle.select")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.SubtitleSwitchHandler(t,this,n)},t}(s.SelectBox);t.SubtitleSelectBox=c},6441:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoQualitySelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-videoqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getVideoQuality().id)},r=function(){var e=t.getAvailableVideoQualities();o.clearItems(),o.hasAuto="progressive"!==t.getStreamType(),o.hasAuto&&o.addItem("auto",s.i18n.getLocalizer("auto"));for(var n=0,r=e;n<r.length;n++){var a=r[n];o.addItem(a.id,a.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setVideoQuality(n)}),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.VideoQualityChanged,i),t.exports.PlayerEvent.VideoQualityAdded&&(t.on(t.exports.PlayerEvent.VideoQualityAdded,r),t.on(t.exports.PlayerEvent.VideoQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t.prototype.hasAutoItem=function(){return this.hasAuto},t}(r.SelectBox);t.VideoQualitySelectBox=a},66:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.value=t}),this.settingsManager.backgroundColor.onChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.isSet()?o.settingsManager.backgroundOpacity.isSet()||(o.settingsManager.backgroundOpacity.value="100"):o.settingsManager.backgroundOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundColor.isSet()&&(this.selectItem(this.settingsManager.backgroundColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.backgroundColor.isSet()&&this.settingsManager.backgroundOpacity.isSet()?this.toggleOverlayClass("bgcolor-"+this.settingsManager.backgroundColor.value+this.settingsManager.backgroundOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.BackgroundColorSelectBox=a},2492:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundOpacity.value=t,o.settingsManager.backgroundOpacity.isSet()?o.settingsManager.backgroundColor.isSet()||(o.settingsManager.backgroundColor.value="black"):o.settingsManager.backgroundColor.clear()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundOpacity.isSet()&&this.selectItem(this.settingsManager.backgroundOpacity.value)},t}(r.SubtitleSettingSelectBox);t.BackgroundOpacitySelectBox=a},6894:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-character-edge-color-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdgeColor.value=t,o.settingsManager.characterEdgeColor.isSet()?o.settingsManager.characterEdge.isSet()||(o.settingsManager.characterEdge.value="uniform"):o.settingsManager.characterEdge.clear()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdgeColor.isSet()&&this.selectItem(this.settingsManager.characterEdgeColor.value)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeColorSelectBox=a},5029:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingscharacteredgeselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("raised",s.i18n.getLocalizer("settings.subtitles.characterEdge.raised")),this.addItem("depressed",s.i18n.getLocalizer("settings.subtitles.characterEdge.depressed")),this.addItem("uniform",s.i18n.getLocalizer("settings.subtitles.characterEdge.uniform")),this.addItem("dropshadowed",s.i18n.getLocalizer("settings.subtitles.characterEdge.dropshadowed")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdge.value=t}),this.settingsManager.characterEdge.onChanged.subscribe(function(e,t){o.settingsManager.characterEdge.isSet()?o.settingsManager.characterEdgeColor.isSet()||(o.settingsManager.characterEdgeColor.value="black"):o.settingsManager.characterEdgeColor.clear(),o.selectItem(t.value),o.setColorAndEdgeType()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(){o.setColorAndEdgeType()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdge.isSet()&&(this.selectItem(this.settingsManager.characterEdge.value),this.setColorAndEdgeType())},t.prototype.setColorAndEdgeType=function(){this.settingsManager.characterEdge.isSet()&&this.settingsManager.characterEdgeColor.isSet()?this.toggleOverlayClass("characteredge-"+this.settingsManager.characterEdge.value+"-"+this.settingsManager.characterEdgeColor.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeSelectBox=a},3395:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontColor.value=t}),this.settingsManager.fontColor.onChanged.subscribe(function(e,t){o.settingsManager.fontColor.isSet()?o.settingsManager.fontOpacity.isSet()||(o.settingsManager.fontOpacity.value="100"):o.settingsManager.fontOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontColor.isSet()&&(this.selectItem(this.settingsManager.fontColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.fontColor.isSet()&&this.settingsManager.fontOpacity.isSet()?this.toggleOverlayClass("fontcolor-"+this.settingsManager.fontColor.value+this.settingsManager.fontOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.FontColorSelectBox=a},5602:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontFamilySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontfamilyselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("monospacedserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedserif")),this.addItem("proportionalserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalserif")),this.addItem("monospacedsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedsansserif")),this.addItem("proportionalsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalsansserif")),this.addItem("casual",s.i18n.getLocalizer("settings.subtitles.font.family.casual")),this.addItem("cursive",s.i18n.getLocalizer("settings.subtitles.font.family.cursive")),this.addItem("smallcapital",s.i18n.getLocalizer("settings.subtitles.font.family.smallcapital")),this.settingsManager.fontFamily.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontfamily-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontFamily.value=t}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontFamily.isSet()&&(this.selectItem(this.settingsManager.fontFamily.value),this.toggleOverlayClass("fontfamily-"+this.settingsManager.fontFamily.value))},t}(r.SubtitleSettingSelectBox);t.FontFamilySelectBox=a},6501:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontOpacity.value=t,o.settingsManager.fontOpacity.isSet()?o.settingsManager.fontColor.isSet()||(o.settingsManager.fontColor.value="white"):o.settingsManager.fontColor.clear()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontOpacity.isSet()&&this.selectItem(this.settingsManager.fontOpacity.value)},t}(r.SubtitleSettingSelectBox);t.FontOpacitySelectBox=a},509:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontsizeselectbox"]},n.config),n}return i(t,e),t.prototype.getFontSizeOptions=function(){return[{key:null,label:s.i18n.getLocalizer("default")},{key:"50",label:s.i18n.getLocalizer("percent",{value:50})},{key:"75",label:s.i18n.getLocalizer("percent",{value:75})},{key:"100",label:s.i18n.getLocalizer("percent",{value:100})},{key:"150",label:s.i18n.getLocalizer("percent",{value:150})},{key:"200",label:s.i18n.getLocalizer("percent",{value:200})},{key:"300",label:s.i18n.getLocalizer("percent",{value:300})},{key:"400",label:s.i18n.getLocalizer("percent",{value:400})}]},t.prototype.populateItemsWithFilter=function(){this.clearItems();for(var e=0,t=this.getFontSizeOptions();e<t.length;e++){var n=t[e];this.config.filter&&!this.config.filter(n)||this.addItem(n.key,n.label)}this.settingsManager.fontSize.isSet()&&this.selectItem(this.settingsManager.fontSize.value)},t.prototype.reapplyFilterAndReload=function(){this.populateItemsWithFilter()},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager.fontSize.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontsize-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontSize.value=t}),this.onShow.subscribe(function(){o.populateItemsWithFilter()}),this.populateItemsWithFilter(),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontSize.isSet()&&this.toggleOverlayClass("fontsize-"+this.settingsManager.fontSize.value)},t}(r.SubtitleSettingSelectBox);t.FontSizeSelectBox=a},1321:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-font-style-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("italic",s.i18n.getLocalizer("settings.subtitles.font.style.italic")),this.addItem("bold",s.i18n.getLocalizer("settings.subtitles.font.style.bold")),null===(o=this.settingsManager)||void 0===o||o.fontStyle.onChanged.subscribe(function(e,t){t.isSet()?i.toggleOverlayClass("fontstyle-"+t.value):i.toggleOverlayClass(null),i.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){i.settingsManager&&(i.settingsManager.fontStyle.value=t)}),this.initFromSettings()},t.prototype.initFromSettings=function(){var e;(null===(e=this.settingsManager)||void 0===e?void 0:e.fontStyle.isSet())&&(this.selectItem(this.settingsManager.fontStyle.value),this.toggleOverlayClass("fontstyle-"+this.settingsManager.fontStyle.value))},t}(r.SubtitleSettingSelectBox);t.FontStyleSelectBox=a},8091:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingSelectBox=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.overlay=t.overlay,n}return i(t,e),t.prototype.toggleOverlayClass=function(e){this.currentCssClass&&(this.overlay.getDomElement().removeClass(this.currentCssClass),this.currentCssClass=null),e&&(this.currentCssClass=this.prefixCss(e),this.overlay.getDomElement().addClass(this.currentCssClass))},t.prototype.configure=function(e,t){this.settingsManager=t.getSubtitleSettingsManager()},t}(n(7353).SelectBox);t.SubtitleSettingSelectBox=r},8634:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsPanelPage=void 0;var r=n(8666),s=n(509),a=n(5602),l=n(3395),c=n(6501),u=n(5029),p=n(66),f=n(2492),d=n(5710),g=n(9008),h=n(3504),v=n(3177),y=n(1742),m=n(5801),b=n(2963),C=n(1321),S=n(6894),P=function(e){function t(t){var n=e.call(this,t)||this;n.overlay=t.overlay,n.settingsPanel=t.settingsPanel;var o=[n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.size"),new s.FontSizeSelectBox({overlay:n.overlay,filter:function(e){return n.overlay.filterFontSizeOptions(e)}}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.style"),new C.FontStyleSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.family"),new a.FontFamilySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.color"),new l.FontColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.opacity"),new c.FontOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge"),new u.CharacterEdgeSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge.color"),new S.CharacterEdgeColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.color"),new p.BackgroundColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.opacity"),new f.BackgroundOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.color"),new d.WindowColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.opacity"),new g.WindowOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem)],i=new y.SettingsPanelItem({label:new v.SettingsPanelPageBackButton({container:n.settingsPanel}),settingComponent:new h.SubtitleSettingsResetButton({}),cssClasses:["title-item"],isSetting:!1});return t.useDynamicSettingsPanelItem?o.unshift(i):o.push(i),n.config=n.mergeConfig(t,{components:o},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onActive.subscribe(function(){o.overlay.enablePreviewSubtitleLabel();var e=o.getComponents().find(function(e){return e instanceof y.SettingsPanelItem&&e.getComponents().some(function(e){return e instanceof s.FontSizeSelectBox})});if(e){var t=e.getComponents().find(function(e){return e instanceof s.FontSizeSelectBox});null==t||t.reapplyFilterAndReload()}}),this.onInactive.subscribe(function(){o.overlay.removePreviewSubtitleLabel()})},t.prototype.buildSettingsPanelItem=function(e,t,n){return void 0===n&&(n=!1),n?new b.DynamicSettingsPanelItem({label:e,settingComponent:t,container:this.settingsPanel}):new y.SettingsPanelItem({label:e,settingComponent:t})},t}(r.SettingsPanelPage);t.SubtitleSettingsPanelPage=P},3504:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsResetButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:s.i18n.getLocalizer("reset"),buttonStyle:r.ButtonStyle.Text},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager=n.getSubtitleSettingsManager(),this.onClick.subscribe(function(){o.settingsManager.reset()})},t}(r.Button);t.SubtitleSettingsResetButton=a},5710:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowColor.value=t}),this.settingsManager.windowColor.onChanged.subscribe(function(e,t){o.settingsManager.windowColor.isSet()?o.settingsManager.windowOpacity.isSet()||(o.settingsManager.windowOpacity.value="100"):o.settingsManager.windowOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowColor.isSet()&&(this.selectItem(this.settingsManager.windowColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.windowColor.isSet()&&this.settingsManager.windowOpacity.isSet()?this.toggleOverlayClass("windowcolor-"+this.settingsManager.windowColor.value+this.settingsManager.windowOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.WindowColorSelectBox=a},9008:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowOpacity.value=t,o.settingsManager.windowOpacity.isSet()?o.settingsManager.windowColor.isSet()||(o.settingsManager.windowColor.value="black"):o.settingsManager.windowColor.clear()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowOpacity.isSet()&&this.selectItem(this.settingsManager.windowOpacity.value)},t}(r.SubtitleSettingSelectBox);t.WindowOpacitySelectBox=a},5801:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.I18n=t.defaultVocabularies=void 0;var i=n(8922),r=n(7698),s=n(6897),a=n(1977),l=n(2995),c=n(7769),u=n(938);t.defaultVocabularies={de:i,en:r,es:s,fr:a,nl:l,pt:c};var p={language:"en",vocabularies:t.defaultVocabularies,events:{onLanguageChanged:new u.EventDispatcher}},f=function(){function e(e){this.setConfig(e)}return e.prototype.setConfig=function(t){this.config=o(o({},p),t);var n="auto"===this.config.language;this.vocabularies=this.mergeVocabulariesWithDefaultVocabularies(this.config.vocabularies),this.initializeLanguage(this.config.language,n,this.vocabularies),this.defaultLanguage=this.resolveDefaultLanguage(this.language),e.containsLanguage(this.vocabularies,this.language)||(this.language=this.defaultLanguage),this.initializeVocabulary(this.vocabularies)},e.prototype.getConfig=function(){return this.config},e.prototype.setLanguage=function(t){var n=this.language;e.containsLanguage(this.vocabularies,t)?this.language=t:e.containsLanguage(this.vocabularies,t.slice(0,2))?this.language=t.slice(0,2):this.language=this.defaultLanguage,this.initializeVocabulary(this.vocabularies),this.language!==n&&this.config.events.onLanguageChanged.dispatch(this,{newLanguage:this.language,oldLanguage:n})},e.containsLanguage=function(e,t){return e.hasOwnProperty(t)},e.prototype.resolveDefaultLanguage=function(t){if(e.containsLanguage(this.vocabularies,t))return t;if(e.containsLanguage(this.vocabularies,"en"))return"en";var n=Object.keys(this.vocabularies);return n.length>0?n[0]:"en"},e.prototype.mergeVocabulariesWithDefaultVocabularies=function(n){void 0===n&&(n={});var i=o(o({},t.defaultVocabularies),n);return Object.keys(i).reduce(function(r,s){var a,l=i[s];return e.containsLanguage(t.defaultVocabularies,s)&&e.containsLanguage(n,s)&&(l=o(o({},t.defaultVocabularies[s]),n[s])),o(o({},r),((a={})[s]=l,a))},{})},e.prototype.initializeLanguage=function(t,n,o){if(n){var i=window.navigator.language;if(e.containsLanguage(o,i))return void(this.language=i);var r=i.slice(0,2);if(e.containsLanguage(o,r))return void(this.language=r)}this.language=t},e.prototype.initializeVocabulary=function(e){this.vocabulary=["en",this.language].reduce(function(t,n){return o(o({},t),e[n]||{})},{})},e.prototype.replaceVariableWithPlaceholderIfExists=function(e,t){var n=e.match(new RegExp("{[a-zA-Z0-9]+}","g"));return 0===n.length?e:n.map(function(e){return{match:e,key:e.slice(1,-1)}}).reduce(function(e,n){var o=n.key,i=n.match;return t.hasOwnProperty(o)?e.replace(i,t[o]):e},e)},e.prototype.getLocalizer=function(e,t){var n=this;return function(){if(null!=e){var o=n.vocabulary[e];return null==o&&(o=e),null!=t&&(o=n.replaceVariableWithPlaceholderIfExists(o,t)),o}}},e.prototype.performLocalization=function(e){return"function"==typeof e?e():e},e}();t.I18n=f,t.i18n=new f(p)},4878:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarLabel=t.RecommendationItem=t.RecommendationOverlay=t.ErrorMessageOverlay=t.ViewMode=t.Component=t.CastToggleButton=t.CastStatusOverlay=t.AudioTrackSelectBox=t.AudioQualitySelectBox=t.LabelStyle=t.Label=t.Container=t.UIContainer=t.Watermark=t.VRToggleButton=t.VolumeToggleButton=t.VideoQualitySelectBox=t.ToggleButton=t.SettingsToggleButton=t.NavigationDirection=t.SettingsPanel=t.ItemSelectionList=t.SelectBox=t.SeekBar=t.PlaybackToggleButton=t.PlaybackTimeLabelMode=t.PlaybackTimeLabel=t.HugePlaybackToggleButton=t.FullscreenToggleButton=t.ControlBar=t.ButtonStyle=t.Button=t.SettingsPanelNavigationGroupConfig=t.SettingsPanelNavigationGroup=t.RootNavigationGroup=t.NavigationGroup=t.SpatialNavigation=t.I18n=t.i18n=t.ShadowDomManager=t.ErrorUtils=t.StorageUtils=t.BrowserUtils=t.UIUtils=t.PlayerUtils=t.StringUtils=t.ArrayUtils=t.UIFactory=t.version=void 0,t.EcoModeToggleButton=t.EcoModeContainer=t.DismissClickOverlay=t.Icon=t.AdStatusOverlay=t.ListSelector=t.QuickSeekButton=t.ReplayButton=t.DynamicSettingsPanelItem=t.SettingsPanelItem=t.SubtitleSettingsPanelPage=t.SettingsPanelPageOpenButton=t.SettingsPanelPageBackButton=t.SettingsPanelPage=t.AudioTrackListBox=t.SubtitleListBox=t.ListBox=t.SubtitleSettingsResetButton=t.WindowOpacitySelectBox=t.WindowColorSelectBox=t.SubtitleSettingSelectBox=t.FontSizeSelectBox=t.FontOpacitySelectBox=t.FontFamilySelectBox=t.FontColorSelectBox=t.CharacterEdgeSelectBox=t.BackgroundOpacitySelectBox=t.BackgroundColorSelectBox=t.Spacer=t.PictureInPictureToggleButton=t.VolumeSlider=t.AirPlayToggleButton=t.MetadataLabelContent=t.MetadataLabel=t.CloseButton=t.PlaybackToggleOverlay=t.CastUIContainer=t.BufferingOverlay=t.HugeReplayButton=t.PlaybackSpeedSelectBox=t.AdCounterLabel=t.AdClickOverlay=t.AdMessageLabel=t.AdControlBar=t.AdSkipButton=t.ClickOverlay=t.VolumeControlButton=t.TitleBar=t.SubtitleSelectBox=t.SubtitleOverlay=void 0,t.FontStyleSelectBox=t.CharacterEdgeColorSelectBox=t.TouchControlOverlay=t.InteractiveSettingsPanelItem=t.SettingsPanelPageNavigatorButton=t.SettingsPanelSelectOption=t.SmallCenteredPlaybackToggleButton=t.TvNoiseCanvas=void 0,t.version="4.15.1",i(n(1758),t),i(n(3423),t);var r=n(7247);Object.defineProperty(t,"UIFactory",{enumerable:!0,get:function(){return r.UIFactory}});var s=n(1971);Object.defineProperty(t,"ArrayUtils",{enumerable:!0,get:function(){return s.ArrayUtils}});var a=n(1823);Object.defineProperty(t,"StringUtils",{enumerable:!0,get:function(){return a.StringUtils}});var l=n(7395);Object.defineProperty(t,"PlayerUtils",{enumerable:!0,get:function(){return l.PlayerUtils}});var c=n(3226);Object.defineProperty(t,"UIUtils",{enumerable:!0,get:function(){return c.UIUtils}});var u=n(5256);Object.defineProperty(t,"BrowserUtils",{enumerable:!0,get:function(){return u.BrowserUtils}});var p=n(8919);Object.defineProperty(t,"StorageUtils",{enumerable:!0,get:function(){return p.StorageUtils}});var f=n(2414);Object.defineProperty(t,"ErrorUtils",{enumerable:!0,get:function(){return f.ErrorUtils}});var d=n(7682);Object.defineProperty(t,"ShadowDomManager",{enumerable:!0,get:function(){return d.ShadowDomManager}});var g=n(5801);Object.defineProperty(t,"i18n",{enumerable:!0,get:function(){return g.i18n}}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return g.I18n}});var h=n(7776);Object.defineProperty(t,"SpatialNavigation",{enumerable:!0,get:function(){return h.SpatialNavigation}});var v=n(2703);Object.defineProperty(t,"NavigationGroup",{enumerable:!0,get:function(){return v.NavigationGroup}});var y=n(4487);Object.defineProperty(t,"RootNavigationGroup",{enumerable:!0,get:function(){return y.RootNavigationGroup}});var m=n(6250);Object.defineProperty(t,"SettingsPanelNavigationGroup",{enumerable:!0,get:function(){return m.SettingsPanelNavigationGroup}}),Object.defineProperty(t,"SettingsPanelNavigationGroupConfig",{enumerable:!0,get:function(){return m.SettingsPanelNavigationGroupConfig}});var b=n(9404);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return b.Button}}),Object.defineProperty(t,"ButtonStyle",{enumerable:!0,get:function(){return b.ButtonStyle}});var C=n(9052);Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return C.ControlBar}});var S=n(2717);Object.defineProperty(t,"FullscreenToggleButton",{enumerable:!0,get:function(){return S.FullscreenToggleButton}});var P=n(958);Object.defineProperty(t,"HugePlaybackToggleButton",{enumerable:!0,get:function(){return P.HugePlaybackToggleButton}});var w=n(9024);Object.defineProperty(t,"PlaybackTimeLabel",{enumerable:!0,get:function(){return w.PlaybackTimeLabel}}),Object.defineProperty(t,"PlaybackTimeLabelMode",{enumerable:!0,get:function(){return w.PlaybackTimeLabelMode}});var E=n(4617);Object.defineProperty(t,"PlaybackToggleButton",{enumerable:!0,get:function(){return E.PlaybackToggleButton}});var O=n(9819);Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return O.SeekBar}});var _=n(7353);Object.defineProperty(t,"SelectBox",{enumerable:!0,get:function(){return _.SelectBox}});var k=n(7725);Object.defineProperty(t,"ItemSelectionList",{enumerable:!0,get:function(){return k.ItemSelectionList}});var T=n(4073);Object.defineProperty(t,"SettingsPanel",{enumerable:!0,get:function(){return T.SettingsPanel}}),Object.defineProperty(t,"NavigationDirection",{enumerable:!0,get:function(){return T.NavigationDirection}});var x=n(739);Object.defineProperty(t,"SettingsToggleButton",{enumerable:!0,get:function(){return x.SettingsToggleButton}});var A=n(2572);Object.defineProperty(t,"ToggleButton",{enumerable:!0,get:function(){return A.ToggleButton}});var L=n(6441);Object.defineProperty(t,"VideoQualitySelectBox",{enumerable:!0,get:function(){return L.VideoQualitySelectBox}});var M=n(5110);Object.defineProperty(t,"VolumeToggleButton",{enumerable:!0,get:function(){return M.VolumeToggleButton}});var I=n(4200);Object.defineProperty(t,"VRToggleButton",{enumerable:!0,get:function(){return I.VRToggleButton}});var B=n(1942);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return B.Watermark}});var D=n(6233);Object.defineProperty(t,"UIContainer",{enumerable:!0,get:function(){return D.UIContainer}});var j=n(1779);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return j.Container}});var U=n(8248);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return U.Label}}),Object.defineProperty(t,"LabelStyle",{enumerable:!0,get:function(){return U.LabelStyle}});var R=n(6448);Object.defineProperty(t,"AudioQualitySelectBox",{enumerable:!0,get:function(){return R.AudioQualitySelectBox}});var F=n(1886);Object.defineProperty(t,"AudioTrackSelectBox",{enumerable:!0,get:function(){return F.AudioTrackSelectBox}});var H=n(2691);Object.defineProperty(t,"CastStatusOverlay",{enumerable:!0,get:function(){return H.CastStatusOverlay}});var z=n(1291);Object.defineProperty(t,"CastToggleButton",{enumerable:!0,get:function(){return z.CastToggleButton}});var V=n(5955);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return V.Component}}),Object.defineProperty(t,"ViewMode",{enumerable:!0,get:function(){return V.ViewMode}});var N=n(823);Object.defineProperty(t,"ErrorMessageOverlay",{enumerable:!0,get:function(){return N.ErrorMessageOverlay}});var W=n(9529);Object.defineProperty(t,"RecommendationOverlay",{enumerable:!0,get:function(){return W.RecommendationOverlay}});var G=n(2806);Object.defineProperty(t,"RecommendationItem",{enumerable:!0,get:function(){return G.RecommendationItem}});var K=n(7273);Object.defineProperty(t,"SeekBarLabel",{enumerable:!0,get:function(){return K.SeekBarLabel}});var q=n(4048);Object.defineProperty(t,"SubtitleOverlay",{enumerable:!0,get:function(){return q.SubtitleOverlay}});var Q=n(5277);Object.defineProperty(t,"SubtitleSelectBox",{enumerable:!0,get:function(){return Q.SubtitleSelectBox}});var Y=n(5705);Object.defineProperty(t,"TitleBar",{enumerable:!0,get:function(){return Y.TitleBar}});var X=n(6713);Object.defineProperty(t,"VolumeControlButton",{enumerable:!0,get:function(){return X.VolumeControlButton}});var J=n(6326);Object.defineProperty(t,"ClickOverlay",{enumerable:!0,get:function(){return J.ClickOverlay}});var Z=n(8751);Object.defineProperty(t,"AdSkipButton",{enumerable:!0,get:function(){return Z.AdSkipButton}});var $=n(3850);Object.defineProperty(t,"AdControlBar",{enumerable:!0,get:function(){return $.AdControlBar}});var ee=n(4103);Object.defineProperty(t,"AdMessageLabel",{enumerable:!0,get:function(){return ee.AdMessageLabel}});var te=n(5816);Object.defineProperty(t,"AdClickOverlay",{enumerable:!0,get:function(){return te.AdClickOverlay}});var ne=n(8950);Object.defineProperty(t,"AdCounterLabel",{enumerable:!0,get:function(){return ne.AdCounterLabel}});var oe=n(9523);Object.defineProperty(t,"PlaybackSpeedSelectBox",{enumerable:!0,get:function(){return oe.PlaybackSpeedSelectBox}});var ie=n(1308);Object.defineProperty(t,"HugeReplayButton",{enumerable:!0,get:function(){return ie.HugeReplayButton}});var re=n(2680);Object.defineProperty(t,"BufferingOverlay",{enumerable:!0,get:function(){return re.BufferingOverlay}});var se=n(4536);Object.defineProperty(t,"CastUIContainer",{enumerable:!0,get:function(){return se.CastUIContainer}});var ae=n(1904);Object.defineProperty(t,"PlaybackToggleOverlay",{enumerable:!0,get:function(){return ae.PlaybackToggleOverlay}});var le=n(7990);Object.defineProperty(t,"CloseButton",{enumerable:!0,get:function(){return le.CloseButton}});var ce=n(4947);Object.defineProperty(t,"MetadataLabel",{enumerable:!0,get:function(){return ce.MetadataLabel}}),Object.defineProperty(t,"MetadataLabelContent",{enumerable:!0,get:function(){return ce.MetadataLabelContent}});var ue=n(5932);Object.defineProperty(t,"AirPlayToggleButton",{enumerable:!0,get:function(){return ue.AirPlayToggleButton}});var pe=n(6003);Object.defineProperty(t,"VolumeSlider",{enumerable:!0,get:function(){return pe.VolumeSlider}});var fe=n(5829);Object.defineProperty(t,"PictureInPictureToggleButton",{enumerable:!0,get:function(){return fe.PictureInPictureToggleButton}});var de=n(8754);Object.defineProperty(t,"Spacer",{enumerable:!0,get:function(){return de.Spacer}});var ge=n(66);Object.defineProperty(t,"BackgroundColorSelectBox",{enumerable:!0,get:function(){return ge.BackgroundColorSelectBox}});var he=n(2492);Object.defineProperty(t,"BackgroundOpacitySelectBox",{enumerable:!0,get:function(){return he.BackgroundOpacitySelectBox}});var ve=n(5029);Object.defineProperty(t,"CharacterEdgeSelectBox",{enumerable:!0,get:function(){return ve.CharacterEdgeSelectBox}});var ye=n(3395);Object.defineProperty(t,"FontColorSelectBox",{enumerable:!0,get:function(){return ye.FontColorSelectBox}});var me=n(5602);Object.defineProperty(t,"FontFamilySelectBox",{enumerable:!0,get:function(){return me.FontFamilySelectBox}});var be=n(6501);Object.defineProperty(t,"FontOpacitySelectBox",{enumerable:!0,get:function(){return be.FontOpacitySelectBox}});var Ce=n(509);Object.defineProperty(t,"FontSizeSelectBox",{enumerable:!0,get:function(){return Ce.FontSizeSelectBox}});var Se=n(8091);Object.defineProperty(t,"SubtitleSettingSelectBox",{enumerable:!0,get:function(){return Se.SubtitleSettingSelectBox}});var Pe=n(5710);Object.defineProperty(t,"WindowColorSelectBox",{enumerable:!0,get:function(){return Pe.WindowColorSelectBox}});var we=n(9008);Object.defineProperty(t,"WindowOpacitySelectBox",{enumerable:!0,get:function(){return we.WindowOpacitySelectBox}});var Ee=n(3504);Object.defineProperty(t,"SubtitleSettingsResetButton",{enumerable:!0,get:function(){return Ee.SubtitleSettingsResetButton}});var Oe=n(6171);Object.defineProperty(t,"ListBox",{enumerable:!0,get:function(){return Oe.ListBox}});var _e=n(1015);Object.defineProperty(t,"SubtitleListBox",{enumerable:!0,get:function(){return _e.SubtitleListBox}});var ke=n(796);Object.defineProperty(t,"AudioTrackListBox",{enumerable:!0,get:function(){return ke.AudioTrackListBox}});var Te=n(8666);Object.defineProperty(t,"SettingsPanelPage",{enumerable:!0,get:function(){return Te.SettingsPanelPage}});var xe=n(3177);Object.defineProperty(t,"SettingsPanelPageBackButton",{enumerable:!0,get:function(){return xe.SettingsPanelPageBackButton}});var Ae=n(8902);Object.defineProperty(t,"SettingsPanelPageOpenButton",{enumerable:!0,get:function(){return Ae.SettingsPanelPageOpenButton}});var Le=n(8634);Object.defineProperty(t,"SubtitleSettingsPanelPage",{enumerable:!0,get:function(){return Le.SubtitleSettingsPanelPage}});var Me=n(1742);Object.defineProperty(t,"SettingsPanelItem",{enumerable:!0,get:function(){return Me.SettingsPanelItem}});var Ie=n(2963);Object.defineProperty(t,"DynamicSettingsPanelItem",{enumerable:!0,get:function(){return Ie.DynamicSettingsPanelItem}});var Be=n(2663);Object.defineProperty(t,"ReplayButton",{enumerable:!0,get:function(){return Be.ReplayButton}});var De=n(6757);Object.defineProperty(t,"QuickSeekButton",{enumerable:!0,get:function(){return De.QuickSeekButton}});var je=n(6541);Object.defineProperty(t,"ListSelector",{enumerable:!0,get:function(){return je.ListSelector}});var Ue=n(7280);Object.defineProperty(t,"AdStatusOverlay",{enumerable:!0,get:function(){return Ue.AdStatusOverlay}});var Re=n(4647);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return Re.Icon}});var Fe=n(4636);Object.defineProperty(t,"DismissClickOverlay",{enumerable:!0,get:function(){return Fe.DismissClickOverlay}});var He=n(9263);Object.defineProperty(t,"EcoModeContainer",{enumerable:!0,get:function(){return He.EcoModeContainer}});var ze=n(8432);Object.defineProperty(t,"EcoModeToggleButton",{enumerable:!0,get:function(){return ze.EcoModeToggleButton}});var Ve=n(6884);Object.defineProperty(t,"TvNoiseCanvas",{enumerable:!0,get:function(){return Ve.TvNoiseCanvas}});var Ne=n(5092);Object.defineProperty(t,"SmallCenteredPlaybackToggleButton",{enumerable:!0,get:function(){return Ne.SmallCenteredPlaybackToggleButton}});var We=n(5856);Object.defineProperty(t,"SettingsPanelSelectOption",{enumerable:!0,get:function(){return We.SettingsPanelSelectOption}});var Ge=n(8297);Object.defineProperty(t,"SettingsPanelPageNavigatorButton",{enumerable:!0,get:function(){return Ge.SettingsPanelPageNavigatorButton}});var Ke=n(9800);Object.defineProperty(t,"InteractiveSettingsPanelItem",{enumerable:!0,get:function(){return Ke.InteractiveSettingsPanelItem}});var qe=n(1368);Object.defineProperty(t,"TouchControlOverlay",{enumerable:!0,get:function(){return qe.TouchControlOverlay}});var Qe=n(6894);Object.defineProperty(t,"CharacterEdgeColorSelectBox",{enumerable:!0,get:function(){return Qe.CharacterEdgeColorSelectBox}});var Ye=n(1321);Object.defineProperty(t,"FontStyleSelectBox",{enumerable:!0,get:function(){return Ye.FontStyleSelectBox}}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})},5375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusableContainer=void 0;var o=n(5860),i=n(8234),r=function(){function e(e,t){if(void 0===t&&(t=void 0),this.container=e,this._primaryComponent=t,t&&!this.components.includes(t))throw new Error("The primary component must be part of the container.")}return Object.defineProperty(e.prototype,"primaryComponent",{get:function(){var e;return null!==(e=this._primaryComponent)&&void 0!==e?e:this.components[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return(0,o.resolveAllComponents)(this.container).filter(function(e){return(0,i.isFocusable)(e)})},enumerable:!1,configurable:!0}),e}();t.FocusableContainer=r},3213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentInDirection=function(e,t,n){if(e){var l=a((0,r.toHtmlElement)(e)),c=t.map(function(e){return e instanceof i.FocusableContainer?{component:e,element:(0,r.toHtmlElement)(e.container)}:{component:e,element:(0,r.toHtmlElement)(e)}}).filter(function(t){return t.component!==e}).map(function(e){var t,i,r=e.element,c=e.component,u=a(r),p=(t=l,s({x:(i=u).x-t.x,y:i.y-t.y})),f=function(e,t,n){var i,r,a={x:n===o.Direction.LEFT?-1:n===o.Direction.RIGHT?1:0,y:n===o.Direction.UP?-1:n===o.Direction.DOWN?1:0},l=(r=s(i={x:t.x-e.x,y:t.y-e.y}),{x:i.x/r,y:i.y/r}),c=function(e,t){return e.x*t.x+e.y*t.y}(a,l)/(s(a)*s(l));return 180*Math.acos(c)/Math.PI}(l,u,n);return{angle:f,dist:p,element:r,component:c}}).filter(function(e){return e.angle<89}),u=c.filter(function(e){return 0===e.angle});return(u.length>0?u.sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component}):c.filter(function(e){return 0!==e.angle}).sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component})).shift()}},t.getBoundingRectFromElement=l;var o=n(8151),i=n(5375),r=n(1315);function s(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function a(e){var t=l(e);return{x:t.x+t.width/2,y:t.y+t.height/2}}function l(e){var t=e.getBoundingClientRect();return"number"!=typeof t.x&&"number"!=typeof t.y&&(t.x=t.left,t.y=t.top),t}},2703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationGroup=void 0;var o=n(1779),i=n(3213),r=n(5860),s=n(1924),a=n(8234),l=n(8151),c=n(5375),u=n(1315),p=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.container=e,this.removeElementHoverEventListeners=function(){},this._components=t,this.eventSubscriber=new s.NodeEventSubscriber}return e.prototype.getComponents=function(){var e=[],t=this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e});if(this.activeComponent){var n=this.getActiveFocusableContainer();n?e.push.apply(e,n.components):e.push.apply(e,t)}return this._components.filter(function(e){return!(e instanceof c.FocusableContainer)}).forEach(function(t){t instanceof o.Container?e.push.apply(e,(0,r.resolveAllComponents)(t)):e.push(t)}),e.filter(function(e){return(0,a.isFocusable)(e)})},e.prototype.getActiveComponent=function(){return this.activeComponent},e.prototype.focusComponent=function(e){var t;t=e instanceof c.FocusableContainer?e.primaryComponent:e,this.blurActiveComponent(),this.activeComponent=t,(0,u.toHtmlElement)(this.activeComponent).focus()},e.prototype.blurActiveComponent=function(){this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).blur()},e.prototype.focusFirstComponent=function(){var e=this.getComponents()[0];e&&this.focusComponent(e)},e.prototype.defaultNavigationHandler=function(e){var t=this;if(!this.activeComponent)return!1;var n=function(n){var o=n instanceof c.FocusableContainer?n.primaryComponent:n;t.afterNavigation&&t.afterNavigation(e,o)},o=this.getActiveFocusableContainer();if(o){var r=(0,i.getComponentInDirection)(this.activeComponent,o.components,e);if(r)return this.focusComponent(r),n(r),!0}var s=(0,i.getComponentInDirection)(this.activeComponent,this.getComponents(),e);return s?(this.focusComponent(s),n(s),!0):(n(s),!1)},e.prototype.defaultActionHandler=function(e){switch(e){case l.Action.SELECT:return this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).click(),Boolean(this.activeComponent);case l.Action.BACK:return this.container.hide(),!0}return!1},e.prototype.handleInput=function(e,t,n){var o=!0,i=!1;if(n&&this.activeComponent&&(i=Boolean(n(e,this.activeComponent,function(){return o=!1}))),o){var r=t.call(this,e);i=i||r}return i},e.prototype.handleNavigation=function(e){return this.activeComponent?this.handleInput(e,this.defaultNavigationHandler,this.onNavigation):(this.activeComponentBeforeDisable?this.focusComponent(this.activeComponentBeforeDisable):this.focusFirstComponent(),Boolean(this.activeComponent))},e.prototype.handleAction=function(e){return this.handleInput(e,this.defaultActionHandler,this.onAction)},e.prototype.disable=function(){this.activeComponent&&(this.activeComponentBeforeDisable=this.activeComponent,this.blurActiveComponent(),this.activeComponent=void 0)},e.prototype.enable=function(){this.activeComponentBeforeDisable&&!(0,a.isSettingsPanel)(this.container)?(this.focusComponent(this.activeComponentBeforeDisable),this.activeComponentBeforeDisable=void 0):this.focusFirstComponent(),this.trackElementHover()},e.prototype.trackElementHover=function(){var e=this;this.removeElementHoverEventListeners();var t=[];this.getComponents().forEach(function(e){(e instanceof o.Container?(0,r.resolveAllComponents)(e):e instanceof c.FocusableContainer?(0,r.resolveAllComponents)(e.container):[e]).forEach(function(e){t.push(e)})});var n=t.map(function(e){return{component:e,element:(0,u.toHtmlElement)(e)}}).map(function(t){var n=t.element,o=t.component,i=e.focusComponent.bind(e,o),r=function(){return e.disable()};return e.eventSubscriber.on(n,"mouseenter",i),e.eventSubscriber.on(n,"mouseleave",r),function(){e.eventSubscriber.off(n,"mouseenter",i),e.eventSubscriber.off(n,"mouseleave",r)}});this.removeElementHoverEventListeners=function(){return n.forEach(function(e){return e()})}},e.prototype.release=function(){this.eventSubscriber.release(),this.activeComponent=void 0,this._components.splice(0,this._components.length),this.removeElementHoverEventListeners()},e.prototype.getActiveFocusableContainer=function(){var e=this;if(this.activeComponent)return this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e}).find(function(t){return t.components.includes(e.activeComponent)})},e}();t.NavigationGroup=p},1924:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeEventSubscriber=void 0;var n=function(){function e(){this.attachedListeners=new Map}return e.prototype.getEventListenersOfType=function(e){return this.attachedListeners.has(e)||this.attachedListeners.set(e,[]),this.attachedListeners.get(e)},e.prototype.on=function(e,t,n,o){e.addEventListener(t,n,o),this.getEventListenersOfType(t).push([e,n,o])},e.prototype.off=function(e,t,n,o){var i=this.getEventListenersOfType(t),r=i.findIndex(function(t){var i=t[0],r=t[1],s=t[2];return i===e&&r===n&&s===o});e.removeEventListener(t,n,o),r>-1&&i.splice(r,1)},e.prototype.release=function(){var e=this;this.attachedListeners.forEach(function(t,n){t.forEach(function(t){var o=t[0],i=t[1],r=t[2];e.off(o,n,i,r)})}),this.attachedListeners.clear()},e}();t.NodeEventSubscriber=n},9434:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlayNavigationGroup=void 0;var r=n(2703),s=n(5375),a=function(e){function t(t){var n=e.call(this,t,t.replayButton,new s.FocusableContainer(t.recommendationContainer))||this;return n.recommendationOverlay=t,n}return i(t,e),t.prototype.getComponents=function(){return this.recommendationOverlay.recommendationContainer.getComponents().length>0?e.prototype.getComponents.call(this):[this.recommendationOverlay.replayButton]},t}(r.NavigationGroup);t.RecommendationOverlayNavigationGroup=a},4487:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RootNavigationGroup=void 0;var s=n(2703),a=n(8151),l=function(e){function t(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.apply(this,r([t],n,!1))||this;return i.container=t,i}return i(t,e),t.prototype.handleAction=function(t){return t!==a.Action.BACK&&this.container.showUi(),e.prototype.handleAction.call(this,t)},t.prototype.handleNavigation=function(t){return this.container.showUi(),e.prototype.handleNavigation.call(this,t)},t.prototype.defaultActionHandler=function(t){return t!==a.Action.BACK?e.prototype.defaultActionHandler.call(this,t):!!this.isUiShown()&&(this.container.hideUi(),!0)},t.prototype.isUiShown=function(){var e,t=null===(e=this.container.getDomElement().get(0))||void 0===e?void 0:e.classList;return!!t&&Array.from(t).some(function(e){return/-controls-shown$/.test(e)})},t.prototype.release=function(){e.prototype.release.call(this)},t}(s.NavigationGroup);t.RootNavigationGroup=l},9123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarHandler=void 0;var o=n(1924),i=n(8151),r=n(3213),s=n(1315),a=function(){function e(e){var t=this;this.rootNavigationGroup=e,this.cursorPosition={x:0,y:0},this.isScrubbing=!1,this.scrubSpeedPercentage=.005,this.onNavigation=function(e,n,o){var r=(0,s.toHtmlElement)(n);return!!l(r)&&(e===i.Direction.UP||e===i.Direction.DOWN?(t.stopSeeking(c(r)),!0):(t.initializeOrUpdateCursorPosition(r,e),t.dispatchMouseMoveEvent(c(r)),o(),!0))},this.onAction=function(e,n,o){var r=(0,s.toHtmlElement)(n);if(!l(r))return!1;var a=c(r);return e===i.Action.SELECT&&t.isScrubbing?(t.dispatchMouseClickEvent(a),o(),!0):!(e!==i.Action.BACK||!t.isScrubbing||(t.stopSeeking(a),o(),0))},this.rootNavigationGroup.onAction=this.onAction,this.eventSubscriber=new o.NodeEventSubscriber,this.rootNavigationGroup.onNavigation=this.onNavigation}return e.prototype.updateScrubSpeedPercentage=function(){var e=this;clearTimeout(this.scrubSpeedResetTimeout),this.scrubSpeedPercentage*=1.1,this.scrubSpeedResetTimeout=window.setTimeout(function(){return e.scrubSpeedPercentage=.005},100)},e.prototype.getIncrement=function(e,t){this.updateScrubSpeedPercentage();var n=t.getBoundingClientRect().width*this.scrubSpeedPercentage;return e===i.Direction.RIGHT?n:-n},e.prototype.resetCursorPosition=function(){this.cursorPosition.x=0,this.cursorPosition.y=0},e.prototype.updateCursorPosition=function(e,t){this.cursorPosition.x+=this.getIncrement(e,t)},e.prototype.initializeCursorPosition=function(e){var t=function(e){return e.querySelector('[class*="seekbar-playbackposition-marker"]')}(e),n=(0,r.getBoundingRectFromElement)(t),o=n.x+n.width/2,i=n.y;this.cursorPosition.x=o,this.cursorPosition.y=i},e.prototype.initializeOrUpdateCursorPosition=function(e,t){this.isScrubbing?this.updateCursorPosition(t,e):this.initializeCursorPosition(e),this.isScrubbing=!0},e.prototype.getCursorPositionMouseEventInit=function(){return{clientX:this.cursorPosition.x,clientY:this.cursorPosition.y}},e.prototype.dispatchMouseMoveEvent=function(e){e.dispatchEvent(new MouseEvent("mousemove",this.getCursorPositionMouseEventInit()))},e.prototype.dispatchMouseClickEvent=function(e){var t=this,n=function(){var o=t.getCursorPositionMouseEventInit();document.dispatchEvent(new MouseEvent("mouseup",o)),t.eventSubscriber.off(e,"mousedown",n),t.stopSeeking(e)};this.eventSubscriber.on(e,"mousedown",n),e.dispatchEvent(new MouseEvent("mousedown"))},e.prototype.stopSeeking=function(e){this.resetCursorPosition(),this.isScrubbing=!1,this.dispatchMouseLeaveEvent(e)},e.prototype.dispatchMouseLeaveEvent=function(e){e.dispatchEvent(new MouseEvent("mouseleave"))},e.prototype.release=function(){this.eventSubscriber.release(),this.rootNavigationGroup.onAction=void 0,this.rootNavigationGroup.onNavigation=void 0},e}();function l(e){return Array.from(e.classList).findIndex(function(e){return/-ui-seekbar$/.test(e)})>-1}function c(e){return e.children.item(0)}t.SeekBarHandler=a},6250:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelNavigationGroup=t.SettingsPanelNavigationGroupConfig=void 0;var s=n(2703),a=n(8151),l=n(5860),c=n(5856),u=n(2963);t.SettingsPanelNavigationGroupConfig=function(){};var p=function(e){function t(t,n){void 0===n&&(n=void 0);var o=this,i=t.getRootPage().getItems();return(o=e.apply(this,r([t],i,!1))||this).settingsPanel=t,o.config=Object.assign({},o.config,{closeOnSelect:!0},n),t.onActivePageChanged.subscribe(function(){o.activeComponent=void 0,o.focusFirstComponent()}),o}return i(t,e),t.prototype.getComponents=function(){var e=this.settingsPanel.getActivePage().getItems(),t=[];return e.forEach(function(e){e instanceof c.SettingsPanelSelectOption||e instanceof u.DynamicSettingsPanelItem?t.push(e):t.push.apply(t,(0,l.resolveAllComponents)(e))}),t},t.prototype.defaultActionHandler=function(t){return t===a.Action.BACK?(this.settingsPanel.popSettingsPanelPage(),!0):t===a.Action.SELECT?(e.prototype.defaultActionHandler.call(this,t),this.config.closeOnSelect&&(this.settingsPanel.hide(),e.prototype.defaultActionHandler.call(this,a.Action.BACK)),!0):e.prototype.defaultActionHandler.call(this,t)},t}(s.NavigationGroup);t.SettingsPanelNavigationGroup=p},7776:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SpatialNavigation=void 0;var i=n(1924),r=n(9123),s=n(6565),a=n(8234),l=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var l=this;this.navigationGroups=[],this.onShow=function(e){l.activeNavigationGroups.push(e),l.updateEnabledNavigationGroup()},this.onHide=function(e){var t=l.activeNavigationGroups.findIndex(function(t){return t===e});t>-1&&(e.disable(),l.activeNavigationGroups.splice(t,1),l.updateEnabledNavigationGroup())},this.handleKeyEvent=function(e){var t=l.keyMap[function(e){return e.keyCode}(e)],n=l.getActiveNavigationGroup();n&&n.container&&!n.container.isHidden()&&!n.container.isDisabled()&&((0,a.isDirection)(t)&&n.handleNavigation(t)||(0,a.isAction)(t)&&n.handleAction(t))&&(e.preventDefault(),e.stopPropagation())},this.seekBarHandler=new r.SeekBarHandler(e),this.activeNavigationGroups=[],this.unsubscribeVisibilityChangesFns=[],this.eventSubscriber=new i.NodeEventSubscriber,this.navigationGroups=o([e],t,!0),this.keyMap=(0,s.getKeyMapForPlatform)(),this.subscribeToNavigationGroupVisibilityChanges(),this.attachKeyEventHandler(),this.enableDefaultNavigationGroup()}return e.prototype.attachKeyEventHandler=function(){this.eventSubscriber.on(document,"keydown",this.handleKeyEvent,!0)},e.prototype.subscribeToNavigationGroupVisibilityChanges=function(){var e=this;this.navigationGroups.forEach(function(t){var n=function(){return e.onShow(t)},o=function(){return e.onHide(t)};t.container.onShow.subscribe(n),t.container.onHide.subscribe(o),e.unsubscribeVisibilityChangesFns.push(function(){return t.container.onShow.unsubscribe(n)},function(){return t.container.onHide.unsubscribe(o)})})},e.prototype.unsubscribeFromNavigationGroupVisibilityChanges=function(){this.unsubscribeVisibilityChangesFns.forEach(function(e){return e()}),this.unsubscribeVisibilityChangesFns=[]},e.prototype.enableDefaultNavigationGroup=function(){var e,t=null!==(e=this.navigationGroups.find(function(e){return e.container.isShown()}))&&void 0!==e?e:this.navigationGroups[0];t&&(this.activeNavigationGroups.push(t),this.updateEnabledNavigationGroup())},e.prototype.updateEnabledNavigationGroup=function(){var e=this;this.activeNavigationGroups.forEach(function(t,n){n<e.activeNavigationGroups.length-1?t.disable():t.enable()})},e.prototype.getActiveNavigationGroup=function(){return this.activeNavigationGroups[this.activeNavigationGroups.length-1]},e.prototype.release=function(){this.unsubscribeFromNavigationGroupVisibilityChanges(),this.eventSubscriber.release(),this.navigationGroups.forEach(function(e){return e.release()}),this.seekBarHandler.release()},e}();t.SpatialNavigation=l},8234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSettingsPanel=function(e){return e instanceof i.SettingsPanel},t.isComponent=function(e){return null!=e&&e instanceof o.Component},t.isContainer=function(e){return null!=e&&e instanceof r.Container},t.isDirection=function(e){return"string"==typeof e&&Object.values(s.Direction).includes(e)},t.isAction=function(e){return"string"==typeof e&&Object.values(s.Action).includes(e)},t.isFocusable=function(e){return e instanceof a.FocusableContainer||e.isShown()&&e.getConfig().tabIndex>=0};var o=n(5955),i=n(4073),r=n(1779),s=n(8151),a=n(5375)},6565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyMapForPlatform=function(){var e=[s,r,a,c,l,u].find(function(e){return e.isApplicable()});return e?e.keyCodes:p};var o=n(8151),i=n(5256),r={isApplicable:function(){return i.BrowserUtils.isTizen},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,10009:o.Action.BACK}},s={isApplicable:function(){return i.BrowserUtils.isWebOs},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,461:o.Action.BACK}},a={isApplicable:function(){return i.BrowserUtils.isPlayStation},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},l={isApplicable:function(){return i.BrowserUtils.isAndroid},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},c={isApplicable:function(){return i.BrowserUtils.isHisense},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,8:o.Action.BACK}},u={isApplicable:function(){return i.BrowserUtils.isXbox},keyCodes:{203:o.Direction.UP,211:o.Direction.UP,204:o.Direction.DOWN,212:o.Direction.DOWN,205:o.Direction.LEFT,214:o.Direction.LEFT,206:o.Direction.RIGHT,213:o.Direction.RIGHT,195:o.Action.SELECT}},p={38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},5860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAllComponents=function e(t){var n=[];return t.getComponents().forEach(function(t){(0,o.isContainer)(t)?n.push.apply(n,e(t)):(0,o.isComponent)(t)&&n.push(t)}),n};var o=n(8234)},1315:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toHtmlElement=function(e){return e.getDomElement().get(0)}},8151:function(e,t){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Direction=void 0,function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(n||(t.Direction=n={})),function(e){e.SELECT="select",e.BACK="back"}(o||(t.Action=o={}))},1281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakTracker=void 0;var o=n(938),i=function(){function e(e){var t=this;this.player=e,this.groupBreaks=[],this.groupScheduleTime=void 0,this.events={onAdCountChanged:new o.EventDispatcher},this.handleAdStarted=function(){var e,n,o,i,r,s=null===(n=null===(e=t.player.ads)||void 0===e?void 0:e.getActiveAdBreak)||void 0===n?void 0:n.call(e);if(!s)return t.reset(),void t.dispatchChanged();var a=(null!==(r=null===(i=null===(o=t.player.ads)||void 0===o?void 0:o.list)||void 0===i?void 0:i.call(o))&&void 0!==r?r:[]).some(function(e){return e.scheduleTime===s.scheduleTime}),l=t.groupBreaks.length>0&&s.scheduleTime===t.groupScheduleTime;l||a?(!l&&t.groupBreaks.length>0&&(t.groupBreaks=[]),t.groupScheduleTime=s.scheduleTime,t.groupBreaks.includes(s)||t.groupBreaks.push(s)):(t.groupBreaks=[s],t.groupScheduleTime=void 0),t.dispatchChanged()},this.handleAdBreakFinished=function(e){var n,o,i,r,s;if(e.adBreak.scheduleTime===t.groupScheduleTime){var a=(null!==(i=null===(o=null===(n=t.player.ads)||void 0===n?void 0:n.list)||void 0===o?void 0:o.call(n))&&void 0!==i?i:[]).filter(function(e){return e.scheduleTime===t.groupScheduleTime}),l=null===(s=null===(r=t.player.ads)||void 0===r?void 0:r.getActiveAdBreak)||void 0===s?void 0:s.call(r),c=(null==l?void 0:l.scheduleTime)===t.groupScheduleTime&&void 0!==t.groupScheduleTime;0!==a.length||c||(t.reset(),t.dispatchChanged())}else void 0===t.groupScheduleTime&&(t.reset(),t.dispatchChanged())},e.on(e.exports.PlayerEvent.AdStarted,this.handleAdStarted),e.on(e.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished)}return Object.defineProperty(e.prototype,"onAdCountChanged",{get:function(){return this.events.onAdCountChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAdIndex",{get:function(){var e,t,n,o,i,r=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.getActiveAd)||void 0===t?void 0:t.call(e);if(!r||0===this.groupBreaks.length)return 0;for(var s=0,a=0,l=this.groupBreaks;a<l.length;a++){var c=l[a],u=null!==(n=c.ads)&&void 0!==n?n:[];if(u.length>0){var p=u.findIndex(function(e){return null!=r.id&&null!=e.id?e.id===r.id:e===r});if(p>=0)return s+p+1;s+=u.length}else{var f=null===(i=null===(o=this.player.ads)||void 0===o?void 0:o.getActiveAdBreak)||void 0===i?void 0:i.call(o);if(f===c||null!=(null==f?void 0:f.id)&&f.id===c.id)return s+1;s+=1}}return s+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalNumberOfAds",{get:function(){var e,t,n,o=this;if(0===this.groupBreaks.length)return 0;var i=this.groupBreaks.reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0),r=(null!==(n=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.list)||void 0===t?void 0:t.call(e))&&void 0!==n?n:[]).filter(function(e){return e.scheduleTime===o.groupScheduleTime}).reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0);return i+r},enumerable:!1,configurable:!0}),e.prototype.release=function(){this.player.off(this.player.exports.PlayerEvent.AdStarted,this.handleAdStarted),this.player.off(this.player.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished),this.reset(),this.events.onAdCountChanged.unsubscribeAll()},e.prototype.dispatchChanged=function(){this.events.onAdCountChanged.dispatch(this,{currentAdIndex:this.currentAdIndex,totalNumberOfAds:this.totalNumberOfAds})},e.prototype.reset=function(){this.groupBreaks=[],this.groupScheduleTime=void 0},e}();t.AdBreakTracker=i},1971:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0,function(e){e.remove=function(e,t){var n=e.indexOf(t);return n>-1?e.splice(n,1)[0]:null}}(n||(t.ArrayUtils=n={}))},9367:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSwitchHandler=void 0;var i=n(5801),r=function(){function e(e,t,n){var r=this;this.addAudioTrack=function(e){var t=e.track;if(r.hasComparator()){var n=r.player.getAvailableAudio(),s=n.some(function(e){return e.id===t.id})?n:o(o([],n,!0),[t],!1);r.listElement.synchronizeItems(s.map(function(e){return r.audioTrackToListItem(e)})),r.selectCurrentAudioTrack()}else r.listElement.hasItem(t.id)||r.listElement.addItem(t.id,i.i18n.getLocalizer(t.label),!0)},this.removeAudioTrack=function(e){var t=e.track;r.listElement.hasItem(t.id)&&r.listElement.removeItem(t.id)},this.selectCurrentAudioTrack=function(){var e=r.player.getAudio();e&&r.listElement.selectItem(e.id)},this.refreshAudioTracks=function(){var e=r.listElement.getSelectedItem();r.listElement.synchronizeItems(r.player.getAvailableAudio().map(function(e){return r.audioTrackToListItem(e)})),r.player.getAudio()?r.selectCurrentAudioTrack():e&&r.listElement.hasItem(e)&&r.listElement.selectItem(e)},this.player=e,this.listElement=t,this.uimanager=n,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshAudioTracks()}return e.prototype.bindSelectionEvent=function(){var e=this;this.listElement.onItemSelectionChanged.subscribe(function(t,n){e.player.setAudio(n)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.AudioChanged,this.selectCurrentAudioTrack),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.AudioAdded,this.addAudioTrack),this.player.on(this.player.exports.PlayerEvent.AudioRemoved,this.removeAudioTrack),this.uimanager.getConfig().events.onUpdated.subscribe(this.refreshAudioTracks)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.audioTrackToListItem=function(e){return{key:e.id,label:e.label}},e}();t.AudioTrackSwitchHandler=r},5256:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserUtils=void 0;var n=function(){function e(){}return Object.defineProperty(e,"isMobile",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Mobi/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isChrome",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Chrome/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Android/.test(navigator.userAgent)&&!this.isHisense},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isIOS",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isMacIntel",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&"MacIntel"===navigator.platform},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTv",{get:function(){return this.isHisense||this.isPlayStation||this.isWebOs||this.isTizen||this.isVizio||this.isXumo||this.isXbox||this.isVidaa},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isHisense",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Hisense/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isPlayStation",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/PlayStation/i.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isWebOs",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&(navigator.userAgent.includes("Web0S")||navigator.userAgent.includes("NetCast"))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTizen",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Tizen/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVizio",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vizio/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXumo",{get:function(){return!!this.windowExists()&&(navigator&&navigator.userAgent&&/sky_ott/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xglobal/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xfinity/.test(navigator.userAgent.toLowerCase()))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXbox",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Xbox/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVidaa",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vidaa/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTouchSupported",{get:function(){return!!this.windowExists()&&("ontouchstart"in window||navigator&&navigator.userAgent&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0))},enumerable:!1,configurable:!0}),e.windowExists=function(){return"undefined"!=typeof window},e}();t.BrowserUtils=n},2414:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorUtils=void 0,function(e){e.defaultErrorMessages={1e3:"Error is unknown",1001:"The player API is not available after a call to PlayerAPI.destroy.",1100:"General setup error",1101:"There was an error when inserting the HTML video element",1102:"No configuration was provided",1103:"The license is not valid",1104:"The the domain-locked player is not authorized to playback on this domain",1105:"The domain is not allowlisted",1106:"The license server URL is invalid",1107:"The impression server URL is invalid",1108:"Could not initialize a rendering engine",1109:"The used flash version does not support playback",1110:"Native Flash is not authorized by a valid Adobe token",1111:"Flash doesn't have sufficient resources",1112:"Flash container API not available",1113:'Protocol not supported. This site has been loaded using "file" protocol, but unfortunately this is not supported. Please load the page using a web server (using http or https)',1200:"General source error",1201:"No valid source was provided",1202:"The downloaded manifest is invalid",1203:"There was no technology detected to playback the provided source",1204:"The stream type is not supported",1205:"The forced technology is not supported",1206:"No stream found for supported technologies.",1207:"The downloaded segment is empty",1208:"The manifest could not be loaded",1209:"Progressive stream type not supported or the stream has an error",1210:"HLS stream has an error",1211:"The encryption method is not supported",1300:"General playback error",1301:"Video decoder or demuxer had an error with the content",1302:"General error if Flash renderer has an error",1303:"Flash doesn't have sufficient resources",1304:"The transmuxer could not be initialized",1400:"Network error while downloading",1401:"The manifest download timed out",1402:"The segment download timed out",1403:"The progressive stream download timed out",1404:"The Certificate could not be loaded",2e3:"General DRM error",2001:"Required DRM configuration is missing",2002:"The licensing server URL is missing",2003:"License request failed",2004:"Key or KeyId is missing",2005:"Key size is not supported",2006:"Unable to instantiate a key system supporting the required combinations",2007:"Unable to create or initialize key session",2008:"The MediaKey object could not be created/initialized",2009:"Key error",2010:"The key system is not supported",2011:"The certificate is not valid",2012:"Invalid header key/value pair for PlayReady license request",2013:"Content cannot be played back because the output is restricted on this machine",2014:"DRM error for the Flash renderer",2100:"General VR error",2101:"Player technology not compatible with VR playback",3e3:"General module error",3001:"The definition of the module is invalid (e.g. incomplete).",3002:"The module definition specifies dependencies but the module is not provided via a function for deferred loading.",3003:"A module cannot be loaded because it has not been added to the player core.",3004:"A module cannot be loaded because one or more dependencies are missing.",3100:"An Advertising module error has occurred. Refer to the attached AdvertisingError."},e.defaultMobileV3ErrorMessageTranslator=function(e){return e.message},e.defaultWebErrorMessageTranslator=function(t){var n=e.defaultErrorMessages[t.code];return n?"".concat(n,"\n(").concat(t.name,")"):"".concat(t.code," ").concat(t.name)}}(n||(t.ErrorUtils=n={}))},8101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusVisibilityTracker=void 0;var n="bmpui-focus-visible",o=function(){function e(e,t){var o=this;this.bitmovinUiPrefix=e,this.lastInteractionWasKeyboard=!0,this.onKeyDown=function(e){e.metaKey||e.altKey||e.ctrlKey||(o.lastInteractionWasKeyboard=!0)},this.onMouseOrPointerOrTouch=function(){return o.lastInteractionWasKeyboard=!1},this.onFocus=function(e){var t=e.target;o.lastInteractionWasKeyboard&&i(t)&&function(e,t){return 0===e.id.indexOf(t)}(t,o.bitmovinUiPrefix)&&!t.classList.contains(n)&&t.classList.add(n)},this.onBlur=function(e){var t=e.target;i(t)&&t.classList.remove(n)},this.uiWrapperElement=t,this.eventHandlerMap={mousedown:this.onMouseOrPointerOrTouch,pointerdown:this.onMouseOrPointerOrTouch,touchstart:this.onMouseOrPointerOrTouch,keydown:this.onKeyDown,focus:this.onFocus,blur:this.onBlur},this.registerEventListeners()}return e.prototype.registerEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.on(e,this.eventHandlerMap[e],!0)},e.prototype.unregisterEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.off(e,this.eventHandlerMap[e],!0)},e.prototype.release=function(){this.unregisterEventListeners()},e}();function i(e){return e instanceof HTMLElement&&e.classList instanceof DOMTokenList}t.FocusVisibilityTracker=o},5223:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GroupPlaybackSuspensionReason=void 0,function(e){e.UserIsScrubbing="userIsScrubbing"}(n||(t.GroupPlaybackSuspensionReason=n={}))},6504:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Guid=void 0,function(e){var t=1;e.next=function(){return t++}}(n||(t.Guid=n={}))},815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLoader=void 0;var o=n(323),i=function(){function e(){this.state={}}return e.prototype.load=function(e,t){var n=this;if(this.state[e]){var i=this.state[e];i.loadedCallback=t,i.loaded&&this.callLoadedCallback(i)}else{var r={url:e,image:new o.DOM("img",{}),loadedCallback:t,loaded:!1,width:0,height:0};this.state[e]=r,r.image.on("load",function(e){r.loaded=!0,r.width=r.image.get(0).width,r.height=r.image.get(0).height,n.callLoadedCallback(r)}),r.image.attr("src",r.url)}},e.prototype.callLoadedCallback=function(e){e.loadedCallback(e.url,e.width,e.height)},e}();t.ImageLoader=i},2157:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MobileV3PlayerEvent=void 0,t.isMobileV3PlayerAPI=function(e){for(var t in n)if(n.hasOwnProperty(t)&&!e.exports.PlayerEvent.hasOwnProperty(t))return!1;return!0},function(e){e.SourceError="sourceerror",e.PlayerError="playererror",e.PlaylistTransition="playlisttransition"}(n||(t.MobileV3PlayerEvent=n={}))},7395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerUtils=void 0;var o,i=n(938),r=n(5256);!function(e){var t;!function(e){e[e.Idle=0]="Idle",e[e.Prepared=1]="Prepared",e[e.Playing=2]="Playing",e[e.Paused=3]="Paused",e[e.Finished=4]="Finished"}(t=e.PlayerState||(e.PlayerState={})),e.isTimeShiftAvailable=function(e){return e.isLive()&&0!==e.getMaxTimeShift()},e.getState=function(e){return e.hasEnded()?t.Finished:e.isPlaying()?t.Playing:e.isPaused()?t.Paused:null!=e.getSource()?t.Prepared:t.Idle},e.getCurrentTimeRelativeToSeekableRange=function(t){var n=t.getCurrentTime();return t.isLive()?n:n-e.getSeekableRangeStart(t,0)},e.getSeekableRangeStart=function(e,t){return void 0===t&&(t=0),e.getSeekableRange()&&e.getSeekableRange().start||t},e.getSeekableRangeRespectingLive=function(e){if(!e.isLive())return e.getSeekableRange();var t=-e.getTimeShift(),n=-e.getMaxTimeShift(),o=e.getCurrentTime();return{start:o-(n-t),end:o+t}};var n=function(){function t(e){var t=this;this.timeShiftAvailabilityChangedEvent=new i.EventDispatcher,this.player=e,this.timeShiftAvailable=void 0;var n=function(){t.detect()};e.on(e.exports.PlayerEvent.SourceLoaded,n),e.on(e.exports.PlayerEvent.TimeChanged,n)}return t.prototype.detect=function(){if(this.player.isLive()){var t=e.isTimeShiftAvailable(this.player);t!==this.timeShiftAvailable&&(this.timeShiftAvailabilityChangedEvent.dispatch(this.player,{timeShiftAvailable:t}),this.timeShiftAvailable=t)}},Object.defineProperty(t.prototype,"onTimeShiftAvailabilityChanged",{get:function(){return this.timeShiftAvailabilityChangedEvent.getEvent()},enumerable:!1,configurable:!0}),t}();e.TimeShiftAvailabilityDetector=n;var o=function(){function e(e,t){var n=this;this.liveChangedEvent=new i.EventDispatcher,this.player=e,this.uimanager=t,this.live=void 0;var o=function(){n.detect()};this.uimanager.getConfig().events.onUpdated.subscribe(o),e.on(e.exports.PlayerEvent.Play,o),r.BrowserUtils.isAndroid&&r.BrowserUtils.isChrome&&e.on(e.exports.PlayerEvent.TimeChanged,o),e.exports.PlayerEvent.DurationChanged&&e.on(e.exports.PlayerEvent.DurationChanged,o),e.on(e.exports.PlayerEvent.AdBreakStarted,o),e.on(e.exports.PlayerEvent.AdBreakFinished,o)}return e.prototype.detect=function(){var e=this.player.isLive();e!==this.live&&(this.liveChangedEvent.dispatch(this.player,{live:e}),this.live=e)},Object.defineProperty(e.prototype,"onLiveChanged",{get:function(){return this.liveChangedEvent.getEvent()},enumerable:!1,configurable:!0}),e}();e.LiveStreamDetector=o,e.clampValueToRange=function(e,t,n){var o=Math.min(t,n),i=Math.max(t,n);return Math.min(Math.max(e,o),i)}}(o||(t.PlayerUtils=o={}))},9436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarController=t.SeekBarType=void 0;var o,i=n(3226);!function(e){e[e.Vod=0]="Vod",e[e.Live=1]="Live",e[e.Volume=2]="Volume"}(o||(t.SeekBarType=o={}));var r=function(e,t,n){e<t.min?n(t.min):e>t.max?n(t.max):n(e)},s=function(){function e(e,t,n){this.keyStepIncrements=e,this.player=t,this.volumeController=n}return e.prototype.arrowKeyControls=function(e,t,n){var o=this,i=Math.floor(e);return{left:function(){return r(i-o.keyStepIncrements.leftRight,t,n)},right:function(){return r(i+o.keyStepIncrements.leftRight,t,n)},up:function(){return r(i+o.keyStepIncrements.upDown,t,n)},down:function(){return r(i-o.keyStepIncrements.upDown,t,n)},home:function(){return r(t.min,t,n)},end:function(){return r(t.max,t,n)}}},e.prototype.seekBarControls=function(e){var t=this;if(e===o.Live)return this.arrowKeyControls(this.player.getTimeShift(),{min:this.player.getMaxTimeShift(),max:0},function(e){return t.player.timeShift(e)});if(e===o.Vod)return this.arrowKeyControls(this.player.getCurrentTime(),{min:0,max:this.player.getDuration()},function(e){return t.player.seek(e)});if(e===o.Volume&&null!=this.volumeController){var n=this.volumeController.startTransition();return this.arrowKeyControls(this.player.getVolume(),{min:0,max:100},n.finish.bind(n))}},e.prototype.setSeekBarControls=function(e,t){var n=this;e.on("keydown",function(e){var o=n.seekBarControls(t());switch(e.keyCode){case i.UIUtils.KeyCode.LeftArrow:o.left(),e.preventDefault();break;case i.UIUtils.KeyCode.RightArrow:o.right(),e.preventDefault();break;case i.UIUtils.KeyCode.UpArrow:o.up(),e.preventDefault();break;case i.UIUtils.KeyCode.DownArrow:o.down(),e.preventDefault();break;case i.UIUtils.KeyCode.Home:o.home(),e.preventDefault();break;case i.UIUtils.KeyCode.End:o.end(),e.preventDefault();break;case i.UIUtils.KeyCode.Space:n.player.isPlaying()?n.player.pause():n.player.play(),e.preventDefault()}})},e}();t.SeekBarController=s},7682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowDomManager=void 0;var o=n(323),i=n(5589),r=function(){function e(){}return e.isShadowDomSupported=function(){return"undefined"!=typeof ShadowRoot&&"undefined"!=typeof HTMLElement&&"function"==typeof HTMLElement.prototype.attachShadow},e.prototype.initialize=function(t,n){if(e.isShadowDomSupported()){var r=new o.DOM("div",{class:(0,i.prefixCss)("shadow-dom-container")});r.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}),t.append(r),this.shadowHost=r,this.shadowRoot=r.get(0).attachShadow({mode:"open"}),this.injectStyles(n)}},e.prototype.getShadowRoot=function(){return this.shadowRoot},e.prototype.release=function(){this.shadowHost&&(this.shadowHost.remove(),this.shadowHost=void 0,this.shadowRoot=void 0)},e.prototype.injectStyles=function(t){var n=this;if(this.shadowRoot){var o=s(t.uiStylesheet||e.DEFAULT_SHADOW_STYLESHEET_NAME);o?a(this.shadowRoot,o):console.warn("Shadow DOM is enabled but no stylesheet was found. Provide `uiStylesheet` (URL or filename) or include bitmovinplayer-ui on the page."),t.additionalStylesheets&&t.additionalStylesheets.length>0&&t.additionalStylesheets.forEach(function(e){var t=s(e);t?a(n.shadowRoot,t):console.warn("Shadow DOM: Could not resolve additional stylesheet '".concat(e,"'. ")+"Check the URL or ensure the stylesheet is linked on the page.")})}},e.DEFAULT_SHADOW_STYLESHEET_NAME="bitmovinplayer-ui",e}();function s(e){if(/^https?:\/\//.test(e)||e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return e;var t=Array.from(document.querySelectorAll('link[rel~="stylesheet"]')).find(function(t){return t.href&&-1!==t.href.indexOf(e)});return(null==t?void 0:t.href)||null}function a(e,t){var n=document.createElement("link");n.rel="stylesheet",n.href=t,e.appendChild(n)}t.ShadowDomManager=r},8919:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageUtils=void 0,function(e){var t;function n(){try{return!t&&window.localStorage&&"function"==typeof localStorage.getItem&&"function"==typeof localStorage.setItem}catch(e){return!1}}function o(e,t){if(n())try{window.localStorage.setItem(e,t)}catch(t){console.debug("Failed to set storage item ".concat(e),t)}}function i(e){if(n())try{return window.localStorage.getItem(e)}catch(t){console.debug("Failed to get storage item ".concat(e),t)}return null}e.setStorageApiDisabled=function(e){t=e.disableStorageApi},e.setItem=o,e.getItem=i,e.setObject=function(e,t){o(e,JSON.stringify(t))},e.getObject=function(e){var t=i(e);return t?JSON.parse(t):null}}(n||(t.StorageUtils=n={}))},1823:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var o,i=n(5801);!function(e){function t(t,o){void 0===o&&(o=e.FORMAT_HHMMSS);var i=t<0;i&&(t=-t);var r=Math.floor(t/3600),s=Math.floor(t/60)-60*r,a=Math.floor(t)%60;return(i?"-":"")+o.replace("hh",n(r,2)).replace("mm",n(s,2)).replace("ss",n(a,2))}function n(e,t){var n=e+"";return"0000000000".substr(0,t-n.length)+n}function o(e,o){/%((0[1-9]\d*(\.\d+(d|f)|d|f)|\.\d+f|d|f)|hh:mm:ss|mm:ss)/.test(o)||(o="%d");var i=0,r=o.match(/(%0[1-9]\d*)(?=(\.\d+f|f|d))/);r&&(i=parseInt(r[0].substring(2)));var s=null,a=o.match(/\.\d*(?=f)/);if(a&&!isNaN(parseInt(a[0].substring(1)))&&(s=parseInt(a[0].substring(1)))>20&&(s=20),o.indexOf("f")>-1){var l="";return(l=null!==s?e.toFixed(s):""+e).indexOf(".")>-1?n(l,l.length+(i-l.indexOf("."))):n(l,i)}if(o.indexOf(":")>-1){var c=Math.ceil(e);if(o.indexOf("hh")>-1)return t(c);var u=c%60;return n(Math.floor(c/60),2)+":"+n(u,2)}return n(Math.ceil(e),i)}e.FORMAT_HHMMSS="hh:mm:ss",e.FORMAT_MMSS="mm:ss",e.secondsToTime=t,e.secondsToText=function(e){var t=e<0;t&&(e=-e);var n=Math.floor(e/3600),o=Math.floor(e/60)-60*n,r=Math.floor(e)%60;return(t?"-":"")+(0!==n?"".concat(n," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.hours"))," "):"")+(0!==o?"".concat(o," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.minutes"))," "):"")+"".concat(r," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.seconds")))},e.replaceAdMessagePlaceholders=function(e,t,n,i,r){var s=new RegExp("\\{(remainingTime|playedTime|adDuration|adBreakRemainingTime|activeAdIndex|totalAdsCount)(}|%((0[1-9]\\d*(\\.\\d+(d|f)|d|f)|\\.\\d+f|d|f)|hh:mm:ss|mm:ss)})","g");return e.replace(s,function(e){var s,a,l,c,u,p,f,d,g=0;if(e.indexOf("remainingTime")>-1)g="number"==typeof n?Math.ceil(n-t.getCurrentTime()):t.getDuration()-t.getCurrentTime();else if(e.indexOf("playedTime")>-1)g=t.getCurrentTime();else if(e.indexOf("adDuration")>-1)g=t.getDuration();else if(e.indexOf("adBreakRemainingTime")>-1){if(g=0,null===(a=null===(s=t.ads)||void 0===s?void 0:s.isLinearAdActive)||void 0===a?void 0:a.call(s)){var h=t.ads.getActiveAdBreak().ads.findIndex(function(e){return t.ads.getActiveAd().id===e.id});g=t.ads.getActiveAdBreak().ads.slice(h).reduce(function(e,t){return e+(t.isLinear?t.duration:0)},0)-t.getCurrentTime()}}else if(e.indexOf("activeAdIndex")>-1||e.indexOf("totalAdsCount")>-1){if(e.includes("activeAdIndex")){if(null!=i)return o(i,e);var v=null===(c=null===(l=t.ads)||void 0===l?void 0:l.getActiveAdBreak)||void 0===c?void 0:c.call(l),y=null===(p=null===(u=t.ads)||void 0===u?void 0:u.getActiveAd)||void 0===p?void 0:p.call(u),m=null==v?void 0:v.ads;return v&&y&&Array.isArray(m)&&0!==m.length?o(m.findIndex(function(e){return null!=y.id&&null!=e.id?e.id===y.id:e===y})+1,e):o(0,e)}if(null!=r)return o(r,e);var b=null===(d=null===(f=t.ads)||void 0===f?void 0:f.getActiveAdBreak)||void 0===d?void 0:d.call(f),C=null==b?void 0:b.ads;return o(Array.isArray(C)?C.length:0,e)}return o(Math.round(g),e)})}}(o||(t.StringUtils=o={}))},7885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsProperty=t.SubtitleSettingsManager=void 0;var o=n(8919),i=n(938),r=n(5589),s=function(){function e(){this._properties={fontColor:new a(this),fontOpacity:new a(this),fontFamily:new a(this),fontSize:new a(this),fontStyle:new a(this),characterEdge:new a(this),characterEdgeColor:new a(this),backgroundColor:new a(this),backgroundOpacity:new a(this),windowColor:new a(this),windowOpacity:new a(this)},this.userSettings={},this.localStorageKey=(0,r.prefixCss)("subtitlesettings")}return e.prototype.reset=function(){for(var e in this._properties)this._properties[e].clear()},Object.defineProperty(e.prototype,"fontColor",{get:function(){return this._properties.fontColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontOpacity",{get:function(){return this._properties.fontOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._properties.fontFamily},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._properties.fontSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._properties.fontStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdge",{get:function(){return this._properties.characterEdge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdgeColor",{get:function(){return this._properties.characterEdgeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._properties.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this._properties.backgroundOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowColor",{get:function(){return this._properties.windowColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowOpacity",{get:function(){return this._properties.windowOpacity},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){var e=this,t=function(t){n._properties[t].onChanged.subscribe(function(n,o){o.isSet()?e.userSettings[t]=o.value:delete e.userSettings[t],e.save()})},n=this;for(var o in this._properties)t(o);this.load()},e.prototype.save=function(){o.StorageUtils.setObject(this.localStorageKey,this.userSettings)},e.prototype.load=function(){for(var e in this.userSettings=o.StorageUtils.getObject(this.localStorageKey)||{},this.userSettings)this._properties[e].value=this.userSettings[e]},e}();t.SubtitleSettingsManager=s;var a=function(){function e(e){this._manager=e,this._onChanged=new i.EventDispatcher}return e.prototype.isSet=function(){return null!=this._value},e.prototype.clear=function(){this._value=null,this.onChangedEvent(null)},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){"string"==typeof e&&"null"===e&&(e=null),this._value=e,this.onChangedEvent(e)},enumerable:!1,configurable:!0}),e.prototype.onChangedEvent=function(e){this._onChanged.dispatch(this._manager,this)},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this._onChanged.getEvent()},enumerable:!1,configurable:!0}),e}();t.SubtitleSettingsProperty=a},1436:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSwitchHandler=void 0;var i=n(5801),r=function(){function e(t,n,r){var s=this;this.onSubtitleEnabled=function(e){var t;if(s.selectCurrentSubtitle(),i.i18n.getConfig().adaptLocalizationToSubtitleLanguage){var n="string"==typeof(null===(t=e.subtitle)||void 0===t?void 0:t.lang)?e.subtitle.lang.trim():"";n&&i.i18n.setLanguage(n)}},this.addSubtitle=function(t){var n=t.subtitle;if(s.hasComparator()){var r=s.player.subtitles.list(),a=r.some(function(e){return e.id===n.id})?r:o(o([],r,!0),[n],!1),l={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};s.listElement.synchronizeItems(o([l],a.map(function(e){return s.subtitleToListItem(e)}),!0)),s.selectCurrentSubtitle()}else s.listElement.hasItem(n.id)||s.listElement.addItem(n.id,n.label)},this.removeSubtitle=function(e){var t=e.subtitle;s.listElement.hasItem(t.id)&&s.listElement.removeItem(t.id),s.selectCurrentSubtitle()},this.selectCurrentSubtitle=function(){if(s.player.subtitles){var t=s.player.subtitles.list().filter(function(e){return e.enabled}).pop();s.listElement.selectItem(t?t.id:e.SUBTITLES_OFF_KEY)}},this.clearSubtitles=function(){s.listElement.clearItems()},this.refreshSubtitles=function(){if(s.player.subtitles){var t={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};s.listElement.synchronizeItems(o([t],s.player.subtitles.list().map(function(e){return s.subtitleToListItem(e)}),!0)),s.selectCurrentSubtitle()}},this.player=t,this.listElement=n,this.uimanager=r,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshSubtitles()}return e.prototype.bindSelectionEvent=function(){var t=this;this.listElement.onItemSelectionChanged.subscribe(function(n,o){if(o===e.SUBTITLES_OFF_KEY){var i=t.player.subtitles.list().filter(function(e){return e.enabled}).pop();i&&t.player.subtitles.disable(i.id)}else t.player.subtitles.enable(o,!0)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.SubtitleAdded,this.addSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleEnabled,this.onSubtitleEnabled),this.player.on(this.player.exports.PlayerEvent.SubtitleDisabled,this.selectCurrentSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleRemoved,this.removeSubtitle),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.clearSubtitles),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshSubtitles),this.uimanager.getConfig().events.onUpdated.subscribe(this.refreshSubtitles)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.subtitleToListItem=function(e){return{key:e.id,label:e.label}},e.SUBTITLES_OFF_KEY="null",e}();t.SubtitleSwitchHandler=r},8347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkersHandler=void 0;var o=n(323),i=n(7395),r=n(3998),s=n(5589),a=function(){function e(e,t,n){this.markerPositionUpdater=null,this.isTimeShifting=!1,this.seekableRangeSnapshot=null,this.config=e,this.getSeekBarWidth=t,this.markersContainer=n,this.timelineMarkers=[]}return e.prototype.initialize=function(e,t){this.player=e,this.uimanager=t,this.configureMarkers()},e.prototype.configureMarkers=function(){var e=this,t=function(){return e.updateMarkers(!1)},n=function(){return e.clearMarkers()},o=function(){e.isTimeShifting=!0},r=function(){e.isTimeShifting=!1},s=function(e,t){t.scrubbing&&o()},a=function(){e.stopLiveMarkerUpdater(),e.isTimeShifting=!1,e.seekableRangeSnapshot=null,e.player.off(e.player.exports.PlayerEvent.TimeShift,o),e.player.off(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.unsubscribe(s)},l=function(){a(),e.clearMarkers()};this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,l),this.player.on(this.player.exports.PlayerEvent.Destroy,l),this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,n),this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,t);var c=new i.PlayerUtils.LiveStreamDetector(this.player,this.uimanager),u=function(t,n){n.live?(e.player.on(e.player.exports.PlayerEvent.TimeShift,o),e.player.on(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.subscribe(s),e.startLiveMarkerUpdater()):a()};c.onLiveChanged.subscribe(u),c.detect(),this.uimanager.getConfig().events.onUpdated.subscribe(t),this.player.on(this.player.exports.PlayerEvent.PlayerResized,t),this.uimanager.onConfigured.subscribe(t),this.player.on(this.player.exports.PlayerEvent.SourceLoaded,t),this.uimanager.onRelease.subscribe(function(){e.uimanager.getConfig().events.onUpdated.unsubscribe(t),e.uimanager.onConfigured.unsubscribe(t),c.onLiveChanged.unsubscribe(u),l(),e.player.off(e.player.exports.PlayerEvent.SourceUnloaded,l),e.player.off(e.player.exports.PlayerEvent.Destroy,l),e.player.off(e.player.exports.PlayerEvent.AdBreakStarted,n),e.player.off(e.player.exports.PlayerEvent.AdBreakFinished,t),e.player.off(e.player.exports.PlayerEvent.PlayerResized,t),e.player.off(e.player.exports.PlayerEvent.SourceLoaded,t)}),this.updateMarkers(!1)},e.prototype.getMarkerAtPosition=function(e){var t=this.config.snappingRange;return this.timelineMarkers.find(function(n){var o=n.duration>0&&e>=n.position-t&&e<=n.position+n.duration+t,i=e>=n.position-t&&e<=n.position+t;return o||i})||null},e.prototype.clearMarkers=function(){this.timelineMarkers=[],this.markersContainer.empty()},e.prototype.removeMarkerFromConfig=function(e){this.uimanager.getConfig().metadata.markers=this.uimanager.getConfig().metadata.markers.filter(function(t){return e!==t})},e.prototype.filterRemovedMarkers=function(){var e=this;this.timelineMarkers=this.timelineMarkers.filter(function(t){var n=e.uimanager.getConfig().metadata.markers.find(function(e){return t.marker===e});return n||e.removeMarkerFromDOM(t),n})},e.prototype.removeMarkerFromDOM=function(e){e.element&&e.element.remove()},e.prototype.updateMarkers=function(e){var t,n,o,i,r=this;0!==this.getSeekBarWidth()&&(t=this.player,n=this.uimanager,o=t.getDuration()!==1/0||t.isLive(),i=n.getConfig().metadata.markers.length>0,o&&i?(this.filterRemovedMarkers(),this.uimanager.getConfig().metadata.markers.forEach(function(t){var n=function(e,t,n){var o=function(e,t){if(!e.isLive())return e.getDuration();var n=t.start;return t.end-n}(e,t),i=100/o*function(e,t,n,o){return t.isLive()?n-(o.end-e.time):e.time}(n,e,o,t),r=100/o*n.duration;return i<0&&!isNaN(r)&&(r+=i),100-i<r&&(r=100-i),{markerDuration:r,markerPosition:i}}(r.player,r.getSeekableRangeRespectingSnapshot(),t),o=n.markerPosition,i=n.markerDuration;if(function(e,t){return(t<0||isNaN(t))&&e<0}(o,i))r.removeMarkerFromConfig(t);else if(o<=100){var s=r.timelineMarkers.find(function(e){return e.marker===t});if(s)s.position=o,s.duration=i,r.updateMarkerDOM(s,e);else{var a={marker:t,position:o,duration:i};r.timelineMarkers.push(a),r.createMarkerDOM(a)}}})):this.clearMarkers())},e.prototype.getMarkerCssProperties=function(e,t){void 0===t&&(t=!0);var n=this.getSeekBarWidth(),o=n/100*(e.position<0?0:e.position),i={transform:"translateX(".concat(o,"px)")};if(t){var r=this.config.markerUpdateIntervalMs||1e3;i["transition-duration"]="".concat(r,"ms")}else i.transition="none";if(e.duration>0){var s=Math.round(n/100*e.duration);i.width="".concat(s,"px")}return i},e.prototype.updateMarkerDOM=function(e,t){e.element.removeCss("transition"),e.element.css(this.getMarkerCssProperties(e,t))},e.prototype.createMarkerDOM=function(e){var t=["seekbar-marker"].concat(e.marker.cssClasses||[]).map(function(e){return(0,s.prefixCss)(e)}),n=new o.DOM("div",{class:(0,s.prefixCss)("seekbar-marker-indicator")}),i=new o.DOM("div",{class:(0,s.prefixCss)("seekbar-marker-indicator")}),r=new o.DOM("div",{class:t.join(" "),"data-marker-time":String(e.marker.time),"data-marker-title":String(e.marker.title)}).css(this.getMarkerCssProperties(e,!1));if(e.marker.imageUrl){var a=new o.DOM("img",{class:(0,s.prefixCss)("seekbar-marker-image"),src:e.marker.imageUrl}).on("error",function(){a.remove()});r.append(a)}r.append(n),e.duration>0&&r.append(i),e.element=r,this.markersContainer.append(r)},e.prototype.startLiveMarkerUpdater=function(){var e=this,t=this.config.markerUpdateIntervalMs||1e3;this.stopLiveMarkerUpdater(),this.captureSeekableRangeSnapshot(),this.markerPositionUpdater=new r.Timeout(t,function(){e.isTimeShifting||e.captureSeekableRangeSnapshot(),e.updateMarkers(!0)},!0),this.markerPositionUpdater.start()},e.prototype.stopLiveMarkerUpdater=function(){this.markerPositionUpdater&&(this.markerPositionUpdater.clear(),this.markerPositionUpdater=null)},e.prototype.captureSeekableRangeSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);this.seekableRangeSnapshot={start:e.start,end:e.end,timestampMs:Date.now()}},e.prototype.getSeekableRangeRespectingSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);if(!this.player.isLive())return e;if(this.isTimeShifting&&this.seekableRangeSnapshot){var t=(Date.now()-this.seekableRangeSnapshot.timestampMs)/1e3;return{start:this.seekableRangeSnapshot.start+t,end:this.seekableRangeSnapshot.end+t}}return e},e}();t.TimelineMarkersHandler=a},3998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timeout=void 0;var n=function(){function e(e,t,n){void 0===n&&(n=!1),this.delay=e,this.callback=t,this.repeat=n,this.timeoutOrIntervalId=0,this.active=!1,this.suspended=!1}return e.prototype.start=function(){return this.reset(),this},e.prototype.clear=function(){this.clearInternal()},e.prototype.suspend=function(){return this.suspended=!0,this.clearInternal(),this},e.prototype.resume=function(e){return this.suspended=!1,e&&this.reset(),this},e.prototype.reset=function(){var e=this;this.clearInternal(),this.suspended||(this.repeat?this.timeoutOrIntervalId=setInterval(this.callback,this.delay):this.timeoutOrIntervalId=setTimeout(function(){e.active=!1,e.callback()},this.delay),this.active=!0)},e.prototype.isActive=function(){return this.active},e.prototype.clearInternal=function(){this.repeat?clearInterval(this.timeoutOrIntervalId):clearTimeout(this.timeoutOrIntervalId),this.active=!1},e}();t.Timeout=n},3226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIUtils=void 0;var o,i=n(1779);!function(e){var t;e.traverseTree=function(e,t){var n=function(e,o){if(t(e,o),e instanceof i.Container)for(var r=0,s=e.getComponents();r<s.length;r++){var a=s[r];n(a,e)}};n(e)},(t=e.KeyCode||(e.KeyCode={}))[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Space=32]="Space",t[t.End=35]="End",t[t.Home=36]="Home"}(o||(t.UIUtils=o={}))},1767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeTransition=t.VolumeController=void 0;var o=n(938),i=function(){function e(t){var n=this;this.player=t,this.events={onChanged:new o.EventDispatcher},this.transitionActive=!1,this.storedVolume=e.defaultVolume,this.storeVolume();var i=function(){n.onChangedEvent()};t.on(t.exports.PlayerEvent.SourceLoaded,i),t.on(t.exports.PlayerEvent.VolumeChanged,i),t.on(t.exports.PlayerEvent.Muted,i),t.on(t.exports.PlayerEvent.Unmuted,i)}return e.prototype.setVolume=function(t){this.player.setVolume(t,e.issuerName)},e.prototype.getVolume=function(){return this.player.getVolume()},e.prototype.setMuted=function(t){t?this.player.mute(e.issuerName):this.player.unmute(e.issuerName)},e.prototype.toggleMuted=function(){this.isMuted()||0===this.getVolume()?this.recallVolume():this.setMuted(!0)},e.prototype.isMuted=function(){return this.player.isMuted()},e.prototype.storeVolume=function(){var e=this.getVolume();e>0&&(this.storedVolume=e)},e.prototype.recallVolume=function(){var t=this.storedVolume>0?this.storedVolume:e.defaultVolume;this.setMuted(!1),this.setVolume(t)},e.prototype.startTransition=function(){return this.transitionActive=!0,new r(this)},e.prototype.endTransition=function(){this.transitionActive=!1},e.prototype.onChangedEvent=function(){var e=this.isMuted(),t=this.getVolume(),n=e||0===t,o=e?0:t;this.transitionActive||this.storeVolume(),this.events.onChanged.dispatch(this,{volume:o,muted:n})},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this.events.onChanged.getEvent()},enumerable:!1,configurable:!0}),e.issuerName="ui-volumecontroller",e.defaultVolume=100,e}();t.VolumeController=i;var r=function(){function e(e){this.controller=e,e.storeVolume()}return e.prototype.update=function(e){this.controller.setMuted(!1),this.controller.setVolume(e)},e.prototype.finish=function(e){0===e?(this.controller.recallVolume(),this.controller.setMuted(!0)):(this.controller.setMuted(!1),this.controller.setVolume(e),this.controller.storeVolume()),this.controller.endTransition()},e}();t.VolumeTransition=r},5810:function(e,t){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VttUtils=void 0,function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right"}(n||(n={})),function(e){e.GrowingRight="lr",e.GrowingLeft="rl"}(o||(o={}));var i,r=new Map([[n.Top,n.Bottom],[n.Bottom,n.Top],[n.Left,n.Right],[n.Right,n.Left]]),s=function(e,t,n,o){var i=r.get(n);if("auto"===t.line&&t.vertical)e.css(i,"0");else if("auto"!==t.line||t.vertical){var s=parseFloat(t.line);if(t.snapToLines){var a=Number(t.line);a<0&&(a=21+a),s=o.height/21*a*100/o.height}"end"!==t.lineAlign&&e.css(i,"".concat(s,"%")),function(e,t,n,o){switch(t.lineAlign){case"center":c(e,n,o);break;case"end":u(e,n,o)}}(e,t,n,s)}},a=function(e,t,o,i){var r=t===n.Right?"vertical-lr":"vertical-rl";e.css("writing-mode",r),e.css(n.Top,"0"),s(e,o,t,i)},l=function(e,t,n){if("auto"===t.position)e.css(n,"0");else switch(t.positionAlign){case"line-left":e.css(n,"".concat(t.position,"%")),e.css(r.get(n),"auto"),e.css("justify-content","flex-start");break;case"center":e.css(n,"".concat(t.position-t.size/2,"%")),e.css(r.get(n),"auto"),e.css("justify-content","center");break;case"line-right":e.css(n,"auto"),e.css(r.get(n),"".concat(100-t.position,"%")),e.css("justify-content","flex-end");break;default:e.css(n,"".concat(t.position,"%")),e.css("justify-content","flex-start")}},c=function(e,t,o){switch(t){case n.Bottom:e.css("transform","translateY(-50%)");break;case n.Left:e.css("transform","translateX(50%)");break;case n.Right:e.css("transform","translateX(-50%)")}},u=function(e,t,n){var o=t;e.css(o,"".concat(100-n,"%"))};!function(e){e.setVttCueBoxStyles=function(e,t){var i=e.vtt,r=e.getDomElement();!function(e,t){t.region?(e.css("position","relative"),e.css("unicode-bidi","plaintext")):(e.css("position","absolute"),e.css("overflow-wrap","break-word"),e.css("overflow","hidden"),e.css("flex-flow","column")),e.css("display","inline-flex")}(r,i),e.getText().split("<br />").length,function(e,t,i){switch(t.vertical){case"":e.css("writing-mode","horizontal-tb"),e.css(n.Bottom,"0"),s(e,t,n.Bottom,i);break;case o.GrowingRight:a(e,n.Right,t,i);break;case o.GrowingLeft:a(e,n.Left,t,i)}}(r,i,t);var c="middle"===i.align?"center":i.align;r.css("text-align",c);var u=i.size;""===i.vertical?(r.css("width","".concat(u,"%")),l(r,i,n.Left)):(r.css("height","".concat(u,"%")),l(r,i,n.Top))},e.setVttRegionStyles=function(e,t,o){var i=e.getDomElement(),r=o.width*t.viewportAnchorX/100-o.width*t.width/100*t.regionAnchorX/100,s=o.height*t.viewportAnchorY/100-28*t.lines*t.regionAnchorY/100;i.css("position","absolute"),i.css("overflow","hidden"),i.css("width","".concat(t.width,"%")),i.css(n.Left,"".concat(r,"px")),i.css(n.Right,"unset"),i.css(n.Top,"".concat(s,"px")),i.css(n.Bottom,"unset"),i.css("height","".concat(28*t.lines,"px"))}}(i||(t.VttUtils=i={}))},3101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMinBufferLevel=function(e){var t=e.getDuration(),n=e.getVideoBufferLength(),o=e.getAudioBufferLength(),i=Math.min(null!=n?n:Number.MAX_VALUE,null!=o?o:Number.MAX_VALUE);return i===Number.MAX_VALUE&&(i=0),100/t*i}},8922:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Videoqualität","settings.audio.quality":"Audioqualität","settings.audio.track":"Audiospur","speed":"Geschwindigkeit","play":"Abspielen","pause":"Pause","playPause":"Abspielen/Pause","open":"öffnen","close":"Schließen","settings.audio.mute":"Stummschaltung","settings.audio.volume":"Lautstärke","pictureInPicture":"Bild im Bild","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","settings":"Einstellungen","fullscreen":"Vollbild","off":"aus","settings.subtitles":"Untertitel","settings.subtitles.font.size":"Größe","settings.subtitles.font.style":"Schriftstil","settings.subtitles.font.style.bold":"Fett","settings.subtitles.font.style.italic":"Kursiv","settings.subtitles.font.family":"Schriftart","settings.subtitles.font.family.monospacedserif":"Monospace Serif","settings.subtitles.font.family.proportionalserif":"Proportional Serif","settings.subtitles.font.family.monospacedsansserif":"Monospace Sans-Serif","settings.subtitles.font.family.proportionalsansserif":"Proportional Sans-Serif","settings.subtitles.font.family.casual":"Lässig","settings.subtitles.font.family.cursive":"Kursiv","settings.subtitles.font.family.smallcapital":"Kapitälchen","settings.subtitles.font.color":"Farbe","settings.subtitles.font.opacity":"Deckkraft","settings.subtitles.characterEdge":"Ränder","settings.subtitles.characterEdge.raised":"erhöht","settings.subtitles.characterEdge.depressed":"vertieft","settings.subtitles.characterEdge.uniform":"einheitlich","settings.subtitles.characterEdge.dropshadowed":"Schlagschatten","settings.subtitles.characterEdge.color":"Buchstabenrandfarbe","settings.subtitles.background.color":"Hintergrundfarbe","settings.subtitles.background.opacity":"Hintergrunddeckkraft","settings.subtitles.window.color":"Hintergrundfarbe","settings.subtitles.window.opacity":"Hintergrunddeckkraft","settings.subtitles.options":"Optionen","settings.time.hours":"Stunden","settings.time.minutes":"Minuten","settings.time.seconds":"Sekunden","back":"Zurück","reset":"Zurücksetzen","replay":"Wiederholen","ads.remainingTime":"Diese Anzeige endet in {remainingTime} Sekunden.","ads.skip":"Überspringen","ads.skippableIn":"Überspringen in {remainingTime}","ads.adNumberOfTotal":"Anzeige {activeAdIndex} von {totalAdsCount}","auto":"automatisch","normal":"normal","default":"standard","live":"Live","colors.white":"weiß","colors.black":"schwarz","colors.red":"rot","colors.green":"grün","colors.blue":"blau","colors.cyan":"cyan","colors.yellow":"gelb","colors.magenta":"magenta","percent":"{value}%","subtitle.example":"Beispiel Untertitel","subtitle.select":"Untertitel auswählen","playingOn":"Spielt auf <strong>{castDeviceName}</strong>","connectingTo":"Verbindung mit <strong>{castDeviceName}</strong> wird hergestellt...","watermarkLink":"Link zum Homepage","controlBar":"Videoplayer Kontrollen","player":"Video player","seekBar":"Video-Timeline","seekBar.value":"Wert","seekBar.timeshift":"Timeshift","seekBar.durationText":"aus","quickseek.forward":"{seekSeconds} Sekunden Vor","quickseek.rewind":"{seekSeconds} Sekunden Zurück","ecoMode":"ecoMode","ecoMode.title":"Eco Mode"}')},7698:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Video Quality","settings.audio.quality":"Audio Quality","settings.audio.track":"Audio Track","settings.audio.mute":"Mute","settings.audio.volume":"Volume","settings.subtitles.window.color":"Window color","settings.subtitles.window.opacity":"Window opacity","settings.subtitles":"Subtitles","settings.subtitles.font.color":"Font color","settings.subtitles.font.opacity":"Font opacity","settings.subtitles.background.color":"Background color","settings.subtitles.background.opacity":"Background opacity","settings.subtitles.options":"Options","colors.white":"white","colors.black":"black","colors.red":"red","colors.green":"green","colors.blue":"blue","colors.cyan":"cyan","colors.yellow":"yellow","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Font size","settings.subtitles.font.style":"Font style","settings.subtitles.font.style.bold":"bold","settings.subtitles.font.style.italic":"italic","settings.subtitles.characterEdge":"Character edge","settings.subtitles.characterEdge.raised":"raised","settings.subtitles.characterEdge.depressed":"depressed","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"drop shadowed","settings.subtitles.characterEdge.color":"Character edge color","settings.subtitles.font.family":"Font family","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Hours","settings.time.minutes":"Minutes","settings.time.seconds":"Seconds","ads.remainingTime":"This ad will end in {remainingTime} seconds.","ads.skip":"Skip","ads.skippableIn":"Skip ad in {remainingTime}","ads.adNumberOfTotal":"Ad {activeAdIndex} of {totalAdsCount}","settings":"Settings","fullscreen":"Fullscreen","speed":"Speed","playPause":"Play/Pause","play":"Play","pause":"Pause","open":"open","close":"Close","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Back","reset":"Reset","replay":"Replay","normal":"normal","default":"default","live":"Live","subtitle.example":"example subtitle","subtitle.select":"Select subtitle","playingOn":"Playing on <strong>{castDeviceName}</strong>","connectingTo":"Connecting to <strong>{castDeviceName}</strong>...","watermarkLink":"Link to Homepage","controlBar":"Video player controls","player":"Video player","seekBar":"Video timeline","seekBar.value":"Value","seekBar.timeshift":"Timeshift","seekBar.durationText":"out of","quickseek.forward":"Fast Forward {seekSeconds} seconds","quickseek.rewind":"Rewind {seekSeconds} seconds"}')},6897:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Calidad de Video","settings.audio.quality":"Calidad de Audio","settings.audio.track":"Pista de Audio","settings.audio.mute":"Silencio","settings.audio.volume":"Volumen","settings.subtitles.window.color":"color de Ventana","settings.subtitles.window.opacity":"opacidad de Ventana","settings.subtitles":"Subtítulos","settings.subtitles.font.color":"color de Fuente","settings.subtitles.font.opacity":"opacidad de Fuente","settings.subtitles.background.color":"color de Fondo","settings.subtitles.background.opacity":"opacidad de Fondo","settings.subtitles.options":"Opciones","colors.white":"blanco","colors.black":"negro","colors.red":"rojo","colors.green":"verde","colors.blue":"azul","colors.cyan":"cian","colors.yellow":"amarillo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"tamaño de Fuente","settings.subtitles.font.style":"Estilo de Fuente","settings.subtitles.font.style.bold":"negrita","settings.subtitles.font.style.italic":"cursiva","settings.subtitles.characterEdge":"borde del Caracter","settings.subtitles.characterEdge.raised":"alzado","settings.subtitles.characterEdge.depressed":"discreto","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"sombreado","settings.subtitles.characterEdge.color":"color de contorno de texto","settings.subtitles.font.family":"tipo de Fuente","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursiva","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este anuncio acabará en {remainingTime} segundos.","ads.skip":"Saltar","ads.skippableIn":"Saltar anuncio en {remainingTime}","ads.adNumberOfTotal":"Anuncio {activeAdIndex} de {totalAdsCount}","settings":"Configuración","fullscreen":"Pantalla Completa","speed":"Velocidad","playPause":"Reproducir/Pausa","play":"Reproducir","pause":"Pausa","open":"Abrir","close":"Cerrar","pictureInPicture":"Imagen en Imagen","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Atrás","reset":"Reiniciar","replay":"Rebobinar","normal":"normal","default":"predeterminado","live":"Directo","subtitle.example":"Ejemplo de Subtítulo","subtitle.select":"Seleccionar subtítulo","playingOn":"Reproduciendo en <strong>{castDeviceName}</strong>","connectingTo":"Conectando a <strong>{castDeviceName}</strong>...","watermarkLink":"Enlace al inicio","controlBar":"Controles del Reproductor","player":"Reproductor de Video","seekBar":"Línea de Tiempo","seekBar.value":"posición","seekBar.timeshift":"cambio de posición","seekBar.durationText":"de","quickseek.forward":"Adelantar {seekSeconds} segundos","quickseek.rewind":"Rebobinar {seekSeconds} segundos"}')},1977:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Qualité vidéo","settings.audio.quality":"Qualité audio","settings.audio.track":"Piste audio","settings.audio.mute":"Couper le son","settings.audio.volume":"Volume","settings.subtitles.window.color":"Couleur de la fenêtre","settings.subtitles.window.opacity":"Opacité de la fenêtre","settings.subtitles":"Sous-titres","settings.subtitles.font.color":"Couleur de la police","settings.subtitles.font.opacity":"Opacité de la police","settings.subtitles.background.color":"Couleur de fond","settings.subtitles.background.opacity":"Opacité du fond","settings.subtitles.options":"Options","colors.white":"blanc","colors.black":"noir","colors.red":"rouge","colors.green":"vert","colors.blue":"bleu","colors.cyan":"cyan","colors.yellow":"jaune","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Taille de la police","settings.subtitles.font.style":"Style de la police","settings.subtitles.font.style.bold":"gras","settings.subtitles.font.style.italic":"italique","settings.subtitles.characterEdge":"Bordure du caractère","settings.subtitles.characterEdge.raised":"en relief","settings.subtitles.characterEdge.depressed":"en creux","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"ombre portée","settings.subtitles.characterEdge.color":"Couleur de la bordure du caractère","settings.subtitles.font.family":"Police de caractères","settings.subtitles.font.family.monospacedserif":"empattement à chasse fixe","settings.subtitles.font.family.proportionalserif":"empattement proportionnel","settings.subtitles.font.family.monospacedsansserif":"sans empattement à chasse fixe","settings.subtitles.font.family.proportionalsansserif":"sans empattement proportionnel","settings.subtitles.font.family.casual":"décontracté","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"petites majuscules","settings.time.hours":"Heures","settings.time.minutes":"Minutes","settings.time.seconds":"Secondes","ads.remainingTime":"Votre contenu reprendra dans {remainingTime} secondes.","ads.skip":"Passer","ads.skippableIn":"Passer l\'annonce dans {remainingTime}","ads.adNumberOfTotal":"Annonce {activeAdIndex} sur {totalAdsCount}","settings":"Réglages","fullscreen":"Plein écran","speed":"Vitesse","playPause":"Lecture/Pause","play":"Lecture","pause":"Pause","open":"ouvrir","close":"Fermer","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"désactivé","auto":"auto","ecoMode":"Mode éco","ecoMode.title":"Mode Éco","back":"Retour","reset":"Réinitialiser","replay":"Rejouer","normal":"normale","default":"défaut","live":"En direct","subtitle.example":"exemple de sous-titre","subtitle.select":"Sélectionner un sous-titre","playingOn":"Lecture sur <strong>{castDeviceName}</strong>","connectingTo":"Connexion à <strong>{castDeviceName}</strong>...","watermarkLink":"Lien vers la page d\'accueil","controlBar":"Barre de contrôle","player":"Lecteur vidéo","seekBar":"Barre de progression","seekBar.value":"Valeur","seekBar.timeshift":"Décalage temporel","seekBar.durationText":"de","quickseek.forward":"Avance rapide de {seekSeconds} secondes","quickseek.rewind":"Retour rapide de {seekSeconds} secondes"}')},2995:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Videokwaliteit","settings.audio.quality":"Audiokwaliteit","settings.audio.track":"Audiospoor","settings.audio.mute":"Dempen","settings.audio.volume":"Volume","settings.subtitles.window.color":"Vensterkleur","settings.subtitles.window.opacity":"Venster doorzichtigheid","settings.subtitles":"Ondertiteling","settings.subtitles.font.color":"Lettertype kleur","settings.subtitles.font.opacity":"Lettertype doorzichtigheid","settings.subtitles.background.color":"Achtergrondkleur","settings.subtitles.background.opacity":"Achtergrond doorzichtigheid","settings.subtitles.options":"Opties","colors.white":"wit","colors.black":"zwart","colors.red":"rood","colors.green":"groen","colors.blue":"blauw","colors.cyan":"cyaan","colors.yellow":"geel","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Lettertype grootte","settings.subtitles.font.style":"Letterstijl","settings.subtitles.font.style.bold":"vet","settings.subtitles.font.style.italic":"cursief","settings.subtitles.characterEdge":"Lettertype rand","settings.subtitles.characterEdge.raised":"verhoogd","settings.subtitles.characterEdge.depressed":"verlaagd","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"schaduw","settings.subtitles.characterEdge.color":"Letterrandkleur","settings.subtitles.font.family":"Standaard lettertype","settings.subtitles.font.family.monospacedserif":"monospace serif","settings.subtitles.font.family.proportionalserif":"proportioneel serif","settings.subtitles.font.family.monospacedsansserif":"monospace sans-serif","settings.subtitles.font.family.proportionalsansserif":"proportioneel sans-serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursief","settings.subtitles.font.family.smallcapital":"kleine hoofdletters","settings.time.hours":"Uren","settings.time.minutes":"Minuten","settings.time.seconds":"Seconden","ads.remainingTime":"Deze advertentie eindigt in {remainingTime} seconden.","ads.skip":"Overslaan","ads.skippableIn":"Advertentie overslaan over {remainingTime}","ads.adNumberOfTotal":"Advertentie {activeAdIndex} van {totalAdsCount}","settings":"Instellingen","fullscreen":"Volledig scherm","speed":"Snelheid","playPause":"Afspelen/Pauzeren","play":"Afspelen","pause":"Pauzeren","open":"Openen","close":"Sluiten","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"uit","auto":"automatisch","ecoMode":"Eco-modus","ecoMode.title":"Eco-modus","back":"Terug","reset":"Reset","replay":"Opnieuw afspelen","normal":"normaal","default":"standaard","live":"Live","subtitle.example":"voorbeeld ondertiteling","subtitle.select":"Selecteer ondertiteling","playingOn":"Speelt af op <strong>{castDeviceName}</strong>","connectingTo":"Verbinden met <strong>{castDeviceName}</strong>...","watermarkLink":"Link naar homepage","controlBar":"Videospeler bediening","player":"Videospeler","seekBar":"Video tijdlijn","seekBar.value":"Waarde","seekBar.timeshift":"Tijdverschuiving","seekBar.durationText":"van","quickseek.forward":"{seekSeconds} seconden vooruitspoelen","quickseek.rewind":"{seekSeconds} seconden terugspoelen"}')},7769:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Qualidade de vídeo","settings.audio.quality":"Qualidade de áudio","settings.audio.track":"Faixa de Áudio","settings.audio.mute":"Silenciar","settings.audio.volume":"Volume","settings.subtitles.window.color":"Cor da janela","settings.subtitles.window.opacity":"Opacidade da janela","settings.subtitles":"Legendas","settings.subtitles.font.color":"Cor do texto","settings.subtitles.font.opacity":"Opacidade do texto","settings.subtitles.background.color":"Cor do fundo","settings.subtitles.background.opacity":"Opacidade do fundo","settings.subtitles.options":"Opções","colors.white":"branco","colors.black":"preto","colors.red":"vermelho","colors.green":"verde","colors.blue":"azul","colors.cyan":"ciano","colors.yellow":"amarelo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Tamanho do texto","settings.subtitles.font.style":"Estilo do texto","settings.subtitles.font.style.bold":"negrito","settings.subtitles.font.style.italic":"itálico","settings.subtitles.characterEdge":"Borda do texto","settings.subtitles.characterEdge.raised":"levantada","settings.subtitles.characterEdge.depressed":"deprimida","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"com sombra","settings.subtitles.characterEdge.color":"Cor da borda do texto","settings.subtitles.font.family":"Família de fontes","settings.subtitles.font.family.monospacedserif":"serifado monoespaçado","settings.subtitles.font.family.proportionalserif":"serifado proporcional","settings.subtitles.font.family.monospacedsansserif":"monoespaçado sem serifa","settings.subtitles.font.family.proportionalsansserif":"proporcional sem serifa","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursivo","settings.subtitles.font.family.smallcapital":"letras minúsculas","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este anúncio vai terminar em {remainingTime} segundos.","ads.skip":"Ignorar","ads.skippableIn":"Ignorar anúncio em {remainingTime}","ads.adNumberOfTotal":"Anúncio {activeAdIndex} de {totalAdsCount}","settings":"Definições","fullscreen":"Ecrã inteiro","speed":"Velocidade","playPause":"Reproduzir/Pausar","play":"Reproduzir","pause":"Pausar","open":"abrir","close":"Fechar","pictureInPicture":"Imagem em imagem","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"Realidade Virtual","off":"desligado","auto":"automático","ecoMode":"ecoMode","ecoMode.title":"Modo Económico","back":"Voltar atrás","reset":"Reiniciar","replay":"Repetir","normal":"normal","default":"predefinição","live":"Ao Vivo","subtitle.example":"exemplo de legenda","subtitle.select":"Selecionar legenda","playingOn":"A reproduzir em <strong>{castDeviceName}</strong>","connectingTo":"A conectar a <strong>{castDeviceName}</strong>...","watermarkLink":"Link para a página inicial","controlBar":"Controlos do reprodutor de vídeo","player":"Reprodutor de vídeo","seekBar":"Linha do tempo do vídeo","seekBar.value":"Valor","seekBar.timeshift":"Diferido","seekBar.durationText":"de","quickseek.forward":"Avançar {seekSeconds} segundos","quickseek.rewind":"Retroceder {seekSeconds} segundos"}')}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}return n(5437),n(4878)}()});
17
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["bitmovinplayer-ui"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerui=t())}(self,function(){return function(){var e={5437:function(){},323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((o=o.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,o,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(r=0)),r;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(6===a[0]&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DOM=void 0;var i=function(){function e(e,t,n){if(e instanceof Array){if(e.length>0&&e[0]instanceof HTMLElement){var o=e;this.elements=o}}else if(e instanceof HTMLElement){var i=e;this.elements=[i]}else if(e instanceof Document||e instanceof ShadowRoot)this.documentOrShadowRoot=e,this.elements=null;else if(t){var r=e;for(var s in i=document.createElement(r),t){var a=t[s];null!=a&&i.setAttribute(s,a)}n&&(i.component=n),this.elements=[i]}else{var l=e;this.elements=this.findChildElements(l)}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.elements?this.elements.length:0},enumerable:!1,configurable:!0}),e.prototype.get=function(e){return void 0===e?this.elements:!this.elements||e>=this.elements.length||e<-this.elements.length?void 0:e<0?this.elements[this.elements.length-e]:this.elements[e]},e.prototype.forEach=function(e){this.elements&&this.elements.forEach(function(t){e(t)})},e.prototype.findChildElementsOfElement=function(e,t){var n=e.querySelectorAll(t);return[].slice.call(n)},e.prototype.findChildElements=function(e){var t=this,n=[];return this.elements?(this.forEach(function(o){n=n.concat(t.findChildElementsOfElement(o,e))}),n):this.findChildElementsOfElement(document,e)},e.prototype.find=function(t){return new e(this.findChildElements(t))},e.prototype.focusToFirstInput=function(){var e=this.findChildElements('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e.length>0&&e[0].focus()},e.prototype.scrollTo=function(e,t){this.elements[0].scrollTo(e,t)},e.prototype.html=function(e){return arguments.length>0?this.setHtml(e):this.getHtml()},e.prototype.getHtml=function(){return this.elements[0].innerHTML},e.prototype.setHtml=function(e){return void 0!==e&&null!=e||(e=""),this.forEach(function(t){t.innerHTML=e}),this},e.prototype.empty=function(){return this.forEach(function(e){e.innerHTML=""}),this},e.prototype.val=function(){var e=this.elements[0];if(e instanceof HTMLSelectElement||e instanceof HTMLInputElement)return e.value;throw new Error("val() not supported for ".concat(typeof e))},e.prototype.attr=function(e,t){return arguments.length>1?this.setAttr(e,t):this.getAttr(e)},e.prototype.removeAttr=function(e){this.forEach(function(t){t.removeAttribute(e)})},e.prototype.getAttr=function(e){return this.elements[0].getAttribute(e)},e.prototype.setAttr=function(e,t){return this.forEach(function(n){n.setAttribute(e,t)}),this},e.prototype.data=function(e,t){return arguments.length>1?this.setData(e,t):this.getData(e)},e.prototype.getData=function(e){return this.elements[0].getAttribute("data-"+e)},e.prototype.setData=function(e,t){return this.forEach(function(n){n.setAttribute("data-"+e,t)}),this},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.appendChild(e.elements[o])})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(t){e.forEach(function(e){e.elements.forEach(function(n,o){t.insertBefore(e.elements[o],t.firstChild)})})};return this.elements?this.forEach(function(e){return n(e)}):n(this.documentOrShadowRoot),this},e.prototype.remove=function(){var e=function(e){var t=e.parentNode;t&&t.removeChild(e)};this.elements?this.forEach(function(t){return e(t)}):e(this.documentOrShadowRoot)},e.prototype.offset=function(){var e=this.elements[0].getBoundingClientRect(),t=document.body.parentElement.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left}},e.prototype.width=function(){return this.elements[0].offsetWidth},e.prototype.height=function(){return this.elements[0].offsetHeight},e.prototype.size=function(){return{width:this.width(),height:this.height()}},e.prototype.on=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.addEventListener(e,t,n):o.forEach(function(o){o.addEventListener(e,t,n)})}),this},e.prototype.off=function(e,t,n){var o=this;return e.split(" ").forEach(function(e){null==o.elements?o.documentOrShadowRoot.removeEventListener(e,t,n):o.forEach(function(o){o.removeEventListener(e,t,n)})}),this},e.prototype.waitForTransitionEnd=function(e){return n(this,void 0,void 0,function(){var t,n=this;return o(this,function(o){return(t=this.get(0))&&"none"!==getComputedStyle(t).transitionProperty?[2,new Promise(function(o){var i=function(r){var s=r;s.target===t&&s.propertyName===e&&(n.off("transitionend",i),n.off("transitioncancel",i),o())};n.on("transitionend",i),n.on("transitioncancel",i)})]:[2]})})},e.prototype.addClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).add.apply(n,o)}else t.className+=" "+e}),this},e.prototype.removeClass=function(e){return this.forEach(function(t){var n;if(t.classList){var o=e.split(" ").filter(function(e){return e.length>0});o.length>0&&(n=t.classList).remove.apply(n,o)}else t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}),this},e.prototype.hasClass=function(e){var t=!1;return this.forEach(function(n){n.classList?n.classList.contains(e)&&(t=!0):new RegExp("(^| )"+e+"( |$)","gi").test(n.className)&&(t=!0)}),t},e.prototype.css=function(e,t){if("string"==typeof e){var n=e;return 2===arguments.length?this.setCss(n,t):this.getCss(n)}var o=e;return this.setCssCollection(o)},e.prototype.removeCss=function(e,t){return void 0===t&&(t=0),this.elements[t].style.removeProperty(e)},e.prototype.getCss=function(e){return getComputedStyle(this.elements[0])[e]},e.prototype.setCss=function(e,t){return this.forEach(function(n){n.style[e]=t}),this},e.prototype.setCssCollection=function(e){return this.forEach(function(t){Object.assign(t.style,e)}),this},e}();t.DOM=i},938:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var r=n(1971),s=n(3998),a=function(){function e(){this.listeners=[]}return e.prototype.subscribe=function(e){this.listeners.push(new l(e))},e.prototype.subscribeOnce=function(e){this.listeners.push(new l(e,!0))},e.prototype.subscribeRateLimited=function(e,t){this.listeners.push(new c(e,t))},e.prototype.unsubscribe=function(e){for(var t=0;t<this.listeners.length;t++){var n=this.listeners[t];if(n.listener===e)return n.clear(),r.ArrayUtils.remove(this.listeners,n),!0}return!1},e.prototype.unsubscribeAll=function(){for(var e=0,t=this.listeners;e<t.length;e++)t[e].clear();this.listeners=[]},e.prototype.dispatch=function(e,t){void 0===t&&(t=null);for(var n=[],o=0,i=this.listeners.slice(0);o<i.length;o++){var s=i[o];s.fire(e,t),s.isOnce()&&n.push(s)}for(var a=0,l=n;a<l.length;a++){var c=l[a];r.ArrayUtils.remove(this.listeners,c)}},e.prototype.getEvent=function(){return this},e}();t.EventDispatcher=a;var l=function(){function e(e,t){void 0===t&&(t=!1),this.eventListener=e,this.once=t}return Object.defineProperty(e.prototype,"listener",{get:function(){return this.eventListener},enumerable:!1,configurable:!0}),e.prototype.fire=function(e,t){this.eventListener(e,t)},e.prototype.isOnce=function(){return this.once},e.prototype.clear=function(){},e}(),c=function(e){function t(t,n){var o=e.call(this,t)||this;o.rateMs=n;var i=function(){o.rateLimitTimout.start()};return o.rateLimitTimout=new s.Timeout(o.rateMs,function(){o.lastSeenEvent&&(o.fireSuper(o.lastSeenEvent.sender,o.lastSeenEvent.args),i(),o.lastSeenEvent=null)}),o.rateLimitingEventListener=function(e,t){if(o.shouldFireEvent())return o.fireSuper(e,t),void i();o.lastSeenEvent={sender:e,args:t}},o}return i(t,e),t.prototype.shouldFireEvent=function(){return!this.rateLimitTimout.isActive()},t.prototype.fireSuper=function(t,n){e.prototype.fire.call(this,t,n)},t.prototype.fire=function(e,t){this.rateLimitingEventListener(e,t)},t.prototype.clear=function(){e.prototype.clear.call(this),this.rateLimitTimout.clear()},t}(l)},3423:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7247:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.UIFactory=void 0;var r,s=n(4048),a=n(8666),l=n(6441),c=n(9523),u=n(1886),p=n(6448),f=n(4073),d=n(8634),g=n(8902),h=n(5277),y=n(9052),v=n(1779),m=n(8950),b=n(9024),C=n(9819),S=n(7273),P=n(4617),w=n(5110),E=n(6003),_=n(8754),O=n(5829),k=n(5932),x=n(1291),T=n(4200),A=n(739),M=n(2717),I=n(6233),L=n(2680),B=n(8876),j=n(1904),D=n(2691),U=n(5705),F=n(9529),R=n(1942),H=n(823),z=n(5816),V=n(3850),N=n(4947),W=n(7395),G=n(4536),K=n(1758),q=n(5801),Q=n(1015),Y=n(796),X=n(7776),J=n(4487),Z=n(6250),$=n(9263),ee=n(2963),te=n(1368),ne=n(7280),oe=n(4636),ie=n(4103),re=n(5375),se=n(5256),ae=n(9434),le=n(5526);!function(e){function t(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!1);var o={components:[],hidden:!0,pageTransitionAnimation:!0};null!=t&&(o.hideDelay=t);var i=new f.SettingsPanel(o),r=[new ee.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.video.quality"),settingComponent:new l.VideoQualitySelectBox,container:i}),new ee.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("speed"),settingComponent:new c.PlaybackSpeedSelectBox,container:i}),new ee.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.audio.track"),settingComponent:new u.AudioTrackSelectBox,container:i}),new ee.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.audio.quality"),settingComponent:new p.AudioQualitySelectBox,container:i})];if(n){var s=new $.EcoModeContainer;s.setOnToggleCallback(function(){i.getDomElement().css({width:"",height:""})}),r.unshift(s)}var y=new a.SettingsPanelPage({components:r});i.addComponent(y);var v=new d.SubtitleSettingsPanelPage({settingsPanel:i,overlay:e,useDynamicSettingsPanelItem:!0}),m=new g.SettingsPanelPageOpenButton({targetPage:v,container:i,ariaLabel:q.i18n.getLocalizer("settings.subtitles"),text:q.i18n.getLocalizer("settings.subtitles.options")}),b=new h.SubtitleSelectBox,C=new ee.DynamicSettingsPanelItem({label:q.i18n.getLocalizer("settings.subtitles"),backNavigationRightComponent:m,settingComponent:b,container:i});return y.addComponent(C),i.addComponent(v),i}var n;e.buildUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.emptyState(),condition:function(e){return!e.isSourceLoaded}},{ui:e.defaultLayouts.smallScreenAds(),condition:function(e){return e.documentWidth<800&&e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.smallScreen(),condition:function(e){return!e.isAd&&!e.adRequiresUi&&e.documentWidth<800}},o(o({},e.defaultLayouts.tvAds()),{condition:function(e){return e.isTv&&e.isAd&&e.adRequiresUi}}),o(o({},e.defaultLayouts.tv()),{condition:function(e){return e.isTv&&!e.isAd&&!e.adRequiresUi}}),{ui:e.defaultLayouts.ads(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.main(n),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],n)},e.buildSmallScreenUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[{ui:e.defaultLayouts.smallScreenAds(),condition:function(e){return e.isAd&&e.adRequiresUi}},{ui:e.defaultLayouts.smallScreen(),condition:function(e){return!e.isAd&&!e.adRequiresUi}}],n)},e.buildCastReceiverUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,e.defaultLayouts.castReceiver(n),n)},e.buildTvUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,[o(o({},e.defaultLayouts.tvAds()),{condition:function(e){return e.isAd&&e.adRequiresUi}}),o(o({},e.defaultLayouts.tv()),{condition:function(e){return!e.isAd&&!e.adRequiresUi}})],n)},e.buildSubtitleUI=function(t,n){return void 0===n&&(n={}),new K.UIManager(t,e.defaultLayouts.subtitle(),n)},(n=e.defaultLayouts||(e.defaultLayouts={})).subtitle=function(){var e=new s.SubtitleOverlay,t=new f.SettingsPanel({components:[],hidden:!0}),n=new d.SubtitleSettingsPanelPage({settingsPanel:t,overlay:e});return t.addComponent(n),new I.UIContainer({components:[e,t]})},n.main=function(e){void 0===e&&(e={});var n=new s.SubtitleOverlay,o=se.BrowserUtils.isMobile?null:new le.PlayerInsightsPanel({hidden:!0}),r=o?new B.PlayerContextMenu({playerInsightsPanel:o}):null,a=t(n,void 0,!0===e.ecoMode),l=new y.ControlBar({components:[new v.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new v.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new E.VolumeSlider,new _.Spacer,new O.PictureInPictureToggleButton,new k.AirPlayToggleButton,new x.CastToggleButton,new T.VRToggleButton,new A.SettingsToggleButton({settingsPanel:a}),new M.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]}),c=i(i([e.includeWatermark?new R.Watermark:null],o?[o]:[],!0),r?[new oe.DismissClickOverlay({target:r}),r]:[],!0).filter(function(e){return e});return new I.UIContainer({components:i(i([n,new L.BufferingOverlay,new j.PlaybackToggleOverlay,new D.CastStatusOverlay,l,new U.TitleBar,new F.RecommendationOverlay],c,!0),[new oe.DismissClickOverlay({target:a}),a,new H.ErrorMessageOverlay],!1),hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},n.ads=function(){var e=new V.AdControlBar({components:[new v.Container({components:[new m.AdCounterLabel,new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new v.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new _.Spacer,new M.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new I.UIContainer({components:[new L.BufferingOverlay,new z.AdClickOverlay,new j.PlaybackToggleOverlay,new ne.AdStatusOverlay,e,new U.TitleBar({components:[new v.Container({components:[new ie.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new H.ErrorMessageOverlay],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished],cssClasses:["ui-ads"]})},n.smallScreen=function(){var e=new s.SubtitleOverlay,n=se.BrowserUtils.isMobile?null:new le.PlayerInsightsPanel({hidden:!0}),o=n?new B.PlayerContextMenu({playerInsightsPanel:n}):null,r=t(e,-1),a=new y.ControlBar({components:[new v.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),new v.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new E.VolumeSlider,new _.Spacer,new O.PictureInPictureToggleButton,new A.SettingsToggleButton({settingsPanel:r}),new M.FullscreenToggleButton],cssClasses:["controlbar-bottom"]})]});return new I.UIContainer({components:i(i(i(i([e,new L.BufferingOverlay,new D.CastStatusOverlay,se.BrowserUtils.isMobile?new te.TouchControlOverlay:new j.PlaybackToggleOverlay,new F.RecommendationOverlay,a,new U.TitleBar({components:[new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title}),new _.Spacer,new x.CastToggleButton,new k.AirPlayToggleButton,new T.VRToggleButton],cssClasses:["titlebar-row"]})]})],n?[n]:[],!0),[new oe.DismissClickOverlay({target:r}),r],!1),o?[new oe.DismissClickOverlay({target:o}),o]:[],!0),[new H.ErrorMessageOverlay],!1),cssClasses:["ui-smallscreen"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},n.smallScreenAds=function(){var e=new V.AdControlBar({components:[new v.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime}),new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]}),new v.Container({components:[new P.PlaybackToggleButton,new w.VolumeToggleButton,new _.Spacer,new M.FullscreenToggleButton],cssClasses:["ad-controlbar-bottom"]})]});return new I.UIContainer({components:[new L.BufferingOverlay,new z.AdClickOverlay,new j.PlaybackToggleOverlay,e,new U.TitleBar({components:[new v.Container({components:[new ie.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new ne.AdStatusOverlay,new H.ErrorMessageOverlay],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished],cssClasses:["ui-smallscreen","ui-ads"]})},n.castReceiver=function(e){void 0===e&&(e={});var t=new y.ControlBar({components:[new v.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),new C.SeekBar({smoothPlaybackPositionUpdateIntervalMs:-1}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]})]}),n=[e.includeWatermark?new R.Watermark:null].filter(function(e){return e});return new G.CastUIContainer({components:i(i([new s.SubtitleOverlay,new L.BufferingOverlay,new j.PlaybackToggleOverlay,t,new U.TitleBar({keepHiddenWithoutMetadata:!0})],n,!0),[new H.ErrorMessageOverlay],!1),cssClasses:["ui-cast-receiver"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]})},n.tv=function(){var e=new C.SeekBar({label:new S.SeekBarLabel}),n=new s.SubtitleOverlay,o=t(n,5e3),i=new Q.SubtitleListBox({title:q.i18n.getLocalizer("settings.subtitles")}),r=new A.SettingsToggleButton({settingsPanel:i,autoHideWhenNoActiveSettings:!0,cssClass:"ui-subtitle-list-box-toggle-button",text:q.i18n.getLocalizer("settings.subtitles")}),a=new Y.AudioTrackListBox({title:q.i18n.getLocalizer("settings.audio.track")}),l=new A.SettingsToggleButton({settingsPanel:a,autoHideWhenNoActiveSettings:!0,cssClass:"ui-audio-track-list-box-toggle-button",text:q.i18n.getLocalizer("settings.audio.track")}),c=new U.TitleBar({components:[new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Title})],cssClasses:["ui-titlebar-top"]}),new v.Container({components:[new N.MetadataLabel({content:N.MetadataLabelContent.Description})],cssClasses:["ui-titlebar-bottom"]})]}),u=new P.PlaybackToggleButton,p=new v.Container({components:[u,new _.Spacer,r,l,new A.SettingsToggleButton({settingsPanel:o})],cssClasses:["controlbar-bottom"]}),f=new y.ControlBar({components:[new v.Container({components:[new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.CurrentTime,hideInLivePlayback:!0}),e,new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.TotalTime,cssClasses:["text-right"]})],cssClasses:["controlbar-top"]}),p]}),d=new j.PlaybackToggleOverlay,g=new F.RecommendationOverlay,h=new I.UIContainer({components:[n,new L.BufferingOverlay,d,f,c,o,i,a,g,new H.ErrorMessageOverlay],cssClasses:["ui-tv"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]});return{ui:h,spatialNavigation:new X.SpatialNavigation(new J.RootNavigationGroup(h,d,e,new re.FocusableContainer(p,u)),new Z.SettingsPanelNavigationGroup(o,{closeOnSelect:!1}),new Z.SettingsPanelNavigationGroup(i),new Z.SettingsPanelNavigationGroup(a),new ae.RecommendationOverlayNavigationGroup(g))}},n.tvAds=function(){var e=new j.PlaybackToggleOverlay,t=new ne.AdStatusOverlay,n=new I.UIContainer({components:[new L.BufferingOverlay,new z.AdClickOverlay,e,t,new V.AdControlBar({components:[new v.Container({components:[new m.AdCounterLabel,new C.SeekBar({label:new S.SeekBarLabel}),new b.PlaybackTimeLabel({timeLabelMode:b.PlaybackTimeLabelMode.RemainingTime,cssClasses:["text-right"]})],cssClasses:["ad-controlbar-top"]})]}),new U.TitleBar({components:[new v.Container({components:[new ie.AdMessageLabel],cssClasses:["ui-titlebar-top"]})],keepHiddenWithoutMetadata:!0}),new H.ErrorMessageOverlay],cssClasses:["ui-tv","ui-ads"],hidePlayerStateExceptions:[W.PlayerUtils.PlayerState.Prepared,W.PlayerUtils.PlayerState.Paused,W.PlayerUtils.PlayerState.Finished]});return{ui:n,spatialNavigation:new X.SpatialNavigation(new J.RootNavigationGroup(n,e,t.adSkipButton))}},n.emptyState=function(){return new I.UIContainer({components:[new L.BufferingOverlay,new j.PlaybackToggleOverlay,new H.ErrorMessageOverlay],cssClasses:["ui","ui-empty-state"]})}}(r||(t.UIFactory=r={}))},1758:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapper=t.UIInstanceManager=t.UIManager=void 0;var a=n(6233),l=n(323),c=n(1779),u=n(938),p=n(3226),f=n(1971),d=n(5256),g=n(1767),h=n(5801),y=n(8101),v=n(2157),m=n(7885),b=n(8919),C=n(7682),S=n(1281),P=function(){function e(e,t,n){void 0===n&&(n={});var o=this;if(this.events={onUiVariantResolve:new u.EventDispatcher,onActiveUiChanged:new u.EventDispatcher},t instanceof a.UIContainer){var i=t,c=[];c.push({ui:i}),this.uiVariants=c}else this.uiVariants=t;this.subtitleSettingsManager=new m.SubtitleSettingsManager,this.shadowDomManager=new C.ShadowDomManager,this.player=e,this.managerPlayerWrapper=new _(e),n.metadata=n.metadata?n.metadata:{},this.config=r(r({playbackSpeedSelectionEnabled:!0,autoUiVariantResolve:!0,disableAutoHideWhenHovered:!1,enableSeekPreview:!0,shadowDom:!1},n),{events:{onUpdated:new u.EventDispatcher},volumeController:new g.VolumeController(this.managerPlayerWrapper.getPlayer()),adBreakTracker:new S.AdBreakTracker(this.managerPlayerWrapper.getPlayer())}),this.recommendationsApi={add:function(e){o.config.metadata.recommendations.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return f.ArrayUtils.remove(o.config.metadata.recommendations,e)===e&&(o.config.events.onUpdated.dispatch(o),!0)},list:function(){return s([],o.config.metadata.recommendations,!0)}},this.timelineMarkersApi={add:function(e){o.config.metadata.markers.push(e),o.config.events.onUpdated.dispatch(o)},remove:function(e){return f.ArrayUtils.remove(o.config.metadata.markers,e)===e&&(o.config.events.onUpdated.dispatch(o),!0)},list:function(){return s([],o.config.metadata.markers,!0)}};var p=function(){var t=e.getSource()||{};o.config.metadata=r({},n.metadata);var i={metadata:{title:t.title,description:t.description,markers:t.markers,recommendations:t.recommendations}};o.config.metadata.title=i.metadata.title||n.metadata.title,o.config.metadata.description=i.metadata.description||n.metadata.description,o.config.metadata.markers=s([],i.metadata.markers||n.metadata.markers||[],!0),o.config.metadata.recommendations=s([],i.metadata.recommendations||n.metadata.recommendations||[],!0),b.StorageUtils.setStorageApiDisabled(n)};p(),this.config.localization&&h.i18n.setConfig(this.config.localization),this.subtitleSettingsManager.initialize();var d=function(){p(),o.config.events.onUpdated.dispatch(o)},P=this.managerPlayerWrapper.getPlayer();P.on(this.player.exports.PlayerEvent.SourceLoaded,d),(0,v.isMobileV3PlayerAPI)(P)&&P.on(v.MobileV3PlayerEvent.PlaylistTransition,d),n.container?this.uiContainerElement=(n.container,HTMLElement,new l.DOM(n.container)):this.uiContainerElement=new l.DOM(e.getContainer()),(1==this.config.shadowDom||this.config.shadowDom&&this.config.shadowDom.enabled)&&(C.ShadowDomManager.isShadowDomSupported()?this.shadowDomManager.initialize(this.uiContainerElement,!0===this.config.shadowDom?{enabled:!0}:this.config.shadowDom):console.warn("Shadow DOM is not supported in this environment. Falling back to classic UI rendering.")),this.uiInstanceManagers=[];for(var w=[],O=0,k=this.uiVariants;O<k.length;O++){var x=k[O];null==x.condition&&w.push(x),this.uiInstanceManagers.push(new E(e,x.ui,this.config,this.subtitleSettingsManager,this.uiWrapperElement,x.spatialNavigation))}if(w.length>1)throw Error("Too many UIs without a condition: You cannot have more than one default UI");if(w.length>0&&w[0]!==this.uiVariants[this.uiVariants.length-1])throw Error("Invalid UI variant order: the default UI (without condition) must be at the end of the list");var T=null,A=null!=e.getSource();e.on(e.exports.PlayerEvent.SourceLoaded,function(){A=!0}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){A=!1});var M=function(t){if(null!=t)switch(t.type){case e.exports.PlayerEvent.AdStarted:T=t;break;case e.exports.PlayerEvent.AdBreakFinished:T=null,o.config.events.onUpdated.dispatch(o);break;case e.exports.PlayerEvent.SourceLoaded:break;case e.exports.PlayerEvent.SourceUnloaded:T=null}var n=null!=T,i=!1;if(n){var r=T.ad;if(r.isLinear){var s=r;i=s.uiConfig&&s.uiConfig.requestsUi||!1}}i&&o.config.events.onUpdated.dispatch(o),o.resolveUiVariant({isAd:n,adRequiresUi:i,isSourceLoaded:A},function(e){e.isAd&&o.currentUi.getWrappedPlayer().fireEventInUI(o.player.exports.PlayerEvent.AdStarted,T)})};this.config.autoUiVariantResolve&&(this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceLoaded,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.SourceUnloaded,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Play,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Paused,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.Playing,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdStarted,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.AdBreakFinished,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.PlayerResized,M),this.managerPlayerWrapper.getPlayer().on(this.player.exports.PlayerEvent.ViewModeChanged,M)),this.focusVisibilityTracker=new y.FocusVisibilityTracker("bmpui",this.uiWrapperElement),M(null)}return e.localize=function(e){return h.i18n.getLocalizer(e)},e.setLocalizationConfig=function(e){h.i18n.setConfig(e)},e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUiVariants=function(){return this.uiVariants},e.prototype.switchToUiVariant=function(e,t){var n=this.uiVariants.indexOf(e),o=this.currentUi,i=this.uiInstanceManagers[n];i!==this.currentUi&&(this.currentUi&&(this.currentUi.onInactive.dispatch(this.currentUi.getUI()),this.currentUi.getUI().hide()),this.currentUi=i,null!=this.currentUi&&(this.currentUi.isConfigured()||(this.addUi(this.currentUi),this.currentUi.getUI().isHidden()||this.currentUi.getUI().hide()),t&&t(),this.currentUi.getUI().show(),this.currentUi.onActive.dispatch(this.currentUi.getUI()),this.events.onActiveUiChanged.dispatch(this,{previousUi:o,currentUi:i})))},e.prototype.resolveUiVariant=function(e,t){void 0===e&&(e={});var n={isAd:!1,adRequiresUi:!1,isFullscreen:this.player.getViewMode()===this.player.exports.ViewMode.Fullscreen,isMobile:d.BrowserUtils.isMobile,isTv:d.BrowserUtils.isTv,isPlaying:this.player.isPlaying(),isSourceLoaded:!1,width:this.uiContainerElement.width(),documentWidth:document.body.clientWidth},o=r(r({},n),e);this.events.onUiVariantResolve.dispatch(this,o);for(var i=null,s=0,a=this.uiVariants;s<a.length;s++){var l=a[s],c=null==l.condition||!0===l.condition(o);null==i&&c?i=l:l.ui.hide()}this.switchToUiVariant(i,function(){t&&t(o)})},Object.defineProperty(e.prototype,"uiWrapperElement",{get:function(){var e=this.shadowDomManager.getShadowRoot();return null!=e?new l.DOM(e):this.uiContainerElement},enumerable:!1,configurable:!0}),e.prototype.addUi=function(e){var t=e.getUI().getDomElement(),n=e.getWrappedPlayer();e.configureControls(),this.uiWrapperElement.append(t),n.getSource()&&this.config.events.onUpdated.dispatch(this),window.requestAnimationFrame?requestAnimationFrame(function(){e.onConfigured.dispatch(e.getUI())}):setTimeout(function(){e.onConfigured.dispatch(e.getUI())},0)},e.prototype.releaseUi=function(e){e.releaseControls();var t=e.getUI();t.hasDomElement()&&t.getDomElement().remove(),e.clearEventHandlers()},e.prototype.release=function(){this.config.adBreakTracker.release(),this.currentUi&&(this.currentUi.onInactive.dispatch(this.currentUi.getUI()),this.currentUi=null);for(var e=0,t=this.uiInstanceManagers;e<t.length;e++){var n=t[e];this.releaseUi(n)}this.managerPlayerWrapper.clearEventHandlers(),this.focusVisibilityTracker.release(),this.shadowDomManager.release()},Object.defineProperty(e.prototype,"onUiVariantResolve",{get:function(){return this.events.onUiVariantResolve},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onActiveUiChanged",{get:function(){return this.events.onActiveUiChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeUi",{get:function(){return this.currentUi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recommendations",{get:function(){return this.recommendationsApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timelineMarkers",{get:function(){return this.timelineMarkersApi},enumerable:!1,configurable:!0}),e.prototype.getTimelineMarkers=function(){return this.timelineMarkers.list()},e.prototype.addTimelineMarker=function(e){this.timelineMarkers.add(e)},e.prototype.removeTimelineMarker=function(e){return this.timelineMarkers.remove(e)},e}();t.UIManager=P;var w=function(){function e(e,t,n,o,i,r){this.events={onConfigured:new u.EventDispatcher,onActive:new u.EventDispatcher,onInactive:new u.EventDispatcher,onSeek:new u.EventDispatcher,onSeekPreview:new u.EventDispatcher,onSeeked:new u.EventDispatcher,onComponentShow:new u.EventDispatcher,onComponentHide:new u.EventDispatcher,onComponentViewModeChanged:new u.EventDispatcher,onControlsShow:new u.EventDispatcher,onPreviewControlsHide:new u.EventDispatcher,onControlsHide:new u.EventDispatcher,onRelease:new u.EventDispatcher,onBufferingShow:new u.EventDispatcher,onBufferingHide:new u.EventDispatcher},this.playerWrapper=new _(e),this.ui=t,this.config=n,this.subtitleSettingsManager=o,this.uiWrapperElement=i,this.spatialNavigation=r}return e.prototype.getSubtitleSettingsManager=function(){return this.subtitleSettingsManager},e.prototype.getConfig=function(){return this.config},e.prototype.getUI=function(){return this.ui},e.prototype.getPlayer=function(){return this.playerWrapper.getPlayer()},Object.defineProperty(e.prototype,"onConfigured",{get:function(){return this.events.onConfigured},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onActive",{get:function(){return this.events.onActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInactive",{get:function(){return this.events.onInactive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeek",{get:function(){return this.events.onSeek},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeekPreview",{get:function(){return this.events.onSeekPreview},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this.events.onSeeked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentShow",{get:function(){return this.events.onComponentShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentHide",{get:function(){return this.events.onComponentHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsShow",{get:function(){return this.events.onControlsShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onPreviewControlsHide",{get:function(){return this.events.onPreviewControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onControlsHide",{get:function(){return this.events.onControlsHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingShow",{get:function(){return this.events.onBufferingShow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBufferingHide",{get:function(){return this.events.onBufferingHide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRelease",{get:function(){return this.events.onRelease},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComponentViewModeChanged",{get:function(){return this.events.onComponentViewModeChanged},enumerable:!1,configurable:!0}),e.prototype.clearEventHandlers=function(){this.playerWrapper.clearEventHandlers();var e=this.events;for(var t in e)e[t].unsubscribeAll()},e}();t.UIInstanceManager=w;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getWrappedPlayer=function(){return this.getPlayer()},t.prototype.configureControls=function(){this.configureControlsTree(this.getUI()),this.configured=!0},t.prototype.isConfigured=function(){return this.configured},t.prototype.configureControlsTree=function(e){var t=this,n=[];p.UIUtils.traverseTree(e,function(e){for(var o=0,i=n;o<i.length;o++)if(i[o]===e)throw console&&console.error("Circular reference in UI tree",e),Error("Circular reference in UI tree: "+e.constructor.name);e.initialize(),e.configure(t.getPlayer(),t),n.push(e)})},t.prototype.releaseControls=function(){var e;this.configured&&(this.onRelease.dispatch(this.getUI()),this.releaseControlsTree(this.getUI()),this.configured=!1),null===(e=this.spatialNavigation)||void 0===e||e.release(),this.released=!0},t.prototype.isReleased=function(){return this.released},t.prototype.releaseControlsTree=function(e){if(e.release(),e instanceof c.Container)for(var t=0,n=e.getComponents();t<n.length;t++){var o=n[t];this.releaseControlsTree(o)}},t.prototype.clearEventHandlers=function(){e.prototype.clearEventHandlers.call(this)},t}(w),_=function(){function e(e){var t=this;this.eventHandlers={},this.player=e;for(var n=Object.getOwnPropertyNames(Object.getPrototypeOf({})),o=s(["constructor"],n,!0),i=[],r=[],a=0,l=function(e){for(var t=[];e;){var n=Object.getOwnPropertyNames(e).filter(function(e){return-1===t.indexOf(e)});t=t.concat(n),e=Object.getPrototypeOf(e)}return t}(e).filter(function(e){return-1===o.indexOf(e)});a<l.length;a++){var c=l[a];"function"==typeof e[c]?i.push(c):r.push(c)}for(var u={},p=function(t){u[t]=function(){return e[t].apply(e,arguments)}},d=0,g=i;d<g.length;d++)p(g[d]);for(var h=function(t){var n=function(e){for(;e;){var n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;e=Object.getPrototypeOf(e)}}(e);n&&(n.get||n.set)?Object.defineProperty(u,t,{get:function(){return n.get.call(e)},set:function(t){return n.set.call(e,t)}}):u[t]=e[t]},y=0,v=r;y<v.length;y++)h(v[y]);u.on=function(n,o){return e.on(n,o),t.eventHandlers[n]||(t.eventHandlers[n]=[]),t.eventHandlers[n].push(o),u},u.off=function(n,o){return e.off(n,o),t.eventHandlers[n]&&f.ArrayUtils.remove(t.eventHandlers[n],o),u},u.fireEventInUI=function(e,n){if(t.eventHandlers[e])for(var o=Object.assign({},{timestamp:Date.now(),type:e,uiSourced:!0},n),i=0,r=t.eventHandlers[e];i<r.length;i++)(0,r[i])(o)},this.wrapper=u}return e.prototype.getPlayer=function(){return this.wrapper},e.prototype.clearEventHandlers=function(){try{this.player.getSource()}catch(e){e instanceof this.player.exports.PlayerAPINotAvailableError&&(this.eventHandlers={})}for(var e in this.eventHandlers)for(var t=0,n=this.eventHandlers[e];t<n.length;t++){var o=n[t];this.player.off(e,o)}},e}();t.PlayerWrapper=_},4536:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastUIContainer=void 0;var r=n(6233),s=n(3998),a=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1;this.castUiHideTimeout=new s.Timeout(i.hideDelay,function(){n.onControlsHide.dispatch(o),r=!1});var a=function(){r||(n.onControlsShow.dispatch(o),r=!0)},l=function(){a(),o.castUiHideTimeout.clear()},c=function(){a(),o.castUiHideTimeout.start()};t.on(t.exports.PlayerEvent.Play,c),t.on(t.exports.PlayerEvent.Paused,l),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,function(){t.isPlaying()?c():l()}),n.getConfig().events.onUpdated.subscribe(c)},t.prototype.release=function(){e.prototype.release.call(this),this.castUiHideTimeout.clear()},t}(r.UIContainer);t.CastUIContainer=a},5955:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.ViewMode=void 0;var o,i=n(6504),r=n(323),s=n(938),a=n(5801);!function(e){e.Persistent="persistent",e.Temporary="temporary"}(o||(t.ViewMode=o={}));var l=function(){function e(e){void 0===e&&(e={});var t=this;this.languageChangedHandler=function(){return t.onLanguageChanged()},this.componentEvents={onShow:new s.EventDispatcher,onHide:new s.EventDispatcher,onViewModeChanged:new s.EventDispatcher,onHoverChanged:new s.EventDispatcher,onEnabled:new s.EventDispatcher,onDisabled:new s.EventDispatcher,onFocusChanged:new s.EventDispatcher},this.config=this.mergeConfig(e,{tag:"div",id:"bmpui-id-"+i.Guid.next(),cssPrefix:"bmpui",cssClass:"ui-component",cssClasses:[],hidden:!1,disabled:!1,tabIndex:-1},{}),this.viewMode=o.Temporary,a.i18n.getConfig().events.onLanguageChanged.subscribe(this.languageChangedHandler)}return e.prototype.initialize=function(){this.hidden=this.config.hidden,this.disabled=this.config.disabled,this.isHidden()&&(this.hidden=!1,this.hide()),this.isDisabled()&&(this.disabled=!1,this.disable())},e.prototype.configure=function(e,t){var n=this;this.onShow.subscribe(function(){return t.onComponentShow.dispatch(n)}),this.onHide.subscribe(function(){return t.onComponentHide.dispatch(n)}),this.onViewModeChanged.subscribe(function(e,o){return t.onComponentViewModeChanged.dispatch(n,o)}),this.getDomElement().on("mouseenter",function(){return n.onHoverChangedEvent(!0)}),this.getDomElement().on("mouseleave",function(){return n.onHoverChangedEvent(!1)}),this.getDomElement().on("focusin",function(){return n.onFocusChangedEvent(!0)}),this.getDomElement().on("focusout",function(){return n.onFocusChangedEvent(!1)})},e.prototype.release=function(){a.i18n.getConfig().events.onLanguageChanged.unsubscribe(this.languageChangedHandler)},e.prototype.onLanguageChanged=function(){},e.prototype.toDomElement=function(){var e=new r.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role},this);return"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString()),e},e.prototype.getDomElement=function(){return this.element||(this.element=this.toDomElement()),this.element},e.prototype.hasDomElement=function(){return Boolean(this.element)},e.prototype.setAriaLabel=function(e){this.setAriaAttr("label",a.i18n.performLocalization(e))},e.prototype.setAriaAttr=function(e,t){this.getDomElement().attr("aria-".concat(e),t)},e.prototype.mergeConfig=function(e,t,n){return Object.assign({},n,t,e)},e.prototype.getCssClasses=function(){var e=this,t=[this.config.cssClass].concat(this.config.cssClasses);return(t=t.map(function(t){return e.prefixCss(t)})).join(" ").trim()},e.prototype.prefixCss=function(e){return this.config.cssPrefix+"-"+e},e.prototype.getConfig=function(){return this.config},e.prototype.hide=function(){this.hidden||(this.hidden=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_HIDDEN)),this.onHideEvent())},e.prototype.show=function(){this.hidden&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_HIDDEN)),this.hidden=!1,this.onShowEvent())},e.prototype.isHidden=function(){return this.hidden},e.prototype.isShown=function(){return!this.isHidden()},e.prototype.toggleHidden=function(){this.isHidden()?this.show():this.hide()},e.prototype.disable=function(){this.disabled||(this.disabled=!0,this.getDomElement().addClass(this.prefixCss(e.CLASS_DISABLED)),this.onDisabledEvent())},e.prototype.enable=function(){this.disabled&&(this.getDomElement().removeClass(this.prefixCss(e.CLASS_DISABLED)),this.disabled=!1,this.onEnabledEvent())},e.prototype.isDisabled=function(){return this.disabled},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isHovered=function(){return this.hovered},e.prototype.onShowEvent=function(){this.componentEvents.onShow.dispatch(this)},e.prototype.onHideEvent=function(){this.componentEvents.onHide.dispatch(this)},e.prototype.onEnabledEvent=function(){this.componentEvents.onEnabled.dispatch(this)},e.prototype.onDisabledEvent=function(){this.componentEvents.onDisabled.dispatch(this)},e.prototype.onViewModeChangedEvent=function(e){this.viewMode!==e&&(this.viewMode=e,this.componentEvents.onViewModeChanged.dispatch(this,{mode:e}))},e.prototype.onHoverChangedEvent=function(e){this.hovered=e,this.componentEvents.onHoverChanged.dispatch(this,{hovered:e})},e.prototype.onFocusChangedEvent=function(e){this.componentEvents.onFocusChanged.dispatch(this,{focused:e})},Object.defineProperty(e.prototype,"onShow",{get:function(){return this.componentEvents.onShow.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHide",{get:function(){return this.componentEvents.onHide.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onEnabled",{get:function(){return this.componentEvents.onEnabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDisabled",{get:function(){return this.componentEvents.onDisabled.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHoverChanged",{get:function(){return this.componentEvents.onHoverChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onViewModeChanged",{get:function(){return this.componentEvents.onViewModeChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onFocusedChanged",{get:function(){return this.componentEvents.onFocusChanged.getEvent()},enumerable:!1,configurable:!0}),e.CLASS_HIDDEN="hidden",e.CLASS_DISABLED="disabled",e}();t.Component=l},1779:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var r=n(5955),s=n(323),a=n(1971),l=n(5801),c=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-container",components:[]},n.config),n.componentsToAppend=[],n.componentsToPrepend=[],n.componentsToRemove=[],n.componentsInPersistentViewMode=0,n}return i(t,e),t.prototype.addComponent=function(e){this.config.components.push(e),this.componentsToAppend.push(e)},t.prototype.prependComponent=function(e){this.config.components.unshift(e),this.componentsToPrepend.push(e)},t.prototype.removeComponent=function(e){return null!=a.ArrayUtils.remove(this.config.components,e)&&(this.componentsToRemove.push(e),!0)},t.prototype.getComponents=function(){return this.config.components},t.prototype.removeComponents=function(){for(var e=0,t=this.getComponents().slice();e<t.length;e++){var n=t[e];this.removeComponent(n)}},t.prototype.updateComponents=function(){for(var e;void 0!==(e=this.componentsToRemove.shift());)e.getDomElement().remove();for(;void 0!==(e=this.componentsToAppend.shift());)this.innerContainerElement.append(e.getDomElement());for(;void 0!==(e=this.componentsToPrepend.shift());)this.innerContainerElement.prepend(e.getDomElement())},t.prototype.toDomElement=function(){var e=new s.DOM(this.config.tag,{id:this.config.id,class:this.getCssClasses(),role:this.config.role,"aria-label":l.i18n.performLocalization(this.config.ariaLabel)},this);"number"==typeof this.config.tabIndex&&e.attr("tabindex",this.config.tabIndex.toString());var t=new s.DOM(this.config.tag,{class:this.prefixCss("container-wrapper")});this.innerContainerElement=t;for(var n=0,o=this.config.components;n<o.length;n++){var i=o[n];this.componentsToAppend.push(i)}return this.updateComponents(),e.append(t),e},t.prototype.suspendHideTimeout=function(){},t.prototype.resumeHideTimeout=function(){},t.prototype.trackComponentViewMode=function(e){e===r.ViewMode.Persistent?this.componentsInPersistentViewMode++:e===r.ViewMode.Temporary&&(this.componentsInPersistentViewMode=Math.max(this.componentsInPersistentViewMode-1,0)),this.componentsInPersistentViewMode>0?this.suspendHideTimeout():this.resumeHideTimeout()},t}(r.Component);t.Container=c},9052:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ControlBar=void 0;var r=n(1779),s=n(3226),a=n(8754),l=n(5801),c=n(5256),u=n(4073),p=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-controlbar",hidden:!0,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=0,l=!1;n.getConfig().disableAutoHideWhenHovered&&!c.BrowserUtils.isTouchSupported&&s.UIUtils.traverseTree(this,function(e){e instanceof r.Container||e instanceof a.Spacer||e.onHoverChanged.subscribe(function(e,t){t.hovered?i++:i--})}),c.BrowserUtils.isMobile&&(n.onComponentShow.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!0)}),n.onComponentHide.subscribe(function(e){e instanceof u.SettingsPanel&&(l=!1)})),n.onControlsShow.subscribe(function(){o.show()}),n.onPreviewControlsHide.subscribe(function(e,t){t.cancel=t.cancel||i>0||l}),n.onControlsHide.subscribe(function(){o.hide()})},t}(r.Container);t.ControlBar=p},5589:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.prefixCss=function(e){return r.instance().prefixCss(e)};var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.instance=function(){return t._instance||(t._instance=new t),t._instance},t.prototype.prefixCss=function(t){return e.prototype.prefixCss.call(this,t)},t}(n(5955).Component)},9263:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeContainer=void 0;var r=n(5801),s=n(1779),a=n(8432),l=n(8248),c=n(1742),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.savedEmissons=0;var o=new a.EcoModeToggleButton,i=new l.Label({text:r.i18n.getLocalizer("ecoMode.title"),for:o.getConfig().id,id:"ecomodelabel"});return n.emissionsSavedLabel=new l.Label({text:"".concat(n.savedEmissons.toFixed(4)," gCO2"),cssClass:"ui-label-savedEnergy"}),n.ecoModeToggleButtonItem=new c.SettingsPanelItem({label:i,settingComponent:o}),n.ecoModeSavedEmissionsItem=new c.SettingsPanelItem({label:"Saved Emissions",settingComponent:n.emissionsSavedLabel,hidden:!0}),n.addComponent(n.ecoModeToggleButtonItem),n.addComponent(n.ecoModeSavedEmissionsItem),o.onToggleOn.subscribe(function(){n.ecoModeSavedEmissionsItem.show(),n.onToggleCallback()}),o.onToggleOff.subscribe(function(){n.ecoModeSavedEmissionsItem.hide(),n.onToggleCallback()}),n}return i(t,e),t.prototype.setOnToggleCallback=function(e){this.onToggleCallback=e},t.prototype.configure=function(e){var t=this;e.on(e.exports.PlayerEvent.SegmentPlayback,function(n){if(n.mimeType.includes("video")){var o=n.mediaInfo,i=o.height,r=o.width,s=o.bitrate,a=o.frameRate,l=t.getMaxQualityAvailable(e.getAvailableVideoQualities()),c=l.height,u=l.bitrate,p=l.width,f=t.calculateEnergyConsumption(a,i,r,s,n.duration),d=t.calculateEnergyConsumption(a,c,p,u,n.duration);t.ecoModeSavedEmissionsItem.isShown()&&t.updateSavedEmissions(f,d,t.emissionsSavedLabel)}})},t.prototype.updateSavedEmissions=function(e,t,n){this.currentEnergyEmission=475*e;var o=475*t;this.savedEmissons+=o-this.currentEnergyEmission,n.setText(this.savedEmissons.toFixed(4)+" gCO2")},t.prototype.calculateEnergyConsumption=function(e,t,n,o,i){return(.035*e+5.76e-9*t*n+o/1e3*(697e-8+324e-7)+4.16+8.52+1.15)*i/36e5},t.prototype.getMaxQualityAvailable=function(e){var t=e.sort(function(e,t){return e.bitrate-t.bitrate});return t[t.length-1]},t}(s.Container);t.EcoModeContainer=u},4647:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var r=n(5955),s=n(323),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-icon"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return new s.DOM("div",{class:this.getCssClasses()})},t}(r.Component);t.Icon=a},2806:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationItem=void 0;var s=n(5955),a=n(938),l=n(323),c=n(8248),u=n(1823),p=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-item",recommendationConfig:null,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),f(this.config.recommendationConfig.resource)||this.onClick.subscribe(function(){t.load(o.config.recommendationConfig.resource),t.play()})},t.prototype.toDomElement=function(){var e,t,n=this,o=this.config.recommendationConfig,i=o.resource,s={};f(i)?(e="a",s={href:i.url},t=i.thumbnail):(e="button",t=i.poster);var a=new l.DOM(e,r(r({id:this.config.id,class:this.getCssClasses()},s),{tabindex:this.config.tabIndex.toString()}),this);t&&a.css({"background-image":'url("'.concat(t,'")')});var p=new l.DOM("div",{class:this.prefixCss("title-container")},this),d=new c.Label({text:o.title,cssClass:"title"});if(p.append(d.getDomElement()),a.append(p),null!=o.duration){var g=new c.Label({text:o.duration?u.StringUtils.secondsToTime(o.duration):"",cssClass:"duration"});a.append(g.getDomElement())}return f(i)||a.on("click",function(e){e.preventDefault(),e.stopPropagation(),n.onClickEvent()}),a},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);function f(e){return"url"in e}t.RecommendationItem=p},8754:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Spacer=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-spacer"},n.config),n}return i(t,e),t.prototype.onShowEvent=function(){},t.prototype.onHideEvent=function(){},t.prototype.onHoverChangedEvent=function(e){},t}(n(5955).Component);t.Spacer=r},5705:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;var r=n(1779),s=n(4947),a=n(8248),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-titlebar",hidden:!0,keepHiddenWithoutMetadata:!1,components:[new r.Container({components:[new s.MetadataLabel({content:s.MetadataLabelContent.Title})],cssClasses:["titlebar-row"]}),new r.Container({components:[new s.MetadataLabel({content:s.MetadataLabelContent.Description})],cssClasses:["titlebar-row"]})]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!this.isHidden(),s=!0,a=function(){s=o.hasNonEmptyComponents(o.getComponents()),o.isShown()?i.keepHiddenWithoutMetadata&&!s&&o.hide():r&&(i.keepHiddenWithoutMetadata&&!s||o.show())};this.subscribeToTextChanges(this.getComponents(),a),n.onControlsShow.subscribe(function(){r=!0,i.keepHiddenWithoutMetadata&&!s||o.show()}),n.onControlsHide.subscribe(function(){r=!1,o.hide()}),a()},t.prototype.hasNonEmptyComponents=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];if(c(o)&&!o.isEmpty())return!0;if(o instanceof r.Container&&this.hasNonEmptyComponents(o.getComponents()))return!0}return!1},t.prototype.subscribeToTextChanges=function(e,t){for(var n=0,o=e;n<o.length;n++){var i=o[n];i instanceof a.Label&&i.onTextChanged.subscribe(t),i instanceof r.Container&&this.subscribeToTextChanges(i.getComponents(),t)}},t}(r.Container);function c(e){return"object"==typeof e&&null!==e&&"function"==typeof e.isEmpty}t.TitleBar=l},6884:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvNoiseCanvas=void 0;var r=n(5955),s=n(323),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.canvasWidth=160,n.canvasHeight=90,n.interferenceHeight=50,n.lastFrameUpdate=0,n.frameInterval=60,n.useAnimationFrame=!!window.requestAnimationFrame,n.config=n.mergeConfig(t,{cssClass:"ui-tvnoisecanvas"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.canvas=new s.DOM("canvas",{class:this.getCssClasses()},this)},t.prototype.start=function(){this.canvasElement=this.canvas.get(0),this.canvasContext=this.canvasElement.getContext("2d"),this.noiseAnimationWindowPos=-this.canvasHeight,this.lastFrameUpdate=0,this.canvasElement.width=this.canvasWidth,this.canvasElement.height=this.canvasHeight,this.renderFrame()},t.prototype.stop=function(){this.useAnimationFrame?cancelAnimationFrame(this.frameUpdateHandlerId):clearTimeout(this.frameUpdateHandlerId)},t.prototype.renderFrame=function(){if(this.lastFrameUpdate+this.frameInterval>(new Date).getTime())this.scheduleNextRender();else{for(var e,t=this.canvasWidth,n=this.canvasHeight,o=this.canvasContext.createImageData(t,n),i=0;i<n;i++)for(var r=0;r<t;r++)e=t*i*4+4*r,o.data[e]=255*Math.random(),(i<this.noiseAnimationWindowPos||i>this.noiseAnimationWindowPos+this.interferenceHeight)&&(o.data[e]*=.85),o.data[e+1]=o.data[e],o.data[e+2]=o.data[e],o.data[e+3]=50;this.canvasContext.putImageData(o,0,0),this.lastFrameUpdate=(new Date).getTime(),this.noiseAnimationWindowPos+=7,this.noiseAnimationWindowPos>n&&(this.noiseAnimationWindowPos=-n),this.scheduleNextRender()}},t.prototype.scheduleNextRender=function(){this.useAnimationFrame?this.frameUpdateHandlerId=window.requestAnimationFrame(this.renderFrame.bind(this)):this.frameUpdateHandlerId=window.setTimeout(this.renderFrame.bind(this),this.frameInterval)},t}(r.Component);t.TvNoiseCanvas=a},6233:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UIContainer=void 0;var r=n(1779),s=n(323),a=n(3998),l=n(7395),c=n(938),u=n(5801),p=n(9404),f=n(1368),d=n(4073),g=function(e){function t(t){var n=e.call(this,t)||this;return n.hideUi=function(){},n.showUi=function(){},n.toggleUiShown=function(){},n.config=n.mergeConfig(t,{cssClass:"ui-uicontainer",role:"region",ariaLabel:u.i18n.getLocalizer("player"),hideDelay:2e3,hideImmediatelyOnMouseLeave:!0,deferUiHideWhileSettingsOpen:!0},n.config),n.playerStateChange=new c.EventDispatcher,n.hidingPrevented=function(){return!1},n}return i(t,e),t.prototype.configure=function(t,n){var o=this.getConfig();o.userInteractionEventSource?this.userInteractionEventSource=new s.DOM(o.userInteractionEventSource):this.userInteractionEventSource=this.getDomElement(),e.prototype.configure.call(this,t,n),this.configureUIShowHide(t,n),this.configurePlayerStates(t,n)},t.prototype.configureUIShowHide=function(e,n){var o=this,i=this.getConfig(),r=!1,s=!1,l=!1;if(n.onConfigured.subscribe(function(){r?n.onControlsShow.dispatch(o):n.onControlsHide.dispatch(o)}),-1!==i.hideDelay){var c,u=!1,g=!0;i.deferUiHideWhileSettingsOpen&&(n.onComponentShow.subscribe(function(e){e instanceof d.SettingsPanel&&(s=!0)}),n.onComponentHide.subscribe(function(e){e instanceof d.SettingsPanel&&(s=!1,l&&(o.hideUi(!0),l=!1))})),this.hidingPrevented=function(){return i.hidePlayerStateExceptions&&i.hidePlayerStateExceptions.indexOf(c)>-1},this.showUi=function(){l=!1,r||(n.onControlsShow.dispatch(o),r=!0),u||e.isCasting()||o.hidingPrevented()||o.uiHideTimeout.start()},this.hideUi=function(t){if(void 0===t&&(t=!1),r&&!e.isCasting()){if(t)return n.onControlsHide.dispatch(o),void(r=!1);if(i.deferUiHideWhileSettingsOpen&&s)return void(l=!0);var a={};n.onPreviewControlsHide.dispatch(o,a),a.cancel?o.showUi():(n.onControlsHide.dispatch(o),r=!1)}},this.toggleUiShown=function(){r?o.hideUi():o.showUi()},this.uiHideTimeout=new a.Timeout(i.hideDelay,this.hideUi);var h=function(e){return!(e.target.component instanceof f.TouchControlOverlay)};this.userInteractionEvents=[{name:"touchend",handler:function(n){h(n)&&(r||(g&&!e.isPlaying()?g=!1:function(e){var n=function(e){return!e||e===o.userInteractionEventSource.get(0)||e.component instanceof t?null:e.component&&e.component instanceof p.Button||e.component instanceof f.TouchControlOverlay?e.component:n(e.parentElement)},i=n(e.target);return!(i&&i.getConfig().acceptsTouchWithUiHidden)}(n)&&n.preventDefault(),o.showUi()))}},{name:"mouseenter",handler:function(e){h(e)&&o.showUi()}},{name:"mousemove",handler:function(e){h(e)&&o.showUi()}},{name:"focusin",handler:function(e){h(e)&&o.showUi()}},{name:"keydown",handler:function(e){h(e)&&o.showUi()}},{name:"mouseleave",handler:function(){u||o.hidingPrevented()||(o.config.hideImmediatelyOnMouseLeave?o.hideUi(!0):o.uiHideTimeout.start())}},{name:"wheel",handler:function(e){h(e)&&o.showUi()}}],this.userInteractionEvents.forEach(function(e){return o.userInteractionEventSource.on(e.name,e.handler)}),this.userInteractionEventSource.on("click",function(e){h(e)&&o.showUi()},{capture:!0}),n.onSeek.subscribe(function(){o.uiHideTimeout.clear(),u=!0}),n.onSeeked.subscribe(function(){u=!1,o.hidingPrevented()||o.uiHideTimeout.start()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return o.trackComponentViewMode(n)}),e.on(e.exports.PlayerEvent.CastStarted,function(){o.showUi()}),this.playerStateChange.subscribe(function(e,t){c=t,o.hidingPrevented()?(o.uiHideTimeout.clear(),o.showUi()):o.uiHideTimeout.start()})}else r=!0},t.prototype.configurePlayerStates=function(e,n){var o=this,i=this.getDomElement(),r=[];for(var a in l.PlayerUtils.PlayerState)if(isNaN(Number(a))){var c=l.PlayerUtils.PlayerState[l.PlayerUtils.PlayerState[a]];r[l.PlayerUtils.PlayerState[a]]=this.prefixCss(t.STATE_PREFIX+c.toLowerCase())}var u=function(e){i.removeClass(r[l.PlayerUtils.PlayerState.Idle]),i.removeClass(r[l.PlayerUtils.PlayerState.Prepared]),i.removeClass(r[l.PlayerUtils.PlayerState.Playing]),i.removeClass(r[l.PlayerUtils.PlayerState.Paused]),i.removeClass(r[l.PlayerUtils.PlayerState.Finished]),i.addClass(r[e]),o.playerStateChange.dispatch(o,e)};e.on(e.exports.PlayerEvent.SourceLoaded,function(){u(l.PlayerUtils.PlayerState.Prepared)}),e.on(e.exports.PlayerEvent.Play,function(){u(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Playing,function(){u(l.PlayerUtils.PlayerState.Playing)}),e.on(e.exports.PlayerEvent.Paused,function(){u(l.PlayerUtils.PlayerState.Paused)}),e.on(e.exports.PlayerEvent.PlaybackFinished,function(){u(l.PlayerUtils.PlayerState.Finished)}),e.on(e.exports.PlayerEvent.SourceUnloaded,function(){u(l.PlayerUtils.PlayerState.Idle)}),n.getConfig().events.onUpdated.subscribe(function(){u(l.PlayerUtils.getState(e))}),e.on(e.exports.PlayerEvent.ViewModeChanged,function(){e.getViewMode()===e.exports.ViewMode.Fullscreen?i.addClass(o.prefixCss(t.FULLSCREEN)):i.removeClass(o.prefixCss(t.FULLSCREEN))}),e.getViewMode()===e.exports.ViewMode.Fullscreen&&i.addClass(this.prefixCss(t.FULLSCREEN)),e.on(e.exports.PlayerEvent.StallStarted,function(){i.addClass(o.prefixCss(t.BUFFERING))}),e.on(e.exports.PlayerEvent.StallEnded,function(){i.removeClass(o.prefixCss(t.BUFFERING))}),e.isStalled()&&i.addClass(this.prefixCss(t.BUFFERING)),e.on(e.exports.PlayerEvent.CastStarted,function(){i.addClass(o.prefixCss(t.REMOTE_CONTROL))}),e.on(e.exports.PlayerEvent.CastStopped,function(){i.removeClass(o.prefixCss(t.REMOTE_CONTROL))}),e.isCasting()&&i.addClass(this.prefixCss(t.REMOTE_CONTROL)),n.onControlsShow.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_HIDDEN)),i.addClass(o.prefixCss(t.CONTROLS_SHOWN))}),n.onControlsHide.subscribe(function(){i.removeClass(o.prefixCss(t.CONTROLS_SHOWN)),i.addClass(o.prefixCss(t.CONTROLS_HIDDEN))});var p=function(e,t){i.removeClass(o.prefixCss("layout-max-width-400")),i.removeClass(o.prefixCss("layout-max-width-600")),i.removeClass(o.prefixCss("layout-max-width-800")),i.removeClass(o.prefixCss("layout-max-width-1200")),e<=400?i.addClass(o.prefixCss("layout-max-width-400")):e<=600?i.addClass(o.prefixCss("layout-max-width-600")):e<=800?i.addClass(o.prefixCss("layout-max-width-800")):e<=1200&&i.addClass(o.prefixCss("layout-max-width-1200"))};e.on(e.exports.PlayerEvent.PlayerResized,function(e){var t=Math.round(Number(e.width.substring(0,e.width.length-2)));Math.round(Number(e.height.substring(0,e.height.length-2))),p(t)}),p(new s.DOM(e.getContainer()).width(),new s.DOM(e.getContainer()).height())},t.prototype.release=function(){var t=this;this.hideUi(!0),this.userInteractionEvents&&this.userInteractionEvents.forEach(function(e){return t.userInteractionEventSource.off(e.name,e.handler)}),e.prototype.release.call(this),this.uiHideTimeout&&this.uiHideTimeout.clear()},t.prototype.onPlayerStateChange=function(){return this.playerStateChange.getEvent()},t.prototype.suspendHideTimeout=function(){this.uiHideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.uiHideTimeout.resume(!this.hidingPrevented())},t.prototype.toDomElement=function(){var t=e.prototype.toDomElement.call(this);return document&&void 0!==document.createElement("p").style.flex?t.addClass(this.prefixCss("flexbox")):t.addClass(this.prefixCss("no-flexbox")),t},t.STATE_PREFIX="player-state-",t.FULLSCREEN="fullscreen",t.BUFFERING="buffering",t.REMOTE_CONTROL="remote-control",t.CONTROLS_SHOWN="controls-shown",t.CONTROLS_HIDDEN="controls-hidden",t}(r.Container);t.UIContainer=g},1942:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Watermark=void 0;var r=n(6326),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-watermark",url:"http://bitmovin.com",role:"link",text:"logo",ariaLabel:s.i18n.getLocalizer("watermarkLink")},n.config),n}return i(t,e),t}(r.ClickOverlay);t.Watermark=a},5816:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{acceptsTouchWithUiHidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=null;t.on(t.exports.PlayerEvent.AdStarted,function(e){var t=e.ad;o.setUrl(t.clickThroughUrl),i=t.clickThroughUrlOpened});var r=function(){o.setUrl(null)};t.on(t.exports.PlayerEvent.AdFinished,r),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),this.onClick.subscribe(function(){t.pause("ui-ad-click-overlay"),i&&i()})},t}(n(6326).ClickOverlay);t.AdClickOverlay=r},3850:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AdControlBar=void 0;var s=n(9052),a=n(1779),l=n(5801),c=n(9819),u=function(e){function t(t){var n=e.call(this,t)||this;return n.containersToHide=[],n.containersToKeepVisible=[],n.config=n.mergeConfig(t,{cssClasses:["ad-controlbar"],hidden:!1,role:"region",ariaLabel:l.i18n.getLocalizer("controlBar")},n.config),n.config.components.forEach(function(e){e instanceof a.Container&&(n.containsSeekBar(e)?n.containersToKeepVisible.push(e):n.containersToHide.push(e))}),n}return i(t,e),t.prototype.hide=function(){this.containersToHide.forEach(function(e){e.hide()})},t.prototype.show=function(){r(r([],this.containersToHide,!0),this.containersToKeepVisible,!0).forEach(function(e){e.show()})},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),n.onControlsShow.subscribe(function(){o.show()}),n.onControlsHide.subscribe(function(){o.hide()})},t.prototype.containsSeekBar=function(e){for(var t=0,n=e.getComponents();t<n.length;t++){var o=n[t];if(o instanceof c.SeekBar)return!0;if(o instanceof a.Container&&this.containsSeekBar(o))return!0}return!1},t}(s.ControlBar);t.AdControlBar=u},8950:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdCounterLabel=void 0;var r=n(5801),s=n(8248),a=n(1823),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adBreakTrackerAdCountChangedHandler=function(e,t){n.setAdCounterFromAdBreakTracker(t.currentAdIndex,t.totalNumberOfAds)},n.config=n.mergeConfig(t,{cssClass:"ui-label-ad-counter",adCountOutOfTotal:r.i18n.getLocalizer("ads.adNumberOfTotal")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.adBreakTracker=n.getConfig().adBreakTracker,this.adBreakTracker.onAdCountChanged.subscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker.currentAdIndex>0&&this.adBreakTracker.totalNumberOfAds>0&&this.setAdCounterFromAdBreakTracker(this.adBreakTracker.currentAdIndex,this.adBreakTracker.totalNumberOfAds)},t.prototype.release=function(){var t;null===(t=this.adBreakTracker)||void 0===t||t.onAdCountChanged.unsubscribe(this.adBreakTrackerAdCountChangedHandler),this.adBreakTracker=void 0,this.player=void 0,e.prototype.release.call(this)},t.prototype.onLanguageChanged=function(){var e,t,n,o,i,r;((null===(e=this.adBreakTracker)||void 0===e?void 0:e.currentAdIndex)>0||(null===(o=null===(n=null===(t=this.player)||void 0===t?void 0:t.ads)||void 0===n?void 0:n.isLinearAdActive)||void 0===o?void 0:o.call(n)))&&this.setAdCounterFromAdBreakTracker(null===(i=this.adBreakTracker)||void 0===i?void 0:i.currentAdIndex,null===(r=this.adBreakTracker)||void 0===r?void 0:r.totalNumberOfAds)},t.prototype.setAdCounterFromAdBreakTracker=function(e,t){0!==e||0!==t?this.setText(a.StringUtils.replaceAdMessagePlaceholders(r.i18n.performLocalization(this.config.adCountOutOfTotal),this.player,void 0,e,t)):this.setText("")},t}(s.Label);t.AdCounterLabel=l},4103:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdMessageLabel=void 0;var r=n(8248),s=n(5801),a=n(1823),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-ad-message-label"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=i.text||"",l=function(){o.setText(a.StringUtils.replaceAdMessagePlaceholders(s.i18n.performLocalization(r),t))},c=function(){t.off(t.exports.PlayerEvent.TimeChanged,l)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad.uiConfig;r=(null==n?void 0:n.message)||i.text||"",l(),t.on(t.exports.PlayerEvent.TimeChanged,l)}),t.on(t.exports.PlayerEvent.AdSkipped,c),t.on(t.exports.PlayerEvent.AdError,c),t.on(t.exports.PlayerEvent.AdFinished,c),t.on(t.exports.PlayerEvent.SourceUnloaded,c)},t}(r.Label);t.AdMessageLabel=l},8751:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdSkipButton=void 0;var r=n(9404),s=n(1823),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.skipOffset=-1,n.config=n.mergeConfig(t,{cssClass:"ui-button-ad-skip",untilSkippableMessage:a.i18n.getLocalizer("ads.skippableIn"),skippableMessage:a.i18n.getLocalizer("ads.skip"),acceptsTouchWithUiHidden:!0,buttonStyle:r.ButtonStyle.TextWithTrailingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t;var i=this.getConfig();this.untilSkippableMessage=i.untilSkippableMessage,this.skippableMessage=i.skippableMessage,this.skipOffset=-1,this.updateSkipMessageHandler=function(){o.show(),t.getCurrentTime()<o.skipOffset?(o.setText(s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(o.untilSkippableMessage),t,o.skipOffset)),o.disable()):(o.setText(s.StringUtils.replaceAdMessagePlaceholders(a.i18n.performLocalization(o.skippableMessage),t)),o.enable())};var r=function(){o.updateSkipMessageHandler&&t.off(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)};t.on(t.exports.PlayerEvent.AdStarted,function(e){var n=e.ad;o.skipOffset=n.skippableAfter,o.untilSkippableMessage=n.uiConfig&&n.uiConfig.untilSkippableMessage||i.untilSkippableMessage,o.skippableMessage=n.uiConfig&&n.uiConfig.skippableMessage||i.skippableMessage,"number"==typeof o.skipOffset&&o.skipOffset>=0?(o.updateSkipMessageHandler(),t.on(t.exports.PlayerEvent.TimeChanged,o.updateSkipMessageHandler)):o.hide()}),t.on(t.exports.PlayerEvent.AdSkipped,r),t.on(t.exports.PlayerEvent.AdError,r),t.on(t.exports.PlayerEvent.AdFinished,r),this.onClick.subscribe(function(){t.ads.skip()})},t.prototype.onLanguageChanged=function(){this.updateSkipMessageHandler&&"number"==typeof this.skipOffset&&this.skipOffset>=0&&this.updateSkipMessageHandler()},t.prototype.release=function(){this.player&&this.updateSkipMessageHandler&&this.player.off(this.player.exports.PlayerEvent.TimeChanged,this.updateSkipMessageHandler),e.prototype.release.call(this)},t}(r.Button);t.AdSkipButton=l},7280:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AdStatusOverlay=void 0;var r=n(1779),s=n(8751),a=n(8754),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.adSkipButton=new s.AdSkipButton,n.config=n.mergeConfig(t,{components:[new r.Container({components:[new a.Spacer,n.adSkipButton],cssClasses:["bar"]})],cssClass:"ui-ad-status-overlay"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n)},t}(r.Container);t.AdStatusOverlay=l},5932:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AirPlayToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-airplaytogglebutton",text:s.i18n.getLocalizer("appleAirplay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),t.isAirplayAvailable){this.onClick.subscribe(function(){t.isAirplayAvailable()?t.showAirplayTargetPicker():console&&console.log("AirPlay unavailable")});var i=function(){t.isAirplayAvailable()?o.show():o.hide()},r=function(){t.isAirplayActive()?o.on():o.off()};t.on(t.exports.PlayerEvent.AirplayAvailable,i),t.on(t.exports.PlayerEvent.AirplayChanged,r),i(),r()}else this.hide()},t}(r.ToggleButton);t.AirPlayToggleButton=a},9404:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Button=t.ButtonStyle=void 0;var r,s=n(5955),a=n(323),l=n(938),c=n(5801),u=n(4647);!function(e){e.Icon="icon",e.Text="text",e.TextWithLeadingIcon="text-icon-leading",e.TextWithTrailingIcon="text-icon-trailing"}(r||(t.ButtonStyle=r={}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.buttonEvents={onClick:new l.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-button",role:"button",tabIndex:0,acceptsTouchWithUiHidden:!1,buttonStyle:r.Icon},n.config),n}return i(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,n={id:this.config.id,"aria-label":c.i18n.performLocalization(this.config.ariaLabel||this.config.text),class:this.getCssClasses(),type:"button",tabindex:this.config.tabIndex.toString()};null!=this.config.role&&(n.role=this.config.role);var o=new a.DOM("button",n,this),i=function(){var e=new u.Icon;o.append(e.getDomElement())},s=function(){o.append(new a.DOM("span",{class:e.prefixCss("label")}).html(c.i18n.performLocalization(e.config.text)))};switch(this.config.buttonStyle){case r.Icon:i();break;case r.Text:s();break;case r.TextWithLeadingIcon:i(),s();break;case r.TextWithTrailingIcon:s(),i()}return o.on("click",function(t){t.preventDefault(),e.onClickEvent()}),o.on("touchstart",function(n){e.getDomElement().addClass(t.CLASS_TOUCHED)}),o.on("touchend",function(n){e.getDomElement().removeClass(t.CLASS_TOUCHED)}),o},t.prototype.setText=function(e){this.getDomElement().find("."+this.prefixCss("label")).html(c.i18n.performLocalization(e))},t.prototype.onClickEvent=function(){this.buttonEvents.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.buttonEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),t.CLASS_TOUCHED="touched",t}(s.Component);t.Button=p},1291:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-casttogglebutton",text:s.i18n.getLocalizer("googleCast")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.isCastAvailable()?t.isCasting()?t.castStop():t.castVideo():console&&console.log("Cast unavailable")});var i=function(){t.isCastAvailable()?o.show():o.hide()};t.on(t.exports.PlayerEvent.CastAvailable,i),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStarted,function(){o.on()}),t.on(t.exports.PlayerEvent.CastStopped,function(){o.off()}),i(),t.isCasting()&&this.on()},t}(r.ToggleButton);t.CastToggleButton=a},7990:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-closebutton",text:s.i18n.getLocalizer("close")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.onClick.subscribe(function(){o.target.hide()})},t}(r.Button);t.CloseButton=a},8432:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EcoModeToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={text:s.i18n.getLocalizer("ecoMode"),cssClass:"ui-ecomodetogglebutton",onClass:"on",offClass:"off",ariaLabel:s.i18n.getLocalizer("ecoMode")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.areAdaptationApisAvailable(t)?(this.onClick.subscribe(function(){o.toggle()}),this.onToggleOn.subscribe(function(){o.enableEcoMode(t),t.setVideoQuality("auto")}),this.onToggleOff.subscribe(function(){o.disableEcoMode(t)}),t.on(t.exports.PlayerEvent.VideoQualityChanged,function(e){"auto"!==e.targetQuality.id&&(o.off(),o.disableEcoMode(t))})):e.prototype.disable.call(this)},t.prototype.areAdaptationApisAvailable=function(e){var t=Boolean(e.adaptation.getConfig&&"function"==typeof e.adaptation.getConfig),n=Boolean(e.adaptation.setConfig&&"function"==typeof e.adaptation.setConfig);return Boolean(e.adaptation&&t&&n)},t.prototype.enableEcoMode=function(e){this.adaptationConfig=e.adaptation.getConfig();var t=e.getAvailableVideoQualities()[0].codec;t.includes("avc")&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:720},limitToPlayerSize:!0}),(t.includes("hvc")||t.includes("hev"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1080},limitToPlayerSize:!0}),(t.includes("av1")||t.includes("av01"))&&e.adaptation.setConfig({resolution:{maxSelectableVideoHeight:1440},limitToPlayerSize:!0})},t.prototype.disableEcoMode=function(e){e.adaptation.setConfig(this.adaptationConfig)},t}(r.ToggleButton);t.EcoModeToggleButton=a},2717:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-fullscreentogglebutton",text:s.i18n.getLocalizer("fullscreen")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.Fullscreen)},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?o.on():o.off()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),this.onClick.subscribe(function(){if(i()){var e=t.getViewMode()===t.exports.ViewMode.Fullscreen?t.exports.ViewMode.Inline:t.exports.ViewMode.Fullscreen;t.setViewMode(e)}else console&&console.log("Fullscreen unavailable")}),s(),r()},t}(r.ToggleButton);t.FullscreenToggleButton=a},958:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HugePlaybackToggleButton=void 0;var r=n(4617),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugeplaybacktogglebutton",text:s.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var i=function(){t.isPlaying()||o.isPlayInitiated?t.pause("ui"):t.play("ui")},r=function(){t.getViewMode()===t.exports.ViewMode.Fullscreen?t.setViewMode(t.exports.ViewMode.Inline):t.setViewMode(t.exports.ViewMode.Fullscreen)},s=!0,a=0,l=0;this.onClick.subscribe(function(){if(s)return i(),void(o.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen));var e=Date.now();return e-a<200?(r(),void(l=e)):e-a<500?(r(),i(),void(l=e)):(a=e,void setTimeout(function(){Date.now()-l>200&&i()},200))}),t.on(t.exports.PlayerEvent.Play,function(){s=!1}),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(s=!0)});var c=function(){o.setTransitionAnimationsEnabled(!1),o.onToggle.subscribeOnce(function(){o.setTransitionAnimationsEnabled(!0)})};c();var u=t.getConfig().playback&&Boolean(t.getConfig().playback.autoplay),p=!t.getSource()&&u;(t.isPlaying()||p)&&(this.on(),c(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&c()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.HugePlaybackToggleButton=a},1308:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HugeReplayButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-hugereplaybutton",text:s.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){t.play("ui")})},t}(r.Button);t.HugeReplayButton=a},5829:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PictureInPictureToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-piptogglebutton",text:s.i18n.getLocalizer("pictureInPicture")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){return t.isViewModeAvailable(t.exports.ViewMode.PictureInPicture)},r=function(){t.getViewMode()===t.exports.ViewMode.PictureInPicture?o.on():o.off()},s=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.ViewModeChanged,r),t.exports.PlayerEvent.ViewModeAvailabilityChanged&&t.on(t.exports.PlayerEvent.ViewModeAvailabilityChanged,s),n.getConfig().events.onUpdated.subscribe(s),this.onClick.subscribe(function(){if(i()){var e=t.getViewMode()===t.exports.ViewMode.PictureInPicture?t.exports.ViewMode.Inline:t.exports.ViewMode.PictureInPicture;t.setViewMode(e)}else console&&console.log("PIP unavailable")}),s(),r()},t}(r.ToggleButton);t.PictureInPictureToggleButton=a},4617:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleButton=void 0;var r=n(2572),s=n(7395),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktogglebutton",text:a.i18n.getLocalizer("play"),onAriaLabel:a.i18n.getLocalizer("pause"),offAriaLabel:a.i18n.getLocalizer("play")},n.config),n.isPlayInitiated=!1,n}return i(t,e),t.prototype.configure=function(n,o,i){var r=this;void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),"boolean"==typeof o.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=o.getConfig().enterFullscreenOnInitialPlayback);var a=!1,l=!0,c=function(){a||(n.isPlaying()||r.isPlayInitiated?r.on():r.off())};n.on(n.exports.PlayerEvent.Play,function(e){r.isPlayInitiated=!0,l=!1,c()}),n.on(n.exports.PlayerEvent.Paused,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.Playing,function(e){r.isPlayInitiated=!1,c()}),n.on(n.exports.PlayerEvent.SourceLoaded,c),o.getConfig().events.onUpdated.subscribe(c),n.on(n.exports.PlayerEvent.SourceUnloaded,c),n.on(n.exports.PlayerEvent.PlaybackFinished,c),n.on(n.exports.PlayerEvent.CastStarted,c),n.on(n.exports.PlayerEvent.Warning,function(e){e.code===n.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&(r.isPlayInitiated=!1,l=!0,r.off())});var u=function(){n.isLive()&&!s.PlayerUtils.isTimeShiftAvailable(n)?r.getDomElement().addClass(r.prefixCss(t.CLASS_STOPTOGGLE)):r.getDomElement().removeClass(r.prefixCss(t.CLASS_STOPTOGGLE))},p=new s.PlayerUtils.TimeShiftAvailabilityDetector(n),f=new s.PlayerUtils.LiveStreamDetector(n,o);p.onTimeShiftAvailabilityChanged.subscribe(function(){return u()}),f.onLiveChanged.subscribe(function(){return u()}),p.detect(),f.detect(),i&&this.onClick.subscribe(function(){n.isPlaying()||r.isPlayInitiated?n.pause("ui"):(n.play("ui"),l&&r.config.enterFullscreenOnInitialPlayback&&n.setViewMode(n.exports.ViewMode.Fullscreen))}),o.onSeek.subscribe(function(){a=!0}),o.onSeeked.subscribe(function(){a=!1}),c()},t.CLASS_STOPTOGGLE="stoptoggle",t}(r.ToggleButton);t.PlaybackToggleButton=l},6757:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.QuickSeekButton=void 0;var r=n(9404),s=n(5801),a=n(7395),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.onSeek=function(e){n.currentSeekTarget=e.seekTarget},n.onSeekedOrTimeShifted=function(){n.currentSeekTarget=null},n.onTimeShift=function(e){n.currentSeekTarget=n.player.getTimeShift()+(e.target-e.position)},n.currentSeekTarget=null,n.config=n.mergeConfig(t,{seekSeconds:-10,cssClass:"ui-quickseekbutton"},n.config);var o=n.config.seekSeconds<0?"rewind":"forward";return n.config.text=n.config.text||s.i18n.getLocalizer("quickseek.".concat(o)),n.config.ariaLabel=n.config.ariaLabel||s.i18n.getLocalizer("quickseek.".concat(o),{seekSeconds:Math.abs(n.config.seekSeconds)}),n.getDomElement().data(n.prefixCss("seek-direction"),o).data(n.prefixCss("seek-seconds"),Math.abs(n.config.seekSeconds).toString()),n}return i(t,e),t.prototype.configure=function(t,n){var o,i,r=this;e.prototype.configure.call(this,t,n),this.player=t;var s=function(e,t){e&&!t?r.hide():r.show()},l=new a.PlayerUtils.TimeShiftAvailabilityDetector(t);l.onTimeShiftAvailabilityChanged.subscribe(function(e,t){i=t.timeShiftAvailable,s(o,i)});var c=new a.PlayerUtils.LiveStreamDetector(t,n);c.onLiveChanged.subscribe(function(e,t){o=t.live,s(o,i)}),l.detect(),c.detect(),this.onClick.subscribe(function(){if((!o||i)&&!(o&&r.config.seekSeconds>0&&0===t.getTimeShift())){var e=(null!==r.currentSeekTarget?r.currentSeekTarget:o?t.getTimeShift():t.getCurrentTime())+r.config.seekSeconds;if(o){var n=a.PlayerUtils.clampValueToRange(e,t.getMaxTimeShift(),0);t.timeShift(n)}else n=a.PlayerUtils.clampValueToRange(e,0,t.getDuration()),t.seek(n)}}),this.player.on(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.on(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.on(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.on(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted)},t.prototype.release=function(){this.player.off(this.player.exports.PlayerEvent.Seek,this.onSeek),this.player.off(this.player.exports.PlayerEvent.Seeked,this.onSeekedOrTimeShifted),this.player.off(this.player.exports.PlayerEvent.TimeShift,this.onTimeShift),this.player.off(this.player.exports.PlayerEvent.TimeShifted,this.onSeekedOrTimeShifted),this.currentSeekTarget=null,this.player=null},t}(r.Button);t.QuickSeekButton=l},2663:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplayButton=void 0;var r=n(9404),s=n(5801),a=n(7395),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-replaybutton",text:s.i18n.getLocalizer("replay"),ariaLabel:s.i18n.getLocalizer("replay")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.isLive()&&this.hide(),new a.PlayerUtils.LiveStreamDetector(t,n).onLiveChanged.subscribe(function(e,t){t.live?o.hide():o.show()}),this.onClick.subscribe(function(){t.hasEnded()?t.play("ui"):t.seek(0)})},t}(r.Button);t.ReplayButton=l},5092:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SmallCenteredPlaybackToggleButton=void 0;var r=n(4617),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-smallcenteredplaybacktogglebutton",text:s.i18n.getLocalizer("playPause"),role:"button"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n,!1),"boolean"==typeof n.getConfig().enterFullscreenOnInitialPlayback&&(this.config.enterFullscreenOnInitialPlayback=n.getConfig().enterFullscreenOnInitialPlayback);var r=!0;this.onClick.subscribe(function(){t.isPlaying()||i.isPlayInitiated?t.pause("ui"):t.play("ui"),r&&i.config.enterFullscreenOnInitialPlayback&&t.setViewMode(t.exports.ViewMode.Fullscreen)}),t.on(t.exports.PlayerEvent.Playing,function(){r=!1});var s=function(){i.setTransitionAnimationsEnabled(!1),i.onToggle.subscribeOnce(function(){i.setTransitionAnimationsEnabled(!0)})};s();var a=Boolean(null===(o=t.getConfig().playback)||void 0===o?void 0:o.autoplay),l=!t.getSource()&&a;(t.isPlaying()||l)&&(this.on(),s(),t.on(t.exports.PlayerEvent.Warning,function(e){e.code===t.exports.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED&&s()}))},t.prototype.setTransitionAnimationsEnabled=function(e){var t=this.prefixCss("no-transition-animations");e?this.getDomElement().removeClass(t):this.getDomElement().hasClass(t)||this.getDomElement().addClass(t)},t}(r.PlaybackToggleButton);t.SmallCenteredPlaybackToggleButton=a},2572:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleButton=void 0;var r=n(9404),s=n(938),a=function(e){function t(t){var n=e.call(this,t)||this;return n.toggleButtonEvents={onToggle:new s.EventDispatcher,onToggleOn:new s.EventDispatcher,onToggleOff:new s.EventDispatcher},t.onAriaLabel&&(t.ariaLabel=t.onAriaLabel),n.config=n.mergeConfig(t,{cssClass:"ui-togglebutton",onClass:"on",offClass:"off"},n.config),n.useAriaPressedAttributeAsToggleIndicator=!n.config.onAriaLabel||!n.config.offAriaLabel,n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n);var o=this.getConfig();this.getDomElement().addClass(this.prefixCss(o.offClass)),this.useAriaPressedAttributeAsToggleIndicator=!this.config.onAriaLabel||!this.config.offAriaLabel,this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)},t.prototype.on=function(){if(this.isOff()){var e=this.getConfig();this.onState=!0,this.getDomElement().removeClass(this.prefixCss(e.offClass)),this.getDomElement().addClass(this.prefixCss(e.onClass)),this.onToggleEvent(),this.onToggleOnEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","true"):this.setAriaLabel(this.config.onAriaLabel)}},t.prototype.off=function(){if(this.isOn()){var e=this.getConfig();this.onState=!1,this.getDomElement().removeClass(this.prefixCss(e.onClass)),this.getDomElement().addClass(this.prefixCss(e.offClass)),this.onToggleEvent(),this.onToggleOffEvent(),this.useAriaPressedAttributeAsToggleIndicator?this.setAriaAttr("pressed","false"):this.setAriaLabel(this.config.offAriaLabel)}},t.prototype.toggle=function(){this.isOn()?this.off():this.on()},t.prototype.isOn=function(){return this.onState},t.prototype.isOff=function(){return!this.isOn()},t.prototype.onClickEvent=function(){e.prototype.onClickEvent.call(this),this.onToggleEvent()},t.prototype.onToggleEvent=function(){this.toggleButtonEvents.onToggle.dispatch(this)},t.prototype.onToggleOnEvent=function(){this.toggleButtonEvents.onToggleOn.dispatch(this)},t.prototype.onToggleOffEvent=function(){this.toggleButtonEvents.onToggleOff.dispatch(this)},Object.defineProperty(t.prototype,"onToggle",{get:function(){return this.toggleButtonEvents.onToggle.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOn",{get:function(){return this.toggleButtonEvents.onToggleOn.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onToggleOff",{get:function(){return this.toggleButtonEvents.onToggleOff.getEvent()},enumerable:!1,configurable:!0}),t}(r.Button);t.ToggleButton=a},4200:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VRToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-vrtogglebutton",text:s.i18n.getLocalizer("vr")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=t.getSource();return e&&Boolean(e.vr)},r=function(){var e=t.getSource();return t.vr&&Boolean(e.vr)},s=function(e){e.type===t.exports.PlayerEvent.Warning&&e.code!==t.exports.WarningCode.VR_RENDERING_ERROR||(i()&&r()?(o.show(),t.vr&&t.vr.getStereo()?o.on():o.off()):o.hide())},a=function(){i()?o.show():o.hide()};t.on(t.exports.PlayerEvent.VRStereoChanged,s),t.on(t.exports.PlayerEvent.Warning,s),t.on(t.exports.PlayerEvent.SourceUnloaded,a),n.getConfig().events.onUpdated.subscribe(a),this.onClick.subscribe(function(){r()?t.vr&&t.vr.getStereo()?t.vr.setStereo(!1):t.vr.setStereo(!0):console&&console.log("No VR content")}),a()},t}(r.ToggleButton);t.VRToggleButton=a},6713:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeControlButton=void 0;var r=n(1779),s=n(6003),a=n(5110),l=n(3998),c=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.volumeToggleButton=new a.VolumeToggleButton,n.volumeSlider=new s.VolumeSlider({vertical:null==t.vertical||t.vertical,hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-volumecontrolbutton",components:[n.volumeToggleButton,n.volumeSlider],hideDelay:500},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getVolumeToggleButton(),r=this.getVolumeSlider();this.volumeSliderHideTimeout=new l.Timeout(this.getConfig().hideDelay,function(){r.hide()});var s=!1;i.getDomElement().on("mouseenter",function(){r.isHidden()&&r.show(),o.volumeSliderHideTimeout.clear()}),i.getDomElement().on("mouseleave",function(){o.volumeSliderHideTimeout.reset()}),r.getDomElement().on("mouseenter",function(){o.volumeSliderHideTimeout.clear(),s=!0}),r.getDomElement().on("mouseleave",function(){r.isSeeking()?o.volumeSliderHideTimeout.clear():o.volumeSliderHideTimeout.reset(),s=!1}),r.onSeeked.subscribe(function(){s||o.volumeSliderHideTimeout.reset()})},t.prototype.release=function(){e.prototype.release.call(this),this.volumeSliderHideTimeout.clear()},t.prototype.getVolumeToggleButton=function(){return this.volumeToggleButton},t.prototype.getVolumeSlider=function(){return this.volumeSlider},t}(r.Container);t.VolumeControlButton=c},5110:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeToggleButton=void 0;var r=n(2572),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this,o={cssClass:"ui-volumetogglebutton",text:s.i18n.getLocalizer("settings.audio.mute"),onClass:"muted",offClass:"unmuted",ariaLabel:s.i18n.getLocalizer("settings.audio.mute")};return n.config=n.mergeConfig(t,o,n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getConfig().volumeController;i.onChanged.subscribe(function(e,t){t.muted?o.on():o.off();var n=Math.ceil(t.volume/10);o.getDomElement().data(o.prefixCss("volume-level-tens"),String(n))}),this.onClick.subscribe(function(){i.toggleMuted()}),i.onChangedEvent()},t}(r.ToggleButton);t.VolumeToggleButton=a},5195:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenu=void 0;var r=n(4073),s=n(1779),a=n(2704),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-context-menu",hideDelay:-1,hideOnControlsHide:!1,hidden:!0,role:"menu"},n.config),n.getComponents().forEach(function(e){return n.setContextMenuForComponent(e)}),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=n.getUI();this.contextMenuHost=i.getDomElement().get(0),this.onHide.subscribe(function(){var e=o.getDomElement();e.waitForTransitionEnd("opacity").then(function(){o.isHidden()&&e.remove()})});var r=function(e){e.defaultPrevented||(o.isShown()?o.isEventTargetInsideContextMenu(e)||o.hideAndReset():o.isEventTargetInsideElement(e,i.getDomElement().get(0))&&(e.preventDefault(),o.showAt(e.clientX,e.clientY)))},s=function(e){"Escape"===e.key&&o.isShown()&&o.hideAndReset()},a=function(e){o.isShown()&&!o.isEventTargetInsideContextMenu(e)&&o.hideAndReset()};n.onActive.subscribe(function(){document.addEventListener("contextmenu",r),document.addEventListener("keydown",s),document.addEventListener("click",a)}),n.onInactive.subscribe(function(){document.removeEventListener("contextmenu",r),document.removeEventListener("keydown",s),document.removeEventListener("click",a),o.hideAndReset()})},t.prototype.release=function(){var t=this;this.getComponents().forEach(function(e){return t.unsetContextMenuForComponent(e)}),e.prototype.release.call(this),this.hasDomElement()&&this.getDomElement().remove()},t.prototype.addComponent=function(t){e.prototype.addComponent.call(this,t),this.setContextMenuForComponent(t)},t.prototype.prependComponent=function(t){e.prototype.prependComponent.call(this,t),this.setContextMenuForComponent(t)},t.prototype.removeComponent=function(t){var n=e.prototype.removeComponent.call(this,t);return n&&this.unsetContextMenuForComponent(t),n},t.prototype.showAt=function(e,t){var n=this.getDomElement(),o=n.get(0);this.attachContextMenuElement();var i=o.offsetWidth,r=o.offsetHeight,s=this.contextMenuHost.getBoundingClientRect(),a=Math.max(0,s.width-i-4),l=Math.max(0,s.height-r-4),c=Math.max(0,Math.min(e-s.left,a)),u=Math.max(0,Math.min(t-s.top,l));n.css({left:"".concat(c,"px"),top:"".concat(u,"px")}),this.show()},t.prototype.isEventTargetInsideContextMenu=function(e){return this.isEventTargetInsideElement(e,this.getDomElement().get(0))},t.prototype.isEventTargetInsideElement=function(e,t){var n,o=null===(n=e.composedPath)||void 0===n?void 0:n.call(e);return o?o.includes(t):e.target instanceof Node&&t.contains(e.target)},t.prototype.attachContextMenuElement=function(){this.contextMenuHost.appendChild(this.getDomElement().get(0))},t.prototype.setContextMenuForComponent=function(e){var t=this;e instanceof a.InteractiveContextMenuItem&&e.setContextMenu(this),e instanceof s.Container&&e.getComponents().forEach(function(e){return t.setContextMenuForComponent(e)})},t.prototype.unsetContextMenuForComponent=function(e){var t=this;e instanceof a.InteractiveContextMenuItem&&e.setContextMenu(null),e instanceof s.Container&&e.getComponents().forEach(function(e){return t.unsetContextMenuForComponent(e)})},t}(r.SettingsPanel);t.ContextMenu=l},2704:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveContextMenuItem=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.contextMenu=null,n.config=n.mergeConfig(t,{cssClass:"ui-interactive-context-menu-item",role:"menuitem",tabIndex:0,closeContextMenuOnAction:!1,addSettingAsComponent:!1,isSetting:!1},n.config),n}return i(t,e),t.prototype.setContextMenu=function(e){this.contextMenu=e},t.prototype.onClickEvent=function(){this.closeContextMenuForAction(),e.prototype.onClickEvent.call(this)},t.prototype.closeContextMenuForAction=function(){var e;this.config.closeContextMenuOnAction&&(null===(e=this.contextMenu)||void 0===e||e.hide())},t}(n(9800).InteractiveSettingsPanelItem);t.InteractiveContextMenuItem=r},8876:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContextMenu=void 0;var a=n(5801),l=n(6203),c=n(8248),u=n(5195),p=n(9811),f=n(1742),d=n(8666),g=n(3350),h=function(e){function t(t){var n,o,i=s([new p.PlayerInsightsContextMenuItem({playerInsightsPanel:t.playerInsightsPanel})],null!==(n=t.components)&&void 0!==n?n:[],!0);return e.call(this,r(r({},t),{cssClasses:s(["ui-player-context-menu"],null!==(o=t.cssClasses)&&void 0!==o?o:[],!0),components:[new d.SettingsPanelPage({components:s([new y,new g.SettingsPanelSeparator],i,!0)})]}))||this}return i(t,e),t}(u.ContextMenu);t.PlayerContextMenu=h;var y=function(e){function t(){var t=this,n=new c.Label({text:"Player: -",cssClasses:["ui-player-context-menu-info"]});return(t=e.call(this,{label:null,components:[new c.Label({text:a.i18n.getLocalizer("contextMenu.title"),cssClasses:["ui-player-context-menu-header"]}),new c.Label({text:a.i18n.getLocalizer("contextMenu.subtitle"),cssClasses:["ui-player-context-menu-subtitle"]}),n,new c.Label({text:"UI: ".concat(l.version),cssClasses:["ui-player-context-menu-info"]})],cssClasses:["ui-player-context-menu-info-item"],isSetting:!1,role:"group",tabIndex:-1})||this).playerVersionLabel=n,t}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.playerVersionLabel.setText("Player: ".concat(t.version))},t}(f.SettingsPanelItem)},8248:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Label=t.LabelStyle=void 0;var r,s=n(5955),a=n(323),l=n(938),c=n(5801),u=n(4647);!function(e){e.Text="text",e.TextWithLeadingIcon="text-icon-leading",e.TextWithTrailingIcon="text-icon-trailing"}(r||(t.LabelStyle=r={}));var p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.textElement=null,n.labelEvents={onClick:new l.EventDispatcher,onTextChanged:new l.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-label",labelStyle:r.Text},n.config),n.text=n.config.text,n}return i(t,e),t.prototype.onLanguageChanged=function(){"function"==typeof this.config.text&&this.setText(this.config.text)},t.prototype.toDomElement=function(){var e=this,t=null!=this.config.for?"label":"span",n=new a.DOM("span",{class:this.prefixCss("ui-label-text")},this).html(c.i18n.performLocalization(this.text));this.textElement=n;var o=new a.DOM(t,{id:this.config.id,for:this.config.for,class:this.getCssClasses(),tabindex:this.config.tabIndex.toString()},this);if(o.append(n),o.on("click",function(){e.onClickEvent()}),this.config.labelStyle!==r.Text){var i=new u.Icon;switch(this.config.labelStyle){case r.TextWithTrailingIcon:o.append(i.getDomElement());break;case r.TextWithLeadingIcon:o.prepend(i.getDomElement())}}return o},t.prototype.setText=function(e){var t;if(e!==this.text||"function"==typeof e){this.text=e;var n=c.i18n.performLocalization(e);null===(t=this.textElement)||void 0===t||t.html(c.i18n.performLocalization(e)),this.onTextChangedEvent(n)}},t.prototype.getText=function(){return c.i18n.performLocalization(this.text)},t.prototype.clearText=function(){var e;null===(e=this.textElement)||void 0===e||e.html(""),this.onTextChangedEvent(null)},t.prototype.isEmpty=function(){return!this.text},t.prototype.onClickEvent=function(){this.labelEvents.onClick.dispatch(this)},t.prototype.onTextChangedEvent=function(e){this.labelEvents.onTextChanged.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.labelEvents.onClick.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTextChanged",{get:function(){return this.labelEvents.onTextChanged.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);t.Label=p},4947:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataLabel=t.MetadataLabelContent=void 0;var r,s=n(8248);!function(e){e[e.Title=0]="Title",e[e.Description=1]="Description"}(r||(t.MetadataLabelContent=r={}));var a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["label-metadata","label-metadata-"+r[t.content].toLowerCase()]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),s=n.getConfig(),a=function(){switch(i.content){case r.Title:o.setText(s.metadata.title);break;case r.Description:o.setText(s.metadata.description)}};a(),t.on(t.exports.PlayerEvent.SourceUnloaded,function(){o.setText(null)}),n.getConfig().events.onUpdated.subscribe(a)},t}(s.Label);t.MetadataLabel=a},9024:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackTimeLabel=t.PlaybackTimeLabelMode=void 0;var r,s=n(8248),a=n(7395),l=n(1823),c=n(5801);!function(e){e[e.CurrentTime=0]="CurrentTime",e[e.TotalTime=1]="TotalTime",e[e.CurrentAndTotalTime=2]="CurrentAndTotalTime",e[e.RemainingTime=3]="RemainingTime"}(r||(t.PlaybackTimeLabelMode=r={}));var u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-playbacktimelabel",timeLabelMode:r.CurrentAndTotalTime,hideInLivePlayback:!1},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=!1,s=this.prefixCss("ui-playbacktimelabel-live"),u=this.prefixCss("ui-playbacktimelabel-live-edge"),p=0,f=function(){t.timeShift(0)},d=function(){if(r){var e=t.getTimeShift()<0,n=t.getMaxTimeShift()<0;e||t.isPaused()&&n?o.getDomElement().removeClass(u):o.getDomElement().addClass(u)}},g=function(){r||t.getDuration()===1/0||o.setTime(a.PlayerUtils.getCurrentTimeRelativeToSeekableRange(t),t.getDuration());var e=o.getDomElement().width();e>p&&(p=e,o.getDomElement().css({"min-width":p+"px"}))},h=function(){o.timeFormat=Math.abs(t.isLive()?t.getMaxTimeShift():t.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,g()},y=new a.PlayerUtils.LiveStreamDetector(t,n);y.onLiveChanged.subscribe(function(e,n){r=n.live,g(),h(),(r=t.isLive())?(o.getDomElement().addClass(s),o.setText(c.i18n.getLocalizer("live")),i.hideInLivePlayback&&o.hide(),o.onClick.subscribe(f),d()):(o.getDomElement().removeClass(s),o.getDomElement().removeClass(u),o.show(),o.onClick.unsubscribe(f))}),y.detect();var v=function(){p=0,o.getDomElement().css({"min-width":null}),h()};t.on(t.exports.PlayerEvent.TimeChanged,g),t.on(t.exports.PlayerEvent.Ready,h),t.on(t.exports.PlayerEvent.Seeked,g),t.on(t.exports.PlayerEvent.TimeShift,d),t.on(t.exports.PlayerEvent.TimeShifted,d),t.on(t.exports.PlayerEvent.Playing,d),t.on(t.exports.PlayerEvent.Paused,d),t.on(t.exports.PlayerEvent.StallStarted,d),t.on(t.exports.PlayerEvent.StallEnded,d),t.on(t.exports.PlayerEvent.DurationChanged,v),n.getConfig().events.onUpdated.subscribe(v),v()},t.prototype.setTime=function(e,t){var n=l.StringUtils.secondsToTime(e,this.timeFormat),o=l.StringUtils.secondsToTime(t,this.timeFormat);switch(this.config.timeLabelMode){case r.CurrentTime:this.setText("".concat(n));break;case r.TotalTime:this.setText("".concat(o));break;case r.CurrentAndTotalTime:this.setText("".concat(n," / ").concat(o));break;case r.RemainingTime:this.setText("".concat(l.StringUtils.secondsToTime(t-e,this.timeFormat)))}},t.prototype.setTimeFormat=function(e){this.timeFormat=e},t}(s.Label);t.PlaybackTimeLabel=u},796:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackListBox=void 0;var s=n(6171),a=n(9367),l=n(1886),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.AudioTrackSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.AudioTrackSwitchHandler(t,this.config.listSelector,n)},t}(s.ListBox);t.AudioTrackListBox=c},7725:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ItemSelectionList=void 0;var r=n(6541),s=n(323),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{tag:"ul",cssClass:"ui-itemselectionlist"},n.config),n}return i(t,e),t.prototype.isActive=function(){return this.items.length>1},t.prototype.toDomElement=function(){var e=new s.DOM("ul",{id:this.config.id,class:this.getCssClasses()},this);return this.listElement=e,this.updateDomItems(),e},t.prototype.updateDomItems=function(e){var n=this;void 0===e&&(e=null),this.listElement.empty();for(var o=null,i=function(e){e.addClass(n.prefixCss(t.CLASS_SELECTED))},r=function(r){var c=new s.DOM("li",{type:"li",class:l.prefixCss("ui-selectionlistitem")}).append(new s.DOM("a",{}).html(a.i18n.performLocalization(r.label)));o||(null==e||String(e)===r.key)&&(o=c),c.on("click",function(){o&&function(e){e.removeClass(n.prefixCss(t.CLASS_SELECTED))}(o),o=c,i(c),n.onItemSelectedEvent(r.key,!1)}),o&&i(o),l.listElement.append(c)},l=this,c=0,u=this.items;c<u.length;c++)r(u[c])},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.CLASS_SELECTED="selected",t}(r.ListSelector);t.ItemSelectionList=l},6171:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ListBox=void 0;var r=n(4073),s=n(8666),a=n(5856),l=n(1742),c=n(8248),u=function(e){function t(t){var n=e.call(this,t)||this;if(n.settingsPanelPage=new s.SettingsPanelPage({}),n.listSelector=t.listSelector,n.config=n.mergeConfig(t,{hidden:!0,cssClasses:["ui-listbox"]},n.config),n.addComponent(n.settingsPanelPage),t.title){var o=new c.Label({text:t.title,cssClasses:["title-label"]});n.settingsPanelPage.addComponent(new l.SettingsPanelItem({label:o,cssClasses:["title-item"],isSetting:!1}))}return n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){var i=o.listSelector.getItemForKey(e);if(!i)return null;var r=new a.SettingsPanelSelectOption({label:i.label,labelStyle:c.LabelStyle.TextWithLeadingIcon,settingComponent:o.listSelector,settingsValue:i.key,addSettingAsComponent:!1});return r.configure(t,n),r},r=function(){for(var e=0,t=o.settingsPanelPage.getComponents().filter(function(e){return e instanceof a.SettingsPanelSelectOption});e<t.length;e++){var n=t[e];o.settingsPanelPage.removeSettingsPanelItem(n)}for(var r=0,s=o.listSelector.getItems();r<s.length;r++){var l=s[r],c=i(l.key);c&&o.settingsPanelPage.addSettingsPanelItem(c)}o.onSettingsStateChangedEvent()},s=!1;this.listSelector.onItemsChanged.subscribe(function(){s=!0,r()}),this.settingsPanelPage.configure(t,n),this.listSelector.configure(t,n),s||r()},t}(r.SettingsPanel);t.ListBox=u},6541:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListSelector=void 0;var s=n(5955),a=n(938),l=n(1971),c=n(5801),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.selectedItem=null,n.listSelectorEvents={onItemAdded:new a.EventDispatcher,onItemRemoved:new a.EventDispatcher,onItemsChanged:new a.EventDispatcher,onItemSelected:new a.EventDispatcher,onItemSelectionChanged:new a.EventDispatcher},n.config=n.mergeConfig(t,{items:[],cssClass:"ui-listselector"},n.config),n.items=n.config.items,n}return i(t,e),t.prototype.normalizeItem=function(e){var t=r({},e);return this.config.filter&&!this.config.filter(t)?null:(this.config.translator&&(t.label=this.config.translator(t)),t)},t.prototype.getItemIndex=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].key===e)return t;return-1},t.prototype.haveItemsChanged=function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var o=e[n],i=t[n];if(o.key!==i.key||c.i18n.performLocalization(o.label)!==c.i18n.performLocalization(i.label)||o.ariaLabel!==i.ariaLabel)return!0}return!1},t.prototype.insertItem=function(e,t){if(this.config.comparator)return this.items.push(e),void this.items.sort(this.config.comparator);if(t){var n=this.items.findIndex(function(t){return t.key>e.key});n<0?this.items.push(e):this.items.splice(n,0,e)}else this.items.push(e)},t.prototype.getItems=function(){return this.items},t.prototype.hasItem=function(e){return this.getItemIndex(e)>-1},t.prototype.addItem=function(e,t,n,o){void 0===n&&(n=!1),void 0===o&&(o="");var i=this.normalizeItem(r({key:e,label:t},o&&{ariaLabel:o}));if(i){var s=this.getItemIndex(e);s>-1&&(l.ArrayUtils.remove(this.items,this.items[s]),this.onItemRemovedEvent(e)),this.insertItem(i,n),this.onItemAddedEvent(e),this.onItemsChangedEvent()}},t.prototype.removeItem=function(e){var t=this.getItemIndex(e);return t>-1&&(l.ArrayUtils.remove(this.items,this.items[t]),this.onItemRemovedEvent(e),this.onItemsChangedEvent(),!0)},t.prototype.selectItem=function(e){return e===this.selectedItem||this.getItemIndex(e)>-1&&(this.selectedItem=e,this.onItemSelectedEvent(e),!0)},t.prototype.getSelectedItem=function(){return this.selectedItem},t.prototype.getItemForKey=function(e){return this.items.find(function(t){return t.key===e})},t.prototype.synchronizeItems=function(e){var t=this,n=e.map(function(e){return t.normalizeItem(e)}).filter(function(e){return null!==e});this.config.comparator&&n.sort(this.config.comparator);var o=this.haveItemsChanged(this.items,n),i=new Set(this.items.map(function(e){return e.key})),r=new Set(n.map(function(e){return e.key})),s=this.items.filter(function(e){return!r.has(e.key)}).map(function(e){return e.key}),a=n.filter(function(e){return!i.has(e.key)}).map(function(e){return e.key});this.items=n,null===this.selectedItem||r.has(this.selectedItem)||(this.selectedItem=null);for(var l=0,c=s;l<c.length;l++){var u=c[l];this.onItemRemovedEvent(u)}for(var p=0,f=a;p<f.length;p++)u=f[p],this.onItemAddedEvent(u);o&&this.onItemsChangedEvent()},t.prototype.clearItems=function(){if(0!==this.items.length){var e=this.items;this.items=[],this.selectedItem=null;for(var t=0,n=e;t<n.length;t++){var o=n[t];this.onItemRemovedEvent(o.key)}this.onItemsChangedEvent()}},t.prototype.itemCount=function(){return Object.keys(this.items).length},t.prototype.onItemAddedEvent=function(e){this.listSelectorEvents.onItemAdded.dispatch(this,e)},t.prototype.onItemRemovedEvent=function(e){this.listSelectorEvents.onItemRemoved.dispatch(this,e)},t.prototype.onItemsChangedEvent=function(){this.listSelectorEvents.onItemsChanged.dispatch(this)},t.prototype.onItemSelectedEvent=function(e){this.listSelectorEvents.onItemSelected.dispatch(this,e)},t.prototype.onItemSelectionChangedEvent=function(e){this.listSelectorEvents.onItemSelectionChanged.dispatch(this,e)},t.prototype.dispatchItemSelectionChanged=function(e,t){void 0===t&&(t=!0),t&&this.selectItem(e),this.onItemSelectionChangedEvent(e)},Object.defineProperty(t.prototype,"onItemAdded",{get:function(){return this.listSelectorEvents.onItemAdded.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemRemoved",{get:function(){return this.listSelectorEvents.onItemRemoved.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemsChanged",{get:function(){return this.listSelectorEvents.onItemsChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelected",{get:function(){return this.listSelectorEvents.onItemSelected.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onItemSelectionChanged",{get:function(){return this.listSelectorEvents.onItemSelectionChanged.getEvent()},enumerable:!1,configurable:!0}),t}(s.Component);t.ListSelector=u},1015:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleListBox=void 0;var s=n(6171),a=n(1436),l=n(5277),c=function(e){function t(t){void 0===t&&(t={});var n="string"==typeof t||"function"==typeof t?{title:t}:t;return e.call(this,r(r({},n),{listSelector:new l.SubtitleSelectBox(n)}))||this}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.SubtitleSwitchHandler(t,this.config.listSelector,n)},t}(s.ListBox);t.SubtitleListBox=c},2680:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferingOverlay=void 0;var r=n(1779),s=n(5955),a=n(3998),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.indicators=[new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"}),new s.Component({tag:"div",cssClass:"ui-buffering-overlay-indicator",role:"img"})],n.config=n.mergeConfig(t,{cssClass:"ui-buffering-overlay",hidden:!0,components:n.indicators,showDelayMs:1e3},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=new a.Timeout(i.showDelayMs,function(){n.onBufferingShow.dispatch(o),o.show()}),s=function(){r.start()},l=function(){t.isPlaying()&&s()},c=function(){r.clear(),n.onBufferingHide.dispatch(o),o.hide()};t.on(t.exports.PlayerEvent.StallStarted,s),t.on(t.exports.PlayerEvent.StallEnded,c),t.on(t.exports.PlayerEvent.Play,s),t.on(t.exports.PlayerEvent.Playing,c),t.on(t.exports.PlayerEvent.Paused,c),t.on(t.exports.PlayerEvent.Seek,l),t.on(t.exports.PlayerEvent.Seeked,c),t.on(t.exports.PlayerEvent.TimeShift,l),t.on(t.exports.PlayerEvent.TimeShifted,c),t.on(t.exports.PlayerEvent.SourceUnloaded,c),t.isStalled()&&this.show()},t}(r.Container);t.BufferingOverlay=l},2691:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CastStatusOverlay=void 0;var r=n(1779),s=n(8248),a=n(5801),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.statusLabel=new s.Label({cssClass:"ui-cast-status-label"}),n.config=n.mergeConfig(t,{cssClass:"ui-cast-status-overlay",components:[n.statusLabel],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),t.on(t.exports.PlayerEvent.CastWaitingForDevice,function(e){o.show();var t=e.castPayload.deviceName;o.statusLabel.setText(a.i18n.getLocalizer("connectingTo",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStarted,function(e){o.show();var t=e.deviceName;o.statusLabel.setText(a.i18n.getLocalizer("playingOn",{castDeviceName:t}))}),t.on(t.exports.PlayerEvent.CastStopped,function(e){o.hide()})},t}(r.Container);t.CastStatusOverlay=l},6326:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClickOverlay=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-clickoverlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.setUrl(this.config.url);var t=this.getDomElement();t.on("click",function(){t.data("url")&&window.open(t.data("url"),"_blank")})},t.prototype.getUrl=function(){return this.getDomElement().data("url")},t.prototype.setUrl=function(e){void 0!==e&&null!=e||(e=""),this.getDomElement().data("url",e)},t}(n(9404).Button);t.ClickOverlay=r},4636:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DismissClickOverlay=void 0;var r=n(1779),s=n(4073),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-dismiss-click-overlay",role:n.config.role},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.config.target.onShow.subscribe(function(){o.show()}),this.config.target.onHide.subscribe(function(){o.hide()}),this.getDomElement().on("click",function(){o.config.target instanceof s.SettingsPanel?o.config.target.hideAndReset():o.config.target.hide()})},t}(r.Container);t.DismissClickOverlay=a},823:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessageOverlay=void 0;var r=n(1779),s=n(8248),a=n(6884),l=n(2414),c=n(2157),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.errorLabel=new s.Label({cssClass:"ui-errormessage-label"}),n.tvNoiseBackground=new a.TvNoiseCanvas,n.config=n.mergeConfig(t,{cssClass:"ui-errormessage-overlay",components:[n.tvNoiseBackground,n.errorLabel],hidden:!0,role:"status"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=function(e,t){var r=function(e,t){if(e){if("function"==typeof e)return e(t);if(e[t.code]){var n=e[t.code];return"string"==typeof n?n:n(t)}}}(n.getConfig().errorMessages||i.messages,e);r&&(t=r),o.display(t)};if((0,c.isMobileV3PlayerAPI)(t)){var s=function(e){var t=l.ErrorUtils.defaultMobileV3ErrorMessageTranslator(e);r(e,t)};t.on(c.MobileV3PlayerEvent.PlayerError,s),t.on(c.MobileV3PlayerEvent.SourceError,s)}else t.on(t.exports.PlayerEvent.Error,function(e){var t=l.ErrorUtils.defaultWebErrorMessageTranslator(e);r(e,t)});t.on(t.exports.PlayerEvent.SourceLoaded,function(e){o.isShown()&&o.clear()})},t.prototype.display=function(e){this.errorLabel.setText(e),this.tvNoiseBackground.start(),this.show()},t.prototype.clear=function(){this.errorLabel.setText(""),this.tvNoiseBackground.stop(),this.hide()},t.prototype.release=function(){e.prototype.release.call(this),this.clear()},t}(r.Container);t.ErrorMessageOverlay=u},1904:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackToggleOverlay=void 0;var r=n(1779),s=n(958),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.playbackToggleButton=new s.HugePlaybackToggleButton({enterFullscreenOnInitialPlayback:Boolean(t.enterFullscreenOnInitialPlayback)}),n.config=n.mergeConfig(t,{cssClass:"ui-playbacktoggle-overlay",components:[n.playbackToggleButton]},n.config),n}return i(t,e),t}(r.Container);t.PlaybackToggleOverlay=a},9529:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlay=void 0;var r=n(1779),s=n(1308),a=n(2806),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.replayButton=new s.HugeReplayButton,n.recommendationContainer=new r.Container({components:[],cssClasses:["recommendation-overlay-row","recommendations-section"]}),n.config=n.mergeConfig(t,{cssClass:"ui-recommendation-overlay",hidden:!0,components:[new r.Container({components:[n.replayButton,n.recommendationContainer],cssClasses:["recommendation-overlay-row","replay-section"]})]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=function(){i.recommendationContainer.removeComponents(),i.recommendationContainer.updateComponents(),i.getDomElement().removeClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))},s=function(){r();var e=o.getConfig().metadata.recommendations;if(0!=e.length){var s=1;e.forEach(function(e){var t=new a.RecommendationItem({recommendationConfig:e,cssClasses:["recommendation-item-"+s++]});t.configure(n,o),i.recommendationContainer.addComponent(t)}),i.recommendationContainer.updateComponents(),i.getDomElement().addClass(i.prefixCss(t.CLASS_HAS_RECOMMENDATIONS))}};o.getConfig().events.onUpdated.subscribe(s),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){r(),i.hide()}),n.on(n.exports.PlayerEvent.PlaybackFinished,function(){i.show()}),n.on(n.exports.PlayerEvent.Play,function(){i.hide()}),s()},t.CLASS_HAS_RECOMMENDATIONS="recommendations",t}(r.Container);t.RecommendationOverlay=l},4048:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleRegionContainer=t.SubtitleRegionContainerManager=t.SubtitleLabel=t.SubtitleOverlay=void 0;var r=n(1779),s=n(8248),a=n(9052),l=n(938),c=n(323),u=n(5801),p=n(5810),f=function(e){function t(n){void 0===n&&(n={});var o=e.call(this,n)||this;return o.preprocessLabelEventCallback=new l.EventDispatcher,o.cea608Enabled=!1,o.cea608FontSizeFactor=1,o.cea608SmallPlayerHeightThreshold=t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD,o.filterFontSizeOptions=function(e){if(o.cea608Enabled&&null!==e.key){var t=parseInt(e.key,10);return!isNaN(t)&&t<=200}return!0},o.previewSubtitleActive=!1,o.previewSubtitle=new d({text:u.i18n.getLocalizer("subtitle.example")}),o.config=o.mergeConfig(n,{cssClass:"ui-subtitle-overlay",enableCea608CaptionFormatting:!0},o.config),o}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=o.getConfig();void 0!==r.cea608SmallPlayerHeightThreshold&&(this.cea608SmallPlayerHeightThreshold=r.cea608SmallPlayerHeightThreshold);var s=new g;this.subtitleManager=s,this.subtitleContainerManager=new h(this),n.on(n.exports.PlayerEvent.CueEnter,function(e){var t=i.generateLabel(e);s.cueEnter(e,t),i.preprocessLabelEventCallback.dispatch(e,t),i.previewSubtitleActive&&i.subtitleContainerManager.removeLabel(i.previewSubtitle),i.show(),i.subtitleContainerManager.addLabel(t,i.getDomElement().size()),i.updateComponents(),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueUpdate,function(e){var t=i.generateLabel(e),n=s.cueUpdate(e,t);i.preprocessLabelEventCallback.dispatch(e,t),n&&(i.subtitleContainerManager.replaceLabel(n,t,i.getDomElement().size()),i.updateComponents()),o.getConfig().forceSubtitlesIntoViewContainer&&i.handleSubtitleCropping(t)}),n.on(n.exports.PlayerEvent.CueExit,function(e){var t=s.cueExit(e);t&&(i.subtitleContainerManager.removeLabel(t),i.updateComponents()),s.hasCues||(i.previewSubtitleActive?(i.subtitleContainerManager.addLabel(i.previewSubtitle),i.updateComponents()):i.hide())});var l=function(){i.hide(),i.subtitleContainerManager.clear(),s.clear(),i.removeComponents(),i.updateComponents()},u=function(){s.clearInactiveCues(n.getCurrentTime()).forEach(function(e){i.subtitleContainerManager.removeLabel(e.label)}),i.updateComponents()};n.on(n.exports.PlayerEvent.AudioChanged,l),n.on(n.exports.PlayerEvent.SubtitleDisabled,l),n.on(n.exports.PlayerEvent.Seeked,u),n.on(n.exports.PlayerEvent.TimeShifted,u),n.on(n.exports.PlayerEvent.PlaybackFinished,l),n.on(n.exports.PlayerEvent.SourceUnloaded,l),o.onComponentShow.subscribe(function(e){if(e instanceof a.ControlBar){i.getDomElement().addClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&i.getDomElement().waitForTransitionEnd("bottom").then(i.ensureCea608GridSizeUpdated)}}),o.onComponentHide.subscribe(function(e){if(e instanceof a.ControlBar){i.getDomElement().removeClass(i.prefixCss(t.CLASS_CONTROLBAR_VISIBLE));var n=!i.getDomElement().hasClass(i.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED));i.cea608Enabled&&i.ensureCea608GridSizeUpdated&&n&&i.getDomElement().waitForTransitionEnd("bottom").then(i.ensureCea608GridSizeUpdated)}}),this.configureCea608Captions(n,o),l(),this.updateCea608PushupFromPlayerHeight(new c.DOM(n.getContainer()).height())},t.prototype.updateCea608PushupFromPlayerHeight=function(e){this.cea608SmallPlayerHeightThreshold>0&&e<=this.cea608SmallPlayerHeightThreshold?this.getDomElement().addClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_CEA608_PUSHUP_DISABLED))},t.prototype.setFontSizeFactor=function(e){this.cea608FontSizeFactor=Math.max(.5,Math.min(2,e))},t.prototype.detectCroppedSubtitleLabel=function(e){var t=this.getDomElement().get(0),n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{top:n.top<o.top,right:n.right>o.right,bottom:n.bottom>o.bottom,left:n.left<o.left}},t.prototype.handleSubtitleCropping=function(e){var t=e.getDomElement(),n=this.detectCroppedSubtitleLabel(t.get(0));n.top&&(t.css("top","0"),t.removeCss("bottom")),n.right&&(t.css("right","0"),t.removeCss("left")),n.bottom&&(t.css("bottom","0"),t.removeCss("top")),n.left&&(t.css("left","0"),t.removeCss("right"))},t.prototype.generateLabel=function(e){var t,n=e.region,o=(null===(t=e.position)||void 0===t?void 0:t.row)||0;return v(e)&&(e.position.row=e.position.row||0,e.position.column=e.position.column||0,n=n||"cea608-row-".concat(e.position.row)),new d({text:e.html||g.generateImageTagText(e.image)||e.text,cssClasses:e.vtt&&!e.vtt.region?["subtitle-vtt-cue"]:[],vtt:e.vtt,region:n,regionStyle:e.regionStyle,originalRowPosition:o})},t.prototype.resolveFontSizeFactor=function(e){return parseInt(e)/100},t.prototype.configureCea608Captions=function(e,n){var o,i,r=this,s=0,a=0,l=0;this.cea608Enabled=!1;var c={overlayWidth:0,overlayHeight:0,fontSizeFactor:0},u=n.getSubtitleSettingsManager();if(null!=u.fontSize.value){var p=this.resolveFontSizeFactor(u.fontSize.value);this.setFontSizeFactor(p)}u.fontSize.onChanged.subscribe(function(e,t){if(t.isSet()){var n=r.resolveFontSizeFactor(t.value);r.setFontSizeFactor(n)}else r.setFontSizeFactor(1);r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),null===(o=this.onShow)||void 0===o||o.subscribe(function(){r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.ensureCea608GridSizeUpdated=function(){var e=r.getDomElement(),n=e.width(),o=e.height(),u=n!==c.overlayWidth||o!==c.overlayHeight,p=r.cea608FontSizeFactor!==c.fontSizeFactor;if(u||p){c={overlayWidth:n,overlayHeight:o,fontSizeFactor:r.cea608FontSizeFactor};var f=new d({text:"X"});f.getDomElement().css({"font-size":"200px","line-height":"200px",visibility:"hidden"}),r.addComponent(f),r.updateComponents(),r.show();var g=f.getDomElement().width(),h=f.getDomElement().height(),v=g/h;r.removeComponent(f),r.updateComponents(),r.subtitleManager.hasCues||r.hide();var m=1-parseFloat(t.DEFAULT_CAPTION_LEFT_OFFSET)/100,b=Math.floor(m*n)-10,C=o;if(b/C>g*t.CEA608_NUM_COLUMNS/(h*t.CEA608_NUM_ROWS)){s=C/t.CEA608_NUM_ROWS,a=.8*s*.75*r.cea608FontSizeFactor;var S=b/t.CEA608_NUM_COLUMNS,P=a*v;l=Math.max(S-P,0)}else s=b/t.CEA608_NUM_COLUMNS/v,a=.8*s*.75*r.cea608FontSizeFactor,l=0;i=.2*s,e.get().forEach(function(e){e.style.setProperty("--cea608-row-height","".concat(s,"px"))});for(var w=function(e){var t={"font-size":"".concat(a,"px"),"line-height":"".concat(s-i,"px")};r.isCea608FormattingEnabled()&&(t["letter-spacing"]="".concat(l,"px")),e.getDomElement().css(t),e.regionStyle="margin: ".concat(i/2,"px; height: ").concat(s,"px")},E=0,_=r.getComponents();E<_.length;E++){var O=_[E];O instanceof y&&(O.getDomElement().css({margin:"".concat(i/2,"px"),height:"".concat(s,"px")}),O.getComponents().forEach(function(e){w(e)})),O instanceof d&&w(O)}}},e.on(e.exports.PlayerEvent.PlayerResized,function(e){r.updateCea608PushupFromPlayerHeight(parseFloat(e.height)),r.cea608Enabled&&r.ensureCea608GridSizeUpdated()}),this.preprocessLabelEventCallback.subscribe(function(e,n){if(v(e)){r.cea608Enabled||(r.cea608Enabled=!0,r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608)),r.isCea608FormattingEnabled()&&r.getDomElement().addClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)));var o=e.position.column*t.CEA608_COLUMN_OFFSET+"%";"0%"===o&&(o=t.DEFAULT_CAPTION_LEFT_OFFSET);var c={left:o,"font-size":"".concat(a,"px"),"line-height":"".concat(s-i,"px")};r.isCea608FormattingEnabled()&&(c["letter-spacing"]="".concat(l,"px")),n.getDomElement().css(c),n.regionStyle="margin: ".concat(i/2,"px; height: ").concat(s,"px")}});var f=function(){r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608)),r.getDomElement().removeClass(r.prefixCss(t.CLASS_CEA_608_FORMATTING)),r.cea608Enabled&&(c={overlayWidth:0,overlayHeight:0,fontSizeFactor:0}),r.cea608Enabled=!1};e.on(e.exports.PlayerEvent.CueExit,function(){r.subtitleManager.hasCues||f()}),e.on(e.exports.PlayerEvent.SourceUnloaded,f),e.on(e.exports.PlayerEvent.SubtitleEnabled,f),e.on(e.exports.PlayerEvent.SubtitleDisabled,f)},t.prototype.enablePreviewSubtitleLabel=function(){this.subtitleManager.hasCues||(this.previewSubtitleActive=!0,this.subtitleContainerManager.addLabel(this.previewSubtitle),this.updateComponents(),this.show())},t.prototype.removePreviewSubtitleLabel=function(){this.previewSubtitleActive&&(this.previewSubtitleActive=!1,this.subtitleContainerManager.removeLabel(this.previewSubtitle),this.updateComponents())},t.prototype.isCea608FormattingEnabled=function(){var e;return!1!==(null===(e=this.config)||void 0===e?void 0:e.enableCea608CaptionFormatting)},t.CLASS_CONTROLBAR_VISIBLE="controlbar-visible",t.CLASS_CEA_608="cea608",t.CLASS_CEA608_PUSHUP_DISABLED="cea608-pushup-disabled",t.DEFAULT_CEA608_SMALL_PLAYER_HEIGHT_THRESHOLD=360,t.CLASS_CEA_608_FORMATTING="cea608-formatting",t.CEA608_NUM_ROWS=15,t.CEA608_NUM_COLUMNS=32,t.CEA608_COLUMN_OFFSET=100/t.CEA608_NUM_COLUMNS,t.DEFAULT_CAPTION_LEFT_OFFSET="0.5%",t}(r.Container);t.SubtitleOverlay=f;var d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-subtitle-label"},n.config),n}return i(t,e),Object.defineProperty(t.prototype,"vtt",{get:function(){return this.config.vtt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"region",{get:function(){return this.config.region},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"regionStyle",{get:function(){return this.config.regionStyle},set:function(e){this.config.regionStyle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"originalRowPosition",{get:function(){return this.config.originalRowPosition},set:function(e){this.config.originalRowPosition=e},enumerable:!1,configurable:!0}),t}(s.Label);t.SubtitleLabel=d;var g=function(){function e(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0}return e.calculateId=function(e){var t=e.start+"-"+e.text;return e.position&&(t+="-"+e.position.row+"-"+e.position.column),t},e.prototype.cueEnter=function(e,t){this.addCueToMap(e,t)},e.prototype.cueUpdate=function(e,t){var n=this.popCueFromMap(e);if(n)return this.addCueToMap(e,t),n},e.prototype.addCueToMap=function(t,n){var o=e.calculateId(t);this.activeSubtitleCueMap[o]=this.activeSubtitleCueMap[o]||[],this.activeSubtitleCueMap[o].push({event:t,label:n}),this.activeSubtitleCueCount++},e.prototype.popCueFromMap=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0){var i=o.shift();return this.activeSubtitleCueCount--,i.label}},e.prototype.clearInactiveCues=function(e){var t=this,n=[];return Object.keys(this.activeSubtitleCueMap).forEach(function(o){t.activeSubtitleCueMap[o].forEach(function(o){(e<o.event.start||e>o.event.end)&&(t.popCueFromMap(o.event),n.push(o))})}),n},e.generateImageTagText=function(e){if(e){var t=new c.DOM("img",{src:e});return t.css("width","100%"),t.get(0).outerHTML}},e.prototype.getCues=function(t){var n=e.calculateId(t),o=this.activeSubtitleCueMap[n];if(o&&o.length>0)return o.map(function(e){return e.label})},e.prototype.cueExit=function(e){return this.popCueFromMap(e)},Object.defineProperty(e.prototype,"cueCount",{get:function(){return this.activeSubtitleCueCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCues",{get:function(){return this.cueCount>0},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.activeSubtitleCueMap={},this.activeSubtitleCueCount=0},e}(),h=function(){function e(e){this.subtitleOverlay=e,this.subtitleRegionContainers={},this.subtitleOverlay=e}return e.prototype.getRegion=function(e){return e.vtt?{regionContainerId:e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt",regionName:"vtt"}:{regionContainerId:e.region||"default",regionName:e.region||"default"}},e.prototype.addLabel=function(e,t){var n=this.getRegion(e),o=n.regionContainerId,i=n.regionName,r=["subtitle-position-".concat(i)];if(e.vtt&&e.vtt.region?(r.push("subtitle-vtt-region-container"),r.push("vtt-region-".concat(e.vtt.region.id))):e.vtt&&r.push("subtitle-vtt-cue-container"),!this.subtitleRegionContainers[o]){var s=new y({cssClasses:r});for(var a in this.subtitleRegionContainers[o]=s,e.regionStyle&&s.getDomElement().attr("style",e.regionStyle),e.vtt&&s.getDomElement().css("position","static"),s.getDomElement(),this.subtitleRegionContainers)this.subtitleOverlay.addComponent(this.subtitleRegionContainers[a])}this.subtitleRegionContainers[o].addLabel(e,t)},e.prototype.replaceLabel=function(e,t,n){var o=this.getRegion(e),i=this.getRegion(t);if(o.regionContainerId===i.regionContainerId){var r=this.subtitleRegionContainers[o.regionContainerId];return r.removeLabel(e),void r.addLabel(t,n)}this.removeLabel(e),this.addLabel(t,n)},e.prototype.removeLabel=function(e){var t;t=e.vtt?e.vtt.region&&e.vtt.region.id?e.vtt.region.id:"vtt":e.region||"default",this.subtitleRegionContainers[t].removeLabel(e),this.subtitleRegionContainers[t].isEmpty()&&(this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[t]),delete this.subtitleRegionContainers[t])},e.prototype.clear=function(){for(var e in this.subtitleRegionContainers)this.subtitleOverlay.removeComponent(this.subtitleRegionContainers[e]);this.subtitleRegionContainers={}},e}();t.SubtitleRegionContainerManager=h;var y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.labelCount=0,n.config=n.mergeConfig(t,{cssClass:"subtitle-region-container"},n.config),n}return i(t,e),t.prototype.addLabel=function(e,t){this.labelCount++,e.vtt&&(e.vtt.region&&t&&p.VttUtils.setVttRegionStyles(this,e.vtt.region,t),p.VttUtils.setVttCueBoxStyles(e,t)),this.addComponent(e),this.updateComponents()},t.prototype.removeLabel=function(e){this.labelCount--,this.removeComponent(e),this.updateComponents()},t.prototype.isEmpty=function(){return 0===this.labelCount},t}(r.Container);function v(e){return null!=e.position}t.SubtitleRegionContainer=y},1368:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TouchControlOverlay=void 0;var r=n(1779),s=n(5092),a=n(938),l=n(3998),c=n(8248),u=n(5801),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.SEEK_FORWARD_CLASS="seek-forward",n.SEEK_BACKWARD_CLASS="seek-backward",n.touchControlEvents={onSingleClick:new a.EventDispatcher,onDoubleClick:new a.EventDispatcher,onSeekBackward:new a.EventDispatcher,onSeekForward:new a.EventDispatcher},n.playbackToggleButton=new s.SmallCenteredPlaybackToggleButton({enterFullscreenOnInitialPlayback:Boolean(t.enterFullscreenOnInitialPlayback)}),n.seekForwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-forward-label",hidden:!0}),n.seekBackwardLabel=new c.Label({text:"",for:n.getConfig().id,cssClass:"seek-backward-label",hidden:!0}),n.config=n.mergeConfig(t,{cssClass:"ui-touch-control-overlay",acceptsTouchWithUiHidden:!0,seekTime:10,seekDoubleTapMargin:15,seekDoubleTapTimeout:200,components:[n.seekBackwardLabel,n.playbackToggleButton,n.seekForwardLabel]},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);var r=0,s=0;this.doubleTapTimeout=new l.Timeout(this.config.seekDoubleTapTimeout,function(){i.couldBeDoubleTapping=!1,s=0,setTimeout(function(){return i.hideSeekAnimationElements()},150)});var a=!1,c=!1,p=function(){i.playbackToggleButton.show()},f=function(){i.playbackToggleButton.hide()};o.onBufferingShow.subscribe(function(){a=!0,f()}),o.onBufferingHide.subscribe(function(){a=!1,c&&p()}),o.onControlsHide.subscribe(function(){c=!1,f()}),o.onControlsShow.subscribe(function(){c=!0,a||p()}),this.touchControlEvents.onSeekBackward.subscribe(function(){r-=i.config.seekTime,n.seek(r),i.seekBackwardLabel.setText(Math.abs(Math.round(r-s))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekBackwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_BACKWARD_CLASS)),i.seekForwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_FORWARD_CLASS))}),this.touchControlEvents.onSeekForward.subscribe(function(){r+=i.config.seekTime,n.seek(r),i.seekForwardLabel.setText(Math.abs(Math.round(r-s))+" "+u.i18n.performLocalization(u.i18n.getLocalizer("settings.time.seconds"))),i.seekForwardLabel.show(),i.getDomElement().addClass(i.prefixCss(i.SEEK_FORWARD_CLASS)),i.seekBackwardLabel.hide(),i.getDomElement().removeClass(i.prefixCss(i.SEEK_BACKWARD_CLASS))}),this.touchControlEvents.onSingleClick.subscribe(function(e,t){o.getUI().toggleUiShown(),r=n.getCurrentTime(),s=r;var a=t.target.getBoundingClientRect(),l=t.clientX-a.left,c=t.clientY-a.top;i.latestTapPosition={x:l,y:c}}),this.touchControlEvents.onDoubleClick.subscribe(function(e,n){o.getUI().hideUi();var r=n.target;if(r&&r.component instanceof t){var s=r.clientWidth,a=.4*s,l=r.getBoundingClientRect(),c=n.clientX-l.left,u=n.clientY-l.top,p=i.config.seekDoubleTapMargin;Math.abs(i.latestTapPosition.x-c)<=p&&Math.abs(i.latestTapPosition.y-u)<=p&&(c<a?i.touchControlEvents.onSeekBackward.dispatch(i):c>s-a&&i.touchControlEvents.onSeekForward.dispatch(i)),i.latestTapPosition={x:c,y:u}}}),this.getDomElement().on("click",function(e){e.target.component instanceof t&&d(e)});var d=function(e){i.couldBeDoubleTapping?i.onDoubleClickEvent(e):i.onSingleClickEvent(e),i.couldBeDoubleTapping=!0,i.doubleTapTimeout.start()}},t.prototype.hideSeekAnimationElements=function(){this.getDomElement().removeClass(this.prefixCss(this.SEEK_FORWARD_CLASS)),this.getDomElement().removeClass(this.prefixCss(this.SEEK_BACKWARD_CLASS)),this.seekForwardLabel.hide(),this.seekBackwardLabel.hide()},t.prototype.onDoubleClickEvent=function(e){this.touchControlEvents.onDoubleClick.dispatch(this,e)},t.prototype.onSingleClickEvent=function(e){this.touchControlEvents.onSingleClick.dispatch(this,e)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.touchControlEvents.onSingleClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.TouchControlOverlay=p},9811:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsContextMenuItem=void 0;var s=n(5801),a=n(2704),l=n(8248),c=function(e){function t(t){var n=this,o=new l.Label({text:s.i18n.getLocalizer("playerInsights.show")});return(n=e.call(this,r(r({},t),{label:o,ariaLabel:s.i18n.getLocalizer("playerInsights.show"),closeContextMenuOnAction:!0}))||this).itemLabel=o,n.playerInsightsPanel=t.playerInsightsPanel,n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=o.playerInsightsPanel.isShown()?s.i18n.getLocalizer("playerInsights.hide"):s.i18n.getLocalizer("playerInsights.show");o.itemLabel.setText(e),o.setAriaLabel(e)};this.playerInsightsPanel.onShow.subscribe(i),this.playerInsightsPanel.onHide.subscribe(i),this.onClick.subscribe(function(){return o.playerInsightsPanel.toggleHidden()}),i()},t}(a.InteractiveContextMenuItem);t.PlayerInsightsContextMenuItem=c},5526:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanel=void 0;var a=n(1872),l=n(4073),c=n(8666),u=n(1817),p=n(7729),f=function(e){function t(t){void 0===t&&(t={});var n,o,i=this,l=new a.PlayerInsightsProvider,f=l.getInsights().map(function(e){return new u.PlayerInsightsPanelItem({leadingLabel:e.leadingLabel})}),d=new p.PlayerInsightsPanelTitleItem,g=new c.SettingsPanelPage({components:s(s([d],f,!0),null!==(n=t.components)&&void 0!==n?n:[],!0)}),h=r(r({},t),{cssClasses:s(["ui-player-insights-panel"],null!==(o=t.cssClasses)&&void 0!==o?o:[],!0),components:[g]});return(i=e.call(this,h)||this).playerInsightsChangedHandler=function(e,t){t.forEach(function(e,t){var n=i.insightItems[t];n&&(e.visible?n.show():n.hide(),null!=e.value&&""!==e.value&&n.setTrailingLabel(e.value))})},d.setTarget(i),i.insightsProvider=l,i.insightItems=f,i.config=i.mergeConfig(h,{hidden:!0,hideDelay:-1,hideOnControlsHide:!1,hideOnOtherSettingsPanelOpening:!1,refreshIntervalMs:1e3},i.config),i}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.insightsProvider.onChanged.subscribe(this.playerInsightsChangedHandler),this.insightsProvider.initialize(t,n,this.config.refreshIntervalMs),this.onShow.subscribe(function(){return o.insightsProvider.activate()}),this.onHide.subscribe(function(){return o.insightsProvider.deactivate()})},t.prototype.release=function(){this.insightsProvider.release(),e.prototype.release.call(this)},t}(l.SettingsPanel);t.PlayerInsightsPanel=f},1817:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanelItem=void 0;var a=n(8248),l=function(e){function t(t){var n,o,i=this,l=new a.Label({text:t.leadingLabel,cssClasses:["ui-player-insights-panel-item-leading-label"]}),c=new a.Label({text:"-",cssClasses:["ui-player-insights-panel-item-trailing-label"]});return(i=e.call(this,r(r({},t),{label:null,components:s([l,c],null!==(n=t.components)&&void 0!==n?n:[],!0),cssClasses:s(["ui-player-insights-panel-item"],null!==(o=t.cssClasses)&&void 0!==o?o:[],!0),isSetting:!1,role:"group",tabIndex:-1}))||this).trailingLabel=c,i}return i(t,e),t.prototype.setTrailingLabel=function(e){this.trailingLabel.setText(e)},t}(n(1742).SettingsPanelItem);t.PlayerInsightsPanelItem=l},7729:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsPanelTitleItem=void 0;var r=n(5801),s=n(9404),a=n(8248),l=function(e){function t(){var t=this,n=new a.Label({text:"Player Insights",cssClasses:["ui-player-insights-panel-title-label"]}),o=new s.Button({cssClass:"ui-closebutton",cssClasses:["ui-player-insights-panel-close-button"],text:r.i18n.getLocalizer("close")});return(t=e.call(this,{label:null,components:[n,o],cssClasses:["title-item","ui-player-insights-panel-title-item"],isSetting:!1,role:"group",tabIndex:-1})||this).target=null,t.closeButton=o,t}return i(t,e),t.prototype.setTarget=function(e){this.target=e},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.closeButton.onClick.subscribe(function(){var e;null===(e=o.target)||void 0===e||e.hide()})},t}(n(1742).SettingsPanelItem);t.PlayerInsightsPanelTitleItem=l},9819:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBar=void 0;var r=n(5223),s=n(5955),a=n(323),l=n(938),c=n(3998),u=n(7395),p=n(1823),f=n(9436),d=n(5801),g=n(5256),h=n(8347),y=n(3101),v=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;n.playbackPositionPercentage=0,n.isUserSeeking=!1,n.isAdPlaying=!1,n.seekBarEvents={onSeek:new l.EventDispatcher,onSeekPreview:new l.EventDispatcher,onSeeked:new l.EventDispatcher},n.seekWhileScrubbing=function(e,t){t.scrubbing&&n.seek(t.position)},n.getTargetSeekPosition=function(e){var t;if(n.player.isLive()){var o=n.player.getMaxTimeShift();t=o-o*(e/100)}else{var i=u.PlayerUtils.getSeekableRangeStart(n.player,0);t=n.player.getDuration()*(e/100)+i}return t},n.seek=function(e){var t=n.getTargetSeekPosition(e);n.player.isLive()?n.player.timeShift(t,"ui"):n.player.seek(t,"ui")},n.updateLabelPosition=function(e){n.uiBoundingRect||(n.uiBoundingRect=n.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()),n.label.setPositionInBounds(e,n.uiBoundingRect)};var o=n.config.keyStepIncrements||{leftRight:1,upDown:5};return n.config=n.mergeConfig(t,{cssClass:"ui-seekbar",vertical:!1,smoothPlaybackPositionUpdateIntervalMs:50,keyStepIncrements:o,ariaLabel:d.i18n.getLocalizer("seekBar"),tabIndex:0,snappingRange:1,enableSeekPreview:!0,snappingEnabled:!0},n.config),n.label=n.config.label,n}return i(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this.hasLabel()&&this.getLabel().initialize()},t.prototype.setAriaSliderMinMax=function(e,t){this.getDomElement().attr("aria-valuemin",e),this.getDomElement().attr("aria-valuemax",t)},t.prototype.setAriaSliderValues=function(){if(this.seekBarType===f.SeekBarType.Live){var e=Math.ceil(this.player.getTimeShift()).toString(),t="".concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.timeshift"))," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.value")),": ").concat(e);this.getDomElement().attr("aria-valuenow",e),this.getDomElement().attr("aria-valuetext",t),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(t))}else if(this.seekBarType===f.SeekBarType.Vod){var n="".concat(p.StringUtils.secondsToText(this.player.getCurrentTime())," ").concat(d.i18n.performLocalization(d.i18n.getLocalizer("seekBar.durationText"))," ").concat(p.StringUtils.secondsToText(this.player.getDuration()));this.getDomElement().attr("aria-valuenow",Math.floor(this.player.getCurrentTime()).toString()),this.getDomElement().attr("aria-valuetext",n),this.config.addCurrentTimeToAriaLabel&&this.getDomElement().attr("aria-label","".concat(d.i18n.performLocalization(this.config.ariaLabel),": ").concat(p.StringUtils.secondsToText(this.player.getCurrentTime())))}},t.prototype.getPlaybackPositionPercentage=function(){return this.player.isLive()?100-100/this.player.getMaxTimeShift()*this.player.getTimeShift():100/this.player.getDuration()*this.getRelativeCurrentTime()},t.prototype.updateBufferLevel=function(e){var t;t=this.player.isLive()?100:e+(0,y.getMinBufferLevel)(this.player),this.setBufferPosition(t)},t.prototype.configure=function(n,o,i){var s=this;if(void 0===i&&(i=!0),e.prototype.configure.call(this,n,o),this.player=n,this.uiManager=o,this.setPosition(this.seekBarBackdrop,100),new f.SeekBarController(this.config.keyStepIncrements,n,o.getConfig().volumeController).setSeekBarControls(this.getDomElement(),function(){return s.seekBarType}),i){var a=function(){s.isUiShown=!0,!s.smoothPlaybackPositionUpdater||n.isLive()||s.smoothPlaybackPositionUpdater.isActive()||(g(null,!0),s.smoothPlaybackPositionUpdater.start())};n.on(n.exports.PlayerEvent.AdStarted,function(){s.isAdPlaying=!0,a()}),n.on(n.exports.PlayerEvent.AdBreakFinished,function(){s.isAdPlaying=!1}),n.on(n.exports.PlayerEvent.SourceUnloaded,function(){s.isAdPlaying=!1}),o.onControlsShow.subscribe(a),o.onControlsHide.subscribe(function(){s.isAdPlaying||(s.isUiShown=!1,s.smoothPlaybackPositionUpdater&&s.smoothPlaybackPositionUpdater.isActive()&&s.smoothPlaybackPositionUpdater.clear())});var l,c=!1,p=!1,d=!1,g=function(e,o){if(void 0===e&&(e=null),void 0===o&&(o=!1),!s.isUserSeeking){var i=s.getPlaybackPositionPercentage();if(s.updateBufferLevel(i),p&&e&&e.type===n.exports.PlayerEvent.SegmentRequestFinished&&i!==s.playbackPositionPercentage&&(i=s.playbackPositionPercentage),n.isLive())0===n.getMaxTimeShift()?s.setPlaybackPosition(100):(s.isSeeking()||s.setPlaybackPosition(i),s.setAriaSliderMinMax(n.getMaxTimeShift().toString(),"0"));else{var r=s.config.smoothPlaybackPositionUpdateIntervalMs===t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED||o||n.isPaused(),a=n.isPaused()===n.isPlaying();!r&&!a||s.isSeeking()||s.setPlaybackPosition(i),s.setAriaSliderMinMax("0",n.getDuration().toString())}s.isUiShown&&s.setAriaSliderValues()}};n.on(n.exports.PlayerEvent.Ready,g),n.on(n.exports.PlayerEvent.TimeChanged,g),n.on(n.exports.PlayerEvent.StallEnded,g),n.on(n.exports.PlayerEvent.TimeShifted,g),n.on(n.exports.PlayerEvent.SegmentRequestFinished,g),this.configureLivePausedTimeshiftUpdater(n,o,g);var h=function(){d=!0,s.setSeeking(!0),p=!1},y=function(e){void 0===e&&(e=null),d=!1,s.setSeeking(!1),g(e,!0)};n.on(n.exports.PlayerEvent.Seek,h),n.on(n.exports.PlayerEvent.Seeked,y),n.on(n.exports.PlayerEvent.TimeShift,h),n.on(n.exports.PlayerEvent.TimeShifted,y);var v=function(e){return!!e.groupPlayback};this.onSeek.subscribe(function(e){s.isUserSeeking=!0,o.onSeek.dispatch(e),v(n)&&n.groupPlayback.hasJoined()&&!l&&(l=n.groupPlayback.beginSuspension(r.GroupPlaybackSuspensionReason.UserIsScrubbing)),d||(c=n.isPlaying())&&n.pause("ui-seek")}),this.onSeekPreview.subscribe(function(e,t){o.onSeekPreview.dispatch(e,t),p=t.scrubbing}),"boolean"==typeof o.getConfig().enableSeekPreview&&(this.config.enableSeekPreview=o.getConfig().enableSeekPreview),this.config.enableSeekPreview&&this.onSeekPreview.subscribeRateLimited(this.seekWhileScrubbing,200),this.onSeeked.subscribe(function(e,t){if(s.isUserSeeking=!1,s.seek(t),o.onSeeked.dispatch(e),c&&n.play("ui-seek"),v(n)&&n.groupPlayback.hasJoined()&&l){var i=s.getTargetSeekPosition(t);n.groupPlayback.endSuspension(l,{proposedPlaybackTime:i}),l=void 0}}),this.hasLabel()&&this.getLabel().configure(n,o);var m=!1,b=!1,C=function(e,t){e&&!t?s.hide():s.show(),g(null,!0),s.refreshPlaybackPosition()},S=new u.PlayerUtils.LiveStreamDetector(n,o);S.onLiveChanged.subscribe(function(e,t){(m=t.live)&&null!=s.smoothPlaybackPositionUpdater?(s.smoothPlaybackPositionUpdater.clear(),s.seekBarType=f.SeekBarType.Live):s.seekBarType=f.SeekBarType.Vod,C(m,b)});var P=new u.PlayerUtils.TimeShiftAvailabilityDetector(n);P.onTimeShiftAvailabilityChanged.subscribe(function(e,t){b=t.timeShiftAvailable,C(m,b)}),S.detect(),P.detect(),n.on(n.exports.PlayerEvent.PlayerResized,function(){s.refreshPlaybackPosition(),s.uiBoundingRect=s.uiManager.getUI().getDomElement().get(0).getBoundingClientRect()}),o.onConfigured.subscribe(function(){s.refreshPlaybackPosition()}),n.on(n.exports.PlayerEvent.SourceLoaded,function(){s.refreshPlaybackPosition()}),o.getConfig().events.onUpdated.subscribe(function(){g()}),"number"==typeof o.getConfig().seekbarSnappingRange&&(this.config.snappingRange=o.getConfig().seekbarSnappingRange),"boolean"==typeof o.getConfig().seekbarSnappingEnabled&&(this.config.snappingEnabled=o.getConfig().seekbarSnappingEnabled),g(),this.setBufferPosition(0),this.setSeekPosition(0),this.config.smoothPlaybackPositionUpdateIntervalMs!==t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED&&this.configureSmoothPlaybackPositionUpdater(n,o),this.initializeTimelineMarkers(n,o)}else this.seekBarType=f.SeekBarType.Volume},t.prototype.initializeTimelineMarkers=function(e,t){var n=this,o={cssPrefix:this.config.cssPrefix,snappingRange:this.config.snappingRange};this.timelineMarkersHandler=new h.TimelineMarkersHandler(o,function(){return n.seekBar.width()},this.seekBarMarkersContainer),this.timelineMarkersHandler.initialize(e,t)},t.prototype.configureLivePausedTimeshiftUpdater=function(e,t,n){var o=this;this.pausedTimeshiftUpdater=new c.Timeout(1e3,n,!0),e.on(e.exports.PlayerEvent.Paused,function(){e.isLive()&&e.getMaxTimeShift()<0&&o.pausedTimeshiftUpdater.start()}),e.on(e.exports.PlayerEvent.Play,function(){return o.pausedTimeshiftUpdater.clear()})},t.prototype.configureSmoothPlaybackPositionUpdater=function(e,t){var n=this,o=0,i=0,r=.05;this.smoothPlaybackPositionUpdater=new c.Timeout(50,function(){if(!n.isSeeking()){try{if(0===n.player.getDuration())return n.setPlaybackPosition(0),void(o=0);o+=r,i=n.getRelativeCurrentTime()}catch(t){return void(t instanceof e.exports.PlayerAPINotAvailableError&&n.smoothPlaybackPositionUpdater.clear())}var t=o-i;Math.abs(t)>2?o=i:t<=-.05?o+=r:t>=r&&(o-=r);var s=100/e.getDuration()*o;n.setPlaybackPosition(s)}},!0);var s=function(){e.isLive()||(o=n.getRelativeCurrentTime(),n.smoothPlaybackPositionUpdater.start())},a=function(){n.smoothPlaybackPositionUpdater.clear()};e.on(e.exports.PlayerEvent.Play,s),e.on(e.exports.PlayerEvent.Playing,s),e.on(e.exports.PlayerEvent.Paused,a),e.on(e.exports.PlayerEvent.PlaybackFinished,a),e.on(e.exports.PlayerEvent.Seeked,function(){o=n.getRelativeCurrentTime()}),e.on(e.exports.PlayerEvent.SourceUnloaded,a),e.isPlaying()&&s()},t.prototype.getRelativeCurrentTime=function(){return u.PlayerUtils.getCurrentTimeRelativeToSeekableRange(this.player)},t.prototype.release=function(){e.prototype.release.call(this),this.smoothPlaybackPositionUpdater&&this.smoothPlaybackPositionUpdater.clear(),this.pausedTimeshiftUpdater&&this.pausedTimeshiftUpdater.clear(),this.config.enableSeekPreview&&this.onSeekPreview.unsubscribe(this.seekWhileScrubbing)},t.prototype.toDomElement=function(){var e=this;this.config.vertical&&this.config.cssClasses.push("vertical");var t=new a.DOM("div",{id:this.config.id,class:this.getCssClasses(),role:"slider","aria-label":d.i18n.performLocalization(this.config.ariaLabel),tabindex:this.config.tabIndex.toString()},this),n=new a.DOM("div",{class:this.prefixCss("seekbar")});this.seekBar=n;var o=new a.DOM("div",{class:this.prefixCss("seekbar-bars")}),i=new a.DOM("div",{class:this.prefixCss("seekbar-bufferlevel")});this.seekBarBufferPosition=i;var r=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition")});this.seekBarPlaybackPosition=r;var s=new a.DOM("div",{class:this.prefixCss("seekbar-playbackposition-marker")});this.seekBarPlaybackPositionMarker=s;var l=new a.DOM("div",{class:this.prefixCss("seekbar-seekposition")});this.seekBarSeekPosition=l;var c=new a.DOM("div",{class:this.prefixCss("seekbar-backdrop")});this.seekBarBackdrop=c;var u=new a.DOM("div",{class:this.prefixCss("seekbar-markers")});this.seekBarMarkersContainer=u,o.append(this.seekBarBackdrop,this.seekBarBufferPosition,this.seekBarSeekPosition,this.seekBarPlaybackPosition),n.append(o,this.seekBarMarkersContainer,this.seekBarPlaybackPositionMarker);var p=!1,f=function(t){t.preventDefault(),null!=e.player.vr&&t.stopPropagation();var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekPreviewEvent(o,i,!0)},h=function(t){var n;t.preventDefault(),new a.DOM(document).off("touchmove mousemove",f),new a.DOM(document).off("touchend mouseup",h);var o=100*e.getOffset(t);if(e.config.snappingEnabled){var i=null===(n=e.timelineMarkersHandler)||void 0===n?void 0:n.getMarkerAtPosition(o);o=i?i.position:o}e.setSeeking(!1),p=!1,e.setSeekPosition(o),e.setPlaybackPosition(o),e.onSeekedEvent(o)};return n.on("touchstart mousedown",function(t){var n=g.BrowserUtils.isTouchSupported&&e.isTouchEvent(t);t.preventDefault(),null!=e.player.vr&&t.stopPropagation(),e.setSeeking(!0),p=!0,e.onSeekEvent(),new a.DOM(document).on(n?"touchmove":"mousemove",f),new a.DOM(document).on(n?"touchend":"mouseup",h)}),n.on("touchmove mousemove",function(t){t.preventDefault(),p&&f(t);var n=e.getOffset(t),o=100*n,i=n*e.seekBar.width();e.setSeekPosition(o),e.onSeekPreviewEvent(o,i,!1),e.hasLabel()&&e.getLabel().isHidden()&&e.getLabel().show()}),n.on("touchend mouseleave",function(t){t.preventDefault(),e.setSeekPosition(0),e.hasLabel()&&e.getLabel().hide()}),t.append(n),this.label&&t.append(this.label.getDomElement()),t},t.prototype.getHorizontalOffset=function(e){var t=this.seekBar.offset().left,n=1/this.seekBar.width()*(e-t);return this.sanitizeOffset(n)},t.prototype.getVerticalOffset=function(e){var t=this.seekBar.offset().top,n=1/this.seekBar.height()*(e-t);return 1-this.sanitizeOffset(n)},t.prototype.getOffset=function(e){return g.BrowserUtils.isTouchSupported&&this.isTouchEvent(e)?this.config.vertical?this.getVerticalOffset("touchend"===e.type?e.changedTouches[0].pageY:e.touches[0].pageY):this.getHorizontalOffset("touchend"===e.type?e.changedTouches[0].pageX:e.touches[0].pageX):e instanceof MouseEvent?this.config.vertical?this.getVerticalOffset(e.pageY):this.getHorizontalOffset(e.pageX):(console&&console.warn("invalid event"),0)},t.prototype.sanitizeOffset=function(e){return e<0?e=0:e>1&&(e=1),e},t.prototype.setPlaybackPosition=function(e){this.playbackPositionPercentage=e,this.setPosition(this.seekBarPlaybackPosition,e);var t=(this.config.vertical?this.seekBar.height()-this.seekBarPlaybackPositionMarker.height():this.seekBar.width())/100*e;this.config.vertical&&(t=this.seekBar.height()-t-this.seekBarPlaybackPositionMarker.height());var n=this.config.vertical?{transform:"translateY("+t+"px)","-ms-transform":"translateY("+t+"px)","-webkit-transform":"translateY("+t+"px)"}:{transform:"translateX("+t+"px)","-ms-transform":"translateX("+t+"px)","-webkit-transform":"translateX("+t+"px)"};this.seekBarPlaybackPositionMarker.css(n)},t.prototype.refreshPlaybackPosition=function(){this.setPlaybackPosition(this.playbackPositionPercentage)},t.prototype.setBufferPosition=function(e){this.setPosition(this.seekBarBufferPosition,e)},t.prototype.setSeekPosition=function(e){this.setPosition(this.seekBarSeekPosition,e)},t.prototype.setPosition=function(e,t){var n=t/100;n>=.99999&&n<=1.00001&&(n=.99999);var o=this.config.vertical?{transform:"scaleY("+n+")","-ms-transform":"scaleY("+n+")","-webkit-transform":"scaleY("+n+")"}:{transform:"scaleX("+n+")","-ms-transform":"scaleX("+n+")","-webkit-transform":"scaleX("+n+")"};e.css(o)},t.prototype.setSeeking=function(e){e?this.getDomElement().addClass(this.prefixCss(t.CLASS_SEEKING)):this.getDomElement().removeClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.isSeeking=function(){return this.getDomElement().hasClass(this.prefixCss(t.CLASS_SEEKING))},t.prototype.hasLabel=function(){return null!=this.label},t.prototype.getLabel=function(){return this.label},t.prototype.onSeekEvent=function(){this.seekBarEvents.onSeek.dispatch(this)},t.prototype.clearAllThickenedMarkers=function(){var e;null===(e=this.seekBarMarkersContainer.find(".".concat(this.prefixCss("seekbar-marker"))))||void 0===e||e.removeClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.thickenMarker=function(e){(null==e?void 0:e.element)&&e.element.addClass(this.prefixCss(t.CLASS_CHAPTER_HOVERED))},t.prototype.onSeekPreviewEvent=function(e,t,n){var o=this.timelineMarkersHandler&&this.timelineMarkersHandler.getMarkerAtPosition(e),i=e;o&&(o.duration>0?e<o.position?i=o.position:e>o.position+o.duration&&(i=o.position+o.duration):i=o.position),this.label&&this.updateLabelPosition(t),n&&(this.clearAllThickenedMarkers(),this.thickenMarker(o)),this.seekBarEvents.onSeekPreview.dispatch(this,{scrubbing:n,position:i,marker:o})},t.prototype.onSeekedEvent=function(e){this.clearAllThickenedMarkers(),this.seekBarEvents.onSeeked.dispatch(this,e)},Object.defineProperty(t.prototype,"onSeek",{get:function(){return this.seekBarEvents.onSeek.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeekPreview",{get:function(){return this.seekBarEvents.onSeekPreview.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSeeked",{get:function(){return this.seekBarEvents.onSeeked.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onShowEvent=function(){e.prototype.onShowEvent.call(this),this.refreshPlaybackPosition()},t.prototype.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},t.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED=-1,t.CLASS_SEEKING="seeking",t.CLASS_CHAPTER_HOVERED="hovered",t}(s.Component);t.SeekBar=v},7273:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarLabel=void 0;var r=n(1779),s=n(8248),a=n(5955),l=n(1823),c=n(815),u=n(7395),p=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.appliedMarkerCssClasses=[],n.initializeTimeFormat=function(){var e=n.player;null!=e&&(n.timeFormat=Math.abs(e.isLive()?e.getMaxTimeShift():e.getDuration())>=3600?l.StringUtils.FORMAT_HHMMSS:l.StringUtils.FORMAT_MMSS,n.setTitleText(null),n.setThumbnail(null))},n.handleSeekPreview=function(e,t){if(n.player.isLive()){var o=n.player.getMaxTimeShift(),i=o-o*(t.position/100);n.setTime(i);var r=(l=i,c=n.player.getTimeShift(),n.player.getCurrentTime()-c+l);n.setThumbnail(n.player.getThumbnail(r))}else{var s=n.player.getDuration()*(t.position/100);n.setTime(s);var a=s+u.PlayerUtils.getSeekableRangeStart(n.player,0);n.setThumbnail(n.player.getThumbnail(a))}var l,c;if(t.marker?n.setTitleText(t.marker.marker.title):n.setTitleText(null),n.appliedMarkerCssClasses.length>0&&(n.getDomElement().removeClass(n.appliedMarkerCssClasses.join(" ")),n.appliedMarkerCssClasses=[]),t.marker){var p=(t.marker.marker.cssClasses||[]).map(function(e){return n.prefixCss(e)});n.getDomElement().addClass(p.join(" ")),n.appliedMarkerCssClasses=p}},n.timeLabel=new s.Label({cssClasses:["seekbar-label-metadata","seekbar-label-time"]}),n.titleLabel=new s.Label({cssClasses:["seekbar-label-metadata","seekbar-label-title"]}),n.thumbnail=new a.Component({cssClasses:["seekbar-thumbnail"],role:"img"}),n.thumbnailImageLoader=new c.ImageLoader,n.container=new r.Container({components:[n.titleLabel,n.thumbnail,n.timeLabel],cssClass:"seekbar-label-inner"}),n.config=n.mergeConfig(t,{cssClass:"ui-seekbar-label",components:[n.container],hidden:!0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),this.player=t,this.uiManager=n,n.onSeekPreview.subscribeRateLimited(this.handleSeekPreview,100),n.getConfig().events.onUpdated.subscribe(this.initializeTimeFormat),t.on(this.player.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat),this.initializeTimeFormat()},t.prototype.setPositionInBounds=function(e,t){this.getDomElement().css("left",e+"px");var n=this.container.getDomElement().get(0).parentElement.getBoundingClientRect(),o=0;n.right>t.right?o=n.right-t.right:n.left<t.left&&(o=n.left-t.left),0!==o&&this.getDomElement().css("left",e-o+"px")},t.prototype.setText=function(e){this.timeLabel.setText(e)},t.prototype.setTime=function(e){this.setText(l.StringUtils.secondsToTime(e,this.timeFormat))},t.prototype.setTitleText=function(e){this.titleLabel.setText(e),null==e?this.titleLabel.hide():this.titleLabel.show()},t.prototype.setThumbnail=function(e){var t=this;void 0===e&&(e=null);var n=this.thumbnail.getDomElement();null==e?n.css({"background-image":null,display:"none",width:null,height:null}):this.thumbnailImageLoader.load(e.url,function(o,i,r){void 0!==e.x?n.css(t.thumbnailCssSprite(e,i,r)):n.css(t.thumbnailCssSingleImage(e,i,r))})},t.prototype.thumbnailCssSprite=function(e,t,n){var o=t/e.width*100,i=n/e.height*100,r=e.x/e.width*100,s=e.y/e.height*100,a=1/e.width*e.height;return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(100*a,"%"),"background-size":"".concat(o,"% ").concat(i,"%"),"background-position":"-".concat(r,"% -").concat(s,"%")}},t.prototype.thumbnailCssSingleImage=function(e,t,n){var o=1/t*n;return{display:"inherit","background-image":'url("'.concat(e.url,'")'),"padding-bottom":"".concat(100*o,"%"),"background-size":"100% 100%","background-position":"0 0"}},t.prototype.release=function(){e.prototype.release.call(this),this.uiManager.onSeekPreview.unsubscribe(this.handleSeekPreview),this.player.off(this.player.exports.PlayerEvent.DurationChanged,this.initializeTimeFormat)},t}(r.Container);t.SeekBarLabel=p},6003:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeSlider=void 0;var r=n(9819),s=n(5801),a=n(5256),l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.updateVolumeWhileScrubbing=function(e,t){t.scrubbing&&n.volumeTransition&&n.volumeTransition.update(t.position)},n.config=n.mergeConfig(t,{cssClass:"ui-volumeslider",hideIfVolumeControlProhibited:!0,hideOnMobile:!0,ariaLabel:s.i18n.getLocalizer("settings.audio.volume"),tabIndex:0},n.config),n}return i(t,e),t.prototype.setVolumeAriaSliderValues=function(e){this.getDomElement().attr("aria-valuenow",Math.ceil(e).toString()),this.getDomElement().attr("aria-valuetext","".concat(s.i18n.performLocalization(s.i18n.getLocalizer("seekBar.value")),": ").concat(Math.ceil(e)))},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n,!1),this.setAriaSliderMinMax("0","100");var i=this.getConfig(),r=n.getConfig().volumeController;i.hideOnMobile&&a.BrowserUtils.isMobile||i.hideIfVolumeControlProhibited&&!this.detectVolumeControlAvailability()?this.hide():(r.onChanged.subscribe(function(e,t){t.muted?(o.setVolumeAriaSliderValues(0),o.setPlaybackPosition(0)):(o.setPlaybackPosition(t.volume),o.setVolumeAriaSliderValues(t.volume))}),this.onSeek.subscribe(function(){o.volumeTransition=r.startTransition()}),this.onSeekPreview.subscribeRateLimited(this.updateVolumeWhileScrubbing,50),this.onSeeked.subscribe(function(e,t){o.volumeTransition&&o.volumeTransition.finish(t)}),t.on(t.exports.PlayerEvent.PlayerResized,function(){o.refreshPlaybackPosition()}),n.onConfigured.subscribe(function(){o.refreshPlaybackPosition()}),n.getConfig().events.onUpdated.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentShow.subscribe(function(){o.refreshPlaybackPosition()}),n.onComponentHide.subscribe(function(){o.refreshPlaybackPosition()}),r.onChangedEvent())},t.prototype.detectVolumeControlAvailability=function(){var e=document.createElement("video");return e.volume=.7,1!==e.volume},t.prototype.release=function(){e.prototype.release.call(this),this.onSeekPreview.unsubscribe(this.updateVolumeWhileScrubbing)},t}(r.SeekBar);t.VolumeSlider=l},6448:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioQualitySelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audioqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getAudioQuality().id)},r=function(){var e=t.getAvailableAudioQualities();o.clearItems(),o.addItem("auto",s.i18n.getLocalizer("auto"));for(var n=0,r=e;n<r.length;n++){var a=r[n];o.addItem(a.id,a.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setAudioQuality(n)}),t.on(t.exports.PlayerEvent.AudioChanged,r),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.AudioQualityChanged,i),t.exports.PlayerEvent.AudioQualityAdded&&(t.on(t.exports.PlayerEvent.AudioQualityAdded,r),t.on(t.exports.PlayerEvent.AudioQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t}(r.SelectBox);t.AudioQualitySelectBox=a},1886:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSelectBox=void 0;var r=n(7353),s=n(9367),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-audiotrackselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new s.AudioTrackSwitchHandler(t,this,n)},t}(r.SelectBox);t.AudioTrackSelectBox=a},2963:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DynamicSettingsPanelItem=void 0;var r=n(8248),s=n(5801),a=n(5277),l=n(1742),c=n(5856),u=n(8666),p=n(3177),f=n(8091),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSelectedItemChanged=function(){var e=n.settingComponent.getItemForKey(n.settingComponent.getSelectedItem());if(null!=e){var t=e.label;if(n.settingComponent instanceof a.SubtitleSelectBox){var o=n.settingComponent.getItems().length;t=s.i18n.performLocalization(t)+" ("+(o-1)+")"}n.selectedOptionLabel.setText(t)}else n.selectedOptionLabel.setText("-")},n.backNavigationRightComponent=t.backNavigationRightComponent,n.settingComponent=t.settingComponent,n.selectedOptionLabel=new r.Label({text:"-",for:n.getConfig().id,cssClasses:["ui-label-setting-selected-option"],labelStyle:r.LabelStyle.TextWithTrailingIcon}),n.config=n.mergeConfig(t,{components:[n.selectedOptionLabel],cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!1,tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.player=t,this.uimanager=n,null!=this.backNavigationRightComponent&&this.backNavigationRightComponent.configure(this.player,this.uimanager),null!=this.settingComponent&&this.settingComponent.configure(this.player,this.uimanager),this.settingComponent.onItemSelected.subscribe(this.handleSelectedItemChanged),this.handleSelectedItemChanged(),this.onClick.subscribe(function(){o.displayItemsSubPage()})},t.prototype.onLanguageChanged=function(){this.handleSelectedItemChanged()},t.prototype.buildSubPanelPage=function(){var e=this,t=this.settingComponent.getItems(),n=new u.SettingsPanelPage({removeOnPop:!0}),o=this.config.label,i=new p.SettingsPanelPageBackButton({text:o,container:this.config.container});i.configure(this.player,this.uimanager);var s=new l.SettingsPanelItem({label:i,settingComponent:this.backNavigationRightComponent,cssClasses:["title-item"],isSetting:!1});s.configure(this.player,this.uimanager),n.addComponent(s),t.map(function(t){return new c.SettingsPanelSelectOption({label:t.label,labelStyle:r.LabelStyle.TextWithLeadingIcon,settingComponent:e.settingComponent,settingsValue:t.key,addSettingAsComponent:!1})}).forEach(function(t){t.configure(e.player,e.uimanager),n.addComponent(t)}),n.configure(this.player,this.uimanager);var a=this.settingComponent;return a instanceof f.SubtitleSettingSelectBox&&(n.onActive.subscribe(function(){return a.overlay.enablePreviewSubtitleLabel()}),n.onInactive.subscribe(function(){return a.overlay.removePreviewSubtitleLabel()})),n},t.prototype.displayItemsSubPage=function(){var e=this.buildSubPanelPage();this.config.container.addPage(e),this.config.container.setActivePage(e)},t}(n(9800).InteractiveSettingsPanelItem);t.DynamicSettingsPanelItem=d},9800:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveSettingsPanelItem=void 0;var r=n(1742),s=n(938),a=n(6565),l=n(8151),c=function(e){function t(t){var n=e.call(this,t)||this;return n.events={onClick:new s.EventDispatcher},n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(e){e.preventDefault(),e.stopPropagation(),o.onClickEvent()};this.getDomElement().on("click",i);var r=function(e){((0,a.getKeyMapForPlatform)()[e.keyCode]===l.Action.SELECT||["Enter"," "].includes(e.key)||["Enter","Space"].includes(e.code))&&i(e)};this.onFocusedChanged.subscribe(function(e,t){t.focused?o.getDomElement().on("keydown",r):o.getDomElement().off("keydown",r)})},t.prototype.onClickEvent=function(){this.events.onClick.dispatch(this)},Object.defineProperty(t.prototype,"onClick",{get:function(){return this.events.onClick.getEvent()},enumerable:!1,configurable:!0}),t}(r.SettingsPanelItem);t.InteractiveSettingsPanelItem=c},9523:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackSpeedSelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.defaultPlaybackSpeeds=[.25,.5,1,1.5,2],n.config=n.mergeConfig(t,{cssClasses:["ui-playbackspeedselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addDefaultItems(),this.onItemSelectionChanged.subscribe(function(e,n){t.setPlaybackSpeed(parseFloat(n))});var i=function(){var e=t.getPlaybackSpeed();o.setSpeed(e)};t.on(t.exports.PlayerEvent.PlaybackSpeedChanged,i),n.getConfig().events.onUpdated.subscribe(i)},t.prototype.setSpeed=function(e){this.selectItem(String(e))||(this.clearItems(),this.addDefaultItems([e]),this.selectItem(String(e)))},t.prototype.addDefaultItems=function(e){var t=this;void 0===e&&(e=[]),this.defaultPlaybackSpeeds.concat(e).sort().forEach(function(e){1!==e?t.addItem(String(e),"".concat(e,"x")):t.addItem(String(e),s.i18n.getLocalizer("normal"))})},t.prototype.clearItems=function(){this.items=[],this.selectedItem=null},t}(r.SelectBox);t.PlaybackSpeedSelectBox=a},7353:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectBox=void 0;var r=n(6541),s=n(323),a=n(5801),l=n(7395),c=n(5955),u=["mousemove","mouseenter","mouseleave","touchstart","touchmove","touchend","pointermove","click","keydown","keypress","keyup","blur"],p=["change","keyup","mouseup"],f=[["click",function(){return!0}],["keydown",function(e){return[" ","ArrowUp","ArrowDown"].includes(e.key)}],["mousedown",function(){return!0}]],d=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.dropdownCloseListenerTimeoutId=0,n.removeDropdownCloseListeners=function(){},n.removeDropdownOpenedListeners=function(){},n.onChange=function(){var e=n.selectElement.val();n.onItemSelectedEvent(e,!1)},n.closeDropdown=function(){var e=n.getSelectElement();void 0!==e&&e.blur()},n.onPlayerStateChange=function(e,t){[l.PlayerUtils.PlayerState.Idle,l.PlayerUtils.PlayerState.Finished].includes(t)&&n.closeDropdown()},n.onDropdownOpened=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.dropdownCloseListenerTimeoutId=window.setTimeout(function(){return n.addDropdownCloseListeners()},100),n.onViewModeChangedEvent(c.ViewMode.Persistent)},n.onDropdownClosed=function(){clearTimeout(n.dropdownCloseListenerTimeoutId),n.removeDropdownCloseListeners(),n.onViewModeChangedEvent(c.ViewMode.Temporary)},n.config=n.mergeConfig(t,{cssClass:"ui-selectbox"},n.config),n}return i(t,e),t.prototype.toDomElement=function(){return this.selectElement=new s.DOM("select",{id:this.config.id,class:this.getCssClasses(),"aria-label":a.i18n.performLocalization(this.config.ariaLabel)},this),this.onDisabled.subscribe(this.closeDropdown),this.onHide.subscribe(this.closeDropdown),this.addDropdownOpenedListeners(),this.updateDomItems(),this.selectElement.on("change",this.onChange),this.selectElement},t.prototype.configure=function(t,n){var o;e.prototype.configure.call(this,t,n),this.uiContainer=n.getUI(),null===(o=this.uiContainer)||void 0===o||o.onPlayerStateChange().subscribe(this.onPlayerStateChange),this.uiWrapperElement=n.uiWrapperElement},t.prototype.getSelectElement=function(){var e,t;return null===(t=null===(e=this.selectElement)||void 0===e?void 0:e.get())||void 0===t?void 0:t[0]},t.prototype.updateDomItems=function(e){if(void 0===e&&(e=null),void 0!==this.selectElement){this.selectElement.empty();for(var t=0,n=this.items;t<n.length;t++){var o=n[t],i=new s.DOM("option",{value:String(o.key)}).html(a.i18n.performLocalization(o.label));o.key===String(e)&&i.attr("selected","selected"),this.selectElement.append(i)}}},t.prototype.onItemsChangedEvent=function(){e.prototype.onItemsChangedEvent.call(this),this.updateDomItems(this.selectedItem)},t.prototype.onItemSelectedEvent=function(t,n){void 0===n&&(n=!0),e.prototype.onItemSelectedEvent.call(this,t),n&&this.updateDomItems(t)},t.prototype.addDropdownCloseListeners=function(){var e=this;this.removeDropdownCloseListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId),u.forEach(function(t){return e.uiWrapperElement.on(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.on(t,e.onDropdownClosed,!0)}),this.removeDropdownCloseListeners=function(){u.forEach(function(t){return e.uiWrapperElement.off(t,e.onDropdownClosed,!0)}),p.forEach(function(t){return e.selectElement.off(t,e.onDropdownClosed,!0)})}},t.prototype.addDropdownOpenedListeners=function(){var e=this,t=[];this.removeDropdownOpenedListeners();for(var n=function(n,i){var r=function(t){i(t)&&e.onDropdownOpened()};t.push(function(){return e.selectElement.off(n,r,!0)}),o.selectElement.on(n,r,!0)},o=this,i=0,r=f;i<r.length;i++){var s=r[i];n(s[0],s[1])}this.removeDropdownOpenedListeners=function(){for(var e=0,n=t;e<n.length;e++)(0,n[e])()}},t.prototype.release=function(){e.prototype.release.call(this),this.removeDropdownCloseListeners(),this.removeDropdownOpenedListeners(),clearTimeout(this.dropdownCloseListenerTimeoutId)},t}(r.ListSelector);t.SelectBox=d},4073:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanel=t.NavigationDirection=void 0;var r,s=n(1779),a=n(7353),l=n(3998),c=n(938),u=n(8666),p=n(6565),f=n(8151);!function(e){e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards"}(r||(t.NavigationDirection=r={}));var d=function(e){function t(t){var n=e.call(this,t)||this;return n.navigationStack=[],n.currentState=null,n.resetStateTimerId=null,n.shouldResetStateImmediately=!1,n.settingsPanelEvents={onSettingsStateChanged:new c.EventDispatcher,onActivePageChanged:new c.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel",hideDelay:5e3,pageTransitionAnimation:!0,stateResetDelay:5e3,hideOnControlsHide:!0,hideOnOtherSettingsPanelOpening:!0},n.config),n.activePage=n.getRootPage(),n.onActivePageChangedEvent(),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig();n.onControlsHide.subscribe(function(){return o.hideHoveredSelectBoxes()}),n.onComponentViewModeChanged.subscribe(function(e,t){var n=t.mode;return o.trackComponentViewMode(n)}),i.hideDelay>-1&&(this.hideTimeout=new l.Timeout(i.hideDelay,function(){o.hide(),o.hideHoveredSelectBoxes()}),this.getDomElement().on("mouseenter mousemove",function(){o.hideTimeout.reset()}),this.getDomElement().on("mouseleave",function(){o.hideTimeout.reset()}),this.getDomElement().on("focusin",function(){o.hideTimeout.clear()}),this.getDomElement().on("focusout",function(){o.hideTimeout.reset()})),i.pageTransitionAnimation&&t.on(t.exports.PlayerEvent.PlayerResized,function(){o.getDomElement().css({width:"",height:""})});var r=function(e){(0,p.getKeyMapForPlatform)()[e.keyCode]===f.Action.BACK&&(o.hide(),o.resetState())};this.onHide.subscribe(function(){o.shouldResetStateImmediately?(o.currentState=null,o.shouldResetStateImmediately=!1):(o.currentState=o.maybeSaveCurrentState(),null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),i.stateResetDelay>-1&&(o.resetStateTimerId=window.setTimeout(function(){return o.resetState()},i.stateResetDelay))),i.hideDelay>-1&&o.hideTimeout.clear(),o.activePage.onInactiveEvent(),document.removeEventListener("keyup",r)}),this.onShow.subscribe(function(){null!==o.resetStateTimerId&&(clearTimeout(o.resetStateTimerId),o.resetStateTimerId=null),null!==o.currentState?o.restoreNavigationState(o.currentState):o.updateActivePageClass(),o.activePage.onActiveEvent(),i.hideDelay>-1&&o.hideTimeout.start(),document.addEventListener("keyup",r)}),this.getRootPage().onSettingsStateChanged.subscribe(function(){o.onSettingsStateChangedEvent()}),i.hideOnControlsHide&&n.onControlsHide.subscribe(function(){o.hide()}),n.onControlsShow.subscribe(function(){null!==o.currentState&&o.show()}),this.updateActivePageClass()},t.prototype.getActivePage=function(){return this.activePage},t.prototype.setActivePageIndex=function(e){this.setActivePage(this.getPages()[e])},t.prototype.setActivePage=function(e){e!==this.getActivePage()?this.navigateToPage(e,this.getActivePage(),r.Forwards,!this.config.pageTransitionAnimation):console.warn("Page is already the current one ... skipping navigation")},t.prototype.popToRootSettingsPanelPage=function(){this.resetNavigation(this.config.pageTransitionAnimation)},t.prototype.popSettingsPanelPage=function(){if(0!==this.navigationStack.length){var e=this.navigationStack[this.navigationStack.length-2];e||(e=this.getRootPage());var t=this.activePage;this.navigateToPage(e,this.activePage,r.Backwards,!this.config.pageTransitionAnimation),t.getConfig().removeOnPop&&(this.removeComponent(t),this.updateComponents())}else console.warn("Already on the root page ... skipping navigation")},t.prototype.rootPageHasActiveSettings=function(){return this.getRootPage().hasActiveSettings()},t.prototype.getPages=function(){return this.config.components.filter(function(e){return e instanceof u.SettingsPanelPage})},t.prototype.getRootPage=function(){return this.getPages()[0]},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onActivePageChanged",{get:function(){return this.settingsPanelEvents.onActivePageChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.hideAndReset=function(){this.shouldResetStateImmediately=!0,this.hide(),this.resetState()},t.prototype.release=function(){e.prototype.release.call(this),this.hideTimeout&&this.hideTimeout.clear()},t.prototype.addComponent=function(t){0===this.getPages().length&&t instanceof u.SettingsPanelPage&&(this.activePage=t,this.onActivePageChangedEvent()),e.prototype.addComponent.call(this,t)},t.prototype.addPage=function(e){this.addComponent(e),this.updateComponents()},t.prototype.suspendHideTimeout=function(){this.hideTimeout.suspend()},t.prototype.resumeHideTimeout=function(){this.hideTimeout.resume(!0)},t.prototype.updateActivePageClass=function(){var e=this;this.getPages().forEach(function(n){n===e.activePage?n.getDomElement().addClass(e.prefixCss(t.CLASS_ACTIVE_PAGE)):n.getDomElement().removeClass(e.prefixCss(t.CLASS_ACTIVE_PAGE))})},t.prototype.resetNavigation=function(e){var t=this.getActivePage(),n=this.getRootPage();t&&(e||t.onInactiveEvent()),this.navigationStack=[],this.animateNavigation(n,t,e),this.activePage=n,this.updateActivePageClass(),this.onActivePageChangedEvent()},Object.defineProperty(t.prototype,"wrapperScrollTop",{get:function(){var e,t;return null!==(t=null===(e=this.innerContainerElement.get(0))||void 0===e?void 0:e.scrollTop)&&void 0!==t?t:0},set:function(e){var t=this.innerContainerElement.get(0);t&&(t.scrollTop=e)},enumerable:!1,configurable:!0}),t.prototype.resetState=function(){this.activePage=this.getRootPage(),this.navigationStack=[],this.currentState=null,this.resetStateTimerId=null,this.isHidden()&&this.getDomElement().css({width:"",height:""})},t.prototype.buildCurrentState=function(){var e=this.getPages();return{activePageIndex:e.indexOf(this.getActivePage()),navigationStackIndices:this.navigationStack.map(function(t){return e.indexOf(t)}),scrollTop:this.getDomElement().get(0).scrollTop,wrapperScrollTop:this.wrapperScrollTop}},t.prototype.isDefaultPanelState=function(){var e,t=this.getDomElement().get(0),n=this.getActivePage()===this.getRootPage(),o=0===this.navigationStack.length,i=0===(null!==(e=null==t?void 0:t.scrollTop)&&void 0!==e?e:0)&&0===this.wrapperScrollTop;return n&&o&&i},t.prototype.maybeSaveCurrentState=function(){return this.isDefaultPanelState()?null:this.buildCurrentState()},t.prototype.restoreNavigationState=function(e){var t,n=this.getPages();this.activePage=null!==(t=n[e.activePageIndex])&&void 0!==t?t:this.getRootPage(),this.navigationStack=e.navigationStackIndices.map(function(e){return n[e]}).filter(Boolean),this.updateActivePageClass(),this.onActivePageChangedEvent(),this.activePage.onActiveEvent(),this.getDomElement().get(0).scrollTop=e.scrollTop,this.wrapperScrollTop=e.wrapperScrollTop},t.prototype.navigateToPage=function(e,t,n,o){this.activePage=e,n===r.Forwards?this.navigationStack.push(e):this.navigationStack.pop(),this.animateNavigation(e,t,o),this.updateActivePageClass(),t.onInactiveEvent(),e.onActiveEvent(),this.onActivePageChangedEvent()},t.prototype.animateNavigation=function(e,t,n){if(this.config.pageTransitionAnimation){var o=this.getDomElement(),i=this.getDomElement().get(0),r=i.scrollWidth,s=i.scrollHeight;t.getDomElement().css("display","none"),this.getDomElement().css({width:"",height:""});var a=e.getDomElement().get(0),l=a.cloneNode(!0);a.parentNode.appendChild(l),l.style.display="block";var c=i.scrollWidth,u=i.scrollHeight;l.parentElement.removeChild(l),t.getDomElement().css("display",""),o.css({width:r+"px",height:s+"px"}),n||this.forceBrowserReflow(),o.css({width:c+"px",height:u+"px"})}},t.prototype.forceBrowserReflow=function(){this.getDomElement().get(0).offsetLeft},t.prototype.hideHoveredSelectBoxes=function(){this.getComputedItems().map(function(e){return e.settingComponent}).filter(function(e){return e instanceof a.SelectBox}).forEach(function(e){return e.closeDropdown()})},t.prototype.getComputedItems=function(){for(var e=[],t=0,n=this.getPages();t<n.length;t++){var o=n[t];e.push.apply(e,o.getItems())}return e},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelEvents.onSettingsStateChanged.dispatch(this)},t.prototype.onActivePageChangedEvent=function(){this.settingsPanelEvents.onActivePageChanged.dispatch(this)},t.CLASS_ACTIVE_PAGE="active",t}(s.Container);t.SettingsPanel=d},1742:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelItem=void 0;var r=n(1779),s=n(5955),a=n(938),l=n(8248),c=n(6441),u=n(6448),p=n(9523),f=n(6541),d=function(e){function t(t){var n=e.call(this,t)||this;n.settingsPanelItemEvents={onActiveChanged:new a.EventDispatcher},n.settingComponent=t.settingComponent,n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-item",role:"menuitem",addSettingAsComponent:!0,isSetting:!0,labelStyle:l.LabelStyle.Text},n.config);var o=t.label;return null!==o&&(o instanceof s.Component?n.label=o:n.label=new l.Label({text:o,labelStyle:t.labelStyle}),n.addComponent(n.label)),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;if(e.prototype.configure.call(this,t,n),null!=this.settingComponent&&this.config.addSettingAsComponent&&(this.addComponent(this.settingComponent),this.updateComponents()),this.settingComponent instanceof f.ListSelector){var i=function(){if(o.settingComponent instanceof f.ListSelector){var e=2;(o.settingComponent instanceof c.VideoQualitySelectBox&&o.settingComponent.hasAutoItem()||o.settingComponent instanceof u.AudioQualitySelectBox)&&(e=3),o.settingComponent.itemCount()<e||o.settingComponent instanceof p.PlaybackSpeedSelectBox&&!n.getConfig().playbackSpeedSelectionEnabled?o.hide():o.show(),o.onActiveChangedEvent(),o.getDomElement().attr("aria-haspopup","true")}};this.settingComponent.onItemAdded.subscribe(i),this.settingComponent.onItemRemoved.subscribe(i),i()}},t.prototype.onLanguageChanged=function(){this.label instanceof l.Label&&"function"==typeof this.config.label&&this.label.setText(this.config.label)},t.prototype.isActive=function(){return this.isShown()},t.prototype.onActiveChangedEvent=function(){this.settingsPanelItemEvents.onActiveChanged.dispatch(this)},Object.defineProperty(t.prototype,"onActiveChanged",{get:function(){return this.settingsPanelItemEvents.onActiveChanged.getEvent()},enumerable:!1,configurable:!0}),t}(r.Container);t.SettingsPanelItem=d},8666:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPage=void 0;var r=n(1779),s=n(1742),a=n(938),l=n(5256),c=n(9800),u=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsPanelPageEvents={onSettingsStateChanged:new a.EventDispatcher,onActive:new a.EventDispatcher,onInactive:new a.EventDispatcher},n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-page",role:"menu",removeOnPop:!1},n.config),n}return i(t,e),t.prototype.configure=function(n,o){var i=this;e.prototype.configure.call(this,n,o);for(var r=function(){i.onSettingsStateChangedEvent();for(var e=null,n=0,o=i.getItems();n<o.length;n++){var r=o[n];r.getDomElement().removeClass(i.prefixCss(t.CLASS_LAST)),r.isShown()&&(e=r)}e&&e.getDomElement().addClass(i.prefixCss(t.CLASS_LAST))},s=0,a=this.getItems();s<a.length;s++)a[s].onActiveChanged.subscribe(r)},t.prototype.hasActiveSettings=function(){for(var e=0,t=this.getItems();e<t.length;e++){var n=t[e];if(n.getConfig().isSetting&&n.isActive())return!0}return!1},t.prototype.getItems=function(){return this.config.components.filter(function(e){return e instanceof s.SettingsPanelItem})},t.prototype.onSettingsStateChangedEvent=function(){this.settingsPanelPageEvents.onSettingsStateChanged.dispatch(this)},Object.defineProperty(t.prototype,"onSettingsStateChanged",{get:function(){return this.settingsPanelPageEvents.onSettingsStateChanged.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onActiveEvent=function(){var e=this.getItems().filter(function(e){return e.isActive()&&e.getConfig().isSetting});this.settingsPanelPageEvents.onActive.dispatch(this),!(e.length>0)||l.BrowserUtils.isIOS||l.BrowserUtils.isMacIntel&&l.BrowserUtils.isTouchSupported||(e[0]instanceof c.InteractiveSettingsPanelItem?e[0].getDomElement().get(0).focus():e[0].getDomElement().focusToFirstInput())},Object.defineProperty(t.prototype,"onActive",{get:function(){return this.settingsPanelPageEvents.onActive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.onInactiveEvent=function(){this.settingsPanelPageEvents.onInactive.dispatch(this)},Object.defineProperty(t.prototype,"onInactive",{get:function(){return this.settingsPanelPageEvents.onInactive.getEvent()},enumerable:!1,configurable:!0}),t.prototype.addSettingsPanelItem=function(e){this.addComponent(e),this.updateComponents()},t.prototype.removeSettingsPanelItem=function(e){this.removeComponent(e),this.updateComponents()},t.CLASS_LAST="last",t}(r.Container);t.SettingsPanelPage=u},3177:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageBackButton=void 0;var r=n(8297),s=n(5801),a=n(9404),l=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settingspanelpagebackbutton",text:s.i18n.getLocalizer("back"),buttonStyle:a.ButtonStyle.TextWithLeadingIcon},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onClick.subscribe(function(){o.popPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageBackButton=l},8297:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageNavigatorButton=void 0;var r=n(9404),s=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{buttonStyle:r.ButtonStyle.Text},n.config),n.container=n.config.container,n.targetPage=n.config.targetPage,n}return i(t,e),t.prototype.popPage=function(){this.container.popSettingsPanelPage()},t.prototype.pushTargetPage=function(){this.container.setActivePage(this.targetPage)},t}(r.Button);t.SettingsPanelPageNavigatorButton=s},8902:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelPageOpenButton=void 0;var r=n(8297),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:s.i18n.getLocalizer("settings.subtitles.options"),role:"menuitem"},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.getDomElement().attr("aria-haspopup","true"),this.getDomElement().attr("aria-owns",this.config.targetPage.getConfig().id),this.onClick.subscribe(function(){o.pushTargetPage()})},t}(r.SettingsPanelPageNavigatorButton);t.SettingsPanelPageOpenButton=a},5856:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelSelectOption=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.settingsValue=t.settingsValue,n.config=n.mergeConfig(t,{cssClasses:["ui-settings-panel-item-select-option"],role:"menuitem",tabIndex:0},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){var e=o.settingComponent.getSelectedItem();o.settingsValue===e?o.getDomElement().addClass(o.prefixCss("selected")):o.getDomElement().removeClass(o.prefixCss("selected"))};this.settingComponent.onItemSelected.subscribe(i),this.onClick.subscribe(function(){o.settingComponent.dispatchItemSelectionChanged(o.settingsValue)}),i()},t}(n(9800).InteractiveSettingsPanelItem);t.SettingsPanelSelectOption=r},3350:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelSeparator=void 0;var r=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-separator",role:"separator"},n.config),n}return i(t,e),t}(n(1779).Container);t.SettingsPanelSeparator=r},739:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToggleButton=void 0;var r=n(2572),s=n(4073),a=n(1971),l=n(5801),c=function(e){function t(t){var n=e.call(this,t)||this;if(n.visibleSettingsPanels=[],!t.settingsPanel)throw new Error("Required SettingsPanel is missing");var o=l.i18n.getLocalizer("settings");return n.config=n.mergeConfig(t,{cssClass:"ui-settingstogglebutton",text:o,onAriaLabel:o,offAriaLabel:o,settingsPanel:null,autoHideWhenNoActiveSettings:!0},n.config),n.getDomElement().attr("aria-haspopup","menu"),n.updateAriaPanelIdRefs(),n.getDomElement().attr("aria-expanded","false"),n}return i(t,e),t.prototype.updateAriaPanelIdRefs=function(){var e=this.getConfig().settingsPanel;if(e){var t=e.getActivePage().getConfig().id;this.getDomElement().attr("aria-controls",t)}},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=this.getConfig(),r=i.settingsPanel;if(this.onClick.subscribe(function(){r.isShown()||o.visibleSettingsPanels.slice().filter(function(e){return e.getConfig().hideOnOtherSettingsPanelOpening}).forEach(function(e){return e.hide()}),r.toggleHidden()}),r.onShow.subscribe(function(){o.on(),o.getDomElement().attr("aria-expanded","true")}),r.onHide.subscribe(function(){o.off(),o.getDomElement().attr("aria-expanded","false")}),r.onActivePageChanged.subscribe(function(){return o.updateAriaPanelIdRefs()}),this.getDomElement().attr("aria-expanded",r.isShown()?"true":"false"),n.onComponentShow.subscribe(function(e){e instanceof s.SettingsPanel&&e.getConfig().hideOnOtherSettingsPanelOpening&&(o.visibleSettingsPanels.push(e),e.onHide.subscribeOnce(function(){return a.ArrayUtils.remove(o.visibleSettingsPanels,e)}))}),i.autoHideWhenNoActiveSettings){var l=function(){r.rootPageHasActiveSettings()?o.isHidden()&&o.show():o.isShown()&&o.hide()};r.onSettingsStateChanged.subscribe(l),l()}},t}(r.ToggleButton);t.SettingsToggleButton=c},5277:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSelectBox=void 0;var s=n(7353),a=n(1436),l=n(5801),c=function(e){function t(t){void 0===t&&(t={});var n=this,o=t.comparator?function(e,n){return e.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY&&n.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?0:e.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?-1:n.key===a.SubtitleSwitchHandler.SUBTITLES_OFF_KEY?1:t.comparator(e,n)}:void 0;return(n=e.call(this,r(r({},t),{comparator:o}))||this).config=n.mergeConfig(r(r({},t),{comparator:o}),{cssClasses:["ui-subtitleselectbox"],ariaLabel:l.i18n.getLocalizer("subtitle.select")},n.config),n}return i(t,e),t.prototype.configure=function(t,n){e.prototype.configure.call(this,t,n),new a.SubtitleSwitchHandler(t,this,n)},t}(s.SelectBox);t.SubtitleSelectBox=c},6441:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoQualitySelectBox=void 0;var r=n(7353),s=n(5801),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-videoqualityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n);var i=function(){o.selectItem(t.getVideoQuality().id)},r=function(){var e=t.getAvailableVideoQualities();o.clearItems(),o.hasAuto="progressive"!==t.getStreamType(),o.hasAuto&&o.addItem("auto",s.i18n.getLocalizer("auto"));for(var n=0,r=e;n<r.length;n++){var a=r[n];o.addItem(a.id,a.label)}i()};this.onItemSelectionChanged.subscribe(function(e,n){t.setVideoQuality(n)}),t.on(t.exports.PlayerEvent.SourceUnloaded,r),t.on(t.exports.PlayerEvent.PeriodSwitched,r),t.on(t.exports.PlayerEvent.VideoQualityChanged,i),t.exports.PlayerEvent.VideoQualityAdded&&(t.on(t.exports.PlayerEvent.VideoQualityAdded,r),t.on(t.exports.PlayerEvent.VideoQualityRemoved,r)),n.getConfig().events.onUpdated.subscribe(r)},t.prototype.hasAutoItem=function(){return this.hasAuto},t}(r.SelectBox);t.VideoQualitySelectBox=a},66:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.value=t}),this.settingsManager.backgroundColor.onChanged.subscribe(function(e,t){o.settingsManager.backgroundColor.isSet()?o.settingsManager.backgroundOpacity.isSet()||(o.settingsManager.backgroundOpacity.value="100"):o.settingsManager.backgroundOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundColor.isSet()&&(this.selectItem(this.settingsManager.backgroundColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.backgroundColor.isSet()&&this.settingsManager.backgroundOpacity.isSet()?this.toggleOverlayClass("bgcolor-"+this.settingsManager.backgroundColor.value+this.settingsManager.backgroundOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.BackgroundColorSelectBox=a},2492:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsbackgroundopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.backgroundOpacity.value=t,o.settingsManager.backgroundOpacity.isSet()?o.settingsManager.backgroundColor.isSet()||(o.settingsManager.backgroundColor.value="black"):o.settingsManager.backgroundColor.clear()}),this.settingsManager.backgroundOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.backgroundOpacity.isSet()&&this.selectItem(this.settingsManager.backgroundOpacity.value)},t}(r.SubtitleSettingSelectBox);t.BackgroundOpacitySelectBox=a},6894:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-character-edge-color-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdgeColor.value=t,o.settingsManager.characterEdgeColor.isSet()?o.settingsManager.characterEdge.isSet()||(o.settingsManager.characterEdge.value="uniform"):o.settingsManager.characterEdge.clear()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdgeColor.isSet()&&this.selectItem(this.settingsManager.characterEdgeColor.value)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeColorSelectBox=a},5029:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterEdgeSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingscharacteredgeselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("raised",s.i18n.getLocalizer("settings.subtitles.characterEdge.raised")),this.addItem("depressed",s.i18n.getLocalizer("settings.subtitles.characterEdge.depressed")),this.addItem("uniform",s.i18n.getLocalizer("settings.subtitles.characterEdge.uniform")),this.addItem("dropshadowed",s.i18n.getLocalizer("settings.subtitles.characterEdge.dropshadowed")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.characterEdge.value=t}),this.settingsManager.characterEdge.onChanged.subscribe(function(e,t){o.settingsManager.characterEdge.isSet()?o.settingsManager.characterEdgeColor.isSet()||(o.settingsManager.characterEdgeColor.value="black"):o.settingsManager.characterEdgeColor.clear(),o.selectItem(t.value),o.setColorAndEdgeType()}),this.settingsManager.characterEdgeColor.onChanged.subscribe(function(){o.setColorAndEdgeType()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.characterEdge.isSet()&&(this.selectItem(this.settingsManager.characterEdge.value),this.setColorAndEdgeType())},t.prototype.setColorAndEdgeType=function(){this.settingsManager.characterEdge.isSet()&&this.settingsManager.characterEdgeColor.isSet()?this.toggleOverlayClass("characteredge-"+this.settingsManager.characterEdge.value+"-"+this.settingsManager.characterEdgeColor.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.CharacterEdgeSelectBox=a},3395:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontColor.value=t}),this.settingsManager.fontColor.onChanged.subscribe(function(e,t){o.settingsManager.fontColor.isSet()?o.settingsManager.fontOpacity.isSet()||(o.settingsManager.fontOpacity.value="100"):o.settingsManager.fontOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontColor.isSet()&&(this.selectItem(this.settingsManager.fontColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.fontColor.isSet()&&this.settingsManager.fontOpacity.isSet()?this.toggleOverlayClass("fontcolor-"+this.settingsManager.fontColor.value+this.settingsManager.fontOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.FontColorSelectBox=a},5602:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontFamilySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontfamilyselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("monospacedserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedserif")),this.addItem("proportionalserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalserif")),this.addItem("monospacedsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.monospacedsansserif")),this.addItem("proportionalsansserif",s.i18n.getLocalizer("settings.subtitles.font.family.proportionalsansserif")),this.addItem("casual",s.i18n.getLocalizer("settings.subtitles.font.family.casual")),this.addItem("cursive",s.i18n.getLocalizer("settings.subtitles.font.family.cursive")),this.addItem("smallcapital",s.i18n.getLocalizer("settings.subtitles.font.family.smallcapital")),this.settingsManager.fontFamily.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontfamily-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontFamily.value=t}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontFamily.isSet()&&(this.selectItem(this.settingsManager.fontFamily.value),this.toggleOverlayClass("fontfamily-"+this.settingsManager.fontFamily.value))},t}(r.SubtitleSettingSelectBox);t.FontFamilySelectBox=a},6501:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontOpacity.value=t,o.settingsManager.fontOpacity.isSet()?o.settingsManager.fontColor.isSet()||(o.settingsManager.fontColor.value="white"):o.settingsManager.fontColor.clear()}),this.settingsManager.fontOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontOpacity.isSet()&&this.selectItem(this.settingsManager.fontOpacity.value)},t}(r.SubtitleSettingSelectBox);t.FontOpacitySelectBox=a},509:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingsfontsizeselectbox"]},n.config),n}return i(t,e),t.prototype.getFontSizeOptions=function(){return[{key:null,label:s.i18n.getLocalizer("default")},{key:"50",label:s.i18n.getLocalizer("percent",{value:50})},{key:"75",label:s.i18n.getLocalizer("percent",{value:75})},{key:"100",label:s.i18n.getLocalizer("percent",{value:100})},{key:"150",label:s.i18n.getLocalizer("percent",{value:150})},{key:"200",label:s.i18n.getLocalizer("percent",{value:200})},{key:"300",label:s.i18n.getLocalizer("percent",{value:300})},{key:"400",label:s.i18n.getLocalizer("percent",{value:400})}]},t.prototype.populateItemsWithFilter=function(){this.clearItems();for(var e=0,t=this.getFontSizeOptions();e<t.length;e++){var n=t[e];this.config.filter&&!this.config.filter(n)||this.addItem(n.key,n.label)}this.settingsManager.fontSize.isSet()&&this.selectItem(this.settingsManager.fontSize.value)},t.prototype.reapplyFilterAndReload=function(){this.populateItemsWithFilter()},t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager.fontSize.onChanged.subscribe(function(e,t){t.isSet()?o.toggleOverlayClass("fontsize-"+t.value):o.toggleOverlayClass(null),o.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.fontSize.value=t}),this.onShow.subscribe(function(){o.populateItemsWithFilter()}),this.populateItemsWithFilter(),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.fontSize.isSet()&&this.toggleOverlayClass("fontsize-"+this.settingsManager.fontSize.value)},t}(r.SubtitleSettingSelectBox);t.FontSizeSelectBox=a},1321:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitle-settings-font-style-select-box"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o,i=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("italic",s.i18n.getLocalizer("settings.subtitles.font.style.italic")),this.addItem("bold",s.i18n.getLocalizer("settings.subtitles.font.style.bold")),null===(o=this.settingsManager)||void 0===o||o.fontStyle.onChanged.subscribe(function(e,t){t.isSet()?i.toggleOverlayClass("fontstyle-"+t.value):i.toggleOverlayClass(null),i.selectItem(t.value)}),this.onItemSelectionChanged.subscribe(function(e,t){i.settingsManager&&(i.settingsManager.fontStyle.value=t)}),this.initFromSettings()},t.prototype.initFromSettings=function(){var e;(null===(e=this.settingsManager)||void 0===e?void 0:e.fontStyle.isSet())&&(this.selectItem(this.settingsManager.fontStyle.value),this.toggleOverlayClass("fontstyle-"+this.settingsManager.fontStyle.value))},t}(r.SubtitleSettingSelectBox);t.FontStyleSelectBox=a},8091:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingSelectBox=void 0;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.overlay=t.overlay,n}return i(t,e),t.prototype.toggleOverlayClass=function(e){this.currentCssClass&&(this.overlay.getDomElement().removeClass(this.currentCssClass),this.currentCssClass=null),e&&(this.currentCssClass=this.prefixCss(e),this.overlay.getDomElement().addClass(this.currentCssClass))},t.prototype.configure=function(e,t){this.settingsManager=t.getSubtitleSettingsManager()},t}(n(7353).SelectBox);t.SubtitleSettingSelectBox=r},8634:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsPanelPage=void 0;var r=n(8666),s=n(509),a=n(5602),l=n(3395),c=n(6501),u=n(5029),p=n(66),f=n(2492),d=n(5710),g=n(9008),h=n(3504),y=n(3177),v=n(1742),m=n(5801),b=n(2963),C=n(1321),S=n(6894),P=function(e){function t(t){var n=e.call(this,t)||this;n.overlay=t.overlay,n.settingsPanel=t.settingsPanel;var o=[n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.size"),new s.FontSizeSelectBox({overlay:n.overlay,filter:function(e){return n.overlay.filterFontSizeOptions(e)}}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.style"),new C.FontStyleSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.family"),new a.FontFamilySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.color"),new l.FontColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.font.opacity"),new c.FontOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge"),new u.CharacterEdgeSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.characterEdge.color"),new S.CharacterEdgeColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.color"),new p.BackgroundColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.background.opacity"),new f.BackgroundOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.color"),new d.WindowColorSelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem),n.buildSettingsPanelItem(m.i18n.getLocalizer("settings.subtitles.window.opacity"),new g.WindowOpacitySelectBox({overlay:n.overlay}),t.useDynamicSettingsPanelItem)],i=new v.SettingsPanelItem({label:new y.SettingsPanelPageBackButton({container:n.settingsPanel}),settingComponent:new h.SubtitleSettingsResetButton({}),cssClasses:["title-item"],isSetting:!1});return t.useDynamicSettingsPanelItem?o.unshift(i):o.push(i),n.config=n.mergeConfig(t,{components:o},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.onActive.subscribe(function(){o.overlay.enablePreviewSubtitleLabel();var e=o.getComponents().find(function(e){return e instanceof v.SettingsPanelItem&&e.getComponents().some(function(e){return e instanceof s.FontSizeSelectBox})});if(e){var t=e.getComponents().find(function(e){return e instanceof s.FontSizeSelectBox});null==t||t.reapplyFilterAndReload()}}),this.onInactive.subscribe(function(){o.overlay.removePreviewSubtitleLabel()})},t.prototype.buildSettingsPanelItem=function(e,t,n){return void 0===n&&(n=!1),n?new b.DynamicSettingsPanelItem({label:e,settingComponent:t,container:this.settingsPanel}):new v.SettingsPanelItem({label:e,settingComponent:t})},t}(r.SettingsPanelPage);t.SubtitleSettingsPanelPage=P},3504:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsResetButton=void 0;var r=n(9404),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClass:"ui-settings-panel-navigation-text-button",text:s.i18n.getLocalizer("reset"),buttonStyle:r.ButtonStyle.Text},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.settingsManager=n.getSubtitleSettingsManager(),this.onClick.subscribe(function(){o.settingsManager.reset()})},t}(r.Button);t.SubtitleSettingsResetButton=a},5710:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowColorSelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowcolorselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("white",s.i18n.getLocalizer("colors.white")),this.addItem("black",s.i18n.getLocalizer("colors.black")),this.addItem("red",s.i18n.getLocalizer("colors.red")),this.addItem("green",s.i18n.getLocalizer("colors.green")),this.addItem("blue",s.i18n.getLocalizer("colors.blue")),this.addItem("cyan",s.i18n.getLocalizer("colors.cyan")),this.addItem("yellow",s.i18n.getLocalizer("colors.yellow")),this.addItem("magenta",s.i18n.getLocalizer("colors.magenta")),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowColor.value=t}),this.settingsManager.windowColor.onChanged.subscribe(function(e,t){o.settingsManager.windowColor.isSet()?o.settingsManager.windowOpacity.isSet()||(o.settingsManager.windowOpacity.value="100"):o.settingsManager.windowOpacity.clear(),o.selectItem(t.value),o.setColorAndOpacity()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(){o.setColorAndOpacity()}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowColor.isSet()&&(this.selectItem(this.settingsManager.windowColor.value),this.setColorAndOpacity())},t.prototype.setColorAndOpacity=function(){this.settingsManager.windowColor.isSet()&&this.settingsManager.windowOpacity.isSet()?this.toggleOverlayClass("windowcolor-"+this.settingsManager.windowColor.value+this.settingsManager.windowOpacity.value):this.toggleOverlayClass(null)},t}(r.SubtitleSettingSelectBox);t.WindowColorSelectBox=a},9008:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowOpacitySelectBox=void 0;var r=n(8091),s=n(5801),a=function(e){function t(t){var n=e.call(this,t)||this;return n.config=n.mergeConfig(t,{cssClasses:["ui-subtitlesettingswindowopacityselectbox"]},n.config),n}return i(t,e),t.prototype.configure=function(t,n){var o=this;e.prototype.configure.call(this,t,n),this.addItem(null,s.i18n.getLocalizer("default")),this.addItem("100",s.i18n.getLocalizer("percent",{value:100})),this.addItem("75",s.i18n.getLocalizer("percent",{value:75})),this.addItem("50",s.i18n.getLocalizer("percent",{value:50})),this.addItem("25",s.i18n.getLocalizer("percent",{value:25})),this.addItem("0",s.i18n.getLocalizer("percent",{value:0})),this.onItemSelectionChanged.subscribe(function(e,t){o.settingsManager.windowOpacity.value=t,o.settingsManager.windowOpacity.isSet()?o.settingsManager.windowColor.isSet()||(o.settingsManager.windowColor.value="black"):o.settingsManager.windowColor.clear()}),this.settingsManager.windowOpacity.onChanged.subscribe(function(e,t){o.selectItem(t.value)}),this.initFromSettings()},t.prototype.initFromSettings=function(){this.settingsManager.windowOpacity.isSet()&&this.selectItem(this.settingsManager.windowOpacity.value)},t}(r.SubtitleSettingSelectBox);t.WindowOpacitySelectBox=a},5801:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.I18n=t.defaultVocabularies=void 0;var i=n(8922),r=n(7698),s=n(6897),a=n(1977),l=n(2995),c=n(7769),u=n(938);t.defaultVocabularies={de:i,en:r,es:s,fr:a,nl:l,pt:c};var p={language:"en",vocabularies:t.defaultVocabularies,events:{onLanguageChanged:new u.EventDispatcher}},f=function(){function e(e){this.setConfig(e)}return e.prototype.setConfig=function(t){this.config=o(o({},p),t);var n="auto"===this.config.language;this.vocabularies=this.mergeVocabulariesWithDefaultVocabularies(this.config.vocabularies),this.initializeLanguage(this.config.language,n,this.vocabularies),this.defaultLanguage=this.resolveDefaultLanguage(this.language),e.containsLanguage(this.vocabularies,this.language)||(this.language=this.defaultLanguage),this.initializeVocabulary(this.vocabularies)},e.prototype.getConfig=function(){return this.config},e.prototype.setLanguage=function(t){var n=this.language;e.containsLanguage(this.vocabularies,t)?this.language=t:e.containsLanguage(this.vocabularies,t.slice(0,2))?this.language=t.slice(0,2):this.language=this.defaultLanguage,this.initializeVocabulary(this.vocabularies),this.language!==n&&this.config.events.onLanguageChanged.dispatch(this,{newLanguage:this.language,oldLanguage:n})},e.containsLanguage=function(e,t){return e.hasOwnProperty(t)},e.prototype.resolveDefaultLanguage=function(t){if(e.containsLanguage(this.vocabularies,t))return t;if(e.containsLanguage(this.vocabularies,"en"))return"en";var n=Object.keys(this.vocabularies);return n.length>0?n[0]:"en"},e.prototype.mergeVocabulariesWithDefaultVocabularies=function(n){void 0===n&&(n={});var i=o(o({},t.defaultVocabularies),n);return Object.keys(i).reduce(function(r,s){var a,l=i[s];return e.containsLanguage(t.defaultVocabularies,s)&&e.containsLanguage(n,s)&&(l=o(o({},t.defaultVocabularies[s]),n[s])),o(o({},r),((a={})[s]=l,a))},{})},e.prototype.initializeLanguage=function(t,n,o){if(n){var i=window.navigator.language;if(e.containsLanguage(o,i))return void(this.language=i);var r=i.slice(0,2);if(e.containsLanguage(o,r))return void(this.language=r)}this.language=t},e.prototype.initializeVocabulary=function(e){this.vocabulary=["en",this.language].reduce(function(t,n){return o(o({},t),e[n]||{})},{})},e.prototype.replaceVariableWithPlaceholderIfExists=function(e,t){var n=e.match(new RegExp("{[a-zA-Z0-9]+}","g"));return 0===n.length?e:n.map(function(e){return{match:e,key:e.slice(1,-1)}}).reduce(function(e,n){var o=n.key,i=n.match;return t.hasOwnProperty(o)?e.replace(i,t[o]):e},e)},e.prototype.getLocalizer=function(e,t){var n=this;return function(){if(null!=e){var o=n.vocabulary[e];return null==o&&(o=e),null!=t&&(o=n.replaceVariableWithPlaceholderIfExists(o,t)),o}}},e.prototype.performLocalization=function(e){return"function"==typeof e?e():e},e}();t.I18n=f,t.i18n=new f(p)},4878:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarLabel=t.RecommendationItem=t.RecommendationOverlay=t.ErrorMessageOverlay=t.ViewMode=t.Component=t.CastToggleButton=t.CastStatusOverlay=t.AudioTrackSelectBox=t.AudioQualitySelectBox=t.LabelStyle=t.Label=t.Container=t.UIContainer=t.Watermark=t.VRToggleButton=t.VolumeToggleButton=t.VideoQualitySelectBox=t.ToggleButton=t.SettingsToggleButton=t.NavigationDirection=t.SettingsPanel=t.ItemSelectionList=t.SelectBox=t.SeekBar=t.PlaybackToggleButton=t.PlaybackTimeLabelMode=t.PlaybackTimeLabel=t.HugePlaybackToggleButton=t.FullscreenToggleButton=t.ControlBar=t.ButtonStyle=t.Button=t.SettingsPanelNavigationGroupConfig=t.SettingsPanelNavigationGroup=t.RootNavigationGroup=t.NavigationGroup=t.SpatialNavigation=t.I18n=t.i18n=t.ShadowDomManager=t.ErrorUtils=t.StorageUtils=t.BrowserUtils=t.UIUtils=t.PlayerUtils=t.StringUtils=t.ArrayUtils=t.UIFactory=t.version=void 0,t.Icon=t.AdStatusOverlay=t.ListSelector=t.QuickSeekButton=t.ReplayButton=t.DynamicSettingsPanelItem=t.SettingsPanelItem=t.SubtitleSettingsPanelPage=t.SettingsPanelPageOpenButton=t.SettingsPanelPageBackButton=t.SettingsPanelPage=t.AudioTrackListBox=t.SubtitleListBox=t.ListBox=t.SubtitleSettingsResetButton=t.WindowOpacitySelectBox=t.WindowColorSelectBox=t.SubtitleSettingSelectBox=t.FontSizeSelectBox=t.FontOpacitySelectBox=t.FontFamilySelectBox=t.FontColorSelectBox=t.CharacterEdgeSelectBox=t.BackgroundOpacitySelectBox=t.BackgroundColorSelectBox=t.Spacer=t.PictureInPictureToggleButton=t.VolumeSlider=t.AirPlayToggleButton=t.MetadataLabelContent=t.MetadataLabel=t.CloseButton=t.PlaybackToggleOverlay=t.CastUIContainer=t.PlayerContextMenu=t.InteractiveContextMenuItem=t.ContextMenu=t.BufferingOverlay=t.HugeReplayButton=t.PlaybackSpeedSelectBox=t.AdCounterLabel=t.AdClickOverlay=t.AdMessageLabel=t.AdControlBar=t.AdSkipButton=t.ClickOverlay=t.VolumeControlButton=t.TitleBar=t.SubtitleSelectBox=t.SubtitleOverlay=void 0,t.FontStyleSelectBox=t.CharacterEdgeColorSelectBox=t.TouchControlOverlay=t.InteractiveSettingsPanelItem=t.PlayerInsightsPanel=t.SettingsPanelSeparator=t.SettingsPanelPageNavigatorButton=t.SettingsPanelSelectOption=t.SmallCenteredPlaybackToggleButton=t.TvNoiseCanvas=t.EcoModeToggleButton=t.EcoModeContainer=t.DismissClickOverlay=void 0;var r=n(6203);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),i(n(1758),t),i(n(3423),t);var s=n(7247);Object.defineProperty(t,"UIFactory",{enumerable:!0,get:function(){return s.UIFactory}});var a=n(1971);Object.defineProperty(t,"ArrayUtils",{enumerable:!0,get:function(){return a.ArrayUtils}});var l=n(1823);Object.defineProperty(t,"StringUtils",{enumerable:!0,get:function(){return l.StringUtils}});var c=n(7395);Object.defineProperty(t,"PlayerUtils",{enumerable:!0,get:function(){return c.PlayerUtils}});var u=n(3226);Object.defineProperty(t,"UIUtils",{enumerable:!0,get:function(){return u.UIUtils}});var p=n(5256);Object.defineProperty(t,"BrowserUtils",{enumerable:!0,get:function(){return p.BrowserUtils}});var f=n(8919);Object.defineProperty(t,"StorageUtils",{enumerable:!0,get:function(){return f.StorageUtils}});var d=n(2414);Object.defineProperty(t,"ErrorUtils",{enumerable:!0,get:function(){return d.ErrorUtils}});var g=n(7682);Object.defineProperty(t,"ShadowDomManager",{enumerable:!0,get:function(){return g.ShadowDomManager}});var h=n(5801);Object.defineProperty(t,"i18n",{enumerable:!0,get:function(){return h.i18n}}),Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return h.I18n}});var y=n(7776);Object.defineProperty(t,"SpatialNavigation",{enumerable:!0,get:function(){return y.SpatialNavigation}});var v=n(2703);Object.defineProperty(t,"NavigationGroup",{enumerable:!0,get:function(){return v.NavigationGroup}});var m=n(4487);Object.defineProperty(t,"RootNavigationGroup",{enumerable:!0,get:function(){return m.RootNavigationGroup}});var b=n(6250);Object.defineProperty(t,"SettingsPanelNavigationGroup",{enumerable:!0,get:function(){return b.SettingsPanelNavigationGroup}}),Object.defineProperty(t,"SettingsPanelNavigationGroupConfig",{enumerable:!0,get:function(){return b.SettingsPanelNavigationGroupConfig}});var C=n(9404);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return C.Button}}),Object.defineProperty(t,"ButtonStyle",{enumerable:!0,get:function(){return C.ButtonStyle}});var S=n(9052);Object.defineProperty(t,"ControlBar",{enumerable:!0,get:function(){return S.ControlBar}});var P=n(2717);Object.defineProperty(t,"FullscreenToggleButton",{enumerable:!0,get:function(){return P.FullscreenToggleButton}});var w=n(958);Object.defineProperty(t,"HugePlaybackToggleButton",{enumerable:!0,get:function(){return w.HugePlaybackToggleButton}});var E=n(9024);Object.defineProperty(t,"PlaybackTimeLabel",{enumerable:!0,get:function(){return E.PlaybackTimeLabel}}),Object.defineProperty(t,"PlaybackTimeLabelMode",{enumerable:!0,get:function(){return E.PlaybackTimeLabelMode}});var _=n(4617);Object.defineProperty(t,"PlaybackToggleButton",{enumerable:!0,get:function(){return _.PlaybackToggleButton}});var O=n(9819);Object.defineProperty(t,"SeekBar",{enumerable:!0,get:function(){return O.SeekBar}});var k=n(7353);Object.defineProperty(t,"SelectBox",{enumerable:!0,get:function(){return k.SelectBox}});var x=n(7725);Object.defineProperty(t,"ItemSelectionList",{enumerable:!0,get:function(){return x.ItemSelectionList}});var T=n(4073);Object.defineProperty(t,"SettingsPanel",{enumerable:!0,get:function(){return T.SettingsPanel}}),Object.defineProperty(t,"NavigationDirection",{enumerable:!0,get:function(){return T.NavigationDirection}});var A=n(739);Object.defineProperty(t,"SettingsToggleButton",{enumerable:!0,get:function(){return A.SettingsToggleButton}});var M=n(2572);Object.defineProperty(t,"ToggleButton",{enumerable:!0,get:function(){return M.ToggleButton}});var I=n(6441);Object.defineProperty(t,"VideoQualitySelectBox",{enumerable:!0,get:function(){return I.VideoQualitySelectBox}});var L=n(5110);Object.defineProperty(t,"VolumeToggleButton",{enumerable:!0,get:function(){return L.VolumeToggleButton}});var B=n(4200);Object.defineProperty(t,"VRToggleButton",{enumerable:!0,get:function(){return B.VRToggleButton}});var j=n(1942);Object.defineProperty(t,"Watermark",{enumerable:!0,get:function(){return j.Watermark}});var D=n(6233);Object.defineProperty(t,"UIContainer",{enumerable:!0,get:function(){return D.UIContainer}});var U=n(1779);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return U.Container}});var F=n(8248);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return F.Label}}),Object.defineProperty(t,"LabelStyle",{enumerable:!0,get:function(){return F.LabelStyle}});var R=n(6448);Object.defineProperty(t,"AudioQualitySelectBox",{enumerable:!0,get:function(){return R.AudioQualitySelectBox}});var H=n(1886);Object.defineProperty(t,"AudioTrackSelectBox",{enumerable:!0,get:function(){return H.AudioTrackSelectBox}});var z=n(2691);Object.defineProperty(t,"CastStatusOverlay",{enumerable:!0,get:function(){return z.CastStatusOverlay}});var V=n(1291);Object.defineProperty(t,"CastToggleButton",{enumerable:!0,get:function(){return V.CastToggleButton}});var N=n(5955);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return N.Component}}),Object.defineProperty(t,"ViewMode",{enumerable:!0,get:function(){return N.ViewMode}});var W=n(823);Object.defineProperty(t,"ErrorMessageOverlay",{enumerable:!0,get:function(){return W.ErrorMessageOverlay}});var G=n(9529);Object.defineProperty(t,"RecommendationOverlay",{enumerable:!0,get:function(){return G.RecommendationOverlay}});var K=n(2806);Object.defineProperty(t,"RecommendationItem",{enumerable:!0,get:function(){return K.RecommendationItem}});var q=n(7273);Object.defineProperty(t,"SeekBarLabel",{enumerable:!0,get:function(){return q.SeekBarLabel}});var Q=n(4048);Object.defineProperty(t,"SubtitleOverlay",{enumerable:!0,get:function(){return Q.SubtitleOverlay}});var Y=n(5277);Object.defineProperty(t,"SubtitleSelectBox",{enumerable:!0,get:function(){return Y.SubtitleSelectBox}});var X=n(5705);Object.defineProperty(t,"TitleBar",{enumerable:!0,get:function(){return X.TitleBar}});var J=n(6713);Object.defineProperty(t,"VolumeControlButton",{enumerable:!0,get:function(){return J.VolumeControlButton}});var Z=n(6326);Object.defineProperty(t,"ClickOverlay",{enumerable:!0,get:function(){return Z.ClickOverlay}});var $=n(8751);Object.defineProperty(t,"AdSkipButton",{enumerable:!0,get:function(){return $.AdSkipButton}});var ee=n(3850);Object.defineProperty(t,"AdControlBar",{enumerable:!0,get:function(){return ee.AdControlBar}});var te=n(4103);Object.defineProperty(t,"AdMessageLabel",{enumerable:!0,get:function(){return te.AdMessageLabel}});var ne=n(5816);Object.defineProperty(t,"AdClickOverlay",{enumerable:!0,get:function(){return ne.AdClickOverlay}});var oe=n(8950);Object.defineProperty(t,"AdCounterLabel",{enumerable:!0,get:function(){return oe.AdCounterLabel}});var ie=n(9523);Object.defineProperty(t,"PlaybackSpeedSelectBox",{enumerable:!0,get:function(){return ie.PlaybackSpeedSelectBox}});var re=n(1308);Object.defineProperty(t,"HugeReplayButton",{enumerable:!0,get:function(){return re.HugeReplayButton}});var se=n(2680);Object.defineProperty(t,"BufferingOverlay",{enumerable:!0,get:function(){return se.BufferingOverlay}});var ae=n(5195);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return ae.ContextMenu}});var le=n(2704);Object.defineProperty(t,"InteractiveContextMenuItem",{enumerable:!0,get:function(){return le.InteractiveContextMenuItem}});var ce=n(8876);Object.defineProperty(t,"PlayerContextMenu",{enumerable:!0,get:function(){return ce.PlayerContextMenu}});var ue=n(4536);Object.defineProperty(t,"CastUIContainer",{enumerable:!0,get:function(){return ue.CastUIContainer}});var pe=n(1904);Object.defineProperty(t,"PlaybackToggleOverlay",{enumerable:!0,get:function(){return pe.PlaybackToggleOverlay}});var fe=n(7990);Object.defineProperty(t,"CloseButton",{enumerable:!0,get:function(){return fe.CloseButton}});var de=n(4947);Object.defineProperty(t,"MetadataLabel",{enumerable:!0,get:function(){return de.MetadataLabel}}),Object.defineProperty(t,"MetadataLabelContent",{enumerable:!0,get:function(){return de.MetadataLabelContent}});var ge=n(5932);Object.defineProperty(t,"AirPlayToggleButton",{enumerable:!0,get:function(){return ge.AirPlayToggleButton}});var he=n(6003);Object.defineProperty(t,"VolumeSlider",{enumerable:!0,get:function(){return he.VolumeSlider}});var ye=n(5829);Object.defineProperty(t,"PictureInPictureToggleButton",{enumerable:!0,get:function(){return ye.PictureInPictureToggleButton}});var ve=n(8754);Object.defineProperty(t,"Spacer",{enumerable:!0,get:function(){return ve.Spacer}});var me=n(66);Object.defineProperty(t,"BackgroundColorSelectBox",{enumerable:!0,get:function(){return me.BackgroundColorSelectBox}});var be=n(2492);Object.defineProperty(t,"BackgroundOpacitySelectBox",{enumerable:!0,get:function(){return be.BackgroundOpacitySelectBox}});var Ce=n(5029);Object.defineProperty(t,"CharacterEdgeSelectBox",{enumerable:!0,get:function(){return Ce.CharacterEdgeSelectBox}});var Se=n(3395);Object.defineProperty(t,"FontColorSelectBox",{enumerable:!0,get:function(){return Se.FontColorSelectBox}});var Pe=n(5602);Object.defineProperty(t,"FontFamilySelectBox",{enumerable:!0,get:function(){return Pe.FontFamilySelectBox}});var we=n(6501);Object.defineProperty(t,"FontOpacitySelectBox",{enumerable:!0,get:function(){return we.FontOpacitySelectBox}});var Ee=n(509);Object.defineProperty(t,"FontSizeSelectBox",{enumerable:!0,get:function(){return Ee.FontSizeSelectBox}});var _e=n(8091);Object.defineProperty(t,"SubtitleSettingSelectBox",{enumerable:!0,get:function(){return _e.SubtitleSettingSelectBox}});var Oe=n(5710);Object.defineProperty(t,"WindowColorSelectBox",{enumerable:!0,get:function(){return Oe.WindowColorSelectBox}});var ke=n(9008);Object.defineProperty(t,"WindowOpacitySelectBox",{enumerable:!0,get:function(){return ke.WindowOpacitySelectBox}});var xe=n(3504);Object.defineProperty(t,"SubtitleSettingsResetButton",{enumerable:!0,get:function(){return xe.SubtitleSettingsResetButton}});var Te=n(6171);Object.defineProperty(t,"ListBox",{enumerable:!0,get:function(){return Te.ListBox}});var Ae=n(1015);Object.defineProperty(t,"SubtitleListBox",{enumerable:!0,get:function(){return Ae.SubtitleListBox}});var Me=n(796);Object.defineProperty(t,"AudioTrackListBox",{enumerable:!0,get:function(){return Me.AudioTrackListBox}});var Ie=n(8666);Object.defineProperty(t,"SettingsPanelPage",{enumerable:!0,get:function(){return Ie.SettingsPanelPage}});var Le=n(3177);Object.defineProperty(t,"SettingsPanelPageBackButton",{enumerable:!0,get:function(){return Le.SettingsPanelPageBackButton}});var Be=n(8902);Object.defineProperty(t,"SettingsPanelPageOpenButton",{enumerable:!0,get:function(){return Be.SettingsPanelPageOpenButton}});var je=n(8634);Object.defineProperty(t,"SubtitleSettingsPanelPage",{enumerable:!0,get:function(){return je.SubtitleSettingsPanelPage}});var De=n(1742);Object.defineProperty(t,"SettingsPanelItem",{enumerable:!0,get:function(){return De.SettingsPanelItem}});var Ue=n(2963);Object.defineProperty(t,"DynamicSettingsPanelItem",{enumerable:!0,get:function(){return Ue.DynamicSettingsPanelItem}});var Fe=n(2663);Object.defineProperty(t,"ReplayButton",{enumerable:!0,get:function(){return Fe.ReplayButton}});var Re=n(6757);Object.defineProperty(t,"QuickSeekButton",{enumerable:!0,get:function(){return Re.QuickSeekButton}});var He=n(6541);Object.defineProperty(t,"ListSelector",{enumerable:!0,get:function(){return He.ListSelector}});var ze=n(7280);Object.defineProperty(t,"AdStatusOverlay",{enumerable:!0,get:function(){return ze.AdStatusOverlay}});var Ve=n(4647);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return Ve.Icon}});var Ne=n(4636);Object.defineProperty(t,"DismissClickOverlay",{enumerable:!0,get:function(){return Ne.DismissClickOverlay}});var We=n(9263);Object.defineProperty(t,"EcoModeContainer",{enumerable:!0,get:function(){return We.EcoModeContainer}});var Ge=n(8432);Object.defineProperty(t,"EcoModeToggleButton",{enumerable:!0,get:function(){return Ge.EcoModeToggleButton}});var Ke=n(6884);Object.defineProperty(t,"TvNoiseCanvas",{enumerable:!0,get:function(){return Ke.TvNoiseCanvas}});var qe=n(5092);Object.defineProperty(t,"SmallCenteredPlaybackToggleButton",{enumerable:!0,get:function(){return qe.SmallCenteredPlaybackToggleButton}});var Qe=n(5856);Object.defineProperty(t,"SettingsPanelSelectOption",{enumerable:!0,get:function(){return Qe.SettingsPanelSelectOption}});var Ye=n(8297);Object.defineProperty(t,"SettingsPanelPageNavigatorButton",{enumerable:!0,get:function(){return Ye.SettingsPanelPageNavigatorButton}});var Xe=n(3350);Object.defineProperty(t,"SettingsPanelSeparator",{enumerable:!0,get:function(){return Xe.SettingsPanelSeparator}});var Je=n(5526);Object.defineProperty(t,"PlayerInsightsPanel",{enumerable:!0,get:function(){return Je.PlayerInsightsPanel}});var Ze=n(9800);Object.defineProperty(t,"InteractiveSettingsPanelItem",{enumerable:!0,get:function(){return Ze.InteractiveSettingsPanelItem}});var $e=n(1368);Object.defineProperty(t,"TouchControlOverlay",{enumerable:!0,get:function(){return $e.TouchControlOverlay}});var et=n(6894);Object.defineProperty(t,"CharacterEdgeColorSelectBox",{enumerable:!0,get:function(){return et.CharacterEdgeColorSelectBox}});var tt=n(1321);Object.defineProperty(t,"FontStyleSelectBox",{enumerable:!0,get:function(){return tt.FontStyleSelectBox}}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e})},5375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusableContainer=void 0;var o=n(5860),i=n(8234),r=function(){function e(e,t){if(void 0===t&&(t=void 0),this.container=e,this._primaryComponent=t,t&&!this.components.includes(t))throw new Error("The primary component must be part of the container.")}return Object.defineProperty(e.prototype,"primaryComponent",{get:function(){var e;return null!==(e=this._primaryComponent)&&void 0!==e?e:this.components[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return(0,o.resolveAllComponents)(this.container).filter(function(e){return(0,i.isFocusable)(e)})},enumerable:!1,configurable:!0}),e}();t.FocusableContainer=r},3213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentInDirection=function(e,t,n){if(e){var l=a((0,r.toHtmlElement)(e)),c=t.map(function(e){return e instanceof i.FocusableContainer?{component:e,element:(0,r.toHtmlElement)(e.container)}:{component:e,element:(0,r.toHtmlElement)(e)}}).filter(function(t){return t.component!==e}).map(function(e){var t,i,r=e.element,c=e.component,u=a(r),p=(t=l,s({x:(i=u).x-t.x,y:i.y-t.y})),f=function(e,t,n){var i,r,a={x:n===o.Direction.LEFT?-1:n===o.Direction.RIGHT?1:0,y:n===o.Direction.UP?-1:n===o.Direction.DOWN?1:0},l=(r=s(i={x:t.x-e.x,y:t.y-e.y}),{x:i.x/r,y:i.y/r}),c=function(e,t){return e.x*t.x+e.y*t.y}(a,l)/(s(a)*s(l));return 180*Math.acos(c)/Math.PI}(l,u,n);return{angle:f,dist:p,element:r,component:c}}).filter(function(e){return e.angle<89}),u=c.filter(function(e){return 0===e.angle});return(u.length>0?u.sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component}):c.filter(function(e){return 0!==e.angle}).sort(function(e,t){return e.dist-t.dist}).map(function(e){return e.component})).shift()}},t.getBoundingRectFromElement=l;var o=n(8151),i=n(5375),r=n(1315);function s(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function a(e){var t=l(e);return{x:t.x+t.width/2,y:t.y+t.height/2}}function l(e){var t=e.getBoundingClientRect();return"number"!=typeof t.x&&"number"!=typeof t.y&&(t.x=t.left,t.y=t.top),t}},2703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationGroup=void 0;var o=n(1779),i=n(3213),r=n(5860),s=n(1924),a=n(8234),l=n(8151),c=n(5375),u=n(1315),p=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.container=e,this.removeElementHoverEventListeners=function(){},this._components=t,this.eventSubscriber=new s.NodeEventSubscriber}return e.prototype.getComponents=function(){var e=[],t=this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e});if(this.activeComponent){var n=this.getActiveFocusableContainer();n?e.push.apply(e,n.components):e.push.apply(e,t)}return this._components.filter(function(e){return!(e instanceof c.FocusableContainer)}).forEach(function(t){t instanceof o.Container?e.push.apply(e,(0,r.resolveAllComponents)(t)):e.push(t)}),e.filter(function(e){return(0,a.isFocusable)(e)})},e.prototype.getActiveComponent=function(){return this.activeComponent},e.prototype.focusComponent=function(e){var t;t=e instanceof c.FocusableContainer?e.primaryComponent:e,this.blurActiveComponent(),this.activeComponent=t,(0,u.toHtmlElement)(this.activeComponent).focus()},e.prototype.blurActiveComponent=function(){this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).blur()},e.prototype.focusFirstComponent=function(){var e=this.getComponents()[0];e&&this.focusComponent(e)},e.prototype.defaultNavigationHandler=function(e){var t=this;if(!this.activeComponent)return!1;var n=function(n){var o=n instanceof c.FocusableContainer?n.primaryComponent:n;t.afterNavigation&&t.afterNavigation(e,o)},o=this.getActiveFocusableContainer();if(o){var r=(0,i.getComponentInDirection)(this.activeComponent,o.components,e);if(r)return this.focusComponent(r),n(r),!0}var s=(0,i.getComponentInDirection)(this.activeComponent,this.getComponents(),e);return s?(this.focusComponent(s),n(s),!0):(n(s),!1)},e.prototype.defaultActionHandler=function(e){switch(e){case l.Action.SELECT:return this.activeComponent&&(0,u.toHtmlElement)(this.activeComponent).click(),Boolean(this.activeComponent);case l.Action.BACK:return this.container.hide(),!0}return!1},e.prototype.handleInput=function(e,t,n){var o=!0,i=!1;if(n&&this.activeComponent&&(i=Boolean(n(e,this.activeComponent,function(){return o=!1}))),o){var r=t.call(this,e);i=i||r}return i},e.prototype.handleNavigation=function(e){return this.activeComponent?this.handleInput(e,this.defaultNavigationHandler,this.onNavigation):(this.activeComponentBeforeDisable?this.focusComponent(this.activeComponentBeforeDisable):this.focusFirstComponent(),Boolean(this.activeComponent))},e.prototype.handleAction=function(e){return this.handleInput(e,this.defaultActionHandler,this.onAction)},e.prototype.disable=function(){this.activeComponent&&(this.activeComponentBeforeDisable=this.activeComponent,this.blurActiveComponent(),this.activeComponent=void 0)},e.prototype.enable=function(){this.activeComponentBeforeDisable&&!(0,a.isSettingsPanel)(this.container)?(this.focusComponent(this.activeComponentBeforeDisable),this.activeComponentBeforeDisable=void 0):this.focusFirstComponent(),this.trackElementHover()},e.prototype.trackElementHover=function(){var e=this;this.removeElementHoverEventListeners();var t=[];this.getComponents().forEach(function(e){(e instanceof o.Container?(0,r.resolveAllComponents)(e):e instanceof c.FocusableContainer?(0,r.resolveAllComponents)(e.container):[e]).forEach(function(e){t.push(e)})});var n=t.map(function(e){return{component:e,element:(0,u.toHtmlElement)(e)}}).map(function(t){var n=t.element,o=t.component,i=e.focusComponent.bind(e,o),r=function(){return e.disable()};return e.eventSubscriber.on(n,"mouseenter",i),e.eventSubscriber.on(n,"mouseleave",r),function(){e.eventSubscriber.off(n,"mouseenter",i),e.eventSubscriber.off(n,"mouseleave",r)}});this.removeElementHoverEventListeners=function(){return n.forEach(function(e){return e()})}},e.prototype.release=function(){this.eventSubscriber.release(),this.activeComponent=void 0,this._components.splice(0,this._components.length),this.removeElementHoverEventListeners()},e.prototype.getActiveFocusableContainer=function(){var e=this;if(this.activeComponent)return this._components.filter(function(e){return e instanceof c.FocusableContainer}).map(function(e){return e}).find(function(t){return t.components.includes(e.activeComponent)})},e}();t.NavigationGroup=p},1924:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeEventSubscriber=void 0;var n=function(){function e(){this.attachedListeners=new Map}return e.prototype.getEventListenersOfType=function(e){return this.attachedListeners.has(e)||this.attachedListeners.set(e,[]),this.attachedListeners.get(e)},e.prototype.on=function(e,t,n,o){e.addEventListener(t,n,o),this.getEventListenersOfType(t).push([e,n,o])},e.prototype.off=function(e,t,n,o){var i=this.getEventListenersOfType(t),r=i.findIndex(function(t){var i=t[0],r=t[1],s=t[2];return i===e&&r===n&&s===o});e.removeEventListener(t,n,o),r>-1&&i.splice(r,1)},e.prototype.release=function(){var e=this;this.attachedListeners.forEach(function(t,n){t.forEach(function(t){var o=t[0],i=t[1],r=t[2];e.off(o,n,i,r)})}),this.attachedListeners.clear()},e}();t.NodeEventSubscriber=n},9434:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecommendationOverlayNavigationGroup=void 0;var r=n(2703),s=n(5375),a=function(e){function t(t){var n=e.call(this,t,t.replayButton,new s.FocusableContainer(t.recommendationContainer))||this;return n.recommendationOverlay=t,n}return i(t,e),t.prototype.getComponents=function(){return this.recommendationOverlay.recommendationContainer.getComponents().length>0?e.prototype.getComponents.call(this):[this.recommendationOverlay.replayButton]},t}(r.NavigationGroup);t.RecommendationOverlayNavigationGroup=a},4487:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.RootNavigationGroup=void 0;var s=n(2703),a=n(8151),l=function(e){function t(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.apply(this,r([t],n,!1))||this;return i.container=t,i}return i(t,e),t.prototype.handleAction=function(t){return t!==a.Action.BACK&&this.container.showUi(),e.prototype.handleAction.call(this,t)},t.prototype.handleNavigation=function(t){return this.container.showUi(),e.prototype.handleNavigation.call(this,t)},t.prototype.defaultActionHandler=function(t){return t!==a.Action.BACK?e.prototype.defaultActionHandler.call(this,t):!!this.isUiShown()&&(this.container.hideUi(),!0)},t.prototype.isUiShown=function(){var e,t=null===(e=this.container.getDomElement().get(0))||void 0===e?void 0:e.classList;return!!t&&Array.from(t).some(function(e){return/-controls-shown$/.test(e)})},t.prototype.release=function(){e.prototype.release.call(this)},t}(s.NavigationGroup);t.RootNavigationGroup=l},9123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarHandler=void 0;var o=n(1924),i=n(8151),r=n(3213),s=n(1315),a=function(){function e(e){var t=this;this.rootNavigationGroup=e,this.cursorPosition={x:0,y:0},this.isScrubbing=!1,this.scrubSpeedPercentage=.005,this.onNavigation=function(e,n,o){var r=(0,s.toHtmlElement)(n);return!!l(r)&&(e===i.Direction.UP||e===i.Direction.DOWN?(t.stopSeeking(c(r)),!0):(t.initializeOrUpdateCursorPosition(r,e),t.dispatchMouseMoveEvent(c(r)),o(),!0))},this.onAction=function(e,n,o){var r=(0,s.toHtmlElement)(n);if(!l(r))return!1;var a=c(r);return e===i.Action.SELECT&&t.isScrubbing?(t.dispatchMouseClickEvent(a),o(),!0):!(e!==i.Action.BACK||!t.isScrubbing||(t.stopSeeking(a),o(),0))},this.rootNavigationGroup.onAction=this.onAction,this.eventSubscriber=new o.NodeEventSubscriber,this.rootNavigationGroup.onNavigation=this.onNavigation}return e.prototype.updateScrubSpeedPercentage=function(){var e=this;clearTimeout(this.scrubSpeedResetTimeout),this.scrubSpeedPercentage*=1.1,this.scrubSpeedResetTimeout=window.setTimeout(function(){return e.scrubSpeedPercentage=.005},100)},e.prototype.getIncrement=function(e,t){this.updateScrubSpeedPercentage();var n=t.getBoundingClientRect().width*this.scrubSpeedPercentage;return e===i.Direction.RIGHT?n:-n},e.prototype.resetCursorPosition=function(){this.cursorPosition.x=0,this.cursorPosition.y=0},e.prototype.updateCursorPosition=function(e,t){this.cursorPosition.x+=this.getIncrement(e,t)},e.prototype.initializeCursorPosition=function(e){var t=function(e){return e.querySelector('[class*="seekbar-playbackposition-marker"]')}(e),n=(0,r.getBoundingRectFromElement)(t),o=n.x+n.width/2,i=n.y;this.cursorPosition.x=o,this.cursorPosition.y=i},e.prototype.initializeOrUpdateCursorPosition=function(e,t){this.isScrubbing?this.updateCursorPosition(t,e):this.initializeCursorPosition(e),this.isScrubbing=!0},e.prototype.getCursorPositionMouseEventInit=function(){return{clientX:this.cursorPosition.x,clientY:this.cursorPosition.y}},e.prototype.dispatchMouseMoveEvent=function(e){e.dispatchEvent(new MouseEvent("mousemove",this.getCursorPositionMouseEventInit()))},e.prototype.dispatchMouseClickEvent=function(e){var t=this,n=function(){var o=t.getCursorPositionMouseEventInit();document.dispatchEvent(new MouseEvent("mouseup",o)),t.eventSubscriber.off(e,"mousedown",n),t.stopSeeking(e)};this.eventSubscriber.on(e,"mousedown",n),e.dispatchEvent(new MouseEvent("mousedown"))},e.prototype.stopSeeking=function(e){this.resetCursorPosition(),this.isScrubbing=!1,this.dispatchMouseLeaveEvent(e)},e.prototype.dispatchMouseLeaveEvent=function(e){e.dispatchEvent(new MouseEvent("mouseleave"))},e.prototype.release=function(){this.eventSubscriber.release(),this.rootNavigationGroup.onAction=void 0,this.rootNavigationGroup.onNavigation=void 0},e}();function l(e){return Array.from(e.classList).findIndex(function(e){return/-ui-seekbar$/.test(e)})>-1}function c(e){return e.children.item(0)}t.SeekBarHandler=a},6250:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPanelNavigationGroup=t.SettingsPanelNavigationGroupConfig=void 0;var s=n(2703),a=n(8151),l=n(5860),c=n(5856),u=n(2963);t.SettingsPanelNavigationGroupConfig=function(){};var p=function(e){function t(t,n){void 0===n&&(n=void 0);var o=this,i=t.getRootPage().getItems();return(o=e.apply(this,r([t],i,!1))||this).settingsPanel=t,o.config=Object.assign({},o.config,{closeOnSelect:!0},n),t.onActivePageChanged.subscribe(function(){o.activeComponent=void 0,o.focusFirstComponent()}),o}return i(t,e),t.prototype.getComponents=function(){var e=this.settingsPanel.getActivePage().getItems(),t=[];return e.forEach(function(e){e instanceof c.SettingsPanelSelectOption||e instanceof u.DynamicSettingsPanelItem?t.push(e):t.push.apply(t,(0,l.resolveAllComponents)(e))}),t},t.prototype.defaultActionHandler=function(t){return t===a.Action.BACK?(this.settingsPanel.popSettingsPanelPage(),!0):t===a.Action.SELECT?(e.prototype.defaultActionHandler.call(this,t),this.config.closeOnSelect&&(this.settingsPanel.hide(),e.prototype.defaultActionHandler.call(this,a.Action.BACK)),!0):e.prototype.defaultActionHandler.call(this,t)},t}(s.NavigationGroup);t.SettingsPanelNavigationGroup=p},7776:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SpatialNavigation=void 0;var i=n(1924),r=n(9123),s=n(6565),a=n(8234),l=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var l=this;this.navigationGroups=[],this.onShow=function(e){l.activeNavigationGroups.push(e),l.updateEnabledNavigationGroup()},this.onHide=function(e){var t=l.activeNavigationGroups.findIndex(function(t){return t===e});t>-1&&(e.disable(),l.activeNavigationGroups.splice(t,1),l.updateEnabledNavigationGroup())},this.handleKeyEvent=function(e){var t=l.keyMap[function(e){return e.keyCode}(e)],n=l.getActiveNavigationGroup();n&&n.container&&!n.container.isHidden()&&!n.container.isDisabled()&&((0,a.isDirection)(t)&&n.handleNavigation(t)||(0,a.isAction)(t)&&n.handleAction(t))&&(e.preventDefault(),e.stopPropagation())},this.seekBarHandler=new r.SeekBarHandler(e),this.activeNavigationGroups=[],this.unsubscribeVisibilityChangesFns=[],this.eventSubscriber=new i.NodeEventSubscriber,this.navigationGroups=o([e],t,!0),this.keyMap=(0,s.getKeyMapForPlatform)(),this.subscribeToNavigationGroupVisibilityChanges(),this.attachKeyEventHandler(),this.enableDefaultNavigationGroup()}return e.prototype.attachKeyEventHandler=function(){this.eventSubscriber.on(document,"keydown",this.handleKeyEvent,!0)},e.prototype.subscribeToNavigationGroupVisibilityChanges=function(){var e=this;this.navigationGroups.forEach(function(t){var n=function(){return e.onShow(t)},o=function(){return e.onHide(t)};t.container.onShow.subscribe(n),t.container.onHide.subscribe(o),e.unsubscribeVisibilityChangesFns.push(function(){return t.container.onShow.unsubscribe(n)},function(){return t.container.onHide.unsubscribe(o)})})},e.prototype.unsubscribeFromNavigationGroupVisibilityChanges=function(){this.unsubscribeVisibilityChangesFns.forEach(function(e){return e()}),this.unsubscribeVisibilityChangesFns=[]},e.prototype.enableDefaultNavigationGroup=function(){var e,t=null!==(e=this.navigationGroups.find(function(e){return e.container.isShown()}))&&void 0!==e?e:this.navigationGroups[0];t&&(this.activeNavigationGroups.push(t),this.updateEnabledNavigationGroup())},e.prototype.updateEnabledNavigationGroup=function(){var e=this;this.activeNavigationGroups.forEach(function(t,n){n<e.activeNavigationGroups.length-1?t.disable():t.enable()})},e.prototype.getActiveNavigationGroup=function(){return this.activeNavigationGroups[this.activeNavigationGroups.length-1]},e.prototype.release=function(){this.unsubscribeFromNavigationGroupVisibilityChanges(),this.eventSubscriber.release(),this.navigationGroups.forEach(function(e){return e.release()}),this.seekBarHandler.release()},e}();t.SpatialNavigation=l},8234:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSettingsPanel=function(e){return e instanceof i.SettingsPanel},t.isComponent=function(e){return null!=e&&e instanceof o.Component},t.isContainer=function(e){return null!=e&&e instanceof r.Container},t.isDirection=function(e){return"string"==typeof e&&Object.values(s.Direction).includes(e)},t.isAction=function(e){return"string"==typeof e&&Object.values(s.Action).includes(e)},t.isFocusable=function(e){return e instanceof a.FocusableContainer||e.isShown()&&e.getConfig().tabIndex>=0};var o=n(5955),i=n(4073),r=n(1779),s=n(8151),a=n(5375)},6565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyMapForPlatform=function(){var e=[s,r,a,c,l,u].find(function(e){return e.isApplicable()});return e?e.keyCodes:p};var o=n(8151),i=n(5256),r={isApplicable:function(){return i.BrowserUtils.isTizen},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,10009:o.Action.BACK}},s={isApplicable:function(){return i.BrowserUtils.isWebOs},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,461:o.Action.BACK}},a={isApplicable:function(){return i.BrowserUtils.isPlayStation},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},l={isApplicable:function(){return i.BrowserUtils.isAndroid},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},c={isApplicable:function(){return i.BrowserUtils.isHisense},keyCodes:{38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,8:o.Action.BACK}},u={isApplicable:function(){return i.BrowserUtils.isXbox},keyCodes:{203:o.Direction.UP,211:o.Direction.UP,204:o.Direction.DOWN,212:o.Direction.DOWN,205:o.Direction.LEFT,214:o.Direction.LEFT,206:o.Direction.RIGHT,213:o.Direction.RIGHT,195:o.Action.SELECT}},p={38:o.Direction.UP,40:o.Direction.DOWN,37:o.Direction.LEFT,39:o.Direction.RIGHT,13:o.Action.SELECT,27:o.Action.BACK}},5860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAllComponents=function e(t){var n=[];return t.getComponents().forEach(function(t){(0,o.isContainer)(t)?n.push.apply(n,e(t)):(0,o.isComponent)(t)&&n.push(t)}),n};var o=n(8234)},1315:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toHtmlElement=function(e){return e.getDomElement().get(0)}},8151:function(e,t){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Action=t.Direction=void 0,function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right"}(n||(t.Direction=n={})),function(e){e.SELECT="select",e.BACK="back"}(o||(t.Action=o={}))},1281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakTracker=void 0;var o=n(938),i=function(){function e(e){var t=this;this.player=e,this.groupBreaks=[],this.groupScheduleTime=void 0,this.events={onAdCountChanged:new o.EventDispatcher},this.handleAdStarted=function(){var e,n,o,i,r,s=null===(n=null===(e=t.player.ads)||void 0===e?void 0:e.getActiveAdBreak)||void 0===n?void 0:n.call(e);if(!s)return t.reset(),void t.dispatchChanged();var a=(null!==(r=null===(i=null===(o=t.player.ads)||void 0===o?void 0:o.list)||void 0===i?void 0:i.call(o))&&void 0!==r?r:[]).some(function(e){return e.scheduleTime===s.scheduleTime}),l=t.groupBreaks.length>0&&s.scheduleTime===t.groupScheduleTime;l||a?(!l&&t.groupBreaks.length>0&&(t.groupBreaks=[]),t.groupScheduleTime=s.scheduleTime,t.groupBreaks.includes(s)||t.groupBreaks.push(s)):(t.groupBreaks=[s],t.groupScheduleTime=void 0),t.dispatchChanged()},this.handleAdBreakFinished=function(e){var n,o,i,r,s;if(e.adBreak.scheduleTime===t.groupScheduleTime){var a=(null!==(i=null===(o=null===(n=t.player.ads)||void 0===n?void 0:n.list)||void 0===o?void 0:o.call(n))&&void 0!==i?i:[]).filter(function(e){return e.scheduleTime===t.groupScheduleTime}),l=null===(s=null===(r=t.player.ads)||void 0===r?void 0:r.getActiveAdBreak)||void 0===s?void 0:s.call(r),c=(null==l?void 0:l.scheduleTime)===t.groupScheduleTime&&void 0!==t.groupScheduleTime;0!==a.length||c||(t.reset(),t.dispatchChanged())}else void 0===t.groupScheduleTime&&(t.reset(),t.dispatchChanged())},e.on(e.exports.PlayerEvent.AdStarted,this.handleAdStarted),e.on(e.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished)}return Object.defineProperty(e.prototype,"onAdCountChanged",{get:function(){return this.events.onAdCountChanged.getEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentAdIndex",{get:function(){var e,t,n,o,i,r=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.getActiveAd)||void 0===t?void 0:t.call(e);if(!r||0===this.groupBreaks.length)return 0;for(var s=0,a=0,l=this.groupBreaks;a<l.length;a++){var c=l[a],u=null!==(n=c.ads)&&void 0!==n?n:[];if(u.length>0){var p=u.findIndex(function(e){return null!=r.id&&null!=e.id?e.id===r.id:e===r});if(p>=0)return s+p+1;s+=u.length}else{var f=null===(i=null===(o=this.player.ads)||void 0===o?void 0:o.getActiveAdBreak)||void 0===i?void 0:i.call(o);if(f===c||null!=(null==f?void 0:f.id)&&f.id===c.id)return s+1;s+=1}}return s+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalNumberOfAds",{get:function(){var e,t,n,o=this;if(0===this.groupBreaks.length)return 0;var i=this.groupBreaks.reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0),r=(null!==(n=null===(t=null===(e=this.player.ads)||void 0===e?void 0:e.list)||void 0===t?void 0:t.call(e))&&void 0!==n?n:[]).filter(function(e){return e.scheduleTime===o.groupScheduleTime}).reduce(function(e,t){var n;return e+((null===(n=t.ads)||void 0===n?void 0:n.length)>0?t.ads.length:1)},0);return i+r},enumerable:!1,configurable:!0}),e.prototype.release=function(){this.player.off(this.player.exports.PlayerEvent.AdStarted,this.handleAdStarted),this.player.off(this.player.exports.PlayerEvent.AdBreakFinished,this.handleAdBreakFinished),this.reset(),this.events.onAdCountChanged.unsubscribeAll()},e.prototype.dispatchChanged=function(){this.events.onAdCountChanged.dispatch(this,{currentAdIndex:this.currentAdIndex,totalNumberOfAds:this.totalNumberOfAds})},e.prototype.reset=function(){this.groupBreaks=[],this.groupScheduleTime=void 0},e}();t.AdBreakTracker=i},1971:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0,function(e){e.remove=function(e,t){var n=e.indexOf(t);return n>-1?e.splice(n,1)[0]:null}}(n||(t.ArrayUtils=n={}))},9367:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.AudioTrackSwitchHandler=void 0;var i=n(5801),r=function(){function e(e,t,n){var r=this;this.addAudioTrack=function(e){var t=e.track;if(r.hasComparator()){var n=r.player.getAvailableAudio(),s=n.some(function(e){return e.id===t.id})?n:o(o([],n,!0),[t],!1);r.listElement.synchronizeItems(s.map(function(e){return r.audioTrackToListItem(e)})),r.selectCurrentAudioTrack()}else r.listElement.hasItem(t.id)||r.listElement.addItem(t.id,i.i18n.getLocalizer(t.label),!0)},this.removeAudioTrack=function(e){var t=e.track;r.listElement.hasItem(t.id)&&r.listElement.removeItem(t.id)},this.selectCurrentAudioTrack=function(){var e=r.player.getAudio();e&&r.listElement.selectItem(e.id)},this.refreshAudioTracks=function(){var e=r.listElement.getSelectedItem();r.listElement.synchronizeItems(r.player.getAvailableAudio().map(function(e){return r.audioTrackToListItem(e)})),r.player.getAudio()?r.selectCurrentAudioTrack():e&&r.listElement.hasItem(e)&&r.listElement.selectItem(e)},this.player=e,this.listElement=t,this.uimanager=n,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshAudioTracks()}return e.prototype.bindSelectionEvent=function(){var e=this;this.listElement.onItemSelectionChanged.subscribe(function(t,n){e.player.setAudio(n)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.AudioChanged,this.selectCurrentAudioTrack),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshAudioTracks),this.player.on(this.player.exports.PlayerEvent.AudioAdded,this.addAudioTrack),this.player.on(this.player.exports.PlayerEvent.AudioRemoved,this.removeAudioTrack),this.uimanager.getConfig().events.onUpdated.subscribe(this.refreshAudioTracks)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.audioTrackToListItem=function(e){return{key:e.id,label:e.label}},e}();t.AudioTrackSwitchHandler=r},5256:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserUtils=void 0;var n=function(){function e(){}return Object.defineProperty(e,"isMobile",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Mobi/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isChrome",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Chrome/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Android/.test(navigator.userAgent)&&!this.isHisense},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isIOS",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isMacIntel",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&"MacIntel"===navigator.platform},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTv",{get:function(){return this.isHisense||this.isPlayStation||this.isWebOs||this.isTizen||this.isVizio||this.isXumo||this.isXbox||this.isVidaa},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isHisense",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Hisense/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isPlayStation",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/PlayStation/i.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isWebOs",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&(navigator.userAgent.includes("Web0S")||navigator.userAgent.includes("NetCast"))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTizen",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Tizen/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVizio",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vizio/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXumo",{get:function(){return!!this.windowExists()&&(navigator&&navigator.userAgent&&/sky_ott/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xglobal/.test(navigator.userAgent.toLowerCase())||navigator&&navigator.userAgent&&/xfinity/.test(navigator.userAgent.toLowerCase()))},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isXbox",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/Xbox/.test(navigator.userAgent)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isVidaa",{get:function(){return!!this.windowExists()&&navigator&&navigator.userAgent&&/vidaa/.test(navigator.userAgent.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(e,"isTouchSupported",{get:function(){return!!this.windowExists()&&("ontouchstart"in window||navigator&&navigator.userAgent&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0))},enumerable:!1,configurable:!0}),e.windowExists=function(){return"undefined"!=typeof window},e}();t.BrowserUtils=n},2414:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorUtils=void 0,function(e){e.defaultErrorMessages={1e3:"Error is unknown",1001:"The player API is not available after a call to PlayerAPI.destroy.",1100:"General setup error",1101:"There was an error when inserting the HTML video element",1102:"No configuration was provided",1103:"The license is not valid",1104:"The the domain-locked player is not authorized to playback on this domain",1105:"The domain is not allowlisted",1106:"The license server URL is invalid",1107:"The impression server URL is invalid",1108:"Could not initialize a rendering engine",1109:"The used flash version does not support playback",1110:"Native Flash is not authorized by a valid Adobe token",1111:"Flash doesn't have sufficient resources",1112:"Flash container API not available",1113:'Protocol not supported. This site has been loaded using "file" protocol, but unfortunately this is not supported. Please load the page using a web server (using http or https)',1200:"General source error",1201:"No valid source was provided",1202:"The downloaded manifest is invalid",1203:"There was no technology detected to playback the provided source",1204:"The stream type is not supported",1205:"The forced technology is not supported",1206:"No stream found for supported technologies.",1207:"The downloaded segment is empty",1208:"The manifest could not be loaded",1209:"Progressive stream type not supported or the stream has an error",1210:"HLS stream has an error",1211:"The encryption method is not supported",1300:"General playback error",1301:"Video decoder or demuxer had an error with the content",1302:"General error if Flash renderer has an error",1303:"Flash doesn't have sufficient resources",1304:"The transmuxer could not be initialized",1400:"Network error while downloading",1401:"The manifest download timed out",1402:"The segment download timed out",1403:"The progressive stream download timed out",1404:"The Certificate could not be loaded",2e3:"General DRM error",2001:"Required DRM configuration is missing",2002:"The licensing server URL is missing",2003:"License request failed",2004:"Key or KeyId is missing",2005:"Key size is not supported",2006:"Unable to instantiate a key system supporting the required combinations",2007:"Unable to create or initialize key session",2008:"The MediaKey object could not be created/initialized",2009:"Key error",2010:"The key system is not supported",2011:"The certificate is not valid",2012:"Invalid header key/value pair for PlayReady license request",2013:"Content cannot be played back because the output is restricted on this machine",2014:"DRM error for the Flash renderer",2100:"General VR error",2101:"Player technology not compatible with VR playback",3e3:"General module error",3001:"The definition of the module is invalid (e.g. incomplete).",3002:"The module definition specifies dependencies but the module is not provided via a function for deferred loading.",3003:"A module cannot be loaded because it has not been added to the player core.",3004:"A module cannot be loaded because one or more dependencies are missing.",3100:"An Advertising module error has occurred. Refer to the attached AdvertisingError."},e.defaultMobileV3ErrorMessageTranslator=function(e){return e.message},e.defaultWebErrorMessageTranslator=function(t){var n=e.defaultErrorMessages[t.code];return n?"".concat(n,"\n(").concat(t.name,")"):"".concat(t.code," ").concat(t.name)}}(n||(t.ErrorUtils=n={}))},8101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusVisibilityTracker=void 0;var n="bmpui-focus-visible",o=function(){function e(e,t){var o=this;this.bitmovinUiPrefix=e,this.lastInteractionWasKeyboard=!0,this.onKeyDown=function(e){e.metaKey||e.altKey||e.ctrlKey||(o.lastInteractionWasKeyboard=!0)},this.onMouseOrPointerOrTouch=function(){return o.lastInteractionWasKeyboard=!1},this.onFocus=function(e){var t=e.target;o.lastInteractionWasKeyboard&&i(t)&&function(e,t){return 0===e.id.indexOf(t)}(t,o.bitmovinUiPrefix)&&!t.classList.contains(n)&&t.classList.add(n)},this.onBlur=function(e){var t=e.target;i(t)&&t.classList.remove(n)},this.uiWrapperElement=t,this.eventHandlerMap={mousedown:this.onMouseOrPointerOrTouch,pointerdown:this.onMouseOrPointerOrTouch,touchstart:this.onMouseOrPointerOrTouch,keydown:this.onKeyDown,focus:this.onFocus,blur:this.onBlur},this.registerEventListeners()}return e.prototype.registerEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.on(e,this.eventHandlerMap[e],!0)},e.prototype.unregisterEventListeners=function(){for(var e in this.eventHandlerMap)this.uiWrapperElement.off(e,this.eventHandlerMap[e],!0)},e.prototype.release=function(){this.unregisterEventListeners()},e}();function i(e){return e instanceof HTMLElement&&e.classList instanceof DOMTokenList}t.FocusVisibilityTracker=o},5223:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GroupPlaybackSuspensionReason=void 0,function(e){e.UserIsScrubbing="userIsScrubbing"}(n||(t.GroupPlaybackSuspensionReason=n={}))},6504:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Guid=void 0,function(e){var t=1;e.next=function(){return t++}}(n||(t.Guid=n={}))},815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLoader=void 0;var o=n(323),i=function(){function e(){this.state={}}return e.prototype.load=function(e,t){var n=this;if(this.state[e]){var i=this.state[e];i.loadedCallback=t,i.loaded&&this.callLoadedCallback(i)}else{var r={url:e,image:new o.DOM("img",{}),loadedCallback:t,loaded:!1,width:0,height:0};this.state[e]=r,r.image.on("load",function(e){r.loaded=!0,r.width=r.image.get(0).width,r.height=r.image.get(0).height,n.callLoadedCallback(r)}),r.image.attr("src",r.url)}},e.prototype.callLoadedCallback=function(e){e.loadedCallback(e.url,e.width,e.height)},e}();t.ImageLoader=i},2157:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MobileV3PlayerEvent=void 0,t.isMobileV3PlayerAPI=function(e){for(var t in n)if(n.hasOwnProperty(t)&&!e.exports.PlayerEvent.hasOwnProperty(t))return!1;return!0},function(e){e.SourceError="sourceerror",e.PlayerError="playererror",e.PlaylistTransition="playlisttransition"}(n||(t.MobileV3PlayerEvent=n={}))},1872:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightProperty=t.PlayerInsightsProvider=void 0;var o=n(938),i=n(3998),r=n(3392),s=function(){function e(){var e=this;this.properties={video:new a("Video",function(e){return r.PlayerInsightsUtils.formatVideoQualityInsight(e)}),viewportFrames:new a("Viewport / Frames",function(e){return r.PlayerInsightsUtils.formatViewportFramesInsight(e)}),audio:new a("Audio",function(e){return r.PlayerInsightsUtils.formatAudioQualityInsight(e)}),bufferVideoAudio:new a("Buffer Video / Audio",function(e){return r.PlayerInsightsUtils.formatBufferInsight(e)}),time:new a("Time",function(e){return r.PlayerInsightsUtils.formatTimeInsight(e)}),stream:new a("Stream",function(e){return r.PlayerInsightsUtils.formatStreamInsight(e)}),player:new a("Player version",function(e){return e.version})},this.events={onChanged:new o.EventDispatcher},this.playerApi=null,this.uimanager=null,this.refreshTimer=null,this.refreshIntervalMs=1e3,this.active=!1,this.updateAndStartTimer=function(){e.dispatchChanged(),e.startTimer()},this.dispatchChanged=function(){e.active&&e.playerApi&&e.events.onChanged.dispatch(e,e.getSnapshots(e.playerApi))},this.stopTimer=function(){e.refreshTimer&&(e.refreshTimer.clear(),e.refreshTimer=null)}}return e.prototype.getInsights=function(){var e=[];for(var t in this.properties)e.push(this.properties[t]);return e},e.prototype.initialize=function(e,t,n){this.playerApi=e,this.uimanager=t,this.refreshIntervalMs=n,e.on(e.exports.PlayerEvent.Play,this.updateAndStartTimer),e.on(e.exports.PlayerEvent.Playing,this.updateAndStartTimer),e.on(e.exports.PlayerEvent.Paused,this.dispatchChanged),e.on(e.exports.PlayerEvent.Seeked,this.dispatchChanged),e.on(e.exports.PlayerEvent.SourceLoaded,this.dispatchChanged),e.on(e.exports.PlayerEvent.SourceUnloaded,this.dispatchChanged),e.on(e.exports.PlayerEvent.VideoQualityChanged,this.dispatchChanged),e.on(e.exports.PlayerEvent.AudioQualityChanged,this.dispatchChanged),e.on(e.exports.PlayerEvent.PlayerResized,this.dispatchChanged),e.on(e.exports.PlayerEvent.StallStarted,this.dispatchChanged),e.on(e.exports.PlayerEvent.StallEnded,this.dispatchChanged),e.on(e.exports.PlayerEvent.PlaybackFinished,this.stopTimer),e.on(e.exports.PlayerEvent.Destroy,this.stopTimer),t.getConfig().events.onUpdated.subscribe(this.dispatchChanged)},e.prototype.activate=function(){this.active=!0,this.dispatchChanged(),this.startTimer()},e.prototype.deactivate=function(){this.active=!1,this.stopTimer()},e.prototype.release=function(){var e;this.active=!1,this.stopTimer(),this.playerApi&&(this.playerApi.off(this.playerApi.exports.PlayerEvent.Play,this.updateAndStartTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Playing,this.updateAndStartTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Paused,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.Seeked,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.SourceLoaded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.SourceUnloaded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.VideoQualityChanged,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.AudioQualityChanged,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.PlayerResized,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.StallStarted,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.StallEnded,this.dispatchChanged),this.playerApi.off(this.playerApi.exports.PlayerEvent.PlaybackFinished,this.stopTimer),this.playerApi.off(this.playerApi.exports.PlayerEvent.Destroy,this.stopTimer)),null===(e=this.uimanager)||void 0===e||e.getConfig().events.onUpdated.unsubscribe(this.dispatchChanged),this.events.onChanged.unsubscribeAll(),this.playerApi=null,this.uimanager=null},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this.events.onChanged.getEvent()},enumerable:!1,configurable:!0}),e.prototype.getSnapshots=function(e){var t=[];for(var n in this.properties)t.push(this.properties[n].getSnapshot(e));return t},e.prototype.startTimer=function(){this.stopTimer(),this.playerApi&&this.active&&-1!==this.refreshIntervalMs&&(this.refreshTimer=new i.Timeout(this.refreshIntervalMs,this.dispatchChanged,!0).start())},e}();t.PlayerInsightsProvider=s;var a=function(){function e(e,t){this.label=e,this.valueProvider=t}return Object.defineProperty(e.prototype,"leadingLabel",{get:function(){return this.label},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(e){var t=this.valueProvider(e);return{value:t,visible:null!=t&&""!==t}},e}();t.PlayerInsightProperty=a},3392:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerInsightsUtils=void 0;var o,i=1e6;function r(e,t){if(e){var o=t.find(function(t){return t.id===e.id});return n(n({},e),{codec:null==o?void 0:o.codec,frameRate:null==o?void 0:o.frameRate})}}function s(e,t){var n=a(e),o=a(t);return n?o&&(null==e?void 0:e.id)!==(null==t?void 0:t.id)&&n!==o?"".concat(n," / ").concat("↓").concat(o):n:o||null}function a(e){if(!e)return"";var t=[],n=function(e){return e.width&&e.height?"".concat(e.width,"x").concat(e.height).concat(e.frameRate?"@".concat(e.frameRate):""):null}(e),o=function(e){return e&&isFinite(e)?e>=i?"".concat((e/i).toFixed(2),"Mbps"):"".concat(Math.round(e/1e3),"kbps"):""}(e.bitrate);return n&&t.push(n),o&&t.push(o),e.codec&&t.push(e.codec),t.length>0?t.join(","):""}function l(e){if(!isFinite(e))return"Infinity";var t=Math.floor(Math.abs(e)),n=Math.floor(t/3600),o=Math.floor(t%3600/60),i=t%60,r=function(e){return e<10?"0".concat(e):e.toString()};return n>0?"".concat(n,":").concat(r(o),":").concat(r(i)):"".concat(o,":").concat(r(i))}!function(e){e.formatVideoQualityInsight=function(e){var t=e.getAvailableVideoQualities();return s(e.getPlaybackVideoData(),r(e.getDownloadedVideoData(),t))},e.formatAudioQualityInsight=function(e){var t=e.getAvailableAudioQualities();return s(e.getPlaybackAudioData(),r(e.getDownloadedAudioData(),t))},e.formatViewportFramesInsight=function(e){var t=e.getVideoElement(),n=t.clientWidth>0&&t.clientHeight>0?"".concat(t.clientWidth,"x").concat(t.clientHeight):null,o="".concat(e.getDroppedVideoFrames()," dropped");return n?"".concat(n," / ").concat(o):o},e.formatBufferInsight=function(e){var t=e.buffer.getLevel(e.exports.BufferType.ForwardDuration,e.exports.MediaType.Video).level,n=e.buffer.getLevel(e.exports.BufferType.ForwardDuration,e.exports.MediaType.Audio).level;return null==t&&null==n?null:[null!=t?"".concat(t.toFixed(2),"s"):"-",null!=n?"".concat(n.toFixed(2),"s"):"-"].join(" / ")},e.formatTimeInsight=function(e){var t;if(e.isLive()){var n=e.getTimeShift(),o=e.getCurrentTime();return"".concat((t=o,function(e){return e>=Date.UTC(2e3,0,1)/1e3}(t)?function(e){var t=new Date(1e3*e),n=function(e){return e<10?"0".concat(e):e.toString()};return"".concat(n(t.getHours()),":").concat(n(t.getMinutes()),":").concat(n(t.getSeconds()))}(t):l(t))," / TimeShift: ").concat(n.toFixed(2),"s")}var i=e.getCurrentTime(),r=e.getDuration();return"".concat(l(i)," / ").concat(l(r))},e.formatStreamInsight=function(e){var t=e.getStreamType(),n=e.getPlayerType();return t||n?[t,n?"(".concat(n,")"):null].filter(Boolean).join(" "):null}}(o||(t.PlayerInsightsUtils=o={}))},7395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerUtils=void 0;var o,i=n(938),r=n(5256);!function(e){var t;!function(e){e[e.Idle=0]="Idle",e[e.Prepared=1]="Prepared",e[e.Playing=2]="Playing",e[e.Paused=3]="Paused",e[e.Finished=4]="Finished"}(t=e.PlayerState||(e.PlayerState={})),e.isTimeShiftAvailable=function(e){return e.isLive()&&0!==e.getMaxTimeShift()},e.getState=function(e){return e.hasEnded()?t.Finished:e.isPlaying()?t.Playing:e.isPaused()?t.Paused:null!=e.getSource()?t.Prepared:t.Idle},e.getCurrentTimeRelativeToSeekableRange=function(t){var n=t.getCurrentTime();return t.isLive()?n:n-e.getSeekableRangeStart(t,0)},e.getSeekableRangeStart=function(e,t){return void 0===t&&(t=0),e.getSeekableRange()&&e.getSeekableRange().start||t},e.getSeekableRangeRespectingLive=function(e){if(!e.isLive())return e.getSeekableRange();var t=-e.getTimeShift(),n=-e.getMaxTimeShift(),o=e.getCurrentTime();return{start:o-(n-t),end:o+t}};var n=function(){function t(e){var t=this;this.timeShiftAvailabilityChangedEvent=new i.EventDispatcher,this.player=e,this.timeShiftAvailable=void 0;var n=function(){t.detect()};e.on(e.exports.PlayerEvent.SourceLoaded,n),e.on(e.exports.PlayerEvent.TimeChanged,n)}return t.prototype.detect=function(){if(this.player.isLive()){var t=e.isTimeShiftAvailable(this.player);t!==this.timeShiftAvailable&&(this.timeShiftAvailabilityChangedEvent.dispatch(this.player,{timeShiftAvailable:t}),this.timeShiftAvailable=t)}},Object.defineProperty(t.prototype,"onTimeShiftAvailabilityChanged",{get:function(){return this.timeShiftAvailabilityChangedEvent.getEvent()},enumerable:!1,configurable:!0}),t}();e.TimeShiftAvailabilityDetector=n;var o=function(){function e(e,t){var n=this;this.liveChangedEvent=new i.EventDispatcher,this.player=e,this.uimanager=t,this.live=void 0;var o=function(){n.detect()};this.uimanager.getConfig().events.onUpdated.subscribe(o),e.on(e.exports.PlayerEvent.Play,o),r.BrowserUtils.isAndroid&&r.BrowserUtils.isChrome&&e.on(e.exports.PlayerEvent.TimeChanged,o),e.exports.PlayerEvent.DurationChanged&&e.on(e.exports.PlayerEvent.DurationChanged,o),e.on(e.exports.PlayerEvent.AdBreakStarted,o),e.on(e.exports.PlayerEvent.AdBreakFinished,o)}return e.prototype.detect=function(){var e=this.player.isLive();e!==this.live&&(this.liveChangedEvent.dispatch(this.player,{live:e}),this.live=e)},Object.defineProperty(e.prototype,"onLiveChanged",{get:function(){return this.liveChangedEvent.getEvent()},enumerable:!1,configurable:!0}),e}();e.LiveStreamDetector=o,e.clampValueToRange=function(e,t,n){var o=Math.min(t,n),i=Math.max(t,n);return Math.min(Math.max(e,o),i)}}(o||(t.PlayerUtils=o={}))},9436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeekBarController=t.SeekBarType=void 0;var o,i=n(3226);!function(e){e[e.Vod=0]="Vod",e[e.Live=1]="Live",e[e.Volume=2]="Volume"}(o||(t.SeekBarType=o={}));var r=function(e,t,n){e<t.min?n(t.min):e>t.max?n(t.max):n(e)},s=function(){function e(e,t,n){this.keyStepIncrements=e,this.player=t,this.volumeController=n}return e.prototype.arrowKeyControls=function(e,t,n){var o=this,i=Math.floor(e);return{left:function(){return r(i-o.keyStepIncrements.leftRight,t,n)},right:function(){return r(i+o.keyStepIncrements.leftRight,t,n)},up:function(){return r(i+o.keyStepIncrements.upDown,t,n)},down:function(){return r(i-o.keyStepIncrements.upDown,t,n)},home:function(){return r(t.min,t,n)},end:function(){return r(t.max,t,n)}}},e.prototype.seekBarControls=function(e){var t=this;if(e===o.Live)return this.arrowKeyControls(this.player.getTimeShift(),{min:this.player.getMaxTimeShift(),max:0},function(e){return t.player.timeShift(e)});if(e===o.Vod)return this.arrowKeyControls(this.player.getCurrentTime(),{min:0,max:this.player.getDuration()},function(e){return t.player.seek(e)});if(e===o.Volume&&null!=this.volumeController){var n=this.volumeController.startTransition();return this.arrowKeyControls(this.player.getVolume(),{min:0,max:100},n.finish.bind(n))}},e.prototype.setSeekBarControls=function(e,t){var n=this;e.on("keydown",function(e){var r=t(),s=n.seekBarControls(r);switch(e.keyCode){case i.UIUtils.KeyCode.LeftArrow:s.left(),e.preventDefault();break;case i.UIUtils.KeyCode.RightArrow:s.right(),e.preventDefault();break;case i.UIUtils.KeyCode.UpArrow:s.up(),e.preventDefault();break;case i.UIUtils.KeyCode.DownArrow:s.down(),e.preventDefault();break;case i.UIUtils.KeyCode.Home:s.home(),e.preventDefault();break;case i.UIUtils.KeyCode.End:s.end(),e.preventDefault();break;case i.UIUtils.KeyCode.Space:n.player.isPlaying()?n.player.pause():n.player.play(),e.preventDefault();break;case i.UIUtils.KeyCode.Comma:r!==o.Volume&&(n.stepFrame(-1),e.preventDefault());break;case i.UIUtils.KeyCode.Period:r!==o.Volume&&(n.stepFrame(1),e.preventDefault())}})},e.prototype.stepFrame=function(e){if(!this.player.isLive()){this.player.isPaused()||this.player.pause("ui");var t=Math.max(0,this.player.getCurrentTime()+e/this.getFrameRate());this.player.seek(t)}},e.prototype.getFrameRate=function(){var e,t=null===(e=this.player.getPlaybackVideoData())||void 0===e?void 0:e.frameRate;return"number"==typeof t&&t>0?t:30},e}();t.SeekBarController=s},7682:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowDomManager=void 0;var o=n(323),i=n(5589),r=function(){function e(){}return e.isShadowDomSupported=function(){return"undefined"!=typeof ShadowRoot&&"undefined"!=typeof HTMLElement&&"function"==typeof HTMLElement.prototype.attachShadow},e.prototype.initialize=function(t,n){if(e.isShadowDomSupported()){var r=new o.DOM("div",{class:(0,i.prefixCss)("shadow-dom-container")});r.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}),t.append(r),this.shadowHost=r,this.shadowRoot=r.get(0).attachShadow({mode:"open"}),this.injectStyles(n)}},e.prototype.getShadowRoot=function(){return this.shadowRoot},e.prototype.release=function(){this.shadowHost&&(this.shadowHost.remove(),this.shadowHost=void 0,this.shadowRoot=void 0)},e.prototype.injectStyles=function(t){var n=this;if(this.shadowRoot){var o=s(t.uiStylesheet||e.DEFAULT_SHADOW_STYLESHEET_NAME);o?a(this.shadowRoot,o):console.warn("Shadow DOM is enabled but no stylesheet was found. Provide `uiStylesheet` (URL or filename) or include bitmovinplayer-ui on the page."),t.additionalStylesheets&&t.additionalStylesheets.length>0&&t.additionalStylesheets.forEach(function(e){var t=s(e);t?a(n.shadowRoot,t):console.warn("Shadow DOM: Could not resolve additional stylesheet '".concat(e,"'. ")+"Check the URL or ensure the stylesheet is linked on the page.")})}},e.DEFAULT_SHADOW_STYLESHEET_NAME="bitmovinplayer-ui",e}();function s(e){if(/^https?:\/\//.test(e)||e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return e;var t=Array.from(document.querySelectorAll('link[rel~="stylesheet"]')).find(function(t){return t.href&&-1!==t.href.indexOf(e)});return(null==t?void 0:t.href)||null}function a(e,t){var n=document.createElement("link");n.rel="stylesheet",n.href=t,e.appendChild(n)}t.ShadowDomManager=r},8919:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageUtils=void 0,function(e){var t;function n(){try{return!t&&window.localStorage&&"function"==typeof localStorage.getItem&&"function"==typeof localStorage.setItem}catch(e){return!1}}function o(e,t){if(n())try{window.localStorage.setItem(e,t)}catch(t){console.debug("Failed to set storage item ".concat(e),t)}}function i(e){if(n())try{return window.localStorage.getItem(e)}catch(t){console.debug("Failed to get storage item ".concat(e),t)}return null}e.setStorageApiDisabled=function(e){t=e.disableStorageApi},e.setItem=o,e.getItem=i,e.setObject=function(e,t){o(e,JSON.stringify(t))},e.getObject=function(e){var t=i(e);return t?JSON.parse(t):null}}(n||(t.StorageUtils=n={}))},1823:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var o,i=n(5801);!function(e){function t(t,o){void 0===o&&(o=e.FORMAT_HHMMSS);var i=t<0;i&&(t=-t);var r=Math.floor(t/3600),s=Math.floor(t/60)-60*r,a=Math.floor(t)%60;return(i?"-":"")+o.replace("hh",n(r,2)).replace("mm",n(s,2)).replace("ss",n(a,2))}function n(e,t){var n=e+"";return"0000000000".substr(0,t-n.length)+n}function o(e,o){/%((0[1-9]\d*(\.\d+(d|f)|d|f)|\.\d+f|d|f)|hh:mm:ss|mm:ss)/.test(o)||(o="%d");var i=0,r=o.match(/(%0[1-9]\d*)(?=(\.\d+f|f|d))/);r&&(i=parseInt(r[0].substring(2)));var s=null,a=o.match(/\.\d*(?=f)/);if(a&&!isNaN(parseInt(a[0].substring(1)))&&(s=parseInt(a[0].substring(1)))>20&&(s=20),o.indexOf("f")>-1){var l="";return(l=null!==s?e.toFixed(s):""+e).indexOf(".")>-1?n(l,l.length+(i-l.indexOf("."))):n(l,i)}if(o.indexOf(":")>-1){var c=Math.ceil(e);if(o.indexOf("hh")>-1)return t(c);var u=c%60;return n(Math.floor(c/60),2)+":"+n(u,2)}return n(Math.ceil(e),i)}e.FORMAT_HHMMSS="hh:mm:ss",e.FORMAT_MMSS="mm:ss",e.secondsToTime=t,e.secondsToText=function(e){var t=e<0;t&&(e=-e);var n=Math.floor(e/3600),o=Math.floor(e/60)-60*n,r=Math.floor(e)%60;return(t?"-":"")+(0!==n?"".concat(n," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.hours"))," "):"")+(0!==o?"".concat(o," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.minutes"))," "):"")+"".concat(r," ").concat(i.i18n.performLocalization(i.i18n.getLocalizer("settings.time.seconds")))},e.replaceAdMessagePlaceholders=function(e,t,n,i,r){var s=new RegExp("\\{(remainingTime|playedTime|adDuration|adBreakRemainingTime|activeAdIndex|totalAdsCount)(}|%((0[1-9]\\d*(\\.\\d+(d|f)|d|f)|\\.\\d+f|d|f)|hh:mm:ss|mm:ss)})","g");return e.replace(s,function(e){var s,a,l,c,u,p,f,d,g=0;if(e.indexOf("remainingTime")>-1)g="number"==typeof n?Math.ceil(n-t.getCurrentTime()):t.getDuration()-t.getCurrentTime();else if(e.indexOf("playedTime")>-1)g=t.getCurrentTime();else if(e.indexOf("adDuration")>-1)g=t.getDuration();else if(e.indexOf("adBreakRemainingTime")>-1){if(g=0,null===(a=null===(s=t.ads)||void 0===s?void 0:s.isLinearAdActive)||void 0===a?void 0:a.call(s)){var h=t.ads.getActiveAdBreak().ads.findIndex(function(e){return t.ads.getActiveAd().id===e.id});g=t.ads.getActiveAdBreak().ads.slice(h).reduce(function(e,t){return e+(t.isLinear?t.duration:0)},0)-t.getCurrentTime()}}else if(e.indexOf("activeAdIndex")>-1||e.indexOf("totalAdsCount")>-1){if(e.includes("activeAdIndex")){if(null!=i)return o(i,e);var y=null===(c=null===(l=t.ads)||void 0===l?void 0:l.getActiveAdBreak)||void 0===c?void 0:c.call(l),v=null===(p=null===(u=t.ads)||void 0===u?void 0:u.getActiveAd)||void 0===p?void 0:p.call(u),m=null==y?void 0:y.ads;return y&&v&&Array.isArray(m)&&0!==m.length?o(m.findIndex(function(e){return null!=v.id&&null!=e.id?e.id===v.id:e===v})+1,e):o(0,e)}if(null!=r)return o(r,e);var b=null===(d=null===(f=t.ads)||void 0===f?void 0:f.getActiveAdBreak)||void 0===d?void 0:d.call(f),C=null==b?void 0:b.ads;return o(Array.isArray(C)?C.length:0,e)}return o(Math.round(g),e)})}}(o||(t.StringUtils=o={}))},7885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSettingsProperty=t.SubtitleSettingsManager=void 0;var o=n(8919),i=n(938),r=n(5589),s=function(){function e(){this._properties={fontColor:new a(this),fontOpacity:new a(this),fontFamily:new a(this),fontSize:new a(this),fontStyle:new a(this),characterEdge:new a(this),characterEdgeColor:new a(this),backgroundColor:new a(this),backgroundOpacity:new a(this),windowColor:new a(this),windowOpacity:new a(this)},this.userSettings={},this.localStorageKey=(0,r.prefixCss)("subtitlesettings")}return e.prototype.reset=function(){for(var e in this._properties)this._properties[e].clear()},Object.defineProperty(e.prototype,"fontColor",{get:function(){return this._properties.fontColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontOpacity",{get:function(){return this._properties.fontOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._properties.fontFamily},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._properties.fontSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._properties.fontStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdge",{get:function(){return this._properties.characterEdge},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"characterEdgeColor",{get:function(){return this._properties.characterEdgeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._properties.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundOpacity",{get:function(){return this._properties.backgroundOpacity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowColor",{get:function(){return this._properties.windowColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"windowOpacity",{get:function(){return this._properties.windowOpacity},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){var e=this,t=function(t){n._properties[t].onChanged.subscribe(function(n,o){o.isSet()?e.userSettings[t]=o.value:delete e.userSettings[t],e.save()})},n=this;for(var o in this._properties)t(o);this.load()},e.prototype.save=function(){o.StorageUtils.setObject(this.localStorageKey,this.userSettings)},e.prototype.load=function(){for(var e in this.userSettings=o.StorageUtils.getObject(this.localStorageKey)||{},this.userSettings)this._properties[e].value=this.userSettings[e]},e}();t.SubtitleSettingsManager=s;var a=function(){function e(e){this._manager=e,this._onChanged=new i.EventDispatcher}return e.prototype.isSet=function(){return null!=this._value},e.prototype.clear=function(){this._value=null,this.onChangedEvent(null)},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){"string"==typeof e&&"null"===e&&(e=null),this._value=e,this.onChangedEvent(e)},enumerable:!1,configurable:!0}),e.prototype.onChangedEvent=function(e){this._onChanged.dispatch(this._manager,this)},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this._onChanged.getEvent()},enumerable:!1,configurable:!0}),e}();t.SubtitleSettingsProperty=a},1436:function(e,t,n){"use strict";var o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleSwitchHandler=void 0;var i=n(5801),r=function(){function e(t,n,r){var s=this;this.onSubtitleEnabled=function(e){var t;if(s.selectCurrentSubtitle(),i.i18n.getConfig().adaptLocalizationToSubtitleLanguage){var n="string"==typeof(null===(t=e.subtitle)||void 0===t?void 0:t.lang)?e.subtitle.lang.trim():"";n&&i.i18n.setLanguage(n)}},this.addSubtitle=function(t){var n=t.subtitle;if(s.hasComparator()){var r=s.player.subtitles.list(),a=r.some(function(e){return e.id===n.id})?r:o(o([],r,!0),[n],!1),l={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};s.listElement.synchronizeItems(o([l],a.map(function(e){return s.subtitleToListItem(e)}),!0)),s.selectCurrentSubtitle()}else s.listElement.hasItem(n.id)||s.listElement.addItem(n.id,n.label)},this.removeSubtitle=function(e){var t=e.subtitle;s.listElement.hasItem(t.id)&&s.listElement.removeItem(t.id),s.selectCurrentSubtitle()},this.selectCurrentSubtitle=function(){if(s.player.subtitles){var t=s.player.subtitles.list().filter(function(e){return e.enabled}).pop();s.listElement.selectItem(t?t.id:e.SUBTITLES_OFF_KEY)}},this.clearSubtitles=function(){s.listElement.clearItems()},this.refreshSubtitles=function(){if(s.player.subtitles){var t={key:e.SUBTITLES_OFF_KEY,label:i.i18n.getLocalizer("off")};s.listElement.synchronizeItems(o([t],s.player.subtitles.list().map(function(e){return s.subtitleToListItem(e)}),!0)),s.selectCurrentSubtitle()}},this.player=t,this.listElement=n,this.uimanager=r,this.bindSelectionEvent(),this.bindPlayerEvents(),this.refreshSubtitles()}return e.prototype.bindSelectionEvent=function(){var t=this;this.listElement.onItemSelectionChanged.subscribe(function(n,o){if(o===e.SUBTITLES_OFF_KEY){var i=t.player.subtitles.list().filter(function(e){return e.enabled}).pop();i&&t.player.subtitles.disable(i.id)}else t.player.subtitles.enable(o,!0)})},e.prototype.bindPlayerEvents=function(){this.player.on(this.player.exports.PlayerEvent.SubtitleAdded,this.addSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleEnabled,this.onSubtitleEnabled),this.player.on(this.player.exports.PlayerEvent.SubtitleDisabled,this.selectCurrentSubtitle),this.player.on(this.player.exports.PlayerEvent.SubtitleRemoved,this.removeSubtitle),this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,this.clearSubtitles),this.player.on(this.player.exports.PlayerEvent.PeriodSwitched,this.refreshSubtitles),this.uimanager.getConfig().events.onUpdated.subscribe(this.refreshSubtitles)},e.prototype.hasComparator=function(){return null!=this.listElement.getConfig().comparator},e.prototype.subtitleToListItem=function(e){return{key:e.id,label:e.label}},e.SUBTITLES_OFF_KEY="null",e}();t.SubtitleSwitchHandler=r},8347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimelineMarkersHandler=void 0;var o=n(323),i=n(7395),r=n(3998),s=n(5589),a=function(){function e(e,t,n){this.markerPositionUpdater=null,this.isTimeShifting=!1,this.seekableRangeSnapshot=null,this.config=e,this.getSeekBarWidth=t,this.markersContainer=n,this.timelineMarkers=[]}return e.prototype.initialize=function(e,t){this.player=e,this.uimanager=t,this.configureMarkers()},e.prototype.configureMarkers=function(){var e=this,t=function(){return e.updateMarkers(!1)},n=function(){return e.clearMarkers()},o=function(){e.isTimeShifting=!0},r=function(){e.isTimeShifting=!1},s=function(e,t){t.scrubbing&&o()},a=function(){e.stopLiveMarkerUpdater(),e.isTimeShifting=!1,e.seekableRangeSnapshot=null,e.player.off(e.player.exports.PlayerEvent.TimeShift,o),e.player.off(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.unsubscribe(s)},l=function(){a(),e.clearMarkers()};this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,l),this.player.on(this.player.exports.PlayerEvent.Destroy,l),this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,n),this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,t);var c=new i.PlayerUtils.LiveStreamDetector(this.player,this.uimanager),u=function(t,n){n.live?(e.player.on(e.player.exports.PlayerEvent.TimeShift,o),e.player.on(e.player.exports.PlayerEvent.TimeShifted,r),e.uimanager.onSeekPreview.subscribe(s),e.startLiveMarkerUpdater()):a()};c.onLiveChanged.subscribe(u),c.detect(),this.uimanager.getConfig().events.onUpdated.subscribe(t),this.player.on(this.player.exports.PlayerEvent.PlayerResized,t),this.uimanager.onConfigured.subscribe(t),this.player.on(this.player.exports.PlayerEvent.SourceLoaded,t),this.uimanager.onRelease.subscribe(function(){e.uimanager.getConfig().events.onUpdated.unsubscribe(t),e.uimanager.onConfigured.unsubscribe(t),c.onLiveChanged.unsubscribe(u),l(),e.player.off(e.player.exports.PlayerEvent.SourceUnloaded,l),e.player.off(e.player.exports.PlayerEvent.Destroy,l),e.player.off(e.player.exports.PlayerEvent.AdBreakStarted,n),e.player.off(e.player.exports.PlayerEvent.AdBreakFinished,t),e.player.off(e.player.exports.PlayerEvent.PlayerResized,t),e.player.off(e.player.exports.PlayerEvent.SourceLoaded,t)}),this.updateMarkers(!1)},e.prototype.getMarkerAtPosition=function(e){var t=this.config.snappingRange;return this.timelineMarkers.find(function(n){var o=n.duration>0&&e>=n.position-t&&e<=n.position+n.duration+t,i=e>=n.position-t&&e<=n.position+t;return o||i})||null},e.prototype.clearMarkers=function(){this.timelineMarkers=[],this.markersContainer.empty()},e.prototype.removeMarkerFromConfig=function(e){this.uimanager.getConfig().metadata.markers=this.uimanager.getConfig().metadata.markers.filter(function(t){return e!==t})},e.prototype.filterRemovedMarkers=function(){var e=this;this.timelineMarkers=this.timelineMarkers.filter(function(t){var n=e.uimanager.getConfig().metadata.markers.find(function(e){return t.marker===e});return n||e.removeMarkerFromDOM(t),n})},e.prototype.removeMarkerFromDOM=function(e){e.element&&e.element.remove()},e.prototype.updateMarkers=function(e){var t,n,o,i,r=this;0!==this.getSeekBarWidth()&&(t=this.player,n=this.uimanager,o=t.getDuration()!==1/0||t.isLive(),i=n.getConfig().metadata.markers.length>0,o&&i?(this.filterRemovedMarkers(),this.uimanager.getConfig().metadata.markers.forEach(function(t){var n=function(e,t,n){var o=function(e,t){if(!e.isLive())return e.getDuration();var n=t.start;return t.end-n}(e,t),i=100/o*function(e,t,n,o){return t.isLive()?n-(o.end-e.time):e.time}(n,e,o,t),r=100/o*n.duration;return i<0&&!isNaN(r)&&(r+=i),100-i<r&&(r=100-i),{markerDuration:r,markerPosition:i}}(r.player,r.getSeekableRangeRespectingSnapshot(),t),o=n.markerPosition,i=n.markerDuration;if(function(e,t){return(t<0||isNaN(t))&&e<0}(o,i))r.removeMarkerFromConfig(t);else if(o<=100){var s=r.timelineMarkers.find(function(e){return e.marker===t});if(s)s.position=o,s.duration=i,r.updateMarkerDOM(s,e);else{var a={marker:t,position:o,duration:i};r.timelineMarkers.push(a),r.createMarkerDOM(a)}}})):this.clearMarkers())},e.prototype.getMarkerCssProperties=function(e,t){void 0===t&&(t=!0);var n=this.getSeekBarWidth(),o=n/100*(e.position<0?0:e.position),i={transform:"translateX(".concat(o,"px)")};if(t){var r=this.config.markerUpdateIntervalMs||1e3;i["transition-duration"]="".concat(r,"ms")}else i.transition="none";if(e.duration>0){var s=Math.round(n/100*e.duration);i.width="".concat(s,"px")}return i},e.prototype.updateMarkerDOM=function(e,t){e.element.removeCss("transition"),e.element.css(this.getMarkerCssProperties(e,t))},e.prototype.createMarkerDOM=function(e){var t=["seekbar-marker"].concat(e.marker.cssClasses||[]).map(function(e){return(0,s.prefixCss)(e)}),n=new o.DOM("div",{class:(0,s.prefixCss)("seekbar-marker-indicator")}),i=new o.DOM("div",{class:(0,s.prefixCss)("seekbar-marker-indicator")}),r=new o.DOM("div",{class:t.join(" "),"data-marker-time":String(e.marker.time),"data-marker-title":String(e.marker.title)}).css(this.getMarkerCssProperties(e,!1));if(e.marker.imageUrl){var a=new o.DOM("img",{class:(0,s.prefixCss)("seekbar-marker-image"),src:e.marker.imageUrl}).on("error",function(){a.remove()});r.append(a)}r.append(n),e.duration>0&&r.append(i),e.element=r,this.markersContainer.append(r)},e.prototype.startLiveMarkerUpdater=function(){var e=this,t=this.config.markerUpdateIntervalMs||1e3;this.stopLiveMarkerUpdater(),this.captureSeekableRangeSnapshot(),this.markerPositionUpdater=new r.Timeout(t,function(){e.isTimeShifting||e.captureSeekableRangeSnapshot(),e.updateMarkers(!0)},!0),this.markerPositionUpdater.start()},e.prototype.stopLiveMarkerUpdater=function(){this.markerPositionUpdater&&(this.markerPositionUpdater.clear(),this.markerPositionUpdater=null)},e.prototype.captureSeekableRangeSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);this.seekableRangeSnapshot={start:e.start,end:e.end,timestampMs:Date.now()}},e.prototype.getSeekableRangeRespectingSnapshot=function(){var e=i.PlayerUtils.getSeekableRangeRespectingLive(this.player);if(!this.player.isLive())return e;if(this.isTimeShifting&&this.seekableRangeSnapshot){var t=(Date.now()-this.seekableRangeSnapshot.timestampMs)/1e3;return{start:this.seekableRangeSnapshot.start+t,end:this.seekableRangeSnapshot.end+t}}return e},e}();t.TimelineMarkersHandler=a},3998:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timeout=void 0;var n=function(){function e(e,t,n){void 0===n&&(n=!1),this.delay=e,this.callback=t,this.repeat=n,this.timeoutOrIntervalId=0,this.active=!1,this.suspended=!1}return e.prototype.start=function(){return this.reset(),this},e.prototype.clear=function(){this.clearInternal()},e.prototype.suspend=function(){return this.suspended=!0,this.clearInternal(),this},e.prototype.resume=function(e){return this.suspended=!1,e&&this.reset(),this},e.prototype.reset=function(){var e=this;this.clearInternal(),this.suspended||(this.repeat?this.timeoutOrIntervalId=setInterval(this.callback,this.delay):this.timeoutOrIntervalId=setTimeout(function(){e.active=!1,e.callback()},this.delay),this.active=!0)},e.prototype.isActive=function(){return this.active},e.prototype.clearInternal=function(){this.repeat?clearInterval(this.timeoutOrIntervalId):clearTimeout(this.timeoutOrIntervalId),this.active=!1},e}();t.Timeout=n},3226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIUtils=void 0;var o,i=n(1779);!function(e){var t;e.traverseTree=function(e,t){var n=function(e,o){if(t(e,o),e instanceof i.Container)for(var r=0,s=e.getComponents();r<s.length;r++){var a=s[r];n(a,e)}};n(e)},(t=e.KeyCode||(e.KeyCode={}))[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Space=32]="Space",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Comma=188]="Comma",t[t.Period=190]="Period"}(o||(t.UIUtils=o={}))},1767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeTransition=t.VolumeController=void 0;var o=n(938),i=function(){function e(t){var n=this;this.player=t,this.events={onChanged:new o.EventDispatcher},this.transitionActive=!1,this.storedVolume=e.defaultVolume,this.storeVolume();var i=function(){n.onChangedEvent()};t.on(t.exports.PlayerEvent.SourceLoaded,i),t.on(t.exports.PlayerEvent.VolumeChanged,i),t.on(t.exports.PlayerEvent.Muted,i),t.on(t.exports.PlayerEvent.Unmuted,i)}return e.prototype.setVolume=function(t){this.player.setVolume(t,e.issuerName)},e.prototype.getVolume=function(){return this.player.getVolume()},e.prototype.setMuted=function(t){t?this.player.mute(e.issuerName):this.player.unmute(e.issuerName)},e.prototype.toggleMuted=function(){this.isMuted()||0===this.getVolume()?this.recallVolume():this.setMuted(!0)},e.prototype.isMuted=function(){return this.player.isMuted()},e.prototype.storeVolume=function(){var e=this.getVolume();e>0&&(this.storedVolume=e)},e.prototype.recallVolume=function(){var t=this.storedVolume>0?this.storedVolume:e.defaultVolume;this.setMuted(!1),this.setVolume(t)},e.prototype.startTransition=function(){return this.transitionActive=!0,new r(this)},e.prototype.endTransition=function(){this.transitionActive=!1},e.prototype.onChangedEvent=function(){var e=this.isMuted(),t=this.getVolume(),n=e||0===t,o=e?0:t;this.transitionActive||this.storeVolume(),this.events.onChanged.dispatch(this,{volume:o,muted:n})},Object.defineProperty(e.prototype,"onChanged",{get:function(){return this.events.onChanged.getEvent()},enumerable:!1,configurable:!0}),e.issuerName="ui-volumecontroller",e.defaultVolume=100,e}();t.VolumeController=i;var r=function(){function e(e){this.controller=e,e.storeVolume()}return e.prototype.update=function(e){this.controller.setMuted(!1),this.controller.setVolume(e)},e.prototype.finish=function(e){0===e?(this.controller.recallVolume(),this.controller.setMuted(!0)):(this.controller.setMuted(!1),this.controller.setVolume(e),this.controller.storeVolume()),this.controller.endTransition()},e}();t.VolumeTransition=r},5810:function(e,t){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VttUtils=void 0,function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right"}(n||(n={})),function(e){e.GrowingRight="lr",e.GrowingLeft="rl"}(o||(o={}));var i,r=new Map([[n.Top,n.Bottom],[n.Bottom,n.Top],[n.Left,n.Right],[n.Right,n.Left]]),s=function(e,t,n,o){var i=r.get(n);if("auto"===t.line&&t.vertical)e.css(i,"0");else if("auto"!==t.line||t.vertical){var s=parseFloat(t.line);if(t.snapToLines){var a=Number(t.line);a<0&&(a=21+a),s=o.height/21*a*100/o.height}"end"!==t.lineAlign&&e.css(i,"".concat(s,"%")),function(e,t,n,o){switch(t.lineAlign){case"center":c(e,n,o);break;case"end":u(e,n,o)}}(e,t,n,s)}},a=function(e,t,o,i){var r=t===n.Right?"vertical-lr":"vertical-rl";e.css("writing-mode",r),e.css(n.Top,"0"),s(e,o,t,i)},l=function(e,t,n){if("auto"===t.position)e.css(n,"0");else switch(t.positionAlign){case"line-left":e.css(n,"".concat(t.position,"%")),e.css(r.get(n),"auto"),e.css("justify-content","flex-start");break;case"center":e.css(n,"".concat(t.position-t.size/2,"%")),e.css(r.get(n),"auto"),e.css("justify-content","center");break;case"line-right":e.css(n,"auto"),e.css(r.get(n),"".concat(100-t.position,"%")),e.css("justify-content","flex-end");break;default:e.css(n,"".concat(t.position,"%")),e.css("justify-content","flex-start")}},c=function(e,t,o){switch(t){case n.Bottom:e.css("transform","translateY(-50%)");break;case n.Left:e.css("transform","translateX(50%)");break;case n.Right:e.css("transform","translateX(-50%)")}},u=function(e,t,n){var o=t;e.css(o,"".concat(100-n,"%"))};!function(e){e.setVttCueBoxStyles=function(e,t){var i=e.vtt,r=e.getDomElement();!function(e,t){t.region?(e.css("position","relative"),e.css("unicode-bidi","plaintext")):(e.css("position","absolute"),e.css("overflow-wrap","break-word"),e.css("overflow","hidden"),e.css("flex-flow","column")),e.css("display","inline-flex")}(r,i),e.getText().split("<br />").length,function(e,t,i){switch(t.vertical){case"":e.css("writing-mode","horizontal-tb"),e.css(n.Bottom,"0"),s(e,t,n.Bottom,i);break;case o.GrowingRight:a(e,n.Right,t,i);break;case o.GrowingLeft:a(e,n.Left,t,i)}}(r,i,t);var c="middle"===i.align?"center":i.align;r.css("text-align",c);var u=i.size;""===i.vertical?(r.css("width","".concat(u,"%")),l(r,i,n.Left)):(r.css("height","".concat(u,"%")),l(r,i,n.Top))},e.setVttRegionStyles=function(e,t,o){var i=e.getDomElement(),r=o.width*t.viewportAnchorX/100-o.width*t.width/100*t.regionAnchorX/100,s=o.height*t.viewportAnchorY/100-28*t.lines*t.regionAnchorY/100;i.css("position","absolute"),i.css("overflow","hidden"),i.css("width","".concat(t.width,"%")),i.css(n.Left,"".concat(r,"px")),i.css(n.Right,"unset"),i.css(n.Top,"".concat(s,"px")),i.css(n.Bottom,"unset"),i.css("height","".concat(28*t.lines,"px"))}}(i||(t.VttUtils=i={}))},3101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMinBufferLevel=function(e){var t=e.getDuration(),n=e.getVideoBufferLength(),o=e.getAudioBufferLength(),i=Math.min(null!=n?n:Number.MAX_VALUE,null!=o?o:Number.MAX_VALUE);return i===Number.MAX_VALUE&&(i=0),100/t*i}},6203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="4.16.0"},8922:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Videoqualität","settings.audio.quality":"Audioqualität","settings.audio.track":"Audiospur","speed":"Geschwindigkeit","play":"Abspielen","pause":"Pause","playPause":"Abspielen/Pause","open":"öffnen","close":"Schließen","settings.audio.mute":"Stummschaltung","settings.audio.volume":"Lautstärke","pictureInPicture":"Bild im Bild","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","settings":"Einstellungen","fullscreen":"Vollbild","off":"aus","settings.subtitles":"Untertitel","settings.subtitles.font.size":"Größe","settings.subtitles.font.style":"Schriftstil","settings.subtitles.font.style.bold":"Fett","settings.subtitles.font.style.italic":"Kursiv","settings.subtitles.font.family":"Schriftart","settings.subtitles.font.family.monospacedserif":"Monospace Serif","settings.subtitles.font.family.proportionalserif":"Proportional Serif","settings.subtitles.font.family.monospacedsansserif":"Monospace Sans-Serif","settings.subtitles.font.family.proportionalsansserif":"Proportional Sans-Serif","settings.subtitles.font.family.casual":"Lässig","settings.subtitles.font.family.cursive":"Kursiv","settings.subtitles.font.family.smallcapital":"Kapitälchen","settings.subtitles.font.color":"Farbe","settings.subtitles.font.opacity":"Deckkraft","settings.subtitles.characterEdge":"Ränder","settings.subtitles.characterEdge.raised":"erhöht","settings.subtitles.characterEdge.depressed":"vertieft","settings.subtitles.characterEdge.uniform":"einheitlich","settings.subtitles.characterEdge.dropshadowed":"Schlagschatten","settings.subtitles.characterEdge.color":"Buchstabenrandfarbe","settings.subtitles.background.color":"Hintergrundfarbe","settings.subtitles.background.opacity":"Hintergrunddeckkraft","settings.subtitles.window.color":"Hintergrundfarbe","settings.subtitles.window.opacity":"Hintergrunddeckkraft","settings.subtitles.options":"Optionen","playerInsights.show":"Player Insights anzeigen","playerInsights.hide":"Player Insights ausblenden","settings.time.hours":"Stunden","settings.time.minutes":"Minuten","settings.time.seconds":"Sekunden","back":"Zurück","reset":"Zurücksetzen","replay":"Wiederholen","ads.remainingTime":"Diese Anzeige endet in {remainingTime} Sekunden.","ads.skip":"Überspringen","ads.skippableIn":"Überspringen in {remainingTime}","ads.adNumberOfTotal":"Anzeige {activeAdIndex} von {totalAdsCount}","auto":"automatisch","normal":"normal","default":"standard","live":"Live","colors.white":"weiß","colors.black":"schwarz","colors.red":"rot","colors.green":"grün","colors.blue":"blau","colors.cyan":"cyan","colors.yellow":"gelb","colors.magenta":"magenta","percent":"{value}%","subtitle.example":"Beispiel Untertitel","subtitle.select":"Untertitel auswählen","playingOn":"Spielt auf <strong>{castDeviceName}</strong>","connectingTo":"Verbindung mit <strong>{castDeviceName}</strong> wird hergestellt...","watermarkLink":"Link zum Homepage","controlBar":"Videoplayer Kontrollen","player":"Video player","seekBar":"Video-Timeline","seekBar.value":"Wert","seekBar.timeshift":"Timeshift","seekBar.durationText":"aus","quickseek.forward":"{seekSeconds} Sekunden Vor","quickseek.rewind":"{seekSeconds} Sekunden Zurück","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive Streaming für das Web","ecoMode":"ecoMode","ecoMode.title":"Eco Mode"}')},7698:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Video Quality","settings.audio.quality":"Audio Quality","settings.audio.track":"Audio Track","settings.audio.mute":"Mute","settings.audio.volume":"Volume","settings.subtitles.window.color":"Window color","settings.subtitles.window.opacity":"Window opacity","settings.subtitles":"Subtitles","settings.subtitles.font.color":"Font color","settings.subtitles.font.opacity":"Font opacity","settings.subtitles.background.color":"Background color","settings.subtitles.background.opacity":"Background opacity","settings.subtitles.options":"Options","playerInsights.show":"Show Player Insights","playerInsights.hide":"Hide Player Insights","colors.white":"white","colors.black":"black","colors.red":"red","colors.green":"green","colors.blue":"blue","colors.cyan":"cyan","colors.yellow":"yellow","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Font size","settings.subtitles.font.style":"Font style","settings.subtitles.font.style.bold":"bold","settings.subtitles.font.style.italic":"italic","settings.subtitles.characterEdge":"Character edge","settings.subtitles.characterEdge.raised":"raised","settings.subtitles.characterEdge.depressed":"depressed","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"drop shadowed","settings.subtitles.characterEdge.color":"Character edge color","settings.subtitles.font.family":"Font family","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Hours","settings.time.minutes":"Minutes","settings.time.seconds":"Seconds","ads.remainingTime":"This ad will end in {remainingTime} seconds.","ads.skip":"Skip","ads.skippableIn":"Skip ad in {remainingTime}","ads.adNumberOfTotal":"Ad {activeAdIndex} of {totalAdsCount}","settings":"Settings","fullscreen":"Fullscreen","speed":"Speed","playPause":"Play/Pause","play":"Play","pause":"Pause","open":"open","close":"Close","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Back","reset":"Reset","replay":"Replay","normal":"normal","default":"default","live":"Live","subtitle.example":"example subtitle","subtitle.select":"Select subtitle","playingOn":"Playing on <strong>{castDeviceName}</strong>","connectingTo":"Connecting to <strong>{castDeviceName}</strong>...","watermarkLink":"Link to Homepage","controlBar":"Video player controls","player":"Video player","seekBar":"Video timeline","seekBar.value":"Value","seekBar.timeshift":"Timeshift","seekBar.durationText":"out of","quickseek.forward":"Fast Forward {seekSeconds} seconds","quickseek.rewind":"Rewind {seekSeconds} seconds","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive Streaming for the Web"}')},6897:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Calidad de Video","settings.audio.quality":"Calidad de Audio","settings.audio.track":"Pista de Audio","settings.audio.mute":"Silencio","settings.audio.volume":"Volumen","settings.subtitles.window.color":"color de Ventana","settings.subtitles.window.opacity":"opacidad de Ventana","settings.subtitles":"Subtítulos","settings.subtitles.font.color":"color de Fuente","settings.subtitles.font.opacity":"opacidad de Fuente","settings.subtitles.background.color":"color de Fondo","settings.subtitles.background.opacity":"opacidad de Fondo","settings.subtitles.options":"Opciones","playerInsights.show":"Mostrar Player Insights","playerInsights.hide":"Ocultar Player Insights","colors.white":"blanco","colors.black":"negro","colors.red":"rojo","colors.green":"verde","colors.blue":"azul","colors.cyan":"cian","colors.yellow":"amarillo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"tamaño de Fuente","settings.subtitles.font.style":"Estilo de Fuente","settings.subtitles.font.style.bold":"negrita","settings.subtitles.font.style.italic":"cursiva","settings.subtitles.characterEdge":"borde del Caracter","settings.subtitles.characterEdge.raised":"alzado","settings.subtitles.characterEdge.depressed":"discreto","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"sombreado","settings.subtitles.characterEdge.color":"color de contorno de texto","settings.subtitles.font.family":"tipo de Fuente","settings.subtitles.font.family.monospacedserif":"monospaced serif","settings.subtitles.font.family.proportionalserif":"proportional serif","settings.subtitles.font.family.monospacedsansserif":"monospaced sans serif","settings.subtitles.font.family.proportionalsansserif":"proportional sans serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursiva","settings.subtitles.font.family.smallcapital":"small capital","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este anuncio acabará en {remainingTime} segundos.","ads.skip":"Saltar","ads.skippableIn":"Saltar anuncio en {remainingTime}","ads.adNumberOfTotal":"Anuncio {activeAdIndex} de {totalAdsCount}","settings":"Configuración","fullscreen":"Pantalla Completa","speed":"Velocidad","playPause":"Reproducir/Pausa","play":"Reproducir","pause":"Pausa","open":"Abrir","close":"Cerrar","pictureInPicture":"Imagen en Imagen","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"off","auto":"auto","ecoMode":"ecoMode","ecoMode.title":"Eco Mode","back":"Atrás","reset":"Reiniciar","replay":"Rebobinar","normal":"normal","default":"predeterminado","live":"Directo","subtitle.example":"Ejemplo de Subtítulo","subtitle.select":"Seleccionar subtítulo","playingOn":"Reproduciendo en <strong>{castDeviceName}</strong>","connectingTo":"Conectando a <strong>{castDeviceName}</strong>...","watermarkLink":"Enlace al inicio","controlBar":"Controles del Reproductor","player":"Reproductor de Video","seekBar":"Línea de Tiempo","seekBar.value":"posición","seekBar.timeshift":"cambio de posición","seekBar.durationText":"de","quickseek.forward":"Adelantar {seekSeconds} segundos","quickseek.rewind":"Rebobinar {seekSeconds} segundos","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptativo para la web"}')},1977:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Qualité vidéo","settings.audio.quality":"Qualité audio","settings.audio.track":"Piste audio","settings.audio.mute":"Couper le son","settings.audio.volume":"Volume","settings.subtitles.window.color":"Couleur de la fenêtre","settings.subtitles.window.opacity":"Opacité de la fenêtre","settings.subtitles":"Sous-titres","settings.subtitles.font.color":"Couleur de la police","settings.subtitles.font.opacity":"Opacité de la police","settings.subtitles.background.color":"Couleur de fond","settings.subtitles.background.opacity":"Opacité du fond","settings.subtitles.options":"Options","playerInsights.show":"Afficher Player Insights","playerInsights.hide":"Masquer Player Insights","colors.white":"blanc","colors.black":"noir","colors.red":"rouge","colors.green":"vert","colors.blue":"bleu","colors.cyan":"cyan","colors.yellow":"jaune","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Taille de la police","settings.subtitles.font.style":"Style de la police","settings.subtitles.font.style.bold":"gras","settings.subtitles.font.style.italic":"italique","settings.subtitles.characterEdge":"Bordure du caractère","settings.subtitles.characterEdge.raised":"en relief","settings.subtitles.characterEdge.depressed":"en creux","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"ombre portée","settings.subtitles.characterEdge.color":"Couleur de la bordure du caractère","settings.subtitles.font.family":"Police de caractères","settings.subtitles.font.family.monospacedserif":"empattement à chasse fixe","settings.subtitles.font.family.proportionalserif":"empattement proportionnel","settings.subtitles.font.family.monospacedsansserif":"sans empattement à chasse fixe","settings.subtitles.font.family.proportionalsansserif":"sans empattement proportionnel","settings.subtitles.font.family.casual":"décontracté","settings.subtitles.font.family.cursive":"cursive","settings.subtitles.font.family.smallcapital":"petites majuscules","settings.time.hours":"Heures","settings.time.minutes":"Minutes","settings.time.seconds":"Secondes","ads.remainingTime":"Votre contenu reprendra dans {remainingTime} secondes.","ads.skip":"Passer","ads.skippableIn":"Passer l\'annonce dans {remainingTime}","ads.adNumberOfTotal":"Annonce {activeAdIndex} sur {totalAdsCount}","settings":"Réglages","fullscreen":"Plein écran","speed":"Vitesse","playPause":"Lecture/Pause","play":"Lecture","pause":"Pause","open":"ouvrir","close":"Fermer","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"désactivé","auto":"auto","ecoMode":"Mode éco","ecoMode.title":"Mode Éco","back":"Retour","reset":"Réinitialiser","replay":"Rejouer","normal":"normale","default":"défaut","live":"En direct","subtitle.example":"exemple de sous-titre","subtitle.select":"Sélectionner un sous-titre","playingOn":"Lecture sur <strong>{castDeviceName}</strong>","connectingTo":"Connexion à <strong>{castDeviceName}</strong>...","watermarkLink":"Lien vers la page d\'accueil","controlBar":"Barre de contrôle","player":"Lecteur vidéo","seekBar":"Barre de progression","seekBar.value":"Valeur","seekBar.timeshift":"Décalage temporel","seekBar.durationText":"de","quickseek.forward":"Avance rapide de {seekSeconds} secondes","quickseek.rewind":"Retour rapide de {seekSeconds} secondes","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptatif pour le web"}')},2995:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Videokwaliteit","settings.audio.quality":"Audiokwaliteit","settings.audio.track":"Audiospoor","settings.audio.mute":"Dempen","settings.audio.volume":"Volume","settings.subtitles.window.color":"Vensterkleur","settings.subtitles.window.opacity":"Venster doorzichtigheid","settings.subtitles":"Ondertiteling","settings.subtitles.font.color":"Lettertype kleur","settings.subtitles.font.opacity":"Lettertype doorzichtigheid","settings.subtitles.background.color":"Achtergrondkleur","settings.subtitles.background.opacity":"Achtergrond doorzichtigheid","settings.subtitles.options":"Opties","playerInsights.show":"Player Insights tonen","playerInsights.hide":"Player Insights verbergen","colors.white":"wit","colors.black":"zwart","colors.red":"rood","colors.green":"groen","colors.blue":"blauw","colors.cyan":"cyaan","colors.yellow":"geel","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Lettertype grootte","settings.subtitles.font.style":"Letterstijl","settings.subtitles.font.style.bold":"vet","settings.subtitles.font.style.italic":"cursief","settings.subtitles.characterEdge":"Lettertype rand","settings.subtitles.characterEdge.raised":"verhoogd","settings.subtitles.characterEdge.depressed":"verlaagd","settings.subtitles.characterEdge.uniform":"uniform","settings.subtitles.characterEdge.dropshadowed":"schaduw","settings.subtitles.characterEdge.color":"Letterrandkleur","settings.subtitles.font.family":"Standaard lettertype","settings.subtitles.font.family.monospacedserif":"monospace serif","settings.subtitles.font.family.proportionalserif":"proportioneel serif","settings.subtitles.font.family.monospacedsansserif":"monospace sans-serif","settings.subtitles.font.family.proportionalsansserif":"proportioneel sans-serif","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursief","settings.subtitles.font.family.smallcapital":"kleine hoofdletters","settings.time.hours":"Uren","settings.time.minutes":"Minuten","settings.time.seconds":"Seconden","ads.remainingTime":"Deze advertentie eindigt in {remainingTime} seconden.","ads.skip":"Overslaan","ads.skippableIn":"Advertentie overslaan over {remainingTime}","ads.adNumberOfTotal":"Advertentie {activeAdIndex} van {totalAdsCount}","settings":"Instellingen","fullscreen":"Volledig scherm","speed":"Snelheid","playPause":"Afspelen/Pauzeren","play":"Afspelen","pause":"Pauzeren","open":"Openen","close":"Sluiten","pictureInPicture":"Picture-in-Picture","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"VR","off":"uit","auto":"automatisch","ecoMode":"Eco-modus","ecoMode.title":"Eco-modus","back":"Terug","reset":"Reset","replay":"Opnieuw afspelen","normal":"normaal","default":"standaard","live":"Live","subtitle.example":"voorbeeld ondertiteling","subtitle.select":"Selecteer ondertiteling","playingOn":"Speelt af op <strong>{castDeviceName}</strong>","connectingTo":"Verbinden met <strong>{castDeviceName}</strong>...","watermarkLink":"Link naar homepage","controlBar":"Videospeler bediening","player":"Videospeler","seekBar":"Video tijdlijn","seekBar.value":"Waarde","seekBar.timeshift":"Tijdverschuiving","seekBar.durationText":"van","quickseek.forward":"{seekSeconds} seconden vooruitspoelen","quickseek.rewind":"{seekSeconds} seconden terugspoelen","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Adaptive streaming voor het web"}')},7769:function(e){"use strict";e.exports=JSON.parse('{"settings.video.quality":"Qualidade de vídeo","settings.audio.quality":"Qualidade de áudio","settings.audio.track":"Faixa de Áudio","settings.audio.mute":"Silenciar","settings.audio.volume":"Volume","settings.subtitles.window.color":"Cor da janela","settings.subtitles.window.opacity":"Opacidade da janela","settings.subtitles":"Legendas","settings.subtitles.font.color":"Cor do texto","settings.subtitles.font.opacity":"Opacidade do texto","settings.subtitles.background.color":"Cor do fundo","settings.subtitles.background.opacity":"Opacidade do fundo","settings.subtitles.options":"Opções","playerInsights.show":"Mostrar Player Insights","playerInsights.hide":"Ocultar Player Insights","colors.white":"branco","colors.black":"preto","colors.red":"vermelho","colors.green":"verde","colors.blue":"azul","colors.cyan":"ciano","colors.yellow":"amarelo","colors.magenta":"magenta","percent":"{value}%","settings.subtitles.font.size":"Tamanho do texto","settings.subtitles.font.style":"Estilo do texto","settings.subtitles.font.style.bold":"negrito","settings.subtitles.font.style.italic":"itálico","settings.subtitles.characterEdge":"Borda do texto","settings.subtitles.characterEdge.raised":"levantada","settings.subtitles.characterEdge.depressed":"deprimida","settings.subtitles.characterEdge.uniform":"uniforme","settings.subtitles.characterEdge.dropshadowed":"com sombra","settings.subtitles.characterEdge.color":"Cor da borda do texto","settings.subtitles.font.family":"Família de fontes","settings.subtitles.font.family.monospacedserif":"serifado monoespaçado","settings.subtitles.font.family.proportionalserif":"serifado proporcional","settings.subtitles.font.family.monospacedsansserif":"monoespaçado sem serifa","settings.subtitles.font.family.proportionalsansserif":"proporcional sem serifa","settings.subtitles.font.family.casual":"casual","settings.subtitles.font.family.cursive":"cursivo","settings.subtitles.font.family.smallcapital":"letras minúsculas","settings.time.hours":"Horas","settings.time.minutes":"Minutos","settings.time.seconds":"Segundos","ads.remainingTime":"Este anúncio vai terminar em {remainingTime} segundos.","ads.skip":"Ignorar","ads.skippableIn":"Ignorar anúncio em {remainingTime}","ads.adNumberOfTotal":"Anúncio {activeAdIndex} de {totalAdsCount}","settings":"Definições","fullscreen":"Ecrã inteiro","speed":"Velocidade","playPause":"Reproduzir/Pausar","play":"Reproduzir","pause":"Pausar","open":"abrir","close":"Fechar","pictureInPicture":"Imagem em imagem","appleAirplay":"Apple AirPlay","googleCast":"Google Cast","vr":"Realidade Virtual","off":"desligado","auto":"automático","ecoMode":"ecoMode","ecoMode.title":"Modo Económico","back":"Voltar atrás","reset":"Reiniciar","replay":"Repetir","normal":"normal","default":"predefinição","live":"Ao Vivo","subtitle.example":"exemplo de legenda","subtitle.select":"Selecionar legenda","playingOn":"A reproduzir em <strong>{castDeviceName}</strong>","connectingTo":"A conectar a <strong>{castDeviceName}</strong>...","watermarkLink":"Link para a página inicial","controlBar":"Controlos do reprodutor de vídeo","player":"Reprodutor de vídeo","seekBar":"Linha do tempo do vídeo","seekBar.value":"Valor","seekBar.timeshift":"Diferido","seekBar.durationText":"de","quickseek.forward":"Avançar {seekSeconds} segundos","quickseek.rewind":"Retroceder {seekSeconds} segundos","contextMenu.title":"Bitmovin Player","contextMenu.subtitle":"Streaming adaptativo para a web"}')}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}return n(5437),n(4878)}()});
18
18
  })();