From 24d16ccdd6ecc821c24977201bbcbe9f8925d2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Mon, 26 Jan 2026 13:39:12 +0900 Subject: [PATCH] dbmsv4 init...4 --- app/Config/Constants.php | 1 + app/Config/Routes.php | 2 +- app/Controllers/AbstractWebController.php | 2 +- .../Admin/Equipment/ServerController.php | 32 ++- app/DTOs/Equipment/ServerDTO.php | 2 +- app/Entities/Equipment/ServerEntity.php | 6 +- app/Forms/Equipment/ServerForm.php | 10 +- app/Helpers/Equipment/ServerHelper.php | 14 +- app/Helpers/IconHelper.php | 121 +-------- app/Language/ko/Equipment/Server.php | 2 +- app/Models/Equipment/ServerModel.php | 2 +- app/Views/admin/server/console.php | 242 +++++++++++++++++- app/Views/cells/server/detail.php | 24 +- public/js/hls.min.js | 2 + public/js/ovenplayer.js | 2 + 15 files changed, 301 insertions(+), 163 deletions(-) create mode 100644 public/js/hls.min.js create mode 100644 public/js/ovenplayer.js diff --git a/app/Config/Constants.php b/app/Config/Constants.php index c2530f7..b0507b0 100644 --- a/app/Config/Constants.php +++ b/app/Config/Constants.php @@ -216,6 +216,7 @@ define('ICONS', [ 'SALE_UP' => '๐Ÿ“ˆ', 'SALE_DOWN' => '๐Ÿ“‰', 'SERVICE' => '๐Ÿ›Ž๏ธ', + 'CONSOLE' => '๐Ÿ’ป', 'SERVICE_ITEM' => 'SERVICE_ITEM', 'SERVICE_ITEM_LINE' => 'SERVICE_ITEM_LINE', 'SERVICE_ITEM_IP' => 'SERVICE_ITEM_IP', diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 47efb22..e925f12 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -217,7 +217,7 @@ $routes->group('admin', ['namespace' => 'App\Controllers\Admin', 'filter' => 'au $routes->post('batchjob', 'ServerController::batchjob'); $routes->post('batchjob_delete', 'ServerController::batchjob_delete'); $routes->get('download/(:alpha)', 'ServerPartController::download/$1'); - $routes->post('console/(:num)', 'ServerController::console/$1'); + $routes->get('console/(:num)', 'ServerController::console/$1'); }); $routes->group('serverpart', function ($routes) { $routes->get('/', 'ServerPartController::index'); diff --git a/app/Controllers/AbstractWebController.php b/app/Controllers/AbstractWebController.php index c3274cf..4da710a 100644 --- a/app/Controllers/AbstractWebController.php +++ b/app/Controllers/AbstractWebController.php @@ -120,10 +120,10 @@ abstract class AbstractWebController extends Controller $viewDatas['layout'] = array_merge($layoutConfig, $viewDatas['layout']); $view_path = $viewDatas['layout']['path']; - if ($template_path) { $view_path .= '/' . $template_path; } + // dd($view_path); //์ตœ์ข… ViewPath $viewDatas['view_path'] = $view_path; helper([__FUNCTION__]); diff --git a/app/Controllers/Admin/Equipment/ServerController.php b/app/Controllers/Admin/Equipment/ServerController.php index 5caaac8..b49e970 100644 --- a/app/Controllers/Admin/Equipment/ServerController.php +++ b/app/Controllers/Admin/Equipment/ServerController.php @@ -2,11 +2,12 @@ namespace App\Controllers\Admin\Equipment; +use RuntimeException; +use Psr\Log\LoggerInterface; use CodeIgniter\HTTP\RedirectResponse; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; -use Psr\Log\LoggerInterface; -use RuntimeException; +use App\Entities\Equipment\ServerEntity; class ServerController extends EquipmentController { @@ -33,16 +34,25 @@ class ServerController extends EquipmentController return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate') ?? 'server'); } - public function console(int $uid): string + protected function console_result_process(string $action): string { - $entity = $this->service->getEntity($uid); - if (!$entity instanceof ServerEntity) { - throw new RuntimeException(static::class . '->' . __FUNCTION__ . "์—์„œ ์˜ค๋ฅ˜๋ฐœ์ƒ: {$uid} ์„œ๋ฒ„ ์ •๋ณด๋ฅผ ์ฐพ์„์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."); + return $this->action_render_process($action, $this->getViewDatas(), $this->request->getVar('ActionTemplate') ?? 'server'); + } + public function console(int $uid): string|RedirectResponse + { + try { + if (!$uid) { + throw new RuntimeException(static::class . '->' . __FUNCTION__ . "์—์„œ {$this->getTitle()}์— ๋ฒˆํ˜ธ๊ฐ€ ์ •์˜ ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค."); + } + //View์ฒ˜๋ฆฌ + $entity = $this->view_process($uid); + $action = __FUNCTION__; + //FormService์—์„œ ํ•„์š”ํ•œ ๊ธฐ์กด ๋ฐ์ดํ„ฐ๋ฅผ $entity์—์„œ ์ถ”์ถœํ•ด์„œ ๋„˜๊น€ + $this->action_init_process($action, $entity->toArray()); + $this->addViewDatas('entity', $entity); + return $this->console_result_process($action); + } catch (\Throwable $e) { + return $this->action_redirect_process('error', static::class . '->' . __FUNCTION__ . "์—์„œ {$this->getTitle()} ์ƒ์„ธ๋ณด๊ธฐ ์˜ค๋ฅ˜:" . $e->getMessage()); } - $viewDatas = [ - 'entity' => $entity, - 'title' => $entity->getTitle(), - ]; - return view('admin/server/console', $viewDatas); } } diff --git a/app/DTOs/Equipment/ServerDTO.php b/app/DTOs/Equipment/ServerDTO.php index e3ce604..828674b 100644 --- a/app/DTOs/Equipment/ServerDTO.php +++ b/app/DTOs/Equipment/ServerDTO.php @@ -13,7 +13,7 @@ class ServerDTO extends CommonDTO public string $title = ''; public string $type = ''; public string $ip = ''; - public string $ilo_ip = ''; + public string $viewer = ''; public string $os = ''; public int $price = 0; public string $manufactur_at = ''; diff --git a/app/Entities/Equipment/ServerEntity.php b/app/Entities/Equipment/ServerEntity.php index 5ab98c4..1f8c9b0 100644 --- a/app/Entities/Equipment/ServerEntity.php +++ b/app/Entities/Equipment/ServerEntity.php @@ -13,7 +13,7 @@ class ServerEntity extends EquipmentEntity 'title' => '', 'type' => '', 'ip' => '', - 'ilo_ip' => '', + 'viewer' => '', 'os' => '', 'price' => 0, 'manufactur_at' => '', @@ -57,9 +57,9 @@ class ServerEntity extends EquipmentEntity { return $this->attributes['ip'] ?? ''; } - public function getIloIP(): string + public function getViewer(): string { - return $this->attributes['ilo_ip'] ?? ''; + return $this->attributes['viewer'] ?? ''; } public function getOS(): string { diff --git a/app/Forms/Equipment/ServerForm.php b/app/Forms/Equipment/ServerForm.php index 136ec1f..c44620a 100644 --- a/app/Forms/Equipment/ServerForm.php +++ b/app/Forms/Equipment/ServerForm.php @@ -16,7 +16,7 @@ class ServerForm extends EquipmentForm "chassisinfo_uid", "switchinfo_uid", "ip", - "ilo_ip", + "viewer", "title", "os", "price", @@ -29,12 +29,11 @@ class ServerForm extends EquipmentForm "chassisinfo_uid", 'switchinfo_uid', 'ip', - 'ilo_ip', 'os', "status", ]; $indexFilter = $filters; - $batchjobFilters = ['type', 'switchinfo_uid', 'ip', 'ilo_ip', 'os', 'status']; + $batchjobFilters = ['type', 'switchinfo_uid', 'ip', 'viewer', 'os', 'status']; switch ($action) { case 'create': case 'create_form': @@ -53,7 +52,7 @@ class ServerForm extends EquipmentForm "type", "switchinfo_uid", "ip", - "ilo_ip", + "viewer", "title", "os", "part", @@ -90,7 +89,6 @@ class ServerForm extends EquipmentForm $formRules[$field] = "required|trim|string"; break; case "ip": //ipv4 , ipv6 , both(ipv4,ipv6) - case "ilo_ip": //ipv4 , ipv6 , both(ipv4,ipv6) $formRules[$field] = sprintf("permit_empty|trim|valid_ip[both]%s", in_array($action, ["create", "create_form"]) ? "|is_unique[{$this->getAttribute('table')}.{$field}]" : ""); break; case "os": @@ -114,7 +112,6 @@ class ServerForm extends EquipmentForm $entities = []; switch ($field) { case 'ip': - case 'ilo_ip': if (in_array($action, ['create_form', 'modify_form'])) { if (array_key_exists($field, $formDatas)) { $where = sprintf("status = '%s' OR %s='%s'", STATUS['AVAILABLE'], $field, $formDatas[$field]); @@ -171,7 +168,6 @@ class ServerForm extends EquipmentForm // dd($options); break; case 'ip': //key=value์ด ๊ฐ™์Œ์ฃผ์˜ - case 'ilo_ip': //key=value์ด ๊ฐ™์Œ์ฃผ์˜ foreach ($this->getFormOption_process(service('part_ipservice'), $action, 'ip', $formDatas) as $tempEntity) { $tempOptions[$tempEntity->getTitle()] = $tempEntity->getTitle(); // $options['attributes'][$tempEntity->getPK()] = ['data-role' => implode(DEFAULTS['DELIMITER_ROLE'], $tempEntity->getRole())]; diff --git a/app/Helpers/Equipment/ServerHelper.php b/app/Helpers/Equipment/ServerHelper.php index 55a6056..e90769c 100644 --- a/app/Helpers/Equipment/ServerHelper.php +++ b/app/Helpers/Equipment/ServerHelper.php @@ -77,7 +77,6 @@ class ServerHelper extends EquipmentHelper switch ($field) { case 'switchinfo_uid': case 'ip': - case 'ilo_ip': $extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field'; $filter = parent::getListFilter($field, $value, $viewDatas, $extras); break; @@ -120,6 +119,19 @@ class ServerHelper extends EquipmentHelper ] ); break; + case 'console': + $action = $label ? $label : form_label( + $label ? $label : ICONS['CONSOLE'], + $action, + [ + "data-src" => "/admin/equipment/server/console/{$viewDatas['entity']->getPK()}", + "data-bs-toggle" => "modal", + "data-bs-target" => "#modal_action_form", + "class" => "btn btn-sm btn-primary form-label-sm", + ...$extras + ] + ); + break; default: $action = parent::getListButton($action, $label, $viewDatas, $extras); break; diff --git a/app/Helpers/IconHelper.php b/app/Helpers/IconHelper.php index 57f802d..37be25c 100644 --- a/app/Helpers/IconHelper.php +++ b/app/Helpers/IconHelper.php @@ -51,128 +51,11 @@ class IconHelper */ private static function getIcons(): array { - return [ - 'ADD' => 'โž•', - 'LOGO' => '๐Ÿ–ผ๏ธ', - 'EXCEL' => '๐Ÿ“Š', - 'PDF' => '๐Ÿ“„', - 'GOOGLE' => '๐ŸŒ', - 'MEMBER' => '๐Ÿ‘ค', - 'LOGIN' => '๐Ÿ”‘', - 'LOGOUT' => '๐Ÿšช', - 'HOME' => '๐Ÿ ', - 'MENU' => 'โ˜ฐ', - 'NEW' => '๐Ÿ†•', - 'REPLY' => 'โ†ฉ๏ธ', - 'DATABASE' => '๐Ÿ—„๏ธ', - 'DISLIKE' => '๐Ÿ‘Ž', - 'LIKE' => '๐Ÿ‘', - 'DOWNLOAD' => 'โฌ‡๏ธ', - 'UPLOAD' => 'โฌ†๏ธ', - 'COPY' => '๐Ÿ“‹', - 'PASTE' => '๐Ÿ“Œ', - 'EDIT' => 'โœ๏ธ', - 'VIEW' => '๐Ÿ‘๏ธ', - 'VIEW_OFF' => '๐Ÿ™ˆ', - 'PRINT' => '๐Ÿ–จ๏ธ', - 'SAVE' => 'โœ”๏ธ', - 'CANCEL' => 'โŒ', - 'CLOSE' => 'โœ–๏ธ', - 'CLIENT' => '๐Ÿ‘ฅ', - 'CHART' => '๐Ÿ“ˆ', - 'CHECK' => 'โœ”๏ธ', - 'CHECK_OFF' => 'โฌœ', - 'CHECK_ON' => 'โ˜‘๏ธ', - 'CHECK_ALL' => '๐Ÿ“‘', - 'CHECK_NONE' => '๐Ÿšซ', - 'CHECK_SOME' => 'โž–', - 'COUPON' => '๐ŸŽŸ๏ธ', - 'HISTORY' => '๐Ÿ•˜', - 'MODIFY' => '๐Ÿ”ง', - 'MODIFY_ALL' => '๐Ÿ› ๏ธ', - 'BATCHJOB' => 'โš™๏ธ', - 'DELETE' => '๐Ÿ—‘๏ธ', - 'REBOOT' => '๐Ÿ”„', - 'RELOAD' => '๐Ÿ”', - 'SETUP' => 'โš™๏ธ', - 'FLAG' => '๐Ÿšฉ', - 'SEARCH' => '๐Ÿ”', - 'PLAY' => 'โ–ถ๏ธ', - 'CART' => '๐Ÿ›’', - 'CARD' => '๐Ÿ’ณ', - 'DEPOSIT' => '๐Ÿ’ฐ', - 'DESKTOP' => '๐Ÿ–ฅ๏ธ', - 'DEVICE' => '๐Ÿ“Ÿ', - 'UP' => 'โฌ†๏ธ', - 'DOWN' => 'โฌ‡๏ธ', - 'LEFT' => 'โฌ…๏ธ', - 'RIGHT' => 'โžก๏ธ', - 'IMAGE_FILE' => '๐Ÿ–ผ๏ธ', - 'CLOUD' => 'โ˜๏ธ', - 'SIGNPOST' => '๐Ÿ“Œ', - 'LOCK' => '๐Ÿ”’', - 'UNLOCK' => '๐Ÿ”“', - 'BOX' => '๐Ÿ“ฆ', - 'BOXS' => '๐Ÿ“ฆ๐Ÿ“ฆ', - 'ONETIME' => 'โšก', - 'MONTH' => '๐Ÿ“…', - 'EMAIL' => 'โœ‰๏ธ', - 'MAIL' => '๐Ÿ“ง', - 'PHONE' => '๐Ÿ“ž', - 'POINT' => 'โญ', - 'ALRAM' => '๐Ÿ””', - 'PAYMENT' => '๐Ÿ’ธ', - 'LINK' => '๐Ÿ”—', - 'SALE_UP' => '๐Ÿ“ˆ', - 'SALE_DOWN' => '๐Ÿ“‰', - 'SERVICE' => '๐Ÿ›Ž๏ธ', - 'SERVICE_ITEM' => '', - 'SERVICE_ITEM_LINE' => '', - 'SERVICE_ITEM_IP' => '', - 'SERVICE_ITEM_SERVER' => '', - 'SERVICE_ITEM_CPU' => '', - 'SERVICE_ITEM_RAM' => '', - 'SERVICE_ITEM_STORAGE' => '', - 'SERVICE_ITEM_SOFTWARE' => '', - 'SERVICE_ITEM_DEFENCE' => '', - 'SERVICE_ITEM_DOMAIN' => '', - 'SERVICE_ITEM_OTHER' => '', - 'SERVER_ITEM_CPU' => '', - 'SERVER_ITEM_RAM' => '', - 'SERVER_ITEM_DISK' => '', - 'SERVER_ITEM_SWITCH' => '', - 'SERVER_ITEM_OS' => '', - 'SERVER_ITEM_DB' => '', - 'SERVER_ITEM_SOFTWARE' => '', - 'SERVER_ITEM_IP' => '', - 'SERVER_ITEM_CS' => '', - 'SERVER_ITEM_ETC' => '', - ]; + return ICONS; } private static function getMessengerIcons(): array { - return [ - 'WHATSAPP' => '', - 'VIBER' => '', - 'LINE' => '', - 'KAKAO' => '', - 'DISCORD' => '', - 'TELEGRAM' => '', - 'SKYPE' => '', - 'YOUTUBE' => '', - 'FACEBOOK' => '', - 'TWITTER' => '', - 'INSTAGRAM' => '', - 'LINKEDIN' => '', - 'GITHUB' => '', - 'GITLAB' => '', - 'BITBUCKET' => '', - 'REDDIT' => '', - 'TIKTOK' => '', - 'PINTEREST' => '', - 'TUMBLR' => '', - 'SNAPCHAT' => '', - ]; + return MESSENGER_ICONS; } } diff --git a/app/Language/ko/Equipment/Server.php b/app/Language/ko/Equipment/Server.php index e60e98c..d58c79a 100644 --- a/app/Language/ko/Equipment/Server.php +++ b/app/Language/ko/Equipment/Server.php @@ -9,7 +9,7 @@ return [ 'chassisinfo_uid' => "์ƒท์‹œ๋ช…", 'switchinfo_uid' => "์Šค์œ„์น˜", 'ip' => "IP", - 'ilo_ip' => "ILO IP", + 'viewer' => "Viewer", 'os' => "OS", 'part' => "๋ถ€ํ’ˆ", 'title' => "๋ชจ๋ธ๋ช…", diff --git a/app/Models/Equipment/ServerModel.php b/app/Models/Equipment/ServerModel.php index 8ce85f1..c5fd8e1 100644 --- a/app/Models/Equipment/ServerModel.php +++ b/app/Models/Equipment/ServerModel.php @@ -23,7 +23,7 @@ class ServerModel extends EquipmentModel "chassisinfo_uid", "switchinfo_uid", "ip", - "ilo_ip", + "viewer", "os", "title", "price", diff --git a/app/Views/admin/server/console.php b/app/Views/admin/server/console.php index 6c18fd1..53f7915 100644 --- a/app/Views/admin/server/console.php +++ b/app/Views/admin/server/console.php @@ -1,13 +1,231 @@ -extend($viewDatas['layout']['layout']) ?> -section('content') ?> -alertTrait(session('message')) : ""; ?> +getViewer() ?? ''; +$viewerUrl = trim((string) $viewerUrl); + +// ๊ฐœ๋ฐœ ์ค‘ ๋””๋ฒ„๊ทธ ์ถœ๋ ฅ(์›ํ•˜๋ฉด false๋กœ) +$debug = true; + +$isHls = $viewerUrl && preg_match('#\.m3u8(\?|$)#i', $viewerUrl); + +// ์ •์  JS ๊ฒฝ๋กœ (๋„ค ํ”„๋กœ์ ํŠธ์— ๋งž๊ฒŒ ์ˆ˜์ •) +$ovenJs = '/js/ovenplayer.js'; +$hlsJs = '/js/hls.min.js'; +?> + + +
+ viewerUrl: + +
+ + + +
-
include("{$viewDatas['layout']['template']}/form_content_top"); ?>
- - Open iLO HTML5 Console - - -
-
include("{$viewDatas['layout']['template']}/form_content_bottom"); ?>
-
-endSection() ?> \ No newline at end of file +
+
+ + + ์ƒˆ ์ฐฝ์œผ๋กœ ์—ด๊ธฐ + + + (iframe์ด ์ฐจ๋‹จ๋˜๋Š” ์žฅ๋น„/์ฝ˜์†”์€ ์ƒˆ ์ฐฝ์œผ๋กœ ์—ด์–ด์ฃผ์„ธ์š”) + + +
+ viewerUrl์ด ๋น„์–ด์žˆ์Šต๋‹ˆ๋‹ค. (ServerEntity->viewer ํ™•์ธ) +
+ +
+
+ + + + + +
+
+ +
+ + + + + +
+ +
+ +
+ โ€ป iLO/์ผ๋ถ€ ์ฝ˜์†”์€ ๋ณด์•ˆ ํ—ค๋”๋กœ iframe ํ‘œ์‹œ๊ฐ€ ๋ง‰ํž ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ ๊ฒฝ์šฐ ์œ„์˜ โ€œ์ƒˆ ์ฐฝ์œผ๋กœ ์—ด๊ธฐโ€๋ฅผ ์‚ฌ์šฉํ•˜์„ธ์š”. +
+ + + + \ No newline at end of file diff --git a/app/Views/cells/server/detail.php b/app/Views/cells/server/detail.php index ad12420..c0254ac 100644 --- a/app/Views/cells/server/detail.php +++ b/app/Views/cells/server/detail.php @@ -10,19 +10,33 @@ getListButton('CPU', 'CPU', ['serverinfo_uid' => $entity->getPK()]) ?> / getListButton('RAM', 'RAM', ['serverinfo_uid' => $entity->getPK()]) ?> - / getListButton('DISK', 'DISK', ['serverinfo_uid' => $entity->getPK()]) ?> + / + getListButton('DISK', 'DISK', ['serverinfo_uid' => $entity->getPK()]) ?> + + + getListButton('IP', '์ถ”๊ฐ€IP', ['serverinfo_uid' => $entity->getPK()]) ?> + + + getListButton('CS', 'CS', ['serverinfo_uid' => $entity->getPK()]) ?> + + + getListButton('SOFTWARE', 'SOFTWARE', ['serverinfo_uid' => $entity->getPK()]) ?> - getListButton('IP', '์ถ”๊ฐ€IP', ['serverinfo_uid' => $entity->getPK()]) ?> - getListButton('CS', 'CS', ['serverinfo_uid' => $entity->getPK()]) ?> - getListButton('SOFTWARE', 'SOFTWARE', ['serverinfo_uid' => $entity->getPK()]) ?> -
getFieldView('switchinfo_uid', $entity->getSwitchInfoUid(), $serverCellDatas) ?>
+
+ getFieldView('switchinfo_uid', $entity->getSwitchInfoUid(), $serverCellDatas) ?> +
getTitle() ?>
getIP() ?>
getOS() ?>
๊ธˆ์•ก : getPrice()) ?>์›
+ getViewer()): ?> +
+ getListButton('console', "", $serverCellDatas) ?> +
+ $entity->getPK(), diff --git a/public/js/hls.min.js b/public/js/hls.min.js new file mode 100644 index 0000000..ec01e50 --- /dev/null +++ b/public/js/hls.min.js @@ -0,0 +1,2 @@ +!function e(t){var r,i;r=this,i=function(){"use strict";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m={exports:{}};!function(e,t){var r,i,n,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var n=s.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=s.normalizePath(n.path),s.buildURLFromParts(n)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return r.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var h=o.path,d=h.substring(0,h.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(d)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=r.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s}(m);var p=m.exports,y=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},E=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=T},T=Number.MAX_SAFE_INTEGER||9007199254740991,S=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e}({}),L=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),A=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown",e}({}),R=function(){},k={trace:R,debug:R,log:R,warn:R,info:R,error:R},b=k;function D(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i"):R}(t)}))}function I(e,t){if("object"==typeof console&&!0===e||"object"==typeof e){D(e,"debug","log","info","warn","error");try{b.log('Debug logs enabled for "'+t+'" in hls.js version 1.5.20')}catch(e){b=k}}else b=k}var w=b,C=/^(\d+)x(\d+)$/,_=/(.+?)=(".*?"|.*?)(?:,|$)/g,x=function(){function e(t){"string"==typeof t&&(t=e.parseAttrList(t)),o(this,t)}var t=e.prototype;return t.decimalInteger=function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},t.hexadecimalInteger=function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var r=new Uint8Array(t.length/2),i=0;iNumber.MAX_SAFE_INTEGER?1/0:t},t.decimalFloatingPoint=function(e){return parseFloat(this[e])},t.optionalFloat=function(e,t){var r=this[e];return r?parseFloat(r):t},t.enumeratedString=function(e){return this[e]},t.bool=function(e){return"YES"===this[e]},t.decimalResolution=function(e){var t=C.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},e.parseAttrList=function(e){var t,r={};for(_.lastIndex=0;null!==(t=_.exec(e));){var i=t[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[t[1].trim()]=i}return r},s(e,[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(e){return"X-"===e.substring(0,2)}))}}]),e}();function P(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e}var F=function(){function e(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){var r=t.attr;for(var i in r)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==r[i]){w.warn('DATERANGE tag attribute: "'+i+'" does not match for tags with ID: "'+e.ID+'"'),this._badValueForSameId=i;break}e=o(new x({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){var n=new Date(this.attr["END-DATE"]);y(n.getTime())&&(this._endDate=n)}}return s(e,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var e=this.duration;return null!==e?new Date(this._startDate.getTime()+1e3*e):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var e=this.attr.decimalFloatingPoint("DURATION");if(y(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&y(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),e}(),M=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},O="audio",N="video",U="audiovideo",B=function(){function e(e){var t;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=((t={})[O]=null,t[N]=null,t[U]=null,t),this.baseurl=e}return e.prototype.setByteRange=function(e,t){var r,i=e.split("@",2);r=1===i.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[r,parseInt(i[0])+r]},s(e,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=p.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}]),e}(),G=function(e){function t(t,r){var i;return(i=e.call(this,r)||this)._decryptdata=null,i.rawProgramDateTime=null,i.programDateTime=null,i.tagList=[],i.duration=0,i.sn=0,i.levelkeys=void 0,i.type=void 0,i.loader=null,i.keyLoader=null,i.level=-1,i.cc=0,i.startPTS=void 0,i.endPTS=void 0,i.startDTS=void 0,i.endDTS=void 0,i.start=0,i.deltaPTS=void 0,i.maxStartPTS=void 0,i.minEndPTS=void 0,i.stats=new M,i.data=void 0,i.bitrateTest=!1,i.title=null,i.initSegment=null,i.endList=void 0,i.gap=void 0,i.urlId=0,i.type=t,i}l(t,e);var r=t.prototype;return r.setKeyFormat=function(e){if(this.levelkeys){var t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}},r.abortRequests=function(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()},r.setElementaryStreamInfo=function(e,t,r,i,n,a){void 0===a&&(a=!1);var s=this.elementaryStreams,o=s[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,r),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,n)):s[e]={startPTS:t,endPTS:r,startDTS:i,endDTS:n,partial:a}},r.clearElementaryStreamInfo=function(){var e=this.elementaryStreams;e[O]=null,e[N]=null,e[U]=null},s(t,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{var t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!y(this.programDateTime))return null;var e=y(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){var t=Object.keys(this.levelkeys),r=t.length;if(r>1||1===r&&this.levelkeys[t[0]].encrypted)return!0}return!1}}]),t}(B),K=function(e){function t(t,r,i,n,a){var s;(s=e.call(this,i)||this).fragOffset=0,s.duration=0,s.gap=!1,s.independent=!1,s.relurl=void 0,s.fragment=void 0,s.index=void 0,s.stats=new M,s.duration=t.decimalFloatingPoint("DURATION"),s.gap=t.bool("GAP"),s.independent=t.bool("INDEPENDENT"),s.relurl=t.enumeratedString("URI"),s.fragment=r,s.index=n;var o=t.enumeratedString("BYTERANGE");return o&&s.setByteRange(o,a),a&&(s.fragOffset=a.fragOffset+a.duration),s}return l(t,e),s(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}]),t}(B),H=function(){function e(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}return e.prototype.reloaded=function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&r>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},s(e,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&y(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}();function V(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}function Y(e){var t,r,i=e.split(":"),n=null;if("data"===i[0]&&2===i.length){var a=i[1].split(";"),s=a[a.length-1].split(",");if(2===s.length){var o="base64"===s[0],l=s[1];o?(a.splice(-1,1),n=V(l)):(t=W(l).subarray(0,16),(r=new Uint8Array(16)).set(t,16-t.length),n=r)}}return n}function W(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(function(e){return e.charCodeAt(0)}))}var j="undefined"!=typeof self?self:void 0,q={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},X="org.w3.clearkey",z="com.apple.streamingkeydelivery",Q="com.microsoft.playready",J="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function $(e){switch(e){case z:return q.FAIRPLAY;case Q:return q.PLAYREADY;case J:return q.WIDEVINE;case X:return q.CLEARKEY}}var Z="1077efecc0b24d02ace33c1e52e2fb4b",ee="e2719d58a985b3c9781ab030af78d30e",te="9a04f07998404286ab92e65be0885f95",re="edef8ba979d64acea3c827dcd51d21ed";function ie(e){return e===re?q.WIDEVINE:e===te?q.PLAYREADY:e===Z||e===ee?q.CLEARKEY:void 0}function ne(e){switch(e){case q.FAIRPLAY:return z;case q.PLAYREADY:return Q;case q.WIDEVINE:return J;case q.CLEARKEY:return X}}function ae(e){var t=e.drmSystems,r=e.widevineLicenseUrl,i=t?[q.FAIRPLAY,q.WIDEVINE,q.PLAYREADY,q.CLEARKEY].filter((function(e){return!!t[e]})):[];return!i[q.WIDEVINE]&&r&&i.push(q.WIDEVINE),i}var se,oe=null!=j&&null!=(se=j.navigator)&&se.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function le(e){var t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),r=String.fromCharCode.apply(null,Array.from(t)),i=r.substring(r.indexOf("<"),r.length),n=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(n){var a=n.childNodes[0]?n.childNodes[0].nodeValue:n.getAttribute("VALUE");if(a){var s=V(a).subarray(0,16);return function(e){var t=function(e,t,r){var i=e[t];e[t]=e[r],e[r]=i};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(s),s}}return null}function ue(e,t,r){return Uint8Array.prototype.slice?e.slice(t,r):new Uint8Array(Array.prototype.slice.call(e,t,r))}var he,de=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},ce=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},fe=function(e,t){for(var r=t,i=0;de(e,t);)i+=10,i+=ge(e,t+6),ce(e,t+10)&&(i+=10),t+=i;if(i>0)return e.subarray(r,r+i)},ge=function(e,t){var r=0;return r=(127&e[t])<<21,r|=(127&e[t+1])<<14,r|=(127&e[t+2])<<7,r|=127&e[t+3]},ve=function(e,t){return de(e,t)&&ge(e,t+6)+10<=e.length-t},me=function(e){for(var t=Ee(e),r=0;r>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:s=e[h++],u+=String.fromCharCode((31&a)<<6|63&s);break;case 14:s=e[h++],o=e[h++],u+=String.fromCharCode((15&a)<<12|(63&s)<<6|(63&o)<<0)}}return u};function be(){if(!navigator.userAgent.includes("PlayStation 4"))return he||void 0===self.TextDecoder||(he=new self.TextDecoder("utf-8")),he}var De={hexDump:function(e){for(var t="",r=0;r>24,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function Ne(e,t){var r=[];if(!t.length)return r;for(var i=e.byteLength,n=0;n1?n+a:i;if(_e(e.subarray(n+4,n+8))===t[0])if(1===t.length)r.push(e.subarray(n+8,s));else{var o=Ne(e.subarray(n+8,s),t.slice(1));o.length&&we.apply(r,o)}n=s}return r}function Ue(e){var t=[],r=e[0],i=8,n=Pe(e,i);i+=4;var a=0,s=0;0===r?(a=Pe(e,i),s=Pe(e,i+4),i+=8):(a=Fe(e,i),s=Fe(e,i+8),i+=16),i+=2;var o=e.length+s,l=xe(e,i);i+=2;for(var u=0;u>>31)return w.warn("SIDX has hierarchical references (not supported)"),null;var f=Pe(e,h);h+=4,t.push({referenceSize:c,subsegmentDuration:f,info:{duration:f/n,start:o,end:o+c-1}}),o+=c,i=h+=4}return{earliestPresentationTime:a,timescale:n,version:r,referencesCount:l,references:t}}function Be(e){for(var t=[],r=Ne(e,["moov","trak"]),n=0;n12){var h=4;if(3!==u[h++])break;h=Ke(u,h),h+=2;var d=u[h++];if(128&d&&(h+=2),64&d&&(h+=u[h++]),4!==u[h++])break;h=Ke(u,h);var c=u[h++];if(64!==c)break;if(n+="."+He(c),h+=12,5!==u[h++])break;h=Ke(u,h);var f=u[h++],g=(248&f)>>3;31===g&&(g+=1+((7&f)<<3)+((224&u[h])>>5)),n+="."+g}break;case"hvc1":case"hev1":var v=Ne(r,["hvcC"])[0],m=v[1],p=["","A","B","C"][m>>6],y=31&m,E=Pe(v,2),T=(32&m)>>5?"H":"L",S=v[12],L=v.subarray(6,12);n+="."+p+y,n+="."+E.toString(16).toUpperCase(),n+="."+T+S;for(var A="",R=L.length;R--;){var k=L[R];(k||A)&&(A="."+k.toString(16).toUpperCase()+A)}n+=A;break;case"dvh1":case"dvhe":var b=Ne(r,["dvcC"])[0],D=b[2]>>1&127,I=b[2]<<5&32|b[3]>>3&31;n+="."+Ve(D)+"."+Ve(I);break;case"vp09":var w=Ne(r,["vpcC"])[0],C=w[4],_=w[5],x=w[6]>>4&15;n+="."+Ve(C)+"."+Ve(_)+"."+Ve(x);break;case"av01":var P=Ne(r,["av1C"])[0],F=P[1]>>>5,M=31&P[1],O=P[2]>>>7?"H":"M",N=(64&P[2])>>6,U=(32&P[2])>>5,B=2===F&&N?U?12:10:N?10:8,G=(16&P[2])>>4,K=(8&P[2])>>3,H=(4&P[2])>>2,V=3&P[2];n+="."+F+"."+Ve(M)+O+"."+Ve(B)+"."+G+"."+K+H+V+"."+Ve(1)+"."+Ve(1)+"."+Ve(1)+".0"}return{codec:n,encrypted:a}}function Ke(e,t){for(var r=t+5;128&e[t++]&&t>1&63;return 39===r||40===r}return 6==(31&t)}function ze(e,t,r,i){var n=Qe(e),a=0;a+=t;for(var s=0,o=0,l=0;a=n.length)break;s+=l=n[a++]}while(255===l);o=0;do{if(a>=n.length)break;o+=l=n[a++]}while(255===l);var u=n.length-a,h=a;if(ou){w.error("Malformed SEI payload. "+o+" is too small, only "+u+" bytes left to parse.");break}if(4===s){if(181===n[h++]){var d=xe(n,h);if(h+=2,49===d){var c=Pe(n,h);if(h+=4,1195456820===c){var f=n[h++];if(3===f){var g=n[h++],v=64&g,m=v?2+3*(31&g):0,p=new Uint8Array(m);if(v){p[0]=g;for(var y=1;y16){for(var E=[],T=0;T<16;T++){var S=n[h++].toString(16);E.push(1==S.length?"0"+S:S),3!==T&&5!==T&&7!==T&&9!==T||E.push("-")}for(var L=o-16,A=new Uint8Array(L),R=0;R0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;var l=new Uint8Array(4);return r&&r.byteLength>0&&new DataView(l.buffer).setUint32(0,r.byteLength,!1),function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,o.set(e,4),s=0,a=8;s>>24;if(0!==n&&1!==n)return{offset:r,size:t};var a=e.buffer,s=De.hexDump(new Uint8Array(a,r+12,16)),o=e.getUint32(28),l=null,u=null;if(0===n){if(t-32>8*(15-r)&255;return t}(t);return new e(this.method,this.uri,"identity",this.keyFormatVersions,r)}var i=Y(this.uri);if(i)switch(this.keyFormat){case J:this.pssh=i,i.length>=22&&(this.keyId=i.subarray(i.length-22,i.length-6));break;case Q:var n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Je(n,null,i),this.keyId=le(i);break;default:var a=i.subarray(0,16);if(16!==a.length){var s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a}if(!this.keyId||16!==this.keyId.byteLength){var o=Ze[this.uri];if(!o){var l=Object.keys(Ze).length%Number.MAX_SAFE_INTEGER;o=new Uint8Array(16),new DataView(o.buffer,12,4).setUint32(0,l),Ze[this.uri]=o}this.keyId=o}return this},e}(),tt=/\{\$([a-zA-Z0-9-_]+)\}/g;function rt(e){return tt.test(e)}function it(e,t,r){if(null!==e.variableList||e.hasVariableRefs)for(var i=r.length;i--;){var n=r[i],a=t[n];a&&(t[n]=nt(e,a))}}function nt(e,t){if(null!==e.variableList||e.hasVariableRefs){var r=e.variableList;return t.replace(tt,(function(t){var i=t.substring(2,t.length-1),n=null==r?void 0:r[i];return void 0===n?(e.playlistParsingError||(e.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'+i+'"')),t):n}))}return t}function at(e,t,r){var i,n,a=e.variableList;if(a||(e.variableList=a={}),"QUERYPARAM"in t){i=t.QUERYPARAM;try{var s=new self.URL(r).searchParams;if(!s.has(i))throw new Error('"'+i+'" does not match any query parameter in URI: "'+r+'"');n=s.get(i)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+t.message))}}else i=t.NAME,n=t.VALUE;i in a?e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'+i+'"')):a[i]=n||""}function st(e,t,r){var i=t.IMPORT;if(r&&i in r){var n=e.variableList;n||(e.variableList=n={}),n[i]=r[i]}else e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'+i+'"'))}function ot(e){if(void 0===e&&(e=!0),"undefined"!=typeof self)return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}var lt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function ut(e,t,r){return void 0===r&&(r=!0),!e.split(",").some((function(e){return!ht(e,t,r)}))}function ht(e,t,r){var i;void 0===r&&(r=!0);var n=ot(r);return null!=(i=null==n?void 0:n.isTypeSupported(dt(e,t)))&&i}function dt(e,t){return t+'/mp4;codecs="'+e+'"'}function ct(e){if(e){var t=e.substring(0,4);return lt.video[t]}return 2}function ft(e){return e.split(",").reduce((function(e,t){var r=lt.video[t];return r?(2*r+e)/(e?3:2):(lt.audio[t]+e)/(e?2:1)}),0)}var gt={},vt=/flac|opus/i;function mt(e,t){return void 0===t&&(t=!0),e.replace(vt,(function(e){return function(e,t){if(void 0===t&&(t=!0),gt[e])return gt[e];for(var r={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[e],i=0;i0&&a.length0&&X.bool("CAN-SKIP-DATERANGES"),h.partHoldBack=X.optionalFloat("PART-HOLD-BACK",0),h.holdBack=X.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var z=new x(I);h.partTarget=z.decimalFloatingPoint("PART-TARGET");break;case"PART":var Q=h.partList;Q||(Q=h.partList=[]);var J=g>0?Q[Q.length-1]:void 0,$=g++,Z=new x(I);it(h,Z,["BYTERANGE","URI"]);var ee=new K(Z,E,t,$,J);Q.push(ee),E.duration+=ee.duration;break;case"PRELOAD-HINT":var te=new x(I);it(h,te,["URI"]),h.preloadHint=te;break;case"RENDITION-REPORT":var re=new x(I);it(h,re,["URI"]),h.renditionReports=h.renditionReports||[],h.renditionReports.push(re);break;default:w.warn("line parsed but not handled: "+s)}}}p&&!p.relurl?(d.pop(),v-=p.duration,h.partList&&(h.fragmentHint=p)):h.partList&&(It(E,p),E.cc=m,h.fragmentHint=E,u&&Ct(E,u,h));var ie=d.length,ne=d[0],ae=d[ie-1];if((v+=h.skippedSegments*h.targetduration)>0&&ie&&ae){h.averagetargetduration=v/ie;var se=ae.sn;h.endSN="initSegment"!==se?se:0,h.live||(ae.endList=!0),ne&&(h.startCC=ne.cc)}else h.endSN=0,h.startCC=0;return h.fragmentHint&&(v+=h.fragmentHint.duration),h.totalduration=v,h.endCC=m,T>0&&function(e,t){for(var r=e[t],i=t;i--;){var n=e[i];if(!n)return;n.programDateTime=r.programDateTime-1e3*n.duration,r=n}}(d,T),h},e}();function Rt(e,t,r){var i,n,a=new x(e);it(r,a,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var s=null!=(i=a.METHOD)?i:"",o=a.URI,l=a.hexadecimalInteger("IV"),u=a.KEYFORMATVERSIONS,h=null!=(n=a.KEYFORMAT)?n:"identity";o&&a.IV&&!l&&w.error("Invalid IV: "+a.IV);var d=o?At.resolve(o,t):"",c=(u||"1").split("/").map(Number).filter(Number.isFinite);return new et(s,d,h,c,l)}function kt(e){var t=new x(e).decimalFloatingPoint("TIME-OFFSET");return y(t)?t:null}function bt(e,t){var r=(e||"").split(/[ ,]+/).filter((function(e){return e}));["video","audio","text"].forEach((function(e){var i=r.filter((function(t){return function(e,t){var r=lt[t];return!!r&&!!r[e.slice(0,4)]}(t,e)}));i.length&&(t[e+"Codec"]=i.join(","),r=r.filter((function(e){return-1===i.indexOf(e)})))})),t.unknownCodecs=r}function Dt(e,t,r){var i=t[r];i&&(e[r]=i)}function It(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),y(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function wt(e,t,r,i){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=r,e.sn="initSegment",i&&(e.levelkeys=i),e.initSegment=null}function Ct(e,t,r){e.levelkeys=t;var i=r.encryptedFragments;i.length&&i[i.length-1].levelkeys===t||!Object.keys(t).some((function(e){return t[e].isCommonEncryption}))||i.push(e)}var _t="manifest",xt="level",Pt="audioTrack",Ft="subtitleTrack",Mt="main",Ot="audio",Nt="subtitle";function Ut(e){switch(e.type){case Pt:return Ot;case Ft:return Nt;default:return Mt}}function Bt(e,t){var r=e.url;return void 0!==r&&0!==r.indexOf("data:")||(r=t.url),r}var Gt=function(){function e(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}var t=e.prototype;return t.startLoad=function(e){},t.stopLoad=function(){this.destroyInternalLoaders()},t.registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.LEVEL_LOADING,this.onLevelLoading,this),e.on(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.LEVEL_LOADING,this.onLevelLoading,this),e.off(S.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(S.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},t.createInternalLoader=function(e){var t=this.hls.config,r=t.pLoader,i=t.loader,n=new(r||i)(t);return this.loaders[e.type]=n,n},t.getInternalLoader=function(e){return this.loaders[e.type]},t.resetInternalLoader=function(e){this.loaders[e]&&delete this.loaders[e]},t.destroyInternalLoaders=function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}},t.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},t.onManifestLoading=function(e,t){var r=t.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:_t,url:r,deliveryDirectives:null})},t.onLevelLoading=function(e,t){var r=t.id,i=t.level,n=t.pathwayId,a=t.url,s=t.deliveryDirectives;this.load({id:r,level:i,pathwayId:n,responseType:"text",type:xt,url:a,deliveryDirectives:s})},t.onAudioTrackLoading=function(e,t){var r=t.id,i=t.groupId,n=t.url,a=t.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Pt,url:n,deliveryDirectives:a})},t.onSubtitleTrackLoading=function(e,t){var r=t.id,i=t.groupId,n=t.url,a=t.deliveryDirectives;this.load({id:r,groupId:i,level:null,responseType:"text",type:Ft,url:n,deliveryDirectives:a})},t.load=function(e){var t,r,i,n=this,a=this.hls.config,s=this.getInternalLoader(e);if(s){var l=s.context;if(l&&l.url===e.url&&l.level===e.level)return void w.trace("[playlist-loader]: playlist request ongoing");w.log("[playlist-loader]: aborting previous loader for type: "+e.type),s.abort()}if(r=e.type===_t?a.manifestLoadPolicy.default:o({},a.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(e),y(null==(t=e.deliveryDirectives)?void 0:t.part)&&(e.type===xt&&null!==e.level?i=this.hls.levels[e.level].details:e.type===Pt&&null!==e.id?i=this.hls.audioTracks[e.id].details:e.type===Ft&&null!==e.id&&(i=this.hls.subtitleTracks[e.id].details),i)){var u=i.partTarget,h=i.targetduration;if(u&&h){var d=1e3*Math.max(3*u,.8*h);r=o({},r,{maxTimeToFirstByteMs:Math.min(d,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,r.maxTimeToFirstByteMs)})}}var c=r.errorRetry||r.timeoutRetry||{},f={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},g={onSuccess:function(e,t,r,i){var a=n.getInternalLoader(r);n.resetInternalLoader(r.type);var s=e.data;0===s.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),At.isMediaPlaylist(s)?n.handleTrackOrLevelPlaylist(e,t,r,i||null,a):n.handleMasterPlaylist(e,t,r,i)):n.handleManifestParsingError(e,r,new Error("no EXTM3U delimiter"),i||null,t)},onError:function(e,t,r,i){n.handleNetworkError(t,r,!1,e,i)},onTimeout:function(e,t,r){n.handleNetworkError(t,r,!0,void 0,e)}};s.load(e,f,g)},t.handleMasterPlaylist=function(e,t,r,i){var n=this.hls,a=e.data,s=Bt(e,r),o=At.parseMasterPlaylist(a,s);if(o.playlistParsingError)this.handleManifestParsingError(e,r,o.playlistParsingError,i,t);else{var l=o.contentSteering,u=o.levels,h=o.sessionData,d=o.sessionKeys,c=o.startTimeOffset,f=o.variableList;this.variableList=f;var g=At.parseMasterPlaylistMedia(a,s,o),v=g.AUDIO,m=void 0===v?[]:v,p=g.SUBTITLES,y=g["CLOSED-CAPTIONS"];m.length&&(m.some((function(e){return!e.url}))||!u[0].audioCodec||u[0].attrs.AUDIO||(w.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new x({}),bitrate:0,url:""}))),n.trigger(S.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:p,captions:y,contentSteering:l,url:s,stats:t,networkDetails:i,sessionData:h,sessionKeys:d,startTimeOffset:c,variableList:f})}},t.handleTrackOrLevelPlaylist=function(e,t,r,i,n){var a=this.hls,s=r.id,o=r.level,l=r.type,u=Bt(e,r),h=y(o)?o:y(s)?s:0,d=Ut(r),c=At.parseLevelPlaylist(e.data,u,h,d,0,this.variableList);if(l===_t){var f={attrs:new x({}),bitrate:0,details:c,name:"",url:u};a.trigger(S.MANIFEST_LOADED,{levels:[f],audioTracks:[],url:u,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=c,this.handlePlaylistLoaded(c,e,t,r,i,n)},t.handleManifestParsingError=function(e,t,r,i,n){this.hls.trigger(S.ERROR,{type:L.NETWORK_ERROR,details:A.MANIFEST_PARSING_ERROR,fatal:t.type===_t,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:i,stats:n})},t.handleNetworkError=function(e,t,r,n,a){void 0===r&&(r=!1);var s="A network "+(r?"timeout":"error"+(n?" (status "+n.code+")":""))+" occurred while loading "+e.type;e.type===xt?s+=": "+e.level+" id: "+e.id:e.type!==Pt&&e.type!==Ft||(s+=" id: "+e.id+' group-id: "'+e.groupId+'"');var o=new Error(s);w.warn("[playlist-loader]: "+s);var l=A.UNKNOWN,u=!1,h=this.getInternalLoader(e);switch(e.type){case _t:l=r?A.MANIFEST_LOAD_TIMEOUT:A.MANIFEST_LOAD_ERROR,u=!0;break;case xt:l=r?A.LEVEL_LOAD_TIMEOUT:A.LEVEL_LOAD_ERROR,u=!1;break;case Pt:l=r?A.AUDIO_TRACK_LOAD_TIMEOUT:A.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case Ft:l=r?A.SUBTITLE_TRACK_LOAD_TIMEOUT:A.SUBTITLE_LOAD_ERROR,u=!1}h&&this.resetInternalLoader(e.type);var d={type:L.NETWORK_ERROR,details:l,fatal:u,url:e.url,loader:h,context:e,error:o,networkDetails:t,stats:a};if(n){var c=(null==t?void 0:t.url)||e.url;d.response=i({url:c,data:void 0},n)}this.hls.trigger(S.ERROR,d)},t.handlePlaylistLoaded=function(e,t,r,i,n,a){var s=this.hls,o=i.type,l=i.level,u=i.id,h=i.groupId,d=i.deliveryDirectives,c=Bt(t,i),f=Ut(i),g="number"==typeof i.level&&f===Mt?l:void 0;if(e.fragments.length){e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));var v=e.playlistParsingError;if(v)s.trigger(S.ERROR,{type:L.NETWORK_ERROR,details:A.LEVEL_PARSING_ERROR,fatal:!1,url:c,error:v,reason:v.message,response:t,context:i,level:g,parent:f,networkDetails:n,stats:r});else switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),a.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),o){case _t:case xt:s.trigger(S.LEVEL_LOADED,{details:e,level:g||0,id:u||0,stats:r,networkDetails:n,deliveryDirectives:d});break;case Pt:s.trigger(S.AUDIO_TRACK_LOADED,{details:e,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d});break;case Ft:s.trigger(S.SUBTITLE_TRACK_LOADED,{details:e,id:u||0,groupId:h||"",stats:r,networkDetails:n,deliveryDirectives:d})}}else{var m=new Error("No Segments found in Playlist");s.trigger(S.ERROR,{type:L.NETWORK_ERROR,details:A.LEVEL_EMPTY_ERROR,fatal:!1,url:c,error:m,reason:m.message,response:t,context:i,level:g,parent:f,networkDetails:n,stats:r})}},e}();function Kt(e,t){var r;try{r=new Event("addtrack")}catch(e){(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=e,t.dispatchEvent(r)}function Ht(e,t){var r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(r){w.debug("[texttrack-utils]: "+r);try{var i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}catch(e){w.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+e)}}"disabled"===r&&(e.mode=r)}function Vt(e){var t=e.mode;if("disabled"===t&&(e.mode="hidden"),e.cues)for(var r=e.cues.length;r--;)e.removeCue(e.cues[r]);"disabled"===t&&(e.mode=t)}function Yt(e,t,r,i){var n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var a=function(e,t,r){var i=[],n=function(e,t){if(te[r].endTime)return-1;for(var i=0,n=r;i<=n;){var a=Math.floor((n+i)/2);if(te[a].startTime&&i-1)for(var a=n,s=e.length;a=t&&o.endTime<=r)i.push(o);else if(o.startTime>r)return i}return i}(e.cues,t,r),s=0;sJt&&(d=Jt),d-h<=0&&(d=h+.25);for(var c=0;ct.startDate&&(!e||t.startDate.05&&this.forwardBufferLength>1){var l=Math.min(2,Math.max(1,a)),u=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;e.playbackRate=Math.min(l,Math.max(1,u))}else 1!==e.playbackRate&&0!==e.playbackRate&&(e.playbackRate=1)}}}}},t.estimateLiveEdge=function(){var e=this.levelDetails;return null===e?null:e.edge+e.age},t.computeLatency=function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime},s(e,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e)return null;var t=e.holdBack,r=e.partHoldBack,i=e.targetduration,n=this.config,a=n.liveSyncDuration,s=n.liveSyncDurationCount,o=n.lowLatencyMode,l=this.hls.userConfig,u=o&&r||t;(l.liveSyncDuration||l.liveSyncDurationCount||0===u)&&(u=void 0!==a?a:s*i);var h=i;return u+Math.min(1*this.stallCount,h)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(null===e||null===t||null===r)return null;var i=r.edge,n=e-t-this.edgeStalled,a=i-r.totalduration,s=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,n),s)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(null===e)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}}]),e}(),tr=["NONE","TYPE-0","TYPE-1",null],rr=["SDR","PQ","HLG"],ir="",nr="YES",ar="v2";function sr(e){var t=e.canSkipUntil,r=e.canSkipDateRanges,i=e.age;return t&&ie.sn?(n=r-e.start,i=e):(n=e.start-r,i=t),i.duration!==n&&(i.duration=n)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function dr(e,t,r,i,n,a){i-r<=0&&(w.warn("Fragment should have a positive duration",t),i=r+t.duration,a=n+t.duration);var s=r,o=i,l=t.startPTS,u=t.endPTS;if(y(l)){var h=Math.abs(l-r);y(t.deltaPTS)?t.deltaPTS=Math.max(h,t.deltaPTS):t.deltaPTS=h,s=Math.max(r,l),r=Math.min(r,l),n=Math.min(n,t.startDTS),o=Math.min(i,u),i=Math.max(i,u),a=Math.max(a,t.endDTS)}var d=r-t.start;0!==t.start&&(t.start=r),t.duration=i-t.start,t.startPTS=r,t.maxStartPTS=s,t.startDTS=n,t.endPTS=i,t.minEndPTS=o,t.endDTS=a;var c,f=t.sn;if(!e||fe.endSN)return 0;var g=f-e.startSN,v=e.fragments;for(v[g]=t,c=g;c>0;c--)hr(v[c],v[c-1]);for(c=g;c=0;a--){var s=n[a].initSegment;if(s){i=s;break}}e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,r){for(var i=t.skippedSegments,n=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,u=n;u<=a;u++){var h=l[s+u],d=o[u];i&&!d&&u=i.length||gr(t,i[r].start)}function gr(e,t){if(t){for(var r=e.fragments,i=e.skippedSegments;i499)}(n)||!!r);return e.shouldRetry?e.shouldRetry(e,t,r,i,a):a}var Ar=function(e,t){for(var r=0,i=e.length-1,n=null,a=null;r<=i;){var s=t(a=e[n=(r+i)/2|0]);if(s>0)r=n+1;else{if(!(s<0))return a;i=n-1}}return null};function Rr(e,t,r,i,n){void 0===r&&(r=0),void 0===i&&(i=0),void 0===n&&(n=.005);var a=null;if(e){a=t[e.sn-t[0].sn+1]||null;var s=e.endDTS-r;s>0&&s<15e-7&&(r+=15e-7)}else 0===r&&0===t[0].start&&(a=t[0]);if(a&&((!e||e.level===a.level)&&0===kr(r,i,a)||function(e,t,r){if(t&&0===t.start&&t.level0){var i=t.tagList.reduce((function(e,t){return"INF"===t[0]&&(e+=parseFloat(t[1])),e}),r);return e.start<=i}return!1}(a,e,Math.min(n,i))))return a;var o=Ar(t,kr.bind(null,r,i));return!o||o===e&&a?a:o}function kr(e,t,r){if(void 0===e&&(e=0),void 0===t&&(t=0),r.start<=e&&r.start+r.duration>e)return 0;var i=Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=e?1:r.start-i>e&&r.start?-1:0}function br(e,t,r){var i=1e3*Math.min(t,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-i>e}var Dr=0,Ir=2,wr=3,Cr=5,_r=0,xr=1,Pr=2,Fr=function(){function e(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=w.log.bind(w,"[info]:"),this.warn=w.warn.bind(w,"[warning]:"),this.error=w.error.bind(w,"[error]:"),this.registerListeners()}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(S.ERROR,this.onError,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.LEVEL_UPDATED,this.onLevelUpdated,this)},t.unregisterListeners=function(){var e=this.hls;e&&(e.off(S.ERROR,this.onError,this),e.off(S.ERROR,this.onErrorOut,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.LEVEL_UPDATED,this.onLevelUpdated,this))},t.destroy=function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}},t.startLoad=function(e){},t.stopLoad=function(){this.playlistError=0},t.getVariantLevelIndex=function(e){return(null==e?void 0:e.type)===Mt?e.level:this.hls.loadLevel},t.onManifestLoading=function(){this.playlistError=0,this.penalizedRenditions={}},t.onLevelUpdated=function(){this.playlistError=0},t.onError=function(e,t){var r,i;if(!t.fatal){var n=this.hls,a=t.context;switch(t.details){case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case A.FRAG_PARSING_ERROR:if(null!=(r=t.frag)&&r.gap)return void(t.errorAction={action:Dr,flags:_r});case A.FRAG_GAP:case A.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=Ir);case A.LEVEL_EMPTY_ERROR:case A.LEVEL_PARSING_ERROR:var s,o,l=t.parent===Mt?t.level:n.loadLevel;return void(t.details===A.LEVEL_EMPTY_ERROR&&null!=(s=t.context)&&null!=(o=s.levelDetails)&&o.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,l)));case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==a?void 0:a.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,a.level)));case A.AUDIO_TRACK_LOAD_ERROR:case A.AUDIO_TRACK_LOAD_TIMEOUT:case A.SUBTITLE_LOAD_ERROR:case A.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){var u=n.levels[n.loadLevel];if(u&&(a.type===Pt&&u.hasAudioGroup(a.groupId)||a.type===Ft&&u.hasSubtitleGroup(a.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,n.loadLevel),t.errorAction.action=Ir,void(t.errorAction.flags=xr)}return;case A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var h=n.levels[n.loadLevel],d=null==h?void 0:h.attrs["HDCP-LEVEL"];return void(d?t.errorAction={action:Ir,flags:Pr,hdcpLevel:d}:this.keySystemError(t));case A.BUFFER_ADD_CODEC_ERROR:case A.REMUX_ALLOC_ERROR:case A.BUFFER_APPEND_ERROR:return void(t.errorAction=this.getLevelSwitchAction(t,null!=(i=t.level)?i:n.loadLevel));case A.INTERNAL_EXCEPTION:case A.BUFFER_APPENDING_ERROR:case A.BUFFER_FULL_ERROR:case A.LEVEL_SWITCH_ERROR:case A.BUFFER_STALLED_ERROR:case A.BUFFER_SEEK_OVER_HOLE:case A.BUFFER_NUDGE_ON_STALL:return void(t.errorAction={action:Dr,flags:_r})}t.type===L.KEY_SYSTEM_ERROR&&this.keySystemError(t)}},t.keySystemError=function(e){var t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)},t.getPlaylistRetryOrSwitchAction=function(e,t){var r=Er(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++;if(Lr(r,i,yr(e),e.response))return{action:Cr,flags:_r,retryConfig:r,retryCount:i};var n=this.getLevelSwitchAction(e,t);return r&&(n.retryConfig=r,n.retryCount=i),n},t.getFragRetryOrSwitchAction=function(e){var t=this.hls,r=this.getVariantLevelIndex(e.frag),i=t.levels[r],n=t.config,a=n.fragLoadPolicy,s=n.keyLoadPolicy,o=Er(e.details.startsWith("key")?s:a,e),l=t.levels.reduce((function(e,t){return e+t.fragmentError}),0);if(i&&(e.details!==A.FRAG_GAP&&i.fragmentError++,Lr(o,l,yr(e),e.response)))return{action:Cr,flags:_r,retryConfig:o,retryCount:l};var u=this.getLevelSwitchAction(e,r);return o&&(u.retryConfig=o,u.retryCount=l),u},t.getLevelSwitchAction=function(e,t){var r=this.hls;null==t&&(t=r.loadLevel);var i=this.hls.levels[t];if(i){var n,a,s=e.details;i.loadError++,s===A.BUFFER_APPEND_ERROR&&i.fragmentError++;var o=-1,l=r.levels,u=r.loadLevel,h=r.minAutoLevel,d=r.maxAutoLevel;r.autoLevelEnabled||(r.loadLevel=-1);for(var c,f=null==(n=e.frag)?void 0:n.type,g=(f===Ot&&s===A.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(s===A.BUFFER_ADD_CODEC_ERROR||s===A.BUFFER_APPEND_ERROR))&&l.some((function(e){var t=e.audioCodec;return i.audioCodec!==t})),v="video"===e.sourceBufferName&&(s===A.BUFFER_ADD_CODEC_ERROR||s===A.BUFFER_APPEND_ERROR)&&l.some((function(e){var t=e.codecSet,r=e.audioCodec;return i.codecSet!==t&&i.audioCodec===r})),m=null!=(a=e.context)?a:{},p=m.type,y=m.groupId,E=function(){var t=(T+u)%l.length;if(t!==u&&t>=h&&t<=d&&0===l[t].loadError){var r,n,a=l[t];if(s===A.FRAG_GAP&&f===Mt&&e.frag){var c=l[t].details;if(c){var m=Rr(e.frag,c.fragments,e.frag.start);if(null!=m&&m.gap)return 0}}else{if(p===Pt&&a.hasAudioGroup(y)||p===Ft&&a.hasSubtitleGroup(y))return 0;if(f===Ot&&null!=(r=i.audioGroups)&&r.some((function(e){return a.hasAudioGroup(e)}))||f===Nt&&null!=(n=i.subtitleGroups)&&n.some((function(e){return a.hasSubtitleGroup(e)}))||g&&i.audioCodec===a.audioCodec||!g&&i.audioCodec!==a.audioCodec||v&&i.codecSet===a.codecSet)return 0}return o=t,1}},T=l.length;T--&&(0===(c=E())||1!==c););if(o>-1&&r.loadLevel!==o)return e.levelRetry=!0,this.playlistError=0,{action:Ir,flags:_r,nextAutoLevel:o}}return{action:Ir,flags:xr}},t.onErrorOut=function(e,t){var r;switch(null==(r=t.errorAction)?void 0:r.action){case Dr:break;case Ir:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===A.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn('MediaSource ended after "'+t.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()},t.sendAlternateToPenaltyBox=function(e){var t=this.hls,r=e.errorAction;if(r){var i=r.flags,n=r.hdcpLevel,a=r.nextAutoLevel;switch(i){case _r:this.switchLevel(e,a);break;case Pr:n&&(t.maxHdcpLevel=tr[tr.indexOf(n)-1],r.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'+t.maxHdcpLevel+'" or lower')}r.resolved||this.switchLevel(e,a)}},t.switchLevel=function(e,t){void 0!==t&&e.errorAction&&(this.warn("switching to level "+t+" after "+e.details),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)},e}(),Mr=function(){function e(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=w.log.bind(w,t+":"),this.warn=w.warn.bind(w,t+":"),this.hls=e}var t=e.prototype;return t.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},t.clearTimer=function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)},t.startLoad=function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()},t.stopLoad=function(){this.canLoad=!1,this.clearTimer()},t.switchParams=function(e,t,r){var i=null==t?void 0:t.renditionReports;if(i){for(var n=-1,a=0;a=0&&d>t.partTarget&&(h+=1)}var c=r&&sr(r);return new or(u,h>=0?h:void 0,c)}}},t.loadPlaylist=function(e){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())},t.shouldLoadPlaylist=function(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)},t.shouldReloadPlaylist=function(e){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(e)},t.playlistLoaded=function(e,t,r){var i=this,n=t.details,a=t.stats,s=self.performance.now(),o=a.loading.first?Math.max(0,s-a.loading.first):0;if(n.advancedDateTime=Date.now()-o,n.live||null!=r&&r.live){if(n.reloaded(r),r&&this.log("live playlist "+e+" "+(n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED")),r&&n.fragments.length>0&&cr(r,n),!this.canLoad||!n.live)return;var l,u=void 0,h=void 0;if(n.canBlockReload&&n.endSN&&n.advanced){var d=this.hls.config.lowLatencyMode,c=n.lastPartSn,f=n.endSN,g=n.lastPartIndex,v=c===f;-1!==g?(u=v?f+1:c,h=v?d?0:g:g+1):u=f+1;var m=n.age,p=m+n.ageHeader,y=Math.min(p-n.partTarget,1.5*n.targetduration);if(y>0){if(r&&y>r.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+r.tuneInGoal+" to: "+y+" with playlist age: "+n.age),y=0;else{var E=Math.floor(y/n.targetduration);u+=E,void 0!==h&&(h+=Math.round(y%n.targetduration/n.partTarget)),this.log("CDN Tune-in age: "+n.ageHeader+"s last advanced "+m.toFixed(2)+"s goal: "+y+" skip sn "+E+" to part "+h)}n.tuneInGoal=y}if(l=this.getDeliveryDirectives(n,t.deliveryDirectives,u,h),d||!v)return void this.loadPlaylist(l)}else(n.canBlockReload||n.canSkipUntil)&&(l=this.getDeliveryDirectives(n,t.deliveryDirectives,u,h));var T=this.hls.mainForwardBufferInfo,S=T?T.end-T.len:0,L=function(e,t){void 0===t&&(t=1/0);var r=1e3*e.targetduration;if(e.updated){var i=e.fragments;if(i.length&&4*r>t){var n=1e3*i[i.length-1].duration;nthis.requestScheduled+L&&(this.requestScheduled=a.loading.start),void 0!==u&&n.canBlockReload?this.requestScheduled=a.loading.first+L-(1e3*n.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+L=u.maxNumRetry)return!1;if(i&&null!=(d=e.context)&&d.deliveryDirectives)this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" without delivery-directives'),this.loadPlaylist();else{var c=Tr(u,l);this.timer=self.setTimeout((function(){return t.loadPlaylist()}),c),this.warn("Retrying playlist loading "+(l+1)+"/"+u.maxNumRetry+' after "'+r+'" in '+c+"ms")}e.levelRetry=!0,n.resolved=!0}return h},e}(),Or=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}var t=e.prototype;return t.sample=function(e,t){var r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e},t.getTotalWeight=function(){return this.totalWeight_},t.getEstimate=function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_},e}(),Nr=function(){function e(e,t,r,i){void 0===i&&(i=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Or(e),this.fast_=new Or(t),this.defaultTTFB_=i,this.ttfb_=new Or(e)}var t=e.prototype;return t.update=function(e,t){var r=this.slow_,i=this.fast_,n=this.ttfb_;r.halfLife!==e&&(this.slow_=new Or(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==t&&(this.fast_=new Or(t,i.getEstimate(),i.getTotalWeight())),n.halfLife!==e&&(this.ttfb_=new Or(e,n.getEstimate(),n.getTotalWeight()))},t.sample=function(e,t){var r=(e=Math.max(e,this.minDelayMs_))/1e3,i=8*t/r;this.fast_.sample(r,i),this.slow_.sample(r,i)},t.sampleTTFB=function(e){var t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))},t.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},t.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},t.destroy=function(){},e}(),Ur={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Br={};function Gr(e,t,r){var n=e.videoCodec,a=e.audioCodec;if(!n||!a||!r)return Promise.resolve(Ur);var s={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},o=e.videoRange;"SDR"!==o&&(s.transferFunction=o.toLowerCase());var l=n.split(",").map((function(e){return{type:"media-source",video:i(i({},s),{},{contentType:dt(e,"video")})}}));return a&&e.audioGroups&&e.audioGroups.forEach((function(e){var r;e&&(null==(r=t.groups[e])||r.tracks.forEach((function(t){if(t.groupId===e){var r=t.channels||"",i=parseFloat(r);y(i)&&i>2&&l.push.apply(l,a.split(",").map((function(e){return{type:"media-source",audio:{contentType:dt(e,"audio"),channels:""+i}}})))}})))})),Promise.all(l.map((function(e){var t=function(e){var t=e.audio,r=e.video,i=r||t;if(i){var n=i.contentType.split('"')[1];if(r)return"r"+r.height+"x"+r.width+"f"+Math.ceil(r.framerate)+(r.transferFunction||"sd")+"_"+n+"_"+Math.ceil(r.bitrate/1e5);if(t)return"c"+t.channels+(t.spatialRendering?"s":"n")+"_"+n}return""}(e);return Br[t]||(Br[t]=r.decodingInfo(e))}))).then((function(e){return{supported:!e.some((function(e){return!e.supported})),configurations:l,decodingInfoResults:e}})).catch((function(e){return{supported:!1,configurations:l,decodingInfoResults:[],error:e}}))}function Kr(e,t){var r=!1,i=[];return e&&(r="SDR"!==e,i=[e]),t&&(i=t.allowedVideoRanges||rr.slice(0),i=(r=void 0!==t.preferHDR?t.preferHDR:function(){if("function"==typeof matchMedia){var e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}())?i.filter((function(e){return"SDR"!==e})):["SDR"]),{preferHDR:r,allowedVideoRanges:i}}function Hr(e,t){w.log('[abr] start candidates with "'+e+'" ignored because '+t)}function Vr(e,t,r){if("attrs"in e){var i=t.indexOf(e);if(-1!==i)return i}for(var n=0;n-1;i--)if(r(e[i]))return i;for(var n=t+1;n-1,p=t.getBwEstimate(),E=i.levels,T=E[e.level],L=o.total||Math.max(o.loaded,Math.round(l*T.averageBitrate/8)),A=m?u-v:u;A<1&&m&&(A=Math.min(u,8*o.loaded/p));var R=m?1e3*o.loaded/A:0,k=R?(L-o.loaded)/R:8*L/p+c/1e3;if(!(k<=g)){var b,D=R?8*R:p,I=Number.POSITIVE_INFINITY;for(b=e.level-1;b>h;b--){var C=E[b].maxBitrate;if((I=t.getTimeToLoadFrag(c/1e3,D,l*C,!E[b].details))=k||I>10*l)){i.nextLoadLevel=i.nextAutoLevel=b,m?t.bwEstimator.sample(u-Math.min(c,v),o.loaded):t.bwEstimator.sampleTTFB(u);var _=E[b].maxBitrate;t.getBwEstimate()*t.hls.config.abrBandWidthUpFactor>_&&t.resetEstimator(_),t.clearTimer(),w.warn("[abr] Fragment "+e.sn+(r?" part "+r.index:"")+" of level "+e.level+" is loading too slowly;\n Time to underbuffer: "+g.toFixed(3)+" s\n Estimated load time for current fragment: "+k.toFixed(3)+" s\n Estimated load time for down switch fragment: "+I.toFixed(3)+" s\n TTFB estimate: "+(0|v)+" ms\n Current BW estimate: "+(y(p)?0|p:"Unknown")+" bps\n New BW estimate: "+(0|t.getBwEstimate())+" bps\n Switching to level "+b+" @ "+(0|_)+" bps"),i.trigger(S.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:r,stats:o})}}}}}}},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}var t=e.prototype;return t.resetEstimator=function(e){e&&(w.log("setting initial bwe to "+e),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},t.initEstimator=function(){var e=this.hls.config;return new Nr(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)},t.registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.FRAG_LOADING,this.onFragLoading,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this),e.on(S.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this),e.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(S.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(S.ERROR,this.onError,this)},t.unregisterListeners=function(){var e=this.hls;e&&(e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.FRAG_LOADING,this.onFragLoading,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this),e.off(S.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this),e.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(S.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(S.ERROR,this.onError,this))},t.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null},t.onManifestLoading=function(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},t.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},t.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},t.onFragLoading=function(e,t){var r,i=t.frag;this.ignoreFragment(i)||(i.bitrateTest||(this.fragCurrent=i,this.partCurrent=null!=(r=t.part)?r:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},t.onLevelSwitching=function(e,t){this.clearTimer()},t.onError=function(e,t){if(!t.fatal)switch(t.details){case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case A.FRAG_LOAD_TIMEOUT:var r=t.frag,i=this.fragCurrent,n=this.partCurrent;if(r&&i&&r.sn===i.sn&&r.level===i.level){var a=performance.now(),s=n?n.stats:r.stats,o=a-s.loading.start,l=s.loading.first?s.loading.first-s.loading.start:-1;if(s.loaded&&l>-1){var u=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(o-Math.min(u,l),s.loaded)}else this.bwEstimator.sampleTTFB(o)}}},t.getTimeToLoadFrag=function(e,t,r,i){return e+r/t+(i?this.lastLevelLoadSec:0)},t.onLevelLoaded=function(e,t){var r=this.hls.config,i=t.stats.loading,n=i.end-i.start;y(n)&&(this.lastLevelLoadSec=n/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},t.onFragLoaded=function(e,t){var r=t.frag,i=t.part,n=i?i.stats:r.stats;if(r.type===Mt&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(r)){if(this.clearTimer(),r.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var a=i?i.duration:r.duration,s=this.hls.levels[r.level],o=(s.loaded?s.loaded.bytes:0)+n.loaded,l=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:o,duration:l},s.realBitrate=Math.round(8*o/l)}if(r.bitrateTest){var u={stats:n,frag:r,part:i,id:r.type};this.onFragBuffered(S.FRAG_BUFFERED,u),r.bitrateTest=!1}else this.lastLoadedFragLevel=r.level}},t.onFragBuffered=function(e,t){var r=t.frag,i=t.part,n=null!=i&&i.stats.loaded?i.stats:r.stats;if(!n.aborted&&!this.ignoreFragment(r)){var a=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,n.loaded),n.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}},t.ignoreFragment=function(e){return e.type!==Mt||"initSegment"===e.sn},t.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},t.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},t.getNextABRAutoLevel=function(){var e=this.fragCurrent,t=this.partCurrent,r=this.hls,i=r.maxAutoLevel,n=r.config,a=r.minAutoLevel,s=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay(),u=n.abrBandWidthFactor,h=n.abrBandWidthUpFactor;if(l){var d=this.findBestLevel(o,a,i,l,0,u,h);if(d>=0)return d}var c=s?Math.min(s,n.maxStarvationDelay):n.maxStarvationDelay;if(!l){var f=this.bitrateTestDelay;f&&(c=(s?Math.min(s,n.maxLoadingDelay):n.maxLoadingDelay)-f,w.info("[abr] bitrate test took "+Math.round(1e3*f)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*c)+" ms"),u=h=1)}var g=this.findBestLevel(o,a,i,l,c,u,h);if(w.info("[abr] "+(l?"rebuffering expected":"buffer is empty")+", optimal quality level "+g),g>-1)return g;var v=r.levels[a],m=r.levels[r.loadLevel];return(null==v?void 0:v.bitrate)<(null==m?void 0:m.bitrate)?a:r.loadLevel},t.getStarvationDelay=function(){var e=this.hls,t=e.media;if(!t)return 1/0;var r=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/r},t.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},t.findBestLevel=function(e,t,r,i,n,a,s){var o,l=this,u=i+n,h=this.lastLoadedFragLevel,d=-1===h?this.hls.firstLevel:h,c=this.fragCurrent,f=this.partCurrent,g=this.hls,v=g.levels,m=g.allAudioTracks,p=g.loadLevel,E=g.config;if(1===v.length)return 0;var T,S=v[d],L=!(null==S||null==(o=S.details)||!o.live),A=-1===p||-1===h,R="SDR",k=(null==S?void 0:S.frameRate)||0,b=E.audioPreference,D=E.videoPreference,I=this.audioTracksByGroup||(this.audioTracksByGroup=function(e){return e.reduce((function(e,t){var r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);var i=t.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(m));if(A){if(-1!==this.firstSelection)return this.firstSelection;var C=this.codecTiers||(this.codecTiers=function(e,t,r,i){return e.slice(r,i+1).reduce((function(e,r){if(!r.codecSet)return e;var i=r.audioGroups,n=e[r.codecSet];n||(e[r.codecSet]=n={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!i,fragmentError:0}),n.minBitrate=Math.min(n.minBitrate,r.bitrate);var a=Math.min(r.height,r.width);return n.minHeight=Math.min(n.minHeight,a),n.minFramerate=Math.min(n.minFramerate,r.frameRate),n.maxScore=Math.max(n.maxScore,r.score),n.fragmentError+=r.fragmentError,n.videoRanges[r.videoRange]=(n.videoRanges[r.videoRange]||0)+1,i&&i.forEach((function(e){if(e){var r=t.groups[e];r&&(n.hasDefaultAudio=n.hasDefaultAudio||t.hasDefaultAudio?r.hasDefault:r.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(r.channels).forEach((function(e){n.channels[e]=(n.channels[e]||0)+r.channels[e]})))}})),e}),{})}(v,I,t,r)),_=function(e,t,r,i,n){for(var a=Object.keys(e),s=null==i?void 0:i.channels,o=null==i?void 0:i.audioCodec,l=s&&2===parseInt(s),u=!0,h=!1,d=1/0,c=1/0,f=1/0,g=0,v=[],m=Kr(t,n),p=m.preferHDR,E=m.allowedVideoRanges,T=function(){var t=e[a[S]];u=t.channels[2]>0,d=Math.min(d,t.minHeight),c=Math.min(c,t.minFramerate),f=Math.min(f,t.minBitrate);var r=E.filter((function(e){return t.videoRanges[e]>0}));r.length>0&&(h=!0,v=r)},S=a.length;S--;)T();d=y(d)?d:0,c=y(c)?c:0;var L=Math.max(1080,d),A=Math.max(30,c);return f=y(f)?f:r,r=Math.max(f,r),h||(t=void 0,v=[]),{codecSet:a.reduce((function(t,i){var n=e[i];if(i===t)return t;if(n.minBitrate>r)return Hr(i,"min bitrate of "+n.minBitrate+" > current estimate of "+r),t;if(!n.hasDefaultAudio)return Hr(i,"no renditions with default or auto-select sound found"),t;if(o&&i.indexOf(o.substring(0,4))%5!=0)return Hr(i,'audio codec preference "'+o+'" not found'),t;if(s&&!l){if(!n.channels[s])return Hr(i,"no renditions with "+s+" channel sound found (channels options: "+Object.keys(n.channels)+")"),t}else if((!o||l)&&u&&0===n.channels[2])return Hr(i,"no renditions with stereo sound found"),t;return n.minHeight>L?(Hr(i,"min resolution of "+n.minHeight+" > maximum of "+L),t):n.minFramerate>A?(Hr(i,"min framerate of "+n.minFramerate+" > maximum of "+A),t):v.some((function(e){return n.videoRanges[e]>0}))?n.maxScore=ft(t)||n.fragmentError>e[t].fragmentError)?t:(g=n.maxScore,i):(Hr(i,"no variants with VIDEO-RANGE of "+JSON.stringify(v)+" found"),t)}),void 0),videoRanges:v,preferHDR:p,minFramerate:c,minBitrate:f}}(C,R,e,b,D),x=_.codecSet,P=_.videoRanges,F=_.minFramerate,M=_.minBitrate,O=_.preferHDR;T=x,R=O?P[P.length-1]:P[0],k=F,e=Math.max(e,M),w.log("[abr] picked start tier "+JSON.stringify(_))}else T=null==S?void 0:S.codecSet,R=null==S?void 0:S.videoRange;for(var N,U=f?f.duration:c?c.duration:0,B=this.bwEstimator.getEstimateTTFB()/1e3,G=[],K=function(){var t,o=v[H],c=H>d;if(!o)return 0;if(E.useMediaCapabilities&&!o.supportedResult&&!o.supportedPromise){var g=navigator.mediaCapabilities;"function"==typeof(null==g?void 0:g.decodingInfo)&&function(e,t,r,i,n,a){var s=e.audioCodec?e.audioGroups:null,o=null==a?void 0:a.audioCodec,l=null==a?void 0:a.channels,u=l?parseInt(l):o?1/0:2,h=null;if(null!=s&&s.length)try{h=1===s.length&&s[0]?t.groups[s[0]].channels:s.reduce((function(e,r){if(r){var i=t.groups[r];if(!i)throw new Error("Audio track group "+r+" not found");Object.keys(i.channels).forEach((function(t){e[t]=(e[t]||0)+i.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(i,30)||"SDR"!==e.videoRange&&e.videoRange!==r||e.bitrate>Math.max(n,8e6))||!!h&&y(u)&&Object.keys(h).some((function(e){return parseInt(e)>u}))}(o,I,R,k,e,b)?(o.supportedPromise=Gr(o,I,g),o.supportedPromise.then((function(e){if(l.hls){o.supportedResult=e;var t=l.hls.levels,r=t.indexOf(o);e.error?w.warn('[abr] MediaCapabilities decodingInfo error: "'+e.error+'" for level '+r+" "+JSON.stringify(e)):e.supported||(w.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level "+r+" "+JSON.stringify(e)),r>-1&&t.length>1&&(w.log("[abr] Removing unsupported level "+r),l.hls.removeLevel(r)))}}))):o.supportedResult=Ur}if(T&&o.codecSet!==T||R&&o.videoRange!==R||c&&k>o.frameRate||!c&&k>0&&k=2*U&&0===n?v[H].averageBitrate:v[H].maxBitrate,x=l.getTimeToLoadFrag(B,m,_*C,void 0===D);if(m>=_&&(H===h||0===o.loadError&&0===o.fragmentError)&&(x<=B||!y(x)||L&&!l.bitrateTestDelay||x"+H+" adjustedbw("+Math.round(m)+")-bitrate="+Math.round(m-_)+" ttfb:"+B.toFixed(1)+" avgDuration:"+C.toFixed(1)+" maxFetchDuration:"+u.toFixed(1)+" fetchDuration:"+x.toFixed(1)+" firstSelection:"+A+" codecSet:"+T+" videoRange:"+R+" hls.loadLevel:"+p)),A&&(l.firstSelection=H),{v:H}}},H=r;H>=t;H--)if(0!==(N=K())&&N)return N.v;return-1},s(e,[{key:"firstAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,r=e.minAutoLevel,i=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,a=this.findBestLevel(i,r,t,0,n,1,1);if(a>-1)return a;var s=this.hls.firstLevel,o=Math.min(Math.max(s,r),t);return w.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist "+s+" clamped to "+o),o}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&r&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;var i=t&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){var n=this.hls.levels;if(n.length>Math.max(e,i)&&n[e].loadError<=n[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i},set:function(e){var t=this.hls,r=t.maxAutoLevel,i=t.minAutoLevel,n=Math.min(Math.max(e,i),r);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}}]),e}(),Xr=function(){function e(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var t=e.prototype;return t.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},t.onHandlerDestroyed=function(){},t.hasInterval=function(){return!!this._tickInterval},t.hasNextTick=function(){return!!this._tickTimer},t.setInterval=function(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)},t.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},t.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},t.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},t.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},t.doTick=function(){},e}(),zr="NOT_LOADED",Qr="APPENDING",Jr="PARTIAL",$r="OK",Zr=function(){function e(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}var t=e.prototype;return t._registerListeners=function(){var e=this.hls;e.on(S.BUFFER_APPENDED,this.onBufferAppended,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this)},t._unregisterListeners=function(){var e=this.hls;e.off(S.BUFFER_APPENDED,this.onBufferAppended,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this)},t.destroy=function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},t.getAppendedFrag=function(e,t){var r=this.activePartLists[t];if(r)for(var i=r.length;i--;){var n=r[i];if(!n)break;var a=n.end;if(n.start<=e&&null!==a&&e<=a)return n}return this.getBufferedFrag(e,t)},t.getBufferedFrag=function(e,t){for(var r=this.fragments,i=Object.keys(r),n=i.length;n--;){var a=r[i[n]];if((null==a?void 0:a.body.type)===t&&a.buffered){var s=a.body;if(s.start<=e&&e<=s.end)return s}}return null},t.detectEvictedFragments=function(e,t,r,i){var n=this;this.timeRanges&&(this.timeRanges[e]=t);var a=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(i){var s=n.fragments[i];if(s&&!(a>=s.body.sn))if(s.buffered||s.loaded){var o=s.range[e];o&&o.time.some((function(e){var r=!n.isTimeBuffered(e.startPTS,e.endPTS,t);return r&&n.removeFragment(s.body),r}))}else s.body.type===r&&n.removeFragment(s.body)}))},t.detectPartialFragments=function(e){var t=this,r=this.timeRanges,i=e.frag,n=e.part;if(r&&"initSegment"!==i.sn){var a=ti(i),s=this.fragments[a];if(!(!s||s.buffered&&i.gap)){var o=!i.relurl;Object.keys(r).forEach((function(e){var a=i.elementaryStreams[e];if(a){var l=r[e],u=o||!0===a.partial;s.range[e]=t.getBufferedTimes(i,n,u,l)}})),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=i.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),ei(s)||this.removeParts(i.sn-1,i.type)):this.removeFragment(s.body)}}},t.removeParts=function(e,t){var r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter((function(t){return t.fragment.sn>=e})))},t.fragBuffered=function(e,t){var r=ti(e),i=this.fragments[r];!i&&t&&(i=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)},t.getBufferedTimes=function(e,t,r,i){for(var n={time:[],partial:r},a=e.start,s=e.end,o=e.minEndPTS||s,l=e.maxStartPTS||a,u=0;u=h&&o<=d){n.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(s,i.end(u))});break}if(ah){var c=Math.max(a,i.start(u)),f=Math.min(s,i.end(u));f>c&&(n.partial=!0,n.time.push({startPTS:c,endPTS:f}))}else if(s<=h)break}return n},t.getPartialFragment=function(e){var t,r,i,n=null,a=0,s=this.bufferPadding,o=this.fragments;return Object.keys(o).forEach((function(l){var u=o[l];u&&ei(u)&&(r=u.body.start-s,i=u.body.end+s,e>=r&&e<=i&&(t=Math.min(e-r,i-e),a<=t&&(n=u.body,a=t)))})),n},t.isEndListAppended=function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||ei(t))},t.getState=function(e){var t=ti(e),r=this.fragments[t];return r?r.buffered?ei(r)?Jr:$r:Qr:zr},t.isTimeBuffered=function(e,t,r){for(var i,n,a=0;a=i&&t<=n)return!0;if(t<=i)return!1}return!1},t.onFragLoaded=function(e,t){var r=t.frag,i=t.part;if("initSegment"!==r.sn&&!r.bitrateTest){var n=i?null:t,a=ti(r);this.fragments[a]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}},t.onBufferAppended=function(e,t){var r=this,i=t.frag,n=t.part,a=t.timeRanges;if("initSegment"!==i.sn){var s=i.type;if(n){var o=this.activePartLists[s];o||(this.activePartLists[s]=o=[]),o.push(n)}this.timeRanges=a,Object.keys(a).forEach((function(e){var t=a[e];r.detectEvictedFragments(e,t,s,n)}))}},t.onFragBuffered=function(e,t){this.detectPartialFragments(t)},t.hasFragment=function(e){var t=ti(e);return!!this.fragments[t]},t.hasParts=function(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)},t.removeFragmentsInRange=function(e,t,r,i,n){var a=this;i&&!this.hasGaps||Object.keys(this.fragments).forEach((function(s){var o=a.fragments[s];if(o){var l=o.body;l.type!==r||i&&!l.gap||l.starte&&(o.buffered||n)&&a.removeFragment(l)}}))},t.removeFragment=function(e){var t=ti(e);e.stats.loaded=0,e.clearElementaryStreamInfo();var r=this.activePartLists[e.type];if(r){var i=e.sn;this.activePartLists[e.type]=r.filter((function(e){return e.fragment.sn!==i}))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]},t.removeAllFragments=function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1},e}();function ei(e){var t,r,i;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(r=e.range.audio)?void 0:r.partial)||(null==(i=e.range.audiovideo)?void 0:i.partial))}function ti(e){return e.type+"_"+e.level+"_"+e.sn}var ri={length:0,start:function(){return 0},end:function(){return 0}},ii=function(){function e(){}return e.isBuffered=function(t,r){try{if(t)for(var i=e.getBuffered(t),n=0;n=i.start(n)&&r<=i.end(n))return!0}catch(e){}return!1},e.bufferInfo=function(t,r,i){try{if(t){var n,a=e.getBuffered(t),s=[];for(n=0;ns&&(i[a-1].end=e[n].end):i.push(e[n])}else i.push(e[n])}else i=e;for(var o,l=0,u=t,h=t,d=0;d=c&&tr.startCC||e&&e.cc>>8^255&m^99,e[f]=m,t[m]=f;var p=c[f],y=c[p],E=c[y],T=257*c[m]^16843008*m;i[f]=T<<24|T>>>8,n[f]=T<<16|T>>>16,a[f]=T<<8|T>>>24,s[f]=T,T=16843009*E^65537*y^257*p^16843008*f,l[m]=T<<24|T>>>8,u[m]=T<<16|T>>>16,h[m]=T<<8|T>>>24,d[m]=T,f?(f=p^c[c[c[E^p]]],g^=c[c[g]]):f=g=1}},t.expandKey=function(e){for(var t=this.uint8ArrayToUint32Array_(e),r=!0,i=0;is.end){var h=a>u;(a0&&null!=a&&a.key&&a.iv&&"AES-128"===a.method){var s=self.performance.now();return r.decrypter.decrypt(new Uint8Array(n),a.key.buffer,a.iv.buffer).catch((function(t){throw i.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((function(n){var a=self.performance.now();return i.trigger(S.FRAG_DECRYPTED,{frag:e,payload:n,stats:{tstart:s,tdecrypt:a}}),t.payload=n,r.completeInitSegmentLoad(t)}))}return r.completeInitSegmentLoad(t)})).catch((function(t){r.state!==Ti&&r.state!==wi&&(r.warn(t),r.resetFragmentLoading(e))}))},r.completeInitSegmentLoad=function(e){if(!this.levels)throw new Error("init load aborted, missing levels");var t=e.frag.stats;this.state=Si,e.frag.data=new Uint8Array(e.payload),t.parsing.start=t.buffering.start=self.performance.now(),t.parsing.end=t.buffering.end=self.performance.now(),this.tick()},r.fragContextChanged=function(e){var t=this.fragCurrent;return!e||!t||e.sn!==t.sn||e.level!==t.level},r.fragBufferedComplete=function(e,t){var r,i,n,a,s=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+e.type+" sn: "+e.sn+(t?" part: "+t.index:"")+" of "+(this.playlistType===Mt?"level":"track")+" "+e.level+" (frag:["+(null!=(r=e.startPTS)?r:NaN).toFixed(3)+"-"+(null!=(i=e.endPTS)?i:NaN).toFixed(3)+"] > buffer:"+(s?Ei(ii.getBuffered(s)):"(detached)")+")"),"initSegment"!==e.sn){var o;if(e.type!==Nt){var l=e.elementaryStreams;if(!Object.keys(l).some((function(e){return!!l[e]})))return void(this.state=Si)}var u=null==(o=this.levels)?void 0:o[e.level];null!=u&&u.fragmentError&&(this.log("Resetting level fragment error count of "+u.fragmentError+" on frag buffered"),u.fragmentError=0)}this.state=Si,s&&(!this.loadedmetadata&&e.type==Mt&&s.buffered.length&&(null==(n=this.fragCurrent)?void 0:n.sn)===(null==(a=this.fragPrevious)?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())},r.seekToStartPos=function(){},r._handleFragmentLoadComplete=function(e){var t=this.transmuxer;if(t){var r=e.frag,i=e.part,n=e.partsLoaded,a=!n||0===n.length||n.some((function(e){return!e})),s=new ni(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!a);t.flush(s)}},r._handleFragmentLoadProgress=function(e){},r._doFragLoad=function(e,t,r,i){var n,a=this;void 0===r&&(r=null);var s=null==t?void 0:t.details;if(!this.levels||!s)throw new Error("frag load aborted, missing level"+(s?"":" detail")+"s");var o=null;if(!e.encrypted||null!=(n=e.decryptdata)&&n.key?!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments):(this.log("Loading key for "+e.sn+" of ["+s.startSN+"-"+s.endSN+"], "+("[stream-controller]"===this.logPrefix?"level":"track")+" "+e.level),this.state=Li,this.fragCurrent=e,o=this.keyLoader.load(e).then((function(e){if(!a.fragContextChanged(e.frag))return a.hls.trigger(S.KEY_LOADED,e),a.state===Li&&(a.state=Si),e})),this.hls.trigger(S.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&"initSegment"!==e.sn){var l=s.partList;if(l&&i){r>e.end&&s.fragmentHint&&(e=s.fragmentHint);var u=this.getNextPart(l,e,r);if(u>-1){var h,d=l[u];return this.log("Loading part sn: "+e.sn+" p: "+d.index+" cc: "+e.cc+" of playlist ["+s.startSN+"-"+s.endSN+"] parts [0-"+u+"-"+(l.length-1)+"] "+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(r.toFixed(3))),this.nextLoadPosition=d.start+d.duration,this.state=Ai,h=o?o.then((function(r){return!r||a.fragContextChanged(r.frag)?null:a.doFragPartsLoad(e,d,t,i)})).catch((function(e){return a.handleFragLoadError(e)})):this.doFragPartsLoad(e,d,t,i).catch((function(e){return a.handleFragLoadError(e)})),this.hls.trigger(S.FRAG_LOADING,{frag:e,part:d,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}if(!e.url||this.loadedEndOfParts(l,r))return Promise.resolve(null)}}this.log("Loading fragment "+e.sn+" cc: "+e.cc+" "+(s?"of ["+s.startSN+"-"+s.endSN+"] ":"")+("[stream-controller]"===this.logPrefix?"level":"track")+": "+e.level+", target: "+parseFloat(r.toFixed(3))),y(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Ai;var c,f=this.config.progressive;return c=f&&o?o.then((function(t){return!t||a.fragContextChanged(null==t?void 0:t.frag)?null:a.fragmentLoader.load(e,i)})).catch((function(e){return a.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,f?i:void 0),o]).then((function(e){var t=e[0];return!f&&t&&i&&i(t),t})).catch((function(e){return a.handleFragLoadError(e)})),this.hls.trigger(S.FRAG_LOADING,{frag:e,targetBufferTime:r}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c},r.doFragPartsLoad=function(e,t,r,i){var n=this;return new Promise((function(a,s){var o,l=[],u=null==(o=r.details)?void 0:o.partList;!function t(o){n.fragmentLoader.loadPart(e,o,i).then((function(i){l[o.index]=i;var s=i.part;n.hls.trigger(S.FRAG_LOADED,i);var h=vr(r,e.sn,o.index+1)||mr(u,e.sn,o.index+1);if(!h)return a({frag:e,part:s,partsLoaded:l});t(h)})).catch(s)}(t)}))},r.handleFragLoadError=function(e){if("data"in e){var t=e.data;e.data&&t.details===A.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(S.ERROR,t)}else this.hls.trigger(S.ERROR,{type:L.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null},r._handleTransmuxerFlush=function(e){var t=this.getCurrentContext(e);if(t&&this.state===bi){var r=t.frag,i=t.part,n=t.level,a=self.performance.now();r.stats.parsing.end=a,i&&(i.stats.parsing.end=a),this.updateLevelTiming(r,i,n,e.partial)}else this.fragCurrent||this.state===Ti||this.state===wi||(this.state=Si)},r.getCurrentContext=function(e){var t=this.levels,r=this.fragCurrent,i=e.level,n=e.sn,a=e.part;if(null==t||!t[i])return this.warn("Levels object was unset while buffering fragment "+n+" of level "+i+". The current chunk will not be buffered."),null;var s=t[i],o=a>-1?vr(s,n,a):null,l=o?o.fragment:function(e,t,r){if(null==e||!e.details)return null;var i=e.details,n=i.fragments[t-i.startSN];return n||((n=i.fragmentHint)&&n.sn===t?n:ta&&this.flushMainBuffer(s,e.start)}else this.flushMainBuffer(0,e.start)},r.getFwdBufferInfo=function(e,t){var r=this.getLoadPosition();return y(r)?this.getFwdBufferInfoAtPos(e,r,t):null},r.getFwdBufferInfoAtPos=function(e,t,r){var i=this.config.maxBufferHole,n=ii.bufferInfo(e,t,i);if(0===n.len&&void 0!==n.nextStart){var a=this.fragmentTracker.getBufferedFrag(t,r);if(a&&n.nextStart=i&&(r.maxMaxBufferLength=n,this.warn("Reduce max buffer length to "+n+"s"),!0)},r.getAppendedFrag=function(e,t){var r=this.fragmentTracker.getAppendedFrag(e,Mt);return r&&"fragment"in r?r.fragment:r},r.getNextFragment=function(e,t){var r=t.fragments,i=r.length;if(!i)return null;var n,a=this.config,s=r[0].start;if(t.live){var o=a.initialLiveManifestSize;if(it},r.getNextFragmentLoopLoading=function(e,t,r,i,n){var a=e.gap,s=this.getNextFragment(this.nextLoadPosition,t);if(null===s)return s;if(e=s,a&&e&&!e.gap&&r.nextStart){var o=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(null!==o&&r.len+o.len>=n)return this.log('buffer full after gaps in "'+i+'" playlist starting at sn: '+e.sn),null}return e},r.mapToInitFragWhenRequired=function(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment},r.getNextPart=function(e,t,r){for(var i=-1,n=!1,a=!0,s=0,o=e.length;s-1&&rr.start&&r.loaded},r.getInitialLiveFragment=function(e,t){var r=this.fragPrevious,i=null;if(r){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),i=function(e,t,r){if(null===t||!Array.isArray(e)||!e.length||!y(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;r=r||0;for(var i=0;i=e.startSN&&n<=e.endSN){var a=t[n-e.startSN];r.cc===a.cc&&(i=a,this.log("Live playlist, switching playlist, load frag with next SN: "+i.sn))}i||(i=function(e,t){return Ar(e,(function(e){return e.cct?-1:0}))}(t,r.cc),i&&this.log("Live playlist, switching playlist, load frag with same CC: "+i.sn))}}else{var s=this.hls.liveSyncPosition;null!==s&&(i=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i},r.getFragmentAtPosition=function(e,t,r){var i,n=this.config,a=this.fragPrevious,s=r.fragments,o=r.endSN,l=r.fragmentHint,u=n.maxFragLookUpTolerance,h=r.partList,d=!!(n.lowLatencyMode&&null!=h&&h.length&&l);if(d&&l&&!this.bitrateTest&&(s=s.concat(l),o=l.sn),i=et-u?0:u):s[s.length-1]){var c=i.sn-r.startSN,f=this.fragmentTracker.getState(i);if((f===$r||f===Jr&&i.gap)&&(a=i),a&&i.sn===a.sn&&(!d||h[0].fragment.sn>i.sn)&&a&&i.level===a.level){var g=s[c+1];i=i.sn=a-t.maxFragLookUpTolerance&&n<=s;if(null!==i&&r.duration>i&&(n"+e.startSN+" prev-sn: "+(o?o.sn:"na")+" fragments: "+i),l}return n},r.waitForCdnTuneIn=function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)},r.setStartPosition=function(e,t){var r=this.startPosition;if(r "+(null==(n=this.fragCurrent)?void 0:n.url))}else{var a=t.details===A.FRAG_GAP;a&&this.fragmentTracker.fragBuffered(i,!0);var s=t.errorAction,o=s||{},l=o.action,u=o.retryCount,h=void 0===u?0:u,d=o.retryConfig;if(s&&l===Cr&&d){this.resetStartWhenNotLoaded(this.levelLastLoaded);var c=Tr(d,h);this.warn("Fragment "+i.sn+" of "+e+" "+i.level+" errored with "+t.details+", retrying loading "+(h+1)+"/"+d.maxNumRetry+" in "+c+"ms"),s.resolved=!0,this.retryDate=self.performance.now()+c,this.state=Ri}else if(d&&s){if(this.resetFragmentErrors(e),!(h.5;n&&this.reduceMaxBufferLength(i.len,(null==t?void 0:t.duration)||10);var a=!n;return a&&this.warn("Buffer full error while media.currentTime is not buffered, flush "+r+" buffer"),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),a}return!1},r.resetFragmentErrors=function(e){e===Ot&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Ti&&(this.state=Si)},r.afterBufferFlushed=function(e,t,r){if(e){var i=ii.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===Ii&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Si},r.resetStartWhenNotLoaded=function(e){if(!this.loadedmetadata){this.startFragRequested=!1;var t=e?e.details:null;null!=t&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(e){this.warn("The loading context changed while buffering fragment "+e.sn+" of level "+e.level+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()},r.removeUnbufferedFrags=function(e){void 0===e&&(e=0),this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(e,t,r,i){var n,a=this,s=r.details;if(s){if(!Object.keys(e.elementaryStreams).reduce((function(t,n){var o=e.elementaryStreams[n];if(o){var l=o.endPTS-o.startPTS;if(l<=0)return a.warn("Could not parse fragment "+e.sn+" "+n+" duration reliably ("+l+")"),t||!1;var u=i?0:dr(s,e,o.startPTS,o.endPTS,o.startDTS,o.endDTS);return a.hls.trigger(S.LEVEL_PTS_UPDATED,{details:s,level:r,drift:u,type:n,frag:e,start:o.startPTS,end:o.endPTS}),!0}return t}),!1)&&null===(null==(n=this.transmuxer)?void 0:n.error)){var o=new Error("Found no media in fragment "+e.sn+" of level "+e.level+" resetting transmuxer to fallback to playlist timing");if(0===r.fragmentError&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(o.message),this.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:o,frag:e,reason:"Found no media in msn "+e.sn+' of level "'+r.url+'"'}),!this.hls)return;this.resetTransmuxer()}this.state=Di,this.hls.trigger(S.FRAG_PARSED,{frag:e,part:t})}else this.warn("level.details undefined")},r.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},r.recoverWorkerError=function(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())},s(t,[{key:"state",get:function(){return this._state},set:function(e){var t=this._state;t!==e&&(this._state=e,this.log(t+"->"+e))}}]),t}(Xr),Pi=function(){function e(){this.chunks=[],this.dataLength=0}var t=e.prototype;return t.push=function(e){this.chunks.push(e),this.dataLength+=e.length},t.flush=function(){var e,t=this.chunks,r=this.dataLength;return t.length?(e=1===t.length?t[0]:function(e,t){for(var r=new Uint8Array(t),i=0,n=0;n0&&s.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:i,type:jt,duration:Number.POSITIVE_INFINITY});n>>5}function Gi(e,t){return t+1=e.length)return!1;var i=Bi(e,t);if(i<=r)return!1;var n=t+i;return n===e.length||Gi(e,n)}return!1}function Hi(e,t,r,i,n){if(!e.samplerate){var a=function(e,t,r,i){var n,a,s,o,l=navigator.userAgent.toLowerCase(),u=i,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];n=1+((192&t[r+2])>>>6);var d=(60&t[r+2])>>>2;if(!(d>h.length-1))return s=(1&t[r+2])<<2,s|=(192&t[r+3])>>>6,w.log("manifest codec:"+i+", ADTS type:"+n+", samplingIndex:"+d),/firefox/i.test(l)?d>=6?(n=5,o=new Array(4),a=d-3):(n=2,o=new Array(2),a=d):-1!==l.indexOf("android")?(n=2,o=new Array(2),a=d):(n=5,o=new Array(4),i&&(-1!==i.indexOf("mp4a.40.29")||-1!==i.indexOf("mp4a.40.5"))||!i&&d>=6?a=d-3:((i&&-1!==i.indexOf("mp4a.40.2")&&(d>=6&&1===s||/vivaldi/i.test(l))||!i&&1===s)&&(n=2,o=new Array(2)),a=d)),o[0]=n<<3,o[0]|=(14&d)>>1,o[1]|=(1&d)<<7,o[1]|=s<<3,5===n&&(o[1]|=(14&a)>>1,o[2]=(1&a)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:h[d],channelCount:s,codec:"mp4a.40."+n,manifestCodec:u};var c=new Error("invalid ADTS sampling index:"+d);e.emit(S.ERROR,S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!0,error:c,reason:c.message})}(t,r,i,n);if(!a)return;e.config=a.config,e.samplerate=a.samplerate,e.channelCount=a.channelCount,e.codec=a.codec,e.manifestCodec=a.manifestCodec,w.log("parsed codec:"+e.codec+", rate:"+a.samplerate+", channels:"+a.channelCount)}}function Vi(e){return 9216e4/e}function Yi(e,t,r,i,n){var a,s=i+n*Vi(e.samplerate),o=function(e,t){var r=Ui(e,t);if(t+r<=e.length){var i=Bi(e,t)-r;if(i>0)return{headerLength:r,frameLength:i}}}(t,r);if(o){var l=o.frameLength,u=o.headerLength,h=u+l,d=Math.max(0,r+h-t.length);d?(a=new Uint8Array(h-u)).set(t.subarray(r+u,t.length),0):a=t.subarray(r+u,r+h);var c={unit:a,pts:s};return d||e.samples.push(c),{sample:c,length:h,missing:d}}var f=t.length-r;return(a=new Uint8Array(f)).set(t.subarray(r,t.length),0),{sample:{unit:a,pts:s},length:f,missing:-1}}var Wi=null,ji=[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],qi=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Xi=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],zi=[0,1,1,4];function Qi(e,t,r,i,n){if(!(r+24>t.length)){var a=Ji(t,r);if(a&&r+a.frameLength<=t.length){var s=i+n*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:t.subarray(r,r+a.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(o),{sample:o,length:a.frameLength,missing:0}}}}function Ji(e,t){var r=e[t+1]>>3&3,i=e[t+1]>>1&3,n=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==r&&0!==n&&15!==n&&3!==a){var s=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*ji[14*(3===r?3-i:3===i?3:4)+n-1],u=qi[3*(3===r?0:2===r?1:2)+a],h=3===o?1:2,d=Xi[r][i],c=zi[i],f=8*d*c,g=Math.floor(d*l/u+s)*c;if(null===Wi){var v=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Wi=v?parseInt(v[1]):0}return!!Wi&&Wi<=87&&2===i&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:h,frameLength:g,samplesPerFrame:f}}}function $i(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function Zi(e,t){return t+18&&109===e[r+4]&&111===e[r+5]&&111===e[r+6]&&102===e[r+7])return!0;r=i>1?r+i:t}return!1}(e)},t.demux=function(e,t){this.timeOffset=t;var r=e,i=this.videoTrack,n=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=je(this.remainderData,e));var a=function(e){var t={valid:null,remainder:null},r=Ne(e,["moof"]);if(r.length<2)return t.remainder=e,t;var i=r[r.length-1];return t.valid=ue(e,0,i.byteOffset-8),t.remainder=ue(e,i.byteOffset-8),t}(r);this.remainderData=a.remainder,i.samples=a.valid||new Uint8Array}else i.samples=r;var s=this.extractID3Track(i,t);return n.samples=qe(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}},t.flush=function(){var e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var i=this.extractID3Track(t,this.timeOffset);return r.samples=qe(e,t),{videoTrack:t,audioTrack:Fi(),id3Track:i,textTrack:Fi()}},t.extractID3Track=function(e,t){var r=this.id3Track;if(e.samples.length){var i=Ne(e.samples,["emsg"]);i&&i.forEach((function(e){var i=function(e){var t=e[0],r="",i="",n=0,a=0,s=0,o=0,l=0,u=0;if(0===t){for(;"\0"!==_e(e.subarray(u,u+1));)r+=_e(e.subarray(u,u+1)),u+=1;for(r+=_e(e.subarray(u,u+1)),u+=1;"\0"!==_e(e.subarray(u,u+1));)i+=_e(e.subarray(u,u+1)),u+=1;i+=_e(e.subarray(u,u+1)),u+=1,n=Pe(e,12),a=Pe(e,16),o=Pe(e,20),l=Pe(e,24),u=28}else if(1===t){n=Pe(e,u+=4);var h=Pe(e,u+=4),d=Pe(e,u+=4);for(u+=4,s=Math.pow(2,32)*h+d,E(s)||(s=Number.MAX_SAFE_INTEGER,w.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Pe(e,u),l=Pe(e,u+=4),u+=4;"\0"!==_e(e.subarray(u,u+1));)r+=_e(e.subarray(u,u+1)),u+=1;for(r+=_e(e.subarray(u,u+1)),u+=1;"\0"!==_e(e.subarray(u,u+1));)i+=_e(e.subarray(u,u+1)),u+=1;i+=_e(e.subarray(u,u+1)),u+=1}return{schemeIdUri:r,value:i,timeScale:n,presentationTime:s,presentationTimeDelta:a,eventDuration:o,id:l,payload:e.subarray(u,e.byteLength)}}(e);if(rn.test(i.schemeIdUri)){var n=y(i.presentationTime)?i.presentationTime/i.timeScale:t+i.presentationTimeDelta/i.timeScale,a=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;a<=.001&&(a=Number.POSITIVE_INFINITY);var s=i.payload;r.samples.push({data:s,len:s.byteLength,dts:n,pts:n,type:Xt,duration:a})}}))}return r},t.demuxSampleAes=function(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},t.destroy=function(){},e}(),an=function(e,t){var r=0,i=5;t+=i;for(var n=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);i>0;){s[0]=e[t];var o=Math.min(i,8),l=8-o;a[0]=4278190080>>>24+l<>l,r=r?r<t.length)return-1;if(11!==t[r]||119!==t[r+1])return-1;var a=t[r+4]>>6;if(a>=3)return-1;var s=[48e3,44100,32e3][a],o=63&t[r+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+a];if(r+l>t.length)return-1;var u=t[r+6]>>5,h=0;2===u?h+=2:(1&u&&1!==u&&(h+=2),4&u&&(h+=2));var d=(t[r+6]<<8|t[r+7])>>12-h&1,c=[2,1,2,3,3,4,4,5][u]+d,f=t[r+5]>>3,g=7&t[r+5],v=new Uint8Array([a<<6|f<<1|g>>2,(3&g)<<6|u<<3|d<<2|o>>4,o<<4&224]),m=i+n*(1536/s*9e4),p=t.subarray(r,r+l);return e.config=v,e.channelCount=c,e.samplerate=s,e.samples.push({unit:p,pts:m}),l}var ln=function(){function e(){this.VideoSample=null}var t=e.prototype;return t.createVideoSample=function(e,t,r,i){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:i,length:0}},t.getLastNalUnit=function(e){var t,r,i=this.VideoSample;if(i&&0!==i.units.length||(i=e[e.length-1]),null!=(t=i)&&t.units){var n=i.units;r=n[n.length-1]}return r},t.pushAccessUnit=function(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var r=t.samples,i=r.length;if(!i)return void t.dropped++;var n=r[i-1];e.pts=n.pts,e.dts=n.dts}t.samples.push(e)}e.debug.length&&w.log(e.pts+"/"+e.dts+":"+e.debug)},e}(),un=function(){function e(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}var t=e.prototype;return t.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,i=new Uint8Array(4),n=Math.min(4,t);if(0===n)throw new Error("no bytes available");i.set(e.subarray(r,r+n)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*n,this.bytesAvailable-=n},t.skipBits=function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,e-=(t=e>>3)<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},t.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;if(e>32&&w.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?r<>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},t.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.skipEG=function(){this.skipBits(1+this.skipLZ())},t.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},t.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},t.readBoolean=function(){return 1===this.readBits(1)},t.readUByte=function(){return this.readBits(8)},t.readUShort=function(){return this.readBits(16)},t.readUInt=function(){return this.readBits(32)},t.skipScalingList=function(e){for(var t=8,r=8,i=0;i4){var f=new un(c).readSliceType();2!==f&&4!==f&&7!==f&&9!==f||(h=!0)}h&&null!=(d=l)&&d.frame&&!l.key&&(s.pushAccessUnit(l,e),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.frame=!0,l.key=h;break;case 5:a=!0,null!=(o=l)&&o.frame&&!l.key&&(s.pushAccessUnit(l,e),l=s.VideoSample=null),l||(l=s.VideoSample=s.createVideoSample(!0,r.pts,r.dts,"")),l.key=!0,l.frame=!0;break;case 6:a=!0,ze(i.data,1,r.pts,t.samples);break;case 7:var g,v;a=!0,u=!0;var m=i.data,p=new un(m).readSPS();if(!e.sps||e.width!==p.width||e.height!==p.height||(null==(g=e.pixelRatio)?void 0:g[0])!==p.pixelRatio[0]||(null==(v=e.pixelRatio)?void 0:v[1])!==p.pixelRatio[1]){e.width=p.width,e.height=p.height,e.pixelRatio=p.pixelRatio,e.sps=[m],e.duration=n;for(var y=m.subarray(1,4),E="avc1.",T=0;T<3;T++){var S=y[T].toString(16);S.length<2&&(S="0"+S),E+=S}e.codec=E}break;case 8:a=!0,e.pps=[i.data];break;case 9:a=!0,e.audFound=!0,l&&s.pushAccessUnit(l,e),l=s.VideoSample=s.createVideoSample(!1,r.pts,r.dts,"");break;case 12:a=!0;break;default:a=!1,l&&(l.debug+="unknown NAL "+i.type+" ")}l&&a&&l.units.push(i)})),i&&l&&(this.pushAccessUnit(l,e),this.VideoSample=null)},r.parseAVCNALu=function(e,t){var r,i,n=t.byteLength,a=e.naluState||0,s=a,o=[],l=0,u=-1,h=0;for(-1===a&&(u=0,h=31&t[0],a=0,l=1);l=0){var d={data:t.subarray(u,i),type:h};o.push(d)}else{var c=this.getLastNalUnit(e.samples);c&&(s&&l<=4-s&&c.state&&(c.data=c.data.subarray(0,c.data.byteLength-s)),i>0&&(c.data=je(c.data,t.subarray(0,i)),c.state=0))}l=0&&a>=0){var f={data:t.subarray(u,n),type:h,state:a};o.push(f)}if(0===o.length){var g=this.getLastNalUnit(e.samples);g&&(g.data=je(g.data,t))}return e.naluState=a,o},t}(ln),dn=function(){function e(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new yi(t,{removePKCS7Padding:!1})}var t=e.prototype;return t.decryptBuffer=function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)},t.decryptAacSample=function(e,t,r){var i=this,n=e[t].unit;if(!(n.length<=16)){var a=n.subarray(16,n.length-n.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then((function(a){var s=new Uint8Array(a);n.set(s,16),i.decrypter.isSync()||i.decryptAacSamples(e,t+1,r)}))}},t.decryptAacSamples=function(e,t,r){for(;;t++){if(t>=e.length)return void r();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,r),this.decrypter.isSync())))return}},t.getAvcEncryptedData=function(e){for(var t=16*Math.floor((e.length-48)/160)+16,r=new Int8Array(t),i=0,n=32;n=e.length)return void i();for(var n=e[t].units;!(r>=n.length);r++){var a=n[r];if(!(a.data.length<=48||1!==a.type&&5!==a.type||(this.decryptAvcSample(e,t,r,i,a),this.decrypter.isSync())))return}}},e}(),cn=188,fn=function(){function e(e,t,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.videoParser=new hn}e.probe=function(t){var r=e.syncOffset(t);return r>0&&w.warn("MPEG2-TS detected but first sync word found @ offset "+r),-1!==r},e.syncOffset=function(e){for(var t=e.length,r=Math.min(940,t-cn)+1,i=0;i1&&(0===a&&s>2||o+cn>r))return a}i++}return-1},e.createTrack=function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:Ce[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}};var t=e.prototype;return t.resetInitSegment=function(t,r,i,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=e.createTrack("video"),this._audioTrack=e.createTrack("audio",n),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=r,this.videoCodec=i,this._duration=n},t.resetTimeStamp=function(){},t.resetContiguity=function(){var e=this._audioTrack,t=this._videoTrack,r=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null},t.demux=function(t,r,i,n){var a;void 0===i&&(i=!1),void 0===n&&(n=!1),i||(this.sampleAes=null);var s=this._videoTrack,o=this._audioTrack,l=this._id3Track,u=this._txtTrack,h=s.pid,d=s.pesData,c=o.pid,f=l.pid,g=o.pesData,v=l.pesData,m=null,p=this.pmtParsed,y=this._pmtId,E=t.length;if(this.remainderData&&(E=(t=je(this.remainderData,t)).length,this.remainderData=null),E>4>1){if((k=L+5+t[L+4])===L+cn)continue}else k=L+4;switch(R){case h:A&&(d&&(a=En(d))&&this.videoParser.parseAVCPES(s,u,a,!1,this._duration),d={data:[],size:0}),d&&(d.data.push(t.subarray(k,L+cn)),d.size+=L+cn-k);break;case c:if(A){if(g&&(a=En(g)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,a);break;case"mp3":this.parseMPEGPES(o,a);break;case"ac3":this.parseAC3PES(o,a)}g={data:[],size:0}}g&&(g.data.push(t.subarray(k,L+cn)),g.size+=L+cn-k);break;case f:A&&(v&&(a=En(v))&&this.parseID3PES(l,a),v={data:[],size:0}),v&&(v.data.push(t.subarray(k,L+cn)),v.size+=L+cn-k);break;case 0:A&&(k+=t[k]+1),y=this._pmtId=vn(t,k);break;case y:A&&(k+=t[k]+1);var b=mn(t,k,this.typeSupported,i,this.observer);(h=b.videoPid)>0&&(s.pid=h,s.segmentCodec=b.segmentVideoCodec),(c=b.audioPid)>0&&(o.pid=c,o.segmentCodec=b.segmentAudioCodec),(f=b.id3Pid)>0&&(l.pid=f),null===m||p||(w.warn("MPEG-TS PMT found at "+L+" after unknown PID '"+m+"'. Backtracking to sync byte @"+T+" to parse all TS packets."),m=null,L=T-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:m=R}}else S++;S>0&&pn(this.observer,new Error("Found "+S+" TS packet/s that do not start with 0x47")),s.pesData=d,o.pesData=g,l.pesData=v;var D={audioTrack:o,videoTrack:s,id3Track:l,textTrack:u};return n&&this.extractRemainingSamples(D),D},t.flush=function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e},t.extractRemainingSamples=function(e){var t,r=e.audioTrack,i=e.videoTrack,n=e.id3Track,a=e.textTrack,s=i.pesData,o=r.pesData,l=n.pesData;if(s&&(t=En(s))?(this.videoParser.parseAVCPES(i,a,t,!0,this._duration),i.pesData=null):i.pesData=s,o&&(t=En(o))){switch(r.segmentCodec){case"aac":this.parseAACPES(r,t);break;case"mp3":this.parseMPEGPES(r,t);break;case"ac3":this.parseAC3PES(r,t)}r.pesData=null}else null!=o&&o.size&&w.log("last AAC PES packet truncated,might overlap between fragments"),r.pesData=o;l&&(t=En(l))?(this.parseID3PES(n,t),n.pesData=null):n.pesData=l},t.demuxSampleAes=function(e,t,r){var i=this.demux(e,r,!0,!this.config.progressive),n=this.sampleAes=new dn(this.observer,this.config,t);return this.decrypt(i,n)},t.decrypt=function(e,t){return new Promise((function(r){var i=e.audioTrack,n=e.videoTrack;i.samples&&"aac"===i.segmentCodec?t.decryptAacSamples(i.samples,0,(function(){n.samples?t.decryptAvcSamples(n.samples,0,0,(function(){r(e)})):r(e)})):n.samples&&t.decryptAvcSamples(n.samples,0,0,(function(){r(e)}))}))},t.destroy=function(){this._duration=0},t.parseAACPES=function(e,t){var r,i,n,a=0,s=this.aacOverFlow,o=t.data;if(s){this.aacOverFlow=null;var l=s.missing,u=s.sample.unit.byteLength;if(-1===l)o=je(s.sample.unit,o);else{var h=u-l;s.sample.unit.set(o.subarray(0,l),h),e.samples.push(s.sample),a=s.missing}}for(r=a,i=o.length;r0;)o+=n;else w.warn("[tsdemuxer]: AC3 PES unknown PTS")},t.parseID3PES=function(e,t){if(void 0!==t.pts){var r=o({},t,{type:this._videoTrack?Xt:jt,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}else w.warn("[tsdemuxer]: ID3 PES unknown PTS")},e}();function gn(e,t){return((31&e[t+1])<<8)+e[t+2]}function vn(e,t){return(31&e[t+10])<<8|e[t+11]}function mn(e,t,r,i,n){var a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t0)for(var u=t+5,h=l;h>2;){106===e[u]&&(!0!==r.ac3?w.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=o,a.segmentAudioCodec="ac3"));var d=e[u+1]+2;u+=d,h-=d}break;case 194:case 135:return pn(n,new Error("Unsupported EC-3 in M2TS found")),a;case 36:return pn(n,new Error("Unsupported HEVC in M2TS found")),a}t+=l+5}return a}function pn(e,t,r){w.warn("parsing error: "+t.message),e.emit(S.ERROR,S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,levelRetry:r,error:t,reason:t.message})}function yn(e){w.log(e+" with AES-128-CBC encryption found in unencrypted stream")}function En(e){var t,r,i,n,a,s=0,o=e.data;if(!e||0===e.size)return null;for(;o[0].length<19&&o.length>1;)o[0]=je(o[0],o[1]),o.splice(1,1);if(1===((t=o[0])[0]<<16)+(t[1]<<8)+t[2]){if((r=(t[4]<<8)+t[5])&&r>e.size-6)return null;var l=t[7];192&l&&(n=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&l?n-(a=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(w.warn(Math.round((n-a)/9e4)+"s delta between PTS and DTS, align them"),n=a):a=n);var u=(i=t[8])+9;if(e.size<=u)return null;e.size-=u;for(var h=new Uint8Array(e.size),d=0,c=o.length;df){u-=f;continue}t=t.subarray(u),f-=u,u=0}h.set(t,s),s+=f}return r&&(r-=i+3),{data:h,pts:n,dts:a,len:r}}return null}var Tn=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var r=t.prototype;return r.resetInitSegment=function(t,r,i,n){e.prototype.resetInitSegment.call(this,t,r,i,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:r,duration:n,inputTimeScale:9e4,dropped:0}},t.probe=function(e){if(!e)return!1;var t=fe(e,0),r=(null==t?void 0:t.length)||0;if(t&&11===e[r]&&119===e[r+1]&&void 0!==me(t)&&an(e,r)<=16)return!1;for(var i=e.length;r1?r-1:0),n=1;n>24&255,o[1]=t>>16&255,o[2]=t>>8&255,o[3]=255&t,o.set(e,4),a=0,t=8;a>24&255,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,85,196,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))},e.mfhd=function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},e.minf=function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))},e.moof=function(t,r,i){return e.box(e.types.moof,e.mfhd(t),e.traf(i,r))},e.moov=function(t){for(var r=t.length,i=[];r--;)i[r]=e.trak(t[r]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(i).concat(e.mvex(t)))},e.mvex=function(t){for(var r=t.length,i=[];r--;)i[r]=e.trex(t[r]);return e.box.apply(null,[e.types.mvex].concat(i))},e.mvhd=function(t,r){r*=t;var i=Math.floor(r/(Ln+1)),n=Math.floor(r%(Ln+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,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 e.box(e.types.mvhd,a)},e.sdtp=function(t){var r,i,n=t.samples||[],a=new Uint8Array(4+n.length);for(r=0;r>>8&255),a.push(255&n),a=a.concat(Array.prototype.slice.call(i));for(r=0;r>>8&255),s.push(255&n),s=s.concat(Array.prototype.slice.call(i));var o=e.box(e.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|t.sps.length].concat(a).concat([t.pps.length]).concat(s))),l=t.width,u=t.height,h=t.pixelRatio[0],d=t.pixelRatio[1];return e.box(e.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]),o,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,d>>24,d>>16&255,d>>8&255,255&d])))},e.esds=function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))},e.audioStsd=function(e){var t=e.samplerate;return 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,t>>8&255,255&t,0,0])},e.mp4a=function(t){return e.box(e.types.mp4a,e.audioStsd(t),e.box(e.types.esds,e.esds(t)))},e.mp3=function(t){return e.box(e.types[".mp3"],e.audioStsd(t))},e.ac3=function(t){return e.box(e.types["ac-3"],e.audioStsd(t),e.box(e.types.dac3,t.config))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?e.box(e.types.stsd,e.STSD,e.mp3(t)):"ac3"===t.segmentCodec?e.box(e.types.stsd,e.STSD,e.ac3(t)):e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))},e.tkhd=function(t){var r=t.id,i=t.duration*t.timescale,n=t.width,a=t.height,s=Math.floor(i/(Ln+1)),o=Math.floor(i%(Ln+1));return e.box(e.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,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,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,n>>8&255,255&n,0,0,a>>8&255,255&a,0,0]))},e.traf=function(t,r){var i=e.sdtp(t),n=t.id,a=Math.floor(r/(Ln+1)),s=Math.floor(r%(Ln+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),e.trun(t,i.length+16+20+8+16+8+8),i)},e.trak=function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.trex=function(t){var r=t.id;return e.box(e.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]))},e.trun=function(t,r){var i,n,a,s,o,l,u=t.samples||[],h=u.length,d=12+16*h,c=new Uint8Array(d);for(r+=8+d,c.set(["video"===t.type?1:0,0,15,1,h>>>24&255,h>>>16&255,h>>>8&255,255&h,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,l>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*i);return e.box(e.types.trun,c)},e.initSegment=function(t){e.types||e.init();var r=e.moov(t);return je(e.FTYP,r)},e}();An.types=void 0,An.HDLR_TYPES=void 0,An.STTS=void 0,An.STSC=void 0,An.STCO=void 0,An.STSZ=void 0,An.VMHD=void 0,An.SMHD=void 0,An.STSD=void 0,An.FTYP=void 0,An.DINF=void 0;var Rn=9e4;function kn(e,t,r,i){void 0===r&&(r=1),void 0===i&&(i=!1);var n=e*t*r;return i?Math.round(n):n}function bn(e,t){return void 0===t&&(t=!1),kn(e,1e3,1/Rn,t)}var Dn=null,In=null,wn=function(){function e(e,t,r,i){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,null===Dn){var n=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Dn=n?parseInt(n[1]):0}if(null===In){var a=navigator.userAgent.match(/Safari\/(\d+)/i);In=a?parseInt(a[1]):0}}var t=e.prototype;return t.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},t.resetTimeStamp=function(e){w.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e},t.resetNextTimestamp=function(){w.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},t.resetInitSegment=function(){w.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},t.getVideoStartPts=function(e){var t=!1,r=e[0].pts,i=e.reduce((function(e,i){var n=i.pts,a=n-e;return a<-4294967296&&(t=!0,a=(n=Cn(n,r))-e),a>0?e:n}),r);return t&&w.debug("PTS rollover detected"),i},t.remux=function(e,t,r,i,n,a,s,o){var l,u,h,d,c,f,g=n,v=n,m=e.pid>-1,p=t.pid>-1,y=t.samples.length,E=e.samples.length>0,T=s&&y>0||y>1;if((!m||E)&&(!p||T)||this.ISGenerated||s){if(this.ISGenerated){var S,L,A,R,k=this.videoTrackConfig;!k||t.width===k.width&&t.height===k.height&&(null==(S=t.pixelRatio)?void 0:S[0])===(null==(L=k.pixelRatio)?void 0:L[0])&&(null==(A=t.pixelRatio)?void 0:A[1])===(null==(R=k.pixelRatio)?void 0:R[1])||this.resetInitSegment()}else h=this.generateIS(e,t,n,a);var b,D=this.isVideoContiguous,I=-1;if(T&&(I=function(e){for(var t=0;t0){w.warn("[mp4-remuxer]: Dropped "+I+" out of "+y+" video samples due to a missing keyframe");var C=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(I),t.dropped+=I,b=v+=(t.samples[0].pts-C)/t.inputTimeScale}else-1===I&&(w.warn("[mp4-remuxer]: No keyframe found out of "+y+" video samples"),f=!1);if(this.ISGenerated){if(E&&T){var _=this.getVideoStartPts(t.samples),x=(Cn(e.samples[0].pts,_)-_)/t.inputTimeScale;g+=Math.max(0,x),v+=Math.max(0,-x)}if(E){if(e.samplerate||(w.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,n,a)),u=this.remuxAudio(e,g,this.isAudioContiguous,a,p||T||o===Ot?v:void 0),T){var P=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(w.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,n,a)),l=this.remuxVideo(t,v,D,P)}}else T&&(l=this.remuxVideo(t,v,D,0));l&&(l.firstKeyFrame=I,l.independent=-1!==I,l.firstKeyFramePTS=b)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(c=_n(r,n,this._initPTS,this._initDTS)),i.samples.length&&(d=xn(i,n,this._initPTS))),{audio:u,video:l,initSegment:h,independent:f,text:d,id3:c}},t.generateIS=function(e,t,r,i){var n,a,s,o=e.samples,l=t.samples,u=this.typeSupported,h={},d=this._initPTS,c=!d||i,f="audio/mp4";if(c&&(n=a=1/0),e.config&&o.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(f="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}h.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&u.mpeg?new Uint8Array(0):An.initSegment([e]),metadata:{channelCount:e.channelCount}},c&&(s=e.inputTimeScale,d&&s===d.timescale?c=!1:n=a=o[0].pts-Math.round(s*r))}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:An.initSegment([t]),metadata:{width:t.width,height:t.height}},c)if(s=t.inputTimeScale,d&&s===d.timescale)c=!1;else{var g=this.getVideoStartPts(l),v=Math.round(s*r);a=Math.min(a,Cn(l[0].dts,g)-v),n=Math.min(n,g-v)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,c?(this._initPTS={baseTime:n,timescale:s},this._initDTS={baseTime:a,timescale:s}):n=s=void 0,{tracks:h,initPTS:n,timescale:s}},t.remuxVideo=function(e,t,r,i){var n,a,s=e.inputTimeScale,l=e.samples,u=[],h=l.length,d=this._initPTS,c=this.nextAvcDts,f=8,g=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,m=Number.NEGATIVE_INFINITY,p=!1;if(!r||null===c){var y=t*s,E=l[0].pts-Cn(l[0].dts,l[0].pts);Dn&&null!==c&&Math.abs(y-E-c)<15e3?r=!0:c=y-E}for(var T=d.baseTime*s/d.timescale,R=0;R0?R-1:R].dts&&(p=!0)}p&&l.sort((function(e,t){var r=e.dts-t.dts,i=e.pts-t.pts;return r||i})),n=l[0].dts;var b=(a=l[l.length-1].dts)-n,D=b?Math.round(b/(h-1)):g||e.inputTimeScale/30;if(r){var I=n-c,C=I>D,_=I<-1;if((C||_)&&(C?w.warn("AVC: "+bn(I,!0)+" ms ("+I+"dts) hole between fragments detected at "+t.toFixed(3)):w.warn("AVC: "+bn(-I,!0)+" ms ("+I+"dts) overlapping between fragments detected at "+t.toFixed(3)),!_||c>=l[0].pts||Dn)){n=c;var x=l[0].pts-I;if(C)l[0].dts=n,l[0].pts=x;else for(var P=0;Px);P++)l[P].dts-=I,l[P].pts-=I;w.log("Video: Initial PTS/DTS adjusted: "+bn(x,!0)+"/"+bn(n,!0)+", delta: "+bn(I,!0)+" ms")}}for(var F=0,M=0,O=n=Math.max(0,n),N=0;N0?$.dts-l[J-1].dts:D;if(se=J>0?$.pts-l[J-1].pts:D,oe.stretchShortVideoTrack&&null!==this.nextAudioPts){var ue=Math.floor(oe.maxBufferHole*s),he=(i?v+i*s:this.nextAudioPts)-$.pts;he>ue?((g=he-le)<0?g=le:j=!0,w.log("[mp4-remuxer]: It is approximately "+he/90+" ms to the next segment; using duration "+g/90+" ms for the last video frame.")):g=le}else g=le}var de=Math.round($.pts-$.dts);q=Math.min(q,g),z=Math.max(z,g),X=Math.min(X,se),Q=Math.max(Q,se),u.push(new Fn($.key,g,ee,de))}if(u.length)if(Dn){if(Dn<70){var ce=u[0].flags;ce.dependsOn=2,ce.isNonSync=0}}else if(In&&Q-X0&&(i&&Math.abs(p-m)<9e3||Math.abs(Cn(g[0].pts-y,p)-m)<20*u),g.forEach((function(e){e.pts=Cn(e.pts-y,p)})),!r||m<0){if(g=g.filter((function(e){return e.pts>=0})),!g.length)return;m=0===n?0:i&&!f?Math.max(0,p):g[0].pts}if("aac"===e.segmentCodec)for(var E=this.config.maxAudioFramesDrift,T=0,R=m;T=E*u&&I<1e4&&f){var C=Math.round(D/u);(R=b-C*u)<0&&(C--,R+=u),0===T&&(this.nextAudioPts=m=R),w.warn("[mp4-remuxer]: Injecting "+C+" audio frame @ "+(R/a).toFixed(3)+"s due to "+Math.round(1e3*D/a)+" ms gap.");for(var _=0;_0))return;N+=v;try{F=new Uint8Array(N)}catch(e){return void this.observer.emit(S.ERROR,S.ERROR,{type:L.MUX_ERROR,details:A.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:N,reason:"fail allocating audio mdat "+N})}d||(new DataView(F.buffer).setUint32(0,N),F.set(An.types.mdat,4))}F.set(H,v);var Y=H.byteLength;v+=Y,c.push(new Fn(!0,l,Y,0)),O=V}var W=c.length;if(W){var j=c[c.length-1];this.nextAudioPts=m=O+s*j.duration;var q=d?new Uint8Array(0):An.moof(e.sequenceNumber++,M/s,o({},e,{samples:c}));e.samples=[];var X=M/a,z=m/a,Q={data1:q,data2:F,startPTS:X,endPTS:z,startDTS:X,endDTS:z,type:"audio",hasAudio:!0,hasVideo:!1,nb:W};return this.isAudioContiguous=!0,Q}},t.remuxEmptyAudio=function(e,t,r,i){var n=e.inputTimeScale,a=n/(e.samplerate?e.samplerate:n),s=this.nextAudioPts,o=this._initDTS,l=9e4*o.baseTime/o.timescale,u=(null!==s?s:i.startDTS*n)+l,h=i.endDTS*n+l,d=1024*a,c=Math.ceil((h-u)/d),f=Sn.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(w.warn("[mp4-remuxer]: remux empty Audio"),f){for(var g=[],v=0;v4294967296;)e+=r;return e}function _n(e,t,r,i){var n=e.samples.length;if(n){for(var a=e.inputTimeScale,s=0;s0;n||(i=Ne(t,["encv"])),i.forEach((function(e){Ne(n?e.subarray(28):e.subarray(78),["sinf"]).forEach((function(e){var t=Ye(e);if(t){var i=t.subarray(8,24);i.some((function(e){return 0!==e}))||(w.log("[eme] Patching keyId in 'enc"+(n?"a":"v")+">sinf>>tenc' box: "+De.hexDump(i)+" -> "+De.hexDump(r)),t.set(r,8))}}))}))})),e}(e,i)),this.emitInitSegment=!0},t.generateInitSegment=function(e){var t=this.audioCodec,r=this.videoCodec;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var i=this.initData=Be(e);i.audio&&(t=On(i.audio,O)),i.video&&(r=On(i.video,N));var n={};i.audio&&i.video?n.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:i.audio?n.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?n.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:w.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n},t.remux=function(e,t,r,i,n,a){var s,o,l=this.initPTS,u=this.lastEndTime,h={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};y(u)||(u=this.lastEndTime=n||0);var d=t.samples;if(null==d||!d.length)return h;var c={initPTS:void 0,timescale:1},f=this.initData;if(null!=(s=f)&&s.length||(this.generateInitSegment(d),f=this.initData),null==(o=f)||!o.length)return w.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(c.tracks=this.initTracks,this.emitInitSegment=!1);var g=function(e,t){for(var r=0,i=0,n=0,a=Ne(e,["moof","traf"]),s=0;sn}(l,m,n,g)||c.timescale!==l.timescale&&a)&&(c.initPTS=m-n,l&&1===l.timescale&&w.warn("Adjusting initPTS by "+(c.initPTS-l.baseTime)),this.initPTS=l={baseTime:c.initPTS,timescale:1});var p=e?m-l.baseTime/l.timescale:u,E=p+g;!function(e,t,r){Ne(t,["moof","traf"]).forEach((function(t){Ne(t,["tfhd"]).forEach((function(i){var n=Pe(i,4),a=e[n];if(a){var s=a.timescale||9e4;Ne(t,["tfdt"]).forEach((function(e){var t=e[0],i=r*s;if(i){var n=Pe(e,4);if(0===t)n-=i,Oe(e,4,n=Math.max(n,0));else{n*=Math.pow(2,32),n+=Pe(e,8),n-=i,n=Math.max(n,0);var a=Math.floor(n/(Ie+1)),o=Math.floor(n%(Ie+1));Oe(e,4,a),Oe(e,8,o)}}}))}}))}))}(f,d,l.baseTime/l.timescale),g>0?this.lastEndTime=E:(w.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var T=!!f.audio,S=!!f.video,L="";T&&(L+="audio"),S&&(L+="video");var A={data1:d,startPTS:p,startDTS:p,endPTS:E,endDTS:E,type:L,hasAudio:T,hasVideo:S,nb:1,dropped:0};return h.audio="audio"===A.type?A:void 0,h.video="audio"!==A.type?A:void 0,h.initSegment=c,h.id3=_n(r,n,l,l),i.samples.length&&(h.text=xn(i,n,l)),h},e}();function On(e,t){var r=null==e?void 0:e.codec;if(r&&r.length>4)return r;if(t===O){if("ec-3"===r||"ac-3"===r||"alac"===r)return r;if("fLaC"===r||"Opus"===r)return mt(r,!1);var i="mp4a.40.5";return w.info('Parsed audio codec "'+r+'" or audio object type not handled. Using "'+i+'"'),i}return w.warn('Unhandled video codec "'+r+'"'),"hvc1"===r||"hev1"===r?"hvc1.1.6.L120.90":"av01"===r?"av01.0.04M.08":"avc1.42e01e"}try{Pn=self.performance.now.bind(self.performance)}catch(e){w.debug("Unable to use Performance API on this environment"),Pn=null==j?void 0:j.Date.now}var Nn=[{demux:nn,remux:Mn},{demux:fn,remux:wn},{demux:tn,remux:wn},{demux:Tn,remux:wn}];Nn.splice(2,0,{demux:sn,remux:wn});var Un=function(){function e(e,t,r,i,n){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.vendor=i,this.id=n}var t=e.prototype;return t.configure=function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()},t.push=function(e,t,r,i){var n=this,a=r.transmuxing;a.executeStart=Pn();var s=new Uint8Array(e),o=this.currentTransmuxState,l=this.transmuxConfig;i&&(this.currentTransmuxState=i);var u=i||o,h=u.contiguous,d=u.discontinuity,c=u.trackSwitch,f=u.accurateTimeOffset,g=u.timeOffset,v=u.initSegmentChange,m=l.audioCodec,p=l.videoCodec,y=l.defaultInitPts,E=l.duration,T=l.initSegmentData,R=function(e,t){var r=null;return e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(r=t),r}(s,t);if(R&&"AES-128"===R.method){var k=this.getDecrypter();if(!k.isSync())return this.decryptionPromise=k.webCryptoDecrypt(s,R.key.buffer,R.iv.buffer).then((function(e){var t=n.push(e,null,r);return n.decryptionPromise=null,t})),this.decryptionPromise;var b=k.softwareDecrypt(s,R.key.buffer,R.iv.buffer);if(r.part>-1&&(b=k.flush()),!b)return a.executeEnd=Pn(),Bn(r);s=new Uint8Array(b)}var D=this.needsProbing(d,c);if(D){var I=this.configureTransmuxer(s);if(I)return w.warn("[transmuxer] "+I.message),this.observer.emit(S.ERROR,S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:I,reason:I.message}),a.executeEnd=Pn(),Bn(r)}(d||c||v||D)&&this.resetInitSegment(T,m,p,E,t),(d||v||D)&&this.resetInitialTimestamp(y),h||this.resetContiguity();var C=this.transmux(s,R,g,f,r),_=this.currentTransmuxState;return _.contiguous=!0,_.discontinuity=!1,_.trackSwitch=!1,a.executeEnd=Pn(),C},t.flush=function(e){var t=this,r=e.transmuxing;r.executeStart=Pn();var i=this.decrypter,n=this.currentTransmuxState,a=this.decryptionPromise;if(a)return a.then((function(){return t.flush(e)}));var s=[],o=n.timeOffset;if(i){var l=i.flush();l&&s.push(this.push(l,null,e))}var u=this.demuxer,h=this.remuxer;if(!u||!h)return r.executeEnd=Pn(),[Bn(e)];var d=u.flush(o);return Gn(d)?d.then((function(r){return t.flushRemux(s,r,e),s})):(this.flushRemux(s,d,e),s)},t.flushRemux=function(e,t,r){var i=t.audioTrack,n=t.videoTrack,a=t.id3Track,s=t.textTrack,o=this.currentTransmuxState,l=o.accurateTimeOffset,u=o.timeOffset;w.log("[transmuxer.ts]: Flushed fragment "+r.sn+(r.part>-1?" p: "+r.part:"")+" of level "+r.level);var h=this.remuxer.remux(i,n,a,s,u,l,!0,this.id);e.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=Pn()},t.resetInitialTimestamp=function(e){var t=this.demuxer,r=this.remuxer;t&&r&&(t.resetTimeStamp(e),r.resetTimeStamp(e))},t.resetContiguity=function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())},t.resetInitSegment=function(e,t,r,i,n){var a=this.demuxer,s=this.remuxer;a&&s&&(a.resetInitSegment(e,t,r,i),s.resetInitSegment(e,t,r,n))},t.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},t.transmux=function(e,t,r,i,n){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,r,i,n):this.transmuxUnencrypted(e,r,i,n)},t.transmuxUnencrypted=function(e,t,r,i){var n=this.demuxer.demux(e,t,!1,!this.config.progressive),a=n.audioTrack,s=n.videoTrack,o=n.id3Track,l=n.textTrack;return{remuxResult:this.remuxer.remux(a,s,o,l,t,r,!1,this.id),chunkMeta:i}},t.transmuxSampleAes=function(e,t,r,i,n){var a=this;return this.demuxer.demuxSampleAes(e,t,r).then((function(e){return{remuxResult:a.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,r,i,!1,a.id),chunkMeta:n}}))},t.configureTransmuxer=function(e){for(var t,r=this.config,i=this.observer,n=this.typeSupported,a=this.vendor,s=0,o=Nn.length;s1&&l.id===(null==m?void 0:m.stats.chunkCount),L=!y&&(1===E||0===E&&(1===T||S&&T<=0)),A=self.performance.now();(y||E||0===n.stats.parsing.start)&&(n.stats.parsing.start=A),!a||!T&&L||(a.stats.parsing.start=A);var R=!(m&&(null==(h=n.initSegment)?void 0:h.url)===(null==(d=m.initSegment)?void 0:d.url)),k=new Hn(p,L,o,y,g,R);if(!L||p||R){w.log("[transmuxer-interface, "+n.type+"]: Starting new transmux session for sn: "+l.sn+" p: "+l.part+" level: "+l.level+" id: "+l.id+"\n discontinuity: "+p+"\n trackSwitch: "+y+"\n contiguous: "+L+"\n accurateTimeOffset: "+o+"\n timeOffset: "+g+"\n initSegmentChange: "+R);var b=new Kn(r,i,t,s,u);this.configureTransmuxer(b)}if(this.frag=n,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:v,chunkMeta:l,state:k},e instanceof ArrayBuffer?[e]:[]);else if(f){var D=f.push(e,v,l,k);Gn(D)?(f.async=!0,D.then((function(e){c.handleTransmuxComplete(e)})).catch((function(e){c.transmuxerError(e,l,"transmuxer-interface push error")}))):(f.async=!1,this.handleTransmuxComplete(D))}},r.flush=function(e){var t=this;e.transmuxing.start=self.performance.now();var r=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(r){var i=r.flush(e);Gn(i)||r.async?(Gn(i)||(i=Promise.resolve(i)),i.then((function(r){t.handleFlushResult(r,e)})).catch((function(r){t.transmuxerError(r,e,"transmuxer-interface flush error")}))):this.handleFlushResult(i,e)}},r.transmuxerError=function(e,t,r){this.hls&&(this.error=e,this.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))},r.handleFlushResult=function(e,t){var r=this;e.forEach((function(e){r.handleTransmuxComplete(e)})),this.onFlush(t)},r.onWorkerMessage=function(e){var t=e.data;if(null!=t&&t.event){var r=this.hls;if(this.hls)switch(t.event){case"init":var i,n=null==(i=this.workerContext)?void 0:i.objectURL;n&&self.URL.revokeObjectURL(n);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":w[t.data.logType]&&w[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data)}}else w.warn("worker message received with no "+(t?"event name":"data"))},r.configureTransmuxer=function(e){var t=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)},r.handleTransmuxComplete=function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)},t}(),zn=function(e){function t(t,r,i){var n;return(n=e.call(this,t,r,i,"[audio-stream-controller]",Ot)||this).videoBuffer=null,n.videoTrackCC=-1,n.waitingVideoCC=-1,n.bufferedTrack=null,n.switchingTrack=null,n.trackId=-1,n.waitingData=null,n.mainDetails=null,n.flushing=!1,n.bufferFlushed=!1,n.cachedTrackLoadedData=null,n._registerListeners(),n}l(t,e);var r=t.prototype;return r.onHandlerDestroying=function(){this._unregisterListeners(),e.prototype.onHandlerDestroying.call(this),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null},r._registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this),e.on(S.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(S.ERROR,this.onError,this),e.on(S.BUFFER_RESET,this.onBufferReset,this),e.on(S.BUFFER_CREATED,this.onBufferCreated,this),e.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(S.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(S.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this)},r._unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this),e.off(S.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(S.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(S.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(S.ERROR,this.onError,this),e.off(S.BUFFER_RESET,this.onBufferReset,this),e.off(S.BUFFER_CREATED,this.onBufferCreated,this),e.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(S.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(S.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this)},r.onInitPtsFound=function(e,t){var r=t.frag,i=t.id,n=t.initPTS,a=t.timescale;if("main"===i){var s=r.cc;this.initPTS[r.cc]={baseTime:n,timescale:a},this.log("InitPTS for cc: "+s+" found from main: "+n),this.videoTrackCC=s,this.state===Ci&&this.tick()}},r.startLoad=function(e){if(!this.levels)return this.startPosition=e,void(this.state=Ti);var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),t>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t,this.state=Si):(this.loadedmetadata=!1,this.state=ki),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()},r.doTick=function(){switch(this.state){case Si:this.doTickIdle();break;case ki:var t,r=this.levels,i=this.trackId,n=null==r||null==(t=r[i])?void 0:t.details;if(n){if(this.waitForCdnTuneIn(n))break;this.state=Ci}break;case Ri:var a,s=performance.now(),o=this.retryDate;if(!o||s>=o||null!=(a=this.media)&&a.seeking){var l=this.levels,u=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==l?void 0:l[u])||null),this.state=Si}break;case Ci:var h=this.waitingData;if(h){var d=h.frag,c=h.part,f=h.cache,g=h.complete;if(void 0!==this.initPTS[d.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=Ai;var v={frag:d,part:c,payload:f.flush(),networkDetails:null};this._handleFragmentLoadProgress(v),g&&e.prototype._handleFragmentLoadComplete.call(this,v)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+d.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var m=this.getLoadPosition(),p=ii.bufferInfo(this.mediaBuffer,m,this.config.maxBufferHole);kr(p.end,this.config.maxFragLookUpTolerance,d)<0&&(this.log("Waiting fragment cc ("+d.cc+") @ "+d.start+" cancelled because another fragment at "+p.end+" is needed"),this.clearWaitingFragment())}}else this.state=Si}this.onTickEnd()},r.clearWaitingFragment=function(){var e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Si)},r.resetLoadingState=function(){this.clearWaitingFragment(),e.prototype.resetLoadingState.call(this)},r.onTickEnd=function(){var e=this.media;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)},r.doTickIdle=function(){var e=this.hls,t=this.levels,r=this.media,i=this.trackId,n=e.config;if(this.buffering&&(r||!this.startFragRequested&&n.startFragPrefetch)&&null!=t&&t[i]){var a=t[i],s=a.details;if(!s||s.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(s))this.state=ki;else{var o=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&o&&(this.bufferFlushed=!1,this.afterBufferFlushed(o,O,Ot));var l=this.getFwdBufferInfo(o,Ot);if(null!==l){if(!this.switchingTrack&&this._streamEnded(l,s))return e.trigger(S.BUFFER_EOS,{type:"audio"}),void(this.state=Ii);var u=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Mt),h=l.len,d=this.getMaxBufferLength(null==u?void 0:u.len),c=s.fragments,f=c[0].start,g=this.getLoadPosition(),v=this.flushing?g:l.end;if(this.switchingTrack&&r){var m=g;s.PTSKnown&&mf||l.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=f+.05)}if(!(h>=d&&!this.switchingTrack&&vu.end+s.targetduration;if(E||(null==u||!u.len)&&l.len){var T=this.getAppendedFrag(p.start,Mt);if(null===T)return;if(y||(y=!!T.gap||!!E&&0===u.len),E&&!y||y&&l.nextStart&&l.nextStart-1)n=a[o];else{var l=Vr(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={audioTracks:a};this.log("Updating audio tracks, "+a.length+" track(s) found in group(s): "+(null==r?void 0:r.join(","))),this.hls.trigger(S.AUDIO_TRACKS_UPDATED,h);var d=this.trackId;if(-1!==u&&-1===d)this.setAudioTrack(u);else if(a.length&&-1===d){var c,f=new Error("No audio track selected for current audio group-ID(s): "+(null==(c=this.groupIds)?void 0:c.join(","))+" track count: "+a.length);this.warn(f.message),this.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:f})}}else this.shouldReloadPlaylist(n)&&this.setAudioTrack(this.trackId)}},r.onError=function(e,t){!t.fatal&&t.context&&(t.context.type!==Pt||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||(this.requestScheduled=-1,this.checkRetry(t)))},r.setAudioOption=function(e){var t=this.hls;if(t.config.audioPreference=e,e){var r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){var i=this.currentTrack;if(i&&Yr(e,i,Wr))return i;var n=Vr(e,this.tracksInGroup,Wr);if(n>-1){var a=this.tracksInGroup[n];return this.setAudioTrack(n),a}if(i){var s=t.loadLevel;-1===s&&(s=t.firstAutoLevel);var o=function(e,t,r,i,n){var a=t[i],s=t.reduce((function(e,t,r){var i=t.uri;return(e[i]||(e[i]=[])).push(r),e}),{})[a.uri];s.length>1&&(i=Math.max.apply(Math,s));var o=a.videoRange,l=a.frameRate,u=a.codecSet.substring(0,4),h=jr(t,i,(function(t){if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;var i=t.audioGroups,a=r.filter((function(e){return!i||-1!==i.indexOf(e.groupId)}));return Vr(e,a,n)>-1}));return h>-1?h:jr(t,i,(function(t){var i=t.audioGroups,a=r.filter((function(e){return!i||-1!==i.indexOf(e.groupId)}));return Vr(e,a,n)>-1}))}(e,t.levels,r,s,Wr);if(-1===o)return null;t.nextLoadLevel=o}if(e.channels||e.audioCodec){var l=Vr(e,r);if(l>-1)return r[l]}}}return null},r.setAudioTrack=function(e){var t=this.tracksInGroup;if(e<0||e>=t.length)this.warn("Invalid audio track id: "+e);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,n=t[e],a=n.details&&!n.details.live;if(!(e===this.trackId&&n===r&&a||(this.log("Switching to audio-track "+e+' "'+n.name+'" lang:'+n.lang+" group:"+n.groupId+" channels:"+n.channels),this.trackId=e,this.currentTrack=n,this.hls.trigger(S.AUDIO_TRACK_SWITCHING,i({},n)),a))){var s=this.switchParams(n.url,null==r?void 0:r.details,n.details);this.loadPlaylist(s)}}},r.findTrackId=function(e){for(var t=this.tracksInGroup,r=0;r=n[o].start&&s<=n[o].end){a=n[o];break}var l=r.start+r.duration;a?a.end=l:(a={start:s,end:l},n.push(a)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}}},r.onBufferFlushing=function(e,t){var r=t.startOffset,i=t.endOffset;if(0===r&&i!==Number.POSITIVE_INFINITY){var n=i-1;if(n<=0)return;t.endOffsetSubtitles=Math.max(0,n),this.tracksBuffered.forEach((function(e){for(var t=0;t=n.length)&&o){this.log("Subtitle track "+s+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+",duration:"+a.totalduration),this.mediaBuffer=this.mediaBufferTimeRanges;var l=0;if(a.live||null!=(r=o.details)&&r.live){var u=this.mainDetails;if(a.deltaUpdateFailed||!u)return;var h,d=u.fragments[0];o.details?0===(l=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details))&&d&&gr(a,l=d.start):a.hasProgramDateTime&&u.hasProgramDateTime?(ui(a,u),l=a.fragments[0].start):d&&gr(a,l=d.start)}o.details=a,this.levelLastLoaded=o,s===i&&(this.startFragRequested||!this.mainDetails&&a.live||this.setStartPosition(this.mainDetails||a,l),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===Si&&(Rr(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)))}}else this.warn("Subtitle tracks were reset while loading level "+s)},r._handleFragmentLoadComplete=function(e){var t=this,r=e.frag,i=e.payload,n=r.decryptdata,a=this.hls;if(!this.fragContextChanged(r)&&i&&i.byteLength>0&&null!=n&&n.key&&n.iv&&"AES-128"===n.method){var s=performance.now();this.decrypter.decrypt(new Uint8Array(i),n.key.buffer,n.iv.buffer).catch((function(e){throw a.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:r}),e})).then((function(e){var t=performance.now();a.trigger(S.FRAG_DECRYPTED,{frag:r,payload:e,stats:{tstart:s,tdecrypt:t}})})).catch((function(e){t.warn(e.name+": "+e.message),t.state=Si}))}},r.doTick=function(){if(this.media){if(this.state===Si){var e=this.currentTrackId,t=this.levels,r=null==t?void 0:t[e];if(!r||!t.length||!r.details)return;var i=this.config,n=this.getLoadPosition(),a=ii.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,i.maxBufferHole),s=a.end,o=a.len,l=this.getFwdBufferInfo(this.media,Mt),u=r.details;if(o>this.getMaxBufferLength(null==l?void 0:l.len)+u.levelTargetDuration)return;var h=u.fragments,d=h.length,c=u.edge,f=null,g=this.fragPrevious;if(sc-v?0:v;!(f=Rr(g,h,Math.max(h[0].start,s),m))&&g&&g.start>>=0)>i-1)throw new DOMException("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+r+") is greater than the maximum bound ("+i+")");return e[r][t]};this.buffered={get length(){return e.length},end:function(r){return t("end",r,e.length)},start:function(r){return t("start",r,e.length)}}},ra=function(e){function t(t){var r;return(r=e.call(this,t,"[subtitle-track-controller]")||this).media=null,r.tracks=[],r.groupIds=null,r.tracksInGroup=[],r.trackId=-1,r.currentTrack=null,r.selectDefaultTrack=!0,r.queuedDefaultTrack=-1,r.asyncPollTrackChange=function(){return r.pollTrackChange(0)},r.useTextTrackPolling=!1,r.subtitlePollingInterval=-1,r._subtitleDisplay=!0,r.onTextTracksChanged=function(){if(r.useTextTrackPolling||self.clearInterval(r.subtitlePollingInterval),r.media&&r.hls.config.renderTextTracksNatively){for(var e=null,t=Wt(r.media.textTracks),i=0;i-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))},r.pollTrackChange=function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)},r.onMediaDetaching=function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Wt(this.media.textTracks).forEach((function(e){Vt(e)})),this.subtitleTrack=-1,this.media=null)},r.onManifestLoading=function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0},r.onManifestParsed=function(e,t){this.tracks=t.subtitleTracks},r.onSubtitleTrackLoaded=function(e,t){var r=t.id,i=t.groupId,n=t.details,a=this.tracksInGroup[r];if(a&&a.groupId===i){var s=a.details;a.details=t.details,this.log("Subtitle track "+r+' "'+a.name+'" lang:'+a.lang+" group:"+i+" loaded ["+n.startSN+"-"+n.endSN+"]"),r===this.trackId&&this.playlistLoaded(r,t,s)}else this.warn("Subtitle track with id:"+r+" and group:"+i+" not found in active group "+(null==a?void 0:a.groupId))},r.onLevelLoading=function(e,t){this.switchLevel(t.level)},r.onLevelSwitching=function(e,t){this.switchLevel(t.level)},r.switchLevel=function(e){var t=this.hls.levels[e];if(t){var r=t.subtitleGroups||null,i=this.groupIds,n=this.currentTrack;if(!r||(null==i?void 0:i.length)!==(null==r?void 0:r.length)||null!=r&&r.some((function(e){return-1===(null==i?void 0:i.indexOf(e))}))){this.groupIds=r,this.trackId=-1,this.currentTrack=null;var a=this.tracks.filter((function(e){return!r||-1!==r.indexOf(e.groupId)}));if(a.length)this.selectDefaultTrack&&!a.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),a.forEach((function(e,t){e.id=t}));else if(!n&&!this.tracksInGroup.length)return;this.tracksInGroup=a;var s=this.hls.config.subtitlePreference;if(!n&&s){this.selectDefaultTrack=!1;var o=Vr(s,a);if(o>-1)n=a[o];else{var l=Vr(s,this.tracks);n=this.tracks[l]}}var u=this.findTrackId(n);-1===u&&n&&(u=this.findTrackId(null));var h={subtitleTracks:a};this.log("Updating subtitle tracks, "+a.length+' track(s) found in "'+(null==r?void 0:r.join(","))+'" group-id'),this.hls.trigger(S.SUBTITLE_TRACKS_UPDATED,h),-1!==u&&-1===this.trackId&&this.setSubtitleTrack(u)}else this.shouldReloadPlaylist(n)&&this.setSubtitleTrack(this.trackId)}},r.findTrackId=function(e){for(var t=this.tracksInGroup,r=this.selectDefaultTrack,i=0;i-1){var n=this.tracksInGroup[i];return this.setSubtitleTrack(i),n}if(r)return null;var a=Vr(e,t);if(a>-1)return t[a]}}return null},r.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.currentTrack;if(this.shouldLoadPlaylist(r)&&r){var i=r.id,n=r.groupId,a=r.url;if(t)try{a=t.addDirectives(a)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Loading subtitle playlist for id "+i),this.hls.trigger(S.SUBTITLE_TRACK_LOADING,{url:a,id:i,groupId:n,deliveryDirectives:t||null})}},r.toggleTrackModes=function(){var e=this.media;if(e){var t,r=Wt(e.textTracks),i=this.currentTrack;if(i&&((t=r.filter((function(e){return $n(i,e)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'+i.name+'" and language "'+i.lang+'"')),[].slice.call(r).forEach((function(e){"disabled"!==e.mode&&e!==t&&(e.mode="disabled")})),t){var n=this.subtitleDisplay?"showing":"hidden";t.mode!==n&&(t.mode=n)}}},r.setSubtitleTrack=function(e){var t=this.tracksInGroup;if(this.media)if(e<-1||e>=t.length||!y(e))this.warn("Invalid subtitle track id: "+e);else{this.clearTimer(),this.selectDefaultTrack=!1;var r=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),i){var n=!!i.details&&!i.details.live;if(e!==this.trackId||i!==r||!n){this.log("Switching to subtitle-track "+e+(i?' "'+i.name+'" lang:'+i.lang+" group:"+i.groupId:""));var a=i.id,s=i.groupId,o=void 0===s?"":s,l=i.name,u=i.type,h=i.url;this.hls.trigger(S.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:l,type:u,url:h});var d=this.switchParams(i.url,null==r?void 0:r.details,i.details);this.loadPlaylist(d)}}else this.hls.trigger(S.SUBTITLE_TRACK_SWITCH,{id:e})}else this.queuedDefaultTrack=e},s(t,[{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}}]),t}(Mr),ia=function(){function e(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}var t=e.prototype;return t.append=function(e,t,r){var i=this.queues[t];i.push(e),1!==i.length||r||this.executeNext(t)},t.insertAbort=function(e,t){this.queues[t].unshift(e),this.executeNext(t)},t.appendBlocker=function(e){var t,r=new Promise((function(e){t=e})),i={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(i,e),r},t.executeNext=function(e){var t=this.queues[e];if(t.length){var r=t[0];try{r.execute()}catch(t){w.warn('[buffer-operation-queue]: Exception executing "'+e+'" SourceBuffer operation: '+t),r.onError(t);var i=this.buffers[e];null!=i&&i.updating||this.shiftAndExecuteNext(e)}}},t.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},t.current=function(e){return this.queues[e][0]},e}(),na=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,aa=function(){function e(e){var t=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(e){t.hls&&t.hls.pauseBuffering()},this._onStartStreaming=function(e){t.hls&&t.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var e=t.media,r=t.mediaSource;t.log("Media source opened"),e&&(e.removeEventListener("emptied",t._onMediaEmptied),t.updateMediaElementDuration(),t.hls.trigger(S.MEDIA_ATTACHED,{media:e,mediaSource:r})),r&&r.removeEventListener("sourceopen",t._onMediaSourceOpen),t.checkPendingTracks()},this._onMediaSourceClose=function(){t.log("Media source closed")},this._onMediaSourceEnded=function(){t.log("Media source ended")},this._onMediaEmptied=function(){var e=t.mediaSrc,r=t._objectUrl;e!==r&&w.error("Media element src was set while attaching MediaSource ("+r+" > "+e+")")},this.hls=e;var r,i="[buffer-controller]";this.appendSource=(r=ot(e.config.preferManagedMediaSource),"undefined"!=typeof self&&r===self.ManagedMediaSource),this.log=w.log.bind(w,i),this.warn=w.warn.bind(w,i),this.error=w.error.bind(w,i),this._initSourceBuffer(),this.registerListeners()}var t=e.prototype;return t.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},t.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null},t.registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_PARSED,this.onManifestParsed,this),e.on(S.BUFFER_RESET,this.onBufferReset,this),e.on(S.BUFFER_APPENDING,this.onBufferAppending,this),e.on(S.BUFFER_CODECS,this.onBufferCodecs,this),e.on(S.BUFFER_EOS,this.onBufferEos,this),e.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(S.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(S.FRAG_PARSED,this.onFragParsed,this),e.on(S.FRAG_CHANGED,this.onFragChanged,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_PARSED,this.onManifestParsed,this),e.off(S.BUFFER_RESET,this.onBufferReset,this),e.off(S.BUFFER_APPENDING,this.onBufferAppending,this),e.off(S.BUFFER_CODECS,this.onBufferCodecs,this),e.off(S.BUFFER_EOS,this.onBufferEos,this),e.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(S.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(S.FRAG_PARSED,this.onFragParsed,this),e.off(S.FRAG_CHANGED,this.onFragChanged,this)},t._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new ia(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null},t.onManifestLoading=function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null},t.onManifestParsed=function(e,t){var r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},t.onMediaAttaching=function(e,t){var r=this.media=t.media,i=ot(this.appendSource);if(r&&i){var n,a=this.mediaSource=new i;this.log("created media source: "+(null==(n=a.constructor)?void 0:n.name)),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming));var s=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");var o=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||o&&a instanceof o,sa(r),function(e,t){var r=self.document.createElement("source");r.type="video/mp4",r.src=t,e.appendChild(r)}(r,s),r.load()}catch(e){r.src=s}else r.src=s;r.addEventListener("emptied",this._onMediaEmptied)}},t.onMediaDetaching=function(){var e=this.media,t=this.mediaSource,r=this._objectUrl;if(t){if(this.log("media source detaching"),"open"===t.readyState)try{t.endOfStream()}catch(e){this.warn("onMediaDetaching: "+e.message+" while calling endOfStream")}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&sa(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(S.MEDIA_DETACHED,void 0)},t.onBufferReset=function(){var e=this;this.getSourceBufferTypes().forEach((function(t){e.resetBuffer(t)})),this._initSourceBuffer(),this.hls.resumeBuffering()},t.resetBuffer=function(e){var t=this.sourceBuffer[e];try{var r;t&&(this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,null!=(r=this.mediaSource)&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t))}catch(t){this.warn("onBufferReset "+e,t)}},t.onBufferCodecs=function(e,t){var r=this,i=this.getSourceBufferTypes().length,n=Object.keys(t);if(n.forEach((function(e){if(i){var n=r.tracks[e];if(n&&"function"==typeof n.buffer.changeType){var a,s=t[e],o=s.id,l=s.codec,u=s.levelCodec,h=s.container,d=s.metadata,c=pt(n.codec,n.levelCodec),f=null==c?void 0:c.replace(na,"$1"),g=pt(l,u),v=null==(a=g)?void 0:a.replace(na,"$1");if(g&&f!==v){"audio"===e.slice(0,5)&&(g=mt(g,r.appendSource));var m=h+";codecs="+g;r.appendChangeType(e,m),r.log("switching codec "+c+" to "+g),r.tracks[e]={buffer:n.buffer,codec:l,container:h,levelCodec:u,metadata:d,id:o}}}}else r.pendingTracks[e]=t[e]})),!i){var a=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==a&&(this.log(a+" bufferCodec event(s) expected "+n.join(",")),this.bufferCodecEventsExpected=a),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}},t.appendChangeType=function(e,t){var r=this,i=this.operationQueue,n={execute:function(){var n=r.sourceBuffer[e];n&&(r.log("changing "+e+" sourceBuffer type to "+t),n.changeType(t)),i.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){r.warn("Failed to change "+e+" SourceBuffer type",t)}};i.append(n,e,!!this.pendingTracks[e])},t.onBufferAppending=function(e,t){var r=this,i=this.hls,n=this.operationQueue,a=this.tracks,s=t.data,o=t.type,l=t.frag,u=t.part,h=t.chunkMeta,d=h.buffering[o],c=self.performance.now();d.start=c;var f=l.stats.buffering,g=u?u.stats.buffering:null;0===f.start&&(f.start=c),g&&0===g.start&&(g.start=c);var v=a.audio,m=!1;"audio"===o&&"audio/mpeg"===(null==v?void 0:v.container)&&(m=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);var p=l.start,y={execute:function(){if(d.executeStart=self.performance.now(),m){var e=r.sourceBuffer[o];if(e){var t=p-e.timestampOffset;Math.abs(t)>=.1&&(r.log("Updating audio SourceBuffer timestampOffset to "+p+" (delta: "+t+") sn: "+l.sn+")"),e.timestampOffset=p)}}r.appendExecutor(s,o)},onStart:function(){},onComplete:function(){var e=self.performance.now();d.executeEnd=d.end=e,0===f.first&&(f.first=e),g&&0===g.first&&(g.first=e);var t=r.sourceBuffer,i={};for(var n in t)i[n]=ii.getBuffered(t[n]);r.appendErrors[o]=0,"audio"===o||"video"===o?r.appendErrors.audiovideo=0:(r.appendErrors.audio=0,r.appendErrors.video=0),r.hls.trigger(S.BUFFER_APPENDED,{type:o,frag:l,part:u,chunkMeta:h,parent:l.type,timeRanges:i})},onError:function(e){var t={type:L.MEDIA_ERROR,parent:l.type,details:A.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:l,part:u,chunkMeta:h,error:e,err:e,fatal:!1};if(e.code===DOMException.QUOTA_EXCEEDED_ERR)t.details=A.BUFFER_FULL_ERROR;else{var n=++r.appendErrors[o];t.details=A.BUFFER_APPEND_ERROR,r.warn("Failed "+n+"/"+i.config.appendErrorMaxRetry+' times to append segment in "'+o+'" sourceBuffer'),n>=i.config.appendErrorMaxRetry&&(t.fatal=!0)}i.trigger(S.ERROR,t)}};n.append(y,o,!!this.pendingTracks[o])},t.onBufferFlushing=function(e,t){var r=this,i=this.operationQueue,n=function(e){return{execute:r.removeExecutor.bind(r,e,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){r.hls.trigger(S.BUFFER_FLUSHED,{type:e})},onError:function(t){r.warn("Failed to remove from "+e+" SourceBuffer",t)}}};t.type?i.append(n(t.type),t.type):this.getSourceBufferTypes().forEach((function(e){i.append(n(e),e)}))},t.onFragParsed=function(e,t){var r=this,i=t.frag,n=t.part,a=[],s=n?n.elementaryStreams:i.elementaryStreams;s[U]?a.push("audiovideo"):(s[O]&&a.push("audio"),s[N]&&a.push("video")),0===a.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+i.type+" level: "+i.level+" sn: "+i.sn),this.blockBuffers((function(){var e=self.performance.now();i.stats.buffering.end=e,n&&(n.stats.buffering.end=e);var t=n?n.stats:i.stats;r.hls.trigger(S.FRAG_BUFFERED,{frag:i,part:n,stats:t,id:i.type})}),a)},t.onFragChanged=function(e,t){this.trimBuffers()},t.onBufferEos=function(e,t){var r=this;this.getSourceBufferTypes().reduce((function(e,i){var n=r.sourceBuffer[i];return!n||t.type&&t.type!==i||(n.ending=!0,n.ended||(n.ended=!0,r.log(i+" sourceBuffer now EOS"))),e&&!(n&&!n.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){r.getSourceBufferTypes().forEach((function(e){var t=r.sourceBuffer[e];t&&(t.ending=!1)}));var e=r.mediaSource;e&&"open"===e.readyState?(r.log("Calling mediaSource.endOfStream()"),e.endOfStream()):e&&r.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)})))},t.onLevelUpdated=function(e,t){var r=t.details;r.fragments.length&&(this.details=r,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())},t.trimBuffers=function(){var e=this.hls,t=this.details,r=this.media;if(r&&null!==t&&this.getSourceBufferTypes().length){var i=e.config,n=r.currentTime,a=t.levelTargetDuration,s=t.live&&null!==i.liveBackBufferLength?i.liveBackBufferLength:i.backBufferLength;if(y(s)&&s>0){var o=Math.max(s,a),l=Math.floor(n/a)*a-o;this.flushBackBuffer(n,a,l)}if(y(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){var u=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),h=Math.max(u,a),d=Math.floor(n/a)*a+h;this.flushFrontBuffer(n,a,d)}}},t.flushBackBuffer=function(e,t,r){var i=this,n=this.details,a=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(s){var o=a[s];if(o){var l=ii.getBuffered(o);if(l.length>0&&r>l.start(0)){if(i.hls.trigger(S.BACK_BUFFER_REACHED,{bufferEnd:r}),null!=n&&n.live)i.hls.trigger(S.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(o.ended&&l.end(l.length-1)-e<2*t)return void i.log("Cannot flush "+s+" back buffer while SourceBuffer is in ended state");i.hls.trigger(S.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:s})}}}))},t.flushFrontBuffer=function(e,t,r){var i=this,n=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(a){var s=n[a];if(s){var o=ii.getBuffered(s),l=o.length;if(l<2)return;var u=o.start(l-1),h=o.end(l-1);if(r>u||e>=u&&e<=h)return;if(s.ended&&e-h<2*t)return void i.log("Cannot flush "+a+" front buffer while SourceBuffer is in ended state");i.hls.trigger(S.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:a})}}))},t.updateMediaElementDuration=function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var e=this.details,t=this.hls,r=this.media,i=this.mediaSource,n=e.fragments[0].start+e.totalduration,a=r.duration,s=y(i.duration)?i.duration:0;e.live&&t.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(e)):(n>s&&n>a||!y(a))&&(this.log("Updating Media Source duration to "+n.toFixed(3)),i.duration=n)}},t.updateSeekableRange=function(e){var t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&null!=t&&t.setLiveSeekableRange){var i=Math.max(0,r[0].start),n=Math.max(i,i+e.totalduration);this.log("Media Source duration is set to "+t.duration+". Setting seekable range to "+i+"-"+n+"."),t.setLiveSeekableRange(i,n)}},t.checkPendingTracks=function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,r=this.pendingTracks,i=Object.keys(r).length;if(i&&(!e||2===i||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};var n=this.getSourceBufferTypes();if(n.length)this.hls.trigger(S.BUFFER_CREATED,{tracks:this.tracks}),n.forEach((function(e){t.executeNext(e)}));else{var a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}},t.createSourceBuffers=function(e){var t=this,r=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");var n=function(n){if(!r[n]){var a,s=e[n];if(!s)throw Error("source buffer exists for track "+n+", however track does not");var o=-1===(null==(a=s.levelCodec)?void 0:a.indexOf(","))?s.levelCodec:s.codec;o&&"audio"===n.slice(0,5)&&(o=mt(o,t.appendSource));var l=s.container+";codecs="+o;t.log("creating sourceBuffer("+l+")");try{var u=r[n]=i.addSourceBuffer(l),h=n;t.addBufferListener(h,"updatestart",t._onSBUpdateStart),t.addBufferListener(h,"updateend",t._onSBUpdateEnd),t.addBufferListener(h,"error",t._onSBUpdateError),t.appendSource&&t.addBufferListener(h,"bufferedchange",(function(e,r){var i=r.removedRanges;null!=i&&i.length&&t.hls.trigger(S.BUFFER_FLUSHED,{type:n})})),t.tracks[n]={buffer:u,codec:o,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(e){t.error("error while trying to add sourceBuffer: "+e.message),t.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:n,mimeType:l})}}};for(var a in e)n(a)},t._onSBUpdateStart=function(e){this.operationQueue.current(e).onStart()},t._onSBUpdateEnd=function(e){var t;if("closed"!==(null==(t=this.mediaSource)?void 0:t.readyState)){var r=this.operationQueue;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}else this.resetBuffer(e)},t._onSBUpdateError=function(e,t){var r,i=new Error(e+" SourceBuffer error. MediaSource readyState: "+(null==(r=this.mediaSource)?void 0:r.readyState));this.error(""+i,t),this.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});var n=this.operationQueue.current(e);n&&n.onError(i)},t.removeExecutor=function(e,t,r){var i=this.media,n=this.mediaSource,a=this.operationQueue,s=this.sourceBuffer[e];if(!i||!n||!s)return this.warn("Attempting to remove from the "+e+" SourceBuffer, but it does not exist"),void a.shiftAndExecuteNext(e);var o=y(i.duration)?i.duration:1/0,l=y(n.duration)?n.duration:1/0,u=Math.max(0,t),h=Math.min(r,o,l);h>u&&(!s.ending||s.ended)?(s.ended=!1,this.log("Removing ["+u+","+h+"] from the "+e+" SourceBuffer"),s.remove(u,h)):a.shiftAndExecuteNext(e)},t.appendExecutor=function(e,t){var r=this.sourceBuffer[t];if(r)r.ended=!1,r.appendBuffer(e);else if(!this.pendingTracks[t])throw new Error("Attempting to append to the "+t+" SourceBuffer, but it does not exist")},t.blockBuffers=function(e,t){var r=this;if(void 0===t&&(t=this.getSourceBufferTypes()),!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var i=this.operationQueue,n=t.map((function(e){return i.appendBlocker(e)}));Promise.all(n).then((function(){e(),t.forEach((function(e){var t=r.sourceBuffer[e];null!=t&&t.updating||i.shiftAndExecuteNext(e)}))}))},t.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},t.addBufferListener=function(e,t,r){var i=this.sourceBuffer[e];if(i){var n=r.bind(this,e);this.listeners[e].push({event:t,listener:n}),i.addEventListener(t,n)}},t.removeBufferListeners=function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach((function(e){t.removeEventListener(e.event,e.listener)}))},s(e,[{key:"mediaSrc",get:function(){var e,t,r=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==r?void 0:r.src}}]),e}();function sa(e){var t=e.querySelectorAll("source");[].slice.call(t).forEach((function(t){e.removeChild(t)}))}var oa={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},la=function(e){return String.fromCharCode(oa[e]||e)},ua=15,ha=100,da={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ca={17:2,18:4,21:6,22:8,23:10,19:13,20:15},fa={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ga={25:2,26:4,29:6,30:8,31:10,27:13,28:15},va=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],ma=function(){function e(){this.time=null,this.verboseLevel=0}return e.prototype.log=function(e,t){if(this.verboseLevel>=e){var r="function"==typeof t?t():t;w.log(this.time+" ["+e+"] "+r)}},e}(),pa=function(e){for(var t=[],r=0;rha&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ha)},t.moveCursor=function(e){var t=this.pos+e;if(e>1)for(var r=this.pos+1;r=144&&this.backSpace();var r=la(e);this.pos>=ha?this.logger.log(0,(function(){return"Cannot insert "+e.toString(16)+" ("+r+") at position "+t.pos+". Skipping it!"})):(this.chars[this.pos].setChar(r,this.currPenState),this.moveCursor(1))},t.clearFromPos=function(e){var t;for(t=e;t0&&(r=e?"["+t.join(" | ")+"]":t.join("\n")),r},t.getTextAndFormat=function(){return this.rows},e}(),La=function(){function e(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Sa(r),this.nonDisplayedMemory=new Sa(r),this.lastOutputScreen=new Sa(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}var t=e.prototype;return t.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},t.getHandler=function(){return this.outputFilter},t.setHandler=function(e){this.outputFilter=e},t.setPAC=function(e){this.writeScreen.setPAC(e)},t.setBkgData=function(e){this.writeScreen.setBkgData(e)},t.setMode=function(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(function(){return"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)},t.insertChars=function(e){for(var t=this,r=0;r=46,t.italics)t.foreground="white";else{var r=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][r]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},t.outputDataUpdate=function(e){void 0===e&&(e=!1);var t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},t.cueSplitAtTime=function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))},e}(),Aa=function(){function e(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var i=this.logger=new ma;this.channels=[null,new La(e,t,i),new La(e+1,r,i)]}var t=e.prototype;return t.getHandler=function(e){return this.channels[e].getHandler()},t.setHandler=function(e,t){this.channels[e].setHandler(t)},t.addData=function(e,t){var r=this;this.logger.time=e;for(var i=function(e){var i=127&t[e],n=127&t[e+1],a=!1,s=null;if(0===i&&0===n)return 0;r.logger.log(3,(function(){return"["+pa([t[e],t[e+1]])+"] -> ("+pa([i,n])+")"}));var o=r.cmdHistory;if(i>=16&&i<=31){if(function(e,t,r){return r.a===e&&r.b===t}(i,n,o))return Ra(null,null,o),r.logger.log(3,(function(){return"Repeated command ("+pa([i,n])+") is dropped"})),0;Ra(i,n,r.cmdHistory),(a=r.parseCmd(i,n))||(a=r.parseMidrow(i,n)),a||(a=r.parsePAC(i,n)),a||(a=r.parseBackgroundAttributes(i,n))}else Ra(null,null,o);if(!a&&(s=r.parseChars(i,n))){var l=r.currentChannel;l&&l>0?r.channels[l].insertChars(s):r.logger.log(2,"No channel found yet. TEXT-MODE?")}a||s||r.logger.log(2,(function(){return"Couldn't parse cleaned data "+pa([i,n])+" orig: "+pa([t[e],t[e+1]])}))},n=0;n=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;var r=20===e||21===e||23===e?1:2,i=this.channels[r];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),this.currentChannel=r,!0},t.parseMidrow=function(e,t){var r=0;if((17===e||25===e)&&t>=32&&t<=47){if((r=17===e?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var i=this.channels[r];return!!i&&(i.ccMIDROW(t),this.logger.log(3,(function(){return"MIDROW ("+pa([e,t])+")"})),!0)}return!1},t.parsePAC=function(e,t){var r;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(16===e||24===e)&&t>=64&&t<=95))return!1;var i=e<=23?1:2;r=t>=64&&t<=95?1===i?da[e]:fa[e]:1===i?ca[e]:ga[e];var n=this.channels[i];return!!n&&(n.setPAC(this.interpretPAC(r,t)),this.currentChannel=i,!0)},t.interpretPAC=function(e,t){var r,i={color:null,italics:!1,indent:null,underline:!1,row:e};return r=t>95?t-96:t-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.parseChars=function(e,t){var r,i,n=null,a=null;return e>=25?(r=2,a=e-8):(r=1,a=e),a>=17&&a<=19?(i=17===a?t+80:18===a?t+112:t+144,this.logger.log(2,(function(){return"Special char '"+la(i)+"' in channel "+r})),n=[i]):e>=32&&e<=127&&(n=0===t?[e]:[e,t]),n&&this.logger.log(3,(function(){return"Char codes = "+pa(n).join(",")})),n},t.parseBackgroundAttributes=function(e,t){var r;if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;var i={};16===e||24===e?(r=Math.floor((t-32)/2),i.background=va[r],t%2==1&&(i.background=i.background+"_semi")):45===t?i.background="transparent":(i.foreground="black",47===t&&(i.underline=!0));var n=e<=23?1:2;return this.channels[n].setBkgData(i),!0},t.reset=function(){for(var e=0;ee)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},t.reset=function(){this.cueRanges=[],this.startTime=null},e}(),ba=function(){if(null!=j&&j.VTTCue)return self.VTTCue;var e=["","lr","rl"],t=["start","middle","end","left","right"];function r(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;var r=t.toLowerCase();return!!~e.indexOf(r)&&r}function i(e){return r(t,e)}function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i100)throw new Error("Position must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",n({},l,{get:function(){return T},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",n({},l,{get:function(){return S},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");S=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",n({},l,{get:function(){return L},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");L=t,this.hasBeenReset=!0}})),o.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}(),Da=function(){function e(){}return e.prototype.decode=function(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))},e}();function Ia(e){function t(e,t,r,i){return 3600*(0|e)+60*(0|t)+(0|r)+parseFloat(i||0)}var r=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return r?parseFloat(r[2])>59?t(r[2],r[3],0,r[4]):t(r[1],r[2],r[3],r[4]):null}var wa=function(){function e(){this.values=Object.create(null)}var t=e.prototype;return t.set=function(e,t){this.get(e)||""===t||(this.values[e]=t)},t.get=function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},t.has=function(e){return e in this.values},t.alt=function(e,t,r){for(var i=0;i=0&&r<=100)return this.set(e,r),!0}return!1},e}();function Ca(e,t,r,i){var n=i?e.split(i):[e];for(var a in n)if("string"==typeof n[a]){var s=n[a].split(r);2===s.length&&t(s[0],s[1])}}var _a=new ba(0,0,""),xa="middle"===_a.align?"middle":"center";function Pa(e,t,r){var i=e;function n(){var t=Ia(e);if(null===t)throw new Error("Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=n(),a(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.slice(3),a(),t.endTime=n(),a(),function(e,t){var i=new wa;Ca(e,(function(e,t){var n;switch(e){case"region":for(var a=r.length-1;a>=0;a--)if(r[a].id===t){i.set(e,r[a].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":n=t.split(","),i.integer(e,n[0]),i.percent(e,n[0])&&i.set("snapToLines",!1),i.alt(e,n[0],["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start",xa,"end"]);break;case"position":n=t.split(","),i.percent(e,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start",xa,"end","line-left","line-right","auto"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start",xa,"end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");var n=i.get("line","auto");"auto"===n&&-1===_a.line&&(n=-1),t.line=n,t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align",xa);var a=i.get("position","auto");"auto"===a&&50===_a.position&&(a="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=a}(e,t)}function Fa(e){return e.replace(//gi,"\n")}var Ma=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new Da,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var t=e.prototype;return t.parse=function(e){var t=this;function r(){var e=t.buffer,r=0;for(e=Fa(e);r>>0).toString()};function Ba(e,t,r){return Ua(e.toString())+Ua(t.toString())+Ua(r)}function Ga(e,t,r,i,n,a,s){var o,l,u,h=new Ma,d=ke(new Uint8Array(e)).trim().replace(Oa,"\n").split("\n"),c=[],f=t?(o=t.baseTime,void 0===(l=t.timescale)&&(l=1),kn(o,Rn,1/l)):0,g="00:00.000",v=0,m=0,p=!0;h.oncue=function(e){var a=r[i],s=r.ccOffset,o=(v-f)/9e4;if(null!=a&&a.new&&(void 0!==m?s=r.ccOffset=a.start:function(e,t,r){var i=e[t],n=e[i.prevCC];if(!n||!n.new&&i.new)return e.ccOffset=e.presentationOffset=i.start,void(i.new=!1);for(;null!=(a=n)&&a.new;){var a;e.ccOffset+=i.start-n.start,i.new=!1,n=e[(i=n).prevCC]}e.presentationOffset=r}(r,i,o)),o){if(!t)return void(u=new Error("Missing initPTS for VTT MPEGTS"));s=o-r.presentationOffset}var l=e.endTime-e.startTime,h=Cn(9e4*(e.startTime+s-m),9e4*n)/9e4;e.startTime=Math.max(h,0),e.endTime=Math.max(h+l,0);var d=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(d)),e.id||(e.id=Ba(e.startTime,e.endTime,d)),e.endTime>0&&c.push(e)},h.onparsingerror=function(e){u=e},h.onflush=function(){u?s(u):a(c)},d.forEach((function(e){if(p){if(Na(e,"X-TIMESTAMP-MAP=")){p=!1,e.slice(16).split(",").forEach((function(e){Na(e,"LOCAL:")?g=e.slice(6):Na(e,"MPEGTS:")&&(v=parseInt(e.slice(7)))}));try{m=function(e){var t=parseInt(e.slice(-3)),r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),n=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(y(t)&&y(r)&&y(i)&&y(n)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*r,(t+=6e4*i)+36e5*n}(g)/1e3}catch(e){u=e}return}""===e&&(p=!1)}h.parse(e+"\n")})),h.flush()}var Ka="stpp.ttml.im1t",Ha=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Va=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ya={left:"start",center:"center",right:"end",start:"start",end:"end"};function Wa(e,t,r,i){var n=Ne(new Uint8Array(e),["mdat"]);if(0!==n.length){var a,s,l,u,h=n.map((function(e){return ke(e)})),d=(a=t.baseTime,s=1,void 0===(l=t.timescale)&&(l=1),void 0===u&&(u=!1),kn(a,s,1/l,u));try{h.forEach((function(e){return r(function(e,t){var r=(new DOMParser).parseFromString(e,"text/xml"),i=r.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");var n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(n).reduce((function(e,t){return e[t]=i.getAttribute("ttp:"+t)||n[t],e}),{}),s="preserve"!==i.getAttribute("xml:space"),l=qa(ja(i,"styling","style")),u=qa(ja(i,"layout","region")),h=ja(i,"body","[begin]");return[].map.call(h,(function(e){var r=Xa(e,s);if(!r||!e.hasAttribute("begin"))return null;var i=Ja(e.getAttribute("begin"),a),n=Ja(e.getAttribute("dur"),a),h=Ja(e.getAttribute("end"),a);if(null===i)throw Qa(e);if(null===h){if(null===n)throw Qa(e);h=i+n}var d=new ba(i-t,h-t,r);d.id=Ba(d.startTime,d.endTime,d.text);var c=function(e,t,r){var i="http://www.w3.org/ns/ttml#styling",n=null,a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&r.hasOwnProperty(s)&&(n=r[s]),a.reduce((function(r,a){var s=za(t,i,a)||za(e,i,a)||za(n,i,a);return s&&(r[a]=s),r}),{})}(u[e.getAttribute("region")],l[e.getAttribute("style")],l),f=c.textAlign;if(f){var g=Ya[f];g&&(d.lineAlign=g),d.align=f}return o(d,c),d})).filter((function(e){return null!==e}))}(e,d))}))}catch(e){i(e)}}else i(new Error("Could not parse IMSC1 mdat"))}function ja(e,t,r){var i=e.getElementsByTagName(t)[0];return i?[].slice.call(i.querySelectorAll(r)):[]}function qa(e){return e.reduce((function(e,t){var r=t.getAttribute("xml:id");return r&&(e[r]=t),e}),{})}function Xa(e,t){return[].slice.call(e.childNodes).reduce((function(e,r,i){var n;return"br"===r.nodeName&&i?e+"\n":null!=(n=r.childNodes)&&n.length?Xa(r,t):t?e+r.textContent.trim().replace(/\s+/g," "):e+r.textContent}),"")}function za(e,t,r){return e&&e.hasAttributeNS(t,r)?e.getAttributeNS(t,r):null}function Qa(e){return new Error("Could not parse ttml timestamp "+e)}function Ja(e,t){if(!e)return null;var r=Ia(e);return null===r&&(Ha.test(e)?r=function(e,t){var r=Ha.exec(e),i=(0|r[4])+(0|r[5])/t.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+i/t.frameRate}(e,t):Va.test(e)&&(r=function(e,t){var r=Va.exec(e),i=Number(r[1]);switch(r[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/t.frameRate;case"t":return i/t.tickRate}return i}(e,t))),r}var $a=function(){function e(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(S.FRAG_LOADING,this.onFragLoading,this),e.on(S.FRAG_LOADED,this.onFragLoaded,this),e.on(S.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(S.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(S.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(S.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(S.BUFFER_FLUSHING,this.onBufferFlushing,this)}var t=e.prototype;return t.destroy=function(){var e=this.hls;e.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(S.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(S.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(S.FRAG_LOADING,this.onFragLoading,this),e.off(S.FRAG_LOADED,this.onFragLoaded,this),e.off(S.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(S.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(S.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(S.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(S.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0},t.initCea608Parsers=function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var e=new ka(this,"textTrack1"),t=new ka(this,"textTrack2"),r=new ka(this,"textTrack3"),i=new ka(this,"textTrack4");this.cea608Parser1=new Aa(1,e,t),this.cea608Parser2=new Aa(3,r,i)}},t.addCues=function(e,t,r,i,n){for(var a,s,o,l,u=!1,h=n.length;h--;){var d=n[h],c=(a=d[0],s=d[1],o=t,l=r,Math.min(s,l)-Math.max(a,o));if(c>=0&&(d[0]=Math.min(d[0],t),d[1]=Math.max(d[1],r),u=!0,c/(r-t)>.5))return}if(u||n.push([t,r]),this.config.renderTextTracksNatively){var f=this.captionsTracks[e];this.Cues.newCue(f,t,r,i)}else{var g=this.Cues.newCue(null,t,r,i);this.hls.trigger(S.CUES_PARSED,{type:"captions",cues:g,track:e})}},t.onInitPtsFound=function(e,t){var r=this,i=t.frag,n=t.id,a=t.initPTS,s=t.timescale,o=this.unparsedVttFrags;"main"===n&&(this.initPTS[i.cc]={baseTime:a,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach((function(e){r.onFragLoaded(S.FRAG_LOADED,e)})))},t.getExistingTrack=function(e,t){var r=this.media;if(r)for(var i=0;ii.cc||l.trigger(S.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:t})}))}else s.push(e)},t._fallbackToIMSC1=function(e,t){var r=this,i=this.tracks[e.level];i.textCodec||Wa(t,this.initPTS[e.cc],(function(){i.textCodec=Ka,r._parseIMSC1(e,t)}),(function(){i.textCodec="wvtt"}))},t._appendCues=function(e,t){var r=this.hls;if(this.config.renderTextTracksNatively){var i=this.textTracks[t];if(!i||"disabled"===i.mode)return;e.forEach((function(e){return Ht(i,e)}))}else{var n=this.tracks[t];if(!n)return;var a=n.default?"default":"subtitles"+t;r.trigger(S.CUES_PARSED,{type:"subtitles",cues:e,track:a})}},t.onFragDecrypted=function(e,t){t.frag.type===Nt&&this.onFragLoaded(S.FRAG_LOADED,t)},t.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},t.onFragParsingUserdata=function(e,t){this.initCea608Parsers();var r=this.cea608Parser1,i=this.cea608Parser2;if(this.enabled&&r&&i){var n=t.frag,a=t.samples;if(n.type!==Mt||"NONE"!==this.closedCaptionsForLevel(n))for(var s=0;sthis.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},t.getMaxLevel=function(t){var r=this,i=this.hls.levels;if(!i.length)return-1;var n=i.filter((function(e,i){return r.isLevelAllowed(e)&&i<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)},t.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},t.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},t.getDimensions=function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,t.width||t.height||(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t},t.isLevelAllowed=function(e){return!this.restrictedLevels.some((function(t){return e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height}))},e.getMaxLevelByMediaSize=function(e,t,r){if(null==e||!e.length)return-1;for(var i,n,a=e.length-1,s=Math.max(t,r),o=0;o=s||l.height>=s)&&(i=l,!(n=e[o+1])||i.width!==n.width||i.height!==n.height)){a=o;break}}return a},s(e,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return e}}]),e}(),rs=function(){function e(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var t=e.prototype;return t.setStreamController=function(e){this.streamController=e},t.registerListeners=function(){this.hls.on(S.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.unregisterListeners=function(){this.hls.off(S.MEDIA_ATTACHING,this.onMediaAttaching,this)},t.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},t.onMediaAttaching=function(e,t){var r=this.hls.config;if(r.capLevelOnFPSDrop){var i=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=i,i&&"function"==typeof i.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}},t.checkFPS=function(e,t,r){var i=performance.now();if(t){if(this.lastTime){var n=i-this.lastTime,a=r-this.lastDroppedFrames,s=t-this.lastDecodedFrames,o=1e3*a/n,l=this.hls;if(l.trigger(S.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:r}),o>0&&a>l.config.fpsDroppedMonitoringThreshold*s){var u=l.currentLevel;w.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(-1===l.autoLevelCapping||l.autoLevelCapping>=u)&&(u-=1,l.trigger(S.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:l.currentLevel}),l.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=t}},t.checkFPSInterval=function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)},e}(),is="[eme]",ns=function(){function e(t){var r=this;this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=e.CDMCleanupPromise?[e.CDMCleanupPromise]:[],this.debug=w.debug.bind(w,is),this.log=w.log.bind(w,is),this.warn=w.warn.bind(w,is),this.error=w.error.bind(w,is),this.onMediaEncrypted=function(e){var t=e.initDataType,i=e.initData,n='"'+e.type+'" event: init data type: "'+t+'"';if(r.debug(n),null!==i){if(!r.keyFormatPromise){var a=Object.keys(r.keySystemAccessPromises);a.length||(a=ae(r.config));var s=a.map(ne).filter((function(e){return!!e}));r.keyFormatPromise=r.getKeyFormatPromise(s)}r.keyFormatPromise.then((function(a){var s,o,l=$(a);if("sinf"===t){if(l!==q.FAIRPLAY)return void r.warn('Ignoring unexpected "'+e.type+'" event with init data type: "'+t+'" for selected key-system '+l);var u=_e(new Uint8Array(i));try{var h=Ye(V(JSON.parse(u).sinf));if(!h)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");s=h.subarray(8,24),o=q.FAIRPLAY}catch(e){return void r.warn(n+" Failed to parse sinf: "+e)}}else{if(l!==q.WIDEVINE&&l!==q.PLAYREADY)return void r.warn('Ignoring unexpected "'+e.type+'" event with init data type: "'+t+'" for selected key-system '+l);var d=function(e){var t=[];if(e instanceof ArrayBuffer)for(var r=e.byteLength,i=0;i+321&&r.warn(n+" Using first of "+c.length+" pssh found for selected key-system "+l);var f=c[0];if(!f)return void(0===d.length||d.some((function(e){return!e.systemId}))?r.warn(n+" contains incomplete or invalid pssh data"):r.log("ignoring "+n+" for "+d.map((function(e){return ie(e.systemId)})).join(",")+" pssh data in favor of playlist keys"));if(o=ie(f.systemId),0===f.version&&f.data)if(o===q.WIDEVINE){var g=f.data.length-22;s=f.data.subarray(g,g+16)}else o===q.PLAYREADY&&(s=le(f.data))}if(o&&s){for(var v,m=De.hexDump(s),p=r.keyIdToKeySessionPromise,y=r.mediaKeySessions,E=p[m],T=function(){var e=y[S],n=e.decryptdata;if(!n.keyId)return 0;var a=De.hexDump(n.keyId);return m===a||-1!==n.uri.replace(/-/g,"").indexOf(m)?(E=p[a],n.pssh||(delete p[a],n.pssh=new Uint8Array(i),n.keyId=s,(E=p[m]=E.then((function(){return r.generateRequestWithPreferredKeySession(e,t,i,"encrypted-event-key-match")}))).catch((function(e){return r.handleError(e)}))),1):void 0},S=0;S0)for(var a,s=0,o=n.length;s in key message");return W(atob(f))},t.setupLicenseXHR=function(e,t,r,i){var n=this,a=this.config.licenseXhrSetup;return a?Promise.resolve().then((function(){if(!r.decryptdata)throw new Error("Key removed");return a.call(n.hls,e,t,r,i)})).catch((function(s){if(!r.decryptdata)throw s;return e.open("POST",t,!0),a.call(n.hls,e,t,r,i)})).then((function(r){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:r||i}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))},t.requestLicense=function(e,t){var r=this,i=this.config.keyLoadPolicy.default;return new Promise((function(n,a){var s=r.getLicenseServerUrlOrThrow(e.keySystem);r.log("Sending license request to URL: "+s);var o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=function(){if(!r.hls||!e.mediaKeysSession)return a(new Error("invalid state"));if(4===o.readyState)if(200===o.status){r._requestLicenseFailureCount=0;var l=o.response;r.log("License received "+(l instanceof ArrayBuffer?l.byteLength:l));var u=r.config.licenseResponseCallback;if(u)try{l=u.call(r.hls,o,s,e)}catch(e){r.error(e)}n(l)}else{var h=i.errorRetry,d=h?h.maxNumRetry:0;if(r._requestLicenseFailureCount++,r._requestLicenseFailureCount>d||o.status>=400&&o.status<500)a(new us({type:L.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:s,data:void 0,code:o.status,text:o.statusText}},"License Request XHR failed ("+s+"). Status: "+o.status+" ("+o.statusText+")"));else{var c=d-r._requestLicenseFailureCount+1;r.warn("Retrying license request, "+c+" attempts left"),r.requestLicense(e,t).then(n,a)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=o,r.setupLicenseXHR(o,s,e,t).then((function(t){var i=t.xhr,n=t.licenseChallenge;e.keySystem==q.PLAYREADY&&(n=r.unpackPlayReadyKeyMessage(i,n)),i.send(n)}))}))},t.onMediaAttached=function(e,t){if(this.config.emeEnabled){var r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}},t.onMediaDetached=function(){var t=this,r=this.media,i=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},et.clearKeyUriToKeyIdMap();var n=i.length;e.CDMCleanupPromise=Promise.all(i.map((function(e){return t.removeSession(e)})).concat(null==r?void 0:r.setMediaKeys(null).catch((function(e){t.log("Could not clear media keys: "+e)})))).then((function(){n&&(t.log("finished closing key sessions and clearing media keys"),i.length=0)})).catch((function(e){t.log("Could not close sessions and clear media keys: "+e)}))},t.onManifestLoading=function(){this.keyFormatPromise=null},t.onManifestLoaded=function(e,t){var r=t.sessionKeys;if(r&&this.config.emeEnabled&&!this.keyFormatPromise){var i=r.reduce((function(e,t){return-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e}),[]);this.log("Selecting key-system from session-keys "+i.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(i)}},t.removeSession=function(e){var t=this,r=e.mediaKeysSession,i=e.licenseXhr;if(r){this.log("Remove licenses and keys and close session "+r.sessionId),e._onmessage&&(r.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(r.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),i&&i.readyState!==XMLHttpRequest.DONE&&i.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var n=this.mediaKeySessions.indexOf(e);return n>-1&&this.mediaKeySessions.splice(n,1),r.remove().catch((function(e){t.log("Could not remove session: "+e)})).then((function(){return r.close()})).catch((function(e){t.log("Could not close session: "+e)}))}},e}();ns.CDMCleanupPromise=void 0;var as,ss,os,ls,us=function(e){function t(t,r){var i;return(i=e.call(this,r)||this).data=void 0,t.error||(t.error=new Error(r)),i.data=t,t.err=t.error,i}return l(t,e),t}(c(Error));!function(e){e.MANIFEST="m",e.AUDIO="a",e.VIDEO="v",e.MUXED="av",e.INIT="i",e.CAPTION="c",e.TIMED_TEXT="tt",e.KEY="k",e.OTHER="o"}(as||(as={})),function(e){e.DASH="d",e.HLS="h",e.SMOOTH="s",e.OTHER="o"}(ss||(ss={})),function(e){e.OBJECT="CMCD-Object",e.REQUEST="CMCD-Request",e.SESSION="CMCD-Session",e.STATUS="CMCD-Status"}(os||(os={}));var hs=((ls={})[os.OBJECT]=["br","d","ot","tb"],ls[os.REQUEST]=["bl","dl","mtp","nor","nrr","su"],ls[os.SESSION]=["cid","pr","sf","sid","st","v"],ls[os.STATUS]=["bs","rtp"],ls),ds=function e(t,r){this.value=void 0,this.params=void 0,Array.isArray(t)&&(t=t.map((function(t){return t instanceof e?t:new e(t)}))),this.value=t,this.params=r},cs=function(e){this.description=void 0,this.description=e},fs="Dict";function gs(e,t,r,i){return new Error("failed to "+e+' "'+(n=t,(Array.isArray(n)?JSON.stringify(n):n instanceof Map?"Map{}":n instanceof Set?"Set{}":"object"==typeof n?JSON.stringify(n):String(n))+'" as ')+r,{cause:i});var n}var vs="Bare Item",ms="Boolean",ps="Byte Sequence",ys="Decimal",Es="Integer",Ts=/[\x00-\x1f\x7f]+/,Ss="Token",Ls="Key";function As(e,t,r){return gs("serialize",e,t,r)}function Rs(e){if(!1===ArrayBuffer.isView(e))throw As(e,ps);return":"+(t=e,btoa(String.fromCharCode.apply(String,t))+":");var t}function ks(e){if(function(e){return e<-999999999999999||99999999999999912)throw As(e,ys);var r=t.toString();return r.includes(".")?r:r+".0"}var Is="String";function ws(e){var t,r=(t=e).description||t.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r))throw As(r,Ss);return r}function Cs(e){switch(typeof e){case"number":if(!y(e))throw As(e,vs);return Number.isInteger(e)?ks(e):Ds(e);case"string":return function(e){if(Ts.test(e))throw As(e,Is);return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}(e);case"symbol":return ws(e);case"boolean":return function(e){if("boolean"!=typeof e)throw As(e,ms);return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return"@"+ks(e.getTime()/1e3)}(e);if(e instanceof Uint8Array)return Rs(e);if(e instanceof cs)return ws(e);default:throw As(e,vs)}}function _s(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw As(e,Ls);return e}function xs(e){return null==e?"":Object.entries(e).map((function(e){var t=e[0],r=e[1];return!0===r?";"+_s(t):";"+_s(t)+"="+Cs(r)})).join("")}function Ps(e){return e instanceof ds?""+Cs(e.value)+xs(e.params):Cs(e)}function Fs(e,t){var r;if(void 0===t&&(t={whitespace:!0}),"object"!=typeof e)throw As(e,fs);var i=e instanceof Map?e.entries():Object.entries(e),n=null!=(r=t)&&r.whitespace?" ":"";return Array.from(i).map((function(e){var t=e[0],r=e[1];r instanceof ds==0&&(r=new ds(r));var i,n=_s(t);return!0===r.value?n+=xs(r.params):(n+="=",Array.isArray(r.value)?n+="("+(i=r).value.map(Ps).join(" ")+")"+xs(i.params):n+=Ps(r)),n})).join(","+n)}var Ms=function(e){return"ot"===e||"sf"===e||"st"===e},Os=function(e){return"number"==typeof e?y(e):null!=e&&""!==e&&!1!==e},Ns=function(e){return Math.round(e)},Us=function(e){return 100*Ns(e/100)},Bs={br:Ns,d:Ns,bl:Us,dl:Us,mtp:Us,nor:function(e,t){return null!=t&&t.baseUrl&&(e=function(e,t){var r=new URL(e),i=new URL(t);if(r.origin!==i.origin)return e;for(var n=r.pathname.split("/").slice(1),a=i.pathname.split("/").slice(1,-1);n[0]===a[0];)n.shift(),a.shift();for(;a.length;)a.shift(),n.unshift("..");return n.join("/")}(e,t.baseUrl)),encodeURIComponent(e)},rtp:Us,tb:Ns};function Gs(e,t){return void 0===t&&(t={}),e?function(e,t){return Fs(e,t)}(function(e,t){var r={};if(null==e||"object"!=typeof e)return r;var i=Object.keys(e).sort(),n=o({},Bs,null==t?void 0:t.formatters),a=null==t?void 0:t.filter;return i.forEach((function(i){if(null==a||!a(i)){var s=e[i],o=n[i];o&&(s=o(s,t)),"v"===i&&1===s||"pr"==i&&1===s||Os(s)&&(Ms(i)&&"string"==typeof s&&(s=new cs(s)),r[i]=s)}})),r}(e,t),o({whitespace:!1},t)):""}function Ks(e,t,r){return o(e,function(e,t){var r;if(void 0===t&&(t={}),!e)return{};var i=Object.entries(e),n=Object.entries(hs).concat(Object.entries((null==(r=t)?void 0:r.customHeaderMap)||{})),a=i.reduce((function(e,t){var r,i=t[0],a=t[1],s=(null==(r=n.find((function(e){return e[1].includes(i)})))?void 0:r[0])||os.REQUEST;return null!=e[s]||(e[s]={}),e[s][i]=a,e}),{});return Object.entries(a).reduce((function(e,r){var i=r[0],n=r[1];return e[i]=Gs(n,t),e}),{})}(t,r))}var Hs="CMCD",Vs=/CMCD=[^&#]+/;function Ys(e,t,r){var i=function(e,t){if(void 0===t&&(t={}),!e)return"";var r=Gs(e,t);return Hs+"="+encodeURIComponent(r)}(t,r);if(!i)return e;if(Vs.test(e))return e.replace(Vs,i);var n=e.includes("?")?"&":"?";return""+e+n+i}var Ws=function(){function e(e){var t=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){t.initialized&&(t.starved=!0),t.buffering=!0},this.onPlaying=function(){t.initialized||(t.initialized=!0),t.buffering=!1},this.applyPlaylistData=function(e){try{t.apply(e,{ot:as.MANIFEST,su:!t.initialized})}catch(e){w.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(e){try{var r=e.frag,i=t.hls.levels[r.level],n=t.getObjectType(r),a={d:1e3*r.duration,ot:n};n!==as.VIDEO&&n!==as.AUDIO&&n!=as.MUXED||(a.br=i.bitrate/1e3,a.tb=t.getTopBandwidth(n)/1e3,a.bl=t.getBufferLength(n)),t.apply(e,a)}catch(e){w.warn("Could not generate segment CMCD data.",e)}},this.hls=e;var r=this.config=e.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||function(){try{return crypto.randomUUID()}catch(i){try{var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){var r=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"==e?t:3&t|8).toString(16)}))}}}(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.MEDIA_DETACHED,this.onMediaDetached,this),e.on(S.BUFFER_CREATED,this.onBufferCreated,this)},t.unregisterListeners=function(){var e=this.hls;e.off(S.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.MEDIA_DETACHED,this.onMediaDetached,this),e.off(S.BUFFER_CREATED,this.onBufferCreated,this)},t.destroy=function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null},t.onMediaAttached=function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},t.onMediaDetached=function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)},t.onBufferCreated=function(e,t){var r,i;this.audioBuffer=null==(r=t.tracks.audio)?void 0:r.buffer,this.videoBuffer=null==(i=t.tracks.video)?void 0:i.buffer},t.createData=function(){var e;return{v:1,sf:ss.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},t.apply=function(e,t){void 0===t&&(t={}),o(t,this.createData());var r=t.ot===as.INIT||t.ot===as.VIDEO||t.ot===as.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);var i=this.includeKeys;i&&(t=Object.keys(t).reduce((function(e,r){return i.includes(r)&&(e[r]=t[r]),e}),{})),this.useHeaders?(e.headers||(e.headers={}),Ks(e.headers,t)):e.url=Ys(e.url,t)},t.getObjectType=function(e){var t=e.type;return"subtitle"===t?as.TIMED_TEXT:"initSegment"===e.sn?as.INIT:"audio"===t?as.AUDIO:"main"===t?this.hls.audioTracks.length?as.VIDEO:as.MUXED:void 0},t.getTopBandwidth=function(e){var t,r=0,i=this.hls;if(e===as.AUDIO)t=i.audioTracks;else{var n=i.maxAutoLevel,a=n>-1?n+1:i.levels.length;t=i.levels.slice(0,a)}for(var s,o=g(t);!(s=o()).done;){var l=s.value;l.bitrate>r&&(r=l.bitrate)}return r>0?r:NaN},t.getBufferLength=function(e){var t=this.hls.media,r=e===as.AUDIO?this.audioBuffer:this.videoBuffer;return r&&t?1e3*ii.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len:NaN},t.createPlaylistLoader=function(){var e=this.config.pLoader,t=this.applyPlaylistData,r=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new r(e)}var i=e.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(e,r,i){t(e),this.loader.load(e,r,i)},s(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},t.createFragmentLoader=function(){var e=this.config.fLoader,t=this.applyFragmentData,r=e||this.config.loader;return function(){function e(e){this.loader=void 0,this.loader=new r(e)}var i=e.prototype;return i.destroy=function(){this.loader.destroy()},i.abort=function(){this.loader.abort()},i.load=function(e,r,i){t(e),this.loader.load(e,r,i)},s(e,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),e}()},e}(),js=function(){function e(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=w.log.bind(w,"[content-steering]:"),this.registerListeners()}var t=e.prototype;return t.registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(S.MANIFEST_PARSED,this.onManifestParsed,this),e.on(S.ERROR,this.onError,this)},t.unregisterListeners=function(){var e=this.hls;e&&(e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(S.MANIFEST_PARSED,this.onManifestParsed,this),e.off(S.ERROR,this.onError,this))},t.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}},t.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},t.clearTimeout=function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},t.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},t.removeLevel=function(e){var t=this.levels;t&&(this.levels=t.filter((function(t){return t!==e})))},t.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},t.onManifestLoaded=function(e,t){var r=t.contentSteering;null!==r&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())},t.onManifestParsed=function(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks},t.onError=function(e,t){var r=t.errorAction;if((null==r?void 0:r.action)===Ir&&r.flags===xr){var i=this.levels,n=this.pathwayPriority,a=this.pathwayId;if(t.context){var s=t.context,o=s.groupId,l=s.pathwayId,u=s.type;o&&i?a=this.getPathwayForGroupId(o,u,a):l&&(a=l)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!n&&i&&(n=i.reduce((function(e,t){return-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e}),[])),n&&n.length>1&&(this.updatePathwayPriority(n),r.resolved=this.pathwayId!==a),r.resolved||w.warn("Could not resolve "+t.details+' ("'+t.error.message+'") with content-steering for Pathway: '+a+" levels: "+(i?i.length:i)+" priorities: "+JSON.stringify(n)+" penalized: "+JSON.stringify(this.penalizedPathways))}},t.filterParsedLevels=function(e){this.levels=e;var t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){var r=e[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+r+'"'),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log("Found "+t.length+"/"+e.length+' levels in Pathway "'+this.pathwayId+'"'),t},t.getLevelsForPathway=function(e){return null===this.levels?[]:this.levels.filter((function(t){return e===t.pathwayId}))},t.updatePathwayPriority=function(e){var t;this.pathwayPriority=e;var r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach((function(e){i-r[e]>3e5&&delete r[e]}));for(var n=0;n0){this.log('Setting Pathway to "'+a+'"'),this.pathwayId=a,pr(t),this.hls.trigger(S.LEVELS_UPDATED,{levels:t});var l=this.hls.levels[s];o&&l&&this.levels&&(l.attrs["STABLE-VARIANT-ID"]!==o.attrs["STABLE-VARIANT-ID"]&&l.bitrate!==o.bitrate&&this.log("Unstable Pathways change from bitrate "+o.bitrate+" to "+l.bitrate),this.hls.nextLoadLevel=s);break}}}},t.getPathwayForGroupId=function(e,t,r){for(var i=this.getLevelsForPathway(r).concat(this.levels||[]),n=0;n=2&&(0===r.loading.first&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),n.timeout!==n.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),n.timeout=n.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;var a=t.status,s="text"===t.responseType?t.responseText:null;if(a>=200&&a<300){var o=null!=s?s:t.response;if(null!=o){r.loading.end=Math.max(self.performance.now(),r.loading.first);var l="arraybuffer"===t.responseType?o.byteLength:o.length;if(r.loaded=r.total=l,r.bwEstimate=8e3*r.total/(r.loading.end-r.loading.first),!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(r,e,o,t),!this.callbacks)return;var h={url:t.responseURL,data:o,code:a};return void this.callbacks.onSuccess(h,r,e,t)}}var d=n.loadPolicy.errorRetry;Lr(d,r.retry,!1,{url:e.url,data:void 0,code:a})?this.retry(d):(w.error(a+" while loading "+e.url),this.callbacks.onError({code:a,text:t.statusText},e,t,r))}}},t.loadtimeout=function(){if(this.config){var e=this.config.loadPolicy.timeoutRetry;if(Lr(e,this.stats.retry,!0))this.retry(e);else{var t;w.warn("timeout while loading "+(null==(t=this.context)?void 0:t.url));var r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}},t.retry=function(e){var t=this.context,r=this.stats;this.retryDelay=Tr(e,r.retry),r.retry++,w.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(null==t?void 0:t.url)+", retrying "+r.retry+"/"+e.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},t.loadprogress=function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)},t.getCacheAge=function(){var e=null;if(this.loader&&zs.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.loader&&new RegExp("^"+e+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null},e}(),Js=/(\d+)-(\d+)\/(\d+)/,$s=function(){function e(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Zs,this.controller=new self.AbortController,this.stats=new M}var t=e.prototype;return t.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},t.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},t.abort=function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},t.load=function(e,t,r){var i=this,n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();var a=function(e,t){var r={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(o({},e.headers))};return e.rangeEnd&&r.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),r}(e,this.controller.signal),s=r.onProgress,l="arraybuffer"===e.responseType,u=l?"byteLength":"length",h=t.loadPolicy,d=h.maxTimeToFirstByteMs,c=h.maxLoadTimeMs;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,a),self.clearTimeout(this.requestTimeout),t.timeout=d&&y(d)?d:c,this.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,e,i.response)}),t.timeout),self.fetch(this.request).then((function(a){i.response=i.loader=a;var o=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(i.requestTimeout),t.timeout=c,i.requestTimeout=self.setTimeout((function(){i.abortInternal(),r.onTimeout(n,e,i.response)}),c-(o-n.loading.start)),!a.ok){var u=a.status,h=a.statusText;throw new to(h||"fetch, bad network response",u,a)}return n.loading.first=o,n.total=function(e){var t=e.get("Content-Range");if(t){var r=function(e){var t=Js.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(y(r))return r}var i=e.get("Content-Length");if(i)return parseInt(i)}(a.headers)||n.total,s&&y(t.highWaterMark)?i.loadProgressively(a,n,e,t.highWaterMark,s):l?a.arrayBuffer():"json"===e.responseType?a.json():a.text()})).then((function(a){var o=i.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(i.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);var l=a[u];l&&(n.loaded=n.total=l);var h={url:o.url,data:a,code:o.status};s&&!y(t.highWaterMark)&&s(n,e,a,o),r.onSuccess(h,n,e,o)})).catch((function(t){if(self.clearTimeout(i.requestTimeout),!n.aborted){var a=t&&t.code||0,s=t?t.message:null;r.onError({code:a,text:s},e,t?t.details:null,n)}}))},t.getCacheAge=function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e},t.getResponseHeader=function(e){return this.response?this.response.headers.get(e):null},t.loadProgressively=function(e,t,r,i,n){void 0===i&&(i=0);var a=new Pi,s=e.body.getReader();return function o(){return s.read().then((function(s){if(s.done)return a.dataLength&&n(t,r,a.flush(),e),Promise.resolve(new ArrayBuffer(0));var l=s.value,u=l.length;return t.loaded+=u,u=i&&n(t,r,a.flush(),e)):n(t,r,l,e),o()})).catch((function(){return Promise.reject()}))}()},e}();function Zs(e,t){return new self.Request(e.url,t)}var eo,to=function(e){function t(t,r,i){var n;return(n=e.call(this,t)||this).code=void 0,n.details=void 0,n.code=r,n.details=i,n}return l(t,e),t}(c(Error)),ro=/\s/,io=i(i({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Qs,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:qr,bufferController:aa,capLevelController:ts,errorController:Fr,fpsController:rs,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:oe,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(e,t,r,i){for(var n,a,s,o,l,u=[],h=self.VTTCue||self.TextTrackCue,d=0;d=16?o--:o++;var g=Fa(l.trim()),v=Ba(t,r,g);null!=e&&null!=(c=e.cues)&&c.getCueById(v)||((a=new h(t,r,g)).id=v,a.line=d+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*o/32)),u.push(a))}return e&&u.length&&(u.sort((function(e,t){return"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line})),u.forEach((function(t){return Ht(e,t)}))),u}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:ea,subtitleTrackController:ra,timelineController:$a,audioStreamController:zn,audioTrackController:Zn,emeController:ns,cmcdController:Ws,contentSteeringController:js});function no(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(no):Object.keys(e).reduce((function(t,r){return t[r]=no(e[r]),t}),{}):e}function ao(e){var t=e.loader;t!==$s&&t!==Qs?(w.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=$s,e.progressive=!0,e.enableSoftwareAES=!0,w.log("[config]: Progressive streaming enabled, using FetchLoader"))}var so=function(e){function t(t,r){var i;return(i=e.call(this,t,"[level-controller]")||this)._levels=[],i._firstLevel=-1,i._maxAutoLevel=-1,i._startLevel=void 0,i.currentLevel=null,i.currentLevelIndex=-1,i.manualLevelIndex=-1,i.steering=void 0,i.onParsedComplete=void 0,i.steering=r,i._registerListeners(),i}l(t,e);var r=t.prototype;return r._registerListeners=function(){var e=this.hls;e.on(S.MANIFEST_LOADING,this.onManifestLoading,this),e.on(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(S.LEVEL_LOADED,this.onLevelLoaded,this),e.on(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(S.FRAG_BUFFERED,this.onFragBuffered,this),e.on(S.ERROR,this.onError,this)},r._unregisterListeners=function(){var e=this.hls;e.off(S.MANIFEST_LOADING,this.onManifestLoading,this),e.off(S.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(S.LEVEL_LOADED,this.onLevelLoaded,this),e.off(S.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(S.FRAG_BUFFERED,this.onFragBuffered,this),e.off(S.ERROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),e.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach((function(e){e.loadError=0,e.fragmentError=0})),e.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(e,t){this.resetLevels()},r.onManifestLoaded=function(e,t){var r=this.hls.config.preferManagedMediaSource,i=[],n={},a={},s=!1,o=!1,l=!1;t.levels.forEach((function(e){var t,u,h=e.attrs,d=e.audioCodec,c=e.videoCodec;-1!==(null==(t=d)?void 0:t.indexOf("mp4a.40.34"))&&(eo||(eo=/chrome|firefox/i.test(navigator.userAgent)),eo&&(e.audioCodec=d=void 0)),d&&(e.audioCodec=d=mt(d,r)),0===(null==(u=c)?void 0:u.indexOf("avc1"))&&(c=e.videoCodec=function(e){for(var t=e.split(","),r=0;r2){var n=i.shift()+".";n+=parseInt(i.shift()).toString(16),n+=("000"+parseInt(i.shift()).toString(16)).slice(-4),t[r]=n}}return t.join(",")}(c));var f=e.width,g=e.height,v=e.unknownCodecs;if(s||(s=!(!f||!g)),o||(o=!!c),l||(l=!!d),!(null!=v&&v.length||d&&!ut(d,"audio",r)||c&&!ut(c,"video",r))){var m=h.CODECS,p=h["FRAME-RATE"],y=h["HDCP-LEVEL"],E=h["PATHWAY-ID"],T=h.RESOLUTION,S=h["VIDEO-RANGE"],L=(E||".")+"-"+e.bitrate+"-"+T+"-"+p+"-"+m+"-"+S+"-"+y;if(n[L])if(n[L].uri===e.url||e.attrs["PATHWAY-ID"])n[L].addGroupId("audio",h.AUDIO),n[L].addGroupId("text",h.SUBTITLES);else{var A=a[L]+=1;e.attrs["PATHWAY-ID"]=new Array(A+1).join(".");var R=new lr(e);n[L]=R,i.push(R)}else{var k=new lr(e);n[L]=k,a[L]=1,i.push(k)}}})),this.filterAndSortMediaOptions(i,t,s,o,l)},r.filterAndSortMediaOptions=function(e,t,r,i,n){var a=this,s=[],o=[],l=e;if((r||i)&&n&&(l=l.filter((function(e){var t,r=e.videoCodec,i=e.videoRange,n=e.width,a=e.height;return(!!r||!(!n||!a))&&!!(t=i)&&rr.indexOf(t)>-1}))),0!==l.length){if(t.audioTracks){var u=this.hls.config.preferManagedMediaSource;oo(s=t.audioTracks.filter((function(e){return!e.audioCodec||ut(e.audioCodec,"audio",u)})))}t.subtitles&&oo(o=t.subtitles);var h=l.slice(0);l.sort((function(e,t){if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return rr.indexOf(e.videoRange)-rr.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){var i=ct(e.videoCodec),n=ct(t.videoCodec);if(i!==n)return n-i}if(e.uri===t.uri&&e.codecSet!==t.codecSet){var a=ft(e.codecSet),s=ft(t.codecSet);if(a!==s)return s-a}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));var d=h[0];if(this.steering&&(l=this.steering.filterParsedLevels(l)).length!==h.length)for(var c=0;cm&&m===io.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=p)}break}var y=n&&!i,E={levels:l,audioTracks:s,subtitleTracks:o,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:n,video:i,altAudio:!y&&s.some((function(e){return!!e.url}))};this.hls.trigger(S.MANIFEST_PARSED,E),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(a.hls){t.levels.length&&a.warn("One or more CODECS in variant not supported: "+JSON.stringify(t.levels[0].attrs));var e=new Error("no level with compatible codecs found in manifest");a.hls.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:e,reason:e.message})}}))},r.onError=function(e,t){!t.fatal&&t.context&&t.context.type===xt&&t.context.level===this.level&&this.checkRetry(t)},r.onFragBuffered=function(e,t){var r=t.frag;if(void 0!==r&&r.type===Mt){var i=r.elementaryStreams;if(!Object.keys(i).some((function(e){return!!i[e]})))return;var n=this._levels[r.level];null!=n&&n.loadError&&(this.log("Resetting level error count of "+n.loadError+" on frag buffered"),n.loadError=0)}},r.onLevelLoaded=function(e,t){var r,i,n=t.level,a=t.details,s=this._levels[n];if(!s)return this.warn("Invalid level index "+n),void(null!=(i=t.deliveryDirectives)&&i.skip&&(a.deltaUpdateFailed=!0));n===this.currentLevelIndex?(0===s.fragmentError&&(s.loadError=0),this.playlistLoaded(n,t,s.details)):null!=(r=t.deliveryDirectives)&&r.skip&&(a.deltaUpdateFailed=!0)},r.loadPlaylist=function(t){e.prototype.loadPlaylist.call(this);var r=this.currentLevelIndex,i=this.currentLevel;if(i&&this.shouldLoadPlaylist(i)){var n=i.uri;if(t)try{n=t.addDirectives(n)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}var a=i.attrs["PATHWAY-ID"];this.log("Loading level index "+r+(void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:"")+" with"+(a?" Pathway "+a:"")+" "+n),this.clearTimer(),this.hls.trigger(S.LEVEL_LOADING,{url:n,level:r,pathwayId:i.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}},r.removeLevel=function(e){var t,r=this,i=this._levels.filter((function(t,i){return i!==e||(r.steering&&r.steering.removeLevel(t),t===r.currentLevel&&(r.currentLevel=null,r.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((function(e){return e.level=-1}))),!1)}));pr(i),this._levels=i,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(S.LEVELS_UPDATED,{levels:i})},r.onLevelsUpdated=function(e,t){var r=t.levels;this._levels=r},r.checkMaxAutoUpdated=function(){var e=this.hls,t=e.autoLevelCapping,r=e.maxAutoLevel,i=e.maxHdcpLevel;this._maxAutoLevel!==r&&(this._maxAutoLevel=r,this.hls.trigger(S.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:r,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:i}))},s(t,[{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;if(0!==t.length){if(e<0||e>=t.length){var r=new Error("invalid level idx"),i=e<0;if(this.hls.trigger(S.ERROR,{type:L.OTHER_ERROR,details:A.LEVEL_SWITCH_ERROR,level:e,fatal:i,error:r,reason:r.message}),i)return;e=Math.min(e,t.length-1)}var n=this.currentLevelIndex,a=this.currentLevel,s=a?a.attrs["PATHWAY-ID"]:void 0,o=t[e],l=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=o,n!==e||!o.details||!a||s!==l){this.log("Switching to level "+e+" ("+(o.height?o.height+"p ":"")+(o.videoRange?o.videoRange+" ":"")+(o.codecSet?o.codecSet+" ":"")+"@"+o.bitrate+")"+(l?" with Pathway "+l:"")+" from level "+n+(s?" with Pathway "+s:""));var u={level:e,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(S.LEVEL_SWITCHING,u);var h=o.details;if(!h||h.live){var d=this.switchParams(o.uri,null==a?void 0:a.details,h);this.loadPlaylist(d)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}]),t}(Mr);function oo(e){var t={};e.forEach((function(e){var r=e.groupId||"";e.id=t[r]=t[r]||0,t[r]++}))}var lo=function(){function e(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}var t=e.prototype;return t.abort=function(e){for(var t in this.keyUriToKeyInfo){var r=this.keyUriToKeyInfo[t].loader;if(r){var i;if(e&&e!==(null==(i=r.context)?void 0:i.frag.type))return;r.abort()}}},t.detach=function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}},t.destroy=function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}},t.createKeyLoadError=function(e,t,r,i,n){return void 0===t&&(t=A.KEY_LOAD_ERROR),new gi({type:L.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:n,error:r,networkDetails:i})},t.loadClear=function(e,t){var r=this;if(this.emeController&&this.config.emeEnabled)for(var i=e.sn,n=e.cc,a=function(){var e=t[s];if(n<=e.cc&&("initSegment"===i||"initSegment"===e.sn||i2,c=!h||t&&t.start<=a||h-a>2&&!this.fragmentTracker.getPartialFragment(a);if(d||c)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var f;if(!(u.len>0||h))return;var g=Math.max(h,u.start||0)-a,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,m=(null==v||null==(f=v.details)?void 0:f.live)?2*v.details.targetduration:2,p=this.fragmentTracker.getPartialFragment(a);if(g>0&&(g<=m||p))return void(i.paused||this._trySkipBufferHole(p))}var y=self.performance.now();if(null!==n){var E=y-n;if(s||!(E>=250)||(this._reportStall(u),this.media)){var T=ii.bufferInfo(i,a,r.maxBufferHole);this._tryFixBufferStall(T,E)}}else this.stalled=y}else if(this.moved=!0,s||(this.nudgeRetry=0),null!==n){if(this.stallReported){var S=self.performance.now()-n;w.warn("playback not stuck anymore @"+a+", after "+Math.round(S)+"ms"),this.stallReported=!1}this.stalled=null}}},t._tryFixBufferStall=function(e,t){var r=this.config,i=this.fragmentTracker,n=this.media;if(null!==n){var a=n.currentTime,s=i.getPartialFragment(a);if(s&&(this._trySkipBufferHole(s)||!this.media))return;(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-a1e3*r.highBufferWatchdogPeriod&&(w.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},t._reportStall=function(e){var t=this.hls,r=this.media;if(!this.stallReported&&r){this.stallReported=!0;var i=new Error("Playback stalling at @"+r.currentTime+" due to low buffer ("+JSON.stringify(e)+")");w.warn(i.message),t.trigger(S.ERROR,{type:L.MEDIA_ERROR,details:A.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}},t._trySkipBufferHole=function(e){var t=this.config,r=this.hls,i=this.media;if(null===i)return 0;var n=i.currentTime,a=ii.bufferInfo(i,n,0),s=n0&&a.len<1&&i.readyState<3,u=s-n;if(u>0&&(o||l)){if(u>t.maxBufferHole){var h=this.fragmentTracker,d=!1;if(0===n){var c=h.getAppendedFrag(0,Mt);c&&s1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&-1===e&&(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=Si,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Ti},r.stopLoad=function(){this._forceStartLoad=!1,e.prototype.stopLoad.call(this)},r.doTick=function(){switch(this.state){case _i:var e=this.levels,t=this.level,r=null==e?void 0:e[t],i=null==r?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=Si;break}if(this.hls.nextLoadLevel!==this.level){this.state=Si;break}break;case Ri:var n,a=self.performance.now(),s=this.retryDate;if(!s||a>=s||null!=(n=this.media)&&n.seeking){var o=this.levels,l=this.level,u=null==o?void 0:o[l];this.resetStartWhenNotLoaded(u||null),this.state=Si}}this.state===Si&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){e.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},r.doTickIdle=function(){var e=this.hls,t=this.levelLastLoaded,r=this.levels,i=this.media;if(null!==t&&(i||!this.startFragRequested&&e.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var n=this.buffering?e.nextLoadLevel:e.loadLevel;if(null!=r&&r[n]){var a=r[n],s=this.getMainFwdBufferInfo();if(null!==s){var o=this.getLevelDetails();if(o&&this._streamEnded(s,o)){var l={};return this.altAudio&&(l.type="video"),this.hls.trigger(S.BUFFER_EOS,l),void(this.state=Ii)}if(this.buffering){e.loadLevel!==n&&-1===e.manualLevel&&this.log("Adapting to level "+n+" from level "+this.level),this.level=e.nextLoadLevel=n;var u=a.details;if(!u||this.state===_i||u.live&&this.levelLastLoaded!==a)return this.level=n,void(this.state=_i);var h=s.len,d=this.getMaxBufferLength(a.maxBitrate);if(!(h>=d)){this.backtrackFragment&&this.backtrackFragment.start>s.end&&(this.backtrackFragment=null);var c=this.backtrackFragment?this.backtrackFragment.start:s.end,f=this.getNextFragment(c,u);if(this.couldBacktrack&&!this.fragPrevious&&f&&"initSegment"!==f.sn&&this.fragmentTracker.getState(f)!==$r){var g,v=(null!=(g=this.backtrackFragment)?g:f).sn-u.startSN,m=u.fragments[v-1];m&&f.cc===m.cc&&(f=m,this.fragmentTracker.removeFragment(m))}else this.backtrackFragment&&s.len&&(this.backtrackFragment=null);if(f&&this.isLoopLoading(f,c)){if(!f.gap){var p=this.audioOnly&&!this.altAudio?O:N,y=(p===N?this.videoBuffer:this.mediaBuffer)||this.media;y&&this.afterBufferFlushed(y,p,Mt)}f=this.getNextFragmentLoopLoading(f,u,s,Mt,d)}f&&(!f.initSegment||f.initSegment.data||this.bitrateTest||(f=f.initSegment),this.loadFragment(f,a,c))}}}}}},r.loadFragment=function(t,r,i){var n=this.fragmentTracker.getState(t);this.fragCurrent=t,n===zr||n===Jr?"initSegment"===t.sn?this._loadInitSegment(t,r):this.bitrateTest?(this.log("Fragment "+t.sn+" of level "+t.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(t,r)):(this.startFragRequested=!0,e.prototype.loadFragment.call(this,t,r,i)):this.clearTrackerIfNeeded(t)},r.getBufferedFrag=function(e){return this.fragmentTracker.getBufferedFrag(e,Mt)},r.followingBufferedFrag=function(e){return e?this.getBufferedFrag(e.end+.5):null},r.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},r.nextLevelSwitch=function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var r,i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);var n=this.getLevelDetails();if(null!=n&&n.live){var a=this.getMainFwdBufferInfo();if(!a||a.len<2*n.targetduration)return}if(!t.paused&&e){var s=e[this.hls.nextLoadLevel],o=this.fragLastKbps;r=o&&this.fragCurrent?this.fragCurrent.duration*s.maxBitrate/(1e3*o)+1:0}else r=0;var l=this.getBufferedFrag(t.currentTime+r);if(l){var u=this.followingBufferedFrag(l);if(u){this.abortCurrentFrag();var h=u.maxStartPTS?u.maxStartPTS:u.start,d=u.duration,c=Math.max(l.end,h+Math.min(Math.max(d-this.config.maxFragLookUpTolerance,d*(this.couldBacktrack?.5:.125)),d*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(c,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Li:case Ai:case Ri:case bi:case Di:this.state=Si}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(t,r){e.prototype.flushMainBuffer.call(this,t,r,this.altAudio?"video":null)},r.onMediaAttached=function(t,r){e.prototype.onMediaAttached.call(this,t,r);var i=r.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new co(this.config,i,this.fragmentTracker,this.hls)},r.onMediaDetaching=function(){var t=this.media;t&&this.onvplaying&&this.onvseeked&&(t.removeEventListener("playing",this.onvplaying),t.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),e.prototype.onMediaDetaching.call(this)},r.onMediaPlaying=function(){this.tick()},r.onMediaSeeked=function(){var e=this.media,t=e?e.currentTime:null;y(t)&&this.log("Media seeked to "+t.toFixed(3));var r=this.getMainFwdBufferInfo();null!==r&&0!==r.len?this.tick():this.warn('Main forward buffer length on "seeked" event '+(r?r.len:"empty")+")")},r.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(S.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1},r.onManifestParsed=function(e,t){var r,i,n=!1,a=!1;t.levels.forEach((function(e){var t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),a=a||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&a&&!("function"==typeof(null==(i=uo())||null==(r=i.prototype)?void 0:r.changeType)),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1},r.onLevelLoading=function(e,t){var r=this.levels;if(r&&this.state===Si){var i=r[t.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=_i)}},r.onLevelLoaded=function(e,t){var r,i=this.levels,n=t.level,a=t.details,s=a.totalduration;if(i){this.log("Level "+n+" loaded ["+a.startSN+","+a.endSN+"]"+(a.lastPartSn?"[part-"+a.lastPartSn+"-"+a.lastPartIndex+"]":"")+", cc ["+a.startCC+", "+a.endCC+"] duration:"+s);var o=i[n],l=this.fragCurrent;!l||this.state!==Ai&&this.state!==Ri||l.level!==t.level&&l.loader&&this.abortCurrentFrag();var u=0;if(a.live||null!=(r=o.details)&&r.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,o.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(o.details=a,this.levelLastLoaded=o,this.hls.trigger(S.LEVEL_UPDATED,{details:a,level:n}),this.state===_i){if(this.waitForCdnTuneIn(a))return;this.state=Si}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,u),this.tick()}else this.warn("Levels were reset while loading level "+n)},r._handleFragmentLoadProgress=function(e){var t,r=e.frag,i=e.part,n=e.payload,a=this.levels;if(a){var s=a[r.level],o=s.details;if(!o)return this.warn("Dropping fragment "+r.sn+" of level "+r.level+" after level details were reset"),void this.fragmentTracker.removeFragment(r);var l=s.videoCodec,u=o.PTSKnown||!o.live,h=null==(t=r.initSegment)?void 0:t.data,d=this._getAudioCodec(s),c=this.transmuxer=this.transmuxer||new Xn(this.hls,Mt,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=i?i.index:-1,g=-1!==f,v=new ni(r.level,r.sn,r.stats.chunkCount,n.byteLength,f,g),m=this.initPTS[r.cc];c.push(n,h,d,l,r,i,o.totalduration,u,v,m)}else this.warn("Levels were reset while fragment load was in progress. Fragment "+r.sn+" of level "+r.level+" will not be buffered")},r.onAudioTrackSwitching=function(e,t){var r=this.altAudio;if(!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i&&(this.log("Switching to main audio track, cancel main fragment load"),i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var n=this.hls;r&&(n.trigger(S.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),n.trigger(S.AUDIO_TRACK_SWITCHED,t)}},r.onAudioTrackSwitched=function(e,t){var r=t.id,i=!!this.hls.audioTracks[r].url;if(i){var n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=i,this.tick()},r.onBufferCreated=function(e,t){var r,i,n=t.tracks,a=!1;for(var s in n){var o=n[s];if("main"===o.id){if(i=s,r=o,"video"===s){var l=n[s];l&&(this.videoBuffer=l.buffer)}}else a=!0}a&&r?(this.log("Alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(e,t){var r=t.frag,i=t.part;if(!r||r.type===Mt){if(this.fragContextChanged(r))return this.warn("Fragment "+r.sn+(i?" p: "+i.index:"")+" of level "+r.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===Di&&(this.state=Si));var n=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*n.total/(n.buffering.end-n.loading.first)),"initSegment"!==r.sn&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}},r.onError=function(e,t){var r;if(t.fatal)this.state=wi;else switch(t.details){case A.FRAG_GAP:case A.FRAG_PARSING_ERROR:case A.FRAG_DECRYPT_ERROR:case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Mt,t);break;case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:case A.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==_i||(null==(r=t.context)?void 0:r.type)!==xt||(this.state=Si);break;case A.BUFFER_APPEND_ERROR:case A.BUFFER_FULL_ERROR:if(!t.parent||"main"!==t.parent)return;if(t.details===A.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case A.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}},r.checkBuffer=function(){var e=this.media,t=this.gapController;if(e&&t&&e.readyState){if(this.loadedmetadata||!ii.getBuffered(e).length){var r=this.state!==Si?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}},r.onFragLoadEmergencyAborted=function(){this.state=Si,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},r.onBufferFlushed=function(e,t){var r=t.type;if(r!==O||this.audioOnly&&!this.altAudio){var i=(r===N?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(i,r,Mt),this.tick()}},r.onLevelsUpdated=function(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var e=this.media;if(e){var t=e.currentTime,r=this.startPosition;if(r>=0&&t0&&(nT.cc;if(!1!==n.independent){var R=h.startPTS,k=h.endPTS,b=h.startDTS,D=h.endDTS;if(l)l.elementaryStreams[h.type]={startPTS:R,endPTS:k,startDTS:b,endDTS:D};else if(h.firstKeyFrame&&h.independent&&1===a.id&&!A&&(this.couldBacktrack=!0),h.dropped&&h.independent){var I=this.getMainFwdBufferInfo(),w=(I?I.end:this.getLoadPosition())+this.config.maxBufferHole,C=h.firstKeyFramePTS?h.firstKeyFramePTS:R;if(!L&&w2&&(o.gap=!0);o.setElementaryStreamInfo(h.type,R,k,b,D),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(h,o,l,a,L||A)}else{if(!L&&!A)return void this.backtrack(o);o.gap=!0}}if(v){var _=v.startPTS,x=v.endPTS,P=v.startDTS,F=v.endDTS;l&&(l.elementaryStreams[O]={startPTS:_,endPTS:x,startDTS:P,endDTS:F}),o.setElementaryStreamInfo(O,_,x,P,F),this.bufferFragmentData(v,o,l,a)}if(g&&null!=c&&null!=(t=c.samples)&&t.length){var M={id:r,frag:o,details:g,samples:c.samples};i.trigger(S.FRAG_PARSING_METADATA,M)}if(g&&d){var N={id:r,frag:o,details:g,samples:d.samples};i.trigger(S.FRAG_PARSING_USERDATA,N)}}}else this.resetWhenMissingContext(a)},r._bufferInitSegment=function(e,t,r,i){var n=this;if(this.state===bi){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;var a=t.audio,s=t.video,o=t.audiovideo;if(a){var l=e.audioCodec,u=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){l&&(l=-1!==l.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");var h=a.metadata;h&&"channelCount"in h&&1!==(h.channelCount||1)&&-1===u.indexOf("firefox")&&(l="mp4a.40.5")}l&&-1!==l.indexOf("mp4a.40.5")&&-1!==u.indexOf("android")&&"audio/mpeg"!==a.container&&(l="mp4a.40.2",this.log("Android: force audio codec to "+l)),e.audioCodec&&e.audioCodec!==l&&this.log('Swapping manifest audio codec "'+e.audioCodec+'" for "'+l+'"'),a.levelCodec=l,a.id="main",this.log("Init audio buffer, container:"+a.container+", codecs[selected/level/parsed]=["+(l||"")+"/"+(e.audioCodec||"")+"/"+a.codec+"]")}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log("Init video buffer, container:"+s.container+", codecs[level/parsed]=["+(e.videoCodec||"")+"/"+s.codec+"]")),o&&this.log("Init audiovideo buffer, container:"+o.container+", codecs[level/parsed]=["+e.codecs+"/"+o.codec+"]"),this.hls.trigger(S.BUFFER_CODECS,t),Object.keys(t).forEach((function(e){var a=t[e].initSegment;null!=a&&a.byteLength&&n.hls.trigger(S.BUFFER_APPENDING,{type:e,data:a,frag:r,part:null,chunkMeta:i,parent:r.type})})),this.tickImmediate()}},r.getMainFwdBufferInfo=function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Mt)},r.backtrack=function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Si},r.checkFragmentChanged=function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var r=e.currentTime;if(ii.isBuffered(e,r)?t=this.getAppendedFrag(r):ii.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;var i=this.fragPlaying,n=t.level;i&&t.sn===i.sn&&i.level===n||(this.fragPlaying=t,this.hls.trigger(S.FRAG_CHANGED,{frag:t}),i&&i.level===n||this.hls.trigger(S.LEVEL_SWITCHED,{level:n}))}}},s(t,[{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}},{key:"currentProgramDateTime",get:function(){var e=this.media;if(e){var t=e.currentTime,r=this.currentFrag;if(r&&y(t)&&y(r.programDateTime)){var i=r.programDateTime+1e3*(t-r.start);return new Date(i)}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),t}(xi),go=function(){function e(t){void 0===t&&(t={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Yn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,I(t.debug||!1,"Hls instance");var r=this.config=function(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var r=no(e),n=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(e){var i=("level"===e?"playlist":e)+"LoadPolicy",a=void 0===t[i],s=[];n.forEach((function(n){var o=e+"Loading"+n,l=t[o];if(void 0!==l&&a){s.push(o);var u=r[i].default;switch(t[i]={default:u},n){case"TimeOut":u.maxLoadTimeMs=l,u.maxTimeToFirstByteMs=l;break;case"MaxRetry":u.errorRetry.maxNumRetry=l,u.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":u.errorRetry.retryDelayMs=l,u.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":u.errorRetry.maxRetryDelayMs=l,u.timeoutRetry.maxRetryDelayMs=l}}})),s.length&&w.warn('hls.js config: "'+s.join('", "')+'" setting(s) are deprecated, use "'+i+'": '+JSON.stringify(t[i]))})),i(i({},r),t)}(e.DefaultConfig,t);this.userConfig=t,r.progressive&&ao(r);var n=r.abrController,a=r.bufferController,s=r.capLevelController,o=r.errorController,l=r.fpsController,u=new o(this),h=this.abrController=new n(this),d=this.bufferController=new a(this),c=this.capLevelController=new s(this),f=new l(this),g=new Gt(this),v=new Zt(this),m=r.contentSteeringController,p=m?new m(this):null,y=this.levelController=new so(this,p),E=new Zr(this),T=new lo(this.config),L=this.streamController=new fo(this,E,T);c.setStreamController(L),f.setStreamController(L);var A=[g,y,L];p&&A.splice(1,0,p),this.networkControllers=A;var R=[h,d,c,f,v,E];this.audioTrackController=this.createController(r.audioTrackController,A);var k=r.audioStreamController;k&&A.push(new k(this,E,T)),this.subtitleTrackController=this.createController(r.subtitleTrackController,A);var b=r.subtitleStreamController;b&&A.push(new b(this,E,T)),this.createController(r.timelineController,R),T.emeController=this.emeController=this.createController(r.emeController,R),this.cmcdController=this.createController(r.cmcdController,R),this.latencyController=this.createController(er,R),this.coreComponents=R,A.push(u);var D=u.onErrorOut;"function"==typeof D&&this.on(S.ERROR,D,u)}e.isMSESupported=function(){return ho()},e.isSupported=function(){return function(){if(!ho())return!1;var e=ot();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(t){return e.isTypeSupported(dt(t,"video"))}))||["mp4a.40.2","fLaC"].some((function(t){return e.isTypeSupported(dt(t,"audio"))})))}()},e.getMediaSource=function(){return ot()};var t=e.prototype;return t.createController=function(e,t){if(e){var r=new e(this);return t&&t.push(r),r}return null},t.on=function(e,t,r){void 0===r&&(r=this),this._emitter.on(e,t,r)},t.once=function(e,t,r){void 0===r&&(r=this),this._emitter.once(e,t,r)},t.removeAllListeners=function(e){this._emitter.removeAllListeners(e)},t.off=function(e,t,r,i){void 0===r&&(r=this),this._emitter.off(e,t,r,i)},t.listeners=function(e){return this._emitter.listeners(e)},t.emit=function(e,t,r){return this._emitter.emit(e,t,r)},t.trigger=function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(w.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;var r=e===S.ERROR;this.trigger(S.ERROR,{type:L.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,fatal:r,event:e,error:t}),this.triggeringException=!1}}return!1},t.listenerCount=function(e){return this._emitter.listenerCount(e)},t.destroy=function(){w.log("destroy"),this.trigger(S.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0;var e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null},t.attachMedia=function(e){w.log("attachMedia"),this._media=e,this.trigger(S.MEDIA_ATTACHING,{media:e})},t.detachMedia=function(){w.log("detachMedia"),this.trigger(S.MEDIA_DETACHING,void 0),this._media=null},t.loadSource=function(e){this.stopLoad();var t=this.media,r=this.url,i=this.url=p.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,w.log("loadSource:"+i),t&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(S.MANIFEST_LOADING,{url:e})},t.startLoad=function(e){void 0===e&&(e=-1),w.log("startLoad("+e+")"),this.started=!0,this.resumeBuffering();for(var t=0;t-1?this.abrController.forcedAutoLevel:e},set:function(e){w.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(w.log("set autoLevelCapping:"+e),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN},set:function(e){this.abrController.resetEstimator(e)}},{key:"ttfbEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){(function(e){return tr.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var r=e.length,i=0;i=t)return i;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,r=this.autoLevelCapping,i=this.maxHdcpLevel;if(e=-1===r&&null!=t&&t.length?t.length-1:r,i)for(var n=e;n--;){var a=t[n].attrs["HDCP-LEVEL"];if(a&&a<=i)return n}return e}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(e){this.abrController.nextAutoLevel=e}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"allAudioTracks",get:function(){var e=this.audioTrackController;return e?e.allAudioTracks:[]}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"allSubtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.20"}},{key:"Events",get:function(){return S}},{key:"ErrorTypes",get:function(){return L}},{key:"ErrorDetails",get:function(){return A}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:io},set:function(t){e.defaultConfig=t}}]),e}();return go.defaultConfig=void 0,go},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(r="undefined"!=typeof globalThis?globalThis:r||self).Hls=i()}(!1); +//# sourceMappingURL=hls.min.js.map diff --git a/public/js/ovenplayer.js b/public/js/ovenplayer.js new file mode 100644 index 0000000..073ab74 --- /dev/null +++ b/public/js/ovenplayer.js @@ -0,0 +1,2 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OvenPlayer=t():e.OvenPlayer=t()}(self,(function(){return function(){var e={63166:function(e,t,n){"use strict";n.d(t,{default:function(){return vr}});var r="0.10.46",o=n(69986),i=n.n(o);function a(e){return e?e.replace(/^\s+|\s+$/g,""):""}var s=function(e){if(!e||"rtmp"==e.substr(0,4))return"";var t=function(e){var t="";return/[(,]format=mpd-/i.test(e)?t="mpd":/[(,]format=m3u8-/i.test(e)&&(t="m3u8"),t}(e);return t||((e=e.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase():"")};function A(e){var t=parseInt(e,10);if(!e)return"00:00";var n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),o=t-3600*n-60*r;return r<10&&(r="0"+r),o<10&&(o="0"+o),n>0?n+":"+r+":"+o:r+":"+o}function c(e,t){if(!e)return 0;if(i().isNumber(e)&&!i().isNaN(e))return e;var n=(e=e.replace(",",".")).split(":"),r=n.length,o=0;if("s"===e.slice(-1))o=parseFloat(e);else if("m"===e.slice(-1))o=60*parseFloat(e);else if("h"===e.slice(-1))o=3600*parseFloat(e);else if(r>1){var a=r-1;4===r&&(t&&(o=parseFloat(n[a])/t),a-=1),o+=parseFloat(n[a]),o+=60*parseFloat(n[a-1]),r>=3&&(o+=3600*parseFloat(n[a-2]))}else o=parseFloat(e);return i().isNaN(o)?0:o}function u(e){var t={},n=e.split("\r\n");1===n.length&&(n=e.split("\n"));var r=1;if(n[0].indexOf(" --\x3e ")>0&&(r=0),n.length>r+1&&n[r+1]){var o=n[r],i=o.indexOf(" --\x3e ");i>0&&(t.start=c(o.substr(0,i)),t.end=c(o.substr(i+5)),t.text=n.slice(r+1).join("\r\n"))}return t}var l=window.VTTCue,f={"":!0,lr:!0,rl:!0},p={start:!0,middle:!0,end:!0,left:!0,right:!0};function d(e){return"string"==typeof e&&!!p[e.toLowerCase()]&&e.toLowerCase()}function g(e){for(var t=1;t100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",g({},i,{get:function(){return C},set:function(e){var t=d(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");C=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",g({},i,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",g({},i,{get:function(){return w},set:function(e){var t=d(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),r.displayState=void 0,o)return r}).prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)});var h=l,v={"":!0,up:!0};function m(e){return"number"==typeof e&&e>=0&&e<=100}var y=function(){var e=100,t=3,n=0,r=100,o=0,i=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!m(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!m(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!m(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(e){if(!m(e))throw new Error("ViewportAnchorY must be between 0 and 100.");i=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!m(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return a},set:function(e){var t=function(e){return"string"==typeof e&&!!v[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");a=t}}})},C=function(){};function b(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}var w=1;function E(e,t,n){switch(n){case"webvtt.font.color":case"webvtt.font.opacity":var r=Services.prefs.getCharPref("webvtt.font.color"),o=Services.prefs.getIntPref("webvtt.font.opacity")/100;x.fontSet=b(r,o);break;case"webvtt.font.scale":w=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":var i=Services.prefs.getCharPref("webvtt.bg.color"),a=Services.prefs.getIntPref("webvtt.bg.opacity")/100;x.backgroundSet=b(i,a);break;case"webvtt.edge.color":case"webvtt.edge.type":var s=Services.prefs.getIntPref("webvtt.edge.type"),A=Services.prefs.getCharPref("webvtt.edge.color");x.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][s]+b(A)}}if("undefined"!=typeof Services){var x={};["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach((function(e){E(0,0,e),Services.prefs.addObserver(e,E,!1)}))}var B=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function k(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function I(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function S(){this.values=B(null)}function T(e,t,n,r){var o=r?e.split(r):[e];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);2===a.length&&t(a[0],a[1])}}function L(e,t,n){var r=e;function o(){var t=I(e);if(null===t)throw new k(k.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function i(){e=e.replace(/^\s+/,"")}if(i(),t.startTime=o(),i(),"--\x3e"!==e.substr(0,3))throw new k(k.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),i(),t.endTime=o(),i(),function(e){var t=new S;T(e,(function(e,r){switch(e){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===r){t.set(e,n[o].region);break}break;case"vertical":t.alt(e,r,["rl","lr"]);break;case"line":var i=r.split(","),a=i[0];t.integer(e,a),t.percent(e,a)&&t.set("snapToLines",!1),t.alt(e,a,["auto"]),2===i.length&&t.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=r.split(","),t.percent(e,i[0]),2===i.length&&t.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":t.percent(e,r);break;case"align":t.alt(e,r,["start","middle","end","left","right"])}}),/:/,/\s/)}(e)}k.prototype=B(Error.prototype),k.prototype.constructor=k,k.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},S.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r=0&&t<=100)&&(this.set(e,t),!0)}};var R={"&":"&","<":"<",">":">","‎":"โ€Ž","‏":"โ€"," ":"ย "},O={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},D={v:"title",lang:"lang"},M={rt:"ruby"};function Q(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]+>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e){return R[e]}function o(e){for(;p=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(p[0],r);return e}function i(e,t){return!M[t.localName]||M[t.localName]===e.localName}function a(t,n){var r=O[t];if(!r)return null;var o=e.document.createElement(r);o.localName=r;var i=D[t];return i&&n&&(o[i]=n.trim()),o}for(var s,A=e.document.createElement("div"),c=A,u=[];null!==(s=n());)if("<"!==s[0])c.appendChild(e.document.createTextNode(o(s)));else{if("/"===s[1]){u.length&&u[u.length-1]===s.substr(2).replace(">","")&&(u.pop(),c=c.parentNode);continue}var l,f=I(s.substr(1,s.length-2));if(f){l=e.document.createProcessingInstruction("timestamp",f),c.appendChild(l);continue}var p=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p)continue;if(!(l=a(p[1],p[3])))continue;if(!i(c,l))continue;p[2]&&(l.className=p[2].substr(1).replace("."," ")),u.push(p[1]),c.appendChild(l),c=l}return A}var P=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];function F(){}function U(e,t,n){var r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",i="rgba(0, 0, 0, 0.8)",a="";void 0!==x&&(o=x.fontSet,i=x.backgroundSet,a=x.edgeSet),r&&(o="rgb(255, 255, 255)",i="rgb(0, 0, 0)"),F.call(this),this.cue=t,this.cueDiv=Q(e,t.text);var s={color:o,backgroundColor:i,textShadow:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(s.direction=function(e){var t,n=[],r="";if(!e||!e.childNodes)return"ltr";function o(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?(e.length=0,r[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(o(e,t),i(e)):void 0}for(o(n,e);r=i(n);)for(var a=0;a=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,o=0;ol&&(u=u<0?-1:1,u*=Math.ceil(l/c)*c),a<0&&(u+=""===i.vertical?n.height:n.width,s=s.reverse()),o.move(f,u)}else{var p=o.lineHeight/n.height*100;switch(i.lineAlign){case"middle":a-=p/2;break;case"end":a-=p}switch(i.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],o=new N(t)}var d=function(e,t){for(var o,i=new N(e),a=1,s=0;sA&&(o=new N(e),a=A),e=new N(i)}return o||i}(o,s);t.move(d.toCSSCompatValues(n))}F.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},F.prototype.formatStyle=function(e,t){return 0===e?0:e+t},U.prototype=B(F.prototype),U.prototype.constructor=U,N.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},N.prototype.overlaps=function(e){return this.lefte.left&&this.tope.top},N.prototype.overlapsAny=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},N.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},N.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},N.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},N.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?Q(e,t):null},C.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t]*<[a-z]*/g,H=/]+?start[^=]*=[^0-9]*([0-9]*)["^0-9"]*/i,V=/]*>/gi,Z=function(e,t){return t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join(""),e.replace(/|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""}))},J=function(e){return e.sort((function(e,t){var n;return 0==(n=e.start-t.start)?e.end-t.end:n}))},K=function(){var e={},t=function(e){return e.map((function(e){return new h(e.start,e.end,e.text)}))};return e.load=function(e,n,r,o){fetch(e.file).then((function(e){e.ok?e.text().then((function(e){var o=[],i=[];if(e.indexOf("WEBVTT")>=0){OvenPlayerConsole.log("WEBVTT LOADED");var s=new j.Parser(window,j.StringDecoder());i=[],s.oncue=function(e){i.push(e)},s.onflush=function(){r(i)},s.parse(e),s.flush()}else if(e.indexOf("SAMI")>=0){OvenPlayerConsole.log("SAMI LOADED");var A=function(e,t){var n,r,o,i,a,s,A,c,u,l;if(A=function(){var t,n,r,a,A,c,u,f,p,d,g,h,v,m,y,C;for(n=function(e){var n;return(n=new Error(e)).line=u,n.context=t,o.push(n)},u=1,p=[],v={},h=e;d=h.search(),!(f<=0||d<0);)f=h.slice(d+1).search(G)+1,t=f>0?h.slice(d,d+f):h.slice(d),u+=(null!=(m=h.slice(0,d).match(z))?m.length:void 0)||0,_.test(t)&&n("ERROR_BROKEN_TAGS"),h=h.slice(d+f),(null===(g=+(null!=(y=t.match(H))?parseFloat(y[1]/1e3):void 0))||g<0)&&n("ERROR_INVALID_TIME"),(A=i(t))||n("ERROR_INVALID_LANGUAGE"),u+=(null!=(C=t.match(z))?C.length:void 0)||0,t=(t=t.replace(z,"")).replace(V,"\n"),a={start:g,text:"",contents:r=Z(t).trim()},A&&(a.text=r),v[A]||(v[A]=[]),a.start&&v[A].push(a);l=l||function(){var e,t,n=window.navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(n.languages))for(e=0;e0&&(c=b.indexOf(l)>-1?v[l]:v[b.filter((function(e){return"undefined"!==e}))[0]],c=J(c),c=s(c),p=p.concat(c)),J(p)},i=function(e){var t,r;if(e)for(t in n)if((r=n[t]).reClassName.test(e))return r.lang},s=function(e){var t,n,o;for(t=e.length;t--;)n=e[t],null!=(o=e[t-1])&&(o.end=n.start),n.contents&&" "!==n.contents?(delete e[t].contents,n.end||(n.end=n.start+r)):e.splice(t,1);return e},o=[],n={KRCC:{lang:"ko",reClassName:new RegExp("class[^=]*?=[\"'S]*(KRCC)['\"S]?","i")},KOCC:{lang:"ko",reClassName:new RegExp("class[^=]*?=[\"'S]*(KOCC)['\"S]?","i")},KR:{lang:"ko",reClassName:new RegExp("class[^=]*?=[\"'S]*(KR)['\"S]?","i")},ENCC:{lang:"en",reClassName:new RegExp("class[^=]*?=[\"'S]*(ENCC)['\"S]?","i")},EGCC:{lang:"en",reClassName:new RegExp("class[^=]*?=[\"'S]*(EGCC)['\"S]?","i")},EN:{lang:"en",reClassName:new RegExp("class[^=]*?=[\"'S]*(EN)['\"S]?","i")},JPCC:{lang:"ja",reClassName:new RegExp("class[^=]*?=[\"'S]*(JPCC)['\"S]?","i")}},null!=t?t.definedLangs:void 0)for(a in u=t.definedLangs)c=u[a],n[a]=c;return r=(null!=t?t.duration:void 0)||10,l=t.fixedLang,e=e.trim(),{result:A(),errors:o}}(e,{fixedLang:n});i=t(A.result),r(i)}else OvenPlayerConsole.log("SRT LOADED"),o=function(e){var t=[],n=(e=a(e)).split("\r\n\r\n");1===n.length&&(n=e.split("\n\n"));for(var r=0;rGet Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"Can not load due to dash.js. Please use the latest dash.js.",reason:"dash.js version is old."},104:{code:104,message:"Can not load due to google ima for Ads. ",reason:"Please check the google ima library."},105:{code:105,message:"Error initializing DASH.",reason:"Error initializing DASH."},106:{code:106,message:"Error initializing HLS.",reason:"Error initializing HLS."},107:{code:107,message:"Error initializing DRM.",reason:"Error initializing DRM."},300:{code:300,message:"Can not play due to unknown reasons.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"Fetching process aborted by user.",reason:"Fetching process aborted by user."},302:{code:302,message:"Some of the media could not be downloaded due to a network error.",reason:"Error occurred when downloading."},303:{code:303,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"Error occurred when decoding."},304:{code:304,message:"Media playback has been canceled. It looks like your media is corrupted or your browser does not support the features your media uses.",reason:"Media playback not supported."},305:{code:305,message:"Can not load captions due to unknown reasons.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server cannot or will not process the request."},307:{code:307,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server refused the request."},308:{code:308,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server do not accept the request."},501:{code:501,message:"Connection with low-latency(OME) server failed.",reason:"WebSocket connection failed."},502:{code:502,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setLocalDescription failed."},506:{code:506,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC internal error."},510:{code:510,message:"Network connection is unstable. Check the network connection.",reason:"Network is slow."},511:{code:511,message:"Connection with low-latency(OME) terminated unexpectedly.",reason:"Unexpected end of connection."},512:{code:512,message:"Connection with low-latency(OME) server failed.",reason:"Connection timeout."}}}},{lang:"ko",ui:{context:"์˜ค๋ธํ”Œ๋ ˆ์ด์–ด์— ๊ด€ํ•˜์—ฌ",controls:{live:"๋ผ์ด๋ธŒ",low_latency_live:"์ดˆ์ €์ง€์—ฐ ๋ผ์ด๋ธŒ",low_latency_p2p:"์ดˆ์ €์ง€์—ฐ P2P"},playlist:"ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ",quality:{auto:"์ž๋™"},setting:{title:"์„ค์ •",speed:"์žฌ์ƒ ์†๋„",speedUnit:"x",source:"์†Œ์Šค",quality:"ํ’ˆ์งˆ",audioTrack:"์˜ค๋””์˜ค",caption:"์ž๋ง‰",display:"ํ‘œ์‹œ",zoom:"์คŒ",subtitleTrack:"์ž๋ง‰"}},api:{message:{muted_play:"๋ˆŒ๋Ÿฌ์„œ ์†Œ๋ฆฌ ์ผœ๊ธฐ"},error:{100:{code:100,message:"์•Œ ์ˆ˜ ์—†๋Š” ์ด์œ ๋กœ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"์•Œ ์ˆ˜ ์—†๋Š” ์ด์œ ๋กœ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค."},101:{code:101,message:"์ง€์›๋˜๋Š” ๋ฏธ๋””์–ด๋ฅผ ์ฐพ์ง€ ๋ชปํ•ด ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"Can not load due to playable media not found."},102:{code:102,message:"ํ”Œ๋ ˆ์‹œ ๋กœ๋“œ๊ฐ€ ์ค‘๋‹จ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
Get Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"DashJS๋กœ ์ธํ•ด ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ตœ์‹  dash.js๋ฅผ ์‚ฌ์šฉํ•ด ์ฃผ์„ธ์š”.",reason:"dash.js version is old."},104:{code:104,message:"Google IMA ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์—†์–ด ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"Please check the google ima library."},105:{code:105,message:"DASH ์ดˆ๊ธฐํ™” ์ค‘ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"Error initializing DASH."},106:{code:106,message:"HLS ์ดˆ๊ธฐํ™” ์ค‘ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"Error initializing HLS."},107:{code:107,message:"DRM ์ดˆ๊ธฐํ™” ์ค‘ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"Error initializing DRM."},300:{code:300,message:"์•Œ ์ˆ˜ ์—†๋Š” ์ด์œ ๋กœ ์žฌ์ƒํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"์‚ฌ์šฉ์ž์— ์˜ํ•œ ํ”„๋กœ์„ธ์Šค ์ค‘๋‹จ.",reason:"Fetching process aborted by user."},302:{code:302,message:"๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜๋กœ ์ธํ•ด ์ผ๋ถ€ ๋ฏธ๋””์–ด๋ฅผ ๋‹ค์šด๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"Error occurred when downloading."},303:{code:303,message:"๋ฏธ๋””์–ด๋ฅผ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„ ๋˜๋Š” ๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜ ๋˜๋Š” ์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์‹์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",reason:"Error occurred when decoding."},304:{code:304,message:"๋ฏธ๋””์–ด ์žฌ์ƒ์ด ์ทจ์†Œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฏธ๋””์–ด๊ฐ€ ์†์ƒ๋˜์—ˆ๊ฑฐ๋‚˜ ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ๋ฏธ๋””์–ด์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ง€์›ํ•˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.",reason:"Media playback not supported."},305:{code:305,message:"์•Œ ์ˆ˜ ์—†๋Š” ์ด์œ ๋กœ ์ž๋ง‰์„ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"๋ฏธ๋””์–ด๋ฅผ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„ ๋˜๋Š” ๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜ ๋˜๋Š” ์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์‹์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",reason:"The server cannot or will not process the request."},307:{code:307,message:"๋ฏธ๋””์–ด๋ฅผ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„ ๋˜๋Š” ๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜ ๋˜๋Š” ์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์‹์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",reason:"The server refused the request."},308:{code:308,message:"๋ฏธ๋””์–ด๋ฅผ ๋กœ๋“œ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์„œ๋ฒ„ ๋˜๋Š” ๋„คํŠธ์›Œํฌ ์˜ค๋ฅ˜ ๋˜๋Š” ์ง€์›๋˜์ง€ ์•Š๋Š” ํ˜•์‹์œผ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.",reason:"The server do not accept the request."},501:{code:501,message:"์›น์†Œ์ผ“ ์—ฐ๊ฒฐ ์‹คํŒจ",reason:"WebSocket connection failed."},502:{code:502,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"WebRTC setLocalDescription failed."},506:{code:506,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"WebRTC internal error."},510:{code:510,message:"๋„คํŠธ์›Œํฌ ์—ฐ๊ฒฐ์ด ๋ถˆ์•ˆ์ •ํ•ฉ๋‹ˆ๋‹ค. ๋„คํŠธ์›Œํฌ ์—ฐ๊ฒฐ์„ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.",reason:"Network is slow."},511:{code:511,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"Unexpected end of connection."},512:{code:512,message:"์ €์ง€์—ฐ(OME) ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค.",reason:"Connection timeout."}}}},{lang:"pl",ui:{context:"O OvenPlayer",controls:{live:"Transmisja na ลผywo",low_latency_live:"Transmisja z niskim opรณลบnieniem",low_latency_p2p:"Transmisja z niskim opรณลบnieniem P2P"},playlist:"Playlista",quality:{auto:"Auto"},setting:{title:"Ustawienia",speed:"Prฤ™dkoล›ฤ‡",speedUnit:"x",source:"ลนrodล‚o",quality:"Jakoล›ฤ‡",audioTrack:"Audio",caption:"Podtytuล‚",display:"Wyล›wietlacz",zoom:"Zbliลผenie",subtitleTrack:"Napisy"}},api:{message:{muted_play:"Naciล›nij tutaj, aby aktywowaฤ‡ dลบwiฤ™k"},error:{100:{code:100,message:"Nie moลผna zaล‚adowaฤ‡ z nieznanego powodu.",reason:"Can not load due to unknown reasons."},101:{code:101,message:"Nie moลผna zaล‚adowaฤ‡, poniewaลผ nie znaleziono multimediรณw, ktรณry moลผna odtworzyฤ‡.",reason:"Can not load due to playable media not found."},102:{code:102,message:"Flash fetching process aborted.
Get Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"Nie moลผna zaล‚adowaฤ‡, poniewaลผ wersja dash.js jest za stara.",reason:"dash.js version is old."},104:{code:104,message:"Can not load due to google ima for Ads. ",reason:"Please check the google ima library."},105:{code:105,message:"Nie moลผna zaล‚adowaฤ‡, nie znaleziono DASH.",reason:"Error initializing DASH."},106:{code:106,message:"Nie moลผna zaล‚adowaฤ‡, nie znaleziono hlsjs.",reason:"Error initializing HLS"},107:{code:107,message:"Nie moลผna zaล‚adowaฤ‡, nie znaleziono DRM.",reason:"Error initializing DRM"},300:{code:300,message:"Nie moลผna odtworzyฤ‡ z nieznanego powodu.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"Proces pobierania przerwany przez uลผytkownika.",reason:"Fetching process aborted by user."},302:{code:302,message:"Nie udaล‚o siฤ™ pobraฤ‡ niektรณrych multimediรณw z powodu bล‚ฤ™du sieci.",reason:"Error occurred when downloading."},303:{code:303,message:"Nie udaล‚o siฤ™ zaล‚adowaฤ‡ niektรณrych multimediรณw. Moลผe byฤ‡ to spowodowane problemem z serwerem, sieciฤ… lub niewspieranym formatem.",reason:"Error occurred when decoding."},304:{code:304,message:"Odtwarzanie zostaล‚o anulowane. Wyglฤ…da na to, ลผe plik jest uszkodzony lub Twoja przeglฤ…darka nie obsล‚uguje tego pliku.",reason:"Media playback not supported."},305:{code:305,message:"Nie moลผna wczytaฤ‡ napisรณw z nieznanego powodu.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"Nie udaล‚o siฤ™ zaล‚adowaฤ‡ niektรณrych multimediรณw. Moลผe byฤ‡ to spowodowane problemem z serwerem, sieciฤ… lub niewspieranym formatem.",reason:"The server cannot or will not process the request."},307:{code:307,message:"Nie udaล‚o siฤ™ zaล‚adowaฤ‡ niektรณrych multimediรณw. Moลผe byฤ‡ to spowodowane problemem z serwerem, sieciฤ… lub niewspieranym formatem.",reason:"The server refused the request."},308:{code:308,message:"Nie udaล‚o siฤ™ zaล‚adowaฤ‡ niektรณrych multimediรณw. Moลผe byฤ‡ to spowodowane problemem z serwerem, sieciฤ… lub niewspieranym formatem.",reason:"The server do not accept the request."},501:{code:501,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebSocket connection failed."},502:{code:502,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebRTC setLocalDescription failed."},506:{code:506,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"WebRTC internal error."},510:{code:510,message:"Poล‚ฤ…czenie sieciowe jest niestabilne. Sprawdลบ swojฤ… sieฤ‡.",reason:"Network is slow."},511:{code:511,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nieoczekiwanie zakoล„czone.",reason:"Unexpected end of connection."},512:{code:512,message:"Poล‚ฤ…czenie z serwerem niskiego opรณลบnienia (OME) nie powiodล‚o siฤ™.",reason:"Connection timeout."}}}}],He=function(e){return"subtitles"===e||"captions"===e};function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function Ze(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&("object"===Ve(t[n])&&null!==t[n]&&"object"===Ve(e[n])&&null!==e[n]?Ze(e[n],t[n]):e[n]=t[n]);return e}var Je=function(e){var t=e,n=[],r=function(e,t,n){var r=0,o=e.length;for(r=0;r1?n:n[0]};return(n=i().isElement(e)||i().every(e,(function(e){return i().isElement(e)}))?e:"document"===e?document:"window"===e?window:r(document,e))?(t.show=function(){n.style.display="block"},t.hide=function(){n.style.display="none"},t.addClass=function(e){n.classList?n.classList.add(e):-1===n.className.split(" ").indexOf(e)&&(n.className+=" "+e)},t.after=function(e){n.insertAdjacentHTML("afterend",e)},t.append=function(e){n.appendChild(e)},t.before=function(e){n.insertAdjacentHTML("beforebegin",e)},t.children=function(){return n.children||[]},t.contains=function(e){return n!==e&&n.contains(e)},t.empty=function(){n.innerHTML=""},t.find=function(e){return Ke(r(n,e))},t.css=function(e,t){if(!t)return n.style[e];n.length>0?n.forEach((function(n){n.style[e]=t})):n.style[e]=t},t.removeClass=function(e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},t.removeAttribute=function(e){n.removeAttribute(e)},t.text=function(e){if(void 0===e)return n.textContent;n.textContent=e},t.html=function(e){n.innerHTML=e},t.hasClass=function(e){return n.classList?n.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(n.name)},t.is=function(e){return n===e},t.offset=function(){var e=n.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},t.width=function(){return n.clientWidth},t.height=function(){return n.clientHeight},t.attr=function(e){return n.getAttribute(e)},t.replace=function(e){n.replaceWith(e)},t.remove=function(){n.length>1?n.parentElement.removeChild(n):n.remove()},t.removeChild=function(e){if(e)n.removeChild(e);else for(;n.hasChildNodes();)n.removeChild(n.firstChild)},t.get=function(){return n},t.closest=function(e){n.closest=function(e){var t=n;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};var t=n.closest(e);return t?Ke(t):null},t):null}),Xe=Ke,qe=function(e,t){if(e)return 0==e.indexOf("rtmp:")||"rtmp"==t},$e=function(e,t){return!!e&&(0===e.indexOf("ws:")||0===e.indexOf("wss:")||"webrtc"===t)},et=function(e,t){if(e)return"hls"===t||"m3u8"===t||"application/vnd.apple.mpegurl"===t||"m3u8"==s(e)},tt=function(e,t){if(e)return"mpd"===t||"dash"===t||"application/dash+xml"===t||"mpd"==s(e)},nt=function(e){if(!e)return null;var t=null;if("string"==typeof e)t=document.getElementById(e);else{if(!e.nodeType)return null;t=e}return t},rt=function(){var e={};OvenPlayerConsole.log("SupportChecker loaded.");var t=Y(),n=[{name:"html5",checkSupport:function(e){var n=document.createElement("video");if(!n.canPlayType)return!1;var r=e.file,o=e.type,i=e.overrideNative;if(!o)return!1;var a=e.mimeType||{aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"}[o];return!(et(r,o)&&"iOS"!==t.os||et(r,o)&&("Microsoft Edge"===t.browser||"Android"===t.os)||et(r,o)&&i||qe(r,o)||$e(r,o)||!a||!n.canPlayType(a))}},{name:"webrtc",checkSupport:function(e){if(!document.createElement("video").canPlayType)return!1;if(qe(t,n))return!1;var t=e.file,n=e.type;return!!$e(t,n)}},{name:"dash",checkSupport:function(e){var t=e.file,n=e.type;return!qe(t,n)&&!("function"!=typeof(window.MediaSource||window.WebKitMediaSource)||!tt(t,n))}},{name:"hls",checkSupport:function(e){document.createElement("video");var t,n,r,o,i=e.file,a=e.type;return!qe(i,a)&&(t=function(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}(),n=window.SourceBuffer||window.WebKitSourceBuffer,r=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),o=!n||n.prototype&&"function"==typeof n.prototype.appendBuffer&&"function"==typeof n.prototype.remove,!!r&&!!o)}},{name:"rtmp",checkSupport:function(e){var n=e.file,r=e.type;return!(!qe(n,r)||!function(){var e=!1;if("ActiveXObject"in window)try{e=!!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){e=!1}else e=!!navigator.mimeTypes["application/x-shockwave-flash"];return e}()||"Microsoft Edge"===t.browser||"Android"===t.os||"iOS"===t.os||"Safari"===t.browser)}}];return e.findProviderNameBySource=function(e){OvenPlayerConsole.log("SupportChecker : findProviderNameBySource()",e);for(var t=e===Object(e)?e:{},r=0;r0&&void 0!==arguments[0]?arguments[0]:{};mt(this,e),this.id=t.id||null,this.adId=t.adId||null,this.sequence=t.sequence||null,this.apiFramework=t.apiFramework||null,this.trackingEvents={}})),xt=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return mt(this,t),(e=ut(this,t,[n])).type="companion",e.variations=[],e}return pt(t,e),ht(t)}(Et);function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var r in t.ASSETURI&&(t.ASSETURI=kt(t.ASSETURI)),t.CONTENTPLAYHEAD&&(t.CONTENTPLAYHEAD=kt(t.CONTENTPLAYHEAD)),t.ERRORCODE&&!/^[0-9]{3}$/.test(t.ERRORCODE)&&(t.ERRORCODE=900),t.CACHEBUSTING=It(Math.round(1e8*Math.random()).toString()),t.TIMESTAMP=kt((new Date).toISOString()),t.RANDOM=t.random=t.CACHEBUSTING,e){var o=e[r];if("string"==typeof o){for(var i in t){var a=t[i],s="[".concat(i,"]"),A="%%".concat(i,"%%");o=(o=o.replace(s,a)).replace(A,a)}n.push(o)}}return n}function kt(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16))}))}function It(e){return e.length<8?St(0,8-e.length,!1).map((function(e){return"0"})).join("")+e:e}function St(e,t,n){for(var r=[],o=ei;o?a++:a--)r.push(a);return r}var Tt={track:function(e,t){Bt(e,t).forEach((function(e){"undefined"!=typeof window&&null!==window&&((new Image).src=e)}))},resolveURLTemplates:Bt,encodeURIComponentRFC3986:kt,leftpad:It,range:St,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},flatten:function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}},Lt=function(e,t){var n=e.childNodes;for(var r in n){var o=n[r];if(o.nodeName===t)return o}},Rt=function(e,t){var n=[],r=e.childNodes;for(var o in r){var i=r[o];i.nodeName===t&&n.push(i)}return n},Ot=function(e,t){if(!t)return e;if(0===e.indexOf("//")){var n=location.protocol;return"".concat(n).concat(e)}return-1===e.indexOf("://")?"".concat(t.slice(0,t.lastIndexOf("/")),"/").concat(e):e},Dt=function(e){return-1!==["true","TRUE","1"].indexOf(e)},Mt=function(e){return e&&(e.textContent||e.text||"").trim()},Qt=function(e,t,n){var r=t.getAttribute(e);r&&n.setAttribute(e,r)},Pt=function(e){if(null==e)return-1;if(Tt.isNumeric(e))return parseInt(e);var t=e.split(":");if(3!==t.length)return-1;var n=t[2].split("."),r=parseInt(n[0]);2===n.length&&(r+=parseFloat("0.".concat(n[1])));var o=parseInt(60*t[1]),i=parseInt(60*t[0]*60);return isNaN(i)||isNaN(o)||isNaN(r)||o>3600||r>60?-1:i+o+r},Ft=function(e){var t=[],n=null;return e.forEach((function(r,o){if(r.sequence&&(r.sequence=parseInt(r.sequence,10)),r.sequence>1){var i=e[o-1];if(i&&i.sequence===r.sequence-1)return void(n&&n.push(r));delete r.sequence}n=[r],t.push(n)})),t},Ut=function(e,t){e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),e.creatives.forEach((function(e){if(t.trackingEvents&&t.trackingEvents[e.type])for(var n in t.trackingEvents[e.type]){var r=t.trackingEvents[e.type][n];e.trackingEvents[n]||(e.trackingEvents[n]=[]),e.trackingEvents[n]=e.trackingEvents[n].concat(r)}})),t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length&&e.creatives.forEach((function(e){"linear"===e.type&&(e.videoClickTrackingURLTemplates=e.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates))})),t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length&&e.creatives.forEach((function(e){"linear"===e.type&&(e.videoCustomClickURLTemplates=e.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates))})),t.videoClickThroughURLTemplate&&e.creatives.forEach((function(e){"linear"===e.type&&null==e.videoClickThroughURLTemplate&&(e.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)}))};function Nt(e,t){var n=new xt(t);return Rt(e,"Companion").forEach((function(e){var t=new wt;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.companionClickTrackingURLTemplates=[],Rt(e,"HTMLResource").forEach((function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=Mt(e)})),Rt(e,"IFrameResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=Mt(e)})),Rt(e,"StaticResource").forEach((function(n){t.type=n.getAttribute("creativeType")||0,Rt(e,"AltText").forEach((function(e){t.altText=Mt(e)})),t.staticResource=Mt(n)})),Rt(e,"TrackingEvents").forEach((function(e){Rt(e,"Tracking").forEach((function(e){var n=e.getAttribute("event"),r=Mt(e);n&&r&&(null==t.trackingEvents[n]&&(t.trackingEvents[n]=[]),t.trackingEvents[n].push(r))}))})),Rt(e,"CompanionClickTracking").forEach((function(e){t.companionClickTrackingURLTemplates.push(Mt(e))})),t.companionClickThroughURLTemplate=Mt(Lt(e,"CompanionClickThrough")),t.companionClickTrackingURLTemplate=Mt(Lt(e,"CompanionClickTracking")),n.variations.push(t)})),n}var Wt=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return mt(this,t),(e=ut(this,t,[n])).type="linear",e.duration=0,e.skipDelay=null,e.mediaFiles=[],e.videoClickThroughURLTemplate=null,e.videoClickTrackingURLTemplates=[],e.videoCustomClickURLTemplates=[],e.adParameters=null,e.icons=[],e}return pt(t,e),ht(t)}(Et),jt=ht((function e(){mt(this,e),this.program=null,this.height=0,this.width=0,this.xPosition=0,this.yPosition=0,this.apiFramework=null,this.offset=null,this.duration=0,this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.iconClickThroughURLTemplate=null,this.iconClickTrackingURLTemplates=[],this.iconViewTrackingURLTemplate=null})),Yt=ht((function e(){mt(this,e),this.id=null,this.fileURL=null,this.deliveryType="progressive",this.mimeType=null,this.codec=null,this.bitrate=0,this.minBitrate=0,this.maxBitrate=0,this.width=0,this.height=0,this.apiFramework=null,this.scalable=null,this.maintainAspectRatio=null}));function Gt(e,t){var n,r=new Wt(t);r.duration=Pt(Mt(Lt(e,"Duration")));var o=e.getAttribute("skipoffset");if(null==o)r.skipDelay=null;else if("%"===o.charAt(o.length-1)&&-1!==r.duration){var i=parseInt(o,10);r.skipDelay=r.duration*(i/100)}else r.skipDelay=Pt(o);var a=Lt(e,"VideoClicks");a&&(r.videoClickThroughURLTemplate=Mt(Lt(a,"ClickThrough")),Rt(a,"ClickTracking").forEach((function(e){r.videoClickTrackingURLTemplates.push(Mt(e))})),Rt(a,"CustomClick").forEach((function(e){r.videoCustomClickURLTemplates.push(Mt(e))})));var s=Lt(e,"AdParameters");s&&(r.adParameters=Mt(s)),Rt(e,"TrackingEvents").forEach((function(e){Rt(e,"Tracking").forEach((function(e){var t=e.getAttribute("event"),o=Mt(e);if(t&&o){if("progress"===t){if(!(n=e.getAttribute("offset")))return;t="%"===n.charAt(n.length-1)?"progress-".concat(n):"progress-".concat(Math.round(Pt(n)))}null==r.trackingEvents[t]&&(r.trackingEvents[t]=[]),r.trackingEvents[t].push(o)}}))})),Rt(e,"MediaFiles").forEach((function(e){Rt(e,"MediaFile").forEach((function(e){var t=new Yt;t.id=e.getAttribute("id"),t.fileURL=Mt(e),t.deliveryType=e.getAttribute("delivery"),t.codec=e.getAttribute("codec"),t.mimeType=e.getAttribute("type"),t.apiFramework=e.getAttribute("apiFramework"),t.bitrate=parseInt(e.getAttribute("bitrate")||0),t.minBitrate=parseInt(e.getAttribute("minBitrate")||0),t.maxBitrate=parseInt(e.getAttribute("maxBitrate")||0),t.width=parseInt(e.getAttribute("width")||0),t.height=parseInt(e.getAttribute("height")||0);var n=e.getAttribute("scalable");n&&"string"==typeof n&&("true"===(n=n.toLowerCase())?t.scalable=!0:"false"===n&&(t.scalable=!1));var o=e.getAttribute("maintainAspectRatio");o&&"string"==typeof o&&("true"===(o=o.toLowerCase())?t.maintainAspectRatio=!0:"false"===o&&(t.maintainAspectRatio=!1)),r.mediaFiles.push(t)}))}));var A=Lt(e,"Icons");return A&&Rt(A,"Icon").forEach((function(e){var t=new jt;t.program=e.getAttribute("program"),t.height=parseInt(e.getAttribute("height")||0),t.width=parseInt(e.getAttribute("width")||0),t.xPosition=function(e){return-1!==["left","right"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("xPosition")),t.yPosition=function(e){return-1!==["top","bottom"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("yPosition")),t.apiFramework=e.getAttribute("apiFramework"),t.offset=Pt(e.getAttribute("offset")),t.duration=Pt(e.getAttribute("duration")),Rt(e,"HTMLResource").forEach((function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=Mt(e)})),Rt(e,"IFrameResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=Mt(e)})),Rt(e,"StaticResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=Mt(e)}));var n=Lt(e,"IconClicks");n&&(t.iconClickThroughURLTemplate=Mt(Lt(n,"IconClickThrough")),Rt(n,"IconClickTracking").forEach((function(e){t.iconClickTrackingURLTemplates.push(Mt(e))}))),t.iconViewTrackingURLTemplate=Mt(Lt(e,"IconViewTracking")),r.icons.push(t)})),r}var zt,_t=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return mt(this,t),(e=ut(this,t,[n])).type="nonlinear",e.variations=[],e}return pt(t,e),ht(t)}(Et),Ht=ht((function e(){mt(this,e),this.id=null,this.width=0,this.height=0,this.expandedWidth=0,this.expandedHeight=0,this.scalable=!0,this.maintainAspectRatio=!0,this.minSuggestedDuration=0,this.apiFramework="static",this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.nonlinearClickThroughURLTemplate=null,this.nonlinearClickTrackingURLTemplates=[],this.adParameters=null}));function Vt(e,t){var n=new _t(t);return Rt(e,"TrackingEvents").forEach((function(e){var t,r;Rt(e,"Tracking").forEach((function(e){t=e.getAttribute("event"),r=Mt(e),t&&r&&(null==n.trackingEvents[t]&&(n.trackingEvents[t]=[]),n.trackingEvents[t].push(r))}))})),Rt(e,"NonLinear").forEach((function(e){var t=new Ht;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.expandedWidth=e.getAttribute("expandedWidth"),t.expandedHeight=e.getAttribute("expandedHeight"),t.scalable=Dt(e.getAttribute("scalable")),t.maintainAspectRatio=Dt(e.getAttribute("maintainAspectRatio")),t.minSuggestedDuration=Pt(e.getAttribute("minSuggestedDuration")),t.apiFramework=e.getAttribute("apiFramework"),Rt(e,"HTMLResource").forEach((function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=Mt(e)})),Rt(e,"IFrameResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=Mt(e)})),Rt(e,"StaticResource").forEach((function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=Mt(e)}));var r=Lt(e,"AdParameters");r&&(t.adParameters=Mt(r)),t.nonlinearClickThroughURLTemplate=Mt(Lt(e,"NonLinearClickThrough")),Rt(e,"NonLinearClickTracking").forEach((function(e){t.nonlinearClickTrackingURLTemplates.push(Mt(e))})),n.variations.push(t)})),n}function Zt(e){var t=e.childNodes;for(var n in t){var r=t[n];if(-1!==["Wrapper","InLine"].indexOf(r.nodeName)){if(Qt("id",e,r),Qt("sequence",e,r),"Wrapper"===r.nodeName)return Kt(r);if("InLine"===r.nodeName)return Jt(r)}}}function Jt(e){var t=e.childNodes,n=new yt;for(var r in n.id=e.getAttribute("id")||null,n.sequence=e.getAttribute("sequence")||null,t){var o=t[r];switch(o.nodeName){case"Error":n.errorURLTemplates.push(Mt(o));break;case"Impression":n.impressionURLTemplates.push(Mt(o));break;case"Creatives":Rt(o,"Creative").forEach((function(e){var t={id:e.getAttribute("id")||null,adId:qt(e),sequence:e.getAttribute("sequence")||null,apiFramework:e.getAttribute("apiFramework")||null};for(var r in e.childNodes){var o=e.childNodes[r];switch(o.nodeName){case"Linear":var i=Gt(o,t);i&&n.creatives.push(i);break;case"NonLinearAds":var a=Vt(o,t);a&&n.creatives.push(a);break;case"CompanionAds":var s=Nt(o,t);s&&n.creatives.push(s)}}}));break;case"Extensions":Xt(n.extensions,Rt(o,"Extension"));break;case"AdSystem":n.system={value:Mt(o),version:o.getAttribute("version")||null};break;case"AdTitle":n.title=Mt(o);break;case"Description":n.description=Mt(o);break;case"Advertiser":n.advertiser=Mt(o);break;case"Pricing":n.pricing={value:Mt(o),model:o.getAttribute("model")||null,currency:o.getAttribute("currency")||null};break;case"Survey":n.survey=Mt(o)}}return n}function Kt(e){var t=Jt(e),n=Lt(e,"VASTAdTagURI");if(n?t.nextWrapperURL=Mt(n):(n=Lt(e,"VASTAdTagURL"))&&(t.nextWrapperURL=Mt(Lt(n,"URL"))),t.creatives.forEach((function(e){if(-1!==["linear","nonlinear"].indexOf(e.type)){if(e.trackingEvents){t.trackingEvents||(t.trackingEvents={}),t.trackingEvents[e.type]||(t.trackingEvents[e.type]={});var n=function(n){var r=e.trackingEvents[n];t.trackingEvents[e.type][n]||(t.trackingEvents[e.type][n]=[]),r.forEach((function(r){t.trackingEvents[e.type][n].push(r)}))};for(var r in e.trackingEvents)n(r)}e.videoClickTrackingURLTemplates&&(t.videoClickTrackingURLTemplates||(t.videoClickTrackingURLTemplates=[]),e.videoClickTrackingURLTemplates.forEach((function(e){t.videoClickTrackingURLTemplates.push(e)}))),e.videoClickThroughURLTemplate&&(t.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate),e.videoCustomClickURLTemplates&&(t.videoCustomClickURLTemplates||(t.videoCustomClickURLTemplates=[]),e.videoCustomClickURLTemplates.forEach((function(e){t.videoCustomClickURLTemplates.push(e)})))}})),t.nextWrapperURL)return t}function Xt(e,t){t.forEach((function(t){var n=new Ct,r=t.attributes,o=t.childNodes;if(t.attributes)for(var i in r){var a=r[i];a.nodeName&&a.nodeValue&&(n.attributes[a.nodeName]=a.nodeValue)}for(var s in o){var A=o[s],c=Mt(A);if("#comment"!==A.nodeName&&""!==c){var u=new bt;if(u.name=A.nodeName,u.value=c,A.attributes){var l=A.attributes;for(var f in l){var p=l[f];u.attributes[p.nodeName]=p.nodeValue}}n.children.push(u)}}e.push(n)}))}function qt(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null}function $t(){}function en(){en.init.call(this)}function tn(e){return void 0===e._maxListeners?en.defaultMaxListeners:e._maxListeners}function nn(e,t,n,r){var o,i,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new $t,e._eventsCount=0),a){if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=tn(e))&&o>0&&a.length>o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(s)}}else a=i[t]=n,++e._eventsCount;return e}function rn(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function on(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function an(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}$t.prototype=Object.create(null),en.EventEmitter=en,en.usingDomains=!1,en.prototype.domain=void 0,en.prototype._events=void 0,en.prototype._maxListeners=void 0,en.defaultMaxListeners=10,en.init=function(){this.domain=null,en.usingDomains&&(!zt.active||this instanceof zt.Domain||(this.domain=zt.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new $t,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},en.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},en.prototype.getMaxListeners=function(){return tn(this)},en.prototype.emit=function(e){var t,n,r,o,i,a,s,A="error"===e;if(a=this._events)A=A&&null==a.error;else if(!A)return!1;if(s=this.domain,A){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,o=an(e,r),i=0;i0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new $t,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r0?Reflect.ownKeys(this._events):[]};var sn=function(e,t,n){var r="function"==typeof window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLDOM"):void 0;if(!r)return n(new Error("FlashURLHandler: Microsoft.XMLDOM format not supported"));r.async=!1,request.open("GET",e),request.timeout=t.timeout||0,request.withCredentials=t.withCredentials||!1,request.send(),request.onprogress=function(){},request.onload=function(){r.loadXML(request.responseText),n(null,r)}},An=function(){return window.XDomainRequest&&(e=new XDomainRequest),!!e;var e},cn=function(e,t,n){n(new Error("Please bundle the library for node to use the node urlHandler"))};function un(){try{var e=new window.XMLHttpRequest;return"withCredentials"in e?e:null}catch(e){return console.log("Error in XHRURLHandler support check:",e),null}}var ln=function(e,t,n){if("https:"===window.location.protocol&&0===e.indexOf("http://"))return n(new Error("XHRURLHandler: Cannot go from HTTPS to HTTP."));try{var r=un();r.open("GET",e),r.timeout=t.timeout||0,r.withCredentials=t.withCredentials||!1,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.onreadystatechange=function(){4===r.readyState&&(200===r.status?n(null,r.responseXML):n(new Error("XHRURLHandler: ".concat(r.statusText))))},r.send()}catch(e){n(new Error("XHRURLHandler: Unexpected error"))}},fn=function(){return!!un()},pn={get:function(e,t,n){return n||("function"==typeof t&&(n=t),t={}),"undefined"==typeof window||null===window?cn(e,t,n):fn()?ln(e,t,n):An()?sn(e,t,n):n(new Error("Current context is not supported by any of the default URLHandlers. Please provide a custom URLHandler"))}},dn=ht((function e(){mt(this,e),this.ads=[],this.errorURLTemplates=[]})),gn={ERRORCODE:900,extensions:[]},hn=function(e){function t(){var e;return mt(this,t),(e=ut(this,t)).remainingAds=[],e.parentURLs=[],e.errorURLTemplates=[],e.rootErrorURLTemplates=[],e.maxWrapperDepth=null,e.URLTemplateFilters=[],e.fetchingOptions={},e}return pt(t,e),ht(t,[{key:"addURLTemplateFilter",value:function(e){"function"==typeof e&&this.URLTemplateFilters.push(e)}},{key:"removeURLTemplateFilter",value:function(){this.URLTemplateFilters.pop()}},{key:"countURLTemplateFilters",value:function(){return this.URLTemplateFilters.length}},{key:"clearURLTemplateFilters",value:function(){this.URLTemplateFilters=[]}},{key:"trackVastError",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{};this.rootURL="",this.remainingAds=[],this.parentURLs=[],this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.maxWrapperDepth=e.wrapperLimit||10,this.fetchingOptions={timeout:e.timeout,withCredentials:e.withCredentials},this.urlHandler=e.urlhandler||pn}},{key:"getRemainingAds",value:function(e){var t=this;if(0===this.remainingAds.length)return Promise.reject(new Error("No more ads are available for the given VAST"));var n=e?Tt.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(n,{wrapperDepth:0,originalUrl:this.rootURL}).then((function(e){return t.buildVASTResponse(e)}))}},{key:"getAndParseVAST",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(n),this.rootURL=e,this.fetchVAST(e).then((function(r){return n.originalUrl=e,n.isRootVAST=!0,t.parse(r,n).then((function(e){return t.buildVASTResponse(e)}))}))}},{key:"parseVAST",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(n),n.isRootVAST=!0,this.parse(e,n).then((function(e){return t.buildVASTResponse(e)}))}},{key:"buildVASTResponse",value:function(e){var t=new dn;return t.ads=e,t.errorURLTemplates=this.getErrorURLTemplates(),this.completeWrapperResolving(t),t}},{key:"parse",value:function(e,t){var n=t.resolveAll,r=void 0===n||n,o=t.wrapperSequence,i=void 0===o?null:o,a=t.originalUrl,s=void 0===a?null:a,A=t.wrapperDepth,c=void 0===A?0:A,u=t.isRootVAST,l=void 0!==u&&u;if(!e||!e.documentElement||"VAST"!==e.documentElement.nodeName)return Promise.reject(new Error("Invalid VAST XMLDocument"));var f=[],p=e.documentElement.childNodes;for(var d in p){var g=p[d];if("Error"===g.nodeName){var h=Mt(g);l?this.rootErrorURLTemplates.push(h):this.errorURLTemplates.push(h)}if("Ad"===g.nodeName){var v=Zt(g);v?f.push(v):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}var m=f.length,y=f[m-1];return 1===m&&null!=i&&y&&!y.sequence&&(y.sequence=i),!1===r&&(this.remainingAds=Ft(f),f=this.remainingAds.shift()),this.resolveAds(f,{wrapperDepth:c,originalUrl:s})}},{key:"resolveAds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=n.wrapperDepth,o=n.originalUrl,i=[];return t.forEach((function(t){var n=e.resolveWrappers(t,r,o);i.push(n)})),Promise.all(i).then((function(t){var n=Tt.flatten(t);if(!n&&e.remainingAds.length>0){var i=e.remainingAds.shift();return e.resolveAds(i,{wrapperDepth:r,originalUrl:o})}return n}))}},{key:"resolveWrappers",value:function(e,t,n){var r=this;return new Promise((function(o,i){if(t++,!e.nextWrapperURL)return delete e.nextWrapperURL,o(e);if(t>=r.maxWrapperDepth||-1!==r.parentURLs.indexOf(e.nextWrapperURL))return e.errorCode=302,delete e.nextWrapperURL,o(e);e.nextWrapperURL=Ot(e.nextWrapperURL,n);var a=e.sequence;n=e.nextWrapperURL,r.fetchVAST(e.nextWrapperURL,t,n).then((function(i){return r.parse(i,{originalUrl:n,wrapperSequence:a,wrapperDepth:t}).then((function(t){if(delete e.nextWrapperURL,0===t.length)return e.creatives=[],o(e);t.forEach((function(t){t&&Ut(t,e)})),o(t)}))})).catch((function(t){e.errorCode=301,e.errorMessage=t.message,o(e)}))}))}},{key:"completeWrapperResolving",value:function(e){if(0===e.ads.length)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(var t=e.ads.length-1;t>=0;t--){var n=e.ads[t];(n.errorCode||0===n.creatives.length)&&(this.trackVastError(n.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:n.errorCode||303},{ERRORMESSAGE:n.errorMessage||""},{extensions:n.extensions},{system:n.system}),e.ads.splice(t,1))}}}])}(en),vn=null,mn={data:{},length:0,getItem:function(e){return this.data[e]},setItem:function(e,t){this.data[e]=t,this.length=Object.keys(this.data).length},removeItem:function(e){delete data[e],this.length=Object.keys(this.data).length},clear:function(){this.data={},this.length=0}},yn=function(){return ht((function e(){mt(this,e),this.storage=this.initStorage()}),[{key:"initStorage",value:function(){if(vn)return vn;try{vn="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){vn=null}return vn&&!this.isStorageDisabled(vn)||(vn=mn).clear(),vn}},{key:"isStorageDisabled",value:function(e){var t="__VASTStorage__";try{if(e.setItem(t,t),e.getItem(t)!==t)return e.removeItem(t),!0}catch(e){return!0}return e.removeItem(t),!1}},{key:"getItem",value:function(e){return this.storage.getItem(e)}},{key:"setItem",value:function(e,t){return this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){return this.storage.removeItem(e)}},{key:"clear",value:function(){return this.storage.clear()}}])}(),Cn=function(){return ht((function e(t,n,r){mt(this,e),this.cappingFreeLunch=t||0,this.cappingMinimumTimeInterval=n||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new hn,this.storage=r||new yn,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}),[{key:"getParser",value:function(){return this.vastParser}},{key:"lastSuccessfulAd",get:function(){return this.storage.getItem("vast-client-last-successful-ad")},set:function(e){this.storage.setItem("vast-client-last-successful-ad",e)}},{key:"totalCalls",get:function(){return this.storage.getItem("vast-client-total-calls")},set:function(e){this.storage.setItem("vast-client-total-calls",e)}},{key:"totalCallsTimeout",get:function(){return this.storage.getItem("vast-client-total-calls-timeout")},set:function(e){this.storage.setItem("vast-client-total-calls-timeout",e)}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(e){return this.vastParser.getRemainingAds(e)}},{key:"get",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Date.now();return(n=Object.assign(this.defaultOptions,n)).hasOwnProperty("resolveAll")||(n.resolveAll=!1),this.totalCallsTimeout=t.totalCalls)return i(new Error("VAST call canceled โ€“ FreeLunch capping not reached yet ".concat(t.totalCalls,"/").concat(t.cappingFreeLunch)));var a=r-t.lastSuccessfulAd;if(a<0)t.lastSuccessfulAd=0;else if(a3&&void 0!==arguments[3]?arguments[3]:null;for(var a in mt(this,t),(o=ut(this,t)).ad=n,o.creative=r,o.variation=i,o.muted=!1,o.impressed=!1,o.skippable=!1,o.trackingEvents={},o._alreadyTriggeredQuartiles={},o.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],o.creative.trackingEvents){var s=o.creative.trackingEvents[a];o.trackingEvents[a]=s.slice(0)}return o.creative instanceof Wt?o._initLinearTracking():o._initVariationTracking(),e&&o.on("start",(function(){e.lastSuccessfulAd=Date.now()})),o}return pt(t,e),ht(t,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var e in this.variation.trackingEvents){var t=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(t.slice(0)):this.trackingEvents[e]=t.slice(0)}this.variation instanceof Ht?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):this.variation instanceof wt&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(e){this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100}}},{key:"setProgress",value:function(e){var t=this,n=this.skipDelay||-1;if(-1===n||this.skippable||(n>e?this.emit("skip-countdown",n-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var r=[];if(e>0){var o=Math.round(e/this.assetDuration*100);for(var i in r.push("start"),r.push("progress-".concat(o,"%")),r.push("progress-".concat(Math.round(e))),this.quartiles)this.isQuartileReached(i,this.quartiles[i],e)&&(r.push(i),this._alreadyTriggeredQuartiles[i]=!0)}r.forEach((function(e){t.track(e,!0)})),e0&&void 0!==arguments[0]?arguments[0]:null;this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates);var t=this.clickThroughURLTemplate||e;if(t){var n=this.linear?{CONTENTPLAYHEAD:this.progressFormatted()}:{},r=Tt.resolveURLTemplates([t],n)[0];this.emit("clickthrough",r)}}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"closeLinear"===e&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close");var n=this.trackingEvents[e],r=this.emitAlwaysEvents.indexOf(e)>-1;n?(this.emit(e,""),this.trackURLs(n)):r&&this.emit(e,""),t&&(delete this.trackingEvents[e],r&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}},{key:"trackURLs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(t.ASSETURI=this.creative.mediaFiles[0].fileURL),t.CONTENTPLAYHEAD=this.progressFormatted()),Tt.track(e,t)}},{key:"progressFormatted",value:function(){var e=parseInt(this.progress),t=e/3600;t.length<2&&(t="0".concat(t));var n=e/60%60;n.length<2&&(n="0".concat(n));var r=e%60;return r.length<2&&(r="0".concat(n)),"".concat(t,":").concat(n,":").concat(r,".").concat(parseInt(100*(this.progress-e)))}}])}(en),wn=function(e,t,n,r){var o,i={},a={started:!1,active:!1,isVideoEnded:!1,lang:n.getLanguage()},s=null,A="",c=null,u="",l="",f=!1,p=n.getBrowser(),d="Android"===p.os||"iOS"===p.os;(o=document.createElement("div")).setAttribute("class","op-ads"),o.setAttribute("id","op-ads"),n.getContainer().append(o),(c=document.createElement("video")).setAttribute("playsinline","true"),c.setAttribute("title","Advertisement"),c.setAttribute("class","op-ads-vast-video"),(l=document.createElement("div")).setAttribute("class","op-ads-button"),(u=document.createElement("div")).setAttribute("class","op-ads-textview"),l.append(u),o.append(c),o.append(l),A=o;var g=new Cn,h=null,v=null,m=function(e){console.log(e),c.style.display="none",t.trigger(Ae,{code:e.code,message:e.message}),a.active=!1,a.started=!0,t.play()};return i.isActive=function(){return a.active},i.started=function(){return a.started},i.play=function(){return a.started?c.play():new Promise((function(o,i){var A=function(){t.metaLoaded()?(OvenPlayerConsole.log("VAST : main contents meta loaded."),function(){OvenPlayerConsole.log("VAST : checkAutoplaySupport() ");var n=document.createElement("video");n.setAttribute("playsinline","true"),n.src=ot,n.load(),c.load(),d&&t.getName()!==le&&e.load();var r=function(e,t){f=e,n.pause(),n.remove()};return new Promise((function(e,t){if(n.play){var o=n.play();void 0!==o?o.then((function(){OvenPlayerConsole.log("VAST : auto play allowed."),r(!0),e()})).catch((function(t){OvenPlayerConsole.log("VAST : auto play failed",t.message),r(!1),e()})):(OvenPlayerConsole.log("VAST : promise not support"),r(!0),e())}else OvenPlayerConsole.log("VAST : !temporarySupportCheckVideo.play"),r(!0),e()}))}().then((function(){n.isAutoStart()&&!f?(OvenPlayerConsole.log("VAST : autoplayAllowed : false"),a.started=!1,i(new Error("autoplayNotAllowed"))):(g.get(r).then((function(n){if(OvenPlayerConsole.log("VAST : initRequest()"),!(v=n.ads[0]))throw{code:401,message:"File not found. Unable to find Linear/MediaFile from URI."};h=new bn(g,v,v.creatives[0]),OvenPlayerConsole.log("VAST : created ad tracker."),s=function(e,t,n,r,o,i,a){var s={},A={},c=Xe(i),u=Xe(o),l=Xe(e);n.on(De,(function(t){t.mute?e.muted=!0:(e.muted=!1,e.volume=t.volume/100)}),A);var f=function(){r.active=!1,u.hide(),!r.started||0!==n.getPosition()&&r.isVideoEnded||(l.hide(),n.play()),n.trigger(se)},p=function(n){c.hasClass("videoAdUiAction")&&(t.skip(),e.pause(),f())};return i.addEventListener("click",p,!1),s.error=function(){OvenPlayerConsole.log("VAST : listener : error.",e.error),console.log("VAST : listener : error.",e.error);var n={},r=e.error&&e.error.code||0;2===r?(n.code=402,n.message="Timeout of MediaFile URI."):3===r?(n.code=405,n.message="Problem displaying MediaFile. Video player found a MediaFile with supported type but couldnโ€™t display it. MediaFile may include: unsupported codecs, different MIME type than MediaFile@type, unsupported delivery method, etc."):4===r?(n.code=403,n.message="Couldnโ€™t find MediaFile that is supported by this video player, based on the attributes of the MediaFile element."):(n.code=400,n.message="General Linear error. Video player is unable to display the Linear Ad."),t.errorWithCode(n.code),a("405")},s.canplay=function(){},s.ended=function(){t.complete(),f()},s.click=function(e){t.click()},s.play=function(){t.setPaused(!1)},s.pause=function(){t.setPaused(!0)},s.timeupdate=function(r){t.setProgress(r.target.currentTime),n.trigger(Le,{duration:e.duration,position:e.currentTime})},s.volumechange=function(e){OvenPlayerConsole.log("VAST : listener : Ad Video Volumechange."),t.setMuted(e.target.muted)},s.loadedmetadata=function(){OvenPlayerConsole.log("VAST : listener : Ad CONTENT LOADED ."),ee===n.getState()&&n.pause(),t.trackImpression(),n.trigger(oe,{remaining:e.duration,isLinear:!0}),e.play()},t.on("skip",(function(){OvenPlayerConsole.log("VAST : listener : skipped")})),t.on("mute",(function(){OvenPlayerConsole.log("VAST : listener : muted")})),t.on("unmute",(function(){OvenPlayerConsole.log("VAST : listener : unmuted")})),t.on("resume",(function(){OvenPlayerConsole.log("VAST : listener : vastTracker resumed."),r.started&&n.setState(ie)})),t.on("pause",(function(){OvenPlayerConsole.log("VAST : listener : vastTracker paused."),n.setState(ae)})),t.on("clickthrough",(function(e){OvenPlayerConsole.log("VAST : listener : clickthrough :",e),window.open(e,"_blank")})),t.on("skip-countdown",(function(e){0===e?("ko"===r.lang?c.html("๊ด‘๊ณ  ๊ฑด๋„ˆ๋›ฐ๊ธฐ"):c.html("Ad Skip"),c.addClass("videoAdUiAction")):"ko"===r.lang?c.html(parseInt(e)+1+"์ดˆ ํ›„์— ์ด ๊ด‘๊ณ ๋ฅผ ๊ฑด๋„ˆ๋›ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."):c.html("You can skip this ad in "+(parseInt(e)+1))})),t.on("rewind",(function(){OvenPlayerConsole.log("VAST : listener : rewind")})),t.on("start",(function(){OvenPlayerConsole.log("VAST : listener : started"),r.started=!0,r.active=!0,l.show(),u.show(),n.trigger(Te,{isLinear:!0}),n.setState(ie)})),t.on("firstQuartile",(function(){OvenPlayerConsole.log("VAST : listener : firstQuartile")})),t.on("midpoint",(function(){OvenPlayerConsole.log("VAST : listener : midpoint")})),t.on("thirdQuartile",(function(){OvenPlayerConsole.log("VAST : listener : thirdQuartile")})),t.on("creativeView",(function(){OvenPlayerConsole.log("VAST : listener : creativeView")})),Object.keys(s).forEach((function(t){e.removeEventListener(t,s[t]),e.addEventListener(t,s[t])})),A.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),i.removeEventListener("click",p,!1),Object.keys(s).forEach((function(t){e.removeEventListener(t,s[t])}))},A}(c,h,t,a,l,u,m);var r="";v.creatives&&v.creatives.length>0&&v.creatives[0].mediaFiles&&v.creatives[0].mediaFiles.length>0&&v.creatives[0].mediaFiles[0].fileURL&&(r=v.creatives[0].mediaFiles[0].fileURL,OvenPlayerConsole.log("VAST : media url : ",r)),c.src=r,c.volume=e.volume,c.muted=e.muted})).catch((function(e){m(e)})),o())}))):setTimeout(A,100)};A()}))},i.pause=function(){c.pause()},i.videoEndedCallback=function(e){e(),a.isVideoEnded=!0},i.destroy=function(){s&&(s.destroy(),s=null),h=null,g=null,A.remove()},i},En=function(e,t,n){OvenPlayerConsole.log("[Provider] loaded. ");var r={};Je(r);var o=e.element,i=null,a=null;e.adTagUrl&&(OvenPlayerConsole.log("[Provider] Ad Client - ",t.getAdClient()),(i="vast"===t.getAdClient()?wn(o,r,t,e.adTagUrl):At(o,r,t,e.adTagUrl))||console.log("Can not load due to google ima for Ads.")),a=function(e,t,n,r){var o={};OvenPlayerConsole.log("EventListener loaded.",e,t);var i={},a=-1,s=e;return o.canplay=function(){t.setCanSeek(!0),t.trigger("bufferFull"),OvenPlayerConsole.log("EventListener : on canplay")},o.durationchange=function(){o.progress(),OvenPlayerConsole.log("EventListener : on durationchange"),t.trigger("durationChanged")},o.ended=function(){OvenPlayerConsole.log("EventListener : on ended"),s.pause(),t.getState()!==X&&t.getState()!==q&&t.getState()!==te&&(n?n((function(){t.setState(q)})):t.setState(q))},o.loadeddata=function(){},o.loadedmetadata=function(){var e=t.getSources(),n=t.getCurrentSource(),r=n>-1?e[n].type:"",o={duration:t.isLive()?1/0:s.duration,type:r};t.setMetaLoaded(),OvenPlayerConsole.log("EventListener : on loadedmetadata",o),t.trigger(Qe,o)},o.pause=function(){return t.getState()!==q&&t.getState()!==te&&!s.ended&&!s.error&&s.currentTime!==s.duration&&(OvenPlayerConsole.log("EventListener : on pause"),void t.setState($))},o.loadstart=function(){r&&!r.getConfig().showBigPlayButton&&r.getConfig().autoStart&&t.setState(ne)},o.play=function(){a=-1,s.paused||t.getState()===ee||t.setState(ne)},o.playing=function(){OvenPlayerConsole.log("EventListener : on playing"),a<0&&t.setState(ee)},o.progress=function(){var e=s.buffered;if(!e)return!1;var n,r=s.duration,o=s.currentTime,i=(n=(e.length>0?e.end(e.length-1):0)/r,Math.max(Math.min(n,1),0));t.setBuffer(100*i),t.trigger(Re,{bufferPercent:100*i,position:o,duration:r}),OvenPlayerConsole.log("EventListener : on progress",100*i)},o.timeupdate=function(){var e=s.currentTime,n=s.duration;if(!isNaN(n)){if(e>n)return s.pause(),void t.setState(q);var r=t.getSources()[t.getCurrentSource()].sectionStart;r&&eo&&t.getState()===ee)return t.stop(),void t.setState(q);n>9e15&&(n=1/0),t.isSeeking()||s.paused||t.getState()!==re&&t.getState()!==ne&&t.getState()!==ie||function(e,t){return e.toFixed(2)===t.toFixed(2)}(a,e)||(a=-1,t.setState(ee)),r&&r>0&&(e-=r)<0&&(e=0),o&&(n=o),r&&(n-=r),(t.getState()===ee||t.isSeeking())&&t.trigger(Oe,{position:e,duration:n})}},o.seeking=function(){t.setSeeking(!0),OvenPlayerConsole.log("EventListener : on seeking",s.currentTime),t.trigger("seek",{position:s.currentTime})},o.seeked=function(){t.isSeeking()&&(OvenPlayerConsole.log("EventListener : on seeked"),t.setSeeking(!1),t.trigger("seeked"))},o.stalled=function(){OvenPlayerConsole.log("EventListener : on stalled")},o.waiting=function(){OvenPlayerConsole.log("EventListener : on waiting",t.getState()),t.isSeeking()?t.setState(ne):t.getState()===ee&&(a=s.currentTime,t.setState(re))},o.volumechange=function(){OvenPlayerConsole.log("EventListener : on volumechange",Math.round(100*s.volume)),t.trigger(De,{volume:Math.round(100*s.volume),mute:s.muted})},o.error=function(){var e={0:300,1:301,2:302,3:303,4:304}[s.error&&s.error.code||0]||0;OvenPlayerConsole.log("EventListener : on error",e),it(ze.codes[e],t)},Object.keys(o).forEach((function(e){s.removeEventListener(e,o[e]),s.addEventListener(e,o[e])})),i.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),Object.keys(o).forEach((function(e){s.removeEventListener(e,o[e])}))},i}(o,r,i?i.videoEndedCallback:null,t),o.playbackRate=o.defaultPlaybackRate=t.getPlaybackRate(),e.zoomFactor=1;var s=function(i){var a=e.sources[e.currentSource];if(e.framerate=a.framerate,r.setVolume(t.getVolume()),e.framerate||t.setTimecodeMode(!0),n)n(a,i);else{OvenPlayerConsole.log("source loaded : ",a,"lastPlayPosition : "+i);var s=o.src;a.file!==s&&(o.src=a.file,(s||""===s)&&o.load()),r.on(Qe,(function(){i>0&&r.seek(i)}))}};return r.getName=function(){return e.name},r.getMse=function(){return e.mse},r.getMediaElement=function(){return e.element},r.canSeek=function(){return e.canSeek},r.setCanSeek=function(t){e.canSeek=t},r.isSeeking=function(){return e.seeking},r.setSeeking=function(t){e.seeking=t},r.setMetaLoaded=function(){e.isLoaded=!0},r.metaLoaded=function(){return e.isLoaded},r.setState=function(t){if(e.state!==t){var n=e.state;if(OvenPlayerConsole.log("Provider : setState()",t),n===ie&&(t===te||t===X))return!1;switch(OvenPlayerConsole.log("Provider : triggerSatatus",t),t){case q:r.trigger(be);break;case $:r.trigger(we,{prevState:e.state,newstate:$});break;case ae:r.trigger(we,{prevState:e.state,newstate:ae});break;case ee:r.trigger(Ee,{prevState:e.state,newstate:ee});break;case ie:r.trigger(Ee,{prevState:e.state,newstate:ie})}e.state=t,r.trigger(Ce,{prevstate:n,newstate:e.state})}},r.getState=function(){return e.state},r.setBuffer=function(t){e.buffer=t},r.getBuffer=function(){return e.buffer},r.isLive=function(){return!!e.isLive||o.duration===1/0},r.getDuration=function(){return r.isLive()?1/0:o.duration},r.getDvrWindow=function(){return e.dvrWindow},r.getPosition=function(){return o?o.currentTime:0},r.setVolume=function(e){if(!o)return!1;o.volume=e/100,t.setVolume(e)},r.getVolume=function(){return t.getVolume()},r.setMute=function(e){if(!o)return!1;if(void 0===e){var n=t.isMute();o.muted=!n,t.setMute(!n),r.trigger(Me,{mute:t.isMute()})}else o.muted=e,t.setMute(e),r.trigger(Me,{mute:t.isMute()});return o.muted},r.getMute=function(){return t.isMute()},r.preload=function(n,o){return e.sources=n,e.currentSource=at(n,t),s(o||0),new Promise((function(e,n){t.isMute()&&r.setMute(!0),t.getVolume()&&r.setVolume(t.getVolume()),e()}))},r.load=function(n){e.sources=n,e.currentSource=at(n,t),s(0)},r.play=function(){if(OvenPlayerConsole.log("Provider : play()"),!o)return!1;if(r.getState()!==ee)if(i&&i.isActive()||i&&!i.started())i.play().then((function(e){OvenPlayerConsole.log("Provider : ads play success")})).catch((function(e){OvenPlayerConsole.log("Provider : ads play fail",e)}));else{var e=o.play();void 0!==e?e.then((function(){OvenPlayerConsole.log("Provider : video play success")})).catch((function(e){OvenPlayerConsole.log("Provider : video play error",e.message)})):OvenPlayerConsole.log("Provider : video play success (ie)")}},r.pause=function(){if(OvenPlayerConsole.log("Provider : pause()"),!o)return!1;r.getState()===ee?o.pause():r.getState()===ie&&i.pause()},r.seek=function(e){if(!o)return!1;o.currentTime=e},r.setPlaybackRate=function(e){return!!o&&(r.trigger("playbackRateChanged",{playbackRate:e}),o.playbackRate=o.defaultPlaybackRate=e)},r.getPlaybackRate=function(){return o?o.playbackRate:0},r.getZoomFactor=function(){return e.zoomFactor},r.setZoomFactor=function(t){return r.trigger(Se,{zoomFactor:t}),e.zoomFactor=t},r.getSources=function(){return o?e.sources.map((function(e,t){var n={file:e.file,type:e.type,label:e.label,index:t,sectionStart:e.sectionStart,sectionEnd:e.sectionEnd,gridThumbnail:e.gridThumbnail};return e.lowLatency&&(n.lowLatency=e.lowLatency),n})):[]},r.getCurrentSource=function(){return e.currentSource},r.setCurrentSource=function(n,i){if(n>-1&&e.sources&&e.sources.length>n)return OvenPlayerConsole.log("source changed : "+n),e.currentSource=n,t.setSourceIndex(n),r.setState(X),i&&s(o.currentTime||0),e.currentSource},r.getQualityLevels=function(){return o?e.qualityLevels:[]},r.getCurrentQuality=function(){return o?e.currentQuality:null},r.setCurrentQuality=function(e){},r.getAudioTracks=function(){return o?e.audioTracks:[]},r.getCurrentAudioTrack=function(){return o?e.currentAudioTrack:[]},r.setCurrentAudioTrack=function(e){},r.getSubtitleTracks=function(){return o?e.subtitleTracks:[]},r.getCurrentSubtitleTrack=function(){return o?e.currentSubtitleTrack:[]},r.setCurrentSubtitleTrack=function(e){},r.isAutoQuality=function(){},r.setAutoQuality=function(e){},r.getFramerate=function(){return e.framerate},r.setFramerate=function(t){return e.framerate=t},r.seekFrame=function(t){var n=e.framerate,i=(o.currentTime*n+t)/n;i+=1e-5,r.pause(),r.seek(i)},r.stop=function(){if(!o)return!1;for(OvenPlayerConsole.log("CORE : stop() "),o.removeAttribute("preload"),o.removeAttribute("src");o.firstChild;)o.removeChild(o.firstChild);r.pause(),r.setState(X)},r.destroy=function(){if(!o)return!1;r.stop(),a.destroy(),i&&(i.destroy(),i=null),r.off(),OvenPlayerConsole.log("CORE : destroy() player stop, listener, event destroied")},r.super=function(e){var t=r[e];return function(){return t.apply(r,arguments)}},r};function xn(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(new ArrayBuffer(n)),o=0;o>2,i=(3&t)<<4|(n=u>4,a=(15&n)<<2|(r=u>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c+=A.charAt(o)+A.charAt(i)+A.charAt(a)+A.charAt(s);return c}var kn=function(e,t,n){var r=En({name:ce,element:e,mse:null,listener:null,isLoaded:!1,canSeek:!1,isLive:!1,seeking:!1,state:X,buffer:0,framerate:0,currentQuality:-1,qualityLevels:[],currentAudioTrack:-1,audioTracks:[],currentSource:-1,sources:[],adTagUrl:n,subtitleTracks:[],currentSubtitleTrack:-1},t,null),o=r.super("destroy");OvenPlayerConsole.log("HTML5 PROVIDER LOADED.");var i=null;function a(n,r){return new Promise((function(o,a){if(!e.webkitKeys)try{e.webkitSetMediaKeys(new window.WebKitMediaKeys("com.apple.fps.1_0"))}catch(e){return void a(e)}var s;try{s=e.webkitKeys.createSession("video/mp4",function(e){var t=e.id,n=e.initData,r=e.cert;try{"string"==typeof t&&(t=function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0;rn&&t.shift(),t.length===n&&(o=i().reduce(t,(function(e,t){return e+t}),0)/n,OvenPlayerConsole.log("Last8 LOST PACKET AVG : "+o,"Current Packet LOST: "+A,"Total Packet Lost: "+s.packetsLost,t),o>a?(e.status.avgMoreThanThresholdCount=e.status.avgMoreThanThresholdCount+1,e.status.avgMoreThanThresholdCount>=60&&(OvenPlayerConsole.log("NETWORK UNSTABLED!!! "),O(ze.codes[510]))):e.status.avgMoreThanThresholdCount=0),e.status.prevPacketsLost=s.packetsLost}})),x(e))}))}),2e3)}function B(o,a,A,u,f){var p={};if(s.getConfig().webrtcConfig&&s.getConfig().webrtcConfig.iceServers)p.iceServers=s.getConfig().webrtcConfig.iceServers,s.getConfig().webrtcConfig.iceTransportPolicy&&(p.iceTransportPolicy=s.getConfig().webrtcConfig.iceTransportPolicy);else if(f){p.iceServers=[];for(var g=0;g-1){C=!0;break}if(!C&&y.urls.length>0){var E=i().clone(y.urls[0]),B=S(E);b&&B&&y.urls.push(E.replace(B,b))}y.username=m.username||m.user_name,y.credential=m.credential,p.iceServers.push(y)}p.iceTransportPolicy="relay"}else p=c;OvenPlayerConsole.log("Main Peer Connection Config : ",p);var k=null;try{k=new RTCPeerConnection(p),e.trigger("peerConnectionPrepared",k)}catch(e){var T=ze.codes[506];return T.error=e,void O(T)}d={id:o,peerId:a,peerConnection:k},k.setRemoteDescription(new RTCSessionDescription(A)).then((function(){k.createAnswer().then((function(e){var t=function(e){for(var t=e.split("\r\n"),n=-1,r=0;r-1&&t[r].indexOf("opus")>-1){n=t[r].split(" ")[0].split(":")[1];break}return n}(A.sdp);t>-1&&function(e,t){for(var n=e.split("\r\n"),r=!1,o=0;o-1){n[o].indexOf("stereo=1")>-1&&(r=!0);break}return r}(A.sdp,t)&&(e.sdp=function(e,t){for(var n=e.split("\r\n"),r=0;r-1){-1===n[r].indexOf("stereo=1")&&(n[r]=n[r]+";stereo=1");break}return n.join("\r\n")}(e.sdp,t)),OvenPlayerConsole.log("Local SDP",e),D(l,{id:o,peer_id:a,command:"answer",sdp:e}),OvenPlayerConsole.log("create Host Answer : success"),k.setLocalDescription(e).then((function(){})).catch((function(e){var t=ze.codes[505];t.error=e,O(t)}))})).catch((function(e){var t=ze.codes[504];t.error=e,O(t)}))})).catch((function(e){var t=ze.codes[503];t.error=e,O(t)})),u&&L(k,u),k.onicecandidate=function(e){e.candidate&&(OvenPlayerConsole.log("WebRTCLoader send candidate to server : ",e.candidate),D(l,{id:o,peer_id:a,command:"candidate",candidates:[e.candidate]}))},k.onconnectionstatechange=function(e){OvenPlayerConsole.log("[on connection state change]",k.connectionState,e),"connected"===k.connectionState&&r&&r()},k.onicecandidateerror=function(e){},k.onicegatheringstatechange=function(e){},k.oniceconnectionstatechange=function(e){OvenPlayerConsole.log("[on ice connection state change]",k.iceConnectionState,e),"connected"===k.iceConnectionState&&r&&r(),("disconnected"===k.iceConnectionState||"closed"===k.iceConnectionState)&&(h||d&&O(ze.codes[511]))},k.ontrack=function(e){if(OvenPlayerConsole.log("stream received."),OvenPlayerConsole.log("Recovery On Packet Loss :",v),v&&x(d),n(e),s.getConfig().webrtcConfig&&s.getConfig().webrtcConfig.playoutDelayHint)for(var t=s.getConfig().webrtcConfig.playoutDelayHint,r=d.peerConnection.getReceivers(),o=0;o0){for(var n in g){var r=g[n].peerConnection;r&&(OvenPlayerConsole.log("Closing client peer connection..."),r.close(),r=null)}g={}}l?(OvenPlayerConsole.log("Closing websocket connection..."),OvenPlayerConsole.log("Send Signaling : Stop."),1===l.readyState&&(h=!0,d&&D(l,{command:"stop",id:d.id}),l.close())):h=!1,l=null,t&&(o&&o(t),a(t,e))}function D(e,t){e&&e.send(JSON.stringify(t))}return w=window.onbeforeunload,window.onbeforeunload=function(e){w&&w(e),OvenPlayerConsole.log("This calls auto when browser closed."),O()},e.setCurrentQuality=function(e){if(!m)return-1;if(!d)return-1;var t=m.renditions[e];return t?(D(l,{command:"change_rendition",id:d.id,rendition_name:t.name,auto:!1}),y=!1,A.currentQuality=e,A.currentQuality):A.currentQuality},e.isAutoQuality=function(){return y},e.setAutoQuality=function(e){d&&(D(l,{command:"change_rendition",id:d.id,auto:e}),y=e)},u.connect=function(){OvenPlayerConsole.log("WebRTCLoader connecting..."),OvenPlayerConsole.log("WebRTCLoader url : "+t),R()},u.destroy=function(){h=!0,O(),window.onbeforeunload=w,w=null},u};function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t0&&(n=function(){clearTimeout(p)},i=function(){clearTimeout(p),performance.now(),d=!0}),o=In(r,A.file,(function(n){e.srcObject&&(e.srcObject=null),c&&(c.close(),c=null);var o=n.streams[0];if(e.srcObject=o,o.getAudioTracks().length>0){var i=window.AudioContext||window.webkitAudioContext;(function(e){var t=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),n=(/iPhone|iPad|iPod/i.test(navigator.userAgent),!1);t&&"suspended"===e.state&&document.addEventListener("touchend",(function(){n||"running"===e.state||(e.resume(),n=!0)}))})(c=new i),c.createMediaStreamSource(o)}if("video"===n.receiver.track.kind&&t.getConfig().parseStream.enabled){var a=new Blob(["/**\r\n * Created by rock on 2025. 2\r\n */\r\n\r\nconst OVENMEDIAENGINE_SEI_METADATA_UUID = '464d4c475241494e434f4c4f55524201';\r\n\r\nfunction removeEmulationPreventionBytes(data) {\r\n const rbsp = [];\r\n for (let i = 0; i < data.length; i++) {\r\n\r\n if (i > 2 && data[i - 2] === 0x00 && data[i - 1] === 0x00 && data[i] === 0x03) {\r\n continue; // skip 0x03\r\n }\r\n rbsp.push(data[i]);\r\n }\r\n return new Uint8Array(rbsp);\r\n}\r\n\r\nfunction parseSEIPayload(rbsp) {\r\n\r\n const messages = [];\r\n\r\n let i = 0;\r\n const rbspLength = rbsp[rbsp.length - 1] === 0x80 ? rbsp.length - 1 : rbsp.length;\r\n\r\n while (i < rbspLength) {\r\n\r\n let type = 0;\r\n while (rbsp[i] === 0xFF) {\r\n type += 255;\r\n i++;\r\n }\r\n type += rbsp[i++];\r\n\r\n let size = 0;\r\n while (rbsp[i] === 0xFF) {\r\n size += 255;\r\n i++;\r\n }\r\n size += rbsp[i++];\r\n\r\n const payload = rbsp.slice(i, i + size);\r\n i += size;\r\n\r\n messages.push({ type, size, payload });\r\n\r\n return { type, size, payload };\r\n }\r\n\r\n return messages;\r\n}\r\n\r\nfunction toHexString(byteArray, delimiter = '') {\r\n return Array.from(byteArray, byte => {\r\n return ('0' + (byte & 0xFF).toString(16)).slice(-2);\r\n }).join(delimiter);\r\n}\r\n\r\nfunction toHexArray(byteArray) {\r\n return Array.from(byteArray, byte => {\r\n return ('0' + (byte & 0xFF).toString(16)).slice(-2);\r\n });\r\n}\r\n\r\nfunction toUUID(byteArray) {\r\n const hexString = toHexString(byteArray);\r\n return [\r\n hexString.slice(0, 8),\r\n hexString.slice(8, 12),\r\n hexString.slice(12, 16),\r\n hexString.slice(16, 20),\r\n hexString.slice(20, 24),\r\n hexString.slice(24, 32)\r\n ].join('-');\r\n}\r\n\r\nfunction toTimestamp(byteArray) {\r\n const hexString = toHexString(byteArray);\r\n return parseInt(hexString, 16);\r\n}\r\n\r\nfunction toAsciiString(byteArray) {\r\n return String.fromCharCode.apply(null, byteArray);\r\n}\r\n\r\nfunction findNalStartIndex(frameData, offset) {\r\n while (offset < frameData.byteLength - 4) {\r\n if ((frameData[offset] === 0x00 && frameData[offset + 1] === 0x00)\r\n && (frameData[offset + 2] === 0x01 || (frameData[offset + 2] === 0x00 && frameData[offset + 3] === 0x01))) {\r\n return offset;\r\n } else {\r\n offset += 1;\r\n }\r\n }\r\n return -1;\r\n}\r\n\r\nfunction getNalus(frameData) {\r\n\r\n let offset = 0;\r\n const headerSize = 1;\r\n const nalus = [];\r\n\r\n while (offset < frameData.byteLength - 4) {\r\n\r\n const startCodeIndex = findNalStartIndex(frameData, offset);\r\n\r\n if (startCodeIndex >= offset) {\r\n\r\n const startCodeLength = frameData[startCodeIndex + 2] === 0x01 ? 3 : 4;\r\n const nextStartCodeIndex = findNalStartIndex(frameData, startCodeIndex + startCodeLength + headerSize);\r\n\r\n if (nextStartCodeIndex > startCodeIndex) {\r\n\r\n nalus.push(frameData.subarray(startCodeIndex, nextStartCodeIndex));\r\n offset = nextStartCodeIndex;\r\n } else {\r\n\r\n nalus.push(frameData.subarray(startCodeIndex));\r\n break;\r\n }\r\n } else {\r\n break;\r\n }\r\n }\r\n return nalus;\r\n}\r\n\r\nfunction createReceiverTransform() {\r\n return new TransformStream({\r\n start() { },\r\n flush() { },\r\n async transform(encodedFrame, controller) {\r\n\r\n const nalus = getNalus(new Uint8Array(encodedFrame.data));\r\n\r\n nalus.forEach((nalu) => {\r\n\r\n const startCodeLength = nalu[2] === 0x01 ? 3 : 4;\r\n const headerCodeLength = 1;\r\n const nalHeader = nalu[startCodeLength];\r\n const nalType = nalHeader & 0x1F;\r\n\r\n // NAL Type SEI\r\n if (nalType === 6) {\r\n\r\n const rbsp = removeEmulationPreventionBytes(nalu.subarray(startCodeLength + headerCodeLength));\r\n\r\n const parsedSei = parseSEIPayload(rbsp);\r\n\r\n const eventData = {\r\n nalu: nalu,\r\n sei: parsedSei\r\n };\r\n\r\n const uuid = toHexString(parsedSei.payload.subarray(0, 16));\r\n\r\n if (uuid === OVENMEDIAENGINE_SEI_METADATA_UUID) {\r\n\r\n postMessage({\r\n action: 'sei', data: {\r\n ...eventData,\r\n registered: true,\r\n uuid: toUUID(parsedSei.payload.subarray(0, 16)),\r\n timecode: toTimestamp(parsedSei.payload.subarray(16, 24)),\r\n userdata: parsedSei.payload.subarray(24)\r\n }\r\n });\r\n } else {\r\n\r\n postMessage({\r\n action: 'sei', data: {\r\n ...eventData,\r\n registered: false\r\n }\r\n });\r\n }\r\n }\r\n });\r\n\r\n controller.enqueue(encodedFrame);\r\n }\r\n })\r\n}\r\n\r\nfunction setupPipe({ readable, writable }, transform) {\r\n readable\r\n .pipeThrough(transform)\r\n .pipeTo(writable)\r\n}\r\n\r\naddEventListener('rtctransform', (event) => {\r\n setupPipe(event.transformer, createReceiverTransform());\r\n});\r\n\r\naddEventListener('message', (event) => {\r\n const { action } = event.data;\r\n\r\n switch (action) {\r\n case 'rtctransform':\r\n setupPipe(event.data, createReceiverTransform())\r\n break;\r\n default:\r\n break;\r\n }\r\n});\r\n"],{type:"application/javascript"}),s=URL.createObjectURL(a),A=new Worker(s);if("RTCRtpScriptTransform"in window)n.receiver.transform=new RTCRtpScriptTransform(A);else{var u=n.receiver.createEncodedStreams(),l=u.readable,f=u.writable;A.postMessage({action:"rtctransform",readable:l,writable:f},[l,f])}A.addEventListener("message",(function(e){"sei"===e.data.action&&r.trigger("metaData",Ln(Ln({},e.data.data),{},{type:"sei"}))}))}}),i,n,it,t,u),performance.now(),o.connect(),f>0&&(r.once(Ce,(function(e){d||e.newstate===X&&(clearTimeout(p),h())})),r.once(ye,(function(){d=!1})),p=setTimeout((function(){if(f>0)d||(h(),g());else{h();var e=ze.codes[512];it(e,r)}f--}),l))}}function h(){o&&(o.destroy(),o=null,e.srcObject=null)}return r=En(u,t,(function(e){var n=t.getConfig();n.webrtcConfig&&("number"==typeof n.webrtcConfig.connectionTimeout&&n.webrtcConfig.connectionTimeout>0&&(l=n.webrtcConfig.connectionTimeout),"number"==typeof n.webrtcConfig.timeoutMaxRetry&&n.webrtcConfig.timeoutMaxRetry>0&&(f=n.webrtcConfig.timeoutMaxRetry)),A=e,g()})),i=r.super("destroy"),a=r.super("play"),s=r.super("stop"),OvenPlayerConsole.log("WEBRTC PROVIDER LOADED."),r.removeStream=function(){e.srcObject=null},r.destroy=function(){clearTimeout(p),h(),OvenPlayerConsole.log("WEBRTC : PROVIDER DESTROYED."),i()},r.play=function(){(!o||f>0&&!d)&&g(),a()},r.stop=function(){clearTimeout(p),h(),s()},r},Qn=function(e,t,n){var r=t?1e3:1024;if(Math.abs(e)=r&&a0)for(var i=0;i0)for(var s=0;s=0&&r.seek(t)})),o.on(Hls.Events.LEVEL_SWITCHED,(function(e,t){f.currentQuality=t.level,r.trigger(Fe,{isAuto:o.autoLevelEnabled,currentQuality:f.currentQuality,type:"render"})})),o.on(Hls.Events.AUDIO_TRACK_SWITCHED,(function(e,t){f.currentAudioTrack=t.id,r.trigger(Ye,{currentAudioTrack:f.currentAudioTrack})})),o.on(Hls.Events.SUBTITLE_TRACK_SWITCH,(function(e,t){f.currentSubtitleTrack=t.id,r.trigger(Ge,{currentSubtitleTrack:f.currentSubtitleTrack})})),o.on(Hls.Events.LEVEL_UPDATED,(function(e,t){t&&t.details&&(f.dvrWindow=t.details.totalduration)})),o.on(Hls.Events.ERROR,(function(t,n){if(n&&n.networkDetails&&202===n.networkDetails.status)return s&&(clearTimeout(s),s=null),r.setState(ne),void(s=setTimeout((function(){o&&(r.stop(),o.stopLoad(),o.loadSource(e.file))}),1e3));if(n.fatal){var i=302;n&&n.networkDetails&&400===n.networkDetails.status?i=306:n&&n.networkDetails&&403===n.networkDetails.status?i=307:n&&n.networkDetails&&406===n.networkDetails.status&&(i=308);var a=ze.codes[i];a.error=n,it(a,r)}})),r.on(Ce,(function(e){A||e.prevstate!==ne||e.newstate!==X||(s&&(clearTimeout(s),s=null),o&&o.stopLoad())}))})),r.setCurrentQuality=function(e){return o.currentLevel=e,f.currentQuality=e,f.currentQuality},r.isAutoQuality=function(){return o.autoLevelEnabled},r.setAutoQuality=function(e){e&&(o.currentLevel=-1)},r.setCurrentAudioTrack=function(e){return o.audioTrack=e,f.currentAudioTrack=e,f.currentAudioTrack},r.setCurrentSubtitleTrack=function(e){return o.subtitleTrack=e,f.currentSubtitleTrack=e,f.currentSubtitleTrack},r.getDuration=function(){return e.duration},i=r.super("stop"),r.stop=function(){s&&(clearTimeout(s),s=null),o&&o.stopLoad(),i()},a=r.super("destroy"),r.destroy=function(){s&&(clearTimeout(s),s=null),o&&(o.destroy(),r.trigger("hlsDestroyed")),o=null,OvenPlayerConsole.log("HLS : PROVIDER DESTROYED."),a()},OvenPlayerConsole.log("HLS PROVIDER LOADED.")}catch(e){var p=ze.codes[106];throw p.error=e,p}return r},Un=function(e){var t={};Je(t),OvenPlayerConsole.log("API loaded.");var n=function(e){var t={},n={playlist:[],currentIndex:0},r=rt();OvenPlayerConsole.log("PlaylistManager loaded.");var o=function(e){if(e&&(e.file||e.host||e.application||e.stream)){var t=Object.assign({},{default:!1},e);t.file=a(""+t.file),t.host&&t.application&&t.stream&&(t.file=t.host+"/"+t.application+"/stream/"+t.stream,delete t.host,delete t.application,delete t.stream);var n=/^[^/]+\/(?:x-)?([^/]+)$/;if(n.test(t.type)&&(t.mimeType=t.type,t.type=t.type.replace(n,"$1")),qe(t.file)?t.type="rtmp":$e(t.file)?t.type="webrtc":et(t.file,t.type)?t.type="hls":tt(t.file,t.type)?t.type="dash":t.type||(t.type=s(t.file)),t.lowLatency&&(t.lowLatency=t.lowLatency),t.type){switch(t.type){case"m3u8":case"vnd.apple.mpegurl":t.type="hls";break;case"m4a":t.type="aac";break;case"smil":t.type="rtmp"}return Object.keys(t).forEach((function(e){""===t[e]&&delete t[e]})),t}}};return t.initPlaylist=function(e,t){OvenPlayerConsole.log("PlaylistManager setPlaylist() ",e);var a=(i().isArray(e)?e:[e]).map((function(e){i().isArray(e.tracks)||delete e.tracks;var n=Object.assign({},{sources:[],tracks:[],title:""},e);n.sources!==Object(n.sources)||i().isArray(n.sources)||(n.sources=[o(n.sources)]),i().isArray(n.sources)&&0!==n.sources.length||(n.sources=[o(n)]),i().isArray(n.sources)&&0!==n.sources.length||(e.levels?n.sources=e.levels:n.sources=[o(e)]);for(var a=0;a0}))||[];return n.playlist=a,a},t.getPlaylist=function(){return OvenPlayerConsole.log("PlaylistManager getPlaylist() ",n.playlist),n.playlist},t.getCurrentPlayList=function(){return n.playlist[n.currentIndex]?n.playlist[n.currentIndex]:[]},t.getCurrentPlaylistIndex=function(){return n.currentIndex},t.setCurrentPlaylist=function(t){return n.playlist[t]&&(n.currentIndex=t,e.trigger(he,n.currentIndex)),n.currentIndex},t.getCurrentSources=function(){return n.playlist[n.currentIndex]?(OvenPlayerConsole.log("PlaylistManager getCurrentSources() ",n.playlist[n.currentIndex].sources),n.playlist[n.currentIndex].sources):null},t.getCurrentAdTag=function(){if(n.playlist[n.currentIndex])return n.playlist[n.currentIndex].adTagUrl||""},t}(t),o=function(){var e=rt(),t={},n={};OvenPlayerConsole.log("ProviderController loaded.");var r=function(e,n){t[e]||(OvenPlayerConsole.log("ProviderController _registerProvider() ",e),t[e]=n)},o={html5:function(){var e=kn;return r(ce,e),{name:ce,provider:e}},webrtc:function(){var e=Mn;return r(ue,e),{name:ue,provider:e}},dash:function(){var e=Pn;return r(le,e),{name:le,provider:e}},hls:function(){var e=Fn;return r(fe,e),{name:fe,provider:e}}};return n.loadProviders=function(t){var n=e.findProviderNamesByPlaylist(t);return OvenPlayerConsole.log("ProviderController loadProviders() ",n),n?Promise.all(n.filter((function(e){return!!o[e]})).map((function(e){return o[e]()}))):Promise.reject(ze.codes[101])},n.findByName=function(e){return OvenPlayerConsole.log("ProviderController findByName() ",e),t[e]},n.getProviderBySource=function(t){var r=e.findProviderNameBySource(t);return OvenPlayerConsole.log("ProviderController getProviderBySource() ",r),n.findByName(r)},n.isSameProvider=function(t,n){return OvenPlayerConsole.log("ProviderController isSameProvider() ",e.findProviderNameBySource(t),e.findProviderNameBySource(n)),e.findProviderNameBySource(t)===e.findProviderNameBySource(n)},n}(),A=Y(),c=function(e,t){var n={},r=Xe(e),o="";return OvenPlayerConsole.log("MediaManager loaded. browser : ",t),n.createMedia=function(e,t){return n.empty(),i=t.isLoop(),a=t.isAutoStart(),(o=document.createElement("video")).setAttribute("preload","auto"),o.setAttribute("disableremoteplayback",""),o.setAttribute("webkit-playsinline","true"),o.setAttribute("playsinline","true"),i&&o.setAttribute("loop",""),a&&o.setAttribute("autoplay",""),r.append(o),o;var i,a},n.createAdContainer=function(){var e=document.createElement("div");return e.setAttribute("class","op-ads"),r.append(e),e},n.empty=function(){OvenPlayerConsole.log("MediaManager removeElement()"),r.removeChild(o),o=null},n.destroy=function(){r.removeChild(),r=null,null!=o&&""!==o&&(o.srcObject=null),o=null},n}(e,A),u="",l="",f="",p=function(e){OvenPlayerConsole.log("runNextPlaylist");var r=e,o=!!n.getPlaylist()[r];l.setSourceIndex(0),l.setVolume(u.getVolume()),o?(n.setCurrentPlaylist(r),d()):t.trigger(ve,null)},d=function(e){return o.loadProviders(n.getCurrentPlayList()).then((function(e){if(e.length<1)throw ze.codes[101];u&&(u.destroy(),u=null),f&&(f.destroy(),f=null),f=function(e,t){var n={},r=[],o=-1,a=K(),s=!0;OvenPlayerConsole.log("Caption Manager >> ",t);var A=function(e,t){return e.data=t||[],e.name=e.label||e.name||e.language,e.id=function(e,t){var n,o=e.kind||"cc";return n=e.default||e.defaulttrack?"default":e.id||o+t,s&&(c(r.length||0),s=!1),n}(e,r.length),r.push(e),e.id},c=function(t){o=t,e.trigger(Ne,o)};if(e.getConfig().playlist&&e.getConfig().playlist.length>0){var u=e.getConfig().playlist[t];if(u&&u.tracks&&u.tracks.length>0)for(var l=function(){var t=u.tracks[f];He(t.kind)&&!i().findWhere(t,{file:t.file})&&a.load(t,t.lang,(function(e){e&&e.length>0&&A(t,e)}),(function(t){var n=ze.codes[305];n.error=t,e.trigger(ye,n)}))},f=0;f-1&&r[o]){var a=i().filter(r[o].data,(function(e){return n>=e.startTime&&(!e.endTime||n)<=e.endTime}));a&&a.length>0&&e.trigger(Ue,a[0])}})),n.flushCaptionList=function(e){r=[],c(e)},n.getCaptionList=function(){return r||[]},n.getCurrentCaption=function(){return o},n.setCurrentCaption=function(e){if(!(e>-2&&e0&&A(t,e)}),(function(t){var n=errors[305];n.error=t,e.trigger(ye,n)}))},n.removeCaption=function(e){return e>-1&&e=.25&&e<=4})).map((function(e){return Math.round(4*e)/4}))).indexOf(1)<0&&s.push(1),s.sort(),t.playbackRates=s,t.rtmpBufferTime=t.rtmpBufferTime>10?10:t.rtmpBufferTime,t.rtmpBufferTimeMax=t.rtmpBufferTimeMax>50?50:t.rtmpBufferTimeMax,t.playbackRates.indexOf(t.playbackRate)<0&&(t.playbackRate=1);var A=t.playlist;if(A)i().isArray(A.playlist)&&(t.feedData=A,t.playlist=A.playlist);else{var c=i().pick(t,["title","description","type","image","file","sources","tracks","host","application","stream","adTagUrl"]);t.playlist=[c]}return delete t.duration,t}(e);return{getConfig:function(){return n},getAdClient:function(){return n.adClient},setConfig:function(e,t){n[e]=t},getContainer:function(){return n.mediaContainer},getPlaybackRate:function(){return n.playbackRate},setPlaybackRate:function(e){return n.playbackRate=e,e},getZoomFactor:function(){return n.zoomFactor},setZoomFactor:function(e){return n.zoomFactor=e,e},getQualityLabel:function(){return n.qualityLabel},setQualityLabel:function(e){n.qualityLabel=e},isCurrentProtocolOnly:function(){return n.currentProtocolOnly},getSourceIndex:function(){return n.sourceIndex},setSourceIndex:function(e){n.sourceIndex=e},setTimecodeMode:function(e){n.timecode!==e&&(n.timecode=e,t.trigger(We,e))},isTimecodeMode:function(){return n.timecode},getRtmpBufferTime:function(){return n.rtmpBufferTime},getRtmpBufferTimeMax:function(){return n.rtmpBufferTimeMax},setMute:function(e){n.mute=e},isMute:function(){return n.mute},getVolume:function(){return n.volume},setVolume:function(e){n.volume=e},isLoop:function(){return n.loop},isAutoStart:function(){return n.autoStart},isControls:function(){return n.controls},getPlaybackRates:function(){return n.playbackRates},getBrowser:function(){return n.browser},getSystemText:function(){return n.systemText},getLanguage:function(){return n.lang},getPlaylist:function(){return n.playlist},setPlaylist:function(e){return i().isArray(e)?n.playlist=e:n.playlist=[e],n.playlist}}}(r,t),OvenPlayerConsole.log("API : init()"),OvenPlayerConsole.log("API : init() config : ",l),ze.codes=l.getSystemText().api.error,n.initPlaylist(l.getPlaylist(),l),OvenPlayerConsole.log("API : init() sources : ",n.getCurrentSources()),d(),setTimeout((function(){t.trigger(de)}))},t.getProviderName=function(){return u?u.getName():null},t.getProvider=function(){return u},t.getMseInstance=function(){return u?u.getMse():null},t.getConfig=function(){return OvenPlayerConsole.log("API : getConfig()",l.getConfig()),l.getConfig()},t.getBrowser=function(){return l.getBrowser()},t.setTimecodeMode=function(e){OvenPlayerConsole.log("API : setTimecodeMode()",e),l.setTimecodeMode(e)},t.isTimecodeMode=function(){return OvenPlayerConsole.log("API : isTimecodeMode()"),l.isTimecodeMode()},t.getFramerate=function(){if(OvenPlayerConsole.log("API : getFramerate()"),u)return u.getFramerate()},t.seekFrame=function(e){return u?(OvenPlayerConsole.log("API : seekFrame()",e),u.seekFrame(e)):null},t.getDuration=function(){return u?(OvenPlayerConsole.log("API : getDuration()",u.getDuration()),u.getDuration()):null},t.getDvrWindow=function(){return u?(OvenPlayerConsole.log("API : getDvrWindow()",u.getDvrWindow()),u.getDvrWindow()):null},t.getPosition=function(){return u?(OvenPlayerConsole.log("API : getPosition()",u.getPosition()),u.getPosition()):null},t.getVolume=function(){return u?(OvenPlayerConsole.log("API : getVolume()",u.getVolume()),u.getVolume()):null},t.setVolume=function(e){if(!u)return null;OvenPlayerConsole.log("API : setVolume() "+e),u.setVolume(e)},t.setMute=function(e){return u?(OvenPlayerConsole.log("API : setMute() "+e),u.setMute(e)):null},t.getMute=function(){return u?(OvenPlayerConsole.log("API : getMute() "+u.getMute()),u.getMute()):null},t.load=function(e){return OvenPlayerConsole.log("API : load() ",e),e&&(l.setSourceIndex(0),u&&u.getQualityLevels().length>0&&u.setCurrentQuality(0),"sources"in e?l.setPlaylist(e):l.setPlaylist({sources:e}),n.initPlaylist(l.getPlaylist(),l)),d()},t.play=function(){if(!u)return null;OvenPlayerConsole.log("API : play() "),u.metaLoaded()||l.isAutoStart()?u.play():t.once(Qe,(function(){u.play()}))},t.pause=function(){if(!u)return null;OvenPlayerConsole.log("API : pause() "),u.pause()},t.seek=function(e){if(!u)return null;OvenPlayerConsole.log("API : seek() "+e),u.seek(e)},t.setPlaybackRate=function(e){return u?(OvenPlayerConsole.log("API : setPlaybackRate() ",e),u.setPlaybackRate(l.setPlaybackRate(e))):null},t.getPlaybackRate=function(){return u?(OvenPlayerConsole.log("API : getPlaybackRate() ",u.getPlaybackRate()),u.getPlaybackRate()):null},t.setZoomFactor=function(e){return u?(OvenPlayerConsole.log("API : setZoomFactor() ",e),u.setZoomFactor(l.setZoomFactor(e))):null},t.getZoomFactor=function(){return u?(OvenPlayerConsole.log("API : getZoomFactor() ",u.getZoomFactor()),u.getZoomFactor()):null},t.getPlaylist=function(){return OvenPlayerConsole.log("API : getPlaylist() ",n.getPlaylist()),n.getPlaylist()},t.getCurrentPlaylist=function(){return OvenPlayerConsole.log("API : getCurrentPlaylist() ",n.getCurrentPlaylistIndex()),n.getCurrentPlaylistIndex()},t.setCurrentPlaylist=function(e){OvenPlayerConsole.log("API : setCurrentPlaylist() ",e),p(e)},t.getSources=function(){return u?(OvenPlayerConsole.log("API : getSources() ",u.getSources()),u.getSources()):null},t.getCurrentSource=function(){return u?(OvenPlayerConsole.log("API : getCurrentSource() ",u.getCurrentSource()),u.getCurrentSource()):null},t.setCurrentSource=function(e){if(!u)return null;OvenPlayerConsole.log("API : setCurrentSource() ",e);var n=u.getPosition();return l.setSourceIndex(e),d(n).then((function(){t.trigger(Pe,{currentSource:e})})),e},t.getQualityLevels=function(){return u?(OvenPlayerConsole.log("API : getQualityLevels() ",u.getQualityLevels()),u.getQualityLevels()):null},t.getCurrentQuality=function(){return u?(OvenPlayerConsole.log("API : getCurrentQuality() ",u.getCurrentQuality()),u.getCurrentQuality()):null},t.setCurrentQuality=function(e){return u?(OvenPlayerConsole.log("API : setCurrentQuality() ",e),u.setCurrentQuality(e)):null},t.getAudioTracks=function(){return u?(OvenPlayerConsole.log("API : getAudioTracks() ",u.getAudioTracks()),u.getAudioTracks()):null},t.getCurrentAudioTrack=function(){return u?(OvenPlayerConsole.log("API : getCurrentAudioTrack() ",u.getCurrentAudioTrack()),u.getCurrentAudioTrack()):null},t.setCurrentAudioTrack=function(e){return u?(OvenPlayerConsole.log("API : setCurrentAudioTrack() ",e),u.setCurrentAudioTrack(e)):null},t.getSubtitleTracks=function(){return u?(OvenPlayerConsole.log("API : getSubtitleTracks() ",u.getSubtitleTracks()),u.getSubtitleTracks()):null},t.getCurrentSubtitleTrack=function(){return u?(OvenPlayerConsole.log("API : getCurrentSubtitleTrack() ",u.getCurrentSubtitleTrack()),u.getCurrentSubtitleTrack()):null},t.setCurrentSubtitleTrack=function(e){return u?(OvenPlayerConsole.log("API : setCurrentSubtitleTrack() ",e),u.setCurrentSubtitleTrack(e)):null},t.isAutoQuality=function(){return u?(OvenPlayerConsole.log("API : isAutoQuality()"),u.isAutoQuality()):null},t.setAutoQuality=function(e){return u?(OvenPlayerConsole.log("API : setAutoQuality() ",e),u.setAutoQuality(e)):null},t.getCaptionList=function(){return f?(OvenPlayerConsole.log("API : getCaptionList() ",f.getCaptionList()),f.getCaptionList()):null},t.getCurrentCaption=function(){return f?(OvenPlayerConsole.log("API : getCurrentCaption() ",f.getCurrentCaption()),f.getCurrentCaption()):null},t.setCurrentCaption=function(e){if(!f)return null;OvenPlayerConsole.log("API : setCurrentCaption() ",e),f.setCurrentCaption(e)},t.addCaption=function(e){return f?(OvenPlayerConsole.log("API : addCaption() "),f.addCaption(e)):null},t.removeCaption=function(e){return f?(OvenPlayerConsole.log("API : removeCaption() ",e),f.removeCaption(e)):null},t.getBuffer=function(){if(!u)return null;OvenPlayerConsole.log("API : getBuffer() ",u.getBuffer()),u.getBuffer()},t.getState=function(){return u?(OvenPlayerConsole.log("API : getState() ",u.getState()),u.getState()):null},t.stop=function(){if(!u)return null;OvenPlayerConsole.log("API : stop() "),u.stop()},t.remove=function(){OvenPlayerConsole.log("API : remove() "),f&&(f.destroy(),f=null),u&&(u.destroy(),u=null),c&&(c.destroy(),c=null),t.trigger(ge),t.off(),o=null,n=null,l=null,OvenPlayerConsole.log("API : remove() - currentProvider, providerController, playlistManager, playerConfig, api event destroed. "),Nn.removePlayer(t)},t.getMediaElement=function(){return u.getMediaElement()},t.getVersion=function(){return r},t},Nn=(Dn=(On={}).playerList=[],On.create=function(e,t){window.OvenPlayerConsole&&0!==Object.keys(window.OvenPlayerConsole).length||(window.OvenPlayerConsole={},OvenPlayerConsole.log=function(){});var n=nt(e),r=Un(n);return r.init(t),Dn.push(r),r},On.getPlayerList=function(){return Dn},On.getPlayerByContainerId=function(e){for(var t=0;t
'+(t.isRoot?"":'<')+''+t.title+'
';return i().forEach(t.body,(function(e){n+=jn(e,t.useCheck)})),n+="
"},jn=function(e,t){return'
'+(t?'':"")+''+e.title+""+(e.hasNext?'>'+e.description+"":"")+"
"},Yn=function(e,t){return'
')+'
').concat(e.image?""):''," ").concat(e.duration?''.concat(A(e.duration),""):"","
")+'
'.concat(e.title,"
")+"
"},Gn={TextViewTemplate:function(e){return'
'+"

".concat(e,"

")+'
'},ViewTemplate:function(e,t){return'
")+'
'},HelpersTemplate:function(e,t){return'
'},BigButtonTemplate:function(e,t){return'
'+"".concat(t===ee?'':"")+"".concat(t===$?'':"")+"".concat(t===X?'':"")+"".concat(t===q?'':"")+"
"},ThumbnailTemplate:function(e,t){return'
'+"".concat(t.title?'
'.concat(t.title,"
"):"")+"
"},WaterMarkTemplate:function(e,t){return'
'+"".concat(t.waterMark.image?''):"")+"".concat(t.waterMark.text?''.concat(t.waterMark.text,""):"")+"
"},MessageBoxTemplate:function(e,t){return'
')+'
'+'
'.concat(t.message)+"".concat(t.description?'
'.concat(t.description,"
"):"")+"
"+"".concat(t.iconClass?'
'):"")+"
"},SpinnerTemplate:function(e){return'
'},ContextPanelTemplate:function(e){return'
'+''.concat(e.context," ").concat(r,"")+"
"},CaptionViewerTemplate:function(e){return'
      
'},ControlsTemplate:function(e,t){return'
'+'
'.concat(t?'':"","
")+'
'},VolumeButtonTemplate:function(e){return'
'},ProgressBarTemplate:function(e){return'
00:00
'},PlayButtonTemplate:function(e){return'
'},SettingButtonTemplate:function(e){return''},FrameButtonsTemplate:function(e){return'
'},TimeDisplayTemplate:function(e,t){return'
'+(t.duration===1/0?''+("webrtc"===t.type?t.isP2P?''.concat(e.controls.low_latency_p2p,""):''.concat(e.controls.low_latency_live,""):''.concat(e.controls.live,""))+"":'00:00 / 00:00')+"
"},FullScreenButtonTemplate:function(e){return''},PanelsTemplate:Wn,SpeedPanelTemplate:Wn,ZoomPanelTemplate:Wn,SourcePanelTemplate:Wn,QualityPanelTemplate:Wn,AudioTrackPanelTemplate:Wn,SubtitleTrackPanelTemplate:Wn,CaptionPanelTemplate:Wn,TimeDisplayPanelTemplate:Wn,PlaylistPanelTemplate:function(e,t){return'
'+'
'.concat(e.playlist,'
')+'
'}},zn=function(e,t,n,r,o,a,s,A){var c,u=i().isElement(e)?Xe(e):e,l={},f=null,p={};p.data=r;var d=function(e){var t=document.createElement("div");return t.innerHTML=e,c=Xe(t.firstChild),t.firstChild};return n&&n.systemText&&(f=n.systemText.ui),A?u.replace(d(Gn[t+"Template"](f,r))):u.append(d(Gn[t+"Template"](f,r))),a&&a(c,p),Object.keys(o).forEach((function(e){var t=e.split(" "),n=t[0].replace(/ /gi,""),r=t[1].replace(/ /gi,""),i="";if(i="document"===r||"window"===r||"body"===r?Xe(r):c.find(r)||(c.hasClass(r.replace(".",""))?c:null),!(n&&r&&i))return!1;var a=Object.keys(l).length++,s=function(t){return o[e](t,c,p)};l[a]={name:n,target:r,callback:s};var A=null;n.indexOf("touch")>-1&&(A={passive:!0});var u=i.get().length;if(u>1)for(var f=i.get(),d=0;d1)for(var o=n.get(),i=0;i-1?o=!1:(o=!0,e.find(".op-caption-text").text(""))}),r),t.on(Ue,(function(t){if(!o&&t&&t.text){var n=t.endTime-t.startTime;i&&clearTimeout(i),e.find(".op-caption-text").html(t.text),n&&(i=setTimeout((function(){e.find(".op-caption-text").text("")}),1e3*n))}}),r)}),(function(n){e.find(".op-caption-text").text(""),t.off(Ne,null,n),t.off(Ue,null,n)}))}(e,t),t.on(de,(function(){u&&v(),l&&(r&&r.destroy(),r=function(e,t,n){var r=null,o=null;return zn(e,"WaterMark",t.getConfig(),n,{},(function(e,n){r=e.find(".op-watermark"),o=e.find(".op-watermark-text");var a=t.getConfig().waterMark,s=a.position||"top-right",A=a.y||"5%",c=a.x||"2.8125%";r.css(s.split("-")[0],A),r.css(s.split("-")[1],c);var u=a.width||"auto",l=a.height||"auto";r.css("width",u),r.css("height",l);var f=a.opacity||.7;r.css("opacity",f),a.text&&a.font&&i().each(a.font,(function(e,t){o.css(t,e)}))}),(function(){}))}(e,t,t.getConfig())),o||(h($),o=!0)}),p),t.on(Ie,(function(n){n.message&&(a&&a.destroy(),s&&s.destroy(),c=_n(e,t,n.message,null,n.timer,n.iconClass,n.onClickCallback,!1),t.once(Me,(function(e){!e.mute&&c&&c.destroy()}),p))}),p),t.on(Ce,(function(e){e&&e.newstate&&(e.newstate===X&&s&&s.destroy(),e.newstate===ee||e.newstate===ie?(f=!1,s&&s.destroy(),a&&a.destroy(),n&&n.destroy(),d||A.show(!1)):e.newstate===q?(A.show(!1),h(e.newstate)):e.newstate===ne||"adLoading"===e.newstate?(f=!1,s&&s.destroy(),a&&a.destroy(),A.show(!0)):d||A.show(!1))}),p),t.on(Pe,(function(){u&&v()})),t.on(Fe,(function(e){if(e.currentQuality<0)return!1;e.isAuto?(d=!1,A.show(!1)):"request"===e.type?(g=e.currentQuality,d=!0,A.show(!0)):"render"===e.type&&g===e.currentQuality&&(d=!1,A.show(!1))}),p),t.on(ye,(function(n){if(510===n.code&&(f=!0),101===n.code&&0===t.getPlaylist().length&&(f=!0),!f){var r="",o="";a&&a.destroy(),n&&n.code&&n.code>=100&&n.code<1e3?(r=n.message,100===n.code&&(o=n.error.toString())):r="Can not play due to unknown reasons.",OvenPlayerConsole.log("error occured : ",n),function(n,r,o,i){a&&a.destroy(),s&&s.destroy(),s=_n(e,t,n,r,null,i,null,!0)}(r,o,0,"op-warning code-"+n.code)}}),p),t.on(me,(function(e){var n="Because the network connection is unstable, the following media source will be played.";t.getCurrentSource()+1===t.getQualityLevels().length&&(n="Network connection is unstable. Check the network connection."),OvenPlayerConsole.log(n)}),p),t.on(ve,(function(){u&&v()}),p)}),(function(e){t.off(de,null,e),t.off(Ce,null,e),t.off(Ie,null,e),t.off(ye,null,e),t.off(me,null,e),t.off(ve,null,e),t.off(he,null,e)}))},Vn=[],Zn=function(){var e={},t=function(){for(var e=0;e1,!0===t.getConfig().hidePlaylistIcon&&(u=!1),!0===t.getConfig().legacyUI&&(u=!0);var m={"mouseleave .op-controls":function(e,t,n){e.preventDefault(),r.setMouseDown(!1),t.find(".op-volume-slider-container").removeClass("active")},"click .op-playlist-button":function(e,n,r){e.preventDefault(),function(e,t){var n=Xe(t.getContainerElement()),r="",o=t.getPlaylist(),i=o.length,a=6,s=0,A=[];function c(e){var n,s,c=Math.ceil(i/a),u=t.getCurrentPlaylist();A=o.slice(e*a,e*a+a),r.find(".op-playlist-body-row").removeChild(),r.find(".op-arrow-left").removeClass("disable"),r.find(".op-arrow-right").removeClass("disable");for(var l=0;l576?a=6:n.width()<=576&&(a=1);var l={"click .btn-close":function(e,t,n){e.preventDefault(),n.destroy()},"click .op-arrow-left":function(e,t,n){e.preventDefault(),Xe(e.target).hasClass("disable")||c(--s)},"click .op-arrow-right":function(e,t,n){e.preventDefault(),Xe(e.target).hasClass("disable")||c(++s)}};zn(e,"PlaylistPanel",t.getConfig(),o,l,(function(e,n){r=e,c(s=u()),t.on(Be,(function(e){"xsmall"===e&&6===a?(a=1,c(s=u())):"small"!==e&&"medium"!==e&&"large"!==e||1!==a||(a=6,c(s=u()))}),n),t.on(he,(function(e){c(s=u())}),n),e.get().addEventListener("click",(function(e){for(var n=e.target;n;){if(Xe(n).hasClass("op-playlist-card"))return void t.setCurrentPlaylist(parseInt(Xe(n).attr("data-index")));n=n.parentElement}}),!0)}),(function(e){t.off(Be,null,e),t.off(he,null,e)}))}(n,t)}};return zn(e,"Controls",t.getConfig(),u,m,(function(e,u){function p(n,r){a&&a.destroy(),a=function(e,t,n,r){var o=Xe(t.getContainerElement());t.getConfig().disableSeekUI&&e.addClass("op-progressbar-container-disabled");var i=0,a=!1,s=!1,c=Zn(),u="",l=0,f=null,p="",d="",g="",h="",v="",m="",y=0,C="",b="",w=t.getBrowser().mobile,E=t.getMediaElement(),x=!1,B=!1;function k(e){e<0&&(e=0),e>1&&(e=1);var t=p.width(),n=t*e;g.css("width",n+"px"),h.css("left",n+"px");var r=(t-y)*e;v.css("left",r+"px"),i=n}function I(e){var t=p.width()*e;h.css("width",(0===e?e:t-i)+"px")}function S(e){var t=p.width(),n=p.offset().left,r=e.pageX;e.touches&&(r=e.pageX||e.touches[0].clientX);var o=(r-n)/t;return o<0?0:o>1?1:o}function T(e,n){if(c.size()>0||e<0)return C.hide(),void b.hide();C.show(),b.show();var r,o=R(e);o.duration,r=o.second;var i=C.width(),a=p.width(),s=a*e,A=n.pageX-p.offset().left;n.touches&&(A=(n.pageX||n.touches[0].clientX)-p.offset().left);var l=function(e){return A0&&(n+=a),t.seek(n)}function R(e){var n=0,r=0;if(x&&!B)r=(n=t.getDvrWindow())*(1-e),t.isTimecodeMode()?C.text("- "+A(r)):C.text("- "+Math.round(r*t.getFramerate()));else if(x&&B){var o=st(E);r=(n=o.end-o.start)*(1-e),t.isTimecodeMode()?C.text("- "+A(r)):C.text("- "+Math.round(r*t.getFramerate()))}else r=(n=t.getDuration())*e,t.isTimecodeMode()?C.text(A(r)):C.text(Math.round(r*t.getFramerate()));return{duration:n,second:r}}r&&r.type===fe&&r.duration===1/0&&(x=!0,t.getProviderName()===ce&&(B=!0));var O={"touchstart .op-progressbar":function(e){if(n)return!1;s=!0;var t=S(e);if(t<0)return!1;k(t),I(0),L(t)},"touchmove .op-progressbar":function(e){if(s){var t=S(e);if(t<0)return!1;k(t),I(0),L(t),f=e,T(t,e)}},"touchend .op-progressbar":function(e){s&&(s=!1),o.removeClass("op-progressbar-hover"),C.hide(),b.hide()},"mouseenter .op-progressbar":function(e,t,r){e.preventDefault(),w||(n||(a=!0,C.show()),o.addClass("op-progressbar-hover"))},"mouseleave .op-progressbar":function(e,t,n){e.preventDefault(),s=!1,(a=!1)||(o.removeClass("op-progressbar-hover"),C.hide(),b.hide()),I(0)},"mousedown .op-progressbar":function(e,t,r){if(e.preventDefault(),n||w)return!1;s=!0;var o=S(e);if(o<0||o>1)return!1;k(o),I(0),L(o)},"mousemove .op-progressbar":function(e,t,r){if(e.preventDefault(),!s&&!n&&!w){var o=S(e);I(o),f=e,T(o,e)}if(s&&!w){var i=S(e);if(i<0)return!1;k(i),I(0),L(i),f=e,T(i,e)}},"mouseup .op-progressbar":function(e,t,n){e.preventDefault(),s&&!w&&(s=!1,o.removeClass("op-progressbar-hover"))}};return t.getConfig().disableSeekUI&&(O={}),zn(e,"ProgressBar",t.getConfig(),null,O,(function(e,r){p=e,d=e.find(".op-load-progress"),g=e.find(".op-play-progress"),h=e.find(".op-hover-progress"),v=e.find(".op-progressbar-knob-container"),m=e.find(".op-progressbar-knob"),y=m.width(),C=e.find(".op-progressbar-time"),b=e.find(".op-progressbar-preview"),m.hide(),n?t.on(Le,(function(e){e&&e.duration&&"number"==typeof e.position&&(k(e.position/e.duration),e.duration)}),r):(t.on(Oe,(function(e){if(e&&e.duration&&"number"==typeof e.position){m.show(),l=e.duration;var n=e.position/e.duration;if(x)if(B){var r=st(E);n=(e.position-r.start)/(r.end-r.start)}else a&&f&&R(S(f)),n=(t.getDvrWindow()-(e.duration-e.position))/t.getDvrWindow();k(n)}}),r),t.on(Re,(function(e){var t,n;e&&e.bufferPercent&&(t=e.bufferPercent/100,n=p.width()*t,d.css("width",n+"px"))}),r))}),(function(e){n?t.off(Le,null,e):(t.off(Oe,null,e),t.off(Re,null,e))}))}(e.find(".op-progressbar-container"),t,n,r)}function m(){i&&i.destroy(),i=function(e,t){var n=Zn(),r={"click .op-setting-button":function(e,r,o){e.preventDefault();var i=r.closest(".op-controls-container");if(n.size()>0)n.clear();else{var a=function(e){var t={id:"panel-"+(new Date).getTime(),title:"Settings",body:[],isRoot:!0,panelType:""},n=e.getConfig();n&&n.systemText&&(Object.keys(Xn).forEach((function(e){Xn[e]=n.systemText.ui.setting[e]})),t.title=n.systemText.ui.setting.title);var r=e.getSources(),o=r&&r.length>0?r[e.getCurrentSource()]:null,i=e.getQualityLevels(),a=i&&i.length>0?i[e.getCurrentQuality()]:null,s=e.getAudioTracks(),A=s&&s.length>0?s[e.getCurrentAudioTrack()]:null,c=e.getCaptionList(),u=e.getCurrentCaption(),l=e.getFramerate(),f=n.showZoomSettings,p=e.getSubtitleTracks(),d=null;if(p&&p.length&&e.getCurrentSubtitleTrack()>-1&&(d=p[e.getCurrentSubtitleTrack()]),o){var g={title:Xn.speed,value:e.getPlaybackRate()+Xn.speedUnit,description:e.getPlaybackRate()+Xn.speedUnit,panelType:"speed",hasNext:!0};t.body.push(g)}if(r&&r.length>1){var h={title:Xn.source,value:o?o.label:"Default",description:o?o.label:"Default",panelType:"source",hasNext:!0};t.body.push(h)}if(i&&i.length>0){var v={title:Xn.quality,value:a?a.label:"Default",description:a?a.label:"Default",panelType:"quality",hasNext:!0};t.body.push(v)}if(s&&s.length>0){var m={title:Xn.audioTrack,value:A?A.label:"Default",description:A?A.label:"Default",panelType:"audioTrack",hasNext:!0};t.body.push(m)}if(p&&p.length>0){var y={title:Xn.subtitleTrack,value:d?d.label:"Off",description:d?d.label:"Off",panelType:"subtitleTrack",hasNext:!0};t.body.push(y)}if(c&&c.length>0){var C={title:Xn.caption,value:c[u]?c[u].label:"Off",description:c[u]?c[u].label:"Off",panelType:"caption",hasNext:!0};t.body.push(C)}if(l>0){var b={title:Xn.display,value:e.isTimecodeMode()?"Play time":"Framecode",description:e.isTimecodeMode()?"Play time":"Framecode",panelType:"display",hasNext:!0};t.body.push(b)}if(f){var w={title:Xn.zoom,value:Math.round(100*e.getZoomFactor())+"%",description:Math.round(100*e.getZoomFactor())+"%",panelType:"zoom",hasNext:!0};t.body.push(w)}return t}(t);n.add(Kn(i,t,a))}}};return zn(e,"SettingButton",t.getConfig(),null,r,(function(e,t){}),(function(e){}))}(e.find(".setting-holder"),t)}function y(){c||(c=function(e,t){var n=Xe(t.getContainerElement()),r="",o="",i=!1,a=(t.getConfig(),t.getBrowser()),s="iOS"===a.os,A=(a.os,""),c=!1,u={onfullscreenchange:"fullscreenchange",onmozfullscreenchange:"mozfullscreenchange",onwebkitfullscreenchange:"webkitfullscreenchange",MSFullscreenChange:"MSFullscreenChange"};function l(){var e=!1,t=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;return t&&n.get()===t&&(e=!0),e}function f(){OvenPlayerConsole.log("FULLSCREEN STATE : ",l()),l()?(c&&document.body.classList.add("op-fullscreen-helper"),n.addClass("op-fullscreen"),i=!0,r.hide(),o.show()):(c&&document.body.classList.remove("op-fullscreen-helper"),n.removeClass("op-fullscreen"),i=!1,r.show(),o.hide())}function p(){OvenPlayerConsole.log("afterFullScreenChangedCallback () "),f(),t.trigger(ke,i)}function d(){i?(n.removeClass("op-fullscreen"),document.body.classList.remove("op-fullscreen-helper"),i=!1,r.show(),o.hide()):(document.body.classList.add("op-fullscreen-helper"),n.addClass("op-fullscreen"),i=!0,r.hide(),o.show()),t.trigger(ke,i)}function g(){var e;!i||s&&!l()?s&&t.getConfig().iOSFakeFullScreen?(c=!0,d()):function(){var e,r="",o=n.get(),a=n.find("video")?n.find("video").get():o,A=null;if(s){if(a.length>1)for(var u=0;u1)for(var o=0;o9e15&&(n.duration=1/0);var r=t.getSources()[t.getCurrentSource()].sectionStart,o=t.getSources()[t.getCurrentSource()].sectionEnd;o&&(n.duration=o),r&&(n.duration=n.duration-r),function(n){s&&s.destroy(),s=function(e,t,n){var r="",o="",i="",a=t.getMediaElement(),s=!1,c=!1,u=0;function l(e){return A(e)}var f={"click .op-live-text":function(e,n,r){if(e.preventDefault(),s&&!c){var o=t.getMseInstance().liveSyncPosition;t.seek(o)}else s&&c&&t.seek(st(a).end)}};return zn(e,"TimeDisplay",t.getConfig(),n,f,(function(e,a){u=0;var A=t.isTimecodeMode();r=e.find(".op-time-current"),o=e.find(".op-time-duration"),i=e.find(".op-live-badge"),e.find(".op-live-text"),n&&n.type===fe&&n.duration===1/0&&(s=!0,t.getProviderName()===ce&&(c=!0)),n.duration!==1/0?(A?o.text(l(n.duration)):(r.text(0),o.text(Math.round(n.duration*t.getFramerate())+" ("+t.getFramerate()+"fps)")),t.on(We,(function(e){(A=e)?(r.text(l(u)),o.text(l(n.duration))):(r.text(Math.round(u*t.getFramerate())),o.text(Math.round(n.duration*t.getFramerate())+" ("+t.getFramerate()+"fps)"))}),a),t.on(Oe,(function(e){u=e.position,A?r.text(l(e.position)):r.text(Math.round(e.position*t.getFramerate()))}),a)):s&&!c?t.on(Oe,(function(e){t.getConfig().legacyUI||(t.getMseInstance().liveSyncPosition-e.position>t.getMseInstance().targetLatency?i.addClass("op-live-badge-delayed"):i.removeClass("op-live-badge-delayed"))}),a):s&&c&&i.addClass("op-live-badge-none")}),(function(e){t.off(We,null,e),t.off(Oe,null,e)}))}(e.find(".op-left-controls"),t,n)}(n),y(),t.getFramerate&&t.getFramerate(),n.duration===1/0?(OvenPlayerConsole.log("[[[[LIVE MODE]]]]"),n.type===fe?p(!1,n):a&&a.destroy()):p(!1),l=!0}function b(){a&&a.destroy(),m(),y(),h.removeClass("linear-ad"),p(!1)}o=function(e,t){var n="",r="",o="",i="",a="",s="",A="",c={"click .op-play-button":function(e,n,r){e.preventDefault();var o=t.getState(),i=t.getPlaylist(),a=t.getCurrentPlaylist();o===X?t.play():o===ee||o===ie?t.pause():o===ne||o===re?t.stop():o===$||o===ae?t.play():o===te?t.setCurrentSource(t.getCurrentSource()):o===q&&i.length===a+1&&(t.seek(0),t.play())},"click .op-seek-button-back":function(e,n,r){var o=t.getConfig().seekControlInterval;o||(o=10);var i=t.getPosition()-o;i<0&&(i=0),t.seek(i)},"click .op-seek-button-forward":function(e,n,r){var o=t.getConfig().seekControlInterval;o||(o=10);var i=t.getPosition()+o;i>t.getDuration()&&(i=t.getDuration()),t.seek(i)}};return zn(e,"PlayButton",t.getConfig(),null,c,(function(e,c){n=e.find(".op-play-button .op-play"),r=e.find(".op-play-button .op-pause"),o=e.find(".op-play-button .op-replay"),i=e.find(".op-seek-button-back"),a=e.find(".op-seek-button-forward"),s=e.find(".op-seek-back-text"),A=e.find(".op-seek-forward-text"),t.on(Ce,(function(e){var t;e&&e.newstate&&(t=e.newstate,n.hide(),r.hide(),o.hide(),t===ee||t===ie||t===ne||t===re?r.show():t===$||t===ae?n.show():t===q?o.show():n.show())}),c),t.getConfig().showSeekControl||(i.hide(),a.hide());var u=t.getConfig().seekControlInterval;u?(s.text(u),A.text(u)):(s.text(10),A.text(10))}),(function(e){t.off(Ce,null,e)}))}(e.find(".op-left-controls"),t),r=function(e,t){var n="",r="",o="",i="",a="",s="",A="",c=!1,u=0,l="iOS"===t.getBrowser().os||"Android"===t.getBrowser().os;function f(e){t.getMute()&&(e=0),function(e){a.hide(),s.hide(),A.hide(),e>=70?a.show():e<70&&e>0?s.show():0==e?A.show():a.show()}(e);var n=u*e/100;o.css("left",n+"px"),i.css("width",n+"px")}function p(e){var t=((e.pageX||e.touches[0].clientX)-r.offset().left)/70*100;return t<0&&(t=0),t>100&&(t=100),t}var d={"click .op-volume-button":function(e,n,r){e.preventDefault(),l||(0===t.getVolume()?(t.setMute(!1),t.setVolume(100)):t.setMute())},"mouseenter .op-volume-button":function(e,t,r){e.preventDefault(),l||n.addClass("active")},"mouseleave .op-volume-silder":function(e,t,n){e.preventDefault(),c=!1},"mousedown .op-volume-silder":function(e,n,r){e.preventDefault(),c=!0,t.setMute(!1),t.setVolume(p(e))},"mouseup .op-volume-silder":function(e,t,n){e.preventDefault(),c=!1},"mousemove .op-volume-silder":function(e,n,r){if(e.preventDefault(),!c)return!1;t.setVolume(p(e))},"touchstart .op-volume-button":function(e){l&&(t.getMute()?t.setMute(!1):t.setMute(!0))}},g=zn(e,"VolumeButton",t.getConfig(),null,d,(function(e,c){n=e.find(".op-volume-slider-container"),t.getBrowser().mobile&&n.hide(),r=e.find(".op-volume-silder"),o=e.find(".op-volume-slider-handle"),i=e.find(".op-volume-slider-value"),a=e.find(".op-volume-max"),s=e.find(".op-volume-small"),A=e.find(".op-volume-mute"),u=64,o.css("left",u+"px"),f(t.getVolume()),t.on(de,(function(){f(t.getVolume())}),c),t.on(De,(function(e){f(e.volume)}),c),t.on(Me,(function(e){e.mute?f(0):f(t.getVolume())}),c)}),(function(e){t.off(de,null,e),t.off(De,null,e),t.off(Me,null,e)}));return g.setMouseDown=function(e){c=e},g}(e.find(".op-left-controls"),t);var w=t.getPlaylist(),E=t.getCurrentPlaylist();w&&w[E]&&w[E].adTagUrl||m(),y(),t.on(de,(function(){e.show()}),u),t.on(Qe,(function(e){n=e.duration,v=e,e.isP2P=f,C(e)}),u),t.on(Oe,(function(e){(d||t&&t.getProviderName&&"rtmp"===t.getProviderName())&&!n&&v&&v.duration!==e.duration&&(v=e,C(e))}),u),t.on(Be,(function(e){h.find(".op-setting-panel")&&h.find(".op-setting-panel").css("max-height",h.height()-h.find(".op-bottom-panel").height()+"px")}),u),t.on(je,(function(e){f=e}),u),t.on(Ee,(function(){if(!l){var n="";t.getSources().length>0&&t.getSources()[t.getCurrentSource()]&&t.getSources()[t.getCurrentSource()].type&&(n=t.getSources()[t.getCurrentSource()].type),C({isP2P:f,duration:t.getDuration(),type:n})}e.show()}),u),t.on(ye,(function(t){e.show()}),u),t.on(Te,(function(e){e.isLinear?(h.addClass("linear-ad"),p(!0),i&&i.destroy(),g&&c&&c.destroy()):h.removeClass("linear-ad")}),u),t.on(se,(function(){b()}),u),t.on(Ae,(function(){b()}),u),t.on(Pe,(function(){b()}),u)}),(function(e){t.off(Qe,null,e),t.off(Oe,null,e),t.off(se,null,e),t.off(Te,null,e),t.off(je,null,e),t.off(Ae,null,e),t.off(Be,null,e),t.off(Pe,null,e),s&&s.destroy(),o&&o.destroy(),a&&a.destroy(),c&&c.destroy(),r&&r.destroy()}))},$n=n(88769),er=n.n($n),tr=n(85072),nr=n.n(tr),rr=n(97825),or=n.n(rr),ir=n(77659),ar=n.n(ir),sr=n(55056),Ar=n.n(sr),cr=n(10540),ur=n.n(cr),lr=n(41113),fr=n.n(lr),pr=n(69534),dr={};dr.styleTagTransform=fr(),dr.setAttributes=Ar(),dr.insert=ar().bind(null,"head"),dr.domAPI=or(),dr.insertStyleElement=ur(),nr()(pr.A,dr),pr.A&&pr.A.locals&&pr.A.locals;var gr,hr=function(e){var t,n="",r="",o="",i="",a=null,s="",A=!1,c=Zn(),u="",l="",f=null,p={};function d(e,n){if(s&&(clearTimeout(s),s=null),e){if(c.size()>0)return!1;t.addClass("op-autohide")}else t.removeClass("op-autohide"),n&&(s=setTimeout((function(){if(c.size()>0)return!1;t.addClass("op-autohide")}),3e3))}function g(){a.play()}function h(e,t){var n,r=a.getDuration(),o=a.getPosition();n=t?Math.max(o-e,0):Math.min(o+e,r),a.seek(n)}function v(e){var t,n=a.getVolume();t=e?Math.min(n+5,100):Math.max(n-5,0),a.setVolume(t)}function m(){var e=t.width();e<576?(u="xsmall",t.addClass("xsmall"),e<490&&t.addClass("xxsmall")):e<768?(u="small",t.addClass("small")):e<992?(u="medium",t.addClass("medium")):(u="large",t.addClass("large"))}var y={"click .ovenplayer":function(e,t,n){if(a&&a.trigger(xe,e),i)return e.preventDefault(),i.destroy(),i=null,!1;if(!Xe(e.target).closest(".op-controls-container")&&!Xe(e.target).closest(".op-setting-panel")){if(c.size()>0)return e.preventDefault(),c.clear(),!1;a.getDuration()===1/0||a.getBrowser().mobile||g()}},"dblclick .ovenplayer":function(e,t,n){if(a){var r=function(e){var t=e.target.getBoundingClientRect();return e.offsetX>=2/3*t.width?"right":e.offsetX>=1/3*t.width?"middle":"left"}(e),o=a.getPosition(),i=a.getConfig().doubleTapToSeek;if(i&&"left"==r){var s=Math.max(o-10,0);OvenPlayerConsole.log("Seeking to ".concat(s)),a.seek(s)}if(i&&"right"===r){var A=Math.min(o+10,a.getDuration());OvenPlayerConsole.log("Seeking to ".concat(A)),a.seek(A)}"middle"!==r&&i||(OvenPlayerConsole.log("Toggling fullscreen"),a.getConfig().expandFullScreenUI&&a.toggleFullScreen&&(Xe(e.target).closest(".op-controls-container")||Xe(e.target).closest(".op-setting-panel")||a.toggleFullScreen()))}},"touchstart .ovenplayer":function(e,t,n){d(!1,!0)},"mouseenter .ovenplayer":function(e,t,n){e.preventDefault(),d(!1,!0)},"mousemove .ovenplayer":function(e,t,n){e.preventDefault(),d(!1,!0)},"mouseleave .ovenplayer":function(e,t,n){e.preventDefault(),d(!0)},"keydown .ovenplayer":function(e,t,n){var r=a.getFramerate();switch(e.keyCode){case 16:e.preventDefault(),A=!0;break;case 32:e.preventDefault(),g();break;case 37:e.preventDefault(),a.getConfig().disableSeekUI||(A&&r?a.seekFrame(-1):h(5,!0));break;case 39:e.preventDefault(),a.getConfig().disableSeekUI||(A&&r?a.seekFrame(1):h(5,!1));break;case 38:e.preventDefault(),v(!0);break;case 40:e.preventDefault(),v(!1)}},"keyup .ovenplayer":function(e,t,n){16===e.keyCode&&(e.preventDefault(),A=!1)},"contextmenu .ovenplayer":function(e,n,r){if(e.stopPropagation(),!Xe(e.currentTarget).find("object"))return e.preventDefault(),o=e.pageX,s=e.pageY,i&&(i.destroy(),i=null),i=function(e,t,n){var r=Xe(t.getContainerElement()),o={"click .op-context-item":function(e,t,n){e.preventDefault(),window.open("https://github.com/AirenSoft/OvenPlayer","_blank")}};return zn(e,"ContextPanel",t.getConfig(),n,o,(function(e,t){var o=e.width(),i=e.height(),a=Math.min(n.pageX-r.offset().left,r.width()-o),s=Math.min(n.pageY-r.offset().top,r.height()-i);e.css("left",a+"px"),e.css("top",s+"px")}),(function(){}))}(t,a,{pageX:o,pageY:s}),!1;var o,s}};return(p=zn(e,"View",null,e.id,y,(function(e,r){t=e,n=r,m(),l=u,f=new(er())(t.get(),(function(){t.removeClass("large"),t.removeClass("medium"),t.removeClass("small"),t.removeClass("xsmall"),t.removeClass("xxsmall"),m(),u!==l&&(l=u,a&&a.trigger(Be,l))}))}),(function(){f&&(f.detach(),f=null),o&&(o.destroy(),o=null),r&&(r.destroy(),r=null)}),!0)).getMediaElementContainer=function(){return t.find(".op-media-element-container").get()},p.setApi=function(e){(a=e).getContainerElement=function(){return t.get()},a.getContainerId=function(){return t.get().id},a.on(de,(function(n){r||(r=qn(t.find(".op-ui"),e)),i||t.addClass("op-no-controls"),d(!1,!0)})),a.on(ye,(function(e){if(a){var t=a.getSources()||[];r&&t.length}})),a.on(ge,(function(e){n.destroy()})),a.on(Ee,(function(n){!r&&i&&(r=qn(t.find(".op-ui"),e))}));var i=a.getConfig()&&a.getConfig().controls;o=Hn(t.find(".op-ui"),e),r=qn(t.find(".op-ui"),e);var s=a.getConfig().aspectRatio;if(s&&2===s.split(":").length){var A=1*s.split(":")[0],c=1*s.split(":")[1]/A*100;t.find(".op-ratio").css("padding-bottom",c+"%")}a.showControls=function(e,n){e?(t.removeClass("op-no-controls"),d(!1,!n)):t.addClass("op-no-controls")}},p},vr=(gr={},Object.assign(gr,Nn),gr.create=function(e,t){var n=nt(e),o=hr(n),i=Nn.create(o.getMediaElementContainer(),t);return o.setApi(i),OvenPlayerConsole.log("[OvenPlayer] v."+r),i},gr)},53439:function(){!function(e){"use strict";if("window"in e&&"document"in e){document.querySelectorAll||(document.querySelectorAll=function(e){var t,n=document.createElement("style"),r=[];for(document.documentElement.firstChild.appendChild(n),document._qsa=[],n.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),n.parentNode.removeChild(n);document._qsa.length;)(t=document._qsa.shift()).style.removeAttribute("x-qsa"),r.push(t);return document._qsa=null,r}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},[["ELEMENT_NODE",1],["ATTRIBUTE_NODE",2],["TEXT_NODE",3],["CDATA_SECTION_NODE",4],["ENTITY_REFERENCE_NODE",5],["ENTITY_NODE",6],["PROCESSING_INSTRUCTION_NODE",7],["COMMENT_NODE",8],["DOCUMENT_NODE",9],["DOCUMENT_TYPE_NODE",10],["DOCUMENT_FRAGMENT_NODE",11],["NOTATION_NODE",12]].forEach((function(t){t[0]in e.Node||(e.Node[t[0]]=t[1])})),e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},[["INDEX_SIZE_ERR",1],["DOMSTRING_SIZE_ERR",2],["HIERARCHY_REQUEST_ERR",3],["WRONG_DOCUMENT_ERR",4],["INVALID_CHARACTER_ERR",5],["NO_DATA_ALLOWED_ERR",6],["NO_MODIFICATION_ALLOWED_ERR",7],["NOT_FOUND_ERR",8],["NOT_SUPPORTED_ERR",9],["INUSE_ATTRIBUTE_ERR",10],["INVALID_STATE_ERR",11],["SYNTAX_ERR",12],["INVALID_MODIFICATION_ERR",13],["NAMESPACE_ERR",14],["INVALID_ACCESS_ERR",15]].forEach((function(t){t[0]in e.DOMException||(e.DOMException[t[0]]=t[1])})),function(){function t(e,t,n){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var r=this,o=function(e){e._timeStamp=Date.now(),e._currentTarget=r,t.call(this,e),e._currentTarget=null};this["_"+e+t]=o,this.attachEvent("on"+e,o)}}function n(e,t,n){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var r=this["_"+e+t];r&&(this.detachEvent("on"+e,r),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return!1===this.returnValue}}}),[Window,HTMLDocument,Element].forEach((function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=n})))}(),function(){function t(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"CustomEvent"in e&&"function"==typeof e.CustomEvent||(t.prototype=e.Event.prototype,e.CustomEvent=t)}(),window.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&(e["e"+t+n]=n,e[t+n]=function(){var r=window.event;r.currentTarget=e,r.preventDefault=function(){r.returnValue=!1},r.stopPropagation=function(){r.cancelBubble=!0},r.target=r.srcElement,r.timeStamp=Date.now(),e["e"+t+n].call(this,r)},e.attachEvent("on"+t,e[t+n]))},window.removeEvent=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+n]),e[t+n]=null,e["e"+t+n]=null)},function(){function t(e,t){function n(e){return e.length?e.split(/\s+/g):[]}function r(e,t){var r=n(t),o=r.indexOf(e);return-1!==o&&r.splice(o,1),r.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return n(e[t]).length}},item:{value:function(r){var o=n(e[t]);return 0<=r&&r=0&&t.item(n)!==this;);return n>-1})),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),r=this;do{for(t=n.length;--t>=0&&n.item(t)!==r;);}while(t<0&&(r=r.parentElement));return r});var t={prepend:function(){var e=[].slice.call(arguments);e=o(e),this.insertBefore(e,this.firstChild)},append:function(){var e=[].slice.call(arguments);e=o(e),this.appendChild(e)}};r(e.Document||e.HTMLDocument,t),r(e.DocumentFragment,t),r(e.Element,t);var n={before:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.previousSibling;-1!==e.indexOf(n);)n=n.previousSibling;var r=o(e);t.insertBefore(r,n?n.nextSibling:t.firstChild)}},after:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var r=o(e);t.insertBefore(r,n)}},replaceWith:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var r=o(e);this.parentNode===t?t.replaceChild(r,this):t.insertBefore(r,n)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}};r(e.DocumentType,n),r(e.Element,n),r(e.CharacterData,n)}function r(e,t){e&&Object.keys(t).forEach((function(n){if(!(n in e)&&!(n in e.prototype))try{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t,n))}catch(r){e[n]=t[n]}}))}function o(e){var t=null;return e=e.map((function(e){return e instanceof Node?e:document.createTextNode(e)})),1===e.length?t=e[0]:(t=document.createDocumentFragment(),e.forEach((function(e){t.appendChild(e)}))),t}}(self)},88769:function(e,t){var n,r;r=this,void 0===(n=function(){return r.returnExportsGlobal=function(){"use strict";var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)};function t(){var e,t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(e=0,t=this.q.length;e
',n.appendChild(n.resizeSensor),"static"==function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(n,"position")&&(n.style.position="relative");var a=n.resizeSensor.childNodes[0],s=a.childNodes[0],A=n.resizeSensor.childNodes[1],c=function(){s.style.width="100000px",s.style.height="100000px",a.scrollLeft=1e5,a.scrollTop=1e5,A.scrollLeft=1e5,A.scrollTop=1e5};c();var u,l,f,p,d=!1,g=function(){n.resizedAttached&&(d&&(n.resizedAttached.call(),d=!1),e(g))};e(g);var h=function(){(f=n.offsetWidth)==u&&(p=n.offsetHeight)==l||(d=!0,u=f,l=p),c()},v=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};v(a,"scroll",h),v(A,"scroll",h)}var r=function(e,t){var r=Object.prototype.toString.call(e),o=this._isCollectionTyped="[object Array]"===r||"[object NodeList]"===r||"[object HTMLCollection]"===r||"undefined"!=typeof jQuery&&e instanceof window.jQuery||"undefined"!=typeof Elements&&e instanceof window.Elements;if(this._element=e,o)for(var i=0,a=e.length;i=0&&n<=b}}function J(e){return function(t){return null==t?void 0:t[e]}}var K=J("byteLength"),X=Z(K),q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,$=l?function(e){return h?h(e)&&!j(e):X(e)&&q.test(c.call(e))}:V(!1),ee=J("length");function te(e,t){t=function(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},_e=Ge(ze),He=Ge(be(ze)),Ve=oe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Ze=/(.)^/,Je={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ke=/\\|'|\r|\n|\u2028|\u2029/g;function Xe(e){return"\\"+Je[e]}var qe=/^\s*(\w|\$)+\s*$/,$e=0;function et(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Ie(e.prototype),a=e.apply(i,o);return E(a)?a:i}var tt=w((function(e,t){var n=tt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),s=0;s1)ot(s,t-1,n,r),o=r.length;else for(var A=0,c=s.length;A0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ut=tt(ct,2);function lt(e,t,n){t=Ne(t,n);for(var r,o=ne(e),i=0,a=o.length;i0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(A.call(r,a,s),H))>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i0?0:a-1;for(o||(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return t(e,Pe(n,o,4),r,i)}}var Et=wt(1),xt=wt(-1);function Bt(e,t,n){var r=[];return t=Ne(t,n),Ct(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function kt(e,t,n){t=Ne(t,n);for(var r=!rt(e)&&ne(e),o=(r||e).length,i=0;i=0}var Tt=w((function(e,t,n){var r,o;return P(t)?o=t:(t=Le(t),r=t.slice(0,-1),t=t[t.length-1]),bt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=Re(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function Lt(e,t){return bt(e,Qe(t))}function Rt(e,t,n){var r,o,i=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=a(e[0])&&null!=e)for(var A=0,c=(e=rt(e)?e:Ce(e)).length;Ai&&(i=r);else t=Ne(t,n),Ct(e,(function(e,n,r){((o=t(e,n,r))>s||o===-1/0&&i===-1/0)&&(i=e,s=o)}));return i}function Ot(e,t,n){if(null==t||n)return rt(e)||(e=Ce(e)),e[je(e.length-1)];var r=rt(e)?Se(e):Ce(e),o=ee(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a1&&(r=Pe(r,t[1])),t=Ae(e)):(r=Nt,t=ot(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o1&&(n=t[1])):(t=bt(ot(t,!1,!1),String),r=function(e,n){return!St(t,n)}),Wt(e,r,n)}));function Yt(e,t,n){return A.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Gt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Yt(e,e.length-t)}function zt(e,t,n){return A.call(e,null==t||n?1:t)}var _t=w((function(e,t){return t=ot(t,!0,!0),Bt(e,(function(e){return!St(t,e)}))})),Ht=w((function(e,t){return _t(e,t)}));function Vt(e,t,n,r){B(t)||(r=n,n=t,t=!1),null!=n&&(n=Ne(n,r));for(var o=[],i=[],a=0,s=ee(e);at?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(A,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c},debounce:function(e,t,n){var r,o,i,a,s,A=function(){var c=Ye()-o;t>c?r=setTimeout(A,t-c):(r=null,n||(a=e.apply(s,i)),r||(i=s=null))},c=w((function(c){return s=this,i=c,o=Ye(),r||(r=setTimeout(A,t),n&&(a=e.apply(s,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=s=null},c},wrap:function(e,t){return tt(t,e)},negate:At,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:ct,once:ut,findKey:lt,findIndex:pt,findLastIndex:dt,sortedIndex:gt,indexOf:vt,lastIndexOf:mt,find:yt,detect:yt,findWhere:function(e,t){return yt(e,Me(t))},each:Ct,forEach:Ct,map:bt,collect:bt,reduce:Et,foldl:Et,inject:Et,reduceRight:xt,foldr:xt,filter:Bt,select:Bt,reject:function(e,t,n){return Bt(e,At(Ne(t)),n)},every:kt,all:kt,some:It,any:It,contains:St,includes:St,include:St,invoke:Tt,pluck:Lt,where:function(e,t){return Bt(e,Me(t))},max:Rt,min:function(e,t,n){var r,o,i=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=a(e[0])&&null!=e)for(var A=0,c=(e=rt(e)?e:Ce(e)).length;Ar||void 0===n)return 1;if(ndiv{position:absolute !important;width:100% !important;height:100% !important}.op-ads>div iframe{pointer-events:auto}.op-ads video.op-ads-vast-video{background-color:#000;position:absolute;width:100%;height:100%;left:0;top:0;z-index:1}.op-ads .op-ads-button{bottom:36px;cursor:default;margin-right:4px;pointer-events:auto;position:absolute;right:0;z-index:1;width:auto !important;height:auto !important;border-radius:4px;background-color:rgba(18,18,28,0.7);min-width:155px;display:none}.op-ads .op-ads-button .op-ads-textview{color:#e6e6e6;font-weight:normal;font-size:11px;padding:6px 12px;text-align:center;display:inline-block;width:100%;vertical-align:middle}.op-ads .op-ads-button .videoAdUiAction{padding:8px 24px;cursor:pointer;direction:ltr;font-weight:normal;font-size:20px;border:1px solid rgba(255,255,255,0.5)}.op-ads .op-ads-button .videoAdUiAction:hover{border-radius:4px;border:1px solid #fff}.op-ads .op-ads-button .videoAdUiAction i{display:inline-block;width:auto}.op-button{display:inline-block;border:none;background:transparent;padding:0;color:inherit;text-align:inherit;overflow:hidden;font-weight:100;text-indent:0 !important}.op-button:focus,.op-button{outline:0}i.op-con{font-family:"op-icons","op-seek-icons";font-style:normal;font-weight:normal;speak:none;font-size:inherit;width:auto;font-size:30px;line-height:30px;display:block;text-decoration:inherit;text-align:center;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:pointer}i.op-con.disable{color:#4f4f4f}i.op-con.op-close-icon::before{content:"\\e900"}i.op-con.op-pause-big::before{content:"\\e911"}i.op-con.op-fullscreen-compress::before{content:"\\e901"}i.op-con.op-fullscreen-expand::before{content:"\\e902"}i.op-con.op-arrow-left::before{content:"\\e903"}i.op-con.op-arrow-right::before{content:"\\e909"}i.op-con.op-empty-video::before{content:"\\e904"}i.op-con.op-play::before{content:"\\e906"}i.op-con.op-replay::before{content:"\\e908"}i.op-con.op-seek-back::before{content:"\\e920"}i.op-con.op-seek-forward::before{content:"\\e921"}i.op-con.op-playlist-icon::before{content:"\\e907"}i.op-con.op-replay-big::before{content:"\\e908"}i.op-con.op-setting::before{content:"\\e90A"}i.op-con.op-pause::before{content:"\\e90C"}i.op-con.op-volume-small{display:none;margin-top:-1px}i.op-con.op-volume-small::before{content:"\\e90D"}i.op-con.op-volume-mute{display:none}i.op-con.op-volume-mute::before{content:"\\e90E"}i.op-con.op-volume-max::before{content:"\\e90F"}i.op-con.op-play-big::before{content:"\\e910"}i.op-con.op-warning::before{content:"\\e912"}.op-badge{display:inline-block;padding:.75em .714em .714em .68em;font-size:1em;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.286em;background-color:#12121c}.op-playlist{position:absolute;width:100%;height:100%;left:0;top:0;padding:2.857em;background:#000;z-index:6}.op-playlist .op-badge{position:absolute;top:.857em;right:.857em;opacity:.7}.op-playlist .btn-left{float:left;font-size:2.857em}.op-playlist .btn-right{float:right;font-size:2.857em}.op-playlist .op-playlist-header{font-size:2.857em;font-weight:bold}.op-playlist .op-playlist-header:after{display:block;content:\'\';clear:both}.op-playlist .op-playlist-header .op-con.op-close-icon{float:right}.op-playlist .op-playlist-body{height:100%;overflow:hidden;position:relative}.op-playlist .op-playlist-body .op-playlist-body-arrows{margin-top:-15px;position:absolute;top:50%;height:30px;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;left:0}.op-playlist .op-playlist-body .op-playlist-body-container{width:100%;height:100%;position:relative;margin-right:auto;margin-left:auto;max-width:992px}.op-playlist .op-playlist-body .op-playlist-body-container .op-playlist-body-center{margin:0;position:absolute;top:50%;padding-right:3em;padding-left:3em;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.op-playlist .op-playlist-body .op-playlist-body-row{margin-right:-15px;margin-left:-15px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card{padding-right:15px;padding-left:15px;margin:15px 0;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%;cursor:pointer}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active{color:#50e3c2;color:var(--op-accent-color)}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active .op-playlist-card-thumbnail{border-color:#50e3c2;border-color:var(--op-accent-color)}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:.214em solid transparent;background-color:#000}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail img{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty{background-color:#bababa}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty>i{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:#fff !important;font-size:1.6em !important}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail::before{padding-top:56.25%;display:block;content:""}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-title{margin-top:.857em;font-size:1.429em;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.op-message-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:4}.op-message-box .op-message-container{position:absolute;top:45%;margin-top:-35px;width:100%;padding:0 12px;text-align:center}.op-message-box .op-message-container .op-message-text{display:inline-block;background-color:rgba(18,18,28,0.3);padding:.8em 1.2em;word-wrap:break-word;max-width:80%;border-radius:4px;cursor:pointer}.op-message-box .op-message-container .op-message-text .op-message-description{font-size:12px;margin-top:12px;color:#999}.op-message-box .op-message-container .op-message-icon{display:inline-block;margin-top:12px;width:100%}.op-message-box .op-message-container .op-message-icon i.op-con{cursor:pointer;font-size:80px;width:80px;height:80px;line-height:80px;display:inline-block;text-shadow:2px 2px 7px rgba(0,0,0,0.8),0 0 1px #000}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-text{cursor:default}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-icon i.op-con{cursor:default}.op-bigbutton-container{cursor:pointer;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);text-align:center;z-index:5}.op-bigbutton-container .op-bigbutton{width:80px;height:80px;display:block;font-size:80px;line-height:80px;text-shadow:2px 2px 7px rgba(0,0,0,0.8),0 0 1px #000}.op-thumbnail-container{position:absolute;width:100%;height:100%;top:0;left:0;z-index:2;pointer-events:none}.op-thumbnail-container .op-thumbnail-wrapper{position:absolute;left:0;top:0;width:100%;height:100%}.op-thumbnail-container .op-thumbnail-wrapper img{width:100%;height:100%}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header{position:absolute;left:1rem;top:1rem;padding:0 .5rem;font-size:2.857em;font-weight:bold;line-height:1.4;text-shadow:2px 2px 7px rgba(0,0,0,0.8),0 0 1px #000}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header:after{display:block;content:\'\';clear:both}.op-watermark-container{position:absolute;width:100%;height:100%;top:0;left:0;z-index:3}.op-watermark-container .op-watermark{position:absolute;display:inline-block}.op-watermark-container .op-watermark img{width:100%;height:auto}.op-watermark-container .op-watermark .op-watermark-text{font-size:14px}.op-setting-panel{position:absolute;bottom:55px;right:12px;overflow-y:auto;max-height:100%;width:260px;user-select:none;background-color:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);z-index:8}.op-setting-panel.background{display:none}.op-setting-panel .op-setting-title,.op-setting-panel .op-setting-item{width:100%;height:38px;line-height:38px;cursor:pointer;outline:none;text-align:left}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-title{padding-left:12px;font-weight:bold}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-previcon{padding:0 0 0 12px;margin-right:-6px}.op-setting-panel .op-setting-item-container .op-setting-item:hover{background-color:rgba(255,255,255,0.1)}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-title{padding-left:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-nexticon{float:right;padding-right:12px;margin-left:-6px}.op-setting-panel .op-setting-item-container .op-setting-item span.op-setting-item-value{float:right;padding-right:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked{padding-left:12px;visibility:hidden}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked.op-show{visibility:visible}.op-controls-container{display:none}.op-controls-container .op-bottom-panel{position:absolute;left:0px;bottom:0px;width:100%;z-index:5;-webkit-animation-name:op-slideInUp;animation-name:op-slideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.op-controls-container .op-bottom-panel .op-gradient-bottom{position:absolute;width:100%;height:100%;background-color:rgba(18,18,18,0.5);pointer-events:none}.op-controls-container .op-bottom-panel .op-progressbar-container{display:block;position:relative;width:100%;height:4px;bottom:50px}.op-controls-container .op-bottom-panel .op-progressbar-container.op-progressbar-container-disabled{cursor:default}.op-controls-container .op-bottom-panel .op-progressbar-container .op-progressbar-padding{position:absolute;width:100%;height:15px;bottom:-5px;cursor:pointer}.op-controls-container .op-bottom-panel .op-controls{position:relative;width:100%;height:50px;text-align:left;overflow:hidden}.op-controls-container .op-bottom-panel .op-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-setting-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-playlist-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-navigators{float:left;height:30px;line-height:30px}.op-controls-container .op-bottom-panel .op-controls .op-left-controls{position:absolute;top:0;left:0;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-left-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-right-controls{position:absolute;top:0;right:0;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-right-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons{position:relative;display:inline-block;margin-left:14px;overflow:hidden;font-weight:100;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button{margin-right:6px;position:relative;text-align:center;color:#fff}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon{position:relative}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon.reverse:after{content:\'\\e900\'}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon:after{font-family:\'frameIcon\' !important;speak:none;content:\'\\e901\';font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;font-size:2.4em;left:0;line-height:30px;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon .btn-text{font-weight:bold;font-size:.8em;line-height:30px;height:30px}.op-progressbar{position:absolute;bottom:0;left:0;width:100%;height:100%;outline:none;margin-top:10px}.op-progressbar .op-play-background-color{background-color:#50e3c2;background-color:var(--op-accent-color)}.op-progressbar .op-progress-list{cursor:pointer;position:relative;height:100%;background:rgba(255,255,255,0.2)}.op-progressbar .op-progress-list .op-load-progress,.op-progressbar .op-progress-list .op-play-progress,.op-progressbar .op-progress-list .op-hover-progress{position:absolute;left:0;bottom:0;width:100%;height:100%}.op-progressbar .op-progress-list .op-play-progress{width:0}.op-progressbar .op-progress-list .op-load-progress{width:0;background-color:rgba(255,255,255,0.5)}.op-progressbar .op-progress-list .op-hover-progress{left:0;width:0;background-color:rgba(255,255,255,0.6)}.op-progressbar .op-progressbar-knob-container{position:absolute;top:-5px;left:0}.op-progressbar .op-progressbar-knob-container .op-progressbar-knob{width:14px;height:14px;border-radius:7px;cursor:pointer}.op-progressbar .op-progressbar-time{display:none;position:absolute;bottom:15px;left:auto;width:auto;background-color:rgba(28,28,28,0.9);border-radius:2px;padding:5px 9px;font-size:.8em;line-height:15px;user-select:none;white-space:nowrap;opacity:.7}.op-progressbar-hover .op-progressbar-time{display:inline-block}.op-on-error .op-progressbar-time{display:none}.op-progressbar-section-start,.op-progressbar-section-end{display:none;position:absolute;width:3px;height:14px;bottom:-5px;background-color:#50e3c2;background-color:var(--op-accent-color)}.op-progressbar-preview{position:absolute;display:none;bottom:50px;border:2px solid #fff;border-radius:2px;background-color:#000;z-index:9}.op-play-controller{margin-left:15px}.op-seek-button{position:relative;top:0px}.op-seek-button.op-seek-button-back{margin-left:12px}.op-seek-button.op-seek-button-forward{margin-left:6px}.op-seek-button i{padding-top:1px;font-size:26px}.op-seek-button span{position:absolute;top:10.5px;left:0;right:0;text-align:center;font-size:10px;line-height:10px;cursor:pointer}.op-volume-controller{display:inline-block;position:relative;margin-left:12px}.op-volume-controller:after{content:\'\';clear:both}.op-volume-controller .op-volume-button{float:left}@-webkit-keyframes slide{100%{left:0}}@keyframes slide{100%{left:0}}.op-volume-controller .op-volume-slider-container{float:left;opacity:0;position:relative;width:0px;margin-right:0;line-height:30px;height:30px;cursor:pointer;user-select:none;outline:none}.op-volume-controller .op-volume-slider-container.active{width:70px;opacity:1;margin-left:8px;-moz-transition:opacity .4s cubic-bezier(0, 0, .2, 1);-webkit-transition:opacity .4s cubic-bezier(0, 0, .2, 1);transition:opacity .4s cubic-bezier(0, 0, .2, 1)}.op-volume-controller .op-volume-slider-container .op-volume-silder{height:100%;position:relative}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg,.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{position:absolute;display:block;left:0;top:50%;height:4px;margin-top:-2px;border-radius:10px}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg{width:100%;background:#fff}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{width:100%;background:#50e3c2;background:var(--op-accent-color);border-radius:10px 0 0 10px}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-handle{position:absolute;top:50%;left:30px;width:12px;height:12px;border-radius:10px;margin-top:-6px;background:#fff}.op-time-display{float:left;position:relative;margin-left:14px;height:30px;line-height:30px;white-space:nowrap;vertical-align:top;font-size:14px;user-select:none}.op-time-display .op-live-badge{opacity:1;width:auto;display:inline-block}.op-time-display .op-live-badge:before{background:#ff0000;display:inline-block;position:relative;top:-2px;width:6px;height:6px;margin-right:5px;content:\'\';border-radius:6px}.op-time-display .op-live-badge.op-live-badge-delayed:before{background:#fff}.op-time-display .op-live-badge.op-live-badge-none:before{display:none}.op-time-display .op-live-badge .op-live-badge-lowlatency{display:inline-block;margin-right:5px}.op-time-display .op-live-badge .op-live-text{cursor:pointer}.op-context-panel{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;overflow:hidden;width:200px;padding:6px 0;z-index:8;background:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);font-weight:lighter;user-select:none}.op-context-panel:before,.op-context-panel:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel *,.op-context-panel *:before,.op-context-panel *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel .op-context-item{width:100%;height:38px;padding-left:12px;line-height:38px;cursor:pointer;outline:none;font-size:.8em;font-weight:lighter;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.op-context-panel .op-context-item:hover{background-color:rgba(255,255,255,0.1)}.op-fullscreen-button{position:relative;margin-right:15px}.op-fullscreen-button .op-fullscreen-compress{display:none}.op-spinner-container{position:absolute;top:50%;width:64px;left:50%;margin-left:-32px;margin-top:-32px;z-index:7;display:none}.op-spinner-container .op-spinner{display:inline-block;position:relative;width:64px;height:64px;border:4px solid transparent;border-top:4px solid #50e3c2;border-top:4px solid var(--op-accent-color);border-radius:50%;animation:spin 1.2s cubic-bezier(.5, 0, .5, 1) infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.op-caption-viewer .op-caption-text-container{position:absolute;bottom:60px;width:100%;padding:0 12px;text-align:center;-moz-transition:bottom .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:bottom .25s cubic-bezier(0, 0, .2, 1);transition:bottom .25s cubic-bezier(0, 0, .2, 1)}.op-caption-viewer .op-caption-text-container .op-caption-text{color:#fff;font-size:1em;line-height:1.2em;text-shadow:2px 2px 2px gray;padding:.1em .3em;user-select:none;word-break:break-word;white-space:pre-line;border:none;background:none}.op-caption-button{width:36px}.op-caption-button>i{font-size:18px;-moz-transition:color .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:color .25s cubic-bezier(0, 0, .2, 1);transition:color .25s cubic-bezier(0, 0, .2, 1)}.op-caption-active .op-caption-button>i{color:#F36446}.op-wrapper.ovenplayer.large{font-size:14px}.op-wrapper.ovenplayer.large .op-caption-text{font-size:2em;line-height:2em}.op-wrapper.ovenplayer.medium{font-size:12px}.op-wrapper.ovenplayer.medium .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small{font-size:10px}.op-wrapper.ovenplayer.small .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small .op-playlist{padding:1rem}.op-wrapper.ovenplayer.small .op-playlist .op-playlist-card{margin:5px 0}.op-wrapper.ovenplayer.xsmall{font-size:10px}.op-wrapper.ovenplayer.xsmall .op-bigbutton-container .op-bigbutton{width:60px;height:60px;font-size:60px;line-height:60px}.op-wrapper.ovenplayer.xsmall .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.xsmall .op-playlist{padding:1rem}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-header{font-size:2em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card{margin:5px 0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;padding:0 6em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card .op-playlist-card-title{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container{top:50%;font-weight:bold}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon .op-con{font-size:40px;width:40px;height:40px;line-height:40px}.op-wrapper.ovenplayer.xsmall .op-ads-button{bottom:22px}.op-wrapper.ovenplayer.xsmall .op-ads-button .videoAdUiAction{padding:4px;font-size:14px}.op-wrapper.ovenplayer.xxsmall .op-left-controls{max-width:240px;overflow:hidden}.op-wrapper.ovenplayer.xxsmall .op-live-badge-lowlatency{max-width:75px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel{height:34px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls{top:4px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-left-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-right-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-ads{top:0;bottom:0}.op-wrapper.ovenplayer.linear-ad .op-button i.op-con{width:24px;height:24px;font-size:24px}.op-wrapper.ovenplayer.linear-ad .op-controls-container .op-bottom-panel .op-progressbar-container{bottom:50px}@keyframes fade{from{opacity:.3}55%{opacity:1}75%{opacity:1}to{opacity:.3}}@-webkit-keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.5, .5, .5);transform:scale3d(.5, .5, .5)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}@keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.3, .3, .3);transform:scale3d(.3, .3, .3)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}.op-player .bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.op-player .fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}.op-player .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media (prefers-reduced-motion){.op-player .animated{-webkit-animation:unset !important;animation:unset !important;-webkit-transition:none !important;transition:none !important}}@media only screen and (max-width:399px){.op-seek-button{display:none !important}}',"",{version:3,sources:["webpack://./src/stylesheet/ovenplayer.less"],names:[],mappings:"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",sourcesContent:['@charset "UTF-8";\n\n/**\n * @brief Animation\n * */\n\n@keyframes op-spinner {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@-webkit-keyframes op-slideOutDown {\n from {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n -webkit-transform: translate3d(0, 100%, 0);\n transform: translate3d(0, 100%, 0);\n }\n}\n\n@keyframes op-slideOutDown {\n from {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n -webkit-transform: translate3d(0, 100%, 0);\n transform: translate3d(0, 100%, 0);\n }\n}\n\n@-webkit-keyframes op-slideInUp {\n from {\n -webkit-transform: translate3d(0, 100%, 0);\n transform: translate3d(0, 100%, 0);\n opacity: 1;\n }\n\n to {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n\n@keyframes op-slideInUp {\n from {\n -webkit-transform: translate3d(0, 100%, 0);\n transform: translate3d(0, 100%, 0);\n opacity: 1;\n }\n\n to {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n\n@font-face {\n font-family: "frameIcon";\n src: url("../assets/images/ic-player-frame-jump.ttf?rxg7gj") format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n\n@font-face {\n font-family: \'op-icons\';\n src: url(\'../assets/fonts/fontello.ttf?13010392\') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n\n@font-face {\n font-family: \'op-seek-icons\';\n src: url(\'../assets/fonts/seek-icons.ttf?13010392\') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n\n/**\n * @brief common style\n * */\n\n:root {\n --op-accent-color: #50e3c2;\n}\n\n.op-fullscreen-helper {\n overflow: hidden;\n // for preventing scroll on iOS\n position: fixed;\n}\n\n.op-wrapper.ovenplayer {\n position: relative;\n max-height: 100%;\n\n overflow: hidden;\n zoom: 1 !important;\n width: 100%;\n display: block;\n font-family: Helvetica, Arial, sans-serif;\n background-color: #000;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n font-size: 14px;\n font-weight: 100;\n outline: 0;\n\n -webkit-touch-callout: none;\n user-select: none;\n\n * {\n box-sizing: inherit;\n }\n\n object {\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n &:before,\n &:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n & *,\n & *:before,\n & *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n &.op-fullscreen {\n width: 100vw !important;\n height: 100vh !important;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n margin: 0;\n position: fixed;\n\n .op-watermark-container,\n .op-thumbnail-container {\n width: 100vw;\n max-width: calc(100vh * 16 / 9);\n height: calc(100vw * 9 / 16);\n max-height: 100vh;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n }\n\n &.op-autohide {\n cursor: none;\n\n .op-bottom-panel {\n\n -webkit-animation-name: op-slideOutDown;\n animation-name: op-slideOutDown;\n\n -webkit-animation-duration: 0.2s;\n animation-duration: 0.2s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n }\n\n .op-progressbar-container,\n .op-controls .op-button {\n cursor: none;\n }\n\n .op-caption-text-container {\n bottom: 25px;\n }\n }\n\n &.op-no-controls {\n\n .op-controls-container {\n display: none !important;\n }\n }\n\n .op-ratio {\n padding-bottom: 56.25%;\n /*16:9*/\n }\n\n & ::-webkit-scrollbar {\n width: 5px;\n height: 8px;\n }\n\n & ::-webkit-scrollbar-button:start:decrement,\n ::-webkit-scrollbar-button:end:increment {\n display: block;\n height: 3px;\n background: #2f2f3e;\n }\n\n & ::-webkit-scrollbar-track {\n background: #2f2f3e;\n -webkit-border-radius: 10px;\n border-radius: 10px;\n }\n\n & ::-webkit-scrollbar-thumb {\n height: 50px;\n width: 50px;\n background: #606071;\n -webkit-border-radius: 8px;\n border-radius: 8px;\n }\n\n .op-clear {\n color: inherit;\n background-color: transparent;\n padding: 0;\n margin: 0;\n float: none;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 1em;\n line-height: 1em;\n list-style: none;\n text-transform: none;\n vertical-align: baseline;\n border: 0;\n font-variant: inherit;\n font-stretch: inherit;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n}\n\n.op-player {\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n\n\n\n .op-core-ui-wrapper {\n position: relative;\n height: 100%;\n }\n\n .op-media-element-container {\n /* display: block;\n height: 100%;\n width: auto;\n position : relative;*/\n\n\n position: absolute;\n left: 0px;\n top: 0px;\n width: 100%;\n height: 100%;\n transform: scale(var(--mediaZoom));\n\n video {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n }\n\n object {\n width: 100%;\n height: 100%;\n }\n }\n\n .op-ui {\n\n /*position : absolute;\n bottom : 0px;\n left : 0px;\n width: 100%;\n height: 100%;*/\n .op-controls-container {}\n\n .op-helpers-container {}\n }\n}\n\n.op-ads {\n position: absolute;\n height: 100%;\n width: 100%;\n padding-bottom: 34px;\n //pointer-events: none;\n top: 0;\n\n &>div {\n position: absolute !important;\n width: 100% !important;\n height: 100% !important;\n\n iframe {\n pointer-events: auto;\n }\n }\n\n video.op-ads-vast-video {\n background-color: rgb(0, 0, 0);\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 1;\n }\n\n .op-ads-button {\n bottom: 36px;\n cursor: default;\n margin-right: 4px;\n pointer-events: auto;\n position: absolute;\n right: 0;\n z-index: 1;\n width: auto !important;\n height: auto !important;\n border-radius: 4px;\n background-color: rgba(18, 18, 28, 0.7);\n min-width: 155px;\n display: none;\n\n .op-ads-textview {\n color: #e6e6e6;\n //font-family: arial,sans-serif;\n font-weight: normal;\n font-size: 11px;\n padding: 6px 12px;\n text-align: center;\n display: inline-block;\n width: 100%;\n vertical-align: middle;\n }\n\n .videoAdUiAction {\n padding: 8px 24px;\n cursor: pointer;\n direction: ltr;\n font-weight: normal;\n font-size: 20px;\n border: 1px solid rgba(255, 255, 255, 0.5);\n\n &:hover {\n border-radius: 4px;\n border: 1px solid rgba(255, 255, 255, 1);\n }\n\n i {\n display: inline-block;\n width: auto;\n }\n }\n }\n\n}\n\n/**\n * @brief common components\n * */\n\n.op-button {\n display: inline-block;\n border: none;\n background: transparent;\n padding: 0;\n color: inherit;\n text-align: inherit;\n overflow: hidden;\n font-weight: 100;\n text-indent: 0 !important;\n\n &:focus,\n & {\n outline: 0;\n }\n}\n\ni.op-con {\n font-family: "op-icons", "op-seek-icons";\n font-style: normal;\n font-weight: normal;\n speak: none;\n\n font-size: inherit;\n width: auto;\n font-size: 30px;\n line-height: 30px;\n\n display: block;\n text-decoration: inherit;\n text-align: center;\n\n /* For safety - reset parent styles, that can break glyph codes*/\n font-variant: normal;\n text-transform: none;\n\n /* Font smoothing. That was taken from TWBS */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n cursor: pointer;\n\n &.disable {\n color: #4f4f4f;\n }\n\n &.op-close-icon {\n &::before {\n content: "\\e900";\n }\n }\n\n &.op-pause-big {\n &::before {\n content: "\\e911";\n }\n }\n\n &.op-fullscreen-compress {\n &::before {\n content: "\\e901";\n }\n }\n\n &.op-fullscreen-expand {\n &::before {\n content: "\\e902";\n }\n }\n\n &.op-arrow-left {\n &::before {\n content: "\\e903";\n }\n }\n\n &.op-arrow-right {\n &::before {\n content: "\\e909";\n }\n }\n\n &.op-empty-video {\n &::before {\n content: "\\e904";\n }\n }\n\n &.op-play {\n &::before {\n content: "\\e906";\n }\n }\n\n &.op-replay {\n &::before {\n content: "\\e908";\n }\n }\n\n &.op-seek-back {\n &::before {\n content: "\\e920";\n }\n }\n\n &.op-seek-forward {\n &::before {\n content: "\\e921";\n }\n }\n\n &.op-playlist-icon {\n &::before {\n content: "\\e907";\n }\n }\n\n &.op-replay-big {\n &::before {\n content: "\\e908";\n }\n }\n\n &.op-setting {\n &::before {\n content: "\\e90A";\n }\n }\n\n &.op-pause {\n &::before {\n content: "\\e90C";\n }\n }\n\n &.op-volume-small {\n display: none;\n margin-top: -1px;\n\n &::before {\n content: "\\e90D";\n }\n }\n\n &.op-volume-mute {\n display: none;\n\n &::before {\n content: "\\e90E";\n }\n }\n\n &.op-volume-max {\n &::before {\n content: "\\e90F";\n }\n }\n\n &.op-play-big {\n &::before {\n content: "\\e910";\n }\n }\n\n &.op-warning {\n &::before {\n content: "\\e912";\n }\n }\n}\n\n.op-badge {\n display: inline-block;\n padding: .75em .714em .714em .680em;\n font-size: 1em;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: 0.286em;\n background-color: #12121c;\n}\n\n.op-playlist {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n padding: 2.857em;\n background: #000;\n z-index: 6;\n\n .op-badge {\n position: absolute;\n top: 0.857em;\n right: 0.857em;\n opacity: 0.7;\n }\n\n .btn-left {\n float: left;\n font-size: 2.857em;\n }\n\n .btn-right {\n float: right;\n font-size: 2.857em;\n }\n\n .op-playlist-header {\n font-size: 2.857em;\n font-weight: bold;\n\n &:after {\n display: block;\n content: \'\';\n clear: both;\n }\n\n .op-con.op-close-icon {\n float: right;\n }\n }\n\n .op-playlist-body {\n height: 100%;\n overflow: hidden;\n position: relative;\n\n .op-playlist-body-arrows {\n margin-top: -15px;\n position: absolute;\n top: 50%;\n height: 30px;\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n left: 0;\n }\n\n .op-playlist-body-container {\n width: 100%;\n height: 100%;\n position: relative;\n margin-right: auto;\n margin-left: auto;\n max-width: 992px;\n\n .op-playlist-body-center {\n margin: 0;\n position: absolute;\n top: 50%;\n padding-right: 3em;\n padding-left: 3em;\n -ms-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n }\n }\n\n .op-playlist-body-row {\n margin-right: -15px;\n margin-left: -15px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n\n\n .op-playlist-card {\n padding-right: 15px;\n padding-left: 15px;\n margin: 15px 0;\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%;\n cursor: pointer;\n\n &.active {\n color: #50e3c2;\n color: var(--op-accent-color);\n\n .op-playlist-card-thumbnail {\n border-color: #50e3c2;\n border-color: var(--op-accent-color);\n }\n }\n\n .op-playlist-card-thumbnail {\n position: relative;\n display: block;\n width: 100%;\n padding: 0;\n overflow: hidden;\n border: 0.214em solid transparent;\n background-color: #000;\n\n img {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0;\n }\n\n &.empty {\n background-color: #bababa;\n\n &>i {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: #fff !important;\n font-size: 1.6em !important;\n }\n }\n\n &::before {\n padding-top: 56.25%;\n display: block;\n content: "";\n }\n }\n\n .op-playlist-card-title {\n margin-top: 0.857em;\n font-size: 1.429em;\n padding: 2px 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n }\n }\n\n }\n}\n\n\n/**\n * @brief Message Box\n * */\n\n.op-message-box {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 4;\n\n .op-message-container {\n position: absolute;\n top: 45%;\n margin-top: -35px;\n width: 100%;\n padding: 0 12px;\n text-align: center;\n\n .op-message-text {\n display: inline-block;\n background-color: rgba(18, 18, 28, .3);\n padding: 0.8em 1.2em;\n word-wrap: break-word;\n max-width: 80%;\n border-radius: 4px;\n cursor: pointer;\n\n .op-message-description {\n font-size: 12px;\n margin-top: 12px;\n color: #999;\n }\n }\n\n\n .op-message-icon {\n display: inline-block;\n margin-top: 12px;\n width: 100%;\n\n i.op-con {\n cursor: pointer;\n font-size: 80px;\n width: 80px;\n height: 80px;\n line-height: 80px;\n display: inline-block;\n text-shadow: 2px 2px 7px rgb(0 0 0 / 80%), 0px 0px 1px rgb(0 0 0);\n }\n }\n\n /*.op-message-button{\n display: inline-block;\n padding : 1em;\n margin-left : 0.4em;\n background-color: rgba(28,28,28,.4);\n cursor : pointer;\n }*/\n }\n}\n\n.op-message-box.op-message-box-default-cursor .op-message-container .op-message-text {\n cursor: default;\n}\n\n.op-message-box.op-message-box-default-cursor .op-message-container .op-message-icon i.op-con {\n cursor: default;\n}\n\n/**\n * @brief Big button\n * */\n\n.op-bigbutton-container {\n cursor: pointer;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n z-index: 5;\n\n .op-bigbutton {\n width: 80px;\n height: 80px;\n display: block;\n font-size: 80px;\n line-height: 80px;\n text-shadow: 2px 2px 7px rgb(0 0 0 / 80%), 0px 0px 1px rgb(0 0 0);\n }\n}\n\n/**\n * @brief Thumbnail\n * */\n\n.op-thumbnail-container {\n position: absolute;\n width: 100%;\n height: 100%;\n //padding-bottom: 56.25%;\n top: 0;\n left: 0;\n //transform: translate(-50%, -50%);\n z-index: 2;\n pointer-events: none;\n\n .op-thumbnail-wrapper {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n\n img {\n width: 100%;\n height: 100%;\n }\n\n .op-thumbnail-header {\n position: absolute;\n left: 1rem;\n top: 1rem;\n padding: 0 0.5rem;\n font-size: 2.857em;\n font-weight: bold;\n line-height: 1.4;\n text-shadow: 2px 2px 7px rgb(0 0 0 / 80%), 0px 0px 1px rgb(0 0 0);\n\n &:after {\n display: block;\n content: \'\';\n clear: both;\n }\n }\n }\n}\n\n/**\n * @brief WaterMark\n * */\n\n.op-watermark-container {\n position: absolute;\n width: 100%;\n height: 100%;\n //padding-bottom: 56.25%;\n top: 0;\n left: 0;\n //transform: translate(-50%, -50%);\n z-index: 3;\n\n .op-watermark {\n position: absolute;\n display: inline-block;\n\n img {\n width: 100%;\n height: auto;\n }\n\n .op-watermark-text {\n font-size: 14px;\n }\n }\n}\n\n/**\n * @brief Setting panel\n * */\n\n.op-setting-panel {\n position: absolute;\n bottom: 55px;\n right: 12px;\n overflow-y: auto;\n max-height: 100%;\n width: 260px;\n //font-size: 0.8em;\n user-select: none;\n background-color: rgba(28, 28, 28, .9);\n text-shadow: 0 0 2px rgba(0, 0, 0, .5);\n z-index: 8;\n\n &.background {\n //opacity: 0;\n //background-color: rgba(28,28,28,.0);\n display: none;\n }\n\n .op-setting-title,\n .op-setting-item {\n width: 100%;\n height: 38px;\n line-height: 38px;\n cursor: pointer;\n outline: none;\n text-align: left;\n }\n\n .op-setting-title-container {\n .op-setting-title {\n .op-setting-title-title {\n padding-left: 12px;\n font-weight: bold;\n //font-size: 0.9rem;\n }\n\n .op-setting-title-previcon {\n padding: 0 0 0 12px;\n margin-right: -6px;\n }\n\n }\n }\n\n .op-setting-item-container {\n .op-setting-item {\n &:hover {\n background-color: rgba(255, 255, 255, .1);\n }\n\n .op-setting-item-title {\n padding-left: 12px;\n }\n\n .op-setting-item-nexticon {\n float: right;\n padding-right: 12px;\n margin-left: -6px;\n }\n\n span.op-setting-item-value {\n float: right;\n padding-right: 12px;\n }\n\n .op-setting-item-checked {\n padding-left: 12px;\n visibility: hidden;\n }\n\n .op-setting-item-checked.op-show {\n visibility: visible;\n }\n }\n }\n}\n\n\n\n/**\n * @brief Controls (container)\n * */\n\n.op-controls-container {\n display: none;\n\n .op-bottom-panel {\n position: absolute;\n left: 0px;\n bottom: 0px;\n width: 100%;\n z-index: 5;\n\n .op-gradient-bottom {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgba(18, 18, 18, 0.5);\n pointer-events: none;\n /*-moz-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);\n -webkit-transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);\n transition: opacity .25s cubic-bezier(0.0,0.0,0.2,1);*/\n }\n\n -webkit-animation-name: op-slideInUp;\n animation-name: op-slideInUp;\n\n -webkit-animation-duration: 0.5s;\n animation-duration: 0.5s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n\n .op-progressbar-container {\n display: block;\n position: relative;\n width: 100%;\n height: 4px;\n bottom: 50px;\n\n &.op-progressbar-container-disabled {\n cursor: default;\n }\n\n .op-progressbar-padding {\n position: absolute;\n width: 100%;\n height: 15px;\n bottom: -5px;\n cursor: pointer;\n }\n }\n\n\n /*contols container*/\n .op-controls {\n position: relative;\n width: 100%;\n height: 50px;\n text-align: left;\n overflow: hidden;\n\n &:after {\n content: \'\';\n clear: both;\n }\n\n .op-setting-button {\n position: relative;\n margin-right: 12px;\n }\n\n .op-playlist-button {\n position: relative;\n margin-right: 12px;\n }\n\n .op-navigators {\n float: left;\n height: 30px;\n line-height: 30px;\n }\n\n .op-left-controls {\n position: absolute;\n top: 0;\n left: 0;\n padding: 14px 0 10px 0;\n\n &:after {\n content: \'\';\n clear: both;\n }\n }\n\n .op-right-controls {\n position: absolute;\n top: 0;\n right: 0;\n padding: 14px 0 10px 0;\n\n &:after {\n content: \'\';\n clear: both;\n }\n }\n\n /*maybe not use*/\n .op-frame-buttons {\n position: relative;\n display: inline-block;\n margin-left: 14px;\n overflow: hidden;\n font-weight: 100;\n height: 30px;\n\n .op-frame-button {\n margin-right: 6px;\n position: relative;\n text-align: center;\n color: #fff;\n\n .frame-icon {\n position: relative;\n\n &.reverse {\n &:after {\n content: \'\\e900\';\n }\n }\n\n &:after {\n font-family: \'frameIcon\' !important;\n speak: none;\n content: \'\\e901\';\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n position: absolute;\n font-size: 2.4em;\n left: 0;\n line-height: 30px;\n height: 30px;\n }\n\n .btn-text {\n font-weight: bold;\n font-size: 0.8em;\n line-height: 30px;\n height: 30px;\n }\n\n }\n\n }\n\n }\n }\n }\n\n}\n\n\n/**\n * @brief Progressbar\n * */\n\n.op-progressbar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n outline: none;\n margin-top: 10px;\n\n .op-play-background-color {\n background-color: #50e3c2; // for ie 11\n background-color: var(--op-accent-color);\n }\n\n .op-progress-list {\n cursor: pointer;\n position: relative;\n height: 100%;\n background: rgba(255, 255, 255, 0.2);\n\n .op-load-progress,\n .op-play-progress,\n .op-hover-progress {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n }\n\n .op-play-progress {\n width: 0;\n }\n\n .op-load-progress {\n width: 0;\n background-color: rgba(255, 255, 255, .5);\n }\n\n .op-hover-progress {\n left: 0;\n width: 0;\n background-color: rgba(255, 255, 255, .6);\n }\n\n }\n\n .op-progressbar-knob-container {\n position: absolute;\n top: -5px;\n left: 0;\n\n .op-progressbar-knob {\n width: 14px;\n height: 14px;\n border-radius: 7px;\n cursor: pointer;\n }\n }\n\n .op-progressbar-time {\n display: none;\n position: absolute;\n bottom: 15px;\n left: auto;\n width: auto;\n background-color: rgba(28, 28, 28, 0.9);\n border-radius: 2px;\n padding: 5px 9px;\n font-size: 0.8em;\n line-height: 15px;\n user-select: none;\n white-space: nowrap;\n opacity: 0.7;\n }\n\n\n}\n\n.op-progressbar-hover .op-progressbar-time {\n display: inline-block;\n}\n\n.op-on-error .op-progressbar-time {\n display: none;\n}\n\n.op-progressbar-section-start,\n.op-progressbar-section-end {\n display: none;\n position: absolute;\n width: 3px;\n height: 14px;\n bottom: -5px;\n background-color: #50e3c2;\n background-color: var(--op-accent-color);\n}\n\n.op-progressbar-preview {\n position: absolute;\n display: none;\n bottom: 50px;\n border: 2px solid #fff;\n border-radius: 2px;\n background-color: #000;\n z-index: 9;\n}\n\n.op-play-controller {\n margin-left: 15px;\n}\n\n/**\n * @brief Seek button\n * */\n\n.op-seek-button {\n //display: none;\n position: relative;\n top: 0px;\n\n &.op-seek-button-back {\n margin-left: 12px;\n }\n\n &.op-seek-button-forward {\n margin-left: 6px;\n }\n\n i {\n padding-top: 1px;\n font-size: 26px;\n }\n\n span {\n position: absolute;\n top: 10.5px;\n left: 0;\n right: 0;\n text-align: center;\n font-size: 10px;\n line-height: 10px;\n cursor: pointer;\n }\n}\n\n\n/**\n * @brief Volume button\n * */\n.op-volume-controller {\n display: inline-block;\n position: relative;\n margin-left: 12px;\n\n &:after {\n content: \'\';\n clear: both;\n }\n\n .op-volume-button {\n float: left;\n }\n\n @-webkit-keyframes slide {\n 100% {\n left: 0;\n }\n }\n\n @keyframes slide {\n 100% {\n left: 0;\n }\n }\n\n .op-volume-slider-container {\n /*display: inline-block;*/\n float: left;\n opacity: 0;\n position: relative;\n width: 0px;\n margin-right: 0;\n line-height: 30px;\n height: 30px;\n cursor: pointer;\n user-select: none;\n outline: none;\n\n &.active {\n width: 70px;\n opacity: 1;\n margin-left: 8px;\n -moz-transition: opacity .4s cubic-bezier(0.0, 0.0, 0.2, 1);\n -webkit-transition: opacity .4s cubic-bezier(0.0, 0.0, 0.2, 1);\n transition: opacity .4s cubic-bezier(0.0, 0.0, 0.2, 1);\n }\n\n .op-volume-silder {\n height: 100%;\n position: relative;\n\n .op-volume-slider-bg,\n .op-volume-slider-value {\n position: absolute;\n display: block;\n left: 0;\n top: 50%;\n height: 4px;\n margin-top: -2px;\n border-radius: 10px;\n }\n\n .op-volume-slider-bg {\n width: 100%;\n background: #fff;\n }\n\n .op-volume-slider-value {\n width: 100%;\n background: #50e3c2;\n background: var(--op-accent-color);\n border-radius: 10px 0 0 10px;\n //-moz-transition: width .2s cubic-bezier(0.0,0.0,0.2,1);\n //-webkit-transition: width .2s cubic-bezier(0.0,0.0,0.2,1);\n //transition: width .2s cubic-bezier(0.0,0.0,0.2,1);\n }\n\n .op-volume-slider-handle {\n position: absolute;\n top: 50%;\n left: 30px;\n width: 12px;\n height: 12px;\n border-radius: 10px;\n margin-top: -6px;\n background: #fff;\n //-moz-transition: left .2s cubic-bezier(0.0,0.0,0.2,1);\n //-webkit-transition: left .2s cubic-bezier(0.0,0.0,0.2,1);\n //transition: left .2s cubic-bezier(0.0,0.0,0.2,1);\n }\n }\n }\n}\n\n\n/**\n * @brief Time Display\n * */\n\n.op-time-display {\n float: left;\n position: relative;\n margin-left: 14px;\n height: 30px;\n line-height: 30px;\n white-space: nowrap;\n vertical-align: top;\n font-size: 14px;\n user-select: none;\n /*ํ  ์ด๋ถ€๋ถ„ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•˜์ง€*/\n\n .op-time-current,\n .op-time-separator,\n .op-time-duration {}\n\n .op-live-badge {\n opacity: 1;\n width: auto;\n display: inline-block;\n\n &:before {\n background: #ff0000;\n display: inline-block;\n position: relative;\n top: -2px;\n width: 6px;\n height: 6px;\n margin-right: 5px;\n content: \'\';\n border-radius: 6px;\n }\n\n &.op-live-badge-delayed:before {\n background: #fff;\n }\n\n &.op-live-badge-none:before {\n display: none;\n }\n\n .op-live-badge-lowlatency {\n display: inline-block;\n margin-right: 5px;\n }\n\n .op-live-text {\n cursor: pointer;\n }\n }\n\n}\n\n\n/**\n * @brief Context Panel\n * */\n\n.op-context-panel {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: block;\n position: absolute;\n overflow: hidden;\n width: 200px;\n padding: 6px 0;\n z-index: 8;\n background: rgba(28, 28, 28, 0.9);\n text-shadow: 0 0 2px rgba(0, 0, 0, .5);\n font-weight: lighter;\n user-select: none;\n\n &:before,\n &:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n & *,\n & *:before,\n & *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .op-context-item {\n width: 100%;\n height: 38px;\n padding-left: 12px;\n line-height: 38px;\n cursor: pointer;\n outline: none;\n font-size: 0.8em;\n font-weight: lighter;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n\n &:hover {\n background-color: rgba(255, 255, 255, .1);\n }\n }\n\n}\n\n\n\n\n\n\n/**\n * @brief FullScreen button\n * */\n\n.op-fullscreen-button {\n position: relative;\n margin-right: 15px;\n\n .op-fullscreen-compress {\n display: none;\n }\n}\n\n/**\n * @brief spinner\n * */\n\n.op-spinner-container {\n position: absolute;\n top: 50%;\n width: 64px;\n left: 50%;\n margin-left: -32px;\n margin-top: -32px;\n z-index: 7;\n display: none;\n\n\n .op-spinner {\n display: inline-block;\n position: relative;\n width: 64px;\n height: 64px;\n\n border: 4px solid transparent;\n border-top: 4px solid #50e3c2;\n border-top: 4px solid var(--op-accent-color);\n border-radius: 50%;\n\n animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n }\n }\n\n}\n\n\n/**\n * @brief caption.\n * */\n\n.op-caption-viewer {\n\n .op-caption-text-container {\n position: absolute;\n bottom: 60px;\n width: 100%;\n padding: 0 12px;\n text-align: center;\n -moz-transition: bottom .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n -webkit-transition: bottom .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n transition: bottom .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n\n .op-caption-text {\n color: #fff;\n font-size: 1em;\n line-height: 1.2em;\n text-shadow: 2px 2px 2px gray;\n padding: .1em .3em;\n user-select: none;\n word-break: break-word;\n white-space: pre-line;\n border: none;\n background: none;\n }\n }\n}\n\n.op-caption-button {\n width: 36px;\n}\n\n.op-caption-button>i {\n font-size: 18px;\n -moz-transition: color .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n -webkit-transition: color .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n transition: color .25s cubic-bezier(0.0, 0.0, 0.2, 1);\n}\n\n.op-caption-active .op-caption-button>i {\n color: #F36446;\n}\n\n\n\n/*Responsive */\n\n.op-wrapper.ovenplayer.large {\n font-size: 14px;\n\n .op-caption-text {\n font-size: 2em;\n line-height: 2em;\n }\n\n}\n\n.op-wrapper.ovenplayer.medium {\n font-size: 12px;\n\n .op-caption-text {\n font-size: 1.4em;\n line-height: 1.4em;\n }\n}\n\n.op-wrapper.ovenplayer.small {\n font-size: 10px;\n\n .op-caption-text {\n font-size: 1.4em;\n line-height: 1.4em;\n }\n\n .op-playlist {\n padding: 1rem;\n\n .op-playlist-card {\n margin: 5px 0;\n }\n }\n\n}\n\n.op-wrapper.ovenplayer.xsmall {\n font-size: 10px;\n\n .op-bigbutton-container {\n\n .op-bigbutton {\n width: 60px;\n height: 60px;\n font-size: 60px;\n line-height: 60px;\n }\n }\n\n .op-caption-text {\n font-size: 1.4em;\n line-height: 1.4em;\n }\n\n .op-playlist {\n padding: 1rem;\n\n .op-playlist-header {\n font-size: 2em;\n }\n\n .op-playlist-card {\n margin: 5px 0;\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%;\n padding: 0 6em;\n\n .op-playlist-card-title {\n margin-top: 0;\n }\n }\n }\n\n .op-message-box {\n .op-message-container {\n top: 50%;\n font-weight: bold;\n\n .op-message-icon {\n margin-top: 0;\n\n .op-con {\n font-size: 40px;\n width: 40px;\n height: 40px;\n line-height: 40px;\n }\n }\n }\n }\n\n .op-ads-button {\n bottom: 22px;\n\n .videoAdUiAction {\n padding: 4px;\n font-size: 14px;\n }\n }\n}\n\n.op-wrapper.ovenplayer.xxsmall {\n\n .op-left-controls {\n max-width: 240px; // for small layout\n overflow: hidden; // for small layout\n }\n\n .op-live-badge-lowlatency {\n max-width: 75px;\n }\n}\n\n/*AD MODE*/\n.op-wrapper.ovenplayer.linear-ad {\n\n .op-bottom-panel {\n height: 34px;\n\n .op-controls {\n\n top: 4px;\n\n .op-left-controls {\n height: 30px;\n padding: 0;\n }\n\n .op-right-controls {\n height: 30px;\n padding: 0;\n }\n }\n }\n\n .op-ads {\n top: 0;\n bottom: 0;\n }\n\n .op-button {\n i.op-con {\n width: 24px;\n height: 24px;\n font-size: 24px;\n }\n }\n\n .op-right-controls {\n .op-button {\n //margin-top: -2px;\n }\n }\n\n .op-controls-container .op-bottom-panel .op-progressbar-container {\n bottom: 50px;\n }\n}\n\n/**\n * @brief Animation\n * */\n\n.op-player {\n @keyframes fade {\n from {\n opacity: 0.3;\n }\n\n /*5% { opacity: 0.3; }*/\n /*40% { opacity: 1; }*/\n /*50% { opacity: 1; }*/\n 55% {\n opacity: 1;\n }\n\n 75% {\n opacity: 1;\n }\n\n to {\n opacity: 0.3;\n }\n }\n\n @-webkit-keyframes bounceIn {\n\n from,\n 20%,\n 40%,\n 60%,\n 80%,\n to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n 0% {\n opacity: 0;\n -webkit-transform: scale3d(0.5, 0.5, 0.5);\n transform: scale3d(0.5, 0.5, 0.5);\n }\n\n 20% {\n -webkit-transform: scale3d(1.1, 1.1, 1.1);\n transform: scale3d(1.1, 1.1, 1.1);\n }\n\n 40% {\n -webkit-transform: scale3d(0.9, 0.9, 0.9);\n transform: scale3d(0.9, 0.9, 0.9);\n }\n\n 60% {\n opacity: 1;\n -webkit-transform: scale3d(1.03, 1.03, 1.03);\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 80% {\n -webkit-transform: scale3d(0.97, 0.97, 0.97);\n transform: scale3d(0.97, 0.97, 0.97);\n }\n\n to {\n opacity: 1;\n -webkit-transform: scale3d(1, 1, 1);\n transform: scale3d(1, 1, 1);\n }\n }\n\n @keyframes bounceIn {\n\n from,\n 20%,\n 40%,\n 60%,\n 80%,\n to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n 0% {\n opacity: 0;\n -webkit-transform: scale3d(0.3, 0.3, 0.3);\n transform: scale3d(0.3, 0.3, 0.3);\n }\n\n 20% {\n -webkit-transform: scale3d(1.1, 1.1, 1.1);\n transform: scale3d(1.1, 1.1, 1.1);\n }\n\n 40% {\n -webkit-transform: scale3d(0.9, 0.9, 0.9);\n transform: scale3d(0.9, 0.9, 0.9);\n }\n\n 60% {\n opacity: 1;\n -webkit-transform: scale3d(1.03, 1.03, 1.03);\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 80% {\n -webkit-transform: scale3d(0.97, 0.97, 0.97);\n transform: scale3d(0.97, 0.97, 0.97);\n }\n\n to {\n opacity: 1;\n -webkit-transform: scale3d(1, 1, 1);\n transform: scale3d(1, 1, 1);\n }\n }\n\n .bounceIn {\n -webkit-animation-duration: 0.75s;\n animation-duration: 0.75s;\n -webkit-animation-name: bounceIn;\n animation-name: bounceIn;\n }\n\n @-webkit-keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .fadeIn {\n -webkit-animation-name: fadeIn;\n animation-name: fadeIn;\n }\n\n .animated {\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n }\n\n @media (prefers-reduced-motion) {\n .animated {\n -webkit-animation: unset !important;\n animation: unset !important;\n -webkit-transition: none !important;\n transition: none !important;\n }\n }\n\n\n /* Pulse Shrink */\n /*.op-button {\n //display: inline-block;\n //vertical-align: middle;\n transform: translateZ(0);\n box-shadow: 0 0 1px rgba(0, 0, 0, 0);\n backface-visibility: hidden;\n -moz-osx-font-smoothing: grayscale;\n transition-duration: 0.3s;\n transition-property: transform;\n }\n .op-button:hover,\n .op-button:focus,\n .op-button:active {\n transform: scale(1.1);\n }*/\n}\n\n\n@media only screen and (max-width: 399px) {\n .op-seek-button {\n display: none !important;\n }\n}'],sourceRoot:""}]),t.A=f},76314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},4417:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},71354:function(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},85072:function(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},41113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},78624:function(e,t,n){"use strict";var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,A="ArrayBuffer"in r;if(A)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():A&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(a)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=g(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),o=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var x=[301,302,303,307,308];E.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})};var B=r.DOMException;try{new B}catch(e){(B=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),B.prototype.constructor=B}function k(e,t){return new Promise((function(n,o){var i=new b(e,t);if(i.signal&&i.signal.aborted)return o(new B("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}if(s.onload=function(){var e,t,r={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===i.url.indexOf("file://")&&(s.status<200||s.status>599)?r.status=200:r.status=s.status,r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;setTimeout((function(){n(new E(o,r))}),0)},s.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){o(new B("Aborted","AbortError"))}),0)},s.open(i.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&(a?s.responseType="blob":A&&(s.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof d||r.Headers&&t.headers instanceof r.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){u.push(l(e)),s.setRequestHeader(e,f(t.headers[e]))})),i.headers.forEach((function(e,t){-1===u.indexOf(t)&&s.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",c)}),s.send(void 0===i._bodyInit?null:i._bodyInit)}))}k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=d,r.Request=b,r.Response=E)},58233:function(e){"use strict";e.exports="data:font/ttf;base64,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"},36923:function(e){"use strict";e.exports="data:font/ttf;base64,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"},85971:function(e){"use strict";e.exports="data:font/ttf;base64,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"},79306:function(e,t,n){"use strict";var r=n(94901),o=n(16823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},35548:function(e,t,n){"use strict";var r=n(33517),o=n(16823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},73506:function(e,t,n){"use strict";var r=n(13925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},97080:function(e,t,n){"use strict";var r=n(94402).has;e.exports=function(e){return r(e),e}},6469:function(e,t,n){"use strict";var r=n(78227),o=n(2360),i=n(24913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},57829:function(e,t,n){"use strict";var r=n(68183).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},90679:function(e,t,n){"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},28551:function(e,t,n){"use strict";var r=n(20034),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},77811:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},67394:function(e,t,n){"use strict";var r=n(44576),o=n(46706),i=n(22195),a=r.ArrayBuffer,s=r.TypeError;e.exports=a&&o(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new s("ArrayBuffer expected");return e.byteLength}},3238:function(e,t,n){"use strict";var r=n(44576),o=n(77811),i=n(67394),a=r.DataView;e.exports=function(e){if(!o||0!==i(e))return!1;try{return new a(e),!1}catch(e){return!0}}},15652:function(e,t,n){"use strict";var r=n(79039);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},55169:function(e,t,n){"use strict";var r=n(3238),o=TypeError;e.exports=function(e){if(r(e))throw new o("ArrayBuffer is detached");return e}},95636:function(e,t,n){"use strict";var r=n(44576),o=n(79504),i=n(46706),a=n(57696),s=n(55169),A=n(67394),c=n(94483),u=n(1548),l=r.structuredClone,f=r.ArrayBuffer,p=r.DataView,d=Math.min,g=f.prototype,h=p.prototype,v=o(g.slice),m=i(g,"resizable","get"),y=i(g,"maxByteLength","get"),C=o(h.getInt8),b=o(h.setInt8);e.exports=(u||c)&&function(e,t,n){var r,o=A(e),i=void 0===t?o:a(t),g=!m||!m(e);if(s(e),u&&(e=l(e,{transfer:[e]}),o===i&&(n||g)))return e;if(o>=i&&(!n||g))r=v(e,0,i);else{var h=n&&!g&&y?{maxByteLength:y(e)}:void 0;r=new f(i,h);for(var w=new p(e),E=new p(r),x=d(i,o),B=0;B>8&255]},J=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return _(h(e),23,4)},q=function(e){return _(e,52,8)},$=function(e,t,n){c(e[L],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var o=D(e),i=g(n),a=!!r;if(i+t>o.byteLength)throw new Y(R);var s=o.bytes,A=i+o.byteOffset,c=b(s,A,A+t);return a?c:z(c)},te=function(e,t,n,r,o,i){var a=D(e),s=g(n),A=r(+o),c=!!i;if(s+t>a.byteLength)throw new Y(R);for(var u=a.bytes,l=s+a.byteOffset,f=0;f>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else F=(P=function(e){f(this,F);var t=g(e);M(this,{type:S,bytes:G(j(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[L],N=(U=function(e,t,n){f(this,N),f(e,F);var r=O(e),o=r.byteLength,a=p(t);if(a<0||a>o)throw new Y("Wrong offset");if(a+(n=void 0===n?o-a:d(n))>o)throw new Y("Wrong length");M(this,{type:T,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[L],i&&($(P,"byteLength",O),$(U,"buffer",D),$(U,"byteLength",D),$(U,"byteOffset",D)),u(N,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return H(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return H(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,V,t)},setUint8:function(e,t){te(this,1,e,V,t)},setInt16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Z,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,J,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,q,t,arguments.length>2&&arguments[2])}});x(P,S),x(U,T),e.exports={ArrayBuffer:P,DataView:U}},57029:function(e,t,n){"use strict";var r=n(48981),o=n(35610),i=n(26198),a=n(84606),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),A=i(n),c=o(e,A),u=o(t,A),l=arguments.length>2?arguments[2]:void 0,f=s((void 0===l?A:o(l,A))-u,A-c),p=1;for(u0;)u in n?n[c]=n[u]:a(n,c),c+=p,u+=p;return n}},84373:function(e,t,n){"use strict";var r=n(48981),o=n(35610),i=n(26198);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),A=a>2?arguments[2]:void 0,c=void 0===A?n:o(A,n);c>s;)t[s++]=e;return t}},90235:function(e,t,n){"use strict";var r=n(59213).forEach,o=n(34598)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},35370:function(e,t,n){"use strict";var r=n(26198);e.exports=function(e,t,n){for(var o=0,i=arguments.length>2?n:r(t),a=new e(i);i>o;)a[o]=t[o++];return a}},97916:function(e,t,n){"use strict";var r=n(76080),o=n(69565),i=n(48981),a=n(96319),s=n(44209),A=n(33517),c=n(26198),u=n(97040),l=n(70081),f=n(50851),p=Array;e.exports=function(e){var t=i(e),n=A(this),d=arguments.length,g=d>1?arguments[1]:void 0,h=void 0!==g;h&&(g=r(g,d>2?arguments[2]:void 0));var v,m,y,C,b,w,E=f(t),x=0;if(!E||this===p&&s(E))for(v=c(t),m=n?new this(v):p(v);v>x;x++)w=h?g(t[x],x):t[x],u(m,x,w);else for(m=n?new this:[],b=(C=l(t,E)).next;!(y=o(b,C)).done;x++)w=h?a(C,g,[y.value,x],!0):y.value,u(m,x,w);return m.length=x,m}},19617:function(e,t,n){"use strict";var r=n(25397),o=n(35610),i=n(26198),a=function(e){return function(t,n,a){var s=r(t),A=i(s);if(0===A)return!e&&-1;var c,u=o(a,A);if(e&&n!=n){for(;A>u;)if((c=s[u++])!=c)return!0}else for(;A>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},43839:function(e,t,n){"use strict";var r=n(76080),o=n(47055),i=n(48981),a=n(26198),s=function(e){var t=1===e;return function(n,s,A){for(var c,u=i(n),l=o(u),f=a(l),p=r(s,A);f-- >0;)if(p(c=l[f],f,u))switch(e){case 0:return c;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},59213:function(e,t,n){"use strict";var r=n(76080),o=n(79504),i=n(47055),a=n(48981),s=n(26198),A=n(1469),c=o([].push),u=function(e){var t=1===e,n=2===e,o=3===e,u=4===e,l=6===e,f=7===e,p=5===e||l;return function(d,g,h,v){for(var m,y,C=a(d),b=i(C),w=s(b),E=r(g,h),x=0,B=v||A,k=t?B(d,w):n||f?B(d,0):void 0;w>x;x++)if((p||x in b)&&(y=E(m=b[x],x,C),e))if(t)k[x]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:c(k,m)}else switch(e){case 4:return!1;case 7:c(k,m)}return l?-1:o||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},8379:function(e,t,n){"use strict";var r=n(18745),o=n(25397),i=n(91291),a=n(26198),s=n(34598),A=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,l=s("lastIndexOf"),f=u||!l;e.exports=f?function(e){if(u)return r(c,this,arguments)||0;var t=o(this),n=a(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=A(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},70597:function(e,t,n){"use strict";var r=n(79039),o=n(78227),i=n(39519),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34598:function(e,t,n){"use strict";var r=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},80926:function(e,t,n){"use strict";var r=n(79306),o=n(48981),i=n(47055),a=n(26198),s=TypeError,A="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,u){var l=o(t),f=i(l),p=a(l);if(r(n),0===p&&c<2)throw new s(A);var d=e?p-1:0,g=e?-1:1;if(c<2)for(;;){if(d in f){u=f[d],d+=g;break}if(d+=g,e?d<0:p<=d)throw new s(A)}for(;e?d>=0:p>d;d+=g)d in f&&(u=n(u,f[d],d,l));return u}};e.exports={left:c(!1),right:c(!0)}},34527:function(e,t,n){"use strict";var r=n(43724),o=n(34376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680:function(e,t,n){"use strict";var r=n(79504);e.exports=r([].slice)},74488:function(e,t,n){"use strict";var r=n(67680),o=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,A=1;A0;)e[s]=e[--s];s!==A++&&(e[s]=a)}else for(var c=o(n/2),u=i(r(e,0,c),t),l=i(r(e,c),t),f=u.length,p=l.length,d=0,g=0;d=s||c<0)throw new i("Incorrect index");for(var u=new t(s),l=0;l1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return g(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?l("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,l(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},91625:function(e,t,n){"use strict";var r=n(79504),o=n(56279),i=n(3451).getWeakData,a=n(90679),s=n(28551),A=n(64117),c=n(20034),u=n(72652),l=n(59213),f=n(39297),p=n(91181),d=p.set,g=p.getterFor,h=l.find,v=l.findIndex,m=r([].splice),y=0,C=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},w=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var l=e((function(e,o){a(e,p),d(e,{type:t,id:y++,frozen:null}),A(o)||u(o,e[r],{that:e,AS_ENTRIES:n})})),p=l.prototype,h=g(t),v=function(e,t,n){var r=h(e),o=i(s(t),!0);return!0===o?C(r).set(t,n):o[r.id]=n,e};return o(p,{delete:function(e){var t=h(this);if(!c(e))return!1;var n=i(e);return!0===n?C(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!c(e))return!1;var n=i(e);return!0===n?C(t).has(e):n&&f(n,t.id)}}),o(p,n?{get:function(e){var t=h(this);if(c(e)){var n=i(e);if(!0===n)return C(t).get(e);if(n)return n[t.id]}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),l}}},16468:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(79504),a=n(92796),s=n(36840),A=n(3451),c=n(72652),u=n(90679),l=n(94901),f=n(64117),p=n(20034),d=n(79039),g=n(84428),h=n(10687),v=n(23167);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),C=m?"set":"add",b=o[e],w=b&&b.prototype,E=b,x={},B=function(e){var t=i(w[e]);s(w,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!l(b)||!(y||w.forEach&&!d((function(){(new b).entries().next()})))))E=n.getConstructor(t,e,m,C),A.enable();else if(a(e,!0)){var k=new E,I=k[C](y?{}:-0,1)!==k,S=d((function(){k.has(1)})),T=g((function(e){new b(e)})),L=!y&&d((function(){for(var e=new b,t=5;t--;)e[C](t,t);return!e.has(-0)}));T||((E=t((function(e,t){u(e,w);var n=v(new b,e,E);return f(t)||c(t,n[C],{that:n,AS_ENTRIES:m}),n}))).prototype=w,w.constructor=E),(S||L)&&(B("delete"),B("has"),m&&B("get")),(L||I)&&B(C),y&&w.clear&&delete w.clear}return x[e]=E,r({global:!0,constructor:!0,forced:E!==b},x),h(E,e),y||n.setStrong(E,e,m),E}},77740:function(e,t,n){"use strict";var r=n(39297),o=n(35031),i=n(77347),a=n(24913);e.exports=function(e,t,n){for(var s=o(t),A=a.f,c=i.f,u=0;u"+A+""}},62529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:function(e,t,n){"use strict";var r=n(43724),o=n(24913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:function(e,t,n){"use strict";var r=n(43724),o=n(24913),i=n(6980);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},70380:function(e,t,n){"use strict";var r=n(79504),o=n(79039),i=n(60533).start,a=RangeError,s=isFinite,A=Math.abs,c=Date.prototype,u=c.toISOString,l=r(c.getTime),f=r(c.getUTCDate),p=r(c.getUTCFullYear),d=r(c.getUTCHours),g=r(c.getUTCMilliseconds),h=r(c.getUTCMinutes),v=r(c.getUTCMonth),m=r(c.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==u.call(new Date(-50000000000001))}))||!o((function(){u.call(new Date(NaN))}))?function(){if(!s(l(this)))throw new a("Invalid time value");var e=this,t=p(e),n=g(e),r=t<0?"-":t>9999?"+":"";return r+i(A(t),r?6:4,0)+"-"+i(v(e)+1,2,0)+"-"+i(f(e),2,0)+"T"+i(d(e),2,0)+":"+i(h(e),2,0)+":"+i(m(e),2,0)+"."+i(n,3,0)+"Z"}:u},53640:function(e,t,n){"use strict";var r=n(28551),o=n(84270),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},62106:function(e,t,n){"use strict";var r=n(50283),o=n(24913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},36840:function(e,t,n){"use strict";var r=n(94901),o=n(24913),i=n(50283),a=n(39433);e.exports=function(e,t,n,s){s||(s={});var A=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)A?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(A=!0):delete e[t]}catch(e){}A?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},56279:function(e,t,n){"use strict";var r=n(36840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},39433:function(e,t,n){"use strict";var r=n(44576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},84606:function(e,t,n){"use strict";var r=n(16823),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},43724:function(e,t,n){"use strict";var r=n(79039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},94483:function(e,t,n){"use strict";var r,o,i,a,s=n(44576),A=n(89429),c=n(1548),u=s.structuredClone,l=s.ArrayBuffer,f=s.MessageChannel,p=!1;if(c)p=function(e){u(e,{transfer:[e]})};else if(l)try{f||(r=A("worker_threads"))&&(f=r.MessageChannel),f&&(o=new f,i=new l(2),a=function(e){o.port1.postMessage(null,[e])},2===i.byteLength&&(a(i),0===i.byteLength&&(p=a)))}catch(e){}e.exports=p},4055:function(e,t,n){"use strict";var r=n(44576),o=n(20034),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},96837:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},55002:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},67400:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:function(e,t,n){"use strict";var r=n(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},88727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709:function(e,t,n){"use strict";var r=n(82839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},13763:function(e,t,n){"use strict";var r=n(82839);e.exports=/MSIE|Trident/.test(r)},44265:function(e,t,n){"use strict";var r=n(82839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},89544:function(e,t,n){"use strict";var r=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},38574:function(e,t,n){"use strict";var r=n(84215);e.exports="NODE"===r},7860:function(e,t,n){"use strict";var r=n(82839);e.exports=/web0s(?!.*chrome)/i.test(r)},82839:function(e,t,n){"use strict";var r=n(44576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},39519:function(e,t,n){"use strict";var r,o,i=n(44576),a=n(82839),s=i.process,A=i.Deno,c=s&&s.versions||A&&A.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},3607:function(e,t,n){"use strict";var r=n(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},84215:function(e,t,n){"use strict";var r=n(44576),o=n(82839),i=n(22195),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},16193:function(e,t,n){"use strict";var r=n(79504),o=Error,i=r("".replace),a=String(new o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,A=s.test(a);e.exports=function(e,t){if(A&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},80747:function(e,t,n){"use strict";var r=n(66699),o=n(16193),i=n(24659),a=Error.captureStackTrace;e.exports=function(e,t,n,s){i&&(a?a(e,t):r(e,"stack",o(n,s)))}},24659:function(e,t,n){"use strict";var r=n(79039),o=n(6980);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},77536:function(e,t,n){"use strict";var r=n(43724),o=n(79039),i=n(28551),a=n(32603),s=Error.prototype.toString,A=o((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=A?function(){var e=i(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},46518:function(e,t,n){"use strict";var r=n(44576),o=n(77347).f,i=n(66699),a=n(36840),s=n(39433),A=n(77740),c=n(92796);e.exports=function(e,t){var n,u,l,f,p,d=e.target,g=e.global,h=e.stat;if(n=g?r:h?r[d]||s(d,{}):r[d]&&r[d].prototype)for(u in t){if(f=t[u],l=e.dontCallGetSet?(p=o(n,u))&&p.value:n[u],!c(g?u:d+(h?".":"#")+u,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;A(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(n,u,f,e)}}},79039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},89228:function(e,t,n){"use strict";n(27495);var r=n(69565),o=n(36840),i=n(57323),a=n(79039),s=n(78227),A=n(66699),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,l){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),d=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!d||n){var g=/./[f],h=t(f,""[e],(function(e,t,n,o,a){var s=t.exec;return s===i||s===u.exec?p&&!a?{done:!0,value:r(g,t,n,o)}:{done:!0,value:r(e,n,t,o)}:{done:!1}}));o(String.prototype,e,h[0]),o(u,f,h[1])}l&&A(u[f],"sham",!0)}},70259:function(e,t,n){"use strict";var r=n(34376),o=n(26198),i=n(96837),a=n(76080),s=function(e,t,n,A,c,u,l,f){for(var p,d,g=c,h=0,v=!!l&&a(l,f);h0&&r(p)?(d=o(p),g=s(e,t,p,d,g,u-1)-1):(i(g+1),e[g]=p),g++),h++;return g};e.exports=s},92744:function(e,t,n){"use strict";var r=n(79039);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18745:function(e,t,n){"use strict";var r=n(40616),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},76080:function(e,t,n){"use strict";var r=n(27476),o=n(79306),i=n(40616),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},40616:function(e,t,n){"use strict";var r=n(79039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},30566:function(e,t,n){"use strict";var r=n(79504),o=n(79306),i=n(20034),a=n(39297),s=n(67680),A=n(40616),c=Function,u=r([].concat),l=r([].join),f={};e.exports=A?c.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),A=function(){var n=u(r,s(arguments));return this instanceof A?function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,l,f){var p=n+e.length,d=r.length,g=u;return void 0!==l&&(l=o(l),g=c),s(f,g,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return A(t,0,n);case"'":return A(t,p);case"<":c=l[A(s,1,-1)];break;default:var u=+s;if(0===u)return o;if(u>d){var f=i(u/10);return 0===f?o:f<=d?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}c=r[u-1]}return void 0===c?"":c}))}},44576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:function(e,t,n){"use strict";var r=n(79504),o=n(48981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},30421:function(e){"use strict";e.exports={}},90757:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},20397:function(e,t,n){"use strict";var r=n(97751);e.exports=r("document","documentElement")},35917:function(e,t,n){"use strict";var r=n(43724),o=n(79039),i=n(4055);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},88490:function(e){"use strict";var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,s,A){var c,u,l,f=t(A),p=8*A-s-1,d=(1<>1,h=23===s?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,m=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=d):(c=o(i(e)/a),e*(l=r(2,-c))<1&&(c--,l*=2),(e+=c+g>=1?h/l:h*r(2,1-g))*l>=2&&(c++,l/=2),c+g>=d?(u=0,c=d):c+g>=1?(u=(e*l-1)*r(2,s),c+=g):(u=e*r(2,g-1)*r(2,s),c=0));s>=8;)f[m++]=255&u,u/=256,s-=8;for(c=c<0;)f[m++]=255&c,c/=256,p-=8;return f[m-1]|=128*v,f},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<>1,A=i-7,c=o-1,u=e[c--],l=127&u;for(u>>=7;A>0;)l=256*l+e[c--],A-=8;for(n=l&(1<<-A)-1,l>>=-A,A+=t;A>0;)n=256*n+e[c--],A-=8;if(0===l)l=1-s;else{if(l===a)return n?NaN:u?-1/0:1/0;n+=r(2,t),l-=s}return(u?-1:1)*n*r(2,l-t)}}},47055:function(e,t,n){"use strict";var r=n(79504),o=n(79039),i=n(22195),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},23167:function(e,t,n){"use strict";var r=n(94901),o=n(20034),i=n(52967);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},33706:function(e,t,n){"use strict";var r=n(79504),o=n(94901),i=n(77629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},77584:function(e,t,n){"use strict";var r=n(20034),o=n(66699);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},3451:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(30421),a=n(20034),s=n(39297),A=n(24913).f,c=n(38480),u=n(10298),l=n(34124),f=n(33392),p=n(92744),d=!1,g=f("meta"),h=0,v=function(e){A(e,g,{value:{objectID:"O"+h++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},d=!0;var e=c.f,t=o([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var r=e(n),o=0,i=r.length;om;m++)if((C=L(e[m]))&&c(g,C))return C;return new d(!1)}h=u(e,v)}for(b=B?e.next:h.next;!(w=o(b,h)).done;){try{C=L(w.value)}catch(e){f(h,"throw",e)}if("object"==typeof C&&C&&c(g,C))return C}return new d(!1)}},9539:function(e,t,n){"use strict";var r=n(69565),o=n(28551),i=n(55966);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},33994:function(e,t,n){"use strict";var r=n(57657).IteratorPrototype,o=n(2360),i=n(6980),a=n(10687),s=n(26269),A=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=o(r,{next:i(+!c,n)}),a(e,u,!1,!0),s[u]=A,e}},19462:function(e,t,n){"use strict";var r=n(69565),o=n(2360),i=n(66699),a=n(56279),s=n(78227),A=n(91181),c=n(55966),u=n(57657).IteratorPrototype,l=n(62529),f=n(9539),p=s("toStringTag"),d="IteratorHelper",g="WrapForValidIterator",h=A.set,v=function(e){var t=A.getterFor(e?g:d);return a(o(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return l(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:l(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),o=n.iterator;if(n.done=!0,e){var i=c(o,"return");return i?r(i,o):l(void 0,!0)}if(n.inner)try{f(n.inner.iterator,"normal")}catch(e){return f(o,"throw",e)}return o&&f(o,"normal"),l(void 0,!0)}})},m=v(!0),y=v(!1);i(y,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=t?g:d,o.returnHandlerResult=!!n,o.nextHandler=e,o.counter=0,o.done=!1,h(this,o)};return r.prototype=t?m:y,r}},51088:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(96395),a=n(10350),s=n(94901),A=n(33994),c=n(42787),u=n(52967),l=n(10687),f=n(66699),p=n(36840),d=n(78227),g=n(26269),h=n(57657),v=a.PROPER,m=a.CONFIGURABLE,y=h.IteratorPrototype,C=h.BUGGY_SAFARI_ITERATORS,b=d("iterator"),w="keys",E="values",x="entries",B=function(){return this};e.exports=function(e,t,n,a,d,h,k){A(n,t,a);var I,S,T,L=function(e){if(e===d&&Q)return Q;if(!C&&e&&e in D)return D[e];switch(e){case w:case E:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",O=!1,D=e.prototype,M=D[b]||D["@@iterator"]||d&&D[d],Q=!C&&M||L(d),P="Array"===t&&D.entries||M;if(P&&(I=c(P.call(new e)))!==Object.prototype&&I.next&&(i||c(I)===y||(u?u(I,y):s(I[b])||p(I,b,B)),l(I,R,!0,!0),i&&(g[R]=B)),v&&d===E&&M&&M.name!==E&&(!i&&m?f(D,"name",E):(O=!0,Q=function(){return o(M,this)})),d)if(S={values:L(E),keys:h?Q:L(w),entries:L(x)},k)for(T in S)(C||O||!(T in D))&&p(D,T,S[T]);else r({target:t,proto:!0,forced:C||O},S);return i&&!k||D[b]===Q||p(D,b,Q,{name:d}),g[t]=Q,S}},20713:function(e,t,n){"use strict";var r=n(69565),o=n(79306),i=n(28551),a=n(1767),s=n(19462),A=n(96319),c=s((function(){var e=this.iterator,t=i(r(this.next,e));if(!(this.done=!!t.done))return A(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),o(e),new c(a(this),{mapper:e})}},57657:function(e,t,n){"use strict";var r,o,i,a=n(79039),s=n(94901),A=n(20034),c=n(2360),u=n(42787),l=n(36840),f=n(78227),p=n(96395),d=f("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):g=!0),!A(r)||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),s(r[d])||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},26269:function(e){"use strict";e.exports={}},26198:function(e,t,n){"use strict";var r=n(18014);e.exports=function(e){return r(e.length)}},50283:function(e,t,n){"use strict";var r=n(79504),o=n(79039),i=n(94901),a=n(39297),s=n(43724),A=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),l=u.enforce,f=u.get,p=String,d=Object.defineProperty,g=r("".slice),h=r("".replace),v=r([].join),m=s&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),y=String(String).split("String"),C=e.exports=function(e,t,n){"Symbol("===g(p(t),0,7)&&(t="["+h(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||A&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&a(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=l(e);return a(r,"source")||(r.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=C((function(){return i(this)&&f(this).source||c(this)}),"toString")},72248:function(e,t,n){"use strict";var r=n(79504),o=Map.prototype;e.exports={Map:Map,set:r(o.set),get:r(o.get),has:r(o.has),remove:r(o.delete),proto:o}},53250:function(e){"use strict";var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!==t(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},33164:function(e,t,n){"use strict";var r=n(77782),o=n(53602),i=Math.abs;e.exports=function(e,t,n,a){var s=+e,A=i(s),c=r(s);if(An||l!=l?c*(1/0):c*l}},15617:function(e,t,n){"use strict";var r=n(33164);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},49340:function(e){"use strict";var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},7740:function(e){"use strict";var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},67787:function(e){"use strict";var t=Math.log,n=Math.LN2;e.exports=Math.log2||function(e){return t(e)/n}},53602:function(e){"use strict";var t=4503599627370496;e.exports=function(e){return e+t-t}},77782:function(e){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},80741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},91955:function(e,t,n){"use strict";var r,o,i,a,s,A=n(44576),c=n(93389),u=n(76080),l=n(59225).set,f=n(18265),p=n(89544),d=n(44265),g=n(7860),h=n(38574),v=A.MutationObserver||A.WebKitMutationObserver,m=A.document,y=A.process,C=A.Promise,b=c("queueMicrotask");if(!b){var w=new f,E=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=w.get();)try{t()}catch(e){throw w.head&&r(),e}e&&e.enter()};p||h||g||!v||!m?!d&&C&&C.resolve?((a=C.resolve(void 0)).constructor=C,s=u(a.then,a),r=function(){s(E)}):h?r=function(){y.nextTick(E)}:(l=u(l,A),r=function(){l(E)}):(o=!0,i=m.createTextNode(""),new v(E).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),b=function(e){w.head||r(),w.add(e)}}e.exports=b},36043:function(e,t,n){"use strict";var r=n(79306),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},32603:function(e,t,n){"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},24149:function(e){"use strict";var t=RangeError;e.exports=function(e){if(e==e)return e;throw new t("NaN is not allowed")}},60511:function(e,t,n){"use strict";var r=n(60788),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},50360:function(e,t,n){"use strict";var r=n(44576).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},33904:function(e,t,n){"use strict";var r=n(44576),o=n(79039),i=n(79504),a=n(655),s=n(43802).trim,A=n(47452),c=i("".charAt),u=r.parseFloat,l=r.Symbol,f=l&&l.iterator,p=1/u(A+"-0")!=-1/0||f&&!o((function(){u(Object(f))}));e.exports=p?function(e){var t=s(a(e)),n=u(t);return 0===n&&"-"===c(t,0)?-0:n}:u},52703:function(e,t,n){"use strict";var r=n(44576),o=n(79039),i=n(79504),a=n(655),s=n(43802).trim,A=n(47452),c=r.parseInt,u=r.Symbol,l=u&&u.iterator,f=/^[+-]?0x/i,p=i(f.exec),d=8!==c(A+"08")||22!==c(A+"0x16")||l&&!o((function(){c(Object(l))}));e.exports=d?function(e,t){var n=s(a(e));return c(n,t>>>0||(p(f,n)?16:10))}:c},44213:function(e,t,n){"use strict";var r=n(43724),o=n(79504),i=n(69565),a=n(79039),s=n(71072),A=n(33717),c=n(48773),u=n(48981),l=n(47055),f=Object.assign,p=Object.defineProperty,d=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==o}))?function(e,t){for(var n=u(e),o=arguments.length,a=1,f=A.f,p=c.f;o>a;)for(var g,h=l(arguments[a++]),v=f?d(s(h),f(h)):s(h),m=v.length,y=0;m>y;)g=v[y++],r&&!i(p,h,g)||(n[g]=h[g]);return n}:f},2360:function(e,t,n){"use strict";var r,o=n(28551),i=n(96801),a=n(88727),s=n(30421),A=n(20397),c=n(4055),u=n(66119),l="prototype",f="script",p=u("IE_PROTO"),d=function(){},g=function(e){return"<"+f+">"+e+""},h=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?h(r):(t=c("iframe"),n="java"+f+":",t.style.display="none",A.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):h(r);for(var o=a.length;o--;)delete v[l][a[o]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d[l]=o(e),n=new d,d[l]=null,n[p]=e):n=v(),void 0===t?n:i.f(n,t)}},96801:function(e,t,n){"use strict";var r=n(43724),o=n(48686),i=n(24913),a=n(28551),s=n(25397),A=n(71072);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=A(t),c=o.length,u=0;c>u;)i.f(e,n=o[u++],r[n]);return e}},24913:function(e,t,n){"use strict";var r=n(43724),o=n(35917),i=n(48686),a=n(28551),s=n(56969),A=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l="enumerable",f="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:l in n?n[l]:r[l],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new A("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:function(e,t,n){"use strict";var r=n(43724),o=n(69565),i=n(48773),a=n(6980),s=n(25397),A=n(56969),c=n(39297),u=n(35917),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=A(t),u)try{return l(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},10298:function(e,t,n){"use strict";var r=n(22195),o=n(25397),i=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},38480:function(e,t,n){"use strict";var r=n(61828),o=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},33717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},42787:function(e,t,n){"use strict";var r=n(39297),o=n(94901),i=n(48981),a=n(66119),s=n(12211),A=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,A))return t[A];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},34124:function(e,t,n){"use strict";var r=n(79039),o=n(20034),i=n(22195),a=n(15652),s=Object.isExtensible,A=r((function(){s(1)}));e.exports=A||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!==i(e))&&(!s||s(e))}:s},1625:function(e,t,n){"use strict";var r=n(79504);e.exports=r({}.isPrototypeOf)},61828:function(e,t,n){"use strict";var r=n(79504),o=n(39297),i=n(25397),a=n(19617).indexOf,s=n(30421),A=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&A(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||A(u,n));return u}},71072:function(e,t,n){"use strict";var r=n(61828),o=n(88727);e.exports=Object.keys||function(e){return r(e,o)}},48773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},42551:function(e,t,n){"use strict";var r=n(96395),o=n(44576),i=n(79039),a=n(3607);e.exports=r||!i((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}}))},52967:function(e,t,n){"use strict";var r=n(46706),o=n(20034),i=n(67750),a=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),a(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},32357:function(e,t,n){"use strict";var r=n(43724),o=n(79039),i=n(79504),a=n(42787),s=n(71072),A=n(25397),c=i(n(48773).f),u=i([].push),l=r&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,o=A(t),i=s(o),f=l&&null===a(o),p=i.length,d=0,g=[];p>d;)n=i[d++],r&&!(f?n in o:c(o,n))||u(g,e?[n,o[n]]:o[n]);return g}};e.exports={entries:f(!0),values:f(!1)}},53179:function(e,t,n){"use strict";var r=n(92140),o=n(36955);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},84270:function(e,t,n){"use strict";var r=n(69565),o=n(94901),i=n(20034),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},35031:function(e,t,n){"use strict";var r=n(97751),o=n(79504),i=n(38480),a=n(33717),s=n(28551),A=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?A(t,n(e)):t}},19167:function(e,t,n){"use strict";var r=n(44576);e.exports=r},1103:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},10916:function(e,t,n){"use strict";var r=n(44576),o=n(80550),i=n(94901),a=n(92796),s=n(33706),A=n(78227),c=n(84215),u=n(96395),l=n(39519),f=o&&o.prototype,p=A("species"),d=!1,g=i(r.PromiseRejectionEvent),h=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===l)return!0;if(u&&(!f.catch||!f.finally))return!0;if(!l||l<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=r,!(d=n.then((function(){}))instanceof r))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||g)}));e.exports={CONSTRUCTOR:h,REJECTION_EVENT:g,SUBCLASSING:d}},80550:function(e,t,n){"use strict";var r=n(44576);e.exports=r.Promise},93438:function(e,t,n){"use strict";var r=n(28551),o=n(20034),i=n(36043);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},90537:function(e,t,n){"use strict";var r=n(80550),o=n(84428),i=n(10916).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},11056:function(e,t,n){"use strict";var r=n(24913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},18265:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},56682:function(e,t,n){"use strict";var r=n(69565),o=n(28551),i=n(94901),a=n(22195),s=n(57323),A=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return r(s,e,t);throw new A("RegExp#exec called on incompatible receiver")}},57323:function(e,t,n){"use strict";var r,o,i=n(69565),a=n(79504),s=n(655),A=n(67979),c=n(58429),u=n(25745),l=n(2360),f=n(91181).get,p=n(83635),d=n(18814),g=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,m=a("".charAt),y=a("".indexOf),C=a("".replace),b=a("".slice),w=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=c.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(w||x||E||p||d)&&(v=function(e){var t,n,r,o,a,c,u,p=this,d=f(p),B=s(e),k=d.raw;if(k)return k.lastIndex=p.lastIndex,t=i(v,k,B),p.lastIndex=k.lastIndex,t;var I=d.groups,S=E&&p.sticky,T=i(A,p),L=p.source,R=0,O=B;if(S&&(T=C(T,"y",""),-1===y(T,"g")&&(T+="g"),O=b(B,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(B,p.lastIndex-1))&&(L="(?: "+L+")",O=" "+O,R++),n=new RegExp("^(?:"+L+")",T)),x&&(n=new RegExp("^"+L+"$(?!\\s)",T)),w&&(r=p.lastIndex),o=i(h,S?n:p,O),S?o?(o.input=b(o.input,R),o[0]=b(o[0],R),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:w&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),x&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;ab)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},67750:function(e,t,n){"use strict";var r=n(64117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},93389:function(e,t,n){"use strict";var r=n(44576),o=n(43724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=i(r,e);return t&&t.value}},3470:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},79472:function(e,t,n){"use strict";var r,o=n(44576),i=n(18745),a=n(94901),s=n(84215),A=n(82839),c=n(67680),u=n(22812),l=o.Function,f=/MSIE .\./.test(A)||"BUN"===s&&((r=o.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return f?function(r,o){var s=u(arguments.length,1)>n,A=a(r)?r:l(r),f=s?c(arguments,n):[],p=s?function(){i(A,this,f)}:A;return t?e(p,o):e(p)}:e}},89286:function(e,t,n){"use strict";var r=n(94402),o=n(38469),i=r.Set,a=r.add;e.exports=function(e){var t=new i;return o(e,(function(e){a(t,e)})),t}},83440:function(e,t,n){"use strict";var r=n(97080),o=n(94402),i=n(89286),a=n(25170),s=n(83789),A=n(38469),c=n(40507),u=o.has,l=o.remove;e.exports=function(e){var t=r(this),n=s(e),o=i(t);return a(t)<=n.size?A(t,(function(e){n.includes(e)&&l(o,e)})):c(n.getIterator(),(function(e){u(t,e)&&l(o,e)})),o}},94402:function(e,t,n){"use strict";var r=n(79504),o=Set.prototype;e.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o.delete),proto:o}},68750:function(e,t,n){"use strict";var r=n(97080),o=n(94402),i=n(25170),a=n(83789),s=n(38469),A=n(40507),c=o.Set,u=o.add,l=o.has;e.exports=function(e){var t=r(this),n=a(e),o=new c;return i(t)>n.size?A(n.getIterator(),(function(e){l(t,e)&&u(o,e)})):s(t,(function(e){n.includes(e)&&u(o,e)})),o}},64449:function(e,t,n){"use strict";var r=n(97080),o=n(94402).has,i=n(25170),a=n(83789),s=n(38469),A=n(40507),c=n(9539);e.exports=function(e){var t=r(this),n=a(e);if(i(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==A(u,(function(e){if(o(t,e))return c(u,"normal",!1)}))}},53838:function(e,t,n){"use strict";var r=n(97080),o=n(25170),i=n(38469),a=n(83789);e.exports=function(e){var t=r(this),n=a(e);return!(o(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},28527:function(e,t,n){"use strict";var r=n(97080),o=n(94402).has,i=n(25170),a=n(83789),s=n(40507),A=n(9539);e.exports=function(e){var t=r(this),n=a(e);if(i(t)3}))}},68183:function(e,t,n){"use strict";var r=n(79504),o=n(91291),i=n(655),a=n(67750),s=r("".charAt),A=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,l=i(a(t)),f=o(n),p=l.length;return f<0||f>=p?e?"":void 0:(r=A(l,f))<55296||r>56319||f+1===p||(u=A(l,f+1))<56320||u>57343?e?s(l,f):r:e?c(l,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},83063:function(e,t,n){"use strict";var r=n(82839);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},60533:function(e,t,n){"use strict";var r=n(79504),o=n(18014),i=n(655),a=n(72333),s=n(67750),A=r(a),c=r("".slice),u=Math.ceil,l=function(e){return function(t,n,r){var a,l,f=i(s(t)),p=o(n),d=f.length,g=void 0===r?" ":i(r);return p<=d||""===g?f:((l=A(g,u((a=p-d)/g.length))).length>a&&(l=c(l,0,a)),e?f+l:l+f)}};e.exports={start:l(!1),end:l(!0)}},3717:function(e,t,n){"use strict";var r=n(79504),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",A=RangeError,c=r(a.exec),u=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),p=r([].join),d=r([].push),g=r("".replace),h=r("".split),v=r("".toLowerCase),m=function(e){return e+22+75*(e<26)},y=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),r+=36;return u(r+36*e/(e+38))},C=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=a&&ru((o-c)/b))throw new A(s);for(c+=(C-a)*b,a=C,n=0;no)throw new A(s);if(r===a){for(var w=c,E=36;;){var x=E<=g?1:E>=g+26?26:E-g;if(w0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},18866:function(e,t,n){"use strict";var r=n(43802).end,o=n(60706);e.exports=o("trimEnd")?function(){return r(this)}:"".trimEnd},60706:function(e,t,n){"use strict";var r=n(10350).PROPER,o=n(79039),i=n(47452);e.exports=function(e){return o((function(){return!!i[e]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[e]()||r&&i[e].name!==e}))}},53487:function(e,t,n){"use strict";var r=n(43802).start,o=n(60706);e.exports=o("trimStart")?function(){return r(this)}:"".trimStart},43802:function(e,t,n){"use strict";var r=n(79504),o=n(67750),i=n(655),a=n(47452),s=r("".replace),A=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,A,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},1548:function(e,t,n){"use strict";var r=n(44576),o=n(79039),i=n(39519),a=n(84215),s=r.structuredClone;e.exports=!!s&&!o((function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},4495:function(e,t,n){"use strict";var r=n(39519),o=n(79039),i=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},58242:function(e,t,n){"use strict";var r=n(69565),o=n(97751),i=n(78227),a=n(36840);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},91296:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},59225:function(e,t,n){"use strict";var r,o,i,a,s=n(44576),A=n(18745),c=n(76080),u=n(94901),l=n(39297),f=n(79039),p=n(20397),d=n(67680),g=n(4055),h=n(22812),v=n(89544),m=n(38574),y=s.setImmediate,C=s.clearImmediate,b=s.process,w=s.Dispatch,E=s.Function,x=s.MessageChannel,B=s.String,k=0,I={},S="onreadystatechange";f((function(){r=s.location}));var T=function(e){if(l(I,e)){var t=I[e];delete I[e],t()}},L=function(e){return function(){T(e)}},R=function(e){T(e.data)},O=function(e){s.postMessage(B(e),r.protocol+"//"+r.host)};y&&C||(y=function(e){h(arguments.length,1);var t=u(e)?e:E(e),n=d(arguments,1);return I[++k]=function(){A(t,void 0,n)},o(k),k},C=function(e){delete I[e]},m?o=function(e){b.nextTick(L(e))}:w&&w.now?o=function(e){w.now(L(e))}:x&&!v?(a=(i=new x).port2,i.port1.onmessage=R,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(o=O,s.addEventListener("message",R,!1)):o=S in g("script")?function(e){p.appendChild(g("script"))[S]=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:y,clear:C}},31240:function(e,t,n){"use strict";var r=n(79504);e.exports=r(1..valueOf)},35610:function(e,t,n){"use strict";var r=n(91291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},75854:function(e,t,n){"use strict";var r=n(72777),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},57696:function(e,t,n){"use strict";var r=n(91291),o=n(18014),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new i("Wrong length or index");return n}},25397:function(e,t,n){"use strict";var r=n(47055),o=n(67750);e.exports=function(e){return r(o(e))}},91291:function(e,t,n){"use strict";var r=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},18014:function(e,t,n){"use strict";var r=n(91291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},48981:function(e,t,n){"use strict";var r=n(67750),o=Object;e.exports=function(e){return o(r(e))}},58229:function(e,t,n){"use strict";var r=n(99590),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new o("Wrong offset");return n}},99590:function(e,t,n){"use strict";var r=n(91291),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new o("The argument can't be less than 0");return t}},72777:function(e,t,n){"use strict";var r=n(69565),o=n(20034),i=n(10757),a=n(55966),s=n(84270),A=n(78227),c=TypeError,u=A("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,A=a(e,u);if(A){if(void 0===t&&(t="default"),n=r(A,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},56969:function(e,t,n){"use strict";var r=n(72777),o=n(10757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},92140:function(e,t,n){"use strict";var r={};r[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(r)},655:function(e,t,n){"use strict";var r=n(36955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},58319:function(e){"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},16823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},15823:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(69565),a=n(43724),s=n(72805),A=n(94644),c=n(66346),u=n(90679),l=n(6980),f=n(66699),p=n(2087),d=n(18014),g=n(57696),h=n(58229),v=n(58319),m=n(56969),y=n(39297),C=n(36955),b=n(20034),w=n(10757),E=n(2360),x=n(1625),B=n(52967),k=n(38480).f,I=n(43251),S=n(59213).forEach,T=n(87633),L=n(62106),R=n(24913),O=n(77347),D=n(35370),M=n(91181),Q=n(23167),P=M.get,F=M.set,U=M.enforce,N=R.f,W=O.f,j=o.RangeError,Y=c.ArrayBuffer,G=Y.prototype,z=c.DataView,_=A.NATIVE_ARRAY_BUFFER_VIEWS,H=A.TYPED_ARRAY_TAG,V=A.TypedArray,Z=A.TypedArrayPrototype,J=A.isTypedArray,K="BYTES_PER_ELEMENT",X="Wrong length",q=function(e,t){L(e,t,{configurable:!0,get:function(){return P(this)[t]}})},$=function(e){var t;return x(G,e)||"ArrayBuffer"===(t=C(e))||"SharedArrayBuffer"===t},ee=function(e,t){return J(e)&&!w(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=m(t),ee(e,t)?l(2,e[t]):W(e,t)},ne=function(e,t,n){return t=m(t),!(ee(e,t)&&b(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};a?(_||(O.f=te,R.f=ne,q(Z,"buffer"),q(Z,"byteOffset"),q(Z,"byteLength"),q(Z,"length")),r({target:"Object",stat:!0,forced:!_},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,A=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,p=o[A],m=p,y=m&&m.prototype,C={},w=function(e,t){N(e,t,{get:function(){return function(e,t){var n=P(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=P(e);o.view[l](t*a+o.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};_?s&&(m=t((function(e,t,n,r){return u(e,y),Q(b(t)?$(t)?void 0!==r?new p(t,h(n,a),r):void 0!==n?new p(t,h(n,a)):new p(t):J(t)?D(m,t):i(I,m,t):new p(g(t)),e,m)})),B&&B(m,V),S(k(p),(function(e){e in m||f(m,e,p[e])})),m.prototype=y):(m=t((function(e,t,n,r){u(e,y);var o,s,A,c=0,l=0;if(b(t)){if(!$(t))return J(t)?D(m,t):i(I,m,t);o=t,l=h(n,a);var f=t.byteLength;if(void 0===r){if(f%a)throw new j(X);if((s=f-l)<0)throw new j(X)}else if((s=d(r)*a)+l>f)throw new j(X);A=s/a}else A=g(t),o=new Y(s=A*a);for(F(e,{buffer:o,byteOffset:l,byteLength:s,length:A,view:new z(o)});c1?arguments[1]:void 0,x=void 0!==E,B=c(b);if(B&&!u(B))for(y=(m=A(b,B)).next,b=[];!(v=o(y,m)).done;)b.push(v.value);for(x&&w>2&&(E=r(E,arguments[2])),n=s(b),d=new(f(C))(n),g=l(d),t=0;n>t;t++)h=x?E(b[t],t):b[t],d[t]=g?p(h):+h;return d}},33392:function(e,t,n){"use strict";var r=n(79504),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},67416:function(e,t,n){"use strict";var r=n(79039),o=n(78227),i=n(43724),a=n(96395),s=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://ั‚ะตัั‚").host||"#%D0%B1"!==new URL("https://a#ะฑ").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:function(e,t,n){"use strict";var r=n(43724),o=n(79039);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},22812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(em&&f(r,arguments[m]),r}));if(x.prototype=w,"Error"!==C?s?s(x,E):A(x,E,{name:!0}):d&&v in b&&(c(x,b,v),c(x,b,"prepareStackTrace")),A(x,b),!g)try{w.name!==C&&i(w,"name",C),w.constructor=x}catch(e){}return x}}},4294:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(18745),a=n(79039),s=n(14601),A="AggregateError",c=o(A),u=!a((function(){return 1!==c([1]).errors[0]}))&&a((function(){return 7!==c([1],A,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:s(A,(function(e){return function(t,n){return i(e,this,arguments)}}),u,!0)})},17145:function(e,t,n){"use strict";var r=n(46518),o=n(1625),i=n(42787),a=n(52967),s=n(77740),A=n(2360),c=n(66699),u=n(6980),l=n(77584),f=n(80747),p=n(72652),d=n(32603),g=n(78227)("toStringTag"),h=Error,v=[].push,m=function(e,t){var n,r=o(y,this);a?n=a(new h,r?i(this):y):(n=r?this:A(y),c(n,g,"Error")),void 0!==t&&c(n,"message",d(t)),f(n,m,n.stack,1),arguments.length>2&&l(n,arguments[2]);var s=[];return p(e,v,{that:s}),c(n,"errors",s),n};a?a(m,h):s(m,h,{name:!0});var y=m.prototype=A(h.prototype,{constructor:u(1,m),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:m})},30067:function(e,t,n){"use strict";n(17145)},54743:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(66346),a=n(87633),s="ArrayBuffer",A=i[s];r({global:!0,constructor:!0,forced:o[s]!==A},{ArrayBuffer:A}),a(s)},16573:function(e,t,n){"use strict";var r=n(43724),o=n(62106),i=n(3238),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},46761:function(e,t,n){"use strict";var r=n(46518),o=n(94644);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},11745:function(e,t,n){"use strict";var r=n(46518),o=n(27476),i=n(79039),a=n(66346),s=n(28551),A=n(35610),c=n(18014),u=a.ArrayBuffer,l=a.DataView,f=l.prototype,p=o(u.prototype.slice),d=o(f.getUint8),g=o(f.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(p&&void 0===t)return p(s(this),e);for(var n=s(this).byteLength,r=A(e,n),o=A(void 0===t?n:t,n),i=new u(c(o-r)),a=new l(this),f=new l(i),h=0;r=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},28706:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(34376),a=n(20034),s=n(48981),A=n(26198),c=n(96837),u=n(97040),l=n(1469),f=n(70597),p=n(78227),d=n(39519),g=p("isConcatSpreadable"),h=d>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),f=l(a,0),p=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0)}})},33771:function(e,t,n){"use strict";var r=n(46518),o=n(84373),i=n(6469);r({target:"Array",proto:!0},{fill:o}),i("fill")},2008:function(e,t,n){"use strict";var r=n(46518),o=n(59213).filter;r({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},48980:function(e,t,n){"use strict";var r=n(46518),o=n(59213).findIndex,i=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},13451:function(e,t,n){"use strict";var r=n(46518),o=n(43839).findLastIndex,i=n(6469);r({target:"Array",proto:!0},{findLastIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},10838:function(e,t,n){"use strict";var r=n(46518),o=n(43839).findLast,i=n(6469);r({target:"Array",proto:!0},{findLast:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLast")},50113:function(e,t,n){"use strict";var r=n(46518),o=n(59213).find,i=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},78350:function(e,t,n){"use strict";var r=n(46518),o=n(70259),i=n(79306),a=n(48981),s=n(26198),A=n(1469);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return i(e),(t=A(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},46449:function(e,t,n){"use strict";var r=n(46518),o=n(70259),i=n(48981),a=n(26198),s=n(91291),A=n(1469);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t),r=A(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},51629:function(e,t,n){"use strict";var r=n(46518),o=n(90235);r({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},23418:function(e,t,n){"use strict";var r=n(46518),o=n(97916);r({target:"Array",stat:!0,forced:!n(84428)((function(e){Array.from(e)}))},{from:o})},74423:function(e,t,n){"use strict";var r=n(46518),o=n(19617).includes,i=n(79039),a=n(6469);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},25276:function(e,t,n){"use strict";var r=n(46518),o=n(27476),i=n(19617).indexOf,a=n(34598),s=o([].indexOf),A=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:A||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return A?s(this,e,t)||0:i(this,e,t)}})},64346:function(e,t,n){"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792:function(e,t,n){"use strict";var r=n(25397),o=n(6469),i=n(26269),a=n(91181),s=n(24913).f,A=n(51088),c=n(62529),u=n(96395),l=n(43724),f="Array Iterator",p=a.set,d=a.getterFor(f);e.exports=A(Array,"Array",(function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(e){}},48598:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(47055),a=n(25397),s=n(34598),A=o([].join);r({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return A(a(this),void 0===e?",":e)}})},8921:function(e,t,n){"use strict";var r=n(46518),o=n(8379);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},62062:function(e,t,n){"use strict";var r=n(46518),o=n(59213).map;r({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},31051:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(33517),a=n(97040),s=Array;r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(i(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},44114:function(e,t,n){"use strict";var r=n(46518),o=n(48981),i=n(26198),a=n(34527),s=n(96837);r({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var A=0;A79&&a<83||!i("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},72712:function(e,t,n){"use strict";var r=n(46518),o=n(80926).left,i=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},94490:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(34376),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},34782:function(e,t,n){"use strict";var r=n(46518),o=n(34376),i=n(33517),a=n(20034),s=n(35610),A=n(26198),c=n(25397),u=n(97040),l=n(78227),f=n(70597),p=n(67680),d=f("slice"),g=l("species"),h=Array,v=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,l,f=c(this),d=A(f),m=s(e,d),y=s(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,(i(n)&&(n===h||o(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===h||void 0===n))return p(f,m,y);for(r=new(void 0===n?h:n)(v(y-m,0)),l=0;m1?arguments[1]:void 0)}})},26910:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(79306),a=n(48981),s=n(26198),A=n(84606),c=n(655),u=n(79039),l=n(74488),f=n(34598),p=n(13709),d=n(13763),g=n(39519),h=n(3607),v=[],m=o(v.sort),y=o(v.push),C=u((function(){v.sort(void 0)})),b=u((function(){v.sort(null)})),w=f("sort"),E=!u((function(){if(g)return g<70;if(!(p&&p>3)){if(d)return!0;if(h)return h<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;rc(n)?1:-1}}(e)),n=s(o),r=0;rC-r+n;h--)f(y,h-1)}else if(n>r)for(h=C-r;h>b;h--)m=h+n-1,(v=h+r-1)in y?y[m]=y[v]:f(y,m);for(h=0;h=0&&t<=99?t+1900:t)}})},93515:function(e,t,n){"use strict";n(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},1688:function(e,t,n){"use strict";var r=n(46518),o=n(70380);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},60739:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(48981),a=n(72777);r({target:"Date",proto:!0,arity:1,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},89572:function(e,t,n){"use strict";var r=n(39297),o=n(36840),i=n(53640),a=n(78227)("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i)},23288:function(e,t,n){"use strict";var r=n(79504),o=n(36840),i=Date.prototype,a="Invalid Date",s="toString",A=r(i[s]),c=r(i.getTime);String(new Date(NaN))!==a&&o(i,s,(function(){var e=c(this);return e==e?A(this):a}))},16280:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(18745),a=n(14601),s="WebAssembly",A=o[s],c=7!==new Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},l=function(e,t){if(A&&A[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},76918:function(e,t,n){"use strict";var r=n(36840),o=n(77536),i=Error.prototype;i.toString!==o&&r(i,"toString",o)},36456:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(655),a=o("".charAt),s=o("".charCodeAt),A=o(/./.exec),c=o(1..toString),u=o("".toUpperCase),l=/[\w*+\-./@]/,f=function(e,t){for(var n=c(e,16);n.length94906265.62425156?a(t)+A:o(t-1+s(t-1)*s(t+1))}})},82326:function(e,t,n){"use strict";var r=n(46518),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):i(n+a(n*n+1)):n}})},36389:function(e,t,n){"use strict";var r=n(46518),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:i((1+t)/(1-t))/2}})},64444:function(e,t,n){"use strict";var r=n(46518),o=n(77782),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return o(t)*a(i(t),1/3)}})},8085:function(e,t,n){"use strict";var r=n(46518),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-o(i(t+.5)*a):32}})},77762:function(e,t,n){"use strict";var r=n(46518),o=n(53250),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},65070:function(e,t,n){"use strict";var r=n(46518),o=n(53250);r({target:"Math",stat:!0,forced:o!==Math.expm1},{expm1:o})},60605:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{fround:n(15617)})},39469:function(e,t,n){"use strict";var r=n(46518),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,s=0,A=arguments.length,c=0;s0?(r=n/c)*r:n;return c===1/0?1/0:c*a(o)}})},72152:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!==i(4294967295,5)||2!==i.length}))},{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},75376:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{log10:n(49340)})},56624:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{log1p:n(7740)})},11367:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{log2:n(67787)})},5914:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{sign:n(77782)})},78553:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(53250),a=Math.abs,s=Math.exp,A=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(A/2)}})},98690:function(e,t,n){"use strict";var r=n(46518),o=n(53250),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=o(t),r=o(-t);return n===1/0?1:r===1/0?-1:(n-r)/(i(t)+i(-t))}})},60479:function(e,t,n){"use strict";n(10687)(Math,"Math",!0)},70761:function(e,t,n){"use strict";n(46518)({target:"Math",stat:!0},{trunc:n(80741)})},2892:function(e,t,n){"use strict";var r=n(46518),o=n(96395),i=n(43724),a=n(44576),s=n(19167),A=n(79504),c=n(92796),u=n(39297),l=n(23167),f=n(1625),p=n(10757),d=n(72777),g=n(79039),h=n(38480).f,v=n(77347).f,m=n(24913).f,y=n(31240),C=n(43802).trim,b="Number",w=a[b],E=s[b],x=w.prototype,B=a.TypeError,k=A("".slice),I=A("".charCodeAt),S=c(b,!w(" 0o1")||!w("0b1")||w("+0x1")),T=function(e){var t,n=arguments.length<1?0:w(function(e){var t=d(e,"number");return"bigint"==typeof t?t:function(e){var t,n,r,o,i,a,s,A,c=d(e,"number");if(p(c))throw new B("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=C(c),43===(t=I(c,0))||45===t){if(88===(n=I(c,2))||120===n)return NaN}else if(48===t){switch(I(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=k(c,2)).length,s=0;so)return NaN;return parseInt(i,r)}return+c}(t)}(e));return f(x,t=this)&&g((function(){y(t)}))?l(Object(n),this,T):n};T.prototype=x,S&&!o&&(x.constructor=T),r({global:!0,constructor:!0,wrap:!0,forced:S},{Number:T});var L=function(e,t){for(var n,r=i?h(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)u(t,n=r[o])&&!u(e,n)&&m(e,n,v(t,n))};o&&E&&L(s[b],E),(S||o)&&L(s[b],w)},45374:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},25428:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0},{isFinite:n(50360)})},32637:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0},{isInteger:n(2087)})},40150:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},59149:function(e,t,n){"use strict";var r=n(46518),o=n(2087),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},64601:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},44435:function(e,t,n){"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},87220:function(e,t,n){"use strict";var r=n(46518),o=n(33904);r({target:"Number",stat:!0,forced:Number.parseFloat!==o},{parseFloat:o})},25843:function(e,t,n){"use strict";var r=n(46518),o=n(52703);r({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},62337:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(91291),a=n(31240),s=n(72333),A=n(49340),c=n(79039),u=RangeError,l=String,f=isFinite,p=Math.abs,d=Math.floor,g=Math.pow,h=Math.round,v=o(1..toExponential),m=o(s),y=o("".slice),C="-6.9000e-11"===v(-69e-12,4)&&"1.25e+0"===v(1.255,2)&&"1.235e+4"===v(12345,3)&&"3e+1"===v(25,0);r({target:"Number",proto:!0,forced:!C||!(c((function(){v(1,1/0)}))&&c((function(){v(1,-1/0)})))||!!c((function(){v(1/0,1/0),v(NaN,1/0)}))},{toExponential:function(e){var t=a(this);if(void 0===e)return v(t);var n=i(e);if(!f(t))return String(t);if(n<0||n>20)throw new u("Incorrect fraction digits");if(C)return v(t,n);var r,o,s,c,b="";if(t<0&&(b="-",t=-t),0===t)o=0,r=m("0",n+1);else{var w=A(t);o=d(w);var E=g(10,o-n),x=h(t/E);2*t>=(2*x+1)*E&&(x+=1),x>=g(10,n+1)&&(x/=10,o+=1),r=l(x)}return 0!==n&&(r=y(r,0,1)+"."+y(r,1)),0===o?(s="+",c="0"):(s=o>0?"+":"-",c=l(p(o))),b+(r+"e")+s+c}})},9868:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(91291),a=n(31240),s=n(72333),A=n(79039),c=RangeError,u=String,l=Math.floor,f=o(s),p=o("".slice),d=o(1..toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},h=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=l(o/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=l(r/t),r=r%t*1e7},m=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:A((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!A((function(){d({})}))},{toFixed:function(e){var t,n,r,o,s=a(this),A=i(e),l=[0,0,0,0,0,0],d="",y="0";if(A<0||A>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(l,0,n),r=A;r>=7;)h(l,1e7,0),r-=7;for(h(l,g(10,r,1),0),r=t-1;r>=23;)v(l,1<<23),r-=23;v(l,1<0?d+((o=y.length)<=A?"0."+f("0",A-o)+y:p(y,0,o-A)+"."+p(y,o-A)):d+y}})},80630:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(79039),a=n(31240),s=o(1..toPrecision);r({target:"Number",proto:!0,forced:i((function(){return"1"!==s(1,void 0)}))||!i((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},69085:function(e,t,n){"use strict";var r=n(46518),o=n(44213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},59904:function(e,t,n){"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},17427:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(42551),a=n(79306),s=n(48981),A=n(24913);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){A.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},67945:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(96801).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},84185:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(24913).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},87607:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(42551),a=n(79306),s=n(48981),A=n(24913);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){A.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},5506:function(e,t,n){"use strict";var r=n(46518),o=n(32357).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},52811:function(e,t,n){"use strict";var r=n(46518),o=n(92744),i=n(79039),a=n(20034),s=n(3451).onFreeze,A=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){A(1)})),sham:!o},{freeze:function(e){return A&&a(e)?A(s(e)):e}})},53921:function(e,t,n){"use strict";var r=n(46518),o=n(72652),i=n(97040);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),{AS_ENTRIES:!0}),t}})},83851:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(25397),a=n(77347).f,s=n(43724);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},81278:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(35031),a=n(25397),s=n(77347),A=n(97040);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),u={},l=0;c.length>l;)void 0!==(n=o(r,t=c[l++]))&&A(u,t,n);return u}})},1480:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(10298).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},49773:function(e,t,n){"use strict";var r=n(46518),o=n(4495),i=n(79039),a=n(33717),s=n(48981);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},40875:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(48981),a=n(42787),s=n(12211);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},77691:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(79504),a=n(79306),s=n(67750),A=n(56969),c=n(72652),u=n(79039),l=Object.groupBy,f=o("Object","create"),p=i([].push);r({target:"Object",stat:!0,forced:!l||u((function(){return 1!==l("ab",(function(e){return e})).a.length}))},{groupBy:function(e,t){s(e),a(t);var n=f(null),r=0;return c(e,(function(e){var o=A(t(e,r++));o in n?p(n[o],e):n[o]=[e]})),n}})},78347:function(e,t,n){"use strict";n(46518)({target:"Object",stat:!0},{hasOwn:n(39297)})},94052:function(e,t,n){"use strict";var r=n(46518),o=n(34124);r({target:"Object",stat:!0,forced:Object.isExtensible!==o},{isExtensible:o})},94003:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(20034),a=n(22195),s=n(15652),A=Object.isFrozen;r({target:"Object",stat:!0,forced:s||o((function(){A(1)}))},{isFrozen:function(e){return!i(e)||!(!s||"ArrayBuffer"!==a(e))||!!A&&A(e)}})},221:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(20034),a=n(22195),s=n(15652),A=Object.isSealed;r({target:"Object",stat:!0,forced:s||o((function(){A(1)}))},{isSealed:function(e){return!i(e)||!(!s||"ArrayBuffer"!==a(e))||!!A&&A(e)}})},29908:function(e,t,n){"use strict";n(46518)({target:"Object",stat:!0},{is:n(3470)})},79432:function(e,t,n){"use strict";var r=n(46518),o=n(48981),i=n(71072);r({target:"Object",stat:!0,forced:n(79039)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},9220:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(42551),a=n(48981),s=n(56969),A=n(42787),c=n(77347).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.get}while(n=A(n))}})},7904:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(42551),a=n(48981),s=n(56969),A=n(42787),c=n(77347).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.set}while(n=A(n))}})},93967:function(e,t,n){"use strict";var r=n(46518),o=n(20034),i=n(3451).onFreeze,a=n(92744),s=n(79039),A=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){A(1)})),sham:!a},{preventExtensions:function(e){return A&&o(e)?A(i(e)):e}})},63548:function(e,t,n){"use strict";var r=n(43724),o=n(62106),i=n(20034),a=n(13925),s=n(48981),A=n(67750),c=Object.getPrototypeOf,u=Object.setPrototypeOf,l=Object.prototype,f="__proto__";if(r&&c&&u&&!(f in l))try{o(l,f,{configurable:!0,get:function(){return c(s(this))},set:function(e){var t=A(this);a(e)&&i(t)&&u(t,e)}})}catch(e){}},93941:function(e,t,n){"use strict";var r=n(46518),o=n(20034),i=n(3451).onFreeze,a=n(92744),s=n(79039),A=Object.seal;r({target:"Object",stat:!0,forced:s((function(){A(1)})),sham:!a},{seal:function(e){return A&&o(e)?A(i(e)):e}})},10287:function(e,t,n){"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},26099:function(e,t,n){"use strict";var r=n(92140),o=n(36840),i=n(53179);r||o(Object.prototype,"toString",i,{unsafe:!0})},16034:function(e,t,n){"use strict";var r=n(46518),o=n(32357).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},78459:function(e,t,n){"use strict";var r=n(46518),o=n(33904);r({global:!0,forced:parseFloat!==o},{parseFloat:o})},58940:function(e,t,n){"use strict";var r=n(46518),o=n(52703);r({global:!0,forced:parseInt!==o},{parseInt:o})},96167:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79306),a=n(36043),s=n(1103),A=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,c=1;A(e,(function(e){var i=s++,A=!1;c++,o(n,t,e).then((function(e){A||(A=!0,a[i]={status:"fulfilled",value:e},--c||r(a))}),(function(e){A||(A=!0,a[i]={status:"rejected",reason:e},--c||r(a))}))})),--c||r(a)}));return u.error&&c(u.value),n.promise}})},16499:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79306),a=n(36043),s=n(1103),A=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1;A(e,(function(e){var i=s++,A=!1;u++,o(n,t,e).then((function(e){A||(A=!0,a[i]=e,--u||r(a))}),c)})),--u||r(a)}));return u.error&&c(u.value),n.promise}})},93518:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79306),a=n(97751),s=n(36043),A=n(1103),c=n(72652),u=n(90537),l="No one promise resolved";r({target:"Promise",stat:!0,forced:u},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),u=r.resolve,f=r.reject,p=A((function(){var r=i(t.resolve),a=[],s=0,A=1,p=!1;c(e,(function(e){var i=s++,c=!1;A++,o(r,t,e).then((function(e){c||p||(p=!0,u(e))}),(function(e){c||p||(c=!0,a[i]=e,--A||f(new n(a,l)))}))})),--A||f(new n(a,l))}));return p.error&&f(p.value),r.promise}})},82003:function(e,t,n){"use strict";var r=n(46518),o=n(96395),i=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),A=n(94901),c=n(36840),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&A(a)){var l=s("Promise").prototype.catch;u.catch!==l&&c(u,"catch",l,{unsafe:!0})}},10436:function(e,t,n){"use strict";var r,o,i,a=n(46518),s=n(96395),A=n(38574),c=n(44576),u=n(69565),l=n(36840),f=n(52967),p=n(10687),d=n(87633),g=n(79306),h=n(94901),v=n(20034),m=n(90679),y=n(2293),C=n(59225).set,b=n(91955),w=n(90757),E=n(1103),x=n(18265),B=n(91181),k=n(80550),I=n(10916),S=n(36043),T="Promise",L=I.CONSTRUCTOR,R=I.REJECTION_EVENT,O=I.SUBCLASSING,D=B.getterFor(T),M=B.set,Q=k&&k.prototype,P=k,F=Q,U=c.TypeError,N=c.document,W=c.process,j=S.f,Y=j,G=!!(N&&N.createEvent&&c.dispatchEvent),z="unhandledrejection",_=function(e){var t;return!(!v(e)||!h(t=e.then))&&t},H=function(e,t){var n,r,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,A=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?n=i:(l&&l.enter(),n=s(i),l&&(l.exit(),o=!0)),n===e.promise?c(new U("Promise-chain cycle")):(r=_(n))?u(r,n,A,c):A(n)):c(i)}catch(e){l&&!o&&l.exit(),c(e)}},V=function(e,t){e.notified||(e.notified=!0,b((function(){for(var n,r=e.reactions;n=r.get();)H(n,e);e.notified=!1,t&&!e.rejection&&J(e)})))},Z=function(e,t,n){var r,o;G?((r=N.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!R&&(o=c["on"+e])?o(r):e===z&&w("Unhandled promise rejection",n)},J=function(e){u(C,c,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=E((function(){A?W.emit("unhandledRejection",r,n):Z(z,n,r)})),e.rejection=A||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){u(C,c,(function(){var t=e.facade;A?W.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},q=function(e,t,n){return function(r){e(t,r,n)}},$=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new U("Promise can't be resolved itself");var r=_(t);r?b((function(){var n={done:!1};try{u(r,t,q(ee,n,e),q($,n,e))}catch(t){$(n,t,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(t){$({done:!1},t,e)}}};if(L&&(F=(P=function(e){m(this,F),g(e),u(r,this);var t=D(this);try{e(q(ee,t),q($,t))}catch(e){$(t,e)}}).prototype,(r=function(e){M(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=l(F,"then",(function(e,t){var n=D(this),r=j(y(this,P));return n.parent=!0,r.ok=!h(e)||e,r.fail=h(t)&&t,r.domain=A?W.domain:void 0,0===n.state?n.reactions.add(r):b((function(){H(r,n)})),r.promise})),o=function(){var e=new r,t=D(e);this.promise=e,this.resolve=q(ee,t),this.reject=q($,t)},S.f=j=function(e){return e===P||void 0===e?new o(e):Y(e)},!s&&h(k)&&Q!==Object.prototype)){i=Q.then,O||l(Q,"then",(function(e,t){var n=this;return new P((function(e,t){u(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Q.constructor}catch(e){}f&&f(Q,F)}a({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:P}),p(P,T,!1,!0),d(T)},9391:function(e,t,n){"use strict";var r=n(46518),o=n(96395),i=n(80550),a=n(79039),s=n(97751),A=n(94901),c=n(2293),u=n(93438),l=n(36840),f=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=A(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!o&&A(i)){var p=s("Promise").prototype.finally;f.finally!==p&&l(f,"finally",p,{unsafe:!0})}},3362:function(e,t,n){"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79306),a=n(36043),s=n(1103),A=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=i(t.resolve);A(e,(function(e){o(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},51481:function(e,t,n){"use strict";var r=n(46518),o=n(36043);r({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},40280:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(96395),a=n(80550),s=n(10916).CONSTRUCTOR,A=n(93438),c=o("Promise"),u=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return A(u&&this===c?a:this,e)}})},31689:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(18745),a=n(67680),s=n(36043),A=n(79306),c=n(1103),u=o.Promise,l=!1;r({target:"Promise",stat:!0,forced:!u||!u.try||c((function(){u.try((function(e){l=8===e}),8)})).error||!l},{try:function(e){var t=arguments.length>1?a(arguments,1):[],n=s.f(this),r=c((function(){return i(A(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},14628:function(e,t,n){"use strict";var r=n(46518),o=n(36043);r({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},39796:function(e,t,n){"use strict";var r=n(46518),o=n(18745),i=n(79306),a=n(28551);r({target:"Reflect",stat:!0,forced:!n(79039)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return o(i(e),t,a(n))}})},60825:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(18745),a=n(30566),s=n(35548),A=n(28551),c=n(20034),u=n(2360),l=n(79039),f=o("Reflect","construct"),p=Object.prototype,d=[].push,g=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!l((function(){f((function(){}))})),v=g||h;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),A(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!g)return f(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(d,r,t),new(i(a,e,r))}var o=n.prototype,l=u(c(o)?o:p),v=i(e,l,t);return c(v)?v:l}})},87411:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(28551),a=n(56969),s=n(24913);r({target:"Reflect",stat:!0,forced:n(79039)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t);i(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},21211:function(e,t,n){"use strict";var r=n(46518),o=n(28551),i=n(77347).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},9065:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(28551),a=n(77347);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},86565:function(e,t,n){"use strict";var r=n(46518),o=n(28551),i=n(42787);r({target:"Reflect",stat:!0,sham:!n(12211)},{getPrototypeOf:function(e){return i(o(e))}})},40888:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(20034),a=n(28551),s=n(16575),A=n(77347),c=n(42787);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,u,l=arguments.length<3?t:arguments[2];return a(t)===l?t[n]:(r=A.f(t,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,l):i(u=c(t))?e(u,n,l):void 0}})},32812:function(e,t,n){"use strict";n(46518)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},84634:function(e,t,n){"use strict";var r=n(46518),o=n(28551),i=n(34124);r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),i(e)}})},71137:function(e,t,n){"use strict";n(46518)({target:"Reflect",stat:!0},{ownKeys:n(35031)})},30985:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(28551);r({target:"Reflect",stat:!0,sham:!n(92744)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},34873:function(e,t,n){"use strict";var r=n(46518),o=n(28551),i=n(73506),a=n(52967);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(e){return!1}}})},34268:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(28551),a=n(20034),s=n(16575),A=n(79039),c=n(24913),u=n(77347),l=n(42787),f=n(6980);r({target:"Reflect",stat:!0,forced:A((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var A,p,d,g=arguments.length<4?t:arguments[3],h=u.f(i(t),n);if(!h){if(a(p=l(t)))return e(p,n,r,g);h=f(0)}if(s(h)){if(!1===h.writable||!a(g))return!1;if(A=u.f(g,n)){if(A.get||A.set||!1===A.writable)return!1;A.value=r,c.f(g,n,A)}else c.f(g,n,f(0,r))}else{if(void 0===(d=h.set))return!1;o(d,g,r)}return!0}})},15472:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(10687);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},84864:function(e,t,n){"use strict";var r=n(43724),o=n(44576),i=n(79504),a=n(92796),s=n(23167),A=n(66699),c=n(2360),u=n(38480).f,l=n(1625),f=n(60788),p=n(655),d=n(61034),g=n(58429),h=n(11056),v=n(36840),m=n(79039),y=n(39297),C=n(91181).enforce,b=n(87633),w=n(78227),E=n(83635),x=n(18814),B=w("match"),k=o.RegExp,I=k.prototype,S=o.SyntaxError,T=i(I.exec),L=i("".charAt),R=i("".replace),O=i("".indexOf),D=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Q=/a/g,P=/a/g,F=new k(Q)!==Q,U=g.MISSED_STICKY,N=g.UNSUPPORTED_Y;if(a("RegExp",r&&(!F||U||E||x||m((function(){return P[B]=!1,k(Q)!==Q||k(P)===P||"/a/i"!==String(k(Q,"i"))}))))){for(var W=function(e,t){var n,r,o,i,a,u,g=l(I,this),h=f(e),v=void 0===t,m=[],b=e;if(!g&&h&&v&&e.constructor===W)return e;if((h||l(I,e))&&(e=e.source,v&&(t=d(b))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),b=e,E&&"dotAll"in Q&&(r=!!t&&O(t,"s")>-1)&&(t=R(t,/s/g,"")),n=t,U&&"sticky"in Q&&(o=!!t&&O(t,"y")>-1)&&N&&(t=R(t,/y/g,"")),x&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a=c(null),s=!1,A=!1,u=0,l="";r<=n;r++){if("\\"===(t=L(e,r)))t+=L(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(o+=t,"?:"===D(e,r+1,r+3))continue;T(M,D(e,r+1))&&(r+=2,A=!0),u++;continue;case">"===t&&A:if(""===l||y(a,l))throw new S("Invalid capture group name");a[l]=!0,i[i.length]=[l,u],A=!1,l="";continue}A?l+=t:o+=t}return[o,i]}(e),e=i[0],m=i[1]),a=s(k(e,t),g?this:I,W),(r||o||m.length)&&(u=C(a),r&&(u.dotAll=!0,u.raw=W(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=L(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+L(e,++r);return o}(e),n)),o&&(u.sticky=!0),m.length&&(u.groups=m)),e!==b)try{A(a,"source",""===b?"(?:)":b)}catch(e){}return a},j=u(k),Y=0;j.length>Y;)h(W,k,j[Y++]);I.constructor=W,W.prototype=I,v(o,"RegExp",W,{constructor:!0})}b("RegExp")},57465:function(e,t,n){"use strict";var r=n(43724),o=n(83635),i=n(22195),a=n(62106),s=n(91181).get,A=RegExp.prototype,c=TypeError;r&&o&&a(A,"dotAll",{configurable:!0,get:function(){if(this!==A){if("RegExp"===i(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},27495:function(e,t,n){"use strict";var r=n(46518),o=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},69479:function(e,t,n){"use strict";var r=n(44576),o=n(43724),i=n(62106),a=n(67979),s=n(79039),A=r.RegExp,c=A.prototype;o&&s((function(){var e=!0;try{A(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&i(c,"flags",{configurable:!0,get:a})},87745:function(e,t,n){"use strict";var r=n(43724),o=n(58429).MISSED_STICKY,i=n(22195),a=n(62106),s=n(91181).get,A=RegExp.prototype,c=TypeError;r&&o&&a(A,"sticky",{configurable:!0,get:function(){if(this!==A){if("RegExp"===i(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},90906:function(e,t,n){"use strict";n(27495);var r,o,i=n(46518),a=n(69565),s=n(94901),A=n(28551),c=n(655),u=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),l=/./.test;i({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=A(this),n=c(e),r=t.exec;if(!s(r))return a(l,t,n);var o=a(r,t,n);return null!==o&&(A(o),!0)}})},38781:function(e,t,n){"use strict";var r=n(10350).PROPER,o=n(36840),i=n(28551),a=n(655),s=n(79039),A=n(61034),c="toString",u=RegExp.prototype,l=u[c],f=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),p=r&&l.name!==c;(f||p)&&o(u,c,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(A(e))}),{unsafe:!0})},92405:function(e,t,n){"use strict";n(16468)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},17642:function(e,t,n){"use strict";var r=n(46518),o=n(83440);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(e){return 0===e.size}))},{difference:o})},58004:function(e,t,n){"use strict";var r=n(46518),o=n(79039),i=n(68750);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},33853:function(e,t,n){"use strict";var r=n(46518),o=n(64449);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:o})},45876:function(e,t,n){"use strict";var r=n(46518),o=n(53838);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(e){return e}))},{isSubsetOf:o})},32475:function(e,t,n){"use strict";var r=n(46518),o=n(28527);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:o})},31415:function(e,t,n){"use strict";n(92405)},15024:function(e,t,n){"use strict";var r=n(46518),o=n(83650);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")},{symmetricDifference:o})},31698:function(e,t,n){"use strict";var r=n(46518),o=n(44204);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")},{union:o})},89907:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},67357:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(67750),a=n(91291),s=n(655),A=n(79039),c=o("".charAt);r({target:"String",proto:!0,forced:A((function(){return"\ud842"!=="๐ ฎท".at(-2)}))},{at:function(e){var t=s(i(this)),n=t.length,r=a(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:c(t,o)}})},11898:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("big")},{big:function(){return o(this,"big","","")}})},35490:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("blink")},{blink:function(){return o(this,"blink","","")}})},5745:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("bold")},{bold:function(){return o(this,"b","","")}})},23860:function(e,t,n){"use strict";var r=n(46518),o=n(68183).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},99449:function(e,t,n){"use strict";var r,o=n(46518),i=n(27476),a=n(77347).f,s=n(18014),A=n(655),c=n(60511),u=n(67750),l=n(41436),f=n(96395),p=i("".slice),d=Math.min,g=l("endsWith");o({target:"String",proto:!0,forced:!(!f&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(e){var t=A(u(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:d(s(n),r),i=A(e);return p(t,o-i.length,o)===i}})},94298:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("fixed")},{fixed:function(){return o(this,"tt","","")}})},60268:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},69546:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},27337:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(35610),a=RangeError,s=String.fromCharCode,A=String.fromCodePoint,c=o([].join);r({target:"String",stat:!0,arity:1,forced:!!A&&1!==A.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw new a(t+" is not a valid code point");n[o]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},21699:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(60511),a=n(67750),s=n(655),A=n(41436),c=o("".indexOf);r({target:"String",proto:!0,forced:!A("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},42043:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(67750),a=n(655),s=o("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=a(i(this)),t=e.length,n=0;n=56320||++n>=t||56320!=(64512&s(e,n))))return!1}return!0}})},20781:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("italics")},{italics:function(){return o(this,"i","","")}})},47764:function(e,t,n){"use strict";var r=n(68183).charAt,o=n(655),i=n(91181),a=n(51088),s=n(62529),A="String Iterator",c=i.set,u=i.getterFor(A);a(String,"String",(function(e){c(this,{type:A,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},50778:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("link")},{link:function(e){return o(this,"a","href",e)}})},28543:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(27476),a=n(33994),s=n(62529),A=n(67750),c=n(18014),u=n(655),l=n(28551),f=n(64117),p=n(22195),d=n(60788),g=n(61034),h=n(55966),v=n(36840),m=n(79039),y=n(78227),C=n(2293),b=n(57829),w=n(56682),E=n(91181),x=n(96395),B=y("matchAll"),k="RegExp String",I=k+" Iterator",S=E.set,T=E.getterFor(I),L=RegExp.prototype,R=TypeError,O=i("".indexOf),D=i("".matchAll),M=!!D&&!m((function(){D("a",/./)})),Q=a((function(e,t,n,r){S(this,{type:I,regexp:e,string:t,global:n,unicode:r,done:!1})}),k,(function(){var e=T(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=w(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===u(r[0])&&(t.lastIndex=b(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),P=function(e){var t,n,r,o=l(this),i=u(e),a=C(o,RegExp),s=u(g(o));return t=new a(a===RegExp?o.source:o,s),n=!!~O(s,"g"),r=!!~O(s,"u"),t.lastIndex=c(o.lastIndex),new Q(t,i,n,r)};r({target:"String",proto:!0,forced:M},{matchAll:function(e){var t,n,r,i,a=A(this);if(f(e)){if(M)return D(a,e)}else{if(d(e)&&(t=u(A(g(e))),!~O(t,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(M)return D(a,e);if(void 0===(r=h(e,B))&&x&&"RegExp"===p(e)&&(r=P),r)return o(r,e,a)}return n=u(a),i=new RegExp(e,"g"),x?o(P,i,n):i[B](n)}}),x||B in L||v(L,B,P)},71761:function(e,t,n){"use strict";var r=n(69565),o=n(89228),i=n(28551),a=n(64117),s=n(18014),A=n(655),c=n(67750),u=n(55966),l=n(57829),f=n(56682);o("match",(function(e,t,n){return[function(t){var n=c(this),o=a(t)?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](A(n))},function(e){var r=i(this),o=A(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return f(r,o);var c=r.unicode;r.lastIndex=0;for(var u,p=[],d=0;null!==(u=f(r,o));){var g=A(u[0]);p[d]=g,""===g&&(r.lastIndex=l(o,s(r.lastIndex),c)),d++}return 0===d?null:p}]}))},35701:function(e,t,n){"use strict";var r=n(46518),o=n(60533).end;r({target:"String",proto:!0,forced:n(83063)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},68156:function(e,t,n){"use strict";var r=n(46518),o=n(60533).start;r({target:"String",proto:!0,forced:n(83063)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},85906:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(25397),a=n(48981),s=n(655),A=n(26198),c=o([].push),u=o([].join);r({target:"String",stat:!0},{raw:function(e){var t=i(a(e).raw),n=A(t);if(!n)return"";for(var r=arguments.length,o=[],l=0;;){if(c(o,s(t[l++])),l===n)return u(o,"");ld.length?-1:m(d,w,k+B);return T=L&&(T+=B(s,L,M)+O,L=M+D.length)}return T+B(s,L)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!k||I)},5746:function(e,t,n){"use strict";var r=n(69565),o=n(89228),i=n(28551),a=n(64117),s=n(67750),A=n(3470),c=n(655),u=n(55966),l=n(56682);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),o=c(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;A(s,0)||(r.lastIndex=0);var u=l(r,o);return A(r.lastIndex,s)||(r.lastIndex=s),null===u?-1:u.index}]}))},89195:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("small")},{small:function(){return o(this,"small","","")}})},90744:function(e,t,n){"use strict";var r=n(69565),o=n(79504),i=n(89228),a=n(28551),s=n(64117),A=n(67750),c=n(2293),u=n(57829),l=n(18014),f=n(655),p=n(55966),d=n(56682),g=n(58429),h=n(79039),v=g.UNSUPPORTED_Y,m=Math.min,y=o([].push),C=o("".slice),b=!h((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(e,t,n){var o="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var i=A(this),a=s(t)?void 0:p(t,e);return a?r(a,t,i,n):r(o,f(i),t,n)},function(e,r){var i=a(this),s=f(e);if(!w){var A=n(o,i,s,r,o!==t);if(A.done)return A.value}var p=c(i,RegExp),g=i.unicode,h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(v?"g":"y"),b=new p(v?"^(?:"+i.source+")":i,h),E=void 0===r?4294967295:r>>>0;if(0===E)return[];if(0===s.length)return null===d(b,s)?[s]:[];for(var x=0,B=0,k=[];B1?arguments[1]:void 0,t.length)),r=A(e);return p(t,n,n+r.length)===r}})},46276:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("strike")},{strike:function(){return o(this,"strike","","")}})},48718:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("sub")},{sub:function(){return o(this,"sub","","")}})},50375:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(67750),a=n(91291),s=n(655),A=o("".slice),c=Math.max,u=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,o=s(i(this)),l=o.length,f=a(e);return f===1/0&&(f=0),f<0&&(f=c(l+f,0)),(n=void 0===t?l:a(t))<=0||n===1/0||f>=(r=u(f+n,l))?"":A(o,f,r)}})},16308:function(e,t,n){"use strict";var r=n(46518),o=n(77240);r({target:"String",proto:!0,forced:n(23061)("sup")},{sup:function(){return o(this,"sup","","")}})},67438:function(e,t,n){"use strict";var r=n(46518),o=n(69565),i=n(79504),a=n(67750),s=n(655),A=n(79039),c=Array,u=i("".charAt),l=i("".charCodeAt),f=i([].join),p="".toWellFormed,d=p&&A((function(){return"1"!==o(p,1)}));r({target:"String",proto:!0,forced:d},{toWellFormed:function(){var e=s(a(this));if(d)return o(p,e);for(var t=e.length,n=c(t),r=0;r=56320||r+1>=t||56320!=(64512&l(e,r+1))?n[r]="๏ฟฝ":(n[r]=u(e,r),n[++r]=u(e,r))}return f(n,"")}})},39202:function(e,t,n){"use strict";n(33313);var r=n(46518),o=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==o},{trimEnd:o})},58934:function(e,t,n){"use strict";var r=n(46518),o=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==o},{trimLeft:o})},33313:function(e,t,n){"use strict";var r=n(46518),o=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==o},{trimRight:o})},43359:function(e,t,n){"use strict";n(58934);var r=n(46518),o=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==o},{trimStart:o})},42762:function(e,t,n){"use strict";var r=n(46518),o=n(43802).trim;r({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return o(this)}})},66412:function(e,t,n){"use strict";n(70511)("asyncIterator")},6761:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(69565),a=n(79504),s=n(96395),A=n(43724),c=n(4495),u=n(79039),l=n(39297),f=n(1625),p=n(28551),d=n(25397),g=n(56969),h=n(655),v=n(6980),m=n(2360),y=n(71072),C=n(38480),b=n(10298),w=n(33717),E=n(77347),x=n(24913),B=n(96801),k=n(48773),I=n(36840),S=n(62106),T=n(25745),L=n(66119),R=n(30421),O=n(33392),D=n(78227),M=n(1951),Q=n(70511),P=n(58242),F=n(10687),U=n(91181),N=n(59213).forEach,W=L("hidden"),j="Symbol",Y="prototype",G=U.set,z=U.getterFor(j),_=Object[Y],H=o.Symbol,V=H&&H[Y],Z=o.RangeError,J=o.TypeError,K=o.QObject,X=E.f,q=x.f,$=b.f,ee=k.f,te=a([].push),ne=T("symbols"),re=T("op-symbols"),oe=T("wks"),ie=!K||!K[Y]||!K[Y].findChild,ae=function(e,t,n){var r=X(_,t);r&&delete _[t],q(e,t,n),r&&e!==_&&q(_,t,r)},se=A&&u((function(){return 7!==m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?ae:q,Ae=function(e,t){var n=ne[e]=m(V);return G(n,{type:j,tag:e,description:t}),A||(n.description=t),n},ce=function(e,t,n){e===_&&ce(re,t,n),p(e);var r=g(t);return p(n),l(ne,r)?(n.enumerable?(l(e,W)&&e[W][r]&&(e[W][r]=!1),n=m(n,{enumerable:v(0,!1)})):(l(e,W)||q(e,W,v(1,m(null))),e[W][r]=!0),se(e,r,n)):q(e,r,n)},ue=function(e,t){p(e);var n=d(t),r=y(n).concat(de(n));return N(r,(function(t){A&&!i(le,n,t)||ce(e,t,n[t])})),e},le=function(e){var t=g(e),n=i(ee,this,t);return!(this===_&&l(ne,t)&&!l(re,t))&&(!(n||!l(this,t)||!l(ne,t)||l(this,W)&&this[W][t])||n)},fe=function(e,t){var n=d(e),r=g(t);if(n!==_||!l(ne,r)||l(re,r)){var o=X(n,r);return!o||!l(ne,r)||l(n,W)&&n[W][r]||(o.enumerable=!0),o}},pe=function(e){var t=$(d(e)),n=[];return N(t,(function(e){l(ne,e)||l(R,e)||te(n,e)})),n},de=function(e){var t=e===_,n=$(t?re:d(e)),r=[];return N(n,(function(e){!l(ne,e)||t&&!l(_,e)||te(r,ne[e])})),r};c||(H=function(){if(f(V,this))throw new J("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=O(e),n=function(e){var r=void 0===this?o:this;r===_&&i(n,re,e),l(r,W)&&l(r[W],t)&&(r[W][t]=!1);var a=v(1,e);try{se(r,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(r,t,a)}};return A&&ie&&se(_,t,{configurable:!0,set:n}),Ae(t,e)},I(V=H[Y],"toString",(function(){return z(this).tag})),I(H,"withoutSetter",(function(e){return Ae(O(e),e)})),k.f=le,x.f=ce,B.f=ue,E.f=fe,C.f=b.f=pe,w.f=de,M.f=function(e){return Ae(D(e),e)},A&&(S(V,"description",{configurable:!0,get:function(){return z(this).description}}),s||I(_,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),N(y(oe),(function(e){Q(e)})),r({target:j,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!A},{create:function(e,t){return void 0===t?m(e):ue(m(e),t)},defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe}),P(),F(H,j),R[W]=!0},89463:function(e,t,n){"use strict";var r=n(46518),o=n(43724),i=n(44576),a=n(79504),s=n(39297),A=n(94901),c=n(1625),u=n(655),l=n(62106),f=n(77740),p=i.Symbol,d=p&&p.prototype;if(o&&A(p)&&(!("description"in d)||void 0!==p().description)){var g={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(d,this)?new p(e):void 0===e?p():p(e);return""===e&&(g[t]=!0),t};f(h,p),h.prototype=d,d.constructor=h;var v="Symbol(description detection)"===String(p("description detection")),m=a(d.valueOf),y=a(d.toString),C=/^Symbol\((.*)\)[^)]+$/,b=a("".replace),w=a("".slice);l(d,"description",{configurable:!0,get:function(){var e=m(this);if(s(g,e))return"";var t=y(e),n=v?w(t,7,-1):b(t,C,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:h})}},81510:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(39297),a=n(655),s=n(25745),A=n(91296),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=o("Symbol")(t);return c[t]=n,u[n]=t,n}})},60193:function(e,t,n){"use strict";n(70511)("hasInstance")},92168:function(e,t,n){"use strict";n(70511)("isConcatSpreadable")},2259:function(e,t,n){"use strict";n(70511)("iterator")},52675:function(e,t,n){"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},97812:function(e,t,n){"use strict";var r=n(46518),o=n(39297),i=n(10757),a=n(16823),s=n(25745),A=n(91296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},83142:function(e,t,n){"use strict";n(70511)("matchAll")},86964:function(e,t,n){"use strict";n(70511)("match")},83237:function(e,t,n){"use strict";n(70511)("replace")},61833:function(e,t,n){"use strict";n(70511)("search")},67947:function(e,t,n){"use strict";n(70511)("species")},31073:function(e,t,n){"use strict";n(70511)("split")},45700:function(e,t,n){"use strict";var r=n(70511),o=n(58242);r("toPrimitive"),o()},78125:function(e,t,n){"use strict";var r=n(97751),o=n(70511),i=n(10687);o("toStringTag"),i(r("Symbol"),"Symbol")},20326:function(e,t,n){"use strict";n(70511)("unscopables")},48140:function(e,t,n){"use strict";var r=n(94644),o=n(26198),i=n(91291),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=o(t),r=i(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},81630:function(e,t,n){"use strict";var r=n(79504),o=n(94644),i=r(n(57029)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},72170:function(e,t,n){"use strict";var r=n(94644),o=n(59213).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},75044:function(e,t,n){"use strict";var r=n(94644),o=n(84373),i=n(75854),a=n(36955),s=n(69565),A=n(79504),c=n(79039),u=r.aTypedArray,l=r.exportTypedArrayMethod,f=A("".slice);l("fill",(function(e){var t=arguments.length;u(this);var n="Big"===f(a(this),0,3)?i(e):+e;return s(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},69539:function(e,t,n){"use strict";var r=n(94644),o=n(59213).filter,i=n(29948),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},89955:function(e,t,n){"use strict";var r=n(94644),o=n(59213).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},91134:function(e,t,n){"use strict";var r=n(94644),o=n(43839).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},21903:function(e,t,n){"use strict";var r=n(94644),o=n(43839).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},31694:function(e,t,n){"use strict";var r=n(94644),o=n(59213).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},34594:function(e,t,n){"use strict";n(15823)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},29833:function(e,t,n){"use strict";n(15823)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},33206:function(e,t,n){"use strict";var r=n(94644),o=n(59213).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},48345:function(e,t,n){"use strict";var r=n(72805);(0,n(94644).exportTypedArrayStaticMethod)("from",n(43251),r)},44496:function(e,t,n){"use strict";var r=n(94644),o=n(19617).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},66651:function(e,t,n){"use strict";var r=n(94644),o=n(19617).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},72107:function(e,t,n){"use strict";n(15823)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},95477:function(e,t,n){"use strict";n(15823)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},46594:function(e,t,n){"use strict";n(15823)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},12887:function(e,t,n){"use strict";var r=n(44576),o=n(79039),i=n(79504),a=n(94644),s=n(23792),A=n(78227)("iterator"),c=r.Uint8Array,u=i(s.values),l=i(s.keys),f=i(s.entries),p=a.aTypedArray,d=a.exportTypedArrayMethod,g=c&&c.prototype,h=!o((function(){g[A].call([1])})),v=!!g&&g.values&&g[A]===g.values&&"values"===g.values.name,m=function(){return u(p(this))};d("entries",(function(){return f(p(this))}),h),d("keys",(function(){return l(p(this))}),h),d("values",m,h||!v,{name:"values"}),d(A,m,h||!v,{name:"values"})},19369:function(e,t,n){"use strict";var r=n(94644),o=n(79504),i=r.aTypedArray,a=r.exportTypedArrayMethod,s=o([].join);a("join",(function(e){return s(i(this),e)}))},66812:function(e,t,n){"use strict";var r=n(94644),o=n(18745),i=n(8379),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},8995:function(e,t,n){"use strict";var r=n(94644),o=n(59213).map,i=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},52568:function(e,t,n){"use strict";var r=n(94644),o=n(72805),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},36072:function(e,t,n){"use strict";var r=n(94644),o=n(80926).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},31575:function(e,t,n){"use strict";var r=n(94644),o=n(80926).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},88747:function(e,t,n){"use strict";var r=n(94644),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i1?arguments[1]:void 0,1),n=A(e);if(h)return o(p,this,n,t);var r=this.length,i=a(n),c=0;if(i+t>r)throw new u("Wrong length");for(;co;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},57301:function(e,t,n){"use strict";var r=n(94644),o=n(59213).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},373:function(e,t,n){"use strict";var r=n(44576),o=n(27476),i=n(79039),a=n(79306),s=n(74488),A=n(94644),c=n(13709),u=n(13763),l=n(39519),f=n(3607),p=A.aTypedArray,d=A.exportTypedArrayMethod,g=r.Uint16Array,h=g&&o(g.prototype.sort),v=!(!h||i((function(){h(new g(2),null)}))&&i((function(){h(new g(2),{})}))),m=!!h&&!i((function(){if(l)return l<74;if(c)return c<67;if(u)return!0;if(f)return f<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(h(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));d("sort",(function(e){return void 0!==e&&a(e),m?h(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!m||v)},86614:function(e,t,n){"use strict";var r=n(94644),o=n(18014),i=n(35610),a=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=a(this),r=n.length,A=i(e,r);return new(s(n))(n.buffer,n.byteOffset+A*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-A))}))},41405:function(e,t,n){"use strict";var r=n(44576),o=n(18745),i=n(94644),a=n(79039),s=n(67680),A=r.Int8Array,c=i.aTypedArray,u=i.exportTypedArrayMethod,l=[].toLocaleString,f=!!A&&a((function(){l.call(new A(1))}));u("toLocaleString",(function(){return o(l,f?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new A([1,2]).toLocaleString()}))||!a((function(){A.prototype.toLocaleString.call([1,2])})))},37467:function(e,t,n){"use strict";var r=n(37628),o=n(94644),i=o.aTypedArray,a=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;a("toReversed",(function(){return r(i(this),s(this))}))},44732:function(e,t,n){"use strict";var r=n(94644),o=n(79504),i=n(79306),a=n(35370),s=r.aTypedArray,A=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,u=o(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),n=a(A(t),t);return u(n,e)}))},33684:function(e,t,n){"use strict";var r=n(94644).exportTypedArrayMethod,o=n(79039),i=n(44576),a=n(79504),s=i.Uint8Array,A=s&&s.prototype||{},c=[].toString,u=a([].join);o((function(){c.call({})}))&&(c=function(){return u(this)});var l=A.toString!==c;r("toString",c,l)},3690:function(e,t,n){"use strict";n(15823)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},61740:function(e,t,n){"use strict";n(15823)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},21489:function(e,t,n){"use strict";n(15823)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},22134:function(e,t,n){"use strict";n(15823)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},79577:function(e,t,n){"use strict";var r=n(39928),o=n(94644),i=n(18727),a=n(91291),s=n(75854),A=o.aTypedArray,c=o.getTypedArrayConstructor,u=o.exportTypedArrayMethod,l=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var n=A(this),o=a(e),u=i(n)?s(t):+t;return r(n,c(n),o,u)}}.with,!l)},88267:function(e,t,n){"use strict";var r=n(46518),o=n(79504),i=n(655),a=String.fromCharCode,s=o("".charAt),A=o(/./.exec),c=o("".slice),u=/^[\da-f]{2}$/i,l=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=i(e),o="",f=r.length,p=0;p>(-2*x&6)));return A}})},42207:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(97751),a=n(79504),s=n(69565),A=n(79039),c=n(655),u=n(22812),l=n(92804).i2c,f=i("btoa"),p=a("".charAt),d=a("".charCodeAt),g=!!f&&!A((function(){return"aGk="!==f("hi")})),h=g&&!A((function(){f()})),v=g&&A((function(){return"bnVsbA=="!==f(null)})),m=g&&1!==f.length;r({global:!0,bind:!0,enumerable:!0,forced:!g||h||v||m},{btoa:function(e){if(u(arguments.length,1),g)return s(f,o,c(e));for(var t,n,r=c(e),a="",A=0,h=l;p(r,A)||(h="=",A%1);){if((n=d(r,A+=3/4))>255)throw new(i("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=p(h,63&(t=t<<8|n)>>8-A%1*8)}return a}})},86368:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(59225).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},23500:function(e,t,n){"use strict";var r=n(44576),o=n(67400),i=n(79296),a=n(90235),s=n(66699),A=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&A(r[c]&&r[c].prototype);A(i)},62953:function(e,t,n){"use strict";var r=n(44576),o=n(67400),i=n(79296),a=n(23792),s=n(66699),A=n(10687),c=n(78227)("iterator"),u=a.values,l=function(e,t){if(e){if(e[c]!==u)try{s(e,c,u)}catch(t){e[c]=u}if(A(e,t,!0),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)l(r[f]&&r[f].prototype,f);l(i,"DOMTokenList")},55815:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(89429),a=n(79039),s=n(2360),A=n(6980),c=n(24913).f,u=n(36840),l=n(62106),f=n(39297),p=n(90679),d=n(28551),g=n(77536),h=n(32603),v=n(55002),m=n(16193),y=n(91181),C=n(43724),b=n(96395),w="DOMException",E="DATA_CLONE_ERR",x=o("Error"),B=o(w)||function(){try{(new(o("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===E&&25===e.code)return e.constructor}}(),k=B&&B.prototype,I=x.prototype,S=y.set,T=y.getterFor(w),L="stack"in new x(w),R=function(e){return f(v,e)&&v[e].m?v[e].c:0},O=function(){p(this,D);var e=arguments.length,t=h(e<1?void 0:arguments[0]),n=h(e<2?void 0:arguments[1],"Error"),r=R(n);if(S(this,{type:w,name:n,message:t,code:r}),C||(this.name=n,this.message=t,this.code=r),L){var o=new x(t);o.name=w,c(this,"stack",A(1,m(o.stack,1)))}},D=O.prototype=s(I),M=function(e){return{enumerable:!0,configurable:!0,get:e}},Q=function(e){return M((function(){return T(this)[e]}))};C&&(l(D,"code",Q("code")),l(D,"message",Q("message")),l(D,"name",Q("name"))),c(D,"constructor",A(1,O));var P=a((function(){return!(new B instanceof x)})),F=P||a((function(){return I.toString!==g||"2: 1"!==String(new B(1,2))})),U=P||a((function(){return 25!==new B(1,"DataCloneError").code})),N=P||25!==B[E]||25!==k[E],W=b?F||U||N:P;r({global:!0,constructor:!0,forced:W},{DOMException:W?O:B});var j=o(w),Y=j.prototype;for(var G in F&&(b||B===j)&&u(Y,"toString",g),U&&C&&B===j&&l(Y,"code",M((function(){return R(d(this).name)}))),v)if(f(v,G)){var z=v[G],_=z.s,H=A(6,z.c);f(j,_)||c(j,_,H),f(Y,_)||c(Y,_,H)}},64979:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(97751),a=n(6980),s=n(24913).f,A=n(39297),c=n(90679),u=n(23167),l=n(32603),f=n(55002),p=n(16193),d=n(43724),g=n(96395),h="DOMException",v=i("Error"),m=i(h),y=function(){c(this,C);var e=arguments.length,t=l(e<1?void 0:arguments[0]),n=l(e<2?void 0:arguments[1],"Error"),r=new m(t,n),o=new v(t);return o.name=h,s(r,"stack",a(1,p(o.stack,1))),u(r,this,y),r},C=y.prototype=m.prototype,b="stack"in new v(h),w="stack"in new m(1,2),E=m&&d&&Object.getOwnPropertyDescriptor(o,h),x=!(!E||E.writable&&E.configurable),B=b&&!x&&!w;r({global:!0,constructor:!0,forced:g||B},{DOMException:B?y:m});var k=i(h),I=k.prototype;if(I.constructor!==k)for(var S in g||s(I,"constructor",a(1,k)),f)if(A(f,S)){var T=f[S],L=T.s;A(k,L)||s(k,L,a(6,T.c))}},79739:function(e,t,n){"use strict";var r=n(97751),o="DOMException";n(10687)(r(o),o)},59848:function(e,t,n){"use strict";n(86368),n(29309)},122:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(91955),a=n(79306),s=n(22812),A=n(79039),c=n(43724);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A((function(){return c&&1!==Object.getOwnPropertyDescriptor(o,"queueMicrotask").value.length}))},{queueMicrotask:function(e){s(arguments.length,1),i(a(e))}})},13611:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(62106),a=n(43724),s=TypeError,A=Object.defineProperty,c=o.self!==o;try{if(a){var u=Object.getOwnPropertyDescriptor(o,"self");!c&&u&&u.get&&u.enumerable||i(o,"self",{get:function(){return o},set:function(e){if(this!==o)throw new s("Illegal invocation");A(o,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:o})}catch(e){}},29309:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(59225).set,a=n(79472),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},15575:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(79472)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},24599:function(e,t,n){"use strict";var r=n(46518),o=n(44576),i=n(79472)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},71678:function(e,t,n){"use strict";var r,o=n(96395),i=n(46518),a=n(44576),s=n(97751),A=n(79504),c=n(79039),u=n(33392),l=n(94901),f=n(33517),p=n(64117),d=n(20034),g=n(10757),h=n(72652),v=n(28551),m=n(36955),y=n(39297),C=n(97040),b=n(66699),w=n(26198),E=n(22812),x=n(61034),B=n(72248),k=n(94402),I=n(38469),S=n(94483),T=n(24659),L=n(1548),R=a.Object,O=a.Array,D=a.Date,M=a.Error,Q=a.TypeError,P=a.PerformanceMark,F=s("DOMException"),U=B.Map,N=B.has,W=B.get,j=B.set,Y=k.Set,G=k.add,z=k.has,_=s("Object","keys"),H=A([].push),V=A((!0).valueOf),Z=A(1..valueOf),J=A("".valueOf),K=A(D.prototype.getTime),X=u("structuredClone"),q="DataCloneError",$="Transferring",ee=function(e){return!c((function(){var t=new a.Set([7]),n=e(t),r=e(R(7));return n===t||!n.has(7)||!d(r)||7!=+r}))&&e},te=function(e,t){return!c((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ne=a.structuredClone,re=o||!te(ne,M)||!te(ne,F)||(r=ne,!!c((function(){var e=r(new a.AggregateError([1],X,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==X||3!==e.cause}))),oe=!ne&&ee((function(e){return new P(X,{detail:e}).detail})),ie=ee(ne)||oe,ae=function(e){throw new F("Uncloneable type: "+e,q)},se=function(e,t){throw new F((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",q)},Ae=function(e,t){return ie||se(t),ie(e)},ce=function(e,t,n){if(N(t,e))return W(t,e);var r,o,i,s,A,c;if("SharedArrayBuffer"===(n||m(e)))r=ie?ie(e):e;else{var u=a.DataView;u||l(e.slice)||se("ArrayBuffer");try{if(l(e.slice)&&!e.resizable)r=e.slice(0);else{o=e.byteLength,i="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(o,i),s=new u(e),A=new u(r);for(c=0;c1&&!p(arguments[1])?v(arguments[1]):void 0,o=r?r.transfer:void 0;void 0!==o&&(n=function(e,t){if(!d(e))throw new Q("Transfer option cannot be converted to a sequence");var n=[];h(e,(function(e){H(n,v(e))}));for(var r,o,i,s,A,c=0,u=w(n),p=new Y;c0&&e&n;n>>=1)t++;return t},Ae=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ce=function(e){for(var t=(e=q(e,oe," ")).length,n="",r=0;rt){n+="%",r++;continue}var i=ae(e,r+1);if(i!=i){n+=o,r++;continue}r+=2;var a=se(i);if(0===a)o=H(i);else{if(1===a||a>4){n+="๏ฟฝ",r++;continue}for(var s=[i],A=1;At||"%"!==J(e,r));){var c=ae(e,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;X(s,c),r+=2,A++}if(s.length!==a){n+="๏ฟฝ";continue}var u=Ae(s);null===u?n+="๏ฟฝ":o=V(u)}}n+=o,r++}return n},ue=/[!'()~]|%20/g,le={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return le[e]},pe=function(e){return q(_(e),ue,fe)},de=g((function(e,t){P(this,{type:Q,target:F(e).entries,index:0,kind:t})}),M,(function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)}),!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(E(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===J(e,0)?ne(e,1):e:x(e)))};ge.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,a,A,c=this.entries,u=S(e);if(u)for(n=(t=I(e,u)).next;!(r=s(n,t)).done;){if(i=(o=I(w(r.value))).next,(a=s(i,o)).done||(A=s(i,o)).done||!s(i,o).done)throw new z("Expected sequence with length 2");X(c,{key:x(a.value),value:x(A.value)})}else for(var l in e)y(e,l)&&X(c,{key:l,value:x(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,o=te(e,"&"),i=0;i0?arguments[0]:void 0));c||(this.size=e.entries.length)},ve=he.prototype;if(p(ve,{append:function(e,t){var n=F(this);L(arguments.length,2),X(n.entries,{key:x(e),value:x(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=F(this),n=L(arguments.length,1),r=t.entries,o=x(e),i=n<2?void 0:arguments[1],a=void 0===i?i:x(i),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=F(this).entries,r=C(e,arguments.length>1?arguments[1]:void 0),o=0;o1?Ce(arguments[1]):{})}}),m(W)){var be=function(e){return v(this,Y),new W(e,arguments.length>1?Ce(arguments[1]):{})};Y.constructor=be,be.prototype=Y,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}e.exports={URLSearchParams:he,getState:F}},14603:function(e,t,n){"use strict";var r=n(36840),o=n(79504),i=n(655),a=n(22812),s=URLSearchParams,A=s.prototype,c=o(A.append),u=o(A.delete),l=o(A.forEach),f=o([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(A,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=[];l(this,(function(e,t){f(r,{key:t,value:e})})),a(t,1);for(var o,s=i(e),A=i(n),p=0,d=0,g=!1,h=r.length;p?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,ae=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=R(e/256);return Q(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n?r:t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=P(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},Ae=d({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=d({},Ae,{"#":1,"?":1,"{":1,"}":1}),ue=d({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var n=v(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2===e.length&&M(Z,D(e,0))&&(":"===(n=D(e,1))||!t&&"|"===n)},de=function(e){var t;return e.length>1&&pe(Y(e,0,2))&&(2===e.length||"/"===(t=D(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===G(e)},he={},ve={},me={},ye={},Ce={},be={},we={},Ee={},xe={},Be={},ke={},Ie={},Se={},Te={},Le={},Re={},Oe={},De={},Me={},Qe={},Pe={},Fe=function(e,t,n){var r,o,i,a=y(e);if(t){if(o=this.parse(a))throw new T(o);this.searchParams=null}else{if(void 0!==n&&(r=new Fe(n,!0)),o=this.parse(a,null,r))throw new T(o);(i=I(new k)).bindURL(this),this.searchParams=i}};Fe.prototype={type:"URL",parse:function(e,t,n){var o,i,a,s,A,c=this,u=t||he,l=0,f="",d=!1,v=!1,m=!1;for(e=y(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=N(e,re,""),e=N(e,oe,"$1")),e=N(e,ie,""),o=g(e);l<=o.length;){switch(i=o[l],u){case he:if(!i||!M(Z,i)){if(t)return _;u=me;continue}f+=G(i),u=ve;break;case ve:if(i&&(M(J,i)||"+"===i||"-"===i||"."===i))f+=G(i);else{if(":"!==i){if(t)return _;f="",u=me,l=0;continue}if(t&&(c.isSpecial()!==p(fe,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&fe[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=Te:c.isSpecial()&&n&&n.scheme===c.scheme?u=ye:c.isSpecial()?u=Ee:"/"===o[l+1]?(u=Ce,l++):(c.cannotBeABaseURL=!0,U(c.path,""),u=Me)}break;case me:if(!n||n.cannotBeABaseURL&&"#"!==i)return _;if(n.cannotBeABaseURL&&"#"===i){c.scheme=n.scheme,c.path=h(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Pe;break}u="file"===n.scheme?Te:be;continue;case ye:if("/"!==i||"/"!==o[l+1]){u=be;continue}u=xe,l++;break;case Ce:if("/"===i){u=Be;break}u=De;continue;case be:if(c.scheme=n.scheme,i===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=h(n.path),c.query=n.query;else if("/"===i||"\\"===i&&c.isSpecial())u=we;else if("?"===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=h(n.path),c.query="",u=Qe;else{if("#"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=h(n.path),c.path.length--,u=De;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=h(n.path),c.query=n.query,c.fragment="",u=Pe}break;case we:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=De;continue}u=Be}else u=xe;break;case Ee:if(u=xe,"/"!==i||"/"!==D(f,l+1))continue;l++;break;case xe:if("/"!==i&&"\\"!==i){u=Be;continue}break;case Be:if("@"===i){d&&(f="%40"+f),d=!0,a=g(f);for(var C=0;C65535)return V;c.port=c.isSpecial()&&E===fe[c.scheme]?null:E,f=""}if(t)return;u=Oe;continue}return V}f+=i;break;case Te:if(c.scheme="file","/"===i||"\\"===i)u=Le;else{if(!n||"file"!==n.scheme){u=De;continue}switch(i){case r:c.host=n.host,c.path=h(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=h(n.path),c.query="",u=Qe;break;case"#":c.host=n.host,c.path=h(n.path),c.query=n.query,c.fragment="",u=Pe;break;default:de(Q(h(o,l),""))||(c.host=n.host,c.path=h(n.path),c.shortenPath()),u=De;continue}}break;case Le:if("/"===i||"\\"===i){u=Re;break}n&&"file"===n.scheme&&!de(Q(h(o,l),""))&&(pe(n.path[0],!0)?U(c.path,n.path[0]):c.host=n.host),u=De;continue;case Re:if(i===r||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&pe(f))u=De;else if(""===f){if(c.host="",t)return;u=Oe}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),t)return;f="",u=Oe}continue}f+=i;break;case Oe:if(c.isSpecial()){if(u=De,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==r&&(u=De,"/"!==i))continue}else c.fragment="",u=Pe;else c.query="",u=Qe;break;case De:if(i===r||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(A=G(A=f))||"%2e."===A||".%2e"===A||"%2e%2e"===A?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||U(c.path,"")):ge(f)?"/"===i||"\\"===i&&c.isSpecial()||U(c.path,""):("file"===c.scheme&&!c.path.length&&pe(f)&&(c.host&&(c.host=""),f=D(f,0)+":"),U(c.path,f)),f="","file"===c.scheme&&(i===r||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)W(c.path);"?"===i?(c.query="",u=Qe):"#"===i&&(c.fragment="",u=Pe)}else f+=le(i,ce);break;case Me:"?"===i?(c.query="",u=Qe):"#"===i?(c.fragment="",u=Pe):i!==r&&(c.path[0]+=le(i,se));break;case Qe:t||"#"!==i?i!==r&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":le(i,se)):(c.fragment="",u=Pe);break;case Pe:i!==r&&(c.fragment+=le(i,Ae))}l++}},parseHost:function(e){var t,n,r;if("["===D(e,0)){if("]"!==D(e,e.length-1))return H;if(t=function(e){var t,n,r,o,i,a,s,A=[0,0,0,0,0,0,0,0],c=0,u=null,l=0,f=function(){return D(e,l)};if(":"===f()){if(":"!==D(e,1))return;l+=2,u=++c}for(;f();){if(8===c)return;if(":"!==f()){for(t=n=0;n<4&&M(ee,f());)t=16*t+L(f(),16),l++,n++;if("."===f()){if(0===n)return;if(l-=n,c>6)return;for(r=0;f();){if(o=null,r>0){if(!("."===f()&&r<4))return;l++}if(!M(K,f()))return;for(;M(K,f());){if(i=L(f(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}A[c]=256*A[c]+o,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===f()){if(l++,!f())return}else if(f())return;A[c++]=t}else{if(null!==u)return;l++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)s=A[c],A[c--]=A[u+a-1],A[u+--a]=s;else if(8!==c)return;return A}(Y(e,1,-1)),!t)return H;this.host=t}else if(this.isSpecial()){if(e=m(e),M(te,e))return H;if(t=function(e){var t,n,r,o,i,a,s,A=j(e,".");if(A.length&&""===A[A.length-1]&&A.length--,(t=A.length)>4)return e;for(n=[],r=0;r1&&"0"===D(o,0)&&(i=M(X,o)?16:8,o=Y(o,8===i?1:2)),""===o)a=0;else{if(!M(10===i?$:8===i?q:ee,o))return e;a=L(o,i)}U(n,a)}for(r=0;r=O(256,5-t))return null}else if(a>255)return null;for(s=F(n),r=0;r1?arguments[1]:void 0,r=x(t,new Fe(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ne=Ue.prototype,We=function(e,t){return{get:function(){return B(this)[e]()},set:t&&function(e){return B(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(l(Ne,"href",We("serialize","setHref")),l(Ne,"origin",We("getOrigin")),l(Ne,"protocol",We("getProtocol","setProtocol")),l(Ne,"username",We("getUsername","setUsername")),l(Ne,"password",We("getPassword","setPassword")),l(Ne,"host",We("getHost","setHost")),l(Ne,"hostname",We("getHostname","setHostname")),l(Ne,"port",We("getPort","setPort")),l(Ne,"pathname",We("getPathname","setPathname")),l(Ne,"search",We("getSearch","setSearch")),l(Ne,"searchParams",We("getSearchParams")),l(Ne,"hash",We("getHash","setHash"))),u(Ne,"toJSON",(function(){return B(this).serialize()}),{enumerable:!0}),u(Ne,"toString",(function(){return B(this).serialize()}),{enumerable:!0}),S){var je=S.createObjectURL,Ye=S.revokeObjectURL;je&&u(Ue,"createObjectURL",A(je,S)),Ye&&u(Ue,"revokeObjectURL",A(Ye,S))}C(Ue,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Ue})},3296:function(e,t,n){"use strict";n(45806)},45781:function(e,t,n){"use strict";var r=n(46518),o=n(97751),i=n(22812),a=n(655),s=n(67416),A=o("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=i(arguments.length,1),n=a(e),r=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new A(n,r)}catch(e){return null}}})},27208:function(e,t,n){"use strict";var r=n(46518),o=n(69565);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},84315:function(e,t,n){"use strict";n(52675),n(89463),n(66412),n(60193),n(92168),n(2259),n(86964),n(83142),n(83237),n(61833),n(67947),n(31073),n(45700),n(78125),n(20326),n(16280),n(76918),n(30067),n(4294),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(31051),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(54743),n(46761),n(11745),n(38309),n(16573),n(78100),n(77936),n(61699),n(59089),n(91191),n(93515),n(1688),n(60739),n(89572),n(23288),n(36456),n(94170),n(48957),n(62010),n(55081),n(18111),n(29314),n(81148),n(22489),n(20116),n(30531),n(7588),n(49603),n(61701),n(18237),n(13579),n(54972),n(61806),n(33110),n(4731),n(36033),n(47072),n(93153),n(82326),n(36389),n(64444),n(8085),n(77762),n(65070),n(60605),n(39469),n(72152),n(75376),n(56624),n(11367),n(5914),n(78553),n(98690),n(60479),n(70761),n(2892),n(45374),n(25428),n(32637),n(40150),n(59149),n(64601),n(44435),n(87220),n(25843),n(62337),n(9868),n(80630),n(69085),n(59904),n(17427),n(67945),n(84185),n(87607),n(5506),n(52811),n(53921),n(83851),n(81278),n(1480),n(40875),n(77691),n(78347),n(29908),n(94052),n(94003),n(221),n(79432),n(9220),n(7904),n(93967),n(63548),n(93941),n(10287),n(26099),n(16034),n(78459),n(58940),n(3362),n(96167),n(93518),n(9391),n(31689),n(14628),n(39796),n(60825),n(87411),n(21211),n(40888),n(9065),n(86565),n(32812),n(84634),n(71137),n(30985),n(34268),n(34873),n(15472),n(84864),n(57465),n(27495),n(69479),n(87745),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(67357),n(23860),n(99449),n(27337),n(21699),n(42043),n(47764),n(71761),n(28543),n(35701),n(68156),n(85906),n(42781),n(25440),n(79978),n(5746),n(90744),n(11392),n(50375),n(67438),n(42762),n(39202),n(43359),n(89907),n(11898),n(35490),n(5745),n(94298),n(60268),n(69546),n(20781),n(50778),n(89195),n(46276),n(48718),n(16308),n(34594),n(29833),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(48345),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(52568),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(88267),n(73772),n(30958),n(2945),n(42207),n(23500),n(62953),n(55815),n(64979),n(79739),n(59848),n(122),n(13611),n(71678),n(76031),n(3296),n(2222),n(45781),n(27208),n(48408),n(14603),n(47566),n(98721),n(19167)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.b=document.baseURI||self.location.href,n.nc=void 0,n(84315),n(78624);var r=n(63166);return r.default}()})); +//# sourceMappingURL=ovenplayer.js.map \ No newline at end of file