Version Description
2018/02/23 =
CSS - fixing the left and right alignment margin
HLS.js - making it pick the initial quality automatically, rather than using the first stream
JW Player Conversion - adding support for [jwplayer player="3" mediaid="538527"] kind of shortcodes
Lightbox - fix for Ajax loaded content
Download this release
Release Info
Developer | FolioVision |
Plugin | FV Flowplayer Video Player |
Version | 6.4.2 |
Comparing to | |
See all releases |
Code changes from version 6.3.11 to 6.4.2
- controller/backend.php +19 -15
- controller/editor.php +6 -1
- controller/frontend.php +28 -27
- controller/settings.php +5 -1
- controller/shortcodes.php +47 -126
- css/admin-beta.css +134 -0
- css/flowplayer-beta.css +1938 -0
- css/flowplayer.css +12 -14
- css/fvp-icon-sprite.svg +59 -0
- css/fvp-icon.svg +50 -0
- css/icons/flowplayer.eot +0 -0
- css/icons/flowplayer.svg +98 -0
- css/icons/flowplayer.ttf +0 -0
- css/icons/flowplayer.woff +0 -0
- css/icons/flowplayer.woff2 +0 -0
- css/icons/fonts/fpicons.eot +0 -0
- css/icons/fonts/fpicons.svg +23 -0
- css/icons/fonts/fpicons.ttf +0 -0
- css/icons/fonts/fpicons.woff +0 -0
- css/icons/icons.css +24 -0
- css/img/loading.gif +0 -0
- css/img/no-play-white.svg +3 -0
- css/shortcode-editor.css +41 -0
- flowplayer-beta/embed.min.js +1 -0
- flowplayer-beta/flowplayer.dashjs.min.js +41 -0
- flowplayer-beta/flowplayer.hlsjs.min.js +32 -0
- flowplayer-beta/flowplayer.swf +0 -0
- flowplayer-beta/flowplayerhls.swf +0 -0
- flowplayer-beta/fv-flowplayer.min.js +439 -0
controller/backend.php
CHANGED
@@ -357,15 +357,15 @@ function fv_wp_flowplayer_check_license() {
|
|
357 |
add_action('admin_init', 'fv_player_admin_update');
|
358 |
|
359 |
function fv_player_admin_update() {
|
360 |
-
global $fv_fp, $fv_wp_flowplayer_ver
|
361 |
|
362 |
$aOptions = get_option( 'fvwpflowplayer' );
|
363 |
if( !isset($aOptions['version']) || version_compare( $fv_wp_flowplayer_ver, $aOptions['version'] ) ) {
|
364 |
//update_option( 'fv_wordpress_flowplayer_deferred_notices', 'FV Flowplayer upgraded - please click "Check template" and "Check videos" for automated check of your site at <a href="'.site_url().'/wp-admin/options-general.php?page=fvplayer">the settings page</a> for automated checks!' );
|
365 |
|
366 |
-
if( $aOptions['version'] == '6.0.5.20' && $aOptions['playlist_advance'] == 'true' ) { // version 6.0.5 used reverse
|
367 |
$aOptions['playlist_advance'] = false;
|
368 |
-
$fv_fp->
|
369 |
}
|
370 |
|
371 |
$aOptions['version'] = $fv_wp_flowplayer_ver;
|
@@ -376,7 +376,11 @@ function fv_player_admin_update() {
|
|
376 |
|
377 |
fv_wp_flowplayer_delete_extensions_transients();
|
378 |
delete_option('fv_flowplayer_extension_install');
|
379 |
-
}
|
|
|
|
|
|
|
|
|
380 |
}
|
381 |
|
382 |
function fv_wp_flowplayer_pro_settings_update_for_lightbox(){
|
@@ -435,11 +439,10 @@ function fv_player_lchecks() {
|
|
435 |
//license will expire in 5 seconds in the function:
|
436 |
fv_wp_flowplayer_admin_key_update();
|
437 |
}
|
438 |
-
|
439 |
-
global $fv_fp
|
440 |
if( preg_match( '!^\$\d+!', $fv_fp->conf['key'] ) ) {
|
441 |
-
|
442 |
-
if( version_compare( $fv_wp_flowplayer_core_ver, $version ) == 1 ) {
|
443 |
fv_wp_flowplayer_admin_key_update();
|
444 |
fv_wp_flowplayer_delete_extensions_transients();
|
445 |
}
|
@@ -484,14 +487,15 @@ function fv_player_remove_update( $objUpdates ) {
|
|
484 |
}
|
485 |
|
486 |
function fv_wp_flowplayer_admin_key_update() {
|
487 |
-
global $fv_fp
|
488 |
|
489 |
$data = fv_wp_flowplayer_license_check( array('action' => 'key_update') );
|
490 |
if( isset($data->domain) ) { // todo: test
|
491 |
if( $data->domain && $data->key && stripos( home_url(), $data->domain ) !== false ) {
|
492 |
$fv_fp->conf['key'] = $data->key;
|
|
|
493 |
update_option( 'fvwpflowplayer', $fv_fp->conf );
|
494 |
-
update_option( 'fvwpflowplayer_core_ver',
|
495 |
|
496 |
fv_wp_flowplayer_change_transient_expiration("fv_flowplayer_license",5);
|
497 |
fv_wp_flowplayer_delete_extensions_transients(5);
|
@@ -499,22 +503,22 @@ function fv_wp_flowplayer_admin_key_update() {
|
|
499 |
}
|
500 |
} else if( isset($data->expired) && $data->expired && isset($data->message) ){
|
501 |
update_option( 'fv_wordpress_flowplayer_persistent_notices', $data->message );
|
502 |
-
update_option( 'fvwpflowplayer_core_ver',
|
503 |
return false;
|
504 |
} else {
|
505 |
update_option( 'fv_wordpress_flowplayer_deferred_notices', 'FV Flowplayer License upgrade failed - please check if you are running the plugin on your licensed domain.' );
|
506 |
-
update_option( 'fvwpflowplayer_core_ver',
|
507 |
return false;
|
508 |
}
|
509 |
}
|
510 |
|
511 |
function fv_wp_flowplayer_license_check( $aArgs ) {
|
512 |
-
global $fv_wp_flowplayer_ver
|
513 |
|
514 |
$args = array(
|
515 |
-
'body' => array( 'plugin' => 'fv-wordpress-flowplayer', 'version' => $fv_wp_flowplayer_ver, 'core_ver' =>
|
516 |
'timeout' => 10,
|
517 |
-
'user-agent' => 'fv-wordpress-flowplayer-'.$fv_wp_flowplayer_ver.' ('
|
518 |
);
|
519 |
$resp = wp_remote_post( 'https://foliovision.com/?fv_remote=true', $args );
|
520 |
|
357 |
add_action('admin_init', 'fv_player_admin_update');
|
358 |
|
359 |
function fv_player_admin_update() {
|
360 |
+
global $fv_fp, $fv_wp_flowplayer_ver;
|
361 |
|
362 |
$aOptions = get_option( 'fvwpflowplayer' );
|
363 |
if( !isset($aOptions['version']) || version_compare( $fv_wp_flowplayer_ver, $aOptions['version'] ) ) {
|
364 |
//update_option( 'fv_wordpress_flowplayer_deferred_notices', 'FV Flowplayer upgraded - please click "Check template" and "Check videos" for automated check of your site at <a href="'.site_url().'/wp-admin/options-general.php?page=fvplayer">the settings page</a> for automated checks!' );
|
365 |
|
366 |
+
if( $aOptions['version'] == '6.0.5.20' && $aOptions['playlist_advance'] == 'true' ) { // version 6.0.5 used reverse logic for this option!
|
367 |
$aOptions['playlist_advance'] = false;
|
368 |
+
$fv_fp->_get_conf();
|
369 |
}
|
370 |
|
371 |
$aOptions['version'] = $fv_wp_flowplayer_ver;
|
376 |
|
377 |
fv_wp_flowplayer_delete_extensions_transients();
|
378 |
delete_option('fv_flowplayer_extension_install');
|
379 |
+
}
|
380 |
+
|
381 |
+
if( isset($_POST['fv-player-pro-release']) && isset($_POST['fv_player_pro_switch']) && wp_verify_nonce( $_POST['fv_player_pro_switch'], 'fv_player_pro_switch') ) {
|
382 |
+
$fv_fp->css_writeout();
|
383 |
+
}
|
384 |
}
|
385 |
|
386 |
function fv_wp_flowplayer_pro_settings_update_for_lightbox(){
|
439 |
//license will expire in 5 seconds in the function:
|
440 |
fv_wp_flowplayer_admin_key_update();
|
441 |
}
|
442 |
+
|
443 |
+
global $fv_fp;
|
444 |
if( preg_match( '!^\$\d+!', $fv_fp->conf['key'] ) ) {
|
445 |
+
if( version_compare( flowplayer::get_core_version(), get_option( 'fvwpflowplayer_core_ver' ) ) == 1 ) {
|
|
|
446 |
fv_wp_flowplayer_admin_key_update();
|
447 |
fv_wp_flowplayer_delete_extensions_transients();
|
448 |
}
|
487 |
}
|
488 |
|
489 |
function fv_wp_flowplayer_admin_key_update() {
|
490 |
+
global $fv_fp;
|
491 |
|
492 |
$data = fv_wp_flowplayer_license_check( array('action' => 'key_update') );
|
493 |
if( isset($data->domain) ) { // todo: test
|
494 |
if( $data->domain && $data->key && stripos( home_url(), $data->domain ) !== false ) {
|
495 |
$fv_fp->conf['key'] = $data->key;
|
496 |
+
$fv_fp->conf['key7'] = $data->key7;
|
497 |
update_option( 'fvwpflowplayer', $fv_fp->conf );
|
498 |
+
update_option( 'fvwpflowplayer_core_ver', flowplayer::get_core_version() );
|
499 |
|
500 |
fv_wp_flowplayer_change_transient_expiration("fv_flowplayer_license",5);
|
501 |
fv_wp_flowplayer_delete_extensions_transients(5);
|
503 |
}
|
504 |
} else if( isset($data->expired) && $data->expired && isset($data->message) ){
|
505 |
update_option( 'fv_wordpress_flowplayer_persistent_notices', $data->message );
|
506 |
+
update_option( 'fvwpflowplayer_core_ver', flowplayer::get_core_version() );
|
507 |
return false;
|
508 |
} else {
|
509 |
update_option( 'fv_wordpress_flowplayer_deferred_notices', 'FV Flowplayer License upgrade failed - please check if you are running the plugin on your licensed domain.' );
|
510 |
+
update_option( 'fvwpflowplayer_core_ver', flowplayer::get_core_version() );
|
511 |
return false;
|
512 |
}
|
513 |
}
|
514 |
|
515 |
function fv_wp_flowplayer_license_check( $aArgs ) {
|
516 |
+
global $fv_wp_flowplayer_ver;
|
517 |
|
518 |
$args = array(
|
519 |
+
'body' => array( 'plugin' => 'fv-wordpress-flowplayer', 'version' => $fv_wp_flowplayer_ver, 'core_ver' => flowplayer::get_core_version(), 'type' => home_url(), 'action' => $aArgs['action'], 'admin-url' => admin_url() ),
|
520 |
'timeout' => 10,
|
521 |
+
'user-agent' => 'fv-wordpress-flowplayer-'.$fv_wp_flowplayer_ver.' ('.flowplayer::get_core_version().')'
|
522 |
);
|
523 |
$resp = wp_remote_post( 'https://foliovision.com/?fv_remote=true', $args );
|
524 |
|
controller/editor.php
CHANGED
@@ -90,6 +90,12 @@ function fv_wp_flowplayer_edit_form_after_editor( ) {
|
|
90 |
add_action('admin_footer', array( $FV_Player_VAST , 'styles' ) );
|
91 |
add_action('admin_footer', array( $FV_Player_VAST , 'func__wp_enqueue_scripts' ) );
|
92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
add_action('admin_footer','flowplayer_prepare_scripts');
|
95 |
}
|
@@ -245,4 +251,3 @@ function fv_wp_flowplayer_save_to_media_library( $image_url, $post_id ) {
|
|
245 |
return $attach_id;
|
246 |
|
247 |
}
|
248 |
-
|
90 |
add_action('admin_footer', array( $FV_Player_VAST , 'styles' ) );
|
91 |
add_action('admin_footer', array( $FV_Player_VAST , 'func__wp_enqueue_scripts' ) );
|
92 |
}
|
93 |
+
|
94 |
+
global $FV_Player_Alternative_Sources ;
|
95 |
+
if( isset($FV_Player_Alternative_Sources ) && $FV_Player_Alternative_Sources ) {
|
96 |
+
// todo: there should be a better way than this
|
97 |
+
add_action('admin_footer', array( $FV_Player_Alternative_Sources , 'enqueue_scripts' ) );
|
98 |
+
}
|
99 |
|
100 |
add_action('admin_footer','flowplayer_prepare_scripts');
|
101 |
}
|
251 |
return $attach_id;
|
252 |
|
253 |
}
|
|
controller/frontend.php
CHANGED
@@ -284,9 +284,6 @@ function flowplayer_content( $content ) {
|
|
284 |
return $content;
|
285 |
}
|
286 |
|
287 |
-
/**
|
288 |
-
* Figure out if we need to include MediaElement.js
|
289 |
-
*/
|
290 |
function flowplayer_prepare_scripts() {
|
291 |
global $fv_fp, $fv_wp_flowplayer_ver;
|
292 |
|
@@ -302,58 +299,57 @@ function flowplayer_prepare_scripts() {
|
|
302 |
){
|
303 |
|
304 |
$aDependencies = array('jquery');
|
305 |
-
if( $fv_fp->load_tabs ) {
|
306 |
wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core'), $fv_wp_flowplayer_ver, true);
|
307 |
$aDependencies[] = 'jquery-ui-tabs';
|
308 |
}
|
309 |
|
310 |
if( !$fv_fp->bCSSLoaded ) $fv_fp->css_enqueue(true);
|
311 |
|
312 |
-
|
|
|
|
|
313 |
|
314 |
$sPluginUrl = preg_replace( '~^.*://~', '//', FV_FP_RELATIVE_PATH );
|
315 |
|
316 |
-
$sCommercialKey =
|
317 |
-
$
|
|
|
318 |
|
319 |
-
|
320 |
-
wp_enqueue_script( 'flowplayer-mediaelement', flowplayer::get_plugin_url().'/mediaelement/mediaelement-and-player.min.js', array('jquery'), $fv_wp_flowplayer_ver, true );
|
321 |
-
}
|
322 |
-
|
323 |
-
$aConf = array( 'fullscreen' => true, 'swf' => $sPluginUrl.'/flowplayer/flowplayer.swf?ver='.$fv_wp_flowplayer_ver, 'swfHls' => $sPluginUrl.'/flowplayer/flowplayerhls.swf?ver='.$fv_wp_flowplayer_ver );
|
324 |
|
325 |
-
if(
|
326 |
$aConf['bufferTime'] = apply_filters( 'fv_player_rtmp_bufferTime', 3 );
|
327 |
}
|
328 |
|
329 |
-
if(
|
330 |
$aConf['embed'] = false;
|
331 |
} else {
|
332 |
-
$aConf['embed'] = array( 'library' => $sPluginUrl.'/
|
333 |
}
|
334 |
|
335 |
-
if(
|
336 |
$aConf['speeds'] = array( 0.25,0.5,0.75,1,1.25,1.5,1.75,2 );
|
337 |
-
}elseif($fv_fp->
|
338 |
$aConf['speeds'] = array( 0.25,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2 );
|
339 |
-
}elseif($fv_fp->
|
340 |
$aConf['speeds'] = array( 0.25,0.5,1,1.5,2 );
|
341 |
}
|
342 |
|
343 |
$aConf['video_hash_links'] = empty($fv_fp->aCurArgs['linking']) ? !$fv_fp->_get_option('disable_video_hash_links' ) : $fv_fp->aCurArgs['linking'] === 'true';
|
344 |
|
345 |
if( $sCommercialKey ) $aConf['key'] = $sCommercialKey;
|
346 |
-
if( apply_filters( 'fv_flowplayer_safety_resize', true) &&
|
347 |
$aConf['safety_resize'] = true;
|
348 |
}
|
349 |
-
if(
|
350 |
$aConf['cbox_compatibility'] = true;
|
351 |
}
|
352 |
-
if( current_user_can('manage_options') &&
|
353 |
$aConf['video_checker_site'] = home_url();
|
354 |
}
|
355 |
if( $sLogo ) $aConf['logo'] = $sLogo;
|
356 |
-
$aConf['volume'] = floatval($fv_fp->
|
357 |
if( $aConf['volume'] > 1 ) {
|
358 |
$aConf['volume'] = 1;
|
359 |
}
|
@@ -372,6 +368,10 @@ function flowplayer_prepare_scripts() {
|
|
372 |
if( get_post_meta($post->ID, 'fv_player_mobile_force_fullscreen', true) ) $aConf['mobile_force_fullscreen'] = true;
|
373 |
}
|
374 |
|
|
|
|
|
|
|
|
|
375 |
|
376 |
wp_localize_script( 'flowplayer', 'fv_flowplayer_conf', $aConf );
|
377 |
if( current_user_can('manage_options') ) {
|
@@ -405,11 +405,7 @@ function flowplayer_prepare_scripts() {
|
|
405 |
}
|
406 |
|
407 |
if( $fv_fp->load_dash ) {
|
408 |
-
wp_enqueue_script( 'flowplayer-dash', flowplayer::get_plugin_url().'/
|
409 |
-
}
|
410 |
-
|
411 |
-
if( $fv_fp->load_hlsjs && isset($fv_fp->conf['hlsjs']) && $fv_fp->conf['hlsjs'] == 'true' ) {
|
412 |
-
wp_enqueue_script( 'flowplayer-hlsjs', flowplayer::get_plugin_url().'/flowplayer/flowplayer.hlsjs.min.js', array('flowplayer'), $fv_wp_flowplayer_ver, true );
|
413 |
}
|
414 |
|
415 |
}
|
@@ -432,6 +428,11 @@ function flowplayer_prepare_scripts() {
|
|
432 |
* Prints flowplayer javascript content to the bottom of the page.
|
433 |
*/
|
434 |
function flowplayer_display_scripts() {
|
|
|
|
|
|
|
|
|
|
|
435 |
if( flowplayer::is_special_editor() ) {
|
436 |
return;
|
437 |
}
|
284 |
return $content;
|
285 |
}
|
286 |
|
|
|
|
|
|
|
287 |
function flowplayer_prepare_scripts() {
|
288 |
global $fv_fp, $fv_wp_flowplayer_ver;
|
289 |
|
299 |
){
|
300 |
|
301 |
$aDependencies = array('jquery');
|
302 |
+
if( $fv_fp->_get_option('js-everywhere') || $fv_fp->load_tabs ) {
|
303 |
wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core'), $fv_wp_flowplayer_ver, true);
|
304 |
$aDependencies[] = 'jquery-ui-tabs';
|
305 |
}
|
306 |
|
307 |
if( !$fv_fp->bCSSLoaded ) $fv_fp->css_enqueue(true);
|
308 |
|
309 |
+
$sPath = $fv_fp->is_beta() ? 'flowplayer-beta' : 'flowplayer';
|
310 |
+
|
311 |
+
wp_enqueue_script( 'flowplayer', flowplayer::get_plugin_url().'/'.$sPath.'/fv-flowplayer.min.js', $aDependencies, $fv_wp_flowplayer_ver, true );
|
312 |
|
313 |
$sPluginUrl = preg_replace( '~^.*://~', '//', FV_FP_RELATIVE_PATH );
|
314 |
|
315 |
+
$sCommercialKey = $fv_fp->_get_option('key') ? $fv_fp->_get_option('key') : '';
|
316 |
+
$sCommercialKey = $fv_fp->is_beta() && $fv_fp->_get_option('key7') ? $fv_fp->_get_option('key7') : $sCommercialKey;
|
317 |
+
$sLogo = $sCommercialKey && $fv_fp->_get_option('logo') ? $fv_fp->_get_option('logo') : '';
|
318 |
|
319 |
+
$aConf = array( 'fullscreen' => true, 'swf' => $sPluginUrl.'/'.$sPath.'/flowplayer.swf?ver='.$fv_wp_flowplayer_ver, 'swfHls' => $sPluginUrl.'/'.$sPath.'/flowplayerhls.swf?ver='.$fv_wp_flowplayer_ver );
|
|
|
|
|
|
|
|
|
320 |
|
321 |
+
if( $fv_fp->_get_option('rtmp-live-buffer') ) {
|
322 |
$aConf['bufferTime'] = apply_filters( 'fv_player_rtmp_bufferTime', 3 );
|
323 |
}
|
324 |
|
325 |
+
if( $fv_fp->_get_option( array( 'integrations', 'embed_iframe') ) ) {
|
326 |
$aConf['embed'] = false;
|
327 |
} else {
|
328 |
+
$aConf['embed'] = array( 'library' => $sPluginUrl.'/'.$sPath.'/fv-flowplayer.min.js', 'script' => $sPluginUrl.'/'.$sPath.'/embed.min.js', 'skin' => $sPluginUrl.'/css/'.$sPath.'.css', 'swf' => $sPluginUrl.'/'.$sPath.'/flowplayer.swf?ver='.$fv_wp_flowplayer_ver, 'swfHls' => $sPluginUrl.'/'.$sPath.'/flowplayerhls.swf?ver='.$fv_wp_flowplayer_ver );
|
329 |
}
|
330 |
|
331 |
+
if( $fv_fp->_get_option('ui_speed_increment') == 0.25){
|
332 |
$aConf['speeds'] = array( 0.25,0.5,0.75,1,1.25,1.5,1.75,2 );
|
333 |
+
}elseif( $fv_fp->_get_option('ui_speed_increment') == 0.1){
|
334 |
$aConf['speeds'] = array( 0.25,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2 );
|
335 |
+
}elseif( $fv_fp->_get_option('ui_speed_increment') == 0.5){
|
336 |
$aConf['speeds'] = array( 0.25,0.5,1,1.5,2 );
|
337 |
}
|
338 |
|
339 |
$aConf['video_hash_links'] = empty($fv_fp->aCurArgs['linking']) ? !$fv_fp->_get_option('disable_video_hash_links' ) : $fv_fp->aCurArgs['linking'] === 'true';
|
340 |
|
341 |
if( $sCommercialKey ) $aConf['key'] = $sCommercialKey;
|
342 |
+
if( apply_filters( 'fv_flowplayer_safety_resize', true) && !$fv_fp->_get_option('fixed_size') ) {
|
343 |
$aConf['safety_resize'] = true;
|
344 |
}
|
345 |
+
if( $fv_fp->_get_option('cbox_compatibility') ) {
|
346 |
$aConf['cbox_compatibility'] = true;
|
347 |
}
|
348 |
+
if( current_user_can('manage_options') && !$fv_fp->_get_option('disable_videochecker') ) {
|
349 |
$aConf['video_checker_site'] = home_url();
|
350 |
}
|
351 |
if( $sLogo ) $aConf['logo'] = $sLogo;
|
352 |
+
$aConf['volume'] = floatval( $fv_fp->_get_option('volume') );
|
353 |
if( $aConf['volume'] > 1 ) {
|
354 |
$aConf['volume'] = 1;
|
355 |
}
|
368 |
if( get_post_meta($post->ID, 'fv_player_mobile_force_fullscreen', true) ) $aConf['mobile_force_fullscreen'] = true;
|
369 |
}
|
370 |
|
371 |
+
if( $fv_fp->load_hlsjs && $fv_fp->_get_option('hlsjs') ) {
|
372 |
+
wp_enqueue_script( 'flowplayer-hlsjs', flowplayer::get_plugin_url().'/'.$sPath.'/flowplayer.hlsjs.min.js', array('flowplayer'), $fv_wp_flowplayer_ver, true );
|
373 |
+
$aConf['hlsjs'] = array('startLevel' => -1);
|
374 |
+
}
|
375 |
|
376 |
wp_localize_script( 'flowplayer', 'fv_flowplayer_conf', $aConf );
|
377 |
if( current_user_can('manage_options') ) {
|
405 |
}
|
406 |
|
407 |
if( $fv_fp->load_dash ) {
|
408 |
+
wp_enqueue_script( 'flowplayer-dash', flowplayer::get_plugin_url().'/'.$sPath.'/flowplayer.dashjs.min.js', array('flowplayer'), $fv_wp_flowplayer_ver, true );
|
|
|
|
|
|
|
|
|
409 |
}
|
410 |
|
411 |
}
|
428 |
* Prints flowplayer javascript content to the bottom of the page.
|
429 |
*/
|
430 |
function flowplayer_display_scripts() {
|
431 |
+
global $fv_fp;
|
432 |
+
if( $fv_fp->is_beta() && ( $fv_fp->_get_option('ui_repeat_button') || $fv_fp->_get_option('ui_no_picture_button') ) && file_exists(dirname( __FILE__ ) . '/../css/fvp-icon-sprite.svg') ) { // todo: only include if it's going to be used!
|
433 |
+
include_once(dirname( __FILE__ ) . '/../css/fvp-icon-sprite.svg');
|
434 |
+
}
|
435 |
+
|
436 |
if( flowplayer::is_special_editor() ) {
|
437 |
return;
|
438 |
}
|
controller/settings.php
CHANGED
@@ -16,7 +16,11 @@ function fv_player_admin_menu () {
|
|
16 |
|
17 |
function fv_player_admin_page() {
|
18 |
global $fv_fp;
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
|
16 |
|
17 |
function fv_player_admin_page() {
|
18 |
global $fv_fp;
|
19 |
+
if( $fv_fp->is_beta() ) {
|
20 |
+
include dirname( __FILE__ ) . '/../view/admin-beta.php';
|
21 |
+
} else {
|
22 |
+
include dirname( __FILE__ ) . '/../view/admin.php';
|
23 |
+
}
|
24 |
}
|
25 |
|
26 |
|
controller/shortcodes.php
CHANGED
@@ -89,135 +89,62 @@ function flowplayer_content_handle( $atts, $content = null, $tag = false ) {
|
|
89 |
}
|
90 |
|
91 |
}
|
92 |
-
|
93 |
-
|
94 |
-
extract( shortcode_atts( array(
|
95 |
-
'src' => '',
|
96 |
-
'src1' => '',
|
97 |
-
'src2' => '',
|
98 |
-
'mobile' => '',
|
99 |
-
'width' => '',
|
100 |
-
'height' => '',
|
101 |
-
'autoplay' => '',
|
102 |
-
'sticky' => '',
|
103 |
-
'splash' => '',
|
104 |
-
'splashend' => '',
|
105 |
-
'popup' => '',
|
106 |
-
'controlbar' => '',
|
107 |
-
'play_button' => '',
|
108 |
-
'redirect' => '',
|
109 |
-
'loop' => '',
|
110 |
-
'engine' => '',
|
111 |
-
'embed' => '',
|
112 |
-
'subtitles' => '',
|
113 |
'ad' => '',
|
114 |
'ad_width' => '',
|
115 |
'ad_height' => '',
|
116 |
-
'ad_skip' => '',
|
117 |
-
'align' => '',
|
118 |
-
'rtmp' => '',
|
119 |
-
'rtmp_path' => '',
|
120 |
-
'playlist' => '',
|
121 |
-
'playlist_hide' => '',
|
122 |
'admin_warning' => '',
|
123 |
-
'
|
|
|
124 |
'caption' => '',
|
125 |
'caption_html' => '',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
'logo' => '',
|
127 |
-
'
|
|
|
|
|
|
|
|
|
|
|
128 |
'post' => '',
|
|
|
|
|
|
|
|
|
|
|
129 |
'speed' => '',
|
130 |
-
'
|
131 |
-
'
|
132 |
-
'
|
133 |
-
'
|
134 |
-
'
|
135 |
-
|
|
|
|
|
|
|
|
|
136 |
|
137 |
if( $fv_fp->_get_option('parse_commas') && strcmp($tag,'flowplayer') == 0 ) {
|
138 |
-
$
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
$arguments['splashend'] = preg_replace('/\,/', '', $splashend);
|
147 |
-
$arguments['popup'] = $popup;
|
148 |
-
$arguments['controlbar'] = preg_replace('/\,/', '', $controlbar);
|
149 |
-
$arguments['play_button'] = preg_replace('/\,/', '', $play_button);
|
150 |
-
$arguments['redirect'] = preg_replace('/\,/', '', $redirect);
|
151 |
-
$arguments['loop'] = preg_replace('/\,/', '', $loop);
|
152 |
-
$arguments['engine'] = preg_replace('/\,/', '', $engine);
|
153 |
-
$arguments['embed'] = preg_replace('/\,/', '', $embed);
|
154 |
-
$arguments['subtitles'] = preg_replace('/\,/', '', $subtitles);
|
155 |
-
$arguments['ad'] = preg_replace('/\,/', '', $ad);
|
156 |
-
$arguments['ad_width'] = preg_replace('/\,/', '', $ad_width);
|
157 |
-
$arguments['ad_height'] = preg_replace('/\,/', '', $ad_height);
|
158 |
-
$arguments['ad_skip'] = preg_replace('/\,/', '', $ad_skip);
|
159 |
-
$arguments['align'] = preg_replace('/\,/', '', $align);
|
160 |
-
$arguments['rtmp'] = preg_replace('/\,/', '', $rtmp);
|
161 |
-
$arguments['rtmp_path'] = preg_replace('/\,/', '', $rtmp_path);
|
162 |
-
$arguments['playlist'] = $playlist;
|
163 |
-
$arguments['playlist_hide'] = $playlist_hide;
|
164 |
-
$arguments['admin_warning'] = $admin_warning;
|
165 |
-
$arguments['live'] = $live;
|
166 |
-
$arguments['caption'] = $caption;
|
167 |
-
$arguments['caption_html'] = $caption_html;
|
168 |
-
$arguments['logo'] = $logo;
|
169 |
-
$arguments['share'] = $share;
|
170 |
-
$arguments['post'] = $post;
|
171 |
-
$arguments['speed'] = $speed;
|
172 |
-
$arguments['liststyle'] = $liststyle;
|
173 |
-
$arguments['playlist_advance'] = $playlist_advance;
|
174 |
-
$arguments['src'] = trim( preg_replace('/\,/', '', $src) );
|
175 |
-
$arguments['linking'] = $linking;
|
176 |
-
$arguments['splash_text'] = $splash_text;
|
177 |
-
|
178 |
} else {
|
179 |
-
$arguments =
|
180 |
-
'src' => '',
|
181 |
-
'src1' => '',
|
182 |
-
'src2' => '',
|
183 |
-
'mobile' => '',
|
184 |
-
'width' => '',
|
185 |
-
'height' => '',
|
186 |
-
'autoplay' => '',
|
187 |
-
'sticky' => '',
|
188 |
-
'splash' => '',
|
189 |
-
'splashend' => '',
|
190 |
-
'popup' => '',
|
191 |
-
'controlbar' => '',
|
192 |
-
'play_button' => '',
|
193 |
-
'redirect' => '',
|
194 |
-
'loop' => '',
|
195 |
-
'engine' => '',
|
196 |
-
'embed' => '',
|
197 |
-
'subtitles' => '',
|
198 |
-
'ad' => '',
|
199 |
-
'ad_width' => '',
|
200 |
-
'ad_height' => '',
|
201 |
-
'ad_skip' => '',
|
202 |
-
'align' => '',
|
203 |
-
'rtmp' => '',
|
204 |
-
'rtmp_path' => '',
|
205 |
-
'playlist' => '',
|
206 |
-
'playlist_hide' => '',
|
207 |
-
'admin_warning' => '',
|
208 |
-
'live' => '',
|
209 |
-
'caption' => '',
|
210 |
-
'caption_html' => '',
|
211 |
-
'logo' => '',
|
212 |
-
'share' => '',
|
213 |
-
'post' => '',
|
214 |
-
'speed' => '',
|
215 |
-
'liststyle' => '',
|
216 |
-
'playlist_advance' => '',
|
217 |
-
'linking' => '',
|
218 |
-
'end_popup_preview' => '',
|
219 |
-
'splash_text' => ''
|
220 |
-
), $atts );
|
221 |
}
|
222 |
|
223 |
if( ( !isset($arguments['src']) || strlen(trim($arguments['src'])) == 0 ) && isset($arguments['mobile']) && strlen(trim($arguments['mobile'])) ) {
|
@@ -225,19 +152,13 @@ function flowplayer_content_handle( $atts, $content = null, $tag = false ) {
|
|
225 |
unset($arguments['mobile']);
|
226 |
}
|
227 |
|
228 |
-
foreach( $atts AS $key => $val ) {
|
229 |
-
if( stripos($key,'subtitles_') === 0 ) {
|
230 |
-
$arguments[$key] = $val;
|
231 |
-
}
|
232 |
-
}
|
233 |
-
|
234 |
$arguments = apply_filters( 'fv_flowplayer_shortcode', $arguments, $fv_fp, $atts );
|
235 |
|
236 |
-
if( $post == 'this' ) {
|
237 |
-
$post = get_the_ID();
|
238 |
}
|
239 |
|
240 |
-
if( intval($post) > 0 ) {
|
241 |
$objVideoQuery = new WP_Query( array( 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_parent' => intval($post), 'post_mime_type' => 'video' ) );
|
242 |
if( $objVideoQuery->have_posts() ) {
|
243 |
$sHTML = '';
|
89 |
}
|
90 |
|
91 |
}
|
92 |
+
|
93 |
+
$atts = wp_parse_args( $atts, array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
'ad' => '',
|
95 |
'ad_width' => '',
|
96 |
'ad_height' => '',
|
97 |
+
'ad_skip' => '',
|
|
|
|
|
|
|
|
|
|
|
98 |
'admin_warning' => '',
|
99 |
+
'align' => '',
|
100 |
+
'autoplay' => '',
|
101 |
'caption' => '',
|
102 |
'caption_html' => '',
|
103 |
+
'controlbar' => '',
|
104 |
+
'embed' => '',
|
105 |
+
'end_popup_preview' => '',
|
106 |
+
'engine' => '',
|
107 |
+
'height' => '',
|
108 |
+
'mobile' => '',
|
109 |
+
'linking' => '',
|
110 |
+
'liststyle' => '',
|
111 |
+
'live' => '',
|
112 |
'logo' => '',
|
113 |
+
'loop' => '',
|
114 |
+
'play_button' => '',
|
115 |
+
'playlist' => '',
|
116 |
+
'playlist_advance' => '',
|
117 |
+
'playlist_hide' => '',
|
118 |
+
'popup' => '',
|
119 |
'post' => '',
|
120 |
+
'redirect' => '',
|
121 |
+
'rtmp' => '',
|
122 |
+
'rtmp_path' => '',
|
123 |
+
'share' => '',
|
124 |
+
'skin' => '',
|
125 |
'speed' => '',
|
126 |
+
'splash' => '',
|
127 |
+
'splash_text' => '',
|
128 |
+
'splashend' => '',
|
129 |
+
'src' => '',
|
130 |
+
'src1' => '',
|
131 |
+
'src2' => '',
|
132 |
+
'sticky' => '',
|
133 |
+
'subtitles' => '',
|
134 |
+
'width' => '',
|
135 |
+
) );
|
136 |
|
137 |
if( $fv_fp->_get_option('parse_commas') && strcmp($tag,'flowplayer') == 0 ) {
|
138 |
+
foreach( $atts AS $k => $v ) {
|
139 |
+
if( in_array($k, array('admin_warning','caption','caption_html','playlist','popup','share') ) ) {
|
140 |
+
$arguments[$k] = $v;
|
141 |
+
} else {
|
142 |
+
$arguments[$k] = preg_replace('/\,/', '', $v);
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
} else {
|
147 |
+
$arguments = $atts;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
if( ( !isset($arguments['src']) || strlen(trim($arguments['src'])) == 0 ) && isset($arguments['mobile']) && strlen(trim($arguments['mobile'])) ) {
|
152 |
unset($arguments['mobile']);
|
153 |
}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
$arguments = apply_filters( 'fv_flowplayer_shortcode', $arguments, $fv_fp, $atts );
|
156 |
|
157 |
+
if( $arguments['post'] == 'this' ) {
|
158 |
+
$arguments['post'] = get_the_ID();
|
159 |
}
|
160 |
|
161 |
+
if( intval($arguments['post']) > 0 ) {
|
162 |
$objVideoQuery = new WP_Query( array( 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_parent' => intval($post), 'post_mime_type' => 'video' ) );
|
163 |
if( $objVideoQuery->have_posts() ) {
|
164 |
$sHTML = '';
|
css/admin-beta.css
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#content .fv-wp-flowplayer-notice-small, .fv-wp-flowplayer-notice-small { position: absolute; top: 0; left: 0; z-index: 20; }
|
2 |
+
#content .flowplayer .fv-wp-flowplayer-notice-small small, .flowplayer .fv-wp-flowplayer-notice-small small { position:relative;left:15px;top:10px;-webkit-transition:all .15s 0s;-moz-transition:all .15s 0s;transition:all .15s 0s }
|
3 |
+
#content .flowplayer.is-mouseover.is-ready .fv-wp-flowplayer-notice-small small, .flowplayer.is-mouseover.is-ready .fv-wp-flowplayer-notice-small small, #content .flowplayer.is-ready.is-paused .fv-wp-flowplayer-notice-small small, .flowplayer.is-ready.is-paused .fv-wp-flowplayer-notice-small small { top: 3em }
|
4 |
+
/*#content .flowplayer.is-ready.is-paused.has-video-checker .fv-wp-flowplayer-notice-small small, .flowplayer.is-ready.is-paused.has-video-checker .fv-wp-flowplayer-notice-small small { top: 0; }*/
|
5 |
+
#content .flowplayer.is-mouseover.is-ready .fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice small, .flowplayer.is-mouseover.is-ready .fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice small, #content .flowplayer .fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice small, .flowplayer .fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice small { top:0;left:0;-webkit-transition:none;-moz-transition:none;transition:none; }
|
6 |
+
#content .fv-wp-flowplayer-notice, .fv-wp-flowplayer-notice { color: black !important; background-color: #FFFFE0; margin: 0; padding: 0 12px; border-radius: 0; border: none; line-height: 15px; z-index: 100; width: 100%; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif }
|
7 |
+
#content .fv-wp-flowplayer-notice strong, .fv-wp-flowplayer-notice strong { font-weight: bold; }
|
8 |
+
#content .fv-wp-flowplayer-notice p, .fv-wp-flowplayer-notice p { font-family: sans-serif; margin: 0.5em 0; padding: 2px; color: #5b5b5b; }
|
9 |
+
.fv-wp-flowplayer-notice p tt, .fv-wp-flowplayer-notice blockquote { color: #000; font-size: 12px; }
|
10 |
+
.fv-wp-flowplayer-notice p tt.bluelink { color: #4189A7; }
|
11 |
+
|
12 |
+
#content .fv-wp-flowplayer-notice a { color: #800 !important; }
|
13 |
+
|
14 |
+
#content .fv-wp-flowplayer-notice blockquote, #content .fv-wp-flowplayer-notice pre, .fv-wp-flowplayer-notice blockquote, .fv-wp-flowplayer-notice pre { padding: 5px; margin: 0; }
|
15 |
+
.fv-wp-flowplayer-notice textarea.wpfp_message_field { border: 1px solid #dedede; color: #8f8f8f; font-size: 12px; padding: 1%; }
|
16 |
+
.fv-wp-flowplayer-notice input[type="button"] { border: 1px solid #960c0c; color: #fff; border-radius: 4px; padding: 5px 8px; box-shadow: inset 0 0 1px #de3232; background: #ad1010; font-size: 12px; line-height: 18px; float: right; margin-bottom: 8px; }
|
17 |
+
#content .fv-wp-flowplayer-notice a.techinfo, .fv-wp-flowplayer-notice a.techinfo { background-image:url(img/techinfo.png); color: gray !important; background-repeat: no-repeat; background-position: left center; display: inline-block; min-height: 18px; padding-left: 24px; margin-top: 5px; }
|
18 |
+
#content .fv-wp-flowplayer-notice.fv-wp-flowplayer-error, .fv-wp-flowplayer-notice.fv-wp-flowplayer-error { background-color: #FFEBE8; border-color: #CC0000; }
|
19 |
+
#content .fv-wp-flowplayer-notice.fv-wp-flowplayer-notice, .fv-wp-flowplayer-notice.fv-wp-flowplayer-notice { background-color: #EDEDED; border-color: #c0c0c0; box-shadow: 0 0 4px #ccc; }
|
20 |
+
.fv-wp-flowplayer-notice-small .fv_wp_flowplayer_notice_head { display: none; }
|
21 |
+
.fv-wp-flowplayer-notice.fv-wp-flowplayer-notice .fv_wp_flowplayer_notice_head { display: block; text-align: center; font-size: 14px; padding: 10px; line-height: 1; margin: 0 -12px 1em; background-color: #ccc; text-transform: uppercase; }
|
22 |
+
.fv-wp-flowplayer-notice.fv-wp-flowplayer-notice .fv_wp_flowplayer_notice_head:after { position: absolute; top: 5px; right: 5px; content: '\f335'; font-family: 'dashicons'; line-height: 1; vertical-align: top; font-size: 24px; color: #666; cursor: pointerc }
|
23 |
+
|
24 |
+
.fv-wp-flowplayer-notice-small .vid-ok { color: green; }
|
25 |
+
.fv-wp-flowplayer-notice-small .vid-warning { color: orange; }
|
26 |
+
.fv-wp-flowplayer-notice-small .vid-issues { color: red; }
|
27 |
+
|
28 |
+
|
29 |
+
.fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice .vid-ok { color: #114b00; }
|
30 |
+
.fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice .vid-warning { color: #ac641e; }
|
31 |
+
.fv-wp-flowplayer-notice-small.fv-wp-flowplayer-notice .vid-issues { color: #670004; }
|
32 |
+
|
33 |
+
.fv-wp-fp-hidden { display: none; }
|
34 |
+
.fv-wp-flowplayer-notice-parsed .row { text-align: left; border-bottom: 1px solid lightgray; border-right: 1px solid lightgray; border-left: 1px solid lightgray; padding-left: 5px; font-size: 12px; clear: both; }
|
35 |
+
.fv-wp-flowplayer-notice-parsed .close { height: 0px; }
|
36 |
+
.fv-wp-flowplayer-notice-parsed .value { border-left: 1px solid lightgray; display: inline-block; float: right; padding-left: 5px; width: 270px; /*height: 21px; overflow: hidden;*/ }
|
37 |
+
.fv-wp-flowplayer-notice-parsed.indent { margin-left: 10px; }
|
38 |
+
.fv-wp-flowplayer-notice-parsed.level-1 { background: #f8f8f8; }
|
39 |
+
.fv-wp-flowplayer-notice-parsed.level-2 { background: #f0f0f0; }
|
40 |
+
.fv-wp-flowplayer-notice-parsed.level-3 { background: #e8e8e8; }
|
41 |
+
.fv-wp-flowplayer-notice-parsed.level-4 { background: #e0e0e0; }
|
42 |
+
.fv-wp-flowplayer-notice-parsed.level-5 { background: #d8d8d8; }
|
43 |
+
.fv-wp-flowplayer-notice-parsed.level-6 { background: #d0d0d0; }
|
44 |
+
.fv-wp-flowplayer-notice-parsed.level-7 { background: #c8c8c8; }
|
45 |
+
.mail-content-details { height: 200px; overflow: auto; width: 100%; }
|
46 |
+
.fv-player-interface-form-group td { width:50%; }
|
47 |
+
|
48 |
+
.flowplayer-wrapper { width: 70%; display: inline-block; float: right;}
|
49 |
+
@media only screen and (max-width: 940px) {.flowplayer-wrapper { width: 100%; float: none;} .form-table2.flowplayer-settings {width: 100% !important;}}
|
50 |
+
|
51 |
+
|
52 |
+
#fv-player-popups-settings tr.data:nth-child(even) { background-color: #f6f6f6; }
|
53 |
+
.fv-player-popup-remove { visibility: hidden; }
|
54 |
+
td:hover > .fv-player-popup-remove { visibility: visible; }
|
55 |
+
.fv-player-list-remove { visibility: hidden; }
|
56 |
+
td:hover > .fv-player-list-remove { visibility: visible; }
|
57 |
+
#fv_flowplayer_popups table { -webkit-border-collapse:collapse;-moz-border-collapse:collapse;border-collapse:collapse }
|
58 |
+
table.fv-player-popup-formats td:first-child { width: 72px }
|
59 |
+
#fv_flowplayer_popups .inside label {
|
60 |
+
display: initial;
|
61 |
+
text-align: inherit;
|
62 |
+
}
|
63 |
+
#fv-player-popups-settings > tbody > tr > td:nth-child( 1 ) {
|
64 |
+
text-align: center;
|
65 |
+
max-width: 7px;
|
66 |
+
}
|
67 |
+
#fv-player-email_lists-settings tr td {
|
68 |
+
vertical-align: top;
|
69 |
+
}
|
70 |
+
#fv-player-email_lists-settings >tbody > tr > td {
|
71 |
+
padding: 2px;
|
72 |
+
}
|
73 |
+
#fv-player-email_lists-settings > tbody > tr:nth-child(even) {
|
74 |
+
background-color: #f6f6f6;
|
75 |
+
}
|
76 |
+
#fv-player-email_lists-settings,
|
77 |
+
#fv-player-email_lists-settings table {
|
78 |
+
-webkit-border-collapse: collapse;
|
79 |
+
-moz-border-collapse: collapse;
|
80 |
+
border-collapse: collapse;
|
81 |
+
}
|
82 |
+
#fv-player-email_lists-settings table tr td label {
|
83 |
+
line-height: 1.8;
|
84 |
+
}
|
85 |
+
#fv-player-email_lists-settings .id {
|
86 |
+
padding: 5px;
|
87 |
+
}
|
88 |
+
#fv-player-email_lists-settings table tr td,
|
89 |
+
.fv-metabox-holder {
|
90 |
+
padding-top:0!important;
|
91 |
+
}
|
92 |
+
#fv-player-email_lists-settings select {
|
93 |
+
width: 95%;
|
94 |
+
}
|
95 |
+
|
96 |
+
.fv-nav-tab-wrapper {
|
97 |
+
border-bottom: 0px!important;
|
98 |
+
margin-left: 1px!important;
|
99 |
+
}
|
100 |
+
|
101 |
+
.fv-metabox-holder .postbox.hide-if-js {
|
102 |
+
display:block;
|
103 |
+
}
|
104 |
+
|
105 |
+
.fv-metabox-holder .postbox:first-child > .hndle, .fv-metabox-holder .postbox:first-child > .handlediv {
|
106 |
+
display:none;
|
107 |
+
}
|
108 |
+
|
109 |
+
#fv_flowplayer_admin_tabs .nav-tab-active {
|
110 |
+
background-color: #ffffff;
|
111 |
+
border-bottom: #ffffff;
|
112 |
+
}
|
113 |
+
|
114 |
+
.wp-admin .user-videos .fv-player-custom-video {
|
115 |
+
margin-bottom: 10px;
|
116 |
+
}
|
117 |
+
.wp-admin .user-videos .flowplayer, .postbox-container .fv-player-custom-video .flowplayer, .usersultra-dahsboard-center .fv-player-custom-video .flowplayer {
|
118 |
+
max-width: 432px !important;
|
119 |
+
margin: 2px;
|
120 |
+
}
|
121 |
+
.wp-admin .user-videos .fv-player-custom-video > iframe, .postbox-container .fv-player-custom-video > iframe, .usersultra-dahsboard-center .fv-player-custom-video > iframe {
|
122 |
+
display: block;
|
123 |
+
overflow: hidden;
|
124 |
+
width: 432px;
|
125 |
+
height: 243px;
|
126 |
+
}
|
127 |
+
|
128 |
+
#fv_flowplayer_interface_options p.description {line-height:1.5;margin-bottom:0;margin-top:0}
|
129 |
+
|
130 |
+
#fp-preview-wrapper{height:360px;width:420px;position:absolute;top:0px;right:50px}
|
131 |
+
#fp-preview-wrapper>.flowplayer{position:relative; height:160px}
|
132 |
+
#fp-preview-wrapper .fp-subtitle{height:50px}
|
133 |
+
|
134 |
+
#dashboard-widgets .flowplayer-wrapper h3, #dashboard-widgets .flowplayer-wrapper h4 {color:inherit;margin:0 auto;padding:0;font-weight:700;font-size:inherit}
|
css/flowplayer-beta.css
ADDED
@@ -0,0 +1,1938 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";
|
2 |
+
@font-face {
|
3 |
+
font-family: flowplayer;
|
4 |
+
src: url("icons/flowplayer.eot?#iefix") format("embedded-opentype"), url("icons/flowplayer.woff2") format("woff2"), url("icons/flowplayer.woff") format("woff"); }
|
5 |
+
|
6 |
+
.fp-icon {
|
7 |
+
display: inline-block; }
|
8 |
+
.fp-icon:before {
|
9 |
+
font-family: flowplayer;
|
10 |
+
font-size: 1.7em; }
|
11 |
+
|
12 |
+
.fp-airplay:before {
|
13 |
+
content: "\e001"; }
|
14 |
+
|
15 |
+
.fp-fullscreen:before {
|
16 |
+
content: "\e002"; }
|
17 |
+
|
18 |
+
.fp-checked:before {
|
19 |
+
content: "\e003"; }
|
20 |
+
|
21 |
+
.fp-embed:before {
|
22 |
+
content: "\e004";
|
23 |
+
color: #fff; }
|
24 |
+
|
25 |
+
.fp-chromecast:before {
|
26 |
+
content: "\e005"; }
|
27 |
+
|
28 |
+
.fp-email:before {
|
29 |
+
content: "\e006"; }
|
30 |
+
|
31 |
+
.fp-playbtn:before {
|
32 |
+
content: "\e007"; }
|
33 |
+
|
34 |
+
.fp-share:before {
|
35 |
+
content: "\e009"; }
|
36 |
+
|
37 |
+
.fp-share2:before {
|
38 |
+
content: "\e00a"; }
|
39 |
+
|
40 |
+
.fp-twitter:before {
|
41 |
+
content: "\e00c";
|
42 |
+
color: #1da1f2; }
|
43 |
+
|
44 |
+
.fp-facebook:before {
|
45 |
+
content: "\e00a";
|
46 |
+
color: #3b5998; }
|
47 |
+
|
48 |
+
.fp-volumebtn:before {
|
49 |
+
content: "\e00b"; }
|
50 |
+
|
51 |
+
.fp-volume-off:before {
|
52 |
+
content: "\e00d"; }
|
53 |
+
|
54 |
+
.fp-unload:before {
|
55 |
+
content: "\e00f"; }
|
56 |
+
|
57 |
+
.fp-prevbtn:before {
|
58 |
+
content: "\e011"; }
|
59 |
+
|
60 |
+
.fp-nextbtn:before {
|
61 |
+
content: "\e012"; }
|
62 |
+
|
63 |
+
.flowplayer.is-mouseover .fp-captions, .flowplayer.is-paused .fp-captions {
|
64 |
+
bottom: 3em; }
|
65 |
+
|
66 |
+
.flowplayer.is-poster .fp-engine {
|
67 |
+
filter: alpha(opacity=0);
|
68 |
+
opacity: 0; }
|
69 |
+
|
70 |
+
.flowplayer.is-loading .fp-engine {
|
71 |
+
top: -9999em; }
|
72 |
+
|
73 |
+
.flowplayer.is-loading .fp-ui .fp-header, .flowplayer.is-loading .fp-ui .fp-controls {
|
74 |
+
filter: alpha(opacity=0);
|
75 |
+
opacity: 0; }
|
76 |
+
|
77 |
+
.flowplayer.is-splash .fp-ui > *, .flowplayer.is-poster .fp-ui > * {
|
78 |
+
display: none; }
|
79 |
+
|
80 |
+
.flowplayer.is-splash .fp-ui > .fp-play, .flowplayer.is-poster .fp-ui > .fp-play {
|
81 |
+
display: block; }
|
82 |
+
|
83 |
+
.flowplayer.is-splash.is-loading .fp-ui > .fp-play, .flowplayer.is-poster.is-loading .fp-ui > .fp-play {
|
84 |
+
display: none; }
|
85 |
+
|
86 |
+
.flowplayer.is-splash.is-loading .fp-ui > .fp-waiting, .flowplayer.is-poster.is-loading .fp-ui > .fp-waiting {
|
87 |
+
display: block; }
|
88 |
+
|
89 |
+
.flowplayer.is-poster .fp-engine {
|
90 |
+
left: -9999em;
|
91 |
+
top: -9999em; }
|
92 |
+
|
93 |
+
.flowplayer.is-poster .fp-captions {
|
94 |
+
display: none !important; }
|
95 |
+
|
96 |
+
.flowplayer.is-disabled .fp-color {
|
97 |
+
background-color: #999; }
|
98 |
+
|
99 |
+
.flowplayer.has-title .fp-header {
|
100 |
+
top: 0;
|
101 |
+
text-align: right; }
|
102 |
+
|
103 |
+
.flowplayer.is-fullscreen {
|
104 |
+
top: 0 !important;
|
105 |
+
left: 0 !important;
|
106 |
+
border: 0 !important;
|
107 |
+
margin: 0 !important;
|
108 |
+
width: 100% !important;
|
109 |
+
height: 100% !important;
|
110 |
+
max-width: 100% !important;
|
111 |
+
z-index: 99999 !important;
|
112 |
+
-webkit-box-shadow: 0 !important;
|
113 |
+
box-shadow: 0 !important;
|
114 |
+
background-image: none !important;
|
115 |
+
background-color: #333; }
|
116 |
+
.flowplayer.is-fullscreen .fp-player {
|
117 |
+
background-color: #333; }
|
118 |
+
.flowplayer.is-fullscreen .fp-fullscreen:before {
|
119 |
+
content: "\e016"; }
|
120 |
+
|
121 |
+
.flowplayer.is-fullscreen.fp-outlined .fp-fullscreen:before, .flowplayer.is-fullscreen.fp-minimal .fp-fullscreen:before {
|
122 |
+
content: "\e216"; }
|
123 |
+
|
124 |
+
.flowplayer.is-fullscreen.fp-edgy .fp-fullscreen:before {
|
125 |
+
content: "\e116"; }
|
126 |
+
|
127 |
+
.flowplayer.is-fullscreen.fp-edgy.fp-outlined .fp-fullscreen:before, .flowplayer.is-fullscreen.fp-edgy.fp-minimal .fp-fullscreen:before {
|
128 |
+
content: "\e316"; }
|
129 |
+
|
130 |
+
.flowplayer.is-fullscreen.is-mouseout.is-playing .fp-ui {
|
131 |
+
cursor: none; }
|
132 |
+
|
133 |
+
.flowplayer.is-loading .fp-waiting, .flowplayer.is-seeking .fp-waiting {
|
134 |
+
display: block !important; }
|
135 |
+
.flowplayer.is-loading .fp-waiting svg, .flowplayer.is-loading .fp-waiting p, .flowplayer.is-seeking .fp-waiting svg, .flowplayer.is-seeking .fp-waiting p {
|
136 |
+
filter: alpha(opacity=100);
|
137 |
+
opacity: 1; }
|
138 |
+
|
139 |
+
.flowplayer.is-loading .fp-play, .flowplayer.is-seeking .fp-play {
|
140 |
+
display: none !important; }
|
141 |
+
|
142 |
+
.flowplayer.is-playing {
|
143 |
+
background-image: none !important; }
|
144 |
+
.flowplayer.is-playing .fp-playbtn:before {
|
145 |
+
content: "\e008"; }
|
146 |
+
|
147 |
+
.flowplayer.is-playing.fp-outlined .fp-playbtn:before, .flowplayer.is-playing.fp-minimal .fp-playbtn:before {
|
148 |
+
content: "\e208"; }
|
149 |
+
|
150 |
+
.flowplayer.is-playing.fp-edgy .fp-playbtn:before {
|
151 |
+
content: "\e108"; }
|
152 |
+
|
153 |
+
.flowplayer.is-playing.fp-edgy.fp-outlined .fp-playbtn:before, .flowplayer.is-playing.fp-edgy.fp-minimal .fp-playbtn:before {
|
154 |
+
content: "\e308"; }
|
155 |
+
|
156 |
+
.flowplayer.is-muted .fp-volumebtn:before {
|
157 |
+
content: "\e00d"; }
|
158 |
+
|
159 |
+
.flowplayer.is-muted.fp-outlined .fp-volumebtn:before, .flowplayer.is-muted.fp-minimal .fp-volumebtn:before {
|
160 |
+
content: "\e20d"; }
|
161 |
+
|
162 |
+
.flowplayer.is-muted.fp-edgy .fp-volumebtn:before {
|
163 |
+
content: "\e10d"; }
|
164 |
+
|
165 |
+
.flowplayer.is-muted.fp-edgy.fp-outlined .fp-volumebtn:before, .flowplayer.is-muted.fp-edgy.fp-minimal .fp-volumebtn:before {
|
166 |
+
content: "\e30d"; }
|
167 |
+
|
168 |
+
.flowplayer.is-inverted .fp-duration {
|
169 |
+
display: none; }
|
170 |
+
|
171 |
+
.flowplayer.is-inverted .fp-remaining {
|
172 |
+
display: block; }
|
173 |
+
|
174 |
+
.flowplayer.is-closeable .fp-header .fp-unload {
|
175 |
+
display: block; }
|
176 |
+
|
177 |
+
.flowplayer.is-error {
|
178 |
+
background-color: #aaa; }
|
179 |
+
.flowplayer.is-error .fp-ui {
|
180 |
+
filter: alpha(opacity=100);
|
181 |
+
opacity: 1; }
|
182 |
+
|
183 |
+
.flowplayer.is-live .fp-timeline {
|
184 |
+
visibility: hidden; }
|
185 |
+
|
186 |
+
.flowplayer.is-live .fp-bar > *.fp-buffer, .flowplayer.is-live .fp-bar-slider > *.fp-buffer {
|
187 |
+
max-width: 100%; }
|
188 |
+
|
189 |
+
.flowplayer.is-live.is-dvr .fp-timeline {
|
190 |
+
visibility: visible; }
|
191 |
+
|
192 |
+
.flowplayer.is-live.is-dvr.is-live-position .fp-duration {
|
193 |
+
color: #00abcd; }
|
194 |
+
|
195 |
+
.flowplayer.is-flash-disabled .fp-waiting {
|
196 |
+
display: none !important; }
|
197 |
+
|
198 |
+
.flowplayer.is-flash-disabled .fp-ui {
|
199 |
+
height: auto;
|
200 |
+
background: none;
|
201 |
+
filter: alpha(opacity=100);
|
202 |
+
opacity: 1; }
|
203 |
+
.flowplayer.is-flash-disabled .fp-ui .fp-header, .flowplayer.is-flash-disabled .fp-ui .fp-controls {
|
204 |
+
display: none; }
|
205 |
+
|
206 |
+
.flowplayer.is-flash-disabled .fp-engine {
|
207 |
+
top: 0; }
|
208 |
+
|
209 |
+
.flowplayer.is-tiny {
|
210 |
+
font-size: .7em; }
|
211 |
+
|
212 |
+
.flowplayer.is-small {
|
213 |
+
font-size: .8em; }
|
214 |
+
|
215 |
+
.flowplayer.no-buffer .fp-ui .fp-controls .fp-timeline .fp-buffer {
|
216 |
+
display: none; }
|
217 |
+
|
218 |
+
.flowplayer.no-volume .fp-volumebar {
|
219 |
+
display: none; }
|
220 |
+
|
221 |
+
.flowplayer.fp-mute .fp-volumebtn {
|
222 |
+
display: inline-block; }
|
223 |
+
|
224 |
+
@-webkit-keyframes pulse {
|
225 |
+
0% {
|
226 |
+
filter: alpha(opacity=0);
|
227 |
+
opacity: 0; }
|
228 |
+
100% {
|
229 |
+
filter: alpha(opacity=100);
|
230 |
+
opacity: 1; } }
|
231 |
+
|
232 |
+
@keyframes pulse {
|
233 |
+
0% {
|
234 |
+
filter: alpha(opacity=0);
|
235 |
+
opacity: 0; }
|
236 |
+
100% {
|
237 |
+
filter: alpha(opacity=100);
|
238 |
+
opacity: 1; } }
|
239 |
+
|
240 |
+
.flowplayer .fp-chromecast-engine {
|
241 |
+
position: absolute;
|
242 |
+
display: none;
|
243 |
+
top: 0;
|
244 |
+
bottom: 0;
|
245 |
+
right: 0;
|
246 |
+
left: 0;
|
247 |
+
color: #fff; }
|
248 |
+
.flowplayer .fp-chromecast-engine .fp-chromecast-engine-status {
|
249 |
+
font-size: 150%;
|
250 |
+
text-align: center; }
|
251 |
+
.flowplayer .fp-chromecast-engine .fp-chromecast-engine-icon {
|
252 |
+
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIG9wYWNpdHk9Ii4xIi8+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+CiAgICA8cGF0aCBkPSJNMSAxOHYzaDNjMC0xLjY2LTEuMzQtMy0zLTN6bTAtNHYyYzIuNzYgMCA1IDIuMjQgNSA1aDJjMC0zLjg3LTMuMTMtNy03LTd6bTE4LTdINXYxLjYzYzMuOTYgMS4yOCA3LjA5IDQuNDEgOC4zNyA4LjM3SDE5Vjd6TTEgMTB2MmM0Ljk3IDAgOSA0LjAzIDkgOWgyYzAtNi4wOC00LjkzLTExLTExLTExem0yMC03SDNjLTEuMSAwLTIgLjktMiAydjNoMlY1aDE4djE0aC03djJoN2MxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yeiIvPgo8L3N2Zz4=");
|
253 |
+
mask-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIG9wYWNpdHk9Ii4xIi8+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+CiAgICA8cGF0aCBkPSJNMSAxOHYzaDNjMC0xLjY2LTEuMzQtMy0zLTN6bTAtNHYyYzIuNzYgMCA1IDIuMjQgNSA1aDJjMC0zLjg3LTMuMTMtNy03LTd6bTE4LTdINXYxLjYzYzMuOTYgMS4yOCA3LjA5IDQuNDEgOC4zNyA4LjM3SDE5Vjd6TTEgMTB2MmM0Ljk3IDAgOSA0LjAzIDkgOWgyYzAtNi4wOC00LjkzLTExLTExLTExem0yMC03SDNjLTEuMSAwLTIgLjktMiAydjNoMlY1aDE4djE0aC03djJoN2MxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yeiIvPgo8L3N2Zz4=");
|
254 |
+
-webkit-mask-size: 100% 100%;
|
255 |
+
background-color: #fff;
|
256 |
+
margin: 10% auto 2em;
|
257 |
+
height: 5em;
|
258 |
+
width: 5em; }
|
259 |
+
|
260 |
+
.flowplayer.is-chromecast {
|
261 |
+
background-color: #333; }
|
262 |
+
.flowplayer.is-chromecast .fp-chromecast-engine {
|
263 |
+
display: block; }
|
264 |
+
.flowplayer.is-chromecast .fp-flash-disabled {
|
265 |
+
display: none !important; }
|
266 |
+
.flowplayer.is-chromecast .fp-engine {
|
267 |
+
left: -9999em;
|
268 |
+
top: -9999em;
|
269 |
+
bottom: auto;
|
270 |
+
right: auto; }
|
271 |
+
|
272 |
+
.flowplayer.fp-default-playlist .fp-prev, .flowplayer.fp-default-playlist .fp-next {
|
273 |
+
position: absolute;
|
274 |
+
top: 45%;
|
275 |
+
filter: alpha(opacity=30);
|
276 |
+
opacity: 0.3;
|
277 |
+
-webkit-transition: opacity 0.2s;
|
278 |
+
transition: opacity 0.2s; }
|
279 |
+
.flowplayer.fp-default-playlist .fp-prev:before, .flowplayer.fp-default-playlist .fp-next:before {
|
280 |
+
font-family: flowplayer;
|
281 |
+
font-size: 2.8em; }
|
282 |
+
|
283 |
+
.flowplayer.fp-default-playlist .fp-prev {
|
284 |
+
left: 0.4em; }
|
285 |
+
.flowplayer.fp-default-playlist .fp-prev:before {
|
286 |
+
content: "\e011"; }
|
287 |
+
|
288 |
+
.flowplayer.fp-default-playlist .fp-next {
|
289 |
+
right: 0.4em; }
|
290 |
+
.flowplayer.fp-default-playlist .fp-next:before {
|
291 |
+
content: "\e012"; }
|
292 |
+
|
293 |
+
.flowplayer.fp-default-playlist .fp-playlist {
|
294 |
+
position: absolute;
|
295 |
+
right: 0.4em;
|
296 |
+
bottom: 3em;
|
297 |
+
width: 100%;
|
298 |
+
text-align: center; }
|
299 |
+
.flowplayer.fp-default-playlist .fp-playlist a {
|
300 |
+
background-color: #fff;
|
301 |
+
height: 0.8em;
|
302 |
+
border-radius: 50%;
|
303 |
+
width: 0.8em;
|
304 |
+
filter: alpha(opacity=70);
|
305 |
+
opacity: 0.7;
|
306 |
+
display: inline-block;
|
307 |
+
-webkit-transition: -webkit-transform 0.2s;
|
308 |
+
transition: -webkit-transform 0.2s;
|
309 |
+
transition: transform 0.2s;
|
310 |
+
transition: transform 0.2s, -webkit-transform 0.2s; }
|
311 |
+
.flowplayer.fp-default-playlist .fp-playlist a:hover {
|
312 |
+
-webkit-transform: scale(1.2, 1.2);
|
313 |
+
-ms-transform: scale(1.2, 1.2);
|
314 |
+
transform: scale(1.2, 1.2); }
|
315 |
+
.flowplayer.fp-default-playlist .fp-playlist a.is-active {
|
316 |
+
filter: alpha(opacity=100);
|
317 |
+
opacity: 1; }
|
318 |
+
|
319 |
+
.flowplayer.fp-default-playlist.fp-edgy .fp-prev:before {
|
320 |
+
content: "\e111"; }
|
321 |
+
|
322 |
+
.flowplayer.fp-default-playlist.fp-edgy .fp-next:before {
|
323 |
+
content: "\e112"; }
|
324 |
+
|
325 |
+
.flowplayer.fp-default-playlist.fp-outlined .fp-prev:before, .flowplayer.fp-default-playlist.fp-minimal .fp-prev:before {
|
326 |
+
content: "\e211"; }
|
327 |
+
|
328 |
+
.flowplayer.fp-default-playlist.fp-outlined .fp-next:before, .flowplayer.fp-default-playlist.fp-minimal .fp-next:before {
|
329 |
+
content: "\e212"; }
|
330 |
+
|
331 |
+
.flowplayer.fp-default-playlist.fp-edgy.fp-outlined .fp-prev:before, .flowplayer.fp-default-playlist.fp-edgy.fp-minimal .fp-prev:before {
|
332 |
+
content: "\e311"; }
|
333 |
+
|
334 |
+
.flowplayer.fp-default-playlist.fp-edgy.fp-outlined .fp-next:before, .flowplayer.fp-default-playlist.fp-edgy.fp-minimal .fp-next:before {
|
335 |
+
content: "\e312"; }
|
336 |
+
|
337 |
+
.flowplayer.fp-custom-playlist {
|
338 |
+
overflow: visible; }
|
339 |
+
.flowplayer.fp-custom-playlist .fp-playlist, .flowplayer.fp-custom-playlist.is-splash .fp-playlist, .flowplayer.fp-custom-playlist.is-poster .fp-playlist, .flowplayer.fp-custom-playlist.is-loading .fp-playlist {
|
340 |
+
display: block;
|
341 |
+
filter: alpha(opacity=100);
|
342 |
+
opacity: 1; }
|
343 |
+
|
344 |
+
.flowplayer.fp-edgy .fp-play svg.fp-play-rounded-fill, .flowplayer.fp-edgy .fp-play svg.fp-pause-rounded-fill, .flowplayer.fp-edgy .fp-play svg.fp-play-rounded-outline, .flowplayer.fp-edgy .fp-play svg.fp-pause-rounded-outline, .flowplayer.fp-edgy .fp-play svg.fp-loading-rounded-outline, .flowplayer.fp-edgy .fp-play svg.fp-loading-rounded-fill, .flowplayer.fp-edgy .fp-pause svg.fp-play-rounded-fill, .flowplayer.fp-edgy .fp-pause svg.fp-pause-rounded-fill, .flowplayer.fp-edgy .fp-pause svg.fp-play-rounded-outline, .flowplayer.fp-edgy .fp-pause svg.fp-pause-rounded-outline, .flowplayer.fp-edgy .fp-pause svg.fp-loading-rounded-outline, .flowplayer.fp-edgy .fp-pause svg.fp-loading-rounded-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-play-rounded-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-pause-rounded-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-play-rounded-outline, .flowplayer.fp-edgy .fp-waiting svg.fp-pause-rounded-outline, .flowplayer.fp-edgy .fp-waiting svg.fp-loading-rounded-outline, .flowplayer.fp-edgy .fp-waiting svg.fp-loading-rounded-fill {
|
345 |
+
display: none !important; }
|
346 |
+
|
347 |
+
.flowplayer.fp-edgy .fp-play svg.fp-play-sharp-fill, .flowplayer.fp-edgy .fp-play svg.fp-pause-sharp-fill, .flowplayer.fp-edgy .fp-play svg.fp-loading-sharp-fill, .flowplayer.fp-edgy .fp-pause svg.fp-play-sharp-fill, .flowplayer.fp-edgy .fp-pause svg.fp-pause-sharp-fill, .flowplayer.fp-edgy .fp-pause svg.fp-loading-sharp-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-play-sharp-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-pause-sharp-fill, .flowplayer.fp-edgy .fp-waiting svg.fp-loading-sharp-fill {
|
348 |
+
display: block; }
|
349 |
+
|
350 |
+
.flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-loading-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-loading-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-loading-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-loading-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-play-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-pause-sharp-fill, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-loading-sharp-fill, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-loading-sharp-fill {
|
351 |
+
display: none; }
|
352 |
+
|
353 |
+
.flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-play svg.fp-loading-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-play svg.fp-loading-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-pause svg.fp-loading-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-pause svg.fp-loading-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-play-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-pause-sharp-outline, .flowplayer.fp-edgy.fp-outlined .fp-waiting svg.fp-loading-sharp-outline, .flowplayer.fp-edgy.fp-minimal .fp-waiting svg.fp-loading-sharp-outline {
|
354 |
+
display: block; }
|
355 |
+
|
356 |
+
.flowplayer.fp-edgy, .flowplayer.fp-edgy .fp-menu, .flowplayer.fp-edgy .fp-captions p, .flowplayer.fp-edgy .fp-textarea, .flowplayer.fp-edgy .fp-bar, .flowplayer.fp-edgy .fp-bar-slider, .flowplayer.fp-edgy .fp-bar > *, .flowplayer.fp-edgy .fp-bar-slider > *, .flowplayer.fp-edgy .fp-timestamp {
|
357 |
+
border-radius: 0; }
|
358 |
+
|
359 |
+
.flowplayer.fp-edgy .fp-airplay:before {
|
360 |
+
content: "\e101"; }
|
361 |
+
|
362 |
+
.flowplayer.fp-edgy .fp-fullscreen:before {
|
363 |
+
content: "\e102"; }
|
364 |
+
|
365 |
+
.flowplayer.fp-edgy .fp-checked:before {
|
366 |
+
content: "\e103"; }
|
367 |
+
|
368 |
+
.flowplayer.fp-edgy .fp-embed:before {
|
369 |
+
content: "\e104"; }
|
370 |
+
|
371 |
+
.flowplayer.fp-edgy .fp-chromecast:before {
|
372 |
+
content: "\e105"; }
|
373 |
+
|
374 |
+
.flowplayer.fp-edgy .fp-email:before {
|
375 |
+
content: "\e106"; }
|
376 |
+
|
377 |
+
.flowplayer.fp-edgy .fp-playbtn:before {
|
378 |
+
content: "\e107"; }
|
379 |
+
|
380 |
+
.flowplayer.fp-edgy .fp-share:before {
|
381 |
+
content: "\e109"; }
|
382 |
+
|
383 |
+
.flowplayer.fp-edgy .fp-share2:before {
|
384 |
+
content: "\e10a"; }
|
385 |
+
|
386 |
+
.flowplayer.fp-edgy .fp-twitter:before {
|
387 |
+
content: "\e10c"; }
|
388 |
+
|
389 |
+
.flowplayer.fp-edgy .fp-facebook:before {
|
390 |
+
content: "\e10a"; }
|
391 |
+
|
392 |
+
.flowplayer.fp-edgy .fp-volumebtn:before {
|
393 |
+
content: "\e10b"; }
|
394 |
+
|
395 |
+
.flowplayer.fp-edgy .fp-volume-off:before {
|
396 |
+
content: "\e10d"; }
|
397 |
+
|
398 |
+
.flowplayer.fp-edgy .fp-unload:before {
|
399 |
+
content: "\e10f"; }
|
400 |
+
|
401 |
+
.flowplayer.fp-edgy .fp-prevbtn:before {
|
402 |
+
content: "\e111"; }
|
403 |
+
|
404 |
+
.flowplayer.fp-edgy .fp-nextbtn:before {
|
405 |
+
content: "\e112"; }
|
406 |
+
|
407 |
+
.flowplayer.fp-edgy.fp-outlined .fp-airplay:before, .flowplayer.fp-edgy.fp-minimal .fp-airplay:before {
|
408 |
+
content: "\e301"; }
|
409 |
+
|
410 |
+
.flowplayer.fp-edgy.fp-outlined .fp-fullscreen:before, .flowplayer.fp-edgy.fp-minimal .fp-fullscreen:before {
|
411 |
+
content: "\e302"; }
|
412 |
+
|
413 |
+
.flowplayer.fp-edgy.fp-outlined .fp-checked:before, .flowplayer.fp-edgy.fp-minimal .fp-checked:before {
|
414 |
+
content: "\e303"; }
|
415 |
+
|
416 |
+
.flowplayer.fp-edgy.fp-outlined .fp-embed:before, .flowplayer.fp-edgy.fp-minimal .fp-embed:before {
|
417 |
+
content: "\e304"; }
|
418 |
+
|
419 |
+
.flowplayer.fp-edgy.fp-outlined .fp-chromecast:before, .flowplayer.fp-edgy.fp-minimal .fp-chromecast:before {
|
420 |
+
content: "\e305"; }
|
421 |
+
|
422 |
+
.flowplayer.fp-edgy.fp-outlined .fp-email:before, .flowplayer.fp-edgy.fp-minimal .fp-email:before {
|
423 |
+
content: "\e306"; }
|
424 |
+
|
425 |
+
.flowplayer.fp-edgy.fp-outlined .fp-playbtn:before, .flowplayer.fp-edgy.fp-minimal .fp-playbtn:before {
|
426 |
+
content: "\e307"; }
|
427 |
+
|
428 |
+
.flowplayer.fp-edgy.fp-outlined .fp-share:before, .flowplayer.fp-edgy.fp-minimal .fp-share:before {
|
429 |
+
content: "\e309"; }
|
430 |
+
|
431 |
+
.flowplayer.fp-edgy.fp-outlined .fp-share2:before, .flowplayer.fp-edgy.fp-minimal .fp-share2:before {
|
432 |
+
content: "\e30a"; }
|
433 |
+
|
434 |
+
.flowplayer.fp-edgy.fp-outlined .fp-twitter:before, .flowplayer.fp-edgy.fp-minimal .fp-twitter:before {
|
435 |
+
content: "\e30c"; }
|
436 |
+
|
437 |
+
.flowplayer.fp-edgy.fp-outlined .fp-facebook:before, .flowplayer.fp-edgy.fp-minimal .fp-facebook:before {
|
438 |
+
content: "\e30a"; }
|
439 |
+
|
440 |
+
.flowplayer.fp-edgy.fp-outlined .fp-volumebtn:before, .flowplayer.fp-edgy.fp-minimal .fp-volumebtn:before {
|
441 |
+
content: "\e30b"; }
|
442 |
+
|
443 |
+
.flowplayer.fp-edgy.fp-outlined .fp-volume-off:before, .flowplayer.fp-edgy.fp-minimal .fp-volume-off:before {
|
444 |
+
content: "\e30d"; }
|
445 |
+
|
446 |
+
.flowplayer.fp-edgy.fp-outlined .fp-unload:before, .flowplayer.fp-edgy.fp-minimal .fp-unload:before {
|
447 |
+
content: "\e30f"; }
|
448 |
+
|
449 |
+
.flowplayer.fp-edgy.fp-outlined .fp-prevbtn:before, .flowplayer.fp-edgy.fp-minimal .fp-prevbtn:before {
|
450 |
+
content: "\e311"; }
|
451 |
+
|
452 |
+
.flowplayer.fp-edgy.fp-outlined .fp-nextbtn:before, .flowplayer.fp-edgy.fp-minimal .fp-nextbtn:before {
|
453 |
+
content: "\e312"; }
|
454 |
+
|
455 |
+
.flowplayer.no-svg .fp-ui .fp-header, .flowplayer.no-svg .fp-ui .fp-controls {
|
456 |
+
background-color: #333; }
|
457 |
+
|
458 |
+
.flowplayer.no-svg .fp-ui .fp-play.fp-visible {
|
459 |
+
background-color: #ccc;
|
460 |
+
position: absolute;
|
461 |
+
padding-top: 17%;
|
462 |
+
top: 0;
|
463 |
+
left: 0;
|
464 |
+
right: 0;
|
465 |
+
bottom: 0; }
|
466 |
+
.flowplayer.no-svg .fp-ui .fp-play.fp-visible svg {
|
467 |
+
display: none; }
|
468 |
+
.flowplayer.no-svg .fp-ui .fp-play.fp-visible .fp-playbtn {
|
469 |
+
display: inline; }
|
470 |
+
|
471 |
+
.flowplayer .fp-player, .flowplayer .fp-ui, .flowplayer .fp-header, .flowplayer .fp-captions, .flowplayer .fp-controls {
|
472 |
+
position: absolute;
|
473 |
+
width: 100%; }
|
474 |
+
|
475 |
+
.flowplayer {
|
476 |
+
font-family: avenir, sans-serif;
|
477 |
+
font-size: 16px;
|
478 |
+
position: relative;
|
479 |
+
max-height: 100%;
|
480 |
+
overflow: hidden;
|
481 |
+
border-radius: .24em;
|
482 |
+
background-position: center;
|
483 |
+
background-repeat: no-repeat;
|
484 |
+
background-size: contain;
|
485 |
+
zoom: 1 !important;
|
486 |
+
width: 100%;
|
487 |
+
display: inline-block; }
|
488 |
+
.flowplayer .fp-hidden {
|
489 |
+
display: none; }
|
490 |
+
.flowplayer .fp-shown {
|
491 |
+
display: block !important; }
|
492 |
+
.flowplayer * {
|
493 |
+
-webkit-box-sizing: border-box;
|
494 |
+
-moz-box-sizing: border-box;
|
495 |
+
box-sizing: border-box; }
|
496 |
+
.flowplayer.is-ready:not(.is-poster) {
|
497 |
+
background-color: #333; }
|
498 |
+
.flowplayer .fp-engine {
|
499 |
+
display: block;
|
500 |
+
width: 100%;
|
501 |
+
position: absolute;
|
502 |
+
top: 0;
|
503 |
+
bottom: 0;
|
504 |
+
left: 0;
|
505 |
+
right: 0;
|
506 |
+
height: 100%;
|
507 |
+
width: 100%; }
|
508 |
+
.flowplayer video.fp-engine:not(.native-subtitles)::-webkit-media-controls {
|
509 |
+
display: none !important; }
|
510 |
+
.flowplayer .fp-player {
|
511 |
+
position: absolute;
|
512 |
+
bottom: 0;
|
513 |
+
top: 0; }
|
514 |
+
.flowplayer .fp-waiting {
|
515 |
+
display: none; }
|
516 |
+
.flowplayer .fp-waiting p {
|
517 |
+
filter: alpha(opacity=0);
|
518 |
+
opacity: 0;
|
519 |
+
color: #ccc;
|
520 |
+
font-weight: bold; }
|
521 |
+
.flowplayer .fp-ui {
|
522 |
+
height: 100%;
|
523 |
+
top: 0;
|
524 |
+
background-image: none;
|
525 |
+
-webkit-transition: background-image .1s;
|
526 |
+
transition: background-image .1s;
|
527 |
+
text-align: center;
|
528 |
+
cursor: pointer;
|
529 |
+
color: #fff; }
|
530 |
+
.flowplayer .fp-ui a, .flowplayer .fp-ui strong {
|
531 |
+
color: inherit !important;
|
532 |
+
font-style: normal !important;
|
533 |
+
text-decoration: none !important; }
|
534 |
+
.flowplayer .fp-ui > * {
|
535 |
+
-webkit-transition: opacity .1s;
|
536 |
+
transition: opacity .1s;
|
537 |
+
filter: alpha(opacity=0);
|
538 |
+
opacity: 0; }
|
539 |
+
.flowplayer.fp-ui-shown .fp-ui, .flowplayer.is-paused .fp-ui, .flowplayer.is-mouseover .fp-ui, .flowplayer.is-loading .fp-ui {
|
540 |
+
/*background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.25)), color-stop(15%, transparent));
|
541 |
+
background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.25), transparent 15%);
|
542 |
+
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 15%);*/
|
543 |
+
background-image: none;}
|
544 |
+
.flowplayer.fp-ui-shown .fp-ui > *, .flowplayer.is-paused .fp-ui > *, .flowplayer.is-mouseover .fp-ui > *, .flowplayer.is-loading .fp-ui > * {
|
545 |
+
filter: alpha(opacity=100);
|
546 |
+
opacity: 1; }
|
547 |
+
.flowplayer .fp-header {
|
548 |
+
top: 0;
|
549 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.25)), to(transparent));
|
550 |
+
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.25), transparent);
|
551 |
+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
|
552 |
+
text-align: left;
|
553 |
+
height: 3em;
|
554 |
+
-webkit-transition: opacity 0.3s;
|
555 |
+
transition: opacity 0.3s;
|
556 |
+
padding-left: .65em; }
|
557 |
+
.flowplayer .fp-header .fp-icon {
|
558 |
+
margin: .9em .9em 0 0; }
|
559 |
+
.flowplayer .fp-header .fp-icon.fp-active {
|
560 |
+
color: #ec6c4c; }
|
561 |
+
.flowplayer .fp-header .fp-fullscreen, .flowplayer .fp-header .fp-unload {
|
562 |
+
float: right; }
|
563 |
+
.flowplayer .fp-airplay {
|
564 |
+
position: absolute;
|
565 |
+
right: 40px;
|
566 |
+
top: 0;
|
567 |
+
}
|
568 |
+
.fp-chromecast {
|
569 |
+
position: absolute;
|
570 |
+
right: 80px;
|
571 |
+
top: 0;
|
572 |
+
}
|
573 |
+
.flowplayer .fp-header .fp-unload {
|
574 |
+
display: none; }
|
575 |
+
.flowplayer .fp-help {
|
576 |
+
display: none; }
|
577 |
+
.flowplayer .fp-message {
|
578 |
+
background-color: rgba(0, 0, 0, 0.5);
|
579 |
+
text-align: left;
|
580 |
+
font-size: 1.2em;
|
581 |
+
overflow: hidden;
|
582 |
+
filter: alpha(opacity=0);
|
583 |
+
opacity: 0;
|
584 |
+
padding: .6em .9em;
|
585 |
+
-webkit-transition: opacity 0.3s;
|
586 |
+
transition: opacity 0.3s; }
|
587 |
+
.flowplayer .fp-message.fp-shown {
|
588 |
+
filter: alpha(opacity=100);
|
589 |
+
opacity: 1; }
|
590 |
+
.flowplayer .fp-message.fp-shown + .fp-header {
|
591 |
+
filter: alpha(opacity=0);
|
592 |
+
opacity: 0; }
|
593 |
+
.flowplayer .fp-textarea {
|
594 |
+
background-color: rgba(0, 0, 0, 0.5);
|
595 |
+
width: 80%;
|
596 |
+
position: absolute;
|
597 |
+
left: 10%;
|
598 |
+
top: 15%;
|
599 |
+
color: #fff;
|
600 |
+
outline: 0;
|
601 |
+
border-radius: .2em;
|
602 |
+
border: 0;
|
603 |
+
min-height: 60%; }
|
604 |
+
.flowplayer .fp-logo {
|
605 |
+
position: absolute;
|
606 |
+
bottom: 3em;
|
607 |
+
left: 0.9em; }
|
608 |
+
.flowplayer .fp-logo img {
|
609 |
+
width: 100%; }
|
610 |
+
.flowplayer .fp-captions {
|
611 |
+
bottom: 1.2em;
|
612 |
+
display: none;
|
613 |
+
text-align: center;
|
614 |
+
color: #fff; }
|
615 |
+
.flowplayer .fp-captions p {
|
616 |
+
background-color: rgba(0, 0, 0, 0.65);
|
617 |
+
border-radius: .2em;
|
618 |
+
font-size: 110%;
|
619 |
+
display: inline-block;
|
620 |
+
padding: .1em .3em;
|
621 |
+
margin: .1em; }
|
622 |
+
.flowplayer .fp-speed-flash {
|
623 |
+
position: absolute;
|
624 |
+
left: 0;
|
625 |
+
right: 0;
|
626 |
+
bottom: 0;
|
627 |
+
top: 0;
|
628 |
+
margin: auto;
|
629 |
+
font-size: 4em;
|
630 |
+
color: #fff;
|
631 |
+
font-weight: bold;
|
632 |
+
text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
633 |
+
filter: alpha(opacity=0) !important;
|
634 |
+
opacity: 0 !important;
|
635 |
+
-webkit-transform: scale(0.8);
|
636 |
+
-ms-transform: scale(0.8);
|
637 |
+
transform: scale(0.8);
|
638 |
+
-webkit-transition: all .2s;
|
639 |
+
transition: all .2s;
|
640 |
+
width: 4em;
|
641 |
+
height: 2em;
|
642 |
+
display: none; }
|
643 |
+
.flowplayer .fp-speed-flash.fp-hilite {
|
644 |
+
filter: alpha(opacity=100) !important;
|
645 |
+
opacity: 1 !important;
|
646 |
+
-webkit-transform: scale(1);
|
647 |
+
-ms-transform: scale(1);
|
648 |
+
transform: scale(1); }
|
649 |
+
.flowplayer .fp-play .fp-playbtn, .flowplayer .fp-pause .fp-playbtn, .flowplayer .fp-waiting .fp-playbtn {
|
650 |
+
display: none; }
|
651 |
+
.flowplayer .fp-play svg, .flowplayer .fp-pause svg, .flowplayer .fp-waiting svg {
|
652 |
+
position: absolute;
|
653 |
+
pointer-events: none;
|
654 |
+
left: 0;
|
655 |
+
right: 0;
|
656 |
+
bottom: 0;
|
657 |
+
top: 0;
|
658 |
+
width: 6em;
|
659 |
+
height: 6em;
|
660 |
+
filter: alpha(opacity=0);
|
661 |
+
opacity: 0;
|
662 |
+
margin: auto;
|
663 |
+
max-height: 30%;
|
664 |
+
-webkit-transform: scale(0.8);
|
665 |
+
-ms-transform: scale(0.8);
|
666 |
+
transform: scale(0.8);
|
667 |
+
-webkit-transition: all .2s;
|
668 |
+
transition: all .2s;
|
669 |
+
display: none; }
|
670 |
+
.flowplayer .fp-play svg.fp-play-rounded-fill, .flowplayer .fp-play svg.fp-pause-rounded-fill, .flowplayer .fp-play svg.fp-loading-rounded-fill, .flowplayer .fp-pause svg.fp-play-rounded-fill, .flowplayer .fp-pause svg.fp-pause-rounded-fill, .flowplayer .fp-pause svg.fp-loading-rounded-fill, .flowplayer .fp-waiting svg.fp-play-rounded-fill, .flowplayer .fp-waiting svg.fp-pause-rounded-fill, .flowplayer .fp-waiting svg.fp-loading-rounded-fill {
|
671 |
+
display: block; }
|
672 |
+
.flowplayer .fp-play.fp-visible svg, .flowplayer .fp-pause.fp-visible svg, .flowplayer .fp-waiting.fp-visible svg {
|
673 |
+
-webkit-transform: scale(1.5);
|
674 |
+
-ms-transform: scale(1.5);
|
675 |
+
transform: scale(1.5);
|
676 |
+
filter: alpha(opacity=100);
|
677 |
+
opacity: 1; }
|
678 |
+
.flowplayer .fp-remaining {
|
679 |
+
display: none; }
|
680 |
+
.flowplayer .fp-controls {
|
681 |
+
display: -ms-flexbox;
|
682 |
+
display: -webkit-flex;
|
683 |
+
display: -webkit-box;
|
684 |
+
display: -moz-box;
|
685 |
+
display: flex;
|
686 |
+
-ms-flex-pack: justify;
|
687 |
+
-webkit-justify-content: space-around;
|
688 |
+
justify-content: space-around;
|
689 |
+
-ms-flex-align: center;
|
690 |
+
-webkit-align-items: center;
|
691 |
+
-webkit-box-align: center;
|
692 |
+
-moz-box-align: center;
|
693 |
+
align-items: center;
|
694 |
+
height: 2.4em;
|
695 |
+
bottom: 0;
|
696 |
+
z-index: 2;
|
697 |
+
padding-left: 0.3em;
|
698 |
+
padding-right: 0.3em; }
|
699 |
+
.flowplayer .fp-controls > * {
|
700 |
+
margin: 0 .6em; }
|
701 |
+
.flowplayer .fp-controls > strong {
|
702 |
+
letter-spacing: 1px; font-weight: 400; }
|
703 |
+
.flowplayer .fp-controls img {
|
704 |
+
width: 1.2em; }
|
705 |
+
.flowplayer .fp-bar, .flowplayer .fp-bar-slider {
|
706 |
+
background-color: #ccc;
|
707 |
+
background-color: rgba(255, 255, 255, 0.5);
|
708 |
+
position: relative;
|
709 |
+
cursor: col-resize;
|
710 |
+
height: .9em;
|
711 |
+
border-radius: 0.24em;
|
712 |
+
-ms-flex: 1;
|
713 |
+
-webkit-box-flex: 1;
|
714 |
+
-webkit-flex: 1;
|
715 |
+
-moz-box-flex: 1;
|
716 |
+
flex: 1; }
|
717 |
+
.flowplayer .fp-bar > *, .flowplayer .fp-bar-slider > * {
|
718 |
+
background-color: rgba(255, 255, 255, 0.6);
|
719 |
+
position: absolute;
|
720 |
+
height: 100%;
|
721 |
+
border-radius: 0.24em; }
|
722 |
+
.flowplayer .fp-bar > *.fp-progress.animated, .flowplayer .fp-bar-slider > *.fp-progress.animated {
|
723 |
+
-webkit-transition-timing-function: linear;
|
724 |
+
transition-timing-function: linear;
|
725 |
+
-webkit-transition-property: width, height;
|
726 |
+
transition-property: width, height; }
|
727 |
+
.flowplayer .fp-bar > *.fp-buffer, .flowplayer .fp-bar-slider > *.fp-buffer {
|
728 |
+
-webkit-transition: width .25s linear;
|
729 |
+
transition: width .25s linear; }
|
730 |
+
.flowplayer .fp-bar.no-animation > *, .flowplayer .no-animation.fp-bar-slider > * {
|
731 |
+
-webkit-transition: none;
|
732 |
+
transition: none; }
|
733 |
+
.flowplayer .fp-timeline {
|
734 |
+
-webkit-transition: height .2s;
|
735 |
+
transition: height .2s; }
|
736 |
+
.flowplayer .fp-cuepoint {
|
737 |
+
background-color: #000;
|
738 |
+
position: absolute;
|
739 |
+
height: 100%;
|
740 |
+
width: 2px; }
|
741 |
+
.flowplayer .fp-timestamp {
|
742 |
+
background-color: rgba(0, 0, 0, 0.65);
|
743 |
+
display: none;
|
744 |
+
border-radius: .2em;
|
745 |
+
padding: .1em .3em;
|
746 |
+
font-size: 90%;
|
747 |
+
bottom: 1.4em;
|
748 |
+
height: auto; }
|
749 |
+
.flowplayer .fp-timeline:hover .fp-timestamp {
|
750 |
+
display: inline; }
|
751 |
+
.flowplayer .fp-volume {
|
752 |
+
display: -ms-flexbox;
|
753 |
+
display: -webkit-box;
|
754 |
+
display: -webkit-flex;
|
755 |
+
display: -moz-box;
|
756 |
+
display: flex;
|
757 |
+
height: 100%;
|
758 |
+
-ms-flex-align: center;
|
759 |
+
-webkit-box-align: center;
|
760 |
+
-webkit-align-items: center;
|
761 |
+
-moz-box-align: center;
|
762 |
+
align-items: center; }
|
763 |
+
.flowplayer .fp-volumebtn {
|
764 |
+
display: none; }
|
765 |
+
.flowplayer .fp-bar-slider {
|
766 |
+
background-color: transparent;
|
767 |
+
-webkit-user-select: none;
|
768 |
+
-moz-user-select: none;
|
769 |
+
-ms-user-select: none;
|
770 |
+
user-select: none;
|
771 |
+
-webkit-transition: height .2s;
|
772 |
+
transition: height .2s;
|
773 |
+
white-space: nowrap;
|
774 |
+
-ms-flex: 1 0 auto; }
|
775 |
+
.flowplayer .fp-bar-slider em {
|
776 |
+
border-radius: 2px;
|
777 |
+
display: inline-block;
|
778 |
+
width: 5px;
|
779 |
+
height: 100%;
|
780 |
+
position: relative;
|
781 |
+
vertical-align: top;
|
782 |
+
margin-left: 3px;
|
783 |
+
-webkit-transition: -webkit-transform 0.4s;
|
784 |
+
transition: -webkit-transform 0.4s;
|
785 |
+
transition: transform 0.4s;
|
786 |
+
transition: transform 0.4s, -webkit-transform 0.4s;
|
787 |
+
-webkit-transform-origin: bottom;
|
788 |
+
-ms-transform-origin: bottom;
|
789 |
+
transform-origin: bottom;
|
790 |
+
-webkit-user-select: none;
|
791 |
+
-moz-user-select: none;
|
792 |
+
-ms-user-select: none;
|
793 |
+
user-select: none;
|
794 |
+
-webkit-transform: scale(1.1);
|
795 |
+
-ms-transform: scale(1.1);
|
796 |
+
transform: scale(1.1); }
|
797 |
+
.flowplayer .fp-bar-slider em:hover {
|
798 |
+
-webkit-transform: scaleY(1.35);
|
799 |
+
-ms-transform: scaleY(1.35);
|
800 |
+
transform: scaleY(1.35);
|
801 |
+
-webkit-transition: -webkit-transform 0.2s;
|
802 |
+
transition: -webkit-transform 0.2s;
|
803 |
+
transition: transform 0.2s;
|
804 |
+
transition: transform 0.2s, -webkit-transform 0.2s; }
|
805 |
+
.flowplayer .fp-bar-slider em.fp-grey {
|
806 |
+
background-color: rgba(255, 255, 255, 0.75); }
|
807 |
+
.flowplayer.no-flex .fp-controls {
|
808 |
+
white-space: nowrap; }
|
809 |
+
.flowplayer.no-flex .fp-controls > * {
|
810 |
+
display: inline-block;
|
811 |
+
vertical-align: center;
|
812 |
+
margin: 0 .3em; }
|
813 |
+
.flowplayer.no-flex .fp-timeline {
|
814 |
+
width: 40%; }
|
815 |
+
.flowplayer.no-flex.fp-full .fp-timeline {
|
816 |
+
margin-bottom: .6em;
|
817 |
+
height: .9em; }
|
818 |
+
.flowplayer.no-flex.fp-fat .fp-bar, .flowplayer.no-flex.fp-playful .fp-bar, .flowplayer.no-flex.fp-fat .fp-bar-slider, .flowplayer.no-flex.fp-playful .fp-bar-slider {
|
819 |
+
height: .9em !important; }
|
820 |
+
.flowplayer.fp-fat .fp-bar, .flowplayer.fp-playful .fp-bar, .flowplayer.fp-fat .fp-bar-slider, .flowplayer.fp-playful .fp-bar-slider {
|
821 |
+
height: 100%;
|
822 |
+
border-radius: 0; }
|
823 |
+
.flowplayer.fp-fat .fp-bar > *, .flowplayer.fp-playful .fp-bar > *, .flowplayer.fp-fat .fp-bar-slider > *, .flowplayer.fp-playful .fp-bar-slider > * {
|
824 |
+
border-radius: 0; }
|
825 |
+
.flowplayer.fp-fat .fp-timestamp, .flowplayer.fp-playful .fp-timestamp {
|
826 |
+
bottom: 3.2em; }
|
827 |
+
.flowplayer.fp-fat .fp-bar-slider em, .flowplayer.fp-playful .fp-bar-slider em {
|
828 |
+
-webkit-transform: scaleY(0.6);
|
829 |
+
-ms-transform: scaleY(0.6);
|
830 |
+
transform: scaleY(0.6);
|
831 |
+
-webkit-transform-origin: center;
|
832 |
+
-ms-transform-origin: center;
|
833 |
+
transform-origin: center; }
|
834 |
+
.flowplayer.fp-fat .fp-bar-slider em:hover, .flowplayer.fp-playful .fp-bar-slider em:hover {
|
835 |
+
-webkit-transform: scaleY(0.75);
|
836 |
+
-ms-transform: scaleY(0.75);
|
837 |
+
transform: scaleY(0.75); }
|
838 |
+
.flowplayer.fp-slim .fp-timeline {
|
839 |
+
height: .2em; }
|
840 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-timeline {
|
841 |
+
height: .9em; }
|
842 |
+
.flowplayer.fp-slim .fp-cue {
|
843 |
+
width: 4px; }
|
844 |
+
.flowplayer.fp-slim .fp-bar-slider {
|
845 |
+
height: .2em; }
|
846 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-bar-slider {
|
847 |
+
height: 0.9em; }
|
848 |
+
.flowplayer.fp-full .fp-timeline {
|
849 |
+
position: absolute;
|
850 |
+
height: .3em;
|
851 |
+
bottom: 2.8em;
|
852 |
+
margin: 0;
|
853 |
+
width: 100%;
|
854 |
+
border-radius: 0;
|
855 |
+
overflow: inherit;
|
856 |
+
left: 0; }
|
857 |
+
.flowplayer.fp-full .fp-timeline:before {
|
858 |
+
content: "";
|
859 |
+
width: 100%;
|
860 |
+
height: 1.2em;
|
861 |
+
position: absolute;
|
862 |
+
top: -1.2em;
|
863 |
+
left: 0; }
|
864 |
+
.flowplayer.fp-full .fp-controls {
|
865 |
+
height: 2.8em; }
|
866 |
+
.flowplayer.fp-full .fp-controls:hover .fp-timeline {
|
867 |
+
height: 1em; }
|
868 |
+
.flowplayer.fp-full .fp-volume {
|
869 |
+
margin-right: auto; }
|
870 |
+
.flowplayer.fp-full .fp-duration, .flowplayer.fp-full .fp-remaining {
|
871 |
+
margin-left: 0; }
|
872 |
+
.flowplayer.fp-full .fp-duration:before, .flowplayer.fp-full .fp-remaining:before {
|
873 |
+
position: relative;
|
874 |
+
content: "/";
|
875 |
+
left: -.3em; }
|
876 |
+
.flowplayer.fp-minimal .fp-controls {
|
877 |
+
background-color: transparent !important; }
|
878 |
+
.flowplayer.fp-minimal .fp-controls > * {
|
879 |
+
display: none; }
|
880 |
+
.flowplayer.fp-minimal .fp-header > * {
|
881 |
+
display: none; }
|
882 |
+
.flowplayer.fp-minimal .fp-header .fp-fullscreen {
|
883 |
+
display: inherit; }
|
884 |
+
.flowplayer.fp-minimal .fp-timeline {
|
885 |
+
height: .3em;
|
886 |
+
max-width: 12em;
|
887 |
+
width: 100%;
|
888 |
+
display: block;
|
889 |
+
margin: 0 auto;
|
890 |
+
-webkit-box-flex: 0;
|
891 |
+
-webkit-flex: none;
|
892 |
+
-moz-box-flex: 0;
|
893 |
+
-ms-flex: none;
|
894 |
+
flex: none; }
|
895 |
+
.flowplayer.fp-playful .fp-color, .flowplayer.fp-playful .fp-color-play {
|
896 |
+
background-color: #ec6c4c;
|
897 |
+
fill: #ec6c4c; }
|
898 |
+
.flowplayer.fp-playful .fp-controls {
|
899 |
+
background-color: #006680; }
|
900 |
+
.flowplayer .fp-selected:before {
|
901 |
+
content: "✓ "; }
|
902 |
+
.flowplayer .fp-menu {
|
903 |
+
background-color: rgba(0, 0, 0, 0.5);
|
904 |
+
border-radius: .24em;
|
905 |
+
position: absolute;
|
906 |
+
width: 8em;
|
907 |
+
right: .5em;
|
908 |
+
z-index: 2;
|
909 |
+
font-size: 90%;
|
910 |
+
-webkit-transition: opacity .2s, height .2s, -webkit-transform .2s;
|
911 |
+
transition: opacity .2s, height .2s, -webkit-transform .2s;
|
912 |
+
transition: opacity .2s, transform .2s, height .2s;
|
913 |
+
transition: opacity .2s, transform .2s, height .2s, -webkit-transform .2s;
|
914 |
+
-webkit-transform: scale(0.95);
|
915 |
+
-ms-transform: scale(0.95);
|
916 |
+
transform: scale(0.95);
|
917 |
+
bottom: -100%;
|
918 |
+
height: 0;
|
919 |
+
filter: alpha(opacity=0) !important;
|
920 |
+
opacity: 0 !important; }
|
921 |
+
.flowplayer .fp-menu.fp-active {
|
922 |
+
-webkit-transform: scale(1);
|
923 |
+
-ms-transform: scale(1);
|
924 |
+
transform: scale(1);
|
925 |
+
height: auto;
|
926 |
+
bottom: 3.2em;
|
927 |
+
filter: alpha(opacity=100) !important;
|
928 |
+
opacity: 1 !important; }
|
929 |
+
.flowplayer.fixed-controls .fp-menu.fp-active {
|
930 |
+
bottom: .2em;
|
931 |
+
}
|
932 |
+
.flowplayer .fp-menu > * {
|
933 |
+
display: block;
|
934 |
+
padding: .4em 1.2em;
|
935 |
+
text-align: right; }
|
936 |
+
.flowplayer .fp-menu strong {
|
937 |
+
display: block;
|
938 |
+
padding: .7em 1.2em;
|
939 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
940 |
+
background-color: rgba(0, 0, 0, 0.3);
|
941 |
+
text-transform: uppercase;
|
942 |
+
letter-spacing: 1px;
|
943 |
+
cursor: default;
|
944 |
+
font-size: 90%; }
|
945 |
+
.flowplayer .fp-menu a {
|
946 |
+
color: rgba(255, 255, 255, 0.8); }
|
947 |
+
.flowplayer .fp-menu a:hover:not(.fp-selected) {
|
948 |
+
background-color: #000;
|
949 |
+
color: #fff; }
|
950 |
+
.flowplayer .fp-menu .fp-icon {
|
951 |
+
cursor: pointer; }
|
952 |
+
.flowplayer .fp-menu .fp-icon:before {
|
953 |
+
margin-right: .1em;
|
954 |
+
font-size: 1.5em;
|
955 |
+
vertical-align: -0.1em; }
|
956 |
+
.flowplayer .fp-qsel-menu {
|
957 |
+
width: auto; }
|
958 |
+
.flowplayer .fp-context-menu {
|
959 |
+
width: auto;
|
960 |
+
right: auto;
|
961 |
+
bottom: auto !important;
|
962 |
+
display: none; }
|
963 |
+
.flowplayer .fp-context-menu.fp-active {
|
964 |
+
display: block; }
|
965 |
+
.flowplayer .fp-context-menu a, .flowplayer .fp-context-menu strong {
|
966 |
+
text-align: left;
|
967 |
+
color: #fff;
|
968 |
+
white-space: nowrap; }
|
969 |
+
.flowplayer .fp-subtitle-menu {
|
970 |
+
width: 9em; }
|
971 |
+
.flowplayer .fp-share-menu {
|
972 |
+
width: 9em;
|
973 |
+
padding-bottom: 0.2em; }
|
974 |
+
.flowplayer .fp-share-menu.fp-active {
|
975 |
+
bottom: auto; }
|
976 |
+
.flowplayer .fp-share-menu a, .flowplayer .fp-share-menu strong {
|
977 |
+
text-align: left; }
|
978 |
+
.flowplayer.fp-outlined .fp-play svg.fp-play-rounded-fill, .flowplayer.fp-minimal .fp-play svg.fp-play-rounded-fill, .flowplayer.fp-outlined .fp-play svg.fp-pause-rounded-fill, .flowplayer.fp-minimal .fp-play svg.fp-pause-rounded-fill, .flowplayer.fp-outlined .fp-play svg.fp-loading-rounded-fill, .flowplayer.fp-minimal .fp-play svg.fp-loading-rounded-fill, .flowplayer.fp-outlined .fp-pause svg.fp-play-rounded-fill, .flowplayer.fp-minimal .fp-pause svg.fp-play-rounded-fill, .flowplayer.fp-outlined .fp-pause svg.fp-pause-rounded-fill, .flowplayer.fp-minimal .fp-pause svg.fp-pause-rounded-fill, .flowplayer.fp-outlined .fp-pause svg.fp-loading-rounded-fill, .flowplayer.fp-minimal .fp-pause svg.fp-loading-rounded-fill, .flowplayer.fp-outlined .fp-waiting svg.fp-play-rounded-fill, .flowplayer.fp-minimal .fp-waiting svg.fp-play-rounded-fill, .flowplayer.fp-outlined .fp-waiting svg.fp-pause-rounded-fill, .flowplayer.fp-minimal .fp-waiting svg.fp-pause-rounded-fill, .flowplayer.fp-outlined .fp-waiting svg.fp-loading-rounded-fill, .flowplayer.fp-minimal .fp-waiting svg.fp-loading-rounded-fill {
|
979 |
+
display: none; }
|
980 |
+
.flowplayer.fp-outlined .fp-play svg.fp-play-rounded-outline, .flowplayer.fp-minimal .fp-play svg.fp-play-rounded-outline, .flowplayer.fp-outlined .fp-play svg.fp-pause-rounded-outline, .flowplayer.fp-minimal .fp-play svg.fp-pause-rounded-outline, .flowplayer.fp-outlined .fp-play svg.fp-loading-rounded-outline, .flowplayer.fp-minimal .fp-play svg.fp-loading-rounded-outline, .flowplayer.fp-outlined .fp-pause svg.fp-play-rounded-outline, .flowplayer.fp-minimal .fp-pause svg.fp-play-rounded-outline, .flowplayer.fp-outlined .fp-pause svg.fp-pause-rounded-outline, .flowplayer.fp-minimal .fp-pause svg.fp-pause-rounded-outline, .flowplayer.fp-outlined .fp-pause svg.fp-loading-rounded-outline, .flowplayer.fp-minimal .fp-pause svg.fp-loading-rounded-outline, .flowplayer.fp-outlined .fp-waiting svg.fp-play-rounded-outline, .flowplayer.fp-minimal .fp-waiting svg.fp-play-rounded-outline, .flowplayer.fp-outlined .fp-waiting svg.fp-pause-rounded-outline, .flowplayer.fp-minimal .fp-waiting svg.fp-pause-rounded-outline, .flowplayer.fp-outlined .fp-waiting svg.fp-loading-rounded-outline, .flowplayer.fp-minimal .fp-waiting svg.fp-loading-rounded-outline {
|
981 |
+
display: block; }
|
982 |
+
.flowplayer.fp-outlined .fp-airplay:before, .flowplayer.fp-minimal .fp-airplay:before {
|
983 |
+
content: "\e201"; }
|
984 |
+
.flowplayer.fp-outlined .fp-fullscreen:before, .flowplayer.fp-minimal .fp-fullscreen:before {
|
985 |
+
content: "\e202"; }
|
986 |
+
.flowplayer.fp-outlined .fp-checked:before, .flowplayer.fp-minimal .fp-checked:before {
|
987 |
+
content: "\e203"; }
|
988 |
+
.flowplayer.fp-outlined .fp-embed:before, .flowplayer.fp-minimal .fp-embed:before {
|
989 |
+
content: "\e204"; }
|
990 |
+
.flowplayer.fp-outlined .fp-chromecast:before, .flowplayer.fp-minimal .fp-chromecast:before {
|
991 |
+
content: "\e205"; }
|
992 |
+
.flowplayer.fp-outlined .fp-email:before, .flowplayer.fp-minimal .fp-email:before {
|
993 |
+
content: "\e206"; }
|
994 |
+
.flowplayer.fp-outlined .fp-playbtn:before, .flowplayer.fp-minimal .fp-playbtn:before {
|
995 |
+
content: "\e207"; }
|
996 |
+
.flowplayer.fp-outlined .fp-share:before, .flowplayer.fp-minimal .fp-share:before {
|
997 |
+
content: "\e209"; }
|
998 |
+
.flowplayer.fp-outlined .fp-share2:before, .flowplayer.fp-minimal .fp-share2:before {
|
999 |
+
content: "\e20a"; }
|
1000 |
+
.flowplayer.fp-outlined .fp-twitter:before, .flowplayer.fp-minimal .fp-twitter:before {
|
1001 |
+
content: "\e20c"; }
|
1002 |
+
.flowplayer.fp-outlined .fp-facebook:before, .flowplayer.fp-minimal .fp-facebook:before {
|
1003 |
+
content: "\e20a"; }
|
1004 |
+
.flowplayer.fp-outlined .fp-volumebtn:before, .flowplayer.fp-minimal .fp-volumebtn:before {
|
1005 |
+
content: "\e20b"; }
|
1006 |
+
.flowplayer.fp-outlined .fp-volume-off:before, .flowplayer.fp-minimal .fp-volume-off:before {
|
1007 |
+
content: "\e20d"; }
|
1008 |
+
.flowplayer.fp-outlined .fp-unload:before, .flowplayer.fp-minimal .fp-unload:before {
|
1009 |
+
content: "\e20f"; }
|
1010 |
+
.flowplayer.fp-outlined .fp-prevbtn:before, .flowplayer.fp-minimal .fp-prevbtn:before {
|
1011 |
+
content: "\e211"; }
|
1012 |
+
.flowplayer.fp-outlined .fp-nextbtn:before, .flowplayer.fp-minimal .fp-nextbtn:before {
|
1013 |
+
content: "\e212"; }
|
1014 |
+
.flowplayer .fp-color {
|
1015 |
+
background-color: #00abcd;
|
1016 |
+
fill: rgba(0, 0, 0, 0.2); }
|
1017 |
+
.flowplayer .fp-color-play {
|
1018 |
+
fill: transparent; }
|
1019 |
+
.flowplayer.is-rtl {
|
1020 |
+
direction: rtl; }
|
1021 |
+
.flowplayer.is-rtl .fp-icon {
|
1022 |
+
-webkit-transform: rotate(180deg);
|
1023 |
+
-ms-transform: rotate(180deg);
|
1024 |
+
transform: rotate(180deg); }
|
1025 |
+
.flowplayer.is-rtl .fp-menu .fp-icon {
|
1026 |
+
-webkit-transform: none;
|
1027 |
+
-ms-transform: none;
|
1028 |
+
transform: none; }
|
1029 |
+
.flowplayer.-grayscale video.fp-engine {
|
1030 |
+
-webkit-filter: grayscale(100%);
|
1031 |
+
filter: grayscale(100%); }
|
1032 |
+
.flowplayer.-sepia video.fp-engine {
|
1033 |
+
-webkit-filter: sepia(100%);
|
1034 |
+
filter: sepia(100%); }
|
1035 |
+
.flowplayer.-blur video.fp-engine {
|
1036 |
+
-webkit-filter: blur(5px);
|
1037 |
+
filter: blur(5px); }
|
1038 |
+
|
1039 |
+
.fp-filters {
|
1040 |
+
width: 0 !important;
|
1041 |
+
height: 0 !important;
|
1042 |
+
overflow: hidden !important;
|
1043 |
+
position: absolute; }
|
1044 |
+
|
1045 |
+
|
1046 |
+
/*
|
1047 |
+
* FV Player Additions
|
1048 |
+
*/
|
1049 |
+
|
1050 |
+
.flowplayer.skin-slim.is-mouseover.is-ready .fp-ui, .flowplayer.skin-slim.is-paused.is-ready .fp-ui {
|
1051 |
+
background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.25)), color-stop(15%, transparent));
|
1052 |
+
background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.25), transparent 15%);
|
1053 |
+
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 15%);
|
1054 |
+
}
|
1055 |
+
.flowplayer.fixed-controls.skin-slim.is-mouseover.is-ready .fp-ui, .flowplayer.fixed-controls.skin-slim.is-paused.is-ready .fp-ui {
|
1056 |
+
background-image: none;
|
1057 |
+
}
|
1058 |
+
.flowplayer.fixed-controls.skin-slim .fp-controls, .flowplayer.skin-slim .fv-ab-loop, .flowplayer.fixed-controls.skin-slim .fv-ab-loop {
|
1059 |
+
background-color: rgba(0, 0, 0, 0.75) !important;
|
1060 |
+
}
|
1061 |
+
|
1062 |
+
.flowplayer { margin: 0 auto 2.8em auto; display: block; }
|
1063 |
+
.flowplayer.has-caption { margin: 0 auto; }
|
1064 |
+
.flowplayer.fixed-controls.has-caption, flowplayer.fixed-controls.has-caption * { margin-bottom: 2.8em; }
|
1065 |
+
.flowplayer.fixed-controls { margin-bottom: 5.2em }
|
1066 |
+
.flowplayer.fixed-controls.skin-custom {border: none}
|
1067 |
+
.flowplayer.has-abloop { margin-bottom: 2.8em; }
|
1068 |
+
.flowplayer.fixed-controls.has-abloop { margin-bottom: 5.2em; }
|
1069 |
+
|
1070 |
+
/* stop the timeline becoming bold on hover and provide a workaround to make it easier to click */
|
1071 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-timeline {
|
1072 |
+
height: .2em; }
|
1073 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-timeline:before {
|
1074 |
+
content: ''; position: absolute; top:-8px; bottom:-8px; left: 0; right: 0 }
|
1075 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-bar-slider {
|
1076 |
+
height: .2em; }
|
1077 |
+
.flowplayer.fp-slim .fp-controls:hover .fp-bar-slider:before {
|
1078 |
+
content: ''; position: absolute; top:-8px; bottom:-8px; left: 0; right: 0 }
|
1079 |
+
|
1080 |
+
.flowplayer.fixed-controls.is-splash .fp-ui .fp-controls, .flowplayer.fixed-controls.is-poster .fp-ui .fp-controls { display: flex; }
|
1081 |
+
.flowplayer.fixed-controls.is-splash .fp-timestamp, .flowplayer.fixed-controls.is-poster .fp-timestamp { display: none; }
|
1082 |
+
.flowplayer.fixed-controls.is-splash .fp-elapsed, .flowplayer.fixed-controls.is-poster .fp-elapsed { display: none; }
|
1083 |
+
.flowplayer.fixed-controls.is-splash .fp-duration, .flowplayer.fixed-controls.is-poster .fp-duration { display: none; }
|
1084 |
+
.flowplayer.fixed-controls.is-splash .fp-controls strong, .flowplayer.fixed-controls.is-poster .fp-controls strong { display: none; }
|
1085 |
+
.flowplayer.fixed-controls.is-splash .fp-bar, .flowplayer.fixed-controls.is-poster .fp-bar { cursor: pointer; pointer-events: none }
|
1086 |
+
.flowplayer.fixed-controls.is-splash .fp-bar-slider, .flowplayer.fixed-controls.is-poster .fp-bar-slider { cursor: pointer; pointer-events: none }
|
1087 |
+
|
1088 |
+
.flowplayer.fixed-controls .fp-controls, .flowplayer.fixed-controls.is-loading .fp-ui .fp-controls { opacity: 1; filter: alpha(opacity=100); }
|
1089 |
+
.flowplayer.fixed-controls {overflow: visible; margin-bottom: 4em}
|
1090 |
+
.flowplayer.fixed-controls .fp-controls {bottom: -2.4em}
|
1091 |
+
.flowplayer.fixed-controls.fp-full .fp-controls {bottom: -2.8em}
|
1092 |
+
.flowplayer.fixed-controls.is-fullscreen .fp-controls {bottom: 0}
|
1093 |
+
|
1094 |
+
.flowplayer.has-video-checker {overflow: visible}
|
1095 |
+
|
1096 |
+
.fv-fp-splash-text { position: absolute;bottom:20%;z-index:20;text-align:center;width:100%;color:#fff;text-shadow: 0 0 2px #333;background-color: rgba(0,0,0,0.5); font-size: 18px; padding: 5px 36px; pointer-events: none }
|
1097 |
+
.flowplayer.is-error .fv-fp-splash-text {display: none}
|
1098 |
+
|
1099 |
+
.flowplayer video{width:100%;/*needed?*/-ms-transform: translateY(0) translateX(0);-webkit-transform: translateY(0) translateX(0);transform: translateY(0) translateX(0);}
|
1100 |
+
/*this might be needed some day: .flowplayer .fp-controls{display: block; z-index: auto;}*/
|
1101 |
+
@media (max-width: 600px){
|
1102 |
+
.flowplayer .fp-help p{font-size:9px}
|
1103 |
+
}
|
1104 |
+
/*this might be needed some day: .flowplayer .fp-dropdown li{ line-height: 16px;text-align:center; } */
|
1105 |
+
/*this might be needed some day: .flowplayer .fp-tooltip{z-index:22;padding:4px 6px 6px;line-height:1} */
|
1106 |
+
|
1107 |
+
.flowplayer.is-mouseout .fp-captions{-webkit-transition:bottom 0.15s ease 0.3s;-moz-transition:bottom 0.15s ease 0.3s;transition:bottom 0.15s ease 0.3s}
|
1108 |
+
.flowplayer .fp-captions p{display:inline-block;background-color:#000;color:#eee;padding:0 .4em;font-size:16px;border-radius: 5px; margin: 0}
|
1109 |
+
.flowplayer.is-fullscreen .fp-captions p{font-size:175%;line-height:1.2}
|
1110 |
+
.flowplayer .fp-captions.is-wide br{display:none}
|
1111 |
+
.flowplayer .fp-captions p:after{content:'';clear:both}
|
1112 |
+
.flowplayer .fp-captions p:first-of-type{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}
|
1113 |
+
.flowplayer .fp-captions p:last-of-type{padding-left:0;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}
|
1114 |
+
.flowplayer .fp-captions:not(.is-wide) p{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
|
1115 |
+
.flowplayer .fp-captions:not(.is-wide) p{padding-left:0.4em}
|
1116 |
+
.flowplayer .fp-captions p b{font-weight:bold}
|
1117 |
+
.flowplayer .fp-captions p i{font-style:italic}
|
1118 |
+
.flowplayer .fp-captions p u{text-decoration:underline}
|
1119 |
+
@media (max-width: 56.25em){
|
1120 |
+
.flowplayer .fp-captions br{display:block}
|
1121 |
+
.flowplayer .fp-captions p:first-of-type,.flowplayer .fp-captions p:last-of-type{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
|
1122 |
+
.flowplayer .fp-captions p:last-of-type{padding-left:0.4em}
|
1123 |
+
}
|
1124 |
+
@media (max-width: 40em){
|
1125 |
+
.flowplayer .fp-captions{line-height:14px !important}
|
1126 |
+
.flowplayer .fp-captions p{font-size:14px !important;line-height:20px !important}
|
1127 |
+
}
|
1128 |
+
@media (max-width: 30em) {
|
1129 |
+
.flowplayer .fp-captions{bottom:4px;line-height:12px !important}
|
1130 |
+
.flowplayer .fp-captions p{font-size:12px !important;line-height:18px !important;-webkit-text-shadow:0 0 2px #666;-moz-text-shadow:0 0 2px #666;text-shadow:0 0 2px #666}
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
|
1134 |
+
/* reducing the spacing in .fp-header */
|
1135 |
+
.flowplayer .fp-header { /*background-color: rgba(0, 0, 0, 0.5); height: 2em;*/ padding-left: 0 }
|
1136 |
+
.flowplayer .fp-header .fp-icon { margin: 0.5em 0.5em 0 0;line-height: 1 }
|
1137 |
+
|
1138 |
+
.flowplayer .fvp-share-bar .fvp-sharing a {background: url("img/flp-share-icons-x2.png") no-repeat;background-size:100%}
|
1139 |
+
|
1140 |
+
/*this might be needed some day: .flowplayer .fp-menu{z-index:21;}*/
|
1141 |
+
/*this might be needed some day: .flowplayer .fp-volume{align-items:normal;display:block}*/
|
1142 |
+
.flowplayer.is-fullscreen{ max-height:100% !important; }
|
1143 |
+
/*this might be needed some day: .flowplayer.is-error h2{color: #000;}*/
|
1144 |
+
/*this might be needed some day: .flowplayer.is-mouseout .fp-volume{top:12px}*/
|
1145 |
+
|
1146 |
+
|
1147 |
+
|
1148 |
+
|
1149 |
+
/* Mailchimp integration, todo: check! */
|
1150 |
+
.flowplayer .fv_player_popup p{margin:0 12px 6px;line-height:1.35}
|
1151 |
+
.flowplayer .wpfp_custom_popup{width:100%;top:0;bottom:-4px;margin-bottom:34px;-webkit-transition:all 0.2s;-moz-transition:all 0.2s;transition:all 0.2s}
|
1152 |
+
.flowplayer.is-finished.is-mouseover .wpfp_custom_popup{bottom:30px;margin-bottom:0}
|
1153 |
+
.flowplayer .fv_player_popup {background-color:#222;position:relative;top:0;width:100%;height:100%;padding:2em 0 1%}
|
1154 |
+
.flowplayer .fv_player_popup h1,.flowplayer .fv_player_popup h2,.flowplayer .fv_player_popup h3,.flowplayer .fv_player_popup h4,.flowplayer .fv_player_popup h5,.flowplayer .fv_player_popup h6{margin:0 0 6px !important}
|
1155 |
+
.mailchimp-form input{width:31.33333333%;max-width:31.33333333%;margin:0 1%}
|
1156 |
+
.mailchimp-form-1 input{width:48%;max-width:48%;margin:0 1%}
|
1157 |
+
.mailchimp-form-2 input{width:31.33333333%;max-width:31.33333333%;margin:0 1%}
|
1158 |
+
.mailchimp-form-3 input{width:23%;max-width:23%;margin:0 1%}
|
1159 |
+
|
1160 |
+
.mailchimp-form input[type="text"],.mailchimp-form input[type="email"]{padding:8px;line-height:1;border:0;float:left}
|
1161 |
+
.mailchimp-form input[type="submit"]{background-color:#bf0000;float:right;padding:8px}
|
1162 |
+
.mailchimp-form input[type="submit"]:hover{background-color:#af0000}
|
1163 |
+
.flowplayer .mailchimp-form{background-color:#333;padding:30px 1.5%;position:absolute;bottom:0;margin:0 auto;width:100%}
|
1164 |
+
.flowplayer .mailchimp-response{margin-top:6px;padding-top:6px;border-top:2px solid #00A7C8;display:inline-block}
|
1165 |
+
.flowplayer .mailchimp-response.is-fv-error{border-color:#bf0000}
|
1166 |
+
.flowplayer.is-fv-narrow .fv_player_popup{padding-top:1em;font-size:0.9em}
|
1167 |
+
.flowplayer.is-fv-narrow .mailchimp-form{padding-top:20px}
|
1168 |
+
.flowplayer.is-fv-narrow .fv_player_popup h1,.flowplayer.is-fv-narrow .fv_player_popup h2,.flowplayer.is-fv-narrow .fv_player_popup h3,.flowplayer.is-fv-narrow .fv_player_popup h4,.flowplayer.is-fv-narrow .fv_player_popup h5,.flowplayer.is-fv-narrow .fv_player_popup h6{font-size:1.2em}
|
1169 |
+
.flowplayer.is-fullscreen .fv_player_popup{padding-top:10%}
|
1170 |
+
.flowplayer.is-fullscreen .fv_player_popup p{margin:0 auto 6px}
|
1171 |
+
.flowplayer.is-fullscreen .mailchimp-form{padding:30px 25%}
|
1172 |
+
|
1173 |
+
@media (max-width: 40em){
|
1174 |
+
.flowplayer .fp-help p{font-size:9px;}
|
1175 |
+
.flowplayer .fp-logo{max-width: 130px;}
|
1176 |
+
}
|
1177 |
+
@media (max-width: 30em) {
|
1178 |
+
.flowplayer .fv_player_popup {width:99%;font-size:14px;top:0;}
|
1179 |
+
.flowplayer.is-fv-narrow .fv_player_popup{font-size:0.8em}
|
1180 |
+
}
|
1181 |
+
@media (max-width: 22.5em) {
|
1182 |
+
.flowplayer .fp-logo{max-width: 90px;}
|
1183 |
+
.flowplayer.is-fv-narrow .mailchimp-form{padding:10px 1.5%}
|
1184 |
+
.flowplayer.is-fv-narrow .fv_player_popup{font-size:0.7em}
|
1185 |
+
}
|
1186 |
+
|
1187 |
+
|
1188 |
+
|
1189 |
+
|
1190 |
+
/*this might be needed some day: .flowplayer .fp-waiting em { opacity: 1 !important; } */
|
1191 |
+
.flowplayer.is-fullscreen .fp-player{background-color:#000}
|
1192 |
+
|
1193 |
+
|
1194 |
+
|
1195 |
+
/* error icon, todo: check! */
|
1196 |
+
.is-error.flowplayer .fp-player:before {
|
1197 |
+
background: url("img/no-play-white.svg") no-repeat center center;
|
1198 |
+
background-size: 14%;
|
1199 |
+
z-index: 2;
|
1200 |
+
content: '';
|
1201 |
+
display: block;
|
1202 |
+
height: 100%;
|
1203 |
+
position: relative;
|
1204 |
+
-webkit-filter: drop-shadow( 0 0 4px #aaa );
|
1205 |
+
filter: drop-shadow( 0 0 4px #aaa );
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
.flowplayer video.fp-engine { visibility:visible; }
|
1209 |
+
.flowplayer .fp-engine { max-width:100%; }
|
1210 |
+
.flowplayer.is-fullscreen .fp-logo{z-index:2147483647;}
|
1211 |
+
.flowplayer .fp-logo{pointer-events: none;}
|
1212 |
+
|
1213 |
+
/* Share bar, todo: check! */
|
1214 |
+
.flowplayer .fp-embed-code{display:none;}
|
1215 |
+
.flowplayer .fvp-share-bar{font-size:12px}
|
1216 |
+
.is-rtl.flowplayer .fvp-share-bar{left:auto;}
|
1217 |
+
.flowplayer .fvp-share-bar textarea{width:400px;min-height:130px;font-family: "Lucida Console", Monaco, monospace; color:#777; white-space:nowrap; resize:none;overflow:hidden;border:0;outline:0;background-color:transparent;color:#ccc; border: 1px solid #888;}
|
1218 |
+
.flowplayer.is-embedding .fp-embed,.flowplayer.is-embedding .fvp-share-bar{display:block;opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)}
|
1219 |
+
|
1220 |
+
/* style reset first */
|
1221 |
+
.flowplayer .fvp-sharing ul {
|
1222 |
+
list-style: none !important;
|
1223 |
+
}
|
1224 |
+
.fvp-share-bar ul,
|
1225 |
+
.fvp-share-bar .fvp-sharing,
|
1226 |
+
#content .fvp-share-bar .fvp-sharing {
|
1227 |
+
margin: 0.4em 0 0 0;
|
1228 |
+
padding: 0 !important;
|
1229 |
+
float: left;
|
1230 |
+
font-family: "Lucida Console", Monaco, monospace;
|
1231 |
+
}
|
1232 |
+
.fvp-share-bar label {
|
1233 |
+
text-align: center !important;
|
1234 |
+
}
|
1235 |
+
.fvp-share-bar .fvp-sharing li a:before,
|
1236 |
+
.fvp-share-bar .fvp-sharing li a:after,
|
1237 |
+
.fvp-share-bar .fvp-sharing li:before,
|
1238 |
+
.fvp-share-bar .fvp-sharing li:after {
|
1239 |
+
content: "" !important;
|
1240 |
+
display: none !important;
|
1241 |
+
}
|
1242 |
+
.fvp-share-bar .fvp-sharing li {
|
1243 |
+
float: left;
|
1244 |
+
display: inline-block;
|
1245 |
+
margin: 0 5px !important;
|
1246 |
+
padding: 0 !important;
|
1247 |
+
border: none !important;
|
1248 |
+
background: none !important;
|
1249 |
+
}
|
1250 |
+
/*#content .flowplayer a,
|
1251 |
+
.flowplayer a,
|
1252 |
+
.flowplayer a:hover, viktor, please check */
|
1253 |
+
.fvp-share-bar .fvp-sharing a {
|
1254 |
+
color: #fff !important;
|
1255 |
+
text-shadow: none !important;
|
1256 |
+
-webkit-transition: none !important;
|
1257 |
+
-moz-transition: none !important;
|
1258 |
+
transition: none !important;
|
1259 |
+
}
|
1260 |
+
|
1261 |
+
.flowplayer em {
|
1262 |
+
font-style: normal !important;
|
1263 |
+
}
|
1264 |
+
|
1265 |
+
.fvp-share-bar .fvp-sharing a {
|
1266 |
+
width: 24px;
|
1267 |
+
height: 24px;
|
1268 |
+
display: block;
|
1269 |
+
overflow: hidden;
|
1270 |
+
background: url("img/flp-share-icons.png") no-repeat;
|
1271 |
+
text-indent: -9999em;
|
1272 |
+
-wekbit-box-shadow: none !important;
|
1273 |
+
-moz-box-shadow: none !important;
|
1274 |
+
box-shadow: none !important;
|
1275 |
+
border-bottom: 0 !important;
|
1276 |
+
text-decoration: none !important;
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
.fvp-share-bar .fvp-sharing a.sharing-twitter {
|
1280 |
+
background-position: 0 -28px;
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
.fvp-share-bar .fvp-sharing a.sharing-google {
|
1284 |
+
background-position: 0 -56px;
|
1285 |
+
}
|
1286 |
+
|
1287 |
+
.fvp-share-bar .fvp-sharing a.sharing-email {
|
1288 |
+
background-position: 0 -84px;
|
1289 |
+
}
|
1290 |
+
.fvp-share-bar .sharing-link{
|
1291 |
+
float: left;
|
1292 |
+
color: #fff;
|
1293 |
+
line-height: 22px;
|
1294 |
+
padding: .5em;
|
1295 |
+
font-weight:bold;
|
1296 |
+
}
|
1297 |
+
.flowplayer .fvp-share-bar label{float:left;color:#fff;line-height: 22px;padding: .5em;}
|
1298 |
+
.flowplayer .fp-embed{display:none}
|
1299 |
+
/*.flowplayer.is-mouseover.is-ready .fp-embed-code{display:block}*/
|
1300 |
+
/*.flowplayer.is-mouseout .fvp-share-bar{opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);-webkit-transition:opacity .15s .3s;-moz-transition:opacity .15s .3s;transition:opacity .15s .3s}
|
1301 |
+
.flowplayer.is-mouseout .fvp-share-bar.visible{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)}
|
1302 |
+
.flowplayer.is-mouseover.is-ready .fvp-share-bar{opacity:1;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100)} */
|
1303 |
+
.flowplayer .fp-fullscreen {z-index:1}
|
1304 |
+
.flowplayer .fvp-share-bar {display:none;}
|
1305 |
+
.flowplayer .embed-code {padding: 0 10px 10px; display: none; clear: both; background-color: rgba(0, 0, 0, 0); }
|
1306 |
+
.flowplayer .embed-code label {clear: both; padding-left: 0px; padding-top: 0; line-height: 16px;}
|
1307 |
+
#content .flowplayer .fvp-share-bar textarea, .flowplayer .fvp-share-bar textarea { padding: 3px; line-height: 1.4; white-space: pre-wrap; color: black !important; height: auto; min-height: 130px; width: 99%; font-size: 10px; background-color:rgba(255, 255, 255, 1); box-shadow: none; border-radius: 0; cursor: text; }
|
1308 |
+
#content .flowplayer.is-ready .fvp-share-bar.visible .embed-code, .flowplayer.is-ready .fvp-share-bar.visible .embed-code { display: block; }
|
1309 |
+
/*#content .flowplayer.is-ready .fp-embed-code.visible textarea, .flowplayer.is-ready .fp-embed-code.visible textarea { height: 140px; }*/
|
1310 |
+
.fvp-share-bar a.embed-code-toggle { font-weight: bold; color: white; }
|
1311 |
+
|
1312 |
+
|
1313 |
+
|
1314 |
+
|
1315 |
+
/* Prev/next playlist, todo: check! */
|
1316 |
+
.flowplayer .fp-prev, .flowplayer .fp-next {
|
1317 |
+
position: absolute;
|
1318 |
+
top: 44%;
|
1319 |
+
font-size: 240%;
|
1320 |
+
color: #fff;
|
1321 |
+
padding: 4px;
|
1322 |
+
font-weight: bold;
|
1323 |
+
text-shadow: 0 0 1px #000;
|
1324 |
+
cursor: pointer;
|
1325 |
+
z-index: 12; /* make clickable */
|
1326 |
+
opacity: 1;
|
1327 |
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
1328 |
+
}
|
1329 |
+
.flowplayer .fp-prev {
|
1330 |
+
left: 5px;
|
1331 |
+
}
|
1332 |
+
.flowplayer .fp-next {
|
1333 |
+
right: 5px;
|
1334 |
+
}
|
1335 |
+
.is-mouseout.flowplayer .fp-prev, .is-mouseout.flowplayer .fp-next {
|
1336 |
+
opacity: 0;
|
1337 |
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
1338 |
+
/* same transition as other ui elements like fullscreen */
|
1339 |
+
-webkit-transition: opacity .15s .3s;
|
1340 |
+
-moz-transition: opacity .15s .3s;
|
1341 |
+
transition: opacity .15s .3s;
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
|
1345 |
+
|
1346 |
+
@-moz-keyframes blending{
|
1347 |
+
to { opacity: 1; }
|
1348 |
+
}@-webkit-keyframes blending{
|
1349 |
+
to { opacity: 1 }
|
1350 |
+
}@-o-keyframes blending{
|
1351 |
+
to { opacity: 1 }
|
1352 |
+
}@-ms-keyframes blending{
|
1353 |
+
to { opacity: 1 }
|
1354 |
+
}@keyframes blending{
|
1355 |
+
to { opacity: 1 }
|
1356 |
+
}
|
1357 |
+
|
1358 |
+
/*this might be needed some day:
|
1359 |
+
|
1360 |
+
@-moz-keyframes fade-in {
|
1361 |
+
from { transform: opacity 0.5s ease; opacity: 0; filter: alpha(opacity=0); }
|
1362 |
+
to { opacity: 1; filter: alpha(opacity=100); }
|
1363 |
+
}
|
1364 |
+
@-webkit-keyframes fade-in {
|
1365 |
+
from { transform: opacity 0.5s ease; opacity: 0; filter: alpha(opacity=0); }
|
1366 |
+
to { opacity: 1; filter: alpha(opacity=100); }
|
1367 |
+
}
|
1368 |
+
@keyframes fade-in {
|
1369 |
+
from { transform: opacity 0.5s ease; opacity: 0; filter: alpha(opacity=0); }
|
1370 |
+
to { opacity: 1; filter: alpha(opacity=100); }
|
1371 |
+
}
|
1372 |
+
*/
|
1373 |
+
|
1374 |
+
|
1375 |
+
|
1376 |
+
/* Other playlist styles */
|
1377 |
+
|
1378 |
+
.fp-playlist-external a,.entry-content .fp-playlist-external a {position:relative;text-decoration:none;border-bottom:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
1379 |
+
.fp-playlist-external a:focus,.entry-content .fp-playlist-external a:focus {outline:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;}
|
1380 |
+
.fp-playlist-external a:hover,.entry-content .fp-playlist-external a:hover {-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;text-decoration:none;border-bottom:0}
|
1381 |
+
.fp-playlist-external a,.fp-playlist-external a h4,.fp-playlist-vertical-wrapper .fp-playlist-external {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
1382 |
+
.fp-playlist-external a div:empty,.fp-playlist-horizontal a.fvp-video-thumb-no-splash h4 {background-color:#aaa}
|
1383 |
+
.fp-playlist-external a div {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
1384 |
+
.fp-playlist-external a.is-active div:after {opacity:0;position:absolute;content:"";top:0;bottom:0;left:0;right:0;opacity:0;border:0;transition: all ease-in-out 1s;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:98}
|
1385 |
+
.fp-playlist-external a h4 {font-family:Helvetica Neue,Helvetica,Arial,sans-serif;letter-spacing:0;font-weight:400;line-height:1.25}
|
1386 |
+
.fp-playlist-external a .now-playing {opacity:0;width:100%;height:100%;transition: all 1s ease-in-out 0s;position:absolute;top:0;bottom:0;left:0;right:0;box-shadow: inset 0 0 250px #000;color:#fff;font-size:16px;font-family:"myriad pro",Helvetica,Arial,sans-serif;font-weight:700;text-transform:uppercase;text-shadow:0 0 5px #333;z-index:99;-webkit-animation:blending 3s ease-in-out 1s alternate infinite;-moz-animation:blending 3s ease-in-out 1s alternate infinite;animation:blending 3s ease-in-out 1s alternate infinite}
|
1387 |
+
.fp-playlist-external a .now-playing span {background-color:transparent;display:block;margin:0 auto;position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);transform:translateY(-50%)}
|
1388 |
+
.fp-playlist-external.fv-playlist-design-2017 a.is-active h4,.fp-playlist-external a.is-active:hover .now-playing {display:none;}
|
1389 |
+
.fp-playlist-external.fv-playlist-design-2017 a.is-active:hover h4 {display:block}
|
1390 |
+
|
1391 |
+
.fp-playlist-horizontal {text-align:center;display:block;margin-left:auto;margin-right:auto;margin-bottom: 24px;clear:both;font-size:0}
|
1392 |
+
.fp-playlist-horizontal:before,.fp-playlist-horizontal:after {content:"";display:table}
|
1393 |
+
.fp-playlist-horizontal:after {clear:both}
|
1394 |
+
.fp-playlist-horizontal a,.entry-content .fp-playlist-horizontal a,.flowplayer.is-fv-narrow + .fp-playlist-horizontal a {width: 33.333333333%;display:inline-block;vertical-align:top;margin:0;padding:0;background-color:#fff;border:1px solid #fff;text-align:center;font-size:13px;line-height:1.2;position:relative}
|
1395 |
+
.fp-playlist-horizontal a:hover,.entry-content .fp-playlist-horizontal a:hover {border:1px solid #fff}
|
1396 |
+
.fp-playlist-horizontal a:nth-child(3n+1) {clear:both}
|
1397 |
+
.fp-playlist-external a div {display:block;position:relative;width:100%;height:auto;margin:0;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s;padding-top:56%;border:0;background-size:cover;background-position:center center;background-repeat:no-repeat}
|
1398 |
+
.fp-playlist-horizontal a:nth-child(3n+1) div:before {display:none}
|
1399 |
+
.fp-playlist-external a h4 {opacity:0;position:absolute;top:0%;bottom:0;left:0;right:0;width:100%;margin:0 auto;padding:5px 10px;text-align:center;transition:all 0.3s ease-in-out 0.1s;font-size:13px;color:#fff;background-color:rgba(0, 0, 0, 0.75)}
|
1400 |
+
.fp-playlist-external a h4 span {position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);transform:translateY(-50%);border:0;padding:5px 10px}
|
1401 |
+
.fp-playlist-external a:hover h4,.fp-playlist-external a.fvp-video-thumb-no-splash h4,#dashboard-widgets .flowplayer-wrapper a:hover h4,.fp-playlist-external a.is-active:hover h4, .fp-playlist-external a:hover .dur {opacity:1;color:#fff}
|
1402 |
+
.fp-playlist-horizontal a.is-active {-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}
|
1403 |
+
.is-touch + .fp-playlist-horizontal a h4 {opacity:1;background-color:transparent;text-shadow:0 0 12px #000;top:20%;bottom:20%;font-family:"myriad pro",Helvetica,Arial,sans-serif !important}
|
1404 |
+
.is-touch + .fp-playlist-horizontal a h4 span {background-color:rgba(0,0,0,0.3)}
|
1405 |
+
.fp-playlist-horizontal.is-wide a,.entry-content .fp-playlist-horizontal.is-wide a {width: 20%}
|
1406 |
+
.fp-playlist-horizontal.is-wide a:nth-child(3n+1) div:before {display: block}
|
1407 |
+
.fp-playlist-horizontal.is-wide a:nth-child(5n+1) div:before {display: none}
|
1408 |
+
.fp-playlist-horizontal.is-wide a:nth-child(3n+1) {clear:none}
|
1409 |
+
.fp-playlist-horizontal.is-wide a:nth-child(5n+1) {clear:both}
|
1410 |
+
|
1411 |
+
.fv-playlist-slider-wrapper { overflow-x: scroll; margin-bottom: 24px;-webkit-overflow-scrolling: touch;display:block}
|
1412 |
+
.fv-playlist-slider-wrapper .fp-playlist-horizontal { margin-bottom: 8px; width: 2500px }
|
1413 |
+
.fv-playlist-slider-wrapper .fp-playlist-horizontal a { width: 200px }
|
1414 |
+
|
1415 |
+
.fp-playlist-vertical {text-align:left;overflow-x:hidden;max-width:100%;background-color:#fff}
|
1416 |
+
.fp-playlist-vertical-player {float:left!important;max-width:calc( 100% - 156px)!important}
|
1417 |
+
.fp-playlist-vertical-wrapper {margin-bottom:24px;overflow:hidden;display:block}
|
1418 |
+
.fp-playlist-vertical-wrapper:before,.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:before,.fp-playlist-text-wrapper:after {content:"";display:table}
|
1419 |
+
.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:after {clear:both}
|
1420 |
+
.fp-playlist-vertical.fp-playlist-only-captions a h4 span {line-height:1}
|
1421 |
+
.fp-playlist-vertical a div {display:block;position:relative;width:100%;height:auto;margin:0 0 1px;padding-top:55%;border:0;background-color:#fff;background-size:cover;background-position:center center;background-repeat:no-repeat}
|
1422 |
+
.fp-playlist-vertical a h4 {margin:0;font-size:13px;color:#000}
|
1423 |
+
.fp-playlist-vertical-wrapper .flowplayer {width:75%;float:left;margin-bottom:0}
|
1424 |
+
.fp-playlist-vertical-wrapper .fp-playlist-vertical {width:25%;margin-bottom:0;padding:0 2px}
|
1425 |
+
.fp-playlist-vertical-wrapper .fp-playlist-vertical a {display:block;margin-bottom:2px}
|
1426 |
+
.css-videos .fp-playlist-vertical-wrapper video, .fp-playlist-vertical-wrapper video {min-height:0 !important;height:100% !important}
|
1427 |
+
.fp-playlist-external.fp-playlist-vertical a:hover .now-playing {opacity:0}
|
1428 |
+
.fp-playlist-only-captions.fp-playlist-vertical a h4 {position:relative;top:auto;background-color:transparent;opacity:1;text-shadow:none}
|
1429 |
+
.fp-playlist-only-captions.fp-playlist-vertical a,.fp-playlist-only-captions.fp-playlist-vertical a:hover h4 {color:#000}
|
1430 |
+
|
1431 |
+
|
1432 |
+
/* Playlist 2014 - classic */
|
1433 |
+
.fv-playlist-design-2014.fp-playlist-external a h4 {opacity:1;position:relative;margin-bottom:7px;padding:0 10px 4px;color:#000;background-color:transparent}
|
1434 |
+
.fv-playlist-design-2014.fp-playlist-external a h4 span {position:relative;transform:none;top:auto;padding:0}
|
1435 |
+
.fv-playlist-design-2014.fp-playlist-external a:hover h4,.fv-playlist-design-2014.fp-playlist-external a.fvp-video-thumb-no-splash h4,#dashboard-widgets .flowplayer-wrapper .fv-playlist-design-2014 a:hover h4 {color:inherit}
|
1436 |
+
|
1437 |
+
/* Playlist 2017 - text only */
|
1438 |
+
.fp-playlist-text.fp-playlist-external a h4,.visible-captions.fp-playlist-external a h4 {background-color:transparent;opacity:1}
|
1439 |
+
.visible-captions.fp-playlist-external a h4 span {color: #fff;background-color:rgb(0, 0, 0);background-color:rgba(0, 0, 0, 0.5)}
|
1440 |
+
.fp-playlist-text.fp-playlist-external a:hover div {background-color:#666}
|
1441 |
+
.fp-playlist-text.fp-playlist-vertical a {margin-bottom:12px;}
|
1442 |
+
.fp-playlist-text.fp-playlist-external a.is-active div:after {background-color:transparent}
|
1443 |
+
.fp-playlist-text-wrapper .flowplayer {width:65%;float:left}
|
1444 |
+
.fp-playlist-text-wrapper .fp-playlist-vertical {width:35%}
|
1445 |
+
.fp-playlist-text-wrapper .fp-playlist-only-captions a .now-playing {display:none}
|
1446 |
+
.fp-playlist-only-captions.fp-playlist-vertical a {display:block;}
|
1447 |
+
.fp-playlist-text-wrapper.is-fv-narrow .flowplayer,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-text,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions,.fp-playlist-vertical-wrapper.is-fv-narrow .flowplayer,.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical {width:100%;float:none;margin-bottom:0}
|
1448 |
+
.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical a {width:49%;float:left;margin:0.75% 0.5%}
|
1449 |
+
.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions a {width:100%;float:none;display:block}
|
1450 |
+
.fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4, .entry-content .fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4 { text-align: left; padding:2px 8px }
|
1451 |
+
.fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4 span { position:relative;top:auto;left:auto;right:auto;-webkit-transform:none;transform:none;padding:0 }
|
1452 |
+
.fp-playlist-only-captions.fp-playlist-external .dur { opacity:1;color:#999;position:relative;right:auto;top:auto;text-shadow:none;margin-left:6px; }
|
1453 |
+
.fp-playlist-only-captions.fp-playlist-external a:hover .dur { color:#999; }
|
1454 |
+
|
1455 |
+
/* Some mobiles stuff, todo: check! */
|
1456 |
+
@media only screen and (max-width: 48em) {
|
1457 |
+
.fp-playlist-horizontal {margin-left:-1px;margin-right:-1px}
|
1458 |
+
.fp-playlist-horizontal a,.entry-content .fp-playlist-horizontal a, .flowplayer.is-fv-narrow + .fp-playlist-horizontal a {width: 50%}
|
1459 |
+
.fp-playlist-horizontal a:nth-child(3n+1) {clear:none}
|
1460 |
+
.fp-playlist-horizontal a:nth-child(2n+1) {clear:both}
|
1461 |
+
.fv-playlist-slider-wrapper .fp-playlist-horizontal a,.entry-content .fv-playlist-slider-wrapper .fp-playlist-horizontal a, .flowplayer.is-fv-narrow + .fv-playlist-slider-wrapper .fp-playlist-horizontal a {width: 200px}
|
1462 |
+
.is-error.flowplayer .fp-player:before {background-size:17%}
|
1463 |
+
}
|
1464 |
+
@media (max-width: 40em){
|
1465 |
+
.fv_fp_close a {width:24px;height:24px;background-size:24px 24px}
|
1466 |
+
.fp-playlist-horizontal a h4, .fp-playlist-external a h4 {font-size:12px}
|
1467 |
+
.fp-playlist-vertical-wrapper .flowplayer,.fp-playlist-vertical-wrapper .fp-playlist-vertical {width:100%;float:none;margin-bottom:0}
|
1468 |
+
.fp-playlist-vertical a {width:49%;float:left;margin:0.75% 0.5%}
|
1469 |
+
.fp-playlist-only-captions.fp-playlist-vertical a {width:100%;float:none;margin:8px 0}
|
1470 |
+
.fp-playlist-vertical a:nth-child(2n+1) {clear:both}
|
1471 |
+
}
|
1472 |
+
@media only screen and (max-width: 30em) {
|
1473 |
+
.flowplayer.is-audio .fp-time em {font-size:12px}
|
1474 |
+
.fp-playlist-external a h4 {font-size:10px}
|
1475 |
+
}
|
1476 |
+
@media only screen and (max-width: 22.44em) {
|
1477 |
+
.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical a {width:100%;float:none;margin:0.75% 0.5%}
|
1478 |
+
.is-error.flowplayer .fp-player:before {background-size:20%}
|
1479 |
+
}
|
1480 |
+
|
1481 |
+
|
1482 |
+
|
1483 |
+
/*this might be needed some day: .flowplayer.video1, .flowplayer.video2, .flowplayer.video3, .flowplayer.video4, .flowplayer.video5, .flowplayer.video6, .flowplayer.video7, .flowplayer.video8, .flowplayer.video9, .flowplayer.video10, .flowplayer.video11, .flowplayer.video12, .flowplayer.video13, .flowplayer.video14, .flowplayer.video15, .flowplayer.video16 { background-image: none !important; } */
|
1484 |
+
|
1485 |
+
/*this might be needed some day: .flowplayer .fp-volume { text-align: left; } */
|
1486 |
+
|
1487 |
+
#content .flowplayer a, .flowplayer a, .flowplayer a:hover { text-decoration: none; border-bottom: none; -wekbit-box-shadow: none !important; -moz-box-shadow: none !important; box-shadow: none !important; border-bottom: 0 !important; text-decoration: none !important; }
|
1488 |
+
|
1489 |
+
|
1490 |
+
|
1491 |
+
/* Popups, todo: check! */
|
1492 |
+
.flowplayer .wpfp_custom_ad { display: none; overflow: hidden; }
|
1493 |
+
.flowplayer .wpfp_custom_ad img { height: auto; }
|
1494 |
+
.flowplayer.is-playing .wpfp_custom_ad, .flowplayer.is-ready .wpfp_custom_ad { display: block; }
|
1495 |
+
.flowplayer.is-poster .wpfp_custom_ad { display: none; }
|
1496 |
+
|
1497 |
+
.fv_fp_close { position: absolute; right: 2px; top: 2px; z-index: 20; }
|
1498 |
+
.fv_fp_close a { display: block; width: 16px; height: 16px; background: url(img/exit_btn.png) no-repeat; background-size: 16px 16px; }
|
1499 |
+
|
1500 |
+
.wpfp_custom_ad_content h1, .wpfp_custom_ad_content h2, .wpfp_custom_ad_content h3, .wpfp_custom_ad_content h4, .wpfp_custom_ad_content h5, .wpfp_custom_ad_content p { padding: 0 5px 2px 5px; margin: 0 5px 2px 5px; }
|
1501 |
+
|
1502 |
+
|
1503 |
+
|
1504 |
+
/* Alignment, todo: check! */
|
1505 |
+
.flowplayer.alignleft { margin-left: 10px; margin-bottom: 10px; }
|
1506 |
+
.flowplayer.alignright { margin-right: 10px; margin-bottom: 10px; }
|
1507 |
+
|
1508 |
+
|
1509 |
+
|
1510 |
+
/* No Controlar, todo: check! */
|
1511 |
+
.flowplayer.no-controlbar .fp-controls a,.flowplayer.no-controlbar .fp-controls .fp-volume,.flowplayer.no-controlbar .fp-time {display:none;}
|
1512 |
+
.flowplayer.is-mouseover.no-controlbar .fp-controls, .flowplayer.fixed-controls.no-controlbar .fp-controls {height:auto;}
|
1513 |
+
.flowplayer.is-mouseover.no-controlbar .fp-timeline {height:4px;top:0;}
|
1514 |
+
.has-menu.no-brand.flowplayer.no-controlbar .fp-timeline {margin:0;}
|
1515 |
+
.flowplayer.is-mouseover.no-controlbar .fp-controls, .flowplayer.is-mouseover.no-controlbar .fp-mute, .flowplayer.is-mouseover.no-controlbar .fp-title {height:0;}
|
1516 |
+
.flowplayer.no-controlbar .fp-buffer, .flowplayer.no-controlbar .fp-progress, .flowplayer.no-controlbar .fp-timeline { cursor: auto; }
|
1517 |
+
.flowplayer.no-controlbar .fp-timeline:hover+.fp-timeline-tooltip { display: none; }
|
1518 |
+
|
1519 |
+
|
1520 |
+
|
1521 |
+
/* Caption, todo: check!*/
|
1522 |
+
p.fp-caption { text-align: center; }
|
1523 |
+
|
1524 |
+
|
1525 |
+
|
1526 |
+
|
1527 |
+
/* Buttons, todo: check! or better not use! */
|
1528 |
+
.is-splash.flowplayer .fv-player-buttons, .is-loading.flowplayer .fv-player-buttons {
|
1529 |
+
display: none;
|
1530 |
+
}
|
1531 |
+
.flowplayer .fv-player-buttons-center {
|
1532 |
+
position: absolute;
|
1533 |
+
left: 50%;
|
1534 |
+
margin-left: -34px;
|
1535 |
+
bottom: 30px;
|
1536 |
+
}
|
1537 |
+
.flowplayer .fv-player-buttons > ul {
|
1538 |
+
position: relative;
|
1539 |
+
z-index: 20; /* make clickable */
|
1540 |
+
display: block;
|
1541 |
+
opacity: 1;
|
1542 |
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
|
1543 |
+
margin: 0 auto;
|
1544 |
+
}
|
1545 |
+
.flowplayer .fv-player-buttons > ul:last {
|
1546 |
+
margin-left: 0px;
|
1547 |
+
}
|
1548 |
+
.flowplayer .fv-player-buttons-right {
|
1549 |
+
position: absolute;
|
1550 |
+
right: 0;
|
1551 |
+
bottom: 30px;
|
1552 |
+
}
|
1553 |
+
.flowplayer .fv-player-buttons-right > ul {
|
1554 |
+
/*position: relative;
|
1555 |
+
left: -95%;*/
|
1556 |
+
}
|
1557 |
+
.flowplayer .fv-player-buttons-left {
|
1558 |
+
position: absolute;
|
1559 |
+
left: 0;
|
1560 |
+
bottom: 30px;
|
1561 |
+
}
|
1562 |
+
.flowplayer.fixed-controls .fv-player-buttons-left, .flowplayer.fixed-controls .fv-player-buttons-right, .flowplayer.fixed-controls .fv-player-buttons-center {
|
1563 |
+
bottom: 0px;
|
1564 |
+
}
|
1565 |
+
.flowplayer.fixed-controls.is-fullscreen .fv-player-buttons-left, .flowplayer.fixed-controls.is-fullscreen .fv-player-buttons-right, .flowplayer.fixed-controls.is-fullscreen .fv-player-buttons-center {
|
1566 |
+
bottom: 30px;
|
1567 |
+
}
|
1568 |
+
.flowplayer .fv-player-buttons-left > ul {
|
1569 |
+
left: 0;
|
1570 |
+
}
|
1571 |
+
.flowplayer.is-mouseout .fv-player-buttons > ul {
|
1572 |
+
opacity: 0;
|
1573 |
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
|
1574 |
+
-webkit-transition: opacity .15s ease .3s;
|
1575 |
+
-moz-transition: opacity .15s ease .3s;
|
1576 |
+
transition: opacity .15s ease .3s;
|
1577 |
+
}
|
1578 |
+
.flowplayer .fv-player-buttons li {
|
1579 |
+
display: inline-block;
|
1580 |
+
float: left;
|
1581 |
+
margin: 0 0.3em;
|
1582 |
+
padding: 0;
|
1583 |
+
}
|
1584 |
+
.flowplayer .fv-player-buttons a {
|
1585 |
+
display: inline-block;
|
1586 |
+
float: left;
|
1587 |
+
padding: 0.4ex 0.6ex;
|
1588 |
+
margin: 0.5ex 0;
|
1589 |
+
width: 100%;
|
1590 |
+
text-align: center;
|
1591 |
+
font-weight: 400;
|
1592 |
+
background-color: #ccc;
|
1593 |
+
background-color: rgba(255,255,255,0.5);
|
1594 |
+
color: #fff;
|
1595 |
+
cursor: pointer;
|
1596 |
+
line-height: 1.3em;
|
1597 |
+
-webkit-border-radius: 5px;
|
1598 |
+
-moz-border-radius: 5px;
|
1599 |
+
border-radius: 5px;
|
1600 |
+
-webkit-transition: background-color 0.2s ease-out;
|
1601 |
+
-moz-transition: background-color 0.2s ease-out;
|
1602 |
+
-o-transition: background-color 0.2s ease-out;
|
1603 |
+
transition: background-color 0.2s ease-out;
|
1604 |
+
font-size: 14px;
|
1605 |
+
box-sizing: border-box;
|
1606 |
+
}
|
1607 |
+
.flowplayer .fv-player-buttons a:active {
|
1608 |
+
background-color: rgba(255,255,255,0.85);
|
1609 |
+
}
|
1610 |
+
.flowplayer .fv-player-buttons a.current {
|
1611 |
+
color: #00a7c8;
|
1612 |
+
background-color: #555;
|
1613 |
+
cursor: default;
|
1614 |
+
}
|
1615 |
+
.flowplayer .fv-player-buttons a.fv_sp_slower {
|
1616 |
+
-webkit-border-radius: 1ex 0 0 1ex;
|
1617 |
+
-moz-border-radius: 1ex 0 0 1ex;
|
1618 |
+
border-radius: 1ex 0 0 1ex;
|
1619 |
+
margin-right: 2px;
|
1620 |
+
width: 2.05em;
|
1621 |
+
}
|
1622 |
+
.flowplayer .fv-player-buttons a.fv_sp_faster {
|
1623 |
+
-webkit-border-radius: 0 1ex 1ex 0;
|
1624 |
+
-moz-border-radius: 0 1ex 1ex 0;
|
1625 |
+
border-radius: 0 1ex 1ex 0;
|
1626 |
+
width: 2em;
|
1627 |
+
}
|
1628 |
+
.fv-player-speed li {
|
1629 |
+
margin: 0;
|
1630 |
+
}
|
1631 |
+
|
1632 |
+
|
1633 |
+
/* Video checker, todo: check! */
|
1634 |
+
.fvfp_admin_error { position: absolute; top: 10%; z-index: 2; text-align: center; width: 100%; /*color: #fff;*/ }
|
1635 |
+
.fvfp_admin_error { -webkit-animation-name: fade-in; -moz-animation-name: fade-in; -o-animation-name: fade-in; animation-name: fade-in; -webkit-animation-duration: 1s; -moz-animation-duration: 1s; -o-animation-duration: 1s; animation-duration: 1s; -webkit-animation-delay: 5s; -moz-animation-delay: 5s;-o-animation-delay: 5s; animation-delay: 5s; -webkit-animation-fill-mode:both; -moz-animation-fill-mode:both; -o-animation-fill-mode:both; animation-fill-mode:both; }
|
1636 |
+
|
1637 |
+
article .entry-content .fvfp_admin_error p { line-height: 18px }
|
1638 |
+
.fvfp_admin_error a { /*color: #fff;*/ text-decoration: underline }
|
1639 |
+
#content .fvfp_admin_error a { /*color: #fff;*/ text-decoration: underline }
|
1640 |
+
.fvfp_admin_error_content { /*background: #dd0000;*/ padding: 1% 5%; width: 65%; margin: 0 auto; -webkit-box-shadow: 3px 3px 30px 0px rgba(50, 50, 50, 0.96); -moz-box-shadow: 3px 3px 30px 0px rgba(50, 50, 50, 0.96); box-shadow: 3px 3px 30px 0px rgba(50, 50, 50, 0.96);}
|
1641 |
+
.flowplayer:hover .fvfp_admin_error { display: block }
|
1642 |
+
|
1643 |
+
|
1644 |
+
/* Duration, todo: check!*/
|
1645 |
+
.fvfp_duration { position: absolute; bottom: 0px; right: 1%; z-index: 2; text-align: center; color: #fff; display:none }
|
1646 |
+
.is-ready .fvfp_duration, .is-loading .fvfp_duration { display: none }
|
1647 |
+
.fp-playlist-external .dur { font-style:normal;position:absolute;top:6px;right:6px;color:#fff;line-height:1;text-shadow:0 0 3px #333;opacity:0;-webkit-transition:all 0.3s ease-in-out 0.1s;-moz-transition:all 0.3s ease-in-out 0.1s;transition:all 0.3s ease-in-out 0.1s }
|
1648 |
+
|
1649 |
+
|
1650 |
+
/* No animation, todo: check! */
|
1651 |
+
.no-animation.flowplayer * { -webkit-transition:none !important;-moz-transition:none !important;transition:none !important }
|
1652 |
+
|
1653 |
+
|
1654 |
+
|
1655 |
+
|
1656 |
+
/*
|
1657 |
+
* FV Flowplayer Tabs, todo: check!
|
1658 |
+
*/
|
1659 |
+
.fv_flowplayer_tabs { margin: 0 auto; }
|
1660 |
+
.fv_flowplayer_tabs ul.ui-tabs,.fv_flowplayer_tabs ul.ui-tabs-nav{margin:0 !important;font-size:13px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;line-height:24px !important}
|
1661 |
+
.fv_flowplayer_tabs .ui-tabs { padding: 0; zoom: 1; }
|
1662 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: 1px 0; }
|
1663 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li { position: relative; float: left; border-width: 0 !important; margin: 0 4px 2px 0 !important; padding: 0 !important; list-style:none !important;line-height:24px !important;}
|
1664 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: 4px 10px !important; color:#5E5E5E !important;line-height:24px !important;background-color:#EFEFEF;}
|
1665 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li.ui-state-active a, .fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; color:#FFF !important; background-color:#5E5E5E;}
|
1666 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li a, .fv_flowplayer_tabs .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-state-active a { cursor: pointer; outline: none; border: none; }
|
1667 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-panel { padding: 4px 0; display: block; border-width: 0; background: none; }
|
1668 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-hide { position: absolute; left: -10000px; }
|
1669 |
+
|
1670 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li.ui-corner-top, .fv_flowplayer_tabs .ui-tabs-horizontal-top .wpts_ext{padding-bottom:4px!important;height:32px; }
|
1671 |
+
|
1672 |
+
.fv_flowplayer_tabs .fv_flowplayer_tabs_cl{display:block;visibility:hidden;clear:left;height:0;content:".";}
|
1673 |
+
.fv_flowplayer_tabs .fv_flowplayer_tabs_cr{display:block;visibility:hidden;clear:right;height:0;content:".";}
|
1674 |
+
|
1675 |
+
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav li i.dur {display: none; }
|
1676 |
+
|
1677 |
+
|
1678 |
+
|
1679 |
+
|
1680 |
+
/* Warnings, todo: check! */
|
1681 |
+
.fv-player-warning-wrapper{
|
1682 |
+
margin: 5px 0 15px;
|
1683 |
+
border-left: 4px solid #fff;
|
1684 |
+
border-left-color: #46b450;
|
1685 |
+
}
|
1686 |
+
.fv-player-warning-wrapper p{
|
1687 |
+
margin: .5em;
|
1688 |
+
padding: 2px;
|
1689 |
+
}
|
1690 |
+
|
1691 |
+
|
1692 |
+
|
1693 |
+
/* Notices, todo: check! */
|
1694 |
+
.fvfp-notices { position: absolute;top:10%;z-index:20;text-align:center;width:100%;color:#fff;text-shadow: 0 0 1px #000; opacity: 1 }
|
1695 |
+
.flowplayer.is-splash .fvfp-notices { display: block }
|
1696 |
+
|
1697 |
+
|
1698 |
+
/* Disable selection, todo: check! */
|
1699 |
+
.flowplayer {
|
1700 |
+
-webkit-touch-callout: none;
|
1701 |
+
-webkit-user-select: none;
|
1702 |
+
-khtml-user-select: none;
|
1703 |
+
-moz-user-select: none;
|
1704 |
+
-ms-user-select: none;
|
1705 |
+
user-select: none;
|
1706 |
+
}
|
1707 |
+
.fv_wp_fp_notice_content {
|
1708 |
+
-webkit-touch-callout: auto;
|
1709 |
+
-webkit-user-select: auto;
|
1710 |
+
-khtml-user-select: auto;
|
1711 |
+
-moz-user-select: auto;
|
1712 |
+
-ms-user-select: auto;
|
1713 |
+
user-select: auto;
|
1714 |
+
}
|
1715 |
+
|
1716 |
+
|
1717 |
+
|
1718 |
+
|
1719 |
+
/* Some loading indicator, todo: check */
|
1720 |
+
.flowplayer .fv-form-loading{ background:transparent url(loading.gif) 50% 50% no-repeat; }
|
1721 |
+
|
1722 |
+
|
1723 |
+
|
1724 |
+
/* Chrome download button fix, todo: check! */
|
1725 |
+
.flowplayer.chrome55fix video::-internal-media-controls-download-button, .flowplayer.chrome55fix-subtitles video::-internal-media-controls-download-button { display:none; }
|
1726 |
+
.flowplayer.chrome55fix video::-webkit-media-controls-enclosure, .flowplayer.chrome55fix-subtitles video::-webkit-media-controls-enclosure { overflow:hidden; }
|
1727 |
+
.flowplayer.chrome55fix video::-webkit-media-controls-panel { width: calc(100% + 48px); }
|
1728 |
+
.flowplayer.chrome55fix-subtitles video::-webkit-media-controls-panel { width: calc(100% + 96px); }
|
1729 |
+
|
1730 |
+
|
1731 |
+
|
1732 |
+
/* Audio player, todo: check! */
|
1733 |
+
|
1734 |
+
.is-audio .fp-player {
|
1735 |
+
background-size: contain;
|
1736 |
+
background-position: top center;
|
1737 |
+
background-repeat: no-repeat;
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
|
1741 |
+
|
1742 |
+
/* Audio player playlist, todo: check! */
|
1743 |
+
.flowplayer.is-audio,.site-content .flowplayer.is-audio,.flowplayer.fixed-controls.is-audio {margin-top:40px}
|
1744 |
+
.flowplayer.is-audio .fv-player-buttons li {margin:0}
|
1745 |
+
.site-content .flowplayer.is-audio .fp-controls,.site-content .flowplayer.is-audio .fv-ab-loop,.site-content .fv-player-buttons a:active,.site-content .fv-player-buttons a { background-color:#888 !important }
|
1746 |
+
.is-audio .fp-playlist-external { background-color:#eee }
|
1747 |
+
.flowplayer.is-audio .fp-controls { height:40px;top:0;bottom:0 }
|
1748 |
+
.flowplayer.is-audio .fp-play { height:40px !important; width:40px;line-height:40px !important }
|
1749 |
+
.flowplayer.fixed-controls.is-audio .fp-time em { bottom:13px }
|
1750 |
+
.flowplayer.is-audio .fp-waiting em {margin:0.8em 0.3em 0}
|
1751 |
+
.flowplayer.is-audio .fp-timeline { top:15px }
|
1752 |
+
.flowplayer.is-audio .fp-time { font-size:14px;text-shadow:none }
|
1753 |
+
.flowplayer.is-audio .fp-volume { bottom:17px }
|
1754 |
+
.flowplayer.is-audio .fp-mute { width:40px;height:40px }
|
1755 |
+
.flowplayer.is-splash.is-audio .fp-controls,.flowplayer.is-poster.is-audio .fp-controls { display:block !important }
|
1756 |
+
.is-audio + .fp-playlist-external { counter-reset: 'fv-playlist-counter';background-color:#f0f0f0;border-radius:0 0 10px 10px;border-top:1px solid #fff }
|
1757 |
+
.flowplayer.is-audio .fp-waiting { margin:0 auto; }
|
1758 |
+
.flowplayer.is-audio .fp-speed.fp-hilite { opacity:0;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0); }
|
1759 |
+
.is-audio + .fp-playlist-horizontal {margin-left:0;margin-right:0}
|
1760 |
+
.is-audio + .fp-playlist-horizontal a div,.entry-content .is-audio + .fp-playlist-horizontal a div,.flowplayer.is-audio .fp-player + a { display:none;bottom:0;background-image:none !important }
|
1761 |
+
.is-audio + .fp-playlist-external.fp-playlist-horizontal a,.entry-content .is-audio + .fp-playlist-external.fp-playlist-horizontal a,.flowplayer.is-fv-narrow.is-audio + .fp-playlist-external.fp-playlist-horizontal a { counter-increment:fv-playlist-counter;display:block;width:100%;display:block;text-align:left;line-height:1.15;margin:0;padding:6px 12px;border:0;color:#666;clear:both;min-height:26px }
|
1762 |
+
.is-audio + .fp-playlist-external a:nth-child(odd),.entry-content .is-audio + .fp-playlist-external a:nth-child(odd) {background-color: #f8f8f8;}
|
1763 |
+
.is-audio + .fp-playlist-external a h4,.entry-content .is-audio + .fp-playlist-external a h4 { display: block;opacity:1;position:relative;text-align:left;font-size:13px;padding:0;clear:none;left:auto;width:auto;background-color:transparent;color:inherit }
|
1764 |
+
.is-audio + .fp-playlist-external a h4 span,.entry-content .is-audio + .fp-playlist-external a h4 span { position:relative;top:auto;padding:0;transform:none }
|
1765 |
+
.is-audio + .fp-playlist-external a h4:before,.entry-content .is-audio + .fp-playlist-external a h4:before { content: counter(fv-playlist-counter, decimal-leading-zero) ". ";float:left;min-width:26px;color:#adadad;font-weight:400 }
|
1766 |
+
.flowplayer.is-loading.is-audio .fp-controls, .flowplayer.is-loading.is-audio .fp-time { display:block }
|
1767 |
+
.flowplayer.is-loading.is-audio .fp-waiting { position:relative;top:-3px;z-index:99 }
|
1768 |
+
.flowplayer.fixed-controls.is-audio { margin-bottom:0;height:40px }
|
1769 |
+
.flowplayer.is-audio .fv-ab-loop,.flowplayer.fixed-controls.is-audio .fv-ab-loop {bottom:-28px;padding-left:82px}
|
1770 |
+
|
1771 |
+
.flowplayer.is-audio .fp-fullscreen,.flowplayer.is-audio .fp-ratio,.flowplayer.is-audio.is-splash .fp-timeline-tooltip {display:none}
|
1772 |
+
.flowplayer.is-audio .fp-controls {display:block !important}
|
1773 |
+
.flowplayer.is-audio.is-error {border:0;margin-bottom:50px}
|
1774 |
+
.flowplayer.is-audio.is-error h2,.entry-content .flowplayer.is-audio.is-error h2 {margin:0}
|
1775 |
+
.flowplayer.is-audio .fp-message {padding-top:40px}
|
1776 |
+
.flowplayer.is-audio .fp-time em {width:44px}
|
1777 |
+
.flowplayer.is-audio .fp-message p {font-size:75%}
|
1778 |
+
|
1779 |
+
.flowplayer.is-audio .fp-duration, .flowplayer.is-audio .fp-elapsed, .flowplayer.is-audio a.fp-play, .flowplayer.is-audio a.fp-mute {color:#eee !important}
|
1780 |
+
.flowplayer.is-audio .fp-volumelevel, .flowplayer.is-audio .fp-progress {background-color:#bb0000 !important}
|
1781 |
+
.flowplayer.is-audio .fp-volumeslider, .flowplayer.is-audio .fp-buffer {background-color:#eeeeee !important}
|
1782 |
+
|
1783 |
+
.fp-playlist-external.is-audio a.is-active,.fp-playlist-external.is-audio a.is-active h4,.fp-playlist-external.is-audio a.is-active h4:before {color:#bb0000}
|
1784 |
+
|
1785 |
+
.is-audio .fp-player {background-size:contain;background-position:top center;background-repeat:no-repeat}
|
1786 |
+
|
1787 |
+
|
1788 |
+
@media only screen and (max-width: 48em) {
|
1789 |
+
.fp-playlist-horizontal {margin-left:-1px;margin-right:-1px}
|
1790 |
+
.fp-playlist-horizontal a,.entry-content .fp-playlist-horizontal a, .flowplayer.is-fv-narrow + .fp-playlist-horizontal a {width: 50%}
|
1791 |
+
.fp-playlist-horizontal a:nth-child(3n+1) {clear:none}
|
1792 |
+
.fp-playlist-horizontal a:nth-child(2n+1) {clear:both}
|
1793 |
+
}
|
1794 |
+
@media (max-width: 40em){
|
1795 |
+
.fv_fp_close a {width:24px;height:24px;background-size:24px 24px}
|
1796 |
+
.fp-playlist-external a h4 {font-size:12px}
|
1797 |
+
.fp-playlist-vertical-wrapper .flowplayer,.fp-playlist-vertical-wrapper .fp-playlist-vertical {width:100%;float:none;margin-bottom:0}
|
1798 |
+
.fp-playlist-vertical a {width:49%;float:left;margin:0.75% 0.5%}
|
1799 |
+
.fp-playlist-only-captions.fp-playlist-vertical a {width:100%;float:none;margin:8px 0}
|
1800 |
+
.fp-playlist-vertical a:nth-child(2n+1) {clear:both}
|
1801 |
+
}
|
1802 |
+
@media only screen and (max-width: 30em) {
|
1803 |
+
.flowplayer.is-audio .fp-time em {font-size:12px}
|
1804 |
+
.fp-playlist-external a h4 {font-size:10px}
|
1805 |
+
}
|
1806 |
+
@media only screen and (max-width: 22.44em) {
|
1807 |
+
.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical a {width:100%;float:none;margin:0.75% 0.5%}
|
1808 |
+
}
|
1809 |
+
|
1810 |
+
@media screen and (min-width: 1020px) {
|
1811 |
+
.fp-player a.fp-sticky {
|
1812 |
+
display: none;
|
1813 |
+
}
|
1814 |
+
.flowplayer.is-stickable a.fp-sticky {
|
1815 |
+
display: block;
|
1816 |
+
float: right;
|
1817 |
+
}
|
1818 |
+
|
1819 |
+
.flowplayer a.fp-sticky:before {
|
1820 |
+
content: "\e10f";
|
1821 |
+
}
|
1822 |
+
|
1823 |
+
div.fp-player.is-sticky-left-top, div.fp-player.is-sticky-right-top , div.fp-player.is-sticky-left-bottom , div.fp-player.is-sticky-right-bottom {
|
1824 |
+
transform: translateX(-20px);
|
1825 |
+
-ms-transform: translateX(-20px);
|
1826 |
+
-webkit-transform: translateX(-20px);
|
1827 |
+
transition: width 0.5s ease-in-out, height 0.5s ease-in-out, transform 0.5s ease-in-out;
|
1828 |
+
transition: transform 0.5s;
|
1829 |
+
|
1830 |
+
}
|
1831 |
+
div.fp-player.is-sticky-left-top, div.fp-player.is-sticky-right-top , div.fp-player.is-sticky-left-bottom , div.fp-player.is-sticky-right-bottom {
|
1832 |
+
position: fixed;
|
1833 |
+
top: 50px;
|
1834 |
+
right: 30px;
|
1835 |
+
left: auto;
|
1836 |
+
max-width: 50%;
|
1837 |
+
z-index: 999;
|
1838 |
+
}
|
1839 |
+
div.fp-player.is-sticky-left-top {
|
1840 |
+
transform: translateX(20px);
|
1841 |
+
-ms-transform: translateX(20px);
|
1842 |
+
-webkit-transform: translateX(20px);
|
1843 |
+
top: 50px;
|
1844 |
+
left: 50px;
|
1845 |
+
right: auto;
|
1846 |
+
bottom: auto;
|
1847 |
+
}
|
1848 |
+
div.fp-player.is-sticky-right-top {
|
1849 |
+
top: 50px;
|
1850 |
+
right: 30px;
|
1851 |
+
left: auto;
|
1852 |
+
bottom: auto;
|
1853 |
+
}
|
1854 |
+
div.fp-player.is-sticky-left-bottom {
|
1855 |
+
transform: translateX(20px);
|
1856 |
+
-ms-transform: translateX(20px);
|
1857 |
+
-webkit-transform: translateX(20px);
|
1858 |
+
bottom: 50px;
|
1859 |
+
left: 30px;
|
1860 |
+
right: auto;
|
1861 |
+
top: auto;
|
1862 |
+
}
|
1863 |
+
div.fp-player.is-sticky-right-bottom {
|
1864 |
+
bottom: 50px;
|
1865 |
+
right: 30px;
|
1866 |
+
left: auto;
|
1867 |
+
top: auto;
|
1868 |
+
}
|
1869 |
+
}
|
1870 |
+
|
1871 |
+
/* Profile viedeo fix for EDD */
|
1872 |
+
.edd_form .fv-player-custom-video-list {
|
1873 |
+
clear: both;
|
1874 |
+
position: relative;
|
1875 |
+
top: -26px;
|
1876 |
+
}
|
1877 |
+
a.fv-player-custom-video-add, a.fv-player-custom-video-remove {
|
1878 |
+
margin: 0 6px 0 0;
|
1879 |
+
padding: 2px 8px;
|
1880 |
+
background: #999;
|
1881 |
+
color: #fff;
|
1882 |
+
text-transform: uppercase;
|
1883 |
+
font-size: 15px;
|
1884 |
+
font-size: 1.5rem;
|
1885 |
+
font-weight: 600;
|
1886 |
+
border-radius: 3px;
|
1887 |
+
}
|
1888 |
+
|
1889 |
+
/* hide tabs during loading */
|
1890 |
+
body.fv_flowplayer_tabs_hide .fv_flowplayer_tabs_content > div, body.fv_flowplayer_tabs_hide .fv_flowplayer_tabs_content > ul { display: none }
|
1891 |
+
body.fv_flowplayer_tabs_hide .fv_flowplayer_tabs_content > div.fv_flowplayer_tabs_first { display: block }
|
1892 |
+
|
1893 |
+
|
1894 |
+
|
1895 |
+
/*
|
1896 |
+
* Flowplayer 7 new stuff
|
1897 |
+
*/
|
1898 |
+
.fp-playlist { display: none }
|
1899 |
+
|
1900 |
+
.flowplayer .fv-fp-playlist-menu .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; }
|
1901 |
+
.flowplayer .fp-controls #no-picture-icon, .flowplayer .fp-controls .fvp-icon.fvp-playlist { vertical-align: top; }
|
1902 |
+
.flowplayer .fvp-icon { vertical-align: middle; }
|
1903 |
+
.flowplayer svg.fvp-icon, .flowplayer .fvp-icon .svg-color { fill: #ffffff; }
|
1904 |
+
.flowplayer .fp-menu.fv-fp-playlist-menu { width: 4em; }
|
1905 |
+
.flowplayer .fp-menu.fv-fp-playlist-menu .fp-selected::before { content: '' }
|
1906 |
+
|
1907 |
+
.flowplayer.is-ready.is-paused {
|
1908 |
+
background-image: none !important;
|
1909 |
+
}
|
1910 |
+
.flowplayer .fv-fp-track-repeat svg,
|
1911 |
+
.flowplayer .fv-fp-no-picture svg {
|
1912 |
+
margin: -3px 0 0;
|
1913 |
+
}
|
1914 |
+
.flowplayer.is-small .fv-fp-track-repeat svg,
|
1915 |
+
.flowplayer.is-small .fv-fp-no-picture svg {
|
1916 |
+
width: 16px;
|
1917 |
+
height: 16px;
|
1918 |
+
}
|
1919 |
+
#fvp-playlist-play {
|
1920 |
+
display: block;
|
1921 |
+
text-align: center;
|
1922 |
+
}
|
1923 |
+
.fv-fp-playlist .fvp-icon,
|
1924 |
+
.fv-fp-playlist #fvp-playlist-play {
|
1925 |
+
display: none;
|
1926 |
+
}
|
1927 |
+
.fv-fp-playlist.mode-repeat-playlist .fvp-icon.fvp-replay-list,
|
1928 |
+
.fv-fp-playlist.mode-shuffle-playlist .fvp-icon.fvp-shuffle,
|
1929 |
+
.fv-fp-playlist.mode-repeat-track .fvp-icon.fvp-replay-track,
|
1930 |
+
.fv-fp-playlist.mode-normal #fvp-playlist-play {
|
1931 |
+
display: block;
|
1932 |
+
}
|
1933 |
+
.fv-fp-playlist.mode-normal .fvp-icon.fvp-playlist-play {
|
1934 |
+
margin-top: 4px;
|
1935 |
+
}
|
1936 |
+
.flowplayer .fv-fp-no-picture.fp-color {
|
1937 |
+
background-color: transparent !important;
|
1938 |
+
}
|
css/flowplayer.css
CHANGED
@@ -82,7 +82,7 @@
|
|
82 |
.flowplayer.is-mouseover .fp-subtitle{bottom:34px;}
|
83 |
.flowplayer.is-mouseout .fp-subtitle{-webkit-transition:bottom 0.15s ease 0.3s;-moz-transition:bottom 0.15s ease 0.3s;transition:bottom 0.15s ease 0.3s}
|
84 |
.flowplayer .fp-subtitle .fp-subtitle-line{display:inline-block;background-color:#000;color:#eee;padding:0 .4em;font-size:16px;border-radius: 5px;}
|
85 |
-
.flowplayer.is-fullscreen .fp-subtitle .fp-subtitle-line{font-size:
|
86 |
.flowplayer .fp-subtitle.is-wide br{display:none}
|
87 |
.flowplayer .fp-subtitle .fp-subtitle-line:after{content:'';clear:both}
|
88 |
.flowplayer .fp-subtitle .fp-subtitle-line:first-of-type{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}
|
@@ -529,7 +529,7 @@
|
|
529 |
.fp-playlist-external a div:empty,.fp-playlist-horizontal a.fvp-video-thumb-no-splash h4 {background-color:#aaa}
|
530 |
.fp-playlist-external a div {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
531 |
.fp-playlist-external a.is-active div:after {opacity:0;position:absolute;content:"";top:0;bottom:0;left:0;right:0;opacity:0;border:0;transition: all ease-in-out 1s;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:98}
|
532 |
-
.fp-playlist-external a h4 {font-family:Helvetica Neue,Helvetica,Arial,sans-serif;letter-spacing:0;font-weight:400}
|
533 |
.fp-playlist-external a .now-playing {opacity:0;width:100%;height:100%;transition: all 1s ease-in-out 0s;position:absolute;top:0;bottom:0;left:0;right:0;box-shadow: inset 0 0 250px #000;color:#fff;font-size:16px;font-family:"myriad pro",Helvetica,Arial,sans-serif;font-weight:700;text-transform:uppercase;text-shadow:0 0 5px #333;z-index:99;-webkit-animation:blending 3s ease-in-out 1s alternate infinite;-moz-animation:blending 3s ease-in-out 1s alternate infinite;animation:blending 3s ease-in-out 1s alternate infinite}
|
534 |
.fp-playlist-external a .now-playing span {background-color:transparent;display:block;margin:0 auto;position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);transform:translateY(-50%)}
|
535 |
.fp-playlist-external.fv-playlist-design-2017 a.is-active h4,.fp-playlist-external a.is-active:hover .now-playing {display:none;}
|
@@ -560,7 +560,6 @@
|
|
560 |
.fp-playlist-vertical-wrapper {margin-bottom:24px;overflow:hidden;display:block}
|
561 |
.fp-playlist-vertical-wrapper:before,.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:before,.fp-playlist-text-wrapper:after {content:"";display:table}
|
562 |
.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:after {clear:both}
|
563 |
-
.fp-playlist-vertical.fp-playlist-only-captions a {padding:8px 4px}
|
564 |
.fp-playlist-vertical.fp-playlist-only-captions a h4 span {line-height:1}
|
565 |
.fp-playlist-vertical a div {display:block;position:relative;width:100%;height:auto;margin:0 0 1px;padding-top:55%;border:0;background-color:#fff;background-size:cover;background-position:center center;background-repeat:no-repeat}
|
566 |
.fp-playlist-vertical a h4 {margin:0;font-size:13px;color:#000}
|
@@ -571,8 +570,12 @@
|
|
571 |
.fp-playlist-external.fp-playlist-vertical a:hover .now-playing {opacity:0}
|
572 |
.fp-playlist-only-captions.fp-playlist-vertical a h4 {position:relative;top:auto;background-color:transparent;opacity:1;text-shadow:none}
|
573 |
.fp-playlist-only-captions.fp-playlist-vertical a,.fp-playlist-only-captions.fp-playlist-vertical a:hover h4 {color:#000}
|
|
|
|
|
|
|
|
|
574 |
|
575 |
-
.fv-playlist-slider-wrapper { overflow-x: scroll; margin-bottom: 24px}
|
576 |
.fv-playlist-slider-wrapper .fp-playlist-horizontal { margin-bottom: 8px; width: 2500px }
|
577 |
.fv-playlist-slider-wrapper .fp-playlist-horizontal a { width: 200px }
|
578 |
|
@@ -594,7 +597,7 @@
|
|
594 |
.fv-playlist-design-2014.fp-playlist-external a:hover h4,.fv-playlist-design-2014.fp-playlist-external a.fvp-video-thumb-no-splash h4,#dashboard-widgets .flowplayer-wrapper .fv-playlist-design-2014 a:hover h4 {color:inherit}
|
595 |
|
596 |
/* Playlist 2017 - text only */
|
597 |
-
.fp-playlist-text.fp-playlist-external a h4,.visible-captions.fp-playlist-external a h4 {background-color:transparent;opacity:1
|
598 |
.visible-captions.fp-playlist-external a h4 span {color: #fff;background-color:rgb(0, 0, 0);background-color:rgba(0, 0, 0, 0.5)}
|
599 |
.fp-playlist-text.fp-playlist-external a:hover div {background-color:#666}
|
600 |
.fp-playlist-text.fp-playlist-vertical a {margin-bottom:12px;}
|
@@ -603,6 +606,7 @@
|
|
603 |
.fp-playlist-text-wrapper .fp-playlist-vertical {width:35%}
|
604 |
.fp-playlist-text-wrapper .fp-playlist-only-captions a .now-playing {display:none}
|
605 |
.fp-playlist-only-captions.fp-playlist-vertical a {display:block;}
|
|
|
606 |
.fp-playlist-text-wrapper.is-fv-narrow .flowplayer,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-text,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions,.fp-playlist-vertical-wrapper.is-fv-narrow .flowplayer,.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical {width:100%;float:none;margin-bottom:0}
|
607 |
.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical a {width:49%;float:left;margin:0.75% 0.5%}
|
608 |
.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions a {width:100%;float:none;display:block}
|
@@ -661,8 +665,8 @@ a #add-format, a #add-rtmp {
|
|
661 |
|
662 |
.wpfp_custom_ad_content h1, .wpfp_custom_ad_content h2, .wpfp_custom_ad_content h3, .wpfp_custom_ad_content h4, .wpfp_custom_ad_content h5, .wpfp_custom_ad_content p { padding: 0 5px 2px 5px; margin: 0 5px 2px 5px; }
|
663 |
|
664 |
-
.flowplayer.alignleft { margin-
|
665 |
-
.flowplayer.alignright { margin-
|
666 |
|
667 |
.flowplayer.no-controlbar .fp-controls a,.flowplayer.no-controlbar .fp-controls .fp-volume,.flowplayer.no-controlbar .fp-time {display:none;}
|
668 |
.flowplayer.is-mouseover.no-controlbar .fp-controls, .flowplayer.fixed-controls.no-controlbar .fp-controls {height:auto;}
|
@@ -779,13 +783,6 @@ p.fp-caption { text-align: center; }
|
|
779 |
margin: 0;
|
780 |
}
|
781 |
|
782 |
-
/*
|
783 |
-
MediaElement.js
|
784 |
-
*/
|
785 |
-
.mejs-container{position:relative;background:#000;font-family:Helvetica,Arial;text-align:left;vertical-align:top;text-indent:0; margin: 0 auto 28px auto; }
|
786 |
-
.me-plugin{position:absolute;}.mejs-embed,.mejs-embed body{width:100%;height:100%;margin:0;padding:0;background:#000;overflow:hidden;}.mejs-container-fullscreen{position:fixed;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:1000;}.mejs-container-fullscreen .mejs-mediaelement,.mejs-container-fullscreen video{width:100%;height:100%;}.mejs-clear{clear:both;}.mejs-background{position:absolute;top:0;left:0;}.mejs-mediaelement{position:absolute;top:0;left:0;width:100%;height:100%;}.mejs-poster{position:absolute;top:0;left:0;background-size:contain;background-position:50% 50%;background-repeat:no-repeat;}:root .mejs-poster img{display:none;}.mejs-poster img{border:0;padding:0;border:0;}.mejs-overlay{position:absolute;top:0;left:0;}.mejs-overlay-play{cursor:pointer;}.mejs-overlay-button{position:absolute;top:50%;left:50%;width:100px;height:100px;margin:-50px 0 0 -50px;background:url(bigplay.svg) no-repeat;}.no-svg .mejs-overlay-button{background-image:url(bigplay.png);}.mejs-overlay:hover .mejs-overlay-button{background-position:0 -100px;}.mejs-overlay-loading{position:absolute;top:50%;left:50%;width:80px;height:80px;margin:-40px 0 0 -40px;background:#333;background:url(background.png);background:rgba(0,0,0,0.9);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.9)),to(rgba(0,0,0,0.9)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-moz-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-o-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:-ms-linear-gradient(top,rgba(50,50,50,0.9),rgba(0,0,0,0.9));background:linear-gradient(rgba(50,50,50,0.9),rgba(0,0,0,0.9));}.mejs-overlay-loading span{display:block;width:80px;height:80px;background:transparent url(loading.gif) 50% 50% no-repeat;}.mejs-container .mejs-controls{position:absolute;list-style-type:none;margin:0;padding:0;bottom:0;left:0;background:url(background.png);background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));height:30px;width:100%;}
|
787 |
-
.mejs-container .mejs-controls div{list-style-type:none;background-image:none;display:block;float:left;margin:0;padding:0;width:26px;height:26px;font-size:11px;line-height:11px;/*font-family:Helvetica,Arial*/;border:0;}
|
788 |
-
.mejs-controls .mejs-button button{cursor:pointer;display:block;font-size:0;line-height:0;text-decoration:none;margin:7px 5px;padding:0;position:absolute;height:16px;width:16px;border:0;background:transparent url(controls.svg) no-repeat;}.no-svg .mejs-controls .mejs-button button{background-image:url(controls.png);}.mejs-controls .mejs-button button:focus{outline:solid 1px yellow;}.mejs-container .mejs-controls .mejs-time{color:#fff;display:block;height:17px;width:auto;padding:8px 3px 0 3px;overflow:hidden;text-align:center;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}.mejs-container .mejs-controls .mejs-time span{color:#fff;font-size:11px;line-height:12px;display:block;float:left;margin:1px 2px 0 0;width:auto;}.mejs-controls .mejs-play button{background-position:0 0;}.mejs-controls .mejs-pause button{background-position:0 -16px;}.mejs-controls .mejs-stop button{background-position:-112px 0;}.mejs-controls div.mejs-time-rail{width:200px;padding-top:5px;}.mejs-controls .mejs-time-rail span{display:block;position:absolute;width:180px;height:10px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;cursor:pointer;}.mejs-controls .mejs-time-rail .mejs-time-total{margin:5px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-time-rail .mejs-time-buffering{width:100%;background-image:-o-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,0.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,0.15)),color-stop(0.75,rgba(255,255,255,0.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:-ms-linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);-webkit-background-size:15px 15px;-moz-background-size:15px 15px;-o-background-size:15px 15px;background-size:15px 15px;-webkit-animation:buffering-stripes 2s linear infinite;-moz-animation:buffering-stripes 2s linear infinite;-ms-animation:buffering-stripes 2s linear infinite;-o-animation:buffering-stripes 2s linear infinite;animation:buffering-stripes 2s linear infinite;}@-webkit-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-moz-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-ms-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@-o-keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}@keyframes buffering-stripes{from{background-position:0 0;}to{background-position:30px 0;}}.mejs-controls .mejs-time-rail .mejs-time-loaded{background:#3caac8;background:rgba(60,170,200,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(44,124,145,0.8)),to(rgba(78,183,212,0.8)));background:-webkit-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-moz-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-o-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:-ms-linear-gradient(top,rgba(44,124,145,0.8),rgba(78,183,212,0.8));background:linear-gradient(rgba(44,124,145,0.8),rgba(78,183,212,0.8));width:0;}.mejs-controls .mejs-time-rail .mejs-time-current{background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8));width:0;}.mejs-controls .mejs-time-rail .mejs-time-handle{display:none;position:absolute;margin:0;width:10px;background:#fff;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;cursor:pointer;border:solid 2px #333;top:-2px;text-align:center;}.mejs-controls .mejs-time-rail .mejs-time-float{position:absolute;display:none;background:#eee;width:36px;height:17px;border:solid 1px #333;top:-26px;margin-left:-18px;text-align:center;color:#111;}.mejs-controls .mejs-time-rail .mejs-time-float-current{margin:2px;width:30px;display:block;text-align:center;left:0;}.mejs-controls .mejs-time-rail .mejs-time-float-corner{position:absolute;display:block;width:0;height:0;line-height:0;border:solid 5px #eee;border-color:#eee transparent transparent transparent;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:15px;left:13px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float{width:48px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-current{width:44px;}.mejs-long-video .mejs-controls .mejs-time-rail .mejs-time-float-corner{left:18px;}.mejs-controls .mejs-fullscreen-button button{background-position:-32px 0;}.mejs-controls .mejs-unfullscreen button{background-position:-32px -16px;}.mejs-controls .mejs-mute button{background-position:-16px -16px;}.mejs-controls .mejs-unmute button{background-position:-16px 0;}.mejs-controls .mejs-volume-button{position:relative;}.mejs-controls .mejs-volume-button .mejs-volume-slider{display:none;height:115px;width:25px;background:url(background.png);background:rgba(50,50,50,0.7);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;top:-115px;left:0;z-index:1;position:absolute;margin:0;}.mejs-controls .mejs-volume-button:hover{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-total{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.5);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-current{position:absolute;left:11px;top:8px;width:2px;height:100px;background:#ddd;background:rgba(255,255,255,0.9);margin:0;}.mejs-controls .mejs-volume-button .mejs-volume-slider .mejs-volume-handle{position:absolute;left:4px;top:-3px;width:16px;height:6px;background:#ddd;background:rgba(255,255,255,0.9);cursor:N-resize;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;margin:0;}.mejs-controls div.mejs-horizontal-volume-slider{height:26px;width:60px;position:relative;}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#333;background:rgba(50,50,50,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(30,30,30,0.8)),to(rgba(60,60,60,0.8)));background:-webkit-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-moz-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-o-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:-ms-linear-gradient(top,rgba(30,30,30,0.8),rgba(60,60,60,0.8));background:linear-gradient(rgba(30,30,30,0.8),rgba(60,60,60,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current{position:absolute;left:0;top:11px;width:50px;height:8px;margin:0;padding:0;font-size:1px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background:#fff;background:rgba(255,255,255,0.8);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(255,255,255,0.9)),to(rgba(200,200,200,0.8)));background:-webkit-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-moz-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-o-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:-ms-linear-gradient(top,rgba(255,255,255,0.9),rgba(200,200,200,0.8));background:linear-gradient(rgba(255,255,255,0.9),rgba(200,200,200,0.8));}.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-handle{display:none;}.mejs-controls .mejs-captions-button{position:relative;}.mejs-controls .mejs-captions-button button{background-position:-48px 0;}.mejs-controls .mejs-captions-button .mejs-captions-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs-controls .mejs-captions-button .mejs-captions-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-controls .mejs-captions-button .mejs-captions-translations{font-size:10px;margin:0 0 5px 0;}.mejs-chapters{position:absolute;top:0;left:0;-xborder-right:solid 1px #fff;width:10000px;z-index:1;}.mejs-chapters .mejs-chapter{position:absolute;float:left;background:#222;background:rgba(0,0,0,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(50,50,50,0.7)),to(rgba(0,0,0,0.7)));background:-webkit-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-moz-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-o-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:-ms-linear-gradient(top,rgba(50,50,50,0.7),rgba(0,0,0,0.7));background:linear-gradient(rgba(50,50,50,0.7),rgba(0,0,0,0.7));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#323232,endColorstr=#000000);overflow:hidden;border:0;}.mejs-chapters .mejs-chapter .mejs-chapter-block{font-size:11px;color:#fff;padding:5px;display:block;border-right:solid 1px #333;border-bottom:solid 1px #333;cursor:pointer;}.mejs-chapters .mejs-chapter .mejs-chapter-block-last{border-right:none;}.mejs-chapters .mejs-chapter .mejs-chapter-block:hover{background:#666;background:rgba(102,102,102,0.7);background:-webkit-gradient(linear,0% 0,0% 100%,from(rgba(102,102,102,0.7)),to(rgba(50,50,50,0.6)));background:-webkit-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-moz-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-o-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:-ms-linear-gradient(top,rgba(102,102,102,0.7),rgba(50,50,50,0.6));background:linear-gradient(rgba(102,102,102,0.7),rgba(50,50,50,0.6));filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,startColorstr=#666666,endColorstr=#323232);}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-title{font-size:12px;font-weight:bold;display:block;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px 0;line-height:12px;}.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-timespan{font-size:12px;line-height:12px;margin:3px 0 4px 0;display:block;white-space:nowrap;text-overflow:ellipsis;}.mejs-captions-layer{position:absolute;bottom:0;left:0;text-align:center;line-height:22px;font-size:12px;color:#fff;}.mejs-captions-layer a{color:#fff;text-decoration:underline;}.mejs-captions-layer[lang=ar]{font-size:20px;font-weight:normal;}.mejs-captions-position{position:absolute;width:100%;bottom:15px;left:0;}.mejs-captions-position-hover{bottom:45px;}.mejs-captions-text{padding:3px 5px;background:url(background.png);background:rgba(20,20,20,0.8);}.me-cannotplay a{color:#fff;font-weight:bold;}.me-cannotplay span{padding:15px;display:block;}.mejs-controls .mejs-loop-off button{background-position:-64px -16px;}.mejs-controls .mejs-loop-on button{background-position:-64px 0;}.mejs-controls .mejs-backlight-off button{background-position:-80px -16px;}.mejs-controls .mejs-backlight-on button{background-position:-80px 0;}.mejs-controls .mejs-picturecontrols-button{background-position:-96px 0;}.mejs-contextmenu{position:absolute;width:150px;padding:10px;border-radius:4px;top:0;left:0;background:#fff;border:solid 1px #999;z-index:1001;}.mejs-contextmenu .mejs-contextmenu-separator{height:1px;font-size:0;margin:5px 6px;background:#333;}.mejs-contextmenu .mejs-contextmenu-item{font-family:Helvetica,Arial;font-size:12px;padding:4px 6px;cursor:pointer;color:#333;}.mejs-contextmenu .mejs-contextmenu-item:hover{background:#2C7C91;color:#fff;}.mejs-controls .mejs-sourcechooser-button{position:relative;}.mejs-controls .mejs-sourcechooser-button button{background-position:-128px 0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector{visibility:hidden;position:absolute;bottom:26px;right:-10px;width:130px;height:100px;background:url(background.png);background:rgba(50,50,50,0.7);border:solid 1px transparent;padding:10px;overflow:hidden;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul{margin:0;padding:0;display:block;list-style-type:none!important;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li{margin:0 0 6px 0;padding:0;list-style-type:none!important;display:block;color:#fff;overflow:hidden;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li input{clear:both;float:left;margin:3px 3px 0 5px;}.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector ul li label{width:100px;float:left;padding:4px 0 0 0;line-height:15px;font-family:helvetica,arial;font-size:10px;}.mejs-postroll-layer{position:absolute;bottom:0;left:0;width:100%;height:100%;background:url(background.png);background:rgba(50,50,50,0.7);z-index:1000;overflow:hidden;}.mejs-postroll-layer-content{width:100%;height:100%;}.mejs-postroll-close{position:absolute;right:0;top:0;background:url(background.png);background:rgba(50,50,50,0.7);color:#fff;padding:4px;z-index:100;cursor:pointer;}
|
789 |
|
790 |
.fvfp_admin_error { position: absolute; top: 10%; z-index: 2; text-align: center; width: 100%; /*color: #fff;*/ }
|
791 |
|
@@ -818,6 +815,7 @@ article .entry-content .fvfp_admin_error p { line-height: 18px }
|
|
818 |
/*
|
819 |
* FV Flowplayer Tabs
|
820 |
*/
|
|
|
821 |
.fv_flowplayer_tabs ul.ui-tabs,.fv_flowplayer_tabs ul.ui-tabs-nav{margin:0 !important;font-size:13px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;line-height:24px !important}
|
822 |
.fv_flowplayer_tabs .ui-tabs { padding: 0; zoom: 1; }
|
823 |
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: 1px 0; }
|
82 |
.flowplayer.is-mouseover .fp-subtitle{bottom:34px;}
|
83 |
.flowplayer.is-mouseout .fp-subtitle{-webkit-transition:bottom 0.15s ease 0.3s;-moz-transition:bottom 0.15s ease 0.3s;transition:bottom 0.15s ease 0.3s}
|
84 |
.flowplayer .fp-subtitle .fp-subtitle-line{display:inline-block;background-color:#000;color:#eee;padding:0 .4em;font-size:16px;border-radius: 5px;}
|
85 |
+
.flowplayer.is-fullscreen .fp-subtitle .fp-subtitle-line{font-size:175%;line-height:1.2}
|
86 |
.flowplayer .fp-subtitle.is-wide br{display:none}
|
87 |
.flowplayer .fp-subtitle .fp-subtitle-line:after{content:'';clear:both}
|
88 |
.flowplayer .fp-subtitle .fp-subtitle-line:first-of-type{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}
|
529 |
.fp-playlist-external a div:empty,.fp-playlist-horizontal a.fvp-video-thumb-no-splash h4 {background-color:#aaa}
|
530 |
.fp-playlist-external a div {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
531 |
.fp-playlist-external a.is-active div:after {opacity:0;position:absolute;content:"";top:0;bottom:0;left:0;right:0;opacity:0;border:0;transition: all ease-in-out 1s;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;z-index:98}
|
532 |
+
.fp-playlist-external a h4 {font-family:Helvetica Neue,Helvetica,Arial,sans-serif;letter-spacing:0;font-weight:400;line-height:1.25}
|
533 |
.fp-playlist-external a .now-playing {opacity:0;width:100%;height:100%;transition: all 1s ease-in-out 0s;position:absolute;top:0;bottom:0;left:0;right:0;box-shadow: inset 0 0 250px #000;color:#fff;font-size:16px;font-family:"myriad pro",Helvetica,Arial,sans-serif;font-weight:700;text-transform:uppercase;text-shadow:0 0 5px #333;z-index:99;-webkit-animation:blending 3s ease-in-out 1s alternate infinite;-moz-animation:blending 3s ease-in-out 1s alternate infinite;animation:blending 3s ease-in-out 1s alternate infinite}
|
534 |
.fp-playlist-external a .now-playing span {background-color:transparent;display:block;margin:0 auto;position:relative;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);transform:translateY(-50%)}
|
535 |
.fp-playlist-external.fv-playlist-design-2017 a.is-active h4,.fp-playlist-external a.is-active:hover .now-playing {display:none;}
|
560 |
.fp-playlist-vertical-wrapper {margin-bottom:24px;overflow:hidden;display:block}
|
561 |
.fp-playlist-vertical-wrapper:before,.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:before,.fp-playlist-text-wrapper:after {content:"";display:table}
|
562 |
.fp-playlist-vertical-wrapper:after,.fp-playlist-text-wrapper:after {clear:both}
|
|
|
563 |
.fp-playlist-vertical.fp-playlist-only-captions a h4 span {line-height:1}
|
564 |
.fp-playlist-vertical a div {display:block;position:relative;width:100%;height:auto;margin:0 0 1px;padding-top:55%;border:0;background-color:#fff;background-size:cover;background-position:center center;background-repeat:no-repeat}
|
565 |
.fp-playlist-vertical a h4 {margin:0;font-size:13px;color:#000}
|
570 |
.fp-playlist-external.fp-playlist-vertical a:hover .now-playing {opacity:0}
|
571 |
.fp-playlist-only-captions.fp-playlist-vertical a h4 {position:relative;top:auto;background-color:transparent;opacity:1;text-shadow:none}
|
572 |
.fp-playlist-only-captions.fp-playlist-vertical a,.fp-playlist-only-captions.fp-playlist-vertical a:hover h4 {color:#000}
|
573 |
+
.fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4, .entry-content .fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4 { text-align:left;padding:2px 8px }
|
574 |
+
.fp-playlist-external.fp-playlist-vertical.fp-playlist-only-captions a h4 span { position:relative;top:auto;left:auto;right:auto;-webkit-transform:none;transform:none;padding:0 }
|
575 |
+
.fp-playlist-only-captions.fp-playlist-external .dur { opacity:1;color:#999;position:relative;right:auto;top:auto;text-shadow:none;margin-left:6px; }
|
576 |
+
.fp-playlist-only-captions.fp-playlist-external a:hover .dur { color:#999; }
|
577 |
|
578 |
+
.fv-playlist-slider-wrapper { overflow-x: scroll; margin-bottom: 24px;-webkit-overflow-scrolling:touch;display:block}
|
579 |
.fv-playlist-slider-wrapper .fp-playlist-horizontal { margin-bottom: 8px; width: 2500px }
|
580 |
.fv-playlist-slider-wrapper .fp-playlist-horizontal a { width: 200px }
|
581 |
|
597 |
.fv-playlist-design-2014.fp-playlist-external a:hover h4,.fv-playlist-design-2014.fp-playlist-external a.fvp-video-thumb-no-splash h4,#dashboard-widgets .flowplayer-wrapper .fv-playlist-design-2014 a:hover h4 {color:inherit}
|
598 |
|
599 |
/* Playlist 2017 - text only */
|
600 |
+
.fp-playlist-text.fp-playlist-external a h4,.visible-captions.fp-playlist-external a h4 {background-color:transparent;opacity:1}
|
601 |
.visible-captions.fp-playlist-external a h4 span {color: #fff;background-color:rgb(0, 0, 0);background-color:rgba(0, 0, 0, 0.5)}
|
602 |
.fp-playlist-text.fp-playlist-external a:hover div {background-color:#666}
|
603 |
.fp-playlist-text.fp-playlist-vertical a {margin-bottom:12px;}
|
606 |
.fp-playlist-text-wrapper .fp-playlist-vertical {width:35%}
|
607 |
.fp-playlist-text-wrapper .fp-playlist-only-captions a .now-playing {display:none}
|
608 |
.fp-playlist-only-captions.fp-playlist-vertical a {display:block;}
|
609 |
+
.fp-playlist-text.fp-playlist-vertical a h4 {text-align:left}
|
610 |
.fp-playlist-text-wrapper.is-fv-narrow .flowplayer,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-text,.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions,.fp-playlist-vertical-wrapper.is-fv-narrow .flowplayer,.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical {width:100%;float:none;margin-bottom:0}
|
611 |
.fp-playlist-vertical-wrapper.is-fv-narrow .fp-playlist-vertical a {width:49%;float:left;margin:0.75% 0.5%}
|
612 |
.fp-playlist-text-wrapper.is-fv-narrow .fp-playlist-only-captions a {width:100%;float:none;display:block}
|
665 |
|
666 |
.wpfp_custom_ad_content h1, .wpfp_custom_ad_content h2, .wpfp_custom_ad_content h3, .wpfp_custom_ad_content h4, .wpfp_custom_ad_content h5, .wpfp_custom_ad_content p { padding: 0 5px 2px 5px; margin: 0 5px 2px 5px; }
|
667 |
|
668 |
+
.flowplayer.alignleft { margin-right: 10px; margin-bottom: 10px; }
|
669 |
+
.flowplayer.alignright { margin-left: 10px; margin-bottom: 10px; }
|
670 |
|
671 |
.flowplayer.no-controlbar .fp-controls a,.flowplayer.no-controlbar .fp-controls .fp-volume,.flowplayer.no-controlbar .fp-time {display:none;}
|
672 |
.flowplayer.is-mouseover.no-controlbar .fp-controls, .flowplayer.fixed-controls.no-controlbar .fp-controls {height:auto;}
|
783 |
margin: 0;
|
784 |
}
|
785 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
|
787 |
.fvfp_admin_error { position: absolute; top: 10%; z-index: 2; text-align: center; width: 100%; /*color: #fff;*/ }
|
788 |
|
815 |
/*
|
816 |
* FV Flowplayer Tabs
|
817 |
*/
|
818 |
+
.fv_flowplayer_tabs { margin: 0 auto; }
|
819 |
.fv_flowplayer_tabs ul.ui-tabs,.fv_flowplayer_tabs ul.ui-tabs-nav{margin:0 !important;font-size:13px;font-family:Arial, Helvetica, sans-serif;font-weight:bold;line-height:24px !important}
|
820 |
.fv_flowplayer_tabs .ui-tabs { padding: 0; zoom: 1; }
|
821 |
.fv_flowplayer_tabs .ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: 1px 0; }
|
css/fvp-icon-sprite.svg
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" class="fvp-icon" xmlns="http://www.w3.org/2000/svg">
|
2 |
+
<defs>
|
3 |
+
<g id="fvp-playlist">
|
4 |
+
<path class="svg-color" d="M4.972,44.723C2.984,42.668,2,40.282,2,37.543v-35.9h14.36v31.792h37.345V18.057l24.629,22.574
|
5 |
+
L53.704,63.19V47.813H12.26C9.388,47.813,6.95,46.778,4.972,44.723z"/>
|
6 |
+
</g>
|
7 |
+
<g id="fvp-playlist-play"><title id=“fvp-all“>Play All</title>
|
8 |
+
<rect class="svg-color" x="23.586" y="3.15" width="61.164" height="10.187"/>
|
9 |
+
<rect class="svg-color" x="23.586" y="43.934" width="61.164" height="10.186"/>
|
10 |
+
<rect class="svg-color" x="43.158" y="23.544" width="41.592" height="10.184"/>
|
11 |
+
<polygon class="svg-color" points="2.5,9.351 2.5,47.919 33.858,28.698 "/>
|
12 |
+
</g>
|
13 |
+
<g id="fvp-replay-list"><title id=“fvp-rp“>Replay Playlist</title>
|
14 |
+
<path class="svg-color" d="M48.928,50.465h27.599l-1.523,26.074l-8.122-8.305c-3.784,3.645-8.062,6.352-12.861,8.121
|
15 |
+
c-4.784,1.769-9.63,2.646-14.553,2.646c-4.907,0-9.737-0.938-14.46-2.83c-4.722-1.893-8.984-4.724-12.752-8.506
|
16 |
+
c-3.277-3.278-5.8-6.847-7.569-10.677c-1.753-3.847-2.892-7.846-3.4-12.015l9.646-0.369c1,6.291,3.768,11.722,8.307,16.245
|
17 |
+
c2.784,2.783,5.922,4.891,9.46,6.338c3.523,1.446,7.123,2.169,10.769,2.169c3.661,0,7.245-0.662,10.783-1.985
|
18 |
+
c3.523-1.322,6.739-3.308,9.63-5.952L48.928,50.465z M4.87,3.961l8.137,8.307c3.907-3.646,8.215-6.353,12.953-8.122
|
19 |
+
C30.683,2.377,35.498,1.5,40.421,1.5c4.906,0,9.723,0.938,14.459,2.831c4.725,1.893,8.97,4.738,12.754,8.507
|
20 |
+
c3.277,3.154,5.8,6.692,7.568,10.583c1.755,3.908,2.954,7.938,3.586,12.107l-9.831,0.184c-1-6.168-3.785-11.522-8.323-16.06
|
21 |
+
c-2.769-2.77-5.921-4.893-9.444-6.338s-7.124-2.169-10.769-2.169c-3.661,0-7.245,0.662-10.784,1.985
|
22 |
+
c-3.522,1.322-6.738,3.307-9.645,5.953L30.96,29.851L3.362,30.036L4.87,3.961z"/>
|
23 |
+
</g>
|
24 |
+
<g id="fvp-replay-track"><title id=“fvp-rt“>Replay Track</title>
|
25 |
+
<path class="svg-color"d="M35.069,1.699c4.643,0,9.001,0.852,13.09,2.568c4.082,1.703,7.651,4.042,10.686,7.015
|
26 |
+
c3.034,2.987,5.468,6.475,7.285,10.502c1.825,4.015,2.791,8.286,2.906,12.8h10.131l-15.18,17.113L48.774,34.585H60.73
|
27 |
+
c-0.115-3.433-0.858-6.637-2.251-9.624c-1.386-3.001-3.251-5.596-5.582-7.813c-2.332-2.217-5.028-3.96-8.083-5.231
|
28 |
+
s-6.306-1.906-9.746-1.906c-3.555,0-6.86,0.662-9.915,1.987c-3.055,1.325-5.751,3.163-8.083,5.488
|
29 |
+
c-2.332,2.325-4.164,5.028-5.501,8.137c-1.332,3.095-1.994,6.42-1.994,9.962c0,3.541,0.662,6.84,1.994,9.881
|
30 |
+
c1.325,3.055,3.149,5.73,5.481,8.056c2.325,2.325,5.008,4.149,8.049,5.488c3.048,1.324,6.339,1.986,9.887,1.986
|
31 |
+
c5.751,0,10.793-1.662,15.112-4.987l5.812,6.312c-2.879,2.217-6.089,3.987-9.631,5.325c-3.548,1.325-7.305,1.987-11.293,1.987
|
32 |
+
c-4.649,0-9.029-0.879-13.125-2.649s-7.684-4.19-10.766-7.285c-3.075-3.096-5.488-6.719-7.225-10.854
|
33 |
+
C2.135,44.696,1.27,40.303,1.27,35.667c0-4.744,0.878-9.165,2.649-13.247c1.764-4.095,4.197-7.677,7.292-10.773
|
34 |
+
c3.089-3.095,6.677-5.528,10.766-7.299C26.066,2.591,30.426,1.699,35.069,1.699z"/>
|
35 |
+
</g>
|
36 |
+
<g id="fvp-shuffle"><title id=“fvp-sp“>Shuffle Playlist</title>
|
37 |
+
<path class="svg-color" d="M60.216,22.676c-2.176,0-4.198,0.417-6.064,1.24c-1.858,0.835-3.624,1.973-5.28,3.427
|
38 |
+
c-1.656,1.455-3.263,3.137-4.818,5.046c-1.557,1.923-3.105,3.908-4.661,5.982c-1.764,2.39-3.629,4.742-5.596,7.07
|
39 |
+
c-1.967,2.34-4.142,4.489-6.526,6.45c-2.384,1.973-5.002,3.554-7.848,4.743c-2.852,1.188-6.09,1.782-9.713,1.782H1.626V47.542
|
40 |
+
h8.082c2.277,0,4.351-0.405,6.216-1.24c1.866-0.835,3.624-1.974,5.28-3.415c1.657-1.454,3.263-3.136,4.819-5.059
|
41 |
+
c1.556-1.91,3.111-3.908,4.667-5.982c1.758-2.378,3.624-4.769,5.59-7.146c1.967-2.39,4.123-4.527,6.45-6.45
|
42 |
+
c2.333-1.922,4.921-3.465,7.772-4.667c2.846-1.188,6.083-1.783,9.713-1.783h2.795V2.478l16.322,13.988L63.011,30.442v-7.766H60.216
|
43 |
+
z M22.608,29.518c-1.765-1.872-3.68-3.339-5.754-4.426c-2.074-1.088-4.452-1.631-7.146-1.631H1.626v-10.89h8.082
|
44 |
+
c4.244,0,7.949,0.809,11.111,2.415c3.162,1.607,6.033,3.605,8.625,5.982c-0.936,1.037-1.79,2.075-2.567,3.111
|
45 |
+
c-0.772,1.037-1.581,2.011-2.41,2.947c-0.31,0.518-0.62,0.961-0.929,1.328C23.228,28.709,22.918,29.101,22.608,29.518z
|
46 |
+
M63.011,40.547l16.322,13.987L63.011,68.523v-9.321h-2.795c-4.351,0-8.132-0.859-11.345-2.566
|
47 |
+
c-3.213-1.708-6.166-3.858-8.859-6.451c1.037-1.239,2.023-2.454,2.953-3.655c0.93-1.188,1.809-2.353,2.644-3.491
|
48 |
+
c0.202-0.201,0.386-0.442,0.544-0.695c0.151-0.265,0.335-0.543,0.544-0.859c1.967,2.074,4.04,3.73,6.216,4.97
|
49 |
+
c2.176,1.24,4.61,1.872,7.304,1.872h2.795V40.547z"/>
|
50 |
+
</g>
|
51 |
+
<g id="fvp-nopicture"><title id=“fvp-hidepic”>Hide picture</title>
|
52 |
+
<path class="svg-color" fill-rule="evenodd" clip-rule="evenodd" d="M84.069,8.698c-1.358-1.945-19.374-7.091-39.067-7.091
|
53 |
+
c-19.51,0-36.575,5.161-38.318,7.091S1.671,22.833,1.671,39.893c0,17.241,2.881,29.125,5.013,31.285s18.989,7.215,38.59,7.215
|
54 |
+
c19.602,0,36.903-5.125,38.794-7.215s4.696-14.089,4.696-31.238C88.766,22.786,85.428,10.644,84.069,8.698z M67.653,58.217
|
55 |
+
l-4.216,4.22l-18.219-18.22L27.001,62.436l-4.217-4.219L41.003,40L22.784,21.781l4.217-4.217l18.218,18.218l18.219-18.218
|
56 |
+
l4.216,4.217L49.437,40L67.653,58.217z"/>
|
57 |
+
</g>
|
58 |
+
</defs>
|
59 |
+
</svg>
|
css/fvp-icon.svg
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg class="fvp-icon">
|
2 |
+
<g id="fvp-playlist">
|
3 |
+
<path fill="#FFFFFF" d="M4.972,44.723C2.984,42.668,2,40.282,2,37.543v-35.9h14.36v31.792h37.345V18.057l24.629,22.574
|
4 |
+
L53.704,63.19V47.813H12.26C9.388,47.813,6.95,46.778,4.972,44.723z"/>
|
5 |
+
</g>
|
6 |
+
<g id="fvp-playlist-play">
|
7 |
+
<rect x="23.586" y="3.15" fill="#FFFFFF" width="61.164" height="10.187"/>
|
8 |
+
<rect x="23.586" y="43.934" fill="#FFFFFF" width="61.164" height="10.186"/>
|
9 |
+
<rect x="43.158" y="23.544" fill="#FFFFFF" width="41.592" height="10.184"/>
|
10 |
+
<polygon fill="#FFFFFF" points="2.5,9.351 2.5,47.919 33.858,28.698 "/>
|
11 |
+
</g>
|
12 |
+
<g id="fvp-replay-list">
|
13 |
+
<path fill="#FFFFFF" d="M48.928,50.465h27.599l-1.523,26.074l-8.122-8.305c-3.784,3.645-8.062,6.352-12.861,8.121
|
14 |
+
c-4.784,1.769-9.63,2.646-14.553,2.646c-4.907,0-9.737-0.938-14.46-2.83c-4.722-1.893-8.984-4.724-12.752-8.506
|
15 |
+
c-3.277-3.278-5.8-6.847-7.569-10.677c-1.753-3.847-2.892-7.846-3.4-12.015l9.646-0.369c1,6.291,3.768,11.722,8.307,16.245
|
16 |
+
c2.784,2.783,5.922,4.891,9.46,6.338c3.523,1.446,7.123,2.169,10.769,2.169c3.661,0,7.245-0.662,10.783-1.985
|
17 |
+
c3.523-1.322,6.739-3.308,9.63-5.952L48.928,50.465z M4.87,3.961l8.137,8.307c3.907-3.646,8.215-6.353,12.953-8.122
|
18 |
+
C30.683,2.377,35.498,1.5,40.421,1.5c4.906,0,9.723,0.938,14.459,2.831c4.725,1.893,8.97,4.738,12.754,8.507
|
19 |
+
c3.277,3.154,5.8,6.692,7.568,10.583c1.755,3.908,2.954,7.938,3.586,12.107l-9.831,0.184c-1-6.168-3.785-11.522-8.323-16.06
|
20 |
+
c-2.769-2.77-5.921-4.893-9.444-6.338s-7.124-2.169-10.769-2.169c-3.661,0-7.245,0.662-10.784,1.985
|
21 |
+
c-3.522,1.322-6.738,3.307-9.645,5.953L30.96,29.851L3.362,30.036L4.87,3.961z"/>
|
22 |
+
</g>
|
23 |
+
<g id="fvp-replay-track">
|
24 |
+
<path fill="#FFFFFF" d="M35.069,1.699c4.643,0,9.001,0.852,13.09,2.568c4.082,1.703,7.651,4.042,10.686,7.015
|
25 |
+
c3.034,2.987,5.468,6.475,7.285,10.502c1.825,4.015,2.791,8.286,2.906,12.8h10.131l-15.18,17.113L48.774,34.585H60.73
|
26 |
+
c-0.115-3.433-0.858-6.637-2.251-9.624c-1.386-3.001-3.251-5.596-5.582-7.813c-2.332-2.217-5.028-3.96-8.083-5.231
|
27 |
+
s-6.306-1.906-9.746-1.906c-3.555,0-6.86,0.662-9.915,1.987c-3.055,1.325-5.751,3.163-8.083,5.488
|
28 |
+
c-2.332,2.325-4.164,5.028-5.501,8.137c-1.332,3.095-1.994,6.42-1.994,9.962c0,3.541,0.662,6.84,1.994,9.881
|
29 |
+
c1.325,3.055,3.149,5.73,5.481,8.056c2.325,2.325,5.008,4.149,8.049,5.488c3.048,1.324,6.339,1.986,9.887,1.986
|
30 |
+
c5.751,0,10.793-1.662,15.112-4.987l5.812,6.312c-2.879,2.217-6.089,3.987-9.631,5.325c-3.548,1.325-7.305,1.987-11.293,1.987
|
31 |
+
c-4.649,0-9.029-0.879-13.125-2.649s-7.684-4.19-10.766-7.285c-3.075-3.096-5.488-6.719-7.225-10.854
|
32 |
+
C2.135,44.696,1.27,40.303,1.27,35.667c0-4.744,0.878-9.165,2.649-13.247c1.764-4.095,4.197-7.677,7.292-10.773
|
33 |
+
c3.089-3.095,6.677-5.528,10.766-7.299C26.066,2.591,30.426,1.699,35.069,1.699z"/>
|
34 |
+
</g>
|
35 |
+
<g id="fvp-shuffle">
|
36 |
+
<path fill="#FFFFFF" d="M60.216,22.676c-2.176,0-4.198,0.417-6.064,1.24c-1.858,0.835-3.624,1.973-5.28,3.427
|
37 |
+
c-1.656,1.455-3.263,3.137-4.818,5.046c-1.557,1.923-3.105,3.908-4.661,5.982c-1.764,2.39-3.629,4.742-5.596,7.07
|
38 |
+
c-1.967,2.34-4.142,4.489-6.526,6.45c-2.384,1.973-5.002,3.554-7.848,4.743c-2.852,1.188-6.09,1.782-9.713,1.782H1.626V47.542
|
39 |
+
h8.082c2.277,0,4.351-0.405,6.216-1.24c1.866-0.835,3.624-1.974,5.28-3.415c1.657-1.454,3.263-3.136,4.819-5.059
|
40 |
+
c1.556-1.91,3.111-3.908,4.667-5.982c1.758-2.378,3.624-4.769,5.59-7.146c1.967-2.39,4.123-4.527,6.45-6.45
|
41 |
+
c2.333-1.922,4.921-3.465,7.772-4.667c2.846-1.188,6.083-1.783,9.713-1.783h2.795V2.478l16.322,13.988L63.011,30.442v-7.766H60.216
|
42 |
+
z M22.608,29.518c-1.765-1.872-3.68-3.339-5.754-4.426c-2.074-1.088-4.452-1.631-7.146-1.631H1.626v-10.89h8.082
|
43 |
+
c4.244,0,7.949,0.809,11.111,2.415c3.162,1.607,6.033,3.605,8.625,5.982c-0.936,1.037-1.79,2.075-2.567,3.111
|
44 |
+
c-0.772,1.037-1.581,2.011-2.41,2.947c-0.31,0.518-0.62,0.961-0.929,1.328C23.228,28.709,22.918,29.101,22.608,29.518z
|
45 |
+
M63.011,40.547l16.322,13.987L63.011,68.523v-9.321h-2.795c-4.351,0-8.132-0.859-11.345-2.566
|
46 |
+
c-3.213-1.708-6.166-3.858-8.859-6.451c1.037-1.239,2.023-2.454,2.953-3.655c0.93-1.188,1.809-2.353,2.644-3.491
|
47 |
+
c0.202-0.201,0.386-0.442,0.544-0.695c0.151-0.265,0.335-0.543,0.544-0.859c1.967,2.074,4.04,3.73,6.216,4.97
|
48 |
+
c2.176,1.24,4.61,1.872,7.304,1.872h2.795V40.547z"/>
|
49 |
+
</g>
|
50 |
+
</svg>
|
css/icons/flowplayer.eot
ADDED
Binary file
|
css/icons/flowplayer.svg
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by IcoMoon</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="icomoon" horiz-adv-x="1024">
|
7 |
+
<font-face units-per-em="1024" ascent="819.2" descent="-204.8" />
|
8 |
+
<missing-glyph horiz-adv-x="1024" />
|
9 |
+
<glyph unicode=" " horiz-adv-x="256" d="" />
|
10 |
+
<glyph unicode="" glyph-name="uniE001" d="M701.44 75.264q11.264-20.48 10.24-34.816 0-4.096-1.024-6.144 0-5.12-4.096-11.264-4.096-7.168-12.288-13.312-13.312-8.192-35.84-8.192h-292.864q-17.408 0-30.72 5.12-14.336 8.192-20.48 21.504-2.048 8.192-2.048 12.288-1.024 14.336 10.24 34.816l146.432 253.952q2.048 4.096 4.608 7.68t4.608 6.656q18.432 19.456 38.912 16.384h2.048q2.048-1.024 4.096-1.536t4.096-1.536 3.584-1.536 3.584-2.56q11.264-8.192 20.48-23.552zM809.984 597.504q24.576 0 42.496-17.408t17.92-43.008v-370.688q0-25.6-17.92-43.008t-42.496-17.408h-63.488q-2.048 4.096-3.072 5.12l-146.432 254.976q-31.744 54.272-84.992 54.272t-84.992-54.272l-146.432-254.976q-1.024-1.024-3.072-5.12h-63.488q-24.576 0-42.496 17.408t-17.92 43.008v370.688q0 25.6 17.92 43.008t42.496 17.408h595.968zM691.2 105.984l-136.192 235.52z" />
|
11 |
+
<glyph unicode="" glyph-name="uniE002" d="M181.248 44.544l87.040 326.656q3.072 12.288 12.288 20.48t19.968 11.264 22.528 0.512 20.992-11.776l239.616-239.616q9.216-9.216 11.776-20.992t-0.512-22.528-11.264-19.968-20.48-12.288l-326.656-87.040q-12.288-3.072-24.064 0t-19.968 11.264-11.264 19.968 0 24.064zM842.752 595.456l-87.040-326.656q-3.072-12.288-12.288-20.48t-19.968-11.264-22.528-0.512-20.992 11.776l-239.616 239.616q-9.216 9.216-11.776 20.992t0.512 22.528 11.264 19.968 20.48 12.288l326.656 87.040q12.288 3.072 24.064 0t19.968-11.264 11.264-19.968 0-24.064z" />
|
12 |
+
<glyph unicode="" glyph-name="uniE003" d="M465.92 12.8q-31.744 0-50.176 26.624l-180.224 316.416q-14.336 21.504-10.24 47.104t25.6 39.936q20.48 14.336 46.080 10.24t39.936-25.6l122.88-186.368 320.512 460.8q10.24 18.432 28.16 25.088t32.256-1.536q17.408-10.24 23.040-26.624t-5.632-35.84l-337.92-618.496q-8.192-14.336-21.504-22.528t-28.672-9.216h-4.096z" />
|
13 |
+
<glyph unicode="" glyph-name="uniE004" d="M510.976 667.136q1.024 18.432 8.704 34.304t19.968 28.16 28.16 18.944 34.304 6.656q36.864-1.024 62.976-27.136t26.112-62.976q0-20.48-8.192-37.888t-22.528-29.696q-6.144-6.144-14.848-13.824t-8.704-15.872q0-9.216 5.12-16.384t13.312-12.8 17.92-8.192 18.944-0.512l116.736 17.408 20.48-192.512q2.048-21.504-12.288-37.376t-35.84-15.872h-6.144q-31.744 0-51.2 22.528-25.6 30.72-67.584 30.72-19.456 0-36.352-7.68t-29.184-20.48-18.944-30.72-5.632-37.376q2.048-32.768 26.624-57.344t58.368-25.6q21.504-2.048 39.936 6.656t32.768 23.040q18.432 23.552 50.176 23.552h7.168q21.504 0 35.328-15.872t11.776-37.376l-19.456-167.936h-470.016q-1.024 0-1.024 1.024l18.432 152.576q1.024 11.264-2.048 23.552t-10.24 22.016-17.408 15.872-21.504 6.144-20.48-8.704-16.384-16.896q-25.6-27.648-65.536-27.648-36.864 0-63.488 26.112t-26.624 62.976q0 18.432 6.656 34.304t18.432 28.16 27.648 19.968 34.304 7.68q41.984 2.048 67.584-27.648 8.192-8.192 17.408-16.896t20.48-8.704h1.024q11.264 0 21.504 6.144t16.896 15.872 10.24 22.016 2.56 23.552l-19.456 178.176 174.080-19.456q8.192-1.024 17.92 1.536t17.408 7.68 12.8 12.8 5.12 16.896v1.024q0 8.192-8.704 15.872t-14.848 13.824q-30.72 25.6-30.72 69.632z" />
|
14 |
+
<glyph unicode="" glyph-name="uniE005" d="M176.128 166.4q41.984-7.168 71.168-36.352t36.352-71.168q3.072-11.264-5.12-19.456-6.144-8.192-18.432-8.192h-88.064q-10.24 0-16.896 6.656t-6.656 16.896v88.064q0 12.288 8.192 18.432 8.192 8.192 19.456 5.12zM172.032 279.040q46.080 0 87.040-17.408t71.68-48.128 48.128-71.68 17.408-87.040q0-12.288-8.192-20.48t-20.48-8.192q-11.264 0-19.456 8.192t-8.192 20.48q0 34.816-13.312 65.024t-36.352 53.248-53.248 36.352-65.024 13.312q-12.288 0-20.48 8.192t-8.192 20.48q0 11.264 8.192 19.456t20.48 8.192zM172.032 394.752q70.656 0 132.096-26.624t107.52-72.704 72.704-108.032 26.624-132.608q0-12.288-8.192-20.48t-19.456-8.192q-12.288 0-20.48 8.192t-8.192 20.48q0 58.368-22.528 109.568t-60.928 89.6-89.6 60.928-109.568 22.528q-12.288 0-20.48 8.704t-8.192 19.968 8.192 19.968 20.48 8.704zM779.264 572.928q33.792 0 57.344-23.552t23.552-57.344v-322.56q0-33.792-23.552-57.344t-57.344-23.552h-214.016q-6.144 71.68-36.352 135.168t-78.848 111.616-112.128 77.824-136.192 35.84v43.008q0 33.792 24.064 57.344t56.832 23.552h496.64z" />
|
15 |
+
<glyph unicode="" glyph-name="uniE006" d="M820.224 100.864q-16.384-12.288-35.84-19.456t-41.984-7.168h-460.8q-22.528 0-41.984 7.168t-35.84 19.456l218.112 189.44 41.984-35.84q19.456-18.432 48.128-18.432 27.648 0 48.128 18.432l41.984 35.84zM390.144 317.952l-215.040-187.392q-21.504 32.768-21.504 71.68v235.52q0 37.888 19.456 68.608zM200.704 537.088q33.792 28.672 80.896 28.672h460.8q47.104 0 80.896-28.672l-289.792-251.904q-9.216-8.192-21.504-8.192t-21.504 8.192zM633.856 317.952l217.088 188.416q19.456-30.72 19.456-68.608v-235.52q0-38.912-21.504-71.68z" />
|
16 |
+
<glyph unicode="" glyph-name="uniE007" d="M223.232 564.736q0 29.696 9.728 50.176t26.624 30.208 39.424 7.68 48.128-16.384l422.912-244.736q25.6-15.36 38.4-33.792t12.8-37.888-12.8-37.888-38.4-33.792l-422.912-244.736q-25.6-14.336-48.128-16.384t-39.424 7.68-26.624 30.208-9.728 50.176v489.472z" />
|
17 |
+
<glyph unicode="" glyph-name="uniE008" d="M340.992-7.68q-41.984 0-71.168 29.184t-29.184 72.192v452.608q0 43.008 29.184 72.192t71.168 29.184q43.008 0 72.192-29.184t29.184-72.192v-452.608q0-43.008-29.184-72.192t-72.192-29.184zM683.008-7.68q-43.008 0-72.192 29.184t-29.184 72.192v452.608q0 43.008 29.184 72.192t72.192 29.184q41.984 0 71.168-29.184t29.184-72.192v-452.608q0-43.008-29.184-72.192t-71.168-29.184z" />
|
18 |
+
<glyph unicode="" glyph-name="uniE009" d="M742.4 357.888q17.408 12.288 17.408 33.28t-17.408 33.28l-150.528 110.592q-9.216 6.144-18.944 1.536t-9.728-15.872v-71.68h-25.6q-62.464 0-114.688-23.552t-87.552-64.512-51.712-95.232-6.144-115.712q4.096-26.624 14.336-53.248 2.048-5.12 7.68-4.608t6.656 6.656q6.144 46.080 28.16 86.528t55.808 69.632 76.288 46.080 90.624 16.896h6.144v-60.416q0-11.264 9.728-15.872t18.944 1.536l150.528 114.688zM772.096 652.8q29.696 0 51.2-21.504t21.504-51.2v-520.192q0-29.696-21.504-51.2t-51.2-21.504h-520.192q-29.696 0-51.2 21.504t-21.504 51.2v520.192q0 29.696 21.504 51.2t51.2 21.504h520.192z" />
|
19 |
+
<glyph unicode="" glyph-name="uniE00A" d="M637.952 392.704h-74.752v40.96q0 17.408 4.608 25.6t28.16 8.192h41.984v81.92h-66.56q-59.392 0-83.456-28.16t-24.064-79.36v-49.152h-49.152v-81.92h49.152v-239.616h99.328v239.616h66.56zM512 678.4q73.728 0 139.264-28.16t114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16-139.264 28.16-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16z" />
|
20 |
+
<glyph unicode="" glyph-name="uniE00B" d="M451.584 599.552q9.216 8.192 19.456 9.216t19.456-2.56 15.36-12.288 6.144-19.968v-507.904q0-11.264-6.144-19.968t-15.36-12.288-19.456-2.56-19.456 9.216l-136.192 124.928h-58.368q-31.744 0-59.904 12.288t-49.152 33.28-33.28 49.152-12.288 59.904 12.288 59.904 33.28 49.152 49.152 33.28 59.904 12.288h58.368l136.192 124.928z" />
|
21 |
+
<glyph unicode="" glyph-name="uniE00C" d="M705.536 392.704q27.648 20.48 49.152 50.176-26.624-11.264-56.32-15.36 15.36 9.216 26.112 23.040t16.896 31.232q-29.696-17.408-61.44-24.576-28.672 30.72-70.656 30.72-20.48 0-37.888-7.68t-30.208-20.48-20.48-30.72-7.68-37.376v-11.264t2.048-11.264q-61.44 3.072-112.64 30.208t-87.040 71.168q-5.12-11.264-8.704-23.040t-3.584-26.112q0-24.576 11.264-45.568t31.744-34.304q-23.552 1.024-44.032 12.288v-1.024q0-35.84 22.016-61.952t54.784-33.28q-11.264-3.072-24.576-3.072h-9.728t-8.704 2.048q9.216-29.696 33.792-48.128t56.32-19.456q-24.576-19.456-55.296-30.208t-64.512-10.752h-11.776t-10.752 1.024q31.744-20.48 69.12-31.744t78.336-11.264q66.56 0 117.76 25.088t86.528 64.512 53.248 88.064 17.92 96.768q0 8.192-1.024 12.288zM512 678.4q74.752 0 139.776-28.16t113.664-76.8 76.8-114.176 28.16-139.264q0-74.752-28.16-139.776t-76.8-113.664-113.664-76.8-139.776-28.16q-73.728 0-139.264 28.16t-114.176 76.8-76.8 113.664-28.16 139.776q0 73.728 28.16 139.264t76.8 114.176 114.176 76.8 139.264 28.16z" />
|
22 |
+
<glyph unicode="" glyph-name="uniE00D" d="M907.264 231.936q14.336-14.336 14.336-34.304t-14.336-34.304-33.792-14.336q-18.432 0-34.816 14.336l-88.064 88.064-88.064-88.064q-14.336-14.336-33.792-14.336-18.432 0-34.816 14.336-14.336 14.336-14.336 34.304t14.336 34.304l89.088 88.064-89.088 88.064q-14.336 14.336-14.336 34.304t14.336 34.304 34.304 14.336 34.304-14.336l88.064-88.064 88.064 88.064q14.336 14.336 34.304 14.336t34.304-14.336 14.336-34.304-14.336-34.304l-88.064-88.064zM451.584 599.552q9.216 8.192 19.456 9.216t19.456-2.56 15.36-12.288 6.144-19.968v-507.904q0-11.264-6.144-19.968t-15.36-12.288-19.456-2.56-19.456 9.216l-136.192 124.928h-58.368q-31.744 0-59.904 12.288t-49.152 33.28-33.28 49.152-12.288 59.904 12.288 59.904 33.28 49.152 49.152 33.28 59.904 12.288h58.368l136.192 124.928z" />
|
23 |
+
<glyph unicode="" glyph-name="uniE00E" d="M733.184 446.976q19.456 19.456 19.456 46.592t-19.456 47.616q-21.504 19.456-47.104 19.456t-47.104-19.456l-58.368-59.392q-27.648-27.648-17.408-63.488l25.6 25.6q9.216 10.24 23.040 10.24t24.064-10.24 10.24-24.064-10.24-23.040l-25.6-25.6q35.84-10.24 63.488 17.408l59.392 58.368zM443.392 158.208q27.648 27.648 17.408 63.488l-25.6-25.6q-9.216-9.216-23.552-9.216-13.312 0-23.552 9.216-10.24 10.24-10.24 24.064t10.24 23.040l25.6 25.6q-5.12 1.024-8.704 1.536t-7.68 0.512q-28.672 0-47.104-19.456l-59.392-58.368q-19.456-19.456-19.456-46.592t19.456-47.616q20.48-19.456 47.616-19.456t46.592 19.456l58.368 59.392zM780.288 588.288q19.456-19.456 29.184-44.032t9.728-50.176-9.728-50.176-29.184-44.032l-59.392-59.392q-19.456-19.456-43.52-29.184t-50.688-9.728q-35.84 0-66.56 18.432l-48.128-48.128q22.528-37.888 17.408-82.944t-37.888-77.824l-59.392-59.392q-19.456-19.456-44.032-29.184t-50.176-9.728-50.176 9.728-44.032 29.184-29.184 44.032-9.728 50.176 9.728 50.176 29.184 44.032l59.392 59.392q32.768 32.768 77.824 37.888t82.944-17.408l48.128 48.128q-22.528 37.888-17.408 82.944t37.888 77.824l59.392 59.392q19.456 19.456 44.032 29.184t50.176 9.728 50.176-9.728 44.032-29.184z" />
|
24 |
+
<glyph unicode="" glyph-name="uniE00F" d="M799.744 126.464q19.456-20.48 19.456-47.616t-19.456-46.592-47.104-19.456q-12.288 0-24.576 4.608t-22.528 14.848l-193.536 193.536-193.536-193.536q-10.24-10.24-22.528-14.848t-24.576-4.608q-27.648 0-47.104 19.456t-19.456 46.592 19.456 47.616l193.536 193.536-193.536 193.536q-19.456 20.48-19.456 47.616t19.456 46.592 46.592 19.456 47.616-19.456l193.536-193.536 193.536 193.536q20.48 19.456 47.616 19.456t46.592-19.456 19.456-46.592-19.456-47.616l-193.536-193.536z" />
|
25 |
+
<glyph unicode="" glyph-name="uniE010" d="M194.56 256.512q-27.648 0-47.104 19.456t-19.456 47.104q0 28.672 19.456 48.128t47.104 19.456q28.672 0 48.128-19.456t19.456-48.128q0-27.648-19.456-47.104t-48.128-19.456zM194.56 380.416q-23.552 0-39.936-16.896t-16.384-40.448 16.384-39.936 39.936-16.384 40.448 16.384 16.896 39.936-16.896 40.448-40.448 16.896zM178.176 344.576q0 7.168 7.168 4.096l36.864-20.48q6.144-5.12 0-9.216l-36.864-20.48q-7.168-4.096-7.168 4.096v41.984zM324.608 364.032q-4.096 2.048-7.168 2.048-9.216 0-9.216-10.24v-7.168h14.336v-16.384h-14.336v-56.32h-20.48v56.32h-11.264v16.384h11.264v8.192q0 25.6 25.6 25.6 8.192 0 11.264-2.048v-16.384zM352.256 275.968h-20.48v105.472h20.48v-105.472zM394.24 274.944q-16.384 0-26.112 10.24t-9.728 26.624q0 17.408 9.728 27.648t26.112 10.24q15.36 0 25.088-10.24t9.728-27.648q0-16.384-9.728-26.624t-25.088-10.24zM394.24 333.312q-8.192 0-11.776-6.144t-3.584-15.36q0-8.192 3.584-14.336t11.776-6.144 11.776 6.144 3.584 14.336q0 9.216-3.584 15.36t-11.776 6.144zM500.736 302.592l12.288 46.080h19.456l-21.504-72.704h-18.432l-12.288 44.032-11.264-44.032h-18.432l-22.528 72.704h20.48l12.288-46.080 12.288 46.080h15.36zM557.056 249.344h-19.456v99.328h19.456v-6.144q5.12 7.168 18.432 7.168 15.36 0 24.064-11.264t8.704-26.624-8.704-26.112-24.064-10.752q-13.312 0-18.432 7.168v-32.768zM557.056 300.544q3.072-8.192 13.312-8.192 17.408 0 17.408 19.456 0 20.48-17.408 20.48-10.24 0-13.312-8.192v-23.552zM634.88 275.968h-20.48v105.472h20.48v-105.472zM686.080 275.968v4.096q-2.048-2.048-7.168-3.584t-11.264-1.536q-11.264 0-18.944 6.144t-7.68 17.408q0 10.24 8.192 16.384t20.48 6.144q10.24 0 16.384-4.096v5.12q0 11.264-12.288 11.264-9.216 0-10.24-6.144h-19.456q2.048 10.24 10.24 16.384t20.48 6.144q29.696 0 29.696-27.648v-46.080h-18.432zM686.080 300.544q-4.096 7.168-13.312 7.168-5.12 0-9.216-2.048t-4.096-7.168 4.096-7.168 9.216-2.048q9.216 0 13.312 6.144v5.12zM722.944 249.344l11.264 26.624-27.648 72.704h20.48l17.408-48.128 16.384 48.128h19.456l-36.864-99.328h-20.48zM845.824 299.52q-5.12-24.576-32.768-24.576-15.36 0-25.088 10.24t-9.728 26.624q0 17.408 9.728 27.648t25.088 10.24q16.384 0 24.576-9.728t8.192-26.112v-6.144h-48.128q2.048-17.408 15.36-17.408 11.264 0 13.312 9.216h19.456zM797.696 320h28.672q0 13.312-13.312 13.312-12.288 0-15.36-13.312zM896 328.192q-5.12 3.072-10.24 3.072-11.264 0-13.312-10.24v-45.056h-20.48v72.704h20.48v-7.168q5.12 8.192 16.384 8.192 6.144 0 7.168-1.024v-20.48z" />
|
26 |
+
<glyph unicode="" glyph-name="uniE011" d="M313.344 370.176l283.648 283.648q22.528 22.528 54.784 24.576t55.808-20.48q12.288-11.264 17.92-25.6t5.632-29.696-5.632-29.696-16.896-26.624l-226.304-226.304 226.304-226.304q23.552-22.528 23.552-54.272t-23.552-55.296q-11.264-11.264-25.6-16.896t-28.672-5.632q-32.768 0-55.296 22.528l-285.696 286.72q-20.48 20.48-20.48 49.664t20.48 49.664z" />
|
27 |
+
<glyph unicode="" glyph-name="uniE012" d="M710.656 370.176q20.48-20.48 20.48-49.664t-20.48-49.664l-285.696-286.72q-22.528-22.528-55.296-22.528-14.336 0-28.672 5.632t-25.6 16.896q-23.552 23.552-23.552 55.296t23.552 54.272l226.304 226.304-226.304 226.304q-11.264 12.288-16.896 26.624t-5.632 29.696 5.632 29.696 17.92 25.6q23.552 22.528 55.808 20.48t54.784-24.576l283.648-283.648z" />
|
28 |
+
<glyph unicode="" glyph-name="_19" d="M819.2 320q0-63.488-24.064-119.808t-65.536-97.792-97.792-65.536-119.808-24.064-119.808 24.064-97.792 65.536-65.536 97.792-24.064 119.808 24.064 119.808 65.536 97.792 97.792 65.536 119.808 24.064 119.808-24.064 97.792-65.536 65.536-97.792 24.064-119.808z" />
|
29 |
+
<glyph unicode="" glyph-name="_20" d="M512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 629.248q-63.488 0-119.808-24.576t-98.304-66.56-66.56-98.304-24.576-119.808 24.576-119.808 66.56-98.304 98.304-66.56 119.808-24.576 119.808 24.576 98.304 66.56 66.56 98.304 24.576 119.808-24.576 119.808-66.56 98.304-98.304 66.56-119.808 24.576zM424.96 416.256q0 23.552 14.336 31.744t34.816-3.072l166.912-96.256q20.48-12.288 20.48-28.672t-20.48-28.672l-166.912-96.256q-20.48-11.264-34.816-3.072t-14.336 31.744v192.512z" />
|
30 |
+
<glyph unicode="" glyph-name="_21" d="M512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 629.248q-63.488 0-119.808-24.576t-98.304-66.56-66.56-98.304-24.576-119.808 24.576-119.808 66.56-98.304 98.304-66.56 119.808-24.576 119.808 24.576 98.304 66.56 66.56 98.304 24.576 119.808-24.576 119.808-66.56 98.304-98.304 66.56-119.808 24.576zM439.296 180.736q-17.408 0-30.208 12.288t-12.8 30.72v192.512q0 18.432 12.8 31.232t30.208 12.8 30.208-12.8 12.8-31.232v-192.512q0-18.432-12.8-30.72t-30.208-12.288zM584.704 180.736q-17.408 0-30.208 12.288t-12.8 30.72v192.512q0 18.432 12.8 31.232t30.208 12.8 30.208-12.8 12.8-31.232v-192.512q0-18.432-12.8-30.72t-30.208-12.288z" />
|
31 |
+
<glyph unicode="" glyph-name="_22" d="M521.216 382.464l82.944 311.296q3.072 12.288 11.776 19.968t19.456 10.752 21.504 0.512 19.968-11.776l228.352-228.352q9.216-9.216 11.776-19.968t-0.512-21.504-10.752-19.456-19.968-11.776l-311.296-82.944q-12.288-3.072-23.552 0t-18.944 10.752-10.752 18.944 0 23.552zM502.784 257.536l-82.944-311.296q-3.072-12.288-11.776-19.968t-19.456-10.752-21.504-0.512-19.968 11.776l-228.352 228.352q-9.216 9.216-11.776 19.968t0.512 21.504 10.752 19.456 19.968 11.776l311.296 82.944q12.288 3.072 23.552 0t18.944-10.752 10.752-18.944 0-23.552z" />
|
32 |
+
<glyph unicode="" glyph-name="uniE101" d="M746.496 3.584v0 0h-457.728l228.352 396.288 145.408-251.904zM870.4 595.456v-491.52h-119.808l-191.488 331.776-41.984 71.68-40.96-71.68-192.512-331.776h-130.048v491.52h716.8z" />
|
33 |
+
<glyph unicode="" glyph-name="uniE102" d="M179.2-12.8l121.856 452.608 330.752-330.752zM844.8 652.8l-121.856-452.608-330.752 330.752z" />
|
34 |
+
<glyph unicode="" glyph-name="uniE103" d="M447.488 12.8l-221.184 367.616 75.776 53.248 133.12-190.464 304.128 486.4 58.368-31.744z" />
|
35 |
+
<glyph unicode="" glyph-name="uniE104" d="M509.952 673.28q0 38.912 27.136 65.536t66.048 26.624 65.536-26.624 26.624-65.536q0-25.6-12.288-46.592t-32.768-33.28v-66.56h179.2v-217.088h-77.824q-12.288 20.48-32.768 32.768t-46.080 12.288q-38.912 0-66.048-27.136t-27.136-66.048 27.136-65.536 66.048-26.624q25.6 0 46.080 12.288t32.768 32.768h77.824v-217.088h-484.352v217.088h-60.416q-12.288-20.48-33.28-32.768t-46.592-12.288q-38.912 0-65.536 26.624t-26.624 65.536 26.624 66.048 65.536 27.136q25.6 0 46.592-12.288t33.28-32.768h60.416v217.088h209.92v66.56q-20.48 12.288-32.768 33.28t-12.288 46.592z" />
|
36 |
+
<glyph unicode="" glyph-name="uniE105" d="M149.504 153.088q24.576 0 45.568-9.216t37.376-25.6 25.6-37.888 9.216-46.080v-5.12h-123.904v123.904h6.144zM149.504 266.752q48.128 0 90.112-18.432t73.728-49.664 49.664-73.728 17.92-90.624v-5.12h-58.368v5.12q0 35.84-13.824 67.584t-37.376 55.296-54.784 37.376-67.072 13.824h-6.144v58.368h6.144zM149.504 385.536q72.704 0 136.192-27.648t111.104-75.264 75.264-111.616 27.648-136.704v-5.12h-58.368v5.12q0 60.416-23.040 113.664t-62.464 93.184-92.672 62.976-113.664 23.040h-6.144v58.368h6.144zM860.16 569.856v-499.712h-304.128q-6.144 74.752-37.888 139.776t-81.92 114.688-115.712 80.384-140.288 36.864v128h679.936z" />
|
37 |
+
<glyph unicode="" glyph-name="uniE106" d="M870.4 518.656v-401.408l-231.424 200.704zM854.016 74.24h-684.032l247.808 215.040 94.208-81.92 94.208 81.92zM860.16 565.76l-348.16-302.080-348.16 302.080h696.32zM153.6 117.248v401.408l231.424-200.704z" />
|
38 |
+
<glyph unicode="" glyph-name="uniE107" d="M809.984 320l-575.488-332.8v665.6z" />
|
39 |
+
<glyph unicode="" glyph-name="uniE108" d="M442.368-7.68h-201.728v655.36h201.728v-655.36zM783.36-7.68h-201.728v655.36h201.728v-655.36z" />
|
40 |
+
<glyph unicode="" glyph-name="uniE109" d="M787.456 391.68l-224.256 163.84v-106.496h-25.6q-62.464 0-114.688-23.552t-87.552-64.512-51.712-95.232-6.144-115.712q4.096-26.624 14.336-53.248 2.048-5.12 7.68-4.608t6.656 6.656q6.144 46.080 28.16 86.528t55.808 69.632 76.288 46.080 90.624 16.896h6.144v-96.256zM844.8 652.8v-665.6h-665.6v665.6h665.6z" />
|
41 |
+
<glyph unicode="" glyph-name="uniE10A" d="M629.76 387.584h-70.656v37.888q0 15.36 5.12 23.040t25.6 7.68h38.912v76.8h-61.44q-55.296 0-77.312-26.112t-22.016-73.216v-46.080h-46.080v-75.776h46.080v-222.208h91.136v222.208h61.44zM844.8 652.8v-665.6h-665.6v665.6h665.6z" />
|
42 |
+
<glyph unicode="" glyph-name="uniE10B" d="M286.72 472.576l194.56 178.176v-661.504l-194.56 178.176h-184.32v305.152h184.32z" />
|
43 |
+
<glyph unicode="" glyph-name="uniE10C" d="M688.128 384.512q26.624 17.408 46.080 47.104-26.624-11.264-52.224-14.336 28.672 17.408 39.936 50.176-14.336-8.192-28.16-13.824t-30.208-8.704q-12.288 14.336-29.184 22.016t-36.352 7.68q-38.912 0-65.536-26.624t-26.624-64.512q0-5.12 0.512-10.752t1.536-10.752q-57.344 3.072-105.472 28.672t-81.92 66.56q-12.288-20.48-12.288-46.080 0-23.552 11.264-43.52t28.672-32.256q-22.528 2.048-40.96 12.288v-2.048q0-32.768 20.48-57.344t52.224-31.744q-11.264-3.072-23.552-3.072h-9.216t-8.192 2.048q8.192-27.648 31.744-45.568t53.248-17.92q-23.552-18.432-51.712-28.672t-60.928-10.24h-10.752t-10.752 1.024q61.44-40.96 139.264-40.96 62.464 0 111.104 23.552t81.92 60.928 50.176 83.456 16.896 91.136q0 8.192-1.024 12.288zM844.8 652.8v-665.6h-665.6v665.6h665.6z" />
|
44 |
+
<glyph unicode="" glyph-name="uniE10D" d="M802.816 320l118.784-118.784-67.584-67.584-118.784 118.784-119.808-118.784-67.584 67.584 119.808 118.784-119.808 118.784 67.584 67.584 119.808-118.784 118.784 118.784 67.584-67.584zM286.72 472.576l194.56 178.176v-661.504l-194.56 178.176h-184.32v305.152h184.32z" />
|
45 |
+
<glyph unicode="" glyph-name="uniE10E" d="M549.888 397.824l46.080 46.080 41.984-37.888-48.128-48.128 19.456-19.456 130.048 129.024-79.872 79.872-129.024-130.048zM474.112 242.176l-45.056-45.056-44.032 35.84 49.152 49.152-19.456 19.456-130.048-129.024 79.872-79.872 129.024 130.048zM549.888 317.952l-35.84-35.84 60.416-59.392-209.92-209.92-159.744 159.744 209.92 209.92 59.392-60.416 35.84 35.84-60.416 59.392 209.92 209.92 159.744-159.744-209.92-209.92z" />
|
46 |
+
<glyph unicode="" glyph-name="uniE10F" d="M599.040 320l220.16-220.16-87.040-87.040-220.16 220.16-220.16-220.16-87.040 87.040 220.16 220.16-220.16 220.16 87.040 87.040 220.16-220.16 220.16 220.16 87.040-87.040z" />
|
47 |
+
<glyph unicode="" glyph-name="uniE110" d="M656.384 342.528q16.384-9.216 16.384-22.528t-16.384-22.528l-195.584-112.64q-15.36-9.216-26.624-2.56t-11.264 25.088v225.28q0 18.432 11.264 25.088t26.624-2.56l195.584-112.64zM512 13.824q63.488 0 119.296 24.064t97.28 65.536 65.536 97.28 24.064 119.296-24.064 119.296-65.536 97.28-97.28 65.536-119.296 24.064-119.296-24.064-97.28-65.536-65.536-97.28-24.064-119.296 24.064-119.296 65.536-97.28 97.28-65.536 119.296-24.064zM512 678.4q73.728 0 139.264-28.16t114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16-139.264 28.16-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16z" />
|
48 |
+
<glyph unicode="" glyph-name="uniE111" d="M641.024 678.4l100.352-101.376-257.024-257.024 257.024-257.024-100.352-101.376-358.4 358.4z" />
|
49 |
+
<glyph unicode="" glyph-name="uniE112" d="M741.376 320l-358.4-358.4-100.352 101.376 257.024 257.024-257.024 257.024 100.352 101.376z" />
|
50 |
+
<glyph unicode="" glyph-name="_46" d="M768 64h-512v512h512v-512z" />
|
51 |
+
<glyph unicode="" glyph-name="_47" d="M512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 629.248q-63.488 0-119.808-24.576t-98.304-66.56-66.56-98.304-24.576-119.808 24.576-119.808 66.56-98.304 98.304-66.56 119.808-24.576 119.808 24.576 98.304 66.56 66.56 98.304 24.576 119.808-24.576 119.808-66.56 98.304-98.304 66.56-119.808 24.576zM680.96 320l-254.976-147.456v294.912z" />
|
52 |
+
<glyph unicode="" glyph-name="_48" d="M512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 629.248q-63.488 0-119.808-24.576t-98.304-66.56-66.56-98.304-24.576-119.808 24.576-119.808 66.56-98.304 98.304-66.56 119.808-24.576 119.808 24.576 98.304 66.56 66.56 98.304 24.576 119.808-24.576 119.808-66.56 98.304-98.304 66.56-119.808 24.576zM483.328 183.808h-83.968v272.384h83.968v-272.384zM624.64 183.808h-83.968v272.384h83.968v-272.384z" />
|
53 |
+
<glyph unicode="" glyph-name="_49" d="M521.216 329.216l115.712 432.128 316.416-316.416zM502.784 310.784l-115.712-432.128-316.416 316.416z" />
|
54 |
+
<glyph unicode="" glyph-name="uniE201" d="M661.504 54.784q0 1.024-0.512 1.536t-0.512 1.536l-147.456 253.952q0 1.024-1.024 2.048 0-1.024-0.512-1.024t-0.512-1.024l-147.456-253.952q0-2.048-1.024-3.072h299.008zM701.44 81.408q17.408-30.72 5.12-52.736t-48.128-22.016h-292.864q-35.84 0-48.128 22.016t5.12 52.736l146.432 253.952q18.432 30.72 43.008 30.72t43.008-30.72zM809.984 592.384q24.576 0 42.496-17.92t17.92-43.52v-370.688q0-24.576-17.92-42.496t-42.496-17.92h-63.488l-3.072 6.144-24.576 41.984h91.136q12.288 0 12.288 12.288v370.688q0 13.312-12.288 13.312h-595.968q-5.12 0-8.704-4.096t-3.584-9.216v-370.688q0-5.12 3.584-8.704t8.704-3.584h91.136l-24.576-41.984-3.072-6.144h-63.488q-24.576 0-42.496 17.92t-17.92 42.496v370.688q0 25.6 17.92 43.52t42.496 17.92h595.968z" />
|
55 |
+
<glyph unicode="" glyph-name="uniE202" d="M844.8 619.008v-2.048l-28.672-261.12q-2.048-12.288-10.752-20.48t-20.992-8.192h-4.096q-13.312 2.048-22.016 11.776t-6.656 24.064l18.432 168.96-185.344-185.344q-9.216-9.216-22.528-9.216t-23.552 9.216q-9.216 10.24-9.216 23.552t9.216 22.528l185.344 185.344-168.96-18.432q-14.336-2.048-24.064 6.656t-11.776 22.016q-2.048 14.336 6.144 24.064t22.528 11.776l262.144 28.672h7.168q1.024-1.024 4.096-1.024 1.024-1.024 2.048-1.024 2.048-1.024 2.56-1.024t2.56-1.024l1.024-1.024q2.048-1.024 3.072-2.048t3.072-2.048q1.024-2.048 4.096-5.12 0-1.024 1.024-2.048l2.048-4.096q0-2.048 1.024-3.072 0-2.048 1.024-4.096v-6.144zM468.992 80.384q14.336 2.048 24.064-6.656t11.776-22.016q2.048-14.336-6.144-24.064t-22.528-11.776l-261.12-28.672h-3.072q-14.336 0-23.552 9.216t-9.216 23.552v3.072l28.672 261.12q2.048 14.336 11.776 22.528t24.064 6.144q13.312-2.048 22.016-11.776t6.656-24.064l-18.432-168.96 185.344 185.344q9.216 9.216 22.528 9.216t23.552-9.216q9.216-9.216 9.216-23.040t-9.216-23.040l-185.344-185.344 168.96 18.432z" />
|
56 |
+
<glyph unicode="" glyph-name="uniE203" d="M826.368 693.76q6.144-20.48-4.096-38.912l-340.992-615.424q-13.312-24.576-40.96-26.624h-3.072q-25.6 0-40.96 21.504l-161.792 297.984q-11.264 17.408-8.192 37.888 5.12 21.504 21.504 31.744 16.384 13.312 36.864 8.192 20.48-3.072 32.768-20.48l114.688-220.16 302.080 533.504q11.264 18.432 30.72 24.576t37.888-4.096 23.552-29.696z" />
|
57 |
+
<glyph unicode="" glyph-name="uniE204" d="M791.552 190.976q1.024 12.288-7.168 24.576-10.24 10.24-23.552 10.24h-6.144q-22.528 0-37.888-17.408-30.72-35.84-78.848-32.768-35.84 2.048-62.464 28.16t-28.672 61.952q-3.072 43.008 25.6 73.728 14.336 14.336 32.768 22.528t38.912 8.192 39.936-8.192 33.792-24.576q14.336-17.408 36.864-17.408h6.144q14.336 0 23.552 11.264 8.192 8.192 8.192 23.552l-18.432 165.888-106.496-14.336q-12.288-2.048-25.6 2.048t-23.552 13.312q-17.408 14.336-17.408 33.792 0 11.264 7.68 19.968t15.872 14.848l3.072 3.072q23.552 20.48 23.552 53.248 0 28.672-19.968 49.152t-49.664 20.48h-1.024q-27.648 0-48.128-19.968t-21.504-47.616q-1.024-16.384 5.632-30.72t17.92-24.576l3.072-3.072q8.192-6.144 15.872-14.848t7.68-19.968v-1.024q0-19.456-16.384-33.792-10.24-9.216-23.552-13.824t-25.6-2.56l-133.12 16.384 15.36-149.504q3.072-32.768-19.456-57.344-17.408-20.48-41.984-20.48h-1.024q-13.312 0-23.552 8.704t-18.432 16.896l-2.048 2.048q-21.504 22.528-53.248 22.528-28.672-1.024-48.64-21.504t-19.968-50.176q1.024-28.672 21.504-49.152t49.152-20.48q30.72 0 51.2 22.528l2.048 2.048q8.192 8.192 18.432 16.896t23.552 8.704q24.576 0 43.008-20.48 11.264-11.264 16.384-27.136t3.072-30.208l-15.36-128h411.648l17.408 144.384zM760.832 262.656q30.72 0 51.2-22.528 19.456-24.576 16.384-53.248l-18.432-156.672q-1.024-9.216-7.68-15.36t-15.872-6.144h-439.296q-11.264 0-17.408 8.192-8.192 8.192-6.144 18.432l17.408 143.36q2.048 15.36-10.24 28.672-2.048 2.048-5.632 5.12t-8.704 3.072q-3.072-1.024-16.384-14.336l-2.048-2.048q-31.744-33.792-77.824-33.792-21.504 0-40.96 8.192t-34.304 23.040-23.552 34.304-8.704 40.96 7.68 40.96 22.016 34.304 33.792 23.552 40.96 9.728h3.072q46.080 0 77.824-33.792l2.048-2.048q13.312-13.312 16.384-14.336 5.12 0 8.704 3.072t5.632 5.12q12.288 13.312 10.24 28.672l-17.408 166.912q-2.048 10.24 7.168 19.456 6.144 6.144 16.384 6.144h3.072l149.504-18.432h2.048q9.216 0 18.432 7.168 3.072 3.072 3.072 5.12l-3.072 3.072t-6.144 5.12q-1.024 2.048-2.048 2.56t-2.048 1.536q-17.408 15.36-27.136 37.376t-9.728 46.592q1.024 21.504 9.728 40.448t23.040 33.28 33.792 22.528 40.96 8.192h2.048q21.504 0 40.96-8.704t33.792-23.552 22.528-34.304 8.192-40.96q0-49.152-35.84-81.92-2.048-1.024-4.096-3.072-8.192-7.168-9.216-8.192l4.096-4.096q6.144-6.144 17.408-6.144h2.048l120.832 16.384h3.072q9.216 0 14.336-4.096 7.168-6.144 9.216-16.384l19.456-180.224q3.072-30.72-17.408-53.248t-51.2-22.528h-6.144q-38.912 0-65.536 29.696-17.408 20.48-45.056 20.48-26.624 0-44.032-19.456-18.432-18.432-16.384-45.056 2.048-23.552 17.92-38.912t38.4-17.408h4.096q27.648 0 45.056 20.48 27.648 29.696 65.536 29.696h6.144z" />
|
58 |
+
<glyph unicode="" glyph-name="uniE205" d="M169.984 157.184q39.936-7.168 68.608-35.84t34.816-67.584q2.048-8.192-3.584-15.36t-13.824-7.168h-89.088q-8.192 0-13.312 5.632t-5.12 13.824v88.064q0 8.192 6.656 14.336t14.848 4.096zM165.888 270.848q46.080 0 86.016-17.408t70.144-47.616 47.616-70.144 17.408-86.016q0-9.216-6.656-15.872t-15.872-6.656q-10.24 0-16.896 6.656t-6.656 15.872q0 35.84-13.824 67.584t-37.376 55.808-55.296 37.888-68.608 13.824q-9.216 0-15.872 6.656t-6.656 15.872q0 10.24 6.656 16.896t15.872 6.656zM165.888 386.56q69.632 0 131.072-26.624t107.008-72.192 72.192-107.008 26.624-131.072q0-9.216-6.656-15.872t-15.872-6.656q-10.24 0-16.896 6.656t-6.656 15.872q0 60.416-23.040 113.152t-62.464 92.16-92.16 62.464-113.152 23.040q-9.216 0-15.872 6.656t-6.656 16.896q0 9.216 6.656 15.872t15.872 6.656zM778.24 571.904q33.792 0 57.856-23.552t24.064-58.368v-324.608q0-33.792-24.064-57.344t-57.856-23.552h-215.040q-2.048 23.552-6.144 45.056h221.184q15.36 0 25.6 10.752t10.24 25.088v324.608q0 15.36-10.24 26.112t-25.6 10.752h-499.712q-15.36 0-25.6-10.752t-10.24-26.112v-49.152q-23.552 4.096-46.080 6.144v43.008q0 34.816 24.064 58.368t57.856 23.552h499.712z" />
|
59 |
+
<glyph unicode="" glyph-name="uniE206" d="M784.384 117.248h4.096l-198.656 172.032-17.408-15.36q-25.6-22.528-60.416-22.528t-60.416 22.528l-17.408 15.36-198.656-172.032h548.864zM401.408 317.952l-202.752 176.128q-1.024-4.096-1.536-7.168t-0.512-7.168v-319.488q0-10.24 3.072-17.408zM239.616 522.752h-8.192l248.832-217.088q14.336-11.264 31.744-11.264t31.744 11.264l248.832 217.088h-552.96zM827.392 479.744q0 4.096-0.512 7.168t-1.536 7.168l-202.752-176.128 201.728-175.104q3.072 7.168 3.072 17.408v319.488zM784.384 565.76q17.408 0 33.28-6.656t27.648-18.432 18.432-27.136 6.656-33.792v-319.488q0-18.432-6.656-33.792t-18.432-27.136-27.648-18.432-33.28-6.656h-544.768q-17.408 0-33.28 6.656t-27.648 18.432-18.432 27.136-6.656 33.792v319.488q0 18.432 6.656 33.792t18.432 27.136 27.648 18.432 33.28 6.656h544.768z" />
|
60 |
+
<glyph unicode="" glyph-name="uniE207" d="M305.152-12.8q-22.528 0-39.936 10.24-44.032 25.6-44.032 92.16v460.8q0 66.56 44.032 92.16 43.008 25.6 101.376-8.192l399.36-230.4q57.344-33.792 57.344-83.968t-57.344-83.968l-399.36-230.4q-32.768-18.432-61.44-18.432zM305.152 614.912q-11.264 0-21.504-5.12-24.576-14.336-24.576-59.392v-460.8q0-21.504 6.144-36.864t18.432-22.528q25.6-14.336 63.488 8.192l399.36 230.4q38.912 21.504 38.912 51.2t-38.912 51.2l-399.36 230.4q-22.528 13.312-41.984 13.312z" />
|
61 |
+
<glyph unicode="" glyph-name="uniE208" d="M350.208-7.68q-23.552 0-44.032 8.704t-35.84 24.064-24.064 35.84-8.704 44.032v430.080q0 23.552 8.704 44.032t24.064 35.84 35.84 24.064 44.032 8.704q22.528 0 43.008-8.704t35.84-24.064 24.064-35.84 8.704-44.032v-430.080q0-23.552-8.704-44.032t-24.064-35.84-35.84-24.064-43.008-8.704zM350.208 614.912q-32.768 0-56.32-23.552t-23.552-56.32v-430.080q0-32.768 23.552-56.32t56.32-23.552q16.384 0 30.72 6.144t25.088 16.896 16.896 25.6 6.144 31.232v430.080q0 16.384-6.144 31.232t-16.896 25.6-25.088 16.896-30.72 6.144zM673.792-7.68q-23.552 0-43.52 8.704t-35.328 24.064-24.064 35.84-8.704 44.032v430.080q0 23.552 8.704 44.032t24.064 35.84 35.328 24.064 43.52 8.704 44.032-8.704 35.84-24.064 24.064-35.84 8.704-44.032v-430.080q0-23.552-8.704-44.032t-24.064-35.84-35.84-24.064-44.032-8.704zM673.792 614.912q-16.384 0-30.72-6.144t-25.088-16.896-16.896-25.6-6.144-31.232v-430.080q0-16.384 6.144-31.232t16.896-25.6 25.088-16.896 30.72-6.144q32.768 0 56.32 23.552t23.552 56.32v430.080q0 32.768-23.552 56.32t-56.32 23.552z" />
|
62 |
+
<glyph unicode="" glyph-name="uniE209" d="M799.744 583.168q0 10.24-7.168 17.408t-17.408 7.168h-526.336q-10.24 0-17.408-7.168t-7.168-17.408v-526.336q0-10.24 7.168-17.408t17.408-7.168h526.336q10.24 0 17.408 7.168t7.168 17.408v526.336zM775.168 652.8q28.672 0 49.152-20.48t20.48-49.152v-526.336q0-28.672-20.48-49.152t-49.152-20.48h-526.336q-28.672 0-49.152 20.48t-20.48 49.152v526.336q0 28.672 20.48 49.152t49.152 20.48h526.336zM739.328 418.304q9.216-6.144 9.216-17.408t-9.216-17.408l-175.104-139.264q-7.168-5.12-13.312-5.12-11.264 0-17.408 8.192t-5.12 17.408 8.192 14.336l124.928 99.328h-114.688q-33.792 0-69.632-10.24t-65.024-38.912-47.616-79.36-18.432-131.584q0-9.216-6.144-15.872t-16.384-6.656q-9.216 0-15.36 6.656t-6.144 15.872q0 146.432 63.488 225.792t181.248 79.36h114.688l-124.928 98.304q-7.168 6.144-8.192 15.36t5.12 16.384q5.12 8.192 14.336 8.704t16.384-4.608l175.104-139.264z" />
|
63 |
+
<glyph unicode="" glyph-name="uniE20A" d="M545.792 401.92h71.68l-9.216-76.8h-62.464v-225.28h-92.16v225.28h-47.104v76.8h47.104v47.104q0 48.128 22.016 74.24t78.336 26.112h62.464v-77.824h-38.912q-21.504 0-26.624-7.68t-5.12-23.040v-38.912zM512 3.584q65.536 0 122.88 25.088t100.352 68.096 68.096 100.352 25.088 122.88-25.088 122.88-68.096 100.352-100.352 68.096-122.88 25.088-122.88-25.088-100.352-68.096-68.096-100.352-25.088-122.88 25.088-122.88 68.096-100.352 100.352-68.096 122.88-25.088zM512 678.4q73.728 0 139.264-28.16t114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16-139.264 28.16-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16z" />
|
64 |
+
<glyph unicode="" glyph-name="uniE20B" d="M518.144 570.88q0 8.192-4.096 12.288t-6.144 5.12-7.68 1.536-11.776-4.608l-145.408-129.024h-64.512q-28.672 0-54.272-10.24t-44.544-28.672-30.208-43.52-11.264-53.76 10.24-54.272 28.672-44.544 43.52-30.208 53.76-11.264l65.536-1.024 142.336-132.096q5.12-6.144 11.264-5.632t8.192 1.536 6.144 5.12 5.12 12.288zM522.24 620.032q14.336-6.144 23.040-19.456t8.704-29.696l-6.144-512q0-34.816-32.768-48.128-12.288-5.12-21.504-5.12-19.456 0-35.84 14.336l-132.096 123.904h-51.2q-35.84 0-67.584 14.336t-54.784 37.888-36.352 55.808-13.312 68.096 14.336 67.584 37.888 54.784 55.808 36.352 68.096 13.312h51.2l135.168 119.808q11.264 11.264 27.136 13.312t30.208-5.12z" />
|
65 |
+
<glyph unicode="" glyph-name="uniE20C" d="M512 3.584q65.536 0 122.88 25.088t100.352 68.096 68.096 100.352 25.088 122.88-25.088 122.88-68.096 100.352-100.352 68.096-122.88 25.088-122.88-25.088-100.352-68.096-68.096-100.352-25.088-122.88 25.088-122.88 68.096-100.352 100.352-68.096 122.88-25.088zM512 678.4q73.728 0 139.264-28.16t114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16-139.264 28.16-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16zM699.392 449.024q-10.24-29.696-34.816-44.032 24.576 3.072 46.080 12.288-8.192-11.264-18.432-22.016t-21.504-18.944v-10.24q0-38.912-14.848-78.336t-43.008-71.68-70.144-52.736-96.256-20.48q-65.536 0-119.808 34.816 5.12-1.024 9.216-1.024h9.216q55.296 0 97.28 33.792-25.6 0-45.568 15.36t-27.136 38.912q4.096-1.024 14.336-1.024 11.264 0 20.48 3.072-26.624 5.12-44.544 26.624t-17.92 50.176v1.024q14.336-8.192 34.816-10.24-15.36 11.264-25.088 28.16t-9.728 37.376q0 22.528 11.264 39.936 29.696-35.84 71.168-57.856t90.624-24.064q-2.048 10.24-2.048 17.408 0 32.768 23.040 55.808t55.808 23.040q34.816 0 57.344-24.576 14.336 2.048 26.624 7.168t23.552 12.288z" />
|
66 |
+
<glyph unicode="" glyph-name="uniE20D" d="M913.408 200.192q5.12-5.12 5.12-12.8t-5.12-12.8-12.288-5.12q-6.144 0-13.312 5.12l-109.568 112.64-111.616-109.568q-7.168-5.12-13.312-5.12-5.12 0-12.288 5.12-5.12 5.12-4.608 12.8t5.632 12.8l111.616 109.568-109.568 111.616q-5.12 5.12-5.12 12.8t5.12 12.8 12.8 5.12 12.8-5.12l109.568-112.64 112.64 109.568q5.12 5.12 12.288 5.12t12.288-5.12 5.12-12.8-5.12-12.8l-112.64-109.568zM518.144 570.88q0 8.192-4.096 12.288t-6.144 5.12-7.68 1.536-11.776-4.608l-145.408-129.024h-64.512q-28.672 0-54.272-10.24t-44.544-28.672-30.208-43.52-11.264-53.76 10.24-54.272 28.672-44.544 43.52-30.208 53.76-11.264l65.536-1.024 142.336-132.096q5.12-6.144 11.264-5.632t8.192 1.536 6.144 5.12 5.12 12.288zM522.24 620.032q14.336-6.144 23.040-19.456t8.704-29.696l-6.144-512q0-34.816-32.768-48.128-12.288-5.12-21.504-5.12-19.456 0-35.84 14.336l-132.096 123.904h-51.2q-35.84 0-67.584 14.336t-54.784 37.888-36.352 55.808-13.312 68.096 14.336 67.584 37.888 54.784 55.808 36.352 68.096 13.312h51.2l135.168 119.808q11.264 11.264 27.136 13.312t30.208-5.12z" />
|
67 |
+
<glyph unicode="" glyph-name="uniE20E" d="M749.568 443.904q11.264 11.264 16.896 26.112t5.632 30.208-5.632 30.208-16.896 27.136q-11.264 11.264-26.624 17.408t-30.72 6.144q-32.768 0-56.32-23.552l-61.44-61.44q-19.456-19.456-22.528-45.568t9.216-48.64l37.888 37.888q7.168 7.168 16.384 7.168t16.384-7.168q7.168-6.144 7.168-15.872t-7.168-16.896l-37.888-37.888q22.528-12.288 48.64-9.216t45.568 22.528l61.44 61.44zM449.536 143.872q19.456 19.456 22.528 45.568t-9.216 49.664l-37.888-38.912q-7.168-7.168-16.384-7.168-10.24 0-16.384 7.168-7.168 7.168-7.168 16.384t7.168 16.384l37.888 37.888q-16.384 10.24-37.888 10.24-32.768 0-56.32-23.552l-61.44-61.44q-11.264-11.264-17.408-26.112t-6.144-30.208 6.144-30.208 17.408-27.136q12.288-11.264 27.136-17.408t30.208-6.144 30.208 6.144 26.112 17.408l61.44 61.44zM782.336 590.336q18.432-18.432 27.648-41.984t9.216-47.616-9.216-47.616-27.648-41.984l-61.44-61.44q-18.432-18.432-41.984-27.648t-47.104-9.216q-39.936 0-71.68 22.528l-63.488-63.488q12.288-18.432 17.92-39.424t4.096-42.496-10.752-41.984-25.6-36.864l-61.44-61.44q-18.432-18.432-41.984-27.648t-47.104-9.216q-24.576 0-48.128 9.216t-41.984 27.648-27.648 41.984-9.216 47.616 9.216 47.616 27.648 41.984l61.44 61.44q16.384 16.384 36.864 25.6t41.984 10.752 42.496-4.096 39.424-17.92l63.488 63.488q-12.288 18.432-17.92 39.424t-4.096 42.496 10.752 41.984 25.6 36.864l61.44 61.44q18.432 18.432 41.984 27.648t47.616 9.216 47.616-9.216 41.984-27.648z" />
|
68 |
+
<glyph unicode="" glyph-name="uniE20F" d="M811.008 62.976q8.192-8.192 8.192-20.48t-8.192-21.504q-10.24-8.192-21.504-8.192-12.288 0-20.48 8.192l-257.024 257.024-257.024-257.024q-8.192-8.192-20.48-8.192-11.264 0-21.504 8.192-8.192 9.216-8.192 21.504t8.192 20.48l257.024 257.024-257.024 257.024q-8.192 8.192-8.192 20.48t8.192 21.504q9.216 8.192 21.504 8.192t20.48-8.192l257.024-257.024 257.024 257.024q8.192 8.192 20.48 8.192t21.504-8.192q8.192-9.216 8.192-21.504t-8.192-20.48l-257.024-257.024z" />
|
69 |
+
<glyph unicode="" glyph-name="uniE210" d="M166.912 383.488q-6.144 2.048-10.24 2.048-12.288 0-12.288-13.312v-9.216h19.456v-21.504h-19.456v-74.752h-26.624v74.752h-15.36v21.504h15.36v11.264q0 16.384 9.216 25.088t24.576 8.704q7.168 0 15.36-2.048v-22.528zM202.752 266.752h-26.624v139.264h26.624v-139.264zM258.048 264.704q-20.48 0-33.792 13.824t-13.312 36.352 13.312 36.352 33.792 13.824 33.792-13.824 13.312-36.352-13.312-36.352-33.792-13.824zM258.048 342.528q-10.24 0-15.36-7.68t-5.12-19.968q0-11.264 5.12-19.456t15.36-8.192 15.36 8.192 5.12 19.456q0 12.288-5.12 19.968t-15.36 7.68zM398.336 301.568l17.408 61.44h25.6l-28.672-96.256h-24.576l-15.36 59.392-16.384-59.392h-24.576l-28.672 96.256h26.624l17.408-61.44 15.36 61.44h20.48zM474.112 231.936h-26.624v131.072h26.624v-8.192q3.072 4.096 9.216 7.168t14.336 3.072q20.48 0 32.256-14.848t11.776-35.328-11.776-35.328-32.256-14.848q-8.192 0-14.336 3.072t-9.216 7.168v-43.008zM474.112 299.52q5.12-11.264 17.408-11.264 11.264 0 16.896 7.68t5.632 18.944-5.632 18.944-16.896 7.68q-12.288 0-17.408-11.264v-30.72zM576.512 266.752h-26.624v139.264h26.624v-139.264zM644.096 266.752v5.12q-8.192-6.144-23.552-6.144-14.336 0-25.088 8.192t-10.752 22.528 10.752 22.528 26.112 8.192q14.336 0 22.528-6.144v7.168q0 6.144-4.096 10.752t-12.288 4.608q-9.216 0-13.312-9.216h-25.6q2.048 13.312 12.8 22.016t27.136 8.704q19.456 0 29.696-9.728t10.24-27.136v-61.44h-24.576zM644.096 300.544q-5.12 8.192-17.408 8.192-7.168 0-12.288-3.072t-5.12-9.216 5.12-8.704 12.288-2.56q12.288 0 17.408 8.192v7.168zM693.248 231.936l14.336 34.816-36.864 96.256h27.648l22.528-63.488 21.504 63.488h26.624l-50.176-131.072h-25.6zM855.040 298.496q-3.072-15.36-13.824-24.576t-29.184-9.216q-20.48 0-33.28 13.824t-12.8 36.352q0 21.504 12.8 35.84t33.28 14.336 31.744-13.312 11.264-34.816v-7.168h-63.488q2.048-23.552 20.48-23.552 15.36 0 18.432 12.288h24.576zM792.576 325.12h36.864q0 8.192-4.608 13.312t-12.8 5.12q-16.384 0-19.456-18.432zM921.6 336.384q-6.144 3.072-13.312 3.072-15.36 0-18.432-13.312v-59.392h-26.624v96.256h26.624v-9.216q7.168 11.264 21.504 11.264 8.192 0 10.24-2.048v-26.624z" />
|
70 |
+
<glyph unicode="" glyph-name="uniE211" d="M326.656 346.624l320.512 320.512q10.24 10.24 24.576 11.264t24.576-8.192q11.264-10.24 11.776-25.088t-10.752-25.088l-299.008-300.032 297.984-297.984q10.24-10.24 11.264-24.064t-8.192-24.064q-11.264-12.288-25.6-12.288-15.36 0-24.576 10.24l-322.56 321.536q-11.264 11.264-11.264 26.624t11.264 26.624z" />
|
71 |
+
<glyph unicode="" glyph-name="uniE212" d="M697.344 346.624q11.264-11.264 11.264-26.624t-11.264-26.624l-322.56-321.536q-9.216-10.24-24.576-10.24t-25.6 12.288q-9.216 10.24-8.192 24.064t11.264 24.064l297.984 297.984-299.008 300.032q-11.264 10.24-10.752 25.088t11.776 25.088q10.24 9.216 24.576 8.192t24.576-11.264l320.512-320.512z" />
|
72 |
+
<glyph unicode="" glyph-name="_73" d="M742.4 320q0-48.128-17.92-89.6t-49.664-73.216-73.728-49.664-89.088-17.92q-48.128 0-89.6 17.92t-73.216 49.664-49.664 73.216-17.92 89.6q0 47.104 17.92 89.088t49.664 73.728 73.216 49.664 89.6 17.92q47.104 0 89.088-17.92t73.728-49.664 49.664-73.728 17.92-89.088z" />
|
73 |
+
<glyph unicode="" glyph-name="_74" d="M451.584 180.736q-9.216 0-16.384 4.096-18.432 10.24-18.432 38.912v192.512q0 27.648 18.432 38.912 18.432 9.216 41.984-3.072l167.936-97.28q23.552-12.288 23.552-34.816 0-20.48-23.552-34.816l-167.936-97.28q-11.264-7.168-25.6-7.168zM451.584 443.904q-5.12 0-8.192-3.072-10.24-4.096-10.24-24.576v-192.512q0-20.48 10.24-24.576 10.24-7.168 26.624 3.072l166.912 96.256q16.384 10.24 16.384 21.504t-16.384 21.504l-166.912 96.256q-11.264 6.144-18.432 6.144zM512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 663.040q-70.656 0-133.12-27.136t-109.056-73.728-73.728-109.056-27.136-133.12 27.136-133.12 73.728-109.056 109.056-73.728 133.12-27.136 133.12 27.136 109.056 73.728 73.728 109.056 27.136 133.12-27.136 133.12-73.728 109.056-109.056 73.728-133.12 27.136z" />
|
74 |
+
<glyph unicode="" glyph-name="_75" d="M512-38.4q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 663.040q-70.656 0-133.12-27.136t-109.056-73.728-73.728-109.056-27.136-133.12 27.136-133.12 73.728-109.056 109.056-73.728 133.12-27.136 133.12 27.136 109.056 73.728 73.728 109.056 27.136 133.12-27.136 133.12-73.728 109.056-109.056 73.728-133.12 27.136zM440.32 176.64q-20.48 0-34.816 14.848t-14.336 35.328v189.44q0 20.48 14.336 34.816t34.816 14.336 35.328-14.336 14.848-34.816v-189.44q0-20.48-14.848-35.328t-35.328-14.848zM440.32 451.072q-14.336 0-24.576-10.24t-10.24-24.576v-189.44q0-14.336 10.24-25.088t24.576-10.752 25.088 10.752 10.752 25.088v189.44q0 14.336-10.752 24.576t-25.088 10.24zM583.68 176.64q-20.48 0-35.328 14.848t-14.848 35.328v189.44q0 20.48 14.848 34.816t35.328 14.336 34.816-14.336 14.336-34.816v-189.44q0-20.48-14.336-35.328t-34.816-14.848zM583.68 451.072q-14.336 0-25.088-10.24t-10.752-24.576v-189.44q0-14.336 10.752-25.088t25.088-10.752 24.576 10.752 10.24 25.088v189.44q0 14.336-10.24 24.576t-24.576 10.24z" />
|
75 |
+
<glyph unicode="" glyph-name="_76" d="M504.832 279.040v-2.048l-28.672-261.12q-1.024-12.288-10.24-20.48t-21.504-8.192h-3.072q-14.336 2.048-22.528 11.776t-7.168 24.064l18.432 168.96-185.344-184.32q-9.216-10.24-22.528-10.24t-22.528 10.24q-10.24 9.216-10.24 22.528t10.24 22.528l184.32 185.344-168.96-18.432q-13.312-1.024-23.552 7.168t-12.288 22.528q-2.048 13.312 6.656 23.552t22.016 11.264l262.144 28.672h7.168q2.048 0 2.56-0.512t2.56-0.512l2.048-1.024q2.048 0 4.096-2.048 1.024 0 2.048-1.024 2.048-1.024 5.12-4.096 2.048-2.048 2.56-3.072t1.536-2.048 1.024-2.048l2.048-4.096q0-1.024 0.512-1.536t0.512-1.536 0.512-1.536 0.512-2.56v-6.144zM808.96 420.352q14.336 1.024 24.064-7.168t11.776-22.528q2.048-13.312-6.656-23.552t-22.016-11.264l-261.12-28.672h-4.096q-13.312 0-22.528 9.216t-9.216 22.528v4.096l28.672 261.12q1.024 13.312 11.264 22.016t23.552 6.656q14.336-2.048 23.040-11.776t6.656-24.064l-18.432-168.96 185.344 185.344q9.216 9.216 22.528 9.216t23.552-9.216q9.216-10.24 9.216-23.552t-9.216-22.528l-185.344-185.344 168.96 18.432z" />
|
76 |
+
<glyph unicode="" glyph-name="uniE301" d="M663.552 52.736l-146.432 252.928-145.408-252.928h291.84zM517.12 400.896l229.376-396.288h-457.728zM870.4 585.216v-492.544h-119.808l-27.648 48.128h99.328v396.288h-620.544v-396.288h110.592l-28.672-48.128h-130.048v492.544h716.8z" />
|
77 |
+
<glyph unicode="" glyph-name="uniE302" d="M844.8 648.704l-33.792-313.344-66.56 7.168 18.432 176.128-192.512-191.488-47.104 47.104 192.512 192.512-176.128-19.456-7.168 67.584zM500.736 256.512l-192.512-191.488 176.128 18.432 7.168-66.56-312.32-33.792 33.792 312.32 66.56-7.168-18.432-176.128 192.512 192.512z" />
|
78 |
+
<glyph unicode="" glyph-name="uniE303" d="M814.080 685.568l-391.168-676.864-212.992 337.92 77.824 47.104 126.976-204.8 316.416 546.816z" />
|
79 |
+
<glyph unicode="" glyph-name="uniE304" d="M791.552 498.176h-166.912v84.992l6.144 4.096q35.84 21.504 35.84 62.464 0 29.696-21.504 50.688t-51.2 20.992-50.688-20.992-20.992-50.688q0-41.984 34.816-62.464l7.168-4.096v-84.992h-196.608v-202.752h-78.848l-4.096 7.168q-9.216 17.408-25.6 26.112t-35.84 8.704q-29.696 0-51.2-20.992t-21.504-50.688 21.504-51.2 51.2-21.504q19.456 0 35.84 9.216t25.6 25.6l4.096 7.168h78.848v-202.752h423.936v175.104h-51.2q-14.336-20.48-35.84-31.232t-46.080-10.752q-41.984 0-71.168 29.184t-29.184 71.168 29.184 71.168 71.168 29.184q24.576 0 46.080-11.264t35.84-30.72h51.2v174.080zM829.44 536.064v-249.856h-109.568l-3.072 4.096-4.096 7.168q-8.192 14.336-22.528 22.528t-31.744 8.192q-25.6 0-44.032-18.432t-18.432-44.032q0-26.624 18.432-44.544t44.032-17.92q35.84 0 54.272 29.696l4.096 7.168 3.072 5.12h109.568v-250.88h-499.712v202.752h-20.48q-15.36-20.48-37.888-31.232t-48.128-10.752q-23.552 0-43.52 8.704t-34.816 23.552-23.552 34.816-8.704 43.52q0 22.528 8.704 42.496t23.552 35.328 34.816 24.064 43.52 8.704q25.6 0 48.128-11.264t37.888-31.744h20.48v202.752h195.584v26.624q-19.456 15.36-30.72 38.4t-11.264 48.64q0 22.528 8.704 42.496t24.064 34.816 35.328 23.552 42.496 8.704 43.008-8.704 35.328-23.552 23.552-34.816 8.704-42.496q0-25.6-10.752-48.64t-31.232-38.4v-26.624h166.912z" />
|
80 |
+
<glyph unicode="" glyph-name="uniE305" d="M143.36 138.752q23.552 0 44.032-9.216t35.84-24.576 24.576-35.84 9.216-44.032h-113.664v113.664zM143.36 253.44q47.104 0 88.576-17.92t72.704-49.152 49.152-72.704 17.92-88.576h-47.104q0 37.888-14.336 70.656t-38.912 57.344-57.856 38.912-70.144 14.336v47.104zM143.36 373.248q71.68 0 135.168-27.648t110.592-74.752 74.752-110.592 27.648-135.168h-47.104q0 62.464-23.552 117.248t-64.512 95.744-95.744 64.512-117.248 23.552v47.104zM860.16 564.736v-503.808h-306.176q-2.048 11.264-3.584 23.552t-3.584 23.552h266.24v409.6h-590.848v-88.064q-22.528 4.096-47.104 6.144v129.024h685.056z" />
|
81 |
+
<glyph unicode="" glyph-name="uniE306" d="M827.392 138.752v349.184l-200.704-175.104zM231.424 112.128h561.152l-198.656 173.056-81.92-71.68-81.92 71.68zM196.608 487.936v-349.184l200.704 174.080zM797.696 518.656h-571.392l285.696-248.832zM870.4 561.664v-492.544h-716.8v492.544h716.8z" />
|
82 |
+
<glyph unicode="" glyph-name="uniE307" d="M234.496-16.896v665.6l575.488-332.8zM266.24 593.408v-555.008l480.256 277.504z" />
|
83 |
+
<glyph unicode="" glyph-name="uniE308" d="M461.824-11.776h-224.256v655.36h224.256v-655.36zM270.336 20.992h158.72v589.824h-158.72v-589.824zM786.432-11.776h-224.256v655.36h224.256v-655.36zM594.944 20.992h158.72v589.824h-158.72v-589.824z" />
|
84 |
+
<glyph unicode="" glyph-name="uniE309" d="M795.648 599.552h-567.296v-568.32h567.296v568.32zM844.8 648.704v-665.6h-665.6v665.6h665.6zM537.6 379.392q-36.864 0-75.776-11.264t-70.656-42.496-51.712-86.528-19.968-143.36h-48.128q0 158.72 69.12 245.248t197.12 86.528h124.928l-136.192 107.52 30.72 38.912 214.016-171.008-214.016-169.984-29.696 37.888 135.168 108.544h-124.928z" />
|
85 |
+
<glyph unicode="" glyph-name="uniE30A" d="M453.632 320h-47.104v77.824h47.104v46.080q0 48.128 22.016 74.752t78.336 26.624h62.464v-77.824h-38.912q-21.504 0-26.624-7.68t-5.12-23.040v-38.912h71.68l-9.216-77.824h-62.464v-224.256h-92.16v224.256zM828.416 631.296h-632.832v-631.808h632.832v631.808zM870.4 674.304v-716.8h-716.8v716.8h716.8z" />
|
86 |
+
<glyph unicode="" glyph-name="uniE30B" d="M315.392 458.24h-177.152v-276.48h177.152l174.080-158.72v593.92zM302.080 494.080l222.208 203.776v-755.712l-222.208 203.776h-199.68v348.16h199.68z" />
|
87 |
+
<glyph unicode="" glyph-name="uniE30C" d="M321.536 167.424q4.096-1.024 8.704-1.024h9.728q28.672 0 53.76 9.216t45.568 25.6q-26.624 0-46.592 15.872t-28.16 39.424q5.12-1.024 15.36-1.024h10.24t10.24 2.048q-27.648 6.144-45.568 27.648t-17.92 51.2v1.024q14.336-8.192 35.84-10.24-16.384 11.264-26.112 28.672t-9.728 37.888q0 22.528 11.264 39.936 29.696-35.84 72.192-58.368t92.672-24.576q-2.048 10.24-2.048 18.432 0 32.768 23.552 56.32t56.32 23.552q35.84 0 58.368-25.6 14.336 2.048 27.136 7.168t24.064 12.288q-9.216-28.672-35.84-44.032 25.6 3.072 47.104 12.288-8.192-11.264-18.432-22.016t-22.528-18.944q1.024-4.096 1.024-11.264 0-39.936-14.848-80.384t-44.032-73.216-71.68-53.248-97.792-20.48q-33.792 0-64.512 9.216t-57.344 26.624zM804.864 588.288h-585.728v-586.752h585.728v586.752zM844.8 628.224v-665.6h-665.6v665.6h665.6z" />
|
88 |
+
<glyph unicode="" glyph-name="uniE30D" d="M795.648 320l125.952-125.952-24.576-25.6-126.976 126.976-125.952-126.976-24.576 25.6 125.952 125.952-125.952 125.952 24.576 25.6 125.952-126.976 126.976 126.976 24.576-25.6zM315.392 458.24h-177.152v-276.48h177.152l174.080-158.72v593.92zM302.080 494.080l222.208 203.776v-755.712l-222.208 203.776h-199.68v348.16h199.68z" />
|
89 |
+
<glyph unicode="" glyph-name="uniE30E" d="M550.912 383.488l48.128 47.104 30.72-24.576-50.176-51.2 34.816-34.816 148.48 149.504-96.256 97.28-149.504-149.504zM472.064 248.32l-49.152-49.152-27.648 27.648 49.152 49.152-34.816 34.816-148.48-149.504 96.256-97.28 149.504 149.504zM551.936 327.168l-51.2-51.2 62.464-62.464-205.824-204.8-152.576 152.576 204.8 204.8 62.464-61.44 51.2 50.176-62.464 62.464 205.824 205.824 152.576-153.6-204.8-204.8z" />
|
90 |
+
<glyph unicode="" glyph-name="uniE30F" d="M555.008 315.904l264.192-264.192-43.008-43.008-264.192 264.192-264.192-264.192-43.008 43.008 264.192 264.192-264.192 264.192 43.008 43.008 264.192-264.192 264.192 264.192 43.008-43.008z" />
|
91 |
+
<glyph unicode="" glyph-name="uniE310" d="M457.728 281.088q-14.336-8.192-24.064-2.56t-9.728 22.016v194.56q0 15.36 9.728 20.992t24.064-2.56l167.936-97.28q14.336-8.192 14.336-18.944t-14.336-18.944l-167.936-97.28zM500.736 660.992q-54.272 0-102.4-20.48t-83.968-56.32-56.32-83.968-20.48-102.4 20.48-102.4 56.32-83.968 83.968-56.832 102.4-20.992q55.296 0 103.424 20.992t83.968 56.832 56.32 83.968 20.48 102.4-20.48 102.4-56.32 83.968-83.968 56.32-103.424 20.48zM500.736 88.576q-63.488 0-119.808 24.064t-98.304 66.048-66.048 98.304-24.064 120.832q0 63.488 24.064 119.808t66.048 98.304 98.304 66.048 119.808 24.064q64.512 0 120.832-24.064t98.304-66.048 66.048-98.304 24.064-119.808q0-64.512-24.064-120.832t-66.048-98.304-98.304-66.048-120.832-24.064zM861.184 0.512q7.168 0 9.216-2.048v-22.528q-6.144 2.048-11.264 2.048-13.312 0-16.384-11.264v-52.224h-23.552v83.968h23.552v-8.192q7.168 10.24 18.432 10.24zM789.504-34.304q0 15.36-15.36 15.36-14.336 0-17.408-15.36h32.768zM774.144 0.512q18.432 0 28.16-11.776t9.728-30.208v-7.168h-55.296q2.048-19.456 18.432-19.456 12.288 0 15.36 10.24h21.504q-2.048-13.312-11.776-21.504t-25.088-8.192q-18.432 0-29.696 12.288t-11.264 31.744 11.264 31.744 28.672 12.288zM737.28-1.536l-44.032-114.688h-22.528l12.288 30.72-32.768 83.968h24.576l19.456-55.296 19.456 55.296h23.552zM626.688-56.832q-3.072 8.192-14.336 8.192-5.12 0-10.24-3.072t-5.12-8.192 5.12-7.68 10.24-2.56q11.264 0 14.336 8.192v5.12zM614.4 0.512q34.816 0 34.816-32.768v-53.248h-22.528v5.12q-4.096-6.144-19.456-6.144-13.312 0-22.528 6.656t-9.216 19.968q0 12.288 9.216 19.456t23.552 7.168q12.288 0 18.432-4.096v6.144q0 12.288-13.312 12.288-9.216 0-12.288-7.168h-21.504q2.048 11.264 11.264 18.944t23.552 7.68zM544.768 36.352h23.552v-121.856h-23.552v121.856zM494.592-67.072q9.216 0 14.336 6.656t5.12 16.896-5.12 16.896-14.336 6.656q-11.264 0-16.384-9.216v-27.648q5.12-10.24 16.384-10.24zM499.712 0.512q17.408 0 27.648-13.312t10.24-30.72-10.24-30.72-27.648-13.312q-7.168 0-12.8 3.072t-8.704 6.144v-37.888h-22.528v114.688h22.528v-7.168q7.168 9.216 21.504 9.216zM428.032-1.536h22.528l-25.6-83.968h-21.504l-13.312 51.2-14.336-51.2h-21.504l-24.576 83.968h22.528l15.36-53.248 13.312 53.248h18.432l13.312-53.248zM289.792-67.072q17.408 0 17.408 23.552 0 11.264-4.608 17.92t-12.8 6.656-13.312-6.656-5.12-17.92q0-23.552 18.432-23.552zM289.792 0.512q18.432 0 29.696-12.288t11.264-31.744-11.264-31.744-29.696-12.288-29.696 12.288-11.264 31.744 11.264 31.744 29.696 12.288zM218.112 36.352h23.552v-121.856h-23.552v121.856zM166.912 8.704q0 14.336 8.192 22.016t21.504 7.68q8.192 0 13.312-3.072v-19.456q-3.072 2.048-8.192 2.048-11.264 0-11.264-11.264v-8.192h17.408v-18.432h-17.408v-65.536h-23.552v65.536h-13.312v18.432h13.312v10.24z" />
|
92 |
+
<glyph unicode="" glyph-name="uniE311" d="M665.6 674.304l51.2-50.176-308.224-308.224 308.224-308.224-51.2-50.176-358.4 358.4z" />
|
93 |
+
<glyph unicode="" glyph-name="uniE312" d="M716.8 315.904l-358.4-358.4-51.2 50.176 308.224 308.224-308.224 308.224 51.2 50.176z" />
|
94 |
+
<glyph unicode="" glyph-name="_100" d="M716.8 111.104h-409.6v409.6h409.6v-409.6z" />
|
95 |
+
<glyph unicode="" glyph-name="_101" d="M418.816 155.136v322.56l279.552-160.768zM434.176 451.072v-268.288l232.448 134.144zM512-42.496q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 657.92q-70.656 0-133.12-27.136t-109.056-73.216-73.728-108.544-27.136-133.12 27.136-133.12 73.728-109.056 109.056-73.728 133.12-27.136 133.12 27.136 109.056 73.728 73.728 109.056 27.136 133.12-27.136 133.12-73.728 108.544-109.056 73.216-133.12 27.136z" />
|
96 |
+
<glyph unicode="" glyph-name="_102" d="M512-42.496q-73.728 0-139.264 28.16t-114.176 76.8-76.8 114.176-28.16 139.264 28.16 139.264 76.8 114.176 114.176 76.8 139.264 28.16 139.264-28.16 114.176-76.8 76.8-114.176 28.16-139.264-28.16-139.264-76.8-114.176-114.176-76.8-139.264-28.16zM512 657.92q-70.656 0-133.12-27.136t-109.056-73.216-73.728-108.544-27.136-133.12 27.136-133.12 73.728-109.056 109.056-73.728 133.12-27.136 133.12 27.136 109.056 73.728 73.728 109.056 27.136 133.12-27.136 133.12-73.728 108.544-109.056 73.216-133.12 27.136zM490.496 171.52h-98.304v287.744h98.304v-287.744zM406.528 185.856h69.632v259.072h-69.632v-259.072zM631.808 171.52h-98.304v287.744h98.304v-287.744zM547.84 185.856h69.632v259.072h-69.632v-259.072z" />
|
97 |
+
<glyph unicode="" glyph-name="_103" d="M496.64 299.52l-32.768-312.32-64.512 7.168 18.432 176.128-187.392-192.512-46.080 48.128 186.368 192.512-171.008-19.456-6.144 66.56zM839.68 604.672l-187.392-191.488 171.008 18.432 7.168-66.56-303.104-33.792 32.768 312.32 64.512-7.168-18.432-176.128 187.392 192.512z" />
|
98 |
+
</font></defs></svg>
|
css/icons/flowplayer.ttf
ADDED
Binary file
|
css/icons/flowplayer.woff
ADDED
Binary file
|
css/icons/flowplayer.woff2
ADDED
Binary file
|
css/icons/fonts/fpicons.eot
ADDED
Binary file
|
css/icons/fonts/fpicons.svg
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>Generated by IcoMoon</metadata>
|
5 |
+
<defs>
|
6 |
+
<font id="fpicons" horiz-adv-x="1024">
|
7 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
+
<missing-glyph horiz-adv-x="1024" />
|
9 |
+
<glyph unicode=" " d="" horiz-adv-x="512" />
|
10 |
+
<glyph unicode="" d="M890.88 112.64l-53.76-53.76c-10.24-10.24-28.16-10.24-38.4 0l-665.6 660.48c-10.24 10.24-10.24 28.16 0 38.4l53.76 53.76c10.24 10.24 28.16 10.24 38.4 0l660.48-660.48c15.36-10.24 15.36-28.16 5.12-38.4zM834.56 814.080l53.76-53.76c10.24-10.24 10.24-28.16 0-38.4l-660.48-665.6c-10.24-10.24-28.16-10.24-38.4 0l-53.76 53.76c-10.24 10.24-10.24 28.16 0 38.4l660.48 665.6c10.24 10.24 28.16 10.24 38.4 0z" />
|
11 |
+
<glyph unicode="" d="M394.24-30.72v430.080c0 12.8 10.24 23.040 23.040 23.040h58.88c12.8 0 23.040-10.24 23.040-23.040v-430.080c0-12.8-10.24-23.040-23.040-23.040h-58.88c-12.8-2.56-23.040 7.68-23.040 23.040zM46.080 422.4h430.080c12.8 0 23.040-10.24 23.040-23.040v-58.88c0-12.8-10.24-23.040-23.040-23.040h-430.080c-12.8 0-23.040 10.24-23.040 23.040v58.88c-2.56 12.8 7.68 23.040 23.040 23.040zM58.88 58.88l304.64 304.64c10.24 10.24 25.6 10.24 33.28 0l40.96-40.96c10.24-10.24 10.24-25.6 0-33.28l-302.080-307.2c-10.24-10.24-25.6-10.24-33.28 0l-40.96 40.96c-10.24 10.24-10.24 25.6-2.56 35.84zM629.76 901.12v-430.080c0-12.8-10.24-23.040-23.040-23.040h-58.88c-12.8 0-23.040 10.24-23.040 23.040v430.080c0 12.8 10.24 23.040 23.040 23.040h58.88c12.8 2.56 23.040-7.68 23.040-23.040zM977.92 448h-430.080c-12.8 0-23.040 10.24-23.040 23.040v58.88c0 12.8 10.24 23.040 23.040 23.040h430.080c12.8 0 23.040-10.24 23.040-23.040v-58.88c2.56-12.8-7.68-23.040-23.040-23.040zM965.12 811.52l-304.64-302.080c-10.24-10.24-25.6-10.24-33.28 0l-40.96 40.96c-10.24 10.24-10.24 25.6 0 33.28l302.080 304.64c10.24 10.24 25.6 10.24 33.28 0l40.96-40.96c10.24-10.24 10.24-25.6 2.56-35.84z" />
|
12 |
+
<glyph unicode="" d="M166.4 437.76v-430.080c0-12.8-10.24-23.040-23.040-23.040h-58.88c-12.8 0-23.040 10.24-23.040 23.040v430.080c0 12.8 10.24 23.040 23.040 23.040h58.88c10.24 0 23.040-10.24 23.040-23.040zM514.56-17.92h-430.080c-12.8 0-23.040 10.24-23.040 23.040v58.88c0 12.8 10.24 23.040 23.040 23.040h430.080c12.8 0 23.040-10.24 23.040-23.040v-58.88c0-12.8-10.24-23.040-23.040-23.040zM499.2 348.16l-304.64-304.64c-10.24-10.24-25.6-10.24-33.28 0l-40.96 40.96c-10.24 10.24-10.24 25.6 0 33.28l304.64 304.64c10.24 10.24 25.6 10.24 33.28 0l40.96-40.96c10.24-10.24 10.24-25.6 0-33.28zM857.6 432.64v430.080c0 12.8 10.24 23.040 23.040 23.040h58.88c12.8 0 23.040-10.24 23.040-23.040v-430.080c0-12.8-10.24-23.040-23.040-23.040h-58.88c-10.24 0-23.040 10.24-23.040 23.040zM509.44 888.32h430.080c12.8 0 23.040-10.24 23.040-23.040v-58.88c0-12.8-10.24-23.040-23.040-23.040h-430.080c-12.8-2.56-23.040 10.24-23.040 23.040v56.32c0 15.36 10.24 25.6 23.040 25.6zM524.8 522.24l304.64 304.64c10.24 10.24 25.6 10.24 33.28 0l40.96-40.96c10.24-10.24 10.24-25.6 0-33.28l-304.64-304.64c-10.24-10.24-25.6-10.24-33.28 0l-40.96 40.96c-10.24 10.24-10.24 25.6 0 33.28z" />
|
13 |
+
<glyph unicode="" d="M509.44 69.12c-12.8 0-25.6 2.56-35.84 12.8l-414.72 304.64c-15.36 10.24-23.040 28.16-23.040 48.64s10.24 35.84 23.040 48.64l417.28 304.64c25.6 20.48 64 12.8 84.48-12.8s12.8-64-12.8-84.48l-353.28-256 350.72-258.56c25.6-20.48 33.28-56.32 12.8-84.48-10.24-12.8-28.16-23.040-48.64-23.040zM770.56 69.12c-17.92 0-35.84 7.68-48.64 23.040-20.48 25.6-12.8 64 12.8 84.48l350.72 258.56-350.72 258.56c-25.6 20.48-33.28 56.32-12.8 84.48 20.48 25.6 56.32 33.28 84.48 12.8l414.72-304.64c15.36-10.24 23.040-28.16 23.040-48.64s-10.24-35.84-23.040-48.64l-417.28-307.2c-10.24-7.68-23.040-12.8-33.28-12.8z" horiz-adv-x="1280" />
|
14 |
+
<glyph unicode="" d="M960 773.12v-66.56c0-10.24-7.68-20.48-20.48-20.48h-855.040c-10.24 0-20.48 7.68-20.48 20.48v66.56c0 10.24 7.68 20.48 20.48 20.48h855.040c10.24-2.56 20.48-10.24 20.48-20.48zM960 468.48v-66.56c0-10.24-7.68-20.48-20.48-20.48h-855.040c-10.24 0-20.48 7.68-20.48 20.48v66.56c0 10.24 7.68 20.48 20.48 20.48h855.040c10.24 0 20.48-10.24 20.48-20.48zM960 166.4v-66.56c0-10.24-7.68-20.48-20.48-20.48h-855.040c-10.24 0-20.48 7.68-20.48 20.48v66.56c0 10.24 7.68 20.48 20.48 20.48h855.040c10.24 0 20.48-10.24 20.48-20.48z" />
|
15 |
+
<glyph unicode="" d="M404.48 258.56h-294.4c-33.28 0-61.44 28.16-61.44 61.44v230.4c0 33.28 28.16 61.44 61.44 61.44h294.4c33.28 0 61.44-28.16 61.44-61.44v-230.4c0-35.84-25.6-61.44-61.44-61.44zM614.4-17.92l-391.68 437.76c-7.68 7.68-7.68 20.48 0 28.16l391.68 440.32c12.8 15.36 38.4 5.12 38.4-15.36v-878.080c0-17.92-23.040-28.16-38.4-12.8zM1223.68 243.2l-46.080-46.080c-7.68-7.68-23.040-7.68-33.28 0l-394.24 396.8c-7.68 7.68-7.68 23.040 0 33.28l46.080 46.080c7.68 7.68 23.040 7.68 33.28 0l396.8-396.8c7.68-10.24 7.68-23.040-2.56-33.28zM1180.16 673.28l46.080-46.080c7.68-7.68 7.68-23.040 0-33.28l-396.8-396.8c-7.68-7.68-23.040-7.68-33.28 0l-46.080 46.080c-7.68 7.68-7.68 23.040 0 33.28l396.8 396.8c10.24 7.68 23.040 7.68 33.28 0z" horiz-adv-x="1280" />
|
16 |
+
<glyph unicode="" d="M540.16 258.56h-294.4c-33.28 0-61.44 28.16-61.44 61.44v230.4c0 33.28 28.16 61.44 61.44 61.44h294.4c33.28 0 61.44-28.16 61.44-61.44v-230.4c0-35.84-25.6-61.44-61.44-61.44zM750.080-17.92l-394.24 437.76c-7.68 7.68-7.68 20.48 0 28.16l394.24 440.32c12.8 15.36 38.4 5.12 38.4-15.36v-878.080c0-17.92-23.040-28.16-38.4-12.8z" />
|
17 |
+
<glyph unicode="" d="M780.8 17.92h-110.080c-17.92 0-33.28 15.36-33.28 33.28v770.56c0 17.92 15.36 33.28 33.28 33.28h110.080c17.92 0 33.28-15.36 33.28-33.28v-770.56c0-20.48-15.36-33.28-33.28-33.28zM353.28 17.92h-110.080c-17.92 0-33.28 15.36-33.28 33.28v770.56c0 17.92 15.36 33.28 33.28 33.28h110.080c17.92 0 33.28-15.36 33.28-33.28v-770.56c-2.56-20.48-17.92-33.28-33.28-33.28z" />
|
18 |
+
<glyph unicode="" d="M120.32 808.96c0 61.44 43.52 87.040 97.28 56.32l647.68-373.76c53.76-30.72 53.76-81.92 0-112.64l-647.68-373.76c-53.76-30.72-97.28-5.12-97.28 56.32v747.52z" />
|
19 |
+
<glyph unicode="" d="M512-59.468c-272.986 0-494.668 221.855-494.668 494.668s221.855 494.668 494.668 494.668c272.812 0 494.668-221.855 494.668-494.668s-221.682-494.668-494.668-494.668z" />
|
20 |
+
<glyph unicode="" d="M512-16.137c-248.72 0-451.336 202.789-451.336 451.336s202.789 451.336 451.336 451.336c248.547 0 451.336-202.789 451.336-451.336s-202.616-451.336-451.336-451.336zM512 849.098c-228.095 0-413.725-185.804-413.725-413.725s185.804-413.725 413.725-413.725c227.921 0 413.725 185.804 413.725 413.725s-185.63 413.725-413.725 413.725z" />
|
21 |
+
<glyph unicode="" d="M402.632 556.527c0 39.171 27.905 55.117 61.357 35.531l210.416-121.154c33.972-19.586 33.972-51.651 0-71.236l-210.242-121.154c-33.972-19.586-61.357-3.64-61.357 35.531l-0.173 242.481z" />
|
22 |
+
<glyph unicode="" d="M1021.44 258.56h-916.48c-28.16 0-51.2 23.040-51.2 51.2v0c0 28.16 23.040 51.2 51.2 51.2h919.040c28.16 0 51.2-23.040 51.2-51.2v0c-2.56-28.16-25.6-51.2-53.76-51.2zM832 7.68h-537.6c-28.16 0-51.2 23.040-51.2 51.2v0c0 28.16 23.040 51.2 51.2 51.2h537.6c28.16 0 51.2-23.040 51.2-51.2v0c0-28.16-23.040-51.2-51.2-51.2zM832 760.32h-537.6c-28.16 0-51.2 23.040-51.2 51.2v0c0 28.16 23.040 51.2 51.2 51.2h537.6c28.16 0 51.2-23.040 51.2-51.2v0c0-28.16-23.040-51.2-51.2-51.2zM1021.44 509.44h-916.48c-28.16 0-51.2 23.040-51.2 51.2v0c0 28.16 23.040 51.2 51.2 51.2h919.040c28.16 0 51.2-23.040 51.2-51.2v0c-2.56-28.16-25.6-51.2-53.76-51.2z" horiz-adv-x="1126" />
|
23 |
+
</font></defs></svg>
|
css/icons/fonts/fpicons.ttf
ADDED
Binary file
|
css/icons/fonts/fpicons.woff
ADDED
Binary file
|
css/icons/icons.css
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'fpicons';
|
3 |
+
src:url('fonts/fpicons.eot?yg5dv7');
|
4 |
+
src:url('fonts/fpicons.eot?#iefixyg5dv7') format('embedded-opentype'),
|
5 |
+
url('fonts/fpicons.woff?yg5dv7') format('woff'),
|
6 |
+
url('fonts/fpicons.ttf?yg5dv7') format('truetype'),
|
7 |
+
url('fonts/fpicons.svg?yg5dv7#fpicons') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
+
|
12 |
+
[class^="fp-i-"], [class*=" fp-i-"] {
|
13 |
+
font-family: 'fpicons';
|
14 |
+
speak: none;
|
15 |
+
font-style: normal;
|
16 |
+
font-weight: normal;
|
17 |
+
font-variant: normal;
|
18 |
+
text-transform: none;
|
19 |
+
line-height: 1;
|
20 |
+
|
21 |
+
/* Better Font Rendering =========== */
|
22 |
+
-webkit-font-smoothing: antialiased;
|
23 |
+
-moz-osx-font-smoothing: grayscale;
|
24 |
+
}
|
css/img/loading.gif
CHANGED
Binary file
|
css/img/no-play-white.svg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3 |
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 640 640" width="128" height="128"><defs><path d="M619.54 319.18C619.54 484.05 485.69 617.91 320.82 617.91C155.95 617.91 22.09 484.05 22.09 319.18C22.09 154.31 155.95 20.46 320.82 20.46C485.69 20.46 619.54 154.31 619.54 319.18Z" id="a1kyPCZmWY"></path><path d="M90.2 520.29L520.29 90.2L550.62 120.53L120.53 550.62L90.2 520.29Z" id="a1eG6Iy9mS"></path></defs><g><g><g><use xlink:href="#a1kyPCZmWY" opacity="1" fill="#1e89ad" fill-opacity="0"></use><g><use xlink:href="#a1kyPCZmWY" opacity="1" fill-opacity="0" stroke="#ffffff" stroke-width="36" stroke-opacity="1"></use></g></g><g><use xlink:href="#a1eG6Iy9mS" opacity="1" fill="#ffffff" fill-opacity="0.99"></use></g></g></g></svg>
|
css/shortcode-editor.css
CHANGED
@@ -104,3 +104,44 @@
|
|
104 |
|
105 |
.fv-player-tabs th { width: 21%; text-align: right; }
|
106 |
.fv-player-tabs .fv-player-tab-playlist th { text-align: left; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
.fv-player-tabs th { width: 21%; text-align: right; }
|
106 |
.fv-player-tabs .fv-player-tab-playlist th { text-align: left; }
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
/* moved in from main plugin css */
|
111 |
+
.add_media span.wp-media-buttons-icon {
|
112 |
+
background: url("img/media-button.png") no-repeat scroll left top;
|
113 |
+
display: inline-block;
|
114 |
+
height: 16px;
|
115 |
+
margin: 0 2px;
|
116 |
+
vertical-align: text-top;
|
117 |
+
width: 16px;
|
118 |
+
}
|
119 |
+
#cboxWrapper a {
|
120 |
+
text-decoration: none;
|
121 |
+
}
|
122 |
+
a #add-format, a #add-rtmp {
|
123 |
+
background: #333;
|
124 |
+
border-radius: 2px;
|
125 |
+
color: #fff;
|
126 |
+
display: inline-block;
|
127 |
+
font-size: 16px;
|
128 |
+
font-weight: normal;
|
129 |
+
height: 18px;
|
130 |
+
line-height: 1rem;
|
131 |
+
margin: 0 5px 0 0;
|
132 |
+
text-align: center;
|
133 |
+
width: 18px;
|
134 |
+
padding: 0;
|
135 |
+
text-decoration: none;
|
136 |
+
}
|
137 |
+
#fv-wordpress-flowplayer-popup table {
|
138 |
+
width: 100%;
|
139 |
+
}
|
140 |
+
#fv-wordpress-flowplayer-popup table th {
|
141 |
+
text-align: right;
|
142 |
+
width: 18%;
|
143 |
+
padding: 4px 2px;
|
144 |
+
}
|
145 |
+
#fv-wordpress-flowplayer-popup table td {
|
146 |
+
padding: 4px 2px;
|
147 |
+
}
|
flowplayer-beta/embed.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function n(e,t,r){function o(u,c){if(!t[u]){if(!e[u]){var f="function"==typeof require&&require;if(!c&&f)return f(u,!0);if(i)return i(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var a=t[u]={exports:{}};e[u][0].call(a.exports,function(n){var t=e[u][1][n];return o(t?t:n)},a,a.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e,t){function r(n,e){"use strict";var t=n.common.createElement("div");t.setAttribute("data-origin",e.e.href),e.e.parentNode.replaceChild(t,e.e),e.c.e=1,e.c.swf=e.c.swf||p,e.c.swfHls=e.c.swfHls||m,n(t,e.c)}function o(n){"use strict";return"function"==typeof window.requirejs?n():void a("https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.16/require.min.js",n)}function i(n,e){"use strict";o(function(){requirejs([n],e)})}function u(n){"use strict";var e=n.common.createElement("div",{className:"flowplayer"});return e.style.display="none",document.body.appendChild(e),e}function c(n){"use strict";var e=u(n),t=0===window.getComputedStyle(e).getPropertyValue("counter-increment").indexOf("flowplayer");return n.common.removeNode(e),t}function f(n,e){"use strict";return c(n)?e(n):(document.head.appendChild(n.common.createElement("link",{rel:"stylesheet",href:h})),void e(n))}var s=window._fpes,a=n("scriptjs"),l="//releases.flowplayer.org/7.2.4/commercial",d=l+"/flowplayer.min.js",p=l+"/flowplayer.swf",m=l+"/flowplayerhls.swf",h=l+"/skin/functional.css";s.forEach(function(n){"use strict";i(n.l||d,function(e){f(e,function(e){r(e,n)})})})},{scriptjs:2}],2:[function(n,e,t){!function(n,t){"undefined"!=typeof e&&e.exports?e.exports=t():"function"==typeof define&&define.amd?define(t):this[n]=t()}("$script",function(){function n(n,e){for(var t=0,r=n.length;r>t;++t)if(!e(n[t]))return f;return 1}function e(e,t){n(e,function(n){return!t(n)})}function t(i,u,c){function f(n){return n.call?n():d[n]}function a(){if(!--w){d[y]=1,v&&v();for(var t in m)n(t.split("|"),f)&&!e(m[t],f)&&(m[t]=[])}}i=i[s]?i:[i];var l=u&&u.call,v=l?u:c,y=l?i.join(""):u,w=i.length;return setTimeout(function(){e(i,function n(e,t){return null===e?a():(t||/^https?:\/\//.test(e)||!o||(e=-1===e.indexOf(".js")?o+e+".js":o+e),h[e]?(y&&(p[y]=1),2==h[e]?a():setTimeout(function(){n(e,!0)},0)):(h[e]=1,y&&(p[y]=1),void r(e,a)))})},0),t}function r(n,e){var t,r=u.createElement("script");r.onload=r.onerror=r[l]=function(){r[a]&&!/^c|loade/.test(r[a])||t||(r.onload=r[l]=null,t=1,h[n]=2,e())},r.async=1,r.src=i?n+(-1===n.indexOf("?")?"?":"&")+i:n,c.insertBefore(r,c.lastChild)}var o,i,u=document,c=u.getElementsByTagName("head")[0],f=!1,s="push",a="readyState",l="onreadystatechange",d={},p={},m={},h={};return t.get=r,t.order=function(n,e,r){!function o(i){i=n.shift(),n.length?t(i,o):t(i,e,r)}()},t.path=function(n){o=n},t.urlArgs=function(n){i=n},t.ready=function(r,o,i){r=r[s]?r:[r];var u=[];return!e(r,function(n){d[n]||u[s](n)})&&n(r,function(n){return d[n]})?o():!function(n){m[n]=m[n]||[],m[n][s](o),i&&i(u)}(r.join("|")),t},t.done=function(n){t([null],n)},t})},{}]},{},[1]);
|
flowplayer-beta/flowplayer.dashjs.min.js
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
|
3 |
+
MPEG-DASH engine plugin for Flowplayer HTML5
|
4 |
+
|
5 |
+
Copyright (c) 2015-2016, Flowplayer Oy
|
6 |
+
|
7 |
+
Released under the MIT License:
|
8 |
+
http://www.opensource.org/licenses/mit-license.php
|
9 |
+
|
10 |
+
Includes hls.js
|
11 |
+
Copyright (c) 2015 Dailymotion (http://www.dailymotion.com)
|
12 |
+
https://github.com/dailymotion/hls.js/blob/master/LICENSE
|
13 |
+
|
14 |
+
Includes es5.js
|
15 |
+
https://github.com/inexorabletash/polyfill/blob/master/es5.js
|
16 |
+
for compatibility with legacy browsers
|
17 |
+
|
18 |
+
Requires Flowplayer HTML5 version 6.x
|
19 |
+
v1.0.0-8-g70e6eb8
|
20 |
+
|
21 |
+
*/
|
22 |
+
/*@cc_on @*/
|
23 |
+
/*@
|
24 |
+
@if (@_jscript_version > 10)
|
25 |
+
@*/
|
26 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(188)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,r){var i=o(r);!i[e]&&t&&(i[e]={instance:t,override:n})}function t(e,t){for(var n in l){var r=l[n];if(r.context===e&&r.name===t)return r.instance}return null}function n(e,t,n){for(var r in l){var i=l[r];if(i.context===e&&i.name===t)return void(l[r].instance=n)}l.push({name:t,context:e,instance:n})}function r(e){return function(t){return void 0===t&&(t={}),{create:function(){return a(e.__dashjs_factory_name,e.apply({context:t},arguments),t,arguments)}}}}function i(e){return function(n){var r=void 0;return void 0===n&&(n={}),{getInstance:function(){return r||(r=t(n,e.__dashjs_factory_name)),r||(r=a(e.__dashjs_factory_name,e.apply({context:n},arguments),n,arguments),l.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}}}function a(e,t,n,r){var i=o(n),a=i[e];if(a){var u=a.instance;if(!a.override)return u.apply({context:n,factory:s},r);u=u.apply({context:n,factory:s,parent:t},r);for(var l in u)t.hasOwnProperty(l)&&(t[l]=u[l])}return t}function o(e){var t=void 0;return u.forEach(function(n){n===e&&(t=n)}),t||(t=u.push(e)),t}var s=void 0,u=[],l=[];return s={extend:e,getSingletonInstance:t,setSingletonInstance:n,getSingletonFactory:i,getClassFactory:r}}();t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(75),l=r(u),f=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return a(t,e),t}(l["default"]),d=new f;t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t,n){var i=arguments.length<=3||void 0===arguments[3]?s:arguments[3];if(!e)throw new Error("event type cannot be null or undefined");if(!t||"function"!=typeof t)throw new Error("listener must be a function: "+t);if(!(r(e,t,n)>=0)){a[e]=a[e]||[];var o={callback:t,scope:n,priority:i},u=a[e].some(function(t,n){if(i>t.priority)return a[e].splice(n,0,o),!0});u||a[e].push(o)}}function t(e,t,n){if(e&&t&&a[e]){var i=r(e,t,n);i<0||a[e].splice(i,1)}}function n(e,t){if(e&&a[e]){if(t=t||{},t.hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");t.type=e,a[e].forEach(function(e){return e.callback.call(e.scope,t)})}}function r(e,t,n){var r=-1;return a[e]?(a[e].some(function(e,i){if(e.callback===t&&(!n||n===e.scope))return r=i,!0}),r):r}function i(){a={}}var a={},o={on:e,off:t,trigger:n,reset:i};return o}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=0,u=5e3;i.__dashjs_factory_name="EventBus";var l=o["default"].getSingletonFactory(i);l.EVENT_PRIORITY_LOW=s,l.EVENT_PRIORITY_HIGH=u,t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){f=!0,d=!0,c=(new Date).getTime()}function t(e){d=e}function n(e){f=e}function r(){return f}function i(){var e="",t=null;d&&(t=(new Date).getTime(),e+="["+(t-c)+"]"),e.length>0&&(e+=" "),Array.apply(null,arguments).forEach(function(t){e+=t+" "}),f&&console.log(e),s.trigger(u["default"].LOG,{message:e})}var a=this.context,s=(0,o["default"])(a).getInstance(),l=void 0,f=void 0,d=void 0,c=void 0;return l={log:i,setLogTimestampVisible:t,setLogToBrowserConsole:n,getLogToBrowserConsole:r},e(),l}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="Debug",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){function e(){var e,t;Re=[],Ie=!1,Se=!0,be=!0,He=!1,Ye=!1,Oe={enabled:!0,ttl:d},Pe={enabled:!0,ttl:c},Ae=f,Me=void 0,Ce=h,De=v,we=NaN,Ne=y,Le=E,xe=T,Fe=S,Ue=g,Be=p,Ke=D,qe=O,e={},i(e,u.HTTPRequest.MPD_TYPE,A),i(e,u.HTTPRequest.XLINK_EXPANSION_TYPE,b),i(e,u.HTTPRequest.MEDIA_SEGMENT_TYPE,I),i(e,u.HTTPRequest.INIT_SEGMENT_TYPE,I),i(e,u.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,I),i(e,u.HTTPRequest.INDEX_SEGMENT_TYPE,I),i(e,u.HTTPRequest.OTHER_TYPE,I),ke=e,t={},i(t,u.HTTPRequest.MPD_TYPE,M),i(t,u.HTTPRequest.XLINK_EXPANSION_TYPE,C),i(t,u.HTTPRequest.MEDIA_SEGMENT_TYPE,R),i(t,u.HTTPRequest.INIT_SEGMENT_TYPE,R),i(t,u.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,R),i(t,u.HTTPRequest.INDEX_SEGMENT_TYPE,R),i(t,u.HTTPRequest.OTHER_TYPE,R),je=t}function t(e){He=e}function n(){return He}function r(e){Ue=e}function a(){return Ue}function o(e){Be=e}function s(){return Be}function l(e){we=e}function P(){return isNaN(we)?Ye?_:m:we}function w(e){Ne=e}function N(){return Ne}function L(e){Le=e}function x(){return Le}function F(e){xe=e}function U(){return xe}function B(e){Fe=e}function k(){return Fe}function j(e){Ce=e}function K(){return Ce}function H(e,t){Oe.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(Oe.ttl=t)}function q(){return Oe}function Y(e,t){Pe.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(Pe.ttl=t)}function G(){return Pe}function V(e){De=e}function z(){return De}function W(e){ke[u.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function Q(e,t){ke[e]=t}function X(){return ke[u.HTTPRequest.MEDIA_SEGMENT_TYPE]}function Z(e){return ke[e]}function J(e){je[u.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function $(e,t){je[e]=t}function ee(){return je[u.HTTPRequest.MEDIA_SEGMENT_TYPE]}function te(e){return je[e]}function ne(e){Ke=e}function re(){return Ke}function ie(e){be=e}function ae(){return be}function oe(e){Ae=e}function se(e){Me=e}function ue(){return Ae}function le(){return Me}function fe(e){Se=e}function de(){return Se}function ce(e){Ie=e}function ge(){return Ie}function pe(e){Re=e}function he(){return Re}function ve(e){qe=!!e}function me(){return qe}function _e(){return Ye}function ye(e){Ye=e}function Ee(){}var Te=void 0,Se=void 0,Ie=void 0,Re=void 0,Ae=void 0,Me=void 0,be=void 0,Ce=void 0,De=void 0,Oe=void 0,Pe=void 0,we=void 0,Ne=void 0,Le=void 0,xe=void 0,Fe=void 0,Ue=void 0,Be=void 0,ke=void 0,je=void 0,Ke=void 0,He=void 0,qe=void 0,Ye=void 0;return Te={setBufferOccupancyABREnabled:t,getBufferOccupancyABREnabled:n,setBandwidthSafetyFactor:r,getBandwidthSafetyFactor:a,setAbandonLoadTimeout:o,getAbandonLoadTimeout:s,setLastBitrateCachingInfo:H,getLastBitrateCachingInfo:q,setLastMediaSettingsCachingInfo:Y,getLastMediaSettingsCachingInfo:G,setStableBufferTime:l,getStableBufferTime:P,setBufferTimeAtTopQuality:w,getBufferTimeAtTopQuality:N,setBufferTimeAtTopQualityLongForm:L,getBufferTimeAtTopQualityLongForm:x,setLongFormContentDurationThreshold:F,getLongFormContentDurationThreshold:U,setRichBufferThreshold:B,getRichBufferThreshold:k,setBufferToKeep:j,getBufferToKeep:K,setBufferPruningInterval:V,getBufferPruningInterval:z,setFragmentRetryAttempts:W,getFragmentRetryAttempts:X,setRetryAttemptsForType:Q,getRetryAttemptsForType:Z,setFragmentRetryInterval:J,getFragmentRetryInterval:ee,setRetryIntervalForType:$,getRetryIntervalForType:te,setWallclockTimeUpdateInterval:ne,getWallclockTimeUpdateInterval:re,setScheduleWhilePaused:ie,getScheduleWhilePaused:ae,getUseSuggestedPresentationDelay:ge,setUseSuggestedPresentationDelay:ce,setLiveDelayFragmentCount:oe,getLiveDelayFragmentCount:ue,getLiveDelay:le,setLiveDelay:se,setUseManifestDateHeaderTimeSource:fe,getUseManifestDateHeaderTimeSource:de,setUTCTimingSources:pe,getUTCTimingSources:he,setXHRWithCredentials:ve,getXHRWithCredentials:me,setFastSwitchEnabled:ye,getFastSwitchEnabled:_e,reset:Ee},e(),Te}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),s=r(o),u=n(7),l={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso"},f=4,d=36e4,c=36e4,g=.9,p=1e4,h=30,v=30,m=12,_=20,y=30,E=60,T=600,S=20,I=3,R=1e3,A=3,M=500,b=1,C=500,D=50,O=!1;a.__dashjs_factory_name="MediaPlayerModel";var P=s["default"].getSingletonFactory(a);P.DEFAULT_UTC_TIMING_SOURCE=l,t["default"]=P,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t,r){n(this,i),this.code=e||null,this.message=t||null,this.data=r||null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function a(){n(this,a),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null},i=function o(){n(this,o),this.s=null,this.d=null,this.b=[]};r.MPD_TYPE="MPD",r.XLINK_EXPANSION_TYPE="XLinkExpansion",r.INIT_SEGMENT_TYPE="InitializationSegment",r.INDEX_SEGMENT_TYPE="IndexSegment",r.MEDIA_SEGMENT_TYPE="MediaSegment",r.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",r.OTHER_TYPE="other",t.HTTPRequest=r,t.HTTPRequestTrace=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){var r=void 0===e?s:e,i=void 0===t?u:t,a=void 0===n?null:n,o={value:r,priority:i,reason:a};return o}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=999,u=.5,l=1,f=0;i.__dashjs_factory_name="SwitchRequest";var d=o["default"].getClassFactory(i);d.NO_CHANGE=s,d.DEFAULT=u,d.STRONG=l,d.WEAK=f,t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){ce=0,ge=NaN,pe=null,me=null,ye=!1,he={},_e=(0,f["default"])($).getInstance()}function t(e){ve=e,re=de.getElement(),Z(),me=ve.manifestInfo.isDynamic,ge=ve.start,te.on(p["default"].DATA_UPDATE_COMPLETED,L,this),te.on(p["default"].LIVE_EDGE_SEARCH_COMPLETED,x,this),te.on(p["default"].BYTES_APPENDED,Q,this),te.on(p["default"].BUFFER_LEVEL_STATE_CHANGED,X,this),te.on(p["default"].PERIOD_SWITCH_STARTED,n,this),ye&&(ye=!1,l())}function n(e){e.fromStreamInfo&&he[e.fromStreamInfo.id]&&delete he[e.fromStreamInfo.id]}function r(){return C(!0)+ve.duration-m()}function i(){return m()>0}function a(){return ve.id}function s(){return ve.duration}function l(){if(re){re.autoplay=!0;var e=re.play();e&&"undefined"!=typeof Promise&&e instanceof Promise&&e["catch"](function(e){"NotAllowedError"===e.name&&te.trigger(p["default"].PLAYBACK_NOT_ALLOWED),ee("Caught pending play exception - continuing ("+e+")")})}else ye=!0}function d(){if(re)return re.paused}function g(){re&&(re.pause(),re.autoplay=!1)}function h(){if(re)return re.seeking}function v(e){de&&(ee("Requesting seek to time: "+e),de.setCurrentTime(e))}function m(){if(re)return re.currentTime}function y(){if(re)return re.playbackRate}function E(){if(re)return re.played}function T(){if(re)return re.ended}function S(){return me}function I(e){ge=e}function R(){return ge}function A(e,t){var n=le.getMpd(ue.getValue()),r=void 0,i=10;r=_e.getUseSuggestedPresentationDelay()&&n.hasOwnProperty("suggestedPresentationDelay")?n.suggestedPresentationDelay:_e.getLiveDelay()?_e.getLiveDelay():isNaN(e)?2*ve.manifestInfo.minBufferTime:e*_e.getLiveDelayFragmentCount();var a=Math.max(t-i,t/2);return Math.min(r,a)}function M(){de&&re&&(te.off(p["default"].DATA_UPDATE_COMPLETED,L,this),te.off(p["default"].BUFFER_LEVEL_STATE_CHANGED,X,this),te.off(p["default"].LIVE_EDGE_SEARCH_COMPLETED,x,this),te.off(p["default"].BYTES_APPENDED,Q,this),P(),J()),de=null,ve=null,re=null,me=null,e()}function b(e){e&&(e.streamController&&(ie=e.streamController),e.timelineConverter&&(ae=e.timelineConverter),e.metricsModel&&(oe=e.metricsModel),e.dashMetrics&&(se=e.dashMetrics),e.manifestModel&&(ue=e.manifestModel),e.dashManifestModel&&(le=e.dashManifestModel),e.adapter&&(fe=e.adapter),e.videoModel&&(de=e.videoModel))}function C(e){var t=void 0,n=(0,u["default"])($).getInstance().getURIFragmentData(),r=parseInt(n.s,10),i=parseInt(n.t,10),a=NaN;if(e||(a=isNaN(r)?i:r),me)!isNaN(a)&&a>1262304e3&&(t=a-ve.manifestInfo.availableFrom.getTime()/1e3,(t>ge||t<ge-ve.manifestInfo.DVRWindowSize)&&(t=null)),t=t||ge;else if(!isNaN(a)&&a<Math.max(ve.manifestInfo.duration,ve.duration)&&a>=0)t=a;else{var o=he[ve.id];void 0===o&&(o=ie.getActiveStreamCommonEarliestTime()),t=Math.max(o,ve.start)}return t}function D(e){var t,n=oe.getReadOnlyMetricsFor("video")||oe.getReadOnlyMetricsFor("audio"),r=se.getCurrentDVRInfo(n),i=r?r.range:null;return i?e>=i.start&&e<=i.end?e:t=Math.max(i.end-2*ve.manifestInfo.minBufferTime,i.start):NaN}function O(){if(null===pe){var e=function(){W()};pe=setInterval(e,_e.getWallclockTimeUpdateInterval())}}function P(){clearInterval(pe),pe=null}function w(){var e=C(!1);e>0&&(v(e),ee("Starting playback at offset: "+e))}function N(){if(!d()&&me&&0!==re.readyState){var e=m(),t=D(e),n=!isNaN(t)&&t!==e;n&&v(t)}}function L(e){if(!e.error){var t=fe.convertDataToTrack(ue.getValue(),e.currentRepresentation),n=t.mediaInfo.streamInfo;ve.id===n.id&&(ve=n,N())}}function x(e){e.error||0===re.readyState||w()}function F(){te.trigger(p["default"].CAN_PLAY)}function U(){ee("Native video element event: play"),N(),O(),te.trigger(p["default"].PLAYBACK_STARTED,{startTime:m()})}function B(){ee("Native video element event: playing"),te.trigger(p["default"].PLAYBACK_PLAYING,{playingTime:m()})}function k(){ee("Native video element event: pause"),te.trigger(p["default"].PLAYBACK_PAUSED,{ended:T()})}function j(){var e=m();ee("Seeking to: "+e),O(),te.trigger(p["default"].PLAYBACK_SEEKING,{seekTime:e})}function K(){ee("Native video element event: seeked"),te.trigger(p["default"].PLAYBACK_SEEKED)}function H(){var e=m();e!==ce&&(ce=e,te.trigger(p["default"].PLAYBACK_TIME_UPDATED,{timeToEnd:r(),time:e}))}function q(){te.trigger(p["default"].PLAYBACK_PROGRESS)}function Y(){var e=y();ee("Native video element event: ratechange: ",e),te.trigger(p["default"].PLAYBACK_RATE_CHANGED,{playbackRate:e})}function G(){ee("Native video element event: loadedmetadata"),(!me&&ve.isFirst||ae.isTimeSyncCompleted())&&w(),te.trigger(p["default"].PLAYBACK_METADATA_LOADED),O()}function V(){ee("Native video element event: ended"),g(),P(),te.trigger(p["default"].PLAYBACK_ENDED)}function z(e){var t=e.target||e.srcElement;te.trigger(p["default"].PLAYBACK_ERROR,{error:t.error})}function W(){te.trigger(p["default"].WALLCLOCK_TIME_UPDATED,{isDynamic:me,time:new Date})}function Q(e){var t=e.bufferedRanges;if(t&&t.length){var n=Math.max(t.start(0),ve.start),r=void 0===he[ve.id]?n:Math.max(he[ve.id],n);r!==he[ve.id]&&(!me&&C(!0)<r&&m()<r&&v(r),he[ve.id]=r)}}function X(e){e.streamInfo.id===ve.id&&de.setStallState(e.mediaType,e.state===o["default"].BUFFER_EMPTY)}function Z(){re.addEventListener("canplay",F),re.addEventListener("play",U),re.addEventListener("playing",B),re.addEventListener("pause",k),re.addEventListener("error",z),re.addEventListener("seeking",j),re.addEventListener("seeked",K),re.addEventListener("timeupdate",H),re.addEventListener("progress",q),re.addEventListener("ratechange",Y),re.addEventListener("loadedmetadata",G),re.addEventListener("ended",V)}function J(){re.removeEventListener("canplay",F),re.removeEventListener("play",U),re.removeEventListener("playing",B),re.removeEventListener("pause",k),re.removeEventListener("error",z),re.removeEventListener("seeking",j),re.removeEventListener("seeked",K),re.removeEventListener("timeupdate",H),re.removeEventListener("progress",q),re.removeEventListener("ratechange",Y),re.removeEventListener("loadedmetadata",G),re.removeEventListener("ended",V)}var $=this.context,ee=(0,_["default"])($).getInstance().log,te=(0,c["default"])($).getInstance(),ne=void 0,re=void 0,ie=void 0,ae=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,fe=void 0,de=void 0,ce=void 0,ge=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,_e=void 0,ye=void 0;return ne={initialize:t,setConfig:b,getStreamStartTime:C,getTimeToStreamEnd:r,isPlaybackStarted:i,getStreamId:a,getStreamDuration:s,getTime:m,getPlaybackRate:y,getPlayedRanges:E,getEnded:T,getIsDynamic:S,setLiveStartTime:I,getLiveStartTime:R,computeLiveDelay:A,play:l,isPaused:d,pause:g,isSeeking:h,seek:v,reset:M},e(),ne}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=r(a),s=n(40),u=r(s),l=n(5),f=r(l),d=n(3),c=r(d),g=n(2),p=r(g),h=n(1),v=r(h),m=n(4),_=r(m);i.__dashjs_factory_name="PlaybackController",t["default"]=v["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){ue={video:!0,audio:!0},le={},fe={},de={},ce={},ge={},pe={},ve={},he={},_e=!1,ye=!1,Re=(0,d["default"])(ne).getInstance(),Ie=(0,h["default"])(ne).getInstance(),Ee=(0,A["default"])(ne).getInstance(),Te=(0,b["default"])(ne).getInstance(),Se=(0,D["default"])(ne).getInstance()}function t(e,t){he[e]=t,ve[e]=ve[e]||{},ve[e].state=P,re.on(T["default"].LOADING_PROGRESS,te,this)}function n(e){e&&(e.abrRulesCollection&&(ae=e.abrRulesCollection),e.rulesController&&(oe=e.rulesController),e.streamController&&(se=e.streamController))}function r(e,t){var n;return le[t]=le[t]||{},le[t].hasOwnProperty(e)||(le[t][e]=0),n=J(le[t][e],e),n=$(n,e,le[t][e]),n=ee(n,e)}function i(e){var t=Re.getSavedBitrateSettings(e);if(!ce.hasOwnProperty(e))if(ge.hasOwnProperty(e)){var n=Ee.getValue(),r=Te.getAdaptationForType(n,0,e).Representation;if(Array.isArray(r)){var i=Math.max(Math.round(r.length*ge[e])-1,0);ce[e]=r[i].bandwidth}else ce[e]=0}else isNaN(t)?ce[e]="video"===e?w:N:ce[e]=t;return ce[e]}function o(e,t){ce[e]=t}function u(e){return ge.hasOwnProperty(e)?ge[e]:null}function f(e,t){ge[e]=t}function c(e){return ce.hasOwnProperty("max")&&ce.max.hasOwnProperty(e)?ce.max[e]:NaN}function p(e,t){ce.max=ce.max||{},ce.max[e]=t}function v(e){return ge.hasOwnProperty("max")&&ge.max.hasOwnProperty(e)?ge.max[e]:1}function _(e,t){ge.max=ge.max||{},ge.max[e]=t}function E(e){return ue[e]}function S(e,t){ue[e]=t}function I(){return _e}function R(e){_e=e}function M(){return ye}function C(e){ye=e}function x(e,t){var n=e.getType(),i=e.getStreamInfo(),a=i.id,o=function(e){var o=r(n,a),s=e.value;s<0&&(s=0),s>o&&(s=o);var u=z(n,i);s!==u&&(ve[n].state===P||s>u)&&(X(n,a,e.confidence),U(n,i,u,s,e.reason)),t&&t()};if(E(n)){var u=ae.getRules(g["default"].QUALITY_SWITCH_RULES);oe.applyRules(u,e,o,z(n,i),function(e,t){return e=e===s["default"].NO_CHANGE?0:e,Math.max(e,t)})}else t&&t()}function F(e,t,n,i){var a=t.id,o=z(e,t),s=null!==n&&!isNaN(n)&&n%1===0;if(!s)throw new Error("argument is not an integer");n!==o&&n>=0&&n<=r(e,a)&&U(e,t,o,n,i)}function U(e,t,n,r,i){W(e,t.id,r),re.trigger(T["default"].QUALITY_CHANGE_REQUESTED,{mediaType:e,streamInfo:t,oldQuality:n,newQuality:r,reason:i})}function B(e,t){ve[e].state=t}function k(e){return ve[e].state}function j(e,t){var n=K(e);if(!n||0===n.length)return L;for(var r=n.length-1;r>=0;r--){var i=n[r];if(1e3*t>=i.bitrate)return r}return 0}function K(e){if(!e||!e.bitrateList)return null;for(var t,n=e.bitrateList,r=e.type,i=[],a=0,o=n.length;a<o;a++)t=new l["default"],t.mediaType=r,t.qualityIndex=a,t.bitrate=n[a].bandwidth,t.width=n[a].width,t.height=n[a].height,i.push(t);return i}function H(e,t){pe[e]=t}function q(e){return pe[e]}function Y(e){var t=e.type,n=e.streamInfo.id,r=e.representationCount-1;return Z(t,n,r),r}function G(e){var t,n=e.id,i=z("audio",e),a=z("video",e);return t=i===r("audio",n)&&a===r("video",n)}function V(){re.off(T["default"].LOADING_PROGRESS,te,this),clearTimeout(me),me=null,e()}function z(e,t){var n,r=t.id;return fe[r]=fe[r]||{},fe[r].hasOwnProperty(e)||(fe[r][e]=L),n=fe[r][e]}function W(e,t,n){fe[t]=fe[t]||{},fe[t][e]=n}function Q(e,t){var n;return de[t]=de[t]||{},de[t].hasOwnProperty(e)||(de[t][e]=0),n=de[t][e]}function X(e,t,n){de[t]=de[t]||{},de[t][e]=n}function Z(e,t,n){le[t]=le[t]||{},le[t][e]=n}function J(e,t){var n=c(t);if(isNaN(n)||!he[t])return e;var r=j(he[t].getMediaInfo(),n);return Math.min(e,r)}function $(e,t,n){var r=v(t);return isNaN(r)||r>=1||r<0?e:Math.min(e,Math.round(n*r))}function ee(e,t){if("video"!==t||!_e||!he[t])return e;var n=ye&&window.hasOwnProperty("devicePixelRatio"),r=n?window.devicePixelRatio:1,i=Se.getElement(),a=i.clientWidth*r,o=i.clientHeight*r,s=Ee.getValue(),u=Te.getAdaptationForType(s,0,t).Representation,l=e;if(a>0&&o>0){for(;l>0&&u[l]&&a<u[l].width&&a-u[l-1].width<u[l].width-a;)l-=1;u.length-2>=l&&u[l].width===u[l+1].width&&(l=Math.min(e,l+1))}return l}function te(e){var t=e.request.mediaType;if(E(t)){var n=function(){var n=ae.getRules(g["default"].ABANDON_FRAGMENT_RULES),r=he[t].getScheduleController();if(!r)return{v:void 0};var i=function(n){if(n.confidence===s["default"].STRONG&&n.value<z(t,se.getActiveStreamInfo())){var i=r.getFragmentModel(),a=i.getRequests({state:m["default"].FRAGMENT_MODEL_LOADING,index:e.request.index})[0];a&&(i.abortRequests(),B(t,O),F(t,se.getActiveStreamInfo(),n.value,n.reason),re.trigger(T["default"].FRAGMENT_LOADING_ABANDONED,{streamProcessor:he[t],request:a,mediaType:t}),clearTimeout(me),me=setTimeout(function(){B(t,P),me=null},Ie.getAbandonLoadTimeout()))}};oe.applyRules(n,he[t],i,e,function(e,t){return t})}();if("object"===("undefined"==typeof n?"undefined":a(n)))return n.v}}var ne=this.context,re=(0,y["default"])(ne).getInstance(),ie=void 0,ae=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,fe=void 0,de=void 0,ce=void 0,ge=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,_e=void 0,ye=void 0,Ee=void 0,Te=void 0,Se=void 0,Ie=void 0,Re=void 0;return ie={isPlayingAtTopQuality:G,updateTopQualityIndex:Y,getAverageThroughput:q,getBitrateList:K,getQualityForBitrate:j,getMaxAllowedBitrateFor:c,setMaxAllowedBitrateFor:p,getMaxAllowedRepresentationRatioFor:v,setMaxAllowedRepresentationRatioFor:_,getInitialBitrateFor:i,setInitialBitrateFor:o,getInitialRepresentationRatioFor:u,setInitialRepresentationRatioFor:f,setAutoSwitchBitrateFor:S,getAutoSwitchBitrateFor:E,setLimitBitrateByPortal:R,getLimitBitrateByPortal:I,getUsePixelRatioInLimitBitrateByPortal:M,setUsePixelRatioInLimitBitrateByPortal:C,getConfidenceFor:Q,getQualityFor:z,getAbandonmentStateFor:k,setAbandonmentStateFor:B,setPlaybackQuality:F,getPlaybackQuality:x,setAverageThroughput:H,getTopQualityIndexFor:r,initialize:t,setConfig:n,reset:V},e(),ie}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),s=r(o),u=n(165),l=r(u),f=n(50),d=r(f),c=n(47),g=r(c),p=n(5),h=r(p),v=n(30),m=r(v),_=n(3),y=r(_),E=n(2),T=r(E),S=n(1),I=r(S),R=n(31),A=r(R),M=n(12),b=r(M),C=n(19),D=r(C),O="abandonload",P="allowload",w=1e3,N=100,L=0;i.__dashjs_factory_name="AbrController";var x=I["default"].getSingletonFactory(i);x.ABANDON_LOAD=O,x.QUALITY_DEFAULT=L,t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){d.trigger(u["default"].ERROR,{error:"capability",event:e})}function t(e,t,n){d.trigger(u["default"].ERROR,{error:"download",event:{id:e,url:t,request:n}})}function n(e,t,n,r){d.trigger(u["default"].ERROR,{error:"manifestError",event:{message:e,id:t,manifest:n,event:r}})}function r(e,t,n){d.trigger(u["default"].ERROR,{error:"cc",event:{message:e,id:t,cc:n}})}function i(e){d.trigger(u["default"].ERROR,{error:"mediasource",event:e})}function a(e){d.trigger(u["default"].ERROR,{error:"key_session",event:e})}function s(e){d.trigger(u["default"].ERROR,{error:"key_message",event:e})}var l=void 0,f=this.context,d=(0,o["default"])(f).getInstance();return l={capabilityError:e,downloadError:t,manifestError:n,timedTextError:r,mediaSourceError:i,mediaKeySessionError:a,mediaKeyMessageError:s}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l),d="mediasource",c="mediakeys",g="manifest",p="SIDX",h="content",v="initialization",m="xlink",_="codec",y="parse",E="nostreams",T="parse";i.__dashjs_factory_name="ErrorHandler";var S=f["default"].getSingletonFactory(i);S.CAPABILITY_ERROR_MEDIASOURCE=d,S.CAPABILITY_ERROR_MEDIAKEYS=c,S.DOWNLOAD_ERROR_ID_MANIFEST=g,S.DOWNLOAD_ERROR_ID_SIDX=p,S.DOWNLOAD_ERROR_ID_CONTENT=h,S.DOWNLOAD_ERROR_ID_INITIALIZATION=v,S.DOWNLOAD_ERROR_ID_XLINK=m,S.MANIFEST_ERROR_ID_CODEC=_,S.MANIFEST_ERROR_ID_PARSE=y,S.MANIFEST_ERROR_ID_NOSTREAMS=E,S.TIMED_TEXT_ERROR_ID_PARSE=T,t["default"]=S,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){var n,r,i,a=!1,o=!1,s=e.ContentComponent_asArray,u="text"!==t?new RegExp(t):new RegExp("(vtt|ttml)");if(e.Representation_asArray.length>0&&e.Representation_asArray[0].hasOwnProperty("codecs")){var l=e.Representation_asArray[0].codecs;if("stpp"===l||"wvtt"===l)return"fragmentedText"===t}if(s){if(s.length>1)return"muxed"===t;s[0]&&s[0].contentType===t&&(a=!0,o=!0)}if(e.hasOwnProperty("mimeType")&&(a=u.test(e.mimeType),o=!0),!o)for(n=0,r=e.Representation_asArray.length;!o&&n<r;)i=e.Representation_asArray[n],i.hasOwnProperty("mimeType")&&(a=u.test(i.mimeType),o=!0),n++;return a}function t(t){return e(t,"audio")}function n(t){return e(t,"video")}function r(t){return e(t,"fragmentedText")}function i(t){return e(t,"text")}function a(t){return e(t,"muxed")}function s(e){return"text/vtt"===e||"application/ttml+xml"===e}function l(e){var t="";return e.hasOwnProperty("lang")&&(t=e.lang.replace(/[^A-Za-z0-9-]/g,"")),t}function d(e){return e.hasOwnProperty("Viewpoint")?e.Viewpoint:null}function g(e){return e.hasOwnProperty("Role_asArray")?e.Role_asArray:[]}function h(e){return e.hasOwnProperty("Accessibility_asArray")?e.Accessibility_asArray:[]}function m(e){return e.hasOwnProperty("AudioChannelConfiguration_asArray")?e.AudioChannelConfiguration_asArray:[]}function y(e){return g(e).filter(function(e){return"main"===e.value})[0]}function T(){return function(e,t){return e.bandwidth-t.bandwidth}}function I(e){return void 0!==e.Representation_asArray&&null!==e.Representation_asArray&&e.Representation_asArray.sort(T()),e}function A(e,t,n){var r,i,a=t.Period_asArray[n].AdaptationSet_asArray;for(r=0,i=a.length;r<i;r++)if(a[r].hasOwnProperty("id")&&a[r].id===e)return a[r];return null}function b(e,t,n){var r=t.Period_asArray[n].AdaptationSet_asArray;return r[e]}function D(e,t,n){var r,i,a=t.Period_asArray[n].AdaptationSet_asArray;for(r=0,i=a.length;r<i;r++)if(a[r]===e)return r;return-1}function O(t,n,r){var i,a,o=t.Period_asArray[n].AdaptationSet_asArray,s=[];for(i=0,a=o.length;i<a;i++)e(o[i],r)&&s.push(I(o[i]));return s}function P(e,t,n,r){var i=O(e,t,n);if(!i||0===i.length)return null;if(i.length>1&&r)for(var a=de.getCurrentTrackFor(n,r),o=ce.getAllMediaInfoForType(e,r,n),s=0,u=i.length;s<u;s++){if(a&&de.isTracksEqual(a,o[s]))return i[s];if(y(i[s]))return i[s]}return i[0]}function w(e){var t=e.Representation_asArray[0];return t.mimeType+';codecs="'+t.codecs+'"'}function N(e){return e.Representation_asArray[0].mimeType}function L(e){return e&&e.hasOwnProperty("cenc:default_KID")?e["cenc:default_KID"]:null}function x(e){return e&&e.hasOwnProperty("ContentProtection_asArray")&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null}function F(e){var t=!1;return e.hasOwnProperty("type")&&(t="dynamic"===e.type),t}function U(e){var t,n,r=F(e);return t=!isNaN(e.timeShiftBufferDepth),n=r&&t}function B(e,t){var n=!1;return e.profiles&&e.profiles.length>0&&(n=e.profiles.indexOf(t)!==-1),n}function k(e){return B(e,"urn:mpeg:dash:profile:isoff-on-demand:2011")}function j(e){return B(e,"urn:dvb:dash:profile:dvb-dash:2014")}function K(e){var t;return t=e.hasOwnProperty("mediaPresentationDuration")?e.mediaPresentationDuration:Number.MAX_VALUE}function H(e){return e.bandwidth}function q(e){var t=NaN,n=2;return e.hasOwnProperty("minimumUpdatePeriod")&&(t=Math.max(parseFloat(e.minimumUpdatePeriod),n)),t}function Y(e){return e.Representation_asArray.length}function G(e){if(!e||!e.Representation_asArray||!e.Representation_asArray.length)return null;for(var t=I(e),n=t.Representation_asArray,r=n.length,i=[],a=0;a<r;a++)i.push({bandwidth:n[a].bandwidth,width:n[a].width||0,height:n[a].height||0});return i}function V(e,t){return t.Representation_asArray[e]}function z(e,t){for(var n,r,i,a,u,l=I(e.Period_asArray[t.period.index].AdaptationSet_asArray[t.index]),f=[],d=0;d<l.Representation_asArray.length;d++)a=l.Representation_asArray[d],n=new o["default"],n.index=d,n.adaptation=t,a.hasOwnProperty("id")&&(n.id=a.id),a.hasOwnProperty("bandwidth")&&(n.bandwidth=a.bandwidth),a.hasOwnProperty("maxPlayoutRate")&&(n.maxPlayoutRate=a.maxPlayoutRate),a.hasOwnProperty("SegmentBase")?(i=a.SegmentBase,n.segmentInfoType="SegmentBase"):a.hasOwnProperty("SegmentList")?(i=a.SegmentList,i.hasOwnProperty("SegmentTimeline")?(n.segmentInfoType="SegmentTimeline",u=i.SegmentTimeline.S_asArray[i.SegmentTimeline.S_asArray.length-1],(!u.hasOwnProperty("r")||u.r>=0)&&(n.useCalculatedLiveEdgeTime=!0)):(n.segmentInfoType="SegmentList",n.useCalculatedLiveEdgeTime=!0)):a.hasOwnProperty("SegmentTemplate")?(i=a.SegmentTemplate,i.hasOwnProperty("SegmentTimeline")?(n.segmentInfoType="SegmentTimeline",u=i.SegmentTimeline.S_asArray[i.SegmentTimeline.S_asArray.length-1],(!u.hasOwnProperty("r")||u.r>=0)&&(n.useCalculatedLiveEdgeTime=!0)):n.segmentInfoType="SegmentTemplate",i.hasOwnProperty("initialization")&&(n.initialization=i.initialization.split("$Bandwidth$").join(a.bandwidth).split("$RepresentationID$").join(a.id))):(i=a.BaseURL,n.segmentInfoType="BaseURL"),i.hasOwnProperty("Initialization")?(r=i.Initialization,r.hasOwnProperty("sourceURL")?n.initialization=r.sourceURL:r.hasOwnProperty("range")&&(n.range=r.range)):a.hasOwnProperty("mimeType")&&s(a.mimeType)&&(n.range=0),i.hasOwnProperty("timescale")&&(n.timescale=i.timescale),i.hasOwnProperty("duration")&&(n.segmentDuration=i.duration/n.timescale),i.hasOwnProperty("startNumber")&&(n.startNumber=i.startNumber),i.hasOwnProperty("indexRange")&&(n.indexRange=i.indexRange),i.hasOwnProperty("presentationTimeOffset")&&(n.presentationTimeOffset=i.presentationTimeOffset/n.timescale),n.MSETimeOffset=fe.calcMSETimeOffset(n),n.path=[t.period.index,t.index,d],f.push(n);return f}function W(e,i){for(var o,s,l=e.Period_asArray[i.index],f=[],d=0;d<l.AdaptationSet_asArray.length;d++)s=l.AdaptationSet_asArray[d],o=new u["default"],s.hasOwnProperty("id")&&(o.id=s.id),o.index=d,o.period=i,a(s)?o.type="muxed":t(s)?o.type="audio":n(s)?o.type="video":r(s)?o.type="fragmentedText":o.type="text",f.push(o);return f}function Q(e,t){var n,r,i=F(e),a=[],o=null,s=null,u=null,l=null;for(r=0,n=e.Period_asArray.length;r<n;r++)s=e.Period_asArray[r],s.hasOwnProperty("start")?(l=new f["default"],
|
27 |
+
l.start=s.start):null!==o&&s.hasOwnProperty("duration")&&null!==u?(l=new f["default"],l.start=u.start+u.duration,l.duration=s.duration):0!==r||i||(l=new f["default"],l.start=0),null!==u&&isNaN(u.duration)&&(u.duration=l.start-u.start),null!==l&&(l.id=X(s)),null!==l&&s.hasOwnProperty("duration")&&(l.duration=s.duration),null!==l&&(l.index=r,l.mpd=t,a.push(l),o=s,u=l),s=null,l=null;return 0===a.length?a:(null!==u&&isNaN(u.duration)&&(u.duration=ee(e,u)-u.start),a)}function X(e){if(!e)throw new Error("Period cannot be null or undefined");var t=f["default"].DEFAULT_ID;return e.hasOwnProperty("id")&&"__proto__"!==e.id&&(t=e.id),t}function Z(e){var t=new c["default"];return t.manifest=e,e.hasOwnProperty("availabilityStartTime")?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):t.availabilityStartTime=new Date(e.loadedTime.getTime()),e.hasOwnProperty("availabilityEndTime")&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty("suggestedPresentationDelay")&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty("timeShiftBufferDepth")&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty("maxSegmentDuration")&&(t.maxSegmentDuration=e.maxSegmentDuration),t}function J(e,t){return fe.calcPresentationTimeFromWallTime(e.loadedTime,t)}function $(e,t){var n,r=NaN;return e.hasOwnProperty("minimumUpdatePeriod")&&(n=J(e,t),r=n+e.minimumUpdatePeriod),r}function ee(e,t){var n,r=$(e,t);if(e.mediaPresentationDuration)n=e.mediaPresentationDuration;else{if(isNaN(r))throw new Error("Must have @mediaPresentationDuration or @minimumUpdatePeriod on MPD or an explicit @duration on the last period.");n=r}return n}function te(e,t){var n=e.Period_asArray,r=n[t.index].EventStream_asArray,i=[];if(r)for(var a=0;a<r.length;a++){var o=new M["default"];if(o.period=t,o.timescale=1,!r[a].hasOwnProperty("schemeIdUri"))throw new Error("Invalid EventStream. SchemeIdUri has to be set");o.schemeIdUri=r[a].schemeIdUri,r[a].hasOwnProperty("timescale")&&(o.timescale=r[a].timescale),r[a].hasOwnProperty("value")&&(o.value=r[a].value);for(var s=0;s<r[a].Event_asArray.length;s++){var u=new S["default"];u.presentationTime=0,u.eventStream=o,r[a].Event_asArray[s].hasOwnProperty("presentationTime")&&(u.presentationTime=r[a].Event_asArray[s].presentationTime),r[a].Event_asArray[s].hasOwnProperty("duration")&&(u.duration=r[a].Event_asArray[s].duration),r[a].Event_asArray[s].hasOwnProperty("id")&&(u.id=r[a].Event_asArray[s].id),i.push(u)}}return i}function ne(e,t){var n=[];if(!e)return n;for(var r=0;r<e.length;r++){var i=new M["default"];if(i.timescale=1,i.representation=t,!e[r].hasOwnProperty("schemeIdUri"))throw new Error("Invalid EventStream. SchemeIdUri has to be set");i.schemeIdUri=e[r].schemeIdUri,e[r].hasOwnProperty("timescale")&&(i.timescale=e[r].timescale),e[r].hasOwnProperty("value")&&(i.value=e[r].value),n.push(i)}return n}function re(e,t){var n=e.Period_asArray[t.period.index].AdaptationSet_asArray[t.index].InbandEventStream_asArray;return ne(n,null)}function ie(e,t){var n=e.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].InbandEventStream_asArray;return ne(n,t)}function ae(e){var t=F(e),n=e.hasOwnProperty("availabilityStartTime"),r=e.UTCTiming_asArray,i=[];return(t||n)&&r&&r.forEach(function(e){var t=new p["default"];e.hasOwnProperty("schemeIdUri")&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty("value")&&(t.value=e.value.toString(),i.push(t)))}),i}function oe(e){var t=[],n=e.BaseURL_asArray||[e.baseUri],r=!1;return n.some(function(n){if(n){var i=new R["default"],a=n.__text||n;return ge.isRelative(a)&&(r=!0,e.baseUri&&(a=e.baseUri+a)),i.url=a,n.hasOwnProperty("serviceLocation")&&n.serviceLocation.length?i.serviceLocation=n.serviceLocation:i.serviceLocation=a,n.hasOwnProperty("dvb:priority")&&(i.dvb_priority=n["dvb:priority"]),n.hasOwnProperty("dvb:weight")&&(i.dvb_weight=n["dvb:weight"]),t.push(i),r}}),t}function se(e){return e.hasOwnProperty("Location")&&(e.Location=e.Location_asArray[0]),e.Location}var ue=void 0,le=this.context,fe=(0,v["default"])(le).getInstance(),de=(0,_["default"])(le).getInstance(),ce=(0,E["default"])(le).getInstance(),ge=(0,C["default"])(le).getInstance();return ue={getIsTypeOf:e,getIsAudio:t,getIsVideo:n,getIsText:i,getIsMuxed:a,getIsTextTrack:s,getIsFragmentedText:r,getIsMain:y,getLanguageForAdaptation:l,getViewpointForAdaptation:d,getRolesForAdaptation:g,getAccessibilityForAdaptation:h,getAudioChannelConfigurationForAdaptation:m,processAdaptation:I,getAdaptationForIndex:b,getIndexForAdaptation:D,getAdaptationForId:A,getAdaptationsForType:O,getAdaptationForType:P,getCodec:w,getMimeType:N,getKID:L,getContentProtectionData:x,getIsDynamic:F,getIsDVR:U,getIsOnDemand:k,getIsDVB:j,getDuration:K,getBandwidth:H,getRefreshDelay:q,getRepresentationCount:Y,getBitrateListForAdaptation:G,getRepresentationFor:V,getRepresentationsForAdaptation:z,getAdaptationsForPeriod:W,getRegularPeriods:Q,getPeriodId:X,getMpd:Z,getFetchTime:J,getCheckTime:$,getEndTimeForLastPeriod:ee,getEventsForPeriod:te,getEventStreams:ne,getEventStreamForAdaptationSet:re,getEventStreamForRepresentation:ie,getUTCTimingSources:ae,getBaseURLsFromElement:oe,getRepresentationSortFunction:T,getLocation:se}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(96),o=r(a),s=n(92),u=r(s),l=n(95),f=r(l),d=n(94),c=r(d),g=n(58),p=r(g),h=n(26),v=r(h),m=n(13),_=r(m),y=n(15),E=r(y),T=n(57),S=r(T),I=n(56),R=r(I),A=n(93),M=r(A),b=n(22),C=r(b),D=n(1),O=r(D);i.__dashjs_factory_name="DashManifestModel",t["default"]=O["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){k={},O(),D()}function t(e,t){var n=f(e),i=r(e,t),a=[];return"fragmentedText"===e?void s(i[0]):(n||(n=U.getSavedMediaSettings(e),l(e,n)),void(i&&0!==i.length&&(n&&i.forEach(function(e){C(n,e)&&a.push(e)}),s(0===a.length?P(i):a.length>1?P(a):a[0]))))}function n(e){var t=e?e.type:null,n=e?e.streamInfo.id:null,r=f(t);return!(!e||!I(t))&&(k[n]=k[n]||w(),!(k[n][t].list.indexOf(e)>=0)&&(k[n][t].list.push(e),r&&C(r,e)&&!i(t,e.streamInfo)&&s(e),!0))}function r(e,t){if(!e||!t)return[];var n=t.id;return k[n]&&k[n][e]?k[n][e].list:[]}function i(e,t){return!e||!t||t&&!k[t.id]?null:k[t.id][e].current}function a(e){var t=e.type,n=e.streamInfo.id;return k[n]&&k[n][t]&&R(k[n][t].current,e)}function s(e){if(e){var t=e.type,n=e.streamInfo,r=n.id,a=i(t,n);if(k[r]&&k[r][t]&&(!a||!R(e,a))){k[r][t].current=e,a&&x.trigger(o["default"].CURRENT_TRACK_CHANGED,{oldMediaInfo:a,newMediaInfo:e,switchMode:H[t]});var s=b(e);s&&k[r][t].storeLastSettings&&(s.roles&&(s.role=s.roles[0],delete s.roles),s.accessibility&&(s.accessibility=s.accessibility[0]),s.audioChannelConfiguration&&(s.audioChannelConfiguration=s.audioChannelConfiguration[0]),U.setSavedMediaSettings(t,s))}}}function l(e,t){e&&t&&(j[e]=t)}function f(e){return e?j[e]:null}function d(e,t){var n=Y.indexOf(t)!==-1;return n?void(H[e]=t):void L("track switch mode is not supported: "+t)}function g(e){return H[e]}function h(e){var t=G.indexOf(e)!==-1;return t?void(K=e):void L("track selection mode is not supported: "+e)}function S(){return K||T}function I(e){return"audio"===e||"video"===e||"text"===e||"fragmentedText"===e}function R(e,t){var n=e.id===t.id,r=e.viewpoint===t.viewpoint,i=e.lang===t.lang,a=e.roles.toString()===t.roles.toString(),o=e.accessibility.toString()===t.accessibility.toString(),s=e.audioChannelConfiguration.toString()===t.audioChannelConfiguration.toString();return n&&r&&i&&a&&o&&s}function A(e){e&&e.errHandler&&(q=e.errHandler)}function M(){e(),F.resetEmbedded()}function b(e){var t={lang:e.lang,viewpoint:e.viewpoint,roles:e.roles,accessibility:e.accessibility,audioChannelConfiguration:e.audioChannelConfiguration},n=t.lang||t.viewpoint||t.role&&t.role.length>0||t.accessibility&&t.accessibility.length>0||t.audioChannelConfiguration&&t.audioChannelConfiguration.length>0;return n?t:null}function C(e,t){var n=!e.lang||e.lang===t.lang,r=!e.viewpoint||e.viewpoint===t.viewpoint,i=!e.role||!!t.roles.filter(function(t){return t===e.role})[0],a=!e.accessibility||!!t.accessibility.filter(function(t){return t===e.accessibility})[0],o=!e.audioChannelConfiguration||!!t.audioChannelConfiguration.filter(function(t){return t===e.audioChannelConfiguration})[0];return n&&r&&i&&a&&o}function D(){H={audio:_,video:m}}function O(){j={audio:null,video:null}}function P(e){var t=S(),n=[],r=function(e){var t,n=0,r=[];return e.forEach(function(e){t=Math.max.apply(Math,e.bitrateList.map(function(e){return e.bandwidth})),t>n?(n=t,r=[e]):t===n&&r.push(e)}),r},i=function(e){var t,n=0,r=[];return e.forEach(function(e){t=e.representationCount,t>n?(n=t,r=[e]):t===n&&r.push(e)}),r};switch(t){case y:n=r(e),n.length>1&&(n=i(n));break;case E:n=i(e),n.length>1&&(n=r(e));break;default:L("track selection mode is not supported: "+t)}return n[0]}function w(){return{audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null}}}var N=this.context,L=(0,c["default"])(N).getInstance().log,x=(0,u["default"])(N).getInstance(),F=(0,p["default"])(N).getInstance(),U=(0,v["default"])(N).getInstance(),B=void 0,k=void 0,j=void 0,K=void 0,H=void 0,q=void 0,Y=[_,m],G=[y,E];return B={initialize:e,checkInitialMediaSettingsForType:t,addTrack:n,getTracksFor:r,getCurrentTrackFor:i,isCurrentTrack:a,setTrack:s,setInitialSettings:l,getInitialSettings:f,setSwitchMode:d,getSwitchMode:g,setSelectionModeForInitialTrack:h,getSelectionModeForInitialTrack:S,isMultiTrackSupportedByType:I,isTracksEqual:R,setConfig:A,reset:M}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),o=r(a),s=n(3),u=r(s),l=n(1),f=r(l),d=n(4),c=r(d),g=n(17),p=r(g),h=n(50),v=r(h),m="neverReplace",_="alwaysReplace",y="highestBitrate",E="widestRange",T=y;i.__dashjs_factory_name="MediaController";var S=f["default"].getSingletonFactory(i);S.TRACK_SWITCH_MODE_NEVER_REPLACE=m,S.TRACK_SWITCH_MODE_ALWAYS_REPLACE=_,S.TRACK_SELECTION_MODE_HIGHEST_BITRATE=y,S.TRACK_SELECTION_MODE_WIDEST_RANGE=E,S.DEFAULT_INIT_TRACK_SELECTION_MODE=T,t["default"]=S,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){G={}}function t(e){e&&e.adapter&&(Y=e.adapter)}function n(){H.trigger(C["default"].METRICS_CHANGED)}function r(e){H.trigger(C["default"].METRIC_CHANGED,{mediaType:e}),n()}function i(e,t,n){H.trigger(C["default"].METRIC_UPDATED,{mediaType:e,metric:t,value:n}),r(e)}function a(e,t,n){H.trigger(C["default"].METRIC_ADDED,{mediaType:e,metric:t,value:n}),r(e)}function s(e){delete G[e],r(e)}function f(){G={},n()}function c(e){return G.hasOwnProperty(e)?G[e]:null}function p(e){var t;return G.hasOwnProperty(e)?t=G[e]:(t=new o["default"],G[e]=t),t}function v(e,t,n,r,i,o){var s=new u["default"];return s.tcpid=t,s.dest=n,s.topen=r,s.tclose=i,s.tconnect=o,p(e).TcpList.push(s),a(e,Y.metricsList.TCP_CONNECTION,s),s}function _(e,t,n,r){var i=new l.HTTPRequestTrace;return i.s=t,i.d=n,i.b=r,e.trace.push(i),e.interval||(e.interval=0),e.interval+=n,i}function T(e,t,n,r,i,o,s,u,f,d,c,g,h,v){var m=new l.HTTPRequest;return i&&i!==r&&(T(e,null,n,r,null,null,s,u,null,null,null,g,null,null),m.actualurl=i),m.tcpid=t,m.type=n,m.url=r,m.range=s,m.trequest=u,m.tresponse=f,m.responsecode=c,m._tfinish=d,m._stream=e,m._mediaduration=g,m._responseHeaders=h,m._serviceLocation=o,v?v.forEach(function(e){_(m,e.s,e.d,e.b)}):(delete m.interval,delete m.trace),p(e).HttpList.push(m),a(e,Y.metricsList.HTTP_REQUEST,m),m}function I(e,t,n,r,i){var o=new d["default"];return o.t=t,o.mt=n,o.to=r,i?o.lto=i:delete o.lto,p(e).RepSwitchList.push(o),a(e,Y.metricsList.TRACK_SWITCH,o),o}function A(e,t,n){var r=new g["default"];return r.t=t,r.level=n,p(e).BufferLevel.push(r),a(e,Y.metricsList.BUFFER_LEVEL,r),r}function b(e,t,n){var r=new h["default"];return r.target=n,r.state=t,p(e).BufferState.push(r),a(e,Y.metricsList.BUFFER_STATE,r),r}function D(e,t,n,r){var i=new m["default"];return i.time=t,i.range=r,i.manifestInfo=n,p(e).DVRInfo.push(i),a(e,Y.metricsList.DVR_INFO,i),i}function O(e,t){var n=new y["default"],r=p(e).DroppedFrames;return n.time=t.creationTime,n.droppedFrames=t.droppedVideoFrames,r.length>0&&r[r.length-1]==n?r[r.length-1]:(r.push(n),a(e,Y.metricsList.DROPPED_FRAMES,n),n)}function P(e,t,n,r,i,o,s,u,l){var f=new S["default"];return f.mediaType=e,f.t=t,f.type=n,f.startTime=r,f.availabilityStartTime=i,f.duration=o,f.quality=s,f.range=u,f.state=l,p(e).SchedulingInfo.push(f),a(e,Y.metricsList.SCHEDULING_INFO,f),f}function N(e,t,n){var r=new M["default"];r.loadingRequests=t,r.executedRequests=n,p(e).RequestsQueue=r,a(e,Y.metricsList.REQUESTS_QUEUE,r)}function L(e,t,n,r,i,o,s,u,l,f){var d=new E.ManifestUpdate,c=p("stream");return d.mediaType=e,d.type=t,d.requestTime=n,d.fetchTime=r,d.availabilityStartTime=i,d.presentationStartTime=o,d.clientTimeOffset=s,d.currentTime=u,d.buffered=l,d.latency=f,c.ManifestUpdate.push(d),a(e,Y.metricsList.MANIFEST_UPDATE,d),d}function x(e,t){if(e){for(var n in t)e[n]=t[n];i(e.mediaType,Y.metricsList.MANIFEST_UPDATE,e)}}function F(e,t,n,r,a){if(e){var o=new E.ManifestUpdateStreamInfo;return o.id=t,o.index=n,o.start=r,o.duration=a,e.streamInfo.push(o),i(e.mediaType,Y.metricsList.MANIFEST_UPDATE_STREAM_INFO,e),o}return null}function U(e,t,n,r,a,o,s,u){if(e){var l=new E.ManifestUpdateTrackInfo;return l.id=t,l.index=n,l.streamIndex=r,l.mediaType=a,l.startNumber=s,l.fragmentInfoType=u,l.presentationTimeOffset=o,e.trackInfo.push(l),i(e.mediaType,Y.metricsList.MANIFEST_UPDATE_TRACK_INFO,e),l}return null}function B(e){var t="stream";return e.trace&&Array.isArray(e.trace)?e.trace.forEach(function(e){e.hasOwnProperty("subreplevel")&&!e.subreplevel&&delete e.subreplevel}):delete e.trace,p(t).PlayList.push(e),a(t,Y.metricsList.PLAY_LIST,e),e}function k(e){var t="stream";return p(t).DVBErrors.push(e),a(t,Y.metricsList.DVB_ERRORS,e),e}function j(e,t){var n=new w["default"];return n._s=t,p(e).BolaState=[n],a(e,"BolaState",n),n}var K=this.context,H=(0,R["default"])(K).getInstance(),q=void 0,Y=void 0,G=void 0;return q={metricsChanged:n,metricChanged:r,metricUpdated:i,metricAdded:a,clearCurrentMetricsForType:s,clearAllCurrentMetrics:f,getReadOnlyMetricsFor:c,getMetricsFor:p,addTcpConnection:v,addHttpRequest:T,addRepresentationSwitch:I,addBufferLevel:A,addBufferState:b,addDVRInfo:D,addDroppedFrames:O,addSchedulingInfo:P,addRequestsQueue:N,addManifestUpdate:L,updateManifestUpdateInfo:x,addManifestUpdateStreamInfo:F,addManifestUpdateRepresentationInfo:U,addPlayList:B,addDVBErrors:k,updateBolaState:j,setConfig:t},e(),q}Object.defineProperty(t,"__esModule",{value:!0});var a=n(171),o=r(a),s=n(185),u=r(s),l=n(7),f=n(182),d=r(f),c=n(177),g=r(c),p=n(178),h=r(p),v=n(179),m=r(v),_=n(180),y=r(_),E=n(181),T=n(184),S=r(T),I=n(3),R=r(I),A=n(183),M=r(A),b=n(2),C=r(b),D=n(1),O=r(D),P=n(176),w=r(P);i.__dashjs_factory_name="MetricsModel",t["default"]=O["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){e&&e.dashManifestModel&&(L=e.dashManifestModel)}function t(){x=[],F={}}function n(e,t){return t.getRepresentationForQuality(e.quality)}function r(e){return F[e.streamInfo.id][e.index]}function i(e){for(var t=x.length,n=0;n<t;n++){var r=x[n];if(e.id===r.id)return r}return null}function a(e,t){var n=new s["default"],r=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index],i=L.getRepresentationFor(t.index,r);return n.id=t.id,n.quality=t.index,n.bandwidth=L.getBandwidth(i),n.DVRWindow=t.segmentAvailabilityRange,n.fragmentDuration=t.segmentDuration||(t.segments&&t.segments.length>0?t.segments[0].duration:NaN),n.MSETimeOffset=t.MSETimeOffset,n.useCalculatedLiveEdgeTime=t.useCalculatedLiveEdgeTime,n.mediaInfo=o(e,t.adaptation),n}function o(e,t){var n,r=new l["default"],i=t.period.mpd.manifest.Period_asArray[t.period.index].AdaptationSet_asArray[t.index];return r.id=t.id,r.index=t.index,r.type=t.type,r.streamInfo=f(e,t.period),r.representationCount=L.getRepresentationCount(i),r.lang=L.getLanguageForAdaptation(i),n=L.getViewpointForAdaptation(i),r.viewpoint=n?n.value:void 0,r.accessibility=L.getAccessibilityForAdaptation(i).map(function(e){var t=e.value,n=t;return e.schemeIdUri&&e.schemeIdUri.search("cea-608")>=0&&"undefined"!=typeof y["default"]&&(n=t?"cea-608:"+t:"cea-608",r.embeddedCaptions=!0),n}),r.audioChannelConfiguration=L.getAudioChannelConfigurationForAdaptation(i).map(function(e){return e.value}),r.roles=L.getRolesForAdaptation(i).map(function(e){return e.value}),r.codec=L.getCodec(i),r.mimeType=L.getMimeType(i),r.contentProtection=L.getContentProtectionData(i),r.bitrateList=L.getBitrateListForAdaptation(i),r.contentProtection&&r.contentProtection.forEach(function(e){e.KID=L.getKID(e)}),r.isText=L.getIsTextTrack(r.mimeType),r}function u(e,t,n){e.id=t,e.index=100+parseInt(t.substring(2,3)),e.type="embeddedText",e.codec="cea-608-in-SEI",e.isText=!0,e.isEmbedded=!0,e.lang=t+" "+n,e.roles=["caption"]}function f(e,t){var n=new d["default"],r=1;return n.id=t.id,n.index=t.index,n.start=t.start,n.duration=t.duration,n.manifestInfo=c(e,t.mpd),n.isLast=1===e.Period_asArray.length||Math.abs(n.start+n.duration-n.manifestInfo.duration)<r,n.isFirst=1===e.Period_asArray.length||L.getRegularPeriods(e,L.getMpd(e))[0].id===t.id,n}function c(e,t){var n=new g["default"];return n.DVRWindowSize=t.timeShiftBufferDepth,n.loadedTime=t.manifest.loadedTime,n.availableFrom=t.availabilityStartTime,n.minBufferTime=t.manifest.minBufferTime,n.maxFragmentDuration=t.maxSegmentDuration,n.duration=L.getDuration(e),n.isDynamic=L.getIsDynamic(e),n}function p(e,t,n){var r=L.getAdaptationForType(e,t.index,n,t);if(!r)return null;var a=i(t),s=a.id,u=L.getIndexForAdaptation(r,e,t.index);return F[s]=F[s]||L.getAdaptationsForPeriod(e,a),o(e,F[s][u])}function v(e,t,n){var r,a,s,l,f,d,c=i(t),g=c.id,p=L.getAdaptationsForType(e,t.index,"embeddedText"!==n?n:"video"),h=[];if(!p)return h;for(F[g]=F[g]||L.getAdaptationsForPeriod(e,c),l=0,d=p.length;l<d;l++){if(r=p[l],s=L.getIndexForAdaptation(r,e,t.index),a=o(e,F[g][s]),"embeddedText"===n){var v=a.accessibility.length;for(f=0;f<v;f++)if(a){var m=a.accessibility[f];if(0===m.indexOf("cea-608:")){var _=m.substring(8),y=_.split(";");if("CC"===y[0].substring(0,2))for(f=0;f<y.length;f++)a||(a=o.call(this,e,F[g][s])),u(a,y[f].substring(0,3),y[f].substring(4)),h.push(a),a=null;else for(f=0;f<y.length;f++)a||(a=o.call(this,e,F[g][s])),u(a,"CC"+(f+1),y[f]),h.push(a),a=null}else 0===m.indexOf("cea-608")&&(u(a,"CC1","eng"),h.push(a),a=null)}}a&&"embeddedText"!==n&&h.push(a)}return h}function m(e){var t,n,r,i=[];if(!e)return null;for(t=L.getMpd(e),x=L.getRegularPeriods(e,t),t.checkTime=L.getCheckTime(e,x[0]),F={},n=x.length,r=0;r<n;r++)i.push(f(e,x[r]));return i}function _(e){var t=L.getMpd(e);return c(e,t)}function E(e,t){var n=e.getRepresentationController().getRepresentationForQuality(t);return e.getIndexHandler().getInitRequest(n)}function S(e,t){var r=n(t,e.getRepresentationController());return e.getIndexHandler().getNextSegmentRequest(r)}function I(e,t,r,i){var a=n(t,e.getRepresentationController());return e.getIndexHandler().getSegmentRequestForTime(a,r,i)}function R(e,t,r){var i=n(t,e.getRepresentationController());return e.getIndexHandler().generateSegmentRequestForTime(i,r)}function A(e){return e.getIndexHandler().getCurrentTime()}function M(e,t){return e.getIndexHandler().setCurrentTime(t)}function b(e,t){var n,a,o=i(t.getStreamInfo()),s=t.getMediaInfo(),u=r(s),l=t.getType();n=s.id,a=n?L.getAdaptationForId(n,e,o.index):L.getAdaptationForIndex(s.index,e,o.index),t.getRepresentationController().updateData(a,u,l)}function C(e,t,n){var r=t.getRepresentationForQuality(n);return r?a(e,r):null}function D(e,t){var n=t.getCurrentRepresentation();return n?a(e,n):null}function O(e,t,n){var r=new h["default"],i=e.scheme_id_uri,a=e.value,o=e.timescale,s=e.presentation_time_delta,u=e.event_duration,l=e.id,f=e.message_data,d=n*o+s;return t[i]?(r.eventStream=t[i],r.eventStream.value=a,r.eventStream.timescale=o,r.duration=u,r.id=l,r.presentationTime=d,r.messageData=f,r.presentationTimeDelta=s,r):null}function P(e,t,a){var o=[];return t instanceof d["default"]?o=L.getEventsForPeriod(e,i(t)):t instanceof l["default"]?o=L.getEventStreamForAdaptationSet(e,r(t)):t instanceof s["default"]&&(o=L.getEventStreamForRepresentation(e,n(t,a.getRepresentationController()))),o}function w(){x=[],F={}}var N=void 0,L=void 0,x=void 0,F=void 0;return N={initialize:t,convertDataToTrack:a,convertDataToMedia:o,convertDataToStream:f,getDataForTrack:n,getDataForMedia:r,getDataForStream:i,getStreamsInfo:m,getManifestInfo:_,getMediaInfoForType:p,getAllMediaInfoForType:v,getCurrentRepresentationInfo:D,getRepresentationInfoForQuality:C,updateData:b,getInitRequest:E,getNextFragmentRequest:S,getFragmentRequestForTime:I,generateFragmentRequestForTime:R,getIndexHandlerTime:A,setIndexHandlerTime:M,getEventsFor:P,getEvent:O,setConfig:e,reset:w,metricsList:T}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(174),s=i(o),u=n(170),l=i(u),f=n(172),d=i(f),c=n(169),g=i(c),p=n(57),h=i(p),v=n(1),m=i(v),_=n(52),y=i(_),E=n(54),T=r(E);a.__dashjs_factory_name="DashAdapter",t["default"]=m["default"].getSingletonFactory(a),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e,t){var n,r=C.getValue(),i=r.Period_asArray[t];return n=I(i,e),null===n?null:n.bandwidth}function t(e,t){var n,r=C.getValue(),i=r.Period_asArray[t];return n=S(i,e)}function n(e,t){var n,r=C.getValue(),i=r.Period_asArray[t];return n=A(i,e)}function r(e){return c(e,p.TRACK_SWITCH)}function i(e){return c(e,p.BUFFER_LEVEL)}function a(e){var t=i(e);return t?(0,h.round10)(t.level/1e3,-3):0}function s(e){return e.RequestsQueue}function l(e){if(null===e)return null;var t,n,r=e.HttpList,i=null;if(null===r||r.length<=0)return null;for(t=r.length,n=t-1;n>=0;){if(r[n].responsecode){i=r[n];break}n--}return i}function d(e){return null===e?[]:e.HttpList?e.HttpList:[]}function c(e,t){if(null===e)return null;var n=e[t];if(null===n)return null;var r=n.length;return r<=0?null:n[r-1]}function g(e){return c(e,p.DROPPED_FRAMES)}function v(e){return c(e,p.SCHEDULING_INFO)}function m(e){return c(e,p.MANIFEST_UPDATE)}function _(e){return c(e,p.DVR_INFO)}function y(e,t){var n,r,i,a={};if(null===e)return null;for(n=d(e),i=n.length-1;i>=0;i--)if(r=n[i],r.type===o.HTTPRequest.MPD_TYPE){a=T(r._responseHeaders);break}return void 0===a[t]?null:a[t]}function E(e,t){if(null===e)return null;var n,r=l(e);return null===r||null===r._responseHeaders?null:(n=T(r._responseHeaders),void 0===n[t]?null:n[t])}function T(e){var t={};if(!e)return t;for(var n=e.split("\r\n"),r=0,i=n.length;r<i;r++){var a=n[r],o=a.indexOf(": ");o>0&&(t[a.substring(0,o)]=a.substring(o+2))}return t}function S(e,t){var n=I(e,t,!0);return null!==n?n:-1}function I(e,t,n){var r,i,a,o,s,u;for(i=e.AdaptationSet_asArray,s=0;s<i.length;s+=1)for(r=i[s],o=r.Representation_asArray,u=0;u<o.length;u+=1)if(a=o[u],t===a.id)return n?u:a;return null}function R(e,t){return(0,f["default"])(b).getInstance().getIsTypeOf(e,t)}function A(e,t){var n,r,i,a;if(!e||!t)return-1;for(r=e.AdaptationSet_asArray,a=0;a<r.length;a+=1)if(n=r[a],i=n.Representation_asArray,R(n,t))return i.length;return-1}var M=void 0,b=this.context,C=(0,u["default"])(b).getInstance();return M={getBandwidthForRepresentation:e,getIndexForRepresentation:t,getMaxIndexForBufferType:n,getCurrentRepresentationSwitch:r,getLatestBufferLevelVO:i,getCurrentBufferLevel:a,getCurrentHttpRequest:l,getHttpRequests:d,getCurrentDroppedFrames:g,getCurrentSchedulingInfo:v,getCurrentDVRInfo:_,getCurrentManifestUpdate:m,getLatestFragmentRequestHeaderValueByID:E,getLatestMPDRequestHeaderValueByID:y,getRequestsQueue:s}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),s=n(31),u=i(s),l=n(12),f=i(l),d=n(1),c=i(d),g=n(54),p=r(g),h=n(186);a.__dashjs_factory_name="DashMetrics",t["default"]=c["default"].getSingletonFactory(a),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,n){B=!1,k=null,V=null,z=!1,W=NaN,Q=[],J=null,O||t();var r=n.getStreamProcessor();if(q=r.getMediaInfoArr(),Y.setConfig({videoModel:X}),Y.initialize(),G=!F.getIsTextTrack(e),N=(0,f["default"])(C).getInstance(),H=(0,u["default"])(C).getInstance(),H.setConfig({boxParser:N}),G){V=r.getFragmentModel(),this.buffered=(0,c["default"])(C).create(),Q=U.getTracksFor("fragmentedText",Z.getActiveStreamInfo());for(var i=U.getCurrentTrackFor("fragmentedText",Z.getActiveStreamInfo()),a=0;a<Q.length;a++)if(Q[a]===i){$=a;break}}}function t(){ee=[],q=[],X=(0,_["default"])(C).getInstance(),Y=(0,E["default"])(C).getInstance(),Y.setConfig({videoModel:X}),Y.initialize(),N=(0,f["default"])(C).getInstance(),H=(0,u["default"])(C).getInstance(),H.setConfig({boxParser:N}),G=!1,$=null,te=!1,ne=0,ae=[],ie=[],re=null,O=!0}function n(e,t){function n(e,t){var n=new o["default"],r={subtitle:"subtitles",caption:"captions"},i=function(){var e=t.roles.length>0?r[t.roles[0]]:r.caption;return e=e===r.caption||e===r.subtitle?e:r.caption},a=function(){var e=!1;return t.codec&&t.codec.search("stpp")>=0&&(e=!0),t.mimeType&&t.mimeType.search("ttml")>=0&&(e=!0),e};n.captionData=e,n.lang=t.lang,n.label=t.id,n.index=t.index,n.isTTML=a(),n.video=X.getElement(),n.defaultTrack=M(t),n.isFragmented=G,n.isEmbedded=!!t.isEmbedded,n.kind=i();var s=(q?q.length:0)+ee.length;Y.addTextTrack(n,s)}var i,a,s,u,l,f=t.mediaInfo,d=f.type,c=f.mimeType,g=f.codec||c;if(!g)return void D("No text type defined");if("fragmentedText"===d)if(z)if(u=H.getSamplesInfo(e),a=u.sampleList,!J&&a.length>0&&(J=a[0].cts-t.start*W),g.search("stpp")>=0)for(k=null!==k?k:b(g),s=0;s<a.length;s++){var h=a[s],v=h.cts,m=v-J;this.buffered.add(m/W,(m+h.duration)/W);var _=new DataView(e,h.offset,h.size);l=S["default"].Utils.dataViewToString(_,"utf-8");try{i=k.parse(l,v/W,(v+h.duration)/W),Y.addCaptions($,J/W,i)}catch(y){D("TTML parser error: "+y.message)}}else{var E=[];for(s=0;s<a.length;s++){var T=a[s];T.cts-=J,this.buffered.add(T.cts/W,(T.cts+T.duration)/W);for(var I=e.slice(T.offset,T.offset+T.size),A=S["default"].parseBuffer(I),C=0;C<A.boxes.length;C++){var O=A.boxes[C];if(D("VTT box1: "+O.type),"vtte"!==O.type&&"vttc"===O.type){D("VTT vttc boxes.length = "+O.boxes.length);for(var P=0;P<O.boxes.length;P++){var w=O.boxes[P];if(D("VTT box2: "+w.type),"payl"===w.type){var N=w.cue_text;D("VTT cue_text = "+N);var x=T.cts/W,F=(T.cts+T.duration)/W;E.push({start:x,end:F,data:N,styles:{}}),D("VTT "+x+"-"+F+" : "+N)}}}}}E.length>0&&Y.addCaptions($,0,E)}else{for(z=!0,s=0;s<q.length;s++)n(null,q[s]);W=H.getMediaTimescaleFromMoov(e)}else if("text"===d){var _=new DataView(e,0,e.byteLength);l=S["default"].Utils.dataViewToString(_,"utf-8");try{i=b(g).parse(l),n(i,f)}catch(y){L.timedTextError(y,"parse",l)}}else if("video"===d)if("InitializationSegment"===t.segmentType){if(0===ne)for(ne=H.getMediaTimescaleFromMoov(e),s=0;s<ee.length;s++)n(null,ee[s])}else{if(0===ne)return void D("CEA-608: No timescale for embeddedTextTrack yet");var U=function(e,t){function n(e,n,r){var i=null;if(X.getTTMLRenderingDiv())i=p(X.getElement(),e,n,r);else{var a=r.getDisplayText();i=[{start:e,end:n,data:a,styles:{}}]}i&&Y.addCaptions(t,0,i)}return n};u=H.getSamplesInfo(e);var B=u.sequenceNumber;if(!ae[0]&&!ae[1]){var j=void 0,K=void 0,V=void 0;for(s=0;s<ee.length;s++){if("CC1"===ee[s].id?(j=0,V=Y.getTrackIdxForId("CC1")):"CC3"===ee[s].id&&(j=1,V=Y.getTrackIdxForId("CC3")),V===-1)return void D("CEA-608: data before track is ready.");K=U(this,V),ae[s]=new R["default"].Cea608Parser(s,{newCue:K},null)}}if(ne&&ie.indexOf(B)==-1){if(null!==re&&B!==re+1)for(s=0;s<ae.length;s++)ae[s]&&ae[s].reset();for(var Q=r(e),Z=0;Z<ae.length;Z++){var te=Q.fields[Z],oe=ae[Z];if(oe){for(s=0;s<te.length;s++)oe.addData(te[s][0]/ne,te[s][1]);Q.endTime&&oe.cueSplitAtTime(Q.endTime/ne)}}re=B,ie.push(B)}}}function r(e){var t=function(e,t,n){var r=e.length;if(r>0){if(t>=e[r-1][0])e.push([t,n]);else for(var i=r-1;i>=0;i--)if(t<e[i][0]){e.splice(i,0,[t,n]);break}}else e.push([t,n])},n=N.parse(e),r=n.getBox("moof"),i=n.getBox("tfdt"),a=n.getBoxes("trun"),o=null;if(0===a.length)return null;o=a[0],a.length>1&&D("Warning: Too many truns");for(var s=r.offset+o.data_offset,u=o.sample_count,l=s,f=i.baseMediaDecodeTime,d=new DataView(e),c={startTime:null,endTime:null,fields:[[],[]]},g=0,p=0;p<u;p++){for(var h=o.samples[p],v=f+g+h.sample_composition_time_offset,m=R["default"].findCea608Nalus(d,l,h.sample_size),_=0;_<m.length;_++)for(var y=R["default"].extractCea608DataFromRange(d,m[_]),E=0;E<2;E++)y[E].length>0&&t(c.fields[E],v,y[E]);g+=h.sample_duration,l+=h.sample_size}var T=f+g;return c.startTime=f,c.endTime=T,c}function i(e){for(var t="",n=0;n<e.length;++n){var r=e[n];t+=r.uchar}var i=t.length,a=t.replace(/^\s+/,"").length;return i-a}function a(e){return"left: "+3.125*e.x+"%; top: "+6.66*e.y1+"%; width: "+(100-3.125*e.x)+"%; height: "+6.66*Math.max(e.y2-1-e.y1,1)+"%; align-items: flex-start; overflow: visible; -webkit-writing-mode: horizontal-tb;"}function s(e){return"red"==e?"rgb(255, 0, 0)":"green"==e?"rgb(0, 255, 0)":"blue"==e?"rgb(0, 0, 255)":"cyan"==e?"rgb(0, 255, 255)":"magenta"==e?"rgb(255, 0, 255)":"yellow"==e?"rgb(255, 255, 0)":"white"==e?"rgb(255, 255, 255)":"black"==e?"rgb(0, 0, 0)":e}function l(e,t){var n=e.videoHeight/15;return t?"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; color: "+(t.foreground?s(t.foreground):"rgb(255, 255, 255)")+"; font-style: "+(t.italics?"italic":"normal")+"; text-decoration: "+(t.underline?"underline":"none")+"; white-space: pre; background-color: "+(t.background?s(t.background):"transparent")+";":"font-size: "+n+"px; font-family: Menlo, Consolas, 'Cutive Mono', monospace; justify-content: flex-start; text-align: left; color: rgb(255, 255, 255); font-style: normal; white-space: pre; line-height: normal; font-weight: normal; text-decoration: none; width: 100%; display: flex;"}function d(e){var t=e.replace(/^\s+/g,"");return t}function g(e){var t=e.replace(/\s+$/g,"");return t}function p(e,t,n,r){var o=null,s=null,u=!1,f=-1,c={start:t,end:n,spans:[]},p="style_cea608_white_black",h={},v={},m=[],_=void 0,y=void 0;for(_=0;_<15;++_){var E=r.rows[_],T="",S=null;if(!1===E.isEmpty()){var I=i(E.chars);null===o&&(o={x:I,y1:_,y2:_+1,p:[]}),I!==f&&u&&(o.p.push(c),c={start:t,end:n,spans:[]},o.y2=_,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===h.hasOwnProperty(o.name)?(m.push(o),h[o.name]=o):(s=h[o.name],s.p.contat(o.p)),o={x:I,y1:_,y2:_+1,p:[]});for(var R=0;R<E.chars.length;++R){var A=E.chars[R],M=A.penState;if(null===S||!M.equals(S)){T.trim().length>0&&(c.spans.push({name:p,line:T,row:_}),T="");var b="style_cea608_"+M.foreground+"_"+M.background;M.underline&&(b+="_underline"),M.italics&&(b+="_italics"),v.hasOwnProperty(b)||(v[b]=JSON.parse(JSON.stringify(M))),S=M,p=b}T+=A.uchar}T.trim().length>0&&c.spans.push({name:p,line:T,row:_}),u=!0,f=I}else u=!1,f=-1,o&&(o.p.push(c),c={start:t,end:n,spans:[]},o.y2=_,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===h.hasOwnProperty(o.name)?(m.push(o),h[o.name]=o):(s=h[o.name],s.p.contat(o.p)),o=null)}o&&(o.p.push(c),o.y2=_+1,o.name="region_"+o.x+"_"+o.y1+"_"+o.y2,!1===h.hasOwnProperty(o.name)?(m.push(o),h[o.name]=o):(s=h[o.name],s.p.contat(o.p)),o=null);var C=[];for(_=0;_<m.length;++_){var D=m[_],O="sub_cea608_"+P++,w=document.createElement("div");
|
28 |
+
w.id=O;var N=a(D);w.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+N;var L=document.createElement("div");L.className="paragraph bodyStyle",L.style.cssText=l(e);var x=document.createElement("div");x.className="cueUniWrapper",x.style.cssText="unicode-bidi: normal; direction: ltr;";for(var F=0;F<D.p.length;++F){var U=D.p[F],B=0;for(y=0;y<U.spans.length;++y){var k=U.spans[y];if(k.line.length>0){if(0!==y&&B!=k.row){var j=document.createElement("br");j.className="lineBreak",x.appendChild(j)}var K=!1;B===k.row&&(K=!0),B=k.row;var H=v[k.name],q=document.createElement("span");q.className="spanPadding "+k.name+" customSpanColor",q.style.cssText=l(e,H),0!==y&&K?y===U.spans.length-1?q.textContent=g(k.line):q.textContent=k.line:0===y&&U.spans.length>1&&k.row===U.spans[1].row?q.textContent=d(k.line):q.textContent=k.line.trim(),x.appendChild(q)}}}L.appendChild(x),w.appendChild(L);var Y={bodyStyle:90};for(y in v)v.hasOwnProperty(y)&&(Y[y]=90);C.push({type:"html",start:t,end:n,cueHTMLElement:w,cueID:O,cellResolution:[32,15],isFromCEA608:!0,regions:m,regionID:D.name,videoHeight:e.videoHeight,videoWidth:e.videoWidth,fontSize:Y||{defaultFontSize:"100"},lineHeight:{},linePadding:{}})}return C}function h(){Y.deleteAllTextTracks(),B=!1,k=null,H=null,q=null,Y=null,G=!1,V=null,z=!1,W=NaN,Q=[],X=null,Z=null,O=!1,ee=null}function m(e){O||t(),"CC1"===e.id||"CC3"===e.id?ee.push(e):D("Warning: Embedded track "+e.id+" not supported!")}function y(){O=!1,ee=[],ae=[null,null],ie=[],re=null}function T(){return B}function I(e){e&&(e.errHandler&&(L=e.errHandler),e.adapter&&(x=e.adapter),e.dashManifestModel&&(F=e.dashManifestModel),e.mediaController&&(U=e.mediaController),e.videoModel&&(X=e.videoModel),e.streamController&&(Z=e.streamController),e.textTracks&&(Y=e.textTracks),e.VTTParser&&(j=e.VTTParser),e.TTMLParser&&(K=e.TTMLParser))}function A(){for(var e=X.getElement(),t=e.textTracks,n=t.length,r=n-ee.length,i=Y.getCurrentTrackIdx(),a=0;a<n;a++){var o=t[a];if(B="showing"!==o.mode,"showing"===o.mode){if(i!==a&&(Y.setCurrentTrackIdx(a),Y.addCaptions(a,0,null),G&&a<r)){var s=U.getCurrentTrackFor("fragmentedText",Z.getActiveStreamInfo()),u=Q[a];u!==s&&(V.abortRequests(),Y.deleteTrackCues(s),U.setTrack(u),$=a)}break}}B&&Y.setCurrentTrackIdx(-1)}function M(e){var t=!1;return ee.length>1?t=e.id&&"CC1"===e.id:1===ee.length?e.id&&"CC"===e.id.substring(0,2)&&(t=!0):t=e.index===q[0].index,t}function b(e){var t;return e.search("vtt")>=0?t=j:(e.search("ttml")>=0||e.search("stpp")>=0)&&(t=K,t.setConfig({videoModel:X})),t}var C=this.context,D=(0,v["default"])(C).getInstance().log,O=!1,P=0,w=void 0,N=void 0,L=void 0,x=void 0,F=void 0,U=void 0,B=void 0,k=void 0,j=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,ie=void 0,ae=void 0;return w={initialize:e,append:n,abort:h,getAllTracksAreDisabled:T,setTextTrack:A,setConfig:I,addEmbeddedTrack:m,resetEmbedded:y}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(173),o=r(a),s=n(87),u=r(s),l=n(49),f=r(l),d=n(67),c=r(d),g=n(1),p=r(g),h=n(4),v=r(h),m=n(19),_=r(m),y=n(39),E=r(y),T=n(71),S=r(T),I=n(52),R=r(I);i.__dashjs_factory_name="TextSourceBuffer",t["default"]=p["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){pe=c["default"].QUALITY_DEFAULT,he=!1,ve=0,me=Number.POSITIVE_INFINITY,ye=0,Ee=0,Se=null,Ie=O,Ae=0,Me=!1,be=!1,Ce=!1,De=!1}function n(e,t,n){Te=e,J(t),Pe=n,Le=(0,u["default"])(ne).getInstance(),Oe=(0,p["default"])(ne).getInstance(),we=(0,c["default"])(ne).getInstance(),xe=(0,C["default"])(ne).getInstance(),Ne=Pe.getScheduleController(),pe=we.getQualityFor(Te,Pe.getStreamInfo()),ie.on(E["default"].DATA_UPDATE_COMPLETED,j,this),ie.on(E["default"].INIT_FRAGMENT_LOADED,a,this),ie.on(E["default"].MEDIA_FRAGMENT_LOADED,l,this),ie.on(E["default"].QUALITY_CHANGE_REQUESTED,h,this),ie.on(E["default"].STREAM_COMPLETED,K,this),ie.on(E["default"].PLAYBACK_PROGRESS,y,this),ie.on(E["default"].PLAYBACK_TIME_UPDATED,y,this),ie.on(E["default"].PLAYBACK_RATE_CHANGED,Y,this),ie.on(E["default"].PLAYBACK_SEEKING,m,this),ie.on(E["default"].WALLCLOCK_TIME_UPDATED,q,this),ie.on(E["default"].CURRENT_TRACK_CHANGED,H,this,_["default"].EVENT_PRIORITY_HIGH),ie.on(E["default"].SOURCEBUFFER_APPEND_COMPLETED,g,this),ie.on(E["default"].SOURCEBUFFER_REMOVE_COMPLETED,B,this)}function r(e){if(!e||!_e||!Pe)return null;var t=null;try{t=se.createSourceBuffer(_e,e),t&&t.hasOwnProperty("initialize")&&t.initialize(Te,this)}catch(n){ue.mediaSourceError("Error creating "+Te+" source buffer.")}return Q(t),k(Pe.getRepresentationInfoForQuality(pe).MSETimeOffset),t}function i(){return Pe.getStreamInfo().id===le.getActiveStreamInfo().id}function a(e){e.fragmentModel===Pe.getFragmentModel()&&(re("Init fragment finished loading saving to",Te+"'s init cache"),xe.save(e.chunk),d(e.chunk))}function s(e,t){var n=xe.extract(e,Te,t);n?d(n):ie.trigger(E["default"].INIT_REQUESTED,{sender:ge})}function l(e){if(e.fragmentModel===Pe.getFragmentModel()){var t=e.chunk,n=t.bytes,r=t.quality,i=Pe.getRepresentationInfoForQuality(r),a=oe.getValue(),s=de.getEventsFor(a,i.mediaInfo,Pe),u=de.getEventsFor(a,i,Pe);if(s.length>0||u.length>0){var l=Pe.getFragmentModel().getRequests({state:o["default"].FRAGMENT_MODEL_EXECUTED,quality:r,index:t.index})[0],f=w(n,l,s,u);Pe.getEventController().addInbandEvents(f)}t.bytes=N(n),d(t)}}function d(e){be=!0,Re=e,se.append(Se,e),"video"===e.mediaInfo.type&&e.mediaInfo.embeddedCaptions&&ce.append(e.bytes,e)}function g(e){if(Se===e.buffer){if(e.error||!L())return e.error.code===f["default"].QUOTA_EXCEEDED_ERROR_CODE&&(me=.8*se.getTotalBufferedTime(Se)),void(e.error.code!==f["default"].QUOTA_EXCEEDED_ERROR_CODE&&L()||(ie.trigger(E["default"].QUOTA_EXCEEDED,{sender:ge,criticalBufferLevel:me}),U(F())));isNaN(Re.index)||(ye=Math.max(Re.index,ye),R());var t=se.getAllRanges(Se);if(t&&t.length>0)for(var n=0,r=t.length;n<r;n++)re("Buffered Range for type:",Te,":",t.start(n)," - ",t.end(n));y(),be=!1,ie.trigger(E["default"].BYTES_APPENDED,{sender:ge,quality:Re.quality,startTime:Re.start,index:Re.index,bufferedRanges:t})}}function h(e){pe!==e.newQuality&&Te===e.mediaType&&Pe.getStreamInfo().id===e.streamInfo.id&&(k(Pe.getRepresentationInfoForQuality(e.newQuality).MSETimeOffset),pe=e.newQuality)}function m(){Ee=0,he=!1,y()}function y(){T(),I()}function T(){ve=se.getBufferLength(Se,Oe.getTime()),ie.trigger(E["default"].BUFFER_LEVEL_UPDATED,{sender:ge,bufferLevel:ve}),A()}function I(){i()&&(ae.addBufferState(Te,Ie,Ne.getBufferTarget()),ae.addBufferLevel(Te,new Date,1e3*ve))}function R(){var e=ye===Ee-1;e&&!he&&(he=!0,ie.trigger(E["default"].BUFFERING_COMPLETED,{sender:ge,streamInfo:Pe.getStreamInfo()}))}function A(){b(ve<P&&!he?O:D)}function b(e){Ie===e||"fragmentedText"===Te&&ce.getAllTracksAreDisabled()||(Ie=e,I(),ie.trigger(E["default"].BUFFER_LEVEL_STATE_CHANGED,{sender:ge,state:e,mediaType:Te,streamInfo:Pe.getStreamInfo()}),ie.trigger(e===D?E["default"].BUFFER_LOADED:E["default"].BUFFER_EMPTY,{mediaType:Te}),re(e===D?"Got enough buffer to start.":"Waiting for more buffer before starting playback."))}function w(e,t,n,r){var i=Math.max(isNaN(t.startTime)?0:t.startTime,0),a=[],o=[];De=!1;for(var s=n.concat(r),u=0,l=s.length;u<l;u++)a[s[u].schemeIdUri]=s[u];for(var f=(0,S["default"])(ne).getInstance().parse(e),d=f.getBoxes("emsg"),u=0,l=d.length;u<l;u++){var c=de.getEvent(d[u],a,i);c&&o.push(c)}return o}function N(e){if(!De)return e;for(var t=e.length,n=Math.pow(256,2),r=Math.pow(256,3),i=new Uint8Array(e.length),a=0,o=0;a<t;){var s=String.fromCharCode(e[a+4],e[a+5],e[a+6],e[a+7]),u=e[a]*r+e[a+1]*n+256*e[a+2]+1*e[a+3];if("emsg"!=s)for(var l=a;l<a+u;l++)i[o]=e[l],o++;a+=u}return i.subarray(0,o)}function L(){var e=se.getTotalBufferedTime(Se);return e<me}function x(){if("fragmentedText"!==Te){var e=Se.buffered.length?Se.buffered.start(0):0,t=Oe.getTime()-e-Le.getBufferToKeep();t>0&&(re("pruning buffer: "+t+" seconds."),Ce=!0,se.remove(Se,0,Math.round(e+t),_e))}}function F(){if(!Se)return null;var e=Oe.getTime(),t=Pe.getFragmentModel().getRequests({state:o["default"].FRAGMENT_MODEL_EXECUTED,time:e})[0],n=se.getBufferRange(Se,e),r=t&&!isNaN(t.startTime)?t.startTime:Math.floor(e);return null===n&&Se.buffered.length>0&&(r=Se.buffered.end(Se.buffered.length-1)),{start:Se.buffered.start(0),end:r}}function U(e){e&&Se&&se.remove(Se,e.start,e.end,_e)}function B(e){Se===e.buffer&&(Ce&&(Ce=!1),T(),ie.trigger(E["default"].BUFFER_CLEARED,{sender:ge,from:e.from,to:e.to,hasEnoughSpaceToAppend:L()}))}function k(e){Se&&Se.timestampOffset!==e&&!isNaN(e)&&(Se.timestampOffset=e)}function j(e){e.sender.getStreamProcessor()!==Pe||e.error||k(e.currentRepresentation.MSETimeOffset)}function K(e){e.fragmentModel===Pe.getFragmentModel()&&(Ee=e.request.index,R())}function H(e){Se&&e.newMediaInfo.type===Te&&e.newMediaInfo.streamInfo.id===Pe.getStreamInfo().id&&fe.getSwitchMode(Te)===v["default"].TRACK_SWITCH_MODE_ALWAYS_REPLACE&&U(F())}function q(){Ae++;var e=Ae*(Le.getWallclockTimeUpdateInterval()/1e3);e>=Le.getBufferPruningInterval()&&!be&&(Ae=0,x())}function Y(){A()}function G(){return Te}function V(){return Pe}function z(e){Pe=e}function W(){return Se}function Q(e){Se=e}function X(){return ve}function Z(){return me}function J(e){_e=e}function $(){return _e}function ee(){return he}function te(e){ie.off(E["default"].DATA_UPDATE_COMPLETED,j,this),ie.off(E["default"].QUALITY_CHANGE_REQUESTED,h,this),ie.off(E["default"].INIT_FRAGMENT_LOADED,a,this),ie.off(E["default"].MEDIA_FRAGMENT_LOADED,l,this),ie.off(E["default"].STREAM_COMPLETED,K,this),ie.off(E["default"].CURRENT_TRACK_CHANGED,H,this),ie.off(E["default"].PLAYBACK_PROGRESS,y,this),ie.off(E["default"].PLAYBACK_TIME_UPDATED,y,this),ie.off(E["default"].PLAYBACK_RATE_CHANGED,Y,this),ie.off(E["default"].PLAYBACK_SEEKING,m,this),ie.off(E["default"].WALLCLOCK_TIME_UPDATED,q,this),ie.off(E["default"].SOURCEBUFFER_APPEND_COMPLETED,g,this),ie.off(E["default"].SOURCEBUFFER_REMOVE_COMPLETED,B,this),me=Number.POSITIVE_INFINITY,Ie=O,pe=c["default"].QUALITY_DEFAULT,Ee=0,ye=0,Re=null,Me=!1,he=!1,be=!1,Ce=!1,Oe=null,Pe=null,we=null,Ne=null,e||(se.abort(_e,Se),se.removeSourceBuffer(_e,Se)),Se=null}var ne=this.context,re=(0,M["default"])(ne).getInstance().log,ie=(0,_["default"])(ne).getInstance(),ae=e.metricsModel,oe=e.manifestModel,se=e.sourceBufferController,ue=e.errHandler,le=e.streamController,fe=e.mediaController,de=e.adapter,ce=e.textSourceBuffer,ge=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,_e=void 0,ye=void 0,Ee=void 0,Te=void 0,Se=void 0,Ie=void 0,Re=void 0,Ae=void 0,Me=void 0,be=void 0,Ce=void 0,De=void 0,Oe=void 0,Pe=void 0,we=void 0,Ne=void 0,Le=void 0,xe=void 0;return ge={initialize:n,createBuffer:r,getType:G,getStreamProcessor:V,setStreamProcessor:z,getBuffer:W,setBuffer:Q,getBufferLevel:X,getCriticalBufferLevel:Z,setMediaSource:J,getMediaSource:$,getIsBufferingCompleted:ee,switchInitData:s,reset:te},t(),ge}Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),o=r(a),s=n(5),u=r(s),l=n(28),f=r(l),d=n(10),c=r(d),g=n(9),p=r(g),h=n(13),v=r(h),m=n(3),_=r(m),y=n(2),E=r(y),T=n(49),S=r(T),I=n(1),R=r(I),A=n(4),M=r(A),b=n(68),C=r(b),D="bufferLoaded",O="bufferStalled",P=.5;i.__dashjs_factory_name="BufferController";var w=R["default"].getClassFactory(i);w.BUFFER_LOADED=D,w.BUFFER_EMPTY=O,t["default"]=w,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){T=[]}function t(e){!_||_.readyState<2||(_.playbackRate=e)}function n(e){if(_.currentTime!=e)try{_.currentTime=e}catch(t){0===_.readyState&&t.code===t.INVALID_STATE_ERR&&setTimeout(function(){_.currentTime=e},400)}}function r(){return _}function i(e){_=e,_.preload="auto"}function a(e){e?_.src=e:(_.removeAttribute("src"),_.load())}function o(){return _.src}function s(){return E}function u(e){E=e}function l(){return y}function f(e){y=e,y.style.position="absolute",y.style.display="flex",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.top=0,y.style.left=0}function d(e,t){h(e,t)}function c(){return T.length>0}function g(e){var n=void 0;null===e||_.seeking||T.indexOf(e)!==-1||(T.push(e),1===T.length&&(n=document.createEvent("Event"),n.initEvent("waiting",!0,!1),S=_.playbackRate,t(0),_.dispatchEvent(n)))}function p(e){var n=T.indexOf(e),r=void 0;null!==e&&(n!==-1&&T.splice(n,1),c()===!1&&0===_.playbackRate&&(r=document.createEvent("Event"),r.initEvent("playing",!0,!1),t(S||1),_.dispatchEvent(r)))}function h(e,t){t?g(e):p(e)}function v(){var e="webkitDroppedFrameCount"in _,t="getVideoPlaybackQuality"in _,n=null;return t?n=_.getVideoPlaybackQuality():e&&(n={droppedVideoFrames:_.webkitDroppedFrameCount,creationTime:new Date}),n}var m=void 0,_=void 0,y=void 0,E=void 0,T=void 0,S=void 0;return m={initialize:e,setCurrentTime:n,setStallState:d,getElement:r,setElement:i,setSource:a,getSource:o,getVideoContainer:s,setVideoContainer:u,getTTMLRenderingDiv:l,setTTMLRenderingDiv:f,getPlaybackQuality:v}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="VideoModel",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){pe=null,ce=[],Re=(0,E["default"])(z).getInstance(),ve=!0,me=!1,_e=!1,Ae=!1,Me=!0,be=null,ye=!1,Ee=!1}function t(e,t){ve=e,he=t,de.initialize(),le=(0,b["default"])(z).getInstance(),J=(0,f["default"])(z).getInstance(),J.setConfig({log:W,manifestModel:ee,dashManifestModel:te}),J.initialize($),Se=(0,_["default"])(z).getInstance(),Ie=(0,o["default"])(z).getInstance(),Ie.setConfig({streamController:X,timelineConverter:de,metricsModel:re,dashMetrics:ie,manifestModel:ee,dashManifestModel:te,adapter:ne,videoModel:Se}),Q.on(p["default"].TIME_SYNCHRONIZATION_COMPLETED,L,this),Q.on(p["default"].PLAYBACK_SEEKING,g,this),Q.on(p["default"].PLAYBACK_TIME_UPDATED,l,this),Q.on(p["default"].PLAYBACK_ENDED,d,this),Q.on(p["default"].PLAYBACK_ERROR,s,this),Q.on(p["default"].PLAYBACK_STARTED,h,this),Q.on(p["default"].PLAYBACK_PAUSED,m,this),Q.on(p["default"].MANIFEST_UPDATED,x,this),Q.on(p["default"].STREAM_BUFFERING_COMPLETED,y,this)}function n(e,t){t=t||new Date,be&&(ge&&ge.getProcessors().forEach(function(n){var r=n.getScheduleController();r&&r.finalisePlayList(t,e)}),re.addPlayList(be),be=null)}function r(e){be=new I.PlayList,be.start=new Date,be.mstart=1e3*Ie.getTime(),be.starttype=e,ge&&ge.getProcessors().forEach(function(e){var t=e.getScheduleController();t&&t.setPlayList(be)})}function i(e,t,n){Q.trigger(e,{fromStreamInfo:t?t.getStreamInfo():null,toStreamInfo:n.getStreamInfo()})}function a(){ge.isActivated()&&Me&&0===ge.getStreamInfo().index&&(ge.startEventController(),ve&&Ie.play())}function s(e){if(e.error){var t="";switch(e.error.code){case 1:t="MEDIA_ERR_ABORTED";break;case 2:t="MEDIA_ERR_NETWORK";break;case 3:t="MEDIA_ERR_DECODE";break;case 4:t="MEDIA_ERR_SRC_NOT_SUPPORTED";break;case 5:t="MEDIA_ERR_ENCRYPTED";break;default:t="UNKNOWN"}ye=!0,e.error.msExtendedCode&&(t+=" (0x"+(e.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),W("Video Element Error: "+t),e.error&&W(e.error),fe.mediaSourceError(t),G()}}function l(e){if(F()){var t=Se.getPlaybackQuality();t&&re.addDroppedFrames("video",t)}Ie.isSeeking()||e.timeToEnd<V&&oe.signalEndOfStream(Te)}function d(){var e=T();e&&C(ge,e,NaN),n(e?I.PlayListTrace.END_OF_PERIOD_STOP_REASON:I.PlayListTrace.END_OF_CONTENT_STOP_REASON)}function g(e){var t=S(e.seekTime);t&&t!==ge?(n(I.PlayListTrace.END_OF_PERIOD_STOP_REASON),C(ge,t,e.seekTime)):n(I.PlayListTrace.USER_REQUEST_STOP_REASON),r(I.PlayList.SEEK_START_REASON)}function h(){Me?(Me=!1,r(I.PlayList.INITIAL_PLAYOUT_START_REASON)):Ae&&(Ae=!1,r(I.PlayList.RESUME_FROM_PAUSE_START_REASON))}function m(e){e.ended||(Ae=!0,n(I.PlayListTrace.USER_REQUEST_STOP_REASON))}function y(e){Te&&e.streamInfo.isLast&&oe.signalEndOfStream(Te)}function T(){var e=ge.getStreamInfo().start,t=ge.getStreamInfo().duration;return ce.filter(function(n){return n.getStreamInfo().start===e+t})[0]}function S(e){var t=0,n=null,r=ce.length;r>0&&(t+=ce[0].getStartTime());for(var i=0;i<r;i++)if(n=ce[i],t+=n.getDuration(),e<t)return n;return null}function R(e,t){for(var n=null,r=0,i=0,a=null,o=ce.length,s=0;s<o;s++){if(n=ce[s],i=n.getStartTime(),a=n.getDuration(),Number.isFinite(i)&&(r=i),n.getId()===t)return e-r;Number.isFinite(a)&&(r+=a)}return null}function M(){var e=[];return ge.getProcessors().forEach(function(t){e.push(t.getIndexHandler().getEarliestTime())}),Math.min.apply(Math,e)}function C(e,t,n){function r(){isNaN(n)?!function(){var e=Ie.getStreamStartTime(!0);ge.getProcessors().forEach(function(t){ne.setIndexHandlerTime(t,e)}),Ie.seek(e)}():Ie.seek(n),Ie.play(),ge.startEventController(),me=!1,i(p["default"].PERIOD_SWITCH_COMPLETED,e,t)}!me&&e&&t&&e!==t&&(me=!0,i(p["default"].PERIOD_SWITCH_STARTED,e,t),e.deactivate(),ge=t,Ie.initialize(ge.getStreamInfo()),Ce=U(),D(r))}function D(e){function t(){W("MediaSource is open!"),window.URL.revokeObjectURL(n),Te.removeEventListener("sourceopen",t),Te.removeEventListener("webkitsourceopen",t),O(),ge.activate(Te),e&&e()}var n=void 0;Te?oe.detachMediaSource(Se):Te=oe.createMediaSource(),Te.addEventListener("sourceopen",t,!1),Te.addEventListener("webkitsourceopen",t,!1),n=oe.attachMediaSource(Te,Se),W("MediaSource attached to element. Waiting on open...")}function O(){var e,t;e=ge.getStreamInfo().manifestInfo.duration,t=oe.setDuration(Te,e),W("Duration successfully set to: "+t)}function P(){var e,t,n,r,a,o,s,l=ee.getValue(),f=re.getMetricsFor("stream"),d=ie.getCurrentManifestUpdate(f),c=[];if(l){o=ne.getStreamsInfo(l),pe&&(Q.trigger(p["default"].PROTECTION_CREATED,{controller:pe,manifest:l}),pe.setMediaElement(Se.getElement()),he&&pe.setProtectionData(he));try{if(0===o.length)throw new Error("There are no streams");for(re.updateManifestUpdateInfo(d,{currentTime:Ie.getTime(),buffered:Se.getElement().buffered,presentationStartTime:o[0].start,clientTimeOffset:de.getClientTimeOffset()}),_e=!0,r=0,t=o.length;r<t;r++){for(e=o[r],a=0,n=ce.length;a<n;a++)ce[a].getId()===e.id&&(s=ce[a],c.push(s),s.updateData(e));s||(s=(0,u["default"])(z).create({manifestModel:ee,manifestUpdater:J,adapter:ne,timelineConverter:de,capabilities:Z,errHandler:fe,baseURLController:ue}),s.initialize(e,pe),Q.on(p["default"].STREAM_INITIALIZED,N,this),c.push(s),ge&&s.updateData(e)),re.addManifestUpdateStreamInfo(d,e.id,e.index,e.start,e.duration),s=null}ce=c,ge||(ge=ce[0],i(p["default"].PERIOD_SWITCH_STARTED,null,ge),Ie.initialize(ge.getStreamInfo()),i(p["default"].PERIOD_SWITCH_COMPLETED,null,ge)),Te||D(),_e=!1,w()}catch(g){fe.manifestError(g.message,"nostreamscomposed",l),Ee=!0,G()}}}function w(){if(!_e){var e=ce.length,t=0;for(a(),t;t<e;t++)if(!ce[t].isInitialized())return;Q.trigger(p["default"].STREAMS_COMPOSED)}}function N(){w()}function L(){P()}function x(e){if(e.error)Ee=!0,G();else{var t,n,r=e.manifest,i=ne.getStreamsInfo(r)[0],a=ne.getMediaInfoForType(r,i,"video")||ne.getMediaInfoForType(r,i,"audio");a&&(t=ne.getDataForMedia(a),n=te.getRepresentationsForAdaptation(r,t)[0].useCalculatedLiveEdgeTime,n&&(W("SegmentTimeline detected using calculated Live Edge Time"),Re.setUseManifestDateHeaderTimeSource(!1)));var o=te.getUTCTimingSources(e.manifest),s=!te.getIsDynamic(r)||n?o:o.concat(Re.getUTCTimingSources()),u=(0,v["default"])(z).getInstance().isManifestHTTPS();s.forEach(function(e){e.value.replace(/.*?:\/\//g,"")===E["default"].DEFAULT_UTC_TIMING_SOURCE.value.replace(/.*?:\/\//g,"")&&(e.value=e.value.replace(u?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),u?"https://":"http://"),W("Matching default timing source protocol to manifest protocol: ",e.value))}),ue.initialize(r),se.setConfig({metricsModel:re,dashMetrics:ie}),se.initialize(s,Re.getUseManifestDateHeaderTimeSource())}}function F(){return void 0===Ce&&(Ce=U()),Ce}function U(){var e=!1;return ge.getProcessors().forEach(function(t){"video"===t.getMediaInfo().type&&(e=!0)}),e}function B(){return ve}function k(){return ge?ge.getStreamInfo():null}function j(e){return ge.getId()===e.id}function K(e){return ce.filter(function(t){return t.getId()===e})[0]}function H(e){$.load(e)}function q(e){J.setManifest(e)}function Y(e){e&&(e.capabilities&&(Z=e.capabilities),e.manifestLoader&&($=e.manifestLoader),e.manifestModel&&(ee=e.manifestModel),e.dashManifestModel&&(te=e.dashManifestModel),e.protectionController&&(pe=e.protectionController),e.adapter&&(ne=e.adapter),e.metricsModel&&(re=e.metricsModel),e.dashMetrics&&(ie=e.dashMetrics),e.liveEdgeFinder&&(ae=e.liveEdgeFinder),e.mediaSourceController&&(oe=e.mediaSourceController),e.timeSyncController&&(se=e.timeSyncController),e.baseURLController&&(ue=e.baseURLController),e.errHandler&&(fe=e.errHandler),e.timelineConverter&&(de=e.timelineConverter))}function G(){se.reset(),n(ye||Ee?I.PlayListTrace.FAILURE_STOP_REASON:I.PlayListTrace.USER_REQUEST_STOP_REASON);for(var e=0,t=ce.length;e<t;e++){var r=ce[e];Q.off(p["default"].STREAM_INITIALIZED,N,this),r.reset(ye)}ce=[],Q.off(p["default"].PLAYBACK_TIME_UPDATED,l,this),Q.off(p["default"].PLAYBACK_SEEKING,g,this),Q.off(p["default"].PLAYBACK_ERROR,s,this),Q.off(p["default"].PLAYBACK_STARTED,h,this),Q.off(p["default"].PLAYBACK_PAUSED,m,this),Q.off(p["default"].PLAYBACK_ENDED,d,this),Q.off(p["default"].MANIFEST_UPDATED,x,this),Q.off(p["default"].STREAM_BUFFERING_COMPLETED,y,this),ue.reset(),J.reset(),re.clearAllCurrentMetrics(),ee.setValue(null),$.reset(),de.reset(),ae.reset(),ne.reset(),le.reset(),me=!1,_e=!1,ge=null,ye=!1,Ee=!1,Ce=void 0,Me=!0,Ae=!1,Te&&(oe.detachMediaSource(Se),Te=null),Se=null,pe&&(pe.setMediaElement(null),pe=null,he=null,ee.getValue()&&Q.trigger(p["default"].PROTECTION_DESTROYED,{data:ee.getValue().url})),Q.trigger(p["default"].STREAM_TEARDOWN_COMPLETE)}var V=1,z=this.context,W=(0,A["default"])(z).getInstance().log,Q=(0,c["default"])(z).getInstance(),X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,ie=void 0,ae=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,fe=void 0,de=void 0,ce=void 0,ge=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,_e=void 0,ye=void 0,Ee=void 0,Te=void 0,Se=void 0,Ie=void 0,Re=void 0,Ae=void 0,Me=void 0,be=void 0,Ce=void 0;return X={initialize:t,getAutoPlay:B,getActiveStreamInfo:k,isStreamActive:j,isVideoTrackPresent:F,getStreamById:K,getTimeRelativeToStreamId:R,load:H,loadWithManifest:q,getActiveStreamCommonEarliestTime:M,setConfig:Y,reset:G},e(),X}Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),o=r(a),s=n(101),u=r(s),l=n(99),f=r(l),d=n(3),c=r(d),g=n(2),p=r(g),h=n(40),v=r(h),m=n(19),_=r(m),y=n(5),E=r(y),T=n(1),S=r(T),I=n(70),R=n(4),A=r(R),M=n(68),b=r(M);i.__dashjs_factory_name="StreamController",t["default"]=S["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(34),s=r(o),u=function(){function e(){i(this,e)}return a(e,null,[{key:"findCencContentProtection",value:function(e){for(var t=null,n=0;n<e.length;++n){var r=e[n];"urn:mpeg:dash:mp4protection:2011"===r.schemeIdUri.toLowerCase()&&"cenc"===r.value.toLowerCase()&&(t=r)}return t}},{key:"getPSSHData",value:function(e){var t=8,n=new DataView(e),r=n.getUint8(t);return t+=20,r>0&&(t+=4+16*n.getUint32(t)),t+=4,e.slice(t)}},{key:"getPSSHForKeySystem",value:function(t,n){var r=e.parsePSSHList(n);return r.hasOwnProperty(t.uuid.toLowerCase())?r[t.uuid.toLowerCase()]:null}},{key:"parseInitDataFromContentProtection",value:function(e){return"pssh"in e?s["default"].decodeArray(e.pssh.__text).buffer:null}},{key:"parsePSSHList",value:function(e){if(null===e)return[];for(var t=new DataView(e),n=!1,r={},i=0;!n;){var a,o,s,u,l,f=i;if(i>=t.buffer.byteLength)break;if(a=t.getUint32(i),o=i+a,i+=4,1886614376===t.getUint32(i))if(i+=4,s=t.getUint8(i),0===s||1===s){i++,i+=3,u="";var d,c;for(d=0;d<4;d++)c=t.getUint8(i+d).toString(16),u+=1===c.length?"0"+c:c;for(i+=4,u+="-",d=0;d<2;d++)c=t.getUint8(i+d).toString(16),u+=1===c.length?"0"+c:c;for(i+=2,u+="-",d=0;d<2;d++)c=t.getUint8(i+d).toString(16),u+=1===c.length?"0"+c:c;for(i+=2,u+="-",d=0;d<2;d++)c=t.getUint8(i+d).toString(16),u+=1===c.length?"0"+c:c;for(i+=2,u+="-",d=0;d<6;d++)c=t.getUint8(i+d).toString(16),u+=1===c.length?"0"+c:c;i+=6,u=u.toLowerCase(),l=t.getUint32(i),i+=4,r[u]=t.buffer.slice(f,o),i=o}else i=o;else i=o}return r}}]),e}();t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){var t="";return e.indexOf("/")!==-1&&(e.indexOf("?")!==-1&&(e=e.substring(0,e.indexOf("?"))),t=e.substring(0,e.lastIndexOf("/")+1)),t}function t(e){var t=e.match(u);return t?t[1]:""}function n(e){return!o.test(e)}function r(e){return o.test(e)&&"/"===e.charAt(0)}function i(e){return s.test(e)}var a=void 0,o=/^(?:(?:[a-z]+:)?\/)?\//i,s=/^https?:\/\//i,u=/^(https?:\/\/[^\/]+)\/?/i;return a={parseBaseUrl:e,parseOrigin:t,isRelative:n,isPathAbsolute:r,isHTTPURL:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="URLUtils",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.action=i.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer"};r.ACTION_DOWNLOAD="download",r.ACTION_COMPLETE="complete",t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e)}return r(e,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&e[i].indexOf("public_")===-1||(this[i]=e[i])}}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){for(;e.length<t;)e="0"+e;return e}function a(e,t){return e.representation.startNumber+t}function o(e,t,n){for(var r,a,o,s,u,l,f="%0",d=t.length,c=f.length;;){if(r=e.indexOf("$"+t),r<0)return e;if(a=e.indexOf("$",r+d),a<0)return e;if(o=e.indexOf(f,r+d),o>r&&o<a)switch(s=e.charAt(a-1),u=parseInt(e.substring(o+c,a-1),10),s){case"d":case"i":case"u":l=i(n.toString(),u);break;case"x":l=i(n.toString(16),u);break;case"X":l=i(n.toString(16),u).toUpperCase();break;case"o":l=i(n.toString(8),u);break;default:return e}else l=n;e=e.substring(0,r)+l+e.substring(a+1)}}function s(e,t,n,r){var i,o,s,u;return o=n.segmentDuration,isNaN(o)&&(o=n.adaptation.period.duration),s=n.adaptation.period.start+r*o,u=s+o,i=new g["default"],i.representation=n,i.duration=o,i.presentationStartTime=s,i.mediaStartTime=e.calcMediaTimeFromPresentationTime(i.presentationStartTime,n),i.availabilityStartTime=e.calcAvailabilityStartTimeFromPresentationTime(i.presentationStartTime,n.adaptation.period.mpd,t),i.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(u,n.adaptation.period.mpd,t),i.wallStartTime=e.calcWallTimeForSegment(i,t),i.replacementNumber=a(i,r),i.availabilityIdx=r,i}function u(e,t,n,r,i,s,u,l,f){var d,c,p,h=r/s,v=Math.min(i/s,n.adaptation.period.mpd.maxSegmentDuration);return d=e.calcPresentationTimeFromMediaTime(h,n),c=d+v,p=new g["default"],p.representation=n,p.duration=v,p.mediaStartTime=h,p.presentationStartTime=d,p.availabilityStartTime=n.adaptation.period.mpd.manifest.loadedTime,p.availabilityEndTime=e.calcAvailabilityEndTimeFromPresentationTime(c,n.adaptation.period.mpd,t),p.wallStartTime=e.calcWallTimeForSegment(p,t),p.replacementTime=r,p.replacementNumber=a(p,f),u=o(u,"Number",p.replacementNumber),u=o(u,"Time",p.replacementTime),p.media=u,p.mediaRange=l,p.availabilityIdx=f,p}function l(e,t){if(!t||!t.segments)return null;var n,r,i=t.segments.length;if(e<i&&(n=t.segments[e],n&&n.availabilityIdx===e))return n;for(r=0;r<i;r++)if(n=t.segments[r],n&&n.availabilityIdx===e)return n;return null}function f(e,t,n,r,i){var a,o,s,u=2,l=i||10,f=0,d=Number.POSITIVE_INFINITY;return t&&!e.isTimeSyncCompleted()?s={start:f,end:d}:!t&&n||r<0?null:(a=Math.max(r-u,f),o=Math.min(r+l,d),s={start:a,end:o})}function d(e,t,n,r,i,a){var o,s,u,f=n.segmentDuration,d=n.adaptation.period.mpd.manifest.minBufferTime,c=n.segmentAvailabilityRange,g={start:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,c.start),end:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,c.end)},p=n.segments,h=2*f,v=a||Math.max(2*d,10*f),m=NaN,_=null;return g.start=Math.max(g.start,0),t&&!e.isTimeSyncCompleted()?(o=Math.floor(g.start/f),s=Math.floor(g.end/f),u={start:o,end:s}):(p&&p.length>0?(_=l(i,n),m=_?e.calcPeriodRelativeTimeFromMpdRelativeTime(n,_.presentationStartTime):i>0?i*f:e.calcPeriodRelativeTimeFromMpdRelativeTime(n,r)):m=i>0?i*f:t?g.end:g.start,o=Math.floor(Math.max(m-h,g.start)/f),s=Math.floor(Math.min(o+v/f,g.end/f)),u={start:o,end:s})}Object.defineProperty(t,"__esModule",{value:!0}),t.replaceTokenForTemplate=o,t.getIndexBasedSegment=s,t.getTimeBasedSegment=u,t.getSegmentByIndex=l,t.decideSegmentListRangeForTimeline=f,t.decideSegmentListRangeForTemplate=d;var c=n(37),g=r(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){A=0,M=!1,b=NaN,I.on(u["default"].LIVE_EDGE_SEARCH_COMPLETED,_,this),I.on(u["default"].TIME_SYNCHRONIZATION_COMPLETED,y,this)}function t(){return M}function n(e){M=e}function r(){return A}function i(){return b}function a(e){b=e}function s(e,t,n,r){var i=NaN;return i=r?n&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:n?new Date(t.availabilityStartTime.getTime()+1e3*(e-A)):t.availabilityStartTime}function l(e,t,n){return s.call(this,e,t,n)}function f(e,t,n){return s.call(this,e,t,n,!0)}function d(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*A)/1e3}function c(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e+(n-r)}function g(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e-n+r}function p(e,t){var n,r,i;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,i=new Date(e.availabilityStartTime.getTime()+1e3*r)),i}function h(e,t){var n,r,i=e.adaptation.period.start,a=i+e.adaptation.period.duration,o={start:i,end:a},s=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0);if(!t)return o;if(!M&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;n=e.adaptation.period.mpd.checkTime,r=d(new Date,e.adaptation.period),i=Math.max(r-e.adaptation.period.mpd.timeShiftBufferDepth,e.adaptation.period.start);
|
29 |
+
var u=isNaN(n)?r:Math.min(n,r),l=e.adaptation.period.start+e.adaptation.period.duration;return a=(u>=l&&u-s<l?l:u)-s,o={start:i,end:a}}function v(e,t){var n=e.adaptation.period.start;return t-n}function m(e,t){var n=e.adaptation.period.start;return t+n}function _(e){M||e.error||(A+=e.liveEdge-(b+e.searchTime),M=!0)}function y(e){M||e.error||(A=e.offset/1e3,M=!0)}function E(e){var t=e.presentationTimeOffset,n=e.adaptation.period.start;return n-t}function T(){I.off(u["default"].LIVE_EDGE_SEARCH_COMPLETED,_,this),I.off(u["default"].TIME_SYNCHRONIZATION_COMPLETED,y,this),A=0,M=!1,b=NaN}var S=this.context,I=(0,o["default"])(S).getInstance(),R=void 0,A=void 0,M=void 0,b=void 0;return R={initialize:e,isTimeSyncCompleted:t,setTimeSyncCompleted:n,getClientTimeOffset:r,getExpectedLiveEdge:i,setExpectedLiveEdge:a,calcAvailabilityStartTimeFromPresentationTime:l,calcAvailabilityEndTimeFromPresentationTime:f,calcPresentationTimeFromWallTime:d,calcPresentationTimeFromMediaTime:c,calcPeriodRelativeTimeFromMpdRelativeTime:v,calcMpdRelativeTimeFromPeriodRelativeTime:m,calcMediaTimeFromPresentationTime:g,calcSegmentAvailabilityRange:h,calcWallTimeForSegment:p,calcMSETimeOffset:E,reset:T}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="TimelineConverter",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){function t(){var e;h=[],v=[],m=[],e={},i(e,o.HTTPRequest.MPD_TYPE,c["default"].DOWNLOAD_ERROR_ID_MANIFEST),i(e,o.HTTPRequest.XLINK_EXPANSION_TYPE,c["default"].DOWNLOAD_ERROR_ID_XLINK),i(e,o.HTTPRequest.INIT_SEGMENT_TYPE,c["default"].DOWNLOAD_ERROR_ID_INITIALIZATION),i(e,o.HTTPRequest.MEDIA_SEGMENT_TYPE,c["default"].DOWNLOAD_ERROR_ID_CONTENT),i(e,o.HTTPRequest.INDEX_SEGMENT_TYPE,c["default"].DOWNLOAD_ERROR_ID_CONTENT),i(e,o.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,c["default"].DOWNLOAD_ERROR_ID_CONTENT),i(e,o.HTTPRequest.OTHER_TYPE,c["default"].DOWNLOAD_ERROR_ID_CONTENT),_=e}function n(e,t){var r=e.request,i=new XMLHttpRequest,a=[],o=!0,s=!0,f=new Date,c=f,p=0,y=function(e){s=!1,r.requestStartDate=f,r.requestEndDate=new Date,r.firstByteDate=r.firstByteDate||f,r.checkExistenceOnly||d.addHttpRequest(r.mediaType,null,r.type,r.url,i.responseURL||null,r.serviceLocation||null,r.range||null,r.requestStartDate,r.firstByteDate,r.requestEndDate,i.status,r.duration,i.getAllResponseHeaders(),e?a:null)},E=function(){h.indexOf(i)!==-1&&(h.splice(h.indexOf(i),1),s&&(y(!1),t>0?(t--,m.push(setTimeout(function(){n(e,t)},u.getRetryIntervalForType(r.type)))):(l.downloadError(_[r.type],r.url,r),e.error&&e.error(r,"error",i.statusText),e.complete&&e.complete(r,i.statusText))))},T=function(t){var n=new Date;o&&(o=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(r.firstByteDate=n)),t.lengthComputable&&(r.bytesLoaded=t.loaded,r.bytesTotal=t.total),a.push({s:c,d:n.getTime()-c.getTime(),b:[t.loaded?t.loaded-p:0]}),c=n,p=t.loaded,e.progress&&e.progress()},S=function(){i.status>=200&&i.status<=299&&(y(!0),e.success&&e.success(i.response,i.statusText,i),e.complete&&e.complete(r,i.statusText))};try{var I=g.modifyRequestURL(r.url),R=r.checkExistenceOnly?"HEAD":"GET";i.open(R,I,!0),r.responseType&&(i.responseType=r.responseType),r.range&&i.setRequestHeader("Range","bytes="+r.range),r.requestStartDate||(r.requestStartDate=f),i=g.modifyRequestHeader(i),i.withCredentials=u.getXHRWithCredentials(),i.onload=S,i.onloadend=E,i.onerror=E,i.onprogress=T;var A=(new Date).getTime();isNaN(r.delayLoadingTime)||A>=r.delayLoadingTime?(h.push(i),i.send()):!function(){var e={xhr:i};v.push(e),e.delayTimeout=setTimeout(function(){if(v.indexOf(e)!==-1){v.splice(v.indexOf(e),1);try{h.push(e.xhr),e.xhr.send()}catch(t){e.xhr.onerror()}}},r.delayLoadingTime-A)}()}catch(M){i.onerror()}}function r(e){e.request&&n(e,u.getRetryAttemptsForType(e.request.type))}function a(){m.forEach(function(e){return clearTimeout(e)}),m=[],v.forEach(function(e){return clearTimeout(e.delayTimeout)}),v=[],h.forEach(function(e){e.onloadend=e.onerror=e.onprogress=void 0,e.abort()}),h=[]}var s=this.context,u=(0,f["default"])(s).getInstance(),l=e.errHandler,d=e.metricsModel,g=e.requestModifier,p=void 0,h=void 0,v=void 0,m=void 0,_=void 0;return p={load:r,abort:a},t(),p}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),s=n(1),u=r(s),l=n(5),f=r(l),d=n(11),c=r(d);a.__dashjs_factory_name="XHRLoader";var g=u["default"].getClassFactory(a);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){var n=t.codec,r=null;try{if(n.match(/application\/mp4;\s*codecs="(stpp|wvtt)"/i))throw new R["default"]("not really supported");r=e.addSourceBuffer(n)}catch(i){if(!t.isText&&n.indexOf('codecs="stpp"')===-1&&n.indexOf('codecs="wvtt"')===-1)throw i;r=(0,o["default"])(y).getInstance(),r.setConfig({errHandler:(0,c["default"])(y).getInstance(),adapter:(0,f["default"])(y).getInstance(),dashManifestModel:A,mediaController:(0,u["default"])(y).getInstance(),videoModel:(0,S["default"])(y).getInstance(),streamController:(0,p["default"])(y).getInstance(),textTracks:(0,v["default"])(y).getInstance(),VTTParser:(0,_["default"])(y).getInstance(),TTMLParser:(0,E["default"])(y).getInstance()})}return r}function t(e,t){try{e.removeSourceBuffer(t)}catch(n){}}function n(e,t,n){var r,i,a=null,o=0,s=0,u=null,l=null,f=0,d=n||.15;try{a=e.buffered}catch(c){return null}if(null!==a&&void 0!==a){for(i=0,r=a.length;i<r;i++)if(o=a.start(i),s=a.end(i),null===u)f=Math.abs(o-t),t>=o&&t<s?(u=o,l=s):f<=d&&(u=o,l=s);else{if(f=o-l,!(f<=d))break;l=s}if(null!==u)return{start:u,end:l}}return null}function r(e){var t=null;try{return t=e.buffered}catch(n){return null}}function i(e){var t,n,i=r(e),a=0;if(!i)return a;for(n=0,t=i.length;n<t;n++)a+=i.end(n)-i.start(n);return a}function a(e,t,r){var i,a;return i=n(e,t,r),a=null===i?0:i.end-t}function s(e,t){if(!t)return null;var n,i,a,o,s,u,l,f,d,c=r(t);if(!c)return null;for(var g=0,p=c.length;g<p;g++){if(f=e.length>g,s=f?{start:e.start(g),end:e.end(g)}:null,n=c.start(g),i=c.end(g),!s)return d={start:n,end:i};if(a=s.start===n,o=s.end===i,!a||!o){if(a)d={start:s.end,end:i};else{if(!o)return d={start:n,end:i};d={start:n,end:s.start}}return u=e.length>g+1?{start:e.start(g+1),end:e.end(g+1)}:null,l=g+1<p?{start:c.start(g+1),end:c.end(g+1)}:null,!u||l&&l.start===u.start&&l.end===u.end||(d.end=u.start),d}}return null}function l(e,t){var n=t.bytes,r="append"in e?"append":"appendBuffer"in e?"appendBuffer":null,i="Object"===Object.prototype.toString.call(e).slice(8,-1);if(r)try{m(e,function(){i?e[r](n,t):e[r](n),m(e,function(){T.trigger(C["default"].SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n})})})}catch(a){T.trigger(C["default"].SOURCEBUFFER_APPEND_COMPLETED,{buffer:e,bytes:n,error:new R["default"](a.code,a.message,null)})}}function d(e,t,n,r){try{m(e,function(){t>=0&&n>t&&"ended"!==r.readyState&&e.remove(t,n),m(e,function(){T.trigger(C["default"].SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n})})})}catch(i){T.trigger(C["default"].SOURCEBUFFER_REMOVE_COMPLETED,{buffer:e,from:t,to:n,error:new R["default"](i.code,i.message,null)})}}function g(e,t){try{"open"===e.readyState?t.abort():t.setTextTrack&&"ended"===e.readyState&&t.abort()}catch(n){}}function h(e){e&&e.dashManifestModel&&(A=e.dashManifestModel)}function m(e,t){var n,r=50,i=function(){e.updating||(clearInterval(n),t())},a=function s(){e.updating||(e.removeEventListener("updateend",s,!1),t())};if(!e.updating)return void t();if("function"==typeof e.addEventListener)try{e.addEventListener("updateend",a,!1)}catch(o){n=setInterval(i,r)}else n=setInterval(i,r)}var y=this.context,T=(0,M["default"])(y).getInstance(),I=void 0,A=void 0;return I={append:l,remove:d,abort:g,createSourceBuffer:e,removeSourceBuffer:t,getBufferRange:n,getAllRanges:r,getTotalBufferedTime:i,getBufferLength:a,getRangeDifference:s,setConfig:h}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),o=r(a),s=n(13),u=r(s),l=n(15),f=r(l),d=n(11),c=r(d),g=n(20),p=r(g),h=n(39),v=r(h),m=n(164),_=r(m),y=n(163),E=r(y),T=n(19),S=r(T),I=n(6),R=r(I),A=n(3),M=r(A),b=n(2),C=r(b),D=n(1),O=r(D),P=22;i.__dashjs_factory_name="SourceBufferController";var w=O["default"].getSingletonFactory(i);w.QUOTA_EXCEEDED_ERROR_CODE=P,t["default"]=w,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(24),l=r(u),f=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",this.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer"}return a(t,e),t}(l["default"]),d=new f;t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){D=null,w=null,O=[],P=[],M.on(u["default"].LOADING_COMPLETED,S,C)}function n(e){w=e}function r(e){D=e}function i(){return D}function a(e){var t=function(e,t){return e.action===c["default"].ACTION_COMPLETE&&e.action===t.action},n=function(e,t){return!isNaN(e.index)&&e.startTime===t.startTime&&e.adaptationIndex===t.adaptationIndex},r=function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality},i=function(i){var a=!1;return i.some(function(i){if(n(e,i)||r(e,i)||t(e,i))return a=!0}),a};return i(O)}function s(e){var t=e.state instanceof Array?e.state:[e.state],n=[];return t.forEach(function(t){var r=E(t);n=n.concat(y(r,e))}),n}function l(e){O=O.filter(function(t){return isNaN(t.startTime)||t.startTime>=e})}function f(){w.abort(),P=[]}function d(e){switch(e.action){case c["default"].ACTION_COMPLETE:O.push(e),T(e,v),M.trigger(u["default"].STREAM_COMPLETED,{request:e,fragmentModel:this});break;case c["default"].ACTION_DOWNLOAD:T(e,h),P.push(e),g(e);break;default:A("Unknown request action.")}}function g(e){M.trigger(u["default"].FRAGMENT_LOADING_STARTED,{sender:C,request:e}),w.load(e)}function m(e,t,n){for(var r=e.length-1,i=r;i>=0;i--){var a=e[i],o=a.startTime,s=o+a.duration;if(n=void 0!==n?n:a.duration/2,!isNaN(o)&&!isNaN(s)&&t+n>=o&&t-n<s||isNaN(o)&&isNaN(t))return a}return null}function y(e,t){return t.hasOwnProperty("time")?[m(e,t.time,t.threshold)]:e.filter(function(e){for(var n in t)if("state"!==n&&t.hasOwnProperty(n)&&e[n]!=t[n])return!1;return!0})}function E(e){var t=void 0;switch(e){case h:t=P;break;case v:t=O;break;default:t=[]}return t}function T(e,t){b.addSchedulingInfo(e.mediaType,new Date,e.type,e.startTime,e.availabilityStartTime,e.duration,e.quality,e.range,t),b.addRequestsQueue(e.mediaType,P,O)}function S(e){e.sender===w&&(P.splice(P.indexOf(e.request),1),e.response&&!e.error&&O.push(e.request),T(e.request,e.error?_:v),M.trigger(u["default"].FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this}))}function I(){M.off(u["default"].LOADING_COMPLETED,S,this),w&&(w.reset(),w=null),O=[],P=[]}var R=this.context,A=(0,p["default"])(R).getInstance().log,M=(0,o["default"])(R).getInstance(),b=e.metricsModel,C=void 0,D=void 0,O=void 0,P=void 0,w=void 0;return C={setLoader:n,setScheduleController:r,getScheduleController:i,getRequests:s,isFragmentLoaded:a,removeExecutedRequestsBeforeTime:l,abortRequests:f,executeRequest:d,reset:I},t(),C}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l),d=n(23),c=r(d),g=n(4),p=r(g),h="loading",v="executed",m="canceled",_="failed";i.__dashjs_factory_name="FragmentModel";var y=f["default"].getClassFactory(i);y.FRAGMENT_MODEL_LOADING=h,y.FRAGMENT_MODEL_EXECUTED=v,y.FRAGMENT_MODEL_CANCELED=m,y.FRAGMENT_MODEL_FAILED=_,t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){return a}function t(e){a=e,e&&r.trigger(u["default"].MANIFEST_LOADED,{data:e})}var n=this.context,r=(0,o["default"])(n).getInstance(),i=void 0,a=void 0;return i={getValue:e,setValue:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="ManifestModel",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){e&&e.log&&(y=e.log)}function t(){T=[];var e;e=(0,c["default"])(h).getInstance(),T.push(e),e=(0,f["default"])(h).getInstance(),T.push(e),e=(0,u["default"])(h).getInstance(),T.push(e),S=e}function n(){return T}function r(e){for(var t=0;t<T.length;t++)if(T[t].systemString===e)return T[t];return null}function i(e){return e===S}function a(e,t){if(e.byteLength===t.byteLength){for(var n=new Uint8Array(e),r=new Uint8Array(t),i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}return!1}function s(e){var t,n,r,i,a=[];if(e)for(r=0;r<T.length;++r)for(n=T[r],i=0;i<e.length;++i)if(t=e[i],t.schemeIdUri.toLowerCase()===n.schemeIdURI){var o=n.getInitData(t);o&&a.push({ks:T[r],initData:o})}return a}function l(e,t){var n,r=[],i=o["default"].parsePSSHList(e);for(n=0;n<T.length;++n){var a=T[n].systemString,s=!t||a in t;T[n].uuid in i&&s&&r.push({ks:T[n],initData:i[T[n].uuid]})}return r}function d(e,t,n){if("license-release"===n||"individualization-request"===n)return null;var r=null;return t&&t.hasOwnProperty("drmtoday")?r=(0,p["default"])(h).getInstance():"com.widevine.alpha"===e.systemString?r=(0,_["default"])(h).getInstance():"com.microsoft.playready"===e.systemString?r=(0,v["default"])(h).getInstance():"org.w3.clearkey"===e.systemString&&(r=(0,E["default"])(h).getInstance()),r}function g(e,t){try{return S.getClearKeysFromProtectionData(e,t)}catch(n){return y("Failed to retrieve clearkeys from ProtectionData"),null}}var h=this.context,m=void 0,y=void 0,T=void 0,S=void 0;return m={initialize:t,isClearKey:i,initDataEquals:a,getKeySystems:n,getKeySystemBySystemString:r,getSupportedKeySystemsFromContentProtection:s,getSupportedKeySystems:l,getLicenseServer:d,processClearKeyLicenseRequest:g,setConfig:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),o=r(a),s=n(135),u=r(s),l=n(137),f=r(l),d=n(136),c=r(d),g=n(142),p=r(g),h=n(143),v=r(h),m=n(144),_=r(m),y=n(141),E=r(y),T=n(1),S=r(T);i.__dashjs_factory_name="ProtectionKeyController",t["default"]=S["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return e}function t(e){return e}var n=void 0;return n={modifyRequestURL:e,modifyRequestHeader:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="RequestModifier",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";var r={};r.encode=function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},r.decode=function(e){for(var t=[],n=0;n<e.length;){var r=e[n++];r<128||(r<224?(r=(31&r)<<6,r|=63&e[n++]):r<240?(r=(15&r)<<12,r|=(63&e[n++])<<6,r|=63&e[n++]):(r=(7&r)<<18,r|=(63&e[n++])<<12,r|=(63&e[n++])<<6,r|=63&e[n++])),t.push(String.fromCharCode(r))}return t.join("")};var i={};!function(e){var t=function(t){for(var n=0,r=[],i=0|t.length/3;0<i--;){var a=(t[n]<<16)+(t[n+1]<<8)+t[n+2];n+=3,r.push(e.charAt(63&a>>18)),r.push(e.charAt(63&a>>12)),r.push(e.charAt(63&a>>6)),r.push(e.charAt(63&a))}if(2==t.length-n){var a=(t[n]<<16)+(t[n+1]<<8);r.push(e.charAt(63&a>>18)),r.push(e.charAt(63&a>>12)),r.push(e.charAt(63&a>>6)),r.push("=")}else if(1==t.length-n){var a=t[n]<<16;r.push(e.charAt(63&a>>18)),r.push(e.charAt(63&a>>12)),r.push("==")}return r.join("")},n=function(){for(var t=[],n=0;n<e.length;++n)t[e.charCodeAt(n)]=n;return t["=".charCodeAt(0)]=0,t}(),o=function(e){for(var t=0,r=[],i=0|e.length/4;0<i--;){var a=(n[e.charCodeAt(t)]<<18)+(n[e.charCodeAt(t+1)]<<12)+(n[e.charCodeAt(t+2)]<<6)+n[e.charCodeAt(t+3)];r.push(255&a>>16),r.push(255&a>>8),r.push(255&a),t+=4}return r&&("="==e.charAt(t-2)?(r.pop(),r.pop()):"="==e.charAt(t-1)&&r.pop()),r},u={};u.encode=function(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t},u.decode=function(e){for(var t=0;t<s.length;++t)a[t]=String.fromCharCode(a[t]);return a.join("")},i.decodeArray=function(e){var t=o(e);return new Uint8Array(t)},i.encodeASCII=function(e){var n=u.encode(e);return t(n)},i.decodeASCII=function(e){var t=o(e);return u.decode(t)},i.encode=function(e){var n=r.encode(e);return t(n)},i.decode=function(e){var t=o(e);return r.decode(t)}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),t.decode=i.decode,t.decodeArray=i.decodeArray},function(e,t){"use strict";function n(e,t,n){function r(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function i(e){return e.prefix}function a(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/"):e}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(///g,"/")}function s(a){if(a.nodeType==E.DOCUMENT_NODE){var u,l,f,d=a.firstChild;for(l=0,f=a.childNodes.length;l<f;l+=1)if(a.childNodes[l].nodeType!==E.COMMENT_NODE){d=a.childNodes[l];break}if(n)u=s(d);else{u={};var c=r(d);u[c]=s(d)}return u}if(a.nodeType==E.ELEMENT_NODE){var u=new Object;u.__cnt=0;for(var g=[],p=a.childNodes,h=0;h<p.length;h++){var d=p.item(h),c=r(d);if(u.__cnt++,null==u[c]){var v=s(d);if("#text"!=c||/[^\s]/.test(v)){var m={};m[c]=v,g.push(m)}u[c]=v,u[c+"_asArray"]=new Array(1),u[c+"_asArray"][0]=u[c]}else{if(null!=u[c]&&!(u[c]instanceof Array)){var _=u[c];u[c]=new Array,u[c][0]=_,u[c+"_asArray"]=u[c]}for(var T=0;null!=u[c][T];)T++;var v=s(d);if("#text"!=c||/[^\s]/.test(v)){var m={};m[c]=v,g.push(m)}u[c][T]=v}}u.__children=g;for(var S=0;S<a.attributes.length;S++){var I=a.attributes.item(S);u.__cnt++;for(var R=I.value,A=0,M=e.length;A<M;A++){var b=e[A];b.test(I)&&(R=b.converter(I.value))}u[t+I.name]=R}var C=i(a);return null!=C&&""!=C&&(u.__cnt++,u.__prefix=C),1==u.__cnt&&null!=u["#text"]&&(u=u["#text"]),null!=u["#text"]&&(u.__text=u["#text"],y&&(u.__text=o(u.__text)),delete u["#text"],delete u["#text_asArray"]),null!=u["#cdata-section"]&&(u.__cdata=u["#cdata-section"],delete u["#cdata-section"],delete u["#cdata-section_asArray"]),null==u.__text&&null==u.__cdata||(u.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),u}return a.nodeType==E.TEXT_NODE||a.nodeType==E.CDATA_SECTION_NODE?a.nodeValue:a.nodeType==E.COMMENT_NODE?null:void 0}function u(e,t,n,r){var i="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+t;if(null!=n)for(var a=0;a<n.length;a++){var o=n[a],s=e[o];i+=" "+o.substr(1)+"='"+s+"'"}return i+=r?"/>":">"}function l(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function f(e,t){return e.indexOf(t,e.length-t.length)!==-1}function d(e,t){return!!(f(t.toString(),"_asArray")||0==t.toString().indexOf("_")||e[t]instanceof Function)}function c(e){var t=0;if(e instanceof Object)for(var n in e)d(e,n)||t++;return t}function g(e){var t=[];if(e instanceof Object)for(var n in e)n.toString().indexOf("__")==-1&&0==n.toString().indexOf("_")&&t.push(n);return t}function p(e){var t="";return null!=e.__cdata&&(t+="<![CDATA["+e.__cdata+"]]>"),null!=e.__text&&(t+=y?a(e.__text):e.__text),t}function h(e){var t="";return e instanceof Object?t+=p(e):null!=e&&(t+=y?a(e):e),t}function v(e,t,n){var r="";if(0==e.length)r+=u(e,t,n,!0);else for(var i=0;i<e.length;i++)r+=u(e[i],t,g(e[i]),!1),r+=m(e[i]),r+=l(e[i],t);return r}function m(e){var t="",n=c(e);if(n>0)for(var r in e)if(!d(e,r)){var i=e[r],a=g(i);if(null==i||void 0==i)t+=u(i,r,a,!0);else if(i instanceof Object)if(i instanceof Array)t+=v(i,r,a);else{var o=c(i);o>0||null!=i.__text||null!=i.__cdata?(t+=u(i,r,a,!1),t+=m(i),t+=l(i,r)):t+=u(i,r,a,!0)}else t+=u(i,r,a,!1),t+=h(i),t+=l(i,r)}return t+=h(e)}null!==t&&void 0!==t||(t="_"),null!==n&&void 0!==n||(n=!1);var _="1.0.11",y=!1,E={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){var t,n,r;if(window.DOMParser){n=new window.DOMParser;try{r=n.parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(i){}try{t=n.parseFromString(e,"text/xml"),r&&t.getElementsByTagNameNS(r,"parsererror").length&&(t=void 0)}catch(i){}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.xml2json=function(e){return s(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return t?this.xml2json(t):void 0},this.json2xml_str=function(e){return m(e)},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return _},this.escapeMode=function(e){y=e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r){n(this,e),this._test=t,this._converter=r}return r(e,[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(24),l=r(u),f=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.BUFFER_EMPTY="bufferstalled",this.BUFFER_LOADED="bufferloaded",this.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",this.ERROR="error",this.LOG="log",this.MANIFEST_LOADED="manifestloaded",this.METRICS_CHANGED="metricschanged",this.METRIC_CHANGED="metricchanged",this.METRIC_ADDED="metricadded",this.METRIC_UPDATED="metricupdated",this.PERIOD_SWITCH_COMPLETED="streamswitchcompleted",this.PERIOD_SWITCH_STARTED="streamswitchstarted",this.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",this.QUALITY_CHANGE_RENDERED="qualityChangeRendered",this.STREAM_INITIALIZED="streaminitialized",this.TEXT_TRACKS_ADDED="alltexttracksadded",this.TEXT_TRACK_ADDED="texttrackadded",this.CAN_PLAY="canPlay",this.PLAYBACK_ENDED="playbackEnded",this.PLAYBACK_ERROR="playbackError",this.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",this.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",this.PLAYBACK_PAUSED="playbackPaused",this.PLAYBACK_PLAYING="playbackPlaying",this.PLAYBACK_PROGRESS="playbackProgress",this.PLAYBACK_RATE_CHANGED="playbackRateChanged",this.PLAYBACK_SEEKED="playbackSeeked",this.PLAYBACK_SEEKING="playbackSeeking",this.PLAYBACK_STARTED="playbackStarted",this.PLAYBACK_TIME_UPDATED="playbackTimeUpdated"}return a(t,e),t}(l["default"]),d=new f;t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){D=window.VTTCue||window.TextTrackCue,w=[],N=[],L=-1,x=0,F=0,U=0,B=0,k=null,j=null,q=!1,Y=2147483647,K=!!navigator.userAgent.match(/Chrome/)&&!navigator.userAgent.match(/Edge/),void 0!==document.fullscreenElement?H="fullscreenElement":void 0!==document.webkitIsFullScreen?H="webkitIsFullScreen":document.msFullscreenElement?H="msFullscreenElement":document.mozFullScreen&&(H="mozFullScreen")}function t(e){var t=w[e].kind,n=void 0!==w[e].label?w[e].label:w[e].lang,r=w[e].lang,i=K?document.createElement("track"):P.addTextTrack(t,n,r);return K&&(i.kind=t,i.label=n,i.srclang=r),i}function n(e){q=e,k&&!document[H]&&(k.style.zIndex=e?Y:null)}function r(e,n){if(w.length===n)return void b("Trying to add too many tracks.");if(w.push(e),void 0===P&&(P=e.video),w.length===n){w.sort(function(e,t){return e.index-t.index}),k=O.getTTMLRenderingDiv();for(var r=-1,i=0;i<w.length;i++){var a=t.call(this,i);N.push(a),w[i].defaultTrack&&(a["default"]=!0,r=i),K&&P.appendChild(a);var o=P.textTracks[i];o.nonAddedCues=[],k&&(w[i].isTTML||w[i].isEmbedded)?o.renderingType="html":o.renderingType="default",this.addCaptions(i,0,w[i].captionData),M.trigger(u["default"].TEXT_TRACK_ADDED)}v.call(this,r),r>=0&&(P.textTracks[r].mode="showing",this.addCaptions(r,0,null)),M.trigger(u["default"].TEXT_TRACKS_ADDED,{index:L,tracks:w})}}function i(e,t,n,r,i,a){var o=e/t,s=n/r,u=0,l=0;o>s?(l=t,u=l/r*n):(u=e,l=u/n*r);var f=0,d=0,c=0,g=0,p=u/l;return p>i?(g=l,c=l/(1/i),f=(e-c)/2,d=0):(c=u,g=u/i,f=0,d=(t-g)/2),a?{x:f+.1*c,y:d+.1*g,w:.8*c,h:.8*g}:{x:f,y:d,w:c,h:g}}function a(){var e=this.getCurrentTextTrack();if(e&&"html"===e.renderingType){var t=P.clientWidth/P.clientHeight,n=!1;e.isFromCEA608&&(t=3.5/3,n=!0);var r=i.call(this,P.clientWidth,P.clientHeight,P.videoWidth,P.videoHeight,t,n),a=r.w,o=r.h;if(a!=U||o!=B){x=r.x,F=r.y,U=a,B=o,k.style.left=x+"px",k.style.top=F+"px",k.style.width=U+"px",k.style.height=B+"px";for(var s=0;e.activeCues&&s<e.activeCues.length;++s){var u=e.activeCues[s];u.scaleCue(u)}H&&document[H]||q?k.style.zIndex=Y:k.style.zIndex=null}}}function s(e,t){var n=Math.round(.01*e*t).toString()+"px";return n}function l(e){var t=U,n=B;if(t*n!==0&&e.layout){var r=e.layout,i=s(r.left,t),a=s(r.top,n),o=s(r.width,t),u=s(r.height,n);k.style.left=i,k.style.top=a,k.style.width=o,k.style.height=u;var l=k.firstChild;l&&l.style&&(l.style.left="0px",l.style.top="0px",l.style.width=o,l.style.height=u)}}function f(e){var t,n,r,i=U,a=B,o=[i/e.cellResolution[0],a/e.cellResolution[1]];if(e.linePadding)for(t in e.linePadding)if(e.linePadding.hasOwnProperty(t)){var s=e.linePadding[t];n=(s*o[0]).toString();for(var u=document.getElementsByClassName("spanPadding"),l=0;l<u.length;l++)u[l].style.cssText=u[l].style.cssText.replace(/(padding-left\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n),u[l].style.cssText=u[l].style.cssText.replace(/(padding-right\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(e.fontSize)for(t in e.fontSize)if(e.fontSize.hasOwnProperty(t)){var f=e.fontSize[t]/100;n=(f*o[1]).toString(),r="defaultFontSize"!==t?document.getElementsByClassName(t):document.getElementsByClassName("paragraph");for(var d=0;d<r.length;d++)r[d].style.cssText=r[d].style.cssText.replace(/(font-size\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}if(e.lineHeight)for(t in e.lineHeight)if(e.lineHeight.hasOwnProperty(t)){var c=e.lineHeight[t]/100;n=(c*o[1]).toString(),r=document.getElementsByClassName(t);for(var g=0;g<r.length;g++)r[g].style.cssText=r[g].style.cssText.replace(/(line-height\s*:\s*)[\d.,]+(?=\s*px)/gi,"$1"+n)}}function d(e,t,n){var r=e>=0?P.textTracks[e]:null,i=this;if(r){if("showing"!==r.mode)return void(n&&n.length>0&&(r.nonAddedCues=r.nonAddedCues.concat(n)));if(n||(n=r.nonAddedCues,r.nonAddedCues=[]),n&&0!==n.length)for(var o in n){var s,u=n[o];r.cellResolution=u.cellResolution,r.isFromCEA608=u.isFromCEA608,j||"html"!==u.type&&"image"!==u.type||(j=setInterval(a.bind(this),500)),"image"===u.type?(s=new D(u.start-t,u.end-t,""),s.image=u.data,s.id=u.id,s.size=0,s.type="image",s.layout=u.layout,s.scaleCue=l.bind(i),s.onenter=function(){if(k&&"showing"===r.mode){var e=new Image;e.id="ttmlImage_"+this.id,e.src=this.image,e.style.cssText="z-index: 2147483648; pointer-events: none; display: block; visibility: visible !important; position: relative !important;",k.appendChild(e),l.call(i,this)}},s.onexit=function(){if(k)for(var e=k.childNodes,t=0;t<e.length;t++)e[t].id==="ttmlImage_"+this.id&&k.removeChild(e[t])}):"html"===u.type?(s=new D(u.start-t,u.end-t,""),s.cueHTMLElement=u.cueHTMLElement,s.regions=u.regions,s.regionID=u.regionID,s.cueID=u.cueID,s.videoWidth=u.videoWidth,s.videoHeight=u.videoHeight,s.cellResolution=u.cellResolution,s.fontSize=u.fontSize,s.lineHeight=u.lineHeight,s.linePadding=u.linePadding,s.scaleCue=f.bind(i),k.style.left=x+"px",k.style.top=F+"px",k.style.width=U+"px",k.style.height=B+"px",s.onenter=function(){"showing"===r.mode&&(b("Cue "+this.startTime+"-"+this.endTime+" : "+this.cueHTMLElement.id+" : "+this.cueHTMLElement.innerText),k.appendChild(this.cueHTMLElement),f.call(i,this))},s.onexit=function(){for(var e=k.childNodes,t=0;t<e.length;++t)e[t].id===this.cueID&&k.removeChild(e[t])}):(s=new D(u.start-t,u.end-t,u.data),u.styles&&(void 0!==u.styles.align&&s.hasOwnProperty("align")&&(s.align=u.styles.align),void 0!==u.styles.line&&s.hasOwnProperty("line")&&(s.line=u.styles.line),void 0!==u.styles.position&&s.hasOwnProperty("position")&&(s.position=u.styles.position),void 0!==u.styles.size&&s.hasOwnProperty("size")&&(s.size=u.styles.size))),r.addCue(s)}}}function g(){return L>=0?P.textTracks[L]:null}function p(){return L}function h(e){for(var t=-1,n=0;n<P.textTracks.length;n++)if(P.textTracks[n].label===e){t=n;break}return t}function v(e){if(L=e,I.call(this),e>=0){var t=P.textTracks[e];"html"===t.renderingType?T.call(this):S.call(this)}else S.call(this)}function m(e){return P.textTracks[e]}function _(e){if(e.cues){for(var t=e.cues,n=t.length-1,r=n;r>=0;r--)e.removeCue(t[r]);
|
30 |
+
e.mode="disabled"}}function y(){for(var e=N.length,t=0;t<e;t++)if(K)P.removeChild(N[t]);else{var n=m.call(this,t);n.nonAddedCues=[],_.call(this,n)}N=[],w=[],j&&(clearInterval(j),j=null),I.call(this)}function E(e){P.removeChild(N[e]),N.splice(e,1)}function T(){if(K){var e=document.getElementById("native-cue-style");if(!e){e=document.createElement("style"),e.id="native-cue-style",document.head.appendChild(e);var t=e.sheet;P.id?t.insertRule("#"+P.id+"::cue {background: transparent}",0):0!==P.classList.length?t.insertRule("."+P.className+"::cue {background: transparent}",0):t.insertRule("video::cue {background: transparent}",0)}}}function S(){if(K){var e=document.getElementById("native-cue-style");e&&document.head.removeChild(e)}}function I(){if(k)for(;k.firstChild;)k.removeChild(k.firstChild)}function R(e){e&&e.videoModel&&(O=e.videoModel)}var A=this.context,M=(0,o["default"])(A).getInstance(),b=(0,c["default"])(A).getInstance().log,C=void 0,D=void 0,O=void 0,P=void 0,w=void 0,N=void 0,L=void 0,x=void 0,F=void 0,U=void 0,B=void 0,k=void 0,j=void 0,K=void 0,H=void 0,q=void 0,Y=void 0;return C={initialize:e,displayCConTop:n,addTextTrack:r,addCaptions:d,getTextTrack:m,getCurrentTextTrack:g,getCurrentTrackIdx:p,setCurrentTrackIdx:v,getTrackIdxForId:h,deleteTrackCues:_,deleteAllTextTracks:y,deleteTextTrack:E,setConfig:R}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l),d=n(4),c=r(d);i.__dashjs_factory_name="TextTracks",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){s=new o["default"],u=[],l=!1}function t(){return s}function n(){return u}function r(){return l}function i(e){function t(e,t,n,r){var i=r[0].split(/[=]/);return r.push({key:i[0],value:i[1]}),r.shift(),r}function n(e,t,n){return t>0&&(d&&0===u.length?u=n[t].split(/[&]/):c&&(i=n[t].split(/[&]/))),n}if(!e)return null;var r,i=[],a=new RegExp(/[?]/),o=new RegExp(/[#]/),f=new RegExp(/^(https:)?\/\//i),d=a.test(e),c=o.test(e);return l=f.test(e),r=e.split(/[?#]/).map(n),u.length>0&&(u=u.reduce(t,null)),i.length>0&&(i=i.reduce(t,null),i.forEach(function(e){s[e.key]=e.value})),e}var a=void 0,s=void 0,u=void 0,l=void 0;return a={initialize:e,parseURI:i,getURIFragmentData:t,getURIQueryData:n,isManifestHTTPS:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(175),o=r(a),s=n(1),u=r(s);i.__dashjs_factory_name="URIQueryAndFragmentModel",t["default"]=u["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t){n(this,i),this.sessionToken=e,this.error=t};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t,r,a){n(this,i),this.sessionToken=e,this.message=t,this.defaultURL=r,this.messageType=a?a:"license-request"};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t){n(this,i),this.keySystem=e,this.ksConfiguration=t};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t,r,a,o){n(this,i),this.initDataTypes=["cenc"],this.audioCapabilities=e,this.videoCapabilities=t,this.distinctiveIdentifier=r,this.persistentState=a,this.sessionTypes=o};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t){n(this,i),this.initData=e,this.initDataType=t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){l={}}function t(e){e&&(e.abrRulesCollection&&(l[h]=e.abrRulesCollection),e.synchronizationRulesCollection&&(l[v]=e.synchronizationRulesCollection))}function n(e,t,n,r,a){var o,s,l={},f={},d=e.length,c=d,g=i(t,r),p=function(e){var t,i,o;if(e.value!==u["default"].NO_CHANGE){var s=a(l[e.priority],e.value);s!==l[e.priority]&&(l[e.priority]=s,f[e.priority]=e.reason)}--d||(l[u["default"].WEAK]!==u["default"].NO_CHANGE&&(o=u["default"].WEAK,t=l[u["default"].WEAK],i=f[u["default"].WEAK]),l[u["default"].DEFAULT]!==u["default"].NO_CHANGE&&(o=u["default"].DEFAULT,t=l[u["default"].DEFAULT],i=f[u["default"].DEFAULT]),l[u["default"].STRONG]!==u["default"].NO_CHANGE&&(o=u["default"].STRONG,t=l[u["default"].STRONG],i=f[u["default"].STRONG]),o!=u["default"].STRONG&&o!=u["default"].WEAK&&(o=u["default"].DEFAULT),n(void 0!==t?{value:t,confidence:o,reason:i}:{value:r,confidence:o,reason:{name:"NO_CHANGE"}}))};for(l[u["default"].STRONG]=u["default"].NO_CHANGE,l[u["default"].WEAK]=u["default"].NO_CHANGE,l[u["default"].DEFAULT]=u["default"].NO_CHANGE,s=0;s<c;s++)o=e[s],o.execute(g,p)}function r(){var e,t,n=l[h],r=l[v],i=(n.getRules(f["default"].QUALITY_SWITCH_RULES)||[]).concat(n.getRules(f["default"].ABANDON_FRAGMENT_RULES)||[]).concat(r.getRules(c["default"].TIME_SYNCHRONIZED_RULES)||[]).concat(r.getRules(c["default"].BEST_GUESS_RULES)||[]),a=i.length;for(t=0;t<a;t++)e=i[t],"function"==typeof e.reset&&e.reset();l={}}function i(e,t){return(0,o["default"])(a).create({streamProcessor:e,currentValue:t})}var a=this.context,s=void 0,l=void 0;return s={initialize:e,setConfig:t,applyRules:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(146),o=r(a),s=n(8),u=r(s),l=n(47),f=r(l),d=n(48),c=r(d),g=n(1),p=r(g),h=0,v=1;i.__dashjs_factory_name="RulesController";var m=p["default"].getSingletonFactory(i);m.ABR_RULE=h,m.SYNC_RULE=v,t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){i=[],a=[];var e=(0,E["default"])(n).getInstance(),t=(0,S["default"])(n).getInstance(),r=(0,_["default"])(n).getInstance();r.getBufferOccupancyABREnabled()?(i.push((0,p["default"])(n).create({metricsModel:e,dashMetrics:(0,S["default"])(n).getInstance()})),a.push((0,v["default"])(n).create({metricsModel:e,dashMetrics:(0,S["default"])(n).getInstance()}))):(i.push((0,o["default"])(n).create({metricsModel:e,dashMetrics:t})),i.push((0,u["default"])(n).create({metricsModel:e,dashMetrics:t})),i.push((0,f["default"])(n).create({metricsModel:e})),a.push((0,c["default"])(n).create()))}function t(e){switch(e){case A:return i;case M:return a;default:return null}}var n=this.context,r=void 0,i=void 0,a=void 0;return r={initialize:e,getRules:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(151),o=r(a),s=n(149),u=r(s),l=n(150),f=r(l),d=n(147),c=r(d),g=n(66),p=r(g),h=n(148),v=r(h),m=n(5),_=r(m),y=n(14),E=r(y),T=n(16),S=r(T),I=n(1),R=r(I),A="qualitySwitchRules",M="abandonFragmentRules";i.__dashjs_factory_name="ABRRulesCollection";var b=R["default"].getSingletonFactory(i);b.QUALITY_SWITCH_RULES=A,b.ABANDON_FRAGMENT_RULES=M,t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){i=[],a=[],i.push((0,c["default"])(n).create({timelineConverter:(0,u["default"])(n).getInstance()})),a.push((0,f["default"])(n).create({timelineConverter:(0,u["default"])(n).getInstance(),adapter:(0,p["default"])(n).getInstance()}))}function t(e){switch(e){case h:return i;case v:return a;default:return null}}var n=this.context,r=void 0,i=void 0,a=void 0;return r={initialize:e,getRules:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(26),u=r(s),l=n(156),f=r(l),d=n(157),c=r(d),g=n(15),p=r(g),h="withAccurateTimeSourceRules",v="bestGuestRules";i.__dashjs_factory_name="SynchronizationRulesCollection";var m=o["default"].getSingletonFactory(i);m.TIME_SYNCHRONIZED_RULES=h,m.BEST_GUESS_RULES=v,t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=f["default"].parseBuffer(e),r=(0,o["default"])(n).create();return r.setData(t),r}var t=void 0,n=this.context;return t={parse:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(161),o=r(a),s=n(1),u=r(s),l=n(71),f=r(l);i.__dashjs_factory_name="BoxParser",t["default"]=u["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){if(void 0!==y)return y;y=!1;var t,n="1",r="1";try{"undefined"!=typeof window&&(t=window[e])}catch(i){return m("Warning: DOMStorage access denied: "+i.message),y}if(!t||e!==p&&e!==h)return y;try{t.setItem(n,r),t.removeItem(n),y=!0}catch(i){m("Warning: DOMStorage is supported, but cannot be used: "+i.message)}return y}function t(){e(p)&&d.forEach(function(e){var t=localStorage.getItem(e.oldKey);if(t){localStorage.removeItem(e.oldKey);try{localStorage.setItem(e.newKey,t)}catch(n){m(n.message)}}})}function n(){E=(0,u["default"])(v).getInstance(),t()}function r(){var e=6e5;return Math.round((new Date).getTime()/e)*e}function i(t,n){return e(t)&&E["get"+n+"CachingInfo"]().enabled}function a(e){if(!i(p,"LastMediaSettings"))return null;var t=g.replace(/\?/,e),n=JSON.parse(localStorage.getItem(t))||{},r=(new Date).getTime()-parseInt(n.timestamp,10)>=E.getLastMediaSettingsCachingInfo().ttl||!1,a=n.settings;return r&&(localStorage.removeItem(t),a=null),a}function o(e){var t=NaN;if(i(p,"LastBitrate")){var n=c.replace(/\?/,e),r=JSON.parse(localStorage.getItem(n))||{},a=(new Date).getTime()-parseInt(r.timestamp,10)>=E.getLastBitrateCachingInfo().ttl||!1,o=parseInt(r.bitrate,10);isNaN(o)||a?a&&localStorage.removeItem(n):(t=o,m("Last saved bitrate for "+e+" was "+o))}return t}function s(e,t){if(i(p,"LastMediaSettings")){var n=g.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({settings:t,timestamp:r()}))}catch(a){m(a.message)}}}function l(e,t){if(i(p,"LastBitrate")&&t){var n=c.replace(/\?/,e);try{localStorage.setItem(n,JSON.stringify({bitrate:t/1e3,timestamp:r()}))}catch(a){m(a.message)}}}var v=this.context,m=(0,f["default"])(v).getInstance().log,_=void 0,y=void 0,E=void 0;return _={getSavedBitrateSettings:o,setSavedBitrateSettings:l,getSavedMediaSettings:a,setSavedMediaSettings:s,isSupported:e},n(),_}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(5),u=r(s),l=n(4),f=r(l),d=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],c="dashjs_?_bitrate",g="dashjs_?_settings",p="localStorage",h="sessionStorage";i.__dashjs_factory_name="DOMStorage";var v=o["default"].getSingletonFactory(i);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){g=e,h=t,_=!1,y=NaN,T=null,v=(0,p["default"])(s).getInstance(),S=o["default"].BEST_GUESS_RULES,l.on(c["default"].STREAM_INITIALIZED,a,this)}function t(){_=!1,y=NaN}function n(){return T}function r(){l.off(c["default"].STREAM_INITIALIZED,a,this),t(),T=null,g=null,h=null,_=!1,y=NaN,S=null,v=null}function i(e){var t=((new Date).getTime()-y)/1e3;T=e.value,l.trigger(c["default"].LIVE_EDGE_SEARCH_COMPLETED,{liveEdge:T,searchTime:t,error:null===T?new u["default"](m,"live edge has not been found",null):null})}function a(e){!h.isDynamic()||_||e.error||(S=g.isTimeSyncCompleted()?o["default"].TIME_SYNCHRONIZED_RULES:o["default"].BEST_GUESS_RULES,E=(0,o["default"])(s).getInstance().getRules(S),_=!0,y=(new Date).getTime(),v.applyRules(E,h,i,null,function(e,t){return t}))}var s=this.context,l=(0,f["default"])(s).getInstance(),d=void 0,g=void 0,h=void 0,v=void 0,_=void 0,y=void 0,E=void 0,T=void 0,S=void 0;return d={initialize:e,abortSearch:t,getLiveEdge:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(48),o=r(a),s=n(6),u=r(s),l=n(3),f=r(l),d=n(2),c=r(d),g=n(46),p=r(g),h=n(1),v=r(h),m=1;i.__dashjs_factory_name="LiveEdgeFinder";var _=v["default"].getSingletonFactory(i);_.LIVE_EDGE_NOT_FOUND_ERROR_CODE=m,t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";!function(e){var t={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},n=function(e){var n=e;return t.hasOwnProperty(e)&&(n=t[e]),String.fromCharCode(n)},r=15,i=32,a={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},o={17:2,18:4,21:6,22:8,23:10,19:13,20:15},s={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},u={25:2,26:4,29:6,30:8,31:10,27:13,28:15},l=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],f={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}},d=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},c=function(e,t,n,r,i){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1};c.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var g=function(e,t,n,r,i,a){this.uchar=e||" ",this.penState=new c(t,n,r,i,a)};g.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var p=function(){this.chars=[];for(var e=0;e<i;e++)this.chars.push(new g);this.pos=0,this.currPenState=new c};p.prototype={equals:function(e){for(var t=!0,n=0;n<i;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<i;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<i;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(f.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>i&&(f.log("ERROR","Too large cursor position "+this.pos),this.pos=i)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){e>=144&&this.backSpace();var t=n(e);return this.pos>=i?void f.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),void this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<i;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<i;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e);var t=this.chars[this.pos];t.setPenState(this.currPenState)}};var h=function(){this.rows=[];for(var e=0;e<r;e++)this.rows.push(new p);this.currRow=r-1,this.nrRollUpRows=null,this.reset()};h.prototype={reset:function(){for(var e=0;e<r;e++)this.rows[e].clear();this.currRow=r-1},equals:function(e){for(var t=!0,n=0;n<r;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<r;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<r;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){var e=this.rows[this.currRow];e.backSpace()},clearToEndOfRow:function(){var e=this.rows[this.currRow];e.clearToEndOfRow()},insertChar:function(e){var t=this.rows[this.currRow];t.insertChar(e)},setPen:function(e){var t=this.rows[this.currRow];t.setPenStyles(e)},moveCursor:function(e){var t=this.rows[this.currRow];t.moveCursor(e)},setCursor:function(e){f.log("INFO","setCursor: "+e);var t=this.rows[this.currRow];t.setCursor(e)},setPAC:function(e){f.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,i=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}var a={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(a)},setBkgData:function(e){f.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null===this.nrRollUpRows)return void f.log("DEBUG","roll_up but nrRollUpRows not set yet");f.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),f.log("INFO","Rolling up")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",i=-1,a=0;a<r;a++){var o=this.rows[a].getTextString();o&&(i=a+1,e?t.push("Row "+i+': "'+o+'"'):t.push(o.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};var v=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new h,this.nonDisplayedMemory=new h,this.lastOutputScreen=new h,this.currRollUpRow=this.displayedMemory.rows[r-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};v.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[r-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,f.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";f.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(f.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){f.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){f.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){f.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){f.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){f.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){f.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){f.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){f.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){f.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){f.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){f.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(f.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,f.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){f.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}f.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=f.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var m=function(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new v(1,t),new v(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,"char":0,cmd:0,other:0}};m.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,a=!1;this.lastTime=e,f.setTime(e);for(var o=0;o<t.length;o+=2)if(r=127&t[o],i=127&t[o+1],0!==r||0!==i){if(f.log("DATA","["+d([t[o],t[o+1]])+"] -> ("+d([r,i])+")"),n=this.parseCmd(r,i),n||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),!n&&(a=this.parseChars(r,i)))if(this.currChNr&&this.currChNr>=0){var s=this.channels[this.currChNr-1];s.insertChars(a)}else f.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:a?this.dataCounters["char"]+=2:(this.dataCounters.other+=2,f.log("WARNING","Couldn't parse cleaned data "+d([r,i])+" orig: "+d([t[o],t[o+1]])))}else this.dataCounters.padding+=2},parseCmd:function(e,t){var n=null,r=(20===e||28===e)&&32<=t&&t<=47,i=(23===e||31===e)&&33<=t&&t<=35;if(!r&&!i)return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,f.log("DEBUG","Repeated command ("+d([e,t])+") is dropped"),!0;n=20===e||23===e?1:2;var a=this.channels[n-1];return 20===e||28===e?32===t?a.cc_RCL():33===t?a.cc_BS():34===t?a.cc_AOF():35===t?a.cc_AON():36===t?a.cc_DER():37===t?a.cc_RU(2):38===t?a.cc_RU(3):39===t?a.cc_RU(4):40===t?a.cc_FON():41===t?a.cc_RDC():42===t?a.cc_TR():43===t?a.cc_RTD():44===t?a.cc_EDM():45===t?a.cc_CR():46===t?a.cc_ENM():47===t&&a.cc_EOC():a.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if(n=17===e?1:2,n!==this.currChNr)return f.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.cc_MIDROW(t),f.log("DEBUG","MIDROW ("+d([e,t])+")"),!0}return!1},parsePAC:function(e,t){var n=null,r=null,i=(17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127,l=(16===e||24===e)&&64<=t&&t<=95;if(!i&&!l)return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;n=e<=23?1:2,r=64<=t&&t<=95?1===n?a[e]:s[e]:1===n?o[e]:u[e];var f=this.interpretPAC(r,t),d=this.channels[n-1];return d.setPAC(f),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1===(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var r=null,i=null,a=null;if(e>=25?(r=2,a=e-8):(r=1,a=e),17<=a&&a<=19){var o=t;o=17===a?t+80:18===a?t+112:t+144,f.log("INFO","Special char '"+n(o)+"' in channel "+r),i=[o]}else 32<=e&&e<=127&&(i=0===t?[e]:[e,t]);if(i){var s=d(i);f.log("DEBUG","Char codes = "+s.join(",")),this.lastCmdA=null,this.lastCmdB=null}return i},parseBackgroundAttributes:function(e,t){var n,r,i,a,o=(16===e||24===e)&&32<=t&&t<=47,s=(23===e||31===e)&&45<=t&&t<=47;return!(!o&&!s)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=l[r],t%2===1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,a=this.channels[i-1],a.setBkgData(n),this.lastCmdA=null,this.lastCmdB=null,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}};var _=function(e,t,n){for(var r=0,i=t,a=0,o=[],s=function(e,t,n,r){if(4!==e||t<8)return null;var i=n.getUint8(r),a=n.getUint16(r+1),o=n.getUint32(r+3),s=n.getUint8(r+7);return 181==i&&49==a&&1195456820==o&&3==s};i<t+n;){if(r=e.getUint32(i),a=31&e.getUint8(i+4),6===a)for(var u=i+5,l=-1;u<i+4+r-1;){l=0;for(var f=255;255===f;)f=e.getUint8(u),l+=f,u++;var d=0;for(f=255;255===f;)f=e.getUint8(u),d+=f,u++;s(l,d,e,u)&&o.push([u,d]),u+=d}i+=r+4}return o},y=function(e,t){var n=t[0],r=[[],[]];n+=8;var i=31&e.getUint8(n);n+=2;for(var a=0;a<i;a++){var o=e.getUint8(n),s=4&o,u=3&o;n++;var l=e.getUint8(n);n++;var f=e.getUint8(n);n++,s&&(127&l)+(127&f)!==0&&(0===u?(r[0].push(l),r[0].push(f)):1===u&&(r[1].push(l),r[1].push(f)))}return r};e.logger=f,e.PenState=c,e.CaptionScreen=h,e.Cea608Parser=m,e.findCea608Nalus=_,e.extractCea608DataFromRange=y}(t)},function(e,t){"use strict";function n(){return r}Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionString=n;var r="2.3.0"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="TcpList";t.TCP_CONNECTION=n;var r="HttpList";t.HTTP_REQUEST=r;var i="RepSwitchList";t.TRACK_SWITCH=i;var a="BufferLevel";t.BUFFER_LEVEL=a;var o="BufferState";t.BUFFER_STATE=o;var s="DVRInfo";t.DVR_INFO=s;var u="DroppedFrames";t.DROPPED_FRAMES=u;var l="SchedulingInfo";t.SCHEDULING_INFO=l;var f="RequestsQueue";t.REQUESTS_QUEUE=f;var d="ManifestUpdate";t.MANIFEST_UPDATE=d;var c="ManifestUpdatePeriodInfo";t.MANIFEST_UPDATE_STREAM_INFO=c;var g="ManifestUpdateRepresentationInfo";t.MANIFEST_UPDATE_TRACK_INFO=g;var p="PlayList";t.PLAY_LIST=p;var h="DVBErrors";t.DVB_ERRORS=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(81),s=r(o),u=function(){function e(t,n,r,a,o){var u=this;i(this,e),this._name=t||"",this._properties=[],this._children=r||[],this._isRoot=a||!1,this._isArray=o||!0,Array.isArray(n)&&n.forEach(function(e){u._properties.push(new s["default"](e))})}return a(e,[{key:"name",get:function(){return this._name}},{key:"isRoot",get:function(){return this._isRoot}},{key:"isArray",get:function(){return this._isArray}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),e}();t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=1,i=1,a=function o(e,t,a,s){n(this,o),this.url=e||"",this.serviceLocation=t||e||"",this.dvb_priority=a||r,this.dvb_weight=s||i};a.DEFAULT_DVB_PRIORITY=r,a.DEFAULT_DVB_WEIGHT=i,t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.schemeIdUri="",this.value=""};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){$t=!1,en=!1,tn=!0,an=null,Jt=null,sn=null,ie["default"].extend(oe["default"]),ln=(0,L["default"])(Vt).getInstance()}function t(e,t,n){return dn=(0,E["default"])(Vt).getInstance(),fn=(0,_["default"])(Vt).getInstance(),dn.supportsMediaSource()?void($t||($t=!0,nn=(0,B["default"])(Vt).getInstance(),pn=(0,u["default"])(Vt).getInstance(),rn=(0,c["default"])(Vt).getInstance(),rn.initialize(),vn=(0,he["default"])(Vt).getInstance(),hn=(0,me["default"])(Vt).getInstance(),un=(0,F["default"])(Vt).getInstance(),un.setConfig({adapter:xt()}),rt(),pe(void 0===n||n),e&&At(e),t&&Dt(t),Qt("[dash.js "+q()+"] MediaPlayer has been initialized"))):void fn.capabilityError("mediasource")}function n(){return!!mn&&!!Zt}function r(){if(!en)throw Ht;(!tn||a()&&en)&&pn.play()}function i(){if(!en)throw Ht;pn.pause()}function a(){if(!en)throw Ht;return pn.isPaused()}function s(){if(!en)throw Ht;return pn.isSeeking()}function l(e){if(!mn)throw qt;Rt().muted=e}function d(){if(!mn)throw qt;return Rt().muted}function g(e){if(!mn)throw qt;Rt().volume=e}function h(){if(!mn)throw qt;return Rt().volume}function m(e){var t=["video","audio","fragmentedText"];
|
31 |
+
if(e){if(t.indexOf(e)!==-1){var n=Te().getCurrentBufferLevel(Se(e));return n?n:NaN}return Qt("Warning - getBufferLength requested for invalid type"),NaN}return t.map(function(e){return Fe(e).length>0?Te().getCurrentBufferLevel(Se(e)):Number.MAX_VALUE}).reduce(function(e,t){return Math.min(e,t)})}function y(){var e=Bt();return e?e.manifestInfo.DVRWindowSize:0}function T(e){var t=Bt();if(!t)return 0;var n=t.range.start+e;return n>t.range.end&&(n=t.range.end),n}function I(e){if(!en)throw Ht;var t=pn.getIsDynamic()?T(e):e;pn.seek(t)}function A(e){if(!en)throw Ht;var t=Rt().currentTime;if(void 0!==e)t=cn.getTimeRelativeToStreamId(t,e);else if(pn.getIsDynamic()){var n=Bt();t=null===n?0:b()-(n.range.end-n.time)}return t}function b(){if(!en)throw Ht;var e=Rt().duration;if(pn.getIsDynamic()){var t,n=Bt();if(!n)return 0;t=n.range.end-n.range.start,e=t<n.manifestInfo.DVRWindowSize?t:n.manifestInfo.DVRWindowSize}return e}function D(){if(!en)throw Ht;return A()<0?NaN:kt(A())}function P(){if(!en)throw Ht;return kt(b())}function N(e,t,n){var r=new Date(1e3*e),i=r.toLocaleDateString(t),a=r.toLocaleTimeString(t,{hour12:n});return a+" "+i}function x(e){e=Math.max(e,0);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return(0===t?"":t<10?"0"+t.toString()+":":t.toString()+":")+(n<10?"0"+n.toString():n.toString())+":"+(r<10?"0"+r.toString():r.toString())}function U(e,t,n){ue["default"].extend(e,t,n,Vt)}function k(e,t,n){zt.on(e,t,n)}function K(e,t,n){zt.off(e,t,n)}function q(){return(0,le.getVersionString)()}function G(){return Wt}function z(){if(!mn)throw qt;return mn}function Q(e){ln.setLiveDelayFragmentCount(e)}function Z(e){ln.setLiveDelay(e)}function $(e){ln.setUseSuggestedPresentationDelay(e)}function te(e,t){ln.setLastBitrateCachingInfo(e,t)}function re(e,t){ln.setLastMediaSettingsCachingInfo(e,t)}function ae(e,t){nn.setMaxAllowedBitrateFor(e,t)}function se(e){return nn.getMaxAllowedBitrateFor(e)}function fe(e,t){nn.setMaxAllowedRepresentationRatioFor(e,t)}function ce(e){return nn.getMaxAllowedRepresentationRatioFor(e)}function pe(e){tn=e}function ve(){return tn}function _e(e){ln.setScheduleWhilePaused(e)}function Ee(){return ln.getScheduleWhilePaused()}function Te(){return hn}function Se(e){return un.getReadOnlyMetricsFor(e)}function Ie(e){if(!en)throw Ht;return nn.getQualityFor(e,cn.getActiveStreamInfo())}function Re(e,t){if(!en)throw Ht;nn.setPlaybackQuality(e,cn.getActiveStreamInfo(),t)}function Ae(){return nn.getLimitBitrateByPortal()}function Me(e){nn.setLimitBitrateByPortal(e)}function be(){return nn.getUsePixelRatioInLimitBitrateByPortal()}function Ce(e){nn.setUsePixelRatioInLimitBitrateByPortal(e)}function De(e){if(!en)throw Ht;void 0===_n&&(_n=(0,C["default"])(Vt).getInstance());for(var t=Rt().textTracks,n=t.length,r=0;r<n;r++){var i=t[r],a=e===r?"showing":"hidden";i.mode!==a&&(i.mode=a)}_n.setTextTrack()}function Oe(e){if(!en)throw Ht;var t=jt();return t?t.getBitrateListFor(e):[]}function Pe(e,t){nn.setInitialBitrateFor(e,t)}function we(e){if(!en)throw Ht;return nn.getInitialBitrateFor(e)}function Ne(e,t){nn.setInitialRepresentationRatioFor(e,t)}function Le(e){return nn.getInitialRepresentationRatioFor(e)}function xe(e){if(!en)throw Ht;return sn.getStreamsInfo(e)}function Fe(e){if(!en)throw Ht;var t=cn.getActiveStreamInfo();return t?rn.getTracksFor(e,t):[]}function Ue(e,t,n){if(!en)throw Ht;return n=n||sn.getStreamsInfo(t)[0],n?sn.getAllMediaInfoForType(t,n,e):[]}function Be(e){if(!en)throw Ht;var t=cn.getActiveStreamInfo();return t?rn.getCurrentTrackFor(e,t):null}function ke(e,t){rn.setInitialSettings(e,t)}function je(e){return rn.getInitialSettings(e)}function Ke(e){if(!en)throw Ht;rn.setTrack(e)}function He(e){return rn.getSwitchMode(e)}function qe(e,t){rn.setSwitchMode(e,t)}function Ye(e){rn.setSelectionModeForInitialTrack(e)}function Ge(){return rn.getSelectionModeForInitialTrack()}function Ve(){return nn.getAutoSwitchBitrateFor("video")||nn.getAutoSwitchBitrateFor("audio")}function ze(e){nn.setAutoSwitchBitrateFor("video",e),nn.setAutoSwitchBitrateFor("audio",e)}function We(e){return nn.getAutoSwitchBitrateFor(e)}function Qe(e,t){nn.setAutoSwitchBitrateFor(e,t)}function Xe(e){ln.setFastSwitchEnabled(e)}function Ze(){return ln.getFastSwitchEnabled()}function Je(e){ln.setBufferOccupancyABREnabled(e)}function $e(e,t){var n=Nt(),r=this,i=function o(e){e.error?t(null,e.error):t(e.manifest),zt.off(ie["default"].INTERNAL_MANIFEST_LOADED,o,r),n.reset()};zt.on(ie["default"].INTERNAL_MANIFEST_LOADED,i,r);var a=(0,O["default"])(Vt).getInstance();a.initialize(),n.load(a.parseURI(e))}function et(e,t){tt(e,t);var n=new o["default"];n.schemeIdUri=e,n.value=t,ln.getUTCTimingSources().push(n)}function tt(e,t){var n=ln.getUTCTimingSources();n.forEach(function(r,i){r.schemeIdUri===e&&r.value===t&&n.splice(i,1)})}function nt(){ln.setUTCTimingSources([])}function rt(){et(L["default"].DEFAULT_UTC_TIMING_SOURCE.scheme,L["default"].DEFAULT_UTC_TIMING_SOURCE.value)}function it(e){ln.setUseManifestDateHeaderTimeSource(e)}function at(e){ln.setBufferToKeep(e)}function ot(e){ln.setBufferPruningInterval(e)}function st(e){ln.setStableBufferTime(e)}function ut(e){ln.setBufferTimeAtTopQuality(e)}function lt(e){ln.setBufferTimeAtTopQualityLongForm(e)}function ft(e){ln.setLongFormContentDurationThreshold(e)}function dt(e){ln.setRichBufferThreshold(e)}function ct(e){ln.setBandwidthSafetyFactor(e)}function gt(){return ln.getBandwidthSafetyFactor()}function pt(e){ln.setAbandonLoadTimeout(e)}function ht(e){ln.setFragmentRetryAttempts(e)}function vt(e){ln.setFragmentRetryInterval(e)}function mt(e){ln.setXHRWithCredentials(e)}function _t(){return Ft()}function yt(e){an=e}function Et(e){Jt=e}function Tt(e){var t=(0,S["default"])(Vt).getInstance();t.setConfig({videoModel:mn}),t.initialize(),t.displayCConTop(e)}function St(){return mn?mn.getVideoContainer():null}function It(e){if(!mn)throw qt;mn.setVideoContainer(e)}function Rt(){if(!mn)throw qt;return mn.getElement()}function At(e){if(!$t)throw Gt;mn=null,e&&(mn=(0,Y["default"])(Vt).getInstance(),mn.initialize(),mn.setElement(e),Ft(),Ut()),Pt()}function Mt(){return mn?mn.getTTMLRenderingDiv():null}function bt(e){if(!mn)throw qt;mn.setTTMLRenderingDiv(e)}function Ct(){if(!Zt)throw Yt;return Zt}function Dt(e){if(!$t)throw Gt;if("string"==typeof e){var t=(0,O["default"])(Vt).getInstance();t.initialize(),Zt=t.parseURI(e)}else Zt=e;Pt()}function Ot(){Dt(null),At(null),Jt=null,an=null}function Pt(){en?(en=!1,sn.reset(),cn.reset(),pn.reset(),nn.reset(),gn.reset(),rn.reset(),cn=null,on=null,n()&&Kt()):n()&&Kt()}function wt(){var e=(0,W["default"])(Vt).getInstance();e.initialize();var t=(0,H["default"])(Vt).getInstance();t.initialize();var n=(0,R["default"])(Vt).getInstance();n.setConfig({dashManifestModel:vn}),rn.initialize(),rn.setConfig({errHandler:fn}),gn=(0,V["default"])(Vt).getInstance(),gn.initialize(),gn.setConfig({abrRulesCollection:t,synchronizationRulesCollection:e}),cn=(0,f["default"])(Vt).getInstance(),cn.setConfig({capabilities:dn,manifestLoader:Nt(),manifestModel:(0,w["default"])(Vt).getInstance(),dashManifestModel:vn,protectionController:an,adapter:sn,metricsModel:un,dashMetrics:hn,liveEdgeFinder:(0,v["default"])(Vt).getInstance(),mediaSourceController:(0,X["default"])(Vt).getInstance(),timeSyncController:(0,j["default"])(Vt).getInstance(),baseURLController:(0,J["default"])(Vt).getInstance(),errHandler:fn,timelineConverter:(0,ye["default"])(Vt).getInstance()}),cn.initialize(tn,Jt),nn.setConfig({abrRulesCollection:t,rulesController:gn,streamController:cn})}function Nt(){return(0,p["default"])(Vt).create({errHandler:fn,parser:Lt(),metricsModel:un,requestModifier:(0,M["default"])(Vt).getInstance()})}function Lt(){return(0,ge["default"])(Vt).create()}function xt(){return sn=(0,de["default"])(Vt).getInstance(),sn.initialize(),sn.setConfig({dashManifestModel:vn}),sn}function Ft(){if(an)return an;var e=dashjs.Protection;if("function"==typeof e){var t=e(Vt).create();return ie["default"].extend(e.events),oe["default"].extend(e.events,{publicOnly:!0}),an=t.createProtectionSystem({log:Qt,videoModel:mn,capabilities:dn,eventBus:zt,adapter:sn})}return null}function Ut(){if(on)return on;var e=dashjs.MetricsReporting;if("function"==typeof e){var t=e(Vt).create();return on=t.createMetricsReporting({log:Qt,eventBus:zt,mediaElement:Rt(),dashManifestModel:vn,metricsModel:un})}return null}function Bt(){var e=un.getReadOnlyMetricsFor("video")||un.getReadOnlyMetricsFor("audio");return hn.getCurrentDVRInfo(e)}function kt(e){var t,n,r=Bt();return r?(t=r.manifestInfo.availableFrom.getTime()/1e3,n=e+(t+r.range.start)):0}function jt(){if(!en)throw Ht;var e=cn.getActiveStreamInfo();return e?cn.getStreamById(e.id):null}function Kt(){en||(en=!0,Qt("Playback Initialized"),wt(),"string"==typeof Zt?cn.load(Zt):cn.loadWithManifest(Zt))}var Ht="You must first call play() to init playback before calling this method",qt="You must first call attachView() to set the video element before calling this method",Yt="You must first call attachSource() with a valid source before calling this method",Gt="MediaPlayer not initialized!",Vt=this.context,zt=(0,ne["default"])(Vt).getInstance(),Wt=(0,ee["default"])(Vt).getInstance(),Qt=Wt.log,Xt=void 0,Zt=void 0,Jt=void 0,$t=void 0,en=void 0,tn=void 0,nn=void 0,rn=void 0,an=void 0,on=void 0,sn=void 0,un=void 0,ln=void 0,fn=void 0,dn=void 0,cn=void 0,gn=void 0,pn=void 0,hn=void 0,vn=void 0,mn=void 0,_n=void 0;return Xt={initialize:t,on:k,off:K,extend:U,attachView:At,attachSource:Dt,isReady:n,play:r,isPaused:a,pause:i,isSeeking:s,seek:I,setMute:l,isMuted:d,setVolume:g,getVolume:h,time:A,duration:b,timeAsUTC:D,durationAsUTC:P,getActiveStream:jt,getDVRWindowSize:y,getDVRSeekOffset:T,convertToTimeCode:x,formatUTC:N,getVersion:q,getDebug:G,getBufferLength:m,getVideoModel:z,getVideoContainer:St,getTTMLRenderingDiv:Mt,getVideoElement:Rt,getSource:Ct,setLiveDelayFragmentCount:Q,setLiveDelay:Z,useSuggestedPresentationDelay:$,enableLastBitrateCaching:te,enableLastMediaSettingsCaching:re,setMaxAllowedBitrateFor:ae,getMaxAllowedBitrateFor:se,setMaxAllowedRepresentationRatioFor:fe,getMaxAllowedRepresentationRatioFor:ce,setAutoPlay:pe,getAutoPlay:ve,setScheduleWhilePaused:_e,getScheduleWhilePaused:Ee,getDashMetrics:Te,getMetricsFor:Se,getQualityFor:Ie,setQualityFor:Re,getLimitBitrateByPortal:Ae,setLimitBitrateByPortal:Me,getUsePixelRatioInLimitBitrateByPortal:be,setUsePixelRatioInLimitBitrateByPortal:Ce,setTextTrack:De,getBitrateInfoListFor:Oe,setInitialBitrateFor:Pe,getInitialBitrateFor:we,setInitialRepresentationRatioFor:Ne,getInitialRepresentationRatioFor:Le,getStreamsFromManifest:xe,getTracksFor:Fe,getTracksForTypeFromManifest:Ue,getCurrentTrackFor:Be,setInitialMediaSettingsFor:ke,getInitialMediaSettingsFor:je,setCurrentTrack:Ke,getTrackSwitchModeFor:He,setTrackSwitchModeFor:qe,setSelectionModeForInitialTrack:Ye,getSelectionModeForInitialTrack:Ge,getAutoSwitchQuality:Ve,setAutoSwitchQuality:ze,setFastSwitchEnabled:Xe,getFastSwitchEnabled:Ze,getAutoSwitchQualityFor:We,setAutoSwitchQualityFor:Qe,enableBufferOccupancyABR:Je,setBandwidthSafetyFactor:ct,getBandwidthSafetyFactor:gt,setAbandonLoadTimeout:pt,retrieveManifest:$e,addUTCTimingSource:et,removeUTCTimingSource:tt,clearDefaultUTCTimingSources:nt,restoreDefaultUTCTimingSources:rt,setBufferToKeep:at,setBufferPruningInterval:ot,setStableBufferTime:st,setBufferTimeAtTopQuality:ut,setFragmentLoaderRetryAttempts:ht,setFragmentLoaderRetryInterval:vt,setXHRWithCredentials:mt,setBufferTimeAtTopQualityLongForm:lt,setLongFormContentDurationThreshold:ft,setRichBufferThreshold:dt,getProtectionController:_t,attachProtectionController:yt,setProtectionData:Et,enableManifestDateHeaderTimeSource:it,displayCaptionsOnTop:Tt,attachVideoContainer:It,attachTTMLRenderingDiv:bt,reset:Ot},e(),Xt}Object.defineProperty(t,"__esModule",{value:!0});var a=n(58),o=r(a),s=n(9),u=r(s),l=n(20),f=r(l),d=n(13),c=r(d),g=n(98),p=r(g),h=n(51),v=r(h),m=n(11),_=r(m),y=n(159),E=r(y),T=n(39),S=r(T),I=n(28),R=r(I),A=n(33),M=r(A),b=n(17),C=r(b),D=n(40),O=r(D),P=n(31),w=r(P),N=n(5),L=r(N),x=n(14),F=r(x),U=n(10),B=r(U),k=n(111),j=r(k),K=n(47),H=r(K),q=n(19),Y=r(q),G=n(46),V=r(G),z=n(48),W=r(z),Q=n(108),X=r(Q),Z=n(104),J=r(Z),$=n(4),ee=r($),te=n(3),ne=r(te),re=n(2),ie=r(re),ae=n(38),oe=r(ae),se=n(1),ue=r(se),le=n(53),fe=n(15),de=r(fe),ce=n(80),ge=r(ce),pe=n(12),he=r(pe),ve=n(16),me=r(ve),_e=n(26),ye=r(_e);i.__dashjs_factory_name="MediaPlayer";var Ee=ue["default"].getClassFactory(i);Ee.events=oe["default"],t["default"]=Ee,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(t,n){var r,i=t.match(o);if(i){try{r=l[i[1]](s).create({eventBus:e.eventBus}),r.initialize(i[1],n,i[3],i[5])}catch(u){r=null,a("MetricsHandlerFactory: Could not create handler for type "+i[1]+" with args "+i[3]+", "+i[5]+" ("+u.message+")")}return r}}function n(e,t){l[e]=t}function r(e){delete l[e]}var i=void 0,a=e.log,o=/([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/,s=this.context,l={BufferLevel:u["default"],DVBErrors:f["default"],HttpList:c["default"],PlayList:p["default"],RepSwitchList:p["default"],TcpList:p["default"]};return i={create:t,register:n,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(119),u=r(s),l=n(120),f=r(l),d=n(122),c=r(d),g=n(121),p=r(g);i.__dashjs_factory_name="MetricsHandlerFactory",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t){var n;try{n=i[e.schemeIdUri](a).create(),n.initialize(e,t)}catch(r){n=null,o("ReportingFactory: could not create Reporting with schemeIdUri "+e.schemeIdUri+" ("+r.message+")")}return n}function n(e,t){i[e]=t}function r(e){delete i[e]}var i={"urn:dvb:dash:reporting:2014":u["default"]},a=this.context,o=e.log,s=void 0;return s={create:t,register:n,unregister:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(123),u=r(s);i.__dashjs_factory_name="ReportingFactory",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){return{reconstructFullMetricName:function(e,t,n){var r=e;return t&&(r+="("+t,n&&n.length&&(r+=","+n),r+=")"),r},validateN:function(e){if(!e)throw new Error("missing n");if(isNaN(e))throw new Error("n is NaN");if(e<0)throw new Error("n must be positive");return e}}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="HandlerHelpers",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){var n=null,r=(0,u["default"])(i).getInstance();r.setConfig({log:e.log}),r.initialize();var a=t(e);return!n&&a&&(n=(0,o["default"])(i).create({protectionModel:a,protectionKeyController:r,adapter:e.adapter,eventBus:e.eventBus,log:e.log}),e.capabilities.setEncryptedMediaSupported(!0)),n}function t(e){var t=e.log,r=e.eventBus,a=e.videoModel.getElement();return void 0!==a.onencrypted&&void 0!==a.mediaKeys&&void 0!==navigator.requestMediaKeySystemAccess&&"function"==typeof navigator.requestMediaKeySystemAccess?(t("EME detected on this user agent! (ProtectionModel_21Jan2015)"),(0,c["default"])(i).create({log:t,eventBus:r})):n(a,E)?(t("EME detected on this user agent! (ProtectionModel_3Feb2014)"),(0,p["default"])(i).create({log:t,eventBus:r,api:n(a,E)})):n(a,y)?(t("EME detected on this user agent! (ProtectionModel_01b)"),(0,v["default"])(i).create({log:t,eventBus:r,api:n(a,y)})):(t("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("function"==typeof e[r[Object.keys(r)[0]]])return r}return null}var r=void 0,i=this.context;return r={createProtectionSystem:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(134),o=r(a),s=n(32),u=r(s),l=n(133),f=r(l),d=n(139),c=r(d),g=n(140),p=r(g),h=n(138),v=r(h),m=n(1),_=r(m),y=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],E=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];i.__dashjs_factory_name="Protection";var T=_["default"].getClassFactory(i);T.events=f["default"],t["default"]=T,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r){if(n(this,e),r&&"persistent"!==r&&"temporary"!==r)throw new Error("Invalid ClearKey key set type! Must be one of 'persistent' or 'temporary'");this.keyPairs=t,this.type=r}return r(e,[{key:"toJWK",value:function(){var e,t=this.keyPairs.length,n={keys:[]};for(e=0;e<t;e++){var r={kty:"oct",alg:"A128KW",kid:this.keyPairs[e].keyID,k:this.keyPairs[e].key};n.keys.push(r)}this.type&&(n.type=this.type);var i=JSON.stringify(n),a=i.length,o=new ArrayBuffer(a),s=new Uint8Array(o);for(e=0;e<a;e++)s[e]=i.charCodeAt(e);return o}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t){n(this,i),this.keyID=e,this.key=t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){k={},j=[],K=(0,f["default"])(N).getInstance(),H=(0,c["default"])(N).getInstance(),q=(0,h["default"])(N).getInstance(),U.on(y["default"].BUFFER_EMPTY,v,B),U.on(y["default"].PLAYBACK_SEEKING,_,B),U.on(y["default"].PERIOD_SWITCH_STARTED,E,B)}function n(e){return e.map(function(e){return Math.log(e)})}function r(e,t,r,i){var a=NaN;if(i?(a=0,i.forEach(function(e,t){e>i[a]&&(a=t)})):(i=n(r),a=i.length-1),0===a)return null;var o=1-i[0]+(i[a]-i[0])/(t/e-1),s=e/(i[0]+o-1);return{utilities:i,gp:o,Vp:s}}function a(e){var t={},n=e.getMediaInfo(),i=e.getStreamProcessor(),a=e.getStreamInfo(),o=e.getTrackInfo(),s=i.isDynamic(),u=a.manifestInfo.duration,l=o.fragmentDuration,f=n.bitrateList.map(function(e){return e.bandwidth}),d=r(M,b,f,null);if(null===d)return t.state=S,t;if(t.state=I,t.bitrates=f,t.utilities=d.utilities,t.Vp=d.Vp,t.gp=d.gp,t.isDynamic=s,t.movieDuration=u,t.fragmentDuration=l,t.bandwidthSafetyFactor=K.getBandwidthSafetyFactor(),t.rebufferSafetyFactor=C,t.bufferTarget=K.getStableBufferTime(),t.lastQuality=0,t.virtualBuffer=0,t.throughputCount=s?P:w,A){for(var c="",g=0;g<f.length;++g){var p=d.utilities[g],h=f[g],v=0;if(g>0){var m=d.utilities[g-1],_=f[g-1];v=d.Vp*((m*h-p*_)/(h-_)+d.gp)}var y=d.Vp*(p+d.gp);c+="\n"+g+":"+(1e-6*f[g]).toFixed(3)+"Mbps "+v.toFixed(3)+"/"+y.toFixed(3)}L("BolaDebug "+n.type+" bitrates"+c)}return t}function s(e,t){for(var n=e.bitrates.length,r=NaN,i=NaN,a=0;a<n;++a){var o=(e.Vp*(e.utilities[a]+e.gp)-t)/e.bitrates[a];(isNaN(i)||o>=i)&&(i=o,r=a)}return r}function u(e,t){for(var n=x.getHttpRequests(e),r=[],i=n.length-1;i>=0&&r.length<t;--i){var a=n[i];a.type===g.HTTPRequest.MEDIA_SEGMENT_TYPE&&a._tfinish&&a.tresponse&&a.trace&&r.push(a)}return r}function l(e,t,n){var r=u(e,t);if(0===r.length)return 0;for(var i=0,a="",o=0;o<r.length;++o){var s=.001*(r[o]._tfinish.getTime()-r[o].trequest.getTime()),l=8*r[o].trace.reduce(function(e,t){return e+t.b[0]},0);A&&(a+=" "+(1e-6*l).toFixed(3)+"/"+s.toFixed(3)+"="+(1e-6*l/s).toFixed(3)+"Mbps"),i+=s/l}return A&&L("BolaDebug "+n+" BolaRule recent throughput = "+(r.length/(1e6*i)).toFixed(3)+"Mbps:"+a),r.length/i}function d(e,t){var n=0;return e.bitrates.some(function(e,r){return e>t||(n=r,!1)}),n}function p(e,t){var n=u(e,1);if(0===n.length)return 0;var r=n[0],i=Date.now(),a=r._tfinish.getTime();a>i&&(a=i);var o=k[t];k[t]=i;var s=0;return s=o&&o>a?i-o:i-a,s<=0?0:.001*s}function v(){A&&L("BolaDebug BUFFER_EMPTY"),j.forEach(function(e){var t=F.getReadOnlyMetricsFor(e);if(0!==t.BolaState.length){var n=t.BolaState[0]._s;n.state===R&&(n.virtualBuffer=0,F.updateBolaState(e,n))}})}function _(e){A&&L("BolaDebug PLAYBACK_SEEKING "+e.seekTime.toFixed(3)),j.forEach(function(e){var t=F.getReadOnlyMetricsFor(e);if(0!==t.BolaState.length){var n=t.BolaState[0]._s;n.state!==S&&(n.state=I),F.updateBolaState(e,n)}})}function E(){}function D(e,t){var n=e.getStreamProcessor();n.getScheduleController().setTimeToLoadDelay(0);var r=(0,o["default"])(N).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name}),u=e.getMediaInfo(),f=u.type,c=F.getReadOnlyMetricsFor(f);if(0===c.BolaState.length){A&&L("BolaDebug "+f+"\nBolaDebug "+f+" BolaRule for state=- fragmentStart="+q.getIndexHandlerTime(e.getStreamProcessor()).toFixed(3));var g=a(e);F.updateBolaState(f,g);var h=0;if(g.state!==S){j.push(f);var v=l(c,g.throughputCount,f);if(0===v)return A&&L("BolaDebug "+f+" BolaRule quality unchanged for INITIALIZE"),void t(r);h=d(g,v*g.bandwidthSafetyFactor),g.lastQuality=h,r.value=h,r.priority=o["default"].DEFAULT,r.reason.state=g.state,r.reason.throughput=v}return A&&L("BolaDebug "+f+" BolaRule quality "+h+" for INITIALIZE"),void t(r)}var m=c.BolaState[0]._s;if(m.state===S)return A&&L("BolaDebug "+f+" BolaRule quality 0 for ONE_BITRATE"),void t(r);var _=m.bitrates,y=m.utilities;A&&L("BolaDebug "+f+"\nBolaDebug "+f+" EXECUTE BolaRule for state="+m.state+" fragmentStart="+q.getIndexHandlerTime(e.getStreamProcessor()).toFixed(3));var E=x.getCurrentBufferLevel(c)?x.getCurrentBufferLevel(c):0,T=l(c,m.throughputCount,f);E<=.1&&(m.virtualBuffer=0);var M=p(c,f);M>0&&(m.virtualBuffer+=M),m.virtualBuffer<0&&(m.virtualBuffer=0);var b=E+m.virtualBuffer,D=s(m,b);if(A&&L("BolaDebug "+f+" BolaRule bufferLevel="+E.toFixed(3)+"(+"+m.virtualBuffer.toFixed(3)+"="+b.toFixed(3)+") recentThroughput="+(1e-6*T).toFixed(3)+" tentativeQuality="+D),m.state===I){var h=d(m,T*m.bandwidthSafetyFactor);if(E>m.fragmentDuration/C){m.state=R;for(var O=0,P=0;P<h;++P){var w=m.Vp*(m.gp+(_[h]*y[P]-_[P]*y[h])/(_[h]-_[P]));w>O&&(O=w)}O>E&&(m.virtualBuffer=O-E)}return A&&L("BolaDebug "+f+" BolaRule quality "+h+" for STARTUP"),m.lastQuality=h,F.updateBolaState(f,m),r.value=h,r.priority=o["default"].DEFAULT,r.reason.state=I,r.reason.throughput=T,void t(r)}if(D>m.lastQuality){var h=d(m,T);D>h&&(h<m.lastQuality&&(h=m.lastQuality),D=h)}if(T>0)for(var U=C*T*E/m.fragmentDuration;D>0&&_[D]>U;)--D;var B=0,k=m.Vp*(y[D]+m.gp);B=b-k,B>0&&(B>m.virtualBuffer?(B-=m.virtualBuffer,m.virtualBuffer=0):(m.virtualBuffer-=B,B=0)),B>0?D===_.length-1?B=0:n.getScheduleController().setTimeToLoadDelay(1e3*B):B=0,m.lastQuality=D,F.updateBolaState(f,m),r.value=D,r.priority=o["default"].DEFAULT,r.reason.state=m.state,r.reason.throughput=T,r.reason.bufferLevel=E,A&&L("BolaDebug "+f+" BolaRule quality "+D+" delay="+B.toFixed(3)+" for STEADY"),t(r)}function O(){U.off(y["default"].BUFFER_EMPTY,v,B),U.off(y["default"].PLAYBACK_SEEKING,_,B),U.off(y["default"].PERIOD_SWITCH_STARTED,E,B),t()}var P=2,w=3,N=this.context,L=(0,T["default"])(N).getInstance().log,x=e.dashMetrics,F=e.metricsModel,U=(0,m["default"])(N).getInstance(),B=void 0,k=void 0,j=void 0,K=void 0,H=void 0,q=void 0;return B={execute:D,reset:O},t(),B}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(1),u=r(s),l=n(5),f=r(l),d=n(9),c=r(d),g=n(7),p=n(15),h=r(p),v=n(3),m=r(v),_=n(2),y=r(_),E=n(4),T=r(E),S=0,I=1,R=2,A=!1,M=10,b=30,C=.5;i.__dashjs_factory_name="BolaRule";var D=u["default"].getClassFactory(i);D.BOLA_STATE_ONE_BITRATE=S,D.BOLA_STATE_STARTUP=I,D.BOLA_STATE_STEADY=R,D.BOLA_DEBUG=A,t["default"]=D,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){var n=0;for(n=0;n<this.customTimeRangeArray.length&&e>this.customTimeRangeArray[n].start;n++);for(this.customTimeRangeArray.splice(n,0,{start:e,end:t}),n=0;n<this.customTimeRangeArray.length-1;n++)this.mergeRanges(n,n+1)&&n--;this.length=this.customTimeRangeArray.length}function t(){this.customTimeRangeArray=[],this.length=0}function n(e,t){for(var n=0;n<this.customTimeRangeArray.length;n++)if(e<=this.customTimeRangeArray[n].start&&t>=this.customTimeRangeArray[n].end)this.customTimeRangeArray.splice(n,1),n--;else{if(e>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end){this.customTimeRangeArray.splice(n+1,0,{start:t,end:this.customTimeRangeArray[n].end}),this.customTimeRangeArray[n].end=e;break}e>this.customTimeRangeArray[n].start&&e<this.customTimeRangeArray[n].end?this.customTimeRangeArray[n].end=e:t>this.customTimeRangeArray[n].start&&t<this.customTimeRangeArray[n].end&&(this.customTimeRangeArray[n].start=t)}this.length=this.customTimeRangeArray.length}function r(e,t){var n=this.customTimeRangeArray[e],r=this.customTimeRangeArray[t];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,this.customTimeRangeArray.splice(t,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(this.customTimeRangeArray.splice(e,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(this.customTimeRangeArray.splice(t,1),!0)}function i(e){return this.customTimeRangeArray[e].start}function a(e){return this.customTimeRangeArray[e].end}var o=[],s=0;return{customTimeRangeArray:o,length:s,add:e,clear:t,remove:n,mergeRanges:r,start:i,end:a}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="CustomTimeRanges",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){var t=e.streamId,n=e.mediaInfo.type,i=e.quality;r[t]=r[t]||{},r[t][n]=r[t][n]||{},r[t][n][i]=e}function t(e,t,n){return r[e][t][n]}function n(){r={}}var r={},i={save:e,extract:t,reset:n};return i}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="InitCache",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(23),l=r(u),f=function(e){function t(e,n){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.type=n||null,this.mediaType="stream",this.responseType="text"}return a(t,e),t}(l["default"]);t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function a(){n(this,a),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]};r.INITIAL_PLAYOUT_START_REASON="initial_playout",r.SEEK_START_REASON="seek",r.RESUME_FROM_PAUSE_START_REASON="resume",r.METRICS_COLLECTION_START_REASON="metrics_collection_start";var i=function o(){n(this,o),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null};i.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",i.REBUFFERING_REASON="rebuffering",i.USER_REQUEST_STOP_REASON="user_request",i.END_OF_PERIOD_STOP_REASON="end_of_period",i.END_OF_CONTENT_STOP_REASON="end_of_content",i.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",i.FAILURE_STOP_REASON="failure",t.PlayList=r,t.PlayListTrace=i},function(e,t,n){"use strict";var r={};r.parseBuffer=function(e){return new i(e).parse()},r.Utils={},r.Utils.dataViewToString=function(e,t){var n=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(n).decode(e);var r=[],i=0;if("utf-8"===n)for(;i<e.byteLength;){var a=e.getUint8(i++);a<128||(a<224?(a=(31&a)<<6,a|=63&e.getUint8(i++)):a<240?(a=(15&a)<<12,a|=(63&e.getUint8(i++))<<6,a|=63&e.getUint8(i++)):(a=(7&a)<<18,a|=(63&e.getUint8(i++))<<12,a|=(63&e.getUint8(i++))<<6,a|=63&e.getUint8(i++))),r.push(String.fromCharCode(a))}else for(;i<e.byteLength;)r.push(String.fromCharCode(e.getUint8(i++)));return r.join("")},t.parseBuffer=r.parseBuffer,t.Utils=r.Utils,r.Cursor=function(e){this.offset="undefined"==typeof e?0:e};var i=function(e){this._raw=new DataView(e),this._cursor=new r.Cursor,this.boxes=[]};i.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},i.prototype.fetchAll=function(e,t){var n=[];return i._sweep.call(this,e,n,t),n},i.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=a.parse(this);if("undefined"==typeof e.type)break;this.boxes.push(e)}return this},i._sweep=function(e,t,n){this.type&&this.type==e&&t.push(this);for(var r in this.boxes){if(t.length&&n)return;i._sweep.call(this.boxes[r],e,t,n)}};var a=function(){this._cursor=new r.Cursor};a.parse=function(e){var t=new a;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},a.prototype._readInt=function(e){var t=null;switch(e){case 8:t=this._raw.getInt8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getInt16(this._cursor.offset-this._raw.byteOffset);break;case 32:t=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset);break;case 64:var n=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset),r=this._raw.getInt32(this._cursor.offset-this._raw.byteOffset+4);t=n*Math.pow(2,32)+r}return this._cursor.offset+=e>>3,t},a.prototype._readUint=function(e){var t=null;switch(e){case 8:t=this._raw.getUint8(this._cursor.offset-this._raw.byteOffset);break;case 16:t=this._raw.getUint16(this._cursor.offset-this._raw.byteOffset);break;case 24:var n=this._raw.getUint16(this._cursor.offset-this._raw.byteOffset),r=this._raw.getUint8(this._cursor.offset-this._raw.byteOffset+2);t=(n<<8)+r;break;case 32:t=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset);break;case 64:var n=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset),r=this._raw.getUint32(this._cursor.offset-this._raw.byteOffset+4);t=n*Math.pow(2,32)+r}return this._cursor.offset+=e>>3,t},a.prototype._readString=function(e){for(var t="",n=0;n<e;n++){var r=this._readUint(8);
|
32 |
+
t+=String.fromCharCode(r)}return t},a.prototype._readTerminatedString=function(){for(var e="";;){var t=this._readUint(8);if(0==t)break;e+=String.fromCharCode(t)}return e},a.prototype._readTemplate=function(e){var t=this._readUint(e/2),n=this._readUint(e/2);return t+n/Math.pow(2,e/2)},a.prototype._parseBox=function(){if(this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)return void(this._root._incomplete=!0);switch(this.size=this._readUint(32),this.type=this._readString(4),1==this.size&&(this.largesize=this._readUint(64)),"uuid"==this.type&&(this.usertype=this._readString(16)),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}!this._incomplete&&this._boxParsers[this.type]&&this._boxParsers[this.type].call(this)},a.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},a.prototype._boxParsers={},["moov","trak","tref","mdia","minf","stbl","edts","dinf","mvex","moof","traf","mfra","udta","meco","strk","vttc"].forEach(function(e){a.prototype._boxParsers[e]=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(a.parse(this))}}),a.prototype._boxParsers.elst=function(){this._parseFullBox(),this.entry_count=this._readUint(32),this.entries=[];for(var e=1;e<=this.entry_count;e++){var t={};1==this.version?(t.segment_duration=this._readUint(64),t.media_time=this._readInt(64)):(t.segment_duration=this._readUint(32),t.media_time=this._readInt(32)),t.media_rate_integer=this._readInt(16),t.media_rate_fraction=this._readInt(16),this.entries.push(t)}},a.prototype._boxParsers.emsg=function(){this._parseFullBox(),this.scheme_id_uri=this._readTerminatedString(),this.value=this._readTerminatedString(),this.timescale=this._readUint(32),this.presentation_time_delta=this._readUint(32),this.event_duration=this._readUint(32),this.id=this._readUint(32),this.message_data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},a.prototype._boxParsers.free=a.prototype._boxParsers.skip=function(){this.data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},a.prototype._boxParsers.ftyp=a.prototype._boxParsers.styp=function(){for(this.major_brand=this._readString(4),this.minor_versions=this._readUint(32),this.compatible_brands=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.compatible_brands.push(this._readString(4))},a.prototype._boxParsers.hdlr=function(){this._parseFullBox(),this.pre_defined=this._readUint(32),this.handler_type=this._readString(4),this.reserved=[this._readUint(32),this._readUint(32),this._readUint(32)],this.name=this._readTerminatedString()},a.prototype._boxParsers.mdat=function(){this.data=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset))},a.prototype._boxParsers.mdhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32));var e=this._readUint(16);this.pad=e>>15,this.language=String.fromCharCode((e>>10&31)+96,(e>>5&31)+96,(31&e)+96),this.pre_defined=this._readUint(16)},a.prototype._boxParsers.mfhd=function(){this._parseFullBox(),this.sequence_number=this._readUint(32)},a.prototype._boxParsers.mvhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.timescale=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.timescale=this._readUint(32),this.duration=this._readUint(32)),this.rate=this._readTemplate(32),this.volume=this._readTemplate(16),this.reserved1=this._readUint(16),this.reserved2=[this._readUint(32),this._readUint(32)],this.matrix=[];for(var e=0;e<9;e++)this.matrix.push(this._readTemplate(32));this.pre_defined=[];for(var e=0;e<6;e++)this.pre_defined.push(this._readUint(32));this.next_track_ID=this._readUint(32)},a.prototype._boxParsers.payl=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.cue_text=r.Utils.dataViewToString(e)},a.prototype._boxParsers.sidx=function(){this._parseFullBox(),this.reference_ID=this._readUint(32),this.timescale=this._readUint(32),0==this.version?(this.earliest_presentation_time=this._readUint(32),this.first_offset=this._readUint(32)):(this.earliest_presentation_time=this._readUint(64),this.first_offset=this._readUint(64)),this.reserved=this._readUint(16),this.reference_count=this._readUint(16),this.references=[];for(var e=0;e<this.reference_count;e++){var t={},n=this._readUint(32);t.reference_type=n>>31&1,t.referenced_size=2147483647&n,t.subsegment_duration=this._readUint(32);var r=this._readUint(32);t.starts_with_SAP=r>>31&1,t.SAP_type=r>>28&7,t.SAP_delta_time=268435455&r,this.references.push(t)}},a.prototype._boxParsers.ssix=function(){this._parseFullBox(),this.subsegment_count=this._readUint(32),this.subsegments=[];for(var e=0;e<this.subsegment_count;e++){var t={};t.ranges_count=this._readUint(32),t.ranges=[];for(var n=0;n<t.ranges_count;n++){var r={};r.level=this._readUint(8),r.range_size=this._readUint(24),t.ranges.push(r)}this.subsegments.push(t)}},a.prototype._boxParsers.tfdt=function(){this._parseFullBox(),1==this.version?this.baseMediaDecodeTime=this._readUint(64):this.baseMediaDecodeTime=this._readUint(32)},a.prototype._boxParsers.tfhd=function(){this._parseFullBox(),this.track_ID=this._readUint(32),1&this.flags&&(this.base_data_offset=this._readUint(64)),2&this.flags&&(this.sample_description_offset=this._readUint(32)),8&this.flags&&(this.default_sample_duration=this._readUint(32)),16&this.flags&&(this.default_sample_size=this._readUint(32)),32&this.flags&&(this.default_sample_flags=this._readUint(32))},a.prototype._boxParsers.tkhd=function(){this._parseFullBox(),1==this.version?(this.creation_time=this._readUint(64),this.modification_time=this._readUint(64),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(64)):(this.creation_time=this._readUint(32),this.modification_time=this._readUint(32),this.track_ID=this._readUint(32),this.reserved1=this._readUint(32),this.duration=this._readUint(32)),this.reserved2=[this._readUint(32),this._readUint(32)],this.layer=this._readUint(16),this.alternate_group=this._readUint(16),this.volume=this._readTemplate(16),this.reserved3=this._readUint(16),this.matrix=[];for(var e=0;e<9;e++)this.matrix.push(this._readTemplate(32));this.width=this._readUint(32),this.height=this._readUint(32)},a.prototype._boxParsers.trun=function(){this._parseFullBox(),this.sample_count=this._readUint(32),1&this.flags&&(this.data_offset=this._readInt(32)),4&this.flags&&(this.first_sample_flags=this._readUint(32)),this.samples=[];for(var e=0;e<this.sample_count;e++){var t={};256&this.flags&&(t.sample_duration=this._readUint(32)),512&this.flags&&(t.sample_size=this._readUint(32)),1024&this.flags&&(t.sample_flags=this._readUint(32)),2048&this.flags&&(0==this.version?t.sample_composition_time_offset=this._readUint(32):t.sample_composition_time_offset=this._readInt(32)),this.samples.push(t)}},a.prototype._boxParsers.vlab=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.source_label=r.Utils.dataViewToString(e)},a.prototype._boxParsers.vttC=function(){var e=new DataView(this._raw.buffer,this._cursor.offset,this._raw.byteLength-(this._cursor.offset-this._offset));this.config=r.Utils.dataViewToString(e)},a.prototype._boxParsers.vtte=function(){}},function(e,t,n){(function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(){var r=function(e,t){var n,r="dash",i=window.MediaSource,a=t.common,o=t.extend,s=t.version,u=function(e,t,n){return"application/dash+xml"===e.toLowerCase()&&i.isTypeSupported(t+';codecs="'+n+'"')&&(n.indexOf("mp4a.40.5")<0||navigator.userAgent.indexOf("Android")<0)},l=function(i,l){var f,d,c,g,p=t.bean,h={engineName:r,pick:function(e){var t,r,i,o;for(t=0;t<e.length;t+=1)if(r=e[t],i=r.dashType||n.type,o=r.dashCodecs||n.codecs,u(r.type,i,o))return"string"==typeof r.src&&(r.src=a.createAbsoluteUrl(r.src)),r},load:function(s){var u=i.conf,c=o(n,u.dash,u.clip.dash),g={ended:"finish",loadeddata:"ready",pause:"pause",play:"resume",progress:"buffer",ratechange:"speed",seeked:"seek",timeupdate:"progress",volumechange:"volume"},h=e.MediaPlayer.events,v=!!s.autoplay||!!u.autoplay,m="is-poster",_=0;if(f)(i.video.src&&s.src!==i.video.src||s.index)&&f.setAutoPlay(!0),f.attachSource(s.src);else{if(a.removeNode(a.findDirect("video",l)[0]||a.find(".fp-player > video",l)[0]),d=a.createElement("video",{"class":"fp-engine "+r+"-engine",volume:i.volumeLevel,"x-webkit-airplay":"allow"}),Object.keys(g).forEach(function(e){var t,n=g[e],c=e+"."+r;p.on(d,c,function(e){if(u.debug&&n.indexOf("progress")<0&&console.log(c,"->",n,e.originalEvent),i.ready||!(n.indexOf("ready")<0)){var r,g,p=d.currentTime,h=0,v=0;switch(n){case"ready":t=o(i.video,{duration:f.duration(),seekable:d.seekable.end(null),width:d.videoWidth,height:d.videoHeight,url:i.video.src});break;case"resume":i.poster&&(a.removeClass(l,m),i.poster=!1);break;case"seek":t=f.time();break;case"progress":i.live&&!_&&p>0&&(_=p),t=i.live?_?p-_:0:p;break;case"speed":t=d.playbackRate;break;case"volume":t=d.volume;break;case"buffer":try{if(p)for(r=d.buffered,g=r.length-1;g>-1;g-=1)v=r.end(g),v>=p&&(h=v)}catch(y){}s.buffer=h,t=h}i.trigger(n,[i,t])}})}),u.poster){var y=function(e){"stop"!==e.type&&v||setTimeout(function(){i.poster||(a.addClass(l,m),i.poster=!0)})};i.one("ready."+r,y).on("stop."+r,y)}i.on("error."+r,function(){f&&(f.reset(),f=0)}),f=e.MediaPlayer().create(),i.engine[r]=f,f.enableBufferOccupancyABR(c.bufferOccupancyABR),f.enableLastBitrateCaching(!1),f.setScheduleWhilePaused(!0),f.getDebug().setLogToBrowserConsole(c.debug),Object.keys(h).forEach(function(e){var t=h[e],n=r+t.charAt(0).toUpperCase()+t.slice(1),a=c.listeners,u=a&&a.indexOf(t)>-1;f.on(t,function(t){var r,a,l=o({},t),f=i.video.src;switch(delete l.type,e){case"ERROR":switch(l.error){case"download":r=4;break;case"manifestError":r=5;break;case"mediasource":switch(t.event){case"MEDIA_ERR_DECODE":r=3;break;case"MEDIA_ERR_SRC_NOT_SUPPORTED":r=5;break;case"MEDIA_ERR_NETWORK":r=2;break;case"MEDIA_ERR_ABORTED":r=1}}if(r)return a={code:r},r>2&&(a.video=o(s,{src:f,url:l.event.url||f})),void i.trigger("error",[i,a])}u&&i.trigger(n,[i,l])})}),a.prepend(a.find(".fp-player",l)[0],d),f.initialize(d,s.src,v)}i.video=s,d.paused&&v&&(t.support.firstframe?f.play():(d.play(),d.pause(),f.play()))},resume:function(){f.play()},pause:function(){f.pause()},seek:function(e){f.seek(e)},volume:function(e){d&&(d.volume=e)},speed:function(e){d.playbackRate=e,i.trigger("speed",[i,e])},unload:function(){if(f){var e="."+r;f.reset(),f=0,i.off(e),p.off(l,e),p.off(d,e),a.removeNode(d),d=0}}};return!/^6\.0\.[0-3]$/.test(s)||i.conf.splash||i.conf.poster||i.conf.autoplay||(c=a.css(l,"backgroundColor"),g="none"!==a.css(l,"backgroundImage")||c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c,g&&(i.conf.poster=!0)),h};i&&"function"==typeof i.isTypeSupported&&0!==s.indexOf("5.")&&(l.engineName=r,l.canPlay=function(e,i){return n=o({type:"video/mp4",codecs:"avc1.42c01e,mp4a.40.2"},t.conf[r],i[r],i.clip[r]),u(e,n.type,n.codecs)},t.engines.unshift(l))};"object"===t(e)&&e.exports?e.exports=r.bind(void 0,n(74)):window.dashjs&&window.flowplayer&&r(window.dashjs,window.flowplayer)}()}).call(t,n(187)(e))},function(e,t){"use strict";function n(e){var t,n,i;for(t=[],i=0,n=e.length;i<n;i+=1)e[i].isRoot?t.push("root"):t.push(e[i].name);var a=function(e,t){var n;if(null!==e&&null!==t)for(n in e)e.hasOwnProperty(n)&&(t.hasOwnProperty(n)||(t[n]=e[n]))},o=function(e,t,n){var i,o,s,u,l;if(null!==e&&0!==e.length)for(i=0,o=e.length;i<o;i+=1)s=e[i],t.hasOwnProperty(s.name)&&(n.hasOwnProperty(s.name)?s.merge&&(u=t[s.name],l=n[s.name],"object"===("undefined"==typeof u?"undefined":r(u))&&"object"===("undefined"==typeof l?"undefined":r(l))?a(u,l):null!=s.mergeFunction?n[s.name]=s.mergeFunction(u,l):n[s.name]=u+l):n[s.name]=t[s.name])},s=function l(e,t){var n,r,i,a,s,u,f,d=e;if(null!==d.children&&0!==d.children.length)for(n=0,r=d.children.length;n<r;n+=1)if(u=d.children[n],t.hasOwnProperty(u.name))if(u.isArray)for(s=t[u.name+"_asArray"],i=0,a=s.length;i<a;i+=1)f=s[i],o(d.properties,t,f),l(u,f);else f=t[u.name],o(d.properties,t,f),l(u,f)},u=function f(n){var i,a,o,u,l,d,c;if(null===n)return n;if("object"!==("undefined"==typeof n?"undefined":r(n)))return n;for(i=0,a=t.length;i<a;i+=1)"root"===t[i]&&(l=e[i],d=n,s(l,d));for(u in n)if(n.hasOwnProperty(u)&&"__children"!=u){if(o=t.indexOf(u),o!==-1)if(l=e[o],l.isArray)for(c=n[u+"_asArray"],i=0,a=c.length;i<a;i+=1)d=c[i],s(l,d);else d=n[u],s(l,d);f(n[u])}return n};return{run:u}}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),a=r(i),o=n(63),s=r(o),u=n(113),l=r(u),f=n(100),d=r(f),c=n(53),g=window||e,p=g.dashjs;p||(p=g.dashjs={}),p.MediaPlayer=a["default"],p.Protection=s["default"],p.MetricsReporting=l["default"],p.MediaPlayerFactory=d["default"],p.Version=(0,c.getVersionString)(),t["default"]=p,t.MediaPlayer=a["default"],t.Protection=s["default"],t.MetricsReporting=l["default"],t.MediaPlayerFactory=d["default"]}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(24),l=r(u),f=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.AST_IN_FUTURE="astinfuture",this.BUFFERING_COMPLETED="bufferingCompleted",this.BUFFER_CLEARED="bufferCleared",this.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",this.BYTES_APPENDED="bytesAppended",this.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",this.CHUNK_APPENDED="chunkAppended",this.CURRENT_TRACK_CHANGED="currenttrackchanged",this.DATA_UPDATE_COMPLETED="dataUpdateCompleted",this.DATA_UPDATE_STARTED="dataUpdateStarted",this.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",this.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",this.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",this.INITIALIZATION_LOADED="initializationLoaded",this.INIT_FRAGMENT_LOADED="initFragmentLoaded",this.INIT_REQUESTED="initRequested",this.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",this.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",this.LOADING_COMPLETED="loadingCompleted",this.LOADING_PROGRESS="loadingProgress",this.MANIFEST_UPDATED="manifestUpdated",this.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",this.QUOTA_EXCEEDED="quotaExceeded",this.REPRESENTATION_UPDATED="representationUpdated",this.SEGMENTS_LOADED="segmentsLoaded",this.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",this.SOURCEBUFFER_APPEND_COMPLETED="sourceBufferAppendCompleted",this.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",this.STREAMS_COMPOSED="streamsComposed",this.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",this.STREAM_COMPLETED="streamCompleted",this.STREAM_INITIALIZED="streaminitialized",this.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",this.TIMED_TEXT_REQUESTED="timedTextRequested",this.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",this.URL_RESOLUTION_FAILED="urlResolutionFailed",this.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",this.XLINK_ALL_ELEMENTS_LOADED="xlinkAllElementsLoaded",this.XLINK_ELEMENT_LOADED="xlinkElementLoaded",this.XLINK_READY="xlinkReady"}return a(t,e),t}(l["default"]);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){V=-1,X=0,Z=NaN,B.on(d["default"].INITIALIZATION_LOADED,L,G),B.on(d["default"].SEGMENTS_LOADED,x,G)}function n(t){J=t,Q=J.getType(),W=J.isDynamic(),$=(0,S["default"])(F).create(e,W)}function r(){return J}function i(e){X=e}function a(){return X}function s(){return V}function f(){return Z}function c(){$=null,X=0,Z=NaN,z=NaN,V=-1,W=null,Q=null,J=null,B.off(d["default"].INITIALIZATION_LOADED,L,G),B.off(d["default"].SEGMENTS_LOADED,x,G)}function p(e){return e.split("$$").join("$")}function h(e,t){if(null===t||e.indexOf("$RepresentationID$")===-1)return e;var n=t.toString();return e.split("$RepresentationID$").join(n)}function v(e,t,n){var r,i,a=Y.resolve(n.path);return a&&t!==a.url&&k.isRelative(t)?(r=a.url,i=a.serviceLocation,t&&(r+=t)):r=t,!k.isRelative(r)&&(e.url=r,e.serviceLocation=i,!0)}function _(e,t){var n,r,i=new o["default"];if(n=e.adaptation.period,i.mediaType=t,i.type=l.HTTPRequest.INIT_SEGMENT_TYPE,i.range=e.range,r=n.start,i.availabilityStartTime=K.calcAvailabilityStartTimeFromPresentationTime(r,e.adaptation.period.mpd,W),i.availabilityEndTime=K.calcAvailabilityEndTimeFromPresentationTime(r+n.duration,n.mpd,W),i.quality=e.index,i.mediaInfo=J.getMediaInfo(),v(i,e.initialization,e))return i}function T(e){var t;return e?t=_(e,Q):null}function R(e){var t,n,r,i=e.adaptation.period,a=e.segmentInfoType,o=!1;return V<0?o=!1:W||V<e.availableSegmentsNumber?(n=(0,E.getSegmentByIndex)(V,e),n&&(r=n.presentationStartTime-i.start,t=e.adaptation.period.duration,U(e.segmentInfoType+": "+r+" / "+t),o=("SegmentTimeline"!==a||!W)&&r>=t)):o=!0,o}function A(e){return $.getSegments(e,z,V,M)}function M(e,t){if(e.segments=t,t&&t.length>0&&(Z=isNaN(Z)?t[0].presentationStartTime:Math.min(t[0].presentationStartTime,Z)),W&&isNaN(K.getExpectedLiveEdge())){var n=t.length-1,r=t[n],i=r.presentationStartTime,a=q.getMetricsFor("stream");K.setExpectedLiveEdge(i),q.updateManifestUpdateInfo(H.getCurrentManifestUpdate(a),{presentationStartTime:i})}}function b(e){if(!e)throw new u["default"]("no representation");return e.segments=null,A(e),e}function C(e,t){var n,r=e.initialization,i="BaseURL"!==e.segmentInfoType&&"SegmentBase"!==e.segmentInfoType&&!e.indexRange;return e.segmentDuration||e.segments||b(e),e.segmentAvailabilityRange=null,e.segmentAvailabilityRange=K.calcSegmentAvailabilityRange(e,W),e.segmentAvailabilityRange.end<e.segmentAvailabilityRange.start&&!e.useCalculatedLiveEdgeTime?(n=new u["default"](I,"no segments are available yet",{availabilityDelay:e.segmentAvailabilityRange.start-e.segmentAvailabilityRange.end}),void B.trigger(d["default"].REPRESENTATION_UPDATED,{sender:this,representation:e,error:n})):(t||(V=-1),e.segmentDuration&&b(e),r||j.loadInitialization(e),i||j.loadSegments(e,Q,e.indexRange),void(r&&i&&B.trigger(d["default"].REPRESENTATION_UPDATED,{sender:this,representation:e})))}function D(e,t,n){var r,i,a,o,s,u=t.segments,l=u?u.length:null,f=-1;if(u&&l>0)for(s=0;s<l;s++)if(i=u[s],a=i.presentationStartTime,o=i.duration,r=void 0===n||null===n?o/2:n,e+r>=a&&e-r<a+o){f=i.availabilityIdx;break}return f}function O(e){if(null===e||void 0===e)return null;var t=new o["default"],n=e.representation,r=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,i=e.media;return i=(0,E.replaceTokenForTemplate)(i,"Number",e.replacementNumber),i=(0,E.replaceTokenForTemplate)(i,"Time",e.replacementTime),i=(0,E.replaceTokenForTemplate)(i,"Bandwidth",r),i=h(i,n.id),i=p(i),t.mediaType=Q,t.type=l.HTTPRequest.MEDIA_SEGMENT_TYPE,t.range=e.mediaRange,t.startTime=e.presentationStartTime,t.duration=e.duration,t.timescale=n.timescale,t.availabilityStartTime=e.availabilityStartTime,t.availabilityEndTime=e.availabilityEndTime,t.wallStartTime=e.wallStartTime,t.quality=n.index,t.index=e.availabilityIdx,t.mediaInfo=J.getMediaInfo(),t.adaptationIndex=n.adaptation.index,v(t,i,n)?t:void 0}function P(e,t,n){var r,i,a,s=V,u=!!n&&n.keepIdx,l=n?n.timeThreshold:null,f=!(!n||!n.ignoreIsFinished);return e?(z!==t&&(z=t,U("Getting the request for "+Q+" time : "+t)),V=D(t,e,l),A(e),V<0&&(V=D(t,e,l)),V>0&&U("Index for "+Q+" time "+t+" is "+V),a=!f&&R(e),a?(r=new o["default"],r.action=o["default"].ACTION_COMPLETE,r.index=V,r.mediaType=Q,r.mediaInfo=J.getMediaInfo(),U("Signal complete.",r)):(i=(0,E.getSegmentByIndex)(V,e),r=O(i)),u&&s>=0&&(V="SegmentTimeline"===e.segmentInfoType&&W?V:s),r):null}function w(e,t){var n=(e.segmentAvailabilityRange.end-e.segmentAvailabilityRange.start)/2;return e.segments=null,e.segmentAvailabilityRange={start:t-n,end:t+n},P(e,t,{keepIdx:!1,ignoreIsFinished:!0})}function N(e){var t,n,r;return e&&V!==-1?(z=null,V++,U("Getting the next request at index: "+V),r=R(e),r?(t=new o["default"],t.action=o["default"].ACTION_COMPLETE,t.index=V,t.mediaType=Q,t.mediaInfo=J.getMediaInfo(),U("Signal complete.")):(A(e),n=(0,E.getSegmentByIndex)(V,e),t=O(n),!n&&W&&V--),t):null}function L(e){var t=e.representation;t.segments&&B.trigger(d["default"].REPRESENTATION_UPDATED,{sender:this,representation:t})}function x(e){if(!e.error&&Q===e.mediaType){var t,n,r,i,a=e.segments,o=e.representation,s=[],u=0;for(t=0,n=a.length;t<n;t++)r=a[t],i=(0,E.getTimeBasedSegment)(K,W,o,r.startTime,r.duration,r.timescale,r.media,r.mediaRange,u),s.push(i),i=null,u++;o.segmentAvailabilityRange={start:s[0].presentationStartTime,end:s[n-1].presentationStartTime},o.availableSegmentsNumber=n,M(o,s),o.initialization&&B.trigger(d["default"].REPRESENTATION_UPDATED,{sender:this,representation:o})}}var F=this.context,U=(0,m["default"])(F).getInstance().log,B=(0,g["default"])(F).getInstance(),k=(0,y["default"])(F).getInstance(),j=e.segmentBaseLoader,K=e.timelineConverter,H=e.dashMetrics,q=e.metricsModel,Y=e.baseURLController,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0;return G={initialize:n,getStreamProcessor:r,getInitRequest:T,getSegmentRequestForTime:P,getNextSegmentRequest:N,generateSegmentRequestForTime:w,updateRepresentation:C,setCurrentTime:i,getCurrentTime:a,getCurrentIndex:s,getEarliestTime:f,reset:c},t(),G}Object.defineProperty(t,"__esModule",{value:!0});var a=n(23),o=r(a),s=n(6),u=r(s),l=n(7),f=n(2),d=r(f),c=n(3),g=r(c),p=n(1),h=r(p),v=n(4),m=r(v),_=n(22),y=r(_),E=n(25),T=n(89),S=r(T),I=1;i.__dashjs_factory_name="DashHandler";var R=h["default"].getClassFactory(i);R.SEGMENTS_UNAVAILABLE_ERROR_CODE=I,t["default"]=R,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){E=(0,c["default"])(g).getInstance(),T=(0,_["default"])(g).getInstance(),I=(0,o["default"])(g).getInstance()}function t(e){e.baseURLController&&(R=e.baseURLController)}function n(e,t){var r=!0,i=null,a=null,o=new XMLHttpRequest,u=R.resolve(e.path),f=t||{url:u?u.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500,request:o};h("Start searching for initialization."),o.onload=function(){o.status<200||o.status>299||(r=!1,f.bytesLoaded=f.range.end,a=T.parse(o.response),i=s(a),i?(e.range=i,e.initialization=f.url,m.trigger(p["default"].INITIALIZATION_LOADED,{representation:e})):(f.range.end=f.bytesLoaded+f.bytesToLoad,n(e,f)))},o.onloadend=o.onerror=function(){r&&(r=!1,E.downloadError("initialization",f.url,o),m.trigger(p["default"].INITIALIZATION_LOADED,{representation:e}))},l(o,f),h("Perform init search: "+f.url)}function r(e,t,n,i,o){if(n&&(void 0===n.start||void 0===n.end)){var s=n?n.toString().split("-"):null;n=s?{start:parseFloat(s[0]),end:parseFloat(s[1])}:null}o=o?o:d;var u=!0,f=null,c=null,g=!!n,p=new XMLHttpRequest,v=R.resolve(e.path),m={url:v?v.url:void 0,range:g?n:{start:0,end:1500},searching:!g,bytesLoaded:i?i.bytesLoaded:0,bytesToLoad:1500,request:p};p.onload=function(){if(!(p.status<200||p.status>299)){var n=m.bytesToLoad,i=p.response.byteLength;if(u=!1,m.bytesLoaded=m.range.end-m.range.start,f=T.parse(p.response),c=f.getBox("sidx"),c&&c.isComplete){var s,l,d=c.references;if(null!==d&&void 0!==d&&d.length>0&&(s=1===d[0].reference_type),s){h("Initiate multiple SIDX load."),m.range.end=m.range.start+c.size;var g,v,_,y,E,S=[],I=0,R=(c.offset||m.range.start)+c.size,A=function(n){n?(S=S.concat(n),I++,I>=v&&o(S,e,t)):o(null,e,t)};for(g=0,v=d.length;g<v;g++)_=R,y=R+d[g].referenced_size-1,R+=d[g].referenced_size,E={start:_,end:y},r(e,null,E,m,A)}else h("Parsing segments from SIDX."),l=a(c,m),o(l,e,t)}else{if(c)m.range.start=c.offset||m.range.start,m.range.end=m.range.start+(c.size||n);else{if(i<m.bytesLoaded)return void o(null,e,t);var M=f.getLastBox();M&&M.size?(m.range.start=M.offset+M.size,m.range.end=m.range.start+n):m.range.end+=n}r(e,t,m.range,m,o)}}},p.onloadend=p.onerror=function(){u&&(u=!1,E.downloadError("SIDX",m.url,p),o(null,e,t))},l(p,m),h("Perform SIDX load: "+m.url)}function i(){E=null,T=null,I=null,h=null}function a(e,t){for(var n,r,i,a,o=e.references,s=o.length,l=e.timescale,f=e.earliest_presentation_time,d=t.range.start+e.offset+e.first_offset+e.size,c=[],g=0;g<s;g++)i=o[g].subsegment_duration,a=o[g].referenced_size,n=new u["default"],n.duration=i,n.media=t.url,n.startTime=f,n.timescale=l,r=d+a-1,n.mediaRange=d+"-"+r,c.push(n),f+=i,d+=a;return c}function s(e){var t,n,r=e.getBox("ftyp"),i=e.getBox("moov"),a=null;return h("Searching for initialization."),i&&i.isComplete&&(t=r?r.offset:i.offset,n=i.offset+i.size-1,a=t+"-"+n,h("Found the initialization. Range: "+a)),a}function l(e,t){t.url&&(e.open("GET",I.modifyRequestURL(t.url)),e.responseType="arraybuffer",e.setRequestHeader("Range","bytes="+t.range.start+"-"+t.range.end),e=I.modifyRequestHeader(e),e.send(null))}function d(e,t,n){e?m.trigger(p["default"].SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):m.trigger(p["default"].SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new f["default"](null,"error loading segments",null)})}var g=this.context,h=(0,S["default"])(g).getInstance().log,m=(0,v["default"])(g).getInstance(),y=void 0,E=void 0,T=void 0,I=void 0,R=void 0;return y={setConfig:t,initialize:e,loadInitialization:n,loadSegments:r,reset:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(33),o=r(a),s=n(37),u=r(s),l=n(6),f=r(l),d=n(11),c=r(d),g=n(2),p=r(g),h=n(3),v=r(h),m=n(49),_=r(m),y=n(1),E=r(y),T=n(4),S=r(T);i.__dashjs_factory_name="SegmentBaseLoader",t["default"]=E["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){R={EBML:{tag:440786851,required:!0},Segment:{tag:408125543,required:!0,SeekHead:{tag:290298740,required:!0},Info:{tag:357149030,required:!0,TimecodeScale:{tag:2807729,required:!0,parse:"getMatroskaUint"},Duration:{tag:17545,required:!0,parse:"getMatroskaFloat"}},Tracks:{tag:374648427,required:!0},Cues:{tag:475249515,required:!0,CuePoint:{tag:187,required:!0,CueTime:{tag:179,required:!0,parse:"getMatroskaUint"},CueTrackPositions:{tag:183,required:!0,CueTrack:{tag:247,required:!0,parse:"getMatroskaUint"},CueClusterPosition:{tag:241,required:!0,parse:"getMatroskaUint"},CueBlockNumber:{tag:21368}}}}},Void:{tag:236,required:!0}}}function t(){M=(0,v["default"])(h).getInstance(),b=(0,_["default"])(h).getInstance(),D=(0,A["default"])(h).create({errHandler:M,metricsModel:C,requestModifier:b})}function n(e){if(!e.baseURLController||!e.metricsModel)throw new Error("Missing config parameter(s)");O=e.baseURLController,C=e.metricsModel}function r(e){var t=[],n=void 0,r=void 0,i=void 0,a=(0,f["default"])(h).create({data:e}),o=void 0;for(a.consumeTag(R.Segment.Cues),r=a.getMatroskaCodedNum();a.moreData()&&a.consumeTagAndSize(R.Segment.Cues.CuePoint,!0);){for(n={},n.CueTime=a.parseTag(R.Segment.Cues.CuePoint.CueTime),n.CueTracks=[];a.moreData()&&a.consumeTagAndSize(R.Segment.Cues.CuePoint.CueTrackPositions,!0);){if(i={},i.Track=a.parseTag(R.Segment.Cues.CuePoint.CueTrackPositions.CueTrack),0===i.Track)throw new Error("Cue track cannot be 0");i.ClusterPosition=a.parseTag(R.Segment.Cues.CuePoint.CueTrackPositions.CueClusterPosition),a.getPos()+4>r||!a.consumeTag(R.Segment.Cues.CuePoint.CueTrackPositions.CueBlockNumber,!0)?n.CueTracks.push(i):(o=a.getMatroskaCodedNum(),i.BlockNumber=a.getMatroskaUint(o),n.CueTracks.push(i))}if(0===n.CueTracks.length)throw new Error("Mandatory cuetrack not found");t.push(n)}if(0===t.length)throw new Error("mandatory cuepoint not found");return t}function i(e,t,n,i,a){var o=void 0,s=void 0,u=void 0,l=void 0,f=void 0,d=void 0,c=void 0,g=void 0;for(s=r(e),u=[],f=0,d=s.length;f<d;f+=1)l=new E["default"],o=0,o=f<s.length-1?s[f+1].CueTime-s[f].CueTime:a-s[f].CueTime,l.duration=o,l.media=t,l.startTime=s[f].CueTime,l.timescale=1e3,c=s[f].CueTracks[0].ClusterPosition+n,g=f<s.length-1?s[f+1].CueTracks[0].ClusterPosition+n-1:i-1,l.mediaRange=c+"-"+g,u.push(l);return m("Parsed cues: "+u.length+" cues."),u}function a(e,t,n,r){var a=(0,f["default"])(h).create({data:e}),o=void 0,s=void 0,u=n.split("-"),l=null,d={url:t,range:{start:parseFloat(u[0]),end:parseFloat(u[1])},request:l},g=void 0,p=void 0;for(m("Parse EBML header: "+d.url),a.skipOverElement(R.EBML),a.consumeTag(R.Segment),g=a.getMatroskaCodedNum(),g+=a.getPos(),p=a.getPos();a.moreData()&&!a.consumeTagAndSize(R.Segment.Info,!0);)if(!(a.skipOverElement(R.Segment.SeekHead,!0)||a.skipOverElement(R.Segment.Tracks,!0)||a.skipOverElement(R.Segment.Cues,!0)||a.skipOverElement(R.Void,!0)))throw new Error("no valid top level element found");for(;void 0===o;){var v=a.getMatroskaCodedNum(!0),_=a.getMatroskaCodedNum();switch(v){case R.Segment.Info.Duration.tag:o=a[R.Segment.Info.Duration.parse](_);break;default:a.setPos(a.getPos()+_)}}l=c(d);var y=function(e){s=i(e,d.url,p,g,o),r(s)},E=function(){m("Download Error: Cues "+d.url),r(null)};D.load({request:l,success:y,error:E}),m("Perform cues load: "+d.url+" bytes="+d.range.start+"-"+d.range.end)}function s(e,t){var n=null,r=O.resolve(e.path),i=r?r.url:void 0,a=e.range.split("-"),s=t||{range:{start:parseFloat(a[0]),end:parseFloat(a[1])},request:n,url:i,init:!0};m("Start loading initialization."),n=c(s);var u=function(){e.initialization=s.url,y.trigger(o["default"].INITIALIZATION_LOADED,{representation:e})},l=function(){y.trigger(o["default"].INITIALIZATION_LOADED,{
|
33 |
+
representation:e})};D.load({request:n,success:u,error:l}),m("Perform init load: "+s.url)}function l(e,t,n,r){var i=null,o=O.resolve(e.path),s=o?o.url:void 0,u=8192,l={bytesLoaded:0,bytesToLoad:u,range:{start:0,end:u},request:i,url:s,init:!1};r=r?r:d,i=c(l),m("Parsing ebml header");var f=function(i){a(i,s,n,function(n){r(n,e,t)})},g=function(){r(null,e,t)};D.load({request:i,success:f,error:g})}function d(e,t,n){e?y.trigger(o["default"].SEGMENTS_LOADED,{segments:e,representation:t,mediaType:n}):y.trigger(o["default"].SEGMENTS_LOADED,{segments:null,representation:t,mediaType:n,error:new Error(null,"error loading segments",null)})}function c(e){var t=new I["default"];return t.type=e.init?T.HTTPRequest.INIT_SEGMENT_TYPE:T.HTTPRequest.MEDIA_SEGMENT_TYPE,t.url=e.url,t.range=e.range.start+"-"+e.range.end,t}function g(){M=null,b=null,m=null}var h=this.context,m=(0,p["default"])(h).getInstance().log,y=(0,u["default"])(h).getInstance(),S=void 0,R=void 0,M=void 0,b=void 0,C=void 0,D=void 0,O=void 0;return S={setConfig:n,initialize:t,loadInitialization:s,loadSegments:l,reset:g},e(),S}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),o=r(a),s=n(3),u=r(s),l=n(160),f=r(l),d=n(1),c=r(d),g=n(4),p=r(g),h=n(11),v=r(h),m=n(33),_=r(m),y=n(37),E=r(y),T=n(7),S=n(23),I=r(S),R=n(27),A=r(R);i.__dashjs_factory_name="WebmSegmentBaseLoader",t["default"]=c["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){K=null,H=-1,q=!0,Y=[],z=(0,c["default"])(B).getInstance(),Q=(0,v["default"])(B).getInstance(),X=(0,p["default"])(B).getInstance(),Z=(0,_["default"])(B).getInstance(),J=(0,E["default"])(B).getInstance(),$=(0,R["default"])(B).getInstance(),ee=(0,f["default"])(B).getInstance(),te=(0,o["default"])(B).getInstance(),ne=(0,u["default"])(B).getInstance(),re=(0,S["default"])(B).getInstance(),k.on(O["default"].QUALITY_CHANGE_REQUESTED,F,j),k.on(O["default"].REPRESENTATION_UPDATED,w,j),k.on(O["default"].WALLCLOCK_TIME_UPDATED,N,j),k.on(O["default"].BUFFER_LEVEL_UPDATED,x,j),k.on(O["default"].LIVE_EDGE_SEARCH_COMPLETED,L,j)}function t(e){e.abrController&&(z=e.abrController)}function n(e){V=e,W=V.getIndexHandler()}function r(){return V}function i(){return K}function a(){return H}function s(){return q}function l(){return G}function d(){k.off(O["default"].QUALITY_CHANGE_REQUESTED,F,j),k.off(O["default"].REPRESENTATION_UPDATED,w,j),k.off(O["default"].WALLCLOCK_TIME_UPDATED,N,j),k.off(O["default"].BUFFER_LEVEL_UPDATED,x,j),k.off(O["default"].LIVE_EDGE_SEARCH_COMPLETED,L,j),K=null,H=-1,q=!0,Y=[],z=null,Q=null,X=null,Z=null,J=null,$=null,ee=null,te=null,ne=null,re=null}function g(e,t,n){var r,i,a=null,o=V.getStreamInfo(),s=z.getTopQualityIndexFor(n,o.id);if(q=!0,k.trigger(O["default"].DATA_UPDATE_STARTED,{sender:this}),Y=A(t),null===K&&"fragmentedText"!==n?(i=z.getAverageThroughput(n),a=i||z.getInitialBitrateFor(n,o),r=z.getQualityForBitrate(V.getMediaInfo(),a)):r=z.getQualityFor(n,o),r>s&&(r=s),G=y(r),K=e,"video"!==n&&"audio"!==n&&"fragmentedText"!==n)return q=!1,void k.trigger(O["default"].DATA_UPDATE_COMPLETED,{sender:this,data:K,currentRepresentation:G});for(var u=0;u<Y.length;u++)W.updateRepresentation(Y[u],!0)}function h(){var e=new Date,t=l(),n=1e3*X.getTime();J.addRepresentationSwitch(t.adaptation.type,e,n,t.id)}function m(){var e=ee.calcSegmentAvailabilityRange(G,V.isDynamic());J.addDVRInfo(V.getType(),X.getTime(),V.getStreamInfo().manifestInfo,e)}function y(e){return Y[e]}function T(e){return Y.indexOf(e)}function I(){for(var e=0,t=Y.length;e<t;e++){var n=Y[e].segmentInfoType;if(null===Y[e].segmentAvailabilityRange||null===Y[e].initialization||("SegmentBase"===n||"BaseURL"===n)&&!Y[e].segments)return!1}return!0}function A(e){var t,n=Z.getValue();return H=te.getIndexForAdaptation(K,n,e.period.index),t=te.getRepresentationsForAdaptation(n,e)}function b(e){for(var t,n=0,r=Y.length;n<r;n++)t=Y[n],t.segmentAvailabilityRange=ee.calcSegmentAvailabilityRange(t,e)}function D(){Y.forEach(function(e){e.segmentAvailabilityRange=null})}function P(e){var t=e,n=function(){if(!s()){q=!0,k.trigger(O["default"].DATA_UPDATE_STARTED,{sender:j}),D();for(var e=0;e<Y.length;e++)W.updateRepresentation(Y[e],!0)}};q=!1,k.trigger(O["default"].AST_IN_FUTURE,{delay:t}),setTimeout(n,t)}function w(e){if(e.sender.getStreamProcessor()===V&&s()){var t,n,r,i=e.representation,a=J.getMetricsFor("stream"),o=J.getMetricsFor(l().adaptation.type),u=ne.getCurrentManifestUpdate(a),f=!1,d=0;if("dynamic"===i.adaptation.period.mpd.manifest.type){var c=i.segmentAvailabilityRange.end-i.segmentAvailabilityRange.start,g=X.computeLiveDelay(G.segmentDuration,V.getStreamInfo().manifestInfo.DVRWindowSize);d=1e3*(g-c)}if(d>0)return m(),P(d),n=new M["default"](U,"Segments update failed",null),void k.trigger(O["default"].DATA_UPDATE_COMPLETED,{sender:this,data:K,currentRepresentation:G,error:n});if(u){for(var p=0;p<u.trackInfo.length;p++)if(t=u.trackInfo[p],t.index===i.index&&t.mediaType===V.getType()){f=!0;break}f||J.addManifestUpdateRepresentationInfo(u,i.id,i.index,i.adaptation.period.index,V.getType(),i.presentationTimeOffset,i.startNumber,i.segmentInfoType)}I()&&(q=!1,z.setPlaybackQuality(V.getType(),V.getStreamInfo(),T(G)),J.updateManifestUpdateInfo(u,{latency:G.segmentAvailabilityRange.end-X.getTime()}),r=ne.getCurrentRepresentationSwitch(o),r||h(),k.trigger(O["default"].DATA_UPDATE_COMPLETED,{sender:this,data:K,currentRepresentation:G}))}}function N(e){e.isDynamic&&b(e.isDynamic)}function L(e){if(!e.error){b(!0),W.updateRepresentation(G,!1);var t=Z.getValue(),n=G.adaptation.period,r=Q.getActiveStreamInfo();r.isLast&&(n.mpd.checkTime=te.getCheckTime(t,n),n.duration=te.getEndTimeForLastPeriod(Z.getValue(),n)-n.start,r.duration=n.duration)}}function x(e){e.sender.getStreamProcessor()===V&&m()}function F(e){e.mediaType===V.getType()&&V.getStreamInfo().id===e.streamInfo.id&&e.oldQuality!==e.newQuality&&(G=y(e.newQuality),$.setSavedBitrateSettings(e.mediaType,G.bandwidth),h())}var U=1,B=this.context,k=(0,C["default"])(B).getInstance(),j=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0;return j={initialize:n,setConfig:t,getData:i,getDataIndex:a,isUpdating:s,updateData:g,getStreamProcessor:r,getCurrentRepresentation:l,getRepresentationForQuality:y,reset:d},e(),j}Object.defineProperty(t,"__esModule",{value:!0});var a=n(12),o=r(a),s=n(16),u=r(s),l=n(26),f=r(l),d=n(10),c=r(d),g=n(9),p=r(g),h=n(20),v=r(h),m=n(31),_=r(m),y=n(14),E=r(y),T=n(5),S=r(T),I=n(50),R=r(I),A=n(6),M=r(A),b=n(3),C=r(b),D=n(2),O=r(D),P=n(1),w=r(P);i.__dashjs_factory_name="RepresentationController",t["default"]=w["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){s=[new v["default"],new _["default"],new E["default"]],u=new p["default"](s,"",(!0)),l=new c["default"]([new S["default"],new R["default"]])}function t(e,t){var n;try{var a=window.performance.now();if(n=u.xml_str2json(e),!n)throw new Error("parser error");var o=window.performance.now();l.run(n);var f=window.performance.now();t.setMatchers(s),t.setIron(l),r("Parsing complete: ( xml2json: "+(o-a).toPrecision(3)+"ms, objectiron: "+(f-o).toPrecision(3)+"ms, total: "+((f-a)/1e3).toPrecision(3)+"s)")}catch(d){return i.manifestError("parsing the manifest failed","parse",e,d),null}return n}var n=this.context,r=(0,f["default"])(n).getInstance().log,i=(0,o["default"])(n).getInstance(),a=void 0,s=void 0,u=void 0,l=void 0;return a={parse:t},e(),a}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),o=r(a),s=n(1),u=r(s),l=n(4),f=r(l),d=n(73),c=r(d),g=n(35),p=r(g),h=n(85),v=r(h),m=n(84),_=r(m),y=n(86),E=r(y),T=n(82),S=r(T),I=n(83),R=r(I);i.__dashjs_factory_name="DashParser",t["default"]=u["default"].getClassFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r){n(this,e);var i=function(e){return e&&e.length&&e.charAt(0)===e.charAt(0).toUpperCase()};this._name=t,this._merge=void 0!==r?r:i(t)}return r(e,[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}]),e}();t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(55),l=r(u),f=function(e){function t(){i(this,t);var e=["profiles","width","height","sar","frameRate","audioSamplingRate","mimeType","segmentProfiles","codecs","maximumSAPPeriod","startWithSAP","maxPlayoutRate","codingDependency","scanType","FramePacking","AudioChannelConfiguration","ContentProtection","EssentialProperty","SupplementalProperty","InbandEventStream"];return s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,"AdaptationSet",e,[new l["default"]("Representation",e,[new l["default"]("SubRepresentation",e)])])}return a(t,e),t}(l["default"]);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(55),l=r(u),f=function(e){function t(){i(this,t);var e=["SegmentBase","SegmentTemplate","SegmentList"];return s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,"Period",e,[new l["default"]("AdaptationSet",e,[new l["default"]("Representation",e)])])}return a(t,e),t}(l["default"]);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(36),l=r(u),f=60,d=60,c=1e3,g=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,p=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){return g.test(e.value)},function(e){var t=g.exec(e),n=void 0;if(n=Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[4],10),parseInt(t[5],10),t[6]&&parseInt(t[6],10)||0,t[7]&&parseFloat(t[7])*c||0),t[9]&&t[10]){var r=parseInt(t[9],10)*d+parseInt(t[10],10);n+=("+"===t[8]?-1:1)*r*f*c}return new Date(n)})}return a(t,e),t}(l["default"]);t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(36),l=r(u),f=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,d=31536e3,c=2592e3,g=86400,p=3600,h=60,v=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){for(var t=["minBufferTime","mediaPresentationDuration","minimumUpdatePeriod","timeShiftBufferDepth","maxSegmentDuration","maxSubsegmentDuration","suggestedPresentationDelay","start","starttime","duration"],n=t.length,r=0;r<n;r++)if(e.nodeName===t[r])return f.test(e.value);return!1},function(e){var t=f.exec(e),n=parseFloat(t[2]||0)*d+parseFloat(t[4]||0)*c+parseFloat(t[6]||0)*g+parseFloat(t[8]||0)*p+parseFloat(t[10]||0)*h+parseFloat(t[12]||0);return void 0!==t[1]&&(n=-n),n})}return a(t,e),t}(l["default"]);t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(36),l=r(u),f=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,d=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,function(e){return f.test(e.value)},function(e){return parseFloat(e)})}return a(t,e),t}(l["default"]);t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){e&&e.boxParser&&(i=e.boxParser)}function t(e){var t,n,r,a,o,s,u,l,f,d,c,g=i.parse(e),p=g.getBox("tfhd"),h=g.getBox("tfdt"),v=g.getBox("trun"),m=g.getBox("moof"),_=g.getBox("mfhd");for(d=_.sequence_number,r=v.sample_count,o=h.baseMediaDecodeTime,f=(p.base_data_offset||0)+(v.data_offset||0),s=[],l=0;l<r;l++)u=v.samples[l],t=void 0!==u.sample_duration?u.sample_duration:p.default_sample_duration,a=void 0!==u.sample_size?u.sample_size:p.default_sample_size,n=void 0!==u.sample_composition_time_offset?u.sample_composition_time_offset:0,s.push({dts:o,cts:o+n,duration:t,offset:m.offset+f,size:a}),f+=a,o+=t;return c=o-h.baseMediaDecodeTime,{sampleList:s,sequenceNumber:d,totalDuration:c}}function n(e){var t=i.parse(e),n=t.getBox("mdhd");return n?n.timescale:NaN}var r=void 0,i=void 0;return r={getSamplesInfo:t,getMediaTimescaleFromMoov:n,setConfig:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="FragmentedTextBoxParser",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){function n(e,n,i,a){var o,u,l,f,d,c,g,p=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,h=p.SegmentURL_asArray.length,v=[];for(g=e.startNumber,f=(0,s.decideSegmentListRangeForTemplate)(r,t,e,n,i,a),d=Math.max(f.start,0),c=Math.min(f.end,p.SegmentURL_asArray.length-1),o=d;o<=c;o++)l=p.SegmentURL_asArray[o],u=(0,s.getIndexBasedSegment)(r,t,e,o),u.replacementTime=(g+o-1)*e.segmentDuration,u.media=l.media?l.media:"",u.mediaRange=l.mediaRange,u.index=l.index,u.indexRange=l.indexRange,v.push(u),u=null;return e.availableSegmentsNumber=h,v}var r=e.timelineConverter,i=void 0;return i={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(25);i.__dashjs_factory_name="ListSegmentsGetter";var u=o["default"].getClassFactory(i);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){function n(){s=(0,u["default"])(a).create(e,t),l=(0,f["default"])(a).create(e,t),d=(0,c["default"])(a).create(e,t)}function r(e,t,n,r,a){var o,u=e.segmentInfoType;return"SegmentBase"!==u&&"BaseURL"!==u&&i(e,n)?("SegmentTimeline"===u?o=s.getSegments(e,t,n,a):"SegmentTemplate"===u?o=l.getSegments(e,t,n,a):"SegmentList"===u&&(o=d.getSegments(e,t,n,a)),r&&r(e,o)):o=e.segments,o}function i(e,t){var n,r,i=e.segments,a=!1;return i&&0!==i.length?(r=i[0].availabilityIdx,n=i[i.length-1].availabilityIdx,a=t<r||t>n):a=!0,a}var a=this.context,o=void 0,s=void 0,l=void 0,d=void 0;return o={getSegments:r},n(),o}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(91),u=r(s),l=n(90),f=r(l),d=n(88),c=r(d);i.__dashjs_factory_name="SegmentsGetter";var g=o["default"].getClassFactory(i);t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){function n(e,n,i,a){var o,u,l,f,d,c=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate,g=e.segmentDuration,p=e.segmentAvailabilityRange,h=[],v=null,m=null;for(d=e.startNumber,o=isNaN(g)&&!t?{start:d,end:d}:(0,s.decideSegmentListRangeForTemplate)(r,t,e,n,i,a),l=o.start,f=o.end,u=l;u<=f;u++)m=(0,s.getIndexBasedSegment)(r,t,e,u),m.replacementTime=(d+u-1)*e.segmentDuration,v=c.media,v=(0,s.replaceTokenForTemplate)(v,"Number",m.replacementNumber),v=(0,s.replaceTokenForTemplate)(v,"Time",m.replacementTime),m.media=v,h.push(m),m=null;return isNaN(g)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((p.end-p.start)/g),h}var r=e.timelineConverter,i=void 0;return i={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(25);i.__dashjs_factory_name="TemplateSegmentsGetter";var u=o["default"].getClassFactory(i);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){function n(e,n,i,a){var o,u,l,f,d,c,g,p,h,v,m,_,y,E,T=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,S=T.SegmentTimeline,I=T.SegmentURL_asArray,R=e.availableSegmentsNumber>0,A=10,M=0,b=0,C=-1,D=[],O=!1,P=function(n,i){var a=T.media,o=n.mediaRange;return I&&(a=I[i].media||"",o=I[i].mediaRange),(0,s.getTimeBasedSegment)(r,t,e,M,n.d,E,a,o,C)};for(E=e.timescale,o=S.S_asArray,h=(0,s.decideSegmentListRangeForTimeline)(r,t,n,i,a),h?(_=h.start,y=h.end):m=r.calcMediaTimeFromPresentationTime(n||0,e),l=0,f=o.length;l<f;l++){if(u=o[l],c=0,u.hasOwnProperty("r")&&(c=u.r),u.hasOwnProperty("t")&&(M=u.t,b=M/E),c<0){if(p=o[l+1],p&&p.hasOwnProperty("t"))g=p.t/E;else{var w=e.segmentAvailabilityRange?e.segmentAvailabilityRange.end:r.calcSegmentAvailabilityRange(e,t).end;g=r.calcMediaTimeFromPresentationTime(w,e),e.segmentDuration=u.d/E}c=Math.ceil((g-b)/(u.d/E))-1}if(v){if(R)break;C+=c+1}else for(d=0;d<=c;d++){if(C++,h){if(C>y){if(v=!0,R)break;continue}C>=_&&D.push(P(u,C))}else{if(D.length>A){if(v=!0,R)break;continue}O?D.push(P(u,C)):b>=m-u.d/E*1.5&&(O=!0,D.push(P(u,C)))}M+=u.d,b=M/E}}return R||(e.availableSegmentsNumber=C+1),D}var r=e.timelineConverter,i=void 0;return i={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(25);i.__dashjs_factory_name="TimelineSegmentsGetter";var u=o["default"].getClassFactory(i);t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.period=null,this.index=-1,this.type=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.checkTime=NaN,this.clientServerTimeShift=0,this.isClientServerTimeSyncCompleted=!1};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null};r.DEFAULT_ID="defaultId",t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.maxPlayoutRate=NaN};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){g=(0,o["default"])(s).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier})}function n(e){var t=function(t){l.trigger(p["default"].CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var n=new u["default"](e.url);g.load({request:n,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)}function r(e){var t=function(t,n){l.trigger(p["default"].LOADING_COMPLETED,{request:e,response:t||null,error:n||null,sender:d})};e?g.load({request:e,progress:function(){l.trigger(p["default"].LOADING_PROGRESS,{request:e})},success:function(e){t(e)},error:function(e,n,r){t(void 0,new f["default"](m,r,n))}}):t(void 0,new f["default"](_,y))}function i(){g&&g.abort()}function a(){g&&(g.abort(),g=null)}var s=this.context,l=(0,c["default"])(s).getInstance(),d=void 0,g=void 0;return d={checkForExistence:n,load:r,abort:i,reset:a},t(),d}Object.defineProperty(t,"__esModule",{value:!0});var a=n(27),o=r(a),s=n(167),u=r(s),l=n(6),f=r(l),d=n(3),c=r(d),g=n(2),p=r(g),h=n(1),v=r(h),m=1,_=2,y="request is null";i.__dashjs_factory_name="FragmentLoader";var E=v["default"].getClassFactory(i);E.FRAGMENT_LOADER_ERROR_LOADING_FAILURE=m,E.FRAGMENT_LOADER_ERROR_NULL_REQUEST=_,t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){s.on(y["default"].XLINK_READY,n,g),v=(0,u["default"])(a).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),_=(0,o["default"])(a).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier})}function n(e){s.trigger(y["default"].INTERNAL_MANIFEST_LOADED,{manifest:e.manifest})}function r(e){var t=new c["default"](e,h.HTTPRequest.MPD_TYPE);v.load({request:t,success:function(t,n,r){var i,a;r.responseURL&&r.responseURL!==e?(a=l.parseBaseUrl(r.responseURL),i=r.responseURL):(l.isRelative(e)&&(e=l.parseBaseUrl(window.location.href)+e),a=l.parseBaseUrl(e));var o=d.parse(t,_);o?(o.url=i||e,o.originalUrl||(o.originalUrl=o.url),o.baseUri=a,o.loadedTime=new Date,_.resolveManifestOnLoad(o)):s.trigger(y["default"].INTERNAL_MANIFEST_LOADED,{manifest:null,error:new p["default"](S,R)})},error:function(t,n,r){s.trigger(y["default"].INTERNAL_MANIFEST_LOADED,{manifest:null,error:new p["default"](I,"Failed loading manifest: "+e+", "+r)})}})}function i(){s.off(y["default"].XLINK_READY,n,g),_&&(_.reset(),_=null),v&&(v.abort(),v=null)}var a=this.context,s=(0,m["default"])(a).getInstance(),l=(0,f["default"])(a).getInstance(),d=e.parser,g=void 0,v=void 0,_=void 0;return g={load:r,reset:i},t(),g}Object.defineProperty(t,"__esModule",{value:!0});var a=n(112),o=r(a),s=n(27),u=r(s),l=n(22),f=r(l),d=n(69),c=r(d),g=n(6),p=r(g),h=n(7),v=n(3),m=r(v),_=n(2),y=r(_),E=n(1),T=r(E),S=1,I=2,R="parsing failed";i.__dashjs_factory_name="ManifestLoader";var A=T["default"].getClassFactory(i);A.MANIFEST_LOADER_ERROR_PARSING_FAILURE=S,A.MANIFEST_LOADER_ERROR_LOADING_FAILURE=I,t["default"]=A,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){e&&(e.manifestModel&&(A=e.manifestModel),e.dashManifestModel&&(M=e.dashManifestModel))}function t(e){R=e,E=NaN,T=null,I=!1,S=!0,_.on(u["default"].STREAMS_COMPOSED,h,this),_.on(u["default"].PLAYBACK_STARTED,g,this),_.on(u["default"].PLAYBACK_PAUSED,p,this),_.on(u["default"].INTERNAL_MANIFEST_LOADED,d,this)}function n(e){l(e)}function r(){return R}function i(){_.off(u["default"].PLAYBACK_STARTED,g,this),_.off(u["default"].PLAYBACK_PAUSED,p,this),_.off(u["default"].STREAMS_COMPOSED,h,this),_.off(u["default"].INTERNAL_MANIFEST_LOADED,d,this),S=!0,I=!1,a(),E=NaN}function a(){null!==T&&(clearInterval(T),T=null)}function s(){a(),isNaN(E)||(m("Refresh manifest in "+E+" seconds."),T=setTimeout(f,Math.min(1e3*E,Math.pow(2,31)-1),this))}function l(e){var t,n,r=new Date;A.setValue(e),m("Manifest has been refreshed at "+r+"["+r.getTime()/1e3+"] "),t=M.getRefreshDelay(e),n=((new Date).getTime()-e.loadedTime.getTime())/1e3,E=Math.max(t-n,0),_.trigger(u["default"].MANIFEST_UPDATED,{manifest:e}),S||s()}function f(){var e,t;if(!S&&!I){I=!0,e=A.getValue(),t=e.url;var n=M.getLocation(e);n&&(t=n),R.load(t)}}function d(e){e.error||l(e.manifest)}function g(){S=!1,s()}function p(){S=!0,a()}function h(){I=!1}var v=this.context,m=(0,c["default"])(v).getInstance().log,_=(0,o["default"])(v).getInstance(),y=void 0,E=void 0,T=void 0,S=void 0,I=void 0,R=void 0,A=void 0,M=void 0;return y={initialize:t,setManifest:n,getManifestLoader:r,setConfig:e,reset:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l),d=n(4),c=r(d);i.__dashjs_factory_name="ManifestUpdater",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t,n){if(!e||"VIDEO"!==e.nodeName)return null;if(e._dashjs_player)return e._dashjs_player;var i,a=e.id||e.name||"video element";if(t=t||[].slice.call(e.querySelectorAll("source")).filter(function(e){return e.type==r})[0],!t&&e.src)t=document.createElement("source"),t.src=e.src;else if(!t&&!e.src)return null;return n=n||{},i=(0,s["default"])(n).create(),i.initialize(e,t.src,e.autoplay),i.getDebug().log("Converted "+a+" to dash.js player and added content: "+t.src),e._dashjs_player=i,i}function t(t,i){var a=[];t=t||"[data-dashjs-player]",i=i||document;for(var o=i.querySelectorAll(t),s=0;s<o.length;s++){var u=e(o[s],null);a.push(u)}for(var l=i.querySelectorAll('source[type="'+r+'"]'),s=0;s<l.length;s++){var f=n(l[s]),u=e(f,null);a.push(u)}return a}function n(e){for(var t=!0;t;){var n=e;if(t=!1,"video"===n.nodeName.toLowerCase())return n;e=n.parentNode,t=!0}}var r="application/dash+xml";return{create:e,createAll:t}}function a(){window.removeEventListener("load",a),u.createAll()}Object.defineProperty(t,"__esModule",{value:!0});var o=n(59),s=r(o),u=i(),l=window&&window.dashjs&&window.dashjs.skipAutoCreate;!l&&window&&window.addEventListener&&("complete"===window.document.readyState?u.createAll():window.addEventListener("load",a)),t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){le=[],fe=!1,de=!1,ce=null,ge={},pe=!1,he=!1,me=(0,o["default"])(J).getInstance(),_e=(0,S["default"])(J).getInstance(),Se=(0,v["default"])(J).getInstance(),ye=(0,f["default"])(J).getInstance(),Ee=(0,p["default"])(J).create(),Ie=(0,j["default"])(J).getInstance(),ee.on(L["default"].BUFFERING_COMPLETED,V,ue),ee.on(L["default"].DATA_UPDATE_COMPLETED,z,ue)}function n(e,t){ce=e,ve=t,ve&&(ee.on(L["default"].KEY_ERROR,D,ue),ee.on(L["default"].SERVER_CERTIFICATE_UPDATED,D,ue),ee.on(L["default"].LICENSE_REQUEST_COMPLETE,D,ue),ee.on(L["default"].KEY_SYSTEM_SELECTED,D,ue),ee.on(L["default"].KEY_SESSION_CREATED,D,ue))}function r(e){fe?G():(ee.on(L["default"].CURRENT_TRACK_CHANGED,x,ue),H(e))}function i(){for(var e=le.length,t=0;t<e;t++)le[t].reset();
|
34 |
+
le=[],fe=!1,de=!1,I(),ee.off(L["default"].CURRENT_TRACK_CHANGED,x,ue)}function a(){_e&&(_e.pause(),_e=null),Ee&&(Ee.reset(),Ee=null),me.abortSearch(),i(),ye=null,Se=null,ne=null,te=null,re=null,ie=null,$=null,ae=null,pe=!1,he=!1,ge={},ee.off(L["default"].DATA_UPDATE_COMPLETED,z,ue),ee.off(L["default"].BUFFERING_COMPLETED,V,ue),ee.off(L["default"].KEY_ERROR,D,ue),ee.off(L["default"].SERVER_CERTIFICATE_UPDATED,D,ue),ee.off(L["default"].LICENSE_REQUEST_COMPLETE,D,ue),ee.off(L["default"].KEY_SYSTEM_SELECTED,D,ue),ee.off(L["default"].KEY_SESSION_CREATED,D,ue)}function s(){return ce.duration}function l(){return ce.start}function d(){return ce.index}function g(){return ce.id}function h(){return ce}function m(e){return null!==Y(e)}function y(e){var t=Y(e);return Se.getBitrateList(t)}function T(){Te&&Te.start()}function I(){Te&&Te.clear()}function A(){return fe}function b(){return he}function D(e){e.error&&(ae.mediaKeySessionError(e.error),$(e.error),a())}function P(e){return"text"===e.type?e.mimeType:e.type}function N(e,t,n){var r,i,a=e.type;if("muxed"===a&&e)return i="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines",$(i),ae.manifestError(i,"multiplexedrep",te.getValue()),!1;if("text"===a||"fragmentedText"===a||"embeddedText"===a)return!0;if(r=e.codec,$(a+" codec: "+r),e.contentProtection&&!ie.supportsEncryptedMedia())ae.capabilityError("encryptedmedia");else if(!ie.supportsCodec((0,_["default"])(J).getInstance().getElement(),r))return i=a+"Codec ("+r+") is not supported.",ae.manifestError(i,"codec",n),$(i),!1;return!0}function x(e){if(e.newMediaInfo.streamInfo.id===ce.id){var t=W(e.oldMediaInfo);if(t){var n=_e.getTime(),r=t.getBuffer(),i=e.newMediaInfo,a=te.getValue(),o=le.indexOf(t),s=t.getMediaSource();"fragmentedText"!==i.type?(t.reset(!0),k(i,a,s,{buffer:r,replaceIdx:o,currentTime:n}),_e.seek(_e.getTime())):t.updateMediaInfo(a,i)}}}function U(e){var t=e.split("/")[1];return"webm"===t.toLowerCase()}function B(e){var t=U(e.mimeType)?(0,C["default"])(J).getInstance():(0,M["default"])(J).getInstance();t.setConfig({baseURLController:se,metricsModel:(0,E["default"])(J).getInstance()}),t.initialize();var n=(0,R["default"])(J).create({segmentBaseLoader:t,timelineConverter:oe,dashMetrics:(0,O["default"])(J).getInstance(),metricsModel:(0,E["default"])(J).getInstance(),baseURLController:se});return n}function k(e,t,n,r){var i=(0,u["default"])(J).create({indexHandler:B(e),timelineConverter:oe,adapter:re,manifestModel:te}),a=re.getAllMediaInfoForType(t,ce,e.type);if(i.initialize(P(e),Ee,n,ue,Te),Se.updateTopQualityIndex(e),r?(i.setBuffer(r.buffer),i.getIndexHandler().setCurrentTime(r.currentTime),le[r.replaceIdx]=i):le.push(i),"text"===e.type||"fragmentedText"===e.type){for(var o,s=0;s<a.length;s++)a[s].index===e.index&&(o=s),i.updateMediaInfo(t,a[s]);"fragmentedText"===e.type&&i.updateMediaInfo(t,a[o])}else i.updateMediaInfo(t,e);return i}function K(e,t){var n,r=te.getValue(),i=re.getAllMediaInfoForType(r,ce,e),a=null;if(!i||0===i.length)return void $("No "+e+" data.");for(var o=0,s=i.length;o<s;o++)if(a=i[o],"embeddedText"===e)Ie.addEmbeddedTrack(a);else{if(!N(a,t,r))continue;ye.isMultiTrackSupportedByType(a.type)&&ye.addTrack(a,ce)}"embeddedText"!==e&&0!==ye.getTracksFor(e,ce).length&&(ye.checkInitialMediaSettingsForType(e,ce),n=ye.getCurrentTrackFor(e,ce),k(n,r,t))}function H(e){var t,n=te.getValue();if(Te=(0,c["default"])(J).getInstance(),Te.initialize(),Te.setConfig({manifestModel:te,manifestUpdater:ne}),t=re.getEventsFor(n,ce),Te.addInlineEvents(t),pe=!0,K("video",e),K("audio",e),K("text",e),K("fragmentedText",e),K("embeddedText",e),K("muxed",e),G(),de=!0,pe=!1,0===le.length){var r="No streams to play.";ae.manifestError(r,"nostreams",n),$(r)}else me.initialize(oe,le[0]),q()}function q(){var e=le.length,t=!!ge.audio||!!ge.video,n=t?new Error(Z,"Data update failed",null):null,r=0;for(r;r<e;r++)if(le[r].isUpdating()||pe)return;he=!0,fe=!0,de&&(ve&&ve.initialize(te.getValue(),Y("audio"),Y("video")),ee.trigger(L["default"].STREAM_INITIALIZED,{streamInfo:ce,error:n}))}function Y(e){for(var t=le.length,n=null,r=0;r<t;r++)if(n=le[r],n.getType()===e)return n.getMediaInfo();return null}function G(){for(var e=0,t=le.length;e<t;e++)le[e].createBuffer()}function V(e){if(e.streamInfo===ce){var t=Q(),n=t.length,r=0;for(r;r<n;r++)if(!t[r].isBufferingCompleted())return;ee.trigger(L["default"].STREAM_BUFFERING_COMPLETED,{streamInfo:ce})}}function z(e){var t=e.sender.getStreamProcessor();t.getStreamInfo()===ce&&(ge[t.getType()]=e.error,q())}function W(e){if(!e)return!1;var t=Q();return t.filter(function(t){return t.getType()===e.type})[0]}function Q(){var e,t,n=le.length,r=[],i=0;for(i;i<n;i++)t=le[i],e=t.getType(),"audio"!==e&&"video"!==e&&"fragmentedText"!==e||r.push(t);return r}function X(e){$("Manifest updated... updating data system wide.");var t=te.getValue();if(fe=!1,pe=!0,he=!1,ce=e,Te){var n=re.getEventsFor(t,ce);Te.addInlineEvents(n)}for(var r=0,i=le.length;r<i;r++){var a=le[r],o=re.getMediaInfoForType(t,ce,a.getType());Se.updateTopQualityIndex(o),a.updateMediaInfo(t,o)}pe=!1,q()}var Z=1,J=this.context,$=(0,F["default"])(J).getInstance().log,ee=(0,w["default"])(J).getInstance(),te=e.manifestModel,ne=e.manifestUpdater,re=e.adapter,ie=e.capabilities,ae=e.errHandler,oe=e.timelineConverter,se=e.baseURLController,ue=void 0,le=void 0,fe=void 0,de=void 0,ce=void 0,ge=void 0,pe=void 0,he=void 0,ve=void 0,me=void 0,_e=void 0,ye=void 0,Ee=void 0,Te=void 0,Se=void 0,Ie=void 0;return ue={initialize:n,activate:r,deactivate:i,getDuration:s,getStartTime:l,getStreamIndex:d,getId:g,getStreamInfo:h,hasMedia:m,getBitrateListFor:y,startEventController:T,isActivated:A,isInitialized:b,updateData:X,reset:a,getProcessors:Q},t(),ue}Object.defineProperty(t,"__esModule",{value:!0});var a=n(51),o=r(a),s=n(102),u=r(s),l=n(13),f=r(l),d=n(106),c=r(d),g=n(107),p=r(g),h=n(10),v=r(h),m=n(19),_=r(m),y=n(14),E=r(y),T=n(9),S=r(T),I=n(76),R=r(I),A=n(77),M=r(A),b=n(78),C=r(b),D=n(16),O=r(D),P=n(3),w=r(P),N=n(2),L=r(N),x=n(4),F=r(x),U=n(1),B=r(U),k=n(17),j=r(k);i.__dashjs_factory_name="Stream",t["default"]=B["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){ne=[]}function n(e,t,n,r,i){te=e,re=r,ie=i,le=t,$=re.getStreamInfo().manifestInfo.isDynamic,W.initialize(this),ae=(0,o["default"])(z).getInstance(),ae.initialize(te,this),oe=V(e),se=(0,v["default"])(z).create({metricsModel:(0,S["default"])(z).getInstance(),manifestModel:Z,adapter:X,dashMetrics:(0,L["default"])(z).getInstance(),dashManifestModel:(0,w["default"])(z).getInstance(),timelineConverter:Q,rulesController:(0,_["default"])(z).getInstance(),mediaPlayerModel:(0,E["default"])(z).getInstance()}),oe.initialize(te,n,this),se.initialize(te,this),fe=(0,R["default"])(z).create({metricsModel:(0,S["default"])(z).getInstance(),errHandler:(0,B["default"])(z).getInstance(),requestModifier:(0,M["default"])(z).getInstance()}),de=se.getFragmentModel(),de.setLoader(fe),ue=(0,F["default"])(z).create(),ue.initialize(this)}function r(e){W.reset(),oe&&(oe.reset(e),oe=null),se&&(se.reset(),se=null),ue&&(ue.reset(),ue=null),le=null,fe=null,ie=null,re=null,$=null,ee=null,ne=[],te=null}function i(){return ue.isUpdating()}function a(){return te}function s(){return ae}function l(){return ue}function d(){return fe}function g(){return W}function h(){return le}function m(){return oe.getBuffer()}function y(e){oe.setBuffer(e)}function T(){return oe}function I(){return de}function A(){return re.getStreamInfo()}function b(e,t){t===ee||t&&ee&&t.type!==ee.type||(ee=t),ne.indexOf(t)===-1&&ne.push(t),X.updateData(e,this)}function D(){return ne}function P(){return ee}function N(){return oe.getMediaSource()}function x(){return se}function U(){return ie}function k(){se.start()}function j(){se.stop()}function K(){return X.getCurrentRepresentationInfo(Z.getValue(),ue)}function H(e){return X.getRepresentationInfoForQuality(Z.getValue(),ue,e)}function q(){return oe.getIsBufferingCompleted()}function Y(){return oe.getBuffer()||oe.createBuffer(ee)}function G(){return $}function V(e){var t=null;return t="video"===e||"audio"===e||"fragmentedText"===e?(0,u["default"])(z).create({metricsModel:(0,S["default"])(z).getInstance(),manifestModel:Z,sourceBufferController:(0,C["default"])(z).getInstance(),errHandler:(0,B["default"])(z).getInstance(),streamController:(0,f["default"])(z).getInstance(),mediaController:(0,c["default"])(z).getInstance(),adapter:X,textSourceBuffer:(0,O["default"])(z).getInstance()}):(0,p["default"])(z).create({errHandler:(0,B["default"])(z).getInstance(),sourceBufferController:(0,C["default"])(z).getInstance()})}var z=this.context,W=e.indexHandler,Q=e.timelineConverter,X=e.adapter,Z=e.manifestModel,J=void 0,$=void 0,ee=void 0,te=void 0,ne=void 0,re=void 0,ie=void 0,ae=void 0,oe=void 0,se=void 0,ue=void 0,le=void 0,fe=void 0,de=void 0;return J={initialize:n,isUpdating:i,getType:a,getBufferController:T,getABRController:s,getFragmentLoader:d,getFragmentModel:I,getScheduleController:x,getEventController:U,getFragmentController:h,getRepresentationController:l,getIndexHandler:g,getCurrentRepresentationInfo:K,getRepresentationInfoForQuality:H,isBufferingCompleted:q,createBuffer:Y,getStreamInfo:A,updateMediaInfo:b,getMediaInfoArr:D,getMediaInfo:P,getMediaSource:N,getBuffer:m,setBuffer:y,start:k,stop:j,isDynamic:G,reset:r},t(),J}Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),o=r(a),s=n(18),u=r(s),l=n(20),f=r(l),d=n(13),c=r(d),g=n(110),p=r(g),h=n(109),v=r(h),m=n(46),_=r(m),y=n(5),E=r(y),T=n(14),S=r(T),I=n(97),R=r(I),A=n(33),M=r(A),b=n(28),C=r(b),D=n(17),O=r(D),P=n(12),w=r(P),N=n(16),L=r(N),x=n(79),F=r(x),U=n(11),B=r(U),k=n(1),j=r(k);i.__dashjs_factory_name="StreamProcessor",t["default"]=j["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t,n){var i=function(r,i){t.resolved=!0,t.resolvedContent=r?r:null,a.trigger(h["default"].XLINK_ELEMENT_LOADED,{element:t,resolveObject:n,error:r||i?null:new o["default"](_,"Failed loading Xlink element: "+e)})};if(e===r)i(null,!0);else{var u=new d["default"](e,l.HTTPRequest.XLINK_TYPE);s.load({request:u,success:function(e){i(e)},error:function(){i(null)}})}}function n(){s&&(s.abort(),s=null)}var r="urn:mpeg:dash:resolve-to-zero:2013",i=this.context,a=(0,g["default"])(i).getInstance(),s=(0,u["default"])(i).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier}),f=void 0;return f={load:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),o=r(a),s=n(27),u=r(s),l=n(7),f=n(69),d=r(f),c=n(3),g=r(c),p=n(2),h=r(p),v=n(1),m=r(v),_=1;i.__dashjs_factory_name="XlinkLoader";var y=m["default"].getClassFactory(i);y.XLINK_LOADER_ERROR_LOADING_FAILURE=_,t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){p.invalidateSelectedIndexes(e.entry)}function t(){p=(0,o["default"])(l).create(),h=(0,u["default"])(l).create(),d.on(_["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,e,s)}function n(e){p.update(e),h.chooseSelectorFromManifest(e)}function r(e){var t=p.getForPath(e),n=t.reduce(function(e,t){var n=h.select(t);return n&&(g.isRelative(n.url)?e.url+=n.url:g.isPathAbsolute(n.url)?e.url=g.parseOrigin(e.url)+n.url:(e.url=n.url,e.serviceLocation=n.serviceLocation)),e},new c["default"]);if(!g.isRelative(n.url))return n}function i(){p.reset(),h.reset()}function a(e){n(e)}var s=void 0,l=this.context,d=(0,v["default"])(l).getInstance(),g=(0,f["default"])(l).getInstance(),p=void 0,h=void 0;return s={reset:i,initialize:a,resolve:r},t(),s}Object.defineProperty(t,"__esModule",{value:!0});var a=n(132),o=r(a),s=n(158),u=r(s),l=n(22),f=r(l),d=n(56),c=r(d),g=n(1),p=r(g),h=n(3),v=r(h),m=n(2),_=r(m);i.__dashjs_factory_name="BaseURLController",t["default"]=p["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){return!!(o.length&&e&&e.length)&&o.indexOf(e)!==-1}function n(e){o.indexOf(e)===-1&&(o.push(e),s.trigger(l,{entry:e}))}function r(e){e.error&&n(e.request.serviceLocation)}function i(){f&&s.on(f,r,this)}function a(){o=[]}var o=[],s=(0,u["default"])(this.context).getInstance(),l=e.updateEventName,f=e.loadFailedEventName;return i(),{add:n,contains:t,reset:a}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(3),u=r(s);i.__dashjs_factory_name="BlackListController",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){D=!1,E={},T={},S={},I=null,R=100,A=R/1e3,C=(0,o["default"])(v).getInstance()}function t(){null!==I&&D&&(clearInterval(I),I=null,D=!1)}function n(){m("Start Event Controller"),D||isNaN(R)||(D=!0,I=setInterval(s,R))}function r(e){if(E={},e)for(var t=0;t<e.length;t++){var n=e[t];E[n.id]=n,m("Add inline event with id "+n.id)}m("Added "+e.length+" inline events")}function i(e){for(var t=0;t<e.length;t++){var n=e[t];n.id in T?m("Repeated event with id "+n.id):(T[n.id]=n,m("Add inband event with id "+n.id))}}function a(){if(S)for(var e=C.getTime(),t=Object.keys(S),n=0;n<t.length;n++){var r=t[n],i=S[r];null!==i&&(i.duration+i.presentationTime)/i.eventStream.timescale<e&&(m("Remove Event "+r+" at time "+e),i=null,delete S[r])}}function s(){l(T),l(E),a()}function u(){var e=M.getValue(),t=e.url;e.hasOwnProperty("Location")&&(t=e.Location),m("Refresh manifest @ "+t),b.getManifestLoader().load(t)}function l(e){var t,n=C.getTime();if(e)for(var r=Object.keys(e),i=0;i<r.length;i++){var a=r[i],o=e[a];void 0!==o&&(t=o.presentationTime/o.eventStream.timescale,(0===t||t<=n&&t+A>n)&&(m("Start Event "+a+" at "+n),o.duration>0&&(S[a]=o),o.eventStream.schemeIdUri==p&&o.eventStream.value==h?u():_.trigger(o.eventStream.schemeIdUri,{event:o}),delete e[a]))}}function d(e){e&&(e.manifestModel&&(M=e.manifestModel),e.manifestUpdater&&(b=e.manifestUpdater))}function g(){t(),E=null,T=null,S=null,C=null}var p="urn:mpeg:dash:event:2012",h=1,v=this.context,m=(0,f["default"])(v).getInstance().log,_=(0,c["default"])(v).getInstance(),y=void 0,E=void 0,T=void 0,S=void 0,I=void 0,R=void 0,A=void 0,M=void 0,b=void 0,C=void 0,D=void 0;return y={initialize:e,addInlineEvents:r,addInbandEvents:i,clear:t,start:n,setConfig:d,reset:g}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),o=r(a),s=n(1),u=r(s),l=n(4),f=r(l),d=n(3),c=r(d);i.__dashjs_factory_name="EventController",t["default"]=u["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){m={},p.on(h["default"].FRAGMENT_LOADING_COMPLETED,u,v)}function t(e){var t=null;return null!==e&&void 0!==e&&e.byteLength>0&&(t=new Uint8Array(e)),t}function n(e){var t=m[e];return t||(t=(0,l["default"])(f).create({metricsModel:(0,d["default"])(f).getInstance()}),m[e]=t),t}function r(e){return e&&e.type&&e.type===a.HTTPRequest.INIT_SEGMENT_TYPE}function i(){p.off(h["default"].FRAGMENT_LOADING_COMPLETED,u,this);for(var e in m)m[e].reset();m={}}function o(e,t,n){var r=new s["default"];return r.streamId=n,r.mediaInfo=t.mediaInfo,r.segmentType=t.type,r.start=t.startTime,r.duration=t.duration,r.end=r.start+r.duration,r.bytes=e,r.index=t.index,r.quality=t.quality,r}function u(e){if(m[e.request.mediaType]===e.sender){var t=e.sender.getScheduleController(),n=e.request,i=e.response,a=r(n),s=t.getStreamProcessor().getStreamInfo().id;if(!i)return void c("No "+n.mediaType+" bytes to push.");var u=o(i,n,s);p.trigger(a?h["default"].INIT_FRAGMENT_LOADED:h["default"].MEDIA_FRAGMENT_LOADED,{chunk:u,fragmentModel:e.sender})}}var f=this.context,c=(0,y["default"])(f).getInstance().log,p=(0,g["default"])(f).getInstance(),v=void 0,m=void 0;return v={process:t,getModel:n,isInitializationRequest:r,reset:i},e(),v}Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),o=n(166),s=r(o),u=n(30),l=r(u),f=n(14),d=r(f),c=n(3),g=r(c),p=n(2),h=r(p),v=n(1),m=r(v),_=n(4),y=r(_);i.__dashjs_factory_name="FragmentController",t["default"]=m["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return t?new MediaSource:e?new WebKitMediaSource:null}function t(e,t){var n=window.URL.createObjectURL(e);return t.setSource(n),n}function n(e){e.setSource(null)}function r(e,t){return e.duration!=t&&(e.duration=t),e.duration}function i(e){var t=e.sourceBuffers,n=t.length,r=0;if("open"===e.readyState){for(r;r<n;r++){if(t[r].updating)return;if(0===t[r].buffered.length)return}e.endOfStream()}}var a=void 0;return a={createMediaSource:e,attachMediaSource:t,detachMediaSource:n,setDuration:r,signalEndOfStream:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="MediaSourceController",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){Se=!0,qe=NaN,He=NaN,Ye=[],Ie=!1,Re=null,Ae=null,Me=!0,be=!1,Ce=0,Oe=NaN}function n(e,t){me=e,Le=t,Ue=(0,P["default"])(oe).getInstance(),Pe=(0,s["default"])(oe).getInstance(),we=(0,g["default"])(oe).getInstance(),Ne=(0,l["default"])(oe).getInstance(),xe=(0,k["default"])(oe).getInstance(),Fe=Le.getFragmentController(),Be=Le.getBufferController(),ye=Fe.getModel(me),ye.setScheduleController(this),Ee=Le.isDynamic(),Ke=he.getScheduleWhilePaused(),ke=(0,h["default"])(oe).create({dashMetrics:(0,A["default"])(oe).getInstance(),metricsModel:(0,T["default"])(oe).getInstance(),textSourceBuffer:(0,y["default"])(oe).getInstance()}),je=(0,m["default"])(oe).create({adapter:(0,b["default"])(oe).getInstance(),sourceBufferController:(0,D["default"])(oe).getInstance(),textSourceBuffer:(0,y["default"])(oe).getInstance()}),ge.getIsTextTrack(me)&&ue.on(x["default"].TIMED_TEXT_REQUESTED,q,this),ue.on(x["default"].LIVE_EDGE_SEARCH_COMPLETED,z,this),ue.on(x["default"].QUALITY_CHANGE_REQUESTED,_,this),ue.on(x["default"].DATA_UPDATE_STARTED,F,this),ue.on(x["default"].DATA_UPDATE_COMPLETED,S,this),ue.on(x["default"].FRAGMENT_LOADING_COMPLETED,C,this),ue.on(x["default"].STREAM_COMPLETED,M,this),ue.on(x["default"].STREAM_INITIALIZED,R,this),ue.on(x["default"].BUFFER_LEVEL_STATE_CHANGED,B,this),ue.on(x["default"].BUFFER_CLEARED,U,this),ue.on(x["default"].BYTES_APPENDED,w,this),ue.on(x["default"].INIT_REQUESTED,c,this),ue.on(x["default"].QUOTA_EXCEEDED,j,this),ue.on(x["default"].BUFFER_LEVEL_STATE_CHANGED,B,this),ue.on(x["default"].PLAYBACK_STARTED,Y,this),ue.on(x["default"].PLAYBACK_SEEKING,G,this),ue.on(x["default"].PLAYBACK_RATE_CHANGED,V,this),ue.on(x["default"].PLAYBACK_TIME_UPDATED,O,this),ue.on(x["default"].URL_RESOLUTION_FAILED,H,this),ue.on(x["default"].FRAGMENT_LOADING_ABANDONED,L,this)}function r(){_e&&(ie(),Ie=!1,Se?p(Te.quality):f(0),Se&&(Se=!1),se("Schedule controller starting for "+me))}function i(){Ie||(Ie=!0,clearTimeout(De),se("Schedule controller stopping for "+me))}function o(){if(!(Ie||be||!Be||Pe.isPaused()&&!Ke)){u();var e=Ye.length>0,t=ke.execute(Le,me,xe.isVideoTrackPresent());if(t||e){var n=function(){if(Te.quality!==qe)qe=Te.quality,Be.switchInitData(Le.getStreamInfo().id,Te.quality);else{var e=je.execute(Le,Ye.shift());e?ye.executeRequest(e):(be=!1,f(250))}};be=!0,e?n():Ne.getPlaybackQuality(Le,n)}else f(500)}}function u(){var e=1.5*Te.fragmentDuration,t=ye.getRequests({state:I["default"].FRAGMENT_MODEL_EXECUTED,time:Pe.getTime()+e,threshold:0})[0];t&&Ye.indexOf(t)===-1&&!ge.getIsTextTrack(me)&&(!we.isCurrentTrack(t.mediaInfo)||he.getFastSwitchEnabled()&&t.quality<Te.quality&&Be.getBufferLevel()>=e&&Ne.getAbandonmentStateFor(me)!==l["default"].ABANDON_LOAD?(v(t),se("Reloading outdated fragment at index: ",t.index)):t.quality>Te.quality&&Q(Pe.getTime()+Be.getBufferLevel()))}function f(e){clearTimeout(De),De=setTimeout(o,e)}function c(e){e.sender.getStreamProcessor()===Le&&p(Te.quality)}function p(e){qe=e;var t=de.getInitRequest(Le,e);t&&(be=!0,ye.executeRequest(t))}function v(e){Ye.push(e)}function _(e){if(me===e.mediaType&&Le.getStreamInfo().id===e.streamInfo.id){if(Te=Le.getRepresentationInfoForQuality(e.newQuality),null===Te||void 0===Te)throw new Error("Unexpected error! - currentRepresentationInfo is null or undefined");re(new Date,a.PlayListTrace.REPRESENTATION_SWITCH_STOP_REASON),ie()}}function E(e){var t=ye.getRequests({state:I["default"].FRAGMENT_MODEL_EXECUTED,time:Pe.getTime(),threshold:0})[0];t&&Pe.getTime()>=t.startTime&&(t.quality!==He&&e&&ue.trigger(x["default"].QUALITY_CHANGE_RENDERED,{mediaType:me,oldQuality:He,newQuality:t.quality}),He=t.quality)}function S(e){e.error||e.sender.getStreamProcessor()!==Le||(Te=de.convertDataToTrack(fe.getValue(),e.currentRepresentation))}function R(e){e.error||Le.getStreamInfo().id!==e.streamInfo.id||(Te=Le.getCurrentRepresentationInfo(),Ee&&null===Ue.getLiveEdge()||(_e=!0),Ie&&r())}function M(e){e.fragmentModel===ye&&(i(),be=!1,se("Stream is complete"))}function C(e){e.sender===ye&&(ge.getIsTextTrack(me)&&(be=!1),e.error&&e.serviceLocation&&!Ie&&v(e.request))}function O(){E(!0)}function w(e){e.sender.getStreamProcessor()===Le&&(be=!1,f(0))}function L(e){e.streamProcessor===Le&&(v(e.request),be=!1,f(0))}function F(e){e.sender.getStreamProcessor()===Le&&i()}function U(e){e.sender.getStreamProcessor()===Le&&(ye.removeExecutedRequestsBeforeTime(e.to),e.hasEnoughSpaceToAppend&&!Be.getIsBufferingCompleted()&&Ie&&r())}function B(e){e.sender.getStreamProcessor()!==Le||e.state!==d["default"].BUFFER_EMPTY||Pe.isSeeking()||(se("Buffer is empty! Stalling!"),re(new Date,a.PlayListTrace.REBUFFERING_REASON))}function j(e){e.sender.getStreamProcessor()===Le&&i()}function H(){ye.abortRequests(),i()}function q(e){e.sender.getStreamProcessor()===Le&&p(e.index)}function Y(){Ie&&r()}function G(e){Oe=e.seekTime,Z(0),Ie&&r();var t=ce.getCurrentManifestUpdate(le.getMetricsFor("stream")),n=Te.DVRWindow?Te.DVRWindow.end-Pe.getTime():NaN;le.updateManifestUpdateInfo(t,{latency:n})}function V(e){Ae&&(Ae.playbackspeed=e.playbackRate.toString())}function z(e){if(!e.error){var t=Te.mediaInfo.streamInfo.manifestInfo.DVRWindowSize/2,n=e.liveEdge-Pe.computeLiveDelay(Te.fragmentDuration,t),i=ce.getCurrentManifestUpdate(le.getMetricsFor("stream")),a=Pe.getLiveStartTime(),o=de.getFragmentRequestForTime(Le,Te,n,{ignoreIsFinished:!0});Oe=a,(isNaN(a)||o.startTime>a)&&(Pe.setLiveStartTime(o.startTime),Oe=o.startTime),le.updateManifestUpdateInfo(i,{currentTime:Oe,presentationStartTime:e.liveEdge,latency:e.liveEdge-Oe,clientTimeOffset:pe.getClientTimeOffset()}),_e=!0,Ie&&r()}}function W(){return Oe}function Q(e){Oe=e}function X(){return ye}function Z(e){Ce=e}function J(){return Ce}function $(){return Le}function ee(){return ke.getBufferTarget(Le,me,xe.isVideoTrackPresent())}function te(e){Re=e}function ne(e,t){re(e,t),Re=null}function re(e,t){if(Re&&Me===!1){var n=Ae.start,r=e.getTime()-n.getTime();Ae.duration=r,Ae.stopreason=t,Re.trace.push(Ae),Me=!0}}function ie(){Re&&Me===!0&&Te&&(Me=!1,Ae=new a.PlayListTrace,Ae.representationid=Te.id,Ae.start=new Date,Ae.mstart=1e3*Pe.getTime(),Ae.playbackspeed=Pe.getPlaybackRate().toString())}function ae(){ue.off(x["default"].LIVE_EDGE_SEARCH_COMPLETED,z,this),ue.off(x["default"].DATA_UPDATE_STARTED,F,this),ue.off(x["default"].DATA_UPDATE_COMPLETED,S,this),ue.off(x["default"].BUFFER_LEVEL_STATE_CHANGED,B,this),ue.off(x["default"].QUALITY_CHANGE_REQUESTED,_,this),ue.off(x["default"].FRAGMENT_LOADING_COMPLETED,C,this),ue.off(x["default"].STREAM_COMPLETED,M,this),ue.off(x["default"].STREAM_INITIALIZED,R,this),ue.off(x["default"].QUOTA_EXCEEDED,j,this),ue.off(x["default"].BYTES_APPENDED,w,this),ue.off(x["default"].BUFFER_CLEARED,U,this),ue.off(x["default"].INIT_REQUESTED,c,this),ue.off(x["default"].PLAYBACK_RATE_CHANGED,V,this),ue.off(x["default"].PLAYBACK_SEEKING,G,this),ue.off(x["default"].PLAYBACK_STARTED,Y,this),ue.off(x["default"].PLAYBACK_TIME_UPDATED,O,this),ue.off(x["default"].URL_RESOLUTION_FAILED,H,this),ue.off(x["default"].FRAGMENT_LOADING_ABANDONED,L,this),ge.getIsTextTrack(me)&&ue.off(x["default"].TIMED_TEXT_REQUESTED,q,this),i(),E(!1),be=!1,Ce=0,Oe=NaN,Pe=null,Re=null}var oe=this.context,se=(0,K["default"])(oe).getInstance().log,ue=(0,N["default"])(oe).getInstance(),le=e.metricsModel,fe=e.manifestModel,de=e.adapter,ce=e.dashMetrics,ge=e.dashManifestModel,pe=e.timelineConverter,he=e.mediaPlayerModel,ve=void 0,me=void 0,_e=void 0,ye=void 0,Ee=void 0,Te=void 0,Se=void 0,Ie=void 0,Re=void 0,Ae=void 0,Me=void 0,be=void 0,Ce=void 0,De=void 0,Oe=void 0,Pe=void 0,we=void 0,Ne=void 0,Le=void 0,xe=void 0,Fe=void 0,Ue=void 0,Be=void 0,ke=void 0,je=void 0,Ke=void 0,He=void 0,qe=void 0,Ye=void 0;return ve={initialize:n,getStreamProcessor:$,getSeekTarget:W,setSeekTarget:Q,getFragmentModel:X,setTimeToLoadDelay:Z,getTimeToLoadDelay:J,replaceRequest:v,start:r,stop:i,reset:ae,setPlayList:te,getBufferTarget:ee,finalisePlayList:ne},t(),ve}Object.defineProperty(t,"__esModule",{value:!0});var a=n(70),o=n(9),s=r(o),u=n(10),l=r(u),f=n(18),d=r(f),c=n(13),g=r(c),p=n(154),h=r(p),v=n(155),m=r(v),_=n(17),y=r(_),E=n(14),T=r(E),S=n(30),I=r(S),R=n(16),A=r(R),M=n(15),b=r(M),C=n(28),D=r(C),O=n(51),P=r(O),w=n(3),N=r(w),L=n(2),x=r(L),F=n(1),U=r(F),B=n(20),k=r(B),j=n(4),K=r(j);i.__dashjs_factory_name="ScheduleController",t["default"]=U["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){_=!1,y=null,E=null,T=null,S=null,I=null,p.on(u["default"].DATA_UPDATE_COMPLETED,d,this),p.on(u["default"].INIT_FRAGMENT_LOADED,c,this)}function n(e,t,n){T=e,s(t),S=n,I=S.getRepresentationController()}function r(e){try{E=h.createSourceBuffer(y,e),_||(E.hasOwnProperty("initialize")&&E.initialize(T,this),_=!0)}catch(t){v.mediaSourceError("Error creating "+T+" source buffer.")}return E}function i(){return E}function a(e){E=e}function s(e){y=e}function l(){return S}function f(e){p.off(u["default"].DATA_UPDATE_COMPLETED,d,this),p.off(u["default"].INIT_FRAGMENT_LOADED,c,this),e||(h.abort(y,E),h.removeSourceBuffer(y,E))}function d(e){e.sender.getStreamProcessor()===S&&p.trigger(u["default"].TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}function c(e){e.fragmentModel===S.getFragmentModel()&&e.chunk.bytes&&h.append(E,e.chunk)}var g=this.context,p=(0,o["default"])(g).getInstance(),h=e.sourceBufferController,v=e.errHandler,m=void 0,_=void 0,y=void 0,E=void 0,T=void 0,S=void 0,I=void 0;return m={initialize:n,createBuffer:r,getBuffer:i,setBuffer:a,getStreamProcessor:l,setMediaSource:s,reset:f},t(),m}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="TextController",t["default"]=f["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){N=t,O=0,P=!1,w=!1,L={"urn:mpeg:dash:utc:http-head:2014":T,"urn:mpeg:dash:utc:http-xsdate:2014":E.bind(null,c),"urn:mpeg:dash:utc:http-iso:2014":E.bind(null,g),"urn:mpeg:dash:utc:direct:2014":y,"urn:mpeg:dash:utc:http-head:2012":T,"urn:mpeg:dash:utc:http-xsdate:2012":E.bind(null,c),"urn:mpeg:dash:utc:http-iso:2012":E.bind(null,g),"urn:mpeg:dash:utc:direct:2012":y,"urn:mpeg:dash:utc:http-ntp:2014":_,"urn:mpeg:dash:utc:ntp:2014":_,"urn:mpeg:dash:utc:sntp:2014":_},i()||(R(e),a(!0))}function t(e){e&&(e.metricsModel&&(x=e.metricsModel),e.dashMetrics&&(F=e.dashMetrics))}function n(){return l()}function r(e){P=e}function i(){return P}function a(e){w=e}function s(e){O=e}function l(){return O}function d(e){var t,n,r=60,i=60,a=1e3,o=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/,s=o.exec(e);return t=Date.UTC(parseInt(s[1],10),parseInt(s[2],10)-1,parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5],10),s[6]&&(parseInt(s[6],10)||0),s[7]&&parseFloat(s[7])*a||0),s[9]&&s[10]&&(n=parseInt(s[9],10)*i+parseInt(s[10],10),t+=("+"===s[8]?-1:1)*n*r*a),new Date(t).getTime()}function c(e){var t=Date.parse(e);return isNaN(t)&&(t=d(e)),t}function g(e){return Date.parse(e)}function m(e){return Date.parse(e)}function _(e,t,n){n()}function y(e,t,n){var r=c(e);return isNaN(r)?void n():void t(r)}function E(e,t,n,r,i){var a,o,s=!1,u=new XMLHttpRequest,l=i?"HEAD":"GET",f=t.match(/\S+/g);t=f.shift(),a=function(){s||(s=!0,f.length?E(e,f.join(" "),n,r,i):r())},o=function(){var t,r;200===u.status&&(t=i?u.getResponseHeader("Date"):u.response,r=e(t),isNaN(r)||(n(r),s=!0))},u.open(l,t),u.timeout=v||0,u.onload=o,u.onloadend=a,u.send()}function T(e,t,n){E(m,e,t,n,!0)}function S(){var e=x.getReadOnlyMetricsFor("stream"),t=F.getLatestMPDRequestHeaderValueByID(e,"Date"),n=null!==t?new Date(t).getTime():Number.NaN;isNaN(n)?I(!0):(s(n-(new Date).getTime()),I(!1,n/1e3,O))}function I(e,t,n){r(!1),C.trigger(f["default"].TIME_SYNCHRONIZATION_COMPLETED,{time:t,offset:n,error:e?new o["default"](h):null})}function R(e,t){var n=t||0,i=e[n],a=function(e,t){var n=!e||!t;n&&N?S():I(n,e,t)};r(!0),i?L.hasOwnProperty(i.schemeIdUri)?L[i.schemeIdUri](i.value,function(e){var t=(new Date).getTime(),n=e-t;s(n),b("Local time: "+new Date(t)),b("Server time: "+new Date(e)),b("Difference (ms): "+n),a(e,n)},function(){R(e,n+1)}):R(e,n+1):(s(0),a())}function A(){a(!1),r(!1)}var M=this.context,b=(0,p["default"])(M).getInstance().log,C=(0,u["default"])(M).getInstance(),D=void 0,O=void 0,P=void 0,w=void 0,N=void 0,L=void 0,x=void 0,F=void 0;return D={initialize:e,getOffsetToDeviceTimeMs:n,setConfig:t,reset:A}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),o=r(a),s=n(3),u=r(s),l=n(2),f=r(l),d=n(1),c=r(d),g=n(4),p=r(g),h=1,v=5e3;i.__dashjs_factory_name="TimeSyncController";var m=c["default"].getSingletonFactory(i);m.TIME_SYNC_FAILED_ERROR_CODE=h,m.HTTP_TIMEOUT_MS=v,t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){M.on(f["default"].XLINK_ELEMENT_LOADED,l,C),N=(0,o["default"])(A).create({errHandler:e.errHandler,metricsModel:e.metricsModel,requestModifier:e.requestModifier})}function n(e){D=e}function r(e){O=e}function i(e){var t;w=new p["default"](D,"",(!0)),P=e,t=c(P.Period_asArray,P,y,m),s(t,y,m)}function a(){M.off(f["default"].XLINK_ELEMENT_LOADED,l,C),N&&(N.reset(),N=null)}function s(e,t,n){var r,i,a,o={};for(o.elements=e,o.type=t,o.resolveType=n,0===o.elements.length&&d(o),a=0;a<o.elements.length;a++)r=o.elements[a],i=b.isHTTPURL(r.url)?r.url:r.originalContent.BaseURL+r.url,N.load(i,r,o)}function l(e){var t,n,r,i="<response>",a="</response>",o="";t=e.element,n=e.resolveObject,t.resolvedContent&&(r=t.resolvedContent.indexOf(">")+1,o=t.resolvedContent.substr(0,r)+i+t.resolvedContent.substr(r)+a,t.resolvedContent=w.xml_str2json(o)),I(n)&&d(n)}function d(e){var t,n,r=[];if(g(e),e.resolveType===_&&M.trigger(f["default"].XLINK_READY,{manifest:P}),e.resolveType===m)switch(e.type){case y:for(t=0;t<P[y+"_asArray"].length;t++)n=P[y+"_asArray"][t],n.hasOwnProperty(E+"_asArray")&&(r=r.concat(c(n[E+"_asArray"],n,E,m))),n.hasOwnProperty(T+"_asArray")&&(r=r.concat(c(n[T+"_asArray"],n,T,m)));s(r,E,m);break;case E:M.trigger(f["default"].XLINK_READY,{manifest:P})}}function c(e,t,n,r){var i,a,o,s=[];for(a=e.length-1;a>=0;a--)i=e[a],i.hasOwnProperty("xlink:href")&&i["xlink:href"]===S&&e.splice(a,1);for(a=0;a<e.length;a++)i=e[a],i.hasOwnProperty("xlink:href")&&i.hasOwnProperty("xlink:actuate")&&i["xlink:actuate"]===r&&(o=h(i["xlink:href"],t,n,a,r,i),s.push(o));return s}function g(e){var t,n,r,i,a,o,s=[];for(i=e.elements.length-1;i>=0;i--){if(t=e.elements[i],n=t.type+"_asArray",!t.resolvedContent||R())delete t.originalContent["xlink:actuate"],
|
35 |
+
delete t.originalContent["xlink:href"],s.push(t.originalContent);else if(t.resolvedContent)for(a=0;a<t.resolvedContent[n].length;a++)r=t.resolvedContent[n][a],s.push(r);for(t.parentElement[n].splice(t.index,1),o=0;o<s.length;o++)t.parentElement[n].splice(t.index+o,0,s[o]);s=[]}e.elements.length>0&&O.run(P)}function h(e,t,n,r,i,a){return{url:e,parentElement:t,type:n,index:r,resolveType:i,originalContent:a,resolvedContent:null,resolved:!1}}function I(e){var t,n;for(t=0;t<e.elements.length;t++)if(n=e.elements[t],n.resolved===!1)return!1;return!0}function R(){return!1}var A=this.context,M=(0,u["default"])(A).getInstance(),b=(0,v["default"])(A).getInstance(),C=void 0,D=void 0,O=void 0,P=void 0,w=void 0,N=void 0;return C={resolveManifestOnLoad:i,setMatchers:n,setIron:r,reset:a},t(),C}Object.defineProperty(t,"__esModule",{value:!0});var a=n(103),o=r(a),s=n(3),u=r(s),l=n(2),f=r(l),d=n(1),c=r(d),g=n(35),p=r(g),h=n(22),v=r(h),m="onLoad",_="onActuate",y="Period",E="AdaptationSet",T="EventStream",S="urn:mpeg:dash:resolve-to-zero:2013";i.__dashjs_factory_name="XlinkController",t["default"]=c["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return a=(0,o["default"])(r).getInstance({eventBus:e.eventBus,metricsModel:e.metricsModel}),(0,f["default"])(r).create(e)}function t(){return(0,p["default"])(r).getInstance()}function n(){return(0,c["default"])(r).getInstance()}var r=this.context,i=void 0,a=void 0;return i={createMetricsReporting:e,getReportingFactory:t,getMetricsHandlerFactory:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(124),o=r(a),s=n(29),u=r(s),l=n(114),f=r(l),d=n(60),c=r(d),g=n(61),p=r(g),h=n(1),v=r(h);i.__dashjs_factory_name="MetricsReporting";var m=v["default"].getClassFactory(i);m.events=u["default"],t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(t){if(!t.error){var n=Object.keys(i),r=(0,u["default"])(a).getInstance({dashManifestModel:e.dashManifestModel}).getMetrics(t.manifest);r.forEach(function(t){var r=JSON.stringify(t);if(i.hasOwnProperty(r))n.splice(r,1);else try{var s=(0,o["default"])(a).create(e);s.initialize(t),i[r]=s}catch(u){}}),n.forEach(function(e){i[e].reset(),delete i[e]}),s.trigger(c["default"].METRICS_INITIALISATION_COMPLETE)}}function n(){Object.keys(i).forEach(function(e){i[e].reset()}),i={}}function r(){s.on(p["default"].MANIFEST_UPDATED,t),s.on(p["default"].STREAM_TEARDOWN_COMPLETE,n)}var i={},a=this.context,s=e.eventBus;return r(),{}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(115),o=r(a),s=n(125),u=r(s),l=n(1),f=r(l),d=n(29),c=r(d),g=n(2),p=r(g);i.__dashjs_factory_name="MetricsCollectionController",t["default"]=f["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(t){try{a=(0,u["default"])(s).create({mediaElement:e.mediaElement}),a.initialize(t.Range),i=(0,f["default"])(s).create({log:e.log}),i.initialize(t.Reporting,a),r=(0,c["default"])(s).create({log:e.log,eventBus:e.eventBus}),r.initialize(t.metrics,i)}catch(o){throw n(),o}}function n(){r&&r.reset(),i&&i.reset(),a&&a.reset()}var r=void 0,i=void 0,a=void 0,o=void 0,s=this.context;return o={initialize:t,reset:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(117),u=r(s),l=n(118),f=r(l),d=n(116),c=r(d);i.__dashjs_factory_name="MetricsController",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){i.forEach(function(t){t.handleNewMetric(e.metric,e.value,e.mediaType)})}function n(e,n){e.split(",").forEach(function(e,t,r){var a;if(e.indexOf("(")!==-1&&e.indexOf(")")===-1){var o=r[t+1];o&&o.indexOf("(")===-1&&o.indexOf(")")!==-1&&(e+=","+o,delete r[t+1])}a=l.create(e,n),a&&i.push(a)}),u.on(f["default"].METRIC_ADDED,t,a),u.on(f["default"].METRIC_UPDATED,t,a)}function r(){u.off(f["default"].METRIC_ADDED,t,a),u.off(f["default"].METRIC_UPDATED,t,a),i.forEach(function(e){return e.reset()}),i=[]}var i=[],a=void 0,s=this.context,u=e.eventBus,l=(0,o["default"])(s).getInstance({log:e.log,eventBus:e.eventBus});return a={initialize:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(60),o=r(a),s=n(1),u=r(s),l=n(38),f=r(l);i.__dashjs_factory_name="MetricsHandlersController",t["default"]=u["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){e&&e.length&&(e.forEach(function(e){var t=e.starttime,n=t+e.duration;l.add(t,n)}),a=!!e[0]._useWallClockTime)}function n(){l.clear()}function r(){l=(0,u["default"])(o).create()}function i(){var e,t=l.length;if(!t)return!0;e=a?(new Date).getTime()/1e3:f.currentTime;for(var n=0;n<t;n+=1){var r=l.start(n),i=l.end(n);if(r<=e&&e<i)return!0}return!1}var a=!1,o=this.context,s=void 0,l=void 0,f=e.mediaElement;return s={initialize:t,reset:n,isEnabled:i},r(),s}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(67),u=r(s);i.__dashjs_factory_name="RangeController",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t){e.some(function(e){var n=o.create(e,t);if(n)return i.push(n),!0})}function n(){i.forEach(function(e){return e.reset()}),i=[]}function r(e,t){i.forEach(function(n){return n.report(e,t)})}var i=[],a=void 0,o=(0,u["default"])(this.context).getInstance({log:e.log});return a={initialize:t,reset:n,report:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(61),u=r(s);i.__dashjs_factory_name="ReportingController",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){try{return Object.keys(p).map(function(e){return p[e]}).reduce(function(e,t){return e.level<t.level?e:t})}catch(e){return}}function t(){var t=e();t&&d!==t.t&&(d=t.t,o.report(l,t))}function n(e,n,r){n&&(s=g.validateN(r),o=n,l=g.reconstructFullMetricName(e,r),f=setInterval(t,s))}function r(){clearInterval(f),f=null,s=0,o=null,d=null}function i(e,t,n){"BufferLevel"===e&&(p[n]=t)}var a=void 0,o=void 0,s=void 0,l=void 0,f=void 0,d=void 0,c=this.context,g=(0,u["default"])(c).getInstance(),p=[];return a={initialize:n,reset:r,handleNewMetric:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(62),u=r(s);i.__dashjs_factory_name="BufferLevelHandler",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){s.off(u["default"].METRICS_INITIALISATION_COMPLETE,t,this),s.trigger(u["default"].BECAME_REPORTING_PLAYER)}function n(e,n){n&&(o=n,s.on(u["default"].METRICS_INITIALISATION_COMPLETE,t,this))}function r(){o=null}function i(e,t){"DVBErrors"===e&&o&&o.report(e,t)}var a=void 0,o=void 0,s=e.eventBus;return a={initialize:n,reset:r,handleNewMetric:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(29),u=r(s);t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){i=e,a=t}function t(){a=null,i=void 0}function n(e,t){e===i&&a&&a.report(i,t)}var r=void 0,i=void 0,a=void 0;return r={initialize:e,reset:t,handleNewMetric:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="GenericMetricHandler",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){var e=d;e.length&&a&&a.report(l,e),d=[]}function t(t,n,r,i){n&&(o=c.validateN(r),a=n,i&&i.length&&(s=i),l=c.reconstructFullMetricName(t,r,i),f=setInterval(e,o))}function n(){clearInterval(f),f=null,o=null,s=null,d=[],a=null}function r(e,t){"HttpList"===e&&(s&&s!==t.type||d.push(t))}var i=void 0,a=void 0,o=void 0,s=void 0,l=void 0,f=void 0,d=[],c=(0,u["default"])(this.context).getInstance();return i={initialize:t,reset:n,handleNewMetric:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(62),u=r(s);i.__dashjs_factory_name="HttpListHandler",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t,n){var r=new XMLHttpRequest,i=function(){var e=v.indexOf(r);e!==-1&&(v.splice(e,1),r.status>=200&&r.status<300?t&&t():n&&n())};v.push(r);try{r.open("GET",e),r.onloadend=i,r.onerror=i,r.send()}catch(a){r.onerror()}}function t(t,n){Array.isArray(n)||(n=[n]),d&&p.isEnabled()&&n.forEach(function(n){var r=o.serialise(n);l&&"DVBErrors"!==t&&(r="metricname="+t+"&"+r),r=g+"?"+r,e(r,null,function(){d=!1})})}function n(e,t){var n;if(p=t,g=e["dvb:reportingUrl"],!g)throw new Error("required parameter missing (dvb:reportingUrl)");c||(n=e["dvb:probability"]||e["dvb:priority"]||0,n&&(1e3===n||n/1e3>=s.random())&&(d=!0),c=!0)}function r(){h||(v.forEach(function(e){return e.abort()}),v=[]),c=!1,d=!1,g=null,p=null}var i=void 0,a=this.context,o=(0,u["default"])(a).getInstance(),s=(0,f["default"])(a).getInstance(),l=!0,d=!1,c=!1,g=null,p=null,h=!0,v=[];return i={report:t,initialize:n,reset:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(126),u=r(s),l=n(127),f=r(l);i.__dashjs_factory_name="DVBReporting",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){var t=new o["default"];if(m){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.mpdurl||(t.mpdurl=m.originalUrl||m.url),t.terror||(t.terror=new Date),v.addDVBErrors(t)}}function n(e){e.error||(m=e.manifest)}function r(e){t({errorcode:o["default"].BASE_URL_CHANGED,servicelocation:e.entry})}function i(){t({errorcode:o["default"].BECAME_REPORTER})}function a(e){(0===e.responsecode||e.responsecode>=400||e.responsecode<100||e.responsecode>=600)&&t({errorcode:e.responsecode||o["default"].CONNECTION_ERROR,url:e.url,terror:e.tresponse,servicelocation:e._serviceLocation})}function s(e){switch(e.metric){case"HttpList":a(e.value)}}function l(e){var n,r=e.error?e.error.code:0;switch(r){case MediaError.MEDIA_ERR_NETWORK:n=o["default"].CONNECTION_ERROR;break;case MediaError.MEDIA_ERR_DECODE:n=o["default"].CORRUPT_MEDIA_OTHER;break;default:return}t({errorcode:n})}function d(){h.on(u["default"].MANIFEST_UPDATED,n,p),h.on(u["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,r,p),h.on(f["default"].METRIC_ADDED,s,p),h.on(f["default"].METRIC_UPDATED,s,p),h.on(f["default"].PLAYBACK_ERROR,l,p),h.on(c["default"].BECAME_REPORTING_PLAYER,i,p)}function g(){h.off(u["default"].MANIFEST_UPDATED,n,p),h.off(u["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,r,p),h.off(f["default"].METRIC_ADDED,s,p),h.off(f["default"].METRIC_UPDATED,s,p),h.off(f["default"].PLAYBACK_ERROR,l,p),h.off(c["default"].BECAME_REPORTING_PLAYER,i,p)}var p=void 0,h=e.eventBus,v=e.metricsModel,m=void 0;return p={initialise:d,reset:g},d(),p}Object.defineProperty(t,"__esModule",{value:!0});var a=n(128),o=r(a),s=n(2),u=r(s),l=n(38),f=r(l),d=n(29),c=r(d),g=n(1),p=r(g);i.__dashjs_factory_name="DVBErrorsTranslator",t["default"]=p["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t,n){var r,a,o=i.getMpd(e),s=0;return t?s=o.availabilityStartTime.getTime()/1e3:(r=this.getRegularPeriods(e,o),r.length&&(s=r[0].start)),a=s,n&&n.hasOwnProperty("starttime")&&(a+=n.starttime),a}function n(e){var n=[];return e.Metrics_asArray&&e.Metrics_asArray.forEach(function(r){var a=new o["default"],s=i.getIsDynamic(e);r.hasOwnProperty("metrics")&&(a.metrics=r.metrics,r.Range_asArray&&r.Range_asArray.forEach(function(n){var r=new u["default"];r.starttime=t(e,s,n),n.hasOwnProperty("duration")?r.duration=n.duration:r.duration=i.getDuration(e),r._useWallClockTime=s,a.Range.push(r)}),r.Reporting_asArray&&(r.Reporting_asArray.forEach(function(e){var t=new f["default"];if(e.hasOwnProperty("schemeIdUri")){t.schemeIdUri=e.schemeIdUri;for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);a.Reporting.push(t)}}),n.push(a)))}),n}var r=void 0,i=e.dashManifestModel;return r={getMetrics:n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(129),o=r(a),s=n(130),u=r(s),l=n(131),f=r(l),d=n(1),c=r(d);i.__dashjs_factory_name="ManifestParsing",t["default"]=c["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(t){var n,r,i=[],a=[];for(n in t)if(t.hasOwnProperty(n)&&0!==n.indexOf("_")){if(r=t[n],void 0!==r&&null!==r||(r=""),Array.isArray(r)){if(!r.length)continue;a=[],r.forEach(function(t){var n="Object"!==Object.prototype.toString.call(t).slice(8,-1);a.push(n?t:e(t))}),r=encodeURIComponent(a.join(","))}else"string"==typeof r?r=encodeURIComponent(r):r instanceof Date?r=r.toISOString():"number"==typeof r&&(r=Math.round(r));i.push(n+"="+r)}return i.join("&")}return{serialise:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="MetricSerialiser",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){n&&(o||(o=new r(a)),n.getRandomValues(o),s=0)}function t(t,r){var a;return t||(t=0),r||(r=1),n?(s===o.length&&e(),a=o[s]/i,s+=1):a=Math.random(),a*(r-t)+t}var n=window.crypto||window.msCrypto,r=Uint32Array,i=Math.pow(2,8*r.BYTES_PER_ELEMENT)-1,a=10,o=void 0,s=void 0,u=void 0;return u={random:t},e(),u}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="RNG",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.mpdurl=null,this.errorcode=null,this.terror=null,this.url=null,this.ipaddress=null,this.servicelocation=null};r.SSL_CONNECTION_FAILED_PREFIX="SSL",r.DNS_RESOLUTION_FAILED="C00",r.HOST_UNREACHABLE="C01",r.CONNECTION_REFUSED="C02",r.CONNECTION_ERROR="C03",r.CORRUPT_MEDIA_ISOBMFF="M00",r.CORRUPT_MEDIA_OTHER="M01",r.BASE_URL_CHANGED="F00",r.BECAME_REPORTER="S00",t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.metrics="",this.Range=[],this.Reporting=[]};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.starttime=0,this.duration=1/0,this._useWallClockTime=!1};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.schemeIdUri="",this.value=""};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){function e(){d=new g}function t(e,t,n){var r=h.getBaseURLsFromElement(n);e[t]?v.areSimpleEquivalent(r,e[t].data.baseUrls)||(e[t].data.baseUrls=r,e[t].data.selectedIdx=c):e[t]=new g(r)}function n(e){var n=h.getBaseURLsFromElement(e);v.areSimpleEquivalent(n,d.data.baseUrls)||(d.data.baseUrls=n,d.data.selectedIdx=c),e.Period_asArray&&e.Period_asArray.forEach(function(e,n){t(d.children,n,e),e.AdaptationSet_asArray&&e.AdaptationSet_asArray.forEach(function(e,r){t(d.children[n].children,r,e),e.Representation_asArray&&e.Representation_asArray.sort(h.getRepresentationSortFunction()).forEach(function(e,i){t(d.children[n].children[r].children,i,e)})})})}function r(e,t){var n=t||d;e(n.data),n.children&&n.children.forEach(function(t){return r(e,t)})}function i(e){r(function(t){isNaN(t.selectedIdx)||e===t.baseUrls[t.selectedIdx].serviceLocation&&(t.selectedIdx=c)})}function a(e){n(e)}function o(){d=new g}function u(e){var t=d,n=[t.data];return e.forEach(function(e){t=t.children[e],t&&n.push(t.data)}),n.filter(function(e){return e.baseUrls.length})}var f=void 0,d=void 0,p=this.context,h=(0,s["default"])(p).getInstance(),v=(0,l["default"])(p).getInstance();return f={reset:o,update:a,getForPath:u,invalidateSelectedIndexes:i},e(),f}Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=r(o),u=n(162),l=r(u),f=n(1),d=r(f),c=NaN,g=function p(e,t){i(this,p),this.data={baseUrls:e||null,selectedIdx:t||c},this.children=[]};a.__dashjs_factory_name="BaseURLTreeModel",t["default"]=d["default"].getClassFactory(a),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(24),l=r(u),f=function(e){function t(){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.INTERNAL_KEY_MESSAGE="internalKeyMessage",this.INTERNAL_KEY_SYSTEM_SELECTED="internalKeySystemSelected",this.KEY_ADDED="public_keyAdded",this.KEY_ERROR="public_keyError",this.KEY_MESSAGE="public_keyMessage",this.KEY_SESSION_CLOSED="public_keySessionClosed",this.KEY_SESSION_CREATED="public_keySessionCreated",this.KEY_SESSION_REMOVED="public_keySessionRemoved",this.KEY_STATUSES_CHANGED="public_keyStatusesChanged",this.KEY_SYSTEM_ACCESS_COMPLETE="keySystemAccessComplete",this.KEY_SYSTEM_SELECTED="public_keySystemSelected",this.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",this.NEED_KEY="needkey",this.PROTECTION_CREATED="public_protectioncreated",this.PROTECTION_DESTROYED="public_protectiondestroyed",this.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",this.TEARDOWN_COMPLETE="protectionTeardownComplete",this.VIDEO_ELEMENT_SELECTED="videoElementSelected"}return a(t,e),t}(l["default"]),d=new f;t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){O=R.getKeySystems(),P=[],x=!1,F="temporary",U="",l["default"].extend(m["default"].events)}function n(e,t,n){if(!x){var r;t||n||(r=M.getStreamsInfo(e)[0]),w=t||(r?M.getMediaInfoForType(e,r,"audio"):null),N=n||(r?M.getMediaInfoForType(e,r,"video"):null);var i=N?N:w,a=R.getSupportedKeySystemsFromContentProtection(i.contentProtection);a&&a.length>0&&E(a,!0),x=!0}}function r(e){var t=s["default"].getPSSHForKeySystem(B,e);if(t){for(var n=A.getAllInitData(),r=0;r<n.length;r++)if(R.initDataEquals(t,n[r]))return void C("DRM: Ignoring initData because we have already seen it!");try{A.createKeySession(t,F)}catch(i){b.trigger(l["default"].KEY_SESSION_CREATED,{data:null,error:"Error creating key session! "+i.message})}}else b.trigger(l["default"].KEY_SESSION_CREATED,{data:null,error:"Selected key system is "+B.systemString+". needkey/encrypted event contains no initData corresponding to that key system!"})}function i(e){A.loadKeySession(e)}function o(e){A.removeKeySession(e)}function u(e){A.closeKeySession(e)}function f(e){A.setServerCertificate(e)}function c(e){e?(A.setMediaElement(e),b.on(l["default"].NEED_KEY,I,this),b.on(l["default"].INTERNAL_KEY_MESSAGE,S,this)):null===e&&(A.setMediaElement(e),b.off(l["default"].NEED_KEY,I,this),b.off(l["default"].INTERNAL_KEY_MESSAGE,S,this))}function p(e){F=e}function h(e){U=e}function v(e){L=e}function _(){c(null),B=void 0,A&&(A.reset(),A=null)}function y(e){var t=null,n=e.systemString;return L&&(t=n in L?L[n]:null),t}function E(e,t){var n=this,i=[],a=[];N&&a.push(new d["default"](N.codec,U)),w&&i.push(new d["default"](w.codec,U));var o,s=new g["default"](i,a,"optional","temporary"===F?"optional":"required",[F]),u=[];if(B){for(o=0;o<e.length;o++)if(B===e[o].ks){var f=function(){u.push({ks:e[o].ks,configs:[s]});var i=function a(i){b.off(l["default"].KEY_SYSTEM_ACCESS_COMPLETE,a,n),i.error?t||b.trigger(l["default"].KEY_SYSTEM_SELECTED,{error:"DRM: KeySystem Access Denied! -- "+i.error}):(C("DRM: KeySystem Access Granted"),b.trigger(l["default"].KEY_SYSTEM_SELECTED,{data:i.data}),r(e[o].initData))};return b.on(l["default"].KEY_SYSTEM_ACCESS_COMPLETE,i,n),A.requestKeySystemAccess(u),"break"}();if("break"===f)break}}else if(void 0===B){B=null,P.push(e);for(var c=0;c<e.length;c++)u.push({ks:e[c].ks,configs:[s]});var p,h=function m(e){b.off(l["default"].KEY_SYSTEM_ACCESS_COMPLETE,m,n),e.error?(B=void 0,b.off(l["default"].INTERNAL_KEY_SYSTEM_SELECTED,v,n),t||b.trigger(l["default"].KEY_SYSTEM_SELECTED,{data:null,error:"DRM: KeySystem Access Denied! -- "+e.error})):(p=e.data,C("DRM: KeySystem Access Granted ("+p.keySystem.systemString+")! Selecting key system..."),A.selectKeySystem(p))},v=function _(e){if(b.off(l["default"].INTERNAL_KEY_SYSTEM_SELECTED,_,n),b.off(l["default"].KEY_SYSTEM_ACCESS_COMPLETE,h,n),e.error)B=void 0,t||b.trigger(l["default"].KEY_SYSTEM_SELECTED,{data:null,error:"DRM: Error selecting key system! -- "+e.error});else{B=A.getKeySystem(),b.trigger(l["default"].KEY_SYSTEM_SELECTED,{data:p});for(var i=0;i<P.length;i++)for(o=0;o<P[i].length;o++)if(B===P[i][o].ks){r(P[i][o].initData);break}}};b.on(l["default"].INTERNAL_KEY_SYSTEM_SELECTED,v,n),b.on(l["default"].KEY_SYSTEM_ACCESS_COMPLETE,h,n),A.requestKeySystemAccess(u)}else P.push(e)}function T(e,t){b.trigger(l["default"].LICENSE_REQUEST_COMPLETE,{data:e,error:t})}function S(e){if(C("DRM: onKeyMessage"),e.error)return void C(e.error);var t=e.data;b.trigger(l["default"].KEY_MESSAGE,{data:t});var n=t.messageType?t.messageType:"license-request",r=t.message,i=t.sessionToken,o=y(B),u=B.systemString,f=R.getLicenseServer(B,o,n),d={sessionToken:i,messageType:n};if(!f)return C("DRM: License server request not required for this message (type = "+e.data.messageType+"). Session ID = "+i.getSessionID()),void T(d);if(R.isClearKey(B)){var c=R.processClearKeyLicenseRequest(o,r);if(c)return C("DRM: ClearKey license request handled by application!"),T(d),void A.updateKeySession(i,c)}var g=new XMLHttpRequest,p=null;if(o)if(o.serverURL){var h=o.serverURL;"string"==typeof h&&""!==h?p=h:"object"===("undefined"==typeof h?"undefined":a(h))&&h.hasOwnProperty(n)&&(p=h[n])}else o.laURL&&""!==o.laURL&&(p=o.laURL);else p=B.getLicenseServerURLFromInitData(s["default"].getPSSHData(i.initData)),p||(p=e.data.laURL);if(p=f.getServerURLFromMessage(p,r,n),!p)return void T(d,"DRM: No license server URL specified!");g.open(f.getHTTPMethod(n),p,!0),g.responseType=f.getResponseType(u,n),g.onload=function(){200==this.status?(T(d),A.updateKeySession(i,f.getLicenseMessage(this.response,u,n))):T(d,"DRM: "+u+' update, XHR status is "'+this.statusText+'" ('+this.status+"), expected to be 200. readyState is "+this.readyState+". Response is "+(this.response?f.getErrorResponse(this.response,u,n):"NONE"))},g.onabort=function(){T(d,"DRM: "+u+' update, XHR aborted. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)},g.onerror=function(){T(d,"DRM: "+u+' update, XHR error. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)};var v=function(e){var t;if(e)for(t in e)"authorization"===t.toLowerCase()&&(g.withCredentials=!0),g.setRequestHeader(t,e[t])};o&&v(o.httpRequestHeaders),v(B.getRequestHeadersFromMessage(r)),o&&o.withCredentials&&(g.withCredentials=!0),g.send(B.getLicenseRequestFromMessage(r))}function I(e){if(C("DRM: onNeedKey"),"cenc"!==e.key.initDataType)return void C("DRM: Only 'cenc' initData is supported! Ignoring initData of type: "+e.key.initDataType);var t=e.key.initData;ArrayBuffer.isView(t)&&(t=t.buffer),C("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(t)));var n=R.getSupportedKeySystems(t,L);return 0===n.length?void C("DRM: Received needkey event with initData, but we don't support any of the key systems!"):void E(n,!1)}var R=e.protectionKeyController,A=e.protectionModel,M=e.adapter,b=e.eventBus,C=e.log,D=void 0,O=void 0,P=void 0,w=void 0,N=void 0,L=void 0,x=void 0,F=void 0,U=void 0,B=void 0;return D={initialize:n,createKeySession:r,loadKeySession:i,removeKeySession:o,closeKeySession:u,setServerCertificate:f,setMediaElement:c,setSessionType:p,setRobustnessLevel:h,setProtectionData:v,reset:_},t(),D}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(21),s=r(o),u=n(2),l=r(u),f=n(145),d=r(f),c=n(44),g=r(c),p=n(1),h=r(p),v=n(63),m=r(v);i.__dashjs_factory_name="ProtectionController",t["default"]=h["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){var n=null;if(e){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t))),i=[],a=0;a<r.kids.length;a++){var s=r.kids[a],l=e.clearkeys.hasOwnProperty(s)?e.clearkeys[s]:null;if(!l)throw new Error("DRM: ClearKey keyID ("+s+") is not known!");i.push(new o["default"](s,l))}n=new u["default"](i)}return n}function t(e){return f["default"].parseInitDataFromContentProtection(e)}function n(){return null}function r(e){return new Uint8Array(e)}function i(){return null}var a=void 0;return a={uuid:g,schemeIdURI:h,systemString:p,getInitData:t,getRequestHeadersFromMessage:n,getLicenseRequestFromMessage:r,getLicenseServerURLFromInitData:i,getClearKeysFromProtectionData:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(65),o=r(a),s=n(64),u=r(s),l=n(21),f=r(l),d=n(1),c=r(d),g="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",p="org.w3.clearkey",h="urn:uuid:"+g;i.__dashjs_factory_name="KeySystemClearKey",t["default"]=c["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){var t,n,r={},i=new DOMParser,a="utf16"===s?new Uint16Array(e):new Uint8Array(e);t=String.fromCharCode.apply(null,a),n=i.parseFromString(t,"application/xml");for(var o=n.getElementsByTagName("name"),u=n.getElementsByTagName("value"),l=0;l<o.length;l++)r[o[l].childNodes[0].nodeValue]=u[l].childNodes[0].nodeValue;return r.hasOwnProperty("Content")&&(r["Content-Type"]=r.Content,delete r.Content),r}function t(e){var t,n,r=null,i=new DOMParser,a="utf16"===s?new Uint16Array(e):new Uint8Array(e);if(t=String.fromCharCode.apply(null,a),n=i.parseFromString(t,"application/xml"),n.getElementsByTagName("Challenge")[0]){var o=n.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;o&&(r=c["default"].decode(o))}return r}function n(e){if(e)for(var t=new DataView(e),n=t.getUint16(4,!0),r=6,i=new DOMParser,a=0;a<n;a++){var o=t.getUint16(r,!0);r+=2;var s=t.getUint16(r,!0);if(r+=2,1===o){var u=e.slice(r,r+s),l=String.fromCharCode.apply(null,new Uint16Array(u)),f=i.parseFromString(l,"application/xml");if(f.getElementsByTagName("LA_URL")[0]){var d=f.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(d)return d}if(f.getElementsByTagName("LUI_URL")[0]){var c=f.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(c)return c}}else r+=s}return null}function r(e){var t,n,r,i,a,s=new Uint8Array([112,115,115,104,0,0,0,0]),u=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),l=0,f=null;if("pssh"in e)return o["default"].parseInitDataFromContentProtection(e);if("pro"in e)f=c["default"].decodeArray(e.pro.__text);else{if(!("prheader"in e))return null;f=c["default"].decodeArray(e.prheader.__text)}return t=f.length,n=4+s.length+u.length+4+t,r=new ArrayBuffer(n),i=new Uint8Array(r),a=new DataView(r),a.setUint32(l,n),l+=4,i.set(s,l),l+=s.length,i.set(u,l),l+=u.length,a.setUint32(l,t),l+=4,i.set(f,l),l+=t,i.buffer}function i(e){if("utf8"!==e&&"utf16"!==e)throw new u["default"]("Illegal PlayReady message format! -- "+e);s=e}var a=void 0,s="utf16";return a={uuid:g,schemeIdURI:h,systemString:p,getInitData:r,getRequestHeadersFromMessage:e,getLicenseRequestFromMessage:t,getLicenseServerURLFromInitData:n,setPlayReadyMessageFormat:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),o=r(a),s=n(6),u=r(s),l=n(1),f=r(l),d=n(34),c=r(d),g="9a04f079-9840-4286-ab92-e65be0885f95",p="com.microsoft.playready",h="urn:uuid:"+g;i.__dashjs_factory_name="KeySystemPlayReady",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return o["default"].parseInitDataFromContentProtection(e)}function t(){return null}function n(e){return new Uint8Array(e)}function r(){return null}var i=void 0;return i={uuid:l,schemeIdURI:d,systemString:f,getInitData:e,getRequestHeadersFromMessage:t,getLicenseRequestFromMessage:n,getLicenseServerURLFromInitData:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),o=r(a),s=n(1),u=r(s),l="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",f="com.widevine.alpha",d="urn:uuid:"+l;i.__dashjs_factory_name="KeySystemWidevine",t["default"]=u["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){O=null,P=null,L=[],x=[],w=(0,o["default"])(A).getInstance(),N=(0,E["default"])(A).getInstance(),U=S()}function n(){O&&R();for(var e=0;e<x.length;e++)h(x[e]);M.trigger(_["default"].TEARDOWN_COMPLETE)}function r(){return P}function i(){for(var e=[],t=0;t<L.length;t++)e.push(L[t].initData);for(var t=0;t<x.length;t++)e.push(x[t].initData);return e}function a(e){var t=O;t||(t=document.createElement("video"));for(var n=!1,r=0;r<e.length;r++)for(var i=e[r].ks.systemString,a=e[r].configs,o=null,s=null,u=0;u<a.length;u++){var l=a[u].videoCapabilities;if(l&&0!==l.length){s=[];for(var f=0;f<l.length;f++)""!==t.canPlayType(l[f].contentType,i)&&s.push(l[f])}if(!(!o&&!s||o&&0===o.length||s&&0===s.length)){n=!0;var d=new p["default"](o,s),c=w.getKeySystemBySystemString(i);M.trigger(_["default"].KEY_SYSTEM_ACCESS_COMPLETE,{data:new v["default"](c,d)});break}}n||M.trigger(_["default"].KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})}function s(e){P=e.keySystem,M.trigger(_["default"].INTERNAL_KEY_SYSTEM_SELECTED)}function l(e){O!==e&&(O&&R(),O=e,O&&(O.addEventListener(C.keyerror,U),O.addEventListener(C.needkey,U),O.addEventListener(C.keymessage,U),
|
36 |
+
O.addEventListener(C.keyadded,U),M.trigger(_["default"].VIDEO_ELEMENT_SELECTED)))}function d(e){if(!P)throw new Error("Can not create sessions until you have selected a key system");if(F||0===x.length){var t={sessionID:null,initData:e,getSessionID:function(){return this.sessionID},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return L.push(t),O[C.generateKeyRequest](P.systemString,new Uint8Array(e)),t}throw new Error("Multiple sessions not allowed!")}function g(e,t){var n=e.sessionID;if(w.isClearKey(P))for(var r=0;r<t.keyPairs.length;r++)O[C.addKey](P.systemString,t.keyPairs[r].key,t.keyPairs[r].keyID,n);else O[C.addKey](P.systemString,new Uint8Array(t),e.initData,n)}function h(e){O[C.cancelKeyRequest](P.systemString,e.sessionID)}function m(){}function y(){}function T(){}function S(){return{handleEvent:function(e){var t=null;switch(e.type){case C.needkey:var n=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;M.trigger(_["default"].NEED_KEY,{key:new u["default"](n,"cenc")});break;case C.keyerror:if(t=I(x,e.sessionId),t||(t=I(L,e.sessionId)),t){var r="";switch(e.errorCode.code){case 1:r+="MEDIA_KEYERR_UNKNOWN - An unspecified error occurred. This value is used for errors that don't match any of the other codes.";break;case 2:r+="MEDIA_KEYERR_CLIENT - The Key System could not be installed or updated.";break;case 3:r+="MEDIA_KEYERR_SERVICE - The message passed into update indicated an error from the license service.";break;case 4:r+="MEDIA_KEYERR_OUTPUT - There is no available output device with the required characteristics for the content protection system.";break;case 5:r+="MEDIA_KEYERR_HARDWARECHANGE - A hardware configuration change caused a content protection error.";break;case 6:r+="MEDIA_KEYERR_DOMAIN - An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain."}r+=" System Code = "+e.systemCode,M.trigger(_["default"].KEY_ERROR,{data:new f["default"](t,r)})}else b("No session token found for key error");break;case C.keyadded:t=I(x,e.sessionId),t||(t=I(L,e.sessionId)),t?(b("DRM: Key added."),M.trigger(_["default"].KEY_ADDED,{data:t})):b("No session token found for key added");break;case C.keymessage:if(F=null!==e.sessionId&&void 0!==e.sessionId,F?(t=I(x,e.sessionId),!t&&L.length>0&&(t=L.shift(),x.push(t),t.sessionID=e.sessionId)):L.length>0&&(t=L.shift(),x.push(t),0!==L.length&&N.mediaKeyMessageError("Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!")),t){var i=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;t.keyMessage=i,M.trigger(_["default"].INTERNAL_KEY_MESSAGE,{data:new c["default"](t,i,e.defaultURL)})}else b("No session token found for key message")}}}}function I(e,t){if(t&&e){for(var n=e.length,r=0;r<n;r++)if(e[r].sessionID==t)return e[r];return null}return null}function R(){O.removeEventListener(C.keyerror,U),O.removeEventListener(C.needkey,U),O.removeEventListener(C.keymessage,U),O.removeEventListener(C.keyadded,U)}var A=this.context,M=e.eventBus,b=e.log,C=e.api,D=void 0,O=void 0,P=void 0,w=void 0,N=void 0,L=void 0,x=void 0,F=void 0,U=void 0;return D={getAllInitData:i,requestKeySystemAccess:a,getKeySystem:r,selectKeySystem:s,setMediaElement:l,createKeySession:d,updateKeySession:g,closeKeySession:h,setServerCertificate:m,loadKeySession:y,removeKeySession:T,reset:n},t(),D}Object.defineProperty(t,"__esModule",{value:!0});var a=n(32),o=r(a),s=n(45),u=r(s),l=n(41),f=r(l),d=n(42),c=r(d),g=n(44),p=r(g),h=n(43),v=r(h),m=n(2),_=r(m),y=n(11),E=r(y),T=n(1),S=r(T);i.__dashjs_factory_name="ProtectionModel_01b",t["default"]=S["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){M=null,b=null,C=null,D=[],P=(0,o["default"])(w).getInstance(),O=S()}function n(){var e,t=D.length;if(0!==t)for(var n=function(e){I(e),0===D.length&&(b?(b.removeEventListener("encrypted",O),b.setMediaKeys(null).then(function(){N.trigger(v["default"].TEARDOWN_COMPLETE)})):N.trigger(v["default"].TEARDOWN_COMPLETE))},r=0;r<t;r++)e=D[r],function(t){e.session.closed.then(function(){n(t)}),T(e)["catch"](function(){n(t)})}(e);else N.trigger(v["default"].TEARDOWN_COMPLETE)}function r(){return M}function i(){for(var e=[],t=0;t<D.length;t++)e.push(D[t].initData);return e}function a(e){E(e,0)}function s(e){e.mksa.createMediaKeys().then(function(t){M=e.keySystem,C=t,b&&b.setMediaKeys(C),N.trigger(v["default"].INTERNAL_KEY_SYSTEM_SELECTED)})["catch"](function(){N.trigger(v["default"].INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+e.keySystem.systemString+")! Could not create MediaKeys -- TODO"})})}function l(e){b!==e&&(b&&(b.removeEventListener("encrypted",O),b.setMediaKeys(null)),b=e,b&&(b.addEventListener("encrypted",O),C&&b.setMediaKeys(C)))}function d(e){if(!M||!C)throw new Error("Can not set server certificate until you have selected a key system");C.setServerCertificate(e).then(function(){L("DRM: License server certificate successfully updated."),N.trigger(v["default"].SERVER_CERTIFICATE_UPDATED)})["catch"](function(e){N.trigger(v["default"].SERVER_CERTIFICATE_UPDATED,{error:"Error updating server certificate -- "+e.name})})}function g(e,t){if(!M||!C)throw new Error("Can not create sessions until you have selected a key system");var n=C.createSession(t),r=R(n,e,t);n.generateRequest("cenc",e).then(function(){L("DRM: Session created. SessionID = "+r.getSessionID()),N.trigger(v["default"].KEY_SESSION_CREATED,{data:r})})["catch"](function(e){I(r),N.trigger(v["default"].KEY_SESSION_CREATED,{data:null,error:"Error generating key request -- "+e.name})})}function h(e,t){var n=e.session;P.isClearKey(M)&&(t=t.toJWK()),n.update(t)["catch"](function(t){N.trigger(v["default"].KEY_ERROR,{data:new f["default"](e,"Error sending update() message! "+t.name)})})}function m(e){if(!M||!C)throw new Error("Can not load sessions until you have selected a key system");var t=C.createSession();t.load(e).then(function(n){if(n){var r=R(t);L("DRM: Session created. SessionID = "+r.getSessionID()),N.trigger(v["default"].KEY_SESSION_CREATED,{data:r})}else N.trigger(v["default"].KEY_SESSION_CREATED,{data:null,error:"Could not load session! Invalid Session ID ("+e+")"})})["catch"](function(t){N.trigger(v["default"].KEY_SESSION_CREATED,{data:null,error:"Could not load session ("+e+")! "+t.name})})}function _(e){var t=e.session;t.remove().then(function(){L("DRM: Session removed. SessionID = "+e.getSessionID()),N.trigger(v["default"].KEY_SESSION_REMOVED,{data:e.getSessionID()})},function(t){N.trigger(v["default"].KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+e.getSessionID()+"). "+t.name})})}function y(e){T(e)["catch"](function(t){I(e),N.trigger(v["default"].KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+e.getSessionID()+") "+t.name})})}function E(e,t){!function(t){var n=e[t].ks,r=e[t].configs;navigator.requestMediaKeySystemAccess(n.systemString,r).then(function(e){var t="function"==typeof e.getConfiguration?e.getConfiguration():null,r=new p["default"](n,t);r.mksa=e,N.trigger(v["default"].KEY_SYSTEM_ACCESS_COMPLETE,{data:r})})["catch"](function(){++t<e.length?E(e,t):N.trigger(v["default"].KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied!"})})}(t)}function T(e){var t=e.session;return t.removeEventListener("keystatuseschange",e),t.removeEventListener("message",e),t.close()}function S(){return{handleEvent:function(e){switch(e.type){case"encrypted":if(e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;N.trigger(v["default"].NEED_KEY,{key:new u["default"](t,e.initDataType)})}}}}}function I(e){for(var t=0;t<D.length;t++)if(D[t]===e){D.splice(t,1);break}}function R(e,t,n){var r={session:e,initData:t,handleEvent:function(e){switch(e.type){case"keystatuseschange":N.trigger(v["default"].KEY_STATUSES_CHANGED,{data:this});break;case"message":var t=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;N.trigger(v["default"].INTERNAL_KEY_MESSAGE,{data:new c["default"](this,t,(void 0),e.messageType)})}},getSessionID:function(){return e.sessionId},getExpirationTime:function(){return e.expiration},getKeyStatuses:function(){return e.keyStatuses},getSessionType:function(){return n}};return e.addEventListener("keystatuseschange",r),e.addEventListener("message",r),e.closed.then(function(){I(r),L("DRM: Session closed. SessionID = "+r.getSessionID()),N.trigger(v["default"].KEY_SESSION_CLOSED,{data:r.getSessionID()})}),D.push(r),r}var A,M,b,C,D,O,P,w=this.context,N=e.eventBus,L=e.log;return A={getAllInitData:i,requestKeySystemAccess:a,getKeySystem:r,selectKeySystem:s,setMediaElement:l,setServerCertificate:d,createKeySession:g,updateKeySession:h,loadKeySession:m,removeKeySession:_,closeKeySession:y,reset:n},t(),A}Object.defineProperty(t,"__esModule",{value:!0});var a=n(32),o=r(a),s=n(45),u=r(s),l=n(41),f=r(l),d=n(42),c=r(d),g=n(43),p=r(g),h=n(2),v=r(h),m=n(1),_=r(m);i.__dashjs_factory_name="ProtectionModel_21Jan2015",t["default"]=_["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){D=null,O=null,P=null,w=null,N=[],x=(0,o["default"])(R).getInstance(),L=T()}function n(){try{for(var e=0;e<N.length;e++)h(N[e]);D&&D.removeEventListener(b.needkey,L),A.trigger(_["default"].TEARDOWN_COMPLETE)}catch(t){A.trigger(_["default"].TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+t.message})}}function r(){return O}function i(){for(var e=[],t=0;t<N.length;t++)e.push(N[t].initData);return e}function a(e){for(var t=!1,n=0;n<e.length;n++)for(var r=e[n].ks.systemString,i=e[n].configs,a=null,o=null,s=0;s<i.length;s++){var u=i[s].audioCapabilities,l=i[s].videoCapabilities;if(u&&0!==u.length){a=[];for(var f=0;f<u.length;f++)window[b.MediaKeys].isTypeSupported(r,u[f].contentType)&&a.push(u[f])}if(l&&0!==l.length){o=[];for(var d=0;d<l.length;d++)window[b.MediaKeys].isTypeSupported(r,l[d].contentType)&&o.push(l[d])}if(!(!a&&!o||a&&0===a.length||o&&0===o.length)){t=!0;var c=new p["default"](a,o),g=x.getKeySystemBySystemString(r);A.trigger(_["default"].KEY_SYSTEM_ACCESS_COMPLETE,{data:new v["default"](g,c)});break}}t||A.trigger(_["default"].KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})}function s(e){try{P=e.mediaKeys=new window[b.MediaKeys](e.keySystem.systemString),O=e.keySystem,w=e,D&&S(),A.trigger(_["default"].INTERNAL_KEY_SYSTEM_SELECTED)}catch(t){A.trigger(_["default"].INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+O.systemString+")! Could not create MediaKeys -- TODO"})}}function l(e){D!==e&&(D&&D.removeEventListener(b.needkey,L),D=e,D&&(D.addEventListener(b.needkey,L),P&&S()))}function d(e){if(!O||!P||!w)throw new Error("Can not create sessions until you have selected a key system");var t=null;if(null!==w.ksConfiguration.videoCapabilities&&w.ksConfiguration.videoCapabilities.length>0&&(t=w.ksConfiguration.videoCapabilities[0]),null===t&&null!==w.ksConfiguration.audioCapabilities&&w.ksConfiguration.audioCapabilities.length>0&&(t=w.ksConfiguration.audioCapabilities[0]),null===t)throw new Error("Can not create sessions for unknown content types.");var n=t.contentType,r=P.createSession(n,new Uint8Array(e)),i=I(r,e);r.addEventListener(b.error,i),r.addEventListener(b.message,i),r.addEventListener(b.ready,i),r.addEventListener(b.close,i),N.push(i),M("DRM: Session created. SessionID = "+i.getSessionID()),A.trigger(_["default"].KEY_SESSION_CREATED,{data:i})}function g(e,t){var n=e.session;x.isClearKey(O)?n.update(new Uint8Array(t.toJWK())):n.update(new Uint8Array(t))}function h(e){var t=e.session;t.removeEventListener(b.error,e),t.removeEventListener(b.message,e),t.removeEventListener(b.ready,e),t.removeEventListener(b.close,e);for(var n=0;n<N.length;n++)if(N[n]===e){N.splice(n,1);break}t[b.release]()}function m(){}function y(){}function E(){}function T(){return{handleEvent:function(e){switch(e.type){case b.needkey:if(e.initData){var t=ArrayBuffer.isView(e.initData)?e.initData.buffer:e.initData;A.trigger(_["default"].NEED_KEY,{key:new u["default"](t,"cenc")})}}}}}function S(){var e=null,t=function(){D.removeEventListener("loadedmetadata",e),D[b.setMediaKeys](P),A.trigger(_["default"].VIDEO_ELEMENT_SELECTED)};D.readyState>=1?t():(e=t.bind(this),D.addEventListener("loadedmetadata",e))}function I(e,t){return{session:e,initData:t,getSessionID:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(e){switch(e.type){case b.error:var t="KeyError";A.trigger(_["default"].KEY_ERROR,{data:new f["default"](this,t)});break;case b.message:var n=ArrayBuffer.isView(e.message)?e.message.buffer:e.message;A.trigger(_["default"].INTERNAL_KEY_MESSAGE,{data:new c["default"](this,n,e.destinationURL)});break;case b.ready:M("DRM: Key added."),A.trigger(_["default"].KEY_ADDED);break;case b.close:M("DRM: Session closed. SessionID = "+this.getSessionID()),A.trigger(_["default"].KEY_SESSION_CLOSED,{data:this.getSessionID()})}}}}var R=this.context,A=e.eventBus,M=e.log,b=e.api,C=void 0,D=void 0,O=void 0,P=void 0,w=void 0,N=void 0,L=void 0,x=void 0;return C={getAllInitData:i,requestKeySystemAccess:a,getKeySystem:r,selectKeySystem:s,setMediaElement:l,createKeySession:d,updateKeySession:g,closeKeySession:h,setServerCertificate:m,loadKeySession:y,removeKeySession:E,reset:n},t(),C}Object.defineProperty(t,"__esModule",{value:!0});var a=n(32),o=r(a),s=n(45),u=r(s),l=n(41),f=r(l),d=n(42),c=r(d),g=n(44),p=r(g),h=n(43),v=r(h),m=n(2),_=r(m),y=n(1),E=r(y);i.__dashjs_factory_name="ProtectionModel_3Feb2014",t["default"]=E["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){var n=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t)));e+="/?";for(var r=0;r<n.kids.length;r++)e+=n.kids[r]+"&";return e=e.substring(0,e.length-1)}function t(){return"GET"}function n(){return"json"}function r(e){if(!e.hasOwnProperty("keys"))return null;for(var t=[],n=0;n<e.keys.length;n++){var r=e.keys[n],i=r.kid.replace(/=/g,""),a=r.k.replace(/=/g,"");t.push(new o["default"](i,a))}return new u["default"](t)}function i(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var a=void 0;return a={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(65),o=r(a),s=n(64),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="ClearKey",t["default"]=f["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return e}function t(){return"POST"}function n(e){return a[e].responseType}function r(e,t){return a[t].getLicenseMessage(e)}function i(e,t){return a[t].getErrorResponse(e)}var a={"com.widevine.alpha":{responseType:"json",getLicenseMessage:function(e){return u["default"].decodeArray(e.license)},getErrorResponse:function(e){return e}},"com.microsoft.playready":{responseType:"arraybuffer",getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}}},o=void 0;return o={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(34),u=r(s);i.__dashjs_factory_name="DRMToday",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return e}function t(){return"POST"}function n(){return"arraybuffer"}function r(e){return e}function i(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var a=void 0;return a={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="PlayReady",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return e}function t(){return"POST"}function n(){return"arraybuffer"}function r(e){return e}function i(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var a=void 0;return a={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:i}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="Widevine",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(e,t){n(this,i),this.contentType=e,this.robustness=t};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){return u.mediaInfo.streamInfo}function n(){return u.mediaInfo}function r(){return u}function i(){return f}function a(){return u.mediaInfo.streamInfo.manifestInfo}function o(){return l}var s=void 0,u=e.streamProcessor.getCurrentRepresentationInfo(),l=e.streamProcessor,f=e.currentValue;return s={getStreamInfo:t,getMediaInfo:n,getTrackInfo:r,getCurrentValue:i,getManifestInfo:a,getStreamProcessor:o}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="RulesContext",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){p={},h={},v=[],m=(0,u["default"])(d).getInstance()}function t(e,t){p[e]=p[e]||{},p[e][t]=p[e][t]||{}}function n(e,t){v[e]=v[e]||[],v[e].push(t)}function r(e,r){var a=e.getMediaInfo(),u=a.type,c=e.getCurrentValue().request,_=(0,o["default"])(d).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name});if(!isNaN(c.index)){t(u,c.index);var y=p[u][c.index];if(null===y||null===c.firstByteDate||h.hasOwnProperty(y.id))return void r(_);if(void 0===y.firstByteTime&&(v[u]=[],y.firstByteTime=c.firstByteDate.getTime(),y.segmentDuration=c.duration,y.bytesTotal=c.bytesTotal,y.id=c.index),y.bytesLoaded=c.bytesLoaded,y.elapsedTime=(new Date).getTime()-y.firstByteTime,y.bytesLoaded>0&&y.elapsedTime>0&&n(u,Math.round(8*y.bytesLoaded/y.elapsedTime)),v[u].length>=f&&y.elapsedTime>l&&y.bytesLoaded<y.bytesTotal){var E=v[u].reduce(function(e,t){return e+t},0);if(y.measuredBandwidthInKbps=Math.round(E/v[u].length),y.estimatedTimeOfDownload=(8*y.bytesTotal/y.measuredBandwidthInKbps/1e3).toFixed(2),y.estimatedTimeOfDownload<y.segmentDuration*s||0===e.getTrackInfo().quality)return void r(_);if(!h.hasOwnProperty(y.id)){var T=e.getStreamProcessor().getABRController(),S=y.bytesTotal-y.bytesLoaded,I=T.getBitrateList(a),R=T.getQualityForBitrate(a,y.measuredBandwidthInKbps*m.getBandwidthSafetyFactor()),A=y.bytesTotal*I[R].bitrate/I[T.getQualityFor(u,a.streamInfo)].bitrate;S>A&&(_.value=R,_.priority=o["default"].STRONG,_.reason.throughput=y.measuredBandwidthInKbps,h[y.id]=y,g("AbandonRequestsRule ( ",u,"frag id",y.id,") is asking to abandon and switch to quality to ",R," measured bandwidth was",y.measuredBandwidthInKbps),delete p[u][y.id])}}else y.bytesLoaded===y.bytesTotal&&delete p[u][y.id]}r(_)}function a(){e()}var s=1.8,l=500,f=5,d=this.context,g=(0,c["default"])(d).getInstance().log,p=void 0,h=void 0,v=void 0,m=void 0,_={execute:r,reset:a};return e(),_}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(5),u=r(s),l=n(1),f=r(l),d=n(4),c=r(d);i.__dashjs_factory_name="AbandonRequestsRule",t["default"]=f["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){_={},y=(0,u["default"])(d).getInstance()}function n(e,t,n){_[e]={index:t,quality:n}}function r(e,t,n){var r=_[e];return!r||(t!==r.index||n<r.quality)}function a(e,t){var a=e.getMediaInfo(),s=a.type,u=v.getReadOnlyMetricsFor(s),c=e.getCurrentValue(),m=c.request,y=(0,o["default"])(d).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name});if(0===u.BolaState.length)return g("WARNING: executing BolaAbandonRule before initializing BolaRule"),_[s]=null,void t(y);var E=u.BolaState[0]._s,T=m.index,S=m.quality;if(isNaN(T)||0===S||!r(s,T,S)||!m.firstByteDate)return void t(y);var I=Date.now(),R=I-m.firstByteDate.getTime(),A=m.bytesLoaded,M=m.bytesTotal,b=M-A,C=m.duration,D=h.getCurrentBufferLevel(u)?h.getCurrentBufferLevel(u):0,O=D+E.virtualBuffer,P=8*A/(.001*R),w=E.bandwidthSafetyFactor*P,N=.001*(m.firstByteDate.getTime()-m.requestStartDate.getTime());N<.001*f&&(N=.001*f);var L=N+8*M/w,x="";p["default"].BOLA_DEBUG&&(x="index="+T+" quality="+S+" bytesLoaded/bytesTotal="+A+"/"+M+" bufferLevel="+D+" timeSince1stByte="+(R/1e3).toFixed(3)+" estThroughput="+(w/1e6).toFixed(3)+" latency="+N.toFixed(3));var F=M*E.bitrates[0]/E.bitrates[S],U=b-N*w/8;if(U<1&&(U=1),R<l||b<=F||D>E.bufferTarget||U<=F||L<=C)return void t(y);var B=O-N;B<0&&(B=0);for(var k=0;k+1<S&&M*E.bitrates[k+1]/E.bitrates[S]<U;)++k;var j=S;if(E.state===p["default"].BOLA_STATE_STARTUP){j=0;for(var K=0;K<=k&&(F=M*E.bitrates[K]/E.bitrates[S],!(8*F/C>w));++K)j=K}else for(var H=(E.Vp*(E.utilities[S]+E.gp)-B)/U,K=0;K<=k;++K){F=M*E.bitrates[K]/E.bitrates[S];var q=(E.Vp*(E.utilities[K]+E.gp)-B)/F;q>H&&(j=K,H=q)}var Y=E.rebufferSafetyFactor*P*(D-N)/8;if(j===S&&U>Y&&(j=k),j===S)return void t(y);for(;j>0&&(F=M*E.bitrates[j]/E.bitrates[S],!(F<=Y));)--j;E.lastQuality=j,v.updateBolaState(s,E),p["default"].BOLA_DEBUG&&g("BolaDebug "+s+" BolaAbandonRule abandon to "+j+" - "+x),n(s,T,S),y.value=j,y.priority=o["default"].STRONG,y.reason.state=E.state,y.reason.throughput=P,y.reason.bufferLevel=D,y.reason.bytesLoaded=m.bytesLoaded,y.reason.bytesTotal=m.bytesTotal,y.reason.elapsedTimeMs=R,t(y)}function s(){_={}}var l=500,f=200,d=this.context,g=(0,c["default"])(d).getInstance().log,h=e.dashMetrics,v=e.metricsModel,m=void 0,_=void 0,y=void 0;return m={execute:a,reset:s},t(),m}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(5),u=r(s),l=n(1),f=r(l),d=n(4),c=r(d),g=n(66),p=r(g);i.__dashjs_factory_name="BolaAbandonRule",t["default"]=f["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){g=0,h=(0,u["default"])(s).getInstance()}function n(e,t){var n=(new Date).getTime()/1e3,r=e.getMediaInfo(),a=e.getTrackInfo(),u=r.type,p=isNaN(a.fragmentDuration)?2:a.fragmentDuration/2,v=e.getCurrentValue(),m=e.getStreamProcessor(),_=m.getABRController(),y=d.getReadOnlyMetricsFor(u),E=c.getCurrentBufferLevel(y),T=y.BufferState.length>0?y.BufferState[y.BufferState.length-1]:null,S=!1,I=r.representationCount-1,R=(0,o["default"])(s).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name});return n-g<p||_.getAbandonmentStateFor(u)===f["default"].ABANDON_LOAD?void t(R):(null!==T&&E>T.target&&(S=E-T.target>h.getRichBufferThreshold(),S&&r.representationCount>1&&(R.value=I,R.priority=o["default"].STRONG,R.reason.bufferLevel=E,R.reason.bufferTarget=T.target)),R.value!==o["default"].NO_CHANGE&&R.value!==v&&l("BufferOccupancyRule requesting switch to index: ",R.value,"type: ",u," Priority: ",R.priority===o["default"].DEFAULT?"Default":R.priority===o["default"].STRONG?"Strong":"Weak"),void t(R))}function r(){g=0}var a=void 0,s=this.context,l=(0,p["default"])(s).getInstance().log,d=e.metricsModel,c=e.dashMetrics,g=void 0,h=void 0;return a={execute:n,reset:r},t(),a}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(5),u=r(s),l=n(10),f=r(l),d=n(1),c=r(d),g=n(4),p=r(g);i.__dashjs_factory_name="BufferOccupancyRule",t["default"]=c["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){m={},_=0,y=1e3,g.on(c["default"].PLAYBACK_SEEKING,a,h)}function n(e,t){var n=(new Date).getTime(),a=e.getMediaInfo().type,s=e.getCurrentValue(),f=p.getReadOnlyMetricsFor(a),c=f.BufferState.length>0?f.BufferState[f.BufferState.length-1]:null,g=(0,o["default"])(l).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name});return n-_<y||null===c?void t(g):(r(a,c.state),c.state===u["default"].BUFFER_EMPTY&&void 0!==m[a].firstBufferLoadedEvent&&(g.value=0,g.priority=o["default"].STRONG,g.reason.bufferState=c.state,g=(0,o["default"])(l).create(0,o["default"].STRONG)),g.value!==o["default"].NO_CHANGE&&g.value!==s&&d("InsufficientBufferRule requesting switch to index: ",g.value,"type: ",a," Priority: ",g.priority===o["default"].DEFAULT?"Default":g.priority===o["default"].STRONG?"Strong":"Weak"),_=n,void t(g))}function r(e,t){m[e]=m[e]||{},m[e].state=t,t!==u["default"].BUFFER_LOADED||m[e].firstBufferLoadedEvent||(m[e].firstBufferLoadedEvent=!0)}function a(){m={}}function s(){g.off(c["default"].PLAYBACK_SEEKING,a,h),m={},_=0}var l=this.context,d=(0,v["default"])(l).getInstance().log,g=(0,f["default"])(l).getInstance(),p=e.metricsModel,h=void 0,m=void 0,_=void 0,y=void 0;return h={execute:n,reset:s},t(),h}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(18),u=r(s),l=n(3),f=r(l),d=n(2),c=r(d),g=n(1),p=r(g),h=n(4),v=r(h);i.__dashjs_factory_name="InsufficientBufferRule",t["default"]=p["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){A=[],M={audio:{threshold:_,value:NaN},video:{threshold:v,value:NaN}},b=(0,c["default"])(T).getInstance()}function n(e,t){A[e]=A[e]||[],A[e].push(t)}function r(e,t){var n=Math.min(A[e].length,t?p:h),r=A[e].slice(n*-1,A[e].length);return r.length>1&&r.reduce(function(e,t){return(e*E<=t||e>=t*y)&&n++,t}),n=Math.min(A[e].length,n),A[e].slice(n*-1,A[e].length)}function a(e,t){var n=r(e,t),i=0;if(n.length>0){var a=n.reduce(function(e,t){return e+t},0);i=a/n.length}return A[e].length>=d&&A[e].shift(),i/1e3*b.getBandwidthSafetyFactor()}function s(e,t){var r=e.getMediaInfo(),s=r.type,l=e.getCurrentValue(),d=R.getReadOnlyMetricsFor(s),c=e.getStreamProcessor(),p=c.getABRController(),h=c.isDynamic(),v=I.getCurrentHttpRequest(d),m=d.BufferState.length>0?d.BufferState[d.BufferState.length-1]:null,_=(0,o["default"])(T).create(o["default"].NO_CHANGE,o["default"].WEAK,{name:i.__dashjs_factory_name});if(!d||!v||v.type!==g.HTTPRequest.MEDIA_SEGMENT_TYPE||!m)return void t(_);var y=void 0;if(v.trace&&v.trace.length){y=v._tfinish.getTime()-v.tresponse.getTime()+1;var E=v.trace.reduce(function(e,t){return e+t.b[0]},0),A=Math.round(8*E/(y/1e3));y<=M[s].threshold?M[s].value=A/1e3:(M[s].value=NaN,n(s,A))}var b=Math.round(isNaN(M[s].value)?a(s,h):M[s].value);if(p.setAverageThroughput(s,b),p.getAbandonmentStateFor(s)!==f["default"].ABANDON_LOAD){if(m.state===u["default"].BUFFER_LOADED||h){var C=p.getQualityForBitrate(r,b);c.getScheduleController().setTimeToLoadDelay(0),_.value=C,_.priority=o["default"].DEFAULT,_.reason.throughput=b}_.value!==o["default"].NO_CHANGE&&_.value!==l&&S("ThroughputRule requesting switch to index: ",_.value,"type: ",s," Priority: ",_.priority===o["default"].DEFAULT?"Default":_.priority===o["default"].STRONG?"Strong":"Weak","Average throughput",Math.round(b),"kbps")}t(_)}function l(){t()}var d=20,p=3,h=4,v=50,_=5,y=1.3,E=1.3,T=this.context,S=(0,m["default"])(T).getInstance().log,I=e.dashMetrics,R=e.metricsModel,A=void 0,M=void 0,b=void 0,C={execute:s,reset:l};return t(),C}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(18),u=r(s),l=n(10),f=r(l),d=n(5),c=r(d),g=n(7),p=n(1),h=r(p),v=n(4),m=r(v);i.__dashjs_factory_name="ThroughputRule",t["default"]=h["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){var t,n=0;return e&&e.some(function(e,t){return n=t,!r.contains(e.serviceLocation)})&&(t=e[n]),t}var n=void 0,r=e.blacklistController;return n={select:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="BasicSelector",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e){var t=[],n=function(e){return!t.length||!e.dvb_priority||t.indexOf(e.dvb_priority)===-1},r=function(e){return!a.contains(e.serviceLocation)||(e.dvb_priority&&t.push(e.dvb_priority),!1)};return e.filter(r).filter(n)}function n(e){var t,n,r=function(e,t){var n=e.dvb_priority-t.dvb_priority;return isNaN(n)?0:n},i=function(e,t,n){return!t||n[0].dvb_priority&&e.dvb_priority&&n[0].dvb_priority===e.dvb_priority},a=0,o=[],s=0;if(n=e.sort(r).filter(i),n.length)return n.length>1&&(n.forEach(function(e){a+=e.dvb_weight,o.push(a)}),t=Math.floor(Math.random()*(a-1)),o.every(function(e,n){return s=n,!(t<e)})),n[s]}function r(e){return e&&n(t(e))}var i=void 0,a=e.blacklistController;return i={select:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="DVBSelector",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){f=(0,o["default"])(i).getInstance(),d=(0,u["default"])(i).getInstance()}function n(e,t,n){var i=a.getCurrentBufferLevel(s.getReadOnlyMetricsFor(t));return i<r(e,t,n)}function r(e,t,n){var r=NaN,i=e.getCurrentRepresentationInfo();if("fragmentedText"===t)r=l.getAllTracksAreDisabled()?0:i.fragmentDuration;else if("audio"===t&&n){var o=a.getCurrentBufferLevel(s.getReadOnlyMetricsFor("video"));r=Math.floor(Math.max(o,i.fragmentDuration))}else{var u=i.mediaInfo.streamInfo,d=e.getABRController();if(d.isPlayingAtTopQuality(u)){var c=u.manifestInfo.duration>=f.getLongFormContentDurationThreshold();r=c?f.getBufferTimeAtTopQualityLongForm():f.getBufferTimeAtTopQuality()}else r=f.getStableBufferTime()}return r}var i=this.context,a=e.dashMetrics,s=e.metricsModel,l=e.textSourceBuffer,f=void 0,d=void 0,c={execute:n,getBufferTarget:r};return t(),c}Object.defineProperty(t,"__esModule",{value:!0});var a=n(5),o=r(a),s=n(9),u=r(s),l=n(1),f=r(l);i.__dashjs_factory_name="BufferLevelRule",t["default"]=f["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t){var n=e.getCurrentRepresentationInfo(),o=n.mediaInfo,u=o.type,l=e.getScheduleController(),f=l.getSeekTarget(),d=!isNaN(f),c=e.getBuffer(),g=d?f:i.getIndexHandlerTime(e);if(isNaN(g)||"fragmentedText"===u&&s.getAllTracksAreDisabled())return null;if(d&&l.setSeekTarget(NaN),c){var p=a.getBufferRange(e.getBuffer(),g);null!==p&&(r("Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end.",g," was changed to ",p.end),g=p.end)}var h=void 0;return t?(g=t.startTime+t.duration/2,h=i.getFragmentRequestForTime(e,n,g,{timeThreshold:0,ignoreIsFinished:!0})):(h=i.getFragmentRequestForTime(e,n,g,{keepIdx:!d}),h&&e.getFragmentModel().isFragmentLoaded(h)&&(h=i.getNextFragmentRequest(e,n)),h&&(i.setIndexHandlerTime(e,h.startTime+h.duration),h.delayLoadingTime=(new Date).getTime()+l.getTimeToLoadDelay(),l.setTimeToLoadDelay(0))),h}var n=this.context,r=(0,o["default"])(n).getInstance().log,i=e.adapter,a=e.sourceBufferController,s=e.textSourceBuffer,u={execute:t};return u}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),o=r(a),s=n(1),u=r(s);i.__dashjs_factory_name="NextFragmentRequestRule",
|
37 |
+
t["default"]=u["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){m=NaN,_=null,y=NaN,E=null,T=!1,S=NaN,I=o["default"].DEFAULT}function n(e,t){var n,r;if(R=t,M=e.getStreamProcessor(),A=M.getFragmentLoader(),E=e.getTrackInfo(),S=E.fragmentDuration,r=E.DVRWindow,m=r.end,E.useCalculatedLiveEdgeTime){var u=h.getExpectedLiveEdge();return h.setExpectedLiveEdge(m),void R((0,o["default"])(d).create(u,I))}_={start:Math.max(0,m-g),end:m+g},y=Math.floor((r.end-r.start)/2),n=p.getFragmentRequestForTime(M,E,m,{ignoreIsFinished:!0}),i(m,s,a,n)}function r(){m=NaN,_=null,y=NaN,E=null,T=!1,S=NaN,M=null,A=null}function i(e,t,n,r){var a;if(null===r)a=p.generateFragmentRequestForTime(M,E,e),i(e,t,n,a);else{var o=function s(r){c.off(f["default"].CHECK_FOR_EXISTENCE_COMPLETED,s,this),r.exists?t(r.request,e):n(r.request,e)};c.on(f["default"].CHECK_FOR_EXISTENCE_COMPLETED,o,this),A.checkForExistence(r)}}function a(e,t){var n,r,u;return T?void l(!1,t):(u=t-m,n=u>0?m-u:m+Math.abs(u)+y,void(n<_.start&&n>_.end?R((0,o["default"])(d).create(null,I)):(r=p.getFragmentRequestForTime(M,E,n,{ignoreIsFinished:!0}),i(n,s,a,r))))}function s(e,t){var n,r,a=e.startTime;if(!T){if(!E.fragmentDuration)return void R((0,o["default"])(d).create(a,I));if(T=!0,_.end=a+2*y,t===m)return r=t+S,n=p.getFragmentRequestForTime(M,E,r,{ignoreIsFinished:!0}),void i(r,function(){l(!0,r)},function(){R((0,o["default"])(d).create(r,I))},n)}l(!0,t)}function l(e,t){var n,r,u;e?_.start=t:_.end=t,n=Math.floor(_.end-_.start)<=S,n?R((0,o["default"])(d).create(e?t:t-S,I)):(u=(_.start+_.end)/2,r=p.getFragmentRequestForTime(M,E,u,{ignoreIsFinished:!0}),i(u,s,a,r))}var d=this.context,c=(0,u["default"])(d).getInstance(),p=e.adapter,h=e.timelineConverter,v=void 0,m=void 0,_=void 0,y=void 0,E=void 0,T=void 0,S=void 0,I=void 0,R=void 0,A=void 0,M=void 0;return v={execute:n,reset:r},t(),v}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(3),u=r(s),l=n(2),f=r(l),d=n(1),c=r(d),g=43200;i.__dashjs_factory_name="LiveEdgeBinarySearchRule",t["default"]=c["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(e,t){var n=e.getTrackInfo(),a=n.DVRWindow.end,s=o["default"].DEFAULT;if(n.useCalculatedLiveEdgeTime){var u=i.getExpectedLiveEdge();i.setExpectedLiveEdge(a),t((0,o["default"])(r).create(u,s))}else t((0,o["default"])(r).create(a,s))}var n=void 0,r=this.context,i=e.timelineConverter;return n={execute:t}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(8),o=r(a),s=n(1),u=r(s);i.__dashjs_factory_name="LiveEdgeWithTimeSynchronizationRule",t["default"]=u["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){d=(0,c["default"])(i).create({updateEventName:u["default"].SERVICE_LOCATION_BLACKLIST_CHANGED,loadFailedEventName:u["default"].FRAGMENT_LOADING_COMPLETED}),g=(0,v["default"])(i).create({blacklistController:d}),h=(0,p["default"])(i).create({blacklistController:d}),m=g}function t(e){m=s.getIsDVB(e)?h:g}function n(e){var t=e.baseUrls,n=e.selectedIdx;if(!isNaN(n))return t[n];var r=m.select(t);return r?(e.selectedIdx=t.indexOf(r),r):void a.trigger(u["default"].URL_RESOLUTION_FAILED,{error:new Error(y,E)})}function r(){d.reset()}var i=this.context,a=(0,o["default"])(i).getInstance(),s=(0,f["default"])(i).getInstance(),l=void 0,d=void 0,g=void 0,h=void 0,m=void 0;return l={chooseSelectorFromManifest:t,select:n,reset:r},e(),l}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o=r(a),s=n(2),u=r(s),l=n(12),f=r(l),d=n(105),c=r(d),g=n(153),p=r(g),h=n(152),v=r(h),m=n(1),_=r(m),y=1,E="Failed to resolve a valid URL";i.__dashjs_factory_name="BaseURLSelector";var T=_["default"].getClassFactory(i);T.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=y,T.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE=E,t["default"]=T,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){o=!1}function t(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t}function n(){return o}function r(e){o=e}function i(e,t){var n=e.canPlayType(t);return"probably"===n||"maybe"===n}var a=void 0,o=void 0;return a={supportsMediaSource:t,supportsEncryptedMedia:n,supportsCodec:i,setEncryptedMediaSupported:r},e(),a}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="Capabilities",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){function t(){return p}function n(e){p=e}function r(e,t){var n=!0,r=0,i=void 0,a=void 0;if(void 0===t&&(t=!1),e.tag>16777215?(g.getUint32(p)!==e.tag&&(n=!1),r=4):e.tag>65535?(i=g.getUint16(p),a=g.getUint8(p+2),256*i+a!==e.tag&&(n=!1),r=3):e.tag>255?(g.getUint16(p)!==e.tag&&(n=!1),r=2):(g.getUint8(p)!==e.tag&&(n=!1),r=1),!n&&e.required&&!t)throw new u["default"]("required tag not found");return n&&(p+=r),n}function i(e,t){var n=r(e,t);return n&&s(),n}function a(e){var t=void 0;return r(e),t=s(),c[e.parse](t)}function o(e,t){var n=r(e,t),i=void 0;return n&&(i=s(),p+=i),n}function s(e){var t=1,n=128,r=8,i=-1,a=0,o=g.getUint8(p),s=void 0;for(s=0;s<r;s+=1){if((o&n)===n){a=void 0===e?o&~n:o,i=s;break}n>>=1}for(s=0;s<i;s+=1,t+=1)a=a<<8|255&g.getUint8(p+t);return p+=t,a}function l(e){var t=void 0;switch(e){case 4:t=g.getFloat32(p),p+=4;break;case 8:t=g.getFloat64(p),p+=8}return t}function f(e){var t=0,n=void 0;for(n=0;n<e;n+=1)t<<=8,t|=255&g.getUint8(p+n);return p+=e,t}function d(){return p<g.byteLength}var c=void 0,g=new DataView(e.data),p=0;return c={getPos:t,setPos:n,consumeTag:r,consumeTagAndSize:i,parseTag:a,skipOverElement:o,getMatroskaCodedNum:s,getMatroskaFloat:l,getMatroskaUint:f,moreData:d}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(6),u=r(s);i.__dashjs_factory_name="EBMLParser",t["default"]=o["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){return e&&f&&f.boxes&&0!==f.boxes.length?u(f.fetch(e)):null}function t(e){for(var t,n=f.fetchAll(e),r=[],i=0,a=n.length;i<a;i++)t=u(n[i]),t&&r.push(t);return r}function n(e){f=e}function r(){if(!f||!f.boxes||!f.boxes.length)return null;var e=f.boxes[f.boxes.length-1].type,n=t(e);return n[n.length-1]}function i(){return f._cursor.offset}function a(){d={offset:"_offset",size:"size",type:"type"},c={references:"references",timescale:"timescale",earliest_presentation_time:"earliest_presentation_time",first_offset:"first_offset"},g={reference_type:"reference_type",referenced_size:"referenced_size",subsegment_duration:"subsegment_duration"},p={id:"id",value:"value",timescale:"timescale",scheme_id_uri:"scheme_id_uri",presentation_time_delta:"presentation_time_delta",event_duration:"event_duration",message_data:"message_data"},h={timescale:"timescale"},v={sequence_number:"sequence_number"},m={base_data_offset:"base_data_offset",sample_description_index:"sample_description_index",default_sample_duration:"default_sample_duration",default_sample_size:"default_sample_size",default_sample_flags:"default_sample_flags",flags:"flags"},_={version:"version",baseMediaDecodeTime:"baseMediaDecodeTime",flags:"flags"},y={sample_count:"sample_count",first_sample_flags:"first_sample_flags",data_offset:"data_offset",flags:"flags",samples:"samples"},E={sample_size:"sample_size",sample_duration:"sample_duration",sample_composition_time_offset:"sample_composition_time_offset"}}function s(e,t,n){for(var r in n)t[r]=e[n[r]]}function u(e){if(!e)return null;var t,n,r=new o["default"];switch(s(e,r,d),e.hasOwnProperty("_incomplete")&&(r.isComplete=!e._incomplete),r.type){case"sidx":if(s(e,r,c),r.references)for(t=0,n=r.references.length;t<n;t++)s(e.references[t],r.references[t],g);break;case"emsg":s(e,r,p);break;case"mdhd":s(e,r,h);break;case"mfhd":s(e,r,v);break;case"tfhd":s(e,r,m);break;case"tfdt":s(e,r,_);break;case"trun":if(s(e,r,y),r.samples)for(t=0,n=r.samples.length;t<n;t++)s(e.samples[t],r.samples[t],E)}return r}var l=void 0,f=void 0,d=void 0,c=void 0,g=void 0,p=void 0,h=void 0,v=void 0,m=void 0,_=void 0,y=void 0,E=void 0;return l={getBox:e,getBoxes:t,setData:n,getLastBox:r,getOffset:i},a(),l}Object.defineProperty(t,"__esModule",{value:!0});var a=n(168),o=r(a),s=n(1),u=r(s);i.__dashjs_factory_name="IsoFile",t["default"]=u["default"].getClassFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e,t){return JSON.stringify(e)===JSON.stringify(t)}var t=void 0;return t={areSimpleEquivalent:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a);i.__dashjs_factory_name="ObjectUtils",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(e){e&&e.videoModel&&(ne=e.videoModel)}function t(e){if(e.hasOwnProperty("begin")&&e.hasOwnProperty("end")){var t=h(e.begin),n=h(e.end);return[t,n]}return null}function n(){var e="cue_TTML_"+re;return re++,e}function r(e,t,n){function r(e,t){if(e.hasOwnProperty(t)){var n=e[t];a.indexOf(n)<0&&a.push(n)}}for(var i=[],a=[],o=[],s=0;s<e.length;s++){var u=e[s];r(u,"begin"),r(u,"end")}if(0===a.length)return o;if("undefined"!=typeof t&&"undefined"!=typeof n){for(var s=0;s<a.length;s++){var l=h(a[s]);t<l&&l<n&&i.push(l)}i.push(t),i.push(n)}else for(var s=0;s<a.length;s++)i.push(h(a[s]));i.sort(function(e,t){return e-t});for(var s=0;s<i.length-1;s++)o.push([i[s],i[s+1]]);return o}function i(e,t){return"undefined"!=typeof startInterval&&e<t&&(e=t),e}function o(e,t){return"undefined"!=typeof t&&e>t&&(e=t),e}function s(e,t,n){var r=h(e.begin),a=h(e.end);return r=i(r,t),a=o(a,n),"undefined"!=typeof t&&"undefined"!=typeof n&&(a<t||r>n)?(B("TTML: Cue "+r+"-"+a+" outside interval "+t+"-"+n),null):[r,a]}function u(e,n){var r=!0;if(e.hasOwnProperty("span")){var i=t(e.span);null!==i&&(r=i[0]<n[1]&&i[1]>n[0])}return r}function f(e,i,a){var o=void 0,f=void 0,d=void 0,c=void 0,g=void 0,p="",h=new l["default"]([],"",(!1));if(K=h.xml_str2json(e),!K)throw new Error("TTML document could not be parsed");if(ne.getTTMLRenderingDiv()&&(g="html"),o=K.tt,!o)throw new Error("TTML document lacks tt element");var _=v(o,"http://www.w3.org/ns/ttml");if(_&&m(o,_),c=o["tts:extent"],f=o.head,!f)throw new Error("TTML document lacks head element");if(f.layout&&(q=f.layout.region_asArray),f.styling&&(H=f.styling.style_asArray),d=o.body,!d)throw new Error("TTML document lacks body element");var y=P(),I=ne.getElement().clientWidth,R=ne.getElement().clientHeight,A=[I/y[0],R/y[1]];W["font-size"]=A[1]+"px;";var M=[];if(q)for(var O=0;O<q.length;O++)M.push(C(JSON.parse(JSON.stringify(q[O])),A));var F=v(K.tt,"http://www.w3.org/ns/ttml#parameter");o.hasOwnProperty(F+":frameRate")&&(o.frameRate=parseInt(o[F+":frameRate"],10));for(var U=[],k=o.body_asArray[0].__children,j=0;j<k.length;j++){var z=k[j].div,Q=null;if(null===(Q=t(z))){var X=z.p_asArray;if(null===Q&&(!X||0===X.length))return p="TTML has div that contains no timing and no paragraphs.",B(p),U;for(var Z=0;Z<X.length;Z++){var J=X[Z],$=J.span_asArray,ee=[];if(J.hasOwnProperty("begin")&&J.hasOwnProperty("end")){var te=s(J,i,a);null!==te&&ee.push(te)}else ee=r($,i,a);if(0!==ee.length)for(var re=J.__children,ie=0;ie<ee.length;ie++){for(var ae=ee[ie],oe=[],se=0;se<re.length;se++){var ue=re[se];u(ue,ae)&&oe.push(ue)}if(0!==oe.length)if("html"===g){G={},V={},Y={};var le=L(J,z,A),fe=x(J,A),de=fe[1];fe=fe[0];var ce=document.createElement("div");ce.className=de;var ge=N(oe,A);ge.className="cueDirUniWrapper",E("unicode-bidi",fe)&&(ge.style.cssText+=T("unicode-bidi",fe),S("unicode-bidi",fe)),E("direction",fe)&&(ge.style.cssText+=T("direction",fe),S("direction",fe)),E("padding-left",fe)&&E("padding-right",fe)&&(ge.innerHTML=w(ge,fe)),E("padding-left",fe)&&E("padding-right",fe)&&(S("padding-left",fe),S("padding-right",fe));var pe="";if(E("regionID",le)){var he=T("regionID",le);pe=he.slice(he.indexOf(":")+1,he.length-1)}fe&&(ce.style.cssText=fe.join(" ")+"display:flex;"),le&&(le=le.join(" ")),ce.appendChild(ge);var ve=document.createElement("div");ve.appendChild(ce),ve.id=n(),ve.style.cssText="position: absolute; margin: 0; display: flex; box-sizing: border-box; pointer-events: none;"+le,0===Object.keys(Y).length&&(Y.defaultFontSize="100"),U.push({start:ae[0],end:ae[1],type:"html",cueHTMLElement:ve,regions:M,regionID:pe,cueID:ve.id,videoHeight:R,videoWidth:I,cellResolution:y,fontSize:Y||{defaultFontSize:"100"},lineHeight:G,linePadding:V})}else{var me="",_e=oe;_e.length&&_e.forEach(function(e){if(e.hasOwnProperty("span")){var t=e.span.__children;t.forEach(function(e){t.hasOwnProperty("metadata")||(e.hasOwnProperty("#text")?me+=e["#text"].replace(/[\r\n]+/gm," ").trim():"br"in e&&(me+="\n"))})}else me+=e.hasOwnProperty("br")?"\n":e["#text"].replace(/[\r\n]+/gm," ").trim()}),U.push({start:ae[0],end:ae[1],data:me,type:"text"})}}else p="TTML: Empty paragraph"}}else{var ye=void 0;if(z.region){var Ee=D(q,z.region);ye=b(Ee,c)}ye||(ye=b(z,c));var Te=o.head.metadata.image_asArray;if(void 0!==z["smpte:backgroundImage"])for(var Se=0;Se<Te.length;Se++)"#"+Te[Se]["xml:id"]===z["smpte:backgroundImage"]&&U.push({start:Q[0],end:Q[1],id:n(),data:"data:image/"+Te[Se].imagetype.toLowerCase()+";base64, "+Te[Se].__text,type:"image",layout:ye})}}if(""!==p&&B(p),U.length>0)return U;throw new Error(p)}function p(){j=/^([0-9][0-9]+):([0-5][0-9]):([0-5][0-9])|(60)(\.([0-9])+)?$/,Y={},G={},V={},z={top:"auto;",left:"auto;",width:"90%;",height:"10%;","align-items":"flex-start;",overflow:"visible;","-ms-writing-mode":"lr-tb, horizontal-tb;","-webkit-writing-mode":"horizontal-tb;","-moz-writing-mode":"horizontal-tb;","writing-mode":"horizontal-tb;"},W={color:"rgb(255,255,255);",direction:"ltr;","font-family":"monospace, sans-serif;","font-style":"normal;","line-height":"normal;","font-weight":"normal;","text-align":"start;","justify-content":"flex-start;","text-decoration":"none;","unicode-bidi":"normal;","white-space":"normal;",width:"100%;"},Q={monospace:"font-family: monospace;",sansSerif:"font-family: sans-serif;",serif:"font-family: serif;",monospaceSansSerif:"font-family: monospace, sans-serif;",monospaceSerif:"font-family: monospace, serif;",proportionalSansSerif:"font-family: Arial;",proportionalSerif:"font-family: Times New Roman;","default":"font-family: monospace, sans-serif;"},X={right:["justify-content: flex-end;","text-align: right;"],start:["justify-content: flex-start;","text-align: start;"],center:["justify-content: center;","text-align: center;"],end:["justify-content: flex-end;","text-align: end;"],left:["justify-content: flex-start;","text-align: left;"]},Z={start:"text-align: start;",center:"text-align: center;",end:"text-align: end;",auto:""},J={wrap:"white-space: normal;",noWrap:"white-space: nowrap;"},$={normal:"unicode-bidi: normal;",embed:"unicode-bidi: embed;",bidiOverride:"unicode-bidi: bidi-override;"},ee={before:"align-items: flex-start;",center:"align-items: center;",after:"align-items: flex-end;"},te={lrtb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rltb:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;unicode-bidi: bidi-override;",tbrl:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;",tblr:"-webkit-writing-mode: vertical-lr;writing-mode: vertical-lr;-webkit-text-orientation: upright;text-orientation: upright;",lr:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;",rl:"-webkit-writing-mode: horizontal-tb;writing-mode: horizontal-tb;direction: rtl;",tb:"-webkit-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-text-orientation: upright;text-orientation: upright;"}}function h(e){var t,n,r,i=j.test(e);if(!i)return NaN;if(t=e.split(":"),n=parseFloat(t[0])*c+parseFloat(t[1])*g+parseFloat(t[2]),t[3]){if(r=K.tt.frameRate,!r||isNaN(r))return NaN;n+=parseFloat(t[3])/r}return n}function v(e,t){var n=Object.keys(e).filter(function(n){return("xmlns"===n.split(":")[0]||"xmlns"===n.split(":")[1])&&e[n]===t}).map(function(e){return e.split(":")[2]||e.split(":")[1]});return 1!=n.length?null:n[0]}function m(e,t){for(var n in e)if(e.hasOwnProperty(n)){if(("object"===a(e[n])||e[n]instanceof Object)&&!Array.isArray(e[n]))m(e[n],t);else if(Array.isArray(e[n]))for(var r=0;r<e[n].length;r++)m(e[n][r],t);var i=n.slice(n.indexOf(t)+t.length+1);e[i]=e[n],delete e[n]}}function _(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function y(e){var t=e.slice(1),n=t.match(/.{2}/g),r=parseFloat(parseInt(parseInt(n[3],16)/255*1e3,10)/1e3),i=n.slice(0,3).map(function(e){return parseInt(e,16)});return"rgba("+i.join(",")+","+r+");"}function E(e,t){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>-1)return!0;return!1}function T(e,t){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>-1)return t[n];return null}function S(e,t){t.splice(t.indexOf(T(e,t)),1)}function I(e,t){for(var n=0;n<e.length;n++)for(var r=0;r<t.length;r++)e[n]&&e[n].split(":")[0].indexOf(t[r].split(":")[0])>-1&&e.splice(n,1);return e.concat(t)}function R(e,t,n){var r=[];for(var i in e)if(e.hasOwnProperty(i)){var a=i.replace("ebutts:","");a=a.replace("xml:",""),a=a.replace("tts:",""),a=_(a),e[a]=e[i],delete e[i]}if("line-padding"in e){var o=parseFloat(e["line-padding"].slice(e["line-padding"].indexOf(":")+1,e["line-padding"].indexOf("c")));"id"in e&&(V[e.id]=o);var s=o*t[0]+"px;";r.push("padding-left:"+s),r.push("padding-right:"+s)}if("font-size"in e){var u=parseFloat(e["font-size"].slice(e["font-size"].indexOf(":")+1,e["font-size"].indexOf("%")));"id"in e&&(Y[e.id]=u);var l=u/100*t[1]+"px;";r.push("font-size:"+l)}if("line-height"in e)if("normal"===e["line-height"])r.push("line-height: normal;");else{var f=parseFloat(e["line-height"].slice(e["line-height"].indexOf(":")+1,e["line-height"].indexOf("%")));"id"in e&&(G[e.id]=f);var d=f/100*t[1]+"px;";r.push("line-height:"+d)}"font-family"in e&&(e["font-family"]in Q?r.push(Q[e["font-family"]]):r.push("font-family:"+e["font-family"]+";")),"text-align"in e&&e["text-align"]in X&&(r.push(X[e["text-align"]][0]),r.push(X[e["text-align"]][1])),"multi-row-align"in e&&(E("text-align",r)&&"auto"!=e["multi-row-align"]&&S("text-align",r),e["multi-row-align"]in Z&&r.push(Z[e["multi-row-align"]]));var c;return"background-color"in e&&(e["background-color"].indexOf("#")>-1&&e["background-color"].length-1===8?(c=y(e["background-color"]),r.push("background-color: "+c)):r.push("background-color:"+e["background-color"]+";")),"color"in e&&(e.color.indexOf("#")>-1&&e.color.length-1===8?(c=y(e.color),r.push("color: "+c)):r.push("color:"+e.color+";")),"wrap-option"in e&&(e["wrap-option"]in J?r.push(J[e["wrap-option"]]):r.push("white-space:"+e["wrap-option"])),"unicode-bidi"in e&&(e["unicode-bidi"]in $?r.push($[e["unicode-bidi"]]):r.push("unicode-bidi:"+e["unicode-bidi"])),"font-style"in e&&r.push("font-style:"+e["font-style"]+";"),"font-weight"in e&&r.push("font-weight:"+e["font-weight"]+";"),"direction"in e&&r.push("direction:"+e.direction+";"),"text-decoration"in e&&r.push("text-decoration:"+e["text-decoration"]+";"),n&&(r=r.concat(C(e,t))),K.tt.hasOwnProperty("xml:space")&&"preserve"===K.tt["xml:space"]&&r.push("white-space: pre;"),r}function A(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r["xml:id"]===t||r.id===t)return r}return null}function M(e,t,n){var r=[],i=e.match(/\S+/g);return i.forEach(function(e){var i=A(H,e);if(i){var a=R(JSON.parse(JSON.stringify(i)),t,n);r=r.concat(a)}}),r}function b(e,t){var n=/([\d\.]+)(%|px)\s+([\d\.]+)(%|px)/;if("tts:extent"in e&&"tts:origin"in e){var r=n.exec(e["tts:extent"]),i=n.exec(e["tts:origin"]);if(null===r||null===i)return B("Bad extent or origin: "+e["tts:extent"]+" "+e["tts:origin"]),null;var a=parseFloat(r[1]),o=parseFloat(r[3]),s=parseFloat(i[1]),u=parseFloat(i[3]);if(t){var l=n.exec(t);if(null===l||"px"!==l[2]||"px"!==l[4])return B("Bad tt.extent: "+t),null;var f=parseFloat(l[1]),d=parseFloat(l[3]);"px"===r[2]&&(a=a/f*100),"px"===r[4]&&(o=o/d*100),"px"===i[2]&&(s=s/f*100),"px"===i[4]&&(u=u/d*100)}return{left:s,top:u,width:a,height:o}}return null}function C(e,t){var n=[];for(var r in e){var i=r.replace("tts:","");i=i.replace("xml:",""),i=_(i),e[i]=e[r],i!==r&&delete e[r]}if("extent"in e){var a=e.extent.split(/\s/);n.push("width: "+a[0]+";"),n.push("height: "+a[1]+";")}if("origin"in e){var o=e.origin.split(/\s/);n.push("left: "+o[0]+";"),n.push("top: "+o[1]+";")}if("display-align"in e&&n.push(ee[e["display-align"]]),"writing-mode"in e&&n.push(te[e["writing-mode"]]),"style"in e){var s=M(e.style,t,!0);n=n.concat(s)}return"padding"in e&&n.push("padding:"+e.padding+";"),"overflow"in e&&n.push("overflow:"+e.overflow+";"),"show-background"in e&&n.push("show-background:"+e["show-background"]+";"),"id"in e&&n.push("regionID:"+e.id+";"),n}function D(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r["xml:id"]===t||r.id===t)return r}return null}function O(e,t){var n=[],r=e.match(/\S+/g);return r.forEach(function(e){var r=D(q,e);if(r){var i=C(JSON.parse(JSON.stringify(r)),t);n=n.concat(i)}}),n}function P(){var e=[32,15];return K.tt.hasOwnProperty("ttp:cellResolution")?K.tt["ttp:cellResolution"].split(" ").map(parseFloat):e}function w(e,t){for(var n=T("padding-left",t),r=T("padding-right",t),i=n.concat(" "+r+" "),a="",o="",s="",u=Array.prototype.slice.call(e.children),l=e.getElementsByClassName("lineBreak")[0],f=u.indexOf(l),d=[];f!=-1;)d.push(f),f=u.indexOf(l,f+1);var c="</span>",g="<br>",p='<span class="spanPadding" style="-webkit-box-decoration-break: clone; box-decoration-break: clone; ';if(d.length)d.forEach(function(e,t){if(0===t){for(var n="",r=0;r<e;r++)a+=u[r].outerHTML,0===r&&(n=i.concat(u[r].style.cssText));a=p+n+'">'+a}for(var l="",f=e+1;f<u.length;f++)o+=u[f].outerHTML,f===u.length-1&&(l+=i.concat(u[f].style.cssText));o=p+l+'">'+o,a&&o&&t===d.length-1?s+=a+c+g+o+c:a&&o&&t!==d.length-1?s+=a+c+g+o+c+g:a&&!o?s+=a+c:!a&&o&&t===d.length-1?s+=o+c:!a&&o&&t!==d.length-1&&(s+=o+c+g)});else{for(var h="",v=0;v<u.length;v++)h+=u[v].style.cssText;s=p+i+h+'">'+e.innerHTML+c}return s}function N(e,t){var n=document.createElement("div");return e.forEach(function(e){if(!e.hasOwnProperty("metadata"))if(e.hasOwnProperty("span")){var r=e.span.__children,i=document.createElement("span");if(e.span.hasOwnProperty("style")){var a=M(e.span.style,t);i.className="spanPadding "+e.span.style,i.style.cssText=a.join(" ")}r.forEach(function(e){if(!r.hasOwnProperty("metadata"))if(e.hasOwnProperty("#text")){var t=document.createTextNode(e["#text"]);i.appendChild(t)}else if("br"in e){i.hasChildNodes()&&n.appendChild(i);var a=document.createElement("br");a.className="lineBreak",n.appendChild(a);var o=document.createElement("span");o.className=i.className,o.style.cssText=i.style.cssText,i=o}}),n.appendChild(i)}else if(e.hasOwnProperty("br")){var o=document.createElement("br");o.className="lineBreak",n.appendChild(o)}else if(e.hasOwnProperty("#text")){var s=document.createElement("span");s.textContent=e["#text"],n.appendChild(s)}}),n}function L(e,t,n){var r,i,a=[],o=e.region,s=t.region;return s&&(r=O(s,n)),o?(i=a.concat(O(o,n)),a=r?I(r,i):i):r&&(a=r),F(a,z),a}function x(e,t){var n,r,i,a=[],o=e.style,s=K.tt.body.style,u=K.tt.body.div.style,l="";return s&&(n=M(s,t),l="paragraph "+s),u&&(r=M(u,t),n?(r=I(n,r),l+=" "+u):l="paragraph "+u),o?(i=M(o,t),n&&r?(a=I(r,i),l+=" "+o):n?(a=I(n,i),l+=" "+o):r?(a=I(r,i),l+=" "+o):(a=i,l="paragraph "+o)):n&&!r?a=n:!n&&r&&(a=r),F(a,W),[a,l]}function F(e,t){for(var n in t)t.hasOwnProperty(n)&&(E(n,e)||e.push(n+":"+t[n]))}var U=this.context,B=(0,d["default"])(U).getInstance().log,k=void 0,j=void 0,K=void 0,H=void 0,q=void 0,Y=void 0,G=void 0,V=void 0,z=void 0,W=void 0,Q=void 0,X=void 0,Z=void 0,J=void 0,$=void 0,ee=void 0,te=void 0,ne=void 0,re=0;return k={parse:f,setConfig:e},p(),k}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),s=r(o),u=n(35),l=r(u),f=n(4),d=r(f),c=3600,g=60;i.__dashjs_factory_name="TTMLParser",t["default"]=s["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){function e(){f=/(?:\r\n|\r|\n)/gm,d=/-->/,c=/(^[\s]+|[\s]+$)/g,g=/\s\b/g}function t(e){var t,i,o=[];e=e.split(f),t=e.length,i=-1;for(var u=0;u<t;u++){var l=e[u];if(l.length>0&&"WEBVTT"!==l&&l.match(d)){var g=r(l),p=g.cuePoints,h=g.styles,v=a(e,u+1),m=n(p[0].replace(c,"")),_=n(p[1].replace(c,""));!isNaN(m)&&!isNaN(_)&&m>=i&&_>m?""!==v?(i=m,o.push({start:m,end:_,data:v,styles:h})):s("Skipping cue due to empty/malformed cue text"):s("Skipping cue due to incorrect cue timing")}}return o}function n(e){var t=e.split(":"),n=t.length-1;return e=60*parseInt(t[n-1],10)+parseFloat(t[n]),2===n&&(e+=3600*parseInt(t[0],10)),e}function r(e){var t=e.split(d),n=t[1].split(g);return n.shift(),t[1]=n[0],n.shift(),{cuePoints:t,styles:i(n)}}function i(e){var t={};return e.forEach(function(e){if(e.split(/:/).length>1){var n=e.split(/:/)[1];n&&n.search(/%/)!=-1&&(n=parseInt(n.replace(/%/,""),10)),(e.match(/align/)||e.match(/A/))&&(t.align=n),(e.match(/line/)||e.match(/L/))&&(t.line=n),(e.match(/position/)||e.match(/P/))&&(t.position=n),(e.match(/size/)||e.match(/S/))&&(t.size=n)}}),t}function a(e,t){for(var n,r=t,i="",a="";""!==e[r]&&r<e.length;)r++;if(n=r-t,n>1)for(var o=0;o<n;o++){if(a=e[t+o],a.match(d)){i="";break}i+=a,o!==n-1&&(i+="\n")}else a=e[t],a.match(d)||(i=a);return decodeURI(i)}var o=this.context,s=(0,u["default"])(o).getInstance().log,l=void 0,f=void 0,d=void 0,c=void 0,g=void 0;return l={parse:t},e(),l}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),o=r(a),s=n(4),u=r(s);i.__dashjs_factory_name="VTTParser",t["default"]=o["default"].getSingletonFactory(i),e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.qualityIndex=NaN};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,s=l=void 0}},u=n(23),l=r(u),f=function(e){function t(e){i(this,t),s(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.url=e||null,this.checkForExistenceOnly=!0}return a(t,e),t}(l["default"]);t["default"]=f,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.offset=NaN,this.type=null,this.size=NaN,this.isComplete=!0};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[],this.BolaState=[]};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0,this.isFirst=!0};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.video=null,this.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this._s=void 0};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.t=null,this.level=null};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";
|
38 |
+
function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=r(a),s=function u(){i(this,u),this.target=null,this.state=o["default"].BUFFER_EMPTY};t["default"]=s,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.time=null,this.range=null,this.manifestInfo=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.time=null,this.droppedFrames=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.trackInfo=[]},i=function s(){n(this,s),this.id=null,this.index=null,this.start=null,this.duration=null},a=function u(){n(this,u),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null};t.ManifestUpdate=r,t.ManifestUpdateStreamInfo=i,t.ManifestUpdateTrackInfo=a},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.t=null,this.mt=null,this.to=null,this.lto=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.loadingRequests=[],this.executedRequests=[]};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function i(){n(this,i),this.tcpid=null,this.dest=null,this.topen=null,this.tclose=null,this.tconnect=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";var n=t.decimalAdjust=function(e,t,n){return"undefined"==typeof n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!==0?NaN:(t=t.toString().split("e"),t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]+n:n))))};e.exports={round10:function(e,t){return n("round",e,t)},floor10:function(e,t){return n("floor",e,t)},ceil10:function(e,t){return n("ceil",e,t)}},e.exports.polyfill=function(){Math.round10||(Math.round10=e.exports.round10),Math.floor10||(Math.floor10=e.exports.floor10),Math.ceil10||(Math.ceil10=e.exports.ceil10)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){var r=n(72);r(flowplayer)}]);
|
39 |
+
/*@
|
40 |
+
@end
|
41 |
+
@*/
|
flowplayer-beta/flowplayer.hlsjs.min.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
|
3 |
+
hlsjs engine plugin for Flowplayer HTML5
|
4 |
+
|
5 |
+
Copyright (c) 2015-2017, Flowplayer Drive Oy
|
6 |
+
|
7 |
+
Released under the MIT License:
|
8 |
+
http://www.opensource.org/licenses/mit-license.php
|
9 |
+
|
10 |
+
Includes hls.js
|
11 |
+
Copyright (c) 2017 Dailymotion (http://www.dailymotion.com)
|
12 |
+
https://github.com/video-dev/hls.js/blob/master/LICENSE
|
13 |
+
|
14 |
+
Requires Flowplayer HTML5 version 6 or greater
|
15 |
+
v1.1.1-42-g4295710
|
16 |
+
|
17 |
+
*/
|
18 |
+
/*@cc_on @*/
|
19 |
+
/*@
|
20 |
+
@if (@_jscript_version > 10)
|
21 |
+
@*/
|
22 |
+
!function(t){function e(i){if(r[i])return r[i].exports;var a=r[i]={exports:{},id:i,loaded:!1};return t[i].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(5)},function(t,e,r){!function(){"use strict";var e=function(t,e){var i,a="hlsjs",n=e.common,o=e.extend,s=e.support,l=s.browser,u=e.version,d=0===u.indexOf("6."),c=window,f=c.MediaSource||c.WebKitMediaSource,h=c.performance,p=function(t){return t.toLowerCase().indexOf("mpegurl")>-1},g=function(t){var e=t.clip&&t.clip.hlsQualities||t.hlsQualities;return s.inlineVideo&&(e===!0||e&&e.length)},v=function(t){var e=n.findDirect("video",t)[0]||n.find(".fp-player>video",t)[0];e&&(n.find("source",e).forEach(function(t){t.removeAttribute("src")}),e.removeAttribute("src"),e.load(),n.removeNode(e))},m=r(3),y=new m.TextDecoder("utf-8"),b=function(t){var e="";try{e=y.decode(t)}catch(r){try{y=new m.TextDecoder("utf-16be"),e=y.decode(t)}catch(r){try{y=new m.TextDecoder("utf-16le"),e=y.decode(t)}catch(t){}}}return e},E=function(t,e,r){e.title=e.title||r+"";var i={time:e.startTime,subtitle:e,visible:!1};t.subtitles.push(e),t.addCuepoint(i),t.addCuepoint({time:e.endTime,subtitleEnd:e.title,visible:!1}),0!==e.startTime||t.video.time||t.splash||t.trigger("cuepoint",[t,i]),t.splash&&t.one("ready."+a,function(){t.trigger("cuepoint",[t,i])})},T=function(r,l){var c,m,y,T,R,S,A,w,_,L,k,D=e.bean,I="is-seeking",O="is-poster",C=function(t,e,i){if(t.debug&&console.log("recovery."+a,"<-",e),n.removeClass(l,"is-paused"),n.addClass(l,I),i)m.startLoad();else{var o=h.now();!T||o-T>3e3?(T=h.now(),m.recoverMediaError()):(!R||o-R>3e3)&&(R=h.now(),m.swapAudioCodec(),m.recoverMediaError())}y>0&&(y-=1),D.one(c,"seeked."+a,function(){c.paused&&(n.removeClass(l,O),r.poster=!1,c.play()),n.removeClass(l,I)})},x=function(t,e,i){var a={code:t};return t>2&&(a.video=o(r.video,{src:e,url:i||e})),a},P=function(){D.one(c,"timeupdate."+a,function(){n.addClass(l,O),r.poster=!0})},F=function(){d&&r.poster&&D.one(c,"timeupdate."+a,function(){n.removeClass(l,O),r.poster=!1})},N=0,M=function(t){if(w&&w.length>1){var e=m.audioTracks,r=e.filter(function(r){var i=m.levels[t].attrs;return r.autoselect&&i&&r.groupId===i.AUDIO&&r.name===e[m.audioTrack].name}),i=r.length&&r[0].id;void 0!==i&&i!==m.audioTrack&&(m.audioTrack=i)}},U=function(t){n.find(".fp-audio",l)[0].innerHTML=t.lang||t.name,n.find(".fp-audio-menu a",l).forEach(function(e){var r=e.getAttribute("data-audio"),i=r===t.name;n.toggleClass(e,"fp-selected",i),n.toggleClass(e,"fp-color",i)})},B=function(){n.find(".fp-audio-menu",l).forEach(n.removeNode),n.find(".fp-audio",l).forEach(n.removeNode)},G=function(t){var e=n.find(".fp-subtitle-menu",l)[0];n.toggleClass(n.find("a.fp-selected",e)[0],"fp-selected"),n.toggleClass(n.find('a[data-subtitle-index="'+t+'"]',e)[0],"fp-selected")},j=function(t,e){var i=b(t.payload),a=t.frag.trackId;i&&(k[a]||(k[a]=[]),i=e.subtitleParser(i),i.forEach(function(t){if(t.text&&(k[a].push(t),r.ready&&(E(r,t,k[a].length),r.live))){var e=r.video.seekOffset;k[a]=k[a].filter(function(t){return t.endTime>=e}),r.subtitles=r.subtitles.filter(function(t){return t.endTime>=e}),r.cuepoints.forEach(function(t){t.subtitle&&t.time<e&&r.removeCuepoint(t)})}}))},K=function(){[].forEach.call(c.textTracks,function(t){"subtitles"===t.kind&&(t.mode="hidden")})},H=function(t,e){var i=t.subtitleTracks;e.subtitles&&i.length&&s.inlineVideo&&!d&&(i=i.filter(function(t){return t.groupId===i[0].groupId}),r.video.subtitles=i.map(function(t){var e={kind:"subtitles",id:t.id,srclang:t.lang,label:t.name,default:t.default};return n.append(c,n.createElement("track",e)),e}),r.on("ready."+a,function(t,e){var r,i=m.subtitleTracks;i&&i.length&&(L?n.addClass(c,"native-subtitles"):K(),i.map(function(t,e){t.default&&(m.subtitleTrack=e)}),r=m.subtitleTrack,r>-1?(!L&&k[r]&&k[r].forEach(function(t,r){E(e,t,r+1)}),G(r)):G(-1))}),D.on(l,"click."+a,".fp-subtitle-menu [data-subtitle-index]",function(t){t.preventDefault();var e=t.target.getAttribute("data-subtitle-index");return r.disableSubtitles(),m.subtitleTrack=e,e<0?void K():(G(e),void(!L&&k[e]&&k[e].forEach(function(t,e){E(r,t,e+1)})))}))},W=function(t){w=[],_=[],t.levels.forEach(function(t){var e=t.attrs&&t.attrs.AUDIO,r=t.audioCodec;e&&w.indexOf(e)<0&&(!r||f.isTypeSupported("audio/mp4;codecs="+r))&&w.push(e)}),w.length&&(_=t.audioTracks.filter(function(t){return t.groupId===w[0]})),!s.inlineVideo||d||_.length<2||(D.on(l,"click."+a,".fp-audio",function(){var t=n.find(".fp-audio-menu",l)[0];n.hasClass(t,"fp-active")?r.hideMenu():r.showMenu(t)}),D.on(l,"click."+a,".fp-audio-menu a",function(t){var e=t.target.getAttribute("data-audio"),r=m.audioTracks,i=r[m.audioTrack].groupId,a=r.filter(function(t){return t.groupId===i&&(t.name===e||t.lang===e)})[0];m.audioTrack=a.id,U(a)}),r.on("ready."+a,function(){if(B(),m&&_&&!(_.length<2)){var t=n.find(".fp-ui",l)[0],e=n.find(".fp-controls",t)[0],r=m.audioTracks[m.audioTrack],i=n.createElement("div",{className:"fp-menu fp-audio-menu",css:{width:"auto"}},"<strong>Audio</strong>");_.forEach(function(t){i.appendChild(n.createElement("a",{"data-audio":t.name},t.name))}),t.appendChild(i),e.appendChild(n.createElement("strong",{className:"fp-audio"},r)),U(r)}}))},V="active",q=function(t){return t?r.qualities.indexOf(t)<0&&(t="abr"):t=r.quality,t.toLowerCase().replace(/\ /g,"")},Y=function(){var t=r.qualities;t&&(n.removeClass(l,"quality-abr"),t.forEach(function(t){n.removeClass(l,"quality-"+q(t))}))},z=function(){d&&(delete r.hlsQualities,Y(),n.find(".fp-quality-selector",l).forEach(n.removeNode))},X=function(){return r.hlsQualities[r.qualities.indexOf(r.quality)+1]},Q=-1,J=function(t,e,i){var o,s,u,h=i.levels,p=function(t){return isNaN(Number(t))?t.level:t};if(z(),t&&!(h.length<2)){if("drive"===t){switch(h.length){case 4:o=[1,2,3];break;case 5:o=[1,2,3,4];break;case 6:o=[1,3,4,5];break;case 7:o=[1,3,5,6];break;case 8:o=[1,3,6,7];break;default:if(h.length<3||h[0].height&&h[2].height&&h[0].height===h[2].height)return;o=[1,2]}o.unshift(-1)}else switch(typeof t){case"object":o=t.map(p);break;case"string":o=t.split(/\s*,\s*/).map(Number);break;default:o=h.map(function(t,e){return e}),o.unshift(-1)}if(d&&o.indexOf(-1)<0&&o.unshift(-1),o=o.filter(function(t){if(t>-1&&t<h.length){var e=h[t];return!e.videoCodec||e.videoCodec&&f.isTypeSupported("video/mp4;codecs="+e.videoCodec)}return t===-1}),s=o.map(function(e,r){var i=h[e],a="object"==typeof t?t.filter(function(t){return p(t)===e})[0]:e,n="Level "+(r+1);return e<0?n=a.label||"Auto":a.label?n=a.label:(i.width&&i.height&&(n=Math.min(i.width,i.height)+"p"),"drive"!==t&&i.bitrate&&(n+=" ("+Math.round(i.bitrate/1e3)+"k)")),d?n:{value:e,label:n}}),!d)return r.video.qualities=s,Q>-1||o.indexOf(-1)<0?(m.loadLevel=o.indexOf(Q)<0?o[0]:Q,m.config.startLevel=m.loadLevel,r.video.quality=m.loadLevel):r.video.quality=-1,void(Q=r.video.quality);r.hlsQualities=o,r.qualities=s.slice(1),u=n.createElement("ul",{class:"fp-quality-selector"}),n.find(".fp-ui",l)[0].appendChild(u),!r.quality||s.indexOf(r.quality)<1?r.quality="abr":(m.loadLevel=X(),m.config.startLevel=m.loadLevel),s.forEach(function(t){u.appendChild(n.createElement("li",{"data-quality":q(t)},t))}),n.addClass(l,"quality-"+q()),D.on(l,"click."+a,".fp-quality-selector li",function(t){var i=t.currentTarget,o=n.find(".fp-quality-selector li",l),s=e.smoothSwitching,u=c.paused;n.hasClass(i,V)||(u||s||D.one(c,"pause."+a,function(){n.removeClass(l,"is-paused")}),o.forEach(function(t,e){var a=t===i;a&&(r.quality=e>0?r.qualities[e-1]:"abr",s&&!r.poster?m.nextLevel=X():m.currentLevel=X(),n.addClass(i,V),u&&c.play()),n.toggleClass(t,V,a)}),Y(),n.addClass(l,"quality-"+q()))})}},$={engineName:a,pick:function(t){var e=t.filter(function(t){return p(t.type)})[0];return"string"==typeof e.src&&(e.src=n.createAbsoluteUrl(e.src)),e},load:function(e){var u=r.conf,f={ended:"finish",loadeddata:"ready",pause:"pause",play:"resume",progress:"buffer",ratechange:"speed",seeked:"seek",timeupdate:"progress",volumechange:"volume",error:"error"},h=t.Events,p=!!e.autoplay||!!u.autoplay||!!u.splash,E=e.hlsQualities||u.hlsQualities,S=o(i,u.hlsjs,e.hlsjs),A=o({},S);if(e.hlsQualities===!1&&(E=!1),L=S.subtitles&&s.subtitles&&u.nativesubtitles,m?(m.destroy(),n.find("track",c).forEach(n.removeNode),n.removeClass(c,"native-subtitles"),(r.video.src&&e.src!==r.video.src||e.index)&&n.attr(c,"autoplay","autoplay")):(v(l),c=n.createElement("video",{class:"fp-engine "+a+"-engine",autoplay:!!p&&"autoplay",volume:r.volumeLevel}),s.mutedAutoplay&&!u.splash&&p&&(c.muted=!0),Object.keys(f).forEach(function(t){var e,i=f[t],s=t+"."+a;D.on(c,s,function(t){u.debug&&i.indexOf("progress")<0&&console.log(s,"->",i,t.originalEvent);var a,f,h,p=c.currentTime,g=c.seekable,v=r.video,y=r.dvr?v.seekOffset:r.live?m.liveSyncPosition:0,b=c.buffered,E=[],T=v.src,R=r.quality;switch(i){case"ready":e=o(v,{duration:c.duration,seekable:g.length&&g.end(null),width:c.videoWidth,height:c.videoHeight,url:T});break;case"resume":F(),S.bufferWhilePaused||m.startLoad(p),p<y&&(c.currentTime=y);break;case"seek":F(),!S.bufferWhilePaused&&c.paused&&m.stopLoad(),e=p;break;case"pause":S.bufferWhilePaused||m.stopLoad();break;case"progress":e=p;break;case"speed":e=c.playbackRate;break;case"volume":e=c.volume;break;case"buffer":for(a=0;a<b.length;a+=1)E.push(b.end(a));e=E.filter(function(t){return t>=p}).sort()[0],v.buffer=e;break;case"finish":S.bufferWhilePaused&&m.autoLevelEnabled&&(v.loop||u.playlist.length<2||u.advance===!1)&&(m.nextLoadLevel=N);break;case"error":if(h=c.error&&c.error.code,S.recoverMediaError&&(3===h||!h)||S.recoverNetworkError&&2===h||S.recover&&(2===h||3===h))return t.preventDefault(),void C(u,i,2===h);e=x(h,T)}r.trigger(i,[r,e]),d&&"ready"===i&&R&&(f="abr"===R?0:r.qualities.indexOf(R)+1,n.addClass(n.find(".fp-quality-selector li",l)[f],V))})}),r.on("error."+a,function(){m&&r.engine.unload()}).on("beforeseek."+a,function(t,e,r){void 0===r?t.preventDefault():!S.bufferWhilePaused&&e.paused&&m.startLoad(r)}),d?u.poster&&(r.on("stop."+a,P),!r.live||p||r.video.autoplay||D.one(c,"seeked."+a,P)):r.on("quality."+a,function(t,e,r){S.smoothSwitching?m.nextLevel=r:m.currentLevel=r,Q=r}),n.prepend(n.find(".fp-player",l)[0],c)),r.video=e,N=0,Object.keys(S).forEach(function(e){t.DefaultConfig.hasOwnProperty(e)||delete A[e];var r=S[e];switch(e){case"adaptOnStartOnly":r&&(A.startLevel=-1);break;case"autoLevelCapping":r===!1&&(r=-1),A[e]=r;break;case"startLevel":switch(r){case"auto":r=-1;break;case"firstLevel":r=void 0}A[e]=r;break;case"recover":S.recoverMediaError=!1,S.recoverNetworkError=!1,y=r;break;case"strict":r&&(S.recoverMediaError=!1,S.recoverNetworkError=!1,y=0)}}),m=new t(A),r.engine[a]=m,T=null,R=null,r.disableSubtitles(),k={},Object.keys(h).forEach(function(e){var i=h[e],s=S.listeners,f=s&&s.indexOf(i)>-1;m.on(i,function(i,s){var h,p={},v=t.ErrorTypes,T=t.ErrorDetails,R=r.video,A=R.src;switch(e){case"MANIFEST_PARSED":!g(u)||!d&&r.pluginQualitySelectorEnabled?d&&delete r.quality:J(E,S,s);break;case"MANIFEST_LOADED":W(s);break;case"SUBTITLE_TRACKS_UPDATED":H(s,S);break;case"MEDIA_ATTACHED":m.loadSource(A);break;case"FRAG_LOADED":"subtitle"===s.frag.type&&S.subtitles&&!L&&j(s,u),S.bufferWhilePaused&&!r.live&&m.autoLevelEnabled&&m.nextLoadLevel>N&&(N=m.nextLoadLevel);break;case"SUBTITLE_TRACK_SWITCH":L&&[].forEach.call(c.textTracks,function(t){t.mode=m.subtitleTracks[s.id].lang===t.language&&"subtitles"===t.kind?"showing":"hidden"});break;case"FRAG_PARSING_METADATA":if(d)return;s.samples.forEach(function(t){var e;e=function(){if(!(c.currentTime<t.dts)){D.off(c,"timeupdate."+a,e);var i=b(t.unit||t.data);r.trigger("metadata",[r,{key:i.substr(10,4),data:i}])}},D.on(c,"timeupdate."+a,e)});break;case"LEVEL_UPDATED":r.live&&(o(R,{seekOffset:s.details.fragments[0].start+m.config.nudgeOffset,duration:m.liveSyncPosition}),r.dvr&&r.playing&&r.trigger("dvrwindow",[r,{start:R.seekOffset,end:m.liveSyncPosition}]));break;case"LEVEL_SWITCHED":S.audioABR&&r.one("buffer."+a,function(t,e,r){r>e.video.time&&M(s.level)});break;case"BUFFER_APPENDED":n.removeClass(l,I);break;case"ERROR":if(s.fatal||S.strict){switch(s.type){case v.NETWORK_ERROR:S.recoverNetworkError||y?C(u,s.type,!0):s.frag&&s.frag.url?(p.url=s.frag.url,h=2):h=4;break;case v.MEDIA_ERROR:S.recoverMediaError||y?C(u,s.type):h=3;break;default:h=5}void 0!==h&&(p=x(h,A,s.url),r.trigger("error",[r,p]))}else s.details!==T.FRAG_LOOP_LOADING_ERROR&&s.details!==T.BUFFER_STALLED_ERROR||n.addClass(l,I)}f&&r.trigger(i,[r,s])})}),S.adaptOnStartOnly&&D.one(c,"timeupdate."+a,function(){m.loadLevel=m.loadLevel}),m.attachMedia(c),p&&c.paused){var w=c.play();void 0!==w&&w.catch(function(){s.mutedAutoplay||(r.unload(),d||r.message("Please click the play button",3e3))})}},resume:function(){c.play()},pause:function(){c.pause()},seek:function(t){c&&(c.currentTime=t)},volume:function(t){c&&(c.volume=t)},speed:function(t){c.playbackRate=t,r.trigger("speed",[r,t])},unload:function(){if(m){var t="."+a;r.disableSubtitles(),m.destroy(),m=0,z(),B(),r.off(t),D.off(l,t),D.off(c,t),n.removeNode(c),c=0}}};return!/^6\.0\.[0-3]$/.test(u)||r.conf.splash||r.conf.poster||r.conf.autoplay||(S=n.css(l,"backgroundColor"),A="none"!==n.css(l,"backgroundImage")||S&&"rgba(0, 0, 0, 0)"!==S&&"transparent"!==S,A&&(r.conf.poster=!0)),$};t.isSupported()&&0!==u.indexOf("5.")&&(T.engineName=a,T[a+"ClientVersion"]=t.version,T.canPlay=function(t,e){return e[a]!==!1&&e.clip[a]!==!1&&(i=o({bufferWhilePaused:!0,smoothSwitching:!0,recoverMediaError:!0},e[a],e.clip[a]),p(t)&&(!(l.safari&&s.dataload)||i.safari))},e(function(t,e){var r=t.conf;d?t.pluginQualitySelectorEnabled=g(r)&&T.canPlay("application/x-mpegurl",r):!s.mutedAutoplay||r.splash||r.autoplay||"7.1.0"!==u&&"7.0.0"!==u||(t.splash=!0,r.splash="string"!=typeof r.poster||r.poster,r.poster=void 0,r.autoplay=!0,v(e))}),e.engines.unshift(T))};"object"==typeof t&&t.exports?t.exports=e.bind(void 0,r(2)):window.Hls&&window.flowplayer&&e(window.Hls,window.flowplayer)}()},function(t,e,r){!function(e,r){t.exports=r()}(this,function(){return function(t){function e(i){if(r[i])return r[i].exports;var a=r[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=7)}([function(t,e,r){"use strict";function i(){}function a(t,e){return e="["+t+"] > "+e}function n(t){var e=self.console[t];return e?function(){for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];i[0]&&(i[0]=a(t,i[0])),e.apply(self.console,i)}:i}function o(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];r.forEach(function(e){u[e]=t[e]?t[e].bind(t):n(e)})}r.d(e,"a",function(){return d}),r.d(e,"b",function(){return c});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l={trace:i,debug:i,log:i,warn:i,info:i,error:i},u=l,d=function(t){if(t===!0||"object"===("undefined"==typeof t?"undefined":s(t))){o(t,"debug","log","info","warn","error");try{u.log()}catch(t){u=l}}else u=l},c=u},function(t,e,r){"use strict";e.a={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCH:"hlsLevelSwitch",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCH:"hlsAudioTrackSwitch",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition"}},function(t,e,r){"use strict";r.d(e,"b",function(){return i}),r.d(e,"a",function(){return a});var i={NETWORK_ERROR:"networkError",MEDIA_ERROR:"mediaError",MUX_ERROR:"muxError",OTHER_ERROR:"otherError"},a={MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"manifestIncompatibleCodecsError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",AUDIO_TRACK_LOAD_ERROR:"audioTrackLoadError",AUDIO_TRACK_LOAD_TIMEOUT:"audioTrackLoadTimeOut",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOOP_LOADING_ERROR:"fragLoopLoadingError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",REMUX_ALLOC_ERROR:"remuxAllocError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_ADD_CODEC_ERROR:"bufferAddCodecError",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError",BUFFER_STALLED_ERROR:"bufferStalledError",BUFFER_FULL_ERROR:"bufferFullError",BUFFER_SEEK_OVER_HOLE:"bufferSeekOverHole",BUFFER_NUDGE_ON_STALL:"bufferNudgeOnStall",INTERNAL_EXCEPTION:"internalException"}},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(){i(this,t)}return t.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.getID3Data=function(e,r){for(var i=r,a=0;t.isHeader(e,r);){a+=10;var n=t._readSize(e,r+6);a+=n,t.isFooter(e,r+10)&&(a+=10),r+=a}if(a>0)return e.subarray(i,i+a)},t._readSize=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|=127&t[e+3]},t.getTimeStamp=function(e){for(var r=t.getID3Frames(e),i=0;i<r.length;i++){var a=r[i];if(t.isTimeStampFrame(a))return t._readTimeStamp(a)}},t.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},t._getFrameData=function(e){var r=String.fromCharCode(e[0],e[1],e[2],e[3]),i=t._readSize(e,4),a=10;return{type:r,size:i,data:e.subarray(a,a+i)}},t.getID3Frames=function(e){for(var r=0,i=[];t.isHeader(e,r);){var a=t._readSize(e,r+6);r+=10;for(var n=r+a;r+8<n;){var o=t._getFrameData(e.subarray(r)),s=t._decodeFrame(o);s&&i.push(s),r+=o.size+10}t.isFooter(e,r)&&(r+=10)}return i},t._decodeFrame=function(e){return"PRIV"===e.type?t._decodePrivFrame(e):"T"===e.type[0]?t._decodeTextFrame(e):"W"===e.type[0]?t._decodeURLFrame(e):void 0},t._readTimeStamp=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,r&&(i+=47721858.84),Math.round(i)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var r=t._utf8ArrayToStr(e.data),i=new Uint8Array(e.data.subarray(r.length+1));return{key:e.type,info:r,data:i.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if("TXXX"===e.type){var r=1,i=t._utf8ArrayToStr(e.data.subarray(r));r+=i.length+1;var a=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:i,data:a}}var n=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:n}}},t._decodeURLFrame=function(e){if("WXXX"===e.type){if(e.size<2)return;var r=1,i=t._utf8ArrayToStr(e.data.subarray(r));r+=i.length+1;var a=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:i,data:a}}var n=t._utf8ArrayToStr(e.data);return{key:e.type,data:n}},t._utf8ArrayToStr=function(t){for(var e=void 0,r=void 0,i="",a=0,n=t.length;a<n;){var o=t[a++];switch(o>>4){case 0:return i;case 1:case 2:case 3:case 4:case 5:case 6:case 7:i+=String.fromCharCode(o);break;case 12:case 13:e=t[a++],i+=String.fromCharCode((31&o)<<6|63&e);break;case 14:e=t[a++],r=t[a++],i+=String.fromCharCode((15&o)<<12|(63&e)<<6|(63&r)<<0)}}return i},t}();e.a=a},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function a(t){return"number"==typeof t}function n(t){return"object"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!a(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,r,a,s,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var d=new Error('Uncaught, unspecified "error" event. ('+e+")");throw d.context=e,d}if(r=this._events[t],o(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(n(r))for(s=Array.prototype.slice.call(arguments,1),u=r.slice(),a=u.length,l=0;l<a;l++)u[l].apply(this,s);return!0},r.prototype.addListener=function(t,e){var a;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?n(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,n(this._events[t])&&!this._events[t].warned&&(a=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,a&&a>0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function r(){this.removeListener(t,r),a||(a=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var a=!1;return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var r,a,o,s;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],o=r.length,a=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(n(r)){for(s=o;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){a=s;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,r){!function(e){var r=/^((?:[^\/;?#]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,i=/^([^\/;?#]*)(.*)$/,a=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),e=e.trim(),!e){if(!r.alwaysNormalize)return t;var a=this.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");return a.path=o.normalizePath(a.path),o.buildURLFromParts(a)}var n=this.parseURL(e);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return r.alwaysNormalize?(n.path=o.normalizePath(n.path),o.buildURLFromParts(n)):e;var s=this.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=i.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(u.netLoc=s.netLoc,"/"!==n.path[0]))if(n.path){var d=s.path,c=d.substring(0,d.lastIndexOf("/")+1)+n.path;u.path=o.normalizePath(c)}else u.path=s.path,n.params||(u.params=s.params,n.query||(u.query=s.query));return null===u.path&&(u.path=r.alwaysNormalize?o.normalizePath(n.path):n.path),o.buildURLFromParts(u)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(a,"");t.length!==(t=t.replace(n,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};t.exports=o}(this)},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e,r,i){var a,n,o,s,l,u=navigator.userAgent.toLowerCase(),d=i,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];return a=((192&e[r+2])>>>6)+1,n=(60&e[r+2])>>>2,n>c.length-1?void t.trigger(Event.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+n}):(s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,N.b.log("manifest codec:"+i+",ADTS data:type:"+a+",sampleingIndex:"+n+"["+c[n]+"Hz],channelConfig:"+s),/firefox/i.test(u)?n>=6?(a=5,l=new Array(4),o=n-3):(a=2,l=new Array(2),o=n):u.indexOf("android")!==-1?(a=2,l=new Array(2),o=n):(a=5,l=new Array(4),i&&(i.indexOf("mp4a.40.29")!==-1||i.indexOf("mp4a.40.5")!==-1)||!i&&n>=6?o=n-3:((i&&i.indexOf("mp4a.40.2")!==-1&&(n>=6&&1===s||/vivaldi/i.test(u))||!i&&1===s)&&(a=2,l=new Array(2)),o=n)),l[0]=a<<3,l[0]|=(14&n)>>1,l[1]|=(1&n)<<7,l[1]|=s<<3,5===a&&(l[1]|=(14&o)>>1,l[2]=(1&o)<<7,l[2]|=8,l[3]=0),{config:l,samplerate:c[n],channelCount:s,codec:"mp4a.40."+a,manifestCodec:d})}function l(t,e){return 255===t[e]&&240===(246&t[e+1])}function u(t,e){return 1&t[e+1]?7:9}function d(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function c(t,e){return!!(e+1<t.length&&l(t,e))}function f(t,e){if(e+1<t.length&&l(t,e)){var r=u(t,e),i=r;e+5<t.length&&(i=d(t,e));var a=e+i;if(a===t.length||a+1<t.length&&l(t,a))return!0}return!1}function h(t,e,r,i,a){if(!t.samplerate){var n=s(e,r,i,a);t.config=n.config,t.samplerate=n.samplerate,t.channelCount=n.channelCount,t.codec=n.codec,t.manifestCodec=n.manifestCodec,N.b.log("parsed codec:"+t.codec+",rate:"+n.samplerate+",nb channel:"+n.channelCount)}}function p(t){return 9216e4/t}function g(t,e,r,i,a){var n,o,s,l=t.length;if(n=u(t,e),o=d(t,e),o-=n,o>0&&e+n+o<=l)return s=r+i*a,{headerLength:n,frameLength:o,stamp:s}}function v(t,e,r,i,a){var n=p(t.samplerate),o=g(e,r,i,a,n);if(o){var s=o.stamp,l=o.headerLength,u=o.frameLength,d={unit:e.subarray(r+l,r+l+u),pts:s,dts:s};return t.samples.push(d),t.len+=u,{sample:d,length:u+l}}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var k=r(1),D=r(2),I=function(){function t(e,r){i(this,t),this.subtle=e,this.aesIV=r}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),O=I,C=function(){function t(e,r){a(this,t),this.subtle=e,this.key=r}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),x=C,P=function(){function t(){n(this,t),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}return t.prototype.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),i=0;i<4;i++)r[i]=e.getUint32(4*i);return r},t.prototype.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,i=r[0],a=r[1],n=r[2],o=r[3],s=this.invSubMix,l=s[0],u=s[1],d=s[2],c=s[3],f=new Uint32Array(256),h=0,p=0,g=0;for(g=0;g<256;g++)g<128?f[g]=g<<1:f[g]=g<<1^283;for(g=0;g<256;g++){var v=p^p<<1^p<<2^p<<3^p<<4;v=v>>>8^255&v^99,t[h]=v,e[v]=h;var m=f[h],y=f[m],b=f[y],E=257*f[v]^16843008*v;i[h]=E<<24|E>>>8,a[h]=E<<16|E>>>16,n[h]=E<<8|E>>>24,o[h]=E,E=16843009*b^65537*y^257*m^16843008*h,l[v]=E<<24|E>>>8,u[v]=E<<16|E>>>16,d[v]=E<<8|E>>>24,c[v]=E,h?(h=m^f[f[f[b^m]]],p^=f[f[p]]):h=p=1}},t.prototype.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;i<e.length&&r;)r=e[i]===this.key[i],i++;if(!r){this.key=e;var a=this.keySize=e.length;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size="+a);var n=this.ksRows=4*(a+6+1),o=void 0,s=void 0,l=this.keySchedule=new Uint32Array(n),u=this.invKeySchedule=new Uint32Array(n),d=this.sBox,c=this.rcon,f=this.invSubMix,h=f[0],p=f[1],g=f[2],v=f[3],m=void 0,y=void 0;
|
23 |
+
for(o=0;o<n;o++)o<a?m=l[o]=e[o]:(y=m,o%a===0?(y=y<<8|y>>>24,y=d[y>>>24]<<24|d[y>>>16&255]<<16|d[y>>>8&255]<<8|d[255&y],y^=c[o/a|0]<<24):a>6&&o%a===4&&(y=d[y>>>24]<<24|d[y>>>16&255]<<16|d[y>>>8&255]<<8|d[255&y]),l[o]=m=(l[o-a]^y)>>>0);for(s=0;s<n;s++)o=n-s,y=3&s?l[o]:l[o-4],s<4||o<=4?u[s]=y:u[s]=h[d[y>>>24]]^p[d[y>>>16&255]]^g[d[y>>>8&255]]^v[d[255&y]],u[s]=u[s]>>>0}},t.prototype.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},t.prototype.decrypt=function(t,e,r){for(var i,a,n=this.keySize+6,o=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,u=l[0],d=l[1],c=l[2],f=l[3],h=this.uint8ArrayToUint32Array_(r),p=h[0],g=h[1],v=h[2],m=h[3],y=new Int32Array(t),b=new Int32Array(y.length),E=void 0,T=void 0,R=void 0,S=void 0,A=void 0,w=void 0,_=void 0,L=void 0,k=void 0,D=void 0,I=void 0,O=void 0,C=this.networkToHostOrderSwap;e<y.length;){for(k=C(y[e]),D=C(y[e+1]),I=C(y[e+2]),O=C(y[e+3]),A=k^o[0],w=O^o[1],_=I^o[2],L=D^o[3],i=4,a=1;a<n;a++)E=u[A>>>24]^d[w>>16&255]^c[_>>8&255]^f[255&L]^o[i],T=u[w>>>24]^d[_>>16&255]^c[L>>8&255]^f[255&A]^o[i+1],R=u[_>>>24]^d[L>>16&255]^c[A>>8&255]^f[255&w]^o[i+2],S=u[L>>>24]^d[A>>16&255]^c[w>>8&255]^f[255&_]^o[i+3],A=E,w=T,_=R,L=S,i+=4;E=s[A>>>24]<<24^s[w>>16&255]<<16^s[_>>8&255]<<8^s[255&L]^o[i],T=s[w>>>24]<<24^s[_>>16&255]<<16^s[L>>8&255]<<8^s[255&A]^o[i+1],R=s[_>>>24]<<24^s[L>>16&255]<<16^s[A>>8&255]<<8^s[255&w]^o[i+2],S=s[L>>>24]<<24^s[A>>16&255]<<16^s[w>>8&255]<<8^s[255&_]^o[i+3],i+=3,b[e]=C(E^p),b[e+1]=C(S^g),b[e+2]=C(R^v),b[e+3]=C(T^m),p=k,g=D,v=I,m=O,e+=4}return b.buffer},t.prototype.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),F=P,N=r(0),M=function(){function t(e,r){o(this,t),this.observer=e,this.config=r,this.logEnabled=!0;try{var i=crypto?crypto:self.crypto;this.subtle=i.subtle||i.webkitSubtle}catch(t){}this.disableWebCrypto=!this.subtle}return t.prototype.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},t.prototype.decrypt=function(t,e,r,i){var a=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(N.b.log("JS AES decrypt"),this.logEnabled=!1);var n=this.decryptor;n||(this.decryptor=n=new F),n.expandKey(e),i(n.decrypt(t,0,r))}else{this.logEnabled&&(N.b.log("WebCrypto AES decrypt"),this.logEnabled=!1);var o=this.subtle;this.key!==e&&(this.key=e,this.fastAesKey=new x(o,e)),this.fastAesKey.expandKey().then(function(n){var s=new O(o,r);s.decrypt(t,n).catch(function(n){a.onWebCryptoError(n,t,e,r,i)}).then(function(t){i(t)})}).catch(function(n){a.onWebCryptoError(n,t,e,r,i)})}},t.prototype.onWebCryptoError=function(t,e,r,i,a){this.config.enableSoftwareAES?(N.b.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,r,i,a)):(N.b.error("decrypting error : "+t.message),this.observer.trigger(Event.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},t.prototype.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}(),U=M,B=r(3),G=function(){function t(e,r,i){m(this,t),this.observer=e,this.config=i,this.remuxer=r}return t.prototype.resetInitSegment=function(t,e,r,i){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},t.prototype.resetTimeStamp=function(){},t.probe=function(t){if(!t)return!1;for(var e=B.a.getID3Data(t,0)||[],r=e.length,i=t.length;r<i;r++)if(f(t,r))return N.b.log("ADTS sync word found !"),!0;return!1},t.prototype.append=function(t,e,r,i){for(var a=this._audioTrack,n=B.a.getID3Data(t,0)||[],o=B.a.getTimeStamp(n),s=o?90*o:9e4*e,l=0,u=s,d=t.length,f=n.length,p=[{pts:u,dts:u,data:n}];f<d-1;)if(c(t,f)&&f+5<d){h(a,this.observer,t,f,a.manifestCodec);var g=v(a,t,f,s,l);if(!g){N.b.log("Unable to parse AAC frame");break}f+=g.length,u=g.sample.pts,l++}else B.a.isHeader(t,f)?(n=B.a.getID3Data(t,f),p.push({pts:u,dts:u,data:n}),f+=n.length):f++;this.remuxer.remux(a,{samples:[]},{samples:p,inputTimeScale:9e4},{samples:[]},e,r,i)},t.prototype.destroy=function(){},t}(),j=G,K=Math.pow(2,32)-1,H=function(){function t(e,r){y(this,t),this.observer=e,this.remuxer=r}return t.prototype.resetTimeStamp=function(t){this.initPTS=t},t.prototype.resetInitSegment=function(e,r,i,a){if(e&&e.byteLength){var n=this.initData=t.parseInitSegment(e),o={};n.audio&&n.video?o.audiovideo={container:"video/mp4",codec:r+","+i,initSegment:a?e:null}:(n.audio&&(o.audio={container:"audio/mp4",codec:r,initSegment:a?e:null}),n.video&&(o.video={container:"video/mp4",codec:i,initSegment:a?e:null})),this.observer.trigger(k.a.FRAG_PARSING_INIT_SEGMENT,{tracks:o})}else r&&(this.audioCodec=r),i&&(this.videoCodec=i)},t.probe=function(e){if(e.length>=8){var r=t.bin2str(e.subarray(4,8));return["moof","ftyp","styp"].indexOf(r)>=0}return!1},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?4294967296+r:r},t.writeUint32=function(t,e,r){t.data&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},t.findBox=function(e,r){var i,a,n,o,s,l,u,d=[];if(e.data?(l=e.start,o=e.end,e=e.data):(l=0,o=e.byteLength),!r.length)return null;for(i=l;i<o;)a=t.readUint32(e,i),n=t.bin2str(e.subarray(i+4,i+8)),u=a>1?i+a:o,n===r[0]&&(1===r.length?d.push({data:e,start:i+8,end:u}):(s=t.findBox({data:e,start:i+8,end:u},r.slice(1)),s.length&&(d=d.concat(s)))),i=u;return d},t.parseInitSegment=function(e){var r=[],i=t.findBox(e,["moov","trak"]);return i.forEach(function(e){var i=t.findBox(e,["tkhd"])[0];if(i){var a=i.data[i.start],n=0===a?12:20,o=t.readUint32(i,n),s=t.findBox(e,["mdia","mdhd"])[0];if(s){a=s.data[s.start],n=0===a?12:20;var l=t.readUint32(s,n),u=t.findBox(e,["mdia","hdlr"])[0];if(u){var d=t.bin2str(u.data.subarray(u.start+8,u.start+12)),c={soun:"audio",vide:"video"}[d];c&&(r[o]={timescale:l,type:c},r[c]={timescale:l,id:o})}}}}),r},t.getStartDTS=function(e,r){var i,a,n;return i=t.findBox(r,["moof","traf"]),a=[].concat.apply([],i.map(function(r){return t.findBox(r,["tfhd"]).map(function(i){var a,n,o;return a=t.readUint32(i,4),n=e[a].timescale||9e4,o=t.findBox(r,["tfdt"]).map(function(e){var r,i;return r=e.data[e.start],i=t.readUint32(e,4),1===r&&(i*=Math.pow(2,32),i+=t.readUint32(e,8)),i})[0],o/n})})),n=Math.min.apply(null,a),isFinite(n)?n:0},t.offsetStartDTS=function(e,r,i){t.findBox(r,["moof","traf"]).map(function(r){return t.findBox(r,["tfhd"]).map(function(a){var n=t.readUint32(a,4),o=e[n].timescale||9e4;t.findBox(r,["tfdt"]).map(function(e){var r=e.data[e.start],a=t.readUint32(e,4);if(0===r)t.writeUint32(e,4,a-i*o);else{a*=Math.pow(2,32),a+=t.readUint32(e,8),a-=i*o,a=Math.max(a,0);var n=Math.floor(a/(K+1)),s=Math.floor(a%(K+1));t.writeUint32(e,4,n),t.writeUint32(e,8,s)}})})})},t.prototype.append=function(e,r,i,a){var n=this.initData;n||(this.resetInitSegment(e,this.audioCodec,this.videoCodec),n=this.initData);var o=void 0,s=this.initPTS;if(void 0===s){var l=t.getStartDTS(n,e);this.initPTS=s=l-r,this.observer.trigger(k.a.INIT_PTS_FOUND,{initPTS:s})}t.offsetStartDTS(n,e,s),o=t.getStartDTS(n,e),this.remuxer.remux(n.audio,n.video,null,null,o,i,a,e)},t.prototype.destroy=function(){},t}(),W=H,V={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],appendFrame:function(t,e,r,i,a){if(!(r+24>e.length)){var n=this.parseHeader(e,r);if(n&&r+n.frameLength<=e.length){var o=10368e4/n.sampleRate,s=i+a*o,l={unit:e.subarray(r,r+n.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=n.channelCount,t.samplerate=n.sampleRate,t.samples.push(l),t.len+=n.frameLength,{sample:l,length:n.frameLength}}}},parseHeader:function(t,e){var r=t[e+1]>>3&3,i=t[e+1]>>1&3,a=t[e+2]>>4&15,n=t[e+2]>>2&3,o=!!(2&t[e+2]);if(1!==r&&0!==a&&15!==a&&3!==n){var s=3===r?3-i:3===i?3:4,l=1e3*V.BitratesMap[14*s+a-1],u=3===r?0:2===r?1:2,d=V.SamplingRateMap[3*u+n],c=o?1:0,f=t[e+3]>>6===3?1:2,h=3===i?(3===r?12:6)*l/d+c<<2:(3===r?144:72)*l/d+c|0;return{sampleRate:d,channelCount:f,frameLength:h}}},isHeaderPattern:function(t,e){return 255===t[e]&&224===(224&t[e+1])&&0!==(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var r=4,i=this.parseHeader(t,e),a=r;i&&i.frameLength&&(a=i.frameLength);var n=e+a;if(n===t.length||n+1<t.length&&this.isHeaderPattern(t,n))return!0}return!1}},q=V,Y=function(){function t(e){b(this,t),this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}return t.prototype.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");i.set(t.subarray(r,r+a)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*a,this.bytesAvailable-=a},t.prototype.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,e=t>>3,t-=e>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},t.prototype.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return t>32&&N.b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),e=t-e,e>0&&this.bitsAvailable?r<<e|this.readBits(e):r},t.prototype.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!==(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},t.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},t.prototype.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},t.prototype.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},t.prototype.readBoolean=function(){return 1===this.readBits(1)},t.prototype.readUByte=function(){return this.readBits(8)},t.prototype.readUShort=function(){return this.readBits(16)},t.prototype.readUInt=function(){return this.readBits(32)},t.prototype.skipScalingList=function(t){var e,r,i=8,a=8;for(e=0;e<t;e++)0!==a&&(r=this.readEG(),a=(i+r+256)%256),i=0===a?i:a},t.prototype.readSPS=function(){var t,e,r,i,a,n,o,s,l,u=0,d=0,c=0,f=0,h=this.readUByte.bind(this),p=this.readBits.bind(this),g=this.readUEG.bind(this),v=this.readBoolean.bind(this),m=this.skipBits.bind(this),y=this.skipEG.bind(this),b=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);if(h(),t=h(),e=p(5),m(3),r=h(),b(),100===t||110===t||122===t||244===t||44===t||83===t||86===t||118===t||128===t){var T=g();if(3===T&&m(1),b(),b(),m(1),v())for(s=3!==T?8:12,l=0;l<s;l++)v()&&E(l<6?16:64)}b();var R=g();if(0===R)g();else if(1===R)for(m(1),y(),y(),i=g(),l=0;l<i;l++)y();b(),m(1),a=g(),n=g(),o=p(1),0===o&&m(1),m(1),v()&&(u=g(),d=g(),c=g(),f=g());var S=[1,1];if(v()&&v()){var A=h();switch(A){case 1:S=[1,1];break;case 2:S=[12,11];break;case 3:S=[10,11];break;case 4:S=[16,11];break;case 5:S=[40,33];break;case 6:S=[24,11];break;case 7:S=[20,11];break;case 8:S=[32,11];break;case 9:S=[80,33];break;case 10:S=[18,11];break;case 11:S=[15,11];break;case 12:S=[64,33];break;case 13:S=[160,99];break;case 14:S=[4,3];break;case 15:S=[3,2];break;case 16:S=[2,1];break;case 255:S=[h()<<8|h(),h()<<8|h()]}}return{width:Math.ceil(16*(a+1)-2*u-2*d),height:(2-o)*(n+1)*16-(o?2:4)*(c+f),pixelRatio:S}},t.prototype.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),z=Y,X=function(){function t(e,r,i,a){E(this,t),this.decryptdata=i,this.discardEPB=a,this.decrypter=new U(e,r)}return t.prototype.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},t.prototype.decryptAacSample=function(t,e,r,i){var a=t[e].unit,n=a.subarray(16,a.length-a.length%16),o=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),s=this;this.decryptBuffer(o,function(n){n=new Uint8Array(n),a.set(n,16),i||s.decryptAacSamples(t,e+1,r)})},t.prototype.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var i=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,i),!i)return}}},t.prototype.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),i=0,a=32;a<=t.length-16;a+=160,i+=16)r.set(t.subarray(a,a+16),i);return r},t.prototype.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var r=0,i=32;i<=t.length-16;i+=160,r+=16)t.set(e.subarray(r,r+16),i);return t},t.prototype.decryptAvcSample=function(t,e,r,i,a,n){var o=this.discardEPB(a.data),s=this.getAvcEncryptedData(o),l=this;this.decryptBuffer(s.buffer,function(s){a.data=l.getAvcDecryptedUnit(o,s),n||l.decryptAvcSamples(t,e,r+1,i)})},t.prototype.decryptAvcSamples=function(t,e,r,i){for(;;e++,r=0){if(e>=t.length)return void i();for(var a=t[e].units;!(r>=a.length);r++){var n=a[r];if(!(n.length<=48||1!==n.type&&5!==n.type)){var o=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,i,n,o),!o)return}}}},t}(),Q=X,J=function(){function t(e,r,i,a){T(this,t),this.observer=e,this.config=i,this.typeSupported=a,this.remuxer=r,this.sampleAes=null}return t.prototype.setDecryptData=function(t){null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new Q(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},t.probe=function(t){return t.length>=564&&71===t[0]&&71===t[188]&&71===t[376]},t.prototype.resetInitSegment=function(t,e,r,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack={container:"video/mp2t",type:"video",id:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0,dropped:0},this._audioTrack={container:"video/mp2t",type:"audio",id:-1,inputTimeScale:9e4,duration:i,sequenceNumber:0,samples:[],len:0,isAAC:!0},this._id3Track={type:"id3",id:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0},this._txtTrack={type:"text",id:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0},this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=e,this.videoCodec=r,this._duration=i},t.prototype.resetTimeStamp=function(){},t.prototype.append=function(t,e,r,i){var a,n,o,s,l,u,d=t.length,c=!1;this.contiguous=r;var f=this.pmtParsed,h=this._avcTrack,p=this._audioTrack,g=this._id3Track,v=h.id,m=p.id,y=g.id,b=this._pmtId,E=h.pesData,T=p.pesData,R=g.pesData,S=this._parsePAT,A=this._parsePMT,w=this._parsePES,_=this._parseAVCPES.bind(this),L=this._parseAACPES.bind(this),I=this._parseMPEGPES.bind(this),O=this._parseID3PES.bind(this);for(d-=d%188,a=0;a<d;a+=188)if(71===t[a]){if(n=!!(64&t[a+1]),o=((31&t[a+1])<<8)+t[a+2],s=(48&t[a+3])>>4,s>1){if(l=a+5+t[a+4],l===a+188)continue}else l=a+4;switch(o){case v:n&&(E&&(u=w(E))&&_(u,!1),E={data:[],size:0}),E&&(E.data.push(t.subarray(l,a+188)),E.size+=a+188-l);break;case m:n&&(T&&(u=w(T))&&(p.isAAC?L(u):I(u)),T={data:[],size:0}),T&&(T.data.push(t.subarray(l,a+188)),T.size+=a+188-l);break;case y:n&&(R&&(u=w(R))&&O(u),R={data:[],size:0}),R&&(R.data.push(t.subarray(l,a+188)),R.size+=a+188-l);break;case 0:n&&(l+=t[l]+1),b=this._pmtId=S(t,l);break;case b:n&&(l+=t[l]+1);var C=A(t,l,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,null!=this.sampleAes);v=C.avc,v>0&&(h.id=v),m=C.audio,m>0&&(p.id=m,p.isAAC=C.isAAC),y=C.id3,y>0&&(g.id=y),c&&!f&&(N.b.log("reparse from beginning"),c=!1,a=-188),f=this.pmtParsed=!0;break;case 17:case 8191:break;default:c=!0}}else this.observer.trigger(k.a.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});E&&(u=w(E))?(_(u,!0),h.pesData=null):h.pesData=E,T&&(u=w(T))?(p.isAAC?L(u):I(u),p.pesData=null):(T&&T.size&&N.b.log("last AAC PES packet truncated,might overlap between fragments"),p.pesData=T),R&&(u=w(R))?(O(u),g.pesData=null):g.pesData=R,null==this.sampleAes?this.remuxer.remux(p,h,g,this._txtTrack,e,r,i):this.decryptAndRemux(p,h,g,this._txtTrack,e,r,i)},t.prototype.decryptAndRemux=function(t,e,r,i,a,n,o){if(t.samples&&t.isAAC){var s=this;this.sampleAes.decryptAacSamples(t.samples,0,function(){s.decryptAndRemuxAvc(t,e,r,i,a,n,o)})}else this.decryptAndRemuxAvc(t,e,r,i,a,n,o)},t.prototype.decryptAndRemuxAvc=function(t,e,r,i,a,n,o){if(e.samples){var s=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,function(){s.remuxer.remux(t,e,r,i,a,n,o)})}else this.remuxer.remux(t,e,r,i,a,n,o)},t.prototype.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},t.prototype._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},t.prototype._parsePMT=function(t,e,r,i){var a,n,o,s,l={audio:-1,avc:-1,id3:-1,isAAC:!0};for(a=(15&t[e+1])<<8|t[e+2],n=e+3+a-4,o=(15&t[e+10])<<8|t[e+11],e+=12+o;e<n;){switch(s=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!i){N.b.log("unkown stream type:"+t[e]);break}case 15:l.audio===-1&&(l.audio=s);break;case 21:l.id3===-1&&(l.id3=s);break;case 219:if(!i){N.b.log("unkown stream type:"+t[e]);break}case 27:l.avc===-1&&(l.avc=s);break;case 3:case 4:r?l.audio===-1&&(l.audio=s,l.isAAC=!1):N.b.log("MPEG audio found, not supported in this browser for now");break;case 36:N.b.warn("HEVC stream type found, not supported for now");break;default:N.b.log("unkown stream type:"+t[e])}e+=((15&t[e+3])<<8|t[e+4])+5}return l},t.prototype._parsePES=function(t){var e,r,i,a,n,o,s,l,u,d=0,c=t.data;if(!t||0===t.size)return null;for(;c[0].length<19&&c.length>1;){var f=new Uint8Array(c[0].length+c[1].length);f.set(c[0]),f.set(c[1],c[0].length),c[0]=f,c.splice(1,1)}if(e=c[0],i=(e[0]<<16)+(e[1]<<8)+e[2],1===i){if(a=(e[4]<<8)+e[5],a&&a>t.size-6)return null;r=e[7],192&r&&(s=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,s>4294967295&&(s-=8589934592),64&r?(l=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2,l>4294967295&&(l-=8589934592),s-l>54e5&&(N.b.warn(Math.round((s-l)/9e4)+"s delta between PTS and DTS, align them"),s=l)):l=s),n=e[8],u=n+9,t.size-=u,o=new Uint8Array(t.size);for(var h=0,p=c.length;h<p;h++){e=c[h];var g=e.byteLength;if(u){if(u>g){u-=g;continue}e=e.subarray(u),g-=u,u=0}o.set(e,d),d+=g}return a&&(a-=n+3),{data:o,pts:s,dts:l,len:a}}return null},t.prototype.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var r=e.samples,i=r.length;!this.config.forceKeyFrameOnDiscontinuity||t.key===!0||e.sps&&(i||this.contiguous)?(t.id=i,r.push(t)):e.dropped++}t.debug.length&&N.b.log(t.pts+"/"+t.dts+":"+t.debug)},t.prototype._parseAVCPES=function(t,e){var r,i,a,n=this,o=this._avcTrack,s=this._parseAVCNALu(t.data),l=!1,u=this.avcSample,d=!1,c=this.pushAccesUnit.bind(this),f=function(t,e,r,i){return{key:t,pts:e,dts:r,units:[],debug:i}};t.data=null,u&&s.length&&!o.audFound&&(c(u,o),u=this.avcSample=f(!1,t.pts,t.dts,"")),s.forEach(function(e){switch(e.type){case 1:i=!0,u||(u=n.avcSample=f(!0,t.pts,t.dts,"")),l&&(u.debug+="NDR "),u.frame=!0;var s=e.data;if(d&&s.length>4){var h=new z(s).readSliceType();2!==h&&4!==h&&7!==h&&9!==h||(u.key=!0)}break;case 5:i=!0,u||(u=n.avcSample=f(!0,t.pts,t.dts,"")),l&&(u.debug+="IDR "),u.key=!0,u.frame=!0;break;case 6:i=!0,l&&u&&(u.debug+="SEI "),r=new z(n.discardEPB(e.data)),r.readUByte();for(var p=0,g=0,v=!1,m=0;!v&&r.bytesAvailable>1;){p=0;do m=r.readUByte(),p+=m;while(255===m);g=0;do m=r.readUByte(),g+=m;while(255===m);if(4===p&&0!==r.bytesAvailable){v=!0;var y=r.readUByte();if(181===y){var b=r.readUShort();if(49===b){var E=r.readUInt();if(1195456820===E){var T=r.readUByte();if(3===T){var R=r.readUByte(),S=r.readUByte(),A=31&R,w=[R,S];for(a=0;a<A;a++)w.push(r.readUByte()),w.push(r.readUByte()),w.push(r.readUByte());n._insertSampleInOrder(n._txtTrack.samples,{type:3,pts:t.pts,bytes:w})}}}}}else if(g<r.bytesAvailable)for(a=0;a<g;a++)r.readUByte()}break;case 7:if(i=!0,d=!0,l&&u&&(u.debug+="SPS "),!o.sps){r=new z(e.data);var _=r.readSPS();o.width=_.width,o.height=_.height,o.pixelRatio=_.pixelRatio,o.sps=[e.data],o.duration=n._duration;var L=e.data.subarray(1,4),k="avc1.";for(a=0;a<3;a++){var D=L[a].toString(16);D.length<2&&(D="0"+D),k+=D}o.codec=k}break;case 8:i=!0,l&&u&&(u.debug+="PPS "),o.pps||(o.pps=[e.data]);break;case 9:i=!1,o.audFound=!0,u&&c(u,o),u=n.avcSample=f(!1,t.pts,t.dts,l?"AUD ":"");break;case 12:i=!1;break;default:i=!1,u&&(u.debug+="unknown NAL "+e.type+" ")}if(u&&i){var I=u.units;I.push(e)}}),e&&u&&(c(u,o),this.avcSample=null)},t.prototype._insertSampleInOrder=function(t,e){var r=t.length;if(r>0){if(e.pts>=t[r-1].pts)t.push(e);else for(var i=r-1;i>=0;i--)if(e.pts<t[i].pts){t.splice(i,0,e);break}}else t.push(e)},t.prototype._getLastNalUnit=function(){var t=this.avcSample,e=void 0;if(!t||0===t.units.length){var r=this._avcTrack,i=r.samples;t=i[i.length-1]}if(t){var a=t.units;e=a[a.length-1]}return e},t.prototype._parseAVCNALu=function(t){var e,r,i,a,n,o=0,s=t.byteLength,l=this._avcTrack,u=l.naluState||0,d=u,c=[],f=-1;for(u===-1&&(f=0,n=31&t[0],u=0,o=1);o<s;)if(e=t[o++],u)if(1!==u)if(e)if(1===e){if(f>=0)i={data:t.subarray(f,o-u-1),type:n},c.push(i);else{var h=this._getLastNalUnit();if(h&&(d&&o<=4-d&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-d)),r=o-u-1,r>0)){var p=new Uint8Array(h.data.byteLength+r);p.set(h.data,0),p.set(t.subarray(0,r),h.data.byteLength),h.data=p}}o<s?(a=31&t[o],f=o,n=a,u=0):u=-1}else u=0;else u=3;else u=e?0:2;else u=e?0:1;if(f>=0&&u>=0&&(i={data:t.subarray(f,s),type:n,state:u},c.push(i)),0===c.length){var g=this._getLastNalUnit();if(g){var v=new Uint8Array(g.data.byteLength+t.byteLength);v.set(g.data,0),v.set(t,g.data.byteLength),g.data=v}}return l.naluState=u,c},t.prototype.discardEPB=function(t){for(var e,r,i=t.byteLength,a=[],n=1;n<i-2;)0===t[n]&&0===t[n+1]&&3===t[n+2]?(a.push(n+2),n+=2):n++;if(0===a.length)return t;e=i-a.length,r=new Uint8Array(e);var o=0;for(n=0;n<e;o++,n++)o===a[0]&&(o++,a.shift()),r[n]=t[o];return r},t.prototype._parseAACPES=function(t){var e,r,i,a,n,o=this._audioTrack,s=t.data,l=t.pts,u=0,d=this.aacOverFlow,f=this.aacLastPTS;if(d){var g=new Uint8Array(d.byteLength+s.byteLength);g.set(d,0),g.set(s,d.byteLength),s=g}for(i=u,n=s.length;i<n-1&&!c(s,i);i++);if(i){var m,y;if(i<n-1?(m="AAC PES did not start with ADTS header,offset:"+i,y=!1):(m="no ADTS header found in AAC PES",y=!0),N.b.warn("parsing error:"+m),this.observer.trigger(k.a.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_PARSING_ERROR,fatal:y,reason:m}),y)return}if(h(o,this.observer,s,i,this.audioCodec),r=0,e=p(o.samplerate),d&&f){var b=f+e;Math.abs(b-l)>1&&(N.b.log("AAC: align PTS for overlapping frames by "+Math.round((b-l)/90)),l=b)}for(;i<n;)if(c(s,i)&&i+5<n){var E=v(o,s,i,l,r);if(!E)break;i+=E.length,a=E.sample.pts,r++}else i++;d=i<n?s.subarray(i,n):null,this.aacOverFlow=d,this.aacLastPTS=a},t.prototype._parseMPEGPES=function(t){for(var e=t.data,r=e.length,i=0,a=0,n=t.pts;a<r;)if(q.isHeader(e,a)){var o=q.appendFrame(this._audioTrack,e,a,n,i);if(!o)break;a+=o.length,i++}else a++},t.prototype._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),$=J,Z=function(){function t(e,r,i){R(this,t),this.observer=e,this.config=i,this.remuxer=r}return t.prototype.resetInitSegment=function(t,e,r,i){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},t.prototype.resetTimeStamp=function(){},t.probe=function(t){var e,r,i=B.a.getID3Data(t,0);if(i&&void 0!==B.a.getTimeStamp(i))for(e=i.length,r=Math.min(t.length-1,e+100);e<r;e++)if(q.probe(t,e))return N.b.log("MPEG Audio sync word found !"),!0;return!1},t.prototype.append=function(t,e,r,i){for(var a=B.a.getID3Data(t,0),n=90*B.a.getTimeStamp(a),o=a.length,s=t.length,l=0,u=0,d=this._audioTrack,c=[{pts:n,dts:n,data:a}];o<s;)if(q.isHeader(t,o)){var f=q.appendFrame(d,t,o,n,l);if(!f)break;o+=f.length,u=f.sample.pts,l++}else B.a.isHeader(t,o)?(a=B.a.getID3Data(t,o),c.push({pts:u,dts:u,data:a}),o+=a.length):o++;this.remuxer.remux(d,{samples:[]},{samples:c,inputTimeScale:9e4},{samples:[]},e,r,i)},t.prototype.destroy=function(){},t}(),tt=Z,et=function(){function t(){S(this,t)}return t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),rt=et,it=Math.pow(2,32)-1,at=function(){function t(){A(this,t)}return t.init=function(){t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var e;for(e in t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:r,audio:i};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=n,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,o,l,o,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,a))},t.box=function(t){for(var e,r=Array.prototype.slice.call(arguments,1),i=8,a=r.length,n=a;a--;)i+=r[a].byteLength;for(e=new Uint8Array(i),e[0]=i>>24&255,e[1]=i>>16&255,e[2]=i>>8&255,e[3]=255&i,e.set(t,4),a=0,i=8;a<n;a++)e.set(r[a],i),i+=r[a].byteLength;return e},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var i=Math.floor(r/(it+1)),a=Math.floor(r%(it+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return"audio"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,i){return t.box(t.types.moof,t.mfhd(e),t.traf(i,r))},t.moov=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(i))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(it+1)),a=Math.floor(r%(it+1)),n=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,n)},t.sdtp=function(e){var r,i,a=e.samples||[],n=new Uint8Array(4+a.length);for(i=0;i<a.length;i++)r=a[i].flags,n[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return t.box(t.types.sdtp,n)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r,i,a,n=[],o=[];for(r=0;r<e.sps.length;r++)i=e.sps[r],a=i.byteLength,n.push(a>>>8&255),n.push(255&a),n=n.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],a=i.byteLength,o.push(a>>>8&255),o.push(255&a),o=o.concat(Array.prototype.slice.call(i));var s=t.box(t.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|e.sps.length].concat(n).concat([e.pps.length]).concat(o))),l=e.width,u=e.height,d=e.pixelRatio[0],c=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,c>>24,c>>16&255,c>>8&255,255&c])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,a=e.width,n=e.height,o=Math.floor(i/(it+1)),s=Math.floor(i%(it+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,255&a,0,0,n>>8&255,255&n,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),a=e.id,n=Math.floor(r/(it+1)),o=Math.floor(r%(it+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var i,a,n,o,s,l,u=e.samples||[],d=u.length,c=12+16*d,f=new Uint8Array(c);for(r+=8+c,f.set([0,0,15,1,d>>>24&255,d>>>16&255,d>>>8&255,255&d,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i<d;i++)a=u[i],n=a.duration,o=a.size,s=a.flags,l=a.cts,f.set([n>>>24&255,n>>>16&255,n>>>8&255,255&n,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*i);
|
24 |
+
return t.box(t.types.trun,f)},t.initSegment=function(e){t.types||t.init();var r,i=t.moov(e);return r=new Uint8Array(t.FTYP.byteLength+i.byteLength),r.set(t.FTYP),r.set(i,t.FTYP.byteLength),r},t}(),nt=at,ot=1e4,st=function(){function t(e,r,i,a){w(this,t),this.observer=e,this.config=r,this.typeSupported=i;var n=navigator.userAgent;this.isSafari=a&&a.indexOf("Apple")>-1&&n&&!n.match("CriOS"),this.ISGenerated=!1}return t.prototype.destroy=function(){},t.prototype.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},t.prototype.resetInitSegment=function(){this.ISGenerated=!1},t.prototype.remux=function(t,e,r,i,a,n,o){if(this.ISGenerated||this.generateIS(t,e,a),this.ISGenerated){var s=t.samples.length,l=e.samples.length,u=a,d=a;if(s&&l){var c=(t.samples[0].dts-e.samples[0].dts)/e.inputTimeScale;u+=Math.max(0,c),d+=Math.max(0,-c)}if(s){t.timescale||(N.b.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,a));var f=this.remuxAudio(t,u,n,o);if(l){var h=void 0;f&&(h=f.endPTS-f.startPTS),e.timescale||(N.b.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,a)),this.remuxVideo(e,d,n,h,o)}}else{var p=void 0;l&&(p=this.remuxVideo(e,d,n,o)),p&&t.codec&&this.remuxEmptyAudio(t,u,n,p)}}r.samples.length&&this.remuxID3(r,a),i.samples.length&&this.remuxText(i,a),this.observer.trigger(k.a.FRAG_PARSED)},t.prototype.generateIS=function(t,e,r){var i,a,n=this.observer,o=t.samples,s=e.samples,l=this.typeSupported,u="audio/mp4",d={},c={tracks:d},f=void 0===this._initPTS;if(f&&(i=a=1/0),t.config&&o.length&&(t.timescale=t.samplerate,N.b.log("audio sampling rate : "+t.samplerate),t.isAAC||(l.mpeg?(u="audio/mpeg",t.codec=""):l.mp3&&(t.codec="mp3")),d.audio={container:u,codec:t.codec,initSegment:!t.isAAC&&l.mpeg?new Uint8Array:nt.initSegment([t]),metadata:{channelCount:t.channelCount}},f&&(i=a=o[0].pts-t.inputTimeScale*r)),e.sps&&e.pps&&s.length){var h=e.inputTimeScale;e.timescale=h,d.video={container:"video/mp4",codec:e.codec,initSegment:nt.initSegment([e]),metadata:{width:e.width,height:e.height}},f&&(i=Math.min(i,s[0].pts-h*r),a=Math.min(a,s[0].dts-h*r),this.observer.trigger(k.a.INIT_PTS_FOUND,{initPTS:i}))}Object.keys(d).length?(n.trigger(k.a.FRAG_PARSING_INIT_SEGMENT,c),this.ISGenerated=!0,f&&(this._initPTS=i,this._initDTS=a)):n.trigger(k.a.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},t.prototype.remuxVideo=function(t,e,r,i,a){var n,o,s,l,u,d,c,f,h=8,p=t.timescale,g=t.samples,v=[],m=g.length,y=this._PTSNormalize,b=this._initDTS,E=this.nextAvcDts,T=this.isSafari;T&&(r|=g.length&&E&&(a&&Math.abs(e-E/p)<.1||Math.abs(g[0].pts-E-b)<p/5)),r||(E=e*p),g.forEach(function(t){t.pts=y(t.pts-b,E),t.dts=y(t.dts-b,E)}),g.sort(function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r?r:i?i:t.id-e.id});var R=g.reduce(function(t,e){return Math.max(Math.min(t,e.pts-e.dts),-18e3)},0);if(R<0){N.b.warn("PTS < DTS detected in video samples, shifting DTS by "+Math.round(R/90)+" ms to overcome this issue");for(var S=0;S<g.length;S++)g[S].dts+=R}var A=g[0];u=Math.max(A.dts,0),l=Math.max(A.pts,0);var w=Math.round((u-E)/90);r&&w&&(w>1?N.b.log("AVC:"+w+" ms hole between fragments detected,filling it"):w<-1&&N.b.log("AVC:"+-w+" ms overlapping between fragments detected"),u=E,g[0].dts=u,l=Math.max(l-w,E),g[0].pts=l,N.b.log("Video/PTS/DTS adjusted: "+Math.round(l/90)+"/"+Math.round(u/90)+",delta:"+w+" ms")),d=u,A=g[g.length-1],f=Math.max(A.dts,0),c=Math.max(A.pts,0,f),T&&(n=Math.round((f-u)/(g.length-1)));for(var _=0,L=0,I=0;I<m;I++){for(var O=g[I],C=O.units,x=C.length,P=0,F=0;F<x;F++)P+=C[F].data.length;L+=P,_+=x,O.length=P,T?O.dts=u+I*n:O.dts=Math.max(O.dts,u),O.pts=Math.max(O.pts,O.dts)}var M=L+4*_+8;try{o=new Uint8Array(M)}catch(t){return void this.observer.trigger(k.a.ERROR,{type:D.b.MUX_ERROR,details:D.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:M,reason:"fail allocating video mdat "+M})}var U=new DataView(o.buffer);U.setUint32(0,M),o.set(nt.types.mdat,4);for(var B=0;B<m;B++){for(var G=g[B],j=G.units,K=0,H=void 0,W=0,V=j.length;W<V;W++){var q=j[W],Y=q.data,z=q.data.byteLength;U.setUint32(h,z),h+=4,o.set(Y,h),h+=z,K+=4+z}if(T)H=Math.max(0,n*Math.round((G.pts-G.dts)/n));else{if(B<m-1)n=g[B+1].dts-G.dts;else{var X=this.config,Q=G.dts-g[B>0?B-1:B].dts;if(X.stretchShortVideoTrack){var J=X.maxBufferHole,$=X.maxSeekHole,Z=Math.floor(Math.min(J,$)*p),tt=(i?l+i*p:this.nextAudioPts)-G.pts;tt>Z?(n=tt-Q,n<0&&(n=Q),N.b.log("It is approximately "+tt/90+" ms to the next segment; using duration "+n/90+" ms for the last video frame.")):n=Q}else n=Q}H=Math.round(G.pts-G.dts)}v.push({size:K,duration:n,cts:H,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:G.key?2:1,isNonSync:G.key?0:1}})}this.nextAvcDts=f+n;var et=t.dropped;if(t.len=0,t.nbNalu=0,t.dropped=0,v.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var rt=v[0].flags;rt.dependsOn=2,rt.isNonSync=0}t.samples=v,s=nt.moof(t.sequenceNumber++,u,t),t.samples=[];var it={data1:s,data2:o,startPTS:l/p,endPTS:(c+n)/p,startDTS:u/p,endDTS:this.nextAvcDts/p,type:"video",nb:v.length,dropped:et};return this.observer.trigger(k.a.FRAG_PARSING_DATA,it),it},t.prototype.remuxAudio=function(t,e,r,i){var a,n,o,s,l,u,d,c=t.inputTimeScale,f=t.timescale,h=c/f,p=t.isAAC?1024:1152,g=p*h,v=this._PTSNormalize,m=this._initDTS,y=!t.isAAC&&this.typeSupported.mpeg,b=t.samples,E=[],T=this.nextAudioPts;if(r|=b.length&&T&&(i&&Math.abs(e-T/c)<.1||Math.abs(b[0].pts-T-m)<20*g),r||(T=e*c),b.forEach(function(t){t.pts=t.dts=v(t.pts-m,T)}),b.sort(function(t,e){return t.pts-e.pts}),i&&t.isAAC)for(var R=this.config.maxAudioFramesDrift,S=0,A=T;S<b.length;){var w,_=b[S],L=_.pts;w=L-A;var I=Math.abs(1e3*w/c);if(w<=-R*g)N.b.warn("Dropping 1 audio frame @ "+(A/c).toFixed(3)+"s due to "+Math.round(I)+" ms overlap."),b.splice(S,1),t.len-=_.unit.length;else if(w>=R*g&&I<ot&&A){var O=Math.round(w/g);N.b.warn("Injecting "+O+" audio frame @ "+(A/c).toFixed(3)+"s due to "+Math.round(1e3*w/c)+" ms gap.");for(var C=0;C<O;C++){var x=Math.max(A,0);o=rt.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),o||(N.b.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),o=_.unit.subarray()),b.splice(S,0,{unit:o,pts:x,dts:x}),t.len+=o.length,A+=g,S++}_.pts=_.dts=A,A+=g,S++}else Math.abs(w)>.1*g,_.pts=_.dts=A,A+=g,S++}for(var P=0,F=b.length;P<F;P++){var M=b[P],U=M.unit,B=M.pts;if(void 0!==d)n.duration=Math.round((B-d)/h);else{var G=Math.round(1e3*(B-T)/c),j=0;if(r&&t.isAAC&&G){if(G>0&&G<ot)j=Math.round((B-T)/g),N.b.log(G+" ms hole between AAC samples detected,filling it"),j>0&&(o=rt.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),o||(o=U.subarray()),t.len+=j*o.length);else if(G<-12){N.b.log("drop overlapping AAC sample, expected/parsed/delta:"+(T/c).toFixed(3)+"s/"+(B/c).toFixed(3)+"s/"+-G+"ms"),t.len-=U.byteLength;continue}B=T}if(u=Math.max(0,B),!(t.len>0))return;var K=y?t.len:t.len+8;a=y?0:8;try{s=new Uint8Array(K)}catch(t){return void this.observer.trigger(k.a.ERROR,{type:D.b.MUX_ERROR,details:D.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:K,reason:"fail allocating audio mdat "+K})}if(!y){var H=new DataView(s.buffer);H.setUint32(0,K),s.set(nt.types.mdat,4)}for(var W=0;W<j;W++)o=rt.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),o||(N.b.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),o=U.subarray()),s.set(o,a),a+=o.byteLength,n={size:o.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},E.push(n)}s.set(U,a);var V=U.byteLength;a+=V,n={size:V,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},E.push(n),d=B}var q=0,Y=E.length;if(Y>=2&&(q=E[Y-2].duration,n.duration=q),Y){this.nextAudioPts=T=d+h*q,t.len=0,t.samples=E,l=y?new Uint8Array:nt.moof(t.sequenceNumber++,u/h,t),t.samples=[];var z=u/c,X=T/c,Q={data1:l,data2:s,startPTS:z,endPTS:X,startDTS:z,endDTS:X,type:"audio",nb:Y};return this.observer.trigger(k.a.FRAG_PARSING_DATA,Q),Q}return null},t.prototype.remuxEmptyAudio=function(t,e,r,i){var a=t.inputTimeScale,n=t.samplerate?t.samplerate:a,o=a/n,s=this.nextAudioPts,l=(void 0!==s?s:i.startDTS*a)+this._initDTS,u=i.endDTS*a+this._initDTS,d=1024,c=o*d,f=Math.ceil((u-l)/c),h=rt.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(N.b.warn("remux empty Audio"),!h)return void N.b.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!");for(var p=[],g=0;g<f;g++){var v=l+g*c;p.push({unit:h,pts:v,dts:v}),t.len+=h.length}t.samples=p,this.remuxAudio(t,e,r)},t.prototype.remuxID3=function(t,e){var r,i=t.samples.length,a=t.inputTimeScale,n=this._initPTS,o=this._initDTS;if(i){for(var s=0;s<i;s++)r=t.samples[s],r.pts=(r.pts-n)/a,r.dts=(r.dts-o)/a;this.observer.trigger(k.a.FRAG_PARSING_METADATA,{samples:t.samples})}t.samples=[],e=e},t.prototype.remuxText=function(t,e){t.samples.sort(function(t,e){return t.pts-e.pts});var r,i=t.samples.length,a=t.inputTimeScale,n=this._initPTS;if(i){for(var o=0;o<i;o++)r=t.samples[o],r.pts=(r.pts-n)/a;this.observer.trigger(k.a.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[],e=e},t.prototype._PTSNormalize=function(t,e){var r;if(void 0===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t},t}(),lt=st,ut=function(){function t(e){_(this,t),this.observer=e}return t.prototype.destroy=function(){},t.prototype.resetTimeStamp=function(){},t.prototype.resetInitSegment=function(){},t.prototype.remux=function(t,e,r,i,a,n,o,s){var l=this.observer,u="";t&&(u+="audio"),e&&(u+="video"),l.trigger(k.a.FRAG_PARSING_DATA,{data1:s,startPTS:a,startDTS:a,type:u,nb:1,dropped:0}),l.trigger(k.a.FRAG_PARSED)},t}(),dt=ut,ct=function(){function t(e,r,i,a){L(this,t),this.observer=e,this.typeSupported=r,this.config=i,this.vendor=a}return t.prototype.destroy=function(){var t=this.demuxer;t&&t.destroy()},t.prototype.push=function(t,e,r,i,a,n,o,s,l,u,d,c){if(t.byteLength>0&&null!=e&&null!=e.key&&"AES-128"===e.method){var f=this.decrypter;null==f&&(f=this.decrypter=new U(this.observer,this.config));var h,p=this;try{h=performance.now()}catch(t){h=Date.now()}f.decrypt(t,e.key.buffer,e.iv.buffer,function(t){var f;try{f=performance.now()}catch(t){f=Date.now()}p.observer.trigger(k.a.FRAG_DECRYPTED,{stats:{tstart:h,tdecrypt:f}}),p.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,n,o,s,l,u,d,c)})}else this.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,n,o,s,l,u,d,c)},t.prototype.pushDecrypted=function(t,e,r,i,a,n,o,s,l,u,d,c){var f=this.demuxer;if(!f||o&&!this.probe(t)){for(var h=this.observer,p=this.typeSupported,g=this.config,v=[{demux:$,remux:lt},{demux:j,remux:lt},{demux:tt,remux:lt},{demux:W,remux:dt}],m=0,y=v.length;m<y;m++){var b=v[m],E=b.demux.probe;if(E(t)){var T=this.remuxer=new b.remux(h,g,p,this.vendor);f=new b.demux(h,T,g,p),this.probe=E;break}}if(!f)return void h.trigger(k.a.ERROR,{type:D.b.MEDIA_ERROR,details:D.a.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});this.demuxer=f}var R=this.remuxer;(o||s)&&(f.resetInitSegment(r,i,a,u),R.resetInitSegment()),o&&(f.resetTimeStamp(c),R.resetTimeStamp(c)),"function"==typeof f.setDecryptData&&f.setDecryptData(e),f.append(t,n,l,d)},t}();e.a=ct},function(t,e,r){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){var r=Mt[e];return!!r&&r[t.slice(0,4)]===!0}function o(t){return MediaSource.isTypeSupported('video/mp4;codecs="'+t+'"')}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e,r){var i=t[e],a=t[r],n=a.startPTS;isNaN(n)?r>e?a.start=i.start+i.duration:a.start=Math.max(i.start-a.duration,0):r>e?(i.duration=n-i.start,i.duration<0&&Dt.b.warn("negative duration computed for frag "+i.sn+",level "+i.level+", there should be some duration drift between playlist and fragment!")):(a.duration=i.start-n,a.duration<0&&Dt.b.warn("negative duration computed for frag "+a.sn+",level "+a.level+", there should be some duration drift between playlist and fragment!"))}function y(t,e,r,i,a,n){var o=r;if(!isNaN(e.startPTS)){var s=Math.abs(e.startPTS-r);isNaN(e.deltaPTS)?e.deltaPTS=s:e.deltaPTS=Math.max(s,e.deltaPTS),o=Math.max(r,e.startPTS),r=Math.min(r,e.startPTS),i=Math.max(i,e.endPTS),a=Math.min(a,e.startDTS),n=Math.max(n,e.endDTS)}var l=r-e.start;e.start=e.startPTS=r,e.maxStartPTS=o,e.endPTS=i,e.startDTS=a,e.endDTS=n,e.duration=i-r;var u=e.sn;if(!t||u<t.startSN||u>t.endSN)return 0;var d,c,f;for(d=u-t.startSN,c=t.fragments,c[d]=e,f=d;f>0;f--)m(c,f,f-1);for(f=d;f<c.length-1;f++)m(c,f,f+1);return t.PTSKnown=!0,l}function b(t,e){var r,i=Math.max(t.startSN,e.startSN)-e.startSN,a=Math.min(t.endSN,e.endSN)-e.startSN,n=e.startSN-t.startSN,o=t.fragments,s=e.fragments,l=0;if(a<i)return void(e.PTSKnown=!1);for(var u=i;u<=a;u++){var d=o[n+u],c=s[u];c&&d&&(l=d.cc-c.cc,isNaN(d.startPTS)||(c.start=c.startPTS=d.startPTS,c.endPTS=d.endPTS,c.duration=d.duration,c.backtracked=d.backtracked,c.dropped=d.dropped,r=c))}if(l)for(Dt.b.log("discontinuity sliding from playlist, take drift into account"),u=0;u<s.length;u++)s[u].cc+=l;if(r)y(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS);else if(n>=0&&n<o.length){var f=o[n].start;for(u=0;u<s.length;u++)s[u].start+=f}e.PTSKnown=t.PTSKnown}function E(t,e){for(var r=null,i=0;i<t.length;i+=1){var a=t[i];if(a&&a.cc===e){r=a;break}}return r}function T(t,e){return $t.search(t,function(t){return t.cc<e?1:t.cc>e?-1:0})}function R(t,e,r){var i=!1;return e&&e.details&&r&&(r.endCC>r.startCC||t&&t.cc<r.startCC)&&(i=!0),i}function S(t,e){var r=t.fragments,i=e.fragments;if(!i.length||!r.length)return void Dt.b.log("No fragments to align");var a=E(r,i[0].cc);return!a||a&&!a.startPTS?void Dt.b.log("No frag in previous level to align on"):a}function A(t,e){e.fragments.forEach(function(e){if(e){var r=e.start+t;e.start=e.startPTS=r,e.endPTS=r+e.duration}}),e.PTSKnown=!0}function w(t,e,r){if(R(t,e,r)){var i=S(e.details,r);i&&(Dt.b.log("Adjusting PTS using last level due to CC increase within current level"),A(i.start,r))}if(r.PTSKnown===!1&&e&&e.details){var a=e.details.programDateTime,n=r.programDateTime,o=(n-a)/1e3+e.details.fragments[0].start;isNaN(o)||(Dt.b.log("adjusting PTS using programDateTime delta, sliding:"+o.toFixed(3)),A(o,r))}}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function B(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function G(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function K(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function V(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function z(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function $(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function rt(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new We,this.regionList=[]}function it(t){function e(t,e,r,i){return 3600*(0|t)+60*(0|e)+(0|r)+(0|i)/1e3}var r=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?e(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function at(){this.values=Object.create(null)}function nt(t,e,r,i){var a=i?t.split(i):[t];for(var n in a)if("string"==typeof a[n]){var o=a[n].split(r);if(2===o.length){var s=o[0],l=o[1];e(s,l)}}}function ot(t,e,r){function i(){var e=it(t);if(null===e)throw new Error("Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(t,e){var i=new at;nt(t,function(t,e){switch(t){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===e){i.set(t,r[a].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var n=e.split(","),o=n[0];i.integer(t,o),i.percent(t,o)&&i.set("snapToLines",!1),i.alt(t,o,["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start",qe,"end"]);break;case"position":n=e.split(","),i.percent(t,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start",qe,"end","line-left","line-right","auto"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start",qe,"end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");var a=i.get("line","auto");"auto"===a&&Ve.line===-1&&(a=-1),e.line=a,e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align",qe);var n=i.get("position","auto");"auto"===n&&50===Ve.position&&(n="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=n}function n(){t=t.replace(/^\s+/,"")}var o=t;if(n(),e.startTime=i(),n(),"-->"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);t=t.substr(3),n(),e.endTime=i(),n(),a(t,e)}function st(t){return t.replace(/<br(?: \/)?>/gi,"\n")}function lt(t,e,r,i){for(var a,n,o,s,l,u=window.VTTCue||window.TextTrackCue,d=0;d<i.rows.length;d++)if(a=i.rows[d],o=!0,s=0,l="",!a.isEmpty()){for(var c=0;c<a.chars.length;c++)a.chars[c].uchar.match(/\s/)&&o?s++:(l+=a.chars[c].uchar,o=!1);a.cueStartTime=e,e===r&&(r+=1e-4),n=new u(e,r,st(l.trim())),s>=16?s--:s++,navigator.userAgent.match(/Firefox\//)?n.line=d+1:n.line=d>7?d-2:d+1,n.align="left",n.position=Math.max(0,Math.min(100,100*(s/32)+(navigator.userAgent.match(/Firefox\//)?50:0))),t.addCue(n)}}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ct(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ht(t){if(t&&t.cues)for(;t.cues.length>0;)t.removeCue(t.cues[0])}function pt(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}function gt(t,e,r,i){return Math.min(e,i)-Math.max(t,r)}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function yt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function bt(t){for(var e=[],r=0;r<t.length;r++)"subtitles"===t[r].kind&&e.push(t[r]);return e}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function Rt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var At={};r.d(At,"newCue",function(){return lt});var wt=r(5),_t=r.n(wt),Lt=r(1),kt=r(2),Dt=r(0),It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ot=function(){function t(e){i(this,t),this.hls=e,this.onEvent=this.onEvent.bind(this);for(var r=arguments.length,a=Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.handledEvents=a,this.useGenericHandler=!0,this.registerListeners()}return t.prototype.destroy=function(){this.unregisterListeners()},t.prototype.isEventHandler=function(){return"object"===It(this.handledEvents)&&this.handledEvents.length&&"function"==typeof this.onEvent},t.prototype.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){if("hlsEventGeneric"===t)throw new Error("Forbidden event name: "+t);this.hls.on(t,this.onEvent)},this)},t.prototype.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){this.hls.off(t,this.onEvent)},this)},t.prototype.onEvent=function(t,e){this.onEventGeneric(t,e)},t.prototype.onEventGeneric=function(t,e){var r=function(t,e){var r="on"+t.replace("hls","");if("function"!=typeof this[r])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+r+")");return this[r].bind(this,e)};try{r.call(this,t,e).call()}catch(e){Dt.b.error("internal error happened while processing "+t+":"+e.message),this.hls.trigger(Lt.a.ERROR,{type:kt.b.OTHER_ERROR,details:kt.a.INTERNAL_EXCEPTION,fatal:!1,event:t,err:e})}},t}(),Ct=Ot,xt=/^(\d+)x(\d+)$/,Pt=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,Ft=function(){function t(e){a(this,t),"string"==typeof e&&(e=t.parseAttrList(e));for(var r in e)e.hasOwnProperty(r)&&(this[r]=e[r])}return t.prototype.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},t.prototype.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var r=new Uint8Array(e.length/2),i=0;i<e.length/2;i++)r[i]=parseInt(e.slice(2*i,2*i+2),16);return r}return null},t.prototype.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},t.prototype.decimalFloatingPoint=function(t){return parseFloat(this[t])},t.prototype.enumeratedString=function(t){return this[t]},t.prototype.decimalResolution=function(t){var e=xt.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,r={};for(Pt.lastIndex=0;null!==(e=Pt.exec(t));){var i=e[2],a='"';0===i.indexOf(a)&&i.lastIndexOf(a)===i.length-1&&(i=i.slice(1,-1)),r[e[1]]=i}return r},t}(),Nt=Ft,Mt={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}},Ut=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Bt=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,Gt=/#EXT-X-MEDIA:(.*)/g,jt=new RegExp([/#EXTINF:(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),Kt=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,Ht=function(){function t(){u(this,t),this.method=null,this.key=null,this.iv=null,this._uri=null}return Ut(t,[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=_t.a.buildAbsoluteURL(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]),t}(),Wt=function(){function t(){u(this,t),this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[]}return t.prototype.createInitializationVector=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e},t.prototype.fragmentDecryptdataFromLevelkey=function(t,e){var r=t;return t&&t.method&&t.uri&&!t.iv&&(r=new Ht,r.method=t.method,r.baseuri=t.baseuri,r.reluri=t.reluri,r.iv=this.createInitializationVector(e)),r},t.prototype.cloneObj=function(t){return JSON.parse(JSON.stringify(t))},Ut(t,[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=_t.a.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"programDateTime",get:function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime}},{key:"byteRange",get:function(){if(!this._byteRange){var t=this._byteRange=[];if(this.rawByteRange){var e=this.rawByteRange.split("@",2);if(1===e.length){var r=this.lastByteRangeEndOffset;t[0]=r?r:0}else t[0]=parseInt(e[1]);t[1]=parseInt(e[0])+t[0]}}return this._byteRange}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",
|
25 |
+
get:function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata}}]),t}(),Vt=function(t){function e(r){u(this,e);var i=s(this,t.call(this,r,Lt.a.MANIFEST_LOADING,Lt.a.LEVEL_LOADING,Lt.a.AUDIO_TRACK_LOADING,Lt.a.SUBTITLE_TRACK_LOADING));return i.loaders={},i}return l(e,t),e.prototype.destroy=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy()}this.loaders={},Ct.prototype.destroy.call(this)},e.prototype.onManifestLoading=function(t){this.load(t.url,{type:"manifest"})},e.prototype.onLevelLoading=function(t){this.load(t.url,{type:"level",level:t.level,id:t.id})},e.prototype.onAudioTrackLoading=function(t){this.load(t.url,{type:"audioTrack",id:t.id})},e.prototype.onSubtitleTrackLoading=function(t){this.load(t.url,{type:"subtitleTrack",id:t.id})},e.prototype.load=function(t,e){var r=this.loaders[e.type];if(r){var i=r.context;if(i&&i.url===t)return void Dt.b.trace("playlist request ongoing");Dt.b.warn("abort previous loader for type:"+e.type),r.abort()}var a=this.hls.config,n=void 0,o=void 0,s=void 0,l=void 0;"manifest"===e.type?(n=a.manifestLoadingMaxRetry,o=a.manifestLoadingTimeOut,s=a.manifestLoadingRetryDelay,l=a.manifestLoadingMaxRetryTimeout):(n=a.levelLoadingMaxRetry,o=a.levelLoadingTimeOut,s=a.levelLoadingRetryDelay,l=a.levelLoadingMaxRetryTimeout,Dt.b.log("loading playlist for "+e.type+" "+(e.level||e.id))),r=this.loaders[e.type]=e.loader="undefined"!=typeof a.pLoader?new a.pLoader(a):new a.loader(a),e.url=t,e.responseType="";var u=void 0,d=void 0;u={timeout:o,maxRetry:n,retryDelay:s,maxRetryDelay:l},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)},e.url=e.url+"?no_cache="+Math.random(),r.load(e,u,d)},e.prototype.resolve=function(t,e){return _t.a.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},e.prototype.parseMasterPlaylist=function(t,e){function r(t,e){["video","audio"].forEach(function(r){var i=t.filter(function(t){return n(t,r)});if(i.length){var a=i.filter(function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)});e[r+"Codec"]=a.length>0?a[0]:i[0],t=t.filter(function(t){return i.indexOf(t)===-1})}}),e.unknownCodecs=t}var i=[],a=void 0;for(Bt.lastIndex=0;null!=(a=Bt.exec(t));){var o={},s=o.attrs=new Nt(a[1]);o.url=this.resolve(a[2],e);var l=s.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),o.bitrate=s.decimalInteger("AVERAGE-BANDWIDTH")||s.decimalInteger("BANDWIDTH"),o.name=s.NAME,r([].concat((s.CODECS||"").split(/[ ,]+/)),o),o.videoCodec&&o.videoCodec.indexOf("avc1")!==-1&&(o.videoCodec=this.avc1toavcoti(o.videoCodec)),i.push(o)}return i},e.prototype.parseMasterPlaylistMedia=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=void 0,n=[],o=0;for(Gt.lastIndex=0;null!=(a=Gt.exec(t));){var s={},l=new Nt(a[1]);l.TYPE===r&&(s.groupId=l["GROUP-ID"],s.name=l.NAME,s.type=r,s.default="YES"===l.DEFAULT,s.autoselect="YES"===l.AUTOSELECT,s.forced="YES"===l.FORCED,l.URI&&(s.url=this.resolve(l.URI,e)),s.lang=l.LANGUAGE,s.name||(s.name=s.lang),i&&(s.audioCodec=i),s.id=o++,n.push(s))}return n},e.prototype.avc1toavcoti=function(t){var e,r=t.split(".");return r.length>2?(e=r.shift()+".",e+=parseInt(r.shift()).toString(16),e+=("000"+parseInt(r.shift()).toString(16)).substr(-4)):e=t,e},e.prototype.parseLevelPlaylist=function(t,e,r,i){var a,n,o=0,s=0,l={type:null,version:null,url:e,fragments:[],live:!0,startSN:0},u=new Ht,d=0,c=null,f=new Wt;for(jt.lastIndex=0;null!==(a=jt.exec(t));){var h=a[1];if(h){f.duration=parseFloat(h);var p=(" "+a[2]).slice(1);f.title=p?p:null,f.tagList.push(p?["INF",h,p]:["INF",h])}else if(a[3]){if(!isNaN(f.duration)){var g=o++;f.type=i,f.start=s,f.levelkey=u,f.sn=g,f.level=r,f.cc=d,f.baseurl=e,f.relurl=(" "+a[3]).slice(1),l.fragments.push(f),c=f,s+=f.duration,f=new Wt}}else if(a[4]){if(f.rawByteRange=(" "+a[4]).slice(1),c){var v=c.byteRangeEndOffset;v&&(f.lastByteRangeEndOffset=v)}}else if(a[5])f.rawProgramDateTime=(" "+a[5]).slice(1),f.tagList.push(["PROGRAM-DATE-TIME",f.rawProgramDateTime]),void 0===l.programDateTime&&(l.programDateTime=new Date(new Date(Date.parse(a[5]))-1e3*s));else{for(a=a[0].match(Kt),n=1;n<a.length&&void 0===a[n];n++);var m=(" "+a[n+1]).slice(1),y=(" "+a[n+2]).slice(1);switch(a[n]){case"#":f.tagList.push(y?[m,y]:[m]);break;case"PLAYLIST-TYPE":l.type=m.toUpperCase();break;case"MEDIA-SEQUENCE":o=l.startSN=parseInt(m);break;case"TARGETDURATION":l.targetduration=parseFloat(m);break;case"VERSION":l.version=parseInt(m);break;case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"DIS":d++,f.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":d=parseInt(m);break;case"KEY":var b=m,E=new Nt(b),T=E.enumeratedString("METHOD"),R=E.URI,S=E.hexadecimalInteger("IV");T&&(u=new Ht,R&&["AES-128","SAMPLE-AES"].indexOf(T)>=0&&(u.method=T,u.baseuri=e,u.reluri=R,u.key=null,u.iv=S));break;case"START":var A=m,w=new Nt(A),_=w.decimalFloatingPoint("TIME-OFFSET");isNaN(_)||(l.startTimeOffset=_);break;case"MAP":var L=new Nt(m);f.relurl=L.URI,f.rawByteRange=L.BYTERANGE,f.baseurl=e,f.level=r,f.type=i,f.sn="initSegment",l.initSegment=f,f=new Wt;break;default:Dt.b.warn("line parsed but not handled: "+a)}}}return f=c,f&&!f.relurl&&(l.fragments.pop(),s-=f.duration),l.totalduration=s,l.averagetargetduration=s/l.fragments.length,l.endSN=o-1,l.startCC=l.fragments[0]?l.fragments[0].cc:0,l.endCC=d,l},e.prototype.loadsuccess=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=t.data,n=t.url,o=r.type,s=r.id,l=r.level,u=this.hls;if(this.loaders[o]=void 0,void 0!==n&&0!==n.indexOf("data:")||(n=r.url),e.tload=performance.now(),0===a.indexOf("#EXTM3U"))if(a.indexOf("#EXTINF:")>0){var d="audioTrack"!==o&&"subtitleTrack"!==o,c=isNaN(l)?isNaN(s)?0:s:l,f=this.parseLevelPlaylist(a,n,c,"audioTrack"===o?"audio":"subtitleTrack"===o?"subtitle":"main");f.tload=e.tload,"manifest"===o&&u.trigger(Lt.a.MANIFEST_LOADED,{levels:[{url:n,details:f}],audioTracks:[],url:n,stats:e,networkDetails:i}),e.tparsed=performance.now(),f.targetduration?d?u.trigger(Lt.a.LEVEL_LOADED,{details:f,level:l||0,id:s||0,stats:e,networkDetails:i}):"audioTrack"===o?u.trigger(Lt.a.AUDIO_TRACK_LOADED,{details:f,id:s,stats:e,networkDetails:i}):"subtitleTrack"===o&&u.trigger(Lt.a.SUBTITLE_TRACK_LOADED,{details:f,id:s,stats:e,networkDetails:i}):u.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.MANIFEST_PARSING_ERROR,fatal:!0,url:n,reason:"invalid targetduration",networkDetails:i})}else{var h=this.parseMasterPlaylist(a,n);if(h.length){var p=this.parseMasterPlaylistMedia(a,n,"AUDIO",h[0].audioCodec),g=this.parseMasterPlaylistMedia(a,n,"SUBTITLES");if(p.length){var v=!1;p.forEach(function(t){t.url||(v=!0)}),v===!1&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(Dt.b.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main"}))}u.trigger(Lt.a.MANIFEST_LOADED,{levels:h,audioTracks:p,subtitles:g,url:n,stats:e,networkDetails:i})}else u.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.MANIFEST_PARSING_ERROR,fatal:!0,url:n,reason:"no level found in manifest",networkDetails:i})}else u.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.MANIFEST_PARSING_ERROR,fatal:!0,url:n,reason:"no EXTM3U delimiter",networkDetails:i})},e.prototype.loaderror=function(t,e){var r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.loader;switch(e.type){case"manifest":r=kt.a.MANIFEST_LOAD_ERROR,i=!0;break;case"level":r=kt.a.LEVEL_LOAD_ERROR,i=!1;break;case"audioTrack":r=kt.a.AUDIO_TRACK_LOAD_ERROR,i=!1}n&&(n.abort(),this.loaders[e.type]=void 0),this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:r,fatal:i,url:n.url,loader:n,response:t,context:e,networkDetails:a})},e.prototype.loadtimeout=function(t,e){var r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.loader;switch(e.type){case"manifest":r=kt.a.MANIFEST_LOAD_TIMEOUT,i=!0;break;case"level":r=kt.a.LEVEL_LOAD_TIMEOUT,i=!1;break;case"audioTrack":r=kt.a.AUDIO_TRACK_LOAD_TIMEOUT,i=!1}n&&(n.abort(),this.loaders[e.type]=void 0),this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:r,fatal:i,url:n.url,loader:n,context:e,networkDetails:a})},e}(Ct),qt=Vt,Yt=function(t){function e(r){d(this,e);var i=c(this,t.call(this,r,Lt.a.FRAG_LOADING));return i.loaders={},i}return f(e,t),e.prototype.destroy=function(){var t=this.loaders;for(var e in t){var r=t[e];r&&r.destroy()}this.loaders={},Ct.prototype.destroy.call(this)},e.prototype.onFragLoading=function(t){var e=t.frag,r=e.type,i=this.loaders[r],a=this.hls.config;e.loaded=0,i&&(Dt.b.warn("abort previous fragment loader for type:"+r),i.abort()),i=this.loaders[r]=e.loader="undefined"!=typeof a.fLoader?new a.fLoader(a):new a.loader(a);var n=void 0,o=void 0,s=void 0;n={url:e.url,frag:e,responseType:"arraybuffer",progressData:!1};var l=e.byteRangeStartOffset,u=e.byteRangeEndOffset;isNaN(l)||isNaN(u)||(n.rangeStart=l,n.rangeEnd=u),o={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout},s={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},i.load(n,o,s)},e.prototype.loadsuccess=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=t.data,n=r.frag;n.loader=void 0,this.loaders[n.type]=void 0,this.hls.trigger(Lt.a.FRAG_LOADED,{payload:a,frag:n,stats:e,networkDetails:i})},e.prototype.loaderror=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:r})},e.prototype.loadtimeout=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:r})},e.prototype.loadprogress=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=e.frag;a.loaded=t.loaded,this.hls.trigger(Lt.a.FRAG_LOAD_PROGRESS,{frag:a,stats:t,networkDetails:i})},e}(Ct),zt=Yt,Xt=function(t){function e(r){h(this,e);var i=p(this,t.call(this,r,Lt.a.KEY_LOADING));return i.loaders={},i.decryptkey=null,i.decrypturl=null,i}return g(e,t),e.prototype.destroy=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy()}this.loaders={},Ct.prototype.destroy.call(this)},e.prototype.onKeyLoading=function(t){var e=t.frag,r=e.type,i=this.loaders[r],a=e.decryptdata,n=a.uri;if(n!==this.decrypturl||null===this.decryptkey){var o=this.hls.config;i&&(Dt.b.warn("abort previous key loader for type:"+r),i.abort()),e.loader=this.loaders[r]=new o.loader(o),this.decrypturl=n,this.decryptkey=null;var s=void 0,l=void 0,u=void 0;s={url:n,frag:e,responseType:"arraybuffer"},l={timeout:o.fragLoadingTimeOut,maxRetry:o.fragLoadingMaxRetry,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout},u={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)},e.loader.load(s,l,u)}else this.decryptkey&&(a.key=this.decryptkey,this.hls.trigger(Lt.a.KEY_LOADED,{frag:e}))},e.prototype.loadsuccess=function(t,e,r){var i=r.frag;this.decryptkey=i.decryptdata.key=new Uint8Array(t.data),i.loader=void 0,this.loaders[i.type]=void 0,this.hls.trigger(Lt.a.KEY_LOADED,{frag:i})},e.prototype.loaderror=function(t,e){var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.KEY_LOAD_ERROR,fatal:!1,frag:r,response:t})},e.prototype.loadtimeout=function(t,e){var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(Lt.a.ERROR,{type:kt.b.NETWORK_ERROR,details:kt.a.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},e}(Ct),Qt=Xt,Jt={search:function(t,e){for(var r=0,i=t.length-1,a=null,n=null;r<=i;){a=(r+i)/2|0,n=t[a];var o=e(n);if(o>0)r=a+1;else{if(!(o<0))return n;i=a-1}}return null}},$t=Jt,Zt={isBuffered:function(t,e){if(t)for(var r=t.buffered,i=0;i<r.length;i++)if(e>=r.start(i)&&e<=r.end(i))return!0;return!1},bufferInfo:function(t,e,r){if(t){var i,a=t.buffered,n=[];for(i=0;i<a.length;i++)n.push({start:a.start(i),end:a.end(i)});return this.bufferedInfo(n,e,r)}return{len:0,start:e,end:e,nextStart:void 0}},bufferedInfo:function(t,e,r){var i,a,n,o,s,l=[];for(t.sort(function(t,e){var r=t.start-e.start;return r?r:e.end-t.end}),s=0;s<t.length;s++){var u=l.length;if(u){var d=l[u-1].end;t[s].start-d<r?t[s].end>d&&(l[u-1].end=t[s].end):l.push(t[s])}else l.push(t[s])}for(s=0,i=0,a=n=e;s<l.length;s++){var c=l[s].start,f=l[s].end;if(e+r>=c&&e<f)a=c,n=f,i=n-e;else if(e+r<c){o=c;break}}return{len:i,start:a,end:n,nextStart:o}}},te=Zt,ee=r(6),re=r(4),ie=r.n(re),ae=r(8),ne=r.n(ae),oe=function(){function t(e,r){v(this,t),this.hls=e,this.id=r;var i=this.observer=new ie.a,a=e.config;i.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),a=1;a<e;a++)r[a-1]=arguments[a];i.emit.apply(i,[t,t].concat(r))},i.off=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),a=1;a<e;a++)r[a-1]=arguments[a];i.removeListener.apply(i,[t].concat(r))};var n=function(t,r){r=r||{},r.frag=this.frag,r.id=this.id,e.trigger(t,r)}.bind(this);i.on(Lt.a.FRAG_DECRYPTED,n),i.on(Lt.a.FRAG_PARSING_INIT_SEGMENT,n),i.on(Lt.a.FRAG_PARSING_DATA,n),i.on(Lt.a.FRAG_PARSED,n),i.on(Lt.a.ERROR,n),i.on(Lt.a.FRAG_PARSING_METADATA,n),i.on(Lt.a.FRAG_PARSING_USERDATA,n),i.on(Lt.a.INIT_PTS_FOUND,n);var o={mp4:MediaSource.isTypeSupported("video/mp4"),mpeg:MediaSource.isTypeSupported("audio/mpeg"),mp3:MediaSource.isTypeSupported('audio/mp4; codecs="mp3"')},s=navigator.vendor;if(a.enableWorker&&"undefined"!=typeof Worker){Dt.b.log("demuxing in webworker");var l=void 0;try{l=this.w=ne()(9),this.onwmsg=this.onWorkerMessage.bind(this),l.addEventListener("message",this.onwmsg),l.onerror=function(t){e.trigger(Lt.a.ERROR,{type:kt.b.OTHER_ERROR,details:kt.a.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:t.message+" ("+t.filename+":"+t.lineno+")"}})},l.postMessage({cmd:"init",typeSupported:o,vendor:s,id:r,config:JSON.stringify(a)})}catch(t){Dt.b.error("error while initializing DemuxerWorker, fallback on DemuxerInline"),l&&URL.revokeObjectURL(l.objectURL),this.demuxer=new ee.a(i,o,a,s),this.w=void 0}}else this.demuxer=new ee.a(i,o,a,s)}return t.prototype.destroy=function(){var t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},t.prototype.push=function(t,e,r,i,a,n,o,s){var l=this.w,u=isNaN(a.startDTS)?a.start:a.startDTS,d=a.decryptdata,c=this.frag,f=!(c&&a.cc===c.cc),h=!(c&&a.level===c.level),p=c&&a.sn===c.sn+1,g=!h&&p;if(f&&Dt.b.log(this.id+":discontinuity detected"),h&&Dt.b.log(this.id+":switch detected"),this.frag=a,l)l.postMessage({cmd:"demux",data:t,decryptdata:d,initSegment:e,audioCodec:r,videoCodec:i,timeOffset:u,discontinuity:f,trackSwitch:h,contiguous:g,duration:n,accurateTimeOffset:o,defaultInitPTS:s},[t]);else{var v=this.demuxer;v&&v.push(t,d,e,r,i,u,f,h,g,n,o,s)}},t.prototype.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case"init":URL.revokeObjectURL(this.w.objectURL);break;case Lt.a.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},t}(),se=oe,le={toString:function(t){for(var e="",r=t.length,i=0;i<r;i++)e+="["+t.start(i).toFixed(3)+","+t.end(i).toFixed(3)+"]";return e}},ue=le,de=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),ce={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_LEVEL:"WAITING_LEVEL",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR"},fe=function(t){function e(r){_(this,e);var i=L(this,t.call(this,r,Lt.a.MEDIA_ATTACHED,Lt.a.MEDIA_DETACHING,Lt.a.MANIFEST_LOADING,Lt.a.MANIFEST_PARSED,Lt.a.LEVEL_LOADED,Lt.a.KEY_LOADED,Lt.a.FRAG_LOADED,Lt.a.FRAG_LOAD_EMERGENCY_ABORTED,Lt.a.FRAG_PARSING_INIT_SEGMENT,Lt.a.FRAG_PARSING_DATA,Lt.a.FRAG_PARSED,Lt.a.ERROR,Lt.a.AUDIO_TRACK_SWITCHING,Lt.a.AUDIO_TRACK_SWITCHED,Lt.a.BUFFER_CREATED,Lt.a.BUFFER_APPENDED,Lt.a.BUFFER_FLUSHED));return i.config=r.config,i.audioCodecSwap=!1,i.ticks=0,i._state=ce.STOPPED,i.ontick=i.tick.bind(i),i}return k(e,t),e.prototype.destroy=function(){this.stopLoad(),this.timer&&(clearInterval(this.timer),this.timer=null),Ct.prototype.destroy.call(this),this.state=ce.STOPPED},e.prototype.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.timer||(this.timer=setInterval(this.ontick,100)),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var i=r.startLevel;i===-1&&(i=0,this.bitrateTest=!0),this.level=r.nextLoadLevel=i,this.loadedmetadata=!1}e>0&&t===-1&&(Dt.b.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=ce.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=ce.STOPPED},e.prototype.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragCurrent=null),this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=ce.STOPPED,this.forceStartLoad=!1},e.prototype.tick=function(){this.ticks++,1===this.ticks&&(this.doTick(),this.ticks>1&&setTimeout(this.tick,1),this.ticks=0)},e.prototype.doTick=function(){switch(this.state){case ce.ERROR:break;case ce.BUFFER_FLUSHING:this.fragLoadError=0;break;case ce.IDLE:this._doTickIdle();break;case ce.WAITING_LEVEL:var t=this.levels[this.level];t&&t.details&&(this.state=ce.IDLE);break;case ce.FRAG_LOADING_WAITING_RETRY:var e=performance.now(),r=this.retryDate;(!r||e>=r||this.media&&this.media.seeking)&&(Dt.b.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=ce.IDLE);break;case ce.ERROR:case ce.STOPPED:case ce.FRAG_LOADING:case ce.PARSING:case ce.PARSED:case ce.ENDED:}this._checkBuffer(),this._checkFragmentChanged()},e.prototype._doTickIdle=function(){var t=this.hls,e=t.config,r=this.media;if(void 0!==this.levelLastLoaded&&(r||!this.startFragRequested&&e.startFragPrefetch)){var i=void 0;i=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var a=t.nextLoadLevel,n=this.levels[a];if(n){var o=n.bitrate,s=void 0;s=o?Math.max(8*e.maxBufferSize/o,e.maxBufferLength):e.maxBufferLength,s=Math.min(s,e.maxMaxBufferLength);var l=te.bufferInfo(this.mediaBuffer?this.mediaBuffer:r,i,e.maxBufferHole),u=l.len;if(!(u>=s)){Dt.b.trace("buffer length of "+u.toFixed(3)+" is below max of "+s.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=a;var d=n.details;if("undefined"==typeof d||d.live&&this.levelLastLoaded!==a)return void(this.state=ce.WAITING_LEVEL);var c=this.fragPrevious;if(!d.live&&c&&!c.backtracked&&c.sn===d.endSN&&!l.nextStart){var f=Math.min(r.duration,c.start+c.duration);if(f-Math.max(l.end,c.start)<=Math.max(.2,c.duration)){var h={};return this.altAudio&&(h.type="video"),this.hls.trigger(Lt.a.BUFFER_EOS,h),void(this.state=ce.ENDED)}}this._fetchPayloadOrEos(i,l,d)}}}},e.prototype._fetchPayloadOrEos=function(t,e,r){var i=this.fragPrevious,a=this.level,n=r.fragments,o=n.length;if(0!==o){var s=n[0].start,l=n[o-1].start+n[o-1].duration,u=e.end,d=void 0;if(r.initSegment&&!r.initSegment.data)d=r.initSegment;else if(r.live){var c=this.config.initialLiveManifestSize;if(o<c)return void Dt.b.warn("Can not start playback of a level, reason: not enough fragments "+o+" < "+c);if(d=this._ensureFragmentAtLivePoint(r,u,s,l,i,n,o),null===d)return}else u<s&&(d=n[0]);d||(d=this._findFragment(s,i,o,n,u,l,r)),d&&this._loadFragmentOrKey(d,a,r,t,u)}},e.prototype._ensureFragmentAtLivePoint=function(t,e,r,i,a,n,o){var s=this.hls.config,l=this.media,u=void 0,d=void 0!==s.liveMaxLatencyDuration?s.liveMaxLatencyDuration:s.liveMaxLatencyDurationCount*t.targetduration;if(e<Math.max(r-s.maxFragLookUpTolerance,i-d)){var c=this.liveSyncPosition=this.computeLivePosition(r,t);Dt.b.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+c.toFixed(3)),e=c,l&&l.readyState&&l.duration>c&&(l.currentTime=c),this.nextLoadPosition=c}if(t.PTSKnown&&e>i&&l&&l.readyState)return null;if(this.startFragRequested&&!t.PTSKnown){if(a){var f=a.sn+1;if(f>=t.startSN&&f<=t.endSN){var h=n[f-t.startSN];a.cc===h.cc&&(u=h,Dt.b.log("live playlist, switching playlist, load frag with next SN: "+u.sn))}u||(u=$t.search(n,function(t){return a.cc-t.cc}),u&&Dt.b.log("live playlist, switching playlist, load frag with same CC: "+u.sn))}u||(u=n[Math.min(o-1,Math.round(o/2))],Dt.b.log("live playlist, switching playlist, unknown, load middle frag : "+u.sn))}return u},e.prototype._findFragment=function(t,e,r,i,a,n,o){var s=this.hls.config,l=void 0,u=void 0,d=s.maxFragLookUpTolerance,c=e?i[e.sn-i[0].sn+1]:void 0,f=function(t){var e=Math.min(d,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-e<=a?1:t.start-e>a&&t.start?-1:0};if(a<n?(a>n-d&&(d=0),u=c&&!f(c)?c:$t.search(i,f)):u=i[r-1],u){l=u;var h=l.sn-o.startSN,p=e&&l.level===e.level,g=i[h-1],v=i[h+1];if(e&&l.sn===e.sn)if(p&&!l.backtracked)if(l.sn<o.endSN){var m=e.deltaPTS;m&&m>s.maxBufferHole&&e.dropped&&h?(l=g,Dt.b.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this"),e.loadCounter--):(l=v,Dt.b.log("SN just loaded, load next one: "+l.sn))}else l=null;else l.backtracked&&(v&&v.backtracked?(Dt.b.warn("Already backtracked from fragment "+v.sn+", will not backtrack to fragment "+l.sn+". Loading fragment "+v.sn),l=v):(Dt.b.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),l.dropped=0,g?(g.loadCounter&&g.loadCounter--,l=g,l.backtracked=!0):h&&(l=null)))}return l},e.prototype._loadFragmentOrKey=function(t,e,r,i,a){var n=this.hls,o=n.config;if(!t.decryptdata||null==t.decryptdata.uri||null!=t.decryptdata.key){if(Dt.b.log("Loading "+t.sn+" of ["+r.startSN+" ,"+r.endSN+"],level "+e+", currentTime:"+i.toFixed(3)+",bufferEnd:"+a.toFixed(3)),void 0!==this.fragLoadIdx?this.fragLoadIdx++:this.fragLoadIdx=0,t.loadCounter){t.loadCounter++;var s=o.fragLoadingLoopThreshold;if(t.loadCounter>s&&Math.abs(this.fragLoadIdx-t.loadIdx)<s)return void n.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.FRAG_LOOP_LOADING_ERROR,fatal:!1,frag:t})}else t.loadCounter=1;return t.loadIdx=this.fragLoadIdx,t.autoLevel=n.autoLevelEnabled,t.bitrateTest=this.bitrateTest,this.fragCurrent=t,this.startFragRequested=!0,isNaN(t.sn)||t.bitrateTest||(this.nextLoadPosition=t.start+t.duration),n.trigger(Lt.a.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new se(n,"main")),void(this.state=ce.FRAG_LOADING)}Dt.b.log("Loading key for "+t.sn+" of ["+r.startSN+" ,"+r.endSN+"],level "+e),this.state=ce.KEY_LOADING,n.trigger(Lt.a.KEY_LOADING,{frag:t})},e.prototype.getBufferedFrag=function(t){return $t.search(this._bufferedFrags,function(e){return t<e.startPTS?-1:t>e.endPTS?1:0})},e.prototype.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},e.prototype._checkFragmentChanged=function(){var t,e,r=this.media;if(r&&r.readyState&&r.seeking===!1&&(e=r.currentTime,e>r.playbackRate*this.lastCurrentTime&&(this.lastCurrentTime=e),te.isBuffered(r,e)?t=this.getBufferedFrag(e):te.isBuffered(r,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var i=t;if(i!==this.fragPlaying){this.hls.trigger(Lt.a.FRAG_CHANGED,{frag:i});var a=i.level;this.fragPlaying&&this.fragPlaying.level===a||this.hls.trigger(Lt.a.LEVEL_SWITCHED,{level:a}),this.fragPlaying=i}}},e.prototype.immediateLevelSwitch=function(){if(Dt.b.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var t=this.media,e=void 0;t?(e=t.paused,t.pause()):e=!0,this.previouslyPaused=e}var r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},e.prototype.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,te.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},e.prototype.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e=void 0,r=void 0,i=void 0;if(void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),r=this.getBufferedFrag(t.currentTime),r&&r.startPTS>1&&this.flushMainBuffer(0,r.startPTS-1),t.paused)e=0;else{var a=this.hls.nextLoadLevel,n=this.levels[a],o=this.fragLastKbps;e=o&&this.fragCurrent?this.fragCurrent.duration*n.bitrate/(1e3*o)+1:0}if(i=this.getBufferedFrag(t.currentTime+e),i&&(i=this.followingBufferedFrag(i))){var s=this.fragCurrent;s&&s.loader&&s.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(i.maxStartPTS,Number.POSITIVE_INFINITY)}}},e.prototype.flushMainBuffer=function(t,e){this.state=ce.BUFFER_FLUSHING;var r={startOffset:t,endOffset:e};this.altAudio&&(r.type="video"),this.hls.trigger(Lt.a.BUFFER_FLUSHING,r)},e.prototype.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",this.onvseeked),e.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.hls.startLoad(r.startPosition)},e.prototype.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(Dt.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;e&&e.forEach(function(t){t.details&&t.details.fragments.forEach(function(t){t.loadCounter=void 0,t.backtracked=void 0})}),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},e.prototype.onMediaSeeking=function(){var t=this.media,e=t?t.currentTime:void 0,r=this.config;isNaN(e)||Dt.b.log("media seeking to "+e.toFixed(3));var i=this.mediaBuffer?this.mediaBuffer:t,a=te.bufferInfo(i,e,this.config.maxBufferHole);if(this.state===ce.FRAG_LOADING){var n=this.fragCurrent;if(0===a.len&&n){var o=r.maxFragLookUpTolerance,s=n.start-o,l=n.start+n.duration+o;e<s||e>l?(n.loader&&(Dt.b.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),n.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=ce.IDLE):Dt.b.log("seeking outside of buffer but within currently loaded fragment range")}}else this.state===ce.ENDED&&(0===a.len&&(this.fragPrevious=0),this.state=ce.IDLE);t&&(this.lastCurrentTime=e),this.state!==ce.FRAG_LOADING&&void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*r.fragLoadingLoopThreshold),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=e),this.tick()},e.prototype.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;isNaN(e)||Dt.b.log("media seeked to "+e.toFixed(3)),this.tick()},e.prototype.onMediaEnded=function(){Dt.b.log("media ended"),this.startPosition=this.lastCurrentTime=0},e.prototype.onManifestLoading=function(){Dt.b.log("trigger BUFFER_RESET"),this.hls.trigger(Lt.a.BUFFER_RESET),this._bufferedFrags=[],this.stalled=!1,this.startPosition=this.lastCurrentTime=0},e.prototype.onManifestParsed=function(t){var e,r=!1,i=!1;t.levels.forEach(function(t){e=t.audioCodec,e&&(e.indexOf("mp4a.40.2")!==-1&&(r=!0),e.indexOf("mp4a.40.5")!==-1&&(i=!0))}),this.audioCodecSwitch=r&&i,this.audioCodecSwitch&&Dt.b.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1;var a=this.config;(a.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(a.startPosition)},e.prototype.onLevelLoaded=function(t){var e=t.details,r=t.level,i=this.levels[this.levelLastLoaded],a=this.levels[r],n=e.totalduration,o=0;if(Dt.b.log("level "+r+" loaded ["+e.startSN+","+e.endSN+"],duration:"+n),e.live){var s=a.details;s&&e.fragments.length>0?(b(s,e),o=e.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(o,s),e.PTSKnown&&!isNaN(o)?Dt.b.log("live playlist sliding:"+o.toFixed(3)):(Dt.b.log("live playlist - outdated PTS, unknown sliding"),w(this.fragPrevious,i,e))):(Dt.b.log("live playlist - first load, unknown sliding"),e.PTSKnown=!1,w(this.fragPrevious,i,e))}else e.PTSKnown=!1;if(a.details=e,this.levelLastLoaded=r,this.hls.trigger(Lt.a.LEVEL_UPDATED,{details:e,level:r}),this.startFragRequested===!1){if(this.startPosition===-1||this.lastCurrentTime===-1){var l=e.startTimeOffset;isNaN(l)?e.live?(this.startPosition=this.computeLivePosition(o,e),Dt.b.log("configure startPosition to "+this.startPosition)):this.startPosition=0:(l<0&&(Dt.b.log("negative start time offset "+l+", count from end of last fragment"),l=o+n+l),Dt.b.log("start time offset found in playlist, adjust startPosition to "+l),this.startPosition=l),this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===ce.WAITING_LEVEL&&(this.state=ce.IDLE),this.tick()},e.prototype.onKeyLoaded=function(){this.state===ce.KEY_LOADING&&(this.state=ce.IDLE,this.tick())},e.prototype.onFragLoaded=function(t){var e=this.fragCurrent,r=t.frag;if(this.state===ce.FRAG_LOADING&&e&&"main"===r.type&&r.level===e.level&&r.sn===e.sn){var i=t.stats,a=this.levels[e.level],n=a.details;if(Dt.b.log("Loaded "+e.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+e.level),this.bitrateTest=!1,this.stats=i,r.bitrateTest===!0&&this.hls.nextLoadLevel)this.state=ce.IDLE,this.startFragRequested=!1,i.tparsed=i.tbuffered=performance.now(),this.hls.trigger(Lt.a.FRAG_BUFFERED,{stats:i,frag:e,id:"main"}),this.tick();else if("initSegment"===r.sn)this.state=ce.IDLE,i.tparsed=i.tbuffered=performance.now(),n.initSegment.data=t.payload,this.hls.trigger(Lt.a.FRAG_BUFFERED,{stats:i,frag:e,id:"main"}),this.tick();else{this.state=ce.PARSING;var o=n.totalduration,s=e.level,l=e.sn,u=this.config.defaultAudioCodec||a.audioCodec;this.audioCodecSwap&&(Dt.b.log("swapping playlist audio codec"),void 0===u&&(u=this.lastAudioCodec),u&&(u=u.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5")),this.pendingBuffering=!0,this.appended=!1,Dt.b.log("Parsing "+l+" of ["+n.startSN+" ,"+n.endSN+"],level "+s+", cc "+e.cc);var d=this.demuxer;d||(d=this.demuxer=new se(this.hls,"main"));var c=this.media,f=c&&c.seeking,h=!f&&(n.PTSKnown||!n.live),p=n.initSegment?n.initSegment.data:[];d.push(t.payload,p,u,a.videoCodec,e,o,h,void 0)}}this.fragLoadError=0},e.prototype.onFragParsingInitSegment=function(t){var e=this.fragCurrent,r=t.frag;if(e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===ce.PARSING){var i,a,n=t.tracks;if(n.audio&&this.altAudio&&delete n.audio,a=n.audio){var o=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();o&&this.audioCodecSwap&&(Dt.b.log("swapping playlist audio codec"),o=o.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==a.metadata.channelCount&&s.indexOf("firefox")===-1&&(o="mp4a.40.5"),s.indexOf("android")!==-1&&"audio/mpeg"!==a.container&&(o="mp4a.40.2",Dt.b.log("Android: force audio codec to "+o)),a.levelCodec=o,a.id=t.id}a=n.video,a&&(a.levelCodec=this.levels[this.level].videoCodec,a.id=t.id),this.hls.trigger(Lt.a.BUFFER_CODECS,n);for(i in n){a=n[i],Dt.b.log("main track:"+i+",container:"+a.container+",codecs[level/parsed]=["+a.levelCodec+"/"+a.codec+"]");
|
26 |
+
var l=a.initSegment;l&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(Lt.a.BUFFER_APPENDING,{type:i,data:l,parent:"main",content:"initSegment"}))}this.tick()}},e.prototype.onFragParsingData=function(t){var e=this,r=this.fragCurrent,i=t.frag;if(r&&"main"===t.id&&i.sn===r.sn&&i.level===r.level&&("audio"!==t.type||!this.altAudio)&&this.state===ce.PARSING){var a=this.levels[this.level],n=r;if(isNaN(t.endPTS)&&(t.endPTS=t.startPTS+r.duration,t.endDTS=t.startDTS+r.duration),Dt.b.log("Parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb+",dropped:"+(t.dropped||0)),"video"===t.type)if(n.dropped=t.dropped,n.dropped){if(!n.backtracked)return Dt.b.warn("missing video frame(s), backtracking fragment"),n.backtracked=!0,this.nextLoadPosition=t.startPTS,this.state=ce.IDLE,this.fragPrevious=n,void this.tick();Dt.b.warn("Already backtracked on this fragment, appending with the gap")}else n.backtracked=!1;var o=y(a.details,n,t.startPTS,t.endPTS,t.startDTS,t.endDTS),s=this.hls;s.trigger(Lt.a.LEVEL_PTS_UPDATED,{details:a.details,level:this.level,drift:o,type:t.type,start:t.startPTS,end:t.endPTS}),[t.data1,t.data2].forEach(function(r){r&&r.length&&e.state===ce.PARSING&&(e.appended=!0,e.pendingBuffering=!0,s.trigger(Lt.a.BUFFER_APPENDING,{type:t.type,data:r,parent:"main",content:"data"}))}),this.tick()}},e.prototype.onFragParsed=function(t){var e=this.fragCurrent,r=t.frag;e&&"main"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===ce.PARSING&&(this.stats.tparsed=performance.now(),this.state=ce.PARSED,this._checkAppendedParsed())},e.prototype.onAudioTrackSwitching=function(t){var e=!!t.url,r=t.id;if(!e){if(this.mediaBuffer!==this.media){Dt.b.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(Dt.b.log("switching to main audio track, cancel main fragment load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=ce.IDLE}var a=this.hls;a.trigger(Lt.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),a.trigger(Lt.a.AUDIO_TRACK_SWITCHED,{id:r}),this.altAudio=!1}},e.prototype.onAudioTrackSwitched=function(t){var e=t.id,r=!!this.hls.audioTracks[e].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(Dt.b.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()},e.prototype.onBufferCreated=function(t){var e=t.tracks,r=void 0,i=void 0,a=!1;for(var n in e){var o=e[n];"main"===o.id?(i=n,r=o,"video"===n&&(this.videoBuffer=e[n].buffer)):a=!0}a&&r?(Dt.b.log("alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},e.prototype.onBufferAppended=function(t){if("main"===t.parent){var e=this.state;e!==ce.PARSING&&e!==ce.PARSED||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},e.prototype._checkAppendedParsed=function(){if(!(this.state!==ce.PARSED||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){var e=this.mediaBuffer?this.mediaBuffer:this.media;Dt.b.log("main buffered : "+ue.toString(e.buffered));var r=this._bufferedFrags.filter(function(t){return te.isBuffered(e,(t.startPTS+t.endPTS)/2)});r.push(t),this._bufferedFrags=r.sort(function(t,e){return t.startPTS-e.startPTS}),this.fragPrevious=t;var i=this.stats;i.tbuffered=performance.now(),this.fragLastKbps=Math.round(8*i.total/(i.tbuffered-i.tfirst)),this.hls.trigger(Lt.a.FRAG_BUFFERED,{stats:i,frag:t,id:"main"}),this.state=ce.IDLE}this.tick()}},e.prototype.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var r=!!this.media&&te.isBuffered(this.media,this.media.currentTime)&&te.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case kt.a.FRAG_LOAD_ERROR:case kt.a.FRAG_LOAD_TIMEOUT:case kt.a.KEY_LOAD_ERROR:case kt.a.KEY_LOAD_TIMEOUT:if(!t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var i=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);e.loadCounter=0,Dt.b.warn("mediaController: frag loading failed, retry in "+i+" ms"),this.retryDate=performance.now()+i,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=ce.FRAG_LOADING_WAITING_RETRY}else Dt.b.error("mediaController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=ce.ERROR;break;case kt.a.FRAG_LOOP_LOADING_ERROR:t.fatal||(r?(this._reduceMaxBufferLength(e.duration),this.state=ce.IDLE):e.autoLevel&&0!==e.level||(t.fatal=!0,this.state=ce.ERROR));break;case kt.a.LEVEL_LOAD_ERROR:case kt.a.LEVEL_LOAD_TIMEOUT:this.state!==ce.ERROR&&(t.fatal?(this.state=ce.ERROR,Dt.b.warn("streamController: "+t.details+",switch to "+this.state+" state ...")):t.levelRetry||this.state!==ce.WAITING_LEVEL||(this.state=ce.IDLE));break;case kt.a.BUFFER_FULL_ERROR:"main"!==t.parent||this.state!==ce.PARSING&&this.state!==ce.PARSED||(r?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=ce.IDLE):(Dt.b.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},e.prototype._reduceMaxBufferLength=function(t){var e=this.config;e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,Dt.b.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*e.fragLoadingLoopThreshold))},e.prototype._checkBuffer=function(){var t=this.media,e=this.config;if(t&&t.readyState){var r=t.currentTime,i=this.mediaBuffer?this.mediaBuffer:t,a=i.buffered;if(!this.loadedmetadata&&a.length){this.loadedmetadata=!0;var n=t.seeking?r:this.startPosition,o=te.isBuffered(i,n),s=a.start(0),l=!o&&Math.abs(n-s)<e.maxSeekHole;(r!==n||l)&&(Dt.b.log("target start position:"+n),l&&(n=s,Dt.b.log("target start position not buffered, seek to buffered.start(0) "+n)),Dt.b.log("adjust currentTime from "+r+" to "+n),t.currentTime=n)}else if(this.immediateSwitch)this.immediateLevelSwitchEnd();else{var u=te.bufferInfo(t,r,0),d=!(t.paused||t.ended||0===t.buffered.length),c=.5,f=r!==this.lastCurrentTime;if(f)this.stallReported&&(Dt.b.warn("playback not stuck anymore @"+r+", after "+Math.round(performance.now()-this.stalled)+"ms"),this.stallReported=!1),this.stalled=void 0,this.nudgeRetry=0;else if(d){var h=performance.now(),p=this.hls;if(this.stalled){var g=h-this.stalled,v=u.len,m=this.nudgeRetry||0;if(v<=c&&g>1e3*e.lowBufferWatchdogPeriod){this.stallReported||(this.stallReported=!0,Dt.b.warn("playback stalling in low buffer @"+r),p.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:v}));var y=u.nextStart,b=y-r;if(y&&b<e.maxSeekHole&&b>0){this.nudgeRetry=++m;var E=m*e.nudgeOffset;Dt.b.log("adjust currentTime from "+t.currentTime+" to next buffered @ "+y+" + nudge "+E),t.currentTime=y+E,this.stalled=void 0,p.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_SEEK_OVER_HOLE,fatal:!1,hole:y+E-r})}}else if(v>c&&g>1e3*e.highBufferWatchdogPeriod)if(this.stallReported||(this.stallReported=!0,Dt.b.warn("playback stalling in high buffer @"+r),p.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:v})),this.stalled=void 0,this.nudgeRetry=++m,m<e.nudgeMaxRetry){var T=t.currentTime,R=T+m*e.nudgeOffset;Dt.b.log("adjust currentTime from "+T+" to "+R),t.currentTime=R,p.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_NUDGE_ON_STALL,fatal:!1})}else Dt.b.error("still stuck in high buffer @"+r+" after "+e.nudgeMaxRetry+", raise fatal error"),p.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_STALLED_ERROR,fatal:!0})}else this.stalled=h,this.stallReported=!1}}}},e.prototype.onFragLoadEmergencyAborted=function(){this.state=ce.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},e.prototype.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;this._bufferedFrags=this._bufferedFrags.filter(function(e){return te.isBuffered(t,(e.startPTS+e.endPTS)/2)}),void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),this.state=ce.IDLE,this.fragPrevious=null},e.prototype.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},e.prototype.computeLivePosition=function(t,e){var r=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-r)},de(e,[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,Dt.b.log("main stream:"+e+"->"+t),this.hls.trigger(Lt.a.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}]),e}(Ct),he=fe,pe=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),ge=function(t){function e(r){D(this,e);var i=I(this,t.call(this,r,Lt.a.MANIFEST_LOADED,Lt.a.LEVEL_LOADED,Lt.a.FRAG_LOADED,Lt.a.ERROR));return i._manualLevel=-1,i.timer=null,i}return O(e,t),e.prototype.destroy=function(){this.cleanTimer(),this._manualLevel=-1},e.prototype.cleanTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.startLoad=function(){this.canload=!0;var t=this._levels;t&&t.forEach(function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)}),this.timer&&this.tick()},e.prototype.stopLoad=function(){this.canload=!1},e.prototype.onManifestLoaded=function(t){var e=[],r=void 0,i={},a=null,n=!1,s=!1,l=/chrome|firefox/.test(navigator.userAgent.toLowerCase());if(t.levels.forEach(function(t){t.loadError=0,t.fragmentError=!1,n=n||!!t.videoCodec,s=s||!!t.audioCodec||!(!t.attrs||!t.attrs.AUDIO),l===!0&&t.audioCodec&&t.audioCodec.indexOf("mp4a.40.34")!==-1&&(t.audioCodec=void 0),a=i[t.bitrate],void 0===a?(t.url=[t.url],t.urlId=0,i[t.bitrate]=t,e.push(t)):a.url.push(t.url)}),n===!0&&s===!0&&(e=e.filter(function(t){var e=t.videoCodec;return!!e})),e=e.filter(function(t){var e=t.audioCodec,r=t.videoCodec;return(!e||o(e))&&(!r||o(r))}),e.length>0){r=e[0].bitrate,e.sort(function(t,e){return t.bitrate-e.bitrate}),this._levels=e;for(var u=0;u<e.length;u++)if(e[u].bitrate===r){this._firstLevel=u,Dt.b.log("manifest loaded,"+e.length+" level(s) found, first bitrate:"+r);break}this.hls.trigger(Lt.a.MANIFEST_PARSED,{levels:e,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:n,altAudio:t.audioTracks.length>0})}else this.hls.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},e.prototype.setLevelInternal=function(t){var e=this._levels,r=this.hls;if(t>=0&&t<e.length){if(this.cleanTimer(),this._level!==t){Dt.b.log("switching to level "+t),this._level=t;var i=e[t];i.level=t,r.trigger(Lt.a.LEVEL_SWITCH,i),r.trigger(Lt.a.LEVEL_SWITCHING,i)}var a=e[t],n=a.details;if(!n||n.live===!0){var o=a.urlId;r.trigger(Lt.a.LEVEL_LOADING,{url:a.url[o],level:t,id:o})}}else r.trigger(Lt.a.ERROR,{type:kt.b.OTHER_ERROR,details:kt.a.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},e.prototype.onError=function(t){var e=this;if(t.fatal===!0)return void(t.type===kt.b.NETWORK_ERROR&&this.cleanTimer());var r=t.details,i=!1,a=!1,n=void 0,o=void 0,s=this.hls,l=s.config,u=s.media;switch(r){case kt.a.FRAG_LOAD_ERROR:case kt.a.FRAG_LOAD_TIMEOUT:case kt.a.FRAG_LOOP_LOADING_ERROR:case kt.a.KEY_LOAD_ERROR:case kt.a.KEY_LOAD_TIMEOUT:n=t.frag.level,a=!0;break;case kt.a.LEVEL_LOAD_ERROR:case kt.a.LEVEL_LOAD_TIMEOUT:n=t.context.level,i=!0;break;case kt.a.REMUX_ALLOC_ERROR:n=t.level}if(void 0!==n){o=this._levels[n],o.loadError++,o.fragmentError=a;var d=o.url.length;if(d>1&&o.loadError<d)o.urlId=(o.urlId+1)%d,o.details=void 0,Dt.b.warn("level controller,"+r+" for level "+n+": switching to redundant stream id "+o.urlId);else if(this._manualLevel===-1&&0!==n)Dt.b.warn("level controller,"+r+": switch-down for next fragment"),this.hls.nextAutoLevel=Math.max(0,n-1);else if(o&&o.details&&o.details.live)Dt.b.warn("level controller,"+r+" on live stream, discard"),i===!0&&(this._level=void 0);else if(i===!0){var c=!!u&&te.isBuffered(u,u.currentTime)&&te.isBuffered(u,u.currentTime+.5);c===!0?(Dt.b.warn("level controller,"+r+", but media buffered, retry in "+l.levelLoadingRetryDelay+"ms"),this.timer=setTimeout(function(){return e.tick()},l.levelLoadingRetryDelay),t.levelRetry=!0):(Dt.b.error("cannot recover "+r+" error"),this._level=void 0,this.cleanTimer(),t.fatal=!0)}}},e.prototype.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&"main"===e.type){var r=this._levels[e.level];void 0!==r&&(r.fragmentError=!1,r.loadError=0)}},e.prototype.onLevelLoaded=function(t){var e=this,r=t.level;if(r===this._level){var i=this._levels[r];i.fragmentError===!1&&(i.loadError=0);var a=t.details;if(a.live){var n=1e3*(a.averagetargetduration?a.averagetargetduration:a.targetduration),o=i.details;o&&a.endSN===o.endSN&&(n/=2,Dt.b.log("same live playlist, reload twice faster")),n-=performance.now()-t.stats.trequest,n=Math.max(1e3,Math.round(n)),Dt.b.log("live playlist, reload in "+n+" ms"),this.timer=setTimeout(function(){return e.tick()},n)}else this.cleanTimer()}},e.prototype.tick=function(){var t=this._level;if(void 0!==t&&this.canload){var e=this._levels[t];if(e&&e.url){var r=e.urlId;this.hls.trigger(Lt.a.LEVEL_LOADING,{url:e.url[r],level:t,id:r})}}},pe(e,[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this._level},set:function(t){var e=this._levels;e&&e.length>t&&(this._level===t&&void 0!==e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this._manualLevel},set:function(t){this._manualLevel=t,void 0===this._startLevel&&(this._startLevel=t),t!==-1&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return this._manualLevel!==-1?this._manualLevel:this.hls.nextAutoLevel},set:function(t){this.level=t,this._manualLevel===-1&&(this.hls.nextAutoLevel=t)}}]),e}(Ct),ve=ge,me=r(3),ye=function(t){function e(r){C(this,e);var i=x(this,t.call(this,r,Lt.a.MEDIA_ATTACHED,Lt.a.MEDIA_DETACHING,Lt.a.FRAG_PARSING_METADATA));return i.id3Track=void 0,i.media=void 0,i}return P(e,t),e.prototype.destroy=function(){Ct.prototype.destroy.call(this)},e.prototype.onMediaAttached=function(t){this.media=t.media,!this.media},e.prototype.onMediaDetaching=function(){this.media=void 0},e.prototype.onFragParsingMetadata=function(t){var e=t.frag,r=t.samples;this.id3Track||(this.id3Track=this.media.addTextTrack("metadata","id3"),this.id3Track.mode="hidden");for(var i=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,a=0;a<r.length;a++){var n=me.a.getID3Frames(r[a].data);if(n){var o=r[a].pts,s=a<r.length-1?r[a+1].pts:e.endPTS;o===s&&(s+=1e-4);for(var l=0;l<n.length;l++){var u=n[l];if(!me.a.isTimeStampFrame(u)){var d=new i(o,s,"");d.value=u,this.id3Track.addCue(d)}}}}},e}(Ct),be=ye,Ee=function(){function t(e){F(this,t),this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=0,this.totalWeight_=0}return t.prototype.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},t.prototype.getTotalWeight=function(){return this.totalWeight_},t.prototype.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),Te=Ee,Re=function(){function t(e,r,i,a){N(this,t),this.hls=e,this.defaultEstimate_=a,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Te(r),this.fast_=new Te(i)}return t.prototype.sample=function(t,e){t=Math.max(t,this.minDelayMs_);var r=8e3*e/t,i=t/1e3;this.fast_.sample(i,r),this.slow_.sample(i,r)},t.prototype.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},t.prototype.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.prototype.destroy=function(){},t}(),Se=Re,Ae=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),we=function(t){function e(r){M(this,e);var i=U(this,t.call(this,r,Lt.a.FRAG_LOADING,Lt.a.FRAG_LOADED,Lt.a.FRAG_BUFFERED,Lt.a.ERROR));return i.lastLoadedFragLevel=0,i._nextAutoLevel=-1,i.hls=r,i.timer=null,i._bwEstimator=null,i.onCheck=i._abandonRulesCheck.bind(i),i}return B(e,t),e.prototype.destroy=function(){this.clearTimer(),Ct.prototype.destroy.call(this)},e.prototype.onFragLoading=function(t){var e=t.frag;if("main"===e.type){if(this.timer||(this.timer=setInterval(this.onCheck,100)),!this._bwEstimator){var r=this.hls,i=t.frag.level,a=r.levels[i].details.live,n=r.config,o=void 0,s=void 0;a?(o=n.abrEwmaFastLive,s=n.abrEwmaSlowLive):(o=n.abrEwmaFastVoD,s=n.abrEwmaSlowVoD),this._bwEstimator=new Se(r,s,o,n.abrEwmaDefaultEstimate)}this.fragCurrent=e}},e.prototype._abandonRulesCheck=function(){var t=this.hls,e=t.media,r=this.fragCurrent,i=r.loader,a=t.minAutoLevel;if(!i||i.stats&&i.stats.aborted)return Dt.b.warn("frag loader destroy or aborted, disarm abandonRules"),void this.clearTimer();var n=i.stats;if(e&&n&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&r.autoLevel&&r.level){var o=performance.now()-n.trequest,s=Math.abs(e.playbackRate);if(o>500*r.duration/s){var l=t.levels,u=Math.max(1,n.bw?n.bw/8:1e3*n.loaded/o),d=l[r.level],c=d.realBitrate?Math.max(d.realBitrate,d.bitrate):d.bitrate,f=n.total?n.total:Math.max(n.loaded,Math.round(r.duration*c/8)),h=e.currentTime,p=(f-n.loaded)/u,g=(te.bufferInfo(e,h,t.config.maxBufferHole).end-h)/s;if(g<2*r.duration/s&&p>g){var v=void 0,m=void 0;for(m=r.level-1;m>a;m--){var y=l[m].realBitrate?Math.max(l[m].realBitrate,l[m].bitrate):l[m].bitrate;if(v=r.duration*y/(6.4*u),v<g)break}v<p&&(Dt.b.warn("loading too slow, abort fragment loading and switch to level "+m+":fragLoadedDelay["+m+"]<fragLoadedDelay["+(r.level-1)+"];bufferStarvationDelay:"+v.toFixed(1)+"<"+p.toFixed(1)+":"+g.toFixed(1)),t.nextLoadLevel=m,this._bwEstimator.sample(o,n.loaded),i.abort(),this.clearTimer(),t.trigger(Lt.a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,stats:n}))}}}},e.prototype.onFragLoaded=function(t){var e=t.frag;if("main"===e.type&&!isNaN(e.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var r=this.hls.levels[e.level],i=(r.loaded?r.loaded.bytes:0)+t.stats.loaded,a=(r.loaded?r.loaded.duration:0)+t.frag.duration;r.loaded={bytes:i,duration:a},r.realBitrate=Math.round(8*i/a)}if(t.frag.bitrateTest){var n=t.stats;n.tparsed=n.tbuffered=n.tload,this.onFragBuffered(t)}}},e.prototype.onFragBuffered=function(t){var e=t.stats,r=t.frag;if(!(e.aborted===!0||1!==r.loadCounter||"main"!==r.type||isNaN(r.sn)||r.bitrateTest&&e.tload!==e.tbuffered)){var i=e.tparsed-e.trequest;Dt.b.log("latency/loading/parsing/append/kbps:"+Math.round(e.tfirst-e.trequest)+"/"+Math.round(e.tload-e.tfirst)+"/"+Math.round(e.tparsed-e.tload)+"/"+Math.round(e.tbuffered-e.tparsed)+"/"+Math.round(8*e.loaded/(e.tbuffered-e.trequest))),this._bwEstimator.sample(i,e.loaded),e.bwEstimate=this._bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=i/1e3:this.bitrateTestDelay=0}},e.prototype.onError=function(t){switch(t.details){case kt.a.FRAG_LOAD_ERROR:case kt.a.FRAG_LOAD_TIMEOUT:this.clearTimer()}},e.prototype.clearTimer=function(){clearInterval(this.timer),this.timer=null},e.prototype._findBestLevel=function(t,e,r,i,a,n,o,s,l){for(var u=a;u>=i;u--){var d=l[u],c=d.details,f=c?c.totalduration/c.fragments.length:e,h=!!c&&c.live,p=void 0;p=u<=t?o*r:s*r;var g=l[u].realBitrate?Math.max(l[u].realBitrate,l[u].bitrate):l[u].bitrate,v=g*f/p;if(Dt.b.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+u+"/"+Math.round(p)+"/"+g+"/"+f+"/"+n+"/"+v),p>g&&(!v||h&&!this.bitrateTestDelay||v<n))return u}return-1},Ae(e,[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(t===-1||e&&e.canEstimate()))return t;var r=this._nextABRAutoLevel;return t!==-1&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.levels,i=t.config,a=t.minAutoLevel,n=t.media,o=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,l=n?n.currentTime:0,u=n&&0!==n.playbackRate?Math.abs(n.playbackRate):1,d=this._bwEstimator?this._bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,c=(te.bufferInfo(n,l,i.maxBufferHole).end-l)/u,f=this._findBestLevel(o,s,d,a,e,c,i.abrBandWidthFactor,i.abrBandWidthUpFactor,r);if(f>=0)return f;Dt.b.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var h=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,p=i.abrBandWidthFactor,g=i.abrBandWidthUpFactor;if(0===c){var v=this.bitrateTestDelay;if(v){var m=s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay;h=m-v,Dt.b.trace("bitrate test took "+Math.round(1e3*v)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*h)+" ms"),p=g=1}}return f=this._findBestLevel(o,s,d,a,e,c+h,p,g,r),Math.max(f,0)}}]),e}(Ct),_e=we,Le=function(t){function e(r){G(this,e);var i=j(this,t.call(this,r,Lt.a.MEDIA_ATTACHING,Lt.a.MEDIA_DETACHING,Lt.a.MANIFEST_PARSED,Lt.a.BUFFER_RESET,Lt.a.BUFFER_APPENDING,Lt.a.BUFFER_CODECS,Lt.a.BUFFER_EOS,Lt.a.BUFFER_FLUSHING,Lt.a.LEVEL_PTS_UPDATED,Lt.a.LEVEL_UPDATED));return i._msDuration=null,i._levelDuration=null,i.onsbue=i.onSBUpdateEnd.bind(i),i.onsbe=i.onSBUpdateError.bind(i),i.pendingTracks={},i.tracks={},i}return K(e,t),e.prototype.destroy=function(){Ct.prototype.destroy.call(this)},e.prototype.onLevelPtsUpdated=function(t){var e=t.type,r=this.tracks.audio;if("audio"===e&&r&&"audio/mpeg"===r.container){var i=this.sourceBuffer.audio,a=Math.abs(i.timestampOffset-t.start);if(a>.1){var n=i.updating;try{i.abort()}catch(t){n=!0,Dt.b.warn("can not abort audio buffer: "+t)}n?this.audioTimestampOffset=t.start:(Dt.b.warn("change mpeg audio timestamp offset from "+i.timestampOffset+" to "+t.start),i.timestampOffset=t.start)}}},e.prototype.onManifestParsed=function(t){var e=t.audio,r=t.video||t.levels.length&&t.audio,i=0;t.altAudio&&(e||r)&&(i=(e?1:0)+(r?1:0),Dt.b.log(i+" sourceBuffer(s) expected")),this.sourceBufferNb=i},e.prototype.onMediaAttaching=function(t){var e=this.media=t.media;if(e){var r=this.mediaSource=new MediaSource;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),r.addEventListener("sourceopen",this.onmso),r.addEventListener("sourceended",this.onmse),r.addEventListener("sourceclose",this.onmsc),e.src=URL.createObjectURL(r)}},e.prototype.onMediaDetaching=function(){Dt.b.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){Dt.b.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this.onmso),t.removeEventListener("sourceended",this.onmse),t.removeEventListener("sourceclose",this.onmsc),this.media&&(URL.revokeObjectURL(this.media.src),this.media.removeAttribute("src"),this.media.load()),this.mediaSource=null,this.media=null,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.onmso=this.onmse=this.onmsc=null,this.hls.trigger(Lt.a.MEDIA_DETACHED)},e.prototype.onMediaSourceOpen=function(){Dt.b.log("media source opened"),this.hls.trigger(Lt.a.MEDIA_ATTACHED,{media:this.media});var t=this.mediaSource;t&&t.removeEventListener("sourceopen",this.onmso),this.checkPendingTracks()},e.prototype.checkPendingTracks=function(){var t=this.pendingTracks,e=Object.keys(t).length;e&&(this.sourceBufferNb<=e||0===this.sourceBufferNb)&&(this.createSourceBuffers(t),this.pendingTracks={},this.doAppending())},e.prototype.onMediaSourceClose=function(){Dt.b.log("media source closed")},e.prototype.onMediaSourceEnded=function(){Dt.b.log("media source ended")},e.prototype.onSBUpdateEnd=function(){if(this.audioTimestampOffset){var t=this.sourceBuffer.audio;Dt.b.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+this.audioTimestampOffset),t.timestampOffset=this.audioTimestampOffset,delete this.audioTimestampOffset}this._needsFlush&&this.doFlush(),this._needsEos&&this.checkEos(),this.appending=!1;var e=this.parent,r=this.segments.reduce(function(t,r){return r.parent===e?t+1:t},0);this.hls.trigger(Lt.a.BUFFER_APPENDED,{parent:e,pending:r}),this._needsFlush||this.doAppending(),this.updateMediaElementDuration()},e.prototype.onSBUpdateError=function(t){Dt.b.error("sourceBuffer error:",t),this.hls.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_APPENDING_ERROR,fatal:!1})},e.prototype.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var r=t[e];try{this.mediaSource.removeSourceBuffer(r),r.removeEventListener("updateend",this.onsbue),r.removeEventListener("error",this.onsbe)}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},e.prototype.onBufferCodecs=function(t){if(0===Object.keys(this.sourceBuffer).length){for(var e in t)this.pendingTracks[e]=t[e];var r=this.mediaSource;r&&"open"===r.readyState&&this.checkPendingTracks()}},e.prototype.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;for(var i in t)if(!e[i]){var a=t[i],n=a.levelCodec||a.codec,o=a.container+";codecs="+n;Dt.b.log("creating sourceBuffer("+o+")");try{var s=e[i]=r.addSourceBuffer(o);s.addEventListener("updateend",this.onsbue),s.addEventListener("error",this.onsbe),this.tracks[i]={codec:n,container:a.container},a.buffer=s}catch(t){Dt.b.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:o})}}this.hls.trigger(Lt.a.BUFFER_CREATED,{tracks:t})},e.prototype.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},e.prototype.onBufferAppendFail=function(t){Dt.b.error("sourceBuffer error:",t.event),this.hls.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.BUFFER_APPENDING_ERROR,fatal:!1})},e.prototype.onBufferEos=function(t){var e=this.sourceBuffer,r=t.type;for(var i in e)r&&i!==r||e[i].ended||(e[i].ended=!0,Dt.b.log(i+" sourceBuffer now EOS"));this.checkEos()},e.prototype.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(!e||"open"!==e.readyState)return void(this._needsEos=!1);for(var r in t){var i=t[r];if(!i.ended)return;if(i.updating)return void(this._needsEos=!0)}Dt.b.log("all media data available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){Dt.b.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1},e.prototype.onBufferFlushing=function(t){this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}),this.flushBufferCounter=0,this.doFlush()},e.prototype.onLevelUpdated=function(t){var e=t.details;0!==e.fragments.length&&(this._levelDuration=e.totalduration+e.fragments[0].start,this.updateMediaElementDuration())},e.prototype.updateMediaElementDuration=function(){var t=this.media,e=this.mediaSource,r=this.sourceBuffer,i=this._levelDuration;if(null!==i&&t&&e&&r&&0!==t.readyState&&"open"===e.readyState){for(var a in r)if(r[a].updating)return;null===this._msDuration&&(this._msDuration=e.duration);var n=t.duration;(i>this._msDuration&&i>n||n===1/0||isNaN(n))&&(Dt.b.log("Updating mediasource duration to "+i.toFixed(3)),this._msDuration=e.duration=i)}},e.prototype.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,r=this.sourceBuffer;try{for(var i in r)e+=r[i].buffered.length}catch(t){Dt.b.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(Lt.a.BUFFER_FLUSHED)}},e.prototype.doAppending=function(){var t=this.hls,e=this.sourceBuffer,r=this.segments;if(Object.keys(e).length){if(this.media.error)return this.segments=[],void Dt.b.error("trying to append although a media error occured, flush segment and abort");if(this.appending)return;if(r&&r.length){var i=r.shift();try{var a=i.type,n=e[a];n?n.updating?r.unshift(i):(n.ended=!1,this.parent=i.parent,n.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0):this.onSBUpdateEnd()}catch(e){Dt.b.error("error while trying to append buffer:"+e.message),r.unshift(i);var o={type:kt.b.MEDIA_ERROR,parent:i.parent};if(22===e.code)return this.segments=[],o.details=kt.a.BUFFER_FULL_ERROR,o.fatal=!1,void t.trigger(Lt.a.ERROR,o);if(this.appendError?this.appendError++:this.appendError=1,o.details=kt.a.BUFFER_APPEND_ERROR,this.appendError>t.config.appendErrorMaxRetry)return Dt.b.log("fail "+t.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),r=[],o.fatal=!0,void t.trigger(Lt.a.ERROR,o);o.fatal=!1,t.trigger(Lt.a.ERROR,o)}}}},e.prototype.flushBuffer=function(t,e,r){var i,a,n,o,s,l,u=this.sourceBuffer;if(Object.keys(u).length){if(Dt.b.log("flushBuffer,pos/start/end: "+this.media.currentTime.toFixed(3)+"/"+t+"/"+e),this.flushBufferCounter<this.appended){for(var d in u)if(!r||d===r){if(i=u[d],i.ended=!1,i.updating)return Dt.b.warn("cannot flush, sb updating in progress"),!1;try{for(a=0;a<i.buffered.length;a++)if(n=i.buffered.start(a),o=i.buffered.end(a),navigator.userAgent.toLowerCase().indexOf("firefox")!==-1&&e===Number.POSITIVE_INFINITY?(s=t,l=e):(s=Math.max(n,t),l=Math.min(o,e)),Math.min(l,o)-s>.5)return this.flushBufferCounter++,Dt.b.log("flush "+d+" ["+s+","+l+"], of ["+n+","+o+"], pos:"+this.media.currentTime),i.remove(s,l),!1}catch(t){Dt.b.warn("exception while accessing sourcebuffer, it might have been removed from MediaSource")}}}else Dt.b.warn("abort flushing too many retries");Dt.b.log("buffer flushed")}return!0},e}(Ct),ke=Le,De=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Ie=function(t){function e(r){return H(this,e),W(this,t.call(this,r,Lt.a.FPS_DROP_LEVEL_CAPPING,Lt.a.MEDIA_ATTACHING,Lt.a.MANIFEST_PARSED))}return V(e,t),e.prototype.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=this.restrictedLevels=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer)))},e.prototype.onFpsDropLevelCapping=function(t){e.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},e.prototype.onMediaAttaching=function(t){
|
27 |
+
this.media=t.media instanceof HTMLVideoElement?t.media:null},e.prototype.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],e.config.capLevelToPlayerSize&&(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.levels=t.levels,e.firstLevel=this.getMaxLevel(t.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.prototype.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.prototype.getMaxLevel=function(t){var r=this;if(!this.levels)return-1;var i=this.levels.filter(function(i,a){return e.isLevelAllowed(a,r.restrictedLevels)&&a<=t});return e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.isLevelAllowed=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.indexOf(t)===-1},e.getMaxLevelByMediaSize=function(t,e,r){if(!t||t&&!t.length)return-1;for(var i=function(t,e){return!e||(t.width!==e.width||t.height!==e.height)},a=t.length-1,n=0;n<t.length;n+=1){var o=t[n];if((o.width>=e||o.height>=r)&&i(o,t[n+1])){a=n;break}}return a},De(e,[{key:"mediaWidth",get:function(){var t=void 0,r=this.media;return r&&(t=r.width||r.clientWidth||r.offsetWidth,t*=e.contentScaleFactor),t}},{key:"mediaHeight",get:function(){var t=void 0,r=this.media;return r&&(t=r.height||r.clientHeight||r.offsetHeight,t*=e.contentScaleFactor),t}}],[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}]),e}(Ct),Oe=Ie,Ce=function(t){function e(r){return q(this,e),Y(this,t.call(this,r,Lt.a.MEDIA_ATTACHING))}return z(e,t),e.prototype.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},e.prototype.onMediaAttaching=function(t){var e=this.hls.config;if(e.capLevelOnFPSDrop){var r=this.video=t.media instanceof HTMLVideoElement?t.media:null;"function"==typeof r.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},e.prototype.checkFPS=function(t,e,r){var i=performance.now();if(e){if(this.lastTime){var a=i-this.lastTime,n=r-this.lastDroppedFrames,o=e-this.lastDecodedFrames,s=1e3*n/a,l=this.hls;if(l.trigger(Lt.a.FPS_DROP,{currentDropped:n,currentDecoded:o,totalDroppedFrames:r}),s>0&&n>l.config.fpsDroppedMonitoringThreshold*o){var u=l.currentLevel;Dt.b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(l.autoLevelCapping===-1||l.autoLevelCapping>=u)&&(u-=1,l.trigger(Lt.a.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,l.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.prototype.checkFPSInterval=function(){var t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},e}(Ct),xe=Ce,Pe=function(){function t(e){X(this,t),e&&e.xhrSetup&&(this.xhrSetup=e.xhrSetup)}return t.prototype.destroy=function(){this.abort(),this.loader=null},t.prototype.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},t.prototype.load=function(t,e,r){this.context=t,this.config=e,this.callbacks=r,this.stats={trequest:performance.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},t.prototype.loadInternal=function(){var t,e=this.context;t=this.loader=new XMLHttpRequest;var r=this.stats;r.tfirst=0,r.loaded=0;var i=this.xhrSetup;try{if(i)try{i(t,e.url)}catch(r){t.open("GET",e.url,!0),i(t,e.url)}t.readyState||t.open("GET",e.url,!0)}catch(r){return void this.callbacks.onError({code:t.status,text:r.message},e,t)}e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},t.prototype.readystatechange=function(t){var e=t.currentTarget,r=e.readyState,i=this.stats,a=this.context,n=this.config;if(!i.aborted&&r>=2)if(window.clearTimeout(this.requestTimeout),0===i.tfirst&&(i.tfirst=Math.max(performance.now(),i.trequest)),4===r){var o=e.status;if(o>=200&&o<300){i.tload=Math.max(i.tfirst,performance.now());var s=void 0,l=void 0;"arraybuffer"===a.responseType?(s=e.response,l=s.byteLength):(s=e.responseText,l=s.length),i.loaded=i.total=l;var u={url:e.responseURL,data:s};this.callbacks.onSuccess(u,i,a,e)}else i.retry>=n.maxRetry||o>=400&&o<499?(Dt.b.error(o+" while loading "+a.url),this.callbacks.onError({code:o,text:e.statusText},a,e)):(Dt.b.warn(o+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),i.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),n.timeout)},t.prototype.loadtimeout=function(){Dt.b.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},t.prototype.loadprogress=function(t){var e=t.currentTarget,r=this.stats;r.loaded=t.loaded,t.lengthComputable&&(r.total=t.total);var i=this.callbacks.onProgress;i&&i(r,this.context,null,e)},t}(),Fe=Pe,Ne=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Me=function(t){function e(r){Q(this,e);var i=J(this,t.call(this,r,Lt.a.MANIFEST_LOADING,Lt.a.MANIFEST_LOADED,Lt.a.AUDIO_TRACK_LOADED,Lt.a.ERROR));return i.ticks=0,i.ontick=i.tick.bind(i),i}return $(e,t),e.prototype.destroy=function(){this.cleanTimer(),Ct.prototype.destroy.call(this)},e.prototype.cleanTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.tick=function(){this.ticks++,1===this.ticks&&(this.doTick(),this.ticks>1&&setTimeout(this.tick,1),this.ticks=0)},e.prototype.doTick=function(){this.updateTrack(this.trackId)},e.prototype.onError=function(t){t.fatal&&t.type===kt.b.NETWORK_ERROR&&this.cleanTimer()},e.prototype.onManifestLoading=function(){this.tracks=[],this.trackId=-1},e.prototype.onManifestLoaded=function(t){var e=this,r=t.audioTracks||[],i=!1;this.tracks=r,this.hls.trigger(Lt.a.AUDIO_TRACKS_UPDATED,{audioTracks:r});var a=0;r.forEach(function(t){return t.default&&!i?(e.audioTrack=a,void(i=!0)):void a++}),i===!1&&r.length&&(Dt.b.log("no default audio track defined, use first audio track as default"),this.audioTrack=0)},e.prototype.onAudioTrackLoaded=function(t){t.id<this.tracks.length&&(Dt.b.log("audioTrack "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.timer&&(this.timer=setInterval(this.ontick,1e3*t.details.targetduration)),!t.details.live&&this.timer&&this.cleanTimer())},e.prototype.setAudioTrackInternal=function(t){if(t>=0&&t<this.tracks.length){this.cleanTimer(),this.trackId=t,Dt.b.log("switching to audioTrack "+t);var e=this.tracks[t],r=this.hls,i=e.type,a=e.url,n={id:t,type:i,url:a};r.trigger(Lt.a.AUDIO_TRACK_SWITCH,n),r.trigger(Lt.a.AUDIO_TRACK_SWITCHING,n);var o=e.details;!a||void 0!==o&&o.live!==!0||(Dt.b.log("(re)loading playlist for audioTrack "+t),r.trigger(Lt.a.AUDIO_TRACK_LOADING,{url:a,id:t}))}},e.prototype.updateTrack=function(t){if(t>=0&&t<this.tracks.length){this.cleanTimer(),this.trackId=t,Dt.b.log("updating audioTrack "+t);var e=this.tracks[t],r=e.url,i=e.details;!r||void 0!==i&&i.live!==!0||(Dt.b.log("(re)loading playlist for audioTrack "+t),this.hls.trigger(Lt.a.AUDIO_TRACK_LOADING,{url:r,id:t}))}},Ne(e,[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){this.trackId===t&&void 0!==this.tracks[t].details||this.setAudioTrackInternal(t)}}]),e}(Ct),Ue=Me,Be=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Ge={STOPPED:"STOPPED",STARTING:"STARTING",IDLE:"IDLE",PAUSED:"PAUSED",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS"},je=function(t){function e(r){Z(this,e);var i=tt(this,t.call(this,r,Lt.a.MEDIA_ATTACHED,Lt.a.MEDIA_DETACHING,Lt.a.AUDIO_TRACKS_UPDATED,Lt.a.AUDIO_TRACK_SWITCHING,Lt.a.AUDIO_TRACK_LOADED,Lt.a.KEY_LOADED,Lt.a.FRAG_LOADED,Lt.a.FRAG_PARSING_INIT_SEGMENT,Lt.a.FRAG_PARSING_DATA,Lt.a.FRAG_PARSED,Lt.a.ERROR,Lt.a.BUFFER_CREATED,Lt.a.BUFFER_APPENDED,Lt.a.BUFFER_FLUSHED,Lt.a.INIT_PTS_FOUND));return i.config=r.config,i.audioCodecSwap=!1,i.ticks=0,i._state=Ge.STOPPED,i.ontick=i.tick.bind(i),i.initPTS=[],i.waitingFragment=null,i.videoTrackCC=null,i}return et(e,t),e.prototype.destroy=function(){this.stopLoad(),this.timer&&(clearInterval(this.timer),this.timer=null),Ct.prototype.destroy.call(this),this.state=Ge.STOPPED},e.prototype.onInitPtsFound=function(t){var e=t.id,r=t.frag.cc,i=t.initPTS;"main"===e&&(this.initPTS[r]=i,this.videoTrackCC=r,Dt.b.log("InitPTS for cc:"+r+" found from video track:"+i),this.state===Ge.WAITING_INIT_PTS&&this.tick())},e.prototype.startLoad=function(t){if(this.tracks){var e=this.lastCurrentTime;this.stopLoad(),this.timer||(this.timer=setInterval(this.ontick,100)),this.fragLoadError=0,e>0&&t===-1?(Dt.b.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=Ge.IDLE):(this.lastCurrentTime=this.startPosition?this.startPosition:t,this.state=Ge.STARTING),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=t,this.state=Ge.STOPPED},e.prototype.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragCurrent=null),this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=Ge.STOPPED},e.prototype.tick=function(){this.ticks++,1===this.ticks&&(this.doTick(),this.ticks>1&&setTimeout(this.tick,1),this.ticks=0)},e.prototype.doTick=function(){var t,e,r,i=this.hls,a=i.config;switch(this.state){case Ge.ERROR:case Ge.PAUSED:case Ge.BUFFER_FLUSHING:break;case Ge.STARTING:this.state=Ge.WAITING_TRACK,this.loadedmetadata=!1;break;case Ge.IDLE:var n=this.tracks;if(!n)break;if(!this.media&&(this.startFragRequested||!a.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else if(t=this.nextLoadPosition,void 0===t)break;var o=this.mediaBuffer?this.mediaBuffer:this.media,s=this.videoBuffer?this.videoBuffer:this.media,l=te.bufferInfo(o,t,a.maxBufferHole),u=te.bufferInfo(s,t,a.maxBufferHole),d=l.len,c=l.end,f=this.fragPrevious,h=Math.max(a.maxBufferLength,u.len),p=this.audioSwitch,g=this.trackId;if((d<h||p)&&g<n.length){if(r=n[g].details,"undefined"==typeof r){this.state=Ge.WAITING_TRACK;break}if(!p&&!r.live&&f&&f.sn===r.endSN&&(!this.media.seeking||this.media.duration-c<f.duration/2)){this.hls.trigger(Lt.a.BUFFER_EOS,{type:"audio"}),this.state=Ge.ENDED;break}var v=r.fragments,m=v.length,y=v[0].start,b=v[m-1].start+v[m-1].duration,E=void 0;if(p)if(r.live&&!r.PTSKnown)Dt.b.log("switching audiotrack, live stream, unknown PTS,load first fragment"),c=0;else if(c=t,r.PTSKnown&&t<y){if(!(l.end>y||l.nextStart))return;Dt.b.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=y+.05}if(r.initSegment&&!r.initSegment.data)E=r.initSegment;else if(c<=y){if(E=v[0],null!==this.videoTrackCC&&E.cc!==this.videoTrackCC&&(E=T(v,this.videoTrackCC)),r.live&&E.loadIdx&&E.loadIdx===this.fragLoadIdx){var R=l.nextStart?l.nextStart:y;return Dt.b.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(R+.05)),void(this.media.currentTime=R+.05)}}else{var S=void 0,A=a.maxFragLookUpTolerance,w=f?v[f.sn-v[0].sn+1]:void 0,_=function(t){var e=Math.min(A,t.duration);return t.start+t.duration-e<=c?1:t.start-e>c&&t.start?-1:0};c<b?(c>b-A&&(A=0),S=w&&!_(w)?w:$t.search(v,_)):S=v[m-1],S&&(E=S,y=S.start,f&&E.level===f.level&&E.sn===f.sn&&(E.sn<r.endSN?(E=v[E.sn+1-r.startSN],Dt.b.log("SN just loaded, load next one: "+E.sn)):E=null))}if(E)if(E.decryptdata&&null!=E.decryptdata.uri&&null==E.decryptdata.key)Dt.b.log("Loading key for "+E.sn+" of ["+r.startSN+" ,"+r.endSN+"],track "+g),this.state=Ge.KEY_LOADING,i.trigger(Lt.a.KEY_LOADING,{frag:E});else{if(Dt.b.log("Loading "+E.sn+", cc: "+E.cc+" of ["+r.startSN+" ,"+r.endSN+"],track "+g+", currentTime:"+t+",bufferEnd:"+c.toFixed(3)),void 0!==this.fragLoadIdx?this.fragLoadIdx++:this.fragLoadIdx=0,E.loadCounter){E.loadCounter++;var L=a.fragLoadingLoopThreshold;if(E.loadCounter>L&&Math.abs(this.fragLoadIdx-E.loadIdx)<L)return void i.trigger(Lt.a.ERROR,{type:kt.b.MEDIA_ERROR,details:kt.a.FRAG_LOOP_LOADING_ERROR,fatal:!1,frag:E})}else E.loadCounter=1;E.loadIdx=this.fragLoadIdx,this.fragCurrent=E,this.startFragRequested=!0,isNaN(E.sn)||(this.nextLoadPosition=E.start+E.duration),i.trigger(Lt.a.FRAG_LOADING,{frag:E}),this.state=Ge.FRAG_LOADING}}break;case Ge.WAITING_TRACK:e=this.tracks[this.trackId],e&&e.details&&(this.state=Ge.IDLE);break;case Ge.FRAG_LOADING_WAITING_RETRY:var k=performance.now(),D=this.retryDate;o=this.media;var I=o&&o.seeking;(!D||k>=D||I)&&(Dt.b.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=Ge.IDLE);break;case Ge.WAITING_INIT_PTS:var O=this.videoTrackCC;if(void 0===this.initPTS[O])break;var C=this.waitingFragment;if(C){var x=C.frag.cc;O!==x?(e=this.tracks[this.trackId],e.details&&e.details.live&&(Dt.b.warn("Waiting fragment CC ("+x+") does not match video track CC ("+O+")"),this.waitingFragment=null,this.state=Ge.IDLE)):(this.state=Ge.FRAG_LOADING,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null)}else this.state=Ge.IDLE;break;case Ge.STOPPED:case Ge.FRAG_LOADING:case Ge.PARSING:case Ge.PARSED:case Ge.ENDED:}},e.prototype.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("ended",this.onvended);var r=this.config;this.tracks&&r.autoStartLoad&&this.startLoad(r.startPosition)},e.prototype.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(Dt.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.tracks;e&&e.forEach(function(t){t.details&&t.details.fragments.forEach(function(t){t.loadCounter=void 0})}),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.stopLoad()},e.prototype.onMediaSeeking=function(){this.state===Ge.ENDED&&(this.state=Ge.IDLE),this.media&&(this.lastCurrentTime=this.media.currentTime),void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold),this.tick()},e.prototype.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},e.prototype.onAudioTracksUpdated=function(t){Dt.b.log("audio tracks updated"),this.tracks=t.audioTracks},e.prototype.onAudioTrackSwitching=function(t){var e=!!t.url;this.trackId=t.id,this.fragCurrent=null,this.state=Ge.PAUSED,this.waitingFragment=null,e?this.timer||(this.timer=setInterval(this.ontick,100)):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(this.audioSwitch=!0,this.state=Ge.IDLE,void 0!==this.fragLoadIdx&&(this.fragLoadIdx+=2*this.config.fragLoadingLoopThreshold)),this.tick()},e.prototype.onAudioTrackLoaded=function(t){var e=t.details,r=t.id,i=this.tracks[r],a=e.totalduration,n=0;if(Dt.b.log("track "+r+" loaded ["+e.startSN+","+e.endSN+"],duration:"+a),e.live){var o=i.details;o&&e.fragments.length>0?(b(o,e),n=e.fragments[0].start,e.PTSKnown?Dt.b.log("live audio playlist sliding:"+n.toFixed(3)):Dt.b.log("live audio playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,Dt.b.log("live audio playlist - first load, unknown sliding"))}else e.PTSKnown=!1;if(i.details=e,!this.startFragRequested){if(this.startPosition===-1){var s=e.startTimeOffset;isNaN(s)?this.startPosition=0:(Dt.b.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s)}this.nextLoadPosition=this.startPosition}this.state===Ge.WAITING_TRACK&&(this.state=Ge.IDLE),this.tick()},e.prototype.onKeyLoaded=function(){this.state===Ge.KEY_LOADING&&(this.state=Ge.IDLE,this.tick())},e.prototype.onFragLoaded=function(t){var e=this.fragCurrent,r=t.frag;if(this.state===Ge.FRAG_LOADING&&e&&"audio"===r.type&&r.level===e.level&&r.sn===e.sn){var i=this.tracks[this.trackId],a=i.details,n=a.totalduration,o=e.level,s=e.sn,l=e.cc,u=this.config.defaultAudioCodec||i.audioCodec||"mp4a.40.2",d=this.stats=t.stats;if("initSegment"===s)this.state=Ge.IDLE,d.tparsed=d.tbuffered=performance.now(),a.initSegment.data=t.payload,this.hls.trigger(Lt.a.FRAG_BUFFERED,{stats:d,frag:e,id:"audio"}),this.tick();else{this.state=Ge.PARSING,this.appended=!1,this.demuxer||(this.demuxer=new se(this.hls,"audio"));var c=this.initPTS[l],f=a.initSegment?a.initSegment.data:[];if(a.initSegment||void 0!==c){this.pendingBuffering=!0,Dt.b.log("Demuxing "+s+" of ["+a.startSN+" ,"+a.endSN+"],track "+o);var h=!1;this.demuxer.push(t.payload,f,u,null,e,n,h,c)}else Dt.b.log("unknown video PTS for continuity counter "+l+", waiting for video PTS before demuxing audio frag "+s+" of ["+a.startSN+" ,"+a.endSN+"],track "+o),this.waitingFragment=t,this.state=Ge.WAITING_INIT_PTS}}this.fragLoadError=0},e.prototype.onFragParsingInitSegment=function(t){var e=this.fragCurrent,r=t.frag;if(e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===Ge.PARSING){var i=t.tracks,a=void 0;if(i.video&&delete i.video,a=i.audio){a.levelCodec=a.codec,a.id=t.id,this.hls.trigger(Lt.a.BUFFER_CODECS,i),Dt.b.log("audio track:audio,container:"+a.container+",codecs[level/parsed]=["+a.levelCodec+"/"+a.codec+"]");var n=a.initSegment;if(n){var o={type:"audio",data:n,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[o]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(Lt.a.BUFFER_APPENDING,o))}this.tick()}}},e.prototype.onFragParsingData=function(t){var e=this,r=this.fragCurrent,i=t.frag;if(r&&"audio"===t.id&&"audio"===t.type&&i.sn===r.sn&&i.level===r.level&&this.state===Ge.PARSING){var a=this.trackId,n=this.tracks[a],o=this.hls;isNaN(t.endPTS)&&(t.endPTS=t.startPTS+r.duration,t.endDTS=t.startDTS+r.duration),Dt.b.log("parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb),y(n.details,r,t.startPTS,t.endPTS);var s=this.audioSwitch,l=this.media,u=!1;if(s&&l)if(l.readyState){var d=l.currentTime;Dt.b.log("switching audio track : currentTime:"+d),d>=t.startPTS&&(Dt.b.log("switching audio track : flushing all audio"),this.state=Ge.BUFFER_FLUSHING,o.trigger(Lt.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),u=!0,this.audioSwitch=!1,o.trigger(Lt.a.AUDIO_TRACK_SWITCHED,{id:a}))}else this.audioSwitch=!1,o.trigger(Lt.a.AUDIO_TRACK_SWITCHED,{id:a});var c=this.pendingData;this.audioSwitch||([t.data1,t.data2].forEach(function(e){e&&e.length&&c.push({type:t.type,data:e,parent:"audio",content:"data"})}),!u&&c.length&&(c.forEach(function(t){e.state===Ge.PARSING&&(e.pendingBuffering=!0,e.hls.trigger(Lt.a.BUFFER_APPENDING,t))}),this.pendingData=[],this.appended=!0)),this.tick()}},e.prototype.onFragParsed=function(t){var e=this.fragCurrent,r=t.frag;e&&"audio"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===Ge.PARSING&&(this.stats.tparsed=performance.now(),this.state=Ge.PARSED,this._checkAppendedParsed())},e.prototype.onBufferCreated=function(t){var e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},e.prototype.onBufferAppended=function(t){if("audio"===t.parent){var e=this.state;e!==Ge.PARSING&&e!==Ge.PARSED||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},e.prototype._checkAppendedParsed=function(){if(!(this.state!==Ge.PARSED||this.appended&&this.pendingBuffering)){var t=this.fragCurrent,e=this.stats,r=this.hls;if(t){this.fragPrevious=t,e.tbuffered=performance.now(),r.trigger(Lt.a.FRAG_BUFFERED,{stats:e,frag:t,id:"audio"});var i=this.mediaBuffer?this.mediaBuffer:this.media;Dt.b.log("audio buffered : "+ue.toString(i.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,r.trigger(Lt.a.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=Ge.IDLE}this.tick()}},e.prototype.onError=function(t){var e=t.frag;if(!e||"audio"===e.type)switch(t.details){case kt.a.FRAG_LOAD_ERROR:case kt.a.FRAG_LOAD_TIMEOUT:if(!t.fatal){var r=this.fragLoadError;r?r++:r=1;var i=this.config;if(r<=i.fragLoadingMaxRetry){this.fragLoadError=r,e.loadCounter=0;var a=Math.min(Math.pow(2,r-1)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);Dt.b.warn("audioStreamController: frag loading failed, retry in "+a+" ms"),this.retryDate=performance.now()+a,this.state=Ge.FRAG_LOADING_WAITING_RETRY}else Dt.b.error("audioStreamController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ge.ERROR}break;case kt.a.FRAG_LOOP_LOADING_ERROR:case kt.a.AUDIO_TRACK_LOAD_ERROR:case kt.a.AUDIO_TRACK_LOAD_TIMEOUT:case kt.a.KEY_LOAD_ERROR:case kt.a.KEY_LOAD_TIMEOUT:this.state!==Ge.ERROR&&(this.state=t.fatal?Ge.ERROR:Ge.IDLE,Dt.b.warn("audioStreamController: "+t.details+" while loading frag,switch to "+this.state+" state ..."));break;case kt.a.BUFFER_FULL_ERROR:if("audio"===t.parent&&(this.state===Ge.PARSING||this.state===Ge.PARSED)){var n=this.mediaBuffer,o=this.media.currentTime,s=n&&te.isBuffered(n,o)&&te.isBuffered(n,o+.5);if(s){var l=this.config;l.maxMaxBufferLength>=l.maxBufferLength&&(l.maxMaxBufferLength/=2,Dt.b.warn("audio:reduce max buffer length to "+l.maxMaxBufferLength+"s"),this.fragLoadIdx+=2*l.fragLoadingLoopThreshold),this.state=Ge.IDLE}else Dt.b.warn("buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=Ge.BUFFER_FLUSHING,this.hls.trigger(Lt.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},e.prototype.onBufferFlushed=function(){var t=this,e=this.pendingData;e&&e.length?(Dt.b.log("appending pending audio data on Buffer Flushed"),e.forEach(function(e){t.hls.trigger(Lt.a.BUFFER_APPENDING,e)}),this.appended=!0,this.pendingData=[],this.state=Ge.PARSED):(this.state=Ge.IDLE,this.fragPrevious=null,this.tick())},Be(e,[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,Dt.b.log("audio stream:"+e+"->"+t)}},get:function(){return this._state}}]),e}(Ct),Ke=je,He=function(){function t(t){if("string"!=typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function e(t){if("string"!=typeof t)return!1;var e=o[t.toLowerCase()];return!!e&&t.toLowerCase()}function r(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}function i(i,n,o){var s=this,l=function(){if("undefined"!=typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)}(),u={};l?s=document.createElement("custom"):u.enumerable=!0,s.hasBeenReset=!1;var d="",c=!1,f=i,h=n,p=o,g=null,v="",m=!0,y="auto",b="start",E=50,T="middle",R=50,S="middle";if(Object.defineProperty(s,"id",r({},u,{get:function(){return d},set:function(t){d=""+t}})),Object.defineProperty(s,"pauseOnExit",r({},u,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(s,"startTime",r({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",r({},u,{get:function(){return h},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");h=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",r({},u,{get:function(){return p},set:function(t){p=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",r({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",r({},u,{get:function(){return v},set:function(e){var r=t(e);if(r===!1)throw new SyntaxError("An invalid or illegal string was specified.");v=r,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",r({},u,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",r({},u,{get:function(){return y},set:function(t){if("number"!=typeof t&&t!==a)throw new SyntaxError("An invalid number or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",r({},u,{get:function(){return b},set:function(t){var r=e(t);if(!r)throw new SyntaxError("An invalid or illegal string was specified.");b=r,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",r({},u,{get:function(){return E},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",r({},u,{get:function(){return T},set:function(t){var r=e(t);if(!r)throw new SyntaxError("An invalid or illegal string was specified.");T=r,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",r({},u,{get:function(){return R},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");R=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",r({},u,{get:function(){return S},set:function(t){var r=e(t);if(!r)throw new SyntaxError("An invalid or illegal string was specified.");S=r,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var a="auto",n={"":!0,lr:!0,rl:!0},o={start:!0,middle:!0,end:!0,left:!0,right:!0};return i.prototype.getCueAsHTML=function(){var t=window.WebVTT;return t.convertCueToDOMTree(window,this.text)},i}(),We=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};at.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var i=0;i<r.length;++i)if(e===r[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){var r;return!!((r=e.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(e=parseFloat(e),e>=0&&e<=100))&&(this.set(t,e),!0)}};var Ve=new He(0,0,0),qe="middle"===Ve.align?"middle":"center";rt.prototype={parse:function(t){function e(){var t=i.buffer,e=0;for(t=st(t);e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var r=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,i.buffer=t.substr(e),r}function r(t){nt(t,function(t,e){switch(t){case"Region":console.log("parse region",e)}},/:/)}var i=this;t&&(i.buffer+=i.decoder.decode(t,{stream:!0}));try{var a;if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;a=e();var n=a.match(/^()?WEBVTT([ \t].*)?$/);if(!n||!n[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var o=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(o?o=!1:a=e(),i.state){case"HEADER":/:/.test(a)?r(a):a||(i.state="ID");continue;case"NOTE":a||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){i.state="NOTE";break}if(!a)continue;if(i.cue=new He(0,0,""),i.state="CUE",a.indexOf("-->")===-1){i.cue.id=a;continue}case"CUE":try{ot(a,i.cue,i.regionList)}catch(t){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var s=a.indexOf("-->")!==-1;if(!a||s&&(o=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=a;continue;case"BADCUE":a||(i.state="ID");continue}}}catch(t){"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new Error("Malformed WebVTT signature.")}catch(t){throw t}return t.onflush&&t.onflush(),this}};var Ye=rt,ze={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Xe=function(t){var e=t;return ze.hasOwnProperty(t)&&(e=ze[t]),String.fromCharCode(e)},Qe=15,Je=100,$e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ze={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tr={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},er={25:2,26:4,29:6,30:8,31:10,27:13,28:15},rr=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],ir={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(t){this.time=t},log:function(t,e){var r=this.verboseFilter[t];this.verboseLevel>=r&&console.log(this.time+" ["+t+"] "+e)}},ar=function(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].toString(16));return e},nr=function(){function t(e,r,i,a,n){ut(this,t),this.foreground=e||"white",this.underline=r||!1,this.italics=i||!1,this.background=a||"black",this.flash=n||!1}return t.prototype.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},t.prototype.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],r=0;r<e.length;r++){var i=e[r];t.hasOwnProperty(i)&&(this[i]=t[i])}},t.prototype.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},t.prototype.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},t.prototype.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},t.prototype.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),or=function(){function t(e,r,i,a,n,o){ut(this,t),this.uchar=e||" ",this.penState=new nr(r,i,a,n,o)}return t.prototype.reset=function(){this.uchar=" ",this.penState.reset()},t.prototype.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},t.prototype.setPenState=function(t){this.penState.copy(t)},t.prototype.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},t.prototype.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},t.prototype.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault();
|
28 |
+
},t}(),sr=function(){function t(){ut(this,t),this.chars=[];for(var e=0;e<Je;e++)this.chars.push(new or);this.pos=0,this.currPenState=new nr}return t.prototype.equals=function(t){for(var e=!0,r=0;r<Je;r++)if(!this.chars[r].equals(t.chars[r])){e=!1;break}return e},t.prototype.copy=function(t){for(var e=0;e<Je;e++)this.chars[e].copy(t.chars[e])},t.prototype.isEmpty=function(){for(var t=!0,e=0;e<Je;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},t.prototype.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(ir.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>Je&&(ir.log("ERROR","Too large cursor position "+this.pos),this.pos=Je)},t.prototype.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var r=this.pos+1;r<e+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(e)},t.prototype.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},t.prototype.insertChar=function(t){t>=144&&this.backSpace();var e=Xe(t);return this.pos>=Je?void ir.log("ERROR","Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),void this.moveCursor(1))},t.prototype.clearFromPos=function(t){var e;for(e=t;e<Je;e++)this.chars[e].reset()},t.prototype.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},t.prototype.clearToEndOfRow=function(){this.clearFromPos(this.pos)},t.prototype.getTextString=function(){for(var t=[],e=!0,r=0;r<Je;r++){var i=this.chars[r].uchar;" "!==i&&(e=!1),t.push(i)}return e?"":t.join("")},t.prototype.setPenStyles=function(t){this.currPenState.setStyles(t);var e=this.chars[this.pos];e.setPenState(this.currPenState)},t}(),lr=function(){function t(){ut(this,t),this.rows=[];for(var e=0;e<Qe;e++)this.rows.push(new sr);this.currRow=Qe-1,this.nrRollUpRows=null,this.reset()}return t.prototype.reset=function(){for(var t=0;t<Qe;t++)this.rows[t].clear();this.currRow=Qe-1},t.prototype.equals=function(t){for(var e=!0,r=0;r<Qe;r++)if(!this.rows[r].equals(t.rows[r])){e=!1;break}return e},t.prototype.copy=function(t){for(var e=0;e<Qe;e++)this.rows[e].copy(t.rows[e])},t.prototype.isEmpty=function(){for(var t=!0,e=0;e<Qe;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},t.prototype.backSpace=function(){var t=this.rows[this.currRow];t.backSpace()},t.prototype.clearToEndOfRow=function(){var t=this.rows[this.currRow];t.clearToEndOfRow()},t.prototype.insertChar=function(t){var e=this.rows[this.currRow];e.insertChar(t)},t.prototype.setPen=function(t){var e=this.rows[this.currRow];e.setPenStyles(t)},t.prototype.moveCursor=function(t){var e=this.rows[this.currRow];e.moveCursor(t)},t.prototype.setCursor=function(t){ir.log("INFO","setCursor: "+t);var e=this.rows[this.currRow];e.setCursor(t)},t.prototype.setPAC=function(t){ir.log("INFO","pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var r=0;r<Qe;r++)this.rows[r].clear();var i=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){var n=a.rows[i].cueStartTime;if(n&&n<ir.time)for(var o=0;o<this.nrRollUpRows;o++)this.rows[e-this.nrRollUpRows+o+1].copy(a.rows[i+o])}}this.currRow=e;var s=this.rows[this.currRow];if(null!==t.indent){var l=t.indent,u=Math.max(l-1,0);s.setCursor(t.indent),t.color=s.chars[u].penState.foreground}var d={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(d)},t.prototype.setBkgData=function(t){ir.log("INFO","bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},t.prototype.setRollUpRows=function(t){this.nrRollUpRows=t},t.prototype.rollUp=function(){if(null===this.nrRollUpRows)return void ir.log("DEBUG","roll_up but nrRollUpRows not set yet");ir.log("TEXT",this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),ir.log("INFO","Rolling up")},t.prototype.getDisplayText=function(t){t=t||!1;for(var e=[],r="",i=-1,a=0;a<Qe;a++){var n=this.rows[a].getTextString();n&&(i=a+1,t?e.push("Row "+i+": '"+n+"'"):e.push(n.trim()))}return e.length>0&&(r=t?"["+e.join(" | ")+"]":e.join("\n")),r},t.prototype.getTextAndFormat=function(){return this.rows},t}(),ur=function(){function t(e,r){ut(this,t),this.chNr=e,this.outputFilter=r,this.mode=null,this.verbose=0,this.displayedMemory=new lr,this.nonDisplayedMemory=new lr,this.lastOutputScreen=new lr,this.currRollUpRow=this.displayedMemory.rows[Qe-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}return t.prototype.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[Qe-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},t.prototype.getHandler=function(){return this.outputFilter},t.prototype.setHandler=function(t){this.outputFilter=t},t.prototype.setPAC=function(t){this.writeScreen.setPAC(t)},t.prototype.setBkgData=function(t){this.writeScreen.setBkgData(t)},t.prototype.setMode=function(t){t!==this.mode&&(this.mode=t,ir.log("INFO","MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},t.prototype.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";ir.log("INFO",r+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(ir.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},t.prototype.ccRCL=function(){ir.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},t.prototype.ccBS=function(){ir.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},t.prototype.ccAOF=function(){},t.prototype.ccAON=function(){},t.prototype.ccDER=function(){ir.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},t.prototype.ccRU=function(t){ir.log("INFO","RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},t.prototype.ccFON=function(){ir.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},t.prototype.ccRDC=function(){ir.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},t.prototype.ccTR=function(){ir.log("INFO","TR"),this.setMode("MODE_TEXT")},t.prototype.ccRTD=function(){ir.log("INFO","RTD"),this.setMode("MODE_TEXT")},t.prototype.ccEDM=function(){ir.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},t.prototype.ccCR=function(){ir.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},t.prototype.ccENM=function(){ir.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},t.prototype.ccEOC=function(){if(ir.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,ir.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},t.prototype.ccTO=function(t){ir.log("INFO","TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},t.prototype.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2===1,e.italics=t>=46,e.italics)e.foreground="white";else{var r=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[r]}ir.log("INFO","MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},t.prototype.outputDataUpdate=function(){var t=ir.time;null!==t&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(t,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.prototype.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}(),dr=function(){function t(e,r,i){ut(this,t),this.field=e||1,this.outputs=[r,i],this.channels=[new ur(1,r),new ur(2,i)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}return t.prototype.getHandler=function(t){return this.channels[t].getHandler()},t.prototype.setHandler=function(t,e){this.channels[t].setHandler(e)},t.prototype.addData=function(t,e){var r,i,a,n=!1;this.lastTime=t,ir.setTime(t);for(var o=0;o<e.length;o+=2)if(i=127&e[o],a=127&e[o+1],0!==i||0!==a){if(ir.log("DATA","["+ar([e[o],e[o+1]])+"] -> ("+ar([i,a])+")"),r=this.parseCmd(i,a),r||(r=this.parseMidrow(i,a)),r||(r=this.parsePAC(i,a)),r||(r=this.parseBackgroundAttributes(i,a)),!r&&(n=this.parseChars(i,a)))if(this.currChNr&&this.currChNr>=0){var s=this.channels[this.currChNr-1];s.insertChars(n)}else ir.log("WARNING","No channel found yet. TEXT-MODE?");r?this.dataCounters.cmd+=2:n?this.dataCounters.char+=2:(this.dataCounters.other+=2,ir.log("WARNING","Couldn't parse cleaned data "+ar([i,a])+" orig: "+ar([e[o],e[o+1]])))}else this.dataCounters.padding+=2},t.prototype.parseCmd=function(t,e){var r=null,i=(20===t||28===t)&&32<=e&&e<=47,a=(23===t||31===t)&&33<=e&&e<=35;if(!i&&!a)return!1;if(t===this.lastCmdA&&e===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,ir.log("DEBUG","Repeated command ("+ar([t,e])+") is dropped"),!0;r=20===t||23===t?1:2;var n=this.channels[r-1];return 20===t||28===t?32===e?n.ccRCL():33===e?n.ccBS():34===e?n.ccAOF():35===e?n.ccAON():36===e?n.ccDER():37===e?n.ccRU(2):38===e?n.ccRU(3):39===e?n.ccRU(4):40===e?n.ccFON():41===e?n.ccRDC():42===e?n.ccTR():43===e?n.ccRTD():44===e?n.ccEDM():45===e?n.ccCR():46===e?n.ccENM():47===e&&n.ccEOC():n.ccTO(e-32),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r,!0},t.prototype.parseMidrow=function(t,e){var r=null;if((17===t||25===t)&&32<=e&&e<=47){if(r=17===t?1:2,r!==this.currChNr)return ir.log("ERROR","Mismatch channel in midrow parsing"),!1;var i=this.channels[r-1];return i.ccMIDROW(e),ir.log("DEBUG","MIDROW ("+ar([t,e])+")"),!0}return!1},t.prototype.parsePAC=function(t,e){var r=null,i=null,a=(17<=t&&t<=23||25<=t&&t<=31)&&64<=e&&e<=127,n=(16===t||24===t)&&64<=e&&e<=95;if(!a&&!n)return!1;if(t===this.lastCmdA&&e===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;r=t<=23?1:2,i=64<=e&&e<=95?1===r?$e[t]:tr[t]:1===r?Ze[t]:er[t];var o=this.interpretPAC(i,e),s=this.channels[r-1];return s.setPAC(o),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r,!0},t.prototype.interpretPAC=function(t,e){var r=e,i={color:null,italics:!1,indent:null,underline:!1,row:t};return r=e>95?e-96:e-64,i.underline=1===(1&r),r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((r-16)/2),i},t.prototype.parseChars=function(t,e){var r=null,i=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),17<=a&&a<=19){var n=e;n=17===a?e+80:18===a?e+112:e+144,ir.log("INFO","Special char '"+Xe(n)+"' in channel "+r),i=[n]}else 32<=t&&t<=127&&(i=0===e?[t]:[t,e]);if(i){var o=ar(i);ir.log("DEBUG","Char codes = "+o.join(",")),this.lastCmdA=null,this.lastCmdB=null}return i},t.prototype.parseBackgroundAttributes=function(t,e){var r,i,a,n,o=(16===t||24===t)&&32<=e&&e<=47,s=(23===t||31===t)&&45<=e&&e<=47;return!(!o&&!s)&&(r={},16===t||24===t?(i=Math.floor((e-32)/2),r.background=rr[i],e%2===1&&(r.background=r.background+"_semi")):45===e?r.background="transparent":(r.foreground="black",47===e&&(r.underline=!0)),a=t<24?1:2,n=this.channels[a-1],n.setBkgData(r),this.lastCmdA=null,this.lastCmdB=null,!0)},t.prototype.reset=function(){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].reset();this.lastCmdA=null,this.lastCmdB=null},t.prototype.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].cueSplitAtTime(t)},t}(),cr=dr,fr=function(t,e,r){return t.substr(r||0,e.length)===e},hr=function(t){var e=parseInt(t.substr(-3)),r=parseInt(t.substr(-6,2)),i=parseInt(t.substr(-9,2)),a=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;return isNaN(e)||isNaN(r)||isNaN(i)||isNaN(a)?-1:(e+=1e3*r,e+=6e4*i,e+=36e5*a)},pr=function t(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()},gr=function(t,e,r){var i=t[e],a=t[i.prevCC];if(!a||!a.new&&i.new)return t.ccOffset=t.presentationOffset=i.start,void(i.new=!1);for(;a&&a.new;)t.ccOffset+=i.start-a.start,i.new=!1,i=a,a=t[i.prevCC];t.presentationOffset=r},vr={parse:function(t,e,r,i,a,n){var o=/\r\n|\n\r|\n|\r/g,s=String.fromCharCode.apply(null,new Uint8Array(t)).trim().replace(o,"\n").split("\n"),l="00:00.000",u=0,d=0,c=0,f=[],h=void 0,p=!0,g=new Ye;g.oncue=function(t){var e=r[i],a=r.ccOffset;e&&e.new&&(void 0!==d?a=r.ccOffset=e.start:gr(r,i,c)),c&&(a=c+r.ccOffset-r.presentationOffset),t.startTime+=a-d,t.endTime+=a-d,t.id=pr(t.startTime)+pr(t.endTime)+pr(t.text),t.text=decodeURIComponent(escape(t.text)),t.endTime>0&&f.push(t)},g.onparsingerror=function(t){h=t},g.onflush=function(){return h&&n?void n(h):void a(f)},s.forEach(function(t){if(p){if(fr(t,"X-TIMESTAMP-MAP=")){p=!1,t.substr(16).split(",").forEach(function(t){fr(t,"LOCAL:")?l=t.substr(6):fr(t,"MPEGTS:")&&(u=parseInt(t.substr(7)))});try{e=e<0?e+8589934592:e,u-=e,d=hr(l)/1e3,c=u/9e4,d===-1&&(h=new Error("Malformed X-TIMESTAMP-MAP: "+t))}catch(e){h=new Error("Malformed X-TIMESTAMP-MAP: "+t)}return}""===t&&(p=!1)}g.parse(t+"\n")}),g.flush()}},mr=vr,yr=function(t){function e(r){dt(this,e);var i=ct(this,t.call(this,r,Lt.a.MEDIA_ATTACHING,Lt.a.MEDIA_DETACHING,Lt.a.FRAG_PARSING_USERDATA,Lt.a.MANIFEST_LOADING,Lt.a.MANIFEST_LOADED,Lt.a.FRAG_LOADED,Lt.a.LEVEL_SWITCHING,Lt.a.INIT_PTS_FOUND));if(i.hls=r,i.config=r.config,i.enabled=!0,i.Cues=r.config.cueHandler,i.textTracks=[],i.tracks=[],i.unparsedVttFrags=[],i.initPTS=void 0,i.cueRanges=[],i.config.enableCEA708Captions){var a=i,n=function(t,e){var r=null;try{r=new window.Event("addtrack")}catch(t){r=document.createEvent("Event"),r.initEvent("addtrack",!1,!1)}r.track=t,e.dispatchEvent(r)},o={newCue:function(t,e,r){if(!a.textTrack1){var i=a.getExistingTrack("1");if(i)a.textTrack1=i,ht(a.textTrack1),n(a.textTrack1,a.media);else{var o=a.createTextTrack("captions",a.config.captionsTextTrack1Label,a.config.captionsTextTrack1LanguageCode);o&&(o.textTrack1=!0,a.textTrack1=o)}}a.addCues("textTrack1",t,e,r)}},s={newCue:function(t,e,r){if(!a.textTrack2){var i=a.getExistingTrack("2");if(i)a.textTrack2=i,ht(a.textTrack2),n(a.textTrack2,a.media);else{var o=a.createTextTrack("captions",a.config.captionsTextTrack2Label,a.config.captionsTextTrack1LanguageCode);o&&(o.textTrack2=!0,a.textTrack2=o)}}a.addCues("textTrack2",t,e,r)}};i.cea608Parser=new cr(0,o,s)}return i}return ft(e,t),e.prototype.addCues=function(t,e,r,i){for(var a=this.cueRanges,n=!1,o=a.length;o--;){var s=a[o],l=gt(s[0],s[1],e,r);if(l>=0&&(s[0]=Math.min(s[0],e),s[1]=Math.max(s[1],r),n=!0,l/(r-e)>.5))return}n||a.push([e,r]),this.Cues.newCue(this[t],e,r,i)},e.prototype.onInitPtsFound=function(t){var e=this;"undefined"==typeof this.initPTS&&(this.initPTS=t.initPTS),this.unparsedVttFrags.length&&(this.unparsedVttFrags.forEach(function(t){e.onFragLoaded(t)}),this.unparsedVttFrags=[])},e.prototype.getExistingTrack=function(t){var e=this.media;if(e)for(var r=0;r<e.textTracks.length;r++){var i=e.textTracks[r],a="textTrack"+t;if(i[a]===!0)return i}return null},e.prototype.createTextTrack=function(t,e,r){var i=this.media;if(i)return i.addTextTrack(t,e,r)},e.prototype.destroy=function(){Ct.prototype.destroy.call(this)},e.prototype.onMediaAttaching=function(t){this.media=t.media},e.prototype.onMediaDetaching=function(){ht(this.textTrack1),ht(this.textTrack2)},e.prototype.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0};var t=this.media;if(t){var e=t.textTracks;if(e)for(var r=0;r<e.length;r++)ht(e[r])}},e.prototype.onManifestLoaded=function(t){var e=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=void 0,this.cueRanges=[],this.config.enableWebVTT){this.tracks=t.subtitles||[];var r=this.media?this.media.textTracks:[];this.tracks.forEach(function(t,i){var a=void 0;if(i<r.length){var n=r[i];pt(n,t)&&(a=n)}a||(a=e.createTextTrack("subtitles",t.name,t.lang)),a.mode=t.default?"showing":"hidden",e.textTracks.push(a)})}},e.prototype.onLevelSwitching=function(){this.enabled="NONE"!==this.hls.currentLevel.closedCaptions},e.prototype.onFragLoaded=function(t){var e=t.frag,r=t.payload;if("main"===e.type){var i=e.sn;if(i!==this.lastSn+1){var a=this.cea608Parser;a&&a.reset()}this.lastSn=i}else if("subtitle"===e.type)if(r.byteLength){if("undefined"==typeof this.initPTS)return void this.unparsedVttFrags.push(t);var n=this.vttCCs;n[e.cc]||(n[e.cc]={start:e.start,prevCC:this.prevCC,new:!0},this.prevCC=e.cc);var o=this.textTracks,s=this.hls;mr.parse(r,this.initPTS,n,e.cc,function(t){var r=o[e.trackId];t.forEach(function(t){if(!r.cues.getCueById(t.id))try{r.addCue(t)}catch(i){var e=new window.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,r.addCue(e)}}),s.trigger(Lt.a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},function(t){Dt.b.log("Failed to parse VTT cue: "+t),s.trigger(Lt.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})})}else this.hls.trigger(Lt.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})},e.prototype.onFragParsingUserdata=function(t){if(this.enabled&&this.config.enableCEA708Captions)for(var e=0;e<t.samples.length;e++){var r=this.extractCea608Data(t.samples[e].bytes);this.cea608Parser.addData(t.samples[e].pts,r)}},e.prototype.extractCea608Data=function(t){for(var e,r,i,a,n,o=31&t[0],s=2,l=[],u=0;u<o;u++)e=t[s++],r=127&t[s++],i=127&t[s++],a=0!==(4&e),n=3&e,0===r&&0===i||a&&0===n&&(l.push(r),l.push(i));return l},e}(Ct),br=yr,Er=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Tr=function(t){function e(r){vt(this,e);var i=mt(this,t.call(this,r,Lt.a.MEDIA_ATTACHED,Lt.a.MEDIA_DETACHING,Lt.a.MANIFEST_LOADING,Lt.a.MANIFEST_LOADED,Lt.a.SUBTITLE_TRACK_LOADED));return i.tracks=[],i.trackId=-1,i.media=void 0,i}return yt(e,t),e.prototype._onTextTracksChanged=function(){if(this.media){for(var t=-1,e=bt(this.media.textTracks),r=0;r<e.length;r++)"showing"===e[r].mode&&(t=r);this.subtitleTrack=t}},e.prototype.destroy=function(){Ct.prototype.destroy.call(this)},e.prototype.onMediaAttached=function(t){var e=this;this.media=t.media,this.media&&(this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval(function(){e.trackChangeListener()},500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},e.prototype.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),this.media=void 0)},e.prototype.onManifestLoading=function(){this.tracks=[],this.trackId=-1},e.prototype.onManifestLoaded=function(t){var e=this,r=t.subtitles||[],i=!1;this.tracks=r,this.trackId=-1,this.hls.trigger(Lt.a.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:r}),r.forEach(function(t){t.default&&(e.subtitleTrack=t.id,i=!0)})},e.prototype.onTick=function(){var t=this.trackId,e=this.tracks[t];if(e){var r=e.details;void 0!==r&&r.live!==!0||(Dt.b.log("(re)loading playlist for subtitle track "+t),this.hls.trigger(Lt.a.SUBTITLE_TRACK_LOADING,{url:e.url,id:t}))}},e.prototype.onSubtitleTrackLoaded=function(t){var e=this;t.id<this.tracks.length&&(Dt.b.log("subtitle track "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.timer&&(this.timer=setInterval(function(){e.onTick()},1e3*t.details.targetduration,this)),!t.details.live&&this.timer&&(clearInterval(this.timer),this.timer=null))},e.prototype.setSubtitleTrackInternal=function(t){if(t>=0&&t<this.tracks.length){this.timer&&(clearInterval(this.timer),this.timer=null),this.trackId=t,Dt.b.log("switching to subtitle track "+t);var e=this.tracks[t];this.hls.trigger(Lt.a.SUBTITLE_TRACK_SWITCH,{id:t});var r=e.details;void 0!==r&&r.live!==!0||(Dt.b.log("(re)loading playlist for subtitle track "+t),this.hls.trigger(Lt.a.SUBTITLE_TRACK_LOADING,{url:e.url,id:t}))}},Er(e,[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&this.setSubtitleTrackInternal(t)}}]),e}(Ct),Rr=Tr,Sr=function(t){function e(r){Et(this,e);var i=Tt(this,t.call(this,r,Lt.a.ERROR,Lt.a.SUBTITLE_TRACKS_UPDATED,Lt.a.SUBTITLE_TRACK_SWITCH,Lt.a.SUBTITLE_TRACK_LOADED,Lt.a.SUBTITLE_FRAG_PROCESSED));return i.config=r.config,i.vttFragSNsProcessed={},i.vttFragQueues=void 0,i.currentlyProcessing=null,i.currentTrackId=-1,i}return Rt(e,t),e.prototype.destroy=function(){Ct.prototype.destroy.call(this)},e.prototype.clearVttFragQueues=function(){var t=this;this.vttFragQueues={},this.tracks.forEach(function(e){t.vttFragQueues[e.id]=[]})},e.prototype.nextFrag=function(){if(null===this.currentlyProcessing&&this.currentTrackId>-1&&this.vttFragQueues[this.currentTrackId].length){var t=this.currentlyProcessing=this.vttFragQueues[this.currentTrackId].shift();this.hls.trigger(Lt.a.FRAG_LOADING,{frag:t})}},e.prototype.onSubtitleFragProcessed=function(t){t.success&&this.vttFragSNsProcessed[t.frag.trackId].push(t.frag.sn),this.currentlyProcessing=null,this.nextFrag()},e.prototype.onError=function(t){var e=t.frag;e&&"subtitle"!==e.type||this.currentlyProcessing&&(this.currentlyProcessing=null,this.nextFrag())},e.prototype.onSubtitleTracksUpdated=function(t){var e=this;Dt.b.log("subtitle tracks updated"),this.tracks=t.subtitleTracks,this.clearVttFragQueues(),this.vttFragSNsProcessed={},this.tracks.forEach(function(t){e.vttFragSNsProcessed[t.id]=[]})},e.prototype.onSubtitleTrackSwitch=function(t){this.currentTrackId=t.id,this.clearVttFragQueues()},e.prototype.onSubtitleTrackLoaded=function(t){var e=this.vttFragSNsProcessed[t.id],r=this.vttFragQueues[t.id],i=this.currentlyProcessing?this.currentlyProcessing.sn:-1,a=function(t){return e.indexOf(t.sn)>-1},n=function(t){return r.some(function(e){return e.sn===t.sn})};t.details.fragments.forEach(function(e){a(e)||e.sn===i||n(e)||(e.trackId=t.id,r.push(e))}),this.nextFrag()},e}(Ct),Ar=Sr,wr={autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,maxSeekHole:2,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.2,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,fragLoadingLoopThreshold:3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Fe,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,fetchSetup:void 0,abrController:_e,bufferController:ke,capLevelController:Oe,fpsController:xe,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0};wr.subtitleStreamController=Ar,wr.subtitleTrackController=Rr,wr.timelineController=br,wr.cueHandler=At,wr.enableCEA708Captions=!0,wr.enableWebVTT=!0,wr.captionsTextTrack1Label="English",wr.captionsTextTrack1LanguageCode="en",wr.captionsTextTrack2Label="Spanish",wr.captionsTextTrack2LanguageCode="es",wr.audioStreamController=Ke,wr.audioTrackController=Ue;var _r=function(){function t(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)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Lr=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};St(this,t);var i=t.DefaultConfig;if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");for(var a in i)a in r||(r[a]=i[a]);if(void 0!==r.liveMaxLatencyDurationCount&&r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==r.liveMaxLatencyDuration&&(r.liveMaxLatencyDuration<=r.liveSyncDuration||void 0===r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(Dt.a)(r.debug),this.config=r,this._autoLevelCapping=-1;var n=this.observer=new ie.a;n.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];n.emit.apply(n,[t,t].concat(r))},n.off=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];n.removeListener.apply(n,[t].concat(r))},this.on=n.on.bind(n),this.off=n.off.bind(n),this.trigger=n.trigger.bind(n);var o=this.abrController=new r.abrController(this),s=new r.bufferController(this),l=new r.capLevelController(this),u=new r.fpsController(this),d=new qt(this),c=new zt(this),f=new Qt(this),h=new be(this),p=this.levelController=new ve(this),g=this.streamController=new he(this),v=[p,g],m=r.audioStreamController;m&&v.push(new m(this)),this.networkControllers=v;var y=[d,c,f,o,s,l,u,h];if(m=r.audioTrackController){var b=new m(this);this.audioTrackController=b,y.push(b)}if(m=r.subtitleTrackController){var E=new m(this);this.subtitleTrackController=E,y.push(E)}[r.subtitleStreamController,r.timelineController].forEach(function(t){t&&y.push(new t(e))}),this.coreComponents=y}return t.isSupported=function(){var t=window.MediaSource=window.MediaSource||window.WebKitMediaSource,e=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove;return r&&i},_r(t,null,[{key:"version",get:function(){return"0.8.4"}},{key:"Events",get:function(){return Lt.a}},{key:"ErrorTypes",get:function(){return kt.b}},{key:"ErrorDetails",get:function(){return kt.a}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:wr},set:function(e){t.defaultConfig=e}}]),t.prototype.destroy=function(){Dt.b.log("destroy"),this.trigger(Lt.a.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach(function(t){t.destroy()}),this.url=null,this.observer.removeAllListeners(),this._autoLevelCapping=-1},t.prototype.attachMedia=function(t){Dt.b.log("attachMedia"),this.media=t,this.trigger(Lt.a.MEDIA_ATTACHING,{media:t})},t.prototype.detachMedia=function(){Dt.b.log("detachMedia"),this.trigger(Lt.a.MEDIA_DETACHING),this.media=null},t.prototype.loadSource=function(t){t=_t.a.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),Dt.b.log("loadSource:"+t),this.url=t,this.trigger(Lt.a.MANIFEST_LOADING,{url:t})},t.prototype.startLoad=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;Dt.b.log("startLoad("+t+")"),this.networkControllers.forEach(function(e){e.startLoad(t)})},t.prototype.stopLoad=function(){Dt.b.log("stopLoad"),this.networkControllers.forEach(function(t){t.stopLoad()})},t.prototype.swapAudioCodec=function(){Dt.b.log("swapAudioCodec"),this.streamController.swapAudioCodec()},t.prototype.recoverMediaError=function(){Dt.b.log("recoverMediaError");var t=this.media;this.detachMedia(),this.attachMedia(t)},_r(t,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){Dt.b.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){Dt.b.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){Dt.b.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){Dt.b.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){Dt.b.log("set startLevel:"+t);var e=this;t!==-1&&(t=Math.max(t,e.minAutoLevel)),e.levelController.startLevel=t}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){Dt.b.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this,e=t.levels,r=t.config.minAutoBitrate,i=e?e.length:0,a=0;a<i;a++){var n=e[a].realBitrate?Math.max(e[a].realBitrate,e[a].bitrate):e[a].bitrate;if(n>r)return a}return 0}},{key:"maxAutoLevel",get:function(){var t=this,e=t.levels,r=t.autoLevelCapping,i=void 0;return i=r===-1&&e&&e.length?e.length-1:r}},{key:"nextAutoLevel",get:function(){var t=this;return Math.min(Math.max(t.abrController.nextAutoLevel,t.minAutoLevel),t.maxAutoLevel)},set:function(t){var e=this;e.abrController.nextAutoLevel=Math.max(e.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}}]),t}();e.default=Lr},function(t,e,r){function i(t){function e(i){if(r[i])return r[i].exports;var a=r[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{
|
29 |
+
configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e.oe=function(t){throw console.error(t),t};var i=e(e.s=ENTRY_MODULE);return i.default||i}function a(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function n(t){var e=[],r=t.toString(),i=r.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);if(!i)return e;for(var n,o=i[1],s=new RegExp("(\\\\n|\\W)"+a(o)+"\\((/\\*.*?\\*/)?s?.*?([\\.|\\-|\\w|/|@]+).*?\\)","g");n=s.exec(r);)e.push(n[3]);return e}function o(t,e){for(var r=[e],i=[],a={};r.length;){var o=r.pop();if(!a[o]&&t[o]){a[o]=!0,i.push(o);var s=n(t[o]);r=r.concat(s)}}return i}t.exports=function(t,e){e=e||{};var a=r.m,n=e.all?Object.keys(a):o(a,t),s="("+i.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+n.map(function(t){return""+JSON.stringify(t)+": "+a[t].toString()}).join(",")+"})(self);",l=new window.Blob([s],{type:"text/javascript"});if(e.bare)return l;var u=window.URL||window.webkitURL||window.mozURL||window.msURL,d=u.createObjectURL(l),c=new window.Worker(d);return c.objectURL=d,c}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(6),a=r(1),n=r(0),o=r(4),s=r.n(o),l=function(t){var e=new s.a;e.trigger=function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.emit.apply(e,[t,t].concat(i))},e.off=function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.removeListener.apply(e,[t].concat(i))};var r=function(e,r){t.postMessage({event:e,data:r})};t.addEventListener("message",function(a){var o=a.data;switch(o.cmd){case"init":var s=JSON.parse(o.config);t.demuxer=new i.a(e,o.typeSupported,s,o.vendor);try{Object(n.a)(s.debug===!0)}catch(t){console.warn("demuxerWorker: unable to enable logs")}r("init",null);break;case"demux":t.demuxer.push(o.data,o.decryptdata,o.initSegment,o.audioCodec,o.videoCodec,o.timeOffset,o.discontinuity,o.trackSwitch,o.contiguous,o.duration,o.accurateTimeOffset,o.defaultInitPTS)}}),e.on(a.a.FRAG_DECRYPTED,r),e.on(a.a.FRAG_PARSING_INIT_SEGMENT,r),e.on(a.a.FRAG_PARSED,r),e.on(a.a.ERROR,r),e.on(a.a.FRAG_PARSING_METADATA,r),e.on(a.a.FRAG_PARSING_USERDATA,r),e.on(a.a.INIT_PTS_FOUND,r),e.on(a.a.FRAG_PARSING_DATA,function(e,r){var i=[],a={event:e,data:r};r.data1&&(a.data1=r.data1.buffer,i.push(r.data1.buffer),delete r.data1),r.data2&&(a.data2=r.data2.buffer,i.push(r.data2.buffer),delete r.data2),t.postMessage(a,i)})};e.default=l}]).default})},function(t,e,r){var i=r(4);t.exports={TextEncoder:i.TextEncoder,TextDecoder:i.TextDecoder}},function(t,e){!function(e){"use strict";function r(t,e,r){return e<=t&&t<=r}function i(t,e){return t.indexOf(e)!==-1}function a(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function n(t){for(var e=String(t),r=e.length,i=0,a=[];i<r;){var n=e.charCodeAt(i);if(n<55296||n>57343)a.push(n);else if(56320<=n&&n<=57343)a.push(65533);else if(55296<=n&&n<=56319)if(i===r-1)a.push(65533);else{var o=e.charCodeAt(i+1);if(56320<=o&&o<=57343){var s=1023&n,l=1023&o;a.push(65536+(s<<10)+l),i+=1}else a.push(65533)}i+=1}return a}function o(t){for(var e="",r=0;r<t.length;++r){var i=t[r];i<=65535?e+=String.fromCharCode(i):(i-=65536,e+=String.fromCharCode((i>>10)+55296,(1023&i)+56320))}return e}function s(t){return 0<=t&&t<=127}function l(t){this.tokens=[].slice.call(t),this.tokens.reverse()}function u(t,e){if(t)throw TypeError("Decoder error");return e||65533}function d(t){throw TypeError("The code point "+t+" could not be encoded.")}function c(){}function f(){}function h(t){return t=String(t).trim().toLowerCase(),Object.prototype.hasOwnProperty.call(X,t)?X[t]:null}function p(t,e){return e?e[t]||null:null}function g(t,e){var r=e.indexOf(t);return r===-1?null:r}function v(t){if(!("encoding-indexes"in e))throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?");return e["encoding-indexes"][t]}function m(t){if(t>39419&&t<189e3||t>1237575)return null;if(7457===t)return 59335;var e,r=0,i=0,a=v("gb18030-ranges");for(e=0;e<a.length;++e){var n=a[e];if(!(n[0]<=t))break;r=n[0],i=n[1]}return i+t-r}function y(t){if(59335===t)return 7457;var e,r=0,i=0,a=v("gb18030-ranges");for(e=0;e<a.length;++e){var n=a[e];if(!(n[1]<=t))break;r=n[1],i=n[0]}return i+t-r}function b(t){Q=Q||v("jis0208").map(function(t,e){return r(e,8272,8835)?null:t});var e=Q;return e.indexOf(t)}function E(t){J=J||v("big5").map(function(t,e){return e<5024?null:t});var e=J;return 9552===t||9566===t||9569===t||9578===t||21313===t||21317===t?e.lastIndexOf(t):g(t,e)}function T(t,e){if(!(this instanceof T))throw TypeError("Called as a function. Did you forget 'new'?");t=void 0!==t?String(t):tt,e=a(e),this._encoding=null,this._decoder=null,this._ignoreBOM=!1,this._BOMseen=!1,this._error_mode="replacement",this._do_not_flush=!1;var r=h(t);if(null===r||"replacement"===r.name)throw RangeError("Unknown encoding: "+t);if(!Z[r.name])throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?");var i=this;return i._encoding=r,Boolean(e.fatal)&&(i._error_mode="fatal"),Boolean(e.ignoreBOM)&&(i._ignoreBOM=!0),Object.defineProperty||(this.encoding=i._encoding.name.toLowerCase(),this.fatal="fatal"===i._error_mode,this.ignoreBOM=i._ignoreBOM),i}function R(t,r){if(!(this instanceof R))throw TypeError("Called as a function. Did you forget 'new'?");r=a(r),this._encoding=null,this._encoder=null,this._do_not_flush=!1,this._fatal=Boolean(r.fatal)?"fatal":"replacement";var i=this;if(Boolean(r.NONSTANDARD_allowLegacyEncoding)){t=void 0!==t?String(t):tt;var n=h(t);if(null===n||"replacement"===n.name)throw RangeError("Unknown encoding: "+t);if(!$[n.name])throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?");i._encoding=n}else i._encoding=h("utf-8"),void 0!==t&&"console"in e&&console.warn("TextEncoder constructor called with encoding label, which is ignored.");return Object.defineProperty||(this.encoding=i._encoding.name.toLowerCase()),i}function S(t){var e=t.fatal,i=0,a=0,n=0,o=128,s=191;this.handler=function(t,l){if(l===q&&0!==n)return n=0,u(e);if(l===q)return Y;if(0===n){if(r(l,0,127))return l;if(r(l,194,223))n=1,i=31&l;else if(r(l,224,239))224===l&&(o=160),237===l&&(s=159),n=2,i=15&l;else{if(!r(l,240,244))return u(e);240===l&&(o=144),244===l&&(s=143),n=3,i=7&l}return null}if(!r(l,o,s))return i=n=a=0,o=128,s=191,t.prepend(l),u(e);if(o=128,s=191,i=i<<6|63&l,a+=1,a!==n)return null;var d=i;return i=n=a=0,d}}function A(t){t.fatal;this.handler=function(t,e){if(e===q)return Y;if(V(e))return e;var i,a;r(e,128,2047)?(i=1,a=192):r(e,2048,65535)?(i=2,a=224):r(e,65536,1114111)&&(i=3,a=240);for(var n=[(e>>6*i)+a];i>0;){var o=e>>6*(i-1);n.push(128|63&o),i-=1}return n}}function w(t,e){var r=e.fatal;this.handler=function(e,i){if(i===q)return Y;if(s(i))return i;var a=t[i-128];return null===a?u(r):a}}function _(t,e){e.fatal;this.handler=function(e,r){if(r===q)return Y;if(V(r))return r;var i=g(r,t);return null===i&&d(r),i+128}}function L(t){var e=t.fatal,i=0,a=0,n=0;this.handler=function(t,o){if(o===q&&0===i&&0===a&&0===n)return Y;o!==q||0===i&&0===a&&0===n||(i=0,a=0,n=0,u(e));var l;if(0!==n){l=null,r(o,48,57)&&(l=m(10*(126*(10*(i-129)+a-48)+n-129)+o-48));var d=[a,n,o];return i=0,a=0,n=0,null===l?(t.prepend(d),u(e)):l}if(0!==a)return r(o,129,254)?(n=o,null):(t.prepend([a,o]),i=0,a=0,u(e));if(0!==i){if(r(o,48,57))return a=o,null;var c=i,f=null;i=0;var h=o<127?64:65;return(r(o,64,126)||r(o,128,254))&&(f=190*(c-129)+(o-h)),l=null===f?null:p(f,v("gb18030")),null===l&&s(o)&&t.prepend(o),null===l?u(e):l}return s(o)?o:128===o?8364:r(o,129,254)?(i=o,null):u(e)}}function k(t,e){t.fatal;this.handler=function(t,r){if(r===q)return Y;if(V(r))return r;if(58853===r)return d(r);if(e&&8364===r)return 128;var i=g(r,v("gb18030"));if(null!==i){var a=W(i/190)+129,n=i%190,o=n<63?64:65;return[a,n+o]}if(e)return d(r);i=y(r);var s=W(i/10/126/10);i-=10*s*126*10;var l=W(i/10/126);i-=10*l*126;var u=W(i/10),c=i-10*u;return[s+129,l+48,u+129,c+48]}}function D(t){var e=t.fatal,i=0;this.handler=function(t,a){if(a===q&&0!==i)return i=0,u(e);if(a===q&&0===i)return Y;if(0!==i){var n=i,o=null;i=0;var l=a<127?64:98;switch((r(a,64,126)||r(a,161,254))&&(o=157*(n-129)+(a-l)),o){case 1133:return[202,772];case 1135:return[202,780];case 1164:return[234,772];case 1166:return[234,780]}var d=null===o?null:p(o,v("big5"));return null===d&&s(a)&&t.prepend(a),null===d?u(e):d}return s(a)?a:r(a,129,254)?(i=a,null):u(e)}}function I(t){t.fatal;this.handler=function(t,e){if(e===q)return Y;if(V(e))return e;var r=E(e);if(null===r)return d(e);var i=W(r/157)+129;if(i<161)return d(e);var a=r%157,n=a<63?64:98;return[i,a+n]}}function O(t){var e=t.fatal,i=!1,a=0;this.handler=function(t,n){if(n===q&&0!==a)return a=0,u(e);if(n===q&&0===a)return Y;if(142===a&&r(n,161,223))return a=0,65216+n;if(143===a&&r(n,161,254))return i=!0,a=n,null;if(0!==a){var o=a;a=0;var l=null;return r(o,161,254)&&r(n,161,254)&&(l=p(94*(o-161)+(n-161),v(i?"jis0212":"jis0208"))),i=!1,r(n,161,254)||t.prepend(n),null===l?u(e):l}return s(n)?n:142===n||143===n||r(n,161,254)?(a=n,null):u(e)}}function C(t){t.fatal;this.handler=function(t,e){if(e===q)return Y;if(V(e))return e;if(165===e)return 92;if(8254===e)return 126;if(r(e,65377,65439))return[142,e-65377+161];8722===e&&(e=65293);var i=g(e,v("jis0208"));if(null===i)return d(e);var a=W(i/94)+161,n=i%94+161;return[a,n]}}function x(t){var e=t.fatal,i={ASCII:0,Roman:1,Katakana:2,LeadByte:3,TrailByte:4,EscapeStart:5,Escape:6},a=i.ASCII,n=i.ASCII,o=0,s=!1;this.handler=function(t,l){switch(a){default:case i.ASCII:return 27===l?(a=i.EscapeStart,null):r(l,0,127)&&14!==l&&15!==l&&27!==l?(s=!1,l):l===q?Y:(s=!1,u(e));case i.Roman:return 27===l?(a=i.EscapeStart,null):92===l?(s=!1,165):126===l?(s=!1,8254):r(l,0,127)&&14!==l&&15!==l&&27!==l&&92!==l&&126!==l?(s=!1,l):l===q?Y:(s=!1,u(e));case i.Katakana:return 27===l?(a=i.EscapeStart,null):r(l,33,95)?(s=!1,65344+l):l===q?Y:(s=!1,u(e));case i.LeadByte:return 27===l?(a=i.EscapeStart,null):r(l,33,126)?(s=!1,o=l,a=i.TrailByte,null):l===q?Y:(s=!1,u(e));case i.TrailByte:if(27===l)return a=i.EscapeStart,u(e);if(r(l,33,126)){a=i.LeadByte;var d=94*(o-33)+l-33,c=p(d,v("jis0208"));return null===c?u(e):c}return l===q?(a=i.LeadByte,t.prepend(l),u(e)):(a=i.LeadByte,u(e));case i.EscapeStart:return 36===l||40===l?(o=l,a=i.Escape,null):(t.prepend(l),s=!1,a=n,u(e));case i.Escape:var f=o;o=0;var h=null;if(40===f&&66===l&&(h=i.ASCII),40===f&&74===l&&(h=i.Roman),40===f&&73===l&&(h=i.Katakana),36!==f||64!==l&&66!==l||(h=i.LeadByte),null!==h){a=a=h;var g=s;return s=!0,g?u(e):null}return t.prepend([f,l]),s=!1,a=n,u(e)}}}function P(t){var e=(t.fatal,{ASCII:0,Roman:1,jis0208:2}),r=e.ASCII;this.handler=function(t,i){if(i===q&&r!==e.ASCII)return t.prepend(i),r=e.ASCII,[27,40,66];if(i===q&&r===e.ASCII)return Y;if(!(r!==e.ASCII&&r!==e.Roman||14!==i&&15!==i&&27!==i))return d(65533);if(r===e.ASCII&&V(i))return i;if(r===e.Roman&&(V(i)&&92!==i&&126!==i||165==i||8254==i)){if(V(i))return i;if(165===i)return 92;if(8254===i)return 126}if(V(i)&&r!==e.ASCII)return t.prepend(i),r=e.ASCII,[27,40,66];if((165===i||8254===i)&&r!==e.Roman)return t.prepend(i),r=e.Roman,[27,40,74];8722===i&&(i=65293);var a=g(i,v("jis0208"));if(null===a)return d(i);if(r!==e.jis0208)return t.prepend(i),r=e.jis0208,[27,36,66];var n=W(a/94)+33,o=a%94+33;return[n,o]}}function F(t){var e=t.fatal,i=0;this.handler=function(t,a){if(a===q&&0!==i)return i=0,u(e);if(a===q&&0===i)return Y;if(0!==i){var n=i,o=null;i=0;var l=a<127?64:65,d=n<160?129:193;if((r(a,64,126)||r(a,128,252))&&(o=188*(n-d)+a-l),r(o,8836,10715))return 48508+o;var c=null===o?null:p(o,v("jis0208"));return null===c&&s(a)&&t.prepend(a),null===c?u(e):c}return s(a)||128===a?a:r(a,161,223)?65216+a:r(a,129,159)||r(a,224,252)?(i=a,null):u(e)}}function N(t){t.fatal;this.handler=function(t,e){if(e===q)return Y;if(V(e)||128===e)return e;if(165===e)return 92;if(8254===e)return 126;if(r(e,65377,65439))return e-65377+161;8722===e&&(e=65293);var i=b(e);if(null===i)return d(e);var a=W(i/188),n=a<31?129:193,o=i%188,s=o<63?64:65;return[a+n,o+s]}}function M(t){var e=t.fatal,i=0;this.handler=function(t,a){if(a===q&&0!==i)return i=0,u(e);if(a===q&&0===i)return Y;if(0!==i){var n=i,o=null;i=0,r(a,65,254)&&(o=190*(n-129)+(a-65));var l=null===o?null:p(o,v("euc-kr"));return null===o&&s(a)&&t.prepend(a),null===l?u(e):l}return s(a)?a:r(a,129,254)?(i=a,null):u(e)}}function U(t){t.fatal;this.handler=function(t,e){if(e===q)return Y;if(V(e))return e;var r=g(e,v("euc-kr"));if(null===r)return d(e);var i=W(r/190)+129,a=r%190+65;return[i,a]}}function B(t,e){var r=t>>8,i=255&t;return e?[r,i]:[i,r]}function G(t,e){var i=e.fatal,a=null,n=null;this.handler=function(e,o){if(o===q&&(null!==a||null!==n))return u(i);if(o===q&&null===a&&null===n)return Y;if(null===a)return a=o,null;var s;if(s=t?(a<<8)+o:(o<<8)+a,a=null,null!==n){var l=n;return n=null,r(s,56320,57343)?65536+1024*(l-55296)+(s-56320):(e.prepend(B(s,t)),u(i))}return r(s,55296,56319)?(n=s,null):r(s,56320,57343)?u(i):s}}function j(t,e){e.fatal;this.handler=function(e,i){if(i===q)return Y;if(r(i,0,65535))return B(i,t);var a=B((i-65536>>10)+55296,t),n=B((i-65536&1023)+56320,t);return a.concat(n)}}function K(t){t.fatal;this.handler=function(t,e){return e===q?Y:s(e)?e:63360+e-128}}function H(t){t.fatal;this.handler=function(t,e){return e===q?Y:V(e)?e:r(e,63360,63487)?e-63360+128:d(e)}}var W=Math.floor,V=s,q=-1;l.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.pop():q},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.pop());else this.tokens.push(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.shift());else this.tokens.unshift(t)}};var Y=-1;c.prototype={handler:function(t,e){}},f.prototype={handler:function(t,e){}};var z=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"UTF-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"IBM866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"ISO-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"ISO-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"ISO-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"ISO-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"ISO-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"ISO-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"ISO-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"ISO-8859-8-I"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"ISO-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"ISO-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"ISO-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"ISO-8859-15"},{labels:["iso-8859-16"],name:"ISO-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"KOI8-R"},{labels:["koi8-ru","koi8-u"],name:"KOI8-U"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"GBK"},{labels:["gb18030"],name:"gb18030"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"Big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"EUC-JP"},{labels:["csiso2022jp","iso-2022-jp"],name:"ISO-2022-JP"},{labels:["csshiftjis","ms932","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"Shift_JIS"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"EUC-KR"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","hz-gb-2312","iso-2022-cn","iso-2022-cn-ext","iso-2022-kr"],name:"replacement"},{labels:["utf-16be"],name:"UTF-16BE"},{labels:["utf-16","utf-16le"],name:"UTF-16LE"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],X={};z.forEach(function(t){t.encodings.forEach(function(t){t.labels.forEach(function(e){X[e]=t})})});var Q,J,$={},Z={},tt="utf-8";Object.defineProperty&&(Object.defineProperty(T.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(T.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(T.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),T.prototype.decode=function(t,e){function r(t){return!i(["UTF-8","UTF-16LE","UTF-16BE"],this._encoding.name)||this._ignoreBOM||this._BOMseen||(t.length>0&&65279===t[0]?(this._BOMseen=!0,t.shift()):t.length>0&&(this._BOMseen=!0)),o(t)}var n;n="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=a(e),this._do_not_flush||(this._decoder=Z[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(e.stream);for(var s,u=new l(n),d=[];;){var c=u.read();if(c===q)break;if(s=this._decoder.handler(u,c),s===Y)break;null!==s&&(Array.isArray(s)?d.push.apply(d,s):d.push(s))}if(!this._do_not_flush){do{if(s=this._decoder.handler(u,u.read()),s===Y)break;null!==s&&(Array.isArray(s)?d.push.apply(d,s):d.push(s))}while(!u.endOfStream());this._decoder=null}return r.call(this,d)},Object.defineProperty&&Object.defineProperty(R.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),R.prototype.encode=function(t,e){t=void 0===t?"":String(t),e=a(e),this._do_not_flush||(this._encoder=$[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(e.stream);for(var r,i=new l(n(t)),o=[];;){var s=i.read();if(s===q)break;if(r=this._encoder.handler(i,s),r===Y)break;Array.isArray(r)?o.push.apply(o,r):o.push(r)}if(!this._do_not_flush){for(;;){if(r=this._encoder.handler(i,i.read()),r===Y)break;Array.isArray(r)?o.push.apply(o,r):o.push(r)}this._encoder=null}return new Uint8Array(o)},$["UTF-8"]=function(t){return new A(t)},Z["UTF-8"]=function(t){return new S(t)},function(){"encoding-indexes"in e&&z.forEach(function(t){"Legacy single-byte encodings"===t.heading&&t.encodings.forEach(function(t){var e=t.name,r=v(e.toLowerCase());Z[e]=function(t){return new w(r,t)},$[e]=function(t){return new _(r,t)}})})}(),Z.GBK=function(t){return new L(t)},$.GBK=function(t){return new k(t,!0)},$.gb18030=function(t){return new k(t)},Z.gb18030=function(t){return new L(t)},$.Big5=function(t){return new I(t)},Z.Big5=function(t){return new D(t)},$["EUC-JP"]=function(t){return new C(t)},Z["EUC-JP"]=function(t){return new O(t)},$["ISO-2022-JP"]=function(t){return new P(t)},Z["ISO-2022-JP"]=function(t){return new x(t)},$.Shift_JIS=function(t){return new N(t)},Z.Shift_JIS=function(t){return new F(t)},$["EUC-KR"]=function(t){return new U(t)},Z["EUC-KR"]=function(t){return new M(t)},$["UTF-16BE"]=function(t){return new j(!0,t)},Z["UTF-16BE"]=function(t){return new G(!0,t)},$["UTF-16LE"]=function(t){return new j(!1,t)},Z["UTF-16LE"]=function(t){return new G(!1,t)},$["x-user-defined"]=function(t){return new H(t)},Z["x-user-defined"]=function(t){return new K(t)},e.TextEncoder||(e.TextEncoder=R),e.TextDecoder||(e.TextDecoder=T),"undefined"!=typeof t&&t.exports&&(t.exports={TextEncoder:e.TextEncoder,TextDecoder:e.TextDecoder,EncodingIndexes:e["encoding-indexes"]})}(this||{})},function(t,e,r){var i=r(1);i(flowplayer)}]);
|
30 |
+
/*@
|
31 |
+
@end
|
32 |
+
@*/
|
flowplayer-beta/flowplayer.swf
ADDED
Binary file
|
flowplayer-beta/flowplayerhls.swf
ADDED
Binary file
|
flowplayer-beta/fv-flowplayer.min.js
ADDED
@@ -0,0 +1,2273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
|
3 |
+
Flowplayer Unlimited v7.2.4 (2018-01-23) | flowplayer.com/license
|
4 |
+
|
5 |
+
*/
|
6 |
+
!function(e){function t(e,t,n,r){for(var o,a=n.slice(),s=i(t,e),l=0,u=a.length;u>l&&(handler=a[l],"object"==typeof handler&&"function"==typeof handler.handleEvent?handler.handleEvent(s):handler.call(e,s),!s.stoppedImmediatePropagation);l++);return o=!s.stoppedPropagation,r&&o&&e.parentNode?e.parentNode.dispatchEvent(s):!s.defaultPrevented}function n(e,t){return{configurable:!0,get:e,set:t}}function r(e,t,r){var i=y(t||e,r);m(e,"textContent",n(function(){return i.get.call(this)},function(e){i.set.call(this,e)}))}function i(e,t){return e.currentTarget=t,e.eventPhase=e.target===e.currentTarget?2:3,e}function o(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function a(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function s(e){!f&&C.test(document.readyState)&&(f=!f,document.detachEvent(d,s),e=document.createEvent("Event"),e.initEvent(p,!0,!0),document.dispatchEvent(e))}function l(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function u(t,n){return n||(n=e.event),n.target||(n.target=n.srcElement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).getTime()),n}if(!document.createEvent){var c=!0,f=!1,d="onreadystatechange",p="DOMContentLoaded",h="__IE8__"+Math.random(),g=e.Object,m=g.defineProperty||function(e,t,n){e[t]=n.value},v=g.defineProperties||function(t,n){for(var r in n)if(w.call(n,r))try{m(t,r,n[r])}catch(i){e.console&&console.log(r+" failed on object:",t,i.message)}},y=g.getOwnPropertyDescriptor,w=g.prototype.hasOwnProperty,b=e.Element.prototype,I=e.Text.prototype,M=/^[a-z]+$/,C=/loaded|complete/,A={},S=document.createElement("div");r(e.HTMLCommentElement.prototype,b,"nodeValue"),r(e.HTMLScriptElement.prototype,null,"text"),r(I,null,"nodeValue"),r(e.HTMLTitleElement.prototype,null,"text"),m(e.HTMLStyleElement.prototype,"textContent",function(e){return n(function(){return e.get.call(this.styleSheet)},function(t){e.set.call(this.styleSheet,t)})}(y(e.CSSStyleSheet.prototype,"cssText"))),v(b,{textContent:{get:a,set:l},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;n>t;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:{value:function(e,n,r){var i,a=this,s="on"+e,l=a[h]||m(a,h,{value:{}})[h],c=l[s]||(l[s]={}),f=c.h||(c.h=[]);if(!w.call(c,"w")){if(c.w=function(e){return e[h]||t(a,u(a,e),f,!1)},!w.call(A,s))if(M.test(e))try{i=document.createEventObject(),i[h]=!0,9!=a.nodeType&&null==a.parentNode&&S.appendChild(a),a.fireEvent(s,i),A[s]=!0}catch(i){for(A[s]=!1;S.hasChildNodes();)S.removeChild(S.firstChild)}else A[s]=!1;(c.n=A[s])&&a.attachEvent(s,c.w)}o(f,n)<0&&f[r?"unshift":"push"](n)}},dispatchEvent:{value:function(e){var n,r=this,i="on"+e.type,o=r[h],a=o&&o[i],s=!!a;return e.target||(e.target=r),s?a.n?r.fireEvent(i,e):t(r,e,a.h,!0):(n=r.parentNode)?n.dispatchEvent(e):!0,!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h],s=a&&a[i],l=s&&s.h,u=l?o(l,t):-1;u>-1&&l.splice(u,1)}}}),v(I,{addEventListener:{value:b.addEventListener},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener}}),v(e.XMLHttpRequest.prototype,{addEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h]||m(r,h,{value:{}})[h],s=a[i]||(a[i]={}),l=s.h||(s.h=[]);o(l,t)<0&&(r[i]||(r[i]=function(){var t=document.createEvent("Event");t.initEvent(e,!0,!0),r.dispatchEvent(t)}),l[n?"unshift":"push"](t))}},dispatchEvent:{value:function(e){var n=this,r="on"+e.type,i=n[h],o=i&&i[r],a=!!o;return a&&(o.n?n.fireEvent(r,e):t(n,e,o.h,!0))}},removeEventListener:{value:b.removeEventListener}}),v(e.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0,this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}},initEvent:{value:function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}}}),v(e.HTMLDocument.prototype,{textContent:{get:function(){return 11===this.nodeType?a.call(this):null},set:function(e){11===this.nodeType&&l.call(this,e)}},addEventListener:{value:function(t,n,r){var i=this;b.addEventListener.call(i,t,n,r),c&&t===p&&!C.test(i.readyState)&&(c=!1,i.attachEvent(d,s),e==top&&function o(e){try{i.documentElement.doScroll("left"),s()}catch(t){setTimeout(o,50)}}())}},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener},createEvent:{value:function(e){var t;if("Event"!==e)throw new Error("unsupported "+e);return t=document.createEventObject(),t.timeStamp=(new Date).getTime(),t}}}),v(e.Window.prototype,{getComputedStyle:{value:function(){function e(e){this._=e}function t(){}var n=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,r=/^(top|right|bottom|left)$/,i=/\-([a-z])/g,o=function(e,t){return t.toUpperCase()};return e.prototype.getPropertyValue=function(e){var t,a,s,l=this._,u=l.style,c=l.currentStyle,f=l.runtimeStyle;return e=("float"===e?"style-float":e).replace(i,o),t=c?c[e]:u[e],n.test(t)&&!r.test(e)&&(a=u.left,s=f&&f.left,s&&(f.left=c.left),u.left="fontSize"===e?"1em":t,t=u.pixelLeft+"px",u.left=a,s&&(f.left=s)),null==t?t:t+""||"auto"},t.prototype.getPropertyValue=function(){return null},function(n,r){return r?new t(n):new e(n)}}()},addEventListener:{value:function(n,r,i){var a,s=e,l="on"+n;s[l]||(s[l]=function(e){return t(s,u(s,e),a,!1)}),a=s[l][h]||(s[l][h]=[]),o(a,r)<0&&a[i?"unshift":"push"](r)}},dispatchEvent:{value:function(t){var n=e["on"+t.type];return n?n.call(e,t)!==!1&&!t.defaultPrevented:!0}},removeEventListener:{value:function(t,n,r){var i="on"+t,a=(e[i]||g)[h],s=a?o(a,n):-1;s>-1&&a.splice(s,1)}}})}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.flowplayer=e()}}(function(){var e;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r=t.exports={},i=e("class-list"),o=window.jQuery,a=e("punycode"),s=e("computed-style");r.noop=function(){},r.identity=function(e){return e},r.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},r.find=function(e,t){return o?o(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},r.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},r.findDirect=function(e,t){return r.find(e,t).filter(function(e){return e.parentNode===t})},r.hasClass=function(e,t){return"string"!=typeof e.className?!1:i(e).contains(t)},r.isSameDomain=function(e){var t=window.location,n=r.createElement("a",{href:e});return t.hostname===n.hostname&&t.protocol===n.protocol&&t.port===n.port},r.css=function(e,t,n){return"object"==typeof t?Object.keys(t).forEach(function(n){r.css(e,n,t[n])}):"undefined"!=typeof n?""===n?e?e.style.removeProperty(t):void 0:e?e.style.setProperty(t,n):void 0:e?s(e,t):void 0},r.createElement=function(e,t,n){try{var i=document.createElement(e);for(var a in t)t.hasOwnProperty(a)&&("css"===a?r.css(i,t[a]):r.attr(i,a,t[a]));return n&&(i.innerHTML=n),i}catch(s){if(!o)throw s;return o("<"+e+">"+n+"</"+e+">").attr(t)[0]}},r.toggleClass=function(e,t,n){if(e){var r=i(e);"undefined"==typeof n?r.toggle(t):n?r.add(t):n||r.remove(t)}},r.addClass=function(e,t){return r.toggleClass(e,t,!0)},r.removeClass=function(e,t){return r.toggleClass(e,t,!1)},r.append=function(e,t){return e.appendChild(t),e},r.appendTo=function(e,t){return r.append(t,e),e},r.prepend=function(e,t){e.insertBefore(t,e.firstChild)},r.insertAfter=function(e,t,n){t==r.lastChild(e)&&e.appendChild(n);var i=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[i+1])},r.html=function(e,t){e=e.length?e:[e],e.forEach(function(e){e.innerHTML=t})},r.attr=function(e,t,n){if("class"===t&&(t="className"),r.hasOwnOrPrototypeProperty(e,t))try{e[t]=n}catch(i){if(!o)throw i;o(e).attr(t,n)}else n===!1?e.removeAttribute(t):e.setAttribute(t,n);return e},r.prop=function(e,t,n){return"undefined"==typeof n?e&&e[t]:void(e[t]=n)},r.offset=function(e){var t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight&&(t={left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}),t},r.width=function(e,t){if(t)return e.style.width=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).width;return"undefined"==typeof n?e.offsetWidth:n},r.height=function(e,t){if(t)return e.style.height=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).height;return"undefined"==typeof n?e.offsetHeight:n},r.lastChild=function(e){return e.children[e.children.length-1]},r.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(r.matches(n,t))return!0;n=n.parentElement}return!1},r.createAbsoluteUrl=function(e){return r.createElement("a",{href:e}).href},r.xhrGet=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){return 4===this.readyState?this.status>=400?n():void t(this.responseText):void 0},r.open("get",e,!0),r.send()},r.pick=function(e,t){var n={};return t.forEach(function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n},r.hostname=function(e){return a.toUnicode(e||window.location.hostname)},r.browser={webkit:"WebkitAppearance"in document.documentElement.style},r.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},r.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=r.getPrototype(n)}return!1},r.matches=function(e,t){var n=Element.prototype,r=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)r++;return n[r]?!0:!1};return r.call(e,t)},function(e){function t(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}"undefined"!=typeof e.setAttribute&&(e.setProperty=function(e,n){return this.setAttribute(t(e),String(n))},e.getPropertyValue=function(e){return this.getAttribute(t(e))||null},e.removeProperty=function(e){var n=this.getPropertyValue(e);return this.removeAttribute(t(e)),n})}(window.CSSStyleDeclaration.prototype)},{"class-list":36,"computed-style":37,punycode:44}],2:[function(e,t,n){"use strict";var r=e("../common");t.exports=function(e,t,n,i){n=n||"opaque";var o="obj"+(""+Math.random()).slice(2,15),a='<object class="fp-engine" id="'+o+'" name="'+o+'" ',s=navigator.userAgent.indexOf("MSIE")>-1;a+=s?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+e+'" type="application/x-shockwave-flash">';var l={width:"100%",height:"100%",allowscriptaccess:"always",wmode:n,quality:"high",flashvars:"",movie:e+(s?"?"+o:""),name:o};"transparent"!==n&&(l.bgcolor=i||"#333333"),Object.keys(t).forEach(function(e){l.flashvars+=e+"="+t[e]+"&"}),Object.keys(l).forEach(function(e){a+='<param name="'+e+'" value="'+l[e]+'"/>'}),a+="</object>";var u=r.createElement("div",{},a);return r.find("object",u)},window.attachEvent&&window.attachEvent("onbeforeunload",function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(e,t,n){"use strict";function r(e){return/^https?:/.test(e)}var i,o=e("../flowplayer"),a=e("../common"),s=e("./embed"),l=e("extend-object"),u=e("bean");i=function(e,t){function n(e){function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}return(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+t(e[1])+t(e[2])+t(e[3]):void 0}function c(e){if(7===e.length)return e;var t=e.split("").slice(1);return"#"+t.map(function(e){return e+e}).join("")}function f(e){return/application\/x-mpegurl/i.test(e.type)}var d,p,h,g,m=e.conf,v=[],y={engineName:i.engineName,pick:function(t){var n=l({},function(){if(o.support.flashVideo){for(var n,r,i=0;i<t.length;i++)if(r=t[i],/mp4|flv|flash/i.test(r.type)&&(n=r),e.conf.swfHls&&/mpegurl/i.test(r.type)&&(n=r),n&&!/mp4/i.test(n.type))return n;return n}}());if(n)return!n.src||r(n.src)||e.conf.rtmp||n.rtmp||(n.src=a.createAbsoluteUrl(n.src)),n},suspendEngine:function(){g=!0},resumeEngine:function(){g=!1},load:function(i){function w(e){return e.replace(/&/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}d=i,v.forEach(function(e){clearTimeout(e)});var b=a.findDirect("video",t)[0]||a.find(".fp-player > video",t)[0],I=i.src,M=r(I),C=function(){a.removeNode(b)},A=function(e){return e.some(function(e){return!!b.canPlayType(e.type)})};o.support.video&&a.prop(b,"autoplay")&&A(i.sources)?u.one(b,"timeupdate",C):C();var S=i.rtmp||m.rtmp;if(M||S||(I=a.createAbsoluteUrl(I)),h&&f(i)&&h.data!==a.createAbsoluteUrl(m.swfHls)&&y.unload(),h){["live","preload","loop"].forEach(function(e){i.hasOwnProperty(e)&&h.__set(e,i[e])}),Object.keys(i.flashls||{}).forEach(function(e){h.__set("hls_"+e,i.flashls[e])});var E=!1;if(!M&&S)h.__set("rtmp",S.url||S);else{var j=h.__get("rtmp");E=!!j,h.__set("rtmp",null)}h.__play(I,E||i.rtmp&&i.rtmp!==m.rtmp)}else{p="fpCallback"+(""+Math.random()).slice(3,15),I=w(I);var D={hostname:m.embedded?a.hostname(m.hostname):a.hostname(location.hostname),url:I,callback:p};t.getAttribute("data-origin")&&(D.origin=t.getAttribute("data-origin")),["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(e){m.hasOwnProperty(e)&&(D[e]=m[e]),i.hasOwnProperty(e)&&(D[e]=i[e]),(m.rtmp||{}).hasOwnProperty(e)&&(D[e]=(m.rtmp||{})[e]),(i.rtmp||{}).hasOwnProperty(e)&&(D[e]=(i.rtmp||{})[e])}),m.splash&&(D.autoplay=!0),m.rtmp&&(D.rtmp=m.rtmp.url||m.rtmp),i.rtmp&&(D.rtmp=i.rtmp.url||i.rtmp),Object.keys(i.flashls||{}).forEach(function(e){var t=i.flashls[e];D["hls_"+e]=t});var N="undefined"!=typeof i.hlsQualities?i.hlsQualities:m.hlsQualities;"undefined"!=typeof N&&(D.hlsQualities=N?encodeURIComponent(JSON.stringify(N)):N),void 0!==m.bufferTime&&(D.bufferTime=m.bufferTime),M&&delete D.rtmp,D.rtmp&&(D.rtmp=w(D.rtmp));var L,x=m.bgcolor||a.css(t,"background-color")||"";0===x.indexOf("rgb")?L=n(x):0===x.indexOf("#")&&(L=c(x)),D.initialVolume=e.volumeLevel;var T=f(i)?m.swfHls:m.swf;h=s(T,D,m.wmode,L)[0];var Z=a.find(".fp-player",t)[0];a.prepend(Z,h),e.off("quality.flashengine").on("quality.flashengine",function(t,n,r){var i="undefined"!=typeof e.video.hlsQualities?e.video.hlsQualities:e.conf.hlsQualities;if(i)try{h.__quality(r)}catch(o){e.debug("Error changing quality in flash engine",o)}}),setTimeout(function(){try{if(!h.PercentLoaded())return e.trigger("error",[e,{code:7,url:m.swf}])}catch(t){}},5e3),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e])},15e3)),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e,!1])},500)),e.off("resume.flashhack").on("resume.flashhack",function(){var t=setTimeout(function(){var t=h.__status().time,n=setTimeout(function(){e.playing&&!e.loading&&h.__status().time===t&&e.trigger("flashdisabled",[e])},400);v.push(n),e.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(n)})},800);v.push(t),e.one("progress",function(){clearTimeout(t)})}),h.pollInterval=setInterval(function(){if(h&&!g){var t=h.__status?h.__status():null;t&&((e.conf.live||e.live||i.live)&&(i.seekOffset=t.seekOffset,i.duration=t.duration+t.seekOffset),e.playing&&t.time&&t.time!==e.video.time&&e.trigger("progress",[e,t.time]),i.buffer=t.buffer/i.bytes*i.duration,e.trigger("buffer",[e,i.buffer]),!i.buffered&&t.time>0&&(i.buffered=!0,e.trigger("buffered",[e])))}},250),window[p]=function(n,r){var i=d;m.debug&&(0===n.indexOf("debug")&&r&&r.length?console.log.apply(console,["-- "+n].concat(r)):console.log("--",n,r));var o={type:n};switch(n){case"ready":r=l(i,r);break;case"click":o.flash=!0;break;case"keydown":o.which=r;break;case"seek":i.time=r;break;case"status":e.trigger("progress",[e,r.time]),r.buffer<i.bytes&&!i.buffered?(i.buffer=r.buffer/i.bytes*i.duration,e.trigger("buffer",i.buffer)):i.buffered||(i.buffered=!0,e.trigger("buffered"));break;case"metadata":var a=atob(r);r={key:a.substr(10,4),data:a.substr(21)}}"click"===n||"keydown"===n?(o.target=t,u.fire(t,n,[o])):"buffered"!=n&&"unload"!==n?setTimeout(function(){e.trigger(o,[e,r])},1):"unload"===n&&e.trigger(o,[e,r])}}},speed:a.noop,unload:function(){h&&h.__unload&&h.__unload();try{p&&window[p]&&delete window[p]}catch(n){}a.find("object",t).forEach(a.removeNode),h=0,e.off(".flashengine"),e.off(".flashhack"),clearInterval(h.pollInterval),v.forEach(function(e){clearTimeout(e)})}};return["pause","resume","seek","volume"].forEach(function(t){y[t]=function(n){try{e.ready&&(void 0===n?h["__"+t]():h["__"+t](n))}catch(r){if("undefined"==typeof h["__"+t])return e.trigger("flashdisabled",[e]);throw r}}}),y},i.engineName="flash",i.canPlay=function(e,t){return o.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(e)||o.support.flashVideo&&t.swfHls&&/mpegurl/i.test(e)},o.engines.push(i)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(e,t,n){"use strict";function r(e){return"undefined"==typeof window.Hls?!1:/mpegurl/.test(e)&&window.Hls.isSupported()}var i,o=e("../flowplayer"),a=o.support,s=o.common,l=e("./html5-factory");i=function(e,t){var n,a,u,c=window.Hls;return l("hlsjs-lite",e,t,r,function(r,l,f){n=i.hls=new c(o.extend({},e.conf.hlsjs,r.hlsjs)),i.extensions.forEach(function(r){r(n,e,t)}),n.loadSource(r.src),f.resume=function(){e.live&&!e.dvr&&(l.currentTime=n.liveSyncPosition||0),l.play()},f.seek=function(t){try{e.live&&!e.dvr?l.currentTime=Math.min(t,n.liveSyncPosition):l.currentTime=t}catch(r){e.debug("Failed to seek to ",t,r)}},e.on("quality",function(e,t,r){n.nextLevel=a=r}),n.on(c.Events.MANIFEST_PARSED,function(t,i){var o,c=r.hlsQualities||e.conf.hlsQualities,f={},d=i.levels;if(c===!1)return n.attachMedia(l);if("drive"===c)switch(d.length){case 4:o=[1,2,3];break;case 5:o=[1,2,3,4];break;case 6:o=[1,3,4,5];break;case 7:o=[1,3,5,6];break;case 8:o=[1,3,6,7];break;default:o=d.length<3||d[0].height&&d[2].height&&d[0].height===d[2].height?[]:[1,2]}r.qualities=[{value:-1,label:"Auto"}],Array.isArray(c)&&(r.qualities=[],o=c.map(function(e){return"undefined"!=typeof e.level&&(f[e.level]=e.label),"undefined"!=typeof e.level?e.level:e}));var p=-2;r.qualities=r.qualities.concat(d.map(function(e,t){if(o&&-1===o.indexOf(t))return!1;var n=f[t]||Math.min(e.width,e.height)+"p";return f[t]||"drive"===c||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===a&&(p=t),{value:t,label:n}})).filter(s.identity);var h=r.quality=-2===p?r.qualities[0].value||-1:p;h!==n.currentLevel&&(n.currentLevel=h),n.attachMedia(l),u&&r.src!==u&&l.play(),u=r.src})})},i.canPlay=function(e,t){return a.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari?!1:o.support.video&&r(e)},i.engineName="hlsjs-lite",i.plugin=function(e){i.extensions.push(e)},i.extensions=[],o.engines.push(i)},{"../flowplayer":31,"./html5-factory":5}],5:[function(e,t,n){function r(e,t,n,r,a){function f(e,o,a){var f=n.getAttribute("data-flowplayer-instance-id");if(e.listeners&&e.listeners.hasOwnProperty(f))return void(e.listeners[f]=a);(e.listeners||(e.listeners={}))[f]=a,u.on(o,"error",function(n){try{r(n.target.getAttribute("type"))&&t.trigger("error",[t,{code:4,video:c(a,{src:e.src,url:e.src})}])}catch(i){}}),t.on("shutdown",function(){u.off(o),u.off(e,".dvrhack"),t.off(".loophack")});var p={},h=function(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){t.trigger("metadata",[t,e.activeCues[0].value])},!1))};return e&&e.textTracks&&e.textTracks.length&&Array.prototype.forEach.call(e.textTracks,h),e&&e.textTracks&&"function"==typeof e.textTracks.addEventListener&&e.textTracks.addEventListener("addtrack",function(e){h(e.track)},!1),(t.conf.dvr||t.dvr||a.dvr)&&u.on(e,"progress.dvrhack",function(){e.seekable.length&&(t.video.duration=e.seekable.end(null),t.video.seekOffset=e.seekable.start(null),t.trigger("dvrwindow",[t,{start:e.seekable.start(null),end:e.seekable.end(null)}]),e.currentTime>=e.seekable.start(null)||(e.currentTime=e.seekable.start(null)))}),Object.keys(d).forEach(function(r){var o=d[r];if("webkitendfullscreen"===r&&t.conf.disableInline&&(o="unload"),o){var u=function(u){if(a=e.listeners[f],u.target&&s.hasClass(u.target,"fp-engine")){/progress/.test(o)||t.debug(r,"->",o,u);var d=function(e){t.trigger(e||o,[t,p])};if(!t.ready&&!/ready|error/.test(o)||!o||!s.find("video",n).length)return void("resume"===o&&t.one("ready",function(){setTimeout(function(){d()})}));var p;if("unload"===o)return void t.unload();switch(o){case"ready":if(t.ready)return t.debug("Player already ready, not sending duplicate ready event");if(!(e.duration&&e.duration!==1/0||t.live))return t.debug("No duration and VOD setup, not sending ready event");if(p=c(a,{duration:e.duration<Number.MAX_VALUE?e.duration:0,width:e.videoWidth,height:e.videoHeight,url:e.currentSrc,src:e.currentSrc}),p.seekable=p.duration,t.debug("Ready: ",p),!t.live&&!p.duration&&!l.hlsDuration&&"loadeddata"===r){var h=function(){p.duration=e.duration;try{p.seekable=e.seekable&&e.seekable.end(null)}catch(t){}d(),e.removeEventListener("durationchange",h),s.toggleClass(n,"is-live",!1)};e.addEventListener("durationchange",h);var g=function(){t.ready||e.duration||(p.duration=0,s.addClass(n,"is-live"),d()),e.removeEventListener("timeupdate",g)};return void e.addEventListener("timeupdate",g)}break;case"progress":case"seek":if(e.currentTime>0||t.live)p=Math.max(e.currentTime,0);else if("seek"===o&&0===e.currentTime)p=0;else if("progress"==o)return;break;case"buffer":p=[];for(var m=0;m<e.buffered.length;m++)p.push({start:e.buffered.start(m),end:e.buffered.end(m)});e.buffered.length&&e.buffered.end(null)===e.duration&&d("buffered");break;case"speed":p=i(e.playbackRate);break;case"volume":p=i(e.muted?0:e.volume);break;case"error":try{p=(u.srcElement||u.originalTarget).error,p.video=c(a,{src:e.src,url:e.src})}catch(v){return}}d()}};n.addEventListener(r,u,!0),p[r]||(p[r]=[]),p[r].push(u)}}),p}var p,h,g,m=s.findDirect("video",n)[0]||s.find(".fp-player > video",n)[0],v=t.conf;return g={engineName:e,pick:function(e){var t=l.video&&e.filter(function(e){return r(e.type)})[0];if(t)return"string"==typeof t.src&&(t.src=s.createAbsoluteUrl(t.src)),t},load:function(e){var r=s.find(".fp-player",n)[0];if(m||(m=document.createElement("video"),s.prepend(r,m),m.autoplay=!!v.splash),s.addClass(m,"fp-engine"),s.find("track",m).forEach(s.removeNode),m.preload="none",v.nativesubtitles||s.attr(m,"crossorigin",!1),v.disableInline||(m.setAttribute("webkit-playsinline","true"),m.setAttribute("playsinline","true")),l.inlineVideo||s.css(m,{position:"absolute",top:"-9999em"}),l.subtitles&&v.nativesubtitles&&e.subtitles&&e.subtitles.length){s.addClass(m,"native-subtitles");var i=e.subtitles,c=function(e){var t=m.textTracks;t.length&&(t[0].mode=e)};i.some(function(e){return!s.isSameDomain(e.src)})&&s.attr(m,"crossorigin","anonymous"),"function"==typeof m.textTracks.addEventListener&&m.textTracks.addEventListener("addtrack",function(){c("disabled"),c("showing")}),i.forEach(function(e){m.appendChild(s.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,"default":e["default"]}))})}if(u.off(m,"timeupdate",s.noop),u.on(m,"timeupdate",s.noop),s.prop(m,"loop",!1),t.off(".loophack"),(e.loop||v.loop)&&t.on("finish.loophack",function(){t.resume()}),"undefined"!=typeof h&&(m.volume=h),a(e,m,g),v.autoplay||v.splash||e.autoplay){t.debug("Autoplay / Splash setup, try to start video");try{l.preloadMetadata||m.load();var d=m.play();d&&d["catch"]&&d["catch"](function(e){if("AbortError"!==e.name||20!==e.code){if(!v.mutedAutoplay)throw new Error("Unable to autoplay");return t.debug("Play errored, trying muted",e),t.mute(!0,!0),m.play()}})["catch"](function(){v.autoplay=!1,t.mute(!1,!0),t.trigger("stop",[t])})}catch(p){t.debug("play() error thrown",p)}}if(g._listeners=f(m,s.find("source",m).concat(m),e)||g._listeners,!(v.autoplay||v.splash||e.autoplay)){var y=function(){o(n)&&(t.debug("player is in viewport, preload"),l.preloadMetadata?m.preload="metadata":m.load(),u.off(document,"scroll.preloadviewport"))};u.off(document,"scroll.preloadviewport"),u.on(document,"scroll.preloadviewport",function(){window.requestAnimationFrame(y)}),y()}},mute:function(e){m.muted=!!e,t.trigger("mute",[t,e]),t.trigger("volume",[t,e?0:m.volume])},pause:function(){m.pause()},resume:function(){m.play()},speed:function(e){m.playbackRate=e},seek:function(e){try{m.currentTime=e}catch(t){}},volume:function(e){h=e,m&&(m.volume=e,e&&g.mute(!1))},unload:function(){u.off(document,"scroll.preloadviewport"),s.find("video.fp-engine",n).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",s.removeNode(e)}),p=clearInterval(p);var e=n.getAttribute("data-flowplayer-instance-id");delete m.listeners[e],m=0,g._listeners&&Object.keys(g._listeners).forEach(function(e){g._listeners[e].forEach(function(t){n.removeEventListener(e,t,!0)})})}}}function i(e,t){return t=t||100,Math.round(e*t)/t}function o(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t.height&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+t.width}var a=e("../flowplayer"),s=a.common,l=a.support,u=a.bean,c=a.extend,f=l.browser.safari&&!l.iOS,d={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:f?0:"ready",canplaythrough:f?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!a.support.inlineVideo&&"unload",progress:"buffer"};t.exports=r},{"../flowplayer":31}],6:[function(e,t,n){"use strict";function r(e){return/mpegurl/i.test(e)?"application/x-mpegurl":e}function i(e){return/^(video|application)/i.test(e)||(e=r(e)),!!u.canPlayType(e).replace("no","")}var o,a=e("../flowplayer"),s=a.common,l=e("./html5-factory"),u=document.createElement("video");o=function(e,t){return l("html5",e,t,i,function(e,t){t.currentSrc!==e.src&&(s.find("source",t).forEach(s.removeNode),t.src=e.src,t.type=e.type)})},o.canPlay=function(e){return a.support.video&&i(e)},o.engineName="html5",a.engines.push(o)},{"../flowplayer":31,"./html5-factory":5}],7:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.on("ready",function(){var e=i.find("video.fp-engine",t)[0];e&&(e.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent&&(e.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){if("available"===e.availability){var n=i.find(".fp-header",t)[0];i.find(".fp-airplay",n).forEach(i.removeNode);var r=i.createElement("a",{"class":"fp-airplay fp-icon",title:"Play on AirPlay device"});n.insertBefore(r,i.find(".fp-fullscreen",n)[0])}}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var n=i.find(".fp-airplay",t)[0];n&&i.toggleClass(n,"fp-active",e.webkitCurrentPlaybackTargetIsWireless)})))}),o.on(t,"click",".fp-airplay",function(e){e.preventDefault();var n=i.find("video.fp-engine",t)[0];n.webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("./resolve").TYPE_RE,o=e("scriptjs"),a=e("bean");r(function(e,t){var n,r=e.conf.analytics,s=0,l=0;if(r){"undefined"==typeof _gat&&o("//google-analytics.com/ga.js");var u=function(){var e=_gat._getTracker(r); /*addition*/ if( typeof e._setAllowLinker == 'undefined' ) return false; /*end*/ return e._setAllowLinker(!0),e},c=function(r,o,a){if(a=a||e.video,s&&"undefined"!=typeof _gat){var l=u(); /*addition*/ if(!l) return; /*end*/ l._trackEvent("Video / Seconds played",e.engine.engineName+"/"+a.type,a.title||t.getAttribute("title")||a.src.split("/").slice(-1)[0].replace(i,""),Math.round(s/1e3)),s=0,n&&(clearTimeout(n),n=null)}};e.bind("load unload",c).bind("progress",function(){e.seeking||(s+=l?+new Date-l:0,l=+new Date),n||(n=setTimeout(function(){n=null;var e=u(); /*addition*/ if(!e) return; /*end*/ e._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5))}).bind("pause",function(){l=0}),e.bind("shutdown",function(){a.off(window,"unload",c)}),a.on(window,"unload",c)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("scriptjs");r(function(e,t){function n(){var e,t,n;e=g.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,t=new chrome.cast.SessionRequest(e),n=new chrome.cast.ApiConfig(t,r,s),chrome.cast.initialize(n,l,u)}function r(){console.log("sessionListener")}function s(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&c()}function l(){}function u(){console.log("onError")}function c(){var e=i.find(".fp-header",t)[0];i.find(".fp-chromecast",e).forEach(i.removeNode),i.find(".fp-chromecast-engine",t).forEach(i.removeNode),h=i.createElement("a",{"class":"fp-chromecast fp-icon",title:"Play on Cast device"}),e.insertBefore(h,i.find(".fp-fullscreen",e)[0]);var n=i.createElement("div",{"class":"fp-chromecast-engine"}),r=i.createElement("p",{"class":"fp-chromecast-engine-status"}),o=i.createElement("p",{"class":"fp-chromecast-engine-icon"});n.appendChild(o),n.appendChild(r);var a=i.find(".fp-engine",t)[0];a?a.parentNode.insertBefore(n,a):i.prepend(i.find(".fp-player",t)[0]||t,n)}function f(){clearInterval(p),p=null,e.release(),i.toggleClass(t,"is-chromecast",!1),i.toggleClass(h,"fp-active",!1)}if(e.conf.chromecast!==!1){a("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),window.__onGCastApiAvailable=function(e){e&&n()};var d,p,h,g=e.conf.chromecast||{};o.on(t,"click",".fp-chromecast",function(n){return n.preventDefault(),d?(e.trigger("pause",[e]),d.stop(),d=null,void f()):(e.playing&&e.pause(),void chrome.cast.requestSession(function(n){function r(n){n.addUpdateListener(function(r){if(d){p=p||setInterval(function(){e.trigger("progress",[e,n.getEstimatedTime()])},500),r?(i.toggleClass(t,"is-chromecast",!0),i.toggleClass(h,"fp-active",!0),e.hijack({pause:function(){n.pause()},resume:function(){n.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,n.seek(t)}})):(f(),e.trigger("finish",[e]));var o=n.playerState;e.paused&&o===chrome.cast.media.PlayerState.PLAYING&&e.trigger("resume",[e]),e.playing&&o===chrome.cast.media.PlayerState.PAUSED&&e.trigger("pause",[e]),i.toggleClass(t,"is-loading",o===chrome.cast.media.PlayerState.BUFFERING)}})}d=n;var o=d.receiver.friendlyName;i.html(i.find(".fp-chromecast-engine-status")[0],"Playing on device "+o);var a=new chrome.cast.media.MediaInfo(e.video.src),s=new chrome.cast.media.LoadRequest(a);d.loadMedia(s,r,function(){})},function(e){console.error("requestSession error",e)}))})}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){t.className=t.className.replace(a," "),
|
7 |
+
e>=0&&i.addClass(t,"cue"+e)}function r(t){var n=t&&!isNaN(t.time)?t.time:t;return 0>n&&(n=e.video.duration+n),.125*Math.round(n/.125)}var a=/ ?cue\d+ ?/,s=!1,l={},u=-.125,c=function(t){var r=e.cuepoints.indexOf(t);isNaN(t)||(t={time:t}),t.index=r,n(r),e.trigger("cuepoint",[e,t])};e.on("progress",function(e,t,n){if(!s)for(var i=r(n);i>u;)u+=.125,l[u]&&l[u].forEach(c)}).on("unload",n).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(s=!0)})}).on("seek",function(e,t,i){n(),u=r(i||0)-.125,s=!1,!i&&l[0]&&l[0].forEach(c)}).on("ready",function(t,n,r){u=-.125;var i=r.cuepoints||e.conf.cuepoints||[];e.setCuepoints(i)}).on("finish",function(){u=-.125}),e.conf.generate_cuepoints&&e.bind("load",function(){i.find(".fp-cuepoint",t).forEach(i.removeNode)}),e.setCuepoints=function(t){return e.cuepoints=[],l={},t.forEach(e.addCuepoint),e},e.addCuepoint=function(n){e.cuepoints||(e.cuepoints=[]);var a=r(n);if(l[a]||(l[a]=[]),l[a].push(n),e.cuepoints.push(n),e.conf.generate_cuepoints&&n.visible!==!1){var s=e.video.duration,u=i.find(".fp-timeline",t)[0];i.css(u,"overflow","visible");var c=n.time||n;0>c&&(c=s+c);var f=i.createElement("a",{className:"fp-cuepoint fp-cuepoint"+(e.cuepoints.length-1)});i.css(f,"left",c/s*100+"%"),u.appendChild(f),o.on(f,"mousedown",function(t){t.preventDefault(),t.stopPropagation(),e.seek(c)})}return e},e.removeCuepoint=function(t){var n=e.cuepoints.indexOf(t),i=r(t);if(-1!==n){e.cuepoints=e.cuepoints.slice(0,n).concat(e.cuepoints.slice(n+1));var o=l[i].indexOf(t);if(-1!==o)return l[i]=l[i].slice(0,o).concat(l[i].slice(o+1)),e}}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("bean"),o=e("../common"),a=e("./util/clipboard");r(function(e,t){if(e.conf.embed!==!1&&e.conf.share!==!1){var n=o.find(".fp-share-menu",t)[0],r=o.createElement("a",{"class":"fp-icon fp-embed",title:"Copy to your site"},"Embed");o.append(n,r),e.embedCode=function(){var n=e.conf.embed||{},r=e.video,i=n.width||r.width||o.width(t),a=n.height||r.height||o.height(t),s=e.conf.ratio,l='<iframe src="'+e.shareUrl(!0)+'" allowfullscreen style="border:none;';return n.width||n.height?(isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),l+"width:"+i+";height:"+a+';"></iframe>'):((!s||e.conf.adaptiveRatio)&&(s=a/i),'<div style="position:relative;width:100%;display:inline-block;">'+l+'position:absolute;top:0;left:0;width:100%;height:100%;"></iframe><div style="padding-top:'+100*s+'%;"></div></div>')},i.on(t,"click",".fp-embed",function(){a(e.embedCode(),function(){e.message("The embed code is now on your clipboard",2e3)},function(){e.textarea(e.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(e,t,n){"use strict";t.exports=function(e,t){t||(t=document.createElement("div"));var n={},r={},i=function(e,i,o){var a=e.split(".")[0],s=function(l){o&&(t.removeEventListener(a,s),n[e].splice(n[e].indexOf(s),1));var u=[l].concat(r[l.timeStamp+l.type]||[]);i&&i.apply(void 0,u)};t.addEventListener(a,s),n[e]||(n[e]=[]),n[e].push(s)};e.on=e.bind=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n)}),e},e.one=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n,!0)}),e};var o=function(e,t){return 0===t.filter(function(t){return-1===e.indexOf(t)}).length};e.off=e.unbind=function(r){var i=r.split(" ");return i.forEach(function(e){var r=e.split(".").slice(1),i=e.split(".")[0];Object.keys(n).filter(function(e){var t=e.split(".").slice(1);return(!i||0===e.indexOf(i))&&o(t,r)}).forEach(function(e){var r=n[e],i=e.split(".")[0];n[e]=r.filter(function(e){return t.removeEventListener(i,e),!1})})}),e},e.trigger=function(n,i,o){if(n){i=(i||[]).length?i||[]:[i];var a,s=document.createEvent("Event");return a=n.type||n,s.initEvent(a,!1,!0),Object.defineProperty&&(s.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),r[s.timeStamp+s.type]=i,t.dispatchEvent(s),o?s:e}}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.facebook){e.facebook=function(){var e,t,r=550,i=420,o=screen.height,a=screen.width,s="scrollbars=yes,resizable=yes,toolbar=no,location=yes",l="string"==typeof n.facebook?n.facebook:window.location.toString();e=Math.round(a/2-r/2),t=0,o>i&&(t=Math.round(o/2-i/2)),window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(l),"sharer",s+",width="+r+",height="+i+",left="+e+",top="+t)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{"class":"fp-icon fp-facebook"},"Facebook");i.append(r,a),o.on(t,"click",".fp-facebook",function(){e.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(e,t,n){"use strict";var r,i=e("../flowplayer"),o=e("bean"),a=e("../common"),s="fullscreen",l="fullscreen-exit",u=i.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement||e.target;if(r||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id")){var n=r||i(t.parentNode);t&&!r?r=n.trigger(s,[n]):(r.trigger(l,[r]),r=null)}}),i(function(e,t){var n=a.createElement("div",{className:"fp-player"});if(Array.prototype.map.call(t.children,a.identity).forEach(function(e){a.matches(e,".fp-ratio,script")||n.appendChild(e)}),t.appendChild(n),e.conf.fullscreen){var i,o,c=window;e.isFullscreen=!1,e.fullscreen=function(t){return e.disabled?void 0:(void 0===t&&(t=!e.isFullscreen),t&&(i=c.scrollY,o=c.scrollX),u?t?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof n[e]&&(n[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||n[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):e.trigger(t?s:l,[e]),e)};var f;e.on("mousedown.fs",function(){+new Date-f<150&&e.ready&&e.fullscreen(),f=+new Date}),e.on(s,function(){a.addClass(t,"is-fullscreen"),a.toggleClass(t,"fp-minimal-fullscreen",a.hasClass(t,"fp-minimal")),a.removeClass(t,"fp-minimal"),u||a.css(t,"position","fixed"),e.isFullscreen=!0}).on(l,function(){var n;a.toggleClass(t,"fp-minimal",a.hasClass(t,"fp-minimal-fullscreen")),a.removeClass(t,"fp-minimal-fullscreen"),u||"html5"!==e.engine||(n=t.css("opacity")||"",a.css(t,"opacity",0)),u||a.css(t,"position",""),a.removeClass(t,"is-fullscreen"),u||"html5"!==e.engine||setTimeout(function(){t.css("opacity",n)}),e.isFullscreen=!1,c.scrollTo(o,i)}).on("unload",function(){e.isFullscreen&&e.fullscreen()}),e.on("shutdown",function(){r=null})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(e,t,n){"use strict";var r,i,o=e("../flowplayer"),a=e("bean"),s="is-help",l=e("../common");a.on(document,"keydown.fp",function(e){var t=r,n=e.ctrlKey||e.metaKey||e.altKey,o=e.which,a=t&&t.conf;if(t&&a.keyboard&&!t.disabled){if(-1!=[63,187,191].indexOf(o))return l.toggleClass(i,s),!1;if(27==o&&l.hasClass(i,s))return l.toggleClass(i,s),!1;if(!n&&t.ready){if(e.preventDefault(),e.shiftKey)return void(39==o?t.speed(!0):37==o&&t.speed(!1));if(58>o&&o>47)return t.seekTo(o-48);switch(o){case 38:case 75:t.volume(t.volumeLevel+.15);break;case 40:case 74:t.volume(t.volumeLevel-.15);break;case 39:case 76:t.seeking=!0,t.seek(!0);break;case 37:case 72:t.seeking=!0,t.seek(!1);break;case 190:t.seekTo();break;case 32:t.toggle();break;case 70:a.fullscreen&&t.fullscreen();break;case 77:t.mute();break;case 81:t.unload()}}}}),o(function(e,t){e.conf.keyboard&&(a.on(document,"click",function(n){if(l.hasParent(n.target,t))r=e.disabled?0:e;else{if(r!==e)return;r=0}r&&(i=t)}),e.bind("shutdown",function(){i==t&&(i=null)}))})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.showMenu=function(n,r){var a=i.find(".fp-ui",t)[0];i.toggleClass(n,"fp-active",!0),setTimeout(function(){o.one(document,"click",function(){e.hideMenu(n)})});var s=r;if(r&&r.tagName&&(s={left:i.offset(r).left,rightFallbackOffset:i.width(r),top:i.offset(r).top+i.height(r)}),!s)return i.css(n,"top","auto");s.rightFallbackOffset=s.rightFallbackOffset||0;var l=s.top-i.offset(a).top,u=s.left-i.offset(a).left;i.width(n)+u>i.width(a)&&(u=u-i.width(n)+s.rightFallbackOffset),i.height(n)+l>i.height(a)&&(l-=i.height(n)),i.css(n,{top:l+"px",left:u+"px",right:"auto"})},e.hideMenu=function(e){i.toggleClass(e,"fp-active",!1),i.css(e,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){var t=i.createElement("div",{className:"fp-message"},e);return s.insertBefore(t,a),setTimeout(function(){i.toggleClass(t,"fp-shown")}),t}function r(e){i.removeNode(e)}var a=i.find(".fp-header",t)[0],s=i.find(".fp-ui",t)[0];e.message=function(e,t){var o=n(e),a=function(){i.toggleClass(o,"fp-shown"),setTimeout(function(){r(o)},500)};return t&&setTimeout(a,t),a},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",s.appendChild(t),o.on(document,"click.fptextarea",function(e){return e.target===t?t.select():(e.stopPropagation(),e.preventDefault(),i.removeNode(t),void o.off(document,"click.fptextarea"))})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=/IEMobile/.test(window.navigator.userAgent),o=e("../common"),a=e("bean"),s=e("./ui").format,l=r.support,u=window.navigator.userAgent;(l.touch||i)&&r(function(e,t){var n=l.android,r=n&&!n.firefox,c=/Silk/.test(u),f=n.version||0;if(r&&!i){if(!/Chrome/.test(u)&&4>f||n.samsung&&5>f){var d=e.load;e.load=function(){var n=d.apply(e,arguments);return o.find("video.fp-engine",t)[0].load(),e.trigger("ready",[e,e.video]),n}}var p,h=0,g=function(e){p=setInterval(function(){e.video.time=++h,e.trigger("progress",[e,h])},1e3)};e.on("ready pause unload",function(){p&&(clearInterval(p),p=null)}),e.on("ready",function(){h=0}),e.on("resume",function(t,n){return n.live?h?g(n):void e.one("progress",function(e,t,n){0===n&&g(t)}):void 0})}l.volume||(o.removeClass(t,"fp-mute"),o.addClass(t,"no-volume")),l.iOS&&o.addClass(t,"fp-mute"),o.addClass(t,"is-touch"),e.sliders&&e.sliders.timeline&&e.sliders.timeline.disableAnimation();var m=!1;if(a.on(t,"touchmove",function(){m=!0}),a.on(t,"touchend click",function(n){if(m)return void(m=!1);var r=o.find("video.fp-engine",t)[0];return r&&r.muted&&e.conf.autoplay&&(r.muted=!1),e.playing&&!o.hasClass(t,"is-mouseover")?(o.addClass(t,"is-mouseover"),o.removeClass(t,"is-mouseout"),n.preventDefault(),void n.stopPropagation()):void(e.playing||e.splash||!o.hasClass(t,"is-mouseout")||o.hasClass(t,"is-mouseover")||setTimeout(function(){e.disabled||e.playing||e.splash||o.find("video.fp-engine",t)[0].play()},400))}),!l.fullscreen&&e.conf.native_fullscreen&&"function"==typeof o.createElement("video").webkitEnterFullScreen){var v=e.fullscreen;e.fullscreen=function(){var n=o.find("video.fp-engine",t)[0];return n?(e.trigger("fullscreen",[e]),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===n&&(a.off(document,".nativefullscreen"),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(a.off(document,".nativefullscreen"),e.trigger("fullscreen-exit",[e]))}))}),n.webkitEnterFullScreen(),void a.one(n,"webkitendfullscreen",function(){a.off(document,"fullscreenchange.nativefullscreen"),e.trigger("fullscreen-exit",[e]),o.prop(n,"controls",!0),o.prop(n,"controls",!1)})):v.apply(e)}}(r||c)&&e.bind("ready",function(){var n=o.find("video.fp-engine",t)[0];e.conf.splash&&n.paused&&(a.one(n,"canplay",function(){n.play()}),n.load()),e.bind("progress.dur",function(){if(!e.live&&!e.conf.live){var r=n.duration;1!==r&&(e.video.duration=r,o.find(".fp-duration",t)[0].innerHTML=s(r),e.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object"),o=e("bean"),a=e("../common"),s=e("./resolve"),l=new s,u=window.jQuery,c=/^#/;r(function(e,t){function n(){return a.find(h.query,r())}function r(){return c.test(h.query)?void 0:t}function f(){return a.find(h.query+"."+g,r())}function d(){var n=a.find(".fp-playlist",t)[0];if(!n){n=a.createElement("div",{className:"fp-playlist"});var r=a.find(".fp-next,.fp-prev",t);r.length?r[0].parentElement.insertBefore(n,r[0]):a.insertAfter(t,a.find("video",t)[0],n)}n.innerHTML="",e.conf.playlist[0].length&&(e.conf.playlist=e.conf.playlist.map(function(e){if("string"==typeof e){var t=e.split(s.TYPE_RE)[1];return{sources:[{type:"m3u8"===t.toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}}return{sources:e.map(function(e){var t={};return Object.keys(e).forEach(function(n){t.type=/mpegurl/i.test(n)?"application/x-mpegurl":"video/"+n,t.src=e[n]}),t})}})),e.conf.playlist.forEach(function(t,r){var i=t.sources[0].src;n.appendChild(a.createElement("a",{href:i,className:e.video.index===r?g:void 0,"data-index":r}))})}function p(t){return"undefined"!=typeof t.index?t.index:"undefined"!=typeof e.video.index?e.video.index:e.conf.startIndex||0}var h=i({active:"is-active",advance:!0,query:".fp-playlist a"},e.conf),g=h.active,m=a.find(".fp-ui",t)[0],v=a.hasClass(t,"fp-custom-playlist")||!!h.customPlaylist;a.toggleClass(t,"fp-custom-playlist",v),a.toggleClass(t,"fp-default-playlist",!v),e.play=function(t){if(void 0===t)return e.resume();if("number"==typeof t&&!e.conf.playlist[t])return e;if("number"!=typeof t)return e.load.apply(null,arguments);var n=i({index:t},e.conf.playlist[t]);return e.off("beforeresume.fromfirst"),"number"==typeof t&&t===e.video.index?e.seek(0,function(){e.resume()}):(e.load(n,function(){e.video.index=t}),e)},e.next=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=n===e.conf.playlist.length-1?0:n+1,e.play(n)),e},e.prev=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=0===n?e.conf.playlist.length-1:n-1,e.play(n)),e},e.setPlaylist=function(t,n){return e.conf.playlist=t,n||delete e.video.index,d(),e},e.addPlaylistItem=function(t){return delete e.video.is_last,e.setPlaylist(e.conf.playlist.concat([t]),!0)},e.removePlaylistItem=function(t){var n=e.conf.playlist;return e.setPlaylist(n.slice(0,t).concat(n.slice(t+1)))},o.on(t,"click",".fp-next",e.next),o.on(t,"click",".fp-prev",e.prev),e.off("finish.pl").on("finish.pl",function(e,n){var r="undefined"==typeof n.conf.advance?!0:n.conf.advance;if(r){if(n.video.loop)return n.seek(0,function(){n.resume()});var i=n.video.index>=0?n.video.index+1:void 0;i<n.conf.playlist.length||h.loop?(i=i===n.conf.playlist.length?0:i,a.removeClass(t,"is-finished"),setTimeout(function(){n.play(i)})):n.conf.playlist.length>1&&(n.one("beforeresume.fromfirst",function(e){e.preventDefault(),n.play(0)}),n.one("seek",function(){n.off("beforeresume.fromfirst")}))}});var y=!1;e.conf.playlist.length&&(y=!0,d(),e.conf.clip&&e.conf.clip.sources.length||(e.conf.clip=e.conf.playlist[e.conf.startIndex||0])),n().length&&!y&&(e.conf.playlist=[],delete e.conf.startIndex,n().forEach(function(t){var n=t.href;t.setAttribute("data-index",e.conf.playlist.length);var r=l.resolve(n,e.conf.clip.sources);u&&i(r,u(t).data()),e.conf.playlist.push(r)})),a.find(".fp-prev,.fp-next,.fp-playlist",t).forEach(function(e){m.appendChild(e)}),o.on(c.test(h.query)?document:t,"click",h.query,function(t){t.preventDefault();var n=t.currentTarget,r=Number(n.getAttribute("data-index"));-1!=r&&e.play(r)}),e.on("load",function(n,i,o){if(e.conf.playlist.length){var s=f()[0],l=s&&s.getAttribute("data-index"),u=o.index=p(o),c=a.find(h.query+'[data-index="'+u+'"]',r())[0],d=u==e.conf.playlist.length-1;s&&a.removeClass(s,g),c&&a.addClass(c,g),a.removeClass(t,"video"+l),a.addClass(t,"video"+u),a.toggleClass(t,"last-video",d),o.index=i.video.index=u,o.is_last=i.video.is_last=d}}).on("unload.pl",function(){e.conf.playlist.length&&(f().forEach(function(e){a.toggleClass(e,g)}),e.conf.playlist.forEach(function(e,n){a.removeClass(t,"video"+n)}))}),e.conf.playlist.length&&(e.conf.loop=!1)})},{"../common":1,"../flowplayer":31,"./resolve":21,bean:34,"extend-object":39}],20:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(){i.find(".fp-qsel-menu",t).forEach(i.removeNode),i.find(".fp-qsel",t).forEach(i.removeNode)}function r(e){l.appendChild(i.createElement("strong",{className:"fp-qsel"},"HD"));var t=i.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>");e.forEach(function(e){var n=document.createElement("a"),r="undefined"!=typeof e.value?e.value:e;n.setAttribute("data-quality",r),n.innerHTML=e.label||e,t.appendChild(n)}),s.appendChild(t)}function a(e){i.find(".fp-qsel-menu a",t).forEach(function(t){i.toggleClass(t,"fp-selected",t.getAttribute("data-quality")==e),i.toggleClass(t,"fp-color",t.getAttribute("data-quality")==e)})}var s=i.find(".fp-ui",t)[0],l=i.find(".fp-controls",s)[0];o.on(t,"click",".fp-qsel",function(){var n=i.find(".fp-qsel-menu",t)[0];i.hasClass(n,"fp-active")?e.hideMenu():e.showMenu(n)}),o.on(t,"click",".fp-qsel-menu a",function(t){var n=t.target.getAttribute("data-quality");e.quality(n)}),e.quality=function(t){t=isNaN(Number(t))?t:Number(t),e.trigger("quality",[e,t])},e.on("quality",function(e,t,n){a(n,t.video.qualities)}),e.on("ready",function(e,t,i){n(),!i.qualities||i.qualities.filter(function(e){return"undefined"!=typeof e.value?e.value>-1:!0}).length<2||(r(i.qualities,i.quality),a(i.quality,i.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(e,t,n){"use strict";function r(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(o)[1];return n=n.toLowerCase(),a(e.data(),{src:t,suffix:r||n,type:n||r})}function i(e){return/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e}var o=/\.(\w{3,4})(\?.*)?$/i,a=e("extend-object");t.exports=function(){var e=this;e.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(r(t(this)))}),!n.length&&e.length&&n.push(r(e)),n},e.resolve=function(e,t){return e?("string"==typeof e&&(e={src:e,sources:[]},e.sources=(t||[]).map(function(t){var n=t.src.split(o)[1];return{type:t.type,src:e.src.replace(o,"."+n+"$2")}})),e instanceof Array&&(e={sources:e.map(function(e){return e.type&&e.src?e:Object.keys(e).reduce(function(t,n){return a(t,{type:i(n),src:e[n]})},{})})}),e):{sources:t}}},t.exports.TYPE_RE=o},{"extend-object":39}],22:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("extend-object"),a=e("bean");r(function(e,t){var n=e.conf;if(n.share===!1)return void i.find(".fp-share",t).forEach(i.removeNode);e.shareUrl=function(t){if(t&&n.embed&&n.embed.iframe)return n.embed.iframe;if("string"==typeof e.conf.share)return e.conf.share;var r=encodeURIComponent(e.video.title||(i.find("title")[0]||{}).innerHTML||"Flowplayer Unlimited video"),a=encodeURIComponent(btoa(JSON.stringify(o({},e.conf,e.extensions)).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)}))),s=encodeURIComponent(window.location.toString()),l=t?"https://flowplayer.com/e/":"https://flowplayer.com/s/";return l+"?t="+r+"&c="+a+"&r="+s};var r=i.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share</strong>"),s=i.find(".fp-ui",t)[0];s.appendChild(r);var l=i.find(".fp-share",t)[0];a.on(t,"click",".fp-share",function(t){t.preventDefault(),i.hasClass(r,"fp-active")?e.hideMenu():e.showMenu(r,l)})})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("./subtitles/parser");r.defaults.subtitleParser=a,r(function(e,t){var n,a,s,l;(!r.support.inlineVideo||!r.support.fullscreen&&e.conf.native_fullscreen)&&(e.conf.nativesubtitles=!0);var u=function(){return s=s||i.createElement("strong",{className:"fp-cc"},"CC"),l=l||i.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),i.find("a",l).forEach(i.removeNode),l.appendChild(i.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e.video.subtitles||[]).forEach(function(e,t){var n=e.srclang||"en",r=e.label||"Default ("+n+")",o=i.createElement("a",{"data-subtitle-index":t},r);l.appendChild(o)}),i.find(".fp-ui",t)[0].appendChild(l),i.find(".fp-controls",t)[0].appendChild(s),s};o.on(t,"click",".fp-cc",function(){i.hasClass(l,"fp-active")?e.hideMenu():e.showMenu(l)}),o.on(t,"click",".fp-subtitle-menu [data-subtitle-index]",function(t){t.preventDefault();var n=t.target.getAttribute("data-subtitle-index");return"-1"===n?e.disableSubtitles():void e.loadSubtitles(n)});var c=function(){a=i.find(".fp-captions",t)[0],a=a||i.appendTo(i.createElement("div",{"class":"fp-captions"}),i.find(".fp-player",t)[0]),Array.prototype.forEach.call(a.children,i.removeNode),u()};e.on("ready",function(n,r,o){if(r.subtitles=[],c(),i.removeClass(t,"has-menu"),e.disableSubtitles(),i.toggleClass(s,"fp-hidden",!o.subtitles||!o.subtitles.length),o.subtitles&&o.subtitles.length){var a=o.subtitles.filter(function(e){return e["default"]})[0];a&&r.loadSubtitles(o.subtitles.indexOf(a))}}),e.bind("cuepoint",function(e,t,r){r.subtitle?(n=r.index,i.html(a,r.subtitle.text),i.addClass(a,"fp-shown")):r.subtitleEnd&&(i.removeClass(a,"fp-shown"),n=r.index)}),e.bind("seek",function(t,r,o){n&&e.cuepoints[n]&&e.cuepoints[n].time>o&&(i.removeClass(a,"fp-shown"),n=null),(e.cuepoints||[]).forEach(function(t,r){var i=t.subtitle;i&&n!=r?o>=t.time&&(!i.endTime||o<=i.endTime)&&e.trigger("cuepoint",[e,t]):t.subtitleEnd&&o>=t.time&&r==n+1&&e.trigger("cuepoint",[e,t])})}),e.on("unload",function(){i.find(".fp-captions",t).forEach(i.removeNode)});var f=function(e){i.toggleClass(i.find("a.fp-selected",l)[0],"fp-selected"),i.toggleClass(i.find('a[data-subtitle-index="'+e+'"]',l)[0],"fp-selected")},d=function(e,n){var r=i.find("video.fp-engine",t)[0].textTracks;r.length&&(null===e?[].forEach.call(r,function(e){e.mode=n}):r[e].mode=n)};e.disableSubtitles=function(){return e.subtitles=[],(e.cuepoints||[]).forEach(function(t){(t.subtitle||t.subtitleEnd)&&e.removeCuepoint(t)}),a&&Array.prototype.forEach.call(a.children,i.removeNode),f(-1),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName&&d(null,"disabled"),e},e.loadSubtitles=function(t){e.disableSubtitles();var n=e.video.subtitles[t],o=n.src;return o?(f(t),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName?void d(t,"showing"):(i.xhrGet(o,function(t){var n=e.conf.subtitleParser(t);n.forEach(function(t){var n={time:t.startTime,subtitle:t,visible:!1};e.subtitles.push(t),e.addCuepoint(n),e.addCuepoint({time:t.endTime,subtitleEnd:t.title,visible:!1}),0!==t.startTime||e.video.time||e.splash||e.trigger("cuepoint",[e,r.extend({},n,{index:0})]),e.splash&&e.one("ready",function(){e.trigger("cuepoint",[e,n])})})},function(){return e.trigger("error",{code:8,url:o}),!1}),e)):void 0}})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(e,t,n){t.exports=function(e){function t(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*t[0]*60+60*t[1]+parseFloat(t[2].replace(",","."))}for(var n,r,i,o=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/,a=[],s=0,l=e.split("\n"),u=l.length,c={};u>s;s++)if(r=o.exec(l[s])){for(n=l[s-1],i="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)i+="<p>"+l[s]+"</p><br/>";c={title:n,startTime:t(r[1]),endTime:t(r[3]),text:i},a.push(c)}return a}},{}],25:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object");!function(){var e=function(e){var t=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return t&&t.length>1?parseFloat(t[t.length-1].replace("_","."),10):0},t=function(){var e=document.createElement("video");return e.loop=!0,e.autoplay=!0,e.preload=!0,e},n={},o=document.documentElement.style,a=navigator.userAgent.toLowerCase(),s=/(chrome)[ \/]([\w.]+)/.exec(a)||/(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];s[1]&&(n[s[1]]=!0,n.version=s[2]||"0"),n.safari&&(n.version=(/version\/([\w.]+)/.exec(a)||[])[1]);var l=t(),u=navigator.userAgent,c=n.msie||/Trident\/7/.test(u),f=/iPad|MeeGo/.test(u)&&!/CriOS/.test(u),d=/iPad/.test(u)&&/CriOS/.test(u),p=/iP(hone|od)/i.test(u)&&!/iPad/.test(u)&&!/IEMobile/i.test(u),h=/Android/.test(u),g=h&&/Firefox/.test(u),m=h&& /*addition*/ ( /*end*/ /SAMSUNG/.test(u) /*addition*/ ||/SM-/.test(u)) /*end*/ ,v=/Silk/.test(u),y=/IEMobile/.test(u),w=y?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(u)[1],10):0,b=y?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(u)[1],10):0,I=f||p?e(u):0,M=h?parseFloat(/Android\ (\d\.\d)/.exec(u)[1],10):0,C=(p||f||d)&&{iPhone:p,iPad:f||d,version:I,chrome:d},A=i(r.support,{browser:n,iOS:C,android:h?{firefox:g,opera:/Opera/.test(u),samsung:m,version:M}:!1,subtitles:!!l.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(u)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(c&&n.version<8),touch:"ontouchstart"in window,dataload:!f&&!p&&!y,flex:"flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!c&&!h,volume:!(f||p||v||d),cachedVideoTag:!(f||p||d||y),firstframe:!(v||y||g||m||I&&10>I||h&&4.4>M),inlineVideo:(!p||I>=10)&&(!y||w>=8.1&&b>=11)&&(!h||M>=3),hlsDuration:!h&&(!n.safari||f||p||d),seekable:!f&&!d,preloadMetadata:!C&&!n.safari});A.autoplay=A.firstframe,y&&(A.browser.safari=!1);try{var S=navigator.plugins["Shockwave Flash"],E=c?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):S.description;c||S[0].enabledPlugin?(E=E.split(/\D+/),E.length&&!E[0]&&(E=E.slice(1)),A.flashVideo=E[0]>9||9==E[0]&&E[3]>=115):A.flashVideo=!1}catch(j){}try{A.video=!!l.canPlayType,A.video&&l.canPlayType("video/mp4")}catch(D){A.video=!1}A.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if("undefined"!=typeof t.style[e[n]+"AnimationName"])return!0}()}()},{"../flowplayer":31,"extend-object":39}],26:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.twitter!==!1){e.tweet=function(){var t,r,i=550,o=420,a=screen.height,s=screen.width,l="scrollbars=yes,resizable=yes,toolbar=no,location=yes",u="string"==typeof n.twitter?n.twitter:e.shareUrl();t=Math.round(s/2-i/2),r=0,a>o&&(r=Math.round(a/2-o/2)),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(u),"intent",l+",width="+i+",height="+o+",left="+t+",top="+r)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{"class":"fp-icon fp-twitter"},"Twitter");i.append(r,a),o.on(t,"click",".fp-twitter",function(){e.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(e,t,n){(function(n){"use strict";function r(e){return e=parseInt(e,10),e>=10?e:"0"+e}function i(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var n=Math.floor(e/3600),i=Math.floor(e/60);return e-=60*i,n>=1?(i-=60*n,n+":"+r(i)+":"+r(e)):r(i)+":"+r(e)}var o=e("../flowplayer"),a=e("../common"),s=e("bean"),l=e("./ui/slider"),u=e("./ui/bar-slider"),c=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),f=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),d=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K","base64"),p=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),h=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==","base64"),g=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),m=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==","base64"),v=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),y=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K","base64"),w=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=","base64"),b=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1maWxsIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjBzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItMTAiIHk9Ii0xMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTEwIiB5PSItMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuOHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDUwKSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIxLjJzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KPC9zdmc+Cg==","base64"),I=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1vdXRsaW5lIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTkiIHk9Ii05IiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItOSIgeT0iLTkiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSA1MCkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+Cjwvc3ZnPgo=","base64");
|
8 |
+
o(function(e,t){function r(e){return a.find(".fp-"+e,t)[0]}function M(e){a.css(T,"padding-top",100*e+"%"),D.inlineBlock||a.height(a.find("object",t)[0],a.height(t))}function C(e){e?(a.addClass(t,"is-mouseover"),a.removeClass(t,"is-mouseout")):(a.addClass(t,"is-mouseout"),a.removeClass(t,"is-mouseover"))}a.find(".fp-filters").forEach(a.removeNode);try{var A;document.body.appendChild(A=a.createElement("div",{},n("PHN2ZyBjbGFzcz0iZnAtZmlsdGVycyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMCAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImYxIiB4PSItMjAlIiB5PSItMjAlIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIj4KICAgICAgPGZlT2Zmc2V0IHJlc3VsdD0ib2ZmT3V0IiBpbj0iU291cmNlQWxwaGEiIGR4PSIwIiBkeT0iMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXggcmVzdWx0PSJtYXRyaXhPdXQiIGluPSJvZmZPdXQiIHR5cGU9Im1hdHJpeCIKICAgICAgdmFsdWVzPSIwLjMgMCAwIDAgMCAwIDAuMyAwIDAgMCAwIDAgMC4zIDAgMCAwIDAgMCAwLjQgMCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iYmx1ck91dCIgaW49Im1hdHJpeE91dCIgc3RkRGV2aWF0aW9uPSI0IiAvPgogICAgICA8ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJibHVyT3V0IiBtb2RlPSJub3JtYWwiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPgo=","base64"))),a.css(A,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(S){}var E,j=e.conf,D=o.support;a.find(".fp-ratio,.fp-ui",t).forEach(a.removeNode),a.addClass(t,"flowplayer"),t.appendChild(a.createElement("div",{className:"fp-ratio"}));var N=a.createElement("div",{className:"fp-ui"},' <div class="fp-waiting"> {{ LOADING_SHARP_OUTLINE }} {{ LOADING_SHARP_FILL }} {{ LOADING_ROUNDED_FILL }} {{ LOADING_ROUNDED_OUTLINE }} </div> <div class="fp-header"> <a class="fp-share fp-icon"></a> <a class="fp-fullscreen fp-icon"></a> <a class="fp-unload fp-icon"></a> </div> <p class="fp-speed-flash"></p> <div class="fp-play fp-visible"> <a class="fp-icon fp-playbtn"></a> {{ PLAY_ROUNDED_FILL }} {{ PLAY_ROUNDED_OUTLINE }} {{ PLAY_SHARP_FILL }} {{ PLAY_SHARP_OUTLINE }} </div> <div class="fp-pause"> <a class="fp-icon fp-playbtn"></a> {{ PAUSE_SHARP_OUTLINE }} {{ PAUSE_SHARP_FILL }} {{ PAUSE_ROUNDED_OUTLINE }} {{ PAUSE_ROUNDED_FILL }} </div> <div class="fp-controls"> <a class="fp-icon fp-playbtn"></a> <span class="fp-elapsed">00:00</span> <div class="fp-timeline fp-bar"> <span class="fp-timestamp"></span> <div class="fp-progress fp-color"></div> </div> <span class="fp-duration"></span> <span class="fp-remaining"></span> <div class="fp-volume"> <a class="fp-icon fp-volumebtn"></a> <div class="fp-volumebar fp-bar-slider"> <em></em><em></em><em></em><em></em><em></em><em></em><em></em> </div> </div> <strong class="fp-speed fp-hidden"></strong> </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",g).replace("{{ PAUSE_ROUNDED_OUTLINE }}",h).replace("{{ PAUSE_SHARP_FILL }}",m).replace("{{ PAUSE_SHARP_OUTLINE }}",v).replace("{{ PLAY_SHARP_OUTLINE }}",p).replace("{{ PLAY_SHARP_FILL }}",d).replace("{{ PLAY_ROUNDED_OUTLINE }}",c).replace("{{ PLAY_ROUNDED_FILL }}",f).replace("{{ LOADING_ROUNDED_OUTLINE }}",y).replace("{{ LOADING_ROUNDED_FILL }}",w).replace("{{ LOADING_SHARP_FILL }}",b).replace("{{ LOADING_SHARP_OUTLINE }}",I).replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#"));t.appendChild(N);var L=r("waiting"),x=r("elapsed"),T=r("ratio"),Z=r("speed-flash"),P=r("duration"),k=r("remaining"),Y=r("timestamp"),z=a.css(T,"padding-top"),O=r("play"),G=r("pause"),R=r("timeline"),W=l(R,e.rtl),U=r("fullscreen"),J=r("volumebar"),B=u(J,{rtl:e.rtl}),F=a.hasClass(t,"no-toggle");W.disableAnimation(a.hasClass(t,"is-touch")),e.sliders=e.sliders||{},e.sliders.timeline=W,e.sliders.volume=B;var H=[];D.svg||a.html(L,"<p>loading …</p>"),j.ratio&&M(j.ratio);try{j.fullscreen||a.removeNode(U)}catch(S){a.removeNode(U)}e.on("dvrwindow",function(){W.disable(!1)}),e.on("ready",function(e,n,r){var o=n.video.duration;W.disable(n.disabled||!o),j.adaptiveRatio&&!isNaN(r.height/r.width)&&M(r.height/r.width,!0),a.html([P,k],n.live?"Live":i(o)),a.toggleClass(t,"is-long",o>=3600),B.slide(n.volumeLevel),"flash"===n.engine.engineName?W.disableAnimation(!0,!0):W.disableAnimation(!1),a.find(".fp-title",N).forEach(a.removeNode),r.title&&a.prepend(N,a.createElement("div",{className:"fp-message fp-title"},r.title)),a.toggleClass(t,"has-title",!!r.title)}).on("unload",function(){z||j.splash||a.css(T,"paddingTop",""),W.slide(0),a.addClass(O,"fp-visible")}).on("buffer",function(e,t,n){var r=t.video,i=r.buffer/r.duration;!r.seekable&&D.seekable&&W.max(t.conf.live?1/0:i),n&&"number"!=typeof n||(n=[{start:0,end:r.buffer}]);var o=a.find(".fp-buffer",R);o.length!==n.length&&(o.forEach(a.removeNode),o=[]),n.forEach(function(e,t){var n=o[t]||a.createElement("div",{className:"fp-buffer"});a.css(n,{left:100*e.start/r.duration+"%",width:100*(e.end-e.start)/r.duration+"%"}),a.prepend(R,n)})}).on("speed",function(e,t,n){t.video.time&&(a.text(Z,n+"x"),a.addClass(Z,"fp-shown"),H=H.filter(function(e){return clearTimeout(e),!1}),H.push(setTimeout(function(){a.addClass(Z,"fp-hilite"),H.push(setTimeout(function(){a.removeClass(Z,"fp-hilite"),H.push(setTimeout(function(){a.removeClass(Z,"fp-shown")},300))},1e3))})))}).on("buffered",function(){W.max(1)}).on("progress seek",function(n,r,o){var s=e.video.duration,l=e.video.seekOffset||0;o=o||e.video.time;var u=(o-l)/(s-l);W.dragging||W.slide(u,e.seeking?0:250),a.toggleClass(t,"is-live-position",s-o<j.livePositionOffset),a.html(x,i(o)),a.html(k,i(s-o,!0))}).on("finish resume seek",function(e){a.toggleClass(t,"is-finished","finish"==e.type)}).on("resume",function(){a.addClass(O,"fp-visible"),setTimeout(function(){a.removeClass(O,"fp-visible")},300)}).on("pause",function(){a.addClass(G,"fp-visible"),setTimeout(function(){a.removeClass(G,"fp-visible")},300)}).on("stop",function(){a.html(x,i(0)),W.slide(0,100)}).on("finish",function(){a.html(x,i(e.video.duration)),W.slide(1,100),a.removeClass(t,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){B.slide(e.volumeLevel)}).on("disable",function(){var n=e.disabled;W.disable(n),B.disable(n),a.toggleClass(t,"is-disabled",e.disabled)}).on("mute",function(e,n,r){a.toggleClass(t,"is-muted",r)}).on("error",function(e,n,r){if(a.removeClass(t,"is-loading"),a.removeClass(t,"is-seeking"),a.addClass(t,"is-error"),r){n.error=!0;var i=r.code;(r.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(i=3);var o=n.message((n.engine&&n.engine.engineName||"html5")+": "+j.errors[i]);a.removeClass(t,"is-mouseover"),n.one("load progress",function(){o()})}}).one("resume ready",function(){var e=a.find("video.fp-engine",t)[0];if(e&&(!a.width(e)||!a.height(e))){var n=t.style.overflow;t.style.overflow="visible",setTimeout(function(){n?t.style.overflow=n:t.style.removeProperty("overflow")})}}),s.on(t,"mouseenter mouseleave",function(n){if(!F){var r,i="mouseover"==n.type;if(C(i),i){var o=function(){C(!0),r=new Date};e.on("pause.x volume.x",o),s.on(t,"mousemove.x",o),E=setInterval(function(){new Date-r>j.mouseoutTimeout&&(C(!1),r=new Date)},100)}else s.off(t,"mousemove.x"),e.off("pause.x volume.x"),clearInterval(E)}}),s.on(t,"mouseleave",function(){(W.dragging||B.dragging)&&(a.addClass(t,"is-mouseover"),a.removeClass(t,"is-mouseout"))}),s.on(t,"click.player",function(t){return e.disabled?void 0:a.hasClass(t.target,"fp-ui")||a.hasClass(t.target,"fp-engine")||t.flash||a.hasParent(t.target,".fp-play,.fp-pause")?(t.preventDefault&&t.preventDefault(),e.toggle()):void 0}),s.on(t,"mousemove",".fp-timeline",function(t){var n=t.pageX||t.clientX,r=n-a.offset(R).left,o=r/a.width(R),s=e.video,l=s.duration-(void 0===s.seekOffset?0:s.seekOffset),u=(e.rtl?1-o:o)*l;if(!(0>o)){a.html(Y,i(u));var c=r-a.width(Y)/2;0>c&&(c=0),c>a.width(R)-a.width(Y)&&(c=!1),c!==!1?a.css(Y,{left:c+"px",right:"auto"}):a.css(Y,{left:"auto",right:"0px"})}}),s.on(t,"contextmenu",function(n){var r=window;if(!a.hasClass(t,"is-flash-disabled")){var i=a.find(".fp-context-menu",t)[0];i&&(n.preventDefault(),e.showMenu(i,{left:n.clientX-r.scrollX,top:n.clientY-r.scrollY}),s.on(t,"click",".fp-context-menu",function(e){e.stopPropagation()}))}}),e.on("flashdisabled",function(n,r,i){a.addClass(t,"is-flash-disabled");var o;i!==!1&&(o=e.message("Seems something is blocking Adobe Flash from running")),e.one("ready progress",function(){a.removeClass(t,"is-flash-disabled"),o&&o()})}),j.poster&&a.css(t,"background-image","url("+j.poster+")");var V=a.css(t,"background-color"),X="none"!=a.css(t,"background-image")||V&&"rgba(0, 0, 0, 0)"!=V&&"transparent"!=V;if(X&&!j.splash){j.poster||(j.poster=!0);var _=function(){a.addClass(t,"is-poster"),a.addClass(O,"fp-visible"),e.poster=!0,e.one(j.autoplay?"progress beforeseek":"resume beforeseek",function(){a.removeClass(t,"is-poster"),a.removeClass(O,"fp-visible"),e.poster=!1})};e.on("stop",function(){_()}),e.on("ready",function(e,t,n){n.index||n.autoplay||_()})}"string"==typeof j.splash&&a.css(t,"background-image","url('"+j.splash+"')"),!X&&e.forcedSplash&&a.css(t,"background-color","#555"),s.on(t,"click",".fp-toggle, .fp-play, .fp-playbtn",function(){e.disabled||e.toggle()}),s.on(t,"click",".fp-volumebtn",function(){e.mute()}),s.on(t,"click",".fp-fullscreen",function(){e.fullscreen()}),s.on(t,"click",".fp-unload",function(){e.unload()}),s.on(R,"slide",function(t){e.seeking=!0,e.seekTo(10*t)}),s.on(J,"slide",function(t){e.volume(t)}),s.on(t,"click",".fp-duration,.fp-remaining",function(){return e.dvr?e.seekTo(10):void a.toggleClass(t,"is-inverted")}),C(F);var K;if(e.on("shutdown",function(){s.off(R),s.off(J),K&&window.cancelAnimationFrame(K)}),"function"==typeof window.requestAnimationFrame){var Q=function(){var e=a.find(".fp-player",t)[0]||t;a.toggleClass(t,"is-tiny",e.clientWidth<400),a.toggleClass(t,"is-small",e.clientWidth<600&&e.clientWidth>=400),K=window.requestAnimationFrame(Q)};K=window.requestAnimationFrame(Q)}}),t.exports.format=i}).call(this,e("buffer").Buffer)},{"../common":1,"../flowplayer":31,"./ui/bar-slider":28,"./ui/slider":29,bean:34,buffer:35}],28:[function(e,t,n){function r(e,t){function n(t){var n=t.pageX||t.clientX,r=o.offset(e),i=o.width(e);!n&&t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches.length&&(n=t.originalEvent.touches[0].pageX);var a=n-r.left;a=Math.max(0,Math.min(i,a));var s=a/i;return l&&(s=1-s),s}t=t||{};var r=t.activeClass||"fp-color",a=t.inactiveClass||"fp-grey",s=t.childSelector||"em",l=!!t.rtl,u=!1,c=o.find(s,e).length,f={unload:function(){i.off(e,".barslider")},slide:function(t,n){o.find(s,e).forEach(function(e,n){var i=t>n/c;o.toggleClass(e,r,i),o.toggleClass(e,a,!i)}),n&&i.fire(e,"slide",[t])},disable:function(e){u=e}};return i.on(e,"mousedown.sld touchstart.sld",function(t){t.preventDefault(),u||(f.slide(n(t),!0),i.on(e,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),f.slide(n(e),!0)}),i.one(document,"mouseup.sld touchup.sld",function(){i.off(e,"mousemove.sld touchmove.sld")}))}),f}var i=e("bean"),o=e("../../common");t.exports=r},{"../../common":1,bean:34}],29:[function(e,t,n){"use strict";var r=e("bean"),i=e("../../common"),o=function(e,t){var n;return function(){n||(e.apply(this,arguments),n=1,setTimeout(function(){n=0},t))}},a=function(e,t){var n,a,s,l,u,c,f,d,p=i.lastChild(e),h=!1,g=function(){a=i.offset(e),s=i.width(e),l=i.height(e),c=u?l:s,d=w(f)},m=function(t){n||t==b.value||f&&!(f>t)||(r.fire(e,"slide",[t]),b.value=t)},v=function(e){var n=e.pageX||e.clientX;!n&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(n=e.originalEvent.touches[0].pageX);var r=u?e.pageY-a.top:n-a.left;r=Math.max(0,Math.min(d||c,r));var i=r/c;return u&&(i=1-i),t&&(i=1-i),y(i,0,!0)},y=function(e,t){void 0===t&&(t=0),e>1&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!f||f>=e)&&(h?i.removeClass(p,"animated"):(i.addClass(p,"animated"),i.css(p,"transition-duration",(t||0)+"ms")),i.css(p,"width",n)),e},w=function(e){return Math.max(0,Math.min(c,u?(1-e)*l:e*s))},b={max:function(e){f=e},disable:function(e){n=e},slide:function(e,t,n){g(),n&&m(e),y(e,t)},disableAnimation:function(t,n){h=t!==!1,i.toggleClass(e,"no-animation",!!n)}};return g(),r.on(e,"mousedown.sld touchstart",function(t){if(t.preventDefault(),!n){var a=o(m,100);g(),b.dragging=!0,i.addClass(e,"is-dragging"),m(v(t)),r.on(document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),a(v(e))}),r.one(document,"mouseup touchend",function(){b.dragging=!1,i.removeClass(e,"is-dragging"),r.off(document,"mousemove.sld touchmove.sld")})}}),b};t.exports=a},{"../../common":1,bean:34}],30:[function(e,t,n){function r(e){var t=document.createElement("textarea");t.value=e,t.style.opacity=0,t.style.position="absolute",document.body.appendChild(t),t.select();var n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("Unsuccessfull")}t.exports=function(e,t,n){try{r(e),t()}catch(i){n(i)}}},{}],31:[function(e,t,n){"use strict";function r(e,t,n){t&&t.embed&&(t.embed=i({},v.defaults.embed,t.embed));var r=!1;try{"undefined"==typeof v.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.flowplayerTestStorage="test",r=!0)}catch(s){}var l,p,h=e,g=i({},v.defaults,v.conf,t),m={},b=new w;u.addClass(h,"is-loading"),u.toggleClass(h,"no-flex",!v.support.flex),u.toggleClass(h,"no-svg",!v.support.svg);try{m=v.conf.storage||(r?window.localStorage:m)}catch(I){}if(g.volume="true"===m.muted?0:isNaN(m.volume)?g.volume:m.volume||g.volume,g.debug=!!m.flowplayerDebug||g.debug,g.aspectRatio&&"string"==typeof g.aspectRatio){var M=g.aspectRatio.split(/[:\/]/);g.ratio=M[1]/M[0]}var C=h.currentStyle&&"rtl"===h.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(h,null)&&"rtl"===window.getComputedStyle(h,null).getPropertyValue("direction");C&&u.addClass(h,"is-rtl");var A={conf:g,currentSpeed:1,volumeLevel:g.muted?0:"undefined"==typeof g.volume?1*m.volume:g.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==m.muted||g.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:C,hijack:function(e){try{A.engine.suspendEngine()}catch(t){}A.hijacked=e},release:function(){try{A.engine.resumeEngine()}catch(e){}A.hijacked=!1},debug:function(){g.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!A.error&&!A.loading){A.video={},A.finished=!1,e=e||g.clip,e=i({},b.resolve(e,g.clip.sources)),(A.playing||A.engine)&&(e.autoplay=!0);var n=S(e);if(!n)return setTimeout(function(){A.trigger("error",[A,{code:v.support.flashVideo?5:10}])})&&A;if(!n.engineName)throw new Error("engineName property of factory should be exposed");if(A.engine&&n.engineName===A.engine.engineName||(A.ready=!1,A.engine&&(A.engine.unload(),A.conf.autoplay=!0),p=A.engine=n(A,h),A.one("ready",function(){setTimeout(function(){A.muted?A.mute(!0,!0):p.volume(A.volumeLevel)})})),i(e,p.pick(e.sources.filter(function(e){return e.engine?e.engine===p.engineName:!0}))),e.src){var r=A.trigger("load",[A,e,p],!0);r.defaultPrevented?A.loading=!1:(A.ready=!1,p.load(e),o(e)&&(t=e),t&&A.one("ready",t))}return A}},pause:function(e){return A.hijacked?A.hijacked.pause(e)|A:(!A.ready||A.seeking||A.loading||(p.pause(),A.one("pause",e)),A)},resume:function(){var e=A.trigger("beforeresume",[A],!0);if(!e.defaultPrevented)return A.hijacked?A.hijacked.resume()|A:(A.ready&&A.paused&&(p.resume(),A.finished&&(A.trigger("resume",[A]),A.finished=!1)),A)},toggle:function(){return A.ready?A.paused?A.resume():A.pause():A.load()},seek:function(e,t){if("boolean"==typeof e){var n=A.conf.seekStep||.1*A.video.duration;e=A.video.time+(e?n:-n),e=Math.min(Math.max(e,0),A.video.duration-.1)}if("undefined"==typeof e)return A;if(A.hijacked)return A.hijacked.seek(e,t)|A;if(A.ready){l=e;var r=A.trigger("beforeseek",[A,e],!0);r.defaultPrevented?(A.seeking=!1,u.toggleClass(h,"is-seeking",A.seeking)):(p.seek(e),o(t)&&A.one("seek",t))}return A},seekTo:function(e,t){return void 0===e?A.seek(l,t):void 0!==A.video.seekOffset?A.seek(A.video.seekOffset+.1*(A.video.duration-A.video.seekOffset)*e,t):A.seek(.1*A.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!A.muted),A.muted=e,t||(m.muted=e,m.volume=isNaN(m.volume)?g.volume:m.volume),"undefined"!=typeof p.mute?p.mute(e):(A.volume(e?0:m.volume,!0),A.trigger("mute",[A,e])),A},volume:function(e,t){return A.ready&&(e=Math.min(Math.max(e,0),1),t||(m.volume=e),p.volume(e)),A},speed:function(e,t){return A.ready&&("boolean"==typeof e&&(e=g.speeds[g.speeds.indexOf(A.currentSpeed)+(e?1:-1)]||A.currentSpeed),p.speed(e),t&&h.one("speed",t)),A},stop:function(){return A.ready&&(A.pause(),!A.live||A.dvr?A.seek(0,function(){A.trigger("stop",[A])}):A.trigger("stop",[A])),A},unload:function(){return g.splash?(A.trigger("unload",[A]),p&&(p.unload(),A.engine=p=0)):A.stop(),A},shutdown:function(){A.unload(),A.trigger("shutdown",[A]),a.off(h),delete f[h.getAttribute("data-flowplayer-instance-id")],h.removeAttribute("data-flowplayer-instance-id")},disable:function(e){return void 0===e&&(e=!A.disabled),e!=A.disabled&&(A.disabled=e,A.trigger("disable",e)),A},registerExtension:function(e,t){e=e||[],t=t||[],"string"==typeof e&&(e=[e]),"string"==typeof t&&(t=[t]),e.forEach(function(e){A.extensions.js.push(e)}),t.forEach(function(e){A.extensions.css.push(e)})}};A.conf=i(A.conf,g),A.extensions={js:[],css:[]},v.extensions.forEach(function(e){A.registerExtension(e[0],e[1])}),c(A);var S=function(e){var t,n=v.engines;if(g.engine){var r=n.filter(function(e){return e.engineName===g.engine})[0];if(r&&e.sources.some(function(e){return e.engine&&e.engine!==r.engineName?!1:r.canPlay(e.type,A.conf)}))return r}return g.enginePreference&&(n=v.engines.filter(function(e){return g.enginePreference.indexOf(e.engineName)>-1}).sort(function(e,t){return g.enginePreference.indexOf(e.engineName)-g.enginePreference.indexOf(t.engineName)})),e.sources.some(function(e){var r=n.filter(function(t){return e.engine&&e.engine!==t.engineName?!1:t.canPlay(e.type,A.conf)}).shift();return r&&(t=r),!!r}),t};return h.getAttribute("data-flowplayer-instance-id")||(h.setAttribute("data-flowplayer-instance-id",y++),A.on("boot",function(){var e=v.support;(g.splash||u.hasClass(h,"is-splash")||!e.firstframe)&&(A.forcedSplash=!g.splash&&!u.hasClass(h,"is-splash"),A.splash=!0,g.splash||(g.splash=!0),u.addClass(h,"is-splash")),g.splash&&u.find("video",h).forEach(u.removeNode),(g.dvr||g.live||u.hasClass(h,"is-live"))&&(A.live=g.live=!0,A.dvr=g.dvr=!!g.dvr||u.hasClass(h,"is-dvr"),u.addClass(h,"is-live"),u.toggleClass(h,"is-dvr",A.dvr)),d.forEach(function(e){e(A,h)}),f.push(A),g.splash?A.unload():A.load(),g.disabled&&A.disable(),A.one("ready",n)}).on("load",function(e,t,n){g.splash&&u.find(".flowplayer.is-ready,.flowplayer.is-loading").forEach(function(e){var t=e.getAttribute("data-flowplayer-instance-id");if(t!==h.getAttribute("data-flowplayer-instance-id")){var n=f[Number(t)];n&&n.conf.splash&&n.unload()}}),u.addClass(h,"is-loading"),t.loading=!0,("undefined"!=typeof n.live||"undefined"!=typeof n.dvr)&&(u.toggleClass(h,"is-live",n.dvr||n.live),u.toggleClass(h,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,u.removeClass(h,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);var r=t.conf.hlsFix&&/mpegurl/i.exec(n.type);u.toggleClass(h,"hls-fix",!!r)}).on("unload",function(){u.removeClass(h,"is-loading"),A.loading=!1}).on("ready unload",function(e){var t="ready"==e.type;u.toggleClass(h,"is-splash",!t),u.toggleClass(h,"is-ready",t),A.ready=t,A.splash=!t}).on("progress",function(e,t,n){t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){A.seeking="beforeseek"==e.type,u.toggleClass(h,"is-seeking",A.seeking)}).on("ready pause resume unload finish stop",function(e){A.paused=/pause|finish|unload|stop/.test(e.type),A.paused=A.paused||"ready"===e.type&&!g.autoplay&&!A.playing,A.playing=!A.paused,u.toggleClass(h,"is-paused",A.paused),u.toggleClass(h,"is-playing",A.playing),A.load.ed||A.pause()}).on("finish",function(){A.finished=!0}).on("error",function(){})),A.trigger("boot",[A,h]),A}var i=e("extend-object"),o=e("is-function"),a=e("bean"),s=e("./ext/ui/slider"),l=e("./ext/ui/bar-slider"),u=e("./common"),c=e("./ext/events"),f=[],d=[],p=window.onbeforeunload;window.onbeforeunload=function(e){return f.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){u.find(".flowplayer.is-error .fp-message").forEach(u.removeNode)})}),p?p(e):void 0};var h=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent),g=/(\d+\.\d+) Safari/.exec(navigator.userAgent),m=g?Number(g[1]):100,v=t.exports=function(e,t,n){if(o(e))return d.push(e);if("number"==typeof e||"undefined"==typeof e)return f[e||0];if(e.nodeType){if(null!==e.getAttribute("data-flowplayer-instance-id"))return f[e.getAttribute("data-flowplayer-instance-id")];if(!t)return;return r(e,t,n)}if(e.jquery)return v(e[0],t,n);if("string"==typeof e){var i=u.find(e)[0];return i&&v(i,t,n)}};i(v,{version:"7.2.4",engines:[],engine:function(e){return v.engines.filter(function(t){return t.engineName===e})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?v.conf[e]=t:i(v.conf,e)},registerExtension:function(e,t){v.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,swf:"//releases.flowplayer.org/7.2.4/commercial/flowplayer.swf",swfHls:"//releases.flowplayer.org/7.2.4/commercial/flowplayerhls.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:5e3,mutedAutoplay:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:h&&8>m,disableInline:!1},bean:a,common:u,slider:s,barSlider:l,extend:i});var y=0,w=e("./ext/resolve");if("undefined"!=typeof window.jQuery){var b=window.jQuery;b(function(){"function"==typeof b.fn.flowplayer&&b('.flowplayer:has(video,script[type="application/json"])').flowplayer()});var I=function(e){if(!e.length)return{};var t=e.data()||{},n={};return b.each(["autoplay","loop","preload","poster"],function(r,i){var o=e.attr(i);void 0!==o&&-1!==["autoplay","poster"].indexOf(i)?n[i]=o?o:!0:void 0!==o&&(t[i]=o?o:!0)}),e[0].autoplay=e[0].preload=!1,t.subtitles=e.find("track").map(function(){var e=b(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),"default":e.prop("default")}}).get(),t.sources=(new w).sourcesFromVideoTag(e,b),i(n,{clip:t})};b.fn.flowplayer=function(e,t){return this.each(function(){"string"==typeof e&&(e={swf:e}),o(e)&&(t=e,e={});var n=b(this),i=n.find('script[type="application/json"]'),a=i.length?JSON.parse(i.text()):I(n.find("video")),s=b.extend({},e||{},a,n.data()),l=r(this,s,t);c.EVENTS.forEach(function(e){l.on(e+".jquery",function(e){n.trigger.call(n,e.type,e.detail&&e.detail.args)})}),n.data("flowplayer",l)})}}},{"./common":1,"./ext/events":12,"./ext/resolve":21,"./ext/ui/bar-slider":28,"./ext/ui/slider":29,bean:34,"extend-object":39,"is-function":42}],32:[function(e,t,n){e("es5-shim");var r=t.exports=e("./flowplayer");e("./ext/support"),e("./engine/embed"),e("./engine/hlsjs"),e("./engine/html5"),e("./engine/flash"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/share"),e("./ext/facebook"),e("./ext/twitter"),e("./ext/embed"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),r(function(e,t){function n(e){var t=document.createElement("a");return t.href=e,u.hostname(t.hostname)}function i(e){var t="ab.ca,ac.ac,ac.ae,ac.at,ac.be,ac.cn,ac.il,ac.in,ac.jp,ac.kr,ac.sg,ac.th,ac.uk,ad.jp,adm.br,adv.br,ah.cn,am.br,arq.br,art.br,arts.ro,asn.au,asso.fr,asso.mc,bc.ca,bel.tr,bio.br,biz.pl,biz.tr,bj.cn,br.com,cn.com,cng.br,cnt.br,co.ac,co.at,co.de,co.gl,co.hk,co.id,co.il,co.in,co.jp,co.kr,co.mg,co.ms,co.nz,co.th,co.uk,co.ve,co.vi,co.za,com.ag,com.ai,com.ar,com.au,com.br,com.cn,com.co,com.cy,com.de,com.do,com.ec,com.es,com.fj,com.fr,com.gl,com.gt,com.hk,com.hr,com.hu,com.kg,com.ki,com.lc,com.mg,com.mm,com.ms,com.mt,com.mu,com.mx,com.my,com.na,com.nf,com.ng,com.ni,com.pa,com.ph,com.pl,com.pt,com.qa,com.ro,com.ru,com.sb,com.sc,com.sg,com.sv,com.tr,com.tw,com.ua,com.uy,com.ve,com.vn,cp.tz,cq.cn,de.com,de.org,ecn.br,ed.jp,edu.au,edu.cn,edu.hk,edu.mm,edu.my,edu.pl,edu.pt,edu.qa,edu.sg,edu.tr,edu.tw,eng.br,ernet.in,esp.br,etc.br,eti.br,eu.com,eu.int,eu.lv,firm.in,firm.ro,fm.br,fot.br,fst.br,g12.br,gb.com,gb.net,gd.cn,gen.in,go.jp,go.kr,go.th,gov.au,gov.az,gov.br,gov.cn,gov.il,gov.in,gov.mm,gov.my,gov.qa,gov.sg,gov.tr,gov.tw,gov.uk,govt.nz,gr.jp,gs.cn,gv.ac,gv.at,gx.cn,gz.cn,he.cn,hi.cn,hk.cn,hl.cn,hu.com,id.au,idv.tw,in.th,in.ua,ind.br,ind.in,inf.br,info.pl,info.ro,info.tr,info.ve,iwi.nz,jl.cn,jor.br,js.cn,jus.br,k12.il,k12.tr,kr.com,lel.br,lg.jp,ln.cn,ltd.uk,maori.nz,mb.ca,me.uk,med.br,mi.th,mil.br,mil.uk,mo.cn,mod.uk,muni.il,nb.ca,ne.jp,ne.kr,net.ag,net.ai,net.au,net.br,net.cn,net.do,net.gl,net.hk,net.il,net.in,net.kg,net.ki,net.lc,net.mg,net.mm,net.mu,net.ni,net.nz,net.pl,net.ru,net.sb,net.sc,net.sg,net.th,net.tr,net.tw,net.uk,net.ve,nf.ca,nhs.uk,nm.cn,nm.kr,no.com,nom.br,nom.ni,nom.ro,ns.ca,nt.ca,nt.ro,ntr.br,nx.cn,odo.br,off.ai,on.ca,or.ac,or.at,or.jp,or.kr,or.th,org.ag,org.ai,org.au,org.br,org.cn,org.do,org.es,org.gl,org.hk,org.in,org.kg,org.ki,org.lc,org.mg,org.mm,org.ms,org.nf,org.ng,org.ni,org.nz,org.pl,org.ro,org.ru,org.sb,org.sc,org.sg,org.tr,org.tw,org.uk,org.ve,pe.ca,plc.uk,police.uk,ppg.br,presse.fr,pro.br,psc.br,psi.br,qc.ca,qc.com,qh.cn,rec.br,rec.ro,res.in,sa.com,sc.cn,sch.uk,se.com,se.net,sh.cn,sk.ca,slg.br,sn.cn,store.ro,tj.cn,tm.fr,tm.mc,tm.ro,tmp.br,tur.br,tv.br,tv.tr,tw.cn,uk.com,uk.net,us.com,uy.com,vet.br,waw.pl,web.ve,www.ro,xj.cn,xz.cn,yk.ca,yn.cn,zj.cn,zlg.br".split(",");e=e.toLowerCase();var n=e.split("."),r=n.length;if(2>r||/^\d+$/.test(n[r-1]))return e;var i=n.slice(-2).join(".");return r>=3&&t.indexOf(i)>=0?n.slice(-3).join("."):i}function o(e,t){t=i(t);for(var n=0,r=t.length-1;r>=0;r--)n+=5.320419428422767e22*t.charCodeAt(r);for(n=(""+n).substring(0,7),r=0;r<e.length;r++)if(n===e[r].substring(1,8))return 1}var a=function(e,t){var n=e.className.split(" ");-1===n.indexOf(t)&&(e.className+=" "+t)},s=function(e){return"none"!==window.getComputedStyle(e).display},l=e.conf,u=r.common,c=u.createElement,f=l.swf.indexOf("flowplayer.org")&&l.e&&t.getAttribute("data-origin"),d=f?n(f):u.hostname(),p=(document,l.key);if("file:"==location.protocol&&(d="localhost"),e.load.ed=1,l.hostname=d,l.origin=f||location.href,f&&a(t,"is-embedded"),"string"==typeof p&&(p=p.split(/,\s*/)),p&&"function"==typeof o&&o(p,d)){if(l.logo){var h=u.find(".fp-player",t)[0],g=l.logo.href||"",m=l.logo.src||l.logo,v=c("a",{className:"fp-logo",href:g});f&&(v.href=v.href||f),l.embed&&l.embed.popup&&(v.target="_blank");var y=c("img",{src:m});v.appendChild(y),(h||t).appendChild(v)}}else{var v=c("a",{onclick:""}),h=u.find(".fp-player",t)[0];(h||t).appendChild(v);var w=c("div",{className:"fp-context-menu fp-menu"},'<strong>© 2018 Flowplayer AB</strong><a href="https://flowplayer.com/hello/?from=player">About Flowplayer</a><a href="https://flowplayer.com/license">GPL based license</a>'),b=window.location.href.indexOf("localhost");7!==b&&(h||t).appendChild(w),e.on("pause resume finish unload ready",function(e,n){var r=-1;if(n.video.src)for(var i=[["org","flowplayer","drive"],["org","flowplayer","my"],["org","flowplayer","cdn"],["com","flowplayer","cdn"]],o=0;o<i.length&&(r=n.video.src.indexOf("://"+i[o].reverse().join(".")),-1===r);o++);if(/pause|resume/.test(e.type)&&"flash"!=n.engine.engineName&&4!=r&&5!=r){var a={display:"block",position:"absolute",left:"16px",bottom:"56px",zIndex:99999,width:"120px",height:"27px",backgroundImage:"url("+[".png","fplogo","/",".com",".foliovision","cdn","//","https:"].reverse().join("")+")"};for(var l in a)a.hasOwnProperty(l)&&(v.style[l]=a[l]);n.load.ed=s(v)&&(7===b||w.parentNode==t||w.parentNode==h),n.load.ed||n.pause()}else v.style.display="none"})}})},{"./engine/embed":2,"./engine/flash":3,"./engine/hlsjs":4,"./engine/html5":6,"./ext/airplay":7,"./ext/analytics":8,"./ext/chromecast":9,"./ext/cuepoint":10,"./ext/embed":11,"./ext/facebook":13,"./ext/fullscreen":14,"./ext/keyboard":15,"./ext/menu":16,"./ext/message":17,"./ext/mobile":18,"./ext/playlist":19,"./ext/qsel":20,"./ext/share":22,"./ext/subtitle":23,"./ext/support":25,"./ext/twitter":26,"./ext/ui":27,"./flowplayer":31,"es5-shim":38}],33:[function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-r(e)}function o(e){var t,n,i,o,a,s=e.length;o=r(e),a=new f(3*s/4-o),n=o>0?s-4:s;var l=0;for(t=0;n>t;t+=4)i=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function a(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[63&e]}function s(e,t,n){for(var r,i=[],o=t;n>o;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(a(r));return i.join("")}function l(e){for(var t,n=e.length,r=n%3,i="",o=[],a=16383,l=0,c=n-r;c>l;l+=a)o.push(s(e,l,l+a>c?c:l+a));return 1===r?(t=e[n-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=i,n.toByteArray=o,n.fromByteArray=l;for(var u=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=d.length;h>p;++p)u[p]=d[p],c[d.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],34:[function(t,n,r){!function(t,r,i){"undefined"!=typeof n&&n.exports?n.exports=i():"function"==typeof e&&e.amd?e(i):r[t]=i()}("bean",this,function(e,t){e=e||"bean",t=t||this;var n,r=window,i=t[e],o=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,s="addEventListener",l="removeEventListener",u=document||{},c=u.documentElement||{},f=c[s],d=f?s:"attachEvent",p={},h=Array.prototype.slice,g=function(e,t){return e.split(t||" ")},m=function(e){return"string"==typeof e},v=function(e){return"function"==typeof e},y="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",w="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",b=function(e,t,n){
|
9 |
+
for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},g(y+(f?w:""))),I=function(){var e="compareDocumentPosition"in c?function(e,t){return t.compareDocumentPosition&&16===(16&t.compareDocumentPosition(e))}:"contains"in c?function(e,t){return t=9===t.nodeType||t===window?c:t,t!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),M=function(){var e=g("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),t=e.concat(g("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),n=t.concat(g("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),i=e.concat(g("char charCode key keyCode keyIdentifier keyLocation location")),o=e.concat(g("data")),a=e.concat(g("touches targetTouches changedTouches scale rotation")),s=e.concat(g("data origin source")),l=e.concat(g("state")),f=/over|out/,d=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,i}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+u.body.scrollLeft+c.scrollLeft,n.clientY=e.clientY+u.body.scrollTop+c.scrollTop),f.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return o}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return s}},{reg:/^popstate$/i,fix:function(){return l}},{reg:/.*/,fix:function(){return e}}],p={},h=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var i,o,a,s,l,u=e.type,c=e.target||e.srcElement;if(this.target=c&&3===c.nodeType?c.parentNode:c,n){if(l=p[u],!l)for(i=0,o=d.length;o>i;i++)if(d[i].reg.test(u)){p[u]=l=d[i].fix;break}for(s=l(e,this,u),i=s.length;i--;)!((a=s[i])in this)&&a in e&&(this[a]=e[a])}}};return h.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},h.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},h.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},h.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},h.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},h.prototype.clone=function(e){var t=new h(this,this.element,this.isNative);return t.currentTarget=e,t},h}(),C=function(e,t){return f||t||e!==u&&e!==r?e:c},A=function(){var e=function(e,t,n,r){var i=function(n,i){return t.apply(e,r?h.call(i,n?0:1).concat(r):i)},o=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=o(e,this);return n.apply(t,arguments)?(e&&(e.currentTarget=t),i(e,arguments)):void 0}:function(e){return t.__beanDel&&(e=e.clone(o(e))),i(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,i,o,a,s){var l,u=I[n];"unload"==n&&(r=N(L,t,n,r,i)),u&&(u.condition&&(r=e(t,r,u.condition,a)),n=u.base||n),this.isNative=l=b[n]&&!!t[d],this.customType=!f&&!l&&n,this.element=t,this.type=n,this.original=i,this.namespaces=o,this.eventType=f||l?n:"propertychange",this.target=C(t,l),this[d]=!!this.target[d],this.root=s,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),S=function(){var e={},t=function(n,r,i,o,a,s){var l=a?"r":"$";if(r&&"*"!=r){var u,c=0,f=e[l+r],d="*"==n;if(!f)return;for(u=f.length;u>c;c++)if((d||f[c].matches(n,i,o))&&!s(f[c],f,c,r))return}else for(var p in e)p.charAt(0)==l&&t(n,p.substr(1),i,o,a,s)},n=function(t,n,r,i){var o,a=e[(i?"r":"$")+n];if(a)for(o=a.length;o--;)if(!a[o].root&&a[o].matches(t,r,null))return!0;return!1},r=function(e,n,r,i){var o=[];return t(e,n,r,null,i,function(e){return o.push(e)}),o},i=function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},o=function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},a=function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n};return{has:n,get:r,put:i,del:o,entries:a}}(),E=function(e){n=arguments.length?e:u.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},j=function(e,t){if(f||!t||!e||e.propertyName=="_on"+t){var n=S.get(this,t||e.type,null,!1),r=n.length,i=0;for(e=new M(e,this,!0),t&&(e.type=t);r>i&&!e.isImmediatePropagationStopped();i++)n[i].removed||n[i].handler.call(this,e)}},D=f?function(e,t,n){e[n?s:l](t,j,!1)}:function(e,t,n,r){var i;n?(S.put(i=new A(e,r||t,function(t){j.call(e,t,r)},j,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),i.target.attachEvent("on"+i.eventType,i.handler)):(i=S.get(e,r||t,j,!0)[0],i&&(i.target.detachEvent("on"+i.eventType,i.handler),S.del(i)))},N=function(e,t,n,r,i){return function(){r.apply(this,arguments),e(t,n,i)}},L=function(e,t,n,r){var i,o,s=t&&t.replace(a,""),l=S.get(e,s,null,!1),u={};for(i=0,o=l.length;o>i;i++)n&&l[i].original!==n||!l[i].inNamespaces(r)||(S.del(l[i]),!u[l[i].eventType]&&l[i][d]&&(u[l[i].eventType]={t:l[i].eventType,c:l[i].type}));for(i in u)S.has(e,u[i].t,null,!1)||D(e,u[i].t,!1,u[i].c)},x=function(e,t){var r=function(t,r){for(var i,o=m(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(i=o.length;i--;)if(o[i]===t)return t},i=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return i.__beanDel={ft:r,selector:e},i},T=f?function(e,t,n){var i=u.createEvent(e?"HTMLEvents":"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(i)}:function(e,t,n){n=C(n,e),e?n.fireEvent("on"+t,u.createEventObject()):n["_on"+t]++},Z=function(e,t,n){var r,i,s,l,u=m(t);if(u&&t.indexOf(" ")>0){for(t=g(t),l=t.length;l--;)Z(e,t[l],n);return e}if(i=u&&t.replace(a,""),i&&I[i]&&(i=I[i].base),!t||u)(s=u&&t.replace(o,""))&&(s=g(s,".")),L(e,i,n,s);else if(v(t))L(e,null,t);else for(r in t)t.hasOwnProperty(r)&&Z(e,r,t[r]);return e},P=function(e,t,r,i){var s,l,u,c,f,m,y;{if(void 0!==r||"object"!=typeof t){for(v(r)?(f=h.call(arguments,3),i=s=r):(s=i,f=h.call(arguments,4),i=x(r,s,n)),u=g(t),this===p&&(i=N(Z,e,t,i,s)),c=u.length;c--;)y=S.put(m=new A(e,u[c].replace(a,""),i,s,g(u[c].replace(o,""),"."),f,!1)),m[d]&&y&&D(e,m.eventType,!0,m.customType);return e}for(l in t)t.hasOwnProperty(l)&&P.call(this,e,l,t[l])}},k=function(e,t,n,r){return P.apply(null,m(n)?[e,n,t,r].concat(arguments.length>3?h.call(arguments,5):[]):h.call(arguments))},Y=function(){return P.apply(p,arguments)},z=function(e,t,n){var r,i,s,l,u,c=g(t);for(r=c.length;r--;)if(t=c[r].replace(a,""),(l=c[r].replace(o,""))&&(l=g(l,".")),l||n||!e[d])for(u=S.get(e,t,null,!1),n=[!1].concat(n),i=0,s=u.length;s>i;i++)u[i].inNamespaces(l)&&u[i].handler.apply(e,n);else T(b[t],t,e);return e},O=function(e,t,n){for(var r,i,o=S.get(t,n,null,!1),a=o.length,s=0;a>s;s++)o[s].original&&(r=[e,o[s].type],(i=o[s].handler.__beanDel)&&r.push(i.selector),r.push(o[s].original),P.apply(null,r));return e},G={on:P,add:k,one:Y,off:Z,remove:Z,clone:O,fire:z,Event:M,setSelectorEngine:E,noConflict:function(){return t[e]=i,this}};if(r.attachEvent){var R=function(){var e,t=S.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&Z(t[e].element,t[e].type);r.detachEvent("onunload",R),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",R)}return E(),G})},{}],35:[function(e,t,n){(function(t){"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=a.prototype):(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?f(e,t,n):h(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function u(e,t,n,r){return l(t),0>=t?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function c(e,t){if(l(t),e=o(e,0>t?0:0|g(t)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;++n)e[n]=0;return e}function f(e,t,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=o(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function d(e,t){var n=t.length<0?0:0|g(t.length);e=o(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t,n,r){if(t.byteLength,0>n||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),a.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=a.prototype):e=d(e,t),e}function h(e,t){if(a.isBuffer(t)){var n=0|g(t.length);return e=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||K(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&$(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),a.alloc(+e)}function v(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if(n>>>=0,t>>>=0,t>=n)return"";for(e||(e="utf8");;)switch(e){case"hex":return Z(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(0>n){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,i);if("number"==typeof t)return t=255&t,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(i){var c=-1;for(u=n;s>u;u++)if(o(e,u)===o(t,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===l)return c*a}else-1!==c&&(u-=u-c),c=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var f=!0,d=0;l>d;d++)if(o(e,u+d)!==o(t,d)){f=!1;break}if(f)return u}return-1}function M(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;r>a;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function C(e,t,n,r){return _(F(t,e.length-n),e,n,r)}function A(e,t,n,r){return _(H(t),e,n,r)}function S(e,t,n,r){return A(e,t,n,r)}function E(e,t,n,r){return _(X(t),e,n,r)}function j(e,t,n,r){return _(V(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n>=i+s){var l,u,c,f;switch(s){case 1:128>o&&(a=o);break;case 2:l=e[i+1],128===(192&l)&&(f=(31&o)<<6|63&l,f>127&&(a=f));break;case 3:l=e[i+1],u=e[i+2],128===(192&l)&&128===(192&u)&&(f=(15&o)<<12|(63&l)<<6|63&u,f>2047&&(55296>f||f>57343)&&(a=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(f=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c,f>65535&&1114112>f&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return L(r)}function L(e){var t=e.length;if(ee>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ee));return n}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(e[i]);return r}function Z(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function k(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Y(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||o>t)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);o>i;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);o>i;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function G(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return i||G(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return i||G(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(e,t,n,r,52,8),n+8}function U(e){if(e=J(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function J(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function B(e){return 16>e?"0"+e.toString(16):e.toString(16)}function F(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;r>a;++a){if(n=e.charCodeAt(a),n>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((t-=1)<0)break;o.push(n)}else if(2048>n){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function V(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function X(e){return Q.toByteArray(U(e))}function _(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e){return e!==e}var Q=e("base64-js"),q=e("ieee754"),$=e("isarray");n.Buffer=a,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return u(null,e,t,n)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);o>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!$(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=v,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;e>t;t+=2)w(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;e>t;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;e>t;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?N(this,0,e):y.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),f=0;l>f;++f)if(u[f]!==c[f]){o=u[f],s=c[f];break}return s>o?-1:o>s?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=a.prototype;else{var i=t-e;r=new a(i,void 0);for(var o=0;i>o;++o)r[o]=this[o+e]}return r},a.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;Y(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;Y(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);Y(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)0>e&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);Y(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)0>e&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&t>n&&r>t)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(1e3>o||!a.TYPED_ARRAY_SUPPORT)for(i=0;o>i;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);256>i&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e=255&e);if(0>t||this.length<t||this.length<n)throw new RangeError("Out of range index");if(t>=n)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;n>o;++o)this[o]=e;else{var s=a.isBuffer(e)?e:F(new a(e,r).toString()),l=s.length;for(o=0;n-t>o;++o)this[o+t]=s[o%l]}return this};var te=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":33,ieee754:40,isarray:43}],36:[function(e,t,n){function r(e){function t(e){var t=c();a(t,e)>-1||(t.push(e),f(t))}function n(e){var t=c(),n=a(t,e);-1!==n&&(t.splice(n,1),f(t))}function r(e){return a(c(),e)>-1}function s(e){return r(e)?(n(e),!1):(t(e),!0)}function l(){return e.className}function u(e){var t=c();return t[e]||null}function c(){var t=e.className;return i(t.split(" "),o)}function f(t){var n=t.length;e.className=t.join(" "),p.length=n;for(var r=0;r<t.length;r++)p[r]=t[r];delete t[n]}var d=e.classList;if(d)return d;var p={add:t,remove:n,contains:r,toggle:s,toString:l,length:0,item:u};return p}function i(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}function o(e){return!!e}var a=e("indexof");t.exports=r},{indexof:41}],37:[function(e,t,n){function r(e,t,n,r){return n=window.getComputedStyle,r=n?n(e):e.currentStyle,r?r[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]:void 0}t.exports=r},{}],38:[function(t,n,r){!function(t,i){"use strict";"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i():t.returnExports=i()}(this,function(){var e,t,n=Array,r=n.prototype,i=Object,o=i.prototype,a=Function,s=a.prototype,l=String,u=l.prototype,c=Number,f=c.prototype,d=r.slice,p=r.splice,h=r.push,g=r.unshift,m=r.concat,v=r.join,y=s.call,w=s.apply,b=Math.max,I=Math.min,M=o.toString,C="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,A=Function.prototype.toString,S=/^\s*class /,E=function(e){try{var t=A.call(e),n=t.replace(/\/\/.*\n/g,""),r=n.replace(/\/\*[.\s\S]*\*\//g,""),i=r.replace(/\n/gm," ").replace(/ {2}/g," ");return S.test(i)}catch(o){return!1}},j=function(e){try{return E(e)?!1:(A.call(e),!0)}catch(t){return!1}},D="[object Function]",N="[object GeneratorFunction]",e=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(C)return j(e);if(E(e))return!1;var t=M.call(e);return t===D||t===N},L=RegExp.prototype.exec,x=function(e){try{return L.call(e),!0}catch(t){return!1}},T="[object RegExp]";t=function(e){return"object"!=typeof e?!1:C?x(e):M.call(e)===T};var Z,P=String.prototype.valueOf,k=function(e){try{return P.call(e),!0}catch(t){return!1}},Y="[object String]";Z=function(e){return"string"==typeof e?!0:"object"!=typeof e?!1:C?k(e):M.call(e)===Y};var z=i.defineProperty&&function(){try{var e={};i.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(n){return!1}}(),O=function(e){var t;return t=z?function(e,t,n,r){!r&&t in e||i.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(n,r,i){for(var o in r)e.call(r,o)&&t(n,o,r[o],i)}}(o.hasOwnProperty),G=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},R=c.isNaN||function(e){return e!==e},W={ToInteger:function(e){var t=+e;return R(t)?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var n,r,i;if(G(t))return t;if(r=t.valueOf,e(r)&&(n=r.call(t),G(n)))return n;if(i=t.toString,e(i)&&(n=i.call(t),G(n)))return n;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return i(e)},ToUint32:function(e){return e>>>0}},U=function(){};O(s,{bind:function(t){var n=this;if(!e(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,o=d.call(arguments,1),s=function(){
|
10 |
+
if(this instanceof r){var e=w.call(n,this,m.call(o,d.call(arguments)));return i(e)===e?e:this}return w.call(n,t,m.call(o,d.call(arguments)))},l=b(0,n.length-o.length),u=[],c=0;l>c;c++)h.call(u,"$"+c);return r=a("binder","return function ("+v.call(u,",")+"){ return binder.apply(this, arguments); }")(s),n.prototype&&(U.prototype=n.prototype,r.prototype=new U,U.prototype=null),r}});var J=y.bind(o.hasOwnProperty),B=y.bind(o.toString),F=y.bind(d),H=w.bind(d);if("object"==typeof document&&document&&document.documentElement)try{F(document.documentElement.childNodes)}catch(V){var X=F,_=H;F=function(e){for(var t=[],n=e.length;n-->0;)t[n]=e[n];return _(t,X(arguments,1))},H=function(e,t){return _(F(e),t)}}var K=y.bind(u.slice),Q=y.bind(u.split),q=y.bind(u.indexOf),$=y.bind(h),ee=y.bind(o.propertyIsEnumerable),te=y.bind(r.sort),ne=n.isArray||function(e){return"[object Array]"===B(e)},re=1!==[].unshift(0);O(r,{unshift:function(){return g.apply(this,arguments),this.length}},re),O(n,{isArray:ne});var ie=i("a"),oe="a"!==ie[0]||!(0 in ie),ae=function(e){var t=!0,n=!0,r=!1;if(e)try{e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")}catch(i){r=!0}return!!e&&!r&&t&&n};O(r,{forEach:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=-1,a=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<a;)o in i&&("undefined"==typeof n?t(i[o],o,r):t.call(n,i[o],o,r))}},!ae(r.forEach)),O(r,{map:function(t){var r,i=W.ToObject(this),o=oe&&Z(this)?Q(this,""):i,a=W.ToUint32(o.length),s=n(a);if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.map callback must be a function");for(var l=0;a>l;l++)l in o&&("undefined"==typeof r?s[l]=t(o[l],l,i):s[l]=t.call(r,o[l],l,i));return s}},!ae(r.map)),O(r,{filter:function(t){var n,r,i=W.ToObject(this),o=oe&&Z(this)?Q(this,""):i,a=W.ToUint32(o.length),s=[];if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;a>l;l++)l in o&&(n=o[l],("undefined"==typeof r?t(n,l,i):t.call(r,n,l,i))&&$(s,n));return s}},!ae(r.filter)),O(r,{every:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;o>a;a++)if(a in i&&!("undefined"==typeof n?t(i[a],a,r):t.call(n,i[a],a,r)))return!1;return!0}},!ae(r.every)),O(r,{some:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;o>a;a++)if(a in i&&("undefined"==typeof n?t(i[a],a,r):t.call(n,i[a],a,r)))return!0;return!1}},!ae(r.some));var se=!1;r.reduce&&(se="object"==typeof r.reduce.call("es5",function(e,t,n,r){return r})),O(r,{reduce:function(t){var n=W.ToObject(this),r=oe&&Z(this)?Q(this,""):n,i=W.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===i&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,a=0;if(arguments.length>=2)o=arguments[1];else for(;;){if(a in r){o=r[a++];break}if(++a>=i)throw new TypeError("reduce of empty array with no initial value")}for(;i>a;a++)a in r&&(o=t(o,r[a],a,n));return o}},!se);var le=!1;r.reduceRight&&(le="object"==typeof r.reduceRight.call("es5",function(e,t,n,r){return r})),O(r,{reduceRight:function(t){var n=W.ToObject(this),r=oe&&Z(this)?Q(this,""):n,i=W.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===i&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,a=i-1;if(arguments.length>=2)o=arguments[1];else for(;;){if(a in r){o=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>a)return o;do a in r&&(o=t(o,r[a],a,n));while(a--);return o}},!le);var ue=r.indexOf&&-1!==[0,1].indexOf(1,2);O(r,{indexOf:function(e){var t=oe&&Z(this)?Q(this,""):W.ToObject(this),n=W.ToUint32(t.length);if(0===n)return-1;var r=0;for(arguments.length>1&&(r=W.ToInteger(arguments[1])),r=r>=0?r:b(0,n+r);n>r;r++)if(r in t&&t[r]===e)return r;return-1}},ue);var ce=r.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);O(r,{lastIndexOf:function(e){var t=oe&&Z(this)?Q(this,""):W.ToObject(this),n=W.ToUint32(t.length);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=I(r,W.ToInteger(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}},ce);var fe=function(){var e=[1,2],t=e.splice();return 2===e.length&&ne(t)&&0===t.length}();O(r,{splice:function(e,t){return 0===arguments.length?[]:p.apply(this,arguments)}},!fe);var de=function(){var e={};return r.splice.call(e,0,0,1),1===e.length}();O(r,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=b(W.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&(n=F(arguments),n.length<2?$(n,this.length-e):n[1]=W.ToInteger(t)),p.apply(this,n)}},!de);var pe=function(){var e=new n(1e5);return e[8]="x",e.splice(1,1),7===e.indexOf("x")}(),he=function(){var e=256,t=[];return t[e]="a",t.splice(e+1,0,"b"),"a"===t[e]}();O(r,{splice:function(e,t){for(var n,r=W.ToObject(this),i=[],o=W.ToUint32(r.length),a=W.ToInteger(e),s=0>a?b(o+a,0):I(a,o),u=I(b(W.ToInteger(t),0),o-s),c=0;u>c;)n=l(s+c),J(r,n)&&(i[c]=r[n]),c+=1;var f,d=F(arguments,2),p=d.length;if(u>p){c=s;for(var h=o-u;h>c;)n=l(c+u),f=l(c+p),J(r,n)?r[f]=r[n]:delete r[f],c+=1;c=o;for(var g=o-u+p;c>g;)delete r[c-1],c-=1}else if(p>u)for(c=o-u;c>s;)n=l(c+u-1),f=l(c+p-1),J(r,n)?r[f]=r[n]:delete r[f],c-=1;c=s;for(var m=0;m<d.length;++m)r[c]=d[m],c+=1;return r.length=o-u+p,i}},!pe||!he);var ge,me=r.join;try{ge="1,2,3"!==Array.prototype.join.call("123",",")}catch(V){ge=!0}ge&&O(r,{join:function(e){var t="undefined"==typeof e?",":e;return me.call(Z(this)?Q(this,""):this,t)}},ge);var ve="1,2"!==[1,2].join(void 0);ve&&O(r,{join:function(e){var t="undefined"==typeof e?",":e;return me.call(this,t)}},ve);var ye=function(e){for(var t=W.ToObject(this),n=W.ToUint32(t.length),r=0;r<arguments.length;)t[n+r]=arguments[r],r+=1;return t.length=n+r,n+r},we=function(){var e={},t=Array.prototype.push.call(e,void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!J(e,0)}();O(r,{push:function(e){return ne(this)?h.apply(this,arguments):ye.apply(this,arguments)}},we);var be=function(){var e=[],t=e.push(void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!J(e,0)}();O(r,{push:ye},be),O(r,{slice:function(e,t){var n=Z(this)?Q(this,""):this;return H(n,arguments)}},oe);var Ie=function(){try{[1,2].sort(null)}catch(e){try{[1,2].sort({})}catch(t){return!1}}return!0}(),Me=function(){try{return[1,2].sort(/a/),!1}catch(e){}return!0}(),Ce=function(){try{return[1,2].sort(void 0),!0}catch(e){}return!1}();O(r,{sort:function(t){if("undefined"==typeof t)return te(this);if(!e(t))throw new TypeError("Array.prototype.sort callback must be a function");return te(this,t)}},Ie||!Ce||!Me);var Ae=!ee({toString:null},"toString"),Se=ee(function(){},"prototype"),Ee=!J("x","0"),je=function(e){var t=e.constructor;return t&&t.prototype===e},De={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},Ne=function(){if("undefined"==typeof window)return!1;for(var e in window)try{!De["$"+e]&&J(window,e)&&null!==window[e]&&"object"==typeof window[e]&&je(window[e])}catch(t){return!0}return!1}(),Le=function(e){if("undefined"==typeof window||!Ne)return je(e);try{return je(e)}catch(t){return!1}},xe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Te=xe.length,Ze=function(e){return"[object Arguments]"===B(e)},Pe=function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&!ne(t)&&e(t.callee)},ke=Ze(arguments)?Ze:Pe;O(i,{keys:function(t){var n=e(t),r=ke(t),i=null!==t&&"object"==typeof t,o=i&&Z(t);if(!i&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=[],s=Se&&n;if(o&&Ee||r)for(var u=0;u<t.length;++u)$(a,l(u));if(!r)for(var c in t)s&&"prototype"===c||!J(t,c)||$(a,l(c));if(Ae)for(var f=Le(t),d=0;Te>d;d++){var p=xe[d];f&&"constructor"===p||!J(t,p)||$(a,p)}return a}});var Ye=i.keys&&function(){return 2===i.keys(arguments).length}(1,2),ze=i.keys&&function(){var e=i.keys(arguments);return 1!==arguments.length||1!==e.length||1!==e[0]}(1),Oe=i.keys;O(i,{keys:function(e){return Oe(ke(e)?F(e):e)}},!Ye||ze);var Ge,Re,We=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Ue=new Date(-0x55d318d56a724),Je=new Date(14496624e5),Be="Mon, 01 Jan -45875 11:59:59 GMT"!==Ue.toUTCString(),Fe=Ue.getTimezoneOffset();-720>Fe?(Ge="Tue Jan 02 -45875"!==Ue.toDateString(),Re=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Je))):(Ge="Mon Jan 01 -45875"!==Ue.toDateString(),Re=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Je)));var He=y.bind(Date.prototype.getFullYear),Ve=y.bind(Date.prototype.getMonth),Xe=y.bind(Date.prototype.getDate),_e=y.bind(Date.prototype.getUTCFullYear),Ke=y.bind(Date.prototype.getUTCMonth),Qe=y.bind(Date.prototype.getUTCDate),qe=y.bind(Date.prototype.getUTCDay),$e=y.bind(Date.prototype.getUTCHours),et=y.bind(Date.prototype.getUTCMinutes),tt=y.bind(Date.prototype.getUTCSeconds),nt=y.bind(Date.prototype.getUTCMilliseconds),rt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ot=function(e,t){return Xe(new Date(t,e,0))};O(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this);return 0>e&&Ve(this)>11?e+1:e},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this),t=Ve(this);return 0>e&&t>11?0:t},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this),t=Ve(this),n=Xe(this);if(0>e&&t>11){if(12===t)return n;var r=ot(0,e+1);return r-n+1}return n},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this);return 0>e&&Ke(this)>11?e+1:e},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this),t=Ke(this);return 0>e&&t>11?0:t},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this),t=Ke(this),n=Qe(this);if(0>e&&t>11){if(12===t)return n;var r=ot(0,e+1);return r-n+1}return n}},We),O(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=qe(this),t=Qe(this),n=Ke(this),r=_e(this),i=$e(this),o=et(this),a=tt(this);return rt[e]+", "+(10>t?"0"+t:t)+" "+it[n]+" "+r+" "+(10>i?"0"+i:i)+":"+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+" GMT"}},We||Be),O(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear();return rt[e]+" "+it[n]+" "+(10>t?"0"+t:t)+" "+r}},We||Ge),(We||Re)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear(),i=this.getHours(),o=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),l=Math.floor(Math.abs(s)/60),u=Math.floor(Math.abs(s)%60);return rt[e]+" "+it[n]+" "+(10>t?"0"+t:t)+" "+r+" "+(10>i?"0"+i:i)+":"+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+" GMT"+(s>0?"-":"+")+(10>l?"0"+l:l)+(10>u?"0"+u:u)},z&&i.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var at=-621987552e5,st="-000001",lt=Date.prototype.toISOString&&-1===new Date(at).toISOString().indexOf(st),ut=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),ct=y.bind(Date.prototype.getTime);O(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(ct(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=_e(this),t=Ke(this);e+=Math.floor(t/12),t=(t%12+12)%12;var n=[t+1,Qe(this),$e(this),et(this),tt(this)];e=(0>e?"-":e>9999?"+":"")+K("00000"+Math.abs(e),e>=0&&9999>=e?-4:-6);for(var r=0;r<n.length;++r)n[r]=K("00"+n[r],-2);return e+"-"+F(n,0,2).join("-")+"T"+F(n,2).join(":")+"."+K("000"+nt(this),-3)+"Z"}},lt||ut);var ft=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(at).toJSON().indexOf(st)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}();ft||(Date.prototype.toJSON=function(t){var n=i(this),r=W.ToPrimitive(n);if("number"==typeof r&&!isFinite(r))return null;var o=n.toISOString;if(!e(o))throw new TypeError("toISOString property is not callable");return o.call(n)});var dt=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),pt=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ht=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(ht||pt||!dt){var gt=Math.pow(2,31)-1,mt=R(new Date(1970,0,1,0,0,0,gt+1).getTime());Date=function(e){var t=function(n,r,i,o,a,s,u){var c,f=arguments.length;if(this instanceof e){var d=s,p=u;if(mt&&f>=7&&u>gt){var h=Math.floor(u/gt)*gt,g=Math.floor(h/1e3);d+=g,p-=1e3*g}c=1===f&&l(n)===n?new e(t.parse(n)):f>=7?new e(n,r,i,o,a,d,p):f>=6?new e(n,r,i,o,a,d):f>=5?new e(n,r,i,o,a):f>=4?new e(n,r,i,o):f>=3?new e(n,r,i):f>=2?new e(n,r):f>=1?new e(n instanceof e?+n:n):new e}else c=e.apply(this,arguments);return G(c)||O(c,{constructor:t},!0),c},n=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365],i=function(e,t){var n=t>1?1:0;return r[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)},o=function(t){var n=0,r=t;if(mt&&r>gt){var i=Math.floor(r/gt)*gt,o=Math.floor(i/1e3);n+=o,r-=1e3*o}return c(new e(1970,0,1,0,0,n,r))};for(var a in e)J(e,a)&&(t[a]=e[a]);O(t,{now:e.now,UTC:e.UTC},!0),t.prototype=e.prototype,O(t.prototype,{constructor:t},!0);var s=function(t){var r=n.exec(t);if(r){var a,s=c(r[1]),l=c(r[2]||1)-1,u=c(r[3]||1)-1,f=c(r[4]||0),d=c(r[5]||0),p=c(r[6]||0),h=Math.floor(1e3*c(r[7]||0)),g=Boolean(r[4]&&!r[8]),m="-"===r[9]?1:-1,v=c(r[10]||0),y=c(r[11]||0),w=d>0||p>0||h>0;return(w?24:25)>f&&60>d&&60>p&&1e3>h&&l>-1&&12>l&&24>v&&60>y&&u>-1&&u<i(s,l+1)-i(s,l)&&(a=60*(24*(i(s,l)+u)+f+v*m),a=1e3*(60*(a+d+y*m)+p)+h,g&&(a=o(a)),a>=-864e13&&864e13>=a)?a:NaN}return e.parse.apply(this,arguments)};return O(t,{parse:s}),t}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var vt=f.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),yt={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,r=t;++n<yt.size;)r+=e*yt.data[n],yt.data[n]=r%yt.base,r=Math.floor(r/yt.base)},divide:function(e){for(var t=yt.size,n=0;--t>=0;)n+=yt.data[t],yt.data[t]=Math.floor(n/e),n=n%e*yt.base},numToString:function(){for(var e=yt.size,t="";--e>=0;)if(""!==t||0===e||0!==yt.data[e]){var n=l(yt.data[e]);""===t?t=n:t+=K("0000000",0,7-n.length)+n}return t},pow:function Ot(e,t,n){return 0===t?n:t%2===1?Ot(e,t-1,n*e):Ot(e*e,t/2,n)},log:function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}},wt=function(e){var t,n,r,i,o,a,s,u;if(t=c(e),t=R(t)?0:Math.floor(t),0>t||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=c(this),R(n))return"NaN";if(-1e21>=n||n>=1e21)return l(n);if(r="",0>n&&(r="-",n=-n),i="0",n>1e-21)if(o=yt.log(n*yt.pow(2,69,1))-69,a=0>o?n*yt.pow(2,-o,1):n/yt.pow(2,o,1),a*=4503599627370496,o=52-o,o>0){for(yt.multiply(0,a),s=t;s>=7;)yt.multiply(1e7,0),s-=7;for(yt.multiply(yt.pow(10,s,1),0),s=o-1;s>=23;)yt.divide(1<<23),s-=23;yt.divide(1<<s),yt.multiply(1,1),yt.divide(2),i=yt.numToString()}else yt.multiply(0,a),yt.multiply(1<<-o,0),i=yt.numToString()+K("0.00000000000000000000",2,2+t);return t>0?(u=i.length,i=t>=u?r+K("0.0000000000000000000",0,t-u+2)+i:r+K(i,0,u-t)+"."+K(i,u-t)):i=r+i,i};O(f,{toFixed:wt},vt);var bt=function(){try{return"1"===1..toPrecision(void 0)}catch(e){return!0}}(),It=f.toPrecision;O(f,{toPrecision:function(e){return"undefined"==typeof e?It.call(this):It.call(this,e)}},bt),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e="undefined"==typeof/()??/.exec("")[1],n=Math.pow(2,32)-1;u.split=function(r,i){var o=String(this);if("undefined"==typeof r&&0===i)return[];if(!t(r))return Q(this,r,i);var a,s,l,u,c=[],f=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),d=0,p=new RegExp(r.source,f+"g");e||(a=new RegExp("^"+p.source+"$(?!\\s)",f));var g="undefined"==typeof i?n:W.ToUint32(i);for(s=p.exec(o);s&&(l=s.index+s[0].length,!(l>d&&($(c,K(o,d,s.index)),!e&&s.length>1&&s[0].replace(a,function(){for(var e=1;e<arguments.length-2;e++)"undefined"==typeof arguments[e]&&(s[e]=void 0)}),s.length>1&&s.index<o.length&&h.apply(c,F(s,1)),u=s[0].length,d=l,c.length>=g)));)p.lastIndex===s.index&&p.lastIndex++,s=p.exec(o);return d===o.length?(u||!p.test(""))&&$(c,""):$(c,K(o,d)),c.length>g?F(c,0,g):c}}():"0".split(void 0,0).length&&(u.split=function(e,t){return"undefined"==typeof e&&0===t?[]:Q(this,e,t)});var Mt=u.replace,Ct=function(){var e=[];return"x".replace(/x(.)?/g,function(t,n){$(e,n)}),1===e.length&&"undefined"==typeof e[0]}();Ct||(u.replace=function(n,r){var i=e(r),o=t(n)&&/\)[*?]/.test(n.source);if(i&&o){var a=function(e){var t=arguments.length,i=n.lastIndex;n.lastIndex=0;var o=n.exec(e)||[];return n.lastIndex=i,$(o,arguments[t-2],arguments[t-1]),r.apply(this,o)};return Mt.call(this,n,a)}return Mt.call(this,n,r)});var At=u.substr,St="".substr&&"b"!=="0b".substr(-1);O(u,{substr:function(e,t){var n=e;return 0>e&&(n=b(this.length+e,0)),At.call(this,n,t)}},St);var Et=" \n\f\r \u2028\u2029\ufeff",jt="",Dt="["+Et+"]",Nt=new RegExp("^"+Dt+Dt+"*"),Lt=new RegExp(Dt+Dt+"*$"),xt=u.trim&&(Et.trim()||!jt.trim());O(u,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return l(this).replace(Nt,"").replace(Lt,"")}},xt);var Tt=y.bind(String.prototype.trim),Zt=u.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);O(u,{lastIndexOf:function(e){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");for(var t=l(this),n=l(e),r=arguments.length>1?c(arguments[1]):NaN,i=R(r)?1/0:W.ToInteger(r),o=I(b(i,0),t.length),a=n.length,s=o+a;s>0;){s=b(0,s-a);var u=q(K(t,s,o+a),n);if(-1!==u)return s+u}return-1}},Zt);var Pt=u.lastIndexOf;if(O(u,{lastIndexOf:function(e){return Pt.apply(this,arguments)}},1!==u.lastIndexOf.length),(8!==parseInt(Et+"08")||22!==parseInt(Et+"0x16"))&&(parseInt=function(e){var t=/^[-+]?0[xX]/;return function(n,r){var i=Tt(String(n)),o=c(r)||(t.test(i)?16:10);return e(i,o)}}(parseInt)),1/parseFloat("-0")!==-(1/0)&&(parseFloat=function(e){return function(t){var n=Tt(String(t)),r=e(n);return 0===r&&"-"===K(n,0,1)?-0:r}}(parseFloat)),"RangeError: test"!==String(new RangeError("test"))){var kt=function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");var e=this.name;"undefined"==typeof e?e="Error":"string"!=typeof e&&(e=l(e));var t=this.message;return"undefined"==typeof t?t="":"string"!=typeof t&&(t=l(t)),e?t?e+": "+t:e:t};Error.prototype.toString=kt}if(z){var Yt=function(e,t){if(ee(e,t)){var n=Object.getOwnPropertyDescriptor(e,t);n.configurable&&(n.enumerable=!1,Object.defineProperty(e,t,n))}};Yt(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),Yt(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var zt=function(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e};RegExp.prototype.toString=zt}})},{}],39:[function(e,t,n){var r=[],i=r.forEach,o=r.slice;t.exports=function(e){return i.call(o.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e}},{}],40:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?d/l:d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},{}],41:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],42:[function(e,t,n){function r(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],43:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],44:[function(t,n,r){(function(t){!function(i){function o(e){throw new RangeError(P[e])}function a(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function s(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Z,".");var i=e.split("."),o=a(i,t).join(".");return r+o}function l(e){for(var t,n,r=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function u(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=z(e>>>10&1023|55296),e=56320|1023&e),t+=z(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:C}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?Y(e/j):e>>1,e+=Y(e/t);e>k*S>>1;r+=C)e=Y(e/k);return Y(r+(k+1)*e/(e+E))}function p(e){var t,n,r,i,a,s,l,f,p,h,g=[],m=e.length,v=0,y=N,w=D;for(n=e.lastIndexOf(L),0>n&&(n=0),r=0;n>r;++r)e.charCodeAt(r)>=128&&o("not-basic"),g.push(e.charCodeAt(r));for(i=n>0?n+1:0;m>i;){for(a=v,s=1,l=C;i>=m&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=C||f>Y((M-v)/s))&&o("overflow"),v+=f*s,p=w>=l?A:l>=w+S?S:l-w,!(p>f);l+=C)h=C-p,s>Y(M/h)&&o("overflow"),s*=h;t=g.length+1,w=d(v-a,t,0==a),Y(v/t)>M-y&&o("overflow"),y+=Y(v/t),v%=t,g.splice(v++,0,y)}return u(g)}function h(e){var t,n,r,i,a,s,u,c,p,h,g,m,v,y,w,b=[];for(e=l(e),m=e.length,t=N,n=0,a=D,s=0;m>s;++s)g=e[s],128>g&&b.push(z(g));for(r=i=b.length,i&&b.push(L);m>r;){for(u=M,s=0;m>s;++s)g=e[s],g>=t&&u>g&&(u=g);for(v=r+1,u-t>Y((M-n)/v)&&o("overflow"),n+=(u-t)*v,t=u,s=0;m>s;++s)if(g=e[s],t>g&&++n>M&&o("overflow"),g==t){for(c=n,p=C;h=a>=p?A:p>=a+S?S:p-a,!(h>c);p+=C)w=c-h,y=C-h,b.push(z(f(h+w%y,0))),c=Y(w/y);b.push(z(f(c,0))),a=d(n,v,r==i),n=0,++r}++n,++t}return b.join("")}function g(e){return s(e,function(e){return x.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return T.test(e)?"xn--"+h(e):e})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof n&&n&&!n.nodeType&&n,w="object"==typeof t&&t;(w.global===w||w.window===w||w.self===w)&&(i=w);var b,I,M=2147483647,C=36,A=1,S=26,E=38,j=700,D=72,N=128,L="-",x=/^xn--/,T=/[^\x20-\x7E]/,Z=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=C-A,Y=Math.floor,z=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:l,encode:u},decode:p,encode:h,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return b});else if(v&&y)if(n.exports==v)y.exports=b;else for(I in b)b.hasOwnProperty(I)&&(v[I]=b[I]);else i.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(t,n,r){!function(t,r){"undefined"!=typeof n&&n.exports?n.exports=r():"function"==typeof e&&e.amd?e(r):this[t]=r()}("$script",function(){function e(e,t){for(var n=0,r=e.length;r>n;++n)if(!t(e[n]))return l;return 1}function t(t,n){e(t,function(e){return!n(e)})}function n(o,a,s){function l(e){return e.call?e():d[e]}function c(){if(!--y){d[v]=1,m&&m();for(var n in h)e(n.split("|"),l)&&!t(h[n],l)&&(h[n]=[])}}o=o[u]?o:[o];var f=a&&a.call,m=f?a:s,v=f?o.join(""):a,y=o.length;return setTimeout(function(){t(o,function e(t,n){return null===t?c():(n||/^https?:\/\//.test(t)||!i||(t=-1===t.indexOf(".js")?i+t+".js":i+t),g[t]?(v&&(p[v]=1),2==g[t]?c():setTimeout(function(){e(t,!0)},0)):(g[t]=1,v&&(p[v]=1),void r(t,c)))})},0),n}function r(e,t){var n,r=a.createElement("script");r.onload=r.onerror=r[f]=function(){r[c]&&!/^c|loade/.test(r[c])||n||(r.onload=r[f]=null,n=1,g[e]=2,t())},r.async=1,r.src=o?e+(-1===e.indexOf("?")?"?":"&")+o:e,s.insertBefore(r,s.lastChild)}var i,o,a=document,s=a.getElementsByTagName("head")[0],l=!1,u="push",c="readyState",f="onreadystatechange",d={},p={},h={},g={};return n.get=r,n.order=function(e,t,r){!function i(o){o=e.shift(),e.length?n(o,i):n(o,t,r)}()},n.path=function(e){i=e},n.urlArgs=function(e){o=e},n.ready=function(r,i,o){r=r[u]?r:[r];var a=[];return!t(r,function(e){d[e]||a[u](e)})&&e(r,function(e){return d[e]})?i():!function(e){h[e]=h[e]||[],h[e][u](i),o&&o(a)}(r.join("|")),n},n.done=function(e){n([null],e)},n})},{}]},{},[32])(32)});
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
|
15 |
+
/*
|
16 |
+
FV Flowplayer additions!
|
17 |
+
*/
|
18 |
+
if( typeof(fv_flowplayer_conf) != "undefined" ) {
|
19 |
+
try {
|
20 |
+
if(typeof(window.localStorage) == 'object' && typeof(window.localStorage.volume) != 'undefined'){
|
21 |
+
delete fv_flowplayer_conf.volume;
|
22 |
+
}
|
23 |
+
} catch(e) {}
|
24 |
+
|
25 |
+
flowplayer.conf = fv_flowplayer_conf;
|
26 |
+
flowplayer.conf.share = false;
|
27 |
+
|
28 |
+
if( flowplayer.conf.mobile_native_fullscreen && ( 'ontouchstart' in window ) && !flowplayer.support.firstframe ) {
|
29 |
+
flowplayer.conf.native_fullscreen = true;
|
30 |
+
}
|
31 |
+
|
32 |
+
if( 'ontouchstart' in window ) {
|
33 |
+
if( /Android/.test(navigator.userAgent) && parseFloat(/Android\ (\d\.\d)/.exec(window.navigator.userAgent)[1], 10) < 4.4 && ! ( /Chrome/.test(navigator.userAgent) && parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1], 10) > 54 ) ) {
|
34 |
+
flowplayer.conf.native_fullscreen = true;
|
35 |
+
}
|
36 |
+
|
37 |
+
function inIframe() {
|
38 |
+
try {
|
39 |
+
return window.self !== window.top;
|
40 |
+
} catch (e) {
|
41 |
+
return true;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
var isiOS = /iPad/i.test(navigator.userAgent) || /iPhone/.test(navigator.userAgent);
|
46 |
+
var iOSVersion = isiOS ? parseFloat(/CPU (?:iPhone |iPod )?OS (\d+)/.exec(navigator.userAgent)[1], 10) : 0;
|
47 |
+
if( isiOS && ( inIframe() || iOSVersion < 7 ) ) {
|
48 |
+
flowplayer.conf.native_fullscreen = true;
|
49 |
+
}
|
50 |
+
}
|
51 |
+
}
|
52 |
+
if( typeof(fv_flowplayer_translations) != "undefined" ) {
|
53 |
+
flowplayer.defaults.errors = fv_flowplayer_translations;
|
54 |
+
}
|
55 |
+
|
56 |
+
if( typeof(fv_flowplayer_admin_input) != "undefined" && fv_flowplayer_admin_input ) {
|
57 |
+
jQuery(document).keyup(function(e) {
|
58 |
+
if (e.keyCode == 27) { fv_wp_flowplayer_admin_show_notice(); } // esc
|
59 |
+
});
|
60 |
+
|
61 |
+
jQuery(document).click( function(event) {
|
62 |
+
if( jQuery(event.target).parents('.fv-wp-flowplayer-notice').length == 0 &&
|
63 |
+
jQuery(event.target).parents('.fv-wp-flowplayer-notice-small').length == 0 ) {
|
64 |
+
if( jQuery('.fv-wp-flowplayer-notice:visible').length ) fv_wp_flowplayer_admin_show_notice();
|
65 |
+
}
|
66 |
+
} );
|
67 |
+
}
|
68 |
+
|
69 |
+
function fv_wp_flowplayer_admin_show_notice( id, link ) {
|
70 |
+
if( id == null && link == null ) {
|
71 |
+
var api = flowplayer(), currentPos;
|
72 |
+
if( typeof api != "undefined" ) {
|
73 |
+
api.disable(false);
|
74 |
+
}
|
75 |
+
jQuery('.fv-wp-flowplayer-notice .fv_wp_fp_notice_content').toggle();
|
76 |
+
jQuery('.fv-wp-flowplayer-notice').toggleClass("fv-wp-flowplayer-notice");
|
77 |
+
} else {
|
78 |
+
jQuery('#fv_wp_fp_notice_'+id).toggle();
|
79 |
+
|
80 |
+
var api = flowplayer(), currentPos;
|
81 |
+
if( typeof(api) != "undefined" && jQuery('#fv_wp_fp_notice_'+id).parent().hasClass("fv-wp-flowplayer-notice") ) {
|
82 |
+
api.disable(false);
|
83 |
+
} else if( typeof(api) != "undefined" ) {
|
84 |
+
api.disable(true);
|
85 |
+
}
|
86 |
+
|
87 |
+
jQuery('#fv_wp_fp_notice_'+id).parent().toggleClass("fv-wp-flowplayer-notice");
|
88 |
+
}
|
89 |
+
|
90 |
+
jQuery('.fv-wp-flowplayer-notice').each( function() {
|
91 |
+
if( jQuery(this).is(':visible') ) {
|
92 |
+
jQuery(this).parents('.flowplayer').addClass('has-video-checker');
|
93 |
+
} else {
|
94 |
+
jQuery(this).parents('.flowplayer').removeClass('has-video-checker');
|
95 |
+
}
|
96 |
+
});
|
97 |
+
}
|
98 |
+
|
99 |
+
function fv_wp_flowplayer_admin_support_mail( hash, button ) {
|
100 |
+
jQuery('.fv_flowplayer_submit_error').remove();
|
101 |
+
|
102 |
+
var comment_text = jQuery('#wpfp_support_'+hash).val();
|
103 |
+
var comment_words = comment_text.split(/\s/);
|
104 |
+
if( comment_words.length == 0 || comment_text.match(/Enter your comment/) ) {
|
105 |
+
jQuery('#wpfp_support_'+hash).before('<p class="fv_flowplayer_submit_error" style="display:none; "><strong>'+fv_flowplayer_translations.what_is_wrong+'</strong></p>');
|
106 |
+
jQuery('.fv_flowplayer_submit_error').fadeIn();
|
107 |
+
return false;
|
108 |
+
}
|
109 |
+
|
110 |
+
if( comment_words.length < 7 ) {
|
111 |
+
jQuery('#wpfp_support_'+hash).before('<p class="fv_flowplayer_submit_error" style="display:none; "><strong>'+fv_flowplayer_translations.full_sentence+'</strong>:</p>');
|
112 |
+
jQuery('.fv_flowplayer_submit_error').fadeIn();
|
113 |
+
return false;
|
114 |
+
}
|
115 |
+
|
116 |
+
jQuery('#wpfp_spin_'+hash).show();
|
117 |
+
jQuery(button).attr("disabled", "disabled");
|
118 |
+
|
119 |
+
jQuery.post(
|
120 |
+
fv_fp_ajaxurl,
|
121 |
+
{
|
122 |
+
action: 'fv_wp_flowplayer_support_mail',
|
123 |
+
comment: comment_text,
|
124 |
+
notice: jQuery('#wpfp_notice_'+hash+' .mail-content-notice').html(),
|
125 |
+
details: jQuery('#wpfp_notice_'+hash+' .mail-content-details').html()
|
126 |
+
},
|
127 |
+
function( response ) {
|
128 |
+
jQuery('#wpfp_spin_'+hash).hide();
|
129 |
+
jQuery(button).removeAttr("disabled");
|
130 |
+
jQuery(button).after(' Message sent');
|
131 |
+
setTimeout( function() { fv_wp_flowplayer_admin_show_notice(hash) }, 1500 );
|
132 |
+
}
|
133 |
+
);
|
134 |
+
}
|
135 |
+
|
136 |
+
function fv_flowplayer_admin_message_parse_group(aInfo) {
|
137 |
+
var sOutput = '';
|
138 |
+
if( typeof(aInfo) != "undefined" && Object.keys(aInfo).length > 0 ) {
|
139 |
+
for( var j in aInfo ) {
|
140 |
+
if( j == parseInt(j) ){
|
141 |
+
sOutput += aInfo[j]+'<br />';
|
142 |
+
} else if( typeof(aInfo[j]) == "function" ) {
|
143 |
+
continue;
|
144 |
+
} else {
|
145 |
+
sOutput += j+': <tt>'+aInfo[j]+'</tt><br />';
|
146 |
+
}
|
147 |
+
}
|
148 |
+
}
|
149 |
+
if( sOutput.length > 0 ){
|
150 |
+
sOutput = '<p>'+sOutput+'</p>';
|
151 |
+
}
|
152 |
+
return sOutput;
|
153 |
+
}
|
154 |
+
|
155 |
+
|
156 |
+
|
157 |
+
if( typeof(fv_flowplayer_admin_test_media_array) != "undefined" ) {
|
158 |
+
var fv_flowplayer_scroll_video_checker = false;
|
159 |
+
var fv_flowplayer_scroll_video_checker_status = [];
|
160 |
+
jQuery(document).ready( function() { fv_flowplayer_scroll_video_checker = true; } );
|
161 |
+
jQuery(document).scroll( function() { fv_flowplayer_scroll_video_checker = true; } );
|
162 |
+
|
163 |
+
setInterval( function() {
|
164 |
+
if( !fv_flowplayer_scroll_video_checker ) return;
|
165 |
+
|
166 |
+
var iMin = jQuery(window).scrollTop();
|
167 |
+
var iMax = iMin + jQuery(window).height();
|
168 |
+
jQuery('.flowplayer').each( function() {
|
169 |
+
var iPlayer = jQuery(this).offset().top;
|
170 |
+
if( iPlayer > iMin && iPlayer < iMax ) {
|
171 |
+
if( typeof(fv_flowplayer_scroll_video_checker_status[jQuery(this).attr('id')]) == "undefined" ) { // todo: store this somewhere else!
|
172 |
+
fv_flowplayer_scroll_video_checker_status[jQuery(this).attr('id')] = true;
|
173 |
+
var sID = jQuery(this).attr('id').replace(/wpfp_/,'');
|
174 |
+
if( typeof(fv_flowplayer_admin_test_media_array[sID]) != "undefined" ) {
|
175 |
+
fv_flowplayer_admin_test_media( sID, fv_flowplayer_admin_test_media_array[sID] );
|
176 |
+
}
|
177 |
+
}
|
178 |
+
}
|
179 |
+
} );
|
180 |
+
fv_flowplayer_scroll_video_checker = false;
|
181 |
+
}, 500 );
|
182 |
+
}
|
183 |
+
|
184 |
+
|
185 |
+
function fv_flowplayer_admin_test_media( hash, media ) {
|
186 |
+
var hVideoChecker = jQuery('#wpfp_notice_'+hash);
|
187 |
+
jQuery('#wpfp_notice_'+hash).parent().append(jQuery('#wpfp_notice_'+hash));
|
188 |
+
jQuery('#wpfp_notice_'+hash).show();
|
189 |
+
|
190 |
+
jQuery.post( 'https://video-checker.foliovision.com/', { action: 'vid_check', media: media, hash: hash, site: flowplayer.conf.video_checker_site }, function( response ) {
|
191 |
+
var obj;
|
192 |
+
try {
|
193 |
+
response = response.replace( /[\s\S]*<FVFLOWPLAYER>/, '' );
|
194 |
+
response = response.replace( /<\/FVFLOWPLAYER>[\s\S]*/, '' );
|
195 |
+
obj = jQuery.parseJSON( response );
|
196 |
+
|
197 |
+
var sCheckerInfo = '';
|
198 |
+
var sCheckerDetails = '';
|
199 |
+
var sResponseClass = 'vid-ok';
|
200 |
+
var sResponseMsg = 'Video OK';
|
201 |
+
|
202 |
+
for( var i in obj ) {
|
203 |
+
if( !obj.hasOwnProperty(i) ) continue;
|
204 |
+
if( i != "global" ) {
|
205 |
+
sCheckerInfo += '<p>Analysis of <a href="'+i+'">'+i+'</a></p>';
|
206 |
+
}
|
207 |
+
sCheckerInfo += fv_flowplayer_admin_message_parse_group(obj[i].info);
|
208 |
+
|
209 |
+
var sWarnings = (typeof(obj[i].warnings) != "undefined" ) ? fv_flowplayer_admin_message_parse_group(obj[i].warnings) : false;
|
210 |
+
if( typeof(obj[i].warnings) != "undefined" && sWarnings ) {
|
211 |
+
if( sResponseClass != 'vid-issues' ) {
|
212 |
+
sResponseMsg = 'Video Warnings';
|
213 |
+
sResponseClass = 'vid-warning';
|
214 |
+
}
|
215 |
+
sCheckerInfo += sWarnings;
|
216 |
+
}
|
217 |
+
|
218 |
+
var sErrors = ( typeof(obj[i].errors) != "undefined" ) ? fv_flowplayer_admin_message_parse_group(obj[i].errors) : false;
|
219 |
+
if( typeof(obj[i].errors) != "undefined" && sErrors ) {
|
220 |
+
sResponseMsg = fv_flowplayer_translations.video_issues;
|
221 |
+
sResponseClass = 'vid-issues';
|
222 |
+
sCheckerInfo += sErrors;
|
223 |
+
}
|
224 |
+
|
225 |
+
jQuery('#wpfp_notice_'+hash).find('.video-checker-result').addClass(sResponseClass).html(sResponseMsg);
|
226 |
+
|
227 |
+
sCheckerDetails += fv_flowplayer_admin_message_parse_group(obj[i].details);
|
228 |
+
|
229 |
+
}
|
230 |
+
jQuery('#wpfp_notice_'+hash).find('.video-checker-result').wrap('<a class="fv_wp_flowplayer_dialog_link"></a>');
|
231 |
+
jQuery('#wpfp_notice_'+hash).find('.fv_wp_flowplayer_dialog_link').click( function() { fv_wp_flowplayer_admin_show_notice( hash, this) } );
|
232 |
+
jQuery('#wpfp_notice_'+hash).find('.mail-content-notice').html('<p>'+sCheckerInfo+'</p>');
|
233 |
+
jQuery('#wpfp_notice_'+hash).find('.mail-content-details .fv-wp-flowplayer-notice-parsed').html(sCheckerDetails)
|
234 |
+
|
235 |
+
} catch(e) {
|
236 |
+
console.log(e);
|
237 |
+
jQuery('#wpfp_notice_'+hash).html('<p>'+fv_flowplayer_translations.error_JSON+'</p>');
|
238 |
+
return;
|
239 |
+
}
|
240 |
+
|
241 |
+
} ).error(function() {
|
242 |
+
if( /MSIE 9/i.test(navigator.userAgent) ){
|
243 |
+
jQuery('#wpfp_notice_'+hash).html('<p>'+fv_flowplayer_translations.no_support_IE9+'</p>');
|
244 |
+
} else {
|
245 |
+
jQuery('#wpfp_notice_'+hash).html('<p>'+fv_flowplayer_translations.check_failed+'</p>');
|
246 |
+
}
|
247 |
+
});
|
248 |
+
}
|
249 |
+
|
250 |
+
|
251 |
+
function fv_flowplayer_amazon_s3( hash, time ) { // v6
|
252 |
+
jQuery('#wpfp_'+hash).bind('error', function (e,api, error) {
|
253 |
+
var fv_fp_date = new Date();
|
254 |
+
if( error.code == 4 && fv_fp_date.getTime() > (fv_fp_utime + parseInt(time)) ) {
|
255 |
+
jQuery(e.target).find('.fp-message').delay(500).queue( function(n) {
|
256 |
+
jQuery(this).html(fv_flowplayer_translations.video_expired); n();
|
257 |
+
} );
|
258 |
+
}
|
259 |
+
} );
|
260 |
+
}
|
261 |
+
|
262 |
+
function fv_flowplayer_browser_chrome_fail( hash, sAttributes, sVideo, bAutobuffer ) {
|
263 |
+
jQuery('#wpfp_'+hash).bind('error', function (e,api, error) {
|
264 |
+
if( /chrom(e|ium)/.test(navigator.userAgent.toLowerCase()) && error != null && ( error.code == 3 || error.code == 4 || error.code == 5 ) ) {
|
265 |
+
api.unload();
|
266 |
+
|
267 |
+
jQuery('#wpfp_'+hash).attr('id','bad_wpfp_'+hash);
|
268 |
+
jQuery('#bad_wpfp_'+hash).after( '<div id="wpfp_'+hash+'" '+sAttributes+' data-engine="flash"></div>' );
|
269 |
+
jQuery('#wpfp_'+hash).flowplayer({ playlist: [ [ {mp4: sVideo} ] ] });
|
270 |
+
// what about scripts?
|
271 |
+
if( bAutobuffer ) {
|
272 |
+
jQuery('#wpfp_'+hash).bind('ready', function(e, api) { api.play(); } );
|
273 |
+
} else {
|
274 |
+
jQuery('#wpfp_'+hash).flowplayer().play(0);
|
275 |
+
}
|
276 |
+
jQuery('#bad_wpfp_'+hash).remove();
|
277 |
+
}
|
278 |
+
});
|
279 |
+
}
|
280 |
+
|
281 |
+
function fv_flowplayer_browser_chrome_mp4( hash ) {
|
282 |
+
var match = window.navigator.appVersion.match(/Chrome\/(\d+)\./);
|
283 |
+
if( match != null ) {
|
284 |
+
var chrome_ver = parseInt(match[1], 10);
|
285 |
+
if(
|
286 |
+
( /chrom(e|ium)/.test(navigator.userAgent.toLowerCase()) && chrome_ver < 28 && navigator.appVersion.indexOf("Win")!=-1 ) ||
|
287 |
+
( /chrom(e|ium)/.test(navigator.userAgent.toLowerCase()) && chrome_ver < 27 && navigator.appVersion.indexOf("Linux")!=-1 && navigator.userAgent.toLowerCase().indexOf("android")==-1 )
|
288 |
+
) {
|
289 |
+
jQuery('#wpfp_'+hash).attr('data-engine','flash');
|
290 |
+
}
|
291 |
+
}
|
292 |
+
}
|
293 |
+
|
294 |
+
function fv_flowplayer_browser_ff_m4v( hash ) {
|
295 |
+
if( jQuery.browser && jQuery.browser.mozilla && navigator.appVersion.indexOf("Win")!=-1 ) {
|
296 |
+
jQuery('#wpfp_'+hash).attr('data-engine','flash');
|
297 |
+
}
|
298 |
+
}
|
299 |
+
|
300 |
+
function fv_flowplayer_browser_ie( hash ) {
|
301 |
+
if( ( jQuery.browser && jQuery.browser.msie && parseInt(jQuery.browser.version, 10) >= 9) /*|| !!navigator.userAgent.match(/Trident.*rv[ :]*11\./)*/ ) {
|
302 |
+
jQuery('#wpfp_'+hash).attr('data-engine','flash');
|
303 |
+
}
|
304 |
+
}
|
305 |
+
|
306 |
+
if( (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) || (navigator.platform.indexOf("iPad") != -1) || (navigator.userAgent.toLowerCase().indexOf("android") != -1) ) {
|
307 |
+
flowplayer(function (api, root) {
|
308 |
+
api.bind("error", function (e,api, error) {
|
309 |
+
if( error.code == 10 ) {
|
310 |
+
jQuery(e.target).find('.fp-message').html(fv_flowplayer_translations.unsupported_format);
|
311 |
+
}
|
312 |
+
});
|
313 |
+
});
|
314 |
+
}
|
315 |
+
|
316 |
+
jQuery(document).ready( function() {
|
317 |
+
if( (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) || (navigator.platform.indexOf("iPad") != -1) ) {
|
318 |
+
jQuery(window).trigger('load');
|
319 |
+
}
|
320 |
+
jQuery('.flowplayer').mouseleave( function() {
|
321 |
+
jQuery(this).find('.fvp-share-bar').removeClass('visible');
|
322 |
+
jQuery(this).find('.embed-code').hide();
|
323 |
+
} );
|
324 |
+
} );
|
325 |
+
|
326 |
+
jQuery(document).on('click', '.flowplayer .embed-code-toggle', function() {
|
327 |
+
var button = jQuery(this);
|
328 |
+
var player = button.parents('.flowplayer');
|
329 |
+
var api = player.data('flowplayer');
|
330 |
+
if( typeof(api.embedCode) == 'function' && player.find('.embed-code textarea').val() == '' ) {
|
331 |
+
player.find('.embed-code textarea').val(api.embedCode());
|
332 |
+
}
|
333 |
+
|
334 |
+
fv_player_clipboard( player.find('.embed-code textarea').val(), function() {
|
335 |
+
fv_player_notice(player,fv_flowplayer_translations.embed_copied,2000);
|
336 |
+
}, function() {
|
337 |
+
button.parents('.fvp-share-bar').find('.embed-code').toggle();
|
338 |
+
button.parents('.fvp-share-bar').toggleClass('visible');
|
339 |
+
});
|
340 |
+
|
341 |
+
return false;
|
342 |
+
} );
|
343 |
+
|
344 |
+
|
345 |
+
function fv_flowplayer_mobile_switch(id) {
|
346 |
+
var regex = new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");
|
347 |
+
var results = regex.exec(location.search);
|
348 |
+
if(
|
349 |
+
(
|
350 |
+
(results != null && results[1] == 'yes') ||
|
351 |
+
(jQuery(window).width() <= 480 || jQuery(window).height() <= 480) // todo: improve for Android with 1.5 pixel ratio
|
352 |
+
)
|
353 |
+
&&
|
354 |
+
(results == null || results[1] != 'no')
|
355 |
+
) {
|
356 |
+
var fv_fp_mobile = false;
|
357 |
+
jQuery('#wpfp_'+id+' video source').each( function() {
|
358 |
+
if( jQuery(this).attr('id') != 'wpfp_'+id+'_mobile' ) {
|
359 |
+
fv_fp_mobile = true
|
360 |
+
jQuery(this).remove();
|
361 |
+
}
|
362 |
+
} );
|
363 |
+
if( fv_fp_mobile ) {
|
364 |
+
jQuery('#wpfp_'+id).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+'</a> '+fv_flowplayer_translations.mobile_browser_detected_3+'</p>');
|
365 |
+
}
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
+
|
370 |
+
var fv_flowplayer_safety_resize_arr = Array();
|
371 |
+
|
372 |
+
function fv_flowplayer_safety_resize() {
|
373 |
+
var fv_flowplayer_safety_resize_init = false;
|
374 |
+
|
375 |
+
jQuery('.flowplayer').each( function() {
|
376 |
+
if( !jQuery(this).is(":visible") || jQuery(this).hasClass('lightboxed') || jQuery(this).hasClass('lightbox-starter') || jQuery(this).hasClass('is-audio') ) return;
|
377 |
+
|
378 |
+
if( jQuery(this).width() < 30 || jQuery(this).height() < 20 ) {
|
379 |
+
fv_flowplayer_safety_resize_init = true
|
380 |
+
var el = jQuery(this);
|
381 |
+
while( jQuery(el).width() < 30 || jQuery(el).width() == jQuery(this).width() ) {
|
382 |
+
el = jQuery(el).parent();
|
383 |
+
}
|
384 |
+
|
385 |
+
jQuery(this).width( jQuery(el).width() );
|
386 |
+
jQuery(this).height( parseInt(jQuery(this).width() * jQuery(this).attr('data-ratio')) );
|
387 |
+
fv_flowplayer_safety_resize_arr[jQuery(this).attr('id')] = el;
|
388 |
+
}
|
389 |
+
} );
|
390 |
+
|
391 |
+
if( fv_flowplayer_safety_resize_init ) {
|
392 |
+
jQuery(window).resize(function() {
|
393 |
+
jQuery('.flowplayer').each( function() {
|
394 |
+
if( jQuery(this).hasClass('lightboxed') || jQuery(this).hasClass('lightbox-starter') ) return;
|
395 |
+
|
396 |
+
if( fv_flowplayer_safety_resize_arr[jQuery(this).attr('id')] ) {
|
397 |
+
jQuery(this).width( fv_flowplayer_safety_resize_arr[jQuery(this).attr('id')].width() );
|
398 |
+
jQuery(this).height( parseInt(jQuery(this).width() * jQuery(this).attr('data-ratio')) );
|
399 |
+
}
|
400 |
+
} );
|
401 |
+
} );
|
402 |
+
}
|
403 |
+
}
|
404 |
+
|
405 |
+
if( typeof(flowplayer.conf.safety_resize) != "undefined" && flowplayer.conf.safety_resize ) {
|
406 |
+
jQuery(document).ready(function() { setTimeout( function() { fv_flowplayer_safety_resize(); }, 10 ); } );
|
407 |
+
}
|
408 |
+
|
409 |
+
|
410 |
+
|
411 |
+
|
412 |
+
// did autoplay?
|
413 |
+
var fv_player_did_autoplay = false;
|
414 |
+
|
415 |
+
|
416 |
+
|
417 |
+
|
418 |
+
function fv_player_videos_parse(args, root) {
|
419 |
+
var videos = JSON.parse(args);
|
420 |
+
|
421 |
+
var regex = new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");
|
422 |
+
var results = regex.exec(location.search);
|
423 |
+
if(
|
424 |
+
(
|
425 |
+
(results != null && results[1] == 'yes') ||
|
426 |
+
(jQuery(window).width() <= 480 || jQuery(window).height() <= 480) // todo: improve for Android with 1.5 pixel ratio
|
427 |
+
)
|
428 |
+
&&
|
429 |
+
(results == null || results[1] != 'no')
|
430 |
+
) {
|
431 |
+
var fv_fp_mobile = false;
|
432 |
+
jQuery(videos.sources).each( function(k,v) {
|
433 |
+
if(v.mobile) {
|
434 |
+
videos.sources[k] = videos.sources[0];
|
435 |
+
videos.sources[0] = v;
|
436 |
+
fv_fp_mobile = true;
|
437 |
+
}
|
438 |
+
if( fv_fp_mobile ) {
|
439 |
+
jQuery(root).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+'
|