The Ultimate Video Player For WordPress – by Presto Player - Version 1.9.3

Version Description

  • March 24, 2022
Download this release

Release Info

Developer patilvikasj
Plugin Icon 128x128 The Ultimate Video Player For WordPress – by Presto Player
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

dist/components/cjs/{hls-2727e8cc.js → hls-b6a1ee3c.js} RENAMED
@@ -1,7 +1,7 @@
1
  'use strict';
2
 
3
  const index = require('./index-c0b7f1dc.js');
4
- const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-970f56a5.js');
5
 
6
  var loadHLS = function loadHLS(_ref) {
7
  var config = _ref.config,
1
  'use strict';
2
 
3
  const index = require('./index-c0b7f1dc.js');
4
+ const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-f6c939a4.js');
5
 
6
  var loadHLS = function loadHLS(_ref) {
7
  var config = _ref.config,
dist/components/cjs/{learndash-a71b6fe7.js → learndash-9537f052.js} RENAMED
@@ -1,6 +1,6 @@
1
  'use strict';
2
 
3
- const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-970f56a5.js');
4
  require('./index-c0b7f1dc.js');
5
 
6
  const learndash = (function (player) {
1
  'use strict';
2
 
3
+ const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-f6c939a4.js');
4
  require('./index-c0b7f1dc.js');
5
 
6
  const learndash = (function (player) {
dist/components/cjs/presto-action-bar_25.cjs.entry.js CHANGED
@@ -2,7 +2,7 @@
2
 
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
 
5
- const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-970f56a5.js');
6
  require('./index-c0b7f1dc.js');
7
 
8
 
2
 
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
 
5
+ const prestoActionBar_prestoActionBarController_prestoActionBarUi_prestoAudio_prestoBunny_prestoBusinessSkin_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoModernSkin_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoStackedSkin_prestoTimestamp_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-f6c939a4.js');
6
  require('./index-c0b7f1dc.js');
7
 
8
 
dist/components/collection/util.js CHANGED
@@ -129,16 +129,18 @@ export function exitFullScreen(player) {
129
  var _a, _b, _c, _d, _e;
130
  if (!isMobile())
131
  return;
132
- if (!((_b = (_a = player === null || player === void 0 ? void 0 : player.config) === null || _a === void 0 ? void 0 : _a.blockAttributes) === null || _b === void 0 ? void 0 : _b.playsinline)) {
133
  // html5
134
  typeof ((_c = player === null || player === void 0 ? void 0 : player.media) === null || _c === void 0 ? void 0 : _c.webkitExitFullScreen) === 'function' && (player === null || player === void 0 ? void 0 : player.media.webkitExitFullScreen());
135
  // vimeo
136
  typeof ((_d = player === null || player === void 0 ? void 0 : player.embed) === null || _d === void 0 ? void 0 : _d.exitFullscreen) === 'function' && ((_e = player === null || player === void 0 ? void 0 : player.embed) === null || _e === void 0 ? void 0 : _e.exitFullscreen());
137
  // youtube hack
138
- const lastTime = player.currentTime;
139
- player.currentTime = player.duration;
140
- player.once('playing', () => {
141
- player.currentTime = lastTime;
142
- });
 
 
143
  }
144
  }
129
  var _a, _b, _c, _d, _e;
130
  if (!isMobile())
131
  return;
132
+ if (!((_b = (_a = player === null || player === void 0 ? void 0 : player.config) === null || _a === void 0 ? void 0 : _a.blockAttributes) === null || _b === void 0 ? void 0 : _b.playsInline)) {
133
  // html5
134
  typeof ((_c = player === null || player === void 0 ? void 0 : player.media) === null || _c === void 0 ? void 0 : _c.webkitExitFullScreen) === 'function' && (player === null || player === void 0 ? void 0 : player.media.webkitExitFullScreen());
135
  // vimeo
136
  typeof ((_d = player === null || player === void 0 ? void 0 : player.embed) === null || _d === void 0 ? void 0 : _d.exitFullscreen) === 'function' && ((_e = player === null || player === void 0 ? void 0 : player.embed) === null || _e === void 0 ? void 0 : _e.exitFullscreen());
137
  // youtube hack
138
+ if (player.provider === 'youtube') {
139
+ const lastTime = player.currentTime;
140
+ player.currentTime = player.duration;
141
+ player.once('playing', () => {
142
+ player.currentTime = lastTime;
143
+ });
144
+ }
145
  }
146
  }
dist/components/esm/{hls-d7093069.js → hls-b71b7096.js} RENAMED
@@ -1,5 +1,5 @@
1
  import { m as _asyncToGenerator, a as _objectSpread2 } from './index-a99dfdd1.js';
2
- import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-9c0fadb6.js';
3
 
4
  var loadHLS = function loadHLS(_ref) {
5
  var config = _ref.config,
1
  import { m as _asyncToGenerator, a as _objectSpread2 } from './index-a99dfdd1.js';
2
+ import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-59833aee.js';
3
 
4
  var loadHLS = function loadHLS(_ref) {
5
  var config = _ref.config,
dist/components/esm/{learndash-85183a3f.js → learndash-cfa14da6.js} RENAMED
@@ -1,4 +1,4 @@
1
- import { r as resumeProgress } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-9c0fadb6.js';
2
  import './index-a99dfdd1.js';
3
 
4
  const learndash = (function (player) {
1
+ import { r as resumeProgress } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-59833aee.js';
2
  import './index-a99dfdd1.js';
3
 
4
  const learndash = (function (player) {
dist/components/esm/presto-action-bar_25.entry.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a as presto_action_bar, b as presto_action_bar_controller, c as presto_action_bar_ui, d as presto_audio, e as presto_bunny, f as presto_business_skin, g as presto_cta_overlay, h as presto_cta_overlay_controller, C as presto_cta_overlay_ui, i as presto_dynamic_overlay_ui, j as presto_dynamic_overlays, k as presto_email_overlay, l as presto_email_overlay_controller, E as presto_email_overlay_ui, m as presto_modern_skin, n as presto_muted_overlay, o as presto_player, p as presto_player_button, q as presto_player_spinner, s as presto_stacked_skin, t as presto_timestamp, u as presto_video, v as presto_vimeo, w as presto_youtube, x as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-9c0fadb6.js';
2
  import './index-a99dfdd1.js';
1
+ export { a as presto_action_bar, b as presto_action_bar_controller, c as presto_action_bar_ui, d as presto_audio, e as presto_bunny, f as presto_business_skin, g as presto_cta_overlay, h as presto_cta_overlay_controller, C as presto_cta_overlay_ui, i as presto_dynamic_overlay_ui, j as presto_dynamic_overlays, k as presto_email_overlay, l as presto_email_overlay_controller, E as presto_email_overlay_ui, m as presto_modern_skin, n as presto_muted_overlay, o as presto_player, p as presto_player_button, q as presto_player_spinner, s as presto_stacked_skin, t as presto_timestamp, u as presto_video, v as presto_vimeo, w as presto_youtube, x as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-controller.presto-action-bar-ui.presto-audio.presto-bunny.presto-business-skin.presto-cta-overlay.presto-cta-overlay-controller.presto-cta-overlay-ui.presto-dynamic-overlay-ui.presto-dynamic-overlays.presto-email-overlay.presto-email-overlay-controller.presto-email-overlay-ui.presto-modern-skin.presto-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-stacked-skin.presto-timestamp.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-59833aee.js';
2
  import './index-a99dfdd1.js';
dist/components/web-components/p-467331e3.js ADDED
@@ -0,0 +1 @@
 
1
+ import{m as n,a as r}from"./p-db13d552.js";import{P as e}from"./p-9a686126.js";export default function(t){var a=t.config,o=t.selector,i=t.src,u=t.preload;return new Promise(function(){var t=n(regeneratorRuntime.mark((function n(t){var c,s,p;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(window.Hls){n.next=6;break}case 1:if(window.hasOwnProperty("Hls")){n.next=6;break}return n.next=4,new Promise((function(n){return setTimeout(n,50)}));case 4:n.next=1;break;case 6:if(!window.Hls.isSupported()&&!o.canPlayType("application/vnd.apple.mpegurl")){n.next=14;break}return s=!["metadata","none"].includes(u),null!==(c=wp)&&void 0!==c&&c.blocks&&(s=!0),(p=new window.Hls({autoStartLoad:s})).loadSource(i),p.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,r){o.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=p.autoLevelEnabled?"AUTO (".concat(p.levels[r.level].height,"p)"):"AUTO"})),p.on(window.Hls.Events.MANIFEST_PARSED,(function(){var n=p.levels.map((function(n){return n.height}));n.unshift(0);var i=n.findIndex((function(n){var r;return n===parseInt(null===(r=prestoPlayer)||void 0===r?void 0:r.hls_start_level)}));p.startLevel=i?i-1:2,a.quality={default:0,options:n,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(r,e){r.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=e)}))}},p.attachMedia(o),window.prestoHLS=p;var u=new e(o,r({},a));return u.hls=p,u.on("waiting",(function n(){p.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return p.subtitleTrack=u.currentTrack}),50)})),t(u)})),n.abrupt("return");case 14:return n.abrupt("return",t(new e(o,r({},a))));case 15:case"end":return n.stop()}}),n)})));return function(n,r){return t.apply(this,arguments)}}())}
dist/components/web-components/p-494e73f1.js DELETED
@@ -1 +0,0 @@
1
- import{m as n,a as e}from"./p-db13d552.js";import{P as r}from"./p-c912f16e.js";export default function(t){var o=t.config,a=t.selector,i=t.src,u=t.preload;return new Promise(function(){var t=n(regeneratorRuntime.mark((function n(t){var c,s,f;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(window.Hls){n.next=6;break}case 1:if(window.hasOwnProperty("Hls")){n.next=6;break}return n.next=4,new Promise((function(n){return setTimeout(n,50)}));case 4:n.next=1;break;case 6:if(!window.Hls.isSupported()&&!a.canPlayType("application/vnd.apple.mpegurl")){n.next=14;break}return s=!["metadata","none"].includes(u),null!==(c=wp)&&void 0!==c&&c.blocks&&(s=!0),(f=new window.Hls({autoStartLoad:s})).loadSource(i),f.on(window.Hls.Events.LEVEL_SWITCHED,(function(n,e){a.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=f.autoLevelEnabled?"AUTO (".concat(f.levels[e.level].height,"p)"):"AUTO"})),f.on(window.Hls.Events.MANIFEST_PARSED,(function(){var n=f.levels.map((function(n){return n.height}));n.unshift(0);var i=n.findIndex((function(n){var e;return n===parseInt(null===(e=prestoPlayer)||void 0===e?void 0:e.hls_start_level)}));f.startLevel=i?i-1:2,o.quality={default:0,options:n,forced:!0,onChange:function(n){0===n?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(e,r){e.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=r)}))}},f.attachMedia(a),window.prestoHLS=f;var u=new r(a,e({},o));return u.hls=f,u.on("waiting",(function n(){f.startLoad(-1),u.off("waiting",n)})),u.on("languagechange",(function(){setTimeout((function(){return f.subtitleTrack=u.currentTrack}),50)})),t(u)})),n.abrupt("return");case 14:return n.abrupt("return",t(new r(a,e({},o))));case 15:case"end":return n.stop()}}),n)})));return function(n,e){return t.apply(this,arguments)}}())}
 
dist/components/web-components/{p-881501dc.js → p-5e7afa71.js} RENAMED
@@ -1 +1 @@
1
- import{r as e}from"./p-c912f16e.js";import"./p-db13d552.js";export default function(a){var d,o,s,i,r,_,l,t,n,p,v;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(d=learndash_video_data)||void 0===d?void 0:d.videos_found_provider)){if(e(a),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(r=prestoPlayer)||void 0===r||null===(_=r.learndash)||void 0===_?void 0:_.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(l=prestoPlayer)||void 0===l||null===(t=l.learndash)||void 0===t?void 0:t.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(p=n.learndash)||void 0===p?void 0:p.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(v=learndash_video_data)||void 0===v?void 0:v.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var d="presto-player__wrapper-player-"+a,o=e.getAttribute("id");void 0!==o&&""!=o||e.setAttribute("id",o=d),ld_video_players[d]={},ld_video_players[d].player_key=d,ld_video_players[d].player_type=learndash_video_data.videos_found_provider,ld_video_players[d].player_id=o,ld_video_players[d].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[d].player_wrapper?ld_video_players[d].player_cookie_key=ld_video_players[d].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[d].player_cookie_key="",ld_video_players[d].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[d]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[d],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}
1
+ import{r as e}from"./p-9a686126.js";import"./p-db13d552.js";export default function(a){var d,o,s,i,r,_,l,t,n,p,v;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(d=learndash_video_data)||void 0===d?void 0:d.videos_found_provider)){if(e(a),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(r=prestoPlayer)||void 0===r||null===(_=r.learndash)||void 0===_?void 0:_.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(l=prestoPlayer)||void 0===l||null===(t=l.learndash)||void 0===t?void 0:t.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(p=n.learndash)||void 0===p?void 0:p.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(v=learndash_video_data)||void 0===v?void 0:v.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var d="presto-player__wrapper-player-"+a,o=e.getAttribute("id");void 0!==o&&""!=o||e.setAttribute("id",o=d),ld_video_players[d]={},ld_video_players[d].player_key=d,ld_video_players[d].player_type=learndash_video_data.videos_found_provider,ld_video_players[d].player_id=o,ld_video_players[d].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[d].player_wrapper?ld_video_players[d].player_cookie_key=ld_video_players[d].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[d].player_cookie_key="",ld_video_players[d].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[d]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[d],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[d],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}
dist/components/web-components/{p-c912f16e.js → p-9a686126.js} RENAMED
@@ -1 +1 @@
1
- import{r as t,h as r,g as e,c as i,H as o,_ as n,a,d as s,e as l,f as p,i as u,j as d,k as c,l as h,m as y,n as v}from"./p-db13d552.js";let f=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){return r("presto-action-bar-controller",{ended:this.ended,config:this.config,currentTime:this.currentTime,duration:this.duration,direction:this.direction,youtube:this.youtube})}get el(){return e(this)}};function _({current:t,duration:r,showAfter:e=null}){if(0===e)return!0;if(null===e||!r)return!1;if(t===e)return!0;let i=t/r*100;return 99.9<i&&(i=100),i>=e}function g(t){if(!t)return;let r,e,i,o;if(t.match(/^rgb/)){const o=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);r=o[1],e=o[2],i=o[3]}else{const o=+("0x"+t.slice(1).replace(t.length<5&&/./g,"$&$&"));r=o>>16,e=o>>8&255,i=255&o}return o=Math.sqrt(r*r*.299+e*e*.587+i*i*.114),o>127.5?"light":"dark"}function m(t){let r,e=t.split(":");return e.length>1&&(r=60*parseInt(e[0])),parseInt(e[1])+parseInt(r)}function b(){var t=navigator.userAgent||navigator.vendor;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}f.style=":host{display:block}";let w=class{constructor(r){t(this,r),this.actionBarStateChange=i(this,"actionBarStateChange",7),this.show=!1,this.youtubeRenderKey=1,this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleDuration(){this.handleTime()}handleEnded(t){var r;if(t){if(100!==(null===(r=null==this?void 0:this.config)||void 0===r?void 0:r.percentage_start))return;this.show=!0}}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleTime(){this.checkTime()}checkTime(){var t,r;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||_({current:this.currentTime,duration:this.duration,showAfter:null===(r=this.config)||void 0===r?void 0:r.percentage_start})}handleButtonCountChange(t,r){(null==t?void 0:t.button_count)!==(null==r?void 0:r.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}youtubeButton(){var t,e,i,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(e=this.youtube)||void 0===e?void 0:e.channelId))return r("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(i=this.youtube)||void 0===i?void 0:i.channelId,showCount:null===(o=this.config)||void 0===o?void 0:o.button_count})}customButton(){var t,e,i,o,n,a,s,l,p,u,d;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return r("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(e=this.config)||void 0===e?void 0:e.button_link)||void 0===i?void 0:i.url,target:(null===(n=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===n?void 0:n.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(a=this.config)||void 0===a?void 0:a.button_radius}px`},(null===(s=this.config)||void 0===s?void 0:s.button_color)?{"--presto-player-button-color":`${null===(l=this.config)||void 0===l?void 0:l.button_color}`}:{}),(null===(p=this.config)||void 0===p?void 0:p.button_text_color)?{"--presto-player-button-text":`${null===(u=this.config)||void 0===u?void 0:u.button_text_color}`}:{})},null===(d=this.config)||void 0===d?void 0:d.button_text)}handleCtaStateChange(t){this.actionBarStateChange.emit(t)}render(){var t,e;return r("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(t=this.config)||void 0===t?void 0:t.background_color)||"#1d1d1d"}},null===(e=this.config)||void 0===e?void 0:e.text,r("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return e(this)}static get watchers(){return{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"],show:["handleCtaStateChange"]}}};w.style=":host{display:block}";let k=class{constructor(r){t(this,r)}render(){return r("div",{class:{bar:!0,"bar--open":this.open}},r("span",{part:"content",class:"bar__content"},r("slot",null)),r("span",{part:"button",class:"bar__button"},r("slot",{name:"button"})))}};k.style=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0);border-radius:0px 0px var(--presto-player-border-radius) var(--presto-player-border-radius)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}";let x=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7)}renderPosterImage(){if(this.poster)return r("div",{class:"presto-audio__poster"},r("img",{src:this.poster}))}hasPosterArea(){var t;return!!this.poster||!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"])}renderMobilePoster(){var t;return r("div",{class:"presto-audio__poster-wrapper-mobile"},!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&this.renderLargePlay("presto-audio__large-play-button is-relative"),r("div",{class:"presto-audio__mobile-title"},this.mediaTitle))}renderLargePlay(t="presto-audio__large-play-button"){return r("div",{class:t,onClick:()=>{this.player.playing?this.pauseVideo.emit():this.playVideo.emit()}},r("svg",{class:"presto-audio__icon-play",width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M15.5588 9.00005L0.117662 17.915L0.117662 0.0850823L15.5588 9.00005Z"})),r("svg",{class:"presto-audio__icon-pause",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("rect",{width:"5",height:"17"}),r("rect",{x:"12",width:"5",height:"17"})))}componentDidLoad(){"ResizeObserver"in window&&new ResizeObserver((t=>{t.forEach((t=>this.width=t.contentRect.width))})).observe(this.el)}render(){var t,e,i,o,n;return r("div",{ref:t=>this.el=t,class:{"presto-audio__wrapper":!0,"has-poster":!!this.poster,"has-play-large":!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"]),"is-playing":null===(e=this.player)||void 0===e?void 0:e.playing,"has-light-background":"light"===g(null===(i=this.preset)||void 0===i?void 0:i.background_color),"has-dark-background":"dark"===g(null===(o=this.preset)||void 0===o?void 0:o.background_color),"breakpoint-small":this.width<520,"skin-stacked":this.width<520,"breakpoint-large":this.width>=520}},this.hasPosterArea()&&r("div",{class:"presto-audio__poster-wrapper"},!!(null===(n=this.preset)||void 0===n?void 0:n["play-large"])&&r("div",{class:"presto-audio__large-play-wrapper"},this.renderLargePlay()),this.renderPosterImage()),this.hasPosterArea()&&this.renderMobilePoster(),r("div",{class:"presto-audio__controls-wrapper"},r("div",{class:"presto-audio__title"},this.mediaTitle),r("audio",{part:"audio-player",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster},r("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>r("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))))}};x.style=":host{display:block}.presto-audio__wrapper{border-radius:var(--presto-player-border-radius, 0px)}.presto-audio__wrapper .plyr--audio .plyr__controls{padding:0}.presto-audio__wrapper .plyr--audio .plyr__control.plyr__tab-focus,.presto-audio__wrapper .plyr--audio .plyr__control:hover,.presto-audio__wrapper .plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.presto-audio__wrapper{display:flex;background:var(--plyr-audio-controls-background, #fff)}.presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2);flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}.has-poster .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 3)}.has-play-large:not(.has-poster) .presto-audio__controls-wrapper{padding-left:0}.presto-audio__title,.presto-audio__mobile-title{font-size:18px;font-weight:500;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--plyr-audio-control-color)}.presto-audio__title{margin:calc(var(--plyr-control-spacing, 10px) / 2);margin-top:0}.presto-audio__poster-wrapper{position:relative;width:100px;min-height:100px;flex:0 0 100px}.presto-audio__poster-wrapper img{border-radius:var(--presto-player-border-radius, 0px) 0 0 var(--presto-player-border-radius, 0px);width:100%;height:100%;object-fit:cover;aspect-ratio:1;display:block}.has-poster .presto-audio__poster-wrapper{width:140px;height:140px;flex:0 0 140px}.presto-audio__poster{width:100%;height:100%}.presto-audio__large-play-button{user-select:none;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:center;top:50%;left:50%;transform:translate(-50%, -50%);width:50px;height:50px;color:white;border-radius:100%;background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__large-play-button.is-relative{position:relative;top:auto;left:auto;transform:none}.has-light-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.has-dark-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__icon-play,.presto-audio__icon-pause{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);fill:currentColor;display:block;transition:opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;margin:0 auto;text-align:center}.presto-audio__icon-pause{opacity:0;visibility:hidden}.presto-audio__wrapper.is-playing .presto-audio__icon-pause{opacity:1;visibility:visible}.presto-audio__icon-play{margin-left:2px;opacity:1;visibility:visible}.presto-audio__wrapper.is-playing .presto-audio__icon-play{opacity:0;visibility:hidden}.presto-audio__poster-wrapper-mobile{display:none;min-width:0}.presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 50px}.presto-audio__wrapper.breakpoint-small{flex-direction:column}.presto-audio__wrapper.breakpoint-small .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__title{text-align:center;margin:calc(var(--plyr-control-spacing, 10px) * 1.5)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__poster-wrapper{margin:30px auto auto auto;overflow:hidden;border-radius:var(--presto-player-border-radius, 0px);width:225px;height:225px;flex:0 0 225px}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper,.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__title{display:none}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.skin-stacked.presto-sticky-audio .presto-audio__wrapper{height:115px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:115px;height:115px;flex:0 0 115px}.presto-sticky-audio .presto-audio__wrapper{height:100px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:100px;height:100px;flex:0 0 100px}.action-bar-active .presto-audio__wrapper{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}@media screen and (max-width: 520px){.presto-sticky-audio .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.presto-sticky-audio .presto-audio__poster-wrapper,.presto-sticky-audio .presto-audio__title{display:none}.presto-sticky-audio .presto-audio__wrapper{height:140px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:0px}.presto-sticky-audio .presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 40px;height:40px}}";let z=class{constructor(r){t(this,r)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return r("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}},j=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};j.style='.skin-business.presto-player__wrapper.rewind-inactive .plyr__controls .plyr__controls__item:nth-child(2)::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 16px) * -4))}.skin-business.presto-player__wrapper .presto-player-progress__marker{border-radius:0;width:15px;height:15px;border-width:1px}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back){background-color:transparent;color:var(--plyr-color-main)}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play]{background-color:var(--plyr-color-main);color:white}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]{border-radius:4px;background:#000000;opacity:75%}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]:hover{background-color:var(--plyr-color-main);color:white;opacity:100%}.skin-business.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward]{border-radius:0px}.skin-business.presto-player__wrapper .plyr__progress{margin:0px 20px 0 5px}.skin-business.presto-player__wrapper .plyr__progress input[type=range]{height:32px;border-radius:0px;cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):first-child::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):last-child::before{border-radius:0px var(--plyr-control-radius, 3px) var(--plyr-control-radius, 3px) 0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]{order:-1;margin-right:5px;padding:11px 20px 11px 20px;top:-4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]::before{border-radius:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind]::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not([data-plyr=play]){margin:0}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen]{padding:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{height:24px;width:24px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker){position:relative}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker).plyr__time{height:32px;padding-top:4.5px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker)::before{content:"";background:#000000;position:absolute;top:0px;left:0;right:0;bottom:0px;opacity:0.76;z-index:-1}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{box-shadow:none;color:var(--plyr-color-main);height:9px;outline:1px solid #878787a6;outline-offset:2px;border-radius:0px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{visibility:hidden}.skin-business.presto-player__wrapper .plyr__progress__buffer::-webkit-progress-value{position:relative;border-radius:0px;height:9px;top:-2px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background-color:transparent}@media screen and (max-width: 480px){.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__time{padding:1.5%}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=play]{padding:8px;top:0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px}}';let T=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return r("presto-cta-overlay-controller",{ended:this.ended,currentTime:this.currentTime,duration:this.duration,direction:this.direction,cta:null===(t=this.preset)||void 0===t?void 0:t.cta,i18n:this.i18n,provider:this.provider})}};T.style=":host{display:block}";let S=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.ctaStateChange=i(this,"ctaStateChange",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var r;if(t){if(100!==(null===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.percentage))return;this.show=!0}}handleDuration(){var t;this.enabled=!this.skipped&&(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleEnabled(){this.show&&(this.skipped||this.pauseVideo.emit(!0))}handleTime(){var t;this.enabled&&(this.skipped||100!==(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}checkTime(){var t;this.show=_({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)||0})}skip(){this.skipped=!0,this.show=!1,this.playVideo.emit()}rewatch(){this.ended=!1,this.show=!1,this.restartVideo.emit()}handleCtaStateChange(t){this.ctaStateChange.emit(t)}render(){var t,e,i,o,n,a,s,l,p,u,d,c,h,y;if(this.show)return r("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.button_radius}px`},(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(i=null==this?void 0:this.cta)||void 0===i?void 0:i.background_opacity)/100}:{}),(null===(o=null==this?void 0:this.cta)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":`${null===(n=null==this?void 0:this.cta)||void 0===n?void 0:n.button_color}`}:{}),(null===(a=null==this?void 0:this.cta)||void 0===a?void 0:a.button_text_color)?{"--presto-player-button-text":`${null===(s=null==this?void 0:this.cta)||void 0===s?void 0:s.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",i18n:this.i18n,headline:null===(l=null==this?void 0:this.cta)||void 0===l?void 0:l.headline,"bottom-text":null===(p=null==this?void 0:this.cta)||void 0===p?void 0:p.bottom_text,"show-button":null===(u=null==this?void 0:this.cta)||void 0===u?void 0:u.show_button,buttonLink:null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.button_link,allowSkip:!this.ended&&(null===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(y=null==this?void 0:this.cta)||void 0===y?void 0:y.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch(),provider:this.provider})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"],show:["handleCtaStateChange"]}}};S.style=":host{display:block}";const C=function(t,r,e){var i=function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},e),o=function(t){var e=r||1,o=function(){var r;t.style.fontSize=Math.max(Math.min(((null==i||null===(r=i.container)||void 0===r?void 0:r.clientWidth)||0)/(10*e),parseFloat(i.maxFontSize)),parseFloat(i.minFontSize))+"px"};if(o(),"ResizeObserver"in window==0)var n=import("./p-97e2763b.js").then((function(){window.ResizeObserver=n.ResizeObserver,new ResizeObserver(o).observe(i.container)}));else new ResizeObserver(o).observe(i.container)};if(t.length)for(var n=0;n<t.length;n++)o(t[n]);else o(t);return t};let P=class{constructor(r){t(this,r),this.skip=i(this,"skip",7),this.rewatch=i(this,"rewatch",7)}componentDidLoad(){this.isAudioProvider="audio"===(this.type||this.provider),C(this.textInput,3,{maxFontSize:!0===this.isAudioProvider?15:20,minFontSize:8})}handleCTAClick(t){var r;(null===(r=this.buttonLink)||void 0===r?void 0:r.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,r,e;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(r=this.buttonLink)||void 0===r?void 0:r.url,"_blank"):window.location.href=null===(e=this.buttonLink)||void 0===e?void 0:e.url}render(){var t,e,i,o,n;return r("div",{class:"wrapper",ref:t=>this.textInput=t},r("div",{onClick:t=>this.handleCTAClick(t),class:`overlay ${"rtl"===this.direction?"rtl":""} ${(null===(t=this.buttonLink)||void 0===t?void 0:t.url)?"has-link":""}`},r("div",{class:this.isAudioProvider?"content is-centered":"content"},r("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&r("p",{class:this.isAudioProvider&&"is-small",part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&r("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(e=null==this?void 0:this.buttonLink)||void 0===e?void 0:e.url,target:(null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&r("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},r("polyline",{points:"9 14 4 9 9 4"}),r("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.rewatch),!!this.allowSkip&&r("div",{class:"skip",onClick:t=>{t.preventDefault(),this.skip.emit()}},null===(n=null==this?void 0:this.i18n)||void 0===n?void 0:n.skip," →"))}};P.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}p.is-small{font-size:0.85em;margin:1.5em 0px 0px;line-height:0.1em;opacity:0.75}.is-centered{text-align:center}';let O=class{constructor(r){t(this,r),this.position="top-right"}closestElement(t,r){return r&&r!=document&&r!=window&&r.closest(t)||r&&this.closestElement(t,r.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);C(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return r(this.href?"a":"span",{class:{"overlay-text":!0,"overlay--top-left":"top-left"===this.position,"overlay--top-right":"top-right"===this.position},href:this.href,target:this.target,part:"overlay-text",ref:t=>this.text=t},r("slot",null))}get el(){return e(this)}};O.style=":host{display:block}.overlay-text{text-decoration:none;display:inline-block;user-select:none;line-height:1;opacity:var(--presto-dynamic-overlay-opacity, 1);font-size:var(--presto-dynamic-overlay-font-size, 18px);padding:var(--presto-dynamic-overlay-padding, 0.65em 0.85em);font-weight:var(--presto-dynamic-overlay-font-weight, 500);border-radius:var(--presto-dynamic-overlay-radius, 0.25em);background:var(--presto-dynamic-overlay-background, rgba(0, 0, 0, 0.8));color:var(--presto-dynamic-overlay-color, #fff);opacity:var(--presto-dynamic-overlay-opacity, 1);word-break:break-word}a.overlay-text{cursor:pointer}";let I=class{constructor(r){t(this,r),this.reloadComponent=i(this,"reloadComponent",7),this.watermarkRef={left:null,right:null},this.destroy=!1,this.refs={}}componentDidLoad(){this.player&&this.player.on("timeupdate",(t=>{this.currentTime=t.detail.plyr.currentTime,this.checkValidity()}))}checkValidity(){var t,r,e,i,o,n,a,s,l,p;this.player.playing&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(e=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===e?void 0:e.enabled))&&((null===(i=this.container)||void 0===i?void 0:i.offsetParent)&&(null===(o=this.topLeft)||void 0===o?void 0:o.offsetParent)&&(null===(n=this.topRight)||void 0===n?void 0:n.offsetParent)||this.reloadComponent.emit(),Object.keys(this.refs||{}).forEach((t=>{const{overlay:r,component:e}=this.refs[t];this.checkComponent(e,r.text,(()=>this.reloadComponent.emit()))})),this.shouldShowWatermark("top-left")&&this.watermarkRef.left&&this.checkComponent(this.watermarkRef.left,null===(s=null===(a=this.preset)||void 0===a?void 0:a.watermark)||void 0===s?void 0:s.text,(()=>this.reloadComponent.emit())),this.shouldShowWatermark("top-right")&&this.watermarkRef.right&&this.checkComponent(this.watermarkRef.right,null===(p=null===(l=this.preset)||void 0===l?void 0:l.watermark)||void 0===p?void 0:p.text,(()=>this.reloadComponent.emit())))}checkComponent(t,r,e){if(!(null==t?void 0:t.offsetParent))return e();if(!t.shadowRoot.querySelector("slot"))return e();if(this.player&&this.player.playing){const i=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(i){if(i.parentElement.innerHTML!=r)return e();const t=getComputedStyle(i.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return e();const o=function(t){var r=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return r?[r[1],r[2],r[3],"1"]:(r=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[r[1],r[2],r[3],r[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return e()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<m(null==t?void 0:t.startTime)||this.currentTime>m(null==t?void 0:t.endTime))}renderOverlay(t){var e,i;return r("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:r=>this.refs[t.id]={overlay:t,component:r},key:t.id,position:t.position,href:null===(e=null==t?void 0:t.link)||void 0===e?void 0:e.url,target:(null===(i=null==t?void 0:t.link)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",innerHTML:this.shouldShowOverlay(t)?t.text:"",style:{"--presto-dynamic-overlay-color":(null==t?void 0:t.color)||"#fff","--presto-dynamic-overlay-background":(null==t?void 0:t.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null==t?void 0:t.opacity)?(t.opacity/100).toString():"1"}})}shouldShowWatermark(t){var r,e,i;if(!(null===(e=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===e?void 0:e.enabled))return!1;const o=null===(i=this.preset)||void 0===i?void 0:i.watermark;return"randomize"===o.position?Math.floor((this.player.currentTime||0)/10)%2==0?"top-left"===t:"top-right"===t:o.position===t||!o.position&&"top-right"===t}render(){var t,e,i,o,n,a,s,l,p,u,d;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled)))return r("div",{class:"overlays",ref:t=>this.container=t},r("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&r("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.left=t,style:{"--presto-dynamic-overlay-color":(null===(o=this.preset.watermark)||void 0===o?void 0:o.color)||"#fff","--presto-dynamic-overlay-background":(null===(n=this.preset.watermark)||void 0===n?void 0:n.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(a=this.preset.watermark)||void 0===a?void 0:a.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-left",innerHTML:this.preset.watermark.text}),!!(null===(s=null==this?void 0:this.overlays)||void 0===s?void 0:s.length)&&this.overlays.map((t=>"top-left"!==t.position?"":this.renderOverlay(t)))),r("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&r("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.right=t,style:{"--presto-dynamic-overlay-color":(null===(l=this.preset.watermark)||void 0===l?void 0:l.color)||"#fff","--presto-dynamic-overlay-background":(null===(p=this.preset.watermark)||void 0===p?void 0:p.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(u=this.preset.watermark)||void 0===u?void 0:u.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-right",innerHTML:this.preset.watermark.text}),!!(null===(d=null==this?void 0:this.overlays)||void 0===d?void 0:d.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return e(this)}};I.style=".top-left,.top-right{position:absolute;display:block;padding:20px;max-width:45%;z-index:20;display:flex;flex-direction:column;flex-wrap:wrap}.top-left{top:0;left:0}.top-right{top:0;right:0;align-items:flex-end}presto-dynamic-overlay-ui{overflow:hidden;height:0;opacity:0;transition:height 0ms 400ms, opacity 400ms 0ms}presto-dynamic-overlay-ui.visible{margin-bottom:10px;height:auto;opacity:1;transition:height 0ms 0ms, opacity 500ms 0ms}";let A=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t,e;return r("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,presetId:null===(t=this.preset)||void 0===t?void 0:t.id,emailCollection:null===(e=this.preset)||void 0===e?void 0:e.email_collection,i18n:this.i18n,provider:this.provider})}};A.style=":host{display:block}";let M=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.emailStateChange=i(this,"emailStateChange",7),this.percentagePassed=0}setStorage(t){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:t}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}handleDuration(){var t;this.enabled=!this.getStorage()&&(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.enabled),this.handleTimeCheck()}handleTimeCheck(){this.enabled&&(this.getStorage()||this.checkTime())}handleShowChange(){this.show&&this.pauseVideo.emit(!0)}checkTime(){var t;this.show=_({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var t;return fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(t){var r;this.loading=!0,this.error="";const e=await this.getNonce(),{data:i}=await e.json();try{let e=await fetch(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:i,preset_id:this.presetId,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});const{success:o,data:n}=await e.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const r=null==t?void 0:t[0];r&&"string"==typeof r&&(this.error=r)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}handleEmailStateChange(t){this.emailStateChange.emit(t)}render(){var t,e,i,o,n,a,s,l;if(this.show)return r("presto-email-overlay-ui",{style:Object.assign(Object.assign({},(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.button_color)?{"--presto-player-button-color":`${null===(e=null==this?void 0:this.emailCollection)||void 0===e?void 0:e.button_color}`}:{}),(null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.button_text_color)?{"--presto-player-button-text":`${null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text_color}`}:{}),direction:this.direction,class:"email-overlay",headline:null===(n=null==this?void 0:this.emailCollection)||void 0===n?void 0:n.headline,bottomText:null===(a=null==this?void 0:this.emailCollection)||void 0===a?void 0:a.bottom_text,allowSkip:null===(s=null==this?void 0:this.emailCollection)||void 0===s?void 0:s.allow_skip,buttonText:null===(l=null==this?void 0:this.emailCollection)||void 0===l?void 0:l.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n,provider:this.provider})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"],show:["handleEmailStateChange"]}}};M.style=":host{display:block}";let E=class{constructor(r){t(this,r),this.submitForm=i(this,"submitForm",7),this.skip=i(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){this.isAudioProvider="audio"===(this.type||this.provider),C(this.textInput,3,{maxFontSize:this.isAudioProvider?15:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,e,i,o;return r("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},r("div",{class:"content"},r("h1",{class:this.isAudioProvider&&"is-small"},this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?r("presto-player-spinner",null):r("form",{onSubmit:t=>this.handleSubmit(t)},r("input",{type:"email",placeholder:null===(e=null==this?void 0:this.i18n)||void 0===e?void 0:e.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),r("button",{type:"submit"},this.buttonText||(null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.play))),this.errorMessage&&r("p",{class:"error"},this.errorMessage),this.bottomText&&r("p",{innerHTML:this.bottomText,class:this.isAudioProvider&&"is-small"}),!!this.allowSkip&&r("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};E.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.overlay.rtl form{flex-direction:row-reverse}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}h1.is-small{margin-bottom:1em;font-size:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}p.is-small{font-size:0.9em;margin-top:1em}';let F=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};F.style='.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid{border-radius:2px;padding:3% 5%;max-width:135px;max-height:90px;box-sizing:content-box;position:absolute !important;top:50% !important;opacity:100%}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid svg{height:31px;width:37px}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:hover,.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{opacity:0.8;background:var(--plyr-color-main)}.skin-modern.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 9px) * -4))}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls{padding:0px}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls::before{content:"";background:var(--plyr-color-main);position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.75}.skin-modern.presto-player__wrapper .plyr__controls__item{z-index:1}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back){height:36px;border-radius:0px}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back):focus{background-color:transparent;color:white}.skin-modern.presto-player__wrapper .plyr__controls__item.presto-player-progress__marker{z-index:2}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__menu{height:36px}.skin-modern.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px;color:white}.skin-modern.presto-player__wrapper .presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px}.skin-modern.presto-player__wrapper .plyr--video .plyr__progress__buffer{height:2px;top:11px}.skin-modern.presto-player__wrapper .plyr__progress input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{top:1px;height:var(--plyr-range-thumb-height, 8px);width:var(--plyr-range-thumb-height, 8px);box-shadow:0px 0px 5px white}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.5)}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item{margin:0px}.skin-modern.presto-player__wrapper .plyr__volume{width:auto}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{width:55px}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px;height:22px}@media screen and (max-width: 480px){.skin-modern.presto-player__wrapper .plyr__control--overlaid svg{height:18px;width:16px}}';let L=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7)}render(){var t,e,i,o,n,a,s,l,p;return r("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&r("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},r("svg",{id:"plyr-play",viewBox:"0 0 18 18"},r("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),r("span",{class:"plyr__sr-only"},"Play")),(null===(e=this.mutedOverlay)||void 0===e?void 0:e.enabled)&&(null===(i=this.mutedOverlay)||void 0===i?void 0:i.src)?r("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(o=this.mutedOverlay)||void 0===o?void 0:o.width)||50}%`,left:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.x)||.5)+"%",top:100*((null===(l=null===(s=this.mutedOverlay)||void 0===s?void 0:s.focalPoint)||void 0===l?void 0:l.y)||.5)+"%"}},r("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};L.style=":host{display:block}";var R=["premium","referrerPolicy"];function N(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function B(t,r){for(var e=0;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function $(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,i)}return e}function q(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?$(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var V={addCSS:!0,thumbWidth:15,watch:!0};function H(t,r){return function(){return Array.from(document.querySelectorAll(r)).includes(this)}.call(t,r)}var U=function(t){return null!=t?t.constructor:null},Q=function(t,r){return!!(t&&r&&t instanceof r)},Y=function(t){return U(t)===String},W=function(t){return Array.isArray(t)},J=function(t){return Q(t,NodeList)},G=Y,K=W,X=J,Z=function(t){return Q(t,Element)},tt=function(t){return Q(t,Event)},rt=function(t){return function(t){return null==t}(t)||(Y(t)||W(t)||J(t))&&!t.length||function(t){return U(t)===Object}(t)&&!Object.keys(t).length};var et,it,ot,nt=function(){function t(r,e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,t),Z(r)?this.element=r:G(r)&&(this.element=document.querySelector(r)),Z(this.element)&&rt(this.element.rangeTouch)&&(this.config=q({},V,{},e),this.init())}return function(t,r,e){r&&B(t.prototype,r),e&&B(t,e)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var r=this,e=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){r.element[e](t,(function(t){return r.set(t)}),!1)}))}},{key:"get",value:function(r){if(!t.enabled||!tt(r))return null;var e,i=r.target,o=r.changedTouches[0],n=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,s=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),p=100/l.width*(this.config.thumbWidth/2)/100;return 0>(e=100/l.width*(o.clientX-l.left))?e=0:100<e&&(e=100),50>e?e-=(100-2*e)*p:50<e&&(e+=2*(e-50)*p),n+function(t,r){if(1>r){var e=function(t){var r="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0}(r);return parseFloat(t.toFixed(e))}return Math.round(t/r)*r}(e/100*(a-n),s)}},{key:"set",value:function(r){t.enabled&&tt(r)&&!r.target.disabled&&(r.preventDefault(),r.target.value=this.get(r),function(t,r){if(t&&r){var e=new Event(r,{bubbles:!0});t.dispatchEvent(e)}}(r.target,"touchend"===r.type?"change":"input"))}}],[{key:"setup",value:function(r){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(rt(r)||G(r)?i=Array.from(document.querySelectorAll(G(r)?r:'input[type="range"]')):Z(r)?i=[r]:X(r)?i=Array.from(r):K(r)&&(i=r.filter(Z)),rt(i))return null;var o=q({},V,{},e);if(G(r)&&o.watch){var n=new MutationObserver((function(e){Array.from(e).forEach((function(e){Array.from(e.addedNodes).forEach((function(e){Z(e)&&H(e,r)&&new t(e,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(r){return new t(r,e)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),at=function(t){return null!=t?t.constructor:null},st=function(t,r){return Boolean(t&&r&&t instanceof r)},lt=function(t){return null==t},pt=function(t){return at(t)===Object},ut=function(t){return at(t)===String},dt=function(t){return at(t)===Function},ct=function(t){return Array.isArray(t)},ht=function(t){return st(t,NodeList)},yt=function(t){return lt(t)||(ut(t)||ct(t)||ht(t))&&!t.length||pt(t)&&!Object.keys(t).length},vt=lt,ft=pt,_t=function(t){return at(t)===Number&&!Number.isNaN(t)},gt=ut,mt=function(t){return at(t)===Boolean},bt=dt,wt=ct,kt=ht,xt=function(t){return null!==t&&"object"==p(t)&&1===t.nodeType&&"object"==p(t.style)&&"object"==p(t.ownerDocument)},zt=function(t){return st(t,Event)},jt=function(t){return st(t,KeyboardEvent)},Tt=function(t){return st(t,TextTrack)||!lt(t)&&ut(t.kind)},St=function(t){if(st(t,window.URL))return!0;if(!ut(t))return!1;var r=t;t.startsWith("http://")&&t.startsWith("https://")||(r="http://".concat(t));try{return!yt(new URL(r).hostname)}catch(t){return!1}},Ct=yt,Pt=(et=document.createElement("span"),it={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},ot=Object.keys(it).find((function(t){return void 0!==et.style[t]})),!!gt(ot)&&it[ot]);function Ot(t,r){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),r)}var It={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function At(t,r){return r.split(".").reduce((function(t,r){return t&&t[r]}),t)}function Mt(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];if(!e.length)return t;var o=e.shift();return ft(o)?(Object.keys(o).forEach((function(r){ft(o[r])?(Object.keys(t).includes(r)||Object.assign(t,s({},r,{})),Mt(t[r],o[r])):Object.assign(t,s({},r,o[r]))})),Mt.apply(void 0,[t].concat(e))):t}function Et(t,r){Array.from(t.length?t:[t]).reverse().forEach((function(t,e){var i=e>0?r.cloneNode(!0):r,o=t.parentNode,n=t.nextSibling;i.appendChild(t),n?o.insertBefore(i,n):o.appendChild(i)}))}function Ft(t,r){xt(t)&&!Ct(r)&&Object.entries(r).filter((function(t){var r=n(t,2);return!vt(r[1])})).forEach((function(r){var e=n(r,2);return t.setAttribute(e[0],e[1])}))}function Lt(t,r,e){var i=document.createElement(t);return ft(r)&&Ft(i,r),gt(e)&&(i.innerText=e),i}function Rt(t,r,e,i){xt(r)&&r.appendChild(Lt(t,e,i))}function Nt(t){kt(t)||wt(t)?Array.from(t).forEach(Nt):xt(t)&&xt(t.parentNode)&&t.parentNode.removeChild(t)}function Bt(t){if(xt(t))for(var r=t.childNodes.length;r>0;)t.removeChild(t.lastChild),r-=1}function Dt(t,r){return xt(r)&&xt(r.parentNode)&&xt(t)?(r.parentNode.replaceChild(t,r),t):null}function $t(t,r){if(!gt(t)||Ct(t))return{};var e={},i=Mt({},r);return t.split(",").forEach((function(t){var r=t.trim(),o=r.replace(".",""),a=r.replace(/[[\]]/g,"").split("="),s=n(a,1)[0],l=a.length>1?a[1].replace(/["']/g,""):"";switch(r.charAt(0)){case".":e.class=gt(i.class)?"".concat(i.class," ").concat(o):o;break;case"#":e.id=r.replace("#","");break;case"[":e[s]=l}})),Mt(i,e)}function qt(t,r){if(xt(t)){var e=r;mt(e)||(e=!t.hidden),t.hidden=e}}function Vt(t,r,e){if(kt(t))return Array.from(t).map((function(t){return Vt(t,r,e)}));if(xt(t)){var i="toggle";return void 0!==e&&(i=e?"add":"remove"),t.classList[i](r),t.classList.contains(r)}return!1}function Ht(t,r){return xt(t)&&t.classList.contains(r)}function Ut(t,r){var e=Element.prototype;return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(){return Array.from(document.querySelectorAll(r)).includes(this)}).call(t,r)}function Qt(t){return this.elements.container.querySelectorAll(t)}function Yt(t){return this.elements.container.querySelector(t)}function Wt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xt(t)&&(t.focus({preventScroll:!0}),r&&Vt(t,this.config.classNames.tabFocus))}var Jt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Gt={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,r,e){var i=Gt[t]||"html5"!==r;return{api:i,ui:i&&Gt.rangeInput&&("video"!==t||!It.isIPhone||It.isIPhone&&e&&Gt.playsinline)}},pip:!(It.isIPhone||!bt(Lt("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Lt("video").disablePictureInPicture)),airplay:bt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(Ct(t))return!1;var r=t.split("/"),e=n(r,1),i=t;if(!this.isHTML5||e[0]!==this.type)return!1;Object.keys(Jt).includes(i)&&(i+='; codecs="'.concat(Jt[t],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var t=document.createElement("input");return t.type="range","range"===t.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Pt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Kt=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){}return t}();function Xt(t,r,e){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!Ct(r)&&bt(e)){var s=r.split(" "),l=a;Kt&&(l={passive:n,capture:a}),s.forEach((function(r){i&&i.eventListeners&&o&&i.eventListeners.push({element:t,type:r,callback:e,options:l}),t[o?"addEventListener":"removeEventListener"](r,e,l)}))}}function Zt(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xt.call(this,t,r,e,!0,i,o)}function tr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xt.call(this,t,r,e,!1,i,o)}function rr(t){var r=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];tr(t,e,a,o,n),i.apply(r,l)};Xt.call(this,t,e,a,!0,o,n)}function er(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(xt(t)&&!Ct(r)){var o=new CustomEvent(r,{bubbles:e,detail:a(a({},i),{},{plyr:this})});t.dispatchEvent(o)}}function ir(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function or(){var t=this;return new Promise((function(r){return t.ready?setTimeout(r,0):Zt.call(t,t.elements.container,"ready",r)})).then((function(){}))}function nr(t){(function(t){return st(t,Promise)&&dt(t.then)})(t)&&t.then(null,(function(){}))}function ar(t){return wt(t)?t.filter((function(r,e){return t.indexOf(r)===e})):t}function sr(t,r){return wt(t)&&t.length?t.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):null}function lr(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var pr=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(t,r){var e=n(r,2),i=e[0],o=e[1];return a(a({},t),{},s({},i/o,[i,o]))}),{});function ur(t){return!!(wt(t)||gt(t)&&t.includes(":"))&&(wt(t)?t:t.split(":")).map(Number).every(_t)}function dr(t){if(!wt(t)||!t.every(_t))return null;var r=n(t,2),e=r[0],i=r[1],o=function t(r,e){return 0===e?r:t(e,r%e)}(e,i);return[e/o,i/o]}function cr(t){var r=function(t){return ur(t)?t.split(":").map(Number):null},e=r(t);if(null===e&&(e=r(this.config.ratio)),null===e&&!Ct(this.embed)&&wt(this.embed.ratio)&&(e=this.embed.ratio),null===e&&this.isHTML5){var i=this.media;e=[i.videoWidth,i.videoHeight]}return dr(e)}function hr(t){if(!this.isVideo)return{};var r=this.elements.wrapper,e=cr.call(this,t);if(!wt(e))return{};var i=dr(e),o=n(i,2),a=o[0],s=o[1],l=100/a*s;if(lr("aspect-ratio: ".concat(a,"/").concat(s))?r.style.aspectRatio="".concat(a,"/").concat(s):r.style.paddingBottom="".concat(l,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var p=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),u=(p-l)/(p/50);this.fullscreen.active?r.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&r.classList.add(this.config.classNames.videoFixedRatio);return{padding:l,ratio:e}}function yr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/r,o=sr(Object.keys(pr),i);return Math.abs(o-i)<=e?pr[o]:[t,r]}var vr={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(r){var e=r.getAttribute("type");return!!Ct(e)||Gt.mime.call(t,e)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:vr.getSources.call(this).map((function(t){return Number(t.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,Ct(this.config.ratio)||hr.call(t),Object.defineProperty(t.media,"quality",{get:function(){var r=vr.getSources.call(t).find((function(r){return r.getAttribute("src")===t.source}));return r&&Number(r.getAttribute("size"))},set:function(r){if(t.quality!==r){if(t.config.quality.forced&&bt(t.config.quality.onChange))t.config.quality.onChange(r);else{var e=vr.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===r}));if(!e)return;var i=t.media,o=i.currentTime,n=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;t.media.src=e.getAttribute("src"),("none"!==a||s)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=o,n||nr(t.play())})),t.media.load())}er.call(t,t.media,"qualitychange",!1,{quality:r})}}})}},cancelRequests:function(){this.isHTML5&&(Nt(vr.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function fr(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function _r(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];return Ct(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,r){return e[r].toString()}))}var gr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(r.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),e.toString())},mr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))};function br(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.toString();return r=gr(r,"-"," "),r=gr(r,"_"," "),r=mr(r),gr(r," ","")}function wr(t){var r=document.createElement("div");return r.appendChild(t),r.innerHTML}var kr={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},xr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ct(t)||Ct(r))return"";var e=At(r.i18n,t);if(Ct(e))return Object.keys(kr).includes(t)?kr[t]:"";var i={"{seektime}":r.seekTime,"{title}":r.title};return Object.entries(i).forEach((function(t){var r=n(t,2);e=gr(e,r[0],r[1])})),e},zr=function(){function t(r){var e=this;u(this,t),N(this,"get",(function(r){if(!t.supported||!e.enabled)return null;var i=window.localStorage.getItem(e.key);if(Ct(i))return null;var o=JSON.parse(i);return gt(r)&&r.length?o[r]:o})),N(this,"set",(function(r){if(t.supported&&e.enabled&&ft(r)){var i=e.get();Ct(i)&&(i={}),Mt(i,r);try{window.localStorage.setItem(e.key,JSON.stringify(i))}catch(r){}}})),this.enabled=r.config.storage.enabled,this.key=r.config.storage.key}return l(t,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}]),t}();function jr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(e,i){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===r)try{e(JSON.parse(o.responseText))}catch(t){e(o.responseText)}else e(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=r,o.send()}catch(t){i(t)}}))}function Tr(t,r){if(gt(t)){var e=gt(r),i=function(){return null!==document.getElementById(r)},o=function(t,r){t.innerHTML=r,e&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!e||!i()){var n=zr.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),e&&a.setAttribute("id",r),n){var s=window.localStorage.getItem("cache-".concat(r));if(null!==s){var l=JSON.parse(s);o(a,l.content)}}jr(t).then((function(t){if(!Ct(t)){if(n)try{window.localStorage.setItem("cache-".concat(r),JSON.stringify({content:t}))}catch(t){}o(a,t)}})).catch((function(){}))}}}var Sr=function(t){return Math.trunc(t/60/60%60,10)},Cr=function(t){return Math.trunc(t%60,10)};function Pr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!_t(t))return Pr(void 0,r,e);var i,o=function(t){return"0".concat(t).slice(-2)},n=Sr(t),a=(i=t,Math.trunc(i/60%60,10)),s=Cr(t);return n=r||n>0?"".concat(n,":"):"","".concat(e&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(s))}var Or={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),r=window.location.host?window.location.host:window.top.location.host,e=t.host!==r||It.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=Yt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Qt.call(this,this.config.selectors.buttons.play),pause:Yt.call(this,this.config.selectors.buttons.pause),restart:Yt.call(this,this.config.selectors.buttons.restart),rewind:Yt.call(this,this.config.selectors.buttons.rewind),fastForward:Yt.call(this,this.config.selectors.buttons.fastForward),mute:Yt.call(this,this.config.selectors.buttons.mute),pip:Yt.call(this,this.config.selectors.buttons.pip),airplay:Yt.call(this,this.config.selectors.buttons.airplay),settings:Yt.call(this,this.config.selectors.buttons.settings),captions:Yt.call(this,this.config.selectors.buttons.captions),fullscreen:Yt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Yt.call(this,this.config.selectors.progress),this.elements.inputs={seek:Yt.call(this,this.config.selectors.inputs.seek),volume:Yt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Yt.call(this,this.config.selectors.display.buffer),currentTime:Yt.call(this,this.config.selectors.display.currentTime),duration:Yt.call(this,this.config.selectors.display.duration)},xt(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,r){var e="http://www.w3.org/2000/svg",i=Or.getIconUrl.call(this),o="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(e,"svg");Ft(n,Mt(r,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(e,"use"),s="".concat(o,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),n.appendChild(a),n},createLabel:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=xr(t,this.config);return Lt("span",a(a({},r),{},{class:[r.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),e)},createBadge:function(t){if(Ct(t))return null;var r=Lt("span",{class:this.config.classNames.menu.value});return r.appendChild(Lt("span",{class:this.config.classNames.menu.badge},t)),r},createButton:function(t,r){var e=this,i=Mt({},r),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=br(t)).charAt(0).toLowerCase()+t.slice(1)}(t),n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(i).includes(t)&&(n[t]=i[t],delete i[t])})),"button"!==n.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(t){return t===e.config.classNames.control}))||Mt(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),o="play",n.label="play",n.icon="play";break;default:Ct(n.label)&&(n.label=o),Ct(n.icon)&&(n.icon=t)}var a=Lt(n.element);return n.toggle?(a.appendChild(Or.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(Or.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(Or.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(Or.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(Or.createIcon.call(this,n.icon)),a.appendChild(Or.createLabel.call(this,n.label))),Mt(i,$t(this.config.selectors.buttons[o],i)),Ft(a,i),"play"===o?(wt(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,r){var e=Lt("input",Mt($t(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":xr(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},r));return this.elements.inputs[t]=e,Or.updateRangeFill.call(this,e),nt.setup(e),e},createProgress:function(t,r){var e=Lt("progress",Mt($t(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},r));if("volume"!==t){e.appendChild(Lt("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],o=i?xr(i,this.config):"";e.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=e,e},createTime:function(t,r){var e=$t(this.config.selectors.display[t],r),i=Lt("div",Mt(e,{class:"".concat(e.class?e.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":xr(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,r){var e=this;Zt.call(this,t,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var o,n=Ut(t,'[role="menuitemradio"]');!n&&[32,39].includes(i.which)?Or.showMenuPanel.call(e,r,!0):32!==i.which&&(40===i.which||n&&39===i.which?xt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):xt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Wt.call(e,o,!0))}}),!1),Zt.call(this,t,"keyup",(function(t){13===t.which&&Or.focusFirstMenuItem.call(e,null,!0)}))},createMenuItem:function(t){var r=this,e=t.value,i=t.list,o=t.type,n=t.title,a=t.badge,s=void 0===a?null:a,l=t.checked,p=void 0!==l&&l,u=$t(this.config.selectors.inputs[o]),d=Lt("button",Mt(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:e})),c=Lt("span");c.innerHTML=n,xt(s)&&c.appendChild(s),d.appendChild(c),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(t){t&&Array.from(d.parentNode.children).filter((function(t){return Ut(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),d.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(d,"click keyup",(function(t){if(!jt(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),d.checked=!0,o){case"language":r.currentTrack=Number(e);break;case"quality":r.quality=e;break;case"speed":r.speed=parseFloat(e)}Or.showMenuPanel.call(r,"home",jt(t))}}),o,!1),Or.bindMenuItemShortcuts.call(this,d,o),i.appendChild(d)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _t(t)?Pr(t,Sr(this.duration)>0,r):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];xt(t)&&_t(r)&&(t.innerText=Or.formatTime(r,e))},updateVolume:function(){this.supported.ui&&(xt(this.elements.inputs.volume)&&Or.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),xt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xt(t)&&(t.value=r,Or.updateRangeFill.call(this,t))},updateProgress:function(t){var r=this;if(this.supported.ui&&zt(t)){var e=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":e=function(t,r){return 0===t||0===r||Number.isNaN(t)||Number.isNaN(r)?0:(t/r*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&Or.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":!function(t,e){var i=_t(e)?e:0,o=xt(t)?t:r.elements.display.buffer;if(xt(o)){o.value=i;var n=o.getElementsByTagName("span")[0];xt(n)&&(n.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var r=zt(t)?t.target:t;if(xt(r)&&"range"===r.getAttribute("type")){if(Ut(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var e=Or.formatTime(this.currentTime),i=Or.formatTime(this.duration),o=xr("seekLabel",this.config);r.setAttribute("aria-valuetext",o.replace("{currentTime}",e).replace("{duration}",i))}else if(Ut(r,this.config.selectors.inputs.volume)){var n=100*r.value;r.setAttribute("aria-valuenow",n),r.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else r.setAttribute("aria-valuenow",r.value);It.isWebkit&&r.style.setProperty("--value",r.value/r.max*100+"%")}},updateSeekTooltip:function(t){var r=this;if(this.config.tooltips.seek&&xt(this.elements.inputs.seek)&&xt(this.elements.display.seekTooltip)&&0!==this.duration){var e="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return Vt(r.elements.display.seekTooltip,e,t)};if(this.touch)i(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(zt(t))o=100/n.width*(t.pageX-n.left);else{if(!Ht(this.elements.display.seekTooltip,e))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),Or.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),zt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var r=!xt(this.elements.display.duration)&&this.config.invertTime;Or.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r),t&&"timeupdate"===t.type&&this.media.seeking||Or.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return qt(this.elements.display.currentTime,!0),void qt(this.elements.progress,!0);xt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=xt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Or.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Or.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Or.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,r){qt(this.elements.settings.buttons[t],!r)},updateSetting:function(t,r,e){var i=this.elements.settings.panels[t],o=null,n=r;if("captions"===t)o=this.currentTrack;else{if(o=Ct(e)?this[t]:e,Ct(o)&&(o=this.config[t].default),!Ct(this.options[t])&&!this.options[t].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(t));if(!this.config[t].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(t))}if(xt(n)||(n=i&&i.querySelector('[role="menu"]')),xt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Or.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));xt(a)&&(a.checked=!0)}},getLabel:function(t,r){switch(t){case"speed":return 1===r?xr("normal",this.config):"".concat(r,"&times;");case"quality":if(_t(r)){if(0===r)return xr("auto",this.config);var e=xr("qualityLabel.".concat(r),this.config);return e.length?e:"".concat(r,"p")}return mr(r);case"captions":return Mr.getLabel.call(this);default:return null}},setQualityMenu:function(t){var r=this;if(xt(this.elements.settings.panels.quality)){var e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');wt(t)&&(this.options.quality=ar(t).filter((function(t){return r.config.quality.options.includes(t)})));var o=!Ct(this.options.quality)&&this.options.quality.length>1;if(Or.toggleMenuButton.call(this,e,o),Bt(i),Or.checkMenu.call(this),o){var n=function(t){var e=xr("qualityBadge.".concat(t),r.config);return e.length?Or.createBadge.call(r,e):null};this.options.quality.sort((function(t,e){var i=r.config.quality.options;return i.indexOf(t)>i.indexOf(e)?1:-1})).forEach((function(t){Or.createMenuItem.call(r,{value:t,list:i,type:e,title:Or.getLabel.call(r,"quality",t),badge:n(t)})})),Or.updateSetting.call(this,e,i)}}},setCaptionsMenu:function(){var t=this;if(xt(this.elements.settings.panels.captions)){var r="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Mr.getTracks.call(this),o=Boolean(i.length);if(Or.toggleMenuButton.call(this,r,o),Bt(e),Or.checkMenu.call(this),o){var n=i.map((function(r,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:Mr.getLabel.call(t,r),badge:r.language&&Or.createBadge.call(t,r.language.toUpperCase()),list:e,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:xr("disabled",this.config),list:e,type:"language"}),n.forEach(Or.createMenuItem.bind(this)),Or.updateSetting.call(this,r,e)}}},setSpeedMenu:function(){var t=this;if(xt(this.elements.settings.panels.speed)){var r="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(r){return r>=t.minimumSpeed&&r<=t.maximumSpeed}));var i=!Ct(this.options.speed)&&this.options.speed.length>1;Or.toggleMenuButton.call(this,r,i),Bt(e),Or.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){Or.createMenuItem.call(t,{value:i,list:e,type:r,title:Or.getLabel.call(t,"speed",i)})})),Or.updateSetting.call(this,r,e))}},checkMenu:function(){var t=this.elements.settings.buttons,r=!Ct(t)&&Object.values(t).some((function(t){return!t.hidden}));qt(this.elements.settings.menu,!r)},focusFirstMenuItem:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var e=t;xt(e)||(e=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=e.querySelector('[role^="menuitem"]');Wt.call(this,i,r)}},toggleMenu:function(t){var r=this.elements.settings.popup,e=this.elements.buttons.settings;if(xt(r)&&xt(e)){var i=r.hidden,o=i;if(mt(t))o=t;else if(jt(t)&&27===t.which)o=!1;else if(zt(t)){var n=bt(t.composedPath)?t.composedPath()[0]:t.target,a=r.contains(n);if(a||!a&&t.target!==e&&o)return}e.setAttribute("aria-expanded",o),qt(r,!o),Vt(this.elements.container,this.config.classNames.menu.open,o),o&&jt(t)?Or.focusFirstMenuItem.call(this,null,!0):o||i||Wt.call(this,e,jt(t))}},getMenuSize:function(t){var r=t.cloneNode(!0);r.style.position="absolute",r.style.opacity=0,r.removeAttribute("hidden"),t.parentNode.appendChild(r);var e=r.scrollWidth,i=r.scrollHeight;return Nt(r),{width:e,height:i}},showMenuPanel:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(r));if(xt(i)){var o=i.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if(Gt.transitions&&!Gt.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=Or.getMenuSize.call(this,i),s=function r(e){e.target===o&&["width","height"].includes(e.propertyName)&&(o.style.width="",o.style.height="",tr.call(t,o,Pt,r))};Zt.call(this,o,Pt,s),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}qt(n,!0),qt(i,!1),Or.focusFirstMenuItem.call(this,i,e)}},setDownloadUrl:function(){var t=this.elements.buttons.download;xt(t)&&t.setAttribute("href",this.download)},create:function(t){var r=this,e=Or.bindMenuItemShortcuts,i=Or.createButton,o=Or.createProgress,n=Or.createRange,a=Or.createTime,s=Or.setQualityMenu,l=Or.setSpeedMenu,p=Or.showMenuPanel;this.elements.controls=null,wt(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Lt("div",$t(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={class:"plyr__controls__item"};return ar(wt(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(r,"restart",d)),"rewind"===s&&u.appendChild(i.call(r,"rewind",d)),"play"===s&&u.appendChild(i.call(r,"play",d)),"fast-forward"===s&&u.appendChild(i.call(r,"fast-forward",d)),"progress"===s){var l=Lt("div",{class:"".concat(d.class," plyr__progress__container")}),c=Lt("div",$t(r.config.selectors.progress));if(c.appendChild(n.call(r,"seek",{id:"plyr-seek-".concat(t.id)})),c.appendChild(o.call(r,"buffer")),r.config.tooltips.seek){var h=Lt("span",{class:r.config.classNames.tooltip},"00:00");c.appendChild(h),r.elements.display.seekTooltip=h}r.elements.progress=c,l.appendChild(r.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(r,"currentTime",d)),"duration"===s&&u.appendChild(a.call(r,"duration",d)),"mute"===s||"volume"===s){var y=r.elements.volume;xt(y)&&u.contains(y)||(y=Lt("div",Mt({},d,{class:"".concat(d.class," plyr__volume").trim()})),r.elements.volume=y,u.appendChild(y)),"mute"===s&&y.appendChild(i.call(r,"mute")),"volume"!==s||It.isIos||y.appendChild(n.call(r,"volume",Mt({max:1,step:.05,value:r.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===s&&u.appendChild(i.call(r,"captions",d)),"settings"===s&&!Ct(r.config.settings)){var v=Lt("div",Mt({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));v.appendChild(i.call(r,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=Lt("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),_=Lt("div"),g=Lt("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=Lt("div",{role:"menu"});g.appendChild(m),_.appendChild(g),r.elements.settings.panels.home=g,r.config.settings.forEach((function(i){var o=Lt("button",Mt($t(r.config.selectors.buttons.settings),{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(r,o,i),Zt.call(r,o,"click",(function(){p.call(r,i,!1)}));var n=Lt("span",null,xr(i,r.config)),a=Lt("span",{class:r.config.classNames.menu.value});a.innerHTML=t[i],n.appendChild(a),o.appendChild(n),m.appendChild(o);var s=Lt("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),l=Lt("button",{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--back")});l.appendChild(Lt("span",{"aria-hidden":!0},xr(i,r.config))),l.appendChild(Lt("span",{class:r.config.classNames.hidden},xr("menuBack",r.config))),Zt.call(r,s,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(r,"home",!0))}),!1),Zt.call(r,l,"click",(function(){p.call(r,"home",!1)})),s.appendChild(l),s.appendChild(Lt("div",{role:"menu"})),_.appendChild(s),r.elements.settings.buttons[i]=o,r.elements.settings.panels[i]=s})),f.appendChild(_),v.appendChild(f),u.appendChild(v),r.elements.settings.popup=f,r.elements.settings.menu=v}if("pip"===s&&Gt.pip&&u.appendChild(i.call(r,"pip",d)),"airplay"===s&&Gt.airplay&&u.appendChild(i.call(r,"airplay",d)),"download"===s){var b=Mt({},d,{element:"a",href:r.download,target:"_blank"});r.isHTML5&&(b.download=""),!St(r.config.urls.download)&&r.isEmbed&&Mt(b,{icon:"logo-".concat(r.provider),label:r.provider}),u.appendChild(i.call(r,"download",b))}"fullscreen"===s&&u.appendChild(i.call(r,"fullscreen",d))})),this.isHTML5&&s.call(this,vr.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var r=Or.getIconUrl.call(this);r.cors&&Tr(r.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var e=null;this.elements.controls=null;var i,o={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(bt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,o)),this.config.controls||(this.config.controls=[]),xt(this.config.controls)||gt(this.config.controls)?e=this.config.controls:(e=Or.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Mr.getLabel.call(this)}),a=!1),a&&gt(this.config.controls)&&(e=function(t){var r=t;return Object.entries(o).forEach((function(t){var e=n(t,2),i=e[1];r=gr(r,"{".concat(e[0],"}"),i)})),r}(e)),gt(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),xt(i)||(i=this.elements.container),i[xt(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),xt(this.elements.controls)||Or.findElements.call(this),!Ct(this.elements.buttons)){var s=function(r){var e=t.config.classNames.controlPressed;Object.defineProperty(r,"pressed",{enumerable:!0,get:function(){return Ht(r,e)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Vt(r,e,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){wt(t)||kt(t)?Array.from(t).filter(Boolean).forEach(s):s(t)}))}if(It.isEdge&&Ot(i),this.config.tooltips.controls){var l=this.config,p=l.classNames,u=l.selectors,d="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),c=Qt.call(this,d);Array.from(c).forEach((function(r){Vt(r,t.config.classNames.hidden,!1),Vt(r,t.config.classNames.tooltip,!0)}))}}};function Ir(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t;if(r){var i=document.createElement("a");i.href=e,e=i.href}try{return new URL(e)}catch(t){return null}}function Ar(t){var r=new URLSearchParams;return ft(t)&&Object.entries(t).forEach((function(t){var e=n(t,2);r.set(e[0],e[1])})),r}var Mr={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Gt.textTracks)wt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Or.setCaptionsMenu.call(this);else{if(xt(this.elements.captions)||(this.elements.captions=Lt("div",$t(this.config.selectors.captions)),function(t,r){xt(t)&&xt(r)&&r.parentNode.insertBefore(t,r.nextSibling)}(this.elements.captions,this.elements.wrapper)),It.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var r=t.getAttribute("src"),e=Ir(r);null!==e&&e.hostname!==window.location.href.hostname&&["http:","https:"].includes(e.protocol)&&jr(r,"blob").then((function(r){t.setAttribute("src",window.URL.createObjectURL(r))})).catch((function(){Nt(t)}))}))}var r=ar((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===e&&(e=n(r,1)[0]);var i=this.storage.get("captions");mt(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:e,languages:r}),this.isHTML5&&Zt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Mr.update.bind(this)),setTimeout(Mr.update.bind(this),0)}},update:function(){var t=this,r=Mr.getTracks.call(this,!0),e=this.captions,i=e.active,o=e.language,n=e.meta,a=e.currentTrackNode,s=Boolean(r.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&r.filter((function(t){return!n.get(t)})).forEach((function(r){t.debug.log("Track added",r),n.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),Zt.call(t,r,"cuechange",(function(){return Mr.updateCues.call(t)}))})),(s&&this.language!==o||!r.includes(a))&&(Mr.setLanguage.call(this,o),Mr.toggle.call(this,i&&s)),this.elements&&Vt(this.elements.container,this.config.classNames.captions.enabled,!Ct(r)),wt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Or.setCaptionsMenu.call(this)},toggle:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,o=this.config.classNames.captions.active,n=vt(t)?!i:t;if(n!==i){if(e||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!e){var a=Mr.getTracks.call(this),s=Mr.findTrack.call(this,[this.captions.language].concat(d(this.captions.languages)),!0);return this.captions.language=s.language,void Mr.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Vt(this.elements.container,o,n),this.captions.toggled=n,Or.updateSetting.call(this,"captions"),er.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&r.captions.toggled&&r.captions.currentTrackNode&&(r.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=Mr.getTracks.call(this);if(-1!==t)if(_t(t))if(t in e){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=e[t],o=i||{},n=o.language;this.captions.currentTrackNode=i,Or.updateSetting.call(this,"captions"),r||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),er.call(this,this.media,"languagechange")}Mr.toggle.call(this,!0,r),this.isHTML5&&this.isVideo&&Mr.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Mr.toggle.call(this,!1,r)},setLanguage:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(gt(t)){var e=t.toLowerCase();this.captions.language=e;var i=Mr.getTracks.call(this),o=Mr.findTrack.call(this,[e]);Mr.set.call(this,i.indexOf(o),r)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(e){return!t.isHTML5||r||t.captions.meta.has(e)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var r,e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Mr.getTracks.call(this),n=function(t){return Number((e.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,r){return n(r)-n(t)}));return t.every((function(t){return!(r=a.find((function(r){return r.language===t})))})),r||(i?a[0]:void 0)},getCurrentTrack:function(){return Mr.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var r=t;return!Tt(r)&&Gt.textTracks&&this.captions.toggled&&(r=Mr.getCurrentTrack.call(this)),Tt(r)?Ct(r.label)?Ct(r.language)?xr("enabled",this.config):t.language.toUpperCase():r.label:xr("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(xt(this.elements.captions))if(vt(t)||Array.isArray(t)){var r=t;if(!r){var e=Mr.getCurrentTrack.call(this);r=Array.from((e||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(wr)}var i=r.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Bt(this.elements.captions);var o=Lt("span",$t(this.config.selectors.caption));o.innerHTML=i,this.elements.captions.appendChild(o),er.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Er={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.9/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},Fr={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Lr=function(){},Rr=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u(this,t),this.enabled=window.console&&r,this.enabled&&this.log("Debugging enabled")}return l(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Lr}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Lr}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Lr}}]),t}(),Nr=function(){function t(r){var e=this;u(this,t),N(this,"onChange",(function(){if(e.enabled){var t=e.player.elements.buttons.fullscreen;xt(t)&&(t.pressed=e.active),er.call(e.player,e.target===e.player.media?e.target:e.player.elements.container,e.active?"enterfullscreen":"exitfullscreen",!0)}})),N(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?e.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(e.scrollPosition.x,e.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Vt(e.target,e.player.config.classNames.fullscreen.fallback,t),It.isIos){var r=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";r||(r=document.createElement("meta")).setAttribute("name","viewport");var o=gt(r.content)&&r.content.includes(i);t?(e.cleanupViewport=!o,o||(r.content+=",".concat(i))):e.cleanupViewport&&(r.content=r.content.split(",").filter((function(t){return t.trim()!==i})).join(","))}e.onChange()})),N(this,"trapFocus",(function(t){if(!It.isIos&&e.active&&"Tab"===t.key&&9===t.keyCode){var r=document.activeElement,i=Qt.call(e.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),o=n(i,1)[0],a=i[i.length-1];r!==a||t.shiftKey?r===o&&t.shiftKey&&(a.focus(),t.preventDefault()):(o.focus(),t.preventDefault())}})),N(this,"update",(function(){e.player.debug.log(e.enabled?"".concat(e.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Vt(e.player.elements.container,e.player.config.classNames.fullscreen.enabled,e.enabled)})),N(this,"enter",(function(){e.enabled&&(It.isIos&&e.player.config.fullscreen.iosNative?e.player.isVimeo?e.player.embed.requestFullscreen():e.target.webkitEnterFullscreen():!t.native||e.forceFallback?e.toggleFallback(!0):e.prefix?Ct(e.prefix)||e.target["".concat(e.prefix,"Request").concat(e.property)]():e.target.requestFullscreen({navigationUI:"hide"}))})),N(this,"exit",(function(){if(e.enabled)if(It.isIos&&e.player.config.fullscreen.iosNative)e.target.webkitExitFullscreen(),nr(e.player.play());else if(!t.native||e.forceFallback)e.toggleFallback(!1);else if(e.prefix){if(!Ct(e.prefix)){var r="moz"===e.prefix?"Cancel":"Exit";document["".concat(e.prefix).concat(r).concat(e.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),N(this,"toggle",(function(){e.active?e.exit():e.enter()})),this.player=r,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===r.config.fullscreen.fallback,this.player.elements.fullscreen=r.config.fullscreen.container&&function(t,r){return(Element.prototype.closest||function(){var t=this;do{if(Ut.matches(t,r))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,r)}(this.player.elements.container,r.config.fullscreen.container),Zt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){e.onChange()})),Zt.call(this.player,this.player.elements.container,"dblclick",(function(t){xt(e.player.elements.controls)&&e.player.elements.controls.contains(t.target)||e.player.listeners.proxy(t,e.toggle,"fullscreen")})),Zt.call(this,this.player.elements.container,"keydown",(function(t){return e.trapFocus(t)})),this.update()}return l(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!t.native||this.forceFallback)return Ht(this.target,this.player.config.classNames.fullscreen.fallback);var r=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return r&&r.shadowRoot?r===this.target.getRootNode().host:r===this.target}},{key:"target",get:function(){return It.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(bt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(r){return!(!bt(document["".concat(r,"ExitFullscreen")])&&!bt(document["".concat(r,"CancelFullScreen")])||(t=r,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Br(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(e,i){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=r?e:i)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Dr={addStyleHook:function(){Vt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Vt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Dr.toggleNativeControls.call(this,!0);xt(this.elements.controls)||(Or.inject.call(this),this.listeners.controls()),Dr.toggleNativeControls.call(this),this.isHTML5&&Mr.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Or.updateVolume.call(this),Or.timeUpdate.call(this),Or.durationUpdate.call(this),Dr.checkPlaying.call(this),Vt(this.elements.container,this.config.classNames.pip.supported,Gt.pip&&this.isHTML5&&this.isVideo),Vt(this.elements.container,this.config.classNames.airplay.supported,Gt.airplay&&this.isHTML5),Vt(this.elements.container,this.config.classNames.isIos,It.isIos),Vt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){er.call(t,t.media,"ready")}),0),Dr.setTitle.call(this),this.poster&&Dr.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Or.durationUpdate.call(this)},setTitle:function(){var t=xr("play",this.config);if(gt(this.config.title)&&!Ct(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(r){r.setAttribute("aria-label",t)})),this.isEmbed){var r=Yt.call(this,"iframe");if(!xt(r))return;var e=Ct(this.config.title)?"video":this.config.title,i=xr("frameTitle",this.config);r.setAttribute("title",i.replace("{title}",e))}},togglePoster:function(t){Vt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),or.call(this).then((function(){return Br(t)})).catch((function(e){throw t===r.poster&&Dr.togglePoster.call(r,!1),e})).then((function(){if(t!==r.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(r.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Dr.togglePoster.call(r,!0),t})))},checkPlaying:function(t){var r=this;Vt(this.elements.container,this.config.classNames.playing,this.playing),Vt(this.elements.container,this.config.classNames.paused,this.paused),Vt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:r.playing}),t.setAttribute("aria-label",xr(r.playing?"pause":"play",r.config))})),zt(t)&&"timeupdate"===t.type||Dr.toggleControls.call(this)},checkLoading:function(t){var r=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Vt(r.elements.container,r.config.classNames.loading,r.loading),Dr.toggleControls.call(r)}),this.loading?250:0)},toggleControls:function(t){var r=this.elements.controls;if(r&&this.config.hideControls){var e=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||r.pressed||r.hover||e))}},migrateStyles:function(){var t=this;Object.values(a({},this.media.style)).filter((function(t){return!Ct(t)&&gt(t)&&t.startsWith("--plyr")})).forEach((function(r){t.elements.container.style.setProperty(r,t.media.style.getPropertyValue(r)),t.media.style.removeProperty(r)})),Ct(this.media.style)&&this.media.removeAttribute("style")}},$r=function(){function t(r){var e=this;u(this,t),N(this,"firstTouch",(function(){var t=e.player,r=t.elements;t.touch=!0,Vt(r.container,t.config.classNames.isTouch,!0)})),N(this,"setTabFocus",(function(t){var r=e.player,i=r.elements;clearTimeout(e.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(e.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-e.lastKeyDown<=20)&&(function(){var t=r.config.classNames.tabFocus;Vt(Qt.call(r,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(e.focusTimer=setTimeout((function(){var t=document.activeElement;i.container.contains(t)&&Vt(document.activeElement,r.config.classNames.tabFocus,!0)}),10))))})),N(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=e.player;r.config.keyboard.global&&Xt.call(r,window,"keydown keyup",e.handleKey,t,!1),Xt.call(r,document.body,"click",e.toggleMenu,t),rr.call(r,document.body,"touchstart",e.firstTouch),Xt.call(r,document.body,"keydown focus blur focusout",e.setTabFocus,t,!1,!0)})),N(this,"container",(function(){var t=e.player,r=t.config,i=t.elements,o=t.timers;!r.keyboard.global&&r.keyboard.focused&&Zt.call(t,i.container,"keydown keyup",e.handleKey,!1),Zt.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(r){var e=i.controls;e&&"enterfullscreen"===r.type&&(e.pressed=!1,e.hover=!1);var n=0;["touchstart","touchmove","mousemove"].includes(r.type)&&(Dr.toggleControls.call(t,!0),n=t.touch?3e3:2e3),clearTimeout(o.controls),o.controls=setTimeout((function(){return Dr.toggleControls.call(t,!1)}),n)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var r=i.wrapper,e=t.fullscreen.active,o=cr.call(t),a=n(o,2),s=a[0],l=a[1],p=lr("aspect-ratio: ".concat(s," / ").concat(l));if(e){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],d=n(u,2),c=d[1],h=d[0]/c>s/l;p?(r.style.width=h?"auto":"100%",r.style.height=h?"100%":"auto"):(r.style.maxWidth=h?c/l*s+"px":null,r.style.margin=h?"0 auto":null)}else p?(r.style.width=null,r.style.height=null):(r.style.maxWidth=null,r.style.margin=null)}},s=function(){clearTimeout(o.resized),o.resized=setTimeout(a,50)};Zt.call(t,i.container,"enterfullscreen exitfullscreen",(function(r){t.fullscreen.target===i.container&&(!t.isEmbed&&Ct(t.config.ratio)||(a(),("enterfullscreen"===r.type?Zt:tr).call(t,window,"resize",s)))}))})),N(this,"media",(function(){var t=e.player,r=t.elements;if(Zt.call(t,t.media,"timeupdate seeking seeked",(function(r){return Or.timeUpdate.call(t,r)})),Zt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(r){return Or.durationUpdate.call(t,r)})),Zt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Zt.call(t,t.media,"progress playing seeking seeked",(function(r){return Or.updateProgress.call(t,r)})),Zt.call(t,t.media,"volumechange",(function(r){return Or.updateVolume.call(t,r)})),Zt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(r){return Dr.checkPlaying.call(t,r)})),Zt.call(t,t.media,"waiting canplay seeked playing",(function(r){return Dr.checkLoading.call(t,r)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var i=Yt.call(t,".".concat(t.config.classNames.video));if(!xt(i))return;Zt.call(t,r.container,"click",(function(o){([r.container,i].includes(o.target)||i.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(o,t.restart,"restart"),e.proxy(o,(function(){nr(t.play())}),"play")):e.proxy(o,(function(){nr(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Zt.call(t,r.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Zt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Zt.call(t,t.media,"ratechange",(function(){Or.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Zt.call(t,t.media,"qualitychange",(function(r){Or.updateSetting.call(t,"quality",null,r.detail.quality)})),Zt.call(t,t.media,"ready qualitychange",(function(){Or.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Zt.call(t,t.media,o,(function(e){var i=e.detail,o=void 0===i?{}:i;"error"===e.type&&(o=t.media.error),er.call(t,r.container,e.type,!0,o)}))})),N(this,"proxy",(function(t,r,i){var o=e.player,n=o.config.listeners[i],a=!0;bt(n)&&(a=n.call(o,t)),!1!==a&&bt(r)&&r.call(o,t)})),N(this,"bind",(function(t,r,i,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e.player,s=a.config.listeners[o],l=bt(s);Zt.call(a,t,r,(function(t){return e.proxy(t,i,o)}),n&&!l)})),N(this,"controls",(function(){var t=e.player,r=t.elements,i=It.isIE?"change":"input";if(r.buttons.play&&Array.from(r.buttons.play).forEach((function(r){e.bind(r,"click",(function(){nr(t.togglePlay())}),"play")})),e.bind(r.buttons.restart,"click",t.restart,"restart"),e.bind(r.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),e.bind(r.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),e.bind(r.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),e.bind(r.buttons.captions,"click",(function(){return t.toggleCaptions()})),e.bind(r.buttons.download,"click",(function(){er.call(t,t.media,"download")}),"download"),e.bind(r.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),e.bind(r.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),e.bind(r.buttons.airplay,"click",t.airplay,"airplay"),e.bind(r.buttons.settings,"click",(function(r){r.stopPropagation(),r.preventDefault(),Or.toggleMenu.call(t,r)}),null,!1),e.bind(r.buttons.settings,"keyup",(function(r){var e=r.which;[13,32].includes(e)&&(13!==e?(r.preventDefault(),r.stopPropagation(),Or.toggleMenu.call(t,r)):Or.focusFirstMenuItem.call(t,null,!0))}),null,!1),e.bind(r.settings.menu,"keydown",(function(r){27===r.which&&Or.toggleMenu.call(t,r)})),e.bind(r.inputs.seek,"mousedown mousemove",(function(t){var e=r.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/e.width*(t.pageX-e.left))})),e.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(r){var e=r.currentTarget,i=r.keyCode?r.keyCode:r.which,o="play-on-seeked";if(!jt(r)||39===i||37===i){t.lastSeekTime=Date.now();var n=e.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(r.type);n&&a?(e.removeAttribute(o),nr(t.play())):!a&&t.playing&&(e.setAttribute(o,""),t.pause())}})),It.isIos){var o=Qt.call(t,'input[type="range"]');Array.from(o).forEach((function(t){return e.bind(t,i,(function(t){return Ot(t.target)}))}))}e.bind(r.inputs.seek,i,(function(r){var e=r.currentTarget,i=e.getAttribute("seek-value");Ct(i)&&(i=e.value),e.removeAttribute("seek-value"),t.currentTime=i/e.max*t.duration}),"seek"),e.bind(r.progress,"mouseenter mouseleave mousemove",(function(r){return Or.updateSeekTooltip.call(t,r)})),e.bind(r.progress,"mousemove touchmove",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.startMove(r)})),e.bind(r.progress,"mouseleave touchend click",(function(){var r=t.previewThumbnails;r&&r.loaded&&r.endMove(!1,!0)})),e.bind(r.progress,"mousedown touchstart",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.startScrubbing(r)})),e.bind(r.progress,"mouseup touchend",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.endScrubbing(r)})),It.isWebkit&&Array.from(Qt.call(t,'input[type="range"]')).forEach((function(r){e.bind(r,"input",(function(r){return Or.updateRangeFill.call(t,r.target)}))})),t.config.toggleInvert&&!xt(r.display.duration)&&e.bind(r.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Or.timeUpdate.call(t))})),e.bind(r.inputs.volume,i,(function(r){t.volume=r.target.value}),"volume"),e.bind(r.controls,"mouseenter mouseleave",(function(e){r.controls.hover=!t.touch&&"mouseenter"===e.type})),r.fullscreen&&Array.from(r.fullscreen.children).filter((function(t){return!t.contains(r.container)})).forEach((function(i){e.bind(i,"mouseenter mouseleave",(function(e){r.controls&&(r.controls.hover=!t.touch&&"mouseenter"===e.type)}))})),e.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){r.controls.pressed=["mousedown","touchstart"].includes(t.type)})),e.bind(r.controls,"focusin",(function(){var i=t.config,o=t.timers;Vt(r.controls,i.classNames.noTransition,!0),Dr.toggleControls.call(t,!0),setTimeout((function(){Vt(r.controls,i.classNames.noTransition,!1)}),0);var n=e.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Dr.toggleControls.call(t,!1)}),n)})),e.bind(r.inputs.volume,"wheel",(function(r){var e=r.webkitDirectionInvertedFromDevice,i=[r.deltaX,-r.deltaY].map((function(t){return e?-t:t})),o=n(i,2),a=o[0],s=o[1],l=Math.sign(Math.abs(a)>Math.abs(s)?a:s);t.increaseVolume(l/50);var p=t.media.volume;(1===l&&p<1||-1===l&&p>0)&&r.preventDefault()}),"volume",!1)})),this.player=r,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return l(t,[{key:"handleKey",value:function(t){var r=this.player,e=r.elements,i=t.keyCode?t.keyCode:t.which,o="keydown"===t.type,n=o&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&_t(i))if(o){var a=document.activeElement;if(xt(a)){if(a!==e.inputs.seek&&Ut(a,r.config.selectors.editable))return;if(32===t.which&&Ut(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:n||(r.currentTime=r.duration/10*(i-48));break;case 32:case 75:n||nr(r.togglePlay());break;case 38:r.increaseVolume(.1);break;case 40:r.decreaseVolume(.1);break;case 77:n||(r.muted=!r.muted);break;case 39:r.forward();break;case 37:r.rewind();break;case 70:r.fullscreen.toggle();break;case 67:n||r.toggleCaptions();break;case 76:r.loop=!r.loop}27===i&&!r.fullscreen.usingNative&&r.fullscreen.active&&r.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){Or.toggleMenu.call(this.player,t)}}]),t}(),qr=function(t,r){return function(t){t.exports=function(){var t=function(){},r={},e={},i={};function o(t,r){if(t){var o=i[t];if(e[t]=r,o)for(;o.length;)o[0](t,r),o.splice(0,1)}}function n(r,e){r.call&&(r={success:r}),e.length?(r.error||t)(e):(r.success||t)(r)}function a(r,e,i,o){var n,s,l=document,p=i.async,u=(i.numRetries||0)+1,d=i.before||t,c=r.replace(/[\?|#].*$/,""),h=r.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(c)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(n="hideFocus"in s)&&s.relList&&(n=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(c)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=r,s.async=void 0===p||p),s.onload=s.onerror=s.onbeforeload=function(t){var l=t.type[0];if(n)try{s.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((o+=1)<u)return a(r,e,i,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";e(r,l,t.defaultPrevented)},!1!==d(r,s)&&l.head.appendChild(s)}function s(t,r,e){var i,o,n=(t=t.push?t:[t]).length,s=n,l=[];for(i=function(t,e,i){if("e"==e&&l.push(t),"b"==e){if(!i)return;l.push(t)}--n||r(l)},o=0;o<s;o++)a(t[o],i,e)}function l(t,e,i){var a,l;if(e&&e.trim&&(a=e),l=(a?i:e)||{},a){if(a in r)throw"LoadJS";r[a]=!0}function p(r,e){s(t,(function(t){n(l,t),r&&n({success:r,error:e},t),o(a,t)}),l)}if(l.returnPromise)return new Promise(p);p()}return l.ready=function(t,r){return function(t,r){var o,n,a,s=[],l=(t=t.push?t:[t]).length,p=l;for(o=function(t,e){e.length&&s.push(t),--p||r(s)};l--;)(a=e[n=t[l]])?o(n,a):(i[n]=i[n]||[]).push(o)}(t,(function(t){n(r,t)})),l},l.done=function(t){o(t,[])},l.reset=function(){r={},e={},i={}},l.isDefined=function(t){return t in r},l}()}(r={exports:{}}),r.exports}();function Vr(t){return new Promise((function(r,e){qr(t,{success:r,error:e})}))}function Hr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,er.call(this,this.media,t?"play":"pause"))}var Ur={setup:function(){var t=this;Vt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,hr.call(t),ft(window.Vimeo)?Ur.ready.call(t):Vr(t.config.urls.vimeo.sdk).then((function(){Ur.ready.call(t)})).catch((function(r){t.debug.warn("Vimeo SDK (player.js) failed to load",r)}))},ready:function(){var t=this,r=this,e=r.config.vimeo,i=e.premium,o=e.referrerPolicy,s=c(e,R),l=r.media.getAttribute("src"),p="";Ct(l)?(l=r.media.getAttribute(r.config.attributes.embed.id),p=r.media.getAttribute(r.config.attributes.embed.hash)):p=function(t){var r=t.match(h(/^.*(?:vimeo.com\/|video\/)(?:[0-9]+)(?:\?.*&*h=|\/)+([,0-9a-f]+)/,{hash:1}));return r?r.groups.hash:null}(l);var u=p?{h:p}:{};i&&Object.assign(s,{controls:!1,sidedock:!1});var d=Ar(a(a({loop:r.config.loop.active,autoplay:r.autoplay,muted:r.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},u),s)),y=function(t){return Ct(t)?null:_t(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(l),v=Lt("iframe"),f=_r(r.config.urls.vimeo.iframe,y,d);if(v.setAttribute("src",f),v.setAttribute("allowfullscreen",""),v.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),Ct(o)||v.setAttribute("referrerPolicy",o),i||!e.customControls)v.setAttribute("data-poster",r.poster),r.media=Dt(v,r.media);else{var _=Lt("div",{class:r.config.classNames.embedContainer,"data-poster":r.poster});_.appendChild(v),r.media=Dt(_,r.media)}e.customControls||jr(_r(r.config.urls.vimeo.api,f)).then((function(t){!Ct(t)&&t.thumbnail_url&&Dr.setPoster.call(r,t.thumbnail_url).catch((function(){}))})),r.embed=new window.Vimeo.Player(v,{autopause:r.config.autopause,muted:r.muted}),r.media.paused=!0,r.media.currentTime=0,r.supported.ui&&r.embed.disableTextTrack(),r.media.play=function(){return Hr.call(r,!0),r.embed.play()},r.media.pause=function(){return Hr.call(r,!1),r.embed.pause()},r.media.stop=function(){r.pause(),r.currentTime=0};var g=r.media.currentTime;Object.defineProperty(r.media,"currentTime",{get:function(){return g},set:function(t){var e=r.embed,i=r.media,o=r.volume,n=r.paused&&!e.hasPlayed;i.seeking=!0,er.call(r,i,"seeking"),Promise.resolve(n&&e.setVolume(0)).then((function(){return e.setCurrentTime(t)})).then((function(){return n&&e.pause()})).then((function(){return n&&e.setVolume(o)})).catch((function(){}))}});var m=r.config.speed.selected;Object.defineProperty(r.media,"playbackRate",{get:function(){return m},set:function(t){r.embed.setPlaybackRate(t).then((function(){m=t,er.call(r,r.media,"ratechange")})).catch((function(){r.options.speed=[1]}))}});var b=r.config.volume;Object.defineProperty(r.media,"volume",{get:function(){return b},set:function(t){r.embed.setVolume(t).then((function(){b=t,er.call(r,r.media,"volumechange")}))}});var w=r.config.muted;Object.defineProperty(r.media,"muted",{get:function(){return w},set:function(t){var e=!!mt(t)&&t;r.embed.setVolume(e?0:r.config.volume).then((function(){w=e,er.call(r,r.media,"volumechange")}))}});var k,x=r.config.loop;Object.defineProperty(r.media,"loop",{get:function(){return x},set:function(t){var e=mt(t)?t:r.config.loop.active;r.embed.setLoop(e).then((function(){x=e}))}}),r.embed.getVideoUrl().then((function(t){k=t,Or.setDownloadUrl.call(r)})).catch((function(r){t.debug.warn(r)})),Object.defineProperty(r.media,"currentSrc",{get:function(){return k}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}}),Promise.all([r.embed.getVideoWidth(),r.embed.getVideoHeight()]).then((function(e){var i=n(e,2);r.embed.ratio=yr(i[0],i[1]),hr.call(t)})),r.embed.setAutopause(r.config.autopause).then((function(t){r.config.autopause=t})),r.embed.getVideoTitle().then((function(e){r.config.title=e,Dr.setTitle.call(t)})),r.embed.getCurrentTime().then((function(t){g=t,er.call(r,r.media,"timeupdate")})),r.embed.getDuration().then((function(t){r.media.duration=t,er.call(r,r.media,"durationchange")})),r.embed.getTextTracks().then((function(t){r.media.textTracks=t,Mr.setup.call(r)})),r.embed.on("cuechange",(function(t){var e=t.cues,i=(void 0===e?[]:e).map((function(t){return function(t){var r=document.createDocumentFragment(),e=document.createElement("div");return r.appendChild(e),e.innerHTML=t,r.firstChild.innerText}(t.text)}));Mr.updateCues.call(r,i)})),r.embed.on("loaded",(function(){r.embed.getPaused().then((function(t){Hr.call(r,!t),t||er.call(r,r.media,"playing")})),xt(r.embed.element)&&r.supported.ui&&r.embed.element.setAttribute("tabindex",-1)})),r.embed.on("bufferstart",(function(){er.call(r,r.media,"waiting")})),r.embed.on("bufferend",(function(){er.call(r,r.media,"playing")})),r.embed.on("play",(function(){Hr.call(r,!0),er.call(r,r.media,"playing")})),r.embed.on("pause",(function(){Hr.call(r,!1)})),r.embed.on("timeupdate",(function(t){r.media.seeking=!1,g=t.seconds,er.call(r,r.media,"timeupdate")})),r.embed.on("progress",(function(t){r.media.buffered=t.percent,er.call(r,r.media,"progress"),1===parseInt(t.percent,10)&&er.call(r,r.media,"canplaythrough"),r.embed.getDuration().then((function(t){t!==r.media.duration&&(r.media.duration=t,er.call(r,r.media,"durationchange"))}))})),r.embed.on("seeked",(function(){r.media.seeking=!1,er.call(r,r.media,"seeked")})),r.embed.on("ended",(function(){r.media.paused=!0,er.call(r,r.media,"ended")})),r.embed.on("error",(function(t){r.media.error=t,er.call(r,r.media,"error")})),e.customControls&&setTimeout((function(){return Dr.build.call(r)}),0)}};function Qr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,er.call(this,this.media,t?"play":"pause"))}function Yr(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Wr,Jr,Gr,Kr,Xr,Zr,te={setup:function(){var t=this;if(Vt(this.elements.wrapper,this.config.classNames.embed,!0),ft(window.YT)&&bt(window.YT.Player))te.ready.call(this);else{var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){bt(r)&&r(),te.ready.call(t)},Vr(this.config.urls.youtube.sdk).catch((function(r){t.debug.warn("YouTube API failed to load",r)}))}},getTitle:function(t){var r=this;jr(_r(this.config.urls.youtube.api,t)).then((function(t){if(ft(t)){var e=t.height,i=t.width;r.config.title=t.title,Dr.setTitle.call(r),r.embed.ratio=yr(i,e)}hr.call(r)})).catch((function(){hr.call(r)}))},ready:function(){var t=this,r=t.config.youtube,e=t.media&&t.media.getAttribute("id");if(Ct(e)||!e.startsWith("youtube-")){var i=t.media.getAttribute("src");Ct(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return Ct(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),n=Lt("div",{id:fr(t.provider),"data-poster":r.customControls?t.poster:void 0});if(t.media=Dt(n,t.media),r.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Br(a("maxres"),121).catch((function(){return Br(a("sd"),121)})).catch((function(){return Br(a("hq"))})).then((function(r){return Dr.setPoster.call(t,r.src)})).then((function(r){r.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:Yr(r),playerVars:Mt({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&r.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},r),events:{onError:function(r){if(!t.media.error){var e=r.data;t.media.error={code:e,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[e]||"An unknown error occured"},er.call(t,t.media,"error")}},onPlaybackRateChange:function(r){t.media.playbackRate=r.target.getPlaybackRate(),er.call(t,t.media,"ratechange")},onReady:function(e){if(!bt(t.media.play)){var i=e.target;te.getTitle.call(t,o),t.media.play=function(){Qr.call(t,!0),i.playVideo()},t.media.pause=function(){Qr.call(t,!1),i.pauseVideo()},t.media.stop=function(){i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(r){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,er.call(t,t.media,"seeking"),i.seekTo(r)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(t){i.setPlaybackRate(t)}});var n=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return n},set:function(r){i.setVolume(100*(n=r)),er.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(r){var e=mt(r)?r:a;a=e,i[e?"mute":"unMute"](),i.setVolume(100*n),er.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var s=i.getAvailablePlaybackRates();t.options.speed=s.filter((function(r){return t.config.speed.options.includes(r)})),t.supported.ui&&r.customControls&&t.media.setAttribute("tabindex",-1),er.call(t,t.media,"timeupdate"),er.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&er.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),er.call(t,t.media,"canplaythrough"))}),200),r.customControls&&setTimeout((function(){return Dr.build.call(t)}),50)}},onStateChange:function(e){var i=e.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(e.data)&&(t.media.seeking=!1,er.call(t,t.media,"seeked")),e.data){case-1:er.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),er.call(t,t.media,"progress");break;case 0:Qr.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):er.call(t,t.media,"ended");break;case 1:r.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Qr.call(t,!0),er.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){er.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),er.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Qr.call(t,!1);break;case 3:er.call(t,t.media,"waiting")}er.call(t,t.elements.container,"statechange",!1,{code:e.data})}}})}}},re={setup:function(){this.media?(Vt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Vt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Vt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Lt("div",{class:this.config.classNames.video}),Et(this.media,this.elements.wrapper),this.elements.poster=Lt("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?vr.setup.call(this):this.isYouTube?te.setup.call(this):this.isVimeo&&Ur.setup.call(this)):this.debug.warn("No media element found!")}},ee=function(){function t(r){var e=this;u(this,t),N(this,"load",(function(){e.enabled&&(ft(window.google)&&ft(window.google.ima)?e.ready():Vr(e.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))})),N(this,"ready",(function(){var t;e.enabled||((t=e).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),e.startSafetyTimer(12e3,"ready()"),e.managerPromise.then((function(){e.clearSafetyTimer("onAdsManagerLoaded()")})),e.listeners(),e.setupIMA()})),N(this,"setupIMA",(function(){e.elements.container=Lt("div",{class:e.player.config.classNames.ads}),e.player.elements.container.appendChild(e.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(e.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(e.player.config.playsinline),e.elements.displayContainer=new google.ima.AdDisplayContainer(e.elements.container,e.player.media),e.loader=new google.ima.AdsLoader(e.elements.displayContainer),e.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),e.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),e.requestAds()})),N(this,"requestAds",(function(){var t=e.player.elements.container;try{var r=new google.ima.AdsRequest;r.adTagUrl=e.tagUrl,r.linearAdSlotWidth=t.offsetWidth,r.linearAdSlotHeight=t.offsetHeight,r.nonLinearAdSlotWidth=t.offsetWidth,r.nonLinearAdSlotHeight=t.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!e.player.muted),e.loader.requestAds(r)}catch(t){e.onAdError(t)}})),N(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(e.countdownTimer),void e.elements.container.removeAttribute("data-badge-text");e.countdownTimer=setInterval((function(){var t=Pr(Math.max(e.manager.getRemainingTime(),0)),r="".concat(xr("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",r)}),100)})),N(this,"onAdsManagerLoaded",(function(t){if(e.enabled){var r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,e.manager=t.getAdsManager(e.player,r),e.cuePoints=e.manager.getCuePoints(),e.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){e.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return e.onAdEvent(t)}))})),e.trigger("loaded")}})),N(this,"addCuePoints",(function(){Ct(e.cuePoints)||e.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var r=e.player.elements.progress;if(xt(r)){var i=100/e.player.duration*t,o=Lt("span",{class:e.player.config.classNames.cues});o.style.left="".concat(i.toString(),"%"),r.appendChild(o)}}}))})),N(this,"onAdEvent",(function(t){var r=e.player.elements.container,i=t.getAd(),o=t.getAdData();switch(function(t){er.call(e.player,e.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:e.trigger("loaded"),e.pollCountdown(!0),i.isLinear()||(i.width=r.offsetWidth,i.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:e.manager.setVolume(e.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:e.player.ended?e.loadAds():e.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:e.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:e.pollCountdown(),e.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&e.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),N(this,"onAdError",(function(t){e.cancel(),e.player.debug.warn("Ads error",t)})),N(this,"listeners",(function(){var t,r=e.player.elements.container;e.player.on("canplay",(function(){e.addCuePoints()})),e.player.on("ended",(function(){e.loader.contentComplete()})),e.player.on("timeupdate",(function(){t=e.player.currentTime})),e.player.on("seeked",(function(){var r=e.player.currentTime;Ct(e.cuePoints)||e.cuePoints.forEach((function(i,o){t<i&&i<r&&(e.manager.discardAdBreak(),e.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){e.manager&&e.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)}))})),N(this,"play",(function(){var t=e.player.elements.container;e.managerPromise||e.resumeContent(),e.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))})),N(this,"resumeContent",(function(){e.elements.container.style.zIndex="",e.playing=!1,nr(e.player.media.play())})),N(this,"pauseContent",(function(){e.elements.container.style.zIndex=3,e.playing=!0,e.player.media.pause()})),N(this,"cancel",(function(){e.initialized&&e.resumeContent(),e.trigger("error"),e.loadAds()})),N(this,"loadAds",(function(){e.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))})),N(this,"trigger",(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var n=e.events[t];wt(n)&&n.forEach((function(t){bt(t)&&t.apply(e,i)}))})),N(this,"on",(function(t,r){return wt(e.events[t])||(e.events[t]=[]),e.events[t].push(r),e})),N(this,"startSafetyTimer",(function(t,r){e.player.debug.log("Safety timer invoked from: ".concat(r)),e.safetyTimer=setTimeout((function(){e.cancel(),e.clearSafetyTimer("startSafetyTimer()")}),t)})),N(this,"clearSafetyTimer",(function(t){vt(e.safetyTimer)||(e.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(e.safetyTimer),e.safetyTimer=null)})),this.player=r,this.config=r.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(t,r){e.on("loaded",t),e.on("error",r)})),this.load()}return l(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!Ct(t.publisherId)||St(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return St(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Ar({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId}))}}]),t}(),ie=function(t){var r=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var e={};t.split(/\r\n|\n|\r/).forEach((function(t){if(_t(e.startTime)){if(!Ct(t.trim())&&Ct(e.text)){var r,i,o,a=t.trim().split("#xywh=");r=n(a,1),e.text=r[0],a[1]&&(i=a[1].split(","),o=n(i,4),e.x=o[0],e.y=o[1],e.w=o[2],e.h=o[3])}}else{var s=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);s&&(e.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),e.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),e.text&&r.push(e)})),r},oe=function(t,r){var e={};return t>r.width/r.height?(e.width=r.width,e.height=1/t*r.width):(e.height=r.height,e.width=t*r.height),e},ne=function(){function t(r){var e=this;u(this,t),N(this,"load",(function(){e.player.elements.display.seekTooltip&&(e.player.elements.display.seekTooltip.hidden=e.enabled),e.enabled&&e.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))})),N(this,"getThumbnails",(function(){return new Promise((function(t){var r=e.player.config.previewThumbnails.src;if(Ct(r))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){e.thumbnails.sort((function(t,r){return t.height-r.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(bt(r))r((function(t){e.thumbnails=t,i()}));else{var o=(gt(r)?[r]:r).map((function(t){return e.getThumbnail(t)}));Promise.all(o).then(i)}}))})),N(this,"getThumbnail",(function(t){return new Promise((function(r){jr(t).then((function(i){var o={frames:ie(i),height:null,urlPrefix:""};o.frames[0].text.startsWith("/")||o.frames[0].text.startsWith("http://")||o.frames[0].text.startsWith("https://")||(o.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var n=new Image;n.onload=function(){o.height=n.naturalHeight,o.width=n.naturalWidth,e.thumbnails.push(o),r()},n.src=o.urlPrefix+o.frames[0].text}))}))})),N(this,"startMove",(function(t){if(e.loaded&&zt(t)&&["touchmove","mousemove"].includes(t.type)&&e.player.media.duration){if("touchmove"===t.type)e.seekTime=e.player.media.duration*(e.player.elements.inputs.seek.value/100);else{var r=e.player.elements.progress.getBoundingClientRect();e.seekTime=e.player.media.duration*(100/r.width*(t.pageX-r.left)/100),e.seekTime<0&&(e.seekTime=0),e.seekTime>e.player.media.duration-1&&(e.seekTime=e.player.media.duration-1),e.mousePosX=t.pageX,e.elements.thumb.time.innerText=Pr(e.seekTime)}e.showImageAtCurrentTime()}})),N(this,"endMove",(function(){e.toggleThumbContainer(!1,!0)})),N(this,"startScrubbing",(function(t){(vt(t.button)||!1===t.button||0===t.button)&&(e.mouseDown=!0,e.player.media.duration&&(e.toggleScrubbingContainer(!0),e.toggleThumbContainer(!1,!0),e.showImageAtCurrentTime()))})),N(this,"endScrubbing",(function(){e.mouseDown=!1,Math.ceil(e.lastTime)===Math.ceil(e.player.media.currentTime)?e.toggleScrubbingContainer(!1):rr.call(e.player,e.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))})),N(this,"listeners",(function(){e.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),e.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),e.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))})),N(this,"render",(function(){e.elements.thumb.container=Lt("div",{class:e.player.config.classNames.previewThumbnails.thumbContainer}),e.elements.thumb.imageContainer=Lt("div",{class:e.player.config.classNames.previewThumbnails.imageContainer}),e.elements.thumb.container.appendChild(e.elements.thumb.imageContainer);var t=Lt("div",{class:e.player.config.classNames.previewThumbnails.timeContainer});e.elements.thumb.time=Lt("span",{},"00:00"),t.appendChild(e.elements.thumb.time),e.elements.thumb.container.appendChild(t),xt(e.player.elements.progress)&&e.player.elements.progress.appendChild(e.elements.thumb.container),e.elements.scrubbing.container=Lt("div",{class:e.player.config.classNames.previewThumbnails.scrubbingContainer}),e.player.elements.wrapper.appendChild(e.elements.scrubbing.container)})),N(this,"destroy",(function(){e.elements.thumb.container&&e.elements.thumb.container.remove(),e.elements.scrubbing.container&&e.elements.scrubbing.container.remove()})),N(this,"showImageAtCurrentTime",(function(){e.mouseDown?e.setScrubbingContainerSize():e.setThumbContainerSizeAndPos();var t=e.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),r=t>=0,i=0;e.mouseDown||e.toggleThumbContainer(r),r&&(e.thumbnails.forEach((function(r,o){e.loadedImages.includes(r.frames[t].text)&&(i=o)})),t!==e.showingThumb&&(e.showingThumb=t,e.loadImage(i)))})),N(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e.showingThumb,i=e.thumbnails[t],o=i.urlPrefix,n=i.frames[r],a=i.frames[r].text,s=o+a;if(e.currentImageElement&&e.currentImageElement.dataset.filename===a)e.showImage(e.currentImageElement,n,t,r,a,!1),e.currentImageElement.dataset.index=r,e.removeOldImages(e.currentImageElement);else{e.loadingImage&&e.usingSprites&&(e.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=r,l.dataset.filename=a,e.showingThumbFilename=a,e.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return e.showImage(l,n,t,r,a,!0)},e.loadingImage=l,e.removeOldImages(l)}})),N(this,"showImage",(function(t,r,i,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];e.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(i,". newimg: ").concat(a)),e.setImageSizeAndOffset(t,r),a&&(e.currentImageContainer.appendChild(t),e.currentImageElement=t,e.loadedImages.includes(n)||e.loadedImages.push(n)),e.preloadNearby(o,!0).then(e.preloadNearby(o,!1)).then(e.getHigherQuality(i,t,r,n))})),N(this,"removeOldImages",(function(t){Array.from(e.currentImageContainer.children).forEach((function(r){if("img"===r.tagName.toLowerCase()){var i=e.usingSprites?500:1e3;if(r.dataset.index!==t.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;var o=e.currentImageContainer;setTimeout((function(){o.removeChild(r),e.player.debug.log("Removing thumb: ".concat(r.dataset.filename))}),i)}}}))})),N(this,"preloadNearby",(function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var o=e.thumbnails[0].frames[t].text;if(e.showingThumbFilename===o){var n;n=r?e.thumbnails[0].frames.slice(t):e.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var r=t.text;if(r!==o&&!e.loadedImages.includes(r)){a=!0,e.player.debug.log("Preloading thumb filename: ".concat(r));var n=e.thumbnails[0].urlPrefix+r,s=new Image;s.src=n,s.onload=function(){e.player.debug.log("Preloaded thumb filename: ".concat(r)),e.loadedImages.includes(r)||e.loadedImages.push(r),i()}}})),a||i()}}),300)}))})),N(this,"getHigherQuality",(function(t,r,i,o){if(t<e.thumbnails.length-1){var n=r.naturalHeight;e.usingSprites&&(n=i.h),n<e.thumbContainerHeight&&setTimeout((function(){e.showingThumbFilename===o&&(e.player.debug.log("Showing higher quality thumb for: ".concat(o)),e.loadImage(t+1))}),300)}})),N(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.player.config.classNames.previewThumbnails.thumbContainerShown;e.elements.thumb.container.classList.toggle(i,t),!t&&r&&(e.showingThumb=null,e.showingThumbFilename=null)})),N(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.player.config.classNames.previewThumbnails.scrubbingContainerShown;e.elements.scrubbing.container.classList.toggle(r,t),t||(e.showingThumb=null,e.showingThumbFilename=null)})),N(this,"determineContainerAutoSizing",(function(){(e.elements.thumb.imageContainer.clientHeight>20||e.elements.thumb.imageContainer.clientWidth>20)&&(e.sizeSpecifiedInCSS=!0)})),N(this,"setThumbContainerSizeAndPos",(function(){if(e.sizeSpecifiedInCSS){if(e.elements.thumb.imageContainer.clientHeight>20&&e.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(e.elements.thumb.imageContainer.clientHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(e.elements.thumb.imageContainer.clientHeight<20&&e.elements.thumb.imageContainer.clientWidth>20){var r=Math.floor(e.elements.thumb.imageContainer.clientWidth/e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(r,"px")}}else{var i=Math.floor(e.thumbContainerHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(e.thumbContainerHeight,"px"),e.elements.thumb.imageContainer.style.width="".concat(i,"px")}e.setThumbContainerPos()})),N(this,"setThumbContainerPos",(function(){var t=e.player.elements.progress.getBoundingClientRect(),r=e.player.elements.container.getBoundingClientRect(),i=e.elements.thumb.container,o=r.left-t.left+10,n=r.right-t.left-i.clientWidth-10,a=e.mousePosX-t.left-i.clientWidth/2;a<o&&(a=o),a>n&&(a=n),i.style.left="".concat(a,"px")})),N(this,"setScrubbingContainerSize",(function(){var t=oe(e.thumbAspectRatio,{width:e.player.media.clientWidth,height:e.player.media.clientHeight}),r=t.height;e.elements.scrubbing.container.style.width="".concat(t.width,"px"),e.elements.scrubbing.container.style.height="".concat(r,"px")})),N(this,"setImageSizeAndOffset",(function(t,r){if(e.usingSprites){var i=e.thumbContainerHeight/r.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(r.x*i,"px"),t.style.top="-".concat(r.y*i,"px")}})),this.player=r,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return l(t,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?oe(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),ae={insertElements:function(t,r){var e=this;gt(r)?Rt(t,this.media,{src:r}):wt(r)&&r.forEach((function(r){Rt(t,e.media,r)}))},change:function(t){var r=this;At(t,"sources.length")?(vr.cancelRequests.call(this),this.destroy.call(this,(function(){r.options.quality=[],Nt(r.media),r.media=null,xt(r.elements.container)&&r.elements.container.removeAttribute("class");var e=t.sources,i=t.type,o=n(e,1)[0],a=o.provider,s=void 0===a?Fr.html5:a,l="html5"===s?i:"div",p="html5"===s?{}:{src:o.src};Object.assign(r,{provider:s,type:i,supported:Gt.check(i,s,r.config.playsinline),media:Lt(l,p)}),r.elements.container.appendChild(r.media),mt(t.autoplay)&&(r.config.autoplay=t.autoplay),r.isHTML5&&(r.config.crossorigin&&r.media.setAttribute("crossorigin",""),r.config.autoplay&&r.media.setAttribute("autoplay",""),Ct(t.poster)||(r.poster=t.poster),r.config.loop.active&&r.media.setAttribute("loop",""),r.config.muted&&r.media.setAttribute("muted",""),r.config.playsinline&&r.media.setAttribute("playsinline","")),Dr.addStyleHook.call(r),r.isHTML5&&ae.insertElements.call(r,"source",e),r.config.title=t.title,re.setup.call(r),r.isHTML5&&Object.keys(t).includes("tracks")&&ae.insertElements.call(r,"track",t.tracks),(r.isHTML5||r.isEmbed&&!r.supported.ui)&&Dr.build.call(r),r.isHTML5&&r.media.load(),Ct(t.previewThumbnails)||(Object.assign(r.config.previewThumbnails,t.previewThumbnails),r.previewThumbnails&&r.previewThumbnails.loaded&&(r.previewThumbnails.destroy(),r.previewThumbnails=null),r.config.previewThumbnails.enabled&&(r.previewThumbnails=new ne(r))),r.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},se=function(){function t(r,e){var i=this;if(u(this,t),N(this,"play",(function(){return bt(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return nr(i.media.play())})),i.media.play()):null})),N(this,"pause",(function(){return i.playing&&bt(i.media.pause)?i.media.pause():null})),N(this,"togglePlay",(function(t){return(mt(t)?t:!i.playing)?i.play():i.pause()})),N(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):bt(i.media.stop)&&i.media.stop()})),N(this,"restart",(function(){i.currentTime=0})),N(this,"rewind",(function(t){i.currentTime-=_t(t)?t:i.config.seekTime})),N(this,"forward",(function(t){i.currentTime+=_t(t)?t:i.config.seekTime})),N(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(_t(t)?t:0)})),N(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),N(this,"airplay",(function(){Gt.airplay&&i.media.webkitShowPlaybackTargetPicker()})),N(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var r=Ht(i.elements.container,i.config.classNames.hideControls),e=Vt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return e&&wt(i.config.controls)&&i.config.controls.includes("settings")&&!Ct(i.config.settings)&&Or.toggleMenu.call(i,!1),e!==r&&er.call(i,i.media,e?"controlshidden":"controlsshown"),!e}return!1})),N(this,"on",(function(t,r){Zt.call(i,i.elements.container,t,r)})),N(this,"once",(function(t,r){rr.call(i,i.elements.container,t,r)})),N(this,"off",(function(t,r){tr(i.elements.container,t,r)})),N(this,"destroy",(function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var e=function(){document.body.style.overflow="",i.embed=null,r?(Object.keys(i.elements).length&&(Nt(i.elements.buttons.play),Nt(i.elements.captions),Nt(i.elements.controls),Nt(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),bt(t)&&t()):(ir.call(i),vr.cancelRequests.call(i),Dt(i.elements.original,i.elements.container),er.call(i,i.elements.original,"destroyed",!0),bt(t)&&t.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(Dr.toggleNativeControls.call(i,!0),e()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&bt(i.embed.destroy)&&i.embed.destroy(),e()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(e),setTimeout(e,200))}})),N(this,"supports",(function(t){return Gt.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Gt.touch,this.media=r,gt(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||kt(this.media)||wt(this.media))&&(this.media=this.media[0]),this.config=Mt({},Er,t.defaults,e||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Rr(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Gt),!vt(this.media)&&xt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Gt.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var n=this.media.tagName.toLowerCase(),a=null,s=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),xt(a)){if(s=Ir(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Fr.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Fr.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Ct(this.provider)||!Object.values(Fr).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=n,this.provider=Fr.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Gt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new $r(this),this.storage=new zr(this),this.media.plyr=this,xt(this.elements.container)||(this.elements.container=Lt("div",{tabindex:0}),Et(this.media,this.elements.container)),Dr.migrateStyles.call(this),Dr.addStyleHook.call(this),re.setup.call(this),this.config.debug&&Zt.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new Nr(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Dr.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new ee(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return nr(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return l(t,[{key:"isHTML5",get:function(){return this.provider===Fr.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Fr.youtube}},{key:"isVimeo",get:function(){return this.provider===Fr.vimeo}},{key:"isVideo",get:function(){return"video"===this.type}},{key:"isAudio",get:function(){return"audio"===this.type}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(t){if(this.duration){var r=_t(t)&&t>0;this.media.currentTime=r?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var t=this.media.buffered;return _t(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),r=(this.media||{}).duration,e=_t(r)&&r!==1/0?r:0;return t||e}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var r=t;gt(r)&&(r=Number(r)),_t(r)||(r=this.storage.get("volume")),_t(r)||(r=this.config.volume),r>1&&(r=1),r<0&&(r=0),this.config.volume=r,this.media.volume=r,!Ct(t)&&this.muted&&r>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var r=t;mt(r)||(r=this.storage.get("muted")),mt(r)||(r=this.config.muted),this.config.muted=r,this.media.muted=r}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(t){var r=this,e=null;_t(t)&&(e=t),_t(e)||(e=this.storage.get("speed")),_t(e)||(e=this.config.speed.selected),e=function(){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t)}(e,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=e,setTimeout((function(){r.media&&(r.media.playbackRate=e)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,d(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,d(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var r=this.config.quality,e=this.options.quality;if(e.length){var i=[!Ct(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(_t),o=!0;if(!e.includes(i)){var n=sr(e,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(n," instead")),i=n,o=!1}r.selected=i,this.media.quality=i,o&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var r=mt(t)?t:this.config.loop.active;this.config.loop.active=r,this.media.loop=r}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){ae.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return St(t)?t:this.source},set:function(t){St(t)&&(this.config.urls.download=t,Or.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(t){this.isVideo?Dr.setPoster.call(this,t,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=dr(cr.call(this));return wt(t)?t.join(":"):t},set:function(t){this.isVideo?gt(t)&&ur(t)?(this.config.ratio=dr(t),hr.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(t){var r=mt(t)?t:this.config.autoplay;this.config.autoplay=r}},{key:"toggleCaptions",value:function(t){Mr.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Mr.set.call(this,t,!1),Mr.setup()}},{key:"language",get:function(){return(Mr.getCurrentTrack.call(this)||{}).language},set:function(t){Mr.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Gt.pip?Ct(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Gt.pip){var r=mt(t)?t:!this.pip;bt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(r?"picture-in-picture":"inline"),bt(this.media.requestPictureInPicture)&&(!this.pip&&r?this.media.requestPictureInPicture():this.pip&&!r&&document.exitPictureInPicture())}}},{key:"setPreviewThumbnails",value:function(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))}}],[{key:"supported",value:function(t,r,e){return Gt.check(t,r,e)}},{key:"loadSprite",value:function(t,r){return Tr(t,r)}},{key:"setup",value:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return gt(r)?i=Array.from(document.querySelectorAll(r)):kt(r)?i=Array.from(r):wt(r)&&(i=r.filter(xt)),Ct(i)?null:i.map((function(r){return new t(r,e)}))}}]),t}();function le(t){t.on("timeupdate",(function(){return function(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&null!==(e=r.mutedPreview)&&void 0!==e&&e.enabled||function(t){var r;0!==t.currentTime&&null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&localStorage.setItem("player-progress-".concat(pe(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return ue(t)})),t.on("loadeddata",(function(){return ue(t)}))}function pe(t){var r,e;return null==t||null===(r=t.config)||void 0===r||null===(e=r.blockAttributes)||void 0===e?void 0:e.id}function ue(t){var r,e,i;if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&(null==t||null===(e=t.config)||void 0===e||null===(i=e.mutedPreview)||void 0===i||!i.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(pe(t))))}(t);return t.hls&&o>=0&&t.hls.startLoad(o),t.duration&&(o=Math.min(o,t.duration)),!o||o<1?0:(t.currentTime=o,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(o||0)}),0),o)}}se.defaults=JSON.parse(JSON.stringify(Er));var de=(null===(Wr=window)||void 0===Wr||null===(Jr=Wr.prestoPlayer)||void 0===Jr||null===(Gr=Jr.i18n)||void 0===Gr?void 0:Gr.hide_chapters)||"Hide Chapters",ce=(null===(Kr=window)||void 0===Kr||null===(Xr=Kr.prestoPlayer)||void 0===Xr||null===(Zr=Xr.i18n)||void 0===Zr?void 0:Zr.show_chapters)||"Show Chapters";const he='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(de,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(ce,"</span>\n</button>\n");var ye,ve,fe;const _e='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===(ye=window)||void 0===ye||null===(ve=ye.prestoPlayer)||void 0===ve||null===(fe=ve.i18n)||void 0===fe?void 0:fe.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function ge(t){var r,e,i,o,n,a,s,l,u,c,h,y,v,f=0,_={},g=null,m=0;if("undefined"!=typeof jQuery)if(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var r={};return t.forEach((function(t){var e,i=t.time.split(":");i.length>1&&(e=60*parseInt(i[0]));var o=parseInt(i[1])+parseInt(e);r[o]=t})),r}((null===(r=o=t.detail.plyr)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var b=(v=jQuery(o.elements.controls)).find(".plyr__time");b=b.length?b:v.find(".plyr__progress__container"),(u=n.find('[data-plyr="chapters"]')).length||(u=jQuery(he).insertAfter(b)),(s=n.find(".presto-player-toc__wrapper")).length||(s=jQuery(_e).appendTo(n)),c=s.find("[data-player-toc-cover]"),l=s.find("[data-player-toc]"),a=n.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(a);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,l.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var r=jQuery(function(t){var r=t.name,e=void 0===r?"Untitled":r,i=t.order,o=void 0===i?1:i,n=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==n&&n?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(o,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(e,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(l);r.data("presto-player-timestamp",t),_[t]=r,r.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),y=s.find("[data-chapter-item]")),z(),u.off("click"),u.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),g=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(g)),m>50&&window.clearInterval(g)}),100),c.off("click"),c.on("click",(function(){return j(!1)})),l.off("mouseleave"),l.on("mouseleave",(function t(){if(o.playing){var r=setTimeout((function(){j(!1),l.off("mouseleave",t)}),2e3);l.on("mouseenter",(function(){clearTimeout(r)}))}}))}}else o.on("loadedmetadata",ge);function x(){f=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),r=Math.max.apply(Math,d(t));y&&y.removeClass("is-highlighted"),jQuery(_[r||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(i).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var r,e,n,a,s=i[t],l=parseInt(t)/o.duration*100,p=jQuery((r={position:l,name:"".concat(s.title)},e=r.position,n=r.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===e?0:e,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(a,"</span>\n </div>"))).prependTo(h);p.attr("data-timestamp",t),p.data("timestamp",t),p.on("click",(function(){o.currentTime=parseInt(t),o.play()}))}})),s.find("[data-timeline-marker]"))}function j(t){void 0!==p(t)?s.toggleClass("is-showing",t):s.toggleClass("is-showing")}}var me;function be(t){"undefined"!=typeof jQuery&&(me=t,jQuery(me.elements.container).closest(".presto-player__wrapper"),me.on("ready",ge),me.on("controlshidden",we),me.on("controlsshown",ke))}function we(t){var r,e,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function ke(t){var r,e,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function xe(t){var r,e;return a(a(a({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(r=t.config)&&void 0!==r&&r.title?{video_title:null==t||null===(e=t.config)||void 0===e?void 0:e.title}:{})}function ze(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&r.hasPlayed||(t.config.hasPlayed=!0,null===(e=window)||void 0===e||e.gtag("event","Play",xe(t)))}function je(t){var r;null===(r=window)||void 0===r||r.gtag("event","Pause",xe(t))}function Te(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&r.hasLoaded||(t.config.hasLoaded=!0,null===(e=window)||void 0===e||e.gtag("event","Player Load",xe(t)))}var Se,Ce={25:!1,50:!1,75:!1,100:!1};function Pe(t){if(t.currentTime){var r=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(Ce).forEach((function(e){var i;!Ce[e]&&r>=parseInt(e)&&(Ce[e]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(e," Percent Played"),xe(t)))}))}}var Oe="presto-player.analytics",Ie="",Ae=0;function Me(t){var r,e;(Se=t).config.analytics&&null!==(r=window)&&void 0!==r&&null!==(e=r.wp)&&void 0!==e&&e.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",Oe)||wp.hooks.addAction("presto.nonceRefreshed",Oe,(function(t){Ie=t})),wp.hooks.hasAction("presto.playerPlay",Oe)||wp.hooks.addAction("presto.playerPlay",Oe,Ee),wp.hooks.hasAction("presto.playerEnded",Oe)||wp.hooks.addAction("presto.playerEnded",Oe,Ee),wp.hooks.hasAction("presto.playerHidden",Oe)||wp.hooks.addAction("presto.playerHidden",Oe,Ee),wp.hooks.hasAction("presto.playerPause",Oe)||wp.hooks.addAction("presto.playerPause",Oe,Ee),wp.hooks.hasAction("presto.playerSeeked",Oe)||wp.hooks.addAction("presto.playerSeeked",Oe,Ee))}function Ee(t){isNaN(null==t?void 0:t.currentTime)||Fe(function(t){var r,e;return t.currentTime>Ae&&(Ae=t.currentTime),t.currentTime>=t.duration&&(Ae=t.duration),a(a(a({video_current_time:parseInt(Ae),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(r=t.config)&&void 0!==r&&r.title?{video_title:null==t||null===(e=t.config)||void 0===e?void 0:e.title}:{})}(t))}function Fe(t){var r,e,i,o,n,a,s,l;if(Ie){var p,u,d=new FormData;d.append("action","presto_player_progress"),d.append("duration",null==t?void 0:t.video_current_time),d.append("video_id",null===(r=Se)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.id),d.append("nonce",Ie),null!==(i=window)&&void 0!==i&&null!==(o=i.prestoPlayer)&&void 0!==o&&o.debug_navigator?"undefined"!=typeof jQuery&&jQuery.ajax({type:"POST",url:null===(n=window)||void 0===n||null===(a=n.prestoPlayer)||void 0===a?void 0:a.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==t?void 0:t.video_current_time,video_id:null===(s=Se)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:Ie}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,d)}}function Le(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",ze),wp.hooks.addAction("presto.playerPause","presto-player",je),wp.hooks.addAction("presto.playerReady","presto-player",Te),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",Pe))}(),Me(t))}const Re=function(t){t.on("ready",(function(){var r,e,i,o;null==t||null===(r=t.config)||void 0===r||!r.logo||null!=t&&null!==(e=t.config)&&void 0!==e&&e.logo_added||"undefined"!=typeof jQuery&&(t.isAudio||(jQuery('<img src="'.concat(null==t||null===(i=t.config)||void 0===i?void 0:i.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(o=t.elements)||void 0===o?void 0:o.controls),t.config.logo_added=!0))}))};function Ne(t){var r;null!=t&&null!==(r=t.config)&&void 0!==r&&r.poster&&(t.poster=t.config.poster)}const Be=function(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.wp)&&void 0!==e&&e.hooks&&(t.on("ready",(function(){De("Ready",t)})),t.on("play",(function(){De("Play",t)})),t.on("playing",(function(){De("Playing",t)})),t.on("pause",(function(){De("Pause",t)})),t.on("ended",(function(){De("Ended",t)})),t.on("seeked",(function(){De("Seeked",t)})),t.on("timeupdate",(function(){De("TimeUpdate",t)})),t.on("enterfullscreen",(function(){De("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){De("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){De("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(r){var e;switch(null==r||null===(e=r.detail)||void 0===e?void 0:e.code){case 0:De("Ended",t);break;case 1:De("Play",t);break;case 2:De("Pause",t)}})))};function De(t,r){window.wp.hooks.doAction("presto.player".concat(t),r)}let $e,qe=Date.now();const Ve=t=>{var r,e;if(!t.automations)return;(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e?void 0:e.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{$e=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",o),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>o(t,100)));let i={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function o(t,r=null){var e;$e&&(null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.ajaxProgress)&&(r||(r=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((e=>{var i,o,n,a,s,l,p,u,d;const c=parseInt(e);if(!t.watched[c]&&r>=c){t.watched[c]=!0;let r=new FormData;if(r.append("action","presto_player_progress_percent"),r.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),r.append("percent",c.toString()),r.append("visit_time",qe.toString()),r.append("nonce",$e),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${c} percent watched.`),null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(u=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===u?void 0:u.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(d=null==t?void 0:t.config)||void 0===d?void 0:d.id,visit_time:qe,percent:c,nonce:$e}});else{let e=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,r);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(e?console.log("Successfully queued progress:",{id:null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.id,percent:c,visit_time:qe,nonce:$e}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:c,visit_time:qe,nonce:$e}))}}})))}};let He=!1,Ue=!1;function Qe(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const Ye=t=>{var r,e;(t.config.analytics||t.config.automations)&&(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e||e.addAction("presto.playerPlaying","presto-player",(()=>{null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(()=>{var t;He||Ue||(Ue=!0,fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`).then(Qe).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),He=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Ue=!1})))})))},We=function(t){var r=window.navigator.userAgent;if(r.match(/iPad/i)||r.match(/iPhone/i)){var e=function(t,r){for(var e,i,o,n=null==t||null===(e=t.elements)||void 0===e||null===(i=e.container)||void 0===i||null===(o=i.getRootNode())||void 0===o?void 0:o.host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)r?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active&&e(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active||e(t,!1)}))}},Je=function(){var t=y(regeneratorRuntime.mark((function t(r){var e,i,o,n,a,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof jQuery){t.next=2;break}return t.abrupt("return");case 2:if("ResizeObserver"in window!=0){t.next=7;break}return t.next=5,import("./p-97e2763b.js");case 5:window.ResizeObserver=t.sent.ResizeObserver;case 7:if(l=new ResizeObserver((function(t){var r,e=v(t);try{for(e.s();!(r=e.n()).done;){var i=r.value,o=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(o.height-48,200),"px")})}}catch(t){e.e(t)}finally{e.f()}})),null!=r&&null!==(e=r.elements)&&void 0!==e&&null!==(i=e.container)&&void 0!==i&&null!==(o=i.getRootNode())&&void 0!==o&&o.firstChild){t.next=10;break}return t.abrupt("return");case 10:if(l.observe(null==r||null===(n=r.elements)||void 0===n||null===(a=n.container)||void 0===a||null===(s=a.getRootNode())||void 0===s?void 0:s.firstChild),r){t.next=13;break}return t.abrupt("return");case 13:r.on("playing",(function(){var t,e,i,o,n=null==r||null===(t=r.elements)||void 0===t||null===(e=t.container)||void 0===e?void 0:e.getRootNode().firstChild.getBoundingClientRect();jQuery(null==r||null===(i=r.elements)||void 0===i||null===(o=i.container)||void 0===o?void 0:o.getRootNode()).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(n.height-48,200),"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();function Ge(t){var r,e,i,o,n,s,l,p,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a(a(a({},d),null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.plugin_url?{iconUrl:"".concat(null===(i=window)||void 0===i||null===(o=i.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/")+"".concat(null!=d&&null!==(n=d.preset)&&void 0!==n&&n.skin?d.preset.skin:"default")+".svg"}:{}),{chapters:(null==d?void 0:d.chapters)||[],controls:(null==d?void 0:d.controls)||[],settings:Object.keys((null==d?void 0:d.settings)||{}).length?d.settings:{}}),h=new se(t,c);return"undefined"!=typeof learndash_video_data&&import("./p-881501dc.js").then((function(t){(0,t.default)(h)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(h)})),void 0!==window.llms&&!0===(null===(p=prestoPlayer)||void 0===p||null===(u=p.lifter)||void 0===u?void 0:u.isLesson)&&import("./p-68f17ca9.js").then((function(t){(0,t.default)(h)})),Be(h),We(h),Je(h),Re(h),Ne(h),be(h),null!==(s=window)&&void 0!==s&&null!==(l=s.prestoPlayer)&&void 0!==l&&l.isAdmin||(Ye(h),Ve(c),le(h),Le(h)),h}function Ke(t){return"string"==typeof t&&t.includes(".m3u8")}let Xe=class{constructor(r){t(this,r),this.loaded=i(this,"loaded",7),this.currentMediaPlayer=i(this,"currentMediaPlayer",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.ctaActive=!1,this.emailActive=!1,this.actionBarActive=!1,this.components={cta:null,email:null,overlays:null}}async play(t=!1){this.shouldLazyLoad=!1,t&&(this.mutedPreview=!1),this.player.play()}async goToAndPlay(t){this.player.play(),this.player.currentTime=t}handleScroll(t){t.detail.id!==this.player.id&&(this.mutedPreview||this.pause())}async restart(){return this.shouldLazyLoad=!1,this.player.restart()}async pause(){return this.player.pause()}async stop(){return this.player.stop()}async fullscreenToggle(t){return this.player.fullscreen.toggle(t)}async on(t,r){return this.player.on(t,r)}async once(t,r){return this.player.once(t,r)}async off(t,r){return this.player.off(t,r)}async handleCurrentTimeChange(t){this.player&&Number.isInteger(t)&&(this.player.duration&&(this.player.currentTime=Math.min(this.player.currentTime,this.player.duration)),this.shouldLazyLoad&&(this.shouldLazyLoad=!1,await new Promise((t=>{setTimeout((async()=>{await this.initialize(),t()}),50)}))),this.player.embed&&!this.player.playing?(this.player.currentTime=t,this.player.muted=!0,this.player.play(),this.player.once("timeupdate",(()=>{this.player.pause(),this.player.currentTime=t,this.player.muted=!1}))):this.player.currentTime=t)}handleStickyChange(){(function(t){for(var r=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)r.push(t=t.parentNode);return r})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:r,branding:e,src:i,analytics:o,automations:n,autoplay:a,blockAttributes:s={},provider:l="",provider_video_id:p="",youtube:u,type:d,isAdmin:c,i18n:h,storage:y={enabled:!c,key:`presto-player-${t.id}`}}){var v,f,_,g;const m=["settings"],b=[...["youtube","vimeo"].includes(l)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((r=>((null==t?void 0:t[r])||m.includes(r))&&!b.includes(r)));(null===(v=null==s?void 0:s.mutedPreview)||void 0===v?void 0:v.enabled)&&(y={enabled:!1});let k=Object.assign(Object.assign(Object.assign(Object.assign({id:null==s?void 0:s.id,title:(null==s?void 0:s.title)||"",blockAttributes:Object.assign(Object.assign({},s),{type:d}),src:i,ajaxProgress:!0,analytics:o,preset:t,automations:n,mutedPreview:{enabled:null===(f=null==s?void 0:s.mutedPreview)||void 0===f?void 0:f.enabled},loop:{active:"loop"===(null==t?void 0:t.on_video_end)},chapters:r,controls:w,settings:["captions","quality","loop",...(null==t?void 0:t.speed)?["speed"]:[]],hideControls:null==t?void 0:t.auto_hide,captions:{active:null==t?void 0:t.captions_enabled,language:"auto",update:!1},logo:null==e?void 0:e.logo,logo_width:null==e?void 0:e.logo_width,hide_logo:null==t?void 0:t.hide_logo,lazy_load_youtube:null==t?void 0:t.lazy_load_youtube,save_player_position:!!(null==t?void 0:t.save_player_position),sticky_scroll:null==t?void 0:t.sticky_scroll,play_video_viewport:null==t?void 0:t.play_video_viewport,autoplay:!(!a||(null===(_=window.wp)||void 0===_?void 0:_.blocks))},l?{provider:l}:{}),p?{provider_video_id:p}:{}),(null==s?void 0:s.poster)?{poster:s.poster}:{}),{invertTime:!t.hasOwnProperty("invert_time")||(null==t?void 0:t.invert_time),storage:y,keyboard:{focused:!1,global:!1},resetOnEnd:!!(null==t?void 0:t.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1,playsinline:!!(null==s?void 0:s.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==u?void 0:u.noCookie),playsinline:!!(null==s?void 0:s.playsInline)},tooltips:{controls:!0,seek:!0},i18n:h});return(null===(g=null===window||void 0===window?void 0:window.wp)||void 0===g?void 0:g.hooks)&&(k=window.wp.hooks.applyFilters("presto.playerSettings",k)),k}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}getPlayerData(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}async createPlayer(){return await(t=this.getPlayerData(),r=t.config,e=t.selector,i=t.src,o=t.preload,i&&Ke(i)?import("./p-494e73f1.js").then((function(t){return(0,t.default)({config:r,selector:e,src:i,preload:o})})):new Promise((function(t){return t(new Ge(e,a({},r)))})));var t,r,e,i,o}handlePlayerElementChange(){var t;(({src:t,el:r,preload:e,currentTime:i})=>{if(!r.getAttribute("hls_loaded")&&["metadata","none"].includes(e)&&Ke(t)){if(i>0)return r.style.height=null,r.style.paddingBottom=null,void r.setAttribute("hls_loaded","1");r.style.height="0px",r.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:null===(t=null==this?void 0:this.player)||void 0===t?void 0:t.currentTime})}handleMutedPreview(t,r){var e,i,o,n,a,s,l;this.player&&!this.isAdmin&&(!t&&r&&this.player.once("timeupdate",(()=>{var t,r;this.player.loop="loop"===(null===(t=this.preset)||void 0===t?void 0:t.on_video_end),this.player.toggleCaptions(null===(r=null==this?void 0:this.preset)||void 0===r?void 0:r.captions_enabled)})),(null===(o=null===(i=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===o?void 0:o.enabled)&&(({player:t,mutedPreview:r,captions:e,progress:i,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=r,t.muted=r,t.loop=r,t.config.ajaxProgress=!r&&i,t.config.save_player_position=!r&&o;try{t.toggleCaptions(!!r&&!!e)}catch(t){}return setTimeout((()=>{ue(t)||t.restart(),setTimeout((()=>{t.muted=r,n()}),50)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(a=null===(n=this.blockAttributes)||void 0===n?void 0:n.mutedPreview)||void 0===a?void 0:a.captions),progress:null===(s=this.originalConfig)||void 0===s?void 0:s.ajaxProgress,savePosition:null===(l=this.originalConfig)||void 0===l?void 0:l.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,r,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled,this.renderDynamicOverlays(),this.renderVideoCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),Ke(this.src)&&this.player.once("playing",(()=>{this.playerEl.style.height=null,this.playerEl.style.paddingBottom=null,this.playerEl.setAttribute("hls_loaded","1")})),this.player.on("playing",(()=>this.playClass="presto-player--playing")),this.player.on("pause",(()=>this.playClass="presto-player--paused")),this.player.on("ended",(()=>this.playClass="presto-player--ended")),this.player.on("playing",(t=>!this.mutedPreview&&this.currentMediaPlayer.emit(t.detail.plyr))),"go-to-start"===(null===(e=this.preset)||void 0===e?void 0:e.on_video_end)&&this.player.on("ended",(()=>{this.restart(),"youtube"===this.provider&&this.stop()}))}handlePlayerEvents(t){t.on("ready",(t=>{this.player=t.detail.plyr,this.onPlayerReady()}))}handleLazyLoadChange(){"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((()=>{this.onReload("play")}),50)}shouldLazyLoadVideo(){var t,r,e;return"youtube"===this.provider&&!this.autoplay&&!(null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled)&&!!(null===(e=this.preset)||void 0===e?void 0:e.lazy_load_youtube)}componentWillLoad(){var t,r,e;const i=null===(t=this.el.children)||void 0===t?void 0:t[0];i&&i.classList&&i.classList.contains("presto-iframe-fallback-container")&&i.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.i18n)||(null===(e=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===e?void 0:e.i18n),this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize(),this.loaded.emit(!0)}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,r)=>{if(!r)return;const e=document.createElement("style");t.shadowRoot.append(e),e.appendChild(document.createTextNode(r))})(this.el,this.css),t}renderSkins(){var t,e,i;return"modern"===(null===(t=this.preset)||void 0===t?void 0:t.skin)?r("presto-modern-skin",null):"business"===(null===(e=this.preset)||void 0===e?void 0:e.skin)?r("presto-business-skin",null):"stacked"===(null===(i=this.preset)||void 0===i?void 0:i.skin)?r("presto-stacked-skin",null):void 0}async onReload(t){const r=await this.initialize();"play"==t&&r.on("ready",(()=>{this.play(),r.muted=!0,r.muted=!1,r.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-97e2763b.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}handleRestartVideo(){this.player.once("timeupdate",(()=>{setTimeout((()=>this.play()),500)})),this.player.restart()}handlePlayVideo(){this.play()}handlePauseVideo(t){this.pause(),t.detail&&function(t){var r,e,i,o,n;if("unknown"!==b()&&!(null===(e=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.blockAttributes)||void 0===e?void 0:e.playsinline)){"function"==typeof(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.webkitExitFullScreen)&&(null==t||t.media.webkitExitFullScreen()),"function"==typeof(null===(o=null==t?void 0:t.embed)||void 0===o?void 0:o.exitFullscreen)&&(null===(n=null==t?void 0:t.embed)||void 0===n||n.exitFullscreen());const r=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=r}))}}(this.player)}playVideoOnlyInViewport(){var t;!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}trackIntersection(){this.observer=new IntersectionObserver((t=>{this.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}handleVisibilityIntersection(t){t&&(this.handleStickyScroll(t),this.handleVisibilityPlayChange(t))}handleStickyScroll(t){var r,e;if(!(null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(e=null==this?void 0:this.player)||void 0===e?void 0:e.playing))return void(this.isSticky=!1);let i=t.boundingClientRect;if(this.isSticky=i.height<-i.top,"visible"===document.visibilityState&&this.isSticky&&this.player){const t=()=>{window.removeEventListener("scroll",t),this.player.paused&&(this.isSticky=!1)};this.player.once("pause",(()=>{window.addEventListener("scroll",t)}))}}handleVisibilityPlayChange(t){var r,e,i;if(!this.isAdmin&&(null===(r=this.preset)||void 0===r?void 0:r.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==t?void 0:t.isIntersecting)),this.player)){if(null==t?void 0:t.isIntersecting)return this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1);if("visible"!==document.visibilityState||!this.isSticky){if(null===(i=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled)return this.previouslyPlaying=!0,this.pause(),void this.player.once("playing",(()=>{this.previouslyPlaying=!0,this.pause()}));this.player.playing&&(this.previouslyPlaying=!0),this.pause()}}}renderMutedOverlay(){var t;if(this.player&&this.mutedPreview&&!this.isAdmin)return r("presto-muted-overlay",{mutedOverlay:null===(t=this.player.config.blockAttributes)||void 0===t?void 0:t.mutedOverlay,preset:this.preset,onPlayVideo:()=>{this.mutedPreview=!1,this.play()}})}renderVideo(){var t;switch(this.provider){case"vimeo":return r("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return r("presto-youtube",{onReload:t=>this.onReload(null==t?void 0:t.detail),player:this.player,getRef:t=>this.playerEl=t,lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return r("presto-bunny",{thumbnail:null===(t=null==this?void 0:this.bunny)||void 0===t?void 0:t.thumbnail,getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});case"audio":return r("presto-audio",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,preset:this.preset,src:this.src,tracks:this.tracks,mediaTitle:this.mediaTitle});default:return r("presto-video",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}renderVideoCTA(){var t,r,e,i;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(e=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===e?void 0:e.enabled)&&((null===(i=this.components.cta)||void 0===i?void 0:i.offsetParent)||"audio"!==this.provider&&(this.components.cta=document.createElement("presto-cta-overlay"),this.components.cta.direction=this.direction,this.components.cta.player=this.player,this.components.cta.preset=this.preset,this.components.cta.i18n=this.i18n,this.player.elements.container.append(this.components.cta))))}renderAudioCTA(){var t,e;if("audio"===this.provider&&this.player&&(null===(e=null===(t=this.preset)||void 0===t?void 0:t.cta)||void 0===e?void 0:e.enabled))return r("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}renderEmailOverlay(){var t,r,e;!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)||this.isAdmin||(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.logged_in)||(null===(e=this.components.email)||void 0===e?void 0:e.offsetParent)||"audio"!==this.provider&&(this.components.email=document.createElement("presto-email-overlay"),this.components.email.direction=this.direction,this.components.email.player=this.player,this.components.email.preset=this.preset,this.components.email.i18n=this.i18n,this.components.email.videoId=this.video_id,this.player.elements.container.append(this.components.email))}renderAudioEmail(){var t,e;if("audio"===this.provider&&this.player&&(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin&&!(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.logged_in))return r("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}renderActionBar(){var t,e;if((null===(e=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===e?void 0:e.enabled)&&this.player)return r("presto-action-bar",{config:this.preset.action_bar,player:null==this?void 0:this.player,youtube:this.youtube})}stickyPositionClass(){var t,r;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,r,e,i,o,n,a;this.player&&((null===(t=null==this?void 0:this.overlaysComponent)||void 0===t?void 0:t.offsetParent)||(this.overlaysComponent=document.createElement("presto-dynamic-overlays"),this.overlaysComponent.addEventListener("reloadComponent",(()=>{this.overlaysComponent.remove(),this.overlaysComponent=document.createElement("presto-dynamic-overlays")}),{once:!0})),this.overlaysComponent.style.cssText="display: block !important; opacity: 1 !important; visibility: visible !important;",this.overlaysComponent.overlays=this.overlays,this.overlaysComponent.preset=this.preset,this.overlaysComponent.player=this.player,this.overlaysComponent.enabled=!(null===(i=null===(e=null===(r=this.player)||void 0===r?void 0:r.config)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||null===(a=null===(n=this.player.elements)||void 0===n?void 0:n.wrapper)||void 0===a||a.append(this.overlaysComponent))}handleCtaStateChange(t){this.ctaActive=t.detail}handleEmailStateChange(t){this.emailActive=t.detail}handleActionBarStateChange(t){this.actionBarActive=t.detail}render(){var t,e,i,n,a,s,l,p;return r(o,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},r("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"audio"===this.provider?"presto-sticky-audio":"presto-sticky":""}\n ${"audio"!==this.provider?this.stickyPositionClass():""}\n ${"rtl"===this.direction?"rtl":""}\n ${!0===this.ctaActive?"cta-active":""}\n ${!0===this.emailActive?"email-active":""}\n ${!0===this.actionBarActive&&(null===(e=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===e?void 0:e.enabled)?"action-bar-active":""}\n ${!!(null===(i=this.preset)||void 0===i?void 0:i.skin)&&`skin-${null===(n=this.preset)||void 0===n?void 0:n.skin}`}\n ${(null===(a=this.preset)||void 0===a?void 0:a.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(s=this.preset)||void 0===s?void 0:s.caption_style)?`caption-style-${null===(l=this.preset)||void 0===l?void 0:l.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}\n ${(null===(p=this.preset)||void 0===p?void 0:p.play)&&!this.preset.rewind?"rewind-inactive":""}\n ${this.classes||""}`},r("div",null,r("slot",{name:"player-start"}),r("slot",{name:"player-before-video"}),this.renderVideo(),r("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),this.renderAudioCTA(),this.renderAudioEmail(),this.renderSkins(),r("slot",{name:"player-end"}))))}get el(){return e(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Xe.style='@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2 * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads:empty::after{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.plyr--html5 .plyr__video-wrapper,.plyr--youtube .plyr__video-wrapper{height:100%}.plyr__video-wrapper{z-index:1}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr{border-radius:var(--presto-player-border-radius)}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper .presto-player__wrapper .plyr__control--overlaid{z-index:4}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--video .plyr__controls{padding-bottom:calc(var(--plyr-control-spacing, 10px) + env(safe-area-inset-bottom))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:100%;max-width:100%;background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper.action-bar-active .presto-audio__poster img{border-bottom-left-radius:0px}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.presto-player--hide-scrim .plyr__controls{background:transparent}.presto-player__wrapper presto-audio .presto-player-toc{max-height:350px}.presto-player__wrapper presto-action-bar{position:relative;z-index:1}.presto-sticky-parent{z-index:99998}.presto-sticky-audio{position:fixed;z-index:3000;width:100vw;bottom:0px;right:0px;left:0px}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;align-items:center;justify-content:center}.presto-player__muted-overlay img{display:none}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay.presto-player--playing .presto-player__muted-overlay img{display:block}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper .plyr__captions{z-index:1}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}@media (min-aspect-ratio: 16/9){.hide-youtube-ui presto-youtube .plyr:fullscreen .plyr__video-wrapper{width:177.7777777778vh}}.cta-email-active,.cta-email-active .presto-audio__wrapper{min-height:140px}.cta-active,.email-active,.cta-active .presto-audio__wrapper,.email-active .presto-audio__wrapper{min-height:140px}.action-bar-active .plyr{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}';const Ze=function(t,r){return d(r)};let ti=class{constructor(r){t(this,r),this.prestoBlur=i(this,"prestoBlur",7),this.prestoFocus=i(this,"prestoFocus",7),this.hasFocus=!1,this.hasLabel=!1,this.hasPrefix=!1,this.hasSuffix=!1,this.type="default",this.size="medium",this.full=!1,this.disabled=!1,this.submit=!1}componentWillLoad(){this.handleSlotChange()}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}handleSlotChange(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}handleBlur(){this.hasFocus=!1,this.prestoBlur.emit()}handleFocus(){this.hasFocus=!0,this.prestoFocus.emit()}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}render(){const t=!!this.href,e=r(Ze,null,r("span",{part:"prefix",class:"button__prefix"},r("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),r("span",{part:"label",class:"button__label"},r("slot",{onSlotchange:()=>this.handleSlotChange()})),r("span",{part:"suffix",class:"button__suffix"},r("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),i=r("button",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},e),o=r("a",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},e);return t?o:i}get button(){return e(this)}};ti.style=":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25em)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875em);height:var(--presto-player-button-height-small, 1.875em);line-height:calc(var(--presto-player-button-height-small, 1.875em) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1em);height:var(--presto-player-button-height-medium, 2.5em);line-height:calc(var(--presto-player-button-height-medium, 2.5em) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25em);height:var(--presto-player-button-height-large, 3.125em);line-height:calc(var(--presto-player-button-height-large, 3.125em) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75em)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1em)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25em)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}";let ri=class{constructor(r){t(this,r)}render(){return r("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};ri.style=":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";let ei=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};ei.style=".skin-stacked .plyr__controls{flex-wrap:wrap}.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.skin-stacked .plyr__controls{justify-content:flex-start}.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:50%}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}";let ii=class{constructor(r){t(this,r)}handleClick(t){t.preventDefault();const r=document.body.querySelector("presto-player");r&&r.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(t){let r,e=t.split(":");return e.length>1&&(r=60*parseInt(e[0])),parseInt(e[1])+parseInt(r)}render(){return r("a",{href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},r("slot",null,this.time))}};ii.style=":host{display:inline}";let oi=class{constructor(r){t(this,r)}render(){return r("video",{class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},r("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>r("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))}};oi.style=":host{display:block}";let ni=class{constructor(r){t(this,r)}getId(t){const r=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==r?void 0:r[5])||""}parseHash(t){const r=t.match(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*\&*h=|\/)+(?<hash>[\d,a-f]+)/);return r?r.groups.hash:null}render(){if(this.src)return"Android"!==b()||(t=window.navigator.standalone,e=window.navigator.userAgent.toLowerCase(),i=/safari/.test(e),/iphone|ipod|ipad/.test(e)?!t&&i||t||i:!e.includes("wv"))?r("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src),"data-plyr-embed-hash":this.parseHash(this.src)}):r("div",{class:"presto-iframe-fallback-container"},r("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?h=${this.parseHash(this.src)}&amp;loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,e,i}};ni.style=":host{display:block}";let ai=class{constructor(r){t(this,r),this.reload=i(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var r,e,i,o,n;1===t.detail.code&&((null===(n=null===(o=null===(i=null===(e=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr)||void 0===e?void 0:e.config)||void 0===i?void 0:i.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.enabled)||(this.player.muted=!1))}))}getId(t){var r;const e=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return e&&11===(null===(r=null==e?void 0:e[2])||void 0===r?void 0:r.length)?e[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let r=null===(t=window.navigator)||void 0===t?void 0:t.standalone,e=window.navigator.userAgent.toLowerCase(),i=/safari/.test(e),o=/iphone|ipod|ipad/.test(e);this.isWebView=o?!r&&!i:e.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===b()&&(this.lazyLoad=!1)}render(){return this.isWebView?r("div",{class:"fallback-container"},r("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?r("div",null,r("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),r("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):r("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}static get watchers(){return{player:["handlePlayerChange"]}}};ai.style=":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0 !important;padding-bottom:56.25%;position:relative}}";let si=class{constructor(r){t(this,r),this.layout="default"}waitForApi(t){var r=setInterval((function(){var e;(null===(e=null===window||void 0===window?void 0:window.gapi)||void 0===e?void 0:e.ytsubscribe)&&(clearInterval(r),t())}),50)}componentDidLoad(){const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";const r=document.getElementsByTagName("script")[0];r&&r.parentNode.insertBefore(t,r),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return r("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};si.style=":host{display:block}";export{P as C,E,Ge as P,f as a,w as b,k as c,x as d,z as e,j as f,T as g,S as h,O as i,I as j,A as k,M as l,F as m,L as n,Xe as o,ti as p,ri as q,ue as r,ei as s,ii as t,oi as u,ni as v,ai as w,si as x}
1
+ import{r as t,h as r,g as e,c as i,H as o,_ as n,a,d as s,e as l,f as p,i as u,j as d,k as c,l as h,m as y,n as v}from"./p-db13d552.js";let f=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){return r("presto-action-bar-controller",{ended:this.ended,config:this.config,currentTime:this.currentTime,duration:this.duration,direction:this.direction,youtube:this.youtube})}get el(){return e(this)}};function _({current:t,duration:r,showAfter:e=null}){if(0===e)return!0;if(null===e||!r)return!1;if(t===e)return!0;let i=t/r*100;return 99.9<i&&(i=100),i>=e}function g(t){if(!t)return;let r,e,i,o;if(t.match(/^rgb/)){const o=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);r=o[1],e=o[2],i=o[3]}else{const o=+("0x"+t.slice(1).replace(t.length<5&&/./g,"$&$&"));r=o>>16,e=o>>8&255,i=255&o}return o=Math.sqrt(r*r*.299+e*e*.587+i*i*.114),o>127.5?"light":"dark"}function m(t){let r,e=t.split(":");return e.length>1&&(r=60*parseInt(e[0])),parseInt(e[1])+parseInt(r)}function b(){var t=navigator.userAgent||navigator.vendor;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?"Android":"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)?"iOS":"unknown"}f.style=":host{display:block}";let w=class{constructor(r){t(this,r),this.actionBarStateChange=i(this,"actionBarStateChange",7),this.show=!1,this.youtubeRenderKey=1,this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleDuration(){this.handleTime()}handleEnded(t){var r;if(t){if(100!==(null===(r=null==this?void 0:this.config)||void 0===r?void 0:r.percentage_start))return;this.show=!0}}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleTime(){this.checkTime()}checkTime(){var t,r;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||_({current:this.currentTime,duration:this.duration,showAfter:null===(r=this.config)||void 0===r?void 0:r.percentage_start})}handleButtonCountChange(t,r){(null==t?void 0:t.button_count)!==(null==r?void 0:r.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}youtubeButton(){var t,e,i,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(e=this.youtube)||void 0===e?void 0:e.channelId))return r("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(i=this.youtube)||void 0===i?void 0:i.channelId,showCount:null===(o=this.config)||void 0===o?void 0:o.button_count})}customButton(){var t,e,i,o,n,a,s,l,p,u,d;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return r("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(e=this.config)||void 0===e?void 0:e.button_link)||void 0===i?void 0:i.url,target:(null===(n=null===(o=this.config)||void 0===o?void 0:o.button_link)||void 0===n?void 0:n.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(a=this.config)||void 0===a?void 0:a.button_radius}px`},(null===(s=this.config)||void 0===s?void 0:s.button_color)?{"--presto-player-button-color":`${null===(l=this.config)||void 0===l?void 0:l.button_color}`}:{}),(null===(p=this.config)||void 0===p?void 0:p.button_text_color)?{"--presto-player-button-text":`${null===(u=this.config)||void 0===u?void 0:u.button_text_color}`}:{})},null===(d=this.config)||void 0===d?void 0:d.button_text)}handleCtaStateChange(t){this.actionBarStateChange.emit(t)}render(){var t,e;return r("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(t=this.config)||void 0===t?void 0:t.background_color)||"#1d1d1d"}},null===(e=this.config)||void 0===e?void 0:e.text,r("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return e(this)}static get watchers(){return{duration:["handleDuration","handlePercentagePassed"],ended:["handleEnded"],currentTime:["handlePercentagePassed","handleTime"],config:["handleButtonCountChange"],show:["handleCtaStateChange"]}}};w.style=":host{display:block}";let k=class{constructor(r){t(this,r)}render(){return r("div",{class:{bar:!0,"bar--open":this.open}},r("span",{part:"content",class:"bar__content"},r("slot",null)),r("span",{part:"button",class:"bar__button"},r("slot",{name:"button"})))}};k.style=":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0);border-radius:0px 0px var(--presto-player-border-radius) var(--presto-player-border-radius)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}";let x=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7)}renderPosterImage(){if(this.poster)return r("div",{class:"presto-audio__poster"},r("img",{src:this.poster}))}hasPosterArea(){var t;return!!this.poster||!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"])}renderMobilePoster(){var t;return r("div",{class:"presto-audio__poster-wrapper-mobile"},!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&this.renderLargePlay("presto-audio__large-play-button is-relative"),r("div",{class:"presto-audio__mobile-title"},this.mediaTitle))}renderLargePlay(t="presto-audio__large-play-button"){return r("div",{class:t,onClick:()=>{this.player.playing?this.pauseVideo.emit():this.playVideo.emit()}},r("svg",{class:"presto-audio__icon-play",width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M15.5588 9.00005L0.117662 17.915L0.117662 0.0850823L15.5588 9.00005Z"})),r("svg",{class:"presto-audio__icon-pause",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("rect",{width:"5",height:"17"}),r("rect",{x:"12",width:"5",height:"17"})))}componentDidLoad(){"ResizeObserver"in window&&new ResizeObserver((t=>{t.forEach((t=>this.width=t.contentRect.width))})).observe(this.el)}render(){var t,e,i,o,n;return r("div",{ref:t=>this.el=t,class:{"presto-audio__wrapper":!0,"has-poster":!!this.poster,"has-play-large":!!(null===(t=this.preset)||void 0===t?void 0:t["play-large"]),"is-playing":null===(e=this.player)||void 0===e?void 0:e.playing,"has-light-background":"light"===g(null===(i=this.preset)||void 0===i?void 0:i.background_color),"has-dark-background":"dark"===g(null===(o=this.preset)||void 0===o?void 0:o.background_color),"breakpoint-small":this.width<520,"skin-stacked":this.width<520,"breakpoint-large":this.width>=520}},this.hasPosterArea()&&r("div",{class:"presto-audio__poster-wrapper"},!!(null===(n=this.preset)||void 0===n?void 0:n["play-large"])&&r("div",{class:"presto-audio__large-play-wrapper"},this.renderLargePlay()),this.renderPosterImage()),this.hasPosterArea()&&this.renderMobilePoster(),r("div",{class:"presto-audio__controls-wrapper"},r("div",{class:"presto-audio__title"},this.mediaTitle),r("audio",{part:"audio-player",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster},r("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>r("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))))}};x.style=":host{display:block}.presto-audio__wrapper{border-radius:var(--presto-player-border-radius, 0px)}.presto-audio__wrapper .plyr--audio .plyr__controls{padding:0}.presto-audio__wrapper .plyr--audio .plyr__control.plyr__tab-focus,.presto-audio__wrapper .plyr--audio .plyr__control:hover,.presto-audio__wrapper .plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.presto-audio__wrapper{display:flex;background:var(--plyr-audio-controls-background, #fff)}.presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2);flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0}.has-poster .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 3)}.has-play-large:not(.has-poster) .presto-audio__controls-wrapper{padding-left:0}.presto-audio__title,.presto-audio__mobile-title{font-size:18px;font-weight:500;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--plyr-audio-control-color)}.presto-audio__title{margin:calc(var(--plyr-control-spacing, 10px) / 2);margin-top:0}.presto-audio__poster-wrapper{position:relative;width:100px;min-height:100px;flex:0 0 100px}.presto-audio__poster-wrapper img{border-radius:var(--presto-player-border-radius, 0px) 0 0 var(--presto-player-border-radius, 0px);width:100%;height:100%;object-fit:cover;aspect-ratio:1;display:block}.has-poster .presto-audio__poster-wrapper{width:140px;height:140px;flex:0 0 140px}.presto-audio__poster{width:100%;height:100%}.presto-audio__large-play-button{user-select:none;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:center;top:50%;left:50%;transform:translate(-50%, -50%);width:50px;height:50px;color:white;border-radius:100%;background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__large-play-button.is-relative{position:relative;top:auto;left:auto;transform:none}.has-light-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-controls-background);color:var(--plyr-audio-control-color)}.has-dark-background.has-poster .presto-audio__large-play-button{background:var(--plyr-audio-control-color);color:var(--plyr-audio-controls-background)}.presto-audio__icon-play,.presto-audio__icon-pause{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);fill:currentColor;display:block;transition:opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;margin:0 auto;text-align:center}.presto-audio__icon-pause{opacity:0;visibility:hidden}.presto-audio__wrapper.is-playing .presto-audio__icon-pause{opacity:1;visibility:visible}.presto-audio__icon-play{margin-left:2px;opacity:1;visibility:visible}.presto-audio__wrapper.is-playing .presto-audio__icon-play{opacity:0;visibility:hidden}.presto-audio__poster-wrapper-mobile{display:none;min-width:0}.presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 50px}.presto-audio__wrapper.breakpoint-small{flex-direction:column}.presto-audio__wrapper.breakpoint-small .presto-audio__controls-wrapper{padding:calc(var(--plyr-control-spacing, 10px) * 2)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__title{text-align:center;margin:calc(var(--plyr-control-spacing, 10px) * 1.5)}.presto-audio__wrapper.breakpoint-small.has-poster .presto-audio__poster-wrapper{margin:30px auto auto auto;overflow:hidden;border-radius:var(--presto-player-border-radius, 0px);width:225px;height:225px;flex:0 0 225px}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper,.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__title{display:none}.presto-audio__wrapper.breakpoint-small.has-play-large:not(.has-poster) .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.skin-stacked.presto-sticky-audio .presto-audio__wrapper{height:115px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.skin-stacked.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:115px;height:115px;flex:0 0 115px}.presto-sticky-audio .presto-audio__wrapper{height:100px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:20px}.presto-sticky-audio .has-poster .presto-audio__poster-wrapper{width:100px;height:100px;flex:0 0 100px}.action-bar-active .presto-audio__wrapper{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}@media screen and (max-width: 520px){.presto-sticky-audio .presto-audio__poster-wrapper-mobile{display:flex;align-items:center;gap:1em;margin-bottom:calc(var(--plyr-control-spacing, 10px) * -1);padding:calc(var(--plyr-control-spacing, 10px) * 2) calc(var(--plyr-control-spacing, 10px) * 2) 0 calc(var(--plyr-control-spacing, 10px) * 2)}.presto-sticky-audio .presto-audio__poster-wrapper,.presto-sticky-audio .presto-audio__title{display:none}.presto-sticky-audio .presto-audio__wrapper{height:140px}.presto-sticky-audio .has-poster .presto-audio__controls-wrapper{padding:0px}.presto-sticky-audio .presto-audio__poster-wrapper-mobile .presto-audio__large-play-button{flex:0 0 40px;height:40px}}";let z=class{constructor(r){t(this,r)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return r("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}},j=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};j.style='.skin-business.presto-player__wrapper.rewind-inactive .plyr__controls .plyr__controls__item:nth-child(2)::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 16px) * -4))}.skin-business.presto-player__wrapper .presto-player-progress__marker{border-radius:0;width:15px;height:15px;border-width:1px}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back),.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back){background-color:transparent;color:var(--plyr-color-main)}.skin-business.presto-player__wrapper .plyr__control[data-plyr]:hover:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:focus:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play],.skin-business.presto-player__wrapper .plyr__control[data-plyr]:active:not([role*=menuitem]):not(.plyr__control--back)[data-plyr=play]{background-color:var(--plyr-color-main);color:white}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]{border-radius:4px;background:#000000;opacity:75%}.skin-business.presto-player__wrapper .plyr__control--overlaid[data-plyr=play]:hover{background-color:var(--plyr-color-main);color:white;opacity:100%}.skin-business.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward]{border-radius:0px}.skin-business.presto-player__wrapper .plyr__progress{margin:0px 20px 0 5px}.skin-business.presto-player__wrapper .plyr__progress input[type=range]{height:32px;border-radius:0px;cursor:pointer}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):first-child::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker):last-child::before{border-radius:0px var(--plyr-control-radius, 3px) var(--plyr-control-radius, 3px) 0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]{order:-1;margin-right:5px;padding:11px 20px 11px 20px;top:-4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__control[data-plyr=play]::before{border-radius:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind]::before{border-radius:var(--plyr-control-radius, 3px) 0px 0px var(--plyr-control-radius, 3px)}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not([data-plyr=play]){margin:0}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen]{padding:4px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{height:24px;width:24px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker){position:relative}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker).plyr__time{height:32px;padding-top:4.5px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item:not(.presto-player-progress__marker)::before{content:"";background:#000000;position:absolute;top:0px;left:0;right:0;bottom:0px;opacity:0.76;z-index:-1}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{box-shadow:none;color:var(--plyr-color-main);height:9px;outline:1px solid #878787a6;outline-offset:2px;border-radius:0px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{visibility:hidden}.skin-business.presto-player__wrapper .plyr__progress__buffer::-webkit-progress-value{position:relative;border-radius:0px;height:9px;top:-2px}.skin-business.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background-color:transparent}@media screen and (max-width: 480px){.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item.plyr__time{padding:1.5%}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=play]{padding:8px;top:0px}.skin-business.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px}}';let T=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return r("presto-cta-overlay-controller",{ended:this.ended,currentTime:this.currentTime,duration:this.duration,direction:this.direction,cta:null===(t=this.preset)||void 0===t?void 0:t.cta,i18n:this.i18n,provider:this.provider})}};T.style=":host{display:block}";let S=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.ctaStateChange=i(this,"ctaStateChange",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var r;if(t){if(100!==(null===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.percentage))return;this.show=!0}}handleDuration(){var t;this.enabled=!this.skipped&&(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.enabled),this.handleTime()}handlePercentagePassed(){this.percentagePassed=this.currentTime/this.duration*100}handleEnabled(){this.show&&(this.skipped||this.pauseVideo.emit(!0))}handleTime(){var t;this.enabled&&(this.skipped||100!==(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}checkTime(){var t;this.show=_({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.percentage)||0})}skip(){this.skipped=!0,this.show=!1,this.playVideo.emit()}rewatch(){this.ended=!1,this.show=!1,this.restartVideo.emit()}handleCtaStateChange(t){this.ctaStateChange.emit(t)}render(){var t,e,i,o,n,a,s,l,p,u,d,c,h,y;if(this.show)return r("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":`${null===(t=null==this?void 0:this.cta)||void 0===t?void 0:t.button_radius}px`},(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.background_opacity)?{"--presto-player-cta-background-opacity":""+(null===(i=null==this?void 0:this.cta)||void 0===i?void 0:i.background_opacity)/100}:{}),(null===(o=null==this?void 0:this.cta)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":`${null===(n=null==this?void 0:this.cta)||void 0===n?void 0:n.button_color}`}:{}),(null===(a=null==this?void 0:this.cta)||void 0===a?void 0:a.button_text_color)?{"--presto-player-button-text":`${null===(s=null==this?void 0:this.cta)||void 0===s?void 0:s.button_text_color}`}:{}),direction:this.direction,class:"cta-overlay",i18n:this.i18n,headline:null===(l=null==this?void 0:this.cta)||void 0===l?void 0:l.headline,"bottom-text":null===(p=null==this?void 0:this.cta)||void 0===p?void 0:p.bottom_text,"show-button":null===(u=null==this?void 0:this.cta)||void 0===u?void 0:u.show_button,buttonLink:null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.button_link,allowSkip:!this.ended&&(null===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(y=null==this?void 0:this.cta)||void 0===y?void 0:y.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch(),provider:this.provider})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"],show:["handleCtaStateChange"]}}};S.style=":host{display:block}";const C=function(t,r,e){var i=function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},e),o=function(t){var e=r||1,o=function(){var r;t.style.fontSize=Math.max(Math.min(((null==i||null===(r=i.container)||void 0===r?void 0:r.clientWidth)||0)/(10*e),parseFloat(i.maxFontSize)),parseFloat(i.minFontSize))+"px"};if(o(),"ResizeObserver"in window==0)var n=import("./p-97e2763b.js").then((function(){window.ResizeObserver=n.ResizeObserver,new ResizeObserver(o).observe(i.container)}));else new ResizeObserver(o).observe(i.container)};if(t.length)for(var n=0;n<t.length;n++)o(t[n]);else o(t);return t};let P=class{constructor(r){t(this,r),this.skip=i(this,"skip",7),this.rewatch=i(this,"rewatch",7)}componentDidLoad(){this.isAudioProvider="audio"===(this.type||this.provider),C(this.textInput,3,{maxFontSize:!0===this.isAudioProvider?15:20,minFontSize:8})}handleCTAClick(t){var r;(null===(r=this.buttonLink)||void 0===r?void 0:r.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,r,e;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(r=this.buttonLink)||void 0===r?void 0:r.url,"_blank"):window.location.href=null===(e=this.buttonLink)||void 0===e?void 0:e.url}render(){var t,e,i,o,n;return r("div",{class:"wrapper",ref:t=>this.textInput=t},r("div",{onClick:t=>this.handleCTAClick(t),class:`overlay ${"rtl"===this.direction?"rtl":""} ${(null===(t=this.buttonLink)||void 0===t?void 0:t.url)?"has-link":""}`},r("div",{class:this.isAudioProvider?"content is-centered":"content"},r("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&r("p",{class:this.isAudioProvider&&"is-small",part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&r("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(e=null==this?void 0:this.buttonLink)||void 0===e?void 0:e.url,target:(null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&r("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},r("polyline",{points:"9 14 4 9 9 4"}),r("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.rewatch),!!this.allowSkip&&r("div",{class:"skip",onClick:t=>{t.preventDefault(),this.skip.emit()}},null===(n=null==this?void 0:this.i18n)||void 0===n?void 0:n.skip," →"))}};P.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}p.is-small{font-size:0.85em;margin:1.5em 0px 0px;line-height:0.1em;opacity:0.75}.is-centered{text-align:center}';let O=class{constructor(r){t(this,r),this.position="top-right"}closestElement(t,r){return r&&r!=document&&r!=window&&r.closest(t)||r&&this.closestElement(t,r.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);C(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return r(this.href?"a":"span",{class:{"overlay-text":!0,"overlay--top-left":"top-left"===this.position,"overlay--top-right":"top-right"===this.position},href:this.href,target:this.target,part:"overlay-text",ref:t=>this.text=t},r("slot",null))}get el(){return e(this)}};O.style=":host{display:block}.overlay-text{text-decoration:none;display:inline-block;user-select:none;line-height:1;opacity:var(--presto-dynamic-overlay-opacity, 1);font-size:var(--presto-dynamic-overlay-font-size, 18px);padding:var(--presto-dynamic-overlay-padding, 0.65em 0.85em);font-weight:var(--presto-dynamic-overlay-font-weight, 500);border-radius:var(--presto-dynamic-overlay-radius, 0.25em);background:var(--presto-dynamic-overlay-background, rgba(0, 0, 0, 0.8));color:var(--presto-dynamic-overlay-color, #fff);opacity:var(--presto-dynamic-overlay-opacity, 1);word-break:break-word}a.overlay-text{cursor:pointer}";let I=class{constructor(r){t(this,r),this.reloadComponent=i(this,"reloadComponent",7),this.watermarkRef={left:null,right:null},this.destroy=!1,this.refs={}}componentDidLoad(){this.player&&this.player.on("timeupdate",(t=>{this.currentTime=t.detail.plyr.currentTime,this.checkValidity()}))}checkValidity(){var t,r,e,i,o,n,a,s,l,p;this.player.playing&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(e=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===e?void 0:e.enabled))&&((null===(i=this.container)||void 0===i?void 0:i.offsetParent)&&(null===(o=this.topLeft)||void 0===o?void 0:o.offsetParent)&&(null===(n=this.topRight)||void 0===n?void 0:n.offsetParent)||this.reloadComponent.emit(),Object.keys(this.refs||{}).forEach((t=>{const{overlay:r,component:e}=this.refs[t];this.checkComponent(e,r.text,(()=>this.reloadComponent.emit()))})),this.shouldShowWatermark("top-left")&&this.watermarkRef.left&&this.checkComponent(this.watermarkRef.left,null===(s=null===(a=this.preset)||void 0===a?void 0:a.watermark)||void 0===s?void 0:s.text,(()=>this.reloadComponent.emit())),this.shouldShowWatermark("top-right")&&this.watermarkRef.right&&this.checkComponent(this.watermarkRef.right,null===(p=null===(l=this.preset)||void 0===l?void 0:l.watermark)||void 0===p?void 0:p.text,(()=>this.reloadComponent.emit())))}checkComponent(t,r,e){if(!(null==t?void 0:t.offsetParent))return e();if(!t.shadowRoot.querySelector("slot"))return e();if(this.player&&this.player.playing){const i=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(i){if(i.parentElement.innerHTML!=r)return e();const t=getComputedStyle(i.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return e();const o=function(t){var r=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return r?[r[1],r[2],r[3],"1"]:(r=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[r[1],r[2],r[3],r[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return e()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<m(null==t?void 0:t.startTime)||this.currentTime>m(null==t?void 0:t.endTime))}renderOverlay(t){var e,i;return r("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:r=>this.refs[t.id]={overlay:t,component:r},key:t.id,position:t.position,href:null===(e=null==t?void 0:t.link)||void 0===e?void 0:e.url,target:(null===(i=null==t?void 0:t.link)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",innerHTML:this.shouldShowOverlay(t)?t.text:"",style:{"--presto-dynamic-overlay-color":(null==t?void 0:t.color)||"#fff","--presto-dynamic-overlay-background":(null==t?void 0:t.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null==t?void 0:t.opacity)?(t.opacity/100).toString():"1"}})}shouldShowWatermark(t){var r,e,i;if(!(null===(e=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===e?void 0:e.enabled))return!1;const o=null===(i=this.preset)||void 0===i?void 0:i.watermark;return"randomize"===o.position?Math.floor((this.player.currentTime||0)/10)%2==0?"top-left"===t:"top-right"===t:o.position===t||!o.position&&"top-right"===t}render(){var t,e,i,o,n,a,s,l,p,u,d;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===i?void 0:i.enabled)))return r("div",{class:"overlays",ref:t=>this.container=t},r("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&r("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.left=t,style:{"--presto-dynamic-overlay-color":(null===(o=this.preset.watermark)||void 0===o?void 0:o.color)||"#fff","--presto-dynamic-overlay-background":(null===(n=this.preset.watermark)||void 0===n?void 0:n.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(a=this.preset.watermark)||void 0===a?void 0:a.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-left",innerHTML:this.preset.watermark.text}),!!(null===(s=null==this?void 0:this.overlays)||void 0===s?void 0:s.length)&&this.overlays.map((t=>"top-left"!==t.position?"":this.renderOverlay(t)))),r("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&r("presto-dynamic-overlay-ui",{ref:t=>this.watermarkRef.right=t,style:{"--presto-dynamic-overlay-color":(null===(l=this.preset.watermark)||void 0===l?void 0:l.color)||"#fff","--presto-dynamic-overlay-background":(null===(p=this.preset.watermark)||void 0===p?void 0:p.backgroundColor)||"#333","--presto-dynamic-overlay-opacity":(null===(u=this.preset.watermark)||void 0===u?void 0:u.opacity)?(this.preset.watermark.opacity/100).toString():"1"},class:"visible",position:"top-right",innerHTML:this.preset.watermark.text}),!!(null===(d=null==this?void 0:this.overlays)||void 0===d?void 0:d.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return e(this)}};I.style=".top-left,.top-right{position:absolute;display:block;padding:20px;max-width:45%;z-index:20;display:flex;flex-direction:column;flex-wrap:wrap}.top-left{top:0;left:0}.top-right{top:0;right:0;align-items:flex-end}presto-dynamic-overlay-ui{overflow:hidden;height:0;opacity:0;transition:height 0ms 400ms, opacity 400ms 0ms}presto-dynamic-overlay-ui.visible{margin-bottom:10px;height:auto;opacity:1;transition:height 0ms 0ms, opacity 500ms 0ms}";let A=class{constructor(r){t(this,r)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var r,e;this.currentTime=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.currentTime,this.duration=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t,e;return r("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,presetId:null===(t=this.preset)||void 0===t?void 0:t.id,emailCollection:null===(e=this.preset)||void 0===e?void 0:e.email_collection,i18n:this.i18n,provider:this.provider})}};A.style=":host{display:block}";let M=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.emailStateChange=i(this,"emailStateChange",7),this.percentagePassed=0}setStorage(t){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify({[this.videoId]:t}))}getStorage(){return window.localStorage.getItem("presto.videos.email_collection")}componentWillLoad(){this.handleDuration()}handleDuration(){var t;this.enabled=!this.getStorage()&&(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.enabled),this.handleTimeCheck()}handleTimeCheck(){this.enabled&&(this.getStorage()||this.checkTime())}handleShowChange(){this.show&&this.pauseVideo.emit(!0)}checkTime(){var t;this.show=_({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.percentage)||0})}async getNonce(){var t;return fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`)}async submit(t){var r;this.loading=!0,this.error="";const e=await this.getNonce(),{data:i}=await e.json();try{let e=await fetch(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:i,preset_id:this.presetId,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});const{success:o,data:n}=await e.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const r=null==t?void 0:t[0];r&&"string"==typeof r&&(this.error=r)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}handleEmailStateChange(t){this.emailStateChange.emit(t)}render(){var t,e,i,o,n,a,s,l;if(this.show)return r("presto-email-overlay-ui",{style:Object.assign(Object.assign({},(null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.button_color)?{"--presto-player-button-color":`${null===(e=null==this?void 0:this.emailCollection)||void 0===e?void 0:e.button_color}`}:{}),(null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.button_text_color)?{"--presto-player-button-text":`${null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text_color}`}:{}),direction:this.direction,class:"email-overlay",headline:null===(n=null==this?void 0:this.emailCollection)||void 0===n?void 0:n.headline,bottomText:null===(a=null==this?void 0:this.emailCollection)||void 0===a?void 0:a.bottom_text,allowSkip:null===(s=null==this?void 0:this.emailCollection)||void 0===s?void 0:s.allow_skip,buttonText:null===(l=null==this?void 0:this.emailCollection)||void 0===l?void 0:l.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n,provider:this.provider})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"],show:["handleEmailStateChange"]}}};M.style=":host{display:block}";let E=class{constructor(r){t(this,r),this.submitForm=i(this,"submitForm",7),this.skip=i(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){this.isAudioProvider="audio"===(this.type||this.provider),C(this.textInput,3,{maxFontSize:this.isAudioProvider?15:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,e,i,o;return r("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},r("div",{class:"content"},r("h1",{class:this.isAudioProvider&&"is-small"},this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?r("presto-player-spinner",null):r("form",{onSubmit:t=>this.handleSubmit(t)},r("input",{type:"email",placeholder:null===(e=null==this?void 0:this.i18n)||void 0===e?void 0:e.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),r("button",{type:"submit"},this.buttonText||(null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.play))),this.errorMessage&&r("p",{class:"error"},this.errorMessage),this.bottomText&&r("p",{innerHTML:this.bottomText,class:this.isAudioProvider&&"is-small"}),!!this.allowSkip&&r("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};E.style=':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.overlay.rtl form{flex-direction:row-reverse}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}h1.is-small{margin-bottom:1em;font-size:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}p.is-small{font-size:0.9em;margin-top:1em}';let F=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};F.style='.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid{border-radius:2px;padding:3% 5%;max-width:135px;max-height:90px;box-sizing:content-box;position:absolute !important;top:50% !important;opacity:100%}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid svg{height:31px;width:37px}.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:hover,.skin-modern.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{opacity:0.8;background:var(--plyr-color-main)}.skin-modern.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 9px) * -4))}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls{padding:0px}.skin-modern.presto-player__wrapper .plyr--video .plyr__controls::before{content:"";background:var(--plyr-color-main);position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.75}.skin-modern.presto-player__wrapper .plyr__controls__item{z-index:1}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back){height:36px;border-radius:0px}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__control:not(.presto-player-progress__marker):not([role*=menuitem]):not(.plyr__control--back):focus{background-color:transparent;color:white}.skin-modern.presto-player__wrapper .plyr__controls__item.presto-player-progress__marker{z-index:2}.skin-modern.presto-player__wrapper .plyr__controls__item.plyr__menu{height:36px}.skin-modern.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px;color:white}.skin-modern.presto-player__wrapper .presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{height:2px}.skin-modern.presto-player__wrapper .plyr--video .plyr__progress__buffer{height:2px;top:11px}.skin-modern.presto-player__wrapper .plyr__progress input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb{top:1px;height:var(--plyr-range-thumb-height, 8px);width:var(--plyr-range-thumb-height, 8px);box-shadow:0px 0px 5px white}.skin-modern.presto-player__wrapper .plyr--full-ui input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.5)}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item{margin:0px}.skin-modern.presto-player__wrapper .plyr__volume{width:auto}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{width:55px}.skin-modern.presto-player__wrapper .plyr__volume input[type=range]{cursor:pointer}.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=rewind] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fast-forward] svg,.skin-modern.presto-player__wrapper .plyr__controls .plyr__controls__item[data-plyr=fullscreen] svg{width:22px;height:22px}@media screen and (max-width: 480px){.skin-modern.presto-player__wrapper .plyr__control--overlaid svg{height:18px;width:16px}}';let L=class{constructor(r){t(this,r),this.playVideo=i(this,"playVideo",7)}render(){var t,e,i,o,n,a,s,l,p;return r("div",{class:"presto-player__muted-overlay",onClick:()=>{this.mutedPreview=!1,this.playVideo.emit()}},(null===(t=this.preset)||void 0===t?void 0:t["play-large"])&&r("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},r("svg",{id:"plyr-play",viewBox:"0 0 18 18"},r("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),r("span",{class:"plyr__sr-only"},"Play")),(null===(e=this.mutedOverlay)||void 0===e?void 0:e.enabled)&&(null===(i=this.mutedOverlay)||void 0===i?void 0:i.src)?r("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:`${(null===(o=this.mutedOverlay)||void 0===o?void 0:o.width)||50}%`,left:100*((null===(a=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===a?void 0:a.x)||.5)+"%",top:100*((null===(l=null===(s=this.mutedOverlay)||void 0===s?void 0:s.focalPoint)||void 0===l?void 0:l.y)||.5)+"%"}},r("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};L.style=":host{display:block}";var R=["premium","referrerPolicy"];function N(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function B(t,r){for(var e=0;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function $(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,i)}return e}function q(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?$(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):$(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var V={addCSS:!0,thumbWidth:15,watch:!0};function H(t,r){return function(){return Array.from(document.querySelectorAll(r)).includes(this)}.call(t,r)}var U=function(t){return null!=t?t.constructor:null},Q=function(t,r){return!!(t&&r&&t instanceof r)},Y=function(t){return U(t)===String},W=function(t){return Array.isArray(t)},J=function(t){return Q(t,NodeList)},G=Y,K=W,X=J,Z=function(t){return Q(t,Element)},tt=function(t){return Q(t,Event)},rt=function(t){return function(t){return null==t}(t)||(Y(t)||W(t)||J(t))&&!t.length||function(t){return U(t)===Object}(t)&&!Object.keys(t).length};var et,it,ot,nt=function(){function t(r,e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,t),Z(r)?this.element=r:G(r)&&(this.element=document.querySelector(r)),Z(this.element)&&rt(this.element.rangeTouch)&&(this.config=q({},V,{},e),this.init())}return function(t,r,e){r&&B(t.prototype,r),e&&B(t,e)}(t,[{key:"init",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){t.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(t){var r=this,e=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){r.element[e](t,(function(t){return r.set(t)}),!1)}))}},{key:"get",value:function(r){if(!t.enabled||!tt(r))return null;var e,i=r.target,o=r.changedTouches[0],n=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,s=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),p=100/l.width*(this.config.thumbWidth/2)/100;return 0>(e=100/l.width*(o.clientX-l.left))?e=0:100<e&&(e=100),50>e?e-=(100-2*e)*p:50<e&&(e+=2*(e-50)*p),n+function(t,r){if(1>r){var e=function(t){var r="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return r?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0}(r);return parseFloat(t.toFixed(e))}return Math.round(t/r)*r}(e/100*(a-n),s)}},{key:"set",value:function(r){t.enabled&&tt(r)&&!r.target.disabled&&(r.preventDefault(),r.target.value=this.get(r),function(t,r){if(t&&r){var e=new Event(r,{bubbles:!0});t.dispatchEvent(e)}}(r.target,"touchend"===r.type?"change":"input"))}}],[{key:"setup",value:function(r){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(rt(r)||G(r)?i=Array.from(document.querySelectorAll(G(r)?r:'input[type="range"]')):Z(r)?i=[r]:X(r)?i=Array.from(r):K(r)&&(i=r.filter(Z)),rt(i))return null;var o=q({},V,{},e);if(G(r)&&o.watch){var n=new MutationObserver((function(e){Array.from(e).forEach((function(e){Array.from(e.addedNodes).forEach((function(e){Z(e)&&H(e,r)&&new t(e,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(r){return new t(r,e)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),at=function(t){return null!=t?t.constructor:null},st=function(t,r){return Boolean(t&&r&&t instanceof r)},lt=function(t){return null==t},pt=function(t){return at(t)===Object},ut=function(t){return at(t)===String},dt=function(t){return at(t)===Function},ct=function(t){return Array.isArray(t)},ht=function(t){return st(t,NodeList)},yt=function(t){return lt(t)||(ut(t)||ct(t)||ht(t))&&!t.length||pt(t)&&!Object.keys(t).length},vt=lt,ft=pt,_t=function(t){return at(t)===Number&&!Number.isNaN(t)},gt=ut,mt=function(t){return at(t)===Boolean},bt=dt,wt=ct,kt=ht,xt=function(t){return null!==t&&"object"==p(t)&&1===t.nodeType&&"object"==p(t.style)&&"object"==p(t.ownerDocument)},zt=function(t){return st(t,Event)},jt=function(t){return st(t,KeyboardEvent)},Tt=function(t){return st(t,TextTrack)||!lt(t)&&ut(t.kind)},St=function(t){if(st(t,window.URL))return!0;if(!ut(t))return!1;var r=t;t.startsWith("http://")&&t.startsWith("https://")||(r="http://".concat(t));try{return!yt(new URL(r).hostname)}catch(t){return!1}},Ct=yt,Pt=(et=document.createElement("span"),it={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},ot=Object.keys(it).find((function(t){return void 0!==et.style[t]})),!!gt(ot)&&it[ot]);function Ot(t,r){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),r)}var It={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function At(t,r){return r.split(".").reduce((function(t,r){return t&&t[r]}),t)}function Mt(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];if(!e.length)return t;var o=e.shift();return ft(o)?(Object.keys(o).forEach((function(r){ft(o[r])?(Object.keys(t).includes(r)||Object.assign(t,s({},r,{})),Mt(t[r],o[r])):Object.assign(t,s({},r,o[r]))})),Mt.apply(void 0,[t].concat(e))):t}function Et(t,r){Array.from(t.length?t:[t]).reverse().forEach((function(t,e){var i=e>0?r.cloneNode(!0):r,o=t.parentNode,n=t.nextSibling;i.appendChild(t),n?o.insertBefore(i,n):o.appendChild(i)}))}function Ft(t,r){xt(t)&&!Ct(r)&&Object.entries(r).filter((function(t){var r=n(t,2);return!vt(r[1])})).forEach((function(r){var e=n(r,2);return t.setAttribute(e[0],e[1])}))}function Lt(t,r,e){var i=document.createElement(t);return ft(r)&&Ft(i,r),gt(e)&&(i.innerText=e),i}function Rt(t,r,e,i){xt(r)&&r.appendChild(Lt(t,e,i))}function Nt(t){kt(t)||wt(t)?Array.from(t).forEach(Nt):xt(t)&&xt(t.parentNode)&&t.parentNode.removeChild(t)}function Bt(t){if(xt(t))for(var r=t.childNodes.length;r>0;)t.removeChild(t.lastChild),r-=1}function Dt(t,r){return xt(r)&&xt(r.parentNode)&&xt(t)?(r.parentNode.replaceChild(t,r),t):null}function $t(t,r){if(!gt(t)||Ct(t))return{};var e={},i=Mt({},r);return t.split(",").forEach((function(t){var r=t.trim(),o=r.replace(".",""),a=r.replace(/[[\]]/g,"").split("="),s=n(a,1)[0],l=a.length>1?a[1].replace(/["']/g,""):"";switch(r.charAt(0)){case".":e.class=gt(i.class)?"".concat(i.class," ").concat(o):o;break;case"#":e.id=r.replace("#","");break;case"[":e[s]=l}})),Mt(i,e)}function qt(t,r){if(xt(t)){var e=r;mt(e)||(e=!t.hidden),t.hidden=e}}function Vt(t,r,e){if(kt(t))return Array.from(t).map((function(t){return Vt(t,r,e)}));if(xt(t)){var i="toggle";return void 0!==e&&(i=e?"add":"remove"),t.classList[i](r),t.classList.contains(r)}return!1}function Ht(t,r){return xt(t)&&t.classList.contains(r)}function Ut(t,r){var e=Element.prototype;return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(){return Array.from(document.querySelectorAll(r)).includes(this)}).call(t,r)}function Qt(t){return this.elements.container.querySelectorAll(t)}function Yt(t){return this.elements.container.querySelector(t)}function Wt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xt(t)&&(t.focus({preventScroll:!0}),r&&Vt(t,this.config.classNames.tabFocus))}var Jt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Gt={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,r,e){var i=Gt[t]||"html5"!==r;return{api:i,ui:i&&Gt.rangeInput&&("video"!==t||!It.isIPhone||It.isIPhone&&e&&Gt.playsinline)}},pip:!(It.isIPhone||!bt(Lt("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Lt("video").disablePictureInPicture)),airplay:bt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(Ct(t))return!1;var r=t.split("/"),e=n(r,1),i=t;if(!this.isHTML5||e[0]!==this.type)return!1;Object.keys(Jt).includes(i)&&(i+='; codecs="'.concat(Jt[t],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(t){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var t=document.createElement("input");return t.type="range","range"===t.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Pt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Kt=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){}return t}();function Xt(t,r,e){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&"addEventListener"in t&&!Ct(r)&&bt(e)){var s=r.split(" "),l=a;Kt&&(l={passive:n,capture:a}),s.forEach((function(r){i&&i.eventListeners&&o&&i.eventListeners.push({element:t,type:r,callback:e,options:l}),t[o?"addEventListener":"removeEventListener"](r,e,l)}))}}function Zt(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xt.call(this,t,r,e,!0,i,o)}function tr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xt.call(this,t,r,e,!1,i,o)}function rr(t){var r=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var s=arguments.length,l=new Array(s),p=0;p<s;p++)l[p]=arguments[p];tr(t,e,a,o,n),i.apply(r,l)};Xt.call(this,t,e,a,!0,o,n)}function er(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(xt(t)&&!Ct(r)){var o=new CustomEvent(r,{bubbles:e,detail:a(a({},i),{},{plyr:this})});t.dispatchEvent(o)}}function ir(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function or(){var t=this;return new Promise((function(r){return t.ready?setTimeout(r,0):Zt.call(t,t.elements.container,"ready",r)})).then((function(){}))}function nr(t){(function(t){return st(t,Promise)&&dt(t.then)})(t)&&t.then(null,(function(){}))}function ar(t){return wt(t)?t.filter((function(r,e){return t.indexOf(r)===e})):t}function sr(t,r){return wt(t)&&t.length?t.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):null}function lr(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var pr=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(t,r){var e=n(r,2),i=e[0],o=e[1];return a(a({},t),{},s({},i/o,[i,o]))}),{});function ur(t){return!!(wt(t)||gt(t)&&t.includes(":"))&&(wt(t)?t:t.split(":")).map(Number).every(_t)}function dr(t){if(!wt(t)||!t.every(_t))return null;var r=n(t,2),e=r[0],i=r[1],o=function t(r,e){return 0===e?r:t(e,r%e)}(e,i);return[e/o,i/o]}function cr(t){var r=function(t){return ur(t)?t.split(":").map(Number):null},e=r(t);if(null===e&&(e=r(this.config.ratio)),null===e&&!Ct(this.embed)&&wt(this.embed.ratio)&&(e=this.embed.ratio),null===e&&this.isHTML5){var i=this.media;e=[i.videoWidth,i.videoHeight]}return dr(e)}function hr(t){if(!this.isVideo)return{};var r=this.elements.wrapper,e=cr.call(this,t);if(!wt(e))return{};var i=dr(e),o=n(i,2),a=o[0],s=o[1],l=100/a*s;if(lr("aspect-ratio: ".concat(a,"/").concat(s))?r.style.aspectRatio="".concat(a,"/").concat(s):r.style.paddingBottom="".concat(l,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var p=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),u=(p-l)/(p/50);this.fullscreen.active?r.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&r.classList.add(this.config.classNames.videoFixedRatio);return{padding:l,ratio:e}}function yr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/r,o=sr(Object.keys(pr),i);return Math.abs(o-i)<=e?pr[o]:[t,r]}var vr={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(r){var e=r.getAttribute("type");return!!Ct(e)||Gt.mime.call(t,e)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:vr.getSources.call(this).map((function(t){return Number(t.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var t=this;t.options.speed=t.config.speed.options,Ct(this.config.ratio)||hr.call(t),Object.defineProperty(t.media,"quality",{get:function(){var r=vr.getSources.call(t).find((function(r){return r.getAttribute("src")===t.source}));return r&&Number(r.getAttribute("size"))},set:function(r){if(t.quality!==r){if(t.config.quality.forced&&bt(t.config.quality.onChange))t.config.quality.onChange(r);else{var e=vr.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===r}));if(!e)return;var i=t.media,o=i.currentTime,n=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;t.media.src=e.getAttribute("src"),("none"!==a||s)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=o,n||nr(t.play())})),t.media.load())}er.call(t,t.media,"qualitychange",!1,{quality:r})}}})}},cancelRequests:function(){this.isHTML5&&(Nt(vr.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function fr(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function _r(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),i=1;i<r;i++)e[i-1]=arguments[i];return Ct(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,r){return e[r].toString()}))}var gr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(r.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),e.toString())},mr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))};function br(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.toString();return r=gr(r,"-"," "),r=gr(r,"_"," "),r=mr(r),gr(r," ","")}function wr(t){var r=document.createElement("div");return r.appendChild(t),r.innerHTML}var kr={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},xr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ct(t)||Ct(r))return"";var e=At(r.i18n,t);if(Ct(e))return Object.keys(kr).includes(t)?kr[t]:"";var i={"{seektime}":r.seekTime,"{title}":r.title};return Object.entries(i).forEach((function(t){var r=n(t,2);e=gr(e,r[0],r[1])})),e},zr=function(){function t(r){var e=this;u(this,t),N(this,"get",(function(r){if(!t.supported||!e.enabled)return null;var i=window.localStorage.getItem(e.key);if(Ct(i))return null;var o=JSON.parse(i);return gt(r)&&r.length?o[r]:o})),N(this,"set",(function(r){if(t.supported&&e.enabled&&ft(r)){var i=e.get();Ct(i)&&(i={}),Mt(i,r);try{window.localStorage.setItem(e.key,JSON.stringify(i))}catch(r){}}})),this.enabled=r.config.storage.enabled,this.key=r.config.storage.key}return l(t,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var t="___test";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return!1}}}]),t}();function jr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(e,i){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===r)try{e(JSON.parse(o.responseText))}catch(t){e(o.responseText)}else e(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=r,o.send()}catch(t){i(t)}}))}function Tr(t,r){if(gt(t)){var e=gt(r),i=function(){return null!==document.getElementById(r)},o=function(t,r){t.innerHTML=r,e&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!e||!i()){var n=zr.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),e&&a.setAttribute("id",r),n){var s=window.localStorage.getItem("cache-".concat(r));if(null!==s){var l=JSON.parse(s);o(a,l.content)}}jr(t).then((function(t){if(!Ct(t)){if(n)try{window.localStorage.setItem("cache-".concat(r),JSON.stringify({content:t}))}catch(t){}o(a,t)}})).catch((function(){}))}}}var Sr=function(t){return Math.trunc(t/60/60%60,10)},Cr=function(t){return Math.trunc(t%60,10)};function Pr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!_t(t))return Pr(void 0,r,e);var i,o=function(t){return"0".concat(t).slice(-2)},n=Sr(t),a=(i=t,Math.trunc(i/60%60,10)),s=Cr(t);return n=r||n>0?"".concat(n,":"):"","".concat(e&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(s))}var Or={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),r=window.location.host?window.location.host:window.top.location.host,e=t.host!==r||It.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=Yt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Qt.call(this,this.config.selectors.buttons.play),pause:Yt.call(this,this.config.selectors.buttons.pause),restart:Yt.call(this,this.config.selectors.buttons.restart),rewind:Yt.call(this,this.config.selectors.buttons.rewind),fastForward:Yt.call(this,this.config.selectors.buttons.fastForward),mute:Yt.call(this,this.config.selectors.buttons.mute),pip:Yt.call(this,this.config.selectors.buttons.pip),airplay:Yt.call(this,this.config.selectors.buttons.airplay),settings:Yt.call(this,this.config.selectors.buttons.settings),captions:Yt.call(this,this.config.selectors.buttons.captions),fullscreen:Yt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Yt.call(this,this.config.selectors.progress),this.elements.inputs={seek:Yt.call(this,this.config.selectors.inputs.seek),volume:Yt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Yt.call(this,this.config.selectors.display.buffer),currentTime:Yt.call(this,this.config.selectors.display.currentTime),duration:Yt.call(this,this.config.selectors.display.duration)},xt(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(t){return this.debug.warn("It looks like there is a problem with your custom controls HTML",t),this.toggleNativeControls(!0),!1}},createIcon:function(t,r){var e="http://www.w3.org/2000/svg",i=Or.getIconUrl.call(this),o="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(e,"svg");Ft(n,Mt(r,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(e,"use"),s="".concat(o,"-").concat(t);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),n.appendChild(a),n},createLabel:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=xr(t,this.config);return Lt("span",a(a({},r),{},{class:[r.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),e)},createBadge:function(t){if(Ct(t))return null;var r=Lt("span",{class:this.config.classNames.menu.value});return r.appendChild(Lt("span",{class:this.config.classNames.menu.badge},t)),r},createButton:function(t,r){var e=this,i=Mt({},r),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=br(t)).charAt(0).toLowerCase()+t.slice(1)}(t),n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(t){Object.keys(i).includes(t)&&(n[t]=i[t],delete i[t])})),"button"!==n.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(t){return t===e.config.classNames.control}))||Mt(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,t){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),o="play",n.label="play",n.icon="play";break;default:Ct(n.label)&&(n.label=o),Ct(n.icon)&&(n.icon=t)}var a=Lt(n.element);return n.toggle?(a.appendChild(Or.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(Or.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(Or.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(Or.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(Or.createIcon.call(this,n.icon)),a.appendChild(Or.createLabel.call(this,n.label))),Mt(i,$t(this.config.selectors.buttons[o],i)),Ft(a,i),"play"===o?(wt(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,r){var e=Lt("input",Mt($t(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":xr(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},r));return this.elements.inputs[t]=e,Or.updateRangeFill.call(this,e),nt.setup(e),e},createProgress:function(t,r){var e=Lt("progress",Mt($t(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},r));if("volume"!==t){e.appendChild(Lt("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],o=i?xr(i,this.config):"";e.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=e,e},createTime:function(t,r){var e=$t(this.config.selectors.display[t],r),i=Lt("div",Mt(e,{class:"".concat(e.class?e.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":xr(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,r){var e=this;Zt.call(this,t,"keydown keyup",(function(i){if([32,38,39,40].includes(i.which)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var o,n=Ut(t,'[role="menuitemradio"]');!n&&[32,39].includes(i.which)?Or.showMenuPanel.call(e,r,!0):32!==i.which&&(40===i.which||n&&39===i.which?xt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):xt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Wt.call(e,o,!0))}}),!1),Zt.call(this,t,"keyup",(function(t){13===t.which&&Or.focusFirstMenuItem.call(e,null,!0)}))},createMenuItem:function(t){var r=this,e=t.value,i=t.list,o=t.type,n=t.title,a=t.badge,s=void 0===a?null:a,l=t.checked,p=void 0!==l&&l,u=$t(this.config.selectors.inputs[o]),d=Lt("button",Mt(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:e})),c=Lt("span");c.innerHTML=n,xt(s)&&c.appendChild(s),d.appendChild(c),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(t){t&&Array.from(d.parentNode.children).filter((function(t){return Ut(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),d.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(d,"click keyup",(function(t){if(!jt(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),d.checked=!0,o){case"language":r.currentTrack=Number(e);break;case"quality":r.quality=e;break;case"speed":r.speed=parseFloat(e)}Or.showMenuPanel.call(r,"home",jt(t))}}),o,!1),Or.bindMenuItemShortcuts.call(this,d,o),i.appendChild(d)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _t(t)?Pr(t,Sr(this.duration)>0,r):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];xt(t)&&_t(r)&&(t.innerText=Or.formatTime(r,e))},updateVolume:function(){this.supported.ui&&(xt(this.elements.inputs.volume)&&Or.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),xt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xt(t)&&(t.value=r,Or.updateRangeFill.call(this,t))},updateProgress:function(t){var r=this;if(this.supported.ui&&zt(t)){var e=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":e=function(t,r){return 0===t||0===r||Number.isNaN(t)||Number.isNaN(r)?0:(t/r*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&Or.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":!function(t,e){var i=_t(e)?e:0,o=xt(t)?t:r.elements.display.buffer;if(xt(o)){o.value=i;var n=o.getElementsByTagName("span")[0];xt(n)&&(n.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var r=zt(t)?t.target:t;if(xt(r)&&"range"===r.getAttribute("type")){if(Ut(r,this.config.selectors.inputs.seek)){r.setAttribute("aria-valuenow",this.currentTime);var e=Or.formatTime(this.currentTime),i=Or.formatTime(this.duration),o=xr("seekLabel",this.config);r.setAttribute("aria-valuetext",o.replace("{currentTime}",e).replace("{duration}",i))}else if(Ut(r,this.config.selectors.inputs.volume)){var n=100*r.value;r.setAttribute("aria-valuenow",n),r.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else r.setAttribute("aria-valuenow",r.value);It.isWebkit&&r.style.setProperty("--value",r.value/r.max*100+"%")}},updateSeekTooltip:function(t){var r=this;if(this.config.tooltips.seek&&xt(this.elements.inputs.seek)&&xt(this.elements.display.seekTooltip)&&0!==this.duration){var e="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return Vt(r.elements.display.seekTooltip,e,t)};if(this.touch)i(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(zt(t))o=100/n.width*(t.pageX-n.left);else{if(!Ht(this.elements.display.seekTooltip,e))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),Or.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),zt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var r=!xt(this.elements.display.duration)&&this.config.invertTime;Or.updateTimeDisplay.call(this,this.elements.display.currentTime,r?this.duration-this.currentTime:this.currentTime,r),t&&"timeupdate"===t.type&&this.media.seeking||Or.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return qt(this.elements.display.currentTime,!0),void qt(this.elements.progress,!0);xt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=xt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&Or.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&Or.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Or.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,r){qt(this.elements.settings.buttons[t],!r)},updateSetting:function(t,r,e){var i=this.elements.settings.panels[t],o=null,n=r;if("captions"===t)o=this.currentTrack;else{if(o=Ct(e)?this[t]:e,Ct(o)&&(o=this.config[t].default),!Ct(this.options[t])&&!this.options[t].includes(o))return void this.debug.warn("Unsupported value of '".concat(o,"' for ").concat(t));if(!this.config[t].options.includes(o))return void this.debug.warn("Disabled value of '".concat(o,"' for ").concat(t))}if(xt(n)||(n=i&&i.querySelector('[role="menu"]')),xt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Or.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));xt(a)&&(a.checked=!0)}},getLabel:function(t,r){switch(t){case"speed":return 1===r?xr("normal",this.config):"".concat(r,"&times;");case"quality":if(_t(r)){if(0===r)return xr("auto",this.config);var e=xr("qualityLabel.".concat(r),this.config);return e.length?e:"".concat(r,"p")}return mr(r);case"captions":return Mr.getLabel.call(this);default:return null}},setQualityMenu:function(t){var r=this;if(xt(this.elements.settings.panels.quality)){var e="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');wt(t)&&(this.options.quality=ar(t).filter((function(t){return r.config.quality.options.includes(t)})));var o=!Ct(this.options.quality)&&this.options.quality.length>1;if(Or.toggleMenuButton.call(this,e,o),Bt(i),Or.checkMenu.call(this),o){var n=function(t){var e=xr("qualityBadge.".concat(t),r.config);return e.length?Or.createBadge.call(r,e):null};this.options.quality.sort((function(t,e){var i=r.config.quality.options;return i.indexOf(t)>i.indexOf(e)?1:-1})).forEach((function(t){Or.createMenuItem.call(r,{value:t,list:i,type:e,title:Or.getLabel.call(r,"quality",t),badge:n(t)})})),Or.updateSetting.call(this,e,i)}}},setCaptionsMenu:function(){var t=this;if(xt(this.elements.settings.panels.captions)){var r="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Mr.getTracks.call(this),o=Boolean(i.length);if(Or.toggleMenuButton.call(this,r,o),Bt(e),Or.checkMenu.call(this),o){var n=i.map((function(r,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:Mr.getLabel.call(t,r),badge:r.language&&Or.createBadge.call(t,r.language.toUpperCase()),list:e,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:xr("disabled",this.config),list:e,type:"language"}),n.forEach(Or.createMenuItem.bind(this)),Or.updateSetting.call(this,r,e)}}},setSpeedMenu:function(){var t=this;if(xt(this.elements.settings.panels.speed)){var r="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(r){return r>=t.minimumSpeed&&r<=t.maximumSpeed}));var i=!Ct(this.options.speed)&&this.options.speed.length>1;Or.toggleMenuButton.call(this,r,i),Bt(e),Or.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){Or.createMenuItem.call(t,{value:i,list:e,type:r,title:Or.getLabel.call(t,"speed",i)})})),Or.updateSetting.call(this,r,e))}},checkMenu:function(){var t=this.elements.settings.buttons,r=!Ct(t)&&Object.values(t).some((function(t){return!t.hidden}));qt(this.elements.settings.menu,!r)},focusFirstMenuItem:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var e=t;xt(e)||(e=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=e.querySelector('[role^="menuitem"]');Wt.call(this,i,r)}},toggleMenu:function(t){var r=this.elements.settings.popup,e=this.elements.buttons.settings;if(xt(r)&&xt(e)){var i=r.hidden,o=i;if(mt(t))o=t;else if(jt(t)&&27===t.which)o=!1;else if(zt(t)){var n=bt(t.composedPath)?t.composedPath()[0]:t.target,a=r.contains(n);if(a||!a&&t.target!==e&&o)return}e.setAttribute("aria-expanded",o),qt(r,!o),Vt(this.elements.container,this.config.classNames.menu.open,o),o&&jt(t)?Or.focusFirstMenuItem.call(this,null,!0):o||i||Wt.call(this,e,jt(t))}},getMenuSize:function(t){var r=t.cloneNode(!0);r.style.position="absolute",r.style.opacity=0,r.removeAttribute("hidden"),t.parentNode.appendChild(r);var e=r.scrollWidth,i=r.scrollHeight;return Nt(r),{width:e,height:i}},showMenuPanel:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(r));if(xt(i)){var o=i.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if(Gt.transitions&&!Gt.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=Or.getMenuSize.call(this,i),s=function r(e){e.target===o&&["width","height"].includes(e.propertyName)&&(o.style.width="",o.style.height="",tr.call(t,o,Pt,r))};Zt.call(this,o,Pt,s),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}qt(n,!0),qt(i,!1),Or.focusFirstMenuItem.call(this,i,e)}},setDownloadUrl:function(){var t=this.elements.buttons.download;xt(t)&&t.setAttribute("href",this.download)},create:function(t){var r=this,e=Or.bindMenuItemShortcuts,i=Or.createButton,o=Or.createProgress,n=Or.createRange,a=Or.createTime,s=Or.setQualityMenu,l=Or.setSpeedMenu,p=Or.showMenuPanel;this.elements.controls=null,wt(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Lt("div",$t(this.config.selectors.controls.wrapper));this.elements.controls=u;var d={class:"plyr__controls__item"};return ar(wt(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(r,"restart",d)),"rewind"===s&&u.appendChild(i.call(r,"rewind",d)),"play"===s&&u.appendChild(i.call(r,"play",d)),"fast-forward"===s&&u.appendChild(i.call(r,"fast-forward",d)),"progress"===s){var l=Lt("div",{class:"".concat(d.class," plyr__progress__container")}),c=Lt("div",$t(r.config.selectors.progress));if(c.appendChild(n.call(r,"seek",{id:"plyr-seek-".concat(t.id)})),c.appendChild(o.call(r,"buffer")),r.config.tooltips.seek){var h=Lt("span",{class:r.config.classNames.tooltip},"00:00");c.appendChild(h),r.elements.display.seekTooltip=h}r.elements.progress=c,l.appendChild(r.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(r,"currentTime",d)),"duration"===s&&u.appendChild(a.call(r,"duration",d)),"mute"===s||"volume"===s){var y=r.elements.volume;xt(y)&&u.contains(y)||(y=Lt("div",Mt({},d,{class:"".concat(d.class," plyr__volume").trim()})),r.elements.volume=y,u.appendChild(y)),"mute"===s&&y.appendChild(i.call(r,"mute")),"volume"!==s||It.isIos||y.appendChild(n.call(r,"volume",Mt({max:1,step:.05,value:r.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===s&&u.appendChild(i.call(r,"captions",d)),"settings"===s&&!Ct(r.config.settings)){var v=Lt("div",Mt({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));v.appendChild(i.call(r,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=Lt("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),_=Lt("div"),g=Lt("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=Lt("div",{role:"menu"});g.appendChild(m),_.appendChild(g),r.elements.settings.panels.home=g,r.config.settings.forEach((function(i){var o=Lt("button",Mt($t(r.config.selectors.buttons.settings),{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(r,o,i),Zt.call(r,o,"click",(function(){p.call(r,i,!1)}));var n=Lt("span",null,xr(i,r.config)),a=Lt("span",{class:r.config.classNames.menu.value});a.innerHTML=t[i],n.appendChild(a),o.appendChild(n),m.appendChild(o);var s=Lt("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),l=Lt("button",{type:"button",class:"".concat(r.config.classNames.control," ").concat(r.config.classNames.control,"--back")});l.appendChild(Lt("span",{"aria-hidden":!0},xr(i,r.config))),l.appendChild(Lt("span",{class:r.config.classNames.hidden},xr("menuBack",r.config))),Zt.call(r,s,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(r,"home",!0))}),!1),Zt.call(r,l,"click",(function(){p.call(r,"home",!1)})),s.appendChild(l),s.appendChild(Lt("div",{role:"menu"})),_.appendChild(s),r.elements.settings.buttons[i]=o,r.elements.settings.panels[i]=s})),f.appendChild(_),v.appendChild(f),u.appendChild(v),r.elements.settings.popup=f,r.elements.settings.menu=v}if("pip"===s&&Gt.pip&&u.appendChild(i.call(r,"pip",d)),"airplay"===s&&Gt.airplay&&u.appendChild(i.call(r,"airplay",d)),"download"===s){var b=Mt({},d,{element:"a",href:r.download,target:"_blank"});r.isHTML5&&(b.download=""),!St(r.config.urls.download)&&r.isEmbed&&Mt(b,{icon:"logo-".concat(r.provider),label:r.provider}),u.appendChild(i.call(r,"download",b))}"fullscreen"===s&&u.appendChild(i.call(r,"fullscreen",d))})),this.isHTML5&&s.call(this,vr.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var r=Or.getIconUrl.call(this);r.cors&&Tr(r.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var e=null;this.elements.controls=null;var i,o={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(bt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,o)),this.config.controls||(this.config.controls=[]),xt(this.config.controls)||gt(this.config.controls)?e=this.config.controls:(e=Or.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Mr.getLabel.call(this)}),a=!1),a&&gt(this.config.controls)&&(e=function(t){var r=t;return Object.entries(o).forEach((function(t){var e=n(t,2),i=e[1];r=gr(r,"{".concat(e[0],"}"),i)})),r}(e)),gt(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),xt(i)||(i=this.elements.container),i[xt(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),xt(this.elements.controls)||Or.findElements.call(this),!Ct(this.elements.buttons)){var s=function(r){var e=t.config.classNames.controlPressed;Object.defineProperty(r,"pressed",{enumerable:!0,get:function(){return Ht(r,e)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Vt(r,e,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){wt(t)||kt(t)?Array.from(t).filter(Boolean).forEach(s):s(t)}))}if(It.isEdge&&Ot(i),this.config.tooltips.controls){var l=this.config,p=l.classNames,u=l.selectors,d="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),c=Qt.call(this,d);Array.from(c).forEach((function(r){Vt(r,t.config.classNames.hidden,!1),Vt(r,t.config.classNames.tooltip,!0)}))}}};function Ir(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t;if(r){var i=document.createElement("a");i.href=e,e=i.href}try{return new URL(e)}catch(t){return null}}function Ar(t){var r=new URLSearchParams;return ft(t)&&Object.entries(t).forEach((function(t){var e=n(t,2);r.set(e[0],e[1])})),r}var Mr={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Gt.textTracks)wt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Or.setCaptionsMenu.call(this);else{if(xt(this.elements.captions)||(this.elements.captions=Lt("div",$t(this.config.selectors.captions)),function(t,r){xt(t)&&xt(r)&&r.parentNode.insertBefore(t,r.nextSibling)}(this.elements.captions,this.elements.wrapper)),It.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var r=t.getAttribute("src"),e=Ir(r);null!==e&&e.hostname!==window.location.href.hostname&&["http:","https:"].includes(e.protocol)&&jr(r,"blob").then((function(r){t.setAttribute("src",window.URL.createObjectURL(r))})).catch((function(){Nt(t)}))}))}var r=ar((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===e&&(e=n(r,1)[0]);var i=this.storage.get("captions");mt(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:e,languages:r}),this.isHTML5&&Zt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Mr.update.bind(this)),setTimeout(Mr.update.bind(this),0)}},update:function(){var t=this,r=Mr.getTracks.call(this,!0),e=this.captions,i=e.active,o=e.language,n=e.meta,a=e.currentTrackNode,s=Boolean(r.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&r.filter((function(t){return!n.get(t)})).forEach((function(r){t.debug.log("Track added",r),n.set(r,{default:"showing"===r.mode}),"showing"===r.mode&&(r.mode="hidden"),Zt.call(t,r,"cuechange",(function(){return Mr.updateCues.call(t)}))})),(s&&this.language!==o||!r.includes(a))&&(Mr.setLanguage.call(this,o),Mr.toggle.call(this,i&&s)),this.elements&&Vt(this.elements.container,this.config.classNames.captions.enabled,!Ct(r)),wt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Or.setCaptionsMenu.call(this)},toggle:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,o=this.config.classNames.captions.active,n=vt(t)?!i:t;if(n!==i){if(e||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!e){var a=Mr.getTracks.call(this),s=Mr.findTrack.call(this,[this.captions.language].concat(d(this.captions.languages)),!0);return this.captions.language=s.language,void Mr.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Vt(this.elements.container,o,n),this.captions.toggled=n,Or.updateSetting.call(this,"captions"),er.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&r.captions.toggled&&r.captions.currentTrackNode&&(r.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=Mr.getTracks.call(this);if(-1!==t)if(_t(t))if(t in e){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=e[t],o=i||{},n=o.language;this.captions.currentTrackNode=i,Or.updateSetting.call(this,"captions"),r||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),er.call(this,this.media,"languagechange")}Mr.toggle.call(this,!0,r),this.isHTML5&&this.isVideo&&Mr.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Mr.toggle.call(this,!1,r)},setLanguage:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(gt(t)){var e=t.toLowerCase();this.captions.language=e;var i=Mr.getTracks.call(this),o=Mr.findTrack.call(this,[e]);Mr.set.call(this,i.indexOf(o),r)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(e){return!t.isHTML5||r||t.captions.meta.has(e)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var r,e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Mr.getTracks.call(this),n=function(t){return Number((e.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,r){return n(r)-n(t)}));return t.every((function(t){return!(r=a.find((function(r){return r.language===t})))})),r||(i?a[0]:void 0)},getCurrentTrack:function(){return Mr.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var r=t;return!Tt(r)&&Gt.textTracks&&this.captions.toggled&&(r=Mr.getCurrentTrack.call(this)),Tt(r)?Ct(r.label)?Ct(r.language)?xr("enabled",this.config):t.language.toUpperCase():r.label:xr("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(xt(this.elements.captions))if(vt(t)||Array.isArray(t)){var r=t;if(!r){var e=Mr.getCurrentTrack.call(this);r=Array.from((e||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(wr)}var i=r.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Bt(this.elements.captions);var o=Lt("span",$t(this.config.selectors.caption));o.innerHTML=i,this.elements.captions.appendChild(o),er.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Er={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.9/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},Fr={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Lr=function(){},Rr=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u(this,t),this.enabled=window.console&&r,this.enabled&&this.log("Debugging enabled")}return l(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Lr}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Lr}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Lr}}]),t}(),Nr=function(){function t(r){var e=this;u(this,t),N(this,"onChange",(function(){if(e.enabled){var t=e.player.elements.buttons.fullscreen;xt(t)&&(t.pressed=e.active),er.call(e.player,e.target===e.player.media?e.target:e.player.elements.container,e.active?"enterfullscreen":"exitfullscreen",!0)}})),N(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?e.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(e.scrollPosition.x,e.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Vt(e.target,e.player.config.classNames.fullscreen.fallback,t),It.isIos){var r=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";r||(r=document.createElement("meta")).setAttribute("name","viewport");var o=gt(r.content)&&r.content.includes(i);t?(e.cleanupViewport=!o,o||(r.content+=",".concat(i))):e.cleanupViewport&&(r.content=r.content.split(",").filter((function(t){return t.trim()!==i})).join(","))}e.onChange()})),N(this,"trapFocus",(function(t){if(!It.isIos&&e.active&&"Tab"===t.key&&9===t.keyCode){var r=document.activeElement,i=Qt.call(e.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),o=n(i,1)[0],a=i[i.length-1];r!==a||t.shiftKey?r===o&&t.shiftKey&&(a.focus(),t.preventDefault()):(o.focus(),t.preventDefault())}})),N(this,"update",(function(){e.player.debug.log(e.enabled?"".concat(e.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Vt(e.player.elements.container,e.player.config.classNames.fullscreen.enabled,e.enabled)})),N(this,"enter",(function(){e.enabled&&(It.isIos&&e.player.config.fullscreen.iosNative?e.player.isVimeo?e.player.embed.requestFullscreen():e.target.webkitEnterFullscreen():!t.native||e.forceFallback?e.toggleFallback(!0):e.prefix?Ct(e.prefix)||e.target["".concat(e.prefix,"Request").concat(e.property)]():e.target.requestFullscreen({navigationUI:"hide"}))})),N(this,"exit",(function(){if(e.enabled)if(It.isIos&&e.player.config.fullscreen.iosNative)e.target.webkitExitFullscreen(),nr(e.player.play());else if(!t.native||e.forceFallback)e.toggleFallback(!1);else if(e.prefix){if(!Ct(e.prefix)){var r="moz"===e.prefix?"Cancel":"Exit";document["".concat(e.prefix).concat(r).concat(e.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),N(this,"toggle",(function(){e.active?e.exit():e.enter()})),this.player=r,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===r.config.fullscreen.fallback,this.player.elements.fullscreen=r.config.fullscreen.container&&function(t,r){return(Element.prototype.closest||function(){var t=this;do{if(Ut.matches(t,r))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,r)}(this.player.elements.container,r.config.fullscreen.container),Zt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){e.onChange()})),Zt.call(this.player,this.player.elements.container,"dblclick",(function(t){xt(e.player.elements.controls)&&e.player.elements.controls.contains(t.target)||e.player.listeners.proxy(t,e.toggle,"fullscreen")})),Zt.call(this,this.player.elements.container,"keydown",(function(t){return e.trapFocus(t)})),this.update()}return l(t,[{key:"usingNative",get:function(){return t.native&&!this.forceFallback}},{key:"enabled",get:function(){return(t.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!t.native||this.forceFallback)return Ht(this.target,this.player.config.classNames.fullscreen.fallback);var r=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return r&&r.shadowRoot?r===this.target.getRootNode().host:r===this.target}},{key:"target",get:function(){return It.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(bt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(r){return!(!bt(document["".concat(r,"ExitFullscreen")])&&!bt(document["".concat(r,"CancelFullScreen")])||(t=r,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Br(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(e,i){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=r?e:i)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Dr={addStyleHook:function(){Vt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Vt(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var t=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Dr.toggleNativeControls.call(this,!0);xt(this.elements.controls)||(Or.inject.call(this),this.listeners.controls()),Dr.toggleNativeControls.call(this),this.isHTML5&&Mr.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Or.updateVolume.call(this),Or.timeUpdate.call(this),Or.durationUpdate.call(this),Dr.checkPlaying.call(this),Vt(this.elements.container,this.config.classNames.pip.supported,Gt.pip&&this.isHTML5&&this.isVideo),Vt(this.elements.container,this.config.classNames.airplay.supported,Gt.airplay&&this.isHTML5),Vt(this.elements.container,this.config.classNames.isIos,It.isIos),Vt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){er.call(t,t.media,"ready")}),0),Dr.setTitle.call(this),this.poster&&Dr.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Or.durationUpdate.call(this)},setTitle:function(){var t=xr("play",this.config);if(gt(this.config.title)&&!Ct(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(r){r.setAttribute("aria-label",t)})),this.isEmbed){var r=Yt.call(this,"iframe");if(!xt(r))return;var e=Ct(this.config.title)?"video":this.config.title,i=xr("frameTitle",this.config);r.setAttribute("title",i.replace("{title}",e))}},togglePoster:function(t){Vt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var r=this,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),or.call(this).then((function(){return Br(t)})).catch((function(e){throw t===r.poster&&Dr.togglePoster.call(r,!1),e})).then((function(){if(t!==r.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(r.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Dr.togglePoster.call(r,!0),t})))},checkPlaying:function(t){var r=this;Vt(this.elements.container,this.config.classNames.playing,this.playing),Vt(this.elements.container,this.config.classNames.paused,this.paused),Vt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:r.playing}),t.setAttribute("aria-label",xr(r.playing?"pause":"play",r.config))})),zt(t)&&"timeupdate"===t.type||Dr.toggleControls.call(this)},checkLoading:function(t){var r=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Vt(r.elements.container,r.config.classNames.loading,r.loading),Dr.toggleControls.call(r)}),this.loading?250:0)},toggleControls:function(t){var r=this.elements.controls;if(r&&this.config.hideControls){var e=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||r.pressed||r.hover||e))}},migrateStyles:function(){var t=this;Object.values(a({},this.media.style)).filter((function(t){return!Ct(t)&&gt(t)&&t.startsWith("--plyr")})).forEach((function(r){t.elements.container.style.setProperty(r,t.media.style.getPropertyValue(r)),t.media.style.removeProperty(r)})),Ct(this.media.style)&&this.media.removeAttribute("style")}},$r=function(){function t(r){var e=this;u(this,t),N(this,"firstTouch",(function(){var t=e.player,r=t.elements;t.touch=!0,Vt(r.container,t.config.classNames.isTouch,!0)})),N(this,"setTabFocus",(function(t){var r=e.player,i=r.elements;clearTimeout(e.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(e.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-e.lastKeyDown<=20)&&(function(){var t=r.config.classNames.tabFocus;Vt(Qt.call(r,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(e.focusTimer=setTimeout((function(){var t=document.activeElement;i.container.contains(t)&&Vt(document.activeElement,r.config.classNames.tabFocus,!0)}),10))))})),N(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=e.player;r.config.keyboard.global&&Xt.call(r,window,"keydown keyup",e.handleKey,t,!1),Xt.call(r,document.body,"click",e.toggleMenu,t),rr.call(r,document.body,"touchstart",e.firstTouch),Xt.call(r,document.body,"keydown focus blur focusout",e.setTabFocus,t,!1,!0)})),N(this,"container",(function(){var t=e.player,r=t.config,i=t.elements,o=t.timers;!r.keyboard.global&&r.keyboard.focused&&Zt.call(t,i.container,"keydown keyup",e.handleKey,!1),Zt.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(r){var e=i.controls;e&&"enterfullscreen"===r.type&&(e.pressed=!1,e.hover=!1);var n=0;["touchstart","touchmove","mousemove"].includes(r.type)&&(Dr.toggleControls.call(t,!0),n=t.touch?3e3:2e3),clearTimeout(o.controls),o.controls=setTimeout((function(){return Dr.toggleControls.call(t,!1)}),n)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var r=i.wrapper,e=t.fullscreen.active,o=cr.call(t),a=n(o,2),s=a[0],l=a[1],p=lr("aspect-ratio: ".concat(s," / ").concat(l));if(e){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],d=n(u,2),c=d[1],h=d[0]/c>s/l;p?(r.style.width=h?"auto":"100%",r.style.height=h?"100%":"auto"):(r.style.maxWidth=h?c/l*s+"px":null,r.style.margin=h?"0 auto":null)}else p?(r.style.width=null,r.style.height=null):(r.style.maxWidth=null,r.style.margin=null)}},s=function(){clearTimeout(o.resized),o.resized=setTimeout(a,50)};Zt.call(t,i.container,"enterfullscreen exitfullscreen",(function(r){t.fullscreen.target===i.container&&(!t.isEmbed&&Ct(t.config.ratio)||(a(),("enterfullscreen"===r.type?Zt:tr).call(t,window,"resize",s)))}))})),N(this,"media",(function(){var t=e.player,r=t.elements;if(Zt.call(t,t.media,"timeupdate seeking seeked",(function(r){return Or.timeUpdate.call(t,r)})),Zt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(r){return Or.durationUpdate.call(t,r)})),Zt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Zt.call(t,t.media,"progress playing seeking seeked",(function(r){return Or.updateProgress.call(t,r)})),Zt.call(t,t.media,"volumechange",(function(r){return Or.updateVolume.call(t,r)})),Zt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(r){return Dr.checkPlaying.call(t,r)})),Zt.call(t,t.media,"waiting canplay seeked playing",(function(r){return Dr.checkLoading.call(t,r)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var i=Yt.call(t,".".concat(t.config.classNames.video));if(!xt(i))return;Zt.call(t,r.container,"click",(function(o){([r.container,i].includes(o.target)||i.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(o,t.restart,"restart"),e.proxy(o,(function(){nr(t.play())}),"play")):e.proxy(o,(function(){nr(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Zt.call(t,r.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Zt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Zt.call(t,t.media,"ratechange",(function(){Or.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Zt.call(t,t.media,"qualitychange",(function(r){Or.updateSetting.call(t,"quality",null,r.detail.quality)})),Zt.call(t,t.media,"ready qualitychange",(function(){Or.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Zt.call(t,t.media,o,(function(e){var i=e.detail,o=void 0===i?{}:i;"error"===e.type&&(o=t.media.error),er.call(t,r.container,e.type,!0,o)}))})),N(this,"proxy",(function(t,r,i){var o=e.player,n=o.config.listeners[i],a=!0;bt(n)&&(a=n.call(o,t)),!1!==a&&bt(r)&&r.call(o,t)})),N(this,"bind",(function(t,r,i,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=e.player,s=a.config.listeners[o],l=bt(s);Zt.call(a,t,r,(function(t){return e.proxy(t,i,o)}),n&&!l)})),N(this,"controls",(function(){var t=e.player,r=t.elements,i=It.isIE?"change":"input";if(r.buttons.play&&Array.from(r.buttons.play).forEach((function(r){e.bind(r,"click",(function(){nr(t.togglePlay())}),"play")})),e.bind(r.buttons.restart,"click",t.restart,"restart"),e.bind(r.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),e.bind(r.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),e.bind(r.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),e.bind(r.buttons.captions,"click",(function(){return t.toggleCaptions()})),e.bind(r.buttons.download,"click",(function(){er.call(t,t.media,"download")}),"download"),e.bind(r.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),e.bind(r.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),e.bind(r.buttons.airplay,"click",t.airplay,"airplay"),e.bind(r.buttons.settings,"click",(function(r){r.stopPropagation(),r.preventDefault(),Or.toggleMenu.call(t,r)}),null,!1),e.bind(r.buttons.settings,"keyup",(function(r){var e=r.which;[13,32].includes(e)&&(13!==e?(r.preventDefault(),r.stopPropagation(),Or.toggleMenu.call(t,r)):Or.focusFirstMenuItem.call(t,null,!0))}),null,!1),e.bind(r.settings.menu,"keydown",(function(r){27===r.which&&Or.toggleMenu.call(t,r)})),e.bind(r.inputs.seek,"mousedown mousemove",(function(t){var e=r.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/e.width*(t.pageX-e.left))})),e.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(r){var e=r.currentTarget,i=r.keyCode?r.keyCode:r.which,o="play-on-seeked";if(!jt(r)||39===i||37===i){t.lastSeekTime=Date.now();var n=e.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(r.type);n&&a?(e.removeAttribute(o),nr(t.play())):!a&&t.playing&&(e.setAttribute(o,""),t.pause())}})),It.isIos){var o=Qt.call(t,'input[type="range"]');Array.from(o).forEach((function(t){return e.bind(t,i,(function(t){return Ot(t.target)}))}))}e.bind(r.inputs.seek,i,(function(r){var e=r.currentTarget,i=e.getAttribute("seek-value");Ct(i)&&(i=e.value),e.removeAttribute("seek-value"),t.currentTime=i/e.max*t.duration}),"seek"),e.bind(r.progress,"mouseenter mouseleave mousemove",(function(r){return Or.updateSeekTooltip.call(t,r)})),e.bind(r.progress,"mousemove touchmove",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.startMove(r)})),e.bind(r.progress,"mouseleave touchend click",(function(){var r=t.previewThumbnails;r&&r.loaded&&r.endMove(!1,!0)})),e.bind(r.progress,"mousedown touchstart",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.startScrubbing(r)})),e.bind(r.progress,"mouseup touchend",(function(r){var e=t.previewThumbnails;e&&e.loaded&&e.endScrubbing(r)})),It.isWebkit&&Array.from(Qt.call(t,'input[type="range"]')).forEach((function(r){e.bind(r,"input",(function(r){return Or.updateRangeFill.call(t,r.target)}))})),t.config.toggleInvert&&!xt(r.display.duration)&&e.bind(r.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Or.timeUpdate.call(t))})),e.bind(r.inputs.volume,i,(function(r){t.volume=r.target.value}),"volume"),e.bind(r.controls,"mouseenter mouseleave",(function(e){r.controls.hover=!t.touch&&"mouseenter"===e.type})),r.fullscreen&&Array.from(r.fullscreen.children).filter((function(t){return!t.contains(r.container)})).forEach((function(i){e.bind(i,"mouseenter mouseleave",(function(e){r.controls&&(r.controls.hover=!t.touch&&"mouseenter"===e.type)}))})),e.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){r.controls.pressed=["mousedown","touchstart"].includes(t.type)})),e.bind(r.controls,"focusin",(function(){var i=t.config,o=t.timers;Vt(r.controls,i.classNames.noTransition,!0),Dr.toggleControls.call(t,!0),setTimeout((function(){Vt(r.controls,i.classNames.noTransition,!1)}),0);var n=e.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Dr.toggleControls.call(t,!1)}),n)})),e.bind(r.inputs.volume,"wheel",(function(r){var e=r.webkitDirectionInvertedFromDevice,i=[r.deltaX,-r.deltaY].map((function(t){return e?-t:t})),o=n(i,2),a=o[0],s=o[1],l=Math.sign(Math.abs(a)>Math.abs(s)?a:s);t.increaseVolume(l/50);var p=t.media.volume;(1===l&&p<1||-1===l&&p>0)&&r.preventDefault()}),"volume",!1)})),this.player=r,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return l(t,[{key:"handleKey",value:function(t){var r=this.player,e=r.elements,i=t.keyCode?t.keyCode:t.which,o="keydown"===t.type,n=o&&i===this.lastKey;if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&_t(i))if(o){var a=document.activeElement;if(xt(a)){if(a!==e.inputs.seek&&Ut(a,r.config.selectors.editable))return;if(32===t.which&&Ut(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(t.preventDefault(),t.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:n||(r.currentTime=r.duration/10*(i-48));break;case 32:case 75:n||nr(r.togglePlay());break;case 38:r.increaseVolume(.1);break;case 40:r.decreaseVolume(.1);break;case 77:n||(r.muted=!r.muted);break;case 39:r.forward();break;case 37:r.rewind();break;case 70:r.fullscreen.toggle();break;case 67:n||r.toggleCaptions();break;case 76:r.loop=!r.loop}27===i&&!r.fullscreen.usingNative&&r.fullscreen.active&&r.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){Or.toggleMenu.call(this.player,t)}}]),t}(),qr=function(t,r){return function(t){t.exports=function(){var t=function(){},r={},e={},i={};function o(t,r){if(t){var o=i[t];if(e[t]=r,o)for(;o.length;)o[0](t,r),o.splice(0,1)}}function n(r,e){r.call&&(r={success:r}),e.length?(r.error||t)(e):(r.success||t)(r)}function a(r,e,i,o){var n,s,l=document,p=i.async,u=(i.numRetries||0)+1,d=i.before||t,c=r.replace(/[\?|#].*$/,""),h=r.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(c)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(n="hideFocus"in s)&&s.relList&&(n=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(c)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=r,s.async=void 0===p||p),s.onload=s.onerror=s.onbeforeload=function(t){var l=t.type[0];if(n)try{s.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((o+=1)<u)return a(r,e,i,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";e(r,l,t.defaultPrevented)},!1!==d(r,s)&&l.head.appendChild(s)}function s(t,r,e){var i,o,n=(t=t.push?t:[t]).length,s=n,l=[];for(i=function(t,e,i){if("e"==e&&l.push(t),"b"==e){if(!i)return;l.push(t)}--n||r(l)},o=0;o<s;o++)a(t[o],i,e)}function l(t,e,i){var a,l;if(e&&e.trim&&(a=e),l=(a?i:e)||{},a){if(a in r)throw"LoadJS";r[a]=!0}function p(r,e){s(t,(function(t){n(l,t),r&&n({success:r,error:e},t),o(a,t)}),l)}if(l.returnPromise)return new Promise(p);p()}return l.ready=function(t,r){return function(t,r){var o,n,a,s=[],l=(t=t.push?t:[t]).length,p=l;for(o=function(t,e){e.length&&s.push(t),--p||r(s)};l--;)(a=e[n=t[l]])?o(n,a):(i[n]=i[n]||[]).push(o)}(t,(function(t){n(r,t)})),l},l.done=function(t){o(t,[])},l.reset=function(){r={},e={},i={}},l.isDefined=function(t){return t in r},l}()}(r={exports:{}}),r.exports}();function Vr(t){return new Promise((function(r,e){qr(t,{success:r,error:e})}))}function Hr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,er.call(this,this.media,t?"play":"pause"))}var Ur={setup:function(){var t=this;Vt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,hr.call(t),ft(window.Vimeo)?Ur.ready.call(t):Vr(t.config.urls.vimeo.sdk).then((function(){Ur.ready.call(t)})).catch((function(r){t.debug.warn("Vimeo SDK (player.js) failed to load",r)}))},ready:function(){var t=this,r=this,e=r.config.vimeo,i=e.premium,o=e.referrerPolicy,s=c(e,R),l=r.media.getAttribute("src"),p="";Ct(l)?(l=r.media.getAttribute(r.config.attributes.embed.id),p=r.media.getAttribute(r.config.attributes.embed.hash)):p=function(t){var r=t.match(h(/^.*(?:vimeo.com\/|video\/)(?:[0-9]+)(?:\?.*&*h=|\/)+([,0-9a-f]+)/,{hash:1}));return r?r.groups.hash:null}(l);var u=p?{h:p}:{};i&&Object.assign(s,{controls:!1,sidedock:!1});var d=Ar(a(a({loop:r.config.loop.active,autoplay:r.autoplay,muted:r.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},u),s)),y=function(t){return Ct(t)?null:_t(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(l),v=Lt("iframe"),f=_r(r.config.urls.vimeo.iframe,y,d);if(v.setAttribute("src",f),v.setAttribute("allowfullscreen",""),v.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),Ct(o)||v.setAttribute("referrerPolicy",o),i||!e.customControls)v.setAttribute("data-poster",r.poster),r.media=Dt(v,r.media);else{var _=Lt("div",{class:r.config.classNames.embedContainer,"data-poster":r.poster});_.appendChild(v),r.media=Dt(_,r.media)}e.customControls||jr(_r(r.config.urls.vimeo.api,f)).then((function(t){!Ct(t)&&t.thumbnail_url&&Dr.setPoster.call(r,t.thumbnail_url).catch((function(){}))})),r.embed=new window.Vimeo.Player(v,{autopause:r.config.autopause,muted:r.muted}),r.media.paused=!0,r.media.currentTime=0,r.supported.ui&&r.embed.disableTextTrack(),r.media.play=function(){return Hr.call(r,!0),r.embed.play()},r.media.pause=function(){return Hr.call(r,!1),r.embed.pause()},r.media.stop=function(){r.pause(),r.currentTime=0};var g=r.media.currentTime;Object.defineProperty(r.media,"currentTime",{get:function(){return g},set:function(t){var e=r.embed,i=r.media,o=r.volume,n=r.paused&&!e.hasPlayed;i.seeking=!0,er.call(r,i,"seeking"),Promise.resolve(n&&e.setVolume(0)).then((function(){return e.setCurrentTime(t)})).then((function(){return n&&e.pause()})).then((function(){return n&&e.setVolume(o)})).catch((function(){}))}});var m=r.config.speed.selected;Object.defineProperty(r.media,"playbackRate",{get:function(){return m},set:function(t){r.embed.setPlaybackRate(t).then((function(){m=t,er.call(r,r.media,"ratechange")})).catch((function(){r.options.speed=[1]}))}});var b=r.config.volume;Object.defineProperty(r.media,"volume",{get:function(){return b},set:function(t){r.embed.setVolume(t).then((function(){b=t,er.call(r,r.media,"volumechange")}))}});var w=r.config.muted;Object.defineProperty(r.media,"muted",{get:function(){return w},set:function(t){var e=!!mt(t)&&t;r.embed.setVolume(e?0:r.config.volume).then((function(){w=e,er.call(r,r.media,"volumechange")}))}});var k,x=r.config.loop;Object.defineProperty(r.media,"loop",{get:function(){return x},set:function(t){var e=mt(t)?t:r.config.loop.active;r.embed.setLoop(e).then((function(){x=e}))}}),r.embed.getVideoUrl().then((function(t){k=t,Or.setDownloadUrl.call(r)})).catch((function(r){t.debug.warn(r)})),Object.defineProperty(r.media,"currentSrc",{get:function(){return k}}),Object.defineProperty(r.media,"ended",{get:function(){return r.currentTime===r.duration}}),Promise.all([r.embed.getVideoWidth(),r.embed.getVideoHeight()]).then((function(e){var i=n(e,2);r.embed.ratio=yr(i[0],i[1]),hr.call(t)})),r.embed.setAutopause(r.config.autopause).then((function(t){r.config.autopause=t})),r.embed.getVideoTitle().then((function(e){r.config.title=e,Dr.setTitle.call(t)})),r.embed.getCurrentTime().then((function(t){g=t,er.call(r,r.media,"timeupdate")})),r.embed.getDuration().then((function(t){r.media.duration=t,er.call(r,r.media,"durationchange")})),r.embed.getTextTracks().then((function(t){r.media.textTracks=t,Mr.setup.call(r)})),r.embed.on("cuechange",(function(t){var e=t.cues,i=(void 0===e?[]:e).map((function(t){return function(t){var r=document.createDocumentFragment(),e=document.createElement("div");return r.appendChild(e),e.innerHTML=t,r.firstChild.innerText}(t.text)}));Mr.updateCues.call(r,i)})),r.embed.on("loaded",(function(){r.embed.getPaused().then((function(t){Hr.call(r,!t),t||er.call(r,r.media,"playing")})),xt(r.embed.element)&&r.supported.ui&&r.embed.element.setAttribute("tabindex",-1)})),r.embed.on("bufferstart",(function(){er.call(r,r.media,"waiting")})),r.embed.on("bufferend",(function(){er.call(r,r.media,"playing")})),r.embed.on("play",(function(){Hr.call(r,!0),er.call(r,r.media,"playing")})),r.embed.on("pause",(function(){Hr.call(r,!1)})),r.embed.on("timeupdate",(function(t){r.media.seeking=!1,g=t.seconds,er.call(r,r.media,"timeupdate")})),r.embed.on("progress",(function(t){r.media.buffered=t.percent,er.call(r,r.media,"progress"),1===parseInt(t.percent,10)&&er.call(r,r.media,"canplaythrough"),r.embed.getDuration().then((function(t){t!==r.media.duration&&(r.media.duration=t,er.call(r,r.media,"durationchange"))}))})),r.embed.on("seeked",(function(){r.media.seeking=!1,er.call(r,r.media,"seeked")})),r.embed.on("ended",(function(){r.media.paused=!0,er.call(r,r.media,"ended")})),r.embed.on("error",(function(t){r.media.error=t,er.call(r,r.media,"error")})),e.customControls&&setTimeout((function(){return Dr.build.call(r)}),0)}};function Qr(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,er.call(this,this.media,t?"play":"pause"))}function Yr(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Wr,Jr,Gr,Kr,Xr,Zr,te={setup:function(){var t=this;if(Vt(this.elements.wrapper,this.config.classNames.embed,!0),ft(window.YT)&&bt(window.YT.Player))te.ready.call(this);else{var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){bt(r)&&r(),te.ready.call(t)},Vr(this.config.urls.youtube.sdk).catch((function(r){t.debug.warn("YouTube API failed to load",r)}))}},getTitle:function(t){var r=this;jr(_r(this.config.urls.youtube.api,t)).then((function(t){if(ft(t)){var e=t.height,i=t.width;r.config.title=t.title,Dr.setTitle.call(r),r.embed.ratio=yr(i,e)}hr.call(r)})).catch((function(){hr.call(r)}))},ready:function(){var t=this,r=t.config.youtube,e=t.media&&t.media.getAttribute("id");if(Ct(e)||!e.startsWith("youtube-")){var i=t.media.getAttribute("src");Ct(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return Ct(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),n=Lt("div",{id:fr(t.provider),"data-poster":r.customControls?t.poster:void 0});if(t.media=Dt(n,t.media),r.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Br(a("maxres"),121).catch((function(){return Br(a("sd"),121)})).catch((function(){return Br(a("hq"))})).then((function(r){return Dr.setPoster.call(t,r.src)})).then((function(r){r.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:Yr(r),playerVars:Mt({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&r.customControls?0:1,disablekb:1,playsinline:t.config.fullscreen.iosNative?0:1,cc_load_policy:t.captions.active?1:0,cc_lang_pref:t.config.captions.language,widget_referrer:window?window.location.href:null},r),events:{onError:function(r){if(!t.media.error){var e=r.data;t.media.error={code:e,message:{2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[e]||"An unknown error occured"},er.call(t,t.media,"error")}},onPlaybackRateChange:function(r){t.media.playbackRate=r.target.getPlaybackRate(),er.call(t,t.media,"ratechange")},onReady:function(e){if(!bt(t.media.play)){var i=e.target;te.getTitle.call(t,o),t.media.play=function(){Qr.call(t,!0),i.playVideo()},t.media.pause=function(){Qr.call(t,!1),i.pauseVideo()},t.media.stop=function(){i.stopVideo()},t.media.duration=i.getDuration(),t.media.paused=!0,t.media.currentTime=0,Object.defineProperty(t.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(r){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,er.call(t,t.media,"seeking"),i.seekTo(r)}}),Object.defineProperty(t.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(t){i.setPlaybackRate(t)}});var n=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return n},set:function(r){i.setVolume(100*(n=r)),er.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(r){var e=mt(r)?r:a;a=e,i[e?"mute":"unMute"](),i.setVolume(100*n),er.call(t,t.media,"volumechange")}}),Object.defineProperty(t.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}});var s=i.getAvailablePlaybackRates();t.options.speed=s.filter((function(r){return t.config.speed.options.includes(r)})),t.supported.ui&&r.customControls&&t.media.setAttribute("tabindex",-1),er.call(t,t.media,"timeupdate"),er.call(t,t.media,"durationchange"),clearInterval(t.timers.buffering),t.timers.buffering=setInterval((function(){t.media.buffered=i.getVideoLoadedFraction(),(null===t.media.lastBuffered||t.media.lastBuffered<t.media.buffered)&&er.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),er.call(t,t.media,"canplaythrough"))}),200),r.customControls&&setTimeout((function(){return Dr.build.call(t)}),50)}},onStateChange:function(e){var i=e.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(e.data)&&(t.media.seeking=!1,er.call(t,t.media,"seeked")),e.data){case-1:er.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),er.call(t,t.media,"progress");break;case 0:Qr.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):er.call(t,t.media,"ended");break;case 1:r.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Qr.call(t,!0),er.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){er.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),er.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Qr.call(t,!1);break;case 3:er.call(t,t.media,"waiting")}er.call(t,t.elements.container,"statechange",!1,{code:e.data})}}})}}},re={setup:function(){this.media?(Vt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Vt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Vt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Lt("div",{class:this.config.classNames.video}),Et(this.media,this.elements.wrapper),this.elements.poster=Lt("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?vr.setup.call(this):this.isYouTube?te.setup.call(this):this.isVimeo&&Ur.setup.call(this)):this.debug.warn("No media element found!")}},ee=function(){function t(r){var e=this;u(this,t),N(this,"load",(function(){e.enabled&&(ft(window.google)&&ft(window.google.ima)?e.ready():Vr(e.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))})),N(this,"ready",(function(){var t;e.enabled||((t=e).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),e.startSafetyTimer(12e3,"ready()"),e.managerPromise.then((function(){e.clearSafetyTimer("onAdsManagerLoaded()")})),e.listeners(),e.setupIMA()})),N(this,"setupIMA",(function(){e.elements.container=Lt("div",{class:e.player.config.classNames.ads}),e.player.elements.container.appendChild(e.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(e.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(e.player.config.playsinline),e.elements.displayContainer=new google.ima.AdDisplayContainer(e.elements.container,e.player.media),e.loader=new google.ima.AdsLoader(e.elements.displayContainer),e.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),e.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),e.requestAds()})),N(this,"requestAds",(function(){var t=e.player.elements.container;try{var r=new google.ima.AdsRequest;r.adTagUrl=e.tagUrl,r.linearAdSlotWidth=t.offsetWidth,r.linearAdSlotHeight=t.offsetHeight,r.nonLinearAdSlotWidth=t.offsetWidth,r.nonLinearAdSlotHeight=t.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!e.player.muted),e.loader.requestAds(r)}catch(t){e.onAdError(t)}})),N(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(e.countdownTimer),void e.elements.container.removeAttribute("data-badge-text");e.countdownTimer=setInterval((function(){var t=Pr(Math.max(e.manager.getRemainingTime(),0)),r="".concat(xr("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",r)}),100)})),N(this,"onAdsManagerLoaded",(function(t){if(e.enabled){var r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,e.manager=t.getAdsManager(e.player,r),e.cuePoints=e.manager.getCuePoints(),e.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){e.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return e.onAdEvent(t)}))})),e.trigger("loaded")}})),N(this,"addCuePoints",(function(){Ct(e.cuePoints)||e.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var r=e.player.elements.progress;if(xt(r)){var i=100/e.player.duration*t,o=Lt("span",{class:e.player.config.classNames.cues});o.style.left="".concat(i.toString(),"%"),r.appendChild(o)}}}))})),N(this,"onAdEvent",(function(t){var r=e.player.elements.container,i=t.getAd(),o=t.getAdData();switch(function(t){er.call(e.player,e.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:e.trigger("loaded"),e.pollCountdown(!0),i.isLinear()||(i.width=r.offsetWidth,i.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:e.manager.setVolume(e.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:e.player.ended?e.loadAds():e.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:e.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:e.pollCountdown(),e.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&e.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),N(this,"onAdError",(function(t){e.cancel(),e.player.debug.warn("Ads error",t)})),N(this,"listeners",(function(){var t,r=e.player.elements.container;e.player.on("canplay",(function(){e.addCuePoints()})),e.player.on("ended",(function(){e.loader.contentComplete()})),e.player.on("timeupdate",(function(){t=e.player.currentTime})),e.player.on("seeked",(function(){var r=e.player.currentTime;Ct(e.cuePoints)||e.cuePoints.forEach((function(i,o){t<i&&i<r&&(e.manager.discardAdBreak(),e.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){e.manager&&e.manager.resize(r.offsetWidth,r.offsetHeight,google.ima.ViewMode.NORMAL)}))})),N(this,"play",(function(){var t=e.player.elements.container;e.managerPromise||e.resumeContent(),e.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))})),N(this,"resumeContent",(function(){e.elements.container.style.zIndex="",e.playing=!1,nr(e.player.media.play())})),N(this,"pauseContent",(function(){e.elements.container.style.zIndex=3,e.playing=!0,e.player.media.pause()})),N(this,"cancel",(function(){e.initialized&&e.resumeContent(),e.trigger("error"),e.loadAds()})),N(this,"loadAds",(function(){e.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))})),N(this,"trigger",(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var n=e.events[t];wt(n)&&n.forEach((function(t){bt(t)&&t.apply(e,i)}))})),N(this,"on",(function(t,r){return wt(e.events[t])||(e.events[t]=[]),e.events[t].push(r),e})),N(this,"startSafetyTimer",(function(t,r){e.player.debug.log("Safety timer invoked from: ".concat(r)),e.safetyTimer=setTimeout((function(){e.cancel(),e.clearSafetyTimer("startSafetyTimer()")}),t)})),N(this,"clearSafetyTimer",(function(t){vt(e.safetyTimer)||(e.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(e.safetyTimer),e.safetyTimer=null)})),this.player=r,this.config=r.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(t,r){e.on("loaded",t),e.on("error",r)})),this.load()}return l(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!Ct(t.publisherId)||St(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return St(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Ar({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:t.publisherId}))}}]),t}(),ie=function(t){var r=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var e={};t.split(/\r\n|\n|\r/).forEach((function(t){if(_t(e.startTime)){if(!Ct(t.trim())&&Ct(e.text)){var r,i,o,a=t.trim().split("#xywh=");r=n(a,1),e.text=r[0],a[1]&&(i=a[1].split(","),o=n(i,4),e.x=o[0],e.y=o[1],e.w=o[2],e.h=o[3])}}else{var s=t.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);s&&(e.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),e.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),e.text&&r.push(e)})),r},oe=function(t,r){var e={};return t>r.width/r.height?(e.width=r.width,e.height=1/t*r.width):(e.height=r.height,e.width=t*r.height),e},ne=function(){function t(r){var e=this;u(this,t),N(this,"load",(function(){e.player.elements.display.seekTooltip&&(e.player.elements.display.seekTooltip.hidden=e.enabled),e.enabled&&e.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))})),N(this,"getThumbnails",(function(){return new Promise((function(t){var r=e.player.config.previewThumbnails.src;if(Ct(r))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){e.thumbnails.sort((function(t,r){return t.height-r.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(bt(r))r((function(t){e.thumbnails=t,i()}));else{var o=(gt(r)?[r]:r).map((function(t){return e.getThumbnail(t)}));Promise.all(o).then(i)}}))})),N(this,"getThumbnail",(function(t){return new Promise((function(r){jr(t).then((function(i){var o={frames:ie(i),height:null,urlPrefix:""};o.frames[0].text.startsWith("/")||o.frames[0].text.startsWith("http://")||o.frames[0].text.startsWith("https://")||(o.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));var n=new Image;n.onload=function(){o.height=n.naturalHeight,o.width=n.naturalWidth,e.thumbnails.push(o),r()},n.src=o.urlPrefix+o.frames[0].text}))}))})),N(this,"startMove",(function(t){if(e.loaded&&zt(t)&&["touchmove","mousemove"].includes(t.type)&&e.player.media.duration){if("touchmove"===t.type)e.seekTime=e.player.media.duration*(e.player.elements.inputs.seek.value/100);else{var r=e.player.elements.progress.getBoundingClientRect();e.seekTime=e.player.media.duration*(100/r.width*(t.pageX-r.left)/100),e.seekTime<0&&(e.seekTime=0),e.seekTime>e.player.media.duration-1&&(e.seekTime=e.player.media.duration-1),e.mousePosX=t.pageX,e.elements.thumb.time.innerText=Pr(e.seekTime)}e.showImageAtCurrentTime()}})),N(this,"endMove",(function(){e.toggleThumbContainer(!1,!0)})),N(this,"startScrubbing",(function(t){(vt(t.button)||!1===t.button||0===t.button)&&(e.mouseDown=!0,e.player.media.duration&&(e.toggleScrubbingContainer(!0),e.toggleThumbContainer(!1,!0),e.showImageAtCurrentTime()))})),N(this,"endScrubbing",(function(){e.mouseDown=!1,Math.ceil(e.lastTime)===Math.ceil(e.player.media.currentTime)?e.toggleScrubbingContainer(!1):rr.call(e.player,e.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))})),N(this,"listeners",(function(){e.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),e.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),e.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))})),N(this,"render",(function(){e.elements.thumb.container=Lt("div",{class:e.player.config.classNames.previewThumbnails.thumbContainer}),e.elements.thumb.imageContainer=Lt("div",{class:e.player.config.classNames.previewThumbnails.imageContainer}),e.elements.thumb.container.appendChild(e.elements.thumb.imageContainer);var t=Lt("div",{class:e.player.config.classNames.previewThumbnails.timeContainer});e.elements.thumb.time=Lt("span",{},"00:00"),t.appendChild(e.elements.thumb.time),e.elements.thumb.container.appendChild(t),xt(e.player.elements.progress)&&e.player.elements.progress.appendChild(e.elements.thumb.container),e.elements.scrubbing.container=Lt("div",{class:e.player.config.classNames.previewThumbnails.scrubbingContainer}),e.player.elements.wrapper.appendChild(e.elements.scrubbing.container)})),N(this,"destroy",(function(){e.elements.thumb.container&&e.elements.thumb.container.remove(),e.elements.scrubbing.container&&e.elements.scrubbing.container.remove()})),N(this,"showImageAtCurrentTime",(function(){e.mouseDown?e.setScrubbingContainerSize():e.setThumbContainerSizeAndPos();var t=e.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),r=t>=0,i=0;e.mouseDown||e.toggleThumbContainer(r),r&&(e.thumbnails.forEach((function(r,o){e.loadedImages.includes(r.frames[t].text)&&(i=o)})),t!==e.showingThumb&&(e.showingThumb=t,e.loadImage(i)))})),N(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e.showingThumb,i=e.thumbnails[t],o=i.urlPrefix,n=i.frames[r],a=i.frames[r].text,s=o+a;if(e.currentImageElement&&e.currentImageElement.dataset.filename===a)e.showImage(e.currentImageElement,n,t,r,a,!1),e.currentImageElement.dataset.index=r,e.removeOldImages(e.currentImageElement);else{e.loadingImage&&e.usingSprites&&(e.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=r,l.dataset.filename=a,e.showingThumbFilename=a,e.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return e.showImage(l,n,t,r,a,!0)},e.loadingImage=l,e.removeOldImages(l)}})),N(this,"showImage",(function(t,r,i,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];e.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(i,". newimg: ").concat(a)),e.setImageSizeAndOffset(t,r),a&&(e.currentImageContainer.appendChild(t),e.currentImageElement=t,e.loadedImages.includes(n)||e.loadedImages.push(n)),e.preloadNearby(o,!0).then(e.preloadNearby(o,!1)).then(e.getHigherQuality(i,t,r,n))})),N(this,"removeOldImages",(function(t){Array.from(e.currentImageContainer.children).forEach((function(r){if("img"===r.tagName.toLowerCase()){var i=e.usingSprites?500:1e3;if(r.dataset.index!==t.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;var o=e.currentImageContainer;setTimeout((function(){o.removeChild(r),e.player.debug.log("Removing thumb: ".concat(r.dataset.filename))}),i)}}}))})),N(this,"preloadNearby",(function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var o=e.thumbnails[0].frames[t].text;if(e.showingThumbFilename===o){var n;n=r?e.thumbnails[0].frames.slice(t):e.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var r=t.text;if(r!==o&&!e.loadedImages.includes(r)){a=!0,e.player.debug.log("Preloading thumb filename: ".concat(r));var n=e.thumbnails[0].urlPrefix+r,s=new Image;s.src=n,s.onload=function(){e.player.debug.log("Preloaded thumb filename: ".concat(r)),e.loadedImages.includes(r)||e.loadedImages.push(r),i()}}})),a||i()}}),300)}))})),N(this,"getHigherQuality",(function(t,r,i,o){if(t<e.thumbnails.length-1){var n=r.naturalHeight;e.usingSprites&&(n=i.h),n<e.thumbContainerHeight&&setTimeout((function(){e.showingThumbFilename===o&&(e.player.debug.log("Showing higher quality thumb for: ".concat(o)),e.loadImage(t+1))}),300)}})),N(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.player.config.classNames.previewThumbnails.thumbContainerShown;e.elements.thumb.container.classList.toggle(i,t),!t&&r&&(e.showingThumb=null,e.showingThumbFilename=null)})),N(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=e.player.config.classNames.previewThumbnails.scrubbingContainerShown;e.elements.scrubbing.container.classList.toggle(r,t),t||(e.showingThumb=null,e.showingThumbFilename=null)})),N(this,"determineContainerAutoSizing",(function(){(e.elements.thumb.imageContainer.clientHeight>20||e.elements.thumb.imageContainer.clientWidth>20)&&(e.sizeSpecifiedInCSS=!0)})),N(this,"setThumbContainerSizeAndPos",(function(){if(e.sizeSpecifiedInCSS){if(e.elements.thumb.imageContainer.clientHeight>20&&e.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(e.elements.thumb.imageContainer.clientHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(e.elements.thumb.imageContainer.clientHeight<20&&e.elements.thumb.imageContainer.clientWidth>20){var r=Math.floor(e.elements.thumb.imageContainer.clientWidth/e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(r,"px")}}else{var i=Math.floor(e.thumbContainerHeight*e.thumbAspectRatio);e.elements.thumb.imageContainer.style.height="".concat(e.thumbContainerHeight,"px"),e.elements.thumb.imageContainer.style.width="".concat(i,"px")}e.setThumbContainerPos()})),N(this,"setThumbContainerPos",(function(){var t=e.player.elements.progress.getBoundingClientRect(),r=e.player.elements.container.getBoundingClientRect(),i=e.elements.thumb.container,o=r.left-t.left+10,n=r.right-t.left-i.clientWidth-10,a=e.mousePosX-t.left-i.clientWidth/2;a<o&&(a=o),a>n&&(a=n),i.style.left="".concat(a,"px")})),N(this,"setScrubbingContainerSize",(function(){var t=oe(e.thumbAspectRatio,{width:e.player.media.clientWidth,height:e.player.media.clientHeight}),r=t.height;e.elements.scrubbing.container.style.width="".concat(t.width,"px"),e.elements.scrubbing.container.style.height="".concat(r,"px")})),N(this,"setImageSizeAndOffset",(function(t,r){if(e.usingSprites){var i=e.thumbContainerHeight/r.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(r.x*i,"px"),t.style.top="-".concat(r.y*i,"px")}})),this.player=r,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return l(t,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?oe(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(t){this.mouseDown?this.currentScrubbingImageElement=t:this.currentThumbnailImageElement=t}}]),t}(),ae={insertElements:function(t,r){var e=this;gt(r)?Rt(t,this.media,{src:r}):wt(r)&&r.forEach((function(r){Rt(t,e.media,r)}))},change:function(t){var r=this;At(t,"sources.length")?(vr.cancelRequests.call(this),this.destroy.call(this,(function(){r.options.quality=[],Nt(r.media),r.media=null,xt(r.elements.container)&&r.elements.container.removeAttribute("class");var e=t.sources,i=t.type,o=n(e,1)[0],a=o.provider,s=void 0===a?Fr.html5:a,l="html5"===s?i:"div",p="html5"===s?{}:{src:o.src};Object.assign(r,{provider:s,type:i,supported:Gt.check(i,s,r.config.playsinline),media:Lt(l,p)}),r.elements.container.appendChild(r.media),mt(t.autoplay)&&(r.config.autoplay=t.autoplay),r.isHTML5&&(r.config.crossorigin&&r.media.setAttribute("crossorigin",""),r.config.autoplay&&r.media.setAttribute("autoplay",""),Ct(t.poster)||(r.poster=t.poster),r.config.loop.active&&r.media.setAttribute("loop",""),r.config.muted&&r.media.setAttribute("muted",""),r.config.playsinline&&r.media.setAttribute("playsinline","")),Dr.addStyleHook.call(r),r.isHTML5&&ae.insertElements.call(r,"source",e),r.config.title=t.title,re.setup.call(r),r.isHTML5&&Object.keys(t).includes("tracks")&&ae.insertElements.call(r,"track",t.tracks),(r.isHTML5||r.isEmbed&&!r.supported.ui)&&Dr.build.call(r),r.isHTML5&&r.media.load(),Ct(t.previewThumbnails)||(Object.assign(r.config.previewThumbnails,t.previewThumbnails),r.previewThumbnails&&r.previewThumbnails.loaded&&(r.previewThumbnails.destroy(),r.previewThumbnails=null),r.config.previewThumbnails.enabled&&(r.previewThumbnails=new ne(r))),r.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},se=function(){function t(r,e){var i=this;if(u(this,t),N(this,"play",(function(){return bt(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return nr(i.media.play())})),i.media.play()):null})),N(this,"pause",(function(){return i.playing&&bt(i.media.pause)?i.media.pause():null})),N(this,"togglePlay",(function(t){return(mt(t)?t:!i.playing)?i.play():i.pause()})),N(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):bt(i.media.stop)&&i.media.stop()})),N(this,"restart",(function(){i.currentTime=0})),N(this,"rewind",(function(t){i.currentTime-=_t(t)?t:i.config.seekTime})),N(this,"forward",(function(t){i.currentTime+=_t(t)?t:i.config.seekTime})),N(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(_t(t)?t:0)})),N(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),N(this,"airplay",(function(){Gt.airplay&&i.media.webkitShowPlaybackTargetPicker()})),N(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var r=Ht(i.elements.container,i.config.classNames.hideControls),e=Vt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return e&&wt(i.config.controls)&&i.config.controls.includes("settings")&&!Ct(i.config.settings)&&Or.toggleMenu.call(i,!1),e!==r&&er.call(i,i.media,e?"controlshidden":"controlsshown"),!e}return!1})),N(this,"on",(function(t,r){Zt.call(i,i.elements.container,t,r)})),N(this,"once",(function(t,r){rr.call(i,i.elements.container,t,r)})),N(this,"off",(function(t,r){tr(i.elements.container,t,r)})),N(this,"destroy",(function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var e=function(){document.body.style.overflow="",i.embed=null,r?(Object.keys(i.elements).length&&(Nt(i.elements.buttons.play),Nt(i.elements.captions),Nt(i.elements.controls),Nt(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),bt(t)&&t()):(ir.call(i),vr.cancelRequests.call(i),Dt(i.elements.original,i.elements.container),er.call(i,i.elements.original,"destroyed",!0),bt(t)&&t.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(Dr.toggleNativeControls.call(i,!0),e()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&bt(i.embed.destroy)&&i.embed.destroy(),e()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(e),setTimeout(e,200))}})),N(this,"supports",(function(t){return Gt.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Gt.touch,this.media=r,gt(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||kt(this.media)||wt(this.media))&&(this.media=this.media[0]),this.config=Mt({},Er,t.defaults,e||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(t){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Rr(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Gt),!vt(this.media)&&xt(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Gt.check().api){var o=this.media.cloneNode(!0);o.autoplay=!1,this.elements.original=o;var n=this.media.tagName.toLowerCase(),a=null,s=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),xt(a)){if(s=Ir(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Fr.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Fr.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Ct(this.provider)||!Object.values(Fr).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type="video";break;case"video":case"audio":this.type=n,this.provider=Fr.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Gt.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new $r(this),this.storage=new zr(this),this.media.plyr=this,xt(this.elements.container)||(this.elements.container=Lt("div",{tabindex:0}),Et(this.media,this.elements.container)),Dr.migrateStyles.call(this),Dr.addStyleHook.call(this),re.setup.call(this),this.config.debug&&Zt.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new Nr(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Dr.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new ee(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return nr(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return l(t,[{key:"isHTML5",get:function(){return this.provider===Fr.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Fr.youtube}},{key:"isVimeo",get:function(){return this.provider===Fr.vimeo}},{key:"isVideo",get:function(){return"video"===this.type}},{key:"isAudio",get:function(){return"audio"===this.type}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(t){if(this.duration){var r=_t(t)&&t>0;this.media.currentTime=r?Math.min(t,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var t=this.media.buffered;return _t(t)?t:t&&t.length&&this.duration>0?t.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var t=parseFloat(this.config.duration),r=(this.media||{}).duration,e=_t(r)&&r!==1/0?r:0;return t||e}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var r=t;gt(r)&&(r=Number(r)),_t(r)||(r=this.storage.get("volume")),_t(r)||(r=this.config.volume),r>1&&(r=1),r<0&&(r=0),this.config.volume=r,this.media.volume=r,!Ct(t)&&this.muted&&r>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var r=t;mt(r)||(r=this.storage.get("muted")),mt(r)||(r=this.config.muted),this.config.muted=r,this.media.muted=r}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(t){var r=this,e=null;_t(t)&&(e=t),_t(e)||(e=this.storage.get("speed")),_t(e)||(e=this.config.speed.selected),e=function(){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t)}(e,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=e,setTimeout((function(){r.media&&(r.media.playbackRate=e)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,d(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,d(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var r=this.config.quality,e=this.options.quality;if(e.length){var i=[!Ct(t)&&Number(t),this.storage.get("quality"),r.selected,r.default].find(_t),o=!0;if(!e.includes(i)){var n=sr(e,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(n," instead")),i=n,o=!1}r.selected=i,this.media.quality=i,o&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(t){var r=mt(t)?t:this.config.loop.active;this.config.loop.active=r,this.media.loop=r}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){ae.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return St(t)?t:this.source},set:function(t){St(t)&&(this.config.urls.download=t,Or.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(t){this.isVideo?Dr.setPoster.call(this,t,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var t=dr(cr.call(this));return wt(t)?t.join(":"):t},set:function(t){this.isVideo?gt(t)&&ur(t)?(this.config.ratio=dr(t),hr.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(t,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(t){var r=mt(t)?t:this.config.autoplay;this.config.autoplay=r}},{key:"toggleCaptions",value:function(t){Mr.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Mr.set.call(this,t,!1),Mr.setup()}},{key:"language",get:function(){return(Mr.getCurrentTrack.call(this)||{}).language},set:function(t){Mr.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return Gt.pip?Ct(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if(Gt.pip){var r=mt(t)?t:!this.pip;bt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(r?"picture-in-picture":"inline"),bt(this.media.requestPictureInPicture)&&(!this.pip&&r?this.media.requestPictureInPicture():this.pip&&!r&&document.exitPictureInPicture())}}},{key:"setPreviewThumbnails",value:function(t){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,t),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new ne(this))}}],[{key:"supported",value:function(t,r,e){return Gt.check(t,r,e)}},{key:"loadSprite",value:function(t,r){return Tr(t,r)}},{key:"setup",value:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return gt(r)?i=Array.from(document.querySelectorAll(r)):kt(r)?i=Array.from(r):wt(r)&&(i=r.filter(xt)),Ct(i)?null:i.map((function(r){return new t(r,e)}))}}]),t}();function le(t){t.on("timeupdate",(function(){return function(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&null!==(e=r.mutedPreview)&&void 0!==e&&e.enabled||function(t){var r;0!==t.currentTime&&null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&localStorage.setItem("player-progress-".concat(pe(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return ue(t)})),t.on("loadeddata",(function(){return ue(t)}))}function pe(t){var r,e;return null==t||null===(r=t.config)||void 0===r||null===(e=r.blockAttributes)||void 0===e?void 0:e.id}function ue(t){var r,e,i;if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.save_player_position&&(null==t||null===(e=t.config)||void 0===e||null===(i=e.mutedPreview)||void 0===i||!i.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(pe(t))))}(t);return t.hls&&o>=0&&t.hls.startLoad(o),t.duration&&(o=Math.min(o,t.duration)),!o||o<1?0:(t.currentTime=o,null!=t&&t.isVimeo&&setTimeout((function(){t.embed.setCurrentTime(o||0)}),0),o)}}se.defaults=JSON.parse(JSON.stringify(Er));var de=(null===(Wr=window)||void 0===Wr||null===(Jr=Wr.prestoPlayer)||void 0===Jr||null===(Gr=Jr.i18n)||void 0===Gr?void 0:Gr.hide_chapters)||"Hide Chapters",ce=(null===(Kr=window)||void 0===Kr||null===(Xr=Kr.prestoPlayer)||void 0===Xr||null===(Zr=Xr.i18n)||void 0===Zr?void 0:Zr.show_chapters)||"Show Chapters";const he='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(de,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(ce,"</span>\n</button>\n");var ye,ve,fe;const _e='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===(ye=window)||void 0===ye||null===(ve=ye.prestoPlayer)||void 0===ve||null===(fe=ve.i18n)||void 0===fe?void 0:fe.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function ge(t){var r,e,i,o,n,a,s,l,u,c,h,y,v,f=0,_={},g=null,m=0;if("undefined"!=typeof jQuery)if(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return t;var r={};return t.forEach((function(t){var e,i=t.time.split(":");i.length>1&&(e=60*parseInt(i[0]));var o=parseInt(i[1])+parseInt(e);r[o]=t})),r}((null===(r=o=t.detail.plyr)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var b=(v=jQuery(o.elements.controls)).find(".plyr__time");b=b.length?b:v.find(".plyr__progress__container"),(u=n.find('[data-plyr="chapters"]')).length||(u=jQuery(he).insertAfter(b)),(s=n.find(".presto-player-toc__wrapper")).length||(s=jQuery(_e).appendTo(n)),c=s.find("[data-player-toc-cover]"),l=s.find("[data-player-toc]"),a=n.find(".plyr__progress__container");var w,k=jQuery('<div class="presto-player__chapters"></div>').appendTo(a);h=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(k),w=0,l.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var r=jQuery(function(t){var r=t.name,e=void 0===r?"Untitled":r,i=t.order,o=void 0===i?1:i,n=t.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==n&&n?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(o,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(e,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(l);r.data("presto-player-timestamp",t),_[t]=r,r.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),y=s.find("[data-chapter-item]")),z(),u.off("click"),u.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),g=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(g)),m>50&&window.clearInterval(g)}),100),c.off("click"),c.on("click",(function(){return j(!1)})),l.off("mouseleave"),l.on("mouseleave",(function t(){if(o.playing){var r=setTimeout((function(){j(!1),l.off("mouseleave",t)}),2e3);l.on("mouseenter",(function(){clearTimeout(r)}))}}))}}else o.on("loadedmetadata",ge);function x(){f=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),r=Math.max.apply(Math,d(t));y&&y.removeClass("is-highlighted"),jQuery(_[r||0]).addClass("is-highlighted")}function z(){o.duration&&(Object.keys(i).forEach((function(t){if(parseInt(t)&&!h.find("[data-timestamp=".concat(t,"]")).length){var r,e,n,a,s=i[t],l=parseInt(t)/o.duration*100,p=jQuery((r={position:l,name:"".concat(s.title)},e=r.position,n=r.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===e?0:e,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(a,"</span>\n </div>"))).prependTo(h);p.attr("data-timestamp",t),p.data("timestamp",t),p.on("click",(function(){o.currentTime=parseInt(t),o.play()}))}})),s.find("[data-timeline-marker]"))}function j(t){void 0!==p(t)?s.toggleClass("is-showing",t):s.toggleClass("is-showing")}}var me;function be(t){"undefined"!=typeof jQuery&&(me=t,jQuery(me.elements.container).closest(".presto-player__wrapper"),me.on("ready",ge),me.on("controlshidden",we),me.on("controlsshown",ke))}function we(t){var r,e,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function ke(t){var r,e,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(r=t.detail)||void 0===r||null===(e=r.plyr)||void 0===e||null===(i=e.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function xe(t){var r,e;return a(a(a({video_current_time:parseInt((null==t?void 0:t.currentTime)||0),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(r=t.config)&&void 0!==r&&r.title?{video_title:null==t||null===(e=t.config)||void 0===e?void 0:e.title}:{})}function ze(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&r.hasPlayed||(t.config.hasPlayed=!0,null===(e=window)||void 0===e||e.gtag("event","Play",xe(t)))}function je(t){var r;null===(r=window)||void 0===r||r.gtag("event","Pause",xe(t))}function Te(t){var r,e;null!=t&&null!==(r=t.config)&&void 0!==r&&r.hasLoaded||(t.config.hasLoaded=!0,null===(e=window)||void 0===e||e.gtag("event","Player Load",xe(t)))}var Se,Ce={25:!1,50:!1,75:!1,100:!1};function Pe(t){if(t.currentTime){var r=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(Ce).forEach((function(e){var i;!Ce[e]&&r>=parseInt(e)&&(Ce[e]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(e," Percent Played"),xe(t)))}))}}var Oe="presto-player.analytics",Ie="",Ae=0;function Me(t){var r,e;(Se=t).config.analytics&&null!==(r=window)&&void 0!==r&&null!==(e=r.wp)&&void 0!==e&&e.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",Oe)||wp.hooks.addAction("presto.nonceRefreshed",Oe,(function(t){Ie=t})),wp.hooks.hasAction("presto.playerPlay",Oe)||wp.hooks.addAction("presto.playerPlay",Oe,Ee),wp.hooks.hasAction("presto.playerEnded",Oe)||wp.hooks.addAction("presto.playerEnded",Oe,Ee),wp.hooks.hasAction("presto.playerHidden",Oe)||wp.hooks.addAction("presto.playerHidden",Oe,Ee),wp.hooks.hasAction("presto.playerPause",Oe)||wp.hooks.addAction("presto.playerPause",Oe,Ee),wp.hooks.hasAction("presto.playerSeeked",Oe)||wp.hooks.addAction("presto.playerSeeked",Oe,Ee))}function Ee(t){isNaN(null==t?void 0:t.currentTime)||Fe(function(t){var r,e;return t.currentTime>Ae&&(Ae=t.currentTime),t.currentTime>=t.duration&&(Ae=t.duration),a(a(a({video_current_time:parseInt(Ae),video_provider:(null==t?void 0:t.provider)||"html5"},null!=t&&t.duration?{video_duration:parseInt(null==t?void 0:t.duration)}:{}),null!=t&&t.source?{video_url:null==t?void 0:t.source}:{}),null!=t&&null!==(r=t.config)&&void 0!==r&&r.title?{video_title:null==t||null===(e=t.config)||void 0===e?void 0:e.title}:{})}(t))}function Fe(t){var r,e,i,o,n,a,s,l;if(Ie){var p,u,d=new FormData;d.append("action","presto_player_progress"),d.append("duration",null==t?void 0:t.video_current_time),d.append("video_id",null===(r=Se)||void 0===r||null===(e=r.config)||void 0===e?void 0:e.id),d.append("nonce",Ie),null!==(i=window)&&void 0!==i&&null!==(o=i.prestoPlayer)&&void 0!==o&&o.debug_navigator?"undefined"!=typeof jQuery&&jQuery.ajax({type:"POST",url:null===(n=window)||void 0===n||null===(a=n.prestoPlayer)||void 0===a?void 0:a.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==t?void 0:t.video_current_time,video_id:null===(s=Se)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:Ie}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,d)}}function Le(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",ze),wp.hooks.addAction("presto.playerPause","presto-player",je),wp.hooks.addAction("presto.playerReady","presto-player",Te),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",Pe))}(),Me(t))}const Re=function(t){t.on("ready",(function(){var r,e,i,o;null==t||null===(r=t.config)||void 0===r||!r.logo||null!=t&&null!==(e=t.config)&&void 0!==e&&e.logo_added||"undefined"!=typeof jQuery&&(t.isAudio||(jQuery('<img src="'.concat(null==t||null===(i=t.config)||void 0===i?void 0:i.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==t||null===(o=t.elements)||void 0===o?void 0:o.controls),t.config.logo_added=!0))}))};function Ne(t){var r;null!=t&&null!==(r=t.config)&&void 0!==r&&r.poster&&(t.poster=t.config.poster)}const Be=function(t){var r,e;null!==(r=window)&&void 0!==r&&null!==(e=r.wp)&&void 0!==e&&e.hooks&&(t.on("ready",(function(){De("Ready",t)})),t.on("play",(function(){De("Play",t)})),t.on("playing",(function(){De("Playing",t)})),t.on("pause",(function(){De("Pause",t)})),t.on("ended",(function(){De("Ended",t)})),t.on("seeked",(function(){De("Seeked",t)})),t.on("timeupdate",(function(){De("TimeUpdate",t)})),t.on("enterfullscreen",(function(){De("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){De("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){De("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(r){var e;switch(null==r||null===(e=r.detail)||void 0===e?void 0:e.code){case 0:De("Ended",t);break;case 1:De("Play",t);break;case 2:De("Pause",t)}})))};function De(t,r){window.wp.hooks.doAction("presto.player".concat(t),r)}let $e,qe=Date.now();const Ve=t=>{var r,e;if(!t.automations)return;(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e?void 0:e.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{$e=t})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",o),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(t=>o(t,100)));let i={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1};function o(t,r=null){var e;$e&&(null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.ajaxProgress)&&(r||(r=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((e=>{var i,o,n,a,s,l,p,u,d;const c=parseInt(e);if(!t.watched[c]&&r>=c){t.watched[c]=!0;let r=new FormData;if(r.append("action","presto_player_progress_percent"),r.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),r.append("percent",c.toString()),r.append("visit_time",qe.toString()),r.append("nonce",$e),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${c} percent watched.`),null===(n=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===n?void 0:n.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(u=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===u?void 0:u.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(d=null==t?void 0:t.config)||void 0===d?void 0:d.id,visit_time:qe,percent:c,nonce:$e}});else{let e=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,r);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(e?console.log("Successfully queued progress:",{id:null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.id,percent:c,visit_time:qe,nonce:$e}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:c,visit_time:qe,nonce:$e}))}}})))}};let He=!1,Ue=!1;function Qe(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const Ye=t=>{var r,e;(t.config.analytics||t.config.automations)&&(null===(e=null===(r=null===window||void 0===window?void 0:window.wp)||void 0===r?void 0:r.hooks)||void 0===e||e.addAction("presto.playerPlaying","presto-player",(()=>{null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(()=>{var t;He||Ue||(Ue=!0,fetch(`${null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl}?action=presto_refresh_progress_nonce`).then(Qe).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),He=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Ue=!1})))})))},We=function(t){var r=window.navigator.userAgent;if(r.match(/iPad/i)||r.match(/iPhone/i)){var e=function(t,r){for(var e,i,o,n=null==t||null===(e=t.elements)||void 0===e||null===(i=e.container)||void 0===i||null===(o=i.getRootNode())||void 0===o?void 0:o.host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)r?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active&&e(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var r;null!=t&&null!==(r=t.fullscreen)&&void 0!==r&&r.active||e(t,!1)}))}},Je=function(){var t=y(regeneratorRuntime.mark((function t(r){var e,i,o,n,a,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof jQuery){t.next=2;break}return t.abrupt("return");case 2:if("ResizeObserver"in window!=0){t.next=7;break}return t.next=5,import("./p-97e2763b.js");case 5:window.ResizeObserver=t.sent.ResizeObserver;case 7:if(l=new ResizeObserver((function(t){var r,e=v(t);try{for(e.s();!(r=e.n()).done;){var i=r.value,o=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(o.height-48,200),"px")})}}catch(t){e.e(t)}finally{e.f()}})),null!=r&&null!==(e=r.elements)&&void 0!==e&&null!==(i=e.container)&&void 0!==i&&null!==(o=i.getRootNode())&&void 0!==o&&o.firstChild){t.next=10;break}return t.abrupt("return");case 10:if(l.observe(null==r||null===(n=r.elements)||void 0===n||null===(a=n.container)||void 0===a||null===(s=a.getRootNode())||void 0===s?void 0:s.firstChild),r){t.next=13;break}return t.abrupt("return");case 13:r.on("playing",(function(){var t,e,i,o,n=null==r||null===(t=r.elements)||void 0===t||null===(e=t.container)||void 0===e?void 0:e.getRootNode().firstChild.getBoundingClientRect();jQuery(null==r||null===(i=r.elements)||void 0===i||null===(o=i.container)||void 0===o?void 0:o.getRootNode()).find(".plyr__menu__container").css({maxHeight:"".concat(Math.max(n.height-48,200),"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();function Ge(t){var r,e,i,o,n,s,l,p,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a(a(a({},d),null!==(r=window)&&void 0!==r&&null!==(e=r.prestoPlayer)&&void 0!==e&&e.plugin_url?{iconUrl:"".concat(null===(i=window)||void 0===i||null===(o=i.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/")+"".concat(null!=d&&null!==(n=d.preset)&&void 0!==n&&n.skin?d.preset.skin:"default")+".svg"}:{}),{chapters:(null==d?void 0:d.chapters)||[],controls:(null==d?void 0:d.controls)||[],settings:Object.keys((null==d?void 0:d.settings)||{}).length?d.settings:{}}),h=new se(t,c);return"undefined"!=typeof learndash_video_data&&import("./p-5e7afa71.js").then((function(t){(0,t.default)(h)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(h)})),void 0!==window.llms&&!0===(null===(p=prestoPlayer)||void 0===p||null===(u=p.lifter)||void 0===u?void 0:u.isLesson)&&import("./p-68f17ca9.js").then((function(t){(0,t.default)(h)})),Be(h),We(h),Je(h),Re(h),Ne(h),be(h),null!==(s=window)&&void 0!==s&&null!==(l=s.prestoPlayer)&&void 0!==l&&l.isAdmin||(Ye(h),Ve(c),le(h),Le(h)),h}function Ke(t){return"string"==typeof t&&t.includes(".m3u8")}let Xe=class{constructor(r){t(this,r),this.loaded=i(this,"loaded",7),this.currentMediaPlayer=i(this,"currentMediaPlayer",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.ctaActive=!1,this.emailActive=!1,this.actionBarActive=!1,this.components={cta:null,email:null,overlays:null}}async play(t=!1){this.shouldLazyLoad=!1,t&&(this.mutedPreview=!1),this.player.play()}async goToAndPlay(t){this.player.play(),this.player.currentTime=t}handleScroll(t){t.detail.id!==this.player.id&&(this.mutedPreview||this.pause())}async restart(){return this.shouldLazyLoad=!1,this.player.restart()}async pause(){return this.player.pause()}async stop(){return this.player.stop()}async fullscreenToggle(t){return this.player.fullscreen.toggle(t)}async on(t,r){return this.player.on(t,r)}async once(t,r){return this.player.once(t,r)}async off(t,r){return this.player.off(t,r)}async handleCurrentTimeChange(t){this.player&&Number.isInteger(t)&&(this.player.duration&&(this.player.currentTime=Math.min(this.player.currentTime,this.player.duration)),this.shouldLazyLoad&&(this.shouldLazyLoad=!1,await new Promise((t=>{setTimeout((async()=>{await this.initialize(),t()}),50)}))),this.player.embed&&!this.player.playing?(this.player.currentTime=t,this.player.muted=!0,this.player.play(),this.player.once("timeupdate",(()=>{this.player.pause(),this.player.currentTime=t,this.player.muted=!1}))):this.player.currentTime=t)}handleStickyChange(){(function(t){for(var r=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)r.push(t=t.parentNode);return r})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:r,branding:e,src:i,analytics:o,automations:n,autoplay:a,blockAttributes:s={},provider:l="",provider_video_id:p="",youtube:u,type:d,isAdmin:c,i18n:h,storage:y={enabled:!c,key:`presto-player-${t.id}`}}){var v,f,_,g;const m=["settings"],b=[...["youtube","vimeo"].includes(l)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((r=>((null==t?void 0:t[r])||m.includes(r))&&!b.includes(r)));(null===(v=null==s?void 0:s.mutedPreview)||void 0===v?void 0:v.enabled)&&(y={enabled:!1});let k=Object.assign(Object.assign(Object.assign(Object.assign({id:null==s?void 0:s.id,title:(null==s?void 0:s.title)||"",blockAttributes:Object.assign(Object.assign({},s),{type:d}),src:i,ajaxProgress:!0,analytics:o,preset:t,automations:n,mutedPreview:{enabled:null===(f=null==s?void 0:s.mutedPreview)||void 0===f?void 0:f.enabled},loop:{active:"loop"===(null==t?void 0:t.on_video_end)},chapters:r,controls:w,settings:["captions","quality","loop",...(null==t?void 0:t.speed)?["speed"]:[]],hideControls:null==t?void 0:t.auto_hide,captions:{active:null==t?void 0:t.captions_enabled,language:"auto",update:!1},logo:null==e?void 0:e.logo,logo_width:null==e?void 0:e.logo_width,hide_logo:null==t?void 0:t.hide_logo,lazy_load_youtube:null==t?void 0:t.lazy_load_youtube,save_player_position:!!(null==t?void 0:t.save_player_position),sticky_scroll:null==t?void 0:t.sticky_scroll,play_video_viewport:null==t?void 0:t.play_video_viewport,autoplay:!(!a||(null===(_=window.wp)||void 0===_?void 0:_.blocks))},l?{provider:l}:{}),p?{provider_video_id:p}:{}),(null==s?void 0:s.poster)?{poster:s.poster}:{}),{invertTime:!t.hasOwnProperty("invert_time")||(null==t?void 0:t.invert_time),storage:y,keyboard:{focused:!1,global:!1},resetOnEnd:!!(null==t?void 0:t.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1,playsinline:!!(null==s?void 0:s.playsInline)},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==u?void 0:u.noCookie),playsinline:!!(null==s?void 0:s.playsInline)},tooltips:{controls:!0,seek:!0},i18n:h});return(null===(g=null===window||void 0===window?void 0:window.wp)||void 0===g?void 0:g.hooks)&&(k=window.wp.hooks.applyFilters("presto.playerSettings",k)),k}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}getPlayerData(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}async createPlayer(){return await(t=this.getPlayerData(),r=t.config,e=t.selector,i=t.src,o=t.preload,i&&Ke(i)?import("./p-467331e3.js").then((function(t){return(0,t.default)({config:r,selector:e,src:i,preload:o})})):new Promise((function(t){return t(new Ge(e,a({},r)))})));var t,r,e,i,o}handlePlayerElementChange(){var t;(({src:t,el:r,preload:e,currentTime:i})=>{if(!r.getAttribute("hls_loaded")&&["metadata","none"].includes(e)&&Ke(t)){if(i>0)return r.style.height=null,r.style.paddingBottom=null,void r.setAttribute("hls_loaded","1");r.style.height="0px",r.style.paddingBottom="56.25%"}})({src:this.src,el:this.playerEl,preload:this.preload,currentTime:null===(t=null==this?void 0:this.player)||void 0===t?void 0:t.currentTime})}handleMutedPreview(t,r){var e,i,o,n,a,s,l;this.player&&!this.isAdmin&&(!t&&r&&this.player.once("timeupdate",(()=>{var t,r;this.player.loop="loop"===(null===(t=this.preset)||void 0===t?void 0:t.on_video_end),this.player.toggleCaptions(null===(r=null==this?void 0:this.preset)||void 0===r?void 0:r.captions_enabled)})),(null===(o=null===(i=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===o?void 0:o.enabled)&&(({player:t,mutedPreview:r,captions:e,progress:i,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=r,t.muted=r,t.loop=r,t.config.ajaxProgress=!r&&i,t.config.save_player_position=!r&&o;try{t.toggleCaptions(!!r&&!!e)}catch(t){}return setTimeout((()=>{ue(t)||t.restart(),setTimeout((()=>{t.muted=r,n()}),50)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(a=null===(n=this.blockAttributes)||void 0===n?void 0:n.mutedPreview)||void 0===a?void 0:a.captions),progress:null===(s=this.originalConfig)||void 0===s?void 0:s.ajaxProgress,savePosition:null===(l=this.originalConfig)||void 0===l?void 0:l.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,r,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled,this.renderDynamicOverlays(),this.renderVideoCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),Ke(this.src)&&this.player.once("playing",(()=>{this.playerEl.style.height=null,this.playerEl.style.paddingBottom=null,this.playerEl.setAttribute("hls_loaded","1")})),this.player.on("playing",(()=>this.playClass="presto-player--playing")),this.player.on("pause",(()=>this.playClass="presto-player--paused")),this.player.on("ended",(()=>this.playClass="presto-player--ended")),this.player.on("playing",(t=>!this.mutedPreview&&this.currentMediaPlayer.emit(t.detail.plyr))),"go-to-start"===(null===(e=this.preset)||void 0===e?void 0:e.on_video_end)&&this.player.on("ended",(()=>{this.restart(),"youtube"===this.provider&&this.stop()}))}handlePlayerEvents(t){t.on("ready",(t=>{this.player=t.detail.plyr,this.onPlayerReady()}))}handleLazyLoadChange(){"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((()=>{this.onReload("play")}),50)}shouldLazyLoadVideo(){var t,r,e;return"youtube"===this.provider&&!this.autoplay&&!(null===(r=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===r?void 0:r.enabled)&&!!(null===(e=this.preset)||void 0===e?void 0:e.lazy_load_youtube)}componentWillLoad(){var t,r,e;const i=null===(t=this.el.children)||void 0===t?void 0:t[0];i&&i.classList&&i.classList.contains("presto-iframe-fallback-container")&&i.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.i18n)||(null===(e=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===e?void 0:e.i18n),this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}async componentDidLoad(){setTimeout((()=>{this.initialize(),this.loaded.emit(!0)}),0)}async initialize(){const t=await this.createPlayer();return this.handlePlayerEvents(t),this.syncVideoHeight(),((t,r)=>{if(!r)return;const e=document.createElement("style");t.shadowRoot.append(e),e.appendChild(document.createTextNode(r))})(this.el,this.css),t}renderSkins(){var t,e,i;return"modern"===(null===(t=this.preset)||void 0===t?void 0:t.skin)?r("presto-modern-skin",null):"business"===(null===(e=this.preset)||void 0===e?void 0:e.skin)?r("presto-business-skin",null):"stacked"===(null===(i=this.preset)||void 0===i?void 0:i.skin)?r("presto-stacked-skin",null):void 0}async onReload(t){const r=await this.initialize();"play"==t&&r.on("ready",(()=>{this.play(),r.muted=!0,r.muted=!1,r.off("ready",this.play)}))}async syncVideoHeight(){if("ResizeObserver"in window==0){const t=await import("./p-97e2763b.js");window.ResizeObserver=t.ResizeObserver}new ResizeObserver((()=>{this.isSticky||(this.videoHeight=this.el.getBoundingClientRect().height)})).observe(this.el)}handleRestartVideo(){this.player.once("timeupdate",(()=>{setTimeout((()=>this.play()),500)})),this.player.restart()}handlePlayVideo(){this.play()}handlePauseVideo(t){this.pause(),t.detail&&function(t){var r,e,i,o,n;if("unknown"!==b()&&!(null===(e=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.blockAttributes)||void 0===e?void 0:e.playsInline)&&("function"==typeof(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.webkitExitFullScreen)&&(null==t||t.media.webkitExitFullScreen()),"function"==typeof(null===(o=null==t?void 0:t.embed)||void 0===o?void 0:o.exitFullscreen)&&(null===(n=null==t?void 0:t.embed)||void 0===n||n.exitFullscreen()),"youtube"===t.provider)){const r=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=r}))}}(this.player)}playVideoOnlyInViewport(){var t;!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}trackIntersection(){this.observer=new IntersectionObserver((t=>{this.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}handleVisibilityIntersection(t){t&&(this.handleStickyScroll(t),this.handleVisibilityPlayChange(t))}handleStickyScroll(t){var r,e;if(!(null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(e=null==this?void 0:this.player)||void 0===e?void 0:e.playing))return void(this.isSticky=!1);let i=t.boundingClientRect;if(this.isSticky=i.height<-i.top,"visible"===document.visibilityState&&this.isSticky&&this.player){const t=()=>{window.removeEventListener("scroll",t),this.player.paused&&(this.isSticky=!1)};this.player.once("pause",(()=>{window.addEventListener("scroll",t)}))}}handleVisibilityPlayChange(t){var r,e,i;if(!this.isAdmin&&(null===(r=this.preset)||void 0===r?void 0:r.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==t?void 0:t.isIntersecting)),this.player)){if(null==t?void 0:t.isIntersecting)return this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1);if("visible"!==document.visibilityState||!this.isSticky){if(null===(i=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled)return this.previouslyPlaying=!0,this.pause(),void this.player.once("playing",(()=>{this.previouslyPlaying=!0,this.pause()}));this.player.playing&&(this.previouslyPlaying=!0),this.pause()}}}renderMutedOverlay(){var t;if(this.player&&this.mutedPreview&&!this.isAdmin)return r("presto-muted-overlay",{mutedOverlay:null===(t=this.player.config.blockAttributes)||void 0===t?void 0:t.mutedOverlay,preset:this.preset,onPlayVideo:()=>{this.mutedPreview=!1,this.play()}})}renderVideo(){var t;switch(this.provider){case"vimeo":return r("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return r("presto-youtube",{onReload:t=>this.onReload(null==t?void 0:t.detail),player:this.player,getRef:t=>this.playerEl=t,lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return r("presto-bunny",{thumbnail:null===(t=null==this?void 0:this.bunny)||void 0===t?void 0:t.thumbnail,getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});case"audio":return r("presto-audio",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,preset:this.preset,src:this.src,tracks:this.tracks,mediaTitle:this.mediaTitle});default:return r("presto-video",{getRef:t=>this.playerEl=t,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}renderVideoCTA(){var t,r,e,i;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(e=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===e?void 0:e.enabled)&&((null===(i=this.components.cta)||void 0===i?void 0:i.offsetParent)||"audio"!==this.provider&&(this.components.cta=document.createElement("presto-cta-overlay"),this.components.cta.direction=this.direction,this.components.cta.player=this.player,this.components.cta.preset=this.preset,this.components.cta.i18n=this.i18n,this.player.elements.container.append(this.components.cta))))}renderAudioCTA(){var t,e;if("audio"===this.provider&&this.player&&(null===(e=null===(t=this.preset)||void 0===t?void 0:t.cta)||void 0===e?void 0:e.enabled))return r("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}renderEmailOverlay(){var t,r,e;!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)||this.isAdmin||(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.logged_in)||(null===(e=this.components.email)||void 0===e?void 0:e.offsetParent)||"audio"!==this.provider&&(this.components.email=document.createElement("presto-email-overlay"),this.components.email.direction=this.direction,this.components.email.player=this.player,this.components.email.preset=this.preset,this.components.email.i18n=this.i18n,this.components.email.videoId=this.video_id,this.player.elements.container.append(this.components.email))}renderAudioEmail(){var t,e;if("audio"===this.provider&&this.player&&(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&!this.isAdmin&&!(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.logged_in))return r("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,provider:this.provider})}renderActionBar(){var t,e;if((null===(e=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===e?void 0:e.enabled)&&this.player)return r("presto-action-bar",{config:this.preset.action_bar,player:null==this?void 0:this.player,youtube:this.youtube})}stickyPositionClass(){var t,r;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(r=this.preset)||void 0===r?void 0:r.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,r,e,i,o,n,a;this.player&&((null===(t=null==this?void 0:this.overlaysComponent)||void 0===t?void 0:t.offsetParent)||(this.overlaysComponent=document.createElement("presto-dynamic-overlays"),this.overlaysComponent.addEventListener("reloadComponent",(()=>{this.overlaysComponent.remove(),this.overlaysComponent=document.createElement("presto-dynamic-overlays")}),{once:!0})),this.overlaysComponent.style.cssText="display: block !important; opacity: 1 !important; visibility: visible !important;",this.overlaysComponent.overlays=this.overlays,this.overlaysComponent.preset=this.preset,this.overlaysComponent.player=this.player,this.overlaysComponent.enabled=!(null===(i=null===(e=null===(r=this.player)||void 0===r?void 0:r.config)||void 0===e?void 0:e.mutedPreview)||void 0===i?void 0:i.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||null===(a=null===(n=this.player.elements)||void 0===n?void 0:n.wrapper)||void 0===a||a.append(this.overlaysComponent))}handleCtaStateChange(t){this.ctaActive=t.detail}handleEmailStateChange(t){this.emailActive=t.detail}handleActionBarStateChange(t){this.actionBarActive=t.detail}render(){var t,e,i,n,a,s,l,p;return r(o,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},r("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"audio"===this.provider?"presto-sticky-audio":"presto-sticky":""}\n ${"audio"!==this.provider?this.stickyPositionClass():""}\n ${"rtl"===this.direction?"rtl":""}\n ${!0===this.ctaActive?"cta-active":""}\n ${!0===this.emailActive?"email-active":""}\n ${!0===this.actionBarActive&&(null===(e=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===e?void 0:e.enabled)?"action-bar-active":""}\n ${!!(null===(i=this.preset)||void 0===i?void 0:i.skin)&&`skin-${null===(n=this.preset)||void 0===n?void 0:n.skin}`}\n ${(null===(a=this.preset)||void 0===a?void 0:a.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(s=this.preset)||void 0===s?void 0:s.caption_style)?`caption-style-${null===(l=this.preset)||void 0===l?void 0:l.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}\n ${(null===(p=this.preset)||void 0===p?void 0:p.play)&&!this.preset.rewind?"rewind-inactive":""}\n ${this.classes||""}`},r("div",null,r("slot",{name:"player-start"}),r("slot",{name:"player-before-video"}),this.renderVideo(),r("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),this.renderAudioCTA(),this.renderAudioEmail(),this.renderSkins(),r("slot",{name:"player-end"}))))}get el(){return e(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Xe.style='@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2 * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster{display:none}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%;position:relative}}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads:empty::after{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.plyr--html5 .plyr__video-wrapper,.plyr--youtube .plyr__video-wrapper{height:100%}.plyr__video-wrapper{z-index:1}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr{border-radius:var(--presto-player-border-radius)}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper .presto-player__wrapper .plyr__control--overlaid{z-index:4}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--video .plyr__controls{padding-bottom:calc(var(--plyr-control-spacing, 10px) + env(safe-area-inset-bottom))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:100%;max-width:100%;background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper.action-bar-active .presto-audio__poster img{border-bottom-left-radius:0px}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.presto-player--hide-scrim .plyr__controls{background:transparent}.presto-player__wrapper presto-audio .presto-player-toc{max-height:350px}.presto-player__wrapper presto-action-bar{position:relative;z-index:1}.presto-sticky-parent{z-index:99998}.presto-sticky-audio{position:fixed;z-index:3000;width:100vw;bottom:0px;right:0px;left:0px}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;align-items:center;justify-content:center}.presto-player__muted-overlay img{display:none}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay.presto-player--playing .presto-player__muted-overlay img{display:block}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper .plyr__captions{z-index:1}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}.presto-iframe-fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.presto-iframe-fallback-container embed,.presto-iframe-fallback-container iframe,.presto-iframe-fallback-container object{position:absolute;top:0;left:0;width:100%;height:100%}@media (min-aspect-ratio: 16/9){.hide-youtube-ui presto-youtube .plyr:fullscreen .plyr__video-wrapper{width:177.7777777778vh}}.cta-email-active,.cta-email-active .presto-audio__wrapper{min-height:140px}.cta-active,.email-active,.cta-active .presto-audio__wrapper,.email-active .presto-audio__wrapper{min-height:140px}.action-bar-active .plyr{border-radius:var(--presto-player-border-radius) var(--presto-player-border-radius) 0px 0px}';const Ze=function(t,r){return d(r)};let ti=class{constructor(r){t(this,r),this.prestoBlur=i(this,"prestoBlur",7),this.prestoFocus=i(this,"prestoFocus",7),this.hasFocus=!1,this.hasLabel=!1,this.hasPrefix=!1,this.hasSuffix=!1,this.type="default",this.size="medium",this.full=!1,this.disabled=!1,this.submit=!1}componentWillLoad(){this.handleSlotChange()}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}handleSlotChange(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}handleBlur(){this.hasFocus=!1,this.prestoBlur.emit()}handleFocus(){this.hasFocus=!0,this.prestoFocus.emit()}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}render(){const t=!!this.href,e=r(Ze,null,r("span",{part:"prefix",class:"button__prefix"},r("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),r("span",{part:"label",class:"button__label"},r("slot",{onSlotchange:()=>this.handleSlotChange()})),r("span",{part:"suffix",class:"button__suffix"},r("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),i=r("button",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},e),o=r("a",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:()=>this.handleBlur,onFocus:()=>this.handleFocus,onClick:()=>this.handleClick},e);return t?o:i}get button(){return e(this)}};ti.style=":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25em)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875em);height:var(--presto-player-button-height-small, 1.875em);line-height:calc(var(--presto-player-button-height-small, 1.875em) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1em);height:var(--presto-player-button-height-medium, 2.5em);line-height:calc(var(--presto-player-button-height-medium, 2.5em) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25em);height:var(--presto-player-button-height-large, 3.125em);line-height:calc(var(--presto-player-button-height-large, 3.125em) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75em)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1em)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25em)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5em)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75em)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75em)}";let ri=class{constructor(r){t(this,r)}render(){return r("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};ri.style=":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";let ei=class{constructor(r){t(this,r)}render(){return r(o,null,r("slot",null))}};ei.style=".skin-stacked .plyr__controls{flex-wrap:wrap}.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.skin-stacked .plyr__controls{justify-content:flex-start}.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:50%}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}";let ii=class{constructor(r){t(this,r)}handleClick(t){t.preventDefault();const r=document.body.querySelector("presto-player");r&&r.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(t){let r,e=t.split(":");return e.length>1&&(r=60*parseInt(e[0])),parseInt(e[1])+parseInt(r)}render(){return r("a",{href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},r("slot",null,this.time))}};ii.style=":host{display:inline}";let oi=class{constructor(r){t(this,r)}render(){return r("video",{class:{"presto-player__player":!0,"plyr__video-embed":["youtube","vimeo"].includes(this.provider)},part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},r("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>r("track",{kind:"captions",label:(null==t?void 0:t.label)?t.label:"Captions",src:null==t?void 0:t.src,srclang:(null==t?void 0:t.srcLang)?null==t?void 0:t.srcLang:"en"}))))}};oi.style=":host{display:block}";let ni=class{constructor(r){t(this,r)}getId(t){const r=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==r?void 0:r[5])||""}parseHash(t){const r=t.match(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*\&*h=|\/)+(?<hash>[\d,a-f]+)/);return r?r.groups.hash:null}render(){if(this.src)return"Android"!==b()||(t=window.navigator.standalone,e=window.navigator.userAgent.toLowerCase(),i=/safari/.test(e),/iphone|ipod|ipad/.test(e)?!t&&i||t||i:!e.includes("wv"))?r("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src),"data-plyr-embed-hash":this.parseHash(this.src)}):r("div",{class:"presto-iframe-fallback-container"},r("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?h=${this.parseHash(this.src)}&amp;loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,e,i}};ni.style=":host{display:block}";let ai=class{constructor(r){t(this,r),this.reload=i(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var r,e,i,o,n;1===t.detail.code&&((null===(n=null===(o=null===(i=null===(e=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr)||void 0===e?void 0:e.config)||void 0===i?void 0:i.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.enabled)||(this.player.muted=!1))}))}getId(t){var r;const e=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return e&&11===(null===(r=null==e?void 0:e[2])||void 0===r?void 0:r.length)?e[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let r=null===(t=window.navigator)||void 0===t?void 0:t.standalone,e=window.navigator.userAgent.toLowerCase(),i=/safari/.test(e),o=/iphone|ipod|ipad/.test(e);this.isWebView=o?!r&&!i:e.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===b()&&(this.lazyLoad=!1)}render(){return this.isWebView?r("div",{class:"fallback-container"},r("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?r("div",null,r("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),r("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):r("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}static get watchers(){return{player:["handlePlayerChange"]}}};ai.style=":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}@supports not (aspect-ratio: 16/9){.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0 !important;padding-bottom:56.25%;position:relative}}";let si=class{constructor(r){t(this,r),this.layout="default"}waitForApi(t){var r=setInterval((function(){var e;(null===(e=null===window||void 0===window?void 0:window.gapi)||void 0===e?void 0:e.ytsubscribe)&&(clearInterval(r),t())}),50)}componentDidLoad(){const t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";const r=document.getElementsByTagName("script")[0];r&&r.parentNode.insertBefore(t,r),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return r("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};si.style=":host{display:block}";export{P as C,E,Ge as P,f as a,w as b,k as c,x as d,z as e,j as f,T as g,S as h,O as i,I as j,A as k,M as l,F as m,L as n,Xe as o,ti as p,ri as q,ue as r,ei as s,ii as t,oi as u,ni as v,ai as w,si as x}
dist/components/web-components/{p-57ebce75.entry.js → p-dd54c396.entry.js} RENAMED
@@ -1 +1 @@
1
- export{a as presto_action_bar,b as presto_action_bar_controller,c as presto_action_bar_ui,d as presto_audio,e as presto_bunny,f as presto_business_skin,g as presto_cta_overlay,h as presto_cta_overlay_controller,C as presto_cta_overlay_ui,i as presto_dynamic_overlay_ui,j as presto_dynamic_overlays,k as presto_email_overlay,l as presto_email_overlay_controller,E as presto_email_overlay_ui,m as presto_modern_skin,n as presto_muted_overlay,o as presto_player,p as presto_player_button,q as presto_player_spinner,s as presto_stacked_skin,t as presto_timestamp,u as presto_video,v as presto_vimeo,w as presto_youtube,x as presto_youtube_subscribe_button}from"./p-c912f16e.js";import"./p-db13d552.js";
1
+ export{a as presto_action_bar,b as presto_action_bar_controller,c as presto_action_bar_ui,d as presto_audio,e as presto_bunny,f as presto_business_skin,g as presto_cta_overlay,h as presto_cta_overlay_controller,C as presto_cta_overlay_ui,i as presto_dynamic_overlay_ui,j as presto_dynamic_overlays,k as presto_email_overlay,l as presto_email_overlay_controller,E as presto_email_overlay_ui,m as presto_modern_skin,n as presto_muted_overlay,o as presto_player,p as presto_player_button,q as presto_player_spinner,s as presto_stacked_skin,t as presto_timestamp,u as presto_video,v as presto_vimeo,w as presto_youtube,x as presto_youtube_subscribe_button}from"./p-9a686126.js";import"./p-db13d552.js";
dist/components/web-components/web-components.esm.js CHANGED
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-db13d552.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-6daf8f37",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-dcbfc113",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["p-57ebce75",[[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],overlays:[16],blockAttributes:[16],tracks:[16],analytics:[4],automations:[4],provider:[1],provider_video_id:[1],actionBar:[16],youtube:[16],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],currentTime:[2,"current-time"],mediaTitle:[1,"media-title"],classes:[1],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],ctaActive:[32],emailActive:[32],actionBarActive:[32],play:[64],goToAndPlay:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],once:[64],off:[64]},[[8,"currentMediaPlayer","handleScroll"],[0,"restartVideo","handleRestartVideo"],[0,"playVideo","handlePlayVideo"],[0,"pauseVideo","handlePauseVideo"],[8,"visibilitychange","playVideoOnlyInViewport"],[0,"ctaStateChange","handleCtaStateChange"],[0,"emailStateChange","handleEmailStateChange"],[0,"actionBarStateChange","handleActionBarStateChange"]]],[4,"presto-timestamp",{time:[1]}],[1,"presto-action-bar",{player:[8],config:[16],direction:[1],youtube:[16],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-cta-overlay",{player:[8],direction:[1],preset:[16],i18n:[16],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],direction:[1],preset:[16],videoId:[2,"video-id"],i18n:[16],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-bunny",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],thumbnail:[1],previewUrl:[1,"preview-url"]}],[1,"presto-dynamic-overlays",{overlays:[16],player:[8],preset:[16],enabled:[4],currentTime:[32],destroy:[32]}],[0,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040],reloadPlayer:[32],isWebView:[32]}],[0,"presto-audio",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],preset:[16],tracks:[16],provider:[1],mediaTitle:[1,"media-title"],width:[32]}],[4,"presto-business-skin"],[4,"presto-modern-skin"],[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}],[4,"presto-stacked-skin"],[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}],[1,"presto-action-bar-controller",{ended:[4],config:[16],currentTime:[514,"current-time"],duration:[514],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32],percentagePassed:[32]}],[0,"presto-cta-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],cta:[16],i18n:[16],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32]}],[0,"presto-email-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],emailCollection:[16],i18n:[16],videoId:[2,"video-id"],presetId:[2,"preset-id"],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],percentagePassed:[32]}],[1,"presto-dynamic-overlay-ui",{href:[1],target:[1],position:[1]}],[1,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],direction:[1],i18n:[16],provider:[1],type:[1],isAudioProvider:[32]}],[1,"presto-email-overlay-ui",{headline:[1],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],i18n:[16],provider:[1],type:[1],email:[32],isAudioProvider:[32]}],[1,"presto-action-bar-ui",{open:[4]}],[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}],[1,"presto-player-spinner"],[1,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]]]],e)));
1
+ import{p as e,b as t}from"./p-db13d552.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-6daf8f37",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-dcbfc113",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["p-dd54c396",[[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],overlays:[16],blockAttributes:[16],tracks:[16],analytics:[4],automations:[4],provider:[1],provider_video_id:[1],actionBar:[16],youtube:[16],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],currentTime:[2,"current-time"],mediaTitle:[1,"media-title"],classes:[1],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],ctaActive:[32],emailActive:[32],actionBarActive:[32],play:[64],goToAndPlay:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],once:[64],off:[64]},[[8,"currentMediaPlayer","handleScroll"],[0,"restartVideo","handleRestartVideo"],[0,"playVideo","handlePlayVideo"],[0,"pauseVideo","handlePauseVideo"],[8,"visibilitychange","playVideoOnlyInViewport"],[0,"ctaStateChange","handleCtaStateChange"],[0,"emailStateChange","handleEmailStateChange"],[0,"actionBarStateChange","handleActionBarStateChange"]]],[4,"presto-timestamp",{time:[1]}],[1,"presto-action-bar",{player:[8],config:[16],direction:[1],youtube:[16],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-cta-overlay",{player:[8],direction:[1],preset:[16],i18n:[16],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],direction:[1],preset:[16],videoId:[2,"video-id"],i18n:[16],provider:[1],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-bunny",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],thumbnail:[1],previewUrl:[1,"preview-url"]}],[1,"presto-dynamic-overlays",{overlays:[16],player:[8],preset:[16],enabled:[4],currentTime:[32],destroy:[32]}],[0,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040],reloadPlayer:[32],isWebView:[32]}],[0,"presto-audio",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],preset:[16],tracks:[16],provider:[1],mediaTitle:[1,"media-title"],width:[32]}],[4,"presto-business-skin"],[4,"presto-modern-skin"],[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}],[4,"presto-stacked-skin"],[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}],[1,"presto-action-bar-controller",{ended:[4],config:[16],currentTime:[514,"current-time"],duration:[514],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32],percentagePassed:[32]}],[0,"presto-cta-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],cta:[16],i18n:[16],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32]}],[0,"presto-email-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],emailCollection:[16],i18n:[16],videoId:[2,"video-id"],presetId:[2,"preset-id"],provider:[1],enabled:[32],show:[32],loading:[32],error:[32],percentagePassed:[32]}],[1,"presto-dynamic-overlay-ui",{href:[1],target:[1],position:[1]}],[1,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],direction:[1],i18n:[16],provider:[1],type:[1],isAudioProvider:[32]}],[1,"presto-email-overlay-ui",{headline:[1],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],i18n:[16],provider:[1],type:[1],email:[32],isAudioProvider:[32]}],[1,"presto-action-bar-ui",{open:[4]}],[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}],[1,"presto-player-spinner"],[1,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]]]],e)));
languages/presto-player.pot CHANGED
@@ -7,7 +7,7 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2022-03-09T14:53:55+00:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.6.0\n"
13
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2022-03-24T12:53:29+00:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "X-Generator: WP-CLI 2.6.0\n"
13
 
presto-player.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Presto Player
5
  * Plugin URI: http://prestoplayer.com
6
  * Description: A beautiful, fast media player for WordPress.
7
- * Version: 1.9.2
8
  * Author: Presto Made, Inc
9
  * Author URI: https://prestoplayer.com/
10
  * Text Domain: presto-player
4
  * Plugin Name: Presto Player
5
  * Plugin URI: http://prestoplayer.com
6
  * Description: A beautiful, fast media player for WordPress.
7
+ * Version: 1.9.3
8
  * Author: Presto Made, Inc
9
  * Author URI: https://prestoplayer.com/
10
  * Text Domain: presto-player
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://prestoplayer.com
4
  Tags: video, audio, youtube, vimeo, lms, elementor, learndash, beaver builder, lifterlms
5
  Requires at least: 5.6
6
  Tested up to: 5.9
7
- Stable tag: 1.9.2
8
  Requires PHP: 7.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -153,6 +153,9 @@ It is also important to point out that BunnyNet has a $1 per month minimum.
153
 
154
  == Changelog ==
155
 
 
 
 
156
  = 1.9.2 - March 09, 2022 =
157
  * Fix: Player gets paused when multiple media have muted autoplay enabled on the same page.
158
  * Fix: UI issue with Media hub list in Divi Builder plugin.
4
  Tags: video, audio, youtube, vimeo, lms, elementor, learndash, beaver builder, lifterlms
5
  Requires at least: 5.6
6
  Tested up to: 5.9
7
+ Stable tag: 1.9.3
8
  Requires PHP: 7.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
153
 
154
  == Changelog ==
155
 
156
+ = 1.9.3 - March 24, 2022 =
157
+ * Fix: Issue with CTA skip button sometimes not working on mobile.
158
+
159
  = 1.9.2 - March 09, 2022 =
160
  * Fix: Player gets paused when multiple media have muted autoplay enabled on the same page.
161
  * Fix: UI issue with Media hub list in Divi Builder plugin.
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'project',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '17298b694c5ef2c74af0e0b9f8a80b2caaa81e30',
9
  'name' => 'course/player',
10
  'dev' => false,
11
  ),
@@ -34,7 +34,7 @@
34
  'type' => 'project',
35
  'install_path' => __DIR__ . '/../../',
36
  'aliases' => array(),
37
- 'reference' => '17298b694c5ef2c74af0e0b9f8a80b2caaa81e30',
38
  'dev_requirement' => false,
39
  ),
40
  'level-2/dice' => array(
5
  'type' => 'project',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '40200060d227188d31124b3b5c913d36e5a4048e',
9
  'name' => 'course/player',
10
  'dev' => false,
11
  ),
34
  'type' => 'project',
35
  'install_path' => __DIR__ . '/../../',
36
  'aliases' => array(),
37
+ 'reference' => '40200060d227188d31124b3b5c913d36e5a4048e',
38
  'dev_requirement' => false,
39
  ),
40
  'level-2/dice' => array(