import{r as ref,d as defineComponent,e as reactive,q as onMounted,f as createVNode,F as Fragment,A as watch,U as computed,S as nextTick,b6 as commonjsGlobal,b7 as getDefaultExportFromCjs,b as useMessage,aO as toRefs,T as onUnmounted,k as createTextVNode,dR as exitFullscreen,c as useUserStore,G as iframeDislableKeyboard,a as useRoute,w as NImage,j as NButton,E as NSpin,al as toRef,l as NModal,m as modalClickMask}from"./index-8151123c-1725962701482.js";import{N as NSlider}from"./Slider-3d2a3287-1725962701482.js";import{v as vaildMusicScoreUrl}from"./urlUtils-72ef455d-1725962701482.js";import{T as TheEmpty}from"./index-b03328a0-1725962701482.js";import{P as PlayLoading,T as TheNoticeBar,b as icon_pause,c as icon_play,i as icon_arrow,a as PlayItem}from"./index-2cb7fc8a-1725962701482.js";import{i as icon_default}from"./icon_default-d1bcaf5f-1725962701482.js";import{u as useSpeak,i as iconT$3,a as iconAddT$3,b as iconPlusT$3}from"./useSpeak-d0bb08b8-1725962701482.js";import{e as api_knowledgeWiki_detail,d as api_lessonCoursewareKnowledgeDetail}from"./api-95647aa3-1725962701482.js";import{i as iconPan$1}from"./icon-pan-16e35a82-1725962701482.js";import{s as setLocalGuidance}from"./api-875eec05-1725962701482.js";const dragBom="_dragBom_1rlbe_1",box="_box_1rlbe_9",guide="_guide_1rlbe_19",hideGuide="_hideGuide_1rlbe_35",guideBg="_guideBg_1rlbe_38",guideDone="_guideDone_1rlbe_46",guideTop="_guideTop_1rlbe_57",guideLeft="_guideLeft_1rlbe_65",guideRight="_guideRight_1rlbe_74",styles$9={dragBom,box,guide,hideGuide,guideBg,guideDone,guideTop,guideLeft,guideRight},guidanceShow=ref(!1);let guideInfoData={};async function getGuidanceShow(){try{const r=localStorage.getItem("guideInfo");if(r){const t=JSON.parse(r)||null;t&&(guideInfoData=t,guidanceShow.value=!t.teacherDrag)}else guidanceShow.value=!0}catch(r){console.log(r)}}function setGuidanceShow(){try{setLocalGuidance({guideTag:"guideInfo",guideValue:JSON.stringify(Object.assign(guideInfoData,{teacherDrag:!0}))}),guidanceShow.value=!1}catch(r){console.log(r)}}const Dragbom=defineComponent({name:"dragBom",setup(){const r=reactive({guidePos:"bottom"}),t=ref(!1),e=()=>{var p,h,y;const n=document.documentElement.clientHeight||document.body.clientHeight;document.documentElement.clientWidth||document.body.clientWidth;const s=((p=document.querySelector(".bom_guide"))==null?void 0:p.clientHeight)||0,a=((h=document.querySelector(".bom_guide"))==null?void 0:h.clientWidth)||0,l=(y=document.querySelector(".bom_drag"))==null?void 0:y.getBoundingClientRect(),u=(l==null?void 0:l.top)||0,d=(l==null?void 0:l.left)||0;n-u>s?r.guidePos="bottom":r.guidePos=d>a?"left":"right"};return onMounted(()=>{if(guidanceShow.value){const n=setTimeout(()=>{clearTimeout(n),e(),t.value=!0},300)}}),()=>createVNode(Fragment,null,[createVNode("div",{class:[styles$9.dragBom,"bom_drag"]},[createVNode("div",{class:styles$9.box},null),createVNode("div",{class:styles$9.box},null)]),guidanceShow.value&&createVNode("div",{onClick:setGuidanceShow,class:[styles$9.guide,r.guidePos==="left"&&styles$9.guideLeft,r.guidePos==="right"&&styles$9.guideRight,!t.value&&styles$9.hideGuide,"bom_guide"]},[createVNode("div",{class:styles$9.guideBg},null),createVNode("div",{class:styles$9.guideDone,onClick:n=>{n.stopPropagation(),setGuidanceShow()}},null)])])}});function useDrag(r,t,e,n){const s=ref({top:-1,left:-1}),a=n+t;watch(e,()=>{e.value?(u(),window.addEventListener("resize",d),nextTick(()=>{const p=document.querySelector(".".concat(t));p&&r.map(h=>{const y=document.querySelector(".".concat(h));y&&(y.style.cursor="move",drag(y,p,s))})})):(window.removeEventListener("resize",d),setCachePos(a,s.value))});const l=computed(()=>s.value.left===-1&&s.value.top===-1?{}:{position:"fixed",left:"".concat(s.value.left,"px"),top:"".concat(s.value.top,"px")});function u(){const p=getCachePos(a);p&&(s.value=p,nextTick(()=>{const h=setTimeout(()=>{clearTimeout(h),d()},300)}))}function d(){if(s.value.left===-1&&s.value.top===-1)return;const p=document.querySelector(".".concat(t));if(!p)return;const h=p.getBoundingClientRect(),y=document.documentElement.clientWidth,v=document.documentElement.clientHeight,{top:f,left:g}=s.value,b=y-h.width,_=v-h.height;let E=g,R=f;const I=0,k=0;E=Eb?b:E,R=R_?_:R,s.value={top:R,left:E}}return{pos:s,styleDrag:l}}function drag(r,t,e){function n(s){const a=isTouchEvent(s),l=a?s.touches[0]:s,u=t.getBoundingClientRect(),d=l.clientX,p=l.clientY,h=document.documentElement.clientWidth,y=document.documentElement.clientHeight,v=h-u.width,f=y-u.height,g=0,b=0;function _(R){const I=isTouchEvent(R)?R.touches[0]:R;let k=u.left+(I.clientX-d),w=u.top+(I.clientY-p);k=kv?v:k,w=wf?f:w,e.value={top:w,left:k}}function E(){document.removeEventListener(a?"touchmove":"mousemove",_),document.removeEventListener(a?"touchend":"mouseup",E)}document.addEventListener(a?"touchmove":"mousemove",_),document.addEventListener(a?"touchend":"mouseup",E)}r.addEventListener("mousedown",n),r.addEventListener("touchstart",n)}function isTouchEvent(r){return window.TouchEvent&&r instanceof window.TouchEvent}const localStorageName="dragCachePos";function getCachePos(r){const t=localStorage.getItem(localStorageName);if(t)try{return JSON.parse(t)[r]}catch(e){return null}return null}function setCachePos(r,t){const e=localStorage.getItem(localStorageName);let n={};if(e)try{n=JSON.parse(e)}catch(s){}n[r]=t,localStorage.setItem(localStorageName,JSON.stringify(n))}var tcplayer_v4_8_0_min={exports:{}};(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function createCommonjsModule(r,t){return t={exports:{}},r(t,t.exports),t.exports}function each(r,t){keys(r).forEach(function(e){return t(r[e],e)})}function reduce(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(r).reduce(function(n,s){return t(n,r[s],s)},e)}function assign(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(r);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),n&&appendContent(s,n),s}function textContent(r,t){return typeof r.textContent>"u"?r.innerText=t:r.textContent=t,r}function prependTo(r,t){t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}function hasClass(r,t){return throwIfWhitespace(t),r.classList?r.classList.contains(t):classRegExp(t).test(r.className)}function addClass(r,t){return r.classList?r.classList.add(t):hasClass(r,t)||(r.className=(r.className+" "+t).trim()),r}function removeClass(r,t){return r.classList?r.classList.remove(t):(throwIfWhitespace(t),r.className=r.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),r}function toggleClass(r,t,e){var n=hasClass(r,t);if(typeof e=="function"&&(e=e(r,t)),typeof e!="boolean"&&(e=!n),e!==n)return e?addClass(r,t):removeClass(r,t),r}function setAttributes(r,t){Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];n==null||n===!1?r.removeAttribute(e):r.setAttribute(e,n===!0?"":n)})}function getAttributes(r){var t={};if(r&&r.attributes&&r.attributes.length>0)for(var e=r.attributes,n=e.length-1;n>=0;n--){var s=e[n].name,a=e[n].value;typeof r[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(r,t){return r.getAttribute(t)}function setAttribute(r,t,e){r.setAttribute(t,e)}function removeAttribute(r,t){r.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(r){if(r&&r.getBoundingClientRect&&r.parentNode){var t=r.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(e[n]=t[n])}),e.height||(e.height=parseFloat(computedStyle(r,"height"))),e.width||(e.width=parseFloat(computedStyle(r,"width"))),e}}function findPosition(r){var t=void 0;if(r.getBoundingClientRect&&r.parentNode&&(t=r.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,n=document_1.body,s=e.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=e.clientTop||n.clientTop||0,d=window_1.pageYOffset||n.scrollTop,p=t.top+d-u;return{left:Math.round(l),top:Math.round(p)}}function getPointerPosition(r,t){var e={},n=findPosition(r),s=r.offsetWidth,a=r.offsetHeight,l=n.top,u=n.left,d=t.pageY,p=t.pageX;return t.changedTouches&&(p=t.changedTouches[0].pageX,d=t.changedTouches[0].pageY),e.y=Math.max(0,Math.min(1,(l-d+a)/a)),e.x=Math.max(0,Math.min(1,(p-u)/s)),e}function isTextNode(r){return isObject$1(r)&&r.nodeType===3}function emptyEl(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function normalizeContent(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(r,t){return normalizeContent(t).forEach(function(e){return r.appendChild(e)}),r}function insertContent(r,t){return appendContent(emptyEl(r),t)}function isSingleLeftClick(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||IE_VERSION===9||r.button===0&&r.buttons===1}function newGUID(){return _guid++}function getData(r){var t=r[elIdAttr];return t||(t=r[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(r){var t=r[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(r){var t=r[elIdAttr];if(t){delete elData[t];try{delete r[elIdAttr]}catch(e){r.removeAttribute?r.removeAttribute(elIdAttr):r[elIdAttr]=null}}}function _cleanUpEvents(r,t){var e=getData(r);e.handlers[t].length===0&&(delete e.handlers[t],r.removeEventListener?r.removeEventListener(t,e.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+t,e.dispatcher)),Object.getOwnPropertyNames(e.handlers).length<=0&&(delete e.handlers,delete e.dispatcher,delete e.disabled),Object.getOwnPropertyNames(e).length===0&&removeData(r)}function _handleMultipleEvents(r,t,e,n){e.forEach(function(s){r(t,s,n)})}function fixEvent(r){function t(){return!0}function e(){return!1}if(!r||!r.isPropagationStopped){var n=r||window_1.event;r={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(r[s]=n[s]));if(r.target||(r.target=r.srcElement||document_1),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=t},r.isPropagationStopped=e,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=t,r.stopPropagation()},r.isImmediatePropagationStopped=e,r.clientX!==null&&r.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;r.pageX=r.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=1&r.button?0:4&r.button?1:2&r.button?2:0)}return r}function on(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,r,t,e);var n=getData(r);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),e.guid||(e.guid=newGUID()),n.handlers[t].push(e),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var d=u.slice(0),p=0,h=d.length;p-1&&(s={passive:!0}),r.addEventListener(t,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+t,n.dispatcher)}function off(r,t,e){if(hasData(r)){var n=getData(r);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,r,t,e);var s=function(d,p){n.handlers[p]=[],_cleanUpEvents(d,p)};if(t!==void 0){var a=n.handlers[t];if(a){if(!e)return void s(r,t);if(e.guid)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!r[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');r.eventBusEl_=r[e]}else r.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(r,EventedMixin),r.on("dispose",function(){r.off(),window_1.setTimeout(function(){r.eventBusEl_=null},0)}),r}function stateful(r,t){return assign(r,StatefulMixin),r.state=assign({},r.state,t),typeof r.handleStateChanged=="function"&&isEvented(r)&&r.on("statechanged",r.handleStateChanged),r}function toTitleCase(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}function titleCaseEquals(r,t){return toTitleCase(r)===toTitleCase(t)}function mergeOptions(){for(var r={},t=arguments.length,e=Array(t),n=0;n3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},e){for(var a in e)if(e.hasOwnProperty(a)){var l=e[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=r,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(r){var t=[],e=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,d=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(r){return/webrtc:\/\//.test(r)||/\.sdp/.test(r)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(r,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+r+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(r,t,e,n){return rangeCheck(r,n,e.length-1),e[n][t]}function createTimeRangesObj(r){return r===void 0||r.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:r.length,start:getRange.bind(null,"start",0,r),end:getRange.bind(null,"end",1,r)}}function createTimeRanges(r,t){return Array.isArray(r)?createTimeRangesObj(r):r===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[r,t]])}function bufferedPercent(r,t){var e=0,n=void 0,s=void 0;if(!t)return 0;r&&r.length||(r=createTimeRanges(0,0));for(var a=0;at&&(s=t),e+=s-n;return e/t}function MediaError(r){if(r instanceof MediaError)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:isObject$1(r)&&(typeof r.code=="number"&&(this.code=r.code),assign(this,r)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(r,t){var e,n=null;try{e=JSON.parse(r,t)}catch(s){n=s}return[n,e]}function isPromise(r){return r!==void 0&&typeof r.then=="function"}function silencePromise(r){isPromise(r)&&r.then(null,function(t){})}function isFunction$1(r){if(!r)return!1;var t=toString$1.call(r);return t==="[object Function]"||typeof r=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}function extend$1(){for(var r={},t=0;t"u")throw new Error("callback argument missing");var a=!1,l=function(R,I,k){a||(a=!0,r.callback(R,I,k))},u=r.xhr||null;u||(u=r.cors||r.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var d,p,h,y=u.url=r.uri||r.url,v=u.method=r.method||"GET",f=r.body||r.data,g=u.headers=r.headers||{},b=!!r.sync,_=!1,E={body:void 0,headers:{},statusCode:0,method:v,url:y,rawRequest:u};if("json"in r&&r.json!==!1&&(_=!0,g.accept||g.Accept||(g.Accept="application/json"),v!=="GET"&&v!=="HEAD"&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),f=JSON.stringify(r.json===!0?f:r.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){p=!0},u.ontimeout=n,u.open(v,y,!b,r.username,r.password),b||(u.withCredentials=!!r.withCredentials),!b&&r.timeout>0&&(h=setTimeout(function(){if(!p){p=!0,u.abort("timeout");var R=new Error("XMLHttpRequest timeout");R.code="ETIMEDOUT",n(R)}},r.timeout)),u.setRequestHeader)for(d in g)g.hasOwnProperty(d)&&u.setRequestHeader(d,g[d]);else if(r.headers&&!isEmpty(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(f||null),u}function getXml(r){if(r.responseType==="document")return r.responseXML;var t=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";return r.responseType!==""||t?null:r.responseXML}function noop(){}function ParsingError(r,t){this.name="ParsingError",this.code=r.code,this.message=t||r.message}function parseTimeStamp(r){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var e=r.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(r,t,e,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(e);if(l.length===2){var u=l[0],d=l[1];t(u,d)}}}function parseCue(r,t,e){function n(){var l=parseTimeStamp(r);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){r=r.replace(/^\s+/,"")}var a=r;if(s(),t.startTime=n(),s(),r.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);r=r.substr(3),s(),t.endTime=n(),s(),function(l,u){var d=new Settings;parseOptions(l,function(p,h){switch(p){case"region":for(var y=e.length-1;y>=0;y--)if(e[y].id===h){d.set(p,e[y].region);break}break;case"vertical":d.alt(p,h,["rl","lr"]);break;case"line":var v=h.split(","),f=v[0];d.integer(p,f),d.percent(p,f)&&d.set("snapToLines",!1),d.alt(p,f,["auto"]),v.length===2&&d.alt("lineAlign",v[1],["start","middle","end"]);break;case"position":v=h.split(","),d.percent(p,v[0]),v.length===2&&d.alt("positionAlign",v[1],["start","middle","end"]);break;case"size":d.percent(p,h);break;case"align":d.alt(p,h,["start","middle","end","left","right"])}},/:/,/\s/),u.region=d.get("region",null),u.vertical=d.get("vertical",""),u.line=d.get("line","auto"),u.lineAlign=d.get("lineAlign","start"),u.snapToLines=d.get("snapToLines",!0),u.size=d.get("size",100),u.align=d.get("align","middle"),u.position=d.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=d.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(r,t)}function parseContent(r,t){function e(h){return ESCAPE[h]}for(var n,s=r.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var h=t.match(/^([^<]*)(<[^>]+>?)?/);return function(y){return t=t.substr(y.length),y}(h[1]?h[1]:h[2])}())!==null;)if(n[0]!=="<")a.appendChild(r.document.createTextNode(function(h){for(;p=h.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)h=h.replace(p[0],e);return h}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,d=parseTimeStamp(n.substr(1,n.length-2));if(d){u=r.document.createProcessingInstruction("timestamp",d),a.appendChild(u);continue}var p=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p||!(u=function(h,y){var v=TAG_NAME[h];if(!v)return null;var f=r.document.createElement(v);f.localName=v;var g=TAG_ANNOTATION[h];return g&&y&&(f[g]=y.trim()),f}(p[1],p[3]))||!function(h,y){return!NEEDS_PARENT[y.localName]||NEEDS_PARENT[y.localName]===h.localName}(a,u))continue;p[2]&&(u.className=p[2].substr(1).replace("."," ")),l.push(p[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(r){for(var t=0;t=e[0]&&r<=e[1])return!0}return!1}function determineBidi(r){function t(u,d){for(var p=d.childNodes.length-1;p>=0;p--)u.push(d.childNodes[p])}function e(u){if(!u||!u.length)return null;var d=u.pop(),p=d.textContent||d.innerText;if(p){var h=p.match(/^.*(\n|\r)/);return h?(u.length=0,h[0]):p}return d.tagName==="ruby"?e(u):d.childNodes?(t(u,d),e(u)):void 0}var n,s=[],a="";if(!r||!r.childNodes)return"ltr";for(t(s,r);a=e(s);)for(var l=0;l=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var t=r.track,e=t.textTrackList,n=0,s=0;sy&&(h=h<0?-1:1,h*=Math.ceil(y/p)*p),l<0&&(h+=a.vertical===""?e.height:e.width,u=u.reverse()),s.move(v,h)}else{var f=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":l-=f/2;break;case"end":l-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var g=function(b,_){for(var E,R=new BoxPosition(b),I=1,k=0;k<_.length;k++){for(;b.overlapsOppositeAxis(e,_[k])||b.within(e)&&b.overlapsAny(n);)b.move(_[k]);if(b.within(e))return b;var w=b.intersectPercentage(e);I>w&&(E=new BoxPosition(b),I=w),b=new BoxPosition(R)}return E||R}(s,u);t.move(g.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(r){return typeof r=="string"&&!!directionSetting[r.toLowerCase()]&&r.toLowerCase()}function findAlignSetting(r){return typeof r=="string"&&!!alignSetting[r.toLowerCase()]&&r.toLowerCase()}function extend$2(r){for(var t=1;t100)throw new Error("Position must be between 0 and 100.");_=k,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return E},set:function(k){var w=findAlignSetting(k);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");E=w,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return R},set:function(k){if(k<0||k>100)throw new Error("Size must be between 0 and 100.");R=k,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return I},set:function(k){var w=findAlignSetting(k);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");I=w,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(r){return typeof r=="string"&&!!scrollSetting[r.toLowerCase()]&&r.toLowerCase()}function isValidPercentValue(r){return typeof r=="number"&&r>=0&&r<=100}function VTTRegion(){var r=100,t=3,e=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");r=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");e=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var d=findScrollSetting(u);if(d===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=d}}})}function createTrackHelper(r,t,e,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r.textTracks();s.kind=t,e&&(s.label=e),n&&(s.language=n),s.tech=r;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(r,t){middlewares[r]=middlewares[r]||[],middlewares[r].push(t)}function setSource(r,t,e){r.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,r)},1)}function setTech(r,t){r.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$1(r,t,e){return r.reduceRight(middlewareIterator(e),t[e]())}function set$1(r,t,e,n){return t[e](r.reduce(middlewareIterator(e),n))}function middlewareIterator(r){return function(t,e){return e[r]?e[r](t):t}}function setSourceHelper(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(r,middlewares[l],e,n,s,a);else if(l){var d=l(n);d.setSource(assign({},r),function(p,h){if(p)return setSourceHelper(r,u,e,n,s,a);s.push(d),setSourceHelper(h,r.type===h.type?u:middlewares[h.type],e,n,s,a)})}else u.length?setSourceHelper(r,u,e,n,s,a):a?e(r,s):setSourceHelper(r,middlewares["*"],e,n,s,!0)}function constructColor(r,t){return"rgba("+parseInt(r[1]+r[1],16)+","+parseInt(r[2]+r[2],16)+","+parseInt(r[3]+r[3],16)+","+t+")"}function tryUpdateStyle(r,t,e){try{r.style[t]=e}catch(n){return}}function formatTime(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;r=r<0?0:r;var e=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(r)||r===1/0)&&(s=n=e="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",e=e<10?"0"+e:e,s+n+e}function parseOptionValue(r,t){if(t&&(r=t(r)),r&&r!=="none")return r}function getSelectedOptionValue(r,t){return parseOptionValue(r.options[r.options.selectedIndex].value,t)}function setSelectedOption(r,t,e){if(t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=r,n="draw-"+t;return['\n \n \n ','\n \n \n ','\n \n \n '][e]}function isObject$2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function trimmedEndIndex(r){for(var t=r.length;t--&&reWhitespace.test(r.charAt(t)););return t}function baseTrim(r){return r&&r.slice(0,_trimmedEndIndex(r)+1).replace(reTrimStart,"")}function getRawTag(r){var t=hasOwnProperty$2.call(r,symToStringTag$1),e=r[symToStringTag$1];try{r[symToStringTag$1]=void 0;var n=!0}catch(a){}var s=nativeObjectToString.call(r);return n&&(t?r[symToStringTag$1]=e:delete r[symToStringTag$1]),s}function objectToString(r){return nativeObjectToString$1.call(r)}function baseGetTag(r){return r==null?r===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(r)?_getRawTag(r):_objectToString(r)}function isObjectLike(r){return r!=null&&typeof r=="object"}function isSymbol(r){return typeof r=="symbol"||isObjectLike_1(r)&&_baseGetTag(r)==symbolTag}function toNumber(r){if(typeof r=="number")return r;if(isSymbol_1(r))return NAN;if(isObject_1(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=isObject_1(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=_baseTrim(r);var e=reIsBinary.test(r);return e||reIsOctal.test(r)?freeParseInt(r.slice(2),e?2:8):reIsBadHex.test(r)?NAN:+r}function debounce(r,t,e){function n(m){var S=v,C=f;return v=f=void 0,R=m,b=r.apply(C,S)}function s(m){return R=m,_=setTimeout(u,t),I?n(m):b}function a(m){var S=m-E,C=m-R,A=t-S;return k?nativeMin(A,g-C):A}function l(m){var S=m-E,C=m-R;return E===void 0||S>=t||S<0||k&&C>=g}function u(){var m=now_1();if(l(m))return d(m);_=setTimeout(u,a(m))}function d(m){return _=void 0,w&&v?n(m):(v=f=void 0,b)}function p(){_!==void 0&&clearTimeout(_),R=0,v=E=f=_=void 0}function h(){return _===void 0?b:d(now_1())}function y(){var m=now_1(),S=l(m);if(v=arguments,f=this,E=m,S){if(_===void 0)return s(E);if(k)return clearTimeout(_),_=setTimeout(u,t),n(E)}return _===void 0&&(_=setTimeout(u,t)),b}var v,f,g,b,_,E,R=0,I=!1,k=!1,w=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(e)&&(I=!!e.leading,k="maxWait"in e,g=k?nativeMax(toNumber_1(e.maxWait)||0,t):g,w="trailing"in e?!!e.trailing:w),y.cancel=p,y.flush=h,y}function throttle$1(r,t,e){var n=!0,s=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),debounce_1(r,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(r){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||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch(e){}}function mountWebRTCProvider(r){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch(e){}}function FlashRtmpDecorator(r){return r.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},r.streamFromParts=function(t,e){return t+"&"+e},r.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),e.connection=t.substring(0,n),e.stream=t.substring(s,t.length),e},r.isStreamingType=function(t){return t in r.streamingFormats},r.RTMP_RE=/^rtmp[set]?:\/\//i,r.isStreamingSrc=function(t){return r.RTMP_RE.test(t)},r.rtmpSourceHandler={},r.rtmpSourceHandler.canPlayType=function(t){return r.isStreamingType(t)?"maybe":""},r.rtmpSourceHandler.canHandleSource=function(t,e){var n=r.rtmpSourceHandler.canPlayType(t.type);return n||(r.isStreamingSrc(t.src)?"maybe":"")},r.rtmpSourceHandler.handleSource=function(t,e,n){var s=r.streamToParts(t.src);e.setRtmpConnection(s.connection),e.setRtmpStream(s.stream)},r.registerSourceHandler(r.rtmpSourceHandler),r}function _createSetter(r){var t=r.charAt(0).toUpperCase()+r.slice(1);_api["set"+t]=function(e){return this.el_.vjs_setProperty(r,e)}}function _createGetter(r){_api[r]=function(){return this.el_.vjs_getProperty(r)}}function TCPlayer(r,t,e){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof r=="string")n=document.querySelector("#"+r);else{if(!r||!r.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=r}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be