93 lines
630 KiB
JavaScript
93 lines
630 KiB
JavaScript
|
import{a4 as xd,H as Sd,Y as Gn,z as rm,r as ct,V as Ed,U as im,a1 as nm,o as Nn,c as Bn,l as we,J as am,_ as Cd,A as sm,d as gi,m as $u,x as Ku,f as vi,e as It,g as Ja,w as Za,p as om,q as um}from"./index.3607d347.js";import{L as ur,i as lm,_ as dm,a as cm}from"./mark.00d1685e.js";import"./index.c9f5bd8b.js";const fm=new Proxy({},{get(a,t){throw new Error(`Module "" has been externalized for browser compatibility. Cannot access ".${t}" in client code.`)}}),hm=Object.freeze(Object.defineProperty({__proto__:null,default:fm},Symbol.toStringTag,{value:"Module"})),pm=xd(hm);function mm(a){return Sd({url:"equipment/treeData",method:"get",params:a})}function gm(a){return Sd({url:"equipment/cameraName",method:"get",params:a})}var Ci;typeof window<"u"?Ci=window:typeof Gn<"u"?Ci=Gn:typeof self<"u"?Ci=self:Ci={};var A=Ci,Xu=typeof Gn<"u"?Gn:typeof window<"u"?window:{},vm=pm,Ai;typeof document<"u"?Ai=document:(Ai=Xu["__GLOBAL_DOCUMENT_CACHE@4"],Ai||(Ai=Xu["__GLOBAL_DOCUMENT_CACHE@4"]=vm));var G=Ai;function ut(){return ut=Object.assign?Object.assign.bind():function(a){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ut.apply(this,arguments)}const _m=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));var Ss={exports:{}};(function(a,t){function r(u){if(u&&typeof u=="object"){var l=u.which||u.keyCode||u.charCode;l&&(u=l)}if(typeof u=="number")return s[u];var c=String(u),g=n[c.toLowerCase()];if(g)return g;var g=e[c.toLowerCase()];if(g)return g;if(c.length===1)return c.charCodeAt(0)}r.isEventKey=function(l,c){if(l&&typeof l=="object"){var g=l.which||l.keyCode||l.charCode;if(g==null)return!1;if(typeof c=="string"){var m=n[c.toLowerCase()];if(m)return m===g;var m=e[c.toLowerCase()];if(m)return m===g}else if(typeof c=="number")return c===g;return!1}},t=a.exports=r;var n=t.code=t.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},e=t.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};/*!
|
||
|
* Programatically add the following
|
||
|
*/for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var s=t.names=t.title={};for(i in n)s[n[i]]=i;for(var o in e)n[o]=e[o]})(Ss,Ss.exports);const te=Ss.exports;function ee(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Hr(a,t){return Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},Hr(a,t)}function W(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,Hr(a,t)}var ym=Tm;function Tm(a,t){var r,n=null;try{r=JSON.parse(a,t)}catch(e){n=e}return[n,r]}var ma={exports:{}};const bm=xd(_m);var xm=Em,Sm=Object.prototype.toString;function Em(a){if(!a)return!1;var t=Sm.call(a);return t==="[object Function]"||typeof a=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}var Cm=A,Am=function(t,r){return r===void 0&&(r=!1),function(n,e,i){if(n){t(n);return}if(e.statusCode>=400&&e.statusCode<=599){var s=i;if(r)if(Cm.TextDecoder){var o=Dm(e.headers&&e.headers["content-type"]);try{s=new TextDecoder(o).decode(i)}catch{}}else s=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:s});return}t(null,i)}};function Dm(a){return a===void 0&&(a=""),a.toLowerCase().split(";").reduce(function(t,r){var n=r.split("="),e=n[0],i=n[1];return e.trim()==="charset"?i.trim():t},"utf-8")}var wm=Am,Ad=A,km=bm,Pm=xm;Et.httpHandler=wm;/**
|
||
|
* @license
|
||
|
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
||
|
* Copyright (c) 2014 David Björklund
|
||
|
* Available under the MIT license
|
||
|
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
||
|
*/var Im=function(t){var r={};return t&&t.trim().split(`
|
||
|
`).forEach(function(n){var e=n.indexOf(":"),i=n.slice(0,e).trim().toLowerCase(),s=n.slice(e+1).trim();typeof r[i]>"u"?r[i]=s:Array.isArray(r[i])?r[i].push(s):r[i]=[r[i],s]}),r};ma.exports=Et;ma.exports.default=Et;Et.XMLHttpRequest=Ad.XMLHttpRequest||Rm;Et.XDomainRequest="withCredentials"in new Et.XMLHttpRequest?Et.XMLHttpRequest:Ad.XDomainRequest;Om(["get","put","post","patch","head","delete"],function(a){Et[a==="delete"?"del":a]=function(t,r,n){return r=Dd(t,r,n),r.method=a.toUpperCase(),wd(r)}});function Om(a,t){for(var r=0;r<a.length;r++)t(a[r])}function Lm(a){for(var t in a)if(a.hasOwnProperty(t))return!1;return!0}function Dd(a,t,r){var n=a;return Pm(t)?(r=t,typeof a=="string"&&(n={uri:a})):n=km({},t,{uri:a}),n.callback=r,n}function Et(a,t,r){return t=Dd(a,t,r),wd(t)}function wd(a){if(typeof a.callback>"u")throw new Error("callback argument missing");var t=!1,r=function(q,O,F){t||(t=!0,a.callback(q,O,F))};function n(){o.readyState===4&&setTimeout(s,0)}function e(){var L=void 0;if(o.response?L=o.response:L=o.responseText||Fm(o),S)try{L=JSON.parse(L)}catch{}return L}function i(L){return clearTimeout(x),L instanceof Error||(L=new Error(""+(L||"Unknown XMLHttpRequest Error"))),L.statusCode=0,r(L,w)}function s(){if(!l){var L;clearTimeout(x),a.useXDR&&o.status===void 0?L=200:L=o.status===1223?204:o.status;var q=w,O=null;return L!==0?(q={body:e(),statusCode:L,method:g,headers:{},url:c,rawRequest:o},o.getAllResponseHeaders&&(q.headers=Im(o.getAllResponseHeaders()))):O=new Error("Internal XMLHttpRequest Error"),r(O,q,q.body)}}var o=a.xhr||null;o||(a.cors||a.useXDR?o=new Et.XDomainRequest:o=new Et.XMLHttpRequest);var u,l,c=o.url=a.uri||a.url,g=o.method=a.method||"GET",m=a.body||a.data,y=o.headers=a.headers||{},b=!!a.sync,S=!1,x,w={body:void 0,headers:{},statusCode:0,method:g,url:c,rawRequest:o};if("json"in a&&a.json!==!1&&(S=!0,y.accept||y.Accept||(y.Accept="application/json"),g!=="GET"&&g!=="HEAD"&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),m=JSON.stringify(a.json===!0?m:a.json))),o.onreadystatechange=n,o.onload=s,o.onerror=i,o.onprogress=function(){},o.onabort=function(){l=!0},o.ontimeout=i,o.open(g,c,!b,a.username,a.password),b||(o.withCredentials=!!a.withCredentials),!b&&a.timeout>0&&(x=setTimeout(function(){if(!l){l=!0,o.abort("timeout");var L=new Error("XMLHttpRequest timeout");L.code="ETIMEDOUT",i(L)}},a.timeout)),o.setRequestHeader)for(u in y)y.hasOwnProperty(u)&&o.setRequestHeader(u,y[u]);else if(a.headers&&!Lm(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(o.responseType=a.responseType),"beforeSend"in a&&typeof a.beforeSend=="function"&&a.beforeSend(o),o.send(m||null),o}function Fm(a){try{if(a.responseType==="document")return a.responseXML;var t=a.responseXML&&a.responseXML.documentElement.nodeName==="parsererror";if(a.responseType===""&&!t)return a.responseXML}catch{}return null}function Rm(){}var Es={exports:{}},Yu=G,eo=Object.create||function(){function a(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return a.prototype=t,new a}}();function it(a,t){this.name="ParsingError",this.code=a.code,this.message=t||a.message}it.prototype=eo(Error.prototype);it.prototype.constructor=it;it.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function to(a){function t(n,e,i,s){return(n|0)*3600+(e|0)*60+(i|0)+(s|0)/1e3}var r=a.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return r?r[3]?t(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?t(r[1],r[2],0,r[4]):t(0,r[1],r[2],r[4]):null}function Ii(){this.values=eo(null)}Ii.prototype={set:function(a,t){!this.get(a)&&t!==""&&(this.values[a]=t)},get:function(a,t,r){return r?this.has(a)?this.values[a]:t[r]:this.has(a)?this.values[a]:t},has:function(a){return a in this.values},alt:function(a,t,r){for(var n=0;n<r.length;++n)if(t===r[n]){this.set(a,t);break}},integer:function(a,t){/^-?\d+$/.test(t)&&this.set(a,parseInt(t,10))},percent:function(a,t){return t.match(/^([
|
||
|
`;)++g;var m=c.substr(0,g);return c[g]==="\r"&&++g,c[g]===`
|
||
|
`&&++g,t.buffer=c.substr(g),m}function n(c){var g=new Ii;if(Di(c,function(y,b){switch(y){case"id":g.set(y,b);break;case"width":g.percent(y,b);break;case"lines":g.integer(y,b);break;case"regionanchor":case"viewportanchor":var S=b.split(",");if(S.length!==2)break;var x=new Ii;if(x.percent("x",S[0]),x.percent("y",S[1]),!x.has("x")||!x.has("y"))break;g.set(y+"X",x.get("x")),g.set(y+"Y",x.get("y"));break;case"scroll":g.alt(y,b,["up"]);break}},/=/,/\s/),g.has("id")){var m=new(t.vttjs.VTTRegion||t.window.VTTRegion);m.width=g.get("width",100),m.lines=g.get("lines",3),m.regionAnchorX=g.get("regionanchorX",0),m.regionAnchorY=g.get("regionanchorY",100),m.viewportAnchorX=g.get("viewportanchorX",0),m.viewportAnchorY=g.get("viewportanchorY",100),m.scroll=g.get("scroll",""),t.onregion&&t.onregion(m),t.regionList.push({id:g.get("id"),region:m})}}function e(c){var g=new Ii;Di(c,function(m,y){switch(m){case"MPEGT":g.integer(m+"S",y);break;case"LOCA":g.set(m+"L",to(y));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:g.get("MPEGTS"),LOCAL:g.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?Di(c,function(g,m){switch(g){case"X-TIMESTAMP-MAP":e(m);break}},/=/):Di(c,function(g,m){switch(g){case"Region":n(m);break}},/:/)}try{var s;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();var o=s.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new it(it.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:s=r(),t.state){case"HEADER":/:/.test(s)?i(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":try{Mm(s,t.cue,t.regionList)}catch(c){t.reportOrThrowError(c),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var l=s.indexOf("-->")!==-1;if(!s||l&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+=`
|
||
|
`),t.cue.text+=s.replace(/\u2028/g,`
|
||
|
`).replace(/u2029/g,`
|
||
|
`);continue;case"BADCUE":s||(t.state="ID");continue}}}catch(c){t.reportOrThrowError(c),t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||a.state==="HEADER")&&(a.buffer+=`
|
||
|
|
||
|
`,a.parse()),a.state==="INITIAL")throw new it(it.Errors.BadSignature)}catch(t){a.reportOrThrowError(t)}return a.onflush&&a.onflush(),this}};var zm=Zr,$m="auto",Km={"":1,lr:1,rl:1},Xm={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Ym(a){if(typeof a!="string")return!1;var t=Km[a.toLowerCase()];return t?a.toLowerCase():!1}function ts(a){if(typeof a!="string")return!1;var t=Xm[a.toLowerCase()];return t?a.toLowerCase():!1}function Pd(a,t,r){this.hasBeenReset=!1;var n="",e=!1,i=a,s=t,o=r,u=null,l="",c=!0,g="auto",m="start",y="auto",b="auto",S=100,x="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(w){n=""+w}},pauseOnExit:{enumerable:!0,get:function(){return e},set:function(w){e=!!w}},startTime:{enumerable:!0,get:function(){return i},set:function(w){if(typeof w!="number")throw new TypeError("Start time must be set to a number.");i=w,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(w){if(typeof w!="number")throw new TypeError("End time must be set to a number.");s=w,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(w){o=""+w,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(w){u=w,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(w){var L=Ym(w);if(L===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=L,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(w){c=!!w,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return g},set:function(w){if(typeof w!="number"&&w!==$m)throw new SyntaxError("Line: an invalid number or illegal string was specified.");g=w,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(w){var L=ts(w);L?(m=L,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return y},set:function(w){if(w<0||w>100)throw new Error("Position must be between 0 and 100.");y=w,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return b},set:function(w){var L=ts(w);L?(b=L,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return S},set:function(w){if(w<0||w>100)throw new Error("Size must be between 0 and 100.");S=w,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return x},set:function(w){var L=ts(w);if(!L)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");x=L,this.hasBeenReset=!0}}}),this.displayState=void 0}Pd.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Qm=Pd,Jm={"":!0,up:!0};function Zm(a){if(typeof a!="string")return!1;var t=Jm[a.toLowerCase()];return t?a.toLowerCase():!1}function _i(a){return typeof a=="number"&&a>=0&&a<=100}function eg(){var a=100,t=3,r=0,n=100,e=0,i=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(o){if(!_i(o))throw new Error("Width must be between 0 and 100.");a=o}},lines:{enumerable:!0,get:function(){return t},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");t=o}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(o){if(!_i(o))throw new Error("RegionAnchorX must be between 0 and 100.");n=o}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!_i(o))throw new Error("RegionAnchorY must be between 0 and 100.");r=o}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!_i(o))throw new Error("ViewportAnchorY must be between 0 and 100.");i=o}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(o){if(!_i(o))throw new Error("ViewportAnchorX must be between 0 and 100.");e=o}},scroll:{enumerable:!0,get:function(){return s},set:function(o){var u=Zm(o);u===!1?console.warn("Scroll: an invalid or illegal string was specified."):s=u}}})}var tg=eg,Ut=A,_r=E
|
||
|
`);i>-1;i=this.buffer.indexOf(`
|
||
|
`))this.trigger("data",this.buffer.substring(0,i)),this.buffer=this.buffer.substring(i+1)},t}(ro),dg=String.fromCharCode(9),rs=function(t){var r=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),n={};return r[1]&&(n.length=parseInt(r[1],10)),r[2]&&(n.offset=parseInt(r[2],10)),n},cg=function(){var t="[^=]*",r='"[^"]*"|[^,]*',n="(?:"+t+")=(?:"+r+")";return new RegExp("(?:^|,)("+n+")")},dt=function(t){for(var r=t.split(cg()),n={},e=r.length,i;e--;)r[e]!==""&&(i=/([^=]*)=(.*)/.exec(r[e]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),n[i[0]]=i[1]);return n},fg=function(a){W(t,a);function t(){var n;return n=a.call(this)||this,n.customParsers=[],n.tagMappers=[],n}var r=t.prototype;return r.push=function(e){var i=this,s,o;if(e=e.trim(),e.length!==0){if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}var u=this.tagMappers.reduce(function(l,c){var g=c(e);return g===e?l:l.concat([g])},[e]);u.forEach(function(l){for(var c=0;c<i.customParsers.length;c++)if(i.customParsers[c].call(i,l))return;if(l.indexOf("#EXT")!==0){i.trigger("data",{type:"comment",text:l.slice(1)});return}if(l=l.replace("\r",""),s=/^#EXTM3U/.exec(l),s){i.trigger("data",{type:"tag",tagType:"m3u"});return}if(s=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(l),s){o={type:"tag",tagType:"inf"},s[1]&&(o.duration=parseFloat(s[1])),s[2]&&(o.title=s[2]),i.trigger("data",o);return}if(s=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"targetduration"},s[1]&&(o.duration=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"version"},s[1]&&(o.version=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"media-sequence"},s[1]&&(o.number=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(l),s){o={type:"tag",tagType:"discontinuity-sequence"},s[1]&&(o.number=parseInt(s[1],10)),i.trigger("data",o);return}if(s=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(l),s){o={type:"tag",tagType:"playlist-type"},s[1]&&(o.playlistType=s[1]),i.trigger("data",o);return}if(s=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(l),s){o=ut(rs(s[1]),{type:"tag",tagType:"byterange"}),i.trigger("data",o);return}if(s=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(l),s){o={type:"tag",tagType:"allow-cache"},s[1]&&(o.allowed=!/NO/.test(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-MAP:?(.*)$/.exec(l),s){if(o={type:"tag",tagType:"map"},s[1]){var g=dt(s[1]);g.URI&&(o.uri=g.URI),g.BYTERANGE&&(o.byterange=rs(g.BYTERANGE))}i.trigger("data",o);return}if(s=/^#EXT-X-STREAM-INF:?(.*)$/.exec(l),s){if(o={type:"tag",tagType:"stream-inf"},s[1]){if(o.attributes=dt(s[1]),o.attributes.RESOLUTION){var m=o.attributes.RESOLUTION.split("x"),y={};m[0]&&(y.width=parseInt(m[0],10)),m[1]&&(y.height=parseInt(m[1],10)),o.attributes.RESOLUTION=y}o.attributes.BANDWIDTH&&(o.attributes.BANDWIDTH=parseInt(o.attributes.BANDWIDTH,10)),o.attributes["FRAME-RATE"]&&(o.attributes["FRAME-RATE"]=parseFloat(o.attributes["FRAME-RATE"])),o.attributes["PROGRAM-ID"]&&(o.attributes["PROGRAM-ID"]=parseInt(o.attributes["PROGRAM-ID"],10))}i.trigger("data",o);return}if(s=/^#EXT-X-MEDIA:?(.*)$/.exec(l),s){o={type:"tag",tagType:"media"},s[1]&&(o.attributes=dt(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-ENDLIST/.exec(l),s){i.trigger("data",{type:"tag",tagType:"endlist"});return}if(s=/^#EXT-X-DISCONTINUITY/.exec(l),s){i.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(s=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(l),s){o={type:"tag",tagType:"program-date-time"},s[1]&&(o.dateTimeString=s[1],o.dateTimeObject=new Date(s[1])),i.trigger("data",o);return}if(s=/^#EXT-X-KEY:?(.*)$/.exec(l),s){o={type:"tag",tagType:"key"},s[1]&&(o.attributes=dt(s[1]),o.attributes.IV&&(o.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(o.attributes.IV=o.attributes.IV.substring(2)),o.attributes.IV=o.attributes.IV.match(/.{8}/g),o.attributes.IV[0]=parseInt(o.attributes.IV[0],16),o.attributes.IV[1]=parseInt(o.attributes.IV[1],16),o.attributes.
|
||
|
`),this.trigger("end")},r.addParser=function(e){this.parseStream.addParser(e)},r.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(ro),hr={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^/},mg=["video","audio","text"],rl=["Video","Audio","Text"],Ld=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(r,n,e){var i=("00"+Number(n).toString(16)).slice(-2),s=("00"+Number(e).toString(16)).slice(-2);return"avc1."+i+"00"+s})},yt=function(t){t===void 0&&(t="");var r=t.split(","),n=[];return r.forEach(function(e){e=e.trim();var i;mg.forEach(function(s){var o=hr[s].exec(e.toLowerCase());if(!(!o||o.length<=1)){i=s;var u=e.substring(0,o[1].length),l=e.replace(u,"");n.push({type:u,details:l,mediaType:s})}}),i||n.push({type:e,details:"",mediaType:"unknown"})}),n},gg=function(t,r){if(!t.mediaGroups.AUDIO||!r)return null;var n=t.mediaGroups.AUDIO[r];if(!n)return null;for(var e in n){var i=n[e];if(i.default&&i.playlists)return yt(i.playlists[0].attributes.CODECS)}return null},Fd=function(t){return t===void 0&&(t=""),hr.audio.test(t.trim().toLowerCase())},vg=function(t){return t===void 0&&(t=""),hr.text.test(t.trim().toLowerCase())},Mi=function(t){if(!(!t||typeof t!="string")){var r=t.toLowerCase().split(",").map(function(i){return Ld(i.trim())}),n="video";r.length===1&&Fd(r[0])?n="audio":r.length===1&&vg(r[0])&&(n="application");var e="mp4";return r.every(function(i){return hr.mp4.test(i)})?e="mp4":r.every(function(i){return hr.webm.test(i)})?e="webm":r.every(function(i){return hr.ogg.test(i)})&&(e="ogg"),n+"/"+e+';codecs="'+t+'"'}},Un=function(t){return t===void 0&&(t=""),A.MediaSource&&A.MediaSource.isTypeSupported&&A.MediaSource.isTypeSupported(Mi(t))||!1},ns=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(r){r=r.trim();for(var n=0;n<rl.length;n++){var e=rl[n];if(hr["muxer"+e].test(r))return!0}return!1})},il="mp4a.40.2",_g="avc1.4d400d",yg=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Tg=/^application\/dash\+xml/i,Rd=function(t){return yg.test(t)?"hls":Tg.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},bg=function(t){return t.toString(2).length},xg=function(t){return Math.ceil(bg(t)/8)},Md=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},Sg=function(t){return Md(t)},Q=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!Sg(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Fe=A.BigInt||Number,Cs=[Fe("0x1"),Fe("0x100"),Fe("0x10000"),Fe("0x1000000"),Fe("0x100000000"),Fe("0x10000000000"),Fe("0x1000000000000"),Fe("0x100000000000000"),Fe("0x10000000000000000")];(function(){var a=new Uint16Array([65484]),t=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);return t[0]===255?"big":t[0]===204?"little":"unknown"})();var Eg=function(t,r){var n=r===void 0?{}:r,e=n.signed,i=e===void 0?!1:e,s=n.le,o=s===void 0?!1:s;t=Q(t);var u=o?"reduce":"reduceRight",l=t[u]?t[u]:Array.prototype[u],c=l.call(t,function(m,y,b){var S=o?b:Math.abs(b+1-t.length);return m+Fe(y)*Cs[S]},Fe(0));if(i){var g=Cs[t.length]/Fe(2)-Fe(1);c=Fe(c),c>g&&(c-=g,c-=g,c-=Fe(2))}return Number(c)},Cg=function(t,r){var n=r===void 0?{}:r,e=n.le,i=e===void 0?!1:e;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=Fe(t);for(var s=xg(t),o=new Uint8Array(new ArrayBuffer(s)),u=0;u<s;u++){var l=i?u:Math.abs(u+1-o.length);o[l]=Number(t/Cs[u]&Fe(255)),t<0&&(o[l]=Math.abs(~o[l]),o[l]-=u===0?1:2)}return o},Nd=function(t,r){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;r||(t=unescape(encodeURIComponent(t)));for(var n=new Uint8Array(t.l
|
||
|
`,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:"\u01
|
||
|
`).replace(/[\r\u0085\u2028]/g,`
|
||
|
`)}function fc(a){this.options=a||{locator:{}}}fc.prototype.parseFromString=function(a,t){var r=this.options,n=new Zg,e=r.domBuilder||new Xi,i=r.errorHandler,s=r.locator,o=r.xmlns||{},u=/\/x?html?$/.test(t),l=u?ml.HTML_ENTITIES:ml.XML_ENTITIES;s&&e.setDocumentLocator(s),n.errorHandler=ev(i,e,s),n.domBuilder=r.domBuilder||e,u&&(o[""]=gl.HTML),o.xml=o.xml||gl.XML;var c=r.normalizeLineEndings||cc;return a&&typeof a=="string"?n.parse(c(a),o,l):n.errorHandler.error("invalid doc source"),e.doc};function ev(a,t,r){if(!a){if(t instanceof Xi)return t;a=t}var n={},e=a instanceof Function;r=r||{};function i(s){var o=a[s];!o&&e&&(o=a.length==2?function(u){a(s,u)}:a),n[s]=o&&function(u){o("[xmldom "+s+"] "+u+ws(r))}||function(){}}return i("warning"),i("error"),i("fatalError"),n}function Xi(){this.cdata=!1}function Pr(a,t){t.lineNumber=a.lineNumber,t.columnNumber=a.columnNumber}Xi.prototype={startDocument:function(){this.doc=new Qg().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,t,r,n){var e=this.doc,i=e.createElementNS(a,r||t),s=n.length;Dn(this,i),this.currentElement=i,this.locator&&Pr(this.locator,i);for(var o=0;o<s;o++){var a=n.getURI(o),u=n.getValue(o),r=n.getQName(o),l=e.createAttributeNS(a,r);this.locator&&Pr(n.getLocator(o),l),l.value=l.nodeValue=u,i.setAttributeNode(l)}},endElement:function(a,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(a,t){},endPrefixMapping:function(a){},processingInstruction:function(a,t){var r=this.doc.createProcessingInstruction(a,t);this.locator&&Pr(this.locator,r),Dn(this,r)},ignorableWhitespace:function(a,t,r){},characters:function(a,t,r){if(a=vl.apply(this,arguments),a){if(this.cdata)var n=this.doc.createCDATASection(a);else var n=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(a)&&this.doc.appendChild(n),this.locator&&Pr(this.locator,n)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,t,r){a=vl.apply(this,arguments);var n=this.doc.createComment(a);this.locator&&Pr(this.locator,n),Dn(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var e=n.createDocumentType(a,t,r);this.locator&&Pr(this.locator,e),Dn(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,ws(this.locator))},error:function(a){console.error("[xmldom error] "+a,ws(this.locator))},fatalError:function(a){throw new Jg(a,this.locator)}};function ws(a){if(a)return`
|
||
|
@`+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function vl(a,t,r){return typeof a=="string"?a.substr(t,r):a.length>=t+r||t?new java.lang.String(a,t,r)+"":a}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){Xi.prototype[a]=function(){return null}});function Dn(a,t){a.currentElement?a.currentElement.appendChild(t):a.doc.appendChild(t)}Ta.__DOMHandler=Xi;Ta.normalizeLineEndings=cc;Ta.DOMParser=fc;var tv=Ta.DOMParser;/*! @name mpd-parser @version 0.22.1 @license Apache-2.0 */var _l=function(t){return!!t&&typeof t=="object"},We=function a(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce(function(e,i){return typeof i!="object"||Object.keys(i).forEach(function(s){Array.isArray(e[s])&&Array.isArray(i[s])?e[s]=e[s].concat(i[s]):_l(e[s])&&_l(i[s])?e[s]=a(e[s],i[s]):e[s]=i[s]}),e},{})},hc=function(t){return Object.keys(t).map(function(r){return t[r]})},rv=function(t,r){for(var n=[],e=t;e<r;e++)n.push(e);return n},ba=function(t){return t.reduce(function(r,n){return r.concat(n)},[])},pc=function(t){if(!t.length)return[];for(var r=[],n=0;n<t.length;n++)r.push(t[n]);return r},iv=function(t,r){return t.reduce(function(n,e,i){return e[r]&&n.push(i),n},[])},ks=function(t,r){for(var n=0;n<t.length;n++)if(r(t[n]))return n;return-1},nv=function(t,r){return hc(t.reduce(function(n,e){return e.forEach(function(i){n[r(i)]=i}),n},{}))},Wr={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},Vi=function(t){var r=t.baseUrl,n=r===void 0?"":r,e=t.source,i=e===void 0?"":e,s=t.range,o=s===void 0?"":s,u=t.indexRange,l=u===void 0?"":u,c={uri:i,resolvedUri:va(n||"",i)};if(o||l){var g=o||l,m=g.split("-"),y=A.BigInt?A.BigInt(m[0]):parseInt(m[0],10),b=A.BigInt?A.BigInt(m[1]):parseInt(m[1],10);y<Number.MAX_SAFE_INTEGER&&typeof y=="bigint"&&(y=Number(y)),b<Number.MAX_SAFE_INTEGER&&typeof b=="bigint"&&(b=Number(b));var S;typeof b=="bigint"||typeof y=="bigint"?S=A.BigInt(b)-A.BigInt(y)+A.BigInt(1):S=b-y+1,typeof S=="bigint"&&S<Number.MAX_SAFE_INTEGER&&(S=Number(S)),c.byterange={length:S,offset:y}}return c},av=function(t){var r;return typeof t.offset=="bigint"||typeof t.length=="bigint"?r=A.BigInt(t.offset)+A.BigInt(t.length)-A.BigInt(1):r=t.offset+t.length-1,t.offset+"-"+r},yl=function(t){return t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t},sv={static:function(t){var r=t.duration,n=t.timescale,e=n===void 0?1:n,i=t.sourceDuration,s=t.periodDuration,o=yl(t.endNumber),u=r/e;return typeof o=="number"?{start:0,end:o}:typeof s=="number"?{start:0,end:s/u}:{start:0,end:i/u}},dynamic:function(t){var r=t.NOW,n=t.clientOffset,e=t.availabilityStartTime,i=t.timescale,s=i===void 0?1:i,o=t.duration,u=t.periodStart,l=u===void 0?0:u,c=t.minimumUpdatePeriod,g=c===void 0?0:c,m=t.timeShiftBufferDepth,y=m===void 0?1/0:m,b=yl(t.endNumber),S=(r+n)/1e3,x=e+l,w=S+g,L=w-x,q=Math.ceil(L*s/o),O=Math.floor((S-x-y)*s/o),F=Math.floor((S-x)*s/o);return{start:Math.max(0,O),end:typeof b=="number"?b:Math.min(q,F)}}},ov=function(t){return function(r){var n=t.duration,e=t.timescale,i=e===void 0?1:e,s=t.periodStart,o=t.startNumber,u=o===void 0?1:o;return{number:u+r,duration:n/i,timeline:s,time:r*n}}},po=function(t){var r=t.type,n=t.duration,e=t.timescale,i=e===void 0?1:e,s=t.periodDuration,o=t.sourceDuration,u=sv[r](t),l=u.start,c=u.end,g=rv(l,c).map(ov(t));if(r==="static"){var m=g.length-1,y=typeof s=="number"?s:o;g[m].duration=y-n/i*m}return g},mc=function(t){var r=t.baseUrl,n=t.initialization,e=n===void 0?{}:n,i=t.sourceDuration,s=t.indexRange,o=s===void 0?"":s,u=t.periodStart,l=t.presentationTime,c=t.number,g=c===void 0?0:c,m=t.duration;if(!r)throw new Error(Wr.NO_BASE_URL);var y=Vi({baseUrl:r,source:e.sourceURL,r
|
||
|
* @license
|
||
|
* Video.js 7.21.4 <http://videojs.com/>
|
||
|
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||
|
* Available under Apache License Version 2.0
|
||
|
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
||
|
*
|
||
|
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
||
|
* Available under Apache License Version 2.0
|
||
|
* <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
|
||
|
*/var Ec="7.21.4",Ft={},Qt=function(t,r){return Ft[t]=Ft[t]||[],r&&(Ft[t]=Ft[t].concat(r)),Ft[t]},h0=function(t,r){Qt(t,r)},Cc=function(t,r){var n=Qt(t).indexOf(r);return n<=-1?!1:(Ft[t]=Ft[t].slice(),Ft[t].splice(n,1),!0)},p0=function(t,r){Qt(t,[].concat(r).map(function(n){var e=function i(){return Cc(t,i),n.apply(void 0,arguments)};return e}))},Jn={prefixed:!0},Vn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],kl=Vn[0],ki;for(var kn=0;kn<Vn.length;kn++)if(Vn[kn][1]in G){ki=Vn[kn];break}if(ki){for(var Pn=0;Pn<ki.length;Pn++)Jn[kl[Pn]]=ki[Pn];Jn.prefixed=ki[0]!==kl[0]}var Xe=[],m0=function(t,r){return function(n,e,i){var s=r.levels[e],o=new RegExp("^("+s+")$");if(n!=="log"&&i.unshift(n.toUpperCase()+":"),i.unshift(t+":"),Xe){Xe.push([].concat(i));var u=Xe.length-1e3;Xe.splice(0,u>0?u:0)}if(!!A.console){var l=A.console[n];!l&&n==="debug"&&(l=A.console.info||A.console.log),!(!l||!s||!o.test(n))&&l[Array.isArray(i)?"apply":"call"](A.console,i)}}};function Ac(a){var t="info",r,n=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r("log",t,s)};return r=m0(a,n),n.createLogger=function(e){return Ac(a+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},n.level=function(e){if(typeof e=="string"){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},n.history=function(){return Xe?[].concat(Xe):[]},n.history.filter=function(e){return(Xe||[]).filter(function(i){return new RegExp(".*"+e+".*").test(i[0])})},n.history.clear=function(){Xe&&(Xe.length=0)},n.history.disable=function(){Xe!==null&&(Xe.length=0,Xe=null)},n.history.enable=function(){Xe===null&&(Xe=[])},n.error=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("error",t,i)},n.warn=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("warn",t,i)},n.debug=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return r("debug",t,i)},n}var ie=Ac("VIDEOJS"),Dc=ie.createLogger,g0=Object.prototype.toString,wc=function(t){return qt(t)?Object.keys(t):[]};function Br(a,t){wc(a).forEach(function(r){return t(a[r],r)})}function v0(a,t,r){return r===void 0&&(r=0),wc(a).reduce(function(n,e){return t(n,a[e],e)},r)}function be(a){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Object.assign?ut.apply(void 0,[a].concat(r)):(r.forEach(function(e){!e||Br(e,function(i,s){a[s]=i})}),a)}function qt(a){return!!a&&typeof a=="object"}function Hi(a){return qt(a)&&g0.call(a)==="[object Object]"&&a.constructor===Object}function qi(a,t){if(!a||!t)return"";if(typeof A.getComputedStyle=="function"){var r;try{r=A.getComputedStyle(a)}catch{return""}return r?r.getPropertyValue(t)||r[t]:""}return""}var Pe=A.navigator&&A.navigator.userAgent||"",Pl=/AppleWebKit\/([\d.]+)/i.exec(Pe),_0=Pl?parseFloat(Pl.pop()):null,kc=/iPod/i.test(Pe),y0=function(){var a=Pe.match(/OS (\d+)_/i);return a&&a[1]?a[1]:null}(),Wt=/Android/i.test(Pe),Eo=function(){var a=Pe.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a)return null;var t=a[1]&&parseFloat(a[1]),r=a[2]&&parseFloat(a[2]);return t&&r?parseFloat(a[1]+"."+a[2]):t||null}(),Pc=Wt&&Eo<5&&_0<537,Ic=/Firefox/i.test(Pe),Yi=/Edg/i.test(Pe),zt=!Yi&&(/Chrome/i.test(Pe)||/CriOS/i.test(Pe)),Oc=function(){var a=Pe.match(/(Chrome|CriOS)\/(\d+)/);return a&&a[2]?parseFloat(a[2]):null}(),Qi=function(){var a=/MSIE\s(\d+)\.\d/.e
|
||
|
has been deprecated. Use the third argument instead.
|
||
|
`+("createEl(type, properties, attributes). Attempting to set "+i+" to "+s+".")),e.setAttribute(i,s)):i==="textContent"?yr(e,s):(e[i]!==s||i==="tabIndex")&&(e[i]=s)}),Object.getOwnPropertyNames(r).forEach(function(i){e.setAttribute(i,r[i])}),n&&ko(e,n),e}function yr(a,t){return typeof a.textContent>"u"?a.innerText=t:a.textContent=t,a}function Fs(a,t){t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a)}function pr(a,t){return Fc(t),a.classList?a.classList.contains(t):b0(t).test(a.className)}function Nt(a,t){return a.classList?a.classList.add(t):pr(a,t)||(a.className=(a.className+" "+t).trim()),a}function Ji(a,t){return a?(a.classList?a.classList.remove(t):(Fc(t),a.className=a.className.split(/\s+/).filter(function(r){return r!==t}).join(" ")),a):(ie.warn("removeClass was called with an element that doesn't exist"),null)}function Nc(a,t,r){var n=pr(a,t);if(typeof r=="function"&&(r=r(a,t)),typeof r!="boolean"&&(r=!n),r!==n)return r?Nt(a,t):Ji(a,t),a}function Bc(a,t){Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n===null||typeof n>"u"||n===!1?a.removeAttribute(r):a.setAttribute(r,n===!0?"":n)})}function Lt(a){var t={},r=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(a&&a.attributes&&a.attributes.length>0)for(var n=a.attributes,e=n.length-1;e>=0;e--){var i=n[e].name,s=n[e].value;(typeof a[i]=="boolean"||r.indexOf(","+i+",")!==-1)&&(s=s!==null),t[i]=s}return t}function Uc(a,t){return a.getAttribute(t)}function Kr(a,t,r){a.setAttribute(t,r)}function Aa(a,t){a.removeAttribute(t)}function Vc(){G.body.focus(),G.onselectstart=function(){return!1}}function Hc(){G.onselectstart=function(){return!0}}function Xr(a){if(a&&a.getBoundingClientRect&&a.parentNode){var t=a.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(r[n]=t[n])}),r.height||(r.height=parseFloat(qi(a,"height"))),r.width||(r.width=parseFloat(qi(a,"width"))),r}}function ji(a){if(!a||a&&!a.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=a.offsetWidth,r=a.offsetHeight,n=0,e=0;a.offsetParent&&a!==G[Jn.fullscreenElement];)n+=a.offsetLeft,e+=a.offsetTop,a=a.offsetParent;return{left:n,top:e,width:t,height:r}}function Da(a,t){var r={x:0,y:0};if(Ke)for(var n=a;n&&n.nodeName.toLowerCase()!=="html";){var e=qi(n,"transform");if(/^matrix/.test(e)){var i=e.slice(7,-1).split(/,\s/).map(Number);r.x+=i[4],r.y+=i[5]}else if(/^matrix3d/.test(e)){var s=e.slice(9,-1).split(/,\s/).map(Number);r.x+=s[12],r.y+=s[13]}n=n.parentNode}var o={},u=ji(t.target),l=ji(a),c=l.width,g=l.height,m=t.offsetY-(l.top-u.top),y=t.offsetX-(l.left-u.left);return t.changedTouches&&(y=t.changedTouches[0].pageX-l.left,m=t.changedTouches[0].pageY+l.top,Ke&&(y-=r.x,m-=r.y)),o.y=1-Math.max(0,Math.min(1,m/g)),o.x=Math.max(0,Math.min(1,y/c)),o}function qc(a){return qt(a)&&a.nodeType===3}function wo(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function jc(a){return typeof a=="function"&&(a=a()),(Array.isArray(a)?a:[a]).map(function(t){if(typeof t=="function"&&(t=t()),ti(t)||qc(t))return t;if(typeof t=="string"&&/\S/.test(t))return G.createTextNode(t)}).filter(function(t){return t})}function ko(a,t){return jc(t).forEach(function(r){return a.appendChild(r)}),a}function Gc(a,t){return ko(wo(a),t)}function Gi(a){return a.button===void 0&&a.buttons===void 0||a.button===0&&a.buttons===void 0||a.type==="mouseup"&&a.button===0&&a.buttons===0?!0:!(a.button!==0||a.buttons!==1)}var Jt=Mc("querySelector"),Wc=Mc("querySelectorAll"),zc=Object.freeze({__proto__:null,isReal:ei,isEl:ti,isInFrame:Rc,createEl:ne,textContent:yr,prependTo:Fs,hasClass:pr,addClass:Nt,removeClass:Ji,toggleClass:Nc,setAttributes:Bc,getAttributes:Lt,getAttribute:Uc,setAttribute:Kr,removeAttribute:Aa,blockTextSelection:Vc,unblockTextSelection:Hc,getBoundingClientRect:Xr,findPosition:ji,getPointerPosition:Da,isTextNode:qc,emptyEl:wo,normalizeContent:jc,appendContent:ko,insertContent:Gc,isSingleLeftClick:Gi,$:Jt,$$:Wc}),$c=!1,Rs,x0=function(){if(Rs.options.autoSetup!==!1){var t=Array.prototype.slice.call(G.getElementsByTagName("
|
||
|
This may prevent text tracks from loading.`),i.restoreMetadataTracksInIOSNativePlayer_(),($r||Do||Pc)&&n.nativeControlsForTouch===!0&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}var r=t.prototype;return r.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,a.prototype.dispose.call(this)},r.setupSourcesetHandling_=function(){N_(this)},r.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),i,s=function(){i=[];for(var l=0;l<e.length;l++){var c=e[l];c.kind==="metadata"&&i.push({track:c,storedMode:c.mode})}};s(),e.addEventListener("change",s),this.on("dispose",function(){return e.removeEventListener("change",s)});var o=function u(){for(var l=0;l<i.length;l++){var c=i[l];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}e.removeEventListener("change",u)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",o),e.addEventListener("change",o)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",o)})},r.overrideNative_=function(e,i){var s=this;if(i===this["featuresNative"+e+"Tracks"]){var o=e.toLowerCase();this[o+"TracksListeners_"]&&Object.keys(this[o+"TracksListeners_"]).forEach(function(u){var l=s.el()[o+"Tracks"];l.removeEventListener(u,s[o+"TracksListeners_"][u])}),this["featuresNative"+e+"Tracks"]=!i,this[o+"TracksListeners_"]=null,this.proxyNativeTracksForType_(o)}},r.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},r.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},r.proxyNativeTracksForType_=function(e){var i=this,s=ot[e],o=this.el()[s.getterName],u=this[s.getterName]();if(!(!this["featuresNative"+s.capitalName+"Tracks"]||!o||!o.addEventListener)){var l={change:function(m){var y={type:"change",target:u,currentTarget:u,srcElement:u};u.trigger(y),e==="text"&&i[Qr.remoteText.getterName]().trigger(y)},addtrack:function(m){u.addTrack(m.track)},removetrack:function(m){u.removeTrack(m.track)}},c=function(){for(var m=[],y=0;y<u.length;y++){for(var b=!1,S=0;S<o.length;S++)if(o[S]===u[y]){b=!0;break}b||m.push(u[y])}for(;m.length;)u.removeTrack(m.shift())};this[s.getterName+"Listeners_"]=l,Object.keys(l).forEach(function(g){var m=l[g];o.addEventListener(g,m),i.on("dispose",function(y){return o.removeEventListener(g,m)})}),this.on("loadstart",c),this.on("dispose",function(g){return i.off("loadstart",c)})}},r.proxyNativeTracks_=function(){var e=this;ot.names.forEach(function(i){e.proxyNativeTracksForType_(i)})},r.createEl=function(){var e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=G.createElement("video");var s=this.options_.tag&&Lt(this.options_.tag),o=ve({},s);(!$r||this.options_.nativeControlsForTouch!==!0)&&delete o.controls,Bc(e,be(o,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Kr(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var u=["loop","muted","playsinline","autoplay"],l=0;l<u.length;l++){var c=u[l],g=this.options_[c];typeof g<"u"&&(g?Kr(e,c,c):Aa(e,c),e[c]=g)}return e},r.handleLateInit_=function(e){if(!(e.networkState===0||e.networkState===3)){if(e.readyState===0){var i=!1,s=function(){i=!0};this.on("loadstart",s);var o=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",o),this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",o),i||this.trigger("loadstart")});return}var u=["loadstart"];u.push("loadedmetadata"),e.readyState>=2&&u.push("loadeddata"),e.readyState>=3&&u.push("canplay"),e.readyState>=4&&u.push("canplaythrough"),this.ready(function(){u.forEach(function(l){this.trigger(l)},this)})}},r.setScrubbing=function(e){this.isScrubbi
|
||
|
.`+c+` {
|
||
|
width: `+o+`px;
|
||
|
height: `+u+`px;
|
||
|
}
|
||
|
|
||
|
.`+c+`.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
|
padding-top: `+m*100+`%;
|
||
|
}
|
||
|
`)},r.loadTech_=function(e,i){var s=this;this.tech_&&this.unloadTech_();var o=Ee(e),u=e.charAt(0).toLowerCase()+e.slice(1);o!=="Html5"&&this.tag&&(he.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=o,this.isReady_=!1;var l=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(l=!1);var c={source:i,autoplay:l,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+u+"_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,Promise:this.options_.Promise};je.names.forEach(function(m){var y=je[m];c[y.getterName]=s[y.privateName]}),be(c,this.options_[o]),be(c,this.options_[u]),be(c,this.options_[e.toLowerCase()]),this.tag&&(c.tag=this.tag),i&&i.src===this.cache_.src&&this.cache_.currentTime>0&&(c.startTime=this.cache_.currentTime);var g=he.getTech(e);if(!g)throw new Error("No Tech named '"+o+"' exists! '"+o+"' should be registered using videojs.registerTech()'");this.tech_=new g(c),this.tech_.ready(_e(this,this.handleTechReady_),!0),Fl.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Of.forEach(function(m){s.on(s.tech_,m,function(y){return s["handleTech"+Ee(m)+"_"](y)})}),Object.keys(ys).forEach(function(m){s.on(s.tech_,m,function(y){if(s.tech_.playbackRate()===0&&s.tech_.seeking()){s.queuedCallbacks_.push({callback:s["handleTech"+ys[m]+"_"].bind(s),event:y});return}s["handleTech"+ys[m]+"_"](y)})}),this.on(this.tech_,"loadstart",function(m){return s.handleTechLoadStart_(m)}),this.on(this.tech_,"sourceset",function(m){return s.handleTechSourceset_(m)}),this.on(this.tech_,"waiting",function(m){return s.handleTechWaiting_(m)}),this.on(this.tech_,"ended",function(m){return s.handleTechEnded_(m)}),this.on(this.tech_,"seeking",function(m){return s.handleTechSeeking_(m)}),this.on(this.tech_,"play",function(m){return s.handleTechPlay_(m)}),this.on(this.tech_,"firstplay",function(m){return s.handleTechFirstPlay_(m)}),this.on(this.tech_,"pause",function(m){return s.handleTechPause_(m)}),this.on(this.tech_,"durationchange",function(m){return s.handleTechDurationChange_(m)}),this.on(this.tech_,"fullscreenchange",function(m,y){return s.handleTechFullscreenChange_(m,y)}),this.on(this.tech_,"fullscreenerror",function(m,y){return s.handleTechFullscreenError_(m,y)}),this.on(this.tech_,"enterpictureinpicture",function(m){return s.handleTechEnterPictureInPicture_(m)}),this.on(this.tech_,"leavepictureinpicture",function(m){return s.handleTechLeavePictureInPicture_(m)}),this.on(this.tech_,"error",function(m){return s.handleTechError_(m)}),this.on(this.tech_,"posterchange",function(m){return s.handleTechPosterChange_(m)}),this.on(this.tech_,"textdata",function(m){return s.handleTechTextData_(m)}),this.on(this.tech_,"ratechange",function(m){return s.handleTechRateChange_(m)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(o!=="Html5"||!this.tag)&&Fs(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},r.unloadTech_=function(){var e=this;je.names.forEach(function(i){var s=je[i];e[s.privateName]=e[s.getterName]()}),this.textTracksJson_=Fl.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},r.tech=function(e){return e===void 0&&ie.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
|
||
|
See https://github.com/videojs/video.js/issues/2617 for more info.
|
||
|
`),this.tech_},r.addTechControlsListeners_=function(){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_)},r.removeTechControlsListeners_=function(){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_)},r.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},r.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())},r.manualAutoplay_=function(e){var i=this;if(!(!this.tech_||typeof e!="string")){var s=function(){var l=i.muted();i.muted(!0);var c=function(){i.muted(l)};i.playTerminatedQueue_.push(c);var g=i.play();if(!!Li(g))return g.catch(function(m){throw c(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(m||""))})},o;if(e==="any"&&!this.muted()?(o=this.play(),Li(o)&&(o=o.catch(s))):e==="muted"&&!this.muted()?o=s():o=this.play(),!!Li(o))return o.then(function(){i.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){i.trigger({type:"autoplay-failure",autoplay:e})})}},r.updateSourceCaches_=function(e){e===void 0&&(e="");var i=e,s="";typeof i!="string"&&(i=e.src,s=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],i&&!s&&(s=o_(this,i)),this.cache_.source=ve({},e,{src:i,type:s});for(var o=this.cache_.sources.filter(function(y){return y.src&&y.src===i}),u=[],l=this.$$("source"),c=[],g=0;g<l.length;g++){var m=Lt(l[g]);u.push(m),m.src&&m.src===i&&c.push(m.src)}c.length&&!o.length?this.cache_.sources=u:o.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=i},r.handleTechSourceset_=function(e){var i=this;if(!this.changingSrc_){var s=function(c){return i.updateSourceCaches_(c)},o=this.currentSource().src,u=e.src;o&&!/^blob:/.test(o)&&/^blob:/.test(u)&&(!this.lastSource_||this.lastSource_.tech!==u&&this.lastSource_.player!==o)&&(s=function(){}),s(u),e.src||this.tech_.any(["sourceset","loadstart"],function(l){if(l.type!=="sourceset"){var c=i.techGet("currentSrc");i.lastSource_.tech=c,i.updateSourceCaches_(c)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},r.hasStarted=function(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},r.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},r.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime(),s=function o(){i!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",o))};this.on("timeupdate",s)},r.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")}
|
||
|
.video-js {
|
||
|
width: 300px;
|
||
|
height: 150px;
|
||
|
}
|
||
|
|
||
|
.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
|
padding-top: 56.25%
|
||
|
}
|
||
|
`)}}Ms(1,I);I.VERSION=Ec;I.options=Ae.prototype.options_;I.getPlayers=function(){return Ae.players};I.getPlayer=function(a){var t=Ae.players,r;if(typeof a=="string"){var n=Ff(a),e=t[n];if(e)return e;r=Jt("#"+n)}else r=a;if(ti(r)){var i=r,s=i.player,o=i.playerId;if(s||t[o])return s||t[o]}};I.getAllPlayers=function(){return Object.keys(Ae.players).map(function(a){return Ae.players[a]}).filter(Boolean)};I.players=Ae.players;I.getComponent=H.getComponent;I.registerComponent=function(a,t){he.isTech(t)&&ie.warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),H.registerComponent.call(H,a,t)};I.getTech=he.getTech;I.registerTech=he.registerTech;I.use=Y0;Object.defineProperty(I,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(I.middleware,"TERMINATOR",{value:ea,writeable:!1,enumerable:!0});I.browser=T0;I.TOUCH_ENABLED=$r;I.extend=V_;I.mergeOptions=ve;I.bind=_e;I.registerPlugin=Dt.registerPlugin;I.deregisterPlugin=Dt.deregisterPlugin;I.plugin=function(a,t){return ie.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Dt.registerPlugin(a,t)};I.getPlugins=Dt.getPlugins;I.getPlugin=Dt.getPlugin;I.getPluginVersion=Dt.getPluginVersion;I.addLanguage=function(a,t){var r;return a=(""+a).toLowerCase(),I.options.languages=ve(I.options.languages,(r={},r[a]=t,r)),I.options.languages[a]};I.log=ie;I.createLogger=Dc;I.createTimeRange=I.createTimeRanges=mr;I.formatTime=Jr;I.setFormatTime=m_;I.resetFormatTime=g_;I.parseUrl=Lo;I.isCrossOrigin=Ia;I.EventTarget=Oe;I.on=nt;I.one=ka;I.off=Be;I.trigger=ri;I.xhr=ma.exports;I.TextTrack=Zi;I.AudioTrack=af;I.VideoTrack=sf;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(a){I[a]=function(){return ie.warn("videojs."+a+"() is deprecated; use videojs.dom."+a+"() instead"),zc[a].apply(null,arguments)}});I.computedStyle=qi;I.dom=zc;I.url=z0;I.defineLazyProperty=Jo;I.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});/*! @name @videojs/http-streaming @version 2.16.2 @license Apache-2.0 */var ft=va,oa=function(t,r,n){return t&&n&&n.responseURL&&r!==n.responseURL?n.responseURL:r},gt=function(t){return I.log.debug?I.log.debug.bind(I,"VHS:",t+" >"):function(){}},Zt=1/30,xt=Zt*3,Rf=function(t,r){var n=[],e;if(t&&t.length)for(e=0;e<t.length;e++)r(t.start(e),t.end(e))&&n.push([t.start(e),t.end(e)]);return I.createTimeRanges(n)},Mr=function(t,r){return Rf(t,function(n,e){return n-xt<=r&&e+xt>=r})},Fn=function(t,r){return Rf(t,function(n){return n-Zt>=r})},H_=function(t){if(t.length<2)return I.createTimeRanges();for(var r=[],n=1;n<t.length;n++){var e=t.end(n-1),i=t.start(n);r.push([e,i])}return I.createTimeRanges(r)},q_=function(t,r){var n=null,e=null,i=0,s=[],o=[];if(!t||!t.length||!r||!r.length)return I.createTimeRange();for(var u=t.length;u--;)s.push({time:t.start(u),type:"start"}),s.push({time:t.end(u),type:"end"});for(u=r.length;u--;)s.push({time:r.start(u),type:"start"}),s.push({time:r.end(u),type:"end"});for(s.sort(function(l,c){return l.time-c.time}),u=0;u<s.length;u++)s[u].type==="start"?(i++,i===2&&(n=s[u].time)):s[u].type==="end"&&(i--,i===1&&(e=s[u].time)),n!==null&&e!==null&&(o.push([n,e]),n=null,e=null);return I.createTimeRanges(o)},Mf=function(t){var r=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)r.push(t.start(n)+" => "+t.end(n));return r.join(", ")},j_=function(t,r,n){n===void 0&&(n=1);var e=t.length?t.end(t.length-1):0;return(e-r)/n},fr=function(t){for(var r=[],n=0;n<t.length;n++)r.push({start:t.start(n),end:t.end(n)});return r},G_=function(t,r){if(t===r)return!1;if(!t&&r||!r&&t||t.length!==r.length)return!0;for(var n=0;n<t.length;n++)if(t.start(n)!==r.start(n)||t.end(n)!==r.end(n))return!0;return!1},rd=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},Zo=function(t,r){var n=0;if(!t||!t.length)return n;for(var e=0;e<t.length;e++){var i=t.start(e),s=t.end(e);if(!(r>s)){if(r>i&&r<=s){n+=s-r;continue}n+=s-i}}return n},id=I.createTi
|
||
|
`;return e},hy=function(t){var r=t.bytes;return eh(r)},py=function(t){var r="",n;for(n=0;n<t.length;n++)r+=dy(t,n)+" ";return r},my=Object.freeze({__proto__:null,createTransferableMessage:Jf,initSegmentId:la,segmentKeyId:Zf,hexDump:eh,tagDump:hy,textRanges:py}),th=.25,gy=function(t,r){if(!r.dateTimeObject)return null;var n=r.videoTimingInfo.transmuxerPrependedSeconds,e=r.videoTimingInfo.transmuxedPresentationStart,i=e+n,s=t-i;return new Date(r.dateTimeObject.getTime()+s*1e3)},vy=function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds},_y=function(t,r){var n;try{n=new Date(t)}catch{return null}if(!r||!r.segments||r.segments.length===0)return null;var e=r.segments[0];if(n<e.dateTimeObject)return null;for(var i=0;i<r.segments.length-1;i++){e=r.segments[i];var s=r.segments[i+1].dateTimeObject;if(n<s)break}var o=r.segments[r.segments.length-1],u=o.dateTimeObject,l=o.videoTimingInfo?vy(o.videoTimingInfo):o.duration+o.duration*th,c=new Date(u.getTime()+l*1e3);return n>c?null:(n>u&&(e=o),{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:Qe.duration(r,r.mediaSequence+r.segments.indexOf(e)),type:e.videoTimingInfo?"accurate":"estimate"})},yy=function(t,r){if(!r||!r.segments||r.segments.length===0)return null;for(var n=0,e,i=0;i<r.segments.length&&(e=r.segments[i],n=e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationEnd:n+e.duration,!(t<=n));i++);var s=r.segments[r.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+s.duration*th)return null;e=s}return{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:n-e.duration,type:e.videoTimingInfo?"accurate":"estimate"}},Ty=function(t,r){var n,e;try{n=new Date(t),e=new Date(r)}catch{}var i=n.getTime(),s=e.getTime();return(s-i)/1e3},by=function(t){if(!t.segments||t.segments.length===0)return!1;for(var r=0;r<t.segments.length;r++){var n=t.segments[r];if(!n.dateTimeObject)return!1}return!0},xy=function(t){var r=t.playlist,n=t.time,e=n===void 0?void 0:n,i=t.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!r||e===void 0)return i({message:"getProgramTime: playlist and time must be provided"});var s=yy(e,r);if(!s)return i({message:"valid programTime was not found"});if(s.type==="estimate")return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var o={mediaSeconds:e},u=gy(e,s.segment);return u&&(o.programDateTime=u.toISOString()),i(null,o)},Sy=function a(t){var r=t.programTime,n=t.playlist,e=t.retryCount,i=e===void 0?2:e,s=t.seekTo,o=t.pauseAfterSeek,u=o===void 0?!0:o,l=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(typeof r>"u"||!n||!s)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!l.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!by(n))return c({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var g=_y(r,n);if(!g)return c({message:r+" was not found in the stream"});var m=g.segment,y=Ty(m.dateTimeObject,r);if(g.type==="estimate"){if(i===0)return c({message:r+" is not buffered yet. Try again"});s(g.estimatedStart+y),l.one("seeked",function(){a({programTime:r,playlist:n,retryCount:i-1,seekTo:s,pauseAfterSeek:u,tech:l,callback:c})});return}var b=m.start+y,S=function(){return c(null,l.currentTime())};l.one("seeked",S),u&&l.pause(),s(b)},bs=function(t,r){if(t.readyState===4)return r()},Ey=function(t,r,n){var e=[],i,s=!1,o=function(m,y,b,S){return y.abort(),s=!0,n(m,y,b,S)},u=function(m,y){if(!s){if(m)return o(m,y,"",e);var b=y.responseText.substring(e&&e.byteLength||0,y.responseText.length);if(e=Ag(e,Nd(b,!0)),i=i||wi(e),e.length<10||i&&e.length<i+2)return bs(y,function(){return o(m,y,"",e)});var S=yo(e);return S==="ts"&&e.length<188?bs(y,function(){return o(m,y,"",e)}):!S&&e.length<376?bs(y,function(){return o(m,y,"",e)})
|
||
|
browserWorkerPolyFill(self);
|
||
|
`+t},sh=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Fy=ah(sh(function(){var a=function(){this.init=function(){var d={};this.on=function(h,f){d[h]||(d[h]=[]),d[h]=d[h].concat(f)},this.off=function(h,f){var p;return d[h]?(p=d[h].indexOf(f),d[h]=d[h].slice(),d[h].splice(p,1),p>-1):!1},this.trigger=function(h){var f,p,v,_;if(f=d[h],!!f)if(arguments.length===2)for(v=f.length,p=0;p<v;++p)f[p].call(this,arguments[1]);else{for(_=[],p=arguments.length,p=1;p<arguments.length;++p)_.push(arguments[p]);for(v=f.length,p=0;p<v;++p)f[p].apply(this,_)}},this.dispose=function(){d={}}}};a.prototype.pipe=function(T){return this.on("data",function(d){T.push(d)}),this.on("done",function(d){T.flush(d)}),this.on("partialdone",function(d){T.partialFlush(d)}),this.on("endedtimeline",function(d){T.endTimeline(d)}),this.on("reset",function(d){T.reset(d)}),T},a.prototype.push=function(T){this.trigger("data",T)},a.prototype.flush=function(T){this.trigger("done",T)},a.prototype.partialFlush=function(T){this.trigger("partialdone",T)},a.prototype.endTimeline=function(T){this.trigger("endedtimeline",T)},a.prototype.reset=function(T){this.trigger("reset",T)};var t=a,r=Math.pow(2,32),n=function(d){var h=new DataView(d.buffer,d.byteOffset,d.byteLength),f;return h.getBigUint64?(f=h.getBigUint64(0),f<Number.MAX_SAFE_INTEGER?Number(f):f):h.getUint32(0)*r+h.getUint32(4)},e={getUint64:n,MAX_UINT32:r},i=e.MAX_UINT32,s,o,u,l,c,g,m,y,b,S,x,w,L,q,O,F,U,M,R,V,B,K,$,J,oe,fe,re,ae,pe,Me,ue,nn,at,wt,Kt,tr;(function(){var T;if($={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(T in $)$.hasOwnProperty(T)&&($[T]=[T.charCodeAt(0),T.charCodeAt(1),T.charCodeAt(2),T.charCodeAt(3)]);J=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),fe=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),oe=new Uint8Array([0,0,0,1]),re=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]),ae=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]),pe={video:re,audio:ae},nn=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue=new Uint8Array([0,0,0,0,0,0,0,0]),at=new Uint8Array([0,0,0,0,0,0,0,0]),wt=at,Kt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),tr=at,Me=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),s=function(d){var h=[],f=0,p,v,_;for(p=1;p<arguments.length;p++)h.push(arguments[p]);for(p=h.length;p--;)f+=h[p].byteLength;for(v=new Uint8Array(f+8),_=new DataView(v.buffer,v.byteOffset,v.byteLength),_.setUint32(0,v.byteLength),v.set(d,4),p=0,f=8;p<h.length;p++)v.set(h[p],f),f+=h[p].byteLength;return v},o=function(){return s($.dinf,s($.dref,nn))},u=function(d){return s($.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,d.audioobjecttype<<3|d.samplingfrequencyindex>>>1,d.samplingfrequencyindex<<7|d.channelcount<<3,6,1,2]))},l=function(){return s($.ftyp,J,oe,J,fe)},F=function(d){return s($.hdlr,pe[d])},c=function(d){return s($.mdat,d)},O=function(d){var h=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,d.duration>>>24&255,d.duration>>>16&255,d.duration>>>8&255,d.duration&255,85,196,0,0]);return d.samplerate&&(h[12]=d.samplerate>>>24&255,h[13]=d.samplerate>>>16&255,h[14]=d.samplerate>>>8&255,h[15]=d.samplerate&255),s($.mdhd,h)},q=function(d){return s($.mdia,O(d),F(d.type),m(d))},g=function(d){return s($.mfhd,new Uint8Array([0,0,0,0,(d&4278190080)>>24,(d&16711680)>>16,(d&65280)>>8,d&255]))},m=function(d){return s($.minf,d.type==="video"?s($.vmhd,Me):s($.smhd,ue),o(),M(d))},y=function(d,h){for(var f=[],p=h.length;p--;)f[p]=V(h[p]);return s.apply(null,[$.moof,g(d)].concat(f))},b=function(d){for(var h=d.length,f=[];h--;)f[h]=w(d[h]);return s.apply(nul
|
||
|
`)},kt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},kt.prototype.newLine=function(T){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(T),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},kt.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},kt.prototype.addText=function(T){this.rows[this.rowIdx]+=T},kt.prototype.backspace=function(){if(!this.isEmpty()){var T=this.rows[this.rowIdx];this.rows[this.rowIdx]=T.substr(0,T.length-1)}};var un=function(d,h,f){this.serviceNum=d,this.text="",this.currentWindow=new kt(-1),this.windows=[],this.stream=f,typeof h=="string"&&this.createTextDecoder(h)};un.prototype.init=function(T,d){this.startPts=T;for(var h=0;h<8;h++)this.windows[h]=new kt(h),typeof d=="function"&&(this.windows[h].beforeRowOverflow=d)},un.prototype.setCurrentWindow=function(T){this.currentWindow=this.windows[T]},un.prototype.createTextDecoder=function(T){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(T)}catch(d){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+T+" encoding. "+d})}};var me=function T(d){d=d||{},T.prototype.init.call(this);var h=this,f=d.captionServices||{},p={},v;Object.keys(f).forEach(function(_){v=f[_],/^SERVICE/.test(_)&&(p[_]=v.encoding)}),this.serviceEncodings=p,this.current708Packet=null,this.services={},this.push=function(_){_.type===3?(h.new708Packet(),h.add708Bytes(_)):(h.current708Packet===null&&h.new708Packet(),h.add708Bytes(_))}};me.prototype=new t,me.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},me.prototype.add708Bytes=function(T){var d=T.ccData,h=d>>>8,f=d&255;this.current708Packet.ptsVals.push(T.pts),this.current708Packet.data.push(h),this.current708Packet.data.push(f)},me.prototype.push708Packet=function(){var T=this.current708Packet,d=T.data,h=null,f=null,p=0,v=d[p++];for(T.seq=v>>6,T.sizeCode=v&63;p<d.length;p++)v=d[p++],h=v>>5,f=v&31,h===7&&f>0&&(v=d[p++],h=v),this.pushServiceBlock(h,p,f),f>0&&(p+=f-1)},me.prototype.pushServiceBlock=function(T,d,h){var f,p=d,v=this.current708Packet.data,_=this.services[T];for(_||(_=this.initService(T,p));p<d+h&&p<v.length;p++)f=v[p],on(f)?p=this.handleText(p,_):f===24?p=this.multiByteCharacter(p,_):f===16?p=this.extendedCommands(p,_):128<=f&&f<=135?p=this.setCurrentWindow(p,_):152<=f&&f<=159?p=this.defineWindow(p,_):f===136?p=this.clearWindows(p,_):f===140?p=this.deleteWindows(p,_):f===137?p=this.displayWindows(p,_):f===138?p=this.hideWindows(p,_):f===139?p=this.toggleWindows(p,_):f===151?p=this.setWindowAttributes(p,_):f===144?p=this.setPenAttributes(p,_):f===145?p=this.setPenColor(p,_):f===146?p=this.setPenLocation(p,_):f===143?_=this.reset(p,_):f===8?_.currentWindow.backspace():f===12?_.currentWindow.clearText():f===13?_.currentWindow.pendingNewLine=!0:f===14?_.currentWindow.clearText():f===141&&p++},me.prototype.extendedCommands=function(T,d){var h=this.current708Packet.data,f=h[++T];return on(f)&&(T=this.handleText(T,d,{isExtended:!0})),T},me.prototype.getPts=function(T){return this.current708Packet.ptsVals[Math.floor(T/2)]},me.prototype.initService=function(T,d){var f="SERVICE"+T,h=this,f,p;return f in this.serviceEncodings&&(p=this.serviceEncodings[f]),this.services[T]=new un(T,p,h),this.services[T].init(this.getPts(d),function(v){h.flushDisplayed(v,h.services[T])}),this.services[T]},me.prototype.handleText=function(T,d,h){var f=h&&h.isExtended,p=h&&h.isMultiByte,v=this.current708Packet.data,_=f?4096:0,E=v[T],C=v[T+1],k=d.currentWindow,D,P;return d.textDecoder_&&!f?(p?(P=[E,C],T++):P=[E],D=d.textDecoder_.decode(new Uint8Array(P))):D=zh(_|E),k.pendingNewLine&&!k.isEmpty()&&k.newLine(this.getPts(T)),k.pendingNewLine=!1,k.addText(D),T},me.prototype.multiByteCharacter=function(T,d){var h
|
||
|
|
||
|
`),this.pushCaption(d),d.startPts=T},me.prototype.pushCaption=function(T){T.text!==""&&(this.trigger("data",{startPts:T.startPts,endPts:T.endPts,text:T.text,stream:"cc708_"+T.serviceNum}),T.text="",T.startPts=T.endPts)},me.prototype.displayWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible=1);return T},me.prototype.hideWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible=0);return T},me.prototype.toggleWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&(d.windows[v].visible^=1);return T},me.prototype.clearWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&d.windows[v].clearText();return T},me.prototype.deleteWindows=function(T,d){var h=this.current708Packet.data,f=h[++T],p=this.getPts(T);this.flushDisplayed(p,d);for(var v=0;v<8;v++)f&1<<v&&d.windows[v].reset();return T},me.prototype.setPenAttributes=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penAttr;return f=h[++T],p.textTag=(f&240)>>4,p.offset=(f&12)>>2,p.penSize=f&3,f=h[++T],p.italics=(f&128)>>7,p.underline=(f&64)>>6,p.edgeType=(f&56)>>3,p.fontStyle=f&7,T},me.prototype.setPenColor=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penColor;return f=h[++T],p.fgOpacity=(f&192)>>6,p.fgRed=(f&48)>>4,p.fgGreen=(f&12)>>2,p.fgBlue=f&3,f=h[++T],p.bgOpacity=(f&192)>>6,p.bgRed=(f&48)>>4,p.bgGreen=(f&12)>>2,p.bgBlue=f&3,f=h[++T],p.edgeRed=(f&48)>>4,p.edgeGreen=(f&12)>>2,p.edgeBlue=f&3,T},me.prototype.setPenLocation=function(T,d){var h=this.current708Packet.data,f=h[T],p=d.currentWindow.penLoc;return d.currentWindow.pendingNewLine=!0,f=h[++T],p.row=f&15,f=h[++T],p.column=f&63,T},me.prototype.reset=function(T,d){var h=this.getPts(T);return this.flushDisplayed(h,d),this.initService(d.serviceNum,T)};var $h={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},ln=function(d){return d===null?"":(d=$h[d]||d,String.fromCharCode(d))},dn=14,Kh=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],rr=function(){for(var d=[],h=dn+1;h--;)d.push("");return d},Te=function T(d,h){T.prototype.init.call(this),this.field_=d||0,this.dataChannel_=h||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(f){var p,v,_,E,C;if(p=f.ccData&32639,p===this.lastControlCode_){this.lastControlCode_=null;return}if((p&61440)===4096?this.lastControlCode_=p:p!==this.PADDING_&&(this.lastControlCode_=null),_=p>>>8,E=p&255,p!==this.PADDING_)if(p===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(p===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(f.pts),this.flushDisplayed(f.pts),v=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=v,this.startPts_=f.pts;else if(p===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(f.pts);else if(p===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(f.pts);else if(p===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(f.pts);else if(p===this.CARRIAGE_RETURN_)this.clearFormatting(f.pts),this.flushDisplayed(f.pts),this.shiftRowsUp_(),this.startPts_=f.pts;else if(p===this.BACKSPACE_)t
|
||
|
`).replace(/^\n+|\n+$/g,"");d.length&&this.trigger("data",{startPts:this.startPts_,endPts:T,text:d,stream:this.name_})},Te.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=rr(),this.nonDisplayed_=rr(),this.lastControlCode_=null,this.column_=0,this.row_=dn,this.rollUpRows_=2,this.formatting_=[]},Te.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},Te.prototype.isSpecialCharacter=function(T,d){return T===this.EXT_&&d>=48&&d<=63},Te.prototype.isExtCharacter=function(T,d){return(T===this.EXT_+1||T===this.EXT_+2)&&d>=32&&d<=63},Te.prototype.isMidRowCode=function(T,d){return T===this.EXT_&&d>=32&&d<=47},Te.prototype.isOffsetControlCode=function(T,d){return T===this.OFFSET_&&d>=33&&d<=35},Te.prototype.isPAC=function(T,d){return T>=this.BASE_&&T<this.BASE_+8&&d>=64&&d<=127},Te.prototype.isColorPAC=function(T){return T>=64&&T<=79||T>=96&&T<=127},Te.prototype.isNormalChar=function(T){return T>=32&&T<=127},Te.prototype.setRollUp=function(T,d){if(this.mode_!=="rollUp"&&(this.row_=dn,this.mode_="rollUp",this.flushDisplayed(T),this.nonDisplayed_=rr(),this.displayed_=rr()),d!==void 0&&d!==this.row_)for(var h=0;h<this.rollUpRows_;h++)this.displayed_[d-h]=this.displayed_[this.row_-h],this.displayed_[this.row_-h]="";d===void 0&&(d=this.row_),this.topRow_=d-this.rollUpRows_+1},Te.prototype.addFormatting=function(T,d){this.formatting_=this.formatting_.concat(d);var h=d.reduce(function(f,p){return f+"<"+p+">"},"");this[this.mode_](T,h)},Te.prototype.clearFormatting=function(T){if(!!this.formatting_.length){var d=this.formatting_.reverse().reduce(function(h,f){return h+"</"+f+">"},"");this.formatting_=[],this[this.mode_](T,d)}},Te.prototype.popOn=function(T,d){var h=this.nonDisplayed_[this.row_];h+=d,this.nonDisplayed_[this.row_]=h},Te.prototype.rollUp=function(T,d){var h=this.displayed_[this.row_];h+=d,this.displayed_[this.row_]=h},Te.prototype.shiftRowsUp_=function(){var T;for(T=0;T<this.topRow_;T++)this.displayed_[T]="";for(T=this.row_+1;T<dn+1;T++)this.displayed_[T]="";for(T=this.topRow_;T<this.row_;T++)this.displayed_[T]=this.displayed_[T+1];this.displayed_[this.row_]=""},Te.prototype.paintOn=function(T,d){var h=this.displayed_[this.row_];h+=d,this.displayed_[this.row_]=h};var cn={CaptionStream:et,Cea608Stream:Te,Cea708Stream:me},Le={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Xh=8589934592,Yh=4294967296,pu="shared",qa=function(d,h){var f=1;for(d>h&&(f=-1);Math.abs(h-d)>Yh;)d+=f*Xh;return d},mu=function T(d){var h,f;T.prototype.init.call(this),this.type_=d||pu,this.push=function(p){this.type_!==pu&&p.type!==this.type_||(f===void 0&&(f=p.dts),p.dts=qa(p.dts,f),p.pts=qa(p.pts,f),h=p.dts,this.trigger("data",p))},this.flush=function(){f=h,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){f=void 0,h=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};mu.prototype=new t;var gu={TimestampRolloverStream:mu,handleRollover:qa},vu=function(d,h,f){var p,v="";for(p=h;p<f;p++)v+="%"+("00"+d[p].toString(16)).slice(-2);return v},fn=function(d,h,f){return decodeURIComponent(vu(d,h,f))},Qh=function(d,h,f){return unescape(vu(d,h,f))},hn=function(d){return d[0]<<21|d[1]<<14|d[2]<<7|d[3]},_u={TXXX:function(d){var h;if(d.data[0]===3){for(h=1;h<d.data.length;h++)if(d.data[h]===0){d.description=fn(d.data,1,h),d.value=fn(d.data,h+1,d.data.length).replace(/\0*$/,"");break}d.data=d.value}},WXXX:fu
|
||
|
|
||
|
`.split("").map(function(a){return a.charCodeAt(0)})),CT=function(a){W(t,a);function t(){return a.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return t}(Ls(Error)),AT=function(a){W(t,a);function t(n,e){var i;return e===void 0&&(e={}),i=a.call(this,n,e)||this,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=n.featuresNativeTextTracks,i.loadVttJs=n.loadVttJs,i.shouldSaveSegmentTimingInfo_=!1,i}var r=t.prototype;return r.createTransmuxer_=function(){return null},r.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return I.createTimeRanges();var e=this.subtitlesTrack_.cues,i=e[0].startTime,s=e[e.length-1].startTime;return I.createTimeRanges([[i,s]])},r.initSegmentForMap=function(e,i){if(i===void 0&&(i=!1),!e)return null;var s=la(e),o=this.initSegments_[s];if(i&&!o&&e.bytes){var u=_d.byteLength+e.bytes.byteLength,l=new Uint8Array(u);l.set(e.bytes),l.set(_d,e.bytes.byteLength),this.initSegments_[s]=o={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:l}}return o||e},r.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},r.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},r.track=function(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)},r.remove=function(e,i){Pi(e,i,this.subtitlesTrack_)},r.fillBuffer_=function(){var e=this,i=this.chooseNextRequest_();if(!!i){if(this.syncController_.timestampOffsetForTimeline(i.timeline)===null){var s=function(){e.state="READY",e.paused()||e.monitorBuffer_()};this.syncController_.one("timestampoffset",s),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(i)}},r.timestampOffsetForSegment_=function(){return null},r.chooseNextRequest_=function(){return this.skipEmptySegments_(a.prototype.chooseNextRequest_.call(this))},r.skipEmptySegments_=function(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},r.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},r.segmentRequestFinished_=function(e,i,s){var o=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(i.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===St.TIMEOUT&&this.handleTimeout_(),e.code===St.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}var u=this.pendingSegment_;this.saveBandwidthRelatedStats_(u.duration,i.stats),i.key&&this.segmentKey(i.key,!0),this.state="APPENDING",this.trigger("appending");var l=u.segment;if(l.map&&(l.map.bytes=i.map.bytes),u.bytes=i.bytes,typeof A.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return o.segmentRequestFinished_(e,i,s)},function(){return o.stopForError({message:"Error loading vtt.js"})});return}l.requested=!0;try{this.parseVTTCues_(u)}catch(c){this.stopForError({message:c.message});return}if(this.updateTimeMapping_(u,this.syncController_.timelines[u.timeline],this.playlist_),u.cues.length?u.timingInfo={start:u.cues[0].startTime,end:u.cues[u.cues.length-1].endTime}:u.timingInfo={start:u.startOfSegment,end:u.startOfSegment+u.duration},u.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}u.byteLength=u.bytes.byteLength,this.mediaSecondsLoaded+=l.duration,u.cues.forEach(function(c){o.subtitlesTrack_.addCue(o.featuresNativeTextTracks_?new A.VTTCue(c.startTime,c.endTime,c.text):c)}),cT(this.subtitlesTrack_),this.handleAppendsDone_()},r.handleData_=function(){},r.updateTimingInfoEnd_=function(){},r.parseVTTCues_=function(e){var i,s=!1;if(typeof A.WebVTT!="function")throw new CT;typeo
|
||
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
||
|
<el-form-item style="width: 180px" label="\u9884\u8B66\u60C5\u51B5:">
|
||
|
<el-select
|
||
|
popper-class="selectCity"
|
||
|
v-model="formInline.flag"
|
||
|
placeholder="\u8BF7\u9009\u62E9"
|
||
|
>
|
||
|
<el-option label="\u6709" value="\u6709" />
|
||
|
<el-option label="\u65E0" value="\u65E0" />
|
||
|
</el-select>
|
||
|
</el-form-item>
|
||
|
<el-form-item style="width: 300px" label="\u76D1\u6D4B\u65F6\u95F4:">
|
||
|
<el-date-picker
|
||
|
v-model="value1"
|
||
|
type="daterange"
|
||
|
range-separator="\u27A1\uFE0F"
|
||
|
start-placeholder="\u5F00\u59CB\u65E5\u671F"
|
||
|
end-placeholder="\u7ED3\u675F\u65E5\u671F"
|
||
|
/>
|
||
|
</el-form-item>
|
||
|
<el-form-item>
|
||
|
<el-button type="primary" @click="onSubmit">\u67E5\u8BE2</el-button>
|
||
|
<el-button plain @click="resetForm">\u91CD\u7F6E</el-button>
|
||
|
</el-form-item>
|
||
|
</el-form>
|
||
|
</div> `),we("div",Db,[we("div",wb,[It(R,{data:vi(i),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"header-row-class-name":"tabth",height:"80%","highlight-current-row":""},{default:Za(()=>[It(M,{type:"index",width:"80",label:"\u5E8F\u53F7",index:w}),It(M,{prop:"village",label:"\u6751\u540D",width:"180"}),It(M,{prop:"cameraName",label:"\u6444\u50CF\u5934\u540D\u79F0",width:"180"}),It(M,{label:"\u64CD\u4F5C"},{default:Za(K=>[we("span",{style:{color:"rgba(100, 195, 164, 1)",cursor:"pointer"},onClick:$=>x(K.row)}," \u64AD\u653E ",8,kb)]),_:1})]),_:1},8,["data"]),we("div",Pb,[$u(" \u5171"+Ku(vi(r).length)+"\u6761 ",1),It(V,{background:"",layout:"prev, pager, next",total:vi(r).length,"current-page":O.tabulationcurrentPage,"page-size":O.tabulationpageSize,onCurrentChange:O.tabulationCurrentChange},null,8,["total","current-page","page-size","onCurrentChange"])])])])]),we("div",Ib,[we("div",{class:"arrow",onClick:F[0]||(F[0]=(...K)=>O.foldClick&&O.foldClick(...K))},[O.flags?Ja("v-if",!0):(Nn(),Bn("p",Ob,Fb)),O.flags?(Nn(),Bn("p",Rb,Nb)):Ja("v-if",!0)])]),Bb]),It(B,{modelValue:s.value,"onUpdate:modelValue":F[1]||(F[1]=K=>s.value=K),"append-to-body":"",class:"video","destroy-on-close":"",title:"\u5B9E\u65F6\u76D1\u63A7",width:"30%","before-close":O.handleClose},{default:Za(()=>[we("div",Ub,[It(Tb,{videoSrc:g.videoSrc,autoPlay:""},null,8,["videoSrc"])])]),_:1},8,["modelValue","before-close"])])])}}},Gb=Cd(Vb,[["__scopeId","data-v-21cafe5e"],["__file","/Users/luce/Desktop/\u6570\u5B57\u4E09\u519C/Agriculture-front-end/src/views/plough/VideoSurveillance/index.vue"]]);export{Gb as default};
|