PageSourceSearch

https://medlibre.ai/996.e1305e517dbdd1a2.js

js medlibre.ai collected 2026-10-05 15:00:10 UTC 673,466 bytes, 1 lines download raw bytes

vendor: 5,596 bytes, line 1
1(self.webpackChunkmedlibre=self.webpackChunkmedlibre||[]).push([[996],{6996:(Oe,ye,ae)=>{"use strict";ae.r(ye),ae.d(ye,{TeleConsultationModule:()=>l_});var J=ae(6814),fe=ae(3244),z=ae(6505),Te=ae(6321),Y=ae(4825),g=ae(9212),me=ae(1765),_e=ae(9344),le=ae(8235),Ue=ae(6382),v=ae.n(Ue),ke=ae(7598),V=ae.n(ke),Ye=ae(8317),ve=ae.n(Ye),tt=ae(4135),te=ae.n(tt),ce=ae(3817),Ce=ae.n(ce),Ne=ae(5506),de=ae.n(Ne);function Re(){return Re=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=t[i])}return s},Re.apply(this,arguments)}var je=ae(6367),Ie=ae.n(je);const R=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=v().location&&v().location.href||"");var i="function"==typeof v().URL,r=/^\/\//.test(e),n=!v().location&&!/\/\//i.test(e);if(i?e=new(v().URL)(e,v().location||"http://example.com"):/\/\//i.test(e)||(e=Ie().buildAbsoluteURL(v().location&&v().location.href||"",e)),i){var a=new URL(t,e);return n?a.href.slice(18):r?a.href.slice(a.protocol.length):a.href}return Ie().buildAbsoluteURL(e,t)};var Z=function(){function s(){this.listeners={}}var e=s.prototype;return e.on=function(i,r){this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push(r)},e.off=function(i,r){if(!this.listeners[i])return!1;var n=this.listeners[i].indexOf(r);return this.listeners[i]=this.listeners[i].slice(0),this.listeners[i].splice(n,1),n>-1},e.trigger=function(i){var r=this.listeners[i];if(r)if(2===arguments.length)for(var n=r.length,a=0;a<n;++a)r[a].call(this,arguments[1]);else for(var u=Array.prototype.slice.call(arguments,1),h=r.length,p=0;p<h;++p)r[p].apply(this,u)},e.dispose=function(){this.listeners={}},e.pipe=function(i){this.on("data",function(r){i.push(r)})},s}();function oe(s){for(var e=function(e){return v().atob?v().atob(e):Buffer.from(e,"base64").toString("binary")}(s),t=new Uint8Array(e.length),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}class re extends Z{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const pe=String.fromCharCode(9),ee=function(s){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(s||""),t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t},W=function(s){const e={};if(!s)return e;const t=s.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let r,i=t.length;for(;i--;)""!==t[i]&&(r=/([^=]*)=(.*)/.exec(t[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),e[r[0]]=r[1]);return e};class ie extends Z{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((n,a)=>{const u=a(e);return u===e?n:n.concat([u])},[e]).forEach(n=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,n))return;if(0===n.indexOf("#EXT"))if(n=n.replace("\r",""),t=/^#EXTM3U/.exec(n),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(n),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(n),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(n),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(n),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(n),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(n),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(n),t)return i=Re(ee(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(n),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(n),t){if(i={type:"tag",tagType:"map"},t[1]){const a=W(t[1]);a.URI&&(i.uri=a.URI),a.BYTERANGE&&(i.byterange=ee(a.BYTERANGE))}this.trigger("data",i)}else if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(n),t){if(i={type:"tag",tagType:"stream-inf"},t[1]){if(i.attributes=W(t[1]),i.attributes.RESOLUTION){const a=i.attributes.RESOLUTION.split("x"),u={};a[0]&&(u.width=parseInt(a[0],10)),a[1]&&(u.height=parseInt(a[1],10)),i.attributes.RESOLUTION=u}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i)}else{if(t=/^#EXT-X-MEDIA:(.*)$/.exec(n),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=W(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(n),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(n),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(n),t)return i={type:"tag",tagType:"program-date-time"}
vendor: 4,339 bytes, line 1
1,t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(n),t)return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=W(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(n),t)return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=W(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(n),t)return i={type:"tag",tagType:"cue-out-cont"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(n),t)return i={type:"tag",tagType:"cue-out"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(n),t)return i={type:"tag",tagType:"cue-in"},i.data=t[1]?t[1]:"",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"skip"},i.attributes=W(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(pe)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=W(t[1]),["DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=ee(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"server-control"},i.attributes=W(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),void this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=W(t[1]),["PART-TARGET"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=W(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(i.attributes.hasOwnProperty(a)){i.attributes[a]=parseInt(i.attributes[a],10);const u="BYTERANGE-LENGTH"===a?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[u]=i.attributes[a],delete i.attributes[a]}}),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(n),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=W(t[1]),["LAST-MSN","LAST-PART"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseInt(i.attributes[a],10))}),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(n),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=W(t[1]),["ID","CLASS"].forEach(function(u){i.attributes.hasOwnProperty(u)&&(i.attributes[u]=String(i.attributes[u]))}),["START-DATE","END-DATE"].forEach(function(u){i.attributes.hasOwnProperty(u)&&(i.attributes[u]=new Date(i.attributes[u]))}),["DURATION","PLANNED-DURATION"].forEach(function(u){i.attributes.hasOwnProperty(u)&&(i.attributes[u]=parseFloat(i.attributes[u]))}),["END-ON-NEXT"].forEach(function(u){i.attributes.hasOwnProperty(u)&&(i.attributes[u]=/YES/i.test(i.attributes[u]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(u){i.attributes.hasOwnProperty(u)&&(i.attributes[u]=i.attributes[u].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;
vendor: 20,625 bytes, line 1
1for(const u in i.attributes){if(!a.test(u))continue;const h=/[0-9A-Fa-f]{6}/g.test(i.attributes[u]),p=/^\d+(\.\d+)?$/.test(i.attributes[u]);i.attributes[u]=h?i.attributes[u].toString(16):p?parseFloat(i.attributes[u]):String(i.attributes[u])}this.trigger("data",i)}else{if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(n),!t)return t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(n),t?(i={type:"tag",tagType:"content-steering"},i.attributes=W(t[1]),void this.trigger("data",i)):void this.trigger("data",{type:"tag",data:n.slice(4)});this.trigger("data",{type:"tag",tagType:"independent-segments"})}}}}else this.trigger("data",{type:"comment",text:n.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:i,segment:r}){"function"!=typeof i&&(i=n=>n),this.customParsers.push(n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:i(n),customType:t,segment:r}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(r=>e.test(r)?t(r):r)}}const Le=function(s){const e={};return Object.keys(s).forEach(function(t){e[(s=>s.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()))(t)]=s[t]}),e},Ve=function(s){const{serverControl:e,targetDuration:t,partTargetDuration:i}=s;if(!e)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",u=t&&3*t,h=i&&2*i;t&&!e.hasOwnProperty(n)&&(e[n]=u,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${u}).`})),u&&e[n]<u&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${e[n]}) to targetDuration * 3 (${u})`}),e[n]=u),i&&!e.hasOwnProperty(a)&&(e[a]=3*i,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<h&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${h}).`}),e[a]=h)};class we extends Z{constructor(){super(),this.lineStream=new re,this.parseStream=new ie,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const e=this,t=[];let r,n,i={},a=!1;const u=function(){},h={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let _=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let b=0,I=0;const P={};this.on("end",()=>{i.uri||!i.parts&&!i.preloadHints||(!i.map&&r&&(i.map=r),!i.key&&n&&(i.key=n),!i.timeline&&"number"==typeof _&&(i.timeline=_),this.manifest.preloadSegment=i)}),this.parseStream.on("data",function(C){let N,B;({tag(){({version(){C.version&&(this.manifest.version=C.version)},"allow-cache"(){this.manifest.allowCache=C.allowed,"allowed"in C||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const $={};"length"in C&&(i.byterange=$,$.length=C.length,"offset"in C||(C.offset=b)),"offset"in C&&(i.byterange=$,$.offset=C.offset),b=$.offset+$.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),C.title&&(i.title=C.title),C.duration>0&&(i.duration=C.duration),0===C.duration&&(i.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=t},key(){if(C.attributes)if("NONE"!==C.attributes.METHOD){if(C.attributes.URI)return"com.apple.streamingkeydelivery"===C.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:C.attributes})):"com.microsoft.playready"===C.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:C.attributes.URI})):"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===C.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(C.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===C.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==C.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):C.attributes.KEYID&&"0x"===C.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:C.attributes.KEYFORMAT,keyId:C.attributes.KEYID.substring(2)},pssh:oe(C.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"})):(C.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:C.attributes.METHOD||"AES-128",uri:C.attributes.URI},void(typeof C.attributes.IV<"u"&&(n.iv=C.attributes.IV)));this.trigger("warn",{message:"ignoring key declaration without URI"})}else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(C.number)?this.manifest.mediaSequence=C.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+C.number})},"discontinuity-sequence"(){isFinite(C.number)?(this.manifest.discontinuitySequence=C.number,_=C.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+C.number})},"playlist-type"(){/VOD|EVENT/.test(C.playlistType)?this.manifest.playlistType=C.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+C.playlist})},map(){r={},C.uri&&(r.uri=C.uri),C.byterange&&(r.byterange=C.byterange),n&&(r.key=n)},"stream-inf"(){this.manifest.playlists=t,this.manifest.mediaGroups=this.manifest.mediaGroups||h,C.attributes?(i.attributes||(i.attributes={}),Re(i.attributes,C.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||h,!(C.attributes&&C.attributes.TYPE&&C.attributes["GROUP-ID"]&&C.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const $=this.manifest.mediaGroups[C.attributes.TYPE];$[C.attributes["GROUP-ID"]]=$[C.attributes["GROUP-ID"]]||{},N=$[C.attributes["GROUP-ID"]],B={default:/yes/i.test(C.attributes.DEFAULT)},B.autoselect=!!B.default||/yes/i.test(C.attributes.AUTOSELECT),C.attributes.LANGUAGE&&(B.language=C.attributes.LANGUAGE),C.attributes.URI&&(B.uri=C.attributes.URI),C.attributes["INSTREAM-ID"]&&(B.instreamId=C.attributes["INSTREAM-ID"]),C.attributes.CHARACTERISTICS&&(B.characteristics=C.attributes.CHARACTERISTICS),C.attributes.FORCED&&(B.forced=/yes/i.test(C.attributes.FORCED)),N[C.attributes.NAME]=B},discontinuity(){_+=1,i.discontinuity=!0,this.manifest.discontinuityStarts.push(t.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=C.dateTimeString,this.manifest.dateTimeObject=C.dateTimeObject),i.dateTimeString=C.dateTimeString,i.dateTimeObject=C.dateTimeObject;const{lastProgramDateTime:$}=this;this.lastProgramDateTime=new Date(C.dateTimeString).getTime(),null===$&&this.manifest.segments.reduceRight((M,X)=>(X.programDateTime=M-1e3*X.duration,X.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(C.duration)||C.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+C.duration}):(this.manifest.targetDuration=C.duration,Ve.call(this,this.manifest))},start(){C.attributes&&!isNaN(C.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:C.attributes["TIME-OFFSET"],precise:C.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){i.cueOut=C.data},"cue-out-cont"(){i.cueOutCont=C.data},"cue-in"(){i.cueIn=C.data},skip(){this.manifest.skip=Le(C.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",C.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const $=this.manifest.segments.length,M=Le(C.attributes);i.parts=i.parts||[],i.parts.push(M),M.byterange&&(M.byterange.hasOwnProperty("offset")||(M.byterange.offset=I),I=M.byterange.offset+M.byterange.length),this.warnOnMissingAttributes_(`#EXT-X-PART #${i.parts.length-1} for segment #${$}`,C.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((q,O)=>{q.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${O} lacks required attribute(s): LAST-PART`})})},"server-control"(){const $=this.manifest.serverControl=Le(C.attributes);$.hasOwnProperty("canBlockReload")||($.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Ve.call(this,this.manifest),$.canSkipDateranges&&!$.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const $=this.manifest.segments.length,M=Le(C.attributes),X=M.type&&"PART"===M.type;i.preloadHints=i.preloadHints||[],i.preloadHints.push(M),M.byterange&&(M.byterange.hasOwnProperty("offset")||(M.byterange.offset=X?I:0,X&&(I=M.byterange.offset+M.byterange.length)));const q=i.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${q} for segment #${$}`,C.attributes,["TYPE","URI"]),M.type)for(let O=0;O<i.preloadHints.length-1;O++){const ue=i.preloadHints[O];ue.type&&ue.type===M.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${q} for segment #${$} has the same TYPE ${M.type} as preload hint #${O}`})}},"rendition-report"(){const $=Le(C.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push($);const M=this.manifest.renditionReports.length-1,X=["LAST-MSN","URI"];a&&X.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${M}`,C.attributes,X)},"part-inf"(){this.manifest.partInf=Le(C.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",C.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Ve.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Le(C.attributes));const $=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${$}`,C.attributes,["ID","START-DATE"]);const M=this.manifest.dateRanges[$];M.endDate&&M.startDate&&new Date(M.endDate)<new Date(M.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),M.duration&&M.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),M.plannedDuration&&M.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const X=!!M.endOnNext;if(X&&!M.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),X&&(M.duration||M.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),M.duration&&M.endDate){const O=M.startDate.getTime()+1e3*M.duration;this.manifest.dateRanges[$].endDate=new Date(O)}if(P[M.id]){for(const O in P[M.id])if(M[O]&&JSON.stringify(P[M.id][O])!==JSON.stringify(M[O])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const q=this.manifest.dateRanges.findIndex(O=>O.id===M.id);this.manifest.dateRanges[q]=Re(this.manifest.dateRanges[q],M),P[M.id]=Re(P[M.id],M),this.manifest.dateRanges.pop()}else P[M.id]=M},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=Le(C.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",C.attributes,["SERVER-URI"])}}[C.tagType]||u).call(e)},uri(){i.uri=C.uri,t.push(i),this.manifest.targetDuration&&!("duration"in i)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),i.duration=this.manifest.targetDuration),n&&(i.key=n),i.timeline=_,r&&(i.map=r),I=0,null!==this.lastProgramDateTime&&(i.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*i.duration),i={}},comment(){},custom(){C.segment?(i.custom=i.custom||{},i.custom[C.customType]=C.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[C.customType]=C.data)}})[C.type].call(e)})}warnOnMissingAttributes_(e,t,i){const r=[];i.forEach(function(n){t.hasOwnProperty(n)||r.push(n)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var s,be={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Tt=["video","audio","text"],Dt=["Video","Audio","Text"],lt=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(t,i,r){return"avc1."+("00"+Number(i).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})},xt=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(r){var n;r=r.trim(),Tt.forEach(function(a){var u=be[a].exec(r.toLowerCase());if(u&&!(u.length<=1)){n=a;var h=r.substring(0,u[1].length),p=r.replace(h,"");i.push({type:h,details:p,mediaType:a})}}),n||i.push({type:r,details:"",mediaType:"unknown"})}),i},St=function(e){return void 0===e&&(e=""),be.audio.test(e.trim().toLowerCase())},Ze=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(n){return lt(n.trim())}),i="video";1===t.length&&St(t[0])?i="audio":1===t.length&&function(e){return void 0===e&&(e=""),be.text.test(e.trim().toLowerCase())}(t[0])&&(i="application");var r="mp4";return t.every(function(n){return be.mp4.test(n)})?r="mp4":t.every(function(n){return be.webm.test(n)})?r="webm":t.every(function(n){return be.ogg.test(n)})&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},ki=function(e){return void 0===e&&(e=""),v().MediaSource&&v().MediaSource.isTypeSupported&&v().MediaSource.isTypeSupported(Ze(e))||!1},ji=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(t){t=t.trim();for(var i=0;i<Dt.length;i++)if(be["muxer"+Dt[i]].test(t))return!0;return!1})},mi="mp4a.40.2",rt=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,kt=/^application\/dash\+xml/i,jt=function(e){return rt.test(e)?"hls":kt.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},qr=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Ee=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!function(e){return qr(e)}(e)&&!(e instanceof ArrayBuffer)&&(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},nt=v().BigInt||Number,Vi=[nt("0x1"),nt("0x100"),nt("0x10000"),nt("0x1000000"),nt("0x100000000"),nt("0x10000000000"),nt("0x1000000000000"),nt("0x100000000000000"),nt("0x10000000000000000")],ir=(s=new Uint16Array([65484]),new Uint8Array(s.buffer,s.byteOffset,s.byteLength),function(e,t){var i=void 0===t?{}:t,r=i.signed,n=void 0!==r&&r,a=i.le,u=void 0!==a&&a;e=Ee(e);var h=u?"reduce":"reduceRight",_=(e[h]?e[h]:Array.prototype[h]).call(e,function(I,P,C){var N=u?C:Math.abs(C+1-e.length);return I+nt(P)*Vi[N]},nt(0));if(n){var b=Vi[e.length]/nt(2)-nt(1);(_=nt(_))>b&&(_-=b,_-=b,_-=nt(2))}return Number(_)}),sr=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);return i},Xe=function(e,t,i){var r=void 0===i?{}:i,n=r.offset,a=void 0===n?0:n,u=r.mask,h=void 0===u?[]:u;return e=Ee(e),(t=Ee(t)).length&&e.length-a>=t.length&&(t.every?t.every:Array.prototype.every).call(t,function(_,b){return _===(h[b]?h[b]&e[a+b]:e[a+b])})};var qi=ae(3862);const bs=s=>!!s&&"object"==typeof s,_t=(...s)=>s.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(i=>{e[i]=Array.isArray(e[i])&&Array.isArray(t[i])?e[i].concat(t[i]):bs(e[i])&&bs(t[i])?_t(e[i],t[i]):t[i]}),e),{}),_a=s=>Object.keys(s).map(e=>s[e]),T=s=>s.reduce((e,t)=>e.concat(t),[]),k=s=>{if(!s.length)return[];const e=[];for(let t=0;t<s.length;t++)e.push(s[t]);return e};const ze=({baseUrl:s="",source:e="",range:t="",indexRange:i=""})=>{const r={uri:e,resolvedUri:R(s||"",e)};if(t||i){const a=(t||i).split("-");let p,u=v().BigInt?v().BigInt(a[0]):parseInt(a[0],10),h=v().BigInt?v().BigInt(a[1]):parseInt(a[1],10);u<Number.MAX_SAFE_INTEGER&&"bigint"==typeof u&&(u=Number(u)),h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),p="bigint"==typeof h||"bigint"==typeof u?v().BigInt(h)-v().BigInt(u)+v().BigInt(1):h-u+1,"bigint"==typeof p&&p<Number.MAX_SAFE_INTEGER&&(p=Number(p)),r.byterange={length:p,offset:u}}return r},Jt=s=>(s&&"number"!=typeof s&&(s=parseInt(s,10)),isNaN(s)?null:s),zt={static(s){const{duration:e,timescale:t=1,sourceDuration:i,periodDuration:r}=s,n=Jt(s.endNumber),a=e/t;return"number"==typeof n?{start:0,end:n}:"number"==typeof r?{start:0,end:r/a}:{start:0,end:i/a}},dynamic(s){const{NOW:e,clientOffset:t,availabilityStartTime:i,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:u=0,timeShiftBufferDepth:h=1/0}=s,p=Jt(s.endNumber),_=(e+t)/1e3,b=i+a,C=Math.ceil((_+u-b)*r/n),N=Math.floor((_-b-h)*r/n),B=Math.floor((_-b)*r/n);return{start:Math.max(0,N),end:"number"==typeof p?p:Math.min(C,B)}}},li=s=>{const{type:e,duration:t,timescale:i=1,periodDuration:r,sourceDuration:n}=s,{start:a,end:u}=zt[e](s),h=((s,e)=>{const t=[];for(let i=s;i<e;i++)t.push(i);return t})(a,u).map((s=>e=>{const{duration:t,timescale:i=1,periodStart:r,startNumber:n=1}=s;return{number:n+e,duration:t/i,timeline:r,time:e*t}})(s));if("static"===e){const p=h.length-1;h[p].duration=("number"==typeof r?r:n)-t/i*p}return h},gi=s=>{const{baseUrl:e,initialization:t={},sourceDuration:i,indexRange:r="",periodStart:n,presentationTime:a,number:u=0,duration:h}=s;if(!e)throw new Error("NO_BASE_URL");const p=ze({baseUrl:e,source:t.sourceURL,range:t.range}),_=ze({baseUrl:e,source:e,indexRange:r});if(_.map=p,h){const b=li(s);b.length&&(_.duration=b[0].duration,_.timeline=b[0].timeline)}else i&&(_.duration=i,_.timeline=n);return _.presentationTime=a||n,_.number=u,[_]},ci=(s,e,t)=>{const i=s.sidx.map?s.sidx.map:null,r=s.sidx.duration,n=s.timeline||0,a=s.sidx.byterange,u=a.offset+a.length,h=e.timescale,p=e.references.filter(B=>1!==B.referenceType),_=[],b=s.endList?"static":"dynamic",I=s.sidx.timeline;let N,P=I,C=s.mediaSequence||0;N="bigint"==typeof e.firstOffset?v().BigInt(u)+e.firstOffset:u+e.firstOffset;for(let B=0;B<p.length;B++){const $=e.references[B],M=$.referencedSize,X=$.subsegmentDuration;let q;q="bigint"==typeof N?N+v().BigInt(M)-v().BigInt(1):N+M-1;const Se=gi({baseUrl:t,timescale:h,timeline:n,periodStart:I,presentationTime:P,number:C,duration:X,sourceDuration:r,indexRange:`${N}-${q}`,type:b})[0];i&&(Se.map=i),_.push(Se),N+="bigint"==typeof N?v().BigInt(M):M,P+=X/h,C++}return s.segments=_,s},ei=["AUDIO","SUBTITLES"],Hi=s=>((s,e)=>_a(s.reduce((t,i)=>(i.forEach(r=>{t[(({timeline:e})=>e)(r)]=r}),t),{})))(s).sort((e,t)=>e.timeline>t.timeline?1:-1),ar=s=>{let e=[];return function(e,t,i){t.forEach(function(r){for(var n in e.mediaGroups[r])for(var a in e.mediaGroups[r][n])i(e.mediaGroups[r][n][a])})}(s,ei,(t,i,r,n)=>{e=e.concat(t.playlists||[])}),e},Pi=({playlist:s,mediaSequence:e})=>{s.mediaSequence=e,s.segments.forEach((t,i)=>{t.number=s.mediaSequence+i})},Yr=s=>s&&s.uri+"-"+(s=>{let e;return e="bigint"==typeof s.offset||"bigint"==typeof s.length?v().BigInt(s.offset)+v().BigInt(s.length)-v().BigInt(1):s.offset+s.length-1,`${s.offset}-${e}`})(s.byterange),ya=s=>{const e=s.reduce(function(i,r){return i[r.attributes.baseUrl]||(i[r.attributes.baseUrl]=[]),i[r.attributes.baseUrl].push(r),i},{});let t=[];return Object.values(e).forEach(i=>
vendor: 4,449 bytes, line 1
1{const r=_a(i.reduce((n,a)=>{const u=a.attributes.id+(a.attributes.lang||"");return n[u]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),n[u].segments.push(...a.segments)),a.attributes.contentProtection&&(n[u].attributes.contentProtection=a.attributes.contentProtection)):(n[u]=a,n[u].attributes.timelineStarts=[]),n[u].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),n},{}));t=t.concat(r)}),t.map(i=>(i.discontinuityStarts=((s,e)=>s.reduce((t,i,r)=>(i.discontinuity&&t.push(r),t),[]))(i.segments||[]),i))},va=(s,e)=>{const t=Yr(s.sidx),i=t&&e[t]&&e[t].sidx;return i&&ci(s,i,s.sidx.resolvedUri),s},Ch=(s,e={})=>{if(!Object.keys(e).length)return s;for(const t in s)s[t]=va(s[t],e);return s},Ph=({attributes:s,segments:e,sidx:t,discontinuityStarts:i})=>{const r={attributes:{NAME:s.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:s.width,height:s.height},CODECS:s.codecs,BANDWIDTH:s.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,discontinuityStarts:i,timelineStarts:s.timelineStarts,segments:e};return s.frameRate&&(r.attributes["FRAME-RATE"]=s.frameRate),s.contentProtection&&(r.contentProtection=s.contentProtection),s.serviceLocation&&(r.attributes.serviceLocation=s.serviceLocation),t&&(r.sidx=t),r},Lh=({attributes:s})=>"video/mp4"===s.mimeType||"video/webm"===s.mimeType||"video"===s.contentType,Oh=({attributes:s})=>"audio/mp4"===s.mimeType||"audio/webm"===s.mimeType||"audio"===s.contentType,Nh=({attributes:s})=>"text/vtt"===s.mimeType||"text"===s.contentType,pu=s=>s?Object.keys(s).reduce((e,t)=>e.concat(s[t].playlists),[]):[],Mh=({dashPlaylists:s,locations:e,contentSteering:t,sidxMapping:i={},previousManifest:r,eventStream:n})=>{if(!s.length)return{};const{sourceDuration:a,type:u,suggestedPresentationDelay:h,minimumUpdatePeriod:p}=s[0].attributes,_=ya(s.filter(Lh)).map(Ph),b=ya(s.filter(Oh)),I=ya(s.filter(Nh)),P=s.map(q=>q.attributes.captionServices).filter(Boolean),C={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:Ch(_,i)};p>=0&&(C.minimumUpdatePeriod=1e3*p),e&&(C.locations=e),t&&(C.contentSteering=t),"dynamic"===u&&(C.suggestedPresentationDelay=h),n&&n.length>0&&(C.eventStream=n);const B=b.length?((s,e={},t=!1)=>{let i;const r=s.reduce((n,a)=>{const u=a.attributes.role&&a.attributes.role.value||"",h=a.attributes.lang||"";let p=a.attributes.label||"main";h&&!a.attributes.label&&(p=`${a.attributes.lang}${u?` (${u})`:""}`),n[p]||(n[p]={language:h,autoselect:!0,default:"main"===u,playlists:[],uri:""});const _=va((({attributes:s,segments:e,sidx:t,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:n},a)=>{const u={attributes:{NAME:s.id,BANDWIDTH:s.bandwidth,CODECS:s.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:s.timelineStarts,mediaSequence:i,segments:e};return s.contentProtection&&(u.contentProtection=s.contentProtection),s.serviceLocation&&(u.attributes.serviceLocation=s.serviceLocation),t&&(u.sidx=t),a&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u})(a,t),e);return n[p].playlists.push(_),typeof i>"u"&&"main"===u&&(i=a,i.default=!0),n},{});return i||(r[Object.keys(r)[0]].default=!0),r})(b,i,0===C.playlists.length):null,$=I.length?((s,e={})=>s.reduce((t,i)=>{const r=i.attributes.label||i.attributes.lang||"text";return t[r]||(t[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),t[r].playlists.push(va((({attributes:s,segments:e,mediaSequence:t,discontinuityStarts:i,discontinuitySequence:r})=>{typeof e>"u"&&(e=[{uri:s.baseUrl,timeline:s.periodStart,resolvedUri:s.baseUrl||"",duration:s.sourceDuration,number:0}],s.duration=s.sourceDuration);const n={NAME:s.id,BANDWIDTH:s.bandwidth,"PROGRAM-ID":1};s.codecs&&(n.CODECS=s.codecs);const a={attributes:n,uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:s.baseUrl||"",targetDuration:s.duration,timelineStarts:s.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:t,segments:e};return s.serviceLocation&&(a.attributes.serviceLocation=s.serviceLocation),a})(i),e)),t},{}))(I,i):null,M=_.concat(pu(B),pu($)),X=M.map(({timelineStarts:q})=>q);return C.timelineStarts=Hi(X),((s,e)=>
1{s.forEach(t=>{t.mediaSequence=0,t.discontinuitySequence=e.findIndex(function({timeline:i}){return i===t.timeline}),t.segments&&t.segments.forEach((i,r)=>{i.number=r})})})(M,C.timelineStarts),B&&(C.mediaGroups.AUDIO.audio=B),$&&(C.mediaGroups.SUBTITLES.subs=$),P.length&&(C.mediaGroups["CLOSED-CAPTIONS"].cc=(s=>s.reduce((e,t)=>(t&&t.forEach(i=>{const{channel:r,language:n}=i;e[n]={autoselect:!1,default:!1,instreamId:r,language:n},i.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[n].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[n]["3D"]=i["3D"])}),e),{}))(P)),r?(({oldManifest:s,newManifest:e})=>{const t=s.playlists.concat(ar(s)),i=e.playlists.concat(ar(e));return e.timelineStarts=Hi([s.timelineStarts,e.timelineStarts]),(({oldPlaylists:s,newPlaylists:e,timelineStarts:t})=>{e.forEach(i=>{i.discontinuitySequence=t.findIndex(function({timeline:h}){return h===i.timeline});const r=((s,e)=>{for(let t=0;t<s.length;t++)if(s[t].attributes.NAME===e)return s[t];return null})(s,i.attributes.NAME);if(!r||i.sidx)return;const n=i.segments[0],a=r.segments.findIndex(function(h){return Math.abs(h.presentationTime-n.presentationTime)<.016666666666666666});if(-1===a)return Pi({playlist:i,mediaSequence:r.mediaSequence+r.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),void((!r.segments.length&&i.timeline>r.timeline||r.segments.length&&i.timeline>r.segments[r.segments.length-1].timeline)&&i.discontinuitySequence--);r.segments[a].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),Pi({playlist:i,mediaSequence:r.segments[a].number})})})({oldPlaylists:t,newPlaylists:i,timelineStarts:e.timelineStarts}),e})({oldManifest:r,newManifest:C}):C},Bh=(s,e,t)=>{const{NOW:i,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:u=0,minimumUpdatePeriod:h=0}=s;return Math.ceil((((i+r)/1e3+h-(n+u))*a-e)/t)},mu=(s,e)=>{const{type:t,minimumUpdatePeriod:i=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:u=1,periodStart:h}=s,p=[];let _=-1;for(let b=0;b<e.length;b++){const I=e[b],P=I.d,C=I.r||0,N=I.t||0;let B;if(_<0&&(_=N),N&&N>_&&(_=N),C<0){const X=b+1;B=X===e.length?"dynamic"===t&&i>0&&r.indexOf("$Number$")>0?Bh(s,_,P):(n*a-_)/P:(e[X].t-_)/P}else B=C+1;const $=u+p.length+B;let M=u+p.length;for(;M<$;)p.push({number:M,duration:P/a,time:_,timeline:h}),_+=P,M++}return p},Fh=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,gu=(s,e)=>s.replace(Fh,(s=>(e,t,i,r)=>{if("$$"===e)return"$";if(typeof s[t]>"u")return e;const n=""+s[t];return"RepresentationID"===t||(r=i?parseInt(r,10):1,n.length>=r)?n:`${new Array(r-n.length+1).join("0")}${n}`})(e)),Vh=(s,e)=>{const t={RepresentationID:s.id,Bandwidth:s.bandwidth||0},{initialization:i={sourceURL:"",range:""}}
vendor: 25,927 bytes, line 1
1=s,r=ze({baseUrl:s.baseUrl,source:gu(i.sourceURL,t),range:i.range});return((s,e)=>s.duration||e?s.duration?li(s):mu(s,e):[{number:s.startNumber||1,duration:s.sourceDuration,time:0,timeline:s.periodStart}])(s,e).map(a=>{t.Number=a.number,t.Time=a.time;const u=gu(s.media||"",t),_=s.periodStart+(a.time-(s.presentationTimeOffset||0))/(s.timescale||1);return{uri:u,timeline:a.timeline,duration:a.duration,resolvedUri:R(s.baseUrl||"",u),map:r,number:a.number,presentationTime:_}})},qh=(s,e)=>{const{duration:t,segmentUrls:i=[],periodStart:r}=s;if(!t&&!e||t&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");const n=i.map(h=>((s,e)=>{const{baseUrl:t,initialization:i={}}=s,r=ze({baseUrl:t,source:i.sourceURL,range:i.range}),n=ze({baseUrl:t,source:e.media,range:e.mediaRange});return n.map=r,n})(s,h));let a;return t&&(a=li(s)),e&&(a=mu(s,e)),a.map((h,p)=>{if(n[p]){const _=n[p],b=s.timescale||1,I=s.presentationTimeOffset||0;return _.timeline=h.timeline,_.duration=h.duration,_.number=h.number,_.presentationTime=r+(h.time-I)/b,_}}).filter(h=>h)},Hh=({attributes:s,segmentInfo:e})=>{let t,i;e.template?(i=Vh,t=_t(s,e.template)):e.base?(i=gi,t=_t(s,e.base)):e.list&&(i=qh,t=_t(s,e.list));const r={attributes:s};if(!i)return r;const n=i(t,e.segmentTimeline);if(t.duration){const{duration:a,timescale:u=1}=t;t.duration=a/u}else t.duration=n.length?n.reduce((a,u)=>Math.max(a,Math.ceil(u.duration)),0):0;return r.attributes=t,r.segments=n,e.base&&t.indexRange&&(r.sidx=n[0],r.segments=[]),r},ct=(s,e)=>k(s.childNodes).filter(({tagName:t})=>t===e),or=s=>s.textContent.trim(),xs=s=>{const u=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(s);if(!u)return 0;const[h,p,_,b,I,P]=u.slice(1);return 31536e3*parseFloat(h||0)+2592e3*parseFloat(p||0)+86400*parseFloat(_||0)+3600*parseFloat(b||0)+60*parseFloat(I||0)+parseFloat(P||0)},_u={mediaPresentationDuration:s=>xs(s),availabilityStartTime:s=>(s=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(s)&&(s+="Z"),Date.parse(s)))(s)/1e3,minimumUpdatePeriod:s=>xs(s),suggestedPresentationDelay:s=>xs(s),type:s=>s,timeShiftBufferDepth:s=>xs(s),start:s=>xs(s),width:s=>parseInt(s,10),height:s=>parseInt(s,10),bandwidth:s=>parseInt(s,10),frameRate:s=>(s=>parseFloat(s.split("/").reduce((e,t)=>e/t)))(s),startNumber:s=>parseInt(s,10),timescale:s=>parseInt(s,10),presentationTimeOffset:s=>parseInt(s,10),duration(s){const e=parseInt(s,10);return isNaN(e)?xs(s):e},d:s=>parseInt(s,10),t:s=>parseInt(s,10),r:s=>parseInt(s,10),presentationTime:s=>parseInt(s,10),DEFAULT:s=>s},bt=s=>s&&s.attributes?k(s.attributes).reduce((e,t)=>(e[t.name]=(_u[t.name]||_u.DEFAULT)(t.value),e),{}):{},Xh={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Zr=(s,e)=>e.length?T(s.map(function(t){return e.map(function(i){const r=or(i),n=R(t.baseUrl,r),a=_t(bt(i),{baseUrl:n});return n!==r&&!a.serviceLocation&&t.serviceLocation&&(a.serviceLocation=t.serviceLocation),a})})):s,Ta=s=>{const e=ct(s,"SegmentTemplate")[0],t=ct(s,"SegmentList")[0],i=t&&ct(t,"SegmentURL").map(b=>_t({tag:"SegmentURL"},bt(b))),r=ct(s,"SegmentBase")[0],n=t||e,a=n&&ct(n,"SegmentTimeline")[0],u=t||r||e,h=u&&ct(u,"Initialization")[0],p=e&&bt(e);p&&h?p.initialization=h&&bt(h):p&&p.initialization&&(p.initialization={sourceURL:p.initialization});const _={template:p,segmentTimeline:a&&ct(a,"S").map(b=>bt(b)),list:t&&_t(bt(t),{segmentUrls:i,initialization:bt(h)}),base:r&&_t(bt(r),{initialization:bt(h)})};return Object.keys(_).forEach(b=>{_[b]||delete _[b]}),_},Zh=s=>T(ct(s.node,"EventStream").map(e=>{const t=bt(e),i=t.schemeIdUri;return ct(e,"Event").map(r=>{const n=bt(r),u=t.timescale||1,p=(n.presentationTime||0)/u+s.attributes.start;return{schemeIdUri:i,value:t.value,id:n.id,start:p,end:p+(n.duration||0)/u,messageData:or(r)||n.messageData,contentEncoding:t.contentEncoding,presentationTimeOffset:t.presentationTimeOffset||0}})})),Jh=(s,e,t)=>i=>{const r=bt(i),n=Zr(e,ct(i,"BaseURL")),a=ct(i,"Role")[0],u={role:bt(a)};let h=_t(s,r,u);const p=ct(i,"Accessibility")[0],_=(s=>"urn:scte:dash:cc:cea-608:2015"===s.schemeIdUri?("string"!=typeof s.value?[]:s.value.split(";")).map(t=>{let i,r;return r=t,/^CC\d=/.test(t)?[i,r]=t.split("="):/^CC\d$/.test(t)&&(i=t),{channel:i,language:r}}):"urn:scte:dash:cc:cea-708:2015"===s.schemeIdUri?("string"!=typeof s.value?[]:s.value.split(";")).map(t=>{const i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){const[r,n=""]=t.split("=");i.channel=r,i.language=t,n.split(",").forEach(a=>{const[u,h]=a.split(":");"lang"===u?i.language=h:"er"===u?i.easyReader=Number(h):"war"===u?i.aspectRatio=Number(h):"3D"===u&&(i["3D"]=Number(h))})}else i.language=t;return i.channel&&(i.channel="SERVICE"+i.channel),i}):void 0)(bt(p));_&&(h=_t(h,{captionServices:_}));const b=ct(i,"Label")[0];if(b&&b.childNodes.length){const B=b.childNodes[0].nodeValue.trim();h=_t(h,{label:B})}const I=(s=>s.reduce((e,t)=>{const i=bt(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const r=Xh[i.schemeIdUri];if(r){e[r]={attributes:i};const n=ct(t,"cenc:pssh")[0];if(n){const a=or(n);e[r].pssh=a&&function nr(s){for(var e=function(e){return v().atob?v().atob(e):Buffer.from(e,"base64").toString("binary")}(s),t=new Uint8Array(e.length),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}(a)}}return e},{}))(ct(i,"ContentProtection"));Object.keys(I).length&&(h=_t(h,{contentProtection:I}));const P=Ta(i),C=ct(i,"Representation"),N=_t(t,P);return T(C.map(((s,e,t)=>i=>{const r=ct(i,"BaseURL"),n=Zr(e,r),a=_t(s,bt(i)),u=Ta(i);return n.map(h=>({segmentInfo:_t(t,u),attributes:_t(a,h)}))})(h,n,N)))},ef=(s,e)=>(t,i)=>{const r=Zr(e,ct(t.node,"BaseURL")),n=_t(s,{periodStart:t.attributes.start});"number"==typeof t.attributes.duration&&(n.periodDuration=t.attributes.duration);const a=ct(t.node,"AdaptationSet"),u=Ta(t.node);return T(a.map(Jh(n,r,u)))},tf=(s,e)=>{if(s.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!s.length)return null;const t=_t({serverURL:or(s[0])},bt(s[0]));return t.queryBeforeStart="true"===t.queryBeforeStart,t},yu=s=>{if(""===s)throw new Error("DASH_EMPTY_MANIFEST");const e=new qi.DOMParser;let t,i;try{t=e.parseFromString(s,"application/xml"),i=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i};var xa,uf=ae(5035),lf=ae.n(uf),cf=Ee([73,68,51]),ur=function s(e,t){return void 0===t&&(t=0),(e=Ee(e)).length-t<10||!Xe(e,cf,{offset:t})?t:(t+=function(e,t){void 0===t&&(t=0);var r=(e=Ee(e))[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?r+20:r+10}(e,t),s(e,t))},ba=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?sr(e):e}),Sa=function(e){e=Ee(e);for(var t=[],i=0;e.length>i;){var r=e[i],n=0,a=0,u=e[++a];for(a++;128&u;)n=(127&u)<<7,u=e[a],a++;n+=127&u;for(var h=0;h<xa.length;h++){var p=xa[h];if(r===p.id){t.push((0,p.parser)(e.subarray(a,a+n)));break}}i+=n+a}return t};xa=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var i=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,Ee(e));try{return decodeURIComponent(escape(t))}catch{}return t}(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=Sa(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:Sa(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var Vt=function s(e,t,i){void 0===i&&(i=!1),t=function(e){return Array.isArray(e)?e.map(function(t){return ba(t)}):[ba(e)]}(t),e=Ee(e);var r=[];if(!t.length)return r;for(var n=0;n<e.length;){var a=(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])>>>0,u=e.subarray(n+4,n+8);if(0===a)break;var h=n+a;if(h>e.length){if(i)break;h=e.length}var p=e.subarray(n+8,h);Xe(u,t[0])&&(1===t.length?r.push(p):r.push.apply(r,s(p,t.slice(1),i))),n=h}return r},at={EBML:Ee([26,69,223,163]),DocType:Ee([66,130]),Segment:Ee([24,83,128,103]),SegmentInfo:Ee([21,73,169,102]),Tracks:Ee([22,84,174,107]),Track:Ee([174]),TrackNumber:Ee([215]),DefaultDuration:Ee([35,227,131]),TrackEntry:Ee([174]),TrackType:Ee([131]),FlagDefault:Ee([136]),CodecID:Ee([134]),CodecPrivate:Ee([99,162]),VideoTrack:Ee([224]),AudioTrack:Ee([225]),Cluster:Ee([31,67,182,117]),Timestamp:Ee([231]),TimestampScale:Ee([42,215,177]),BlockGroup:Ee([160]),BlockDuration:Ee([155]),Block:Ee([161]),SimpleBlock:Ee([163])},Ea=[128,64,32,16,8,4,2,1],ts=function(e,t,i,r){void 0===i&&(i=!0),void 0===r&&(r=!1);var n=function(e){for(var t=1,i=0;i<Ea.length&&!(e&Ea[i]);i++)t++;return t}(e[t]),a=e.subarray(t,t+n);return i&&((a=Array.prototype.slice.call(e,t,t+n))[0]^=Ea[n-1]),{length:n,value:ir(a,{signed:r}),bytes:a}},vu=function s(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(t){return s(t)}):"number"==typeof e?function(e,t){var r=(void 0===t?{}:t).le,n=void 0!==r&&r;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var a=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=nt(e)),u=new Uint8Array(new ArrayBuffer(a)),h=0;h<a;h++){var p=n?h:Math.abs(h+1-u.length);u[p]=Number(e/Vi[h]&nt(255)),e<0&&(u[p]=Math.abs(~u[p]),u[p]-=0===h?1:2)}return u}(e):e},_f=function s(e,t,i){if(i>=t.length)return t.length;var r=ts(t,i,!1);if(Xe(e.bytes,r.bytes))return i;var n=ts(t,i+r.length);return s(e,t,i+n.length+n.value+r.length)},ht=function s(e,t){t=function(e){return Array.isArray(e)?e.map(function(t){return vu(t)}):[vu(e)]}(t),e=Ee(e);var i=[];if(!t.length)return i;for(var r=0;r<e.length;){var n=ts(e,r,!1),a=ts(e,r+n.length),u=r+n.length+a.length;127===a.value&&(a.value=_f(n,e,u),a.value!==e.length&&(a.value-=u));var p=e.subarray(u,u+a.value>e.length?e.length:u+a.value);Xe(t[0],n.bytes)&&(1===t.length?i.push(p):i=i.concat(s(p,t.slice(1)))),r+=n.length+a.length+p.length}return i},bf=Ee([0,0,0,1]),xf=Ee([0,0,1]),Sf=Ee([0,0,3]),Ef=function(e){for(var t=[],i=1;i<e.length-2;)Xe(e.subarray(i,i+3),Sf)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var r=e.length-t.length,n=new Uint8Array(r),a=0;for(i=0;i<r;a++,i++)a===t[0]&&(a++,t.shift()),n[i]=e[a];return n},Tu=function(e,t,i,r){void 0===r&&(r=1/0),e=Ee(e),i=[].concat(i);for(var a,n=0,u=0;n<e.length&&(u<r||a);){var h=void 0;if(Xe(e.subarray(n),bf)?h=4:Xe(e.subarray(n),xf)&&(h=3),h){if(u++,a)return Ef(e.subarray(a,n));var p=void 0;"h264"===t?p=31&e[n+h]:"h265"===t&&(p=e[n+h]>>1&63),-1!==i.indexOf(p)&&(a=n+h),n+=h+("h264"===t?1:2)}else n++}return e.subarray(0,0)},Nt={webm:Ee([119,101,98,109]),matroska:Ee([109,97,116,114,111,115,107,97]),flac:Ee([102,76,97,67]),ogg:Ee([79,103,103,83]),ac3:Ee([11,119]),riff:Ee([82,73,70,70]),avi:Ee([65,86,73]),wav:Ee([87,65,86,69]),"3gp":Ee([102,116,121,112,51,103]),mp4:Ee([102,116,121,112]),fmp4:Ee([115,116,121,112]),mov:Ee([102,116,121,112,113,116]),moov:Ee([109,111,111,118]),moof:Ee([109,111,111,102])},Es={aac:function(e){var t=ur(e);return Xe(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=ur(e);return Xe(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=ht(e,[at.EBML,at.DocType])[0];return Xe(t,Nt.webm)},mkv:function(e){var t=ht(e,[at.EBML,at.DocType])[0];return Xe(t,Nt.matroska)},mp4:function(e){return!Es["3gp"](e)&&!Es.mov(e)&&(!!(Xe(e,Nt.mp4,{offset:4})||Xe(e,Nt.fmp4,{offset:4})||Xe(e,Nt.moof,{offset:4})||Xe(e,Nt.moov,{offset:4}))||void 0)},mov:function(e){return Xe(e,Nt.mov,{offset:4})},"3gp":function(e){return Xe(e,Nt["3gp"],{offset:4})},ac3:function(e){var t=ur(e);return Xe(e,Nt.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=ur(e);return Xe(e,Nt.flac,{offset:t})},ogg:function(e){return Xe(e,Nt.ogg)},avi:function(e){return Xe(e,Nt.riff)&&Xe(e,Nt.avi,{offset:8})},wav:function(e){return Xe(e,Nt.riff)&&Xe(e,Nt.wav,{offset:8})},h264:function(e){return function(e,t,i){return Tu(e,"h264",7,3)}(e).length},h265:function(e){return function(e,t,i){return Tu(e,"h265",[32,33],3)}(e).length}},Ca=Object.keys(Es).filter(function(s){return"ts"!==s&&"h264"!==s&&"h265"!==s}).concat(["ts","h264","h265"]);Ca.forEach(function(s){var e=Es[s];Es[s]=function(t){return e(Ee(t))}});var Df=Es,wa=function(e){e=Ee(e);for(var t=0;t<Ca.length;t++){var i=Ca[t];if(Df[i](e))return i}return""},Jr=ae(5562);const Li={},Gi=function(s,e){return Li[s]=Li[s]||[],e&&(Li[s]=Li[s].concat(e)),Li[s]},xu=function(s,e){const t=Gi(s).indexOf(e);return!(t<=-1||(Li[s]=Li[s].slice(),Li[s].splice(t,1),0))},en={prefixed:!0},tn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Su=tn[0];let cr;for(let s=0;s<tn.length;s++)if(tn[s][1]in V()){cr=tn[s];break}if(cr){for(let s=0;s<cr.length;s++)en[Su[s]]=cr[s];en.prefixed=cr[0]!==Su[0]}let $t=[];const $e=function Da(s,e=":",t=""){let r,i="info";const n=function(...a){r("log",i,a)};return r=((s,e,t)=>(i,r,n)=>{const a=e.levels[r],u=new RegExp(`^(${a})$`);let h=s;if("log"!==i&&n.unshift(i.toUpperCase()+":"),t&&(h=`%c${s}`,n.unshift(t)),n.unshift(h+":"),$t){$t.push([].concat(n));const _=$t.length-1e3;$t.splice(0,_>0?_:0)}if(!v().console)return;let p=v().console[i];!p&&"debug"===i&&(p=v().console.info||v().console.log),p&&a&&u.test(i)&&p[Array.isArray(n)?"apply":"call"](v().console,n)})(s,n,t),n.createLogger=(a,u,h)=>{const p=void 0!==u?u:e;return Da(`${s} ${p} ${a}`,p,void 0!==h?h:t)},n.createNewLogger=(a,u,h)=>Da(a,u,h),n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},n.level=a=>{if("string"==typeof a){if(!n.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},(n.history=()=>$t?[].concat($t):[]).filter=a=>($t||[]).filter(u=>new RegExp(`.*${a}.*`).test(u[0])),n.history.clear=()=>{$t&&($t.length=0)},n.history.disable=()=>{null!==$t&&($t.length=0,$t=null)},n.history.enable=()=>{null===$t&&($t=[])},n.error=(...a)=>r("error",i,a),n.warn=(...a)=>r("warn",i,a),n.debug=(...a)=>r("debug",i,a),n}("VIDEOJS"),Eu=$e.createLogger,Lf=Object.prototype.toString,Cu=function(s){return _i(s)?Object.keys(s):[]};function Cs(s,e){Cu(s).forEach(t=>e(s[t],t))}function wu(s,e,t=0){return Cu(s).reduce((i,r)=>e(i,s[r],r),t)}function _i(s){return!!s&&"object"==typeof s}function ws(s){return _i(s)&&"[object Object]"===Lf.call(s)&&s.constructor===Object}function it(...s){const e={};return s.forEach(t=>{t&&Cs(t,(i,r)=>{ws(i)?(ws(e[r])||(e[r]={}),e[r]=it(e[r],i)):e[r]=i})}),e}function Du(s={}){const e=[];for(const t in s)s.hasOwnProperty(t)&&e.push(s[t]);return e}function sn(s,e,t,i=!0){const r=a=>Object.defineProperty(s,e,{value:a,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const a=t();return r(a),a}};return i&&(n.set=r),Object.defineProperty(s,e,n)}var Of=Object.freeze({__proto__:null,each:Cs,reduce:wu,isObject:_i,isPlain:ws,merge:it,values:Du,defineLazyProperty:sn});let ku,Aa=!1,Au=null,yi=!1,Iu=!1,Ds=!1,As=!1,vi=!1,ka=null,rn=null,Pu=null,nn=!1,an=!1,on=!1,un=!1;const dr=!(!ks()||!("ontouchstart"in v()||v().navigator.maxTouchPoints||v().DocumentTouch&&v().document instanceof v().DocumentTouch)),zi=v().navigator&&v().navigator.userAgentData;if(zi&&zi.platform&&zi.brands&&(yi="Android"===zi.platform,Ds=!!zi.brands.find(s=>"Microsoft Edge"===s.brand),As=!!zi.brands.find(s=>"Chromium"===s.brand),vi=!Ds&&As,ka=rn=(zi.brands.find(s=>"Chromium"===s.brand)||{}).version||null,an="Windows"===zi.platform),!As){const s=v().navigator&&v().navigator.userAgent||"";Aa=/iPod/i.test(s),Au=function(){const e=s.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),yi=/Android/i.test(s),ku=function(){const e=s.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),Iu=/Firefox/i.test(s),Ds=/Edg/i.test(s),As=/Chrome/i.test(s)||/CriOS/i.test(s),vi=!Ds&&As,ka=rn=function(){const e=s.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Pu=function(){const e=/MSIE\s(\d+)\.\d/.exec(s);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(s)&&/rv:11.0/.test(s)&&(t=11),t}(),nn=/Safari/i.test(s)&&!vi&&!yi&&!Ds,an=/Windows/i.test(s),on=/iPad/i.test(s)||nn&&dr&&!/iPhone/i.test(s),un=/iPhone/i.test(s)&&!on}const Rt=un||on||Aa,ln=(nn||Rt)&&!vi;var Nf=Object.freeze({__proto__:null,get IS_IPOD(){return Aa},get IOS_VERSION(){return Au},get IS_ANDROID(){return yi},get ANDROID_VERSION(){return ku},get IS_FIREFOX(){return Iu},get IS_EDGE(){return Ds},get IS_CHROMIUM(){return As},get IS_CHROME(){return vi},get CHROMIUM_VERSION(){return ka},get CHROME_VERSION(){return rn},get IE_VERSION(){return Pu},get IS_SAFARI(){return nn},get IS_WINDOWS(){return an},get IS_IPAD(){return on},get IS_IPHONE(){return un},TOUCH_ENABLED:dr,IS_IOS:Rt,IS_ANY_SAFARI:ln});function Lu(s){return"string"==typeof s&&!!s.trim()}function ks(){return V()===v().document}function Is(s){return _i(s)&&1===s.nodeType}function Ou(){try{return v().parent!==v().self}catch{return!0}}function Nu(s){return function(e,t){if(!Lu(e))return V()[s](null);Lu(t)&&(t=V().querySelector(t));const i=Is(t)?t:V();return i[s]&&i[s](e)}}function Fe(s="div",e={},t={},i){const r=V().createElement(s);return Object.getOwnPropertyNames(e).forEach(function(n){const a=e[n];"textContent"===n?Wi(r,a):(r[n]!==a||"tabIndex"===n)&&(r[n]=a)}),Object.getOwnPropertyNames(t).forEach(function(n){r.setAttribute(n,t[n])}),i&&Pa(r,i),r}function Wi(s,e){return typeof s.textContent>"u"?s.innerText=e:s.textContent=e,s}function Ia(s,e){e.firstChild?e.insertBefore(s,e.firstChild):e.appendChild(s)}function hr(s,e){return function Rf(s){if(s.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(e),s.classList.contains(e)}function is(s,...e){return s.classList.add(...e.reduce((t,i)=>t.concat(i.split(/\s+/)),[])),s}function cn(s,...e){return s?(s.classList.remove(...e.reduce((t,i)=>t.concat(i.split(/\s+/)),[])),s):($e.warn("removeClass was called with an element that doesn't exist"),null)}function Ru(s,e,t){return"function"==typeof t&&(t=t(s,e)),"boolean"!=typeof t&&(t=void 0),e.split(/\s+/).forEach(i=>s.classList.toggle(i,t)),s}function Mu(s,e){Object.getOwnPropertyNames(e).forEach(function(t){const i=e[t];null===i||typeof i>"u"||!1===i?s.removeAttribute(t):s.setAttribute(t,!0===i?"":i)})}function Xi(s){const e={},t=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(s&&s.attributes&&s.attributes.length>0){const i=s.attributes;for(let r=i.length-1;r>=0;r--){const n=i[r].name;let a=i[r].value;t.includes(n)&&(a=null!==a),e[n]=a}}return e}function Bu(s,e){return s.getAttribute(e)}function Ps(s,e,t){s.setAttribute(e,t)}function dn(s,e){s.removeAttribute(e)}function Fu(){V().body.focus(),V().onselectstart=function(){return!1}}function Uu(){V().onselectstart=function(){return!0}}function Ls(s){if(s&&s.getBoundingClientRect&&s.parentNode){const e=s.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach(i=>{void 0!==e[i]&&(t[i]=e[i])}),t.height||(t.height=parseFloat(Os(s,"height"))),t.width||(t.width=parseFloat(Os(s,"width"))),t}}function fr(s){if(!s||s&&!s.offsetParent)return{left:0,top:0,width:0,height:0};const e=s.offsetWidth,t=s.offsetHeight;let i=0,r=0;for(;s.offsetParent&&s!==V()[en.fullscreenElement];)i+=s.offsetLeft,r+=s.offsetTop,s=s.offsetParent;return{left:i,top:r,width:e,height:t}}function hn(s,e){const t={x:0,y:0};if(Rt){let _=s;for(;_&&"html"!==_.nodeName.toLowerCase();){const b=Os(_,"transform");if(/^matrix/.test(b)){const I=b.slice(7,-1).split(/,\s/).map(Number);t.x+=I[4],t.y+=I[5]}else if(/^matrix3d/.test(b)){const I=b.slice(9,-1).split(/,\s/).map(Number);t.x+=I[12],t.y+=I[13]}_=_.parentNode}}const i={},r=fr(e.target),n=fr(s),a=n.width;let h=e.offsetY-(n.top-r.top),p=e.offsetX-(n.left-r.left);return e.changedTouches&&(p=e.changedTouches[0].pageX-n.left,h=e.changedTouches[0].pageY+n.top,Rt&&(p-=t.x,h-=t.y)),i.y=1-Math.max(0,Math.min(1,h/n.height)),i.x=Math.max(0,Math.min(1,p/a)),i}function ju(s){return _i(s)&&3===s.nodeType}function fn(s){for(;s.firstChild;)s.removeChild(s.firstChild);return s}function Vu(s){return"function"==typeof s&&(s=s()),(Array.isArray(s)?s:[s]).map(e=>("function"==typeof e&&(e=e()),Is(e)||ju(e)?e:"string"==typeof e&&/\S/.test(e)?V().createTextNode(e):void 0)).filter(e=>e)}function Pa(s,e){return Vu(e).forEach(t=>s.appendChild(t)),s}function $u(s,e){return Pa(fn(s),e)}function pr(s){return void 0===s.button&&void 0===s.buttons||0===s.button&&void 0===s.buttons||"mouseup"===s.type&&0===s.button&&0===s.buttons||!(0!==s.button||1!==s.buttons)}const Ki=Nu("querySelector"),qu=Nu("querySelectorAll");function Os(s,e){if(!s||!e)return"";if("function"==typeof v().getComputedStyle){let t;try{t=v().getComputedStyle(s)}catch{return""}return t?t.getPropertyValue(e)||t[e]:""}return""}function Hu(s){[...V().styleSheets].forEach(e=>{try{const t=[...e.cssRules].map(r=>r.cssText).join(""),i=V().createElement("style");i.textContent=t,s.document.head.appendChild(i)}catch{const i=V().createElement("link");i.rel="stylesheet",i.type=e.type,i.media=e.media.mediaText,i.href=e.href,s.document.head.appendChild(i)}})}var Gu=Object.freeze({__proto__:null,isReal:ks,isEl:Is,isInFrame:Ou,createEl:Fe,textContent:Wi,prependTo:Ia,hasClass:hr,addClass:is,removeClass:cn,toggleClass:Ru,setAttributes:Mu,getAttributes:Xi,getAttribute:Bu,setAttribute:Ps,removeAttribute:dn,blockTextSelection:Fu,unblockTextSelection:Uu,getBoundingClientRect:Ls,findPosition:fr,getPointerPosition:hn,isTextNode:ju,emptyEl:fn,normalizeContent:Vu,appendContent:Pa,insertContent:$u,isSingleLeftClick:pr,$:Ki,$$:qu,computedStyle:Os,copyStyleSheetsToWindow:Hu});let La,zu=!1;const Mf=function(){if(!1===La.options.autoSetup)return;const s=Array.prototype.slice.call(V().getElementsByTagName("video")),e=Array.prototype.slice.call(V().getElementsByTagName("audio")),t=Array.prototype.slice.call(V().getElementsByTagName("video-js")),i=s.concat(e,t);if(i&&i.length>0)for(let r=0,n=i.length;r<n;r++){const a=i[r];if(!a||!a.getAttribute){Oa(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&La(a)}else zu||Oa(1)};function Oa(s,e){ks()&&(e&&(La=e),v().setTimeout(Mf,s))}function Na(){zu=!0,v().removeEventListener("load",Na)}ks()&&("complete"===V().readyState?Na():v().addEventListener("load",Na));const Wu=function(s){const e=V().createElement("style");return e.className=s,e},Xu=function(s,e){s.styleSheet?s.styleSheet.cssText=e:s.textContent=e};var Mt=new WeakMap;let mn,Bf=3;function Ti(){return Bf++}function Ku(s,e){if(!Mt.has(s))return;const t=Mt.get(s);0===t.handlers[e].length&&(delete t.handlers[e],s.removeEventListener?s.removeEventListener(e,t.dispatcher,!1):s.detachEvent&&s.detachEvent("on"+e,t.dispatcher)),Object.getOwnPropertyNames(t.handlers).length<=0&&(delete t.handlers,delete t.dispatcher,delete t.disabled),0===Object.getOwnPropertyNames(t).length&&Mt.delete(s)}function Ra(s,e,t,i){t.forEach(function(r){s(e,r,i)})}function pn(s){if(s.fixed_)return s;function e(){return!0}function t(){return!1}if(!s||!s.isPropagationStopped||!s.isImmediatePropagationStopped){const i=s||v().event;s={};for(const r in i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&i.preventDefault||(s[r]=i[r]));if(s.target||(s.target=s.srcElement||V()),s.relatedTarget||(s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement),s.preventDefault=function(){i.preventDefault&&i.preventDefault(),s.returnValue=!1,i.returnValue=!1,s.defaultPrevented=!0},s.defaultPrevented=!1,s.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),s.cancelBubble=!0,i.cancelBubble=!0,s.isPropagationStopped=e},s.isPropagationStopped=t,s.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),s.isImmediatePropagationStopped=e,s.stopPropagation()},s.isImmediatePropagationStopped=t,null!=s.clientX){const r=V().documentElement,n=V().body;s.pageX=s.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),s.pageY=s.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)}s.which=s.charCode||s.keyCode,null!=s.button&&(s.button=1&s.button?0:4&s.button?1:2&s.button?2:0)}return s.fixed_=!0,s}const Ff=function(){if("boolean"!=typeof mn){mn=!1;try{const s=Object.defineProperty({},"passive",{get(){mn=!0}});v().addEventListener("test",null,s),v().removeEventListener("test",null,s)}catch{}}return mn},Uf=["touchstart","touchmove"];function Wt(s,e,t){if(Array.isArray(e))return Ra(Wt,s,e,t);Mt.has(s)||Mt.set(s,{});const i=Mt.get(s);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),t.guid||(t.guid=Ti()),i.handlers[e].push(t),i.dispatcher||(i.disabled=!1,i.dispatcher=function(r,n){if(i.disabled)return;r=pn(r);const a=i.handlers[r.type];if(a){const u=a.slice(0);for(let h=0,p=u.length;h<p&&!r.isImmediatePropagationStopped();h++)try{u[h].call(s,r,n)}catch(_){$e.error(_)}}}),1===i.handlers[e].length)if(s.addEventListener){let r=!1;
vendor: 8,518 bytes, line 1
1Ff()&&Uf.indexOf(e)>-1&&(r={passive:!0}),s.addEventListener(e,i.dispatcher,r)}else s.attachEvent&&s.attachEvent("on"+e,i.dispatcher)}function Pt(s,e,t){if(!Mt.has(s))return;const i=Mt.get(s);if(!i.handlers)return;if(Array.isArray(e))return Ra(Pt,s,e,t);const r=function(a,u){i.handlers[u]=[],Ku(a,u)};if(void 0===e){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(s,a);return}const n=i.handlers[e];if(n){if(!t)return void r(s,e);if(t.guid)for(let a=0;a<n.length;a++)n[a].guid===t.guid&&n.splice(a--,1);Ku(s,e)}}function Ns(s,e,t){const i=Mt.has(s)?Mt.get(s):{},r=s.parentNode||s.ownerDocument;if("string"==typeof e?e={type:e,target:s}:e.target||(e.target=s),e=pn(e),i.dispatcher&&i.dispatcher.call(s,e,t),r&&!e.isPropagationStopped()&&!0===e.bubbles)Ns.call(null,r,e,t);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){Mt.has(e.target)||Mt.set(e.target,{});const n=Mt.get(e.target);e.target[e.type]&&(n.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),n.disabled=!1)}return!e.defaultPrevented}function gn(s,e,t){if(Array.isArray(e))return Ra(gn,s,e,t);const i=function(){Pt(s,e,i),t.apply(this,arguments)};i.guid=t.guid=t.guid||Ti(),Wt(s,e,i)}function Ma(s,e,t){const i=function(){Pt(s,e,i),t.apply(this,arguments)};i.guid=t.guid=t.guid||Ti(),Wt(s,e,i)}var jf=Object.freeze({__proto__:null,fixEvent:pn,on:Wt,off:Pt,trigger:Ns,one:gn,any:Ma});const st=function(s,e,t){e.guid||(e.guid=Ti());const i=e.bind(s);return i.guid=t?t+"_"+e.guid:e.guid,i},bi=function(s,e){let t=v().performance.now();return function(...r){const n=v().performance.now();n-t>=e&&(s(...r),t=n)}},Qu=function(s,e,t,i=v()){let r;const a=function(){const u=this,h=arguments;let p=function(){r=null,p=null,t||s.apply(u,h)};!r&&t&&s.apply(u,h),i.clearTimeout(r),r=i.setTimeout(p,e)};return a.cancel=()=>{i.clearTimeout(r),r=null},a};var Vf=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:30,bind_:st,throttle:bi,debounce:Qu});let mr;class ii{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Wt(this,e,t),this.addEventListener=i}off(e,t){Pt(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},gn(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},Ma(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=pn(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ns(this,e)}queueTrigger(e){mr||(mr=new Map);const t=e.type||e;let i=mr.get(this);i||(i=new Map,mr.set(this,i));const r=i.get(t);i.delete(t),v().clearTimeout(r);const n=v().setTimeout(()=>{i.delete(t),0===i.size&&(i=null,mr.delete(this)),this.trigger(e)},0);i.set(t,n)}}ii.prototype.allowedEvents_={},ii.prototype.addEventListener=ii.prototype.on,ii.prototype.removeEventListener=ii.prototype.off,ii.prototype.dispatchEvent=ii.prototype.trigger;const _n=s=>"function"==typeof s.name?s.name():"string"==typeof s.name?s.name:s.name_?s.name_:s.constructor&&s.constructor.name?s.constructor.name:typeof s,Oi=s=>s instanceof ii||!!s.eventBusEl_&&["on","one","off","trigger"].every(e=>"function"==typeof s[e]),Ba=s=>"string"==typeof s&&/\S/.test(s)||Array.isArray(s)&&!!s.length,yn=(s,e,t)=>{if(!s||!s.nodeName&&!Oi(s))throw new Error(`Invalid target for ${_n(e)}#${t}; must be a DOM node or evented object.`)},Yu=(s,e,t)=>{if(!Ba(s))throw new Error(`Invalid event type for ${_n(e)}#${t}; must be a non-empty string or array.`)},Zu=(s,e,t)=>{if("function"!=typeof s)throw new Error(`Invalid listener for ${_n(e)}#${t}; must be a function.`)},Fa=(s,e,t)=>{const i=e.length<3||e[0]===s||e[0]===s.eventBusEl_;let r,n,a;return i?(r=s.eventBusEl_,e.length>=3&&e.shift(),[n,a]=e):[r,n,a]=e,yn(r,s,t),Yu(n,s,t),Zu(a,s,t),a=st(s,a),{isTargetingSelf:i,target:r,type:n,listener:a}},ss=(s,e,t,i)=>{yn(s,s,e),s.nodeName?jf[e](s,t,i):s[e](t,i)},qf={on(...s){const{isTargetingSelf:e,target:t,type:i,listener:r}=Fa(this,s,"on");if(ss(t,"on",i,r),!e){const n=()=>this.off(t,i,r);n.guid=r.guid;const a=()=>this.off("dispose",n);a.guid=r.guid,ss(this,"on","dispose",n),ss(t,"on","dispose",a)}},one(...s){const{isTargetingSelf:e,target:t,type:i,listener:r}=Fa(this,s,"one");if(e)ss(t,"one",i,r);else{const n=(...a)=>{this.off(t,i,n),r.apply(null,a)};n.guid=r.guid,ss(t,"one",i,n)}},any(...s){const{isTargetingSelf:e,target:t,type:i,listener:r}=Fa(this,s,"any");if(e)ss(t,"any",i,r);else{const n=(...a)=>{this.off(t,i,n),r.apply(null,a)};n.guid=r.guid,ss(t,"any",i,n)}},off(s,e,t){if(!s||Ba(s))Pt(this.eventBusEl_,s,e);else{const i=s,r=e;yn(i,this,"off"),Yu(r,this,"off"),Zu(t,this,"off"),t=st(this,t),this.off("dispose",t),i.nodeName?(Pt(i,r,t),Pt(i,"dispose",t)):Oi(i)&&(i.off(r,t),i.off("dispose",t))}},trigger(s,e){if(yn(this.eventBusEl_,this,"trigger"),!Ba(s&&"string"!=typeof s?s.type:s))throw new Error(`Invalid event type for ${_n(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Ns(this.eventBusEl_,s,e)}};function Ua(s,e={}){const{eventBusKey:t}=e;if(t){if(!s[t].nodeName)throw new Error(`The eventBusKey "${t}" does not refer to an element.`);s.eventBusEl_=s[t]}else s.eventBusEl_=Fe("span",{className:"vjs-event-bus"});return Object.assign(s,qf),s.eventedCallbacks&&s.eventedCallbacks.forEach(i=>{i()}),s.on("dispose",()=>{s.off(),[s,s.el_,s.eventBusEl_].forEach(function(i){i&&Mt.has(i)&&Mt.delete(i)}),v().setTimeout(()=>{s.eventBusEl_=null},0)}),s}const Hf={state:{},setState(s){let e;return"function"==typeof s&&(s=s()),Cs(s,(t,i)=>{this.state[i]!==t&&(e=e||{},e[i]={from:this.state[i],to:t}),this.state[i]=t}),e&&Oi(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Ju(s,e){return Object.assign(s,Hf),s.state=Object.assign({},s.state,e),"function"==typeof s.handleStateChanged&&Oi(s)&&s.on("statechanged",s.handleStateChanged),s}const gr=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toLowerCase())},pt=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toUpperCase())},el=function(s,e){return pt(s)===pt(e)};var Gf=Object.freeze({__proto__:null,toLowerCase:gr,toTitleCase:pt,titleCaseEquals:el});class H{constructor(e,t,i){if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=it({},this.options_),t=this.options_=it(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const r=e&&e.id&&e.id()||"no_player";this.id_=`${r}_component_${Ti()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),!1!==t.evented&&(Ua(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ju(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=it(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return Fe(e,t,i)}localize(e,t,i=e){const r=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[r],u=r&&r.split("-")[0],h=n&&n[u];let p=i;return a&&a[e]?p=a[e]:h&&h[e]&&(p=h[e]),t&&(p=p.replace(/\{(\d+)\}/g,function(_,b){const I=t[b-1];let P=I;return typeof I>"u"&&(P=_),P})),p}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}
vendor: 9,042 bytes, line 1
1getDescendant(...e){e=e.reduce((i,r)=>i.concat(r),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",r=Fe("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),n=V().createElementNS(i,"svg");n.setAttributeNS(null,"viewBox","0 0 512 512");const a=V().createElementNS(i,"use");return n.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),r.appendChild(n),this.iconIsSet_?t.replaceChild(r,t.querySelector(".vjs-icon-placeholder")):t.appendChild(r),this.iconIsSet_=!0,r}addChild(e,t={},i=this.children_.length){let r,n;if("string"==typeof e){n=pt(e);const a=t.componentClass||n;t.name=n;const u=H.getComponent(a);if(!u)throw new Error(`Component ${a} does not exist`);if("function"!=typeof u)return null;r=new u(this.player_||this,t)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),n=n||r.name&&pt(r.name()),n&&(this.childNameIndex_[n]=r,this.childNameIndex_[gr(n)]=r),"function"==typeof r.el&&r.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:Is(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){t=!0,this.children_.splice(r,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[pt(e.name())]=null,this.childNameIndex_[gr(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=a=>{const u=a.name;let h=a.opts;if(void 0!==t[u]&&(h=t[u]),!1===h)return;!0===h&&(h={}),h.playerOptions=this.options_.playerOptions;const p=this.addChild(u,h);p&&(this[u]=p)};let r;const n=H.getComponent("Tech");r=Array.isArray(e)?e:Object.keys(e),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(u){return"string"==typeof u?a===u:a===u.name})})).map(a=>{let u,h;return"string"==typeof a?(u=a,h=e[u]||this.options_[u]||{}):(u=a.name,h=a),{name:u,opts:h}}).filter(a=>{const u=H.getComponent(a.opts.componentClass||pt(a.name));return u&&!n.isTech(u)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_)return this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e);t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)}$(e,t){return Ki(e,t||this.contentEl())}$$(e,t){return qu(e,t||this.contentEl())}hasClass(e){return hr(this.el_,e)}addClass(...e){is(this.el_,...e)}removeClass(...e){cn(this.el_,...e)}toggleClass(e,t){Ru(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Bu(this.el_,e)}setAttribute(e,t){Ps(this.el_,e,t)}removeAttribute(e){dn(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return(null===t||t!=t)&&(t=0),this.el_.style[e]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const r=this.el_.style[e],n=r.indexOf("px");return parseInt(-1!==n?r.slice(0,n):this.el_["offset"+pt(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Os(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i=`offset${pt(e)}`;t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(ve().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let n,e=0,t=null;this.on("touchstart",function(u){1===u.touches.length&&(t={pageX:u.touches[0].pageX,pageY:u.touches[0].pageY},e=v().performance.now(),n=!0)}),this.on("touchmove",function(u){if(u.touches.length>1)n=!1;else if(t){const h=u.touches[0].pageX-t.pageX,p=u.touches[0].pageY-t.pageY;Math.sqrt(h*h+p*p)>10&&(n=!1)}});const a=function(){n=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(u){t=null,!0===n&&v().performance.now()-e<200&&(u.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=st(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const i=function(r){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=st(this,e),this.clearTimersOnDispose_(),i=v().setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),v().clearTimeout(e)),e}setInterval(e,t){e=st(this,e),this.clearTimersOnDispose_();const i=v().setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),v().clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=st(this,e),t=v().requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=st(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),v().cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((i,r)=>this[t](r))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=H.getComponent("Tech"),r=i&&i.isTech(t),n=H===t||H.prototype.isPrototypeOf(t.prototype);if(r||!n){let u;throw u=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${u}.`)}e=pt(e),H.components_||(H.components_={});const a=H.getComponent("Player");if("Player"===e&&a&&a.players){const u=a.players,h=Object.keys(u);if(u&&h.length>0&&h.map(p=>u[p]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return H.components_[e]=t,H.components_[gr(e)]=t,t}static getComponent(e){if(e&&H.components_)return H.components_[e]}}function tl(s,e,t,i){return function zf(s,e,t){if("number"!=typeof e||e<0||e>t)throw new Error(`Failed to execute '${s}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${t}).`)}(s,i,t.length-1),t[i][e]}function ja(s){let e;return e=void 0===s||0===s.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:s.length,start:tl.bind(null,"start",0,s),end:tl.bind(null,"end",1,s)},v().Symbol&&v().Symbol.iterator&&(e[v().Symbol.iterator]=()=>(s||[]).values()),e}function di(s,e){return Array.isArray(s)?ja(s):void 0===s||void 0===e?ja():ja([[s,e]])}H.registerComponent("Component",H);const il=function(s,e){s=s<0?0:s;let t=Math.floor(s%60),i=Math.floor(s/60%60),r=Math.floor(s/3600);const n=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(s)||s===1/0)&&(r=i=t="-"),r=r>0||a>0?r+":":"",i=((r||n>=10)&&i<10?"0"+i:i)+":",t=t<10?"0"+t:t,r+i+t};let Va=il;function sl(s){Va=s}function rl(){Va=il}function rs(s,e=s){return Va(s,e)}var Wf=Object.freeze({__proto__:null,createTimeRanges:di,createTimeRange:di,setFormatTime:sl,resetFormatTime:rl,formatTime:rs});function nl(s,e){let i,r,t=0;if(!e)return 0;(!s||!s.length)&&(s=di(0,0));for(let n=0;n<s.length;n++)i=s.start(n),r=s.end(n),r>e&&(r=e),t+=r-i;return t/e}function Bt(s){if(s instanceof Bt)return s;
1"number"==typeof s?this.code=s:"string"==typeof s?this.message=s:_i(s)&&("number"==typeof s.code&&(this.code=s.code),Object.assign(this,s)),this.message||(this.message=Bt.defaultMessages[this.code]||"")}Bt.prototype.code=0,Bt.prototype.message="",Bt.prototype.status=null,Bt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Bt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let s=0;s<Bt.errorTypes.length;s++)Bt[Bt.errorTypes[s]]=s,Bt.prototype[Bt.errorTypes[s]]=s;function _r(s){return null!=s&&"function"==typeof s.then}function xi(s){_r(s)&&s.then(null,e=>{})}const $a=function(s){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,r)=>(s[i]&&(t[i]=s[i]),t),{cues:s.cues&&Array.prototype.map.call(s.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})};const qa="vjs-modal-dialog";class Rs extends H{constructor(e,t){super(e,t),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Fe("div",{className:`${qa}-content`},{role:"document"}),this.descEl_=Fe("p",{className:`${qa}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Wi(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${qa}
1 vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const r=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),$u(t,e),this.trigger("modalfill"),r?i.insertBefore(t,r):i.appendChild(t);const n=this.getChild("closeButton");n&&i.appendChild(n.el_)}empty(){this.trigger("beforemodalempty"),fn(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=V().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),ve().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!ve().isEventKey(e,"Tab"))return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let r;for(let n=0;n<t.length;n++)if(i===t[n]){r=n;break}V().activeElement===this.el_&&(r=0),e.shiftKey&&0===r?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,t=>(t instanceof v().HTMLAnchorElement||t instanceof v().HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof v().HTMLInputElement||t instanceof v().HTMLSelectElement||t instanceof v().HTMLTextAreaElement||t instanceof v().HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof v().HTMLIFrameElement||t instanceof v().HTMLObjectElement||t instanceof v().HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable"))}}Rs.prototype.options_={pauseOnOpen:!0,temporary:!0},H.registerComponent("ModalDialog",Rs);class Ms extends ii{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Oi(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){t=n;break}}return t}}Ms.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const s in Ms.prototype.allowedEvents_)Ms.prototype["on"+s]=null;const Ha=function(s,e){for(let t=0;t<s.length;t++)!Object.keys(s[t]).length||e.id===s[t].id||(s[t].enabled=!1)},Ga=function(s,e){for(let t=0;t<s.length;t++)!Object.keys(s[t]).length||e.id===s[t].id||(s[t].selected=!1)};class ol extends Ms{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class vn{constructor(e){vn.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const r=e.length;this.cues_=e,this.length_=e.length;const n=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(t<r)for(i=t;i<r;i++)n.call(this,i)}getCueById(e){let t=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){t=n;break}}return t}}const Yf={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Zf={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Jf={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ul={disabled:"disabled",hidden:"hidden",showing:"showing"};class za extends ii{constructor(e={}){super();const t={id:e.id||"vjs_track_"+Ti(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const r in t)Object.defineProperty(this,r,{get:()=>t[r],set(){}});Object.defineProperty(this,"label",{get:()=>i,set(r){r!==i&&(i=r,this.trigger("labelchange"))}})}}const Wa=function(s){const e=["protocol","hostname","port","pathname","search","hash","host"],t=V().createElement("a");t.href=s;const i={};for(let r=0;r<e.length;r++)i[e[r]]=t[e[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=v().location.protocol),i.host||(i.host=v().location.host),i},ll=function(s){if(!s.match(/^https?:\/\//)){const e=V().createElement("a");e.href=s,s=e.href}return s},Xa=function(s){if("string"==typeof s){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(s);if(t)return t.pop().toLowerCase()}return""},Tn=function(s,e=v().location){const t=Wa(s);return(":"===t.protocol?e.protocol:t.protocol)+t.host!==e.protocol+e.host};var ep=Object.freeze({__proto__:null,parseUrl:Wa,getAbsoluteURL:ll,getFileExtension:Xa,isCrossOrigin:Tn});const cl=function(s,e){const t=new(v().WebVTT.Parser)(v(),v().vttjs,v().WebVTT.StringDecoder()),i=[];t.oncue=function(r){e.addCue(r)},t.onparsingerror=function(r){i.push(r)},t.onflush=function(){e.trigger({type:"loadeddata",target:e})},t.parse(s),i.length>0&&(v().console&&v().console.groupCollapsed&&v().console.groupCollapsed(`Text Track parsing errors for ${e.src}
1`),i.forEach(r=>$e.error(r)),v().console&&v().console.groupEnd&&v().console.groupEnd()),t.flush()},dl=function(s,e){const t={uri:s},i=Tn(s);i&&(t.cors=i);const r="use-credentials"===e.tech_.crossOrigin();r&&(t.withCredentials=r),Ce()(t,st(this,function(n,a,u){if(n)return $e.error(n,a);e.loaded_=!0,"function"!=typeof v().WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],h=>{if("vttjserror"!==h.type)return cl(u,e);$e.error(`vttjs failed to load, stopping trying to process ${e.src}`)}):cl(u,e)}))};class yr extends za{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=it(e,{kind:Jf[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=ul[t.mode]||"disabled";const r=t.default;("metadata"===t.kind||"chapters"===t.kind)&&(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const n=new vn(this.cues_),a=new vn(this.activeCues_);let u=!1;this.timeupdateHandler=st(this,function(p={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_)return void("timeupdate"!==p.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)));this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1),"timeupdate"!==p.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>r,set(){}},mode:{get:()=>i,set(p){ul[p]&&i!==p&&(i=p,!this.preload_&&"disabled"!==i&&0===this.cues.length&&dl(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?n:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return a;const p=this.tech_.currentTime(),_=[];for(let b=0,I=this.cues.length;b<I;b++){const P=this.cues[b];P.startTime<=p&&P.endTime>=p&&_.push(P)}if(u=!1,_.length!==this.activeCues_.length)u=!0;else for(let b=0;b<_.length;b++)-1===this.activeCues_.indexOf(_[b])&&(u=!0);return this.activeCues_=_,a.setCues_(this.activeCues_),a},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&dl(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new(v().vttjs.VTTCue)(e.startTime,e.endTime,e.text);for(const r in e)r in t||(t[r]=e[r]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}yr.prototype.allowedEvents_={cuechange:"cuechange"};class hl extends za{constructor(e={}){const t=it(e,{kind:Zf[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get:()=>i,set(r){"boolean"!=typeof r||r===i||(i=r,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class fl extends za{constructor(e={}){const t=it(e,{kind:Yf[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get:()=>i,set(r){"boolean"!=typeof r||r===i||(i=r,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ni extends ii{constructor(e={}){let t;super();const i=new yr(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>i}}),t=Ni.NONE,i.addEventListener("loadeddata",()=>{t=Ni.LOADED,this.trigger({type:"load",target:this})})}}Ni.prototype.allowedEvents_={load:"load"},Ni.NONE=0,Ni.LOADING=1,Ni.LOADED=2,Ni.ERROR=3;const si={audio:{ListClass:class Xf extends Ms{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){Ha(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&Ha(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,Ha(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:hl,capitalName:"Audio"},video:{ListClass:class Kf extends Ms{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Ga(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set(){}})}addTrack(e){e.selected&&Ga(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Ga(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:fl,capitalName:"Video"},text:{ListClass:ol,TrackClass:yr,capitalName:"Text"}};
vendor: 4,316 bytes, line 1
1Object.keys(si).forEach(function(s){si[s].getterName=`${s}Tracks`,si[s].privateName=`${s}Tracks_`});const Bs={remoteText:{ListClass:ol,TrackClass:yr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class Qf{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,r=this.trackElements_.length;i<r;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:Ni,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ft=Object.assign({},si,Bs);Bs.names=Object.keys(Bs),si.names=Object.keys(si),Ft.names=[].concat(Bs.names).concat(si.names);class Be extends H{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Ft.names.forEach(i=>{const r=Ft[i];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{!1===e[`native${i}Tracks`]&&(this[`featuresNative${i}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:(!0===e.nativeCaptions||!0===e.nativeTextTracks)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new Ft.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(st(this,function(){const t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return di(0,0)}bufferedPercent(){return nl(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(si.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
vendor: 8,625 bytes, line 1
1clearTracks(e){(e=[].concat(e)).forEach(t=>{const i=this[`${t}Tracks`]()||[];let r=i.length;for(;r--;){const n=i[r];"text"===t&&this.removeRemoteTextTrack(n),i.removeTrack(n)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;)this.removeRemoteTextTrack(e[t])}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new Bt(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?di(0,0):di()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){si.names.forEach(e=>{const i=()=>{this.trigger(`${e}trackchange`)},r=this[si[e].getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),this.on("dispose",()=>{r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!v().WebVTT)if(V().body.contains(this.el())){if(!this.options_["vtt.js"]&&ws(de())&&Object.keys(de()).length>0)return void this.trigger("vttjsloaded");const e=V().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),v().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=u=>e.addTrack(u.track),r=u=>e.removeTrack(u.track);t.on("addtrack",i),t.on("removetrack",r),this.addWebVttScript_();const n=()=>this.trigger("texttrackchange"),a=()=>{n();for(let u=0;u<e.length;u++){const h=e[u];h.removeEventListener("cuechange",n),"showing"===h.mode&&h.addEventListener("cuechange",n)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){t.off("addtrack",i),t.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let u=0;u<e.length;u++)e[u].removeEventListener("cuechange",n)})}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function tp(s,e,t,i,r={}){const n=s.textTracks();r.kind=e,t&&(r.label=t),i&&(r.language=i),r.tech=s;const a=new Ft.text.TrackClass(r);return n.addTrack(a),a}(this,e,t,i)}createRemoteTextTrack(e){const t=it(e,{tech:this});return new Bs.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=Ti();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return Be.canPlayType(e.type)}static isTech(e){return e.prototype instanceof Be||e instanceof Be||e===Be}static registerTech(e,t){if(Be.techs_||(Be.techs_={}),!Be.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!Be.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Be.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=pt(e),Be.techs_[e]=t,Be.techs_[gr(e)]=t,"Tech"!==e&&Be.defaultTechOrder_.push(e),t}static getTech(e){if(e){if(Be.techs_&&Be.techs_[e])return Be.techs_[e];if(e=pt(e),v()&&v().videojs&&v().videojs[e])return $e.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),v().videojs[e]}}}Ft.names.forEach(function(s){const e=Ft[s];Be.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}}),Be.prototype.featuresVolumeControl=!0,Be.prototype.featuresMuteControl=!0,Be.prototype.featuresFullscreenResize=!1,Be.prototype.featuresPlaybackRate=!1,Be.prototype.featuresProgressEvents=!1,Be.prototype.featuresSourceset=!1,Be.prototype.featuresTimeupdateEvents=!1,Be.prototype.featuresNativeTextTracks=!1,Be.prototype.featuresVideoFrameCallback=!1,Be.withSourceHandlers=function(s){s.registerSourceHandler=function(t,i){let r=s.sourceHandlers;r||(r=s.sourceHandlers=[]),void 0===i&&(i=r.length),r.splice(i,0,t)},s.canPlayType=function(t){const i=s.sourceHandlers||[];let r;for(let n=0;n<i.length;n++)if(r=i[n].canPlayType(t),r)return r;return""},s.selectSourceHandler=function(t,i){const r=s.sourceHandlers||[];let n;for(let a=0;a<r.length;a++)if(n=r[a].canHandleSource(t,i),n)return r[a];return null},s.canPlaySource=function(t,i){const r=s.selectSourceHandler(t,i);return r?r.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(t){const i=this[t];"function"==typeof i&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):i.apply(this,arguments)})},s.prototype),s.prototype.setSource=function(t){let i=s.selectSourceHandler(t,this.options_);i||(s.nativeSourceHandler?i=s.nativeSourceHandler:$e.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==s.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},s.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},H.registerComponent("Tech",Be),Be.registerTech("Tech",Be),Be.defaultTechOrder_=[];const ns={},Ka={},bn={};function sp(s,e,t){s.setTimeout(()=>as(e,ns[e.type],t,s),1)}function pl(s,e,t,i=null){const r="call"+pt(t),n=s.reduce(Qa(r),i),a=n===bn,u=a?null:e[t](n);return function lp(s,e,t,i){for(let r=s.length-1;r>=0;r--){const n=s[r];n[e]&&n[e](i,t)}}(s,t,u,a),u}const op={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},up={setCurrentTime:1,setMuted:1,setVolume:1},ml={play:1,pause:1};function Qa(s){return(e,t)=>e===bn?bn:t[s]?t[s](e):e}function as(s={},e=[],t,i,r=[],n=!1){const[a,...u]=e;if("string"==typeof a)as(s,ns[a],t,i,r,n);else if(a){const h=function dp(s,e){const t=Ka[s.id()];let i=null;if(null==t)return i=e(s),Ka[s.id()]=[[e,i]],i;for(let r=0;r<t.length;r++){const[n,a]=t[r];n===e&&(i=a)}return null===i&&(i=e(s),t.push([e,i])),i}(i,a);if(!h.setSource)return r.push(h),as(s,u,t,i,r,n);h.setSource(Object.assign({},s),function(p,_){if(p)return as(s,u,t,i,r,n);r.push(h),as(_,s.type===_.type?u:ns[_.type],t,i,r,n)})}else u.length?as(s,u,t,i,r,n):n?t(s,r):as(s,ns["*"],t,i,r,!0)}const hp={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},xn=function(s=""){const e=Xa(s);return hp[e.toLowerCase()]||""},gl=function(s){if(Array.isArray(s)){let e=[];s.forEach(function(t){t=gl(t),Array.isArray(t)?e=e.concat(t):_i(t)&&e.push(t)}),s=e}else s="string"==typeof s&&s.trim()?[_l({src:s})]:_i(s)&&"string"==typeof s.src&&s.src&&s.src.trim()?[_l(s)]:[];return s};function _l(s){if(!s.type){const e=xn(s.src);e&&(s.type=e)}return s}H.registerComponent("MediaLoader",class mp extends H{constructor(e,t,i){if(super(e,it({createEl:!1},t),i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let n=0,a=t.playerOptions.techOrder;n<a.length;
vendor: 14,069 bytes, line 1
1n++){const u=pt(a[n]);let h=Be.getTech(u);if(u||(h=H.getComponent(u)),h&&h.isSupported()){e.loadTech_(u);break}}}});class Sn extends H{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&$e.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const r=Fe(e,t,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(Fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Fe("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Wi(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&t.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){ve().isEventKey(e,"Space")||ve().isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}H.registerComponent("ClickableComponent",Sn);class Ya extends Sn{constructor(e,t){super(e,t),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Fe("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Fe("picture",{className:"vjs-poster",tabIndex:-1},{},Fe("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?xi(this.player_.play()):this.player_.pause())}}Ya.prototype.crossorigin=Ya.prototype.crossOrigin,H.registerComponent("PosterImage",Ya);const ri="#222",gp={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Za(s,e){let t;if(4===s.length)t=s[1]+s[1]+s[2]+s[2]+s[3]+s[3];else{if(7!==s.length)throw new Error("Invalid color code provided, "+s+"; must be formatted as e.g. #f0e or #f604e2.");t=s.slice(1)}return"rgba("+parseInt(t.slice(0,2),16)+","+parseInt(t.slice(2,4),16)+","+parseInt(t.slice(4,6),16)+","+e+")"}function vr(s,e,t){try{s.style[e]=t}catch{return}}function vl(s){return s?`${s}px`:""}H.registerComponent("TextTrackDisplay",class _p extends H{constructor(e,t,i){super(e,t,i);const n=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("texttrackchange",a=>this.updateDisplay(a)),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(st(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",n),e.on("playerresize",n);const a=v().screen.orientation||v(),u=v().screen.orientation?"change":"orientationchange";a.addEventListener(u,n),e.on("dispose",()=>a.removeEventListener(u,n));const h=this.options_.playerOptions.tracks||[];for(let p=0;p<h.length;p++)this.player_.addRemoteTextTrack(h[p],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let r,n,a;for(let u=0;u<t.length;u++){const h=t[u];i&&i.enabled&&i.language&&i.language===h.language&&h.kind in e?h.kind===i.kind?a=h:a||(a=h):i&&!i.enabled?(a=null,r=null,n=null):h.default&&("descriptions"!==h.kind||r?h.kind in e&&!n&&(n=h):r=h)}a?a.mode="showing":n?n.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof v().WebVTT&&v().WebVTT.processCues(v(),[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const a=[];for(let u=0;u<e.length;++u){const h=e[u];"showing"===h.mode&&a.push(h)}return void this.updateForTrack(a)}let i=null,r=null,n=e.length;for(;n--;){const a=e[n];"showing"===a.mode&&("descriptions"===a.kind?i=a:r=a)}r?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!v().CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,r=this.player_.videoWidth()/this.player_.videoHeight();let n=0,a=0;Math.abs(i-r)>.1&&(i>r?n=Math.round((e-t*r)/2):a=Math.round((t-e/r)/2)),vr(this.el_,"insetInline",vl(n)),vr(this.el_,"insetBlock",vl(a))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let r=i.length;for(;r--;){const n=i[r];if(!n)continue;const a=n.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&vr(a.firstChild,"color",Za(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&vr(a.firstChild,"backgroundColor",Za(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?vr(a,"backgroundColor",Za(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow=`2px 2px 3px ${ri}, 2px 2px 4px ${ri}, 2px 2px 5px ${ri}`:"raised"===t.edgeStyle?a.firstChild.style.textShadow=`1px 1px ${ri}, 2px 2px ${ri}, 3px 3px ${ri}`:"depressed"===t.edgeStyle?a.firstChild.style.textShadow=`1px 1px #ccc, 0 1px #ccc, -1px -1px ${ri}, 0 -1px ${ri}`:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow=`0 0 4px ${ri}, 0 0 4px ${ri}, 0 0 4px ${ri}, 0 0 4px ${ri}`)),t.fontPercent&&1!==t.fontPercent){const u=v().parseFloat(a.style.fontSize);a.style.fontSize=u*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=gp[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof v().WebVTT||e.every(i=>!i.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n)t.push(r.activeCues[n])}v().WebVTT.processCues(v(),t,this.el_);for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n){const a=r.activeCues[n].displayState;is(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:i)),r.language&&Ps(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}),H.registerComponent("LoadingSpinner",class yp extends H{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=Fe("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class Xt extends Sn{createEl(e,t={},i={}){const r=Fe("button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i));return this.player_.options_.experimentalSvgIcons||r.appendChild(Fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,t={}){return $e.warn(`Adding an actionable (user controllable) child to a Button (${this.constructor.name}) is not supported; use a ClickableComponent instead.`),H.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){ve().isEventKey(e,"Space")||ve().isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}}H.registerComponent("Button",Xt);class Tl extends Xt{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return xi(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(!r)return void this.player_.tech(!0).focus();const n=()=>r.focus();_r(t)?t.then(n,()=>{}):this.setTimeout(n,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}Tl.prototype.controlText_="Play Video",H.registerComponent("BigPlayButton",Tl),H.registerComponent("CloseButton",class vp extends Xt{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){ve().isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class bl extends Xt{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),t.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?xi(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",t=>this.handleSeeked(t))}}bl.prototype.controlText_="Play",H.registerComponent("PlayToggle",bl);class Fs extends H{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Fe("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\xa0`},{role:"presentation"});return t.appendChild(i),this.contentEl_=Fe("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&"seeking"===e.type||this.updateContent(e)}updateTextNode_(e=0){e=rs(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let t=this.textNode_;t&&this.contentEl_.firstChild!==t&&(t=null,$e.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=V().createTextNode(this.formattedTime_),this.textNode_&&(t?this.contentEl_.replaceChild(this.textNode_,t):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Fs.prototype.labelText_="Time",Fs.prototype.controlText_="Time",H.registerComponent("TimeDisplay",Fs);class Ja extends Fs{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}Ja.prototype.labelText_="Current Time",Ja.prototype.controlText_="Current Time",H.registerComponent("CurrentTimeDisplay",Ja);class eo extends Fs{constructor(e,t){super(e,t);const i=r=>this.updateContent(r);
vendor: 7,543 bytes, line 1
1this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}eo.prototype.labelText_="Duration",eo.prototype.controlText_="Duration",H.registerComponent("DurationDisplay",eo),H.registerComponent("TimeDivider",class Tp extends H{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}});class to extends Fs{constructor(e,t){super(e,t),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Fe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}to.prototype.labelText_="Remaining Time",to.prototype.controlText_="Remaining Time",H.registerComponent("RemainingTimeDisplay",to),H.registerComponent("LiveDisplay",class bp extends H{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Fe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Fe("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\xa0`})),this.contentEl_.appendChild(V().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class xl extends Xt{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Fe("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Tr(s,e,t){return s=Number(s),Math.min(t,Math.max(e,isNaN(s)?e:s))}xl.prototype.controlText_="Seek to live, currently playing live",H.registerComponent("SeekToLive",xl);var xp=Object.freeze({__proto__:null,clamp:Tr});class io extends H{constructor(e,t){super(e,t),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"===e.type&&!vi&&e.preventDefault(),Fu(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Uu(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Tr(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=hn(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){ve().isEventKey(e,"Left")||ve().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ve().isEventKey(e,"Right")||ve().isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal")}}H.registerComponent("Slider",io);const so=(s,e)=>Tr(s/e*100,0,100).toFixed(2)+"%";H.registerComponent("LoadProgressBar",class Sp extends H{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Fe("span",{className:"vjs-control-text"}),i=Fe("span",{textContent:this.localize("Loaded")}),r=V().createTextNode(": ");return this.percentageEl_=Fe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(r),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const t=this.player_.liveTracker,i=this.player_.buffered(),r=t&&t.isLive()?t.seekableEnd():this.player_.duration(),n=this.player_.bufferedEnd(),a=this.partEls_,u=so(n,r);this.percent_!==u&&(this.el_.style.width=u,Wi(this.percentageEl_,u),this.percent_=u);for(let h=0;h<i.length;h++){const p=i.start(h),_=i.end(h);
vendor: 4,419 bytes, line 1
1let b=a[h];b||(b=this.el_.appendChild(Fe()),a[h]=b),(b.dataset.start!==p||b.dataset.end!==_)&&(b.dataset.start=p,b.dataset.end=_,b.style.left=so(p,n),b.style.width=so(_-p,n))}for(let h=a.length;h>i.length;h--)this.el_.removeChild(a[h-1]);a.length=i.length})}}),H.registerComponent("TimeTooltip",class Ep extends H{constructor(e,t){super(e,t),this.update=bi(st(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const r=fr(this.el_),n=Ls(this.player_.el()),a=e.width*t;if(!n||!r)return;const u=e.left-n.left+a,h=e.width-a+(n.right-e.right);let p=r.width/2;u<p?p+=p-u:h<p&&(p=h),p<0?p=0:p>r.width&&(p=r.width),p=Math.round(p),this.el_.style.right=`-${p}px`,this.write(i)}write(e){Wi(this.el_,e)}updateTime(e,t,i,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let n;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const u=this.player_.liveTracker.liveWindow(),h=u-t*u;n=(h<1?"":"-")+rs(h,u)}else n=rs(i,a);this.update(e,t,n),r&&r()})}});class ro extends H{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=bi(st(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,r)}}ro.prototype.options_={children:[]},!Rt&&!yi&&ro.prototype.options_.children.push("timeTooltip"),H.registerComponent("PlayProgressBar",ro);class Sl extends H{constructor(e,t){super(e,t),this.update=bi(st(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Sl.prototype.options_={children:["timeTooltip"]},H.registerComponent("MouseTimeDisplay",Sl);class no extends io{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=st(this,this.update),this.update=bi(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in V()&&"visibilityState"in V()&&this.on(V(),"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===V().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===V().visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let n=this.player_.duration();r&&r.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),(this.currentTime_!==i||this.duration_!==n)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[rs(i,n),rs(n,n)],"{1} of {2}")),this.currentTime_=i,this.duration_=n),this.bar&&this.bar.update(Ls(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;
1return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){pr(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!pr(e)||isNaN(this.player_.duration()))return;let i;!t&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);const r=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(r>=.99)return void n.seekToLiveEdge();const a=n.seekableStart(),u=n.liveCurrentTime();if(i=a+r*n.liveWindow(),i>=u&&(i=u),i<=a&&(i=a+.1),i===1/0)return}else i=r*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?xi(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+5)}stepBack(){this.userSeek_(this.player_.currentTime()-5)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(ve().isEventKey(e,"Space")||ve().isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(ve().isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(ve().isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(ve()(e))){e.preventDefault(),e.stopPropagation();const i=10*(ve().codes[ve()(e)]-ve().codes[0])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else ve().isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):ve().isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in V()&&"visibilityState"in V()&&this.off(V(),"visibilitychange",this.toggleVisibility_),super.dispose()}}no.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},!Rt&&!yi&&no.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),H.registerComponent("SeekBar",no);class Cl extends H{constructor(e,t){super(e,t),this.handleMouseMove=bi(st(this,this.handleMouseMove),30),this.throttledHandleMouseSeek=bi(st(this,this.handleMouseSeek),30),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(!i&&!r)return;const n=t.el(),a=fr(n);let u=hn(n,e).x;u=Tr(u,0,1),r&&r.update(a,u),i&&i.update(a,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
vendor: 6,524 bytes, line 1
1disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&xi(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}Cl.prototype.options_={children:["seekBar"]},H.registerComponent("ProgressControl",Cl);class wl extends Xt{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){V().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in v()?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof V().exitPictureInPicture&&super.show()}}wl.prototype.controlText_="Picture-in-Picture",H.registerComponent("PictureInPictureToggle",wl);class Dl extends Xt{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),!1===V()[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Dl.prototype.controlText_="Fullscreen",H.registerComponent("FullscreenToggle",Dl),H.registerComponent("VolumeLevel",class wp extends H{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),H.registerComponent("VolumeLevelTooltip",class Dp extends H{constructor(e,t){super(e,t),this.update=bi(st(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,r){if(!i){const n=Ls(this.el_),a=Ls(this.player_.el()),u=e.width*t;if(!a||!n)return;const h=e.left-a.left+u,p=e.width-u+(a.right-e.right);let _=n.width/2;h<_?_+=_-h:p<_&&(_=p),_<0?_=0:_>n.width&&(_=n.width),this.el_.style.right=`-${_}px`}this.write(`${r}%`)}write(e){Wi(this.el_,e)}updateVolume(e,t,i,r,n){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,r.toFixed(0)),n&&n()})}});class Al extends H{constructor(e,t){super(e,t),this.update=bi(st(this,this.update),30)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Al.prototype.options_={children:["volumeLevelTooltip"]},H.registerComponent("MouseVolumeLevelDisplay",Al);class Cn extends io{constructor(e,t){super(e,t),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){pr(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),r=Ls(i),n=this.vertical();let a=hn(i,e);a=n?a.y:a.x,a=Tr(a,0,1),t.update(r,a,n)}pr(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}Cn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},!Rt&&!yi&&Cn.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Cn.prototype.playerEvent="volumechange",H.registerComponent("
1VolumeBar",Cn);class kl extends H{constructor(e,t={}){t.vertical=t.vertical||!1,(typeof t.volumeBar>"u"||ws(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(s,e){e.tech_&&!e.tech_.featuresVolumeControl&&s.addClass("vjs-hidden"),s.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(this,e),this.throttledHandleMouseMove=bi(st(this,this.handleMouseMove),30),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}kl.prototype.options_={children:["volumeBar"]},H.registerComponent("VolumeControl",kl);class Il extends Xt{constructor(e,t){super(e,t),function(s,e){e.tech_&&!e.tech_.featuresMuteControl&&s.addClass("vjs-hidden"),s.on(e,"loadstart",function(){e.tech_.featuresMuteControl?s.removeClass("vjs-hidden"):s.addClass("vjs-hidden")})}(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),Rt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),cn(this.el_,[0,1,2,3].reduce((i,r)=>i+`${r?" ":""}vjs-vol-${r}`,"")),is(this.el_,`vjs-vol-${t}`)}updateControlText_(){const t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}Il.prototype.controlText_="Mute",H.registerComponent("MuteToggle",Il);class Pl extends H{constructor(e,t={}){t.inline=!(typeof t.inline<"u")||t.inline,(typeof t.volumeControl>"u"||ws(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}
vendor: 5,276 bytes, line 1
1handleVolumeControlKeyUp(e){ve().isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),Wt(V(),"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),Pt(V(),"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){ve().isEventKey(e,"Esc")&&this.handleMouseOut()}}Pl.prototype.options_={children:["muteToggle","volumeControl"]},H.registerComponent("VolumePanel",Pl);class Ll extends Xt{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()?i.seekableEnd():this.player_.duration();let n;n=t+this.skipTime<=r?t+this.skipTime:r,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Ll.prototype.controlText_="Skip Forward",H.registerComponent("SkipForward",Ll);class Ol extends Xt{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();let n;n=r&&t-this.skipTime<=r?r:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}Ol.prototype.controlText_="Skip Backward",H.registerComponent("SkipBackward",Ol);class Nl extends H{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof H&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof H&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){this.contentEl_=Fe(this.options_.contentElType||"ul",{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Wt(t,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||V().activeElement;if(!this.children().some(i=>i.el()===t)){const i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(r=>r.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){ve().isEventKey(e,"Left")||ve().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(ve().isEventKey(e,"Right")||ve().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}H.registerComponent("Menu",Nl);class ao extends H{constructor(e,t={}){super(e,t),this.menuButton_=new Xt(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Xt.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=n=>this.handleClick(n);this.handleMenuKeyUp_=n=>this.handleMenuKeyUp(n),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",n=>this.handleKeyDown(n)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),Wt(V(),"keyup",this.handleMenuKeyUp_)}
1),this.on("mouseleave",n=>this.handleMouseLeave(n)),this.on("keydown",n=>this.handleSubmenuKeyDown(n))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new Nl(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Fe("li",{className:"vjs-menu-title",textContent:pt(this.options_.title),tabIndex:-1}),i=new H(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";return e+=!0===this.options_.inline?"-inline":"-popup",`vjs-menu-button ${e} ${Xt.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return e+=!0===this.options_.inline?"-inline":"-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),Pt(V(),"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){ve().isEventKey(e,"Esc")||ve().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),ve().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(ve().isEventKey(e,"Up")||ve().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(ve().isEventKey(e,"Esc")||ve().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(ve().isEventKey(e,"Esc")||ve().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ve().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Rt&&Ou())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}H.registerComponent("MenuButton",ao);class oo extends ao{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const r=st(this,this.update);i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})}}H.registerComponent("TrackButton",oo);const kp=["Tab","Esc","Up","Down","Right","Left"];class br extends Sn{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.el_.setAttribute("role",this.selectable?this.multiSelectable?"menuitemcheckbox":"menuitemradio":"menuitem")}createEl(e,t,i){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),n=Fe("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(n):r.replaceChild(n,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){kp.some(t=>ve().isEventKey(e,t))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","fal
1se"),this.controlText(""),this.isSelected_=!1))}}H.registerComponent("MenuItem",br);class xr extends br{constructor(e,t){const i=t.track,r=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const n=(...u)=>{this.handleTracksChange.apply(this,u)},a=(...u)=>{this.handleSelectedLanguageChange.apply(this,u)};if(e.on(["loadstart","texttrackchange"],n),r.addEventListener("change",n),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],n),r.removeEventListener("change",n),r.removeEventListener("selectedlanguagechange",a)}),void 0===r.onchange){let u;this.on(["tap","click"],function(){if("object"!=typeof v().Event)try{u=new(v().Event)("change")}catch{}u||(u=V().createEvent("Event"),u.initEvent("change",!0,!0)),r.dispatchEvent(u)})}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let r=0;r<i.length;r++){const n=i[r];-1!==this.kinds.indexOf(n.kind)&&(n===t?"showing"!==n.mode&&(n.mode="showing"):"disabled"!==n.mode&&(n.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}H.registerComponent("TextTrackMenuItem",xr);class Rl extends xr{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.track.label=t.label?t.label:t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let r=0,n=t.length;r<n;r++){const a=t[r];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let r=0,n=t.length;r<n;r++){const a=t[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}H.registerComponent("OffTextTrackMenuItem",Rl);class Us extends oo{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=xr){let i;this.label_&&(i=`${this.label_} off`),e.push(new Rl(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let n=0;n<r.length;n++){const a=r[n];if(this.kinds_.indexOf(a.kind)>-1){const u=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});u.addClass(`vjs-${a.kind}-menu-item`),e.push(u)}}return e}}H.registerComponent("TextTrackButton",Us);class Ml extends br{constructor(e,t){const i=t.track,r=t.cue,n=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=r.text,t.selected=r.startTime<=n&&n<r.endTime,super(e,t),this.track=i,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}H.registerComponent("ChaptersTrackMenuItem",Ml);class uo extends Us{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}
vendor: 6,043 bytes, line 1
1findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(pt(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,r=t.length;i<r;i++){const a=new Ml(this.player_,{track:this.track_,cue:t[i]});e.push(a)}return e}}uo.prototype.kind_="chapters",uo.prototype.controlText_="Chapters",H.registerComponent("ChaptersButton",uo);class lo extends Us{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const r=e.textTracks(),n=st(this,this.handleTracksChange);r.addEventListener("change",n),this.on("dispose",function(){r.removeEventListener("change",n)})}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let r=0,n=t.length;r<n;r++){const a=t[r];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}lo.prototype.kind_="descriptions",lo.prototype.controlText_="Descriptions",H.registerComponent("DescriptionsButton",lo);class co extends Us{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}co.prototype.kind_="subtitles",co.prototype.controlText_="Subtitles",H.registerComponent("SubtitlesButton",co);class ho extends xr{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}H.registerComponent("CaptionSettingsMenuItem",ho);class fo extends Us{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new ho(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}fo.prototype.kind_="captions",fo.prototype.controlText_="Captions",H.registerComponent("CaptionsButton",fo);class Bl extends xr{createEl(e,t,i){const r=super.createEl(e,t,i),n=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):n.appendChild(Fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Fe("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}H.registerComponent("SubsCapsMenuItem",Bl);class po extends Us{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(pt(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new ho(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Bl),e}}po.prototype.kinds_=["captions","subtitles"],po.prototype.controlText_="Subtitles",H.registerComponent("SubsCapsButton",po);class Fl extends br{constructor(e,t){const i=t.track,r=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const n=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",n),this.on("dispose",()=>{r.removeEventListener("change",n)})}createEl(e,t,i){const r=super.createEl(e,t,i),n=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(n.appendChild(Fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Fe("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const r=t[i];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}H.registerComponent("AudioTrackMenuItem",Fl);class Ul extends oo{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++)e.push(new Fl(this.player_,{track:t[i],selectable:!0,multiSelectable:!1}));return e}}Ul.prototype.controlText_="Audio Track",H.registerComponent("AudioTrackButton",Ul);class mo extends br{constructor(e,t){const i=t.rate,r=parseFloat(i,10);t.label=i,t.selected=r===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=r,this.on(e,"ratechange",n=>this.update(n))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}mo.prototype.contentElType="button",H.registerComponent("PlaybackRateMenuItem",mo);
1class jl extends ao{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Fe("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new mo(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}jl.prototype.controlText_="Playback Rate",H.registerComponent("PlaybackRateMenuButton",jl);class Vl extends H{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}H.registerComponent("Spacer",Vl),H.registerComponent("CustomControlSpacer",class Ip extends Vl{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xa0"})}});class $l extends H{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}$l.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},H.registerComponent("ControlBar",$l);class ql extends Rs{constructor(e,t){super(e,t),this.on(e,"error",i=>{this.close(),this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}ql.prototype.options_=Object.assign({},Rs.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),H.registerComponent("ErrorDisplay",ql);const go="vjs-text-track-settings",Hl=["#000","Black"],Gl=["#00F","Blue"],zl=["#0FF","Cyan"],Wl=["#0F0","Green"],Xl=["#F0F","Magenta"],Kl=["#F00","Red"],Ql=["#FFF","White"],Yl=["#FF0","Yellow"],_o=["1","Opaque"],yo=["0.5","Semi-Transparent"],Zl=["0","Transparent"],os={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Hl,Ql,Kl,Wl,Gl,Yl,Xl,zl]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[_o,yo,Zl]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ql,Hl,Kl,Wl,Gl,Yl,Xl,zl]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:s=>"1.00"===s?null:Number(s)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[_o,yo]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[Zl,yo,_o]}};function Jl(s,e){if(e&&(s=e(s)),s&&"none"!==s)return s}os.windowColor.options=os.backgroundColor.options,H.registerComponent("TextTrackSettings",class Op extends Rs{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=Fe("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Cs(os,i=>{this.on(this.$(i.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",i="label"){const r=os[e],n=r.id.replace("%s",this.id_),a=[t,n].join(" ").trim();return[`<${i} id="${n}" class="${"label"===i?"vjs-label":""}">`,this.localize(r.label),`</${i}>`,`<select aria-labelledby="${a}">`].concat(r.options.map(u=>{const h=n+"-"+u[1].replace(/\W+/g,"");return[`<option id="${h}" value="${u[0]}" `,`aria-labelledby="${a} ${h}">`,this.localize(u[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">
1`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return Fe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return Fe("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return Fe("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return wu(os,(e,t,i)=>{const r=function Pp(s,e){return Jl(s.options[s.options.selectedIndex].value,e)}(this.$(t.selector),t.parser);return void 0!==r&&(e[i]=r),e},{})}setValues(e){Cs(os,(t,i)=>{!function Lp(s,e,t){if(e)for(let i=0;i<s.options.length;i++)if(Jl(s.options[i].value,t)===e){s.selectedIndex=i;break}}(this.$(t.selector),e[i],t.parser)})}setDefaults(){Cs(os,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(v().localStorage.getItem(go))}catch(t){$e.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?v().localStorage.setItem(go,JSON.stringify(e)):v().localStorage.removeItem(go)}catch(t){$e.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}),H.registerComponent("ResizeManager",class Np extends H{constructor(e,t){let i=t.ResizeObserver||v().ResizeObserver;null===t.ResizeObserver&&(i=!1),super(e,it({createEl:!i,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||v().ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Qu(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const n=this.debouncedHandler_;let a=this.unloadListener_=function(){Pt(this,"resize",n),Pt(this,"unload",a),a=null};Wt(this.el_.contentWindow,"unload",a),Wt(this.el_.contentWindow,"resize",n)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const Rp={trackingThreshold:20,liveTolerance:15};H.registerComponent("LiveTracker",class Mp extends H{constructor(e,t){super(e,it(Rp,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(v().performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const r=this.liveCurrentTime(),n=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-n)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;for(;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}
vendor: 13,468 bytes, line 1
1liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),H.registerComponent("TitleBar",class Bp extends H{constructor(e,t){super(e,t),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Fe("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Ti()}`}),description:Fe("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Ti()}`})},Fe("div",{className:"vjs-title-bar"},{},Du(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const n=this.state[r],a=this.els[r],u=i[r];fn(a),n&&Wi(a,n),t&&(t.removeAttribute(u),n&&t.setAttribute(u,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const vo=s=>{const e=s.el();if(e.hasAttribute("src"))return s.triggerSourceset(e.src),!0;const t=s.$$("source"),i=[];let r="";if(!t.length)return!1;for(let n=0;n<t.length;n++){const a=t[n].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(r=i[0]),s.triggerSourceset(r),!0)},Fp=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(s){const e=V().createElement(this.nodeName.toLowerCase());e.innerHTML=s;const t=V().createDocumentFragment();for(;e.childNodes.length;)t.appendChild(e.childNodes[0]);return this.innerText="",v().Element.prototype.appendChild.call(this,t),this.innerHTML}}),ec=(s,e)=>{let t={};for(let i=0;i<s.length&&(t=Object.getOwnPropertyDescriptor(s[i],e),!(t&&t.set&&t.get));i++);return t.enumerable=!0,t.configurable=!0,t},tc=function(s){const e=s.el();if(e.resetSourceWatch_)return;const t={},i=(s=>ec([s.el(),v().HTMLMediaElement.prototype,v().Element.prototype,Fp],"innerHTML"))(s),r=n=>(...a)=>{const u=n.apply(e,a);return vo(s),u};["append","appendChild","insertAdjacentHTML"].forEach(n=>{e[n]&&(t[n]=e[n],e[n]=r(t[n]))}),Object.defineProperty(e,"innerHTML",it(i,{set:r(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(t).forEach(n=>{e[n]=t[n]}),Object.defineProperty(e,"innerHTML",i)},s.one("sourceset",e.resetSourceWatch_)},jp=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?ll(v().Element.prototype.getAttribute.call(this,"src")):""},set(s){return v().Element.prototype.setAttribute.call(this,"src",s),s}});class ge extends Be{constructor(e,t){super(e,t);const i=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const n=this.el_.childNodes;let a=n.length;const u=[];for(;a--;){const h=n[a];"track"===h.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(h),this.remoteTextTracks().addTrack(h.track),this.textTracks().addTrack(h.track),!r&&!this.el_.hasAttribute("crossorigin")&&Tn(h.src)&&(r=!0)):u.push(h))}for(let h=0;h<u.length;h++)this.el_.removeChild(u[h])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&$e.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(dr||un)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),ge.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){!function(s){if(!s.featuresSourceset)return;const e=s.el();if(e.resetSourceset_)return;const t=(s=>ec([s.el(),v().HTMLMediaElement.prototype,jp],"src"))(s),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",it(t,{set:n=>{const a=t.set.call(e,n);return s.triggerSourceset(e.src),a}})),e.setAttribute=(n,a)=>{const u=i.call(e,n,a);return/src/i.test(n)&&s.triggerSourceset(e.src),u},e.load=()=>{const n=r.call(e);return vo(s)||(s.triggerSourceset(""),tc(s)),n},e.currentSrc?s.triggerSourceset(e.currentSrc):vo(s)||tc(s),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",t),e.resetSourceWatch_&&e.resetSourceWatch_()}}(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let n=0;n<e.length;n++){const a=e[n];"metadata"===a.kind&&t.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const r=()=>{for(let n=0;n<t.length;n++){const a=t[n];"disabled"===a.track.mode&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",r)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(r=>{this.el()[`${i}Tracks`].removeEventListener(r,this[`${i}TracksListeners_`][r])}),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=si[e],i=this.el()[t.getterName],r=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const n={change:u=>{const h={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(h),"text"===e&&this[Bs.remoteText.getterName]().trigger(h)},addtrack(u){r.addTrack(u.track)},removetrack(u){r.removeTrack(u.track)}},a=function(){const u=[];for(let h=0;h<r.length;h++){let p=!1;for(let _=0;_<i.length;_++)if(i[_]===r[h]){p=!0;break}p||u.push(r[h])}for(;u.length;)r.removeTrack(u.shift())};this[t.getterName+"Listeners_"]=n,Object.keys(n).forEach(u=>{const h=n[u];i.addEventListener(u,h),this.on("dispose",p=>i.removeEventListener(u,h))}),this.on("loadstart",a),this.on("dispose",u=>this.off("loadstart",a))}proxyNativeTracks_(){si.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),ge.disposeMediaElement(e),e=i}else{e=V().createElement("video");const r=it({},this.options_.tag&&Xi(this.options_.tag));(!dr||!0!==this.options_.nativeControlsForTouch)&&delete r.controls,Mu(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Ps(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const r=t[i],n=this.options_[r];typeof n<"u"&&(n?Ps(e,r,r):dn(e,r),e[r]=n)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let i=!1;const r=function(){i=!0};this.on("loadstart",r);const n=function(){i||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",n),i||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&ln?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){$e(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&yi&&vi&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)xi(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){ge.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=V().createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;for(;i--;)(e===t[i]||e===t[i].track)&&this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),v().performance&&(e.creationTime=v().performance.now()),e}}sn(ge,"TEST_VID",function(){if(!ks())return;const s=V().createElement("video"),e=V().createElement("track");return e.kind="captions",e.srclang="en",e.label="English",s.appendChild(e),s}),ge.isSupported=function(){try{ge.TEST_VID.volume=.5}catch{return!1}return!(!ge.TEST_VID||!ge.TEST_VID.canPlayType)},ge.canPlayType=function(s){return ge.TEST_VID.canPlayType(s)},ge.canPlaySource=function(s,e){return ge.canPlayType(s.type)},ge.canControlVolume=function(){try{const s=ge.TEST_VID.volume;ge.TEST_VID.volume=s/2+.1;const e=s!==ge.TEST_VID.volume;return e&&Rt?(v().setTimeout(()=>{ge&&ge.prototype&&(ge.prototype.featuresVolumeControl=s!==ge.TEST_VID.volume)}),!1):e}catch{return!1}},ge.canMuteVolume=function(){try{const s=ge.TEST_VID.muted;return ge.TEST_VID.muted=!s,ge.TEST_VID.muted?Ps(ge.TEST_VID,"muted","muted"):dn(ge.TEST_VID,"muted"),s!==ge.TEST_VID.muted}catch{return!1}},ge.canControlPlaybackRate=function(){if(yi&&vi&&rn<58)return!1;try{const s=ge.TEST_VID.playbackRate;return ge.TEST_VID.playbackRate=s/2+.1,s!==ge.TEST_VID.playbackRate}catch{return!1}},ge.canOverrideAttributes=function(){try{const s=()=>{};Object.defineProperty(V().createElement("video"),"src",{get:s,set:s}),Object.defineProperty(V().createElement("audio"),"src",{get:s,set:s}),Object.defineProperty(V().createElement("video"),"innerHTML",{get:s,set:s}),Object.defineProperty(V().createElement("audio"),"innerHTML",{get:s,set:s})}catch{return!1}return!0}
vendor: 4,824 bytes, line 1
1,ge.supportsNativeTextTracks=function(){return ln||Rt&&vi},ge.supportsNativeVideoTracks=function(){return!(!ge.TEST_VID||!ge.TEST_VID.videoTracks)},ge.supportsNativeAudioTracks=function(){return!(!ge.TEST_VID||!ge.TEST_VID.audioTracks)},ge.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([s,e]){sn(ge.prototype,s,()=>ge[e](),!0)}),ge.prototype.featuresVolumeControl=ge.canControlVolume(),ge.prototype.movingMediaElementInDOM=!Rt,ge.prototype.featuresFullscreenResize=!0,ge.prototype.featuresProgressEvents=!0,ge.prototype.featuresTimeupdateEvents=!0,ge.prototype.featuresVideoFrameCallback=!(!ge.TEST_VID||!ge.TEST_VID.requestVideoFrameCallback),ge.disposeMediaElement=function(s){if(s){for(s.parentNode&&s.parentNode.removeChild(s);s.hasChildNodes();)s.removeChild(s.firstChild);s.removeAttribute("src"),"function"==typeof s.load&&function(){try{s.load()}catch{}}()}},ge.resetMediaElement=function(s){if(!s)return;const e=s.querySelectorAll("source");let t=e.length;for(;t--;)s.removeChild(e[t]);s.removeAttribute("src"),"function"==typeof s.load&&function(){try{s.load()}catch{}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(s){ge.prototype[s]=function(){return this.el_[s]||this.el_.hasAttribute(s)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(s){ge.prototype["set"+pt(s)]=function(e){this.el_[s]=e,e?this.el_.setAttribute(s,s):this.el_.removeAttribute(s)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(s){ge.prototype[s]=function(){return this.el_[s]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(s){ge.prototype["set"+pt(s)]=function(e){this.el_[s]=e}}),["pause","load","play"].forEach(function(s){ge.prototype[s]=function(){return this.el_[s]()}}),Be.withSourceHandlers(ge),ge.nativeSourceHandler={},ge.nativeSourceHandler.canPlayType=function(s){try{return ge.TEST_VID.canPlayType(s)}catch{return""}},ge.nativeSourceHandler.canHandleSource=function(s,e){if(s.type)return ge.nativeSourceHandler.canPlayType(s.type);if(s.src){const t=Xa(s.src);return ge.nativeSourceHandler.canPlayType(`video/${t}`)}return""},ge.nativeSourceHandler.handleSource=function(s,e,t){e.setSrc(s.src)},ge.nativeSourceHandler.dispose=function(){},ge.registerSourceHandler(ge.nativeSourceHandler),Be.registerTech("Html5",ge);const ic=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],To={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},bo=["tiny","xsmall","small","medium","large","xlarge","huge"],wn={};bo.forEach(s=>{const e="x"===s.charAt(0)?`x-${s.substring(1)}`:s;wn[s]=`vjs-layout-${e}`});const qp={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class ot extends H{constructor(e,t,i){if(e.id=e.id||t.id||`vjs_video_${Ti()}`,(t=Object.assign(ot.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const a=e.closest("[lang]");a&&(t.language=a.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.isFullscreen_=!1,this.log=Eu(this.id_),this.fsApi_=en,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHe
vendor: 1,497 bytes, line 1
1ight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&Xi(e),this.language(this.options_.language),t.languages){const a={};Object.getOwnPropertyNames(t.languages).forEach(function(u){a[u.toLowerCase()]=t.languages[u]}),this.languages_=a}else this.languages_=ot.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(a=>{if("function"!=typeof this[a])throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),Ua(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(Wt(V(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=it(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(a=>{this[a](t.plugins[a])}),t.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const u=(new(v().DOMParser)
vendor: 16,361 bytes, line 1
1).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1
1792 1792" id="vjs-icon-twitter">\n      <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>',"image/svg+xml");if(u.querySelector("parsererror"))$e.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const p=u.documentElement;p.style.display="none",this.el_.appendChild(p),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),dr&&this.addClass("vjs-touch-enabled"),Rt||this.addClass("vjs-workinghover"),ot.players[this.id_]=this;const n="8.9.0".split(".")[0];this.addClass(`vjs-v${n}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),Pt(V(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Pt(V(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),ot.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function cp(s){Ka[s.id()]=null}
vendor: 5,099 bytes, line 1
1(this),Ft.names.forEach(e=>{const i=this[Ft[e].getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let t,e=this.tag,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=e.parentNode:r||(t=this.el_=super.createEl("div"));const n=Xi(e);if(r){for(t=this.el_=e,e=this.tag=V().createElement("video");t.children.length;)e.appendChild(t.firstChild);hr(t,"video-js")||is(t,"video-js"),t.appendChild(e),i=this.playerElIngest_=t,Object.keys(t).forEach(u=>{try{e[u]=t[u]}catch{}})}if(e.setAttribute("tabindex","-1"),n.tabindex="-1",vi&&an&&(e.setAttribute("role","application"),n.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach(function(u){r&&"class"===u||t.setAttribute(u,n[u]),r&&e.setAttribute(u,n[u])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=t.player=this,this.addClass("vjs-paused"),!0!==v().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Wu("vjs-styles-dimensions");const u=Ki(".vjs-styles-defaults"),h=Ki("head");h.insertBefore(this.styleEl_,u?u.nextSibling:h.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const a=e.getElementsByTagName("a");for(let u=0;u<a.length;u++){const h=a.item(u);is(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(t,e),Ia(e,t),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):$e.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const r=parseFloat(t);isNaN(r)?$e.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=r,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Oi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((s,e)=>{Oi(s)?e():(s.eventedCallbacks||(s.eventedCallbacks=[]),s.eventedCallbacks.push(e))})(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===v().VIDEOJS_NO_DYNAMIC_STYLE){const u="number"==typeof this.width_?this.width_:this.options_.width,h="number"==typeof this.height_?this.height_:this.options_.height,p=this.tech_&&this.tech_.el();return void(p&&(u>=0&&(p.width=u),h>=0&&(p.height=h)))}let e,t,i,r;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const n=i.split(":"),a=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,r=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(r),Xu(this.styleEl_,`\n      .${r} {\n        width: ${e}px;\n        height: ${t}px;\n      }\n\n      .${r}.vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: ${100*a}%;\n      }\n    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=pt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Be.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let n=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(n=!1);const a={source:t,autoplay:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
vendor: 1,979 bytes, line 1
1Ft.names.forEach(h=>{const p=Ft[h];a[p.getterName]=this[p.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const u=Be.getTech(e);if(!u)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new u(a),this.tech_.ready(st(this,this.handleTechReady_),!0),function(s,e){s.forEach(function(t){const i=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(r=>i.addCue(r))}),e.textTracks()}(this.textTracksJson_||[],this.tech_),ic.forEach(h=>{this.on(this.tech_,h,p=>this[`handleTech${pt(h)}_`](p))}),Object.keys(To).forEach(h=>{this.on(this.tech_,h,p=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${To[h]}_`].bind(this),event:p}):this[`handleTech${To[h]}_`](p)})}),this.on(this.tech_,"loadstart",h=>this.handleTechLoadStart_(h)),this.on(this.tech_,"sourceset",h=>this.handleTechSourceset_(h)),this.on(this.tech_,"waiting",h=>this.handleTechWaiting_(h)),this.on(this.tech_,"ended",h=>this.handleTechEnded_(h)),this.on(this.tech_,"seeking",h=>this.handleTechSeeking_(h)),this.on(this.tech_,"play",h=>this.handleTechPlay_(h)),this.on(this.tech_,"pause",h=>this.handleTechPause_(h)),this.on(this.tech_,"durationchange",h=>this.handleTechDurationChange_(h)),this.on(this.tech_,"fullscreenchange",(h,p)=>this.handleTechFullscreenChange_(h,p)),this.on(this.tech_,"fullscreenerror",(h,p)=>this.handleTechFullscreenError_(h,p)),this.on(this.tech_,"enterpictureinpicture",h=>this.handleTechEnterPictureInPicture_(h)),this.on(this.tech_,"leavepictureinpicture",h=>this.handleTechLeavePictureInPicture_(h)),this.on(this.tech_,"error",h=>this.handleTechError_(h)),this.on(this.tech_,"posterchange",h=>this.handleTechPosterChange_(h)),this.on(this.tech_,"textdata",h=>
vendor: 1,070 bytes, line 1
1this.handleTechTextData_(h)),this.on(this.tech_,"ratechange",h=>this.handleTechRateChange_(h)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&("Html5"!==i||!this.tag)&&Ia(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Ft.names.forEach(e=>{const t=Ft[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=function(s){const e=s.$$("track"),t=Array.prototype.map.call(e,r=>r.track);return Array.prototype.map.call(e,function(r){const n=$a(r.track);return r.src&&(n.src=r.src),n}).concat(Array.prototype.filter.call(s.textTracks(),function(r){return-1===t.indexOf(r)}).map($a))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&$e.warn("Using the tech directly can be dangerous. I hope you know 
1what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const r=this.muted();this.muted(!0);const n=()=>{this.muted(r)};this.playTerminatedQueue_.push(n);const a=this.play();if(_r(a))return a.catch(u=>{throw n(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${u||""}`)})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),_r(i)&&(i=i.catch(t))),_r(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=((s,e)=>{if(!e)return"";if(s.cache_.source.src===e&&s.cache_.source.type)return s.cache_.source.type;const t=s.cache_.sources.filter(r=>r.src===e);if(t.length)return t[0].type;const i=s.$$("source");for(let r=0;r<i.length;r++){const n=i[r];if(n.type&&n.src&&n.src===e)return n.type}return xn(e)})(this,t)),this.cache_.source=it({},e,{src:t,type:i});const r=this.cache_.sources.filter(h=>h.src&&h.src===t),n=[],a=this.$$("source"),u=[];for(let h=0;h<a.length;h++){const p=Xi(a[h]);n.push(p),p.src&&p.src===t&&u.push(p.src)}u.length&&!r.length?this.cache_.sources=n:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=n=>this.updateSourceCaches_(n);const i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(t=()=>{}),t(r),e.src||this.tech_.any(["sourceset","loadstart"],n=>{if("sourceset"===n.type)return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 20,144 bytes, line 1
1handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?xi(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),i=>i.contains(e.target))||(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.doubleClick||!1!==this.options_.userActions.doubleClick)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let r=V()[this.fsApi_.fullscreenElement]===i;!r&&i.matches&&(r=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready(function(){if(e in up)return function ap(s,e,t,i){return e[t](s.reduce(Qa(t),i))}(this.middleware_,this.tech_,e,t);if(e in ml)return pl(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(i){throw $e(i),i}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in op)return function np(s,e,t){return s.reduceRight(Qa(t),e[t]())}(this.middleware_,this.tech_,e);if(e in ml)return pl(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?($e(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t):"TypeError"===t.name?($e(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t):($e(t),t)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=xi){this.playCallbacks_.push(e);const t=!(this.changingSrc_||!this.src()&&!this.currentSrc()),i=!(!ln&&!Rt);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(t){t()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||di(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=di(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=di(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return nl(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,r)=>{function n(){t.off("fullscreenerror",u),t.off("fullscreenchange",a)}function a(){n(),i()}function u(p,_){n(),r(_)}t.one("fullscreenchange",a),t.one("fullscreenerror",u);const h=t.requestFullscreenHelper_(e);h&&(h.then(n,n),h.then(i,r))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function r(){e.off("fullscreenerror",a),e.off("fullscreenchange",n)}function n(){r(),t()}function a(h,p){r(),i(p)}e.one("fullscreenchange",n),e.one("fullscreenerror",a);const u=e.exitFullscreenHelper_();u&&(u.then(r,r),u.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=V()[this.fsApi_.exitFullscreen]();return e&&xi(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=V().documentElement.style.overflow,Wt(V(),"keydown",this.boundFullWindowOnEscKey_),V().documentElement.style.overflow="hidden",is(V().body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){ve().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,Pt(V(),"keydown",this.boundFullWindowOnEscKey_),V().documentElement.style.overflow=this.docOrigOverflow,cn(V().body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&v().documentPictureInPicture){const e=V().createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Fe("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),v().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(Hu(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),t.addEventListener("pagehide",i=>{const r=i.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in V()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return v().documentPictureInPicture&&v().documentPictureInPicture.window?(v().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in V()?V().exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;!t||!t.hotkeys||(r=>{const n=r.tagName.toLowerCase();return!!r.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(r.type):-1!==["textarea"].indexOf(n))})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=(a=>ve().isEventKey(a,"f")),muteKey:r=(a=>ve().isEventKey(a,"m")),playPauseKey:n=(a=>ve().isEventKey(a,"k")||ve().isEventKey(a,"Space"))}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=H.getComponent("FullscreenToggle");!1!==V()[this.fsApi_.fullscreenEnabled]&&a.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),H.getComponent("MuteToggle").prototype.handleClick.call(this,e)):n.call(this,e)&&(e.preventDefault(),e.stopPropagation(),H.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let i=0,r=this.options_.techOrder;i<r.length;i++){const n=r[i];let a=Be.getTech(n);if(a||(a=H.getComponent(n)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else $e.error(`The "${n}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(u=>[u,Be.getTech(u)]).filter(([u,h])=>h?h.isSupported():($e.error(`The "${u}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(u,h,p){let _;return u.some(b=>h.some(I=>{if(_=p(b,I),_)return!0})),_};let r;const a=([u,h],p)=>{if(h.canPlaySource(p,this.options_[u.toLowerCase()]))return{source:p,tech:u}};return r=this.options_.sourceOrder?i(e,t,(u=a,(h,p)=>u(p,h))):i(t,e,a),r||!1;var u}handleSrc_(e,t){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=gl(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),sp(this,i[0],(r,n)=>{if(this.middleware_=n,t||(this.cache_.sources=i),this.updateSourceCaches_(r),this.src_(r))return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());!function rp(s,e){s.forEach(t=>t.setTech&&t.setTech(e))}(n,this.tech_)}),i.length>1){const r=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},n=()=>{this.off("error",r)};this.one("error",r),this.one("playing",n),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",n)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(el(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():xi(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Oi(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:n}=i||{};e&&e.updateContent(),t&&t.updateContent(),r&&r.updateContent(),n&&(n.update(),n.loadProgressBar&&n.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=typeof t>"u"?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(Gi("beforeerror").forEach(t=>{const i=t(this,e);_i(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Bt(e),this.addClass("vjs-error"),$e.error(`(CODE:${this.error_.code} ${Bt.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Gi("error").forEach(t=>t(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const r=st(this,this.reportUserActivity),u=function(b){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(b){(b.screenX!==t||b.screenY!==i)&&(t=b.screenX,i=b.screenY,r())}),this.on("mouseup",u),this.on("mouseleave",u);const h=this.getChild("controlBar");let p;h&&!Rt&&!yi&&(h.on("mouseenter",function(b){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),h.on("mouseleave",function(b){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(p);const b=this.options_.inactivityTimeout;b<=0||(p=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},b))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(r=>{r!==t&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}
vendor: 4,949 bytes, line 1
1),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const t=[];return this.isInPictureInPicture()&&t.push(this.exitPictureInPicture()),this.isFullscreen()&&t.push(this.exitFullscreen()),this.audioPosterMode()&&t.push(this.audioPosterMode(!1)),Promise.all(t).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Oi(this)&&this.trigger("languagechange"))}languages(){return it(ot.prototype.options_.languages,this.languages_)}toJSON(){const e=it(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let r=t[i];r=it(r),r.player=void 0,e.tracks[i]=r}return e}createModal(e,t){(t=t||{}).content=e||"";const i=new Rs(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<bo.length;i++){const r=bo[i];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(wn[e]),this.addClass(wn[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},qp,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){return void 0===e?this.responsive_:(e=!!e)!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return wn[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=it(e);const{artist:r,artwork:n,description:a,poster:u,src:h,textTracks:p,title:_}=this.cache_.media;!n&&u&&(this.cache_.media.artwork=[{src:u,type:xn(u)}]),i&&this.crossOrigin(i),h&&this.src(h),u&&this.poster(u),Array.isArray(p)&&p.forEach(b=>this.addRemoteTextTrack(b,!1)),this.titleBar&&this.titleBar.update({title:_,description:a||r||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),r={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),n=>({kind:n.kind,label:n.label,language:n.language,src:n.src}))};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:xn(r.poster)}]),r}return it(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=Xi(e),r=i["data-setup"];if(hr(e,"vjs-fill")&&(i.fill=!0),hr(e,"vjs-fluid")&&(i.fluid=!0),null!==r){const[n,a]=te()(r||"{}");n&&$e.error(n),Object.assign(i,a)}if(Object.assign(t,i),e.hasChildNodes()){const n=e.childNodes;for(let a=0,u=n.length;a<u;a++){const h=n[a],p=h.nodeName.toLowerCase();"source"===p?t.sources.push(Xi(h)):"track"===p&&t.tracks.push(Xi(h))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(t=>"number"==typeof t)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}
vendor: 4,967 bytes, line 1
1Ft.names.forEach(function(s){const e=Ft[s];ot.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}}),ot.prototype.crossorigin=ot.prototype.crossOrigin,ot.players={};const Sr=v().navigator;ot.prototype.options_={techOrder:Be.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Sr&&(Sr.languages&&Sr.languages[0]||Sr.userLanguage||Sr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},ic.forEach(function(s){ot.prototype[`handleTech${pt(s)}_`]=function(){return this.trigger(s)}}),H.registerComponent("Player",ot);const Dn="plugin",js="activePlugins_",Vs={},An=s=>Vs.hasOwnProperty(s),kn=s=>An(s)?Vs[s]:void 0,sc=(s,e)=>{s[js]=s[js]||{},s[js][e]=!0},In=(s,e,t)=>{const i=(t?"before":"")+"pluginsetup";s.trigger(i,e),s.trigger(i+":"+e.name,e)},rc=(s,e)=>(e.prototype.name=s,function(...t){In(this,{name:s,plugin:e,instance:null},!0);const i=new e(this,...t);return this[s]=()=>i,In(this,i.getEventHash()),i});let Qi=(()=>{class s{constructor(t){if(this.constructor===s)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Ua(this),delete this.trigger,Ju(this,this.constructor.defaultState),sc(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(t={}){return t.name=this.name,t.plugin=this.constructor,t.instance=this,t}trigger(t,i={}){return Ns(this.eventBusEl_,t,this.getEventHash(i))}handleStateChanged(t){}dispose(){const{name:t,player:i}=this;this.trigger("dispose"),this.off(),i.off("dispose",this.dispose),i[js][t]=!1,this.player=this.state=null,i[t]=rc(t,Vs[t])}static isBasic(t){const i="string"==typeof t?kn(t):t;return"function"==typeof i&&!s.prototype.isPrototypeOf(i.prototype)}static registerPlugin(t,i){if("string"!=typeof t)throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(An(t))$e.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(ot.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if("function"!=typeof i)throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof i}.`);return Vs[t]=i,t!==Dn&&(ot.prototype[t]=s.isBasic(i)?function(s,e){const t=function(){In(this,{name:s,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return sc(this,s),In(this,{name:s,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){t[i]=e[i]}),t}(t,i):rc(t,i)),i}static deregisterPlugin(t){if(t===Dn)throw new Error("Cannot de-register base plugin.");An(t)&&(delete Vs[t],delete ot.prototype[t])}static getPlugins(t=Object.keys(Vs)){let i;return t.forEach(r=>{const n=kn(r);n&&(i=i||{},i[r]=n)}),i}static getPluginVersion(t){const i=kn(t);return i&&i.VERSION||""}}return s.getPlugin=kn,s.BASE_PLUGIN_NAME=Dn,s})();function hi(s,e,t,i){return function Gp(s,e){let t=!1;return function(...i){return t||$e.warn(s),t=!0,e.apply(this,i)}}(`${e} is deprecated and will be removed in ${s}.0; please use ${t} instead.`,i)}Qi.registerPlugin(Dn,Qi),ot.prototype.usingPlugin=function(s){return!!this[js]&&!0===this[js][s]},ot.prototype.hasPlugin=function(s){return!!An(s)};const nc=s=>0===s.indexOf("#")?s.slice(1):s;function j(s,e,t){let i=j.getPlayer(s);if(i)return e&&$e.warn(`Player "${s}" is already initialised. Options will not be applied.`),t&&i.ready(t),i;const r="string"==typeof s?Ki("#"+nc(s)):s;if(!Is(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a="getRootNode"in r&&r.getRootNode()instanceof v().ShadowRoot?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!a.contains(r))&&$e.warn("The element supplied is not included in the DOM"),!0===(e=e||{}).restoreEl&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),Gi("beforesetup").forEach(h=>{const p=h(r,it(e));_i(p)&&!Array.isArray(p)?e=it(e,p):$e.error("please return an object in beforesetup hooks")});const u=H.getComponent("Player");return i=new u(r,e,t),Gi("setup").forEach(h=>h(i)),i}if(j.hooks_=Li,j.hooks=Gi,j.hook=function(s,e){Gi(s,e)},j.hookOnce=function(s,e){Gi(s,[].concat(e).map(t=>{const i=(...r)=>(xu(s,i),t(...r));return i}))},j.removeHook=xu,!0!==v().VIDEOJS_NO_DYNAMIC_STYLE&&ks()){let s=Ki(".vjs-styles-defaults");if(!s){s=Wu("vjs-styles-defaults");const e=Ki("head");
vendor: 4,982 bytes, line 1
1e&&e.insertBefore(s,e.firstChild),Xu(s,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}Oa(1,j),j.VERSION="8.9.0",j.options=ot.prototype.options_,j.getPlayers=()=>ot.players,j.getPlayer=s=>{const e=ot.players;let t;if("string"==typeof s){const i=nc(s),r=e[i];if(r)return r;t=Ki("#"+i)}else t=s;if(Is(t)){const{player:i,playerId:r}=t;if(i||e[r])return i||e[r]}},j.getAllPlayers=()=>Object.keys(ot.players).map(s=>ot.players[s]).filter(Boolean),j.players=ot.players,j.getComponent=H.getComponent,j.registerComponent=(s,e)=>(Be.isTech(e)&&$e.warn(`The ${s} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),H.registerComponent.call(H,s,e)),j.getTech=Be.getTech,j.registerTech=Be.registerTech,j.use=function ip(s,e){ns[s]=ns[s]||[],ns[s].push(e)},Object.defineProperty(j,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(j.middleware,"TERMINATOR",{value:bn,writeable:!1,enumerable:!0}),j.browser=Nf,j.obj=Of,j.mergeOptions=hi(9,"videojs.mergeOptions","videojs.obj.merge",it),j.defineLazyProperty=hi(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",sn),j.bind=hi(9,"videojs.bind","native Function.prototype.bind",st),j.registerPlugin=Qi.registerPlugin,j.deregisterPlugin=Qi.deregisterPlugin,j.plugin=(s,e)=>($e.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Qi.registerPlugin(s,e)),j.getPlugins=Qi.getPlugins,j.getPlugin=Qi.getPlugin,j.getPluginVersion=Qi.getPluginVersion,j.addLanguage=function(s,e){return s=(""+s).toLowerCase(),(j.options.languages=it(j.options.languages,{[s]:e}))[s]},j.log=$e,j.createLogger=Eu,j.time=Wf,j.createTimeRange=hi(9,"videojs.createTimeRange","videojs.time.createTimeRanges",di),j.createTimeRanges=hi(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",di),j.formatTime=hi(9,"videojs.formatTime","videojs.time.formatTime",rs),j.setFormatTime=hi(9,"videojs.setFormatTime","videojs.time.setFormatTime",sl),j.resetFormatTime=hi(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",rl),j.parseUrl=hi(9,"videojs.parseUrl","videojs.url.parseUrl",Wa),j.isCrossOrigin=hi(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Tn),j.EventTarget=ii,j.any=Ma,j.on=Wt,j.one=gn,j.off=Pt,j.trigger=Ns,j.xhr=Ce(),j.TextTrack=yr,j.AudioTrack=hl,j.VideoTrack=fl,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(s=>{j[s]=function(){return $e.warn(`videojs.${s}() is deprecated; use videojs.dom.${s}() instead`),Gu[s].apply(null,arguments)}}),j.computedStyle=hi(9,"videojs.computedStyle","videojs.dom.computedStyle",Os),j.dom=Gu,j.fn=Vf,j.num=xp,j.str=Gf,j.url=ep;class zp{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(i){t.enabled_(i)}}),t}}class Pn extends j.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new zp(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const r=this[t];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}Pn.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const s in Pn.prototype.allowedEvents_)Pn.prototype["on"+s]=null;const oc=function(s){return function(s,e){const t=s.qualityLevels,i=new Pn,r=function(){i.dispose(),s.qualityLevels=t,s.off("dispose",r)};return s.on("dispose",r),s.qualityLevels=()=>i,s.qualityLevels.VERSION="4.0.0",i}(this,j.obj.merge({},s))};j.registerPlugin("qualityLevels",oc),oc.VERSION="4.0.0";const qt=R,Ln=(s,e)=>e&&e.responseURL&&s!==e.responseURL?e.responseURL:s,ni=s=>j.log.debug?j.log.debug.bind(j,"VHS:",`${s} >`):function(){};function We(...s){const e=j.obj||j;return(e.merge||e.mergeOptions).apply(e,s)}function Lt(...s){const e=j.time||j;return(e.createTimeRanges||e.createTimeRanges).apply(e,s)}const Si=1/30,Ei=.1,uc=function(s,e){const t=[];let i;if(s&&s.length)for(i=0;i<s.length;
vendor: 4,601 bytes, line 1
1i++)e(s.start(i),s.end(i))&&t.push([s.start(i),s.end(i)]);return Lt(t)},$s=function(s,e){return uc(s,function(t,i){return t-Ei<=e&&i+Ei>=e})},On=function(s,e){return uc(s,function(t){return t-Si>=e})},lc=s=>{const e=[];if(!s||!s.length)return"";for(let t=0;t<s.length;t++)e.push(s.start(t)+" => "+s.end(t));return e.join(", ")},us=s=>{const e=[];for(let t=0;t<s.length;t++)e.push({start:s.start(t),end:s.end(t)});return e},cc=function(s){if(s&&s.length&&s.end)return s.end(s.length-1)},xo=function(s,e){let t=0;if(!s||!s.length)return t;for(let i=0;i<s.length;i++){const r=s.start(i),n=s.end(i);if(!(e>n)){if(e>r&&e<=n){t+=n-e;continue}t+=n-r}}return t},So=(s,e)=>{if(!e.preload)return e.duration;let t=0;return(e.parts||[]).forEach(function(i){t+=i.duration}),(e.preloadHints||[]).forEach(function(i){"PART"===i.type&&(t+=s.partTargetDuration)}),t},Eo=s=>(s.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach(function(r,n){e.push({duration:r.duration,segmentIndex:i,partIndex:n,part:r,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),dc=s=>{const e=s.segments&&s.segments.length&&s.segments[s.segments.length-1];return e&&e.parts||[]},hc=({preloadSegment:s})=>{if(!s)return;const{parts:e,preloadHints:t}=s;let i=(t||[]).reduce((r,n)=>r+("PART"===n.type?1:0),0);return i+=e&&e.length?e.length:0,i},fc=(s,e)=>{if(e.endList)return 0;if(s&&s.suggestedPresentationDelay)return s.suggestedPresentationDelay;const t=dc(e).length>0;return t&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:t&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},pc=function(s,e,t){if(typeof e>"u"&&(e=s.mediaSequence+s.segments.length),e<s.mediaSequence)return 0;const i=function(s,e){let t=0,i=e-s.mediaSequence,r=s.segments[i];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=s.segments[i],typeof r.end<"u")return{result:t+r.end,precise:!0};if(t+=So(s,r),typeof r.start<"u")return{result:t+r.start,precise:!0}}return{result:t,precise:!1}}(s,e);if(i.precise)return i.result;const r=function(s,e){let i,t=0,r=e-s.mediaSequence;for(;r<s.segments.length;r++){if(i=s.segments[r],typeof i.start<"u")return{result:i.start-t,precise:!0};if(t+=So(s,i),typeof i.end<"u")return{result:i.end-t,precise:!0}}return{result:-1,precise:!1}}(s,e);return r.precise?r.result:i.result+t},mc=function(s,e,t){if(!s)return 0;if("number"!=typeof t&&(t=0),typeof e>"u"){if(s.totalDuration)return s.totalDuration;if(!s.endList)return v()[1/0]}return pc(s,e,t)},Er=function({defaultDuration:s,durationList:e,startIndex:t,endIndex:i}){let r=0;if(t>i&&([t,i]=[i,t]),t<0){for(let n=t;n<Math.min(0,i);n++)r+=s;t=0}for(let n=t;n<i;n++)r+=e[n].duration;return r},gc=function(s,e,t,i){if(!s||!s.segments)return null;if(s.endList)return mc(s);if(null===e)return null;let r=pc(s,s.mediaSequence+s.segments.length,e=e||0);return t&&(r-=i="number"==typeof i?i:fc(null,s)),Math.max(0,r)},_c=function(s){return s.excludeUntil&&s.excludeUntil>Date.now()},Co=function(s){return s.excludeUntil&&s.excludeUntil===1/0},Nn=function(s){const e=_c(s);return!s.disabled&&!e},yc=function(s,e){return e.attributes&&e.attributes[s]},wo=(s,e)=>{if(1===s.playlists.length)return!0;const t=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===s.playlists.filter(i=>!!Nn(i)&&(i.attributes.BANDWIDTH||0)<t).length},Do=(s,e)=>!(!s&&!e||!s&&e||s&&!e||!(s===e||s.id&&e.id&&s.id===e.id||s.resolvedUri&&e.resolvedUri&&s.resolvedUri===e.resolvedUri||s.uri&&e.uri&&s.uri===e.uri)),vc=function(s,e){const t=s&&s.mediaGroups&&s.mediaGroups.AUDIO||{};let i=!1;for(const r in t){for(const n in t[r])if(i=e(t[r][n]),i)break;if(i)break}return!!i},Cr=s=>{if(!s||!s.playlists||!s.playlists.length)return vc(s,t=>t.playlists&&t.playlists.length||t.uri);for(let e=0;e<s.playlists.length;e++){const t=s.playlists[e],i=t.attributes&&t.attributes.CODECS;if(!(i&&i.split(",").every(n=>St(n))||vc(s,n=>Do(t,n))))return!1}return!0};var Ht={liveEdgeDelay:fc,duration:mc,seekable:function(s,e,t){const r=e||0;let n=gc(s,e,!0,t);return null===n?Lt():(n<r&&(n=r),Lt(r,n))},getMediaInfoForTime:function({playlist:s,currentTime:e,startingSegmentIndex:t,startingPartIndex:i,startTime:r,exactManifestTimings:n}){let a=e-r;const u=Eo(s);let h=0;for(let p=0;p<u.length;p++){const _=u[p];if(t===_.segmentIndex&&("number"!=typeof i||"number"!=typeof _.partIndex||i===_.partIndex)){h=p;break}}if(a<0){if(h>0)for(let p=h-1;p>=0;p--){const _=u[p];
vendor: 2,010 bytes, line 1
1if(a+=_.duration,n){if(a<0)continue}else if(a+Si<=0)continue;return{partIndex:_.partIndex,segmentIndex:_.segmentIndex,startTime:r-Er({defaultDuration:s.targetDuration,durationList:u,startIndex:h,endIndex:p})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:e}}if(h<0){for(let p=h;p<0;p++)if(a-=s.targetDuration,a<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:e};h=0}for(let p=h;p<u.length;p++){const _=u[p];if(a-=_.duration,0!==a&&!(_.duration>Si&&a+Si>=0)||p===u.length-1){if(n){if(a>0)continue}else if(a-Si>=0)continue;return{partIndex:_.partIndex,segmentIndex:_.segmentIndex,startTime:r+Er({defaultDuration:s.targetDuration,durationList:u,startIndex:h,endIndex:p})}}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:e}},isEnabled:Nn,isDisabled:function(s){return s.disabled},isExcluded:_c,isIncompatible:Co,playlistEnd:gc,isAes:function(s){for(let e=0;e<s.segments.length;e++)if(s.segments[e].key)return!0;return!1},hasAttribute:yc,estimateSegmentRequestTime:function(s,e,t,i=0){return yc("BANDWIDTH",t)?(s*t.attributes.BANDWIDTH-8*i)/e:NaN},isLowestEnabledRendition:wo,isAudioOnly:Cr,playlistMatch:Do,segmentDurationWithParts:So};const{log:Tc}=j,qs=(s,e)=>`${s}-${e}`,bc=(s,e,t)=>`placeholder-uri-${s}-${e}-${t}`,Hs=(s,e)=>{s.mediaGroups&&["AUDIO","SUBTITLES"].forEach(t=>{if(s.mediaGroups[t])for(const i in s.mediaGroups[t])for(const r in s.mediaGroups[t][i])e(s.mediaGroups[t][i][r],t,i,r)})},xc=({playlist:s,uri:e,id:t})=>{s.id=t,s.playlistErrors_=0,e&&(s.uri=e),s.attributes=s.attributes||{}},Sc=(s,e,t=bc)=>{s.uri=e;for(let r=0;r<s.playlists.length;r++)s.playlists[r].uri||(s.playlists[r].uri=`placeholder-uri-${r}`);const i=Cr(s);Hs(s,(r,n,a,u)=>{if(!r.playlists||!r.playlists.length){if(i&&"AUDIO"===n&&!r.uri)for(let h=0;h<s.playlists.length;h++){const p=s.playlists[h];if(p.attributes&&p.attributes.AUDIO&&p.attributes.AUDIO===a)return}r.playlists=[Re({},r)]}
vendor: 4,445 bytes, line 1
1r.playlists.forEach(function(h,p){const _=t(n,a,u,h),b=qs(p,_);h.uri?h.resolvedUri=h.resolvedUri||qt(s.uri,h.uri):(h.uri=0===p?_:b,h.resolvedUri=h.uri),h.id=h.id||b,h.attributes=h.attributes||{},s.playlists[h.id]=h,s.playlists[h.uri]=h})}),(s=>{let e=s.playlists.length;for(;e--;){const t=s.playlists[e];xc({playlist:t,id:qs(e,t.uri)}),t.resolvedUri=qt(s.uri,t.uri),s.playlists[t.id]=t,s.playlists[t.uri]=t,t.attributes.BANDWIDTH||Tc.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(s),(s=>{Hs(s,e=>{e.uri&&(e.resolvedUri=qt(s.uri,e.uri))})})(s)};class Ec{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_||!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((r,n)=>(r.set(n.id,n),r),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((i,r)=>{if(!this.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const n=e[i.class].push(i);i.classListIndex=n-1}else e[i.class]=[i],i.classListIndex=0});for(const i of t){const r=e[i.class]||[];i.endTime=i.endDate?i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&r[i.classListIndex+1]?r[i.classListIndex+1].startTime:i.duration?i.startTime+i.duration:i.plannedDuration?i.startTime+i.plannedDuration:i.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((i,r)=>{i.startDate.getTime()<e&&this.processedDateRanges_.delete(r)})}}const{EventTarget:lm}=j,dm=(s,e)=>{if(!s)return e;const t=We(s,e);if(s.preloadHints&&!e.preloadHints&&delete t.preloadHints,s.parts&&!e.parts)delete t.parts;else if(s.parts&&e.parts)for(let i=0;i<e.parts.length;i++)s.parts&&s.parts[i]&&(t.parts[i]=We(s.parts[i],e.parts[i]));return!s.skipped&&e.skipped&&(t.skipped=!1),s.preload&&!e.preload&&(t.preload=!1),t},Cc=(s,e)=>{!s.resolvedUri&&s.uri&&(s.resolvedUri=qt(e,s.uri)),s.key&&!s.key.resolvedUri&&(s.key.resolvedUri=qt(e,s.key.uri)),s.map&&!s.map.resolvedUri&&(s.map.resolvedUri=qt(e,s.map.uri)),s.map&&s.map.key&&!s.map.key.resolvedUri&&(s.map.key.resolvedUri=qt(e,s.map.key.uri)),s.parts&&s.parts.length&&s.parts.forEach(t=>{t.resolvedUri||(t.resolvedUri=qt(e,t.uri))}),s.preloadHints&&s.preloadHints.length&&s.preloadHints.forEach(t=>{t.resolvedUri||(t.resolvedUri=qt(e,t.uri))})},wc=function(s){const e=s.segments||[],t=s.preloadSegment;if(t&&t.parts&&t.parts.length){if(t.preloadHints)for(let i=0;i<t.preloadHints.length;i++)if("MAP"===t.preloadHints[i].type)return e;t.duration=s.targetDuration,t.preload=!0,e.push(t)}return e},Dc=(s,e)=>s===e||s.segments&&e.segments&&s.segments.length===e.segments.length&&s.endList===e.endList&&s.mediaSequence===e.mediaSequence&&s.preloadSegment===e.preloadSegment,Ao=(s,e,t=Dc)=>{const i=We(s,{}),r=i.playlists[e.id];if(!r||t(r,e))return null;e.segments=wc(e);const n=We(r,e);if(n.preloadSegment&&!e.preloadSegment&&delete n.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}n.segments=((s,e,t)=>{const i=s.slice(),r=e.slice();t=t||0;const n=[];let a;for(let u=0;u<r.length;u++){const h=i[u+t],p=r[u];h?(a=h.map||a,n.push(dm(h,p))):(a&&!p.map&&(p.map=a),n.push(p))}return n})(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}n.segments.forEach(a=>{Cc(a,n.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=n);return i.playlists[e.id]=n,i.playlists[e.uri]=n,Hs(s,(a,u,h,p)=>{if(a.playlists)for(let _=0;_<a.playlists.length;_++)e.id===a.playlists[_].id&&(a.playlists[_]=n)}),i},ko=(s,e)=>{const t=s.segments||[],i=t[t.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],n=r&&r.duration||i&&i.duration;return e&&n?1e3*n:500*(s.partTargetDuration||s.targetDuration||10)};class Gs extends lm{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=ni("PlaylistLoader");const{withCredentials:r=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=r,this.addDateRangesToTextTrack_=i.addD
vendor: 8,906 bytes, line 1
1ateRangesToTextTrack;const n=t.options_;this.customTagParsers=n&&n.customTagParsers||[],this.customTagMappers=n&&n.customTagMappers||[],this.llhls=n&&n.llhls,this.dateRangesStorage_=new Ec,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();!t.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=qt(this.main.uri,e.uri);this.llhls&&(t=((s,e)=>{if(e.endList||!e.serverControl)return s;const t={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let r=e.mediaSequence+e.segments.length;if(i){const n=i.parts||[],a=hc(e)-1;a>-1&&a!==n.length-1&&(t._HLS_part=a),(a>-1||n.length)&&r--}t._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(t._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(t).length){const i=new(v().URL)(s);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){t.hasOwnProperty(r)&&i.searchParams.set(r,t[r])}),s=i.toString()}return s})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},(i,r)=>{if(this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,t,i){const{uri:r,id:n}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[n],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}parseManifest_({url:e,manifestString:t}){return(({onwarn:s,oninfo:e,manifestString:t,customTagParsers:i=[],customTagMappers:r=[],llhls:n})=>{const a=new we;s&&a.on("warn",s),e&&a.on("info",e),i.forEach(p=>a.addParser(p)),r.forEach(p=>a.addTagMapper(p)),a.push(t),a.end();const u=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(p){u.hasOwnProperty(p)&&delete u[p]}),u.segments&&u.segments.forEach(function(p){["parts","preloadHints"].forEach(function(_){p.hasOwnProperty(_)&&delete p[_]})})),!u.targetDuration){let p=10;u.segments&&u.segments.length&&(p=u.segments.reduce((_,b)=>Math.max(_,b.duration),0)),s&&s({message:`manifest has no targetDuration defaulting to ${p}`}),u.targetDuration=p}const h=dc(u);if(h.length&&!u.partTargetDuration){const p=h.reduce((_,b)=>Math.max(_,b.duration),0);s&&(s({message:`manifest has no partTargetDuration defaulting to ${p}`}),Tc.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.")),u.partTargetDuration=p}return u})({onwarn:({message:i})=>this.logger_(`m3u8-parser warn for ${e}: ${i}`),oninfo:({message:i})=>this.logger_(`m3u8-parser info for ${e}: ${i}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:t,url:i,id:r}){this.request=null,this.state="HAVE_METADATA";const n=t||this.parseManifest_({url:i,manifestString:e});n.lastRequest=Date.now(),xc({playlist:n,uri:i,id:r});const a=Ao(this.main,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ko(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),v().clearTimeout(this.mediaUpdateTimeout),v().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Ec,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(v().clearTimeout(this.finalRenditionTimeout),t){const a=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=v().setTimeout(this.media.bind(this,e,!1),a))}const i=this.state,r=!this.media_||e.id!==this.media_.id,n=this.main.playlists[e.id];if(n&&n.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("HAVE_MAIN_MANIFEST"===i?"loadedmetadata":"mediachange")));if(this.updateMediaUpdateTimeout_(ko(e,!0)),r){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(a,u)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Ln(e.resolvedUri,u),a)return this.playlistRequestError(this.request,e,i);this.haveMetadata({playlistString:u.responseText,url:e.uri,id:e.id}),this.trigger("HAVE_MAIN_MANIFEST"===i?"loadedmetadata":"mediachange")}})}}pause(){this.mediaUpdateTimeout&&(v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.state=this.media_?"HAVE_METADATA":"HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const i=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=v().setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i)}else this.started?this.trigger(t&&!t.endList?"mediaupdatetimeout":"loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=v().setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=v().location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(e,t)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:t.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:t.responseText,code:2},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.src=Ln(this.src,t);const i=this.parseManifest_({manifestString:t.responseText,url:this.src});this.setupInitialPlaylist(i)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,Sc(this.main,this.srcUri()),e.playlists.forEach(i=>{i.segments=wc(i),i.segments.forEach(r=>{Cc(r,i.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||v().location.href;this.main=((s,e)=>{const t=qs(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:v().location.href,resolvedUri:v().location.href,playlists:[{uri:e,id:t,resolvedUri:e,attributes:{}}]};return i.playlists[t]=i.playlists[0],i.playlists[e]=i.playlists[0],i})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,r=e.ID;let n=i.playlists.length;for(;n--;){const a=i.playlists[n];if(a.attributes["PATHWAY-ID"]===r){const u=a.resolvedUri,h=a.id;if(t){const p=this.createCloneURI_(a.resolvedUri,e),_=qs(r,p),b=this.createCloneAttributes_(r,a.attributes),I=this.createClonePlaylist_(a,_,e,b);i.playlists[n]=I,i.playlists[_]=I,i.playlists[p]=I}else i.playlists.splice(n,1);delete i.playlists[h],delete i.playlists[u]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(i.mediaGroups[n]&&i.mediaGroups[n][r])for(const a in i.mediaGroups[n])if(a===r){for(const u in i.mediaGroups[n][a])i.mediaGroups[n][a][u].playlists.forEac
vendor: 4,397 bytes, line 1
1h((p,_)=>{const b=i.playlists[p.id],P=b.resolvedUri;delete i.playlists[b.id],delete i.playlists[P]});delete i.mediaGroups[n][a]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,r=i.playlists.length,n=this.createCloneURI_(t.resolvedUri,e),a=qs(e.ID,n),u=this.createCloneAttributes_(e.ID,t.attributes),h=this.createClonePlaylist_(t,a,e,u);i.playlists[r]=h,i.playlists[a]=h,i.playlists[n]=h,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(r.mediaGroups[n]&&!r.mediaGroups[n][t])for(const a in r.mediaGroups[n])if(a===i){r.mediaGroups[n][t]={};for(const u in r.mediaGroups[n][a]){const h=r.mediaGroups[n][a][u];r.mediaGroups[n][t][u]=Re({},h);const p=r.mediaGroups[n][t][u],_=this.createCloneURI_(h.resolvedUri,e);p.resolvedUri=_,p.uri=_,p.playlists=[],h.playlists.forEach((b,I)=>{const P=r.playlists[b.id],C=bc(n,t,u),N=qs(t,C);if(P&&!r.playlists[N]){const B=this.createClonePlaylist_(P,N,e),$=B.resolvedUri;r.playlists[N]=B,r.playlists[$]=B}p.playlists[I]=this.createClonePlaylist_(b,N,e)})}}})}createClonePlaylist_(e,t,i,r){const n=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:n,uri:n,id:t};return e.segments&&(a.segments=[]),r&&(a.attributes=r),We(e,a)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const r=t["URI-REPLACEMENT"].PARAMS;for(const n of Object.keys(r))i.searchParams.set(n,r[n]);return i.href}createCloneAttributes_(e,t){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{t[r]&&(i[r]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes.keyId;r&&t.add(r.toLowerCase())}return t}}}const{xhr:fm}=j,Io=function(s,e,t,i){const r="arraybuffer"===s.responseType?s.response:s.responseText;!e&&r&&(s.responseTime=Date.now(),s.roundTripTime=s.responseTime-s.requestTime,s.bytesReceived=r.byteLength||r.length,s.bandwidth||(s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3))),t.headers&&(s.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(s.timedout=!0),!e&&!s.aborted&&200!==t.statusCode&&206!==t.statusCode&&0!==t.statusCode&&(e=new Error("XHR Failed with a response of: "+(s&&(r||s.responseText)))),i(e,s)},Ac=function(){const s=function e(t,i){t=We({timeout:45e3},t);const r=e.beforeRequest||j.Vhs.xhr.beforeRequest,n=e._requestCallbackSet||j.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||j.Vhs.xhr._responseCallbackSet;r&&"function"==typeof r&&(j.log.warn("beforeRequest is deprecated, use onRequest instead."),n.add(r));const u=!0===j.Vhs.xhr.original?fm:j.Vhs.xhr,h=((s,e)=>{if(!s||!s.size)return;let t=e;return s.forEach(i=>{t=i(t)}),t})(n,t);n.delete(r);const p=u(h||t,function(b,I){return((s,e,t,i)=>{!s||!s.size||s.forEach(r=>{r(e,t,i)})})(a,p,b,I),Io(p,b,I,i)}),_=p.abort;return p.abort=function(){return p.aborted=!0,_.apply(p,arguments)},p.uri=t.uri,p.requestTime=Date.now(),p};return s.original=!0,s},Po=function(s){const e={};return s.byterange&&(e.Range=function(s){let e;const t=s.offset;return e="bigint"==typeof s.offset||"bigint"==typeof s.length?v().BigInt(s.offset)+v().BigInt(s.length)-v().BigInt(1):s.offset+s.length-1,"bytes="+t+"-"+e}(s.byterange)),e},_m=function(s,e){return s.start(e)+"-"+s.end(e)},ym=function(s,e){const t=s.toString(16);return"00".substring(0,2-t.length)+t+(e%2?" ":"")},vm=function(s){return s>=32&&s<126?String.fromCharCode(s):"."},kc=function(s){const e={};return Object.keys(s).forEach(t=>{const i=s[t];e[t]=qr(i)?{bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:i}),e},Rn=function(s){const e=s.byterange||{length:1/0,offset:0};return[e.length,e.offset,s.resolvedUri].join(",")},Ic=function(s){return s.resolvedUri},Pc=s=>{const e=Array.prototype.slice.call(s),t=16;let r,n,i="";for(let a=0;a<e.length/t;a++)r=e.slice(a*t,a*t+t).map(ym).join(""),n=e.slice(a*t,a*t+t).map(vm).join(""),i+=r+" "+n+"\n";return i};var Tm=Object.freeze({__proto__:null,createTransferableMessage:kc,initSegmentId:Rn,segmentKeyId:Ic,hexDump:Pc,tagDump:({bytes:s})=>Pc(s),textRanges:s=>{let t,e="";for(t=0;t<s.length;t++)e+=_m(s,t)+" ";return e}});const Oc=({programTime:s,playlist:e,retryCount:t=2,seekTo:i,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");
vendor: 4,906 bytes, line 1
1if(typeof s>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!(s=>{if(!s.segments||0===s.segments.length)return!1;for(let e=0;e<s.segments.length;e++)if(!s.segments[e].dateTimeObject)return!1;return!0})(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const u=((s,e)=>{let t;try{t=new Date(s)}catch{return null}if(!e||!e.segments||0===e.segments.length)return null;let i=e.segments[0];if(t<new Date(i.dateTimeObject))return null;for(let h=0;h<e.segments.length-1&&(i=e.segments[h],!(t<new Date(e.segments[h+1].dateTimeObject)));h++);const r=e.segments[e.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?(s=>s.transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds)(r.videoTimingInfo):r.duration+.25*r.duration;return t>new Date(n.getTime()+1e3*a)?null:(t>new Date(n)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Ht.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})})(s,e);if(!u)return a({message:`${s} was not found in the stream`});const h=u.segment,p=((s,e)=>{let t,i;try{t=new Date(s),i=new Date(e)}catch{}const r=t.getTime();return(i.getTime()-r)/1e3})(h.dateTimeObject,s);if("estimate"===u.type)return 0===t?a({message:`${s} is not buffered yet. Try again`}):(i(u.estimatedStart+p),void n.one("seeked",()=>{Oc({programTime:s,playlist:e,retryCount:t-1,seekTo:i,pauseAfterSeek:r,tech:n,callback:a})}));const _=h.start+p;n.one("seeked",()=>a(null,n.currentTime())),r&&n.pause(),i(_)},Lo=(s,e)=>{if(4===s.readyState)return e()},{EventTarget:km}=j,Nc=function(s,e){if(!Dc(s,e)||s.sidx&&e.sidx&&(s.sidx.offset!==e.sidx.offset||s.sidx.length!==e.sidx.length))return!1;if(!s.sidx&&e.sidx||s.sidx&&!e.sidx||s.segments&&!e.segments||!s.segments&&e.segments)return!1;if(!s.segments&&!e.segments)return!0;for(let t=0;t<s.segments.length;t++){const i=s.segments[t],r=e.segments[t];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const n=i.byterange,a=r.byterange;if(n&&!a||!n&&a||n.offset!==a.offset||n.length!==a.length)return!1}return!0},Im=(s,e,t,i)=>`placeholder-uri-${s}-${e}-${i.attributes.NAME||t}`,Nm=(s,e)=>(!s.map&&!e.map||!(!s.map||!e.map||s.map.byterange.offset!==e.map.byterange.offset||s.map.byterange.length!==e.map.byterange.length))&&s.uri===e.uri&&s.byterange.offset===e.byterange.offset&&s.byterange.length===e.byterange.length,Rc=(s,e)=>{const t={};for(const i in s){const n=s[i].sidx;if(n){const a=Yr(n);if(!e[a])break;Nm(e[a].sidxInfo,n)&&(t[a]=e[a])}}return t};class Oo extends km{constructor(e,t,i={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:n=!1}=i;if(this.vhs_=t,this.withCredentials=n,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=ni("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const r=e.sidx&&Yr(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r])return void(this.mediaRequest_=v().setTimeout(()=>i(!1),0));const n=Ln(e.sidx.resolvedUri),a=(u,h)=>{if(this.requestErrored_(u,h,t))return;const p=this.mainPlaylistLoader_.sidxMapping_;let _;try{_=lf()(Ee(h.response).subarray(8))}catch(b){return void this.requestErrored_(b,h,t)}return p[r]={sidxInfo:e.sidx,sidx:_},ci(e,_,e.sidx.resolvedUri),i(!0)};this.request=((s,e,t)=>{let r,i=[],n=!1;const a=function(_,b,I,P){return b.abort(),n=!0,t(_,b,I,P)},u=function(_,b){if(n)return;if(_)return a(_,b,"",i);const I=b.responseText.substring(i&&i.byteLength||0,b.responseText.length);if(i=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((t=t.filter(function(u){return u&&(u.byteLength||u.length)&&"string"!=typeof u})).length<=1)return Ee(t[0]);var r=t.reduce(function(u,h,p){return u+(h.byteLength||h.length)},0),n=new Uint8Array(r),a=0;return t.forEach(function(u){u=Ee(u),n.set(u,a),a+=u.byteLength}),n}(i,sr(I,!0)),r=r||ur(i),i.length<10||r&&i.length<r+2)return Lo(b,()=>a(_,b,"",i));const P=wa(i);return"ts"===P&&i.length<188||!P&&i.length<376?Lo(b,()=>a(_,b,"",i)):a(null,b,P,i)},p=e({uri:s,beforeSend(_){_.overrideMimeType("text/plain;
1 charset=x-user-defined"),_.addEventListener("progress",function({}){return Io(_,null,{statusCode:_.status},u)})}},function(_,b){return Io(p,_,b,u)});return p})(n,this.vhs_.xhr,(u,h,p,_)=>{if(u)return a(u,h);if(!p||"mp4"!==p)return a({status:h.status,message:`Unsupported ${p||"unknown"} container type for sidx segment at URL: ${n}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},h);const{offset:b,length:I}=e.sidx.byterange;if(_.length>=I+b)return a(u,{response:_.subarray(b,b+I),status:h.status,uri:h.uri});this.request=this.vhs_.xhr({uri:n,responseType:"arraybuffer",headers:Po({byterange:e.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},v().clearTimeout(this.minimumUpdatePeriodTimeout_),v().clearTimeout(this.mediaRequest_),v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,r=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),this.trigger("HAVE_MAIN_MANIFEST"===e?"loadedmetadata":"mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(v().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){v().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const i=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=v().setTimeout(()=>this.load(),i)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_((e,t)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])}):this.mediaRequest_=v().setTimeout(()=>this.haveMain_(),0)}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(t,i)=>{if(this.requestErrored_(t,i))return void("HAVE_NOTHING"===this.state&&(this.started=!1));const r=i.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=i.responseText,this.mainLoaded_=i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):Date.now(),this.mainPlaylistLoader_.srcUrl=Ln(this.mainPlaylistLoader_.srcUrl,i),r?(this.handleMain_(),void this.syncClientServerClock_(()=>e(i,r))):e(i,r)})}syncClientServerClock_(e){const t=(s=>(s=>{const e=ct(s,"UTCTiming")[0];if(!e)return null;const t=bt(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.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":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return t})(yu(s)))(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:qt(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials},(i,r)=>{if(!this.request)return;if(i)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let n;n="HEAD"===t.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):this.mainLoaded_:Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=n-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let t=(({mainXml:s,srcUrl:e,clientOffset:t,sidxMapping:i,previousManifest:r})=>{const n=((s,e={})=>{const t=((s,e={})=>{const{manifestUri:t="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=e,a=ct(s,"Period");
vendor: 7,007 bytes, line 1
1if(!a.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const u=ct(s,"Location"),h=bt(s),p=Zr([{baseUrl:t}],ct(s,"BaseURL")),_=ct(s,"ContentSteering");h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=i,h.clientOffset=r,u.length&&(h.locations=u.map(or));const b=[];return a.forEach((I,P)=>{const C=bt(I),N=b[P-1];C.start=(({attributes:s,priorPeriodAttributes:e,mpdType:t})=>"number"==typeof s.start?s.start:e&&"number"==typeof e.start&&"number"==typeof e.duration?e.start+e.duration:e||"static"!==t?null:0)({attributes:C,priorPeriodAttributes:N?N.attributes:null,mpdType:h.type}),b.push({node:I,attributes:C})}),{locations:h.locations,contentSteeringInfo:tf(_,n),representationInfo:T(b.map(ef(h,p))),eventStream:T(b.map(Zh))}})(yu(s),e),i=(s=>s.map(Hh))(t.representationInfo);return Mh({dashPlaylists:i,locations:t.locations,contentSteering:t.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:t.eventStream})})(s,{manifestUri:e,clientOffset:t,sidxMapping:i,previousManifest:r});return Sc(n,e,Im),n})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=((s,e,t)=>{let i=!0,r=We(s,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let n=0;n<e.playlists.length;n++){const a=e.playlists[n];if(a.sidx){const h=Yr(a.sidx);t&&t[h]&&t[h].sidx&&ci(a,t[h].sidx,a.sidx.resolvedUri)}const u=Ao(r,a,Nc);u&&(r=u,i=!1)}return Hs(e,(n,a,u,h)=>{if(n.playlists&&n.playlists.length){const p=n.playlists[0].id,_=Ao(r,n.playlists[0],Nc);_&&(r=_,h in r.mediaGroups[a][u]||(r.mediaGroups[a][u][h]=n),r.mediaGroups[a][u][h].playlists[0]=r.playlists[p],i=!1)}}),((s,e)=>{Hs(s,(t,i,r,n)=>{n in e.mediaGroups[i][r]||delete s.mediaGroups[i][r][n]})})(r,e),e.minimumUpdatePeriod!==s.minimumUpdatePeriod&&(i=!1),i?null:r})(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),!!t}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(v().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=v().setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((s,e)=>{let i=Rc(s.playlists,e);return Hs(s,(r,n,a,u)=>{r.playlists&&r.playlists.length&&(i=We(i,Rc(r.playlists,e)))}),i})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=v().setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},ko(this.media(),!!i)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const t=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",t,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes["cenc:default_KID"];r&&t.add(r.replace(/-/g,"").toLowerCase())}return t}}}var wt={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};const Mc=function(s){return s.on=s.addEventListener,s.off=s.removeEventListener,s},Bc=function(s){return function(){const e=function(s){try{return URL.createObjectURL(new Blob([s],{type:"application/javascript"}))}catch{const t=new BlobBuilder;return t.append(s),URL.createObjectURL(t.getBlob())}}(s),t=Mc(new Worker(e));t.objURL=e;const i=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},t}},Fc=function(s){return`var browserWorkerPolyFill = ${Mc.toString()};\nbrowserWorkerPolyFill(self);\n`+s},Uc=function(s){return s.toString().replace(/^function.+?{/,"").slice(0,-1)},Fm=Fc(Uc(function(){var s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var o={};this.on=function(l,d){o[l]||(o[l]=[]),o[l]=o[l].concat(d)},this.off=function(l,d){var c;return!!o[l]&&(c=o[l].indexOf(d),o[l]=o[l].slice(),o[l].splice(c,1),c>-1)},this.trigger=function(l){var d,c,f,m;if(d=o[l])if(2===arguments.length)for(f=d.length,c=0;c<f;++c)d[c].call(this,arguments[1]);else{for(m=[],c=arguments.length,c=1;c<arguments.length;++c)m.push(arguments[c]);for(f=d.length,c=0;c<f;++c)d[c].apply(this,m)}},this.dispose=function(){o={}}}};e.prototype.pipe=function(o){return this.on("data",function(l){o.push(l)}),this.on("done",function(l){o.flush(l)}),this.on("partialdone",function(l){o.partialFlush(l)}),this.on("endedtimeline",function(l){o.endTimeline(l)}),this.on("reset",function(l){o.reset(l)}),o},e.prototype.push=function(o){this.trigger("data",o)},e.prototype.flush=function(o){this.trigger("done",o)},e.prototype.partialFlush=function(o){this.trigger("partialdone",o)},e.prototype.endTimeline=function(o){this.trigger("endedtimeline",o)},e.prototype.reset=function(o){this.trigger("reset",o)};var u,h,p,_,b,I,P,C,N,B,$,M,X,q,O,ue,Se,qe,He,mt,Ot,gt,De,Je,Di,Bi,Yi,ls,cs,ds,hs,fs,$n,Dd,Ad,kd,o,l,t=e,i=Math.pow(2,32),n={getUint64:function(o){var d,l=new DataView(o.buffer,o.byteOffset,o.byteLength);return l.getBigUint64?(d=l.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 13,477 bytes, line 1
1Number(d):d:l.getUint32(0)*i+l.getUint32(4)},MAX_UINT32:i},a=n.MAX_UINT32;(function(){var o;if(De={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:[]},!(typeof Uint8Array>"u")){for(o in De)De.hasOwnProperty(o)&&(De[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);Je=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),Bi=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),Di=new Uint8Array([0,0,0,1]),Yi=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]),ls=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]),cs={video:Yi,audio:ls},fs=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),hs=new Uint8Array([0,0,0,0,0,0,0,0]),$n=new Uint8Array([0,0,0,0,0,0,0,0]),Dd=$n,Ad=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),kd=$n,ds=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),u=function(o){var c,f,l=[],d=0;for(c=1;c<arguments.length;c++)l.push(arguments[c]);for(c=l.length;c--;)d+=l[c].byteLength;for(f=new Uint8Array(d+8),new DataView(f.buffer,f.byteOffset,f.byteLength).setUint32(0,f.byteLength),f.set(o,4),c=0,d=8;c<l.length;c++)f.set(l[c],d),d+=l[c].byteLength;return f},h=function(){return u(De.dinf,u(De.dref,fs))},p=function(o){return u(De.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,o.audioobjecttype<<3|o.samplingfrequencyindex>>>1,o.samplingfrequencyindex<<7|o.channelcount<<3,6,1,2]))},_=function(){return u(De.ftyp,Je,Di,Je,Bi)},ue=function(o){return u(De.hdlr,cs[o])},b=function(o){return u(De.mdat,o)},O=function(o){var l=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,o.duration>>>24&255,o.duration>>>16&255,o.duration>>>8&255,255&o.duration,85,196,0,0]);return o.samplerate&&(l[12]=o.samplerate>>>24&255,l[13]=o.samplerate>>>16&255,l[14]=o.samplerate>>>8&255,l[15]=255&o.samplerate),u(De.mdhd,l)},q=function(o){return u(De.mdia,O(o),ue(o.type),P(o))},I=function(o){return u(De.mfhd,new Uint8Array([0,0,0,0,(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o]))},P=function(o){return u(De.minf,"video"===o.type?u(De.vmhd,ds):u(De.smhd,hs),h(),qe(o))},C=function(o,l){for(var d=[],c=l.length;c--;)d[c]=mt(l[c]);return u.apply(null,[De.moof,I(o)].concat(d))},N=function(o){for(var l=o.length,d=[];l--;)d[l]=M(o[l]);return u.apply(null,[De.moov,$(4294967295)].concat(d).concat(B(o)))},B=function(o){for(var l=o.length,d=[];l--;)d[l]=Ot(o[l]);return u.apply(null,[De.mvex].concat(d))},$=function(o){var l=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,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 u(De.mvhd,l)},Se=function(o){var c,f,l=o.samples||[],d=new Uint8Array(4+l.length);for(f=0;f<l.length;f++)d[f+4]=(c=l[f].flags).dependsOn<<4|c.isDependedOn<<2|c.hasRedundancy;return u(De.sdtp,d)},qe=function(o){return u(De.stbl,He(o),u(De.stts,kd),u(De.stsc,Dd),u(De.stsz,Ad),u(De.stco,$n))},He=function(d){return u(De.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===d.type?o(d):l(d))},o=function(d){var E,D,c=d.sps||[],f=d.pps||[],m=[],x=[];for(E=0;E<c.length;E++)m.push((65280&c[E].byteLength)>>>8),m.push(255&c[E].byteLength),m=m.concat(Array.prototype.slice.call(c[E]));for(E=0;E<f.length;E++)x.push((65280&f[E].byteLength)>>>8),x.push(255&f[E].byteLength),x=x.concat(Array.prototype.slice.call(f[E]));if(D=[De.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&d.width)>>8,255&d.width,(65280&d.height)>>8,255&d.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]),u(De.avcC,new Uint8Array([1,d.profileIdc,d.profileCompatibility,d.levelIdc,255].concat([c.length],m,[f.length],x))),u(De.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],d.sarRatio){var A=d.sarRatio[0],L=d.sarRatio[1];D.push(u(De.pasp,new Uint8Array([(4278190080&A)>>24,(16711680&A)>>16,(65280&A)>>8,255&A,(4278190080&L)>>24,(16711680&L)>>16,(65280&L)>>8,255&L])))}return u.apply(null,D)},l=function(d){return u(De.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&d.channelcount)>>8,255&d.channelcount,(65280&d.samplesize)>>8,255&d.samplesize,0,0,0,0,(65280&d.samplerate)>>8,255&d.samplerate,0,0]),p(d))},X=function(o){var l=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,0,(4278190080&o.duration)>>24,(16711680&o.duration)>>16,(65280&o.duration)>>8,255&o.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&o.width)>>8,255&o.width,0,0,(65280&o.height)>>8,255&o.height,0,0]);return u(De.tkhd,l)},mt=function(o){var l,d,c,f,x,E;return l=u(De.tfhd,new Uint8Array([0,0,0,58,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),x=Math.floor(o.baseMediaDecodeTime/a),E=Math.floor(o.baseMediaDecodeTime%a),d=u(De.tfdt,new Uint8Array([1,0,0,0,x>>>24&255,x>>>16&255,x>>>8&255,255&x,E>>>24&255,E>>>16&255,E>>>8&255,255&E])),"audio"===o.type?(c=gt(o,92),u(De.traf,l,d,c)):(f=Se(o),c=gt(o,f.length+92),u(De.traf,l,d,c,f))},M=function(o){return o.duration=o.duration||4294967295,u(De.trak,X(o),q(o))},Ot=function(o){var l=new Uint8Array([0,0,0,0,(4278190080&o.id)>>24,(16711680&o.id)>>16,(65280&o.id)>>8,255&o.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==o.type&&(l[l.length-1]=0),u(De.trex,l)},function(){var o,l,d;d=function(c,f){var m=0,x=0,E=0,D=0;return c.length&&(void 0!==c[0].duration&&(m=1),void 0!==c[0].size&&(x=2),void 0!==c[0].flags&&(E=4),void 0!==c[0].compositionTimeOffset&&(D=8)),[0,0,m|x|E|D,1,(4278190080&c.length)>>>24,(16711680&c.length)>>>16,(65280&c.length)>>>8,255&c.length,(4278190080&f)>>>24,(16711680&f)>>>16,(65280&f)>>>8,255&f]},l=function(c,f){var m,x,E,D,A,L;for(E=d(D=c.samples||[],f+=20+16*D.length),(x=new Uint8Array(E.length+16*D.length)).set(E),m=E.length,L=0;L<D.length;L++)x[m++]=(4278190080&(A=D[L]).duration)>>>24,x[m++]=(16711680&A.duration)>>>16,x[m++]=(65280&A.duration)>>>8,x[m++]=255&A.duration,x[m++]=(4278190080&A.size)>>>24,x[m++]=(16711680&A.size)>>>16,x[m++]=(65280&A.size)>>>8,x[m++]=255&A.size,x[m++]=A.flags.isLeading<<2|A.flags.dependsOn,x[m++]=A.flags.isDependedOn<<6|A.flags.hasRedundancy<<4|A.flags.paddingValue<<1|A.flags.isNonSyncSample,x[m++]=61440&A.flags.degradationPriority,x[m++]=15&A.flags.degradationPriority,x[m++]=(4278190080&A.compositionTimeOffset)>>>24,x[m++]=(16711680&A.compositionTimeOffset)>>>16,x[m++]=(65280&A.compositionTimeOffset)>>>8,x[m++]=255&A.compositionTimeOffset;return u(De.trun,x)},o=function(c,f){var m,x,E,D,A,L;for(E=d(D=c.samples||[],f+=20+8*D.length),(m=new Uint8Array(E.length+8*D.length)).set(E),x=E.length,L=0;L<D.length;L++)m[x++]=(4278190080&(A=D[L]).duration)>>>24,m[x++]=(16711680&A.duration)>>>16,m[x++]=(65280&A.duration)>>>8,m[x++]=255&A.duration,m[x++]=(4278190080&A.size)>>>24,m[x++]=(16711680&A.size)>>>16,m[x++]=(65280&A.size)>>>8,m[x++]=255&A.size;return u(De.trun,m)},gt=function(c,f){return"audio"===c.type?o(c,f):l(c,f)}}();var Ho,zo,Wo,qn,Xo,Pd,Ld,Od,c_={ftyp:_,mdat:b,moof:C,moov:N,initSegment:function(o){var c,l=_(),d=N(o);return(c=new Uint8Array(l.byteLength+d.byteLength)).set(l),c.set(d,l.byteLength),c}},Id=function(o,l){var d={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return d.dataOffset=l,d.compositionTimeOffset=o.pts-o.dts,d.duration=o.duration,d.size=4*o.length,d.size+=o.byteLength,o.keyFrame&&(d.flags.dependsOn=2,d.flags.isNonSyncSample=0),d},v_={groupNalsIntoFrames:function(o){var l,d,c=[],f=[];for(f.byteLength=0,f.nalCount=0,f.duration=0,c.byteLength=0,l=0;l<o.length;l++)"access_unit_delimiter_rbsp"===(d=o[l]).nalUnitType?(c.length&&(c.duration=d.dts-c.dts,f.byteLength+=c.byteLength,f.nalCount+=c.length,f.duration+=c.duration,f.push(c)),(c=[d]).byteLength=d.data.byteLength,c.pts=d.pts,c.dts=d.dts):("slice_layer_without_partitioning_rbsp_idr"===d.nalUnitType&&(c.keyFrame=!0),c.duration=d.dts-c.dts,c.byteLength+=d.data.byteLength,c.push(d));return f.length&&(!c.duration||c.duration<=0)&&(c.duration=f[f.length-1].duration),f.byteLength+=c.byteLength,f.nalCount+=c.length,f.duration+=c.duration,f.push(c),f},groupFramesIntoGops:function(o){var l,d,c=[],f=[];for(c.byteLength=0,c.nalCount=0,c.duration=0,c.pts=o[0].pts,c.dts=o[0].dts,f.byteLength=0,f.nalCount=0,f.duration=0,f.pts=o[0].pts,f.dts=o[0].dts,l=0;l<o.length;l++)(d=o[l]).keyFrame?(c.length&&(f.push(c),f.byteLength+=c.byteLength,f.nalCount+=c.nalCount,f.duration+=c.duration),(c=[d]).nalCount=d.length,c.byteLength=d.byteLength,c.pts=d.pts,c.dts=d.dts,c.duration=d.duration):(c.duration+=d.duration,c.nalCount+=d.length,c.byteLength+=d.byteLength,c.push(d));return f.length&&c.duration<=0&&(c.duration=f[f.length-1].duration),f.byteLength+=c.byteLength,f.nalCount+=c.nalCount,f.duration+=c.duration,f.push(c),f},extendFirstKeyFrame:function(o){var l;return!o[0][0].keyFrame&&o.length>1&&(l=o.shift(),o.byteLength-=l.byteLength,o.nalCount-=l.nalCount,o[0][0].dts=l.dts,o[0][0].pts=l.pts,o[0][0].duration+=l.duration),o},generateSampleTable:function(o,l){var d,c,f,m,E=l||0,D=[];for(d=0;d<o.length;d++)for(m=o[d],c=0;c<m.length;c++)E+=(f=Id(m[c],E)).size,D.push(f);return D},concatenateNalData:function(o){var l,d,c,f,m,x,E=0,F=new Uint8Array(o.byteLength+4*o.nalCount),he=new DataView(F.buffer);for(l=0;l<o.length;l++)for(f=o[l],d=0;d<f.length;d++)for(m=f[d],c=0;c<m.length;c++)he.setUint32(E,(x=m[c]).data.byteLength),F.set(x.data,E+=4),E+=x.data.byteLength;return F},generateSampleTableForFrame:function(o,l){var d,f=[];return d=Id(o,l||0),f.push(d),f},concatenateNalDataForFrame:function(o){var l,d,c=0,E=new Uint8Array(o.byteLength+4*o.length),D=new DataView(E.buffer);for(l=0;l<o.length;l++)D.setUint32(c,(d=o[l]).data.byteLength),E.set(d.data,c+=4),c+=d.data.byteLength;return E}},Zi=[33,16,5,32,164,27],qo=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ke=function(o){for(var l=[];o--;)l.push(0);return l};zo=function(o){return 9e4*o},Wo=function(o,l){return o*l},qn=function(o){return o/9e4},Xo=function(o,l){return o/l},Pd=function(o,l){return zo(Xo(o,l))},Ld=function(o,l){return Wo(qn(o),l)},Od=function(o,l,d){return qn(d?o:o-l)};var ut={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:zo,secondsToAudioTs:Wo,videoTsToSeconds:qn,audioTsToSeconds:Xo,audioTsToVideoTs:Pd,videoTsToAudioTs:Ld,metadataTsToSeconds:Od},Hn=ut,A_={prefixWithSilence:function(o,l,d,c){var f,A,L,F,m=0,x=0,E=0,D=0;if(l.length&&(f=Hn.audioTsToVideoTs(o.baseMediaDecodeTime,o.samplerate),m=Math.ceil(Hn.ONE_SECOND_IN_TS/(o.samplerate/1024)),d&&c&&(x=f-Math.max(d,c),D=(E=Math.floor(x/m))*m),!(E<1||D>Hn.ONE_SECOND_IN_TS/2))){for((A=function(){if(!Ho){var o={96e3:[Zi,[227,64],Ke(154),[56]],88200:[Zi,[231],Ke(170),[56]],64e3:[Zi,[248,192],Ke(240),[56]],48e3:[Zi,[255,192],Ke(268),[55,148,128],Ke(54),[112]],44100:[Zi,[255,192],Ke(268),[55,163,128],Ke(84),[112]],32e3:[Zi,[255,192],Ke(268),[55,234],Ke(226),[112]],24e3:[Zi,[255,192],Ke(268),[55,255,128],Ke(268),[111,112],Ke(126),[224]],16e3:[Zi,[255,192],Ke(268),[55,255,128],Ke(268),[111,255],Ke(269),[223,108],Ke(195),[1,192]],12e3:[qo,Ke(268),[3,127,248],Ke(268),[6,255,240],Ke(268),[13,255,224],Ke(268),[27,253,128],Ke(259),[56]],11025:[qo,Ke(268),[3,127,248],Ke(268),[6,255,240],Ke(268),[13,255,224],Ke(268),[27,255,192],Ke(268),[55,175,128],Ke(108),[112]],8e3:[qo,Ke(268),[3,121,16],Ke(47),[7]]};Ho=function(o){return Object.keys(o).reduce(function(l,d){return l[d]=new Uint8Array(o[d].reduce(function(c,f){return c.concat(f)},[])),l},{})}(o)}return Ho}()[o.samplerate])||(A=l[0].data),L=0;L<E;L++)l.splice(0,0,{data:A,dts:(F=l[0]).dts-m,pts:F.pts-m});return o.baseMediaDecodeTime-=Math.floor(Hn.videoTsToAudioTs(D,o.samplerate)),D}},trimAdtsFramesByEarliestDts:function(o,l,d){return l.minSegmentDts>=d?o:(l.minSegmentDts=1/0,o.filter(function(c){return c.dts>=d&&(l.minSegmentDts=Math.min(l.minSegmentDts,c.dts),l.minSegmentPts=l.minSegmentDts,!0)}))},generateSampleTable:function(o){var l,c=[];for(l=0;l<o.length;l++)c.push({size:o[l].data.byteLength,duration:1024});return c},concatenateFrameData:function(o){var l,d,c=0,f=new Uint8Array(function(o){var l,c=0;for(l=0;l<o.length;l++)c+=o[l].data.byteLength;return c}(o));for(l=0;l<o.length;l++)f.set((d=o[l]).data,c),c+=d.data.byteLength;return f}},k_=ut.ONE_SECOND_IN_TS,O_={clearDtsInfo:function(o){delete o.minSegmentDts,delete o.maxSegmentDts,delete o.minSegmentPts,delete o.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(o,l){var d,f=o.minSegmentDts;return l||(f-=o.timelineStartInfo.dts),d=o.timelineStartInfo.baseMediaDecodeTime,d+=f,d=Math.max(0,d),"audio"===o.type&&(d*=o.samplerate/k_,d=Math.floor(d)),d},collectDtsInfo:function(o,l){"number"==typeof l.pts&&(void 0===o.timelineStartInfo.pts&&(o.timelineStartInfo.pts=l.pts),o.minSegmentPts=void 0===o.minSegmentPts?l.pts:Math.min(o.minSegmentPts,l.pts),o.maxSegmentPts=void 0===o.maxSegmentPts?l.pts:Math.max(o.maxSegmentPts,l.pts)
vendor: 6,155 bytes, line 1
1),"number"==typeof l.dts&&(void 0===o.timelineStartInfo.dts&&(o.timelineStartInfo.dts=l.dts),o.minSegmentDts=void 0===o.minSegmentDts?l.dts:Math.min(o.minSegmentDts,l.dts),o.maxSegmentDts=void 0===o.maxSegmentDts?l.dts:Math.max(o.maxSegmentDts,l.dts))}},Rd={parseSei:function(o){for(var l=0,d={payloadType:-1,payloadSize:0},c=0,f=0;l<o.byteLength&&128!==o[l];){for(;255===o[l];)c+=255,l++;for(c+=o[l++];255===o[l];)f+=255,l++;if(f+=o[l++],!d.payload&&4===c){if("GA94"===String.fromCharCode(o[l+3],o[l+4],o[l+5],o[l+6])){d.payloadType=c,d.payloadSize=f,d.payload=o.subarray(l,l+f);break}d.payload=void 0}l+=f,c=0,f=0}return d},parseUserData:function(o){return 181!==o.payload[0]||49!=(o.payload[1]<<8|o.payload[2])||"GA94"!==String.fromCharCode(o.payload[3],o.payload[4],o.payload[5],o.payload[6])||3!==o.payload[7]?null:o.payload.subarray(8,o.payload.length-1)},parseCaptionPackets:function(o,l){var c,f,m,x,d=[];if(!(64&l[0]))return d;for(f=31&l[0],c=0;c<f;c++)x={type:3&l[2+(m=3*c)],pts:o},4&l[m+2]&&(x.ccData=l[m+3]<<8|l[m+4],d.push(x));return d},discardEmulationPreventionBytes:function(o){for(var f,m,l=o.byteLength,d=[],c=1;c<l-2;)0===o[c]&&0===o[c+1]&&3===o[c+2]?(d.push(c+2),c+=2):c++;if(0===d.length)return o;f=l-d.length,m=new Uint8Array(f);var x=0;for(c=0;c<f;x++,c++)x===d[0]&&(x++,d.shift()),m[c]=o[x];return m},USER_DATA_REGISTERED_ITU_T_T35:4},Ko=t,Gn=Rd,Gt=function(o){o=o||{},Gt.prototype.init.call(this),this.parse708captions_="boolean"!=typeof o.parse708captions||o.parse708captions,this.captionPackets_=[],this.ccStreams_=[new dt(0,0),new dt(0,1),new dt(1,0),new dt(1,1)],this.parse708captions_&&(this.cc708Stream_=new et({captionServices:o.captionServices})),this.reset(),this.ccStreams_.forEach(function(l){l.on("data",this.trigger.bind(this,"data")),l.on("partialdone",this.trigger.bind(this,"partialdone")),l.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")))};Gt.prototype=new Ko,Gt.prototype.push=function(o){var l,d,c;if("sei_rbsp"===o.nalUnitType&&(l=Gn.parseSei(o.escapedRBSP)).payload&&l.payloadType===Gn.USER_DATA_REGISTERED_ITU_T_T35&&(d=Gn.parseUserData(l))){if(o.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(o.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));c=Gn.parseCaptionPackets(o.pts,d),this.captionPackets_=this.captionPackets_.concat(c),this.latestDts_!==o.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=o.dts}},Gt.prototype.flushCCStreams=function(o){this.ccStreams_.forEach(function(l){return"flush"===o?l.flush():l.partialFlush()},this)},Gt.prototype.flushStream=function(o){this.captionPackets_.length?(this.captionPackets_.forEach(function(l,d){l.presortIndex=d}),this.captionPackets_.sort(function(l,d){return l.pts===d.pts?l.presortIndex-d.presortIndex:l.pts-d.pts}),this.captionPackets_.forEach(function(l){l.type<2?this.dispatchCea608Packet(l):this.dispatchCea708Packet(l)},this),this.captionPackets_.length=0,this.flushCCStreams(o)):this.flushCCStreams(o)},Gt.prototype.flush=function(){return this.flushStream("flush")},Gt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Gt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(o){o.reset()})},Gt.prototype.dispatchCea608Packet=function(o){this.setsTextOrXDSActive(o)?this.activeCea608Channel_[o.type]=null:this.setsChannel1Active(o)?this.activeCea608Channel_[o.type]=0:this.setsChannel2Active(o)&&(this.activeCea608Channel_[o.type]=1),null!==this.activeCea608Channel_[o.type]&&this.ccStreams_[(o.type<<1)+this.activeCea608Channel_[o.type]].push(o)},Gt.prototype.setsChannel1Active=function(o){return 4096==(30720&o.ccData)},Gt.prototype.setsChannel2Active=function(o){return 6144==(30720&o.ccData)},Gt.prototype.setsTextOrXDSActive=function(o){return 256==(28928&o.ccData)||4138==(30974&o.ccData)||6186==(30974&o.ccData)},Gt.prototype.dispatchCea708Packet=function(o){this.parse708captions_&&this.cc708Stream_.push(o)};var U_={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},zn=function(o){return 32<=o&&o<=127||160<=o&&o<=255},Fi=function(o){this.windowNum=o,this.reset()};Fi.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},Fi.prototype.getText=function(){return this.rows.join("\n")},Fi.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Fi.prototype.newLine=function(o){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(o),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Fi.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Fi.prototype.addText=function(o){this.rows[this.rowIdx]+=o},Fi.prototype.backspace=function(){if(!this.isEmpty()){var o=this.rows[this.rowIdx];this.rows[this.rowIdx]=o.substr(0,o.length-1)}};var Wn=function(o,l,d){this.serviceNum=o,this.text="",this.currentWindow=new Fi(-1),this.windows=[],this.stream=d,"string"==typeof l&&this.createTextDecoder(l)};Wn.prototype.init=function(o,l){this.startPts=o;for(var d=0;d<8;d++)this.windows[d]=new Fi(d),"function"==typeof l&&(this.windows[d].beforeRowOverflow=l)},Wn.prototype.setCurrentWindow=function(o){this.currentWindow=this.windows[o]}
vendor: 4,804 bytes, line 1
1,Wn.prototype.createTextDecoder=function(o){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(o)}catch(l){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+o+" encoding. "+l})}};var et=function(o){o=o||{},et.prototype.init.call(this);var f,l=this,d=o.captionServices||{},c={};Object.keys(d).forEach(m=>{f=d[m],/^SERVICE/.test(m)&&(c[m]=f.encoding)}),this.serviceEncodings=c,this.current708Packet=null,this.services={},this.push=function(m){3===m.type?(l.new708Packet(),l.add708Bytes(m)):(null===l.current708Packet&&l.new708Packet(),l.add708Bytes(m))}};et.prototype=new Ko,et.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},et.prototype.add708Bytes=function(o){var l=o.ccData,d=l>>>8,c=255&l;this.current708Packet.ptsVals.push(o.pts),this.current708Packet.data.push(d),this.current708Packet.data.push(c)},et.prototype.push708Packet=function(){var o=this.current708Packet,l=o.data,d=null,c=null,f=0,m=l[f++];for(o.seq=m>>6,o.sizeCode=63&m;f<l.length;f++)c=31&(m=l[f++]),7==(d=m>>5)&&c>0&&(d=m=l[f++]),this.pushServiceBlock(d,f,c),c>0&&(f+=c-1)},et.prototype.pushServiceBlock=function(o,l,d){var c,f=l,m=this.current708Packet.data,x=this.services[o];for(x||(x=this.initService(o,f));f<l+d&&f<m.length;f++)zn(c=m[f])?f=this.handleText(f,x):24===c?f=this.multiByteCharacter(f,x):16===c?f=this.extendedCommands(f,x):128<=c&&c<=135?f=this.setCurrentWindow(f,x):152<=c&&c<=159?f=this.defineWindow(f,x):136===c?f=this.clearWindows(f,x):140===c?f=this.deleteWindows(f,x):137===c?f=this.displayWindows(f,x):138===c?f=this.hideWindows(f,x):139===c?f=this.toggleWindows(f,x):151===c?f=this.setWindowAttributes(f,x):144===c?f=this.setPenAttributes(f,x):145===c?f=this.setPenColor(f,x):146===c?f=this.setPenLocation(f,x):143===c?x=this.reset(f,x):8===c?x.currentWindow.backspace():12===c?x.currentWindow.clearText():13===c?x.currentWindow.pendingNewLine=!0:14===c?x.currentWindow.clearText():141===c&&f++},et.prototype.extendedCommands=function(o,l){var c=this.current708Packet.data[++o];return zn(c)&&(o=this.handleText(o,l,{isExtended:!0})),o},et.prototype.getPts=function(o){return this.current708Packet.ptsVals[Math.floor(o/2)]},et.prototype.initService=function(o,l){var c,f,d=this;return(c="SERVICE"+o)in this.serviceEncodings&&(f=this.serviceEncodings[c]),this.services[o]=new Wn(o,f,d),this.services[o].init(this.getPts(l),function(m){d.flushDisplayed(m,d.services[o])}),this.services[o]},et.prototype.handleText=function(o,l,d){var L,F,c=d&&d.isExtended,f=d&&d.isMultiByte,m=this.current708Packet.data,x=c?4096:0,E=m[o],A=l.currentWindow;if(f?(F=[E,m[o+1]],o++):F=[E],l.textDecoder_&&!c)L=l.textDecoder_.decode(new Uint8Array(F));else if(f){const G=function he(G){return G.map(Pe=>("0"+(255&Pe).toString(16)).slice(-2)).join("")}(F);L=String.fromCharCode(parseInt(G,16))}else L=function(o){var l=U_[o]||o;return 4096&o&&o===l?"":String.fromCharCode(l)}(x|E);return A.pendingNewLine&&!A.isEmpty()&&A.newLine(this.getPts(o)),A.pendingNewLine=!1,A.addText(L),o},et.prototype.multiByteCharacter=function(o,l){var d=this.current708Packet.data,f=d[o+2];return zn(d[o+1])&&zn(f)&&(o=this.handleText(++o,l,{isMultiByte:!0})),o},et.prototype.setCurrentWindow=function(o,l){return l.setCurrentWindow(7&this.current708Packet.data[o]),o},et.prototype.defineWindow=function(o,l){var d=this.current708Packet.data,c=d[o];l.setCurrentWindow(7&c);var m=l.currentWindow;return c=d[++o],m.visible=(32&c)>>5,m.rowLock=(16&c)>>4,m.columnLock=(8&c)>>3,m.priority=7&c,c=d[++o],m.relativePositioning=(128&c)>>7,m.anchorVertical=127&c,c=d[++o],m.anchorHorizontal=c,c=d[++o],m.anchorPoint=(240&c)>>4,m.rowCount=15&c,c=d[++o],m.columnCount=63&c,c=d[++o],m.windowStyle=(56&c)>>3,m.penStyle=7&c,m.virtualRowCount=m.rowCount+1,o},et.prototype.setWindowAttributes=function(o,l){var d=this.current708Packet.data,c=d[o],f=l.currentWindow.winAttr;return c=d[++o],f.fillOpacity=(192&c)>>6,f.fillRed=(48&c)>>4,f.fillGreen=(12&c)>>2,f.fillBlue=3&c,c=d[++o],f.borderType=(192&c)>>6,f.borderRed=(48&c)>>4,f.borderGreen=(12&c)>>2,f.borderBlue=3&c,c=d[++o],f.borderType+=(128&c)>>5,f.wordWrap=(64&c)>>6,f.printDirection=(48&c)>>4,f.scrollDirection=(12&c)>>2,f.justify=3&c,c=d[++o],f.effectSpeed=(240&c)>>4,f.effectDirection=(12&c)>>2,f.displayEffect=3&c,o},et.prototype.flushDisplayed=function(o,l){for(var d=[],c=0;c<8;c++)l.windows[c].visible&&!l.windows[c].isEmpty()&&d.push(l.windows[c].getText());l.endPts=o,l.text=d.join("\n\n"),this.pushCaption(l),l.startPts=o},et.prototype.pushCaption=function(o){""!==o.text&&(this.trigger("data",{startPts:o.startPts,endPts:o.endPts,text:o.text,stream
vendor: 8,118 bytes, line 1
1:"cc708_"+o.serviceNum}),o.text="",o.startPts=o.endPts)},et.prototype.displayWindows=function(o,l){var c=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,l);for(var m=0;m<8;m++)c&1<<m&&(l.windows[m].visible=1);return o},et.prototype.hideWindows=function(o,l){var c=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,l);for(var m=0;m<8;m++)c&1<<m&&(l.windows[m].visible=0);return o},et.prototype.toggleWindows=function(o,l){var c=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,l);for(var m=0;m<8;m++)c&1<<m&&(l.windows[m].visible^=1);return o},et.prototype.clearWindows=function(o,l){var c=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,l);for(var m=0;m<8;m++)c&1<<m&&l.windows[m].clearText();return o},et.prototype.deleteWindows=function(o,l){var c=this.current708Packet.data[++o],f=this.getPts(o);this.flushDisplayed(f,l);for(var m=0;m<8;m++)c&1<<m&&l.windows[m].reset();return o},et.prototype.setPenAttributes=function(o,l){var d=this.current708Packet.data,c=d[o],f=l.currentWindow.penAttr;return c=d[++o],f.textTag=(240&c)>>4,f.offset=(12&c)>>2,f.penSize=3&c,c=d[++o],f.italics=(128&c)>>7,f.underline=(64&c)>>6,f.edgeType=(56&c)>>3,f.fontStyle=7&c,o},et.prototype.setPenColor=function(o,l){var d=this.current708Packet.data,c=d[o],f=l.currentWindow.penColor;return c=d[++o],f.fgOpacity=(192&c)>>6,f.fgRed=(48&c)>>4,f.fgGreen=(12&c)>>2,f.fgBlue=3&c,c=d[++o],f.bgOpacity=(192&c)>>6,f.bgRed=(48&c)>>4,f.bgGreen=(12&c)>>2,f.bgBlue=3&c,c=d[++o],f.edgeRed=(48&c)>>4,f.edgeGreen=(12&c)>>2,f.edgeBlue=3&c,o},et.prototype.setPenLocation=function(o,l){var d=this.current708Packet.data,c=d[o],f=l.currentWindow.penLoc;return l.currentWindow.pendingNewLine=!0,c=d[++o],f.row=15&c,c=d[++o],f.column=63&c,o},et.prototype.reset=function(o,l){var d=this.getPts(o);return this.flushDisplayed(d,l),this.initService(l.serviceNum,o)};var V_={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},Xn=function(o){return null===o?"":(o=V_[o]||o,String.fromCharCode(o))},$_=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ps=function(){for(var o=[],l=15;l--;)o.push({text:"",indent:0,offset:0});return o},dt=function(o,l){dt.prototype.init.call(this),this.field_=o||0,this.dataChannel_=l||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(d){var c,f,m,x,E;if((c=32639&d.ccData)!==this.lastControlCode_){if(4096==(61440&c)?this.lastControlCode_=c:c!==this.PADDING_&&(this.lastControlCode_=null),m=c>>>8,x=255&c,c!==this.PADDING_)if(c===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(c===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(d.pts),this.flushDisplayed(d.pts),f=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=f,this.startPts_=d.pts;else if(c===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(d.pts);else if(c===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(d.pts);else if(c===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(d.pts);else if(c===this.CARRIAGE_RETURN_)this.clearFormatting(d.pts),this.flushDisplayed(d.pts),this.shiftRowsUp_(),this.startPts_=d.pts;else if(c===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(c===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(d.pts),this.displayed_=ps();else if(c===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ps();else if(c===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(d.pts),this.displayed_=ps()),this.mode_="paintOn",this.startPts_=d.pts;else if(this.isSpecialCharacter(m,x))E=Xn((m=(3&m)<<8)|x),this[this.mode_](d.pts,E),this.column_++;else if(this.isExtCharacter(m,x))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),E=Xn((m=(3&m)<<8)|x),this[this.mode_](d.pts,E),this.column_++;else if(this.isMidRowCode(m,x))this.clearFormatting(d.pts),this[this.mode_](d.pts," "),this.column_++,14==(14&x)&&this.addFormatting(d.pts,["i"]),1==(1&x)&&this.addFormatting(d.pts,["u"]);else if(this.isOffsetControlCode(m,x)){const A=3&x;this.nonDisplayed_[this.row_].offset=A,this.column_+=A}else if(this.isPAC(m,x)){var D=$_.indexOf(7968&c);if("rollUp"===this.mode_&&(D-this.rollUpRows_+1<0&&(D=this.rollUpRows_-1),this.setRollUp(d.pts,D)),D!==this.row_&&(this.clearFormatting(d.pts),this.row_=D),1&x&&-1===this.formatting_.indexOf("u")&&this.addFormatting(d.pts,["u"]),16==(16&c)){const A=(14&c)>>1;this.column_=4*A,this.nonDisplayed_[this.row_].indent+=A}this.isColorPAC(x)&&14==(14&x)&&this.addFormatting(d.pts,["i"])}else this.isNormalChar(m)&&(0===x&&(x=null),E=Xn(m),E+=Xn(x),this[this.mode_](d.pts,E),this.column_+=E.length)}else this.lastControlCode_=null}};dt.prototype=new Ko,dt.prototype.flushDisplayed=function(o){const l=c=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+c+"."})},d=[];this.displayed_.forEach((c,f)=>{if(c&&c.text&&c.text.length){try{c.text=c.text.trim()}catch{l(f)}c.text.length&&d.push({text:c.text,line:f+1,position:10+Math.min(70,10*c.indent)+2.5*c.offset})}else null==c&&l(f)}),d.length&&this.trigger("data",{startPts:this.startPts_,endPts:o,content:d,stream:this.name_})},dt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ps(),this.nonDisplayed_=ps(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},dt.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_},dt.prototype.isSpecialCharacter=function(o,l){return o===this.EXT_&&l>=48&&l<=63},dt.prototype.isExtCharacter=function(o,l){return(o===this.EXT_+1||o===this.EXT_+2)&&l>=32&&l<=63},dt.prototype.isMidRowCode=function(o,l){return o===this.EXT_&&l>=32&&l<=47},dt.prototype.isOffsetControlCode=function(o,l){return o===this.OFFSET_&&l>=33&&l<=35},dt.prototype.isPAC=function(o,l){return o>=this.BASE_&&o<this.BASE_+8&&l>=64&&l<=127},dt.prototype.isColorPAC=function(o){return o>=64&&o<=79||o>=96&&o<=127},dt.prototype.isNormalChar=function(o){return o>=32&&o<=127},dt.prototype.setRollUp=function(o,l){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(o),this.nonDisplayed_=ps(),this.displayed_=ps()),void 0!==l&&l!==this.row_)for(var d=0;d<this.rollUpRows_;d++)this.displayed_[l-d]=this.displayed_[this.row_-d],this.displayed_[this.row_-d]={text:"",indent:0,offset:0};void 0===l&&(l=this.row_),this.topRow_=l-this.rollUpRows_+1},dt.prototype.addFormatting=function(o,l){this.formatting_=this.formatting_.concat(l);var d=l.reduce(function(c,f){return c+"<"+f+">"},"");this[this.mode_](o,d)}
vendor: 10,243 bytes, line 1
1,dt.prototype.clearFormatting=function(o){if(this.formatting_.length){var l=this.formatting_.reverse().reduce(function(d,c){return d+"</"+c+">"},"");this.formatting_=[],this[this.mode_](o,l)}},dt.prototype.popOn=function(o,l){var d=this.nonDisplayed_[this.row_].text;this.nonDisplayed_[this.row_].text=d+=l},dt.prototype.rollUp=function(o,l){var d=this.displayed_[this.row_].text;this.displayed_[this.row_].text=d+=l},dt.prototype.shiftRowsUp_=function(){var o;for(o=0;o<this.topRow_;o++)this.displayed_[o]={text:"",indent:0,offset:0};for(o=this.row_+1;o<15;o++)this.displayed_[o]={text:"",indent:0,offset:0};for(o=this.topRow_;o<this.row_;o++)this.displayed_[o]=this.displayed_[o+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},dt.prototype.paintOn=function(o,l){var d=this.displayed_[this.row_].text;this.displayed_[this.row_].text=d+=l};var Md={CaptionStream:Gt,Cea608Stream:dt,Cea708Stream:et},Qn={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Qo=function(o,l){var d=1;for(o>l&&(d=-1);Math.abs(l-o)>4294967296;)o+=8589934592*d;return o},Yo=function(o){var l,d;Yo.prototype.init.call(this),this.type_=o||"shared",this.push=function(c){"metadata"!==c.type?"shared"!==this.type_&&c.type!==this.type_||(void 0===d&&(d=c.dts),c.dts=Qo(c.dts,d),c.pts=Qo(c.pts,d),l=c.dts,this.trigger("data",c)):this.trigger("data",c)},this.flush=function(){d=l,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){d=void 0,l=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Yo.prototype=new t;var Jn,Fd={TimestampRolloverStream:Yo,handleRollover:Qo},Yn=(o,l,d)=>{if(!o)return-1;for(var c=d;c<o.length;c++)if(o[c]===l)return c;return-1},Ud=function(o,l,d){var c,f="";for(c=l;c<d;c++)f+="%"+("00"+o[c].toString(16)).slice(-2);return f},Ir=function(o,l,d){return decodeURIComponent(Ud(o,l,d))},Pr=function(o,l,d){return unescape(Ud(o,l,d))},Lr=function(o){return o[0]<<21|o[1]<<14|o[2]<<7|o[3]},Or={APIC:function(o){var d,c,l=1;3===o.data[0]&&!((d=Yn(o.data,0,l))<0)&&(o.mimeType=Pr(o.data,l,d),o.pictureType=o.data[l=d+1],l++,!((c=Yn(o.data,0,l))<0)&&(o.description=Ir(o.data,l,c),l=c+1,"--\x3e"===o.mimeType?o.url=Pr(o.data,l,o.data.length):o.pictureData=o.data.subarray(l,o.data.length)))},"T*":function(o){3===o.data[0]&&(o.value=Ir(o.data,1,o.data.length).replace(/\0*$/,""),o.values=o.value.split("\0"))},TXXX:function(o){var l;3===o.data[0]&&-1!==(l=Yn(o.data,0,1))&&(o.description=Ir(o.data,1,l),o.value=Ir(o.data,l+1,o.data.length).replace(/\0*$/,""),o.data=o.value)},"W*":function(o){o.url=Pr(o.data,0,o.data.length).replace(/\0.*$/,"")},WXXX:function(o){var l;3===o.data[0]&&-1!==(l=Yn(o.data,0,1))&&(o.description=Ir(o.data,1,l),o.url=Pr(o.data,l+1,o.data.length).replace(/\0.*$/,""))},PRIV:function(o){var l;for(l=0;l<o.data.length;l++)if(0===o.data[l]){o.owner=Pr(o.data,0,l);break}o.privateData=o.data.subarray(l+1),o.data=o.privateData}},jd={parseId3Frames:function(o){var l,c=10,f=0,m=[];if(!(o.length<10||o[0]!=="I".charCodeAt(0)||o[1]!=="D".charCodeAt(0)||o[2]!=="3".charCodeAt(0))){f=Lr(o.subarray(6,10)),f+=10,64&o[5]&&(c+=4,c+=Lr(o.subarray(10,14)),f-=Lr(o.subarray(16,20)));do{if((l=Lr(o.subarray(c+4,c+8)))<1)break;var E={id:String.fromCharCode(o[c],o[c+1],o[c+2],o[c+3]),data:o.subarray(c+10,c+l+10)};E.key=E.id,Or[E.id]?Or[E.id](E):"T"===E.id[0]?Or["T*"](E):"W"===E.id[0]&&Or["W*"](E),m.push(E),c+=10,c+=l}while(c<f);return m}},parseSyncSafeInteger:Lr,frameParsers:Or},Q_=Qn,Ji=jd;Jn=function(o){var m,l={descriptor:o&&o.descriptor},d=0,c=[],f=0;if(Jn.prototype.init.call(this),this.dispatchType=Q_.METADATA_STREAM_TYPE.toString(16),l.descriptor)for(m=0;m<l.descriptor.length;m++)this.dispatchType+=("00"+l.descriptor[m].toString(16)).slice(-2);this.push=function(x){var E,D,A,L,F;if("timed-metadata"===x.type){if(x.dataAlignmentIndicator&&(f=0,c.length=0),0===c.length&&(x.data.length<10||x.data[0]!=="I".charCodeAt(0)||x.data[1]!=="D".charCodeAt(0)||x.data[2]!=="3".charCodeAt(0)))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(c.push(x),f+=x.data.byteLength,1===c.length&&(d=Ji.parseSyncSafeInteger(x.data.subarray(6,10)),d+=10),!(f<d)){for(E={data:new Uint8Array(d),frames:[],pts:c[0].pts,dts:c[0].dts},F=0;F<d;)E.data.set(c[0].data.subarray(0,d-F),F),F+=c[0].data.byteLength,f-=c[0].data.byteLength,c.shift();D=10,64&E.data[5]&&(D+=4,D+=Ji.parseSyncSafeInteger(E.data.subarray(10,14)),d-=Ji.parseSyncSafeInteger(E.data.subarray(16,20)));do{if((A=Ji.parseSyncSafeInteger(E.data.subarray(D+4,D+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((L={id:String.fromCharCode(E.data[D],E.data[D+1],E.data[D+2],E.data[D+3]),data:E.data.subarray(D+10,D+A+10)}).key=L.id,Ji.frameParsers[L.id]?Ji.frameParsers[L.id](L):"T"===L.id[0]?Ji.frameParsers["T*"](L):"W"===L.id[0]&&Ji.frameParsers["W*"](L),"com.apple.streaming.transportStreamTimestamp"===L.owner){var G=L.data,Pe=(1&G[3])<<30|G[4]<<22|G[5]<<14|G[6]<<6|G[7]>>>2;Pe*=4,L.timeStamp=Pe+=3&G[7],void 0===E.pts&&void 0===E.dts&&(E.pts=L.timeStamp,E.dts=L.timeStamp),this.trigger("timestamp",L)}E.frames.push(L),D+=10,D+=A}while(D<d);this.trigger("data",E)}}}},Jn.prototype=new t;var ea,Nr,ta,Y_=Jn,Zo=t,Jo=Md,fi=Qn,Z_=Fd.TimestampRolloverStream;ea=function(){var o=new Uint8Array(188),l=0;ea.prototype.init.call(this),this.push=function(d){var m,c=0,f=188;for(l?((m=new Uint8Array(d.byteLength+l)).set(o.subarray(0,l)),m.set(d,l),l=0):m=d;f<m.byteLength;)71!==m[c]||71!==m[f]?(c++,f++):(this.trigger("data",m.subarray(c,f)),c+=188,f+=188);c<m.byteLength&&(o.set(m.subarray(c),0),l=m.byteLength-c)},this.flush=function(){188===l&&71===o[0]&&(this.trigger("data",o),l=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){l=0,this.trigger("reset")}},ea.prototype=new Zo,Nr=function(){var o,l,d,c;Nr.prototype.init.call(this),c=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,o=function(f,m){var x=0;m.payloadUnitStartIndicator&&(x+=f[x]+1),"pat"===m.type?l(f.subarray(x),m):d(f.subarray(x),m)},l=function(f,m){m.section_number=f[7],m.last_section_number=f[8],c.pmtPid=(31&f[10])<<8|f[11],m.pmtPid=c.pmtPid},d=function(f,m){var E,A;if(1&f[5]){for(c.programMapTable={video:null,audio:null,"timed-metadata":{}},E=3+((15&f[1])<<8|f[2])-4,A=12+((15&f[10])<<8|f[11]);A<E;){var L=f[A],F=(31&f[A+1])<<8|f[A+2];L===fi.H264_STREAM_TYPE&&null===c.programMapTable.video?c.programMapTable.video=F:L===fi.ADTS_STREAM_TYPE&&null===c.programMapTable.audio?c.programMapTable.audio=F:L===fi.METADATA_STREAM_TYPE&&(c.programMapTable["timed-metadata"][F]=L),A+=5+((15&f[A+3])<<8|f[A+4])}m.programMapTable=c.programMapTable}},this.push=function(f){var m={},x=4;if(m.payloadUnitStartIndicator=!!(64&f[1]),m.pid=31&f[1],m.pid<<=8,m.pid|=f[2],(48&f[3])>>>4>1&&(x+=f[x]+1),0===m.pid)m.type="pat",o(f.subarray(x),m),this.trigger("data",m);else if(m.pid===this.pmtPid)for(m.type="pmt",o(f.subarray(x),m),this.trigger("data",m);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([f,x,m]):this.processPes_(f,x,m)},this.processPes_=function(f,m,x){x.streamType=x.pid===this.programMapTable.video?fi.H264_STREAM_TYPE:x.pid===this.programMapTable.audio?fi.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][x.pid],x.type="pes",x.data=f.subarray(m),this.trigger("data",x)}},Nr.prototype=new Zo,Nr.STREAM_TYPES={h264:27,adts:15},ta=function(){var m,o=this,l=!1,d={data:[],size:0},c={data:[],size:0},f={data:[],size:0},E=function(D,A,L){var Et,F=new Uint8Array(D.size),he={type:A},G=0,Pe=0,Me=!1;if(D.data.length&&!(D.size<9)){for(he.trackId=D.data[0].pid,G=0;G<D.data.length;G++)F.set((Et=D.data[G]).data,Pe),Pe+=Et.data.byteLength;(function(D,A){var L;const F=D[0]<<16|D[1]<<8|D[2];A.data=new Uint8Array,1===F&&(A.packetLength=6+(D[4]<<8|D[5]),A.dataAlignmentIndicator=0!=(4&D[6]),192&(L=D[7])&&(A.pts=(14&D[9])<<27|(255&D[10])<<20|(254&D[11])<<12|(255&D[12])<<5|(254&D[13])>>>3,A.pts*=4,A.pts+=(6&D[13])>>>1,A.dts=A.pts,64&L&&(A.dts=(14&D[14])<<27|(255&D[15])<<20|(254&D[16])<<12|(255&D[17])<<5|(254&D[18])>>>3,A.dts*=4,A.dts+=(6&D[18])>>>1)),A.data=D.subarray(9+D[8]))})(F,he),Me="video"===A||he.packetLength<=D.size,(L||Me)&&(D.size=0,D.data.length=0),Me&&o.trigger("data",he)}};ta.prototype.init.call(this),this.push=function(D){({pat:function(){},pes:function(){var A,L;switch(D.streamType){case fi.H264_STREAM_TYPE:A=d,L="video";break;case fi.ADTS_STREAM_TYPE:A=c,L="audio";break;case fi.METADATA_STREAM_TYPE:A=f,L="timed-metadata";break;default:return}D.payloadUnitStartIndicator&&E(A,L,!0),A.data.push(D),A.size+=D.data.byteLength},pmt:function(){var A={type:"metadata",tracks:[]};null!==(m=D.programMapTable).video&&A.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+m.video,codec:"avc",type:"video"}),null!==m.audio&&A.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+m.audio,codec:"adts",type:"audio"}),l=!0,o.trigger("data",A)}})[D.type]()},this.reset=function(){d.size=0,d.data.length=0,c.size=0,c.data.length=0,this.trigger("reset")},this.flushStreams_=function(){E(d,"video"),E(c,"audio"),E(f,"timed-metadata")},this.flush=function(){if(!l&&m){var D={type:"metadata",tracks:[]};null!==m.video&&D.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+m.video,codec:"avc",type:"video"}),null!==m.audio&&D.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+m.audio,codec:"adts",type:"audio"}),o.trigger("data",D)}l=!1,this.flushStreams_(),this.trigger("done")}},ta.prototype=new Zo;var Vd={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:ea,TransportParseStream:Nr,ElementaryStream:ta,TimestampRolloverStream:Z_,CaptionStream:Jo.CaptionStream,Cea608Stream:Jo.Cea608Stream,Cea708Stream:Jo.Cea708Stream,MetadataStream:Y_};for(var tu in fi)fi.hasOwnProperty(tu)&&(Vd[tu]=fi[tu]);var ia,J_=Vd,ty=ut.ONE_SECOND_IN_TS,$d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ia=function(o){var l,d=0;ia.prototype.init.call(this),this.skipWarn_=function(c,f){this.trigger("log",{level:"warn",message:`adts ski
1ping bytes ${c} to ${f} in frame ${d} outside syncword`})},this.push=function(c){var m,x,E,D,A,f=0;if(o||(d=0),"audio"===c.type){l&&l.length?(E=l,(l=new Uint8Array(E.byteLength+c.data.byteLength)).set(E),l.set(c.data,E.byteLength)):l=c.data;for(var L;f+7<l.length;)if(255===l[f]&&240==(246&l[f+1])){if("number"==typeof L&&(this.skipWarn_(L,f),L=null),x=2*(1&~l[f+1]),A=(D=1024*(1+(3&l[f+6])))*ty/$d[(60&l[f+2])>>>2],l.byteLength-f<(m=(3&l[f+3])<<11|l[f+4]<<3|(224&l[f+5])>>5))break;this.trigger("data",{pts:c.pts+d*A,dts:c.dts+d*A,sampleCount:D,audioobjecttype:1+(l[f+2]>>>6&3),channelcount:(1&l[f+2])<<2|(192&l[f+3])>>>6,samplerate:$d[(60&l[f+2])>>>2],samplingfrequencyindex:(60&l[f+2])>>>2,samplesize:16,data:l.subarray(f+7+x,f+m)}),d++,f+=m}else"number"!=typeof L&&(L=f),f++;"number"==typeof L&&(this.skipWarn_(L,f),L=null),l=l.subarray(f)}},this.flush=function(){d=0,this.trigger("done")},this.reset=function(){l=void 0,this.trigger("reset")},this.endTimeline=function(){l=void 0,this.trigger("endedtimeline")}},ia.prototype=new t;var qd,iy=ia;qd=function(o){var l=o.byteLength,d=0,c=0;this.length=function(){return 8*l},this.bitsAvailable=function(){return 8*l+c},this.loadWord=function(){var f=o.byteLength-l,m=new Uint8Array(4),x=Math.min(4,l);if(0===x)throw new Error("no bytes available");m.set(o.subarray(f,f+x)),d=new DataView(m.buffer).getUint32(0),c=8*x,l-=x},this.skipBits=function(f){var m;c>f?(d<<=f,c-=f):(f-=c,f-=8*(m=Math.floor(f/8)),l-=m,this.loadWord(),d<<=f,c-=f)},this.readBits=function(f){var m=Math.min(c,f),x=d>>>32-m;return(c-=m)>0?d<<=m:l>0&&this.loadWord(),(m=f-m)>0?x<<m|this.readBits(m):x},this.skipLeadingZeros=function(){var f;for(f=0;f<c;++f)if(d&2147483648>>>f)return d<<=f,c-=f,f;return this.loadWord(),f+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var f=this.skipLeadingZeros();return this.readBits(f+1)-1},this.readExpGolomb=function(){var f=this.readUnsignedExpGolomb();return 1&f?1+f>>>1:-1*(f>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var sa,Rr,Gd,Hd=t,ry=qd;Rr=function(){var l,d,o=0;Rr.prototype.init.call(this),this.push=function(c){var f;d?((f=new Uint8Array(d.byteLength+c.data.byteLength)).set(d),f.set(c.data,d.byteLength),d=f):d=c.data;for(var m=d.byteLength;o<m-3;o++)if(1===d[o+2]){l=o+5;break}for(;l<m;)switch(d[l]){case 0:if(0!==d[l-1]){l+=2;break}if(0!==d[l-2]){l++;break}o+3!==l-2&&this.trigger("data",d.subarray(o+3,l-2));do{l++}while(1!==d[l]&&l<m);o=l-2,l+=3;break;case 1:if(0!==d[l-1]||0!==d[l-2]){l+=3;break}this.trigger("data",d.subarray(o+3,l-2)),o=l-2,l+=3;break;default:l+=3}d=d.subarray(o),l-=o,o=0},this.reset=function(){d=null,o=0,this.trigger("reset")},this.flush=function(){d&&d.byteLength>3&&this.trigger("data",d.subarray(o+3)),d=null,o=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Rr.prototype=new Hd,Gd={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},sa=function(){var l,d,c,f,m,x,E,o=new Rr;sa.prototype.init.call(this),l=this,this.push=function(D){"video"===D.type&&(d=D.trackId,c=D.pts,f=D.dts,o.push(D))},o.on("data",function(D){var A={trackId:d,pts:c,dts:f,data:D,nalUnitTypeCode:31&D[0]};switch(A.nalUnitTypeCode){case 5:A.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:A.nalUnitType="sei_rbsp",A.escapedRBSP=m(D.subarray(1));break;case 7:A.nalUnitType="seq_parameter_set_rbsp",A.escapedRBSP=m(D.subarray(1)),A.config=x(A.escapedRBSP);break;case 8:A.nalUnitType="pic_parameter_set_rbsp";break;case 9:A.nalUnitType="access_unit_delimiter_rbsp"}l.trigger("data",A)}),o.on("done",function(){l.trigger("done")}),o.on("partialdone",function(){l.trigger("partialdone")}),o.on("reset",function(){l.trigger("reset")}),o.on("endedtimeline",function(){l.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},E=function(D,A){var he,L=8,F=8;for(he=0;he<D;he++)0!==F&&(F=(L+A.readExpGolomb()+256)%256),L=0===F?L:F},m=function(D){for(var he,G,A=D.byteLength,L=[],F=1;F<A-2;)0===D[F]&&0===D[F+1]&&3===D[F+2]?(L.push(F+2),F+=2):F++;if(0===L.length)return D;he=A-L.length,G=new Uint8Array(he);var Pe=0;for(F=0;F<he;Pe++,F++)Pe===L[0]&&(Pe++,L.shift()),G[F]=D[Pe];return G},x=function(D){var G,Pe,Me,Et,ai,_s,vh,Th,bh,hu,xh,ys,A=0,L=0,F=0,he=0,vt=[1,1];if(Pe=(G=new ry(D)).readUnsignedByte(),Et=G.readUnsignedByte(),Me=G.readUnsignedByte(),G.skipUnsignedExpGolomb(),Gd[Pe]&&(3===(ai=G.readUnsignedExpGolomb())&&G.skipBits(1),G.skipUnsignedExpGolomb(),G.skipUnsignedExpGolomb(),G.skipBits(1),G.readBoolean()))for(xh=3!==ai?8:12,ys=0;ys<xh;ys++)G.readBoolean()&&E(ys<6?16:64,G);if(G.skipUnsignedExpGolomb(),0===(_s=G.readUnsignedExpGolomb()))G.readUnsignedExpGolomb();else if(1===_s)for(G.skipBits(1),G.skipExpGolomb(),G.skipExpGolomb(),vh=G.readUnsignedExpGolomb(),ys=0;ys<vh;ys++)G.skipExpGolomb();if(G.skipUnsignedExpGolomb(),G.skipBits(1),Th=G.readUnsignedExpGolomb(),bh=G.readUnsignedExpGolomb(),0===(hu=G.readBits(1))&&G.skipBits(1),G.skipBits(1),G.readBoolean()&&(A=G.readUnsignedExpGolomb(),L=G.readUnsignedExpGolomb(),F=G.readUnsignedExpGolomb(),he=G.readUnsignedExpGolomb()),G.readBoolean()&&G.readBoolean())switch(G.readUnsignedByte()){case 1:vt=[1,1];break;case 2:vt=[12,11];break;case 3:vt=[10,11];break;case 4:vt=[16,11];break;case 5:vt=[40,33];break;case 6:vt=[24,11];break;case 7:vt=[20,11];break;case 8:vt=[32,11];break;case 9:vt=[80,33];break;case 10:vt=[18,11];break;case 11:vt=[15,11];break;case 12:vt=[64,33];break;case 13:vt=[160,99];break;case 14:vt=[4,3];break;case 15:vt=[3,2];break;case 16:vt=[2,1];break;case 255:vt=[G.readUnsignedByte()<<8|G.readUnsignedByte(),G.readUnsignedByte()<<8|G.readUnsignedByte()]}return{profileIdc:Pe,levelIdc:Me,profileCompatibility:Et,width:16*(Th+1)-2*A-2*L,height:(2-hu)*(bh+1)*16-2*F-2*he,sarRatio:vt}}},sa.prototype=new Hd;var ra,ny={H264Stream:sa,NalByteStream:Rr},ay=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],zd=function(o,l){var d=o[l+6]<<21|o[l+7]<<14|o[l+8]<<7|o[l+9];return d=d>=0?d:0,(16&o[l+5])>>4?d+20:d+10},Wd=function(o,l){return o.length-l<10||o[l]!=="I".charCodeAt(0)||o[l+1]!=="D".charCodeAt(0)||o[l+2]!=="3".charCodeAt(0)?l:(l+=zd(o,l),Wd(o,l))},Xd=function(o){return o[0]<<21|o[1]<<14|o[2]<<7|o[3]},ly=function(o,l,d){return unescape(function(o,l,d){var c,f="";for(c=l;c<d;c++)f+="%"+("00"+o[c].toString(16)).slice(-2);return f}(o,l,d))},iu={isLikelyAacData:function(o){var l=Wd(o,0);return o.length>=l+2&&255==(255&o[l])&&240==(240&o[l+1])&&16==(22&o[l+1])},parseId3TagSize:zd,parseAdtsSize:function(o,l){return 6144&o[l+3]|o[l+4]<<3|(224&o[l+5])>>5},parseType:function(o,l){return o[l]==="I".charCodeAt(0)&&o[l+1]==="D".charCodeAt(0)&&o[l+2]==="3".charCodeAt(0)?"timed-metadata":!0&o[l]&&240==(240&o[l+1])?"audio":null},parseSampleRate:function(o){for(var l=0;l+5<o.length;){if(255===o[l]&&240==(246&o[l+1]))return ay[(60&o[l+2])>>>2];l++}return null},parseAacTimestamp:function(o){var l,d,c;l=10,64&o[5]&&(l+=4,l+=Xd(o.subarray(10,14)));do{if((d=Xd(o.subarray(l+4,l+8)))<1)return null;
vendor: 4,262 bytes, line 1
1if("PRIV"===String.fromCharCode(o[l],o[l+1],o[l+2],o[l+3])){c=o.subarray(l+10,l+d+10);for(var m=0;m<c.byteLength;m++)if(0===c[m]){if("com.apple.streaming.transportStreamTimestamp"===ly(c,0,m)){var E=c.subarray(m+1),D=(1&E[3])<<30|E[4]<<22|E[5]<<14|E[6]<<6|E[7]>>>2;return(D*=4)+(3&E[7])}break}}l+=10,l+=d}while(l<o.byteLength);return null}},Kd=iu;ra=function(){var o=new Uint8Array,l=0;ra.prototype.init.call(this),this.setTimestamp=function(d){l=d},this.push=function(d){var x,E,D,c=0,f=0;for(o.length?(D=o.length,(o=new Uint8Array(d.byteLength+D)).set(o.subarray(0,D)),o.set(d,D)):o=d;o.length-f>=3;)if(o[f]!=="I".charCodeAt(0)||o[f+1]!=="D".charCodeAt(0)||o[f+2]!=="3".charCodeAt(0))if(255!=(255&o[f])||240!=(240&o[f+1]))f++;else{if(o.length-f<7||f+(c=Kd.parseAdtsSize(o,f))>o.length)break;E={type:"audio",data:o.subarray(f,f+c),pts:l,dts:l},this.trigger("data",E),f+=c}else{if(o.length-f<10||f+(c=Kd.parseId3TagSize(o,f))>o.length)break;x={type:"timed-metadata",data:o.subarray(f,f+c)},this.trigger("data",x),f+=c}o=o.length-f>0?o.subarray(f):new Uint8Array},this.reset=function(){o=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){o=new Uint8Array,this.trigger("endedtimeline")}},ra.prototype=new t;var Fr,Qs,ua,ms,na=t,Mr=c_,Br=v_,aa=A_,pi=O_,Ui=J_,oa=ut,Qd=iy,Ty=ny.H264Stream,by=ra,xy=iu.isLikelyAacData,Sy=ut.ONE_SECOND_IN_TS,su=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],ru=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ey=function(o,l){l.stream=o,this.trigger("log",l)},Yd=function(o,l){for(var d=Object.keys(l),c=0;c<d.length;c++){var f=d[c];"headOfPipeline"===f||!l[f].on||l[f].on("log",Ey.bind(o,f))}},Zd=function(o,l){var d;if(o.length!==l.length)return!1;for(d=0;d<o.length;d++)if(o[d]!==l[d])return!1;return!0},nu=function(o,l,d,c,f,m){return{start:{dts:o,pts:o+(d-l)},end:{dts:o+(c-l),pts:o+(f-d)},prependedContentDuration:m,baseMediaDecodeTime:o}};Qs=function(o,l){var c,d=[],f=0,m=0,x=1/0;c=(l=l||{}).firstSequenceNumber||0,Qs.prototype.init.call(this),this.push=function(E){pi.collectDtsInfo(o,E),o&&su.forEach(function(D){o[D]=E[D]}),d.push(E)},this.setEarliestDts=function(E){f=E},this.setVideoBaseMediaDecodeTime=function(E){x=E},this.setAudioAppendStart=function(E){m=E},this.flush=function(){var E,D,A,L,F,he,G;0!==d.length?(E=aa.trimAdtsFramesByEarliestDts(d,o,f),o.baseMediaDecodeTime=pi.calculateTrackBaseMediaDecodeTime(o,l.keepOriginalTimestamps),G=aa.prefixWithSilence(o,E,m,x),o.samples=aa.generateSampleTable(E),A=Mr.mdat(aa.concatenateFrameData(E)),d=[],D=Mr.moof(c,[o]),L=new Uint8Array(D.byteLength+A.byteLength),c++,L.set(D),L.set(A,D.byteLength),pi.clearDtsInfo(o),F=Math.ceil(1024*Sy/o.samplerate),E.length&&(he=E.length*F,this.trigger("segmentTimingInfo",nu(oa.audioTsToVideoTs(o.baseMediaDecodeTime,o.samplerate),E[0].dts,E[0].pts,E[0].dts+he,E[0].pts+he,G||0)),this.trigger("timingInfo",{start:E[0].pts,end:E[0].pts+he})),this.trigger("data",{track:o,boxes:L}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){pi.clearDtsInfo(o),d=[],this.trigger("reset")}},Qs.prototype=new na,Fr=function(o,l){var d,m,x,c=[],f=[];d=(l=l||{}).firstSequenceNumber||0,Fr.prototype.init.call(this),delete o.minPTS,this.gopCache_=[],this.push=function(E){pi.collectDtsInfo(o,E),"seq_parameter_set_rbsp"===E.nalUnitType&&!m&&(m=E.config,o.sps=[E.data],ru.forEach(function(D){o[D]=m[D]},this)),"pic_parameter_set_rbsp"===E.nalUnitType&&!x&&(x=E.data,o.pps=[E.data]),c.push(E)},this.flush=function(){for(var E,D,A,L,F,he,Pe,Me,G=0;c.length&&"access_unit_delimiter_rbsp"!==c[0].nalUnitType;)c.shift();if(0===c.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(E=Br.groupNalsIntoFrames(c),(A=Br.groupFramesIntoGops(E))[0][0].keyFrame||((D=this.getGopForFusion_(c[0],o))?(G=D.duration,A.unshift(D),A.byteLength+=D.byteLength,A.nalCount+=D.nalCount,A.pts=D.pts,A.dts=D.dts,A.duration+=D.duration):A=Br.extendFirstKeyFrame(A)),f.length){var Et;if(!(Et=l.alignGopsAtEnd?this.alignGopsAtEnd_(A):this.alignGopsAtStart_(A)))return this.gopCache_.unshift({gop:A.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),c=[],this.resetStream_
vendor: 13,746 bytes, line 1
1(),void this.trigger("done","VideoSegmentStream");pi.clearDtsInfo(o),A=Et}pi.collectDtsInfo(o,A),o.samples=Br.generateSampleTable(A),F=Mr.mdat(Br.concatenateNalData(A)),o.baseMediaDecodeTime=pi.calculateTrackBaseMediaDecodeTime(o,l.keepOriginalTimestamps),this.trigger("processedGopsInfo",A.map(function(ai){return{pts:ai.pts,dts:ai.dts,byteLength:ai.byteLength}})),this.trigger("segmentTimingInfo",nu(o.baseMediaDecodeTime,(Pe=A[0]).dts,Pe.pts,(Me=A[A.length-1]).dts+Me.duration,Me.pts+Me.duration,G)),this.trigger("timingInfo",{start:A[0].pts,end:A[A.length-1].pts+A[A.length-1].duration}),this.gopCache_.unshift({gop:A.pop(),pps:o.pps,sps:o.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),c=[],this.trigger("baseMediaDecodeTime",o.baseMediaDecodeTime),this.trigger("timelineStartInfo",o.timelineStartInfo),L=Mr.moof(d,[o]),he=new Uint8Array(L.byteLength+F.byteLength),d++,he.set(L),he.set(F,L.byteLength),this.trigger("data",{track:o,boxes:he}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),c=[],this.gopCache_.length=0,f.length=0,this.trigger("reset")},this.resetStream_=function(){pi.clearDtsInfo(o),m=void 0,x=void 0},this.getGopForFusion_=function(E){var F,he,G,Pe,Me,L=1/0;for(Me=0;Me<this.gopCache_.length;Me++)G=(Pe=this.gopCache_[Me]).gop,o.pps&&Zd(o.pps[0],Pe.pps[0])&&o.sps&&Zd(o.sps[0],Pe.sps[0])&&(G.dts<o.timelineStartInfo.dts||(F=E.dts-G.dts-G.duration)>=-1e4&&F<=45e3&&(!he||L>F)&&(he=Pe,L=F));return he?he.gop:null},this.alignGopsAtStart_=function(E){var D,A,L,F,he,G,Pe,Me;for(he=E.byteLength,G=E.nalCount,Pe=E.duration,D=A=0;D<f.length&&A<E.length&&(L=f[D]).pts!==(F=E[A]).pts;)F.pts>L.pts?D++:(A++,he-=F.byteLength,G-=F.nalCount,Pe-=F.duration);return 0===A?E:A===E.length?null:((Me=E.slice(A)).byteLength=he,Me.duration=Pe,Me.nalCount=G,Me.pts=Me[0].pts,Me.dts=Me[0].dts,Me)},this.alignGopsAtEnd_=function(E){var D,A,L,F,he,G,Pe;for(D=f.length-1,A=E.length-1,he=null,G=!1;D>=0&&A>=0;){if((L=f[D]).pts===(F=E[A]).pts){G=!0;break}L.pts>F.pts?D--:(D===f.length-1&&(he=A),A--)}if(!G&&null===he)return null;if(0===(Pe=G?A:he))return E;var Me=E.slice(Pe),Et=Me.reduce(function(ai,_s){return ai.byteLength+=_s.byteLength,ai.duration+=_s.duration,ai.nalCount+=_s.nalCount,ai},{byteLength:0,duration:0,nalCount:0});return Me.byteLength=Et.byteLength,Me.duration=Et.duration,Me.nalCount=Et.nalCount,Me.pts=Me[0].pts,Me.dts=Me[0].dts,Me},this.alignGopsWith=function(E){f=E}},Fr.prototype=new na,ms=function(o,l){this.numberOfTracks=0,this.metadataStream=l,this.remuxTracks=!(typeof(o=o||{}).remux<"u"&&!o.remux),this.keepOriginalTimestamps="boolean"==typeof o.keepOriginalTimestamps&&o.keepOriginalTimestamps,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ms.prototype.init.call(this),this.push=function(d){return d.content||d.text?this.pendingCaptions.push(d):d.frames?this.pendingMetadata.push(d):(this.pendingTracks.push(d.track),this.pendingBytes+=d.boxes.byteLength,"video"===d.track.type&&(this.videoTrack=d.track,this.pendingBoxes.push(d.boxes)),void("audio"===d.track.type&&(this.audioTrack=d.track,this.pendingBoxes.unshift(d.boxes))))}},ms.prototype=new na,ms.prototype.flush=function(o){var c,f,m,E,l=0,d={captions:[],captionStreams:{},metadata:[],info:{}},x=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==o&&"AudioSegmentStream"!==o)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?(x=this.videoTrack.timelineStartInfo.pts,ru.forEach(function(D){d.info[D]=this.videoTrack[D]},this)):this.audioTrack&&(x=this.audioTrack.timelineStartInfo.pts,su.forEach(function(D){d.info[D]=this.audioTrack[D]},this)),this.videoTrack||this.audioTrack){for(d.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,m=Mr.initSegment(this.pendingTracks),d.initSegment=new Uint8Array(m.byteLength),d.initSegment.set(m),d.data=new Uint8Array(this.pendingBytes),E=0;E<this.pendingBoxes.length;E++)d.data.set(this.pendingBoxes[E],l),l+=this.pendingBoxes[E].byteLength;for(E=0;E<this.pendingCaptions.length;E++)(c=this.pendingCaptions[E]).startTime=oa.metadataTsToSeconds(c.startPts,x,this.keepOriginalTimestamps),c.endTime=oa.metadataTsToSeconds(c.endPts,x,this.keepOriginalTimestamps),d.captionStreams[c.stream]=!0,d.captions.push(c);for(E=0;E<this.pendingMetadata.length;E++)(f=this.pendingMetadata[E]).cueTime=oa.metadataTsToSeconds(f.pts,x,this.keepOriginalTimestamps),d.metadata.push(f);for(d.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",d),E=0;E<d.captions.length;E++)this.trigger("caption",c=d.captions[E]);for(E=0;E<d.metadata.length;E++)this.trigger("id3Frame",f=d.metadata[E])}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ms.prototype.setRemux=function(o){this.remuxTracks=o},ua=function(o){var c,f,l=this,d=!0;ua.prototype.init.call(this),this.baseMediaDecodeTime=(o=o||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var m={};this.transmuxPipeline_=m,m.type="aac",m.metadataStream=new Ui.MetadataStream,m.aacStream=new by,m.audioTimestampRolloverStream=new Ui.TimestampRolloverStream("audio"),m.timedMetadataTimestampRolloverStream=new Ui.TimestampRolloverStream("timed-metadata"),m.adtsStream=new Qd,m.coalesceStream=new ms(o,m.metadataStream),m.headOfPipeline=m.aacStream,m.aacStream.pipe(m.audioTimestampRolloverStream).pipe(m.adtsStream),m.aacStream.pipe(m.timedMetadataTimestampRolloverStream).pipe(m.metadataStream).pipe(m.coalesceStream),m.metadataStream.on("timestamp",function(x){m.aacStream.setTimestamp(x.timeStamp)}),m.aacStream.on("data",function(x){"timed-metadata"!==x.type&&"audio"!==x.type||m.audioSegmentStream||(f=f||{timelineStartInfo:{baseMediaDecodeTime:l.baseMediaDecodeTime},codec:"adts",type:"audio"},m.coalesceStream.numberOfTracks++,m.audioSegmentStream=new Qs(f,o),m.audioSegmentStream.on("log",l.getLogTrigger_("audioSegmentStream")),m.audioSegmentStream.on("timingInfo",l.trigger.bind(l,"audioTimingInfo")),m.adtsStream.pipe(m.audioSegmentStream).pipe(m.coalesceStream),l.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!c}))}),m.coalesceStream.on("data",this.trigger.bind(this,"data")),m.coalesceStream.on("done",this.trigger.bind(this,"done")),Yd(this,m)},this.setupTsPipeline=function(){var m={};this.transmuxPipeline_=m,m.type="ts",m.metadataStream=new Ui.MetadataStream,m.packetStream=new Ui.TransportPacketStream,m.parseStream=new Ui.TransportParseStream,m.elementaryStream=new Ui.ElementaryStream,m.timestampRolloverStream=new Ui.TimestampRolloverStream,m.adtsStream=new Qd,m.h264Stream=new Ty,m.captionStream=new Ui.CaptionStream(o),m.coalesceStream=new ms(o,m.metadataStream),m.headOfPipeline=m.packetStream,m.packetStream.pipe(m.parseStream).pipe(m.elementaryStream).pipe(m.timestampRolloverStream),m.timestampRolloverStream.pipe(m.h264Stream),m.timestampRolloverStream.pipe(m.adtsStream),m.timestampRolloverStream.pipe(m.metadataStream).pipe(m.coalesceStream),m.h264Stream.pipe(m.captionStream).pipe(m.coalesceStream),m.elementaryStream.on("data",function(x){var E;if("metadata"===x.type){for(E=x.tracks.length;E--;)c||"video"!==x.tracks[E].type?!f&&"audio"===x.tracks[E].type&&((f=x.tracks[E]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime):(c=x.tracks[E]).timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime;c&&!m.videoSegmentStream&&(m.coalesceStream.numberOfTracks++,m.videoSegmentStream=new Fr(c,o),m.videoSegmentStream.on("log",l.getLogTrigger_("videoSegmentStream")),m.videoSegmentStream.on("timelineStartInfo",function(D){f&&!o.keepOriginalTimestamps&&(f.timelineStartInfo=D,m.audioSegmentStream.setEarliestDts(D.dts-l.baseMediaDecodeTime))}),m.videoSegmentStream.on("processedGopsInfo",l.trigger.bind(l,"gopInfo")),m.videoSegmentStream.on("segmentTimingInfo",l.trigger.bind(l,"videoSegmentTimingInfo")),m.videoSegmentStream.on("baseMediaDecodeTime",function(D){f&&m.audioSegmentStream.setVideoBaseMediaDecodeTime(D)}),m.videoSegmentStream.on("timingInfo",l.trigger.bind(l,"videoTimingInfo")),m.h264Stream.pipe(m.videoSegmentStream).pipe(m.coalesceStream)),f&&!m.audioSegmentStream&&(m.coalesceStream.numberOfTracks++,m.audioSegmentStream=new Qs(f,o),m.audioSegmentStream.on("log",l.getLogTrigger_("audioSegmentStream")),m.audioSegmentStream.on("timingInfo",l.trigger.bind(l,"audioTimingInfo")),m.audioSegmentStream.on("segmentTimingInfo",l.trigger.bind(l,"audioSegmentTimingInfo")),m.adtsStream.pipe(m.audioSegmentStream).pipe(m.coalesceStream)),l.trigger("trackinfo",{hasAudio:!!f,hasVideo:!!c})}}),m.coalesceStream.on("data",this.trigger.bind(this,"data")),m.coalesceStream.on("id3Frame",function(x){x.dispatchType=m.metadataStream.dispatchType,l.trigger("id3Frame",x)}),m.coalesceStream.on("caption",this.trigger.bind(this,"caption")),m.coalesceStream.on("done",this.trigger.bind(this,"done")),Yd(this,m)},this.setBaseMediaDecodeTime=function(m){var x=this.transmuxPipeline_;o.keepOriginalTimestamps||(this.baseMediaDecodeTime=m),f&&(f.timelineStartInfo.dts=void 0,f.timelineStartInfo.pts=void 0,pi.clearDtsInfo(f),x.audioTimestampRolloverStream&&x.audioTimestampRolloverStream.discontinuity()),c&&(x.videoSegmentStream&&(x.videoSegmentStream.gopCache_=[]),c.timelineStartInfo.dts=void 0,c.timelineStartInfo.pts=void 0,pi.clearDtsInfo(c),x.captionStream.reset()),x.timestampRolloverStream&&x.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(m){f&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(m)},this.setRemux=function(m){var x=this.transmuxPipeline_;o.remux=m,x&&x.coalesceStream&&x.coalesceStream.setRemux(m)},this.alignGopsWith=function(m){c&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(m)},this.getLogTrigger_=function(m){var x=this;return function(E){E.stream=m,x.trigger("log",E)}},this.push=function(m){if(d){var x=xy(m);x&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():!x&&"ts"!==this.transmuxPipeline_.type&&this.setupTsPipeline(),d=!1}this.transmuxPipeline_.headOfPipeline.push(m)},this.flush=function(){d=!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()}},ua.prototype=new na;var Ur,ch,fh,ou,ph,Cy={Transmuxer:ua,VideoSegmentStream:Fr,AudioSegmentStream:Qs,AUDIO_PROPERTIES:su,VIDEO_PROPERTIES:ru,generateSegmentTimingInfo:nu},la_toUnsigned=function(o){return o>>>0},Jd=function(o){var l="";return l+=String.fromCharCode(o[0]),l+=String.fromCharCode(o[1]),(l+=String.fromCharCode(o[2]))+String.fromCharCode(o[3])},ky=la_toUnsigned,Iy=Jd,eh=function(o,l){var c,f,m,x,E,d=[];if(!l.length)return null;for(c=0;c<o.byteLength;)f=ky(o[c]<<24|o[c+1]<<16|o[c+2]<<8|o[c+3]),m=Iy(o.subarray(c+4,c+8)),x=f>1?c+f:o.byteLength,m===l[0]&&(1===l.length?d.push(o.subarray(c+8,x)):(E=eh(o.subarray(c+8,x),l.slice(1))).length&&(d=d.concat(E))),c=x;return d},Py=la_toUnsigned,Ly=n.getUint64,ih=function(o){var l={version:o[0],flags:new Uint8Array(o.subarray(1,4))};return l.baseMediaDecodeTime=1===l.version?Ly(o.subarray(4)):Py(o[4]<<24|o[5]<<16|o[6]<<8|o[7]),l},sh=function(o){return{isLeading:(12&o[0])>>>2,dependsOn:3&o[0],isDependedOn:(192&o[1])>>>6,hasRedundancy:(48&o[1])>>>4,paddingValue:(14&o[1])>>>1,isNonSyncSample:1&o[1],degradationPriority:o[2]<<8|o[3]}},rh=function(o){var F,l={version:o[0],flags:new Uint8Array(o.subarray(1,4)),samples:[]},d=new DataView(o.buffer,o.byteOffset,o.byteLength),c=1&l.flags[2],f=4&l.flags[2],m=1&l.flags[1],x=2&l.flags[1],E=4&l.flags[1],D=8&l.flags[1],A=d.getUint32(4),L=8;for(c&&(l.dataOffset=d.getInt32(L),L+=4),f&&A&&(F={flags:sh(o.subarray(L,L+4))},L+=4,m&&(F.duration=d.getUint32(L),L+=4),x&&(F.size=d.getUint32(L),L+=4),D&&(F.compositionTimeOffset=1===l.version?d.getInt32(L):d.getUint32(L),L+=4),l.samples.push(F),A--);A--;)F={},m&&(F.duration=d.getUint32(L),L+=4),x&&(F.size=d.getUint32(L),L+=4),E&&(F.flags=sh(o.subarray(L,L+4)),L+=4),D&&(F.compositionTimeOffset=1===l.version?d.getInt32(L):d.getUint32(L),L+=4),l.samples.push(F);return l},nh=function(o){var L,l=new DataView(o.buffer,o.byteOffset,o.byteLength),d={version:o[0],flags:new Uint8Array(o.subarray(1,4)),trackId:l.getUint32(4)},c=1&d.flags[2],f=2&d.flags[2],m=8&d.flags[2],x=16&d.flags[2],E=32&d.flags[2],D=65536&d.flags[0],A=131072&d.flags[0];return L=8,c&&(L+=4,d.baseDataOffset=l.getUint32(12),L+=4),f&&(d.sampleDescriptionIndex=l.getUint32(L),L+=4),m&&(d.defaultSampleDuration=l.getUint32(L),L+=4),x&&(d.defaultSampleSize=l.getUint32(L),L+=4),E&&(d.defaultSampleFlags=l.getUint32(L)),D&&(d.durationIsEmpty=!0),!c&&A&&(d.baseDataOffsetIsMoof=!0),d},Fy=(Ur=typeof window<"u"?window:typeof s<"u"?s:typeof self<"u"?self:{},Rd.discardEmulationPreventionBytes),Uy=Md.CaptionStream,jr=eh,jy=ih,Vy=rh,$y=nh,oh=Ur,qy=function(o,l){for(var d=o,c=0;c<l.length;c++){var f=l[c];if(d<f.size)return f;d-=f.size}return null},Ky=function(){var l,d,c,f,m,x,o=!1;this.isInitialized=function(){return o},this.init=function(E){l=new Uy,o=!0,x=!!E&&E.isPartial,l.on("data",function(D){D.startTime=D.startPts/f,D.endTime=D.endPts/f,m.captions.push(D),m.captionStream
vendor: 16,470 bytes, line 1
1s[D.stream]=!0}),l.on("log",function(D){m.logs.push(D)})},this.isNewInit=function(E,D){return!(E&&0===E.length||D&&"object"==typeof D&&0===Object.keys(D).length||c===E[0]&&f===D[c])},this.parse=function(E,D,A){var L;if(!this.isInitialized())return null;if(!D||!A)return null;if(this.isNewInit(D,A))f=A[c=D[0]];else if(null===c||!f)return d.push(E),null;for(;d.length>0;){var F=d.shift();this.parse(F,D,A)}return L=function(o,l,d){if(null===l)return null;var f=function(o,l){var d=jr(o,["moof","traf"]),c=jr(o,["mdat"]),f={},m=[];return c.forEach(function(x,E){m.push({mdat:x,traf:d[E]})}),m.forEach(function(x){var Me,Et,E=x.mdat,D=x.traf,A=jr(D,["tfhd"]),L=$y(A[0]),F=L.trackId,he=jr(D,["tfdt"]),G=he.length>0?jy(he[0]).baseMediaDecodeTime:0,Pe=jr(D,["trun"]);l===F&&Pe.length>0&&(Me=function(o,l,d){var c=l,f=d.defaultSampleDuration||0,m=d.defaultSampleSize||0,x=d.trackId,E=[];return o.forEach(function(D){var L=Vy(D).samples;L.forEach(function(F){void 0===F.duration&&(F.duration=f),void 0===F.size&&(F.size=m),F.trackId=x,F.dts=c,void 0===F.compositionTimeOffset&&(F.compositionTimeOffset=0),"bigint"==typeof c?(F.pts=c+oh.BigInt(F.compositionTimeOffset),c+=oh.BigInt(F.duration)):(F.pts=c+F.compositionTimeOffset,c+=F.duration)}),E=E.concat(L)}),E}(Pe,G,L),Et=function(o,l,d){var m,x,E,D,c=new DataView(o.buffer,o.byteOffset,o.byteLength),f={logs:[],seiNals:[]};for(x=0;x+4<o.length;x+=E)if(E=c.getUint32(x),x+=4,!(E<=0))switch(31&o[x]){case 6:var A=o.subarray(x+1,x+1+E),L=qy(x,l);if(m={nalUnitType:"sei_rbsp",size:E,data:A,escapedRBSP:Fy(A),trackId:d},L)m.pts=L.pts,m.dts=L.dts,D=L;else{if(!D){f.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+x+" for trackId "+d+". See mux.js#223."});break}m.pts=D.pts,m.dts=D.dts}f.seiNals.push(m)}return f}(E,Me,F),f[F]||(f[F]={seiNals:[],logs:[]}),f[F].seiNals=f[F].seiNals.concat(Et.seiNals),f[F].logs=f[F].logs.concat(Et.logs))}),f}(o,l)[l]||{};return{seiNals:f.seiNals,logs:f.logs,timescale:d}}(E,c,f),L&&L.logs&&(m.logs=m.logs.concat(L.logs)),null!==L&&L.seiNals?(this.pushNals(L.seiNals),this.flushStream(),m):m.logs.length?{logs:m.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(E){if(!this.isInitialized()||!E||0===E.length)return null;E.forEach(function(D){l.push(D)})},this.flushStream=function(){if(!this.isInitialized())return null;x?l.partialFlush():l.flush()},this.clearParsedCaptions=function(){m.captions=[],m.captionStreams={},m.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;l.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){d=[],c=null,f=null,m?this.clearParsedCaptions():m={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},ca=function(o){for(var l=0,d=String.fromCharCode(o[l]),c="";"\0"!==d;)c+=d,l++,d=String.fromCharCode(o[l]);return c+d},Zy=n.getUint64,uh=function(o){return void 0!==o||null!==o},iv={parseEmsgBox:function(o){var c,f,m,x,E,D,A,l=4,d=o[0];if(0===d)l+=(c=ca(o.subarray(l))).length,l+=(f=ca(o.subarray(l))).length,m=(F=new DataView(o.buffer)).getUint32(l),E=F.getUint32(l+=4),D=F.getUint32(l+=4),A=F.getUint32(l+=4),l+=4;else if(1===d){var F;m=(F=new DataView(o.buffer)).getUint32(l),x=Zy(o.subarray(l+=4)),D=F.getUint32(l+=8),A=F.getUint32(l+=4),l+=4,l+=(c=ca(o.subarray(l))).length,l+=(f=ca(o.subarray(l))).length}var he={scheme_id_uri:c,value:f,timescale:m||1,presentation_time:x,presentation_time_delta:E,event_duration:D,id:A,message_data:new Uint8Array(o.subarray(l,o.byteLength))};return function(o,l){var d="\0"!==l.scheme_id_uri,c=0===o&&uh(l.presentation_time_delta)&&d,f=1===o&&uh(l.presentation_time)&&d;return!(o>1)&&c||f}(d,he)?he:void 0},scaleTime:function(o,l,d,c){return o||0===o?o/l:c+d/l}},da=la_toUnsigned,Vr=function(o){return("00"+o.toString(16)).slice(-2)},yt=eh,Ys=Jd,au=iv,av=n.getUint64,uu=Ur,ov=jd.parseId3Frames;ch=function(o,l){var c=yt(l,["moof","traf"]).reduce(function(f,m){var F,x=yt(m,["tfhd"])[0],E=da(x[4]<<24|x[5]<<16|x[6]<<8|x[7]),D=o[E]||9e4,A=yt(m,["tfdt"])[0],L=new DataView(A.buffer,A.byteOffset,A.byteLength);let he;return"bigint"==typeof(F=1===A[0]?av(A.subarray(4,12)):L.getUint32(4))?he=F/uu.BigInt(D):"number"==typeof F&&!isNaN(F)&&(he=F/D),he<Number.MAX_SAFE_INTEGER&&(he=Number(he)),he<f&&(f=he),f},1/0);return"bigint"==typeof c||isFinite(c)?c:0},ou=function(o){var d=0===o[0]?12:20;return da(o[d]<<24|o[d+1]<<16|o[d+2]<<8|o[d+3])},fh=function(o){var l=yt(o,["moov","trak"]),d=[];return l.forEach(function(c){var x,E,f={},m=yt(c,["tkhd"])[0];m&&(E=(x=new DataView(m.buffer,m.byteOffset,m.byteLength)).getUint8(0),f.id=x.getUint32(0===E?12:20));var D=yt(c,["mdia","hdlr"])[0];if(D){var A=Ys(D.subarray(8,12));f.type="vide"===A?"video":"soun"===A?"audio":A}var L=yt(c,["mdia","minf","stbl","stsd"])[0];if(L){var F=L.subarray(8);f.codec=Ys(F.subarray(4,8));var G,he=yt(F,[f.codec])[0];he&&(/^[asm]vc[1-9]$/i.test(f.codec)?(G=he.subarray(78),"avcC"===Ys(G.subarray(4,8))&&G.length>11?(f.codec+=".",f.codec+=Vr(G[9]),f.codec+=Vr(G[10]),f.codec+=Vr(G[11])):f.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(f.codec)?(G=he.subarray(28),"esds"===Ys(G.subarray(4,8))&&G.length>20&&0!==G[19]?(f.codec+="."+Vr(G[19]),f.codec+="."+Vr(G[20]>>>2&63).replace(/^0/,"")):f.codec="mp4a.40.2"):f.codec=f.codec.toLowerCase())}var Me=yt(c,["mdia","mdhd"])[0];Me&&(f.timescale=ou(Me)),d.push(f)}),d},ph=function(o,l=0){return yt(o,["emsg"]).map(c=>{var f=au.parseEmsgBox(new Uint8Array(c)),m=ov(f.message_data);return{cueTime:au.scaleTime(f.presentation_time,f.timescale,f.presentation_time_delta,l),duration:au.scaleTime(f.event_duration,f.timescale),frames:m}})};var lu_startTime=ch,lu_tracks=fh,lu_getEmsgID3=ph,cu=Qn,mh=function(o){var l=31&o[1];return(l<<=8)|o[2]},ha=function(o){return!!(64&o[1])},fa=function(o){var l=0;return(48&o[3])>>>4>1&&(l+=o[4]+1),l},du=function(o){switch(o){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}},pv={parseType:function(o,l){var d=mh(o);return 0===d?"pat":d===l?"pmt":l?"pes":null},parsePat:function(o){var l=ha(o),d=4+fa(o);return l&&(d+=o[d]+1),(31&o[d+10])<<8|o[d+11]},parsePmt:function(o){var l={},d=ha(o),c=4+fa(o);if(d&&(c+=o[c]+1),1&o[c+5]){var m;m=3+((15&o[c+1])<<8|o[c+2])-4;for(var E=12+((15&o[c+10])<<8|o[c+11]);E<m;){var D=c+E;l[(31&o[D+1])<<8|o[D+2]]=o[D],E+=5+((15&o[D+3])<<8|o[D+4])}return l}},parsePayloadUnitStartIndicator:ha,parsePesType:function(o,l){switch(l[mh(o)]){case cu.H264_STREAM_TYPE:return"video";case cu.ADTS_STREAM_TYPE:return"audio";case cu.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(o){if(!ha(o))return null;var d=4+fa(o);if(d>=o.byteLength)return null;var f,c=null;return 192&(f=o[d+7])&&((c={}).pts=(14&o[d+9])<<27|(255&o[d+10])<<20|(254&o[d+11])<<12|(255&o[d+12])<<5|(254&o[d+13])>>>3,c.pts*=4,c.pts+=(6&o[d+13])>>>1,c.dts=c.pts,64&f&&(c.dts=(14&o[d+14])<<27|(255&o[d+15])<<20|(254&o[d+16])<<12|(255&o[d+17])<<5|(254&o[d+18])>>>3,c.dts*=4,c.dts+=(6&o[d+18])>>>1)),c},videoPacketContainsKeyFrame:function(o){for(var l=4+fa(o),d=o.subarray(l),c=0,f=0,m=!1;f<d.byteLength-3;f++)if(1===d[f+2]){c=f+5;break}for(;c<d.byteLength;)switch(d[c]){case 0:if(0!==d[c-1]){c+=2;break}if(0!==d[c-2]){c++;break}f+3!==c-2&&"slice_layer_without_partitioning_rbsp_idr"===du(31&d[f+3])&&(m=!0);do{c++}while(1!==d[c]&&c<d.length);f=c-2,c+=3;break;case 1:if(0!==d[c-1]||0!==d[c-2]){c+=3;break}"slice_layer_without_partitioning_rbsp_idr"===du(31&d[f+3])&&(m=!0),f=c-2,c+=3;break;default:c+=3}return d=d.subarray(f),c-=f,f=0,d&&d.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===du(31&d[f+3])&&(m=!0),m}},gh=Qn,Zs=Fd.handleRollover,Qe={};Qe.ts=pv,Qe.aac=iu;var gs=ut.ONE_SECOND_IN_TS,Ut=188,_h=function(o,l,d){for(var m,E,D,A,c=0,f=Ut,L=!1;f<=o.byteLength;)if(71!==o[c]||71!==o[f]&&f!==o.byteLength)c++,f++;else{if("pes"===(m=o.subarray(c,f),Qe.ts.parseType(m,l.pid))&&(E=Qe.ts.parsePesType(m,l.table),D=Qe.ts.parsePayloadUnitStartIndicator(m),"audio"===E&&D&&(A=Qe.ts.parsePesTime(m))&&(A.type="audio",d.audio.push(A),L=!0)),L)break;c+=Ut,f+=Ut}for(c=(f=o.byteLength)-Ut,L=!1;c>=0;)if(71!==o[c]||71!==o[f]&&f!==o.byteLength)c--,f--;else{if("pes"===(m=o.subarray(c,f),Qe.ts.parseType(m,l.pid))&&(E=Qe.ts.parsePesType(m,l.table),D=Qe.ts.parsePayloadUnitStartIndicator(m),"audio"===E&&D&&(A=Qe.ts.parsePesTime(m))&&(A.type="audio",d.audio.push(A),L=!0)),L)break;c-=Ut,f-=Ut}},gv=function(o,l,d){for(var m,E,D,A,L,F,he,c=0,f=Ut,G=!1,Pe={data:[],size:0};f<o.byteLength;)if(71!==o[c]||71!==o[f])c++,f++;else{if("pes"===(m=o.subarray(c,f),Qe.ts.parseType(m,l.pid))&&(E=Qe.ts.parsePesType(m,l.table),D=Qe.ts.parsePayloadUnitStartIndicator(m),"video"===E&&(D&&!G&&(A=Qe.ts.parsePesTime(m))&&(A.type="video",d.video.push(A),G=!0),!d.firstKeyFrame))){if(D&&0!==Pe.size){for(L=new Uint8Array(Pe.size),F=0;Pe.data.length;)he=Pe.data.shift(),L.set(he,F),F+=he.byteLength;if(Qe.ts.videoPacketContainsKeyFrame(L)){var Me=Qe.ts.parsePesTime(L);Me?(d.firstKeyFrame=Me,d.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.")}Pe.size=0}Pe.data.push(m),Pe.size+=m.byteLength}if(G&&d.firstKeyFrame)break;c+=Ut,f+=Ut}for(c=(f=o.byteLength)-Ut,G=!1;c>=0;)if(71!==o[c]||71!==o[f])c--,f--;else{if("pes"===(m=o.subarray(c,f),Qe.ts.parseType(m,l.pid))&&(E=Qe.ts.parsePesType(m,l.table),D=Qe.ts.parsePayloadUnitStartIndicator(m),"video"===E&&D&&(A=Qe.ts.parsePesTime(m))&&(A.type="video",d.video.push(A),G=!0)),G)break;c-=Ut,f-=Ut}},bv_inspect=function(o,l){var c;return c=Qe.aac.isLikelyAacData(o)?function(o){for(var E,l=!1,d=0,c=null,f=null,m=0,x=0;o.length-x>=3;){switch(Qe.aac.parseType(o,x)){case"timed-metadata":if(o.length-x<10){l=!0;break}if((m=Qe.aac.parseId3TagSize(o,x))>o.length){l=!0;break}null===f&&(E=o.subarray(x,x+m),f=Qe.aac.parseAacTimestamp(E)),x+=m;break;case"audio":if(o.length-x<7){l=!0;break}if((m=Qe.aac.parseAdtsSize(o,x))>o.length){l=!0;break}null===c&&(E=o.subarray(x,x+m),c=Qe.aac.parseSampleRate(E)),d++,x+=m;break;default:x++}if(l)return null}if(null===c||null===f)return null;var A=gs/c;return{audio:[{type:"audio",dts:f,pts:f},{type:"audio",dts:f+1024*d*A,pts:f+1024*d*A}]}}(o):function(o){var l={pid:null,table:null},d={};for(var c in function(o,l){for(var f,d=0,c=Ut;c<o.byteLength;)if(71!==o[d]||71!==o[c])d++,c++;else{switch(f=o.subarray(d,c),Qe.ts.parseType(f,l.pid)){case"pat":l.pid=Qe.ts.parsePat(f);break;case"pmt":var x=Qe.ts.parsePmt(f);l.table=l.table||{},Object.keys(x).forEach(function(E){l.table[E]=x[E]})}d+=Ut,c+=Ut}}(o,l),l.table)if(l.table.hasOwnProperty(c))switch(l.table[c]){case gh.H264_STREAM_TYPE:d.video=[],gv(o,l,d),0===d.video.length&&delete d.video;break;case gh.ADTS_STREAM_TYPE:d.audio=[],_h(o,l,d),0===d.audio.length&&delete d.audio}return d}(o),c&&(c.audio||c.video)?(function(o,l){if(o.audio&&o.audio.length){var d=l;(typeof d>"u"||isNaN(d))&&(d=o.audio[0].dts),o.audio.forEach(function(m){m.dts=Zs(m.dts,d),m.pts=Zs(m.pts,d),m.dtsTime=m.dts/gs,m.ptsTime=m.pts/gs})}if(o.video&&o.video.length){var c=l;if((typeof c>"u"||isNaN(c))&&(c=o.video[0].dts),o.video.forEach(function(m){m.dts=Zs(m.dts,c),m.pts=Zs(m.pts,c),m.dtsTime=m.dts/gs,m.ptsTime=m.pts/gs}),o.firstKeyFrame){var f=o.firstKeyFrame;f.dts=Zs(f.dts,c),f.pts=Zs(f.pts,c),f.dtsTime=f.dts/gs,f.ptsTime=f.pts/gs}}}(c,l),c):null};class yh{constructor(l,d){this.options=d||{},this.self=l,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Cy.Transmuxer(this.options),function(o,l){l.on("data",function(d){const c=d.initSegment;d.initSegment={data:c.buffer,byteOffset:c.byteOffset,byteLength:c.byteLength};const f=d.data;d.data=f.buffer,o.postMessage({action:"data",segment:d,byteOffset:f.byteOffset,byteLength:f.byteLength},[d.data])}),l.on("done",function(d){o.postMessage({action:"done"})}),l.on("gopInfo",function(d){o.postMessage({action:"gopInfo",gopInfo:d})}),l.on("videoSegmentTimingInfo",function(d){const c={start:{decode:ut.videoTsToSeconds(d.start.dts),presentation:ut.videoTsToSeconds(d.start.pts)},end:{decode:ut.videoTsToSeconds(d.end.dts),presentation:ut.videoTsToSeconds(d.end.pts)},baseMediaDecodeTime:ut.videoTsToSeconds(d.baseMediaDecodeTime)};d.prependedContentDuration&&(c.prependedContentDuration=ut.videoTsToSeconds(d.prependedContentDuration)),o.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:c})}),l.on("audioSegmentTimingInfo",function(d){const c={start:{decode:ut.videoTsToSeconds(d.start.dts),presentation:ut.videoTsToSeconds(d.start.pts)},end:{decode:ut.videoTsToSeconds(d.end.dts),presentation:ut.videoTsToSeconds(d.end.pts)},baseMediaDecodeTime:ut.videoTsToSeconds(d.baseMediaDecodeTime)};d.prependedContentDuration&&(c.prependedContentDuration=ut.videoTsToSeconds(d.prependedContentDuration)),o.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:c})}),l.on("id3Frame",function(d){o.postMessage({action:"id3Frame",id3Frame:d})}),l.on("caption",function(d){o.postMessage({action:"caption",caption:d})}),l.on("trackinfo",function(d){o.postMessage({action:"trackinfo",trackInfo:d})}),l.on("audioTimingInfo",function(d){o.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ut.videoTsToSeconds(d.start),end:ut.videoTsToSeconds(d.end)}})}),l.on("videoTimingInfo",function(d){o.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ut.videoTsToSeconds(d.start),end:ut.videoTsToSeconds(d.end)}})}),l.on("log",function(d){o.postMessage({action:"log",log:d})})}(this.self,this.transmuxer)}pushMp4Captions(l){this.captionParser||(this.captionParser=new Ky,this.captionParser.init());const d=new Uint8Array(l.data,l.byteOffset,l.byteLength),c=this.captionParser.parse(d,l.trackIds,l.timescales);this.self.postMessage({action:"mp4Captions",captions:c&&c.captions||[],logs:c&&c.logs||[],data:d.buffer},[d.buffer])}probeMp4StartTime({timescales:l,data:d}){const c=lu_startTime(l,d);this.self.postMessage({action:"probeMp4StartTime",startTime:c,data:d},[d.buffer])}probeMp4Tracks({data:l}){const d=lu_tracks(l);this.self.postMessage({action:"probeMp4Tracks",tracks:d,data:l},[l.buffer])}probeEmsgID3({data:l,offset:d}){const c=lu_getEmsgID3(l,d);this.self.postMessage({action:"probeEmsgID3",id3Frames:c,emsgData:l},[l.buffer])}probeTs({data:l,baseStartTime:d}){const c="number"!=typeof d||isNaN(d)?void 0:d*ut.ONE_SECOND_IN_TS,f=bv_inspect(l,c);let m=null;f&&(m={hasVideo:f.video&&2===f.video.length||!1,hasAudio:f.audio&&2===f.audio.length||!1},m.hasVideo&&(m.videoStart=f.video[0].ptsTime),m.hasAudio&&(m.audioStart=f.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:m,data:l},[l.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(l){const d=new Uint8Array(l.data,l.byteOffset,l.byteLength);this.transmuxer.push(d)}reset(){this.transmuxer.reset()}setTimestampOffset(l){this.transmuxer.setBaseMediaDecodeTime(Math.round(ut.secondsToVideoTs(l.timestampOffset||0)))}setAudioAppendStart(l){this.transmuxer.setAudioAppendStart(Math.ceil(ut.secondsToVideoTs(l.appendStart)))}setRemux(l){this.transmuxer.setRemux(l.remux)}flush(l){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(l){this.transmuxer.alignGopsWith(l.gopsToAlignWith.slice())}}self.onmessage=function(o){"init"===o.data.action&&o.data.options?this.messageHandlers=new yh(self,o.data.options):(this.messageHandlers||(this.messageHandlers=new yh(self)),o.data&&o.data.action&&"init"!==o.data.action&&this.messageHandlers[o.data.action]&&this.messageHandlers[o.data.action](o.data))}}));var Um=Bc(Fm);const jc=s=>{const{transmuxer:e,bytes:t,audioAppendStart:i,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:u,onAudioTimingInfo:h,onVideoTimingInfo:p,onVideoSegmentTimingInfo:_,onAudioSegmentTimingInfo:b,onId3:I,onCaptions:P,onDone:C,onEndedTimeline:N,onTransmuxerLog:B,isEndOfTimeline:$}=s,M={buffer:[]};let X=$;if(e.onmessage=O=>{e.currentTransmux===s&&("data"===O.data.action&&((s,e,t)=>
1{const{type:i,initSegment:r,captions:n,captionStreams:a,metadata:u,videoFrameDtsTime:h,videoFramePtsTime:p}=s.data.segment;e.buffer.push({captions:n,captionStreams:a,metadata:u});const _=s.data.segment.boxes||{data:s.data.segment.data},b={type:i,data:new Uint8Array(_.data,_.data.byteOffset,_.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof h<"u"&&(b.videoFrameDtsTime=h),typeof p<"u"&&(b.videoFramePtsTime=p),t(b)})(O,M,a),"trackinfo"===O.data.action&&u(O.data.trackInfo),"gopInfo"===O.data.action&&((s,e)=>{e.gopInfo=s.data.gopInfo})(O,M),"audioTimingInfo"===O.data.action&&h(O.data.audioTimingInfo),"videoTimingInfo"===O.data.action&&p(O.data.videoTimingInfo),"videoSegmentTimingInfo"===O.data.action&&_(O.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===O.data.action&&b(O.data.audioSegmentTimingInfo),"id3Frame"===O.data.action&&I([O.data.id3Frame],O.data.id3Frame.dispatchType),"caption"===O.data.action&&P(O.data.caption),"endedtimeline"===O.data.action&&(X=!1,N()),"log"===O.data.action&&B(O.data.log),"transmuxed"===O.data.type&&(X||(e.onmessage=null,(({transmuxedData:s,callback:e})=>{s.buffer=[],e(s)})({transmuxedData:M,callback:C}),Vc(e))))},i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof n<"u"&&e.postMessage({action:"setRemux",remux:n}),t.byteLength){const O=t instanceof ArrayBuffer?t:t.buffer,ue=t instanceof ArrayBuffer?0:t.byteOffset;e.postMessage({action:"push",data:O,byteOffset:ue,byteLength:t.byteLength},[O])}$&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},Vc=s=>{s.currentTransmux=null,s.transmuxQueue.length&&(s.currentTransmux=s.transmuxQueue.shift(),"function"==typeof s.currentTransmux?s.currentTransmux():jc(s.currentTransmux))},$c=(s,e)=>{s.postMessage({action:e}),Vc(s)};var No_reset=s=>{((s,e)=>{if(!e.currentTransmux)return e.currentTransmux=s,void $c(e,s);e.transmuxQueue.push($c.bind(null,e,s))})("reset",s)};const wr=function(s){const e=s.transmuxer,t=s.endAction||s.action,i=s.callback,r=Re({},s,{endAction:null,transmuxer:null,callback:null}),n=a=>{a.data.action===t&&(e.removeEventListener("message",n),a.data.data&&(a.data.data=new Uint8Array(a.data.data,s.byteOffset||0,s.byteLength||a.data.data.byteLength),s.data&&(s.data=a.data.data)),i(a.data))};if(e.addEventListener("message",n),s.data){const a=s.data instanceof ArrayBuffer;r.byteOffset=a?0:s.data.byteOffset,r.byteLength=s.data.byteLength,e.postMessage(r,[a?s.data:s.data.buffer])}else e.postMessage(r)},Ro=s=>{s.forEach(e=>{e.abort()})},Mo=(s,e)=>e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:-101,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:-102,xhr:e}:s?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:2,xhr:e}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:2,xhr:e}:null,Gc=(s,e,t)=>(i,r)=>{const n=r.response,a=Mo(i,r);if(a)return t(a,s);if(16!==n.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},s);const u=new DataView(n),h=new Uint32Array([u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12)]);for(let p=0;p<e.length;p++)e[p].bytes=h;return t(null,s)},zc=(s,e)=>{const t=wa(s.map.bytes);if("mp4"!==t)return e({internal:!0,message:`Found unsupported ${t||"unknown"} container for initialization segment at URL: ${s.map.resolvedUri||s.map.uri}`,code:2});wr({action:"probeMp4Tracks",data:s.map.bytes,transmuxer:s.transmuxer,callback:({tracks:i,data:r})=>(s.map.bytes=r,i.forEach(function(n){s.map.tracks=s.map.tracks||{},!s.map.tracks[n.type]&&(s.map.tracks[n.type]=n,"number"==typeof n.id&&n.timescale&&(s.map.timescales=s.map.timescales||{},s.map.timescales[n.id]=n.timescale))}),e(null))})},Km=({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})=>{const P=s.map&&s.map.tracks||{},C=!(!P.audio||!P.video);let N=i.bind(null,s,"audio","start");const B=i.bind(null,s,"audio","end");let $=i.bind(null,s,"video","start");const M=i.bind(null,s,"video","end");wr({action:"probeTs",transmuxer:s.transmuxer,data:e,baseStartTime:s.baseStartTime,callback:q=>{s.bytes=e=q.data;const O=q.result;O&&(t(s,{hasAudio:O.hasAudio,hasVideo:O.hasVideo,isMuxed:C}),t=null),(s=>{if(!s.transmuxer.currentTransmux)return s.transmuxer.currentTransmux=s,void jc(s);s.transmuxer.transmuxQueue.push(s)})({bytes:e,transmuxer:s.transmuxer,audioAppendStart:s.audioAppendStart,gopsToAlignWith:s.gopsToAlignWith,remux:C,onData:q=>{q.type="combined"===q.type?"video":q.type,_(s,q)},onTrackInfo:q=>{t&&(C&&(q.isMuxed=!0),t(s,q))},onAudioTimingInfo:q=>{N&&typeof q.start<"u"&&(N(q.start),N=null),B&&typeof q.end<"u"&&B(q.end)},onVideoTimingInfo:q=>{$&&typeof q.start<"u"&&($(q.start),$=null),M&&typeof q.end<"u"&&M(q.end)},onVideoSegmentTimingInfo:q=>{r(q)},onAudioSegmentTimingInfo:q=>{n(q)},onId3:(q,O)=>{a(s,q,O)},onCaptions:q=>{u(s,[q])},isEndOfTimeline:h,onEndedTimeline:()=>{p()},onTransmuxerLog:I,onDone:q=>{b&&(q.type="combined"===q.type?"video":q.type,b(null,s,q))}})}})},Wc=({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})=>{let P=new Uint8Array(e);if(function(e){return Vt(e,["moof"]).length>0}(P)){s.isFmp4=!0;const{tracks:C}=s.map,N={isFmp4:!0,hasVideo:!!C.video,hasAudio:!!C.audio};C.audio&&C.audio.codec&&"enca"!==C.audio.codec&&(N.audioCodec=C.audio.codec),C.video&&C.video.codec&&"encv"!==C.video.codec&&(N.videoCodec=C.video.codec),C.video&&C.audio&&(N.isMuxed=!0),t(s,N);const B=($,M)=>{_(s,{data:P,type:N.hasAudio&&!N.isMuxed?"audio":"video"}),M&&M.length&&a(s,M),$&&$.length&&u(s,$),b(null,s,{})};wr({action:"probeMp4StartTime",timescales:s.map.timescales,data:P,transmuxer:s.transmuxer,callback:({data:$,startTime:M})=>{e=$.buffer,s.bytes=P=$,N.hasAudio&&!N.isMuxed&&i(s,"audio","start",M),N.hasVideo&&i(s,"video","start",M),wr({action:"probeEmsgID3",data:P,transmuxer:s.transmuxer,offset:M,callback:({emsgData:X,id3Frames:q})=>{e=X.buffer,s.bytes=P=X,C.video&&X.byteLength&&s.transmuxer?wr({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:s.transmuxer,data:P,timescales:s.map.timescales,trackIds:[C.video.id],callback:O=>
1{e=O.data.buffer,s.bytes=P=O.data,O.logs.forEach(function(ue){I(We(ue,{stream:"mp4CaptionParser"}))}),B(O.captions,q)}}):B(void 0,q)}})}})}else{if(s.transmuxer)return typeof s.container>"u"&&(s.container=wa(P)),"ts"!==s.container&&"aac"!==s.container?(t(s,{hasAudio:!1,hasVideo:!1}),void b(null,s,{})):void Km({segment:s,bytes:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I});b(null,s,{})}},Xc=function({id:s,key:e,encryptedBytes:t,decryptionWorker:i},r){const n=u=>{if(u.data.source===s){i.removeEventListener("message",n);const h=u.data.decrypted;r(new Uint8Array(h.bytes,h.byteOffset,h.byteLength))}};let a;i.addEventListener("message",n),a=e.bytes.slice?e.bytes.slice():new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage(kc({source:s,encrypted:t,key:a,iv:e.iv}),[t.buffer,a.buffer])},eg=({xhr:s,xhrOptions:e,decryptionWorker:t,segment:i,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:_,captionsFn:b,isEndOfTimeline:I,endedTimelineFn:P,dataFn:C,doneFn:N,onTransmuxerLog:B})=>{const $=[],M=(({activeXhrs:s,decryptionWorker:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})=>{let P=0,C=!1;return(N,B)=>{if(!C){if(N)return C=!0,Ro(s),b(N,B);if(P+=1,P===s.length){const $=function(){if(B.encryptedBytes)return(({decryptionWorker:s,segment:e,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})=>{Xc({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:s},P=>{e.bytes=P,Wc({segment:e,bytes:e.bytes,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})})})({decryptionWorker:e,segment:B,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I});Wc({segment:B,bytes:B.bytes,trackInfoFn:t,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:_,doneFn:b,onTransmuxerLog:I})};if(B.endOfAllRequests=Date.now(),B.map&&B.map.encryptedBytes&&!B.map.bytes)return Xc({decryptionWorker:e,id:B.requestId+"-init",encryptedBytes:B.map.encryptedBytes,key:B.map.key},M=>{B.map.bytes=M,zc(B,X=>{if(X)return Ro(s),b(X,B);$()})});$()}}}})({activeXhrs:$,decryptionWorker:t,trackInfoFn:a,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:_,captionsFn:b,isEndOfTimeline:I,endedTimelineFn:P,dataFn:C,doneFn:N,onTransmuxerLog:B});if(i.key&&!i.key.bytes){const Se=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&Se.push(i.map.
vendor: 6,396 bytes, line 1
1key);const mt=s(We(e,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),Gc(i,Se,M));$.push(mt)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const De=s(We(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),Gc(i,[i.map.key],M));$.push(De)}const qe=We(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:Po(i.map)}),He=(({segment:s,finishProcessingFn:e})=>(t,i)=>{const r=Mo(t,i);if(r)return e(r,s);const n=new Uint8Array(i.response);if(s.map.key)return s.map.encryptedBytes=n,e(null,s);s.map.bytes=n,zc(s,function(a){if(a)return a.xhr=i,a.status=i.status,e(a,s);e(null,s)})})({segment:i,finishProcessingFn:M}),mt=s(qe,He);$.push(mt)}const X=We(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:Po(i)}),O=s(X,(({segment:s,finishProcessingFn:e,responseType:t})=>(i,r)=>{const n=Mo(i,r);if(n)return e(n,s);const a="arraybuffer"!==t&&r.responseText?(s=>{const e=new Uint8Array(new ArrayBuffer(s.length));for(let t=0;t<s.length;t++)e[t]=s.charCodeAt(t);return e.buffer})(r.responseText.substring(s.lastReachedChar||0)):r.response;return s.stats=(s=>({bandwidth:s.bandwidth,bytesReceived:s.bytesReceived||0,roundTripTime:s.roundTripTime||0}))(r),s.key?s.encryptedBytes=new Uint8Array(a):s.bytes=new Uint8Array(a),e(null,s)})({segment:i,finishProcessingFn:M,responseType:X.responseType}));O.addEventListener("progress",(({segment:s,progressFn:e})=>b=>{if(!b.target.aborted)return s.stats=We(s.stats,(s=>{const e=s.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return i.bytesReceived=s.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i})(b)),!s.stats.firstBytesReceivedAt&&s.stats.bytesReceived&&(s.stats.firstBytesReceivedAt=Date.now()),e(b,s)})({segment:i,progressFn:n,trackInfoFn:a,timingInfoFn:u,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:_,captionsFn:b,isEndOfTimeline:I,endedTimelineFn:P,dataFn:C})),$.push(O);const ue={};return $.forEach(Se=>{Se.addEventListener("loadend",(({loadendState:s,abortFn:e})=>t=>{t.target.aborted&&e&&!s.calledAbortFn&&(e(),s.calledAbortFn=!0)})({loadendState:ue,abortFn:r}))}),()=>Ro($)},tg=ni("CodecUtils"),Kc=(s,e)=>{const t=e.attributes||{};return s&&s.mediaGroups&&s.mediaGroups.AUDIO&&t.AUDIO&&s.mediaGroups.AUDIO[t.AUDIO]},Mn=function(s){const e={};return s.forEach(({mediaType:t,type:i,details:r})=>{e[t]=e[t]||[],e[t].push(lt(`${i}${r}`))}),Object.keys(e).forEach(function(t){if(e[t].length>1)return tg(`multiple ${t} codecs found as attributes: ${e[t].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(e[t]=null);e[t]=e[t][0]}),e},Qc=function(s){let e=0;return s.audio&&e++,s.video&&e++,e},Dr=function(s,e){const t=e.attributes||{},i=Mn(function(s){const e=s.attributes||{};if(e.CODECS)return xt(e.CODECS)}(e)||[]);if(Kc(s,e)&&!i.audio&&!((s,e)=>{if(!Kc(s,e))return!0;const i=s.mediaGroups.AUDIO[(e.attributes||{}).AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1})(s,e)){const r=Mn(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var r in i){var n=i[r];if(n.default&&n.playlists)return xt(n.playlists[0].attributes.CODECS)}return null}(s,t.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Bn=ni("PlaylistSelector"),Yc=function(s){if(!s||!s.playlist)return;const e=s.playlist;return JSON.stringify({id:e.id,bandwidth:s.bandwidth,width:s.width,height:s.height,codecs:e.attributes&&e.attributes.CODECS||""})},Fn=function(s,e){if(!s)return"";const t=v().getComputedStyle(s);return t?t[e]:""},zs=function(s,e){const t=s.slice();s.sort(function(i,r){const n=e(i,r);return 0===n?t.indexOf(i)-t.indexOf(r):n})},Bo=function(s,e){let t,i;return s.attributes.BANDWIDTH&&(t=s.attributes.BANDWIDTH),t=t||v().Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||v().Number.MAX_VALUE,t-i};let Zc=function(s,e,t,i,r,n){if(!s)return;const a={bandwidth:e,width:t,height:i,limitRenditionByPlayerDimensions:r};let u=s.playlists;Ht.isAudioOnly(s)&&(u=n.getAudioTrackPlaylists_(),a.audioOnly=!0);let h=u.map(O=>{let ue;const Se=O.attributes&&O.attributes.RESOLUTION&&O.attributes.RESOLUTION.width,qe=O.attributes&&O.attributes.RESOLUTION&&O.attributes.RESOLUTION.height;return ue=O.attributes&&O.attributes.BANDWIDTH,ue=ue||v().Number.MAX_VALUE,{bandwidth:ue,width:Se,height:qe,playlist:O}});zs(h,(O,ue)=>O.bandwidth-ue.bandwidth),h=h.filter(O=>!Ht.isIncompatible(O.playlist));let p=h.filter(O=>Ht.isEnabled(O.playlist));p.length||(p=h.filter(O=>!Ht.isDisabled(O.playlist)));const _=p.filter(O=>O.bandwidth*wt.BANDWIDTH_VARIANCE<e);let b=_[_.length-1];const I=_.filter(O=>O.bandwidth===b.bandwidth)[0];if(!1===r){const O=I||p[0]||h[0];if(O&&O.playlist){let ue="sortedPlaylistReps";return I&&(ue="bandwidthBestRep"),p[0]&&(ue="enabledPlaylistReps"),Bn(`choosing ${Yc(O)} using ${ue} with options`,a),O.playlist}return Bn("could not choose a playlist with options",a),null}const P=_.filter(O=>O.width&&O.height);zs(P,(O,ue)=>O.width-ue.width);const C=P.filter(O=>O.width===t&&O.height===i);b=C[C.length-1];const N=C.filter(O=>O.bandwidth===b.bandwidth)[0];let B,$,M,X;if(N||(B=P.filter(O=>O.width>t||O.height>i),$=B.filter(O=>O.width===B[0].width&&O.height===B[0].height),b=$[$.length-1],M=$.filter(O=>O.bandwidth===b.bandwidth)[0]),n.leastPixelDiffSelector){const O=P.map(ue=>(ue.pixelDiff=Math.abs(ue.width-t)+Math.abs(ue.height-i),ue));zs(O,(ue,Se)=>ue.pixelDiff===Se.pixelDiff?Se.bandwidth-ue.bandwidth:ue.pixelDiff-Se.pixelDiff),X=O[0]}const q=X||M||N||I||p[0]||h[0];if(q&&q.playlist){let O="sortedPlaylistReps";return X?O="leastPixelDiffRep":M?O="resolutionPlusOneRep":N?O="resolutionBestRep":I?O="bandwidthBestRep":p[0]&&(O="enabledPlaylistReps"),Bn(`choosing ${Yc(q)} using ${O} with options`,a),q.playlist}return Bn("could not choose a playlist with options",a),null};const Jc=function(){const s=this.useDevicePixelRatio&&v().devicePixelRatio||1;return Zc(this.playlists.main,this.systemBandwidth,parseInt(Fn(this.tech_.el(),"width"),10)*s,parseInt(Fn(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)},fg={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"}
vendor: 4,306 bytes, line 1
1,pg=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),ed=(s,e,t)=>{s.metadataTrack_||(s.metadataTrack_=t.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,j.browser.IS_ANY_SAFARI||(s.metadataTrack_.inBandMetadataTrackDispatchType=e))},Ar=function(s,e,t){let i,r;if(t&&t.cues)for(i=t.cues.length;i--;)r=t.cues[i],r.startTime>=s&&r.endTime<=e&&t.removeCue(r)},id=s=>"number"==typeof s&&isFinite(s),Un=1/60,Ws=s=>{const{startOfSegment:e,duration:t,segment:i,part:r,playlist:{mediaSequence:n,id:a,segments:u=[]},mediaIndex:h,partIndex:p,timeline:_}=s,b=u.length-1;let I="mediaIndex/partIndex increment";s.getMediaInfoForTime?I=`getMediaInfoForTime (${s.getMediaInfoForTime})`:s.isSyncRequest&&(I="getSyncSegmentCandidate (isSyncRequest)"),s.independent&&(I+=` with independent ${s.independent}`);const P="number"==typeof p,C=s.segment.uri?"segment":"pre-segment",N=P?hc({preloadSegment:i})-1:0;return`${C} [${n+h}/${n+b}]`+(P?` part [${p}/${N}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(P?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${e}] duration [${t}] timeline [${_}] selected by [${I}] playlist [${a}]`},sd=s=>`${s}TimingInfo`,rd=({timelineChangeController:s,currentTimeline:e,segmentTimeline:t,loaderType:i,audioDisabled:r})=>{if(e===t)return!1;if("audio"===i){const n=s.lastTimelineChange({type:"main"});return!n||n.to!==t}if("main"===i&&r){const n=s.pendingTimelineChange({type:"audio"});return!(n&&n.to===t)}return!1},nd=({segmentDuration:s,maxDuration:e})=>!!s&&Math.round(s)>e+Si;class Fo extends j.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=ni(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"main"===this.loaderType_&&this.timelineChangeController_.on("pe
1ndingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return(s=>{const e=new Um;e.currentTransmux=null,e.transmuxQueue=[];const t=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,t.call(e)),e.postMessage({action:"init",options:s}),e})({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&v().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){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,v().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&No_reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Lt();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:r}=e;if(i&&t&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=Rn(e);let r=this.initSegments_[i];return t&&!r&&e.bytes&&(this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,t=!1){if(!e)return null;const i=Ic(e);let r=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[i]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const n={resolvedUri:(r||e).resolvedUri};return r&&(n.bytes=r.bytes),n}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const i=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let n=null;if(i&&(i.id?n=i.id:i.uri&&(n=i.uri)),this.logger_(`playlist update [${n} => ${e.id||e.uri}]`),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const u=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!u.parts||!u.parts.length||!u.parts[this.partIndex])){const h=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=h}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(v().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
vendor: 5,725 bytes, line 1
1resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&No_reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=(()=>{}),r=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let n=1;const a=()=>{n--,0===n&&i()};(r||!this.audioDisabled_)&&(n++,this.sourceUpdater_.removeAudio(e,t,a)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=((s,e,t,i)=>{const r=Math.ceil((e-i)*Jr.ONE_SECOND_IN_TS),n=Math.ceil((t-i)*Jr.ONE_SECOND_IN_TS),a=s.slice();let u=s.length;for(;u--&&!(s[u].pts<=n););if(-1===u)return a;let h=u+1;for(;h--&&!(s[h].pts<=r););return h=Math.max(h,0),a.splice(h,u-h+1),a})(this.gopBuffer_,e,t,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,t,a));for(const u in this.inbandTextTracks_)Ar(e,t,this.inbandTextTracks_[u]);Ar(e,t,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&v().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v().setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&v().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=v().setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const r="number"==typeof e&&t.segments[e];return t.endList&&"open"===this.mediaSource_.readyState&&e+1===t.segments.length&&(!r||!r.parts||i+1===r.parts.length)}chooseNextRequest_(){const e=this.buffered_(),t=cc(e)||0,i=xo(e,this.currentTime_()),r=!this.hasPlayed_()&&i>=1,n=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const u={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(u.isSyncRequest)u.mediaIndex=function(s,e,t){e=e||[];const i=[];let r=0;for(let n=0;n<e.length;n++){const a=e[n];if(s===a.timeline&&(i.push(n),r+=a.duration,r>t))return n}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${u.mediaIndex}`);else if(null!==this.mediaIndex){const I=a[this.mediaIndex],P="number"==typeof this.partIndex?this.partIndex:-1;u.startOfSegment=I.end?I.end:t,I.parts&&I.parts[P+1]?(u.mediaIndex=this.mediaIndex,u.partIndex=P+1):u.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:I,startTime:P,partIndex:C}=Ht.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});u.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${t}`:`currentTime ${this.currentTime_()}`,u.mediaIndex=I,u.startOfSegment=P,u.partIndex=C,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${u.mediaIndex} `)}const h=a[u.mediaIndex];let p=h&&"number"==typeof u.partIndex&&h.parts&&h.parts[u.partIndex];if(!h||"number"==typeof u.partIndex&&!p)return null;if("number"!=typeof u.partIndex&&h.parts&&(u.partIndex=0,p=h.parts[0]),!i&&p&&!(this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments)&&!p.independent)if(0===u.partIndex){const I=a[u.mediaIndex-1],P=I.parts&&I.parts.length&&I.parts[I.parts.length-1];P&&P.independent&&(u.mediaIndex-=1,u.partIndex=I.parts.length-1,u.independent="previous segment")}else h.parts[u.partIndex-1].independent&&(u.partIndex-=1,u.independent="previous part");return u.mediaIndex>=a.length-1&&this.mediaSource_&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,u.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(u))}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:r,startOfSegment:n,isSyncRequest:a,partIndex:u,forceTimestampOffset:h,getMediaInfoForTime:p}=e,_=i.segments[r],b="number"==typeof u&&_.parts[u],I={requestId:"segment-loader-"+Math.random(),uri:b&&b.resolvedUri||_.resolvedUri,mediaIndex:r,partIndex:b?u:null,isSyncRequest:a,startOfSegment:n,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:_.timeline,duration:b&&b.duration||_.duration,segment:_,part:b,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:p,independent:t},P=typeof h<"u"?h:this.isPendingTimestampOffset_;I.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:_.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:P});
vendor: 5,138 bytes, line 1
1const C=cc(this.sourceUpdater_.audioBuffered());return"number"==typeof C&&(I.audioAppendStart=C-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(I.gopsToAlignWith=((s,e,t)=>{if(typeof e>"u"||null===e||!s.length)return[];const i=Math.ceil((e-this.timeMapping_+3)*Jr.ONE_SECOND_IN_TS);let r;for(r=0;r<s.length&&!(s[r].pts>i);r++);return s.slice(r)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset())),I}timestampOffsetForSegment_(e){return(({segmentTimeline:s,currentTimeline:e,startOfSegment:t,buffered:i,overrideCheck:r})=>r||s!==e?s<e?t:i.length?i.end(i.length-1):t:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,r=this.pendingSegment_.duration,n=Ht.estimateSegmentRequestTime(r,i,this.playlist_,e.bytesReceived),a=function(s,e,t=1){return((s.length?s.end(s.length-1):0)-e)/t}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(n<=a)return;const u=function(s){const{main:e,currentTime:t,bandwidth:i,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:u,syncController:h}=s,p=e.playlists.filter(C=>!Ht.isIncompatible(C));let _=p.filter(Ht.isEnabled);_.length||(_=p.filter(C=>!Ht.isDisabled(C)));const I=_.filter(Ht.hasAttribute.bind(null,"BANDWIDTH")).map(C=>{const B=h.getSyncPoint(C,r,u,t)?1:2;return{playlist:C,rebufferingImpact:Ht.estimateSegmentRequestTime(n,i,C)*B-a}}),P=I.filter(C=>C.rebufferingImpact<=0);return zs(P,(C,N)=>Bo(N.playlist,C.playlist)),P.length?P[0]:(zs(I,(C,N)=>C.rebufferingImpact-N.rebufferingImpact),I[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!u)return;let _=.5;a<=Si&&(_=1),u.playlist&&u.playlist.uri!==this.playlist_.uri&&!(n-a-u.rebufferingImpact<_)&&(this.bandwidth=u.playlist.attributes.BANDWIDTH*wt.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Ws(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&this.trigger("progress")}handleTrackInfo_(e,t){this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(t)||(function(s,e){if(!s&&!e||!s&&e||s&&!e)return!1;if(s===e)return!0;const t=Object.keys(s).sort(),i=Object.keys(e).sort();if(t.length!==i.length)return!1;for(let r=0;r<t.length;r++){const n=t[r];if(n!==i[r]||s[n]!==e[n])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(e,t,i,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const n=this.pendingSegment_,a=sd(t);n[a]=n[a]||{},n[a][i]=r,this.logger_(`timinginfo: ${t} - ${i} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),n={};t.forEach(a=>{n[a.stream]=n[a.stream]||{startTime:1/0,captions:[],endTime:0};const u=n[a.stream];u.startTime=Math.min(u.startTime,a.startTime+r),u.endTime=Math.max(u.endTime,a.endTime+r),u.captions.push(a)}),Object.keys(n).forEach(a=>{const{startTime:u,endTime:h,captions:p}=n[a],_=this.inbandTextTracks_;this.logger_(`adding cues from ${u} -> ${h} for ${a}`),function(s,e,t){if(!s[t]){e.trigger({type:"usage",name:"vhs-608"});let i=t;/^cc708_/.test(t)&&(i="SERVICE"+t.split("_")[1]);const r=e.textTracks().getTrackById(i);if(r)s[t]=r;else{let a=t,u=t,h=!1;const p=(e.options_.vhs&&e.options_.vhs.captionServices||{})[i];p&&(a=p.label,u=p.language,h=p.default),s[t]=e.addRemoteTextTrack({kind:"captions",id:i,default:h,label:a,language:u},!1).track}}}(_,this.vhs_.tech_,a),Ar(u,h,_[a]),function({inbandTextTracks:s,captionArray:e,timestampOffset:t}){if(!e)return;const i=v().WebKitDataCue||v().VTTCue;e.forEach(r=>{const n=r.stream;r.content?r.content.forEach(a=>{const u=new i(r.startTime+t,r.endTime+t,a.text);u.line=a.line,u.align="left",u.position=a.position,u.positionAlign="line-left",s[n].addCue(u)}):s[n].addCue(new i(r.startTime+t,r.endTime+t,r.text))})}({captionArray:p,inbandTextTracks:_,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||
vendor: 5,631 bytes, line 1
1(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(t=>t())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(t=>t())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&rd({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:r,isMuxed:n}=t;return!(r&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!n&&!e.audioTimingInfo||rd({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[sd(t.type)].start;else{const r=this.getCurrentMediaInfo_(),n="main"===this.loaderType_&&r&&r.hasVideo;let a;n&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});const r=this.chooseNextRequest_();if(r.mediaIndex!==i.mediaIndex||r.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}updateAppendInitSegmentStatus(e,t){"main"===this.loaderType_&&"number"==typeof e.timestampOffset&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:r}){if(i){const n=Rn(i);if(this.activeInitSegmentId_===n)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=n}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},r){const n=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+us(n).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+us(a).join(", "));const u=n.length?n.start(0):0,h=n.length?n.end(n.length-1):0,p=a.length?a.start(0):0,_=a.length?a.end(a.length-1):0;if(h-u<=1&&_-p<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${us(n).join(", ")}, video buffer: ${us(a).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:e,type:t,bytes:i}));const I=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${I}`),this.remove(0,I,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=v().setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},r){if(r){if(22===r.code)return void this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error(`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:r,bytes:n}){if(!n){const a=[r];let u=r.byteLength;i&&(a.unshift(i),u+=i.byteLength),n=(s=>{let t,e=0;
vendor: 11,523 bytes, line 1
1return s.bytes&&(t=new Uint8Array(s.bytes),s.segments.forEach(i=>{t.set(i,e),e+=i.byteLength})),t})({bytes:u,segments:a})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:n},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:n}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,n=`${e}TimingInfo`;r[n]||(r[n]={}),r[n].transmuxerPrependedSeconds=i.prependedContentDuration||0,r[n].transmuxedPresentationStart=i.start.presentation,r[n].transmuxedDecodeStart=i.start.decode,r[n].transmuxedPresentationEnd=i.end.presentation,r[n].transmuxedDecodeEnd=i.end.decode,r[n].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:r}=t;if(!r||!r.byteLength||"audio"===i&&this.audioDisabled_)return;const n=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:n,data:r})}loadSegment_(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(()=>{const t=Re({},e,{forceTimestampOffset:!0});Re(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)})}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),a=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)||null!==this.mediaIndex&&e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_(`Requesting ${Ws(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=eg({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:u,level:h,stream:p})=>{this.logger_(`${Ws(e)} logged from transmuxer stream ${p} as a ${h}: ${u}`)}})}trimBackBuffer_(e){const t=((s,e,t)=>{let i=e-wt.BACK_BUFFER_LENGTH;return s.length&&(i=Math.max(i,s.start(0))),Math.min(e-t,i)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,r={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},n=e.playlist.segments[e.mediaIndex-1];if(n&&n.timeline===t.timeline&&(n.videoTimingInfo?r.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd:n.audioTimingInfo&&(r.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd)),t.key){const a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(t.key),r.key.iv=a}return t.map&&(r.map=this.initSegmentForMap(t.map)),r}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Un?this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${Un}`):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",-102===e.code)return;return this.pause(),-101===e.code?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),r.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=((s,e,t)=>{if(!e.length)return s;if(this.safeAppend_)return e.slice();const i=e[0].pts;let r=0;for(;r<s.length&&!(s[r].pts>=i);r++);return s.slice(0,r).concat(e)})(this.gopBuffer_,i.gopInfo)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){this.mediaSecondsLoaded+="number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:n,useVideoTimingInfo:a,videoTimingInfo:u,audioTimingInfo:h}){if(typeof e<"u")return e;if(!a)return h.start;const p=t.segments[i-1];return 0===i||!p||typeof p.start>"u"||p.end!==r+n?r:u.start}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:r,isMuxed:n}=t,a="main"===this.loaderType_&&r,u=!this.audioDisabled_&&i&&!n;if(e.waitingOnAppends=0,!e.hasAppendedData_)return!e.timingInfo&&"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,u&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),u&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((s,e,t)=>"main"===s&&e&&t?t.hasAudio||t.hasVideo?e.hasVideo&&!t.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.":!e.hasVideo&&t.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.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),r="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;r&&(e.timingInfo.end="number"==typeof r.end?r.end:r.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=((s,e)=>{if("hls"!==e)return null;const t=(s=>{let e=0;return["video","audio"].forEach(function(t){const i=s[`${t}TimingInfo`];if(!i)return;const{start:r,end:n}=i;let a;"bigint"==typeof r||"bigint"==typeof n?a=v().BigInt(n)-v().BigInt(r):"number"==typeof r&&"number"==typeof n&&(a=n-r),typeof a<"u"&&a>e&&(e=a)}),"bigint"==typeof e&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e})({audioTimingInfo:s.audioTimingInfo,videoTimingInfo:s.videoTimingInfo});if(!t)return null;const i=s.playlist.targetDuration,r=nd({segmentDuration:t,maxDuration:2*i}),n=nd({segmentDuration:t,maxDuration:i});return r||n?{severity:r?"warn":"info",message:`Segment with index ${s.mediaIndex} from playlist ${s.playlist.id} has a duration of ${t} when the reported duration is ${s.duration} and the target duration is ${i}. 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})(e,this.sourceType_);if(t&&("warn"===t.severity?j.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${Ws(e)}`);this.logger_(`Appended ${Ws(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"===this.loaderType_&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,r=e.part,n=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,a=r&&r.end&&this.currentTime_()-r.end>3*e.playlist.partTargetDuration;if(n||a)return this.logger_(`bad ${n?"segment":"part"} ${Ws(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
vendor: 5,342 bytes, line 1
1(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<Un)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${Un}`);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,r=t.end;if(!id(i)||!id(r))return;Ar(i,r,this.segmentMetadataTrack_);const n=v().WebKitDataCue||v().VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},h=new n(i,r,JSON.stringify(a));h.value=a,this.segmentMetadataTrack_.addCue(h)}}function Ri(){}const ad=function(s){return"string"!=typeof s?s:s.replace(/./,e=>e.toUpperCase())},Ag=["video","audio"],Uo=(s,e)=>{const t=e[`${s}Buffer`];return t&&t.updating||e.queuePending[s]},Xs=(s,e)=>{if(0===e.queue.length)return;let t=0,i=e.queue[t];if("mediaSource"!==i.type){if("mediaSource"!==s&&e.ready()&&"closed"!==e.mediaSource.readyState&&!Uo(s,e)){if(i.type!==s){if(t=((s,e)=>{for(let t=0;t<e.length;t++){const i=e[t];if("mediaSource"===i.type)return null;if(i.type===s)return t}return null})(s,e.queue),null===t)return;i=e.queue[t]}if(e.queue.splice(t,1),e.queuePending[s]=i,i.action(s,e),!i.doneFn)return e.queuePending[s]=null,void Xs(s,e)}}else!e.updating()&&"closed"!==e.mediaSource.readyState&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),Xs("audio",e),Xs("video",e))},od=(s,e)=>{const t=e[`${s}Buffer`],i=ad(s);t&&(t.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),t.removeEventListener("error",e[`on${i}Error_`]),e.codecs[s]=null,e[`${s}Buffer`]=null)},wi=(s,e)=>s&&e&&-1!==Array.prototype.indexOf.call(s.sourceBuffers,e),Kt_appendBuffer=(s,e,t)=>(i,r)=>{const n=r[`${i}Buffer`];if(wi(r.mediaSource,n)){r.logger_(`Appending segment ${e.mediaIndex}'s ${s.length} bytes to ${i}Buffer`);try{n.appendBuffer(s)}catch(a){r.logger_(`Error with code ${a.code} `+(22===a.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,t(a)}}},Kt_remove=(s,e)=>(t,i)=>{const r=i[`${t}Buffer`];if(wi(i.mediaSource,r)){i.logger_(`Removing ${s} to ${e} from ${t}Buffer`);try{r.remove(s,e)}catch{i.logger_(`Remove ${s} to ${e} from ${t}Buffer failed`)}}},Kt_timestampOffset=s=>(e,t)=>{const i=t[`${e}Buffer`];wi(t.mediaSource,i)&&(t.logger_(`Setting ${e}timestampOffset to ${s}`),i.timestampOffset=s)},Kt_callback=s=>(e,t)=>{s()},Kt_endOfStream=s=>e=>{if("open"===e.mediaSource.readyState){e.logger_(`Calling mediaSource endOfStream(${s||""})`);try{e.mediaSource.endOfStream(s)}catch(t){j.log.warn("Failed to call media source endOfStream",t)}}},Kt_duration=s=>e=>{e.logger_(`Setting mediaSource duration to ${s}`);try{e.mediaSource.duration=s}catch(t){j.log.warn("Failed to set media source duration",t)}},Kt_addSourceBuffer=(s,e)=>t=>{const i=ad(s),r=Ze(e);t.logger_(`Adding ${s}Buffer with codec ${e} to mediaSource`);const n=t.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",t[`on${i}UpdateEnd_`]),n.addEventListener("error",t[`on${i}Error_`]),t.codecs[s]=e,t[`${s}Buffer`]=n},Kt_removeSourceBuffer=s=>e=>{const t=e[`${s}Buffer`];if(od(s,e),wi(e.mediaSource,t)){e.logger_(`Removing ${s}Buffer with codec ${e.codecs[s]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(t)}catch(i){j.log.warn(`Failed to removeSourceBuffer ${s}Buffer`,i)}}},Kt_changeType=s=>(e,t)=>{const i=t[`${e}Buffer`],r=Ze(s);wi(t.mediaSource,i)&&t.codecs[e]!==s&&(t.logger_(`changing ${e}Buffer codec from ${t.codecs[e]} to ${s}`),i.changeType(r),t.codecs[e]=s)},Qt=({type:s,sourceUpdater:e,action:t,doneFn:i,name:r})=>{e.queue.push({type:s,action:t,doneFn:i,name:r}),Xs(s,e)},ud=(s,e)=>t=>{if(e.queuePending[s]){const i=e.queuePending[s].doneFn;e.queuePending[s]=null,i&&i(e[`${s}Error_`])}Xs(s,e)};class ld extends j.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Xs("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ni("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=ud("video",this),this.onAudioUpdateEnd_=ud("audio",this),this.onVideoError_=t=>{this.videoError_=t},this.onAudioError_=t=>{this.audioError_=t},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 4,543 bytes, line 1
1triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Qt({type:"mediaSource",sourceUpdater:this,action:Kt_addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){Qt({type:e,sourceUpdater:this,action:(s,e)=>{if("open"!==e.mediaSource.readyState)return;const t=e[`${s}Buffer`];if(wi(e.mediaSource,t)){e.logger_(`calling abort on ${s}Buffer`);try{t.abort()}catch(i){j.log.warn(`Failed to abort on ${s}Buffer`,i)}}},name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Qt({type:"mediaSource",sourceUpdater:this,action:Kt_removeSourceBuffer(e),name:"removeSourceBuffer"}):j.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!j.browser.IS_FIREFOX&&v().MediaSource&&v().MediaSource.prototype&&"function"==typeof v().MediaSource.prototype.removeSourceBuffer}static canChangeType(){return v().SourceBuffer&&v().SourceBuffer.prototype&&"function"==typeof v().SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Qt({type:e,sourceUpdater:this,action:Kt_changeType(t),name:"changeType"}):j.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)})}appendBuffer(e,t){const{segmentInfo:i,type:r,bytes:n}=e;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${n.length} until video append`);if(Qt({type:r,sourceUpdater:this,action:Kt_appendBuffer(n,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const u=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${u.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,u.forEach(h=>{this.appendBuffer.apply(this,h)})}}audioBuffered(){return wi(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Lt()}videoBuffered(){return wi(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Lt()}buffered(){const e=wi(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=wi(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(s,e){let t=null,i=null,r=0;const n=[],a=[];if(!(s&&s.length&&e&&e.length))return Lt();let u=s.length;for(;u--;)n.push({time:s.start(u),type:"start"}),n.push({time:s.end(u),type:"end"});for(u=e.length;u--;)n.push({time:e.start(u),type:"start"}),n.push({time:e.end(u),type:"end"});for(n.sort(function(h,p){return h.time-p.time}),u=0;u<n.length;u++)"start"===n[u].type?(r++,2===r&&(t=n[u].time)):"end"===n[u].type&&(r--,1===r&&(i=n[u].time)),null!==t&&null!==i&&(a.push([t,i]),t=null,i=null);return Lt(a)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=Ri){Qt({type:"mediaSource",sourceUpdater:this,action:Kt_duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=Ri){"string"!=typeof e&&(e=void 0),Qt({type:"mediaSource",sourceUpdater:this,action:Kt_endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=Ri){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Qt({type:"audio",sourceUpdater:this,action:Kt_remove(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=Ri){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Qt({type:"video",sourceUpdater:this,action:Kt_remove(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!Uo("audio",this)&&!Uo("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Qt({type:"audio",sourceUpdater:this,action:Kt_timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Qt({type:"video",sourceUpdater:this,action:Kt_timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Qt({type:"audio",sourceUpdater:this,action:Kt_callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Qt({type:"video",sourceUpdater:this,action:Kt_callback(e),name:"callback"})}
vendor: 4,916 bytes, line 1
1dispose(){this.trigger("dispose"),Ag.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>od(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const cd=s=>decodeURIComponent(escape(String.fromCharCode.apply(null,s))),dd=new Uint8Array("\n\n".split("").map(s=>s.charCodeAt(0)));class Pg extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Lg extends Fo{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Lt();const e=this.subtitlesTrack_.cues;return Lt([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=Rn(e);let r=this.initSegments_[i];if(t&&!r&&e.bytes){const a=new Uint8Array(dd.byteLength+e.bytes.byteLength);a.set(e.bytes),a.set(dd,e.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){Ar(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline))return this.syncController_.one("timestampoffset",()=>{this.state="READY",this.paused()||this.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return-101===e.code&&this.handleTimeout_(),-102===e.code?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const n=r.segment;if(n.map&&(n.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof v().WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));n.requested=!0;try{this.parseVTTCues_(r)}catch(a){return void this.stopForError({message:a.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+=n.duration,r.cues.forEach(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new(v().VTTCue)(a.startTime,a.endTime,a.text):a)}),function(s){const e=s.cues;if(!e)return;const t={};for(let i=e.length-1;i>=0;i--){const r=e[i],n=`${r.startTime}-${r.endTime}-${r.text}`;t[n]?s.removeCue(r):t[n]=r}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,i=!1;if("function"!=typeof v().WebVTT)throw new Pg;"function"==typeof v().TextDecoder?t=new(v().TextDecoder)("utf8"):(t=v().WebVTT.StringDecoder(),i=!0);const r=new(v().WebVTT.Parser)(v(),v().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=a=>{e.timestampmap=a},r.onparsingerror=a=>{j.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=cd(a)),r.parse(a)}let n=e.bytes;i&&(n=cd(n)),r.parse(n),r.flush()}updateTimeMapping_(e,t,i){const r=e.segment;if(!t)return;if(!e.cues.length)return void(r.empty=!0);const n=e.timestampmap,a=n.MPEGTS/Jr.ONE_SECOND_IN_TS-n.LOCAL+t.mapping;
1e.cues.forEach(u=>{u.startTime+=a,u.endTime+=a}),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(e.cues[0].startTime,e.cues[e.cues.length-1].startTime-r.duration)})}}const Og=function(s,e){const t=s.cues;for(let i=0;i<t.length;i++){const r=t[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},jo=[{name:"VOD",run:(s,e,t,i,r)=>t!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(s,e,t,i,r,n)=>{if(!n)return null;const a=s.getMediaSequenceMap(n);if(!a||0===a.size||void 0===e.mediaSequence||!Array.isArray(e.segments)||!e.segments.length)return null;let u=e.mediaSequence,h=0;for(const p of e.segments){const _=a.get(u);if(!_)break;if(r>=_.start&&r<_.end){if(Array.isArray(p.parts)&&p.parts.length){let b=_.start,I=0;for(const P of p.parts){const N=b+P.duration;if(r>=b&&r<N)return{time:_.start,segmentIndex:h,partIndex:I};I++,b=N}}return{time:_.start,segmentIndex:h,partIndex:null}}h++,u++}return null}},{name:"ProgramDateTime",run:(s,e,t,i,r)=>{if(!Object.keys(s.timelineToDatetimeMappings).length)return null;let n=null,a=null;const u=Eo(e);r=r||0;for(let h=0;h<u.length;h++){const _=u[e.endList||0===r?h:u.length-(h+1)],b=_.segment,I=s.timelineToDatetimeMappings[b.timeline];if(!I||!b.dateTimeObject)continue;let C=b.dateTimeObject.getTime()/1e3+I;if(b.parts&&"number"==typeof _.partIndex)for(let B=0;B<_.partIndex;B++)C+=b.parts[B].duration;const N=Math.abs(r-C);if(null!==a&&(0===N||a<N))break;a=N,n={time:C,segmentIndex:_.segmentIndex,partIndex:_.partIndex}}return n}},{name:"Segment",run:(s,e,t,i,r)=>{let n=null,a=null;r=r||0;const u=Eo(e);for(let h=0;h<u.length;h++){const _=u[e.endList||0===r?h:u.length-(h+1)],b=_.segment,I=_.part&&_.part.start||b&&b.start;if(b.timeline===i&&typeof I<"u"){const P=Math.abs(r-I);if(null!==a&&a<P)break;(!n||null===a||a>=P)&&(a=P,n={time:I,segmentIndex:_.segmentIndex,partIndex:_.partIndex})}}return n}},{name:"Discontinuity",run:(s,e,t,i,r)=>{let n=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let u=0;u<e.discontinuityStarts.length;u++){const h=e.discontinuityStarts[u],_=s.discontinuities[e.discontinuitySequence+u+1];if(_){const b=Math.abs(r-_.time);if(null!==a&&a<b)break;(!n||null===a||a>=b)&&(a=b,n={time:_.time,segmentIndex:h,partIndex:null})}}}return n}},{name:"Playlist",run:(s,e,t,i,r)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class Mg extends j.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_=new Map,this.logger_=ni("SyncController")}getMediaSequenceMap(e){return this.mediaSequenceStorage_.get(e)}updateMediaSequenceMap(e,t,i){if(void 0===e.mediaSequence||!Array.isArray(e.segments)||!e.segments.length)return;const r=this.getMediaSequenceMap(i),n=new Map;let u,a=e.mediaSequence;r?r.has(e.mediaSequence)?u=r.get(e.mediaSequence).start:(this.logger_(`MediaSequence sync for ${i} segment loader - received a gap between playlists.\nFallback base time to: ${t}.\nReceived media sequence: ${a}.\nCurrent map: `,r),u=t):u=0,this.logger_(`MediaSequence sync for ${i} segment loader.\nReceived media sequence: ${a}.\nbase time is ${u}\nCurrent map: `,r),e.segments.forEach(h=>{const _=u+h.duration;n.set(a,{start:u,end:_}),a++,u=_}),this.mediaSequenceStorage_.set(i,n)}getSyncPoint(e,t,i,r,n){if(t!==1/0)return jo.find(({name:h})=>"VOD"===h).run(this,e,t);const a=this.runStrategies_(e,t,i,r,n);if(!a.length)return null;for(const u of a){const{syncPoint:h,strategy:p}=u,{segmentIndex:_,time:b}=h;if(_<0)continue;const P=b,C=P+e.segments[_].duration;if(this.logger_(`Strategy: ${p}. Current time: ${r}. selected segment: ${_}. Time: [${P} -> ${C}]}`),r>=P&&r<C)return this.logger_("Found sync point with exact match: ",h),h}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0,"main");if(!i.length)return null;const r=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Er({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.
vendor: 4,419 bytes, line 1
1segmentIndex,endIndex:0}))}runStrategies_(e,t,i,r,n){const a=[];for(let u=0;u<jo.length;u++){const h=jo[u],p=h.run(this,e,t,i,r,n);p&&(p.strategy=h.name,a.push({strategy:h.name,syncPoint:p}))}return a}selectSyncPoint_(e,t){let i=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),n=e[0].strategy;for(let a=1;a<e.length;a++){const u=Math.abs(e[a].syncPoint[t.key]-t.value);u<r&&(r=u,i=e[a].syncPoint,n=e[a].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${n}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+("number"==typeof i.partIndex?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>86400)j.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let r=i-1;r>=0;r--){const n=e.segments[r];if(n&&typeof n.start<"u"){t.syncInfo={mediaSequence:e.mediaSequence+r,time:n.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const n=r.dateTimeObject;r.discontinuity&&t&&n&&(this.timelineToDatetimeMappings[r.timeline]=-n.getTime()/1e3)}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const r=e.segment,n=e.part;let u,h,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),u=e.startOfSegment,h=t.end+a.mapping;else{if(!a)return!1;u=t.start+a.mapping,h=t.end+a.mapping}return n&&(n.start=u,n.end=h),(!r.start||u<r.start)&&(r.start=u),r.end=h,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let r=0;r<t.discontinuityStarts.length;r++){const n=t.discontinuityStarts[r],a=t.discontinuitySequence+r+1,u=n-e.mediaIndex,h=Math.abs(u);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>h){let p;p=u<0?i.start-Er({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:n}):i.end+Er({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:n}),this.discontinuities[a]={time:p,accuracy:h}}}}dispose(){this.trigger("dispose"),this.off()}}class Bg extends j.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){return"number"==typeof t&&"number"==typeof i&&(this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Fg=Fc(Uc(function(){var s=function(){function N(){this.listeners={}}var B=N.prototype;return B.on=function(M,X){this.listeners[M]||(this.listeners[M]=[]),this.listeners[M].push(X)},B.off=function(M,X){if(!this.listeners[M])return!1;var q=this.listeners[M].indexOf(X);return this.listeners[M]=this.listeners[M].slice(0),this.listeners[M].splice(q,1),q>-1},B.trigger=function(M){var X=this.listeners[M];if(X)if(2===arguments.length)for(var q=X.length,O=0;O<q;++O)X[O].call(this,arguments[1]);
vendor: 4,272 bytes, line 1
1else for(var ue=Array.prototype.slice.call(arguments,1),Se=X.length,qe=0;qe<Se;++qe)X[qe].apply(this,ue)},B.dispose=function(){this.listeners={}},B.pipe=function(M){this.on("data",function(X){M.push(X)})},N}();let i=null;class r{constructor(B){let $,M,X;i||(i=function(){const N=[[[],[],[],[],[]],[[],[],[],[],[]]],B=N[0],$=N[1],M=B[4],X=$[4];let q,O,ue;const Se=[],qe=[];let He,mt,Ot,gt,De,Je;for(q=0;q<256;q++)qe[(Se[q]=q<<1^283*(q>>7))^q]=q;for(O=ue=0;!M[O];O^=He||1,ue=qe[ue]||1)for(gt=ue^ue<<1^ue<<2^ue<<3^ue<<4,gt=gt>>8^255&gt^99,M[O]=gt,X[gt]=O,Ot=Se[mt=Se[He=Se[O]]],Je=16843009*Ot^65537*mt^257*He^16843008*O,De=257*Se[gt]^16843008*gt,q=0;q<4;q++)B[q][O]=De=De<<24^De>>>8,$[q][gt]=Je=Je<<24^Je>>>8;for(q=0;q<5;q++)B[q]=B[q].slice(0),$[q]=$[q].slice(0);return N}()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];const q=this._tables[0][4],O=this._tables[1],ue=B.length;let Se=1;if(4!==ue&&6!==ue&&8!==ue)throw new Error("Invalid aes key size");const qe=B.slice(0),He=[];for(this._key=[qe,He],$=ue;$<4*ue+28;$++)X=qe[$-1],($%ue==0||8===ue&&$%ue==4)&&(X=q[X>>>24]<<24^q[X>>16&255]<<16^q[X>>8&255]<<8^q[255&X],$%ue==0&&(X=X<<8^X>>>24^Se<<24,Se=Se<<1^283*(Se>>7))),qe[$]=qe[$-ue]^X;for(M=0;$;M++,$--)X=qe[3&M?$:$-4],He[M]=$<=4||M<4?X:O[0][q[X>>>24]]^O[1][q[X>>16&255]]^O[2][q[X>>8&255]]^O[3][q[255&X]]}decrypt(B,$,M,X,q,O){const ue=this._key[1];let Ot,gt,De,Se=B^ue[0],qe=X^ue[1],He=M^ue[2],mt=$^ue[3];const Je=ue.length/4-2;let Di,Bi=4;const Yi=this._tables[1],ls=Yi[0],cs=Yi[1],ds=Yi[2],hs=Yi[3],fs=Yi[4];for(Di=0;Di<Je;Di++)Ot=ls[Se>>>24]^cs[qe>>16&255]^ds[He>>8&255]^hs[255&mt]^ue[Bi],gt=ls[qe>>>24]^cs[He>>16&255]^ds[mt>>8&255]^hs[255&Se]^ue[Bi+1],De=ls[He>>>24]^cs[mt>>16&255]^ds[Se>>8&255]^hs[255&qe]^ue[Bi+2],mt=ls[mt>>>24]^cs[Se>>16&255]^ds[qe>>8&255]^hs[255&He]^ue[Bi+3],Bi+=4,Se=Ot,qe=gt,He=De;for(Di=0;Di<4;Di++)q[(3&-Di)+O]=fs[Se>>>24]<<24^fs[qe>>16&255]<<16^fs[He>>8&255]<<8^fs[255&mt]^ue[Bi++],Ot=Se,Se=qe,qe=He,He=mt,mt=Ot}}class n extends s{constructor(){super(s),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null}push(B){this.jobs.push(B),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(N){return N<<24|(65280&N)<<8|(16711680&N)>>8|N>>>24};class h{constructor(B,$,M,X){const q=h.STEP,O=new Int32Array(B.buffer),ue=new Uint8Array(B.byteLength);let Se=0;for(this.asyncStream_=new n,this.asyncStream_.push(this.decryptChunk_(O.subarray(Se,Se+q),$,M,ue)),Se=q;Se<O.length;Se+=q)M=new Uint32Array([a(O[Se-4]),a(O[Se-3]),a(O[Se-2]),a(O[Se-1])]),this.asyncStream_.push(this.decryptChunk_(O.subarray(Se,Se+q),$,M,ue));this.asyncStream_.push(function(){X(null,function e(N){return N.subarray(0,N.byteLength-N[N.byteLength-1])}(ue))})}static get STEP(){return 32e3}decryptChunk_(B,$,M,X){return function(){const q=function(N,B,$){const M=new Int32Array(N.buffer,N.byteOffset,N.byteLength>>2),X=new r(Array.prototype.slice.call(B)),q=new Uint8Array(N.byteLength),O=new Int32Array(q.buffer);let ue,Se,qe,He,mt,Ot,gt,De,Je;for(ue=$[0],Se=$[1],qe=$[2],He=$[3],Je=0;Je<M.length;Je+=4)mt=a(M[Je]),Ot=a(M[Je+1]),gt=a(M[Je+2]),De=a(M[Je+3]),X.decrypt(mt,Ot,gt,De,O,Je),O[Je]=a(O[Je]^ue),O[Je+1]=a(O[Je+1]^Se),O[Je+2]=a(O[Je+2]^qe),O[Je+3]=a(O[Je+3]^He),ue=mt,Se=Ot,qe=gt,He=De;return q}(B,$,M);X.set(q,B.byteOffset)}}}var N,p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},P=(typeof window<"u"?window:typeof p<"u"?p:typeof self<"u"?self:{}).BigInt||Number;P("0x1"),P("0x100"),P("0x10000"),P("0x1000000"),P("0x100000000"),P("0x10000000000"),P("0x1000000000000"),P("0x100000000000000"),P("0x10000000000000000"),N=new Uint16Array([65484]),new Uint8Array(N.buffer,N.byteOffset,N.byteLength);self.onmessage=function(N){const B=N.data,$=new Uint8Array(B.encrypted.bytes,B.encrypted.byteOffset,B.encrypted.byteLength),M=new Uint32Array(B.key.bytes,B.key.byteOffset,B.key.byteLength/4),X=new Uint32Array(B.iv.bytes,B.iv.byteOffset,B.iv.byteLength/4);new h($,M,X,function(q,O){self.postMessage(function(N){const B={};
vendor: 25,916 bytes, line 1
1return Object.keys(N).forEach($=>{const M=N[$];B[$]=function(B){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(B):B&&B.buffer instanceof ArrayBuffer}(M)?{bytes:M.buffer,byteOffset:M.byteOffset,byteLength:M.byteLength}:M}),B}({source:B.source,decrypted:O}),[O.buffer])})}}));var Ug=Bc(Fg);const jg=s=>{let e=s.default?"main":"alternative";return s.characteristics&&s.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},hd=(s,e)=>{s.abort(),s.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Vo=(s,e)=>{e.activePlaylistLoader=s,s.load()},jn={AUDIO:(s,e)=>()=>{const{mediaTypes:{[s]:t},excludePlaylist:i}=e,r=t.activeTrack(),n=t.activeGroup(),a=(n.filter(h=>h.default)[0]||n[0]).id,u=t.tracks[a];if(r!==u){j.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const h in t.tracks)t.tracks[h].enabled=t.tracks[h]===u;t.onTrackChanged()}else i({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(s,e)=>()=>{const{mediaTypes:{[s]:t}}=e;j.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=t.activeTrack();i&&(i.mode="disabled"),t.onTrackChanged()}},fd={AUDIO:(s,e,t)=>{if(!e)return;const{tech:i,requestOptions:r,segmentLoaders:{[s]:n}}=t;e.on("loadedmetadata",()=>{const a=e.media();n.playlist(a,r),(!i.paused()||a.endList&&"none"!==i.preload())&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",jn[s](s,t))},SUBTITLES:(s,e,t)=>{const{tech:i,requestOptions:r,segmentLoaders:{[s]:n},mediaTypes:{[s]:a}}=t;e.on("loadedmetadata",()=>{const u=e.media();n.playlist(u,r),n.track(a.activeTrack()),(!i.paused()||u.endList&&"none"!==i.preload())&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",jn[s](s,t))}},Hg={AUDIO:(s,e)=>{const{vhs:t,sourceType:i,segmentLoaders:{[s]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[s]:{groups:u,tracks:h,logger_:p}},mainPlaylistLoader:_}=e,b=Cr(_.main);(!a[s]||0===Object.keys(a[s]).length)&&(a[s]={main:{default:{default:!0}}},b&&(a[s].main.default.playlists=_.main.playlists));for(const I in a[s]){u[I]||(u[I]=[]);for(const P in a[s][I]){let N,C=a[s][I][P];if(b?(p(`AUDIO group '${I}' label '${P}' is a main playlist`),C.isMainPlaylist=!0,N=null):N="vhs-json"===i&&C.playlists?new Gs(C.playlists[0],t,n):C.resolvedUri?new Gs(C.resolvedUri,t,n):C.playlists&&"dash"===i?new Oo(C.playlists[0],t,n,_):null,C=We({id:P,playlistLoader:N},C),fd[s](s,C.playlistLoader,e),u[I].push(C),typeof h[P]>"u"){const B=new j.AudioTrack({id:P,kind:jg(C),enabled:!1,language:C.language,default:C.default,label:P});h[P]=B}}}r.on("error",jn[s](s,e))},SUBTITLES:(s,e)=>{const{tech:t,vhs:i,sourceType:r,segmentLoaders:{[s]:n},requestOptions:a,main:{mediaGroups:u},mediaTypes:{[s]:{groups:h,tracks:p}},mainPlaylistLoader:_}=e;for(const b in u[s]){h[b]||(h[b]=[]);for(const I in u[s][b]){if(!i.options_.useForcedSubtitles&&u[s][b][I].forced)continue;let C,P=u[s][b][I];if("hls"===r)C=new Gs(P.resolvedUri,i,a);else if("dash"===r){if(!P.playlists.filter(B=>B.excludeUntil!==1/0).length)return;C=new Oo(P.playlists[0],i,a,_)}else"vhs-json"===r&&(C=new Gs(P.playlists?P.playlists[0]:P.resolvedUri,i,a));if(P=We({id:I,playlistLoader:C},P),fd[s](s,P.playlistLoader,e),h[b].push(P),typeof p[I]>"u"){const N=t.addRemoteTextTrack({id:I,kind:"subtitles",default:P.default&&P.autoselect,language:P.language,label:I},!1).track;p[I]=N}}}n.on("error",jn[s](s,e))},"CLOSED-CAPTIONS":(s,e)=>{const{tech:t,main:{mediaGroups:i},mediaTypes:{[s]:{groups:r,tracks:n}}}=e;for(const a in i[s]){r[a]||(r[a]=[]);for(const u in i[s][a]){const h=i[s][a][u];if(!/^(?:CC|SERVICE)/.test(h.instreamId))continue;const p=t.options_.vhs&&t.options_.vhs.captionServices||{};let _={label:u,language:h.language,instreamId:h.instreamId,default:h.default&&h.autoselect};if(p[_.instreamId]&&(_=We(_,p[_.instreamId])),void 0===_.default&&delete _.default,r[a].push(We({id:u},h)),typeof n[u]>"u"){const b=t.addRemoteTextTrack({id:_.instreamId,kind:"captions",default:_.default,language:_.language,label:_.label},!1).track;n[u]=b}}}}},pd=(s,e)=>{for(let t=0;t<s.length;t++)if(Do(e,s[t])||s[t].playlists&&pd(s[t].playlists,e))return!0;return!1},zg={AUDIO:(s,e)=>()=>{const{mediaTypes:{[s]:{tracks:t}}}=e;for(const i in t)if(t[i].enabled)return t[i];return null},SUBTITLES:(s,e)=>()=>{const{mediaTypes:{[s]:{tracks:t}}}=e;for(const i in t)if("showing"===t[i].mode||"hidden"===t[i].mode)return t[i];return null}};class md{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=qt(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(t=>[t.ID,t])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Qg extends j.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new md,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ni("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=qt(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:i},(r,n)=>{if(r){if(410===n.status)return this.logger_(`manifest request 410 ${r}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===n.status){const u=n.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${r}.`),this.logger_(`content steering will retry in ${u} seconds.`),void this.startTTLTimeout_(parseInt(u,10))}return this.logger_(`manifest failed to load ${r}.`),void this.startTTLTimeout_()}const a=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(a),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new(v().URL)(e),i=new(v().URL)(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(v().atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new(v().URL)(e),i=this.getPathway(),r=this.getBandwidth_();return i&&t.searchParams.set(`_${this.manifestType_}_pathway`,i),r&&t.searchParams.set(`_${this.manifestType_}_throughput`,r),t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const i=(r=>{for(const n of r)if(this.availablePathways_.has(n))return n;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(e);if(!t(r))return r}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=v().setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){v().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new md}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(qt(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let Mi;const Zg=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Jg=function(s){return this.audioSegmentLoader_[s]+this.mainSegmentLoader_[s]};class t0 extends j.EventTarget{constructor(e){super();const{src:t,withCredentials:i,tech:r,bandwidth:n,externVhs:a,useCueTags:u,playlistExclusionDuration:h,enableLowInitialPlaylist:p,sourceType:_,cacheEncryptionKeys:b,bufferBasedABR:I,leastPixelDiffSelector:P,captionServices:C}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:N}=e;(null===N||typeof N>"u")&&(N=1/0),Mi=a,this.bufferBasedABR=!!I,this.leastPixelDiffSelector=!!P,this.withCredentials=i,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=_,this.useCueTags_=u,this.playlistExclusionDuration=h,this.maxPlaylistRetries=N,this.enableLowInitialPlaylist=p,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:N,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const s={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{s[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ri,activeTrack:Ri,getActiveGroup:Ri,onGroupChanged:Ri,onTrackChanged:Ri,lastTrack_:null,logger_:ni(`MediaGroups[${e}]`)}}),s})(),this.mediaSource=new(v().MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Lt(),this.hasPlayed_=!1,this.syncController_=new Mg(e),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Ug,this.sourceUpdater_=new ld(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Bg,this.keyStatusMap_=new Map;const B={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:C,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:b,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new Oo(t,this.vhs_,We(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Gs(t,this.vhs_,We(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new Fo(We(B,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new Fo(We(B,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Lg(We(B,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((X,q)=>{function O(){r.off("vttjserror",ue),X()}function ue(){r.off("vttjsloaded",O),q()}r.one("vttjsloaded",O),r.one("vttjserror",ue),r.addWebVttScript_()})}),e),this.contentSteeringController_=new Qg(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Zg.forEach(X=>{this[X+"_"]=Jg.bind(this,X)}),this.logger_=ni("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const M="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(M,()=>{const X=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-X,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const r=this.media(),n=r&&(r.id||r.uri),a=e&&(e.id||e.uri);n&&n!==a&&(this.logger_(`switch media ${n} -> ${a} from ${t}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,r=this.contentSteeringController_.getPathway();if(i&&r){const a=(i.length?i[0].playlists:i.playlists).filter(u=>u.attributes.serviceLocation===r);a.length&&this.mediaTypes_[e].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=v().setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(v().clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,r=Object.keys(i);let n;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{const u=i.main||r.length&&i[r[0]];for(const h in u)if(u[h].default){n={label:h};break}}if(!n)return t;const a=[];for(const u in i)if(i[u][n.label]){const h=i[u][n.label];if(h.playlists&&h.playlists.length)a.push.apply(a,h.playlists);else if(h.uri)a.push(h);else if(e.playlists.length)for(let p=0;p<e.playlists.length;p++){const _=e.playlists[p];_.attributes&&_.attributes.AUDIO&&_.attributes.AUDIO===u&&a.push(_)}}return a.length?a:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;this.requestOptions_.timeout=wo(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?0:t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),(s=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(p=>{Hg[p](p,s)});const{mediaTypes:e,mainPlaylistLoader:t,tech:i,vhs:r,segmentLoaders:{AUDIO:n,main:a}}=s;["AUDIO","SUBTITLES"].forEach(p=>{e[p].activeGroup=((s,e)=>t=>{const{mainPlaylistLoader:i,mediaTypes:{[s]:{groups:r}}}=e,n=i.media();if(!n)return null;let a=null;n.attributes[s]&&(a=r[n.attributes[s]]);const u=Object.keys(r);if(!a)if("AUDIO"===s&&u.length>1&&Cr(e.main))for(let h=0;h<u.length;h++){const p=r[u[h]];if(pd(p,n)){a=p;break}}else r.main?a=r.main:1===u.length&&(a=r[u[0]]);return typeof t>"u"?a:null!==t&&a&&a.filter(h=>h.id===t.id)[0]||null})(p,s),e[p].activeTrack=zg[p](p,s),e[p].onGroupChanged=((s,e)=>()=>{const{segmentLoaders:{[s]:t,main:i},mediaTypes:{[s]:r}}=e,n=r.activeTrack(),a=r.getActiveGroup(),u=r.activePlaylistLoader,h=r.lastGroup_;if((!a||!h||a.id!==h.id)&&(r.lastGroup_=a,r.lastTrack_=n,hd(t,r),a&&!a.isMainPlaylist)){if(!a.playlistLoader)return void(u&&i.resetEverything());t.resyncLoader(),Vo(a.playlistLoader,r)}})(p,s),e[p].onGroupChanging=((s,e)=>()=>{const{segmentLoaders:{[s]:t},mediaTypes:{[s]:i}}=e;i.lastGroup_=null,t.abort(),t.pause()})(p,s),e[p].onTrackChanged=((s,e)=>()=>{const{mainPlaylistLoader:t,segmentLoaders:{[s]:i,main:r},mediaTypes:{[s]:n}}=e,a=n.activeTrack(),u=n.getActiveGroup(),h=n.activePlaylistLoader,p=n.lastTrack_;if((!p||!a||p.id!==a.id)&&(n.lastGroup_=u,n.lastTrack_=a,hd(i,n),u)){if(u.isMainPlaylist){if(!a||!p||a.id===p.id)return;const _=e.vhs.playlistController_,b=_.selectPlaylist();if(_.media()===b)return;return n.logger_(`track change. Switching main audio from ${p.id} to ${a.id}`),t.pause(),r.resetEverything(),void _.fastQualityChange_(b)}if("AUDIO"===s){if(!u.playlistLoader)return r.setAudio(!0),void r.resetEverything();i.setAudio(!0),r.setAudio(!1)}if(h===u.playlistLoader)return void Vo(u.playlistLoader,n);i.track&&i.track(a),i.resetEverything(),Vo(u.playlistLoader,n)}})(p,s),e[p].getActiveGroup=((s,{mediaTypes:e})=>()=>{const t=e[s].activeTrack();return t?e[s].activeGroup(t):null})(p,s)});const u=e.AUDIO.activeGroup();if(u){const p=(u.filter(b=>b.default)[0]||u[0]).id;e.AUDIO.tracks[p].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}t.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(p=>e[p].onGroupChanged())}),t.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(p=>e[p].onGroupChanging())});const h=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",h),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",h),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const p in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[p])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t)||(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;this.requestOptions_.timeout=wo(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?0:t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let r=!0;const n=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const u in i.AUDIO[a])i.AUDIO[a][u].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Mi.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),n.length&&Object.keys(i.AUDIO[n[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),r=this.bufferLowWaterLine(),n=this.bufferHighWaterLine();return function({currentPlaylist:s,buffered:e,currentTime:t,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:u,log:h}){if(!i)return j.log.warn("We received no playlist to switch to. Please check your stream."),!1;const p=`allowing switch ${s&&s.id||"null"} -> ${i.id}`;if(!s)return h(`${p} as current playlist is not set`),!0;if(i.id===s.id)return!1;const _=!!$s(e,t).length;if(!s.endList)return _||"number"!=typeof s.partTargetDuration?(h(`${p} as current playlist is live`),!0):(h(`not ${p} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const b=xo(e,t),I=u?wt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:wt.MAX_BUFFER_LOW_WATER_LINE;if(a<I)return h(`${p} as duration < max low water line (${a} < ${I})`),!0;const P=i.attributes.BANDWIDTH,C=s.attributes.BANDWIDTH;if(P<C&&(!u||b<n)){let N=`${p} as next bandwidth < current bandwidth (${P} < ${C})`;return u&&(N+=` and forwardBuffer < bufferHighWaterLine (${b} < ${n})`),h(N),!0}if((!u||P>C)&&b>=r){let N=`${p} as forwardBuffer >= bufferLowWaterLine (${b} >= ${r})`;return u&&(N+=` and next bandwidth > current bandwidth (${P} > ${C})`),h(N),!0}return h(`not ${p} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const t=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
vendor: 5,908 bytes, line 1
1{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",t=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const t=this.getCodecsOrExclude_();t&&this.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let r=i;if(e.start){const n=e.start.timeOffset;r=n<0?Math.max(i+n,t.start(0)):Math.min(i,n)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&"function"==typeof e.then&&e.then(null,t=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(null===i)return!1;const r=Mi.Playlist.playlistEnd(e,i),n=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-n<=Ei;const u=a.end(a.length-1);return u-n<=Ei&&r-u<=Ei}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,n=r.filter(Nn),a=1===n.length&&n[0]===e;if(1===r.length&&i!==1/0)return j.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const C=this.pathwayAttribute_(e),N=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(C),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(C)},N)}let P=!1;r.forEach(C=>{if(C===e)return;const N=C.excludeUntil;typeof N<"u"&&N!==1/0&&(P=!0,delete C.excludeUntil)}),P&&(j.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let u;u=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=u,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const h=this.selectPlaylist();if(!h)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(t.internal?this.logger_:j.log.warn)(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${t.message?" "+t.message:""} Switching to playlist ${h.id}.`),h.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),h.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const b=h.targetDuration/2*1e3||5e3,I="number"==typeof h.lastRequest&&Date.now()-h.lastRequest<=b;return this.switchMedia_(h,"exclude",a||I)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],r="all"===e;(r||"main"===e)&&i.push(this.mainPlaylistLoader_);const n=[];
1(r||"audio"===e)&&n.push("AUDIO"),(r||"subtitle"===e)&&(n.push("CLOSED-CAPTIONS"),n.push("SUBTITLES")),n.forEach(a=>{const u=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;u&&i.push(u)}),["main","audio","subtitle"].forEach(a=>{const u=this[`${a}SegmentLoader_`];u&&(e===a||"all"===e)&&i.push(u)}),i.forEach(a=>t.forEach(u=>{"function"==typeof a[u]&&a[u]()}))}setCurrentTime(e){const t=$s(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Mi.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return;const r=this.mainPlaylistLoader_.main,n=Mi.Playlist.seekable(t,i,Mi.Playlist.liveEdgeDelay(r,t));if(0===n.length||this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(t,this.duration()),null===i||(e=Mi.Playlist.seekable(t,i,Mi.Playlist.liveEdgeDelay(r,t)),0===e.length)))return;let a,u;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),u=this.seekable_.start(0)),this.seekable_=e?e.start(0)>n.end(0)||n.start(0)>e.end(0)?n:Lt([[e.start(0)>n.start(0)?e.start(0):n.start(0),e.end(0)<n.end(0)?e.end(0):n.end(0)]]):n,(!this.seekable_||!this.seekable_.length||this.seekable_.end(0)!==a||this.seekable_.start(0)!==u)&&(this.logger_(`seekable updated [${lc(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const r=this.seekable();if(!r.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1)))}const t=this.tech_.buffered();let i=Mi.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const i in t)t[i].forEach(r=>{r.playlistLoader&&r.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()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Dr(this.main(),t),r={},n=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(r.video+=`,${i.audio||e.main.audioCodec||mi}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||n)&&(r.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||mi,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const u={};let h;if(["video","audio"].forEach(function(p){if(r.hasOwnProperty(p)&&!((p,_)=>p?ki(_):ji(_))(e[p].isFmp4,r[p])){const _=e[p].isFmp4?"browser":"muxer";
vendor: 8,427 bytes, line 1
1u[_]=u[_]||[],u[_].push(r[p]),"audio"===p&&(h=_)}}),n&&h&&t.attributes.AUDIO){const p=t.attributes.AUDIO;this.main().playlists.forEach(_=>{(_.attributes&&_.attributes.AUDIO)===p&&_!==t&&(_.excludeUntil=1/0)}),this.logger_(`excluding audio group ${p} as ${h} does not support codec(s): "${r.audio}"`)}if(!Object.keys(u).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const p=[];if(["video","audio"].forEach(_=>{const b=(xt(this.sourceUpdater_.codecs[_]||"")[0]||{}).type,I=(xt(r[_]||"")[0]||{}).type;b&&I&&b.toLowerCase()!==I.toLowerCase()&&p.push(`"${this.sourceUpdater_.codecs[_]}" -> "${r[_]}"`)}),p.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${p.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return r}{const p=Object.keys(u).reduce((_,b)=>(_&&(_+=", "),_+`${b} does not support codec(s): "${u[b].join(",")}"`),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:p},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const r=e[i];if(-1!==t.indexOf(r.id))return;t.push(r.id);const n=Dr(this.main,r),a=[];n.audio&&!ji(n.audio)&&!ki(n.audio)&&a.push(`audio codec ${n.audio}`),n.video&&!ji(n.video)&&!ki(n.video)&&a.push(`video codec ${n.video}`),n.text&&"stpp.ttml.im1t"===n.text&&a.push(`text codec ${n.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,r=Mn(xt(e)),n=Qc(r),a=r.video&&xt(r.video)[0]||null,u=r.audio&&xt(r.audio)[0]||null;Object.keys(i).forEach(h=>{const p=i[h];if(-1!==t.indexOf(p.id)||p.excludeUntil===1/0)return;t.push(p.id);const _=[],b=Dr(this.mainPlaylistLoader_.main,p),I=Qc(b);if(b.audio||b.video){if(I!==n&&_.push(`codec count "${I}" !== "${n}"`),!this.sourceUpdater_.canChangeType()){const P=b.video&&xt(b.video)[0]||null,C=b.audio&&xt(b.audio)[0]||null;P&&a&&P.type.toLowerCase()!==a.type.toLowerCase()&&_.push(`video codec "${P.type}" !== "${a.type}"`),C&&u&&C.type.toLowerCase()!==u.type.toLowerCase()&&_.push(`audio codec "${C.type}" !== "${u.type}"`)}_.length&&(p.excludeUntil=1/0,this.logger_(`excluding ${p.id}: ${_.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),function(s,e,t=0){if(!s.segments)return;let r,i=t;for(let n=0;n<s.segments.length;n++){const a=s.segments[n];if(r||(r=Og(e,i+a.duration/2)),r){if("cueIn"in a){r.endTime=i,r.adEndTime=i,i+=a.duration,r=null;continue}if(i<r.endTime){i+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new(v().VTTCue)(i,i+a.duration,a.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(a.cueOut),e.addCue(r)),"cueOutCont"in a){const[u,h]=a.cueOutCont.split("/").map(parseFloat);r=new(v().VTTCue)(i,i+a.duration,""),r.adStartTime=i-u,r.adEndTime=r.adStartTime+h,e.addCue(r)}i+=a.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=wt.GOAL_BUFFER_LENGTH,i=wt.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,wt.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=wt.BUFFER_LOW_WATER_LINE,i=wt.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,wt.MAX_BUFFER_LOW_WATER_LINE),n=Math.max(t,wt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?n:r)}bufferHighWaterLine(){return wt.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){ed(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:s,dateRanges:e})=>{const t=s.metadataTrack_;if(!t)return;const i=v().WebKitDataCue||v().VTTCue;e.forEach(r=>{for(const n of Object.keys(r)){if(pg.has(n))continue;const a=new i(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:fg[n],data:r[n]},("scte35Out"===n||"scte35In"===n)&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),t.addCue(a)}r.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();ed(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:s,metadataArray:e,timestampOffset:t,videoDuration:i})=>{if(!e)return;const r=v().WebKitDataCue||v().VTTCue,n=s.metadataTrack_;if(!n||(e.forEach(_=>{const b=_.cueTime+t;"number"!=typeof b||v().isNaN(b)||b<0||!(b<1/0)||!_.frames||!_.frames.length||_.frames.forEach(I=>{const P=new r(b,b,I.value||I.url||I.data||"");P.frame=I,P.value=I,function(s){Object.defineProperties(s.frame,{id:{get:()=>(j.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),s.value.key)},value:{get:()=>(j.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),s.value.data)},privateData:{get:()=>(j.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),s.value.data)}})}(P),n.addCue(P)})}),!n.cues||!n.cues.length))return;const a=n.cues,u=[];for(let _=0;_<a.length;_++)a[_]&&u.push(a[_]);const h=u.reduce((_,b)=>{const I=_[b.startTime]||[];return I.push(b),_[b.startTime]=I,_},{}),p=Object.keys(h).sort((_,b)=>Number(_)-Number(b));p.forEach((_,b)=>{const I=h[_],P=isFinite(i)?i:_,C=Number(p[b+1])||P;I.forEach(N=>{N.endTime=C})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const r=this.contentSteeringController_.getAvailablePathways(),n=[];for(const a of e.playlists){const u=a.attributes.serviceLocation;if(u&&(n.push(u),!r.has(u)))return!0}return!(n.length||!r.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const i=this.main().playlists,r=new Set;let n=!1;Object.keys(i).forEach(a=>{const u=i[a],h=this.pathwayAttribute_(u),p=h&&e!==h;u.excludeUntil===1/0&&"content-steering"===u.lastExcludeReason_&&!p&&(delete u.excludeUntil,delete u.lastExcludeReason_,n=!0);const b=!u.excludeUntil&&u.excludeUntil!==1/0;!r.has(u.id)&&p&&b&&(r.add(u.id),u.excludeUntil=1/0,u.lastExcludeReason_="content-steering",this.logger_(`excluding ${u.id} for ${u.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(a=>{const u=this.mediaTypes_[a];if(u.activePlaylistLoader){const h=u.activePlaylistLoader.media_;h&&h.attributes.serviceLocation!==e&&(n=!0)}}),n&&this.changeSegmentPathway_()}handlePathwayClones_(){const t=this.main().playlists,i=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(i&&i.size||r&&r.size){for(const[a,u]of i.entries())r.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(u),this.contentSteeringController_.excludePathway(a));for(const[a,u]of r.entries()){const h=i.get(a);h?this.equalPathwayClones_(h,u)||(this.mainPlaylistLoader_.updateOrDeleteClone(u,!0),this.contentSteeringController_.addAvailablePathway(a)):(t.filter(_=>
1_.attributes["PATHWAY-ID"]===u["BASE-ID"]).forEach(_=>{this.mainPlaylistLoader_.addClonePathway(u,_)}),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,r=t["URI-REPLACEMENT"].PARAMS;for(const n in i)if(i[n]!==r[n])return!1;for(const n in r)if(i[n]!==r[n])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=this.mainPlaylistLoader_.getKeyIdSet(i);!r||!r.size||r.forEach(n=>{const a="usable",u=this.keyStatusMap_.has(n)&&this.keyStatusMap_.get(n)===a;u?u&&i.lastExcludeReason_===t&&i.excludeUntil===1/0&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${n} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${n} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEac
1h(i=>{i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720&&i.excludeUntil===1/0&&i.lastExcludeReason_===t&&(delete i.excludeUntil,j.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const n=("string"==typeof e?e:(s=>{const e=new Uint8Array(s);return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${n} added to the keyStatusMap`),this.keyStatusMap_.set(n,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class r0{constructor(e,t,i){const{playlistController_:r}=e,n=r.fastQualityChange_.bind(r);if(t.attributes){const a=t.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=Dr(r.main(),t),this.playlist=t,this.id=i,this.enabled=((s,e,t)=>i=>{const r=s.main.playlists[e],n=Co(r),a=Nn(r);return typeof i>"u"?a:(i?delete r.disabled:r.disabled=!0,i!==a&&!n&&(t(),s.trigger(i?"renditionenabled":"renditiondisabled")),i)})(e.playlists,t.id,n)}}const gd=["seeking","seeked","pause","playing","error"];class a0{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ni("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,u=["main","subtitle","audio"],h={};u.forEach(_=>{h[_]={reset:()=>this.resetSegmentDownloads_(_),updateend:()=>this.checkSegmentDownloads_(_)},a[`${_}SegmentLoader_`].on("appendsdone",h[_].updateend),a[`${_}SegmentLoader_`].on("playlistupdate",h[_].reset),this.tech_.on(["seeked","seeking"],h[_].reset)});const p=_=>{["main","audio"].forEach(b=>{a[`${b}SegmentLoader_`][_]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),p("off"))},this.clearSeekingAppendCheck_=()=>p("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),p("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(gd,n),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(gd,n),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),u.forEach(_=>{a[`${_}SegmentLoader_`].off("appendsdone",h[_].updateend),a[`${_}SegmentLoader_`].off("playlistupdate",h[_].reset),this.tech_.off(["seeked","seeking"],h[_].reset)}),this.checkCurrentTimeTimeout_&&v().clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&v().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=v().setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[`${e}SegmentLoader_`],r=i.buffered_(),n=function(s,e){if(s===e)return!1;if(!s&&e||!e&&s||s.length!==e.length)return!0;for(let t=0;t<s.length;t++)if(s.start(t)!==e.start(t)||s.end(t)!==e.end(t))return!0;return!1}(this[`${e}Buffered_`],r);this[`${e}Buffered_`]=r,n?this.resetSegmentDownloads_(e):(this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:us(r)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Ei>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const t=this.seekable(),i=this.tech_.currentTime();let n;
vendor: 5,656 bytes, line 1
1if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=t.end(t.length-1)),this.beforeSeekableWindow_(t,i)){const C=t.start(0);n=C+(C===t.end(0)?0:Ei)}if(typeof n<"u")return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${lc(t)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const a=this.playlistController_.sourceUpdater_,u=this.tech_.buffered(),h=a.audioBuffer?a.audioBuffered():null,p=a.videoBuffer?a.videoBuffered():null,_=this.media(),b=_.partTargetDuration?_.partTargetDuration:2*(_.targetDuration-Si),I=[h,p];for(let C=0;C<I.length;C++)if(I[C]&&xo(I[C],i)<b)return!1;const P=On(u,i);return 0!==P.length&&(n=P.start(0)+Ei,this.logger_(`Buffered region starts (${P.start(0)})  just beyond seek point (${i}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=$s(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const u=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${u}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(u),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const a=On(r,t);return a.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${a.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,r=!1){if(!e.length)return!1;let n=e.end(e.length-1)+Ei;return!i.endList&&("number"==typeof i.partTargetDuration||r)&&(n=e.end(e.length-1)+3*i.targetDuration),t>n}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let r;if(e.length&&t.length){const n=$s(e,i-3),a=$s(e,i),u=$s(t,i);u.length&&!a.length&&n.length&&(r={start:n.end(0),end:u.end(0)})}else On(e,i).length||(r=this.gapFromVideoUnderflow_(e,i));return!!r&&(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${i}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),r=On(t,i);this.resetTimeUpdate_(),0!==r.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Si),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const i=function(s){if(s.length<2)return Lt();const e=[];for(let t=1;t<s.length;t++){const i=s.end(t-1),r=s.start(t);e.push([i,r])}return Lt(e)}(e);for(let r=0;r<i.length;r++){const n=i.start(r),a=i.end(r);if(t-n<4&&t-n>2)return{start:n,end:a}}return null}}const o0={errorInterval:30,getSource(s){return s(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},_d=function(s,e){let t=0,i=0;const r=We(o0,e);s.ready(()=>{s.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){i&&s.currentTime(i)},a=function(_){null!=_&&(i=s.duration()!==1/0&&s.currentTime()||0,s.one("loadedmetadata",n),s.src(_),s.trigger({type:"usage",name:"vhs-error-reload"}),s.play())},u=function(){if(Date.now()-t<1e3*r.errorInterval)s.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"==typeof r.getSource)return t=Date.now(),r.getSource.call(s,a);j.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},h=function(){s.off("loadedmetadata",n),s.off("error",u),s.off("dispose",h)};s.on("error",u),s.on("dispose",h),s.reloadSourceOnError=function(_){h(),_d(s,_)}},ft={PlaylistLoader:Gs,Playlist:Ht,utils:Tm,STANDARD_PLAYLIST_SELECTOR:Jc,INITIAL_PLAYLIST_SELECTOR:function(){const s=this.playlists.main.playlists.filter(Ht.isEnabled);return zs(s,(t,i)=>Bo(t,i)),s.filter(t=>!!Dr(this.playlists.main,t).video)[0]||null},lastBandwidthSelector:Jc,movingAverageBandwidthSelector:function(s){let e=-1,t=-1;if(s<0||s>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const i=this.useDevicePixelRatio&&v().devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,t=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==t&&(e=s*this.systemBandwidth+(1-s)*e,t=this.systemBandwidth),Zc(this.playlists.main,e,parseInt(Fn(this.tech_.el(),"width"),10)*i,parseInt(Fn(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:Bo,comparePlaylistResolution:function(s,e){let t,i;return s.attributes.RESOLUTION&&s.attributes.RESOLUTION.width&&(t=s.attributes.RESOLUTION.width),t=t||v().Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||v().Number.MAX_VALUE,t===i&&s.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?s.attributes.BANDWIDTH-e.attributes.BANDWIDTH:t-i},xhr:Ac()};Object.keys(wt).forEach(s=>{Object.defineProperty(ft,s,{get:()=>(j.log.warn(`using Vhs.${s}
1 is UNSAFE be sure you know what you are doing`),wt[s]),set(e){j.log.warn(`using Vhs.${s} is UNSAFE be sure you know what you are doing`),"number"!=typeof e||e<0?j.log.warn(`value of Vhs.${s} must be greater than or equal to 0`):wt[s]=e}})});const vd="videojs-vhs",Td=function(s,e){const t=e.media();let i=-1;for(let r=0;r<s.length;r++)if(s[r].id===t.id){i=r;break}s.selectedIndex_=i,s.trigger({selectedIndex:i,type:"change"})};ft.canPlaySource=function(){return j.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const bd=()=>{if(!v().localStorage)return null;const s=v().localStorage.getItem(vd);if(!s)return null;try{return JSON.parse(s)}catch{return null}},xd=(s,e)=>{s._requestCallbackSet||(s._requestCallbackSet=new Set),s._requestCallbackSet.add(e)},Sd=(s,e)=>{s._responseCallbackSet||(s._responseCallbackSet=new Set),s._responseCallbackSet.add(e)},Ed=(s,e)=>{s._requestCallbackSet&&(s._requestCallbackSet.delete(e),s._requestCallbackSet.size||delete s._requestCallbackSet)},Cd=(s,e)=>{s._responseCallbackSet&&(s._responseCallbackSet.delete(e),s._responseCallbackSet.size||delete s._responseCallbackSet)};ft.supportsNativeHls=function(){if(!V()||!V().createElement)return!1;const s=V().createElement("video");return!!j.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(s.canPlayType(t))})}(),ft.supportsNativeDash=!!(V()&&V().createElement&&j.getTech("Html5").isSupported())&&/maybe|probably/i.test(V().createElement("video").canPlayType("application/dash+xml")),ft.supportsTypeNatively=s=>"hls"===s?ft.supportsNativeHls:"dash"===s&&ft.supportsNativeDash,ft.isSupported=function(){return j.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},ft.xhr.onRequest=function(s){xd(ft.xhr,s)},ft.xhr.onResponse=function(s){Sd(ft.xhr,s)},ft.xhr.offRequest=function(s){Ed(ft.xhr,s)},ft.xhr.offResponse=function(s){Cd(ft.xhr,s)};const T0=j.getComponent("Component");class wd extends T0{constructor(e,t,i){if(super(t,i.vhs),"number"==typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=ni("VhsHandler"),t.options_&&t.options_.playerId){const r=j.getPlayer(t.options_.playerId);this.player_=r}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(V(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const n=V().fullscreenElement||V().webkitFullscreenElement||V().mozFullScreenElement||V().msFullscreenElement;n&&n.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=We(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhl
vendor: 7,173 bytes, line 1
1s=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const t=bd();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=wt.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===wt.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(t=>{typeof this.source_[t]<"u"&&(this.options_[t]=this.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=(s=>0===s.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(s.substring(s.indexOf(",")+1)):s)(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=ft,this.options_.sourceType=jt(t),this.options_.seekTo=n=>{this.tech_.setCurrentTime(n)},this.playlistController_=new t0(this.options_);const i=We({liveRangeSafeTimeDelta:Ei},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new a0(i),this.playlistController_.on("error",()=>{const n=j.players[this.tech_.options_.playerId];let a=this.playlistController_.error;"object"!=typeof a||a.code?"string"==typeof a&&(a={message:a,code:3}):a.code=3,n.error(a)});const r=this.options_.bufferBasedABR?ft.movingAverageBandwidthSelector(.55):ft.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=ft.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(n){this.playlistController_.selectPlaylist=n.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(n){this.playlistController_.mainSegmentLoader_.throughput.rate=n,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let n=this.playlistController_.mainSegmentLoader_.bandwidth;const a=v().navigator.connection||v().navigator.mozConnection||v().navigator.webkitConnection,u=1e7;if(this.options_.useNetworkInformationApi&&a){const h=1e3*a.downlink*1e3;n=h>=u&&n>=u?Math.max(n,h):h}return n},set(n){this.playlistController_.mainSegmentLoader_.bandwidth=n,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){let a;return a=this.throughput>0?1/this.throughput:0,Math.floor(1/(1/(this.bandwidth||1)+a))},set(){j.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:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>us(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>us(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(s=>{if(!v().localStorage)return!1;let e=bd();e=e?We(e,s):s;try{v().localStorage.setItem(vd,JSON.stringify(e))}catch{return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{!function(s){s.representations=()=>{const e=s.playlistController_.main(),t=Cr(e)?s.playlistController_.getAudioTrackPlaylists_():e.playlists;return t?t.filter(i=>!Co(i)).map((i,r)=>new r0(s,i,i.id)):[]}}(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=v().URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:s,sourceKeySystems:e,audioMedia:t,mainPlaylists:i})=>{if(!s.eme.initializeMediaKeys)return Promise.resolve();const n=((s,e)=>s.reduce((t,i)=>{if(!i.contentProtection)return t;const r=e.reduce((n,a)=>{const u=i.contentProtection[a];return u&&u.pssh&&(n[a]={pssh:u.pssh}),n},{});return Object.keys(r).length&&t.push(r),t},[]))(t?i.concat([t]):i,Object.keys(e)),a=[],u=[];
vendor: 2,016 bytes, line 1
1return n.forEach(h=>{u.push(new Promise((p,_)=>{s.tech_.one("keysessioncreated",p)})),a.push(new Promise((p,_)=>{s.eme.initializeMediaKeys({keySystems:h},b=>{b?_(b):p()})}))}),Promise.race([Promise.all(a),Promise.race(u)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(t=>{this.logger_("error while creating EME key session",t),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:s,sourceKeySystems:e,media:t,audioMedia:i})=>{const r=((s,e,t)=>{if(!s)return s;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=Mn(xt(e.attributes.CODECS))),t&&t.attributes&&t.attributes.CODECS&&(i.audio=t.attributes.CODECS);const r=Ze(i.video),n=Ze(i.audio),a={};for(const u in s)a[u]={},n&&(a[u].audioContentType=n),r&&(a[u].videoContentType=r),e.contentProtection&&e.contentProtection[u]&&e.contentProtection[u].pssh&&(a[u].pssh=e.contentProtection[u].pssh),"string"==typeof s[u]&&(a[u].url=s[u]);return We(s,a)})(e,t,i);return!(!r||(s.currentSource().keySystems=r,r&&!s.eme&&(j.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=j.players[this.tech_.options_.playerId];
1!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{!function(s,e){e.representations().forEach(t=>{s.addQualityLevel(t)}),Td(s,e.playlists)}(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{Td(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":"3.9.1","mux.js":"7.0.2","mpd-parser":"1.3.0","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}version(){return this.constructor.version()}canChangeType(){return ld.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&v().URL.revokeObjectURL&&(v().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:s,time:e,callback:t})=>{if(!t)throw new Error("getProgramTime: callback must be provided");if(!s||void 0===e)return t({message:"getProgramTime: playlist and time must be provided"});const i=((s,e)=>{if(!e||!e.segments||0===e.segments.length)return null;let i,t=0;for(let n=0;n<e.segments.length&&(i=e.segments[n],t=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:t+i.duration,!(s<=t));n++);const r=e.segments[e.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<s)return null;if(s>t){if(s>t+.25*r.duration)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:t-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}})(e,s);if(!i)return t({message:"valid programTime was not found"});if("estimate"===i.type)return t({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:e},n=((s,e)=>{if(!e.dateTimeObject)return null;const n=s-(e.videoTimingInfo.transmuxedPresentationStart+e.videoTimingInfo.transmuxerPrependedSeconds);return new Date(e.dateTimeObject.getTime()+1e3*n)})(e,i.segment);return n&&(r.programDateTime=n.toISOString()),t(null,r)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,r=2){return Oc({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{xd(this.xhr,e)},this.xhr.onResponse=e=>{Sd(this.xhr,e)},this.xhr.offRequest=e=>{Ed(this.xhr,e)},this.xhr.offResponse=e=>{Cd(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const Vn={name:"videojs-http-streaming",VERSION:"3.9.1",canHandleSource(s,e={}){const t=We(j.options,e);return Vn.canPlayType(s.type,t)},handleSource(s,e,t={}){const i=We(j.options,t);return e.vhs=new wd(s,e,i),e.vhs.xhr=Ac(),e.vhs.setupXhrHooks_(),e.vhs.src(s.src,s.type),e.vhs},canPlayType(s,e){const t=jt(s);if(!t)return"";const i=Vn.getOverrideNative(e);return!ft.supportsTypeNatively(t)||i?"maybe":""},getOverrideNative(s={}){const{vhs:e={}}=s,t=!(j.browser.IS_ANY_SAFARI||j.browser.IS_IOS),{overrideNative:i=t}=e;return i}};ki("avc1.4d400d,mp4a.40.2")&&j.getTech("Html5").registerSourceHandler(Vn,0),j.VhsHandler=wd,j.VhsSourceHandler=Vn,j.Vhs=ft,j.use||j.registerComponent("Vhs",ft),j.options.vhs=j.options.vhs||{},(!j.getPlugin||!j.getPlugin("reloadSourceOnError"))&&j.registerPlugin("reloadSourceOnError",function(s){_d(this,s)});const b0=["target"];let x0=(()=>{class s{constructor(t){this.elementRef=t}ngOnInit(){this.player=j(this.target.nativeElement,this.options,function(){console.log("onPlayerReady",this)})}ngOnDestroy(){this.player&&this.player.dispose()}static#e=this.\u0275fac=function(i){return new(i||s)(g.Y36(g.SBq))};static#t=this.\u0275cmp=g.Xpm({type:s,selectors:[["app-video-player"]],viewQuery:function(i,r){if(1&i&&g.Gf(b0,7),2&i){let n;g.iGM(n=g.CRH())&&(r.target=n.first)}},inputs:{options:"options"},decls:2,vars:0,consts:[["controls","","muted","","playsinline","","preload","none",1,"video-js"],["target",""]],template:function(i,r){1&i&&g._UZ(0,"video",0,1)},encapsulation:2})}return s})();var $o=ae(4611);function S0(s,e){if(1&s&&(g.TgZ(0,"div",3)(1,"div",4)(2,"h5")(3,"b"),g._uU(4),g.qZA()()(),g._UZ(5,"hr"),g.qZA()),2&s){const t=g.oxw();g.xp6(4),g.Oqu(t.teleConsultationSummary.generatedBy)}}function E0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",6)(2,"div",7),g._UZ(3,"markdown",8),g.qZA()()()),2&s){const t=g.oxw();g.xp6(3),g.Q6J("data",t.teleConsultationSummary.introSummary)}}function C0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",6)(2,"div",7),g._UZ(3,"markdown",8),g.qZA()()()),2&s){const t=g.oxw();g.xp6(3),g.Q6J("data",t.teleConsultationSummary.consensusSummary)}}function w0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",9)(2,"p",10)(3,"strong"),g._uU(4,"Frage:"),g.qZA(),g._uU(5),g.qZA(),g.TgZ(6,"h3",11),g._uU(7),g.qZA()()()),2&s){const t=g.oxw();g.xp6(5),g.hij(" ",t.teleConsultationDetail.patientQuestion," "),g.xp6(2),g.hij("",t.teleConsultationDetail.summaryCreatedDateTime," Telekonsultation")}}function D0(s,e){if(1&s&&(g.TgZ(0,"div",14),g._UZ(1,"img",15),g.qZA()),2&s){const t=e.$implicit,i=g.oxw(2);g.xp6(1),g.Q6J("src",t,g.LSH)("alt",i.teleConsultationDetail.patientQuestion)}}function A0(s,e){if(1&s&&(g.TgZ(0,"div",12),g.YNc(1,D0,2,2,"div",13),g.qZA()),2&s){const t=g.oxw();g.xp6(1),g.Q6J("ngForOf",t.teleConsultationSummary.teleConsultationImages)}}function k0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",6)(2,"div",7),g._UZ(3,"markdown",8),g.qZA()()()),2&s){const t=g.oxw();g.xp6(3),g.Q6J("data",t.teleConsultationSummary.teaserSummary)}}function I0(s,e){if(1&s&&(g.TgZ(0,"div",5),g._UZ(1,"img",16),g.qZA()),2&s){const t=g.oxw();g.xp6(1),g.Q6J("src",t.teleConsultationDetail.alignGuardGifSource,g.LSH)}}function P0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",6)(2,"div",7),g._UZ(3,"markdown",8),g.qZA()()()),2&s){const t=g.oxw();g.xp6(3),g.Q6J("data",t.teleConsultationSummary.mainSummary)}}function L0(s,e){if(1&s&&(g.TgZ(0,"div",5)(1,"div",6)(2,"div",7),g._UZ(3,"markdown",8),g.qZA()()()),2&s){const t=g.oxw();g.xp6(3),g.Q6J("data",t.teleConsultationSummary.testimonialSummary)}}function O0(s,e){if(1&s&&(g.TgZ(0,"div",20)(1,"div",7),g._UZ(2,"markdown",8),g.qZA()()),2&s){const t=g.oxw(2);g.xp6(2),g.Q6J("data",t.teleConsultationSummary.visionSummary)}}const N0=s=>({open:s});function R0(s,e){if(1&s){const t=g.EpF();g.TgZ(0,"div",5)(1,"div",6)(2,"a",17),g.NdJ("click",function(r){return g.CHM(t),g.oxw().toggleVision(),g.KtG(r.preventDefault())}),g.TgZ(3,"span",18),g._uU(4,"\u25be"),g.qZA(),g._uU(5),g.qZA()(),g.YNc(6,O0,3,1,"div",19),g.qZA()}if(2&s){const t=g.oxw();g.xp6(2),g.Q6J("ngClass",g.VKq(3,N0,t.showVision)),g.xp6(3),g.hij(" ",t.showVision?"Hide Vision Summary":"Display Vision Summary"," "),g.xp6(1),g.Q6J("ngIf",t.showVision)}}let M0=(()=>{class s{constructor(){this.showVision=!1}isBulk(){return this.teleConsultationDetail.teleConsultationSummaries.length>1}toggleVision(){this.showVision=!this.showVision}static#e=this.\u0275fac=function(i){return new(i||s)};static#t=this.\u0275cmp=g.Xpm({type:s,selectors:[["tele-consultation-summary"]],inputs:{teleConsultationSummary:"teleConsultationSummary",teleConsultationDetail:"teleConsultationDetail"},decls:10,vars:10,consts:[["class","row",4,"ngIf"],["class","row mt-2",4,"ngIf"],["class","row justify-content-center mt-2",4,"ngIf"],[1,"row"],[1,"col-12","text-center"],[1,"row","mt-2"],[1,"col-12"],[1,"markdown-rendered"],[3,"data"],[1,"col-12",2,"min-width","0"],[1,"mb-2","markdown-question"],[1,"fw-light","mb-0"],[1,"row","justify-content-center","mt-2"],["class","col-auto",4,"ngFor","ngForOf"],[1,"col-auto"],[3,"src","alt"],["alt","Align Guard Gif Source",1,"img-thumbnail","border-0",3,"src"],["href","#",1,"toggle-expansion-link",3,"ngClass","click"],[1,"icon"],["class","col-12 mt-2",4,"ngIf"],[1,"col-12","mt-2"]],template:function(i,r){1&i&&g.YNc(0,S0,6,1,"div",0)(1,E0,4,1,"div",1)(2,C0,4,1,"div",1)(3,w0,8,2,"div",1)(4,A0,2,1,"div",2)(5,k0,4,1,"div",1)(6,I0,2,1,"div",1)(7,P0,4,1,"div",1)(8,L0,4,1,"div",1)(9,R0,7,5,"div",1),2&i&&(g.Q6J("ngIf",r.isBulk()),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.introSummary),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.consensusSummary),g.xp6(1),g.Q6J("ngIf",r.teleConsultationDetail.patientQuestion),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.teleConsultationImages),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.teaserSummary),g.xp6(1),g.Q6J("ngIf",r.teleConsultationDetail.alignGuardGifSource),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.mainSummary),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.testimonialSummary),g.xp6(1),g.Q6J("ngIf",r.teleConsultationSummary.visionSummary))},dependencies:[J.mk,J.sg,J.O5,$o.lF],styles:['.markdown-rendered{width:100%;overflow-wrap:anywhere;word-break:break-word;padding:1.6rem 1.5rem;border-radius:1rem;background:#f9fbff;border:1px solid #d8e5f4;box-shadow:0 18px 35px #0f172a14;font-family:Segoe UI,Inter,Roboto,Helvetica Neue,Arial,sans-serif;color:#17272e;letter-spacing:.01em;font-feature-settings:"liga" 1,"kern" 1;font-size:.92rem!important}.markdown-rendered,.markdown-rendered *{font-size:.92rem!important;line-height:1.75!important}.markdown-rendered>*:first-child{margin-top:0}.markdown-rendered h1,.markdown-rendered h2,.markdown-rendered h3,.markdown-rendered h4,.markdown-rendered h5,.markdown-rendered h6{margin:1.2rem 0 .55rem;line-height:1.25;color:#0d1723;font-weight:700}.markdown-rendered h1{font-size:1.6rem!important}.markdown-rendered h2{font-size:1.35rem!important}.markdown-rendered h3{font-size:1.15rem!important}.markdown-rendered h4{font-size:1rem!important}.markdown-rendered h5{font-size:.95rem!important}.markdown-rendered h6{font-size:.85rem!important}.markdown-rendered p,.markdown-rendered li,.markdown-rendered blockquote,.markdown-rendered td,.markdown-rendered th{font-size:.95rem;line-height:1.85;color:#304152}.markdown-rendered p{margin:0 0 1.2rem}.markdown-rendered strong,.markdown-rendered b{color:#111827;font-weight:700}.markdown-rendered em,.markdown-rendered i{color:#2f4b60}.markdown-rendered a{color:#2358b5;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(35,88,181,.18)}.markdown-rendered a:hover{text-decoration:none;border-bottom-color:#2358b566}.markdown-rendered ul,.markdown-rendered ol{padding-left:1.6rem;margin:0 0 1.2rem}.markdown-rendered li{margin-bottom:.75rem}.markdown-rendered li>p{display:inline}.markdown-rendered ul li{list-style-type:disc}.markdown-rendered ol li{list-style-type:decimal}.markdown-rendered pre{background:#111827;color:#f8fafc;border-radius:.75rem;padding:1rem;overflow-x:auto;font-size:.95rem;line-height:1.65}.markdown-rendered code{background:#eef5ff;color:#1d4ed8;border-radius:.35rem;padding:.22rem .4rem;font-size:.95rem}.markdown-rendered img{display:block;max-width:100%;height:auto;margin:1.1rem 0;border-radius:.85rem}.markdown-rendered blockquote{margin:1.2rem 0;padding:1rem 1rem 1rem 1.15rem;border-left:4px solid #4f46e5;background:#eef2ff;color:#3730a3;border-radius:.55rem}.markdown-rendered table{width:100%;border-collapse:collapse;margin:1.1rem 0;font-size:.98rem}.markdown-rendered th,.markdown-rendered td{border:1px solid #d6e4f0;padding:.95rem 1rem;text-align:left}.markdown-rendered th{background:#eff6ff;color:#111827;font-weight:700}.markdown-rendered hr{margin:1.5rem 0;border:0;border-top:1px solid #d1dce7}.markdown-question{overflow-wrap:anywhere;word-break:break-word;white-space:normal}.toggle-expansion-link{display:inline-flex;align-items:center;gap:.45rem;color:#2563eb;font-weight:700;text-decoration:none}.toggle-expansion-link:hover{text-decoration:underline}.toggle-expansion-link .icon{transition:transform .2s ease}.toggle-expansion-link.open .icon{transform:rotate(180deg)}\n'],encapsulation:2})}return s})();function B0(s,e){1&s&&(g.TgZ(0,"h3",5),g._uU(1," Schlie\xdfen Sie Ihre Beratung mit AI Insights ab. Bitte warten Sie einen Moment ... "),g.qZA())}function F0(s,e){1&s&&(g.TgZ(0,"h3",5),g._uU(1," Ihre Telekonsultation wird geladen, bitte etwas Geduld... "),g.qZA())}function U0(s,e){if(1&s&&(g.TgZ(0,"div",2),g.YNc(1,B0,2,0,"h3",3)(2,F0,2,0,"h3",3),g.TgZ(3,"h3",4),g._uU(4),g.qZA()()),2&s){const t=g.oxw();g.xp6(1),g.Q6J("ngIf",t.isTeleConsultationInprogress()),g.xp6(1),g.Q6J("ngIf",t.isTeleConsultationLoading()),g.xp6(2),g.hij(" ",t.errorMessage," ")}}function j0(s,e){if(1&s&&(g.TgZ(0,"div",17)(1,"div",13),g._UZ(2,"app-video-player",18),g.qZA()()),2&s){const t=g.oxw(3);g.xp6(2),g.Q6J("options",t.introVideoOptions)}}function V0(s,e){if(1&s&&(g.TgZ(0,"div",19),g._UZ(1,"tele-consultation-summary",20),g.qZA()),2&s){const t=e.$implicit,i=g.oxw(3);g.Q6J("ngClass",i.isBulk()?"border border-dark mt-4":""),g.xp6(1),g.Q6J("teleConsultationSummary",t)("teleConsultationDetail",i.teleConsultationDetail)}}function $0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij("Created Date: ",t.teleConsultationDetail.summaryCreatedDateTime," ")}}function q0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij("Patient Name : ",t.teleConsultationDetail.displayName," ")}}function H0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij("Generated By : ",t.teleConsultationDetail.teleConsultationSummaries[0].generatedBy," ")}}function G0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij(" Model Name : ",t.teleConsultationDetail.teleConsultationSummaries[0].modelName," ")}}function z0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij(" Vision Model Name : ",t.teleConsultationDetail.teleConsultationSummaries[0].visionModelName," ")}}function W0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1),g.qZA()),2&s){const t=g.oxw(4);g.xp6(1),g.hij("Tele Consultation ID : ",t.teleConsultationId," ")}}function X0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Intro Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.introSummaryLogsLink,g.LSH
1),g.xp6(1),g.Oqu(t.teleConsultationDetail.introSummaryLogsLink)}}function K0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Teaser Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.teaserSummaryLogsLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.teaserSummaryLogsLink)}}function Q0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Main Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.mainSummaryLogsLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.mainSummaryLogsLink)}}function Y0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Testimonial Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.testimonialSummaryLogsLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.testimonialSummaryLogsLink)}}function Z0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Consenus Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.consensusSummaryLogsLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.consensusSummaryLogsLink)}}function J0(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Vision Logs Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.visionSummaryLogsLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.visionSummaryLogsLink)}}function e_(s,e){if(1&s&&(g.TgZ(0,"li"),g._uU(1,"Patient Root Folder Link: "),g.TgZ(2,"a",23),g._uU(3),g.qZA()()),2&s){const t=g.oxw(4);g.xp6(2),g.Q6J("href",t.teleConsultationDetail.rootFolderLink,g.LSH),g.xp6(1),g.Oqu(t.teleConsultationDetail.rootFolderLink)}}function t_(s,e){if(1&s&&(g.TgZ(0,"div",21)(1,"ul",22),g.YNc(2,$0,2,1,"li",8)(3,q0,2,1,"li",8)(4,H0,2,1,"li",8)(5,G0,2,1,"li",8)(6,z0,2,1,"li",8)(7,W0,2,1,"li",8)(8,X0,4,2,"li",8)(9,K0,4,2,"li",8)(10,Q0,4,2,"li",8)(11,Y0,4,2,"li",8)(12,Z0,4,2,"li",8)(13,J0,4,2,"li",8)(14,e_,4,2,"li",8),g.qZA()()),2&s){const t=g.oxw(3);g.xp6(2),g.Q6J("ngIf",t.teleConsultationDetail.summaryCreatedDateTime),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.displayName),g.xp6(1),g.Q6J("ngIf",!t.isBulk()),g.xp6(1),g.Q6J("ngIf",!t.isBulk()&&t.teleConsultationDetail.teleConsultationSummaries[0].modelName),g.xp6(1),g.Q6J("ngIf",!t.isBulk()&&t.teleConsultationDetail.teleConsultationSummaries[0].visionModelName),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.promptFileName),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.introSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.teaserSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.mainSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.testimonialSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.consensusSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.visionSummaryLogsLink),g.xp6(1),g.Q6J("ngIf",t.teleConsultationDetail.rootFolderLink)}}const i_=s=>({open:s});function s_(s,e){if(1&s){const t=g.EpF();g.ynx(0),g.YNc(1,j0,3,1,"div",9),g.TgZ(2,"div",10),g.YNc(3,V0,2,3,"div",11),g.qZA(),g.TgZ(4,"div",12)(5,"div",13)(6,"a",14),g.NdJ("click",function(r){return g.CHM(t),g.oxw(2).toggleFooterDetails(),g.KtG(r.preventDefault())}),g.TgZ(7,"span",15),g._uU(8,"\u25be"),g.qZA(),g._uU(9),g.qZA()(),g.YNc(10,t_,15,13,"div",16),g.qZA(),g.BQk()}if(2&s){const t=g.oxw(2);g.xp6(1),g.Q6J("ngIf",t.introVideoOptions),g.xp6(2),g.Q6J("ngForOf",t.teleConsultationDetail.teleConsultationSummaries),g.xp6(3),g.Q6J("ngClass",g.VKq(5,i_,t.showFooterDetails)),g.xp6(3),g.hij(" ",t.showFooterDetails?"Hide Tech Details":"Show Tech Details"," "),g.xp6(1),g.Q6J("ngIf",t.showFooterDetails)}}function r_(s,e){if(1&s&&(g.ynx(0),g.TgZ(1,"div",24)(2,"div",25),g._UZ(3,"markdown",26),g.qZA()(),g.BQk()),2&s){const t=g.oxw(2);g.xp6(3),g.Q6J("data",t.teleConsultationDetail.failSummary)}}function n_(s,e){if(1&s&&(g.TgZ(0,"section",6)(1,"div",7),g.YNc(2,s_,11,7,"ng-container",8)(3,r_,4,1,"ng-container",8),g.qZA()()),2&s){const t=g.oxw();g.xp6(2),g.Q6J("ngIf",t.teleConsultationStatusInfo.isSuccess()),g.xp6(1),g.Q6J("ngIf",t.teleConsultationStatusInfo.isFail())}}const a_=[{path:":teleConsultationId",pathMatch:"full",component:(()=>{class s{constructor(t,i,r,n){this._Activatedroute=t,this.teleConsultationService=i,this.loadingBarService=r,this.configService=n,this.subscriptions=[],this.retryLoadingMilliSeconds=2e3,this.isReadMoreClicked=!1,this.isIntercomEnabled=!1,this.isChatWootEnabled=!1,this.fullSummaryViewMode=!0,this.status="loading",this.statusMessage=null,this.show
1FooterDetails=!1,this.isIntercomEnabled=JSON.parse(n.getProperty("intercom.enabled")),this.intercomAppId=n.getProperty("intercom.app-id"),this.isChatWootEnabled=JSON.parse(n.getProperty("chatwoot.enabled")),this.chatWootBaseUrl=n.getProperty("chatwoot.base-url"),this.chatWootWebsiteToken=n.getProperty("chatwoot.website-token"),this.teleConsultationId=this._Activatedroute.snapshot.paramMap.get("teleConsultationId"),this.showLoadingBar(),this.subscribeTeleConsultationStatusInfo()}ngOnChanges(){this.errorMessage?(this.status="error",this.statusMessage=this.errorMessage):this.isTeleConsultationInprogress()?this.status="inProgress":this.isTeleConsultationLoading()&&(this.status="loading")}ngOnInit(){}ngAfterViewInit(){if(this.isIntercomEnabled&&(window.intercomSettings={api_base:"https://api-iam.intercom.io",app_id:this.intercomAppId}),this.isChatWootEnabled){const t=window,i=this.chatWootBaseUrl,r=this.chatWootWebsiteToken;t.chatwootSettings={hideMessageBubble:!1,position:"right",locale:"en",useBrowserLanguage:!1,type:"standard",darkMode:"auto"},u=(n=document).createElement("script"),h=n.getElementsByTagName("script")[0],u.src=i+"/packs/js/sdk.js",u.defer=!0,u.async=!0,h.parentNode.insertBefore(u,h),u.onload=function(){t.chatwootSDK.run({websiteToken:r,baseUrl:i})}}var n,u,h}startInterval(){this.internalTeleConsultationub=function Q(s=0,e=Te.z){return s<0&&(s=0),(0,Y.H)(s,s,e)}(this.retryLoadingMilliSeconds).subscribe(()=>{this.subscribeTeleConsultationStatusInfo()}),this.subscriptions.push(this.internalTeleConsultationub)}subscribeTeleConsultationStatusInfo(){this.teleConsultationStatusInfoSub=this.teleConsultationService.getTeleConsultationStatusInfo(this.teleConsultationId,!0).subscribe({next:t=>{this.teleConsultationStatusInfo=t,this.teleConsultationStatusInfo.isSuccess()||this.teleConsultationStatusInfo.isFail()?(this.internalTeleConsultationub?.unsubscribe(),this.loadTeleConsultationDetail()):t.isInprogress()&&!this.internalTeleConsultationub&&this.startInterval()},complete:()=>{},error:t=>this.errorAlert(t)}),this.subscriptions.push(this.teleConsultationStatusInfoSub)}loadTeleConsultationDetail(){const t=this.teleConsultationService.getTeleConsultationDetail(this.teleConsultationId,!0).subscribe({next:i=>{this.teleConsultationDetail=i,this.teleConsultationStatusInfo.isSuccess()&&(this.introVideoOptions={autoplay:!0,controls:!0,disablePictureInPicture:!0,fill:!0,loop:!0,aspectRatio:"16:9",sources:[{src:i.metadata.headerVideoSourceUrl,type:"video/mp4"}]},i.metadata.footerImageSourceUrl?this.footerImageSourceUrl=i.metadata.footerImageSourceUrl:this.footerVideoOptions={autoplay:!0,controls:!0,disablePictureInPicture:!0,fill:!0,loop:!0,aspectRatio:"16:9",sources:[{src:i.metadata.footerVideoSourceUrl,type:"video/mp4"}]}),this.hideLoadingBar()},complete:()=>{},error:i=>this.errorAlert(i)});this.subscriptions.push(t)}showLoadingBar(){this.loadingBarService.start()}hideLoadingBar(){this.loadingBarService.stop()}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}errorAlert(t){this.teleConsultationDetail=void 0,this.errorMessage=t.error.errorMessage,this.hideLoadingBar()}isTeleConsultationInprogress(){return this.teleConsultationStatusInfo?.isInprogress()&&!this.errorMessage}isTeleConsultationLoading(){return!this.isTeleConsultationInprogress()&&!this.showSummary()&&!this.errorMessage}readMoreOrLess(){this.isReadMoreClicked=!this.isReadMoreClicked}showSummary(){return null!=this.teleConsultationDetail}isBulk(){return this.teleConsultationDetail.teleConsultationSummaries.length>1}toggleFooterDetails(){this.showFooterDetails=!this.showFooterDetails}static#e=this.\u0275fac=function(i){return new(i||s)(g.Y36(z.gz),g.Y36(me.Q),g.Y36(_e.dL),g.Y36(le.eB))};static#t=this.\u0275cmp=g.Xpm({type:s,selectors:[["tele-consultation-summary-view"]],features:[g.TTD],decls:2,vars:2,consts:[["class","container",4,"ngIf"],["class","bg-medlibre-md medlibre-md-detail-page pt-0 pb-5",4,"ngIf"],[1,"container"],["class","align-content-center justify-content-center min-vh-100 row p-5",4,"ngIf"],[1,"align-content-center","justify-content-center","min-vh-100","row","text-danger","p-5"],[1,"align-content-center","justify-content-center","min-vh-100","row","p-5"],[1,"bg-medlibre-md","medl
1ibre-md-detail-page","pt-0","pb-5"],[1,"container","min-vh-100","card","w-lg-75"],[4,"ngIf"],["class","justify-content-center row mt-3",4,"ngIf"],["id","print-section"],["class","medlibre-md-advance p-3","style","page-break-after: always;",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","mt-2","mb-1"],[1,"col-12"],["href","#",1,"toggle-expansion-link",3,"ngClass","click"],[1,"icon"],["class","col-12 mt-3 text-center",4,"ngIf"],[1,"justify-content-center","row","mt-3"],[3,"options"],[1,"medlibre-md-advance","p-3",2,"page-break-after","always",3,"ngClass"],[3,"teleConsultationSummary","teleConsultationDetail"],[1,"col-12","mt-3","text-center"],[1,"extra-details"],["target","_blank",3,"href"],[1,"medlibre-md-advance","p-3"],[1,"row"],[1,"col-12",3,"data"]],template:function(i,r){1&i&&g.YNc(0,U0,5,3,"div",0)(1,n_,4,2,"section",1),2&i&&(g.Q6J("ngIf",r.isTeleConsultationInprogress()||r.isTeleConsultationLoading()||r.errorMessage),g.xp6(1),g.Q6J("ngIf",r.showSummary()))},dependencies:[J.mk,J.sg,J.O5,x0,$o.lF,M0],encapsulation:2})}return s})(),data:{title:"View Tele Consultation",description:"View Tele Consultation",previewImage:{source:"https://smile.wien/wp-content/uploads/2024/06/TeleconsultationThumbnail.png",width:"200",height:"200",type:"image/jpeg"}}}];let o_=(()=>{class s{static#e=this.\u0275fac=function(i){return new(i||s)};static#t=this.\u0275mod=g.oAB({type:s});static#i=this.\u0275inj=g.cJS({imports:[z.Bz.forChild(a_),z.Bz]})}return s})(),u_=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=g.oAB({type:s});static \u0275inj=g.cJS({})}return s})(),l_=(()=>{class s{static#e=this.\u0275fac=function(i){return new(i||s)};static#t=this.\u0275mod=g.oAB({type:s});static#i=this.\u0275inj=g.cJS({imports:[J.ez,o_,fe.m,$o.JP.forChild(),u_]})}return s})()},5060:(Oe,ye,ae)=>{"use strict";var J=ae(6382);Oe.exports=function(Y,Q){return void 0===Q&&(Q=!1),function(g,me,_e){if(g)Y(g);else if(me.statusCode>=400&&me.statusCode<=599){var le=_e;if(Q)if(J.TextDecoder){var Ue=function z(Te){return void 0===Te&&(Te=""),Te.toLowerCase().split(";").reduce(function(Y,Q){var g=Q.split("="),_e=g[1];return"charset"===g[0].trim()?_e.trim():Y},"utf-8")}(me.headers&&me.headers["content-type"]);try{le=new TextDecoder(Ue).decode(_e)}catch{}}else le=String.fromCharCode.apply(null,new Uint8Array(_e));Y({cause:le})}else Y(null,_e)}}},3817:(Oe,ye,ae)=>{"use strict";var J=ae(6382),fe=ae(434),z=ae(7794);me.httpHandler=ae(5060);var Te=function(ke){var V={};return ke&&ke.trim().split("\n").forEach(function(Ye){var ve=Ye.indexOf(":"),tt=Ye.slice(0,ve).trim().toLowerCase(),te=Ye.slice(ve+1).trim();typeof V[tt]>"u"?V[tt]=te:Array.isArray(V[tt])?V[tt].push(te):V[tt]=[V[tt],te]}),V};function g(v,ke,V){var Ye=v;return z(ke)?(V=ke,"string"==typeof v&&(Ye={uri:v})):Ye=fe({},ke,{uri:v}),Ye.callback=V,Ye}function me(v,ke,V){return _e(ke=g(v,ke,V))}function _e(v){if(typeof v.callback>"u")throw new Error("callback argument missing");var ke=!1,V=function(oe,re,pe){ke||(ke=!0,v.callback(oe,re,pe))};function ve(){var K=void 0;if(K=ce.response?ce.response:ce.responseText||function le(v){try{if("document"===v.responseType)return v.responseXML;if(""===v.responseType&&(!v.responseXML||"parsererror"!==v.responseXML.documentElement.nodeName))return v.responseXML}catch{}return null}(ce),w)try{K=JSON.parse(K)}catch{}return K}function tt(K){return clearTimeout(R),K instanceof Error||(K=new Error(""+(K||"Unknown XMLHttpRequest Error"))),K.statusCode=0,V(K,Z)}function te(){if(!Ne){var K;clearTimeout(R);var oe=Z,re=null;return 0!==(K=v.useXDR&&void 0===ce.status?200:1223===ce.status?204:ce.status)?(oe={body:ve(),statusCode:K,method:Re,headers:{},url:de,rawRequest:ce},ce.getAllResponseHeaders&&(oe.headers=Te(ce.getAllResponseHeaders()))):re=new Error("Internal XMLHttpRequest Error"),V(re,oe,oe.body)}}var ce=v.xhr||null;ce||(ce=v.cors||v.useXDR?new me.XDomainRequest:new me.XMLHttpRequest);var Ce,Ne,R,de=ce.url=v.uri||v.url,Re=ce.method=v.method||"GET",je=v.body||v.data,Ie=ce.headers=v.headers||{},S=!!v.sync,w=!1,Z={body:void 0,headers:{},statusCode:0,method:Re,url:de,rawRequest:ce};if("json"in v&&!1!==v.json&&(w=!0,Ie.accept||Ie.Accept||(Ie.Accept="application/json"),"GET"!==Re&&"HEAD"!==Re&&(Ie["content-type"]||Ie["Content-Type"]||(Ie["Content-Type"]="application/json"),je=JSON.stringify(!0===v.json?je:v.json))),ce.onreadystatechange=function Ye(){4===ce.readyState&&setTimeout(te,0)},ce.onload=te,ce.onerror=tt,ce.onprogress=function(){},ce.onabort=function(){Ne=!0},ce.ontimeout=tt,ce.open(Re,de,!S,v.username,v.password),S||(ce.withCredentials=!!v.withCredentials),!S&&v.timeout>0&&(R=setTimeout(function(){if(!Ne){Ne=!0,ce.abort("timeout");var K=new Error("XMLHttpRequest timeout");K.code="ETIMEDOUT",tt(K)}}
vendor: 6,617 bytes, line 1
1,v.timeout)),ce.setRequestHeader)for(Ce in Ie)Ie.hasOwnProperty(Ce)&&ce.setRequestHeader(Ce,Ie[Ce]);else if(v.headers&&!function Q(v){for(var ke in v)if(v.hasOwnProperty(ke))return!1;return!0}(v.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in v&&(ce.responseType=v.responseType),"beforeSend"in v&&"function"==typeof v.beforeSend&&v.beforeSend(ce),ce.send(je||null),ce}Oe.exports=me,Oe.exports.default=me,me.XMLHttpRequest=J.XMLHttpRequest||function Ue(){},me.XDomainRequest="withCredentials"in new me.XMLHttpRequest?me.XMLHttpRequest:J.XDomainRequest,function Y(v,ke){for(var V=0;V<v.length;V++)ke(v[V])}(["get","put","post","patch","head","delete"],function(v){me["delete"===v?"del":v]=function(ke,V,Ye){return(V=g(ke,V,Ye)).method=v.toUpperCase(),_e(V)}})},9451:(Oe,ye)=>{"use strict";function J(Y,Q){return void 0===Q&&(Q=Object),Q&&"function"==typeof Q.freeze?Q.freeze(Y):Y}var z=J({HTML:"text/html",isHTML:function(Y){return Y===z.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Te=J({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(Y){return Y===Te.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ye.assign=function fe(Y,Q){if(null===Y||"object"!=typeof Y)throw new TypeError("target is not an object");for(var g in Q)Object.prototype.hasOwnProperty.call(Q,g)&&(Y[g]=Q[g]);return Y},ye.find=function ae(Y,Q,g){if(void 0===g&&(g=Array.prototype),Y&&"function"==typeof g.find)return g.find.call(Y,Q);for(var me=0;me<Y.length;me++)if(Object.prototype.hasOwnProperty.call(Y,me)){var _e=Y[me];if(Q.call(void 0,_e,me,Y))return _e}},ye.freeze=J,ye.MIME_TYPE=z,ye.NAMESPACE=Te},1020:(Oe,ye,ae)=>{var fe=ae(9451),z=ae(6475),Te=ae(4562),Y=ae(6989),Q=z.DOMImplementation,g=fe.NAMESPACE,me=Y.ParseError,_e=Y.XMLReader;function le(te){return te.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function Ue(te){this.options=te||{locator:{}}}function ke(){this.cdata=!1}function V(te,ce){ce.lineNumber=te.lineNumber,ce.columnNumber=te.columnNumber}function Ye(te){if(te)return"\n@"+(te.systemId||"")+"#[line:"+te.lineNumber+",col:"+te.columnNumber+"]"}function ve(te,ce,Ce){return"string"==typeof te?te.substr(ce,Ce):te.length>=ce+Ce||ce?new java.lang.String(te,ce,Ce)+"":te}function tt(te,ce){te.currentElement?te.currentElement.appendChild(ce):te.doc.appendChild(ce)}Ue.prototype.parseFromString=function(te,ce){var Ce=this.options,Ne=new _e,de=Ce.domBuilder||new ke,Re=Ce.errorHandler,je=Ce.locator,Ie=Ce.xmlns||{},S=/\/x?html?$/.test(ce),w=S?Te.HTML_ENTITIES:Te.XML_ENTITIES;return je&&de.setDocumentLocator(je),Ne.errorHandler=function v(te,ce,Ce){if(!te){if(ce instanceof ke)return ce;te=ce}var Ne={},de=te instanceof Function;function Re(je){var Ie=te[je];!Ie&&de&&(Ie=2==te.length?function(S){te(je,S)}:te),Ne[je]=Ie&&function(S){Ie("[xmldom "+je+"]\t"+S+Ye(Ce))}||function(){}}return Ce=Ce||{},Re("warning"),Re("error"),Re("fatalError"),Ne}(Re,de,je),Ne.domBuilder=Ce.domBuilder||de,S&&(Ie[""]=g.HTML),Ie.xml=Ie.xml||g.XML,te&&"string"==typeof te?Ne.parse((Ce.normalizeLineEndings||le)(te),Ie,w):Ne.errorHandler.error("invalid doc source"),de.doc},ke.prototype={startDocument:function(){this.doc=(new Q).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(te,ce,Ce,Ne){var de=this.doc,Re=de.createElementNS(te,Ce||ce),je=Ne.length;tt(this,Re),this.currentElement=Re,this.locator&&V(this.locator,Re);for(var Ie=0;Ie<je;Ie++){te=Ne.getURI(Ie);var S=Ne.getValue(Ie),w=(Ce=Ne.getQName(Ie),de.createAttributeNS(te,Ce));this.locator&&V(Ne.getLocator(Ie),w),w.value=w.nodeValue=S,Re.setAttributeNode(w)}},endElement:function(te,ce,Ce){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(te,ce){},endPrefixMapping:function(te){},processingInstruction:function(te,ce){var Ce=this.doc.createProcessingInstruction(te,ce);this.locator&&V(this.locator,Ce),tt(this,Ce)},ignorableWhitespace:function(te,ce,Ce){},characters:function(te,ce,Ce){if(te=ve.apply(this,arguments)){if(this.cdata)var Ne=this.doc.createCDATASection(te);else Ne=this.doc.createTextNode(te);this.currentElement?this.currentElement.appendChild(Ne):/^\s*$/.test(te)&&this.doc.appendChild(Ne),this.locator&&V(this.locator,Ne)}},skippedEntity:function(te){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(te){(this.locator=te)&&(te.lineNumber=0)},comment:function(te,ce,Ce){te=ve.apply(this,arguments);var Ne=this.doc.createComment(te);this.locator&&V(this.locator,Ne),tt(this,Ne)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(te,ce,Ce){var Ne=this.doc.implementation;if(Ne&&Ne.createDocumentType){var de=Ne.createDocumentType(te,ce,Ce);this.locator&&V(this.locator,de),tt(this,de),this.doc.doctype=de}},warning:function(te){console.warn("[xmldom warning]\t"+te,Ye(this.locator))},error:function(te){console.error("[xmldom error]\t"+te,Ye(this.locator))},fatalError:function(te){throw new me(te,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(te){ke.prototype[te]=function(){return null}}),ye.DOMParser=Ue},6475:(Oe,ye,ae)=>{var J=ae(9451),fe=J.find,z=J.NAMESPACE;function Te(y){return""!==y}function Q(y,T){return y.hasOwnProperty(T)||(y[T]=!0),y}function g(y){if(!y)return[];var T=function Y(y){return y?y.split(/[\t\n\f\r ]+/).filter(Te):[]}(y);return Object.keys(T.reduce(Q,{}))}function _e(y,T){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(T[k]=y[k])}function le(y,T){var k=y.prototype;if(!(k instanceof T)){let ne=function(){};ne.prototype=T.prototype,ne=new ne,_e(k,ne),y.prototype=k=ne}k.constructor!=y&&("function"!=typeof y&&console.error("unknown Class:"+y),k.constructor=y)}var Ue={},v=Ue.ELEMENT_NODE=1,ke=Ue.ATTRIBUTE_NODE=2,V=Ue.TEXT_NODE=3,Ye=Ue.CDATA_SECTION_NODE=4,ve=Ue.ENTITY_REFERENCE_NODE=5,tt=Ue.ENTITY_NODE=6,te=Ue.PROCESSING_INSTRUCTION_NODE=7,ce=Ue.COMMENT_NODE=8,Ce=Ue.DOCUMENT_NODE=9,Ne=Ue.DOCUMENT_TYPE_NODE=10,de=Ue.DOCUMENT_FRAGMENT_NODE=11,Re=Ue.NOTATION_NODE=12,je={},Ie={},R=(je.INDEX_SIZE_ERR=(Ie[1]="Index size error",1),je.DOMSTRING_SIZE_ERR=(Ie[2]="DOMString size error",2),je.HIERARCHY_REQUEST_ERR=(Ie[3]="Hierarchy request error",3)),pe=(je.WRONG_DOCUMENT_ERR=(Ie[4]="Wrong document",4),je.INVALID_CHARACTER_ERR=(Ie[5]="Invalid character",5),je.NO_DATA_ALLOWED_ER
vendor: 4,108 bytes, line 1
1R=(Ie[6]="No data allowed",6),je.NO_MODIFICATION_ALLOWED_ERR=(Ie[7]="No modification allowed",7),je.NOT_FOUND_ERR=(Ie[8]="Not found",8)),se=(je.NOT_SUPPORTED_ERR=(Ie[9]="Not supported",9),je.INUSE_ATTRIBUTE_ERR=(Ie[10]="Attribute in use",10));function we(y,T){if(T instanceof Error)var k=T;else k=this,Error.call(this,Ie[y]),this.message=Ie[y],Error.captureStackTrace&&Error.captureStackTrace(this,we);return k.code=y,T&&(this.message=this.message+": "+T),k}function be(){}function Tt(y,T){this._node=y,this._refresh=T,Dt(this)}function Dt(y){var T=y._node._inc||y._node.ownerDocument._inc;if(y._inc!==T){var k=y._refresh(y._node);if(_t(y,"length",k.length),!y.$$length||k.length<y.$$length)for(var U=k.length;U in y;U++)Object.prototype.hasOwnProperty.call(y,U)&&delete y[U];_e(k,y),y._inc=T}}function lt(){}function At(y,T){for(var k=y.length;k--;)if(y[k]===T)return k}function Yt(y,T,k,U){if(U?T[At(T,U)]=k:T[T.length++]=k,y){k.ownerElement=y;var ne=y.ownerDocument;ne&&(U&&ji(ne,y,U),function ki(y,T,k){y&&y._inc++,k.namespaceURI===z.XMLNS&&(T._nsMap[k.prefix?k.localName:""]=k.value)}(ne,y,k))}}function xt(y,T,k){var U=At(T,k);if(!(U>=0))throw new we(pe,new Error(y.tagName+"@"+k));for(var ne=T.length-1;U<ne;)T[U]=T[++U];if(T.length=ne,y){var Ae=y.ownerDocument;Ae&&(ji(Ae,y,k),k.ownerElement=null)}}function vs(){}function Ge(){}function St(y){return("<"==y?"&lt;":">"==y&&"&gt;")||"&"==y&&"&amp;"||'"'==y&&"&quot;"||"&#"+y.charCodeAt()+";"}function oi(y,T){if(T(y))return!0;if(y=y.firstChild)do{if(oi(y,T))return!0}while(y=y.nextSibling)}function Ze(){this.ownerDocument=this}function ji(y,T,k,U){y&&y._inc++,k.namespaceURI===z.XMLNS&&delete T._nsMap[k.prefix?k.localName:""]}function mi(y,T,k){if(y&&y._inc){y._inc++;var U=T.childNodes;if(k)U[U.length++]=k;else{for(var ne=T.firstChild,Ae=0;ne;)U[Ae++]=ne,ne=ne.nextSibling;U.length=Ae,delete U[U.length]}}}function es(y,T){var k=T.previousSibling,U=T.nextSibling;return k?k.nextSibling=U:y.firstChild=U,U?U.previousSibling=k:y.lastChild=k,T.parentNode=null,T.previousSibling=null,T.nextSibling=null,mi(y.ownerDocument,y),T}function jt(y){return y&&y.nodeType===Ge.DOCUMENT_TYPE_NODE}function Zt(y){return y&&y.nodeType===Ge.ELEMENT_NODE}function Js(y){return y&&y.nodeType===Ge.TEXT_NODE}function $r(y,T){var k=y.childNodes||[];if(fe(k,Zt)||jt(T))return!1;var U=fe(k,jt);return!(T&&U&&k.indexOf(U)>k.indexOf(T))}function er(y,T){var k=y.childNodes||[];if(fe(k,function U(Ae){return Zt(Ae)&&Ae!==T}))return!1;var ne=fe(k,jt);return!(T&&ne&&k.indexOf(ne)>k.indexOf(T))}function pa(y,T,k){var U=y.childNodes||[],ne=T.childNodes||[];if(T.nodeType===Ge.DOCUMENT_FRAGMENT_NODE){var Ae=ne.filter(Zt);if(Ae.length>1||fe(ne,Js))throw new we(R,"More than one element or text in fragment");if(1===Ae.length&&!$r(y,k))throw new we(R,"Element in fragment can not be inserted before doctype")}if(Zt(T)&&!$r(y,k))throw new we(R,"Only one element can be added and only after doctype");if(jt(T)){if(fe(U,jt))throw new we(R,"Only one doctype is allowed");var ze=fe(U,Zt);if(k&&U.indexOf(ze)<U.indexOf(k))throw new we(R,"Doctype can only be inserted before an element");if(!k&&ze)throw new we(R,"Doctype can not be appended since element is present")}}function Ee(y,T,k){var U=y.childNodes||[],ne=T.childNodes||[];if(T.nodeType===Ge.DOCUMENT_FRAGMENT_NODE){var Ae=ne.filter(Zt);if(Ae.length>1||fe(ne,Js))throw new we(R,"More than one element or text in fragment");if(1===Ae.length&&!er(y,k))throw new we(R,"Element in fragment can not be inserted before doctype")}if(Zt(T)&&!er(y,k))throw new we(R,"Only one element can be added and only after doctype");if(jt(T)){if(fe(U,function(zt){return jt(zt)&&zt!==k}))throw new we(R,"Only one doctype is allowed");var ze=fe(U,Zt);if(k&&U.indexOf(ze)<U.indexOf(k))throw new we(R,"Doctype can only be inserted before an element")}}function tr(y,T,k,U){(function qr(y,T,k){if(!function rt(y){return y&&(y.nodeType===Ge.DOCUMENT_NODE||y.nodeType===Ge.DOCUMENT_FRAGMENT_NODE||y.nodeType===Ge.ELEMENT_NODE)}(y))throw new we(R,"Unexpected parent node type "+y.nodeType);if(k&&k.parentNode!==y)throw new we(pe,"child not in parent");
vendor: 4,282 bytes, line 1
1if(!function kt(y){return y&&(Zt(y)||Js(y)||jt(y)||y.nodeType===Ge.DOCUMENT_FRAGMENT_NODE||y.nodeType===Ge.COMMENT_NODE||y.nodeType===Ge.PROCESSING_INSTRUCTION_NODE)}(T)||jt(T)&&y.nodeType!==Ge.DOCUMENT_NODE)throw new we(R,"Unexpected node type "+T.nodeType+" for parent node type "+y.nodeType)})(y,T,k),y.nodeType===Ge.DOCUMENT_NODE&&(U||pa)(y,T,k);var ne=T.parentNode;if(ne&&ne.removeChild(T),T.nodeType===de){var Ae=T.firstChild;if(null==Ae)return T;var ze=T.lastChild}else Ae=ze=T;var It=k?k.previousSibling:y.lastChild;Ae.previousSibling=It,ze.nextSibling=k,It?It.nextSibling=Ae:y.firstChild=Ae,null==k?y.lastChild=ze:k.previousSibling=ze;do{Ae.parentNode=y}while(Ae!==ze&&(Ae=Ae.nextSibling));return mi(y.ownerDocument||y,y),T.nodeType==de&&(T.firstChild=T.lastChild=null),T}function nt(){this._nsMap={}}function Vi(){}function $i(){}function Hr(){}function Gr(){}function ir(){}function Ts(){}function zr(){}function sr(){}function rr(){}function Xe(){}function Wr(){}function ma(){}function Xr(y,T){var k=[],U=9==this.nodeType&&this.documentElement||this,ne=U.prefix,Ae=U.namespaceURI;if(Ae&&null==ne&&null==(ne=U.lookupPrefix(Ae)))var ze=[{namespace:Ae,prefix:null}];return qi(this,k,y,T,ze),k.join("")}function Kr(y,T,k){var U=y.prefix||"",ne=y.namespaceURI;if(!ne||"xml"===U&&ne===z.XML||ne===z.XMLNS)return!1;for(var Ae=k.length;Ae--;){var ze=k[Ae];if(ze.prefix===U)return ze.namespace!==ne}return!0}function nr(y,T,k){y.push(" ",T,'="',k.replace(/[<>&"\t\n\r]/g,St),'"')}function qi(y,T,k,U,ne){if(ne||(ne=[]),U){if(!(y=U(y)))return;if("string"==typeof y)return void T.push(y)}switch(y.nodeType){case v:var Ae=y.attributes,ze=Ae.length,Ct=y.firstChild,It=y.tagName,Jt=It;if(!(k=z.isHTML(y.namespaceURI)||k)&&!y.prefix&&y.namespaceURI){for(var zt,ui=0;ui<Ae.length;ui++)if("xmlns"===Ae.item(ui).name){zt=Ae.item(ui).value;break}if(!zt)for(var li=ne.length-1;li>=0;li--)if(""===(gi=ne[li]).prefix&&gi.namespace===y.namespaceURI){zt=gi.namespace;break}if(zt!==y.namespaceURI)for(li=ne.length-1;li>=0;li--){var gi;if((gi=ne[li]).namespace===y.namespaceURI){gi.prefix&&(Jt=gi.prefix+":"+It);break}}}T.push("<",Jt);for(var ci=0;ci<ze;ci++)"xmlns"==(ei=Ae.item(ci)).prefix?ne.push({prefix:ei.localName,namespace:ei.value}):"xmlns"==ei.nodeName&&ne.push({prefix:"",namespace:ei.value});for(ci=0;ci<ze;ci++){var ei,Ii,Hi;Kr(ei=Ae.item(ci),0,ne)&&(nr(T,(Ii=ei.prefix||"")?"xmlns:"+Ii:"xmlns",Hi=ei.namespaceURI),ne.push({prefix:Ii,namespace:Hi})),qi(ei,T,k,U,ne)}if(It===Jt&&Kr(y,0,ne)&&(nr(T,(Ii=y.prefix||"")?"xmlns:"+Ii:"xmlns",Hi=y.namespaceURI),ne.push({prefix:Ii,namespace:Hi})),Ct||k&&!/^(?:meta|link|img|br|hr|input)$/i.test(It)){if(T.push(">"),k&&/^script$/i.test(It))for(;Ct;)Ct.data?T.push(Ct.data):qi(Ct,T,k,U,ne.slice()),Ct=Ct.nextSibling;else for(;Ct;)qi(Ct,T,k,U,ne.slice()),Ct=Ct.nextSibling;T.push("</",Jt,">")}else T.push("/>");return;case Ce:case de:for(Ct=y.firstChild;Ct;)qi(Ct,T,k,U,ne.slice()),Ct=Ct.nextSibling;return;case ke:return nr(T,y.name,y.value);case V:return T.push(y.data.replace(/[<&>]/g,St));case Ye:return T.push("<![CDATA[",y.data,"]]>");case ce:return T.push("\x3c!--",y.data,"--\x3e");case Ne:var ar=y.publicId,Pi=y.systemId;if(T.push("<!DOCTYPE ",y.name),ar)T.push(" PUBLIC ",ar),Pi&&"."!=Pi&&T.push(" ",Pi),T.push(">");else if(Pi&&"."!=Pi)T.push(" SYSTEM ",Pi,">");else{var Qr=y.internalSubset;Qr&&T.push(" [",Qr,"]"),T.push(">")}return;case te:return T.push("<?",y.target," ",y.data,"?>");case ve:return T.push("&",y.nodeName,";");default:T.push("??",y.nodeName)}}function ga(y,T,k){var U;switch(T.nodeType){case v:(U=T.cloneNode(!1)).ownerDocument=y;case de:break;case ke:k=!0}if(U||(U=T.cloneNode(!1)),U.ownerDocument=y,U.parentNode=null,k)for(var ne=T.firstChild;ne;)U.appendChild(ga(y,ne,k)),ne=ne.nextSibling;return U}function bs(y,T,k){var U=new T.constructor;for(var ne in T)if(Object.prototype.hasOwnProperty.call(T,ne)){var Ae=T[ne];"object"!=typeof Ae&&Ae!=U[ne]&&(U[ne]=Ae)}switch(T.childNodes&&(U.childNodes=new be),U.ownerDocument=y,U.nodeType){case v:var ze=T.attributes,It=U.attributes=new lt,Jt=ze.length;It._ownerElement=U;for(var zt=0;zt<Jt;zt++)U.setAttributeNode(bs(y,ze.item(zt),!0));break;case ke:k=!0}if(k)for(var ui=T.firstChild;ui;)U.appendChild(bs(y,ui,k)),ui=ui.nextSibling;return U}function _t(y,T,k){y[T]=k}
vendor: 9,642 bytes, line 1
1je.INVALID_STATE_ERR=(Ie[11]="Invalid state",11),je.SYNTAX_ERR=(Ie[12]="Syntax error",12),je.INVALID_MODIFICATION_ERR=(Ie[13]="Invalid modification",13),je.NAMESPACE_ERR=(Ie[14]="Invalid namespace",14),je.INVALID_ACCESS_ERR=(Ie[15]="Invalid access",15),we.prototype=Error.prototype,_e(je,we),be.prototype={length:0,item:function(y){return y>=0&&y<this.length?this[y]:null},toString:function(y,T){for(var k=[],U=0;U<this.length;U++)qi(this[U],k,y,T);return k.join("")},filter:function(y){return Array.prototype.filter.call(this,y)},indexOf:function(y){return Array.prototype.indexOf.call(this,y)}},Tt.prototype.item=function(y){return Dt(this),this[y]||null},le(Tt,be),lt.prototype={length:0,item:be.prototype.item,getNamedItem:function(y){for(var T=this.length;T--;){var k=this[T];if(k.nodeName==y)return k}},setNamedItem:function(y){var T=y.ownerElement;if(T&&T!=this._ownerElement)throw new we(se);var k=this.getNamedItem(y.nodeName);return Yt(this._ownerElement,this,y,k),k},setNamedItemNS:function(y){var k,T=y.ownerElement;if(T&&T!=this._ownerElement)throw new we(se);return k=this.getNamedItemNS(y.namespaceURI,y.localName),Yt(this._ownerElement,this,y,k),k},removeNamedItem:function(y){var T=this.getNamedItem(y);return xt(this._ownerElement,this,T),T},removeNamedItemNS:function(y,T){var k=this.getNamedItemNS(y,T);return xt(this._ownerElement,this,k),k},getNamedItemNS:function(y,T){for(var k=this.length;k--;){var U=this[k];if(U.localName==T&&U.namespaceURI==y)return U}return null}},vs.prototype={hasFeature:function(y,T){return!0},createDocument:function(y,T,k){var U=new Ze;if(U.implementation=this,U.childNodes=new be,U.doctype=k||null,k&&U.appendChild(k),T){var ne=U.createElementNS(y,T);U.appendChild(ne)}return U},createDocumentType:function(y,T,k){var U=new Ts;return U.name=y,U.nodeName=y,U.publicId=T||"",U.systemId=k||"",U}},Ge.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(y,T){return tr(this,y,T)},replaceChild:function(y,T){tr(this,y,T,Ee),T&&this.removeChild(T)},removeChild:function(y){return es(this,y)},appendChild:function(y){return this.insertBefore(y,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(y){return bs(this.ownerDocument||this,this,y)},normalize:function(){for(var y=this.firstChild;y;){var T=y.nextSibling;T&&T.nodeType==V&&y.nodeType==V?(this.removeChild(T),y.appendData(T.data)):(y.normalize(),y=T)}},isSupported:function(y,T){return this.ownerDocument.implementation.hasFeature(y,T)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(y){for(var T=this;T;){var k=T._nsMap;if(k)for(var U in k)if(Object.prototype.hasOwnProperty.call(k,U)&&k[U]===y)return U;T=T.nodeType==ke?T.ownerDocument:T.parentNode}return null},lookupNamespaceURI:function(y){for(var T=this;T;){var k=T._nsMap;if(k&&Object.prototype.hasOwnProperty.call(k,y))return k[y];T=T.nodeType==ke?T.ownerDocument:T.parentNode}return null},isDefaultNamespace:function(y){return null==this.lookupPrefix(y)}},_e(Ue,Ge),_e(Ue,Ge.prototype),Ze.prototype={nodeName:"#document",nodeType:Ce,doctype:null,documentElement:null,_inc:1,insertBefore:function(y,T){if(y.nodeType==de){for(var k=y.firstChild;k;){var U=k.nextSibling;this.insertBefore(k,T),k=U}return y}return tr(this,y,T),y.ownerDocument=this,null===this.documentElement&&y.nodeType===v&&(this.documentElement=y),y},removeChild:function(y){return this.documentElement==y&&(this.documentElement=null),es(this,y)},replaceChild:function(y,T){tr(this,y,T,Ee),y.ownerDocument=this,T&&this.removeChild(T),Zt(y)&&(this.documentElement=y)},importNode:function(y,T){return ga(this,y,T)},getElementById:function(y){var T=null;return oi(this.documentElement,function(k){if(k.nodeType==v&&k.getAttribute("id")==y)return T=k,!0}),T},getElementsByClassName:function(y){var T=g(y);return new Tt(this,function(k){var U=[];return T.length>0&&oi(k.documentElement,function(ne){if(ne!==k&&ne.nodeType===v){var Ae=ne.getAttribute("class");if(Ae){var ze=y===Ae;if(!ze){var It=g(Ae);ze=T.every(function me(y){return function(T){return y&&-1!==y.indexOf(T)}}(It))}ze&&U.push(ne)}}}),U})},createElement:function(y){var T=new nt;return T.ownerDocument=this,T.nodeName=y,T.tagName=y,T.localName=y,T.childNodes=new be,(T.attributes=new lt)._ownerElement=T,T},createDocumentFragment:function(){var y=new Xe;return y.ownerDocument=this,y.childNodes=new be,y},createTextNode:function(y){var T=new Hr;return T.ownerDocument=this,T.appendData(y),T},createComment:function(y){var T=new Gr;return T.ownerDocument=this,T.appendData(y),T},createCDATASection:function(y){var T=new ir;return T.ownerDocument=this,T.appendData(y),T},createProcessingInstruction:function(y,T){var k=new Wr;return k.ownerDocument=this,k.tagName=k.nodeName=k.target=y,k.nodeValue=k.data=T,k},createAttribute:function(y){var T=new Vi;return T.ownerDocument=this,T.name=y,T.nodeName=y,T.localName=y,T.specified=!0,T},createEntityReference:function(y){var T=new rr;return T.ownerDocument=this,T.nodeName=y,T},createElementNS:function(y,T){var k=new nt,U=T.split(":"),ne=k.attributes=new lt;return k.childNodes=new be,k.ownerDocument=this,k.nodeName=T,k.tagName=T,k.namespaceURI=y,2==U.length?(k.prefix=U[0],k.localName=U[1]):k.localName=T,ne._ownerElement=k,k},createAttributeNS:function(y,T){var k=new Vi,U=T.split(":");return k.ownerDocument=this,k.nodeName=T,k.name=T,k.namespaceURI=y,k.specified=!0,2==U.length?(k.prefix=U[0],k.localName=U[1]):k.localName=T,k}},le(Ze,Ge),Ze.prototype.getElementsByTagName=(nt.prototype={nodeType:v,hasAttribute:function(y){return null!=this.getAttributeNode(y)},getAttribute:function(y){var T=this.getAttributeNode(y);return T&&T.value||""},getAttributeNode:function(y){return this.attributes.getNamedItem(y)},setAttribute:function(y,T){var k=this.ownerDocument.createAttribute(y);k.value=k.nodeValue=""+T,this.setAttributeNode(k)},removeAttribute:function(y){var T=this.getAttributeNode(y);T&&this.removeAttributeNode(T)},appendChild:function(y){return y.nodeType===de?this.insertBefore(y,null):function fu(y,T){return T.parentNode&&T.parentNode.removeChild(T),T.parentNode=y,T.previousSibling=y.lastChild,T.nextSibling=null,T.previousSibling?T.previousSibling.nextSibling=T:y.firstChild=T,y.lastChild=T,mi(y.ownerDocument,y,T),T}(this,y)},setAttributeNode:function(y){return this.attributes.setNamedItem(y)},setAttributeNodeNS:function(y){return this.attributes.setNamedItemNS(y)},removeAttributeNode:function(y){return this.attributes.removeNamedItem(y.nodeName)},removeAttributeNS:function(y,T){var k=this.getAttributeNodeNS(y,T);k&&this.removeAttributeNode(k)},hasAttributeNS:function(y,T){return null!=this.getAttributeNodeNS(y,T)},getAttributeNS:function(y,T){var k=this.getAttributeNodeNS(y,T);return k&&k.value||""},setAttributeNS:function(y,T,k){var U=this.ownerDocument.createAttributeNS(y,T);U.value=U.nodeValue=""+k,this.setAttributeNode(U)},getAttributeNodeNS:function(y,T){return this.attributes.getNamedItemNS(y,T)},getElementsByTagName:function(y){return new Tt(this,function(T){var k=[];return oi(T,function(U){U!==T&&U.nodeType==v&&("*"===y||U.tagName==y)&&k.push(U)}),k})},getElementsByTagNameNS:function(y,T){return new Tt(this,function(k){var U=[];return oi(k,function(ne){ne!==k&&ne.nodeType===v&&("*"===y||ne.namespaceURI===y)&&("*"===T||ne.localName==T)&&U.push(ne)}),U})}}).getElementsByTagName,Ze.prototype.getElementsByTagNameNS=nt.prototype.getElementsByTagNameNS,le(nt,Ge),Vi.prototype.nodeType=ke,le(Vi,Ge),$i.prototype={data:"",substringData:function(y,T){return this.data.substring(y,y+T)},appendData:function(y){this.nodeValue=this.data=y=this.data+y,this.length=y.length},insertData:function(y,T){this.replaceData(y,0,T)},appendChild:function(y){throw new Error(Ie[R])},deleteData:function(y,T){this.replaceData(y,T,"")},replaceData:function(y,T,k){var U=this.data.substring(0,y),ne=this.data.substring(y+T);this.nodeValue=this.data=k=U+k+ne,this.length=k.length}},le($i,Ge),Hr.prototype={nodeName:"#text",nodeType:V,splitText:function(y){var T=this.data,k=T.substring(y);T=T.substring(0,y),this.data=this.nodeValue=T,this.length=T.length;var U=this.ownerDocument.createTextNode(k);return this.parentNode&&this.parentNode.insertBefore(U,this.nextSibling),U}},le(Hr,$i),Gr.prototype={nodeName:"#comment",nodeType:ce},le(Gr,$i),ir.prototype={nodeName:"#cdata-section",nodeType:Ye},le(ir,$i),Ts.prototype.nodeType=Ne,le(Ts,Ge),zr.prototype.nodeType=Re,le(zr,Ge),sr.prototype.nodeType=tt,le(sr,Ge),rr.prototype.nodeType=ve,le(rr,Ge),Xe.prototype.nodeName="#document-fragment",Xe.prototype.nodeType=de,le(Xe,Ge),Wr.prototype.nodeType=te,le(Wr,Ge),ma.prototype.serializeToString=function(y,T,k){return Xr.call(y,T,k)},Ge.prototype.toString=Xr;try{if(Object.defineProperty){let y=function(T){switch(T.nodeType){case v:case de:var k=[];for(T=T.firstChild;T;)7!==T.nodeType&&8!==T.nodeType&&k.push(y(T)),T=T.nextSibling;return k.join("");default:return T.nodeValue}};Object.defineProperty(Tt.prototype,"length",{get:function(){return Dt(this),this.$$length}}),Object.defineProperty(Ge.prototype,"textContent",{get:function(){return y(this)},set:function(T){switch(this.nodeType){case v:case de:for(;this.firstChild;)this.removeChild(this.firstChild);(T||String(T))&&this.appendChild(this.ownerDocument.createTextNode(T));break;default:this.data=T,this.value=T,this.nodeValue=T}}}),_t=function(T,k,U){T["$$"+k]=U}}}catch{}ye.DocumentType=Ts,ye.DOMException=we,ye.DOMImplementation=vs,ye.Element=nt,ye.Node=Ge,ye.NodeList=be,ye.XMLSerializer
1=ma},4562:(Oe,ye,ae)=>{"use strict";var J=ae(9451).freeze;ye.XML_ENTITIES=J({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),ye.HTML_ENTITIES=J
vendor: 35,742 bytes, line 1
1({Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\u{1d504}",afr:"\u{1d51e}",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1d538}",aopf:"\u{1d552}",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\u{1d49c}",ascr:"\u{1d4b6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\u{1d505}",bfr:"\u{1d51f}",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\u{1d539}",bopf:"\u{1d553}",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\u{1d4b7}",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"\u212d",cfr:"\u{1d520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",cir:"\u25cb",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",Conint:"\u222f",conint:"\u222e",ContourIntegral:"\u222e",Copf:"\u2102",copf:"\u{1d554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xa9",copy:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",Cross:"\u2a2f",cross:"\u2717",Cscr:"\u{1d49e}",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",Cup:"\u22d3",cup:"\u222a",cupbrcap:"\u2a48",CupCap:"\u224d",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21a1",dArr:"\u21d3",darr:"\u2193",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21ca",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\u{1d507}",dfr:"\u{1d521}",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",Diamond:"\u22c4",diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\u{1d53b}",dopf:"\u{1d555}",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21d3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",DownTeeArrow:"\u21a7",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\u{1d49f}",dscr:"\u{1d4b9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",ecir:"\u2256",Ecirc:"\xca",ecirc:"\xea",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1d508}",efr:"\u{1d522}",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1d53c}",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212f",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\u{1d509}",ffr:"\u{1d523}",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\u{1d53d}",fopf:"\u{1d557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1d4bb}",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",ges:"\u2a7e",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\u{1d50a}",gfr:"\u{1d524}",Gg:"\u22d9",gg:"\u226b",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2aa5",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gnE:"\u2269",gne:"\u2a88",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\u{1d53e}",gopf:"\u{1d558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\u{1d4a2}",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",Gt:"\u226b",GT:">",gt:">",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",hArr:"\u21d4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",Hfr:"\u210c",hfr:"\u{1d525}",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",Hopf:"\u210d",hopf:"\u{1d559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210b",hscr:"\u{1d4bd}",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",Ifr:"\u2111",ifr:"\u{1d526}",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",in:"\u2208",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",Int:"\u222c",int:"\u222b",intcal:"\u22ba",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\u{1d540}",iopf:"\u{1d55a}",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",Iscr:"\u2110",iscr:"\u{1d4be}",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1d50d}",jfr:"\u{1d527}",jmath:"\u0237",Jopf:"\u{1d541}",jopf:"\u{1d55b}",Jscr:"\u{1d4a5}",jscr:"\u{1d4bf}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\u{1d50e}",kfr:"\u{1d528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\u{1d542}",kopf:"\u{1d55c}",Kscr:"\u{1d4a6}",kscr:"\u{1d4c0}",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",Lang:"\u27ea",lang:"\u27e8",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",Larr:"\u219e",lArr:"\u21d0",larr:"\u2190",larrb:"\u21e4",larrbfs:"\u291f",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",lat:"\u2aab",lAtail:"\u291b",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lBarr:"\u290e",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",Leftarrow:"\u21d0",leftarrow:"\u2190",LeftArrowBar:"\u21e4",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrow:"\u2194",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTee:"\u22a3",LeftTeeArrow:"\u21a4",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangle:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",LeftVectorBar:"\u2952",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",les:"\u2a7d",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\u{1d50f}",lfr:"\u{1d529}",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22d8",ll:"\u226a",llarr:"\u21c7",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lnE:"\u2268",lne:"\u2a87",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftarrow:"\u27f5",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",longrightarrow:"\u27f6",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\u{1d543}",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1d4c1}",Lsh:"\u21b0",lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226a",LT:"<",lt:"<",ltcc:"\u2aa6",ltcir:"\u2a79",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\u{1d510}",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",mid:"\u2223",midast:"*",midcir:"\u2af0",middot:"\xb7",minus:"\u2212",minusb:"\u229f",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\u{1d544}",mopf:"\u{1d55e}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1d4c2}",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266e",natural:"\u266e",naturals:"\u2115",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21d7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1d511}",nfr:"\u{1d52b}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nhArr:"\u21ce",nharr:"\u21ae",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlArr:"\u21cd",nlarr:"\u219a",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21cd",nleftarrow:"\u219a",nLeftrightarrow:"\u21ce",nleftrightarrow:"\u21ae",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",Nopf:"\u2115",nopf:"\u{1d55f}",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangle:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangle:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",npre:"\u2aaf\u0338",nprec:"\u2280",npreceq:"\u2aaf\u0338",nrArr:"\u21cf",nrarr:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nRightarrow:"\u21cf",nrightarrow:"\u219b",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\u{1d4a9}",nscr:"\u{1d4c3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nVDash:"\u22af",nVdash:"\u22ae",nvDash:"\u22ad",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwArr:"\u21d6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",ocir:"\u229a",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\u{1d512}",ofr:"\u{1d52c}",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\u{1d546}",oopf:"\u{1d560}",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",Or:"\u2a54",or:"\u2228",orarr:"\u21bb",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\u{1d4aa}",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",Otimes:"\u2a37",otimes:"\u2297",otimesas:"\u2a36",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",par:"\u2225",para:"\xb6",parallel:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\u{1d513}",pfr:"\u{1d52d}",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plus:"+",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",Popf:"\u2119",popf:"\u{1d561}",pound:"\xa3",Pr:"\u2abb",pr:"\u227a",prap:"\u2ab7",prcue:"\u227c",prE:"\u2ab3",pre:"\u2aaf",prec:"\u227a",precapprox:"\u2ab7",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",precsim:"\u227e",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportion:"\u2237",Proportional:"\u221d",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\u{1d4ab}",pscr:"\u{1d4c5}",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\u{1d514}",qfr:"\u{1d52e}",qint:"\u2a0c",Qopf:"\u211a",qopf:"\u{1d562}",qprime:"\u2057",Qscr:"\u{1d4ac}",qscr:"\u{1d4c6}",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",QUOT:'"',quot:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",Rang:"\u27eb",rang:"\u27e9",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",Rarr:"\u21a0",rArr:"\u21d2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",rAtail:"\u291c",ratail:"\u291a",ratio:"\u2236",rationals:"\u211a",RBarr:"\u2910",rBarr:"\u290f",rbarr:"\u290d",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",Re:"\u211c",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",rect:"\u25ad",REG:"\xae",reg:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",Rfr:"\u211c",rfr:"\u{1d52f}",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrow:"\u2192",Rightarrow:"\u21d2",rightarrow:"\u2192",RightArrowBar:"\u21e5",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangle:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",RightVectorBar:"\u2953",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",Ropf:"\u211d",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",Rscr:"\u211b",rscr:"\u{1d4c7}",Rsh:"\u21b1",rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",Sc:"\u2abc",sc:"\u227b",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227d",scE:"\u2ab4",sce:"\u2ab0",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdot:"\u22c5",sdotb:"\u22a1",sdote:"\u2a66",searhk:"\u2925",seArr:"\u21d8",searr:"\u2198",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1d516}",sfr:"\u{1d530}",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",Sopf:"\u{1d54a}",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25a1",Square:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squf:"\u25aa",srarr:"\u2192",Sscr:"\u{1d4ae}",sscr:"\u{1d4c8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",Sub:"\u22d0",sub:"\u2282",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",Subset:"\u22d0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succ:"\u227b",succapprox:"\u2ab8",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",Sum:"\u2211",sum:"\u2211",sung:"\u266a",Sup:"\u22d1",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",Supset:"\u22d1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swArr:"\u21d9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\u{1d517}",tfr:"\u{1d531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",Tilde:"\u223c",tilde:"\u02dc",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xd7",timesb:"\u22a0",timesbar:"\u2a31",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",top:"\u22a4",topbot:"\u2336",topcir:"\u2af1",Topf:"\u{1d54b}",topf:"\u{1d565}",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\u{1d4af}",tscr:"\u{1d4c9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",Uarr:"\u219f",uArr:"\u21d1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\u{1d518}",ufr:"\u{1d532}",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1d54c}",uopf:"\u{1d566}",UpArrow:"\u2191",Uparrow:"\u21d1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",UpDownArrow:"\u2195",Updownarrow:"\u21d5",updownarrow:"\u2195",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03d2",upsi:"\u03c5",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTee:"\u22a5",UpTeeArrow:"\u21a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\u{1d4b0}",uscr:"\u{1d4ca}",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",vArr:"\u21d5",varr:"\u2195",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",Vbar:"\u2aeb",vBar:"\u2ae8",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22ab",Vdash:"\u22a9",vDash:"\u22a8",vdash:"\u22a2",Vdashl:"\u2ae6",Vee:"\u22c1",vee:"\u2228",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\u{1d519}",vfr:"\u{1d533}",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\u{1d54d}",vopf:"\u{1d567}",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\u{1d4b1}",vscr:"\u{1d4cb}",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",Wedge:"\u22c0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1d51a}",wfr:"\u{1d534}",Wopf:"\u{1d54e}",wopf:"\u{1d568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1d4b2}",wscr:"\u{1d4cc}",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\u{1d51b}",xfr:"\u{1d535}",xhArr:"\u27fa",xharr:"\u27f7",Xi:"\u039e",xi:"\u03be",xlArr:"\u27f8",xlarr:"\u27f5",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\u{1d54f}",xopf:"\u{1d569}",xoplus:"\u2a01",xotime:"\u2a02",xrArr:"\u27f9",xrarr:"\u27f6",Xscr:"\u{1d4b3}",xscr:"\u{1d4cd}",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\u{1d51c}",yfr:"\u{1d536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1d550}",yopf:"\u{1d56a}",Yscr:"\u{1d4b4}",yscr:"\u{1d4ce}",YUcy:"\u042e",yucy:"\u044e",Yuml:"\u0178",yuml:"\xff",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",Zfr:"\u2128",zfr:"\u{1d537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",Zopf:"\u2124",zopf:"\u{1d56b}",Zscr:"\u{1d4b5}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"}),
vendor: 3,251 bytes, line 1
1ye.entityMap=ye.HTML_ENTITIES},3862:(Oe,ye,ae)=>{ae(6475);ye.DOMParser=ae(1020).DOMParser},6989:(Oe,ye,ae)=>{var J=ae(9451).NAMESPACE,fe=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=new RegExp("[\\-\\.0-9"+fe.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Te=new RegExp("^"+fe.source+z.source+"*(?::"+fe.source+z.source+"*)?$");function ke(S,w){this.message=S,this.locator=w,Error.captureStackTrace&&Error.captureStackTrace(this,ke)}function V(){}function ve(S,w){return w.lineNumber=S.lineNumber,w.columnNumber=S.columnNumber,w}function tt(S,w,R,Z,K,oe){function re(Le,Ve,we){R.attributeNames.hasOwnProperty(Le)&&oe.fatalError("Attribute "+Le+" redefined"),R.addValue(Le,Ve.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,K),we)}for(var pe,se=++w,W=0;;){var ie=S.charAt(se);switch(ie){case"=":if(1===W)pe=S.slice(w,se),W=3;else{if(2!==W)throw new Error("attribute equal must after attrName");W=3}break;case"'":case'"':if(3===W||1===W){if(1===W&&(oe.warning('attribute value must after "="'),pe=S.slice(w,se)),!((se=S.indexOf(ie,w=se+1))>0))throw new Error("attribute value no end '"+ie+"' match");re(pe,ee=S.slice(w,se),w-1),W=5}else{if(4!=W)throw new Error('attribute value must after "="');re(pe,ee=S.slice(w,se),w),oe.warning('attribute "'+pe+'" missed start quot('+ie+")!!"),w=se+1,W=5}break;case"/":switch(W){case 0:R.setTagName(S.slice(w,se));case 5:case 6:case 7:W=7,R.closed=!0;case 4:case 1:break;case 2:R.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return oe.error("unexpected end of input"),0==W&&R.setTagName(S.slice(w,se)),se;case">":switch(W){case 0:R.setTagName(S.slice(w,se));case 5:case 6:case 7:break;case 4:case 1:"/"===(ee=S.slice(w,se)).slice(-1)&&(R.closed=!0,ee=ee.slice(0,-1));case 2:2===W&&(ee=pe),4==W?(oe.warning('attribute "'+ee+'" missed quot(")!'),re(pe,ee,w)):((!J.isHTML(Z[""])||!ee.match(/^(?:disabled|checked|selected)$/i))&&oe.warning('attribute "'+ee+'" missed value!! "'+ee+'" instead!!'),re(ee,ee,w));break;case 3:throw new Error("attribute value missed!!")}return se;case"\x80":ie=" ";default:if(ie<=" ")switch(W){case 0:R.setTagName(S.slice(w,se)),W=6;break;case 1:pe=S.slice(w,se),W=2;break;case 4:var ee=S.slice(w,se);oe.warning('attribute "'+ee+'" missed quot(")!!'),re(pe,ee,w);case 5:W=6}else switch(W){case 2:(!J.isHTML(Z[""])||!pe.match(/^(?:disabled|checked|selected)$/i))&&oe.warning('attribute "'+pe+'" missed value!! "'+pe+'" instead2!!'),re(pe,pe,w),w=se,W=1;break;case 5:oe.warning('attribute space is required"'+pe+'"!!');case 6:W=1,w=se;break;case 3:W=4,w=se;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}se++}}function te(S,w,R){for(var Z=S.tagName,K=null,ie=S.length;ie--;){var oe=S[ie],re=oe.qName,pe=oe.value;if((xe=re.indexOf(":"))>0)var ee=oe.prefix=re.slice(0,xe),se=re.slice(xe+1),W="xmlns"===ee&&se;else se=re,ee=null,W="xmlns"===re&&"";oe.localName=se,!1!==W&&(null==K&&(K={},Ne(R,R={})),R[W]=K[W]=pe,oe.uri=J.XMLNS,w.startPrefixMapping(W,pe))}for(ie=S.length;ie--;)(ee=(oe=S[ie]).prefix)&&("xml"===ee&&(oe.uri=J.XML),"xmlns"!==ee&&(oe.uri=R[ee||""]));var xe;(xe=Z.indexOf(":"))>
vendor: 5,196 bytes, line 1
10?(ee=S.prefix=Z.slice(0,xe),se=S.localName=Z.slice(xe+1)):(ee=null,se=S.localName=Z);var Le=S.uri=R[ee||""];if(w.startElement(Le,se,Z,S),!S.closed)return S.currentNSMap=R,S.localNSMap=K,!0;if(w.endElement(Le,se,Z),K)for(ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&w.endPrefixMapping(ee)}function ce(S,w,R,Z,K){if(/^(?:script|textarea)$/i.test(R)){var oe=S.indexOf("</"+R+">",w),re=S.substring(w+1,oe);if(/[&<]/.test(re))return/^script$/i.test(R)?(K.characters(re,0,re.length),oe):(re=re.replace(/&#?\w+;/g,Z),K.characters(re,0,re.length),oe)}return w+1}function Ce(S,w,R,Z){var K=Z[R];return null==K&&((K=S.lastIndexOf("</"+R+">"))<w&&(K=S.lastIndexOf("</"+R)),Z[R]=K),K<w}function Ne(S,w){for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&(w[R]=S[R])}function de(S,w,R,Z){if("-"===S.charAt(w+2))return"-"===S.charAt(w+3)?(oe=S.indexOf("--\x3e",w+4))>w?(R.comment(S,w+4,oe-w-4),oe+3):(Z.error("Unclosed comment"),-1):-1;if("CDATA["==S.substr(w+3,6)){var oe=S.indexOf("]]>",w+9);return R.startCDATA(),R.characters(S,w+9,oe-w-9),R.endCDATA(),oe+3}var re=function Ie(S,w){var R,Z=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(K.lastIndex=w,K.exec(S);R=K.exec(S);)if(Z.push(R),R[1])return Z}(S,w),pe=re.length;if(pe>1&&/!doctype/i.test(re[0][0])){var ee=re[1][0],se=!1,W=!1;pe>3&&(/^public$/i.test(re[2][0])?(se=re[3][0],W=pe>4&&re[4][0]):/^system$/i.test(re[2][0])&&(W=re[3][0]));var ie=re[pe-1];return R.startDTD(ee,se,W),R.endDTD(),ie.index+ie[0].length}return-1}function Re(S,w,R){var Z=S.indexOf("?>",w);if(Z){var K=S.substring(w,Z).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return K?(R.processingInstruction(K[1],K[2]),Z+2):-1}return-1}function je(){this.attributeNames={}}(ke.prototype=new Error).name=ke.name,V.prototype={parse:function(S,w,R){var Z=this.domBuilder;Z.startDocument(),Ne(w,w={}),function Ye(S,w,R,Z,K){function re(rt){var kt=rt.slice(1,-1);return Object.hasOwnProperty.call(R,kt)?R[kt]:"#"===kt.charAt(0)?function oe(rt){return rt>65535?(rt-=65536,String.fromCharCode(55296+(rt>>10),56320+(1023&rt))):String.fromCharCode(rt)}(parseInt(kt.substr(1).replace("x","0x"))):(K.error("entity not found:"+rt),rt)}function pe(rt){if(rt>we){var kt=S.substring(we,rt).replace(/&#?\w+;/g,re);xe&&ee(we),Z.characters(kt,0,rt-we),we=rt}}function ee(rt,kt){for(;rt>=W&&(kt=ie.exec(S));)W=(se=kt.index)+kt[0].length,xe.lineNumber++;xe.columnNumber=rt-se+1}for(var se=0,W=0,ie=/.*(?:\r\n?|\n)|.*$/g,xe=Z.locator,Le=[{currentNSMap:w}],Ve={},we=0;;){try{var be=S.indexOf("<",we);if(be<0){if(!S.substr(we).match(/^\s*$/)){var Tt=Z.doc,Dt=Tt.createTextNode(S.substr(we));Tt.appendChild(Dt),Z.currentElement=Dt}return}switch(be>we&&pe(be),S.charAt(be+1)){case"/":var Ze=S.indexOf(">",be+3),lt=S.substring(be+2,Ze).replace(/[ \t\n\r]+$/g,""),At=Le.pop();Ze<0?(lt=S.substring(be+2).replace(/[\s<].*/,""),K.error("end tag name: "+lt+" is not complete:"+At.tagName),Ze=be+1+lt.length):lt.match(/\s</)&&(lt=lt.replace(/[\s<].*/,""),K.error("end tag name: "+lt+" maybe not complete"),Ze=be+1+lt.length);var Yt=At.localNSMap,xt=At.tagName==lt;if(xt||At.tagName&&At.tagName.toLowerCase()==lt.toLowerCase()){if(Z.endElement(At.uri,At.localName,lt),Yt)for(var Ge in Yt)Object.prototype.hasOwnProperty.call(Yt,Ge)&&Z.endPrefixMapping(Ge);xt||K.fatalError("end tag name: "+lt+" is not match the current start tagName:"+At.tagName)}else Le.push(At);Ze++;break;case"?":xe&&ee(be),Ze=Re(S,be,Z);break;case"!":xe&&ee(be),Ze=de(S,be,Z,K);break;default:xe&&ee(be);var St=new je,oi=Le[Le.length-1].currentNSMap,ki=(Ze=tt(S,be,St,oi,re,K),St.length);if(!St.closed&&Ce(S,Ze,St.tagName,Ve)&&(St.closed=!0,R.nbsp||K.warning("unclosed xml attribute")),xe&&ki){for(var ji=ve(xe,{}),mi=0;mi<ki;mi++){var es=St[mi];ee(es.offset),es.locator=ve(xe,{})}Z.locator=ji,te(St,Z,oi)&&Le.push(St),Z.locator=xe}else te(St,Z,oi)&&Le.push(St);J.isHTML(St.uri)&&!St.closed?Ze=ce(S,Ze,St.tagName,re,Z):Ze++}}catch(rt){if(rt instanceof ke)throw rt;K.error("element parse error: "+rt),Ze=-1}Ze>we?we=Ze:pe(Math.max(be,we)+1)}}(S,w,R,Z,this.errorHandler),Z.endDocument()}},je.prototype={setTagName:function(S){if(!Te.test(S))throw new Error("invalid tagName:"+S);this.tagName=S},addValue:function(S,w,R){if(!Te.test(S))throw new Error("invalid attribute:"+S);this.attributeNames[S]=this.length,this[this.length++]={qName:S,value:w,offset:R}},length:0,getLocalName:function(S){return this[S].localName},getLocator:function(S){return this[S].locator},getQName:function(S){return this[S].qName},getURI:function(S){return this[S].uri},getValue:function(S){return this[S].value}},ye.XMLReader=V,ye.ParseError=ke},7598:(Oe,ye,ae)=>{var z,J=typeof global<"u"?global:typeof window<"u"?window:{},fe=ae(5893);typeof document<"u"?z=document:(z=J["__GLOBAL_DOCUMENT_CACHE@4"])||(z=J["__GLOBAL_DOCUMENT_CACHE@4"]=fe),Oe.exports=z},6382:Oe=>{var ye;ye=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oe.exports=ye},7794:Oe=>{Oe.exports=function ae(J){if(!J)return!1;var fe=ye.call(J);return"[object Function]"===fe||"function"==typeof J&&"[object RegExp]"!==fe||typeof window<"u"&&(J===window.setTimeout||J===window.alert||J===window.confirm||J===window.prompt)};var ye=Object.prototype.toString},8317:(Oe,ye)=>
vendor: 5,269 bytes, line 1
1{function ae(Q){if(Q&&"object"==typeof Q){var g=Q.which||Q.keyCode||Q.charCode;g&&(Q=g)}if("number"==typeof Q)return Te[Q];var _e,me=String(Q);return(_e=J[me.toLowerCase()])?_e:(_e=fe[me.toLowerCase()])||(1===me.length?me.charCodeAt(0):void 0)}ae.isEventKey=function(g,me){if(g&&"object"==typeof g){var _e=g.which||g.keyCode||g.charCode;if(null==_e)return!1;if("string"==typeof me){var le;if(le=J[me.toLowerCase()])return le===_e;if(le=fe[me.toLowerCase()])return le===_e}else if("number"==typeof me)return me===_e;return!1}};var J=(ye=Oe.exports=ae).code=ye.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},fe=ye.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(z=97;z<123;z++)J[String.fromCharCode(z)]=z-32;for(var z=48;z<58;z++)J[z-48]=z;for(z=1;z<13;z++)J["f"+z]=z+111;for(z=0;z<10;z++)J["numpad "+z]=z+96;var Te=ye.names=ye.title={};for(z in J)Te[J[z]]=z;for(var Y in fe)J[Y]=fe[Y]},5035:(Oe,ye,ae)=>{var J=ae(301).getUint64;Oe.exports=function(z){var Te=new DataView(z.buffer,z.byteOffset,z.byteLength),Y={version:z[0],flags:new Uint8Array(z.subarray(1,4)),references:[],referenceId:Te.getUint32(4),timescale:Te.getUint32(8)},Q=12;0===Y.version?(Y.earliestPresentationTime=Te.getUint32(Q),Y.firstOffset=Te.getUint32(Q+4),Q+=8):(Y.earliestPresentationTime=J(z.subarray(Q)),Y.firstOffset=J(z.subarray(Q+8)),Q+=16);var g=Te.getUint16(Q+=2);for(Q+=2;g>0;Q+=12,g--)Y.references.push({referenceType:(128&z[Q])>>>7,referencedSize:2147483647&Te.getUint32(Q),subsegmentDuration:Te.getUint32(Q+4),startsWithSap:!!(128&z[Q+8]),sapType:(112&z[Q+8])>>>4,sapDeltaTime:268435455&Te.getUint32(Q+8)});return Y}},5562:Oe=>{var ae,J,fe,z,Te,Y,Q;Te=function(g,me){return ae(z(g,me))},Y=function(g,me){return J(fe(g),me)},Q=function(g,me,_e){return fe(_e?g:g-me)},Oe.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:ae=function(g){return 9e4*g},secondsToAudioTs:J=function(g,me){return g*me},videoTsToSeconds:fe=function(g){return g/9e4},audioTsToSeconds:z=function(g,me){return g/me},audioTsToVideoTs:Te,videoTsToAudioTs:Y,metadataTsToSeconds:Q}},301:Oe=>{var ye=Math.pow(2,32);Oe.exports={getUint64:function(J){var z,fe=new DataView(J.buffer,J.byteOffset,J.byteLength);return fe.getBigUint64?(z=fe.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(z):z:fe.getUint32(0)*ye+fe.getUint32(4)},MAX_UINT32:ye}},4135:Oe=>{Oe.exports=function ye(ae,J){var fe,z=null;try{fe=JSON.parse(ae,J)}catch(Te){z=Te}return[z,fe]}},6367:function(Oe){var ae,J,fe,z,Te;ae=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,J=/^(?=([^\/?#]*))\1([^]*)$/,fe=/(?:\/|^)\.(?=\/)/g,z=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,Oe.exports=Te={buildAbsoluteURL:function(Y,Q,g){if(g=g||{},Y=Y.trim(),!(Q=Q.trim())){if(!g.alwaysNormalize)return Y;var me=Te.parseURL(Y);if(!me)throw new Error("Error trying to parse base URL.");return me.path=Te.normalizePath(me.path),Te.buildURLFromParts(me)}var _e=Te.parseURL(Q);if(!_e)throw new Error("Error trying to parse relative URL.");if(_e.scheme)return g.alwaysNormalize?(_e.path=Te.normalizePath(_e.path),Te.buildURLFromParts(_e)):Q;var le=Te.parseURL(Y);if(!le)throw new Error("Error trying to parse base URL.");if(!le.netLoc&&le.path&&"/"!==le.path[0]){var Ue=J.exec(le.path);le.netLoc=Ue[1],le.path=Ue[2]}le.netLoc&&!le.path&&(le.path="/");var v={scheme:le.scheme,netLoc:_e.netLoc,path:null,params:_e.params,query:_e.query,fragment:_e.fragment};if(!_e.netLoc&&(v.netLoc=le.netLoc,"/"!==_e.path[0]))if(_e.path){var ke=le.path,V=ke.substring(0,ke.lastIndexOf("/")+1)+_e.path;v.path=Te.normalizePath(V)}else v.path=le.path,_e.params||(v.params=le.params,_e.query||(v.query=le.query));return null===v.path&&(v.path=g.alwaysNormalize?Te.normalizePath(_e.path):_e.path),Te.buildURLFromParts(v)},parseURL:function(Y){var Q=ae.exec(Y);return Q?{scheme:Q[1]||"",netLoc:Q[2]||"",path:Q[3]||"",params:Q[4]||"",query:Q[5]||"",fragment:Q[6]||""}:null},normalizePath:function(Y){for(Y=Y.split("").reverse().join("").replace(fe,"");Y.length!==(Y=Y.replace(z,"")).length;);return Y.split("").reverse().join("")},buildURLFromParts:function(Y){return Y.scheme+Y.netLoc+Y.path+Y.params+Y.query+Y.fragment}}},5506:(Oe,ye,ae)=>{var J=ae(6382),fe=Oe.exports={WebVTT:ae(4149),VTTCue:ae(4472),VTTRegion:ae(9880)};J.vttjs=fe,J.WebVTT=fe.WebVTT;var z=fe.VTTCue,Te=fe.VTTRegion,Y=J.VTTCue,Q=J.VTTRegion;fe.shim=function(){J.VTTCue=z,J.VTTRegion=Te},fe.restore=function(){J.VTTCue=Y,J.VTTRegion=Q},J.VTTCue||fe.shim()},4149:(Oe,ye,ae)=>{var J=ae(7598),fe=Object.create||function(){function S(){}return function(w){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return S.prototype=w,new S}}();
vendor: 5,536 bytes, line 1
1function z(S,w){this.name="ParsingError",this.code=S.code,this.message=w||S.message}function Te(S){function w(Z,K,oe,re){return 3600*(0|Z)+60*(0|K)+(0|oe)+(0|re)/1e3}var R=S.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return R?R[3]?w(R[1],R[2],R[3].replace(":",""),R[4]):R[1]>59?w(R[1],R[2],0,R[4]):w(0,R[1],R[2],R[4]):null}function Y(){this.values=fe(null)}function Q(S,w,R,Z){var K=Z?S.split(Z):[S];for(var oe in K)if("string"==typeof K[oe]){var re=K[oe].split(R);2===re.length&&w(re[0].trim(),re[1].trim())}}function g(S,w,R){var Z=S;function K(){var pe=Te(S);if(null===pe)throw new z(z.Errors.BadTimeStamp,"Malformed timestamp: "+Z);return S=S.replace(/^[^\sa-zA-Z-]+/,""),pe}function re(){S=S.replace(/^\s+/,"")}if(re(),w.startTime=K(),re(),"--\x3e"!==S.substr(0,3))throw new z(z.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+Z);S=S.substr(3),re(),w.endTime=K(),re(),function oe(pe,ee){var se=new Y;Q(pe,function(W,ie){switch(W){case"region":for(var xe=R.length-1;xe>=0;xe--)if(R[xe].id===ie){se.set(W,R[xe].region);break}break;case"vertical":se.alt(W,ie,["rl","lr"]);break;case"line":var Le=ie.split(","),Ve=Le[0];se.integer(W,Ve),se.percent(W,Ve)&&se.set("snapToLines",!1),se.alt(W,Ve,["auto"]),2===Le.length&&se.alt("lineAlign",Le[1],["start","center","end"]);break;case"position":Le=ie.split(","),se.percent(W,Le[0]),2===Le.length&&se.alt("positionAlign",Le[1],["start","center","end"]);break;case"size":se.percent(W,ie);break;case"align":se.alt(W,ie,["start","center","end","left","right"])}},/:/,/\s/),ee.region=se.get("region",null),ee.vertical=se.get("vertical","");try{ee.line=se.get("line","auto")}catch{}ee.lineAlign=se.get("lineAlign","start"),ee.snapToLines=se.get("snapToLines",!0),ee.size=se.get("size",100);try{ee.align=se.get("align","center")}catch{ee.align=se.get("align","middle")}try{ee.position=se.get("position","auto")}catch{ee.position=se.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},ee.align)}ee.positionAlign=se.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},ee.align)}(S,w)}(z.prototype=fe(Error.prototype)).constructor=z,z.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Y.prototype={set:function(S,w){!this.get(S)&&""!==w&&(this.values[S]=w)},get:function(S,w,R){return R?this.has(S)?this.values[S]:w[R]:this.has(S)?this.values[S]:w},has:function(S){return S in this.values},alt:function(S,w,R){for(var Z=0;Z<R.length;++Z)if(w===R[Z]){this.set(S,w);break}},integer:function(S,w){/^-?\d+$/.test(w)&&this.set(S,parseInt(w,10))},percent:function(S,w){return!!(w.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(w=parseFloat(w),w>=0&&w<=100))&&(this.set(S,w),!0)}};var me=J.createElement&&J.createElement("textarea"),_e={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},le={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},Ue={v:"title",lang:"lang"},v={rt:"ruby"};function ke(S,w){function R(){if(!w)return null;var we=w.match(/^([^<]*)(<[^>]*>?)?/);return function Ve(be){return w=w.substr(be.length),be}(we[1]?we[1]:we[2])}function Z(Ve){return me.innerHTML=Ve,Ve=me.textContent,me.textContent="",Ve}function oe(Ve,we){var be=_e[Ve];if(!be)return null;var Tt=S.document.createElement(be),Dt=Ue[Ve];return Dt&&we&&(Tt[Dt]=we.trim()),Tt}for(var ee,re=S.document.createElement("div"),pe=re,se=[];null!==(ee=R());)if("<"!==ee[0])pe.appendChild(S.document.createTextNode(Z(ee)));else{if("/"===ee[1]){se.length&&se[se.length-1]===ee.substr(2).replace(">","")&&(se.pop(),pe=pe.parentNode);continue}var ie,W=Te(ee.substr(1,ee.length-2));if(W){ie=S.document.createProcessingInstruction("timestamp",W),pe.appendChild(ie);continue}var xe=ee.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!xe||!(ie=oe(xe[1],xe[3]))||v[(we=ie).localName]&&v[we.localName]!==pe.localName)continue;if(xe[2]){var Le=xe[2].split(".");Le.forEach(function(Ve){var we=/^bg_/.test(Ve),be=we?Ve.slice(3):Ve;le.hasOwnProperty(be)&&(ie.style[we?"background-color":"color"]=le[be])}),ie.className=Le.join(" ")}se.push(xe[1]),pe.appendChild(ie),pe=ie}var we;return re}var V=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 13,871 bytes, line 1
1],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ye(S){for(var w=0;w<V.length;w++){var R=V[w];if(S>=R[0]&&S<=R[1])return!0}return!1}function ve(S){var w=[],R="";if(!S||!S.childNodes)return"ltr";function K(pe,ee){for(var se=ee.childNodes.length-1;se>=0;se--)pe.push(ee.childNodes[se])}function oe(pe){if(!pe||!pe.length)return null;var ee=pe.pop(),se=ee.textContent||ee.innerText;if(se){var W=se.match(/^.*(\n|\r)/);return W?(pe.length=0,W[0]):se}return"ruby"===ee.tagName?oe(pe):ee.childNodes?(K(pe,ee),oe(pe)):void 0}for(K(w,S);R=oe(w);)for(var re=0;re<R.length;re++)if(Ye(R.charCodeAt(re)))return"rtl";return"ltr"}function te(){}function ce(S,w,R){te.call(this),this.cue=w,this.cueDiv=ke(S,w.text);var Z={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===w.vertical?"horizontal-tb":"lr"===w.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(Z,this.cueDiv),this.div=S.document.createElement("div"),Z={direction:ve(this.cueDiv),writingMode:""===w.vertical?"horizontal-tb":"lr"===w.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===w.align?"center":w.align,font:R.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(Z),this.div.appendChild(this.cueDiv);var K=0;switch(w.positionAlign){case"start":case"line-left":K=w.position;break;case"center":K=w.position-w.size/2;break;case"end":case"line-right":K=w.position-w.size}this.applyStyles(""===w.vertical?{left:this.formatStyle(K,"%"),width:this.formatStyle(w.size,"%")}:{top:this.formatStyle(K,"%"),height:this.formatStyle(w.size,"%")}),this.move=function(oe){this.applyStyles({top:this.formatStyle(oe.top,"px"),bottom:this.formatStyle(oe.bottom,"px"),left:this.formatStyle(oe.left,"px"),right:this.formatStyle(oe.right,"px"),height:this.formatStyle(oe.height,"px"),width:this.formatStyle(oe.width,"px")})}}function Ce(S){var w,R,Z,K;if(S.div){R=S.div.offsetHeight,Z=S.div.offsetWidth,K=S.div.offsetTop;var oe=(oe=S.div.childNodes)&&(oe=oe[0])&&oe.getClientRects&&oe.getClientRects();S=S.div.getBoundingClientRect(),w=oe?Math.max(oe[0]&&oe[0].height||0,S.height/oe.length):0}this.left=S.left,this.right=S.right,this.top=S.top||K,this.height=S.height||R,this.bottom=S.bottom||K+(S.height||R),this.width=S.width||Z,this.lineHeight=void 0!==w?w:S.lineHeight}function Ne(S,w,R,Z){var oe=new Ce(w),re=w.cue,pe=function tt(S){if("number"==typeof S.line&&(S.snapToLines||S.line>=0&&S.line<=100))return S.line;if(!S.track||!S.track.textTrackList||!S.track.textTrackList.mediaElement)return-1;for(var w=S.track,R=w.textTrackList,Z=0,K=0;K<R.length&&R[K]!==w;K++)"showing"===R[K].mode&&Z++;return-1*++Z}(re),ee=[];if(re.snapToLines){var se;switch(re.vertical){case"":ee=["+y","-y"],se="height";break;case"rl":ee=["+x","-x"],se="width";break;case"lr":ee=["-x","+x"],se="width"}var W=oe.lineHeight,ie=W*Math.round(pe),xe=R[se]+W,Le=ee[0];Math.abs(ie)>xe&&(ie=ie<0?-1:1,ie*=Math.ceil(xe/W)*W),pe<0&&(ie+=""===re.vertical?R.height:R.width,ee=ee.reverse()),oe.move(Le,ie)}else{var Ve=oe.lineHeight/R.height*100;switch(re.lineAlign){case"center":pe-=Ve/2;break;case"end":pe-=Ve}switch(re.vertical){case"":w.applyStyles({top:w.formatStyle(pe,"%")});break;case"rl":w.applyStyles({left:w.formatStyle(pe,"%")});break;case"lr":w.applyStyles({right:w.formatStyle(pe,"%")})}ee=["+y","-x","+x","-y"],oe=new Ce(w)}var we=function K(be,Tt){for(var Dt,lt=new Ce(be),At=1,Yt=0;Yt<Tt.length;Yt++){for(;be.overlapsOppositeAxis(R,Tt[Yt])||be.within(R)&&be.overlapsAny(Z);)be.move(Tt[Yt]);if(be.within(R))return be;var xt=be.intersectPercentage(R);At>xt&&(Dt=new Ce(be),At=xt),be=new Ce(lt)}return Dt||lt}(oe,ee);w.move(we.toCSSCompatValues(R))}function de(){}te.prototype.applyStyles=function(S,w){for(var R in w=w||this.div,S)S.hasOwnProperty(R)&&(w.style[R]=S[R])},te.prototype.formatStyle=function(S,w){return 0===S?0:S+w},(ce.prototype=fe(te.prototype)).constructor=ce,Ce.prototype.move=function(S,w){switch(w=void 0!==w?w:this.lineHeight,S){case"+x":this.left+=w,this.right+=w;break;case"-x":this.left-=w,this.right-=w;break;case"+y":this.top+=w,this.bottom+=w;break;case"-y":this.top-=w,this.bottom-=w}},Ce.prototype.overlaps=function(S){return this.left<S.right&&this.right>S.left&&this.top<S.bottom&&this.bottom>S.top},Ce.prototype.overlapsAny=function(S){for(var w=0;w<S.length;w++)if(this.overlaps(S[w]))return!0;return!1},Ce.prototype.within=function(S){return this.top>=S.top&&this.bottom<=S.bottom&&this.left>=S.left&&this.right<=S.right},Ce.prototype.overlapsOppositeAxis=function(S,w){switch(w){case"+x":return this.left<S.left;case"-x":return this.right>S.right;case"+y":return this.top<S.top;case"-y":return this.bottom>S.bottom}},Ce.prototype.intersectPercentage=function(S){return Math.max(0,Math.min(this.right,S.right)-Math.max(this.left,S.left))*Math.max(0,Math.min(this.bottom,S.bottom)-Math.max(this.top,S.top))/(this.height*this.width)},Ce.prototype.toCSSCompatValues=function(S){return{top:this.top-S.top,bottom:S.bottom-this.bottom,left:this.left-S.left,right:S.right-this.right,height:this.height,width:this.width}},Ce.getSimpleBoxPosition=function(S){var w=S.div?S.div.offsetHeight:S.tagName?S.offsetHeight:0,R=S.div?S.div.offsetWidth:S.tagName?S.offsetWidth:0,Z=S.div?S.div.offsetTop:S.tagName?S.offsetTop:0;return{left:(S=S.div?S.div.getBoundingClientRect():S.tagName?S.getBoundingClientRect():S).left,right:S.right,top:S.top||Z,height:S.height||w,bottom:S.bottom||Z+(S.height||w),width:S.width||R}},de.StringDecoder=function(){return{decode:function(S){if(!S)return"";if("string"!=typeof S)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(S))}}},de.convertCueToDOMTree=function(S,w){return S&&w?ke(S,w):null},de.processCues=function(S,w,R){if(!S||!w||!R)return null;for(;R.firstChild;)R.removeChild(R.firstChild);var Z=S.document.createElement("div");if(Z.style.position="absolute",Z.style.left="0",Z.style.right="0",Z.style.top="0",Z.style.bottom="0",Z.style.margin="1.5%",R.appendChild(Z),function K(W){for(var ie=0;ie<W.length;ie++)if(W[ie].hasBeenReset||!W[ie].displayState)return!0;return!1}(w)){var re=[],pe=Ce.getSimpleBoxPosition(Z),se={font:Math.round(.05*pe.height*100)/100+"px sans-serif"};!function(){for(var W,ie,xe=0;xe<w.length;xe++)W=new ce(S,ie=w[xe],se),Z.appendChild(W.div),Ne(0,W,pe,re),ie.displayState=W.div,re.push(Ce.getSimpleBoxPosition(W))}()}else for(var oe=0;oe<w.length;oe++)Z.appendChild(w[oe].displayState)},(de.Parser=function(S,w,R){R||(R=w,w={}),w||(w={}),this.window=S,this.vttjs=w,this.state="INITIAL",this.buffer="",this.decoder=R||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(S){if(!(S instanceof z))throw S;this.onparsingerror&&this.onparsingerror(S)},parse:function(S){var W,w=this;function R(){for(var W=w.buffer,ie=0;ie<W.length&&"\r"!==W[ie]&&"\n"!==W[ie];)++ie;var xe=W.substr(0,ie);return"\r"===W[ie]&&++ie,"\n"===W[ie]&&++ie,w.buffer=W.substr(ie),xe}S&&(w.buffer+=w.decoder.decode(S,{stream:!0}));try{var re;if("INITIAL"===w.state){if(!/\r\n|\n/.test(w.buffer))return this;var pe=(re=R()).match(/^WEBVTT([ \t].*)?$/);if(!pe||!pe[0])throw new z(z.Errors.BadSignature);w.state="HEADER"}for(var ee=!1;w.buffer;){if(!/\r\n|\n/.test(w.buffer))return this;switch(ee?ee=!1:re=R(),w.state){case"HEADER":/:/.test(re)?(W=re).match(/X-TIMESTAMP-MAP/)?Q(W,function(ie,xe){"X-TIMESTAMP-MAP"===ie&&function K(W){var ie=new Y;Q(W,function(xe,Le){switch(xe){case"MPEGT":ie.integer(xe+"S",Le);break;case"LOCA":ie.set(xe+"L",Te(Le))}},/[^\d]:/,/,/),w.ontimestampmap&&w.ontimestampmap({MPEGTS:ie.get("MPEGTS"),LOCAL:ie.get("LOCAL")})}(xe)},/=/):Q(W,function(ie,xe){"Region"===ie&&function Z(W){var ie=new Y;if(Q(W,function(Le,Ve){switch(Le){case"id":ie.set(Le,Ve);break;case"width":ie.percent(Le,Ve);break;case"lines":ie.integer(Le,Ve);break;case"regionanchor":case"viewportanchor":var we=Ve.split(",");if(2!==we.length)break;var be=new Y;if(be.percent("x",we[0]),be.percent("y",we[1]),!be.has("x")||!be.has("y"))break;ie.set(Le+"X",be.get("x")),ie.set(Le+"Y",be.get("y"));break;case"scroll":ie.alt(Le,Ve,["up"])}},/=/,/\s/),ie.has("id")){var xe=new(w.vttjs.VTTRegion||w.window.VTTRegion);xe.width=ie.get("width",100),xe.lines=ie.get("lines",3),xe.regionAnchorX=ie.get("regionanchorX",0),xe.regionAnchorY=ie.get("regionanchorY",100),xe.viewportAnchorX=ie.get("viewportanchorX",0),xe.viewportAnchorY=ie.get("viewportanchorY",100),xe.scroll=ie.get("scroll",""),w.onregion&&w.onregion(xe),w.regionList.push({id:ie.get("id"),region:xe})}}(xe)},/:/):re||(w.state="ID");continue;case"NOTE":re||(w.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(re)){w.state="NOTE";break}if(!re)continue;w.cue=new(w.vttjs.VTTCue||w.window.VTTCue)(0,0,"");try{w.cue.align="center"}catch{w.cue.align="middle"}if(w.state="CUE",-1===re.indexOf("--\x3e")){w.cue.id=re;continue}case"CUE":try{g(re,w.cue,w.regionList)}catch(W){w.reportOrThrowError(W),w.cue=null,w.state="BADCUE";continue}w.state="CUETEXT";continue;case"CUETEXT":var se=-1!==re.indexOf("--\x3e");if(!re||se&&(ee=!0)){w.oncue&&w.oncue(w.cue),w.cue=null,w.state="ID";continue}w.cue.text&&(w.cue.text+="\n"),w.cue.text+=re.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":re||(w.state="ID");continue}}}catch(W){w.reportOrThrowError(W),"CUETEXT"===w.state&&w.cue&&w.oncue&&w.oncue(w.cue),w.cue=null,w.state="INITIAL"===w.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var S=this;try{if(S.buffer+=S.decoder.decode(),(S.cue||"HEADER"===S.state)&&(S.buffer+="\n\n",S.parse()),"INITIAL"===S.state)throw new z(z.Errors.BadSignature)}catch(w){S.reportOrThrowError(w)}return S.onflush&&S.onflush(),this}},Oe.exports=de},4472:Oe=>{var ae={"":1,lr:1,rl:1},J={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function z(Y){return"string"==typeof Y&&!!J[Y.toLowerCase()]&&Y.toLowerCase()}function Te(Y,Q,g){this.hasBeenReset=!1;var me="",_e=!1,le=Y,Ue=Q,v=g,ke=null,V="",Ye=!0,ve="auto",tt="start",te="auto",ce="auto",Ce=100,Ne="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return me},set:function(de){me=""+de}},pauseOnExit:{enumerable:!0,get:function(){return _e},set:function(de){_e=!!de}},startTime:{enumerable:!0,get:function(){return le},set:function(de){if("number"!=typeof de)throw new TypeError("Start time must be set to a number.");le=de,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return Ue},set:function(de){if("number"!=typeof de)throw new TypeError("End time must be set to a number.");Ue=de,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return v},set:function(de){v=""+de,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return ke},set:function(de){ke=de,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return V},set:function(de){var Re=function fe(Y){return"string"==typeof Y&&!!ae[Y.toLowerCase()]&&Y.toLowerCase()}(de);if(!1===Re)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");V=Re,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return Ye},set:function(de){Ye=!!de,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return ve},set:function(de){if("number"!=typeof de&&"auto"!==de)throw new SyntaxError("Line: an invalid number or illegal string was specified.");ve=de,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return tt},set:function(de){var Re=z(de);Re?(tt=Re,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return te},set:function(de){if(de<0||de>100)throw new Error("Position must be between 0 and 100.");te=de,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return ce},set:function(de){var Re=z(de);Re?(ce=Re,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return Ce},set:function(de){if(de<0||de>100)throw new Error("Size must be between 0 and 100.");Ce=de,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return Ne},set:function(de){var Re=z(de);if(!Re)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");Ne=Re,this.hasBeenReset=!0}}}),this.displayState=void 0}Te.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Oe.exports=Te},9880:Oe=>{var ye={"":!0,up:!0};function J(z){return"number"==typeof z&&z>=0&&z<=100}Oe.exports=function fe(){var z=100,Te=3,Y=0,Q=100,g=0,me=100,_e="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return z},set:function(le){if(!J(le))throw new Error("Width must be between 0 and 100.");z=le}},lines:{enumerable:!0,get:function(){return Te},set:function(le){if("number"!=typeof le)throw new TypeError("Lines must be set to a number.");Te=le}},regionAnchorY:{enumerable:!0,get:function(){return Q},set:function(le){if(!J(le))throw new Error("RegionAnchorX must be between 0 and 100.");Q=le}},regionAnchorX:{enumerable:!0,get:function(){return Y},set:function(le){if(!J(le))throw new Error("RegionAnchorY must be between 0 and 100.");Y=le}},viewportAnchorY:{enumerable:!0,get:function(){return me},set:function(le){if(!J(le))throw new Error("ViewportAnchorY must be between 0 and 100.");me=le}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(le){if(!J(le))throw new Error("ViewportAnchorX must be between 0 and 100.");g=le}},scroll:{enumerable:!0,get:function(){return _e},set:function(le){var Ue=function ae(z){return"string"==typeof z&&!!ye[z.toLowerCase()]&&z.toLowerCase()}(le);
1!1===Ue?console.warn("Scroll: an invalid or illegal string was specified."):_e=Ue}}})}},5893:()=>{},434:Oe=>{function ye(){return Oe.exports=ye=Object.assign?Object.assign.bind():function(ae){for(var J=1;J<arguments.length;J++){var fe=arguments[J];for(var z in fe)Object.prototype.hasOwnProperty.call(fe,z)&&(ae[z]=fe[z])}return ae},Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports,ye.apply(this,arguments)}Oe.exports=ye,Oe.exports.__esModule=!0,Oe.exports.default=Oe.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.