Version Description
- September 28, 2021 =
- Hotfix: muted autoplay not working properly.
Download this release
Release Info
Developer | 2winfactor |
Plugin | The Ultimate Video Player For WordPress – by Presto Player |
Version | 1.6.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.6 to 1.6.7
- dist/components/cjs/{hls-b4b197ab.js → hls-358b71e7.js} +1 -1
- dist/components/cjs/{learndash-dcd845fe.js → learndash-129e35ca.js} +1 -1
- dist/components/cjs/presto-action-bar_19.cjs.entry.js +1 -1
- dist/components/collection/components/core/player/functions/muted-autoplay.js +1 -1
- dist/components/collection/components/core/player/presto-player.js +9 -4
- dist/components/esm/{hls-db076dc6.js → hls-99c3d5cf.js} +1 -1
- dist/components/esm/{learndash-a0b6dc31.js → learndash-a3579365.js} +1 -1
- dist/components/esm/presto-action-bar_19.entry.js +1 -1
- dist/components/types/components.d.ts +1 -1
- dist/components/types/components/core/player/presto-player.d.ts +1 -1
- dist/components/web-components/{p-d7295411.entry.js → p-1655ec4d.entry.js} +1 -1
- dist/components/web-components/{p-cd46cf89.js → p-1cf667af.js} +1 -1
- dist/components/web-components/{p-13c11ca4.js → p-c14a2e61.js} +1 -1
- dist/components/web-components/{p-1f0cd8b0.js → p-eceb35ab.js} +1 -1
- dist/components/web-components/web-components.esm.js +1 -1
- languages/presto-player.pot +1 -1
- presto-player.php +1 -1
- readme.txt +3 -0
- vendor/composer/installed.php +2 -2
dist/components/cjs/{hls-b4b197ab.js → hls-358b71e7.js}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
'use strict';
|
2 |
|
3 |
const index = require('./index-b9f00561.js');
|
4 |
-
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
5 |
|
6 |
var loadHLS = function loadHLS(_ref) {
|
7 |
var config = _ref.config,
|
1 |
'use strict';
|
2 |
|
3 |
const index = require('./index-b9f00561.js');
|
4 |
+
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-488c12f5.js');
|
5 |
|
6 |
var loadHLS = function loadHLS(_ref) {
|
7 |
var config = _ref.config,
|
dist/components/cjs/{learndash-dcd845fe.js → learndash-129e35ca.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
'use strict';
|
2 |
|
3 |
-
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
4 |
require('./index-b9f00561.js');
|
5 |
|
6 |
const learndash = (function (player) {
|
1 |
'use strict';
|
2 |
|
3 |
+
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-488c12f5.js');
|
4 |
require('./index-b9f00561.js');
|
5 |
|
6 |
const learndash = (function (player) {
|
dist/components/cjs/presto-action-bar_19.cjs.entry.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
-
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
6 |
require('./index-b9f00561.js');
|
7 |
|
8 |
|
2 |
|
3 |
Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 |
+
const prestoActionBar_prestoActionBarUi_prestoBunny_prestoCtaOverlay_prestoCtaOverlayController_prestoCtaOverlayUi_prestoDynamicOverlayUi_prestoDynamicOverlays_prestoEmailOverlay_prestoEmailOverlayController_prestoEmailOverlayUi_prestoMutedOverlay_prestoPlayer_prestoPlayerButton_prestoPlayerSpinner_prestoVideo_prestoVimeo_prestoYoutube_prestoYoutubeSubscribeButton_entry = require('./presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-488c12f5.js');
|
6 |
require('./index-b9f00561.js');
|
7 |
|
8 |
|
dist/components/collection/components/core/player/functions/muted-autoplay.js
CHANGED
@@ -25,7 +25,7 @@ export default ({ player, mutedPreview, captions, progress, savePosition, onPlay
|
|
25 |
setTimeout(() => {
|
26 |
player.muted = mutedPreview;
|
27 |
onPlay();
|
28 |
-
},
|
29 |
}, 0);
|
30 |
return player;
|
31 |
};
|
25 |
setTimeout(() => {
|
26 |
player.muted = mutedPreview;
|
27 |
onPlay();
|
28 |
+
}, 50);
|
29 |
}, 0);
|
30 |
return player;
|
31 |
};
|
dist/components/collection/components/core/player/presto-player.js
CHANGED
@@ -21,9 +21,11 @@ export class PrestoPlayer {
|
|
21 |
* Play video
|
22 |
* @returns Plyr
|
23 |
*/
|
24 |
-
async play() {
|
25 |
this.shouldLazyLoad = false;
|
26 |
-
|
|
|
|
|
27 |
return this.player.play();
|
28 |
}
|
29 |
/**
|
@@ -1106,8 +1108,11 @@ export class PrestoPlayer {
|
|
1106 |
static get methods() { return {
|
1107 |
"play": {
|
1108 |
"complexType": {
|
1109 |
-
"signature": "() => Promise<any>",
|
1110 |
-
"parameters": [
|
|
|
|
|
|
|
1111 |
"references": {
|
1112 |
"Promise": {
|
1113 |
"location": "global"
|
21 |
* Play video
|
22 |
* @returns Plyr
|
23 |
*/
|
24 |
+
async play(unmute = false) {
|
25 |
this.shouldLazyLoad = false;
|
26 |
+
if (unmute) {
|
27 |
+
this.mutedPreview = false;
|
28 |
+
}
|
29 |
return this.player.play();
|
30 |
}
|
31 |
/**
|
1108 |
static get methods() { return {
|
1109 |
"play": {
|
1110 |
"complexType": {
|
1111 |
+
"signature": "(unmute?: boolean) => Promise<any>",
|
1112 |
+
"parameters": [{
|
1113 |
+
"tags": [],
|
1114 |
+
"text": ""
|
1115 |
+
}],
|
1116 |
"references": {
|
1117 |
"Promise": {
|
1118 |
"location": "global"
|
dist/components/esm/{hls-db076dc6.js → hls-99c3d5cf.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
import { l as _asyncToGenerator, a as _objectSpread2 } from './index-a4d27653.js';
|
2 |
-
import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
3 |
|
4 |
var loadHLS = function loadHLS(_ref) {
|
5 |
var config = _ref.config,
|
1 |
import { l as _asyncToGenerator, a as _objectSpread2 } from './index-a4d27653.js';
|
2 |
+
import { P as PrestoPlayer } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-47653784.js';
|
3 |
|
4 |
var loadHLS = function loadHLS(_ref) {
|
5 |
var config = _ref.config,
|
dist/components/esm/{learndash-a0b6dc31.js → learndash-a3579365.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { r as resumeProgress } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
2 |
import './index-a4d27653.js';
|
3 |
|
4 |
const learndash = (function (player) {
|
1 |
+
import { r as resumeProgress } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-47653784.js';
|
2 |
import './index-a4d27653.js';
|
3 |
|
4 |
const learndash = (function (player) {
|
dist/components/esm/presto-action-bar_19.entry.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
export { a as presto_action_bar, b as presto_action_bar_ui, c as presto_bunny, d as presto_cta_overlay, e as presto_cta_overlay_controller, C as presto_cta_overlay_ui, f as presto_dynamic_overlay_ui, g as presto_dynamic_overlays, h as presto_email_overlay, i as presto_email_overlay_controller, E as presto_email_overlay_ui, j as presto_muted_overlay, k as presto_player, l as presto_player_button, m as presto_player_spinner, n as presto_video, o as presto_vimeo, p as presto_youtube, q as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-
|
2 |
import './index-a4d27653.js';
|
1 |
+
export { a as presto_action_bar, b as presto_action_bar_ui, c as presto_bunny, d as presto_cta_overlay, e as presto_cta_overlay_controller, C as presto_cta_overlay_ui, f as presto_dynamic_overlay_ui, g as presto_dynamic_overlays, h as presto_email_overlay, i as presto_email_overlay_controller, E as presto_email_overlay_ui, j as presto_muted_overlay, k as presto_player, l as presto_player_button, m as presto_player_spinner, n as presto_video, o as presto_vimeo, p as presto_youtube, q as presto_youtube_subscribe_button } from './presto-action-bar.presto-action-bar-ui.presto-bunny.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-muted-overlay.presto-player.presto-player-button.presto-player-spinner.presto-video.presto-vimeo.presto-youtube.presto-youtube-subscribe-button-47653784.js';
|
2 |
import './index-a4d27653.js';
|
dist/components/types/components.d.ts
CHANGED
@@ -157,7 +157,7 @@ export namespace Components {
|
|
157 |
* Play video
|
158 |
* @returns Plyr
|
159 |
*/
|
160 |
-
"play": () => Promise<any>;
|
161 |
"playsinline": boolean;
|
162 |
"poster": string;
|
163 |
"preload": 'metadata' | 'none' | 'auto';
|
157 |
* Play video
|
158 |
* @returns Plyr
|
159 |
*/
|
160 |
+
"play": (unmute?: boolean) => Promise<any>;
|
161 |
"playsinline": boolean;
|
162 |
"poster": string;
|
163 |
"preload": 'metadata' | 'none' | 'auto';
|
dist/components/types/components/core/player/presto-player.d.ts
CHANGED
@@ -60,7 +60,7 @@ export declare class PrestoPlayer {
|
|
60 |
* Play video
|
61 |
* @returns Plyr
|
62 |
*/
|
63 |
-
play(): Promise<any>;
|
64 |
/**
|
65 |
* Play video
|
66 |
* @returns Plyr
|
60 |
* Play video
|
61 |
* @returns Plyr
|
62 |
*/
|
63 |
+
play(unmute?: boolean): Promise<any>;
|
64 |
/**
|
65 |
* Play video
|
66 |
* @returns Plyr
|
dist/components/web-components/{p-d7295411.entry.js → p-1655ec4d.entry.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
export{a as presto_action_bar,b as presto_action_bar_ui,c as presto_bunny,d as presto_cta_overlay,e as presto_cta_overlay_controller,C as presto_cta_overlay_ui,f as presto_dynamic_overlay_ui,g as presto_dynamic_overlays,h as presto_email_overlay,i as presto_email_overlay_controller,E as presto_email_overlay_ui,j as presto_muted_overlay,k as presto_player,l as presto_player_button,m as presto_player_spinner,n as presto_video,o as presto_vimeo,p as presto_youtube,q as presto_youtube_subscribe_button}from"./p-
|
1 |
+
export{a as presto_action_bar,b as presto_action_bar_ui,c as presto_bunny,d as presto_cta_overlay,e as presto_cta_overlay_controller,C as presto_cta_overlay_ui,f as presto_dynamic_overlay_ui,g as presto_dynamic_overlays,h as presto_email_overlay,i as presto_email_overlay_controller,E as presto_email_overlay_ui,j as presto_muted_overlay,k as presto_player,l as presto_player_button,m as presto_player_spinner,n as presto_video,o as presto_vimeo,p as presto_youtube,q as presto_youtube_subscribe_button}from"./p-1cf667af.js";import"./p-660ec1bb.js";
|
dist/components/web-components/{p-cd46cf89.js → p-1cf667af.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{r as t,h as e,g as r,c as i,_ as o,a as n,d as a,e as s,f as l,i as p,j as u,k as c,l as d,m as h,H as v}from"./p-660ec1bb.js";function y({current:t,duration:e,showAfter:r}){if(!r||!e)return!1;if(t===r)return!0;let i=t/e*100;return 99.9<i&&(i=100),i>=r}function f(t){let e,r=t.split(":");return r.length>1&&(e=60*parseInt(r[0])),parseInt(r[1])+parseInt(e)}function g(){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"}const b=class{constructor(e){t(this,e),this.show=!1,this.youtubeRenderKey=1}componentWillLoad(){this.handleDuration()}handleButtonCountChange(t,e){(null==t?void 0:t.button_count)!==(null==e?void 0:e.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}handleDuration(){var t,e;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||y({current:this.currentTime,duration:this.duration,showAfter:(null===(e=this.config)||void 0===e?void 0:e.percentage_start)||0})}youtubeButton(){var t,r,i,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(r=this.youtube)||void 0===r?void 0:r.channelId))return e("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,r,i,o,n,a,s,l,p,u,c;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return e("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(r=this.config)||void 0===r?void 0:r.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===(c=this.config)||void 0===c?void 0:c.button_text)}render(){var t,r;return e("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===(r=this.config)||void 0===r?void 0:r.text,e("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return r(this)}static get watchers(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}};b.style=":host{display:block}";const m=class{constructor(e){t(this,e)}render(){return e("div",{class:{bar:!0,"bar--open":this.open}},e("span",{part:"content",class:"bar__content"},e("slot",null)),e("span",{part:"button",class:"bar__button"},e("slot",{name:"button"})))}};m.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)}.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}}";const _=class{constructor(e){t(this,e)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return e("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})}},w=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,r;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("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})}};w.style=":host{display:block}";const k=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.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=y({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()}render(){var t,r,i,o,n,a,s,l,p,u,c,d,h,v;if(this.show)return e("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===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.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===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.button_link,allowSkip:!this.ended&&(null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(v=null==this?void 0:this.cta)||void 0===v?void 0:v.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"]}}};k.style=":host{display:block}";const x=function(t,e,r){var i=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},r),o=function(t){var r=e||1,o=function(){var e;t.style.fontSize=Math.max(Math.min(((null==i||null===(e=i.container)||void 0===e?void 0:e.clientWidth)||0)/(10*r),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},z=class{constructor(e){t(this,e),this.skip=i(this,"skip",7),this.rewatch=i(this,"rewatch",7)}componentDidLoad(){x(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleCTAClick(t){var e;(null===(e=this.buttonLink)||void 0===e?void 0:e.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,e,r;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(e=this.buttonLink)||void 0===e?void 0:e.url,"_blank"):window.location.href=null===(r=this.buttonLink)||void 0===r?void 0:r.url}render(){var t,r,i,o,n;return e("div",{class:"wrapper",ref:t=>this.textInput=t},e("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":""}`},e("div",{class:"content"},e("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&e("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&e("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(r=null==this?void 0:this.buttonLink)||void 0===r?void 0:r.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&&e("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},e("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"},e("polyline",{points:"9 14 4 9 9 4"}),e("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&&e("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," →"))}};z.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}';const j=class{constructor(e){t(this,e),this.position="top-right"}closestElement(t,e){return e&&e!=document&&e!=window&&e.closest(t)||e&&this.closestElement(t,e.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);x(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return e(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},e("slot",null))}get el(){return r(this)}};j.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}";const T=class{constructor(e){t(this,e),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,e,r,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===(r=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===r?void 0:r.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:e,component:r}=this.refs[t];this.checkComponent(r,e.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,e,r){if(!(null==t?void 0:t.offsetParent))return r();if(!t.shadowRoot.querySelector("slot"))return r();if(this.player&&this.player.playing){const i=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(i){if(i.parentElement.innerHTML!=e)return r();const t=getComputedStyle(i.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return r();const o=function(t){var e=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return e?[e[1],e[2],e[3],"1"]:(e=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[e[1],e[2],e[3],e[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return r()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<f(null==t?void 0:t.startTime)||this.currentTime>f(null==t?void 0:t.endTime))}renderOverlay(t){var r,i;return e("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:e=>this.refs[t.id]={overlay:t,component:e},key:t.id,position:t.position,href:null===(r=null==t?void 0:t.link)||void 0===r?void 0:r.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 e,r,i;if(!(null===(r=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===r?void 0:r.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,r,i,o,n,a,s,l,p,u,c;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===i?void 0:i.enabled)))return e("div",{class:"overlays",ref:t=>this.container=t},e("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&e("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)))),e("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&e("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===(c=null==this?void 0:this.overlays)||void 0===c?void 0:c.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return r(this)}};T.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}";const S=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,r;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,emailCollection:null===(t=this.preset)||void 0===t?void 0:t.email_collection,i18n:this.i18n})}};S.style=":host{display:block}";const P=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",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=y({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 e;this.loading=!0,this.error="";const r=await this.getNonce(),{data:i}=await r.json();try{let r=await fetch(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.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 r.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const e=null==t?void 0:t[0];e&&"string"==typeof e&&(this.error=e)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var t,r,i,o;if(this.show)return e("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.headline,bottomText:null===(r=null==this?void 0:this.emailCollection)||void 0===r?void 0:r.bottom_text,allowSkip:null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.allow_skip,buttonText:null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"]}}};P.style=":host{display:block}";const C=class{constructor(e){t(this,e),this.submitForm=i(this,"submitForm",7),this.skip=i(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){x(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,r,i,o;return e("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},e("div",{class:"content"},e("h1",null,this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?e("presto-player-spinner",null):e("form",{onSubmit:t=>this.handleSubmit(t)},e("input",{type:"email",placeholder:null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),e("button",{type:"submit"},this.buttonText||(null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.play))),this.errorMessage&&e("p",{class:"error"},this.errorMessage),this.bottomText&&e("p",{innerHTML:this.bottomText}),!!this.allowSkip&&e("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};C.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}.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: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-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}.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}';const O=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7)}render(){var t,r,i,o,n,a,s,l,p;return e("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"])&&e("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},e("svg",{id:"plyr-play",viewBox:"0 0 18 18"},e("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"})),e("span",{class:"plyr__sr-only"},"Play")),(null===(r=this.mutedOverlay)||void 0===r?void 0:r.enabled)&&(null===(i=this.mutedOverlay)||void 0===i?void 0:i.src)?e("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)+"%"}},e("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};O.style=":host{display:block}";var I=["premium","referrerPolicy"];function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var N={addCSS:!0,thumbWidth:15,watch:!0};function R(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var D=function(t){return null!=t?t.constructor:null},B=function(t,e){return!!(t&&e&&t instanceof e)},q=function(t){return D(t)===String},H=function(t){return Array.isArray(t)},V=function(t){return B(t,NodeList)},$=q,U=H,Q=V,W=function(t){return B(t,Element)},Y=function(t){return B(t,Event)},J=function(t){return function(t){return null==t}(t)||(q(t)||H(t)||V(t))&&!t.length||function(t){return D(t)===Object}(t)&&!Object.keys(t).length};var G,K,X,Z=function(){function t(e,r){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),W(e)?this.element=e:$(e)&&(this.element=document.querySelector(e)),W(this.element)&&J(this.element.rangeTouch)&&(this.config=L({},N,{},r),this.init())}return function(t,e,r){e&&M(t.prototype,e),r&&M(t,r)}(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 e=this,r=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[r](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!Y(e))return null;var r,i=e.target,o=e.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>(r=100/l.width*(o.clientX-l.left))?r=0:100<r&&(r=100),50>r?r-=(100-2*r)*p:50<r&&(r+=2*(r-50)*p),n+function(t,e){if(1>e){var r=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(r))}return Math.round(t/e)*e}(r/100*(a-n),s)}},{key:"set",value:function(e){t.enabled&&Y(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var r=new Event(e,{bubbles:!0});t.dispatchEvent(r)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(J(e)||$(e)?i=Array.from(document.querySelectorAll($(e)?e:'input[type="range"]')):W(e)?i=[e]:Q(e)?i=Array.from(e):U(e)&&(i=e.filter(W)),J(i))return null;var o=L({},N,{},r);if($(e)&&o.watch){var n=new MutationObserver((function(r){Array.from(r).forEach((function(r){Array.from(r.addedNodes).forEach((function(r){W(r)&&R(r,e)&&new t(r,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(e){return new t(e,r)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),tt=function(t){return null!=t?t.constructor:null},et=function(t,e){return Boolean(t&&e&&t instanceof e)},rt=function(t){return null==t},it=function(t){return tt(t)===Object},ot=function(t){return tt(t)===String},nt=function(t){return tt(t)===Function},at=function(t){return Array.isArray(t)},st=function(t){return et(t,NodeList)},lt=function(t){return rt(t)||(ot(t)||at(t)||st(t))&&!t.length||it(t)&&!Object.keys(t).length},pt=rt,ut=it,ct=function(t){return tt(t)===Number&&!Number.isNaN(t)},dt=ot,ht=function(t){return tt(t)===Boolean},vt=nt,yt=at,ft=st,gt=function(t){return null!==t&&"object"==l(t)&&1===t.nodeType&&"object"==l(t.style)&&"object"==l(t.ownerDocument)},bt=function(t){return et(t,Event)},mt=function(t){return et(t,KeyboardEvent)},_t=function(t){return et(t,TextTrack)||!rt(t)&&ot(t.kind)},wt=function(t){if(et(t,window.URL))return!0;if(!ot(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!lt(new URL(e).hostname)}catch(t){return!1}},kt=lt,xt=(G=document.createElement("span"),K={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},X=Object.keys(K).find((function(t){return void 0!==G.style[t]})),!!dt(X)&&K[X]);function zt(t,e){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),e)}var jt={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 Tt(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}function St(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(!r.length)return t;var o=r.shift();return ut(o)?(Object.keys(o).forEach((function(e){ut(o[e])?(Object.keys(t).includes(e)||Object.assign(t,a({},e,{})),St(t[e],o[e])):Object.assign(t,a({},e,o[e]))})),St.apply(void 0,[t].concat(r))):t}function Pt(t,e){Array.from(t.length?t:[t]).reverse().forEach((function(t,r){var i=r>0?e.cloneNode(!0):e,o=t.parentNode,n=t.nextSibling;i.appendChild(t),n?o.insertBefore(i,n):o.appendChild(i)}))}function Ct(t,e){gt(t)&&!kt(e)&&Object.entries(e).filter((function(t){var e=o(t,2);return!pt(e[1])})).forEach((function(e){var r=o(e,2);return t.setAttribute(r[0],r[1])}))}function Ot(t,e,r){var i=document.createElement(t);return ut(e)&&Ct(i,e),dt(r)&&(i.innerText=r),i}function It(t,e,r,i){gt(e)&&e.appendChild(Ot(t,r,i))}function At(t){ft(t)||yt(t)?Array.from(t).forEach(At):gt(t)&>(t.parentNode)&&t.parentNode.removeChild(t)}function Mt(t){if(gt(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function Et(t,e){return gt(e)&>(e.parentNode)&>(t)?(e.parentNode.replaceChild(t,e),t):null}function Ft(t,e){if(!dt(t)||kt(t))return{};var r={},i=St({},e);return t.split(",").forEach((function(t){var e=t.trim(),n=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),s=o(a,1)[0],l=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":r.class=dt(i.class)?"".concat(i.class," ").concat(n):n;break;case"#":r.id=e.replace("#","");break;case"[":r[s]=l}})),St(i,r)}function Lt(t,e){if(gt(t)){var r=e;ht(r)||(r=!t.hidden),t.hidden=r}}function Nt(t,e,r){if(ft(t))return Array.from(t).map((function(t){return Nt(t,e,r)}));if(gt(t)){var i="toggle";return void 0!==r&&(i=r?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function Rt(t,e){return gt(t)&&t.classList.contains(e)}function Dt(t,e){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function Bt(t){return this.elements.container.querySelectorAll(t)}function qt(t){return this.elements.container.querySelector(t)}function Ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];gt(t)&&(t.focus({preventScroll:!0}),e&&Nt(t,this.config.classNames.tabFocus))}var Vt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},$t={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,r){var i=$t[t]||"html5"!==e;return{api:i,ui:i&&$t.rangeInput&&("video"!==t||!jt.isIPhone||jt.isIPhone&&r&&$t.playsinline)}},pip:!(jt.isIPhone||!vt(Ot("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Ot("video").disablePictureInPicture)),airplay:vt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(kt(t))return!1;var e=t.split("/"),r=o(e,1),i=t;if(!this.isHTML5||r[0]!==this.type)return!1;Object.keys(Vt).includes(i)&&(i+='; codecs="'.concat(Vt[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!==xt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ut=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Qt(t,e,r){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&&!kt(e)&&vt(r)){var s=e.split(" "),l=a;Ut&&(l={passive:n,capture:a}),s.forEach((function(e){i&&i.eventListeners&&o&&i.eventListeners.push({element:t,type:e,callback:r,options:l}),t[o?"addEventListener":"removeEventListener"](e,r,l)}))}}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=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];Qt.call(this,t,e,r,!0,i,o)}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=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];Qt.call(this,t,e,r,!1,i,o)}function Jt(t){var e=this,r=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];Yt(t,r,a,o,n),i.apply(e,l)};Qt.call(this,t,r,a,!0,o,n)}function Gt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(gt(t)&&!kt(e)){var o=new CustomEvent(e,{bubbles:r,detail:n(n({},i),{},{plyr:this})});t.dispatchEvent(o)}}function Kt(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Xt(){var t=this;return new Promise((function(e){return t.ready?setTimeout(e,0):Wt.call(t,t.elements.container,"ready",e)})).then((function(){}))}function Zt(t){(function(t){return et(t,Promise)&&nt(t.then)})(t)&&t.then(null,(function(){}))}function te(t){return yt(t)?t.filter((function(e,r){return t.indexOf(e)===r})):t}function ee(t,e){return yt(t)&&t.length?t.reduce((function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t})):null}function re(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var ie=[[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,e){var r=o(e,2),i=r[0],s=r[1];return n(n({},t),{},a({},i/s,[i,s]))}),{});function oe(t){return!!(yt(t)||dt(t)&&t.includes(":"))&&(yt(t)?t:t.split(":")).map(Number).every(ct)}function ne(t){if(!yt(t)||!t.every(ct))return null;var e=o(t,2),r=e[0],i=e[1],n=function t(e,r){return 0===r?e:t(r,e%r)}(r,i);return[r/n,i/n]}function ae(t){var e=function(t){return oe(t)?t.split(":").map(Number):null},r=e(t);if(null===r&&(r=e(this.config.ratio)),null===r&&!kt(this.embed)&&yt(this.embed.ratio)&&(r=this.embed.ratio),null===r&&this.isHTML5){var i=this.media;r=[i.videoWidth,i.videoHeight]}return ne(r)}function se(t){if(!this.isVideo)return{};var e=this.elements.wrapper,r=ae.call(this,t);if(!yt(r))return{};var i=ne(r),n=o(i,2),a=n[0],s=n[1],l=100/a*s;if(re("aspect-ratio: ".concat(a,"/").concat(s))?e.style.aspectRatio="".concat(a,"/").concat(s):e.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?e.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:l,ratio:r}}function le(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/e,o=ee(Object.keys(ie),i);return Math.abs(o-i)<=r?ie[o]:[t,e]}var pe={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(e){var r=e.getAttribute("type");return!!kt(r)||$t.mime.call(t,r)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:pe.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,kt(this.config.ratio)||se.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=pe.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&vt(t.config.quality.onChange))t.config.quality.onChange(e);else{var r=pe.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===e}));if(!r)return;var i=t.media,o=i.currentTime,n=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;t.media.src=r.getAttribute("src"),("none"!==a||s)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=o,n||Zt(t.play())})),t.media.load())}Gt.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(At(pe.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ue(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function ce(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return kt(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,e){return r[e].toString()}))}var de=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),r.toString())},he=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 ve(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toString();return e=de(e,"-"," "),e=de(e,"_"," "),e=he(e),de(e," ","")}function ye(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}var fe={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(kt(t)||kt(e))return"";var r=Tt(e.i18n,t);if(kt(r))return Object.keys(fe).includes(t)?fe[t]:"";var i={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(i).forEach((function(t){var e=o(t,2);r=de(r,e[0],e[1])})),r},be=function(){function t(e){var r=this;p(this,t),A(this,"get",(function(e){if(!t.supported||!r.enabled)return null;var i=window.localStorage.getItem(r.key);if(kt(i))return null;var o=JSON.parse(i);return dt(e)&&e.length?o[e]:o})),A(this,"set",(function(e){if(t.supported&&r.enabled&&ut(e)){var i=r.get();kt(i)&&(i={}),St(i,e),window.localStorage.setItem(r.key,JSON.stringify(i))}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return s(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 me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(r,i){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===e)try{r(JSON.parse(o.responseText))}catch(t){r(o.responseText)}else r(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=e,o.send()}catch(t){i(t)}}))}function _e(t,e){if(dt(t)){var r=dt(e),i=function(){return null!==document.getElementById(e)},o=function(t,e){t.innerHTML=e,r&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!r||!i()){var n=be.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),r&&a.setAttribute("id",e),n){var s=window.localStorage.getItem("cache-".concat(e));if(null!==s){var l=JSON.parse(s);o(a,l.content)}}me(t).then((function(t){kt(t)||(n&&window.localStorage.setItem("cache-".concat(e),JSON.stringify({content:t})),o(a,t))})).catch((function(){}))}}}var we=function(t){return Math.trunc(t/60/60%60,10)},ke=function(t){return Math.trunc(t%60,10)};function xe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!ct(t))return xe(void 0,e,r);var i,o=function(t){return"0".concat(t).slice(-2)},n=we(t),a=(i=t,Math.trunc(i/60%60,10)),s=ke(t);return n=e||n>0?"".concat(n,":"):"","".concat(r&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(s))}var ze={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,r=t.host!==e||jt.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:r}},findElements:function(){try{return this.elements.controls=qt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Bt.call(this,this.config.selectors.buttons.play),pause:qt.call(this,this.config.selectors.buttons.pause),restart:qt.call(this,this.config.selectors.buttons.restart),rewind:qt.call(this,this.config.selectors.buttons.rewind),fastForward:qt.call(this,this.config.selectors.buttons.fastForward),mute:qt.call(this,this.config.selectors.buttons.mute),pip:qt.call(this,this.config.selectors.buttons.pip),airplay:qt.call(this,this.config.selectors.buttons.airplay),settings:qt.call(this,this.config.selectors.buttons.settings),captions:qt.call(this,this.config.selectors.buttons.captions),fullscreen:qt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=qt.call(this,this.config.selectors.progress),this.elements.inputs={seek:qt.call(this,this.config.selectors.inputs.seek),volume:qt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:qt.call(this,this.config.selectors.display.buffer),currentTime:qt.call(this,this.config.selectors.display.currentTime),duration:qt.call(this,this.config.selectors.display.duration)},gt(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,e){var r="http://www.w3.org/2000/svg",i=ze.getIconUrl.call(this),o="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(r,"svg");Ct(n,St(e,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(r,"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 e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ge(t,this.config);return Ot("span",n(n({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),r)},createBadge:function(t){if(kt(t))return null;var e=Ot("span",{class:this.config.classNames.menu.value});return e.appendChild(Ot("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var r=this,i=St({},e),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=ve(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===r.config.classNames.control}))||St(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:kt(n.label)&&(n.label=o),kt(n.icon)&&(n.icon=t)}var a=Ot(n.element);return n.toggle?(a.appendChild(ze.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(ze.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(ze.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(ze.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(ze.createIcon.call(this,n.icon)),a.appendChild(ze.createLabel.call(this,n.label))),St(i,Ft(this.config.selectors.buttons[o],i)),Ct(a,i),"play"===o?(yt(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,e){var r=Ot("input",St(Ft(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ge(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=r,ze.updateRangeFill.call(this,r),Z.setup(r),r},createProgress:function(t,e){var r=Ot("progress",St(Ft(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){r.appendChild(Ot("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],o=i?ge(i,this.config):"";r.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=r,r},createTime:function(t,e){var r=Ft(this.config.selectors.display[t],e),i=Ot("div",St(r,{class:"".concat(r.class?r.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":ge(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,e){var r=this;Wt.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=Dt(t,'[role="menuitemradio"]');!n&&[32,39].includes(i.which)?ze.showMenuPanel.call(r,e,!0):32!==i.which&&(40===i.which||n&&39===i.which?gt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):gt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Ht.call(r,o,!0))}}),!1),Wt.call(this,t,"keyup",(function(t){13===t.which&&ze.focusFirstMenuItem.call(r,null,!0)}))},createMenuItem:function(t){var e=this,r=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=Ft(this.config.selectors.inputs[o]),c=Ot("button",St(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:r})),d=Ot("span");d.innerHTML=n,gt(s)&&d.appendChild(s),c.appendChild(d),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(t){t&&Array.from(c.parentNode.children).filter((function(t){return Dt(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),c.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(c,"click keyup",(function(t){if(!mt(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,o){case"language":e.currentTrack=Number(r);break;case"quality":e.quality=r;break;case"speed":e.speed=parseFloat(r)}ze.showMenuPanel.call(e,"home",mt(t))}}),o,!1),ze.bindMenuItemShortcuts.call(this,c,o),i.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ct(t)?xe(t,we(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];gt(t)&&ct(e)&&(t.innerText=ze.formatTime(e,r))},updateVolume:function(){this.supported.ui&&(gt(this.elements.inputs.volume)&&ze.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),gt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;gt(t)&&(t.value=e,ze.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&bt(t)){var r=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":r=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&ze.setRange.call(this,this.elements.inputs.seek,r);break;case"playing":case"progress":!function(t,r){var i=ct(r)?r:0,o=gt(t)?t:e.elements.display.buffer;if(gt(o)){o.value=i;var n=o.getElementsByTagName("span")[0];gt(n)&&(n.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=bt(t)?t.target:t;if(gt(e)&&"range"===e.getAttribute("type")){if(Dt(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var r=ze.formatTime(this.currentTime),i=ze.formatTime(this.duration),o=ge("seekLabel",this.config);e.setAttribute("aria-valuetext",o.replace("{currentTime}",r).replace("{duration}",i))}else if(Dt(e,this.config.selectors.inputs.volume)){var n=100*e.value;e.setAttribute("aria-valuenow",n),e.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);jt.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&>(this.elements.inputs.seek)&>(this.elements.display.seekTooltip)&&0!==this.duration){var r="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return Nt(e.elements.display.seekTooltip,r,t)};if(this.touch)i(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(bt(t))o=100/n.width*(t.pageX-n.left);else{if(!Rt(this.elements.display.seekTooltip,r))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),ze.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),bt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!gt(this.elements.display.duration)&&this.config.invertTime;ze.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||ze.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Lt(this.elements.display.currentTime,!0),void Lt(this.elements.progress,!0);gt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=gt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&ze.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&ze.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),ze.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){Lt(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,r){var i=this.elements.settings.panels[t],o=null,n=e;if("captions"===t)o=this.currentTrack;else{if(o=kt(r)?this[t]:r,kt(o)&&(o=this.config[t].default),!kt(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(gt(n)||(n=i&&i.querySelector('[role="menu"]')),gt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=ze.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));gt(a)&&(a.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?ge("normal",this.config):"".concat(e,"×");case"quality":if(ct(e)){if(0===e)return ge("auto",this.config);var r=ge("qualityLabel.".concat(e),this.config);return r.length?r:"".concat(e,"p")}return he(e);case"captions":return Se.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if(gt(this.elements.settings.panels.quality)){var r="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');yt(t)&&(this.options.quality=te(t).filter((function(t){return e.config.quality.options.includes(t)})));var o=!kt(this.options.quality)&&this.options.quality.length>1;if(ze.toggleMenuButton.call(this,r,o),Mt(i),ze.checkMenu.call(this),o){var n=function(t){var r=ge("qualityBadge.".concat(t),e.config);return r.length?ze.createBadge.call(e,r):null};this.options.quality.sort((function(t,r){var i=e.config.quality.options;return i.indexOf(t)>i.indexOf(r)?1:-1})).forEach((function(t){ze.createMenuItem.call(e,{value:t,list:i,type:r,title:ze.getLabel.call(e,"quality",t),badge:n(t)})})),ze.updateSetting.call(this,r,i)}}},setCaptionsMenu:function(){var t=this;if(gt(this.elements.settings.panels.captions)){var e="captions",r=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Se.getTracks.call(this),o=Boolean(i.length);if(ze.toggleMenuButton.call(this,e,o),Mt(r),ze.checkMenu.call(this),o){var n=i.map((function(e,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:Se.getLabel.call(t,e),badge:e.language&&ze.createBadge.call(t,e.language.toUpperCase()),list:r,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:ge("disabled",this.config),list:r,type:"language"}),n.forEach(ze.createMenuItem.bind(this)),ze.updateSetting.call(this,e,r)}}},setSpeedMenu:function(){var t=this;if(gt(this.elements.settings.panels.speed)){var e="speed",r=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var i=!kt(this.options.speed)&&this.options.speed.length>1;ze.toggleMenuButton.call(this,e,i),Mt(r),ze.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){ze.createMenuItem.call(t,{value:i,list:r,type:e,title:ze.getLabel.call(t,"speed",i)})})),ze.updateSetting.call(this,e,r))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!kt(t)&&Object.values(t).some((function(t){return!t.hidden}));Lt(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var r=t;gt(r)||(r=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=r.querySelector('[role^="menuitem"]');Ht.call(this,i,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,r=this.elements.buttons.settings;if(gt(e)&>(r)){var i=e.hidden,o=i;if(ht(t))o=t;else if(mt(t)&&27===t.which)o=!1;else if(bt(t)){var n=vt(t.composedPath)?t.composedPath()[0]:t.target,a=e.contains(n);if(a||!a&&t.target!==r&&o)return}r.setAttribute("aria-expanded",o),Lt(e,!o),Nt(this.elements.container,this.config.classNames.menu.open,o),o&&mt(t)?ze.focusFirstMenuItem.call(this,null,!0):o||i||Ht.call(this,r,mt(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var r=e.scrollWidth,i=e.scrollHeight;return At(e),{width:r,height:i}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if(gt(i)){var o=i.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if($t.transitions&&!$t.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=ze.getMenuSize.call(this,i),s=function e(r){r.target===o&&["width","height"].includes(r.propertyName)&&(o.style.width="",o.style.height="",Yt.call(t,o,xt,e))};Wt.call(this,o,xt,s),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}Lt(n,!0),Lt(i,!1),ze.focusFirstMenuItem.call(this,i,r)}},setDownloadUrl:function(){var t=this.elements.buttons.download;gt(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,r=ze.bindMenuItemShortcuts,i=ze.createButton,o=ze.createProgress,n=ze.createRange,a=ze.createTime,s=ze.setQualityMenu,l=ze.setSpeedMenu,p=ze.showMenuPanel;this.elements.controls=null,yt(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Ot("div",Ft(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return te(yt(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(e,"restart",c)),"rewind"===s&&u.appendChild(i.call(e,"rewind",c)),"play"===s&&u.appendChild(i.call(e,"play",c)),"fast-forward"===s&&u.appendChild(i.call(e,"fast-forward",c)),"progress"===s){var l=Ot("div",{class:"".concat(c.class," plyr__progress__container")}),d=Ot("div",Ft(e.config.selectors.progress));if(d.appendChild(n.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(o.call(e,"buffer")),e.config.tooltips.seek){var h=Ot("span",{class:e.config.classNames.tooltip},"00:00");d.appendChild(h),e.elements.display.seekTooltip=h}e.elements.progress=d,l.appendChild(e.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(e,"currentTime",c)),"duration"===s&&u.appendChild(a.call(e,"duration",c)),"mute"===s||"volume"===s){var v=e.elements.volume;gt(v)&&u.contains(v)||(v=Ot("div",St({},c,{class:"".concat(c.class," plyr__volume").trim()})),e.elements.volume=v,u.appendChild(v)),"mute"===s&&v.appendChild(i.call(e,"mute")),"volume"!==s||jt.isIos||v.appendChild(n.call(e,"volume",St({max:1,step:.05,value:e.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===s&&u.appendChild(i.call(e,"captions",c)),"settings"===s&&!kt(e.config.settings)){var y=Ot("div",St({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));y.appendChild(i.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=Ot("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=Ot("div"),b=Ot("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=Ot("div",{role:"menu"});b.appendChild(m),g.appendChild(b),e.elements.settings.panels.home=b,e.config.settings.forEach((function(i){var o=Ot("button",St(Ft(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));r.call(e,o,i),Wt.call(e,o,"click",(function(){p.call(e,i,!1)}));var n=Ot("span",null,ge(i,e.config)),a=Ot("span",{class:e.config.classNames.menu.value});a.innerHTML=t[i],n.appendChild(a),o.appendChild(n),m.appendChild(o);var s=Ot("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),l=Ot("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});l.appendChild(Ot("span",{"aria-hidden":!0},ge(i,e.config))),l.appendChild(Ot("span",{class:e.config.classNames.hidden},ge("menuBack",e.config))),Wt.call(e,s,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(e,"home",!0))}),!1),Wt.call(e,l,"click",(function(){p.call(e,"home",!1)})),s.appendChild(l),s.appendChild(Ot("div",{role:"menu"})),g.appendChild(s),e.elements.settings.buttons[i]=o,e.elements.settings.panels[i]=s})),f.appendChild(g),y.appendChild(f),u.appendChild(y),e.elements.settings.popup=f,e.elements.settings.menu=y}if("pip"===s&&$t.pip&&u.appendChild(i.call(e,"pip",c)),"airplay"===s&&$t.airplay&&u.appendChild(i.call(e,"airplay",c)),"download"===s){var _=St({},c,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(_.download=""),!wt(e.config.urls.download)&&e.isEmbed&&St(_,{icon:"logo-".concat(e.provider),label:e.provider}),u.appendChild(i.call(e,"download",_))}"fullscreen"===s&&u.appendChild(i.call(e,"fullscreen",c))})),this.isHTML5&&s.call(this,pe.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var e=ze.getIconUrl.call(this);e.cors&&_e(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var r=null;this.elements.controls=null;var i,n={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(vt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),gt(this.config.controls)||dt(this.config.controls)?r=this.config.controls:(r=ze.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Se.getLabel.call(this)}),a=!1),a&&dt(this.config.controls)&&(r=function(t){var e=t;return Object.entries(n).forEach((function(t){var r=o(t,2),i=r[1];e=de(e,"{".concat(r[0],"}"),i)})),e}(r)),dt(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),gt(i)||(i=this.elements.container),i[gt(r)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",r),gt(this.elements.controls)||ze.findElements.call(this),!kt(this.elements.buttons)){var s=function(e){var r=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return Rt(e,r)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Nt(e,r,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){yt(t)||ft(t)?Array.from(t).filter(Boolean).forEach(s):s(t)}))}if(jt.isEdge&&zt(i),this.config.tooltips.controls){var l=this.config,p=l.classNames,u=l.selectors,c="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),d=Bt.call(this,c);Array.from(d).forEach((function(e){Nt(e,t.config.classNames.hidden,!1),Nt(e,t.config.classNames.tooltip,!0)}))}}};function je(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;if(e){var i=document.createElement("a");i.href=r,r=i.href}try{return new URL(r)}catch(t){return null}}function Te(t){var e=new URLSearchParams;return ut(t)&&Object.entries(t).forEach((function(t){var r=o(t,2);e.set(r[0],r[1])})),e}var Se={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!$t.textTracks)yt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ze.setCaptionsMenu.call(this);else{if(gt(this.elements.captions)||(this.elements.captions=Ot("div",Ft(this.config.selectors.captions)),function(t,e){gt(t)&>(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),jt.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var e=t.getAttribute("src"),r=je(e);null!==r&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&me(e,"blob").then((function(e){t.setAttribute("src",window.URL.createObjectURL(e))})).catch((function(){At(t)}))}))}var e=te((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),r=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===r&&(r=o(e,1)[0]);var i=this.storage.get("captions");ht(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:r,languages:e}),this.isHTML5&&Wt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Se.update.bind(this)),setTimeout(Se.update.bind(this),0)}},update:function(){var t=this,e=Se.getTracks.call(this,!0),r=this.captions,i=r.active,o=r.language,n=r.meta,a=r.currentTrackNode,s=Boolean(e.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&e.filter((function(t){return!n.get(t)})).forEach((function(e){t.debug.log("Track added",e),n.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),Wt.call(t,e,"cuechange",(function(){return Se.updateCues.call(t)}))})),(s&&this.language!==o||!e.includes(a))&&(Se.setLanguage.call(this,o),Se.toggle.call(this,i&&s)),Nt(this.elements.container,this.config.classNames.captions.enabled,!kt(e)),yt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ze.setCaptionsMenu.call(this)},toggle:function(t){var e=this,r=!(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=pt(t)?!i:t;if(n!==i){if(r||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!r){var a=Se.getTracks.call(this),s=Se.findTrack.call(this,[this.captions.language].concat(u(this.captions.languages)),!0);return this.captions.language=s.language,void Se.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Nt(this.elements.container,o,n),this.captions.toggled=n,ze.updateSetting.call(this,"captions"),Gt.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&e.captions.toggled&&e.captions.currentTrackNode&&(e.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Se.getTracks.call(this);if(-1!==t)if(ct(t))if(t in r){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=r[t],o=i||{},n=o.language;this.captions.currentTrackNode=i,ze.updateSetting.call(this,"captions"),e||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Gt.call(this,this.media,"languagechange")}Se.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Se.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Se.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(dt(t)){var r=t.toLowerCase();this.captions.language=r;var i=Se.getTracks.call(this),o=Se.findTrack.call(this,[r]);Se.set.call(this,i.indexOf(o),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(r){return!t.isHTML5||e||t.captions.meta.has(r)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var e,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Se.getTracks.call(this),n=function(t){return Number((r.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,e){return n(e)-n(t)}));return t.every((function(t){return!(e=a.find((function(e){return e.language===t})))})),e||(i?a[0]:void 0)},getCurrentTrack:function(){return Se.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!_t(e)&&$t.textTracks&&this.captions.toggled&&(e=Se.getCurrentTrack.call(this)),_t(e)?kt(e.label)?kt(e.language)?ge("enabled",this.config):t.language.toUpperCase():e.label:ge("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(gt(this.elements.captions))if(pt(t)||Array.isArray(t)){var e=t;if(!e){var r=Se.getCurrentTrack.call(this);e=Array.from((r||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(ye)}var i=e.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Mt(this.elements.captions);var o=Ot("span",Ft(this.config.selectors.caption));o.innerHTML=i,this.elements.captions.appendChild(o),Gt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Pe={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.8/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"}},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}},Ce={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Oe=function(){},Ie=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return s(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Oe}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Oe}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Oe}}]),t}(),Ae=function(){function t(e){var r=this;p(this,t),A(this,"onChange",(function(){if(r.enabled){var t=r.player.elements.buttons.fullscreen;gt(t)&&(t.pressed=r.active),Gt.call(r.player,r.target===r.player.media?r.target:r.player.elements.container,r.active?"enterfullscreen":"exitfullscreen",!0)}})),A(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?r.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(r.scrollPosition.x,r.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Nt(r.target,r.player.config.classNames.fullscreen.fallback,t),jt.isIos){var e=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var o=dt(e.content)&&e.content.includes(i);t?(r.cleanupViewport=!o,o||(e.content+=",".concat(i))):r.cleanupViewport&&(e.content=e.content.split(",").filter((function(t){return t.trim()!==i})).join(","))}r.onChange()})),A(this,"trapFocus",(function(t){if(!jt.isIos&&r.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,i=Bt.call(r.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=o(i,1)[0],a=i[i.length-1];e!==a||t.shiftKey?e===n&&t.shiftKey&&(a.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}})),A(this,"update",(function(){r.player.debug.log(r.enabled?"".concat(r.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Nt(r.player.elements.container,r.player.config.classNames.fullscreen.enabled,r.enabled)})),A(this,"enter",(function(){r.enabled&&(jt.isIos&&r.player.config.fullscreen.iosNative?r.player.isVimeo?r.player.embed.requestFullscreen():r.target.webkitEnterFullscreen():!t.native||r.forceFallback?r.toggleFallback(!0):r.prefix?kt(r.prefix)||r.target["".concat(r.prefix,"Request").concat(r.property)]():r.target.requestFullscreen({navigationUI:"hide"}))})),A(this,"exit",(function(){if(r.enabled)if(jt.isIos&&r.player.config.fullscreen.iosNative)r.target.webkitExitFullscreen(),Zt(r.player.play());else if(!t.native||r.forceFallback)r.toggleFallback(!1);else if(r.prefix){if(!kt(r.prefix)){var e="moz"===r.prefix?"Cancel":"Exit";document["".concat(r.prefix).concat(e).concat(r.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),A(this,"toggle",(function(){r.active?r.exit():r.enter()})),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){return(Element.prototype.closest||function(){var t=this;do{if(Dt.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),Wt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){r.onChange()})),Wt.call(this.player,this.player.elements.container,"dblclick",(function(t){gt(r.player.elements.controls)&&r.player.elements.controls.contains(t.target)||r.player.listeners.proxy(t,r.toggle,"fullscreen")})),Wt.call(this,this.player.elements.container,"keydown",(function(t){return r.trapFocus(t)})),this.update()}return s(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 Rt(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return jt.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(vt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!vt(document["".concat(e,"ExitFullscreen")])&&!vt(document["".concat(e,"CancelFullScreen")])||(t=e,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(r,i){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=e?r:i)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Ee={addStyleHook:function(){Nt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Nt(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 Ee.toggleNativeControls.call(this,!0);gt(this.elements.controls)||(ze.inject.call(this),this.listeners.controls()),Ee.toggleNativeControls.call(this),this.isHTML5&&Se.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,ze.updateVolume.call(this),ze.timeUpdate.call(this),Ee.checkPlaying.call(this),Nt(this.elements.container,this.config.classNames.pip.supported,$t.pip&&this.isHTML5&&this.isVideo),Nt(this.elements.container,this.config.classNames.airplay.supported,$t.airplay&&this.isHTML5),Nt(this.elements.container,this.config.classNames.isIos,jt.isIos),Nt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Gt.call(t,t.media,"ready")}),0),Ee.setTitle.call(this),this.poster&&Ee.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&ze.durationUpdate.call(this)},setTitle:function(){var t=ge("play",this.config);if(dt(this.config.title)&&!kt(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var e=qt.call(this,"iframe");if(!gt(e))return;var r=kt(this.config.title)?"video":this.config.title,i=ge("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",r))}},togglePoster:function(t){Nt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Xt.call(this).then((function(){return Me(t)})).catch((function(r){throw t===e.poster&&Ee.togglePoster.call(e,!1),r})).then((function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Ee.togglePoster.call(e,!0),t})))},checkPlaying:function(t){var e=this;Nt(this.elements.container,this.config.classNames.playing,this.playing),Nt(this.elements.container,this.config.classNames.paused,this.paused),Nt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",ge(e.playing?"pause":"play",e.config))})),bt(t)&&"timeupdate"===t.type||Ee.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Nt(e.elements.container,e.config.classNames.loading,e.loading),Ee.toggleControls.call(e)}),this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var r=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||r))}},migrateStyles:function(){var t=this;Object.values(n({},this.media.style)).filter((function(t){return!kt(t)&&dt(t)&&t.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),kt(this.media.style)&&this.media.removeAttribute("style")}},Fe=function(){function t(e){var r=this;p(this,t),A(this,"firstTouch",(function(){var t=r.player,e=t.elements;t.touch=!0,Nt(e.container,t.config.classNames.isTouch,!0)})),A(this,"setTabFocus",(function(t){var e=r.player,i=e.elements;clearTimeout(r.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(r.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-r.lastKeyDown<=20)&&(function(){var t=e.config.classNames.tabFocus;Nt(Bt.call(e,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(r.focusTimer=setTimeout((function(){var t=document.activeElement;i.container.contains(t)&&Nt(document.activeElement,e.config.classNames.tabFocus,!0)}),10))))})),A(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=r.player;e.config.keyboard.global&&Qt.call(e,window,"keydown keyup",r.handleKey,t,!1),Qt.call(e,document.body,"click",r.toggleMenu,t),Jt.call(e,document.body,"touchstart",r.firstTouch),Qt.call(e,document.body,"keydown focus blur focusout",r.setTabFocus,t,!1,!0)})),A(this,"container",(function(){var t=r.player,e=t.config,i=t.elements,n=t.timers;!e.keyboard.global&&e.keyboard.focused&&Wt.call(t,i.container,"keydown keyup",r.handleKey,!1),Wt.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(e){var r=i.controls;r&&"enterfullscreen"===e.type&&(r.pressed=!1,r.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Ee.toggleControls.call(t,!0),o=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout((function(){return Ee.toggleControls.call(t,!1)}),o)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var e=i.wrapper,r=t.fullscreen.active,n=ae.call(t),a=o(n,2),s=a[0],l=a[1],p=re("aspect-ratio: ".concat(s," / ").concat(l));if(r){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=o(u,2),d=c[1],h=c[0]/d>s/l;p?(e.style.width=h?"auto":"100%",e.style.height=h?"100%":"auto"):(e.style.maxWidth=h?d/l*s+"px":null,e.style.margin=h?"0 auto":null)}else p?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null)}},s=function(){clearTimeout(n.resized),n.resized=setTimeout(a,50)};Wt.call(t,i.container,"enterfullscreen exitfullscreen",(function(e){t.fullscreen.target===i.container&&(!t.isEmbed&&kt(t.config.ratio)||(a(),("enterfullscreen"===e.type?Wt:Yt).call(t,window,"resize",s)))}))})),A(this,"media",(function(){var t=r.player,e=t.elements;if(Wt.call(t,t.media,"timeupdate seeking seeked",(function(e){return ze.timeUpdate.call(t,e)})),Wt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return ze.durationUpdate.call(t,e)})),Wt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Wt.call(t,t.media,"progress playing seeking seeked",(function(e){return ze.updateProgress.call(t,e)})),Wt.call(t,t.media,"volumechange",(function(e){return ze.updateVolume.call(t,e)})),Wt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return Ee.checkPlaying.call(t,e)})),Wt.call(t,t.media,"waiting canplay seeked playing",(function(e){return Ee.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var i=qt.call(t,".".concat(t.config.classNames.video));if(!gt(i))return;Wt.call(t,e.container,"click",(function(o){([e.container,i].includes(o.target)||i.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(r.proxy(o,t.restart,"restart"),r.proxy(o,(function(){Zt(t.play())}),"play")):r.proxy(o,(function(){Zt(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Wt.call(t,e.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Wt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Wt.call(t,t.media,"ratechange",(function(){ze.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Wt.call(t,t.media,"qualitychange",(function(e){ze.updateSetting.call(t,"quality",null,e.detail.quality)})),Wt.call(t,t.media,"ready qualitychange",(function(){ze.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Wt.call(t,t.media,o,(function(r){var i=r.detail,o=void 0===i?{}:i;"error"===r.type&&(o=t.media.error),Gt.call(t,e.container,r.type,!0,o)}))})),A(this,"proxy",(function(t,e,i){var o=r.player,n=o.config.listeners[i],a=!0;vt(n)&&(a=n.call(o,t)),!1!==a&&vt(e)&&e.call(o,t)})),A(this,"bind",(function(t,e,i,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=r.player,s=a.config.listeners[o],l=vt(s);Wt.call(a,t,e,(function(t){return r.proxy(t,i,o)}),n&&!l)})),A(this,"controls",(function(){var t=r.player,e=t.elements,i=jt.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(e){r.bind(e,"click",(function(){Zt(t.togglePlay())}),"play")})),r.bind(e.buttons.restart,"click",t.restart,"restart"),r.bind(e.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),r.bind(e.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),r.bind(e.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),r.bind(e.buttons.captions,"click",(function(){return t.toggleCaptions()})),r.bind(e.buttons.download,"click",(function(){Gt.call(t,t.media,"download")}),"download"),r.bind(e.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),r.bind(e.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),r.bind(e.buttons.airplay,"click",t.airplay,"airplay"),r.bind(e.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),ze.toggleMenu.call(t,e)}),null,!1),r.bind(e.buttons.settings,"keyup",(function(e){var r=e.which;[13,32].includes(r)&&(13!==r?(e.preventDefault(),e.stopPropagation(),ze.toggleMenu.call(t,e)):ze.focusFirstMenuItem.call(t,null,!0))}),null,!1),r.bind(e.settings.menu,"keydown",(function(e){27===e.which&&ze.toggleMenu.call(t,e)})),r.bind(e.inputs.seek,"mousedown mousemove",(function(t){var r=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/r.width*(t.pageX-r.left))})),r.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var r=e.currentTarget,i=e.keyCode?e.keyCode:e.which,o="play-on-seeked";if(!mt(e)||39===i||37===i){t.lastSeekTime=Date.now();var n=r.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(e.type);n&&a?(r.removeAttribute(o),Zt(t.play())):!a&&t.playing&&(r.setAttribute(o,""),t.pause())}})),jt.isIos){var n=Bt.call(t,'input[type="range"]');Array.from(n).forEach((function(t){return r.bind(t,i,(function(t){return zt(t.target)}))}))}r.bind(e.inputs.seek,i,(function(e){var r=e.currentTarget,i=r.getAttribute("seek-value");kt(i)&&(i=r.value),r.removeAttribute("seek-value"),t.currentTime=i/r.max*t.duration}),"seek"),r.bind(e.progress,"mouseenter mouseleave mousemove",(function(e){return ze.updateSeekTooltip.call(t,e)})),r.bind(e.progress,"mousemove touchmove",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.startMove(e)})),r.bind(e.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),r.bind(e.progress,"mousedown touchstart",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.startScrubbing(e)})),r.bind(e.progress,"mouseup touchend",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.endScrubbing(e)})),jt.isWebkit&&Array.from(Bt.call(t,'input[type="range"]')).forEach((function(e){r.bind(e,"input",(function(e){return ze.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!gt(e.display.duration)&&r.bind(e.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,ze.timeUpdate.call(t))})),r.bind(e.inputs.volume,i,(function(e){t.volume=e.target.value}),"volume"),r.bind(e.controls,"mouseenter mouseleave",(function(r){e.controls.hover=!t.touch&&"mouseenter"===r.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(i){r.bind(i,"mouseenter mouseleave",(function(r){e.controls.hover=!t.touch&&"mouseenter"===r.type}))})),r.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),r.bind(e.controls,"focusin",(function(){var i=t.config,o=t.timers;Nt(e.controls,i.classNames.noTransition,!0),Ee.toggleControls.call(t,!0),setTimeout((function(){Nt(e.controls,i.classNames.noTransition,!1)}),0);var n=r.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Ee.toggleControls.call(t,!1)}),n)})),r.bind(e.inputs.volume,"wheel",(function(e){var r=e.webkitDirectionInvertedFromDevice,i=[e.deltaX,-e.deltaY].map((function(t){return r?-t:t})),n=o(i,2),a=n[0],s=n[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)&&e.preventDefault()}),"volume",!1)})),this.player=e,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 s(t,[{key:"handleKey",value:function(t){var e=this.player,r=e.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)&&ct(i))if(o){var a=document.activeElement;if(gt(a)){if(a!==r.inputs.seek&&Dt(a,e.config.selectors.editable))return;if(32===t.which&&Dt(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||(e.currentTime=e.duration/10*(i-48));break;case 32:case 75:n||Zt(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:n||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:n||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){ze.toggleMenu.call(this.player,t)}}]),t}(),Le=function(t,e){return function(t){t.exports=function(){var t=function(){},e={},r={},i={};function o(t,e){if(t){var o=i[t];if(r[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function n(e,r){e.call&&(e={success:e}),r.length?(e.error||t)(r):(e.success||t)(e)}function a(e,r,i,o){var n,s,l=document,p=i.async,u=(i.numRetries||0)+1,c=i.before||t,d=e.replace(/[\?|#].*$/,""),h=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((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(d)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=e,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(e,r,i,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";r(e,l,t.defaultPrevented)},!1!==c(e,s)&&l.head.appendChild(s)}function s(t,e,r){var i,o,n=(t=t.push?t:[t]).length,s=n,l=[];for(i=function(t,r,i){if("e"==r&&l.push(t),"b"==r){if(!i)return;l.push(t)}--n||e(l)},o=0;o<s;o++)a(t[o],i,r)}function l(t,r,i){var a,l;if(r&&r.trim&&(a=r),l=(a?i:r)||{},a){if(a in e)throw"LoadJS";e[a]=!0}function p(e,r){s(t,(function(t){n(l,t),e&&n({success:e,error:r},t),o(a,t)}),l)}if(l.returnPromise)return new Promise(p);p()}return l.ready=function(t,e){return function(t,e){var o,n,a,s=[],l=(t=t.push?t:[t]).length,p=l;for(o=function(t,r){r.length&&s.push(t),--p||e(s)};l--;)(a=r[n=t[l]])?o(n,a):(i[n]=i[n]||[]).push(o)}(t,(function(t){n(e,t)})),l},l.done=function(t){o(t,[])},l.reset=function(){e={},r={},i={}},l.isDefined=function(t){return t in e},l}()}(e={exports:{}}),e.exports}();function Ne(t){return new Promise((function(e,r){Le(t,{success:e,error:r})}))}function Re(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Gt.call(this,this.media,t?"play":"pause"))}var De={setup:function(){var t=this;Nt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,se.call(t),ut(window.Vimeo)?De.ready.call(t):Ne(t.config.urls.vimeo.sdk).then((function(){De.ready.call(t)})).catch((function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready:function(){var t=this,e=this,r=e.config.vimeo,i=r.premium,a=r.referrerPolicy,s=c(r,I);i&&Object.assign(s,{controls:!1,sidedock:!1});var l=Te(n({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s)),p=e.media.getAttribute("src");kt(p)&&(p=e.media.getAttribute(e.config.attributes.embed.id));var u=function(t){return kt(t)?null:ct(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(p),d=Ot("iframe"),h=ce(e.config.urls.vimeo.iframe,u,l);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),kt(a)||d.setAttribute("referrerPolicy",a),i||!r.customControls)d.setAttribute("data-poster",e.poster),e.media=Et(d,e.media);else{var v=Ot("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});v.appendChild(d),e.media=Et(v,e.media)}r.customControls||me(ce(e.config.urls.vimeo.api,h)).then((function(t){!kt(t)&&t.thumbnail_url&&Ee.setPoster.call(e,t.thumbnail_url).catch((function(){}))})),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return Re.call(e,!0),e.embed.play()},e.media.pause=function(){return Re.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var y=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return y},set:function(t){var r=e.embed,i=e.media,o=e.volume,n=e.paused&&!r.hasPlayed;i.seeking=!0,Gt.call(e,i,"seeking"),Promise.resolve(n&&r.setVolume(0)).then((function(){return r.setCurrentTime(t)})).then((function(){return n&&r.pause()})).then((function(){return n&&r.setVolume(o)})).catch((function(){}))}});var f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return f},set:function(t){e.embed.setPlaybackRate(t).then((function(){f=t,Gt.call(e,e.media,"ratechange")})).catch((function(){e.options.speed=[1]}))}});var g=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return g},set:function(t){e.embed.setVolume(t).then((function(){g=t,Gt.call(e,e.media,"volumechange")}))}});var b=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return b},set:function(t){var r=!!ht(t)&&t;e.embed.setVolume(r?0:e.config.volume).then((function(){b=r,Gt.call(e,e.media,"volumechange")}))}});var m,_=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return _},set:function(t){var r=ht(t)?t:e.config.loop.active;e.embed.setLoop(r).then((function(){_=r}))}}),e.embed.getVideoUrl().then((function(t){m=t,ze.setDownloadUrl.call(e)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:function(){return m}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((function(r){var i=o(r,2);e.embed.ratio=le(i[0],i[1]),se.call(t)})),e.embed.setAutopause(e.config.autopause).then((function(t){e.config.autopause=t})),e.embed.getVideoTitle().then((function(r){e.config.title=r,Ee.setTitle.call(t)})),e.embed.getCurrentTime().then((function(t){y=t,Gt.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((function(t){e.media.duration=t,Gt.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((function(t){e.media.textTracks=t,Se.setup.call(e)})),e.embed.on("cuechange",(function(t){var r=t.cues,i=(void 0===r?[]:r).map((function(t){return function(t){var e=document.createDocumentFragment(),r=document.createElement("div");return e.appendChild(r),r.innerHTML=t,e.firstChild.innerText}(t.text)}));Se.updateCues.call(e,i)})),e.embed.on("loaded",(function(){e.embed.getPaused().then((function(t){Re.call(e,!t),t||Gt.call(e,e.media,"playing")})),gt(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(function(){Gt.call(e,e.media,"waiting")})),e.embed.on("bufferend",(function(){Gt.call(e,e.media,"playing")})),e.embed.on("play",(function(){Re.call(e,!0),Gt.call(e,e.media,"playing")})),e.embed.on("pause",(function(){Re.call(e,!1)})),e.embed.on("timeupdate",(function(t){e.media.seeking=!1,y=t.seconds,Gt.call(e,e.media,"timeupdate")})),e.embed.on("progress",(function(t){e.media.buffered=t.percent,Gt.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Gt.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((function(t){t!==e.media.duration&&(e.media.duration=t,Gt.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(function(){e.media.seeking=!1,Gt.call(e,e.media,"seeked")})),e.embed.on("ended",(function(){e.media.paused=!0,Gt.call(e,e.media,"ended")})),e.embed.on("error",(function(t){e.media.error=t,Gt.call(e,e.media,"error")})),r.customControls&&setTimeout((function(){return Ee.build.call(e)}),0)}};function Be(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Gt.call(this,this.media,t?"play":"pause"))}function qe(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var He,Ve,$e,Ue,Qe,We,Ye={setup:function(){var t=this;if(Nt(this.elements.wrapper,this.config.classNames.embed,!0),ut(window.YT)&&vt(window.YT.Player))Ye.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){vt(e)&&e(),Ye.ready.call(t)},Ne(this.config.urls.youtube.sdk).catch((function(e){t.debug.warn("YouTube API failed to load",e)}))}},getTitle:function(t){var e=this;me(ce(this.config.urls.youtube.api,t)).then((function(t){if(ut(t)){var r=t.height,i=t.width;e.config.title=t.title,Ee.setTitle.call(e),e.embed.ratio=le(i,r)}se.call(e)})).catch((function(){se.call(e)}))},ready:function(){var t=this,e=t.config.youtube,r=t.media&&t.media.getAttribute("id");if(kt(r)||!r.startsWith("youtube-")){var i=t.media.getAttribute("src");kt(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return kt(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),n=Ot("div",{id:ue(t.provider),"data-poster":e.customControls?t.poster:void 0});if(t.media=Et(n,t.media),e.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Me(a("maxres"),121).catch((function(){return Me(a("sd"),121)})).catch((function(){return Me(a("hq"))})).then((function(e){return Ee.setPoster.call(t,e.src)})).then((function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:qe(e),playerVars:St({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.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},e),events:{onError:function(e){if(!t.media.error){var r=e.data;t.media.error={code:r,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."}[r]||"An unknown error occured"},Gt.call(t,t.media,"error")}},onPlaybackRateChange:function(e){t.media.playbackRate=e.target.getPlaybackRate(),Gt.call(t,t.media,"ratechange")},onReady:function(r){if(!vt(t.media.play)){var i=r.target;Ye.getTitle.call(t,o),t.media.play=function(){Be.call(t,!0),i.playVideo()},t.media.pause=function(){Be.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(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Gt.call(t,t.media,"seeking"),i.seekTo(e)}}),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(e){i.setVolume(100*(n=e)),Gt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(e){var r=ht(e)?e:a;a=r,i[r?"mute":"unMute"](),i.setVolume(100*n),Gt.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(e){return t.config.speed.options.includes(e)})),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),Gt.call(t,t.media,"timeupdate"),Gt.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)&&Gt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Gt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((function(){return Ee.build.call(t)}),50)}},onStateChange:function(r){var i=r.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(r.data)&&(t.media.seeking=!1,Gt.call(t,t.media,"seeked")),r.data){case-1:Gt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),Gt.call(t,t.media,"progress");break;case 0:Be.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):Gt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Be.call(t,!0),Gt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Gt.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),Gt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Be.call(t,!1);break;case 3:Gt.call(t,t.media,"waiting")}Gt.call(t,t.elements.container,"statechange",!1,{code:r.data})}}})}}},Je={setup:function(){this.media?(Nt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Nt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Nt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Ot("div",{class:this.config.classNames.video}),Pt(this.media,this.elements.wrapper),this.elements.poster=Ot("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?pe.setup.call(this):this.isYouTube?Ye.setup.call(this):this.isVimeo&&De.setup.call(this)):this.debug.warn("No media element found!")}},Ge=function(){function t(e){var r=this;p(this,t),A(this,"load",(function(){r.enabled&&(ut(window.google)&&ut(window.google.ima)?r.ready():Ne(r.player.config.urls.googleIMA.sdk).then((function(){r.ready()})).catch((function(){r.trigger("error",new Error("Google IMA SDK failed to load"))})))})),A(this,"ready",(function(){var t;r.enabled||((t=r).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),r.startSafetyTimer(12e3,"ready()"),r.managerPromise.then((function(){r.clearSafetyTimer("onAdsManagerLoaded()")})),r.listeners(),r.setupIMA()})),A(this,"setupIMA",(function(){r.elements.container=Ot("div",{class:r.player.config.classNames.ads}),r.player.elements.container.appendChild(r.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(r.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(r.player.config.playsinline),r.elements.displayContainer=new google.ima.AdDisplayContainer(r.elements.container,r.player.media),r.loader=new google.ima.AdsLoader(r.elements.displayContainer),r.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return r.onAdsManagerLoaded(t)}),!1),r.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return r.onAdError(t)}),!1),r.requestAds()})),A(this,"requestAds",(function(){var t=r.player.elements.container;try{var e=new google.ima.AdsRequest;e.adTagUrl=r.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!r.player.muted),r.loader.requestAds(e)}catch(t){r.onAdError(t)}})),A(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(r.countdownTimer),void r.elements.container.removeAttribute("data-badge-text");r.countdownTimer=setInterval((function(){var t=xe(Math.max(r.manager.getRemainingTime(),0)),e="".concat(ge("advertisement",r.player.config)," - ").concat(t);r.elements.container.setAttribute("data-badge-text",e)}),100)})),A(this,"onAdsManagerLoaded",(function(t){if(r.enabled){var e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,r.manager=t.getAdsManager(r.player,e),r.cuePoints=r.manager.getCuePoints(),r.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return r.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){r.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return r.onAdEvent(t)}))})),r.trigger("loaded")}})),A(this,"addCuePoints",(function(){kt(r.cuePoints)||r.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<r.player.duration){var e=r.player.elements.progress;if(gt(e)){var i=100/r.player.duration*t,o=Ot("span",{class:r.player.config.classNames.cues});o.style.left="".concat(i.toString(),"%"),e.appendChild(o)}}}))})),A(this,"onAdEvent",(function(t){var e=r.player.elements.container,i=t.getAd(),o=t.getAdData();switch(function(t){Gt.call(r.player,r.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:r.trigger("loaded"),r.pollCountdown(!0),i.isLinear()||(i.width=e.offsetWidth,i.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:r.manager.setVolume(r.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:r.player.ended?r.loadAds():r.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:r.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:r.pollCountdown(),r.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&r.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),A(this,"onAdError",(function(t){r.cancel(),r.player.debug.warn("Ads error",t)})),A(this,"listeners",(function(){var t,e=r.player.elements.container;r.player.on("canplay",(function(){r.addCuePoints()})),r.player.on("ended",(function(){r.loader.contentComplete()})),r.player.on("timeupdate",(function(){t=r.player.currentTime})),r.player.on("seeked",(function(){var e=r.player.currentTime;kt(r.cuePoints)||r.cuePoints.forEach((function(i,o){t<i&&i<e&&(r.manager.discardAdBreak(),r.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){r.manager&&r.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),A(this,"play",(function(){var t=r.player.elements.container;r.managerPromise||r.resumeContent(),r.managerPromise.then((function(){r.manager.setVolume(r.player.volume),r.elements.displayContainer.initialize();try{r.initialized||(r.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),r.manager.start()),r.initialized=!0}catch(t){r.onAdError(t)}})).catch((function(){}))})),A(this,"resumeContent",(function(){r.elements.container.style.zIndex="",r.playing=!1,Zt(r.player.media.play())})),A(this,"pauseContent",(function(){r.elements.container.style.zIndex=3,r.playing=!0,r.player.media.pause()})),A(this,"cancel",(function(){r.initialized&&r.resumeContent(),r.trigger("error"),r.loadAds()})),A(this,"loadAds",(function(){r.managerPromise.then((function(){r.manager&&r.manager.destroy(),r.managerPromise=new Promise((function(t){r.on("loaded",t),r.player.debug.log(r.manager)})),r.initialized=!1,r.requestAds()})).catch((function(){}))})),A(this,"trigger",(function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];var n=r.events[t];yt(n)&&n.forEach((function(t){vt(t)&&t.apply(r,i)}))})),A(this,"on",(function(t,e){return yt(r.events[t])||(r.events[t]=[]),r.events[t].push(e),r})),A(this,"startSafetyTimer",(function(t,e){r.player.debug.log("Safety timer invoked from: ".concat(e)),r.safetyTimer=setTimeout((function(){r.cancel(),r.clearSafetyTimer("startSafetyTimer()")}),t)})),A(this,"clearSafetyTimer",(function(t){pt(r.safetyTimer)||(r.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(r.safetyTimer),r.safetyTimer=null)})),this.player=e,this.config=e.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,e){r.on("loaded",t),r.on("error",e)})),this.load()}return s(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!kt(t.publisherId)||wt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return wt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Te({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}(),Ke=function(t){var e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var r={};t.split(/\r\n|\n|\r/).forEach((function(t){if(ct(r.startTime)){if(!kt(t.trim())&&kt(r.text)){var e,i,n,a=t.trim().split("#xywh=");e=o(a,1),r.text=e[0],a[1]&&(i=a[1].split(","),n=o(i,4),r.x=n[0],r.y=n[1],r.w=n[2],r.h=n[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&&(r.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),r.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),r.text&&e.push(r)})),e},Xe=function(t,e){var r={};return t>e.width/e.height?(r.width=e.width,r.height=1/t*e.width):(r.height=e.height,r.width=t*e.height),r},Ze=function(){function t(e){var r=this;p(this,t),A(this,"load",(function(){r.player.elements.display.seekTooltip&&(r.player.elements.display.seekTooltip.hidden=r.enabled),r.enabled&&r.getThumbnails().then((function(){r.enabled&&(r.render(),r.determineContainerAutoSizing(),r.loaded=!0)}))})),A(this,"getThumbnails",(function(){return new Promise((function(t){var e=r.player.config.previewThumbnails.src;if(kt(e))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){r.thumbnails.sort((function(t,e){return t.height-e.height})),r.player.debug.log("Preview thumbnails",r.thumbnails),t()};if(vt(e))e((function(t){r.thumbnails=t,i()}));else{var o=(dt(e)?[e]:e).map((function(t){return r.getThumbnail(t)}));Promise.all(o).then(i)}}))})),A(this,"getThumbnail",(function(t){return new Promise((function(e){me(t).then((function(i){var o={frames:Ke(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,r.thumbnails.push(o),e()},n.src=o.urlPrefix+o.frames[0].text}))}))})),A(this,"startMove",(function(t){if(r.loaded&&bt(t)&&["touchmove","mousemove"].includes(t.type)&&r.player.media.duration){if("touchmove"===t.type)r.seekTime=r.player.media.duration*(r.player.elements.inputs.seek.value/100);else{var e=r.player.elements.progress.getBoundingClientRect();r.seekTime=r.player.media.duration*(100/e.width*(t.pageX-e.left)/100),r.seekTime<0&&(r.seekTime=0),r.seekTime>r.player.media.duration-1&&(r.seekTime=r.player.media.duration-1),r.mousePosX=t.pageX,r.elements.thumb.time.innerText=xe(r.seekTime)}r.showImageAtCurrentTime()}})),A(this,"endMove",(function(){r.toggleThumbContainer(!1,!0)})),A(this,"startScrubbing",(function(t){(pt(t.button)||!1===t.button||0===t.button)&&(r.mouseDown=!0,r.player.media.duration&&(r.toggleScrubbingContainer(!0),r.toggleThumbContainer(!1,!0),r.showImageAtCurrentTime()))})),A(this,"endScrubbing",(function(){r.mouseDown=!1,Math.ceil(r.lastTime)===Math.ceil(r.player.media.currentTime)?r.toggleScrubbingContainer(!1):Jt.call(r.player,r.player.media,"timeupdate",(function(){r.mouseDown||r.toggleScrubbingContainer(!1)}))})),A(this,"listeners",(function(){r.player.on("play",(function(){r.toggleThumbContainer(!1,!0)})),r.player.on("seeked",(function(){r.toggleThumbContainer(!1)})),r.player.on("timeupdate",(function(){r.lastTime=r.player.media.currentTime}))})),A(this,"render",(function(){r.elements.thumb.container=Ot("div",{class:r.player.config.classNames.previewThumbnails.thumbContainer}),r.elements.thumb.imageContainer=Ot("div",{class:r.player.config.classNames.previewThumbnails.imageContainer}),r.elements.thumb.container.appendChild(r.elements.thumb.imageContainer);var t=Ot("div",{class:r.player.config.classNames.previewThumbnails.timeContainer});r.elements.thumb.time=Ot("span",{},"00:00"),t.appendChild(r.elements.thumb.time),r.elements.thumb.container.appendChild(t),gt(r.player.elements.progress)&&r.player.elements.progress.appendChild(r.elements.thumb.container),r.elements.scrubbing.container=Ot("div",{class:r.player.config.classNames.previewThumbnails.scrubbingContainer}),r.player.elements.wrapper.appendChild(r.elements.scrubbing.container)})),A(this,"destroy",(function(){r.elements.thumb.container&&r.elements.thumb.container.remove(),r.elements.scrubbing.container&&r.elements.scrubbing.container.remove()})),A(this,"showImageAtCurrentTime",(function(){r.mouseDown?r.setScrubbingContainerSize():r.setThumbContainerSizeAndPos();var t=r.thumbnails[0].frames.findIndex((function(t){return r.seekTime>=t.startTime&&r.seekTime<=t.endTime})),e=t>=0,i=0;r.mouseDown||r.toggleThumbContainer(e),e&&(r.thumbnails.forEach((function(e,o){r.loadedImages.includes(e.frames[t].text)&&(i=o)})),t!==r.showingThumb&&(r.showingThumb=t,r.loadImage(i)))})),A(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=r.showingThumb,i=r.thumbnails[t],o=i.urlPrefix,n=i.frames[e],a=i.frames[e].text,s=o+a;if(r.currentImageElement&&r.currentImageElement.dataset.filename===a)r.showImage(r.currentImageElement,n,t,e,a,!1),r.currentImageElement.dataset.index=e,r.removeOldImages(r.currentImageElement);else{r.loadingImage&&r.usingSprites&&(r.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=e,l.dataset.filename=a,r.showingThumbFilename=a,r.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return r.showImage(l,n,t,e,a,!0)},r.loadingImage=l,r.removeOldImages(l)}})),A(this,"showImage",(function(t,e,i,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];r.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(i,". newimg: ").concat(a)),r.setImageSizeAndOffset(t,e),a&&(r.currentImageContainer.appendChild(t),r.currentImageElement=t,r.loadedImages.includes(n)||r.loadedImages.push(n)),r.preloadNearby(o,!0).then(r.preloadNearby(o,!1)).then(r.getHigherQuality(i,t,e,n))})),A(this,"removeOldImages",(function(t){Array.from(r.currentImageContainer.children).forEach((function(e){if("img"===e.tagName.toLowerCase()){var i=r.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;var o=r.currentImageContainer;setTimeout((function(){o.removeChild(e),r.player.debug.log("Removing thumb: ".concat(e.dataset.filename))}),i)}}}))})),A(this,"preloadNearby",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var o=r.thumbnails[0].frames[t].text;if(r.showingThumbFilename===o){var n;n=e?r.thumbnails[0].frames.slice(t):r.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var e=t.text;if(e!==o&&!r.loadedImages.includes(e)){a=!0,r.player.debug.log("Preloading thumb filename: ".concat(e));var n=r.thumbnails[0].urlPrefix+e,s=new Image;s.src=n,s.onload=function(){r.player.debug.log("Preloaded thumb filename: ".concat(e)),r.loadedImages.includes(e)||r.loadedImages.push(e),i()}}})),a||i()}}),300)}))})),A(this,"getHigherQuality",(function(t,e,i,o){if(t<r.thumbnails.length-1){var n=e.naturalHeight;r.usingSprites&&(n=i.h),n<r.thumbContainerHeight&&setTimeout((function(){r.showingThumbFilename===o&&(r.player.debug.log("Showing higher quality thumb for: ".concat(o)),r.loadImage(t+1))}),300)}})),A(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r.player.config.classNames.previewThumbnails.thumbContainerShown;r.elements.thumb.container.classList.toggle(i,t),!t&&e&&(r.showingThumb=null,r.showingThumbFilename=null)})),A(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r.player.config.classNames.previewThumbnails.scrubbingContainerShown;r.elements.scrubbing.container.classList.toggle(e,t),t||(r.showingThumb=null,r.showingThumbFilename=null)})),A(this,"determineContainerAutoSizing",(function(){(r.elements.thumb.imageContainer.clientHeight>20||r.elements.thumb.imageContainer.clientWidth>20)&&(r.sizeSpecifiedInCSS=!0)})),A(this,"setThumbContainerSizeAndPos",(function(){if(r.sizeSpecifiedInCSS){if(r.elements.thumb.imageContainer.clientHeight>20&&r.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(r.elements.thumb.imageContainer.clientHeight*r.thumbAspectRatio);r.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(r.elements.thumb.imageContainer.clientHeight<20&&r.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(r.elements.thumb.imageContainer.clientWidth/r.thumbAspectRatio);r.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var i=Math.floor(r.thumbContainerHeight*r.thumbAspectRatio);r.elements.thumb.imageContainer.style.height="".concat(r.thumbContainerHeight,"px"),r.elements.thumb.imageContainer.style.width="".concat(i,"px")}r.setThumbContainerPos()})),A(this,"setThumbContainerPos",(function(){var t=r.player.elements.progress.getBoundingClientRect(),e=r.player.elements.container.getBoundingClientRect(),i=r.elements.thumb.container,o=e.left-t.left+10,n=e.right-t.left-i.clientWidth-10,a=r.mousePosX-t.left-i.clientWidth/2;a<o&&(a=o),a>n&&(a=n),i.style.left="".concat(a,"px")})),A(this,"setScrubbingContainerSize",(function(){var t=Xe(r.thumbAspectRatio,{width:r.player.media.clientWidth,height:r.player.media.clientHeight}),e=t.height;r.elements.scrubbing.container.style.width="".concat(t.width,"px"),r.elements.scrubbing.container.style.height="".concat(e,"px")})),A(this,"setImageSizeAndOffset",(function(t,e){if(r.usingSprites){var i=r.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(e.x*i,"px"),t.style.top="-".concat(e.y*i,"px")}})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return s(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?Xe(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}(),tr={insertElements:function(t,e){var r=this;dt(e)?It(t,this.media,{src:e}):yt(e)&&e.forEach((function(e){It(t,r.media,e)}))},change:function(t){var e=this;Tt(t,"sources.length")?(pe.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],At(e.media),e.media=null,gt(e.elements.container)&&e.elements.container.removeAttribute("class");var r=t.sources,i=t.type,n=o(r,1)[0],a=n.provider,s=void 0===a?Ce.html5:a,l="html5"===s?i:"div",p="html5"===s?{}:{src:n.src};Object.assign(e,{provider:s,type:i,supported:$t.check(i,s,e.config.playsinline),media:Ot(l,p)}),e.elements.container.appendChild(e.media),ht(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),kt(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),Ee.addStyleHook.call(e),e.isHTML5&&tr.insertElements.call(e,"source",r),e.config.title=t.title,Je.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&tr.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&Ee.build.call(e),e.isHTML5&&e.media.load(),kt(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new Ze(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},er=function(){function t(e,r){var i=this;if(p(this,t),A(this,"play",(function(){return vt(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return Zt(i.media.play())})),i.media.play()):null})),A(this,"pause",(function(){return i.playing&&vt(i.media.pause)?i.media.pause():null})),A(this,"togglePlay",(function(t){return(ht(t)?t:!i.playing)?i.play():i.pause()})),A(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):vt(i.media.stop)&&i.media.stop()})),A(this,"restart",(function(){i.currentTime=0})),A(this,"rewind",(function(t){i.currentTime-=ct(t)?t:i.config.seekTime})),A(this,"forward",(function(t){i.currentTime+=ct(t)?t:i.config.seekTime})),A(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(ct(t)?t:0)})),A(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),A(this,"airplay",(function(){$t.airplay&&i.media.webkitShowPlaybackTargetPicker()})),A(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var e=Rt(i.elements.container,i.config.classNames.hideControls),r=Nt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return r&&yt(i.config.controls)&&i.config.controls.includes("settings")&&!kt(i.config.settings)&&ze.toggleMenu.call(i,!1),r!==e&&Gt.call(i,i.media,r?"controlshidden":"controlsshown"),!r}return!1})),A(this,"on",(function(t,e){Wt.call(i,i.elements.container,t,e)})),A(this,"once",(function(t,e){Jt.call(i,i.elements.container,t,e)})),A(this,"off",(function(t,e){Yt(i.elements.container,t,e)})),A(this,"destroy",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var r=function(){document.body.style.overflow="",i.embed=null,e?(Object.keys(i.elements).length&&(At(i.elements.buttons.play),At(i.elements.captions),At(i.elements.controls),At(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),vt(t)&&t()):(Kt.call(i),pe.cancelRequests.call(i),Et(i.elements.original,i.elements.container),Gt.call(i,i.elements.original,"destroyed",!0),vt(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?(Ee.toggleNativeControls.call(i,!0),r()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&vt(i.embed.destroy)&&i.embed.destroy(),r()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(r),setTimeout(r,200))}})),A(this,"supports",(function(t){return $t.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=$t.touch,this.media=e,dt(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||ft(this.media)||yt(this.media))&&(this.media=this.media[0]),this.config=St({},Pe,t.defaults,r||{},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 Ie(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",$t),!pt(this.media)&>(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if($t.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"),gt(a)){if(s=je(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Ce.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Ce.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(kt(this.provider)||!Object.values(Ce).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=Ce.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=$t.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Fe(this),this.storage=new be(this),this.media.plyr=this,gt(this.elements.container)||(this.elements.container=Ot("div",{tabindex:0}),Pt(this.media,this.elements.container)),Ee.migrateStyles.call(this),Ee.addStyleHook.call(this),Je.setup.call(this),this.config.debug&&Wt.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new Ae(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Ee.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ge(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Zt(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(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 s(t,[{key:"isHTML5",get:function(){return this.provider===Ce.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Ce.youtube}},{key:"isVimeo",get:function(){return this.provider===Ce.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 e=ct(t)&&t>0;this.media.currentTime=e?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 ct(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),e=(this.media||{}).duration,r=ct(e)&&e!==1/0?e:0;return t||r}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var e=t;dt(e)&&(e=Number(e)),ct(e)||(e=this.storage.get("volume")),ct(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!kt(t)&&this.muted&&e>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var e=t;ht(e)||(e=this.storage.get("muted")),ht(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}},{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 e=this,r=null;ct(t)&&(r=t),ct(r)||(r=this.storage.get("speed")),ct(r)||(r=this.config.speed.selected),r=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)}(r,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=r,setTimeout((function(){e.media.playbackRate=r}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,u(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,u(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var e=this.config.quality,r=this.options.quality;if(r.length){var i=[!kt(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(ct),o=!0;if(!r.includes(i)){var n=ee(r,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(n," instead")),i=n,o=!1}e.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 e=ht(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){tr.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return wt(t)?t:this.source},set:function(t){wt(t)&&(this.config.urls.download=t,ze.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?Ee.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=ne(ae.call(this));return yt(t)?t.join(":"):t},set:function(t){this.isVideo?dt(t)&&oe(t)?(this.config.ratio=ne(t),se.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 e=ht(t)?t:this.config.autoplay;this.config.autoplay=e}},{key:"toggleCaptions",value:function(t){Se.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Se.set.call(this,t,!1)}},{key:"language",get:function(){return(Se.getCurrentTrack.call(this)||{}).language},set:function(t){Se.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return $t.pip?kt(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if($t.pip){var e=ht(t)?t:!this.pip;vt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?"picture-in-picture":"inline"),vt(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,e,r){return $t.check(t,e,r)}},{key:"loadSprite",value:function(t,e){return _e(t,e)}},{key:"setup",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return dt(e)?i=Array.from(document.querySelectorAll(e)):ft(e)?i=Array.from(e):yt(e)&&(i=e.filter(gt)),kt(i)?null:i.map((function(e){return new t(e,r)}))}}]),t}();function rr(t){t.on("timeupdate",(function(){return function(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&null!==(r=e.mutedPreview)&&void 0!==r&&r.enabled||function(t){var e;0!==t.currentTime&&null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&localStorage.setItem("player-progress-".concat(ir(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return or(t)})),t.on("loadeddata",(function(){return or(t)}))}function ir(t){var e,r;return null==t||null===(e=t.config)||void 0===e||null===(r=e.blockAttributes)||void 0===r?void 0:r.id}function or(t){var e,r,i;if(null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&(null==t||null===(r=t.config)||void 0===r||null===(i=r.mutedPreview)||void 0===i||!i.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(ir(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)}}er.defaults=JSON.parse(JSON.stringify(Pe));var nr=(null===(He=window)||void 0===He||null===(Ve=He.prestoPlayer)||void 0===Ve||null===($e=Ve.i18n)||void 0===$e?void 0:$e.hide_chapters)||"Hide Chapters",ar=(null===(Ue=window)||void 0===Ue||null===(Qe=Ue.prestoPlayer)||void 0===Qe||null===(We=Qe.i18n)||void 0===We?void 0:We.show_chapters)||"Show Chapters";const sr='<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(nr,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(ar,"</span>\n</button>\n");var lr,pr,ur;const cr='\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===(lr=window)||void 0===lr||null===(pr=lr.prestoPlayer)||void 0===pr||null===(ur=pr.i18n)||void 0===ur?void 0:ur.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function dr(t){var e,r,i,o,n,a,s,p,c,d,h,v,y,f=0,g={},b=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 e={};return t.forEach((function(t){var r,i=t.time.split(":");i.length>1&&(r=60*parseInt(i[0])),e[parseInt(i[1])+parseInt(r)]=t})),e}((null===(e=o=t.detail.plyr)||void 0===e||null===(r=e.config)||void 0===r?void 0:r.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var _=(y=jQuery(o.elements.controls)).find(".plyr__time");_=_.length?_:y.find(".plyr__progress__container"),(c=n.find('[data-plyr="chapters"]')).length||(c=jQuery(sr).insertAfter(_)),(s=n.find(".presto-player-toc__wrapper")).length||(s=jQuery(cr).appendTo(n)),d=s.find("[data-player-toc-cover]"),p=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,p.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var e=jQuery(function(t){var e=t.name,r=void 0===e?"Untitled":e,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(r,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(p);e.data("presto-player-timestamp",t),g[t]=e,e.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),v=s.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),b=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(b)),m>50&&window.clearInterval(b)}),100),d.off("click"),d.on("click",(function(){return j(!1)})),p.off("mouseleave"),p.on("mouseleave",(function t(){if(o.playing){var e=setTimeout((function(){j(!1),p.off("mouseleave",t)}),2e3);p.on("mouseenter",(function(){clearTimeout(e)}))}}))}}else o.on("loadedmetadata",dr);function x(){f=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),e=Math.max.apply(Math,u(t));v&&v.removeClass("is-highlighted"),jQuery(g[e||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 e,r,n,a,s=i[t],l=parseInt(t)/o.duration*100,p=jQuery((e={position:l,name:"".concat(s.title)},r=e.position,n=e.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===r?0:r,'%" 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!==l(t)?s.toggleClass("is-showing",t):s.toggleClass("is-showing")}}var hr;function vr(t){"undefined"!=typeof jQuery&&(hr=t,jQuery(hr.elements.container).closest(".presto-player__wrapper"),hr.on("ready",dr),hr.on("controlshidden",yr),hr.on("controlsshown",fr))}function yr(t){var e,r,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(r=e.plyr)||void 0===r||null===(i=r.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function fr(t){var e,r,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(r=e.plyr)||void 0===r||null===(i=r.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function gr(t){var e,r;return n(n(n({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!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(r=t.config)||void 0===r?void 0:r.title}:{})}function br(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasPlayed||(t.config.hasPlayed=!0,null===(r=window)||void 0===r||r.gtag("event","Play",gr(t)))}function mr(t){var e;null===(e=window)||void 0===e||e.gtag("event","Pause",gr(t))}function _r(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasLoaded||(t.config.hasLoaded=!0,null===(r=window)||void 0===r||r.gtag("event","Player Load",gr(t)))}var wr,kr={25:!1,50:!1,75:!1,100:!1};function xr(t){if(t.currentTime){var e=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(kr).forEach((function(r){var i;!kr[r]&&e>=parseInt(r)&&(kr[r]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(r," Percent Played"),gr(t)))}))}}var zr="presto-player.analytics",jr="";function Tr(t){var e,r;(wr=t).config.analytics&&null!==(e=window)&&void 0!==e&&null!==(r=e.wp)&&void 0!==r&&r.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",zr)||wp.hooks.addAction("presto.nonceRefreshed",zr,(function(t){jr=t})),wp.hooks.hasAction("presto.playerPlay",zr)||wp.hooks.addAction("presto.playerPlay",zr,Sr),wp.hooks.hasAction("presto.playerEnded",zr)||wp.hooks.addAction("presto.playerEnded",zr,Sr),wp.hooks.hasAction("presto.playerHidden",zr)||wp.hooks.addAction("presto.playerHidden",zr,Sr),wp.hooks.hasAction("presto.playerPause",zr)||wp.hooks.addAction("presto.playerPause",zr,Sr),wp.hooks.hasAction("presto.playerSeeked",zr)||wp.hooks.addAction("presto.playerSeeked",zr,Sr))}function Sr(t){Pr(function(t){var e,r;return n(n(n({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!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(r=t.config)||void 0===r?void 0:r.title}:{})}(t))}function Pr(t){var e,r,i,o,n,a,s,l;if(jr){var p,u,c=new FormData;c.append("action","presto_player_progress"),c.append("duration",null==t?void 0:t.video_current_time),c.append("video_id",null===(e=wr)||void 0===e||null===(r=e.config)||void 0===r?void 0:r.id),c.append("nonce",jr),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=wr)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:jr}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function Cr(t){var e,r;null!==(e=window)&&void 0!==e&&null!==(r=e.prestoPlayer)&&void 0!==r&&r.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",br),wp.hooks.addAction("presto.playerPause","presto-player",mr),wp.hooks.addAction("presto.playerReady","presto-player",_r),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",xr))}(),Tr(t))}const Or=function(t){t.on("ready",(function(){var e,r,i,o;null==t||null===(e=t.config)||void 0===e||!e.logo||null!=t&&null!==(r=t.config)&&void 0!==r&&r.logo_added||"undefined"!=typeof jQuery&&(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 Ir(t){var e;null!=t&&null!==(e=t.config)&&void 0!==e&&e.poster&&(t.poster=t.config.poster)}const Ar=function(t){var e,r;null!==(e=window)&&void 0!==e&&null!==(r=e.wp)&&void 0!==r&&r.hooks&&(t.on("ready",(function(){Mr("Ready",t)})),t.on("play",(function(){Mr("Play",t)})),t.on("playing",(function(){Mr("Playing",t)})),t.on("pause",(function(){Mr("Pause",t)})),t.on("ended",(function(){Mr("Ended",t)})),t.on("seeked",(function(){Mr("Seeked",t)})),t.on("timeupdate",(function(){Mr("TimeUpdate",t)})),t.on("enterfullscreen",(function(){Mr("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){Mr("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){Mr("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(e){var r;switch(null==e||null===(r=e.detail)||void 0===r?void 0:r.code){case 0:Mr("Ended",t);break;case 1:Mr("Play",t);break;case 2:Mr("Pause",t)}})))};function Mr(t,e){window.wp.hooks.doAction("presto.player".concat(t),e)}let Er,Fr=Date.now();const Lr=t=>{var e,r;if(!t.automations)return;(null===(r=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===r?void 0:r.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{Er=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,e=null){var r;Er&&(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.ajaxProgress)&&(e||(e=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((r=>{var i,o,n,a,s,l,p,u,c;const d=parseInt(r);if(!t.watched[d]&&e>=d){t.watched[d]=!0;let e=new FormData;if(e.append("action","presto_player_progress_percent"),e.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),e.append("percent",d.toString()),e.append("visit_time",Fr.toString()),e.append("nonce",Er),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${d} 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===(c=null==t?void 0:t.config)||void 0===c?void 0:c.id,visit_time:Fr,percent:d,nonce:Er}});else{let r=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,e);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(r?console.log("Successfully queued progress:",{id:null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.id,percent:d,visit_time:Fr,nonce:Er}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:d,visit_time:Fr,nonce:Er}))}}})))}};let Nr=!1,Rr=!1;function Dr(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const Br=t=>{var e,r;(t.config.analytics||t.config.automations)&&(null===(r=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===r||r.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;Nr||Rr||(Rr=!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(Dr).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),Nr=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Rr=!1})))})))},qr=function(t){var e=window.navigator.userAgent;if(e.match(/iPad/i)||e.match(/iPhone/i)){var r=function(t,e){for(var r,i,o,n=null==t||null===(r=t.elements)||void 0===r||null===(i=r.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;)e?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 e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active&&r(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active||r(t,!1)}))}},Hr=function(){var t=d(regeneratorRuntime.mark((function t(e){var r,i,o;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(o=new ResizeObserver((function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(o.height-48,"px")})}}catch(t){r.e(t)}finally{r.f()}})),null!=e&&null!==(r=e.elements)&&void 0!==r&&r.container){t.next=10;break}return t.abrupt("return");case 10:if(o.observe(null==e||null===(i=e.elements)||void 0===i?void 0:i.container),e){t.next=13;break}return t.abrupt("return");case 13:e.on("playing",(function(){var t,r,i=null==e||null===(t=e.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==e||null===(r=e.elements)||void 0===r?void 0:r.container).find(".plyr__menu__container").css({maxHeight:"".concat(i.height-48,"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function Vr(t){var e,r,i,o,a,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=n(n(n({},l),null!==(e=window)&&void 0!==e&&null!==(r=e.prestoPlayer)&&void 0!==r&&r.plugin_url?{iconUrl:"".concat(null===(i=window)||void 0===i||null===(o=i.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/sprite.svg")}:{}),{chapters:(null==l?void 0:l.chapters)||[],controls:(null==l?void 0:l.controls)||[],settings:Object.keys((null==l?void 0:l.settings)||{}).length?l.settings:{}}),u=new er(t,p);return"undefined"!=typeof learndash_video_data&&import("./p-13c11ca4.js").then((function(t){(0,t.default)(u)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(u)})),Ar(u),qr(u),Hr(u),Or(u),Ir(u),vr(u),null!==(a=window)&&void 0!==a&&null!==(s=a.prestoPlayer)&&void 0!==s&&s.isAdmin||(Br(u),Lr(p),rr(u),Cr(u)),u}function $r(t){return"string"==typeof t&&t.includes(".m3u8")}const Ur=class{constructor(e){t(this,e),this.loaded=i(this,"loaded",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.components={cta:null,email:null,overlays:null}}async play(){return this.shouldLazyLoad=!1,this.mutedPreview=!1,this.player.play()}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,e){return this.player.on(t,e)}async off(t,e){return this.player.off(t,e)}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 e=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)e.push(t=t.parentNode);return e})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:e,branding:r,src:i,analytics:o,automations:n,autoplay:a,blockAttributes:s={},provider:l="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:v={enabled:!d,key:`presto-player-${t.id}`}}){var y,f,g,b;const m=["settings"],_=[...["youtube","vimeo"].includes(l)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((e=>((null==t?void 0:t[e])||m.includes(e))&&!_.includes(e)));(null===(y=null==s?void 0:s.mutedPreview)||void 0===y?void 0:y.enabled)&&(v={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:c}),src:i,ajaxProgress:!0,analytics:o,automations:n,mutedPreview:{enabled:null===(f=null==s?void 0:s.mutedPreview)||void 0===f?void 0:f.enabled},chapters:e,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==r?void 0:r.logo,logo_width:null==r?void 0:r.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===(g=window.wp)||void 0===g?void 0:g.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:v,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===(b=null===window||void 0===window?void 0:window.wp)||void 0===b?void 0:b.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(),e=t.config,r=t.selector,i=t.src,o=t.preload,i&&$r(i)?import("./p-1f0cd8b0.js").then((function(t){return(0,t.default)({config:e,selector:r,src:i,preload:o})})):new Promise((function(t){return t(new Vr(r,n({},e)))})));var t,e,r,i,o}handlePlayerElementChange(){var t;(({src:t,el:e,preload:r,currentTime:i})=>{if(!e.getAttribute("hls_loaded")&&["metadata","none"].includes(r)&&$r(t)){if(i>0)return e.style.height=null,e.style.paddingBottom=null,void e.setAttribute("hls_loaded","1");e.style.height="0px",e.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){var e,r,i,o,n,a,s;this.player&&!this.isAdmin&&(!t&&this.preset.captions_enabled&&setTimeout((()=>{var t;this.player.toggleCaptions(null===(t=null==this?void 0:this.preset)||void 0===t?void 0:t.captions_enabled)}),0),(null===(i=null===(r=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===r?void 0:r.mutedPreview)||void 0===i?void 0:i.enabled)&&(({player:t,mutedPreview:e,captions:r,progress:i,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=e,t.muted=e,t.loop=e,t.config.ajaxProgress=!e&&i,t.config.save_player_position=!e&&o;try{t.toggleCaptions(!!e&&!!r)}catch(t){}return setTimeout((()=>{or(t)||t.restart(),setTimeout((()=>{t.muted=e,n()}),0)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(n=null===(o=this.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.captions),progress:null===(a=this.originalConfig)||void 0===a?void 0:a.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled,this.renderDynamicOverlays(),this.renderCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),$r(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"))}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,e,r;return"youtube"===this.provider&&!this.autoplay&&!(null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled)&&!!(null===(r=this.preset)||void 0===r?void 0:r.lazy_load_youtube)}componentWillLoad(){var t,e,r;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===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.i18n)||(null===(r=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===r?void 0:r.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,e)=>{if(!e)return;const r=document.createElement("style");t.shadowRoot.append(r),r.appendChild(document.createTextNode(e))})(this.el,this.css),t}async onReload(t){const e=await this.initialize();"play"==t&&e.on("ready",(()=>{this.play(),e.muted=!0,e.muted=!1,e.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 e,r,i,o,n;if("unknown"!==g()&&!(null===(r=null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.blockAttributes)||void 0===r?void 0:r.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 e=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=e}))}}(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 e,r;if(!(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(r=null==this?void 0:this.player)||void 0===r?void 0:r.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 e,r,i;if(!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.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===(r=this.blockAttributes)||void 0===r?void 0:r.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 e("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 e("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return e("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 e("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});default:return e("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})}}renderCTA(){var t,e,r,i;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(r=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===r?void 0:r.enabled)&&((null===(i=this.components.cta)||void 0===i?void 0:i.offsetParent)||(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))))}renderEmailOverlay(){var t,e,r;!(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)||(null===(r=this.components.email)||void 0===r?void 0:r.offsetParent)||(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))}renderActionBar(){var t,r,i;if(null===(r=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===r?void 0:r.enabled)return e("presto-action-bar",{config:this.preset.action_bar,currentTime:null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.currentTime,duration:this.duration,youtube:this.youtube})}stickyPositionClass(){var t,e;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,e,r,i,o;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===(r=null===(e=this.player)||void 0===e?void 0:e.config)||void 0===r?void 0:r.mutedPreview)||void 0===i?void 0:i.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||this.player.elements.wrapper.append(this.overlaysComponent))}render(){var t,r,i,o,n;return e(v,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},e("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"presto-sticky":""}\n ${this.stickyPositionClass()}\n ${"rtl"===this.direction?"rtl":""}\n ${!!(null===(t=this.preset)||void 0===t?void 0:t.skin)&&`skin-${null===(r=this.preset)||void 0===r?void 0:r.skin}`}\n ${(null===(i=this.preset)||void 0===i?void 0:i.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(o=this.preset)||void 0===o?void 0:o.caption_style)?`caption-style-${null===(n=this.preset)||void 0===n?void 0:n.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}`},e("div",null,e("slot",{name:"player-start"}),e("slot",{name:"player-before-video"}),this.renderVideo(),e("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),e("slot",{name:"player-end"}))))}get el(){return r(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Ur.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));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::after:empty{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.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:calc(100%);max-width:calc(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 .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.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@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;display:flex;align-items:center;justify-content:center}.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 .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:calc(calc(1600 / 9) * 1vh)}}';const Qr=function(t,e){return u(e)},Wr=class{constructor(e){t(this,e),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,r=e(Qr,null,e("span",{part:"prefix",class:"button__prefix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),e("span",{part:"label",class:"button__label"},e("slot",{onSlotchange:()=>this.handleSlotChange()})),e("span",{part:"suffix",class:"button__suffix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),i=e("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},r),o=e("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},r);return t?o:i}get button(){return r(this)}};Wr.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.25rem)}.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.875rem);height:var(--presto-player-button-height-small, 1.875rem);line-height:calc(var(--presto-player-button-height-small, 1.875rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1rem);height:var(--presto-player-button-height-medium, 2.5rem);line-height:calc(var(--presto-player-button-height-medium, 2.5rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25rem);height:var(--presto-player-button-height-large, 3.125rem);line-height:calc(var(--presto-player-button-height-large, 3.125rem) - 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.75rem)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1rem)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25rem)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}";const Yr=class{constructor(e){t(this,e)}render(){return e("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};Yr.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)}}";const Jr=class{constructor(e){t(this,e)}render(){return e("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},e("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>e("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"}))))}};Jr.style=":host{display:block}";const Gr=class{constructor(e){t(this,e)}getId(t){const e=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==e?void 0:e[5])||""}render(){if(this.src)return"Android"!==g()||(t=window.navigator.standalone,r=window.navigator.userAgent.toLowerCase(),i=/safari/.test(r),/iphone|ipod|ipad/.test(r)?!t&&i||t||i:!r.includes("wv"))?e("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)}):e("div",{class:"presto-iframe-fallback-container"},e("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,r,i}};Gr.style=":host{display:block}";const Kr=class{constructor(e){t(this,e),this.reload=i(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var e,r,i,o,n;1===t.detail.code&&((null===(n=null===(o=null===(i=null===(r=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr)||void 0===r?void 0:r.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 e;const r=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return r&&11===(null===(e=null==r?void 0:r[2])||void 0===e?void 0:e.length)?r[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let e=null===(t=window.navigator)||void 0===t?void 0:t.standalone,r=window.navigator.userAgent.toLowerCase(),i=/safari/.test(r),o=/iphone|ipod|ipad/.test(r);this.isWebView=o?!e&&!i:r.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===g()&&(this.lazyLoad=!1)}render(){return this.isWebView?e("div",{class:"fallback-container"},e("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?e("div",null,e("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),e("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):e("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"]}}};Kr.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}}";const Xr=class{constructor(e){t(this,e),this.layout="default"}waitForApi(t){var e=setInterval((function(){var r;(null===(r=null===window||void 0===window?void 0:window.gapi)||void 0===r?void 0:r.ytsubscribe)&&(clearInterval(e),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 e=document.getElementsByTagName("script")[0];e&&e.parentNode.insertBefore(t,e),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return e("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};Xr.style=":host{display:block}";export{z as C,C as E,Vr as P,b as a,m as b,_ as c,w as d,k as e,j as f,T as g,S as h,P as i,O as j,Ur as k,Wr as l,Yr as m,Jr as n,Gr as o,Kr as p,Xr as q,or as r}
|
1 |
+
import{r as t,h as e,g as r,c as i,_ as o,a as n,d as a,e as s,f as l,i as p,j as u,k as c,l as d,m as h,H as v}from"./p-660ec1bb.js";function y({current:t,duration:e,showAfter:r}){if(!r||!e)return!1;if(t===r)return!0;let i=t/e*100;return 99.9<i&&(i=100),i>=r}function f(t){let e,r=t.split(":");return r.length>1&&(e=60*parseInt(r[0])),parseInt(r[1])+parseInt(e)}function g(){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"}const b=class{constructor(e){t(this,e),this.show=!1,this.youtubeRenderKey=1}componentWillLoad(){this.handleDuration()}handleButtonCountChange(t,e){(null==t?void 0:t.button_count)!==(null==e?void 0:e.button_count)&&this.youtubeRenderKey++,(null==t?void 0:t.enabled)&&this.handleDuration()}handleDuration(){var t,e;this.show=!!(null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.blocks)||y({current:this.currentTime,duration:this.duration,showAfter:(null===(e=this.config)||void 0===e?void 0:e.percentage_start)||0})}youtubeButton(){var t,r,i,o;if("youtube"===(null===(t=this.config)||void 0===t?void 0:t.button_type)&&(null===(r=this.youtube)||void 0===r?void 0:r.channelId))return e("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,r,i,o,n,a,s,l,p,u,c;if("custom"===(null===(t=this.config)||void 0===t?void 0:t.button_type))return e("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(r=this.config)||void 0===r?void 0:r.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===(c=this.config)||void 0===c?void 0:c.button_text)}render(){var t,r;return e("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===(r=this.config)||void 0===r?void 0:r.text,e("div",{slot:"button"},this.youtubeButton(),this.customButton()))}get el(){return r(this)}static get watchers(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}};b.style=":host{display:block}";const m=class{constructor(e){t(this,e)}render(){return e("div",{class:{bar:!0,"bar--open":this.open}},e("span",{part:"content",class:"bar__content"},e("slot",null)),e("span",{part:"button",class:"bar__button"},e("slot",{name:"button"})))}};m.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)}.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}}";const _=class{constructor(e){t(this,e)}componentWillLoad(){this.poster=this.poster||this.thumbnail}render(){return e("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})}},w=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,r;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("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})}};w.style=":host{display:block}";const k=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",7),this.percentagePassed=0}componentWillLoad(){this.handleDuration()}handleEnded(t){var e;if(t){if(100!==(null===(e=null==this?void 0:this.cta)||void 0===e?void 0:e.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=y({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()}render(){var t,r,i,o,n,a,s,l,p,u,c,d,h,v;if(this.show)return e("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===(r=null==this?void 0:this.cta)||void 0===r?void 0:r.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===(c=null==this?void 0:this.cta)||void 0===c?void 0:c.button_link,allowSkip:!this.ended&&(null===(d=null==this?void 0:this.cta)||void 0===d?void 0:d.show_skip),allowRewatch:this.ended&&(null===(h=null==this?void 0:this.cta)||void 0===h?void 0:h.show_rewatch),"button-text":null===(v=null==this?void 0:this.cta)||void 0===v?void 0:v.button_text,onSkip:()=>this.skip(),onRewatch:()=>this.rewatch()})}static get watchers(){return{ended:["handleEnded"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleEnabled","handleTime"]}}};k.style=":host{display:block}";const x=function(t,e,r){var i=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}({minFontSize:-1/0,maxFontSize:1/0,container:t},r),o=function(t){var r=e||1,o=function(){var e;t.style.fontSize=Math.max(Math.min(((null==i||null===(e=i.container)||void 0===e?void 0:e.clientWidth)||0)/(10*r),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},z=class{constructor(e){t(this,e),this.skip=i(this,"skip",7),this.rewatch=i(this,"rewatch",7)}componentDidLoad(){x(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleCTAClick(t){var e;(null===(e=this.buttonLink)||void 0===e?void 0:e.url)&&(t.preventDefault(),t.stopPropagation(),this.handleLink())}handleLink(){var t,e,r;(null===(t=this.buttonLink)||void 0===t?void 0:t.opensInNewTab)?window.open(null===(e=this.buttonLink)||void 0===e?void 0:e.url,"_blank"):window.location.href=null===(r=this.buttonLink)||void 0===r?void 0:r.url}render(){var t,r,i,o,n;return e("div",{class:"wrapper",ref:t=>this.textInput=t},e("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":""}`},e("div",{class:"content"},e("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&e("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&e("presto-player-button",{full:!0,onClick:t=>this.handleCTAClick(t),part:"cta-button",href:null===(r=null==this?void 0:this.buttonLink)||void 0===r?void 0:r.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&&e("div",{class:"rewatch",onClick:t=>{t.preventDefault(),t.stopImmediatePropagation(),this.rewatch.emit()}},e("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"},e("polyline",{points:"9 14 4 9 9 4"}),e("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&&e("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," →"))}};z.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}';const j=class{constructor(e){t(this,e),this.position="top-right"}closestElement(t,e){return e&&e!=document&&e!=window&&e.closest(t)||e&&this.closestElement(t,e.getRootNode().host)}componentDidLoad(){let t=this.closestElement("presto-player",this.el);x(this.text,3,{maxFontSize:16,minFontSize:10,container:t})}render(){return e(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},e("slot",null))}get el(){return r(this)}};j.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}";const T=class{constructor(e){t(this,e),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,e,r,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===(r=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===r?void 0:r.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:e,component:r}=this.refs[t];this.checkComponent(r,e.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,e,r){if(!(null==t?void 0:t.offsetParent))return r();if(!t.shadowRoot.querySelector("slot"))return r();if(this.player&&this.player.playing){const i=t.shadowRoot.querySelector("slot").assignedNodes()[0];if(i){if(i.parentElement.innerHTML!=e)return r();const t=getComputedStyle(i.parentElement.shadowRoot.querySelector(".overlay-text"));if(parseInt(t.fontSize,10)<10)return r();const o=function(t){var e=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);return e?[e[1],e[2],e[3],"1"]:(e=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((0.)?\d+)\s*\)$/i))?[e[1],e[2],e[3],e[4]]:void 0}(t.color);if("1"!==(null==o?void 0:o[3]))return r()}}}shouldShowOverlay(t){if(void 0!==this.currentTime)return!(this.currentTime<f(null==t?void 0:t.startTime)||this.currentTime>f(null==t?void 0:t.endTime))}renderOverlay(t){var r,i;return e("presto-dynamic-overlay-ui",{class:{visible:this.shouldShowOverlay(t)},ref:e=>this.refs[t.id]={overlay:t,component:e},key:t.id,position:t.position,href:null===(r=null==t?void 0:t.link)||void 0===r?void 0:r.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 e,r,i;if(!(null===(r=null===(e=this.preset)||void 0===e?void 0:e.watermark)||void 0===r?void 0:r.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,r,i,o,n,a,s,l,p,u,c;if(this.enabled&&((null===(t=null==this?void 0:this.overlays)||void 0===t?void 0:t.length)||(null===(i=null===(r=this.preset)||void 0===r?void 0:r.watermark)||void 0===i?void 0:i.enabled)))return e("div",{class:"overlays",ref:t=>this.container=t},e("div",{class:"top-left",ref:t=>this.topLeft=t},!!this.shouldShowWatermark("top-left")&&e("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)))),e("div",{class:"top-right",ref:t=>this.topRight=t},!!this.shouldShowWatermark("top-right")&&e("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===(c=null==this?void 0:this.overlays)||void 0===c?void 0:c.length)&&this.overlays.map((t=>"top-right"!==t.position?"":this.renderOverlay(t)))))}get el(){return r(this)}};T.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}";const S=class{constructor(e){t(this,e)}componentWillLoad(){this.player&&(this.player.on("ended",(()=>this.setEnded())),this.player.on("timeupdate",(t=>this.setCurrentTime(t))))}setEnded(){this.ended=!0}setCurrentTime(t){var e,r;this.currentTime=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr.currentTime,this.duration=null===(r=null==t?void 0:t.detail)||void 0===r?void 0:r.plyr.duration}disconnectedCallback(){this.player&&(this.player.off("ended",this.setEnded),this.player.off("timeupdate",this.setCurrentTime))}render(){var t;return e("presto-email-overlay-controller",{ended:this.ended,currentTime:this.currentTime,videoId:this.videoId,duration:this.duration,direction:this.direction,emailCollection:null===(t=this.preset)||void 0===t?void 0:t.email_collection,i18n:this.i18n})}};S.style=":host{display:block}";const P=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7),this.pauseVideo=i(this,"pauseVideo",7),this.restartVideo=i(this,"restartVideo",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=y({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 e;this.loading=!0,this.error="";const r=await this.getNonce(),{data:i}=await r.json();try{let r=await fetch(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.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 r.json();if(!o)throw n;this.setStorage("collected"),this.show=!1,this.playVideo.emit()}catch(t){const e=null==t?void 0:t[0];e&&"string"==typeof e&&(this.error=e)}finally{this.loading=!1}}skip(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}render(){var t,r,i,o;if(this.show)return e("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null==this?void 0:this.emailCollection)||void 0===t?void 0:t.headline,bottomText:null===(r=null==this?void 0:this.emailCollection)||void 0===r?void 0:r.bottom_text,allowSkip:null===(i=null==this?void 0:this.emailCollection)||void 0===i?void 0:i.allow_skip,buttonText:null===(o=null==this?void 0:this.emailCollection)||void 0===o?void 0:o.button_text,isLoading:this.loading,errorMessage:this.error,onSubmitForm:t=>this.submit(t),onSkip:()=>this.skip(),i18n:this.i18n})}static get watchers(){return{duration:["handleDuration"],currentTime:["handleTimeCheck","handleShowChange"]}}};P.style=":host{display:block}";const C=class{constructor(e){t(this,e),this.submitForm=i(this,"submitForm",7),this.skip=i(this,"skip",7)}handleSubmit(t){this.submitForm.emit({email:this.email}),t.preventDefault()}componentDidLoad(){x(this.textInput,3,{maxFontSize:20,minFontSize:8})}handleChange(t){this.email=t.target.value}render(){var t,r,i,o;return e("div",{class:"overlay "+("rtl"===this.direction?"rtl":""),ref:t=>this.textInput=t},e("div",{class:"content"},e("h1",null,this.headline||(null===(t=null==this?void 0:this.i18n)||void 0===t?void 0:t.emailDefaultHeadline)),this.isLoading?e("presto-player-spinner",null):e("form",{onSubmit:t=>this.handleSubmit(t)},e("input",{type:"email",placeholder:null===(r=null==this?void 0:this.i18n)||void 0===r?void 0:r.emailPlaceholder,value:this.email,onInput:t=>this.handleChange(t),required:!0}),e("button",{type:"submit"},this.buttonText||(null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.play))),this.errorMessage&&e("p",{class:"error"},this.errorMessage),this.bottomText&&e("p",{innerHTML:this.bottomText}),!!this.allowSkip&&e("div",{class:"skip",onClick:()=>{this.skip.emit()}},null===(o=null==this?void 0:this.i18n)||void 0===o?void 0:o.skip," →")))}};C.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}.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: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-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}.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}';const O=class{constructor(e){t(this,e),this.playVideo=i(this,"playVideo",7)}render(){var t,r,i,o,n,a,s,l,p;return e("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"])&&e("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},e("svg",{id:"plyr-play",viewBox:"0 0 18 18"},e("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"})),e("span",{class:"plyr__sr-only"},"Play")),(null===(r=this.mutedOverlay)||void 0===r?void 0:r.enabled)&&(null===(i=this.mutedOverlay)||void 0===i?void 0:i.src)?e("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)+"%"}},e("img",{src:null===(p=this.mutedOverlay)||void 0===p?void 0:p.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}};O.style=":host{display:block}";var I=["premium","referrerPolicy"];function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var N={addCSS:!0,thumbWidth:15,watch:!0};function R(t,e){return function(){return Array.from(document.querySelectorAll(e)).includes(this)}.call(t,e)}var D=function(t){return null!=t?t.constructor:null},B=function(t,e){return!!(t&&e&&t instanceof e)},q=function(t){return D(t)===String},H=function(t){return Array.isArray(t)},V=function(t){return B(t,NodeList)},$=q,U=H,Q=V,W=function(t){return B(t,Element)},Y=function(t){return B(t,Event)},J=function(t){return function(t){return null==t}(t)||(q(t)||H(t)||V(t))&&!t.length||function(t){return D(t)===Object}(t)&&!Object.keys(t).length};var G,K,X,Z=function(){function t(e,r){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),W(e)?this.element=e:$(e)&&(this.element=document.querySelector(e)),W(this.element)&&J(this.element.rangeTouch)&&(this.config=L({},N,{},r),this.init())}return function(t,e,r){e&&M(t.prototype,e),r&&M(t,r)}(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 e=this,r=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(t){e.element[r](t,(function(t){return e.set(t)}),!1)}))}},{key:"get",value:function(e){if(!t.enabled||!Y(e))return null;var r,i=e.target,o=e.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>(r=100/l.width*(o.clientX-l.left))?r=0:100<r&&(r=100),50>r?r-=(100-2*r)*p:50<r&&(r+=2*(r-50)*p),n+function(t,e){if(1>e){var r=function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}(e);return parseFloat(t.toFixed(r))}return Math.round(t/e)*e}(r/100*(a-n),s)}},{key:"set",value:function(e){t.enabled&&Y(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),function(t,e){if(t&&e){var r=new Event(e,{bubbles:!0});t.dispatchEvent(r)}}(e.target,"touchend"===e.type?"change":"input"))}}],[{key:"setup",value:function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(J(e)||$(e)?i=Array.from(document.querySelectorAll($(e)?e:'input[type="range"]')):W(e)?i=[e]:Q(e)?i=Array.from(e):U(e)&&(i=e.filter(W)),J(i))return null;var o=L({},N,{},r);if($(e)&&o.watch){var n=new MutationObserver((function(r){Array.from(r).forEach((function(r){Array.from(r.addedNodes).forEach((function(r){W(r)&&R(r,e)&&new t(r,o)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(e){return new t(e,r)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),t}(),tt=function(t){return null!=t?t.constructor:null},et=function(t,e){return Boolean(t&&e&&t instanceof e)},rt=function(t){return null==t},it=function(t){return tt(t)===Object},ot=function(t){return tt(t)===String},nt=function(t){return tt(t)===Function},at=function(t){return Array.isArray(t)},st=function(t){return et(t,NodeList)},lt=function(t){return rt(t)||(ot(t)||at(t)||st(t))&&!t.length||it(t)&&!Object.keys(t).length},pt=rt,ut=it,ct=function(t){return tt(t)===Number&&!Number.isNaN(t)},dt=ot,ht=function(t){return tt(t)===Boolean},vt=nt,yt=at,ft=st,gt=function(t){return null!==t&&"object"==l(t)&&1===t.nodeType&&"object"==l(t.style)&&"object"==l(t.ownerDocument)},bt=function(t){return et(t,Event)},mt=function(t){return et(t,KeyboardEvent)},_t=function(t){return et(t,TextTrack)||!rt(t)&&ot(t.kind)},wt=function(t){if(et(t,window.URL))return!0;if(!ot(t))return!1;var e=t;t.startsWith("http://")&&t.startsWith("https://")||(e="http://".concat(t));try{return!lt(new URL(e).hostname)}catch(t){return!1}},kt=lt,xt=(G=document.createElement("span"),K={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},X=Object.keys(K).find((function(t){return void 0!==G.style[t]})),!!dt(X)&&K[X]);function zt(t,e){setTimeout((function(){try{t.hidden=!0,t.hidden=!1}catch(t){}}),e)}var jt={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 Tt(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}function St(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(!r.length)return t;var o=r.shift();return ut(o)?(Object.keys(o).forEach((function(e){ut(o[e])?(Object.keys(t).includes(e)||Object.assign(t,a({},e,{})),St(t[e],o[e])):Object.assign(t,a({},e,o[e]))})),St.apply(void 0,[t].concat(r))):t}function Pt(t,e){Array.from(t.length?t:[t]).reverse().forEach((function(t,r){var i=r>0?e.cloneNode(!0):e,o=t.parentNode,n=t.nextSibling;i.appendChild(t),n?o.insertBefore(i,n):o.appendChild(i)}))}function Ct(t,e){gt(t)&&!kt(e)&&Object.entries(e).filter((function(t){var e=o(t,2);return!pt(e[1])})).forEach((function(e){var r=o(e,2);return t.setAttribute(r[0],r[1])}))}function Ot(t,e,r){var i=document.createElement(t);return ut(e)&&Ct(i,e),dt(r)&&(i.innerText=r),i}function It(t,e,r,i){gt(e)&&e.appendChild(Ot(t,r,i))}function At(t){ft(t)||yt(t)?Array.from(t).forEach(At):gt(t)&>(t.parentNode)&&t.parentNode.removeChild(t)}function Mt(t){if(gt(t))for(var e=t.childNodes.length;e>0;)t.removeChild(t.lastChild),e-=1}function Et(t,e){return gt(e)&>(e.parentNode)&>(t)?(e.parentNode.replaceChild(t,e),t):null}function Ft(t,e){if(!dt(t)||kt(t))return{};var r={},i=St({},e);return t.split(",").forEach((function(t){var e=t.trim(),n=e.replace(".",""),a=e.replace(/[[\]]/g,"").split("="),s=o(a,1)[0],l=a.length>1?a[1].replace(/["']/g,""):"";switch(e.charAt(0)){case".":r.class=dt(i.class)?"".concat(i.class," ").concat(n):n;break;case"#":r.id=e.replace("#","");break;case"[":r[s]=l}})),St(i,r)}function Lt(t,e){if(gt(t)){var r=e;ht(r)||(r=!t.hidden),t.hidden=r}}function Nt(t,e,r){if(ft(t))return Array.from(t).map((function(t){return Nt(t,e,r)}));if(gt(t)){var i="toggle";return void 0!==r&&(i=r?"add":"remove"),t.classList[i](e),t.classList.contains(e)}return!1}function Rt(t,e){return gt(t)&&t.classList.contains(e)}function Dt(t,e){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(t,e)}function Bt(t){return this.elements.container.querySelectorAll(t)}function qt(t){return this.elements.container.querySelector(t)}function Ht(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];gt(t)&&(t.focus({preventScroll:!0}),e&&Nt(t,this.config.classNames.tabFocus))}var Vt={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},$t={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,e,r){var i=$t[t]||"html5"!==e;return{api:i,ui:i&&$t.rangeInput&&("video"!==t||!jt.isIPhone||jt.isIPhone&&r&&$t.playsinline)}},pip:!(jt.isIPhone||!vt(Ot("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Ot("video").disablePictureInPicture)),airplay:vt(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(kt(t))return!1;var e=t.split("/"),r=o(e,1),i=t;if(!this.isHTML5||r[0]!==this.type)return!1;Object.keys(Vt).includes(i)&&(i+='; codecs="'.concat(Vt[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!==xt,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ut=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,null}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Qt(t,e,r){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&&!kt(e)&&vt(r)){var s=e.split(" "),l=a;Ut&&(l={passive:n,capture:a}),s.forEach((function(e){i&&i.eventListeners&&o&&i.eventListeners.push({element:t,type:e,callback:r,options:l}),t[o?"addEventListener":"removeEventListener"](e,r,l)}))}}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=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];Qt.call(this,t,e,r,!0,i,o)}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=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];Qt.call(this,t,e,r,!1,i,o)}function Jt(t){var e=this,r=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];Yt(t,r,a,o,n),i.apply(e,l)};Qt.call(this,t,r,a,!0,o,n)}function Gt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(gt(t)&&!kt(e)){var o=new CustomEvent(e,{bubbles:r,detail:n(n({},i),{},{plyr:this})});t.dispatchEvent(o)}}function Kt(){this&&this.eventListeners&&(this.eventListeners.forEach((function(t){t.element.removeEventListener(t.type,t.callback,t.options)})),this.eventListeners=[])}function Xt(){var t=this;return new Promise((function(e){return t.ready?setTimeout(e,0):Wt.call(t,t.elements.container,"ready",e)})).then((function(){}))}function Zt(t){(function(t){return et(t,Promise)&&nt(t.then)})(t)&&t.then(null,(function(){}))}function te(t){return yt(t)?t.filter((function(e,r){return t.indexOf(e)===r})):t}function ee(t,e){return yt(t)&&t.length?t.reduce((function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t})):null}function re(t){return!(!window||!window.CSS)&&window.CSS.supports(t)}var ie=[[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,e){var r=o(e,2),i=r[0],s=r[1];return n(n({},t),{},a({},i/s,[i,s]))}),{});function oe(t){return!!(yt(t)||dt(t)&&t.includes(":"))&&(yt(t)?t:t.split(":")).map(Number).every(ct)}function ne(t){if(!yt(t)||!t.every(ct))return null;var e=o(t,2),r=e[0],i=e[1],n=function t(e,r){return 0===r?e:t(r,e%r)}(r,i);return[r/n,i/n]}function ae(t){var e=function(t){return oe(t)?t.split(":").map(Number):null},r=e(t);if(null===r&&(r=e(this.config.ratio)),null===r&&!kt(this.embed)&&yt(this.embed.ratio)&&(r=this.embed.ratio),null===r&&this.isHTML5){var i=this.media;r=[i.videoWidth,i.videoHeight]}return ne(r)}function se(t){if(!this.isVideo)return{};var e=this.elements.wrapper,r=ae.call(this,t);if(!yt(r))return{};var i=ne(r),n=o(i,2),a=n[0],s=n[1],l=100/a*s;if(re("aspect-ratio: ".concat(a,"/").concat(s))?e.style.aspectRatio="".concat(a,"/").concat(s):e.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?e.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(u,"%)")}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:l,ratio:r}}function le(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=t/e,o=ee(Object.keys(ie),i);return Math.abs(o-i)<=r?ie[o]:[t,e]}var pe={getSources:function(){var t=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(e){var r=e.getAttribute("type");return!!kt(r)||$t.mime.call(t,r)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:pe.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,kt(this.config.ratio)||se.call(t),Object.defineProperty(t.media,"quality",{get:function(){var e=pe.getSources.call(t).find((function(e){return e.getAttribute("src")===t.source}));return e&&Number(e.getAttribute("size"))},set:function(e){if(t.quality!==e){if(t.config.quality.forced&&vt(t.config.quality.onChange))t.config.quality.onChange(e);else{var r=pe.getSources.call(t).find((function(t){return Number(t.getAttribute("size"))===e}));if(!r)return;var i=t.media,o=i.currentTime,n=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;t.media.src=r.getAttribute("src"),("none"!==a||s)&&(t.once("loadedmetadata",(function(){t.speed=l,t.currentTime=o,n||Zt(t.play())})),t.media.load())}Gt.call(t,t.media,"qualitychange",!1,{quality:e})}}})}},cancelRequests:function(){this.isHTML5&&(At(pe.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ue(t){return"".concat(t,"-").concat(Math.floor(1e4*Math.random()))}function ce(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return kt(t)?t:t.toString().replace(/{(\d+)}/g,(function(t,e){return r[e].toString()}))}var de=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),r.toString())},he=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 ve(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.toString();return e=de(e,"-"," "),e=de(e,"_"," "),e=he(e),de(e," ","")}function ye(t){var e=document.createElement("div");return e.appendChild(t),e.innerHTML}var fe={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},ge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(kt(t)||kt(e))return"";var r=Tt(e.i18n,t);if(kt(r))return Object.keys(fe).includes(t)?fe[t]:"";var i={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(i).forEach((function(t){var e=o(t,2);r=de(r,e[0],e[1])})),r},be=function(){function t(e){var r=this;p(this,t),A(this,"get",(function(e){if(!t.supported||!r.enabled)return null;var i=window.localStorage.getItem(r.key);if(kt(i))return null;var o=JSON.parse(i);return dt(e)&&e.length?o[e]:o})),A(this,"set",(function(e){if(t.supported&&r.enabled&&ut(e)){var i=r.get();kt(i)&&(i={}),St(i,e),window.localStorage.setItem(r.key,JSON.stringify(i))}})),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}return s(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 me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(r,i){try{var o=new XMLHttpRequest;if(!("withCredentials"in o))return;o.addEventListener("load",(function(){if("text"===e)try{r(JSON.parse(o.responseText))}catch(t){r(o.responseText)}else r(o.response)})),o.addEventListener("error",(function(){throw new Error(o.status)})),o.open("GET",t,!0),o.responseType=e,o.send()}catch(t){i(t)}}))}function _e(t,e){if(dt(t)){var r=dt(e),i=function(){return null!==document.getElementById(e)},o=function(t,e){t.innerHTML=e,r&&i()||document.body.insertAdjacentElement("afterbegin",t)};if(!r||!i()){var n=be.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),r&&a.setAttribute("id",e),n){var s=window.localStorage.getItem("cache-".concat(e));if(null!==s){var l=JSON.parse(s);o(a,l.content)}}me(t).then((function(t){kt(t)||(n&&window.localStorage.setItem("cache-".concat(e),JSON.stringify({content:t})),o(a,t))})).catch((function(){}))}}}var we=function(t){return Math.trunc(t/60/60%60,10)},ke=function(t){return Math.trunc(t%60,10)};function xe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!ct(t))return xe(void 0,e,r);var i,o=function(t){return"0".concat(t).slice(-2)},n=we(t),a=(i=t,Math.trunc(i/60%60,10)),s=ke(t);return n=e||n>0?"".concat(n,":"):"","".concat(r&&t>0?"-":"").concat(n).concat(o(a),":").concat(o(s))}var ze={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,r=t.host!==e||jt.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:r}},findElements:function(){try{return this.elements.controls=qt.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Bt.call(this,this.config.selectors.buttons.play),pause:qt.call(this,this.config.selectors.buttons.pause),restart:qt.call(this,this.config.selectors.buttons.restart),rewind:qt.call(this,this.config.selectors.buttons.rewind),fastForward:qt.call(this,this.config.selectors.buttons.fastForward),mute:qt.call(this,this.config.selectors.buttons.mute),pip:qt.call(this,this.config.selectors.buttons.pip),airplay:qt.call(this,this.config.selectors.buttons.airplay),settings:qt.call(this,this.config.selectors.buttons.settings),captions:qt.call(this,this.config.selectors.buttons.captions),fullscreen:qt.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=qt.call(this,this.config.selectors.progress),this.elements.inputs={seek:qt.call(this,this.config.selectors.inputs.seek),volume:qt.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:qt.call(this,this.config.selectors.display.buffer),currentTime:qt.call(this,this.config.selectors.display.currentTime),duration:qt.call(this,this.config.selectors.display.duration)},gt(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,e){var r="http://www.w3.org/2000/svg",i=ze.getIconUrl.call(this),o="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),n=document.createElementNS(r,"svg");Ct(n,St(e,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(r,"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 e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ge(t,this.config);return Ot("span",n(n({},e),{},{class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),r)},createBadge:function(t){if(kt(t))return null;var e=Ot("span",{class:this.config.classNames.menu.value});return e.appendChild(Ot("span",{class:this.config.classNames.menu.badge},t)),e},createButton:function(t,e){var r=this,i=St({},e),o=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=ve(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===r.config.classNames.control}))||St(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:kt(n.label)&&(n.label=o),kt(n.icon)&&(n.icon=t)}var a=Ot(n.element);return n.toggle?(a.appendChild(ze.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(ze.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(ze.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(ze.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(ze.createIcon.call(this,n.icon)),a.appendChild(ze.createLabel.call(this,n.label))),St(i,Ft(this.config.selectors.buttons[o],i)),Ct(a,i),"play"===o?(yt(this.elements.buttons[o])||(this.elements.buttons[o]=[]),this.elements.buttons[o].push(a)):this.elements.buttons[o]=a,a},createRange:function(t,e){var r=Ot("input",St(Ft(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":ge(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[t]=r,ze.updateRangeFill.call(this,r),Z.setup(r),r},createProgress:function(t,e){var r=Ot("progress",St(Ft(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if("volume"!==t){r.appendChild(Ot("span",null,"0"));var i={played:"played",buffer:"buffered"}[t],o=i?ge(i,this.config):"";r.innerText="% ".concat(o.toLowerCase())}return this.elements.display[t]=r,r},createTime:function(t,e){var r=Ft(this.config.selectors.display[t],e),i=Ot("div",St(r,{class:"".concat(r.class?r.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":ge(t,this.config)}),"00:00");return this.elements.display[t]=i,i},bindMenuItemShortcuts:function(t,e){var r=this;Wt.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=Dt(t,'[role="menuitemradio"]');!n&&[32,39].includes(i.which)?ze.showMenuPanel.call(r,e,!0):32!==i.which&&(40===i.which||n&&39===i.which?gt(o=t.nextElementSibling)||(o=t.parentNode.firstElementChild):gt(o=t.previousElementSibling)||(o=t.parentNode.lastElementChild),Ht.call(r,o,!0))}}),!1),Wt.call(this,t,"keyup",(function(t){13===t.which&&ze.focusFirstMenuItem.call(r,null,!0)}))},createMenuItem:function(t){var e=this,r=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=Ft(this.config.selectors.inputs[o]),c=Ot("button",St(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":p,value:r})),d=Ot("span");d.innerHTML=n,gt(s)&&d.appendChild(s),c.appendChild(d),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(t){t&&Array.from(c.parentNode.children).filter((function(t){return Dt(t,'[role="menuitemradio"]')})).forEach((function(t){return t.setAttribute("aria-checked","false")})),c.setAttribute("aria-checked",t?"true":"false")}}),this.listeners.bind(c,"click keyup",(function(t){if(!mt(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),c.checked=!0,o){case"language":e.currentTrack=Number(r);break;case"quality":e.quality=r;break;case"speed":e.speed=parseFloat(r)}ze.showMenuPanel.call(e,"home",mt(t))}}),o,!1),ze.bindMenuItemShortcuts.call(this,c,o),i.appendChild(c)},formatTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ct(t)?xe(t,we(this.duration)>0,e):t},updateTimeDisplay:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];gt(t)&&ct(e)&&(t.innerText=ze.formatTime(e,r))},updateVolume:function(){this.supported.ui&&(gt(this.elements.inputs.volume)&&ze.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),gt(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;gt(t)&&(t.value=e,ze.updateRangeFill.call(this,t))},updateProgress:function(t){var e=this;if(this.supported.ui&&bt(t)){var r=0;if(t)switch(t.type){case"timeupdate":case"seeking":case"seeked":r=function(t,e){return 0===t||0===e||Number.isNaN(t)||Number.isNaN(e)?0:(t/e*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===t.type&&ze.setRange.call(this,this.elements.inputs.seek,r);break;case"playing":case"progress":!function(t,r){var i=ct(r)?r:0,o=gt(t)?t:e.elements.display.buffer;if(gt(o)){o.value=i;var n=o.getElementsByTagName("span")[0];gt(n)&&(n.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(t){var e=bt(t)?t.target:t;if(gt(e)&&"range"===e.getAttribute("type")){if(Dt(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);var r=ze.formatTime(this.currentTime),i=ze.formatTime(this.duration),o=ge("seekLabel",this.config);e.setAttribute("aria-valuetext",o.replace("{currentTime}",r).replace("{duration}",i))}else if(Dt(e,this.config.selectors.inputs.volume)){var n=100*e.value;e.setAttribute("aria-valuenow",n),e.setAttribute("aria-valuetext","".concat(n.toFixed(1),"%"))}else e.setAttribute("aria-valuenow",e.value);jt.isWebkit&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip:function(t){var e=this;if(this.config.tooltips.seek&>(this.elements.inputs.seek)&>(this.elements.display.seekTooltip)&&0!==this.duration){var r="".concat(this.config.classNames.tooltip,"--visible"),i=function(t){return Nt(e.elements.display.seekTooltip,r,t)};if(this.touch)i(!1);else{var o=0,n=this.elements.progress.getBoundingClientRect();if(bt(t))o=100/n.width*(t.pageX-n.left);else{if(!Rt(this.elements.display.seekTooltip,r))return;o=parseFloat(this.elements.display.seekTooltip.style.left,10)}o<0?o=0:o>100&&(o=100),ze.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*o),this.elements.display.seekTooltip.style.left="".concat(o,"%"),bt(t)&&["mouseenter","mouseleave"].includes(t.type)&&i("mouseenter"===t.type)}}},timeUpdate:function(t){var e=!gt(this.elements.display.duration)&&this.config.invertTime;ze.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),t&&"timeupdate"===t.type&&this.media.seeking||ze.updateProgress.call(this,t)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Lt(this.elements.display.currentTime,!0),void Lt(this.elements.progress,!0);gt(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var t=gt(this.elements.display.duration);!t&&this.config.displayDuration&&this.paused&&ze.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),t&&ze.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),ze.updateSeekTooltip.call(this)}},toggleMenuButton:function(t,e){Lt(this.elements.settings.buttons[t],!e)},updateSetting:function(t,e,r){var i=this.elements.settings.panels[t],o=null,n=e;if("captions"===t)o=this.currentTrack;else{if(o=kt(r)?this[t]:r,kt(o)&&(o=this.config[t].default),!kt(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(gt(n)||(n=i&&i.querySelector('[role="menu"]')),gt(n)){this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=ze.getLabel.call(this,t,o);var a=n&&n.querySelector('[value="'.concat(o,'"]'));gt(a)&&(a.checked=!0)}},getLabel:function(t,e){switch(t){case"speed":return 1===e?ge("normal",this.config):"".concat(e,"×");case"quality":if(ct(e)){if(0===e)return ge("auto",this.config);var r=ge("qualityLabel.".concat(e),this.config);return r.length?r:"".concat(e,"p")}return he(e);case"captions":return Se.getLabel.call(this);default:return null}},setQualityMenu:function(t){var e=this;if(gt(this.elements.settings.panels.quality)){var r="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');yt(t)&&(this.options.quality=te(t).filter((function(t){return e.config.quality.options.includes(t)})));var o=!kt(this.options.quality)&&this.options.quality.length>1;if(ze.toggleMenuButton.call(this,r,o),Mt(i),ze.checkMenu.call(this),o){var n=function(t){var r=ge("qualityBadge.".concat(t),e.config);return r.length?ze.createBadge.call(e,r):null};this.options.quality.sort((function(t,r){var i=e.config.quality.options;return i.indexOf(t)>i.indexOf(r)?1:-1})).forEach((function(t){ze.createMenuItem.call(e,{value:t,list:i,type:r,title:ze.getLabel.call(e,"quality",t),badge:n(t)})})),ze.updateSetting.call(this,r,i)}}},setCaptionsMenu:function(){var t=this;if(gt(this.elements.settings.panels.captions)){var e="captions",r=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Se.getTracks.call(this),o=Boolean(i.length);if(ze.toggleMenuButton.call(this,e,o),Mt(r),ze.checkMenu.call(this),o){var n=i.map((function(e,i){return{value:i,checked:t.captions.toggled&&t.currentTrack===i,title:Se.getLabel.call(t,e),badge:e.language&&ze.createBadge.call(t,e.language.toUpperCase()),list:r,type:"language"}}));n.unshift({value:-1,checked:!this.captions.toggled,title:ge("disabled",this.config),list:r,type:"language"}),n.forEach(ze.createMenuItem.bind(this)),ze.updateSetting.call(this,e,r)}}},setSpeedMenu:function(){var t=this;if(gt(this.elements.settings.panels.speed)){var e="speed",r=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed}));var i=!kt(this.options.speed)&&this.options.speed.length>1;ze.toggleMenuButton.call(this,e,i),Mt(r),ze.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){ze.createMenuItem.call(t,{value:i,list:r,type:e,title:ze.getLabel.call(t,"speed",i)})})),ze.updateSetting.call(this,e,r))}},checkMenu:function(){var t=this.elements.settings.buttons,e=!kt(t)&&Object.values(t).some((function(t){return!t.hidden}));Lt(this.elements.settings.menu,!e)},focusFirstMenuItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var r=t;gt(r)||(r=Object.values(this.elements.settings.panels).find((function(t){return!t.hidden})));var i=r.querySelector('[role^="menuitem"]');Ht.call(this,i,e)}},toggleMenu:function(t){var e=this.elements.settings.popup,r=this.elements.buttons.settings;if(gt(e)&>(r)){var i=e.hidden,o=i;if(ht(t))o=t;else if(mt(t)&&27===t.which)o=!1;else if(bt(t)){var n=vt(t.composedPath)?t.composedPath()[0]:t.target,a=e.contains(n);if(a||!a&&t.target!==r&&o)return}r.setAttribute("aria-expanded",o),Lt(e,!o),Nt(this.elements.container,this.config.classNames.menu.open,o),o&&mt(t)?ze.focusFirstMenuItem.call(this,null,!0):o||i||Ht.call(this,r,mt(t))}},getMenuSize:function(t){var e=t.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),t.parentNode.appendChild(e);var r=e.scrollWidth,i=e.scrollHeight;return At(e),{width:r,height:i}},showMenuPanel:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(e));if(gt(i)){var o=i.parentNode,n=Array.from(o.children).find((function(t){return!t.hidden}));if($t.transitions&&!$t.reducedMotion){o.style.width="".concat(n.scrollWidth,"px"),o.style.height="".concat(n.scrollHeight,"px");var a=ze.getMenuSize.call(this,i),s=function e(r){r.target===o&&["width","height"].includes(r.propertyName)&&(o.style.width="",o.style.height="",Yt.call(t,o,xt,e))};Wt.call(this,o,xt,s),o.style.width="".concat(a.width,"px"),o.style.height="".concat(a.height,"px")}Lt(n,!0),Lt(i,!1),ze.focusFirstMenuItem.call(this,i,r)}},setDownloadUrl:function(){var t=this.elements.buttons.download;gt(t)&&t.setAttribute("href",this.download)},create:function(t){var e=this,r=ze.bindMenuItemShortcuts,i=ze.createButton,o=ze.createProgress,n=ze.createRange,a=ze.createTime,s=ze.setQualityMenu,l=ze.setSpeedMenu,p=ze.showMenuPanel;this.elements.controls=null,yt(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=Ot("div",Ft(this.config.selectors.controls.wrapper));this.elements.controls=u;var c={class:"plyr__controls__item"};return te(yt(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(e,"restart",c)),"rewind"===s&&u.appendChild(i.call(e,"rewind",c)),"play"===s&&u.appendChild(i.call(e,"play",c)),"fast-forward"===s&&u.appendChild(i.call(e,"fast-forward",c)),"progress"===s){var l=Ot("div",{class:"".concat(c.class," plyr__progress__container")}),d=Ot("div",Ft(e.config.selectors.progress));if(d.appendChild(n.call(e,"seek",{id:"plyr-seek-".concat(t.id)})),d.appendChild(o.call(e,"buffer")),e.config.tooltips.seek){var h=Ot("span",{class:e.config.classNames.tooltip},"00:00");d.appendChild(h),e.elements.display.seekTooltip=h}e.elements.progress=d,l.appendChild(e.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(e,"currentTime",c)),"duration"===s&&u.appendChild(a.call(e,"duration",c)),"mute"===s||"volume"===s){var v=e.elements.volume;gt(v)&&u.contains(v)||(v=Ot("div",St({},c,{class:"".concat(c.class," plyr__volume").trim()})),e.elements.volume=v,u.appendChild(v)),"mute"===s&&v.appendChild(i.call(e,"mute")),"volume"!==s||jt.isIos||v.appendChild(n.call(e,"volume",St({max:1,step:.05,value:e.config.volume},{id:"plyr-volume-".concat(t.id)})))}if("captions"===s&&u.appendChild(i.call(e,"captions",c)),"settings"===s&&!kt(e.config.settings)){var y=Ot("div",St({},c,{class:"".concat(c.class," plyr__menu").trim(),hidden:""}));y.appendChild(i.call(e,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":!1}));var f=Ot("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""}),g=Ot("div"),b=Ot("div",{id:"plyr-settings-".concat(t.id,"-home")}),m=Ot("div",{role:"menu"});b.appendChild(m),g.appendChild(b),e.elements.settings.panels.home=b,e.config.settings.forEach((function(i){var o=Ot("button",St(Ft(e.config.selectors.buttons.settings),{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));r.call(e,o,i),Wt.call(e,o,"click",(function(){p.call(e,i,!1)}));var n=Ot("span",null,ge(i,e.config)),a=Ot("span",{class:e.config.classNames.menu.value});a.innerHTML=t[i],n.appendChild(a),o.appendChild(n),m.appendChild(o);var s=Ot("div",{id:"plyr-settings-".concat(t.id,"-").concat(i),hidden:""}),l=Ot("button",{type:"button",class:"".concat(e.config.classNames.control," ").concat(e.config.classNames.control,"--back")});l.appendChild(Ot("span",{"aria-hidden":!0},ge(i,e.config))),l.appendChild(Ot("span",{class:e.config.classNames.hidden},ge("menuBack",e.config))),Wt.call(e,s,"keydown",(function(t){37===t.which&&(t.preventDefault(),t.stopPropagation(),p.call(e,"home",!0))}),!1),Wt.call(e,l,"click",(function(){p.call(e,"home",!1)})),s.appendChild(l),s.appendChild(Ot("div",{role:"menu"})),g.appendChild(s),e.elements.settings.buttons[i]=o,e.elements.settings.panels[i]=s})),f.appendChild(g),y.appendChild(f),u.appendChild(y),e.elements.settings.popup=f,e.elements.settings.menu=y}if("pip"===s&&$t.pip&&u.appendChild(i.call(e,"pip",c)),"airplay"===s&&$t.airplay&&u.appendChild(i.call(e,"airplay",c)),"download"===s){var _=St({},c,{element:"a",href:e.download,target:"_blank"});e.isHTML5&&(_.download=""),!wt(e.config.urls.download)&&e.isEmbed&&St(_,{icon:"logo-".concat(e.provider),label:e.provider}),u.appendChild(i.call(e,"download",_))}"fullscreen"===s&&u.appendChild(i.call(e,"fullscreen",c))})),this.isHTML5&&s.call(this,pe.getQualityOptions.call(this)),l.call(this),u},inject:function(){var t=this;if(this.config.loadSprite){var e=ze.getIconUrl.call(this);e.cors&&_e(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var r=null;this.elements.controls=null;var i,n={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(vt(this.config.controls)&&(this.config.controls=this.config.controls.call(this,n)),this.config.controls||(this.config.controls=[]),gt(this.config.controls)||dt(this.config.controls)?r=this.config.controls:(r=ze.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Se.getLabel.call(this)}),a=!1),a&&dt(this.config.controls)&&(r=function(t){var e=t;return Object.entries(n).forEach((function(t){var r=o(t,2),i=r[1];e=de(e,"{".concat(r[0],"}"),i)})),e}(r)),dt(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),gt(i)||(i=this.elements.container),i[gt(r)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",r),gt(this.elements.controls)||ze.findElements.call(this),!kt(this.elements.buttons)){var s=function(e){var r=t.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:function(){return Rt(e,r)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Nt(e,r,t)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(t){yt(t)||ft(t)?Array.from(t).filter(Boolean).forEach(s):s(t)}))}if(jt.isEdge&&zt(i),this.config.tooltips.controls){var l=this.config,p=l.classNames,u=l.selectors,c="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(p.hidden),d=Bt.call(this,c);Array.from(d).forEach((function(e){Nt(e,t.config.classNames.hidden,!1),Nt(e,t.config.classNames.tooltip,!0)}))}}};function je(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t;if(e){var i=document.createElement("a");i.href=r,r=i.href}try{return new URL(r)}catch(t){return null}}function Te(t){var e=new URLSearchParams;return ut(t)&&Object.entries(t).forEach((function(t){var r=o(t,2);e.set(r[0],r[1])})),e}var Se={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!$t.textTracks)yt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ze.setCaptionsMenu.call(this);else{if(gt(this.elements.captions)||(this.elements.captions=Ot("div",Ft(this.config.selectors.captions)),function(t,e){gt(t)&>(e)&&e.parentNode.insertBefore(t,e.nextSibling)}(this.elements.captions,this.elements.wrapper)),jt.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach((function(t){var e=t.getAttribute("src"),r=je(e);null!==r&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&me(e,"blob").then((function(e){t.setAttribute("src",window.URL.createObjectURL(e))})).catch((function(){At(t)}))}))}var e=te((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(t){return t.split("-")[0]}))),r=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===r&&(r=o(e,1)[0]);var i=this.storage.get("captions");ht(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:r,languages:e}),this.isHTML5&&Wt.call(this,this.media.textTracks,this.config.captions.update?"addtrack removetrack":"removetrack",Se.update.bind(this)),setTimeout(Se.update.bind(this),0)}},update:function(){var t=this,e=Se.getTracks.call(this,!0),r=this.captions,i=r.active,o=r.language,n=r.meta,a=r.currentTrackNode,s=Boolean(e.find((function(t){return t.language===o})));this.isHTML5&&this.isVideo&&e.filter((function(t){return!n.get(t)})).forEach((function(e){t.debug.log("Track added",e),n.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),Wt.call(t,e,"cuechange",(function(){return Se.updateCues.call(t)}))})),(s&&this.language!==o||!e.includes(a))&&(Se.setLanguage.call(this,o),Se.toggle.call(this,i&&s)),Nt(this.elements.container,this.config.classNames.captions.enabled,!kt(e)),yt(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ze.setCaptionsMenu.call(this)},toggle:function(t){var e=this,r=!(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=pt(t)?!i:t;if(n!==i){if(r||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!r){var a=Se.getTracks.call(this),s=Se.findTrack.call(this,[this.captions.language].concat(u(this.captions.languages)),!0);return this.captions.language=s.language,void Se.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),Nt(this.elements.container,o,n),this.captions.toggled=n,ze.updateSetting.call(this,"captions"),Gt.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout((function(){n&&e.captions.toggled&&e.captions.currentTrackNode&&(e.captions.currentTrackNode.mode="hidden")}))}},set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Se.getTracks.call(this);if(-1!==t)if(ct(t))if(t in r){if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=r[t],o=i||{},n=o.language;this.captions.currentTrackNode=i,ze.updateSetting.call(this,"captions"),e||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),Gt.call(this,this.media,"languagechange")}Se.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&Se.updateCues.call(this)}else this.debug.warn("Track not found",t);else this.debug.warn("Invalid caption argument",t);else Se.toggle.call(this,!1,e)},setLanguage:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(dt(t)){var r=t.toLowerCase();this.captions.language=r;var i=Se.getTracks.call(this),o=Se.findTrack.call(this,[r]);Se.set.call(this,i.indexOf(o),e)}else this.debug.warn("Invalid language argument",t)},getTracks:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(r){return!t.isHTML5||e||t.captions.meta.has(r)})).filter((function(t){return["captions","subtitles"].includes(t.kind)}))},findTrack:function(t){var e,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Se.getTracks.call(this),n=function(t){return Number((r.captions.meta.get(t)||{}).default)},a=Array.from(o).sort((function(t,e){return n(e)-n(t)}));return t.every((function(t){return!(e=a.find((function(e){return e.language===t})))})),e||(i?a[0]:void 0)},getCurrentTrack:function(){return Se.getTracks.call(this)[this.currentTrack]},getLabel:function(t){var e=t;return!_t(e)&&$t.textTracks&&this.captions.toggled&&(e=Se.getCurrentTrack.call(this)),_t(e)?kt(e.label)?kt(e.language)?ge("enabled",this.config):t.language.toUpperCase():e.label:ge("disabled",this.config)},updateCues:function(t){if(this.supported.ui)if(gt(this.elements.captions))if(pt(t)||Array.isArray(t)){var e=t;if(!e){var r=Se.getCurrentTrack.call(this);e=Array.from((r||{}).activeCues||[]).map((function(t){return t.getCueAsHTML()})).map(ye)}var i=e.map((function(t){return t.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){Mt(this.elements.captions);var o=Ot("span",Ft(this.config.selectors.caption));o.innerHTML=i,this.elements.captions.appendChild(o),Gt.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",t);else this.debug.warn("No captions element to render to")}},Pe={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.8/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"}},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}},Ce={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Oe=function(){},Ie=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,t),this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}return s(t,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Oe}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Oe}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Oe}}]),t}(),Ae=function(){function t(e){var r=this;p(this,t),A(this,"onChange",(function(){if(r.enabled){var t=r.player.elements.buttons.fullscreen;gt(t)&&(t.pressed=r.active),Gt.call(r.player,r.target===r.player.media?r.target:r.player.elements.container,r.active?"enterfullscreen":"exitfullscreen",!0)}})),A(this,"toggleFallback",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t?r.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(r.scrollPosition.x,r.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Nt(r.target,r.player.config.classNames.fullscreen.fallback,t),jt.isIos){var e=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";e||(e=document.createElement("meta")).setAttribute("name","viewport");var o=dt(e.content)&&e.content.includes(i);t?(r.cleanupViewport=!o,o||(e.content+=",".concat(i))):r.cleanupViewport&&(e.content=e.content.split(",").filter((function(t){return t.trim()!==i})).join(","))}r.onChange()})),A(this,"trapFocus",(function(t){if(!jt.isIos&&r.active&&"Tab"===t.key&&9===t.keyCode){var e=document.activeElement,i=Bt.call(r.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),n=o(i,1)[0],a=i[i.length-1];e!==a||t.shiftKey?e===n&&t.shiftKey&&(a.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}})),A(this,"update",(function(){r.player.debug.log(r.enabled?"".concat(r.forceFallback?"Fallback (forced)":t.native?"Native":"Fallback"," fullscreen enabled"):"Fullscreen not supported and fallback disabled"),Nt(r.player.elements.container,r.player.config.classNames.fullscreen.enabled,r.enabled)})),A(this,"enter",(function(){r.enabled&&(jt.isIos&&r.player.config.fullscreen.iosNative?r.player.isVimeo?r.player.embed.requestFullscreen():r.target.webkitEnterFullscreen():!t.native||r.forceFallback?r.toggleFallback(!0):r.prefix?kt(r.prefix)||r.target["".concat(r.prefix,"Request").concat(r.property)]():r.target.requestFullscreen({navigationUI:"hide"}))})),A(this,"exit",(function(){if(r.enabled)if(jt.isIos&&r.player.config.fullscreen.iosNative)r.target.webkitExitFullscreen(),Zt(r.player.play());else if(!t.native||r.forceFallback)r.toggleFallback(!1);else if(r.prefix){if(!kt(r.prefix)){var e="moz"===r.prefix?"Cancel":"Exit";document["".concat(r.prefix).concat(e).concat(r.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),A(this,"toggle",(function(){r.active?r.exit():r.enter()})),this.player=e,this.prefix=t.prefix,this.property=t.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===e.config.fullscreen.fallback,this.player.elements.fullscreen=e.config.fullscreen.container&&function(t,e){return(Element.prototype.closest||function(){var t=this;do{if(Dt.matches(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}).call(t,e)}(this.player.elements.container,e.config.fullscreen.container),Wt.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){r.onChange()})),Wt.call(this.player,this.player.elements.container,"dblclick",(function(t){gt(r.player.elements.controls)&&r.player.elements.controls.contains(t.target)||r.player.listeners.proxy(t,r.toggle,"fullscreen")})),Wt.call(this,this.player.elements.container,"keydown",(function(t){return r.trapFocus(t)})),this.update()}return s(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 Rt(this.target,this.player.config.classNames.fullscreen.fallback);var e=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}},{key:"target",get:function(){return jt.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(vt(document.exitFullscreen))return"";var t="";return["webkit","moz","ms"].some((function(e){return!(!vt(document["".concat(e,"ExitFullscreen")])&&!vt(document["".concat(e,"CancelFullScreen")])||(t=e,0))})),t}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),t}();function Me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(r,i){var o=new Image,n=function(){delete o.onload,delete o.onerror,(o.naturalWidth>=e?r:i)(o)};Object.assign(o,{onload:n,onerror:n,src:t})}))}var Ee={addStyleHook:function(){Nt(this.elements.container,this.config.selectors.container.replace(".",""),!0),Nt(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 Ee.toggleNativeControls.call(this,!0);gt(this.elements.controls)||(ze.inject.call(this),this.listeners.controls()),Ee.toggleNativeControls.call(this),this.isHTML5&&Se.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,ze.updateVolume.call(this),ze.timeUpdate.call(this),Ee.checkPlaying.call(this),Nt(this.elements.container,this.config.classNames.pip.supported,$t.pip&&this.isHTML5&&this.isVideo),Nt(this.elements.container,this.config.classNames.airplay.supported,$t.airplay&&this.isHTML5),Nt(this.elements.container,this.config.classNames.isIos,jt.isIos),Nt(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Gt.call(t,t.media,"ready")}),0),Ee.setTitle.call(this),this.poster&&Ee.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&ze.durationUpdate.call(this)},setTitle:function(){var t=ge("play",this.config);if(dt(this.config.title)&&!kt(this.config.title)&&(t+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(e){e.setAttribute("aria-label",t)})),this.isEmbed){var e=qt.call(this,"iframe");if(!gt(e))return;var r=kt(this.config.title)?"video":this.config.title,i=ge("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",r))}},togglePoster:function(t){Nt(this.elements.container,this.config.classNames.posterEnabled,t)},setPoster:function(t){var e=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",t),this.elements.poster.removeAttribute("hidden"),Xt.call(this).then((function(){return Me(t)})).catch((function(r){throw t===e.poster&&Ee.togglePoster.call(e,!1),r})).then((function(){if(t!==e.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(e.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""}),Ee.togglePoster.call(e,!0),t})))},checkPlaying:function(t){var e=this;Nt(this.elements.container,this.config.classNames.playing,this.playing),Nt(this.elements.container,this.config.classNames.paused,this.paused),Nt(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(t){Object.assign(t,{pressed:e.playing}),t.setAttribute("aria-label",ge(e.playing?"pause":"play",e.config))})),bt(t)&&"timeupdate"===t.type||Ee.toggleControls.call(this)},checkLoading:function(t){var e=this;this.loading=["stalled","waiting"].includes(t.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Nt(e.elements.container,e.config.classNames.loading,e.loading),Ee.toggleControls.call(e)}),this.loading?250:0)},toggleControls:function(t){var e=this.elements.controls;if(e&&this.config.hideControls){var r=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||e.pressed||e.hover||r))}},migrateStyles:function(){var t=this;Object.values(n({},this.media.style)).filter((function(t){return!kt(t)&&dt(t)&&t.startsWith("--plyr")})).forEach((function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e)),t.media.style.removeProperty(e)})),kt(this.media.style)&&this.media.removeAttribute("style")}},Fe=function(){function t(e){var r=this;p(this,t),A(this,"firstTouch",(function(){var t=r.player,e=t.elements;t.touch=!0,Nt(e.container,t.config.classNames.isTouch,!0)})),A(this,"setTabFocus",(function(t){var e=r.player,i=e.elements;clearTimeout(r.focusTimer),("keydown"!==t.type||9===t.which)&&("keydown"===t.type&&(r.lastKeyDown=t.timeStamp),("focus"!==t.type||t.timeStamp-r.lastKeyDown<=20)&&(function(){var t=e.config.classNames.tabFocus;Nt(Bt.call(e,".".concat(t)),t,!1)}(),"focusout"!==t.type&&(r.focusTimer=setTimeout((function(){var t=document.activeElement;i.container.contains(t)&&Nt(document.activeElement,e.config.classNames.tabFocus,!0)}),10))))})),A(this,"global",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=r.player;e.config.keyboard.global&&Qt.call(e,window,"keydown keyup",r.handleKey,t,!1),Qt.call(e,document.body,"click",r.toggleMenu,t),Jt.call(e,document.body,"touchstart",r.firstTouch),Qt.call(e,document.body,"keydown focus blur focusout",r.setTabFocus,t,!1,!0)})),A(this,"container",(function(){var t=r.player,e=t.config,i=t.elements,n=t.timers;!e.keyboard.global&&e.keyboard.focused&&Wt.call(t,i.container,"keydown keyup",r.handleKey,!1),Wt.call(t,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(e){var r=i.controls;r&&"enterfullscreen"===e.type&&(r.pressed=!1,r.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(e.type)&&(Ee.toggleControls.call(t,!0),o=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout((function(){return Ee.toggleControls.call(t,!1)}),o)}));var a=function(){if(t.isVimeo&&!t.config.vimeo.premium){var e=i.wrapper,r=t.fullscreen.active,n=ae.call(t),a=o(n,2),s=a[0],l=a[1],p=re("aspect-ratio: ".concat(s," / ").concat(l));if(r){var u=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=o(u,2),d=c[1],h=c[0]/d>s/l;p?(e.style.width=h?"auto":"100%",e.style.height=h?"100%":"auto"):(e.style.maxWidth=h?d/l*s+"px":null,e.style.margin=h?"0 auto":null)}else p?(e.style.width=null,e.style.height=null):(e.style.maxWidth=null,e.style.margin=null)}},s=function(){clearTimeout(n.resized),n.resized=setTimeout(a,50)};Wt.call(t,i.container,"enterfullscreen exitfullscreen",(function(e){t.fullscreen.target===i.container&&(!t.isEmbed&&kt(t.config.ratio)||(a(),("enterfullscreen"===e.type?Wt:Yt).call(t,window,"resize",s)))}))})),A(this,"media",(function(){var t=r.player,e=t.elements;if(Wt.call(t,t.media,"timeupdate seeking seeked",(function(e){return ze.timeUpdate.call(t,e)})),Wt.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return ze.durationUpdate.call(t,e)})),Wt.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),Wt.call(t,t.media,"progress playing seeking seeked",(function(e){return ze.updateProgress.call(t,e)})),Wt.call(t,t.media,"volumechange",(function(e){return ze.updateVolume.call(t,e)})),Wt.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return Ee.checkPlaying.call(t,e)})),Wt.call(t,t.media,"waiting canplay seeked playing",(function(e){return Ee.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var i=qt.call(t,".".concat(t.config.classNames.video));if(!gt(i))return;Wt.call(t,e.container,"click",(function(o){([e.container,i].includes(o.target)||i.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(r.proxy(o,t.restart,"restart"),r.proxy(o,(function(){Zt(t.play())}),"play")):r.proxy(o,(function(){Zt(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&Wt.call(t,e.wrapper,"contextmenu",(function(t){t.preventDefault()}),!1),Wt.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),Wt.call(t,t.media,"ratechange",(function(){ze.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),Wt.call(t,t.media,"qualitychange",(function(e){ze.updateSetting.call(t,"quality",null,e.detail.quality)})),Wt.call(t,t.media,"ready qualitychange",(function(){ze.setDownloadUrl.call(t)}));var o=t.config.events.concat(["keyup","keydown"]).join(" ");Wt.call(t,t.media,o,(function(r){var i=r.detail,o=void 0===i?{}:i;"error"===r.type&&(o=t.media.error),Gt.call(t,e.container,r.type,!0,o)}))})),A(this,"proxy",(function(t,e,i){var o=r.player,n=o.config.listeners[i],a=!0;vt(n)&&(a=n.call(o,t)),!1!==a&&vt(e)&&e.call(o,t)})),A(this,"bind",(function(t,e,i,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=r.player,s=a.config.listeners[o],l=vt(s);Wt.call(a,t,e,(function(t){return r.proxy(t,i,o)}),n&&!l)})),A(this,"controls",(function(){var t=r.player,e=t.elements,i=jt.isIE?"change":"input";if(e.buttons.play&&Array.from(e.buttons.play).forEach((function(e){r.bind(e,"click",(function(){Zt(t.togglePlay())}),"play")})),r.bind(e.buttons.restart,"click",t.restart,"restart"),r.bind(e.buttons.rewind,"click",(function(){t.lastSeekTime=Date.now(),t.rewind()}),"rewind"),r.bind(e.buttons.fastForward,"click",(function(){t.lastSeekTime=Date.now(),t.forward()}),"fastForward"),r.bind(e.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),r.bind(e.buttons.captions,"click",(function(){return t.toggleCaptions()})),r.bind(e.buttons.download,"click",(function(){Gt.call(t,t.media,"download")}),"download"),r.bind(e.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),r.bind(e.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),r.bind(e.buttons.airplay,"click",t.airplay,"airplay"),r.bind(e.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),ze.toggleMenu.call(t,e)}),null,!1),r.bind(e.buttons.settings,"keyup",(function(e){var r=e.which;[13,32].includes(r)&&(13!==r?(e.preventDefault(),e.stopPropagation(),ze.toggleMenu.call(t,e)):ze.focusFirstMenuItem.call(t,null,!0))}),null,!1),r.bind(e.settings.menu,"keydown",(function(e){27===e.which&&ze.toggleMenu.call(t,e)})),r.bind(e.inputs.seek,"mousedown mousemove",(function(t){var r=e.progress.getBoundingClientRect();t.currentTarget.setAttribute("seek-value",100/r.width*(t.pageX-r.left))})),r.bind(e.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var r=e.currentTarget,i=e.keyCode?e.keyCode:e.which,o="play-on-seeked";if(!mt(e)||39===i||37===i){t.lastSeekTime=Date.now();var n=r.hasAttribute(o),a=["mouseup","touchend","keyup"].includes(e.type);n&&a?(r.removeAttribute(o),Zt(t.play())):!a&&t.playing&&(r.setAttribute(o,""),t.pause())}})),jt.isIos){var n=Bt.call(t,'input[type="range"]');Array.from(n).forEach((function(t){return r.bind(t,i,(function(t){return zt(t.target)}))}))}r.bind(e.inputs.seek,i,(function(e){var r=e.currentTarget,i=r.getAttribute("seek-value");kt(i)&&(i=r.value),r.removeAttribute("seek-value"),t.currentTime=i/r.max*t.duration}),"seek"),r.bind(e.progress,"mouseenter mouseleave mousemove",(function(e){return ze.updateSeekTooltip.call(t,e)})),r.bind(e.progress,"mousemove touchmove",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.startMove(e)})),r.bind(e.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),r.bind(e.progress,"mousedown touchstart",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.startScrubbing(e)})),r.bind(e.progress,"mouseup touchend",(function(e){var r=t.previewThumbnails;r&&r.loaded&&r.endScrubbing(e)})),jt.isWebkit&&Array.from(Bt.call(t,'input[type="range"]')).forEach((function(e){r.bind(e,"input",(function(e){return ze.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!gt(e.display.duration)&&r.bind(e.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,ze.timeUpdate.call(t))})),r.bind(e.inputs.volume,i,(function(e){t.volume=e.target.value}),"volume"),r.bind(e.controls,"mouseenter mouseleave",(function(r){e.controls.hover=!t.touch&&"mouseenter"===r.type})),e.fullscreen&&Array.from(e.fullscreen.children).filter((function(t){return!t.contains(e.container)})).forEach((function(i){r.bind(i,"mouseenter mouseleave",(function(r){e.controls.hover=!t.touch&&"mouseenter"===r.type}))})),r.bind(e.controls,"mousedown mouseup touchstart touchend touchcancel",(function(t){e.controls.pressed=["mousedown","touchstart"].includes(t.type)})),r.bind(e.controls,"focusin",(function(){var i=t.config,o=t.timers;Nt(e.controls,i.classNames.noTransition,!0),Ee.toggleControls.call(t,!0),setTimeout((function(){Nt(e.controls,i.classNames.noTransition,!1)}),0);var n=r.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout((function(){return Ee.toggleControls.call(t,!1)}),n)})),r.bind(e.inputs.volume,"wheel",(function(e){var r=e.webkitDirectionInvertedFromDevice,i=[e.deltaX,-e.deltaY].map((function(t){return r?-t:t})),n=o(i,2),a=n[0],s=n[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)&&e.preventDefault()}),"volume",!1)})),this.player=e,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 s(t,[{key:"handleKey",value:function(t){var e=this.player,r=e.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)&&ct(i))if(o){var a=document.activeElement;if(gt(a)){if(a!==r.inputs.seek&&Dt(a,e.config.selectors.editable))return;if(32===t.which&&Dt(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||(e.currentTime=e.duration/10*(i-48));break;case 32:case 75:n||Zt(e.togglePlay());break;case 38:e.increaseVolume(.1);break;case 40:e.decreaseVolume(.1);break;case 77:n||(e.muted=!e.muted);break;case 39:e.forward();break;case 37:e.rewind();break;case 70:e.fullscreen.toggle();break;case 67:n||e.toggleCaptions();break;case 76:e.loop=!e.loop}27===i&&!e.fullscreen.usingNative&&e.fullscreen.active&&e.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(t){ze.toggleMenu.call(this.player,t)}}]),t}(),Le=function(t,e){return function(t){t.exports=function(){var t=function(){},e={},r={},i={};function o(t,e){if(t){var o=i[t];if(r[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function n(e,r){e.call&&(e={success:e}),r.length?(e.error||t)(r):(e.success||t)(e)}function a(e,r,i,o){var n,s,l=document,p=i.async,u=(i.numRetries||0)+1,c=i.before||t,d=e.replace(/[\?|#].*$/,""),h=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((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(d)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=e,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(e,r,i,o)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";r(e,l,t.defaultPrevented)},!1!==c(e,s)&&l.head.appendChild(s)}function s(t,e,r){var i,o,n=(t=t.push?t:[t]).length,s=n,l=[];for(i=function(t,r,i){if("e"==r&&l.push(t),"b"==r){if(!i)return;l.push(t)}--n||e(l)},o=0;o<s;o++)a(t[o],i,r)}function l(t,r,i){var a,l;if(r&&r.trim&&(a=r),l=(a?i:r)||{},a){if(a in e)throw"LoadJS";e[a]=!0}function p(e,r){s(t,(function(t){n(l,t),e&&n({success:e,error:r},t),o(a,t)}),l)}if(l.returnPromise)return new Promise(p);p()}return l.ready=function(t,e){return function(t,e){var o,n,a,s=[],l=(t=t.push?t:[t]).length,p=l;for(o=function(t,r){r.length&&s.push(t),--p||e(s)};l--;)(a=r[n=t[l]])?o(n,a):(i[n]=i[n]||[]).push(o)}(t,(function(t){n(e,t)})),l},l.done=function(t){o(t,[])},l.reset=function(){e={},r={},i={}},l.isDefined=function(t){return t in e},l}()}(e={exports:{}}),e.exports}();function Ne(t){return new Promise((function(e,r){Le(t,{success:e,error:r})}))}function Re(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Gt.call(this,this.media,t?"play":"pause"))}var De={setup:function(){var t=this;Nt(t.elements.wrapper,t.config.classNames.embed,!0),t.options.speed=t.config.speed.options,se.call(t),ut(window.Vimeo)?De.ready.call(t):Ne(t.config.urls.vimeo.sdk).then((function(){De.ready.call(t)})).catch((function(e){t.debug.warn("Vimeo SDK (player.js) failed to load",e)}))},ready:function(){var t=this,e=this,r=e.config.vimeo,i=r.premium,a=r.referrerPolicy,s=c(r,I);i&&Object.assign(s,{controls:!1,sidedock:!1});var l=Te(n({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},s)),p=e.media.getAttribute("src");kt(p)&&(p=e.media.getAttribute(e.config.attributes.embed.id));var u=function(t){return kt(t)?null:ct(Number(t))?t:t.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:t}(p),d=Ot("iframe"),h=ce(e.config.urls.vimeo.iframe,u,l);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),kt(a)||d.setAttribute("referrerPolicy",a),i||!r.customControls)d.setAttribute("data-poster",e.poster),e.media=Et(d,e.media);else{var v=Ot("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});v.appendChild(d),e.media=Et(v,e.media)}r.customControls||me(ce(e.config.urls.vimeo.api,h)).then((function(t){!kt(t)&&t.thumbnail_url&&Ee.setPoster.call(e,t.thumbnail_url).catch((function(){}))})),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=function(){return Re.call(e,!0),e.embed.play()},e.media.pause=function(){return Re.call(e,!1),e.embed.pause()},e.media.stop=function(){e.pause(),e.currentTime=0};var y=e.media.currentTime;Object.defineProperty(e.media,"currentTime",{get:function(){return y},set:function(t){var r=e.embed,i=e.media,o=e.volume,n=e.paused&&!r.hasPlayed;i.seeking=!0,Gt.call(e,i,"seeking"),Promise.resolve(n&&r.setVolume(0)).then((function(){return r.setCurrentTime(t)})).then((function(){return n&&r.pause()})).then((function(){return n&&r.setVolume(o)})).catch((function(){}))}});var f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:function(){return f},set:function(t){e.embed.setPlaybackRate(t).then((function(){f=t,Gt.call(e,e.media,"ratechange")})).catch((function(){e.options.speed=[1]}))}});var g=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return g},set:function(t){e.embed.setVolume(t).then((function(){g=t,Gt.call(e,e.media,"volumechange")}))}});var b=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return b},set:function(t){var r=!!ht(t)&&t;e.embed.setVolume(r?0:e.config.volume).then((function(){b=r,Gt.call(e,e.media,"volumechange")}))}});var m,_=e.config.loop;Object.defineProperty(e.media,"loop",{get:function(){return _},set:function(t){var r=ht(t)?t:e.config.loop.active;e.embed.setLoop(r).then((function(){_=r}))}}),e.embed.getVideoUrl().then((function(t){m=t,ze.setDownloadUrl.call(e)})).catch((function(e){t.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:function(){return m}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((function(r){var i=o(r,2);e.embed.ratio=le(i[0],i[1]),se.call(t)})),e.embed.setAutopause(e.config.autopause).then((function(t){e.config.autopause=t})),e.embed.getVideoTitle().then((function(r){e.config.title=r,Ee.setTitle.call(t)})),e.embed.getCurrentTime().then((function(t){y=t,Gt.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((function(t){e.media.duration=t,Gt.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((function(t){e.media.textTracks=t,Se.setup.call(e)})),e.embed.on("cuechange",(function(t){var r=t.cues,i=(void 0===r?[]:r).map((function(t){return function(t){var e=document.createDocumentFragment(),r=document.createElement("div");return e.appendChild(r),r.innerHTML=t,e.firstChild.innerText}(t.text)}));Se.updateCues.call(e,i)})),e.embed.on("loaded",(function(){e.embed.getPaused().then((function(t){Re.call(e,!t),t||Gt.call(e,e.media,"playing")})),gt(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(function(){Gt.call(e,e.media,"waiting")})),e.embed.on("bufferend",(function(){Gt.call(e,e.media,"playing")})),e.embed.on("play",(function(){Re.call(e,!0),Gt.call(e,e.media,"playing")})),e.embed.on("pause",(function(){Re.call(e,!1)})),e.embed.on("timeupdate",(function(t){e.media.seeking=!1,y=t.seconds,Gt.call(e,e.media,"timeupdate")})),e.embed.on("progress",(function(t){e.media.buffered=t.percent,Gt.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Gt.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((function(t){t!==e.media.duration&&(e.media.duration=t,Gt.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(function(){e.media.seeking=!1,Gt.call(e,e.media,"seeked")})),e.embed.on("ended",(function(){e.media.paused=!0,Gt.call(e,e.media,"ended")})),e.embed.on("error",(function(t){e.media.error=t,Gt.call(e,e.media,"error")})),r.customControls&&setTimeout((function(){return Ee.build.call(e)}),0)}};function Be(t){t&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===t&&(this.media.paused=!t,Gt.call(this,this.media,t?"play":"pause"))}function qe(t){return t.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var He,Ve,$e,Ue,Qe,We,Ye={setup:function(){var t=this;if(Nt(this.elements.wrapper,this.config.classNames.embed,!0),ut(window.YT)&&vt(window.YT.Player))Ye.ready.call(this);else{var e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){vt(e)&&e(),Ye.ready.call(t)},Ne(this.config.urls.youtube.sdk).catch((function(e){t.debug.warn("YouTube API failed to load",e)}))}},getTitle:function(t){var e=this;me(ce(this.config.urls.youtube.api,t)).then((function(t){if(ut(t)){var r=t.height,i=t.width;e.config.title=t.title,Ee.setTitle.call(e),e.embed.ratio=le(i,r)}se.call(e)})).catch((function(){se.call(e)}))},ready:function(){var t=this,e=t.config.youtube,r=t.media&&t.media.getAttribute("id");if(kt(r)||!r.startsWith("youtube-")){var i=t.media.getAttribute("src");kt(i)&&(i=t.media.getAttribute(this.config.attributes.embed.id));var o=function(t){return kt(t)?null:t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:t}(i),n=Ot("div",{id:ue(t.provider),"data-poster":e.customControls?t.poster:void 0});if(t.media=Et(n,t.media),e.customControls){var a=function(t){return"https://i.ytimg.com/vi/".concat(o,"/").concat(t,"default.jpg")};Me(a("maxres"),121).catch((function(){return Me(a("sd"),121)})).catch((function(){return Me(a("hq"))})).then((function(e){return Ee.setPoster.call(t,e.src)})).then((function(e){e.includes("maxres")||(t.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}t.embed=new window.YT.Player(t.media,{videoId:o,host:qe(e),playerVars:St({},{autoplay:t.config.autoplay?1:0,hl:t.config.hl,controls:t.supported.ui&&e.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},e),events:{onError:function(e){if(!t.media.error){var r=e.data;t.media.error={code:r,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."}[r]||"An unknown error occured"},Gt.call(t,t.media,"error")}},onPlaybackRateChange:function(e){t.media.playbackRate=e.target.getPlaybackRate(),Gt.call(t,t.media,"ratechange")},onReady:function(r){if(!vt(t.media.play)){var i=r.target;Ye.getTitle.call(t,o),t.media.play=function(){Be.call(t,!0),i.playVideo()},t.media.pause=function(){Be.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(e){t.paused&&!t.embed.hasPlayed&&t.embed.mute(),t.media.seeking=!0,Gt.call(t,t.media,"seeking"),i.seekTo(e)}}),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(e){i.setVolume(100*(n=e)),Gt.call(t,t.media,"volumechange")}});var a=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return a},set:function(e){var r=ht(e)?e:a;a=r,i[r?"mute":"unMute"](),i.setVolume(100*n),Gt.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(e){return t.config.speed.options.includes(e)})),t.supported.ui&&e.customControls&&t.media.setAttribute("tabindex",-1),Gt.call(t,t.media,"timeupdate"),Gt.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)&&Gt.call(t,t.media,"progress"),t.media.lastBuffered=t.media.buffered,1===t.media.buffered&&(clearInterval(t.timers.buffering),Gt.call(t,t.media,"canplaythrough"))}),200),e.customControls&&setTimeout((function(){return Ee.build.call(t)}),50)}},onStateChange:function(r){var i=r.target;switch(clearInterval(t.timers.playing),t.media.seeking&&[1,2].includes(r.data)&&(t.media.seeking=!1,Gt.call(t,t.media,"seeked")),r.data){case-1:Gt.call(t,t.media,"timeupdate"),t.media.buffered=i.getVideoLoadedFraction(),Gt.call(t,t.media,"progress");break;case 0:Be.call(t,!1),t.media.loop?(i.stopVideo(),i.playVideo()):Gt.call(t,t.media,"ended");break;case 1:e.customControls&&!t.config.autoplay&&t.media.paused&&!t.embed.hasPlayed?t.media.pause():(Be.call(t,!0),Gt.call(t,t.media,"playing"),t.timers.playing=setInterval((function(){Gt.call(t,t.media,"timeupdate")}),50),t.media.duration!==i.getDuration()&&(t.media.duration=i.getDuration(),Gt.call(t,t.media,"durationchange")));break;case 2:t.muted||t.embed.unMute(),Be.call(t,!1);break;case 3:Gt.call(t,t.media,"waiting")}Gt.call(t,t.elements.container,"statechange",!1,{code:r.data})}}})}}},Je={setup:function(){this.media?(Nt(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Nt(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Nt(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Ot("div",{class:this.config.classNames.video}),Pt(this.media,this.elements.wrapper),this.elements.poster=Ot("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?pe.setup.call(this):this.isYouTube?Ye.setup.call(this):this.isVimeo&&De.setup.call(this)):this.debug.warn("No media element found!")}},Ge=function(){function t(e){var r=this;p(this,t),A(this,"load",(function(){r.enabled&&(ut(window.google)&&ut(window.google.ima)?r.ready():Ne(r.player.config.urls.googleIMA.sdk).then((function(){r.ready()})).catch((function(){r.trigger("error",new Error("Google IMA SDK failed to load"))})))})),A(this,"ready",(function(){var t;r.enabled||((t=r).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),r.startSafetyTimer(12e3,"ready()"),r.managerPromise.then((function(){r.clearSafetyTimer("onAdsManagerLoaded()")})),r.listeners(),r.setupIMA()})),A(this,"setupIMA",(function(){r.elements.container=Ot("div",{class:r.player.config.classNames.ads}),r.player.elements.container.appendChild(r.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(r.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(r.player.config.playsinline),r.elements.displayContainer=new google.ima.AdDisplayContainer(r.elements.container,r.player.media),r.loader=new google.ima.AdsLoader(r.elements.displayContainer),r.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return r.onAdsManagerLoaded(t)}),!1),r.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return r.onAdError(t)}),!1),r.requestAds()})),A(this,"requestAds",(function(){var t=r.player.elements.container;try{var e=new google.ima.AdsRequest;e.adTagUrl=r.tagUrl,e.linearAdSlotWidth=t.offsetWidth,e.linearAdSlotHeight=t.offsetHeight,e.nonLinearAdSlotWidth=t.offsetWidth,e.nonLinearAdSlotHeight=t.offsetHeight,e.forceNonLinearFullSlot=!1,e.setAdWillPlayMuted(!r.player.muted),r.loader.requestAds(e)}catch(t){r.onAdError(t)}})),A(this,"pollCountdown",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(r.countdownTimer),void r.elements.container.removeAttribute("data-badge-text");r.countdownTimer=setInterval((function(){var t=xe(Math.max(r.manager.getRemainingTime(),0)),e="".concat(ge("advertisement",r.player.config)," - ").concat(t);r.elements.container.setAttribute("data-badge-text",e)}),100)})),A(this,"onAdsManagerLoaded",(function(t){if(r.enabled){var e=new google.ima.AdsRenderingSettings;e.restoreCustomPlaybackStateOnAdBreakComplete=!0,e.enablePreloading=!0,r.manager=t.getAdsManager(r.player,e),r.cuePoints=r.manager.getCuePoints(),r.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return r.onAdError(t)})),Object.keys(google.ima.AdEvent.Type).forEach((function(t){r.manager.addEventListener(google.ima.AdEvent.Type[t],(function(t){return r.onAdEvent(t)}))})),r.trigger("loaded")}})),A(this,"addCuePoints",(function(){kt(r.cuePoints)||r.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<r.player.duration){var e=r.player.elements.progress;if(gt(e)){var i=100/r.player.duration*t,o=Ot("span",{class:r.player.config.classNames.cues});o.style.left="".concat(i.toString(),"%"),e.appendChild(o)}}}))})),A(this,"onAdEvent",(function(t){var e=r.player.elements.container,i=t.getAd(),o=t.getAdData();switch(function(t){Gt.call(r.player,r.player.media,"ads".concat(t.replace(/_/g,"").toLowerCase()))}(t.type),t.type){case google.ima.AdEvent.Type.LOADED:r.trigger("loaded"),r.pollCountdown(!0),i.isLinear()||(i.width=e.offsetWidth,i.height=e.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:r.manager.setVolume(r.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:r.player.ended?r.loadAds():r.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:r.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:r.pollCountdown(),r.resumeContent();break;case google.ima.AdEvent.Type.LOG:o.adError&&r.player.debug.warn("Non-fatal ad error: ".concat(o.adError.getMessage()))}})),A(this,"onAdError",(function(t){r.cancel(),r.player.debug.warn("Ads error",t)})),A(this,"listeners",(function(){var t,e=r.player.elements.container;r.player.on("canplay",(function(){r.addCuePoints()})),r.player.on("ended",(function(){r.loader.contentComplete()})),r.player.on("timeupdate",(function(){t=r.player.currentTime})),r.player.on("seeked",(function(){var e=r.player.currentTime;kt(r.cuePoints)||r.cuePoints.forEach((function(i,o){t<i&&i<e&&(r.manager.discardAdBreak(),r.cuePoints.splice(o,1))}))})),window.addEventListener("resize",(function(){r.manager&&r.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),A(this,"play",(function(){var t=r.player.elements.container;r.managerPromise||r.resumeContent(),r.managerPromise.then((function(){r.manager.setVolume(r.player.volume),r.elements.displayContainer.initialize();try{r.initialized||(r.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),r.manager.start()),r.initialized=!0}catch(t){r.onAdError(t)}})).catch((function(){}))})),A(this,"resumeContent",(function(){r.elements.container.style.zIndex="",r.playing=!1,Zt(r.player.media.play())})),A(this,"pauseContent",(function(){r.elements.container.style.zIndex=3,r.playing=!0,r.player.media.pause()})),A(this,"cancel",(function(){r.initialized&&r.resumeContent(),r.trigger("error"),r.loadAds()})),A(this,"loadAds",(function(){r.managerPromise.then((function(){r.manager&&r.manager.destroy(),r.managerPromise=new Promise((function(t){r.on("loaded",t),r.player.debug.log(r.manager)})),r.initialized=!1,r.requestAds()})).catch((function(){}))})),A(this,"trigger",(function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];var n=r.events[t];yt(n)&&n.forEach((function(t){vt(t)&&t.apply(r,i)}))})),A(this,"on",(function(t,e){return yt(r.events[t])||(r.events[t]=[]),r.events[t].push(e),r})),A(this,"startSafetyTimer",(function(t,e){r.player.debug.log("Safety timer invoked from: ".concat(e)),r.safetyTimer=setTimeout((function(){r.cancel(),r.clearSafetyTimer("startSafetyTimer()")}),t)})),A(this,"clearSafetyTimer",(function(t){pt(r.safetyTimer)||(r.player.debug.log("Safety timer cleared from: ".concat(t)),clearTimeout(r.safetyTimer),r.safetyTimer=null)})),this.player=e,this.config=e.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,e){r.on("loaded",t),r.on("error",e)})),this.load()}return s(t,[{key:"enabled",get:function(){var t=this.config;return this.player.isHTML5&&this.player.isVideo&&t.enabled&&(!kt(t.publisherId)||wt(t.tagUrl))}},{key:"tagUrl",get:function(){var t=this.config;return wt(t.tagUrl)?t.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(Te({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}(),Ke=function(t){var e=[];return t.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(t){var r={};t.split(/\r\n|\n|\r/).forEach((function(t){if(ct(r.startTime)){if(!kt(t.trim())&&kt(r.text)){var e,i,n,a=t.trim().split("#xywh=");e=o(a,1),r.text=e[0],a[1]&&(i=a[1].split(","),n=o(i,4),r.x=n[0],r.y=n[1],r.w=n[2],r.h=n[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&&(r.startTime=60*Number(s[1]||0)*60+60*Number(s[2])+Number(s[3])+Number("0.".concat(s[4])),r.endTime=60*Number(s[6]||0)*60+60*Number(s[7])+Number(s[8])+Number("0.".concat(s[9])))}})),r.text&&e.push(r)})),e},Xe=function(t,e){var r={};return t>e.width/e.height?(r.width=e.width,r.height=1/t*e.width):(r.height=e.height,r.width=t*e.height),r},Ze=function(){function t(e){var r=this;p(this,t),A(this,"load",(function(){r.player.elements.display.seekTooltip&&(r.player.elements.display.seekTooltip.hidden=r.enabled),r.enabled&&r.getThumbnails().then((function(){r.enabled&&(r.render(),r.determineContainerAutoSizing(),r.loaded=!0)}))})),A(this,"getThumbnails",(function(){return new Promise((function(t){var e=r.player.config.previewThumbnails.src;if(kt(e))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){r.thumbnails.sort((function(t,e){return t.height-e.height})),r.player.debug.log("Preview thumbnails",r.thumbnails),t()};if(vt(e))e((function(t){r.thumbnails=t,i()}));else{var o=(dt(e)?[e]:e).map((function(t){return r.getThumbnail(t)}));Promise.all(o).then(i)}}))})),A(this,"getThumbnail",(function(t){return new Promise((function(e){me(t).then((function(i){var o={frames:Ke(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,r.thumbnails.push(o),e()},n.src=o.urlPrefix+o.frames[0].text}))}))})),A(this,"startMove",(function(t){if(r.loaded&&bt(t)&&["touchmove","mousemove"].includes(t.type)&&r.player.media.duration){if("touchmove"===t.type)r.seekTime=r.player.media.duration*(r.player.elements.inputs.seek.value/100);else{var e=r.player.elements.progress.getBoundingClientRect();r.seekTime=r.player.media.duration*(100/e.width*(t.pageX-e.left)/100),r.seekTime<0&&(r.seekTime=0),r.seekTime>r.player.media.duration-1&&(r.seekTime=r.player.media.duration-1),r.mousePosX=t.pageX,r.elements.thumb.time.innerText=xe(r.seekTime)}r.showImageAtCurrentTime()}})),A(this,"endMove",(function(){r.toggleThumbContainer(!1,!0)})),A(this,"startScrubbing",(function(t){(pt(t.button)||!1===t.button||0===t.button)&&(r.mouseDown=!0,r.player.media.duration&&(r.toggleScrubbingContainer(!0),r.toggleThumbContainer(!1,!0),r.showImageAtCurrentTime()))})),A(this,"endScrubbing",(function(){r.mouseDown=!1,Math.ceil(r.lastTime)===Math.ceil(r.player.media.currentTime)?r.toggleScrubbingContainer(!1):Jt.call(r.player,r.player.media,"timeupdate",(function(){r.mouseDown||r.toggleScrubbingContainer(!1)}))})),A(this,"listeners",(function(){r.player.on("play",(function(){r.toggleThumbContainer(!1,!0)})),r.player.on("seeked",(function(){r.toggleThumbContainer(!1)})),r.player.on("timeupdate",(function(){r.lastTime=r.player.media.currentTime}))})),A(this,"render",(function(){r.elements.thumb.container=Ot("div",{class:r.player.config.classNames.previewThumbnails.thumbContainer}),r.elements.thumb.imageContainer=Ot("div",{class:r.player.config.classNames.previewThumbnails.imageContainer}),r.elements.thumb.container.appendChild(r.elements.thumb.imageContainer);var t=Ot("div",{class:r.player.config.classNames.previewThumbnails.timeContainer});r.elements.thumb.time=Ot("span",{},"00:00"),t.appendChild(r.elements.thumb.time),r.elements.thumb.container.appendChild(t),gt(r.player.elements.progress)&&r.player.elements.progress.appendChild(r.elements.thumb.container),r.elements.scrubbing.container=Ot("div",{class:r.player.config.classNames.previewThumbnails.scrubbingContainer}),r.player.elements.wrapper.appendChild(r.elements.scrubbing.container)})),A(this,"destroy",(function(){r.elements.thumb.container&&r.elements.thumb.container.remove(),r.elements.scrubbing.container&&r.elements.scrubbing.container.remove()})),A(this,"showImageAtCurrentTime",(function(){r.mouseDown?r.setScrubbingContainerSize():r.setThumbContainerSizeAndPos();var t=r.thumbnails[0].frames.findIndex((function(t){return r.seekTime>=t.startTime&&r.seekTime<=t.endTime})),e=t>=0,i=0;r.mouseDown||r.toggleThumbContainer(e),e&&(r.thumbnails.forEach((function(e,o){r.loadedImages.includes(e.frames[t].text)&&(i=o)})),t!==r.showingThumb&&(r.showingThumb=t,r.loadImage(i)))})),A(this,"loadImage",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=r.showingThumb,i=r.thumbnails[t],o=i.urlPrefix,n=i.frames[e],a=i.frames[e].text,s=o+a;if(r.currentImageElement&&r.currentImageElement.dataset.filename===a)r.showImage(r.currentImageElement,n,t,e,a,!1),r.currentImageElement.dataset.index=e,r.removeOldImages(r.currentImageElement);else{r.loadingImage&&r.usingSprites&&(r.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=e,l.dataset.filename=a,r.showingThumbFilename=a,r.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return r.showImage(l,n,t,e,a,!0)},r.loadingImage=l,r.removeOldImages(l)}})),A(this,"showImage",(function(t,e,i,o,n){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];r.player.debug.log("Showing thumb: ".concat(n,". num: ").concat(o,". qual: ").concat(i,". newimg: ").concat(a)),r.setImageSizeAndOffset(t,e),a&&(r.currentImageContainer.appendChild(t),r.currentImageElement=t,r.loadedImages.includes(n)||r.loadedImages.push(n)),r.preloadNearby(o,!0).then(r.preloadNearby(o,!1)).then(r.getHigherQuality(i,t,e,n))})),A(this,"removeOldImages",(function(t){Array.from(r.currentImageContainer.children).forEach((function(e){if("img"===e.tagName.toLowerCase()){var i=r.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=!0;var o=r.currentImageContainer;setTimeout((function(){o.removeChild(e),r.player.debug.log("Removing thumb: ".concat(e.dataset.filename))}),i)}}}))})),A(this,"preloadNearby",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var o=r.thumbnails[0].frames[t].text;if(r.showingThumbFilename===o){var n;n=e?r.thumbnails[0].frames.slice(t):r.thumbnails[0].frames.slice(0,t).reverse();var a=!1;n.forEach((function(t){var e=t.text;if(e!==o&&!r.loadedImages.includes(e)){a=!0,r.player.debug.log("Preloading thumb filename: ".concat(e));var n=r.thumbnails[0].urlPrefix+e,s=new Image;s.src=n,s.onload=function(){r.player.debug.log("Preloaded thumb filename: ".concat(e)),r.loadedImages.includes(e)||r.loadedImages.push(e),i()}}})),a||i()}}),300)}))})),A(this,"getHigherQuality",(function(t,e,i,o){if(t<r.thumbnails.length-1){var n=e.naturalHeight;r.usingSprites&&(n=i.h),n<r.thumbContainerHeight&&setTimeout((function(){r.showingThumbFilename===o&&(r.player.debug.log("Showing higher quality thumb for: ".concat(o)),r.loadImage(t+1))}),300)}})),A(this,"toggleThumbContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r.player.config.classNames.previewThumbnails.thumbContainerShown;r.elements.thumb.container.classList.toggle(i,t),!t&&e&&(r.showingThumb=null,r.showingThumbFilename=null)})),A(this,"toggleScrubbingContainer",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r.player.config.classNames.previewThumbnails.scrubbingContainerShown;r.elements.scrubbing.container.classList.toggle(e,t),t||(r.showingThumb=null,r.showingThumbFilename=null)})),A(this,"determineContainerAutoSizing",(function(){(r.elements.thumb.imageContainer.clientHeight>20||r.elements.thumb.imageContainer.clientWidth>20)&&(r.sizeSpecifiedInCSS=!0)})),A(this,"setThumbContainerSizeAndPos",(function(){if(r.sizeSpecifiedInCSS){if(r.elements.thumb.imageContainer.clientHeight>20&&r.elements.thumb.imageContainer.clientWidth<20){var t=Math.floor(r.elements.thumb.imageContainer.clientHeight*r.thumbAspectRatio);r.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(r.elements.thumb.imageContainer.clientHeight<20&&r.elements.thumb.imageContainer.clientWidth>20){var e=Math.floor(r.elements.thumb.imageContainer.clientWidth/r.thumbAspectRatio);r.elements.thumb.imageContainer.style.height="".concat(e,"px")}}else{var i=Math.floor(r.thumbContainerHeight*r.thumbAspectRatio);r.elements.thumb.imageContainer.style.height="".concat(r.thumbContainerHeight,"px"),r.elements.thumb.imageContainer.style.width="".concat(i,"px")}r.setThumbContainerPos()})),A(this,"setThumbContainerPos",(function(){var t=r.player.elements.progress.getBoundingClientRect(),e=r.player.elements.container.getBoundingClientRect(),i=r.elements.thumb.container,o=e.left-t.left+10,n=e.right-t.left-i.clientWidth-10,a=r.mousePosX-t.left-i.clientWidth/2;a<o&&(a=o),a>n&&(a=n),i.style.left="".concat(a,"px")})),A(this,"setScrubbingContainerSize",(function(){var t=Xe(r.thumbAspectRatio,{width:r.player.media.clientWidth,height:r.player.media.clientHeight}),e=t.height;r.elements.scrubbing.container.style.width="".concat(t.width,"px"),r.elements.scrubbing.container.style.height="".concat(e,"px")})),A(this,"setImageSizeAndOffset",(function(t,e){if(r.usingSprites){var i=r.thumbContainerHeight/e.h;t.style.height=t.naturalHeight*i+"px",t.style.width=t.naturalWidth*i+"px",t.style.left="-".concat(e.x*i,"px"),t.style.top="-".concat(e.y*i,"px")}})),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return s(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?Xe(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}(),tr={insertElements:function(t,e){var r=this;dt(e)?It(t,this.media,{src:e}):yt(e)&&e.forEach((function(e){It(t,r.media,e)}))},change:function(t){var e=this;Tt(t,"sources.length")?(pe.cancelRequests.call(this),this.destroy.call(this,(function(){e.options.quality=[],At(e.media),e.media=null,gt(e.elements.container)&&e.elements.container.removeAttribute("class");var r=t.sources,i=t.type,n=o(r,1)[0],a=n.provider,s=void 0===a?Ce.html5:a,l="html5"===s?i:"div",p="html5"===s?{}:{src:n.src};Object.assign(e,{provider:s,type:i,supported:$t.check(i,s,e.config.playsinline),media:Ot(l,p)}),e.elements.container.appendChild(e.media),ht(t.autoplay)&&(e.config.autoplay=t.autoplay),e.isHTML5&&(e.config.crossorigin&&e.media.setAttribute("crossorigin",""),e.config.autoplay&&e.media.setAttribute("autoplay",""),kt(t.poster)||(e.poster=t.poster),e.config.loop.active&&e.media.setAttribute("loop",""),e.config.muted&&e.media.setAttribute("muted",""),e.config.playsinline&&e.media.setAttribute("playsinline","")),Ee.addStyleHook.call(e),e.isHTML5&&tr.insertElements.call(e,"source",r),e.config.title=t.title,Je.setup.call(e),e.isHTML5&&Object.keys(t).includes("tracks")&&tr.insertElements.call(e,"track",t.tracks),(e.isHTML5||e.isEmbed&&!e.supported.ui)&&Ee.build.call(e),e.isHTML5&&e.media.load(),kt(t.previewThumbnails)||(Object.assign(e.config.previewThumbnails,t.previewThumbnails),e.previewThumbnails&&e.previewThumbnails.loaded&&(e.previewThumbnails.destroy(),e.previewThumbnails=null),e.config.previewThumbnails.enabled&&(e.previewThumbnails=new Ze(e))),e.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},er=function(){function t(e,r){var i=this;if(p(this,t),A(this,"play",(function(){return vt(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return Zt(i.media.play())})),i.media.play()):null})),A(this,"pause",(function(){return i.playing&&vt(i.media.pause)?i.media.pause():null})),A(this,"togglePlay",(function(t){return(ht(t)?t:!i.playing)?i.play():i.pause()})),A(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):vt(i.media.stop)&&i.media.stop()})),A(this,"restart",(function(){i.currentTime=0})),A(this,"rewind",(function(t){i.currentTime-=ct(t)?t:i.config.seekTime})),A(this,"forward",(function(t){i.currentTime+=ct(t)?t:i.config.seekTime})),A(this,"increaseVolume",(function(t){i.volume=(i.media.muted?0:i.volume)+(ct(t)?t:0)})),A(this,"decreaseVolume",(function(t){i.increaseVolume(-t)})),A(this,"airplay",(function(){$t.airplay&&i.media.webkitShowPlaybackTargetPicker()})),A(this,"toggleControls",(function(t){if(i.supported.ui&&!i.isAudio){var e=Rt(i.elements.container,i.config.classNames.hideControls),r=Nt(i.elements.container,i.config.classNames.hideControls,void 0===t?void 0:!t);return r&&yt(i.config.controls)&&i.config.controls.includes("settings")&&!kt(i.config.settings)&&ze.toggleMenu.call(i,!1),r!==e&&Gt.call(i,i.media,r?"controlshidden":"controlsshown"),!r}return!1})),A(this,"on",(function(t,e){Wt.call(i,i.elements.container,t,e)})),A(this,"once",(function(t,e){Jt.call(i,i.elements.container,t,e)})),A(this,"off",(function(t,e){Yt(i.elements.container,t,e)})),A(this,"destroy",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var r=function(){document.body.style.overflow="",i.embed=null,e?(Object.keys(i.elements).length&&(At(i.elements.buttons.play),At(i.elements.captions),At(i.elements.controls),At(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),vt(t)&&t()):(Kt.call(i),pe.cancelRequests.call(i),Et(i.elements.original,i.elements.container),Gt.call(i,i.elements.original,"destroyed",!0),vt(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?(Ee.toggleNativeControls.call(i,!0),r()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&vt(i.embed.destroy)&&i.embed.destroy(),r()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(r),setTimeout(r,200))}})),A(this,"supports",(function(t){return $t.mime.call(i,t)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=$t.touch,this.media=e,dt(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||ft(this.media)||yt(this.media))&&(this.media=this.media[0]),this.config=St({},Pe,t.defaults,r||{},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 Ie(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",$t),!pt(this.media)&>(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if($t.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"),gt(a)){if(s=je(a.getAttribute("src")),this.provider=function(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(t)?Ce.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(t)?Ce.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(kt(this.provider)||!Object.values(Ce).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=Ce.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=$t.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Fe(this),this.storage=new be(this),this.media.plyr=this,gt(this.elements.container)||(this.elements.container=Ot("div",{tabindex:0}),Pt(this.media,this.elements.container)),Ee.migrateStyles.call(this),Ee.addStyleHook.call(this),Je.setup.call(this),this.config.debug&&Wt.call(this,this.elements.container,this.config.events.join(" "),(function(t){i.debug.log("event: ".concat(t.type))})),this.fullscreen=new Ae(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Ee.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ge(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Zt(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ze(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 s(t,[{key:"isHTML5",get:function(){return this.provider===Ce.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Ce.youtube}},{key:"isVimeo",get:function(){return this.provider===Ce.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 e=ct(t)&&t>0;this.media.currentTime=e?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 ct(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),e=(this.media||{}).duration,r=ct(e)&&e!==1/0?e:0;return t||r}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(t){var e=t;dt(e)&&(e=Number(e)),ct(e)||(e=this.storage.get("volume")),ct(e)||(e=this.config.volume),e>1&&(e=1),e<0&&(e=0),this.config.volume=e,this.media.volume=e,!kt(t)&&this.muted&&e>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(t){var e=t;ht(e)||(e=this.storage.get("muted")),ht(e)||(e=this.config.muted),this.config.muted=e,this.media.muted=e}},{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 e=this,r=null;ct(t)&&(r=t),ct(r)||(r=this.storage.get("speed")),ct(r)||(r=this.config.speed.selected),r=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)}(r,this.minimumSpeed,this.maximumSpeed),this.config.speed.selected=r,setTimeout((function(){e.media.playbackRate=r}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,u(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,u(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(t){var e=this.config.quality,r=this.options.quality;if(r.length){var i=[!kt(t)&&Number(t),this.storage.get("quality"),e.selected,e.default].find(ct),o=!0;if(!r.includes(i)){var n=ee(r,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(n," instead")),i=n,o=!1}e.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 e=ht(t)?t:this.config.loop.active;this.config.loop.active=e,this.media.loop=e}},{key:"source",get:function(){return this.media.currentSrc},set:function(t){tr.change.call(this,t)}},{key:"download",get:function(){var t=this.config.urls.download;return wt(t)?t:this.source},set:function(t){wt(t)&&(this.config.urls.download=t,ze.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?Ee.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=ne(ae.call(this));return yt(t)?t.join(":"):t},set:function(t){this.isVideo?dt(t)&&oe(t)?(this.config.ratio=ne(t),se.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 e=ht(t)?t:this.config.autoplay;this.config.autoplay=e}},{key:"toggleCaptions",value:function(t){Se.toggle.call(this,t,!1)}},{key:"currentTrack",get:function(){var t=this.captions;return t.toggled?t.currentTrack:-1},set:function(t){Se.set.call(this,t,!1)}},{key:"language",get:function(){return(Se.getCurrentTrack.call(this)||{}).language},set:function(t){Se.setLanguage.call(this,t,!1)}},{key:"pip",get:function(){return $t.pip?kt(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:"picture-in-picture"===this.media.webkitPresentationMode:null},set:function(t){if($t.pip){var e=ht(t)?t:!this.pip;vt(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(e?"picture-in-picture":"inline"),vt(this.media.requestPictureInPicture)&&(!this.pip&&e?this.media.requestPictureInPicture():this.pip&&!e&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(t,e,r){return $t.check(t,e,r)}},{key:"loadSprite",value:function(t,e){return _e(t,e)}},{key:"setup",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return dt(e)?i=Array.from(document.querySelectorAll(e)):ft(e)?i=Array.from(e):yt(e)&&(i=e.filter(gt)),kt(i)?null:i.map((function(e){return new t(e,r)}))}}]),t}();function rr(t){t.on("timeupdate",(function(){return function(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&null!==(r=e.mutedPreview)&&void 0!==r&&r.enabled||function(t){var e;0!==t.currentTime&&null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&localStorage.setItem("player-progress-".concat(ir(t)),t.currentTime)}(t)}(t)})),t.on("ready",(function(){return or(t)})),t.on("loadeddata",(function(){return or(t)}))}function ir(t){var e,r;return null==t||null===(e=t.config)||void 0===e||null===(r=e.blockAttributes)||void 0===r?void 0:r.id}function or(t){var e,r,i;if(null!=t&&null!==(e=t.config)&&void 0!==e&&e.save_player_position&&(null==t||null===(r=t.config)||void 0===r||null===(i=r.mutedPreview)||void 0===i||!i.enabled)){var o=function(t){return parseFloat(localStorage.getItem("player-progress-".concat(ir(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)}}er.defaults=JSON.parse(JSON.stringify(Pe));var nr=(null===(He=window)||void 0===He||null===(Ve=He.prestoPlayer)||void 0===Ve||null===($e=Ve.i18n)||void 0===$e?void 0:$e.hide_chapters)||"Hide Chapters",ar=(null===(Ue=window)||void 0===Ue||null===(Qe=Ue.prestoPlayer)||void 0===Qe||null===(We=Qe.i18n)||void 0===We?void 0:We.show_chapters)||"Show Chapters";const sr='<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(nr,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(ar,"</span>\n</button>\n");var lr,pr,ur;const cr='\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===(lr=window)||void 0===lr||null===(pr=lr.prestoPlayer)||void 0===pr||null===(ur=pr.i18n)||void 0===ur?void 0:ur.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function dr(t){var e,r,i,o,n,a,s,p,c,d,h,v,y,f=0,g={},b=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 e={};return t.forEach((function(t){var r,i=t.time.split(":");i.length>1&&(r=60*parseInt(i[0])),e[parseInt(i[1])+parseInt(r)]=t})),e}((null===(e=o=t.detail.plyr)||void 0===e||null===(r=e.config)||void 0===r?void 0:r.chapters)||[]),"html5"!==o.provider||o.duration){if(i&&Object.keys(i).length){n=jQuery(o.elements.container).closest(".presto-player__wrapper").find(".plyr");var _=(y=jQuery(o.elements.controls)).find(".plyr__time");_=_.length?_:y.find(".plyr__progress__container"),(c=n.find('[data-plyr="chapters"]')).length||(c=jQuery(sr).insertAfter(_)),(s=n.find(".presto-player-toc__wrapper")).length||(s=jQuery(cr).appendTo(n)),d=s.find("[data-player-toc-cover]"),p=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,p.find(".presto-player-toc__chapter").length||(Object.keys(i).forEach((function(t){w++;var e=jQuery(function(t){var e=t.name,r=void 0===e?"Untitled":e,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(r,"\n </div>\n</div>")}({name:i[t].title,order:w})).appendTo(p);e.data("presto-player-timestamp",t),g[t]=e,e.on("click",(function(){o.currentTime=parseFloat(t),o.play(),j(!1)}))})),v=s.find("[data-chapter-item]")),z(),c.off("click"),c.on("click",j),x(),o.off("timeupdate"),o.on("timeupdate",x),b=window.setInterval((function(){m++,o.duration&&(z(),window.clearInterval(b)),m>50&&window.clearInterval(b)}),100),d.off("click"),d.on("click",(function(){return j(!1)})),p.off("mouseleave"),p.on("mouseleave",(function t(){if(o.playing){var e=setTimeout((function(){j(!1),p.off("mouseleave",t)}),2e3);p.on("mouseenter",(function(){clearTimeout(e)}))}}))}}else o.on("loadedmetadata",dr);function x(){f=o.currentTime;var t=Object.keys(i).filter((function(t){return t<=f})).map((function(t){return parseInt(t,10)})),e=Math.max.apply(Math,u(t));v&&v.removeClass("is-highlighted"),jQuery(g[e||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 e,r,n,a,s=i[t],l=parseInt(t)/o.duration*100,p=jQuery((e={position:l,name:"".concat(s.title)},r=e.position,n=e.name,a=void 0===n?"":n,'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(void 0===r?0:r,'%" 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!==l(t)?s.toggleClass("is-showing",t):s.toggleClass("is-showing")}}var hr;function vr(t){"undefined"!=typeof jQuery&&(hr=t,jQuery(hr.elements.container).closest(".presto-player__wrapper"),hr.on("ready",dr),hr.on("controlshidden",yr),hr.on("controlsshown",fr))}function yr(t){var e,r,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(r=e.plyr)||void 0===r||null===(i=r.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function fr(t){var e,r,i;"undefined"!=typeof jQuery&&jQuery(null==t||null===(e=t.detail)||void 0===e||null===(r=e.plyr)||void 0===r||null===(i=r.elements)||void 0===i?void 0:i.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function gr(t){var e,r;return n(n(n({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!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(r=t.config)||void 0===r?void 0:r.title}:{})}function br(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasPlayed||(t.config.hasPlayed=!0,null===(r=window)||void 0===r||r.gtag("event","Play",gr(t)))}function mr(t){var e;null===(e=window)||void 0===e||e.gtag("event","Pause",gr(t))}function _r(t){var e,r;null!=t&&null!==(e=t.config)&&void 0!==e&&e.hasLoaded||(t.config.hasLoaded=!0,null===(r=window)||void 0===r||r.gtag("event","Player Load",gr(t)))}var wr,kr={25:!1,50:!1,75:!1,100:!1};function xr(t){if(t.currentTime){var e=parseFloat(t.currentTime)/parseFloat(t.duration)*100;Object.keys(kr).forEach((function(r){var i;!kr[r]&&e>=parseInt(r)&&(kr[r]=!0,null===(i=window)||void 0===i||i.gtag("event","".concat(r," Percent Played"),gr(t)))}))}}var zr="presto-player.analytics",jr="";function Tr(t){var e,r;(wr=t).config.analytics&&null!==(e=window)&&void 0!==e&&null!==(r=e.wp)&&void 0!==r&&r.hooks&&(wp.hooks.hasAction("presto.nonceRefreshed",zr)||wp.hooks.addAction("presto.nonceRefreshed",zr,(function(t){jr=t})),wp.hooks.hasAction("presto.playerPlay",zr)||wp.hooks.addAction("presto.playerPlay",zr,Sr),wp.hooks.hasAction("presto.playerEnded",zr)||wp.hooks.addAction("presto.playerEnded",zr,Sr),wp.hooks.hasAction("presto.playerHidden",zr)||wp.hooks.addAction("presto.playerHidden",zr,Sr),wp.hooks.hasAction("presto.playerPause",zr)||wp.hooks.addAction("presto.playerPause",zr,Sr),wp.hooks.hasAction("presto.playerSeeked",zr)||wp.hooks.addAction("presto.playerSeeked",zr,Sr))}function Sr(t){Pr(function(t){var e,r;return n(n(n({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!==(e=t.config)&&void 0!==e&&e.title?{video_title:null==t||null===(r=t.config)||void 0===r?void 0:r.title}:{})}(t))}function Pr(t){var e,r,i,o,n,a,s,l;if(jr){var p,u,c=new FormData;c.append("action","presto_player_progress"),c.append("duration",null==t?void 0:t.video_current_time),c.append("video_id",null===(e=wr)||void 0===e||null===(r=e.config)||void 0===r?void 0:r.id),c.append("nonce",jr),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=wr)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:jr}}):navigator.sendBeacon(null===(p=window)||void 0===p||null===(u=p.prestoPlayer)||void 0===u?void 0:u.ajaxurl,c)}}function Cr(t){var e,r;null!==(e=window)&&void 0!==e&&null!==(r=e.prestoPlayer)&&void 0!==r&&r.isPremium&&(function(){var t;null!==(t=window)&&void 0!==t&&t.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",br),wp.hooks.addAction("presto.playerPause","presto-player",mr),wp.hooks.addAction("presto.playerReady","presto-player",_r),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",xr))}(),Tr(t))}const Or=function(t){t.on("ready",(function(){var e,r,i,o;null==t||null===(e=t.config)||void 0===e||!e.logo||null!=t&&null!==(r=t.config)&&void 0!==r&&r.logo_added||"undefined"!=typeof jQuery&&(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 Ir(t){var e;null!=t&&null!==(e=t.config)&&void 0!==e&&e.poster&&(t.poster=t.config.poster)}const Ar=function(t){var e,r;null!==(e=window)&&void 0!==e&&null!==(r=e.wp)&&void 0!==r&&r.hooks&&(t.on("ready",(function(){Mr("Ready",t)})),t.on("play",(function(){Mr("Play",t)})),t.on("playing",(function(){Mr("Playing",t)})),t.on("pause",(function(){Mr("Pause",t)})),t.on("ended",(function(){Mr("Ended",t)})),t.on("seeked",(function(){Mr("Seeked",t)})),t.on("timeupdate",(function(){Mr("TimeUpdate",t)})),t.on("enterfullscreen",(function(){Mr("EnterFullScreen",t)})),t.on("exitfullscreen",(function(){Mr("ExitFullScreen",t)})),document.addEventListener("visibilitychange",(function(){Mr("hidden"===document.visibilityState?"Hidden":"Visible",t)})),t.on("statechange",(function(e){var r;switch(null==e||null===(r=e.detail)||void 0===r?void 0:r.code){case 0:Mr("Ended",t);break;case 1:Mr("Play",t);break;case 2:Mr("Pause",t)}})))};function Mr(t,e){window.wp.hooks.doAction("presto.player".concat(t),e)}let Er,Fr=Date.now();const Lr=t=>{var e,r;if(!t.automations)return;(null===(r=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===r?void 0:r.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(t=>{Er=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,e=null){var r;Er&&(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.ajaxProgress)&&(e||(e=parseFloat(t.currentTime)/parseFloat(t.duration)*100),t.watched=t.watched||{},Object.keys(i).forEach((r=>{var i,o,n,a,s,l,p,u,c;const d=parseInt(r);if(!t.watched[d]&&e>=d){t.watched[d]=!0;let e=new FormData;if(e.append("action","presto_player_progress_percent"),e.append("id",null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.id),e.append("percent",d.toString()),e.append("visit_time",Fr.toString()),e.append("nonce",Er),(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.debug)&&console.log(`${d} 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===(c=null==t?void 0:t.config)||void 0===c?void 0:c.id,visit_time:Fr,percent:d,nonce:Er}});else{let r=navigator.sendBeacon(null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.ajaxurl,e);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(r?console.log("Successfully queued progress:",{id:null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.id,percent:d,visit_time:Fr,nonce:Er}):console.log("Failed to queue progress",{id:null===(p=null==t?void 0:t.config)||void 0===p?void 0:p.id,percent:d,visit_time:Fr,nonce:Er}))}}})))}};let Nr=!1,Rr=!1;function Dr(t){return t.status>=200&&t.status<300?Promise.resolve(t):Promise.reject(new Error(t.statusText))}const Br=t=>{var e,r;(t.config.analytics||t.config.automations)&&(null===(r=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===r||r.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;Nr||Rr||(Rr=!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(Dr).then((t=>t.json())).then((({data:t})=>{null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),Nr=!0})).catch((function(t){console.log("Request failed",t)})).finally((()=>{Rr=!1})))})))},qr=function(t){var e=window.navigator.userAgent;if(e.match(/iPad/i)||e.match(/iPhone/i)){var r=function(t,e){for(var r,i,o,n=null==t||null===(r=t.elements)||void 0===r||null===(i=r.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;)e?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 e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active&&r(t,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var e;null!=t&&null!==(e=t.fullscreen)&&void 0!==e&&e.active||r(t,!1)}))}},Hr=function(){var t=d(regeneratorRuntime.mark((function t(e){var r,i,o;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(o=new ResizeObserver((function(t){var e,r=h(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.contentRect;jQuery(i.target).find(".plyr__menu__container").css({maxHeight:"".concat(o.height-48,"px")})}}catch(t){r.e(t)}finally{r.f()}})),null!=e&&null!==(r=e.elements)&&void 0!==r&&r.container){t.next=10;break}return t.abrupt("return");case 10:if(o.observe(null==e||null===(i=e.elements)||void 0===i?void 0:i.container),e){t.next=13;break}return t.abrupt("return");case 13:e.on("playing",(function(){var t,r,i=null==e||null===(t=e.elements)||void 0===t?void 0:t.container.getBoundingClientRect();jQuery(null==e||null===(r=e.elements)||void 0===r?void 0:r.container).find(".plyr__menu__container").css({maxHeight:"".concat(i.height-48,"px")})}));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function Vr(t){var e,r,i,o,a,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=n(n(n({},l),null!==(e=window)&&void 0!==e&&null!==(r=e.prestoPlayer)&&void 0!==r&&r.plugin_url?{iconUrl:"".concat(null===(i=window)||void 0===i||null===(o=i.prestoPlayer)||void 0===o?void 0:o.plugin_url,"img/sprite.svg")}:{}),{chapters:(null==l?void 0:l.chapters)||[],controls:(null==l?void 0:l.controls)||[],settings:Object.keys((null==l?void 0:l.settings)||{}).length?l.settings:{}}),u=new er(t,p);return"undefined"!=typeof learndash_video_data&&import("./p-c14a2e61.js").then((function(t){(0,t.default)(u)})),"undefined"!=typeof _tutorobject&&import("./p-0e1cd603.js").then((function(t){(0,t.default)(u)})),Ar(u),qr(u),Hr(u),Or(u),Ir(u),vr(u),null!==(a=window)&&void 0!==a&&null!==(s=a.prestoPlayer)&&void 0!==s&&s.isAdmin||(Br(u),Lr(p),rr(u),Cr(u)),u}function $r(t){return"string"==typeof t&&t.includes(".m3u8")}const Ur=class{constructor(e){t(this,e),this.loaded=i(this,"loaded",7),this.isAdmin=!1,this.previouslyPlaying=!1,this.components={cta:null,email:null,overlays:null}}async play(t=!1){return this.shouldLazyLoad=!1,t&&(this.mutedPreview=!1),this.player.play()}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,e){return this.player.on(t,e)}async off(t,e){return this.player.off(t,e)}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 e=[];t.parentNode&&"body"!=t.parentNode.nodeName.toLowerCase();)e.push(t=t.parentNode);return e})(this.el).forEach((t=>{t.classList.toggle("presto-sticky-parent",this.isSticky)}))}getConfig(){return Object.assign(Object.assign({},function({preset:t={},chapters:e,branding:r,src:i,analytics:o,automations:n,autoplay:a,blockAttributes:s={},provider:l="",provider_video_id:p="",youtube:u,type:c,isAdmin:d,i18n:h,storage:v={enabled:!d,key:`presto-player-${t.id}`}}){var y,f,g,b;const m=["settings"],_=[...["youtube","vimeo"].includes(l)?["pip"]:[]],w=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((e=>((null==t?void 0:t[e])||m.includes(e))&&!_.includes(e)));(null===(y=null==s?void 0:s.mutedPreview)||void 0===y?void 0:y.enabled)&&(v={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:c}),src:i,ajaxProgress:!0,analytics:o,automations:n,mutedPreview:{enabled:null===(f=null==s?void 0:s.mutedPreview)||void 0===f?void 0:f.enabled},chapters:e,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==r?void 0:r.logo,logo_width:null==r?void 0:r.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===(g=window.wp)||void 0===g?void 0:g.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:v,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===(b=null===window||void 0===window?void 0:window.wp)||void 0===b?void 0:b.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(),e=t.config,r=t.selector,i=t.src,o=t.preload,i&&$r(i)?import("./p-eceb35ab.js").then((function(t){return(0,t.default)({config:e,selector:r,src:i,preload:o})})):new Promise((function(t){return t(new Vr(r,n({},e)))})));var t,e,r,i,o}handlePlayerElementChange(){var t;(({src:t,el:e,preload:r,currentTime:i})=>{if(!e.getAttribute("hls_loaded")&&["metadata","none"].includes(r)&&$r(t)){if(i>0)return e.style.height=null,e.style.paddingBottom=null,void e.setAttribute("hls_loaded","1");e.style.height="0px",e.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){var e,r,i,o,n,a,s;this.player&&!this.isAdmin&&(!t&&this.preset.captions_enabled&&setTimeout((()=>{var t;this.player.toggleCaptions(null===(t=null==this?void 0:this.preset)||void 0===t?void 0:t.captions_enabled)}),0),(null===(i=null===(r=null===(e=this.originalConfig)||void 0===e?void 0:e.blockAttributes)||void 0===r?void 0:r.mutedPreview)||void 0===i?void 0:i.enabled)&&(({player:t,mutedPreview:e,captions:r,progress:i,savePosition:o,onPlay:n})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){t.config.mutedPreview.enabled=e,t.muted=e,t.loop=e,t.config.ajaxProgress=!e&&i,t.config.save_player_position=!e&&o;try{t.toggleCaptions(!!e&&!!r)}catch(t){}return setTimeout((()=>{or(t)||t.restart(),setTimeout((()=>{t.muted=e,n()}),50)}),0),t}console.log("ios device, do not do muted autoplay")})({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(n=null===(o=this.blockAttributes)||void 0===o?void 0:o.mutedPreview)||void 0===n?void 0:n.captions),progress:null===(a=this.originalConfig)||void 0===a?void 0:a.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:()=>this.play()}))}onPlayerReady(){var t,e;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.duration=this.player.duration,this.mutedPreview=null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled,this.renderDynamicOverlays(),this.renderCTA(),this.renderEmailOverlay(),this.player.on("timeupdate loadedmetadata",(()=>{this.duration=this.player.duration,this.renderDynamicOverlays()})),$r(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"))}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,e,r;return"youtube"===this.provider&&!this.autoplay&&!(null===(e=null===(t=this.blockAttributes)||void 0===t?void 0:t.mutedPreview)||void 0===e?void 0:e.enabled)&&!!(null===(r=this.preset)||void 0===r?void 0:r.lazy_load_youtube)}componentWillLoad(){var t,e,r;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===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.i18n)||(null===(r=null===window||void 0===window?void 0:window.prestoPlayerAdmin)||void 0===r?void 0:r.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,e)=>{if(!e)return;const r=document.createElement("style");t.shadowRoot.append(r),r.appendChild(document.createTextNode(e))})(this.el,this.css),t}async onReload(t){const e=await this.initialize();"play"==t&&e.on("ready",(()=>{this.play(),e.muted=!0,e.muted=!1,e.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 e,r,i,o,n;if("unknown"!==g()&&!(null===(r=null===(e=null==t?void 0:t.config)||void 0===e?void 0:e.blockAttributes)||void 0===r?void 0:r.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 e=t.currentTime;t.currentTime=t.duration,t.once("playing",(()=>{t.currentTime=e}))}}(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 e,r;if(!(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll))return;if(this.isAdmin||this.mutedPreview||!(null===(r=null==this?void 0:this.player)||void 0===r?void 0:r.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 e,r,i;if(!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.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===(r=this.blockAttributes)||void 0===r?void 0:r.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 e("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 e("presto-vimeo",{player:this.player,getRef:t=>this.playerEl=t,poster:this.poster,src:this.src});case"youtube":return e("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 e("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});default:return e("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})}}renderCTA(){var t,e,r,i;(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.isPremium)&&(this.isAdmin||(null===(r=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===r?void 0:r.enabled)&&((null===(i=this.components.cta)||void 0===i?void 0:i.offsetParent)||(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))))}renderEmailOverlay(){var t,e,r;!(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)||(null===(r=this.components.email)||void 0===r?void 0:r.offsetParent)||(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))}renderActionBar(){var t,r,i;if(null===(r=null===(t=this.preset)||void 0===t?void 0:t.action_bar)||void 0===r?void 0:r.enabled)return e("presto-action-bar",{config:this.preset.action_bar,currentTime:null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.currentTime,duration:this.duration,youtube:this.youtube})}stickyPositionClass(){var t,e;return this.isSticky?(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position)?`presto-sticky--${null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position.replace(/\s+/g,"-")}`:"presto-sticky--bottom-right":""}renderDynamicOverlays(){var t,e,r,i,o;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===(r=null===(e=this.player)||void 0===e?void 0:e.config)||void 0===r?void 0:r.mutedPreview)||void 0===i?void 0:i.enabled),(null===(o=null==this?void 0:this.overlaysComponent)||void 0===o?void 0:o.offsetParent)||this.player.elements.wrapper.append(this.overlaysComponent))}render(){var t,r,i,o,n;return e(v,{style:{height:this.isSticky?`${this.videoHeight}px`:"auto"}},e("div",{part:"wrapper",dir:this.direction,class:`presto-player__wrapper fitvidsignore\n presto-video-id-${this.video_id}\n ${this.isSticky?"presto-sticky":""}\n ${this.stickyPositionClass()}\n ${"rtl"===this.direction?"rtl":""}\n ${!!(null===(t=this.preset)||void 0===t?void 0:t.skin)&&`skin-${null===(r=this.preset)||void 0===r?void 0:r.skin}`}\n ${(null===(i=this.preset)||void 0===i?void 0:i.hide_youtube)?"hide-youtube-ui":""}\n ${(null===(o=this.preset)||void 0===o?void 0:o.caption_style)?`caption-style-${null===(n=this.preset)||void 0===n?void 0:n.caption_style}`:""}\n ${this.mutedPreview?"is-muted-overlay":""}\n ${this.playClass?this.playClass:""}`},e("div",null,e("slot",{name:"player-start"}),e("slot",{name:"player-before-video"}),this.renderVideo(),e("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),e("slot",{name:"player-end"}))))}get el(){return r(this)}static get watchers(){return{currentTime:["handleCurrentTimeChange"],isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],player:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"],overlays:["renderDynamicOverlays"],preset:["renderDynamicOverlays"]}}};Ur.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));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::after:empty{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.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:calc(100%);max-width:calc(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 .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.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@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;display:flex;align-items:center;justify-content:center}.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 .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:calc(calc(1600 / 9) * 1vh)}}';const Qr=function(t,e){return u(e)},Wr=class{constructor(e){t(this,e),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,r=e(Qr,null,e("span",{part:"prefix",class:"button__prefix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"prefix"})),e("span",{part:"label",class:"button__label"},e("slot",{onSlotchange:()=>this.handleSlotChange()})),e("span",{part:"suffix",class:"button__suffix"},e("slot",{onSlotchange:()=>this.handleSlotChange(),name:"suffix"}))),i=e("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},r),o=e("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},r);return t?o:i}get button(){return r(this)}};Wr.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.25rem)}.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.875rem);height:var(--presto-player-button-height-small, 1.875rem);line-height:calc(var(--presto-player-button-height-small, 1.875rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1rem);height:var(--presto-player-button-height-medium, 2.5rem);line-height:calc(var(--presto-player-button-height-medium, 2.5rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25rem);height:var(--presto-player-button-height-large, 3.125rem);line-height:calc(var(--presto-player-button-height-large, 3.125rem) - 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.75rem)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1rem)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25rem)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}";const Yr=class{constructor(e){t(this,e)}render(){return e("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}};Yr.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)}}";const Jr=class{constructor(e){t(this,e)}render(){return e("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},e("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((t=>e("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"}))))}};Jr.style=":host{display:block}";const Gr=class{constructor(e){t(this,e)}getId(t){const e=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(t||"");return(null==e?void 0:e[5])||""}render(){if(this.src)return"Android"!==g()||(t=window.navigator.standalone,r=window.navigator.userAgent.toLowerCase(),i=/safari/.test(r),/iphone|ipod|ipad/.test(r)?!t&&i||t||i:!r.includes("wv"))?e("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src)}):e("div",{class:"presto-iframe-fallback-container"},e("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"}));var t,r,i}};Gr.style=":host{display:block}";const Kr=class{constructor(e){t(this,e),this.reload=i(this,"reload",7)}handlePlayerChange(){this.player&&this.fixes()}fixes(){this.player.once("statechange",(t=>{var e,r,i,o,n;1===t.detail.code&&((null===(n=null===(o=null===(i=null===(r=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.plyr)||void 0===r?void 0:r.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 e;const r=(t||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return r&&11===(null===(e=null==r?void 0:r[2])||void 0===e?void 0:e.length)?r[2]:null}loadPlayer(){this.lazyLoad=!1,this.reloadPlayer=!0}componentDidRender(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}setWebView(){var t;let e=null===(t=window.navigator)||void 0===t?void 0:t.standalone,r=window.navigator.userAgent.toLowerCase(),i=/safari/.test(r),o=/iphone|ipod|ipad/.test(r);this.isWebView=o?!e&&!i:r.includes("wv")}componentWillLoad(){this.setWebView(),this.poster||(this.poster=`//img.youtube.com/vi/${this.getId(this.src)}/maxresdefault.jpg`),this.lazyLoad&&"iOS"===g()&&(this.lazyLoad=!1)}render(){return this.isWebView?e("div",{class:"fallback-container"},e("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?e("div",null,e("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:"",provider:"youtube"}),e("div",{class:"presto-player__play-cover",onClick:()=>this.loadPlayer()})):e("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"]}}};Kr.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}}";const Xr=class{constructor(e){t(this,e),this.layout="default"}waitForApi(t){var e=setInterval((function(){var r;(null===(r=null===window||void 0===window?void 0:window.gapi)||void 0===r?void 0:r.ytsubscribe)&&(clearInterval(e),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 e=document.getElementsByTagName("script")[0];e&&e.parentNode.insertBefore(t,e),this.waitForApi((()=>{window.gapi.ytsubscribe.render(this.textInput,{channelId:this.channel,layout:this.layout,count:this.showCount?"default":"hidden"})}))}render(){return e("div",{class:"g-ytsubscribe",ref:t=>this.textInput=t})}};Xr.style=":host{display:block}";export{z as C,C as E,Vr as P,b as a,m as b,_ as c,w as d,k as e,j as f,T as g,S as h,P as i,O as j,Ur as k,Wr as l,Yr as m,Jr as n,Gr as o,Kr as p,Xr as q,or as r}
|
dist/components/web-components/{p-13c11ca4.js → p-c14a2e61.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{r as e}from"./p-
|
1 |
+
import{r as e}from"./p-1cf667af.js";import"./p-660ec1bb.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-1f0cd8b0.js → p-eceb35ab.js}
RENAMED
@@ -1 +1 @@
|
|
1 |
-
import{l as n,a as r}from"./p-660ec1bb.js";import{P as e}from"./p-
|
1 |
+
import{l as n,a as r}from"./p-660ec1bb.js";import{P as e}from"./p-1cf667af.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()){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,r){a.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span").innerHTML=f.autoLevelEnabled?"AUTO (".concat(f.levels[r.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 r;return n===parseInt(null===(r=prestoPlayer)||void 0===r?void 0:r.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(r,e){r.height===n&&(console.log("Found quality match with "+n),prestoHLS.currentLevel=e)}))}},f.attachMedia(a),window.prestoHLS=f;var u=new e(a,r({},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 e(a,r({},o))));case 15:case"end":return n.stop()}}),n)})));return function(n,r){return t.apply(this,arguments)}}())}
|
dist/components/web-components/web-components.esm.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
import{p as e,b as t}from"./p-660ec1bb.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-0fe07ea4",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-e30af8b3",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["p-
|
1 |
+
import{p as e,b as t}from"./p-660ec1bb.js";var r,o;(r=import.meta.url,o={},""!==r&&(o.resourcesUrl=new URL(".",r).href),e(o)).then((e=>t([["p-0fe07ea4",[[1,"presto-player-skeleton",{effect:[1]}]]],["p-e30af8b3",[[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]]],["p-1655ec4d",[[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"],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32],play:[64],restart:[64],pause:[64],stop:[64],fullscreenToggle:[64],on:[64],off:[64]},[[0,"restartVideo","handleRestartVideo"],[0,"playVideo","handlePlayVideo"],[0,"pauseVideo","handlePauseVideo"],[8,"visibilitychange","playVideoOnlyInViewport"]]],[1,"presto-action-bar",{config:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32]}],[0,"presto-cta-overlay",{player:[8],direction:[1],preset:[16],i18n:[16],currentTime:[32],duration:[32],ended:[32]}],[0,"presto-email-overlay",{player:[8],direction:[1],preset:[16],videoId:[2,"video-id"],i18n:[16],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-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16],preset:[16]}],[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}],[0,"presto-cta-overlay-controller",{ended:[4],currentTime:[514,"current-time"],duration:[514],direction:[1],cta:[16],i18n:[16],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"],enabled:[32],show:[32],loading:[32],error:[32],percentagePassed:[32]}],[1,"presto-action-bar-ui",{open:[4]}],[1,"presto-dynamic-overlay-ui",{href:[1],target:[1],position:[1]}],[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}],[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]}],[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],email:[32]}],[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}],[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: 2021-09-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.5.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: 2021-09-28T16:00:30+00:00\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"X-Generator: WP-CLI 2.5.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.6.
|
8 |
* Author: Presto Made, Inc
|
9 |
* Text Domain: presto-player
|
10 |
* Tags: private, video, lms, hls
|
4 |
* Plugin Name: Presto Player
|
5 |
* Plugin URI: http://prestoplayer.com
|
6 |
* Description: A beautiful, fast media player for WordPress.
|
7 |
+
* Version: 1.6.7
|
8 |
* Author: Presto Made, Inc
|
9 |
* Text Domain: presto-player
|
10 |
* Tags: private, video, lms, hls
|
readme.txt
CHANGED
@@ -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.6.6 - September 28, 2021 =
|
157 |
* Email capture and CTA no longer need to exit fullscreen to show.
|
158 |
* Fix compatibility with WPRocket delay javascript functionality.
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 1.6.7 - September 28, 2021 =
|
157 |
+
* Hotfix: muted autoplay not working properly.
|
158 |
+
|
159 |
= 1.6.6 - September 28, 2021 =
|
160 |
* Email capture and CTA no longer need to exit fullscreen to show.
|
161 |
* Fix compatibility with WPRocket delay javascript functionality.
|
vendor/composer/installed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
'type' => 'project',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'course/player',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -16,7 +16,7 @@
|
|
16 |
'type' => 'project',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'level-2/dice' => array(
|
5 |
'type' => 'project',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '83b80bdf5c9b664d52e63070cb8b2723b2abbbf0',
|
9 |
'name' => 'course/player',
|
10 |
'dev' => false,
|
11 |
),
|
16 |
'type' => 'project',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => '83b80bdf5c9b664d52e63070cb8b2723b2abbbf0',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'level-2/dice' => array(
|