shaka-player 4.11.0 → 4.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls.css +2 -2
- package/dist/controls.css.map +1 -1
- package/dist/deps.js +1 -1
- package/dist/locales.js +191 -53
- package/dist/shaka-player.compiled.debug.js +34 -32
- package/dist/shaka-player.compiled.debug.map +4 -4
- package/dist/shaka-player.compiled.js +245 -242
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.debug.js +115 -99
- package/dist/shaka-player.ui.debug.map +4 -4
- package/dist/shaka-player.ui.js +495 -479
- package/dist/shaka-player.ui.map +4 -4
- package/externs/ima.js +22 -2
- package/lib/dash/dash_parser.js +7 -2
- package/lib/media/segment_index.js +14 -2
- package/lib/media/streaming_engine.js +6 -0
- package/lib/player.js +1 -1
- package/lib/text/simple_text_displayer.js +1 -1
- package/lib/text/text_utils.js +12 -3
- package/lib/text/ttml_text_parser.js +25 -4
- package/lib/util/periods.js +4 -1
- package/package.json +1 -1
- package/ui/less/overflow_menu.less +1 -0
- package/ui/less/tooltip.less +1 -1
- package/ui/locales/ar-XB.json +11 -0
- package/ui/locales/ar.json +11 -0
- package/ui/locales/bg.json +11 -0
- package/ui/locales/ca.json +11 -0
- package/ui/locales/cs.json +11 -0
- package/ui/locales/da.json +11 -0
- package/ui/locales/de.json +13 -2
- package/ui/locales/el.json +11 -0
- package/ui/locales/en-GB.json +10 -1
- package/ui/locales/en-XA.json +12 -1
- package/ui/locales/es-419.json +5 -0
- package/ui/locales/es.json +1 -0
- package/ui/locales/fa.json +15 -4
- package/ui/locales/fi.json +11 -0
- package/ui/locales/fil.json +11 -0
- package/ui/locales/fr.json +3 -3
- package/ui/locales/hi.json +11 -0
- package/ui/locales/hr.json +11 -0
- package/ui/locales/hu.json +12 -1
- package/ui/locales/id.json +11 -0
- package/ui/locales/it.json +11 -0
- package/ui/locales/iw.json +13 -2
- package/ui/locales/ja.json +11 -0
- package/ui/locales/ko.json +11 -0
- package/ui/locales/lt.json +11 -0
- package/ui/locales/lv.json +12 -1
- package/ui/locales/nl.json +13 -2
- package/ui/locales/no.json +11 -0
- package/ui/locales/pl.json +8 -7
- package/ui/locales/pt-BR.json +1 -0
- package/ui/locales/pt-PT.json +1 -0
- package/ui/locales/ro.json +11 -0
- package/ui/locales/ru.json +11 -0
- package/ui/locales/sk.json +11 -0
- package/ui/locales/sl.json +11 -0
- package/ui/locales/sr.json +11 -0
- package/ui/locales/sv.json +11 -0
- package/ui/locales/th.json +12 -1
- package/ui/locales/tr.json +11 -0
- package/ui/locales/uk.json +12 -1
- package/ui/locales/vi.json +13 -2
- package/ui/locales/zh-TW.json +11 -0
- package/ui/locales/zh.json +12 -1
package/dist/shaka-player.ui.js
CHANGED
|
@@ -48,8 +48,9 @@ fa("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,
|
|
|
48
48
|
var Oa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ka(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Oa});fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
|
|
49
49
|
fa("Array.prototype.entries",function(a){return a?a:function(){return La(this,function(b,c){return[b,c]})}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
|
|
50
50
|
fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ka(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
|
|
51
|
-
fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});function Qa(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}
|
|
52
|
-
fa("Uint16Array.prototype.at",Ra);fa("Int32Array.prototype.at",Ra);fa("Uint32Array.prototype.at",Ra);fa("Float32Array.prototype.at",Ra);fa("Float64Array.prototype.at",Ra);fa("String.prototype.at",function(a){return a?a:Qa});var Sa=this||self;
|
|
51
|
+
fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});function Qa(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}
|
|
52
|
+
fa("Array.prototype.at",function(a){return a?a:Qa});function Ra(a){return a?a:Qa}fa("Int8Array.prototype.at",Ra);fa("Uint8Array.prototype.at",Ra);fa("Uint8ClampedArray.prototype.at",Ra);fa("Int16Array.prototype.at",Ra);fa("Uint16Array.prototype.at",Ra);fa("Int32Array.prototype.at",Ra);fa("Uint32Array.prototype.at",Ra);fa("Float32Array.prototype.at",Ra);fa("Float64Array.prototype.at",Ra);fa("String.prototype.at",function(a){return a?a:Qa});var Sa=this||self;
|
|
53
|
+
function S(a,b){a=a.split(".");var c=Sa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
|
|
53
54
|
@license
|
|
54
55
|
Shaka Player
|
|
55
56
|
Copyright 2016 Google LLC
|
|
@@ -69,14 +70,14 @@ var nb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
|
|
|
69
70
|
Copyright 2006 The Closure Library Authors
|
|
70
71
|
SPDX-License-Identifier: Apache-2.0
|
|
71
72
|
*/
|
|
72
|
-
function ob(a){var b;a instanceof ob?(pb(this,a.Wb),this.Wc=a.Wc,qb(this,a.$b),rb(this,a.
|
|
73
|
-
q.toString=function(){var a=[],b=this.Wb;b&&a.push(wb(b,xb,!0),":");if(b=this.$b){a.push("//");var c=this.Wc;c&&a.push(wb(c,xb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.
|
|
74
|
-
q.resolve=function(a){var b=this.clone();"data"===b.Wb&&(b=new ob);var c=!!a.Wb;c?pb(b,a.Wb):c=!!a.Wc;c?b.Wc=a.Wc:c=!!a.$b;c?qb(b,a.$b):c=null!=a.
|
|
75
|
-
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.jb=d:c=""!==a.g.toString();c?tb(b,a.g.clone()):c=!!a.Fc;c&&(b.Fc=a.Fc);return b};q.clone=function(){return new ob(this)};function pb(a,b,c){a.Wb=c?ub(b,!0):b;a.Wb&&(a.Wb=a.Wb.replace(/:$/,""))}function qb(a,b,c){a.$b=c?ub(b,!0):b}function rb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.
|
|
73
|
+
function ob(a){var b;a instanceof ob?(pb(this,a.Wb),this.Wc=a.Wc,qb(this,a.$b),rb(this,a.qd),this.jb=a.jb,tb(this,a.g.clone()),this.Fc=a.Fc):a&&(b=String(a).match(nb))?(pb(this,b[1]||"",!0),this.Wc=ub(b[2]||""),qb(this,b[3]||"",!0),rb(this,b[4]),this.jb=ub(b[5]||"",!0),tb(this,b[6]||"",!0),this.Fc=ub(b[7]||"")):this.g=new vb(null)}q=ob.prototype;q.Wb="";q.Wc="";q.$b="";q.qd=null;q.jb="";q.Fc="";
|
|
74
|
+
q.toString=function(){var a=[],b=this.Wb;b&&a.push(wb(b,xb,!0),":");if(b=this.$b){a.push("//");var c=this.Wc;c&&a.push(wb(c,xb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.qd;null!=b&&a.push(":",String(b))}if(b=this.jb)this.$b&&"/"!=b.charAt(0)&&a.push("/"),a.push(wb(b,"/"==b.charAt(0)?yb:zb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Fc)&&a.push("#",wb(b,Ab));return a.join("")};
|
|
75
|
+
q.resolve=function(a){var b=this.clone();"data"===b.Wb&&(b=new ob);var c=!!a.Wb;c?pb(b,a.Wb):c=!!a.Wc;c?b.Wc=a.Wc:c=!!a.$b;c?qb(b,a.$b):c=null!=a.qd;var d=a.jb;if(c)rb(b,a.qd);else if(c=!!a.jb){if("/"!=d.charAt(0))if(this.$b&&!this.jb)d="/"+d;else{var e=b.jb.lastIndexOf("/");-1!=e&&(d=b.jb.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
|
|
76
|
+
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.jb=d:c=""!==a.g.toString();c?tb(b,a.g.clone()):c=!!a.Fc;c&&(b.Fc=a.Fc);return b};q.clone=function(){return new ob(this)};function pb(a,b,c){a.Wb=c?ub(b,!0):b;a.Wb&&(a.Wb=a.Wb.replace(/:$/,""))}function qb(a,b,c){a.$b=c?ub(b,!0):b}function rb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.qd=b}else a.qd=null}
|
|
76
77
|
function tb(a,b,c){b instanceof vb?a.g=b:(c||(b=wb(b,Bb)),a.g=new vb(b))}function ub(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function wb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Cb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Cb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var xb=/[#\/\?@]/g,zb=/[#\?:]/g,yb=/[#\?]/g,Bb=/[#\?@]/g,Ab=/#/g;function vb(a){this.g=a||null}
|
|
77
|
-
function Db(a){if(!a.cb&&(a.cb={},a.
|
|
78
|
+
function Db(a){if(!a.cb&&(a.cb={},a.Dd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=vb.prototype;q.cb=null;q.Dd=null;function Eb(a){Db(a);return a.Dd}q.add=function(a,b){Db(this);this.g=null;var c=this.cb.hasOwnProperty(a)?this.cb[a]:null;c||(this.cb[a]=c=[]);c.push(b);this.Dd++;return this};
|
|
78
79
|
q.set=function(a,b){Db(this);this.g=null;this.cb.hasOwnProperty(a)?this.cb[a]=[b]:this.add(a,b);return this};q.get=function(a){Db(this);return this.cb[a]||[]};q.toString=function(){if(this.g)return this.g;if(!this.cb)return"";var a=[],b;for(b in this.cb)for(var c=encodeURIComponent(b),d=this.cb[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
|
|
79
|
-
q.clone=function(){var a=new vb;a.g=this.g;if(this.cb){var b={},c;for(c in this.cb)b[c]=this.cb[c].concat();a.cb=b;a.
|
|
80
|
+
q.clone=function(){var a=new vb;a.g=this.g;if(this.cb){var b={},c;for(c in this.cb)b[c]=this.cb[c].concat();a.cb=b;a.Dd=this.Dd}return a};function Fb(){}function Gb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Hb(a)==Hb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Ib(a);b=Ib(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Hb(a){return a instanceof ArrayBuffer?a:a.buffer}function Jb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
|
|
80
81
|
function Ib(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,Uint8Array)}function Mb(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,Uint16Array)}function Nb(a,b,c){c=void 0===c?Infinity:c;return Kb(a,void 0===b?0:b,c,DataView)}function Kb(a,b,c,d){var e=Hb(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
|
|
81
82
|
S("shaka.util.BufferUtils",Fb);Fb.toDataView=Nb;Fb.toUint16=Mb;Fb.toUint8=Ib;Fb.toArrayBuffer=Jb;Fb.equal=Gb;function U(a,b,c){var d=Ja.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Ob)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}U.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};S("shaka.util.Error",U);var Ob=!0;U.Severity={RECOVERABLE:1,CRITICAL:2};U.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
|
|
82
83
|
U.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
|
|
@@ -255,13 +256,13 @@ function Ih(a,b,c,d){var e=rh(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g
|
|
|
255
256
|
xh.prototype.request=xh.prototype.request;xh.prototype.destroy=xh.prototype.destroy;xh.makeRequest=Dh;xh.defaultRetryParameters=function(){return lh()};xh.prototype.clearAllResponseFilters=xh.prototype.vh;xh.prototype.unregisterResponseFilter=xh.prototype.Kk;xh.prototype.registerResponseFilter=xh.prototype.hk;xh.prototype.clearAllRequestFilters=xh.prototype.uh;xh.prototype.unregisterRequestFilter=xh.prototype.Jk;xh.prototype.registerRequestFilter=xh.prototype.gk;xh.unregisterScheme=function(a){delete Bh[a]};
|
|
256
257
|
xh.registerScheme=yh;xh.prototype.setForceHTTPS=xh.prototype.Wg;xh.prototype.setForceHTTP=xh.prototype.Vg;function Eh(){this.g=0}xh.NumBytesRemainingClass=Eh;function Fh(a,b,c){oh.call(this,a,b);this.h=c}oa(Fh,oh);xh.PendingRequest=Fh;var Jh=1;xh.RequestType={MANIFEST:0,SEGMENT:Jh,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};
|
|
257
258
|
xh.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var zh=3;xh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:zh};var Bh={};function Lh(a){this.g=!1;this.h=new nh;this.i=a}Lh.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function Mh(a,b){if(a.g){if(b instanceof U&&7003==b.code)throw b;throw new U(2,7,7003,b);}};function Ph(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Qh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Rh(a,b){this.h=Nb(a);this.i=b==Sh;this.g=0}q=Rh.prototype;q.Ea=function(){return this.g<this.h.byteLength};q.Oa=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.Z=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Th();}};q.ya=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Th();}};q.T=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};
|
|
258
|
-
q.ai=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};q.
|
|
259
|
+
q.ai=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Th();}};q.rd=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Th();}if(2097151<b)throw new U(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Pb=function(a){if(this.g+a>this.h.byteLength)throw Th();var b=Ib(this.h,this.g,a);this.g+=a;return b};
|
|
259
260
|
q.skip=function(a){if(this.g+a>this.h.byteLength)throw Th();this.g+=a};q.rk=function(a){if(this.g<a)throw Th();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Th();this.g=a};q.Rc=function(){for(var a=this.g;this.Ea()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Ib(this.h,a,this.g-a);this.g+=1;return zc(a)};function Th(){return new U(2,3,3E3)}S("shaka.util.DataViewReader",Rh);Rh.prototype.readTerminatedString=Rh.prototype.Rc;Rh.prototype.seek=Rh.prototype.seek;Rh.prototype.rewind=Rh.prototype.rk;
|
|
260
|
-
Rh.prototype.skip=Rh.prototype.skip;Rh.prototype.readBytes=Rh.prototype.Pb;Rh.prototype.readUint64=Rh.prototype.
|
|
261
|
-
q.
|
|
262
|
-
partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Oa(),b.getLength()-b.Oa()))}};function Zh(a){for(var b=$h(a);a.reader.Ea()&&!a.parser.g;)a.parser.
|
|
263
|
-
function ci(a){var b=$h(a);a.reader.skip(8);var c=a.reader.ya();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ea()&&!a.parser.g;)a.parser.
|
|
264
|
-
function $h(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",Uh);Uh.headerSize=$h;Uh.typeToString=Yh;Uh.allData=di;Uh.audioSampleEntry=ci;Uh.visualSampleEntry=bi;Uh.sampleDescription=ai;Uh.children=Zh;Uh.prototype.parseNext=Uh.prototype.
|
|
261
|
+
Rh.prototype.skip=Rh.prototype.skip;Rh.prototype.readBytes=Rh.prototype.Pb;Rh.prototype.readUint64=Rh.prototype.rd;Rh.prototype.readInt32=Rh.prototype.ai;Rh.prototype.readUint32=Rh.prototype.T;Rh.prototype.readUint16=Rh.prototype.ya;Rh.prototype.readUint8=Rh.prototype.Z;Rh.prototype.getLength=Rh.prototype.getLength;Rh.prototype.getPosition=Rh.prototype.Oa;Rh.prototype.hasMoreData=Rh.prototype.Ea;var Sh=1;Rh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Sh};function Uh(){this.i=[];this.h=[];this.g=!1}q=Uh.prototype;q.box=function(a,b){a=Vh(a);this.i[a]=Wh;this.h[a]=b;return this};q.W=function(a,b){a=Vh(a);this.i[a]=Xh;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Rh(a,0);for(this.g=!1;a.Ea()&&!this.g;)this.od(0,a,b,c)};
|
|
262
|
+
q.od=function(a,b,c,d){var e=b.Oa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.T(),g=b.T(),h=Yh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Oa()+8>b.getLength()){this.g=!0;return}f=b.rd();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Xh){if(d&&b.Oa()+4>b.getLength()){this.g=!0;return}n=b.T();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Oa(),b=0<d?b.Pb(d):new Uint8Array(0),b=new Rh(b,0),l({name:h,parser:this,
|
|
263
|
+
partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Oa(),b.getLength()-b.Oa()))}};function Zh(a){for(var b=$h(a);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}function ai(a){for(var b=$h(a),c=a.reader.T(),d=0;d<c&&(a.parser.od(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function bi(a){var b=$h(a);for(a.reader.skip(78);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}
|
|
264
|
+
function ci(a){var b=$h(a);a.reader.skip(8);var c=a.reader.ya();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Ea()&&!a.parser.g;)a.parser.od(a.start+b,a.reader,a.partialOkay)}function di(a){return function(b){a(b.reader.Pb(b.reader.getLength()-b.reader.Oa()))}}function Vh(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Yh(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
|
|
265
|
+
function $h(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",Uh);Uh.headerSize=$h;Uh.typeToString=Yh;Uh.allData=di;Uh.audioSampleEntry=ci;Uh.visualSampleEntry=bi;Uh.sampleDescription=ai;Uh.children=Zh;Uh.prototype.parseNext=Uh.prototype.od;Uh.prototype.parse=Uh.prototype.parse;Uh.prototype.stop=Uh.prototype.stop;Uh.prototype.fullBox=Uh.prototype.W;Uh.prototype.box=Uh.prototype.box;var Wh=0,Xh=1;function ei(a){var b=this;this.g=[];this.h=[];this.data=[];(new Uh).box("moov",Zh).box("moof",Zh).W("pssh",function(c){if(!(1<c.version)){var d=Ib(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Mc(c.reader.Pb(16)));if(0<c.version){d=c.reader.T();for(var e=0;e<d;e++){var f=Mc(c.reader.Pb(16));b.h.push(f)}}}}).parse(a)}
|
|
265
266
|
function fi(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Nb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function gi(a){var b=this;this.G=a;this.J=new Set;this.m=this.u=null;this.ia=this.aa=!1;this.K=0;this.g=null;this.C=new sd;this.i=new Map;this.A=new Map;this.l=new nh;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.Y=new Map;this.ha=new Map;this.N=new Wb(function(){return hi(b)});this.P=!1;this.O=[];this.U=!1;this.L=new Wb(function(){ii(b)});this.l.catch(function(){});this.j=new Lh(function(){return ji(b)});this.$=!1;this.H=this.I=null;this.S=function(){return!1}}
|
|
266
267
|
q=gi.prototype;q.destroy=function(){return this.j.destroy()};function ji(a){return P(function(b){switch(b.g){case 1:return a.C.release(),a.C=null,a.l.reject(),a.L.stop(),a.L=null,a.N.stop(),a.N=null,G(b,ki(a),2);case 2:if(!a.m){b.B(3);break}ta(b,4);return G(b,a.m.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:xa(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.$=!1,a.I=null,H(b)}})}
|
|
267
268
|
q.configure=function(a,b){this.h=a;b&&(this.S=b);this.L&&this.L.Aa(this.h.updateExpirationTime)};function li(a,b,c){a.ia=!0;a.A=new Map;a.P=c;return mi(a,b)}function ni(a,b,c){a.A=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.A.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.P=0<a.A.size;return mi(a,b)}
|
|
@@ -275,7 +276,7 @@ function zi(a){var b,c,d,e,f;return P(function(g){switch(g.g){case 1:if(!a.u||!a
|
|
|
275
276
|
ta(g,6);return G(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=xa(g),new U(2,6,6004,f.message);}})}function Ai(a,b){var c,d,e;return P(function(f){if(1==f.g)return G(f,Bi(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Bb=new nh,d.push(e.Bb);d.push(c.remove());return G(f,Promise.all(d),3)}a.i.delete(c);H(f)})}
|
|
276
277
|
function yi(a){var b,c,d,e,f;return P(function(g){if(1==g.g){if(!a.A.size)return g.B(2);a.A.forEach(function(h,k){Bi(a,k,h)});return G(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Ci(a))return g.return(a.l);a.l=new nh;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,wi(a,f.initDataType,f.initData);Di(a)&&a.l.resolve();return g.return(a.l)})}
|
|
277
278
|
function wi(a,b,c){if(c.length){if(a.h.ignoreDuplicateInitData){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Gb(c,e.value.initData))return}0<a.i.size&&Di(a)&&(a.l.resolve(),a.l=new nh,a.l.catch(function(){}));Ei(a,b,c,a.g.sessionType)}}function Fi(a){a=a.i.keys();a=ib(a,function(b){return b.sessionId});return Array.from(a)}
|
|
278
|
-
q.hg=function(){var a=this,b=this.i.keys();b=ib(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.
|
|
279
|
+
q.hg=function(){var a=this,b=this.i.keys();b=ib(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Gd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.ze=function(){return Qh(this.ha)};
|
|
279
280
|
function pi(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z;return P(function(C){switch(C.g){case 1:d=new Map;if(c.length){e=Gi(a,c,d);C.B(2);break}return G(C,Hi(a,b),3);case 3:e=C.h;case 2:f=e;if(!f)throw new U(2,6,6001);Mh(a.j);ta(C,4);a.J.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.J.add(n.contentType.toLowerCase());p=t(k);for(r=p.next();!r.done;r=p.next())u=r.value,a.J.add(u.contentType.toLowerCase());if(c.length){var A=
|
|
280
281
|
f.keySystem;var B=d.get(f.keySystem);var D=[],E=[],F=[],L=[],J=[],K=new Set,I=new Set;Ii(B,D,E,L,F,J,K,I);var N=a.P?"persistent-license":"temporary";A={keySystem:A,encryptionScheme:D[0],licenseServerUri:E[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||N,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:L[0],serverCertificateUri:F[0],initData:J,keyIds:K};
|
|
281
282
|
0<I.size&&(A.keySystemUris=I);B=t(B);for(I=B.next();!I.done;I=B.next())I=I.value,I.distinctiveIdentifierRequired&&(A.distinctiveIdentifierRequired=I.distinctiveIdentifierRequired),I.persistentStateRequired&&(A.persistentStateRequired=I.persistentStateRequired);B=A}else B=f.keySystem,I=b.get(f.keySystem),A=[],D=[],E=[],F=[],L=[],J=new Set,Ii(I.drmInfos,A,D,F,E,L,J),B={keySystem:B,encryptionScheme:A[0],licenseServerUri:D[0],distinctiveIdentifierRequired:"required"==I.distinctiveIdentifier,persistentStateRequired:"required"==
|
|
@@ -324,13 +325,13 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new U(2,4,4012,a)
|
|
|
324
325
|
function(m){k.push({box:m,ib:1701733238})}).W("hev1",function(m){k.push({box:m,ib:1701733238})}).W("hvc1",function(m){k.push({box:m,ib:1701733238})}).W("avc1",function(m){k.push({box:m,ib:1701733238})}).W("avc3",function(m){k.push({box:m,ib:1701733238})}).W("ac-3",function(m){k.push({box:m,ib:1701733217})}).W("ec-3",function(m){k.push({box:m,ib:1701733217})}).W("ac-4",function(m){k.push({box:m,ib:1701733217})}).W("mp4a",function(m){k.push({box:m,ib:1701733217})}).parse(a);if(f)return a;if(0==k.length||
|
|
325
326
|
!g)throw eb(Mc(a)),new U(2,3,3019,b);k.reverse();b=t(k);for(var l=b.next();!l.done;l=b.next())l=l.value,e=bj(e,g,l.box,h,l.ib);return $b()&&qc()?(b=new Uint8Array(a.byteLength+e.byteLength),b.set(e),b.set(a,e.byteLength),b):e}
|
|
326
327
|
function bj(a,b,c,d,e){var f=cj.value(),g=a.subarray(c.start,c.start+c.size),h=Nb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Nb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);dj(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=ac()||$b()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,dj(e,d.start,d.size+k.byteLength);k=Nb(e,b.start);b=$h(b);
|
|
327
|
-
a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Nb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var cj=new Pb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function ej(a,b,c,d,e,f,g){this.R=a;this.Za=b;this.La=c;this.
|
|
328
|
+
a=k.getUint32(b);k.setUint32(b,a+1);return e}function dj(a,b,c){a=Nb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var cj=new Pb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function ej(a,b,c,d,e,f,g){this.R=a;this.Za=b;this.La=c;this.md=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}ej.prototype.Hb=function(){return this.Za};ej.prototype.Eb=function(){return this.La};ej.prototype.Id=function(){return this.g};function fj(a,b){return a===b?!0:a&&b?a.Hb()==b.Hb()&&a.Eb()==b.Eb()&&Td(a.R().sort(),b.R().sort())&&Gb(a.Id(),b.Id()):a==b}S("shaka.media.InitSegmentReference",ej);
|
|
328
329
|
ej.prototype.getEndByte=ej.prototype.Eb;ej.prototype.getStartByte=ej.prototype.Hb;
|
|
329
330
|
function gj(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v){l=void 0===l?[]:l;r=void 0===r?hj:r;this.startTime=a;this.j=this.endTime=b;this.H=c;this.Za=d;this.La=e;this.ma=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.C=void 0===n?null:n;this.h=void 0===p?null:p;this.status=r;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.A=null;this.i=0;this.o=void 0===v?!1:v;this.I=this.u=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Th();
|
|
330
331
|
this.o&&this.g.length&&this.g[this.g.length-1].Sh();this.G=this.bandwidth=this.mimeType=this.codecs=null}q=gj.prototype;q.R=function(){return this.H()};q.getStartTime=function(){return this.startTime};q.gj=function(){return this.endTime};q.Hb=function(){return this.Za};q.Eb=function(){return this.La};q.Aj=function(){return this.tilesLayout};q.zj=function(){return this.C};q.sc=function(){return this.status};q.Wj=function(){this.status=ij};q.Cg=function(){this.preload=!0};q.isPreload=function(){return this.preload};
|
|
331
|
-
q.
|
|
332
|
-
q.bh=function(a){null==this.h?Ya("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Fk=function(a){this.G=a};q.
|
|
333
|
-
gj.prototype.getThumbnailSprite=gj.prototype.yj;gj.prototype.setThumbnailSprite=gj.prototype.oi;gj.prototype.hasByterangeOptimization=gj.prototype.Ij;gj.prototype.markAsByterangeOptimization=gj.prototype.Rh;gj.prototype.isLastPartial=gj.prototype.Nj;gj.prototype.markAsLastPartial=gj.prototype.Sh;gj.prototype.isPartial=gj.prototype.Oj;gj.prototype.markAsPartial=gj.prototype.Th;gj.prototype.isIndependent=gj.prototype.Mj;gj.prototype.markAsNonIndependent=gj.prototype.
|
|
332
|
+
q.ld=function(){this.l=!1};q.Mj=function(){return this.l};q.Th=function(){this.u=!0};q.Oj=function(){return this.u};q.Sh=function(){this.I=!0};q.Nj=function(){return this.I};q.Rh=function(){this.m=!0};q.Ij=function(){return this.m};q.oi=function(a){this.A=a};q.yj=function(){return this.A};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
|
|
333
|
+
q.bh=function(a){null==this.h?Ya("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.Fk=function(a){this.G=a};q.Id=function(){return this.G};function jj(a,b){a.ma=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())jj(c.value,b)}S("shaka.media.SegmentReference",gj);gj.prototype.getSegmentData=gj.prototype.Id;gj.prototype.setSegmentData=gj.prototype.Fk;gj.prototype.syncAgainst=gj.prototype.bh;gj.prototype.offset=gj.prototype.offset;
|
|
334
|
+
gj.prototype.getThumbnailSprite=gj.prototype.yj;gj.prototype.setThumbnailSprite=gj.prototype.oi;gj.prototype.hasByterangeOptimization=gj.prototype.Ij;gj.prototype.markAsByterangeOptimization=gj.prototype.Rh;gj.prototype.isLastPartial=gj.prototype.Nj;gj.prototype.markAsLastPartial=gj.prototype.Sh;gj.prototype.isPartial=gj.prototype.Oj;gj.prototype.markAsPartial=gj.prototype.Th;gj.prototype.isIndependent=gj.prototype.Mj;gj.prototype.markAsNonIndependent=gj.prototype.ld;gj.prototype.isPreload=gj.prototype.isPreload;
|
|
334
335
|
gj.prototype.markAsPreload=gj.prototype.Cg;gj.prototype.markAsUnavailable=gj.prototype.Wj;gj.prototype.getStatus=gj.prototype.sc;gj.prototype.getTileDuration=gj.prototype.zj;gj.prototype.getTilesLayout=gj.prototype.Aj;gj.prototype.getEndByte=gj.prototype.Eb;gj.prototype.getStartByte=gj.prototype.Hb;gj.prototype.getEndTime=gj.prototype.gj;gj.prototype.getStartTime=gj.prototype.getStartTime;gj.prototype.getUris=gj.prototype.R;var hj=0,ij=1;gj.Status={Pk:hj,Sl:ij,rl:2};function kj(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function lj(a){return!a||kj(a)?null:a.length?a.end(a.length-1):null}function mj(a,b){return!a||!a.length||kj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function nj(a,b){if(!a||!a.length||kj(a))return 0;var c=0;a=t(oj(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
|
|
335
336
|
function pj(a,b,c){if(!a||!a.length||kj(a))return null;a=oj(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function oj(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
|
|
336
337
|
@license
|
|
@@ -343,7 +344,7 @@ function uj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
|
|
|
343
344
|
d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Ib(a.data,1,d));a=zc(Ib(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=zc(Ib(a.data,1,d));a=zc(Ib(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=zc(Ib(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
|
|
344
345
|
c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Jb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=zc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=zc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Jb(a.data),b):null}
|
|
345
346
|
function vj(a){for(var b=0,c=[];rj(a,b);){var d=tj(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=tj(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=uj(e))&&c.push(f);b+=e.size+10}sj(a,b)&&(b+=10)}return c}function wj(a,b){for(var c=b=void 0===b?0:b,d=0;rj(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=tj(a,b+6),sj(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}S("shaka.util.Id3Utils",qj);qj.getID3Data=wj;
|
|
346
|
-
qj.getID3Frames=vj;function xj(a,b){var c=null,d=null,e=null,f=a.T();b&1&&(e=a.
|
|
347
|
+
qj.getID3Frames=vj;function xj(a,b){var c=null,d=null,e=null,f=a.T();b&1&&(e=a.rd());b&2&&a.skip(4);b&8&&(c=a.T());b&16&&(d=a.T());return{trackId:f,Ed:c,ue:d,Wl:e}}function yj(a,b){return 1==b?(b=a.T(),a=a.T(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.T()}}function zj(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.T();a.skip(4);a=a.ya();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
|
|
347
348
|
function Aj(a,b,c){var d=a.T(),e=[],f=null;c&1&&(f=a.T());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Og:null,sampleSize:null,bf:null};c&256&&(h.Og=a.T());c&512&&(h.sampleSize=a.T());c&1024&&a.skip(4);c&2048&&(h.bf=0==b?a.T():a.ai());e.push(h)}return{$l:d,ei:e,Vi:f}}function Bj(a){a.skip(6);a.skip(2);a.skip(8);var b=a.ya();a.skip(2);a.skip(2);a.skip(2);a=a.ya()+a.ya()/65536;return{channelCount:b,sampleRate:a}}function Cj(a){a=a.T();return{codec:Yh(a)}}
|
|
348
349
|
function Dj(a){var b=null,c=null,d=a.Pb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.ya()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.ya();a.ya();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG"}}return{colorGamut:b,be:c}}
|
|
349
350
|
function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Fj(a){return(10>a?"0":"")+a};/*
|
|
@@ -363,8 +364,8 @@ function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0
|
|
|
363
364
|
limitations under the License.
|
|
364
365
|
*/
|
|
365
366
|
function Gj(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Ib(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Hj(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Rh(c,0)).T(),a.g=8*d,a.i-=d)}function Ij(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Hj(a)}a.h<<=b;a.g-=b}
|
|
366
|
-
function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Hj(a);c=b-c;return 0<c?d<<c|Jj(a,c):d}function Kj(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Hj(a);return b+Kj(a)}function Lj(a){Ij(a,1+Kj(a))}function V(a){var b=Kj(a);return Jj(a,b+1)-1}function Mj(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Nj(a){return 1===Jj(a,1)}function
|
|
367
|
-
function Sj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Tj(a){
|
|
367
|
+
function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Hj(a);c=b-c;return 0<c?d<<c|Jj(a,c):d}function Kj(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Hj(a);return b+Kj(a)}function Lj(a){Ij(a,1+Kj(a))}function V(a){var b=Kj(a);return Jj(a,b+1)-1}function Mj(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Nj(a){return 1===Jj(a,1)}function Oj(a){return Jj(a,8)}
|
|
368
|
+
function Sj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Tj(a){Oj(a);V(a);return V(a)}S("shaka.util.ExpGolomb",Gj);function Uj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.o=this.u=null}q=Uj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
|
|
368
369
|
q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Vj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Fe:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
|
|
369
370
|
k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,p=m;2<p;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Bc(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
|
|
370
371
|
null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,Si:u,sampleRate:48E3}))}n+=r;p-=r}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Fe&&(g.Fe=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
|
|
@@ -376,14 +377,14 @@ q.Ig=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;
|
|
|
376
377
|
n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=Nc(b.data,a),b.fullData=Nc(b.fullData,a));return h};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=Nc.apply(Hc,x(c.value)),(c=Wj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:vj(c.data),dts:c.dts,pts:c.pts});return a};
|
|
377
378
|
q.pc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=Nc.apply(Hc,x(c.value)),e=Wj(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=Nc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
|
|
378
379
|
q.Jc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Nc.apply(Hc,x(d.value)),f=Wj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Nc(d.data,e),this.g.push(d))}if(a){c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.nalus=this.Ig(e,
|
|
379
|
-
g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.pc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Jc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.
|
|
380
|
+
g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.pc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Jc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Fd=function(){return{audio:this.A,video:this.m}};
|
|
380
381
|
q.De=function(){for(var a=[],b=t(this.Jc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.Fj=function(){Bd("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.og();return{height:a.height,width:a.width}};q.og=function(){return"hvc"==this.m?Yj(this):Zj(this)};function ak(a){var b=a.Jc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
|
|
381
|
-
function Zj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=
|
|
382
|
+
function Zj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=Oj(c),e=Oj(c),f=Oj(c);Lj(c);if(bk.includes(d)){var g=V(c);3===g&&Ij(c,1);Lj(c);Lj(c);Ij(c,1);if(Nj(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Nj(c)&&(6>h?Sj(c,16):Sj(c,64))}}Lj(c);g=V(c);if(0===g)V(c);else if(1===g)for(Ij(c,1),Lj(c),Lj(c),g=V(c),h=0;h<g;h++)Lj(c);Lj(c);Ij(c,1);g=V(c);h=V(c);var k=Jj(c,1);0===k&&Ij(c,1);Ij(c,
|
|
382
383
|
1);var l=0,m=0,n=0,p=0;Nj(c)&&(l=V(c),m=V(c),n=V(c),p=V(c));b.height=String((2-k)*(h+1)*16-2*n-2*p);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=ak(a);return b}
|
|
383
|
-
function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(B){return 33==B.type});if(!c)return b;var d=new Gj(c.fullData,!0);
|
|
384
|
+
function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(B){return 33==B.type});if(!c)return b;var d=new Gj(c.fullData,!0);Oj(d);Oj(d);Jj(d,4);var e=Jj(d,3);Nj(d);var f=Jj(d,2),g=Jj(d,1),h=Jj(d,5),k=Jj(d,32);c=Oj(d);for(var l=Oj(d),m=Oj(d),n=Oj(d),p=Oj(d),r=Oj(d),u=Oj(d),v=[],w=[],y=0;y<e;y++)v.push(Nj(d)),w.push(Nj(d));if(0<e)for(y=e;8>y;y++)Jj(d,2);for(y=0;y<e;y++)v[y]&&Jj(d,88),w[y]&&Oj(d);V(d);e=V(d);3==e&&Jj(d,1);v=V(d);w=V(d);var z=
|
|
384
385
|
y=0,C=0,A=0;Nj(d)&&(y+=V(d),z+=V(d),C+=V(d),A+=V(d));b.width=String(v-(y+z)*(1===e||2===e?2:1));b.height=String(w-(C+A)*(1===e?2:1));d=function(B){for(var D=0,E=0;32>E;E++)D|=(B>>E&1)<<31-E;return D>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
|
|
385
386
|
c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=ak(a);return b}function Xj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function ck(a){return 0>Vj(a)?!1:!0}function Vj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}S("shaka.util.TsParser",Uj);Uj.syncOffset=Vj;Uj.probe=ck;Uj.prototype.getVideoInfo=Uj.prototype.og;Uj.prototype.getVideoResolution=Uj.prototype.Fj;
|
|
386
|
-
Uj.prototype.getVideoNalus=Uj.prototype.De;Uj.prototype.getCodecs=Uj.prototype.
|
|
387
|
+
Uj.prototype.getVideoNalus=Uj.prototype.De;Uj.prototype.getCodecs=Uj.prototype.Fd;Uj.prototype.getStartTime=Uj.prototype.getStartTime;Uj.prototype.getVideoData=Uj.prototype.Jc;Uj.prototype.getAudioData=Uj.prototype.pc;Uj.prototype.getMetadata=Uj.prototype.getMetadata;Uj.prototype.parseNalus=Uj.prototype.Ig;Uj.prototype.parseAvcNalus=Uj.prototype.ck;Uj.prototype.parse=Uj.prototype.parse;Uj.prototype.clearData=Uj.prototype.clearData;Uj.Timescale=9E4;
|
|
387
388
|
var bk=[100,110,122,244,44,83,86,118,128,138,139,134];function dk(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Za("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Bd("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Za("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Za("Could not find LCEVC Library on this page"),
|
|
388
389
|
a=!1):(this.h.SupportObject.SupportStatus||Za(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ek(a){a.g&&a.i.classList.add("shaka-hidden")}
|
|
389
390
|
dk.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function fk(a,b,c){var d=0,e=-1;switch(b.mimeType){case "video/webm":d=1;break;case "video/mp4":d=2}switch(c){case "DASH":e=1;break;case "HLS":e=0}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}S("shaka.lcevc.Dec",dk);dk.prototype.release=dk.prototype.release;function gk(a,b,c,d){var e=this;this.i=a;this.Y=c;this.A=null;this.$=b;this.h={};this.H={};this.Ga={};this.g=null;this.ha=!1;this.S=d||null;this.l={};this.u=new sd;this.j={};this.I=null;this.L=new nh;this.N="";this.Ha=!1;this.m=hk(this,this.L);this.G=!1;this.J=new Lh(function(){return ik(e)});this.C=!1;this.U="UNKNOWN";this.Ia=this.Ja=!1;this.Ba=new nh;this.o=!1;this.xa=!0;this.qa=this.O=this.sa=this.P=this.K=this.aa=null;this.ia=new nh}
|
|
@@ -401,15 +402,15 @@ q.Tb=function(){var a={total:this.G?[]:oj(this.i.buffered),audio:this.G?[]:oj(rk
|
|
|
401
402
|
function uk(a,b,c,d,e,f){var g=null,h=Ib(c);if(Cf.includes(e))f=vj(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.Y.onMetadata([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ma&&d.ma.timescale){var k=d.ma.timescale;if(!isNaN(k)){var l=0,m=!1;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(n){l=yj(n.reader,
|
|
402
403
|
n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else if(!e.includes("/mp4")&&!e.includes("/webm")&&ck(h)&&(a.K?a.K.clearData():a.K=new Uj,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length))a.Y.onMetadata(h,f,d?d.endTime:null);return g}
|
|
403
404
|
function vk(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,y,z,C,A,B,D,E;return P(function(F){switch(F.g){case 1:m=Yc;if(b!=m.Na){F.B(2);break}if(!a.C){F.B(3);break}return G(F,a.Ba,4);case 4:n=F.h,a.g.u=n;case 3:return G(F,Rf(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return F.return();case 2:if(l||!a.o){F.B(6);break}return G(F,vk(a,m.ka,c,d,e,f,g,h,k,!0),7);case 7:return G(F,vk(a,m.wa,c,d,e,f,g,h,k,!0),8);case 8:return F.return();
|
|
404
|
-
case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.H[b];a.j[b]&&(r=a.j[b].getOriginalMimeType());d&&(u=uk(a,b,c,d,r,p),null!=u&&(null==a.P&&b==m.wa&&(a.P=u,a.sa=d.startTime,null!=a.O&&(v=0,a.sa==a.qa&&(v=a.P-a.O),a.ia.resolve(v))),null==a.O&&b==m.ka&&(a.O=u,a.qa=d.startTime,null!=a.P&&(w=0,a.sa==a.qa&&(w=a.P-a.O),a.ia.resolve(w))),y=d.startTime-u,z=Math.abs(p-y),(.001<=z||g||h)&&(!k||0<y||!p)&&(p=y,a.Ia&&(wk(a,b,function(){return
|
|
405
|
+
case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.H[b];a.j[b]&&(r=a.j[b].getOriginalMimeType());d&&(u=uk(a,b,c,d,r,p),null!=u&&(null==a.P&&b==m.wa&&(a.P=u,a.sa=d.startTime,null!=a.O&&(v=0,a.sa==a.qa&&(v=a.P-a.O),a.ia.resolve(v))),null==a.O&&b==m.ka&&(a.O=u,a.qa=d.startTime,null!=a.P&&(w=0,a.sa==a.qa&&(w=a.P-a.O),a.ia.resolve(w))),y=d.startTime-u,z=Math.abs(p-y),(.001<=z||g||h)&&(!k||0<y||!p)&&(p=y,a.Ia&&(wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,p)},null))),
|
|
405
406
|
C=b==m.wa||!(m.wa in a.h),a.C&&C&&a.Ba.resolve(p)));f&&b==m.wa&&(a.g||mk(a,"application/cea-608",a.C,!1),a.I||(A=r.split(";",1)[0],a.I=new Id(A)),d?(B=a.I.i(c),B.length&&Vf(a.g,B,d.startTime,d.endTime,p)):a.I.init(c,h));if(!a.j[b]){F.B(9);break}return G(F,a.j[b].transmux(c,e,d,a.m.duration,b),10);case 10:c=F.h;case 9:c=Gk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Na){F.B(11);break}if(!g&&!h){F.B(11);break}D=d.startTime;if("HLS"!=a.U||a.o||b!=m.ka||!a.h[m.wa]){F.B(13);break}return G(F,
|
|
406
|
-
a.ia,14);case 14:E=F.h,.1<Math.abs(E)&&(D-=E);case 13:wk(a,b,function(){return
|
|
407
|
+
a.ia,14);case 14:E=F.h,.1<Math.abs(E)&&(D-=E);case 13:wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,D)},null);case 11:return G(F,wk(a,b,function(){var L=c;if("video"==b&&a.S){var J=a.S;J.g&&J.g.appendBuffer(L,"video",J.o,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:H(F)}})}function Hk(a,b){var c=sk(a,"video")||0;Tf(a.g,b,c)}function Ik(a){a.g&&Tf(a.g,"",0)}
|
|
407
408
|
q.remove=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=Yc,a==e.Na?G(f,d.g.remove(b,c),0):G(f,wk(d,a,function(){return Jk(d,a,b,c)},null),4)):d.o?G(f,wk(d,e.ka,function(){return Jk(d,e.ka,b,c)},null),0):f.B(0)})};function Kk(a,b){var c;return P(function(d){return 1==d.g?(c=Yc,b==c.Na?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,wk(a,b,function(){return Jk(a,b,0,a.m.duration)},null),4)):a.o?G(d,wk(a,c.ka,function(){return Jk(a,c.ka,0,a.m.duration)},null),0):d.B(0)})}
|
|
408
409
|
q.flush=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Yc,a==c.Na?d.return():G(d,wk(b,a,function(){b.i.currentTime-=.001;ok(b,a)},null),2)):b.o?G(d,wk(b,c.ka,function(){var e=c.ka;b.i.currentTime-=.001;ok(b,e)},null),0):d.B(0)})};
|
|
409
|
-
function Lk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Yc;if(b==l.Na)return f||(a.g.u=c),Sf(a.g,d,e),p.return();m=[];return G(p,Mk(a,b,g,h,k),2)}n=p.h;n||(m.push(wk(a,b,function(){return
|
|
410
|
+
function Lk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Yc;if(b==l.Na)return f||(a.g.u=c),Sf(a.g,d,e),p.return();m=[];return G(p,Mk(a,b,g,h,k),2)}n=p.h;n||(m.push(wk(a,b,function(){return xk(a,b)},null)),a.o&&m.push(wk(a,l.ka,function(){return xk(a,l.ka)},null)));f||(m.push(wk(a,b,function(){return Fk(a,b,c)},null)),a.o&&m.push(wk(a,l.ka,function(){return Fk(a,l.ka,c)},null)));m.push(wk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
|
|
410
411
|
d;ok(a,b)},null));a.o&&m.push(wk(a,l.ka,function(){var r=l.ka;a.h[r].appendWindowStart=0;a.h[r].appendWindowEnd=e;a.h[r].appendWindowStart=d;ok(a,r)},null));return G(p,Promise.all(m),0)})}
|
|
411
|
-
function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.Ba=new nh);wk(a,b,function(){return
|
|
412
|
-
q.sb=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){if(a<b.m.duration)for(var d in b.h){var e={start:function(){},p:new nh,uri:null};b.l[d].unshift(e)}b.m.duration=a;b.aa=a}),0)})};q.getDuration=function(){return this.m.duration};function Jk(a,b,c,d){d<=c?ok(a,b):a.h[b].remove(c,d)}function
|
|
412
|
+
function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.Ba=new nh);wk(a,b,function(){return xk(a,b)},null);a.o&&wk(a,d.ka,function(){return xk(a,d.ka)},null);return G(e,wk(a,b,function(){return Fk(a,b,c)},null),2)}return a.o?G(e,wk(a,d.ka,function(){return Fk(a,d.ka,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){pk(b)||"closed"===b.m.readyState||(a?b.m.endOfStream(a):b.m.endOfStream())}),0)})};
|
|
413
|
+
q.sb=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){if(a<b.m.duration)for(var d in b.h){var e={start:function(){},p:new nh,uri:null};b.l[d].unshift(e)}b.m.duration=a;b.aa=a}),0)})};q.getDuration=function(){return this.m.duration};function Jk(a,b,c,d){d<=c?ok(a,b):a.h[b].remove(c,d)}function xk(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;ok(a,b)}
|
|
413
414
|
function Fk(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;ok(a,b)}function ok(a,b){if(!a.G){var c=a.l[b][0];c&&(c.p.resolve(),Pk(a,b))}}function wk(a,b,c,d){Mh(a.J);c={start:c,p:new nh,uri:d};a.l[b].push(c);1==a.l[b].length&&Qk(a,b);return c.p}
|
|
414
415
|
function Ok(a,b){var c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:Mh(a.J);c=[];d={};for(e in a.h)d={ready:void 0},d.ready=new nh,f={start:function(m){return function(){return m.ready.resolve()}}(d),p:d.ready,uri:null},a.l[e].push(f),c.push(d.ready),1==a.l[e].length&&f.start();ta(l,2);return G(l,Promise.all(c),4);case 4:wa(l,3);break;case 2:throw g=xa(l),g;case 3:return ta(l,5,6),G(l,b(),6);case 6:ya(l);for(h in a.h)Pk(a,h);za(l,0);break;case 5:throw k=xa(l),new U(2,3,3015,k,a.i.error||"No error in the media element",
|
|
415
416
|
null);}})}function Pk(a,b){a.l[b].shift();Qk(a,b)}function Qk(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),Pk(a,b)}}function Gk(a,b,c,d,e){var f=null==c,g=a.Ga[d];c=a.Y.jj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Sb(c),f=dc()||ac()||lc()||$b()&&qc()&&c;f&&"mp4"==Hf(a.H[d])&&(b=aj(b,e));return b}
|
|
@@ -423,8 +424,8 @@ function Uk(a,b,c,d){if(b==Wc)var e=!1;else{e=If(Mf(a.H[b]));var f=Lf(a.H[b]),g=
|
|
|
423
424
|
q.Xh=function(a,b){if(0!=a.length){var c=(Date.now()+this.A)/1E3;a=a.filter(function(e){return e.start+b<c});if(0!=a.length){var d=a[a.length-1].end+b;this.Se(a[0].start+b);this.g=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.g);this.h=Math.max(this.h,d);null!=this.i&&this.G&&!this.u&&(this.i=c-this.h-this.g)}}};
|
|
424
425
|
q.Sd=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Se(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.u&&(this.i=d-this.h-this.g)}};q.pj=function(){return this.h};q.Ne=function(){this.u=!0};q.Qj=function(){return this.u};q.li=function(a){this.m=a};q.ij=function(){return this.m};
|
|
425
426
|
q.Se=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.Dg=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.V=function(){return Infinity==this.j&&!this.I};q.Nc=function(){return Infinity!=this.j&&!this.I};q.Gb=function(){return Math.max(this.J,this.rc()-this.o)};q.ri=function(a){this.J=a};
|
|
426
|
-
q.rc=function(){return this.V()||this.Nc()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};q.
|
|
427
|
-
q.ii=function(a){this.H=a};q.Zi=function(){return this.H};S("shaka.media.PresentationTimeline",Vk);Vk.prototype.getAvailabilityTimeOffset=Vk.prototype.Zi;Vk.prototype.setAvailabilityTimeOffset=Vk.prototype.ii;Vk.prototype.usingPresentationStartTime=Vk.prototype.Di;Vk.prototype.getSeekRangeEnd=Vk.prototype.Ub;Vk.prototype.getSeekRangeStart=Vk.prototype.qc;Vk.prototype.getSafeSeekRangeStart=Vk.prototype.
|
|
427
|
+
q.rc=function(){return this.V()||this.Nc()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};q.Hd=function(a){var b=Math.max(this.l,this.J);return Infinity==this.o?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.rc()-this.o+a,this.Ub()))};q.qc=function(){return this.Hd(0)};q.Ub=function(){return Math.max(0,this.rc()-(this.V()||this.Nc()?this.C:0))};q.Di=function(){return null==this.i||null!=this.h&&this.G?!1:!0};
|
|
428
|
+
q.ii=function(a){this.H=a};q.Zi=function(){return this.H};S("shaka.media.PresentationTimeline",Vk);Vk.prototype.getAvailabilityTimeOffset=Vk.prototype.Zi;Vk.prototype.setAvailabilityTimeOffset=Vk.prototype.ii;Vk.prototype.usingPresentationStartTime=Vk.prototype.Di;Vk.prototype.getSeekRangeEnd=Vk.prototype.Ub;Vk.prototype.getSeekRangeStart=Vk.prototype.qc;Vk.prototype.getSafeSeekRangeStart=Vk.prototype.Hd;Vk.prototype.getSegmentAvailabilityEnd=Vk.prototype.rc;Vk.prototype.setUserSeekStart=Vk.prototype.ri;
|
|
428
429
|
Vk.prototype.getSegmentAvailabilityStart=Vk.prototype.Gb;Vk.prototype.isInProgress=Vk.prototype.Nc;Vk.prototype.isLive=Vk.prototype.V;Vk.prototype.offset=Vk.prototype.offset;Vk.prototype.notifyMaxSegmentDuration=Vk.prototype.Dg;Vk.prototype.notifyMinSegmentStartTime=Vk.prototype.Se;Vk.prototype.getInitialProgramDateTime=Vk.prototype.ij;Vk.prototype.setInitialProgramDateTime=Vk.prototype.li;Vk.prototype.isStartTimeLocked=Vk.prototype.Qj;Vk.prototype.lockStartTime=Vk.prototype.Ne;
|
|
429
430
|
Vk.prototype.getMaxSegmentEndTime=Vk.prototype.pj;Vk.prototype.notifySegments=Vk.prototype.Sd;Vk.prototype.notifyTimeRange=Vk.prototype.Xh;Vk.prototype.getDelay=Vk.prototype.fj;Vk.prototype.setDelay=Vk.prototype.Tg;Vk.prototype.getSegmentAvailabilityDuration=Vk.prototype.Ce;Vk.prototype.setSegmentAvailabilityDuration=Vk.prototype.gf;Vk.prototype.setStatic=Vk.prototype.Uc;Vk.prototype.setClockOffset=Vk.prototype.ji;Vk.prototype.getPresentationStartTime=Vk.prototype.sj;Vk.prototype.setDuration=Vk.prototype.sb;
|
|
430
431
|
Vk.prototype.setPresentationStartTime=Vk.prototype.ni;Vk.prototype.getMaxSegmentDuration=Vk.prototype.oj;Vk.prototype.getDuration=Vk.prototype.getDuration;function Wk(a,b,c){this.j=c;this.l=a;this.u=Xk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}Wk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function Yk(a,b){a.i=b}function Zk(a){this.g=a}function Xk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(oj(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function $k(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.C=b;this.u=c;this.l=new sd;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.o=!1;this.l.s(a,"waiting",function(){return al(f)});this.m=(new Wb(function(){al(f)})).Aa(this.u.gapJumpTimerTime)}$k.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.C=this.A=null};$k.prototype.Gg=function(){this.o=!0;al(this)};
|
|
@@ -436,24 +437,24 @@ q.ke=function(){return(this.j?this.h.currentTime:this.g)||0};q.jh=function(){ret
|
|
|
436
437
|
function ll(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.C=b.minBufferTime||0;this.l=c;this.A=e;this.u=null;this.o=ml(a,c,f);this.j=new $k(a,b.presentationTimeline,c,this.o,f);this.h=new dl(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=gl(g.h);h=nl(g,k);if(.001<Math.abs(h-k)){k=!1;if(!jc()||jc()&&rc())k=!0;else{var l=Date.now()/1E3;if(!g.u||g.u<l-1)g.u=l,k=!0}if(k){hl(g.h,h);h=void 0;break a}}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},
|
|
437
438
|
function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.qc():g.g.Ub():0>h&&(h=g.g.Ub()+h);return ol(g,pl(g,h))});this.m=new Wb(function(){if(0!=g.i.readyState&&!g.i.paused){var h=gl(g.h),k=g.g.qc(),l=g.g.Ub();3>l-k&&(k=l-3);h<k&&(h=nl(g,h),g.i.currentTime=h)}})}q=ll.prototype;q.ready=function(){this.m.Aa(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};
|
|
438
439
|
q.Cf=function(a){hl(this.h,a)};q.ke=function(){var a=gl(this.h);return 0<this.i.readyState&&!this.i.paused?pl(this,a):a};q.jh=function(){return this.o?this.o.o:0};q.ih=function(){return this.j.G};q.Wh=function(){this.j.Gg()};function ol(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
|
|
439
|
-
function nl(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.qc(),f=a.g.Ub(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.
|
|
440
|
-
function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.
|
|
441
|
-
q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.
|
|
442
|
-
q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Pe(a);this.gb(b)};q.gb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.
|
|
443
|
-
q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.
|
|
440
|
+
function nl(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.qc(),f=a.g.Ub(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hd(c),k=a.g.Hd(d);c=a.g.Hd(c+d);return b>=g?ol(a,b):b>f?f:b<e?mj(a.i.buffered,k)?k:c:b>=h||mj(a.i.buffered,b)?b:c}function pl(a,b){var c=a.g.qc();if(b<c)return c;a=a.g.Ub();return b>a?a:b}
|
|
441
|
+
function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.i=0;this.o=!1}q=ql.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Xj=function(){this.o=!0};q.ac=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Cg(a){return a.g[0]||null}
|
|
442
|
+
q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
|
|
443
|
+
q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Pe(a);this.gb(b)};q.gb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
|
|
444
|
+
q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new gj(a.startTime,b,a.H,a.Za,a.La,a.ma,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
|
|
444
445
|
q.lf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Wb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Aa(a))};ql.prototype[Symbol.iterator]=function(){return this.bc(0)};
|
|
445
446
|
ql.prototype.bc=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Ya("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new rl(this,d,f,c)};function sl(a,b,c){a=new gj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new ql([a])}
|
|
446
447
|
S("shaka.media.SegmentIndex",ql);ql.forSingleSegment=sl;ql.prototype.getIteratorForTime=ql.prototype.bc;ql.prototype.updateEvery=ql.prototype.lf;ql.prototype.fit=ql.prototype.ed;ql.prototype.evict=ql.prototype.gb;ql.prototype.mergeAndEvict=ql.prototype.Rd;ql.prototype.offset=ql.prototype.offset;ql.prototype.get=ql.prototype.get;ql.prototype.find=ql.prototype.find;ql.prototype.markImmutable=ql.prototype.Xj;ql.prototype.release=ql.prototype.release;ql.prototype.getNumEvicted=ql.prototype.getNumEvicted;
|
|
447
|
-
ql.prototype.getNumReferences=ql.prototype.getNumReferences;function rl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}rl.prototype.
|
|
448
|
+
ql.prototype.getNumReferences=ql.prototype.getNumReferences;function rl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}rl.prototype.vd=function(a){this.reverse=a};rl.prototype.Ui=function(){return this.h};rl.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
|
|
448
449
|
rl.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};S("shaka.media.SegmentIterator",rl);rl.prototype.next=rl.prototype.next;rl.prototype.current=rl.prototype.current;rl.prototype.currentPosition=rl.prototype.Ui;
|
|
449
|
-
rl.prototype.setReverse=rl.prototype.
|
|
450
|
-
q.get=function(a){for(var b=
|
|
451
|
-
tl.prototype.offset=tl.prototype.offset;tl.prototype.get=tl.prototype.get;tl.prototype.find=tl.prototype.find;tl.prototype.forEachTopLevelReference=tl.prototype.ac;tl.prototype.release=tl.prototype.release;function ul(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Be();this.h=new Wb(function(){b.g.Vh(.25*b.i)})}ul.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};ul.prototype.set=function(a){this.i=a;vl(this)};ul.prototype.Hc=function(){return this.g.Hc()};function vl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Be()!=b&&a.g.Xg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Be()&&a.g.Xg(0)};function wl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Wb(function(){xl(b,!1)})).Aa(.25)}wl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function xl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function yl(){this.g=null;this.h=[]}function zl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Al(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Bl(){this.i=this.h=null;this.g=[]}function Cl(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Dl(){this.Dc=this.Qh=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.U=this.N=this.O=this.P=this.l=this.o=NaN;this.L=0;this.H=this.I=NaN;this.g=new yl;this.h=new Bl};function El(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function Fl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
|
|
450
|
+
rl.prototype.setReverse=rl.prototype.vd;function tl(){ql.call(this,[]);this.h=[]}oa(tl,ql);q=tl.prototype;q.clone=function(){var a=new tl;a.h=this.h.slice();a.i=this.i;return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.ac=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.ac(a)};
|
|
451
|
+
q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Pe=function(){};q.gb=function(){};q.Rd=function(){};q.ed=function(){};q.lf=function(){};
|
|
452
|
+
S("shaka.media.MetaSegmentIndex",tl);tl.prototype.updateEvery=tl.prototype.lf;tl.prototype.fit=tl.prototype.ed;tl.prototype.mergeAndEvict=tl.prototype.Rd;tl.prototype.evict=tl.prototype.gb;tl.prototype.merge=tl.prototype.Pe;tl.prototype.offset=tl.prototype.offset;tl.prototype.get=tl.prototype.get;tl.prototype.find=tl.prototype.find;tl.prototype.forEachTopLevelReference=tl.prototype.ac;tl.prototype.release=tl.prototype.release;function ul(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Be();this.h=new Wb(function(){b.g.Vh(.25*b.i)})}ul.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};ul.prototype.set=function(a){this.i=a;vl(this)};ul.prototype.Hc=function(){return this.g.Hc()};function vl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Be()!=b&&a.g.Xg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Be()&&a.g.Xg(0)};function wl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Wb(function(){xl(b,!1)})).Aa(.25)}wl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function xl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function yl(){this.g=null;this.h=[]}function zl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Al(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Bl(){this.i=this.h=null;this.g=[]}function Cl(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Dl(){this.Dc=this.Qh=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.U=this.N=this.O=this.P=this.l=this.o=NaN;this.L=0;this.H=this.I=NaN;this.g=new yl;this.h=new Bl};function El(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function Fl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
|
|
452
453
|
function Gl(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.bc(b,!0,a.o)),a.g)){for(c&&a.g.next();a.h.size<a.m;){b=a.g.next().value;if(!b)break;c=!0;b.isPreload()&&null!=b.La&&(c=!1);2==b.sc()&&(c=!1);c&&b.ma&&Hl(a,b.ma);c&&!a.h.has(b)&&(c=new Il(a.l),Jl(c,b,a.i),a.h.set(b,c))}Kl(a)}}function Hl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return fj(d,b)})){var c=new Il(a.l);Jl(c,b,a.i);a.j.set(b,c)}}
|
|
453
|
-
function Ll(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ml(a,c)}function Nl(a){Ll(a,a.h);Ll(a,a.j);a.g=null}El.prototype.gb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Ml(this,d);b&&Kl(this)};El.prototype.
|
|
454
|
+
function Ll(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ml(a,c)}function Nl(a){Ll(a,a.h);Ll(a,a.j);a.g=null}El.prototype.gb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Ml(this,d);b&&Kl(this)};El.prototype.vd=function(a){this.o=a;this.g&&this.g.vd(a)};
|
|
454
455
|
function Kl(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={vg:void 0},d=c.next())e.vg=d.value,b.some(function(f){return function(g){return fj(g.ma,f.vg)}}(e))||Ml(a,e.vg)}function Ol(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Ml(a,d)}Kl(a)}function Pl(a,b){b&&b!==a.i&&(Nl(a),a.i=b)}function Ml(a,b){var c=a.h;b instanceof ej&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Il(a){this.g=a;this.Ve=this.ah=null}
|
|
455
|
-
function Jl(a,b,c){var d=new Uint8Array(0);a.Ve=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Nc(d,e):d=e,a.ah?G(f,a.ah(d),3):f.B(0);d=new Uint8Array(0);H(f)})})}Il.prototype.abort=function(){this.Ve&&this.Ve.abort()};function Ql(a){hb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Wb(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Aa(2)}oa(Ql,hb);Ql.prototype.release=function(){this.g.clear();this.h.stop();hb.prototype.release.call(this)};function Rl(a){hb.call(this);this.g=new Map;this.h=a}oa(Rl,hb);Rl.prototype.release=function(){this.g.clear();hb.prototype.release.call(this)};function Sl(a,b){var c=a.g.get(b);c||(c={Wd:[],Qf:null,contentType:b},a.g.set(b,c));return c}function Tl(a,b,c){var d=Sl(a,b.contentType);Ul(a,d);a={
|
|
456
|
-
Rl.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Qf;a:{var e=c.Wd;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.
|
|
456
|
+
function Jl(a,b,c){var d=new Uint8Array(0);a.Ve=a.g(b,c,function(e){return P(function(f){if(1==f.g)return 0<d.byteLength?d=Nc(d,e):d=e,a.ah?G(f,a.ah(d),3):f.B(0);d=new Uint8Array(0);H(f)})})}Il.prototype.abort=function(){this.Ve&&this.Ve.abort()};function Ql(a){hb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Wb(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Aa(2)}oa(Ql,hb);Ql.prototype.release=function(){this.g.clear();this.h.stop();hb.prototype.release.call(this)};function Rl(a){hb.call(this);this.g=new Map;this.h=a}oa(Rl,hb);Rl.prototype.release=function(){this.g.clear();hb.prototype.release.call(this)};function Sl(a,b){var c=a.g.get(b);c||(c={Wd:[],Qf:null,contentType:b},a.g.set(b,c));return c}function Tl(a,b,c){var d=Sl(a,b.contentType);Ul(a,d);a={md:b,position:c};d=d.Wd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
|
|
457
|
+
Rl.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Qf;a:{var e=c.Wd;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.md;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);
|
|
457
458
|
g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!Td(d.roles,e.roles);(g||h||d)&&Vl(this,a,e.contentType)&&(c.Qf=e,d=new T("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Vl(this,a,e.contentType)&&(c.Qf=e,JSON.stringify(e),c=new T("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
|
|
458
459
|
function Vl(a,b,c){return(a=a.h()[c])&&0<a.length&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function Ul(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Wd;b.Wd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Wd=[]}
|
|
459
460
|
function Wl(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language=
|
|
@@ -474,42 +475,43 @@ function em(a){var b,c,d,e,f,g,h;return P(function(k){if(1==k.g){b=[];c=t(a.i.va
|
|
|
474
475
|
q.configure=function(a){this.h=a;this.L=new kh({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.ba&&(Nl(b.ba),b.ba=null);b=t(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,Nl(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Wc))&&
|
|
475
476
|
b.ba&&(Nl(b.ba),b.ba=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ba&&(Nl(b.ba),b.ba=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ba?(Ol(c.ba,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(Nl(c.ba),c.ba=null)):0<a.segmentPrefetchLimit&&(c.ba=hm(this,c.stream));a.disableAudioPrefetch||im(this)};function jm(a,b,c){a.l.presentationTimeline.V()||(a.P=b,a.O=c)}
|
|
476
477
|
q.start=function(a){var b=this;return P(function(c){if(1==c.g)return G(c,km(b,a||new Map),2);Mh(b.m);b.G=!0;H(c)})};function lm(a,b){var c,d,e,f,g,h,k;P(function(l){switch(l.g){case 1:return c=Yc,a.K++,d=a.K,ta(l,2),G(l,Kk(a.g.oa,c.Na),4);case 4:wa(l,3);break;case 2:if(e=xa(l),a.g)a.g.onError(e);case 3:f=Bf(b.mimeType,b.codecs),mk(a.g.oa,f,a.l.sequenceMode,b.external),g=a.g.oa.$,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.K==d&&(k=mm(a,b),a.i.set(c.Na,k),nm(a,k,0)),H(l)}})}
|
|
477
|
-
function om(a){var b=a.i.get(Wc);b&&(fm(b),gm(b).catch(function(){}),a.i.delete(Wc));a.u=null}function pm(a,b){for(var c=0>a.g.Va(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.za&&e.za.
|
|
478
|
+
function om(a){var b=a.i.get(Wc);b&&(fm(b),gm(b).catch(function(){}),a.i.delete(Wc));a.u=null}function pm(a,b){for(var c=0>a.g.Va(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.za&&e.za.vd(c),e.ba&&e.ba.vd(c);d=t(a.o.values());for(e=d.next();!e.done;e=d.next())e.value.vd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.yc&&(qm(a,b,!1,0,!1),c.yc=d);else if(b=c.yc)c.yc=null,qm(a,b,!0,0,!1)}
|
|
478
479
|
function rm(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.G&&(b.video&&qm(a,b.video,c,d,e,f),b.audio&&qm(a,b.audio,c,d,e,f))}function sm(a,b){P(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.B(2):G(c,b.createSegmentIndex(),2):c.return();qm(a,b,!0,0,!1);H(c)})}function tm(a,b){for(var c=t(a.H.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.H.delete(d))}}
|
|
479
|
-
function qm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Wc?g&&(g.yc&&(b.trickModeVideo?(g.yc=b,b=b.trickModeVideo):g.yc=null),g.stream!=b||e)&&(a.o.has(b)?g.ba=a.o.get(b):g.ba&&Pl(g.ba,b),b.type==Wc&&(e=Bf(b.mimeType,b.codecs),mk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.o.has(g.stream)&&g.stream.closeSegmentIndex&&(g.eb?(e="("+g.type+":"+g.stream.id+")",a.H.has(e)||a.H.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),g.stream=b,g.za=null,g.lh=!!f,c?g.
|
|
480
|
+
function qm(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Wc?g&&(g.yc&&(b.trickModeVideo?(g.yc=b,b=b.trickModeVideo):g.yc=null),g.stream!=b||e)&&(a.o.has(b)?g.ba=a.o.get(b):g.ba&&Pl(g.ba,b),b.type==Wc&&(e=Bf(b.mimeType,b.codecs),mk(a.g.oa,e,a.l.sequenceMode,b.external)),!a.o.has(g.stream)&&g.stream.closeSegmentIndex&&(g.eb?(e="("+g.type+":"+g.stream.id+")",a.H.has(e)||a.H.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),g.stream=b,g.za=null,g.lh=!!f,c?g.Bd?g.uf=!0:g.eb?(g.Cc=!0,g.se=
|
|
480
481
|
d,g.uf=!0):(fm(g),um(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.eb||g.Rb||nm(a,g,0),vm(a,g).catch(function(h){if(a.g)a.g.onError(h)})):lm(a,b)}
|
|
481
482
|
function vm(a,b){var c,d;return P(function(e){if(1==e.g){if(!b.Ab)return e.return();c=b.stream;d=b.Ab;return c.segmentIndex?e.B(2):G(e,c.createSegmentIndex(),2)}if(b.Ab!=d||b.stream!=c)return e.return();var f=a.g.Ae();var g=sk(a.g.oa,b.type),h=b.stream.segmentIndex.find(b.hb?b.hb.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.La?k.La-k.Za:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ma)&&(h+=(k.La?k.La-k.Za:null)||0),k=a.g.getBandwidthEstimate(),
|
|
482
483
|
f=8*h/k<(g||0)-f-Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal)||b.Ab.h.g>h?!0:!1):f=!1;f&&b.Ab.abort();H(e)})}
|
|
483
|
-
q.
|
|
484
|
-
function wm(a,b){b.
|
|
484
|
+
q.td=function(){if(this.g)for(var a=this.g.Ae(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.oa;e.G?e=!1:d==Wc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=rk(e,d),e=mj(e,a));if(!e){c.ba&&(c.ba.g=null);if("audio"===c.type){e=t(this.o.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.za=null;(null!=sk(this.g.oa,d)||c.eb)&&wm(this,c);c.Ab&&(c.Ab.abort(),c.Ab=null);d===Wc&&(d=this.g.oa,d.I&&d.I.g());c.td=!0}}};
|
|
485
|
+
function wm(a,b){b.Bd||b.Cc||(b.eb?(b.Cc=!0,b.se=0):null==qk(a.g.oa,b.type)?null==b.Rb&&nm(a,b,0):(fm(b),um(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
|
|
485
486
|
function km(a,b){var c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g){c=Yc;if(!a.j)throw new U(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.ka,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.wa,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Na,a.u),e.add(a.u));f=a.g.oa;return G(p,f.init(d,a.l.sequenceMode,a.l.type,a.l.ignoreManifestTimestampsInSegmentsMode),2)}Mh(a.m);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=mm(a,l),b.has(l.id)&&(n=
|
|
486
|
-
b.get(l.id),Fl(n,function(r,u,v){return xm(r,u,v||null,a.h.retryParameters,a.g.fc)}),m.ba=n),a.i.set(k,m),nm(a,m,0));H(p)})}function mm(a,b){return{stream:b,type:b.type,za:null,ba:hm(a,b),hb:null,Pc:null,Me:null,Le:null,Ke:null,yc:null,endOfStream:!1,eb:!1,Rb:null,Cc:!1,se:0,uf:!1,
|
|
487
|
+
b.get(l.id),Fl(n,function(r,u,v){return xm(r,u,v||null,a.h.retryParameters,a.g.fc)}),m.ba=n),a.i.set(k,m),nm(a,m,0));H(p)})}function mm(a,b){return{stream:b,type:b.type,za:null,ba:hm(a,b),hb:null,Pc:null,Me:null,Le:null,Ke:null,yc:null,endOfStream:!1,eb:!1,Rb:null,Cc:!1,se:0,uf:!1,Bd:!1,td:!0,Lg:!1,Kd:!1,Ab:null}}
|
|
487
488
|
function hm(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Wc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Wc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.ba)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new El(a.h.segmentPrefetchLimit,b,function(d,e,f){return xm(d,e,f||null,a.h.retryParameters,a.g.fc)},0>a.g.Va()):null}
|
|
488
489
|
function im(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=t(a.l.variants),e=d.next(),f={};!e.done;f={Db:void 0},e=d.next())if(f.Db=e.value,f.Db.audio)if(a.o.has(f.Db.audio)){if(e=a.o.get(f.Db.audio),Ol(e,b),!(0<b&&c.some(function(h){return function(k){return ad(h.Db.audio.language,k)}}(f)))){var g=a.i.get(f.Db.audio.type);e!==(g&&g.ba)&&Nl(e);a.o.delete(f.Db.audio)}}else 0>=b||!c.some(function(h){return function(k){return ad(h.Db.audio.language,k)}}(f))||!(e=hm(a,f.Db.audio))||
|
|
489
490
|
(f.Db.audio.segmentIndex||f.Db.audio.createSegmentIndex(),a.o.set(f.Db.audio,e))}q.updateDuration=function(){var a=this.l.presentationTimeline.getDuration();Infinity>a?this.g.oa.sb(a):this.g.oa.sb(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
|
|
490
|
-
function ym(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.eb||null==b.Rb||b.
|
|
491
|
-
nm(a,b,0),k.return();case 4:ta(k,9);e=Am(a,b);null!=e&&(nm(a,b,e),b.
|
|
491
|
+
function ym(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Mh(a.m);if(b.eb||null==b.Rb||b.Bd)return k.return();b.Rb=null;if(!b.Cc){k.B(2);break}return G(k,um(a,b,b.uf,b.se),3);case 3:return k.return();case 2:tm(a,b);if(b.stream.segmentIndex){k.B(4);break}c=b.stream;ta(k,5);return G(k,b.stream.createSegmentIndex(),7);case 7:wa(k,6);break;case 5:return d=xa(k),G(k,zm(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.eb||b.Rb||
|
|
492
|
+
nm(a,b,0),k.return();case 4:ta(k,9);e=Am(a,b);null!=e&&(nm(a,b,e),b.Kd=!1);wa(k,10);break;case 9:return f=xa(k),G(k,zm(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.G||!g.every(function(l){return l.endOfStream})){k.B(0);break}return G(k,a.g.oa.endOfStream(),13);case 13:Mh(a.m),h=a.g.oa.getDuration(),0!=h&&h<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.sb(h),H(k)}})}
|
|
492
493
|
function Am(a,b){if(Bm(b))return Hk(a.g.oa,b.stream.originalId||""),null;b.type==Wc&&Ik(a.g.oa);if(!a.g.oa.xa&&b.type!=Wc)return a.h.updateIntervalSeconds/2;var c=a.g.Ae();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.gb(c,!0),Gl(e,c);d=b.hb?b.hb.endTime:c;var f=tk(a.g.oa,b.type,c),g=Math.max(1,Math.max(a.l.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.C),h=a.l.presentationTimeline.getDuration()-d;e=sk(a.g.oa,b.type);if(1E-6>h&&e)return b.endOfStream=
|
|
493
494
|
!0,"video"==b.type&&(a=a.i.get(Wc))&&Bm(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(f>=g)return a.h.updateIntervalSeconds/2;g=!b.za;e=Cm(a,b,c,e);if(!e)return a.h.updateIntervalSeconds;f=!1;g&&b.lh&&(f=!0,b.lh=!1);g=Infinity;h=Array.from(a.i.values());h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,Bm(k)||k.za&&!k.za.current()||(g=Math.min(g,k.hb?k.hb.endTime:c));if(d>=g+a.l.presentationTimeline.g)return a.h.updateIntervalSeconds;b.ba&&b.za&&!a.o.has(b.stream)&&(b.ba.gb(e.startTime),Gl(b.ba,
|
|
494
495
|
e.startTime));Dm(a,b,c,e,f).catch(function(){});return null}function Cm(a,b,c,d){if(b.za)return b.za.current();if(b.hb||d)return b.za=b.stream.segmentIndex.bc(b.hb?b.hb.endTime:d,!1,0>a.g.Va()),b.za&&b.za.next().value;d=a.l.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Va();var f=null;d&&(b.za=b.stream.segmentIndex.bc(e,!1,a),f=b.za&&b.za.next().value);f||(b.za=b.stream.segmentIndex.bc(c,!1,a),f=b.za&&b.za.next().value);return f}
|
|
495
496
|
function Dm(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:f=Yc;g=b.stream;h=b.za;b.eb=!0;ta(D,2);if(2==d.sc())throw new U(1,1,1011);return G(D,Em(a,b,d,e),4);case 4:Mh(a.m);if(a.A)return D.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.l.isLowLatency)&&l&&k&&("HLS"!=a.l.type||d.m))return r=new Uint8Array(0),v=u=!1,y=function(E){var F,L,J,K;return P(function(I){switch(I.g){case 1:if(u)return I.return();
|
|
496
497
|
v=!0;Mh(a.m);if(a.A)return I.return();ta(I,2);r=Fm(r,E);F=!1;L=0;(new Uh).box("mdat",function(N){L=N.size+N.start;F=!0}).parse(r,!1,!0);if(!F){I.B(4);break}J=r.subarray(0,L);r=r.subarray(L);return G(I,Gm(a,b,c,g,d,J,!0,e),5);case 5:b.ba&&b.za&&Gl(b.ba,d.startTime,!0);case 4:wa(I,0);break;case 2:w=K=xa(I),H(I)}})},G(D,Hm(a,b,d,y),9);n=Hm(a,b,d);return G(D,n,7);case 7:p=D.h;Mh(a.m);if(a.A)return D.return();Mh(a.m);return b.Cc?(b.eb=!1,nm(a,b,0),D.return()):G(D,Gm(a,b,c,g,d,p,!1,e),6);case 9:z=D.h;if(w)throw w;
|
|
497
498
|
if(v){D.B(10);break}u=!0;Mh(a.m);return a.A?D.return():b.Cc?(b.eb=!1,nm(a,b,0),D.return()):G(D,Gm(a,b,c,g,d,z,!1,e),10);case 10:b.ba&&b.za&&Gl(b.ba,d.startTime,!0);case 6:Mh(a.m);if(a.A)return D.return();b.hb=d;h.next();b.eb=!1;b.Lg=!1;C=a.g.oa.Tb();A=C[b.type];db(JSON.stringify(A));b.Cc||a.g.Gg(d,b.stream);nm(a,b,0);wa(D,0);break;case 2:B=xa(D);Mh(a.m,B);if(a.A)return D.return();b.eb=!1;if(7001==B.code)b.eb=!1,fm(b),nm(a,b,0),D.B(0);else if(b.type==f.Na&&a.h.ignoreTextStreamFailures)a.i.delete(f.Na),
|
|
498
|
-
D.B(0);else if(3017==B.code)Im(a,b,B),D.B(0);else return b.
|
|
499
|
+
D.B(0);else if(3017==B.code)Im(a,b,B),D.B(0);else return b.Kd=!0,1==B.category&&b.ba&&Ml(b.ba,d),B.severity=2,G(D,zm(a,b,B),0)}})}function Fm(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Im(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.Lg})){if(a.g.disableStream(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kd=!0;a.A=!0;a.g.onError(c);return}b.Lg=!0}nm(a,b,4)}
|
|
499
500
|
function Em(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C;return P(function(A){switch(A.g){case 1:e=Yc;f=null==b.hb&&null==b.Pc;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.P)-.1);k=Math.min(c.appendWindowEnd,a.O)+.01;l=c.codecs||b.stream.codecs;m=Kf(l);n=Lf(c.mimeType||b.stream.mimeType);p=c.timestampOffset;if(p==b.Me&&h==b.Le&&k==b.Ke&&m==b.zg&&n==b.Ag){A.B(2);break}r=b.zg&&b.Ag&&Uk(a.g.oa,b.type,n,l);if(!r){A.B(3);break}u=null;b.type===e.wa?u=a.i.get(e.ka):b.type===e.ka&&(u=a.i.get(e.wa));if(!u){A.B(3);
|
|
500
501
|
break}return G(A,gm(u).catch(function(){}),5);case 5:u.Pc=null,wm(a,u);case 3:return G(A,Jm(a,b,p,h,k,c,m,n),2);case 2:return fj(c.ma,b.Pc)||(b.Pc=c.ma,c.l&&c.ma&&(v=Hm(a,b,c.ma),w=function(){var B,D,E,F,L,J,K;return P(function(I){switch(I.g){case 1:return ta(I,2),G(I,v,4);case 4:return B=I.h,Mh(a.m),D=null,E=new Map,F={projection:null,hfov:null},L=new Uh,L.box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(N){D=zj(N.reader,N.version).timescale}).box("hdlr",function(N){N=N.reader;N.skip(8);
|
|
501
502
|
switch(N.Rc()){case "soun":E.set(e.ka,D);break;case "vide":E.set(e.wa,D)}D=null}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("encv",bi).box("avc1",bi).box("avc3",bi).box("hev1",bi).box("hvc1",bi).box("dvav",bi).box("dva1",bi).box("dvh1",bi).box("dvhe",bi).box("dvc1",bi).box("dvi1",bi).box("vexu",Zh).box("proj",Zh).W("prji",function(N){N=N.reader.Rc();F.projection=N}).box("hfov",function(N){N=N.reader.T()/1E3;F.hfov=N}).parse(B),Km(a,F),E.has(b.type)?c.ma.timescale=E.get(b.type):null!=D&&(c.ma.timescale=
|
|
502
|
-
D),J=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,G(I,a.g.ph(b.type,B),5);case 5:return G(I,vk(a.g.oa,b.type,B,null,b.stream,J,b.
|
|
503
|
+
D),J=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,G(I,a.g.ph(b.type,B),5);case 5:return G(I,vk(a.g.oa,b.type,B,null,b.stream,J,b.td,d),6);case 6:wa(I,0);break;case 2:throw K=xa(I),b.Pc=null,K;}})},y=c.startTime,f&&(z=sk(a.g.oa,b.type),null!=z&&(y=z)),a.g.$j(y,c.ma),g.push(w()))),a.l.sequenceMode&&(C=b.hb?b.hb.i:null,c.i!=C&&g.push(Nk(a.g.oa,b.type,c.startTime))),G(A,Promise.all(g),0)}})}
|
|
503
504
|
function Jm(a,b,c,d,e,f,g,h){var k,l,m,n;return P(function(p){if(1==p.g)return k=Yc,l=new Map,a.j.audio&&l.set(k.ka,a.j.audio),a.j.video&&l.set(k.wa,a.j.video),ta(p,2),b.Le=d,b.Ke=e,g&&(b.zg=g),h&&(b.Ag=h),b.Me=c,m=a.l.sequenceMode||"HLS"==a.l.type,G(p,Lk(a.g.oa,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),4);if(2!=p.g)return wa(p,0);n=xa(p);b.Le=null;b.Ke=null;b.zg=null;b.Ag=null;b.Me=null;throw n;})}
|
|
504
505
|
function Gm(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,p,r,u,v;return P(function(w){switch(w.g){case 1:k=d.closedCaptions&&0<d.closedCaptions.size;m=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;n=a.h.parsePrftBox&&!a.I;p="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType;r=null;e.ma&&(r=e.ma.timescale);u=p&&r&&"video"===d.type&&"DASH"==a.l.type&&a.h.shouldFixTimestampOffset;if(m||n||u)l=new Uh;m&&l.W("emsg",function(y){var z=d.emsgSchemeIdUris;
|
|
505
|
-
if(0===y.version){var C=y.reader.Rc();var A=y.reader.Rc();var B=y.reader.T();var D=y.reader.T();var E=y.reader.T();var F=y.reader.T();var L=e.startTime+D/B}else B=y.reader.T(),L=y.reader.
|
|
506
|
+
if(0===y.version){var C=y.reader.Rc();var A=y.reader.Rc();var B=y.reader.T();var D=y.reader.T();var E=y.reader.T();var F=y.reader.T();var L=e.startTime+D/B}else B=y.reader.T(),L=y.reader.rd()/B+e.timestampOffset,D=L-e.startTime,E=y.reader.T(),F=y.reader.T(),C=y.reader.Rc(),A=y.reader.Rc();y=y.reader.Pb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.bk();else if(z=L+E/B,B=(new Map).set("detail",{startTime:L,endTime:z,schemeIdUri:C,
|
|
506
507
|
value:A,timescale:B,presentationTimeDelta:D,eventDuration:E,id:F,messageData:y}),B=new T("emsg",B),B.cancelable=!0,a.g.onEvent(B),!B.defaultPrevented&&("https://aomedia.org/emsg/ID3"==C||"https://developer.apple.com/streaming/emsg-id3"==C)&&(C=vj(y),C.length))a.g.onMetadata([{cueTime:L,data:y,frames:C,dts:L,pts:L}],0,z)});n&&l.W("prft",function(y){if(!a.I&&e.ma.timescale){var z=y.reader,C=y.version;z.T();y=z.T();var A=z.T();y=1E3*y+A/Math.pow(2,32)*1E3;0===C?z=z.T():(C=z.T(),z=z.T(),z=C*Math.pow(2,
|
|
507
508
|
32)+z);y=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+y)).getTime();z=(new Map).set("detail",{wallClockTime:y,programStartDate:new Date(y-z/e.ma.timescale*1E3)});z=new T("prft",z);a.g.onEvent(z);a.I=!0}});u&&l.box("moof",Zh).box("traf",Zh).W("tfdt",function(y){var z,C,A,B,D,E;return P(function(F){z=yj(y.reader,y.version);C=z.baseMediaDecodeTime;if(!C)return F.return();A=-C/r;B=Number(b.Me)||0;if(!(B<A))return F.B(0);D=b.Le;E=b.Ke;return G(F,Jm(a,b,A,D,E,e),0)})});(m||n||u)&&l.parse(f,
|
|
508
|
-
!1,g);return G(w,Lm(a,b,c),2);case 2:return Mh(a.m),v=b.
|
|
509
|
+
!1,g);return G(w,Lm(a,b,c),2);case 2:return Mh(a.m),v=b.td,b.td=!1,G(w,a.g.ph(b.type,f),3);case 3:return G(w,vk(a.g.oa,b.type,f,e,d,k,v,h,g),4);case 4:Mh(a.m),H(w)}})}
|
|
510
|
+
function Lm(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g){d=b.stream.segmentIndex;if(d instanceof tl)for(;1<d.h.length&&0==d.h[0].getNumReferences();){var l=d.h.shift();d.i+=l.getNumEvicted();l.release()}e=Math.max(a.h.bufferBehind,a.l.presentationTimeline.g);f=qk(a.g.oa,b.type);if(null==f)return k.return();g=c-f;h=g-e;return h<=a.h.evictionGoal?k.return():G(k,a.g.oa.remove(b.type,f,f+h),2)}Mh(a.m);H(k)})}
|
|
509
511
|
function Bm(a){return a&&a.type==Wc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
|
|
510
|
-
function Hm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.
|
|
512
|
+
function Hm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.Id())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof ej&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ah=d),f=m.Ve):f=null}f||(f=xm(c,b.stream,d||null,a.h.retryParameters,a.g.fc));g=0;b.za&&(g=b.za.h);b.Ab=f;return G(l,f.promise,2);case 2:h=l.h;b.Ab=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,bm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
|
|
511
513
|
function xm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof gj?a:void 0,h=g?1:0;a=cm(a.R(),a.Za,a.La,d,c);a.contentType=b.type;return e.request(Jh,a,{type:h,stream:b,segment:g,isPreload:f})}
|
|
512
|
-
function um(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Cc=!1,b.uf=!1,b.se=0,b.
|
|
514
|
+
function um(a,b,c,d){var e,f;return P(function(g){if(1==g.g)return b.Cc=!1,b.uf=!1,b.se=0,b.Bd=!0,b.hb=null,b.za=null,b.ba&&!a.o.has(b.stream)&&Nl(b.ba),d?(e=a.g.Ae(),f=a.g.oa.getDuration(),G(g,a.g.oa.remove(b.type,e+d,f),3)):G(g,Kk(a.g.oa,b.type),4);if(3!=g.g)return Mh(a.m),c?G(g,a.g.oa.flush(b.type),3):g.B(3);Mh(a.m);b.Bd=!1;b.endOfStream=!1;b.eb||b.Rb||nm(a,b,0);H(g)})}
|
|
513
515
|
function nm(a,b,c){var d=b.type;if(d!=Wc||a.i.has(d))b.Rb=(new Vb(function(){var e;return P(function(f){if(1==f.g)return ta(f,2),G(f,ym(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);H(f)})})).X(c)}function fm(a){null!=a.Rb&&(a.Rb.stop(),a.Rb=null)}function gm(a){return P(function(b){return a.Ab?G(b,a.Ab.abort(),0):b.B(0)})}
|
|
514
516
|
function zm(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,mh(a.L),2);Mh(a.m);if(1===c.category){if(b.yc)return pm(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);H(e)})}
|
|
515
517
|
function Mm(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.N<c)return h.return(!1);a.N=b;d=Yc;if(e=a.i.get(d.ka))e.Pc=null,wm(a,e),gm(e).catch(function(){});if(f=a.i.get(d.wa))f.Pc=null,wm(a,f),gm(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.ka,a.j.audio);a.j.video&&g.set(d.wa,a.j.video);return G(h,Tk(a.g.oa,g),2)}return h.return(!0)})}
|
|
@@ -552,17 +554,17 @@ function rn(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.in
|
|
|
552
554
|
"regionremove",function(d){c.g.delete(d.region)})}oa(sn,hb);sn.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;hb.prototype.release.call(this)};sn.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?vn:a>d.endTime?wn:tn;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Yc==e&&h.Xc==f&&h.Lc(d,b)}}};
|
|
553
555
|
function un(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var vn=1,tn=2,wn=3;function xn(a,b,c){var d,e,f,g,h,k,l;return P(function(m){switch(m.g){case 1:var n=(new ob(a)).jb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=yn[d])return m.return(e);f=0;g=Dh([a],c);ta(m,2);g.method="HEAD";return G(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code&&1001!=k.code){m.B(3);break}g.method="GET";return G(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
|
|
554
556
|
e.toLowerCase().split(";").shift():"")}})}
|
|
555
|
-
var yn={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function zn(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return zn(g,a)}).join("");var c=[],d=a.fontWeight>=lf,e=a.fontStyle==mf,f=a.textDecoration.includes(nf);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=An(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=An(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;
|
|
556
|
-
h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
|
|
557
|
+
var yn={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function zn(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return zn(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=lf,e=a.fontStyle==mf,f=a.textDecoration.includes(nf);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=An(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=An(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;
|
|
558
|
+
k=k.next().value;return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
|
|
557
559
|
function An(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red";
|
|
558
560
|
case "yellow":case "#ff0":case "#ffff00":return"yellow";case "magenta":case "#f0f":case "#ff00ff":return"magenta";case "blue":case "#00f":case "#0000ff":return"blue";case "black":case "#000":case "#000000":return"black"}return null}function Bn(a,b){var c=[];a=t(Cn(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,x(Bn(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=zn(d,b);c.push(e)}return c}
|
|
559
561
|
function Cn(a){var b=[];a=t(a);for(var c=a.next(),d={};!c.done;d={Nf:void 0},c=a.next())d.Nf=c.value,b.some(function(e){return function(f){return bf(e.Nf,f)}}(d))||b.push(d.Nf);return b}
|
|
560
562
|
function Dn(a){function b(d){for(var e=5381,f=d.length;f;)e=33*e^d.charCodeAt(--f);return(e>>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&&
|
|
561
563
|
(c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c}
|
|
562
|
-
function En(a){if(Infinity===a.endTime||a.endTime<a.startTime)return null;var b=new Re(a.startTime,a.endTime,a.text);b.line="number"===typeof a.line?a.line:null;b.lineAlign=a.lineAlign;b.lineInterpretation=a.snapToLines?We:1;b.position="number"===typeof a.position?a.position:null;b.positionAlign=a.positionAlign;b.size=a.size;b.textAlign=a.align;"lr"===a.vertical?b.writingMode="vertical-lr":"rl"===a.vertical&&(b.writingMode="vertical-rl");a.region&&(b.region.id=a.region.id,
|
|
563
|
-
b.region.heightUnits=2,b.region.regionAnchorX=a.region.regionAnchorX,b.region.regionAnchorY=a.region.regionAnchorY,b.region.scroll=a.region.scroll,b.region.viewportAnchorX=a.region.viewportAnchorX,b.region.viewportAnchorY=a.region.viewportAnchorY,b.region.viewportAnchorUnits=Md,b.region.width=a.region.width,b.region.widthUnits=Md);cf(b);return b};function Fn(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,"metadata"!==d.kind&&"chapters"!==d.kind&&(d.mode="disabled",d.label==b&&(this.g=d));this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Fn.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;Gn(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
564
|
-
q.append=function(a){var b=Bn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];b=t(b);for(var d=b.next(),e={};!d.done;e={
|
|
565
|
-
c.indexOf(g)});a=t(a);for(b=a.next();!b.done;b=a.next())this.g.addCue(b.value)};q.destroy=function(){this.g&&(Gn(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
564
|
+
function En(a){if(Infinity===a.endTime||a.endTime<a.startTime)return null;var b=new Re(a.startTime,a.endTime,a.text);b.line="number"===typeof a.line?a.line:null;a.lineAlign&&(b.lineAlign=a.lineAlign);b.lineInterpretation=a.snapToLines?We:1;b.position="number"===typeof a.position?a.position:null;a.positionAlign&&(b.positionAlign=a.positionAlign);b.size=a.size;b.textAlign=a.align;"lr"===a.vertical?b.writingMode="vertical-lr":"rl"===a.vertical&&(b.writingMode="vertical-rl");a.region&&(b.region.id=a.region.id,
|
|
565
|
+
b.region.height=a.region.lines,b.region.heightUnits=2,b.region.regionAnchorX=a.region.regionAnchorX,b.region.regionAnchorY=a.region.regionAnchorY,b.region.scroll=a.region.scroll,b.region.viewportAnchorX=a.region.viewportAnchorX,b.region.viewportAnchorY=a.region.viewportAnchorY,b.region.viewportAnchorUnits=Md,b.region.width=a.region.width,b.region.widthUnits=Md);cf(b);return b};function Fn(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,"metadata"!==d.kind&&"chapters"!==d.kind&&(d.mode="disabled",d.label==b&&(this.g=d));this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Fn.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;Gn(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
|
|
566
|
+
q.append=function(a){var b=Bn(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];b=t(b);for(var d=b.next(),e={};!d.done;e={jd:void 0},d=b.next())e.jd=d.value,!a.some(function(f){return function(g){return g.startTime==f.jd.startTime&&g.endTime==f.jd.endTime&&g.text==f.jd.payload?!0:!1}}(e))&&e.jd.payload&&(d=Dn(e.jd))&&c.push(d);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):
|
|
567
|
+
c.indexOf(f)-c.indexOf(g)});a=t(a);for(b=a.next();!b.done;b=a.next())this.g.addCue(b.value)};q.destroy=function(){this.g&&(Gn(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
|
|
566
568
|
function Gn(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}S("shaka.text.SimpleTextDisplayer",Fn);Fn.prototype.setTextVisibility=Fn.prototype.setTextVisibility;Fn.prototype.isTextVisible=Fn.prototype.isTextVisible;Fn.prototype.destroy=Fn.prototype.destroy;Fn.prototype.append=Fn.prototype.append;Fn.prototype.remove=Fn.prototype.remove;Fn.prototype.configure=Fn.prototype.configure;function Hn(){}q=Hn.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};S("shaka.text.StubTextDisplayer",Hn);Hn.prototype.setTextVisibility=Hn.prototype.setTextVisibility;Hn.prototype.isTextVisible=Hn.prototype.isTextVisible;Hn.prototype.destroy=Hn.prototype.destroy;Hn.prototype.append=Hn.prototype.append;Hn.prototype.remove=Hn.prototype.remove;Hn.prototype.configure=Hn.prototype.configure;function In(){}function W(a){return document.createElement(a)}function Jn(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Kn(a){for(;a.firstChild;)a.removeChild(a.firstChild)}S("shaka.util.Dom",In);In.removeAllChildren=Kn;function Ln(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.u=b;this.l=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.u.appendChild(this.g);c&&c.captionsUpdatePeriod||Bd("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Wb(function(){d.A.paused||Mn(d)})).Aa(c&&
|
|
567
569
|
c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new sd;this.j.s(document,"fullscreenchange",function(){Mn(d,!0)});this.j.s(this.A,"seeking",function(){Mn(d,!0)});this.j.s(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Mn(d,!0)}),this.o.observe(this.g));this.C=new Map}q=Ln.prototype;q.configure=function(a){this.G&&this.G.Aa(a.captionsUpdatePeriod)};
|
|
568
570
|
q.append=function(a){var b=[].concat(x(this.h));a=t(Cn(a));for(var c=a.next(),d={};!c.done;d={Of:void 0},c=a.next())d.Of=c.value,b.some(function(e){return function(f){return bf(f,e.Of)}}(d))||this.h.push(d.Of);Mn(this)};q.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.G&&this.G.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
|
|
@@ -588,9 +590,9 @@ function no(a){if(0===a.type)return oo;if(a=a.stream){var b=a.type;if("video"==b
|
|
|
588
590
|
function so(a,b){b=a.h.Tb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function to(a,b){var c=a.h.Ib();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ko:return a.videoBandwidth||NaN;case eo:return a.audioBandwidth||NaN;default:return a.bandwidth}}
|
|
589
591
|
function ho(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
|
|
590
592
|
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function mo(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ho(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
|
|
591
|
-
function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,kl:Zn,HLS:$n,ll:ao,Dl:"s",OTHER:"o"});function uo(a){this.h=a;this.g=null}q=uo.prototype;q.configure=function(a){this.h=a};q.Gh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(
|
|
593
|
+
function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,kl:Zn,HLS:$n,ll:ao,Dl:"s",OTHER:"o"});function uo(a){this.h=a;this.g=null}q=uo.prototype;q.configure=function(a){this.h=a};q.Gh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(vo)?1E3*this.g.get(vo):null};q.Fh=function(){return this.h.enabled&&this.g&&this.g.has(wo)?1E3*this.g.get(wo):null};q.tj=function(){return this.h.enabled&&this.g&&this.g.has(Lo)?this.g.get(Lo):null};q.uj=function(){return this.h.enabled&&this.g&&this.g.has(Mo)?this.g.get(Mo):null};
|
|
592
594
|
q.getBandwidthEstimate=function(a){var b=this.Fh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function No(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",uo);uo.prototype.getBandwidthEstimate=uo.prototype.getBandwidthEstimate;uo.prototype.getRoundTripTime=uo.prototype.uj;uo.prototype.getResponseDelay=uo.prototype.tj;uo.prototype.getEstimatedThroughput=uo.prototype.Fh;
|
|
593
|
-
uo.prototype.getMaxBitrate=uo.prototype.Gh;var
|
|
595
|
+
uo.prototype.getMaxBitrate=uo.prototype.Gh;var wo="etp",vo="mb",Lo="rd",Mo="rtt";function Oo(){this.g=null;this.h=[]}function Po(a,b){return P(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;H(c)})}Oo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Y(a,b,c){b=void 0===b?null:b;hb.call(this);var d=this;this.m=Qo;this.h=null;this.vf=b;this.sa=!1;this.fe=new sd;this.Vd=new sd;this.l=new sd;this.Ta=new sd;this.xb=new sd;this.H=this.K=this.C=this.I=null;this.ie=0;this.Y=new Oo;this.qa=this.yf=this.aa=this.i=this.ab=this.J=this.j=this.xc=this.N=this.kh=this.ha=this.P=this.Td=this.O=this.wf=this.L=this.Lb=null;this.Ga=!1;this.Ba=this.o=null;this.zf=1E9;this.ae=[];this.U=NaN;this.g=Ro(this);this.S=null;this.je=-1;this.Ja=null;this.ia={width:Infinity,
|
|
594
596
|
height:Infinity};this.tf=new Ri(this.g,this.ia,null);this.ce=[];this.A=null;this.Ia=new Xg(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);this.Jb=this.g.preferredTextLanguage;this.$d=this.g.preferredTextRole;this.Yd=this.g.preferForcedSubs;
|
|
595
597
|
this.Xd=[];c&&c(this);this.P=So(this);this.ha=new uo(this.g.cmsd);this.I=To(this);this.I.Vg(this.g.streaming.forceHTTP);this.I.Wg(this.g.streaming.forceHTTPS);this.I.m=this.g.streaming.minBytesForProgressEvents;this.cc=this.$=this.u=null;this.Df=!1;this.Bf=new Wb(function(){return P(function(e){if(1==e.g)return d.$?G(e,d.Yb(d.cc,!0),3):e.B(0);if(4!=e.g)return G(e,d.load(d.$),4);d.Df?d.cc.pause():d.cc.play();d.$=null;d.Df=!1;H(e)})});Uo&&(this.u=Uo(),this.u.configure(this.g.ads),this.xb.s(this.u,"ad-content-pause-requested",
|
|
596
598
|
function(e){var f;return P(function(g){if(1==g.g){d.Bf.stop();if(d.$)return g.B(0);d.cc=d.h;d.Df=d.h.ended;f=e.saveLivePosition||!1;return G(g,d.yh(!0,f),3)}d.$=g.h;H(g)})}),this.xb.s(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.$){var f=d.$;f.C&&e&&(f.C+=e)}d.Bf.X(.1)}),this.xb.s(this.u,"ad-content-attach-requested",function(){return P(function(e){return d.h||!d.cc?e.B(0):G(e,d.Yb(d.cc,!0),0)})}));this.fe.s(window,"online",function(){Vo(d);d.Ng()});this.xf=new Wb(function(){for(var e=
|
|
@@ -653,13 +655,13 @@ No(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var p=new Map,r=l.split(";");fo
|
|
|
653
655
|
h.j?Zn:Yn;break a;case 3:case 2:l=h.j?ao:$n;break a;case 5:l="s";break a}l=void 0}h.i=l}jo(h,f,{ot:go,su:!h.l})}}catch(M){$a("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case Jh:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.V()?"l":"v"};n.ot=no(k);var p=n.ot===ko||n.ot===eo||n.ot===fo||n.ot===po,r=k.stream;if(r){var u=h.h.Va();if(p&&(n.bl=ro(h,r.type),n.ot!==po)){var v=so(h,r.type);n.dl=u?v/Math.abs(u):v}r.bandwidth&&(n.br=r.bandwidth/
|
|
654
656
|
1E3);if(r.segmentIndex&&m){var w=r.segmentIndex.bc(m.endTime,!0,0>u);if(w){var y=w.next().value;if(y&&y!=m){if(!Td(m.R(),y.R())){var z=y.R()[0],C=f.uris[0],A=new URL(z),B=new URL(C);if(A.origin!==B.origin)var D=z;else{for(var E=A.pathname.split("/").slice(1),F=B.pathname.split("/").slice(1,-1);E[0]===F[0];)E.shift(),F.shift();for(;F.length;)F.shift(),E.unshift("..");D=E.join("/")}n.nor=D}if((y.Za||y.La)&&(m.Za!=y.Za||m.La!=y.La)){var L=y.Za+"-";y.La&&(L+=y.La);n.nrr=L}}}var J=h.h.Va()||1,K=so(h,r.type)||
|
|
655
657
|
500,I=r.bandwidth;var N=I?I*(m.endTime-m.startTime)/1E3/(K/J/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(N)||(n.rtp=N)}}p&&n.ot!==po&&(n.tb=to(h,n.ot)/1E3);jo(h,f,n)}}catch(M){$a("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:jo(h,f,{ot:"k"});break;case 4:jo(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.J)&&e.banLocation&&e.banLocation(h)},function(e,f){if(f.data){f=f.data.byteLength;var g=b()?b().getStats():a.A;g&&(g.Dc=isNaN(g.Dc)?f:g.Dc+f,0===e&&(g.Qh=f))}})}
|
|
656
|
-
function Gp(a,b){return new ll(a.h,a.i,a.g.streaming,b,function(){a.Lb&&xl(a.Lb,!0);a.j&&a.j.
|
|
658
|
+
function Gp(a,b){return new ll(a.h,a.i,a.g.streaming,b,function(){a.Lb&&xl(a.Lb,!0);a.j&&a.j.td();a.O&&Wp(a)},function(c){return a.dispatchEvent(c)})}
|
|
657
659
|
function Hp(a,b){b=new sn(a.Td,a.V()||0<b);b.addEventListener("enter",function(d){sp(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){sp(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(sp(a,"timelineregionenter",e),sp(a,"timelineregionexit",e))});var c=new wl(a.h);c.g.add(b);a.xc&&c.g.add(a.xc);return c}
|
|
658
660
|
function Ip(a,b,c){a.O=new gh;a.O.g=ih;jh(a.O,c,Math.min(.5,c/2));gp(a);a.wf=(new Wb(function(){Wp(a)})).Aa(.25);a.l.s(b,"waiting",function(){return Wp(a)});a.l.s(b,"stalled",function(){return Wp(a)});a.l.s(b,"canplaythrough",function(){return Wp(a)});a.l.s(b,"progress",function(){return Wp(a)})}
|
|
659
661
|
function Wp(a){switch(a.m){case Rp:if(a.h.ended)var b=!0;else{var c=lj(a.h.buffered);b=null!=c&&c>=a.h.duration-1}break;case Ep:a:if(a.h.ended||pk(a.K))b=!0;else{if(a.i.presentationTimeline.V()){c=a.i.presentationTimeline.rc();var d=lj(a.h.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=nj(a.h.buffered,a.h.currentTime);c=a.O;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?hh:ih;c.g=d;(b=b!=d)&&d===hh&&(c.h=Date.now());b&&gp(a)}function xp(a,b,c,d){return new gk(a,b,c,d)}
|
|
660
662
|
function So(a){return new Vn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Tb:function(){return a.Tb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Va:function(){return a.Va()},Fb:function(){return a.Fb()},Ib:function(){return a.Ib()},V:function(){return a.V()}},a.g.cmcd)}
|
|
661
663
|
function Dp(a){return new dm(a.i,{Ae:function(){return a.H?a.H.ke():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Va:function(){return a.Va()},oa:a.K,fc:a.I,onError:function(b){return ep(a,b)},onEvent:function(b){return a.dispatchEvent(b)},bk:function(){a.J&&a.J.update&&a.J.update()},Gg:function(b,c){var d=b.startTime;b=b.endTime;var e=c.type;c=c.codecs.includes(",");if(a.H){a.H.Wh();var f=qk(a.K,e);!a.V()&&a.h.paused&&null!=f&&0<f&&a.H.ke()<f&&a.H.Cf(f)}Wp(a);d=(new Map).set("start",
|
|
662
|
-
d).set("end",b).set("contentType",e).set("isMuxed",c);a.dispatchEvent(Zo("segmentappended",d))},$j:function(b,c){(c=c.
|
|
664
|
+
d).set("end",b).set("contentType",e).set("isMuxed",c);a.dispatchEvent(Zo("segmentappended",d))},$j:function(b,c){(c=c.md)&&a.xc&&Tl(a.xc,c,b)},ph:function(b,c){var d=a.C;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){b=new ei(Ib(c));c=0;for(var e=t(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(0==c)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=t(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,c.set(f,e),e+=f.length;wi(d,"cenc",c);d=d.l}}else d=Promise.resolve();
|
|
663
665
|
return d},onMetadata:function(b,c,d){yp(a,b,c,d)},disableStream:function(b,c){return a.disableStream(b,c)}})}
|
|
664
666
|
q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Bd("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Bd("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
|
|
665
667
|
a.streaming&&"useNativeHlsOnSafari"in a.streaming&&(Bd("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),a.streaming.preferNativeHls=a.streaming.useNativeHlsOnSafari&&kc(),delete a.streaming.useNativeHlsOnSafari);if(a.streaming&&"boolean"==typeof a.streaming.liveSync){Bd("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var c=a.streaming.liveSync;a.streaming.liveSync={};a.streaming.liveSync.enabled=
|
|
@@ -678,7 +680,7 @@ a.i&&(b=Math.max(b,a.i.minBufferTime)),jh(a.O,b,Math.min(.5,b/2)));a.i&&Bp(a.i.p
|
|
|
678
680
|
q.Dh=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.Fa().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return(a-this.h.currentTime)/(b-this.h.currentTime)}return 0};q.pk=function(){for(var a in this.g)delete this.g[a];bn(this.g,Ro(this),Ro(this));Xp(this)};q.Ic=function(){return this.m};q.lg=function(){return this.i?this.i.type:null};q.qj=function(){return this.h};
|
|
679
681
|
q.Fb=function(){return this.I};q.gd=function(){return this.aa};q.xe=function(){return this.u?this.u:null};q.V=function(){return this.i?this.i.presentationTimeline.V():this.h&&this.h.src?Infinity==this.h.duration:!1};q.Nc=function(){return this.i?this.i.presentationTimeline.Nc():!1};q.Mc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.h&&this.h.src?this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight:!1};
|
|
680
682
|
q.Fa=function(){if(this.i){if(!this.Ga&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.qc(),end:a.Ub()}}return this.h&&this.h.src&&(a=this.h.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Gj=function(){this.V()&&(this.h.currentTime=this.Fa().end)};q.Nh=function(){return this.Ga};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.C?this.C.g:null};
|
|
681
|
-
q.
|
|
683
|
+
q.Gd=function(){return this.C?this.C.Gd():Infinity};q.hg=function(){return this.C?this.C.hg():[]};q.ze=function(){return this.C?this.C.ze():{}};q.Md=function(){return this.O?this.O.g==ih:!1};q.Va=function(){return this.h?this.L?this.L.i:1:0};
|
|
682
684
|
q.Vc=function(a,b){var c=this;b=void 0===b?!0:b;0==a?Za("A trick play rate of 0 is unsupported!"):(this.Ta.Ya(),this.h.paused&&this.h.play(),this.L.set(a),this.m==Ep&&(this.o.playbackRateChanged(a),pm(this.j,b&&1<Math.abs(a))),this.V()&&this.Ta.s(this.h,"timeupdate",function(){var d=c.h.currentTime,e=c.Fa(),f=c.g.streaming.safeSeekOffset;0<a?Math.floor(d)>=Math.floor(e.end)&&c.Zc():Math.floor(d)<=Math.floor(e.start+f)&&c.Zc()}))};
|
|
683
685
|
q.Zc=function(){var a=this.L.Hc();this.m==Rp&&this.L.set(a);this.m==Ep&&(this.L.set(a),this.o.playbackRateChanged(a),pm(this.j,!1));this.Ta.Ya()};
|
|
684
686
|
q.Ib=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Ig(e)){var f=zg(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(g){return Hg(g)}):[]};
|
|
@@ -716,7 +718,7 @@ q.Li=function(a,b,c){var d=this,e,f,g,h;return P(function(k){switch(k.g){case 1:
|
|
|
716
718
|
2,2012);}})};function dq(a,b){var c;return P(function(d){switch(d.g){case 1:return ta(d,2),G(d,xn(b,a.I,a.g.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new U(1,2,2011,b);}})}
|
|
717
719
|
function eq(a,b,c,d,e,f,g){var h,k,l,m;return P(function(n){if(1==n.g)return"text/vtt"!=e||g.length?G(n,fq(a,b,a.I,a.g.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=gq(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=jk(l),e="text/vtt");m=document.createElement("track");var p=a.P,r=b;try{if(p.g.enabled){var u=co(p);u.ot=qo;u.su=!0;var v=ho(u);var w=io(r,v)}else w=r}catch(y){$a("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),w=r}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
|
|
718
720
|
a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m)})}function fq(a,b,c,d){var e,f,g;return P(function(h){if(1==h.g){e=Jh;f=Dh([b],d);f.method="GET";var k=a.P;try{k.g.enabled&&jo(k,f,{ot:qo,su:!0})}catch(l){$a("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return G(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
|
|
719
|
-
function gq(a,b,c,d){var e=Qf[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Ib(b),b=c.parseMedia(b,a,null,[]),Un(b,d);throw new U(2,2,2014,c);}q.Ek=function(a,b){this.ia.width=a;this.ia.height=b};q.Ng=function(a){if(this.m==Ep){var b=this.j;a=void 0===a?.1:a;if(b.m.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.
|
|
721
|
+
function gq(a,b,c,d){var e=Qf[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Ib(b),b=c.parseMedia(b,a,null,[]),Un(b,d);throw new U(2,2,2014,c);}q.Ek=function(a,b){this.ia.width=a;this.ia.height=b};q.Ng=function(a){if(this.m==Ep){var b=this.j;a=void 0===a?.1:a;if(b.m.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Kd||d.eb||d.Rb||(d.Kd=!1,nm(b,d,a));b=!0}}else b=!1;return b};
|
|
720
722
|
q.kg=function(){Za("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.nj=function(){return this.ab};
|
|
721
723
|
function Ro(a){var b=Ym();b.streaming.failureCallback=function(c){if(a.V()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Ng(d))}};b.textDisplayFactory=function(){if(a.vf){var c=a.getConfiguration();return new Ln(a.h,a.vf,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Fn(a.h,"Shaka Player TextTrack"):new Hn};return b}q.Zg=function(a){this.vf=a};
|
|
722
724
|
function qp(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new tl,l=e.closedCaptions.get(g);h={id:a.zf++,originalId:g,groupId:null,
|
|
@@ -747,13 +749,13 @@ function aq(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.nex
|
|
|
747
749
|
h.push({language:l,role:m,label:n})}});return h}S("shaka.Player",Y);Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.Zg;Y.prototype.getManifestParserFactory=Y.prototype.nj;Y.prototype.getManifest=Y.prototype.kg;Y.prototype.retryStreaming=Y.prototype.Ng;Y.prototype.setMaxHardwareResolution=Y.prototype.Ek;Y.prototype.addChaptersTrack=Y.prototype.Li;Y.prototype.addThumbnailsTrack=Y.prototype.Ni;Y.prototype.addTextTrackAsync=Y.prototype.Mi;Y.prototype.getStats=Y.prototype.getStats;
|
|
748
750
|
Y.prototype.getBufferedInfo=Y.prototype.Tb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ce;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.Ih;Y.prototype.getPlayheadTimeAsDate=Y.prototype.rj;Y.prototype.setTextTrackVisibility=Y.prototype.hf;Y.prototype.getChapters=Y.prototype.ig;Y.prototype.getChaptersTracks=Y.prototype.Eh;Y.prototype.isTextTrackVisible=Y.prototype.Oc;Y.prototype.selectVariantsByLabel=Y.prototype.yk;Y.prototype.selectTextLanguage=Y.prototype.Qg;
|
|
749
751
|
Y.prototype.selectAudioLanguage=Y.prototype.Pg;Y.prototype.getTextLanguages=Y.prototype.wj;Y.prototype.getAudioLanguages=Y.prototype.Xi;Y.prototype.getTextLanguagesAndRoles=Y.prototype.xj;Y.prototype.getAudioLanguagesAndRoles=Y.prototype.Yi;Y.prototype.selectVariantTrack=Y.prototype.ef;Y.prototype.selectTextTrack=Y.prototype.Rg;Y.prototype.getThumbnails=Y.prototype.ng;Y.prototype.getAllThumbnails=Y.prototype.Wi;Y.prototype.getImageTracks=Y.prototype.ye;Y.prototype.getTextTracks=Y.prototype.tc;
|
|
750
|
-
Y.prototype.getVariantTracks=Y.prototype.Ib;Y.prototype.cancelTrickPlay=Y.prototype.Zc;Y.prototype.trickPlay=Y.prototype.Vc;Y.prototype.getPlaybackRate=Y.prototype.Va;Y.prototype.isBuffering=Y.prototype.Md;Y.prototype.getKeyStatuses=Y.prototype.ze;Y.prototype.getActiveSessionsMetadata=Y.prototype.hg;Y.prototype.getExpiration=Y.prototype.
|
|
752
|
+
Y.prototype.getVariantTracks=Y.prototype.Ib;Y.prototype.cancelTrickPlay=Y.prototype.Zc;Y.prototype.trickPlay=Y.prototype.Vc;Y.prototype.getPlaybackRate=Y.prototype.Va;Y.prototype.isBuffering=Y.prototype.Md;Y.prototype.getKeyStatuses=Y.prototype.ze;Y.prototype.getActiveSessionsMetadata=Y.prototype.hg;Y.prototype.getExpiration=Y.prototype.Gd;Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.Nh;Y.prototype.goToLive=Y.prototype.Gj;
|
|
751
753
|
Y.prototype.seekRange=Y.prototype.Fa;Y.prototype.isAudioOnly=Y.prototype.Mc;Y.prototype.isInProgress=Y.prototype.Nc;Y.prototype.isLive=Y.prototype.V;Y.prototype.getAdManager=Y.prototype.xe;Y.prototype.getAssetUri=Y.prototype.gd;Y.prototype.getNetworkingEngine=Y.prototype.Fb;Y.prototype.getMediaElement=Y.prototype.qj;Y.prototype.getManifestType=Y.prototype.lg;Y.prototype.getLoadMode=Y.prototype.Ic;Y.prototype.resetConfiguration=Y.prototype.pk;Y.prototype.getBufferFullness=Y.prototype.Dh;
|
|
752
754
|
Y.prototype.getNonDefaultConfiguration=Y.prototype.Hh;Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.jk;Y.prototype.destroyAllPreloads=Y.prototype.Rf;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.yh;Y.prototype.unloadAndSavePreload=Y.prototype.Ik;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.Mk;Y.prototype.unload=Y.prototype.lc;
|
|
753
755
|
Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.mh;Y.prototype.attach=Y.prototype.Yb;
|
|
754
756
|
Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:b={};if(!a){k.B(2);break}return G(k,Oi(),3);case 3:b=k.h;case 2:var l={};if(Xb())for(var m in $i)l[m]=!0;m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,l[n]=Xb()?!!$i[n]:Yb(n);c=l;m='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(Cf));
|
|
755
757
|
l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Pf(n)?!0:Xb()?xd(n)||(vf(n)?!0:!1):Yb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return G(k,wc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=jq;for(h in g)f[h]=g[h]();return k.return(f)}})};Y.isBrowserSupported=ap;Y.setAdManagerFactory=function(a){Uo=a};Y.registerSupportPlugin=function(a,b){jq[a]=b};Y.prototype.destroy=Y.prototype.destroy;var $o=0,Qo=1,Ep=2,Rp=3;
|
|
756
|
-
Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.
|
|
758
|
+
Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.2";var kq=["4","11"];Cd=new function(a){this.g=a;this.i=Dd;this.h=Ed}(new Ad(Number(kq[0]),Number(kq[1])));var jq={},Uo=null;function lq(){this.g=[];this.i=this.l=this.j=this.h=0}function mq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function nq(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new sd;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=nq.prototype;q.needsSkipUI=function(){return!1};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
|
|
757
759
|
q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
|
|
758
760
|
q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
|
|
759
761
|
q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.g.getTitle()};q.getDescription=function(){return this.g.getDescription()};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
|
|
@@ -766,7 +768,7 @@ function pq(a,b){var c=[],d=0;null!=b&&(d=b);a=t(oe(a,"Ad"));for(var e=a.next();
|
|
|
766
768
|
0)-(parseInt(k.attributes.height,10)||0)});g=t(g);for(h=g.next();!h.done;h=g.next())if(h=pe(h.value)){c.push({id:null,startTime:d,endTime:null,uri:h,isSkippable:null!=f,skipOffset:f,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1});break}}}}return c}S("shaka.ads.Utils",oq);oq.ADS_LOADED="ads-loaded";oq.AD_STARTED="ad-started";oq.AD_FIRST_QUARTILE="ad-first-quartile";oq.AD_MIDPOINT="ad-midpoint";oq.AD_THIRD_QUARTILE="ad-third-quartile";
|
|
767
769
|
oq.AD_COMPLETE="ad-complete";oq.AD_STOPPED="ad-stopped";oq.AD_SKIPPED="ad-skipped";oq.AD_VOLUME_CHANGED="ad-volume-changed";oq.AD_MUTED="ad-muted";oq.AD_PAUSED="ad-paused";oq.AD_RESUMED="ad-resumed";oq.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";oq.CUEPOINTS_CHANGED="ad-cue-points-changed";oq.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";oq.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";oq.AD_CLICKED="ad-clicked";oq.AD_PROGRESS="ad-progress";oq.AD_BUFFERING="ad-buffering";
|
|
768
770
|
oq.AD_IMPRESSION="ad-impression";oq.AD_DURATION_CHANGED="ad-duration-changed";oq.AD_CLOSED="ad-closed";oq.AD_LOADED="ad-loaded";oq.ALL_ADS_COMPLETED="all-ads-completed";oq.AD_LINEAR_CHANGED="ad-linear-changed";oq.AD_METADATA="ad-metadata";oq.AD_RECOVERABLE_ERROR="ad-recoverable-error";oq.AD_ERROR="ad-error";oq.AD_BREAK_READY="ad-break-ready";oq.AD_INTERACTION="ad-interaction";oq.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";oq.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";
|
|
769
|
-
oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.
|
|
771
|
+
oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.2");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.s(this.m,
|
|
770
772
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){rq(f,g)});this.h.s(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){sq(f,g)});this.h.s(this.i,"ended",function(){f.m.contentComplete()});this.h.na(this.i,"play",function(){f.H=!0})}qq.prototype.configure=function(a){this.o=a};qq.prototype.stop=function(){this.g&&this.g.stop();this.u&&Kn(this.u)};
|
|
771
773
|
qq.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.G.destroy()};function sq(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));tq(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
772
774
|
function rq(a,b){a.l(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.s(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.s(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -847,8 +849,8 @@ q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
|
|
|
847
849
|
q.onAssetUnload=function(){this.h&&this.h.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new lq};q.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a)};
|
|
848
850
|
q.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Iq(a,b,c,function(e){return Xq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new nh,Lq(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
|
|
849
851
|
q.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.I=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.g&&this.g.release();this.g=new Uq(a,b,this.o,function(d){return Xq(c,d)});this.g.configure(this.l)};
|
|
850
|
-
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.
|
|
851
|
-
(c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.
|
|
852
|
+
q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.2";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
853
|
+
(c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.2";this.g.g.replaceAdTagParameters(a)};
|
|
852
854
|
q.getServerSideCuePoints=function(){Bd("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};q.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:mq(a),started:a.h,playedCompletely:a.j,skipped:a.l,errors:a.i}};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
|
|
853
855
|
q.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};q.onHLSInterstitialMetadata=function(a,b,c){this.h||this.initInterstitial(null,a,b);this.h&&Dq(this.h,c)};
|
|
854
856
|
q.onDASHInterstitialMetadata=function(a,b,c){if("urn:mpeg:dash:event:alternativeMPD:2022"==c.schemeIdUri&&(this.h||this.initInterstitial(null,a,b),this.h)){a=this.h;b=t(c.eventNode.children);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("AlternativeMPD"==e.tagName&&(d=e.attributes.uri,e=e.attributes.mode,d)){var f=d;var g=e;break}}f?(b="replace"==g,g="insert"==g,(b||g)&&Fq(a,[{id:null,startTime:c.startTime,endTime:b?c.endTime:null,uri:f,isSkippable:!1,skipOffset:null,canJump:!0,resumeOffset:g?
|
|
@@ -932,18 +934,18 @@ function Us(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}Qs.prototype.getStreams=
|
|
|
932
934
|
Ws.prototype.init=function(a){function b(f){f=f.name;f in Ys&&(c.g=Ys[f])}var c=this,d=[],e=[];(new Uh).box("moov",Zh).box("mvex",Zh).W("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.T();g=g.T();c.h=f;c.i=g}).box("trak",Zh).W("tkhd",function(f){var g=f.reader;f=f.version;1==f?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));var h=g.T();1==f?g.skip(8):g.skip(4);g.skip(4);g.skip(8);g.skip(2);g.skip(2);g.skip(2);g.skip(2);g.skip(36);g.ya();g.ya();g.ya();g.ya();d.push(h)}).box("mdia",Zh).W("mdhd",
|
|
933
935
|
function(f){f=zj(f.reader,f.version);e.push(f.timescale)}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("avc1",b).box("avc3",b).box("dvav",b).box("dva1",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("vvc1",b).box("vvi1",b).box("dvc1",b).box("dvi1",b).box("encv",bi).box("sinf",Zh).box("frma",function(f){f=Cj(f.reader).codec;f in Ys&&(c.g=Ys[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new U(2,2,2010);this.g==Xs&&Za("Unable to determine bitstream format for CEA parsing!");
|
|
934
936
|
d.forEach(function(f,g){c.j.set(f,e[g])})};
|
|
935
|
-
Ws.prototype.parse=function(a){var b=this;if(this.g==Xs)return[];var c=[],d=0,e=[];(new Uh).box("moof",function(f){d=f.start;e=[];Zh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,
|
|
936
|
-
1];f=yj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Oa(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Za("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);Zs(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.
|
|
937
|
+
Ws.prototype.parse=function(a){var b=this;if(this.g==Xs)return[];var c=[],d=0,e=[];(new Uh).box("moof",function(f){d=f.start;e=[];Zh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Ed:b.h,ue:b.i,Yh:[],timescale:9E4});Zh(f)}).W("trun",function(f){var g=e[e.length-1];f=Aj(f.reader,f.version,f.flags);g.Yh.push(f)}).W("tfhd",function(f){var g=e[e.length-1];f=xj(f.reader,f.flags);g.Ed=f.Ed||b.h;g.ue=f.ue||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).W("tfdt",function(f){var g=e[e.length-
|
|
938
|
+
1];f=yj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Oa(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Za("Unable to find base media decode time for CEA captions!"),new U(2,2,2010);f.reader.seek(h);Zs(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Ed,l.ue,g,l.Yh,c)}}).parse(a,!1);return c};
|
|
937
939
|
function Zs(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.ei});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Vi);b.Ea();){g=b.T();var p=b.Z(),r=null;r=!1;h=1;switch(a.g){case $s:r=p&31;r=6==r;break;case at:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;case bt:h=2;b.skip(1);r=p>>1&63;r=23==r||24==r;break;default:return}if(r)for(p=0,l<n.length&&(p=n[l].bf||0),p=(c+p)/d,h=t(Vs(b.Pb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-
|
|
938
|
-
h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].Og||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}S("shaka.cea.Mp4CeaParser",Ws);var Xs=0,$s=1,at=2,bt=3,Ys={avc1:$s,avc3:$s,dvav:$s,dva1:$s,hev1:at,hvc1:at,dvh1:at,dvhe:at,vvc1:bt,vvi1:bt,dvc1:bt,dvi1:bt};Jd["video/mp4"]=function(){return new Ws};function ct(){this.g=null}ct.prototype.init=function(){};ct.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Uj;var b=[];a=Ib(a);if(!ck(a))return b;a=this.g.parse(a);var c=a.
|
|
939
|
-
S("shaka.cea.TsCeaParser",ct);Jd["video/mp2t"]=function(){return new ct};function dt(a,b,c){var d=et(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new U(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.
|
|
940
|
-
l.
|
|
940
|
+
h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].Og||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}S("shaka.cea.Mp4CeaParser",Ws);var Xs=0,$s=1,at=2,bt=3,Ys={avc1:$s,avc3:$s,dvav:$s,dva1:$s,hev1:at,hvc1:at,dvh1:at,dvhe:at,vvc1:bt,vvi1:bt,dvc1:bt,dvi1:bt};Jd["video/mp4"]=function(){return new Ws};function ct(){this.g=null}ct.prototype.init=function(){};ct.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Uj;var b=[];a=Ib(a);if(!ck(a))return b;a=this.g.parse(a);var c=a.Fd(),d=a.De();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Vs(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
|
|
941
|
+
S("shaka.cea.TsCeaParser",ct);Jd["video/mp2t"]=function(){return new ct};function dt(a,b,c){var d=et(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new U(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.sd});if(1<f.length)throw new U(2,4,4050);f.length&&(g=ft(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.sd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.sd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
|
|
942
|
+
l.sd});f.length&&(a=gt(e,k,f,c,h),0==a.length&&(a=[Rc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Rc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{xh:h,Xl:e,drmInfos:a,Ef:g,Ch:!0}}
|
|
941
943
|
function ht(a,b,c,d){var e=dt(a,c,d);if(b.Ch){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Ch=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new U(2,4,4008);return e.xh||b.xh}
|
|
942
944
|
function it(a){var b=0,c=Nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Ib(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function jt(a){a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.children){b=t(b.children);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"LA_URL"==c.tagName)return pe(c)}return""}
|
|
943
945
|
function kt(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=pe(b)))return b;a=te(a.node,"urn:microsoft:playready","pro");if(!a||!pe(a))return"";a=pe(a);a=Kc(a);a=it(a).filter(function(c){return c.type===lt})[0];if(!a)return"";a=Ac(a.value,!0);return(a=de(a,"WRMHEADER"))?jt(a):""}
|
|
944
|
-
function gt(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.
|
|
946
|
+
function gt(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.sd];if(h){var k;if((k=te(g.node,"urn:microsoft:playready","pro"))&&pe(k)){k=pe(k);k=Kc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:fi(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.sd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2,
|
|
945
947
|
172,227,60,30,82,226,251,75]),p=new Uint8Array([]);l=[{initData:fi(p,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=Rc(h,b,g.init||a||k||l);if(h=mt.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function et(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=nt(c.value))&&b.push(c);return b}
|
|
946
|
-
function nt(a){var b=a.attributes.schemeIdUri,c=we(a,"urn:mpeg:cenc:2013","default_KID"),d=ue(a,"urn:mpeg:cenc:2013","pssh").map(qe),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new U(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:Kc(g),keyId:null}})}catch(g){throw new U(2,4,4007);}return{node:a,
|
|
948
|
+
function nt(a){var b=a.attributes.schemeIdUri,c=we(a,"urn:mpeg:cenc:2013","default_KID"),d=ue(a,"urn:mpeg:cenc:2013","pssh").map(qe),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new U(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:Kc(g),keyId:null}})}catch(g){throw new U(2,4,4007);}return{node:a,sd:b,keyId:c,init:0<f.length?f:null,encryptionScheme:e}}
|
|
947
949
|
function ft(a){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new U(2,4,4042);var b=te(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new U(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.attributes.schemeIdUri)throw new U(2,4,4051);b=te(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new U(2,4,4051);a=b.attributes.IV;b=Gc(b.attributes.keyUriTemplate);
|
|
948
950
|
if(!a||!b)throw new U(2,4,4051);a=Lc(a.substr(2));if(16!=a.byteLength)throw new U(2,4,4048);return{Rj:b,iv:a}}
|
|
949
951
|
var lt=1,mt=(new Map).set("com.widevine.alpha",function(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=pe(b))?b:(a=te(a.node,"urn:microsoft","laurl"))?Gc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",kt).set("com.microsoft.playready.recommendation",kt).set("com.microsoft.playready.software",kt).set("com.microsoft.playready.hardware",kt).set("org.w3.clearkey",function(a){var b=te(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=pe(b))?b:(a=te(a.node,"http://dashif.org/guidelines/clearKey",
|
|
@@ -954,9 +956,9 @@ p)break;else if(r>=p)break;v=Math.ceil((p-r)/u)-1}else{if(Infinity==a)break;else
|
|
|
954
956
|
function rt(a,b,c){b=st(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=se(d.value,c));d=b.next());return a}
|
|
955
957
|
function tt(a,b,c,d,e,f){for(var g=we(a,"http://www.w3.org/1999/xlink","href"),h=we(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=he("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return ph(new U(2,4,4028));if("onLoad"!=h)return ph(new U(2,4,4027));var p=Qc([d],[g]);return e.request(0,Dh(p,b)).Ua(function(r){r=ce(r.data,a.tagName);if(!r)return ph(new U(2,4,4001,g));for(a.children=
|
|
956
958
|
[];r.children.length;){var u=r.children.shift();u.tagName&&(u.parent=a);a.children.push(u)}u=t(Object.keys(r.attributes));for(var v=u.next();!v.done;v=u.next())v=v.value,a.attributes[v]=r.attributes[v];return ut(a,b,c,p[0],e,f+1)})}
|
|
957
|
-
function ut(a,b,c,d,e,f){f=void 0===f?0:f;if(we(a,"http://www.w3.org/1999/xlink","href")){var g=tt(a,b,c,d,e,f);c&&(g=g.Ua(void 0,function(){return ut(a,b,c,d,e,f)}));return g}g=[];for(var h=t(ne(a)),k=h.next(),l={};!k.done;l={
|
|
959
|
+
function ut(a,b,c,d,e,f){f=void 0===f?0:f;if(we(a,"http://www.w3.org/1999/xlink","href")){var g=tt(a,b,c,d,e,f);c&&(g=g.Ua(void 0,function(){return ut(a,b,c,d,e,f)}));return g}g=[];for(var h=t(ne(a)),k=h.next(),l={};!k.done;l={zd:void 0},k=h.next())l.zd=k.value,"urn:mpeg:dash:resolve-to-zero:2013"==we(l.zd,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.zd}}(l)):"SegmentTimeline"!=l.zd.tagName&&g.push(ut(l.zd,b,c,d,e,f));return th(g).Ua(function(){return a})}
|
|
958
960
|
;function vt(a,b,c,d,e,f,g){var h,k=(new Uh).W("sidx",function(l){h=wt(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new U(2,3,3004);}
|
|
959
|
-
function wt(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new U(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.
|
|
961
|
+
function wt(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.T();if(0==k)throw new U(2,3,3005);if(0==g.version){var l=g.reader.T();var m=g.reader.T()}else l=g.reader.rd(),m=g.reader.rd();g.reader.skip(2);var n=g.reader.ya();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.T(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.T();g.reader.skip(4);if(1==r)throw new U(2,3,3006);h.push(new gj(l/k+c,(l+u)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=u;a+=p}g.parser.stop();return h};function xt(a){this.h=Nb(a);this.g=new Rh(this.h,0)}xt.prototype.Ea=function(){return this.g.Ea()};
|
|
960
962
|
function yt(a){var b=zt(a);if(7<b.length)throw new U(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=zt(a);a:{d=t(At);for(var e=d.next();!e.done;e=d.next())if(Gb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Oa();else{if(8==b.length&&b[1]&224)throw new U(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Oa();d=Nb(a.h,a.g.Oa(),b);a.g.skip(b);return new Bt(c,
|
|
961
963
|
d)}function zt(a){var b=a.g.Oa(),c=a.g.Z();if(0==c)throw new U(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ib(a.h,b,c)}var At=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Bt(a,b){this.id=a;this.g=b}
|
|
962
964
|
function Ct(a){if(8<a.g.byteLength)throw new U(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new U(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Dt(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new xt(a.g);for(var n=null,p=null;a.Ea();){var r=yt(a);if(187==r.id){var u=Et(r);u&&(r=c*u.Lk,u=b+u.ik,null!=n&&m.push(new gj(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u)}}null!=n&&m.push(new gj(n+g,d+g,l,p,null,f,g,h,k));return m}
|
|
@@ -964,29 +966,29 @@ function Et(a){var b=new xt(a.g);a=yt(b);if(179!=a.id)throw new U(2,3,3013);a=Ct
|
|
|
964
966
|
function Ht(a,b,c){var d=Number(qt(a,It,"presentationTimeOffset"))||0,e=qt(a,It,"timescale"),f=1;e&&(f=Ce(e)||1);var g=d/f||0,h=Ft(a,It,c);Jt(a,h);var k=be(a);return{Gc:function(){var l=rt(k,It,"RepresentationIndex");var m=k.M.bb();l&&(l=Gc(l.attributes.sourceURL))&&(m=Qc(m,[l],k.Cb()));l=Kt(k);return Lt(k,b,h,m,l.start,l.end,g)}}}
|
|
965
967
|
function Lt(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F;return P(function(L){if(1==L.g)return h=a.presentationTimeline,k=!a.Sb||!a.va.wg,l=a.va.start,m=a.va.duration,n=a.M.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.R(),c.Za,c.La,!0):null],p=null,G(L,Promise.all(u),2);v=L.h;w=v[0];y=v[1]||null;z=null;C=l-g;A=l;B=m?l+m:Infinity;if("mp4"==n)var J=vt(w,e,d,c,C,A,B);else{J=w;var K=new xt(y);if(440786851!=yt(K).id)throw new U(2,3,3008);var I=yt(K);if(408125543!=I.id)throw new U(2,
|
|
966
968
|
3,3009);K=I.g.byteOffset;I=new xt(I.g);for(var N=null;I.Ea();){var M=yt(I);if(357149030==M.id){N=M;break}}if(!N)throw new U(2,3,3010);N=new xt(N.g);M=1E6;for(I=null;N.Ea();){var O=yt(N);if(2807729==O.id)M=Ct(O);else if(17545==O.id)if(4==O.g.byteLength)I=O.g.getFloat32(0);else if(8==O.g.byteLength)I=O.g.getFloat64(0);else throw new U(2,3,3003);}if(null==I)throw new U(2,3,3011);N=M/1E9;I*=N;J=yt(new xt(J));if(475249515!=J.id)throw new U(2,3,3007);J=Dt(J,K,N,I,d,c,C,A,B)}z=J;D=t(z);for(E=D.next();!E.done;E=
|
|
967
|
-
D.next())F=E.value,F.codecs=a.M.codecs,F.mimeType=a.M.mimeType,F.bandwidth=a.bandwidth;h.Sd(z);r=new ql(z);k&&r.ed(A,B,!0);return L.return(r)})}function It(a){return a.
|
|
969
|
+
D.next())F=E.value,F.codecs=a.M.codecs,F.mimeType=a.M.mimeType,F.bandwidth=a.bandwidth;h.Sd(z);r=new ql(z);k&&r.ed(A,B,!0);return L.return(r)})}function It(a){return a.ud}function Kt(a){var b=rt(a,It,"RepresentationIndex");a=qt(a,It,"indexRange");a=Ae(a||"");b&&(a=ve(b,"range",Ae,a));return a}function Jt(a,b){Mt(a,b);if(!Kt(a))throw new U(2,4,4002);}
|
|
968
970
|
function Mt(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Wc&&"mp4"!=c&&"webm"!=c)throw new U(2,4,4006);if("webm"==c&&!b)throw new U(2,4,4005);}
|
|
969
|
-
function Gt(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Te,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.ua.label||null,roles:a.roles||null,language:a.ua.language||null}};function Nt(a,b,c){var d=Ft(a,Ot,c),e=Pt(a);if(!e.fb&&!e.timeline&&1<e.
|
|
970
|
-
f.ed(a.va.start,a.va.duration?a.va.start+a.va.duration:Infinity,b);g&&(g.segmentIndex=f);return{Gc:function(){f&&0!=f.getNumReferences()||f.Pe(h);return Promise.resolve(f)}}}function Ot(a){return a.jc}function Pt(a){var b=Rt(a);a=pt(a,Ot);var c=a.Zd;0==c&&(c=1);var d=0;a.fb?d=a.fb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{fb:a.fb,startTime:d,Zd:c,ic:a.ic,timeline:a.timeline,
|
|
971
|
-
function Qt(a,b,c,d,e,f,g,h,k,l){var m=d.
|
|
971
|
+
function Gt(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Te,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.ua.label||null,roles:a.roles||null,language:a.ua.language||null}};function Nt(a,b,c){var d=Ft(a,Ot,c),e=Pt(a);if(!e.fb&&!e.timeline&&1<e.nd.length)throw new U(2,4,4002);if(!e.fb&&!a.va.duration&&!e.timeline&&1==e.nd.length)throw new U(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new U(2,4,4002);var f=null,g=null;a.Ca.id&&a.M.id&&(g=b[a.Ca.id+","+a.M.id])&&(f=g.segmentIndex);var h=Qt(a.va.start,a.va.duration,a.M.bb,e,d,c,a.M.mimeType,a.M.codecs,a.bandwidth,a.Cb);b=!f;f?f.Rd(h,a.presentationTimeline.Gb()):f=new ql(h);a.presentationTimeline.Sd(h);a.Sb&&a.va.wg||
|
|
972
|
+
f.ed(a.va.start,a.va.duration?a.va.start+a.va.duration:Infinity,b);g&&(g.segmentIndex=f);return{Gc:function(){f&&0!=f.getNumReferences()||f.Pe(h);return Promise.resolve(f)}}}function Ot(a){return a.jc}function Pt(a){var b=Rt(a);a=pt(a,Ot);var c=a.Zd;0==c&&(c=1);var d=0;a.fb?d=a.fb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{fb:a.fb,startTime:d,Zd:c,ic:a.ic,timeline:a.timeline,nd:b}}
|
|
973
|
+
function Qt(a,b,c,d,e,f,g,h,k,l){var m=d.nd.length;d.timeline&&d.timeline.length!=d.nd.length&&(m=Math.min(d.timeline.length,d.nd.length));for(var n=a-d.ic,p=b?a+b:Infinity,r=[],u=d.startTime,v={},w=0;w<m;v={mf:void 0,cf:void 0},w++){v.cf=d.nd[w];var y=u;u=void 0;u=null!=d.fb?y+d.fb:d.timeline?d.timeline[w].end:y+b;v.mf=null;v=new gj(a+y,a+u,function(z){return function(){null==z.mf&&(z.mf=Qc(c(),[z.cf.Yj],l()));return z.mf}}(v),v.cf.start,v.cf.end,e,n,a,p,[],"",null,null,hj,f);v.codecs=h;v.mimeType=
|
|
972
974
|
g;v.bandwidth=k;r.push(v)}return r}function Rt(a){return[a.M.jc,a.ua.jc,a.Ca.jc].filter(Yf).map(function(b){return oe(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.sg&&(a.sg=!0);var c=Gc(b.attributes.media);b=ve(b,"mediaRange",Ae,{start:0,end:null});return{Yj:c,start:b.start,end:b.end}})};function St(a,b,c,d,e,f,g,h,k){k||a.M.Ge||(a.M.Ge=qt(a,Tt,"initialization"));var l=a.M.Ge?Ut(a,g):null,m=Vt(a);Wt(m);var n=be(a);if(m.Ld)return Mt(a,l),{Gc:function(){var w=ot(m.Ld,n.M.id,null,null,n.bandwidth||null,null);w=Qc(n.M.bb(),[w]);return Lt(n,b,l,w,0,null,m.ic)}};if(m.fb)return d||"image"===a.ua.contentType||(a.presentationTimeline.Dg(m.fb),a.presentationTimeline.Se(a.va.start)),{Gc:function(){return Xt(n,m,e,l,f,g,h,a.M.df)}};var p=null;d=d=null;a.Ca.id&&a.M.id&&(d=a.Ca.id+","+a.M.id,d=
|
|
973
975
|
c[d])&&(p=d.segmentIndex);var r=a.va.start,u=a.va.duration?r+a.va.duration:Infinity,v=!(a.Sb&&a.va.wg);p?(c=p,Yt(c,m,r,u,v,l),c.gb(a.presentationTimeline.Gb())):p=new Zt(m,a.M.id,a.bandwidth,a.M.bb,a.Cb,r,u,l,v,g,a.M.df);m.timeline&&"image"!==a.ua.contentType&&a.presentationTimeline.Xh(m.timeline,r);d&&a.Sb&&(d.segmentIndex=p);return{Gc:function(){p instanceof Zt&&0==p.getNumReferences()&&Yt(p,m,r,u,v,l);return Promise.resolve(p)}}}function Tt(a){return a.zc}
|
|
974
976
|
function Vt(a){var b=pt(a,Tt),c=qt(a,Tt,"media"),d=qt(a,Tt,"index"),e=qt(a,Tt,"k"),f=0;e&&(f=parseInt(e,10));return{fb:b.fb,timescale:b.timescale,Zd:b.Zd,ic:b.ic,gh:b.gh,timeline:b.timeline,wc:c&&Gc(c),Ld:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,Zj:f}}function Wt(a){var b=a.Ld?1:0;b+=a.timeline?1:0;b+=a.fb?1:0;if(0==b)throw new U(2,4,4002);1!=b&&(a.Ld&&(a.timeline=null),a.fb=null);if(!a.Ld&&!a.wc)throw new U(2,4,4002);}
|
|
975
|
-
function Xt(a,b,c,d,e,f,g,h){function k(N){var M=(N-w)*v,O=M+b.ic,Q=M+p;M=Q+v;var R=Math.min(M,m()),X=[],ca=b.Zj;if(ca)for(var sa=(R-Q)/ca,va={},Pa=0;Pa<ca;va={wi:void 0},Pa++){var Ia=Q+sa*Pa,fb=Ia+sa;va.wi=Pa+1;va=new gj(Ia,fb,function(ab){return function(){var Ea=O*y;"BigInt"in window&&Ea>Number.MAX_SAFE_INTEGER&&(Ea=BigInt(O)*BigInt(y));Ea=ot(z,A,N,ab.wi,C,Ea);return Qc(B(),[Ea],D())}}(va),0,null,d,E,p,m(),[],"",null,null,hj,f);va.codecs=a.M.codecs;va.mimeType=a.M.mimeType;0==h?0<Pa&&va.
|
|
976
|
-
Pa%h&&va.
|
|
977
|
+
function Xt(a,b,c,d,e,f,g,h){function k(N){var M=(N-w)*v,O=M+b.ic,Q=M+p;M=Q+v;var R=Math.min(M,m()),X=[],ca=b.Zj;if(ca)for(var sa=(R-Q)/ca,va={},Pa=0;Pa<ca;va={wi:void 0},Pa++){var Ia=Q+sa*Pa,fb=Ia+sa;va.wi=Pa+1;va=new gj(Ia,fb,function(ab){return function(){var Ea=O*y;"BigInt"in window&&Ea>Number.MAX_SAFE_INTEGER&&(Ea=BigInt(O)*BigInt(y));Ea=ot(z,A,N,ab.wi,C,Ea);return Qc(B(),[Ea],D())}}(va),0,null,d,E,p,m(),[],"",null,null,hj,f);va.codecs=a.M.codecs;va.mimeType=a.M.mimeType;0==h?0<Pa&&va.ld():0!=
|
|
978
|
+
Pa%h&&va.ld();X.push(va)}Q=new gj(Q,R,function(){if(ca)return[];var ab=O*y;"BigInt"in window&&ab>Number.MAX_SAFE_INTEGER&&(ab=BigInt(O)*BigInt(y));ab=ot(z,A,N,null,C,ab);return Qc(B(),[ab],D())},0,null,d,E,p,m(),X,"",null,null,hj,f,0<X.length);Q.codecs=a.M.codecs;Q.mimeType=a.M.mimeType;Q.bandwidth=a.bandwidth;Q.j=M;return Q}function l(){var N=[Math.max(n.Gb(),p),Math.min(n.rc(),m())].map(function(M){return M-p});N=[Math.ceil(N[0]/v),Math.ceil(N[1]/v)-1];a.M.kb&&N[1]++;return N.map(function(M){return M+
|
|
977
979
|
w})}function m(){var N=null!=r&&e[r]||u;return N?p+N:Infinity}var n=a.presentationTimeline,p=a.va.start,r=a.Ca.id,u=a.va.duration,v=b.fb,w=b.Zd,y=b.timescale,z=b.wc,C=a.bandwidth||null,A=a.M.id,B=a.M.bb,D=a.Cb,E=p-b.ic,F=l();c=a.Sb?Math.max(F[0],F[1]-c+1):F[0];g=g||F[1];F=[];for(var L=c;L<=g;++L){var J=k(L);F.push(J)}var K=new ql(F);F=n.rc()<m();L=n.V();if(F||L){var I=Math.max(c,g+1);c=v;a.M.kb&&(c=.1);K.lf(c,function(){var N=n.Gb();K.gb(N);var M=t(l());M.next();M=M.next().value;for(var O=[];I<=M;){var Q=
|
|
978
980
|
k(I);O.push(Q);I++}return N>m()&&!O.length?null:O})}return Promise.resolve(K)}function Ut(a,b){var c=a.M.Ge;c||(c=qt(a,Tt,"initialization"));if(!c)return null;c=Gc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.bb,g=a.Cb;b=new ej(function(){var h=ot(c,d,null,null,e,null);return Qc(f(),[h],g())},0,null,Gt(a),null,null,b);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;return b}
|
|
979
|
-
function Zt(a,b,c,d,e,f,g,h,k,l,m){ql.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.
|
|
980
|
-
q.gb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.
|
|
981
|
-
function Yt(a,b,c,d,e,f){au(a,f);if(a.h){c=a.h.timeline;a.h.wc!==b.wc&&(a.h.wc=b.wc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.
|
|
982
|
-
function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.gb(a.
|
|
983
|
-
q.get=function(a){var b=this;a-=this.
|
|
984
|
-
null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.xi,b.G,b.J));return y.nf}}(r),0,null,this.u,c,this.
|
|
981
|
+
function Zt(a,b,c,d,e,f,g,h,k,l,m){ql.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.j=f;this.l=g;this.u=h;this.A=l;this.I=m;k&&$t(this)}oa(Zt,ql);q=Zt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){ql.prototype.release.call(this);this.h=null};
|
|
982
|
+
q.gb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
|
|
983
|
+
function Yt(a,b,c,d,e,f){au(a,f);if(a.h){c=a.h.timeline;a.h.wc!==b.wc&&(a.h.wc=b.wc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;e&&$t(a)}function au(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&jj(c,b)}}
|
|
984
|
+
function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.gb(a.j)}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i}return null};
|
|
985
|
+
q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.xk,f=this.h.gh+d.hh;c=this.j-this.h.ic;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Vb,r={},u=0;u<d.Vb;r={nf:void 0,xi:void 0},u++){var v=d.start+p*u,w=v+p;r.xi=u+1;r.nf=null;r=new gj(this.j+v,this.j+w,function(y){return function(){if(!b.h)return[];
|
|
986
|
+
null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.xi,b.G,b.J));return y.nf}}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.ld():0!=u%this.I&&r.ld();n.push(r)}c=new gj(this.j+d.start,h,function(){return 0<d.Vb||!b.h?[]:bu(b.h.wc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.j,this.l,n,"",null,null,hj,this.A,0<d.Vb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
|
|
985
987
|
function bu(a,b,c,d,e,f,g,h){a=ot(a,b,c,f,d||null,e);return Qc(g(),[a],h()).map(function(k){return k.toString()})};function cu(a){this.o=null;this.A=a;this.I=new vh;this.i=[];this.h=null;this.m=[];this.C=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}cu.prototype.configure=function(a){this.o=a};cu.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};cu.prototype.setManifestType=function(a){this.u=a};
|
|
986
988
|
function du(a,b){var c,d,e,f,g,h,k;return P(function(l){if(1==l.g)return c=Qc(a.i,[eu(a,b)]),d=Dh(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),wh(a.I,e),ta(l,2),G(l,e.promise,4);if(2!=l.g)return f=l.h,g=zc(f.data),h=JSON.parse(g),1==h.VERSION&&fu(a,h,f.uri),wa(l,0);if((k=xa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Wb(function(){du(a,b)});a.g.X(a.G);H(l)})}
|
|
987
989
|
function eu(a,b){if(!a.m.length)return b;b=new ob(b);var c=a.C||a.m[0],d=Math.round(a.A.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Eb(e)&&tb(b,e);return b.toString()}function fu(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Wb(function(){du(a,d)});if(c=b.TTL)a.G=c;a.g.X(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
|
|
988
990
|
function gu(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}cu.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
|
|
989
|
-
function hu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={
|
|
991
|
+
function hu(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={pd:void 0},f=e.next())if(g.pd=f.value,f=b.get(g.pd))d.push({Jg:g.pd,location:f});else if(f=a.H.find(function(k){return function(l){return l.hl==k.pd}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].Ji?(h=new ob(h),qb(h,f["URI-REPLACEMENT"].Ji),d.push({Jg:g.pd,location:h.toString()})):d.push({Jg:g.pd,location:h}))}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,
|
|
990
992
|
h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new ob(k.location)).$b))return!1;return!0});d.length&&(a.C=d[0].Jg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Qc(a.i,d)};function iu(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.u=this.o=!1;this.m=new Set}q=iu.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};q.Dj=function(){return this.j};q.mg=function(){return this.l.slice()};q.hj=function(){return this.i};
|
|
991
993
|
function ju(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[ku(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[lu(n),n]})),l=new Map(h.textStreams.map(function(n){return[mu(n),n]}));h=new Map(h.imageStreams.map(function(n){return[nu(n),n]}));if(b){var m=ou(Wc);l.set(mu(m),m);m=ou("image");h.set(nu(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{oh:c,Gi:d,Ai:e,Lh:f}}
|
|
992
994
|
q.Lf=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R;return P(function(X){if(1==X.g){e=Yc;if(!b&&1==a.length)return f=ju(a,!1),g=f.oh,h=f.Gi,k=f.Ai,l=f.Lh,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.l=Array.from(k[0].values()),d.i=Array.from(l[0].values()),X.B(2);m=c?d.m.size:0;n=-1;for(p=0;p<a.length;p++)r=a[p],d.m.has(r.id)||(d.m.add(r.id),-1==n&&(n=p));if(-1==n)return X.return();u=ju(a,!0);v=u.oh;w=u.Gi;y=u.Ai;z=u.Lh;return G(X,
|
|
@@ -1002,8 +1004,8 @@ function xu(a,b,c,d,e,f){if(yu(b))return null;var g=d(b);Au(a,c,g);g.createSegme
|
|
|
1002
1004
|
function Cu(a,b,c,d,e){var f=a.matchedStreams;for(b+=e;b<f.length;b++){var g=f[b];c(a,g);var h=!0;"audio"==a.type&&0==hd(a.language,g.language)&&(h=!1);if(h&&(d[b-e].delete(g),g.fullMimeTypes))for(g=t(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value)}}
|
|
1003
1005
|
function qu(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
|
|
1004
1006
|
function uu(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
|
|
1005
|
-
function ru(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:
|
|
1006
|
-
d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=qu(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
|
|
1007
|
+
function ru(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=Rb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new U(2,
|
|
1008
|
+
4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=qu(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
|
|
1007
1009
|
for(var g=new tl,h=t(a.trickModeVideo.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.trickModeVideo.segmentIndex=g;return Promise.resolve()}),a.trickModeVideo.matchedStreams.push(b.trickModeVideo),ru(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),ru(a.trickModeVideo,b))}
|
|
1008
1010
|
function vu(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,x(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
|
|
1009
1011
|
function Au(a,b,c,d){d=(void 0===d?0:d)?c.matchedStreams:[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=Du(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
|
|
@@ -1028,12 +1030,12 @@ q.banLocation=function(a){this.h&&this.h.banLocation(a)};q.setMediaElement=funct
|
|
|
1028
1030
|
function Xu(a){var b,c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g)return b=4,c="MPD",d=Zu(a),e=a.A,d.length?(e=d,c="Patch",b=6):1<a.A.length&&a.h&&(f=hu(a.h,"Location",!0),f.length&&(e=f)),g=Dh(e,a.g.retryParameters),h=Date.now(),G(p,$u(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.A.includes(k.uri)&&a.A.unshift(k.uri);l=new ob(k.uri);a.U=l.g.toString();return G(p,av(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.qa.sample(1,n);return p.return(n)})}
|
|
1029
1031
|
function av(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){e=b;f=a.g.dash.manifestPreprocessor;g=Zm;if(f!=g){Bd("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Uu(e,d);if(!h)throw new U(2,4,4001,c);f(h);e=Dc(h.outerHTML)}k=ce(e,d);if(!k)throw new U(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=$m;l!=m&&l(k);if("Patch"===d)return v.return(bv(a,k));if(n=a.g.dash.disableXlinkProcessing)return v.return(cv(a,k,c));
|
|
1030
1032
|
p=a.g.dash.xlinkFailGracefully;r=ut(k,a.g.retryParameters,p,c,a.j.networkingEngine);wh(a.S,r);return G(v,r.promise,2)}u=v.h;return v.return(cv(a,u,c))})}
|
|
1031
|
-
function cv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc,sb,Nd,Le,Me,fe,
|
|
1033
|
+
function cv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc,sb,Nd,Le,Me,fe,Pj,ge,Qj,Rj,Ah,Ne;return P(function(yc){switch(yc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?gu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=hu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Re=b.attributes.id||
|
|
1032
1034
|
"";a.l.Ud=ve(b,"publishTime",ye)||0;a.H=oe(b,"PatchLocation");u=Promise.resolve();if((v=se(b,"ContentSteering"))&&a.j){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new cu(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,y=qe(v))(z=ve(v,"queryBeforeStart",Fe,!1))?u=du(a.h,y):du(a.h,y);C=t(f.keys());for(A=C.next();!A.done;A=C.next())B=A.value,D=f.get(B),gu(a.h,"Location",B,D)}E=oe(b,"BaseURL");L=!1;if(a.h)for(J=t(E),K=J.next();!K.done;K=J.next())I=K.value,
|
|
1033
1035
|
N=I.attributes.serviceLocation,M=qe(I),N&&M&&(gu(a.h,"BaseURL",N,M),L=!0);L&&a.h||(O=E.map(qe),F=Qc(d,O));Q=function(){return a.h&&L?hu(a.h,"BaseURL"):F?F:[]};a.l.bb=Q;R=0;E&&E.length&&(R=ve(E[0],"availabilityTimeOffset",Ee)||0);a.l.kb=R;X=a.g.dash.ignoreMinBufferTime;ca=0;X||(ca=ve(b,"minBufferTime",ze)||0);a.L=ve(b,"minimumUpdatePeriod",ze,-1);sa=ve(b,"availabilityStartTime",ye);va=ve(b,"timeShiftBufferDepth",ze);Pa=a.g.dash.ignoreSuggestedPresentationDelay;Ia=null;Pa||(Ia=ve(b,"suggestedPresentationDelay",
|
|
1034
1036
|
ze));fb=a.g.dash.ignoreMaxSegmentDuration;ab=null;fb||(ab=ve(b,"maxSegmentDuration",ze));Ea=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.ha=a.i.presentationTimeline.V()&&"static"==Ea);a.l.type=Ea;dv(a);if(a.i)for(Ca=a.i.presentationTimeline,Oc=t(Object.values(a.u)),kb=Oc.next();!kb.done;kb=Oc.next())cc=kb.value,cc.segmentIndex&&cc.segmentIndex.gb(Ca.Gb());else Pc=a.g.defaultPresentationDelay||1.5*ca,sb=null!=Ia?Ia:Pc,Ca=new Vk(sa,sb,a.g.dash.autoCorrectDrift);Ca.Uc("static"==Ea);
|
|
1035
|
-
(Nd=Ca.V())&&!isNaN(a.g.availabilityWindowOverride)&&(va=a.g.availabilityWindowOverride);null==va&&(va=Infinity);Ca.gf(va);Le=b.attributes.profiles||"";a.l.profiles=Le.split(",");Me={Sb:"static"!=Ea,presentationTimeline:Ca,Ca:null,va:null,ua:null,M:null,bandwidth:0,sg:!1,kb:R,ec:null,profiles:Le.split(","),roles:null,Cb:function(){return""}};a.O=0;fe=ev(a,Me,Q,b,!1);
|
|
1036
|
-
a.J=a.j.isLowLatencyMode());a.J&&Ca.ii(a.Y);Ca.Dg(ab||1);return G(yc,u,2);case 2:a.J&&(ca=0,
|
|
1037
|
+
(Nd=Ca.V())&&!isNaN(a.g.availabilityWindowOverride)&&(va=a.g.availabilityWindowOverride);null==va&&(va=Infinity);Ca.gf(va);Le=b.attributes.profiles||"";a.l.profiles=Le.split(",");Me={Sb:"static"!=Ea,presentationTimeline:Ca,Ca:null,va:null,ua:null,M:null,bandwidth:0,sg:!1,kb:R,ec:null,profiles:Le.split(","),roles:null,Cb:function(){return""}};a.O=0;fe=ev(a,Me,Q,b,!1);Pj=fe.duration;ge=fe.periods;("static"!=Ea||a.ha)&&fe.Ah||Ca.sb(Pj||Infinity);a.aa&&!a.J&&(Qj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
|
|
1038
|
+
a.J=a.j.isLowLatencyMode());a.J&&Ca.ii(a.Y);Ca.Dg(ab||1);return G(yc,u,2);case 2:a.J&&(ca=0,Rj=null!=Ia?Ia:a.g.defaultPresentationDelay,Ca.Tg(Rj));if(!a.i)return G(yc,a.m.Lf(ge,Me.Sb),6);a.i.periodCount=ge.length;a.i.gapCount=a.O;return G(yc,fv(a,ge,!1),4);case 6:a.i={presentationTimeline:Ca,variants:a.m.j,textStreams:a.m.mg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gv(b),
|
|
1037
1039
|
nextUrl:hv(b),periodCount:ge.length,gapCount:a.O,isLowLatency:a.aa,startTime:null};if(!Ca.Di()){yc.B(7);break}Ah=oe(b,"UTCTiming");return G(yc,iv(a,Q,Ah),8);case 8:Ne=yc.h;if(!a.j)return yc.return();Ca.ji(Ne);case 7:Ca.Ne();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),H(yc)}})}function fv(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,a.m.Lf(b,!0,c),2);a.i.variants=a.m.j;d=a.m.mg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);H(e)})}
|
|
1038
1040
|
function bv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I;return P(function(N){if(1==N.g){c=b.attributes.mpdId;d=ve(b,"originalPublishTime",ye);if(!c||c!==a.l.Re||d!==a.l.Ud)throw a.H=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(ne(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=He(l.attributes.sel||""),n=m[m.length-1],p=qe(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.mc){r=qe(l)||"";var M=ze(r);if(null!=M){a.l.ec=M;for(var O=t(a.o.values()),Q=O.next();!Q.done;Q=O.next())Q.value.ec=
|
|
1039
1041
|
M}}else if("type"===n.mc){a.i.presentationTimeline.Uc("static"==p);a.l.type=p;M=t(a.o.values());for(O=M.next();!O.done;O=M.next())O.value.Sb="dynamic"==p;"static"==p&&(a.L=-1)}else"publishTime"===n.mc?a.l.Ud=ye(p)||0:null===n.mc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ie(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&jv(a,n.id);else if("SegmentTemplate"===n.name){O=He(l.attributes.sel||"");M=O[O.length-1];if(M.mc){O=kv(a,O);Q=qe(l)||
|
|
@@ -1061,23 +1063,23 @@ w.keyIds||r.keyIds;a.g.dash.enableAudioGroups&&(r.groupId=m)}n=n.map(function(K)
|
|
|
1061
1063
|
function rv(a,b){if((b=te(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&ve(b,"useMPDUrlQuery",Fe,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return"$querypart$"==c?a.U:c.split("&").map(function(d){if("$querypart$"==d)return a.U;var e=/\$query:(.*?)\$/g.exec(d);if(e&&2==e.length){e=e[1];var f=(new vb(a.U)).get(e);if(f.length)return e+"="+f[0]}return d}).join("&")}}return null}
|
|
1062
1064
|
function uv(a,b,c,d,e,f,g,h,k,l,m,n){b.M=pv(a,l,b.ua,null);var p=b.M.id;a.Y=Math.min(a.Y,b.M.kb);a.aa=0<a.Y;if(!wv(b.M))return null;var r=b.va.start;b.bandwidth=ve(l,"bandwidth",Ce)||0;b.roles=h;var u=oe(l,"SupplementalProperty"),v=oe(l,"EssentialProperty"),w=null,y=v.find(function(O){return"urn:mpeg:dash:urlparam:2014"==O.attributes.schemeIdUri});y?w=rv(a,y):(y=u.find(function(O){return"urn:mpeg:dash:urlparam:2014"==O.attributes.schemeIdUri}))&&(w=rv(a,y));w&&(b.Cb=w);y=b.M.contentType;w=y==Wc||
|
|
1063
1065
|
"application"==y;y="image"==y;try{var z=void 0;if(c.Ef){var C=b.M.bb,A=b.Cb,B=Qc(C(),[c.Ef.Rj],A()),D=Dh(B,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Ef.iv,firstMediaSequenceNumber:0,fetchKey:function(){var O,Q,R;return P(function(X){if(1==X.g)return G(X,$u(a,D,6),2);if(3!=X.g){O=X.h;if(!O.data||16!=O.data.byteLength)throw new U(2,4,4049);Q={name:"AES-CBC"};R=z;return G(X,window.crypto.subtle.importKey("raw",O.data,Q,!0,["decrypt"]),3)}R.cryptoKey=X.h;z.fetchKey=void 0;H(X)})}}}b.M.aesKey=
|
|
1064
|
-
z;C=function(O,Q,R,X){return nv(a,O,Q,R,X)};if(b.M.
|
|
1066
|
+
z;C=function(O,Q,R,X){return nv(a,O,Q,R,X)};if(b.M.ud)var E=Ht(b,C,z);else if(b.M.jc)E=Nt(b,a.u,z);else if(b.M.zc)E=St(b,C,a.u,!!a.i,a.g.dash.initialSegmentLimit,a.ia,z,n,!1);else{var F=b.va.duration||0,L=b.M.bb,J=b.M.mimeType,K=b.M.codecs;E={Gc:function(){var O=sl(r,F,L());O.ac(function(Q){Q.mimeType=J;Q.codecs=K});return Promise.resolve(O)}}}}catch(O){if((w||y)&&4002==O.code)return null;throw O;}l=oe(l,"ContentProtection");l=ht(l,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);l=new Set(l?[l]:
|
|
1065
1067
|
[]);n=!1;u.some(function(O){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==O.attributes.schemeIdUri&&"JOC"==O.attributes.value})&&(n=!0);u=!1;w&&(u=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var I;if(y&&((v=v.find(function(O){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(O.attributes.schemeIdUri)}))&&(I=v.attributes.value),!I))return null;var N;w=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&
|
|
1066
1068
|
(w.includes("hvc1.2.4.L153.B0")||w.includes("hev1.2.4.L153.B0"))&&(N="PQ");v=b.M.id?b.Ca.id+","+b.M.id:"";a.H.length&&p&&a.o.set(b.Ca.id+","+p,xv(b));var M=v&&a.u[v]?a.u[v]:{id:a.sa++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){M.segmentIndex&&(M.segmentIndex.release(),M.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:w,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,
|
|
1067
1069
|
height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:l,language:e,originalLanguage:b.ua.language,label:f,type:b.ua.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.M.Te,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:n,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:I,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Bf(b.M.mimeType,b.M.codecs)])};M.createSegmentIndex=
|
|
1068
|
-
function(){var O;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);O=M;return G(Q,E.Gc(),3)}O.segmentIndex=Q.h;H(Q)})};v&&b.Sb&&!a.u[v]&&(b=b.Ca.id||"",a.G[b]||(a.G[b]=[]),a.u[v]=M,a.G[b].push(v));return M}function xv(a){function b(c){if(!c)return null;c=be(c);c.
|
|
1070
|
+
function(){var O;return P(function(Q){if(1==Q.g){if(M.segmentIndex)return Q.B(0);O=M;return G(Q,E.Gc(),3)}O.segmentIndex=Q.h;H(Q)})};v&&b.Sb&&!a.u[v]&&(b=b.Ca.id||"",a.G[b]||(a.G[b]=[]),a.u[v]=M,a.G[b].push(v));return M}function xv(a){function b(c){if(!c)return null;c=be(c);c.ud=null;c.jc=null;c.zc=Pe(c.zc);return c}a=be(a);a.Ca=b(a.Ca);a.ua=b(a.ua);a.M=b(a.M);a.va&&(a.va=be(a.va),a.va.node=null);return a}
|
|
1069
1071
|
function Wu(a){var b,c;return P(function(d){switch(d.g){case 1:return b=0,ta(d,2),G(d,Xu(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Yu(a,b);H(d)}})}function Yu(a,b){if(!(0>a.L)){var c=a.L;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.N.X(Math.max(c-b,qd(a.qa)))}}
|
|
1070
1072
|
function pv(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Te:null,audioSamplingRate:null,kb:0,df:0};d=d||c.bb;var e=b.attributes.id,f=oe(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=qe(m);l&&m&&(gu(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(qe));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=[b.attributes.codecs||c.codecs];var n=we(b,
|
|
1071
1073
|
"urn:scte:dash:scte214-extensions","supplementalCodecs");n&&m.push(n);m=Zl(m).join(",");n=ve(b,"frameRate",Ge)||c.frameRate;var p=b.attributes.sar||c.pixelAspectRatio,r=yv(oe(b,"InbandEventStream"),c.emsgSchemeIdUris),u=oe(b,"AudioChannelConfiguration");u=zv(u)||c.Te;var v=ve(b,"audioSamplingRate",De)||c.audioSamplingRate;k||(k=vv(l,m));var w=se(b,"SegmentBase"),y=se(b,"SegmentTemplate"),z=w?ve(w,"availabilityTimeOffset",Ee)||0:0,C=y?ve(y,"availabilityTimeOffset",Ee)||0:0,A=f&&f.length?ve(f[0],"availabilityTimeOffset",
|
|
1072
|
-
Ee)||0:0;z=c.kb+A+z+C;C=null;(A=se(b,"SegmentSequenceProperties"))&&(A=se(A,"SAP"))&&(C=ve(A,"cadence",Be));A=b.attributes.label;var B=oe(b,"Label");B&&B.length&&(B=B[0],pe(B)&&(A=pe(B)));return{bb:function(){return Qc(d(),f.length?a.h&&h?hu(a.h,e):g?g:[]:[])},
|
|
1074
|
+
Ee)||0:0;z=c.kb+A+z+C;C=null;(A=se(b,"SegmentSequenceProperties"))&&(A=se(A,"SAP"))&&(C=ve(A,"cadence",Be));A=b.attributes.label;var B=oe(b,"Label");B&&B.length&&(B=B[0],pe(B)&&(A=pe(B)));return{bb:function(){return Qc(d(),f.length?a.h&&h?hu(a.h,e):g?g:[]:[])},ud:w||c.ud,jc:se(b,"SegmentList")||c.jc,zc:y||c.zc,width:ve(b,"width",De)||c.width,height:ve(b,"height",De)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:p,emsgSchemeIdUris:r,id:e,language:b.attributes.lang,Te:u,audioSamplingRate:v,
|
|
1073
1075
|
kb:z,Ge:null,df:C||c.df,label:A||null}}function yv(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
|
|
1074
1076
|
function zv(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.attributes.schemeIdUri)if(c=c.attributes.value)switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
|
|
1075
|
-
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function wv(a){var b=a.
|
|
1077
|
+
parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function wv(a){var b=a.ud?1:0;b+=a.jc?1:0;b+=a.zc?1:0;if(0==b)return a.contentType==Wc||"application"==a.contentType?!0:!1;1!=b&&(a.ud&&(a.jc=null),a.zc=null);return!0}
|
|
1076
1078
|
function Av(a,b,c,d){var e,f,g,h,k,l,m;return P(function(n){if(1==n.g)return e=[Gc(c)],f=Qc(b(),e),g=Dh(f,a.g.retryParameters),g.method=d,h=a.j.networkingEngine.request(4,g,{isPreload:a.$()}),wh(a.S,h),G(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=zc(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
|
|
1077
1079
|
function iv(a,b,c){var d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.attributes.schemeIdUri,value:p.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;ta(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.B(8);
|
|
1078
1080
|
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Za("NTP UTCTiming scheme is not supported");break;default:Za("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return G(n,Av(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return G(n,Av(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
|
|
1079
1081
|
3);break;case 5:xa(n);case 3:g=f.next();n.B(2);break;case 4:return Za("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
|
|
1080
|
-
function qv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1;d=t(oe(d,"Event"));for(var
|
|
1082
|
+
function qv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1,k=ve(d,"presentationTimeOffset",De)||0;d=t(oe(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=ve(l,"presentationTime",De)||0,n=ve(l,"duration",De)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",eventElement:Oe(l),eventNode:Pe(l)},a.j.onTimelineRegionAdded(l))}}
|
|
1081
1083
|
function nv(a,b,c,d,e){var f,g,h,k;return P(function(l){if(1==l.g)return f=Jh,g=e?0:1,h=cm(b,c,d,a.g.retryParameters),G(l,$u(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function vv(a,b){b=Bf(a,b);return Pf(b)?Wc:a.split("/")[0]}function $u(a,b,c,d){d||(d={});d.isPreload=a.$();b=a.j.networkingEngine.request(c,b,d);wh(a.S,b);return b.promise}
|
|
1082
1084
|
function Zu(a){var b=a.l.Ud;if(!a.l.Re||!b||!a.H.length)return[];var c=Date.now()/1E3,d=a.H.filter(function(e){e=De(e.attributes.ttl);return!e||b+e>c}).map(qe).filter(Yf);return d.length?Qc(a.A,d):[]}S("shaka.dash.DashParser",Vu);$i["application/dash+xml"]=function(){return new Vu};$i["video/vnd.mpeg.dash.mpd"]=function(){return new Vu};function Bv(){}S("shaka.dependencies",Bv);Bv.has=function(a){return Cv.has(a)};Bv.add=function(a,b){if(!Dv[a])throw Error(a+" is not supported");a==Ev?Bd("mux.js","mux.js is no longer used in Shaka Player."):Cv.set(a,function(){return b})};var Ev="muxjs",Dv={Zl:Ev,ISOBoxer:"ISOBoxer"};Bv.Allowed=Dv;var Cv=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Fv(a,b,c){this.type=a;this.ea=b;this.segments=c||null}function Gv(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Gv.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
|
|
1083
1085
|
function Hv(a,b){if(b)return a.toString();b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Iv(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Jv(a,b,c){return(a=Iv(a,b))?a.value:c||null}function Kv(a,b){a=Iv(a,b);if(!a)throw new U(2,4,4023,b);return a.value}function Lv(a,b,c){c=void 0===c?[]:c;this.ea=b;this.g=a;this.Vb=c}function Mv(a,b){this.name=a;this.value=b};function Nv(a,b){return a.filter(function(c){return c.name==b})}function Ov(a,b){return a.filter(function(c){return Kv(c,"TYPE")==b})}function Pv(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Qv(a,b,c){c=void 0===c?0:c;return(a=Pv(a,b))?Number(a.value):c}function Rv(a,b,c){return b?Sv(a,[b],c):[]}function Sv(a,b,c){if(!b.length)return[];b=Qc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next())a.push(Tv(d.value,c));return a}
|
|
@@ -1090,23 +1092,23 @@ function aw(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new U(2,1,10
|
|
|
1090
1092
|
null;this.ab=0;this.o=Infinity;this.Ja=this.Ia=this.U=0;this.aa=new vh;this.H=new Map;this.I=new Map;this.xa=new Map;this.qa=new Map;this.N=new Map;this.sa=new Map;this.Ha=new Map;this.cc=this.L=!1;this.Jb=new pd(5);this.j=null;this.S=!0;this.Ga=new Set;this.Y=new sd;this.u=this.$=null;this.Lb=function(){return!1}}q=bw.prototype;q.configure=function(a,b){this.g=a;b&&(this.Lb=b);this.j&&this.j.configure(this.g)};
|
|
1091
1093
|
q.start=function(a,b){var c=this,d;return P(function(e){return 1==e.g?(c.h=b,c.L=b.isLowLatencyMode(),G(e,ew(c,[a]).promise,2)):3!=e.g?(d=e.h,c.O=d.uri,G(e,fw(c,d.data,a),3)):e.return(c.m)})};
|
|
1092
1094
|
q.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.aa&&(a.push(this.aa.destroy()),this.aa=null);this.g=this.h=null;this.xb.clear();this.m=null;this.i.clear();this.J.clear();this.I.clear();this.A.clear();this.xa.clear();this.qa.clear();this.N.clear();this.sa.clear();this.Ha.clear();this.Ga.clear();this.j&&this.j.destroy();this.Y&&(this.Y.release(),this.Y=null);return Promise.all(a)};
|
|
1093
|
-
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1==r.g){if(!gw(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hw(a,g));return G(r,Promise.all(b),2)}iw(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.
|
|
1095
|
+
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return P(function(r){if(1==r.g){if(!gw(a))return r.return();b=[];c=Array.from(a.i.values());a.o=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hw(a,g));return G(r,Promise.all(b),2)}iw(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.Jd});d.length&&!h&&(k=jw,kw(a,k.Ki),l=d.map(function(u){return u.dc}),a.l.sb(Math.min.apply(Math,x(l))),
|
|
1094
1096
|
a.h.updateDuration());h&&lw(a);m=t(d);for(n=m.next();!n.done;n=m.next())p=n.value,p.stream.segmentIndex&&!Cg(p.stream.segmentIndex)&&a.h.disableStream(p.stream);H(r)})};function mw(a,b){return gw(a)?a.P.get(b.type):b.Oe}
|
|
1095
1097
|
function hw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa;return P(function(va){switch(va.g){case 1:c=[];d=t(b.R());for(e=d.next();!e.done;e=d.next())f=e.value,g=new ob(f),h=g.g,b.qe&&(0<=b.Nb&&h.add("_HLS_msn",String(b.Nb)),0<=b.Ob&&h.add("_HLS_part",String(b.Ob))),b.re&&h.add("_HLS_skip","YES"),Eb(h)&&tb(g,h),c.push(g.toString());ta(va,2);return G(va,ew(a,c,!0).promise,4);case 4:k=va.h;wa(va,3);break;case 2:throw l=xa(va),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return va.return();
|
|
1096
1098
|
m=Vv(a.Ta,k.data);if(1!=m.type)throw new U(2,4,4017);n=k.uri;n==k.originalUri||b.R().includes(n)||b.bi.push(n);p=Nv(m.ea,"EXT-X-DEFINE");r=nw(a,p,n);u=b.stream;v=mw(a,b);return G(va,ow(a,m,u.mimeType,b.R,r),5);case 5:w=va.h;y=w.keyIds;z=w.drmInfos;C=function(Pa,Ia){return Pa.size===Ia.size&&[].concat(x(Pa)).every(function(fb){return Ia.has(fb)})};C(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));A=pw(a,m,v,r,b.R,b.type);B=A.segments;if(D=A.bandwidth)u.bandwidth=D;E=Wl(u);F=t(B);for(L=F.next();!L.done;L=
|
|
1097
|
-
F.next())J=L.value,J.ma&&(J.ma.
|
|
1099
|
+
F.next())J=L.value,J.ma&&(J.ma.md=E);u.segmentIndex.Rd(B,a.l.Gb());B.length&&(K=Qv(m.ea,"EXT-X-MEDIA-SEQUENCE",0),N=(I=Pv(m.ea,"EXT-X-SKIP"))?Number(Jv(I,"SKIPPED-SEGMENTS")):0,M=qw(K,B),O=M.Nb,Q=M.Ob,b.Nb=O+N,b.Ob=Q,R=v.get(K),u.segmentIndex.gb(R));if(X=Cg(u.segmentIndex))b.Qc=X.startTime,ca=B[B.length-1],b.dc=ca.endTime;if(sa=Pv(m.ea,"EXT-X-ENDLIST"))b.Jd=!0;rw(a,m);sw(a,m.ea,u.type,r,b.R);H(va)}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};
|
|
1098
1100
|
q.banLocation=function(a){this.j&&this.j.banLocation(a)};q.setMediaElement=function(a){this.$=a};
|
|
1099
1101
|
function tw(a,b){for(var c=-1==a.K,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=mw(a,e);if(f=Cg(f)){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.Sf=k;break}}}}if(!(0>a.K))for(b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,uw(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.K-c.Sf,0<e&&(d.g.splice(0,e),d=Cg(d)))d=-d.startTime,c.stream.segmentIndex.offset(d),vw(a,c,d)}
|
|
1100
1102
|
function ww(a,b){if(Infinity==a.ia){b=t(b);for(var c=b.next();!c.done;c=b.next())c=Cg(c.value.stream.segmentIndex),null!=c&&null!=c.h&&(a.ia=Math.min(a.ia,c.h))}b=a.ia;if(Infinity!=b){c=t(a.i.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!uw(a,d.type)){var e=d.stream.segmentIndex;if(null!=e){var f=Cg(e);if(f)if(null==f.h)Ya("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.R(),"Expect AV sync issues!");else for(vw(a,d,f.h-b-f.startTime),d=t(e),e=d.next();!e.done;e=d.next())e.value.bh(b)}}}}
|
|
1101
1103
|
function vw(a,b,c){b.Qc+=c;b.dc+=c;a=mw(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.R()}
|
|
1102
1104
|
function fw(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca;return P(function(sa){switch(sa.g){case 1:d=Yc;e=Vv(a.Ta,b);f=Nv(e.ea,"EXT-X-DEFINE");g=[];h=[];k=[];a.l=new Vk(null,0);a.l.Uc(!0);l=function(){return[c]};m=null;n=new Map;if(1==e.type)return a.S=!1,A=Nv(e.ea,"EXT-X-DEFINE"),n=nw(a,A,a.O),m=d.wa,B="",D=new Map,G(sa,xw(a,a.G++,n,e,l,"",m,B,!0,"Media Playlist",null,D,null,!1,null,!1),7);yw(a,f);p=Nv(e.ea,"EXT-X-MEDIA");r=Nv(e.ea,"EXT-X-STREAM-INF");u=Nv(e.ea,"EXT-X-IMAGE-STREAM-INF");
|
|
1103
|
-
v=Nv(e.ea,"EXT-X-I-FRAME-STREAM-INF");w=Nv(e.ea,"EXT-X-SESSION-KEY");y=Nv(e.ea,"EXT-X-SESSION-DATA");z=Nv(e.ea,"EXT-X-CONTENT-STEERING");zw(a,y);return G(sa,Aw(a,z),4);case 4:return Bw(a,r),Cw(a,p),C=Dw(a,v),G(sa,Ew(a,r,w,p,l,a.A,C),5);case 5:return g=sa.h,h=Fw(a,p),G(sa,Gw(a,u,v),6);case 6:k=sa.h;sa.B(3);break;case 7:E=sa.h,a.i.set(c,E),E.stream&&(F=Wl(E.stream),E.stream.segmentIndex.ac(function(va){va.ma&&(va.ma.
|
|
1105
|
+
v=Nv(e.ea,"EXT-X-I-FRAME-STREAM-INF");w=Nv(e.ea,"EXT-X-SESSION-KEY");y=Nv(e.ea,"EXT-X-SESSION-DATA");z=Nv(e.ea,"EXT-X-CONTENT-STEERING");zw(a,y);return G(sa,Aw(a,z),4);case 4:return Bw(a,r),Cw(a,p),C=Dw(a,v),G(sa,Ew(a,r,w,p,l,a.A,C),5);case 5:return g=sa.h,h=Fw(a,p),G(sa,Gw(a,u,v),6);case 6:k=sa.h;sa.B(3);break;case 7:E=sa.h,a.i.set(c,E),E.stream&&(F=Wl(E.stream),E.stream.segmentIndex.ac(function(va){va.ma&&(va.ma.md=F)})),m=E.stream.type,g.push({id:0,language:bd(B||"und"),disabledUntilTime:0,primary:!0,
|
|
1104
1106
|
audio:"audio"==m?E.stream:null,video:"video"==m?E.stream:null,bandwidth:E.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new U(2,7,7001);Hw(a,e);1==e.type&&(gw(a)&&(Iw(a,e),L=a.o,a.C.X(L)),J=Array.from(a.i.values()),Jw(a,J),lw(a),sw(a,e.ea,m,n,l));a.m={presentationTimeline:a.l,variants:g,textStreams:h,imageStreams:k,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
|
|
1105
1107
|
type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.u};if(a.ha||!a.g.hls.disableCodecGuessing){sa.B(8);break}K=[];I=t(a.m.variants);for(N=I.next();!N.done;N=I.next())M=N.value,M.audio&&""===M.audio.codecs&&K.push(M.audio.createSegmentIndex()),M.video&&""===M.video.codecs&&K.push(M.video.createSegmentIndex());return G(sa,Promise.all(K),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m);if(1==g.length){O=[];Q=g[0];R=t([Q.video,Q.audio]);for(X=R.next();!X.done;X=
|
|
1106
1108
|
R.next())(ca=X.value)&&!ca.segmentIndex&&O.push(ca.createSegmentIndex());if(0<O.length)return G(sa,Promise.all(O),0)}sa.B(0)}})}
|
|
1107
1109
|
function Kw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F;return P(function(L){switch(L.g){case 1:c=Xl(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return L.return(c);d=Lw(a,b);e=d.segment;f=d.segmentIndex;g=e.R();h=g[0];k=new ob(h);l=k.jb.split(".").pop();if(m=Mw[l])return L.return(Xl(m));n=Jh;r=p=null;u=e.ma;if(!u){L.B(2);break}v=cm(u.R(),u.Hb(),u.Eb(),a.g.retryParameters);return G(L,Nw(a,v,n,{type:0}).promise,3);case 3:w=L.h;p=w.data;if(!u.aesKey){L.B(4);break}return G(L,bm(p,u.aesKey,
|
|
1108
1110
|
0),5);case 5:p=L.h;case 4:(r=w.headers["content-type"])&&(r=r.split(";")[0].toLowerCase());case 2:return y=cm(e.R(),e.Hb(),e.Eb(),a.g.retryParameters),G(L,Nw(a,y,n,{type:1}).promise,6);case 6:z=L.h;C=z.data;if(!e.aesKey){L.B(7);break}return G(L,bm(C,e.aesKey,f),8);case 8:C=L.h;case 7:(A=z.headers["content-type"])&&(A=A.split(";")[0].toLowerCase());B="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");D=["audio/mp4","video/mp4","video/iso.segment"];if(ck(Ib(C))){var J=C;var K=Ib(J);K=(new Uj).parse(K);
|
|
1109
|
-
var I=K.
|
|
1111
|
+
var I=K.Fd();K=K.og();var N=[],M=!1,O=!1;switch(I.audio){case "aac":case "aac-loas":N.push("mp4a.40.2");M=!0;break;case "mp3":N.push("mp4a.40.34");M=!0;break;case "ac3":N.push("ac-3");M=!0;break;case "ec3":N.push("ec-3");M=!0;break;case "opus":N.push("opus"),M=!0}switch(I.video){case "avc":K.codec?N.push(K.codec):N.push("avc1.42E01E");O=!0;break;case "hvc":K.codec?N.push(K.codec):N.push("hvc1.1.6.L93.90");O=!0;break;case "av1":N.push("av01.0.01M.08"),O=!0}if(N.length){I=M&&!O;M=new Map;if(O){O=new Id("video/mp2t");
|
|
1110
1112
|
O.i(J);J=t(O.j());for(var Q=J.next();!Q.done;Q=J.next())Q=Q.value,M.set(Q,Q);O.g()}K={type:I?"audio":"video",mimeType:"video/mp2t",codecs:N.join(", "),language:null,height:K.height,width:K.width,channelCount:null,sampleRate:null,closedCaptions:M,be:null,colorGamut:null,frameRate:K.frameRate}}else K=null;if(E=K)return L.return(E)}else if(B.includes(l)||D.includes(A)||r&&D.includes(r))if(F=Yl(p,C))return L.return(F);return A?L.return(Xl(A)):r?L.return(Xl(r)):L.return(c)}})}
|
|
1111
1113
|
function lw(a){if(gw(a)){if(a.Ba==Ow){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.dc),c=Math.min(c,e.Qc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.gf(b)}}else a.l.sb(Pw(a));if(!a.l.u)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=Cg(c.stream.segmentIndex))&&c.h&&a.l.li(c.h);
|
|
1112
1114
|
a.l.Ne()}function yw(a,b){var c=(new ob(a.O)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Jv(e,"NAME");var f=Jv(e,"VALUE");e=Jv(e,"QUERYPARAM");d&&f&&(a.A.has(d)||a.A.set(d,f));e&&(d=c.get(e)[0])&&!a.A.has(d)&&a.A.set(e,d)}}
|
|
@@ -1137,16 +1139,16 @@ function Ww(a,b){var c="video",d=Kv(b,"URI"),e=Jv(b,"CODECS")||"";"mjpg"==e&&(c=
|
|
|
1137
1139
|
function fx(a,b,c,d,e,f,g,h,k){for(var l=a.G++,m=[],n=t(b),p=n.next();!p.done;p=n.next()){var r=p.value;p=Kv(r,"URI");r=Jv(r,"PATHWAY-ID");a.j&&r&&gu(a.j,l,r,p);m.push(p)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=Jv(b[0],"CLOSED-CAPTIONS");if("video"==d){if(a.g.disableText){a.S=!1;b=null;break a}if(b){if("NONE"!=b){b=a.H.get(b);break a}a.S=!1}else if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Tc(d,c);d=hx(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);
|
|
1138
1140
|
a.i.set(n,d);return d}
|
|
1139
1141
|
function hx(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(B){var D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc;return P(function(kb){switch(kb.g){case 1:return D=Yc,ta(kb,2),E=z.R(),G(kb,B.promise,4);case 4:F=kb.h;if(B.aborted)return kb.return();L=F.uri;L==F.originalUri||E.includes(L)||y.push(L);J=Vv(a.Ta,F.data);if(1!=J.type)throw new U(2,4,4017);K=Nv(J.ea,"EXT-X-DEFINE");I=nw(a,K,L);N=!1;(!a.ha&&a.g.hls.disableCodecGuessing||a.S&&e==D.wa&&!a.g.hls.disableClosedCaptionsDetection)&&0<J.segments.length&&
|
|
1140
|
-
(a.S=!1,N=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;O=gw(a);return G(kb,xw(a,0,I,J,v,d,e,f,g,h,k,l,m,n,p,r,void 0,N,M),5);case 5:Q=kb.h;if(B.aborted)return kb.return();R=Q.stream;Hw(a,J);gw(a)&&!O&&Iw(a,J);z.Qc=Q.Qc;z.dc=Q.dc;z.re=Q.re;z.qe=Q.qe;z.
|
|
1142
|
+
(a.S=!1,N=!0);M=!a.ha&&a.g.hls.disableCodecGuessing;O=gw(a);return G(kb,xw(a,0,I,J,v,d,e,f,g,h,k,l,m,n,p,r,void 0,N,M),5);case 5:Q=kb.h;if(B.aborted)return kb.return();R=Q.stream;Hw(a,J);gw(a)&&!O&&Iw(a,J);z.Qc=Q.Qc;z.dc=Q.dc;z.re=Q.re;z.qe=Q.qe;z.Jd=Q.Jd;z.Oe=Q.Oe;z.Nb=Q.Nb;z.Ob=Q.Ob;z.Bg=!0;w.segmentIndex=R.segmentIndex;w.encrypted=R.encrypted;w.drmInfos=R.drmInfos;w.keyIds=R.keyIds;w.mimeType=R.mimeType;w.bandwidth=w.bandwidth||R.bandwidth;w.codecs=w.codecs||R.codecs;w.closedCaptions=w.closedCaptions||
|
|
1141
1143
|
R.closedCaptions;w.width=w.width||R.width;w.height=w.height||R.height;w.hdr=w.hdr||R.hdr;w.colorGamut=w.colorGamut||R.colorGamut;w.frameRate=w.frameRate||R.frameRate;"und"==w.language&&"und"!=R.language&&(w.language=R.language);w.language=w.language||R.language;w.channelsCount=w.channelsCount||R.channelsCount;w.audioSamplingRate=w.audioSamplingRate||R.audioSamplingRate;Uw(w);w.drmInfos.length&&a.h.newDrmInfo(w);X=!1;if(!l&&w.closedCaptions||l&&w.closedCaptions&&l.size!=w.closedCaptions.size)X=!0;
|
|
1142
|
-
a.m&&X&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.wa||e==D.ka)for(ca=t(a.i.values()),sa=ca.next();!sa.done;sa=ca.next())va=sa.value,va.Bg||va.type!=e||(va.stream.mimeType=R.mimeType,Uw(va.stream));e==D.Na&&(Pa=Cg(R.segmentIndex))&&Pa.ma&&(w.mimeType="application/mp4",Uw(w));Ia=Wl(w);w.segmentIndex.ac(function(cc){cc.ma&&(cc.ma.
|
|
1143
|
-
sw(a,J.ea,w.type,I,v);a.m&&(a.m.startTime=a.u);wa(kb,0);break;case 2:Ca=xa(kb);w.closeSegmentIndex();if(7001===Ca.code)return kb.return();Oc=a.h.disableStream(w);if(!Oc)throw Ca;H(kb)}})}function v(){return a.j&&1<c.length?hu(a.j,b):y.concat(Sv([a.O],c,a.A))}var w=jx(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,bi:y,R:v,Qc:0,dc:0,Oe:new Map,re:!1,qe:!1,
|
|
1144
|
+
a.m&&X&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.wa||e==D.ka)for(ca=t(a.i.values()),sa=ca.next();!sa.done;sa=ca.next())va=sa.value,va.Bg||va.type!=e||(va.stream.mimeType=R.mimeType,Uw(va.stream));e==D.Na&&(Pa=Cg(R.segmentIndex))&&Pa.ma&&(w.mimeType="application/mp4",Uw(w));Ia=Wl(w);w.segmentIndex.ac(function(cc){cc.ma&&(cc.ma.md=Ia)});ix(a)&&(a.xc?Jw(a,[z]):(a.xc=!0,fb=Array.from(a.i.values()),ab=fb.filter(function(cc){return cc.stream.segmentIndex}),Jw(a,ab),lw(a),Ea=a.o,0<Ea&&a.C.X(Ea)));
|
|
1145
|
+
sw(a,J.ea,w.type,I,v);a.m&&(a.m.startTime=a.u);wa(kb,0);break;case 2:Ca=xa(kb);w.closeSegmentIndex();if(7001===Ca.code)return kb.return();Oc=a.h.disableStream(w);if(!Oc)throw Ca;H(kb)}})}function v(){return a.j&&1<c.length?hu(a.j,b):y.concat(Sv([a.O],c,a.A))}var w=jx(a,d,e,f,g,h,k,l,m,n,p,r),y=[],z={stream:w,type:e,bi:y,R:v,Qc:0,dc:0,Oe:new Map,re:!1,qe:!1,Jd:!1,Sf:-1,Nb:-1,Ob:-1,Bg:!1},C=null,A;w.createSegmentIndex=function(){if(C)return C;A=ew(a,z.R(),!0);return C=new Promise(function(B){B(u(A))})};
|
|
1144
1146
|
w.closeSegmentIndex=function(){C&&!w.segmentIndex&&A.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);C=null};return z}function Pw(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.dc));return b}function iw(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.ac(function(e){c.push(e)});a.l.Sd(c)}
|
|
1145
1147
|
function Jw(a,b){if(!gw(a))for(var c=Pw(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.ed(0,c);iw(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?tw(a,b):(ww(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&tw(a,b))}function uw(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}
|
|
1146
1148
|
function ix(a){if(!a.m)return!1;var b=[],c=[];a=t(a.m.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
|
|
1147
1149
|
function xw(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z){y=void 0===y?!0:y;z=void 0===z?!0:z;var C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc;return P(function(sb){switch(sb.g){case 1:C=d.segments||[];A=C.every(function(Nd){return Pv(Nd.ea,"EXT-X-GAP")?!0:!1});if(!C.length||A)throw new U(2,4,4053);kx(a,d);gw(a)&&rw(a,d);B=gw(a)?a.P.get(g):new Map;D=pw(a,d,B,c,e,g);E=D.segments;F=D.bandwidth;N=I=K=J=L=null;if(!(0<E.length&&y)){sb.B(2);break}return G(sb,Kw(a,E),3);case 3:M=sb.h,
|
|
1148
1150
|
g=M.type,h=M.language,m=M.channelCount,u=M.sampleRate,a.g.disableText||(n=M.closedCaptions),J=M.height,L=M.width,K=M.be,I=M.colorGamut,N=M.frameRate,z&&(w=M.mimeType,f=M.codecs);case 2:if(w){sb.B(4);break}return G(sb,lx(a,g,f,E),5);case 5:w=sb.h;case 4:return G(sb,ow(a,d,w,e,c),6);case 6:O=sb.h;Q=O.drmInfos;R=O.keyIds;X=O.encrypted;ca=O.Oi;if(X&&!Q.length&&!ca)throw new U(2,4,4026);sa=jx(a,f,g,h,k,l,m,n,p,r,u,v);sa.encrypted=X;sa.drmInfos=Q;sa.keyIds=R;sa.mimeType=w;F&&(sa.bandwidth=F);Uw(sa);"video"==
|
|
1149
|
-
g&&(L||J||K||I)&&gx(sa,L,J,N,K,null,I);gw(a)&&rw(a,d);va=E[0].startTime;Pa=E[E.length-1];Ia=Pa.endTime;fb=new ql(E);sa.segmentIndex=fb;Ea=(ab=Pv(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Iv(ab,"CAN-SKIP-UNTIL"):!1;Ca=ab?null!=Iv(ab,"CAN-BLOCK-RELOAD"):!1;Oc=Qv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);kb=qw(Oc,E);cc=kb.Nb;Pc=kb.Ob;return sb.return({stream:sa,type:g,bi:[],R:e,Qc:va,dc:Ia,re:Ea,qe:Ca,
|
|
1151
|
+
g&&(L||J||K||I)&&gx(sa,L,J,N,K,null,I);gw(a)&&rw(a,d);va=E[0].startTime;Pa=E[E.length-1];Ia=Pa.endTime;fb=new ql(E);sa.segmentIndex=fb;Ea=(ab=Pv(d.ea,"EXT-X-SERVER-CONTROL"))?null!=Iv(ab,"CAN-SKIP-UNTIL"):!1;Ca=ab?null!=Iv(ab,"CAN-BLOCK-RELOAD"):!1;Oc=Qv(d.ea,"EXT-X-MEDIA-SEQUENCE",0);kb=qw(Oc,E);cc=kb.Nb;Pc=kb.Ob;return sb.return({stream:sa,type:g,bi:[],R:e,Qc:va,dc:Ia,re:Ea,qe:Ca,Jd:!1,Sf:-1,Nb:cc,Ob:Pc,Oe:B,Bg:!1})}})}
|
|
1150
1152
|
function qw(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Nb:a,Ob:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Nb:a,Ob:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{Nb:a,Ob:c}}
|
|
1151
1153
|
function jx(a,b,c,d,e,f,g,h,k,l,m,n){var p=Sw(c,b)||Tw(c),r=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())r.push(u.value)}k=void 0;u=null;c==Wc?k=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(u="visually impaired");r.length||"subtitle"!==k||r.push("subtitle");a={id:a.G++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
|
|
1152
1154
|
segmentIndex:null,mimeType:p,codecs:b,kind:c==Wc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:bd(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:r,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,
|
|
@@ -1162,7 +1164,7 @@ function mx(a,b,c,d,e){var f=Pv(c,"EXT-X-MAP");if(!f)return null;var g=Kv(f,"URI
|
|
|
1162
1164
|
function px(a,b,c,d){var e=0,f=null;b=Jv(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new ej(function(){return a},e,f,null,null,null,d)}
|
|
1163
1165
|
function qx(a,b,c,d,e,f,g,h,k){function l(X){X=(new ob(X)).jb.split(".").pop();var ca=rx[g][X];ca||(ca=Mw[X]);return ca}var m=d.ea,n=Pv(m,"EXTINF"),p=0,r=0,u=null;d.Vb.length&&(a.m.isLowLatency=!0);var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Pv(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=ye(w.value))}var y=hj;Pv(m,"EXT-X-GAP")&&(a.m.gapCount++,y=2);if(!n){if(0==d.Vb.length)throw new U(2,4,4024,"EXTINF");if(!a.L)return null}var z=[];w=!1;var C=null,A=!1,B=!1;if(a.L&&d.Vb.length){p=
|
|
1164
1166
|
b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=v,E={},F=0;F<d.Vb.length;E={pf:void 0,We:void 0},F++){var L=d.Vb[F],J=0==F?c:z[z.length-1],K=0==F?e:J.endTime,I=Number(Jv(L,"DURATION"))||a.U;if(I){var N=K+I,M=0,O=null;"EXT-X-PRELOAD-HINT"==L.name?(M=(M=Jv(L,"BYTERANGE-START"))?Number(M):0,(J=Jv(L,"BYTERANGE-LENGTH"))?O=M+Number(J)-1:M&&(O=Number.MAX_SAFE_INTEGER)):(M=Jv(L,"BYTERANGE"),O=t(sx(J,M)),M=O.next().value,O=O.next().value);E.We=Jv(L,"URI");if(E.We){J=hj;"YES"==
|
|
1165
|
-
Jv(L,"GAP")&&(a.m.gapCount++,J=2,A=!0);E.pf=null;var Q=function(X){return function(){null==X.pf&&(X.pf=Rv(h(),X.We,f));return X.pf}}(E);p&&0<=M&&null!=O&&(C=Q,w=!0);K=new gj(K,N,Q,M,O,b,0,0,Infinity,[],"",null,D,J,k);"EXT-X-PRELOAD-HINT"==L.name&&(K.Cg(),B=!0);"YES"!=Jv(L,"INDEPENDENT")&&0<F&&K.
|
|
1167
|
+
Jv(L,"GAP")&&(a.m.gapCount++,J=2,A=!0);E.pf=null;var Q=function(X){return function(){null==X.pf&&(X.pf=Rv(h(),X.We,f));return X.pf}}(E);p&&0<=M&&null!=O&&(C=Q,w=!0);K=new gj(K,N,Q,M,O,b,0,0,Infinity,[],"",null,D,J,k);"EXT-X-PRELOAD-HINT"==L.name&&(K.Cg(),B=!0);"YES"!=Jv(L,"INDEPENDENT")&&0<F&&K.ld();if(E=l(E.We))K.mimeType=E,tx.has(E)&&(K.ma=null);z.push(K);D&&(D+=I)}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;p=e+n}else if(z.length)p=z[z.length-1].endTime;else return null;w&&(A||
|
|
1166
1168
|
0!=z[0].Za?(w=!1,C=null):z=[]);(n=Pv(m,"EXT-X-BYTERANGE"))?(u=t(sx(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].Za,u=z[z.length-1].La);c="";n=null;"image"==g&&(c="1x1",m=Pv(m,"EXT-X-TILES"))&&(c=Kv(m,"LAYOUT"),(m=Jv(m,"DURATION"))&&(n=Number(m)));var R=null;b=new gj(e,p,function(){if(C)return C();null==R&&(R=Rv(h(),d.g,f));return R||[]},r,u,b,0,0,Infinity,z,c,n,v,y,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,tx.has(e)&&(b.ma=null);w&&(a.cc=!0,b.Rh(),B&&b.Cg());return b}
|
|
1167
1169
|
function sx(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.La+1,d=c+b-1);return[c,d]}
|
|
1168
1170
|
function sw(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.l.m;if(f&&!uw(a,c))for(b=Nv(b,"EXT-X-DATERANGE"),b=b.sort(function(v,w){v=Kv(v,"START-DATE");w=Kv(w,"START-DATE");return v<w?-1:v>w?1:0}),c=0;c<b.length;c++){var g=b[c],h=Kv(g,"ID");if(!a.Ga.has(h)){var k=Kv(g,"START-DATE"),l=ye(k);if(!isNaN(l)){k=Math.max(0,l-f);var m=null,n=Jv(g,"END-DATE");if(n&&(n=ye(n),!isNaN(n)&&(m=n-f,0>m)))continue;if(null==m&&(n=Jv(g,"DURATION")||Jv(g,"PLANNED-DURATION"))&&(n=parseFloat(n),isNaN(n)||(m=k+n),0>l-f+
|
|
@@ -1185,7 +1187,7 @@ keyId:null}],Kv(a,"URI"))},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":funct
|
|
|
1185
1187
|
var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=Kv(a,"URI");a=aw(a.split("?")[0]);a=Ib(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=fi(a,b,new Set,0);return Rc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dw="VOD",ox="EVENT",Ow="LIVE",jw={Ki:dw,Yk:ox,jl:Ow};$i["application/x-mpegurl"]=function(){return new bw};$i["application/vnd.apple.mpegurl"]=function(){return new bw};function ux(a){var b=0,c=Nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Ib(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function vx(a){if(a=wx(a))a:{a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=se(b.value,"LA_URL")){a=pe(b);break a}a=""}else a="";return a}
|
|
1186
1188
|
function wx(a){a=Kc(pe(a));a=ux(a).filter(function(b){return b.type===xx})[0];if(!a)return null;a=Ac(a.value,!0);return(a=de(a,"WRMHEADER"))?a:null}var xx=1,yx=(new Map).set("com.microsoft.playready",vx).set("com.microsoft.playready.recommendation",vx).set("com.microsoft.playready.software",vx).set("com.microsoft.playready.hardware",vx);function zx(a){if(!Ax){Ax=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Bx=Cx("ftyp",b,d,b,c);b=Cx("dref",Dx);Ex=Cx("dinf",b)}this.g=a}
|
|
1187
1189
|
function Fx(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Cx;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Gx+1));m=Math.floor(m%(Gx+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(h,4)),[0,0,0,0],x(Hx(n,4)),x(Hx(m,4)),[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],x(Hx(k,2)),[0,0],x(Hx(l,
|
|
1188
|
-
2)),[0,0]));h=Cx("tkhd",h);k=Cx;n=g.duration*g.timescale;l=Math.floor(n/(Gx+1));n=Math.floor(n%(Gx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(g.timescale,4)),x(Hx(l,4)),x(Hx(n,4)),x(Hx(m,2)),[0,0]));l=Cx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ix;break;case "audio":m=Jx}n=Cx("hdlr",m);a:{switch(g.type){case "video":g=Cx("minf",Cx("vmhd",
|
|
1190
|
+
2)),[0,0]));h=Cx("tkhd",h);k=Cx;n=g.duration*g.timescale;l=Math.floor(n/(Gx+1));n=Math.floor(n%(Gx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(g.timescale,4)),x(Hx(l,4)),x(Hx(n,4)),x(Hx(m,2)),[0,0]));l=Cx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ix;break;case "audio":m=Jx}n=Cx("hdlr",m);a:{switch(g.type){case "video":g=Cx("minf",Cx("vmhd",Kx),Ex,Xx(g));break a;
|
|
1189
1191
|
case "audio":g=Cx("minf",Cx("smhd",Yx),Ex,Xx(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=Nc.apply(Hc,x(b));f=a.g[0];c=Cx;d=f.duration*f.timescale;e=Math.floor(d/(Gx+1));d=Math.floor(d%(Gx+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(f.timescale,4)),x(Hx(e,4)),x(Hx(d,4)),[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,
|
|
1190
1192
|
255]));e=Cx("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Hx(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Cx("trex",k),h.call(g,k);a=Nc.apply(Hc,x(d));a=Cx("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=Nc.apply(Hc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Bx.byteLength+
|
|
1191
1193
|
a.byteLength);b.set(Bx);b.set(a,Bx.byteLength);return b}
|
|
@@ -1201,7 +1203,7 @@ function hy(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.valu
|
|
|
1201
1203
|
0;var p=Math.floor(m%(Gx+1));m=new Uint8Array([1,0,0,0].concat(x(Hx(Math.floor(m/(Gx+1)),4)),x(Hx(p,4))));m=Cx("tfdt",m);var r=n;n=c.data?c.data.rb:[];p=n.length;var u=12+16*p,v=new Uint8Array(u);r+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(x(Hx(p,4)),x(Hx(r,4))),0);for(r=0;r<p;r++){var w=n[r];u=Hx(w.duration,4);var y=Hx(w.size,4),z=w.flags;w=Hx(w.wb,4);v.set([].concat(x(u),x(y),[z.yb<<2|z.ob,z.qb<<6|z.pb<<4|z.zb,z.mb&61440,z.mb&15],x(w)),12+16*r)}n=Cx("trun",v);k=l("traf",h,m,n,k);f=f("moof",
|
|
1202
1204
|
g,k);e.call(d,b,[f,iy(c)])}return Nc.apply(Hc,x(b))}function iy(a){a=(a.data?a.data.rb:[]).map(function(b){return b.data});a=Nc.apply(Hc,x(a));return Cx("mdat",a)}function Hx(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Zx(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
|
|
1203
1205
|
function Cx(a){var b=Ja.apply(1,arguments),c=jy[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],jy[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
|
|
1204
|
-
var Ax=!1,Gx=Math.pow(2,32)-1,jy={},Ix=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Jx=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),dy=new Uint8Array([0,0,0,0,0,0,0,0]),ey=new Uint8Array([0,0,0,0,0,0,0,0]),gy=new Uint8Array([0,0,0,0,0,0,0,0]),fy=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),
|
|
1206
|
+
var Ax=!1,Gx=Math.pow(2,32)-1,jy={},Ix=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Jx=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),dy=new Uint8Array([0,0,0,0,0,0,0,0]),ey=new Uint8Array([0,0,0,0,0,0,0,0]),gy=new Uint8Array([0,0,0,0,0,0,0,0]),fy=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Kx=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Yx=new Uint8Array([0,
|
|
1205
1207
|
0,0,0,0,0,0,0]),cy=new Uint8Array([0,0,0,0,0,0,0,1]),Bx=new Uint8Array([]),Dx=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ex=new Uint8Array([]);function ky(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.G=new pd(5);this.o=new Wb(function(){ly(a)});this.C=new vh;this.m=new Map;this.A=function(){return!1}}q=ky.prototype;q.configure=function(a,b){this.g=a;b&&(this.A=b)};q.start=function(a,b){var c=this;return P(function(d){if(1==d.g)return c.l=[a],c.h=b,G(d,my(c),2);if(!c.h)throw new U(2,7,7001);return d.return(c.j)})};
|
|
1206
1208
|
function ly(a){var b;P(function(c){switch(c.g){case 1:return ta(c,2),G(c,my(a),4);case 4:wa(c,3);break;case 2:b=xa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();H(c)}})}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.o&&(this.o.stop(),this.o=null);this.m.clear();return this.C.destroy()};
|
|
1207
1209
|
q.update=function(){var a=this,b;return P(function(c){if(1==c.g)return ta(c,2),G(c,my(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.h||!b)return c.return();a.h.onError(b);H(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};
|
|
@@ -1234,7 +1236,7 @@ function Qy(a,b,c,d,e,f){Mh(a.i);var g=(a.j.get(b)||Promise.resolve()).then(func
|
|
|
1234
1236
|
function Ry(a,b){var c,d,e,f;return P(function(g){if(1==g.g)return c=Jh,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),G(g,d.promise,2);f=g.h;Rd(a.h,e);return g.return(f.data)})};function Ty(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new nh;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ty.prototype.abort=function(){var a=this;return P(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return G(b,a.g,4)}if(2!=b.g)return wa(b,0);xa(b);H(b)})};
|
|
1235
1237
|
function Uy(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return P(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return G(g,b(f.key,f.value,f),2)}f.continue();H(g)})}})}Ty.prototype.store=function(){return this.h};Ty.prototype.promise=function(){return this.g};function Vy(a){this.h=a;this.g=[]}Vy.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Wy(a,b){return Xy(a,b,"readwrite")}function Xy(a,b,c){c=a.h.transaction([b],c);var d=new Ty(c,b);a.g.push(d);d.promise().then(function(){Rd(a.g,d)},function(){Rd(a.g,d)});return d};function Yy(a,b,c){this.h=new Vy(a);this.i=b;this.g=c}q=Yy.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Zy(this.i)};q.removeSegments=function(a,b){return $y(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,az(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.wh(e)}))})};q.addManifests=function(){return Zy(this.g)};
|
|
1236
1238
|
q.updateManifest=function(){return Promise.reject(new U(2,9,9016,"Cannot modify values in "+this.g))};function bz(a,b,c){a=Wy(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=Wy(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return $y(this,this.g,a,b)};
|
|
1237
|
-
q.getManifests=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,az(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.
|
|
1239
|
+
q.getManifests=function(a){var b=this,c;return P(function(d){if(1==d.g)return G(d,az(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Cd(e)})))})};q.getAllManifests=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Xy(a.h,a.g,"readonly"),c=new Map,G(d,Uy(b,function(e,f){var g;return P(function(h){if(1==h.g)return G(h,a.Cd(f),2);g=h.h;c.set(e,g);H(h)})}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};q.wh=function(a){return a};q.Cd=function(a){return Promise.resolve(a)};
|
|
1238
1240
|
function Zy(a){return Promise.reject(new U(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Wy(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Mg:void 0},h=g.next())l=h.value,k.Mg=e.add(l),k.Mg.onsuccess=function(n){return function(){f.push(n.Mg.result)}}(k);return G(m,d.promise(),2)}return m.return(f)})};
|
|
1239
1241
|
function $y(a,b,c,d){a=Wy(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={yg:void 0},e=c.next())f.yg=e.value,b.delete(f.yg).onsuccess=function(g){return function(){return d(g.yg)}}(f);return a.promise()}
|
|
1240
1242
|
function az(a,b,c){var d,e,f,g,h,k,l;return P(function(m){if(1==m.g){d=Xy(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={$e:void 0,Je:void 0},k=h.next())l.Je=k.value,l.$e=e.get(l.Je),l.$e.onsuccess=function(n){return function(){void 0==n.$e.result&&g.push(n.Je);f[n.Je]=n.$e.result}}(l);return G(m,d.promise(),2)}if(g.length)throw new U(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function cz(a){this.g=new Vy(a)}cz.prototype.destroy=function(){return this.g.destroy()};cz.prototype.getAll=function(){var a=this,b,c;return P(function(d){return 1==d.g?(b=Xy(a.g,"session-ids","readonly"),c=[],G(d,Uy(b,function(e,f){c.push(f)}),2)):3!=d.g?G(d,b.promise(),3):d.return(c)})};cz.prototype.add=function(a){var b=Wy(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
|
|
@@ -1242,17 +1244,17 @@ cz.prototype.remove=function(a){var b=this,c;return P(function(d){return 1==d.g?
|
|
|
1242
1244
|
function fz(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Mb:d,$a:f},$a:e})})});if(b)return b;throw new U(2,9,9013,"Could not find a cell that supports add-operations");}function gz(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Mb:d,$a:f},e)})})}
|
|
1243
1245
|
function hz(a,b,c){a=a.g.get(b);if(!a)throw new U(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new U(2,9,9013,"Could not find cell with name "+c);return b}function iz(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function jz(a){var b=Array.from(a.g.keys());if(!b.length)throw new U(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
|
|
1244
1246
|
function kz(a){var b,c,d;return P(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=ez,d.forEach(function(f){(f=f())&&b.push(f)})),G(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):G(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function lz(a,b){ez.set(a,b)}S("shaka.offline.StorageMuxer",dz);dz.unregister=function(a){ez.delete(a)};dz.register=lz;dz.prototype.destroy=dz.prototype.destroy;var ez=new Map;function mz(){Yy.apply(this,arguments)}oa(mz,Yy);mz.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return P(function(g){d=Wy(c.h,c.g);e=d.store();f=new nh;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new U(2,9,9012,"Could not find values for "+a))};return G(g,Promise.all([d.promise(),f]),0)})};
|
|
1245
|
-
mz.prototype.
|
|
1247
|
+
mz.prototype.Cd=function(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=nz(a.periods[c],e),b.push(f);return G(h,su(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
|
|
1246
1248
|
function nz(a,b){oz(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return pz(e,a.startTime,b)})}
|
|
1247
1249
|
function pz(a,b,c){var d=a.initSegmentUri?qz(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
|
|
1248
1250
|
qz(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}mz.prototype.wh=function(a){return{data:a.data}};
|
|
1249
1251
|
function qz(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new U(2,9,9004,"Could not parse uri "+a);}
|
|
1250
1252
|
function oz(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){d=c++;for(var e=t(a),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d)}if(!a.length&&b.length)for(d=c++,
|
|
1251
1253
|
e=t(b),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function rz(){Yy.apply(this,arguments)}oa(rz,Yy);
|
|
1252
|
-
rz.prototype.
|
|
1254
|
+
rz.prototype.Cd=function(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(sz(n,k.startTime,k.startTime+e));f=l;b.push(f)}return G(h,su(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
|
|
1253
1255
|
Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
|
|
1254
1256
|
function sz(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
|
|
1255
|
-
appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function tz(){Yy.apply(this,arguments)}oa(tz,Yy);q=tz.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return bz(this,a,b)};q.
|
|
1257
|
+
appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function tz(){Yy.apply(this,arguments)}oa(tz,Yy);q=tz.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return bz(this,a,b)};q.Cd=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function uz(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=uz.prototype;
|
|
1256
1258
|
q.init=function(){var a=this,b=new nh,c=!1,d=new Wb(function(){c=!0;b.reject(new U(2,9,9017))});d.X(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new mz(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new rz(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
|
|
1257
1259
|
new rz(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new tz(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new cz(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new U(2,
|
|
1258
1260
|
9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return G(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return G(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return G(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return G(b,a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return G(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),H(b)}})};
|
|
@@ -1289,8 +1291,8 @@ function Zz(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O
|
|
|
1289
1291
|
e.push(Ag(r));u=t(a.imageStreams);for(v=u.next();!v.done;v=u.next())w=v.value,e.push(Bg(w));return G(Q,c.offline.trackSelectionCallback(e),3);case 3:y=Q.h;z=a.presentationTimeline.getDuration();C=0;A=t(y);for(B=A.next();!B.done;B=A.next())D=B.value,E=D.bandwidth*z/8,C+=E;ta(Q,4);return G(Q,c.offline.downloadSizeCallback(C),6);case 6:F=Q.h;if(!F)throw new U(2,9,9014);wa(Q,5);break;case 4:L=xa(Q);if(L instanceof U)throw L;throw new U(2,9,9015);case 5:J=new Set;K=new Set;I=new Set;N=t(y);for(M=N.next();!M.done;M=
|
|
1290
1292
|
N.next())O=M.value,"variant"==O.type&&J.add(O.id),"text"==O.type&&K.add(O.id),"image"==O.type&&I.add(O.id);a.variants=a.variants.filter(function(R){return J.has(R.id)});a.textStreams=a.textStreams.filter(function(R){return K.has(R.id)});a.imageStreams=a.imageStreams.filter(function(R){return I.has(R.id)});gA(a);H(Q)}})}
|
|
1291
1293
|
function $z(a,b,c,d,e,f){var g=Lz(c,b,d),h=e.offline.progressCallback;Py(f,function(r,u){g.size=u;h(g,r)},function(r,u){k&&e.offline.usePersistentLicense&&l==u&&wi(a,"cenc",r)});var k=dA(b)&&!eA(b),l=null;k&&(l=hA.get(a.g.keySystem));for(var m=new Oz,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Qz(m,p.value);n=t(b.variants);for(p=n.next();!p.done;p=n.next())Pz(m,p.value);m=iA(f,m,b,e);f=m.streams;m=m.eh;n=a.g;p=e.offline.usePersistentLicense;
|
|
1292
|
-
n&&p&&(n.initData=[]);return{Tj:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.
|
|
1293
|
-
function eA(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function bA(a,b,c,d){b.expiration=c.
|
|
1294
|
+
n&&p&&(n.initData=[]);return{Tj:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Gd(),streams:f,sessionIds:p?Fi(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},eh:m}}function dA(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
|
|
1295
|
+
function eA(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function bA(a,b,c,d){b.expiration=c.Gd();c=Fi(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(dA(a)&&d.offline.usePersistentLicense&&!c.length)throw new U(2,9,9007);}q.remove=function(a){return jA(this,kA(this,a))};
|
|
1294
1296
|
function kA(a,b){var c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:Wz();c=xz(b);if(null==c||"manifest"!=c.g)throw new U(2,9,9004,b);d=c;e=new dz;ua(k,2);return G(k,e.init(),4);case 4:return G(k,hz(e,d.Mb(),d.$a()),5);case 5:return f=k.h,G(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],G(k,Promise.all([lA(a,h,e),mA(f,d,h)]),2);case 2:return ya(k),G(k,e.destroy(),8);case 8:za(k,0)}})}
|
|
1295
1297
|
function nA(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Bf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Bf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function lA(a,b,c){return P(function(d){return G(d,oA(a.g,a.h.drm,c,b),0)})}
|
|
1296
1298
|
function mA(a,b,c){function d(){}var e=pA(c);Nz(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.lk=function(){return jA(this,qA(this))};
|
|
@@ -1358,140 +1360,141 @@ function YB(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){doc
|
|
|
1358
1360
|
function UB(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function XB(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
|
|
1359
1361
|
function VB(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function WB(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}vA.PiPWebkit=SB;SB.install=TB;yA(TB);function ZB(){}function $B(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=aC))}function aC(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}vA.RandomUUID=ZB;ZB.install=$B;yA($B);function bC(){}function cC(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:dC})}function dC(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}vA.Symbol=bC;bC.install=cC;yA(cC);function eC(){}function fC(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}vA.VideoPlayPromise=eC;eC.install=fC;yA(fC);function gC(){}function hC(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||hc())&&(a.getVideoPlaybackQuality=iC)}}function iC(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}vA.VideoPlaybackQuality=gC;gC.install=hC;yA(hC);function jC(){}function kC(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=lC;else if(6==b)a=mC;else{try{var c=!!lC(1,2,"")}catch(d){c=!1}c&&(a=lC)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function lC(a,b,c){return new window.TextTrackCue(a,b,c)}function mC(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}vA.VTTCue=jC;jC.install=kC;yA(kC);function nC(){}nC.prototype.parseInit=function(){};nC.prototype.setSequenceMode=function(){};nC.prototype.setManifestType=function(){};nC.prototype.parseMedia=function(a,b){var c=null,d=[];a=zc(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=oC.exec(e))){var f=pC.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Re(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
|
|
1360
1362
|
S("shaka.text.LrcTextParser",nC);nC.prototype.parseMedia=nC.prototype.parseMedia;nC.prototype.setManifestType=nC.prototype.setManifestType;nC.prototype.setSequenceMode=nC.prototype.setSequenceMode;nC.prototype.parseInit=nC.prototype.parseInit;var oC=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,pC=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Qf["application/x-subtitle-lrc"]=function(){return new nC};function qC(){}qC.prototype.parseInit=function(){};qC.prototype.setSequenceMode=function(){};qC.prototype.setManifestType=function(){};
|
|
1361
|
-
qC.prototype.parseMedia=function(a,b,c,d){var e=zc(a);a=[];if(""==e)return a;var f=de(e,"tt");if(!f)throw new U(2,2,2005,"Failed to parse TTML.");e=re(f,"body")[0];if(!e)return[];var g=xe(f,rC,"frameRate"),h=xe(f,rC,"subFrameRate"),k=xe(f,rC,"frameRateMultiplier"),l=xe(f,rC,"tickRate"),m=xe(f,rC,"cellResolution"),n=f.attributes["xml:space"]||"default",p=xe(f,sC,"extent");if("default"!=n&&"preserve"!=n)throw new U(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new tC(g,h,k,l);m=
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
(
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
g)
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
c,f,"
|
|
1374
|
-
|
|
1375
|
-
a.
|
|
1376
|
-
|
|
1377
|
-
function
|
|
1378
|
-
function
|
|
1379
|
-
function OC(a,b){a=
|
|
1363
|
+
qC.prototype.parseMedia=function(a,b,c,d){var e=zc(a);a=[];if(""==e)return a;var f=de(e,"tt");if(!f)throw new U(2,2,2005,"Failed to parse TTML.");e=re(f,"body")[0];if(!e)return[];var g=xe(f,rC,"frameRate"),h=xe(f,rC,"subFrameRate"),k=xe(f,rC,"frameRateMultiplier"),l=xe(f,rC,"tickRate"),m=xe(f,rC,"cellResolution"),n=f.attributes["xml:space"]||"default",p=xe(f,sC,"extent");if("default"!=n&&"preserve"!=n)throw new U(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new tC(g,h,k,l);m=uC(m);h=re(f,
|
|
1364
|
+
"metadata")[0];h=(h?h.children:[]).filter(function(v){return"\n"!=v});k=re(f,"style");f=re(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=vC(u.value,k,p))&&l.push(u);if(oe(e,"p").length)throw new U(2,2,2001,"<p> can only be inside <div> in TTML");p=t(oe(e,"div"));for(r=p.next();!r.done;r=p.next())if(oe(r.value,"span").length)throw new U(2,2,2001,"<span> can only be inside <p> in TTML");if(b=wC(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);
|
|
1365
|
+
return a};
|
|
1366
|
+
function wC(a,b,c,d,e,f,g,h,k,l,m,n,p){var r=l;if(me(a)){if(!m)return null;var u={tagName:"span",children:[pe(a)],attributes:{},parent:null}}else u=a;for(var v=null,w=t(xC),y=w.next();!y.done&&!(v=yC(u,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=null;y=xe(u,xC,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){w=parseInt(y.split(":").pop(),10)-1;if(w>=p.length)return null;w=p[w]}else n&&y&&!y.startsWith("#")&&(z=new ob(n),y=new ob(y),(y=z.resolve(y).toString())&&
|
|
1367
|
+
(w=y));if("p"==a.tagName||v||w)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(me);h=[];if(!z)for(var C=t(u.children),A=C.next();!A.done;A=C.next())(A=wC(A.value,b,c,d,e,f,g,y,k,u,m,n,p))&&h.push(A);d=null!=l;n=pe(u);n=u.children.length&&n&&/\S/.test(n);C=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(C||n||"br"==u.tagName||0!=h.length||d&&!y))return null;p=zC(u,c);n=p.start;for(p=p.end;r&&r.tagName&&"tt"!=r.tagName;)p=AC(r,c,n,p),n=p.start,
|
|
1368
|
+
p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!C&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new Re(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Gc(pe(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new Re(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=yC(u,"region",f,"")[0];if(u.attributes.region&&
|
|
1369
|
+
k&&k.attributes["xml:id"]){var B=k.attributes["xml:id"];b.region=g.filter(function(D){return D.id==B})[0]}g=k;l&&d&&!u.attributes.region&&!u.attributes.style&&(g=yC(l,"region",f,"")[0]);BC(b,u,g,v,w,e,a,0==h.length);return b}
|
|
1370
|
+
function vC(a,b,c){var d=new Ld,e=a.attributes["xml:id"];if(!e)return null;d.id=e;e=null;c&&(e=CC.exec(c)||DC.exec(c));c=e?Number(e[1]):null;e=e?Number(e[2]):null;var f,g=EC(a,b,"extent");if(g){var h=(f=CC.exec(g))||DC.exec(g);null!=h&&(d.width=Number(h[1]),d.height=Number(h[2]),f||(null!=c&&(d.width=100*d.width/c),null!=e&&(d.height=100*d.height/e)),d.widthUnits=f||null!=c?Md:0,d.heightUnits=f||null!=e?Md:0)}if(a=EC(a,b,"origin"))if(h=(f=CC.exec(a))||DC.exec(a),null!=h)d.viewportAnchorX=Number(h[1]),
|
|
1371
|
+
d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=Md,d.height=100-d.viewportAnchorY,d.heightUnits=Md):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?Md:0;return d}function FC(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),4==b.length)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
|
|
1372
|
+
function BC(a,b,c,d,e,f,g,h){g=g||h;"rtl"==GC(b,c,f,"direction",g)&&(a.direction="rtl");h=GC(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ue);(h=GC(b,c,f,"textAlign",!0))?(a.positionAlign=HC[h],a.lineAlign=IC[h],a.textAlign=of[h.toUpperCase()]):a.textAlign=Te;if(h=GC(b,c,f,"displayAlign",!0))a.displayAlign=pf[h.toUpperCase()];if(h=GC(b,c,f,"color",g))a.color=FC(h);if(h=GC(b,c,f,"backgroundColor",
|
|
1373
|
+
g))a.backgroundColor=FC(h);if(h=GC(b,c,f,"border",g))a.border=h;if(h=GC(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h.split(",").filter(function(k){return"default"!=
|
|
1374
|
+
k}).join(",")}(h=GC(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=lf);h=GC(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=GC(b,c,f,"lineHeight",g))&&h.match(JC)&&(a.lineHeight=h);(h=GC(b,c,f,"fontSize",g))&&(h.match(JC)||h.match(KC))&&(a.fontSize=h);if(h=GC(b,c,f,"fontStyle",g))a.fontStyle=rf[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=pe(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=
|
|
1375
|
+
e);if(d=GC(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(JC)?a.textStrokeColor=a.color:(a.textStrokeColor=FC(d[0]),d.shift()),d[0]&&d[0].match(JC)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=GC(b,c,f,"letterSpacing",g))&&d.match(JC)&&(a.letterSpacing=d);(d=GC(b,c,f,"linePadding",g))&&d.match(JC)&&(a.linePadding=d);if(d=GC(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=EC(c,f,"textDecoration"))&&LC(a,d);(d=MC(b,f,"textDecoration"))&&LC(a,d);if(d=GC(b,c,f,"textCombine",g))a.textCombineUpright=
|
|
1376
|
+
d;switch(GC(b,c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
|
|
1377
|
+
function LC(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(nf)||a.textDecoration.push(nf);break;case "noUnderline":a.textDecoration.includes(nf)&&Rd(a.textDecoration,nf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
|
|
1378
|
+
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rd(a.textDecoration,"overline")}}function GC(a,b,c,d,e){e=void 0===e?!0:e;return(a=MC(a,c,d))?a:e?EC(b,c,d):null}function EC(a,b,c){if(!a)return null;var d=xe(a,sC,c);return d?d:NC(a,b,c)}function MC(a,b,c){var d=xe(a,sC,c);return d?d:NC(a,b,c)}
|
|
1379
|
+
function NC(a,b,c){a=yC(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=we(a[e],"urn:ebu:tt:style",c);f||(f=xe(a[e],sC,c));f||(f=MC(a[e],b,c));f&&(d=f)}return d}function yC(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?we(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
|
|
1380
|
+
function AC(a,b,c,d){a=zC(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function zC(a,b){var c=OC(a.attributes.begin,b),d=OC(a.attributes.end,b);a=OC(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
|
|
1381
|
+
function OC(a,b){var c=null;if(PC.test(a)){a=PC.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(QC.test(a))c=RC(QC,a);else if(SC.test(a))c=RC(SC,a);else if(TC.test(a))a=TC.exec(a),c=Number(a[1])/b.frameRate;else if(UC.test(a))a=UC.exec(a),c=Number(a[1])/b.g;else if(VC.test(a))c=RC(VC,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c}
|
|
1382
|
+
function RC(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function uC(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Ec:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",qC);qC.prototype.parseMedia=qC.prototype.parseMedia;qC.prototype.setManifestType=qC.prototype.setManifestType;qC.prototype.setSequenceMode=qC.prototype.setSequenceMode;qC.prototype.parseInit=qC.prototype.parseInit;
|
|
1380
1383
|
function tC(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
|
|
1381
|
-
var
|
|
1382
|
-
end:"end"},
|
|
1383
|
-
|
|
1384
|
-
b,c,[]))})).parse(a,!1);if(!e)throw new U(2,2,2007);return f};S("shaka.text.Mp4TtmlParser",
|
|
1385
|
-
Qf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new
|
|
1386
|
-
|
|
1384
|
+
var CC=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,KC=/^(\d{1,4}(?:\.\d+)?|100)%$/,JC=/^(\d+px|\d+em|\d*\.?\d+c)$/,DC=/^(\d+)px (\d+)px$/,PC=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,QC=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,SC=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,TC=/^(\d*(?:\.\d*)?)f$/,UC=/^(\d*(?:\.\d*)?)t$/,VC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),IC={left:Xe,center:"center",right:"end",start:Xe,
|
|
1385
|
+
end:"end"},HC={left:"line-left",center:"center",right:"line-right"},rC=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],sC=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],xC=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Qf["application/ttml+xml"]=function(){return new qC};function WC(){this.g=new qC}WC.prototype.parseInit=function(a){var b=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};WC.prototype.setSequenceMode=function(){};WC.prototype.setManifestType=function(){};
|
|
1386
|
+
WC.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[],g=[];(new Uh).box("moof",Zh).box("traf",Zh).W("subs",function(h){g=[];for(var k=h.reader,l=k.T(),m=0;m<l;m++){k.T();for(var n=k.ya(),p=0;p<n;p++)1==h.version?g.push(k.T()):g.push(k.ya()),k.Z(),k.Z(),k.T()}}).box("mdat",di(function(h){e=!0;if(g.length){for(var k=Ib(h,0,g[0]),l=[],m=g[0],n=1;n<g.length;n++){var p=Ib(h,m,g[n]);p=Ic(p);l.push("data:image/png;base64,"+p);m+=g[n]}f=f.concat(d.g.parseMedia(k,b,c,l))}else f=f.concat(d.g.parseMedia(h,
|
|
1387
|
+
b,c,[]))})).parse(a,!1);if(!e)throw new U(2,2,2007);return f};S("shaka.text.Mp4TtmlParser",WC);WC.prototype.parseMedia=WC.prototype.parseMedia;WC.prototype.setManifestType=WC.prototype.setManifestType;WC.prototype.setSequenceMode=WC.prototype.setSequenceMode;WC.prototype.parseInit=WC.prototype.parseInit;Qf['application/mp4; codecs="stpp"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im1i"']=function(){return new WC};
|
|
1388
|
+
Qf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im2i"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im2t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.etd1"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.etd1|im1t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im1t|etd1"']=function(){return new WC};Qf['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new WC};function XC(){this.h=!1;this.g="UNKNOWN"}XC.prototype.parseInit=function(){};XC.prototype.setSequenceMode=function(a){this.h=a};XC.prototype.setManifestType=function(a){this.g=a};
|
|
1389
|
+
XC.prototype.parseMedia=function(a,b){a=zc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new U(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new U(2,2,2E3);a=$d(a[1]);if(null==a)throw new U(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,
|
|
1387
1390
|
d+=8589934592;a=b.periodStart+d/9E4-a}else a=b.segmentStart;b=[];d=t(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new Ud(e);var f=new Ld;Xd(e);Vd(e);for(var g=Xd(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):
|
|
1388
1391
|
(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Vd(e);g=Xd(e)}b.push(f)}d=new Map;df(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=
|
|
1389
1392
|
h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Re(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var r=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=r;break;case "font-size":m=!0;l.fontSize=
|
|
1390
1393
|
r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=lf;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=$e;break;case "italic":m=!0;l.fontStyle=mf;break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(r);break;case "text-combine-upright":m=!0;l.textCombineUpright=r;break;case "text-shadow":m=!0;l.textShadow=r;break;case "white-space":m=!0,l.wrapLine="noWrap"!=r}}}m&&d.set(g,l)}}l=f;m=a;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||
|
|
1391
|
-
"STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Ud(l[0]),g=Yd(h),n=Wd(h,/[ \t]+--\x3e[ \t]+/g),k=Yd(h),null==g||null==n||null==k)Za("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Re(g,k,m);Vd(h);for(g=Xd(h);g;)
|
|
1392
|
-
function
|
|
1393
|
-
b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Se);else if(d=/^region:(.*)$/.exec(b)){if(b=
|
|
1394
|
-
function
|
|
1395
|
-
|
|
1396
|
-
p.value;var r=p.Og||l,u=p.bf?c+p.bf:a;a=u+(r||0);var v=0;do{var w=m.T();v+=w;var y=m.T(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Pb(w-8)):m.skip(w-8);r&&z&&(w=
|
|
1397
|
-
function
|
|
1398
|
-
S("shaka.text.SbvTextParser"
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={ti:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=
|
|
1403
|
-
l.ti}}(a)))&&
|
|
1404
|
-
function
|
|
1405
|
-
"before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Te;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Te;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function
|
|
1406
|
-
function
|
|
1407
|
-
Qf["text/x-ssa"]=function(){return new
|
|
1408
|
-
function
|
|
1409
|
-
function
|
|
1410
|
-
2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function
|
|
1411
|
-
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e),g=f.length;g<e.length&&!
|
|
1394
|
+
"STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Ud(l[0]),g=Yd(h),n=Wd(h,/[ \t]+--\x3e[ \t]+/g),k=Yd(h),null==g||null==n||null==k)Za("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Re(g,k,m);Vd(h);for(g=Xd(h);g;)YC(l,g,b),Vd(h),g=Xd(h);cf(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
|
|
1395
|
+
function YC(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Te:a.textAlign=of[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
|
|
1396
|
+
b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Se);else if(d=/^region:(.*)$/.exec(b)){if(b=ZC(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=We,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()])}
|
|
1397
|
+
function ZC(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}S("shaka.text.VttTextParser",XC);XC.prototype.parseMedia=XC.prototype.parseMedia;XC.prototype.setManifestType=XC.prototype.setManifestType;XC.prototype.setSequenceMode=XC.prototype.setSequenceMode;XC.prototype.parseInit=XC.prototype.parseInit;Qf["text/vtt"]=function(){return new XC};Qf['text/vtt; codecs="vtt"']=function(){return new XC};Qf['text/vtt; codecs="wvtt"']=function(){return new XC};function $C(){this.g=null}$C.prototype.parseInit=function(a){var b=this,c=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(d){d=zj(d.reader,d.version);b.g=d.timescale}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new U(2,2,2008);if(!c)throw new U(2,2,2008);};$C.prototype.setSequenceMode=function(){};$C.prototype.setManifestType=function(){};
|
|
1398
|
+
$C.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(C){g=!0;c=yj(C.reader,C.version).baseMediaDecodeTime}).W("tfhd",function(C){l=xj(C.reader,C.flags).Ed}).W("trun",function(C){h=!0;d=Aj(C.reader,C.version,C.flags).ei}).box("mdat",di(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new U(2,2,2008);a=c;for(var m=new Rh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=
|
|
1399
|
+
p.value;var r=p.Og||l,u=p.bf?c+p.bf:a;a=u+(r||0);var v=0;do{var w=m.T();v+=w;var y=m.T(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Pb(w-8)):m.skip(w-8);r&&z&&(w=aD(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function aD(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=zc(g)})).box("iden",di(function(g){e=zc(g)})).box("sttg",di(function(g){f=zc(g)})).parse(a);return d?bD(d,e,f,b,c):null}
|
|
1400
|
+
function bD(a,b,c,d,e){a=new Re(d,e,a);cf(a);b&&(a.id=b);if(c)for(b=new Ud(c),c=Xd(b);c;)YC(a,c,[]),Vd(b),c=Xd(b);return a}S("shaka.text.Mp4VttParser",$C);$C.prototype.parseMedia=$C.prototype.parseMedia;$C.prototype.setManifestType=$C.prototype.setManifestType;$C.prototype.setSequenceMode=$C.prototype.setSequenceMode;$C.prototype.parseInit=$C.prototype.parseInit;Qf['application/mp4; codecs="wvtt"']=function(){return new $C};function cD(){}cD.prototype.parseInit=function(){};cD.prototype.setSequenceMode=function(){};cD.prototype.setManifestType=function(){};cD.prototype.parseMedia=function(a){var b=zc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Ud(c[0]),e=Yd(d),f=Wd(d,/,/g);d=Yd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Re(e,d,c.slice(1).join("\n").trim()))}return a};
|
|
1401
|
+
S("shaka.text.SbvTextParser",cD);cD.prototype.parseMedia=cD.prototype.parseMedia;cD.prototype.setManifestType=cD.prototype.setManifestType;cD.prototype.setSequenceMode=cD.prototype.setSequenceMode;cD.prototype.parseInit=cD.prototype.parseInit;Qf["text/x-subviewer"]=function(){return new cD};function dD(){this.g=new XC}dD.prototype.parseInit=function(){};dD.prototype.setSequenceMode=function(){};dD.prototype.setManifestType=function(){};dD.prototype.parseMedia=function(a,b,c){a=zc(a);a=eD(a);a=Ib(Dc(a));return this.g.parseMedia(a,b,c,[])};
|
|
1402
|
+
function eD(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}S("shaka.text.SrtTextParser",dD);dD.srt2webvtt=eD;dD.prototype.parseMedia=dD.prototype.parseMedia;
|
|
1403
|
+
dD.prototype.setManifestType=dD.prototype.setManifestType;dD.prototype.setSequenceMode=dD.prototype.setSequenceMode;dD.prototype.parseInit=dD.prototype.parseInit;Qf["text/srt"]=function(){return new dD};function fD(){}fD.prototype.parseInit=function(){};fD.prototype.setSequenceMode=function(){};fD.prototype.setManifestType=function(){};
|
|
1404
|
+
fD.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=zc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=gD.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=hD.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(iD);else if("Style"==a){a=f.split(iD);f={};for(var g=0;g<e.length&&
|
|
1405
|
+
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={ti:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=hD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(iD);else if("Dialogue"==f){g=g.split(iD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=jD(f.Start);var k=jD(f.End);g=new Re(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.ti=f.Style;(a=d.find(function(l){return function(m){return m.Name==
|
|
1406
|
+
l.ti}}(a)))&&kD(g,a);e.push(g)}return e};
|
|
1407
|
+
function kD(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=lD(c))a.color=c;if(c=b.BackColour)if(c=lD(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=lf);b.Italic&&(a.fontStyle=mf);b.Underline&&a.textDecoration.push(nf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ye;a.textAlign="start";break;case 2:a.displayAlign=Ye;a.textAlign=Te;break;case 3:a.displayAlign=Ye;a.textAlign="end";break;case 5:a.displayAlign=
|
|
1408
|
+
"before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Te;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Te;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function lD(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
|
|
1409
|
+
function jD(a){a=mD.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",fD);fD.prototype.parseMedia=fD.prototype.parseMedia;fD.prototype.setManifestType=fD.prototype.setManifestType;fD.prototype.setSequenceMode=fD.prototype.setSequenceMode;fD.prototype.parseInit=fD.prototype.parseInit;var gD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,hD=/^\s*([^:]+):\s*(.*)/,iD=/\s*,\s*/,mD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
|
|
1410
|
+
Qf["text/x-ssa"]=function(){return new fD};function nD(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Ee:c,ra:a}:null}function oD(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}}
|
|
1411
|
+
function pD(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
|
|
1412
|
+
function qD(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
|
|
1413
|
+
2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function rD(a){this.i=a;this.h=0;this.g=new Map}q=rD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Mf(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1414
|
+
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e),g=f.length;g<e.length&&!pD(e,g);g++);a=1E3*c.endTime;f=vj(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=oD(e,g);if(!f)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=nD(e,g);if(!k)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var l=k.Ee+k.ra;g+l<=e.length&&h.push({data:e.subarray(g+
|
|
1412
1415
|
k.Ee,g+l),size:k.ra,duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});g+=l}e=f.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:f.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:h},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};
|
|
1413
|
-
S("shaka.transmuxer.AacTransmuxer",
|
|
1416
|
+
S("shaka.transmuxer.AacTransmuxer",rD);rD.prototype.transmux=rD.prototype.transmux;rD.prototype.getOriginalMimeType=rD.prototype.getOriginalMimeType;rD.prototype.convertCodecs=rD.prototype.convertCodecs;rD.prototype.isSupported=rD.prototype.isSupported;rD.prototype.destroy=rD.prototype.destroy;tf("audio/aac",function(){return new rD("audio/aac")},zf);function sD(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=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,
|
|
1414
1417
|
1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Da:a,ra:e}}
|
|
1415
|
-
function
|
|
1416
|
-
q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&!
|
|
1417
|
-
wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ac3Transmuxer",
|
|
1418
|
-
|
|
1419
|
-
q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=
|
|
1420
|
-
size:l.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ec3Transmuxer",
|
|
1421
|
-
|
|
1422
|
-
Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=
|
|
1418
|
+
function tD(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function uD(a){this.i=a;this.h=0;this.g=new Map}q=uD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1419
|
+
q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&!tD(a,f);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=sD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),size:l.ra,duration:1536,
|
|
1420
|
+
wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ac3Transmuxer",uD);uD.prototype.transmux=uD.prototype.transmux;
|
|
1421
|
+
uD.prototype.getOriginalMimeType=uD.prototype.getOriginalMimeType;uD.prototype.convertCodecs=uD.prototype.convertCodecs;uD.prototype.isSupported=uD.prototype.isSupported;uD.prototype.destroy=uD.prototype.destroy;tf("audio/ac3",function(){return new uD("audio/ac3")},zf);function vD(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Gj(a.subarray(b+2));Ij(c,2);Ij(c,3);var d=Jj(c,11)+1<<1,e=Jj(c,2);if(3==e){e=Jj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Jj(c,2);var g=Jj(c,3),h=Jj(c,1);c=Jj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Da:a,ra:d}};function wD(a){this.i=a;this.h=0;this.g=new Map}q=wD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1422
|
+
q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=vD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),
|
|
1423
|
+
size:l.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ec3Transmuxer",wD);wD.prototype.transmux=wD.prototype.transmux;
|
|
1424
|
+
wD.prototype.getOriginalMimeType=wD.prototype.getOriginalMimeType;wD.prototype.convertCodecs=wD.prototype.convertCodecs;wD.prototype.isSupported=wD.prototype.isSupported;wD.prototype.destroy=wD.prototype.destroy;tf("audio/ec3",function(){return new wD("audio/ec3")},zf);function xD(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new Gj(b.data),d=Oj(c);Oj(c);Oj(c);Lj(c);if(yD.includes(d)&&(d=V(c),3===d&&Ij(c,1),Lj(c),Lj(c),Ij(c,1),Nj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)Nj(c)&&(6>e?Sj(c,16):Sj(c,64))}Lj(c);d=V(c);if(0===d)V(c);else if(1===d)for(Ij(c,1),Lj(c),Lj(c),d=V(c),e=0;e<d;e++)Lj(c);Lj(c);Ij(c,1);var f=V(c),g=V(c),h=Jj(c,1);0===h&&Ij(c,1);Ij(c,1);var k=0,l=0,m=0,n=0;
|
|
1425
|
+
Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=Oj(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<p&&16>=p?(d=r[p-1],e=u[p-1]):255===p&&(d=Jj(c,16),e=Jj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4],
|
|
1423
1426
|
k[5],255,225].concat(k,[1],b));return{height:c,width:f,Qa:a,Wa:d,Xa:e}}
|
|
1424
|
-
function
|
|
1425
|
-
{data:Nc.apply(Hc,x(c)),Od:b}:null}var
|
|
1426
|
-
Qa:b,Wa:a.wk,Xa:a.vk}}function
|
|
1427
|
-
function
|
|
1428
|
-
V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(J=0;4>J;J++)for(var K=0;K<(3===J?2:6);K++)if(Nj(a)){var I=Math.min(64,1<<4+(J<<1));1<J&&Mj(a);for(var N=0;N<I;N++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(
|
|
1429
|
-
L+4;I++)Jj(a,1);Jj(a,1)}J=L=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(I=
|
|
1427
|
+
function zD(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=Tj(new Gj(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
|
|
1428
|
+
{data:Nc.apply(Hc,x(c)),Od:b}:null}var yD=[100,110,122,244,44,83,86,118,128,138,139,134];function AD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=BD(b.fullData);a=CD(c.fullData);var f=DD(d.fullData);b=ED(b.fullData,c.fullData,d.fullData,{Eg:e.Eg,dh:e.dh,fg:a.fg,gg:a.gg,Zf:a.Zf,eg:a.eg,$f:a.$f,ag:a.ag,cg:a.cg,dg:a.dg,Tf:a.Tf,Uf:a.Uf,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Mf:a.Mf,Qe:a.Qe,Kf:a.Kf,Gf:a.Gf,Ff:a.Ff,Hg:f.Hg});return{height:a.height,width:a.width,
|
|
1429
|
+
Qa:b,Wa:a.wk,Xa:a.vk}}function BD(a){var b=new Gj(a,!0);Oj(b);Oj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Eg:a+1,dh:b}}
|
|
1430
|
+
function CD(a){a=new Gj(a,!0);Oj(a);Oj(a);var b=0,c=0,d=0,e=0;Jj(a,4);var f=Jj(a,3);Nj(a);for(var g=Jj(a,2),h=Jj(a,1),k=Jj(a,5),l=Oj(a),m=Oj(a),n=Oj(a),p=Oj(a),r=Oj(a),u=Oj(a),v=Oj(a),w=Oj(a),y=Oj(a),z=Oj(a),C=Oj(a),A=[],B=[],D=0;D<f;D++)A.push(Nj(a)),B.push(Nj(a));if(0<f)for(D=f;8>D;D++)Jj(a,2);for(D=0;D<f;D++)A[D]&&Jj(a,88),B[D]&&Oj(a);V(a);A=V(a);3==A&&Jj(a,1);B=V(a);D=V(a);Nj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var E=V(a),F=V(a),L=V(a);if(Nj(a))for(var J=0;J<=f;J++)V(a),V(a),V(a);else V(a),
|
|
1431
|
+
V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(J=0;4>J;J++)for(var K=0;K<(3===J?2:6);K++)if(Nj(a)){var I=Math.min(64,1<<4+(J<<1));1<J&&Mj(a);for(var N=0;N<I;N++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(Oj(a),V(a),V(a),Nj(a));J=V(a);for(I=K=0;I<J;I++)if(N=!1,0!==I&&(N=Nj(a)),N){I===J&&V(a);Nj(a);V(a);for(var M=N=0;M<=K;M++){var O=Nj(a),Q=!1;O||(Q=Nj(a));(O||Q)&&N++}K=N}else{M=V(a);N=V(a);K=M+N;for(O=0;O<M;O++)V(a),Nj(a);for(M=0;M<N;M++)V(a),Nj(a)}if(Nj(a))for(J=V(a),K=0;K<J;K++){for(I=0;I<
|
|
1432
|
+
L+4;I++)Jj(a,1);Jj(a,1)}J=L=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(I=Oj(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<I&&16>=I?(L=N[I-1],J=M[I-1]):255===I&&(L=Jj(a,16),J=Jj(a,16)));Nj(a)&&Nj(a);Nj(a)&&(Jj(a,3),Nj(a),Nj(a)&&(Oj(a),Oj(a),Oj(a)));Nj(a)&&(V(a),V(a));Nj(a);Nj(a);Nj(a);if(I=Nj(a))V(a),V(a),V(a),V(a);if(Nj(a)&&(Jj(a,32),Jj(a,32),Nj(a)&&V(a),Nj(a))){M=!1;I=Nj(a);N=Nj(a);if(I||N){if(M=Nj(a))Oj(a),Jj(a,5),Nj(a),Jj(a,5);Jj(a,4);Jj(a,4);M&&
|
|
1430
1433
|
Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(O=0;O<=f;O++){var R=!0;Q=1;Nj(a)||(R=Nj(a));var X=!1;R?V(a):X=Nj(a);X||(Q=V(a)+1);if(I){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(N){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{Zf:C,fg:g,gg:h,eg:k,$f:l,ag:m,cg:n,dg:p,Tf:r,Uf:u,Vf:v,Wf:w,Xf:y,Yf:z,Qe:K,Mf:0,Kf:A,Gf:E,Ff:F,width:B-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),wk:L,vk:J}}
|
|
1431
|
-
function
|
|
1432
|
-
function
|
|
1433
|
-
255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function
|
|
1434
|
-
function
|
|
1435
|
-
var
|
|
1436
|
-
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!
|
|
1437
|
-
duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:e,rb:a},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Mp3Transmuxer",
|
|
1438
|
-
|
|
1439
|
-
q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.
|
|
1440
|
-
|
|
1434
|
+
function DD(a){var b=new Gj(a,!0);Oj(b);Oj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Hg:c}}
|
|
1435
|
+
function ED(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.fg&3)<<6|(d.gg?1:0)<<5|d.eg&31;e[2]=d.$f;e[3]=d.ag;e[4]=d.cg;e[5]=d.dg;e[6]=d.Tf;e[7]=d.Uf;e[8]=d.Vf;e[9]=d.Wf;e[10]=d.Xf;e[11]=d.Yf;e[12]=d.Zf;e[13]=240|(d.Qe&3840)>>8;e[14]=d.Qe&255;e[15]=252|d.Hg&3;e[16]=252|d.Kf&3;e[17]=248|d.Gf&7;e[18]=248|d.Ff&7;e[19]=0;e[20]=0;e[21]=(d.Mf&3)<<6|(d.Eg&7)<<3|(d.dh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
|
|
1436
|
+
255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function FD(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*GD[14*(3===c?3-d:3===d?3:4)+e-1];f=HD[3*(3===c?0:2===c?1:2)+f];c=ID[c][d];var h=JD[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ra:k,tk:8*c*h}}return null}
|
|
1437
|
+
function KD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function LD(a,b){if(b+1<a.length&&KD(a,b)){var c=FD(a,b),d=4;c&&c.ra&&(d=c.ra);b+=d;return b===a.length||b+1<a.length&&KD(a,b)}return!1}
|
|
1438
|
+
var GD=[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],HD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],ID=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],JD=[0,1,1,4];function MD(a){this.i=a;this.h=0;this.g=new Map}q=MD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
|
|
1439
|
+
q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!LD(e,f);f++);var g;for(a=[];f<e.length;){var h=FD(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.ra<=e.length&&a.push({data:e.subarray(f,f+h.ra),size:h.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=h.ra}if(!g)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));e=9E4*g.tk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
|
|
1440
|
+
duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:e,rb:a},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Mp3Transmuxer",MD);MD.prototype.transmux=MD.prototype.transmux;MD.prototype.getOriginalMimeType=MD.prototype.getOriginalMimeType;MD.prototype.convertCodecs=MD.prototype.convertCodecs;MD.prototype.isSupported=MD.prototype.isSupported;
|
|
1441
|
+
MD.prototype.destroy=MD.prototype.destroy;tf("audio/mpeg",function(){return new MD("audio/mpeg")},zf);function ND(a){this.h=a;this.g=null}q=ND.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Mf(a).split(","),c=Uc("audio",b);b=Uc("video",b);return!c||b||"mp3"!=If(c)?!1:xd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
|
|
1442
|
+
q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.Fd().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.pc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=FD(a,b))?(b+d.ra<=a.length&&(c=Nc(c,a.subarray(b,b+d.ra))),b+=d.ra):b++;return Promise.resolve(c)};S("shaka.transmuxer.MpegTsTransmuxer",ND);ND.prototype.transmux=ND.prototype.transmux;
|
|
1443
|
+
ND.prototype.getOriginalMimeType=ND.prototype.getOriginalMimeType;ND.prototype.convertCodecs=ND.prototype.convertCodecs;ND.prototype.isSupported=ND.prototype.isSupported;ND.prototype.destroy=ND.prototype.destroy;tf("video/mp2t",function(){return new ND("video/mp2t")},yf);/*
|
|
1441
1444
|
@license
|
|
1442
1445
|
MSS Transmuxer
|
|
1443
1446
|
Copyright 2015 Dash Industry Forum
|
|
1444
1447
|
SPDX-License-Identifier: BSD-3-Clause
|
|
1445
1448
|
*/
|
|
1446
|
-
function
|
|
1447
|
-
function
|
|
1449
|
+
function OD(a){this.h=a;(this.g=Cv.get("ISOBoxer")())&&PD(this)}
|
|
1450
|
+
function PD(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
|
|
1448
1451
|
"uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32)}))})}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter",
|
|
1449
|
-
"uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==
|
|
1452
|
+
"uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==QD[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}q=OD.prototype;q.destroy=function(){};
|
|
1450
1453
|
q.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return xd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return xd(b)||xd(a)};q.convertCodecs=function(a,b){return b.replace("mss/","")};q.getOriginalMimeType=function(){return this.h};
|
|
1451
1454
|
q.transmux=function(a,b,c){if(!c)return Promise.resolve(Ib(a));if(!b.mssPrivateData)return Promise.reject(new U(2,3,3020,c?c.R()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");
|
|
1452
1455
|
m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var p=e.fetch("saio");if(null===p){p=this.g.createFullBox("saio",h);p.version=0;p.flags=0;p.entry_count=1;p.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)r.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else r.default_sample_info_size=
|
|
1453
|
-
8}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=
|
|
1454
|
-
|
|
1455
|
-
q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Mf(c).split(",");c=Uc("audio",d);d=Uc("video",d);if(c&&(c=If(c),!
|
|
1456
|
+
8}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=RD(u,"traf")+RD(h,"senc")+16);var w=Ib(e.write());return Promise.resolve(w)}catch(y){return y instanceof U?Promise.reject(y):Promise.reject(new U(2,3,3022,c?c.R()[0]:null))}};function RD(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}S("shaka.transmuxer.MssTransmuxer",OD);OD.prototype.transmux=OD.prototype.transmux;
|
|
1457
|
+
OD.prototype.getOriginalMimeType=OD.prototype.getOriginalMimeType;OD.prototype.convertCodecs=OD.prototype.convertCodecs;OD.prototype.isSupported=OD.prototype.isSupported;OD.prototype.destroy=OD.prototype.destroy;var QD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);tf("mss/audio/mp4",function(){return new OD("mss/audio/mp4")},zf);tf("mss/video/mp4",function(){return new OD("mss/video/mp4")},zf);function SD(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=SD.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
|
|
1458
|
+
q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Mf(c).split(",");c=Uc("audio",d);d=Uc("video",d);if(c&&(c=If(c),!TD.includes(c))||d&&(c=If(d),!UD.includes(c)))return!1;if(b)return xd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return xd(b)||xd(a)};
|
|
1456
1459
|
q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Mf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return qg(c,"audio/mp4")}).map(pg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
|
|
1457
|
-
q.transmux=function(a,b,c,d,e){var f=Ib(a);if("audio"==e&&!ck(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(
|
|
1458
|
-
if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){var y=v[w],z=y.nalus;u.push.apply(u,x(z));var C=
|
|
1460
|
+
q.transmux=function(a,b,c,d,e){var f=Ib(a);if("audio"==e&&!ck(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(LD(f,h))return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(pD(f,h))return this.h||(this.h=new rD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new Uj;var k=this.j.parse(f),l=[],m=k.Fd();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.Jc();
|
|
1461
|
+
if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){var y=v[w],z=y.nalus;u.push.apply(u,x(z));var C=zD(z);if(C){null==r&&(r=y.dts);var A=void 0;A=w+1<v.length?(v[w+1].dts||0)-(y.dts||0):1<v.length?(y.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:C.data,size:C.data.byteLength,duration:A,wb:Math.round((y.pts||0)-(y.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:C.Od?2:1,zb:C.Od?0:1}})}}var B=xD(u);if(!B||null==r)throw new U(2,3,3018,c?c.R()[0]:null);b.height=B.height;
|
|
1459
1462
|
b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:B.Qa,Wa:B.Wa,Xa:B.Xa,data:{Qb:this.g,baseMediaDecodeTime:r,rb:p},stream:b};break;case "hvc":var D=[],E=null,F=[],L=k.Jc();if(!L.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var J=0;J<L.length;J++){var K=L[J],I=K.nalus;F.push.apply(F,x(I));for(var N=!1,M=[],O=!1,Q=t(I),R=Q.next();!R.done;R=Q.next()){var X=R.value;switch(X.type){case 1:case 0:var ca=
|
|
1460
1463
|
O=!0;break;case 19:case 20:case 21:N=ca=O=!0;break;case 32:ca=!0;break;case 33:ca=!0;break;case 34:ca=!0;break;case 35:O=ca=!0;break;case 39:case 40:ca=!0;break;default:ca=!1}if(O&&ca){var sa=X.fullData.byteLength,va=new Uint8Array(4);va[0]=sa>>24&255;va[1]=sa>>16&255;va[2]=sa>>8&255;va[3]=sa&255;M.push(va);M.push(X.fullData)}}var Pa=M.length?{data:Nc.apply(Hc,x(M)),Od:N}:null;if(Pa){null==E&&null!=K.dts&&(E=K.dts);var Ia=void 0;Ia=J+1<L.length?(L[J+1].dts||0)-(K.dts||0):1<L.length?(K.dts||0)-(L[J-
|
|
1461
|
-
1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Pa.data,size:Pa.data.byteLength,duration:Ia,wb:Math.round((K.pts||0)-(K.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:Pa.Od?2:1,zb:Pa.Od?0:1}})}}var fb=
|
|
1462
|
-
(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.pc()),kb=Oc.next();!kb.done;kb=Oc.next()){var cc=kb.value,Pc=cc.data;if(Pc){var sb=0;Ea=
|
|
1463
|
-
qb:0,pb:0,mb:0,ob:2,zb:0}});sb+=Le}else sb++}}}if(!Ea||null==Ca){if(!k.Jc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ca=9E4*c.startTime;var Me=Uc("audio",b.codecs.split(","));if(!Me||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Me};var fe=
|
|
1464
|
-
duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var
|
|
1465
|
-
|
|
1466
|
-
Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:
|
|
1467
|
-
bg++}}if(0==
|
|
1468
|
-
Qe);cg?(
|
|
1469
|
-
[],
|
|
1470
|
-
0,1,2,3,4];break;case 134:Lb=[1,1,6,0,1,2,3,4,5];break;case 135:Lb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Lb=[1,1,8,0,1,2,3,4,5,6,7]}var
|
|
1471
|
-
Pd=Oh+2,
|
|
1472
|
-
Xa:0,data:{Qb:this.g,baseMediaDecodeTime:
|
|
1473
|
-
|
|
1464
|
+
1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Pa.data,size:Pa.data.byteLength,duration:Ia,wb:Math.round((K.pts||0)-(K.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:Pa.Od?2:1,zb:Pa.Od?0:1}})}}var fb=AD(F);if(!fb||null==E)throw new U(2,3,3018,c?c.R()[0]:null);b.height=fb.height;b.width=fb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:fb.Qa,Wa:fb.Wa,Xa:fb.Xa,data:{Qb:this.g,baseMediaDecodeTime:E,rb:D},stream:b}}n&&
|
|
1465
|
+
(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.pc()),kb=Oc.next();!kb.done;kb=Oc.next()){var cc=kb.value,Pc=cc.data;if(Pc){var sb=0;Ea=oD(Pc,sb);if(!Ea)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=Ea.sampleRate;b.channelsCount=Ea.channelCount;null==Ca&&null!==cc.pts&&(Ca=cc.pts);for(;sb<Pc.length;){var Nd=nD(Pc,sb);if(Nd){var Le=Nd.Ee+Nd.ra;sb+Le<=Pc.length&&ab.push({data:Pc.subarray(sb+Nd.Ee,sb+Le),size:Nd.ra,duration:1024,wb:0,flags:{yb:0,
|
|
1466
|
+
qb:0,pb:0,mb:0,ob:2,zb:0}});sb+=Le}else sb++}}}if(!Ea||null==Ca){if(!k.Jc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ca=9E4*c.startTime;var Me=Uc("audio",b.codecs.split(","));if(!Me||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Me};var fe=qD(Me,b.channelsCount);if(!fe)throw new U(2,3,3018,c?c.R()[0]:null);for(var Pj=Ca+9E4*(c.endTime-c.startTime),ge=Ca;ge<Pj;)ab.push({data:fe,size:fe.byteLength,
|
|
1467
|
+
duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var Qj=Ea.sampleRate,Rj=Ca/9E4*Qj;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qj,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:Rj,rb:ab},stream:b};break;case "ac3":for(var Ah=[],Ne=0,yc=new Uint8Array([]),yk=null,Lx=t(k.pc()),xo=Lx.next();!xo.done;xo=Lx.next()){var yo=xo.value,zo=yo.data;null==yk&&null!==
|
|
1468
|
+
yo.pts&&(yk=yo.pts);for(var ag=0;ag<zo.length;){var je=sD(zo,ag);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,Ne=je.sampleRate,yc=je.Da,Ah.push({data:zo.subarray(ag,ag+je.ra),size:je.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ag+=je.ra):ag++}}if(0==Ne||0==yc.byteLength||null==yk)throw new U(2,3,3018,c?c.R()[0]:null);var zH=yk/9E4*Ne;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ne,duration:d,ub:[],Da:yc,Qa:new Uint8Array([]),
|
|
1469
|
+
Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:zH,rb:Ah},stream:b};break;case "ec3":for(var Mx=[],zk=0,Ao=new Uint8Array([]),Ak=null,Nx=t(k.pc()),Bo=Nx.next();!Bo.done;Bo=Nx.next()){var Co=Bo.value,Do=Co.data;null==Ak&&null!==Co.pts&&(Ak=Co.pts);for(var bg=0;bg<Do.length;){var ke=vD(Do,bg);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,zk=ke.sampleRate,Ao=ke.Da,Mx.push({data:Do.subarray(bg,bg+ke.ra),size:ke.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),bg+=ke.ra):
|
|
1470
|
+
bg++}}if(0==zk||0==Ao.byteLength||null==Ak)throw new U(2,3,3018,c?c.R()[0]:null);var AH=Ak/9E4*zk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zk,duration:d,ub:[],Da:Ao,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:AH,rb:Mx},stream:b};break;case "mp3":for(var Ox=[],Bk,Ck=null,Px=t(k.pc()),Eo=Px.next();!Eo.done;Eo=Px.next()){var Fo=Eo.value,Nh=Fo.data;if(Nh){null==Ck&&null!==Fo.pts&&(Ck=Fo.pts);for(var Qe=0;Qe<Nh.length;){var cg=FD(Nh,
|
|
1471
|
+
Qe);cg?(Bk||(Bk=cg),Qe+cg.ra<=Nh.length&&Ox.push({data:Nh.subarray(Qe,Qe+cg.ra),size:cg.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),Qe+=cg.ra):Qe++}}}if(!Bk||null==Ck)throw new U(2,3,3018,c?c.R()[0]:null);var Qx=Bk.sampleRate,BH=Ck/9E4*Qx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qx,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:BH,rb:Ox},stream:b};break;case "opus":var Rx=
|
|
1472
|
+
[],Dk=null,ld=k.H;if(!ld)throw new U(2,3,3018,c?c.R()[0]:null);var Lb=[];switch(ld.Si){case 1:case 2:Lb=[0];break;case 0:Lb=[255,1,1,0,1];break;case 128:Lb=[255,2,0,0,1];break;case 3:Lb=[1,2,1,0,2,1];break;case 4:Lb=[1,2,2,0,1,2,3];break;case 5:Lb=[1,3,2,0,4,1,2,3];break;case 6:Lb=[1,4,2,0,4,1,2,3,5];break;case 7:Lb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Lb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Lb=[1,1,2,0,1];break;case 131:Lb=[1,1,3,0,1,2];break;case 132:Lb=[1,1,4,0,1,2,3];break;case 133:Lb=[1,1,5,
|
|
1473
|
+
0,1,2,3,4];break;case 134:Lb=[1,1,6,0,1,2,3,4,5];break;case 135:Lb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Lb=[1,1,8,0,1,2,3,4,5,6,7]}var Sx=new Uint8Array([0,ld.channelCount,0,0,ld.sampleRate>>>24&255,ld.sampleRate>>>17&255,ld.sampleRate>>>8&255,ld.sampleRate>>>0&255,0,0].concat(x(Lb)));for(var Tx=ld.sampleRate,Ux=t(k.pc()),Go=Ux.next();!Go.done;Go=Ux.next()){var Ho=Go.value,dg=Ho.data;null==Dk&&null!==Ho.pts&&(Dk=Ho.pts);for(var Oh=0;Oh<dg.length;){for(var CH=0!==(dg[Oh+1]&16),DH=0!==(dg[Oh+1]&8),
|
|
1474
|
+
Pd=Oh+2,Ek=0;255===dg[Pd];)Ek+=255,Pd+=1;Ek+=dg[Pd];Pd+=1;Pd+=CH?2:0;Pd+=DH?2:0;var Vx=dg.slice(Pd,Pd+Ek);Rx.push({data:Vx,size:Vx.byteLength,duration:960,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});Oh=Pd+Ek}}if(0==Sx.byteLength||null==Dk)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ld.sampleRate;b.channelsCount=ld.channelCount;var EH=Dk/9E4*Tx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Tx,duration:d,ub:[],Da:Sx,Qa:new Uint8Array([]),Wa:0,
|
|
1475
|
+
Xa:0,data:{Qb:this.g,baseMediaDecodeTime:EH,rb:Rx},stream:b}}n&&(l.push(n),n=null)}}catch(Io){return Io&&3023==Io.code?Promise.resolve(new Uint8Array([])):Promise.reject(Io)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var Wx=new zx(l),Jo=b.id+"_"+c.i;if(this.i.has(Jo))var Ko=this.i.get(Jo);else Ko=Fx(Wx),this.i.set(Jo,Ko);var FH=hy(Wx);this.g++;var GH=Nc(Ko,FH);return Promise.resolve(GH)};S("shaka.transmuxer.TsTransmuxer",SD);SD.prototype.transmux=SD.prototype.transmux;
|
|
1476
|
+
SD.prototype.getOriginalMimeType=SD.prototype.getOriginalMimeType;SD.prototype.convertCodecs=SD.prototype.convertCodecs;SD.prototype.isSupported=SD.prototype.isSupported;SD.prototype.destroy=SD.prototype.destroy;var TD=["aac","ac-3","ec-3","mp3","opus"],UD=["avc","hevc"];tf("video/mp2t",function(){return new SD("video/mp2t")},xf);/*
|
|
1474
1477
|
@license
|
|
1475
1478
|
EME Encryption Scheme Polyfill
|
|
1476
1479
|
Copyright 2019 Google LLC
|
|
1477
1480
|
SPDX-License-Identifier: Apache-2.0
|
|
1478
1481
|
*/
|
|
1479
|
-
function
|
|
1480
|
-
function
|
|
1481
|
-
function
|
|
1482
|
+
function VD(){}var WD;
|
|
1483
|
+
function XD(){WD||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(WD=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=YD,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
|
|
1484
|
+
function YD(a,b){var c=this,d;return P(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),G(e,WD.call(c,a,b),2);d=e.h;if(ZD(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=WD,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=$D;return e.return($D.call(c,
|
|
1482
1485
|
a,b))})}
|
|
1483
|
-
function
|
|
1484
|
-
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return G(v,
|
|
1485
|
-
function
|
|
1486
|
-
function
|
|
1487
|
-
navigator.mediaCapabilities.decodingInfo=
|
|
1488
|
-
function
|
|
1489
|
-
new
|
|
1490
|
-
function
|
|
1491
|
-
f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return G(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",
|
|
1492
|
-
|
|
1493
|
-
function
|
|
1494
|
-
function
|
|
1486
|
+
function $D(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=aE(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=bE(h.videoCapabilities,d),l=bE(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
|
|
1487
|
+
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return G(v,WD.call(c,a,e),2)}p=v.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new cE(p,r,u))})}function bE(a,b){return a?a.filter(function(c){return dE(c.encryptionScheme,b)}):a}S("EmeEncryptionSchemePolyfill",VD);VD.install=XD;function eE(){}var fE;
|
|
1488
|
+
function gE(){fE||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(fE=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=hE,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
|
|
1489
|
+
function hE(a){var b=this,c,d;return P(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),G(e,fE.call(b,a),2);case 2:c=e.h;if(!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&ZD(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=fE,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
|
|
1490
|
+
navigator.mediaCapabilities.decodingInfo=iE;if(d){e.B(3);break}return G(e,jE(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(iE.call(b,a))}})}
|
|
1491
|
+
function iE(a){var b=this,c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=aE(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},dE(d,g)&&dE(c,g))?G(l,fE.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess=
|
|
1492
|
+
new cE(k.keySystemAccess,c,d);l.B(3);break}if(!a.keySystemConfiguration){l.B(3);break}return G(l,jE(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k)}})}
|
|
1493
|
+
function jE(a){var b,c;return P(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};
|
|
1494
|
+
f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return G(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",eE);eE.install=gE;function cE(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}
|
|
1495
|
+
cE.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};cE.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};
|
|
1496
|
+
function aE(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ZD(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
|
|
1497
|
+
function dE(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(kE||lE)return!0;return!1}function mE(){}function EA(){XD();gE()}S("EncryptionSchemePolyfills",mE);mE.install=EA;var lE=navigator.userAgent.includes("CrKey"),kE=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10);"undefined"!==typeof module&&module.exports&&(module.exports=mE);/*
|
|
1495
1498
|
@license
|
|
1496
1499
|
Copyright 2013 Ali Al Dallal
|
|
1497
1500
|
|
|
@@ -1515,7 +1518,7 @@ function aE(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(hE||iE)retu
|
|
|
1515
1518
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1516
1519
|
SOFTWARE.
|
|
1517
1520
|
*/
|
|
1518
|
-
for(var
|
|
1521
|
+
for(var nE={ach:{D:"Lwo",F:"Acholi"},ady:{D:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",F:"Adyghe"},af:{D:"Afrikaans",F:"Afrikaans"},"af-NA":{D:"Afrikaans (Namibia)",F:"Afrikaans (Namibia)"},"af-ZA":{D:"Afrikaans (South Africa)",F:"Afrikaans (South Africa)"},ak:{D:"T\u0255\u0265i",F:"Akan"},ar:{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-AR":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-MA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic (Morocco)"},
|
|
1519
1522
|
"ar-SA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",F:"Arabic (Saudi Arabia)"},"ay-BO":{D:"Aymar aru",F:"Aymara"},az:{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"az-AZ":{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"be-BY":{D:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",F:"Belarusian"},bg:{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",F:"Bulgarian"},"bg-BG":{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
|
|
1520
1523
|
F:"Bulgarian"},bn:{D:"\u09ac\u09be\u0982\u09b2\u09be",F:"Bengali"},"bn-IN":{D:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",F:"Bengali (India)"},"bn-BD":{D:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",F:"Bengali (Bangladesh)"},"bs-BA":{D:"Bosanski",F:"Bosnian"},ca:{D:"Catal\u00e0",F:"Catalan"},"ca-ES":{D:"Catal\u00e0",F:"Catalan"},cak:{D:"Maya Kaqchikel",F:"Kaqchikel"},"ck-US":{D:"\u13e3\u13b3\u13a9 (tsalagi)",F:"Cherokee"},cs:{D:"\u010ce\u0161tina",
|
|
1521
1524
|
F:"Czech"},"cs-CZ":{D:"\u010ce\u0161tina",F:"Czech"},cy:{D:"Cymraeg",F:"Welsh"},"cy-GB":{D:"Cymraeg",F:"Welsh"},da:{D:"Dansk",F:"Danish"},"da-DK":{D:"Dansk",F:"Danish"},de:{D:"Deutsch",F:"German"},"de-AT":{D:"Deutsch (\u00d6sterreich)",F:"German (Austria)"},"de-DE":{D:"Deutsch (Deutschland)",F:"German (Germany)"},"de-CH":{D:"Deutsch (Schweiz)",F:"German (Switzerland)"},dsb:{D:"Dolnoserb\u0161\u0107ina",F:"Lower Sorbian"},el:{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",F:"Greek"},"el-GR":{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
|
|
@@ -1536,280 +1539,293 @@ F:"Slovak"},"sk-SK":{D:"Sloven\u010dina (Slovakia)",F:"Slovak (Slovakia)"},sl:{D
|
|
|
1536
1539
|
sw:{D:"Kiswahili",F:"Swahili"},"sw-KE":{D:"Kiswahili",F:"Swahili (Kenya)"},ta:{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},"ta-IN":{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},te:{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},"te-IN":{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},tg:{D:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",F:"Tajik"},"tg-TJ":{D:"\u0442\u043e\u04b7\u0438\u043a\u04e3",F:"Tajik"},th:{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
|
|
1537
1540
|
F:"Thai"},"th-TH":{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",F:"Thai (Thailand)"},tl:{D:"Filipino",F:"Filipino"},"tl-PH":{D:"Filipino",F:"Filipino"},tlh:{D:"tlhIngan-Hol",F:"Klingon"},tr:{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tr-TR":{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tt-RU":{D:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",F:"Tatar"},uk:{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",F:"Ukrainian"},"uk-UA":{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
|
|
1538
1541
|
F:"Ukrainian"},ur:{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},"ur-PK":{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},uz:{D:"O'zbek",F:"Uzbek"},"uz-UZ":{D:"O'zbek",F:"Uzbek"},vi:{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"vi-VN":{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"xh-ZA":{D:"isiXhosa",F:"Xhosa"},yi:{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",F:"Yiddish"},"yi-DE":{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",F:"Yiddish (German)"},zh:{D:"\u4e2d\u6587",F:"Chinese"},"zh-HANS":{D:"\u4e2d\u6587\u7b80\u4f53",
|
|
1539
|
-
F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
function
|
|
1543
|
-
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.Aa(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.Aa(.5))}oa(
|
|
1544
|
-
"ad-stopped",function(){c.h.textContent="";
|
|
1545
|
-
!1)});this.eventManager.s(window,"click",function(){
|
|
1546
|
-
|
|
1547
|
-
c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?
|
|
1548
|
-
|
|
1549
|
-
c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.X(1)):(c.o=!0,c.m=Date.now(),c.j.X(1))))});this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}oa(
|
|
1550
|
-
this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(f){e.controls.vc()&&(e.h=!0,e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.vc()&&(e.h=!0,
|
|
1551
|
-
(e.h=!1,
|
|
1552
|
-
q.release=function(){this.I&&(this.I.stop(),this.I=null);
|
|
1553
|
-
q.setValue=function(a){this.h||(this.bar.value=a)};function
|
|
1554
|
-
|
|
1555
|
-
this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.o=new Wb(function(){
|
|
1556
|
-
"locale-changed",function(){return
|
|
1557
|
-
f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(
|
|
1558
|
-
function(){
|
|
1559
|
-
q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.ye().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());
|
|
1560
|
-
q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Fa(),g=f.end-f.start;this.setRange(f.start,f.end);
|
|
1561
|
-
a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):
|
|
1562
|
-
function
|
|
1563
|
-
100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function
|
|
1564
|
-
function
|
|
1565
|
-
function
|
|
1542
|
+
F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},oE=t(Object.keys(nE)),pE=oE.next();!pE.done;pE=
|
|
1543
|
+
oE.next()){var qE=pE.value;nE[qE.toLowerCase()]=nE[qE]};function rE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new sd;this.localization=this.controls.xa;this.player=this.controls.hd();this.video=this.controls.uc();this.adManager=this.player.xe();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
|
|
1544
|
+
rE.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",rE);rE.prototype.release=rE.prototype.release;function sE(a){return tE(a,"shaka-back-to-overflow-button")}function tE(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function uE(a){a&&(a=tE(a,"shaka-chosen-item"))&&a.parentElement.focus()}function vE(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function wE(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
|
|
1545
|
+
function xE(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function yE(a,b){rE.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Wb(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=xE(e-d,!1)+" / "+xE(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
|
|
1546
|
+
""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.Aa(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.Aa(.5))}oa(yE,rE);yE.prototype.release=function(){this.g.stop();this.g=null;rE.prototype.release.call(this)};S("shaka.ui.AdCounter",yE);function zE(a,b){rE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");wE(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&AE(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&AE(c)});this.eventManager.s(this.adManager,"ad-started",function(){AE(c)});this.eventManager.s(this.adManager,
|
|
1547
|
+
"ad-stopped",function(){c.h.textContent="";wE(c.g,!1)});this.ad&&AE(this)}oa(zE,rE);function AE(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));wE(a.g,!0)}}S("shaka.ui.AdPosition",zE);function BE(a,b){rE.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";wE(c.g,!0)}else wE(c.g,
|
|
1548
|
+
!1)});this.eventManager.s(window,"click",function(){wE(c.g,!1)});CE(this)}oa(BE,rE);BE.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function DE(a,b){EE.set(a,b)}function CE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=EE.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}S("shaka.ui.ContextMenu",BE);
|
|
1549
|
+
BE.registerElement=DE;var EE=new Map;function FE(a,b){rE.call(this,a,b);var c=this;this.button=Jn();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
|
|
1550
|
+
c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?GE(c.controls):HE(c.controls)});this.ad&&(this.g(),this.h())}oa(FE,rE);FE.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
|
|
1551
|
+
FE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};FE.prototype.g=function(){};FE.prototype.h=function(){};S("shaka.ui.PlayButton",FE);function IE(a,b){FE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}oa(IE,FE);IE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};IE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};S("shaka.ui.BigPlayButton",IE);function JE(a,b){rE.call(this,a,b);var c=this;this.m=null;this.o=!1;this.j=new Wb(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.jg()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.o=!1;c.h.textContent="0s"});this.g=W("div");this.parent.appendChild(this.g);this.eventManager.s(this.g,"touchend",function(d){c.controls.vc()&&(c.controls.yd()?(d.preventDefault(),c.controls.Kc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.o)?
|
|
1552
|
+
c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.X(1)):(c.o=!0,c.m=Date.now(),c.j.X(1))))});this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}oa(JE,rE);S("shaka.ui.HiddenSeekButton",JE);function KE(a,b){JE.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}oa(KE,JE);S("shaka.ui.HiddenFastForwardButton",KE);function LE(a,b){JE.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}oa(LE,JE);S("shaka.ui.HiddenRewindButton",LE);function ME(a,b,c,d){rE.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.h=!1;this.bar=document.createElement("input");this.I=new Wb(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
|
|
1553
|
+
this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(f){e.controls.vc()&&(e.h=!0,e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.vc()&&(e.h=!0,NE(e,f),e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.h&&(NE(e,f),e.onChange());f.stopPropagation()});this.eventManager.s(this.bar,"touchend",function(f){e.h&&
|
|
1554
|
+
(e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}oa(ME,rE);q=ME.prototype;
|
|
1555
|
+
q.release=function(){this.I&&(this.I.stop(),this.I=null);rE.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.I.X(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
|
|
1556
|
+
q.setValue=function(a){this.h||(this.bar.value=a)};function NE(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}S("shaka.ui.RangeElement",ME);ME.prototype.setValue=ME.prototype.setValue;ME.prototype.getValue=ME.prototype.getValue;ME.prototype.changeTo=ME.prototype.changeTo;ME.prototype.onChangeEnd=ME.prototype.onChangeEnd;
|
|
1557
|
+
ME.prototype.onChange=ME.prototype.onChange;ME.prototype.onChangeStart=ME.prototype.onChangeStart;ME.prototype.setRange=ME.prototype.setRange;function OE(a,b){ME.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Wb(function(){var d=c.getValue();c.player.V()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.C=new Wb(function(){PE(c)});this.L=!1;this.i=W("div");this.i.id="shaka-player-ui-thumbnail-container";
|
|
1558
|
+
this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.o=new Wb(function(){QE(c)});this.G=[];this.eventManager.s(this.localization,"locale-updated",function(){return RE(c)});this.eventManager.s(this.localization,
|
|
1559
|
+
"locale-changed",function(){return RE(c)});this.eventManager.s(this.adManager,"ad-started",function(){SE(c)||wE(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){SE(c)&&wE(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.G=d.cuepoints;TE(c)});this.eventManager.s(this.player,"unloading",function(){c.G=[];TE(c);c.l&&(c.l.abort(),c.l=null);c.m=null;QE(c);UE(c)});this.eventManager.s(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),
|
|
1560
|
+
f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(UE(c),VE(c,d,e)):(QE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",d=c.player.Fa(),c.player.V()?(d=d.end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+WE(d)):c.j.textContent=WE(e-d.start))});this.eventManager.s(this.container,"mouseleave",
|
|
1561
|
+
function(){UE(c);c.o.stop();c.o.X(.25)});this.setValue(this.video.currentTime);this.update();RE(this);this.ad&&wE(this.container,!1)}oa(OE,ME);q=OE.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.C.stop(),this.C=null);ME.prototype.release.call(this)};q.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yg(!0);this.video.pause();this.o.stop();this.K=!0};
|
|
1562
|
+
q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.ye().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());VE(this,(d-a)/((b-a)/c.width),d)}else QE(this)};q.onChangeEnd=function(){this.u.Sa();this.controls.Yg(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.o.stop(),this.o.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
|
|
1563
|
+
q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Fa(),g=f.end-f.start;this.setRange(f.start,f.end);SE(this)?(wE(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?
|
|
1564
|
+
a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):wE(this.container,!1)};
|
|
1565
|
+
function PE(a){if(a.G.length){for(var b=a.player.Fa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
|
|
1566
|
+
100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function TE(a){function b(){PE(a);var c=a.player.Fa();c=c.end-c.start;a.player.V()&&5<c&&a.C.Aa(.25)}a.player.Nh()?b():a.eventManager.na(a.player,"loaded",b)}
|
|
1567
|
+
function SE(a){var b=a.player.Fa();b=b.end-b.start;return a.player.V()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function RE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
|
|
1568
|
+
function VE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:d=XE(a);if(!d)return QE(a),B.return();0>c&&(c=0);e=a.player.Fa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.ng(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return QE(a),B.return();a.player.V()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+WE(h)):a.A.textContent=WE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
|
|
1566
1569
|
-(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";p=g.uris[0].split("#xywh=")[0];if(a.m&&p===a.m.uris[0].split("#xywh=")[0]&&g.segment.Hb()==a.m.segment.Hb()&&g.segment.Eb()==a.m.segment.Eb()){B.B(3);break}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=d.codecs&&!p.startsWith("offline:")){B.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(B,5);r=Jh;u=cm(g.segment.R(),g.segment.Hb(),g.segment.Eb(),a.player.getConfiguration().streaming.retryParameters);
|
|
1567
1570
|
a.l=a.player.Fb().request(r,u,{type:1});return G(B,a.l.promise,7);case 7:v=B.h;a.l=null;"mjpg"==d.codecs?(w=(new Uh).box("mdat",di(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(v.data,!1)):(y=d.mimeType||"image/jpeg",z=new Blob([v.data],{type:y}),p=URL.createObjectURL(z));wa(B,4);break;case 5:C=xa(B);if(7001==C.code)return B.return();throw C;case 4:try{a.i.removeChild(a.g)}catch(D){}a.g=W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=p;
|
|
1568
1571
|
a.g.onload=function(){p.startsWith("blob:")&&URL.revokeObjectURL(p)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
|
|
1569
1572
|
g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",H(B)}})}
|
|
1570
|
-
function
|
|
1571
|
-
f.mimeType&&"mjpg"==f.codecs})||b[0]}function
|
|
1572
|
-
d:(c.i.stop(),
|
|
1573
|
-
"click",function(){c.ad.skip()});this.ad&&
|
|
1573
|
+
function XE(a){var b=a.player.ye();if(!b.length)return null;for(var c=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),d=c.next(),e={};!d.done;e={Uh:void 0,estimatedBandwidth:void 0},d=c.next())if(e.Uh=d.value,e.estimatedBandwidth=a.player.getStats().estimatedBandwidth,(d=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Uh&&g.bandwidth<.01*f.estimatedBandwidth}}(e)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&d.length)return d[0];return b.find(function(f){return"application/mp4"==
|
|
1574
|
+
f.mimeType&&"mjpg"==f.codecs})||b[0]}function QE(a){a.i.style.visibility="hidden";a.A.textContent=""}function UE(a){a.j.style.visibility="hidden"}function WE(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}S("shaka.ui.SeekBar",OE);function YE(){}YE.prototype.create=function(a,b){return new OE(a,b)};OE.Factory=YE;function ZE(a,b){rE.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");wE(this.h,!1);this.j.appendChild(this.h);this.g=Jn();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;wE(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);$E(this);this.i=new Wb(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
|
|
1575
|
+
d:(c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){$E(c)});this.eventManager.s(this.localization,"locale-changed",function(){$E(c)});this.eventManager.s(this.adManager,"ad-started",function(){aF(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;wE(c.g,!1);wE(c.h,!1)});this.eventManager.s(this.g,
|
|
1576
|
+
"click",function(){c.ad.skip()});this.ad&&aF(this)}oa(ZE,rE);ZE.prototype.release=function(){this.i.stop();this.i=null;rE.prototype.release.call(this)};function $E(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function aF(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(wE(a.g,!0),wE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.Aa(.5))}S("shaka.ui.SkipAdButton",ZE);/*
|
|
1574
1577
|
@license
|
|
1575
1578
|
glMatrix: https://github.com/toji/gl-matrix/
|
|
1576
1579
|
Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
|
|
1577
1580
|
SPDX-License-Identifier: MIT
|
|
1578
1581
|
*/
|
|
1579
|
-
function
|
|
1580
|
-
function
|
|
1582
|
+
function bF(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function cF(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
|
|
1583
|
+
function dF(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],v=b[12],w=b[13],y=b[14];b=b[15];var z=c[0],C=c[1],A=c[2],B=c[3];a[0]=z*d+C*h+A*n+B*v;a[1]=z*e+C*k+A*p+B*w;a[2]=z*f+C*l+A*r+B*y;a[3]=z*g+C*m+A*u+B*b;z=c[4];C=c[5];A=c[6];B=c[7];a[4]=z*d+C*h+A*n+B*v;a[5]=z*e+C*k+A*p+B*w;a[6]=z*f+C*l+A*r+B*y;a[7]=z*g+C*m+A*u+B*b;z=c[8];C=c[9];A=c[10];B=c[11];a[8]=z*d+C*h+A*n+B*v;a[9]=z*e+C*k+A*p+B*w;a[10]=z*f+C*l+A*r+B*y;a[11]=z*g+C*m+A*u+B*b;z=c[12];C=c[13];
|
|
1581
1584
|
A=c[14];B=c[15];a[12]=z*d+C*h+A*n+B*v;a[13]=z*e+C*k+A*p+B*w;a[14]=z*f+C*l+A*r+B*y;a[15]=z*g+C*m+A*u+B*b}
|
|
1582
|
-
function
|
|
1583
|
-
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function
|
|
1584
|
-
|
|
1585
|
-
function
|
|
1586
|
-
function
|
|
1587
|
-
d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}
|
|
1588
|
-
function
|
|
1589
|
-
function
|
|
1590
|
-
function
|
|
1585
|
+
function eF(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
|
|
1586
|
+
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function fF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function gF(){var a=new Float32Array(4);a[3]=1;return a}function hF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function iF(a,b,c,d,e){this.m=a;this.qa=b;this.l=c;this.g=d;this.o=new sd;this.L=gF();this.h=gF();this.ha=this.ia=this.aa=this.j=null;this.G=bF();this.I=bF();this.N=bF();this.Y=bF();this.A=null;this.O=!1;this.J=this.u=null;this.sa=this.Ha=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.U=0;this.C=e;jF(this)}iF.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
|
|
1587
|
+
iF.prototype.xd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);kF(this,!1)};
|
|
1588
|
+
function jF(a){lF(a);mF(a);nF(a);oF(a);pF(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){kF(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.qa.Ib();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);kF(a);a.u=(new Wb(function(){kF(a)})).Sa().Aa(1/b)});a.o.s(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;kF(a)});a.o.s(a.m,"seeked",function(){kF(a)});a.o.s(document,"visibilitychange",function(){kF(a)})})}
|
|
1589
|
+
function lF(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=
|
|
1590
|
+
d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}eF(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
|
|
1591
|
+
function mF(a){qF(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
|
|
1592
|
+
function nF(a){var b=rF(a,a.g.VERTEX_SHADER),c=rF(a,a.g.FRAGMENT_SHADER);a.j=a.g.createProgram();a.g.attachShader(a.j,b);a.g.attachShader(a.j,c);a.g.linkProgram(a.j);"cubemap"==a.C?(a.S=a.g.getAttribLocation(a.j,"aVertexPosition"),a.P=a.g.getAttribLocation(a.j,"aTextureCoord")):(a.S=a.g.getAttribLocation(a.j,"a_vPosition"),a.g.enableVertexAttribArray(a.S),a.P=a.g.getAttribLocation(a.j,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
|
|
1593
|
+
function rF(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.C?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";
|
|
1591
1594
|
break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.C?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
|
|
1592
1595
|
break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
|
|
1593
|
-
function
|
|
1596
|
+
function oF(a){if("cubemap"==a.C)var b={Ei:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Bi:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]};else{b=[];for(var c=[],d=[],
|
|
1594
1597
|
e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={Ei:b,Bi:c,indices:d}}a.K=b;a.aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Ei),a.g.STATIC_DRAW);a.ia=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
|
|
1595
1598
|
a.ia);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Bi),a.g.STATIC_DRAW);a.ha=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
|
|
1596
|
-
function
|
|
1597
|
-
function
|
|
1598
|
-
a.Y),
|
|
1599
|
+
function pF(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
|
|
1600
|
+
function kF(a,b){b=void 0===b?!0:b;var c=a.qa.Ic()==Ep;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(cF(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.C?cF(a.I,a.i*Math.PI/180,2.5):cF(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),qF(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.C&&(dF(a.N,a.G,
|
|
1601
|
+
a.Y),dF(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ia),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha),"cubemap"==a.C?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
|
|
1599
1602
|
"u_VPMatrix"),!1,a.N),a.g.uniform1i(a.g.getUniformLocation(a.j,"uSampler"),0),a.O&&a.g.viewport(0,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0),a.O&&(a.g.viewport(a.l.width/2,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0)))}
|
|
1600
|
-
function
|
|
1601
|
-
function
|
|
1602
|
-
e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,
|
|
1603
|
-
d-k*g;c[7]=r*d-l*g;
|
|
1604
|
-
"unloading",function(){f.l=null;
|
|
1605
|
-
q.pg=function(a){this.g?
|
|
1606
|
-
function
|
|
1607
|
-
function
|
|
1608
|
-
function
|
|
1609
|
-
a.h.s(a.i,"touchmove",function(d){a.j&&
|
|
1610
|
-
"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,
|
|
1611
|
-
function
|
|
1612
|
-
g.next())
|
|
1613
|
-
q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.Ba&&(a.Ba.stop(),a.Ba=null);a.u&&(a.u.release(),a.u=null);
|
|
1614
|
-
a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),
|
|
1615
|
-
q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),
|
|
1616
|
-
|
|
1617
|
-
a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");
|
|
1618
|
-
q.lj=function(){return this.o};q.hd=function(){return this.C};q.kj=function(){return this.aa};q.dj=function(){return this.h};q.vj=function(){return this.Ga};q.aj=function(){return this.L};q.bj=function(){return this.g};q.Pj=function(){return this.Y};q.Yg=function(a){this.Y=a};q.Kj=function(){return this.sa};q.jg=function(){return this.m?this.m.getValue():this.A.currentTime};q.mi=function(a){this.I=a};q.
|
|
1619
|
-
q.Kc=function(){this.N.Sa()};q.Nd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.
|
|
1620
|
-
function
|
|
1621
|
-
4,2);break;case 9:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),H(e)}})}function
|
|
1603
|
+
function qF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.Ha!==b||a.sa!==c){a.l.width=b;a.l.height=c;a.Ha=b;a.sa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
|
|
1604
|
+
function sF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=bF(),g=bF(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],p=g[9],r=g[10],u=g[11],g!==
|
|
1605
|
+
e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,dF(f,e,f)):a.H-=c;c=bF();e=bF();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];p=e[6];r=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+p*g;c[3]=l*d+r*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=p*
|
|
1606
|
+
d-k*g;c[7]=r*d-l*g;dF(f,c,f);kF(a,!1)}function tF(a,b){if(void 0===b||b)eF(a.h,a.G),a.U=0,a.A=gF(),a.A[0]=(a.h[0]-a.L[0])/20,a.A[1]=(a.h[1]-a.L[1])/20,a.A[2]=(a.h[2]-a.L[2])/20,a.A[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.A[0];a.h[1]-=a.A[1];a.h[2]-=a.A[2];a.h[3]-=a.A[3];b=bF();hF(a.h,a.h);fF(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new Wb(function(){tF(a,!1);a.H=0;a.U++;kF(a,!1)})).X(.025):(fF(b,a.L),a.G=b)};function uF(a,b,c,d,e){hb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new sd;this.h=new sd;this.G=vF(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&tF(f.g);wF(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}wF(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;wF(f)});this.o.s(d,
|
|
1607
|
+
"unloading",function(){f.l=null;wF(f)});wF(this)}oa(uF,hb);q=uF.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);hb.prototype.release.call(this)};q.configure=function(a){this.u=a;wF(this)};q.If=function(){return!!this.G};q.Kb=function(){return!!this.g};q.xd=function(){this.g?this.g.xd():Za("Not playing VR content")};q.rg=function(a){this.g?sF(this.g,a*xF,0,0):Za("Not playing VR content")};
|
|
1608
|
+
q.pg=function(a){this.g?sF(this.g,0,a*xF,0):Za("Not playing VR content")};q.qg=function(a){this.g?sF(this.g,0,0,a*xF):Za("Not playing VR content")};
|
|
1609
|
+
function wF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.Ya(),a.g.release(),yF(a,b)):(a.m.style.display="",yF(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.Ya(),a.g.release(),a.g=null,a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}function yF(a,b){a.G&&a.m&&(a.g=new iF(a.L,a.K,a.m,a.G,b),zF(a))}
|
|
1610
|
+
function vF(a){if(!a.m||sc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
|
|
1611
|
+
function zF(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.C=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.C=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);kF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&AF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
|
|
1612
|
+
a.h.s(a.i,"touchmove",function(d){a.j&&AF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,BF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ma(a.i,
|
|
1613
|
+
"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,BF(a))}).catch(function(){a.h.Ma(a.i,"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,BF(a)}
|
|
1614
|
+
function BF(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?sF(a.g,c*xF*-1,e*xF*-1,0):sF(a.g,c*xF*-1,d*xF,0)})}function AF(a,b,c){var d=-.6*Math.PI/180;sF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var xF=Math.PI/180;function Z(a,b,c,d,e){hb.call(this);var f=this;this.S=!0;this.g=e;this.G=new zr(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.G.uc();this.o=c;this.C=this.G.hd();this.aa=a;this.l=b;this.Lb=d;this.qa=this.C.xe();this.m=this.j=null;this.Y=!1;this.J=[];this.ab=[];this.Ta=!1;this.P=new Wb(function(){f.l.style.cursor="none";f.Ta=!1;CF(f)});this.ha=new Wb(function(){f.h.removeAttribute("shown");f.N.X(2)});this.N=new Wb(function(){for(var g=t(f.J),h=g.next();!h.done;h=
|
|
1615
|
+
g.next())wE(h.value,!1)});this.Ba=new Wb(function(){f.vc()&&DF(f)});this.I=null;this.H=[];this.xa=EF();this.i=new sd;this.u=null;this.configure(this.g);FF(this);GF(this);this.ia=new Set;HF(this);this.Ba.Aa(this.g.refreshTickInSeconds);this.i.s(this.xa,"locale-changed",function(g){f.qa.setLocale(g.locales[0])});this.qa.initInterstitial(this.L,this.aa,this.o)}oa(Z,hb);q=Z.prototype;
|
|
1616
|
+
q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.Ba&&(a.Ba.stop(),a.Ba=null);a.u&&(a.u.release(),a.u=null);IF(a);a.h&&(a.l.removeChild(a.h),a.h=null);if(!a.G){b.B(4);break}return G(b,a.G.destroy(),5);case 5:a.G=null;case 4:if(!a.aa){b.B(6);break}return G(b,
|
|
1617
|
+
a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),JF(a),hb.prototype.release.call(a),H(b)}})};function IF(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function KF(a,b){LF.set(a,b)}q.Pi=function(a){this.sa=a;HF(this)};q.Sj=function(){CF(this)};
|
|
1618
|
+
q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),IF(this)):(MF(this),NF(this),this.u=new uF(this.h,this.Lb,this.o,this.C,this.g));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");OF(this);this.g.addBigPlayButton&&PF(this);this.g.customContextMenu&&(this.Ia=new BE(this.U,this),this.H.push(this.Ia));this.$||
|
|
1619
|
+
QF(this);this.g.seekOnTaps&&(RF(this),SF(this));this.Ga=W("div");this.Ga.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ga);TF(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));UF(this);this.ab=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));CF(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
|
|
1620
|
+
a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");CF(this)};q.ki=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Ug(!1)};q.getAd=function(){return this.j};q.$i=function(){return this.G};q.mj=function(){return this.xa};q.Ej=function(){return this.l};q.uc=function(){return this.A};
|
|
1621
|
+
q.lj=function(){return this.o};q.hd=function(){return this.C};q.kj=function(){return this.aa};q.dj=function(){return this.h};q.vj=function(){return this.Ga};q.aj=function(){return this.L};q.bj=function(){return this.g};q.Pj=function(){return this.Y};q.Yg=function(a){this.Y=a};q.Kj=function(){return this.sa};q.jg=function(){return this.m?this.m.getValue():this.A.currentTime};q.mi=function(a){this.I=a};q.yd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
|
|
1622
|
+
q.Kc=function(){this.N.Sa()};q.Nd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.kd=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
|
|
1623
|
+
function VF(a){var b,c,d;return P(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return G(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,G(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:wa(e,
|
|
1624
|
+
4,2);break;case 9:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),H(e)}})}function WF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.kf=function(){var a=this;return P(function(b){return a.kd()?G(b,WF(a),0):G(b,VF(a),0)})};
|
|
1622
1625
|
q.He=function(){return this.G.Ra()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.o.disablePictureInPicture:!1};q.Ie=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
|
|
1623
|
-
q.
|
|
1624
|
-
function
|
|
1626
|
+
q.wd=function(){var a=this,b,c;return P(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,XF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,G(d,b.requestPictureInPicture(),5));if(2!=d.g)return wa(d,0);c=xa(d);a.dispatchEvent(new T("error",(new Map).set("detail",c)));H(d)})};
|
|
1627
|
+
function XF(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;YF(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
|
|
1625
1628
|
d.document.head.append(g);d.document.body.append(b);a.i.na(d,"pagehide",function(){f.replaceWith(b)});H(h)})}
|
|
1626
|
-
function
|
|
1627
|
-
q.Jh=function(){
|
|
1628
|
-
function
|
|
1629
|
-
function
|
|
1630
|
-
function
|
|
1631
|
-
"none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function
|
|
1632
|
-
function
|
|
1633
|
-
(c=
|
|
1634
|
-
function
|
|
1635
|
-
a.i.s(a.G,"caststatuschanged",function(){
|
|
1636
|
-
|
|
1637
|
-
case " ":e&&
|
|
1638
|
-
function
|
|
1639
|
-
d.seekTime);break;case "stop":a.C.lc();break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.
|
|
1629
|
+
function YF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.si=function(){wE(this.K,!0);wE(this.L,!0);this.h.setAttribute("ad-active","true")};
|
|
1630
|
+
q.Jh=function(){wE(this.K,!1);wE(this.L,!1);this.h.removeAttribute("ad-active")};function HE(a){a.S&&a.A.duration&&(a.C.Zc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function GE(a){a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause()}
|
|
1631
|
+
function MF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.vc()?a.I=Date.now():(ZF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){$F(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Nd()&&a.kf()})}
|
|
1632
|
+
function PF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ja=new IE(b,a);a.H.push(a.Ja)}function OF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function aG(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.j&&a.j.isLinear();wE(a.K,b);a.O.appendChild(a.K);b=new zE(a.K,a);a.H.push(b);b=new yE(a.K,a);a.H.push(b);b=new ZE(a.K,a);a.H.push(b)}
|
|
1633
|
+
function QF(a){a.$=W("div");a.$.classList.add("shaka-spinner-container");a.l.appendChild(a.$);var b=W("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
|
|
1634
|
+
"none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function RF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.xb=new KE(b,a);a.H.push(a.xb)}function SF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Jb=new LE(b,a);a.H.push(a.Jb)}
|
|
1635
|
+
function TF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.s(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Kc()});aG(a);a.U=W("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.O.appendChild(a.U);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,LF.get(c)?
|
|
1636
|
+
(c=LF.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function UF(a){if(a.g.addSeekBar)a.m=bG.create(a.O,a),a.H.push(a.m);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function NF(a){a.L=W("div");a.L.classList.add("shaka-client-side-ad-container");wE(a.L,!1);a.i.s(a.L,"click",function(){$F(a)});a.l.appendChild(a.L)}
|
|
1637
|
+
function FF(a){a.i.s(a.C,"buffering",function(){a.S&&wE(a.$,a.C.Md())});a.S&&wE(a.$,a.C.Md());a.i.s(window,"keydown",function(b){cG(a,b)});a.i.s(window,"click",function(){return a.Kc()});a.i.s(a,"submenuopen",function(){a.Kc()});a.i.s(a.A,"play",function(){CF(a)});a.i.s(a.A,"pause",function(){CF(a)});a.i.s(a.l,"mousemove",function(b){ZF(a,b)});a.i.s(a.l,"touchmove",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"touchend",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"mouseleave",function(){a.I||a.P.Sa()});
|
|
1638
|
+
a.i.s(a.G,"caststatuschanged",function(){HF(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"))});a.i.s(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&ZF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.m&&e&&!d&&0<c&&(b.preventDefault(),
|
|
1639
|
+
dG(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+f));break;case "Home":a.m&&dG(a,a.C.Fa().start);break;case "End":a.m&&dG(a,a.C.Fa().end);break;case "f":a.Nd()&&a.kf();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.He()&&a.wd();break;
|
|
1640
|
+
case " ":e&&eG(a)}}});a.i.s(a.l,"keyup",function(b){a.ia.delete(b.key)});a.i.s(a.qa,"ad-started",function(b){a.j=b.ad;a.si()});a.i.s(a.qa,"ad-stopped",function(){a.j=null;a.Jh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return P(function(b){return G(b,fG(a),0)})})}
|
|
1641
|
+
function GF(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(d,e){try{navigator.mediaSession.setActionHandler(d,function(f){e(f)})}catch(f){}},c=function(d){var e=a.g.keyboardSeekDistance,f=a.C.Fa();switch(d.action){case "pause":eG(a);break;case "play":eG(a);break;case "seekbackward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()-(d.seekOffset||e));break;case "seekforward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()+(d.seekOffset||e));break;case "seekto":a.j&&a.j.isLinear()||dG(a,f.start+
|
|
1642
|
+
d.seekTime);break;case "stop":a.C.lc();break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.wd()}};b("pause",c);b("play",c);b("seekbackward",c);b("seekforward",c);b("seekto",c);b("stop",c);b("enterpictureinpicture",c);a.i.s(a.A,"timeupdate",function(){var d=a.C.Fa(),e=d.end-d.start;d=parseFloat((a.A.currentTime-d.start).toFixed(2));a.C.V()&&1>Math.abs(e-d)&&(e=Infinity);try{a.j&&a.j.isLinear()?navigator.mediaSession.setPositionState():navigator.mediaSession.setPositionState({duration:Math.max(0,
|
|
1640
1643
|
e),playbackRate:a.A.playbackRate,position:Math.max(0,d)})}catch(f){}});a.i.s(a.C,"metadata",function(d){if(d=d.payload){var e;"TIT2"==d.key&&d.data&&(e=d.data);var f;"APIC"==d.key&&"--\x3e"==d.mimeType&&(f=d.data);navigator.mediaSession.metadata&&e&&(navigator.mediaSession.metadata.title=e);f&&(e=a.o,f!=e.poster&&(e.poster=f),navigator.mediaSession.metadata&&(navigator.mediaSession.metadata.artwork=[{src:f}]))}})}}
|
|
1641
|
-
function
|
|
1642
|
-
function
|
|
1643
|
-
function
|
|
1644
|
-
function
|
|
1645
|
-
function
|
|
1646
|
-
function
|
|
1647
|
-
function
|
|
1648
|
-
function
|
|
1649
|
-
q.Hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});
|
|
1650
|
-
q.Cj=function(){var a=this.u;if(a.g){a=a.g;
|
|
1651
|
-
q.Gk=function(a){var b=this.u;b.g?(0>a?(Za("Field of view should be greater than 0"),a=0):100<a&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.i=a,
|
|
1652
|
-
function
|
|
1653
|
-
["
|
|
1654
|
-
["
|
|
1655
|
-
["
|
|
1656
|
-
["
|
|
1657
|
-
["
|
|
1658
|
-
["
|
|
1659
|
-
["
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
["
|
|
1663
|
-
"
|
|
1664
|
-
|
|
1665
|
-
a.Pa("
|
|
1644
|
+
function JF(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}}
|
|
1645
|
+
function fG(a){return P(function(b){return a.A&&0!=a.A.readyState&&!a.G.Ra()&&a.g.enableFullscreenOnRotation&&a.Nd()?screen.orientation.type.includes("landscape")&&!a.kd()?G(b,VF(a),0):screen.orientation.type.includes("portrait")&&a.kd()?G(b,WF(a),0):b.B(0):b.return()})}
|
|
1646
|
+
function ZF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),CF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.l.style.cursor="",a.Ta=!0,a.N.stop(),a.vc()||(DF(a),CF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function gG(a){return window.matchMedia("hover: hover").matches?a.ab.some(function(b){return b.matches(":hover")}):!1}
|
|
1647
|
+
function CF(a){var b=a.j?a.j.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Ta||d||gG(a)?(DF(a),a.h.setAttribute("shown","true"),a.ha.stop()):a.ha.X(a.g.fadeDelay)}function $F(a){a.S&&!a.Kb()&&(a.yd()?a.N.Sa():a.g.singleClickForPlayAndPause&&eG(a))}function eG(a){a.j&&a.j.isLinear()?GE(a):HE(a)}
|
|
1648
|
+
function HF(a){var b=a.G.Ra();a.dispatchEvent(new T("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.vc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function dG(a,b){a.m.changeTo(b);a.vc()&&DF(a)}
|
|
1649
|
+
function DF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"))}
|
|
1650
|
+
function cG(a,b){a.ia.add(b.key);var c=a.yd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),CF(a),a.i.s(window,"mousedown",function(){a.i.Ma(window,"mousedown")}));"Escape"==b.key&&a.N.Sa();c&&a.ia.has("Tab")&&hG(a,b)}
|
|
1651
|
+
function hG(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
|
|
1652
|
+
q.Hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});ZF(this,a)};q.Jj=function(){this.I||this.P.Sa()};q.If=function(){return this.u.If()};q.Kb=function(){return this.u.Kb()};
|
|
1653
|
+
q.Cj=function(){var a=this.u;if(a.g){a=a.g;eF(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Za("Not playing VR content"),a=null;return a};q.Bj=function(){var a=this.u;a.g?a=a.g.i:(Za("Not playing VR content"),a=null);return a};
|
|
1654
|
+
q.Gk=function(a){var b=this.u;b.g?(0>a?(Za("Field of view should be greater than 0"),a=0):100<a&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.i=a,kF(b,!1)):Za("Not playing VR content")};q.xd=function(){this.u.xd()};q.rg=function(a){this.u.rg(a)};q.pg=function(a){this.u.pg(a)};q.qg=function(a){this.u.qg(a)};
|
|
1655
|
+
function EF(){var a=new kd("en");a.Pa("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
|
|
1656
|
+
["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],
|
|
1657
|
+
["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],
|
|
1658
|
+
["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],
|
|
1659
|
+
["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["QUALITY","\u0627\u0644\u062c\u0648\u062f\u0629"],["RECENTER_VR","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0648\u0633\u064a\u0637"],
|
|
1660
|
+
["REPLAY","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
|
|
1661
|
+
["STATISTICS","\u0627\u0644\u0625\u062d\u0635\u0627\u0621\u0627\u062a"],["SUBTITLE_FORCED","\u0639\u0631\u0636 \u0625\u062c\u0628\u0627\u0631\u064a"],["SURROUND","\u0635\u0648\u062a \u0645\u062d\u064a\u0637\u064a"],["TOGGLE_STEREOSCOPIC","\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u062c\u0633\u0651\u0645 \u0623\u0648 \u062a\u0641\u0639\u064a\u0644\u0647"],["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],
|
|
1662
|
+
["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.Pa("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_STATISTICS","Anzeigenstatistiken"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CHAPTERS","Kapitel"],["DOWNLOAD_VIDEO_FRAME",
|
|
1663
|
+
"Videoframe speichern"],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild im Bild aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild im Bild beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE",
|
|
1664
|
+
"Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["QUALITY","Qualit\u00e4t"],["RECENTER_VR","Zentrieren"],["REPLAY","Noch einmal wiedergeben"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["SUBTITLE_FORCED","Erzwungen"],["SURROUND","Surround"],
|
|
1665
|
+
["TOGGLE_STEREOSCOPIC","Einstellung \u201estereoskopisch\u201c ein\u2011/ausschalten"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));a.Pa("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS",
|
|
1666
|
+
"Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE",
|
|
1667
|
+
"Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],
|
|
1668
|
+
["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Pa("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE",
|
|
1669
|
+
"Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],
|
|
1670
|
+
["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.Pa("es",
|
|
1671
|
+
new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],
|
|
1666
1672
|
["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],
|
|
1667
|
-
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Recentrar"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],
|
|
1668
|
-
"Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["
|
|
1669
|
-
"Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS",
|
|
1670
|
-
["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["
|
|
1671
|
-
"Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce
|
|
1672
|
-
["DOWNLOAD_VIDEO_FRAME","Enregistrer l'image vid\u00e9o"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
|
|
1673
|
-
["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE",
|
|
1674
|
-
"Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","St\u00e9r\u00e9oscopique ON/OFF"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE",
|
|
1675
|
-
["
|
|
1676
|
-
|
|
1677
|
-
["
|
|
1678
|
-
["
|
|
1679
|
-
["
|
|
1680
|
-
["
|
|
1681
|
-
"\
|
|
1682
|
-
|
|
1683
|
-
["
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
["
|
|
1688
|
-
["
|
|
1689
|
-
["SEEK","
|
|
1690
|
-
["AD_PROGRESS","
|
|
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
|
-
|
|
1673
|
+
["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Recentrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],
|
|
1674
|
+
["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME",
|
|
1675
|
+
"Guardar fotograma"],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS",
|
|
1676
|
+
"M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Recentrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],
|
|
1677
|
+
["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Pa("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_STATISTICS","Statistiques de l'annonce"],
|
|
1678
|
+
["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","Enregistrer l'image vid\u00e9o"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],
|
|
1679
|
+
["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE",
|
|
1680
|
+
"Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","Rejouer"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","St\u00e9r\u00e9oscopique ON/OFF"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE",
|
|
1681
|
+
"R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.Pa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],
|
|
1682
|
+
["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],
|
|
1683
|
+
["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["QUALITY","Qualit\u00e0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC",
|
|
1684
|
+
"Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Pa("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_STATISTICS","\u5e83\u544a\u306e\u7d71\u8a08\u60c5\u5831"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],
|
|
1685
|
+
["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CHAPTERS","\u7ae0"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],
|
|
1686
|
+
["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],
|
|
1687
|
+
["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["QUALITY","\u54c1\u8cea"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],
|
|
1688
|
+
["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["SUBTITLE_FORCED","\u5f37\u5236"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Pa("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],
|
|
1689
|
+
["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\uad11\uace0 \ud1b5\uacc4"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CHAPTERS","\uc7a5"],["DOWNLOAD_VIDEO_FRAME","\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \uc800\uc7a5"],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],
|
|
1690
|
+
["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE",
|
|
1691
|
+
"\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["QUALITY","\ud488\uc9c8"],["RECENTER_VR","\uc911\uc2ec \uc7ac\uc124\uc815"],["REPLAY","\ub2e4\uc2dc\ubcf4\uae30"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD",
|
|
1692
|
+
"\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Pa("nl",new Map([["AD_DURATION",
|
|
1693
|
+
"Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE",
|
|
1694
|
+
"De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],
|
|
1695
|
+
["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));
|
|
1696
|
+
a.Pa("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["CHAPTERS","Rozdzia\u0142y"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 wideo"],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
|
|
1697
|
+
["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE",
|
|
1698
|
+
"Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["QUALITY","Jako\u015b\u0107"],["RECENTER_VR","Wycentruj"],["REPLAY","Odtw\u00f3rz od nowa"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],
|
|
1699
|
+
["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz widok stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.Pa("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\u00edsticas de an\u00fancios"],
|
|
1700
|
+
["AD_TIME","An\u00fancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Salvar quadro de v\u00eddeo"],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE",
|
|
1701
|
+
"Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["QUALITY","Qualidade"],
|
|
1702
|
+
["RECENTER_VR","Recentralizar"],["REPLAY","Replay"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["STATISTICS","Estat\u00edsticas"],["SUBTITLE_FORCED","For\u00e7ado"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));
|
|
1703
|
+
a.Pa("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AIRPLAY","AirPlay"],
|
|
1704
|
+
["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],["DOWNLOAD_VIDEO_FRAME","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
|
|
1705
|
+
["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
|
|
1706
|
+
["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
|
|
1707
|
+
"\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
|
|
1708
|
+
"\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
|
|
1709
|
+
["QUALITY","\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e"],["RECENTER_VR","\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e"],["REPLAY","\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],
|
|
1710
|
+
["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],["STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430"],["SUBTITLE_FORCED","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e"],
|
|
1711
|
+
["SURROUND","\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0439 \u0437\u0432\u0443\u043a"],["TOGGLE_STEREOSCOPIC","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u0440\u0435\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c"],["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],
|
|
1712
|
+
["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Pa("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],["AD_STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_TIME",
|
|
1713
|
+
"\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CHAPTERS","\u0e1a\u0e17"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],["ENTER_LOOP_MODE",
|
|
1714
|
+
"\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],
|
|
1715
|
+
["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],
|
|
1716
|
+
["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
|
|
1717
|
+
["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],
|
|
1718
|
+
["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34"],["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],["SURROUND","\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e23\u0e32\u0e27\u0e14\u0e4c"],["TOGGLE_STEREOSCOPIC","\u0e40\u0e1b\u0e34\u0e14/\u0e1b\u0e34\u0e14\u0e1f\u0e35\u0e40\u0e08\u0e2d\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e21\u0e34\u0e15\u0e34"],
|
|
1719
|
+
["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.Pa("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY",
|
|
1720
|
+
"AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CHAPTERS","B\u00f6l\u00fcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],
|
|
1721
|
+
["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["QUALITY","Kalite"],["RECENTER_VR",
|
|
1722
|
+
"Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["STATISTICS","\u0130statistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoskopik modu a\u00e7/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.Pa("zh",new Map([["AD_DURATION",
|
|
1723
|
+
"\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5e7f\u544a\u7edf\u8ba1\u4fe1\u606f"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],["CHAPTERS","\u7ae0\u8282"],["DOWNLOAD_VIDEO_FRAME","\u4fdd\u5b58\u89c6\u9891\u5e27"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE",
|
|
1724
|
+
"\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES",
|
|
1725
|
+
"\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["QUALITY","\u753b\u8d28"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u653e"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE",
|
|
1726
|
+
"\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7edf\u8ba1\u4fe1\u606f"],["SUBTITLE_FORCED","\u5df2\u5f3a\u5236\u663e\u793a"],["SURROUND","\u73af\u7ed5\u58f0"],["TOGGLE_STEREOSCOPIC","\u5207\u6362\u7acb\u4f53\u58f0"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Pa("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
|
|
1727
|
+
["AD_STATISTICS","\u5ee3\u544a\u7d71\u8a08\u8cc7\u6599"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CHAPTERS","\u7ae0\u7bc0"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],
|
|
1728
|
+
["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],
|
|
1729
|
+
["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED",
|
|
1730
|
+
"\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.rh(navigator.languages||[]);return a}S("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.qg;Z.prototype.incrementPitch=Z.prototype.pg;Z.prototype.incrementYaw=Z.prototype.rg;
|
|
1731
|
+
Z.prototype.toggleStereoscopicMode=Z.prototype.xd;Z.prototype.setVRFieldOfView=Z.prototype.Gk;Z.prototype.getVRFieldOfView=Z.prototype.Bj;Z.prototype.getVRNorth=Z.prototype.Cj;Z.prototype.isPlayingVR=Z.prototype.Kb;Z.prototype.canPlayVR=Z.prototype.If;Z.prototype.hideUI=Z.prototype.Jj;Z.prototype.showUI=Z.prototype.Hk;Z.prototype.isOpaque=Z.prototype.vc;Z.prototype.hideAdUI=Z.prototype.Jh;Z.prototype.showAdUI=Z.prototype.si;Z.prototype.togglePiP=Z.prototype.wd;Z.prototype.isPiPEnabled=Z.prototype.Ie;
|
|
1732
|
+
Z.prototype.isPiPAllowed=Z.prototype.He;Z.prototype.toggleFullScreen=Z.prototype.kf;Z.prototype.isFullScreenEnabled=Z.prototype.kd;Z.prototype.isFullScreenSupported=Z.prototype.Nd;Z.prototype.hideSettingsMenus=Z.prototype.Kc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.yd;Z.prototype.setLastTouchEventTime=Z.prototype.mi;Z.prototype.getDisplayTime=Z.prototype.jg;Z.prototype.isCastAllowed=Z.prototype.Kj;Z.prototype.setSeeking=Z.prototype.Yg;Z.prototype.isSeeking=Z.prototype.Pj;
|
|
1717
1733
|
Z.prototype.getConfig=Z.prototype.bj;Z.prototype.getClientSideAdContainer=Z.prototype.aj;Z.prototype.getServerSideAdContainer=Z.prototype.vj;Z.prototype.getControlsContainer=Z.prototype.dj;Z.prototype.getLocalPlayer=Z.prototype.kj;Z.prototype.getPlayer=Z.prototype.hd;Z.prototype.getLocalVideo=Z.prototype.lj;Z.prototype.getVideo=Z.prototype.uc;Z.prototype.getVideoContainer=Z.prototype.Ej;Z.prototype.getLocalization=Z.prototype.mj;Z.prototype.getCastProxy=Z.prototype.$i;Z.prototype.getAd=Z.prototype.getAd;
|
|
1718
|
-
Z.prototype.setEnabledNativeControls=Z.prototype.ki;Z.prototype.setEnabledShakaControls=Z.prototype.Ug;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Sj;Z.prototype.allowCast=Z.prototype.Pi;Z.registerSeekBar=function(a){
|
|
1719
|
-
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);
|
|
1720
|
-
d.stopPropagation()});this.eventManager.s(this.g,"click",function(){
|
|
1721
|
-
function
|
|
1722
|
-
S("shaka.ui.OverflowMenu",
|
|
1734
|
+
Z.prototype.setEnabledNativeControls=Z.prototype.ki;Z.prototype.setEnabledShakaControls=Z.prototype.Ug;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Sj;Z.prototype.allowCast=Z.prototype.Pi;Z.registerSeekBar=function(a){bG=a};Z.registerElement=KF;Z.prototype.destroy=Z.prototype.destroy;var LF=new Map,bG=new YE;function iG(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Jn();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
|
|
1735
|
+
this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);jG(this);this.eventManager.s(this.localization,"locale-updated",function(){kG(c)});this.eventManager.s(this.localization,"locale-changed",function(){kG(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){wE(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.mi(Date.now());
|
|
1736
|
+
d.stopPropagation()});this.eventManager.s(this.g,"click",function(){lG(c)});kG(this);this.ad&&this.ad.isLinear()&&wE(this.g,!1)}oa(iG,rE);iG.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function mG(a,b){nG.set(a,b)}
|
|
1737
|
+
function jG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,nG.get(c)?(c=nG.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function lG(a){if(a.controls.yd())a.controls.Kc();else{wE(a.h,!0);CF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function kG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
|
|
1738
|
+
S("shaka.ui.OverflowMenu",iG);iG.registerElement=mG;function oG(){}oG.prototype.create=function(a,b){return new iG(a,b)};KF("overflow_menu",new oG);var nG=new Map;function pG(a,b){function c(e){return d.j[e]}rE.call(this,a,b);var d=this;this.h=Jn();this.h.classList.add("shaka-ad-statistics-button");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="insert_chart_outlined";this.h.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);
|
|
1723
1739
|
this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.C=[];this.j=this.adManager.getStats();this.o={};this.A={loadTimes:function(e){var f=0;e=t(d.j[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);return f},averageLoadTime:c,started:c,playedCompletely:c,skipped:c,errors:c};this.l=new Wb(function(){d.j=
|
|
1724
|
-
d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});
|
|
1725
|
-
this.eventManager.s(this.player,"loading",function(){
|
|
1726
|
-
function
|
|
1727
|
-
|
|
1728
|
-
this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);
|
|
1729
|
-
c.player.Ic()==Rp;
|
|
1730
|
-
|
|
1731
|
-
q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=
|
|
1740
|
+
d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});qG(this);rG(this);this.eventManager.s(this.localization,"locale-updated",function(){qG(d)});this.eventManager.s(this.localization,"locale-changed",function(){qG(d)});this.eventManager.s(this.h,"click",function(){wE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.Aa(.1),wE(d.g,!0)):(d.i.textContent="insert_chart_outlined",d.l.stop(),wE(d.g,!1));qG(d)});
|
|
1741
|
+
this.eventManager.s(this.player,"loading",function(){wE(d.h,!1)});this.eventManager.s(this.adManager,"ad-started",function(){wE(d.h,!0)})}oa(pG,rE);function qG(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1742
|
+
function rG(a){for(var b=t(a.controls.g.adStatisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.j){var d=a.g,e=d.appendChild,f=a,g=W("div"),h=W("label");h.textContent=c+":";g.appendChild(h);h=W("span");h.textContent=f.A[c](c);g.appendChild(h);f.o[c]=h;e.call(d,g);a.C.push(c)}else Za("Unrecognized ad statistic element:",c)}pG.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.AdStatisticsButton",pG);function sG(){}
|
|
1743
|
+
sG.prototype.create=function(a,b){return new pG(a,b)};mG("ad_statistics",new sG);DE("ad_statistics",new sG);function tG(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);
|
|
1744
|
+
this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uG(this);vG(this);this.eventManager.s(this.localization,"locale-updated",function(){uG(c)});this.eventManager.s(this.localization,"locale-changed",function(){uG(c)});this.eventManager.s(this.g,"click",function(){c.controls.uc().webkitShowPlaybackTargetPicker()});a=this.controls.uc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
|
|
1745
|
+
c.player.Ic()==Rp;wE(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){vG(c)})}oa(tG,rE);function vG(a){var b=a.controls.uc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function uG(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}S("shaka.ui.AirPlayButton",tG);function wG(){}wG.prototype.create=function(a,b){return new tG(a,b)};mG("airplay",new wG);
|
|
1746
|
+
KF("airplay",new wG);function xG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=yG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.xg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Zg(b);b.ui=this;c.ui=this}q=xG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;H(b)})};
|
|
1747
|
+
q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Om(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));Om(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.cj=function(){return this.g};
|
|
1732
1748
|
q.Dk=function(a){this.g.Ug(a)};
|
|
1733
|
-
function
|
|
1749
|
+
function yG(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic save_video_frame".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started playedCompletely skipped errors".split(" "),
|
|
1734
1750
|
contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
|
|
1735
|
-
level:"rgb(255, 255, 255)"},trackLabelFormat:
|
|
1751
|
+
level:"rgb(255, 255, 255)"},trackLabelFormat:zG,textTrackLabelFormat:zG,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",
|
|
1736
1752
|
setupMediaSession:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.xg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
|
|
1737
|
-
function
|
|
1738
|
-
g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=
|
|
1739
|
-
|
|
1740
|
-
function
|
|
1753
|
+
function AG(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:wA();if(!ap())return BG("shaka-ui-load-failed",CG),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.B(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
|
|
1754
|
+
g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DG(h,c,d),m=l.Ph,n=l.Hi,EG(h,g,m,n));D.B(2);break}p=t(a);r=p.next();case 4:if(r.done){D.B(2);break}u=r.value;if(u.ui){D.B(5);break}v=null;w=t(b);for(y=w.next();!y.done;y=w.next())if(z=y.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));C=DG(u,c,d);A=C.Ph;B=C.Hi;ta(D,7);return G(D,EG(u,v,A,B),9);case 9:wa(D,5);break;case 7:return xa(D),
|
|
1755
|
+
BG("shaka-ui-load-failed",FG),D.return();case 5:r=p.next();D.B(4);break;case 2:BG("shaka-ui-loaded"),H(D)}})}function BG(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
|
|
1756
|
+
function EG(a,b,c,d){var e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:e=new Y;f=new xG(e,a,b,d);e.mh(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
|
|
1741
1757
|
b.controls&&f.g.ki(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");m=t(b.querySelectorAll("source"));n=m.next();case 2:if(n.done){r.B(4);break}p=n.value;ta(r,5);return G(r,f.g.hd().load(p.getAttribute("src")),7);case 7:r.B(4);break;case 5:xa(r);case 3:n=m.next();r.B(2);break;case 4:return G(r,e.Yb(b),0)}})}
|
|
1742
|
-
function
|
|
1743
|
-
|
|
1744
|
-
"complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);
|
|
1745
|
-
1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=
|
|
1746
|
-
y=a.next()){w.Xb=y.value;y=w.Xb.language;var z=w.Xb.forced,C=f.resolve("SUBTITLE_FORCED"),A=n(w.Xb),B=w.Xb.label,D=w.Xb.channelsCount,E=w.Xb.audioCodec,F=m(y,A,B,D,E);if(!v.has(F)){v.add(F);var L=Jn();L.addEventListener("click",function(K){return function(){c(K.Xb)}}(w));var J=W("span");L.appendChild(J);J.textContent=
|
|
1747
|
-
A:(Za("Track #"+w.Xb.id+" does not have a role, but the UI is configured to only show role."),J.textContent="?");z&&(J.textContent+=" ("+C+")");break;case 2:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A&&(J.textContent+=": "+A);z&&(J.textContent+=" ("+C+")");break;case 3:B?J.textContent=B:(Za("Track #"+w.Xb.id+" does not have a label, but the UI is configured to only show labels."),J.textContent="?")}d&&F==r&&(L.appendChild(
|
|
1748
|
-
e.textContent=J.textContent);b.appendChild(L)}}}function
|
|
1749
|
-
function
|
|
1750
|
-
function
|
|
1751
|
-
W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function
|
|
1752
|
-
"variantchanged",function(){
|
|
1753
|
-
function
|
|
1754
|
-
a.menu.getElementsByTagName("button").length)}function
|
|
1755
|
-
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);
|
|
1756
|
-
function
|
|
1757
|
-
function
|
|
1758
|
-
function(){
|
|
1759
|
-
function
|
|
1760
|
-
f=c.next()){e.Jf=f.value;f=Jn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Jf.title;f.appendChild(g);a.eventManager.s(f,"click",function(h){return function(){a.video.currentTime=h.Jf.startTime}}(e));a.menu.appendChild(f)}
|
|
1761
|
-
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(
|
|
1762
|
-
c.controls.kf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.
|
|
1763
|
-
S("shaka.ui.FullscreenButton",
|
|
1764
|
-
a.appendChild(this.j);this.g.appendChild(a);
|
|
1765
|
-
|
|
1766
|
-
this.eventManager.s(this.video,"volumechange",function(){
|
|
1767
|
-
function
|
|
1768
|
-
W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);
|
|
1769
|
-
function(){
|
|
1770
|
-
function
|
|
1771
|
-
function
|
|
1772
|
-
function
|
|
1773
|
-
c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));
|
|
1774
|
-
function
|
|
1775
|
-
"x")}function
|
|
1776
|
-
e)),g=3600<=g,1<=e||d?(
|
|
1777
|
-
function(){
|
|
1778
|
-
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);
|
|
1779
|
-
function
|
|
1780
|
-
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;
|
|
1781
|
-
"connect",function(){
|
|
1782
|
-
function
|
|
1783
|
-
case 9:wa(d,8);break;case 7:xa(d);case 8:return ta(d,11),G(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;wa(d,0);break;case 11:xa(d),b(!0),H(d)}})}function
|
|
1784
|
-
"trackschanged",function(){
|
|
1785
|
-
function
|
|
1758
|
+
function DG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{Ph:d,Hi:b}}S("shaka.ui.Overlay",xG);xG.prototype.setEnabled=xG.prototype.Dk;
|
|
1759
|
+
xG.prototype.getControls=xG.prototype.cj;xG.prototype.configure=xG.prototype.configure;xG.prototype.getConfiguration=xG.prototype.getConfiguration;xG.prototype.isMobile=xG.prototype.xg;xG.prototype.destroy=xG.prototype.destroy;var zG=0;xG.TrackLabelFormat={LANGUAGE:zG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CG=0,FG=1;xG.FailReasonCode={NO_BROWSER_SUPPORT:CG,PLAYER_FAILED_TO_LOAD:FG};
|
|
1760
|
+
"complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);AG();H(a)}):window.addEventListener("load",AG);function GG(a,b,c,d,e,f,g,h){function k(K){var I="";K=K.toLowerCase();K.startsWith("mp4a")?I="AAC":"ec-3"===K||"ac-3"===K?I="Dolby":"opus"===K?I="Opus":"flac"===K&&(I="fLaC");return I?" "+I:I}function l(K){var I="";5<=K&&(I=" "+f.resolve("SURROUND"));return I}function m(K,I,N,M,O){I=[K,I];h&&null!=M&&I.push(M);p(K)&&O&&I.push(O);N&&3==g&&I.push(N);return I.join(": ")}function n(K){return"variant"==K.type?K.audioRoles?K.audioRoles.join(", "):void 0:K.roles.join(", ")}function p(K){return u.has(K)&&
|
|
1761
|
+
1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=sE(b);Kn(b);b.appendChild(v);v=new Map;w=t(a);for(var y=w.next();!y.done;y=w.next())y=y.value,v.has(y.language)||v.set(y.language,new Set),v.get(y.language).add(n(y));v=new Set;r=r?m(r.language,n(r),r.label,r.channelsCount,r.audioCodec):"";a=t(a);y=a.next();for(w={};!y.done;w={Xb:void 0},
|
|
1762
|
+
y=a.next()){w.Xb=y.value;y=w.Xb.language;var z=w.Xb.forced,C=f.resolve("SUBTITLE_FORCED"),A=n(w.Xb),B=w.Xb.label,D=w.Xb.channelsCount,E=w.Xb.audioCodec,F=m(y,A,B,D,E);if(!v.has(F)){v.add(F);var L=Jn();L.addEventListener("click",function(K){return function(){c(K.Xb)}}(w));var J=W("span");L.appendChild(J);J.textContent=HG(y,f);switch(g){case zG:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));z&&(J.textContent+=" ("+C+")");break;case 1:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A?J.textContent=
|
|
1763
|
+
A:(Za("Track #"+w.Xb.id+" does not have a role, but the UI is configured to only show role."),J.textContent="?");z&&(J.textContent+=" ("+C+")");break;case 2:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A&&(J.textContent+=": "+A);z&&(J.textContent+=" ("+C+")");break;case 3:B?J.textContent=B:(Za("Track #"+w.Xb.id+" does not have a label, but the UI is configured to only show labels."),J.textContent="?")}d&&F==r&&(L.appendChild(vE()),J.classList.add("shaka-chosen-item"),L.ariaSelected="true",
|
|
1764
|
+
e.textContent=J.textContent);b.appendChild(L)}}}function HG(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=gd(a);return a in nE?nE[a].D:c in nE?nE[c].D+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function IG(a,b,c){rE.call(this,a,b);var d=this;JG(this,c);KG(this);LG(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new T("submenuopen")),wE(d.menu,!0),uE(d.menu)):wE(d.menu,!1)})}oa(IG,rE);
|
|
1765
|
+
function JG(a,b){a.button=Jn();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
|
|
1766
|
+
function KG(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Jn();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.Kc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
|
|
1767
|
+
W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function LG(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}wE(a.parent,!0);lb(a.parent.childNodes,b)&&mb(a.parent.childNodes,b)[0].focus();CF(a.controls)}))}S("shaka.ui.SettingsMenu",IG);function MG(a,b){IG.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){NG(c)});this.eventManager.s(this.localization,"locale-changed",function(){NG(c)});this.eventManager.s(this.player,"loading",function(){OG(c)});this.eventManager.s(this.player,"trackschanged",function(){OG(c)});this.eventManager.s(this.player,
|
|
1768
|
+
"variantchanged",function(){PG(c)});NG(this);PG(this)}oa(MG,IG);
|
|
1769
|
+
function PG(a){var b=a.player.Ib();GG(b,a.menu,function(c){var d=void 0;c.channelsCount&&a.controls.g.showAudioChannelCountVariants&&(d=c.channelsCount);var e=void 0;c.audioCodec&&(e=c.audioCodec);a.player.Pg(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);uE(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);wE(a.button,2<
|
|
1770
|
+
a.menu.getElementsByTagName("button").length)}function OG(a){var b=0<a.player.Ib().length;wE(a.button,b);PG(a)}function NG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}S("shaka.ui.AudioLanguageSelection",MG);function QG(){}QG.prototype.create=function(a,b){return new MG(a,b)};mG("language",new QG);KF("language",new QG);function RG(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.G;this.g=Jn();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1771
|
+
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);SG(this);TG(this);this.eventManager.s(this.localization,"locale-updated",function(){SG(c)});this.eventManager.s(this.localization,"locale-changed",function(){SG(c)});this.eventManager.s(this.g,"click",function(){UG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){TG(c)})}oa(RG,rE);
|
|
1772
|
+
function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.zi(),c.B(0);ta(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=xa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));H(c)})}function TG(a){var b=a.h.Hf()&&a.controls.sa,c=a.h.Ra();wE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");VG(a)}
|
|
1773
|
+
function VG(a){a.j.textContent=a.h.Ra()?a.h.Ze():a.localization.resolve("OFF")}function SG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");VG(a)}S("shaka.ui.CastButton",RG);function WG(){}WG.prototype.create=function(a,b){return new RG(a,b)};mG("cast",new WG);KF("cast",new WG);function XG(a,b){IG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.s(this.localization,"locale-updated",function(){YG(c);ZG(c)});this.eventManager.s(this.localization,"locale-changed",function(){YG(c);ZG(c)});this.eventManager.s(this.player,"unloading",function(){$G(c);c.h="und";c.g=[]});this.eventManager.s(this.player,"trackschanged",
|
|
1774
|
+
function(){ZG(c)});YG(this);ZG(this)}oa(XG,IG);function YG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function $G(a){var b=sE(a.menu);Kn(a.menu);a.menu.appendChild(b);wE(a.button,!1)}
|
|
1775
|
+
function ZG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.ig(c),!d.length);f=e.next());d.length||(c="und",d=a.player.ig(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)$G(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Jf:void 0},
|
|
1776
|
+
f=c.next()){e.Jf=f.value;f=Jn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Jf.title;f.appendChild(g);a.eventManager.s(f,"click",function(h){return function(){a.video.currentTime=h.Jf.startTime}}(e));a.menu.appendChild(f)}wE(a.button,!0);uE(a.menu)}}S("shaka.ui.ChapterSelection",XG);function aH(){}aH.prototype.create=function(a,b){return new XG(a,b)};mG("chapter",new aH);KF("chapter",new aH);function bH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);cH(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){cH(c)});this.eventManager.s(this.localization,"locale-changed",function(){cH(c)});
|
|
1777
|
+
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(bH,rE);function cH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}S("shaka.ui.FastForwardButton",bH);function dH(){}dH.prototype.create=function(a,b){return new bH(a,b)};KF("fast_forward",new dH);function eH(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Jn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");fH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);gH(this);this.eventManager.s(this.localization,"locale-updated",function(){gH(c)});this.eventManager.s(this.localization,"locale-changed",function(){gH(c)});this.eventManager.s(this.g,"click",function(){return P(function(d){return G(d,
|
|
1778
|
+
c.controls.kf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.kd()?"fullscreen_exit":"fullscreen";gH(c)});this.eventManager.s(this.h,"loadedmetadata",function(){fH(c)});this.eventManager.s(this.h,"loadeddata",function(){fH(c)})}oa(eH,rE);function fH(a){a.controls.Nd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function gH(a){a.g.ariaLabel=a.localization.resolve(a.controls.kd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
|
|
1779
|
+
S("shaka.ui.FullscreenButton",eH);function hH(){}hH.prototype.create=function(a,b){return new eH(a,b)};KF("fullscreen",new hH);function iH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1780
|
+
a.appendChild(this.j);this.g.appendChild(a);jH(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){jH(c)});this.eventManager.s(this.localization,"locale-changed",function(){jH(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.Aa(1)});this.m=this.video.loop;this.h=new Wb(function(){c.m!=c.video.loop&&(jH(c),c.m=c.video.loop)});this.h.Aa(1)}oa(iH,rE);
|
|
1781
|
+
iH.prototype.release=function(){this.h.stop();this.h=null;rE.prototype.release.call(this)};function jH(a){a.l.textContent=a.localization.resolve("LOOP");a.j.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}S("shaka.ui.LoopButton",iH);function kH(){}kH.prototype.create=function(a,b){return new iH(a,b)};mG("loop",new kH);KF("loop",new kH);DE("loop",new kH);function lH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);mH(this);nH(this);this.eventManager.s(this.localization,"locale-updated",function(){mH(c)});this.eventManager.s(this.localization,"locale-changed",function(){mH(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
|
|
1782
|
+
this.eventManager.s(this.video,"volumechange",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-muted",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;mH(c);nH(c)})}oa(lH,rE);function mH(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
|
|
1783
|
+
function nH(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}S("shaka.ui.MuteButton",lH);function oH(){}oH.prototype.create=function(a,b){return new lH(a,b)};KF("mute",new oH);function pH(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Jn();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
|
|
1784
|
+
W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);qH(this);this.parent.appendChild(this.g);this.controls.He()||wE(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){qH(c)});this.eventManager.s(this.localization,"locale-changed",function(){qH(c)});this.eventManager.s(this.g,"click",function(){c.controls.wd()});this.eventManager.s(this.l,"enterpictureinpicture",function(){rH(c)});this.eventManager.s(this.l,"leavepictureinpicture",
|
|
1785
|
+
function(){sH(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){tH(c)});this.eventManager.s(this.player,"trackschanged",function(){tH(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){rH(c);c.eventManager.na(d.window,"pagehide",function(){sH(c)})})}oa(pH,rE);
|
|
1786
|
+
function rH(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function sH(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
|
|
1787
|
+
function qH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ie();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function tH(a){P(function(b){if(!a.controls.He())return wE(a.g,!1),a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0);if(!a.player||!a.player.Mc())return wE(a.g,!0),b.B(0);wE(a.g,!1);return a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0)})}S("shaka.ui.PipButton",pH);
|
|
1788
|
+
function uH(){}uH.prototype.create=function(a,b){return new pH(a,b)};mG("picture_in_picture",new uH);KF("picture_in_picture",new uH);DE("picture_in_picture",new uH);function vH(a,b){IG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){wH(c)});this.eventManager.s(this.localization,"locale-changed",function(){wH(c)});this.eventManager.s(this.player,"loaded",function(){xH(c,c.player.Va())});this.eventManager.s(this.player,"ratechange",function(){xH(c,
|
|
1789
|
+
c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));wH(this);yH(this);xH(this,this.player.Va())}oa(vH,IG);function wH(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
|
|
1790
|
+
function xH(a,b){var c=tE(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(vE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
|
|
1791
|
+
"x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Ye:void 0},c=b.next()){d.Ye=c.value;c=Jn();var e=W("span");e.textContent=d.Ye;c.appendChild(e);a.eventManager.s(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Ye);a.video.defaultPlaybackRate=a.g.get(f.Ye)}}(d));a.menu.appendChild(c)}uE(a.menu)}S("shaka.ui.PlaybackRateSelection",vH);function HH(){}HH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new HH);KF("playback_rate",new HH);function IH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.V()&&(c.video.currentTime=c.player.Fa().end)});this.eventManager.s(this.player,"loading",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.jg(),f=c.player.Fa(),g=f.end-f.start;isFinite(g)?c.player.V()?(e=Math.max(0,Math.floor(f.end-
|
|
1792
|
+
e)),g=3600<=g,1<=e||d?(JH(c,"- "+xE(e,g)),c.g.disabled=!1):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=xE(Math.max(0,e-f.start),d),g&&(e+=" / "+xE(g,d)),JH(c,e),c.g.disabled=!0):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.V()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.s(this.adManager,"ad-started",function(){wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",
|
|
1793
|
+
function(){wE(c.g,!0)})}oa(IH,rE);function JH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}S("shaka.ui.PresentationTimeTracker",IH);function KH(){}KH.prototype.create=function(a,b){return new IH(a,b)};KF("time_and_duration",new KH);function LH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
|
|
1794
|
+
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);MH(this);this.eventManager.s(this.localization,"locale-updated",function(){MH(c)});this.eventManager.s(this.localization,"locale-changed",function(){MH(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?tF(d.g):Za("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){wE(c.g,c.controls.Kb())});wE(this.g,this.controls.Kb())}oa(LH,rE);
|
|
1795
|
+
function MH(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}S("shaka.ui.RecenterVRButton",LH);function NH(){}NH.prototype.create=function(a,b){return new LH(a,b)};mG("recenter_vr",new NH);KF("recenter_vr",new NH);function OH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");a="cast";(b=pc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1796
|
+
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;PH(this);wE(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.s(this.localization,"locale-updated",function(){PH(c)}),this.eventManager.s(this.localization,"locale-changed",function(){PH(c)}),this.eventManager.s(this.controls,"caststatuschanged",function(){QH(c)}),this.eventManager.s(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.s(this.video.remote,
|
|
1797
|
+
"connect",function(){QH(c)}),this.eventManager.s(this.video.remote,"connecting",function(){QH(c)}),this.eventManager.s(this.video.remote,"disconnect",function(){QH(c)}),this.eventManager.s(this.player,"loaded",function(){QH(c)}),QH(this))}oa(OH,rE);OH.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});rE.prototype.release.call(this)};
|
|
1798
|
+
function QH(a){var b,c;P(function(d){switch(d.g){case 1:if(a.controls.G.Hf()&&a.controls.sa){wE(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.B(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?wE(a.g,a.player.Ic()==Rp&&e):wE(a.g,!1)};ta(d,7);if(-1==a.h){d.B(9);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
|
|
1799
|
+
case 9:wa(d,8);break;case 7:xa(d);case 8:return ta(d,11),G(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;wa(d,0);break;case 11:xa(d),b(!0),H(d)}})}function PH(a){var b=a.localization.resolve("CAST"),c=pc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}S("shaka.ui.RemoteButton",OH);function RH(){}RH.prototype.create=function(a,b){return new OH(a,b)};mG("remote",new RH);KF("remote",new RH);function SH(a,b){IG.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){TH(c)});this.eventManager.s(this.localization,"locale-changed",function(){TH(c)});this.eventManager.s(this.player,"loading",function(){UH(c)});this.eventManager.s(this.player,"variantchanged",function(){UH(c)});this.eventManager.s(this.player,
|
|
1800
|
+
"trackschanged",function(){UH(c)});this.eventManager.s(this.player,"abrstatuschanged",function(){UH(c)});UH(this)}oa(SH,IG);
|
|
1801
|
+
function UH(a){var b=[];a.player.Ic()!=Rp&&(b=a.player.Ib());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=a.player.Mc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth})==l}):
|
|
1786
1802
|
1<[].concat(x(new Set(b.map(function(k){return k.audioId})))).length?b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.videoBandwidth==k.videoBandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l}):b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.bandwidth==k.bandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l});a.player.Mc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
|
|
1787
|
-
b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=
|
|
1788
|
-
var h=W("span");h.textContent=!a.player.Mc()&&g.Bc.height&&g.Bc.width?
|
|
1789
|
-
a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(
|
|
1790
|
-
function
|
|
1791
|
-
function
|
|
1792
|
-
|
|
1793
|
-
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(
|
|
1794
|
-
a.appendChild(this.j);this.g.appendChild(a);
|
|
1795
|
-
"videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.s(this.controls.u,"vrstatuschanged",function(){
|
|
1796
|
-
this.eventManager.s(this.video,"pause",function(){
|
|
1797
|
-
|
|
1798
|
-
|
|
1803
|
+
b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=sE(a.menu);Kn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Bc:void 0},f=e.next()){g.Bc=f.value;f=Jn();f.classList.add("explicit-resolution");a.eventManager.s(f,"click",function(k){return function(){var l=k.Bc;a.player.configure({abr:{enabled:!1}});a.player.ef(l,a.controls.g.clearBufferOnQualityChange)}}(g));
|
|
1804
|
+
var h=W("span");h.textContent=!a.player.Mc()&&g.Bc.height&&g.Bc.width?VH(g.Bc,b):g.Bc.bandwidth?Math.round(g.Bc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Bc!=c||(f.ariaSelected="true",f.appendChild(vE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}e=Jn();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",function(){a.player.configure({abr:{enabled:!0}});UH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");
|
|
1805
|
+
a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(vE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);uE(a.menu);a.controls.dispatchEvent(new T("resolutionselectionupdated"));TH(a);wE(a.button,1<b.length)}
|
|
1806
|
+
function VH(a,b){var c=a.height||0,d=a.width||0,e=c;d/c>16/9&&(e=Math.round(9*d/16));c=e+"p";2160==e&&(c="4K");e=new Set;d=t(b);for(var f=d.next();!f.done;f=d.next())f=f.value,f.frameRate&&e.add(Math.round(f.frameRate));1<e.size&&(e=a.frameRate)&&(50<=e||20>=e)&&(c+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)c+=" (HDR)";"CH-STEREO"==a.videoLayout&&(c+=" (3D)");b.some(function(g){return g!=a&&g.height==a.height})&&(c+=" ("+Math.round((a.videoBandwidth||a.bandwidth)/1E3)+" kbits/s)");return c}
|
|
1807
|
+
function TH(a){var b=a.player.Mc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",SH);function WH(){}
|
|
1808
|
+
WH.prototype.create=function(a,b){return new SH(a,b)};mG("quality",new WH);KF("quality",new WH);function XH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);YH(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){YH(c)});this.eventManager.s(this.localization,"locale-changed",function(){YH(c)});
|
|
1809
|
+
this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(XH,rE);function YH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",XH);function ZH(){}ZH.prototype.create=function(a,b){return new XH(a,b)};KF("rewind",new ZH);function $H(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
|
|
1810
|
+
a.appendChild(this.j);this.g.appendChild(a);aI(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){aI(c)});this.eventManager.s(this.localization,"locale-changed",function(){aI(c)});this.eventManager.s(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.o;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download=
|
|
1811
|
+
"videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.s(this.controls.u,"vrstatuschanged",function(){bI(c)});this.eventManager.s(this.adManager,"ad-started",function(){bI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){bI(c)});this.eventManager.s(this.player,"unloading",function(){bI(c)});this.eventManager.s(this.player,"loaded",function(){bI(c)});this.eventManager.s(this.player,"loaded",function(){bI(c)});this.eventManager.s(this.video,"play",function(){bI(c)});
|
|
1812
|
+
this.eventManager.s(this.video,"pause",function(){bI(c)});this.eventManager.s(this.video,"seeking",function(){bI(c)});bI(this)}oa($H,rE);function bI(a){var b=!0;a.controls.Kb()&&(b=!1);if(a.player.drmInfo()||a.player.Mc())b=!1;a.ad&&(b=!1);wE(a.g,b)}function aI(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",$H);function cI(){}cI.prototype.create=function(a,b){return new $H(a,b)};
|
|
1813
|
+
mG("save_video_frame",new cI);DE("save_video_frame",new cI);function dI(a,b){FE.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}oa(dI,FE);dI.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
|
|
1814
|
+
dI.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};S("shaka.ui.SmallPlayButton",dI);function eI(){}eI.prototype.create=function(a,b){return new dI(a,b)};KF("play_pause",new eI);function fI(a,b){rE.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}oa(fI,rE);S("shaka.ui.Spacer",fI);function gI(){}gI.prototype.create=function(a,b){return new fI(a,b)};KF("spacer",new gI);function hI(a,b){function c(m){m=parseInt(l.g[m],10);return 1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){return xE(l.g[m],!1)+" (m)"}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)"}function g(m){return l.g[m].toFixed(2)+" (s)"}function h(m){return l.g[m]+" (frames)"}function k(m){return l.g[m]+" (px)"}rE.call(this,a,b);var l=this;this.i=Jn();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");
|
|
1799
1815
|
this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");
|
|
1800
1816
|
this.controls.h.appendChild(this.h);this.C=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();this.o={};this.A={width:k,height:k,completionPercent:function(m){return l.g[m]+" (%)"},bufferingTime:g,drmTimeSeconds:g,licenseTime:g,liveLatency:g,loadLatency:g,manifestTimeSeconds:g,estimatedBandwidth:f,streamBandwidth:f,maxSegmentDuration:e,pauseTime:e,playTime:e,corruptedFrames:h,decodedFrames:h,droppedFrames:h,stallsDetected:function(m){return l.g[m]+" (stalls)"},gapsJumped:d,manifestSizeBytes:c,
|
|
1801
|
-
bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Wb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.o[n];p.textContent=l.A[n](n);p&&p.parentElement&&
|
|
1802
|
-
function(){
|
|
1803
|
-
function
|
|
1804
|
-
function
|
|
1805
|
-
"loading",function(){
|
|
1806
|
-
function
|
|
1807
|
-
function
|
|
1808
|
-
a.button.setAttribute("shaka-status",a.currentSelection.textContent);
|
|
1809
|
-
function
|
|
1810
|
-
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);
|
|
1811
|
-
function
|
|
1812
|
-
this.eventManager.s(this.localization,"locale-changed",function(){return
|
|
1813
|
-
function
|
|
1817
|
+
bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Wb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.o[n];p.textContent=l.A[n](n);p&&p.parentElement&&wE(p.parentElement,!isNaN(l.g[n]))}});iI(this);jI(this);this.eventManager.s(this.localization,"locale-updated",function(){iI(l)});this.eventManager.s(this.localization,"locale-changed",
|
|
1818
|
+
function(){iI(l)});this.eventManager.s(this.i,"click",function(){wE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.Aa(.1),wE(l.h,!0)):(l.j.textContent="insert_chart_outlined",l.l.stop(),wE(l.h,!1));iI(l)})}oa(hI,rE);function iI(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
|
|
1819
|
+
function jI(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.o[c]=f;d=e;a.h.appendChild(d);a.C.push(c);wE(d.parentElement,!isNaN(a.g[c]))}else Za("Unrecognized statistic element:",c)}hI.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.StatisticsButton",hI);
|
|
1820
|
+
function kI(){}kI.prototype.create=function(a,b){return new hI(a,b)};mG("statistics",new kI);DE("statistics",new kI);function lI(a,b){IG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Oc()?this.button.ariaPressed="true":this.button.ariaPressed="false";mI(this);this.eventManager.s(this.localization,"locale-updated",function(){nI(c);oI(c)});this.eventManager.s(this.localization,"locale-changed",function(){nI(c);oI(c)});this.eventManager.s(this.player,
|
|
1821
|
+
"loading",function(){pI(c)});this.eventManager.s(this.player,"texttrackvisibility",function(){qI(c);oI(c)});this.eventManager.s(this.player,"textchanged",function(){oI(c)});this.eventManager.s(this.player,"trackschanged",function(){pI(c)});qI(this);nI(this);oI(this);pI(this)}oa(lI,IG);function mI(a){var b=Jn();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(vE());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
|
|
1822
|
+
function qI(a){a.player.Oc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"))}
|
|
1823
|
+
function oI(a){var b=a.player.tc();GG(b,a.menu,function(c){return rI(a,c)},a.player.Oc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Jn();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.hf(!1);oI(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Oc()||(b.ariaSelected="true",b.appendChild(vE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
|
|
1824
|
+
a.button.setAttribute("shaka-status",a.currentSelection.textContent);uE(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"))}function rI(a,b){return P(function(c){a.player.Rg(b);return G(c,a.player.hf(!0),0)})}
|
|
1825
|
+
function nI(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function pI(a){var b=0<a.player.tc().length;wE(a.button,b);oI(a)}S("shaka.ui.TextSelection",lI);function sI(){}sI.prototype.create=function(a,b){return new lI(a,b)};mG("captions",new sI);KF("captions",new sI);function tI(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
|
|
1826
|
+
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uI(this);this.eventManager.s(this.localization,"locale-updated",function(){uI(c)});this.eventManager.s(this.localization,"locale-changed",function(){uI(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.xd()});this.eventManager.s(d,"vrstatuschanged",function(){wE(c.g,c.controls.Kb())});wE(this.g,this.controls.Kb())}oa(tI,rE);
|
|
1827
|
+
function uI(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}S("shaka.ui.ToggleStereoscopicButton",tI);function vI(){}vI.prototype.create=function(a,b){return new tI(a,b)};mG("toggle_stereoscopic",new vI);KF("toggle_stereoscopic",new vI);function wI(a,b){ME.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.s(this.video,"volumechange",function(){return xI(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return yI(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return yI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return xI(c)});this.eventManager.s(this.localization,"locale-updated",function(){return zI(c)});
|
|
1828
|
+
this.eventManager.s(this.localization,"locale-changed",function(){return zI(c)});xI(this);zI(this);if(this.ad)this.onChange()}oa(wI,ME);wI.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function xI(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);AI(a)}function yI(a){var b=a.ad.getVolume();a.setValue(100*b);AI(a)}
|
|
1829
|
+
function AI(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function zI(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}S("shaka.ui.VolumeBar",wI);function BI(){}BI.prototype.create=function(a,b){return new wI(a,b)};KF("volume",new BI);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
|
|
1814
1830
|
|
|
1815
1831
|
//# sourceMappingURL=shaka-player.ui.map
|