import{aM as commonjsGlobal,aN as getDefaultExportFromCjs,d as defineComponent,U as toRefs,Q as ref,o as onMounted,S as watch,a as createVNode,T as Transition,aS as getSecondRPM,m as createTextVNode,F as Fragment,V as nextTick,R as usePageVisibility,r as reactive,h as onUnmounted,f as useRoute,s as state,l as listenerMessage,p as postMessage,L as Icon,P as Popup,B as Button,i as isVNode,e as request,X as promisefiyPostMessage}from"./index-81a4e71e.js";import{S as Slider,V as Vue3Lottie,p as playLoadData,i as iconBack}from"./tcplayer.min-ea8c1b33.js";import{a as handleCheckVip,h as hasVip,b as showDialog}from"./useFee-640dbce7.js";import{S as Swipe,a as SwipeItem}from"./index-677657d2.js";import{u as useInterval,a as useIntervalFn}from"./index-4b58cac2.js";const playContent="_playContent_1ghmj_1",coursewarePlay="_coursewarePlay_1ghmj_7",playModel="_playModel_1ghmj_13",headerContainer="_headerContainer_1ghmj_22",backBtn="_backBtn_1ghmj_35",menu="_menu_1ghmj_44",tabsContent="_tabsContent_1ghmj_50",loadWrap="_loadWrap_1ghmj_61",itemDiv="_itemDiv_1ghmj_72",videoSection="_videoSection_1ghmj_87",videoModel="_videoModel_1ghmj_95",rightFixedBtns="_rightFixedBtns_1ghmj_109",point="_point_1ghmj_115",fullBtn="_fullBtn_1ghmj_120",leftFixedBtns="_leftFixedBtns_1ghmj_124",prePoint="_prePoint_1ghmj_130",bottomFixedContainer="_bottomFixedContainer_1ghmj_147",time="_time_1ghmj_156",slider="_slider_1ghmj_162",actions="_actions_1ghmj_169",actionBtn="_actionBtn_1ghmj_177",popup="_popup_1ghmj_187",overlayClass="_overlayClass_1ghmj_190",visiablePopup="_visiablePopup_1ghmj_225",title="_title_1ghmj_239",content="_content_1ghmj_245",btnGroup="_btnGroup_1ghmj_251",styles={playContent:playContent,coursewarePlay:coursewarePlay,playModel:playModel,headerContainer:headerContainer,backBtn:backBtn,menu:menu,tabsContent:tabsContent,loadWrap:loadWrap,itemDiv:itemDiv,videoSection:videoSection,videoModel:videoModel,rightFixedBtns:rightFixedBtns,point:point,fullBtn:fullBtn,leftFixedBtns:leftFixedBtns,prePoint:prePoint,bottomFixedContainer:bottomFixedContainer,time:time,slider:slider,actions:actions,actionBtn:actionBtn,popup:popup,overlayClass:overlayClass,visiablePopup:visiablePopup,title:title,content:content,btnGroup:btnGroup},iconplay=""+new URL("icon-play-e9875d7d.svg",import.meta.url).href,iconpause=""+new URL("icon-pause-7c9eee52.svg",import.meta.url).href,iconVideobg=""+new URL("icon-videobg-2414ec8d.png",import.meta.url).href;var tcplayer_v4_9_1_min={exports:{}};(function(module,exports){var e;e=function(){function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}function each(t,e){keys(t).forEach((function(i){return e(t[i],i)}))}function reduce(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return keys(t).reduce((function(i,n){return e(i,t[n],n)}),i)}function assign(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=document_1.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(log$2.warn(tsml(_templateObject,t,i)),r.setAttribute(t,i)):"textContent"===t?textContent(r,i):r[t]=i})),Object.getOwnPropertyNames(i).forEach((function(t){r.setAttribute(t,i[t])})),n&&appendContent(r,n),r}function textContent(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function prependTo(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function hasClass(t,e){return throwIfWhitespace(e),t.classList?t.classList.contains(e):classRegExp(e).test(t.className)}function addClass(t,e){return t.classList?t.classList.add(e):hasClass(t,e)||(t.className=(t.className+" "+e).trim()),t}function removeClass(t,e){return t.classList?t.classList.remove(e):(throwIfWhitespace(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function toggleClass(t,e,i){var n=hasClass(t,e);if("function"==typeof i&&(i=i(t,e)),"boolean"!=typeof i&&(i=!n),i!==n)return i?addClass(t,e):removeClass(t,e),t}function setAttributes(t,e){Object.getOwnPropertyNames(e).forEach((function(i){var n=e[i];null==n||!1===n?t.removeAttribute(i):t.setAttribute(i,!0===n?"":n)}))}function getAttributes(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,o=i[n].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(o=null!==o),e[r]=o}return e}function getAttribute(t,e){return t.getAttribute(e)}function setAttribute(t,e,i){t.setAttribute(e,i)}function removeAttribute(t,e){t.removeAttribute(e)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(i[t]=e[t])})),i.height||(i.height=parseFloat(computedStyle(t,"height"))),i.width||(i.width=parseFloat(computedStyle(t,"width"))),i}}function findPosition(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var i=document_1.documentElement,n=document_1.body,r=i.clientLeft||n.clientLeft||0,o=window_1.pageXOffset||n.scrollLeft,s=e.left+o-r,a=i.clientTop||n.clientTop||0,l=window_1.pageYOffset||n.scrollTop,c=e.top+l-a;return{left:Math.round(s),top:Math.round(c)}}function getPointerPosition(t,e,i){var n={},r=findPosition(t),o=t.offsetWidth,s=t.offsetHeight,a=r.top,l=r.left,c=e.pageY,u=e.pageX;if(e.changedTouches&&(u=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY),i){var h=[c,u];u=h[0],c=h[1]}return n.y=Math.max(0,Math.min(1,(a-c+s)/s)),n.x=Math.max(0,Math.min(1,(u-l)/o)),n}function isTextNode(t){return isObject$1(t)&&3===t.nodeType}function emptyEl(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function normalizeContent(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),isEl(t)||isTextNode(t)?t:"string"==typeof t&&/\S/.test(t)?document_1.createTextNode(t):void 0})).filter((function(t){return t}))}function appendContent(t,e){return normalizeContent(e).forEach((function(e){return t.appendChild(e)})),t}function insertContent(t,e){return appendContent(emptyEl(t),e)}function isSingleLeftClick(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||9===IE_VERSION||0===t.button&&1===t.buttons}function newGUID(){return _guid++}function getData(t){var e=t[elIdAttr];return e||(e=t[elIdAttr]=newGUID()),elData[e]||(elData[e]={}),elData[e]}function hasData(t){var e=t[elIdAttr];return!!e&&!!Object.getOwnPropertyNames(elData[e]).length}function removeData(t){var e=t[elIdAttr];if(e){delete elData[e];try{delete t[elIdAttr]}catch(i){t.removeAttribute?t.removeAttribute(elIdAttr):t[elIdAttr]=null}}}function _cleanUpEvents(t,e){var i=getData(t);0===i.handlers[e].length&&(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&removeData(t)}function _handleMultipleEvents(t,e,i,n){i.forEach((function(i){t(e,i,n)}))}function fixEvent(t){function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped){var n=t||window_1.event;for(var r in t={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||document_1),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&&void 0!==t.clientX){var o=document_1.documentElement,s=document_1.body;t.pageX=t.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function on(t,e,i){if(Array.isArray(e))return _handleMultipleEvents(on,t,e,i);var n=getData(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=newGUID()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=fixEvent(e);var r=n.handlers[e.type];if(r)for(var o=r.slice(0),s=0,a=o.length;s-1&&(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,n.dispatcher)}function off(t,e,i){if(hasData(t)){var n=getData(t);if(n.handlers){if(Array.isArray(e))return _handleMultipleEvents(off,t,e,i);var r=function(t,e){n.handlers[e]=[],_cleanUpEvents(t,e)};if(void 0!==e){var o=n.handlers[e];if(o){if(!i)return void r(t,e);if(i.guid)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(e){if(!t[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');t.eventBusEl_=t[e]}else t.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(t,EventedMixin),t.on("dispose",(function(){t.off(),window_1.setTimeout((function(){t.eventBusEl_=null}),0)})),t}function stateful(t,e){return assign(t,StatefulMixin),t.state=assign({},t.state,e),"function"==typeof t.handleStateChanged&&isEvented(t)&&t.on("statechanged",t.handleStateChanged),t}function toTitleCase(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function titleCaseEquals(t,e){return toTitleCase(t)===toTitleCase(e)}function mergeOptions(){for(var t={},e=arguments.length,i=Array(e),n=0;n-1}function listCacheSet(t,e){var i=this.__data__,n=_assocIndexOf(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function ListCache(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e-1)t=t.replace(".sdp",".flv"),e.push(t.replace(".sdp",".m3u8"));else{var i=t.replace("webrtc://","https://").replace("?",".flv?");-1===i.indexOf("?")&&-1===i.indexOf(".flv")&&(i+=".flv"),hlsSrc=t.replace("webrtc://","https://").replace("?",".m3u8?"),-1===hlsSrc.indexOf("?")&&-1===hlsSrc.indexOf(".m3u8")&&(hlsSrc+=".m3u8"),e.push(hlsSrc)}return e}function replaceHost(t,e){var i=t.match(/^http(s)?:\/\/(.*?)\//);return t.replace(i[2],e)}function getViewportSize(){var t=document,e=t.documentElement,i=t.body;return{width:e&&e.clientWidth||i&&i.offsetWidth||window.innerWidth||0,height:e&&e.clientHeight||i&&i.offsetHeight||window.innerHeight||0}}function getTimeStamp(){ return(new Date).getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadCssText(t,e){var i=document.getElementById(t);if(i)i.innerHTML=e;else{var n=document.createElement("style");n.id=t,n.type="text/css",n.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(n)}}function releaseCssText(t){var e=document.getElementById(t);e&&e.remove()}function loadScript(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=document.createElement("script");if(r.onload=r.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||("function"==typeof e&&e(),r.onload=r.onreadystatechange=null,r.parentNode&&!n&&r.parentNode.removeChild(r))},i)for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];null===s?r.removeAttribute(s):r.setAttribute(o,s)}r.src=t,document.getElementsByTagName("head")[0].appendChild(r)}function serializeParams(t){var e=[],i=function(t,i){i=null==(i="function"==typeof i?i():i)?"":i,e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(i)};return function n(t,r){var o=void 0,s=void 0,a=void 0;if(t)if(Array.isArray(r))for(o=0,s=r.length;o/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(t){return/webrtc:\/\//.test(t)||/\.sdp/.test(t)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function arrangeWebrtcSource(t,e){var i=getParams("tabr_bitrates",t),n=getParams("tabr_start_bitrate",t),r="auto"===getParams("tabr_control",t);t=t.replace("&tabr_control=auto","");var o=[],s=[];if(i&&n){var a;s=i.split(",").map((function(i){var r,s=e.webrtcConfig.abrLabels[i]||i;return o.push(s),(r={})[s]=[{src:t.replace("tabr_start_bitrate="+n,"tabr_start_bitrate="+i)}],r})),r&&(s.push(((a={})[e.webrtcConfig.abrLabels.auto||"AUTO"]=[{src:t+"&tabr_control=auto"}],a)),o.push(e.webrtcConfig.abrLabels.auto||"AUTO"));var l={};s.forEach((function(t){for(var e in t)l[e]=t[e]})),e.showOrder=o,e.defaultRes=r?e.webrtcConfig.abrLabels.auto||"AUTO":e.webrtcConfig.abrLabels[n]||n||o[0];var c={};o.forEach((function(t){c[t]=e.webrtcConfig.abrLabels[t]||t})),e.labels=c,e.label=c,e.sources=[],e.multiResolution={sources:l}}}function rangeCheck(t,e,i){if("number"!=typeof e||e<0||e>i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}function getRange(t,e,i,n){return rangeCheck(t,n,i.length-1),i[n][e]}function createTimeRangesObj(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:getRange.bind(null,"start",0,t),end:getRange.bind(null,"end",1,t)}}function createTimeRanges(t,e){return Array.isArray(t)?createTimeRangesObj(t):void 0===t||void 0===e?createTimeRangesObj():createTimeRangesObj([[t,e]])}function bufferedPercent(t,e){var i=0,n=void 0,r=void 0;if(!e)return 0;t&&t.length||(t=createTimeRanges(0,0));for(var o=0;oe&&(r=e),i+=r-n;return i/e}function MediaError(t){if(t instanceof MediaError)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:isObject$1(t)&&("number"==typeof t.code&&(this.code=t.code),assign(this,t)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(t,e){var i,n=null;try{i=JSON.parse(t,e)}catch(r){n=r}return[n,i]}function isPromise(t){return void 0!==t&&"function"==typeof t.then}function silencePromise(t){isPromise(t)&&t.then(null,(function(t){}))}function isFunction$3(t){if(!t)return!1;var e=toString$3.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}function extend$1(){for(var t={},e=0;e0&&(c=setTimeout((function(){if(!l){l=!0,s.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),s.setRequestHeader)for(a in d)d.hasOwnProperty(a)&&s.setRequestHeader(a,d[a]);else if(t.headers&&!isEmpty(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(s.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(s),s.send(p||null),s}function getXml(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function noop(){}function ParsingError(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function parseTimeStamp(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(t,e,i,n){var r=n?t.split(n):[t];for(var o in r)if("string"==typeof r[o]){var s=r[o].split(i);2===s.length&&e(s[0],s[1])}}function parseCue(t,e,i){function n(){var e=parseTimeStamp(t);if(null===e)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+l);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}var o,s,a,l=t;if(r(),e.startTime=n(),r(),"--\x3e"!==t.substr(0,3))throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+l);t=t.substr(3),r(),e.endTime=n(),r(),o=t,s=e,a=new Settings,parseOptions(o,(function(t,e){switch(t){case"region":for(var n=i.length-1;n>=0;n--)if(i[n].id===e){a.set(t,i[n].region);break}break;case"vertical":a.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),o=r[0];a.integer(t,o),a.percent(t,o)&&a.set("snapToLines",!1),a.alt(t,o,["auto"]),2===r.length&&a.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=e.split(","),a.percent(t,r[0]),2===r.length&&a.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":a.percent(t,e);break;case"align":a.alt(t,e,["start","middle","end","left","right"])}}),/:/,/\s/),s.region=a.get("region",null),s.vertical=a.get("vertical",""),s.line=a.get("line","auto"),s.lineAlign=a.get("lineAlign","start"),s.snapToLines=a.get("snapToLines",!0),s.size=a.get("size",100),s.align=a.get("align","middle"),s.position=a.get("position",{start:0,left:0,middle:50,end:100,right:100},s.align),s.positionAlign=a.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},s.align)}function parseContent(t,e){function i(t){return ESCAPE[t]}for(var n,r=t.document.createElement("div"),o=r,s=[];null!==(n=function(){if(!e)return null;var t,i=e.match(/^([^<]*)(<[^>]+>?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}());)if("<"!==n[0])o.appendChild(t.document.createTextNode(function(t){for(;c=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(c[0],i);return t}(n)));else{if("/"===n[1]){s.length&&s[s.length-1]===n.substr(2).replace(">","")&&(s.pop(),o=o.parentNode);continue}var a,l=parseTimeStamp(n.substr(1,n.length-2));if(l){a=t.document.createProcessingInstruction("timestamp",l),o.appendChild(a);continue}var c=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!c)continue;if(!(a=function(e,i){var n=TAG_NAME[e];if(!n)return null;var r=t.document.createElement(n);r.localName=n;var o=TAG_ANNOTATION[e];return o&&i&&(r[o]=i.trim()),r}(c[1],c[3])))continue;if(u=o,NEEDS_PARENT[(h=a).localName]&&NEEDS_PARENT[h.localName]!==u.localName)continue;c[2]&&(a.className=c[2].substr(1).replace("."," ")),s.push(c[1]),o.appendChild(a),o=a}var u,h;return r}function isStrongRTLChar(t){for(var e=0;e=i[0]&&t<=i[1])return!0}return!1}function determineBidi(t){function e(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function i(t){if(!t||!t.length)return null;var n=t.pop(),r=n.textContent||n.innerText;if(r){var o=r.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):r}return"ruby"===n.tagName?i(t):n.childNodes?(e(t,n),i(t)):void 0}var n=[],r="";if(!t||!t.childNodes)return"ltr";for(e(n,t);r=i(n);)for(var o=0;o=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;rh&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),s<0&&(u+=""===o.vertical?i.height:i.width,a=a.reverse()),r.move(p,u)}else{var d=r.lineHeight/i.height*100;switch(o.lineAlign){case"middle":s-=d/2;break;case"end":s-=d}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],r=new BoxPosition(e)}var f=function(t,e){for(var r,o=new BoxPosition(t),s=1,a=0;al&&(r=new BoxPosition(t),s=l),t=new BoxPosition(o)}return r||o}(r,a);e.move(f.toCSSCompatValues(i))}function WebVTT$1(){}function findDirectionSetting(t){return"string"==typeof t&&!!directionSetting[t.toLowerCase()]&&t.toLowerCase()}function findAlignSetting(t){return"string"==typeof t&&!!alignSetting[t.toLowerCase()]&&t.toLowerCase()}function extend$2(t){for(var e=1;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},o,{get:function(){return y},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},o,{get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},o,{get:function(){return _},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),n.displayState=void 0,r)return n}function findScrollSetting(t){return"string"==typeof t&&!!scrollSetting[t.toLowerCase()]&&t.toLowerCase()}function isValidPercentValue(t){return"number"==typeof t&&t>=0&&t<=100}function VTTRegion(){var t=100,e=3,i=0,n=100,r=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!isValidPercentValue(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorX must be between 0 and 100.");n=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorX must be between 0 and 100.");r=t}},scroll:{enumerable:!0,get:function(){return s},set:function(t){var e=findScrollSetting(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");s=e}}})}function createTrackHelper(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();r.kind=e,i&&(r.label=i),n&&(r.language=n),r.tech=t;var s=new ALL.text.TrackClass(r);return o.addTrack(s),s}function use(t,e){middlewares[t]=middlewares[t]||[],middlewares[t].push(e)}function setSource(t,e,i){t.setTimeout((function(){return setSourceHelper(e,middlewares[e.type],i,t)}),1)}function setTech(t,e){t.forEach((function(t){return t.setTech&&t.setTech(e)}))}function get$3(t,e,i){return t.reduceRight(middlewareIterator(i),e[i]())}function set$1(t,e,i,n){return e[i](t.reduce(middlewareIterator(i),n))}function middlewareIterator(t){return function(e,i){return i[t]?i[t](e):e}}function setSourceHelper(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments[2],n=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e[0],a=e.slice(1);if("string"==typeof s)setSourceHelper(t,middlewares[s],i,n,r,o);else if(s){var l=s(n);l.setSource(assign({},t),(function(e,s){if(e)return setSourceHelper(t,a,i,n,r,o);r.push(l),setSourceHelper(s,t.type===s.type?a:middlewares[s.type],i,n,r,o)}))}else a.length?setSourceHelper(t,a,i,n,r,o):o?i(t,r):setSourceHelper(t,middlewares["*"],i,n,r,!0)}function constructColor(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function tryUpdateStyle(t,e,i){try{t.style[e]=i}catch(n){return}}function formatTime(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var i=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=n=i="-"),(r=r>0||s>0?r+":":"")+(n=((r||o>=10)&&n<10?"0"+n:n)+":")+(i<10?"0"+i:i)}function formatDate(t,e){if(!t)return"";var i=new Date(t),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),s=i.getHours(),a=i.getMinutes();return i.getSeconds(),n+"/"+r+"/"+o+" "+s+":"+(a<10?"0"+a:a)}function parseOptionValue(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}function getSelectedOptionValue(t,e){return parseOptionValue(t.options[t.options.selectedIndex].value,e)}function setSelectedOption(t,e,i){if(e)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"fill");return['\n \n \n ','\n \n \n ','\n \n \n '][arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]}function trimmedEndIndex(t){for(var e=t.length;e--&&reWhitespace.test(t.charAt(e)););return e}function baseTrim(t){return t?t.slice(0,_trimmedEndIndex(t)+1).replace(reTrimStart,""):t}function toNumber(t){if("number"==typeof t)return t;if(isSymbol_1(t))return NAN;if(isObject_1(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=isObject_1(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=_baseTrim(t);var i=reIsBinary.test(t);return i||reIsOctal.test(t)?freeParseInt(t.slice(2),i?2:8):reIsBadHex.test(t)?NAN:+t}function debounce(t,e,i){function n(e){var i=l,n=c;return l=c=void 0,f=e,h=t.apply(n,i)}function r(t){var i=t-d;return void 0===d||i>=e||i<0||m&&t-f>=u}function o(){var t,i,n=now_1();if(r(n))return s(n);p=setTimeout(o,(i=e-((t=n)-d),m?nativeMin(i,u-(t-f)):i))}function s(t){return p=void 0,y&&l?n(t):(l=c=void 0,h)}function a(){var t,i=now_1(),s=r(i);if(l=arguments,c=this,d=i,s){if(void 0===p)return f=t=d,p=setTimeout(o,e),g?n(t):h;if(m)return clearTimeout(p),p=setTimeout(o,e),n(d)}return void 0===p&&(p=setTimeout(o,e)),h}var l,c,u,h,p,d,f=0,g=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$2);return e=toNumber_1(e)||0,isObject_1(i)&&(g=!!i.leading,u=(m="maxWait"in i)?nativeMax(toNumber_1(i.maxWait)||0,e):u,y="trailing"in i?!!i.trailing:y),a.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=d=c=p=void 0},a.flush=function(){return void 0===p?h:s(now_1())},a}function throttle$1(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject_1(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),debounce_1(t,e,{leading:n,maxWait:e,trailing:r})}function mountFlvProvider(t){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||t)try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(FlvSourceHandler,0)}catch(i){}}function mountWebRTCProvider(t){if(!videojs.browser.isWebRTCSupported())return!1;try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(sourceHandler,0)}catch(i){}}function FlashRtmpDecorator(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var i=t.search(/&(?!\w+=)/),n=void 0;return-1!==i?n=i+1:0===(i=n=t.lastIndexOf("/")+1)&&(i=n=t.length),e.connection=t.substring(0,i),e.stream=t.substring(n,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e,i){return t.rtmpSourceHandler.canPlayType(e.type)||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,i,n){var r=t.streamToParts(e.src);i.setRtmpConnection(r.connection),i.setRtmpStream(r.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}function _createSetter(t){var e=t.charAt(0).toUpperCase()+t.slice(1);_api["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function _createGetter(t){_api[t]=function(){return this.el_.vjs_getProperty(t)}}function TCPlayer(t,e,i){var n=void 0,r=(new Date).getTime(),o=videojs.dom;if("string"==typeof t)n=document.querySelector("#"+t);else{if(!t||!t.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=t}if("video"!=n.nodeName.toLowerCase()&&"audio"!=n.nodeName.toLowerCase())throw new TypeError("The element type must be