shaka-player 4.3.14 → 4.3.15

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.
@@ -97,8 +97,8 @@ r.Cf=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a
97
97
  r.ka=function(a,b,c){a=Mb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new I("locale-updated"));return this};r.Ih=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};r.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new I("unknown-localization",a));return""};
98
98
  function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={ac:f.ac},h=g.next()){f.ac=h.value;e.add(f.ac);e.add(Sb(f.ac));h=nb(b.keys(),function(l){return function(m){return Rb(m,l.ac)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=nb(b.keys(),function(l){return function(m){return Sb(m)==l.ac}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
99
99
  c.reverse();a.i.clear();b=t(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new I("missing-localizations",d)))}function Zb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}G("shaka.ui.Localization",Wb);Wb.prototype.resolve=Wb.prototype.resolve;
100
- Wb.prototype.resolveDictionary=Wb.prototype.Ih;Wb.prototype.insert=Wb.prototype.ka;Wb.prototype.changeLocale=Wb.prototype.Cf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={Pi:"PICTURE_IN_PICTURE",Gi:"MUTE",Li:"ON",Wi:"REWIND",ti:"FAST_FORWARD",ei:"CAST",rj:"VOLUME",Ei:"MORE_SETTINGS",Qi:"PLAY",Oi:"PAUSE",ki:"ENTER_LOOP_MODE",Ai:"LOOP",Zh:"AUTO_QUALITY",lg:"SUBTITLE_FORCED",li:"ENTER_PICTURE_IN_PICTURE",wi:"FULL_SCREEN",Ki:"OFF",Ri:"PLAYBACK_RATE",$i:"SKIP_TO_LIVE",Vi:"RESOLUTION",Ui:"REPLAY",pi:"EXIT_PICTURE_IN_PICTURE",nj:"UNDETERMINED_LANGUAGE",Ti:"QUALITY",BACK:"BACK",oj:"UNMUTE",Xh:"AIRPLAY",Zi:"SKIP_AD",Ji:"NOT_APPLICABLE",pj:"UNRECOGNIZED_LANGUAGE",ni:"EXIT_FULL_SCREEN",
101
- zi:"LANGUAGE",Wh:"AD_TIME",AD_PROGRESS:"AD_PROGRESS",bj:"STATISTICS",Fi:"MULTIPLE_LANGUAGES",oi:"EXIT_LOOP_MODE",di:"CAPTIONS",Yi:"SEEK",Vh:"AD_DURATION",kg:"LIVE"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={$d:d.$d},e=a.next()){d.$d=e.value;e=b.findIndex(function(f){return function(g){return c(f.$d,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
100
+ Wb.prototype.resolveDictionary=Wb.prototype.Ih;Wb.prototype.insert=Wb.prototype.ka;Wb.prototype.changeLocale=Wb.prototype.Cf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={Ji:"NOT_APPLICABLE",Ei:"MORE_SETTINGS",oj:"UNMUTE",bj:"STATISTICS",Ti:"QUALITY",ti:"FAST_FORWARD",Zh:"AUTO_QUALITY",kg:"LIVE",zi:"LANGUAGE",Vh:"AD_DURATION",rj:"VOLUME",Wh:"AD_TIME",Ri:"PLAYBACK_RATE",Xh:"AIRPLAY",Vi:"RESOLUTION",Wi:"REWIND",Yi:"SEEK",Ui:"REPLAY",Li:"ON",ki:"ENTER_LOOP_MODE",Fi:"MULTIPLE_LANGUAGES",Gi:"MUTE",Pi:"PICTURE_IN_PICTURE",nj:"UNDETERMINED_LANGUAGE",pi:"EXIT_PICTURE_IN_PICTURE",di:"CAPTIONS",Zi:"SKIP_AD",BACK:"BACK",Ki:"OFF",Qi:"PLAY",$i:"SKIP_TO_LIVE",ei:"CAST",
101
+ oi:"EXIT_LOOP_MODE",lg:"SUBTITLE_FORCED",wi:"FULL_SCREEN",ni:"EXIT_FULL_SCREEN",li:"ENTER_PICTURE_IN_PICTURE",AD_PROGRESS:"AD_PROGRESS",Ai:"LOOP",pj:"UNRECOGNIZED_LANGUAGE",Oi:"PAUSE"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={$d:d.$d},e=a.next()){d.$d=e.value;e=b.findIndex(function(f){return function(g){return c(f.$d,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
102
102
  function ic(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function jc(a,b,c){this.startTime=a;this.direction=kc;this.endTime=b;this.payload=c;this.region=new lc;this.position=null;this.positionAlign=mc;this.size=0;this.textAlign=nc;this.writingMode=oc;this.lineInterpretation=pc;this.line=null;this.lineHeight="";this.lineAlign=qc;this.displayAlign=rc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=sc;this.fontStyle=tc;this.linePadding=this.letterSpacing=
103
103
  this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}jc.prototype.clone=function(){var a=new jc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
104
104
  function uc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ic(a.nestedCues,b.nestedCues,uc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!ic(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}G("shaka.text.Cue",jc);var mc="auto";
@@ -165,7 +165,7 @@ d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.F)?1:Math.abs(this.F),g=f*e.band
165
165
  r.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.H){a=this.i;if(!(a.g>=a.i))break a;this.H=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.i.getBandwidthEstimate(He(this));a&&this.m(a)}};r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(He(this))};r.setVariants=function(a){this.s=a};r.playbackRateChanged=function(a){this.F=a};
166
166
  r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.R(Ie)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function He(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
167
167
  function Ge(a,b,c,d){a&&(b=b.filter(function(e){return ce(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}G("shaka.abr.SimpleAbrManager",Fe);Fe.prototype.configure=Fe.prototype.configure;Fe.prototype.setMediaElement=Fe.prototype.setMediaElement;Fe.prototype.playbackRateChanged=Fe.prototype.playbackRateChanged;Fe.prototype.setVariants=Fe.prototype.setVariants;Fe.prototype.getBandwidthEstimate=Fe.prototype.getBandwidthEstimate;Fe.prototype.segmentDownloaded=Fe.prototype.segmentDownloaded;
168
- Fe.prototype.disable=Fe.prototype.disable;Fe.prototype.enable=Fe.prototype.enable;Fe.prototype.chooseVariant=Fe.prototype.chooseVariant;Fe.prototype.init=Fe.prototype.init;Fe.prototype.release=Fe.prototype.release;Fe.prototype.stop=Fe.prototype.stop;var Ie=1;function Je(a,b){this.g=a;this.h=b}Je.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ke(a,b){var c=new Je(5,0),d=Le,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Me(a,b,c,d){Za([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ne(a,b,c,d){Xa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Le=null;G("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Oe(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Oe.prototype.add=function(a){return Pe(this.h,a)?(this.g.add(a),!0):!1};
168
+ Fe.prototype.disable=Fe.prototype.disable;Fe.prototype.enable=Fe.prototype.enable;Fe.prototype.chooseVariant=Fe.prototype.chooseVariant;Fe.prototype.init=Fe.prototype.init;Fe.prototype.release=Fe.prototype.release;Fe.prototype.stop=Fe.prototype.stop;var Ie=1;function Je(a,b){this.g=a;this.h=b}Je.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ke(a,b){var c=new Je(5,0),d=Le,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Me(a,b,c,d){Za([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ne(a,b,c,d){Xa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Le=null;G("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Oe(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Oe.prototype.add=function(a){return Pe(this.h,a)?(this.g.add(a),!0):!1};
169
169
  function Pe(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Qe(c,d)&&Re(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(Qe(a,b)&&Re(a.roles,b.roles)));return c?!1:!0}Oe.prototype.values=function(){return this.g.values()};
170
170
  function Qe(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Cd(d)[0]});b=b.codecs.split(",").map(function(d){return Cd(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Re(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Se(a){this.g=a;this.h=new Te(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Se.prototype.create=function(a){var b=this,c=a.filter(function(d){return Pe(b.g,d)});return c.length?new Oe(c[0],c):this.h.create(a)};function Te(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
171
171
  Te.prototype.create=function(a){var b=[];b=Ue(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Ve(b,this.j);a.length&&(b=a);this.g&&(a=Sd(b,this.g),a.length&&(b=a));this.h&&(a=We(b,this.h),a.length&&(b=a));a=new Oe(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Pe(a.h,c)&&a.add(c);return a};function Ue(a,b){b=Mb(b);var c=Vb(b,a.map(function(d){return Ub(d)}));return c?a.filter(function(d){return c==Ub(d)}):[]}
@@ -244,7 +244,7 @@ function Eg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseSer
244
244
  function Vg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Ec(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=t(g.Ha.initData),l=k.next();!l.done;h={kd:h.kd},l=k.next())h.kd=l.value,e.some(function(m){return function(n){var p=
245
245
  m.kd;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Ec(n.initData,p.initData)}}(h))||e.push(h.kd)}if(g.Ha.keyIds)for(h=t(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
246
246
  function Gg(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
247
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var bh=1,Yg=5,Zg=.5,dh=new Mc(function(){return Hc(new Uint8Array([0]))});function eh(){}function fh(a,b,c,d){var e,f,g,h;return D(function(k){if(1==k.g){if(d&&(e=gh[d.toLowerCase()]))return k.return(e);if(f=hh(a))if(g=ih[f])return k.return(g);return d?k.D(2):u(k,jh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=gh[d]))return k.return(h);throw new K(2,4,4E3,a);})}function jh(a,b,c){var d,e,f;return D(function(g){if(1==g.g)return d=tf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
247
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var bh=1,Yg=5,Zg=.5,dh=new Mc(function(){return Hc(new Uint8Array([0]))});function eh(){}function fh(a,b,c,d){var e,f,g,h;return D(function(k){if(1==k.g){if(d&&(e=gh[d.toLowerCase()]))return k.return(e);if(f=hh(a))if(g=ih[f])return k.return(g);return d?k.D(2):u(k,jh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=gh[d]))return k.return(h);throw new K(2,4,4E3,a,d);})}function jh(a,b,c){var d,e,f;return D(function(g){if(1==g.g)return d=tf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
248
248
  function hh(a){a=(new pb(a)).Ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}G("shaka.media.ManifestParser",eh);eh.unregisterParserByMime=function(a){delete gh[a]};eh.registerParserByMime=function(a,b){gh[a]=b};eh.registerParserByExtension=function(a,b){ih[a]=b};var gh={},ih={};function kh(a){function b(){d=!0}function c(l){f.push(l);Sf(l)}a=Gc(a);var d=!1,e,f=[],g=[];(new Nf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).S("stsd",function(l){e=l;f.push(l);Uf(l)}).S("encv",b).S("enca",b).S("dvav",function(l){g.push({box:l,Pa:1701733238})}).S("dva1",function(l){g.push({box:l,Pa:1701733238})}).S("dvh1",function(l){g.push({box:l,Pa:1701733238})}).S("dvhe",function(l){g.push({box:l,Pa:1701733238})}).S("hev1",function(l){g.push({box:l,Pa:1701733238})}).S("hvc1",
249
249
  function(l){g.push({box:l,Pa:1701733238})}).S("avc1",function(l){g.push({box:l,Pa:1701733238})}).S("avc3",function(l){g.push({box:l,Pa:1701733238})}).S("ac-3",function(l){g.push({box:l,Pa:1701733217})}).S("ec-3",function(l){g.push({box:l,Pa:1701733217})}).S("ac-4",function(l){g.push({box:l,Pa:1701733217})}).S("mp4a",function(l){g.push({box:l,Pa:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw gb(nd(a)),new K(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
250
250
  a=lh(a,e,k.box,f,k.Pa);return a}
@@ -454,13 +454,14 @@ enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},upda
454
454
  function om(a,b){var c,d,e,f;return D(function(g){return 1==g.g?(c=Date.now()/1E3,d=!0,a.m=Om(a,{Ub:a.I,onError:function(h){Fm(a,h)},Jd:function(h){Pm(a,h)},onExpirationUpdated:function(h,k){Qm(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.L&&(h=a.L,h.g&&h.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),(e=de(a.i.variants,a.h.restrictions,a.$a))&&a.j&&Rm(a),f=Be(a.i.variants),u(g,Ag(a.m,f,a.i.offlineSessionIds),2)):3!=g.g?
455
455
  u(g,a.m.Ec(b.mediaElement),3):u(g,Km(a,a.i),0)})}
456
456
  function pm(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Xc&&(b.startTime=a.Xc,a.Xc=null);d=b.mediaElement;e=b.uri;a.yb=e;a.K=new ek({Bd:function(){return d.playbackRate},Ic:function(){return d.defaultPlaybackRate},Ye:function(E){d.playbackRate=E},Tf:function(E){d.currentTime+=E}});f=function(){return Sm(a)};g=function(){return Tm(a)};a.C.o(d,"playing",f);a.C.o(d,"pause",f);a.C.o(d,"ended",f);a.C.o(d,"ratechange",g);wm(a,a.h);
457
- h=a.h.abrFactory;a.B&&a.lf==h||(a.lf=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Ke("AbrManager","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.Ya=new Te(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Za=a.h.preferredTextLanguage;a.Uc=a.h.preferredTextRole;a.Rc=a.h.preferForcedSubs;Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,F,H){a.j&&E!=a.j.l&&
458
- Vm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.B.setMediaElement(d);Qd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Wm(a);a.j.configure(a.h.streaming);a.l=Xm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Ym(a,E)}});a.dispatchEvent(tm("streaming"));k=null;(l=a.j.l)||(k=um(a));m=[];n=l||k;p=t([n.video,n.audio]);for(q=p.next();!q.done;q=p.next())(v=q.value)&&!v.segmentIndex&&
459
- m.push(v.createSegmentIndex());if(!(0<m.length)){y.D(2);break}return u(y,Promise.all(m),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(n);Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F=Zm(a,b.startTime);a.Wa=$m(a,b.Sd);w=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);an(a,w);if(l){y.D(4);break}Vm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(4);break}x=a.F.od();return u(y,bn(k,x),6);case 6:z=y.h,a.F.re(z);case 4:return a.F.qe(),
460
- B=a.Cb().find(function(E){return E.active}),B||((A=Ce(a.i.textStreams,a.Za,a.Uc,a.Rc)[0]||null)&&dm(a.s.h,A,!0),k&&(A?(k.audio&&cn(a,k.audio,A)&&(a.$=!0),a.$&&a.J.m.setTextVisibility(!0),dn(a)):a.$=!1),A&&(a.h.streaming.alwaysStreamText||a.Sb())&&Zk(a.j,A)),u(y,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),en(a)),ge(a.j?a.j.l:null,a.i),fn(a.i),Rm(a),gn(a),a.i.variants.some(function(E){return E.primary}),a.Vc=!0,a.C.sa(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Sd}),C(y)}})}
461
- function qm(a,b,c){var d,e,f,g,h,k,l;return D(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Om(a,{Ub:a.I,onError:function(n){Fm(a,n)},Jd:function(n){Pm(a,n)},onExpirationUpdated:function(n,p){Qm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=hh(g),k=xm[h],"application/x-mpegurl"==k&&Xc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
462
- primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Dd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,
463
- decodingInfos:[]},a.m.X=!0,u(m,Ag(a.m,[l],[]),2)):u(m,a.m.Ec(b.mediaElement),0)})}
457
+ h=a.h.abrFactory;a.B&&a.lf==h||(a.lf=h,a.B=h(),"function"!=typeof a.B.setMediaElement&&(Ke("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),a.B.setMediaElement=function(){}),a.B.configure(a.h.abr));a.Ya=new Te(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Za=a.h.preferredTextLanguage;a.Uc=a.h.preferredTextRole;a.Rc=a.h.preferForcedSubs;Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B.init(function(E,
458
+ F,H){a.j&&E!=a.j.l&&Vm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.B.setMediaElement(d);Qd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Wm(a);a.j.configure(a.h.streaming);a.l=Xm;d.textTracks&&a.C.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Ym(a,E)}});a.dispatchEvent(tm("streaming"));k=null;(l=a.j.l)||(k=um(a));m=[];n=l||k;p=t([n.video,n.audio]);for(q=p.next();!q.done;q=p.next())(v=
459
+ q.value)&&!v.segmentIndex&&m.push(v.createSegmentIndex());if(!(0<m.length)){y.D(2);break}return u(y,Promise.all(m),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(n);Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F=Zm(a,b.startTime);a.Wa=$m(a,b.Sd);w=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);an(a,w);if(l){y.D(4);break}Vm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(4);break}x=a.F.od();return u(y,bn(k,x),6);case 6:z=y.h,a.F.re(z);
460
+ case 4:return a.F.qe(),B=a.Cb().find(function(E){return E.active}),B||((A=Ce(a.i.textStreams,a.Za,a.Uc,a.Rc)[0]||null)&&dm(a.s.h,A,!0),k&&(A?(k.audio&&cn(a,k.audio,A)&&(a.$=!0),a.$&&a.J.m.setTextVisibility(!0),dn(a)):a.$=!1),A&&(a.h.streaming.alwaysStreamText||a.Sb())&&Zk(a.j,A)),u(y,a.j.start(),7);case 7:a.h.abr.enabled&&(a.B.enable(),en(a)),ge(a.j?a.j.l:null,a.i),fn(a.i),Rm(a),gn(a),a.i.variants.some(function(E){return E.primary}),a.Vc=!0,a.C.sa(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-
461
+ c.Sd}),C(y)}})}
462
+ function qm(a,b,c){var d,e,f,g,h,k,l;return D(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Om(a,{Ub:a.I,onError:function(n){Fm(a,n)},Jd:function(n){Pm(a,n)},onExpirationUpdated:function(n,p){Qm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=hh(g),k=xm[h],"application/x-mpegurl"==k&&Xc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,
463
+ audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Dd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
464
+ a.m.X=!0,u(m,Ag(a.m,[l],[]),2)):u(m,a.m.Ec(b.mediaElement),0)})}
464
465
  function rm(a,b,c){function d(){return Sm(a)}b.uri=c.uri;b.startTime=c.startTime;a.yb=b.uri;var e=b.mediaElement;a.F=new Sj(e);var f=!1;a.Oc.push(function(){f=!0});null!=b.startTime&&a.F.re(b.startTime);a.K=new ek({Bd:function(){return e.playbackRate},Ic:function(){return e.defaultPlaybackRate},Ye:function(k){e.playbackRate=k},Tf:function(k){e.currentTime+=k}});an(a,a.h.streaming.rebufferingGoal);a.C.o(e,"playing",d);a.C.o(e,"pause",d);a.C.o(e,"ended",d);a.C.o(e,"ratechange",function(){return Tm(a)});
465
466
  "none"!=e.preload&&a.C.sa(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Sd});e.audioTracks&&(a.C.o(e.audioTracks,"addtrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"removetrack",function(){return Rm(a)}),a.C.o(e.audioTracks,"change",function(){return Rm(a)}));e.textTracks&&(a.C.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":hn(a,k);break;case "chapters":Ym(a,k);break;default:Rm(a)}}),a.C.o(e.textTracks,"removetrack",function(){return Rm(a)}),
466
467
  a.C.o(e.textTracks,"change",function(){return Rm(a)}));var g=hh(b.uri);e.src=Ek(a.U,b.uri,xm[g]);(Uc()||Tc("Web0S"))&&e.load();a.l=jn;a.dispatchEvent(tm("streaming"));var h=new Lc;Jj(e,HTMLMediaElement.HAVE_METADATA,a.C,function(){a.F.qe();h.resolve()});Jj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){var k;return D(function(l){if(1==l.g)return kn(a),k=ln(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.$=!0),l.D(2)):u(l,new Promise(function(m){a.C.sa(e.textTracks,"change",m);
@@ -544,7 +545,7 @@ R.prototype.getExpiration=R.prototype.Kc;R.prototype.drmInfo=R.prototype.drmInfo
544
545
  R.prototype.getLoadMode=R.prototype.we;R.prototype.resetConfiguration=R.prototype.Hh;R.prototype.getBufferFullness=R.prototype.Dg;R.prototype.getConfiguration=R.prototype.getConfiguration;R.prototype.configure=R.prototype.configure;R.prototype.load=R.prototype.load;R.prototype.updateStartTime=R.prototype.Uh;R.prototype.unload=R.prototype.jf;R.prototype.detach=R.prototype.detach;R.prototype.attachCanvas=R.prototype.xf;R.prototype.attach=R.prototype.Ec;
545
546
  R.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return D(function(h){if(1==h.g)return b={},a?u(h,$g(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in gh)k[l]=!0;for(var m in ih)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};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,k[n]=Oc()?!!gh[n]:Pc(n);for(var p in l)k[p]=
546
547
  Oc()?!!ih[p]:Pc(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",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(ha(nj));
547
- k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Fd(l)?!0:dc(l)||td(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};R.isBrowserSupported=zm;R.setAdManagerFactory=function(a){im=a};R.registerSupportPlugin=function(a,b){Jn[a]=b};R.prototype.destroy=R.prototype.destroy;var ym=0,fm=1,Xm=2,jn=3;R.LoadMode={DESTROYED:ym,NOT_LOADED:fm,MEDIA_SOURCE:Xm,SRC_EQUALS:jn};R.version="v4.3.14";var Kn=["4","3"];
548
+ k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Fd(l)?!0:dc(l)||td(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Jn;for(g in f)e[g]=f[g]();return h.return(e)})};R.isBrowserSupported=zm;R.setAdManagerFactory=function(a){im=a};R.registerSupportPlugin=function(a,b){Jn[a]=b};R.prototype.destroy=R.prototype.destroy;var ym=0,fm=1,Xm=2,jn=3;R.LoadMode={DESTROYED:ym,NOT_LOADED:fm,MEDIA_SOURCE:Xm,SRC_EQUALS:jn};R.version="v4.3.15";var Kn=["4","3"];
548
549
  Le=new function(a){this.g=a;this.i=Me;this.h=Ne}(new Je(Number(Kn[0]),Number(Kn[1])));
549
550
  var In=["output-restricted","internal-error"],Jn={},im=null,xm={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",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Cn={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
550
551
  ssa:"text/x-ssa",ass:"text/x-ssa"};function Ln(){this.h=[];this.j=this.i=this.g=0};function Mn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.j=this.g.getVolume();this.l=new Cf;this.l.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=Mn.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
@@ -552,7 +553,7 @@ r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};r.getTimeUntilSki
552
553
  r.isLinear=function(){return this.h.isLinear()};r.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){a?(this.j=this.getVolume(),this.setVolume(0)):this.setVolume(this.j)};r.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
553
554
  r.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.h.getTitle()};r.getDescription=function(){return this.h.getDescription()};r.release=function(){this.g=this.h=null};G("shaka.ads.ClientSideAd",Mn);Mn.prototype.release=Mn.prototype.release;Mn.prototype.getDescription=Mn.prototype.getDescription;Mn.prototype.getTitle=Mn.prototype.getTitle;Mn.prototype.getPositionInSequence=Mn.prototype.getPositionInSequence;
554
555
  Mn.prototype.getSequenceLength=Mn.prototype.getSequenceLength;Mn.prototype.setMuted=Mn.prototype.setMuted;Mn.prototype.resize=Mn.prototype.resize;Mn.prototype.isLinear=Mn.prototype.isLinear;Mn.prototype.isMuted=Mn.prototype.isMuted;Mn.prototype.setVolume=Mn.prototype.setVolume;Mn.prototype.getVolume=Mn.prototype.getVolume;Mn.prototype.play=Mn.prototype.play;Mn.prototype.pause=Mn.prototype.pause;Mn.prototype.skip=Mn.prototype.skip;Mn.prototype.canSkipNow=Mn.prototype.canSkipNow;
555
- Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d){var e=this;this.s=a;this.i=b;this.C=!1;this.B=null;this.F=NaN;this.l=d;this.j=null;this.h=new Cf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.14");this.g=null;this.h.sa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){On(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
556
+ Mn.prototype.getTimeUntilSkippable=Mn.prototype.getTimeUntilSkippable;Mn.prototype.isSkippable=Mn.prototype.isSkippable;Mn.prototype.isPaused=Mn.prototype.isPaused;Mn.prototype.getRemainingTime=Mn.prototype.getRemainingTime;Mn.prototype.getMinSuggestedDuration=Mn.prototype.getMinSuggestedDuration;Mn.prototype.getDuration=Mn.prototype.getDuration;function Nn(a,b,c,d){var e=this;this.s=a;this.i=b;this.C=!1;this.B=null;this.F=NaN;this.l=d;this.j=null;this.h=new Cf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.15");this.g=null;this.h.sa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){On(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
556
557
  function(f){Pn(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()});this.h.sa(this.i,"play",function(){e.C=!0})}Nn.prototype.stop=function(){this.g&&this.g.stop();this.s&&Dl(this.s)};Nn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Pn(a,b){b.getError();Qn(a,null);a.l(new I("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
557
558
  function On(a,b){a.l(new I("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));a.g=b.getAdsManager(a.i);a.l(new I("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=t(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new I("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Rn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
558
559
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Sn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.C?a.g.start():a.h.sa(a.i,"play",
@@ -575,8 +576,8 @@ f;e.i(new I("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Vn.prototyp
575
576
  function Wn(a,b){a.i(new I("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){ib.call(this);this.g=this.i=null;this.h=new Ln;this.j=navigator.language}ra(T,ib);r=T.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new K(2,10,1E4);this.i&&this.i.release();this.i=new Nn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
576
577
  r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);ib.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new I("ad-stopped"));this.h=new Ln};r.requestClientSideAds=function(a){if(!this.i)throw new K(1,10,10001);var b=this.i;b.F=Date.now()/1E3;b.m.requestAds(a)};
577
578
  r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new K(2,10,10002);this.g&&this.g.release();this.g=new Vn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
578
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new K(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.3.14";c=this.g;c.j?a=Promise.reject(new K(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
579
- (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new K(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.3.14";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new K(1,10,10003);return this.g.G};
579
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new K(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.3.15";c=this.g;c.j?a=Promise.reject(new K(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
580
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new K(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.3.15";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new K(1,10,10003);return this.g.G};
580
581
  r.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};G("shaka.ads.AdManager",T);
581
582
  T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
582
583
  T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
@@ -789,8 +790,8 @@ function qr(a,b){b=tf([b],a.g.retryParameters);a.j.modifyManifestRequest(b,{form
789
790
  function hs(a,b,c){if(!a.J)throw new K(2,7,7001);b=a.j.networkingEngine.request(c,b);of(a.J,b);return b.promise}G("shaka.hls.HlsParser",nr);
790
791
  var Fr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Gr={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},Hr={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},ns={audio:Gr,video:Hr,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
791
792
  vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new K(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new K(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Uq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
792
- b=Uq(a,"URI");b=mr(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=V(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Uq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Uq(a,"URI");a=mr(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Yf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
793
- Uq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},pr="VOD",is="EVENT",Rr="LIVE",vr={mg:pr,mi:is,kg:Rr};Tc("Tizen 3")||Tc("Tizen 2")||Vc()||(ih.m3u8=function(){return new nr},gh["application/x-mpegurl"]=function(){return new nr},gh["application/vnd.apple.mpegurl"]=function(){return new nr});function os(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=fd(b)}catch(g){}throw new K(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ps(){}function qs(a,b,c,d,e){var f=new rs;Hf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ss,h={Bf:!1,hg:!1};a=ts(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new df(a,function(){h.Bf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new N(function(){h.hg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
793
+ b=Uq(a,"URI");b=mr(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=V(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Uq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Uq(a,"URI");a=mr(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Yf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a,
794
+ b){if("video/mp2t"==b)throw new K(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new K(2,4,4041);a=Uq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},pr="VOD",is="EVENT",Rr="LIVE",vr={mg:pr,mi:is,kg:Rr};Tc("Tizen 3")||Tc("Tizen 2")||Vc()||(ih.m3u8=function(){return new nr},gh["application/x-mpegurl"]=function(){return new nr},gh["application/vnd.apple.mpegurl"]=function(){return new nr});function os(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=fd(b)}catch(g){}throw new K(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ps(){}function qs(a,b,c,d,e){var f=new rs;Hf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ss,h={Bf:!1,hg:!1};a=ts(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new df(a,function(){h.Bf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new N(function(){h.hg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
794
795
  function ts(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,v,w,x,z,B,A;return D(function(y){switch(y.g){case 1:return h=us,k=vs,p=n=0,q=Date.now(),wa(y,2),u(y,h(a,c),4);case 4:l=y.h;f(ws(l.headers));if("HEAD"==c.method){y.D(5);break}v=l.clone().body.getReader();x=(w=l.headers.get("Content-Length"))?parseInt(w,10):0;z=function(E){function F(){var H,J;return D(function(L){switch(L.g){case 1:return wa(L,2),u(L,v.read(),4);case 4:H=L.h;za(L,3);break;case 2:return Aa(L),L.return();case 3:if(H.done){L.D(5);break}n+=
795
796
  H.value.byteLength;if(!g){L.D(5);break}return u(L,g(H.value),5);case 5:J=Date.now();if(100<J-q||H.done)e(J-q,n-p,x-n),p=n,q=J;H.done?E.close():(E.enqueue(H.value),F());C(L)}})}F()};new k({start:z});return u(y,l.arrayBuffer(),6);case 6:m=y.h;case 5:za(y,3);break;case 2:B=Aa(y);if(d.Bf)throw new K(1,1,7001,a,b);if(d.hg)throw new K(1,1,1003,a,b);throw new K(1,1,1002,a,B,b);case 3:return A=ws(l.headers),y.return(os(A,m,l.status,a,l.url,b))}})}
796
797
  function ws(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function xs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}G("shaka.net.HttpFetchPlugin",ps);ps.isSupported=xs;ps.parse=qs;var us=window.fetch,ss=window.AbortController,vs=window.ReadableStream,rs=window.Headers;
@@ -883,116 +884,115 @@ function Fu(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=docum
883
884
  function Ju(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B;return D(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Oc())return A.return(b);if(c){if(Wc())if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var y=c.contentType;c.width&&c.height&&(y+="; width="+c.width+"; height="+c.height);c.framerate&&(y+="; framerate="+c.framerate);"pq"===c.transferFunction&&
884
885
  (y+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(y)}else e=dc(c.contentType);else Uc()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=dc(f)):e=dc(c.contentType);if(!e)return A.return(b)}if(d&&(Wc()&&d.spatialRendering?(h=d.contentType+"; spatialRendering=true",g=dc(h)):g=dc(d.contentType),!g))return A.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=Pc(k),
885
886
  !l)||d&&(m=d.contentType,n=Pc(m),!n))return A.return(b)}else return A.return(b);if(!a.keySystemConfiguration)return b.supported=!0,A.return(Promise.resolve(b));p=a.keySystemConfiguration;q=[];v=[];p.audio&&(w={robustness:p.audio.robustness||"",contentType:a.audio.contentType},Uc()&&a.audio.contentType.includes('codecs="ac-3"')&&(w={robustness:w.robustness,contentType:'audio/mp4; codecs="ec-3"'}),q.push(w));p.video&&(x={robustness:p.video.robustness||"",contentType:a.video.contentType},v.push(x));
886
- z={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};q.length&&(z.audioCapabilities=q);v.length&&(z.videoCapabilities=v);wa(A,3);return u(A,navigator.requestMediaKeySystemAccess(p.keySystem,[z]),5);case 5:B=A.h;za(A,4);break;case 3:Aa(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}qu.MediaCapabilities=Gu;Gu.install=Hu;var Iu=null;Gu.originalMcap=Iu;tu(Hu,-1);function Ku(){}function Lu(){var a=Zc();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Mu():a?12>=a?(Nu(),Ou()):15>=a&&Nu():Rc()?Pu():(Tc("Tizen 2")||Tc("Tizen 3")||Tc("Tizen 4"))&&Qu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Ru()}
887
- function Nu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}function Ou(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Pu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
888
- function Qu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Cd(b)[0]&&a(b)}}function Mu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
889
- function Ru(){var a=MediaSource.isTypeSupported;Tc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}qu.MediaSource=Ku;Ku.install=Lu;tu(Lu);function Su(){}function Tu(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Uu():void 0!=window.orientation&&Vu())}function Uu(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
890
- function Vu(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Wu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new I("change");b.dispatchEvent(c)})}qu.Orientation=Su;Su.install=Tu;function Wu(){ib.call(this);this.type="";this.angle=0}ra(Wu,ib);
891
- Wu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
892
- Wu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};tu(Tu);function Xu(){}var Yu,Zu,$u,av,bv,cv;function dv(a,b){try{var c=new ev(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function fv(a){var b=this.mediaKeys;b&&b!=a&&gv(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?gv(a,this):Promise.resolve()}
893
- function hv(a){a=Gc(a.initData);if(Kc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=dd(a.subarray(4),!0);a=gd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Hc(a);this.dispatchEvent(b)}qu.PatchedMediaKeysApple=Xu;
894
- Xu.uninstall=function(){Yu&&(Yu=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Zu),HTMLMediaElement.prototype.setMediaKeys=$u,window.MediaKeys=av,window.MediaKeySystemAccess=bv,navigator.requestMediaKeySystemAccess=cv,Zu=cv=$u=bv=av=null,window.shakaMediaKeysPolyfill=!1)};
895
- Xu.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Yu=!0,Zu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),$u=HTMLMediaElement.prototype.setMediaKeys,av=window.MediaKeys,bv=window.MediaKeySystemAccess,cv=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=fv;window.MediaKeys=iv;window.MediaKeySystemAccess=ev;navigator.requestMediaKeySystemAccess=
896
- dv;window.shakaMediaKeysPolyfill=!0}};
897
- function ev(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
887
+ z={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};q.length&&(z.audioCapabilities=q);v.length&&(z.videoCapabilities=v);wa(A,3);return u(A,navigator.requestMediaKeySystemAccess(p.keySystem,[z]),5);case 5:B=A.h;za(A,4);break;case 3:Aa(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}qu.MediaCapabilities=Gu;Gu.install=Hu;var Iu=null;Gu.originalMcap=Iu;tu(Hu,-1);function Ku(){}function Lu(){var a=Zc();window.MediaSource&&(Wc()?Mu():a?12>=a?(Nu(),Ou()):15>=a&&Nu():Rc()?Mu():(Tc("Tizen 2")||Tc("Tizen 3")||Tc("Tizen 4"))&&Pu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Qu()}function Nu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}
888
+ function Ou(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Mu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}function Pu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Cd(b)[0]&&a(b)}}
889
+ function Qu(){var a=MediaSource.isTypeSupported;Tc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}qu.MediaSource=Ku;Ku.install=Lu;tu(Lu);function Ru(){}function Su(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Tu():void 0!=window.orientation&&Uu())}function Tu(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
890
+ function Uu(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Vu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new I("change");b.dispatchEvent(c)})}qu.Orientation=Ru;Ru.install=Su;function Vu(){ib.call(this);this.type="";this.angle=0}ra(Vu,ib);
891
+ Vu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
892
+ Vu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};tu(Su);function Wu(){}var Xu,Yu,Zu,$u,av,bv;function cv(a,b){try{var c=new dv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ev(a){var b=this.mediaKeys;b&&b!=a&&fv(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?fv(a,this):Promise.resolve()}
893
+ function gv(a){a=Gc(a.initData);if(Kc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=dd(a.subarray(4),!0);a=gd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Hc(a);this.dispatchEvent(b)}qu.PatchedMediaKeysApple=Wu;
894
+ Wu.uninstall=function(){Xu&&(Xu=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Yu),HTMLMediaElement.prototype.setMediaKeys=Zu,window.MediaKeys=$u,window.MediaKeySystemAccess=av,navigator.requestMediaKeySystemAccess=bv,Yu=bv=Zu=av=$u=null,window.shakaMediaKeysPolyfill=!1)};
895
+ Wu.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Xu=!0,Yu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Zu=HTMLMediaElement.prototype.setMediaKeys,$u=window.MediaKeys,av=window.MediaKeySystemAccess,bv=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ev;window.MediaKeys=hv;window.MediaKeySystemAccess=dv;navigator.requestMediaKeySystemAccess=
896
+ cv;window.shakaMediaKeysPolyfill=!0}};
897
+ function dv(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
898
898
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
899
- ev.prototype.createMediaKeys=function(){var a=new iv(this.keySystem);return Promise.resolve(a)};ev.prototype.getConfiguration=function(){return this.g};function iv(a){this.h=new WebKitMediaKeys(a);this.g=new Cf}iv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new jv(this.h,a)};iv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
900
- function gv(a,b){a.g.gb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",hv);try{return Jj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function jv(a){ib.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Cf;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new kv}ra(jv,ib);r=jv.prototype;
901
- r.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Gc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",Hc(e.message));e=new I("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(lv(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
902
- function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lv(c,"output-not-allowed");break;default:lv(c,"internal-error")}});lv(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
903
- r.update=function(a){this.g=new Lc;try{this.i.update(Gc(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.gb()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function lv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}
904
- function kv(){this.size=0;this.g=void 0}r=kv.prototype;r.ic=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function mv(){}function nv(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ov,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=pv,window.MediaKeys=qv,window.MediaKeySystemAccess=rv,window.shakaMediaKeysPolyfill=!0)}function ov(){return Promise.reject(Error("The key system specified is not supported."))}
905
- function pv(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}qu.PatchedMediaKeysNop=mv;mv.install=nv;function qv(){throw new TypeError("Illegal constructor.");}qv.prototype.createSession=function(){};qv.prototype.setServerCertificate=function(){};function rv(){this.keySystem="";throw new TypeError("Illegal constructor.");}rv.prototype.getConfiguration=function(){};rv.prototype.createMediaKeys=function(){};tu(nv,-10);function sv(){}
906
- function tv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)uv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=vv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=wv;window.MediaKeys=xv;window.MediaKeySystemAccess=yv;window.shakaMediaKeysPolyfill=!0}}
907
- function zv(a){var b=uv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function vv(a,b){try{var c=new yv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function wv(a){var b=this.mediaKeys;b&&b!=a&&Av(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Av(a,this);return Promise.resolve()}qu.PatchedMediaKeysWebkit=sv;sv.install=tv;
908
- function yv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
899
+ dv.prototype.createMediaKeys=function(){var a=new hv(this.keySystem);return Promise.resolve(a)};dv.prototype.getConfiguration=function(){return this.g};function hv(a){this.h=new WebKitMediaKeys(a);this.g=new Cf}hv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new iv(this.h,a)};hv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
900
+ function fv(a,b){a.g.gb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",gv);try{return Jj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function iv(a){ib.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Cf;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new jv}ra(iv,ib);r=iv.prototype;
901
+ r.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Gc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ic()?"license-request":"license-renewal").set("message",Hc(e.message));e=new I("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(kv(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
902
+ function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:kv(c,"output-not-allowed");break;default:kv(c,"internal-error")}});kv(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
903
+ r.update=function(a){this.g=new Lc;try{this.i.update(Gc(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.gb()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function kv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}
904
+ function jv(){this.size=0;this.g=void 0}r=jv.prototype;r.ic=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function lv(){}function mv(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=nv,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ov,window.MediaKeys=pv,window.MediaKeySystemAccess=qv,window.shakaMediaKeysPolyfill=!0)}function nv(){return Promise.reject(Error("The key system specified is not supported."))}
905
+ function ov(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}qu.PatchedMediaKeysNop=lv;lv.install=mv;function pv(){throw new TypeError("Illegal constructor.");}pv.prototype.createSession=function(){};pv.prototype.setServerCertificate=function(){};function qv(){this.keySystem="";throw new TypeError("Illegal constructor.");}qv.prototype.getConfiguration=function(){};qv.prototype.createMediaKeys=function(){};tu(mv,-10);function rv(){}
906
+ function sv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)tv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=uv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=vv;window.MediaKeys=wv;window.MediaKeySystemAccess=xv;window.shakaMediaKeysPolyfill=!0}}
907
+ function yv(a){var b=tv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function uv(a,b){try{var c=new xv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function vv(a){var b=this.mediaKeys;b&&b!=a&&zv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&zv(a,this);return Promise.resolve()}qu.PatchedMediaKeysWebkit=rv;rv.install=sv;
908
+ function xv(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
909
909
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
910
- d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}yv.prototype.createMediaKeys=function(){var a=new xv(this.g);return Promise.resolve(a)};yv.prototype.getConfiguration=function(){return this.h};function xv(a){this.l=a;this.h=null;this.g=new Cf;this.i=[];this.j=new Map}
911
- function Av(a,b){a.h=b;a.g.gb();var c=uv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Bv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new I("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Bv(a,d.sessionId))Cv(d,"usable"),
912
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Bv(a,d.sessionId);e&&e.handleError(d)}))}xv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new Dv(b,this.l,a);this.i.push(a);return a};xv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
913
- function Bv(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function Dv(a,b,c){ib.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new Ev}ra(Dv,ib);r=Dv.prototype;
914
- r.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Cv(this,"output-restricted"):1==b?Cv(this,"expired"):Cv(this,"internal-error"))};
915
- function Fv(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Gc(gd("LOAD_SESSION|"+c));else{var e=gd("PERSISTENT|");d=od(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=zv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new N(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
916
- function Gv(a,b,c){if(a.g)a.g.then(function(){return Gv(a,b,c)}).catch(function(){return Gv(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=cd(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=ld(e.keys[0].k);e=ld(e.keys[0].kid)}else d=Gc(c),e=null;var f=zv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
917
- function Cv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return Fv(this,b,null)};r.load=function(a){return"persistent-license"==this.l?Fv(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Lc;Gv(this,b,a);return b};
918
- r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=zv("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ev(){this.size=0;this.g=void 0}r=Ev.prototype;r.ic=function(){return this.g};
919
- r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var uv="";tu(tv);function Hv(){}function Iv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Jv,Object.defineProperty(a,"disablePictureInPicture",{get:Kv,set:Lv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Mv,document.addEventListener("webkitpresentationmodechanged",Nv,!0))}}
920
- function Nv(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
921
- function Jv(){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 Mv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
922
- function Kv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Lv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}qu.PiPWebkit=Hv;Hv.install=Iv;tu(Iv);function Ov(){}function Pv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Qv))}function Qv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}qu.RandomUUID=Ov;Ov.install=Pv;tu(Pv);function Rv(){}function Sv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Tv)}function Tv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}qu.StorageEstimate=Rv;Rv.install=Sv;tu(Sv);function Uv(){}function Vv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Wv})}function Wv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}qu.Symbol=Uv;Uv.install=Vv;tu(Vv);function Xv(){}function Yv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}qu.VideoPlayPromise=Xv;Xv.install=Yv;tu(Yv);function Zv(){}function $v(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Vc())&&(a.getVideoPlaybackQuality=aw)}}function aw(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}qu.VideoPlaybackQuality=Zv;Zv.install=$v;tu($v);function bw(){}function cw(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=dw;else if(6==b)a=ew;else{try{var c=!!dw(1,2,"")}catch(d){c=!1}c&&(a=dw)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function dw(a,b,c){return new window.TextTrackCue(a,b,c)}function ew(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}qu.VTTCue=bw;bw.install=cw;tu(cw);function fw(){}fw.prototype.parseInit=function(){};fw.prototype.setSequenceMode=function(){};fw.prototype.parseMedia=function(a,b){var c=null,d=[];a=cd(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=gw.exec(e))){var f=hw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};G("shaka.text.LrcTextParser",fw);fw.prototype.parseMedia=fw.prototype.parseMedia;
923
- fw.prototype.setSequenceMode=fw.prototype.setSequenceMode;fw.prototype.parseInit=fw.prototype.parseInit;var gw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,hw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Gd["application/x-subtitle-lrc"]=function(){return new fw};function iw(){}iw.prototype.parseInit=function(){};iw.prototype.setSequenceMode=function(){};
924
- iw.prototype.parseMedia=function(a,b,c){var d=cd(a);a=[];if(""==d)return a;var e=qg(d,"tt");if(!e)throw new K(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=eg(e,jw,"frameRate"),g=eg(e,jw,"subFrameRate"),h=eg(e,jw,"frameRateMultiplier"),k=eg(e,jw,"tickRate"),l=eg(e,jw,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=eg(e,kw,"extent");if("default"!=m&&"preserve"!=m)throw new K(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new lw(f,
925
- g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?cg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=t(e),q=p.next();!q.done;q=p.next()){var v=q.value;q=new lc;var w=v.getAttribute("xml:id");if(w){q.id=w;var x=null;n&&(x=mw.exec(n)||nw.exec(n));w=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,B=ow(v,h,"extent");if(B){var A=(z=mw.exec(B))||
926
- nw.exec(B);null!=A&&(q.width=Number(A[1]),q.height=Number(A[2]),z||(null!=w&&(q.width=100*q.width/w),null!=x&&(q.height=100*q.height/x)),q.widthUnits=z||null!=w?Bc:0,q.heightUnits=z||null!=x?Bc:0)}if(v=ow(v,h,"origin"))if(A=(z=mw.exec(v))||nw.exec(v),null!=A)q.viewportAnchorX=Number(A[1]),q.viewportAnchorY=Number(A[2]),z?B||(q.width=100-q.viewportAnchorX,q.widthUnits=Bc,q.height=100-q.viewportAnchorY,q.heightUnits=Bc):(null!=x&&(q.viewportAnchorY=100*q.viewportAnchorY/x),null!=w&&(q.viewportAnchorX=
927
- 100*q.viewportAnchorX/w)),q.viewportAnchorUnits=z||null!=w?Bc:0}else q=null;q&&k.push(q)}if($f(d,"p").length)throw new K(2,2,2001,"<p> can only be inside <div> in TTML");n=t($f(d,"div"));for(p=n.next();!p.done;p=n.next())if($f(p.value,"span").length)throw new K(2,2,2001,"<span> can only be inside <p> in TTML");if(b=pw(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
928
- function pw(a,b,c,d,e,f,g,h,k,l,m,n){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var v=null,w=t(qw),x=w.next();!x.done&&!(v=rw(q,"backgroundImage",d,"#",x.value)[0]);x=w.next());w=null;var z=eg(q,qw,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new pb(n),z=new pb(z),(x=x.resolve(z).toString())&&(w=x));if("p"==a.nodeName||v||w)m=!0;a=m;x="default"==(q.getAttribute("xml:space")||
929
- (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(E){return E.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var B=t(q.childNodes),A=B.next();!A.done;A=B.next())(A=pw(A.value,b,c,d,e,f,g,x,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!x))return null;B=sw(q,c);n=B.start;for(B=B.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)B=tw(p,c,n,B),n=B.start,B=
930
- B.end,p=p.parentNode;null==n&&(n=0);n+=b.periodStart;B=null==B?Infinity:B+b.periodStart;n=Math.max(n,b.segmentStart);B=Math.min(B,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,B=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),B=Math.max(B,c.endTime);if("br"==q.tagName)return e=new jc(n,B,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,x&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jc(n,B,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=rw(q,"region",f,"")[0];
931
- if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var y=k.getAttribute("xml:id");b.region=g.filter(function(E){return E.id==y})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=rw(l,"region",f,"")[0]);uw(b,q,g,v,w,e,a,0==h.length);return b}
932
- function uw(a,b,c,d,e,f,g,h){g=g||h;"rtl"==vw(b,c,f,"direction",g)&&(a.direction="rtl");h=vw(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=kc);(h=vw(b,c,f,"textAlign",!0))?(a.positionAlign=ww[h],a.lineAlign=xw[h],a.textAlign=vc[h.toUpperCase()]):a.textAlign=nc;if(h=vw(b,c,f,"displayAlign",!0))a.displayAlign=wc[h.toUpperCase()];if(h=vw(b,c,f,"color",g))a.color=h;if(h=vw(b,c,f,"backgroundColor",
933
- g))a.backgroundColor=h;if(h=vw(b,c,f,"border",g))a.border=h;if(h=vw(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}(h=vw(b,c,f,"fontWeight",g))&&
934
- "bold"==h&&(a.fontWeight=700);h=vw(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=vw(b,c,f,"lineHeight",g))&&h.match(yw)&&(a.lineHeight=h);(h=vw(b,c,f,"fontSize",g))&&(h.match(yw)||h.match(zw))&&(a.fontSize=h);if(h=vw(b,c,f,"fontStyle",g))a.fontStyle=Ac[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=vw(b,
935
- c,f,"textOutline",g))d=d.split(" "),d[0].match(yw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(yw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=vw(b,c,f,"letterSpacing",g))&&d.match(yw)&&(a.letterSpacing=d);(d=vw(b,c,f,"linePadding",g))&&d.match(yw)&&(a.linePadding=d);if(g=vw(b,c,f,"opacity",g))a.opacity=parseFloat(g);(c=ow(c,f,"textDecoration"))&&Aw(a,c);(b=Bw(b,f,"textDecoration"))&&Aw(a,b)}
936
- function Aw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&gc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&gc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
937
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&gc(a.textDecoration,"overline")}}function vw(a,b,c,d,e){e=void 0===e?!0:e;return(a=Bw(a,c,d))?a:e?ow(b,c,d):null}function ow(a,b,c){if(!a)return null;var d=eg(a,kw,c);return d?d:Cw(a,b,c)}function Bw(a,b,c){var d=eg(a,kw,c);return d?d:Cw(a,b,c)}
938
- function Cw(a,b,c){a=rw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=dg(a[e],"urn:ebu:tt:style",c);f||(f=eg(a[e],kw,c));f||(f=Bw(a[e],b,c));f&&(d=f)}return d}
939
- function rw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?dg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););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.getAttribute("xml:id")==e){f.push(g);break}return f}function tw(a,b,c,d){a=sw(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}}
940
- function sw(a,b){var c=Dw(a.getAttribute("begin"),b),d=Dw(a.getAttribute("end"),b);a=Dw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
941
- function Dw(a,b){var c=null;if(Ew.test(a)){a=Ew.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(Fw.test(a))c=Gw(Fw,a);else if(Hw.test(a))c=Gw(Hw,a);else if(Iw.test(a))a=Iw.exec(a),c=Number(a[1])/b.frameRate;else if(Jw.test(a))a=Jw.exec(a),c=Number(a[1])/b.g;else if(Kw.test(a))c=Gw(Kw,a);else if(a)throw new K(2,2,2001,"Could not parse cue time range in TTML");return c}
942
- function Gw(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)}G("shaka.text.TtmlTextParser",iw);iw.prototype.parseMedia=iw.prototype.parseMedia;iw.prototype.setSequenceMode=iw.prototype.setSequenceMode;iw.prototype.parseInit=iw.prototype.parseInit;
943
- function lw(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]))}
944
- var mw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,zw=/^(\d{1,2}(?:\.\d+)?|100)%$/,yw=/^(\d+px|\d+em|\d*\.?\d+c)$/,nw=/^(\d+)px (\d+)px$/,Ew=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Fw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Hw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Iw=/^(\d*(?:\.\d*)?)f$/,Jw=/^(\d*(?:\.\d*)?)t$/,Kw=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),xw={left:qc,center:"center",right:"end",start:qc,
945
- end:"end"},ww={left:"line-left",center:"center",right:"line-right"},jw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],kw=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],qw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Gd["application/ttml+xml"]=function(){return new iw};function Lw(){this.g=new iw}Lw.prototype.parseInit=function(a){var b=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new K(2,2,2007);};Lw.prototype.setSequenceMode=function(){};Lw.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Nf).box("mdat",Wf(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new K(2,2,2007);return f};
946
- G("shaka.text.Mp4TtmlParser",Lw);Lw.prototype.parseMedia=Lw.prototype.parseMedia;Lw.prototype.setSequenceMode=Lw.prototype.setSequenceMode;Lw.prototype.parseInit=Lw.prototype.parseInit;Gd['application/mp4; codecs="stpp"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.ttml"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Lw};Gd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Lw};function Mw(){this.g=!1}Mw.prototype.parseInit=function(){};Mw.prototype.setSequenceMode=function(a){this.g=a};
947
- Mw.prototype.parseMedia=function(a,b){a=cd(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 K(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Nw(new br(d[1]));if(null==a)throw new K(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
910
+ d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}xv.prototype.createMediaKeys=function(){var a=new wv(this.g);return Promise.resolve(a)};xv.prototype.getConfiguration=function(){return this.h};function wv(a){this.l=a;this.h=null;this.g=new Cf;this.i=[];this.j=new Map}
911
+ function zv(a,b){a.h=b;a.g.gb();var c=tv;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Av(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ic()?"licenserequest":"licenserenewal").set("message",d.message),d=new I("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Av(a,d.sessionId))Bv(d,"usable"),
912
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Av(a,d.sessionId);e&&e.handleError(d)}))}wv.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new Cv(b,this.l,a);this.i.push(a);return a};wv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
913
+ function Av(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function Cv(a,b,c){ib.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new Dv}ra(Cv,ib);r=Cv.prototype;
914
+ r.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Bv(this,"output-restricted"):1==b?Bv(this,"expired"):Bv(this,"internal-error"))};
915
+ function Ev(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Gc(gd("LOAD_SESSION|"+c));else{var e=gd("PERSISTENT|");d=od(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=yv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new N(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).R(.01)}return a.h}
916
+ function Fv(a,b,c){if(a.g)a.g.then(function(){return Fv(a,b,c)}).catch(function(){return Fv(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=cd(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=ld(e.keys[0].k);e=ld(e.keys[0].kid)}else d=Gc(c),e=null;var f=yv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
917
+ function Bv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new I("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return Ev(this,b,null)};r.load=function(a){return"persistent-license"==this.l?Ev(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Lc;Fv(this,b,a);return b};
918
+ r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=yv("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Dv(){this.size=0;this.g=void 0}r=Dv.prototype;r.ic=function(){return this.g};
919
+ r.forEach=function(a){this.g&&a(this.g,dh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=dh.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var tv="";tu(sv);function Gv(){}function Hv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Iv,Object.defineProperty(a,"disablePictureInPicture",{get:Jv,set:Kv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Lv,document.addEventListener("webkitpresentationmodechanged",Mv,!0))}}
920
+ function Mv(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
921
+ function Iv(){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 Lv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
922
+ function Jv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Kv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}qu.PiPWebkit=Gv;Gv.install=Hv;tu(Hv);function Nv(){}function Ov(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Pv))}function Pv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}qu.RandomUUID=Nv;Nv.install=Ov;tu(Ov);function Qv(){}function Rv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Sv)}function Sv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}qu.StorageEstimate=Qv;Qv.install=Rv;tu(Rv);function Tv(){}function Uv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Vv})}function Vv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}qu.Symbol=Tv;Tv.install=Uv;tu(Uv);function Wv(){}function Xv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}qu.VideoPlayPromise=Wv;Wv.install=Xv;tu(Xv);function Yv(){}function Zv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Vc())&&(a.getVideoPlaybackQuality=$v)}}function $v(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}qu.VideoPlaybackQuality=Yv;Yv.install=Zv;tu(Zv);function aw(){}function bw(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=cw;else if(6==b)a=dw;else{try{var c=!!cw(1,2,"")}catch(d){c=!1}c&&(a=cw)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function cw(a,b,c){return new window.TextTrackCue(a,b,c)}function dw(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}qu.VTTCue=aw;aw.install=bw;tu(bw);function ew(){}ew.prototype.parseInit=function(){};ew.prototype.setSequenceMode=function(){};ew.prototype.parseMedia=function(a,b){var c=null,d=[];a=cd(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=fw.exec(e))){var f=gw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};G("shaka.text.LrcTextParser",ew);ew.prototype.parseMedia=ew.prototype.parseMedia;
923
+ ew.prototype.setSequenceMode=ew.prototype.setSequenceMode;ew.prototype.parseInit=ew.prototype.parseInit;var fw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,gw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Gd["application/x-subtitle-lrc"]=function(){return new ew};function hw(){}hw.prototype.parseInit=function(){};hw.prototype.setSequenceMode=function(){};
924
+ hw.prototype.parseMedia=function(a,b,c){var d=cd(a);a=[];if(""==d)return a;var e=qg(d,"tt");if(!e)throw new K(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=eg(e,iw,"frameRate"),g=eg(e,iw,"subFrameRate"),h=eg(e,iw,"frameRateMultiplier"),k=eg(e,iw,"tickRate"),l=eg(e,iw,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=eg(e,jw,"extent");if("default"!=m&&"preserve"!=m)throw new K(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new kw(f,
925
+ g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?cg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=t(e),q=p.next();!q.done;q=p.next()){var v=q.value;q=new lc;var w=v.getAttribute("xml:id");if(w){q.id=w;var x=null;n&&(x=lw.exec(n)||mw.exec(n));w=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,B=nw(v,h,"extent");if(B){var A=(z=lw.exec(B))||
926
+ mw.exec(B);null!=A&&(q.width=Number(A[1]),q.height=Number(A[2]),z||(null!=w&&(q.width=100*q.width/w),null!=x&&(q.height=100*q.height/x)),q.widthUnits=z||null!=w?Bc:0,q.heightUnits=z||null!=x?Bc:0)}if(v=nw(v,h,"origin"))if(A=(z=lw.exec(v))||mw.exec(v),null!=A)q.viewportAnchorX=Number(A[1]),q.viewportAnchorY=Number(A[2]),z?B||(q.width=100-q.viewportAnchorX,q.widthUnits=Bc,q.height=100-q.viewportAnchorY,q.heightUnits=Bc):(null!=x&&(q.viewportAnchorY=100*q.viewportAnchorY/x),null!=w&&(q.viewportAnchorX=
927
+ 100*q.viewportAnchorX/w)),q.viewportAnchorUnits=z||null!=w?Bc:0}else q=null;q&&k.push(q)}if($f(d,"p").length)throw new K(2,2,2001,"<p> can only be inside <div> in TTML");n=t($f(d,"div"));for(p=n.next();!p.done;p=n.next())if($f(p.value,"span").length)throw new K(2,2,2001,"<span> can only be inside <p> in TTML");if(b=ow(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
928
+ function ow(a,b,c,d,e,f,g,h,k,l,m,n){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var q=document.createElement("span");q.textContent=a.textContent}else q=a;for(var v=null,w=t(pw),x=w.next();!x.done&&!(v=qw(q,"backgroundImage",d,"#",x.value)[0]);x=w.next());w=null;var z=eg(q,pw,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new pb(n),z=new pb(z),(x=x.resolve(z).toString())&&(w=x));if("p"==a.nodeName||v||w)m=!0;a=m;x="default"==(q.getAttribute("xml:space")||
929
+ (h?"default":"preserve"));z=Array.from(q.childNodes).every(function(E){return E.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var B=t(q.childNodes),A=B.next();!A.done;A=B.next())(A=ow(A.value,b,c,d,e,f,g,x,k,q,m,n))&&h.push(A);d=null!=l;n=/\S/.test(q.textContent);A=q.hasAttribute("begin")||q.hasAttribute("end")||q.hasAttribute("dur");if(!(A||n||"br"==q.tagName||0!=h.length||d&&!x))return null;B=rw(q,c);n=B.start;for(B=B.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)B=sw(p,c,n,B),n=B.start,B=
930
+ B.end,p=p.parentNode;null==n&&(n=0);n+=b.periodStart;B=null==B?Infinity:B+b.periodStart;n=Math.max(n,b.segmentStart);B=Math.min(B,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,B=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),B=Math.max(B,c.endTime);if("br"==q.tagName)return e=new jc(n,B,""),e.lineBreak=!0,e;b="";z&&(b=q.textContent,x&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jc(n,B,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=qw(q,"region",f,"")[0];
931
+ if(q.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var y=k.getAttribute("xml:id");b.region=g.filter(function(E){return E.id==y})[0]}g=k;l&&d&&!q.getAttribute("region")&&!q.getAttribute("style")&&(g=qw(l,"region",f,"")[0]);tw(b,q,g,v,w,e,a,0==h.length);return b}
932
+ function tw(a,b,c,d,e,f,g,h){g=g||h;"rtl"==uw(b,c,f,"direction",g)&&(a.direction="rtl");h=uw(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=kc);(h=uw(b,c,f,"textAlign",!0))?(a.positionAlign=vw[h],a.lineAlign=ww[h],a.textAlign=vc[h.toUpperCase()]):a.textAlign=nc;if(h=uw(b,c,f,"displayAlign",!0))a.displayAlign=wc[h.toUpperCase()];if(h=uw(b,c,f,"color",g))a.color=h;if(h=uw(b,c,f,"backgroundColor",
933
+ g))a.backgroundColor=h;if(h=uw(b,c,f,"border",g))a.border=h;if(h=uw(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}(h=uw(b,c,f,"fontWeight",g))&&
934
+ "bold"==h&&(a.fontWeight=700);h=uw(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=uw(b,c,f,"lineHeight",g))&&h.match(xw)&&(a.lineHeight=h);(h=uw(b,c,f,"fontSize",g))&&(h.match(xw)||h.match(yw))&&(a.fontSize=h);if(h=uw(b,c,f,"fontStyle",g))a.fontStyle=Ac[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=uw(b,
935
+ c,f,"textOutline",g))d=d.split(" "),d[0].match(xw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(xw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=uw(b,c,f,"letterSpacing",g))&&d.match(xw)&&(a.letterSpacing=d);(d=uw(b,c,f,"linePadding",g))&&d.match(xw)&&(a.linePadding=d);if(g=uw(b,c,f,"opacity",g))a.opacity=parseFloat(g);(c=nw(c,f,"textDecoration"))&&zw(a,c);(b=Aw(b,f,"textDecoration"))&&zw(a,b)}
936
+ function zw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&gc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&gc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
937
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&gc(a.textDecoration,"overline")}}function uw(a,b,c,d,e){e=void 0===e?!0:e;return(a=Aw(a,c,d))?a:e?nw(b,c,d):null}function nw(a,b,c){if(!a)return null;var d=eg(a,jw,c);return d?d:Bw(a,b,c)}function Aw(a,b,c){var d=eg(a,jw,c);return d?d:Bw(a,b,c)}
938
+ function Bw(a,b,c){a=qw(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=dg(a[e],"urn:ebu:tt:style",c);f||(f=eg(a[e],jw,c));f||(f=Aw(a[e],b,c));f&&(d=f)}return d}
939
+ function qw(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?dg(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););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.getAttribute("xml:id")==e){f.push(g);break}return f}function sw(a,b,c,d){a=rw(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}}
940
+ function rw(a,b){var c=Cw(a.getAttribute("begin"),b),d=Cw(a.getAttribute("end"),b);a=Cw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
941
+ function Cw(a,b){var c=null;if(Dw.test(a)){a=Dw.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(Ew.test(a))c=Fw(Ew,a);else if(Gw.test(a))c=Fw(Gw,a);else if(Hw.test(a))a=Hw.exec(a),c=Number(a[1])/b.frameRate;else if(Iw.test(a))a=Iw.exec(a),c=Number(a[1])/b.g;else if(Jw.test(a))c=Fw(Jw,a);else if(a)throw new K(2,2,2001,"Could not parse cue time range in TTML");return c}
942
+ function Fw(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)}G("shaka.text.TtmlTextParser",hw);hw.prototype.parseMedia=hw.prototype.parseMedia;hw.prototype.setSequenceMode=hw.prototype.setSequenceMode;hw.prototype.parseInit=hw.prototype.parseInit;
943
+ function kw(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]))}
944
+ var lw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,yw=/^(\d{1,2}(?:\.\d+)?|100)%$/,xw=/^(\d+px|\d+em|\d*\.?\d+c)$/,mw=/^(\d+)px (\d+)px$/,Dw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ew=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Gw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Hw=/^(\d*(?:\.\d*)?)f$/,Iw=/^(\d*(?:\.\d*)?)t$/,Jw=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),ww={left:qc,center:"center",right:"end",start:qc,
945
+ end:"end"},vw={left:"line-left",center:"center",right:"line-right"},iw=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],jw=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],pw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Gd["application/ttml+xml"]=function(){return new hw};function Kw(){this.g=new hw}Kw.prototype.parseInit=function(a){var b=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new K(2,2,2007);};Kw.prototype.setSequenceMode=function(){};Kw.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Nf).box("mdat",Wf(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new K(2,2,2007);return f};
946
+ G("shaka.text.Mp4TtmlParser",Kw);Kw.prototype.parseMedia=Kw.prototype.parseMedia;Kw.prototype.setSequenceMode=Kw.prototype.setSequenceMode;Kw.prototype.parseInit=Kw.prototype.parseInit;Gd['application/mp4; codecs="stpp"']=function(){return new Kw};Gd['application/mp4; codecs="stpp.ttml"']=function(){return new Kw};Gd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Kw};Gd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Kw};function Lw(){this.g=!1}Lw.prototype.parseInit=function(){};Lw.prototype.setSequenceMode=function(a){this.g=a};
947
+ Lw.prototype.parseMedia=function(a,b){a=cd(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 K(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Mw(new br(d[1]));if(null==a)throw new K(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
948
948
  e/9E4-a}}b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new br(d);var f=new lc;er(d);cr(d);for(var g=er(d);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])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
949
- (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");cr(d);g=er(d)}b.push(f)}e=new Map;Ow(e);d=[];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=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
949
+ (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");cr(d);g=er(d)}b.push(f)}e=new Map;Nw(e);d=[];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=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
950
950
  (g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new jc(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var q=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=q;break;case "color":m=!0;l.color=q;break;case "font-family":m=!0;l.fontFamily=q;break;case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==
951
951
  q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=tc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
952
- g=new br(f[0]);k=Nw(g);n=dr(g,/[ \t]+--\x3e[ \t]+/g);l=Nw(g);if(null==k||null==n||null==l)throw new K(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new jc(k,l,"");cr(g);for(k=er(g);k;)Pw(m,k,b),cr(g),k=er(g);Qw(f,m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};
953
- function Ow(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new jc(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new jc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
954
- function Qw(a,b,c){if(a.includes("<")){0===c.size&&Ow(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+
955
- 1:">"===a[e]&&0<f&&(f=a.substr(f,e-f),f.match(Rw)&&d.push(f),f=-1);d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?
956
- (g=h+1,"v"!=e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=qg("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Sw(a);return}a=t(e);for(e=a.next();!e.done;e=a.next())Tw(e.value,b,d,c);b.nestedCues=d}else b.payload=
957
- Sw(a)}else b.payload=Sw(a)}function Uw(a,b){return a&&0<a.length?a:b}
958
- function Tw(a,b,c,d){var e=b.clone();e.nestedCues=[];e.payload="";e.line=null;e.region=new lc;e.position=null;e.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=Uw(h.backgroundColor,e.backgroundColor),e.color=Uw(h.color,e.color),e.fontFamily=Uw(h.fontFamily,
959
- e.fontFamily),e.fontSize=Uw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.textShadow=h.textShadow,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Nw(new br(g)))e.startTime=g}}if(gg(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=
960
- a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=Sw(a),c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Tw(a.value,e,c,d)}
961
- function Pw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=nc:a.textAlign=vc[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))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
962
- "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Vw(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=xc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=pc,a.line=Number(c[1]),c[2]&&(a.lineAlign=xc[c[2].toUpperCase()])}function Vw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
963
- function Nw(a){a=dr(a,Rw);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}function Sw(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}G("shaka.text.VttTextParser",Mw);Mw.prototype.parseMedia=Mw.prototype.parseMedia;
964
- Mw.prototype.setSequenceMode=Mw.prototype.setSequenceMode;Mw.prototype.parseInit=Mw.prototype.parseInit;var Rw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Gd["text/vtt"]=function(){return new Mw};Gd['text/vtt; codecs="vtt"']=function(){return new Mw};Gd['text/vtt; codecs="wvtt"']=function(){return new Mw};function Ww(){this.g=null}Ww.prototype.parseInit=function(a){var b=this,c=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).S("mdhd",function(d){d=ui(d.reader,d.version);b.g=d.timescale}).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new K(2,2,2008);if(!c)throw new K(2,2,2008);};Ww.prototype.setSequenceMode=function(){};
965
- Ww.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new K(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Nf).box("moof",Sf).box("traf",Sf).S("tfdt",function(A){g=!0;c=ti(A.reader,A.version).yf}).S("tfhd",function(A){l=si(A.reader,A.flags).Hf}).S("trun",function(A){h=!0;d=vi(A.reader,A.version,A.flags).Xf}).box("mdat",Wf(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new K(2,2,2008);a=c;for(var m=new Kf(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=p.value;
966
- var q=p.Oe||l,v=p.Pd?c+p.Pd:a;a=v+(q||0);var w=0;do{var x=m.O();w+=x;var z=m.O(),B=null;"vttc"==Rf(z)?8<x&&(B=m.Eb(x-8)):m.skip(x-8);q&&B&&(x=Xw(B,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(x))}while(p.sampleSize&&w<p.sampleSize)}return f.filter(Pd)};function Xw(a,b,c){var d,e,f;(new Nf).box("payl",Wf(function(g){d=cd(g)})).box("iden",Wf(function(g){e=cd(g)})).box("sttg",Wf(function(g){f=cd(g)})).parse(a);return d?Yw(d,e,f,b,c):null}
967
- function Yw(a,b,c,d,e){d=new jc(d,e,"");Qw(a,d,new Map);b&&(d.id=b);if(c)for(a=new br(c),b=er(a);b;)Pw(d,b,[]),cr(a),b=er(a);return d}G("shaka.text.Mp4VttParser",Ww);Ww.prototype.parseMedia=Ww.prototype.parseMedia;Ww.prototype.setSequenceMode=Ww.prototype.setSequenceMode;Ww.prototype.parseInit=Ww.prototype.parseInit;Gd['application/mp4; codecs="wvtt"']=function(){return new Ww};function Zw(){}Zw.prototype.parseInit=function(){};Zw.prototype.setSequenceMode=function(){};Zw.prototype.parseMedia=function(a){var b=cd(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 br(c[0]),e=$w(d),f=dr(d,/,/g);d=$w(d);if(null==e||null==f||null==d)throw new K(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jc(e,d,c.slice(1).join("\n").trim()))}return a};
968
- function $w(a){a=dr(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}G("shaka.text.SbvTextParser",Zw);Zw.prototype.parseMedia=Zw.prototype.parseMedia;Zw.prototype.setSequenceMode=Zw.prototype.setSequenceMode;Zw.prototype.parseInit=Zw.prototype.parseInit;Gd["text/x-subviewer"]=function(){return new Zw};function ax(){this.g=new Mw}ax.prototype.parseInit=function(){};ax.prototype.setSequenceMode=function(){};ax.prototype.parseMedia=function(a,b,c){a=cd(a);a=bx(a);a=Gc(gd(a));return this.g.parseMedia(a,b,c)};function bx(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")+"\n\n";return b}G("shaka.text.SrtTextParser",ax);
969
- ax.srt2webvtt=bx;ax.prototype.parseMedia=ax.prototype.parseMedia;ax.prototype.setSequenceMode=ax.prototype.setSequenceMode;ax.prototype.parseInit=ax.prototype.parseInit;Gd["text/srt"]=function(){return new ax};function cx(){}cx.prototype.parseInit=function(){};cx.prototype.setSequenceMode=function(){};
970
- cx.prototype.parseMedia=function(a){var b="",c="";a=cd(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=dx.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=ex.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(fx);else if("Style"==e){e=f.split(fx);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
971
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={ke:e.ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=ex.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(fx);else if("Dialogue"==f){g=g.split(fx);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=gx(f.Start);var k=gx(f.End);g=new jc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.ke}}(e)))&&hx(g,f);d.push(g)}return d};
972
- function hx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ix(c))a.color=c;if(c=b.BackColour)if(c=ix(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=rc;a.textAlign="start";break;case 2:a.displayAlign=rc;a.textAlign=nc;break;case 3:a.displayAlign=rc;a.textAlign="end";
952
+ g=new br(f[0]);k=Mw(g);n=dr(g,/[ \t]+--\x3e[ \t]+/g);l=Mw(g);if(null==k||null==n||null==l)throw new K(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new jc(k,l,"");cr(g);for(k=er(g);k;)Ow(m,k,b),cr(g),k=er(g);Pw(f,m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};
953
+ function Nw(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new jc(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new jc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
954
+ function Pw(a,b,c){if(a.includes("<")){0===c.size&&Nw(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+
955
+ 1:">"===a[e]&&0<f&&(f=a.substr(f,e-f),f.match(Qw)&&d.push(f),f=-1);d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?
956
+ (g=h+1,"v"!=e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=qg("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Rw(a);return}a=t(e);for(e=a.next();!e.done;e=a.next())Sw(e.value,b,d,c);b.nestedCues=d}else b.payload=
957
+ Rw(a)}else b.payload=Rw(a)}function Tw(a,b){return a&&0<a.length?a:b}
958
+ function Sw(a,b,c,d){var e=b.clone();e.nestedCues=[];e.payload="";e.line=null;e.region=new lc;e.position=null;e.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=Tw(h.backgroundColor,e.backgroundColor),e.color=Tw(h.color,e.color),e.fontFamily=Tw(h.fontFamily,
959
+ e.fontFamily),e.fontSize=Tw(h.fontSize,e.fontSize),e.textShadow=Tw(h.textShadow,e.textShadow),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Mw(new br(g)))e.startTime=g}}if(gg(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=
960
+ d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=Rw(a),c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Sw(a.value,e,c,d)}
961
+ function Ow(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=nc:a.textAlign=vc[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))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
962
+ "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Uw(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=xc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=pc,a.line=Number(c[1]),c[2]&&(a.lineAlign=xc[c[2].toUpperCase()])}function Uw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
963
+ function Mw(a){a=dr(a,Qw);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}function Rw(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}G("shaka.text.VttTextParser",Lw);Lw.prototype.parseMedia=Lw.prototype.parseMedia;
964
+ Lw.prototype.setSequenceMode=Lw.prototype.setSequenceMode;Lw.prototype.parseInit=Lw.prototype.parseInit;var Qw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Gd["text/vtt"]=function(){return new Lw};Gd['text/vtt; codecs="vtt"']=function(){return new Lw};Gd['text/vtt; codecs="wvtt"']=function(){return new Lw};function Vw(){this.g=null}Vw.prototype.parseInit=function(a){var b=this,c=!1;(new Nf).box("moov",Sf).box("trak",Sf).box("mdia",Sf).S("mdhd",function(d){d=ui(d.reader,d.version);b.g=d.timescale}).box("minf",Sf).box("stbl",Sf).S("stsd",Uf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new K(2,2,2008);if(!c)throw new K(2,2,2008);};Vw.prototype.setSequenceMode=function(){};
965
+ Vw.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new K(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Nf).box("moof",Sf).box("traf",Sf).S("tfdt",function(A){g=!0;c=ti(A.reader,A.version).yf}).S("tfhd",function(A){l=si(A.reader,A.flags).Hf}).S("trun",function(A){h=!0;d=vi(A.reader,A.version,A.flags).Xf}).box("mdat",Wf(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new K(2,2,2008);a=c;for(var m=new Kf(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=p.value;
966
+ var q=p.Oe||l,v=p.Pd?c+p.Pd:a;a=v+(q||0);var w=0;do{var x=m.O();w+=x;var z=m.O(),B=null;"vttc"==Rf(z)?8<x&&(B=m.Eb(x-8)):m.skip(x-8);q&&B&&(x=Ww(B,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(x))}while(p.sampleSize&&w<p.sampleSize)}return f.filter(Pd)};function Ww(a,b,c){var d,e,f;(new Nf).box("payl",Wf(function(g){d=cd(g)})).box("iden",Wf(function(g){e=cd(g)})).box("sttg",Wf(function(g){f=cd(g)})).parse(a);return d?Xw(d,e,f,b,c):null}
967
+ function Xw(a,b,c,d,e){d=new jc(d,e,"");Pw(a,d,new Map);b&&(d.id=b);if(c)for(a=new br(c),b=er(a);b;)Ow(d,b,[]),cr(a),b=er(a);return d}G("shaka.text.Mp4VttParser",Vw);Vw.prototype.parseMedia=Vw.prototype.parseMedia;Vw.prototype.setSequenceMode=Vw.prototype.setSequenceMode;Vw.prototype.parseInit=Vw.prototype.parseInit;Gd['application/mp4; codecs="wvtt"']=function(){return new Vw};function Yw(){}Yw.prototype.parseInit=function(){};Yw.prototype.setSequenceMode=function(){};Yw.prototype.parseMedia=function(a){var b=cd(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 br(c[0]),e=Zw(d),f=dr(d,/,/g);d=Zw(d);if(null==e||null==f||null==d)throw new K(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jc(e,d,c.slice(1).join("\n").trim()))}return a};
968
+ function Zw(a){a=dr(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}G("shaka.text.SbvTextParser",Yw);Yw.prototype.parseMedia=Yw.prototype.parseMedia;Yw.prototype.setSequenceMode=Yw.prototype.setSequenceMode;Yw.prototype.parseInit=Yw.prototype.parseInit;Gd["text/x-subviewer"]=function(){return new Yw};function $w(){this.g=new Lw}$w.prototype.parseInit=function(){};$w.prototype.setSequenceMode=function(){};$w.prototype.parseMedia=function(a,b,c){a=cd(a);a=ax(a);a=Gc(gd(a));return this.g.parseMedia(a,b,c)};function ax(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")+"\n\n";return b}G("shaka.text.SrtTextParser",$w);
969
+ $w.srt2webvtt=ax;$w.prototype.parseMedia=$w.prototype.parseMedia;$w.prototype.setSequenceMode=$w.prototype.setSequenceMode;$w.prototype.parseInit=$w.prototype.parseInit;Gd["text/srt"]=function(){return new $w};function bx(){}bx.prototype.parseInit=function(){};bx.prototype.setSequenceMode=function(){};
970
+ bx.prototype.parseMedia=function(a){var b="",c="";a=cd(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=cx.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=dx.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(ex);else if("Style"==e){e=f.split(ex);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
971
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={ke:e.ke},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=dx.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(ex);else if("Dialogue"==f){g=g.split(ex);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=fx(f.Start);var k=fx(f.End);g=new jc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.ke=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.ke}}(e)))&&gx(g,f);d.push(g)}return d};
972
+ function gx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=hx(c))a.color=c;if(c=b.BackColour)if(c=hx(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=rc;a.textAlign="start";break;case 2:a.displayAlign=rc;a.textAlign=nc;break;case 3:a.displayAlign=rc;a.textAlign="end";
973
973
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=nc;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=nc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
974
- function ix(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}function gx(a){a=jx.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}G("shaka.text.SsaTextParser",cx);cx.prototype.parseMedia=cx.prototype.parseMedia;cx.prototype.setSequenceMode=cx.prototype.setSequenceMode;cx.prototype.parseInit=cx.prototype.parseInit;
975
- var dx=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,ex=/^\s*([^:]+):\s*(.*)/,fx=/\s*,\s*/,jx=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Gd["text/x-ssa"]=function(){return new cx};/*
974
+ function hx(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}function fx(a){a=ix.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}G("shaka.text.SsaTextParser",bx);bx.prototype.parseMedia=bx.prototype.parseMedia;bx.prototype.setSequenceMode=bx.prototype.setSequenceMode;bx.prototype.parseInit=bx.prototype.parseInit;
975
+ var cx=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,dx=/^\s*([^:]+):\s*(.*)/,ex=/\s*,\s*/,ix=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Gd["text/x-ssa"]=function(){return new bx};/*
976
976
  @license
977
977
  EME Encryption Scheme Polyfill
978
978
  Copyright 2019 Google LLC
979
979
  SPDX-License-Identifier: Apache-2.0
980
980
  */
981
- function kx(){}var lx;function mx(){lx?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(lx=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=nx):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
982
- function nx(a,b){var c=this,d;return D(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,lx.call(c,a,b),2);d=e.h;if(ox(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=lx,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=px;return e.return(px.call(c,
981
+ function jx(){}var kx;function lx(){kx?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(kx=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=mx):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
982
+ function mx(a,b){var c=this,d;return D(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,kx.call(c,a,b),2);d=e.h;if(nx(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=kx,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=ox;return e.return(ox.call(c,
983
983
  a,b))})}
984
- function px(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return D(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=qx(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=rx(h.videoCapabilities,d),l=rx(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."),
985
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,lx.call(c,a,e),2)}p=q.h;return q.return(new sx(p,d))})}function rx(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}G("EmeEncryptionSchemePolyfill",kx);kx.install=mx;function tx(){}var ux;
986
- function vx(){ux?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ux=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=wx):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
987
- function wx(a){var b=this,c,d,e;return D(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,ux.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&ox(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ux,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
988
- navigator.mediaCapabilities.decodingInfo=xx;if(d){f.D(3);break}e=c;return u(f,yx(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(xx.call(b,a))}})}
989
- function xx(a){var b=this,c,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=qx(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):u(m,ux.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
990
- new sx(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,yx(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
991
- function yx(a){var b,c;return D(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
992
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}G("McEncryptionSchemePolyfill",tx);tx.install=vx;function sx(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
993
- sx.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};sx.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
994
- function qx(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-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ox(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}
995
- function zx(){}function Cu(){mx();vx()}G("EncryptionSchemePolyfills",zx);zx.install=Cu;"undefined"!==typeof module&&module.exports&&(module.exports=zx);/*
984
+ function ox(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return D(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=px(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=qx(h.videoCapabilities,d),l=qx(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."),
985
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,kx.call(c,a,e),2)}p=q.h;return q.return(new rx(p,d))})}function qx(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}G("EmeEncryptionSchemePolyfill",jx);jx.install=lx;function sx(){}var tx;
986
+ function ux(){tx?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(tx=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=vx):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
987
+ function vx(a){var b=this,c,d,e;return D(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,tx.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&nx(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=tx,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
988
+ navigator.mediaCapabilities.decodingInfo=wx;if(d){f.D(3);break}e=c;return u(f,xx(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(wx.call(b,a))}})}
989
+ function wx(a){var b=this,c,d,e,f,g,h,k,l;return D(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=px(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):u(m,tx.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
990
+ new rx(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,xx(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
991
+ function xx(a){var b,c;return D(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
992
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}G("McEncryptionSchemePolyfill",sx);sx.install=ux;function rx(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
993
+ rx.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};rx.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
994
+ function px(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-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function nx(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}
995
+ function yx(){}function Cu(){lx();ux()}G("EncryptionSchemePolyfills",yx);yx.install=Cu;"undefined"!==typeof module&&module.exports&&(module.exports=yx);/*
996
996
  @license
997
997
  Copyright 2013 Ali Al Dallal
998
998
 
@@ -1016,7 +1016,7 @@ function zx(){}function Cu(){mx();vx()}G("EncryptionSchemePolyfills",zx);zx.inst
1016
1016
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1017
1017
  SOFTWARE.
1018
1018
  */
1019
- for(var Ax={ach:{u:"Lwo",A:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",A:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic (Morocco)"},
1019
+ for(var zx={ach:{u:"Lwo",A:"Acholi"},ady:{u:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"T\u0255\u0265i",A:"Akan"},ar:{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-AR":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic"},"ar-MA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",A:"Arabic (Morocco)"},
1020
1020
  "ar-SA":{u:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",A:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",A:"Aymara"},az:{u:"Az\u0259rbaycan dili",A:"Azerbaijani"},"az-AZ":{u:"Az\u0259rbaycan dili",A:"Azerbaijani"},"be-BY":{u:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",A:"Belarusian"},bg:{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",A:"Bulgarian"},"bg-BG":{u:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1021
1021
  A:"Bulgarian"},bn:{u:"\u09ac\u09be\u0982\u09b2\u09be",A:"Bengali"},"bn-IN":{u:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",A:"Bengali (India)"},"bn-BD":{u:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",A:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",A:"Bosnian"},ca:{u:"Catal\u00e0",A:"Catalan"},"ca-ES":{u:"Catal\u00e0",A:"Catalan"},cak:{u:"Maya Kaqchikel",A:"Kaqchikel"},"ck-US":{u:"\u13e3\u13b3\u13a9 (tsalagi)",A:"Cherokee"},cs:{u:"\u010ce\u0161tina",
1022
1022
  A:"Czech"},"cs-CZ":{u:"\u010ce\u0161tina",A:"Czech"},cy:{u:"Cymraeg",A:"Welsh"},"cy-GB":{u:"Cymraeg",A:"Welsh"},da:{u:"Dansk",A:"Danish"},"da-DK":{u:"Dansk",A:"Danish"},de:{u:"Deutsch",A:"German"},"de-AT":{u:"Deutsch (\u00d6sterreich)",A:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",A:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",A:"German (Switzerland)"},dsb:{u:"Dolnoserb\u0161\u0107ina",A:"Lower Sorbian"},el:{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",A:"Greek"},"el-GR":{u:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -1037,56 +1037,56 @@ A:"Slovak"},"sk-SK":{u:"Sloven\u010dina (Slovakia)",A:"Slovak (Slovakia)"},sl:{u
1037
1037
  sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",A:"Tamil"},"ta-IN":{u:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",A:"Tamil"},te:{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",A:"Telugu"},"te-IN":{u:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",A:"Telugu"},tg:{u:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",A:"Tajik"},"tg-TJ":{u:"\u0442\u043e\u04b7\u0438\u043a\u04e3",A:"Tajik"},th:{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1038
1038
  A:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",A:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",A:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1039
1039
  A:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",A:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",A:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",A:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
1040
- A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},Bx=t(Object.keys(Ax)),Cx=Bx.next();!Cx.done;Cx=
1041
- Bx.next()){var Dx=Cx.value;Ax[Dx.toLowerCase()]=Ax[Dx]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Cf;this.localization=this.controls.wa;this.player=this.controls.fc();this.video=this.controls.Db();this.adManager=this.player.xd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1042
- W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};G("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Ex(a){return Fx(a,"shaka-back-to-overflow-button")}function Fx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Gx(a){a&&(a=Fx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Hx(){var a=P("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Ix(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1043
- function Jx(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 Kx(a,b){W.call(this,a,b);var c=this;this.i=P("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=P("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new N(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Jx(e-d,!1)+" / "+Jx(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=
1044
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Ca();c.g.ma(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ca(),this.g.ma(.5))}ra(Kx,W);Kx.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};G("shaka.ui.AdCounter",Kx);function Lx(a,b){W.call(this,a,b);var c=this;this.g=P("div");this.g.classList.add("shaka-ad-position");Ix(this.g,!1);this.parent.appendChild(this.g);this.h=P("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Mx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Mx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Mx(c)});this.eventManager.o(this.adManager,
1045
- "ad-stopped",function(){c.h.textContent="";Ix(c.g,!1)});this.ad&&Mx(this)}ra(Lx,W);function Mx(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));Ix(a.g,!0)}}G("shaka.ui.AdPosition",Lx);function Nx(a,b){W.call(this,a,b);var c=this;this.button=Cl();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1046
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Ox(c.controls):Px(c.controls)});this.ad&&(this.g(),this.h())}ra(Nx,W);Nx.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};
1047
- Nx.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};Nx.prototype.g=function(){};Nx.prototype.h=function(){};G("shaka.ui.PlayButton",Nx);function Qx(a,b){Nx.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(Qx,Nx);Qx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Qx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};G("shaka.ui.BigPlayButton",Qx);function Rx(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=P("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.o(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";Ix(c.g,!0)}else Ix(c.g,
1048
- !1)});this.eventManager.o(window,"click",function(){Ix(c.g,!1)});Sx(this)}ra(Rx,W);Rx.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=[];W.prototype.release.call(this)};function Tx(a,b){Ux.set(a,b)}function Sx(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Ux.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}G("shaka.ui.ContextMenu",Rx);
1049
- Rx.registerElement=Tx;var Ux=new Map;function Vx(a,b,c,d){W.call(this,a,b);var e=this;this.container=P("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ha(c));this.g=!1;this.bar=document.createElement("input");this.l=new N(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ha(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);
1050
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Rb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Rb()&&(e.g=!0,Wx(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Wx(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Wx(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1051
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}ra(Vx,W);r=Vx.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};
1040
+ A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},Ax=t(Object.keys(zx)),Bx=Ax.next();!Bx.done;Bx=
1041
+ Ax.next()){var Cx=Bx.value;zx[Cx.toLowerCase()]=zx[Cx]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Cf;this.localization=this.controls.wa;this.player=this.controls.fc();this.video=this.controls.Db();this.adManager=this.player.xd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
1042
+ W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};G("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Dx(a){return Ex(a,"shaka-back-to-overflow-button")}function Ex(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Fx(a){a&&(a=Ex(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Gx(){var a=P("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Hx(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1043
+ function Ix(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 Jx(a,b){W.call(this,a,b);var c=this;this.i=P("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=P("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new N(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Ix(e-d,!1)+" / "+Ix(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=
1044
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.Ca();c.g.ma(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ca(),this.g.ma(.5))}ra(Jx,W);Jx.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};G("shaka.ui.AdCounter",Jx);function Kx(a,b){W.call(this,a,b);var c=this;this.g=P("div");this.g.classList.add("shaka-ad-position");Hx(this.g,!1);this.parent.appendChild(this.g);this.h=P("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Lx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Lx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Lx(c)});this.eventManager.o(this.adManager,
1045
+ "ad-stopped",function(){c.h.textContent="";Hx(c.g,!1)});this.ad&&Lx(this)}ra(Kx,W);function Lx(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));Hx(a.g,!0)}}G("shaka.ui.AdPosition",Kx);function Mx(a,b){W.call(this,a,b);var c=this;this.button=Cl();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
1046
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Nx(c.controls):Ox(c.controls)});this.ad&&(this.g(),this.h())}ra(Mx,W);Mx.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};
1047
+ Mx.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};Mx.prototype.g=function(){};Mx.prototype.h=function(){};G("shaka.ui.PlayButton",Mx);function Px(a,b){Mx.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(Px,Mx);Px.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Px.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};G("shaka.ui.BigPlayButton",Px);function Qx(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=P("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.o(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";Hx(c.g,!0)}else Hx(c.g,
1048
+ !1)});this.eventManager.o(window,"click",function(){Hx(c.g,!1)});Rx(this)}ra(Qx,W);Qx.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=[];W.prototype.release.call(this)};function Sx(a,b){Tx.set(a,b)}function Rx(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Tx.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}G("shaka.ui.ContextMenu",Qx);
1049
+ Qx.registerElement=Sx;var Tx=new Map;function Ux(a,b,c,d){W.call(this,a,b);var e=this;this.container=P("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ha(c));this.g=!1;this.bar=document.createElement("input");this.l=new N(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ha(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);
1050
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Rb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Rb()&&(e.g=!0,Vx(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Vx(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Vx(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
1051
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}ra(Ux,W);r=Ux.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};
1052
1052
  r.changeTo=function(a){this.g||(this.g=!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.l.R(.5)};r.getValue=function(){return parseFloat(this.bar.value)};r.setValue=function(a){this.g||(this.bar.value=a)};
1053
- function Wx(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}G("shaka.ui.RangeElement",Vx);Vx.prototype.setValue=Vx.prototype.setValue;Vx.prototype.getValue=Vx.prototype.getValue;Vx.prototype.changeTo=Vx.prototype.changeTo;Vx.prototype.onChangeEnd=Vx.prototype.onChangeEnd;Vx.prototype.onChange=Vx.prototype.onChange;Vx.prototype.onChangeStart=Vx.prototype.onChangeStart;
1054
- Vx.prototype.setRange=Vx.prototype.setRange;function Xx(a,b){Vx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=P("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new N(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.s=new N(function(){Yx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",
1055
- function(){return Zx(c)});this.eventManager.o(this.localization,"locale-changed",function(){return Zx(c)});this.eventManager.o(this.adManager,"ad-started",function(){$x(c)||Ix(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){$x(c)&&Ix(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;ay(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];ay(c)});this.setValue(this.video.currentTime);this.update();Zx(this);
1056
- this.ad&&Ix(this.container,!1)}ra(Xx,Vx);r=Xx.prototype;r.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Vx.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ze(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};r.onChangeEnd=function(){this.h.Ca();this.controls.Ze(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1057
- r.update=function(){var a=this.m.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.Ma(),g=f.end-f.start;this.setRange(f.start,f.end);$x(this)?(Ix(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.m.showUnbufferedStart?
1058
- 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()+")")):Ix(this.container,!1)};
1059
- function Yx(a){if(a.i.length){for(var b=a.player.Ma(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1060
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function ay(a){Yx(a);var b=a.player.Ma();b=b.end-b.start;a.player.T()&&5<b&&a.s.ma(1)}function $x(a){var b=a.player.Ma();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Zx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}G("shaka.ui.SeekBar",Xx);function by(){}
1061
- by.prototype.create=function(a,b){return new Xx(a,b)};Xx.Factory=by;function Z(a,b,c,d){ib.call(this);var e=this;this.P=!0;this.i=d;this.C=new Ao(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.$a=!0;this.s=this.C.Db();this.B=c;this.F=this.C.fc();this.ra=a;this.j=b;this.Ya=this.F.xd();this.l=this.m=null;this.X=!1;this.G=[];this.yb=[];this.bb=!1;this.Z=new N(function(){e.j.style.cursor="none";e.bb=!1;cy(e)});this.aa=new N(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new N(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())Ix(g.value,
1062
- !1)});this.xa=new N(function(){e.Rb()&&dy(e)});this.J=null;this.H=[];this.wa=ey();this.h=new Cf;this.configure(this.i);fy(this);this.ea=new Set;gy(this);this.xa.ma(.125);this.h.o(this.wa,"locale-changed",function(f){e.Ya.setLocale(f.locales[0])})}ra(Z,ib);r=Z.prototype;
1063
- r.destroy=function(){var a=this;return D(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.xa&&(a.xa.stop(),a.xa=null);hy(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ra){b.D(6);break}return u(b,a.ra.destroy(),7);case 7:a.ra=
1064
- null;case 6:a.F=null,a.B=null,a.s=null,a.wa=null,a.ea.clear(),ib.prototype.release.call(a),C(b)}})};function hy(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function iy(a,b){jy.set(a,b)}r.rg=function(a){this.$a=a;gy(this)};r.nh=function(){cy(this)};
1065
- r.configure=function(a){this.i=a;this.C.Df(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Wa&&(this.Wa=null);this.Za&&(this.Za=null);this.g?(Dl(this.g),hy(this)):(ky(this),ly(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");my(this);this.i.addBigPlayButton&&ny(this);this.i.customContextMenu&&(this.Za=new Rx(this.U,this),this.H.push(this.Za));this.$||oy(this);this.ab=P("div");this.ab.classList.add("shaka-server-side-ad-container");
1066
- this.g.appendChild(this.ab);py(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ha(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));qy(this);this.yb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));cy(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1067
- c)}};r.Ue=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");cy(this)};r.ag=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ue(!1)};r.getAd=function(){return this.m};r.Eg=function(){return this.C};r.Qg=function(){return this.wa};r.fh=function(){return this.j};r.Db=function(){return this.s};r.Pg=function(){return this.B};r.fc=function(){return this.F};r.Og=function(){return this.ra};
1053
+ function Vx(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}G("shaka.ui.RangeElement",Ux);Ux.prototype.setValue=Ux.prototype.setValue;Ux.prototype.getValue=Ux.prototype.getValue;Ux.prototype.changeTo=Ux.prototype.changeTo;Ux.prototype.onChangeEnd=Ux.prototype.onChangeEnd;Ux.prototype.onChange=Ux.prototype.onChange;Ux.prototype.onChangeStart=Ux.prototype.onChangeStart;
1054
+ Ux.prototype.setRange=Ux.prototype.setRange;function Wx(a,b){Ux.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=P("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new N(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.s=new N(function(){Xx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",
1055
+ function(){return Yx(c)});this.eventManager.o(this.localization,"locale-changed",function(){return Yx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Zx(c)||Hx(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Zx(c)&&Hx(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;$x(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];$x(c)});this.setValue(this.video.currentTime);this.update();Yx(this);
1056
+ this.ad&&Hx(this.container,!1)}ra(Wx,Ux);r=Wx.prototype;r.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Ux.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ze(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};r.onChangeEnd=function(){this.h.Ca();this.controls.Ze(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1057
+ r.update=function(){var a=this.m.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.Ma(),g=f.end-f.start;this.setRange(f.start,f.end);Zx(this)?(Hx(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.m.showUnbufferedStart?
1058
+ 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()+")")):Hx(this.container,!1)};
1059
+ function Xx(a){if(a.i.length){for(var b=a.player.Ma(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=t(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1060
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function $x(a){Xx(a);var b=a.player.Ma();b=b.end-b.start;a.player.T()&&5<b&&a.s.ma(1)}function Zx(a){var b=a.player.Ma();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Yx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}G("shaka.ui.SeekBar",Wx);function ay(){}
1061
+ ay.prototype.create=function(a,b){return new Wx(a,b)};Wx.Factory=ay;function Z(a,b,c,d){ib.call(this);var e=this;this.P=!0;this.i=d;this.C=new Ao(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.$a=!0;this.s=this.C.Db();this.B=c;this.F=this.C.fc();this.ra=a;this.j=b;this.Ya=this.F.xd();this.l=this.m=null;this.X=!1;this.G=[];this.yb=[];this.bb=!1;this.Z=new N(function(){e.j.style.cursor="none";e.bb=!1;by(e)});this.aa=new N(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new N(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())Hx(g.value,
1062
+ !1)});this.xa=new N(function(){e.Rb()&&cy(e)});this.J=null;this.H=[];this.wa=dy();this.h=new Cf;this.configure(this.i);ey(this);this.ea=new Set;fy(this);this.xa.ma(.125);this.h.o(this.wa,"locale-changed",function(f){e.Ya.setLocale(f.locales[0])})}ra(Z,ib);r=Z.prototype;
1063
+ r.destroy=function(){var a=this;return D(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.xa&&(a.xa.stop(),a.xa=null);gy(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ra){b.D(6);break}return u(b,a.ra.destroy(),7);case 7:a.ra=
1064
+ null;case 6:a.F=null,a.B=null,a.s=null,a.wa=null,a.ea.clear(),ib.prototype.release.call(a),C(b)}})};function gy(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function hy(a,b){iy.set(a,b)}r.rg=function(a){this.$a=a;fy(this)};r.nh=function(){by(this)};
1065
+ r.configure=function(a){this.i=a;this.C.Df(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Wa&&(this.Wa=null);this.Za&&(this.Za=null);this.g?(Dl(this.g),gy(this)):(jy(this),ky(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");ly(this);this.i.addBigPlayButton&&my(this);this.i.customContextMenu&&(this.Za=new Qx(this.U,this),this.H.push(this.Za));this.$||ny(this);this.ab=P("div");this.ab.classList.add("shaka-server-side-ad-container");
1066
+ this.g.appendChild(this.ab);oy(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ha(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));py(this);this.yb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));by(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1067
+ c)}};r.Ue=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");by(this)};r.ag=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ue(!1)};r.getAd=function(){return this.m};r.Eg=function(){return this.C};r.Qg=function(){return this.wa};r.fh=function(){return this.j};r.Db=function(){return this.s};r.Pg=function(){return this.B};r.fc=function(){return this.F};r.Og=function(){return this.ra};
1068
1068
  r.Jg=function(){return this.g};r.Yg=function(){return this.ab};r.Gg=function(){return this.N};r.Hg=function(){return this.i};r.lh=function(){return this.X};r.Ze=function(a){this.X=a};r.ih=function(){return this.$a};r.Mf=function(){return this.l?this.l.getValue():this.s.currentTime};r.cg=function(a){this.J=a};r.qd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};r.jc=function(){this.I.Ca()};
1069
1069
  r.Dd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};r.lc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1070
- function ry(a){var b,c;return D(function(d){switch(d.g){case 1:wa(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}wa(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:za(d,4,2);break;case 9:Aa(d,
1071
- 2);case 4:za(d,0);break;case 2:c=Aa(d),a.dispatchEvent(new I("error",(new Map).set("detail",c))),C(d)}})}function sy(a){var b;return D(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}r.ef=function(){var a=this;return D(function(b){return a.lc()?u(b,sy(a),0):u(b,ry(a),0)})};
1072
- r.fg=function(){Ix(this.K,!0);Ix(this.N,!0);this.g.setAttribute("ad-active","true")};r.Of=function(){Ix(this.K,!1);Ix(this.N,!1);this.g.removeAttribute("ad-active")};function Px(a){a.P&&a.s.duration&&(a.F.ud(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Ox(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1073
- function ky(a){a.g=P("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.s.duration&&(a.Rb()?a.J=Date.now():(ty(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){uy(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.Dd()&&a.ef()})}
1074
- function ny(a){var b=P("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.Wa=new Qx(b,a);a.H.push(a.Wa)}function my(a){var b=P("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function vy(a){a.K=P("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Ix(a.K,b);a.L.appendChild(a.K);b=new Lx(a.K,a);a.H.push(b);b=new Kx(a.K,a);a.H.push(b)}
1075
- function oy(a){a.$=P("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=P("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",
1070
+ function qy(a){var b,c;return D(function(d){switch(d.g){case 1:wa(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}wa(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:za(d,4,2);break;case 9:Aa(d,
1071
+ 2);case 4:za(d,0);break;case 2:c=Aa(d),a.dispatchEvent(new I("error",(new Map).set("detail",c))),C(d)}})}function ry(a){var b;return D(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}r.ef=function(){var a=this;return D(function(b){return a.lc()?u(b,ry(a),0):u(b,qy(a),0)})};
1072
+ r.fg=function(){Hx(this.K,!0);Hx(this.N,!0);this.g.setAttribute("ad-active","true")};r.Of=function(){Hx(this.K,!1);Hx(this.N,!1);this.g.removeAttribute("ad-active")};function Ox(a){a.P&&a.s.duration&&(a.F.ud(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Nx(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1073
+ function jy(a){a.g=P("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.s.duration&&(a.Rb()?a.J=Date.now():(sy(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){ty(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.Dd()&&a.ef()})}
1074
+ function my(a){var b=P("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.Wa=new Px(b,a);a.H.push(a.Wa)}function ly(a){var b=P("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function uy(a){a.K=P("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Hx(a.K,b);a.L.appendChild(a.K);b=new Kx(a.K,a);a.H.push(b);b=new Jx(a.K,a);a.H.push(b)}
1075
+ function ny(a){a.$=P("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=P("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",
1076
1076
  "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1077
- function py(a){a.L=P("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.g.appendChild(a.L);a.h.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.jc()});vy(a);a.U=P("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.L.appendChild(a.U);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,jy.get(c)?
1078
- (c=jy.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function qy(a){if(a.i.addSeekBar)a.l=wy.create(a.L,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ly(a){a.N=P("div");a.N.classList.add("shaka-client-side-ad-container");Ix(a.N,!1);a.h.o(a.N,"click",function(){uy(a)});a.j.appendChild(a.N)}
1079
- function fy(a){a.h.o(a.F,"buffering",function(){a.P&&Ix(a.$,a.F.Tc())});a.P&&Ix(a.$,a.F.Tc());a.h.o(window,"keydown",function(b){xy(a,b)});a.h.o(window,"click",function(){return a.jc()});a.h.o(a,"submenuopen",function(){a.jc()});a.h.o(a.s,"play",function(){cy(a)});a.h.o(a.s,"pause",function(){cy(a)});a.h.o(a.j,"mousemove",function(b){ty(a,b)});a.h.o(a.j,"touchmove",function(b){ty(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ty(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.Ca()});
1080
- a.h.o(a.C,"caststatuschanged",function(){gy(a)});a.h.o(a.j,"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.g.contains(c)&&ty(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),yy(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),yy(a,a.l.getValue()+c));break;case "Home":a.l&&
1081
- yy(a,a.F.Ma().start);break;case "End":a.l&&yy(a,a.F.Ma().end);break;case " ":e&&zy(a)}});a.h.o(a.j,"keyup",function(b){a.ea.delete(b.key)});a.h.o(a.Ya,"ad-started",function(b){a.m=b.ad;a.fg()});a.h.o(a.Ya,"ad-stopped",function(){a.m=null;a.Of()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return D(function(b){return u(b,Ay(a),0)})})}
1082
- function Ay(a){return D(function(b){return a.s&&0!=a.s.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.Dd()?screen.orientation.type.includes("landscape")&&!a.lc()?u(b,ry(a),0):screen.orientation.type.includes("portrait")&&a.lc()?u(b,sy(a),0):b.D(0):b.return()})}
1083
- function ty(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),cy(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.bb=!0,a.I.stop(),a.Rb()||(dy(a),cy(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function By(a){return window.matchMedia("hover: hover").matches?a.yb.some(function(b){return b.matches(":hover")}):!1}
1084
- function cy(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.bb||d||By(a)?(dy(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function uy(a){a.P&&(a.qd()?a.I.Ca():a.i.singleClickForPlayAndPause&&zy(a))}function zy(a){a.m&&a.m.isLinear()?Ox(a):Px(a)}
1085
- function gy(a){var b=a.C.qa();a.dispatchEvent(new I("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Rb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function yy(a,b){a.l.changeTo(b);a.Rb()&&dy(a)}
1086
- function dy(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new I("timeandseekrangeupdated"))}
1087
- function xy(a,b){a.ea.add(b.key);var c=a.qd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),cy(a),a.h.o(window,"mousedown",function(){a.h.tc(window,"mousedown")}));"Escape"==b.key&&a.I.Ca();c&&a.ea.has("Tab")&&Cy(a,b)}
1088
- function Cy(a,b){var c=a.G.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.ea.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1089
- function ey(){var a=new Wb("en");a.ka("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_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1077
+ function oy(a){a.L=P("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.g.appendChild(a.L);a.h.o(a.L,"click",function(d){d.target.closest(".shaka-overflow-button")||a.jc()});uy(a);a.U=P("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.L.appendChild(a.U);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,iy.get(c)?
1078
+ (c=iy.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function py(a){if(a.i.addSeekBar)a.l=vy.create(a.L,a),a.H.push(a.l);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ky(a){a.N=P("div");a.N.classList.add("shaka-client-side-ad-container");Hx(a.N,!1);a.h.o(a.N,"click",function(){ty(a)});a.j.appendChild(a.N)}
1079
+ function ey(a){a.h.o(a.F,"buffering",function(){a.P&&Hx(a.$,a.F.Tc())});a.P&&Hx(a.$,a.F.Tc());a.h.o(window,"keydown",function(b){wy(a,b)});a.h.o(window,"click",function(){return a.jc()});a.h.o(a,"submenuopen",function(){a.jc()});a.h.o(a.s,"play",function(){by(a)});a.h.o(a.s,"pause",function(){by(a)});a.h.o(a.j,"mousemove",function(b){sy(a,b)});a.h.o(a.j,"touchmove",function(b){sy(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){sy(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.Ca()});
1080
+ a.h.o(a.C,"caststatuschanged",function(){fy(a)});a.h.o(a.j,"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.g.contains(c)&&sy(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),xy(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),xy(a,a.l.getValue()+c));break;case "Home":a.l&&
1081
+ xy(a,a.F.Ma().start);break;case "End":a.l&&xy(a,a.F.Ma().end);break;case " ":e&&yy(a)}});a.h.o(a.j,"keyup",function(b){a.ea.delete(b.key)});a.h.o(a.Ya,"ad-started",function(b){a.m=b.ad;a.fg()});a.h.o(a.Ya,"ad-stopped",function(){a.m=null;a.Of()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return D(function(b){return u(b,zy(a),0)})})}
1082
+ function zy(a){return D(function(b){return a.s&&0!=a.s.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.Dd()?screen.orientation.type.includes("landscape")&&!a.lc()?u(b,qy(a),0):screen.orientation.type.includes("portrait")&&a.lc()?u(b,ry(a),0):b.D(0):b.return()})}
1083
+ function sy(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),by(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.bb=!0,a.I.stop(),a.Rb()||(cy(a),by(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function Ay(a){return window.matchMedia("hover: hover").matches?a.yb.some(function(b){return b.matches(":hover")}):!1}
1084
+ function by(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.bb||d||Ay(a)?(cy(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function ty(a){a.P&&(a.qd()?a.I.Ca():a.i.singleClickForPlayAndPause&&yy(a))}function yy(a){a.m&&a.m.isLinear()?Nx(a):Ox(a)}
1085
+ function fy(a){var b=a.C.qa();a.dispatchEvent(new I("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Rb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function xy(a,b){a.l.changeTo(b);a.Rb()&&cy(a)}
1086
+ function cy(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new I("timeandseekrangeupdated"))}
1087
+ function wy(a,b){a.ea.add(b.key);var c=a.qd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),by(a),a.h.o(window,"mousedown",function(){a.h.tc(window,"mousedown")}));"Escape"==b.key&&a.I.Ca();c&&a.ea.has("Tab")&&By(a,b)}
1088
+ function By(a,b){var c=a.G.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.ea.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1089
+ function dy(){var a=new Wb("en");a.ka("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_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1090
1090
  ["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"'],["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"],
1091
1091
  ["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"],["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"],
1092
1092
  ["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"],["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"],
@@ -1147,74 +1147,74 @@ a.ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1147
1147
  ["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"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Cf(navigator.languages||[]);return a}G("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Rb;Z.prototype.hideAdUI=Z.prototype.Of;Z.prototype.showAdUI=Z.prototype.fg;
1148
1148
  Z.prototype.toggleFullScreen=Z.prototype.ef;Z.prototype.isFullScreenEnabled=Z.prototype.lc;Z.prototype.isFullScreenSupported=Z.prototype.Dd;Z.prototype.hideSettingsMenus=Z.prototype.jc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.qd;Z.prototype.setLastTouchEventTime=Z.prototype.cg;Z.prototype.getDisplayTime=Z.prototype.Mf;Z.prototype.isCastAllowed=Z.prototype.ih;Z.prototype.setSeeking=Z.prototype.Ze;Z.prototype.isSeeking=Z.prototype.lh;Z.prototype.getConfig=Z.prototype.Hg;
1149
1149
  Z.prototype.getClientSideAdContainer=Z.prototype.Gg;Z.prototype.getServerSideAdContainer=Z.prototype.Yg;Z.prototype.getControlsContainer=Z.prototype.Jg;Z.prototype.getLocalPlayer=Z.prototype.Og;Z.prototype.getPlayer=Z.prototype.fc;Z.prototype.getLocalVideo=Z.prototype.Pg;Z.prototype.getVideo=Z.prototype.Db;Z.prototype.getVideoContainer=Z.prototype.fh;Z.prototype.getLocalization=Z.prototype.Qg;Z.prototype.getCastProxy=Z.prototype.Eg;Z.prototype.getAd=Z.prototype.getAd;
1150
- Z.prototype.setEnabledNativeControls=Z.prototype.ag;Z.prototype.setEnabledShakaControls=Z.prototype.Ue;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.nh;Z.prototype.allowCast=Z.prototype.rg;Z.registerSeekBar=function(a){wy=a};Z.registerElement=iy;Z.prototype.destroy=Z.prototype.destroy;var jy=new Map,wy=new by;function Dy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Cl();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=P("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");
1151
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Ey(this);this.eventManager.o(this.localization,"locale-updated",function(){Fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fy(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Ix(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Ix(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Ix(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.cg(Date.now());
1152
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Gy(c)});Fy(this);this.ad&&this.ad.isLinear()&&Ix(this.g,!1)}ra(Dy,W);Dy.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=[];W.prototype.release.call(this)};function Hy(a,b){Iy.set(a,b)}
1153
- function Ey(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Iy.get(c)?(c=Iy.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function Gy(a){if(a.controls.qd())a.controls.jc();else{Ix(a.h,!0);cy(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};mb(a.h.childNodes,b)&&nb(a.h.childNodes,b)[0].focus()}}function Fy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1154
- G("shaka.ui.OverflowMenu",Dy);Dy.registerElement=Hy;function Jy(){}Jy.prototype.create=function(a,b){return new Dy(a,b)};iy("overflow_menu",new Jy);var Iy=new Map;function Ky(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=P("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=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");a.appendChild(this.j);
1155
- this.i=P("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Ly(this);My(this);this.eventManager.o(this.localization,"locale-updated",function(){Ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ly(c)});this.eventManager.o(this.g,"click",function(){c.controls.Db().webkitShowPlaybackTargetPicker()});a=this.controls.Db();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1156
- c.player.we()==jn;Ix(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){My(c)})}ra(Ky,W);function My(a){var b=a.controls.Db();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Ly(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}G("shaka.ui.AirPlayButton",Ky);function Ny(){}Ny.prototype.create=function(a,b){return new Ky(a,b)};Hy("airplay",new Ny);
1157
- iy("airplay",new Ny);function Oy(a,b,c){this.i=a;this.h=Py(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ye()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.bf(b);b.ui=this;c.ui=this}r=Oy.prototype;r.destroy=function(){var a=this;return D(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;C(b)})};r.ye=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Xc()&&1<navigator.maxTouchPoints};
1158
- r.getConfiguration=function(){var a=Py(this);Pl(a,this.h,Py(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));Pl(this.h,a,Py(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new I("uiupdated"))};r.Ig=function(){return this.g};r.Ph=function(a){this.g.Ue(a)};
1159
- function Py(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1150
+ Z.prototype.setEnabledNativeControls=Z.prototype.ag;Z.prototype.setEnabledShakaControls=Z.prototype.Ue;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.nh;Z.prototype.allowCast=Z.prototype.rg;Z.registerSeekBar=function(a){vy=a};Z.registerElement=hy;Z.prototype.destroy=Z.prototype.destroy;var iy=new Map,vy=new ay;function Cy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Cl();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=P("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");
1151
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Dy(this);this.eventManager.o(this.localization,"locale-updated",function(){Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ey(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Hx(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Hx(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Hx(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.cg(Date.now());
1152
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Fy(c)});Ey(this);this.ad&&this.ad.isLinear()&&Hx(this.g,!1)}ra(Cy,W);Cy.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=[];W.prototype.release.call(this)};function Gy(a,b){Hy.set(a,b)}
1153
+ function Dy(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Hy.get(c)?(c=Hy.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function Fy(a){if(a.controls.qd())a.controls.jc();else{Hx(a.h,!0);by(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};mb(a.h.childNodes,b)&&nb(a.h.childNodes,b)[0].focus()}}function Ey(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1154
+ G("shaka.ui.OverflowMenu",Cy);Cy.registerElement=Gy;function Iy(){}Iy.prototype.create=function(a,b){return new Cy(a,b)};hy("overflow_menu",new Iy);var Hy=new Map;function Jy(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=P("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=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");a.appendChild(this.j);
1155
+ this.i=P("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Ky(this);Ly(this);this.eventManager.o(this.localization,"locale-updated",function(){Ky(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ky(c)});this.eventManager.o(this.g,"click",function(){c.controls.Db().webkitShowPlaybackTargetPicker()});a=this.controls.Db();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1156
+ c.player.we()==jn;Hx(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Ly(c)})}ra(Jy,W);function Ly(a){var b=a.controls.Db();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Ky(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}G("shaka.ui.AirPlayButton",Jy);function My(){}My.prototype.create=function(a,b){return new Jy(a,b)};Gy("airplay",new My);
1157
+ hy("airplay",new My);function Ny(a,b,c){this.i=a;this.h=Oy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ye()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.bf(b);b.ui=this;c.ui=this}r=Ny.prototype;r.destroy=function(){var a=this;return D(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;C(b)})};r.ye=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Xc()&&1<navigator.maxTouchPoints};
1158
+ r.getConfiguration=function(){var a=Oy(this);Pl(a,this.h,Oy(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Ql(a,b));Pl(this.h,a,Oy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new I("uiupdated"))};r.Ig=function(){return this.g};r.Ph=function(a){this.g.Ue(a)};
1159
+ function Oy(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1160
1160
  "picture_in_picture","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)",level:"rgb(255, 255, 255)"},
1161
- trackLabelFormat:Qy,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ye()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1162
- function Ry(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y;return D(function(E){switch(E.g){case 1:ru();if(!zm())return Sy("shaka-ui-load-failed",Ty),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1163
- h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Uy(g,f,k)}E.D(2);break}p=t(a);q=p.next();case 4:if(q.done){E.D(2);break}v=q.value;if(v.ui){E.D(5);break}w=null;x=t(b);for(e=x.next();!e.done;e=x.next())if(z=e.value,z.parentElement==v){w=z;break}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),v.appendChild(w));
1164
- B=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(y=m.value,y.parentElement==v){B=y;break}B||(B=document.createElement("canvas"),B.classList.add("shaka-canvas-container"),v.appendChild(B));wa(E,7);return u(E,Uy(v,w,B),9);case 9:za(E,5);break;case 7:return Aa(E),Sy("shaka-ui-load-failed",Vy),E.return();case 5:q=p.next();E.D(4);break;case 2:Sy("shaka-ui-loaded"),C(E)}})}function Sy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1165
- function Uy(a,b,c){var d,e,f,g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:d=new R(b);e=new Oy(d,a,b);d.xf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1166
- b.controls&&e.g.ag(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){p.D(0);break}n=m.value;wa(p,5);return u(p,e.g.fc().load(n.getAttribute("src")),7);case 7:p.D(0);break;case 5:Aa(p);case 3:m=l.next(),p.D(2)}})}G("shaka.ui.Overlay",Oy);Oy.prototype.setEnabled=Oy.prototype.Ph;Oy.prototype.getControls=Oy.prototype.Ig;Oy.prototype.configure=Oy.prototype.configure;
1167
- Oy.prototype.getConfiguration=Oy.prototype.getConfiguration;Oy.prototype.isMobile=Oy.prototype.ye;Oy.prototype.destroy=Oy.prototype.destroy;var Qy=0;Oy.TrackLabelFormat={LANGUAGE:Qy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ty=0,Vy=1;Oy.FailReasonCode={NO_BROWSER_SUPPORT:Ty,PLAYER_FAILED_TO_LOAD:Vy};"complete"==document.readyState?D(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Ry();C(a)}):window.addEventListener("load",Ry);function Wy(a,b,c,d,e,f,g){function h(y,E,F){return F&&3==g?y+": "+F+": "+E:y+": "+E}function k(y){return"variant"==y.type?y.audioRoles?y.audioRoles.join(", "):void 0:y.roles.join(", ")}var l=a.find(function(y){return 1==y.active}),m=Ex(b);Dl(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l),l.label):"";n={};a=t(a);for(p=a.next();!p.done;n={jb:n.jb},p=a.next()){n.jb=
1168
- p.value;p=n.jb.language;var q=n.jb.forced,v=f.resolve($b.lg),w=k(n.jb),x=n.jb.label,z=h(p,w,x);if(!m.has(z)){m.add(z);var B=Cl();B.addEventListener("click",function(y){return function(){c(y.jb)}}(n));var A=P("span");B.appendChild(A);A.textContent=Xy(p,f);switch(g){case Qy:q&&(A.textContent+=" ("+v+")");break;case 1:w?A.textContent=w:(Za("Track #"+n.jb.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");q&&(A.textContent+=" ("+v+")");break;case 2:w&&(A.textContent+=
1169
- ": "+w);q&&(A.textContent+=" ("+v+")");break;case 3:x?A.textContent=x:(Za("Track #"+n.jb.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&z==l&&(B.appendChild(Hx()),A.classList.add("shaka-chosen-item"),B.ariaSelected="true",e.textContent=A.textContent);b.appendChild(B)}}}
1170
- function Xy(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=Sb(a);return a in Ax?Ax[a].u:c in Ax?Ax[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Yy(a,b,c){W.call(this,a,b);var d=this;Zy(this,c);$y(this);az(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new I("submenuopen")),Ix(d.menu,!0),Gx(d.menu)):Ix(d.menu,!1)})}ra(Yy,W);
1171
- function Zy(a,b){a.button=Cl();a.button.classList.add("shaka-overflow-button");a.icon=P("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=P("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=P("span");b.appendChild(a.nameSpan);a.currentSelection=P("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1172
- function $y(a){a.menu=P("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=Cl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.jc()});var b=P("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1173
- P("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function az(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Ix(a.parent,!0);mb(a.parent.childNodes,b)&&nb(a.parent.childNodes,b)[0].focus();cy(a.controls)}))}G("shaka.ui.SettingsMenu",Yy);function bz(a,b){Yy.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.o(this.localization,"locale-updated",function(){cz(c)});this.eventManager.o(this.localization,"locale-changed",function(){cz(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Oa().length;Ix(c.button,d);dz(c)});this.eventManager.o(this.player,"variantchanged",
1174
- function(){dz(c)});cz(this);dz(this)}ra(bz,Yy);function dz(a){var b=a.player.Oa();Wy(b,a.menu,function(c){a.player.Qe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Gx(a.menu);a.controls.dispatchEvent(new I("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1175
- function cz(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")}G("shaka.ui.AudioLanguageSelection",bz);function ez(){}ez.prototype.create=function(a,b){return new bz(a,b)};Hy("language",new ez);iy("language",new ez);function fz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Cl();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=P("span");a.appendChild(this.l);this.j=P("span");this.j.classList.add("shaka-current-selection-span");
1176
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);gz(this);hz(this);this.eventManager.o(this.localization,"locale-updated",function(){gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){gz(c)});this.eventManager.o(this.g,"click",function(){iz(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){hz(c)})}ra(fz,W);
1177
- function iz(a){var b;D(function(c){if(1==c.g){if(a.h.qa())return a.h.gg(),c.D(0);wa(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,za(c,0);b=Aa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}function hz(a){var b=a.h.Af()&&a.controls.$a,c=a.h.qa();Ix(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");jz(a)}
1178
- function jz(a){a.j.textContent=a.h.qa()?a.h.Nd():a.localization.resolve("OFF")}function gz(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");jz(a)}G("shaka.ui.CastButton",fz);function kz(){}kz.prototype.create=function(a,b){return new fz(a,b)};Hy("cast",new kz);iy("cast",new kz);function lz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);mz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){mz(c)});this.eventManager.o(this.localization,"locale-changed",function(){mz(c)});
1179
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(lz,W);function mz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}G("shaka.ui.FastForwardButton",lz);function nz(){}nz.prototype.create=function(a,b){return new lz(a,b)};iy("fast_forward",new nz);function oz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Cl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");pz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);qz(this);this.eventManager.o(this.localization,"locale-updated",function(){qz(c)});this.eventManager.o(this.localization,"locale-changed",function(){qz(c)});this.eventManager.o(this.g,"click",function(){return D(function(d){return u(d,
1180
- c.controls.ef(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.lc()?"fullscreen_exit":"fullscreen";qz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){pz(c)});this.eventManager.o(this.h,"loadeddata",function(){pz(c)})}ra(oz,W);function pz(a){a.controls.Dd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function qz(a){a.g.ariaLabel=a.localization.resolve(a.controls.lc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1181
- G("shaka.ui.FullscreenButton",oz);function rz(){}rz.prototype.create=function(a,b){return new oz(a,b)};iy("fullscreen",new rz);function sz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=P("span");this.l.classList.add("shaka-current-selection-span");
1182
- a.appendChild(this.l);this.g.appendChild(a);tz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){tz(c)});this.eventManager.o(this.localization,"locale-changed",function(){tz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ca();c.h.ma(1)});this.m=this.video.loop;this.h=new N(function(){c.m!=c.video.loop&&(tz(c),c.m=c.video.loop)});this.h.ma(1)}ra(sz,W);sz.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1183
- function tz(a){a.j.textContent=a.localization.resolve("LOOP");a.l.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")}G("shaka.ui.LoopButton",sz);function uz(){}uz.prototype.create=function(a,b){return new sz(a,b)};Hy("loop",new uz);iy("loop",new uz);Tx("loop",new uz);function vz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);wz(this);xz(this);this.eventManager.o(this.localization,"locale-updated",function(){wz(c)});this.eventManager.o(this.localization,"locale-changed",function(){wz(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1184
- this.eventManager.o(this.video,"volumechange",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){wz(c);xz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;wz(c);xz(c)})}ra(vz,W);function wz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1185
- function xz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}G("shaka.ui.MuteButton",vz);function yz(){}yz.prototype.create=function(a,b){return new vz(a,b)};iy("mute",new yz);function zz(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Cl();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1186
- P("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);Az(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Ix(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){Az(c)});this.eventManager.o(this.localization,"locale-changed",function(){Az(c)});this.eventManager.o(this.g,"click",function(){Bz(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1187
- "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Ix(c.g,
1188
- !1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Ix(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Cz(c)})}ra(zz,W);function Bz(a){var b;D(function(c){if(1==c.g)return wa(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return za(c,0);b=Aa(c);a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}
1189
- function Az(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1190
- function Cz(a){D(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Ix(a.g,!1),b.D(0);if(!a.player||!a.player.kc())return Ix(a.g,!0),b.D(0);Ix(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}G("shaka.ui.PipButton",zz);function Dz(){}Dz.prototype.create=function(a,b){return new zz(a,b)};Hy("picture_in_picture",new Dz);iy("picture_in_picture",new Dz);Tx("picture_in_picture",new Dz);function Ez(a,b){Yy.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.o(this.localization,"locale-updated",function(){Fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fz(c)});this.eventManager.o(this.player,"loaded",function(){Gz(c,c.player.ob())});this.eventManager.o(this.player,"ratechange",function(){Gz(c,
1191
- c.player.ob())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+"x",d]}));Fz(this);Hz(this);Gz(this,this.player.ob())}ra(Ez,Yy);function Fz(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")}
1192
- function Gz(a,b){var c=Fx(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(Hx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1193
- "x")}function Hz(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={zc:b.zc},d=c.next()){b.zc=d.value;d=Cl();var e=P("span");e.textContent=b.zc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.zc);a.video.defaultPlaybackRate=a.g.get(f.zc)}}(b));a.menu.appendChild(d)}Gx(a.menu)}G("shaka.ui.PlaybackRateSelection",Ez);function Iz(){}Iz.prototype.create=function(a,b){return new Ez(a,b)};Hy("playback_rate",new Iz);iy("playback_rate",new Iz);function Jz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-current-time");Kz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ma().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Mf(),f=c.player.Ma(),g=f.end-f.start;c.player.T()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(Kz(c,"- "+Jx(e,g)),c.g.disabled=!1):(Kz(c,c.localization.resolve("LIVE")),
1194
- c.g.disabled=!0)):(d=3600<=g,e=Jx(Math.max(0,e-f.start),d),g&&(e+=" / "+Jx(g,d)),Kz(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}ra(Jz,W);function Kz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}G("shaka.ui.PresentationTimeTracker",Jz);function Lz(){}Lz.prototype.create=function(a,b){return new Jz(a,b)};iy("time_and_duration",new Lz);function Mz(a,b){Yy.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.o(this.localization,"locale-updated",function(){Nz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Nz(c)});this.eventManager.o(this.player,"variantchanged",function(){Oz(c)});this.eventManager.o(this.player,"trackschanged",function(){Oz(c)});this.eventManager.o(this.player,
1195
- "abrstatuschanged",function(){Oz(c)});Oz(this)}ra(Mz,Yy);
1196
- function Oz(a){var b=[];a.player.we()!=jn&&(b=a.player.Oa());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.kc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.kc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Ex(a.menu);Dl(a.menu);
1161
+ trackLabelFormat:Py,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ye()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1162
+ function Qy(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,v,w,x,z,B,A,y;return D(function(E){switch(E.g){case 1:ru();if(!zm())return Ry("shaka-ui-load-failed",Sy),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1163
+ h.replaceChild(g,f);g.appendChild(f);k=null;l=t(c);for(m=l.next();!m.done;m=l.next())if(n=m.value,n.parentElement==g){k=n;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Ty(g,f,k)}E.D(2);break}p=t(a);q=p.next();case 4:if(q.done){E.D(2);break}v=q.value;if(v.ui){E.D(5);break}w=null;x=t(b);for(e=x.next();!e.done;e=x.next())if(z=e.value,z.parentElement==v){w=z;break}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),v.appendChild(w));
1164
+ B=null;A=t(c);for(m=A.next();!m.done;m=A.next())if(y=m.value,y.parentElement==v){B=y;break}B||(B=document.createElement("canvas"),B.classList.add("shaka-canvas-container"),v.appendChild(B));wa(E,7);return u(E,Ty(v,w,B),9);case 9:za(E,5);break;case 7:return Aa(E),Ry("shaka-ui-load-failed",Uy),E.return();case 5:q=p.next();E.D(4);break;case 2:Ry("shaka-ui-loaded"),C(E)}})}function Ry(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1165
+ function Ty(a,b,c){var d,e,f,g,h,k,l,m,n;return D(function(p){switch(p.g){case 1:d=new R(b);e=new Ny(d,a,b);d.xf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1166
+ b.controls&&e.g.ag(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=t(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){p.D(0);break}n=m.value;wa(p,5);return u(p,e.g.fc().load(n.getAttribute("src")),7);case 7:p.D(0);break;case 5:Aa(p);case 3:m=l.next(),p.D(2)}})}G("shaka.ui.Overlay",Ny);Ny.prototype.setEnabled=Ny.prototype.Ph;Ny.prototype.getControls=Ny.prototype.Ig;Ny.prototype.configure=Ny.prototype.configure;
1167
+ Ny.prototype.getConfiguration=Ny.prototype.getConfiguration;Ny.prototype.isMobile=Ny.prototype.ye;Ny.prototype.destroy=Ny.prototype.destroy;var Py=0;Ny.TrackLabelFormat={LANGUAGE:Py,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Sy=0,Uy=1;Ny.FailReasonCode={NO_BROWSER_SUPPORT:Sy,PLAYER_FAILED_TO_LOAD:Uy};"complete"==document.readyState?D(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Qy();C(a)}):window.addEventListener("load",Qy);function Vy(a,b,c,d,e,f,g){function h(y,E,F){return F&&3==g?y+": "+F+": "+E:y+": "+E}function k(y){return"variant"==y.type?y.audioRoles?y.audioRoles.join(", "):void 0:y.roles.join(", ")}var l=a.find(function(y){return 1==y.active}),m=Dx(b);Dl(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l),l.label):"";n={};a=t(a);for(p=a.next();!p.done;n={jb:n.jb},p=a.next()){n.jb=
1168
+ p.value;p=n.jb.language;var q=n.jb.forced,v=f.resolve($b.lg),w=k(n.jb),x=n.jb.label,z=h(p,w,x);if(!m.has(z)){m.add(z);var B=Cl();B.addEventListener("click",function(y){return function(){c(y.jb)}}(n));var A=P("span");B.appendChild(A);A.textContent=Wy(p,f);switch(g){case Py:q&&(A.textContent+=" ("+v+")");break;case 1:w?A.textContent=w:(Za("Track #"+n.jb.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");q&&(A.textContent+=" ("+v+")");break;case 2:w&&(A.textContent+=
1169
+ ": "+w);q&&(A.textContent+=" ("+v+")");break;case 3:x?A.textContent=x:(Za("Track #"+n.jb.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&z==l&&(B.appendChild(Gx()),A.classList.add("shaka-chosen-item"),B.ariaSelected="true",e.textContent=A.textContent);b.appendChild(B)}}}
1170
+ function Wy(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=Sb(a);return a in zx?zx[a].u:c in zx?zx[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Xy(a,b,c){W.call(this,a,b);var d=this;Yy(this,c);Zy(this);$y(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new I("submenuopen")),Hx(d.menu,!0),Fx(d.menu)):Hx(d.menu,!1)})}ra(Xy,W);
1171
+ function Yy(a,b){a.button=Cl();a.button.classList.add("shaka-overflow-button");a.icon=P("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=P("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=P("span");b.appendChild(a.nameSpan);a.currentSelection=P("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1172
+ function Zy(a){a.menu=P("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=Cl();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.jc()});var b=P("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1173
+ P("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function $y(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Hx(a.parent,!0);mb(a.parent.childNodes,b)&&nb(a.parent.childNodes,b)[0].focus();by(a.controls)}))}G("shaka.ui.SettingsMenu",Xy);function az(a,b){Xy.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.o(this.localization,"locale-updated",function(){bz(c)});this.eventManager.o(this.localization,"locale-changed",function(){bz(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Oa().length;Hx(c.button,d);cz(c)});this.eventManager.o(this.player,"variantchanged",
1174
+ function(){cz(c)});bz(this);cz(this)}ra(az,Xy);function cz(a){var b=a.player.Oa();Vy(b,a.menu,function(c){a.player.Qe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Fx(a.menu);a.controls.dispatchEvent(new I("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1175
+ function bz(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")}G("shaka.ui.AudioLanguageSelection",az);function dz(){}dz.prototype.create=function(a,b){return new az(a,b)};Gy("language",new dz);hy("language",new dz);function ez(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Cl();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=P("span");a.appendChild(this.l);this.j=P("span");this.j.classList.add("shaka-current-selection-span");
1176
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);fz(this);gz(this);this.eventManager.o(this.localization,"locale-updated",function(){fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){fz(c)});this.eventManager.o(this.g,"click",function(){hz(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){gz(c)})}ra(ez,W);
1177
+ function hz(a){var b;D(function(c){if(1==c.g){if(a.h.qa())return a.h.gg(),c.D(0);wa(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,za(c,0);b=Aa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}function gz(a){var b=a.h.Af()&&a.controls.$a,c=a.h.qa();Hx(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");iz(a)}
1178
+ function iz(a){a.j.textContent=a.h.qa()?a.h.Nd():a.localization.resolve("OFF")}function fz(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");iz(a)}G("shaka.ui.CastButton",ez);function jz(){}jz.prototype.create=function(a,b){return new ez(a,b)};Gy("cast",new jz);hy("cast",new jz);function kz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);lz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){lz(c)});this.eventManager.o(this.localization,"locale-changed",function(){lz(c)});
1179
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(kz,W);function lz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}G("shaka.ui.FastForwardButton",kz);function mz(){}mz.prototype.create=function(a,b){return new kz(a,b)};hy("fast_forward",new mz);function nz(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Cl();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");oz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);pz(this);this.eventManager.o(this.localization,"locale-updated",function(){pz(c)});this.eventManager.o(this.localization,"locale-changed",function(){pz(c)});this.eventManager.o(this.g,"click",function(){return D(function(d){return u(d,
1180
+ c.controls.ef(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.lc()?"fullscreen_exit":"fullscreen";pz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){oz(c)});this.eventManager.o(this.h,"loadeddata",function(){oz(c)})}ra(nz,W);function oz(a){a.controls.Dd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function pz(a){a.g.ariaLabel=a.localization.resolve(a.controls.lc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1181
+ G("shaka.ui.FullscreenButton",nz);function qz(){}qz.prototype.create=function(a,b){return new nz(a,b)};hy("fullscreen",new qz);function rz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=P("span");this.l.classList.add("shaka-current-selection-span");
1182
+ a.appendChild(this.l);this.g.appendChild(a);sz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){sz(c)});this.eventManager.o(this.localization,"locale-changed",function(){sz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ca();c.h.ma(1)});this.m=this.video.loop;this.h=new N(function(){c.m!=c.video.loop&&(sz(c),c.m=c.video.loop)});this.h.ma(1)}ra(rz,W);rz.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1183
+ function sz(a){a.j.textContent=a.localization.resolve("LOOP");a.l.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")}G("shaka.ui.LoopButton",rz);function tz(){}tz.prototype.create=function(a,b){return new rz(a,b)};Gy("loop",new tz);hy("loop",new tz);Sx("loop",new tz);function uz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);vz(this);wz(this);this.eventManager.o(this.localization,"locale-updated",function(){vz(c)});this.eventManager.o(this.localization,"locale-changed",function(){vz(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1184
+ this.eventManager.o(this.video,"volumechange",function(){vz(c);wz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){vz(c);wz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){vz(c);wz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;vz(c);wz(c)})}ra(uz,W);function vz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1185
+ function wz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}G("shaka.ui.MuteButton",uz);function xz(){}xz.prototype.create=function(a,b){return new uz(a,b)};hy("mute",new xz);function yz(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Cl();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=P("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=P("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=P("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1186
+ P("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);zz(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Hx(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){zz(c)});this.eventManager.o(this.localization,"locale-changed",function(){zz(c)});this.eventManager.o(this.g,"click",function(){Az(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1187
+ "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Hx(c.g,
1188
+ !1):document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Hx(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Bz(c)})}ra(yz,W);function Az(a){var b;D(function(c){if(1==c.g)return wa(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return za(c,0);b=Aa(c);a.controls.dispatchEvent(new I("error",(new Map).set("detail",b)));C(c)})}
1189
+ function zz(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1190
+ function Bz(a){D(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Hx(a.g,!1),b.D(0);if(!a.player||!a.player.kc())return Hx(a.g,!0),b.D(0);Hx(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}G("shaka.ui.PipButton",yz);function Cz(){}Cz.prototype.create=function(a,b){return new yz(a,b)};Gy("picture_in_picture",new Cz);hy("picture_in_picture",new Cz);Sx("picture_in_picture",new Cz);function Dz(a,b){Xy.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.o(this.localization,"locale-updated",function(){Ez(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ez(c)});this.eventManager.o(this.player,"loaded",function(){Fz(c,c.player.ob())});this.eventManager.o(this.player,"ratechange",function(){Fz(c,
1191
+ c.player.ob())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+"x",d]}));Ez(this);Gz(this);Fz(this,this.player.ob())}ra(Dz,Xy);function Ez(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")}
1192
+ function Fz(a,b){var c=Ex(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(Gx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1193
+ "x")}function Gz(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={zc:b.zc},d=c.next()){b.zc=d.value;d=Cl();var e=P("span");e.textContent=b.zc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.zc);a.video.defaultPlaybackRate=a.g.get(f.zc)}}(b));a.menu.appendChild(d)}Fx(a.menu)}G("shaka.ui.PlaybackRateSelection",Dz);function Hz(){}Hz.prototype.create=function(a,b){return new Dz(a,b)};Gy("playback_rate",new Hz);hy("playback_rate",new Hz);function Iz(a,b){W.call(this,a,b);var c=this;this.g=Cl();this.g.classList.add("shaka-current-time");Jz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ma().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Mf(),f=c.player.Ma(),g=f.end-f.start;c.player.T()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(Jz(c,"- "+Ix(e,g)),c.g.disabled=!1):(Jz(c,c.localization.resolve("LIVE")),
1194
+ c.g.disabled=!0)):(d=3600<=g,e=Ix(Math.max(0,e-f.start),d),g&&(e+=" / "+Ix(g,d)),Jz(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}ra(Iz,W);function Jz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}G("shaka.ui.PresentationTimeTracker",Iz);function Kz(){}Kz.prototype.create=function(a,b){return new Iz(a,b)};hy("time_and_duration",new Kz);function Lz(a,b){Xy.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.o(this.localization,"locale-updated",function(){Mz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Mz(c)});this.eventManager.o(this.player,"variantchanged",function(){Nz(c)});this.eventManager.o(this.player,"trackschanged",function(){Nz(c)});this.eventManager.o(this.player,
1195
+ "abrstatuschanged",function(){Nz(c)});Nz(this)}ra(Lz,Xy);
1196
+ function Nz(a){var b=[];a.player.we()!=jn&&(b=a.player.Oa());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.kc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.kc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Dx(a.menu);Dl(a.menu);
1197
1197
  a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=t(b),g=f.next();!g.done;e={bc:e.bc},g=f.next()){e.bc=g.value;g=Cl();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.bc;a.player.configure({abr:{enabled:!1}});a.player.Qd(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=P("span");h.textContent=a.player.kc()?Math.round(e.bc.bandwidth/1E3)+" kbits/s":e.bc.height+"p";g.appendChild(h);d||e.bc!=c||(g.ariaSelected=
1198
- "true",g.appendChild(Hx()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Cl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Oz(a)});a.g=P("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Hx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=
1199
- a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);Gx(a.menu);a.controls.dispatchEvent(new I("resolutionselectionupdated"));Nz(a)}
1200
- function Nz(a){var b=a.player.kc()?"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"))}G("shaka.ui.ResolutionSelection",Mz);function Pz(){}
1201
- Pz.prototype.create=function(a,b){return new Mz(a,b)};Hy("quality",new Pz);iy("quality",new Pz);function Qz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);Rz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Rz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Rz(c)});
1202
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(Qz,W);function Rz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}G("shaka.ui.RewindButton",Qz);function Sz(){}Sz.prototype.create=function(a,b){return new Qz(a,b)};iy("rewind",new Sz);function Tz(a,b){W.call(this,a,b);var c=this;this.j=P("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=P("div");this.h.classList.add("shaka-skip-ad-counter");Ix(this.h,!1);this.j.appendChild(this.h);this.g=Cl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Ix(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Uz(this);this.i=new N(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1203
- d:(c.i.stop(),Ix(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Uz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Uz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Vz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Ix(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Ix(c.g,!1);Ix(c.h,!1)});this.eventManager.o(this.g,
1204
- "click",function(){c.ad.skip()});this.ad&&Vz(this)}ra(Tz,W);Tz.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Uz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Vz(a){a.ad.isSkippable()&&(Ix(a.g,!0),Ix(a.h,!0),a.h.textContent="",a.i.Ca(),a.i.ma(.5))}G("shaka.ui.SkipAdButton",Tz);function Wz(a,b){Nx.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()}ra(Wz,Nx);Wz.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1205
- Wz.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)}};G("shaka.ui.SmallPlayButton",Wz);function Xz(){}Xz.prototype.create=function(a,b){return new Wz(a,b)};iy("play_pause",new Xz);function Yz(a,b){W.call(this,a,b);a=P("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}ra(Yz,W);G("shaka.ui.Spacer",Yz);function Zz(){}Zz.prototype.create=function(a,b){return new Yz(a,b)};iy("spacer",new Zz);function $z(a,b){function c(k){return Jx(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}W.call(this,a,b);var h=this;this.i=Cl();this.i.classList.add("shaka-statistics-button");this.j=P("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=P("label");a.classList.add("shaka-overflow-button-label");
1198
+ "true",g.appendChild(Gx()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Cl();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Nz(a)});a.g=P("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Gx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=
1199
+ a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);Fx(a.menu);a.controls.dispatchEvent(new I("resolutionselectionupdated"));Mz(a)}
1200
+ function Mz(a){var b=a.player.kc()?"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"))}G("shaka.ui.ResolutionSelection",Lz);function Oz(){}
1201
+ Oz.prototype.create=function(a,b){return new Lz(a,b)};Gy("quality",new Oz);hy("quality",new Oz);function Pz(a,b){W.call(this,a,b);var c=this;this.g=Cl();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);Qz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Qz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Qz(c)});
1202
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.ob())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.hf(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(Pz,W);function Qz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}G("shaka.ui.RewindButton",Pz);function Rz(){}Rz.prototype.create=function(a,b){return new Pz(a,b)};hy("rewind",new Rz);function Sz(a,b){W.call(this,a,b);var c=this;this.j=P("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=P("div");this.h.classList.add("shaka-skip-ad-counter");Hx(this.h,!1);this.j.appendChild(this.h);this.g=Cl();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Hx(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Tz(this);this.i=new N(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1203
+ d:(c.i.stop(),Hx(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Tz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Tz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Uz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Hx(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Hx(c.g,!1);Hx(c.h,!1)});this.eventManager.o(this.g,
1204
+ "click",function(){c.ad.skip()});this.ad&&Uz(this)}ra(Sz,W);Sz.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Tz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Uz(a){a.ad.isSkippable()&&(Hx(a.g,!0),Hx(a.h,!0),a.h.textContent="",a.i.Ca(),a.i.ma(.5))}G("shaka.ui.SkipAdButton",Sz);function Vz(a,b){Mx.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()}ra(Vz,Mx);Vz.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1205
+ Vz.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)}};G("shaka.ui.SmallPlayButton",Vz);function Wz(){}Wz.prototype.create=function(a,b){return new Vz(a,b)};hy("play_pause",new Wz);function Xz(a,b){W.call(this,a,b);a=P("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}ra(Xz,W);G("shaka.ui.Spacer",Xz);function Yz(){}Yz.prototype.create=function(a,b){return new Xz(a,b)};hy("spacer",new Yz);function Zz(a,b){function c(k){return Ix(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}W.call(this,a,b);var h=this;this.i=Cl();this.i.classList.add("shaka-statistics-button");this.j=P("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=P("label");a.classList.add("shaka-overflow-button-label");
1206
1206
  this.s=P("span");a.appendChild(this.s);this.m=P("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=P("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1207
1207
  this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new N(function(){h.h=h.player.getStats();for(var k=t(h.F),l=k.next();!l.done;l=
1208
- k.next())l=l.value,h.B[l].textContent=h.C[l](l)});aA(this);bA(this);this.eventManager.o(this.localization,"locale-updated",function(){aA(h)});this.eventManager.o(this.localization,"locale-changed",function(){aA(h)});this.eventManager.o(this.i,"click",function(){Ix(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ma(.1),Ix(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Ix(h.g,!1));aA(h)})}ra($z,W);
1209
- function aA(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1210
- function bA(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=P("div"),h=P("label");h.textContent=c+":";g.appendChild(h);h=P("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Za("Unrecognized statistic element:",c)}$z.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};G("shaka.ui.StatisticsButton",$z);function cA(){}
1211
- cA.prototype.create=function(a,b){return new $z(a,b)};Hy("statistics",new cA);Tx("statistics",new cA);function dA(a,b){Yy.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.Sb()?this.button.ariaPressed="true":this.button.ariaPressed="false";eA(this);this.eventManager.o(this.localization,"locale-updated",function(){fA(c);gA(c)});this.eventManager.o(this.localization,"locale-changed",function(){fA(c);gA(c)});this.eventManager.o(this.player,
1212
- "texttrackvisibility",function(){hA(c);gA(c)});this.eventManager.o(this.player,"textchanged",function(){gA(c)});this.eventManager.o(this.player,"trackschanged",function(){iA(c)});hA(this);fA(this);gA(this);iA(this)}ra(dA,Yy);function eA(a){var b=Cl();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Hx());a.g=P("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1213
- function hA(a){a.player.Sb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new I("captionselectionupdated"))}
1214
- function gA(a){var b=a.player.Cb();Wy(b,a.menu,function(c){return jA(a,c)},a.player.Sb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Cl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Rd(!1);gA(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Sb()||(b.ariaSelected="true",b.appendChild(Hx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1215
- a.currentSelection.textContent);Gx(a.menu);a.controls.dispatchEvent(new I("captionselectionupdated"))}function jA(a,b){return D(function(c){a.player.Se(b);return u(c,a.player.Rd(!0),0)})}function fA(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")}
1216
- function iA(a){var b=0<a.player.Cb().length;Ix(a.button,b);gA(a)}G("shaka.ui.TextSelection",dA);function kA(){}kA.prototype.create=function(a,b){return new dA(a,b)};Hy("captions",new kA);iy("captions",new kA);function lA(a,b){Vx.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return mA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return nA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return nA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return mA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return oA(c)});
1217
- this.eventManager.o(this.localization,"locale-changed",function(){return oA(c)});mA(this);oA(this);if(this.ad)this.onChange()}ra(lA,Vx);lA.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 mA(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);pA(a)}function nA(a){var b=a.ad.getVolume();a.setValue(100*b);pA(a)}
1218
- function pA(a){var b=a.h.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 oA(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}G("shaka.ui.VolumeBar",lA);function qA(){}qA.prototype.create=function(a,b){return new lA(a,b)};iy("volume",new qA);}).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})();
1208
+ k.next())l=l.value,h.B[l].textContent=h.C[l](l)});$z(this);aA(this);this.eventManager.o(this.localization,"locale-updated",function(){$z(h)});this.eventManager.o(this.localization,"locale-changed",function(){$z(h)});this.eventManager.o(this.i,"click",function(){Hx(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ma(.1),Hx(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Hx(h.g,!1));$z(h)})}ra(Zz,W);
1209
+ function $z(a){a.s.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1210
+ function aA(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=P("div"),h=P("label");h.textContent=c+":";g.appendChild(h);h=P("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Za("Unrecognized statistic element:",c)}Zz.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};G("shaka.ui.StatisticsButton",Zz);function bA(){}
1211
+ bA.prototype.create=function(a,b){return new Zz(a,b)};Gy("statistics",new bA);Sx("statistics",new bA);function cA(a,b){Xy.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.Sb()?this.button.ariaPressed="true":this.button.ariaPressed="false";dA(this);this.eventManager.o(this.localization,"locale-updated",function(){eA(c);fA(c)});this.eventManager.o(this.localization,"locale-changed",function(){eA(c);fA(c)});this.eventManager.o(this.player,
1212
+ "texttrackvisibility",function(){gA(c);fA(c)});this.eventManager.o(this.player,"textchanged",function(){fA(c)});this.eventManager.o(this.player,"trackschanged",function(){hA(c)});gA(this);eA(this);fA(this);hA(this)}ra(cA,Xy);function dA(a){var b=Cl();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Gx());a.g=P("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1213
+ function gA(a){a.player.Sb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new I("captionselectionupdated"))}
1214
+ function fA(a){var b=a.player.Cb();Vy(b,a.menu,function(c){return iA(a,c)},a.player.Sb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Cl();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Rd(!1);fA(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Sb()||(b.ariaSelected="true",b.appendChild(Gx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1215
+ a.currentSelection.textContent);Fx(a.menu);a.controls.dispatchEvent(new I("captionselectionupdated"))}function iA(a,b){return D(function(c){a.player.Se(b);return u(c,a.player.Rd(!0),0)})}function eA(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")}
1216
+ function hA(a){var b=0<a.player.Cb().length;Hx(a.button,b);fA(a)}G("shaka.ui.TextSelection",cA);function jA(){}jA.prototype.create=function(a,b){return new cA(a,b)};Gy("captions",new jA);hy("captions",new jA);function kA(a,b){Ux.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return lA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return mA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return mA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return lA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return nA(c)});
1217
+ this.eventManager.o(this.localization,"locale-changed",function(){return nA(c)});lA(this);nA(this);if(this.ad)this.onChange()}ra(kA,Ux);kA.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 lA(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);oA(a)}function mA(a){var b=a.ad.getVolume();a.setValue(100*b);oA(a)}
1218
+ function oA(a){var b=a.h.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 nA(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}G("shaka.ui.VolumeBar",kA);function pA(){}pA.prototype.create=function(a,b){return new kA(a,b)};hy("volume",new pA);}).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})();
1219
1219
 
1220
1220
  //# sourceMappingURL=shaka-player.ui.map