@yoobic/yobi 7.7.121 → 7.7.125

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.
@@ -15,4 +15,4 @@ for(s=97;s<123;s++)e[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)e[s-48]=
15
15
  var Su=Mt,Iu=function(t,i,n){return t&&n&&n.responseURL&&i!==n.responseURL?n.responseURL:i},Du=function(t){return Tu.log.debug?Tu.log.debug.bind(Tu,"VHS:",t+" >"):function(){}},Ou=function(t,i){var n,e=[];if(t&&t.length)for(n=0;n<t.length;n++)i(t.start(n),t.end(n))&&e.push([t.start(n),t.end(n)]);return Tu.createTimeRanges(e)},Nu=function(t,i){return Ou(t,(function(t,n){return t-.1<=i&&n+.1>=i}))},Ru=function(t,i){return Ou(t,(function(t){return t-.03333333333333333>=i}))},Mu=function(t){var i=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)i.push(t.start(n)+" => "+t.end(n));return i.join(", ")},Cu=function(t){for(var i=[],n=0;n<t.length;n++)i.push({start:t.start(n),end:t.end(n)});return i},Uu=function(t){if(t&&t.length&&t.end)return t.end(t.length-1)},Pu=Tu.createTimeRange,Lu=function(t){return(t.segments||[]).reduce((function(t,i,n){return i.parts?i.parts.forEach((function(e,r){t.push({duration:e.duration,segmentIndex:n,partIndex:r,part:e,segment:i})})):t.push({duration:i.duration,segmentIndex:n,partIndex:null,segment:i,part:null}),t}),[])},Bu=function(t){var i=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return i&&i.parts||[]},Fu=function(t){var i=t.preloadSegment;if(i){var n=i.parts;return(i.preloadHints||[]).reduce((function(t,i){return t+("PART"===i.type?1:0)}),0)+(n&&n.length?n.length:0)}},zu=function(t,i){if(i.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var n=Bu(i).length>0;return n&&i.serverControl&&i.serverControl.partHoldBack?i.serverControl.partHoldBack:n&&i.partTargetDuration?3*i.partTargetDuration:i.serverControl&&i.serverControl.holdBack?i.serverControl.holdBack:i.targetDuration?3*i.targetDuration:0},_u=function(t,i,n){if(void 0===i&&(i=t.mediaSequence+t.segments.length),i<t.mediaSequence)return 0;var e=function(t,i){var n=0,e=i-t.mediaSequence,r=t.segments[e];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;e--;){if(void 0!==(r=t.segments[e]).end)return{result:n+r.end,precise:!0};if(n+=r.duration,void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,i);if(e.precise)return e.result;var r=function(t,i){for(var n,e=0,r=i-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(n=t.segments[r]).start)return{result:n.start-e,precise:!0};if(e+=n.duration,void 0!==n.end)return{result:n.end-e,precise:!0}}return{result:-1,precise:!1}}(t,i);return r.precise?r.result:e.result+n},Vu=function(t,i,n){if(!t)return 0;if("number"!=typeof n&&(n=0),void 0===i){if(t.totalDuration)return t.totalDuration;if(!t.endList)return B.Infinity}return _u(t,i,n)},Hu=function(t){var i=t.defaultDuration,n=t.durationList,e=t.startIndex,r=t.endIndex,s=0;if(e>r){var o=[r,e];e=o[0],r=o[1]}if(e<0){for(var a=e;a<Math.min(0,r);a++)s+=i;e=0}for(var u=e;u<r;u++)s+=n[u].duration;return s},qu=function(t,i,n,e){if(!t||!t.segments)return null;if(t.endList)return Vu(t);if(null===i)return null;var r=_u(t,t.mediaSequence+t.segments.length,i=i||0);return n&&(r-=e="number"==typeof e?e:zu(null,t)),Math.max(0,r)},Xu=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},Wu=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Gu=function(t){var i=Xu(t);return!t.disabled&&!i},Yu=function(t,i){return i.attributes&&i.attributes[t]},Ju=function(t,i){if(1===t.playlists.length)return!0;var n=i.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!Gu(t)&&(t.attributes.BANDWIDTH||0)<n})).length},Qu=function(t,i){return!(!t&&!i||!t&&i||t&&!i||t!==i&&(!t.id||!i.id||t.id!==i.id)&&(!t.resolvedUri||!i.resolvedUri||t.resolvedUri!==i.resolvedUri)&&(!t.uri||!i.uri||t.uri!==i.uri))},Ku=function(t,i){var n=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},e=!1;for(var r in n){for(var s in n[r])if(e=i(n[r][s]))break;if(e)break}return!!e},Zu=function(t){if(!t||!t.playlists||!t.playlists.length)return Ku(t,(function(t){return t.playlists&&t.playlists.length||t.uri}));for(var i=function(i){var n=t.playlists[i],e=n.attributes&&n.attributes.CODECS;return e&&e.split(",").every((function(t){return Jt(t)}))||Ku(t,(function(t){return Qu(n,t)}))?"continue":{v:!1}},n=0;n<t.playlists.length;n++){var e=i(n);if("continue"!==e&&"object"==typeof e)return e.v}return!0},$u={liveEdgeDelay:zu,duration:Vu,seekable:function(t,i,n){var e=i||0,r=qu(t,i,!0,n);return null===r?Pu():Pu(e,r)},getMediaInfoForTime:function(t){for(var i=t.playlist,n=t.currentTime,e=t.startingSegmentIndex,r=t.startingPartIndex,s=t.startTime,o=n-s,a=Lu(i),u=0,h=0;h<a.length;h++){var c=a[h];if(e===c.segmentIndex&&("number"!=typeof r||"number"!=typeof c.partIndex||r===c.partIndex)){u=h;break}}if(o<0){if(u>0)for(var f=u-1;f>=0;f--){var l=a[f];if((o+=l.duration)+.03333333333333333>0)return{partIndex:l.partIndex,segmentIndex:l.segmentIndex,startTime:s-Hu({defaultDuration:i.targetDuration,durationList:a,startIndex:u,endIndex:f})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:n}}if(u<0){for(var d=u;d<0;d++)if((o-=i.targetDuration)<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:n};u=0}for(var v=u;v<a.length;v++){var p=a[v];if((o-=p.duration)-.03333333333333333<0)return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s+Hu({defaultDuration:i.targetDuration,durationList:a,startIndex:u,endIndex:v})}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:n}},isEnabled:Gu,isDisabled:function(t){return t.disabled},isBlacklisted:Xu,isIncompatible:Wu,playlistEnd:qu,isAes:function(t){for(var i=0;i<t.segments.length;i++)if(t.segments[i].key)return!0;return!1},hasAttribute:Yu,estimateSegmentRequestTime:function(t,i,n,e){return void 0===e&&(e=0),Yu("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*e)/i:NaN},isLowestEnabledRendition:Ju,isAudioOnly:Zu,playlistMatch:Qu},th=Tu.log,ih=function(t,i){return t+"-"+i},nh=function(t,i){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(t.mediaGroups[n])for(var e in t.mediaGroups[n])for(var r in t.mediaGroups[n][e])i(t.mediaGroups[n][e][r],n,e,r)}))},eh=function(t){var i=t.playlist,n=t.uri;i.id=t.id,i.playlistErrors_=0,n&&(i.uri=n),i.attributes=i.attributes||{}},rh=function(t,i){t.uri=i;for(var n=0;n<t.playlists.length;n++)t.playlists[n].uri||(t.playlists[n].uri="placeholder-uri-"+n);nh(t,(function(i,n,e,r){var s="placeholder-uri-"+n+"-"+e+"-"+r;i.playlists&&i.playlists.length||(i.playlists=[V({},i)]),i.playlists.forEach((function(i,n){var e=ih(n,s);i.uri?i.resolvedUri=i.resolvedUri||Su(t.uri,i.uri):(i.uri=0===n?s:e,i.resolvedUri=i.uri),i.id=i.id||e,i.attributes=i.attributes||{},t.playlists[i.id]=i,t.playlists[i.uri]=i}))})),function(t){for(var i=t.playlists.length;i--;){var n=t.playlists[i];eh({playlist:n,id:ih(i,n.uri)}),n.resolvedUri=Su(t.uri,n.uri),t.playlists[n.id]=n,t.playlists[n.uri]=n,n.attributes.BANDWIDTH||th.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(t),function(t){nh(t,(function(i){i.uri&&(i.resolvedUri=Su(t.uri,i.uri))}))}(t)},sh=Tu.mergeOptions,oh=function(t,i){if(!t)return i;var n=sh(t,i);if(t.preloadHints&&!i.preloadHints&&delete n.preloadHints,t.parts&&!i.parts)delete n.parts;else if(t.parts&&i.parts)for(var e=0;e<i.parts.length;e++)t.parts&&t.parts[e]&&(n.parts[e]=sh(t.parts[e],i.parts[e]));return!t.skipped&&i.skipped&&(n.skipped=!1),t.preload&&!i.preload&&(n.preload=!1),n},ah=function(t,i){!t.resolvedUri&&t.uri&&(t.resolvedUri=Su(i,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=Su(i,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=Su(i,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=Su(i,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach((function(t){t.resolvedUri||(t.resolvedUri=Su(i,t.uri))})),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach((function(t){t.resolvedUri||(t.resolvedUri=Su(i,t.uri))}))},uh=function(t){var i=t.segments||[],n=t.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var e=0;e<n.preloadHints.length;e++)if("MAP"===n.preloadHints[e].type)return i;n.duration=t.targetDuration,n.preload=!0,i.push(n)}return i},hh=function(t,i){return t===i||t.segments&&i.segments&&t.segments.length===i.segments.length&&t.endList===i.endList&&t.mediaSequence===i.mediaSequence},ch=function(t,i,n){void 0===n&&(n=hh);var e=sh(t,{}),r=e.playlists[i.id];if(!r)return null;if(n(r,i))return null;i.segments=uh(i);var s=sh(r,i);if(s.preloadSegment&&!i.preloadSegment&&delete s.preloadSegment,r.segments){if(i.skip){i.segments=i.segments||[];for(var o=0;o<i.skip.skippedSegments;o++)i.segments.unshift({skipped:!0})}s.segments=function(t,i,n){var e=t.slice(),r=i.slice();n=n||0;for(var s,o=[],a=0;a<r.length;a++){var u=e[a+n],h=r[a];u?(s=u.map||s,o.push(oh(u,h))):(s&&!h.map&&(h.map=s),o.push(h))}return o}(r.segments,i.segments,i.mediaSequence-r.mediaSequence)}s.segments.forEach((function(t){ah(t,s.resolvedUri)}));for(var a=0;a<e.playlists.length;a++)e.playlists[a].id===i.id&&(e.playlists[a]=s);return e.playlists[i.id]=s,e.playlists[i.uri]=s,nh(t,(function(t){if(t.playlists)for(var n=0;n<t.playlists.length;n++)i.id===t.playlists[n].id&&(t.playlists[n]=i)})),e},fh=function(t,i){var n=t.segments[t.segments.length-1],e=n&&n.parts&&n.parts[n.parts.length-1],r=e&&e.duration||n&&n.duration;return i&&r?1e3*r:500*(t.partTargetDuration||t.targetDuration||10)},lh=function(t){function i(i,n,e){var r;if(void 0===e&&(e={}),r=t.call(this)||this,!i)throw new Error("A non-empty playlist URL or object is required");r.logger_=Du("PlaylistLoader");var s=e.withCredentials,o=void 0!==s&&s,a=e.handleManifestRedirects,u=void 0!==a&&a;r.src=i,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=u;var h=n.options_;return r.customTagParsers=h&&h.customTagParsers||[],r.customTagMappers=h&&h.customTagMappers||[],r.experimentalLLHLS=h&&h.experimentalLLHLS||!1,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(H(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}X(i,t);var n=i.prototype;return n.handleMediaupdatetimeout_=function(){var t=this;if("HAVE_METADATA"===this.state){var i=this.media(),n=Su(this.master.uri,i.uri);this.experimentalLLHLS&&(n=function(t,i){if(i.endList)return t;var n=[];if(i.serverControl&&i.serverControl.canBlockReload){var e=i.preloadSegment,r=i.mediaSequence+i.segments.length;if(e){var s=e.parts||[],o=Fu(i)-1;o>-1&&o!==s.length-1&&n.push("_HLS_part="+o),(o>-1||s.length)&&r--}n.unshift("_HLS_msn="+r)}return i.serverControl&&i.serverControl.canSkipUntil&&n.unshift("_HLS_skip="+(i.serverControl.canSkipDateranges?"v2":"YES")),n.forEach((function(i,n){t+=(0===n?"?":"&")+i})),t}(n,i)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(i){if(t.request)return i?t.playlistRequestError(t.request,t.media(),"HAVE_METADATA"):void t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})}))}},n.playlistRequestError=function(t,i,n){var e=i.uri,r=i.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:t.status,message:"HLS playlist request error at URL: "+e+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(t){var i=this,n=t.url;return function(t){var i=t.onwarn,n=t.oninfo,e=t.manifestString,r=t.customTagParsers,s=void 0===r?[]:r,o=t.customTagMappers,a=void 0===o?[]:o,u=t.experimentalLLHLS,h=new Ht;i&&h.on("warn",i),n&&h.on("info",n),s.forEach((function(t){return h.addParser(t)})),a.forEach((function(t){return h.addTagMapper(t)})),h.push(e),h.end();var c=h.manifest;if(u||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(t){c.hasOwnProperty(t)&&delete c[t]})),c.segments&&c.segments.forEach((function(t){["parts","preloadHints"].forEach((function(i){t.hasOwnProperty(i)&&delete t[i]}))}))),!c.targetDuration){var f=10;c.segments&&c.segments.length&&(f=c.segments.reduce((function(t,i){return Math.max(t,i.duration)}),0)),i&&i("manifest has no targetDuration defaulting to "+f),c.targetDuration=f}var l=Bu(c);if(l.length&&!c.partTargetDuration){var d=l.reduce((function(t,i){return Math.max(t,i.duration)}),0);i&&(i("manifest has no partTargetDuration defaulting to "+d),th.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=d}return c}({onwarn:function(t){return i.logger_("m3u8-parser warn for "+n+": "+t.message)},oninfo:function(t){return i.logger_("m3u8-parser info for "+n+": "+t.message)},manifestString:t.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(t){var i=this,n=t.playlistString,e=t.playlistObject,r=t.url,s=t.id;this.request=null,this.state="HAVE_METADATA";var o=e||this.parseManifest_({url:r,manifestString:n});o.lastRequest=Date.now(),eh({playlist:o,uri:r,id:s});var a=ch(this.master,o);this.targetDuration=o.partTargetDuration||o.targetDuration,a?(this.master=a,this.media_=this.master.playlists[s]):this.trigger("playlistunchanged"),this.media().endList||(B.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=B.setTimeout((function(){i.trigger("mediaupdatetimeout")}),fh(this.media(),!!a))),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),B.clearTimeout(this.mediaUpdateTimeout),B.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t,i){var n=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(B.clearTimeout(this.finalRenditionTimeout),i){var e=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=B.setTimeout(this.media.bind(this,t,!1),e)}else{var r=this.state,s=!this.media_||t.id!==this.media_.id,o=this.master.playlists[t.id];if(o&&o.endList||t.endList&&t.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(s&&(this.trigger("mediachanging"),this.trigger("HAVE_MASTER"===r?"loadedmetadata":"mediachange")));if(s){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(function(i,e){if(n.request){if(t.lastRequest=Date.now(),t.resolvedUri=Iu(n.handleManifestRedirects,t.resolvedUri,e),i)return n.playlistRequestError(n.request,t,r);n.haveMetadata({playlistString:e.responseText,url:t.uri,id:t.id}),n.trigger("HAVE_MASTER"===r?"loadedmetadata":"mediachange")}}))}}},n.pause=function(){this.stopRequest(),B.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.state=this.media_?"HAVE_METADATA":"HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(t){var i=this;B.clearTimeout(this.mediaUpdateTimeout);var n=this.media();t?this.mediaUpdateTimeout=B.setTimeout((function(){return i.load()}),n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3):this.started?this.trigger(n&&!n.endList?"mediaupdatetimeout":"loadedplaylist"):this.start()},n.start=function(){var t=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=B.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){t.setupInitialPlaylist(t.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(i,n){if(t.request){if(t.request=null,i)return t.error={status:n.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.src=Iu(t.handleManifestRedirects,t.src,n);var e=t.parseManifest_({manifestString:n.responseText,url:t.src});t.setupInitialPlaylist(e)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists)return this.master=t,rh(this.master,this.srcUri()),t.playlists.forEach((function(t){t.segments=uh(t),t.segments.forEach((function(i){ah(i,t.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var i=this.srcUri()||B.location.href;this.master=function(t,i){var n=ih(0,i),e={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:B.location.href,resolvedUri:B.location.href,playlists:[{uri:i,id:n,resolvedUri:i,attributes:{}}]};return e.playlists[n]=e.playlists[0],e.playlists[i]=e.playlists[0],e}(0,i),this.haveMetadata({playlistObject:t,url:i,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},i}(Tu.EventTarget),dh=Tu.xhr,vh=Tu.mergeOptions,ph=function(t,i,n,e){var r="arraybuffer"===t.responseType?t.response:t.responseText;!i&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),n.headers&&(t.responseHeaders=n.headers),i&&"ETIMEDOUT"===i.code&&(t.timedout=!0),i||t.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(i=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),e(i,t)},mh=function(){var t=function t(i,n){i=vh({timeout:45e3},i);var e=t.beforeRequest||Tu.Vhs.xhr.beforeRequest;if(e&&"function"==typeof e){var r=e(i);r&&(i=r)}var s=(!0===Tu.Vhs.xhr.original?dh:Tu.Vhs.xhr)(i,(function(t,i){return ph(s,t,i,n)})),o=s.abort;return s.abort=function(){return s.aborted=!0,o.apply(s,arguments)},s.uri=i.uri,s.requestTime=Date.now(),s};return t.original=!0,t},gh=function(t){var i,n={};return t.byterange&&(n.Range="bytes="+(i=t.byterange).offset+"-"+(i.offset+i.length-1)),n},bh=function(t,i){return t.start(i)+"-"+t.end(i)},yh=function(t,i){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(i%2?" ":"")},jh=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},wh=function(t){var i={};return Object.keys(t).forEach((function(n){var e=t[n];i[n]=ArrayBuffer.isView(e)?{bytes:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength}:e})),i},xh=function(t){var i=t.byterange||{length:1/0,offset:0};return[i.length,i.offset,t.resolvedUri].join(",")},kh=function(t){return t.resolvedUri},Th=function(t){for(var i=Array.prototype.slice.call(t),n=16,e="",r=0;r<i.length/n;r++)e+=i.slice(r*n,r*n+n).map(yh).join("")+" "+i.slice(r*n,r*n+n).map(jh).join("")+"\n";return e},Ah=Object.freeze({__proto__:null,createTransferableMessage:wh,initSegmentId:xh,segmentKeyId:kh,hexDump:Th,tagDump:function(t){return Th(t.bytes)},textRanges:function(t){var i,n="";for(i=0;i<t.length;i++)n+=bh(t,i)+" ";return n}}),Eh=function t(i){var n=i.programTime,e=i.playlist,r=i.retryCount,s=void 0===r?2:r,o=i.seekTo,a=i.pauseAfterSeek,u=void 0===a||a,h=i.tech,c=i.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!e||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!h.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var i=0;i<t.segments.length;i++)if(!t.segments[i].dateTimeObject)return!1;return!0}(e))return c({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});var f=function(t,i){var n;try{n=new Date(t)}catch(t){return null}if(!i||!i.segments||0===i.segments.length)return null;var e=i.segments[0];if(n<e.dateTimeObject)return null;for(var r=0;r<i.segments.length-1&&(e=i.segments[r],!(n<i.segments[r+1].dateTimeObject));r++);var s,o=i.segments[i.segments.length-1],a=o.dateTimeObject,u=o.videoTimingInfo?(s=o.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:o.duration+.25*o.duration;return n>new Date(a.getTime()+1e3*u)?null:(n>a&&(e=o),{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:$u.duration(i,i.mediaSequence+i.segments.indexOf(e)),type:e.videoTimingInfo?"accurate":"estimate"})}(n,e);if(!f)return c({message:n+" was not found in the stream"});var l=f.segment,d=function(t,i){var n,e;try{n=new Date(t),e=new Date(i)}catch(t){}var r=n.getTime();return(e.getTime()-r)/1e3}(l.dateTimeObject,n);if("estimate"===f.type)return 0===s?c({message:n+" is not buffered yet. Try again"}):(o(f.estimatedStart+d),void h.one("seeked",(function(){t({programTime:n,playlist:e,retryCount:s-1,seekTo:o,pauseAfterSeek:u,tech:h,callback:c})})));var v=l.start+d;h.one("seeked",(function(){return c(null,h.currentTime())})),u&&h.pause(),o(v)},Sh=function(t,i){if(4===t.readyState)return i()},Ih=Tu.mergeOptions,Dh=function(t,i){if(!hh(t,i))return!1;if(t.sidx&&i.sidx&&(t.sidx.offset!==i.sidx.offset||t.sidx.length!==i.sidx.length))return!1;if(!t.sidx&&i.sidx||t.sidx&&!i.sidx)return!1;if(t.segments&&!i.segments||!t.segments&&i.segments)return!1;if(!t.segments&&!i.segments)return!0;for(var n=0;n<t.segments.length;n++){var e=t.segments[n],r=i.segments[n];if(e.uri!==r.uri)return!1;if(e.byterange||r.byterange){var s=e.byterange,o=r.byterange;if(s&&!o||!s&&o)return!1;if(s.offset!==o.offset||s.length!==o.length)return!1}}return!0},Oh=function(t,i){var n,e,r={};for(var s in t){var o=t[s].sidx;if(o){var a=Un(o);if(!i[a])break;n=i[a].sidxInfo,e=o,(Boolean(!n.map&&!e.map)||Boolean(n.map&&e.map&&n.map.byterange.offset===e.map.byterange.offset&&n.map.byterange.length===e.map.byterange.length))&&n.uri===e.uri&&n.byterange.offset===e.byterange.offset&&n.byterange.length===e.byterange.length&&(r[a]=i[a])}}return r},Nh=function(t){function i(i,n,e,r){var s;void 0===e&&(e={}),(s=t.call(this)||this).masterPlaylistLoader_=r||H(s),r||(s.isMaster_=!0);var o=e.withCredentials,a=void 0!==o&&o,u=e.handleManifestRedirects,h=void 0!==u&&u;if(s.vhs_=n,s.withCredentials=a,s.handleManifestRedirects=h,!i)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",(function(){s.refreshXml_()})),s.on("mediaupdatetimeout",(function(){s.refreshMedia_(s.media().id)})),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=Du("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=i,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=i,s}X(i,t);var n=i.prototype;return n.requestErrored_=function(t,i,n){return!this.request||(this.request=null,t?(this.error="object"!=typeof t||t instanceof Error?{status:i.status,message:"DASH request error at URL: "+i.uri,response:i.response,code:2}:t,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(t,i,n){var e=this,r=t.sidx&&Un(t.sidx);if(t.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var s=Iu(this.handleManifestRedirects,t.sidx.resolvedUri),o=function(s,o){if(!e.requestErrored_(s,o,i)){var a,u=e.masterPlaylistLoader_.sidxMapping_;try{a=function(t){var i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},e=12;0===n.version?(n.earliestPresentationTime=i.getUint32(e),n.firstOffset=i.getUint32(e+4),e+=8):(n.earliestPresentationTime=i.getUint32(e)*ae+i.getUint32(e+4),n.firstOffset=i.getUint32(e+8)*ae+i.getUint32(e+12),e+=16);var r=i.getUint16(e+=2);for(e+=2;r>0;e+=12,r--)n.references.push({referenceType:(128&t[e])>>>7,referencedSize:2147483647&i.getUint32(e),subsegmentDuration:i.getUint32(e+4),startsWithSap:!!(128&t[e+8]),sapType:(112&t[e+8])>>>4,sapDeltaTime:268435455&i.getUint32(e+8)});return n}(ue(o.response).subarray(8))}catch(t){return void e.requestErrored_(t,o,i)}return u[r]={sidxInfo:t.sidx,sidx:a},Cn(t,a,t.sidx.resolvedUri),n(!0)}};this.request=function(t,i,n){var e,r=[],s=!1,o=function(t,i,e,r){return i.abort(),s=!0,n(t,i,e,r)},a=function(t,i){if(!s){if(t)return o(t,i,"",r);var n=i.responseText.substring(r&&r.byteLength||0,i.responseText.length);if(r=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if((i=i.filter((function(t){return t&&(t.byteLength||t.length)&&"string"!=typeof t}))).length<=1)return ue(i[0]);var e=i.reduce((function(t,i){return t+(i.byteLength||i.length)}),0),r=new Uint8Array(e),s=0;return i.forEach((function(t){t=ue(t),r.set(t,s),s+=t.byteLength})),r}(r,le(n,!0)),e=e||pe(r),r.length<10||e&&r.length<e+2)return Sh(i,(function(){return o(t,i,"",r)}));var a=Ce(r);return"ts"===a&&r.length<188||!a&&r.length<376?Sh(i,(function(){return o(t,i,"",r)})):o(null,i,a,r)}},u=i({uri:t,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",(function(){return ph(t,null,{statusCode:t.status},a)}))}},(function(t,i){return ph(u,t,i,a)}));return u}(s,this.vhs_.xhr,(function(i,n,r,a){if(i)return o(i,n);if(!r||"mp4"!==r)return o({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},n);var u=t.sidx.byterange,h=u.offset,c=u.length;if(a.length>=c+h)return o(i,{response:a.subarray(h,h+c),status:n.status,uri:n.uri});e.request=e.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:gh({byterange:t.sidx.byterange})},o)}))}else this.mediaRequest_=B.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},B.clearTimeout(this.minimumUpdatePeriodTimeout_),B.clearTimeout(this.mediaRequest_),B.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},n.media=function(t){var i=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var e=!this.media_||t.id!==this.media_.id;if(e&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(e&&(this.trigger("mediachanging"),this.trigger("mediachange")));e&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,(function(){i.haveMetadata({startingState:n,playlist:t})})))},n.haveMetadata=function(t){var i=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),this.trigger("HAVE_MASTER"===i?"loadedmetadata":"mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),B.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(B.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(t){var i=this;B.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();t?this.mediaUpdateTimeout=B.setTimeout((function(){return i.load()}),n?n.targetDuration/2*1e3:5e3):this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var t=this;this.started=!0,this.isMaster_?this.requestMaster_((function(){t.haveMaster_(),t.hasPendingRequest()||t.media_||t.media(t.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=B.setTimeout((function(){return t.haveMaster_()}),0)},n.requestMaster_=function(t){var i=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,e){if(!i.requestErrored_(n,e)){var r=e.responseText!==i.masterPlaylistLoader_.masterXml_;return i.masterPlaylistLoader_.masterXml_=e.responseText,i.masterLoaded_=e.responseHeaders&&e.responseHeaders.date?Date.parse(e.responseHeaders.date):Date.now(),i.masterPlaylistLoader_.srcUrl=Iu(i.handleManifestRedirects,i.masterPlaylistLoader_.srcUrl,e),r?(i.handleMaster_(),void i.syncClientServerClock_((function(){return t(e,r)}))):t(e,r)}"HAVE_NOTHING"===i.state&&(i.started=!1)}))},n.syncClientServerClock_=function(t){var i=this,n=function(t){var i=Qn(t,"UTCTiming")[0];if(!i)return null;var n=te(i);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n}(se(this.masterPlaylistLoader_.masterXml_));return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),t()):void(this.request=this.vhs_.xhr({uri:Su(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(e,r){if(i.request){if(e)return i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now(),t();var s;s="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):i.masterLoaded_:Date.parse(r.responseText),i.masterPlaylistLoader_.clientOffset_=s-Date.now(),t()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var t,i,n,e=(n=oe((t={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_}).masterXml,{manifestUri:i=t.srcUrl,clientOffset:t.clientOffset,sidxMapping:t.sidxMapping}),rh(n,i),n),r=this.masterPlaylistLoader_.master;r&&(e=function(t,i,n){for(var e=!0,r=Ih(t,{duration:i.duration,minimumUpdatePeriod:i.minimumUpdatePeriod}),s=0;s<i.playlists.length;s++){var o=i.playlists[s];if(o.sidx){var a=Un(o.sidx);n&&n[a]&&n[a].sidx&&Cn(o,n[a].sidx,o.sidx.resolvedUri)}var u=ch(r,o,Dh);u&&(r=u,e=!1)}return nh(i,(function(t,i,n,s){if(t.playlists&&t.playlists.length){var o=t.playlists[0].id,a=ch(r,t.playlists[0],Dh);a&&((r=a).mediaGroups[i][n][s].playlists[0]=r.playlists[o],e=!1)}})),i.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(e=!1),e?null:r}(r,e,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=e||r;var s=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return s&&s!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=s),(!r||e&&e.minimumUpdatePeriod!==r.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(e)},n.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(B.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var i=t.master&&t.master.minimumUpdatePeriod;0===i&&(t.media()?i=1e3*t.media().targetDuration:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),"number"!=typeof i||i<=0?i<0&&this.logger_("found invalid minimumUpdatePeriod of "+i+", not setting a timeout"):this.createMUPTimeout_(i)},n.createMUPTimeout_=function(t){var i=this.masterPlaylistLoader_;i.minimumUpdatePeriodTimeout_=B.setTimeout((function(){i.minimumUpdatePeriodTimeout_=null,i.trigger("minimumUpdatePeriod"),i.createMUPTimeout_(t)}),t)},n.refreshXml_=function(){var t=this;this.requestMaster_((function(i,n){var e,r,s;n&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=(s=Oh((e=t.masterPlaylistLoader_.master).playlists,r=t.masterPlaylistLoader_.sidxMapping_),nh(e,(function(t){t.playlists&&t.playlists.length&&(s=Ih(s,Oh(t.playlists,r)))})),s),t.addSidxSegments_(t.media(),t.state,(function(){t.refreshMedia_(t.media().id)})))}))},n.refreshMedia_=function(t){var i=this;if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,e=!this.media_||this.media_!==n[t];e?this.media_=n[t]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function t(){i.media().endList||(i.mediaUpdateTimeout=B.setTimeout((function(){i.trigger("mediaupdatetimeout"),t()}),fh(i.media(),Boolean(e))))}(),this.trigger("loadedplaylist")},i}(Tu.EventTarget),Rh={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Mh=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Ch=function(t){return function(){var i=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(n){var i=new BlobBuilder;return i.append(t),URL.createObjectURL(i.getBlob())}}(t),n=Mh(new Worker(i));n.objURL=i;var e=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(i),e.call(this)},n}},Uh=function(t){return"var browserWorkerPolyFill = "+Mh.toString()+";\nbrowserWorkerPolyFill(self);\n"+t},Ph=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Lh=Ch(Uh(Ph((function(){var t=function(){this.init=function(){var t={};this.on=function(i,n){t[i]||(t[i]=[]),t[i]=t[i].concat(n)},this.off=function(i,n){var e;return!!t[i]&&(e=t[i].indexOf(n),t[i]=t[i].slice(),t[i].splice(e,1),e>-1)},this.trigger=function(i){var n,e,r,s;if(n=t[i])if(2===arguments.length)for(r=n.length,e=0;e<r;++e)n[e].call(this,arguments[1]);else{for(s=[],e=arguments.length,e=1;e<arguments.length;++e)s.push(arguments[e]);for(r=n.length,e=0;e<r;++e)n[e].apply(this,s)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",(function(i){t.push(i)})),this.on("done",(function(i){t.flush(i)})),this.on("partialdone",(function(i){t.partialFlush(i)})),this.on("endedtimeline",(function(i){t.endTimeline(i)})),this.on("reset",(function(i){t.reset(i)})),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var i,n,e,r,s,o,a,u,h,c,f,l,d,v,p,m,g,b,y,j,w,x,k,T,A,E,S,I,D,O,N,R,M,C,U,P,L,B,F,z,_=t,V=Math.pow(2,32)-1;!function(){var t;if(x={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in x)x.hasOwnProperty(t)&&(x[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),A=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),T=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),S=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:E,audio:S},N=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),M=R,C=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U=R,D=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),i=function(t){var i,n,e=[],r=0;for(i=1;i<arguments.length;i++)e.push(arguments[i]);for(i=e.length;i--;)r+=e[i].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(t,4),i=0,r=8;i<e.length;i++)n.set(e[i],r),r+=e[i].byteLength;return n},n=function(){return i(x.dinf,i(x.dref,N))},e=function(t){return i(x.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},p=function(t){return i(x.hdlr,I[t])},v=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),i(x.mdhd,n)},d=function(t){return i(x.mdia,v(t),p(t.type),o(t))},s=function(t){return i(x.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},o=function(t){return i(x.minf,"video"===t.type?i(x.vmhd,D):i(x.smhd,O),n(),g(t))},a=function(t,n){for(var e=[],r=n.length;r--;)e[r]=y(n[r]);return i.apply(null,[x.moof,s(t)].concat(e))},u=function(t){for(var n=t.length,e=[];n--;)e[n]=f(t[n]);return i.apply(null,[x.moov,c(4294967295)].concat(e).concat(h(t)))},h=function(t){for(var n=t.length,e=[];n--;)e[n]=j(t[n]);return i.apply(null,[x.mvex].concat(e))},c=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return i(x.mvhd,n)},m=function(t){var n,e,r=t.samples||[],s=new Uint8Array(4+r.length);for(e=0;e<r.length;e++)s[e+4]=(n=r[e].flags).dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return i(x.sdtp,s)},g=function(t){return i(x.stbl,b(t),i(x.stts,U),i(x.stsc,M),i(x.stsz,C),i(x.stco,R))},b=function(t){return i(x.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?P(t):L(t))},P=function(t){var n,e,r=t.sps||[],s=t.pps||[],o=[],a=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<s.length;n++)a.push((65280&s[n].byteLength)>>>8),a.push(255&s[n].byteLength),a=a.concat(Array.prototype.slice.call(s[n]));if(e=[x.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i(x.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],o,[s.length],a))),i(x.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var u=t.sarRatio[0],h=t.sarRatio[1];e.push(i(x.pasp,new Uint8Array([(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u,(4278190080&h)>>24,(16711680&h)>>16,(65280&h)>>8,255&h])))}return i.apply(null,e)},L=function(t){return i(x.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),e(t))},l=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return i(x.tkhd,n)},y=function(t){var n,e,r,s,o,a;return n=i(x.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(t.baseMediaDecodeTime/(V+1)),a=Math.floor(t.baseMediaDecodeTime%(V+1)),e=i(x.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===t.type?(r=w(t,92),i(x.traf,n,e,r)):(s=m(t),r=w(t,s.length+92),i(x.traf,n,e,r,s))},f=function(t){return t.duration=t.duration||4294967295,i(x.trak,l(t),d(t))},j=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),i(x.trex,n)},z=function(t,i){var n=0,e=0,r=0,s=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(e=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(s=8)),[0,0,n|e|r|s,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&i)>>>24,(16711680&i)>>>16,(65280&i)>>>8,255&i]},F=function(t,n){var e,r,s,o,a,u;for(s=z(o=t.samples||[],n+=20+16*o.length),(r=new Uint8Array(s.length+16*o.length)).set(s),e=s.length,u=0;u<o.length;u++)r[e++]=(4278190080&(a=o[u]).duration)>>>24,r[e++]=(16711680&a.duration)>>>16,r[e++]=(65280&a.duration)>>>8,r[e++]=255&a.duration,r[e++]=(4278190080&a.size)>>>24,r[e++]=(16711680&a.size)>>>16,r[e++]=(65280&a.size)>>>8,r[e++]=255&a.size,r[e++]=a.flags.isLeading<<2|a.flags.dependsOn,r[e++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,r[e++]=61440&a.flags.degradationPriority,r[e++]=15&a.flags.degradationPriority,r[e++]=(4278190080&a.compositionTimeOffset)>>>24,r[e++]=(16711680&a.compositionTimeOffset)>>>16,r[e++]=(65280&a.compositionTimeOffset)>>>8,r[e++]=255&a.compositionTimeOffset;return i(x.trun,r)},B=function(t,n){var e,r,s,o,a,u;for(s=z(o=t.samples||[],n+=20+8*o.length),(e=new Uint8Array(s.length+8*o.length)).set(s),r=s.length,u=0;u<o.length;u++)e[r++]=(4278190080&(a=o[u]).duration)>>>24,e[r++]=(16711680&a.duration)>>>16,e[r++]=(65280&a.duration)>>>8,e[r++]=255&a.duration,e[r++]=(4278190080&a.size)>>>24,e[r++]=(16711680&a.size)>>>16,e[r++]=(65280&a.size)>>>8,e[r++]=255&a.size;return i(x.trun,e)},w=function(t,i){return"audio"===t.type?B(t,i):F(t,i)},r=function(){return i(x.ftyp,k,T,k,A)};var H,q,X,W,G,Y,J,Q,K=function(t){return i(x.mdat,t)},Z=a,$=function(t,i){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=i,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},tt=[33,16,5,32,164,27],it=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],nt=function(t){for(var i=[];t--;)i.push(0);return i},et=9e4;Y=function(t,i){return q(G(t,i))},J=function(t,i){return X(W(t),i)},Q=function(t,i,n){return W(n?t:t-i)};var rt=et,st=q=function(t){return t*et},ot=(X=function(t,i){return t*i},W=function(t){return t/et}),at=(G=function(t,i){return t/i},Y),ut=J,ht=Q,ct=function(t,i,n,e){var r,s,o,a,u,h=0,c=0,f=0;if(i.length&&(r=at(t.baseMediaDecodeTime,t.samplerate),s=Math.ceil(rt/(t.samplerate/1024)),n&&e&&(h=r-Math.max(n,e),f=(c=Math.floor(h/s))*s),!(c<1||f>45e3))){for((o=function(){if(!H){var t={96e3:[tt,[227,64],nt(154),[56]],88200:[tt,[231],nt(170),[56]],64e3:[tt,[248,192],nt(240),[56]],48e3:[tt,[255,192],nt(268),[55,148,128],nt(54),[112]],44100:[tt,[255,192],nt(268),[55,163,128],nt(84),[112]],32e3:[tt,[255,192],nt(268),[55,234],nt(226),[112]],24e3:[tt,[255,192],nt(268),[55,255,128],nt(268),[111,112],nt(126),[224]],16e3:[tt,[255,192],nt(268),[55,255,128],nt(268),[111,255],nt(269),[223,108],nt(195),[1,192]],12e3:[it,nt(268),[3,127,248],nt(268),[6,255,240],nt(268),[13,255,224],nt(268),[27,253,128],nt(259),[56]],11025:[it,nt(268),[3,127,248],nt(268),[6,255,240],nt(268),[13,255,224],nt(268),[27,255,192],nt(268),[55,175,128],nt(108),[112]],8e3:[it,nt(268),[3,121,16],nt(47),[7]]};i=t,H=Object.keys(i).reduce((function(t,n){return t[n]=new Uint8Array(i[n].reduce((function(t,i){return t.concat(i)}),[])),t}),{})}var i;return H}()[t.samplerate])||(o=i[0].data),a=0;a<c;a++)i.splice(0,0,{data:o,dts:(u=i[0]).dts-s,pts:u.pts-s});return t.baseMediaDecodeTime-=Math.floor(ut(f,t.samplerate)),f}},ft=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},lt=function(t,i){var n,e=t.minSegmentDts;return i||(e-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=e,n=Math.max(0,n),"audio"===t.type&&(n*=t.samplerate/9e4,n=Math.floor(n)),n},dt=function(t,i){"number"==typeof i.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=i.pts),t.minSegmentPts=void 0===t.minSegmentPts?i.pts:Math.min(t.minSegmentPts,i.pts),t.maxSegmentPts=void 0===t.maxSegmentPts?i.pts:Math.max(t.maxSegmentPts,i.pts)),"number"==typeof i.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=i.dts),t.minSegmentDts=void 0===t.minSegmentDts?i.dts:Math.min(t.minSegmentDts,i.dts),t.maxSegmentDts=void 0===t.maxSegmentDts?i.dts:Math.max(t.maxSegmentDts,i.dts))},vt=function t(i){i=i||{},t.prototype.init.call(this),this.parse708captions_="boolean"!=typeof i.parse708captions||i.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Tt(0,0),new Tt(0,1),new Tt(1,0),new Tt(1,1)],this.parse708captions_&&(this.cc708Stream_=new yt),this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(vt.prototype=new _).push=function(t){var i,n,e;if("sei_rbsp"===t.nalUnitType&&(i=function(t){for(var i=0,n={payloadType:-1,payloadSize:0},e=0,r=0;i<t.byteLength&&128!==t[i];){for(;255===t[i];)e+=255,i++;for(e+=t[i++];255===t[i];)r+=255,i++;if(r+=t[i++],!n.payload&&4===e){if("GA94"===String.fromCharCode(t[i+3],t[i+4],t[i+5],t[i+6])){n.payloadType=e,n.payloadSize=r,n.payload=t.subarray(i,i+r);break}n.payload=void 0}i+=r,e=0,r=0}return n}(t.escapedRBSP)).payload&&4===i.payloadType&&(n=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(i)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));e=function(t,i){var n,e,r,s,o=[];if(!(64&i[0]))return o;for(e=31&i[0],n=0;n<e;n++)s={type:3&i[2+(r=3*n)],pts:t},4&i[r+2]&&(s.ccData=i[r+3]<<8|i[r+4],o.push(s));return o}(t.pts,n),this.captionPackets_=this.captionPackets_.concat(e),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},vt.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(i){return"flush"===t?i.flush():i.partialFlush()}),this)},vt.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,i){t.presortIndex=i})),this.captionPackets_.sort((function(t,i){return t.pts===i.pts?t.presortIndex-i.presortIndex:t.pts-i.pts})),this.captionPackets_.forEach((function(t){t.type<2?this.dispatchCea608Packet(t):this.dispatchCea708Packet(t)}),this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},vt.prototype.flush=function(){return this.flushStream("flush")},vt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},vt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},vt.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},vt.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},vt.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},vt.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)},vt.prototype.dispatchCea708Packet=function(t){this.parse708captions_&&this.cc708Stream_.push(t)};var pt={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},mt=function(t){return 32<=t&&t<=127||160<=t&&t<=255},gt=function(t){this.windowNum=t,this.reset()};gt.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},gt.prototype.getText=function(){return this.rows.join("\n")},gt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},gt.prototype.newLine=function(t){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(t),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},gt.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},gt.prototype.addText=function(t){this.rows[this.rowIdx]+=t},gt.prototype.backspace=function(){if(!this.isEmpty()){var t=this.rows[this.rowIdx];this.rows[this.rowIdx]=t.substr(0,t.length-1)}};var bt=function(t){this.serviceNum=t,this.text="",this.currentWindow=new gt(-1),this.windows=[]};bt.prototype.init=function(t,i){this.startPts=t;for(var n=0;n<8;n++)this.windows[n]=new gt(n),"function"==typeof i&&(this.windows[n].beforeRowOverflow=i)},bt.prototype.setCurrentWindow=function(t){this.currentWindow=this.windows[t]};var yt=function t(){t.prototype.init.call(this);var i=this;this.current708Packet=null,this.services={},this.push=function(t){3===t.type?(i.new708Packet(),i.add708Bytes(t)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(t))}};yt.prototype=new _,yt.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},yt.prototype.add708Bytes=function(t){var i=t.ccData,n=i>>>8,e=255&i;this.current708Packet.ptsVals.push(t.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(e)},yt.prototype.push708Packet=function(){var t=this.current708Packet,i=t.data,n=null,e=null,r=0,s=i[r++];for(t.seq=s>>6,t.sizeCode=63&s;r<i.length;r++)e=31&(s=i[r++]),7==(n=s>>5)&&e>0&&(n=s=i[r++]),this.pushServiceBlock(n,r,e),e>0&&(r+=e-1)},yt.prototype.pushServiceBlock=function(t,i,n){var e,r=i,s=this.current708Packet.data,o=this.services[t];for(o||(o=this.initService(t,r));r<i+n&&r<s.length;r++)mt(e=s[r])?r=this.handleText(r,o):16===e?r=this.extendedCommands(r,o):128<=e&&e<=135?r=this.setCurrentWindow(r,o):152<=e&&e<=159?r=this.defineWindow(r,o):136===e?r=this.clearWindows(r,o):140===e?r=this.deleteWindows(r,o):137===e?r=this.displayWindows(r,o):138===e?r=this.hideWindows(r,o):139===e?r=this.toggleWindows(r,o):151===e?r=this.setWindowAttributes(r,o):144===e?r=this.setPenAttributes(r,o):145===e?r=this.setPenColor(r,o):146===e?r=this.setPenLocation(r,o):143===e?o=this.reset(r,o):8===e?o.currentWindow.backspace():12===e?o.currentWindow.clearText():13===e?o.currentWindow.pendingNewLine=!0:14===e?o.currentWindow.clearText():141===e&&r++},yt.prototype.extendedCommands=function(t,i){var n=this.current708Packet.data[++t];return mt(n)&&(t=this.handleText(t,i,!0)),t},yt.prototype.getPts=function(t){return this.current708Packet.ptsVals[Math.floor(t/2)]},yt.prototype.initService=function(t,i){var n=this;return this.services[t]=new bt(t),this.services[t].init(this.getPts(i),(function(i){n.flushDisplayed(i,n.services[t])})),this.services[t]},yt.prototype.handleText=function(t,i,n){var e,r,s=(r=pt[e=(n?4096:0)|this.current708Packet.data[t]]||e,4096&e&&e===r?"":String.fromCharCode(r)),o=i.currentWindow;return o.pendingNewLine&&!o.isEmpty()&&o.newLine(this.getPts(t)),o.pendingNewLine=!1,o.addText(s),t},yt.prototype.setCurrentWindow=function(t,i){return i.setCurrentWindow(7&this.current708Packet.data[t]),t},yt.prototype.defineWindow=function(t,i){var n=this.current708Packet.data,e=n[t];i.setCurrentWindow(7&e);var r=i.currentWindow;return e=n[++t],r.visible=(32&e)>>5,r.rowLock=(16&e)>>4,r.columnLock=(8&e)>>3,r.priority=7&e,e=n[++t],r.relativePositioning=(128&e)>>7,r.anchorVertical=127&e,e=n[++t],r.anchorHorizontal=e,e=n[++t],r.anchorPoint=(240&e)>>4,r.rowCount=15&e,e=n[++t],r.columnCount=63&e,e=n[++t],r.windowStyle=(56&e)>>3,r.penStyle=7&e,r.virtualRowCount=r.rowCount+1,t},yt.prototype.setWindowAttributes=function(t,i){var n=this.current708Packet.data,e=n[t],r=i.currentWindow.winAttr;return e=n[++t],r.fillOpacity=(192&e)>>6,r.fillRed=(48&e)>>4,r.fillGreen=(12&e)>>2,r.fillBlue=3&e,e=n[++t],r.borderType=(192&e)>>6,r.borderRed=(48&e)>>4,r.borderGreen=(12&e)>>2,r.borderBlue=3&e,e=n[++t],r.borderType+=(128&e)>>5,r.wordWrap=(64&e)>>6,r.printDirection=(48&e)>>4,r.scrollDirection=(12&e)>>2,r.justify=3&e,e=n[++t],r.effectSpeed=(240&e)>>4,r.effectDirection=(12&e)>>2,r.displayEffect=3&e,t},yt.prototype.flushDisplayed=function(t,i){for(var n=[],e=0;e<8;e++)i.windows[e].visible&&!i.windows[e].isEmpty()&&n.push(i.windows[e].getText());i.endPts=t,i.text=n.join("\n\n"),this.pushCaption(i),i.startPts=t},yt.prototype.pushCaption=function(t){""!==t.text&&(this.trigger("data",{startPts:t.startPts,endPts:t.endPts,text:t.text,stream:"cc708_"+t.serviceNum}),t.text="",t.startPts=t.endPts)},yt.prototype.displayWindows=function(t,i){var n=this.current708Packet.data[++t],e=this.getPts(t);this.flushDisplayed(e,i);for(var r=0;r<8;r++)n&1<<r&&(i.windows[r].visible=1);return t},yt.prototype.hideWindows=function(t,i){var n=this.current708Packet.data[++t],e=this.getPts(t);this.flushDisplayed(e,i);for(var r=0;r<8;r++)n&1<<r&&(i.windows[r].visible=0);return t},yt.prototype.toggleWindows=function(t,i){var n=this.current708Packet.data[++t],e=this.getPts(t);this.flushDisplayed(e,i);for(var r=0;r<8;r++)n&1<<r&&(i.windows[r].visible^=1);return t},yt.prototype.clearWindows=function(t,i){var n=this.current708Packet.data[++t],e=this.getPts(t);this.flushDisplayed(e,i);for(var r=0;r<8;r++)n&1<<r&&i.windows[r].clearText();return t},yt.prototype.deleteWindows=function(t,i){var n=this.current708Packet.data[++t],e=this.getPts(t);this.flushDisplayed(e,i);for(var r=0;r<8;r++)n&1<<r&&i.windows[r].reset();return t},yt.prototype.setPenAttributes=function(t,i){var n=this.current708Packet.data,e=n[t],r=i.currentWindow.penAttr;return e=n[++t],r.textTag=(240&e)>>4,r.offset=(12&e)>>2,r.penSize=3&e,e=n[++t],r.italics=(128&e)>>7,r.underline=(64&e)>>6,r.edgeType=(56&e)>>3,r.fontStyle=7&e,t},yt.prototype.setPenColor=function(t,i){var n=this.current708Packet.data,e=n[t],r=i.currentWindow.penColor;return e=n[++t],r.fgOpacity=(192&e)>>6,r.fgRed=(48&e)>>4,r.fgGreen=(12&e)>>2,r.fgBlue=3&e,e=n[++t],r.bgOpacity=(192&e)>>6,r.bgRed=(48&e)>>4,r.bgGreen=(12&e)>>2,r.bgBlue=3&e,e=n[++t],r.edgeRed=(48&e)>>4,r.edgeGreen=(12&e)>>2,r.edgeBlue=3&e,t},yt.prototype.setPenLocation=function(t,i){var n=this.current708Packet.data,e=n[t],r=i.currentWindow.penLoc;return i.currentWindow.pendingNewLine=!0,e=n[++t],r.row=15&e,e=n[++t],r.column=63&e,t},yt.prototype.reset=function(t,i){var n=this.getPts(t);return this.flushDisplayed(n,i),this.initService(i.serviceNum,t)};var jt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},wt=function(t){return null===t?"":(t=jt[t]||t,String.fromCharCode(t))},xt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],kt=function(){for(var t=[],i=15;i--;)t.push("");return t},Tt=function t(i,n){t.prototype.init.call(this),this.field_=i||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var i,n,e,r,s;if((i=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&i)?this.lastControlCode_=i:i!==this.PADDING_&&(this.lastControlCode_=null),e=i>>>8,r=255&i,i!==this.PADDING_)if(i===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(i===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(i===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(i===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(i===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(i===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(i===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(i===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=kt();else if(i===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=kt();else if(i===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=kt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(e,r))s=wt((e=(3&e)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isExtCharacter(e,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),s=wt((e=(3&e)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isMidRowCode(e,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(e,r))this.column_+=3&r;else if(this.isPAC(e,r)){var o=xt.indexOf(7968&i);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(t.pts,o)),o!==this.row_&&(this.clearFormatting(t.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&i)&&(this.column_=4*((14&i)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(e)&&(0===r&&(r=null),s=wt(e),s+=wt(r),this[this.mode_](t.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};Tt.prototype=new _,Tt.prototype.flushDisplayed=function(t){var i=this.displayed_.map((function(t){try{return t.trim()}catch(t){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");i.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:i,stream:this.name_})},Tt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=kt(),this.nonDisplayed_=kt(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Tt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Tt.prototype.isSpecialCharacter=function(t,i){return t===this.EXT_&&i>=48&&i<=63},Tt.prototype.isExtCharacter=function(t,i){return(t===this.EXT_+1||t===this.EXT_+2)&&i>=32&&i<=63},Tt.prototype.isMidRowCode=function(t,i){return t===this.EXT_&&i>=32&&i<=47},Tt.prototype.isOffsetControlCode=function(t,i){return t===this.OFFSET_&&i>=33&&i<=35},Tt.prototype.isPAC=function(t,i){return t>=this.BASE_&&t<this.BASE_+8&&i>=64&&i<=127},Tt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Tt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Tt.prototype.setRollUp=function(t,i){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=kt(),this.displayed_=kt()),void 0!==i&&i!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[i-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===i&&(i=this.row_),this.topRow_=i-this.rollUpRows_+1},Tt.prototype.addFormatting=function(t,i){this.formatting_=this.formatting_.concat(i);var n=i.reduce((function(t,i){return t+"<"+i+">"}),"");this[this.mode_](t,n)},Tt.prototype.clearFormatting=function(t){if(this.formatting_.length){var i=this.formatting_.reverse().reduce((function(t,i){return t+"</"+i+">"}),"");this.formatting_=[],this[this.mode_](t,i)}},Tt.prototype.popOn=function(t,i){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=i},Tt.prototype.rollUp=function(t,i){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=i},Tt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Tt.prototype.paintOn=function(t,i){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=i};var At={CaptionStream:vt,Cea608Stream:Tt,Cea708Stream:yt},Et={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},St="shared",It=function(t,i){var n=1;for(t>i&&(n=-1);Math.abs(i-t)>4294967296;)t+=8589934592*n;return t},Dt=function t(i){var n,e;t.prototype.init.call(this),this.type_=i||St,this.push=function(t){this.type_!==St&&t.type!==this.type_||(void 0===e&&(e=t.dts),t.dts=It(t.dts,e),t.pts=It(t.pts,e),n=t.dts,this.trigger("data",t))},this.flush=function(){e=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){e=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Dt.prototype=new _;var Ot,Nt=Dt,Rt=It,Mt=function(t,i,n){var e,r="";for(e=i;e<n;e++)r+="%"+("00"+t[e].toString(16)).slice(-2);return r},Ct=function(t,i,n){return decodeURIComponent(Mt(t,i,n))},Ut=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},Pt={TXXX:function(t){var i;if(3===t.data[0]){for(i=1;i<t.data.length;i++)if(0===t.data[i]){t.description=Ct(t.data,1,i),t.value=Ct(t.data,i+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var i;if(3===t.data[0])for(i=1;i<t.data.length;i++)if(0===t.data[i]){t.description=Ct(t.data,1,i),t.url=Ct(t.data,i+1,t.data.length);break}},PRIV:function(t){var i;for(i=0;i<t.data.length;i++)if(0===t.data[i]){t.owner=unescape(Mt(t.data,0,i));break}t.privateData=t.data.subarray(i+1),t.data=t.privateData}};(Ot=function(t){var i,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},e=0,r=[],s=0;if(Ot.prototype.init.call(this),this.dispatchType=Et.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(i=0;i<n.descriptor.length;i++)this.dispatchType+=("00"+n.descriptor[i].toString(16)).slice(-2);this.push=function(t){var i,o,a,u,h;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(r.push(t),s+=t.data.byteLength,1===r.length&&(e=Ut(t.data.subarray(6,10)),e+=10),!(s<e)){for(i={data:new Uint8Array(e),frames:[],pts:r[0].pts,dts:r[0].dts},h=0;h<e;)i.data.set(r[0].data.subarray(0,e-h),h),h+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();o=10,64&i.data[5]&&(o+=4,o+=Ut(i.data.subarray(10,14)),e-=Ut(i.data.subarray(16,20)));do{if((a=Ut(i.data.subarray(o+4,o+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((u={id:String.fromCharCode(i.data[o],i.data[o+1],i.data[o+2],i.data[o+3]),data:i.data.subarray(o+10,o+a+10)}).key=u.id,Pt[u.id]&&(Pt[u.id](u),"com.apple.streaming.transportStreamTimestamp"===u.owner)){var c=u.data,f=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;f*=4,u.timeStamp=f+=3&c[7],void 0===i.pts&&void 0===i.dts&&(i.pts=u.timeStamp,i.dts=u.timeStamp),this.trigger("timestamp",u)}i.frames.push(u),o+=10,o+=a}while(o<e);this.trigger("data",i)}}}).prototype=new _;var Lt,Bt,Ft,zt=Ot,_t=Nt,Vt=188;(Lt=function(){var t=new Uint8Array(Vt),i=0;Lt.prototype.init.call(this),this.push=function(n){var e,r=0,s=Vt;for(i?((e=new Uint8Array(n.byteLength+i)).set(t.subarray(0,i)),e.set(n,i),i=0):e=n;s<e.byteLength;)71!==e[r]||71!==e[s]?(r++,s++):(this.trigger("data",e.subarray(r,s)),r+=Vt,s+=Vt);r<e.byteLength&&(t.set(e.subarray(r),0),i=e.byteLength-r)},this.flush=function(){i===Vt&&71===t[0]&&(this.trigger("data",t),i=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){i=0,this.trigger("reset")}}).prototype=new _,(Bt=function(){var t,i,n,e;Bt.prototype.init.call(this),e=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,e){var r=0;e.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===e.type?i(t.subarray(r),e):n(t.subarray(r),e)},i=function(t,i){i.section_number=t[7],i.last_section_number=t[8],e.pmtPid=(31&t[10])<<8|t[11],i.pmtPid=e.pmtPid},n=function(t,i){var n,r;if(1&t[5]){for(e.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<n;){var s=t[r],o=(31&t[r+1])<<8|t[r+2];s===Et.H264_STREAM_TYPE&&null===e.programMapTable.video?e.programMapTable.video=o:s===Et.ADTS_STREAM_TYPE&&null===e.programMapTable.audio?e.programMapTable.audio=o:s===Et.METADATA_STREAM_TYPE&&(e.programMapTable["timed-metadata"][o]=s),r+=5+((15&t[r+3])<<8|t[r+4])}i.programMapTable=e.programMapTable}},this.push=function(i){var n={},e=4;if(n.payloadUnitStartIndicator=!!(64&i[1]),n.pid=31&i[1],n.pid<<=8,n.pid|=i[2],(48&i[3])>>>4>1&&(e+=i[e]+1),0===n.pid)n.type="pat",t(i.subarray(e),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(i.subarray(e),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([i,e,n]):this.processPes_(i,e,n)},this.processPes_=function(t,i,n){n.streamType=n.pid===this.programMapTable.video?Et.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?Et.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(i),this.trigger("data",n)}}).prototype=new _,Bt.STREAM_TYPES={h264:27,adts:15},(Ft=function(){var t,i=this,n={data:[],size:0},e={data:[],size:0},r={data:[],size:0},s=function(t,n,e){var r,s,o=new Uint8Array(t.size),a={type:n},u=0,h=0;if(t.data.length&&!(t.size<9)){for(a.trackId=t.data[0].pid,u=0;u<t.data.length;u++)o.set((s=t.data[u]).data,h),h+=s.data.byteLength;var c,f,l,d;d=(c=o)[0]<<16|c[1]<<8|c[2],(f=a).data=new Uint8Array,1===d&&(f.packetLength=6+(c[4]<<8|c[5]),f.dataAlignmentIndicator=0!=(4&c[6]),192&(l=c[7])&&(f.pts=(14&c[9])<<27|(255&c[10])<<20|(254&c[11])<<12|(255&c[12])<<5|(254&c[13])>>>3,f.pts*=4,f.pts+=(6&c[13])>>>1,f.dts=f.pts,64&l&&(f.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,f.dts*=4,f.dts+=(6&c[18])>>>1)),f.data=c.subarray(9+c[8])),r="video"===n||a.packetLength<=t.size,(e||r)&&(t.size=0,t.data.length=0),r&&i.trigger("data",a)}};Ft.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,i;switch(o.streamType){case Et.H264_STREAM_TYPE:t=n,i="video";break;case Et.ADTS_STREAM_TYPE:t=e,i="audio";break;case Et.METADATA_STREAM_TYPE:t=r,i="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(t,i,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),i.trigger("data",n)}})[o.type]()},this.reset=function(){n.size=0,n.data.length=0,e.size=0,e.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(n,"video"),s(e,"audio"),s(r,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new _;var Ht={PAT_PID:0,MP2T_PACKET_LENGTH:Vt,TransportPacketStream:Lt,TransportParseStream:Bt,ElementaryStream:Ft,TimestampRolloverStream:_t,CaptionStream:At.CaptionStream,Cea608Stream:At.Cea608Stream,Cea708Stream:At.Cea708Stream,MetadataStream:zt};for(var qt in Et)Et.hasOwnProperty(qt)&&(Ht[qt]=Et[qt]);var Xt,Wt=Ht,Gt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(Xt=function(t){var i,n=0;Xt.prototype.init.call(this),this.push=function(e){var r,s,o,a,u=0;if(t||(n=0),"audio"===e.type)for(i?(s=i,(i=new Uint8Array(s.byteLength+e.data.byteLength)).set(s),i.set(e.data,s.byteLength)):i=e.data;u+5<i.length;)if(255===i[u]&&240==(246&i[u+1])){if(i.byteLength<(r=u+((3&i[u+3])<<11|i[u+4]<<3|(224&i[u+5])>>5)))return;if(this.trigger("data",{pts:e.pts+n*(a=9e4*(o=1024*(1+(3&i[u+6])))/Gt[(60&i[u+2])>>>2]),dts:e.dts+n*a,sampleCount:o,audioobjecttype:1+(i[u+2]>>>6&3),channelcount:(1&i[u+2])<<2|(192&i[u+3])>>>6,samplerate:Gt[(60&i[u+2])>>>2],samplingfrequencyindex:(60&i[u+2])>>>2,samplesize:16,data:i.subarray(u+7+2*(1&~i[u+1]),r)}),n++,i.byteLength===r)return void(i=void 0);i=i.subarray(r)}else u++},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){i=void 0,this.trigger("reset")},this.endTimeline=function(){i=void 0,this.trigger("endedtimeline")}}).prototype=new _;var Yt,Jt,Qt,Kt=Xt,Zt=function(t){var i=t.byteLength,n=0,e=0;this.length=function(){return 8*i},this.bitsAvailable=function(){return 8*i+e},this.loadWord=function(){var r=t.byteLength-i,s=new Uint8Array(4),o=Math.min(4,i);if(0===o)throw new Error("no bytes available");s.set(t.subarray(r,r+o)),n=new DataView(s.buffer).getUint32(0),e=8*o,i-=o},this.skipBits=function(t){var r;e>t?(n<<=t,e-=t):(t-=e,t-=8*(r=Math.floor(t/8)),i-=r,this.loadWord(),n<<=t,e-=t)},this.readBits=function(t){var r=Math.min(e,t),s=n>>>32-r;return(e-=r)>0?n<<=r:i>0&&this.loadWord(),(r=t-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var t;for(t=0;t<e;++t)if(0!=(n&2147483648>>>t))return n<<=t,e-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(Jt=function(){var t,i,n=0;Jt.prototype.init.call(this),this.push=function(e){var r;i?((r=new Uint8Array(i.byteLength+e.data.byteLength)).set(i),r.set(e.data,i.byteLength),i=r):i=e.data;for(var s=i.byteLength;n<s-3;n++)if(1===i[n+2]){t=n+5;break}for(;t<s;)switch(i[t]){case 0:if(0!==i[t-1]){t+=2;break}if(0!==i[t-2]){t++;break}n+3!==t-2&&this.trigger("data",i.subarray(n+3,t-2));do{t++}while(1!==i[t]&&t<s);n=t-2,t+=3;break;case 1:if(0!==i[t-1]||0!==i[t-2]){t+=3;break}this.trigger("data",i.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}i=i.subarray(n),t-=n,n=0},this.reset=function(){i=null,n=0,this.trigger("reset")},this.flush=function(){i&&i.byteLength>3&&this.trigger("data",i.subarray(n+3)),i=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new _,Qt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(Yt=function(){var t,i,n,e,r,s,o,a=new Jt;Yt.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(i=t.trackId,n=t.pts,e=t.dts,a.push(t))},a.on("data",(function(o){var a={trackId:i,pts:n,dts:e,data:o};switch(31&o[0]){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=r(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=r(o.subarray(1)),a.config=s(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",a)})),a.on("done",(function(){t.trigger("done")})),a.on("partialdone",(function(){t.trigger("partialdone")})),a.on("reset",(function(){t.trigger("reset")})),a.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},o=function(t,i){var n,e=8,r=8;for(n=0;n<t;n++)0!==r&&(r=(e+i.readExpGolomb()+256)%256),e=0===r?e:r},r=function(t){for(var i,n,e=t.byteLength,r=[],s=1;s<e-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;i=e-r.length,n=new Uint8Array(i);var o=0;for(s=0;s<i;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=t[o];return n},s=function(t){var i,n,e,r,s,a,u,h,c,f,l,d,v,p=0,m=0,g=0,b=0,y=1;if(n=(i=new Zt(t)).readUnsignedByte(),r=i.readUnsignedByte(),e=i.readUnsignedByte(),i.skipUnsignedExpGolomb(),Qt[n]&&(3===(s=i.readUnsignedExpGolomb())&&i.skipBits(1),i.skipUnsignedExpGolomb(),i.skipUnsignedExpGolomb(),i.skipBits(1),i.readBoolean()))for(l=3!==s?8:12,v=0;v<l;v++)i.readBoolean()&&o(v<6?16:64,i);if(i.skipUnsignedExpGolomb(),0===(a=i.readUnsignedExpGolomb()))i.readUnsignedExpGolomb();else if(1===a)for(i.skipBits(1),i.skipExpGolomb(),i.skipExpGolomb(),u=i.readUnsignedExpGolomb(),v=0;v<u;v++)i.skipExpGolomb();if(i.skipUnsignedExpGolomb(),i.skipBits(1),h=i.readUnsignedExpGolomb(),c=i.readUnsignedExpGolomb(),0===(f=i.readBits(1))&&i.skipBits(1),i.skipBits(1),i.readBoolean()&&(p=i.readUnsignedExpGolomb(),m=i.readUnsignedExpGolomb(),g=i.readUnsignedExpGolomb(),b=i.readUnsignedExpGolomb()),i.readBoolean()&&i.readBoolean()){switch(i.readUnsignedByte()){case 1:d=[1,1];break;case 2:d=[12,11];break;case 3:d=[10,11];break;case 4:d=[16,11];break;case 5:d=[40,33];break;case 6:d=[24,11];break;case 7:d=[20,11];break;case 8:d=[32,11];break;case 9:d=[80,33];break;case 10:d=[18,11];break;case 11:d=[15,11];break;case 12:d=[64,33];break;case 13:d=[160,99];break;case 14:d=[4,3];break;case 15:d=[3,2];break;case 16:d=[2,1];break;case 255:d=[i.readUnsignedByte()<<8|i.readUnsignedByte(),i.readUnsignedByte()<<8|i.readUnsignedByte()]}d&&(y=d[0]/d[1])}return{profileIdc:n,levelIdc:e,profileCompatibility:r,width:Math.ceil((16*(h+1)-2*p-2*m)*y),height:(2-f)*(c+1)*16-2*g-2*b,sarRatio:d}}}).prototype=new _;var $t,ti={H264Stream:Yt,NalByteStream:Jt},ii=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],ni=function(t,i){var n=t[i+6]<<21|t[i+7]<<14|t[i+8]<<7|t[i+9];return n=n>=0?n:0,(16&t[i+5])>>4?n+20:n+10},ei=function t(i,n){return i.length-n<10||i[n]!=="I".charCodeAt(0)||i[n+1]!=="D".charCodeAt(0)||i[n+2]!=="3".charCodeAt(0)?n:t(i,n+=ni(i,n))},ri=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},si={isLikelyAacData:function(t){var i=ei(t,0);return t.length>=i+2&&255==(255&t[i])&&240==(240&t[i+1])&&16==(22&t[i+1])},parseId3TagSize:ni,parseAdtsSize:function(t,i){return 6144&t[i+3]|t[i+4]<<3|(224&t[i+5])>>5},parseType:function(t,i){return t[i]==="I".charCodeAt(0)&&t[i+1]==="D".charCodeAt(0)&&t[i+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[i]&&240==(240&t[i+1])?"audio":null},parseSampleRate:function(t){for(var i=0;i+5<t.length;){if(255===t[i]&&240==(246&t[i+1]))return ii[(60&t[i+2])>>>2];i++}return null},parseAacTimestamp:function(t){var i,n,e;i=10,64&t[5]&&(i+=4,i+=ri(t.subarray(10,14)));do{if((n=ri(t.subarray(i+4,i+8)))<1)return null;if("PRIV"===String.fromCharCode(t[i],t[i+1],t[i+2],t[i+3])){e=t.subarray(i+10,i+n+10);for(var r=0;r<e.byteLength;r++)if(0===e[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,i,n){var e,r="";for(e=0;e<n;e++)r+="%"+("00"+t[e].toString(16)).slice(-2);return r}(e,0,r))){var s=e.subarray(r+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return(o*=4)+(3&s[7])}break}}i+=10,i+=n}while(i<t.byteLength);return null}};($t=function(){var t=new Uint8Array,i=0;$t.prototype.init.call(this),this.setTimestamp=function(t){i=t},this.push=function(n){var e,r,s,o=0,a=0;for(t.length?(s=t.length,(t=new Uint8Array(n.byteLength+s)).set(t.subarray(0,s)),t.set(n,s)):t=n;t.length-a>=3;)if(t[a]!=="I".charCodeAt(0)||t[a+1]!=="D".charCodeAt(0)||t[a+2]!=="3".charCodeAt(0))if(255!=(255&t[a])||240!=(240&t[a+1]))a++;else{if(t.length-a<7)break;if(a+(o=si.parseAdtsSize(t,a))>t.length)break;r={type:"audio",data:t.subarray(a,a+o),pts:i,dts:i},this.trigger("data",r),a+=o}else{if(t.length-a<10)break;if(a+(o=si.parseId3TagSize(t,a))>t.length)break;e={type:"timed-metadata",data:t.subarray(a,a+o)},this.trigger("data",e),a+=o}t=t.length-a>0?t.subarray(a):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new _;var oi,ai,ui,hi,ci=$t,fi=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],li=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],di=ti.H264Stream,vi=si.isLikelyAacData,pi=function(t,i){var n;if(t.length!==i.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==i[n])return!1;return!0},mi=function(t,i,n,e,r,s){return{start:{dts:t,pts:t+(n-i)},end:{dts:t+(e-i),pts:t+(r-n)},prependedContentDuration:s,baseMediaDecodeTime:t}};(ai=function(t,i){var n=[],e=0,r=0,s=0,o=1/0;i=i||{},ai.prototype.init.call(this),this.push=function(i){dt(t,i),t&&fi.forEach((function(n){t[n]=i[n]})),n.push(i)},this.setEarliestDts=function(t){r=t},this.setVideoBaseMediaDecodeTime=function(t){o=t},this.setAudioAppendStart=function(t){s=t},this.flush=function(){var a,u,h,c,f,l,d;0!==n.length?(a=function(t,i,n){return i.minSegmentDts>=n?t:(i.minSegmentDts=1/0,t.filter((function(t){return t.dts>=n&&(i.minSegmentDts=Math.min(i.minSegmentDts,t.dts),i.minSegmentPts=i.minSegmentDts,!0)})))}(n,t,r),t.baseMediaDecodeTime=lt(t,i.keepOriginalTimestamps),d=ct(t,a,s,o),t.samples=function(t){var i,n=[];for(i=0;i<t.length;i++)n.push({size:t[i].data.byteLength,duration:1024});return n}(a),h=K(function(t){var i,n,e=0,r=new Uint8Array(function(t){var i,n=0;for(i=0;i<t.length;i++)n+=t[i].data.byteLength;return n}(t));for(i=0;i<t.length;i++)r.set((n=t[i]).data,e),e+=n.data.byteLength;return r}(a)),n=[],u=Z(e,[t]),c=new Uint8Array(u.byteLength+h.byteLength),e++,c.set(u),c.set(h,u.byteLength),ft(t),f=Math.ceil(9216e4/t.samplerate),a.length&&(l=a.length*f,this.trigger("segmentTimingInfo",mi(at(t.baseMediaDecodeTime,t.samplerate),a[0].dts,a[0].pts,a[0].dts+l,a[0].pts+l,d||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+l})),this.trigger("data",{track:t,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){ft(t),n=[],this.trigger("reset")}}).prototype=new _,(oi=function(t,i){var n,e,r=0,s=[],o=[];i=i||{},oi.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(i){dt(t,i),"seq_parameter_set_rbsp"!==i.nalUnitType||n||(n=i.config,t.sps=[i.data],li.forEach((function(i){t[i]=n[i]}),this)),"pic_parameter_set_rbsp"!==i.nalUnitType||e||(e=i.data,t.pps=[i.data]),s.push(i)},this.flush=function(){for(var n,e,a,u,h,c,f,l=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if((e=function(t){var i,n,e=[],r=[];for(e.byteLength=0,e.nalCount=0,e.duration=0,e.pts=t[0].pts,e.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,i=0;i<t.length;i++)(n=t[i]).keyFrame?(e.length&&(r.push(e),r.byteLength+=e.byteLength,r.nalCount+=e.nalCount,r.duration+=e.duration),(e=[n]).nalCount=n.length,e.byteLength=n.byteLength,e.pts=n.pts,e.dts=n.dts,e.duration=n.duration):(e.duration+=n.duration,e.nalCount+=n.length,e.byteLength+=n.byteLength,e.push(n));return r.length&&e.duration<=0&&(e.duration=r[r.length-1].duration),r.byteLength+=e.byteLength,r.nalCount+=e.nalCount,r.duration+=e.duration,r.push(e),r}(function(t){var i,n,e=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,e.byteLength=0,i=0;i<t.length;i++)"access_unit_delimiter_rbsp"===(n=t[i]).nalUnitType?(e.length&&(e.duration=n.dts-e.dts,r.byteLength+=e.byteLength,r.nalCount+=e.length,r.duration+=e.duration,r.push(e)),(e=[n]).byteLength=n.data.byteLength,e.pts=n.pts,e.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(e.keyFrame=!0),e.duration=n.dts-e.dts,e.byteLength+=n.data.byteLength,e.push(n));return r.length&&(!e.duration||e.duration<=0)&&(e.duration=r[r.length-1].duration),r.byteLength+=e.byteLength,r.nalCount+=e.length,r.duration+=e.duration,r.push(e),r}(s)))[0][0].keyFrame||((n=this.getGopForFusion_(s[0],t))?(l=n.duration,e.unshift(n),e.byteLength+=n.byteLength,e.nalCount+=n.nalCount,e.pts=n.pts,e.dts=n.dts,e.duration+=n.duration):e=function(t){var i;return!t[0][0].keyFrame&&t.length>1&&(i=t.shift(),t.byteLength-=i.byteLength,t.nalCount-=i.nalCount,t[0][0].dts=i.dts,t[0][0].pts=i.pts,t[0][0].duration+=i.duration),t}(e)),o.length){var d;if(!(d=i.alignGopsAtEnd?this.alignGopsAtEnd_(e):this.alignGopsAtStart_(e)))return this.gopCache_.unshift({gop:e.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ft(t),e=d}dt(t,e),t.samples=function(t,i){var n,e,r,s,o=i||0,a=[];for(n=0;n<t.length;n++)for(s=t[n],e=0;e<s.length;e++)o+=(r=$(s[e],o)).size,a.push(r);return a}(e),u=K(function(t){var i,n,e,r,s,o,a=0,u=new Uint8Array(t.byteLength+4*t.nalCount),h=new DataView(u.buffer);for(i=0;i<t.length;i++)for(r=t[i],n=0;n<r.length;n++)for(s=r[n],e=0;e<s.length;e++)h.setUint32(a,(o=s[e]).data.byteLength),u.set(o.data,a+=4),a+=o.data.byteLength;return u}(e)),t.baseMediaDecodeTime=lt(t,i.keepOriginalTimestamps),this.trigger("processedGopsInfo",e.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),this.trigger("segmentTimingInfo",mi(t.baseMediaDecodeTime,(c=e[0]).dts,c.pts,(f=e[e.length-1]).dts+f.duration,f.pts+f.duration,l)),this.trigger("timingInfo",{start:e[0].pts,end:e[e.length-1].pts+e[e.length-1].duration}),this.gopCache_.unshift({gop:e.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),a=Z(r,[t]),h=new Uint8Array(a.byteLength+u.byteLength),r++,h.set(a),h.set(u,a.byteLength),this.trigger("data",{track:t,boxes:h}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){ft(t),n=void 0,e=void 0},this.getGopForFusion_=function(i){var n,e,r,s,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)r=(s=this.gopCache_[o]).gop,t.pps&&pi(t.pps[0],s.pps[0])&&t.sps&&pi(t.sps[0],s.sps[0])&&(r.dts<t.timelineStartInfo.dts||(n=i.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!e||a>n)&&(e=s,a=n));return e?e.gop:null},this.alignGopsAtStart_=function(t){var i,n,e,r,s,a,u,h;for(s=t.byteLength,a=t.nalCount,u=t.duration,i=n=0;i<o.length&&n<t.length&&(e=o[i]).pts!==(r=t[n]).pts;)r.pts>e.pts?i++:(n++,s-=r.byteLength,a-=r.nalCount,u-=r.duration);return 0===n?t:n===t.length?null:((h=t.slice(n)).byteLength=s,h.duration=u,h.nalCount=a,h.pts=h[0].pts,h.dts=h[0].dts,h)},this.alignGopsAtEnd_=function(t){var i,n,e,r,s,a,u;for(i=o.length-1,n=t.length-1,s=null,a=!1;i>=0&&n>=0;){if((e=o[i]).pts===(r=t[n]).pts){a=!0;break}e.pts>r.pts?i--:(i===o.length-1&&(s=n),n--)}if(!a&&null===s)return null;if(0===(u=a?n:s))return t;var h=t.slice(u),c=h.reduce((function(t,i){return t.byteLength+=i.byteLength,t.duration+=i.duration,t.nalCount+=i.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return h.byteLength=c.byteLength,h.duration=c.duration,h.nalCount=c.nalCount,h.pts=h[0].pts,h.dts=h[0].dts,h},this.alignGopsWith=function(t){o=t}}).prototype=new _,(hi=function(t,i){this.numberOfTracks=0,this.metadataStream=i,this.remuxTracks=void 0===(t=t||{}).remux||!!t.remux,this.keepOriginalTimestamps="boolean"==typeof t.keepOriginalTimestamps&&t.keepOriginalTimestamps,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,hi.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}}).prototype=new _,hi.prototype.flush=function(t){var i,n,e,s,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},h=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(h=this.videoTrack.timelineStartInfo.pts,li.forEach((function(t){a.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(h=this.audioTrack.timelineStartInfo.pts,fi.forEach((function(t){a.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(a.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,e=function(t){var i,n=r(),e=u(t);return(i=new Uint8Array(n.byteLength+e.byteLength)).set(n),i.set(e,n.byteLength),i}(this.pendingTracks),a.initSegment=new Uint8Array(e.byteLength),a.initSegment.set(e),a.data=new Uint8Array(this.pendingBytes),s=0;s<this.pendingBoxes.length;s++)a.data.set(this.pendingBoxes[s],o),o+=this.pendingBoxes[s].byteLength;for(s=0;s<this.pendingCaptions.length;s++)(i=this.pendingCaptions[s]).startTime=ht(i.startPts,h,this.keepOriginalTimestamps),i.endTime=ht(i.endPts,h,this.keepOriginalTimestamps),a.captionStreams[i.stream]=!0,a.captions.push(i);for(s=0;s<this.pendingMetadata.length;s++)(n=this.pendingMetadata[s]).cueTime=ht(n.pts,h,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),s=0;s<a.captions.length;s++)this.trigger("caption",i=a.captions[s]);for(s=0;s<a.metadata.length;s++)this.trigger("id3Frame",n=a.metadata[s])}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},hi.prototype.setRemux=function(t){this.remuxTracks=t},(ui=function(t){var i,n,e=this,r=!0;ui.prototype.init.call(this),this.baseMediaDecodeTime=(t=t||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Wt.MetadataStream,r.aacStream=new ci,r.audioTimestampRolloverStream=new Wt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Wt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Kt,r.coalesceStream=new hi(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(t){r.aacStream.setTimestamp(t.timeStamp)})),r.aacStream.on("data",(function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:e.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ai(n,t),r.audioSegmentStream.on("timingInfo",e.trigger.bind(e,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),e.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!i}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Wt.MetadataStream,r.packetStream=new Wt.TransportPacketStream,r.parseStream=new Wt.TransportParseStream,r.elementaryStream=new Wt.ElementaryStream,r.timestampRolloverStream=new Wt.TimestampRolloverStream,r.adtsStream=new Kt,r.h264Stream=new di,r.captionStream=new Wt.CaptionStream(t),r.coalesceStream=new hi(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)i||"video"!==s.tracks[o].type?n||"audio"!==s.tracks[o].type||((n=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=e.baseMediaDecodeTime):(i=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=e.baseMediaDecodeTime;i&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new oi(i,t),r.videoSegmentStream.on("timelineStartInfo",(function(i){n&&!t.keepOriginalTimestamps&&(n.timelineStartInfo=i,r.audioSegmentStream.setEarliestDts(i.dts-e.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",e.trigger.bind(e,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",e.trigger.bind(e,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.videoSegmentStream.on("timingInfo",e.trigger.bind(e,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ai(n,t),r.audioSegmentStream.on("timingInfo",e.trigger.bind(e,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",e.trigger.bind(e,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),e.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!i})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(t){t.dispatchType=r.metadataStream.dispatchType,e.trigger("id3Frame",t)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=e),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,ft(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),i&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,ft(i),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(i){var n=this.transmuxPipeline_;t.remux=i,n&&n.coalesceStream&&n.coalesceStream.setRemux(i)},this.alignGopsWith=function(t){i&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(r){var i=vi(t);i&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():i||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new _;var gi,bi={Transmuxer:ui,VideoSegmentStream:oi,AudioSegmentStream:ai,AUDIO_PROPERTIES:fi,VIDEO_PROPERTIES:li,generateSegmentTimingInfo:mi},yi=function(t){return t>>>0},ji=function(t){var i="";return i+=String.fromCharCode(t[0]),i+=String.fromCharCode(t[1]),(i+=String.fromCharCode(t[2]))+String.fromCharCode(t[3])},wi=yi,xi=function t(i,n){var e,r,s,o,a,u=[];if(!n.length)return null;for(e=0;e<i.byteLength;)r=wi(i[e]<<24|i[e+1]<<16|i[e+2]<<8|i[e+3]),s=ji(i.subarray(e+4,e+8)),o=r>1?e+r:i.byteLength,s===n[0]&&(1===n.length?u.push(i.subarray(e+8,o)):(a=t(i.subarray(e+8,o),n.slice(1))).length&&(u=u.concat(a))),e=o;return u},ki=yi,Ti=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},Ai=function(t){for(var i,n,e=t.byteLength,r=[],s=1;s<e-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;i=e-r.length,n=new Uint8Array(i);var o=0;for(s=0;s<i;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=t[o];return n},Ei=At.CaptionStream,Si=function(t,i){for(var n=t,e=0;e<i.length;e++){var r=i[e];if(n<r.size)return r;n-=r.size}return null},Ii=function(t,i){var n=xi(t,["moof","traf"]),e=xi(t,["mdat"]),r={},s=[];return e.forEach((function(t,i){s.push({mdat:t,traf:n[i]})})),s.forEach((function(t){var n,e=t.mdat,s=t.traf,o=function(t){var i,n=new DataView(t.buffer,t.byteOffset,t.byteLength),e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:n.getUint32(4)},r=1&e.flags[2],s=2&e.flags[2],o=8&e.flags[2],a=16&e.flags[2],u=32&e.flags[2],h=65536&e.flags[0],c=131072&e.flags[0];return i=8,r&&(i+=4,e.baseDataOffset=n.getUint32(12),i+=4),s&&(e.sampleDescriptionIndex=n.getUint32(i),i+=4),o&&(e.defaultSampleDuration=n.getUint32(i),i+=4),a&&(e.defaultSampleSize=n.getUint32(i),i+=4),u&&(e.defaultSampleFlags=n.getUint32(i)),h&&(e.durationIsEmpty=!0),!r&&c&&(e.baseDataOffsetIsMoof=!0),e}(xi(s,["tfhd"])[0]),a=o.trackId,u=xi(s,["tfdt"]),h=u.length>0?function(t){var i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:ki(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};return 1===i.version&&(i.baseMediaDecodeTime*=Math.pow(2,32),i.baseMediaDecodeTime+=ki(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),i}(u[0]).baseMediaDecodeTime:0,c=xi(s,["trun"]);i===a&&c.length>0&&(n=function(t,i,n){var e,r,s,o,a=new DataView(t.buffer,t.byteOffset,t.byteLength),u=[];for(r=0;r+4<t.length;r+=s)if(s=a.getUint32(r),r+=4,!(s<=0))switch(31&t[r]){case 6:var h=t.subarray(r+1,r+1+s),c=Si(r,i);if(e={nalUnitType:"sei_rbsp",size:s,data:h,escapedRBSP:Ai(h),trackId:n},c)e.pts=c.pts,e.dts=c.dts,o=c;else{if(!o){console.log("We've encountered a nal unit without data. See mux.js#233.");break}e.pts=o.pts,e.dts=o.dts}u.push(e)}return u}(e,function(t,i,n){var e=i,r=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,o=n.trackId,a=[];return t.forEach((function(t){var i=function(t){var i,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},e=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&n.flags[2],s=4&n.flags[2],o=1&n.flags[1],a=2&n.flags[1],u=4&n.flags[1],h=8&n.flags[1],c=e.getUint32(4),f=8;for(r&&(n.dataOffset=e.getInt32(f),f+=4),s&&c&&(i={flags:Ti(t.subarray(f,f+4))},f+=4,o&&(i.duration=e.getUint32(f),f+=4),a&&(i.size=e.getUint32(f),f+=4),h&&(i.compositionTimeOffset=1===n.version?e.getInt32(f):e.getUint32(f),f+=4),n.samples.push(i),c--);c--;)i={},o&&(i.duration=e.getUint32(f),f+=4),a&&(i.size=e.getUint32(f),f+=4),u&&(i.flags=Ti(t.subarray(f,f+4)),f+=4),h&&(i.compositionTimeOffset=1===n.version?e.getInt32(f):e.getUint32(f),f+=4),n.samples.push(i);return n}(t).samples;i.forEach((function(t){void 0===t.duration&&(t.duration=r),void 0===t.size&&(t.size=s),t.trackId=o,t.dts=e,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),t.pts=e+t.compositionTimeOffset,e+=t.duration})),a=a.concat(i)})),a}(c,h,o),a),r[a]||(r[a]=[]),r[a]=r[a].concat(n))})),r},Di=function(){var t,i,n,e,r,s,o=!1;this.isInitialized=function(){return o},this.init=function(i){t=new Ei,o=!0,s=!!i&&i.isPartial,t.on("data",(function(t){t.startTime=t.startPts/e,t.endTime=t.endPts/e,r.captions.push(t),r.captionStreams[t.stream]=!0}))},this.isNewInit=function(t,i){return!(t&&0===t.length||i&&"object"==typeof i&&0===Object.keys(i).length||n===t[0]&&e===i[n])},this.parse=function(t,s,o){var a;if(!this.isInitialized())return null;if(!s||!o)return null;if(this.isNewInit(s,o))e=o[n=s[0]];else if(null===n||!e)return i.push(t),null;for(;i.length>0;){var u=i.shift();this.parse(u,s,o)}return null!==(a=function(t,i,n){return null===i?null:{seiNals:Ii(t,i)[i],timescale:n}}(t,n,e))&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),r):null},this.pushNals=function(i){if(!this.isInitialized()||!i||0===i.length)return null;i.forEach((function(i){t.push(i)}))},this.flushStream=function(){if(!this.isInitialized())return null;s?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){i=[],n=null,e=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},Oi=yi,Ni=function(t){return("00"+t.toString(16)).slice(-2)},Ri=function(t,i){var n,e,r;return n=xi(i,["moof","traf"]),e=[].concat.apply([],n.map((function(i){return xi(i,["tfhd"]).map((function(n){var e,r,s;return e=Oi(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=t[e]||9e4,(s="number"!=typeof(s=xi(i,["tfdt"]).map((function(t){var i,n;return i=t[0],n=Oi(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),1===i&&(n*=Math.pow(2,32),n+=Oi(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),n}))[0])||isNaN(s)?1/0:s)/r}))}))),r=Math.min.apply(null,e),isFinite(r)?r:0},Mi=function(t){var i=xi(t,["moov","trak"]),n=[];return i.forEach((function(t){var i,e,r={},s=xi(t,["tkhd"])[0];s&&(e=(i=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=i.getUint32(0===e?12:20));var o=xi(t,["mdia","hdlr"])[0];if(o){var a=ji(o.subarray(8,12));r.type="vide"===a?"video":"soun"===a?"audio":a}var u=xi(t,["mdia","minf","stbl","stsd"])[0];if(u){var h=u.subarray(8);r.codec=ji(h.subarray(4,8));var c,f=xi(h,[r.codec])[0];f&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(c=f.subarray(78),"avcC"===ji(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=Ni(c[9]),r.codec+=Ni(c[10]),r.codec+=Ni(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=f.subarray(28),"esds"===ji(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+Ni(c[19]),r.codec+="."+Ni(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var l=xi(t,["mdia","mdhd"])[0];l&&(r.timescale=gi(l)),n.push(r)})),n},Ci=(gi=function(t){var i=0===t[0]?12:20;return Oi(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])},function(t){var i=31&t[1];return(i<<=8)|t[2]}),Ui=function(t){return!!(64&t[1])},Pi=function(t){var i=0;return(48&t[3])>>>4>1&&(i+=t[4]+1),i},Li=function(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Bi=Rt,Fi={};Fi.ts={parseType:function(t,i){var n=Ci(t);return 0===n?"pat":n===i?"pmt":i?"pes":null},parsePat:function(t){var i=Ui(t),n=4+Pi(t);return i&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var i={},n=Ui(t),e=4+Pi(t);if(n&&(e+=t[e]+1),1&t[e+5]){var r;r=3+((15&t[e+1])<<8|t[e+2])-4;for(var s=12+((15&t[e+10])<<8|t[e+11]);s<r;){var o=e+s;i[(31&t[o+1])<<8|t[o+2]]=t[o],s+=5+((15&t[o+3])<<8|t[o+4])}return i}},parsePayloadUnitStartIndicator:Ui,parsePesType:function(t,i){switch(i[Ci(t)]){case Et.H264_STREAM_TYPE:return"video";case Et.ADTS_STREAM_TYPE:return"audio";case Et.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!Ui(t))return null;var i=4+Pi(t);if(i>=t.byteLength)return null;var n,e=null;return 192&(n=t[i+7])&&((e={}).pts=(14&t[i+9])<<27|(255&t[i+10])<<20|(254&t[i+11])<<12|(255&t[i+12])<<5|(254&t[i+13])>>>3,e.pts*=4,e.pts+=(6&t[i+13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[i+14])<<27|(255&t[i+15])<<20|(254&t[i+16])<<12|(255&t[i+17])<<5|(254&t[i+18])>>>3,e.dts*=4,e.dts+=(6&t[i+18])>>>1)),e},videoPacketContainsKeyFrame:function(t){for(var i=4+Pi(t),n=t.subarray(i),e=0,r=0,s=!1;r<n.byteLength-3;r++)if(1===n[r+2]){e=r+5;break}for(;e<n.byteLength;)switch(n[e]){case 0:if(0!==n[e-1]){e+=2;break}if(0!==n[e-2]){e++;break}r+3!==e-2&&"slice_layer_without_partitioning_rbsp_idr"===Li(31&n[r+3])&&(s=!0);do{e++}while(1!==n[e]&&e<n.length);r=e-2,e+=3;break;case 1:if(0!==n[e-1]||0!==n[e-2]){e+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Li(31&n[r+3])&&(s=!0),r=e-2,e+=3;break;default:e+=3}return n=n.subarray(r),e-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Li(31&n[r+3])&&(s=!0),s}},Fi.aac=si;var zi=rt,_i=188,Vi=71,Hi=function(t,i,n){for(var e,r,s,o,a=0,u=_i,h=!1;u<=t.byteLength;)if(t[a]!==Vi||t[u]!==Vi&&u!==t.byteLength)a++,u++;else{switch(e=t.subarray(a,u),Fi.ts.parseType(e,i.pid)){case"pes":r=Fi.ts.parsePesType(e,i.table),s=Fi.ts.parsePayloadUnitStartIndicator(e),"audio"===r&&s&&(o=Fi.ts.parsePesTime(e))&&(o.type="audio",n.audio.push(o),h=!0)}if(h)break;a+=_i,u+=_i}for(a=(u=t.byteLength)-_i,h=!1;a>=0;)if(t[a]!==Vi||t[u]!==Vi&&u!==t.byteLength)a--,u--;else{switch(e=t.subarray(a,u),Fi.ts.parseType(e,i.pid)){case"pes":r=Fi.ts.parsePesType(e,i.table),s=Fi.ts.parsePayloadUnitStartIndicator(e),"audio"===r&&s&&(o=Fi.ts.parsePesTime(e))&&(o.type="audio",n.audio.push(o),h=!0)}if(h)break;a-=_i,u-=_i}},qi=function(t,i,n){for(var e,r,s,o,a,u,h,c=0,f=_i,l=!1,d={data:[],size:0};f<t.byteLength;)if(t[c]!==Vi||t[f]!==Vi)c++,f++;else{switch(e=t.subarray(c,f),Fi.ts.parseType(e,i.pid)){case"pes":if(r=Fi.ts.parsePesType(e,i.table),s=Fi.ts.parsePayloadUnitStartIndicator(e),"video"===r&&(s&&!l&&(o=Fi.ts.parsePesTime(e))&&(o.type="video",n.video.push(o),l=!0),!n.firstKeyFrame)){if(s&&0!==d.size){for(a=new Uint8Array(d.size),u=0;d.data.length;)h=d.data.shift(),a.set(h,u),u+=h.byteLength;if(Fi.ts.videoPacketContainsKeyFrame(a)){var v=Fi.ts.parsePesTime(a);v?(n.firstKeyFrame=v,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}d.size=0}d.data.push(e),d.size+=e.byteLength}}if(l&&n.firstKeyFrame)break;c+=_i,f+=_i}for(c=(f=t.byteLength)-_i,l=!1;c>=0;)if(t[c]!==Vi||t[f]!==Vi)c--,f--;else{switch(e=t.subarray(c,f),Fi.ts.parseType(e,i.pid)){case"pes":r=Fi.ts.parsePesType(e,i.table),s=Fi.ts.parsePayloadUnitStartIndicator(e),"video"===r&&s&&(o=Fi.ts.parsePesTime(e))&&(o.type="video",n.video.push(o),l=!0)}if(l)break;c-=_i,f-=_i}},Xi=function(t,i){var n;return(n=Fi.aac.isLikelyAacData(t)?function(t){for(var i,n=!1,e=0,r=null,s=null,o=0,a=0;t.length-a>=3;){switch(Fi.aac.parseType(t,a)){case"timed-metadata":if(t.length-a<10){n=!0;break}if((o=Fi.aac.parseId3TagSize(t,a))>t.length){n=!0;break}null===s&&(i=t.subarray(a,a+o),s=Fi.aac.parseAacTimestamp(i)),a+=o;break;case"audio":if(t.length-a<7){n=!0;break}if((o=Fi.aac.parseAdtsSize(t,a))>t.length){n=!0;break}null===r&&(i=t.subarray(a,a+o),r=Fi.aac.parseSampleRate(i)),e++,a+=o;break;default:a++}if(n)return null}if(null===r||null===s)return null;var u=zi/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*e*u,pts:s+1024*e*u}]}}(t):function(t){var i={pid:null,table:null},n={};for(var e in function(t,i){for(var n,e=0,r=_i;r<t.byteLength;)if(t[e]!==Vi||t[r]!==Vi)e++,r++;else{switch(n=t.subarray(e,r),Fi.ts.parseType(n,i.pid)){case"pat":i.pid=Fi.ts.parsePat(n);break;case"pmt":var s=Fi.ts.parsePmt(n);i.table=i.table||{},Object.keys(s).forEach((function(t){i.table[t]=s[t]}))}e+=_i,r+=_i}}(t,i),i.table)if(i.table.hasOwnProperty(e))switch(i.table[e]){case Et.H264_STREAM_TYPE:n.video=[],qi(t,i,n),0===n.video.length&&delete n.video;break;case Et.ADTS_STREAM_TYPE:n.audio=[],Hi(t,i,n),0===n.audio.length&&delete n.audio}return n}(t))&&(n.audio||n.video)?(function(t,i){if(t.audio&&t.audio.length){var n=i;(void 0===n||isNaN(n))&&(n=t.audio[0].dts),t.audio.forEach((function(t){t.dts=Bi(t.dts,n),t.pts=Bi(t.pts,n),t.dtsTime=t.dts/zi,t.ptsTime=t.pts/zi}))}if(t.video&&t.video.length){var e=i;if((void 0===e||isNaN(e))&&(e=t.video[0].dts),t.video.forEach((function(t){t.dts=Bi(t.dts,e),t.pts=Bi(t.pts,e),t.dtsTime=t.dts/zi,t.ptsTime=t.pts/zi})),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=Bi(r.dts,e),r.pts=Bi(r.pts,e),r.dtsTime=r.dts/zi,r.ptsTime=r.pts/zi}}}(n,i),n):null},Wi=function(){function t(t,i){this.options=i||{},this.self=t,this.init()}var i=t.prototype;return i.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new bi.Transmuxer(this.options),function(t,i){i.on("data",(function(i){var n=i.initSegment;i.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var e=i.data;i.data=e.buffer,t.postMessage({action:"data",segment:i,byteOffset:e.byteOffset,byteLength:e.byteLength},[i.data])})),i.on("done",(function(){t.postMessage({action:"done"})})),i.on("gopInfo",(function(i){t.postMessage({action:"gopInfo",gopInfo:i})})),i.on("videoSegmentTimingInfo",(function(i){var n={start:{decode:ot(i.start.dts),presentation:ot(i.start.pts)},end:{decode:ot(i.end.dts),presentation:ot(i.end.pts)},baseMediaDecodeTime:ot(i.baseMediaDecodeTime)};i.prependedContentDuration&&(n.prependedContentDuration=ot(i.prependedContentDuration)),t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),i.on("audioSegmentTimingInfo",(function(i){var n={start:{decode:ot(i.start.dts),presentation:ot(i.start.pts)},end:{decode:ot(i.end.dts),presentation:ot(i.end.pts)},baseMediaDecodeTime:ot(i.baseMediaDecodeTime)};i.prependedContentDuration&&(n.prependedContentDuration=ot(i.prependedContentDuration)),t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),i.on("id3Frame",(function(i){t.postMessage({action:"id3Frame",id3Frame:i})})),i.on("caption",(function(i){t.postMessage({action:"caption",caption:i})})),i.on("trackinfo",(function(i){t.postMessage({action:"trackinfo",trackInfo:i})})),i.on("audioTimingInfo",(function(i){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ot(i.start),end:ot(i.end)}})})),i.on("videoTimingInfo",(function(i){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ot(i.start),end:ot(i.end)}})}))}(this.self,this.transmuxer)},i.pushMp4Captions=function(t){this.captionParser||(this.captionParser=new Di,this.captionParser.init());var i=new Uint8Array(t.data,t.byteOffset,t.byteLength),n=this.captionParser.parse(i,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],data:i.buffer},[i.buffer])},i.probeMp4StartTime=function(t){var i=t.data,n=Ri(t.timescales,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},i.probeMp4Tracks=function(t){var i=t.data,n=Mi(i);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:i},[i.buffer])},i.probeTs=function(t){var i=t.data,n=t.baseStartTime,e="number"!=typeof n||isNaN(n)?void 0:n*rt,r=Xi(i,e),s=null;r&&((s={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(s.videoStart=r.video[0].ptsTime),s.hasAudio&&(s.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:i},[i.buffer])},i.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},i.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},i.push=function(t){var i=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(i)},i.reset=function(){this.transmuxer.reset()},i.setTimestampOffset=function(t){this.transmuxer.setBaseMediaDecodeTime(Math.round(st(t.timestampOffset||0)))},i.setAudioAppendStart=function(t){this.transmuxer.setAudioAppendStart(Math.ceil(st(t.appendStart)))},i.setRemux=function(t){this.transmuxer.setRemux(t.remux)},i.flush=function(){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},i.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},i.alignGopsWith=function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())},t}();self.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new Wi(self,t.data.options):(this.messageHandlers||(this.messageHandlers=new Wi(self)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}})))),Bh=function(t){var i=t.transmuxer,n=t.bytes,e=t.audioAppendStart,r=t.gopsToAlignWith,s=t.remux,o=t.onData,a=t.onTrackInfo,u=t.onAudioTimingInfo,h=t.onVideoTimingInfo,c=t.onVideoSegmentTimingInfo,f=t.onAudioSegmentTimingInfo,l=t.onId3,d=t.onCaptions,v=t.onDone,p=t.onEndedTimeline,m=t.isEndOfTimeline,g={buffer:[]},b=m;if(i.onmessage=function(n){i.currentTransmux===t&&("data"===n.data.action&&function(t,i,n){var e=t.data.segment,r=e.type,s=e.initSegment,o=e.videoFrameDtsTime,a=e.videoFramePtsTime;i.buffer.push({captions:e.captions,captionStreams:e.captionStreams,metadata:e.metadata});var u=t.data.segment.boxes||{data:t.data.segment.data},h={type:r,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==o&&(h.videoFrameDtsTime=o),void 0!==a&&(h.videoFramePtsTime=a),n(h)}(n,g,o),"trackinfo"===n.data.action&&a(n.data.trackInfo),"gopInfo"===n.data.action&&function(t,i){i.gopInfo=t.data.gopInfo}(n,g),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&h(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&f(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&l([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&d(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,p()),"transmuxed"===n.data.type&&(b||(i.onmessage=null,function(t){var i=t.transmuxedData,n=t.callback;i.buffer=[],n(i)}({transmuxedData:g,callback:v}),Fh(i))))},e&&i.postMessage({action:"setAudioAppendStart",appendStart:e}),Array.isArray(r)&&i.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&i.postMessage({action:"setRemux",remux:s}),n.byteLength){var y=n instanceof ArrayBuffer?n:n.buffer,j=n instanceof ArrayBuffer?0:n.byteOffset;i.postMessage({action:"push",data:y,byteOffset:j,byteLength:n.byteLength},[y])}m&&i.postMessage({action:"endTimeline"}),i.postMessage({action:"flush"})},Fh=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),"function"==typeof t.currentTransmux?t.currentTransmux():Bh(t.currentTransmux))},zh=function(t,i){t.postMessage({action:i}),Fh(t)},_h=function(t){!function(t,i){if(!i.currentTransmux)return i.currentTransmux=t,void zh(i,t);i.transmuxQueue.push(zh.bind(null,i,t))}("reset",t)},Vh=function(t){var i=t.transmuxer,n=t.endAction||t.action,e=t.callback,r=V({},t,{endAction:null,transmuxer:null,callback:null});if(i.addEventListener("message",(function r(s){s.data.action===n&&(i.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,t.byteOffset||0,t.byteLength||s.data.data.byteLength),t.data&&(t.data=s.data.data)),e(s.data))})),t.data){var s=t.data instanceof ArrayBuffer;r.byteOffset=s?0:t.data.byteOffset,r.byteLength=t.data.byteLength,i.postMessage(r,[s?t.data:t.data.buffer])}else i.postMessage(r)},Hh=function(t){t.forEach((function(t){t.abort()}))},qh=function(t,i){return i.timedout?{status:i.status,message:"HLS request timed-out at URL: "+i.uri,code:-101,xhr:i}:i.aborted?{status:i.status,message:"HLS request aborted at URL: "+i.uri,code:-102,xhr:i}:t?{status:i.status,message:"HLS request errored at URL: "+i.uri,code:2,xhr:i}:"arraybuffer"===i.responseType&&0===i.response.byteLength?{status:i.status,message:"Empty HLS response at URL: "+i.uri,code:2,xhr:i}:null},Xh=function(t,i,n){return function(e,r){var s=r.response,o=qh(e,r);if(o)return n(o,t);if(16!==s.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},t);for(var a=new DataView(s),u=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),h=0;h<i.length;h++)i[h].bytes=u;return n(null,t)}},Wh=function(t,i){var n=Ce(t.map.bytes);if("mp4"!==n)return i({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+(t.map.resolvedUri||t.map.uri),code:2});Vh({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(n){var e=n.tracks;return t.map.bytes=n.data,e.forEach((function(i){t.map.tracks=t.map.tracks||{},t.map.tracks[i.type]||(t.map.tracks[i.type]=i,"number"==typeof i.id&&i.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[i.id]=i.timescale))})),i(null)}})},Gh=function(t){var i=t.segment,n=t.bytes,e=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,a=t.id3Fn,u=t.captionsFn,h=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,l=t.doneFn,d=i.map&&i.map.tracks||{},v=Boolean(d.audio&&d.video),p=r.bind(null,i,"audio","start"),m=r.bind(null,i,"audio","end"),g=r.bind(null,i,"video","start"),b=r.bind(null,i,"video","end");Vh({action:"probeTs",transmuxer:i.transmuxer,data:n,baseStartTime:i.baseStartTime,callback:function(t){i.bytes=n=t.data;var r=t.result;r&&(e(i,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:v}),e=null,r.hasAudio&&!v&&p(r.audioStart),r.hasVideo&&g(r.videoStart),p=null,g=null),function(t){if(!t.transmuxer.currentTransmux)return t.transmuxer.currentTransmux=t,void Bh(t);t.transmuxer.transmuxQueue.push(t)}({bytes:n,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,remux:v,onData:function(t){t.type="combined"===t.type?"video":t.type,f(i,t)},onTrackInfo:function(t){e&&(v&&(t.isMuxed=!0),e(i,t))},onAudioTimingInfo:function(t){p&&void 0!==t.start&&(p(t.start),p=null),m&&void 0!==t.end&&m(t.end)},onVideoTimingInfo:function(t){g&&void 0!==t.start&&(g(t.start),g=null),b&&void 0!==t.end&&b(t.end)},onVideoSegmentTimingInfo:function(t){s(t)},onAudioSegmentTimingInfo:function(t){o(t)},onId3:function(t,n){a(i,t,n)},onCaptions:function(t){u(i,[t])},isEndOfTimeline:h,onEndedTimeline:function(){c()},onDone:function(t){l&&(t.type="combined"===t.type?"video":t.type,l(null,i,t))}})}})},Yh=function(t){var i=t.segment,n=t.bytes,e=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,a=t.id3Fn,u=t.captionsFn,h=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,l=t.doneFn,d=new Uint8Array(n);if(function(t){return ge(t,["moof"]).length>0}(d)){i.isFmp4=!0;var v=i.map.tracks,p={isFmp4:!0,hasVideo:!!v.video,hasAudio:!!v.audio};v.audio&&v.audio.codec&&"enca"!==v.audio.codec&&(p.audioCodec=v.audio.codec),v.video&&v.video.codec&&"encv"!==v.video.codec&&(p.videoCodec=v.video.codec),v.video&&v.audio&&(p.isMuxed=!0),e(i,p);var m=function(t){f(i,{data:d,type:p.hasAudio&&!p.isMuxed?"audio":"video"}),t&&t.length&&u(i,t),l(null,i,{})};Vh({action:"probeMp4StartTime",timescales:i.map.timescales,data:d,transmuxer:i.transmuxer,callback:function(t){var e=t.data,s=t.startTime;n=e.buffer,i.bytes=d=e,p.hasAudio&&!p.isMuxed&&r(i,"audio","start",s),p.hasVideo&&r(i,"video","start",s),v.video&&e.byteLength&&i.transmuxer?Vh({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:i.transmuxer,data:d,timescales:i.map.timescales,trackIds:[v.video.id],callback:function(t){n=t.data.buffer,i.bytes=d=t.data,m(t.captions)}}):m()}})}else if(i.transmuxer){if(void 0===i.container&&(i.container=Ce(d)),"ts"!==i.container&&"aac"!==i.container)return e(i,{hasAudio:!1,hasVideo:!1}),void l(null,i,{});Gh({segment:i,bytes:n,trackInfoFn:e,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:c,dataFn:f,doneFn:l})}else l(null,i,{})},Jh=function(t,i){var n,e=t.id,r=t.key,s=t.encryptedBytes,o=t.decryptionWorker;o.addEventListener("message",(function t(n){if(n.data.source===e){o.removeEventListener("message",t);var r=n.data.decrypted;i(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(wh({source:e,encrypted:s,key:n,iv:r.iv}),[s.buffer,n.buffer])},Qh=function(t){var i=t.xhr,n=t.xhrOptions,e=t.segment,r=t.abortFn,s=t.progressFn,o=t.trackInfoFn,a=t.timingInfoFn,u=t.videoSegmentTimingInfoFn,h=t.audioSegmentTimingInfoFn,c=t.id3Fn,f=t.captionsFn,l=t.isEndOfTimeline,d=t.endedTimelineFn,v=t.dataFn,p=[],m=function(t){var i=t.activeXhrs,n=t.decryptionWorker,e=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,o=t.audioSegmentTimingInfoFn,a=t.id3Fn,u=t.captionsFn,h=t.isEndOfTimeline,c=t.endedTimelineFn,f=t.dataFn,l=t.doneFn,d=0,v=!1;return function(t,p){if(!v){if(t)return v=!0,Hh(i),l(t,p);if((d+=1)===i.length){var m=function(){if(p.encryptedBytes)return function(t){var i=t.segment,n=t.trackInfoFn,e=t.timingInfoFn,r=t.videoSegmentTimingInfoFn,s=t.audioSegmentTimingInfoFn,o=t.id3Fn,a=t.captionsFn,u=t.isEndOfTimeline,h=t.endedTimelineFn,c=t.dataFn,f=t.doneFn;Jh({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t.decryptionWorker},(function(t){i.bytes=t,Yh({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:e,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:u,endedTimelineFn:h,dataFn:c,doneFn:f})}))}({decryptionWorker:n,segment:p,trackInfoFn:e,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:c,dataFn:f,doneFn:l});Yh({segment:p,bytes:p.bytes,trackInfoFn:e,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:c,dataFn:f,doneFn:l})};if(p.endOfAllRequests=Date.now(),p.map&&p.map.encryptedBytes&&!p.map.bytes)return Jh({decryptionWorker:n,id:p.requestId+"-init",encryptedBytes:p.map.encryptedBytes,key:p.map.key},(function(t){p.map.bytes=t,Wh(p,(function(t){if(t)return Hh(i),l(t,p);m()}))}));m()}}}}({activeXhrs:p,decryptionWorker:t.decryptionWorker,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:h,id3Fn:c,captionsFn:f,isEndOfTimeline:l,endedTimelineFn:d,dataFn:v,doneFn:t.doneFn});if(e.key&&!e.key.bytes){var g=[e.key];e.map&&!e.map.bytes&&e.map.key&&e.map.key.resolvedUri===e.key.resolvedUri&&g.push(e.map.key);var b=i(Tu.mergeOptions(n,{uri:e.key.resolvedUri,responseType:"arraybuffer"}),Xh(e,g,m));p.push(b)}if(e.map&&!e.map.bytes){if(e.map.key&&(!e.key||e.key.resolvedUri!==e.map.key.resolvedUri)){var y=i(Tu.mergeOptions(n,{uri:e.map.key.resolvedUri,responseType:"arraybuffer"}),Xh(e,[e.map.key],m));p.push(y)}var j=i(Tu.mergeOptions(n,{uri:e.map.resolvedUri,responseType:"arraybuffer",headers:gh(e.map)}),function(t){var i=t.segment,n=t.finishProcessingFn;return function(t,e){var r=qh(t,e);if(r)return n(r,i);var s=new Uint8Array(e.response);if(i.map.key)return i.map.encryptedBytes=s,n(null,i);i.map.bytes=s,Wh(i,(function(t){if(t)return t.xhr=e,t.status=e.status,n(t,i);n(null,i)}))}}({segment:e,finishProcessingFn:m}));p.push(j)}var w=Tu.mergeOptions(n,{uri:e.part&&e.part.resolvedUri||e.resolvedUri,responseType:"arraybuffer",headers:gh(e)}),x=i(w,function(t){var i=t.segment,n=t.finishProcessingFn,e=t.responseType;return function(t,r){var s=qh(t,r);if(s)return n(s,i);var o="arraybuffer"!==e&&r.responseText?function(t){for(var i=new Uint8Array(new ArrayBuffer(t.length)),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i.buffer}(r.responseText.substring(i.lastReachedChar||0)):r.response;return i.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),i.key?i.encryptedBytes=new Uint8Array(o):i.bytes=new Uint8Array(o),n(null,i)}}({segment:e,finishProcessingFn:m,responseType:w.responseType}));x.addEventListener("progress",function(t){var i=t.segment,n=t.progressFn;return function(t){if(!t.target.aborted)return i.stats=Tu.mergeOptions(i.stats,(r=(e=t).target,(s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=e.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s)),!i.stats.firstBytesReceivedAt&&i.stats.bytesReceived&&(i.stats.firstBytesReceivedAt=Date.now()),n(t,i);var e,r,s}}({segment:e,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:h,id3Fn:c,captionsFn:f,isEndOfTimeline:l,endedTimelineFn:d,dataFn:v})),p.push(x);var k={};return p.forEach((function(t){t.addEventListener("loadend",function(t){var i=t.loadendState,n=t.abortFn;return function(t){t.target.aborted&&n&&!i.calledAbortFn&&(n(),i.calledAbortFn=!0)}}({loadendState:k,abortFn:r}))})),function(){return Hh(p)}},Kh=Du("CodecUtils"),Zh=function(t,i){var n=i.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&n.AUDIO&&t.mediaGroups.AUDIO[n.AUDIO]},$h=function(t){var i={};return t.forEach((function(t){var n=t.mediaType,e=t.type,r=t.details;i[n]=i[n]||[],i[n].push(Gt(""+e+r))})),Object.keys(i).forEach((function(t){if(i[t].length>1)return Kh("multiple "+t+" codecs found as attributes: "+i[t].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(i[t]=null);i[t]=i[t][0]})),i},tc=function(t){var i=0;return t.audio&&i++,t.video&&i++,i},ic=function(t,i){var n=i.attributes||{},e=$h(function(t){var i=t.attributes||{};if(i.CODECS)return Yt(i.CODECS)}(i)||[]);if(Zh(t,i)&&!e.audio&&!function(t,i){if(!Zh(t,i))return!0;var n=t.mediaGroups.AUDIO[(i.attributes||{}).AUDIO];for(var e in n)if(!n[e].uri&&!n[e].playlists)return!0;return!1}(t,i)){var r=$h(function(t,i){if(!t.mediaGroups.AUDIO||!i)return null;var n=t.mediaGroups.AUDIO[i];if(!n)return null;for(var e in n){var r=n[e];if(r.default&&r.playlists)return Yt(r.playlists[0].attributes.CODECS)}return null}(t,n.AUDIO)||[]);r.audio&&(e.audio=r.audio)}return e},nc=Du("PlaylistSelector"),ec=function(t){if(t&&t.playlist){var i=t.playlist;return JSON.stringify({id:i.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:i.attributes&&i.attributes.CODECS||""})}},rc=function(t,i){if(!t)return"";var n=B.getComputedStyle(t);return n?n[i]:""},sc=function(t,i){var n=t.slice();t.sort((function(t,e){var r=i(t,e);return 0===r?n.indexOf(t)-n.indexOf(e):r}))},oc=function(t,i){var n,e;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i.attributes.BANDWIDTH&&(e=i.attributes.BANDWIDTH),(n=n||B.Number.MAX_VALUE)-(e||B.Number.MAX_VALUE)},ac=function(t,i,n,e,r,s){if(t){var o={bandwidth:i,width:n,height:e,limitRenditionByPlayerDimensions:r},a=t.playlists;$u.isAudioOnly(t)&&(a=s.getAudioTrackPlaylists_(),o.audioOnly=!0);var u=a.map((function(t){return{bandwidth:t.attributes&&t.attributes.BANDWIDTH||B.Number.MAX_VALUE,width:t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,height:t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height,playlist:t}}));sc(u,(function(t,i){return t.bandwidth-i.bandwidth}));var h=(u=u.filter((function(t){return!$u.isIncompatible(t.playlist)}))).filter((function(t){return $u.isEnabled(t.playlist)}));h.length||(h=u.filter((function(t){return!$u.isDisabled(t.playlist)})));var c=h.filter((function(t){return t.bandwidth*Rh.BANDWIDTH_VARIANCE<i})),f=c[c.length-1],l=c.filter((function(t){return t.bandwidth===f.bandwidth}))[0];if(!1===r){var d=l||h[0]||u[0];if(d&&d.playlist){var v="sortedPlaylistReps";return l&&(v="bandwidthBestRep"),h[0]&&(v="enabledPlaylistReps"),nc("choosing "+ec(d)+" using "+v+" with options",o),d.playlist}return nc("could not choose a playlist with options",o),null}var p=c.filter((function(t){return t.width&&t.height}));sc(p,(function(t,i){return t.width-i.width}));var m=p.filter((function(t){return t.width===n&&t.height===e}));f=m[m.length-1];var g,b,y,j=m.filter((function(t){return t.bandwidth===f.bandwidth}))[0];j||(b=(g=p.filter((function(t){return t.width>n||t.height>e}))).filter((function(t){return t.width===g[0].width&&t.height===g[0].height})),f=b[b.length-1],y=b.filter((function(t){return t.bandwidth===f.bandwidth}))[0]);var w=y||j||l||h[0]||u[0];if(w&&w.playlist){var x="sortedPlaylistReps";return y?x="resolutionPlusOneRep":j?x="resolutionBestRep":l?x="bandwidthBestRep":h[0]&&(x="enabledPlaylistReps"),nc("choosing "+ec(w)+" using "+x+" with options",o),w.playlist}return nc("could not choose a playlist with options",o),null}},uc=function(){var t=this.useDevicePixelRatio&&B.devicePixelRatio||1;return ac(this.playlists.master,this.systemBandwidth,parseInt(rc(this.tech_.el(),"width"),10)*t,parseInt(rc(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},hc=function(t,i,n){var e,r;if(n&&n.cues)for(e=n.cues.length;e--;)(r=n.cues[e]).startTime>=t&&r.endTime<=i&&n.removeCue(r)},cc=function(t){return"number"==typeof t&&isFinite(t)},fc=function(t){var i=t.startOfSegment,n=t.duration,e=t.segment,r=t.part,s=t.playlist,o=s.mediaSequence,a=s.id,u=s.segments,h=t.mediaIndex,c=t.partIndex,f=t.timeline,l=(void 0===u?[]:u).length-1,d="mediaIndex/partIndex increment";t.getMediaInfoForTime?d="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)");var v="number"==typeof c,p=t.segment.uri?"segment":"pre-segment",m=v?Fu({preloadSegment:e})-1:0;return p+" ["+(o+h)+"/"+(o+l)+"]"+(v?" part ["+c+"/"+m+"]":"")+" segment start/end ["+e.start+" => "+e.end+"]"+(v?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+i+"] duration ["+n+"] timeline ["+f+"] selected by ["+d+"] playlist ["+a+"]"},lc=function(t){return t+"TimingInfo"},dc=function(t){var i=t.timelineChangeController,n=t.segmentTimeline,e=t.loaderType,r=t.audioDisabled;if(t.currentTimeline===n)return!1;if("audio"===e){var s=i.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===e&&r){var o=i.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},vc=function(t){var i=t.segmentDuration,n=t.maxDuration;return!!i&&Math.round(i)>n+.03333333333333333},pc=function(t){function i(i){var n;if(n=t.call(this)||this,!i)throw new TypeError("Initialization settings are required");if("function"!=typeof i.currentTime)throw new TypeError("No currentTime getter specified");if(!i.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=i.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=i.hasPlayed,n.currentTime_=i.currentTime,n.seekable_=i.seekable,n.seeking_=i.seeking,n.duration_=i.duration,n.mediaSource_=i.mediaSource,n.vhs_=i.vhs,n.loaderType_=i.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=i.segmentMetadataTrack,n.goalBufferLength_=i.goalBufferLength,n.sourceType_=i.sourceType,n.sourceUpdater_=i.sourceUpdater,n.inbandTextTracks_=i.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=i.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=i.parse708captions,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=Tu.browser.IE_VERSION>=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=i.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=i.decrypter,n.syncController_=i.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",(function(){n.isEndOfStream_()||(n.ended_=!1)})),n.fetchAtBuffer_=!1,n.logger_=Du("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(H(n),"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",(function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),n}X(i,t);var n=i.prototype;return n.createTransmuxer_=function(){return function(t){var i=new Lh;i.currentTransmux=null,i.transmuxQueue=[];var n=i.terminate;return i.terminate=function(){return i.currentTransmux=null,i.transmuxQueue.length=0,n.call(i)},i.postMessage({action:"init",options:t}),i}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&B.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,B.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(t){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==t:(this.state="READY",!0)},n.error=function(t){return void 0!==t&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&_h(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){if(!this.sourceUpdater_||!this.startingMediaInfo_)return Tu.createTimeRanges();if("main"===this.loaderType_){var t=this.startingMediaInfo_,i=t.hasVideo;if(i&&t.hasAudio&&!this.audioDisabled_&&!t.isMuxed)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(t,i){if(void 0===i&&(i=!1),!t)return null;var n=xh(t),e=this.initSegments_[n];return i&&!e&&t.bytes&&(this.initSegments_[n]=e={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),e||t},n.segmentKey=function(t,i){if(void 0===i&&(i=!1),!t)return null;var n=kh(t),e=this.keyCache_[n];this.cacheEncryptionKeys_&&i&&!e&&t.bytes&&(this.keyCache_[n]=e={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(e||t).resolvedUri};return e&&(r.bytes=e.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(t,i){if(void 0===i&&(i={}),t){var n=this.playlist_,e=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=i,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(t));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==t.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=t.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var a=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=a}}e&&(e.mediaIndex-=s,e.mediaIndex<0?(e.mediaIndex=null,e.partIndex=null):(e.mediaIndex>=0&&(e.segment=t.segments[e.mediaIndex]),e.partIndex>=0&&e.segment.parts&&(e.part=e.segment.parts[e.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,t)}},n.pause=function(){this.checkBufferTimeout_&&(B.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(t){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&_h(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(t,i,n,e){if(void 0===n&&(n=function(){}),void 0===e&&(e=!1),i===1/0&&(i=this.duration_()),i<=t)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.startingMediaInfo_){var r=1,s=function(){0==--r&&n()};for(var o in!e&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(t,i,s)),(e||"main"===this.loaderType_)&&(this.gopBuffer_=function(t,i,n,e){for(var r=Math.ceil(9e4*(i-e)),s=Math.ceil(9e4*(n-e)),o=t.slice(),a=t.length;a--&&!(t[a].pts<=s););if(-1===a)return o;for(var u=a+1;u--&&!(t[u].pts<=r););return u=Math.max(u,0),o.splice(u,a-u+1),o}(this.gopBuffer_,t,i,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(t,i,s)),this.inbandTextTracks_)hc(t,i,this.inbandTextTracks_[o]);hc(t,i,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&B.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=B.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&B.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=B.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&("number"==typeof t.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},n.isEndOfStream_=function(t,i,n){if(void 0===t&&(t=this.mediaIndex),void 0===i&&(i=this.playlist_),void 0===n&&(n=this.partIndex),!i||!this.mediaSource_)return!1;var e="number"==typeof t&&i.segments[t];return i.endList&&"open"===this.mediaSource_.readyState&&t+1===i.segments.length&&(!e||!e.parts||n+1===e.parts.length)},n.chooseNextRequest_=function(){var t=Uu(this.buffered_())||0,i=Math.max(0,t-this.currentTime_()),n=!this.hasPlayed_()&&i>=1,e=i>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||e)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(t,i,n){i=i||[];for(var e=[],r=0,s=0;s<i.length;s++){var o=i[s];if(t===o.timeline&&(e.push(s),(r+=o.duration)>n))return s}return 0===e.length?0:e[e.length-1]}(this.currentTimeline_,r,t);else if(null!==this.mediaIndex){var o=r[this.mediaIndex],a="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[a+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=a+1):s.mediaIndex=this.mediaIndex+1}else{var u=$u.getMediaInfoForTime({playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),h=u.segmentIndex,c=u.startTime,f=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",s.mediaIndex=h,s.startOfSegment=c,s.partIndex=f}var l=r[s.mediaIndex];return l&&("number"!=typeof s.partIndex||l&&"number"==typeof s.partIndex&&l.parts&&l.parts[s.partIndex])?("number"!=typeof s.partIndex&&l.parts&&(s.partIndex=0),s.mediaIndex>=r.length-1&&this.mediaSource_&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?null:this.generateSegmentInfo_(s)):null},n.generateSegmentInfo_=function(t){var i=t.playlist,n=t.mediaIndex,e=t.startOfSegment,r=t.isSyncRequest,s=t.partIndex,o=t.forceTimestampOffset,a=t.getMediaInfoForTime,u=i.segments[n],h="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:h&&h.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:h?s:null,isSyncRequest:r,startOfSegment:e,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:h&&h.duration||u.duration,segment:u,part:h,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:a},f=void 0!==o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:e,buffered:this.buffered_(),overrideCheck:f});var l=Uu(this.sourceUpdater_.audioBuffered());return"number"==typeof l&&(c.audioAppendStart=l-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=function(t,i,n){if(null==i||!t.length)return[];var e,r=Math.ceil(9e4*(i-n+3));for(e=0;e<t.length&&!(t[e].pts>r);e++);return t.slice(e)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},n.timestampOffsetForSegment_=function(t){return n=(i=t).segmentTimeline,e=i.currentTimeline,r=i.startOfSegment,s=i.buffered,i.overrideCheck||n!==e?n<e?r:s.length?s.end(s.length-1):r:null;var i,n,e,r,s},n.earlyAbortWhenNeeded_=function(t){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var i=this.currentTime_(),n=t.bandwidth,e=this.pendingSegment_.duration,r=$u.estimateSegmentRequestTime(e,n,this.playlist_,t.bytesReceived),s=function(t,i,n){return void 0===n&&(n=1),((t.length?t.end(t.length-1):0)-i)/n}(this.buffered_(),i,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var o=function(t){var i=t.currentTime,n=t.bandwidth,e=t.duration,r=t.segmentDuration,s=t.timeUntilRebuffer,o=t.currentTimeline,a=t.syncController,u=t.master.playlists.filter((function(t){return!$u.isIncompatible(t)})),h=u.filter($u.isEnabled);h.length||(h=u.filter((function(t){return!$u.isDisabled(t)})));var c=h.filter($u.hasAttribute.bind(null,"BANDWIDTH")).map((function(t){var u=a.getSyncPoint(t,e,o,i)?1:2;return{playlist:t,rebufferingImpact:$u.estimateSegmentRequestTime(r,n,t)*u-s}})),f=c.filter((function(t){return t.rebufferingImpact<=0}));return sc(f,(function(t,i){return oc(i.playlist,t.playlist)})),f.length?f[0]:(sc(c,(function(t,i){return t.rebufferingImpact-i.rebufferingImpact})),c[0]||null)}({master:this.vhs_.playlists.master,currentTime:i,bandwidth:n,duration:this.duration_(),segmentDuration:e,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var a=.5;s<=.03333333333333333&&(a=1),!o.playlist||o.playlist.uri===this.playlist_.uri||r-s-o.rebufferingImpact<a||(this.bandwidth=o.playlist.attributes.BANDWIDTH*Rh.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(t){this.logger_("Aborting "+fc(t)),this.mediaRequestsAborted+=1},n.handleProgress_=function(t,i){this.earlyAbortWhenNeeded_(i.stats),this.checkForAbort_(i.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(t,i){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.checkForIllegalMediaSwitch(i)||(function(t,i){if(!t&&!i||!t&&i||t&&!i)return!1;if(t===i)return!0;var n=Object.keys(t).sort(),e=Object.keys(i).sort();if(n.length!==e.length)return!1;for(var r=0;r<n.length;r++){var s=n[r];if(s!==e[r])return!1;if(t[s]!==i[s])return!1}return!0}(this.currentMediaInfo_,i=i||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=i,this.currentMediaInfo_=i,this.logger_("trackinfo update",i),this.trigger("trackinfo")),this.checkForAbort_(t.requestId)||(this.pendingSegment_.trackInfo=i,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(t,i,n,e){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var r=this.pendingSegment_,s=lc(i);r[s]=r[s]||{},r[s][n]=e,this.logger_("timinginfo: "+i+" - "+n+" - "+e),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(t,i){var n=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(0!==i.length)if(this.pendingSegment_.hasAppendedData_){var e=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};i.forEach((function(t){r[t.stream]=r[t.stream]||{startTime:1/0,captions:[],endTime:0};var i=r[t.stream];i.startTime=Math.min(i.startTime,t.startTime+e),i.endTime=Math.max(i.endTime,t.endTime+e),i.captions.push(t)})),Object.keys(r).forEach((function(t){var i=r[t],s=i.startTime,o=i.endTime,a=i.captions,u=n.inbandTextTracks_;n.logger_("adding cues from "+s+" -> "+o+" for "+t),function(t,i,n){if(!t[n]){i.trigger({type:"usage",name:"vhs-608"}),i.trigger({type:"usage",name:"hls-608"});var e=n;/^cc708_/.test(n)&&(e="SERVICE"+n.split("_")[1]);var r=i.textTracks().getTrackById(e);if(r)t[n]=r;else{var s=n,o=n,a=!1,u=(i.options_.vhs&&i.options_.vhs.captionServices||{})[e];u&&(s=u.label,o=u.language,a=u.default),t[n]=i.addRemoteTextTrack({kind:"captions",id:e,default:a,label:s,language:o},!1).track}}}(u,n.vhs_.tech_,t),hc(s,o,u[t]),function(t){var i=t.inbandTextTracks,n=t.captionArray,e=t.timestampOffset;if(n){var r=B.WebKitDataCue||B.VTTCue;n.forEach((function(t){i[t.stream].addCue(new r(t.startTime+e,t.endTime+e,t.text))}))}}({captionArray:a,inbandTextTracks:u,timestampOffset:e})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,i));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(t,i,n){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(this.pendingSegment_.hasAppendedData_){var e=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(t,i,n){t.metadataTrack_||(t.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=i)}(this.inbandTextTracks_,n,this.vhs_.tech_),function(t){var i=t.metadataArray,n=t.timestampOffset,e=t.videoDuration;if(i){var r=B.WebKitDataCue||B.VTTCue,s=t.inbandTextTracks.metadataTrack_;if(s&&(i.forEach((function(t){var i=t.cueTime+n;!("number"!=typeof i||B.isNaN(i)||i<0)&&i<1/0&&t.frames.forEach((function(t){var n=new r(i,i,t.value||t.url||t.data||"");n.frame=t,n.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Tu.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Tu.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Tu.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var o=s.cues,a=[],u=0;u<o.length;u++)o[u]&&a.push(o[u]);var h=a.reduce((function(t,i){var n=t[i.startTime]||[];return n.push(i),t[i.startTime]=n,t}),{}),c=Object.keys(h).sort((function(t,i){return Number(t)-Number(i)}));c.forEach((function(t,i){var n=h[t],r=Number(c[i+1])||e;n.forEach((function(t){t.endTime=r}))}))}}}({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:e,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,i,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(t){return t()})),this.metadataQueue_.caption.forEach((function(t){return t()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach((function(t){return t()}))},n.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach((function(t){return t()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var t=this.pendingSegment_;return!(!t||this.currentMediaInfo_&&dc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_;if(!t||!t.trackInfo)return!1;var i=this.currentMediaInfo_;return!(i.hasVideo&&!t.videoTimingInfo||i.hasAudio&&!this.audioDisabled_&&!i.isMuxed&&!t.audioTimingInfo||dc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(t,i){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),n.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),n.isFmp4=t.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[lc(i.type)].start;else{var e,r="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo;r&&(e=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:r,firstVideoFrameTimeForData:e,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,i.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,i)}}else this.callQueue_.push(this.handleData_.bind(this,t,i))},n.updateAppendInitSegmentStatus=function(t,i){"main"!==this.loaderType_||"number"!=typeof t.timestampOffset||t.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[i]!==t.playlist&&(this.appendInitSegment_[i]=!0)},n.getInitSegmentAndUpdateState_=function(t){var i=t.type,n=t.initSegment,e=t.map,r=t.playlist;if(e){var s=xh(e);if(this.activeInitSegmentId_===s)return null;n=this.initSegmentForMap(e,!0).bytes,this.activeInitSegmentId_=s}return n&&this.appendInitSegment_[i]?(this.playlistOfLastInitSegment_[i]=r,this.appendInitSegment_[i]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(t){var i=this,n=t.segmentInfo,e=t.type,r=t.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Cu(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Cu(o).join(", "));var a=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,h=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(u-a<=1&&c-h<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+r.byteLength+", audio buffer: "+Cu(s).join(", ")+", video buffer: "+Cu(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:e,bytes:r}));var f=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+f),this.remove(0,f,(function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=B.setTimeout((function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(t,i){var n=t.segmentInfo,e=t.type,r=t.bytes;i&&(22!==i.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error(e+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:e,bytes:r}))},n.appendToSourceBuffer_=function(t){var i,n,e,r=t.segmentInfo,s=t.type,o=t.initSegment,a=t.data,u=t.bytes;if(!u){var h=[a],c=a.byteLength;o&&(h.unshift(o),c+=o.byteLength),e=0,(i={bytes:c,segments:h}).bytes&&(n=new Uint8Array(i.bytes),i.segments.forEach((function(t){n.set(t,e),e+=t.byteLength}))),u=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:u},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:u}))},n.handleSegmentTimingInfo_=function(t,i,n){if(this.pendingSegment_&&i===this.pendingSegment_.requestId){var e=this.pendingSegment_.segment,r=t+"TimingInfo";e[r]||(e[r]={}),e[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,e[r].transmuxedPresentationStart=n.start.presentation,e[r].transmuxedDecodeStart=n.start.decode,e[r].transmuxedPresentationEnd=n.end.presentation,e[r].transmuxedDecodeEnd=n.end.decode,e[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(t,i){var n=i.type,e=i.data;if(e&&e.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:i.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:r,data:e})}},n.loadSegment_=function(t){var i=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push((function(){var n=V({},t,{forceTimestampOffset:!0});V(t,i.generateSegmentInfo_(n)),i.isPendingTimestampOffset_=!1,i.updateTransmuxerAndRequestSegment_(t)}))},n.updateTransmuxerAndRequestSegment_=function(t){var i=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var n=this.createSimplifiedSegmentObj_(t),e=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)||null!==this.mediaIndex&&t.timeline!==this.currentTimeline_&&t.timeline>0;this.logger_("Requesting "+fc(t)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=Qh({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:e,endedTimelineFn:function(){i.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this)})},n.trimBackBuffer_=function(){var t,i,n,e,r=(t=this.seekable_(),i=this.currentTime_(),n=this.playlist_.targetDuration||10,e=i-Rh.BACK_BUFFER_LENGTH,t.length&&(e=Math.max(e,t.start(0))),Math.min(i-n,e));r>0&&this.remove(0,r)},n.createSimplifiedSegmentObj_=function(t){var i=t.segment,n=t.part,e={resolvedUri:n?n.resolvedUri:i.resolvedUri,byterange:n?n.byterange:i.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},r=t.playlist.segments[t.mediaIndex-1];if(r&&r.timeline===i.timeline&&(r.videoTimingInfo?e.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(e.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),i.key){var s=i.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);e.key=this.segmentKey(i.key),e.key.iv=s}return i.map&&(e.map=this.initSegmentForMap(i.map)),e},n.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},n.saveBandwidthRelatedStats_=function(t,i){this.pendingSegment_.byteLength=i.bytesReceived,t<.016666666666666666?this.logger_("Ignoring segment's bandwidth because its duration of "+t+" is less than the min to record 0.016666666666666666"):(this.bandwidth=i.bandwidth,this.roundTrip=i.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(t,i,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,i,n));else if(this.saveTransferStats_(i.stats),this.pendingSegment_&&i.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",-102===t.code)return;return this.pause(),-101===t.code?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error"))}var e=this.pendingSegment_;this.saveBandwidthRelatedStats_(e.duration,i.stats),e.endOfAllRequests=i.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(t,i,n){if(!i.length)return t;if(n)return i.slice();for(var e=i[0].pts,r=0;r<t.length&&!(t[r].pts>=e);r++);return t.slice(0,r).concat(i)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},n.setTimeMapping_=function(t){var i=this.syncController_.mappingForTimeline(t);null!==i&&(this.timeMapping_=i)},n.updateMediaSecondsLoaded_=function(t){this.mediaSecondsLoaded+="number"==typeof t.start&&"number"==typeof t.end?t.end-t.start:t.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(t){return null!==t&&("main"===this.loaderType_&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(t){var i=t.currentStart,n=t.mediaIndex,e=t.firstVideoFrameTimeForData;if(void 0!==i)return i;if(!t.useVideoTimingInfo)return t.audioTimingInfo.start;var r=t.playlist.segments[n-1];return 0!==n&&r&&void 0!==r.start&&r.end===e+t.currentVideoTimestampOffset?t.videoTimingInfo.start:e},n.waitForAppendsToComplete_=function(t){if(!this.currentMediaInfo_)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var i=this.currentMediaInfo_,n="main"===this.loaderType_&&i.hasVideo,e=!this.audioDisabled_&&i.hasAudio&&!i.isMuxed;if(t.waitingOnAppends=0,!t.hasAppendedData_)return t.timingInfo||"number"!=typeof t.timestampOffset||(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),void this.checkAppendsDone_(t);n&&t.waitingOnAppends++,e&&t.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),e&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},n.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,0===t.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(t){var i=function(t,i,n){return"main"===t&&i&&n?n.hasAudio||n.hasVideo?i.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!i.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.currentMediaInfo_,t);return!!i&&(this.error({message:i,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(t){if(null!==t.timestampOffset&&"number"==typeof t.timingInfo.start&&!t.changedTimestampOffset&&"main"===this.loaderType_){var i=!1;t.timestampOffset-=t.timingInfo.start,t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),i=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),i=!0),i&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var i="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;i&&(t.timingInfo.end="number"==typeof i.end?i.end:i.start+t.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var i=function(t,i){if("hls"!==i)return null;var n,e,r=(n=t.audioTimingInfo,e=t.videoTimingInfo,Math.max(n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,e&&"number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:0));if(!r)return null;var s=t.playlist.targetDuration,o=vc({segmentDuration:r,maxDuration:2*s}),a=vc({segmentDuration:r,maxDuration:s});return o||a?{severity:o?"warn":"info",message:"Segment with index "+t.mediaIndex+" from playlist "+t.playlist.id+" has a duration of "+r+" when the reported duration is "+t.duration+" and the target duration is "+s+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1"}:null}(t,this.sourceType_);if(i&&("warn"===i.severity?Tu.log.warn(i.message):this.logger_(i.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",!t.isSyncRequest||(this.trigger("syncinfoupdate"),t.hasAppendedData_)){this.logger_("Appended "+fc(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var n=t.segment;n.end&&this.currentTime_()-n.end>3*t.playlist.targetDuration?this.resetEverything():(null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_())}else this.logger_("Throwing away un-appended sync request "+fc(t))},n.recordThroughput_=function(t){if(t.duration<.016666666666666666)this.logger_("Ignoring segment's throughput because its duration of "+t.duration+" is less than the min to record 0.016666666666666666");else{var i=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,e=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(e-i)/++this.throughput.count}},n.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var i=t.segment,n=i.start,e=i.end;if(cc(n)&&cc(e)){hc(n,e,this.segmentMetadataTrack_);var r={custom:i.custom,dateTimeObject:i.dateTimeObject,dateTimeString:i.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:n,end:e},s=new(B.WebKitDataCue||B.VTTCue)(n,e,JSON.stringify(r));s.value=r,this.segmentMetadataTrack_.addCue(s)}}},i}(Tu.EventTarget);function mc(){}var gc,bc=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))},yc=["video","audio"],jc=function(t,i){var n=i[t+"Buffer"];return n&&n.updating||i.queuePending[t]},wc=function t(i,n){if(0!==n.queue.length){var e=0,r=n.queue[e];if("mediaSource"!==r.type){if("mediaSource"!==i&&n.ready()&&"closed"!==n.mediaSource.readyState&&!jc(i,n)){if(r.type!==i){if(null===(e=function(t,i){for(var n=0;n<i.length;n++){var e=i[n];if("mediaSource"===e.type)return null;if(e.type===t)return n}return null}(i,n.queue)))return;r=n.queue[e]}return n.queue.splice(e,1),n.queuePending[i]=r,r.action(i,n),r.doneFn?void 0:(n.queuePending[i]=null,void t(i,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),t("audio",n),t("video",n))}},xc=function(t,i){var n=i[t+"Buffer"],e=bc(t);n&&(n.removeEventListener("updateend",i["on"+e+"UpdateEnd_"]),n.removeEventListener("error",i["on"+e+"Error_"]),i.codecs[t]=null,i[t+"Buffer"]=null)},kc=function(t,i){return t&&i&&-1!==Array.prototype.indexOf.call(t.sourceBuffers,i)},Tc=function(t,i,n){return function(e,r){var s=r[e+"Buffer"];if(kc(r.mediaSource,s)){r.logger_("Appending segment "+i.mediaIndex+"'s "+t.length+" bytes to "+e+"Buffer");try{s.appendBuffer(t)}catch(t){r.logger_("Error with code "+t.code+" "+(22===t.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+i.mediaIndex+" to "+e+"Buffer"),r.queuePending[e]=null,n(t)}}}},Ac=function(t,i){return function(n,e){var r=e[n+"Buffer"];if(kc(e.mediaSource,r)){e.logger_("Removing "+t+" to "+i+" from "+n+"Buffer");try{r.remove(t,i)}catch(r){e.logger_("Remove "+t+" to "+i+" from "+n+"Buffer failed")}}}},Ec=function(t){return function(i,n){var e=n[i+"Buffer"];kc(n.mediaSource,e)&&(n.logger_("Setting "+i+"timestampOffset to "+t),e.timestampOffset=t)}},Sc=function(t){return function(){t()}},Ic=function(t){return function(i){if("open"===i.mediaSource.readyState){i.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{i.mediaSource.endOfStream(t)}catch(t){Tu.log.warn("Failed to call media source endOfStream",t)}}}},Dc=function(t,i){return function(n){var e=bc(t),r=Qt(i);n.logger_("Adding "+t+"Buffer with codec "+i+" to mediaSource");var s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n["on"+e+"UpdateEnd_"]),s.addEventListener("error",n["on"+e+"Error_"]),n.codecs[t]=i,n[t+"Buffer"]=s}},Oc=function(t){return function(i){var n=i[t+"Buffer"];if(xc(t,i),kc(i.mediaSource,n)){i.logger_("Removing "+t+"Buffer with codec "+i.codecs[t]+" from mediaSource");try{i.mediaSource.removeSourceBuffer(n)}catch(i){Tu.log.warn("Failed to removeSourceBuffer "+t+"Buffer",i)}}}},Nc=function(t){return function(i,n){var e=n[i+"Buffer"],r=Qt(t);kc(n.mediaSource,e)&&n.codecs[i]!==t&&(n.logger_("changing "+i+"Buffer codec from "+n.codecs[i]+" to "+t),e.changeType(r),n.codecs[i]=t)}},Rc=function(t){var i=t.type,n=t.sourceUpdater;n.queue.push({type:i,action:t.action,doneFn:t.doneFn,name:t.name}),wc(i,n)},Mc=function(t,i){return function(){if(i.queuePending[t]){var n=i.queuePending[t].doneFn;i.queuePending[t]=null,n&&n(i[t+"Error_"])}wc(t,i)}},Cc=function(t){function i(i){var n;return(n=t.call(this)||this).mediaSource=i,n.sourceopenListener_=function(){return wc("mediaSource",H(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Du("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Mc("video",H(n)),n.onAudioUpdateEnd_=Mc("audio",H(n)),n.onVideoError_=function(t){n.videoError_=t},n.onAudioError_=function(t){n.audioError_=t},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}X(i,t);var n=i.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(t,i){Rc({type:"mediaSource",sourceUpdater:this,action:Dc(t,i),name:"addSourceBuffer"})},n.abort=function(t){Rc({type:t,sourceUpdater:this,action:function(t,i){if("open"===i.mediaSource.readyState){var n=i[t+"Buffer"];if(kc(i.mediaSource,n)){i.logger_("calling abort on "+t+"Buffer");try{n.abort()}catch(i){Tu.log.warn("Failed to abort on "+t+"Buffer",i)}}}},name:"abort"})},n.removeSourceBuffer=function(t){this.canRemoveSourceBuffer()?Rc({type:"mediaSource",sourceUpdater:this,action:Oc(t),name:"removeSourceBuffer"}):Tu.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Tu.browser.IE_VERSION&&!Tu.browser.IS_FIREFOX&&B.MediaSource&&B.MediaSource.prototype&&"function"==typeof B.MediaSource.prototype.removeSourceBuffer},i.canChangeType=function(){return B.SourceBuffer&&B.SourceBuffer.prototype&&"function"==typeof B.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(t,i){this.canChangeType()?Rc({type:t,sourceUpdater:this,action:Nc(i),name:"changeType"}):Tu.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(t){var i=this;if(!t||"object"!=typeof t||0===Object.keys(t).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach((function(n){var e=t[n];if(!i.hasCreatedSourceBuffers())return i.addSourceBuffer(n,e);i.canChangeType()&&i.changeType(n,e)}))},n.appendBuffer=function(t,i){var n=this,e=t.segmentInfo,r=t.type,s=t.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([t,i]),void this.logger_("delayed audio append of "+s.length+" until video append");if(Rc({type:r,sourceUpdater:this,action:Tc(s,e||{mediaIndex:-1},i),doneFn:i,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach((function(t){n.appendBuffer.apply(n,t)}))}},n.audioBuffered=function(){return kc(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Tu.createTimeRange()},n.videoBuffered=function(){return kc(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Tu.createTimeRange()},n.buffered=function(){var t=kc(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,i=kc(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return i&&!t?this.audioBuffered():t&&!i?this.videoBuffered():function(t,i){var n=null,e=null,r=0,s=[],o=[];if(!(t&&t.length&&i&&i.length))return Tu.createTimeRange();for(var a=t.length;a--;)s.push({time:t.start(a),type:"start"}),s.push({time:t.end(a),type:"end"});for(a=i.length;a--;)s.push({time:i.start(a),type:"start"}),s.push({time:i.end(a),type:"end"});for(s.sort((function(t,i){return t.time-i.time})),a=0;a<s.length;a++)"start"===s[a].type?2==++r&&(n=s[a].time):"end"===s[a].type&&1==--r&&(e=s[a].time),null!==n&&null!==e&&(o.push([n,e]),n=null,e=null);return Tu.createTimeRanges(o)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(t,i){var n;void 0===i&&(i=mc),Rc({type:"mediaSource",sourceUpdater:this,action:(n=t,function(t){t.logger_("Setting mediaSource duration to "+n);try{t.mediaSource.duration=n}catch(t){Tu.log.warn("Failed to set media source duration",t)}}),name:"duration",doneFn:i})},n.endOfStream=function(t,i){void 0===t&&(t=null),void 0===i&&(i=mc),"string"!=typeof t&&(t=void 0),Rc({type:"mediaSource",sourceUpdater:this,action:Ic(t),name:"endOfStream",doneFn:i})},n.removeAudio=function(t,i,n){void 0===n&&(n=mc),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Rc({type:"audio",sourceUpdater:this,action:Ac(t,i),doneFn:n,name:"remove"}):n()},n.removeVideo=function(t,i,n){void 0===n&&(n=mc),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Rc({type:"video",sourceUpdater:this,action:Ac(t,i),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!jc("audio",this)&&!jc("video",this))},n.audioTimestampOffset=function(t){return void 0!==t&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(Rc({type:"audio",sourceUpdater:this,action:Ec(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},n.videoTimestampOffset=function(t){return void 0!==t&&this.videoBuffer&&this.videoTimestampOffset!==t&&(Rc({type:"video",sourceUpdater:this,action:Ec(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},n.audioQueueCallback=function(t){this.audioBuffer&&Rc({type:"audio",sourceUpdater:this,action:Sc(t),name:"callback"})},n.videoQueueCallback=function(t){this.videoBuffer&&Rc({type:"video",sourceUpdater:this,action:Sc(t),name:"callback"})},n.dispose=function(){var t=this;this.trigger("dispose"),yc.forEach((function(i){t.abort(i),t.canRemoveSourceBuffer()?t.removeSourceBuffer(i):t[i+"QueueCallback"]((function(){return xc(i,t)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},i}(Tu.EventTarget),Uc=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},Pc=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),Lc=function(t){function i(i,n){var e;return void 0===n&&(n={}),(e=t.call(this,i,n)||this).mediaSource_=null,e.subtitlesTrack_=null,e.loaderType_="subtitle",e.featuresNativeTextTracks_=i.featuresNativeTextTracks,e.shouldSaveSegmentTimingInfo_=!1,e}X(i,t);var n=i.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Tu.createTimeRanges();var t=this.subtitlesTrack_.cues;return Tu.createTimeRanges([[t[0].startTime,t[t.length-1].startTime]])},n.initSegmentForMap=function(t,i){if(void 0===i&&(i=!1),!t)return null;var n=xh(t),e=this.initSegments_[n];if(i&&!e&&t.bytes){var r=new Uint8Array(Pc.byteLength+t.bytes.byteLength);r.set(t.bytes),r.set(Pc,t.bytes.byteLength),this.initSegments_[n]=e={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:r}}return e||t},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(t){return void 0===t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(t,i){hc(t,i,this.subtitlesTrack_)},n.fillBuffer_=function(){var t=this,i=this.chooseNextRequest_();if(i){if(null===this.syncController_.timestampOffsetForTimeline(i.timeline))return this.syncController_.one("timestampoffset",(function(){t.state="READY",t.paused()||t.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(i)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(t.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},n.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(t,i,n){var e=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(i.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(t)return-101===t.code&&this.handleTimeout_(),-102===t.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(t);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,i.stats),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=i.map.bytes),r.bytes=i.bytes,"function"!=typeof B.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,a=function(){e.subtitlesTrack_.tech_.off("vttjsloaded",o),e.stopForError({message:"Error loading vtt.js"})};return o=function(){e.subtitlesTrack_.tech_.off("vttjserror",a),e.segmentRequestFinished_(t,i,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",a)}s.requested=!0;try{this.parseVTTCues_(r)}catch(t){return void this.stopForError({message:t.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.timingInfo=r.cues.length?{start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:{start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(t){e.subtitlesTrack_.addCue(e.featuresNativeTextTracks_?new B.VTTCue(t.startTime,t.endTime,t.text):t)})),function(t){var i=t.cues;if(i)for(var n=0;n<i.length;n++){for(var e=[],r=0,s=0;s<i.length;s++)i[n].startTime===i[s].startTime&&i[n].endTime===i[s].endTime&&i[n].text===i[s].text&&++r>1&&e.push(i[s]);e.length&&e.forEach((function(i){return t.removeCue(i)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(t){var i,n=!1;"function"==typeof B.TextDecoder?i=new B.TextDecoder("utf8"):(i=B.WebVTT.StringDecoder(),n=!0);var e=new B.WebVTT.Parser(B,B.vttjs,i);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},e.oncue=t.cues.push.bind(t.cues),e.ontimestampmap=function(i){t.timestampmap=i},e.onparsingerror=function(t){Tu.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;n&&(r=Uc(r)),e.parse(r)}var s=t.bytes;n&&(s=Uc(s)),e.parse(s),e.flush()},n.updateTimeMapping_=function(t,i,n){var e=t.segment;if(i)if(t.cues.length){var r=t.timestampmap,s=r.MPEGTS/9e4-r.LOCAL+i.mapping;t.cues.forEach((function(t){t.startTime+=s,t.endTime+=s})),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(t.cues[0].startTime,t.cues[t.cues.length-1].startTime-e.duration)})}else e.empty=!0},i}(pc),Bc=function(t,i){for(var n=t.cues,e=0;e<n.length;e++){var r=n[e];if(i>=r.adStartTime&&i<=r.adEndTime)return r}return null},Fc=[{name:"VOD",run:function(t,i,n){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(t,i,n,e,r){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var s=null,o=null,a=Lu(i);r=r||0;for(var u=0;u<a.length;u++){var h=a[i.endList||0===r?u:a.length-(u+1)],c=h.segment,f=t.timelineToDatetimeMappings[c.timeline];if(f&&c.dateTimeObject){var l=c.dateTimeObject.getTime()/1e3+f;if(c.parts&&"number"==typeof h.partIndex)for(var d=0;d<h.partIndex;d++)l+=c.parts[d].duration;var v=Math.abs(r-l);if(null!==o&&(0===v||o<v))break;o=v,s={time:l,segmentIndex:h.segmentIndex,partIndex:h.partIndex}}}return s}},{name:"Segment",run:function(t,i,n,e,r){var s=null,o=null;r=r||0;for(var a=Lu(i),u=0;u<a.length;u++){var h=a[i.endList||0===r?u:a.length-(u+1)],c=h.segment,f=h.part&&h.part.start||c&&c.start;if(c.timeline===e&&void 0!==f){var l=Math.abs(r-f);if(null!==o&&o<l)break;(!s||null===o||o>=l)&&(o=l,s={time:f,segmentIndex:h.segmentIndex,partIndex:h.partIndex})}}return s}},{name:"Discontinuity",run:function(t,i,n,e,r){var s=null;if(r=r||0,i.discontinuityStarts&&i.discontinuityStarts.length)for(var o=null,a=0;a<i.discontinuityStarts.length;a++){var u=i.discontinuityStarts[a],h=t.discontinuities[i.discontinuitySequence+a+1];if(h){var c=Math.abs(r-h.time);if(null!==o&&o<c)break;(!s||null===o||o>=c)&&(o=c,s={time:h.time,segmentIndex:u,partIndex:null})}}return s}},{name:"Playlist",run:function(t,i){return i.syncInfo?{time:i.syncInfo.time,segmentIndex:i.syncInfo.mediaSequence-i.mediaSequence,partIndex:null}:null}}],zc=function(t){function i(){var i;return(i=t.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=Du("SyncController"),i}X(i,t);var n=i.prototype;return n.getSyncPoint=function(t,i,n,e){var r=this.runStrategies_(t,i,n,e);return r.length?this.selectSyncPoint_(r,{key:"time",value:e}):null},n.getExpiredTime=function(t,i){if(!t||!t.segments)return null;var n=this.runStrategies_(t,i,t.discontinuitySequence,0);if(!n.length)return null;var e=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return e.segmentIndex>0&&(e.time*=-1),Math.abs(e.time+Hu({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.segmentIndex,endIndex:0}))},n.runStrategies_=function(t,i,n,e){for(var r=[],s=0;s<Fc.length;s++){var o=Fc[s],a=o.run(this,t,i,n,e);a&&(a.strategy=o.name,r.push({strategy:o.name,syncPoint:a}))}return r},n.selectSyncPoint_=function(t,i){for(var n=t[0].syncPoint,e=Math.abs(t[0].syncPoint[i.key]-i.value),r=t[0].strategy,s=1;s<t.length;s++){var o=Math.abs(t[s].syncPoint[i.key]-i.value);o<e&&(e=o,n=t[s].syncPoint,r=t[s].strategy)}return this.logger_("syncPoint for ["+i.key+": "+i.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(t,i){for(var n=i.mediaSequence-t.mediaSequence-1;n>=0;n--){var e=t.segments[n];if(e&&void 0!==e.start){i.syncInfo={mediaSequence:t.mediaSequence+n,time:e.start},this.logger_("playlist refresh sync: [time:"+i.syncInfo.time+", mediaSequence: "+i.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var i=t.segments[0],n=i.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[i.timeline]=-n}},n.saveSegmentTimingInfo=function(t){var i=t.segmentInfo,n=t.shouldSaveTimelineMapping,e=this.calculateSegmentTimeMapping_(i,i.timingInfo,n),r=i.segment;e&&(this.saveDiscontinuitySyncInfo_(i),i.playlist.syncInfo||(i.playlist.syncInfo={mediaSequence:i.playlist.mediaSequence+i.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&n&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},n.timestampOffsetForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].time},n.mappingForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping},n.calculateSegmentTimeMapping_=function(t,i,n){var e,r,s=t.segment,o=t.part,a=this.timelines[t.timeline];if("number"==typeof t.timestampOffset)a={time:t.startOfSegment,mapping:t.startOfSegment-i.start},n&&(this.timelines[t.timeline]=a,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+a.time+"] [mapping: "+a.mapping+"]")),e=t.startOfSegment,r=i.end+a.mapping;else{if(!a)return!1;e=i.start+a.mapping,r=i.end+a.mapping}return o&&(o.start=e,o.end=r),(!s.start||e<s.start)&&(s.start=e),s.end=r,!0},n.saveDiscontinuitySyncInfo_=function(t){var i=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(i.discontinuityStarts&&i.discontinuityStarts.length)for(var e=0;e<i.discontinuityStarts.length;e++){var r=i.discontinuityStarts[e],s=i.discontinuitySequence+e+1,o=r-t.mediaIndex,a=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>a){var u;u=o<0?n.start-Hu({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:t.mediaIndex,endIndex:r}):n.end+Hu({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:t.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:u,accuracy:a}}}},n.dispose=function(){this.trigger("dispose"),this.off()},i}(Tu.EventTarget),_c=function(t){function i(){var i;return(i=t.call(this)||this).pendingTimelineChanges_={},i.lastTimelineChanges_={},i}X(i,t);var n=i.prototype;return n.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(t){var i=t.type,n=t.from,e=t.to;return"number"==typeof n&&"number"==typeof e&&(this.pendingTimelineChanges_[i]={type:i,from:n,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[i]},n.lastTimelineChange=function(t){var i=t.type,n=t.from,e=t.to;return"number"==typeof n&&"number"==typeof e&&(this.lastTimelineChanges_[i]={type:i,from:n,to:e},delete this.pendingTimelineChanges_[i],this.trigger("timelinechange")),this.lastTimelineChanges_[i]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},i}(Tu.EventTarget),Vc=Ch(Uh(Ph((function(){function t(t,i,n){return t(n={path:i,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var i=t((function(t){function i(t,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}t.exports=function(t,n,e){return n&&i(t.prototype,n),e&&i(t,e),t},t.exports.default=t.exports,t.exports.__esModule=!0})),n=t((function(t){function i(n,e){return t.exports=i=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},t.exports.default=t.exports,t.exports.__esModule=!0,i(n,e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0})),e=t((function(t){t.exports=function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,n(t,i)},t.exports.default=t.exports,t.exports.__esModule=!0})),r=function(){function t(){this.listeners={}}var i=t.prototype;return i.on=function(t,i){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(i)},i.off=function(t,i){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(i);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(n,1),n>-1},i.trigger=function(t){var i=this.listeners[t];if(i)if(2===arguments.length)for(var n=i.length,e=0;e<n;++e)i[e].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=i.length,o=0;o<s;++o)i[o].apply(this,r)},i.dispose=function(){this.listeners={}},i.pipe=function(t){this.on("data",(function(i){t.push(i)}))},t}(),s=null,o=function(){function t(t){var i,n,e;s||(s=function(){var t,i,n,e,r,s,o,a,u=[[[],[],[],[],[]],[[],[],[],[],[]]],h=u[0],c=u[1],f=h[4],l=c[4],d=[],v=[];for(t=0;t<256;t++)v[(d[t]=t<<1^283*(t>>7))^t]=t;for(i=n=0;!f[i];i^=e||1,n=v[n]||1)for(f[i]=s=(s=n^n<<1^n<<2^n<<3^n<<4)>>8^255&s^99,l[s]=i,a=16843009*d[r=d[e=d[i]]]^65537*r^257*e^16843008*i,o=257*d[s]^16843008*s,t=0;t<4;t++)h[t][i]=o=o<<24^o>>>8,c[t][s]=a=a<<24^a>>>8;for(t=0;t<5;t++)h[t]=h[t].slice(0),c[t]=c[t].slice(0);return u}()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var r=this._tables[0][4],o=this._tables[1],a=t.length,u=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");var h=t.slice(0),c=[];for(this._key=[h,c],i=a;i<4*a+28;i++)e=h[i-1],(i%a==0||8===a&&i%a==4)&&(e=r[e>>>24]<<24^r[e>>16&255]<<16^r[e>>8&255]<<8^r[255&e],i%a==0&&(e=e<<8^e>>>24^u<<24,u=u<<1^283*(u>>7))),h[i]=h[i-a]^e;for(n=0;i;n++,i--)e=h[3&n?i:i-4],c[n]=i<=4||n<4?e:o[0][r[e>>>24]]^o[1][r[e>>16&255]]^o[2][r[e>>8&255]]^o[3][r[255&e]]}return t.prototype.decrypt=function(t,i,n,e,r,s){var o,a,u,h,c=this._key[1],f=t^c[0],l=e^c[1],d=n^c[2],v=i^c[3],p=c.length/4-2,m=4,g=this._tables[1],b=g[0],y=g[1],j=g[2],w=g[3],x=g[4];for(h=0;h<p;h++)o=b[f>>>24]^y[l>>16&255]^j[d>>8&255]^w[255&v]^c[m],a=b[l>>>24]^y[d>>16&255]^j[v>>8&255]^w[255&f]^c[m+1],u=b[d>>>24]^y[v>>16&255]^j[f>>8&255]^w[255&l]^c[m+2],v=b[v>>>24]^y[f>>16&255]^j[l>>8&255]^w[255&d]^c[m+3],m+=4,f=o,l=a,d=u;for(h=0;h<4;h++)r[(3&-h)+s]=x[f>>>24]<<24^x[l>>16&255]<<16^x[d>>8&255]<<8^x[255&v]^c[m++],o=f,f=l,l=d,d=v,v=o},t}(),a=function(t){function i(){var i;return(i=t.call(this,r)||this).jobs=[],i.delay=1,i.timeout_=null,i}e(i,t);var n=i.prototype;return n.processJob_=function(){this.jobs.shift()(),this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null},n.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},i}(r),u=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},h=function(){function t(i,n,e,r){var s=t.STEP,o=new Int32Array(i.buffer),h=new Uint8Array(i.byteLength),c=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(o.subarray(c,c+s),n,e,h)),c=s;c<o.length;c+=s)e=new Uint32Array([u(o[c-4]),u(o[c-3]),u(o[c-2]),u(o[c-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(c,c+s),n,e,h));this.asyncStream_.push((function(){
16
16
  /*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
17
17
  var t;
18
- /*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */r(null,(t=h).subarray(0,t.byteLength-t[t.byteLength-1]))}))}return t.prototype.decryptChunk_=function(t,i,n,e){return function(){var r=function(t,i,n){var e,r,s,a,h,c,f,l,d,v=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),p=new o(Array.prototype.slice.call(i)),m=new Uint8Array(t.byteLength),g=new Int32Array(m.buffer);for(e=n[0],r=n[1],s=n[2],a=n[3],d=0;d<v.length;d+=4)h=u(v[d]),c=u(v[d+1]),f=u(v[d+2]),l=u(v[d+3]),p.decrypt(h,c,f,l,g,d),g[d]=u(g[d]^e),g[d+1]=u(g[d+1]^r),g[d+2]=u(g[d+2]^s),g[d+3]=u(g[d+3]^a),e=h,r=c,s=f,a=l;return m}(t,i,n);e.set(r,t.byteOffset)}},i(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();self.onmessage=function(t){var i=t.data,n=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength),e=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4),r=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new h(n,e,r,(function(t,n){var e,r;self.postMessage((e={source:i.source,decrypted:n},r={},Object.keys(e).forEach((function(t){var i=e[t];r[t]=ArrayBuffer.isView(i)?{bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:i})),r),[n.buffer])}))}})))),Hc=function(t){var i=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(i="main-desc"),i},qc=function(t,i){t.abort(),t.pause(),i&&i.activePlaylistLoader&&(i.activePlaylistLoader.pause(),i.activePlaylistLoader=null)},Xc=function(t,i){i.activePlaylistLoader=t,t.load()},Wc={AUDIO:function(t,i){return function(){var n=i.mediaTypes[t],e=i.blacklistCurrentPlaylist;qc(i.segmentLoaders[t],n);var r=n.activeTrack(),s=n.activeGroup(),o=(s.filter((function(t){return t.default}))[0]||s[0]).id,a=n.tracks[o];if(r!==a){for(var u in Tu.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===a;n.onTrackChanged()}else e({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,i){return function(){var n=i.segmentLoaders[t],e=i.mediaTypes[t];Tu.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),qc(n,e);var r=e.activeTrack();r&&(r.mode="disabled"),e.onTrackChanged()}}},Gc={AUDIO:function(t,i,n){if(i){var e=n.tech,r=n.requestOptions,s=n.segmentLoaders[t];i.on("loadedmetadata",(function(){var t=i.media();s.playlist(t,r),(!e.paused()||t.endList&&"none"!==e.preload())&&s.load()})),i.on("loadedplaylist",(function(){s.playlist(i.media(),r),e.paused()||s.load()})),i.on("error",Wc[t](t,n))}},SUBTITLES:function(t,i,n){var e=n.tech,r=n.requestOptions,s=n.segmentLoaders[t],o=n.mediaTypes[t];i.on("loadedmetadata",(function(){var t=i.media();s.playlist(t,r),s.track(o.activeTrack()),(!e.paused()||t.endList&&"none"!==e.preload())&&s.load()})),i.on("loadedplaylist",(function(){s.playlist(i.media(),r),e.paused()||s.load()})),i.on("error",Wc[t](t,n))}},Yc={AUDIO:function(t,i){var n=i.vhs,e=i.sourceType,r=i.segmentLoaders[t],s=i.requestOptions,o=i.master.mediaGroups,a=i.mediaTypes[t],u=a.groups,h=a.tracks,c=a.logger_,f=i.masterPlaylistLoader,l=Zu(f.master);for(var d in o[t]&&0!==Object.keys(o[t]).length||(o[t]={main:{default:{default:!0}}}),o[t])for(var v in u[d]||(u[d]=[]),o[t][d]){var p=o[t][d][v],m=void 0;if(l?(c("AUDIO group '"+d+"' label '"+v+"' is a master playlist"),p.isMasterPlaylist=!0,m=null):m="vhs-json"===e&&p.playlists?new lh(p.playlists[0],n,s):p.resolvedUri?new lh(p.resolvedUri,n,s):p.playlists&&"dash"===e?new Nh(p.playlists[0],n,s,f):null,p=Tu.mergeOptions({id:v,playlistLoader:m},p),Gc[t](t,p.playlistLoader,i),u[d].push(p),void 0===h[v]){var g=new Tu.AudioTrack({id:v,kind:Hc(p),enabled:!1,language:p.language,default:p.default,label:v});h[v]=g}}r.on("error",Wc[t](t,i))},SUBTITLES:function(t,i){var n=i.tech,e=i.vhs,r=i.sourceType,s=i.segmentLoaders[t],o=i.requestOptions,a=i.master.mediaGroups,u=i.mediaTypes[t],h=u.groups,c=u.tracks,f=i.masterPlaylistLoader;for(var l in a[t])for(var d in h[l]||(h[l]=[]),a[t][l])if(!a[t][l][d].forced){var v=a[t][l][d],p=void 0;if("hls"===r)p=new lh(v.resolvedUri,e,o);else if("dash"===r){if(!v.playlists.filter((function(t){return t.excludeUntil!==1/0})).length)return;p=new Nh(v.playlists[0],e,o,f)}else"vhs-json"===r&&(p=new lh(v.playlists?v.playlists[0]:v.resolvedUri,e,o));if(v=Tu.mergeOptions({id:d,playlistLoader:p},v),Gc[t](t,v.playlistLoader,i),h[l].push(v),void 0===c[d]){var m=n.addRemoteTextTrack({id:d,kind:"subtitles",default:v.default&&v.autoselect,language:v.language,label:d},!1).track;c[d]=m}}s.on("error",Wc[t](t,i))},"CLOSED-CAPTIONS":function(t,i){var n=i.tech,e=i.master.mediaGroups,r=i.mediaTypes[t],s=r.groups,o=r.tracks;for(var a in e[t])for(var u in s[a]||(s[a]=[]),e[t][a]){var h=e[t][a][u];if(/^(?:CC|SERVICE)/.test(h.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},f={label:u,language:h.language,instreamId:h.instreamId,default:h.default&&h.autoselect};if(c[f.instreamId]&&(f=Tu.mergeOptions(f,c[f.instreamId])),void 0===f.default&&delete f.default,s[a].push(Tu.mergeOptions({id:u},h)),void 0===o[u]){var l=n.addRemoteTextTrack({id:f.instreamId,kind:"captions",default:f.default,language:f.language,label:f.label},!1).track;o[u]=l}}}}},Jc=function t(i,n){for(var e=0;e<i.length;e++){if(Qu(n,i[e]))return!0;if(i[e].playlists&&t(i[e].playlists,n))return!0}return!1},Qc={AUDIO:function(t,i){return function(){var n=i.mediaTypes[t].tracks;for(var e in n)if(n[e].enabled)return n[e];return null}},SUBTITLES:function(t,i){return function(){var n=i.mediaTypes[t].tracks;for(var e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}}},Kc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Zc=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},$c=function(t){function i(i){var n;n=t.call(this)||this;var e=i.src,r=i.handleManifestRedirects,s=i.withCredentials,o=i.tech,a=i.bandwidth,u=i.externVhs,h=i.useCueTags,c=i.blacklistDuration,f=i.enableLowInitialPlaylist,l=i.sourceType,d=i.cacheEncryptionKeys,v=i.experimentalBufferBasedABR;if(!e)throw new Error("A non-empty playlist URL or JSON manifest string is required");var p=i.maxPlaylistRetries;null==p&&(p=1/0),gc=u,n.experimentalBufferBasedABR=Boolean(v),n.withCredentials=s,n.tech_=o,n.vhs_=o.vhs,n.sourceType_=l,n.useCueTags_=h,n.blacklistDuration=c,n.maxPlaylistRetries=p,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:p,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(i){t[i]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:mc,activeTrack:mc,getActiveGroup:mc,onGroupChanged:mc,onTrackChanged:mc,lastTrack_:null,logger_:Du("MediaGroups["+i+"]")}})),t}(),n.mediaSource=new B.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(H(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(H(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(H(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Tu.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new zc(i),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Vc,n.sourceUpdater_=new Cc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new _c;var m={vhs:n.vhs_,parse708captions:i.parse708captions,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:a,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_};n.masterPlaylistLoader_="dash"===n.sourceType_?new Nh(e,n.vhs_,n.requestOptions_):new lh(e,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new pc(Tu.mergeOptions(m,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),i),n.audioSegmentLoader_=new pc(Tu.mergeOptions(m,{loaderType:"audio"}),i),n.subtitleSegmentLoader_=new Lc(Tu.mergeOptions(m,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),i),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),Kc.forEach((function(t){n[t+"_"]=Zc.bind(H(n),t)})),n.logger_=Du("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var g="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(g,(function(){var t=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-t,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}X(i,t);var n=i.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),i=this.audioAppendsToLoadedData_();return-1===t||-1===i?-1:t+i},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var t=this.selectPlaylist();this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,"abr")},n.switchMedia_=function(t,i,n){var e=this.media(),r=e&&(e.id||e.uri),s=t.id||t.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+i),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+i})),this.masterPlaylistLoader_.media(t,n)},n.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=B.setInterval((function(){return t.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(B.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var t=this.master();if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return t&&t.playlists||[];var i,n=t.mediaGroups.AUDIO,e=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var r=n.main||e.length&&n[e[0]];for(var s in r)if(r[s].default){i={label:s};break}}if(!i)return[];var o=[];for(var a in n)if(n[a][i.label]){var u=n[a][i.label];u.playlists?o.push.apply(o,u.playlists):o.push(u)}return o},n.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var i=t.masterPlaylistLoader_.media(),n=1.5*i.targetDuration*1e3;t.requestOptions_.timeout=Ju(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?0:n,i.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(i,t.requestOptions_),t.mainSegmentLoader_.load()),function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(i){Yc[i](i,t)}));var i=t.mediaTypes,n=t.masterPlaylistLoader,e=t.tech,r=t.vhs,s=t.segmentLoaders,o=s.AUDIO,a=s.main;["AUDIO","SUBTITLES"].forEach((function(n){i[n].activeGroup=function(t,i){return function(n){var e=i.mediaTypes[t].groups,r=i.masterPlaylistLoader.media();if(!r)return null;var s=null;r.attributes[t]&&(s=e[r.attributes[t]]);var o=Object.keys(e);if(!s)if("AUDIO"===t&&o.length>1&&Zu(i.master))for(var a=0;a<o.length;a++){var u=e[o[a]];if(Jc(u,r)){s=u;break}}else e.main?s=e.main:1===o.length&&(s=e[o[0]]);return void 0===n?s:null!==n&&s&&s.filter((function(t){return t.id===n.id}))[0]||null}}(n,t),i[n].activeTrack=Qc[n](n,t),i[n].onGroupChanged=function(t,i){return function(){var n=i.segmentLoaders,e=n[t],r=n.main,s=i.mediaTypes[t],o=s.activeTrack(),a=s.getActiveGroup(),u=s.activePlaylistLoader,h=s.lastGroup_;a&&h&&a.id===h.id||(s.lastGroup_=a,s.lastTrack_=o,qc(e,s),a&&!a.isMasterPlaylist&&(a.playlistLoader?(e.resyncLoader(),Xc(a.playlistLoader,s)):u&&r.resetEverything()))}}(n,t),i[n].onGroupChanging=function(t,i){return function(){var n=i.segmentLoaders[t];i.mediaTypes[t].lastGroup_=null,n.abort(),n.pause()}}(n,t),i[n].onTrackChanged=function(t,i){return function(){var n=i.masterPlaylistLoader,e=i.segmentLoaders,r=e[t],s=e.main,o=i.mediaTypes[t],a=o.activeTrack(),u=o.getActiveGroup(),h=o.activePlaylistLoader,c=o.lastTrack_;if((!c||!a||c.id!==a.id)&&(o.lastGroup_=u,o.lastTrack_=a,qc(r,o),u)){if(u.isMasterPlaylist){if(!a||!c||a.id===c.id)return;var f=i.vhs.masterPlaylistController_,l=f.selectPlaylist();if(f.media()===l)return;return o.logger_("track change. Switching master audio from "+c.id+" to "+a.id),n.pause(),s.resetEverything(),void f.fastQualityChange_(l)}if("AUDIO"===t){if(!u.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}h!==u.playlistLoader?(r.track&&r.track(a),r.resetEverything(),Xc(u.playlistLoader,o)):Xc(u.playlistLoader,o)}}}(n,t),i[n].getActiveGroup=function(t,i){var n=i.mediaTypes;return function(){var i=n[t].activeTrack();return i?n[t].activeGroup(i):null}}(n,t)}));var u=i.AUDIO.activeGroup();if(u){var h=(u.filter((function(t){return t.default}))[0]||u[0]).id;i.AUDIO.tracks[h].enabled=!0,i.AUDIO.onGroupChanged(),i.AUDIO.onTrackChanged(),i.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),o.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return i[t].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return i[t].onGroupChanging()}))}));var c=function(){i.AUDIO.onTrackChanged(),e.trigger({type:"usage",name:"vhs-audio-change"}),e.trigger({type:"usage",name:"hls-audio-change"})};for(var f in e.audioTracks().addEventListener("change",c),e.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged),r.on("dispose",(function(){e.audioTracks().removeEventListener("change",c),e.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)})),e.clearTracks("audio"),i.AUDIO.tracks)e.audioTracks().addTrack(i.AUDIO.tracks[f])}({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),i),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var i=t.masterPlaylistLoader_.media();if(!i){var n;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),!n||!t.shouldSwitchToMedia_(n))return;if(t.initialMedia_=n,t.switchMedia_(t.initialMedia_,"initial"),"vhs-json"!==t.sourceType_||!t.initialMedia_.segments)return;i=t.initialMedia_}t.handleUpdatedMediaPlaylist(i)})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var i=t.masterPlaylistLoader_.media(),n=1.5*i.targetDuration*1e3;t.requestOptions_.timeout=Ju(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?0:n,t.mainSegmentLoader_.playlist(i,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var i=t.masterPlaylistLoader_.media();"playlist-unchanged"!==i.lastExcludeReason_&&t.stuckAtPlaylistEnd_(i)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(t,i){var n=t.mediaGroups||{},e=!0,r=Object.keys(n.AUDIO);for(var s in n.AUDIO)for(var o in n.AUDIO[s])n.AUDIO[s][o].uri||(e=!1);e&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),gc.Playlist.isAes(i)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(t){var i=this.masterPlaylistLoader_.media(),n=this.tech_.buffered();return function(t){var i=t.currentPlaylist,n=t.nextPlaylist,e=t.forwardBuffer,r=t.bufferLowWaterLine,s=t.bufferHighWaterLine,o=t.duration,a=t.experimentalBufferBasedABR,u=t.log;if(!n)return Tu.log.warn("We received no playlist to switch to. Please check your stream."),!1;var h="allowing switch "+(i&&i.id||"null")+" -> "+n.id;if(!i||!i.endList)return u(h+" as current playlist "+(i?"is live":"is not set")),!0;if(n.id===i.id)return!1;var c=a?Rh.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Rh.MAX_BUFFER_LOW_WATER_LINE;if(o<c)return u(h+" as duration < max low water line ("+o+" < "+c+")"),!0;var f=n.attributes.BANDWIDTH,l=i.attributes.BANDWIDTH;if(f<l&&(!a||e<s)){var d=h+" as next bandwidth < current bandwidth ("+f+" < "+l+")";return a&&(d+=" and forwardBuffer < bufferHighWaterLine ("+e+" < "+s+")"),u(d),!0}if((!a||f>l)&&e>=r){var v=h+" as forwardBuffer >= bufferLowWaterLine ("+e+" >= "+r+")";return a&&(v+=" and next bandwidth > current bandwidth ("+f+" > "+l+")"),u(v),!0}return u("not "+h+" as no switching criteria met"),!1}({currentPlaylist:i,nextPlaylist:t,forwardBuffer:n.length?n.end(n.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var i=t.selectPlaylist();t.shouldSwitchToMedia_(i)&&t.switchMedia_(i,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var i=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var i=t.getCodecsOrExclude_();i&&t.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",i),this.audioSegmentLoader_.on("trackinfo",i),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},n.fastQualityChange_=function(t){var i=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){i.tech_.setCurrentTime(Tu.browser.IE_VERSION||Tu.browser.IS_EDGE?i.tech_.currentTime()+.04:i.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},n.setupFirstPlay=function(){var t=this,i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_)return!1;if(!i.endList){var n=this.seekable();if(!n.length)return!1;if(Tu.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,(function(){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var i=this.duration();t[t.length-1].endTime=isNaN(i)||Math.abs(i)===1/0?Number.MAX_VALUE:i}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=!this.mainSegmentLoader_.currentMediaInfo_||this.mainSegmentLoader_.currentMediaInfo_.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return!1;var n=gc.Playlist.playlistEnd(t,i),e=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-e<=.1;var s=r.end(r.length-1);return s-e<=.1&&n-s<=.1},n.blacklistCurrentPlaylist=function(t,i){void 0===t&&(t={});var n=t.playlist||this.masterPlaylistLoader_.media();if(i=i||t.blacklistDuration||this.blacklistDuration,!n)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var e,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(Gu),o=1===s.length&&s[0]===n;if(1===r.length&&i!==1/0)return Tu.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var a=!1;r.forEach((function(t){if(t!==n){var i=t.excludeUntil;void 0!==i&&i!==1/0&&(a=!0,delete t.excludeUntil)}})),a&&(Tu.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}e=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,n.excludeUntil=e,t.reason&&(n.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var u=this.selectPlaylist();if(!u)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(t.internal?this.logger_:Tu.log.warn)((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+(t.message?" "+t.message:"")+" Switching to playlist "+u.id+"."),u.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),u.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var h=u.targetDuration/2*1e3||5e3,c="number"==typeof u.lastRequest&&Date.now()-u.lastRequest<=h;return this.switchMedia_(u,"exclude",o||c)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(t,i){var n=this,e=[],r="all"===t;(r||"main"===t)&&e.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===t)&&s.push("AUDIO"),(r||"subtitle"===t)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((function(t){var i=n.mediaTypes_[t]&&n.mediaTypes_[t].activePlaylistLoader;i&&e.push(i)})),["main","audio","subtitle"].forEach((function(i){var r=n[i+"SegmentLoader_"];!r||t!==i&&"all"!==t||e.push(r)})),e.forEach((function(t){return i.forEach((function(i){"function"==typeof t[i]&&t[i]()}))}))},n.setCurrentTime=function(t){var i=Nu(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?i&&i.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:gc.Playlist.duration(t):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var n=this.syncController_.getExpiredTime(i,this.duration());if(null!==n){var e=this.masterPlaylistLoader_.master,r=gc.Playlist.seekable(i,n,gc.Playlist.liveEdgeDelay(e,i));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(i,this.duration())))return;if(0===(t=gc.Playlist.seekable(i,n,gc.Playlist.liveEdgeDelay(e,i))).length)return}var s,o;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),o=this.seekable_.start(0)),this.seekable_=t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?r:Tu.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+Mu(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var i=this.seekable();if(!i.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1))&&this.sourceUpdater_.setDuration(i.end(i.length-1))}else{var n=this.tech_.buffered(),e=gc.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(e=Math.max(e,n.end(n.length-1))),this.mediaSource.duration!==e&&this.sourceUpdater_.setDuration(e)}},n.dispose=function(){var t=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(i){var n=t.mediaTypes_[i].groups;for(var e in n)n[e].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){return!(!this.mainSegmentLoader_.currentMediaInfo_||this.mediaTypes_.AUDIO.activePlaylistLoader&&!this.audioSegmentLoader_.currentMediaInfo_)},n.getCodecsOrExclude_=function(){var t=this,i={main:this.mainSegmentLoader_.currentMediaInfo_||{},audio:this.audioSegmentLoader_.currentMediaInfo_||{}};i.video=i.main;var n=ic(this.master(),this.media()),e={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(e.video=n.video||i.main.videoCodec||"avc1.4d400d"),i.main.isMuxed&&(e.video+=","+(n.audio||i.main.audioCodec||"mp4a.40.2")),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||r)&&(e.audio=n.audio||i.main.audioCodec||i.audio.audioCodec||"mp4a.40.2",i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4),e.audio||e.video){var s,o={};if(["video","audio"].forEach((function(t){if(e.hasOwnProperty(t)&&(r=e[t],!(i[t].isFmp4?Kt(r):Zt(r)))){var n=i[t].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(e[t]),"audio"===t&&(s=n)}var r})),r&&s&&this.media().attributes.AUDIO){var a=this.media().attributes.AUDIO;this.master().playlists.forEach((function(i){(i.attributes&&i.attributes.AUDIO)===a&&i!==t.media()&&(i.excludeUntil=1/0)})),this.logger_("excluding audio group "+a+" as "+s+' does not support codec(s): "'+e.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach((function(i){var n=(Yt(t.sourceUpdater_.codecs[i]||"")[0]||{}).type,r=(Yt(e[i]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+t.sourceUpdater_.codecs[i]+'" -> "'+e[i]+'"')})),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return e}var h=Object.keys(o).reduce((function(t,i){return t&&(t+=", "),t+(i+' does not support codec(s): "')+o[i].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:h,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var i=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)}}},n.excludeUnsupportedVariants_=function(){var t=this,i=this.master().playlists,n=[];Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)){n.push(r.id);var s=ic(t.master,r),o=[];!s.audio||Zt(s.audio)||Kt(s.audio)||o.push("audio codec "+s.audio),!s.video||Zt(s.video)||Kt(s.video)||o.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&o.push("text codec "+s.text),o.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(t){var i=this,n=[],e=this.master().playlists,r=$h(Yt(t)),s=tc(r),o=r.video&&Yt(r.video)[0]||null,a=r.audio&&Yt(r.audio)[0]||null;Object.keys(e).forEach((function(t){var r=e[t];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],h=ic(i.masterPlaylistLoader_.master,r),c=tc(h);if(h.audio||h.video){if(c!==s&&u.push('codec count "'+c+'" !== "'+s+'"'),!i.sourceUpdater_.canChangeType()){var f=h.video&&Yt(h.video)[0]||null,l=h.audio&&Yt(h.audio)[0]||null;f&&o&&f.type.toLowerCase()!==o.type.toLowerCase()&&u.push('video codec "'+f.type+'" !== "'+o.type+'"'),l&&a&&l.type.toLowerCase()!==a.type.toLowerCase()&&u.push('audio codec "'+l.type+'" !== "'+a.type+'"')}u.length&&(r.excludeUntil=1/0,i.logger_("blacklisting "+r.id+": "+u.join(" && ")))}}}))},n.updateAdCues_=function(t){var i=0,n=this.seekable();n.length&&(i=n.start(0)),function(t,i,n){if(void 0===n&&(n=0),t.segments)for(var e,r=n,s=0;s<t.segments.length;s++){var o=t.segments[s];if(e||(e=Bc(i,r+o.duration/2)),e){if("cueIn"in o){e.endTime=r,e.adEndTime=r,r+=o.duration,e=null;continue}if(r<e.endTime){r+=o.duration;continue}e.endTime+=o.duration}else if("cueOut"in o&&((e=new B.VTTCue(r,r+o.duration,o.cueOut)).adStartTime=r,e.adEndTime=r+parseFloat(o.cueOut),i.addCue(e)),"cueOutCont"in o){var a=o.cueOutCont.split("/").map(parseFloat),u=a[0],h=a[1];(e=new B.VTTCue(r,r+o.duration,"")).adStartTime=r-u,e.adEndTime=e.adStartTime+h,i.addCue(e)}r+=o.duration}}(t,this.cueTagsTrack_,i)},n.goalBufferLength=function(){var t=this.tech_.currentTime(),i=Rh.GOAL_BUFFER_LENGTH,n=Rh.GOAL_BUFFER_LENGTH_RATE,e=Math.max(i,Rh.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+t*n,e)},n.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),i=Rh.BUFFER_LOW_WATER_LINE,n=Rh.BUFFER_LOW_WATER_LINE_RATE,e=Math.max(i,Rh.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(i,Rh.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+t*n,this.experimentalBufferBasedABR?r:e)},n.bufferHighWaterLine=function(){return Rh.BUFFER_HIGH_WATER_LINE},i}(Tu.EventTarget),tf=function(t,i,n){var e,r,s,o=t.masterPlaylistController_,a=o[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(o);if(i.attributes){var u=i.attributes.RESOLUTION;this.width=u&&u.width,this.height=u&&u.height,this.bandwidth=i.attributes.BANDWIDTH}this.codecs=ic(o.master(),i),this.playlist=i,this.id=n,this.enabled=(e=t.playlists,r=i.id,s=a,function(t){var i=e.master.playlists[r],n=Wu(i),o=Gu(i);return void 0===t?o:(t?delete i.disabled:i.disabled=!0,t===o||n||(s(),e.trigger(t?"renditionenabled":"renditiondisabled")),t)})},nf=["seeking","seeked","pause","playing","error"],ef=function(){function t(t){var i=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Du("PlaybackWatcher"),this.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},e=function(){return i.monitorCurrentTime_()},r=function(){return i.techWaiting_()},s=function(){return i.cancelTimer_()},o=function(){return i.fixesBadSeeks_()},a=this.masterPlaylistController_,u=["main","subtitle","audio"],h={};u.forEach((function(t){h[t]={reset:function(){return i.resetSegmentDownloads_(t)},updateend:function(){return i.checkSegmentDownloads_(t)}},a[t+"SegmentLoader_"].on("appendsdone",h[t].updateend),a[t+"SegmentLoader_"].on("playlistupdate",h[t].reset),i.tech_.on(["seeked","seeking"],h[t].reset)})),this.tech_.on("seekablechanged",o),this.tech_.on("waiting",r),this.tech_.on(nf,s),this.tech_.on("canplay",e),this.tech_.one("play",n),this.dispose=function(){i.logger_("dispose"),i.tech_.off("seekablechanged",o),i.tech_.off("waiting",r),i.tech_.off(nf,s),i.tech_.off("canplay",e),i.tech_.off("play",n),u.forEach((function(t){a[t+"SegmentLoader_"].off("appendsdone",h[t].updateend),a[t+"SegmentLoader_"].off("playlistupdate",h[t].reset),i.tech_.off(["seeked","seeking"],h[t].reset)})),i.checkCurrentTimeTimeout_&&B.clearTimeout(i.checkCurrentTimeTimeout_),i.cancelTimer_()}}var i=t.prototype;return i.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&B.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=B.setTimeout(this.monitorCurrentTime_.bind(this),250)},i.resetSegmentDownloads_=function(t){var i=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=i.buffered_()},i.checkSegmentDownloads_=function(t){var i=this.masterPlaylistController_,n=i[t+"SegmentLoader_"],e=n.buffered_(),r=function(t,i){if(t===i)return!1;if(!t&&i||!i&&t)return!0;if(t.length!==i.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==i.start(n)||t.end(n)!==i.end(n))return!0;return!1}(this[t+"Buffered_"],e);this[t+"Buffered_"]=e,r?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Cu(e)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&i.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},i.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),i=this.tech_.buffered();if(this.lastRecordedTime===t&&(!i.length||t+.1>=i.end(i.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},i.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},i.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,i=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(i,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=i.end(i.length-1)),this.beforeSeekableWindow_(i,n)){var e=i.start(0);t=e+(e===i.end(0)?0:.1)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Mu(i)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;var r=this.tech_.buffered();return!!function(t){var i=t.buffered,n=t.targetDuration,e=t.currentTime;return!(!i.length||i.end(0)-i.start(0)<2*n||e>i.start(0)||!(i.start(0)-e<n))}({buffered:r,targetDuration:this.media().targetDuration,currentTime:n})&&(t=r.start(0)+.1,this.logger_("Buffered region starts ("+r.start(0)+") just beyond seek point ("+n+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},i.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),i=this.tech_.buffered(),n=Nu(i,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},i.techWaiting_=function(){var t=this.seekable(),i=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,i)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+i+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:i}))return this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=Ru(r,i);if(s.length>0){var o=s.start(0)-i;return this.logger_("Stopped at "+i+", setting timer for "+o+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,i),!0}return!1},i.afterSeekableWindow_=function(t,i,n,e){if(void 0===e&&(e=!1),!t.length)return!1;var r=t.end(t.length-1)+.1;return!n.endList&&e&&(r=t.end(t.length-1)+3*n.targetDuration),i>r},i.beforeSeekableWindow_=function(t,i){return!!(t.length&&t.start(0)>0&&i<t.start(0)-this.liveRangeSafeTimeDelta)},i.videoUnderflow_=function(t){var i=t.videoBuffered,n=t.audioBuffered,e=t.currentTime;if(i){var r;if(i.length&&n.length){var s=Nu(i,e-3),o=Nu(i,e),a=Nu(n,e);a.length&&!o.length&&s.length&&(r={start:s.end(0),end:a.end(0)})}else Ru(i,e).length||(r=this.gapFromVideoUnderflow_(i,e));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+e),!0)}},i.skipTheGap_=function(t){var i=this.tech_.buffered(),n=this.tech_.currentTime(),e=Ru(i,n);this.cancelTimer_(),0!==e.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",e.start(0)),this.tech_.setCurrentTime(e.start(0)+.03333333333333333),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},i.gapFromVideoUnderflow_=function(t,i){for(var n=function(t){if(t.length<2)return Tu.createTimeRanges();for(var i=[],n=1;n<t.length;n++){var e=t.end(n-1),r=t.start(n);i.push([e,r])}return Tu.createTimeRanges(i)}(t),e=0;e<n.length;e++){var r=n.start(e),s=n.end(e);if(i-r<4&&i-r>2)return{start:r,end:s}}return null},t}(),rf={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},sf=function t(i,n){var e=0,r=0,s=Tu.mergeOptions(rf,n);i.ready((function(){i.trigger({type:"usage",name:"vhs-error-reload-initialized"}),i.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&i.currentTime(r)},a=function(t){null!=t&&(r=i.duration()!==1/0&&i.currentTime()||0,i.one("loadedmetadata",o),i.src(t),i.trigger({type:"usage",name:"vhs-error-reload"}),i.trigger({type:"usage",name:"hls-error-reload"}),i.play())},u=function(){return Date.now()-e<1e3*s.errorInterval?(i.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void i.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(e=Date.now(),s.getSource.call(i,a)):void Tu.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},h=function t(){i.off("loadedmetadata",o),i.off("error",u),i.off("dispose",t)};i.on("error",u),i.on("dispose",h),i.reloadSourceOnError=function(n){h(),t(i,n)}},of=function(t){sf(this,t)},af={PlaylistLoader:lh,Playlist:$u,utils:Ah,STANDARD_PLAYLIST_SELECTOR:uc,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,i=this.playlists.master.playlists.filter($u.isEnabled);return sc(i,(function(t,i){return oc(t,i)})),i.filter((function(i){return!!ic(t.playlists.master,i).video}))[0]||null},lastBandwidthSelector:uc,movingAverageBandwidthSelector:function(t){var i=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var e=this.useDevicePixelRatio&&B.devicePixelRatio||1;return i<0&&(i=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(i=t*this.systemBandwidth+(1-t)*i,n=this.systemBandwidth),ac(this.playlists.master,i,parseInt(rc(this.tech_.el(),"width"),10)*e,parseInt(rc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:oc,comparePlaylistResolution:function(t,i){var n,e;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i.attributes.RESOLUTION&&i.attributes.RESOLUTION.width&&(e=i.attributes.RESOLUTION.width),(n=n||B.Number.MAX_VALUE)===(e=e||B.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&i.attributes.BANDWIDTH?t.attributes.BANDWIDTH-i.attributes.BANDWIDTH:n-e},xhr:mh()};Object.keys(Rh).forEach((function(t){Object.defineProperty(af,t,{get:function(){return Tu.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),Rh[t]},set:function(i){Tu.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof i||i<0?Tu.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):Rh[t]=i}})}));var uf=function(t,i){for(var n=i.media(),e=-1,r=0;r<t.length;r++)if(t[r].id===n.id){e=r;break}t.selectedIndex_=e,t.trigger({selectedIndex:e,type:"change"})};af.canPlaySource=function(){return Tu.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var hf=function(){if(!B.localStorage)return null;var t=B.localStorage.getItem("videojs-vhs");if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};af.supportsNativeHls=function(){if(!z||!z.createElement)return!1;var t=z.createElement("video");return!!Tu.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(i){return/maybe|probably/i.test(t.canPlayType(i))}))}(),af.supportsNativeDash=!!(z&&z.createElement&&Tu.getTech("Html5").isSupported())&&/maybe|probably/i.test(z.createElement("video").canPlayType("application/dash+xml")),af.supportsTypeNatively=function(t){return"hls"===t?af.supportsNativeHls:"dash"===t&&af.supportsNativeDash},af.isSupported=function(){return Tu.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var cf=function(t){function i(i,n,e){var r;if(r=t.call(this,n,Tu.mergeOptions(e.hls,e.vhs))||this,e.hls&&Object.keys(e.hls).length&&Tu.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof e.initialBandwidth&&(r.options_.bandwidth=e.initialBandwidth),r.logger_=Du("VhsHandler"),n.options_&&n.options_.playerId){var s=Tu(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Tu.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),H(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Tu.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),H(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Tu.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),H(r)},configurable:!0}),r.player_=s}if(r.tech_=n,r.source_=i,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(z,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(){var t=z.fullscreenElement||z.webkitFullscreenElement||z.mozFullScreenElement||z.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}X(i,t);var n=i.prototype;return n.setOptions_=function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var i=hf();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Rh.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Rh.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS"].forEach((function(i){void 0!==t.source_[i]&&(t.options_[i]=t.source_[i])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(t,i){var n=this;if(t){var e;this.setOptions_(),this.options_.src=0===(e=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,this.options_.tech=this.tech_,this.options_.externVhs=af,this.options_.sourceType=ii(i),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t)},this.options_.smoothQualityChange&&Tu.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new $c(this.options_);var r=Tu.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ef(r),this.masterPlaylistController_.on("error",(function(){var t=Tu.players[n.tech_.options_.playerId],i=n.masterPlaylistController_.error;"object"!=typeof i||i.code?"string"==typeof i&&(i={message:i,code:3}):i.code=3,t.error(i)}));var s=this.options_.experimentalBufferBasedABR?af.movingAverageBandwidthSelector(.55):af.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=af.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){Tu.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Cu(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Cu(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(t){if(!B.localStorage)return!1;var i=hf();i=i?Tu.mergeOptions(i,t):t;try{B.localStorage.setItem("videojs-vhs",JSON.stringify(i))}catch(t){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t;(t=n).representations=function(){var i=t.masterPlaylistController_.master(),n=Zu(i)?t.masterPlaylistController_.getAudioTrackPlaylists_():i.playlists;return n?n.filter((function(t){return!Wu(t)})).map((function(i){return new tf(t,i,i.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=B.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var t,i,n,e=this,r=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=(t={player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:r&&r.media()},i=t.player,!(!(n=function(t,i,n){if(!t)return t;var e={};i&&i.attributes&&i.attributes.CODECS&&(e=$h(Yt(i.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(e.audio=n.attributes.CODECS);var r=Qt(e.video),s=Qt(e.audio),o={};for(var a in t)o[a]={},s&&(o[a].audioContentType=s),r&&(o[a].videoContentType=r),i.contentProtection&&i.contentProtection[a]&&i.contentProtection[a].pssh&&(o[a].pssh=i.contentProtection[a].pssh),"string"==typeof t[a]&&(o[a].url=t[a]);return Tu.mergeOptions(t,o)}(t.sourceKeySystems,t.media,t.audioMedia))||(i.currentSource().keySystems=n,n&&!i.eme&&(Tu.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))));11!==Tu.browser.IE_VERSION&&s?(this.logger_("waiting for EME key session creation"),function(t){var i=t.player,n=t.sourceKeySystems,e=t.audioMedia,r=t.mainPlaylists;if(!i.eme.initializeMediaKeys)return Promise.resolve();var s,o,a=(s=e?r.concat([e]):r,o=Object.keys(n),s.reduce((function(t,i){if(!i.contentProtection)return t;var n=o.reduce((function(t,n){var e=i.contentProtection[n];return e&&e.pssh&&(t[n]={pssh:e.pssh}),t}),{});return Object.keys(n).length&&t.push(n),t}),[])),u=[],h=[];return a.forEach((function(t){h.push(new Promise((function(t){i.tech_.one("keysessioncreated",t)}))),u.push(new Promise((function(n,e){i.eme.initializeMediaKeys({keySystems:t},(function(t){t?e(t):n()}))})))})),Promise.race([Promise.all(u),Promise.race(h)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:r&&r.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var t=this,i=Tu.players[this.tech_.options_.playerId];i&&i.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=i.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var i,n;i=t.qualityLevels_,(n=t).representations().forEach((function(t){i.addQualityLevel(t)})),uf(i,n.playlists)})),this.playlists.on("mediachange",(function(){uf(t.qualityLevels_,t.playlists)})))},i.version=function(){return{"@videojs/http-streaming":"2.9.1","mux.js":"5.11.1","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Cc.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&B.URL.revokeObjectURL&&(B.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),t.prototype.dispose.call(this)},n.convertToProgramTime=function(t,i){return function(t){var i=t.playlist,n=t.time,e=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!i||void 0===e)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(t,i){if(!i||!i.segments||0===i.segments.length)return null;for(var n,e=0,r=0;r<i.segments.length&&!(t<=(e=(n=i.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:e+n.duration));r++);var s=i.segments[i.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>e){if(t>e+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:e-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(e,i);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var o={mediaSeconds:e},a=function(t,i){if(!i.dateTimeObject)return null;var n=t-(i.videoTimingInfo.transmuxedPresentationStart+i.videoTimingInfo.transmuxerPrependedSeconds);return new Date(i.dateTimeObject.getTime()+1e3*n)}(e,s.segment);return a&&(o.programDateTime=a.toISOString()),r(null,o)}({playlist:this.masterPlaylistController_.media(),time:t,callback:i})},n.seekToProgramTime=function(t,i,n,e){return void 0===n&&(n=!0),void 0===e&&(e=2),Eh({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:e,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})},i}(Tu.getComponent("Component")),ff={name:"videojs-http-streaming",VERSION:"2.9.1",canHandleSource:function(t,i){void 0===i&&(i={});var n=Tu.mergeOptions(Tu.options,i);return ff.canPlayType(t.type,n)},handleSource:function(t,i,n){void 0===n&&(n={});var e=Tu.mergeOptions(Tu.options,n);return i.vhs=new cf(t,i,e),Tu.hasOwnProperty("hls")||Object.defineProperty(i,"hls",{get:function(){return Tu.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),i.vhs},configurable:!0}),i.vhs.xhr=mh(),i.vhs.src(t.src,t.type),i.vhs},canPlayType:function(t,i){void 0===i&&(i={});var n=Tu.mergeOptions(Tu.options,i).vhs.overrideNative,e=void 0===n?!Tu.browser.IS_ANY_SAFARI:n,r=ii(t);return!r||af.supportsTypeNatively(r)&&!e?"":"maybe"}};Kt("avc1.4d400d,mp4a.40.2")&&Tu.getTech("Html5").registerSourceHandler(ff,0),Tu.VhsHandler=cf,Object.defineProperty(Tu,"HlsHandler",{get:function(){return Tu.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),cf},configurable:!0}),Tu.VhsSourceHandler=ff,Object.defineProperty(Tu,"HlsSourceHandler",{get:function(){return Tu.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),ff},configurable:!0}),Tu.Vhs=af,Object.defineProperty(Tu,"Hls",{get:function(){return Tu.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),af},configurable:!0}),Tu.use||(Tu.registerComponent("Hls",af),Tu.registerComponent("Vhs",af)),Tu.options.vhs=Tu.options.vhs||{},Tu.options.hls=Tu.options.hls||{},Tu.registerPlugin?Tu.registerPlugin("reloadSourceOnError",of):Tu.plugin("reloadSourceOnError",of);const lf=class{constructor(n){t(this,n),this.playerStateChanges=i(this,"playerStateChanges",7),this.playerClicked=i(this,"playerClicked",7),this.videoWidthSet=i(this,"videoWidthSet",7),this.fullscreen=!0,this.controls=!0,this.autoplay=!1,this.preload="auto",this.muted=!1,this.lightBackground=!1,this.simpleMode=!1,this.showDuration=!1}async pauseVideo(){this.player&&this.player.pause&&this.player.pause()}async playVideo(){if(!this.player.error||!this.player.error())return this.player&&this.player.play?this.player.play():void 0}async getCurrentTime(){let t=Promise.resolve(0);return this.player&&this.player.currentTime&&(t=Promise.resolve(this.player.currentTime())),t}async updateCurrentTime(t){return this.player&&this.player.currentTime?this.player.currentTime(t):Promise.resolve(!0)}async onTriggerFullscreen(t=this.modalOptions){const i=await this.getCurrentTime(),n={source:this.source,startTime:i,subtitles:this.subtitles};return this.simpleMode&&this.pauseVideo(),C("videojs",n,t)}async preserveAspectRatio(t,i){var n;if(this.containerWidth||(this.containerWidth=null===(n=this.host)||void 0===n?void 0:n.offsetWidth),0===this.containerWidth&&(this.containerWidth=this.host.getBoundingClientRect().width||375),this.containerWidth<0)return;const e=c(t,i,[1,1.33,.75]);let r="100vw",s="210px";const o=this.containerWidth/(this.modalOptions.baseRatio||1);.75===e?(s=o/e+"px",r=`${o}px`,f(this.host)&&(s=`${o}px`,r="100%"),this.scaledUpInWidth&&(r=o/2+"px",s=o/2/e+"px")):1===e?(s=`${o}px`,r=`${o}px`):(s=this.containerWidth/e+"px",r=`${this.containerWidth}px`),this.host.style.setProperty("--video-width",r),this.host.style.setProperty("--video-height",s),this.host.style.setProperty("--video-min-height","initial"),this.disconnected||(this.videoWidthSet.emit(!0),l("itemHeightUpdated",this.host))}onSourceChange(t){this.onUpdateVideoJSSource(t)}async componentWillLoad(){this.source=await w(this.source),this.source=O(this.source),this.fallbackSrc=this.onGetFallbackSrc(this.source),this.currentFallbackSrcIndex=0}componentDidLoad(){if(this.onInitVideoJs(),this.fullscreen&&this.onCustomizeFullscreenButton(),this.autoPauseOnLeavingViewPort&&this.observeVisibility(),this.scaledUp&&f(this.host)&&(this.resizeListener=d(this.onScreenResize,500).bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("screenSizeWillChange",this.resizeListener)),this.noSwiping){const t=N(this.host,".vjs-control-bar");t&&t.classList.add("swiper-no-swiping")}}connectedCallback(){this.disconnected=!1}disconnectedCallback(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("screenSizeWillChange",this.resizeListener)),this.disconnected=!0,this.resizeListener=void 0,this.removeIntersectionObserver()}observeVisibility(){this.observer=M(this.host,(t=>{var i;(!t[0].isIntersecting||(null===(i=t[0].boundingClientRect)||void 0===i?void 0:i.top)<0)&&(this.pauseVideo(),this.removeIntersectionObserver())}),{rootMargin:"30px",threshold:[0,.25,.75,1],root:null})}removeIntersectionObserver(){this.observer&&(this.observer.unobserve(this.host),this.observer.disconnect(),this.observer=void 0)}onScreenResize(){var t,i;this.scaledUp&&(this.containerWidth=null===(i=null===(t=this.host)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.clientWidth,this.preserveAspectRatio())}onInitVideoJs(){this.disconnected||(this.showErrorFallback&&(this.showErrorFallback=!1),this.player=Tu(this.videoEl,{muted:this.muted,autoplay:this.autoplay}),this.player.on("play",(()=>{this.ended=!1,this.disconnected||this.playerStateChanges.emit(P.PLAYING),this.isPlaying=!0,this.autoPauseOnLeavingViewPort&&this.observeVisibility()})),this.player.on("pause",(()=>{this.disconnected||this.playerStateChanges.emit(P.PAUSED)})),this.player.on("ended",(()=>{this.disconnected||this.playerStateChanges.emit(P.ENDED),this.isPlaying=!1,this.ended=!0})),this.player.on("error",(()=>{this.onVideoJSError()})),this.player.on("loadedmetadata",(t=>{var i,n;this.player&&this.player.duration()>=0&&(this.videoDuration=I.timer.transform(Math.round(this.player.duration()),"seconds")),this.disconnected||this.playerStateChanges.emit(P.PLAYER_READY);const e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.firstElementChild;e&&this.scaledUp&&!this.mediaDimension&&this.preserveAspectRatio(e.videoWidth,e.videoHeight),(null===(n=this.subtitles)||void 0===n?void 0:n.length)>0&&(this.subtitles.forEach((t=>{let i=null==t?void 0:t.src;const n=v(i);let e=Promise.resolve(i);("srt"===n||"vtt"===n||(null==t?void 0:t.mimeType))&&(p(i)?e=Promise.resolve(new Blob([i])):"string"==typeof i&&(e=m()?x(k(i)):T(i))),e.then((async e=>{let r=m()?A(e,{name:k(i)}):e;if(r){if("srt"===n){let t=await r.text();t=D(t),r=new Blob([t],{type:"text/vtt"})}i=URL.createObjectURL(r),this.player.addRemoteTextTrack({src:i,srclang:t.srclang,label:t.label,kind:t.kind},!0)}}))})),setTimeout((()=>{const t=this.player.textTracks(),i=j();for(let n=0;n<t.length;n++){const e=t[n],r=["ca","us"]&&"en"===e.language;if((e.language===i||r)&&!this.videoTrackSet){e.mode="showing",this.videoTrackSet=!0;break}}}),500))})),this.player.on("touchstart",(t=>{var i,n;(null===(n=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.classList)||void 0===n?void 0:n.contains("vjs-icon-placeholder"))?t.stopPropagation():this.playerClicked.emit(!0)})))}onFixSource(t){var i;(null===(i=this.player)||void 0===i?void 0:i.src)&&t&&(this.player.src(t),this.player.load())}onVideoJSError(){var t;0!==this.currentFallbackSrcIndex||(null===(t=this.source)||void 0===t?void 0:t.includes("q_auto:eco"))||this.currentFallbackSrcIndex++,this.currentFallbackSrcIndex<this.fallbackSrc.length?(this.onFixSource(this.fallbackSrc[this.currentFallbackSrcIndex]),this.currentFallbackSrcIndex++):this.showErrorFallback||(this.showErrorFallback=!0,this.currentFallbackSrcIndex=0)}onUpdateVideoJSSource(t){this.fallbackSrc=this.onGetFallbackSrc(t),this.currentFallbackSrcIndex=0,this.player&&(this.player.src(this.fallbackSrc[this.currentFallbackSrcIndex]),this.player.poster&&this.player.poster(E(t)),this.player.load())}onGetFallbackSrc(t){const i=v(t)||"*",n=(null==t?void 0:t.includes)&&(null==t?void 0:t.includes("q_auto:eco")),e=S(t,"mp4");return g([n?{src:new b(t).quality("eco").getUrl()}:null,"mp4"!==i&&n?{src:new b(e).quality("eco").getUrl()}:null,"mp4"!==i?{src:e}:null,{src:t},{src:new b(t).videoCodec("h265").width(1280).crop("limit").getUrl()},{src:m()?t:S(new b(t).videoCodec("vp9").width(1280).crop("limit").getUrl(),"webm")},{src:new b(t).videoCodec("auto").width(1280).crop("limit").getUrl()},{src:new b(t).videoCodec("auto").width(1280).getUrl()}])}onOverlayPlay(t){t?(this.player.load(),this.showErrorFallback=!1):this.playVideo(),setTimeout((()=>{var t;this.isPlaying=!(null===(t=this.player)||void 0===t?void 0:t.paused())}),100)}onCustomizeFullscreenButton(){const t=new(Tu.getComponent("Button"))(this.player);t.el().classList.add("vjs-fullscreen-control"),t.el().classList.add("custom"),t.el().addEventListener("click",(()=>this.onTriggerFullscreen())),t.el().addEventListener("touchend",(()=>this.onTriggerFullscreen())),this.player.controlBar.addChild(t)}renderVideoElement(){var t;const i=y(this.poster)?U(this.poster?this.poster:this.source,this.videoWidth,this.videoHeight):null,e=(null===(t=this.source)||void 0===t?void 0:t.includes("q_auto:eco"))?this.source:new b(this.source).quality("eco").getUrl();let r=this.extension||v(e);return"mov"===r&&(r="mp4"),n("div",{class:"video-container"},n("video",{ref:t=>this.videoEl=t,class:"video-js",playsinline:!0,preload:this.preload,autoplay:this.autoplay,controls:this.controls,muted:this.muted,poster:i,crossorigin:"anonymous","data-setup":"{}"},n("source",{src:e,type:`video/${r}`})))}renderErrorFallback(){var t;if((null===(t=this.player)||void 0===t?void 0:t.error)&&this.player.error()&&this.showErrorFallback)return n("div",{class:"error-overlay"},n("yoo-icon",{size:this.iconSize?this.iconSize:"extra-large",color:"light",class:"play",name:"play",onClick:()=>{this.showErrorFallback=!1,this.player.load()}}))}renderOverlay(){var t;const i=(null===(t=this.player)||void 0===t?void 0:t.error)&&this.player.error()&&this.showErrorFallback;return n("div",{class:{overlay:!0,hidden:(this.isPlaying||this.ended)&&!i}},this.showDuration&&n("span",null,this.videoDuration?this.videoDuration:""),n("yoo-icon",{size:this.iconSize?this.iconSize:"extra-large",color:"light",class:"play",name:"play",onClick:()=>{this.onOverlayPlay(i)}}))}render(){return this.mediaDimension&&this.preserveAspectRatio(this.mediaDimension.width,this.mediaDimension.height),n(e,{class:Object.assign(Object.assign({},R(this.host)),{light:this.lightBackground,"simple-mode":this.simpleMode,"scale-up":this.scaledUp,"scale-up-width":this.scaledUpInWidth,cover:this.cover})},this.renderVideoElement(),this.renderOverlay(),this.renderErrorFallback())}get host(){return r(this)}static get watchers(){return{source:["onSourceChange"]}}};lf.style='@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{display:block;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{-webkit-box-sizing:inherit;box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-9-16{padding-top:177.7777777778%}.video-js.vjs-1-1{padding-top:100%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;-webkit-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;-webkit-transition:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,.8)),to(rgba(255,255,255,0)));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{-webkit-box-sizing:border-box;box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{-webkit-box-sizing:border-box;box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;-ms-flex:auto;flex:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-width:4em;-ms-touch-action:none;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-ms-flex:auto;flex:auto;-webkit-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-ms-flex:none;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-ms-flexbox;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{-webkit-transition:width 1s;transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;-webkit-transition:left 0s;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;-webkit-transition:width .1s;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;-webkit-transition:none;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:-ms-flexbox;display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex:none;flex:none;display:-ms-inline-flexbox;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;-ms-flex:none;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);-webkit-box-sizing:border-box;box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;-webkit-box-sizing:inherit;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-audio-button,.video-js.vjs-layout-small .vjs-captions-button,.video-js.vjs-layout-small .vjs-chapters-button,.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-descriptions-button,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-subtitles-button,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-audio-button,.video-js.vjs-layout-tiny .vjs-captions-button,.video-js.vjs-layout-tiny .vjs-chapters-button,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-descriptions-button,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-subtitles-button,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-audio-button,.video-js.vjs-layout-x-small .vjs-captions-button,.video-js.vjs-layout-x-small .vjs-chapters-button,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-descriptions-button,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-subtitles-button,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none!important}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js.vjs-layout-tiny .vjs-subs-caps-button,.video-js.vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js.vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js.vjs-layout-tiny .vjs-custom-control-spacer,.video-js.vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{-ms-flex:auto;flex:auto;display:block}.video-js.vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js.vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:-webkit-gradient(linear,left bottom, left top,color-stop(88%, #fff),to(#73859f));background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:-webkit-gradient(linear,left top, left bottom,color-stop(88%, #fff),to(#73859f));background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}:root{--ease-in-back:cubic-bezier(0.36, 0, 0.66, -0.56);--ease-in-circ:cubic-bezier(0.55, 0, 1, 0.45);--ease-in-cubic:cubic-bezier(0.32, 0, 0.67, 0);--ease-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ease-in-quad:cubic-bezier(0.11, 0, 0.5, 0);--ease-in-quart:cubic-bezier(0.5, 0, 0.75, 0);--ease-in-quint:cubic-bezier(0.64, 0, 0.78, 0);--ease-in-sine:cubic-bezier(0.12, 0, 0.39, 0);--ease-out-back:cubic-bezier(0.34, 1.56, 0.64, 1);--ease-out-circ:cubic-bezier(0, 0.55, 0.45, 1);--ease-out-cubic:cubic-bezier(0.33, 1, 0.68, 1);--ease-out-expo:cubic-bezier(0.16, 1, 0.3, 1);--ease-out-quad:cubic-bezier(0.5, 1, 0.89, 1);--ease-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ease-out-quint:cubic-bezier(0.22, 1, 0.36, 1);--ease-out-sine:cubic-bezier(0.61, 1, 0.88, 1);--ease-in-out-back:cubic-bezier(0.68, -0.6, 0.32, 1.6);--ease-in-out-circ:cubic-bezier(0.85, 0, 0.15, 1);--ease-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ease-in-out-expo:cubic-bezier(0.87, 0, 0.13, 1);--ease-in-out-quad:cubic-bezier(0.45, 0, 0.55, 1);--ease-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ease-in-out-quint:cubic-bezier(0.83, 0, 0.17, 1);--ease-in-out-sine:cubic-bezier(0.37, 0, 0.63, 1)}.tippy-box,.tippy-popper{white-space:pre-wrap}.tippy-box .tippy-tooltip,.tippy-popper .tippy-tooltip{padding:var(--spacing-02, 0.125rem)}.tippy-box{-webkit-box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1))}.tippy-box .tippy-content.editable{padding:0}.tippy-box .tippy-content .flex{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.tippy-box .tippy-content .hidden{display:none}.tippy-box .tippy-content .editable-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--dark, #000000)}.tippy-box .tippy-content .editable-content .text-content{min-width:5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content .text-content>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content.readonly{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .maxchar-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:end;align-self:flex-end;height:var(--spacing-24, 1.5rem);padding-right:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content yoo-button{padding:0 var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content .edit-content{-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content .edit-content yoo-icon{padding-left:var(--spacing-08, 0.5rem);cursor:pointer}.tippy-box .tippy-content .editable-content .edit-content>*{cursor:pointer}.tippy-box .tippy-content .request-access{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .request-access .title{margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700)}.tippy-box .tippy-content .request-access .sub-title{display:-ms-flexbox;display:flex;margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-300, 300);font-size:var(--font-size-14, 0.875rem)}.tippy-box .tippy-content .request-access .sub-title yoo-avatar{margin:0 var(--spacing-04, 0.25rem)}.tippy-box .tippy-content .request-access yoo-button{max-width:8rem}.tippy-box[data-theme~=startameeting] .tippy-content{padding:0;border-radius:var(--border-radius-04, 0.25rem)}.tippy-box[data-theme~=large]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content .text-content{padding-right:var(--spacing-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=small] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content .text-content{padding-right:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=accent]{background-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=accent] .tippy-svg-arrow{fill:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--accent, #276ef1)}.tippy-box[data-theme~=anthracite]{background-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite] .tippy-svg-arrow{fill:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=app-color]{background-color:var(--app-color)}.tippy-box[data-theme~=app-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=app-color] .tippy-svg-arrow{fill:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--app-color)}.tippy-box[data-theme~=danger]{background-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger] .tippy-svg-arrow{fill:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger-light]{background-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger-light] .tippy-svg-arrow{fill:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=dark]{background-color:var(--dark, #000000)}.tippy-box[data-theme~=dark] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=dark] .tippy-svg-arrow{fill:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--dark, #000000)}.tippy-box[data-theme~=energized]{background-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=energized] .tippy-svg-arrow{fill:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--energized, #fed05b)}.tippy-box[data-theme~=info]{background-color:var(--info, #fc459e)}.tippy-box[data-theme~=info] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=info] .tippy-svg-arrow{fill:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--info, #fc459e)}.tippy-box[data-theme~=light]{background-color:var(--light, #ffffff)}.tippy-box[data-theme~=light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light] .tippy-svg-arrow{fill:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light, #ffffff)}.tippy-box[data-theme~=light-orange]{background-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-orange] .tippy-svg-arrow{fill:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-to-text-color]{background-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-to-text-color] .tippy-svg-arrow{fill:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=royal]{background-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=royal] .tippy-svg-arrow{fill:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--royal, #7577ff)}.tippy-box[data-theme~=stable]{background-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable] .tippy-svg-arrow{fill:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable-alt]{background-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-alt] .tippy-svg-arrow{fill:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-light]{background-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-light] .tippy-svg-arrow{fill:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-ultralight]{background-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-ultralight] .tippy-svg-arrow{fill:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=success]{background-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=success] .tippy-svg-arrow{fill:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--success, #3aa76d)}.tippy-box[data-theme~=text-color]{background-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=text-color] .tippy-svg-arrow{fill:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--text-color, #807f83)}.tippy-box[data-theme~=warning]{background-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=warning] .tippy-svg-arrow{fill:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--warning, #ff6402)}.tippy-box[data-theme~=anthracite-to-text-color]{background-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-svg-arrow{fill:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite-to-text-color, #1a1a1a)}:root{--safe-area-inset-top:0;--safe-area-inset-right:0;--safe-area-inset-bottom:0;--safe-area-inset-left:0}@supports (top: constant(safe-area-inset-top)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-right:constant(safe-area-inset-right);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left)}}@supports (top: env(safe-area-inset-top)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}}.fr-popup.fr-active{z-index:30004 !important;display:block !important;opacity:1 !important}:host{--iphone-x-frame-padding:30px;--video-height:100%;--video-min-height:190px;--video-width:100%;position:relative;display:block;width:100%;height:100%}:host .overlay{position:absolute;top:0;bottom:0;z-index:2;width:100%;height:100%;background:var(--dark-60, rgba(0, 0, 0, 0.6))}:host .overlay span{position:absolute;right:var(--spacing-16, 1rem);bottom:var(--spacing-20-deprecated, 1.25rem);color:var(--light-to-dark, #ffffff)}:host .overlay.hidden{z-index:-1;opacity:0}:host .overlay yoo-icon.play{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .overlay yoo-icon.play.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host .video-container{position:absolute;z-index:1;width:100%;height:100%}:host .video-container video{width:var(--video-width);height:100%}:host .video-container .video-js{position:relative;width:100% !important;height:100% !important;overflow:hidden}:host .video-container .video-js *{font-family:VideoJS, Helvetica, sans-serif !important}:host .video-container .video-js video{width:var(--video-width) !important;height:var(--video-height) !important}:host .video-container .video-js video:focus{outline:none}:host .video-container .video-js button:last-child{display:none}:host .video-container .video-js button:focus{outline:0}:host .video-container .video-js button.vjs-big-play-button{z-index:5;display:none;background:transparent;opacity:0}:host .video-container .video-js button.vjs-fullscreen-control,:host .video-container .video-js button.vjs-picture-in-picture-control{display:none}:host .video-container .video-js button.vjs-fullscreen-control.custom{display:block}:host .video-container .video-js .vjs-control-bar{height:2.75rem}:host .video-container .video-js .vjs-control-bar .vjs-play-control{margin-right:4rem}:host .video-container .video-js .vjs-control-bar .vjs-time-control,:host .video-container .video-js .vjs-control-bar .vjs-control{font-size:var(--font-size-14, 0.875rem)}:host .video-container .video-js .vjs-control-bar .vjs-icon-placeholder:before{line-height:2}:host .video-container .video-js.vjs-paused button.vjs-big-play-button{display:block}:host .video-container .video-js .vjs-menu-button-popup .vjs-menu{left:-5.5rem}:host .video-container .video-js .vjs-menu-item.vjs-texttrack-settings{display:none}:host .video-container .video-js .vjs-text-track-cue{font-size:var(--font-size-20, 1.25rem) !important}:host(.light) .video-js{height:100%;background-color:var(--light-to-dark, #ffffff)}:host(.iphone-x.fullscreen) .video-js .vjs-control-bar,:host(.iphone-x.modal-mode) .video-js .vjs-control-bar{height:4rem;font-size:var(--font-size-16, 1rem)}:host(.iphone-x.fullscreen) .video-js .vjs-control-bar .vjs-progress-control,:host(.iphone-x.modal-mode) .video-js .vjs-control-bar .vjs-progress-control{-ms-flex-align:baseline;align-items:baseline;padding-top:1.5rem}:host(.iphone-x.landscape.modal-mode) .video-js{padding-right:var(--iphone-x-frame-padding);padding-left:var(--iphone-x-frame-padding)}:host(.simple-mode) .video-container .video-js .vjs-control-bar{-ms-flex-pack:end;justify-content:flex-end;border-radius:0 0 8px 8px}:host(.simple-mode) .video-container .video-js .vjs-control-bar button.vjs-play-control{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host(.simple-mode) .video-container .video-js .vjs-control-bar button.vjs-play-control.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-progress-control{display:none}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-volume-panel{-ms-flex-order:3;order:3}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-fullscreen-control{-ms-flex-order:4;order:4}:host(.simple-mode) .video-container .video-js.vjs-has-started.vjs-paused button.vjs-big-play-button{display:none}:host(.scale-up){width:var(--video-width);height:var(--video-height);min-height:var(--video-min-height)}:host(.scale-up-width){--video-height:auto}:host(.scale-up-width) .video-container,:host(.scale-up-width) .video-container .video-js,:host(.scale-up-width) .video-container .video-js .vjs-tech{position:initial}:host(.scale-up-width) .video-container video,:host(.scale-up-width) .video-container .video-js video,:host(.scale-up-width) .video-container .video-js .vjs-tech video{-o-object-fit:fill !important;object-fit:fill !important}:host(.cover) .vjs-poster{background-size:cover}:host(.hide-overlay) .overlay{display:none}';export{lf as yoo_videoplayer_videojs}
18
+ /*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */r(null,(t=h).subarray(0,t.byteLength-t[t.byteLength-1]))}))}return t.prototype.decryptChunk_=function(t,i,n,e){return function(){var r=function(t,i,n){var e,r,s,a,h,c,f,l,d,v=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),p=new o(Array.prototype.slice.call(i)),m=new Uint8Array(t.byteLength),g=new Int32Array(m.buffer);for(e=n[0],r=n[1],s=n[2],a=n[3],d=0;d<v.length;d+=4)h=u(v[d]),c=u(v[d+1]),f=u(v[d+2]),l=u(v[d+3]),p.decrypt(h,c,f,l,g,d),g[d]=u(g[d]^e),g[d+1]=u(g[d+1]^r),g[d+2]=u(g[d+2]^s),g[d+3]=u(g[d+3]^a),e=h,r=c,s=f,a=l;return m}(t,i,n);e.set(r,t.byteOffset)}},i(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}();self.onmessage=function(t){var i=t.data,n=new Uint8Array(i.encrypted.bytes,i.encrypted.byteOffset,i.encrypted.byteLength),e=new Uint32Array(i.key.bytes,i.key.byteOffset,i.key.byteLength/4),r=new Uint32Array(i.iv.bytes,i.iv.byteOffset,i.iv.byteLength/4);new h(n,e,r,(function(t,n){var e,r;self.postMessage((e={source:i.source,decrypted:n},r={},Object.keys(e).forEach((function(t){var i=e[t];r[t]=ArrayBuffer.isView(i)?{bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:i})),r),[n.buffer])}))}})))),Hc=function(t){var i=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(i="main-desc"),i},qc=function(t,i){t.abort(),t.pause(),i&&i.activePlaylistLoader&&(i.activePlaylistLoader.pause(),i.activePlaylistLoader=null)},Xc=function(t,i){i.activePlaylistLoader=t,t.load()},Wc={AUDIO:function(t,i){return function(){var n=i.mediaTypes[t],e=i.blacklistCurrentPlaylist;qc(i.segmentLoaders[t],n);var r=n.activeTrack(),s=n.activeGroup(),o=(s.filter((function(t){return t.default}))[0]||s[0]).id,a=n.tracks[o];if(r!==a){for(var u in Tu.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===a;n.onTrackChanged()}else e({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,i){return function(){var n=i.segmentLoaders[t],e=i.mediaTypes[t];Tu.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),qc(n,e);var r=e.activeTrack();r&&(r.mode="disabled"),e.onTrackChanged()}}},Gc={AUDIO:function(t,i,n){if(i){var e=n.tech,r=n.requestOptions,s=n.segmentLoaders[t];i.on("loadedmetadata",(function(){var t=i.media();s.playlist(t,r),(!e.paused()||t.endList&&"none"!==e.preload())&&s.load()})),i.on("loadedplaylist",(function(){s.playlist(i.media(),r),e.paused()||s.load()})),i.on("error",Wc[t](t,n))}},SUBTITLES:function(t,i,n){var e=n.tech,r=n.requestOptions,s=n.segmentLoaders[t],o=n.mediaTypes[t];i.on("loadedmetadata",(function(){var t=i.media();s.playlist(t,r),s.track(o.activeTrack()),(!e.paused()||t.endList&&"none"!==e.preload())&&s.load()})),i.on("loadedplaylist",(function(){s.playlist(i.media(),r),e.paused()||s.load()})),i.on("error",Wc[t](t,n))}},Yc={AUDIO:function(t,i){var n=i.vhs,e=i.sourceType,r=i.segmentLoaders[t],s=i.requestOptions,o=i.master.mediaGroups,a=i.mediaTypes[t],u=a.groups,h=a.tracks,c=a.logger_,f=i.masterPlaylistLoader,l=Zu(f.master);for(var d in o[t]&&0!==Object.keys(o[t]).length||(o[t]={main:{default:{default:!0}}}),o[t])for(var v in u[d]||(u[d]=[]),o[t][d]){var p=o[t][d][v],m=void 0;if(l?(c("AUDIO group '"+d+"' label '"+v+"' is a master playlist"),p.isMasterPlaylist=!0,m=null):m="vhs-json"===e&&p.playlists?new lh(p.playlists[0],n,s):p.resolvedUri?new lh(p.resolvedUri,n,s):p.playlists&&"dash"===e?new Nh(p.playlists[0],n,s,f):null,p=Tu.mergeOptions({id:v,playlistLoader:m},p),Gc[t](t,p.playlistLoader,i),u[d].push(p),void 0===h[v]){var g=new Tu.AudioTrack({id:v,kind:Hc(p),enabled:!1,language:p.language,default:p.default,label:v});h[v]=g}}r.on("error",Wc[t](t,i))},SUBTITLES:function(t,i){var n=i.tech,e=i.vhs,r=i.sourceType,s=i.segmentLoaders[t],o=i.requestOptions,a=i.master.mediaGroups,u=i.mediaTypes[t],h=u.groups,c=u.tracks,f=i.masterPlaylistLoader;for(var l in a[t])for(var d in h[l]||(h[l]=[]),a[t][l])if(!a[t][l][d].forced){var v=a[t][l][d],p=void 0;if("hls"===r)p=new lh(v.resolvedUri,e,o);else if("dash"===r){if(!v.playlists.filter((function(t){return t.excludeUntil!==1/0})).length)return;p=new Nh(v.playlists[0],e,o,f)}else"vhs-json"===r&&(p=new lh(v.playlists?v.playlists[0]:v.resolvedUri,e,o));if(v=Tu.mergeOptions({id:d,playlistLoader:p},v),Gc[t](t,v.playlistLoader,i),h[l].push(v),void 0===c[d]){var m=n.addRemoteTextTrack({id:d,kind:"subtitles",default:v.default&&v.autoselect,language:v.language,label:d},!1).track;c[d]=m}}s.on("error",Wc[t](t,i))},"CLOSED-CAPTIONS":function(t,i){var n=i.tech,e=i.master.mediaGroups,r=i.mediaTypes[t],s=r.groups,o=r.tracks;for(var a in e[t])for(var u in s[a]||(s[a]=[]),e[t][a]){var h=e[t][a][u];if(/^(?:CC|SERVICE)/.test(h.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},f={label:u,language:h.language,instreamId:h.instreamId,default:h.default&&h.autoselect};if(c[f.instreamId]&&(f=Tu.mergeOptions(f,c[f.instreamId])),void 0===f.default&&delete f.default,s[a].push(Tu.mergeOptions({id:u},h)),void 0===o[u]){var l=n.addRemoteTextTrack({id:f.instreamId,kind:"captions",default:f.default,language:f.language,label:f.label},!1).track;o[u]=l}}}}},Jc=function t(i,n){for(var e=0;e<i.length;e++){if(Qu(n,i[e]))return!0;if(i[e].playlists&&t(i[e].playlists,n))return!0}return!1},Qc={AUDIO:function(t,i){return function(){var n=i.mediaTypes[t].tracks;for(var e in n)if(n[e].enabled)return n[e];return null}},SUBTITLES:function(t,i){return function(){var n=i.mediaTypes[t].tracks;for(var e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}}},Kc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Zc=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},$c=function(t){function i(i){var n;n=t.call(this)||this;var e=i.src,r=i.handleManifestRedirects,s=i.withCredentials,o=i.tech,a=i.bandwidth,u=i.externVhs,h=i.useCueTags,c=i.blacklistDuration,f=i.enableLowInitialPlaylist,l=i.sourceType,d=i.cacheEncryptionKeys,v=i.experimentalBufferBasedABR;if(!e)throw new Error("A non-empty playlist URL or JSON manifest string is required");var p=i.maxPlaylistRetries;null==p&&(p=1/0),gc=u,n.experimentalBufferBasedABR=Boolean(v),n.withCredentials=s,n.tech_=o,n.vhs_=o.vhs,n.sourceType_=l,n.useCueTags_=h,n.blacklistDuration=c,n.maxPlaylistRetries=p,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:p,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(i){t[i]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:mc,activeTrack:mc,getActiveGroup:mc,onGroupChanged:mc,onTrackChanged:mc,lastTrack_:null,logger_:Du("MediaGroups["+i+"]")}})),t}(),n.mediaSource=new B.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(H(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(H(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(H(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Tu.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new zc(i),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Vc,n.sourceUpdater_=new Cc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new _c;var m={vhs:n.vhs_,parse708captions:i.parse708captions,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:a,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_};n.masterPlaylistLoader_="dash"===n.sourceType_?new Nh(e,n.vhs_,n.requestOptions_):new lh(e,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new pc(Tu.mergeOptions(m,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),i),n.audioSegmentLoader_=new pc(Tu.mergeOptions(m,{loaderType:"audio"}),i),n.subtitleSegmentLoader_=new Lc(Tu.mergeOptions(m,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),i),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),Kc.forEach((function(t){n[t+"_"]=Zc.bind(H(n),t)})),n.logger_=Du("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var g="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(g,(function(){var t=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-t,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}X(i,t);var n=i.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),i=this.audioAppendsToLoadedData_();return-1===t||-1===i?-1:t+i},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var t=this.selectPlaylist();this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,"abr")},n.switchMedia_=function(t,i,n){var e=this.media(),r=e&&(e.id||e.uri),s=t.id||t.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+i),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+i})),this.masterPlaylistLoader_.media(t,n)},n.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=B.setInterval((function(){return t.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(B.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var t=this.master();if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return t&&t.playlists||[];var i,n=t.mediaGroups.AUDIO,e=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var r=n.main||e.length&&n[e[0]];for(var s in r)if(r[s].default){i={label:s};break}}if(!i)return[];var o=[];for(var a in n)if(n[a][i.label]){var u=n[a][i.label];u.playlists?o.push.apply(o,u.playlists):o.push(u)}return o},n.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var i=t.masterPlaylistLoader_.media(),n=1.5*i.targetDuration*1e3;t.requestOptions_.timeout=Ju(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?0:n,i.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(i,t.requestOptions_),t.mainSegmentLoader_.load()),function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(i){Yc[i](i,t)}));var i=t.mediaTypes,n=t.masterPlaylistLoader,e=t.tech,r=t.vhs,s=t.segmentLoaders,o=s.AUDIO,a=s.main;["AUDIO","SUBTITLES"].forEach((function(n){i[n].activeGroup=function(t,i){return function(n){var e=i.mediaTypes[t].groups,r=i.masterPlaylistLoader.media();if(!r)return null;var s=null;r.attributes[t]&&(s=e[r.attributes[t]]);var o=Object.keys(e);if(!s)if("AUDIO"===t&&o.length>1&&Zu(i.master))for(var a=0;a<o.length;a++){var u=e[o[a]];if(Jc(u,r)){s=u;break}}else e.main?s=e.main:1===o.length&&(s=e[o[0]]);return void 0===n?s:null!==n&&s&&s.filter((function(t){return t.id===n.id}))[0]||null}}(n,t),i[n].activeTrack=Qc[n](n,t),i[n].onGroupChanged=function(t,i){return function(){var n=i.segmentLoaders,e=n[t],r=n.main,s=i.mediaTypes[t],o=s.activeTrack(),a=s.getActiveGroup(),u=s.activePlaylistLoader,h=s.lastGroup_;a&&h&&a.id===h.id||(s.lastGroup_=a,s.lastTrack_=o,qc(e,s),a&&!a.isMasterPlaylist&&(a.playlistLoader?(e.resyncLoader(),Xc(a.playlistLoader,s)):u&&r.resetEverything()))}}(n,t),i[n].onGroupChanging=function(t,i){return function(){var n=i.segmentLoaders[t];i.mediaTypes[t].lastGroup_=null,n.abort(),n.pause()}}(n,t),i[n].onTrackChanged=function(t,i){return function(){var n=i.masterPlaylistLoader,e=i.segmentLoaders,r=e[t],s=e.main,o=i.mediaTypes[t],a=o.activeTrack(),u=o.getActiveGroup(),h=o.activePlaylistLoader,c=o.lastTrack_;if((!c||!a||c.id!==a.id)&&(o.lastGroup_=u,o.lastTrack_=a,qc(r,o),u)){if(u.isMasterPlaylist){if(!a||!c||a.id===c.id)return;var f=i.vhs.masterPlaylistController_,l=f.selectPlaylist();if(f.media()===l)return;return o.logger_("track change. Switching master audio from "+c.id+" to "+a.id),n.pause(),s.resetEverything(),void f.fastQualityChange_(l)}if("AUDIO"===t){if(!u.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}h!==u.playlistLoader?(r.track&&r.track(a),r.resetEverything(),Xc(u.playlistLoader,o)):Xc(u.playlistLoader,o)}}}(n,t),i[n].getActiveGroup=function(t,i){var n=i.mediaTypes;return function(){var i=n[t].activeTrack();return i?n[t].activeGroup(i):null}}(n,t)}));var u=i.AUDIO.activeGroup();if(u){var h=(u.filter((function(t){return t.default}))[0]||u[0]).id;i.AUDIO.tracks[h].enabled=!0,i.AUDIO.onGroupChanged(),i.AUDIO.onTrackChanged(),i.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),o.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return i[t].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return i[t].onGroupChanging()}))}));var c=function(){i.AUDIO.onTrackChanged(),e.trigger({type:"usage",name:"vhs-audio-change"}),e.trigger({type:"usage",name:"hls-audio-change"})};for(var f in e.audioTracks().addEventListener("change",c),e.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged),r.on("dispose",(function(){e.audioTracks().removeEventListener("change",c),e.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)})),e.clearTracks("audio"),i.AUDIO.tracks)e.audioTracks().addTrack(i.AUDIO.tracks[f])}({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),i),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var i=t.masterPlaylistLoader_.media();if(!i){var n;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n||(n=t.selectPlaylist()),!n||!t.shouldSwitchToMedia_(n))return;if(t.initialMedia_=n,t.switchMedia_(t.initialMedia_,"initial"),"vhs-json"!==t.sourceType_||!t.initialMedia_.segments)return;i=t.initialMedia_}t.handleUpdatedMediaPlaylist(i)})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var i=t.masterPlaylistLoader_.media(),n=1.5*i.targetDuration*1e3;t.requestOptions_.timeout=Ju(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?0:n,t.mainSegmentLoader_.playlist(i,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var i=t.masterPlaylistLoader_.media();"playlist-unchanged"!==i.lastExcludeReason_&&t.stuckAtPlaylistEnd_(i)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(t,i){var n=t.mediaGroups||{},e=!0,r=Object.keys(n.AUDIO);for(var s in n.AUDIO)for(var o in n.AUDIO[s])n.AUDIO[s][o].uri||(e=!1);e&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),gc.Playlist.isAes(i)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(t){var i=this.masterPlaylistLoader_.media(),n=this.tech_.buffered();return function(t){var i=t.currentPlaylist,n=t.nextPlaylist,e=t.forwardBuffer,r=t.bufferLowWaterLine,s=t.bufferHighWaterLine,o=t.duration,a=t.experimentalBufferBasedABR,u=t.log;if(!n)return Tu.log.warn("We received no playlist to switch to. Please check your stream."),!1;var h="allowing switch "+(i&&i.id||"null")+" -> "+n.id;if(!i||!i.endList)return u(h+" as current playlist "+(i?"is live":"is not set")),!0;if(n.id===i.id)return!1;var c=a?Rh.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Rh.MAX_BUFFER_LOW_WATER_LINE;if(o<c)return u(h+" as duration < max low water line ("+o+" < "+c+")"),!0;var f=n.attributes.BANDWIDTH,l=i.attributes.BANDWIDTH;if(f<l&&(!a||e<s)){var d=h+" as next bandwidth < current bandwidth ("+f+" < "+l+")";return a&&(d+=" and forwardBuffer < bufferHighWaterLine ("+e+" < "+s+")"),u(d),!0}if((!a||f>l)&&e>=r){var v=h+" as forwardBuffer >= bufferLowWaterLine ("+e+" >= "+r+")";return a&&(v+=" and next bandwidth > current bandwidth ("+f+" > "+l+")"),u(v),!0}return u("not "+h+" as no switching criteria met"),!1}({currentPlaylist:i,nextPlaylist:t,forwardBuffer:n.length?n.end(n.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var i=t.selectPlaylist();t.shouldSwitchToMedia_(i)&&t.switchMedia_(i,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var i=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var i=t.getCodecsOrExclude_();i&&t.sourceUpdater_.addOrChangeSourceBuffers(i)};this.mainSegmentLoader_.on("trackinfo",i),this.audioSegmentLoader_.on("trackinfo",i),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},n.fastQualityChange_=function(t){var i=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){i.tech_.setCurrentTime(Tu.browser.IE_VERSION||Tu.browser.IS_EDGE?i.tech_.currentTime()+.04:i.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},n.setupFirstPlay=function(){var t=this,i=this.masterPlaylistLoader_.media();if(!i||this.tech_.paused()||this.hasPlayed_)return!1;if(!i.endList){var n=this.seekable();if(!n.length)return!1;if(Tu.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,(function(){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var i=this.duration();t[t.length-1].endTime=isNaN(i)||Math.abs(i)===1/0?Number.MAX_VALUE:i}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=!this.mainSegmentLoader_.currentMediaInfo_||this.mainSegmentLoader_.currentMediaInfo_.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return!1;var n=gc.Playlist.playlistEnd(t,i),e=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-e<=.1;var s=r.end(r.length-1);return s-e<=.1&&n-s<=.1},n.blacklistCurrentPlaylist=function(t,i){void 0===t&&(t={});var n=t.playlist||this.masterPlaylistLoader_.media();if(i=i||t.blacklistDuration||this.blacklistDuration,!n)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var e,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(Gu),o=1===s.length&&s[0]===n;if(1===r.length&&i!==1/0)return Tu.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var a=!1;r.forEach((function(t){if(t!==n){var i=t.excludeUntil;void 0!==i&&i!==1/0&&(a=!0,delete t.excludeUntil)}})),a&&(Tu.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}e=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,n.excludeUntil=e,t.reason&&(n.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var u=this.selectPlaylist();if(!u)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(t.internal?this.logger_:Tu.log.warn)((t.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+(t.message?" "+t.message:"")+" Switching to playlist "+u.id+"."),u.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),u.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var h=u.targetDuration/2*1e3||5e3,c="number"==typeof u.lastRequest&&Date.now()-u.lastRequest<=h;return this.switchMedia_(u,"exclude",o||c)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(t,i){var n=this,e=[],r="all"===t;(r||"main"===t)&&e.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===t)&&s.push("AUDIO"),(r||"subtitle"===t)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((function(t){var i=n.mediaTypes_[t]&&n.mediaTypes_[t].activePlaylistLoader;i&&e.push(i)})),["main","audio","subtitle"].forEach((function(i){var r=n[i+"SegmentLoader_"];!r||t!==i&&"all"!==t||e.push(r)})),e.forEach((function(t){return i.forEach((function(i){"function"==typeof t[i]&&t[i]()}))}))},n.setCurrentTime=function(t){var i=Nu(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?i&&i.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:gc.Playlist.duration(t):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var i=this.masterPlaylistLoader_.media();if(i){var n=this.syncController_.getExpiredTime(i,this.duration());if(null!==n){var e=this.masterPlaylistLoader_.master,r=gc.Playlist.seekable(i,n,gc.Playlist.liveEdgeDelay(e,i));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(i=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(i,this.duration())))return;if(0===(t=gc.Playlist.seekable(i,n,gc.Playlist.liveEdgeDelay(e,i))).length)return}var s,o;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),o=this.seekable_.start(0)),this.seekable_=t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?r:Tu.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+Mu(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var i=this.seekable();if(!i.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<i.end(i.length-1))&&this.sourceUpdater_.setDuration(i.end(i.length-1))}else{var n=this.tech_.buffered(),e=gc.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(e=Math.max(e,n.end(n.length-1))),this.mediaSource.duration!==e&&this.sourceUpdater_.setDuration(e)}},n.dispose=function(){var t=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(i){var n=t.mediaTypes_[i].groups;for(var e in n)n[e].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){return!(!this.mainSegmentLoader_.currentMediaInfo_||this.mediaTypes_.AUDIO.activePlaylistLoader&&!this.audioSegmentLoader_.currentMediaInfo_)},n.getCodecsOrExclude_=function(){var t=this,i={main:this.mainSegmentLoader_.currentMediaInfo_||{},audio:this.audioSegmentLoader_.currentMediaInfo_||{}};i.video=i.main;var n=ic(this.master(),this.media()),e={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(e.video=n.video||i.main.videoCodec||"avc1.4d400d"),i.main.isMuxed&&(e.video+=","+(n.audio||i.main.audioCodec||"mp4a.40.2")),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||r)&&(e.audio=n.audio||i.main.audioCodec||i.audio.audioCodec||"mp4a.40.2",i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4),e.audio||e.video){var s,o={};if(["video","audio"].forEach((function(t){if(e.hasOwnProperty(t)&&(r=e[t],!(i[t].isFmp4?Kt(r):Zt(r)))){var n=i[t].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(e[t]),"audio"===t&&(s=n)}var r})),r&&s&&this.media().attributes.AUDIO){var a=this.media().attributes.AUDIO;this.master().playlists.forEach((function(i){(i.attributes&&i.attributes.AUDIO)===a&&i!==t.media()&&(i.excludeUntil=1/0)})),this.logger_("excluding audio group "+a+" as "+s+' does not support codec(s): "'+e.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach((function(i){var n=(Yt(t.sourceUpdater_.codecs[i]||"")[0]||{}).type,r=(Yt(e[i]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+t.sourceUpdater_.codecs[i]+'" -> "'+e[i]+'"')})),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return e}var h=Object.keys(o).reduce((function(t,i){return t&&(t+=", "),t+(i+' does not support codec(s): "')+o[i].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:h,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var i=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)}}},n.excludeUnsupportedVariants_=function(){var t=this,i=this.master().playlists,n=[];Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)){n.push(r.id);var s=ic(t.master,r),o=[];!s.audio||Zt(s.audio)||Kt(s.audio)||o.push("audio codec "+s.audio),!s.video||Zt(s.video)||Kt(s.video)||o.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&o.push("text codec "+s.text),o.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(t){var i=this,n=[],e=this.master().playlists,r=$h(Yt(t)),s=tc(r),o=r.video&&Yt(r.video)[0]||null,a=r.audio&&Yt(r.audio)[0]||null;Object.keys(e).forEach((function(t){var r=e[t];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var u=[],h=ic(i.masterPlaylistLoader_.master,r),c=tc(h);if(h.audio||h.video){if(c!==s&&u.push('codec count "'+c+'" !== "'+s+'"'),!i.sourceUpdater_.canChangeType()){var f=h.video&&Yt(h.video)[0]||null,l=h.audio&&Yt(h.audio)[0]||null;f&&o&&f.type.toLowerCase()!==o.type.toLowerCase()&&u.push('video codec "'+f.type+'" !== "'+o.type+'"'),l&&a&&l.type.toLowerCase()!==a.type.toLowerCase()&&u.push('audio codec "'+l.type+'" !== "'+a.type+'"')}u.length&&(r.excludeUntil=1/0,i.logger_("blacklisting "+r.id+": "+u.join(" && ")))}}}))},n.updateAdCues_=function(t){var i=0,n=this.seekable();n.length&&(i=n.start(0)),function(t,i,n){if(void 0===n&&(n=0),t.segments)for(var e,r=n,s=0;s<t.segments.length;s++){var o=t.segments[s];if(e||(e=Bc(i,r+o.duration/2)),e){if("cueIn"in o){e.endTime=r,e.adEndTime=r,r+=o.duration,e=null;continue}if(r<e.endTime){r+=o.duration;continue}e.endTime+=o.duration}else if("cueOut"in o&&((e=new B.VTTCue(r,r+o.duration,o.cueOut)).adStartTime=r,e.adEndTime=r+parseFloat(o.cueOut),i.addCue(e)),"cueOutCont"in o){var a=o.cueOutCont.split("/").map(parseFloat),u=a[0],h=a[1];(e=new B.VTTCue(r,r+o.duration,"")).adStartTime=r-u,e.adEndTime=e.adStartTime+h,i.addCue(e)}r+=o.duration}}(t,this.cueTagsTrack_,i)},n.goalBufferLength=function(){var t=this.tech_.currentTime(),i=Rh.GOAL_BUFFER_LENGTH,n=Rh.GOAL_BUFFER_LENGTH_RATE,e=Math.max(i,Rh.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+t*n,e)},n.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),i=Rh.BUFFER_LOW_WATER_LINE,n=Rh.BUFFER_LOW_WATER_LINE_RATE,e=Math.max(i,Rh.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(i,Rh.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+t*n,this.experimentalBufferBasedABR?r:e)},n.bufferHighWaterLine=function(){return Rh.BUFFER_HIGH_WATER_LINE},i}(Tu.EventTarget),tf=function(t,i,n){var e,r,s,o=t.masterPlaylistController_,a=o[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(o);if(i.attributes){var u=i.attributes.RESOLUTION;this.width=u&&u.width,this.height=u&&u.height,this.bandwidth=i.attributes.BANDWIDTH}this.codecs=ic(o.master(),i),this.playlist=i,this.id=n,this.enabled=(e=t.playlists,r=i.id,s=a,function(t){var i=e.master.playlists[r],n=Wu(i),o=Gu(i);return void 0===t?o:(t?delete i.disabled:i.disabled=!0,t===o||n||(s(),e.trigger(t?"renditionenabled":"renditiondisabled")),t)})},nf=["seeking","seeked","pause","playing","error"],ef=function(){function t(t){var i=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Du("PlaybackWatcher"),this.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},e=function(){return i.monitorCurrentTime_()},r=function(){return i.techWaiting_()},s=function(){return i.cancelTimer_()},o=function(){return i.fixesBadSeeks_()},a=this.masterPlaylistController_,u=["main","subtitle","audio"],h={};u.forEach((function(t){h[t]={reset:function(){return i.resetSegmentDownloads_(t)},updateend:function(){return i.checkSegmentDownloads_(t)}},a[t+"SegmentLoader_"].on("appendsdone",h[t].updateend),a[t+"SegmentLoader_"].on("playlistupdate",h[t].reset),i.tech_.on(["seeked","seeking"],h[t].reset)})),this.tech_.on("seekablechanged",o),this.tech_.on("waiting",r),this.tech_.on(nf,s),this.tech_.on("canplay",e),this.tech_.one("play",n),this.dispose=function(){i.logger_("dispose"),i.tech_.off("seekablechanged",o),i.tech_.off("waiting",r),i.tech_.off(nf,s),i.tech_.off("canplay",e),i.tech_.off("play",n),u.forEach((function(t){a[t+"SegmentLoader_"].off("appendsdone",h[t].updateend),a[t+"SegmentLoader_"].off("playlistupdate",h[t].reset),i.tech_.off(["seeked","seeking"],h[t].reset)})),i.checkCurrentTimeTimeout_&&B.clearTimeout(i.checkCurrentTimeTimeout_),i.cancelTimer_()}}var i=t.prototype;return i.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&B.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=B.setTimeout(this.monitorCurrentTime_.bind(this),250)},i.resetSegmentDownloads_=function(t){var i=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=i.buffered_()},i.checkSegmentDownloads_=function(t){var i=this.masterPlaylistController_,n=i[t+"SegmentLoader_"],e=n.buffered_(),r=function(t,i){if(t===i)return!1;if(!t&&i||!i&&t)return!0;if(t.length!==i.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==i.start(n)||t.end(n)!==i.end(n))return!0;return!1}(this[t+"Buffered_"],e);this[t+"Buffered_"]=e,r?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Cu(e)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&i.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},i.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),i=this.tech_.buffered();if(this.lastRecordedTime===t&&(!i.length||t+.1>=i.end(i.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},i.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},i.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,i=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(i,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=i.end(i.length-1)),this.beforeSeekableWindow_(i,n)){var e=i.start(0);t=e+(e===i.end(0)?0:.1)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Mu(i)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;var r=this.tech_.buffered();return!!function(t){var i=t.buffered,n=t.targetDuration,e=t.currentTime;return!(!i.length||i.end(0)-i.start(0)<2*n||e>i.start(0)||!(i.start(0)-e<n))}({buffered:r,targetDuration:this.media().targetDuration,currentTime:n})&&(t=r.start(0)+.1,this.logger_("Buffered region starts ("+r.start(0)+") just beyond seek point ("+n+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},i.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),i=this.tech_.buffered(),n=Nu(i,t);return n.length&&t+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},i.techWaiting_=function(){var t=this.seekable(),i=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,i)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+i+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:i}))return this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=Ru(r,i);if(s.length>0){var o=s.start(0)-i;return this.logger_("Stopped at "+i+", setting timer for "+o+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,i),!0}return!1},i.afterSeekableWindow_=function(t,i,n,e){if(void 0===e&&(e=!1),!t.length)return!1;var r=t.end(t.length-1)+.1;return!n.endList&&e&&(r=t.end(t.length-1)+3*n.targetDuration),i>r},i.beforeSeekableWindow_=function(t,i){return!!(t.length&&t.start(0)>0&&i<t.start(0)-this.liveRangeSafeTimeDelta)},i.videoUnderflow_=function(t){var i=t.videoBuffered,n=t.audioBuffered,e=t.currentTime;if(i){var r;if(i.length&&n.length){var s=Nu(i,e-3),o=Nu(i,e),a=Nu(n,e);a.length&&!o.length&&s.length&&(r={start:s.end(0),end:a.end(0)})}else Ru(i,e).length||(r=this.gapFromVideoUnderflow_(i,e));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+e),!0)}},i.skipTheGap_=function(t){var i=this.tech_.buffered(),n=this.tech_.currentTime(),e=Ru(i,n);this.cancelTimer_(),0!==e.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",e.start(0)),this.tech_.setCurrentTime(e.start(0)+.03333333333333333),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},i.gapFromVideoUnderflow_=function(t,i){for(var n=function(t){if(t.length<2)return Tu.createTimeRanges();for(var i=[],n=1;n<t.length;n++){var e=t.end(n-1),r=t.start(n);i.push([e,r])}return Tu.createTimeRanges(i)}(t),e=0;e<n.length;e++){var r=n.start(e),s=n.end(e);if(i-r<4&&i-r>2)return{start:r,end:s}}return null},t}(),rf={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},sf=function t(i,n){var e=0,r=0,s=Tu.mergeOptions(rf,n);i.ready((function(){i.trigger({type:"usage",name:"vhs-error-reload-initialized"}),i.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&i.currentTime(r)},a=function(t){null!=t&&(r=i.duration()!==1/0&&i.currentTime()||0,i.one("loadedmetadata",o),i.src(t),i.trigger({type:"usage",name:"vhs-error-reload"}),i.trigger({type:"usage",name:"hls-error-reload"}),i.play())},u=function(){return Date.now()-e<1e3*s.errorInterval?(i.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void i.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(e=Date.now(),s.getSource.call(i,a)):void Tu.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},h=function t(){i.off("loadedmetadata",o),i.off("error",u),i.off("dispose",t)};i.on("error",u),i.on("dispose",h),i.reloadSourceOnError=function(n){h(),t(i,n)}},of=function(t){sf(this,t)},af={PlaylistLoader:lh,Playlist:$u,utils:Ah,STANDARD_PLAYLIST_SELECTOR:uc,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,i=this.playlists.master.playlists.filter($u.isEnabled);return sc(i,(function(t,i){return oc(t,i)})),i.filter((function(i){return!!ic(t.playlists.master,i).video}))[0]||null},lastBandwidthSelector:uc,movingAverageBandwidthSelector:function(t){var i=-1,n=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var e=this.useDevicePixelRatio&&B.devicePixelRatio||1;return i<0&&(i=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(i=t*this.systemBandwidth+(1-t)*i,n=this.systemBandwidth),ac(this.playlists.master,i,parseInt(rc(this.tech_.el(),"width"),10)*e,parseInt(rc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:oc,comparePlaylistResolution:function(t,i){var n,e;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i.attributes.RESOLUTION&&i.attributes.RESOLUTION.width&&(e=i.attributes.RESOLUTION.width),(n=n||B.Number.MAX_VALUE)===(e=e||B.Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&i.attributes.BANDWIDTH?t.attributes.BANDWIDTH-i.attributes.BANDWIDTH:n-e},xhr:mh()};Object.keys(Rh).forEach((function(t){Object.defineProperty(af,t,{get:function(){return Tu.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),Rh[t]},set:function(i){Tu.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof i||i<0?Tu.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):Rh[t]=i}})}));var uf=function(t,i){for(var n=i.media(),e=-1,r=0;r<t.length;r++)if(t[r].id===n.id){e=r;break}t.selectedIndex_=e,t.trigger({selectedIndex:e,type:"change"})};af.canPlaySource=function(){return Tu.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var hf=function(){if(!B.localStorage)return null;var t=B.localStorage.getItem("videojs-vhs");if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};af.supportsNativeHls=function(){if(!z||!z.createElement)return!1;var t=z.createElement("video");return!!Tu.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(i){return/maybe|probably/i.test(t.canPlayType(i))}))}(),af.supportsNativeDash=!!(z&&z.createElement&&Tu.getTech("Html5").isSupported())&&/maybe|probably/i.test(z.createElement("video").canPlayType("application/dash+xml")),af.supportsTypeNatively=function(t){return"hls"===t?af.supportsNativeHls:"dash"===t&&af.supportsNativeDash},af.isSupported=function(){return Tu.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var cf=function(t){function i(i,n,e){var r;if(r=t.call(this,n,Tu.mergeOptions(e.hls,e.vhs))||this,e.hls&&Object.keys(e.hls).length&&Tu.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof e.initialBandwidth&&(r.options_.bandwidth=e.initialBandwidth),r.logger_=Du("VhsHandler"),n.options_&&n.options_.playerId){var s=Tu(n.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Tu.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),H(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Tu.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),H(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Tu.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),H(r)},configurable:!0}),r.player_=s}if(r.tech_=n,r.source_=i,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(z,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(){var t=z.fullscreenElement||z.webkitFullscreenElement||z.mozFullScreenElement||z.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}X(i,t);var n=i.prototype;return n.setOptions_=function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var i=hf();i&&i.bandwidth&&(this.options_.bandwidth=i.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),i&&i.throughput&&(this.options_.throughput=i.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Rh.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Rh.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS"].forEach((function(i){void 0!==t.source_[i]&&(t.options_[i]=t.source_[i])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(t,i){var n=this;if(t){var e;this.setOptions_(),this.options_.src=0===(e=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,this.options_.tech=this.tech_,this.options_.externVhs=af,this.options_.sourceType=ii(i),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t)},this.options_.smoothQualityChange&&Tu.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new $c(this.options_);var r=Tu.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new ef(r),this.masterPlaylistController_.on("error",(function(){var t=Tu.players[n.tech_.options_.playerId],i=n.masterPlaylistController_.error;"object"!=typeof i||i.code?"string"==typeof i&&(i={message:i,code:3}):i.code=3,t.error(i)}));var s=this.options_.experimentalBufferBasedABR?af.movingAverageBandwidthSelector(.55):af.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=af.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){Tu.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Cu(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Cu(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(t){if(!B.localStorage)return!1;var i=hf();i=i?Tu.mergeOptions(i,t):t;try{B.localStorage.setItem("videojs-vhs",JSON.stringify(i))}catch(t){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t;(t=n).representations=function(){var i=t.masterPlaylistController_.master(),n=Zu(i)?t.masterPlaylistController_.getAudioTrackPlaylists_():i.playlists;return n?n.filter((function(t){return!Wu(t)})).map((function(i){return new tf(t,i,i.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=B.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var t,i,n,e=this,r=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=(t={player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:r&&r.media()},i=t.player,!(!(n=function(t,i,n){if(!t)return t;var e={};i&&i.attributes&&i.attributes.CODECS&&(e=$h(Yt(i.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(e.audio=n.attributes.CODECS);var r=Qt(e.video),s=Qt(e.audio),o={};for(var a in t)o[a]={},s&&(o[a].audioContentType=s),r&&(o[a].videoContentType=r),i.contentProtection&&i.contentProtection[a]&&i.contentProtection[a].pssh&&(o[a].pssh=i.contentProtection[a].pssh),"string"==typeof t[a]&&(o[a].url=t[a]);return Tu.mergeOptions(t,o)}(t.sourceKeySystems,t.media,t.audioMedia))||(i.currentSource().keySystems=n,n&&!i.eme&&(Tu.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))));11!==Tu.browser.IE_VERSION&&s?(this.logger_("waiting for EME key session creation"),function(t){var i=t.player,n=t.sourceKeySystems,e=t.audioMedia,r=t.mainPlaylists;if(!i.eme.initializeMediaKeys)return Promise.resolve();var s,o,a=(s=e?r.concat([e]):r,o=Object.keys(n),s.reduce((function(t,i){if(!i.contentProtection)return t;var n=o.reduce((function(t,n){var e=i.contentProtection[n];return e&&e.pssh&&(t[n]={pssh:e.pssh}),t}),{});return Object.keys(n).length&&t.push(n),t}),[])),u=[],h=[];return a.forEach((function(t){h.push(new Promise((function(t){i.tech_.one("keysessioncreated",t)}))),u.push(new Promise((function(n,e){i.eme.initializeMediaKeys({keySystems:t},(function(t){t?e(t):n()}))})))})),Promise.race([Promise.all(u),Promise.race(h)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:r&&r.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var t=this,i=Tu.players[this.tech_.options_.playerId];i&&i.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=i.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var i,n;i=t.qualityLevels_,(n=t).representations().forEach((function(t){i.addQualityLevel(t)})),uf(i,n.playlists)})),this.playlists.on("mediachange",(function(){uf(t.qualityLevels_,t.playlists)})))},i.version=function(){return{"@videojs/http-streaming":"2.9.1","mux.js":"5.11.1","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Cc.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&B.URL.revokeObjectURL&&(B.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),t.prototype.dispose.call(this)},n.convertToProgramTime=function(t,i){return function(t){var i=t.playlist,n=t.time,e=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!i||void 0===e)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(t,i){if(!i||!i.segments||0===i.segments.length)return null;for(var n,e=0,r=0;r<i.segments.length&&!(t<=(e=(n=i.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:e+n.duration));r++);var s=i.segments[i.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>e){if(t>e+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:e-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(e,i);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var o={mediaSeconds:e},a=function(t,i){if(!i.dateTimeObject)return null;var n=t-(i.videoTimingInfo.transmuxedPresentationStart+i.videoTimingInfo.transmuxerPrependedSeconds);return new Date(i.dateTimeObject.getTime()+1e3*n)}(e,s.segment);return a&&(o.programDateTime=a.toISOString()),r(null,o)}({playlist:this.masterPlaylistController_.media(),time:t,callback:i})},n.seekToProgramTime=function(t,i,n,e){return void 0===n&&(n=!0),void 0===e&&(e=2),Eh({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:e,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})},i}(Tu.getComponent("Component")),ff={name:"videojs-http-streaming",VERSION:"2.9.1",canHandleSource:function(t,i){void 0===i&&(i={});var n=Tu.mergeOptions(Tu.options,i);return ff.canPlayType(t.type,n)},handleSource:function(t,i,n){void 0===n&&(n={});var e=Tu.mergeOptions(Tu.options,n);return i.vhs=new cf(t,i,e),Tu.hasOwnProperty("hls")||Object.defineProperty(i,"hls",{get:function(){return Tu.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),i.vhs},configurable:!0}),i.vhs.xhr=mh(),i.vhs.src(t.src,t.type),i.vhs},canPlayType:function(t,i){void 0===i&&(i={});var n=Tu.mergeOptions(Tu.options,i).vhs.overrideNative,e=void 0===n?!Tu.browser.IS_ANY_SAFARI:n,r=ii(t);return!r||af.supportsTypeNatively(r)&&!e?"":"maybe"}};Kt("avc1.4d400d,mp4a.40.2")&&Tu.getTech("Html5").registerSourceHandler(ff,0),Tu.VhsHandler=cf,Object.defineProperty(Tu,"HlsHandler",{get:function(){return Tu.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),cf},configurable:!0}),Tu.VhsSourceHandler=ff,Object.defineProperty(Tu,"HlsSourceHandler",{get:function(){return Tu.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),ff},configurable:!0}),Tu.Vhs=af,Object.defineProperty(Tu,"Hls",{get:function(){return Tu.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),af},configurable:!0}),Tu.use||(Tu.registerComponent("Hls",af),Tu.registerComponent("Vhs",af)),Tu.options.vhs=Tu.options.vhs||{},Tu.options.hls=Tu.options.hls||{},Tu.registerPlugin?Tu.registerPlugin("reloadSourceOnError",of):Tu.plugin("reloadSourceOnError",of);const lf=class{constructor(n){t(this,n),this.playerStateChanges=i(this,"playerStateChanges",7),this.playerClicked=i(this,"playerClicked",7),this.videoWidthSet=i(this,"videoWidthSet",7),this.fullscreen=!0,this.controls=!0,this.autoplay=!1,this.preload="auto",this.muted=!1,this.lightBackground=!1,this.simpleMode=!1,this.showDuration=!1}async pauseVideo(){this.player&&this.player.pause&&this.player.pause()}async playVideo(){if(!this.player.error||!this.player.error())return this.player&&this.player.play?this.player.play():void 0}async getCurrentTime(){let t=Promise.resolve(0);return this.player&&this.player.currentTime&&(t=Promise.resolve(this.player.currentTime())),t}async updateCurrentTime(t){return this.player&&this.player.currentTime?this.player.currentTime(t):Promise.resolve(!0)}async onTriggerFullscreen(t=this.modalOptions){const i=await this.getCurrentTime(),n={source:this.source,startTime:i,subtitles:this.subtitles};return this.simpleMode&&this.pauseVideo(),C("videojs",n,t)}async preserveAspectRatio(t,i){var n;if(this.containerWidth||(this.containerWidth=null===(n=this.host)||void 0===n?void 0:n.offsetWidth),0===this.containerWidth&&(this.containerWidth=this.host.getBoundingClientRect().width||375),this.containerWidth<0)return;const e=c(t,i,[1,1.33,.75]);let r="100vw",s="210px";const o=this.containerWidth/(this.modalOptions.baseRatio||1);.75===e?(s=o/e+"px",r=`${o}px`,f(this.host)&&(s=`${o}px`,r="100%"),this.scaledUpInWidth&&(r=o/2+"px",s=o/2/e+"px")):1===e?(s=`${o}px`,r=`${o}px`):(s=this.containerWidth/e+"px",r=`${this.containerWidth}px`),this.host.style.setProperty("--video-width",r),this.host.style.setProperty("--video-height",s),this.host.style.setProperty("--video-min-height","initial"),this.disconnected||(this.videoWidthSet.emit(!0),l("itemHeightUpdated",this.host))}onSourceChange(t){this.onUpdateVideoJSSource(t)}async componentWillLoad(){this.source=await w(this.source),this.source=O(this.source),this.fallbackSrc=this.onGetFallbackSrc(this.source),this.currentFallbackSrcIndex=0}componentDidLoad(){if(this.onInitVideoJs(),this.fullscreen&&this.onCustomizeFullscreenButton(),this.autoPauseOnLeavingViewPort&&this.observeVisibility(),this.scaledUp&&f(this.host)&&(this.resizeListener=d(this.onScreenResize,500).bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("screenSizeWillChange",this.resizeListener)),this.noSwiping){const t=N(this.host,".vjs-control-bar");t&&t.classList.add("swiper-no-swiping")}}connectedCallback(){this.disconnected=!1}disconnectedCallback(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("screenSizeWillChange",this.resizeListener)),this.disconnected=!0,this.resizeListener=void 0,this.removeIntersectionObserver()}observeVisibility(){this.observer=M(this.host,(t=>{var i;(!t[0].isIntersecting||(null===(i=t[0].boundingClientRect)||void 0===i?void 0:i.top)<0)&&(this.pauseVideo(),this.removeIntersectionObserver())}),{rootMargin:"30px",threshold:[0,.25,.75,1],root:null})}removeIntersectionObserver(){this.observer&&(this.observer.unobserve(this.host),this.observer.disconnect(),this.observer=void 0)}onScreenResize(){var t,i;this.scaledUp&&(this.containerWidth=null===(i=null===(t=this.host)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.clientWidth,this.preserveAspectRatio())}onInitVideoJs(){this.disconnected||(this.showErrorFallback&&(this.showErrorFallback=!1),this.player=Tu(this.videoEl,{muted:this.muted,autoplay:this.autoplay}),this.player.on("play",(()=>{this.ended=!1,this.disconnected||this.playerStateChanges.emit(P.PLAYING),this.isPlaying=!0,this.autoPauseOnLeavingViewPort&&this.observeVisibility()})),this.player.on("pause",(()=>{this.disconnected||this.playerStateChanges.emit(P.PAUSED)})),this.player.on("ended",(()=>{this.disconnected||this.playerStateChanges.emit(P.ENDED),this.isPlaying=!1,this.ended=!0})),this.player.on("error",(()=>{this.onVideoJSError()})),this.player.on("loadedmetadata",(t=>{var i,n;this.player&&this.player.duration()>=0&&(this.videoDuration=I.timer.transform(Math.round(this.player.duration()),"seconds")),this.disconnected||this.playerStateChanges.emit(P.PLAYER_READY);const e=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.firstElementChild;e&&this.scaledUp&&!this.mediaDimension&&this.preserveAspectRatio(e.videoWidth,e.videoHeight),(null===(n=this.subtitles)||void 0===n?void 0:n.length)>0&&(this.subtitles.forEach((t=>{let i=null==t?void 0:t.src;const n=v(i);let e=Promise.resolve(i);("srt"===n||"vtt"===n||(null==t?void 0:t.mimeType))&&(p(i)?e=Promise.resolve(new Blob([i])):"string"==typeof i&&(e=m()?x(k(i)):T(i))),e.then((async e=>{let r=m()?A(e,{name:k(i)}):e;if(r){if("srt"===n){let t=await r.text();t=D(t),r=new Blob([t],{type:"text/vtt"})}i=URL.createObjectURL(r),this.player.addRemoteTextTrack({src:i,srclang:t.srclang,label:t.label,kind:t.kind},!0)}}))})),setTimeout((()=>{const t=this.player.textTracks(),i=j();for(let n=0;n<t.length;n++){const e=t[n],r=["ca","us"]&&"en"===e.language;if((e.language===i||r)&&!this.videoTrackSet){e.mode="showing",this.videoTrackSet=!0;break}}}),500))})),this.player.on("touchstart",(t=>{var i,n;(null===(n=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.classList)||void 0===n?void 0:n.contains("vjs-icon-placeholder"))?t.stopPropagation():this.playerClicked.emit(!0)})))}onFixSource(t){var i;(null===(i=this.player)||void 0===i?void 0:i.src)&&t&&(t.withCredentials=!0,this.player.src(t),this.player.load())}onVideoJSError(){var t;0!==this.currentFallbackSrcIndex||(null===(t=this.source)||void 0===t?void 0:t.includes("q_auto:eco"))||this.currentFallbackSrcIndex++,this.currentFallbackSrcIndex<this.fallbackSrc.length?(this.onFixSource(this.fallbackSrc[this.currentFallbackSrcIndex]),this.currentFallbackSrcIndex++):this.showErrorFallback||(this.showErrorFallback=!0,this.currentFallbackSrcIndex=0)}onUpdateVideoJSSource(t){this.fallbackSrc=this.onGetFallbackSrc(t),this.currentFallbackSrcIndex=0,this.player&&(this.player.src(this.fallbackSrc[this.currentFallbackSrcIndex]),this.player.poster&&this.player.poster(E(t)),this.player.load())}onGetFallbackSrc(t){const i=v(t)||"*",n=(null==t?void 0:t.includes)&&(null==t?void 0:t.includes("q_auto:eco")),e=S(t,"mp4");return g([n?{src:new b(t).quality("eco").getUrl()}:null,"mp4"!==i&&n?{src:new b(e).quality("eco").getUrl()}:null,"mp4"!==i?{src:e}:null,{src:t},{src:new b(t).videoCodec("h265").width(1280).crop("limit").getUrl()},{src:m()?t:S(new b(t).videoCodec("vp9").width(1280).crop("limit").getUrl(),"webm")},{src:new b(t).videoCodec("auto").width(1280).crop("limit").getUrl()},{src:new b(t).videoCodec("auto").width(1280).getUrl()}])}onOverlayPlay(t){t?(this.player.load(),this.showErrorFallback=!1):this.playVideo(),setTimeout((()=>{var t;this.isPlaying=!(null===(t=this.player)||void 0===t?void 0:t.paused())}),100)}onCustomizeFullscreenButton(){const t=new(Tu.getComponent("Button"))(this.player);t.el().classList.add("vjs-fullscreen-control"),t.el().classList.add("custom"),t.el().addEventListener("click",(()=>this.onTriggerFullscreen())),t.el().addEventListener("touchend",(()=>this.onTriggerFullscreen())),this.player.controlBar.addChild(t)}renderVideoElement(){var t;const i=y(this.poster)?U(this.poster?this.poster:this.source,this.videoWidth,this.videoHeight):null,e=(null===(t=this.source)||void 0===t?void 0:t.includes("q_auto:eco"))?this.source:new b(this.source).quality("eco").getUrl();let r=this.extension||v(e);return"mov"===r&&(r="mp4"),n("div",{class:"video-container"},n("video",{ref:t=>this.videoEl=t,class:"video-js",playsinline:!0,preload:this.preload,autoplay:this.autoplay,controls:this.controls,muted:this.muted,poster:i,crossorigin:"anonymous","data-setup":"{}"},n("source",{src:e,type:`video/${r}`})))}renderErrorFallback(){var t;if((null===(t=this.player)||void 0===t?void 0:t.error)&&this.player.error()&&this.showErrorFallback)return n("div",{class:"error-overlay"},n("yoo-icon",{size:this.iconSize?this.iconSize:"extra-large",color:"light",class:"play",name:"play",onClick:()=>{this.showErrorFallback=!1,this.player.load()}}))}renderOverlay(){var t;const i=(null===(t=this.player)||void 0===t?void 0:t.error)&&this.player.error()&&this.showErrorFallback;return n("div",{class:{overlay:!0,hidden:(this.isPlaying||this.ended)&&!i}},this.showDuration&&n("span",null,this.videoDuration?this.videoDuration:""),n("yoo-icon",{size:this.iconSize?this.iconSize:"extra-large",color:"light",class:"play",name:"play",onClick:()=>{this.onOverlayPlay(i)}}))}render(){return this.mediaDimension&&this.preserveAspectRatio(this.mediaDimension.width,this.mediaDimension.height),n(e,{class:Object.assign(Object.assign({},R(this.host)),{light:this.lightBackground,"simple-mode":this.simpleMode,"scale-up":this.scaledUp,"scale-up-width":this.scaledUpInWidth,cover:this.cover})},this.renderVideoElement(),this.renderOverlay(),this.renderErrorFallback())}get host(){return r(this)}static get watchers(){return{source:["onSourceChange"]}}};lf.style='@charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f122"}.video-js{display:block;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{-webkit-box-sizing:inherit;box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-9-16{padding-top:177.7777777778%}.video-js.vjs-1-1{padding-top:100%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;-webkit-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;-webkit-transition:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-gradient(linear,left top, left bottom,from(rgba(0,0,0,.8)),to(rgba(255,255,255,0)));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{-webkit-box-sizing:border-box;box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{-webkit-box-sizing:border-box;box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;-ms-flex:none;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;-ms-flex:auto;flex:auto;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-width:4em;-ms-touch-action:none;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{-ms-flex:auto;flex:auto;-webkit-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;-ms-flex:none;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:-ms-flexbox;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{-webkit-transition:width 1s;transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;-webkit-transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;-webkit-transition:left 0s;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;-webkit-transition:width .1s;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{-webkit-transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;-webkit-transition:none;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:-ms-flexbox;display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex:none;flex:none;display:-ms-inline-flexbox;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;-ms-flex:none;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);-webkit-box-sizing:border-box;box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;-webkit-box-sizing:inherit;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-audio-button,.video-js.vjs-layout-small .vjs-captions-button,.video-js.vjs-layout-small .vjs-chapters-button,.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-descriptions-button,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-subtitles-button,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-audio-button,.video-js.vjs-layout-tiny .vjs-captions-button,.video-js.vjs-layout-tiny .vjs-chapters-button,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-descriptions-button,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-subtitles-button,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-audio-button,.video-js.vjs-layout-x-small .vjs-captions-button,.video-js.vjs-layout-x-small .vjs-chapters-button,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-descriptions-button,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-subtitles-button,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none!important}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js.vjs-layout-tiny .vjs-subs-caps-button,.video-js.vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js.vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js.vjs-layout-tiny .vjs-custom-control-spacer,.video-js.vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{-ms-flex:auto;flex:auto;display:block}.video-js.vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js.vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:-webkit-gradient(linear,left bottom, left top,color-stop(88%, #fff),to(#73859f));background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:-webkit-gradient(linear,left top, left bottom,color-stop(88%, #fff),to(#73859f));background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}:root{--ease-in-back:cubic-bezier(0.36, 0, 0.66, -0.56);--ease-in-circ:cubic-bezier(0.55, 0, 1, 0.45);--ease-in-cubic:cubic-bezier(0.32, 0, 0.67, 0);--ease-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ease-in-quad:cubic-bezier(0.11, 0, 0.5, 0);--ease-in-quart:cubic-bezier(0.5, 0, 0.75, 0);--ease-in-quint:cubic-bezier(0.64, 0, 0.78, 0);--ease-in-sine:cubic-bezier(0.12, 0, 0.39, 0);--ease-out-back:cubic-bezier(0.34, 1.56, 0.64, 1);--ease-out-circ:cubic-bezier(0, 0.55, 0.45, 1);--ease-out-cubic:cubic-bezier(0.33, 1, 0.68, 1);--ease-out-expo:cubic-bezier(0.16, 1, 0.3, 1);--ease-out-quad:cubic-bezier(0.5, 1, 0.89, 1);--ease-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ease-out-quint:cubic-bezier(0.22, 1, 0.36, 1);--ease-out-sine:cubic-bezier(0.61, 1, 0.88, 1);--ease-in-out-back:cubic-bezier(0.68, -0.6, 0.32, 1.6);--ease-in-out-circ:cubic-bezier(0.85, 0, 0.15, 1);--ease-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ease-in-out-expo:cubic-bezier(0.87, 0, 0.13, 1);--ease-in-out-quad:cubic-bezier(0.45, 0, 0.55, 1);--ease-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ease-in-out-quint:cubic-bezier(0.83, 0, 0.17, 1);--ease-in-out-sine:cubic-bezier(0.37, 0, 0.63, 1)}.tippy-box,.tippy-popper{white-space:pre-wrap}.tippy-box .tippy-tooltip,.tippy-popper .tippy-tooltip{padding:var(--spacing-02, 0.125rem)}.tippy-box{-webkit-box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1))}.tippy-box .tippy-content.editable{padding:0}.tippy-box .tippy-content .flex{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.tippy-box .tippy-content .hidden{display:none}.tippy-box .tippy-content .editable-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--dark, #000000)}.tippy-box .tippy-content .editable-content .text-content{min-width:5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content .text-content>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content.readonly{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .maxchar-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:end;align-self:flex-end;height:var(--spacing-24, 1.5rem);padding-right:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content yoo-button{padding:0 var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content .edit-content{-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content .edit-content yoo-icon{padding-left:var(--spacing-08, 0.5rem);cursor:pointer}.tippy-box .tippy-content .editable-content .edit-content>*{cursor:pointer}.tippy-box .tippy-content .request-access{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .request-access .title{margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700)}.tippy-box .tippy-content .request-access .sub-title{display:-ms-flexbox;display:flex;margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-300, 300);font-size:var(--font-size-14, 0.875rem)}.tippy-box .tippy-content .request-access .sub-title yoo-avatar{margin:0 var(--spacing-04, 0.25rem)}.tippy-box .tippy-content .request-access yoo-button{max-width:8rem}.tippy-box[data-theme~=startameeting] .tippy-content{padding:0;border-radius:var(--border-radius-04, 0.25rem)}.tippy-box[data-theme~=large]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content .text-content{padding-right:var(--spacing-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=small] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content .text-content{padding-right:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=accent]{background-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=accent] .tippy-svg-arrow{fill:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--accent, #276ef1)}.tippy-box[data-theme~=anthracite]{background-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite] .tippy-svg-arrow{fill:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=app-color]{background-color:var(--app-color)}.tippy-box[data-theme~=app-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=app-color] .tippy-svg-arrow{fill:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--app-color)}.tippy-box[data-theme~=danger]{background-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger] .tippy-svg-arrow{fill:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger-light]{background-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger-light] .tippy-svg-arrow{fill:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=dark]{background-color:var(--dark, #000000)}.tippy-box[data-theme~=dark] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=dark] .tippy-svg-arrow{fill:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--dark, #000000)}.tippy-box[data-theme~=energized]{background-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=energized] .tippy-svg-arrow{fill:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--energized, #fed05b)}.tippy-box[data-theme~=info]{background-color:var(--info, #fc459e)}.tippy-box[data-theme~=info] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=info] .tippy-svg-arrow{fill:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--info, #fc459e)}.tippy-box[data-theme~=light]{background-color:var(--light, #ffffff)}.tippy-box[data-theme~=light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light] .tippy-svg-arrow{fill:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light, #ffffff)}.tippy-box[data-theme~=light-orange]{background-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-orange] .tippy-svg-arrow{fill:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-to-text-color]{background-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-to-text-color] .tippy-svg-arrow{fill:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=royal]{background-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=royal] .tippy-svg-arrow{fill:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--royal, #7577ff)}.tippy-box[data-theme~=stable]{background-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable] .tippy-svg-arrow{fill:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable-alt]{background-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-alt] .tippy-svg-arrow{fill:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-light]{background-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-light] .tippy-svg-arrow{fill:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-ultralight]{background-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-ultralight] .tippy-svg-arrow{fill:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=success]{background-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=success] .tippy-svg-arrow{fill:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--success, #3aa76d)}.tippy-box[data-theme~=text-color]{background-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=text-color] .tippy-svg-arrow{fill:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--text-color, #807f83)}.tippy-box[data-theme~=warning]{background-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=warning] .tippy-svg-arrow{fill:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--warning, #ff6402)}.tippy-box[data-theme~=anthracite-to-text-color]{background-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-svg-arrow{fill:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite-to-text-color, #1a1a1a)}:root{--safe-area-inset-top:0;--safe-area-inset-right:0;--safe-area-inset-bottom:0;--safe-area-inset-left:0}@supports (top: constant(safe-area-inset-top)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-right:constant(safe-area-inset-right);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left)}}@supports (top: env(safe-area-inset-top)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}}.fr-popup.fr-active{z-index:30004 !important;display:block !important;opacity:1 !important}:host{--iphone-x-frame-padding:30px;--video-height:100%;--video-min-height:190px;--video-width:100%;position:relative;display:block;width:100%;height:100%}:host .overlay{position:absolute;top:0;bottom:0;z-index:2;width:100%;height:100%;background:var(--dark-60, rgba(0, 0, 0, 0.6))}:host .overlay span{position:absolute;right:var(--spacing-16, 1rem);bottom:var(--spacing-20-deprecated, 1.25rem);color:var(--light-to-dark, #ffffff)}:host .overlay.hidden{z-index:-1;opacity:0}:host .overlay yoo-icon.play{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host .overlay yoo-icon.play.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host .video-container{position:absolute;z-index:1;width:100%;height:100%}:host .video-container video{width:var(--video-width);height:100%}:host .video-container .video-js{position:relative;width:100% !important;height:100% !important;overflow:hidden}:host .video-container .video-js *{font-family:VideoJS, Helvetica, sans-serif !important}:host .video-container .video-js video{width:var(--video-width) !important;height:var(--video-height) !important}:host .video-container .video-js video:focus{outline:none}:host .video-container .video-js button:last-child{display:none}:host .video-container .video-js button:focus{outline:0}:host .video-container .video-js button.vjs-big-play-button{z-index:5;display:none;background:transparent;opacity:0}:host .video-container .video-js button.vjs-fullscreen-control,:host .video-container .video-js button.vjs-picture-in-picture-control{display:none}:host .video-container .video-js button.vjs-fullscreen-control.custom{display:block}:host .video-container .video-js .vjs-control-bar{height:2.75rem}:host .video-container .video-js .vjs-control-bar .vjs-play-control{margin-right:4rem}:host .video-container .video-js .vjs-control-bar .vjs-time-control,:host .video-container .video-js .vjs-control-bar .vjs-control{font-size:var(--font-size-14, 0.875rem)}:host .video-container .video-js .vjs-control-bar .vjs-icon-placeholder:before{line-height:2}:host .video-container .video-js.vjs-paused button.vjs-big-play-button{display:block}:host .video-container .video-js .vjs-menu-button-popup .vjs-menu{left:-5.5rem}:host .video-container .video-js .vjs-menu-item.vjs-texttrack-settings{display:none}:host .video-container .video-js .vjs-text-track-cue{font-size:var(--font-size-20, 1.25rem) !important}:host(.light) .video-js{height:100%;background-color:var(--light-to-dark, #ffffff)}:host(.iphone-x.fullscreen) .video-js .vjs-control-bar,:host(.iphone-x.modal-mode) .video-js .vjs-control-bar{height:4rem;font-size:var(--font-size-16, 1rem)}:host(.iphone-x.fullscreen) .video-js .vjs-control-bar .vjs-progress-control,:host(.iphone-x.modal-mode) .video-js .vjs-control-bar .vjs-progress-control{-ms-flex-align:baseline;align-items:baseline;padding-top:1.5rem}:host(.iphone-x.landscape.modal-mode) .video-js{padding-right:var(--iphone-x-frame-padding);padding-left:var(--iphone-x-frame-padding)}:host(.simple-mode) .video-container .video-js .vjs-control-bar{-ms-flex-pack:end;justify-content:flex-end;border-radius:0 0 8px 8px}:host(.simple-mode) .video-container .video-js .vjs-control-bar button.vjs-play-control{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host(.simple-mode) .video-container .video-js .vjs-control-bar button.vjs-play-control.rtl{top:50%;right:50%;-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-progress-control{display:none}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-volume-panel{-ms-flex-order:3;order:3}:host(.simple-mode) .video-container .video-js .vjs-control-bar .vjs-fullscreen-control{-ms-flex-order:4;order:4}:host(.simple-mode) .video-container .video-js.vjs-has-started.vjs-paused button.vjs-big-play-button{display:none}:host(.scale-up){width:var(--video-width);height:var(--video-height);min-height:var(--video-min-height)}:host(.scale-up-width){--video-height:auto}:host(.scale-up-width) .video-container,:host(.scale-up-width) .video-container .video-js,:host(.scale-up-width) .video-container .video-js .vjs-tech{position:initial}:host(.scale-up-width) .video-container video,:host(.scale-up-width) .video-container .video-js video,:host(.scale-up-width) .video-container .video-js .vjs-tech video{-o-object-fit:fill !important;object-fit:fill !important}:host(.cover) .vjs-poster{background-size:cover}:host(.hide-overlay) .overlay{display:none}';export{lf as yoo_videoplayer_videojs}