aliyun-aliplayer 2.28.5 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/aliplayer-ac-min.js +2 -2
- package/build/aliplayer-flash-min.js +2 -2
- package/build/aliplayer-h5-min.js +2 -7
- package/build/aliplayer-min.js +2 -7
- package/build/aliplayer-worker-min.js +2 -2
- package/build/drm/aliplayer-drm2-min.js +1532 -0
- package/build/lang/{en-us.json → en-us.js} +6 -2
- package/build/lang/{zh-cn.json → zh-cn.js} +5 -1
- package/build/skins/default/aliplayer-min.css +1 -1
- package/package.json +26 -6
- /package/build/lang/flash/{en-us.json → en-us.js} +0 -0
- /package/build/lang/flash/{zh-cn.json → zh-cn.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! aliyun-aliplayer - v2.
|
|
2
|
-
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Aliplayer=e()}(function(){return function i(n,o,a){function s(t,e){if(!o[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=o[t]={exports:{}},n[t][0].call(r.exports,function(e){return s(n[t][1][e]||e)},r,r.exports,i,n,o,a)}return o[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(j,r,i){!function(B,V){!function(){var e,t;e=this,t=function(){"use strict";function l(e){return"function"==typeof e}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(n?n(d):M())};var e="undefined"!=typeof window?window:void 0,o=e||{},o=o.MutationObserver||o.WebKitMutationObserver,s="undefined"==typeof self&&void 0!==B&&"[object process]"==={}.toString.call(B),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(d,1)}}var p=new Array(1e3);function d(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}function h(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:u()}catch(e){return u()}}var f,_,y,M=void 0;function g(e,t){var r,i=this,n=new this.constructor(S),o=(void 0===n[m]&&D(n),i._state);return o?(r=arguments[o-1],a(function(){return A(o,n,r,i._result)})):k(i,n,e,t),n}function v(e){var t;return e&&"object"==typeof e&&e.constructor===this?e:(P(t=new this(S),e),t)}var M=s?function(){return B.nextTick(d)}:o?(_=0,s=new o(d),y=document.createTextNode(""),s.observe(y,{characterData:!0}),function(){y.data=_=++_%2}):c?((f=new MessageChannel).port1.onmessage=d,function(){return f.port2.postMessage(0)}):(void 0===e&&"function"==typeof j?h:u)(),m=Math.random().toString(36).substring(2);function S(){}var T=void 0,b=1,E=2;function U(e,i,n){a(function(t){var r=!1,e=function(e,t,r,i){try{e.call(t,r,i)}catch(e){return e}}(n,i,function(e){r||(r=!0,(i!==e?P:x)(t,e))},function(e){r||(r=!0,C(t,e))},t._label);!r&&e&&(r=!0,C(t,e))},e)}function w(e,t,r){var i,n;t.constructor===e.constructor&&r===g&&t.constructor.resolve===v?(i=e,(n=t)._state===b?x(i,n._result):n._state===E?C(i,n._result):k(n,void 0,function(e){return P(i,e)},function(e){return C(i,e)})):void 0!==r&&l(r)?U(e,t,r):x(e,t)}function P(t,e){if(t===e)C(t,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof e,null===e||"object"!=r&&"function"!=r)x(t,e);else{r=void 0;try{r=e.then}catch(e){return void C(t,e)}w(t,e,r)}var r}function F(e){e._onerror&&e._onerror(e._result),L(e)}function x(e,t){e._state===T&&(e._result=t,e._state=b,0!==e._subscribers.length)&&a(L,e)}function C(e,t){e._state===T&&(e._state=E,e._result=t,a(F,e))}function k(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+b]=r,n[o+E]=i,0===o&&e._state&&a(L,e)}function L(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void C(t,new TypeError("A promises callback cannot return that same promise."))}else o=i;t._state===T&&(n&&s?P(t,o):!1===s?C(t,a):e===b?x(t,o):e===E&&C(t,o))}var R=0;function D(e){e[m]=R++,e._state=void 0,e._result=void 0,e._subscribers=[]}I.prototype._enumerate=function(e){for(var t=0;this._state===T&&t<e.length;t++)this._eachEntry(e[t],t)},I.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===v){var n,o=void 0,a=void 0,s=!1;try{o=t.then}catch(e){s=!0,a=e}o===g&&t._state!==T?this._settledAt(t._state,e,t._result):"function"!=typeof o?(this._remaining--,this._result[e]=t):r===O?(n=new r(S),s?C(n,a):w(n,t,o),this._willSettleAt(n,e)):this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},I.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===T&&(this._remaining--,e===E?C(i,r):this._result[t]=r),0===this._remaining&&x(i,this._result)},I.prototype._willSettleAt=function(e,t){var r=this;k(e,void 0,function(e){return r._settledAt(b,t,e)},function(e){return r._settledAt(E,t,e)})};var H=I;function I(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[m]||D(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(t),0!==this._remaining)||x(this.promise,this._result)):C(this.promise,new Error("Array Methods must be provided an Array"))}N.prototype.catch=function(e){return this.then(null,e)},N.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)};var O=N;function N(e){if(this[m]=R++,this._result=this._state=void 0,this._subscribers=[],S!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof N))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var t=this;try{e(function(e){P(t,e)},function(e){C(t,e)})}catch(e){C(t,e)}}}return O.prototype.then=g,O.all=function(e){return new H(this,e).promise},O.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})},O.resolve=v,O.reject=function(e){var t=new this(S);return C(t,e),t},O._setScheduler=function(e){n=e},O._setAsap=function(e){a=e},O._asap=a,O.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=O},O.Promise=O},"object"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}.call(this)}.call(this,j("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],2:[function(e,t,r){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return(i=setTimeout)(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length)&&h()}function h(){if(!u){for(var e=s(d),t=(u=!0,c.length);t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,u=!1,!function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return(n=clearTimeout)(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function _(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=_,t.addListener=_,t.once=_,t.off=_,t.removeListener=_,t.removeAllListeners=_,t.emit=_,t.prependListener=_,t.prependOnceListener=_,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],3:[function(e,t,r){t.exports={name:"aliyun-aliplayer",version:"2.28.5",description:"\u963f\u91cc\u4e91 Web \u64ad\u653e\u5668",main:"./build/aliplayer-min",style:"./build/skins/default/aliplayer-min.css",files:["build"],repository:{type:"git",url:""},keywords:["aliyun","aliplayer"],scripts:{start:"npx grunt live","start:hls":"npx grunt live --hls=true","start:flv":"npx grunt live --flv=true",build:"npx grunt build",release:"commit-and-tag-version",prepublishOnly:"npm run build"},devDependencies:{"@ali/mediabox-quality-tracer":"^0.20.0","@babel/core":"^7.15.0","@babel/preset-env":"^7.15.0","babel-plugin-es6-promise":"^1.1.1",babelify:"^10.0.0","commit-and-tag-version":"^11.2.1","es6-promise":"^4.2.8",grunt:"^1.0.4","grunt-autoprefixer":"^3.0.4","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-clean":"^2.0.0","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-cssmin":"^3.0.0","grunt-contrib-less":"^2.0.0","grunt-contrib-uglify":"^4.0.1","grunt-contrib-watch":"^1.1.0","grunt-run":"^0.8.1","grunt-text-replace":"^0.4.0","node-args":"^2.1.8"},dependencies:{"crypto-js":"^4.1.1"}}},{}],4:[function(e,t,r){var i=e("../ui/component"),n=(e("../lib/util"),e("../lib/dom")),o=e("../lib/event"),a=(e("../lib/ua"),e("../lang/index")),s=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-auto-stream-selector",this.addClass(this.className)},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<div><p class='tip-text'></p></div><div class='operators'><a class='prism-button prism-button-ok' type='button'>"+a.get("OK_Text")+"</a><a class='prism-button prism-button-cancel' target='_blank'>"+a.get("Cancel_Text")+"</a></div>",e},bindEvent:function(){var i=this,e=(i._player.on(s.Private.AutoStreamShow,function(e){var t,r=document.querySelector("#"+i.getId()+" .tip-text");i._player._getLowerQualityLevel&&(t=i._player._getLowerQualityLevel())&&(i._switchUrl=t,r.innerText=a.get("Auto_Stream_Tip_Text").replace("$$",t.item.desc),n.css(i.el(),"display","block"))}),i._player.on(s.Private.AutoStreamHide,function(e){document.querySelector("#"+i.getId()+" .tip-text");n.css(i.el(),"display","none")}),document.querySelector("#"+i.getId()+" .prism-button-ok")),e=(o.on(e,"click",function(){i._player._changeStream&&i._switchUrl&&(i._player._changeStream(i._switchUrl.index,a.get("Quality_Change_Text")),i._player.trigger(s.Private.SettingListHide)),n.css(i.el(),"display","none")}),document.querySelector("#"+i.getId()+" .prism-button-cancel"));o.on(e,"click",function(){n.css(i.el(),"display","none"),i._player.trigger(s.Private.SettingListHide)})}});t.exports=e},{"../lang/index":18,"../lib/dom":25,"../lib/event":26,"../lib/ua":39,"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],5:[function(e,t,r){var i=e("../ui/component"),a=e("../lib/dom"),n=e("../lib/event"),o=e("../lib/ua"),s=e("../lib/function"),l=(e("../lang/index"),e("../lib/util")),c=e("../config"),u=e("../lib/playerutil"),p=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-liveshift-progress",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-enable-liveshift"><div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p><div class="prism-liveshift-seperator"></div></div><div class="prism-disable-liveshift"></div>',e},bindEvent:function(){function t(e){r._progressDown=e}var r=this,e=(this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this.id()+" .prism-progress-time"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),this.seperatorNode=document.querySelector("#"+this.id()+" .prism-liveshift-seperator"),this.progressNode=document.querySelector("#"+this.id()+" .prism-enable-liveshift"),document.querySelector("#"+this.id()+" .prism-progress-cursor img")),i="//"+c.domain+c.path+c.h5Version+"/skins/default/img/dragcursor.png";this._player._options.skinsDomain=this._player._options.assetPrefix||this._player._options.skinsDomain,this._player._options.skinsDomain?i=this._player._options.skinsDomain+"/skins/default/img/dragcursor.png":c.domain?-1<c.domain.indexOf("localhost")&&(i="//"+c.domain+"/build/skins/default/img/dragcursor.png"):i=this._player&&this._player._options&&this._player._options.sdkDomain?this._player._options.sdkDomain+c.path+c.h5Version+"/skins/default/img/dragcursor.png":(c.path||"").substring(1)+c.h5Version+"/skins/default/img/dragcursor.png",e.src=i,n.on(this.cursorNode,"mousedown",function(e){r._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){r._onMouseDown(e)}),n.on(this.progressNode,"mousemove",function(e){r._progressMove(e)}),n.on(this.progressNode,"touchmove",function(e){r._progressMove(e)});n.on(this.progressNode,"mousedown",function(e){t(!0)}),n.on(this.progressNode,"touchstart",function(e){t(!0)}),n.on(this.progressNode,"mouseup",function(e){t(!1)}),n.on(this.progressNode,"touchend",function(e){t(!1)}),n.on(this._el,"click",function(e){r._onMouseClick(e)}),this._player.on(p.Private.HideProgress,function(e){r._hideProgress(e)}),this._player.on(p.Private.CancelHideProgress,function(e){r._cancelHideProgress(e)}),this._player.on(p.Private.ShowBar,function(){r._updateLayout()}),n.on(this.progressNode,p.Private.MouseOver,function(e){r._onMouseOver(e)}),n.on(this.progressNode,p.Private.MouseOut,function(e){r._onMouseOut(e)}),this.bindTimeupdate=s.bind(this,this._onTimeupdate),this._player.on(p.Player.TimeUpdate,this.bindTimeupdate),u.isLiveShift(this._player._options)&&r._liveshiftService.start(6e4,function(e){e={mediaId:r._player._options.vid||"",error_code:e.Code,error_msg:e.Message};r._player.logError(e),r._player.trigger(p.Player.Error,e)}),this._player.on(p.Private.LiveShiftQueryCompleted,function(){r._updateSeperator(),r._updateLayout()}),this._player.on(p.Private.LiveShiftSwitchToLive,function(){r._updateCursorPosition()}),this._player.on(p.Player.Pause,function(){r._liveshiftService.stop()}),o.IS_IPAD?this.interval=setInterval(function(){r._onProgress()},500):this._player.on(p.Video.Progress,function(){r._onProgress()})},_updateSeperator:function(){this._liveshiftService.currentTimeDisplay&&(this.seperatorNode.innerText=this._liveshiftService.currentTimeDisplay)},_updateLayout:function(){var e=this.seperatorNode.offsetWidth,t=this.el().offsetWidth,r=t-e;0!=e&&0!=r&&(a.css(this.progressNode,"width",100*(r-10)/t+"%"),a.css(this.seperatorNode,"right",-1*(e+10)+"px"))},_progressMove:function(e){var t=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime,t=(this.timeNode.innerText="-"+l.formatTime(r-t),r?t/r:0),r=1-this.timeNode.clientWidth/this.el().clientWidth,i=(r<t&&(t=r),this.timeNode&&(a.css(this.timeNode,"display","block"),a.css(this.timeNode,"left",100*t+"%")),this);!o.IS_PC&&i._progressDown&&(i.progressSeekTimer&&clearTimeout(i.progressSeekTimer),i.progressSeekTimer=setTimeout(function(){i._progressDown||i._onMouseClick(e)},200))},_hideProgress:function(e){n.off(this.cursorNode,"mousedown"),n.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;n.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._updateCursorPosition(this._getCurrentTime()),a.css(this.timeNode,"display","block")},_onMouseOut:function(e){a.css(this.timeNode,"display","none")},_getSeconds:function(e){if(e.touches&&e.touches[0]){for(var t,r=this.el().offsetLeft,i=this.el();i.offsetParent;){var i=i.offsetParent,n=a.getTranslateX(i);r+=i.offsetLeft+n}i.tagName&&"body"===i.tagName.toLowerCase()&&(r+=document.getElementsByTagName("html")[0].offsetLeft),(t=(e.touches?e.touches[0]:e).pageX-r)<0&&(t=0)}else t=e.offsetX,e.target!==this.cursorNode&&e.target.offsetParent!==this.cursorNode||(t+=this.cursorNode.offsetLeft),e.target!==this._el&&(e.target.offsetParent,this._el);var e=this.progressNode.offsetWidth,o=this._liveshiftService.availableLiveShiftTime;return sec=(sec=(sec=o?t/e*o:0)<0?0:sec)>o?o:sec},_onMouseClick:function(e){var t=this,e=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime,i=r-e,n=this._player._options,r=(i<=n.liveShiftMinOffset&&(e=r-(i=n.liveShiftMinOffset)),this._player.trigger(p.Private.SeekStart,{fromTime:this._getCurrentTime()}),this._liveshiftService.getSourceUrl(i)),n=u.isHls(t._player._options.source);t._player._loadByUrlInner(r,e,!0),t._player.trigger(p.Private.Play_Btn_Hide),t._liveshiftService.seekTime=e,t._player.trigger(p.Private.EndStart,{toTime:e}),t._updateProgressBar(this.playedNode,e),t._updateCursorPosition(e),setTimeout(function(){t._progressDown||t._onMouseOut()},500),n&&setTimeout(function(){t._player.play()})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._player.trigger(p.Private.SeekStart,{fromTime:this._getCurrentTime()}),n.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"mouseup",function(e){t._onMouseUp(e)}),n.on(this.controlNode,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),n.off(this.controlNode,"mousemove"),n.off(this.controlNode,"touchmove"),n.off(this._player.tag,"mouseup"),n.off(this._player.tag,"touchend"),n.off(this.controlNode,"mouseup"),n.off(this.controlNode,"touchend"),this._onMouseClick(e)},_onMouseMove:function(e){e.preventDefault()},_onTimeupdate:function(e){this._player._seeking||(o.IS_ANDROID&&o.IS_UC&&(this._hasResetFlagUC&&this._player.getCurrentTime()&&(this._hasResetFlagUC=!1,this._basePtsUC=this._player.getCurrentTime()),this._player.getCurrentTime()||(this._hasResetFlagUC=!0,this._basePtsUC=0)),this._updateProgressBar(this.playedNode,this._getCurrentTime()),this._updateCursorPosition(this._getCurrentTime()),this._player.trigger(p.Private.UpdateProgressBar,{time:this._getCurrentTime()}))},_getCurrentTime:function(){var e=this._liveshiftService.seekTime,e=(-1==e&&(e=0),this._player.getCurrentTime()+e);return o.IS_ANDROID&&o.IS_UC&&(e-=this._basePtsUC||0),e},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var r,i;1!=this._player._switchSourcing&&(i=0,-1==this._liveshiftService.seekTime?i=1:1<(i=(r=this._liveshiftService.availableLiveShiftTime)?t/r:0)&&(this._liveshiftService.seekTime=-(i=1)),this.liveShiftStartDisplay,e)&&a.css(e,"width",100*i+"%")},_updateCursorPosition:function(e){var t,r,i,n;this._player.el()&&1!=this._player._switchSourcing&&(i=0,n=1,t=this._player.el().clientWidth,-1==this._liveshiftService.seekTime?i=1:1<(i=(r=this._liveshiftService.availableLiveShiftTime)?e/r:0)&&(this._liveshiftService.seekTime=-1),0!=t&&(n=1-(e=10/t),i-=e),i=i<0?0:i,this.cursorNode)&&(n<i?(a.css(this.cursorNode,"right","0px"),a.css(this.cursorNode,"left","auto")):(a.css(this.cursorNode,"right","auto"),a.css(this.cursorNode,"left",100*i+"%")))}});t.exports=e},{"../config":7,"../lang/index":18,"../lib/dom":25,"../lib/event":26,"../lib/function":28,"../lib/playerutil":37,"../lib/ua":39,"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],6:[function(e,t,r){var i=e("../ui/component"),n=e("../lib/util"),o=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-live-time-display",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="end-time">00:00</span><span class="live-text">Live: </span><span class="live-time"></span>',e},bindEvent:function(){var i=this;this._player.on(o.Video.TimeUpdate,function(){var e,t=i._liveshiftService,r=document.querySelector("#"+i.id()+" .current-time");t.liveShiftStartDisplay&&t.availableLiveShiftTime>t.seekTime&&-1!=t.seekTime?(e=i._liveshiftService.getBaseTime(),e=n.formatTime(e+i._player.getCurrentTime()),r.innerText=e):t.currentTimeDisplay&&(r.innerText=t.currentTimeDisplay)}),this._player.on(o.Private.LiveShiftQueryCompleted,function(){i.updateTime()})},updateTime:function(){document.querySelector("#"+this.id()+" .end-time").innerText=this._liveshiftService.liveTimeRange.endDisplay,document.querySelector("#"+this.id()+" .live-time").innerText=this._liveshiftService.currentTimeDisplay}});t.exports=e},{"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],7:[function(e,t,r){e=e("../package.json");t.exports={domain:"g.alicdn.com",path:"/apsara-media-box/imp-web-player/",flashVersion:"2.8.2",h5Version:e.version.split("-")[0],rtsVersion:"2.9.1",cityBrain:!0,logDuration:3,logCount:100,logReportTo:"https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/newplayer/track",dumpLogReportTo:"https://web-video.cn-hangzhou.log.aliyuncs.com/logstores/player-dump/track"}},{"../package.json":3}],8:[function(e,t,r){function i(e,t,r){t.id||(t.id=e),t.readyCallback=r="function"!=typeof r?function(){}:r;var e=a.createWrapper(t,r),i=((r=a.handleOption(t)).skinLayout=[],r.withCredentials=!0,r.from="1084855783648729",e.player||new n(e,r));return r.events&&o.each(r.events,function(e,t){i.on(e,t)}),i}e("./lang/index").load();var n=e("./player/acfunc/acplayer"),o=(e("./lib/dom"),e("./lib/ua"),e("./lib/object")),a=e("./lib/playerutil"),e=(e("./config"),e("./lib/componentutil").register(i),window.ykv=i);(window.Aliplayer=i).players={},t.exports=e},{"./config":7,"./lang/index":18,"./lib/componentutil":21,"./lib/dom":25,"./lib/object":35,"./lib/playerutil":37,"./lib/ua":39,"./player/acfunc/acplayer":57}],9:[function(e,t,r){var i=e("../player/base/event/eventtype"),n=e("../lib/constants"),o=e("../lang/index");t.exports=function(){function e(e){var t=this;void 0===e&&(e={}),this.interval=3e3,this.player=null,this.timer=null,this.playerInitDone=!1,this.player=e.player,this.player.on(i.Player.Init,function(){t.playerInitDone=!0})}var t=e.prototype;return t.start=function(){var e=this;this.stop(),this.player&&this.player._options&&!this.player._options.preventRecord||(this.timer=setInterval(function(){e.playerInitDone&&e.check()},this.interval))},t.stop=function(){this.clearTimer()},t.check=function(){var e=!1,t=this.detectPrototype()||this.detectNativeFn();return(t||this.detectDeperateVideo())&&(console.log("isMediaSourceModified",t),this.clearTimer(),this.displayError(),this.setupErrorStyle(),this.destroyVideo(),localStorage.setItem("_intercept_mediastream_",""),e=!0),e},t.dispose=function(){this.stop(),this.player=null,this.playerInitDone=!1},t.clearTimer=function(){this.timer&&(clearInterval(this.timer),this.timer=null)},t.displayError=function(){var e=this.player,t={mediaId:e._options&&e._options.vid?e._options.vid:"",error_code:n.ErrorCode.RecordNotAllowed,error_msg:o.get("Record_Not_Allowed")};e.logError(t),e.trigger(i.Player.Error,t)},t.setupErrorStyle=function(){this.hideRetry();var e=document.querySelector(".prism-ErrorMessage");e&&(e.style.opacity="1",e.style.visibility="visible")},t.hideRetry=function(){var e=document.querySelector("#"+this.player.id()+" .prism-button-retry");e&&(e.style.display="none")},t.destroyVideo=function(){this.player._drm&&this.player.destroy();var e=this.player.tag;e&&e.parentNode&&e.parentNode.removeChild(e)},t.detectPrototype=function(){var e=window,t=e.MediaSource;return t&&e.EventTarget&&t.__proto__.__proto__===e.EventTarget},t.detectNativeFn=function(){var e=window.MediaSource;return e&&!this.isNativeFn(e.prototype.addSourceBuffer)},t.isNativeFn=function(e){var t=RegExp("^".concat(Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),"$")),r=typeof e;return null!==e&&("object"==r||"function"==r)&&t.test(e)},t.detectDeperateVideo=function(){var e=this.player.tag;if(e)return-1!==(e.getAttribute("id")||"").indexOf("360")},e}()},{"../lang/index":18,"../lib/constants":22,"../player/base/event/eventtype":63}],10:[function(e,t,r){var i=e("../lib/oo"),n=e("../lang/index"),e=i.extend({init:function(e,t){this._player=e,this._options=e.options()}}),o=(e.prototype.handle=function(e){var t,r;this._options.autoPlayDelay&&(t=(t=this._options.autoPlayDelayDisplayText)||n.get("AutoPlayDelayDisplayText").replace("$$",this._options.autoPlayDelay),this._player.trigger("info_show",t),this._player.trigger("h5_loading_hide"),this._player.trigger("play_btn_hide"),(r=this)._timeHandler=setTimeout(function(){r._player.trigger("info_hide"),r._options.autoPlayDelay=0,e&&e()},1e3*this._options.autoPlayDelay),this._player.on("play",function(){o(r)}),this._player.on("pause",function(){o(r)}))},e.prototype.dispose=function(){o(this),this._player=null},function(e){e._timeHandler&&(clearTimeout(e._timeHandler),e._timeHandler=null)});t.exports=e},{"../lang/index":18,"../lib/oo":36}],11:[function(e,t,r){var i=e("../lib/event"),n=e("../lib/data"),o=e("../player/base/event/eventtype"),a=n.guid(),e={};function s(e){var t,r,i=this._options.keyFastForwardStep,n=this._options.isLive;switch(e&&e.keyCode){case 39:n||(e.preventDefault(),t=this.getDuration(),r=this.getCurrentTime()+i,this.seek(r=t<r?t:r),l.call(this,r),c.call(this,r));break;case 37:n||(e.preventDefault(),r=this.getCurrentTime()-i,this.seek(r=r<0?0:r),l.call(this,r),c.call(this,r));break;case 38:e.preventDefault(),this.getVolume()<1&&0<=this.getVolume()&&this.setVolume(Number((this.getVolume()+.1).toFixed(1)));break;case 40:e.preventDefault(),0<this.getVolume()&&this.getVolume()<=1&&this.setVolume(Number((this.getVolume()-.1).toFixed(1)));break;case 32:if(n)return;e.preventDefault(),this.tag.paused?this.play(!0):this.pause(!0)}}function l(e){this.trigger(o.Private.UpdateProgress,{targetTime:e})}function c(e){this.trigger(o.Private.UpdateCursorPosition,{targetTime:e})}e.init=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,i.on(window.document,"keydown",e))},e.dispose=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,i.off(window.document,"keydown",e))},t.exports=e},{"../lib/data":24,"../lib/event":26,"../player/base/event/eventtype":63}],12:[function(e,t,r){var a="undefined"==typeof Promise?e("es6-promise").Promise:Promise,s=e("../lib/constants").LicenseResultCode,l=e("../lib/io"),i=((e={})[s.ResourceIncorrect]="license resource init error",e[s.LicenseKeyInvalid]="invalid license key",e[s.DomainInvalid]="invalid domain",e[s.CertInvalid]="invalid cert content",e[s.NotFound]="license not found",e[s.Expired]="license expired",e),e=function(){function e(){}return e.getLicense=function(r,i,n){var o=this;return this.isWasmSupported()?i?r?this.instance?a.resolve(this.instance):new a(function(e,t){o.resolvers.push(e),o.rejecters.push(t),1===o.resolvers.length&&l.loadJS("https://g.alicdn.com/apsara-media-components/amcom-web-license/0.5.1/index.js",function(){window.loadLicenseSource().then(function(e){var t=new e({business_id:2,domain_identity:r,license_key:i,region:n});return t.update().then(function(){o.instance=t,o.resolvers.forEach(function(e){e(t)})}).catch(function(t){o.rejecters.forEach(function(e){e(s.CertInvalid+"#"+(t||"").trim().split(":")[0])})})}).catch(function(){o.rejecters.forEach(function(e){e(s.ResourceIncorrect)})}).finally(function(){o.resolvers=[],o.rejecters=[]})},function(){o.rejecters.forEach(function(e){e(s.ResourceIncorrect)})})}):a.reject(s.DomainInvalid):a.reject(s.LicenseKeyInvalid):a.reject(s.WasmNotSupported)},e.isWasmSupported=function(){return"object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate},e.logError=function(e){i[e]&&console.error(i[e])},e}();e.instance=void 0,e.resolvers=[],e.rejecters=[],t.exports=e},{"../lib/constants":22,"../lib/io":33,"es6-promise":1}],13:[function(e,t,r){function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=e("../lib/event"),s="box",l="content",c="top-left",u="top-right",p="bottom-left",d="bottom-right",h="percentage",e=function(){function e(e){this._container=void 0,this._video=void 0,this._logoList=[],this._resizeDone=!0,this._observer=void 0,this._observer=new f,this._handleVideoResize=this._handleVideoResize.bind(this),this._handleWindowResize=this._handleWindowResize.bind(this),this._setLogo(e.logo),this._setElements(e.container,e.video)}var t,r,i=e.prototype;return i.dispose=function(){this._observer.dispose(),this._observer=void 0,a.off(this._video,"resize",this._handleVideoResize),a.off(document,"fullscreenchange",this._handleWindowResize),this._logoList.forEach(function(e){e.logo&&e.logo.remove()}),this._logoList=[],this._container=void 0,this._video=void 0,this._resizeDone=!0},i._setElements=function(e,t){this._container=e,this._video=t,this.loadedMeta?this._logoList.forEach(this._setupLogo.bind(this)):a.on(t,"resize",this._handleVideoResize),this._observer.observe(this._container,this._handleWindowResize),a.on(document,"fullscreenchange",this._handleWindowResize)},i._handleVideoResize=function(){!this._video.videoWidth||this._logoList.some(function(e){return e.logo})||this._logoList.forEach(this._setupLogo.bind(this))},i._handleWindowResize=function(){var e=this;this._container&&this._resizeDone&&this.loadedMeta&&(this._resizeDone=!1,window.requestAnimationFrame(function(){e._resizeDone=!0,e._logoList.forEach(e._placeLogo.bind(e))}))},i._setLogo=function(e){this._logoList=e.map(this._defauleValue)},i._setupLogo=function(e){var t=this,r=this._createLogo(e);(e.logo=r).onload=function(){t._placeLogo(e)}},i._createLogo=function(e){var t=document.createElement("img");return t.setAttribute("class","prism-logo"),t.src=e.src,t},i._placeLogo=function(e){var t=e.logo,r=this._calcSize(e),i=(r.width&&t.setAttribute("width",r.width+"px"),r.height&&t.setAttribute("height",r.height+"px"),this._calcMatrix(e));t.style.position="absolute",Object.keys(i).forEach(function(e){t.style[e]=i[e]+"px"}),this._container.appendChild(e.logo)},i._calcSize=function(e){return this._getPixel(e)},i._calcMatrix=function(e){var t=this._getPosition(e),r=this._getPixel(e,{width:e.offsetX,height:e.offsetY});return Object.keys(t).forEach(function(e){switch(e){case"top":t[e]+=r.height;break;case"bottom":t[e]-=r.height;break;case"left":t[e]+=r.width;break;case"right":t[e]-=r.width}}),t},i._getPosition=function(e){var t=e.origin,e=e.position,r=0,i=0;switch(t===l&&(r=Math.abs(this.videoSize.height-this.contentSize.height)/2,i=Math.abs(this.videoSize.width-this.contentSize.width)/2),e){case c:return{top:0+r,left:0+i};case u:return{top:0+r,right:0+i};case p:return{bottom:0+r,left:0+i};case d:return{bottom:0+r,right:0+i};default:return{top:0,left:0}}},i._formalize=function(e,t){var r=1,r=e.width/e.height>t.width/t.height?t.width/e.width:t.height/e.height;return{width:e.width*r,height:e.height*r}},i._getPixel=function(e,t){var t=void 0===t?{}:t,r=t.width,t=t.height,i=e.unit,n=e.origin;return isNaN(r)&&(r=e.width),isNaN(t)&&(t=e.height),i===h?{width:(e=n===s?this.videoSize:this.contentSize).width*r/100,height:e.height*t/100}:{width:r,height:t}},i._defauleValue=function(e){return n({},e,{position:e.position||c,offsetX:e.offsetX||0,offsetY:e.offsetY||0,origin:e.origin||s,unit:e.unit||h})},i=e,(t=[{key:"videoSize",get:function(){return this._video?{width:this._video.offsetWidth,height:this._video.offsetHeight}:{}}},{key:"contentSize",get:function(){var e;return this._video?(e={width:this._video.videoWidth,height:this._video.videoHeight},{width:(e=this._formalize(e,this.videoSize)).width,height:e.height}):{}}},{key:"loadedMeta",get:function(){return!!this._video.videoWidth}}])&&o(i.prototype,t),r&&o(i,r),Object.defineProperty(i,"prototype",{writable:!1}),e}(),f=(t.exports=e,function(){function e(){this._frame=void 0}var t=e.prototype;return t.observe=function(e,t){var r=document.createElement("iframe");return r.style.cssText="position:absolute;left:0;top:-100%;width:100%;height:100%;margin:1px 0 0;border:none;opacity:0;visibility:hidden;pointer-events:none;",r.onload=function(){r.contentWindow.onresize=function(){t(e)}},e.appendChild(r),this._frame=r},t.dispose=function(){this._frame&&(this._frame.contentWindow.onresize=null,this._frame.remove(),this._frame=void 0)},e}())},{"../lib/event":26}],14:[function(e,t,r){var i=e("../lib/event"),n=e("../player/base/event/eventtype");t.exports=function(){function e(){this.player=void 0,this.ratio=void 0,this.resize=void 0,this.target=void 0,this.resize=this._resize.bind(this)}var t=e.prototype;return t.autoResize=function(e,t,r){void 0===r&&(r="height"),"number"!=typeof e?console.warn("Parameter [ratio] should be a number, like 16/9"):(this.target=r,this.ratio=e,this.player=t,i.on(window,"resize",this.resize),this.resize())},t._resize=function(){var e,t,r;null!=(e=this.player.fullscreenService)&&e.isFullScreen||(e=null==(e=this.player)?void 0:e.el())&&("height"===this.target?(r=(t=e.offsetWidth)/this.ratio,e.style.height=r+"px"):(t=(r=e.offsetHeight)*this.ratio,e.style.width=t+"px"),null!=(e=this.player))&&e.trigger(n.Player.AutoResize,{width:t,height:r})},t.dispose=function(){i.off(window,"resize",this.resize),this.player=void 0,this.ratio=void 0,this.resize=void 0,this.target=void 0},e}()},{"../lib/event":26,"../player/base/event/eventtype":63}],15:[function(e,t,r){t.exports=t.exports={OD:"OD",FD:"360p",LD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Speed:"Speed",Speed_05X_Text:"0.5X",Speed_1X_Text:"Normal",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Refresh_Text:"Refresh",Cancel:"Cancel",Mute:"Mute",Click_To_Unmute:"Click to unmute",Snapshot:"Snapshot",Detection_Text:"Diagnose",Play_DateTime:"Time",Quality_Change_Fail_Switch_Text:"Cannot play, switch to ",Quality_Change_Text:"Switch to ",Quality_The_Url:"The url",AutoPlayDelayDisplayText:"Play in $$ seconds",Error_Load_Abort_Text:"Data abort erro",Error_Network_Text:"Loading failed due to network error",Error_Decode_Text:"Decode error",Error_No_Decoder_Text:"Unsupported codec",Error_Server_Network_NotSupport_Text:"Network error or \xa0the format of video is unsupported",Error_Offline_Text:"The network is unreachable, please click Refresh",Error_Play_Text:"Error occured while playing",Error_Retry_Text:" Please close or refresh",Error_AuthKey_Text:"Authentication expired or the domain is not in white list",Error_H5_Not_Support_Text:"The format/codec of video is not supported",Error_Not_Support_M3U8_Text:"The format of m3u8 is not supported by this explorer",Error_Not_Support_MP4_Text:"The format of mp4\xa0is not supported by this explorer",Error_Not_Support_encrypt_Text:"To play the encrypted video,please set encryptType to 1",Error_Encrypt_Fetch_Failed_Text:"Failed to fetch the encrypted video",Error_Vod_URL_Is_Empty_Text:"The url is empty",Error_Vod_Fetch_Urls_Text:"Error occured when fetch urls from vod service\uff0cplease close or refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Error_Playauth_Decode_Text:"PlayAuth parse failed",Error_Vid_Not_Same_Text:"Cannot renew url due to vid changed",Error_Playauth_Expired_Text:"Playauth expired, please close or refresh",Error_MTS_Fetch_Urls_Text:"Error occurred while requesting mst server",Error_Load_M3U8_Failed_Text:"The m3u8 file loaded failed,possibly due to HTTPS certificate issues, cross-origin problems, or DNS resolution failures",Error_Load_M3U8_Timeout_Text:"Timeout error occored\xa0when the\xa0m3u8 file loaded",Error_Liveshift_M3U8_Not_Found_Text:"No more liveshift video avaliable",Error_M3U8_Decode_Text:"The m3u8 file decoded failed",Error_TX_Decode_Text:"Video decoded failed",Error_Manifest_Decode_Text:"Failed to parse manifest",Error_Waiting_Timeout_Text:"Buffering timeout,\xa0please close or refresh",Error_Invalidate_Source:"Video shoud be mp4\u3001mp3\u3001m3u8\u3001mpd or flv",Error_Empty_Source:"Video URL shouldn't be empty",Error_Vid_Empty_Source:"vid's video URL hasn't been fetched",Error_Mediaauth_Empty_Source:"mediaAuth's video URL hasn't been fetched",Error_Fetch_NotStream:"The vid has no stream to play",Error_Fetch_Media_Not_Found:"Data is not found",Error_Not_Found:"Url is not found",Error_Drm_License_Request_Failed:"DRM license request failed",Error_Drm_Not_Supported:"DRM in not supported",Error_Drm_Load:"DRM load error",Error_Drm_No_Sts:"STS(accessKeyId/accessKeySecret/securityToken) is required for DRM playback",Error_Region_Block_Text:"This video is not available in your region",Error_SW_Conflict:"Service Worker conflict. Please try disabling browser extensions, restarting the browser, and closing other tabs.",Error_SW_Register_Failed:"Service Worker registration failed.",Error_SW_ScriptURL_Empty:"Please provide the swScriptURL parameter.",Error_SW_ScriptURL_Https:"The swScriptURL parameter must use an absolute address with https:// protocol.",Error_SW_ScriptURL_Scope:"The swScriptURL (subpath: @scope1@) and the current webpage (subpath: @scope2@) must be under the same subpath.",Error_SW_Version_Not_Match:"The version number of swScriptURL (@swVersion@) must match the player version (@playerVersion@).",Error_SW_ScriptURL_ILlegal:"Please provide a valid swScriptURL(@detail@).",Error_SW_Https_required:"Https is required when playing Vod's encription video",Tip_Err_Common:"please contact us for support, the error detail is:<br />",Tip_Err_Common_Short:"the error detail is:<br />",Tip_Drm_Request_Err:"The request failed with an error, please check the browser console to check whether it is caused by DNS, HTTPS certificates, or network problems. <br/> If the above tests are fine,",Tip_Drm_Secure_Context:"DRM can only be accessed under https, localhost, 127.0.0.1 web pages, and m3u8 and media segments must also use https.",Tip_Drm_Key_System_Unavailable:"1. This browser does not support Widevine or the current Widevine configuration<br/>2. The request that pops up in the browser was rejected by the user<br/>3. Please open the browser settings, look for the [Protected Content] setting and allow",Tip_Drm_File_Not_Allowed:"Do not use the file:// to open the file directly, you need to use a https:// to access the file",Tip_Drm_Playlist_Hierarchy:"HLS playlist level error, the main list needs to be master playlist",Tip_Drm_Unsupported:"Your browser does not currently support Widevine. If you are using Chrome, you can visit the URL chrome://components/ to locate the 'Widevine Content Decryption Module' and click on 'Update'. If this module is not present, the browser will be unable to play DRM-protected videos.",Tip_Err_Decode:"The decoding error refers to the current audio/video frame is not compatible with the browser, you can try the following methods: <br />1.chrome/edge browser open the chrome://flags, search for Hardware-accelerated video decode, select disabled<br />2.If the decoding error persists, please transcode the video to fix the problem frame",Tip_Err_Rts_Http_Failed:"The error indicates that the RTS streaming request encountered an HTTP error, which is usually related to HTTPS certificate, DNS resolution, or network connectivity issues. Due to browser restrictions on JavaScript, the player cannot obtain detailed error information. If you need further information, you can follow these steps:<br>Right-click on a blank area of the browser and select 'Inspect'.<br>2.In the newly opened interface, select 'Console'.<br>3.Check for any red error messages:<br>If you see 'SSL', it means that you have not correctly configured the HTTPS certificate for the streaming domain.<br>If you see 'NOT RESOLVED', it means that the DNS resolution for your domain has failed.<br>You can also use the <a style='color:white;text-decoration:underline;' href='https://live.console.aliyun.com/#/tool/url' target='_blank'>ApsaraVideo Live Diagnostic Tool</a> for self-diagnosis.",Tip_Err_Not_found:"For live streams, this might be due to the broadcast not starting yet, having ended, or being disrupted. For on-demand videos, it could indicate the video is unavailable.",Tip_Err_Blocked:"If you have a network proxy enabled, please try disabling it and then retrying.",Tip_Err_Splayer:"For best practices regarding playback of H.265/H.266 encoded videos, please refer to",Tip_Err_Splayer_Doc:" this document.",Tip_SW_Register:"1.Please access the webpage using HTTPS<br>2.Please ensure that the provided swScriptURL is a complete address starting with https:// and is accessible.",Tip_License_Required:"Starting 2024-12-01, the new version of the player must be configured with a license to use. The license for the basic functions of the player can be applied for free and is valid for 1 year. Please apply in advance to avoid any disruption in usage ",Tip_License_Params:"After completing the application, please refer to this document to pass the license information into the SDK ",Tip_License_Check:"Please ensure that the provided license key/domain parameters match exactly with what were obtained from the VOD console.",Tip_License_Domain:"The current website domain does not match with your licensed domain",Tip_License_Feature:"The feature is not authorized by your license:",Live_End:"Live has finished",Play_Before_Fullscreen:"Please play before fullscreen",Can_Not_Seekable:"Can not seek to this position",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Request_Block_Text:"This request is blocked, the video Url should be over https",Open_Html_By_File:"Html page should be on the server",Maybe_Cors_Error:"there is a network error, possibly due to HTTPS certificate issues, cross-origin problems, or DNS resolution failures",Speed_Switch_To:"Speed switch to ",Curent_Volume:"Current volume:",Volume_Mute:"set to mute",Volume_UnMute:"set to unmute",ShiftLiveTime_Error:"Live start time should not be greater than over time",Error_Not_Support_Format_On_Mobile:"flv\u3001rmtp can't be supported on mobile\uff0cplease use m3u8",Error_Not_Support_Mse_Flv:"Flv is not supported by this browser.",Error_Not_Support_Mse_Dash:"Dash is not supported by this browser.",Error_Not_Support_RTMP:"RTMP is not supported by this browser.",SessionId_Ticket_Invalid:"please assign value for sessionId and ticket properties",Http_Error:" An HTTP network request failed with an error, but not from the server.",Http_Timeout:"A network request timed out",DRM_License_Expired:"DRM license is expired, please refresh",Not_Support_DRM:"Browser doesn't support DRM",CC_Switch_To:"Subtitle switch to ",AudioTrack_Switch_To:"Audio tracks switch to ",Subtitle:"Subtitle/CC",AudioTrack:"Audio Track",Quality:"Quality",Auto:"Auto",Quality_Switch_To:"Quality switching to ",Fullscreen:"Full Screen",Setting:"Settings",Volume:"Volume",Play:"Play",Pause:"Pause",CloseSubtitle:"Close CC",OpenSubtitle:"Open CC",ExistFullScreen:"Exit Full Screen",Muted:"Muted",Retry:"Retry",SwitchToLive:"Return to live",iOSNotSupportVodEncription:"Versions of iOS below 17.1 doesn't support Vod's private encription video",iOSVodEncriptionBlacklist:"Please use Safari/Chrome browser to play Vod's private encription video",UseChromeForVodEncription:"This browser desn't suport Vod's encription video, please use latest Chrome/Edge",Record_Not_Allowed:"Recording or playing in seperated window is not allowed, please disable related plugins or switch browser.",License_No_Authorization:"Aliplayer without Authorization",License_Click_To_Apply:"Click to apply",License_Empty:"License params are required",License_Not_Found:"Unregistered license",License_Expired:"Expired license",License_License_Key_Invalid:"Invalid license key",License_Domain_Invalid:"Unexpected domain",License_Feature_Unauthorized:"Unauthorized feature",Rts_Err_Http_Signal_Error:"(RTS)http signal error",Rts_Err_Play_Failed:"(RTS)play faild error",Rts_Err_No_Data_For:"s received no data",Rts_Err_Browser_Not_Support:"(RTS)browser not support",Rts_Err_Not_Support_Webrtc:"(RTS)not support webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)browser version too low",Rts_Err_Not_Support_H264:"(RTS)not support h264",Rts_Err_Create_Offer_Error:"(RTS)create offer error",Rts_Err_Play_Url_Error:"(RTS)play url error",Rts_Err_Subscribe_Nonthing:"(RTS)subscribe nonthing",Rts_Err_Http_Request_Failed:"(RTS)HTTP request failed",Rts_Err_Http_Answer_Failed:"(RTS)answer failed",Rts_Err_PeerConnection_Unknown:"(RTS)Unknown PeerConnection",Splayer_Err_Env_Check:"(SP)This browser can't play this media",Splayer_Err_Coroutine:"(SP)Coroutine error",Splayer_Err_Decoder:"(SP)Decode error",Splayer_Err_Buffering:"(SP)Buffering error",Splayer_Err_Parser_Not_Found:"(SP)Media container is not supported"}},{}],16:[function(e,t,r){t.exports=t.exports={OD:"OD",LD:"360p",FD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Forbidden_Text:"Internal information is strictly forbidden to outsider",Refresh:"Refresh",Diagnosis:"Diagnosis",Live_Finished:"Live has finished, thanks for watching",Play:"Play",Pause:"Pause",Snapshot:"Snapshot",Replay:"Replay",Live:"Live",Encrypt:"Encrypt",Sound:"Sound",Fullscreen:"Full Screen",Exist_Fullscreen:"Exit Full-screen",Resolution:"Resolution",Next:"Next Video",Brightness:"Brightness",Default:"Default",Contrast:"Contrast",Titles_Credits:"Titles\xa0and\xa0Credits",Skip_Titles:"Skip Titles",Skip_Credits:"Skip Credits",Not_Support_Out_Site:"The video is not supported for outside website, please watch it by TaoTV",Watch_Now:"Watch now",Network_Error:"Network is unreachable, please try to refresh",Video_Error:"Playing a video error,\xa0please try to refresh",Decode_Error:"Data decoding\xa0error",Live_Not_Start:"Live has not started, to be expected",Live_Loading:"Live information is loading,\xa0please try to refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Live_End:"Live has finished",Live_Abrot:"Signal aborted,\xa0please try to refresh",Corss_Domain_Error:"Please ensure your domain has obtained IPC license and combined CNAME, \r\n or to set\xa0\xa0cross-domain accessing available",Url_Timeout_Error:"The video url is timeout,\xa0please try to refresh",Connetction_Error:"Sorry\uff0cthe video cannot play because of connection error, please try to watch other videos",Fetch_MTS_Error:"Fetching video list failed, please ensure",Token_Expired_Error:"Requesting open api failed, please ensure token expired or not",Video_Lists_Empty_Error:"The video list is empty, please check the format of video",Encrypted_Failed_Error:"Fetching encrypted file failed, please check the permission of player",Fetch_Failed_Permission_Error:"Fetching video list failed, please check the permission of player",Invalidate_Param_Error:"No video url, please check the parameters",AutoPlayDelayDisplayText:"Play in $$ seconds",Fetch_MTS_NOT_NotStream_Error:"The vid has no stream to play",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Open_Html_By_File:"Html page should be on the server",Cant_Use_Flash_On_Mobile:"Mobile doesn't support flash player\uff0cplease use h5 player",Flash_Not_Ready:"Flash Player plugin hasn't been installed <a href='https://www.flash.cn/' target='_blank'>install plugin</a>, or check if disable Flash plugin"}},{}],17:[function(e,t,r){t.exports=t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Forbidden_Text:"\u5185\u90e8\u4fe1\u606f\uff0c\u4e25\u7981\u5916\u4f20",Refresh:"\u5237\u65b0",Diagnosis:"\u8bca\u65ad",Live_Finished:"\u76f4\u64ad\u5df2\u7ed3\u675f,\u8c22\u8c22\u89c2\u770b",Play:"\u64ad\u653e",Pause:"\u6682\u505c",Snapshot:"\u622a\u56fe",Replay:"\u91cd\u64ad",Live:"\u76f4\u64ad",Encrypt:"\u52a0\u5bc6",Sound:"\u58f0\u97f3",Fullscreen:"\u5168\u5c4f",Exist_Fullscreen:"\u9000\u51fa\u5168\u5c4f",Resolution:"\u6e05\u6670\u5ea6",Next:"\u4e0b\u4e00\u96c6",Brightness:"\u4eae\u5ea6",Default:"\u9ed8\u8ba4",Contrast:"\u5bf9\u6bd4\u5ea6",Titles_Credits:"\u7247\u5934\u7247\u5c3e",Skip_Titles:"\u8df3\u8fc7\u7247\u5934",Skip_Credits:"\u8df3\u8fc7\u7247\u5c3e",Not_Support_Out_Site:"\u8be5\u89c6\u9891\u6682\u4e0d\u652f\u6301\u7ad9\u5916\u64ad\u653e\uff0c\u8bf7\u5230\u6dd8TV\u89c2\u770b",Watch_Now:"\u7acb\u5373\u89c2\u770b",Network_Error:"\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u5c1d\u8bd5\u68c0\u67e5\u7f51\u7edc\u540e\u5237\u65b0\u8bd5\u8bd5",Video_Error:"\u89c6\u9891\u64ad\u653e\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Decode_Error:"\u64ad\u653e\u6570\u636e\u89e3\u7801\u9519\u8bef",Live_Not_Start:"\u4eb2\uff0c\u76f4\u64ad\u8fd8\u672a\u5f00\u59cb\u54e6\uff0c\u656c\u8bf7\u671f\u5f85",Live_Loading:"\u76f4\u64ad\u4fe1\u606f\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Live_Abrot:"\u5f53\u524d\u76f4\u64ad\u4fe1\u53f7\u4e2d\u65ad\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Corss_Domain_Error:"\u8bf7\u786e\u8ba4\u60a8\u7684\u57df\u540d\u5df2\u5b8c\u6210\u5907\u6848\u548cCNAME\u7ed1\u5b9a\uff0c\r\n\u5e76\u5904\u4e8e\u542f\u7528\u72b6\u6001\uff0c\u6216\u8d44\u6e90\u5141\u8bb8\u8de8\u8d8a\u8bbf\u95ee",Url_Timeout_Error:"\u60a8\u6240\u89c2\u770b\u7684\u89c6\u9891\u5730\u5740\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Connetction_Error:"\u62b1\u6b49,\u8be5\u89c6\u9891\u7531\u4e8e\u8fde\u63a5\u9519\u8bef\u6682\u65f6\u4e0d\u80fd\u64ad\u653e,\u8bf7\u89c2\u770b\u5176\u5b83\u89c6\u9891",Fetch_MTS_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4",Token_Expired_Error:"\u8bf7\u6c42\u63a5\u53e3\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4Token\u662f\u5426\u8fc7\u671f",Video_Lists_Empty_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u4e3a\u7a7a\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6570\u636e\u4e0e\u683c\u5f0f",Encrypted_Failed_Error:"\u83b7\u53d6\u89c6\u9891\u52a0\u5bc6\u79d8\u94a5\u9519\u8bef\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Fetch_Failed_Permission_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Invalidate_Param_Error:"\u65e0\u8f93\u5165\u89c6\u9891\uff0c\u8bf7\u786e\u8ba4\u8f93\u5165\u53c2\u6570",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Fetch_MTS_NOT_NotStream_Error:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Cant_Use_Flash_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301Flash\u64ad\u653e\u5668\uff0c\u8bf7\u4f7f\u7528h5\u64ad\u653e\u5668",Flash_Not_Ready:"Flash Player\u63d2\u4ef6\u672a\u5b89\u88c5<a href='https://www.flash.cn/' target='_blank'>\u5b89\u88c5\u63d2\u4ef6</a>\uff0c\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u8bf7\u68c0\u67e5\u662f\u5426\u88ab\u7981\u7528"}},{}],18:[function(a,e,t){function o(){var e;return void 0!==window[c]&&window[c]||(e=(e=(navigator.language||navigator.browserLanguage).toLowerCase())&&-1<e.indexOf("zh")?"zh-cn":"en-us",window[c]=e),window[c]}function s(e,t,r){var i=d(e),n="",o=p(),n="flash"==e?"en-us"==o?a("./flash/en-us"):"zh-cn"==o?a("./flash/zh-cn"):t[o]:"en-us"==o?a("./en-us"):"zh-cn"==o?a("./zh-cn"):t[o];r&&(n=Object.assign({},n,r[o])),l.set(i,JSON.stringify(n)),u(e,n),r&&a("../lib/constants").updateByLanguage()}var r=a("../config"),l=a("../lib/storage"),i=(a("../lib/io"),"aliplayer_lang_data"),c="aliplayer_lang",u=function(e,t){e=d(e);window[e]=t},p=function(){return o()},d=function(e){var t=p();return i+"_"+(e=e||"h5")+"_"+r.h5Version.replace(/\./g,"_")+"_"+t};e.exports.setCurrentLanguage=function(e,t,r,i){var n=window[c];if(!("en-us"==(e=void 0!==e&&e?e:o())||"zh-cn"==e||r&&r[e]))throw new Error("There is not language resource for "+e+", please specify the language resource by languageTexts property");window[c]=e,s(t,r,i),e!=n&&a("../lib/constants").updateByLanguage()},e.exports.getCurrentLanguage=o,e.exports.getLanguageData=function(e,t){e=d(e);return window[e]},e.exports.load=s,e.exports.get=function(e,t,r){t=d(t=t||"h5"),t=window[t];if(t){var i=t[e];if(r)for(var n in r)i=i.replace(new RegExp("@"+n+"@","g"),r[n]);return i}}},{"../config":7,"../lib/constants":22,"../lib/io":33,"../lib/storage":38,"./en-us":15,"./flash/en-us":16,"./flash/zh-cn":17,"./zh-cn":19}],19:[function(e,t,r){t.exports=t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Speed:"\u500d\u901f",Speed_05X_Text:"0.5X",Speed_1X_Text:"\u6b63\u5e38",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Quality_Change_Fail_Switch_Text:"\u4e0d\u80fd\u64ad\u653e\uff0c\u5207\u6362\u4e3a",Quality_Change_Text:"\u6b63\u5728\u4e3a\u60a8\u5207\u6362\u5230 ",Quality_The_Url:"\u6b64\u5730\u5740",Refresh_Text:"\u5237\u65b0",Detection_Text:"\u67e5\u770b\u5efa\u8bae",Cancel:"\u53d6\u6d88",Mute:"\u9759\u97f3",Click_To_Unmute:"\u70b9\u51fb\u53d6\u6d88\u9759\u97f3",Snapshot:"\u622a\u56fe",Play_DateTime:"\u64ad\u653e\u65f6\u95f4",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Error_Load_Abort_Text:"\u83b7\u53d6\u6570\u636e\u8fc7\u7a0b\u88ab\u4e2d\u6b62",Error_Network_Text:"\u7f51\u7edc\u9519\u8bef\u52a0\u8f7d\u6570\u636e\u5931\u8d25",Error_Decode_Text:"\u89e3\u7801\u9519\u8bef",Error_No_Decoder_Text:"\u4e0d\u652f\u6301\u6b64\u7f16\u7801\u683c\u5f0f",Error_Server_Network_NotSupport_Text:"\u670d\u52a1\u5668\u3001\u7f51\u7edc\u9519\u8bef\u6216\u683c\u5f0f\u4e0d\u652f\u6301",Error_Offline_Text:"\u7f51\u7edc\u4e0d\u53ef\u7528\uff0c\u8bf7\u786e\u5b9a",Error_Play_Text:"\u64ad\u653e\u51fa\u9519\u5566",Error_Retry_Text:"\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_AuthKey_Text:"\u53ef\u80fd\u9274\u6743\u8fc7\u671f\u3001\u57df\u540d\u4e0d\u5728\u767d\u540d\u5355\u6216\u8bf7\u6c42\u88ab\u62e6\u622a",Error_H5_Not_Support_Text:"\u4e0d\u652f\u6301\u6b64\u683c\u5f0f\u7684\u89c6\u9891",Error_Not_Support_M3U8_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301m3u8\u89c6\u9891\u64ad\u653e",Error_Not_Support_MP4_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301mp4\u89c6\u9891\u64ad\u653e",Error_Not_Support_encrypt_Text:"\u64ad\u653e\u79c1\u6709\u52a0\u5bc6\u89c6\u9891\uff0c\u8bf7\u8bbe\u7f6e\u5c5e\u6027encryptType\u4e3a1",Error_Encrypt_Fetch_Failed_Text:"\u8bf7\u6c42\u52a0\u5bc6\u5730\u5740\u5931\u8d25",Error_Vod_URL_Is_Empty_Text:"\u83b7\u53d6\u64ad\u653e\u5730\u5740\u4e3a\u7a7a",Error_Vod_Fetch_Urls_Text:"\u70b9\u64ad\u63a5\u53e3\u5f02\u5e38\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Playauth_Decode_Text:"playauth\u89e3\u6790\u9519\u8bef",Error_Vid_Not_Same_Text:"\u4e0d\u80fd\u66f4\u65b0\u5730\u5740\uff0cvid\u548c\u64ad\u653e\u4e2d\u7684\u4e0d\u4e00\u81f4",Error_Playauth_Expired_Text:"\u51ed\u8bc1\u5df2\u8fc7\u671f\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_MTS_Fetch_Urls_Text:"MTS\u83b7\u53d6\u53d6\u6570\u5931\u8d25",Error_Load_M3U8_Failed_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u5931\u8d25,\u53ef\u80fd\u662fhttps\u8bc1\u4e66\u3001\u8de8\u57df\u95ee\u9898\u6216DNS\u89e3\u6790\u5931\u8d25",Error_Load_M3U8_Timeout_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u8d85\u65f6",Error_Liveshift_M3U8_Not_Found_Text:"\u6ca1\u6709\u66f4\u591a\u65f6\u79fb\u89c6\u9891\u4e86",Error_M3U8_Decode_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u89e3\u6790\u5931\u8d25",Error_TX_Decode_Text:"\u89e3\u6790\u6570\u636e\u51fa\u9519",Error_Manifest_Decode_Text:"Manifest\u89e3\u6790\u51fa\u9519",Error_Waiting_Timeout_Text:"\u7f13\u51b2\u6570\u636e\u8d85\u65f6\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Invalidate_Source:"\u64ad\u653e\u5730\u5740\u683c\u5f0f\u9700\u8981\u4e3amp4\u3001mp3\u3001m3u8\u3001mpd\u6216flv",Error_Empty_Source:"\u64ad\u653e\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a",Error_Vid_Empty_Source:"vid\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Mediaauth_Empty_Source:"mediaAuth\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Fetch_NotStream:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Error_Fetch_Media_Not_Found:"\u6570\u636e\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664",Error_Not_Found:"\u64ad\u653e\u5730\u5740\u4e0d\u5b58\u5728",Error_Drm_License_Request_Failed:"DRM License \u8bf7\u6c42\u5931\u8d25",Error_Drm_Not_Supported:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 DRM \u64ad\u653e",Error_Drm_Load:"DRM \u64ad\u653e\u9519\u8bef",Error_Drm_No_Sts:"DRM \u64ad\u653e\u9700\u8981\u4f7f\u7528STS(accessKeyId/accessKeySecret/securityToken)",Error_Region_Block_Text:"\u60a8\u6240\u5728\u7684\u5730\u533a\u65e0\u6cd5\u89c2\u770b\u8be5\u89c6\u9891",Error_SW_Conflict:"ServiceWorker\u51b2\u7a81\uff0c\u8bf7\u5c1d\u8bd5\u7981\u7528\u6d4f\u89c8\u5668\u63d2\u4ef6\u3001\u91cd\u542f\u6d4f\u89c8\u5668\u5e76\u5173\u95ed\u5176\u4ed6\u7f51\u9875",Error_SW_Register_Failed:"Service Worker\u6ce8\u518c\u5931\u8d25",Error_SW_ScriptURL_Empty:"\u8bf7\u4f20\u5165 swScriptURL \u53c2\u6570",Error_SW_ScriptURL_Https:"swScriptURL\u53c2\u6570\u8bf7\u4f7f\u7528 https:// \u534f\u8bae\u7684\u7edd\u5bf9\u5730\u5740",Error_SW_ScriptURL_Scope:"swScriptURL(\u5b50\u8def\u5f84:@scope1@)\u548c\u5f53\u524d\u7f51\u9875(\u5b50\u8def\u5f84:@scope2@)\u5fc5\u987b\u5728\u540c\u4e00\u4e2a\u5b50\u8def\u5f84\u4e0b",Error_SW_Version_Not_Match:"swScriptURL\u7684\u7248\u672c\u53f7(@swVersion@)\u5fc5\u987b\u548c\u64ad\u653e\u5668\u7248\u672c(@playerVersion@)\u53f7\u4e00\u81f4",Error_SW_ScriptURL_ILlegal:"\u8bf7\u4f20\u5165\u5408\u6cd5\u7684swScriptURL(@detail@)",Error_SW_Https_required:"\u79c1\u6709\u52a0\u5bc6\u64ad\u653e\u9700\u8981\u4f7f\u7528 https \u73af\u5883",Tip_Err_Common:"\u60a8\u53ef\u8054\u7cfb\u552e\u540e\u652f\u6301\uff0c\u9519\u8bef\u8be6\u60c5:<br />",Tip_Err_Common_Short:"\u9519\u8bef\u8be6\u60c5:<br />",Tip_Drm_Request_Err:"\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u5148\u67e5\u770b\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\uff0c\u68c0\u67e5\u662f\u5426\u7531\u57df\u540d\u89e3\u6790\u3001https\u8bc1\u4e66\u3001\u6216\u7f51\u7edc\u95ee\u9898\u5f15\u8d77\u3002<br />\u82e5\u4ee5\u4e0a\u68c0\u67e5\u6ca1\u95ee\u9898\uff0c",Tip_Drm_Secure_Context:"DRM\u4ec5\u53ef\u4ee5\u5728https\u3001localhost\u3001127.0.0.1\u7f51\u9875\u4e0b\u8bbf\u95ee\uff0c\u540c\u65f6m3u8\u548c\u5207\u7247\u4e5f\u5fc5\u987b\u4f7f\u7528https\u3002",Tip_Drm_Key_System_Unavailable:"1.\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301Widevine\u6216\u8005\u5f53\u524d\u7684Widevine\u914d\u7f6e<br />2.\u6d4f\u89c8\u5668\u5f39\u51fa\u7684\u8bf7\u6c42\u88ab\u7528\u6237\u62d2\u7edd\u4e86<br />3.\u8bf7\u6253\u5f00\u6d4f\u89c8\u5668\u8bbe\u7f6e\uff0c\u67e5\u627e\u5173\u4e8e\u3010\u53d7\u4fdd\u62a4\u7684\u5185\u5bb9\u3011\u8bbe\u7f6e\u5e76\u5141\u8bb8",Tip_Drm_File_Not_Allowed:"\u8bf7\u4e0d\u8981\u4f7f\u7528file://\u76f4\u63a5\u6253\u5f00\u6587\u4ef6\uff0c\u9700\u8981\u4f7f\u7528https://\u8bbf\u95ee\u6587\u4ef6",Tip_Drm_Playlist_Hierarchy:"HLS\u64ad\u653e\u5217\u8868\u5c42\u7ea7\u9519\u8bef\uff0c\u4e3b\u5217\u8868\u9700\u8981\u662f master playlist",Tip_Drm_Unsupported:"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 Widevine\uff0c\u5982\u679c\u662f Chrome\uff0c\u53ef\u4ee5\u8bbf\u95ee chrome://components/\uff0c\u67e5\u627e Widevine Content Decryption Module\uff0c\u5e76\u70b9\u51fb\u66f4\u65b0\u3002\u5982\u679c\u6ca1\u6709\u6b64\u6a21\u5757\uff0c\u5219\u8be5\u6d4f\u89c8\u5668\u65e0\u6cd5\u64ad\u653e DRM \u89c6\u9891\u3002",Tip_Err_Decode:"\u89e3\u7801\u9519\u8bef\u6307\u7684\u662f\u5f53\u524d\u97f3/\u89c6\u9891\u5e27\u4e0e\u6d4f\u89c8\u5668\u4e0d\u517c\u5bb9\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u5f0f\uff1a<br />1.chrome/edge \u6d4f\u89c8\u5668\u6253\u5f00chrome://flags\uff0c\u641c\u7d22 Hardware-accelerated video decode\uff0c\u9009\u62e9 disabled<br />2.\u5982\u679c\u89e3\u7801\u9519\u8bef\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u5bf9\u89c6\u9891\u8fdb\u884c\u8f6c\u7801\u5904\u7406\uff0c\u4ee5\u4fee\u590d\u95ee\u9898\u5e27<br />3.firefox\u6d4f\u89c8\u5668\u8bf7\u6253\u5f00about:support\uff0c\u4e0b\u62c9\u627e\u5230\u3010\u89e3\u7801\u5668\u652f\u6301\u4fe1\u606f\u3011\uff0c\u5982\u679c\u6ca1\u6709AAC\u5b57\u6837\uff0c\u4ee3\u8868\u4e0d\u652f\u6301\u97f3\u9891\u89e3\u7801\uff0c\u8bf7\u66f4\u6362\u6d4f\u89c8\u5668",Tip_Err_Rts_Http_Failed:"\u8be5\u9519\u8bef\u6307\u7684\u662fRTS\u62c9\u6d41\u8bf7\u6c42\u9047\u5230\u4e86\u4e00\u4e2ahttp\u9519\u8bef\uff0c\u4e00\u822c\u6765\u8bf4\u662fhttps\u8bc1\u4e66\u3001DNS\u89e3\u6790\u6216\u8005\u7f51\u7edc\u8fde\u901a\u6027\u95ee\u9898\uff0c\u7531\u4e8e\u6d4f\u89c8\u5668\u5bf9JS\u7684\u9650\u5236\uff0c\u64ad\u653e\u5668\u65e0\u6cd5\u53d6\u5f97\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u9700\u8981\u8fdb\u4e00\u6b65\u6392\u67e5\uff0c\u60a8\u53ef\u6309\u7167\u4ee5\u4e0b\u64cd\u4f5c\uff1a<br>1.\u53f3\u952e\u6d4f\u89c8\u5668\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u3010\u68c0\u67e5\u30112.\u5728\u65b0\u6253\u5f00\u7684\u754c\u9762\u4e2d\u9009\u62e9\u3010\u63a7\u5236\u53f0\u30113.\u67e5\u770b\u7ea2\u8272\u62a5\u9519\uff1a<br>\u5982\u679c\u6709SSL\u5b57\u6837\uff0c\u5219\u4ee3\u8868\u60a8\u6ca1\u6709\u4e3a\u62c9\u6d41\u57df\u540d\u6b63\u786e\u5730\u914d\u7f6ehttps\u8bc1\u4e66<br>\u5982\u679c\u6709NOT RESOLVED\u5b57\u6837\uff0c\u5219\u4ee3\u8868\u60a8\u7684\u57df\u540dDNS\u89e3\u6790\u5931\u8d25<br>\u60a8\u4e5f\u4f7f\u7528<a style='color:white;text-decoration:underline;' href='https://live.console.aliyun.com/#/tool/url' target='_blank'>\u963f\u91cc\u4e91\u76f4\u64ad\u8bca\u65ad\u5de5\u5177</a>\u8fdb\u884c\u81ea\u52a9\u6392\u67e5",Tip_Err_Not_found:"\u5982\u679c\u662f\u76f4\u64ad\uff0c\u53ef\u80fd\u662f\u76f4\u64ad\u672a\u5f00\u59cb/\u5df2\u505c\u6b62/\u5df2\u65ad\u6d41\uff1b\u5982\u679c\u662f\u70b9\u64ad\uff0c\u53ef\u80fd\u662f\u89c6\u9891\u4e0d\u5b58\u5728\u3002",Tip_Err_Blocked:"\u5982\u679c\u60a8\u5f00\u542f\u4e86\u7f51\u7edc\u4ee3\u7406\uff0c\u8bf7\u5173\u95ed\u540e\u91cd\u8bd5\u3002",Tip_Err_Splayer:"\u5173\u4e8e H.265/H.266 \u64ad\u653e\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u8bf7\u53c2\u8003",Tip_Err_Splayer_Doc:"\u6b64\u6587\u6863\u3002",Tip_SW_Register:"1.\u8bf7\u4f7f\u7528https\u8bbf\u95ee\u7f51\u9875<br>2.\u8bf7\u786e\u4fdd\u4f20\u5165\u7684swScriptURL\u662f\u4ee5https://\u5f00\u5934\u7684\u5b8c\u6574\u5730\u5740\uff0c\u4e14\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee",Tip_License_Required:"2024\u5e7412\u67081\u65e5\u8d77\uff0c\u65b0\u7248\u672c\u64ad\u653e\u5668\u9700\u8981\u914d\u7f6eLicense\u624d\u53ef\u4ee5\u4f7f\u7528\uff0c\u64ad\u653e\u5668\u57fa\u7840\u529f\u80fdLicense\u514d\u8d39\u7533\u8bf7\uff0c\u6709\u6548\u671f 1 \u5e74\uff0c\u8bf7\u63d0\u524d\u7533\u8bf7\u4ee5\u907f\u514d\u65e0\u6cd5\u4f7f\u7528",Tip_License_Params:"\u7533\u8bf7\u5b8c\u6210\u540e\uff0c\u8bf7\u53c2\u8003\u6b64\u6587\u6863\u5c06License\u4fe1\u606f\u4f20\u5165SDK",Tip_License_Check:"\u8bf7\u786e\u4fdd\u4f20\u5165\u7684 license key/domain \u53c2\u6570\u548c\u70b9\u64ad\u63a7\u5236\u53f0\u4e0a\u83b7\u53d6\u7684\u5b8c\u5168\u4e00\u81f4",Tip_License_Domain:"\u5f53\u524d\u7f51\u9875\u57df\u540d\u548c\u60a8\u7684 license \u6388\u6743\u57df\u540d\u4e0d\u4e00\u81f4",Tip_License_Feature:"\u60a8\u7684license\u672a\u6388\u6743\u529f\u80fd\uff1a",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Play_Before_Fullscreen:"\u64ad\u653e\u540e\u518d\u5168\u5c4f",Can_Not_Seekable:"\u4e0d\u80fdseek\u5230\u8fd9\u91cc",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Request_Block_Text:"\u6d4f\u89c8\u5668\u5b89\u5168\u7b56\u7565\u89c6\u9891\u5730\u5740\u4e0d\u80fd\u4e3ahttp\u534f\u8bae\uff0c\u4e0e\u7f51\u7ad9https\u534f\u8bae\u4e0d\u4e00\u81f4",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Maybe_Cors_Error:"\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\uff0c\u53ef\u80fd\u662fhttps\u8bc1\u4e66\u3001\u8de8\u57df\u95ee\u9898\u6216DNS\u89e3\u6790\u5931\u8d25",Speed_Switch_To:"\u500d\u901f\u5207\u6362\u5230 ",Curent_Volume:"\u5f53\u524d\u97f3\u91cf\uff1a",Volume_Mute:"\u8bbe\u7f6e\u4e3a\u9759\u97f3",Volume_UnMute:"\u8bbe\u7f6e\u4e3a\u975e\u9759\u97f3",ShiftLiveTime_Error:"\u76f4\u64ad\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u76f4\u64ad\u7ed3\u675f\u65f6\u95f4",Error_Not_Support_Format_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301flv\u3001rmtp\u89c6\u9891\uff0c\u8bf7\u4f7f\u7528m3u8",Error_Not_Support_Mse_Flv:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 flv \u89c6\u9891",Error_Not_Support_Mse_Dash:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 dash \u89c6\u9891",Error_Not_Support_RTMP:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 rtmp \u89c6\u9891",SessionId_Ticket_Invalid:"DRM\u89c6\u9891\u64ad\u653e\uff0csessionId\u548cticket\u5c5e\u6027\u4e0d\u80fd\u4e3a\u7a7a",Http_Error:"Http\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25",Http_Timeout:"http\u8bf7\u6c42\u8d85\u65f6",DRM_License_Expired:"DRM license\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0",Not_Support_DRM:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301DRM\u89c6\u9891\u7684\u64ad\u653e\u6216\u672a\u53d7\u5230\u7528\u6237\u8bb8\u53ef",CC_Switch_To:"\u5b57\u5e55\u5207\u6362\u5230 ",AudioTrack_Switch_To:"\u97f3\u8f68\u5207\u6362\u5230 ",Subtitle:"\u5b57\u5e55",AudioTrack:"\u97f3\u8f68",Quality:"\u6e05\u6670\u5ea6",Auto:"\u81ea\u52a8",Quality_Switch_To:"\u6b63\u5728\u5207\u6362\u6e05\u6670\u5ea6\u81f3 ",Fullscreen:"\u5168\u5c4f",Setting:"\u8bbe\u7f6e",Volume:"\u97f3\u91cf",Play:"\u64ad\u653e",Pause:"\u6682\u505c",CloseSubtitle:"\u5173\u95ed\u5b57\u5e55",OpenSubtitle:"\u6253\u5f00\u5b57\u5e55",ExistFullScreen:"\u9000\u51fa\u5168\u5c4f",Muted:"\u9759\u97f3",Retry:"\u91cd\u8bd5",SwitchToLive:"\u8fd4\u56de\u76f4\u64ad",iOSNotSupportVodEncription:"iOS17.1\u4ee5\u4e0b\u4e0d\u652f\u6301\u963f\u91cc\u4e91\u89c6\u9891\u79c1\u6709\u52a0\u5bc6\u64ad\u653e",iOSVodEncriptionBlacklist:"\u8bf7\u4f7f\u7528Safari/Chrome\u6d4f\u89c8\u5668\u64ad\u653e\u52a0\u5bc6\u89c6\u9891",UseChromeForVodEncription:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u70b9\u64ad\u52a0\u5bc6\u64ad\u653e\uff0c\u8bf7\u4f7f\u7528\u6700\u65b0Chrome/Edge\u6d4f\u89c8\u5668",Record_Not_Allowed:"\u7981\u6b62\u5f55\u5c4f\u6216\u5c0f\u7a97\u53e3\u64ad\u653e\uff0c\u8bf7\u5173\u95ed\u63d2\u4ef6\u6216\u66f4\u6362\u6d4f\u89c8\u5668",License_No_Authorization:"\u64ad\u653e\u5668SDK\u672a\u6fc0\u6d3b",License_Click_To_Apply:"\u70b9\u51fb\u7533\u8bf7License",License_Empty:"\u672a\u914d\u7f6eLicense",License_Not_Found:"License\u672a\u6ce8\u518c",License_Expired:"License\u5df2\u8fc7\u671f",License_License_Key_Invalid:"LicenseKey\u65e0\u6548",License_Domain_Invalid:"\u57df\u540d\u4e0d\u5339\u914d",License_Feature_Unauthorized:"\u529f\u80fd\u672a\u6388\u6743",Rts_Err_Http_Signal_Error:"(RTS)\u4fe1\u4ee4\u8bf7\u6c42\u5931\u8d25",Rts_Err_Play_Failed:"(RTS)\u64ad\u653e\u5931\u8d25",Rts_Err_No_Data_For:"\u79d2\u6ca1\u6709\u6570\u636e",Rts_Err_Browser_Not_Support:"(RTS)\u4e0d\u652f\u6301\u6b64\u6d4f\u89c8\u5668",Rts_Err_Not_Support_Webrtc:"(RTS)\u4e0d\u652f\u6301webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)\u6d4f\u89c8\u5668\u7248\u672c\u8fc7\u4f4e",Rts_Err_Not_Support_H264:"(RTS)\u4e0d\u652f\u6301H264",Rts_Err_Create_Offer_Error:"(RTS)create offer\u5931\u8d25",Rts_Err_Play_Url_Error:"(RTS)\u64ad\u653eurl\u534f\u8bae\u9519\u8bef",Rts_Err_Subscribe_Nonthing:"(RTS)\u53c2\u6570\u8bbe\u7f6e\u9519\u8bef",Rts_Err_Http_Request_Failed:"(RTS)HTTP\u8bf7\u6c42\u5931\u8d25",Rts_Err_Http_Answer_Failed:"(RTS)answer\u5931\u8d25",Rts_Err_PeerConnection_Unknown:"(RTS)PeerConnection\u5f02\u5e38",Splayer_Err_Env_Check:"(SP)\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u64ad\u653e\u8be5\u89c6\u9891",Splayer_Err_Coroutine:"(SP)Coroutine \u9519\u8bef",Splayer_Err_Decode:"(SP)\u89e3\u7801\u9519\u8bef",Splayer_Err_Buffering:"(SP)\u7f13\u51b2\u533a\u9519\u8bef",Splayer_Err_Parser_Not_Found:"(SP)\u4e0d\u652f\u6301\u7684\u5a92\u4f53\u5bb9\u5668"}},{}],20:[function(e,t,r){var n=e("./videox-muxer.min");function o(){}t.exports=function(e,t,r){void 0===t&&(t=o),void 0===r&&(r=o);var i=new n.Demuxer({progressive:!0});i.on("loadedmetadata",function(e){void 0===e&&(e={}),i.suspend(),i.destroy(),i=null,t(e)}),i.on("error",function(e){r(e),i.suspend(),i.destroy(),i=null}),i.load(e)}},{"./videox-muxer.min":42}],21:[function(e,t,r){var i=e("./oo"),n=e("../player/base/event/eventtype");t.exports.stopPropagation=function(e){window.event?window.event.cancelBubble=!0:e.stopPropagation()},t.exports.register=function(e){e.util={stopPropagation:t.exports.stopPropagation},e.Component=i.extend,e.EventType=n.Player}},{"../player/base/event/eventtype":63,"./oo":36}],22:[function(e,t,r){function i(){t.exports.VideoErrorCodeText={1:n.get("Error_Load_Abort_Text"),2:n.get("Error_Network_Text"),3:n.get("Error_Decode_Text"),4:n.get("Error_Server_Network_NotSupport_Text")},t.exports.VideoLevels={0:n.get("OD"),640:n.get("FD"),960:n.get("LD"),1280:n.get("SD"),1920:n.get("HD"),2580:n.get("2K"),3840:n.get("4K")},t.exports.QualityLevels={OD:n.get("OD"),LD:n.get("LD"),FD:n.get("FD"),SD:n.get("SD"),HD:n.get("HD"),"2K":n.get("2K"),"4K":n.get("4K"),XLD:n.get("XLD"),FHD:n.get("FHD"),SQ:n.get("SQ"),HQ:n.get("HQ")},t.exports.SpeedLevels=[{key:.5,text:n.get("Speed_05X_Text")},{key:1,text:n.get("Speed_1X_Text")},{key:1.25,text:n.get("Speed_125X_Text")},{key:1.5,text:n.get("Speed_15X_Text")},{key:2,text:n.get("Speed_2X_Text")}]}var n=e("../lang/index");t.exports.LOAD_START="loadstart",t.exports.LOADED_METADATA="loadedmetadata",t.exports.LOADED_DATA="loadeddata",t.exports.PROGRESS="progress",t.exports.CAN_PLAY="canplay",t.exports.CAN_PLYA_THROUGH="canplaythrough",t.exports.PLAY="play",t.exports.PAUSE="pause",t.exports.ENDED="ended",t.exports.PLAYING="playing",t.exports.WAITING="waiting",t.exports.ERROR="error",t.exports.SUSPEND="suspend",t.exports.STALLED="stalled",t.exports.DASH_QUALITY_PROTOCOL="quality_index://",t.exports.AuthKeyExpiredEvent="authkeyexpired",t.exports.USER_EVENT_NAME="__user_events__",t.exports.PLAYER_SCOPE="__aliplayerMessage__",t.exports.SW_MSG_EVT={SETUP:"setup",SETUP_ACK:"setupAck",DISPOSE:"dispose",ENC_SEGMENT:"encSegment",DEC_SEGMENT:"decSegment",ABORT_SEGMENT:"abortSegment"},t.exports.DM_MSG_EVT={SETUP:"setup",DEMUX:"demux",RESULT:"result",FLUSH:"flush",DISPOSE:"dispose",DISPOSED:"disposed",ERROR:"error"},t.exports.PLAYER_SDK_CODE=9201,t.exports.FEATURE_ID_H265=30001,t.exports.FEATURE_ID_H266=30002,t.exports.LicenseResultCode={Success:0,NotFound:1,Expired:2,CertInvalid:3,WasmNotSupported:4,ResourceIncorrect:5,LicenseKeyInvalid:6,DomainInvalid:7},t.exports.LicenseErrorKey={Empty:"License_Empty",NotFound:"License_Not_Found",Expired:"License_Expired",CertInvalid:"License_Cert_Invalid",LicenseKeyInvalid:"License_License_Key_Invalid",DomainInvalid:"License_Domain_Invalid",Unauthorized:"License_Feature_Unauthorized"},t.exports.DRMKeySystem={4:"com.microsoft.playready",5:"com.widevine.alpha"},t.exports.EncryptionType={Private:1,Standard:2,ChinaDRM:3,PlayReady:4,Widevine:5},t.exports.VodEncryptionType={AliyunVoDEncryption:1,HLSEncryption:2,Widevine:5,"Widevine-FairPlay":5},t.exports.DRMType={Widevine:"Widevine",PlayReady:"PlayReady"},t.exports.ErrorCode={InvalidParameter:4001,AuthKeyExpired:4002,InvalidSourceURL:4003,NotFoundSourceURL:4004,StartLoadData:4005,LoadedMetadata:4006,PlayingError:4007,LoadingTimeout:4008,RequestDataError:4009,EncrptyVideoNotSupport:4010,FormatNotSupport:4011,PlayauthDecode:4012,PlayDataDecode:4013,NetworkUnavaiable:4014,UserAbort:4015,NetworkError:4016,URLsIsEmpty:4017,DrmLicenseRequestFailed:4018,RecordNotAllowed:4019,MediaNotFound:4020,DrmNotSupported:4021,DrmLoadError:4022,RegionBlock:4023,ModuleLoadError:4034,CrossDomain:4027,OtherError:4400,ServerAPIError:4500,FlashNotInstalled:4600,RtsSignalError:4100,RtsPlayFailedError:4200,RtsNotSupportWebRtc:4110,RtsBrowserNotSupport:4111,RtsBrowserVersionTooLow:4112,RtsNotSupportH264:4113,RtsCreateOfferError:4114,RtsAutoPLayFaild:4115,RtsPlayUrlError:4116,RtsSubscribeNonthing:4117,RtsHtmlElementError:4118,RtsHtmlElementNotMatch:4119,RtsBrowserNotSupportRtc:4120,RtsHttpRequestFaild:4121,RtsHttpAnswerFaild:4122,RtsPeerConnectionUnknown:4123,SplayerEnvCheckError:4300,SplayerCoroutineError:4301,SplayerDecodeError:4302,SplayerBufferingError:4303,SplayerParserNotFound:4304},t.exports.AuthKeyExpired=7200,t.exports.AuthKeyRefreshExpired=7e3,t.exports.AuthInfoExpired=100,t.exports.VideoErrorCode={1:4015,2:4016,3:4013,4:4400},t.exports.RegionBlockMessages=["black location","denied by region block"],t.exports.IconType={FontClass:"fontclass",Symbol:"symbol",Sprite:"Sprite"},t.exports.SelectedStreamLevel="selectedStreamLevel",t.exports.SelectedCC="selectedCC",t.exports.HWDetectHvc1="HWDetectHvc1",t.exports.HWDetectHvc1Hls="HWDetectHvc1Hls",t.exports.HWDetectHev1="HWDetectHev1",t.exports.HWDetectHev1Hls="HWDetectHev1Hls",t.exports.WidthMapToLevel={0:"OD",640:"FD",960:"LD",1280:"SD",1920:"HD",2580:"2K",3840:"4K"};i(),t.exports.updateByLanguage=i},{"../lang/index":18}],23:[function(e,t,r){t.exports.get=function(e){for(var t=e+"",r=document.cookie.split(";"),i=0;i<r.length;i++){var n=r[i].trim();if(0==n.indexOf(t))return unescape(n.substring(t.length+1,n.length))}return""},t.exports.set=function(e,t,r){var i=new Date,r=(i.setTime(i.getTime()+24*r*60*60*1e3),"expires="+i.toGMTString());document.cookie=e+"="+escape(t)+"; "+r}},{}],24:[function(e,r,t){var i=e("./object");r.exports.cache={},r.exports.guid=function(e,t){var r,i,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||n.length,e)for(r=0;r<e;r++)o[r]=n[0|Math.random()*t];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",r=0;r<36;r++)o[r]||(i=0|16*Math.random(),o[r]=n[19==r?3&i|8:i]);return o.join("")},r.exports.expando="vdata"+(new Date).getTime(),r.exports.getData=function(e){var t=e[r.exports.expando];return t||(t=e[r.exports.expando]=r.exports.guid(),r.exports.cache[t]={}),r.exports.cache[t]},r.exports.hasData=function(e){var t="";return!(!(t=e?e[r.exports.expando]:t)||i.isEmpty(r.exports.cache[t]))},r.exports.removeData=function(t){var e="";if(e=t?t[r.exports.expando]:e){delete r.exports.cache[e];try{delete t[r.exports.expando]}catch(e){t.removeAttribute?t.removeAttribute(r.exports.expando):t[r.exports.expando]=null}}}},{"./object":35}],25:[function(e,l,t){var i=e("./object");l.exports.el=function(e){return document.getElementById(e)},l.exports.createEl=function(e,t){var r;return e=e||"div",t=t||{},r=document.createElement(e),i.each(t,function(e,t){-1!==e.indexOf("aria-")||"role"==e?r.setAttribute(e,t):r[e]=t}),r},l.exports.addClass=function(e,t){-1==(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className=""===e.className?t:e.className+" "+t)},l.exports.removeClass=function(e,t){var r,i;if(-1!=e.className.indexOf(t)){for(i=(r=e.className.split(" ")).length-1;0<=i;i--)r[i]===t&&r.splice(i,1);e.className=r.join(" ")}},l.exports.hasClass=function(e,t){return-1!=e.className.indexOf(t)},l.exports.getClasses=function(e){return e.className?e.className.split(" "):[]},l.exports.getElementAttributes=function(e){var t,r,i={};if(e&&e.attributes&&0<e.attributes.length)for(var n,o=(n=e.attributes).length-1;0<=o;o--)t=n[o].name,r=n[o].value,"boolean"!=typeof e[t]&&-1===",autoplay,controls,loop,muted,default,".indexOf(","+t+",")||(r=null!==r),i[t]=r;return i},l.exports.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},l.exports.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},l.exports.unblockTextSelection=function(){document.onselectstart=function(){return!0}},l.exports.css=function(r,e,t){return!(!r||!r.style)&&(e&&t?(r.style[e]=t,!0):t||"string"!=typeof e?!t&&"object"==typeof e&&(i.each(e,function(e,t){r.style[e]=t}),!0):r.style[e])},l.exports.getTransformName=function(e){for(var t=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],r=t[0],i=0,n=t.length;i<n;i++)if(void 0!==e.style[t[i]]){r=t[i];break}return r},l.exports.getTransformEventName=function(e,t){for(var r=["","Webkit","Moz","ms","O"],i=t.toLowerCase(),n=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],o=0,a=n.length;o<a;o++)if(void 0!==e.style[n[o]]){0!=o&&(i=r[o]+t);break}return i},l.exports.addCssByStyle=function(e){var t=document,r=t.createElement("style"),e=(r.setAttribute("type","text/css"),r.styleSheet?r.styleSheet.cssText=e:(e=t.createTextNode(e),r.appendChild(e)),t.getElementsByTagName("head"));(e.length?e[0]:t.documentElement).appendChild(r)},l.exports.getTranslateX=function(e){var t=0;if(e)try{var r=window.getComputedStyle(e),i=l.exports.getTransformName(e),t=new(window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix)(r[i]).m41}catch(e){console.log(e)}return t},l.exports.getPointerPosition=function(e,t){var r={},i=l.exports.findPosition(e),n=e.offsetWidth,e=e.offsetHeight,o=i.top,i=i.left,a=t.pageY,s=t.pageX;return t.changedTouches&&(s=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(o-a+e)/e)),r.x=Math.max(0,Math.min(1,(s-i)/n)),r},l.exports.findPosition=function(e){var t,r,i,n;return(t=e.getBoundingClientRect&&e.parentNode?e.getBoundingClientRect():t)?(e=document.documentElement,n=document.body,i=e.clientLeft||n.clientLeft||0,r=window.pageXOffset||n.scrollLeft,r=t.left+r-i,i=e.clientTop||n.clientTop||0,e=window.pageYOffset||n.scrollTop,n=t.top+e-i,{left:Math.round(r),top:Math.round(n)}):{left:0,top:0}}},{"./object":35}],26:[function(e,l,t){var c=e("./object"),u=e("./data"),r=e("./ua"),i=e("./fastclick");function p(t,r,e,i){c.each(e,function(e){t(r,e,i)})}l.exports.on=function(o,e,t){if(o){if(c.isArray(e))return p(l.exports.on,o,e,t);r.IS_MOBILE&&"click"==e&&i.attach(o);var a=u.getData(o);a.handlers||(a.handlers={}),a.handlers[e]||(a.handlers[e]=[]),t.guid||(t.guid=u.guid()),a.handlers[e].push(t),a.dispatcher||(a.disabled=!1,a.dispatcher=function(e){if(!a.disabled){e=l.exports.fixEvent(e);var t=a.handlers[e.type];if(t)for(var r=t.slice(0),i=0,n=r.length;i<n&&!e.isImmediatePropagationStopped();i++)r[i].call(o,e)}}),1==a.handlers[e].length&&(o.addEventListener?o.addEventListener(e,a.dispatcher,!1):o.attachEvent&&o.attachEvent("on"+e,a.dispatcher))}},l.exports.off=function(t,e,r){if(t&&u.hasData(t)){var i=u.getData(t);if(i.handlers){if(c.isArray(e))return p(l.exports.off,t,e,r);function n(e){i.handlers[e]=[],l.exports.cleanUpEvents(t,e)}if(e){var o=i.handlers[e];if(o)if(r){if(r.guid)for(var a=0;a<o.length;a++)o[a].guid===r.guid&&o.splice(a--,1);l.exports.cleanUpEvents(t,e)}else n(e)}else for(var s in i.handlers)n(s)}}},l.exports.cleanUpEvents=function(e,t){var r=u.getData(e);0===r.handlers[t].length&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),c.isEmpty(r.handlers)&&(delete r.handlers,delete r.dispatcher,delete r.disabled),c.isEmpty(r)&&u.removeData(e)},l.exports.fixEvent=function(e){function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped){var i,n,o,a=e||window.event;for(i in e={},a)"layerX"===i||"layerY"===i||"keyboardEvent.keyLocation"===i||"returnValue"==i&&a.preventDefault||(e[i]=a[i]);e.target||(e.target=e.srcElement||document),e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement,e.preventDefault=function(){a.preventDefault&&a.preventDefault(),e.returnValue=!1,e.isDefaultPrevented=t,e.defaultPrevented=!0},e.isDefaultPrevented=r,e.defaultPrevented=!1,e.stopPropagation=function(){a.stopPropagation&&a.stopPropagation(),e.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){a.stopImmediatePropagation&&a.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,null!=e.clientX&&(n=document.documentElement,o=document.body,e.pageX=e.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e},l.exports.trigger=function(e,t){var r,i,n;if(e)return r=u.hasData(e)?u.getData(e):{},i=e.parentNode||e.ownerDocument,"string"==typeof t&&(n=null,!e.paramData&&0!=e.paramData||(n=e.paramData,e.paramData=null,e.removeAttribute(n)),t={type:t,target:e,paramData:n}),t=l.exports.fixEvent(t),r.dispatcher&&r.dispatcher.call(e,t),i&&!t.isPropagationStopped()&&!1!==t.bubbles?l.exports.trigger(i,t):i||t.defaultPrevented||(n=u.getData(t.target),t.target[t.type]&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1)),!t.defaultPrevented},l.exports.one=function(e,t,r){if(e){if(c.isArray(t))return p(l.exports.one,e,t,r);function i(){l.exports.off(e,t,i),r.apply(this,arguments)}i.guid=r.guid=r.guid||u.guid(),l.exports.on(e,t,i)}}},{"./data":24,"./fastclick":27,"./object":35,"./ua":39}],27:[function(e,t,r){function a(n,e){var t;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=n,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!a.notNeeded(n)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],i=0,o=r.length;i<o;i++)this[r[i]]=function(e,t){return function(){return e.apply(t,arguments)}}(this[r[i]],this);s&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(e,t,r){var i=Node.prototype.removeEventListener;"click"===e?i.call(n,e,t.hijacked||t,r):i.call(n,e,t,r)},n.addEventListener=function(e,t,r){var i=Node.prototype.addEventListener;"click"===e?i.call(n,e,t.hijacked||(t.hijacked=function(e){e.propagationStopped||t(e)}),r):i.call(n,e,t,r)}),"function"==typeof n.onclick&&(t=n.onclick,n.addEventListener("click",function(e){t(e)},!1),n.onclick=null)}}var i=0<=navigator.userAgent.indexOf("Windows Phone"),s=0<navigator.userAgent.indexOf("Android")&&!i,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!i,l=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=o&&/OS [6-7]_\d/.test(navigator.userAgent),n=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(o&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},a.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},a.prototype.sendClick=function(e,t){var r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),t=t.changedTouches[0],(r=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),r.forwardedTouchEvent=!0,e.dispatchEvent(r)},a.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(e){var t;o&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},a.prototype.updateScrollParent=function(e){var t,r=e.fastClickScrollParent;if(!r||!r.contains(e)){t=e;do{if(t.scrollHeight>t.offsetHeight){r=t,e.fastClickScrollParent=t;break}}while(t=t.parentElement)}r&&(r.fastClickLastScrollTop=r.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},a.prototype.onTouchStart=function(e){var t,r,i;if(!(1<e.targetTouches.length)){if(t=this.getTargetElementFromEventTarget(e.target),r=e.targetTouches[0],o){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(r.identifier&&r.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=r.identifier,this.updateScrollParent(t)}}this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=r.pageX,this.touchStartY=r.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault()}return!0},a.prototype.touchHasMoved=function(e){var e=e.changedTouches[0],t=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>t||Math.abs(e.pageY-this.touchStartY)>t},a.prototype.onTouchMove=function(e){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0},a.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(e){var t,r,i,n=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,t=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(i=e.changedTouches[0],(n=document.elementFromPoint(i.pageX-window.pageXOffset,i.pageY-window.pageYOffset)||n).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=n.tagName.toLowerCase())){if(r=this.findControl(n)){if(this.focus(n),s)return!1;n=r}}else if(this.needsFocus(n))return 100<e.timeStamp-t||o&&window.top!==window&&"input"===i?this.targetElement=null:(this.focus(n),this.sendClick(n,e),o&&"select"===i||(this.targetElement=null,e.preventDefault())),!1;return!(!o||l||!(r=n.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(n)||(e.preventDefault(),this.sendClick(n,e)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(e){return!this.targetElement||!(!e.forwardedTouchEvent&&e.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)&&(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),1))},a.prototype.onClick=function(e){return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===e.target.type&&0===e.detail||((e=this.onMouse(e))||(this.targetElement=null),e)},a.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(e){var t,r;if(void 0===window.ontouchstart)return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(31<r&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(n&&10<=(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=r[2]&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||"none"===e.style.touchAction||"manipulation"===e.style.touchAction},a.attach=function(e,t){return new a(e,t)},t.exports=a},{}],28:[function(e,t,r){var n=e("./data");t.exports.bind=function(e,t,r){t.guid||(t.guid=n.guid());function i(){return t.apply(e,arguments)}return i.guid=r?r+"_"+t.guid:t.guid,i}},{"./data":24}],29:[function(e,t,r){function w(){"use strict";w=function(){return a};var a={},e=Object.prototype,l=e.hasOwnProperty,c=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||"@@toStringTag";function o(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function s(e,t,r,i){var n,o,a,s,t=t&&t.prototype instanceof d?t:d,t=Object.create(t.prototype),i=new T(i||[]);return c(t,"_invoke",{value:(n=e,o=r,a=i,s="suspendedStart",function(e,t){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===e)throw t;return E()}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){r=function e(t,r){var i=t.iterator[r.method];if(void 0===i){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}i=u(i,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;i=i.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}(r,a);if(r){if(r===p)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";r=u(n,o,a);if("normal"===r.type){if(s=a.done?"completed":"suspendedYield",r.arg===p)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(s="completed",a.method="throw",a.arg=r.arg)}})}),t}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var p={};function d(){}function h(){}function f(){}var t={},_=(o(t,i,function(){return this}),Object.getPrototypeOf),_=_&&_(_(b([]))),y=(_&&_!==e&&l.call(_,i)&&(t=_),f.prototype=d.prototype=Object.create(t));function g(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function v(a,s){var t;c(this,"_invoke",{value:function(r,i){function e(){return new s(function(e,t){!function t(e,r,i,n){var o,e=u(a[e],a,r);if("throw"!==e.type)return(r=(o=e.arg).value)&&"object"==typeof r&&l.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,i,n)},function(e){t("throw",e,i,n)}):s.resolve(r).then(function(e){o.value=e,i(o)},function(e){return t("throw",e,i,n)});n(e.arg)}(r,i,e,t)})}return t=t?t.then(e,e):e()}})}function m(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(m,this),this.reset(!0)}function b(t){if(t){var r,e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(l.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e}).next=e}return{next:E}}function E(){return{value:void 0,done:!0}}return c(y,"constructor",{value:h.prototype=f,configurable:!0}),c(f,"constructor",{value:h,configurable:!0}),h.displayName=o(f,n,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,o(e,n,"GeneratorFunction")),e.prototype=Object.create(y),e},a.awrap=function(e){return{__await:e}},g(v.prototype),o(v.prototype,r,function(){return this}),a.AsyncIterator=v,a.async=function(e,t,r,i,n){void 0===n&&(n=Promise);var o=new v(s(e,t,r,i),n);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},g(y),o(y,n,"Generator"),o(y,i,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,r=Object(e),i=[];for(t in r)i.push(t);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=b,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function e(e,t){return o.type="throw",o.arg=r,i.next=e,t&&(i.method="next",i.arg=void 0),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],o=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=l.call(n,"catchLoc"),s=l.call(n,"finallyLoc");if(a&&s){if(this.prev<n.catchLoc)return e(n.catchLoc,!0);if(this.prev<n.finallyLoc)return e(n.finallyLoc)}else if(a){if(this.prev<n.catchLoc)return e(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return e(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&l.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}var o=(n=n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc?null:n)?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,i,n=this.tryEntries[t];if(n.tryLoc===e)return"throw"===(r=n.completion).type&&(i=r.arg,S(n)),i}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:b(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},a}function l(e,t,r,i,n,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,n)}function a(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var i=s.apply(e,a);function n(e){l(i,t,r,n,o,"next",e)}function o(e){l(i,t,r,n,o,"throw",e)}n(void 0)})}}var i,s="undefined"==typeof Promise?e("es6-promise").Promise:Promise;e=self,i=function(){"use strict";function y(e,t){var r="hls"===(t=void 0===t?"mp4":t),i="";switch(e=void 0===e?"":e){case"hvc1":i=r?"https://player.alicdn.com/lib/detect-assets/01s_20x20_hvc1.m3u8":"https://ice-pub-media.myalicdn.com/vod-demo/hevc/01s_20x20_hvc1.mp4";break;case"hev1":i=r?"https://player.alicdn.com/lib/detect-assets/01s_20x20_hev1.m3u8":"https://ice-pub-media.myalicdn.com/vod-demo/hevc/01s_20x20_hev1.mp4";break;default:i=""}return i}function g(i,l,c,e){void 0===l&&(l=!1),void 0===c&&(c="");var u=performance.now(),p=e;return new s(function(o){e=i,void 0===(t=l?100:0)&&(t=100),(r=document.createElement("video")).setAttribute("width",""+t),r.setAttribute("height",""+t),r.setAttribute("muted","muted"),r.setAttribute("crossorigin","anonymous"),r.setAttribute("preload","preload"),r.setAttribute("autoplay","autoplay"),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("playsinline","playsinline"),r.setAttribute("x-webkit-airplay","x-webkit-airplay"),r.setAttribute("playsinline","playsinline"),r.src=e;var e,t,r,a=r,s=setInterval(function(){var e,t,r,i,n;(performance.now()-u>p||0!==a.videoWidth)&&(clearInterval(s),e=0!==a.videoWidth,l?(a.setAttribute("controls","controls"),t=a,void 0===(r=c)&&(r=""),i=document.createElement("dv"),(n=document.createElement("h3")).innerText=r,i.appendChild(t),i.appendChild(n),document.body.appendChild(i)):(a.pause(),a=null),o(e))})})}var i={d:function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},e={},t=(i.d(e,{default:function(){return o}}),navigator.userAgent),r=/qqbrowser/i.test(t.toLowerCase()),n=/Edge/i.test(t),n=/Chrome/i.test(t)&&!n&&!r,v=/Safari/i.test(t)&&!n,r=t.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/),n=r&&r[1],m=n&&Number(n.split(".")[0]),S=function(){var t=a(w().mark(function e(t){var r;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return r=e.sent,e.abrupt("return",URL.createObjectURL(r));case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}(),T={includeSystemHijack:!0,showVideo:!1,format:"mp4",codecTags:["hev1","hvc1"],timeout:2e3},o=function(_){return void 0===_&&(_={}),new s(function(){var t=a(w().mark(function e(t){var r,i,n,o,a,s,l,c,u,p,d,h,f;return w().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Object.assign({},T,_),r=o.includeSystemHijack,i=o.showVideo,l=o.codecTags,n=o.format,o=o.timeout,a=performance.now(),s=-1<l.indexOf("hvc1"),l=-1<l.indexOf("hev1"),u=c=!1,!(v&&m&&11<=m)){e.next=14;break}if(p=y("hvc1",n),e.t0=r,e.t0){e.next=9;break}return e.next=8,S(p);case 8:p=e.sent;case 9:return e.next=11,g(p,i,"hvc1",o);case 11:c=e.sent,e.next=34;break;case 14:if(!s){e.next=24;break}if(d=y("hvc1",n),e.t1=r,e.t1){e.next=21;break}return e.next=20,S(d);case 20:d=e.sent;case 21:return e.next=23,g(d,i,"hvc1",o);case 23:c=e.sent;case 24:if(!l){e.next=34;break}if(h=y("hev1",n),e.t2=r,e.t2){e.next=31;break}return e.next=30,S(h);case 30:h=e.sent;case 31:return e.next=33,g(h,i,"hev1",o);case 33:u=e.sent;case 34:f=performance.now(),t({isHvc1Supported:c,isHev1Supported:u,time:Math.ceil(f-a)});case 36:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}())};return e.default},"object"==typeof r&&"object"==typeof t?t.exports=i():"object"==typeof r?r.hevcDetector=i():e.hevcDetector=i()},{"es6-promise":1}],30:[function(e,t,r){function i(e){for(var t in e="string"==typeof e?this.parseAttrList(e):e)e.hasOwnProperty(t)&&(this[t]=e[t])}var n=/^(\d+)x(\d+)$/,o=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g;i.prototype={decimalInteger:function(e){e=parseInt(this[e],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},hexadecimalInteger:function(e){if(this[e]){for(var t=(1&(t=(this[e]||"0x").slice(2)).length?"0":"")+t,r=new Uint8Array(t.length/2),i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(2*i,2*i+2),16);return r}return null},hexadecimalIntegerAsNumber:function(e){e=parseInt(this[e],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},decimalFloatingPoint:function(e){return parseFloat(this[e])},enumeratedString:function(e){return this[e]},decimalResolution:function(e){e=n.exec(this[e]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},parseAttrList:function(e){var t,r={};for(o.lastIndex=0;null!==(t=o.exec(e));){var i=t[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[t[1]]=i}return r}},t.exports=i},{}],31:[function(e,t,r){function S(){this.method=null,this.key=null,this.iv=null,this._uri=null}function T(){this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[]}function i(){this.loaders={}}var n=e("../constants"),l=e("../playerutil"),b=e("./attrlist"),c=e("../io"),o=e("./urltoolkit"),u=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,p=/#EXT-X-MEDIA:(.*)/g,E=new RegExp([/#EXTINF:(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),w=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(PART-INF):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,d="RegionBlock";T.prototype.getUrl=function(){return!this._url&&this.relurl&&(this._url=o.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},T.prototype.Seturl=function(e){this._url=e},T.prototype.getProgramDateTime=function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime},T.prototype.GetbyteRange=function(){var e,t,r;return this._byteRange||(e=this._byteRange=[],this.rawByteRange&&(1===(t=this.rawByteRange.split("@",2)).length?(r=this.lastByteRangeEndOffset,e[0]=r||0):e[0]=parseInt(t[1]),e[1]=parseInt(t[0])+e[0])),this._byteRange},T.prototype.getByteRangeStartOffset=function(){return this.byteRange[0]},T.prototype.getByteRangeEndOffset=function(){return this.byteRange[1]},T.prototype.getDecryptdata=function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata};i.prototype=((e={parseMasterPlaylist:function(e,t){var r=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var i={},n=i.attrs=new b(o[1]),o=(i.url=this.resolve(o[2],t),n.decimalResolution("RESOLUTION"));if(o&&(i.width=o.width,i.height=o.height),i.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),i.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?i.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?i.videoCodec=l:i.audioCodec=l}r.push(i)}return r},parseMasterPlaylistMedia:function(e,t,r,i){var n=[],o=0;for(p.lastIndex=0;null!=(s=p.exec(e));){var a={},s=new b(s[1]);s.TYPE===r&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=r,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),i&&(a.audioCodec=i),a.id=o++,n.push(a))}return n},avc1toavcoti:function(e){var t=e.split("."),r=2<t.length?(r=t.shift()+".",(r+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).substr(-4)):e;return r},load:function(o,a,i){var s=this;c.get(o,function(e){var t,r,i,n=s.parseMasterPlaylist(e,o);n.length&&(t=s.parseMasterPlaylistMedia(e,o,"AUDIO",n[0].audioCodec),r=s.parseMasterPlaylistMedia(e,o,"SUBTITLES"),t.length)&&(i=!1,t.forEach(function(e){e.url||(i=!0)}),!1===i)&&n[0].audioCodec&&!n[0].attrs.AUDIO&&(console.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),t.unshift({type:"main",name:"main"})),a({levels:n,audioTracks:t,subtitles:r,url:o,string:e})},function(e,t,r){i&&((r=l.parseHttpHeaders(r)["x-tengine-error"])&&-1<n.RegionBlockMessages.indexOf(r)&&(e=d),i(e,t))})},loadMediaPlaylist:function(e,t,r){var i=this,n=(e=e||{}).string,o=e.url;n?(e=i.parseLevelPlaylist(n,o),t(e)):c.get(o,function(e){e=i.parseLevelPlaylist(e,o);t(e)},function(e){r&&r(e)})},resolve:function(e,t){return o.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}}).parseMasterPlaylist=function(e,t){var r=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var i={},n=i.attrs=new b(o[1]),o=(i.url=this.resolve(o[2],t),n.decimalResolution("RESOLUTION"));if(o&&(i.width=o.width,i.height=o.height),i.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),i.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?i.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?i.videoCodec=l:i.audioCodec=l}r.push(i)}return r},e.parseMasterPlaylistMedia=function(e,t,r,i){var n=[],o=0;for(p.lastIndex=0;null!=(s=p.exec(e));){var a={},s=new b(s[1]);s.TYPE===r&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=r,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),i&&(a.audioCodec=i),a.id=o++,n.push(a))}return n},e.avc1toavcoti=function(e){var t=e.split("."),r=2<t.length?(r=t.shift()+".",(r+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).substr(-4)):e;return r},e.parseLevelPlaylist=function(e,t,r,i){var n,o,a=0,s=0,l={type:null,version:null,url:t,fragments:[],live:!0,startSN:0},c=new S,u=0,p=null,d=new T;for(E.lastIndex=0;null!==(n=E.exec(e));){var h=n[1];if(h){d.duration=parseFloat(h);var f=(" "+n[2]).slice(1);d.title=f||null,d.tagList.push(f?["INF",h,f]:["INF",h])}else if(n[3])isNaN(d.duration)||(f=a++,d.type=i,d.start=s,d.levelkey=c,d.sn=f,d.level=r,d.cc=u,d.baseurl=t,d.relurl=(" "+n[3]).slice(1),l.fragments.push(d),s+=(p=d).duration,d=new T);else if(n[4])d.rawByteRange=(" "+n[4]).slice(1),p&&(h=p.byteRangeEndOffset)&&(d.lastByteRangeEndOffset=h);else if(n[5])d.rawProgramDateTime=(" "+n[5]).slice(1),d.tagList.push(["PROGRAM-DATE-TIME",d.rawProgramDateTime]),void 0===l.programDateTime&&(l.programDateTime=new Date(new Date(Date.parse(n[5]))-1e3*s));else{for(n=n[0].match(w),o=1;o<n.length&&void 0===n[o];o++);var _=(" "+n[o+1]).slice(1),y=(" "+n[o+2]).slice(1);switch(n[o]){case"#":d.tagList.push(y?[_,y]:[_]);break;case"PLAYLIST-TYPE":l.type=_.toUpperCase();break;case"MEDIA-SEQUENCE":a=l.startSN=parseInt(_);break;case"TARGETDURATION":l.targetduration=parseFloat(_);break;case"VERSION":l.version=parseInt(_);break;case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"DIS":u++,d.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":u=parseInt(_);break;case"KEY":var g=new b(_),v=g.enumeratedString("METHOD"),m=g.URI,g=g.hexadecimalInteger("IV");v&&(c=new S,m)&&0<=["AES-128","SAMPLE-AES"].indexOf(v)&&(c.method=v,c.baseuri=t,c.reluri=m,c.key=null,c.iv=g);break;case"START":v=new b(_).decimalFloatingPoint("TIME-OFFSET");isNaN(v)||(l.startTimeOffset=v);break;case"MAP":m=new b(_);d.relurl=m.URI,d.rawByteRange=m.BYTERANGE,d.baseurl=t,d.level=r,d.type=i,d.sn="initSegment",l.initSegment=d,d=new T;break;case"PART-INF":g=new b(_);l.partTarget=g.decimalFloatingPoint("PART-TARGET");break;default:console.log("line parsed but not handled: "+n)}}}return(d=p)&&!d.relurl&&(l.fragments.pop(),s-=d.duration),l.totalduration=s,l.averagetargetduration=s/l.fragments.length,l.endSN=a-1,l},e),i.ERROR_REGION_BLOCK=d,t.exports=i},{"../constants":22,"../io":33,"../playerutil":37,"./attrlist":30,"./urltoolkit":32}],32:[function(e,t,r){var i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,o=/^([^\/;?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=s.parseURL(e);if(i)return i.path=s.normalizePath(i.path),s.buildURLFromParts(i);throw new Error("Error trying to parse base URL.")}i=s.parseURL(t);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return r.alwaysNormalize?(i.path=s.normalizePath(i.path),s.buildURLFromParts(i)):t;t=s.parseURL(e);if(!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(e=o.exec(t.path),t.netLoc=e[1],t.path=e[2]),t.netLoc&&!t.path&&(t.path="/");var n,e={scheme:t.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};return i.netLoc||(e.netLoc=t.netLoc,"/"!==i.path[0]&&(i.path?(n=(n=t.path).substring(0,n.lastIndexOf("/")+1)+i.path,e.path=s.normalizePath(n)):(e.path=t.path,i.params||(e.params=t.params,i.query)||(e.query=t.query)))),null===e.path&&(e.path=r.alwaysNormalize?s.normalizePath(i.path):i.path),s.buildURLFromParts(e)},parseURL:function(e){e=i.exec(e);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};t.exports=s},{}],33:[function(e,v,t){function m(e){try{var t=/vod(?:-product)?\.(\S+)\.aliyuncs\.com/.exec(e);return{value:!!t,region:t?t[1]:""}}catch(e){return{value:!1,region:""}}}function S(e){return(e||"").split("?")[0]}var T=e("../player/base/event/eventtype"),b=e("./url"),E="main",w="backup";v.exports.get=function(e,t,r,i,n){v.exports.ajax.call(this,"GET",e,{},t,r,i,n)},v.exports.post=function(e,t,r,i,n,o){var a={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json"};v.exports.ajax("POST",e,t,r,i,n,o,a)},v.exports.postWithHeader=function(e,t,r,i,n){v.exports.ajax("POST",e,t,i,n,!0,!1,r)},v.exports.ajax=function(r,i,n,o,a,s,l,c,u){var p,d,e,h,f=this,t=(u=u||{type:E,time:0},a=a||function(){},m(i)),_=t.value,t=t.region,y=i.replace("vod."+t+".aliyuncs.com","vod-product."+t+".aliyuncs.com");_&&f&&f._useBackupVodDomain&&(i=y),"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("This browser does not support XMLHttpRequest.")}),d=new XMLHttpRequest,t=b.parseUrl(i),e=window.location,!(t.protocol+t.host!==e.protocol+e.host)||!window.XDomainRequest||"withCredentials"in d?(p="file:"==t.protocol||"file:"==e.protocol,d.onreadystatechange=function(){if(4===d.readyState){t=(e=d).status,e=e.responseText;t=0===t||500<=t&&t<=599&&-1===(e||"").indexOf("RequestId");if(h&&(clearTimeout(h),h=void 0),t||0!==u.time&&f&&"function"==typeof f.trigger&&(f._useBackupVodDomain=!0,f.trigger(T.Private.VodRequestExceptionResume,{url:S(i),status:d.status,response:200!==d.status?d.responseText:"",retryType:u.type,retryTime:u.time})),200===d.status||p&&0===d.status)o(d.responseText);else{if(t&&_&&u){if(f&&"function"==typeof f.trigger&&f.trigger(T.Private.VodRequestException,{url:S(i),status:d.status,response:d.responseText,retryType:u.type,retryTime:u.time}),u.type===E)return u.time<1?(u.time++,void setTimeout(function(){v.exports.ajax.call(f,r,i,n,o,a,s,l,c,u)},200)):(u.type=w,u.time=1,void setTimeout(function(){v.exports.ajax.call(f,r,y,n,o,a,s,l,c,u)},200));if(u.type===w){if(u.time<2)return u.time++,void setTimeout(function(){v.exports.ajax.call(f,r,y,n,o,a,s,l,c,u)},200);f&&(f._useBackupVodDomain=!1)}}a(d.responseText,d.status,d)}}var e,t}):((d=new window.XDomainRequest).onload=function(){o(d.responseText)},d.onerror=a,d.onprogress=function(){},d.ontimeout=a);try{if(void 0===s&&(s=!0),d.open(r,i,s),l&&(d.withCredentials=!0),c)for(var g in c)c.hasOwnProperty(g)&&d.setRequestHeader(g,c[g])}catch(e){return void a(e)}try{m(i).value&&(h=setTimeout(function(){u.type===E?u.time=1:u.type===w&&(u.time=2),d.abort()},5e3)),d.send(n)}catch(e){a(e)}},v.exports.jsonp=function(e,t,r){var i="jsonp_callback_"+Math.round(1e5*Math.random()),n=document.createElement("script");e&&(n.src=e+(0<=e.indexOf("?")?"&":"?")+"callback="+i+"&cb="+i,n.onerror=function(){delete window[i],document.body.removeChild(n),r()},n.onload=function(){setTimeout(function(){window[i]&&(delete window[i],document.body.removeChild(n))},0)},window[i]=function(e){delete window[i],document.body.removeChild(n),t(e)},document.body.appendChild(n))},v.exports.loadJS=function(e,t,r){var i=document.getElementsByTagName("HEAD").item(0),n=document.createElement("script");n.setAttribute("crossorigin","anonymous"),e&&e.toLowerCase().indexOf("https://")<0&&e.toLowerCase().indexOf("http://")<0&&(e=document.URL.replace(/(\/[^\/]*?)$/i,"")+e),n.type="text/javascript",n.src=e,n.onload=function(){t&&t()},n.onerror=function(){r&&r()},i.appendChild(n)}},{"../player/base/event/eventtype":63,"./url":40}],34:[function(e,t,r){var a=e("./dom");t.exports.render=function(e,t){var r=t.align||(t.className?"":"tl"),i=t.x||0,t=t.y||0,n=i.indexOf&&0<i.indexOf("%")?"":"px",o=t.indexOf&&0<t.indexOf("%")?"":"px";"tl"===r?a.css(e,{float:"left","margin-left":i+n,"margin-top":t+o}):"tr"===r?a.css(e,{float:"right","margin-right":i+n,"margin-top":t+o}):"tlabs"===r?a.css(e,{position:"absolute",left:i+n,top:t+o}):"trabs"===r?a.css(e,{position:"absolute",right:i+n,top:t+o}):"blabs"===r?a.css(e,{position:"absolute",left:i+n,bottom:t+o}):"brabs"===r?a.css(e,{position:"absolute",right:i+n,bottom:t+o}):"cc"===r&&a.addClass(e,"loading-center")}},{"./dom":25}],35:[function(e,a,t){var s=Object.prototype.hasOwnProperty;a.exports.create=Object.create||function(e){function t(){}return t.prototype=e,new t},a.exports.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(arg)},a.exports.isEmpty=function(e){for(var t in e)if(null!==e[t])return!1;return!0},a.exports.each=function(e,t,r){if(a.exports.isArray(e))for(var i=0,n=e.length;i<n&&!1!==t.call(r||this,e[i],i);++i);else for(var o in e)if(s.call(e,o)&&!1===t.call(r||this,o,e[o]))break;return e},a.exports.merge=function(e,t){if(t)for(var r in t)s.call(t,r)&&(e[r]=t[r]);return e},a.exports.deepMerge=function(e,t){var r,i,n;for(r in e=a.exports.copy(e),t)s.call(t,r)&&(i=e[r],n=t[r],a.exports.isPlain(i)&&a.exports.isPlain(n)?e[r]=a.exports.deepMerge(i,n):e[r]=t[r]);return e},a.exports.copy=function(e){return a.exports.merge({},e)},a.exports.isPlain=function(e){return!!e&&"object"==typeof e&&"[object Object]"===e.toString()&&e.constructor===Object},a.exports.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a.exports.unescape=function(e){return e.replace(/&([^;]+);/g,function(e,t){return{amp:"&",lt:"<",gt:">",quot:'"',"#x27":"'","#x60":"`"}[t.toLowerCase()]||e})}},{}],36:[function(e,t,r){var n,o=e("./object");(n=function(){}).extend=function(e){var t,r,i=(e=e||{}).init||e.init||this.prototype.init||this.prototype.init||function(){};for(r in(((t=function(){i.apply(this,arguments)}).prototype=o.create(this.prototype)).constructor=t).extend=n.extend,t.create=n.create,e)e.hasOwnProperty(r)&&(t.prototype[r]=e[r]);return t},n.create=function(){var e=o.create(this.prototype);return this.apply(e,arguments),e},t.exports=n},{"./object":35}],37:[function(e,f,t){var _=e("./object"),r=e("../config"),i=e("./dom"),n=e("./cookie"),o=e("./constants"),a=e("../lang/index"),l=e("./ua"),s=e("./io"),y=e("../player/base/plugin/defaultemptycomponent"),c=e("./hardware-decoding-detector"),g={preload:!0,autoplay:!0,autoplayPolicy:{fallbackToMute:!1,showUnmuteBtn:!0},useNativeControls:!1,width:"100%",height:"300px",cover:"",from:"",trackLog:!0,logBatched:!0,logReportTo:void 0,heartHeatInterval:30,isLive:!1,playsinline:!0,showBarTime:5e3,rePlay:!1,mute:!1,liveRetry:5,liveRetryInterval:1,liveRetryStep:0,disableVodHalfRetry:!1,disableLiveHalfRetry:!1,keyShortCuts:!1,keyFastForwardStep:10,isVBR:!1,vodRetry:3,format:"",definition:"",defaultDefinition:"",loadDataTimeout:20,waitingTimeout:60,waitingBufferedTime:3,delayLoadingShow:1,controlBarForOver:!1,controlBarVisibility:"hover",enableSystemMenu:!1,qualitySort:"asc",x5_video_position:"normal",x5_type:"",x5_fullscreen:!1,x5_orientation:"landscape|portrait",x5LandscapeAsFullScreen:!0,license:{},autoPlayDelay:0,autoPlayDelayDisplayText:"",useHlsPluginForSafari:!1,enableMSEForAndroid:!0,encryptType:0,language:"zh-cn",languageTexts:{},extLanguageTexts:{},mediaType:"video",outputType:"",playConfig:{},reAuthInfo:{},components:[],liveTimeShiftUrl:"",liveShiftSource:"",liveShiftTime:"",liveShiftMinOffset:30,videoHeight:"100%",videoWidth:"100%",enableWorker:!0,authTimeout:"",enableMockFullscreen:!1,region:"cn-shanghai",debug:!1,progressMarkers:[],ratio:void 0,snapshotWatermark:{left:"500",top:"100",text:"",font:"16px \u5b8b\u4f53",fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},liveStartTime:"",liveOverTime:"",enableStashBufferForFlv:!1,flvOption:{},hlsOption:{stopLoadAsPaused:!1},hlsLoadingTimeOut:2e4,useHlsPlugOnMobile:!0,useFlvPlugOnMobile:!0,lowLatencyMode:!1,useHls2:!0,skipRtsSupportCheck:!1,rtsLoadDataTimeout:6e3,rtsOption:{},rtsFallback:!0,rtsFallbackSource:void 0,rtsFallbackType:void 0,rtsVersion:"",rtsSdkUrl:"",nudgeMaxRetry:5,tracks:[],recreatePlayer:function(){},diagnosisButtonVisible:!0,enableH265:!1,forceH265:!1,enableH266:!1,forceH266:!1,h265Threads:!0,h265Simd:!0,preventRecord:!1,traceId:"",mediaAuth:void 0,textTracks:void 0,_native:!0,hlsUriToken:"",thumbnailUrl:"",refreshAccessInfo:function(){},drmSessionTimeout:5e3,skinRes:"//"+r.domain+"/de/prismplayer-flash/"+r.flashVersion+"/atlas/defaultSkin",splayerUrl:null,splayerWasmDomain:null,logo:[],disablePip:!1,assetPrefix:null,clickPause:l.IS_PC,clickPauseDelay:200,statisticsReportInterval:5e3,skinLayoutIgnore:[],disableSeek:!1,dashjsUrl:null,dashOption:{},disableDumpBuffer:!1,useSW:!1,swScriptURL:void 0,env:"",autoSize:"",watchStartTime:void 0,watchEndTime:void 0,start:void 0,end:void 0,dbClickFullscreen:l.IS_PC,enableHlsH265:!1},u=(f.exports.getDefaultH5Layout=function(){return[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"unmuteButton",align:"cc"},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:50},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}]},f.exports.getDefaultAudioLayout=function(){return[{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"volume",align:"tr",x:5,y:10}]}]},f.exports.getDefaultFlashLayout=function(){return[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"tlabs",x:0,y:0},{name:"playButton",align:"tl",x:15,y:26},{name:"nextButton",align:"tl",x:10,y:26},{name:"timeDisplay",align:"tl",x:10,y:24},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"streamButton",align:"tr",x:10,y:23},{name:"volume",align:"tr",x:10,y:25}]},{name:"fullControlBar",align:"tlabs",x:0,y:0,children:[{name:"fullTitle",align:"tl",x:25,y:6},{name:"fullNormalScreenButton",align:"tr",x:24,y:13},{name:"fullTimeDisplay",align:"tr",x:10,y:12},{name:"fullZoom",align:"cc"}]}]},f.exports.canPlayType=function(e){var t=document.createElement("video");return t.canPlayType?t.canPlayType(e):""},f.exports.canPlayHls=function(){return""!=f.exports.canPlayType("application/x-mpegURL")},f.exports.isUsedHlsPluginOnMobile=function(e){return!!(l.IS_MOBILE&&(l.IS_CHROME||l.IS_FIREFOX||l.IS_X5||l.IS_EDGE_NEW)&&f.exports.isSupportHls())},f.exports.isSafariUsedHlsPlugin=function(e){return!!(l.os.pc&&l.browser.safari&&e)},f.exports.validateSource=function(e){return!0},f.exports.supportH5Video=function(){return void 0!==document.createElement("video").canPlayType},f.exports.createWrapper=function(e){var t=e.id,t="string"==typeof t?(0===t.indexOf("#")&&(t=t.slice(1)),i.el(t)):t;if(t&&t.nodeName)return f.exports.adjustContainerLayout(t,e),t;throw new TypeError("\u6ca1\u6709\u4e3a\u64ad\u653e\u5668\u6307\u5b9a\u5bb9\u5668")},f.exports.adjustContainerLayout=function(e,t){t.width&&!e.style.width&&(e.style.width=t.width),t.height&&!e.style.height&&(e.style.height=t.height)},f.exports.isSupportHls=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,e=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),t=(l.IS_ANDROID&&l.is_X5&&(e=!0),!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove);return e&&t},f.exports.isSupportMMS=function(){return!!window.ManagedMediaSource},f.exports.isSupportFlv=function(){return f.exports.isSupportHls()},f.exports.isSupportMSE=function(){return f.exports.isSupportHls()||f.exports.isSupportMMS()},f.exports.isSupportedMediaSource=function(){return!!window.MediaSource&&!!MediaSource.isTypeSupported},f.exports.isSupportedDrm=function(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)&&f.exports.isSupportMSE()},f.exports.isAudio=function(t,e){if(e)return f.exports.isMp3Format(e);e=!1;try{e=t&&"mp3"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".mp3")}return e},f.exports.isLiveShift=function(e){return e.isLive&&e.liveStartTime&&e.liveOverTime},f.exports.isHls=function(t,e){if(e)return f.exports.isHlsFormat(e);e=!1;try{e=t&&"m3u8"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".m3u8")}return e},f.exports.isDash=function(t,e){if(e)return f.exports.isDashFormat(e);e=!1;try{e=t&&"mpd"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".mpd")}return e},f.exports.isFlv=function(t,e){if(e)return f.exports.isFlvFormat(e);e=!1;try{e=t&&"flv"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".flv")}return e},f.exports.isRTMP=function(e){return e&&-1<e.toLowerCase().indexOf("rtmp:")},f.exports.isRts=function(e){return e&&-1<e.toLowerCase().indexOf("artc:")},f.exports.isMp4=function(t,e){if(e)return f.exports.isMp4Format(e);e=!1;try{e=t&&"mp4"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&-1<t.toLowerCase().indexOf(".mp4")}return e},f.exports.isSupportedFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp3","mp4","mpd","hls","m3u8","flv"].indexOf(t)}catch(e){return!1}},f.exports.isMp3Format=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp3"].indexOf(t)}catch(e){return!1}},f.exports.isMp4Format=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp4"].indexOf(t)}catch(e){return!1}},f.exports.isFlvFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["flv"].indexOf(t)}catch(e){return!1}},f.exports.isHlsFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["hls","m3u8"].indexOf(t)}catch(e){return!1}},f.exports.isDashFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mpd"].indexOf(t)}catch(e){return!1}},f.exports.getFormat=function(e){var t={artc:"rts",m3u8:"hls"},e=null==(e=/\.(mp4)|\.(mp3)|\.(m3u8)|\.(flv)|(artc):/.exec(e))?void 0:e[0];return e=e&&e.replace(/\.|:|artc|m3u8/gi,function(e){return t[e]||""})},f.exports.checkSecuritSupport=function(){return f.exports.isSupportMSE()?l.IS_IOS&&(l.IS_UC||l.IS_QUARK||l.IS_BAIDU)?a.get("iOSVodEncriptionBlacklist"):"":"serviceWorker"in navigator?void 0:"http:"===location.protocol?a.get("Error_SW_Https_required"):a.get("UseChromeForVodEncription")+"(SW not found)"},f.exports.nativeSupportH265=function(){return l.IS_IOS||l.IS_MAC_SAFARI},f.exports.findSelectedStreamLevel=function(e,t){var r=t;if(r||(r=n.get(o.SelectedStreamLevel))){for(var i=0;i<e.length;i++)if(e[i].definition==r)return i}else n.set(o.SelectedStreamLevel,e[0].definition,365);return 0},f.exports.getHistoryDetectResult=function(e,t){if(e)return t="hls"===t,"hvc1"===e?t?n.get(o.HWDetectHvc1Hls):n.get(o.HWDetectHvc1):"hev1"===e?t?n.get(o.HWDetectHev1Hls):n.get(o.HWDetectHev1):void 0},f.exports.setHistoryDetectResult=function(e,t,r){var i="unknownCodec",t="hls"===t;"hvc1"===e?i=t?o.HWDetectHvc1Hls:o.HWDetectHvc1:"hev1"===e&&(i=t?o.HWDetectHev1Hls:o.HWDetectHev1),n.set(i,r)},f.exports.handleOption=function(e,t){f.exports.isRts(e.source)&&(e.isLive=!0);var r,i=_.merge(_.copy(g),e),n=(e.autoplayPolicy&&(i.autoplayPolicy=_.merge(g.autoplayPolicy,e.autoplayPolicy)),[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]),o=!1;if(e.useFlashPrism||f.exports.isRTMP(e.source)?(o=!0,n=[{name:"liveIco",align:"tlabs",x:15,y:25},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"volume",align:"tr",x:10,y:25}]):(r=f.exports.isLiveShift(i))?(n.push({name:"liveShiftProgress",align:"tlabs",x:0,y:0}),n.push({name:"playButton",align:"tl",x:15,y:12}),n.push({name:"liveDisplay",align:"tl",x:15,y:6})):n.push({name:"liveDisplay",align:"tlabs",x:15,y:6}),e.isLive)if(void 0===e.skinLayout)i.skinLayout=[{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"unmuteButton",align:"cc"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"H5Loading",align:"cc"},{name:"controlBar",align:"blabs",x:0,y:0,children:f.exports.isRts(e.source)?[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"volume",align:"tr",x:5,y:10},{name:"liveDisplay",align:"tlabs",x:15,y:6}]:n}];else if(0!=e.skinLayout){for(var a=e.skinLayout.length,s=[],l=-1,c=0;c<a;c++)if("controlBar"==i.skinLayout[c].name){for(var l=c,u=i.skinLayout[c].children.length,p=0;p<u;p++){var d,h=i.skinLayout[c].children[p].name;"liveDisplay"!=h&&"liveIco"!=h&&"fullScreenButton"!=h&&"volume"!=h&&"snapshot"!=h&&"setting"!=h&&"subtitle"!=h&&(!r||"progress"!=h&&"playButton"!=h&&"timeDisplay"!=h)||(d=i.skinLayout[c].children[p],"progress"==h?d.name="liveShiftProgress":"timeDisplay"==h?d.name="liveShiftTimeDisplay":o&&"liveDisplay"==h&&(d.name="liveIco"),s.push(d))}break}-1!=l&&(i.skinLayout[l].children=s)}return(void 0===e.components||!e.components||_.isArray(e.components)&&0==e.components.length)&&"false"!=e.components&&(i.components=[y]),i},f.exports.ignoreSkinLayouts=function(e,t){var n;if(null!=t&&t.length&&null!=e&&e.length)return n=e,t.forEach(function(t){var r,i,e;-1<t.indexOf(".")?(e=t.split("."),r=e[0],i=e[1],(e=n.find(function(e){return e.name===r}))&&(e.children=e.children.filter(function(e){return e.name!==i}))):n=n.filter(function(e){return e.name!==t})}),n},f.exports.getLiveHostByRegion=function(e){var t="live.aliyuncs.com";return e&&-1<["ap-southeast-1","eu-central-1"].indexOf(e)?"live."+e+".aliyuncs.com":t},f.exports.isVideoTag=function(e){return e&&"string"==typeof e.nodeName&&"video"===e.nodeName.toLowerCase()},f.exports.unqiueTextTracks=function(e){var t=[],t=(e=void 0===e?[]:e).reduce(function(e,t){var r;return e.some(function(e){return e.srclang===t.srclang})?e:((r=t).label=t.label||t.srclang,[].concat(e,[r]))},[]),r={};return t.forEach(function(e,t){r[e.label]?r[e.label].push(t):r[e.label]=[t]}),Object.keys(r).forEach(function(e){e=r[e]||[];1<e.length&&e.forEach(function(e){t[e].label=t[e].label+"("+t[e].srclang+")"})}),t},f.exports.isHvc1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("hvc1")},f.exports.isHev1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("hev1")},f.exports.isVvccCodec=function(e){return-1<(e=void 0===e?"":e).indexOf("vvcC")},f.exports.isVvc1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("vvc1")},f.exports.isH265Codec=function(e){return f.exports.isHvc1Codec(e=void 0===e?"":e)||f.exports.isHev1Codec(e)},f.exports.isH266Codec=function(e){return f.exports.isVvccCodec(e=void 0===e?"":e)||f.exports.isVvc1Codec(e)},f.exports.isH264Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("avc1")},f.exports.getVideoTrack=function(e){var t;return(e=void 0===e?[]:e).forEach(function(e){1===Number(e.type)&&(t=e)}),t},l.IS_ANDROID&&(l.dingTalk()||l.IS_UC||l.is_X5||l.IS_HUAWEI||l.IS_XIAOMI||l.IS_OPPO||l.IS_VIVO||l.IS_MEIZU||l.IS_SAMSUNG||l.IS_WEBVIEW)||l.os&&"windows"===l.os.name&&l.IS_UC);f.exports.shouldUseBasePlayer=function(e,t){var r,i,n,o=e.codecTag,e=e.url,a="supported",s="unsupported";return!o||(n=f.exports.isHvc1Codec(o),r=f.exports.isMp4(e),e=f.exports.isHls(e),r&&f.exports.nativeSupportH265()&&n)||r&&function(){if(!(!u&&(l.IS_CHROME||l.IS_EDGE_NEW)))return!1;var t=0;try{t=l.USER_AGENT.match(/Chrome\/(\d+)/i)[1]}catch(e){t=0}return!(parseInt(t)<104||!window.MediaSource||!window.MediaSource.isTypeSupported('video/mp4;codecs="hvc1.1.6.L120.90"'))}()?t(!0):u?(n=f.exports.getHistoryDetectResult(o,i=e?"hls":"mp4"))===a?t(!0):n===s?t(!1):void c({codecTags:[o],format:i,timeout:2e3}).then(function(e){e=e.isHev1Supported||e.isHvc1Supported;if(f.exports.setHistoryDetectResult(o,i,e?a:s),e)return t(!0);t(!1)}).catch(function(e){console.log("hevcDetector ERROR",e),t(!1)}):t(!1)},f.exports.parseHttpHeaders=function(e){if(e){var r={};try{e instanceof Response?e.headers.forEach(function(e,t){r[t]=e}):e.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(function(e){var e=e.split(": "),t=e.shift(),e=e.join(": ");r[t]=e})}catch(e){}return r}},f.exports.detectRegionBlock=function(e,i){s.get(e,function(){i(!1)},function(e,t,r){r=f.exports.parseHttpHeaders(r)["x-tengine-error"];403===t&&r&&-1<o.RegionBlockMessages.indexOf(r)?i(!0):i(!1)})},f.exports.drawSnapshotText=function(e,t){t=t.snapshotWatermark;t&&t.text&&(e.font=t.font,t.fillColor&&(e.fillStyle=t.fillColor,e.fillText(t.text,t.left,t.top)),t.strokeColor&&(e.strokeStyle=t.strokeColor,e.strokeText(t.text,t.left,t.top)),e.stroke())},f.exports.hasValue=function(e){return null!=e&&""!==e}},{"../config":7,"../lang/index":18,"../player/base/plugin/defaultemptycomponent":87,"./constants":22,"./cookie":23,"./dom":25,"./hardware-decoding-detector":29,"./io":33,"./object":35,"./ua":39}],38:[function(e,t,r){t.exports.set=function(t,r){try{window.localStorage&&localStorage.setItem(t,r)}catch(e){window[t+"_localStorage"]=r}},t.exports.get=function(t){try{if(window.localStorage)return localStorage.getItem(t)}catch(e){return window[t+"_localStorage"]}return""}},{}],39:[function(e,P,t){var r,i,n,o;if(P.exports.USER_AGENT=navigator.userAgent,P.exports.IS_IPHONE=/iPhone/i.test(P.exports.USER_AGENT),P.exports.IS_IPAD=/iPad/i.test(P.exports.USER_AGENT),P.exports.IS_IPOD=/iPod/i.test(P.exports.USER_AGENT),P.exports.IS_MAC=/mac/i.test(P.exports.USER_AGENT),P.exports.IS_EDGE=/Edge/i.test(P.exports.USER_AGENT),P.exports.IS_EDGE_NEW=/Edg/i.test(P.exports.USER_AGENT)&&!P.exports.IS_EDGE,P.exports.IS_IE11=/Trident\/7.0/i.test(P.exports.USER_AGENT),P.exports.IS_X5=/qqbrowser/i.test(P.exports.USER_AGENT.toLowerCase()),P.exports.IS_CHROME=/Chrome/i.test(P.exports.USER_AGENT)&&!P.exports.IS_EDGE&&!P.exports.IS_EDGE_NEW&&!P.exports.IS_X5,P.exports.IS_SAFARI=/Safari/i.test(P.exports.USER_AGENT)&&!P.exports.IS_CHROME&&!P.exports.IS_EDGE_NEW,P.exports.IS_FIREFOX=/Firefox/i.test(P.exports.USER_AGENT),P.exports.IS_UC=/ucweb|UCBrowser|UBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_QUARK=/Quark/i.test(P.exports.USER_AGENT),P.exports.IS_HUAWEI=/HuaweiBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_XIAOMI=/MiuiBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_OPPO=/HeyTapBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_VIVO=/VivoBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_MEIZU=/MZBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_SAMSUNG=/samsungbrowser/i.test(P.exports.USER_AGENT),P.exports.IS_BAIDU=/baiduboxapp/i.test(P.exports.USER_AGENT),document.all)try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");P.exports.HAS_FLASH=!!a}catch(e){P.exports.HAS_FLASH=!1}else navigator.plugins&&0<navigator.plugins.length?(a=navigator.plugins["Shockwave Flash"],P.exports.HAS_FLASH=!!a):P.exports.HAS_FLASH=!1;P.exports.IS_MAC_SAFARI=P.exports.IS_MAC&&P.exports.IS_SAFARI&&!P.exports.IS_CHROME&&!P.exports.HAS_FLASH,P.exports.IS_IOS=P.exports.IS_IPHONE||P.exports.IS_IPAD||P.exports.IS_IPOD,P.exports.IOS_VERSION=function(){var e=P.exports.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]}(),P.exports.IOS_FULL_VERSION=function(){var e=P.exports.USER_AGENT.match(/OS (\d+)_(\d+)_?/i);if(e&&e[1]&&e[2])return e[1]+"."+e[2]}(),P.exports.IS_HARMONY=/OpenHarmony/i.test(P.exports.USER_AGENT),P.exports.IS_ANDROID=/Android/i.test(P.exports.USER_AGENT)||P.exports.IS_HARMONY,P.exports.ANDROID_VERSION=(a=P.exports.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(i=a[1]&&parseFloat(a[1]),r=a[2]&&parseFloat(a[2]),i&&r?parseFloat(a[1]+"."+a[2]):i||null):null,P.exports.IS_OLD_ANDROID=P.exports.IS_ANDROID&&/webkit/i.test(P.exports.USER_AGENT)&&P.exports.ANDROID_VERSION<2.3,P.exports.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),P.exports.IS_MOBILE=P.exports.IS_IOS||P.exports.IS_ANDROID,P.exports.IS_H5=P.exports.IS_MOBILE||!P.exports.HAS_FLASH,P.exports.IS_PC=!P.exports.IS_MOBILE,P.exports.is_X5=/micromessenger/i.test(P.exports.USER_AGENT)||/qqbrowser/i.test(P.exports.USER_AGENT),P.exports.IS_ANDROID_FIREFOX=P.exports.IS_ANDROID&&P.exports.IS_FIREFOX,P.exports.CHROME_VERSION=P.exports.IS_CHROME&&P.exports.USER_AGENT.match(/Chrome\/(\d+)/i)[1],P.exports.getHost=function(e){var t,r,i="";return void 0===e||null==e||""==e?"":(t=e.indexOf("//"),r=e,i=r=-1<t?e.substring(t+2):r,(e=(i=(e=r.split("/"))&&0<e.length?e[0]:i).split(":"))&&0<e.length?e[0]:i)},P.exports.dingTalk=function(){var e=P.exports.USER_AGENT.toLowerCase();return/dingtalk/i.test(e)},P.exports.IS_DINGTALK=P.exports.dingTalk(),P.exports.wechat=function(){var e=P.exports.USER_AGENT.toLowerCase();return/micromessenger/i.test(e)},P.exports.inIFrame=function(){return self!=top},P.exports.getReferer=function(){var t=document.referrer;if(P.exports.inIFrame())try{t=top.document.referrer}catch(e){t=document.referrer}return t},P.exports.getHref=function(){location.href;if(P.exports.inIFrame())try{top.location.href}catch(e){location.href}return location.href},P.exports.check360=function(){return-1!=navigator.userAgent.indexOf("Safari")?function(){var e=navigator.userAgent.split(" ");if(-1!=e[e.length-1].indexOf("Safari"))for(var t in navigator.plugins)if("np-mswmp.dll"==navigator.plugins[t].filename)return!0;return!1}():(null==navigator.msPointerEnabled||navigator.msPointerEnabled)&&(1==navigator.msDoNotTrack||1==window.doNotTrack)&&(!!Number(window.screenX)&&window.screenLeft-window.screenX!=8||(-1!=navigator.userAgent.indexOf("MSIE 7.0")||-1!=navigator.userAgent.indexOf("MSIE 8.0"))&&null==console.count)},r=P.exports,function(e,t){var r=this.os={},i=this.browser={},n=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),o=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=!!e.match(/\(Macintosh\; Intel /),s=e.match(/(iPad).*OS\s([\d_]+)/),l=e.match(/(iPod)(.*OS\s([\d_]+))?/),c=!s&&e.match(/(iPhone\sOS)\s([\d_]+)/),u=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),t=/Win\d{2}|Windows/.test(t),p=e.match(/Windows Phone ([\d.]+)/),d=u&&e.match(/TouchPad/),h=e.match(/Kindle\/([\d.]+)/),f=e.match(/Silk\/([\d._]+)/),_=e.match(/(BlackBerry).*Version\/([\d.]+)/),y=e.match(/(BB10).*Version\/([\d.]+)/),g=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=e.match(/PlayBook/),m=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),S=e.match(/Firefox\/([\d.]+)/),T=e.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),b=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),E=!m&&e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),w=E||e.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(i.webkit=!!n)&&(i.version=n[1]),o&&(r.android=!0,r.version=o[2]),c&&!l&&(r.ios=r.iphone=!0,r.version=c[2].replace(/_/g,".")),s&&(r.ios=r.ipad=!0,r.version=s[2].replace(/_/g,".")),l&&(r.ios=r.ipod=!0,r.version=l[3]?l[3].replace(/_/g,"."):null),p&&(r.wp=!0,r.version=p[1]),u&&(r.webos=!0,r.version=u[2]),d&&(r.touchpad=!0),_&&(r.blackberry=!0,r.version=_[2]),y&&(r.bb10=!0,r.version=y[2]),g&&(r.rimtabletos=!0,r.version=g[2]),v&&(i.playbook=!0),h&&(r.kindle=!0,r.version=h[1]),f&&(i.silk=!0,i.version=f[1]),!f&&r.android&&e.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),S&&(i.firefox=!0,i.version=S[1]),T&&(r.firefoxos=!0,r.version=T[1]),b&&(i.ie=!0,i.version=b[1]),w&&(a||r.ios||t||o)&&(i.safari=!0,r.ios||r.android||(i.version=w[1])),r.ios&&(i.version=r.version),E&&(i.webview=!0),a&&((n=e.match(/[\d]*_[\d]*_[\d]*/))&&0<n.length&&n[0]&&(r.version=n[0].replace(/_/g,".")),/MQBHD/.test(e))&&(i.version=((e.match(/.*OS\s([\d_]+)/)||[])[1]||"").replace(/_/g,".")),r.tablet=!!(s||v||o&&!e.match(/Mobile/)||S&&e.match(/Tablet/)||b&&!e.match(/Phone/)&&e.match(/Touch/)),r.phone=!(r.tablet||r.ipod||!(o||c||u||_||y||m&&e.match(/Android/)||m&&e.match(/CriOS\/([\d.]+)/)||S&&e.match(/Mobile/)||b&&e.match(/Touch/))),r.pc=!r.tablet&&!r.phone,a?r.name="macOS":t?(r.name="windows",r.version=function(){var e=navigator.userAgent,t="";(-1<e.indexOf("Windows NT 5.0")||-1<e.indexOf("Windows 2000"))&&(t="2000");(-1<e.indexOf("Windows NT 5.1")||-1<e.indexOf("Windows XP"))&&(t="XP");(-1<e.indexOf("Windows NT 5.2")||-1<e.indexOf("Windows 2003"))&&(t="2003");(-1<e.indexOf("Windows NT 6.0")||-1<e.indexOf("Windows Vista"))&&(t="Vista");(-1<e.indexOf("Windows NT 6.1")||-1<e.indexOf("Windows 7"))&&(t="7");(-1<e.indexOf("Windows NT 6.2")||-1<e.indexOf("Windows 8"))&&(t="8");(-1<e.indexOf("Windows NT 6.3")||-1<e.indexOf("Windows 8.1"))&&(t="8.1");(-1<e.indexOf("Windows NT 10")||-1<e.indexOf("Windows 10"))&&(t="10");return t}()):r.name=function(){var e=navigator.userAgent,t="other",r=P.exports.os;if(r.ios)return"iOS";if(r.android)return"android";if(-1<e.indexOf("Baiduspider"))return"Baiduspider";if(-1<e.indexOf("PlayStation"))return"PS4";r="Win32"==navigator.platform||"Windows"==navigator.platform||-1<e.indexOf("Windows"),e="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;e&&(t="macOS");"X11"!=navigator.platform||r||e||(t="Unix");-1<String(navigator.platform).indexOf("Linux")&&(t="Linux");if(r)return"windows";return t}(),i.name=(l=navigator.userAgent.toLowerCase(),(p=P.exports.browser).firefox?"Firefox":p.ie?/edge/.test(l)?"Edge":"IE":P.exports.IS_EDGE_NEW?"EdgeChromium":/micromessenger/.test(l)?"\u5fae\u4fe1\u5185\u7f6e\u6d4f\u89c8\u5668":/qqbrowser/.test(l)?"QQ\u6d4f\u89c8\u5668":P.exports.IS_UC?"UC":P.exports.IS_QUARK?"Quark":P.exports.IS_DINGTALK?"Dingtalk":P.exports.IS_HUAWEI?"HuaweiBrowser":P.exports.IS_XIAOMI?"MiBrowser":P.exports.IS_OPPO?"OppoBrowser":P.exports.IS_VIVO?"VivoBrowser":P.exports.IS_MEIZU?"MeizuBrowser":P.exports.IS_SAMSUNG?"SamsungBrowser":P.exports.IS_WEBVIEW||/MQBHD/.test(l)?"webview":p.chrome?"Chrome":p.safari?"Safari":/baiduspider/.test(l)?"Baiduspider":/opera/.test(l)?"Opera":/360se/.test(l)?"360\u6d4f\u89c8\u5668":/bidubrowser/.test(l)?"\u767e\u5ea6\u6d4f\u89c8\u5668":/metasr/.test(l)?"\u641c\u72d7\u6d4f\u89c8\u5668":/lbbrowser/.test(l)?"\u730e\u8c79\u6d4f\u89c8\u5668":/playstation/.test(l)?"PS4\u6d4f\u89c8\u5668":void 0)}.call(r,navigator.userAgent,navigator.platform),P.exports.IS_WEBVIEW=(i=P.exports.USER_AGENT,n=new RegExp("("+["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(Version).*(wv|.0.0.0)","Linux; U; Android"].join("|")+")","ig"),o=new RegExp("("+["VivoBrowser","MZBrowser","MiuiBrowser"].join("|")+")","ig"),!!i.match(n)&&!i.match(o))},{}],40:[function(e,t,r){var s=e("./dom");t.exports.getAbsoluteURL=function(e){return e=e.match(/^https?:\/\//)?e:s.createEl("div",{innerHTML:'<a href="'+e+'">x</a>'}).firstChild.href},t.exports.parseUrl=function(e){var t,r=["protocol","hostname","port","pathname","search","hash","host"],i=s.createEl("a",{href:e}),n=""===i.host&&"file:"!==i.protocol;n&&((t=s.createEl("div")).innerHTML='<a href="'+e+'"></a>',i=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t));for(var o={},a=0;a<r.length;a++)o[r[a]]=i[r[a]];return o.segments=i.pathname.replace(/^\//,"").split("/"),n&&document.body.removeChild(t),o}},{"./dom":25}],41:[function(e,r,t){var i=e("./dom"),n=e("./ua"),o=e("./playerutil");r.exports.formatTime=function(e){e=Math.max(0,e||0);var t,e=Math.floor(e),r=Math.floor(e/3600);return e%=3600,t=Math.floor(e/60),e=e%60,!(r===1/0||isNaN(r)||t===1/0||isNaN(t)||e==1/0||isNaN(e))&&("00"===(r=10<=r?r:"0"+r)?"":r+":")+(10<=t?t:"0"+t)+":"+(10<=e?e:"0"+e)},r.exports.extractTime=function(e){var t;return e?("00"===(t=10<=(t=parseInt(e.getHours()))?t:"0"+t)?"":t+":")+(t=10<=(t=parseInt(e.getMinutes()))?t:"0"+t)+":"+(t=10<=(t=parseInt(e.getSeconds()))?t:"0"+t):""},r.exports.convertToTimestamp=function(e,t){var r="";return e&&(t?r=e.gettime():(r=Date.parse(e),r/=1e3)),r},r.exports.convertToDate=function(e,t){var r="";return e&&(r=new Date).setTime(1e3*e),r},r.exports.parseTime=function(e){var t,r,i;return e?(i=r=t=0,3===(e=e.split(":")).length?(t=e[0],r=e[1],i=e[2]):2===e.length?(r=e[0],i=e[1]):1===e.length&&(i=e[0]),3600*(t=parseInt(t,10))+60*(r=parseInt(r,10))+(i=Math.ceil(parseFloat(i)))):"00:00:00"},r.exports.formatDate=function(e,t){var r,i={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[r]:("00"+i[r]).substr((""+i[r]).length)));return t},r.exports.sleep=function(e){for(var t=Date.now();Date.now()-t<=e;);},r.exports.htmlEncodeAll=function(e){return null==e?"":e.replace(/\</g,"<").replace(/\>/g,">").replace(/\&/g,"&").replace(/"/g,""").replace(/'/g,"'")},r.exports.toBinary=function(e){if(!window.atob)return"";for(var t=atob(e),r=t.length,i=new Uint8Array(r),n=0;n<r;n++)i[n]=t.charCodeAt(n);return i},r.exports.readyBinary=function(e){for(var t=new Uint8Array(e),r=t.length,i="",n=0;n<r;n++)i+=t[n];return i},r.exports.delayHide=function(e,t){e&&(void 0===t&&(t=1e3),e.delayHanlder&&clearTimeout(e.delayHanlder),e.delayHanlder=setTimeout(function(){i.css(e,"display","none")},t))},r.exports.openInFile=function(){return-1!=window.location.protocol.toLowerCase().indexOf("file")},r.exports.contentProtocolMixed=function(e,t,r){return!!((n.os.pc&&(o.isHls(e,r)&&!n.browser.safari||o.isFlv(e,r))||t)&&"https:"==window.location.protocol.toLowerCase()&&e&&-1<e.toLowerCase().indexOf("http://"))},r.exports.queryString=function(e){var t,r,i;return 2===(e=(e=decodeURIComponent(e)).split("?")).length&&(e=e[1],t=e.split("&"))?(r={},i=0,$(t).each(function(){var e=t[i].split("=");2===e.length&&(r[e[0]]=e[1].replace(/\+/g," ")),i++}),r):{}},r.exports.log=function(e){var t=window.location.href,t=r.exports.queryString(t);t&&1==t.debug&&console.log(e)},r.exports.arrayBufferToB64=function(e){for(var t="",r=new Uint8Array(e),i=r.byteLength,n=0;n<i;n++)t+=String.fromCharCode(r[n]);return window.btoa(t)},r.exports.b64ToArrayBuffer=function(e){for(var t=atob(e),r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r.buffer},r.exports.throttle=function(a,s){var l=null,c=0;return function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=Date.now(),o=s-(n-c);o<=0?(a.apply(this,r),c=n):(clearTimeout(l),l=setTimeout(function(){a.apply(e,r),c=Date.now()},o))}}},{"./dom":25,"./playerutil":37,"./ua":39}],42:[function(e,t,r){var i,$o="undefined"==typeof Promise?e("es6-promise").Promise:Promise;e=this,i=function(){return r={307:function(e,t,r){e=r.nmd(e);var i="__lodash_hash_undefined__",C=1,F=2,P=9007199254740991,k="[object Arguments]",L="[object Array]",x="[object AsyncFunction]",H="[object Boolean]",B="[object Date]",V="[object Error]",j="[object Function]",W="[object GeneratorFunction]",A="[object Map]",q="[object Number]",R="[object Object]",G="[object Promise]",z="[object Proxy]",X="[object RegExp]",D="[object Set]",K="[object String]",n="[object WeakMap]",Y="[object ArrayBuffer]",I="[object DataView]",Q=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,o={},r=(o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o[k]=o[L]=o[Y]=o[H]=o[I]=o[B]=o[V]=o[j]=o[A]=o[q]=o[R]=o[X]=o[D]=o[K]=o[n]=!1,"object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g),a="object"==typeof self&&self&&self.Object===Object&&self,a=r||a||Function("return this")(),t=t&&!t.nodeType&&t,s=t&&e&&!e.nodeType&&e,s=s&&s.exports===t,l=s&&r.process,t=function(){try{return l&&l.binding&&l.binding("util")}catch(e){}}(),r=t&&t.isTypedArray;function J(e){var r=-1,i=Array(e.size);return e.forEach(function(e,t){i[++r]=[t,e]}),i}function Z(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var ee,te,t=Array.prototype,c=Function.prototype,u=Object.prototype,p=a["__core-js_shared__"],re=c.toString,O=u.hasOwnProperty,ie=(c=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",ne=u.toString,oe=RegExp("^"+re.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p=s?a.Buffer:void 0,c=a.Symbol,ae=a.Uint8Array,se=u.propertyIsEnumerable,le=t.splice,d=c?c.toStringTag:void 0,ce=Object.getOwnPropertySymbols,s=p?p.isBuffer:void 0,t=(ee=Object.keys,te=Object,b(a,"DataView")),h=b(a,"Map"),p=b(a,"Promise"),ue=b(a,"Set"),a=b(a,"WeakMap"),f=b(Object,"create"),pe=E(t),de=E(h),he=E(p),fe=E(ue),_e=E(a),c=c?c.prototype:void 0,ye=c?c.valueOf:void 0;function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function g(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function v(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new g;++t<r;)this.add(e[t])}function N(e){e=this.__data__=new y(e);this.size=e.size}function ge(e,t){var r,i,n,o=U(e),a=!o&&Pe(e),s=!o&&!a&&xe(e),l=!o&&!a&&!s&&Re(e),c=o||a||s||l,u=c?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],p=u.length;for(r in e)!t&&!O.call(e,r)||c&&("length"==r||s&&("offset"==r||"parent"==r)||l&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||(i=r,(n=null==(n=p)?P:n)&&("number"==typeof i||$.test(i))&&-1<i&&i%1==0&&i<n))||u.push(r);return u}function m(e,t){for(var r=e.length;r--;)if(we(e[r][0],t))return r;return-1}function S(e){{if(null==e)return void 0===e?"[object Undefined]":"[object Null]";if(d&&d in Object(e)){var t=e,r=O.call(t,d),i=t[d];try{var n=!(t[d]=void 0)}catch(t){}var o=ne.call(t);return n&&(r?t[d]=i:delete t[d]),o}return ne.call(e)}}function ve(e){return w(e)&&S(e)==k}function me(e,t,r,i,n){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:function(e,t,r,i,n,o){var a=U(e),s=U(t),l=a?L:M(e),s=s?L:M(t),c=(l=l==k?R:l)==R,u=(s=s==k?R:s)==R,s=l==s;if(s&&xe(e)){if(!xe(t))return!1;c=!(a=!0)}if(s&&!c)return o=o||new N,(a||Re(e)?Te:function(e,t,r,i,n,o){switch(l){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Y:return!(e.byteLength!=t.byteLength||!n(new ae(e),new ae(t)));case H:case B:case q:return we(+e,+t);case V:return e.name==t.name&&e.message==t.message;case X:case K:return e==t+"";case A:var a=J;case D:a=a||Z;if(e.size!=t.size&&!(r&C))return!1;var s=o.get(e);if(s)return s==t;r|=F,o.set(e,t);s=Te(a(e),a(t),r,i,n,o);return o.delete(e),s;case"[object Symbol]":if(ye)return ye.call(e)==ye.call(t)}return!1})(e,t,r,i,n,o);if(!(r&C)){a=c&&O.call(e,"__wrapped__"),c=u&&O.call(t,"__wrapped__");if(a||c)return n(a?e.value():e,c?t.value():t,r,i,o=o||new N)}if(s){o=o||new N;var p=e,d=t,h=r,f=i,_=n,y=o,g=h&C,v=be(p),m=v.length;if(m!=be(d).length&&!g)return!1;for(var S=m;S--;){var T=v[S];if(!(g?T in d:O.call(d,T)))return!1}u=y.get(p);if(u&&y.get(d))return u==d;for(var b=!0,E=(y.set(p,d),y.set(d,p),g);++S<m;){var w,P=p[T=v[S]],x=d[T];if(!(void 0===(w=f?g?f(x,P,T,d,p,y):f(P,x,T,p,d,y):w)?P===x||_(P,x,h,f,y):w)){b=!1;break}E=E||"constructor"==T}return b&&!E&&(u=p.constructor)!=(a=d.constructor)&&"constructor"in p&&"constructor"in d&&!("function"==typeof u&&u instanceof u&&"function"==typeof a&&a instanceof a)&&(b=!1),y.delete(p),y.delete(d),b}return!1}(e,t,r,i,me,n))}function Se(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||u))return ee(te(e));var t,r,i=[];for(r in Object(e))O.call(e,r)&&"constructor"!=r&&i.push(r);return i}function Te(e,t,r,i,n,o){var a=r&C,s=e.length,l=t.length;if(s!=l&&!(a&&s<l))return!1;l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,u=!0,p=r&F?new v:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var d,h=e[c],f=t[c];if(void 0!==(d=i?a?i(f,h,c,t,e,o):i(h,f,c,e,t,o):d)){if(d)continue;u=!1;break}if(p){if(!function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return 1}(t,function(e,t){return!p.has(t)&&(h===e||n(h,e,r,i,o))&&p.push(t)})){u=!1;break}}else if(h!==f&&!n(h,f,r,i,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function be(e){var t=Ee,r=De(e);if(U(e))return r;for(var i=r,n=t(e),o=-1,a=n.length,s=i.length;++o<a;)i[s+o]=n[o];return i}function T(e,t){var r,e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function b(e,t){e=null==e?void 0:e[t];return!Le(t=e)||ie&&ie in t||!(Ce(t)?oe:Q).test(E(t))?void 0:e}_.prototype.clear=function(){this.__data__=f?f(null):{},this.size=0},_.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},_.prototype.get=function(e){var t,r=this.__data__;return f?(t=r[e])===i?void 0:t:O.call(r,e)?r[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return f?void 0!==t[e]:O.call(t,e)},_.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=f&&void 0===t?i:t,this},y.prototype.clear=function(){this.__data__=[],this.size=0},y.prototype.delete=function(e){var t=this.__data__,e=m(t,e);return!(e<0||(e==t.length-1?t.pop():le.call(t,e,1),--this.size,0))},y.prototype.get=function(e){var t=this.__data__,e=m(t,e);return e<0?void 0:t[e][1]},y.prototype.has=function(e){return-1<m(this.__data__,e)},y.prototype.set=function(e,t){var r=this.__data__,i=m(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},g.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(h||y),string:new _}},g.prototype.delete=function(e){e=T(this,e).delete(e);return this.size-=e?1:0,e},g.prototype.get=function(e){return T(this,e).get(e)},g.prototype.has=function(e){return T(this,e).has(e)},g.prototype.set=function(e,t){var r=T(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},v.prototype.add=v.prototype.push=function(e){return this.__data__.set(e,i),this},v.prototype.has=function(e){return this.__data__.has(e)},N.prototype.clear=function(){this.__data__=new y,this.size=0},N.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},N.prototype.get=function(e){return this.__data__.get(e)},N.prototype.has=function(e){return this.__data__.has(e)},N.prototype.set=function(e,t){var r=this.__data__;if(r instanceof y){var i=r.__data__;if(!h||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new g(i)}return r.set(e,t),this.size=r.size,this};var Ee=ce?function(e){if(null==e)return[];e=Object(e);for(var t=ce(e),r=-1,i=null==t?0:t.length,n=0,o=[];++r<i;){var a=t[r];se.call(e,a)&&(o[n++]=a)}return o}:function(){return[]},M=S;function E(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function we(e,t){return e===t||e!=e&&t!=t}(t&&M(new t(new ArrayBuffer(1)))!=I||h&&M(new h)!=A||p&&M(p.resolve())!=G||ue&&M(new ue)!=D||a&&M(new a)!=n)&&(M=function(e){var t=S(e),e=t==R?e.constructor:void 0,e=e?E(e):"";if(e)switch(e){case pe:return I;case de:return A;case he:return G;case fe:return D;case _e:return n}return t});var Pe=ve(function(){return arguments}())?ve:function(e){return w(e)&&O.call(e,"callee")&&!se.call(e,"callee")},U=Array.isArray,xe=s||function(){return!1};function Ce(e){if(Le(e))return(e=S(e))==j||e==W||e==x||e==z}function ke(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=P}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function w(e){return null!=e&&"object"==typeof e}var Ae,Re=r?(Ae=r,function(e){return Ae(e)}):function(e){return w(e)&&ke(e.length)&&!!o[S(e)]};function De(e){return(null!=e&&ke(e.length)&&!Ce(e)?ge:Se)(e)}e.exports=function(e,t){return me(e,t)}},801:function(e){e.exports=function(e){return void 0===e}},378:function(e,t,r){e=r.nmd(e);var M,U,F="__lodash_hash_undefined__",H=9007199254740991,B="[object Arguments]",V="[object AsyncFunction]",j="[object Function]",W="[object GeneratorFunction]",q="[object Null]",G="[object Object]",z="[object Proxy]",X="[object Undefined]",K=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,i={},r=(i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i[B]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i[j]=i["[object Map]"]=i["[object Number]"]=i[G]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,"object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g),n="object"==typeof self&&self&&self.Object===Object&&self,n=r||n||Function("return this")(),t=t&&!t.nodeType&&t,o=t&&e&&!e.nodeType&&e,t=o&&o.exports===t,a=t&&r.process,r=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}(),r=r&&r.isTypedArray,Q=Array.prototype,s=Function.prototype,l=Object.prototype,c=n["__core-js_shared__"],S=s.toString,T=l.hasOwnProperty,$=(s=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",J=l.toString,Z=S.call(Object),ee=RegExp("^"+S.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),c=t?n.Buffer:void 0,s=n.Symbol,te=n.Uint8Array,re=(c&&c.allocUnsafe,M=Object.getPrototypeOf,U=Object,function(e){return M(U(e))}),ie=Object.create,ne=l.propertyIsEnumerable,oe=Q.splice,u=s?s.toStringTag:void 0,p=function(){try{var e=m(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),t=c?c.isBuffer:void 0,ae=Math.max,se=Date.now,le=m(n,"Map"),d=m(Object,"create"),ce=function(e){if(!I(e))return{};if(ie)return ie(e);h.prototype=e;e=new h;return h.prototype=void 0,e};function h(){}function f(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function b(e){e=this.__data__=new _(e);this.size=e.size}function ue(e,t,r){(void 0===r||k(e[t],r))&&(void 0!==r||t in e)||E(e,t,r)}function g(e,t){for(var r=e.length;r--;)if(k(e[r][0],t))return r;return-1}function E(e,t,r){"__proto__"==t&&p?p(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}f.prototype.clear=function(){this.__data__=d?d(null):{},this.size=0},f.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},f.prototype.get=function(e){var t,r=this.__data__;return d?(t=r[e])===F?void 0:t:T.call(r,e)?r[e]:void 0},f.prototype.has=function(e){var t=this.__data__;return d?void 0!==t[e]:T.call(t,e)},f.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=d&&void 0===t?F:t,this},_.prototype.clear=function(){this.__data__=[],this.size=0},_.prototype.delete=function(e){var t=this.__data__,e=g(t,e);return!(e<0||(e==t.length-1?t.pop():oe.call(t,e,1),--this.size,0))},_.prototype.get=function(e){var t=this.__data__,e=g(t,e);return e<0?void 0:t[e][1]},_.prototype.has=function(e){return-1<g(this.__data__,e)},_.prototype.set=function(e,t){var r=this.__data__,i=g(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},y.prototype.clear=function(){this.size=0,this.__data__={hash:new f,map:new(le||_),string:new f}},y.prototype.delete=function(e){e=v(this,e).delete(e);return this.size-=e?1:0,e},y.prototype.get=function(e){return v(this,e).get(e)},y.prototype.has=function(e){return v(this,e).has(e)},y.prototype.set=function(e,t){var r=v(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},b.prototype.clear=function(){this.__data__=new _,this.size=0},b.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},b.prototype.get=function(e){return this.__data__.get(e)},b.prototype.has=function(e){return this.__data__.has(e)},b.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _){var i=r.__data__;if(!le||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new y(i)}return r.set(e,t),this.size=r.size,this};var pe=function(e,t,r){for(var i=-1,n=Object(e),o=r(e),a=o.length;a--;){var s=o[++i];if(!1===t(n[s],s,n))break}return e};function w(e){{if(null==e)return void 0===e?X:q;if(u&&u in Object(e)){var t=e,r=T.call(t,u),i=t[u];try{var n=!(t[u]=void 0)}catch(t){}var o=J.call(t);return n&&(r?t[u]=i:delete t[u]),o}return J.call(e)}}function de(e){return O(e)&&w(e)==B}function he(_,y,g,v,m){_!==y&&pe(y,function(e,t){var r,i,n,o,a,s,l,c,u,p,d,h,f;m=m||new b,I(e)?(i=y,o=g,a=he,s=v,l=m,d=P(r=_,n=t),h=P(i,n),(f=l.get(h))||((i=void 0===(f=s?s(d,h,n+"",r,i,l):void 0))&&(c=!(p=A(h))&&ge(h),u=!p&&!c&&Se(h),f=h,p||c||u?f=A(d)?d:O(p=d)&&R(p)?function(e,t){var r=-1,i=e.length;for(t=t||Array(i);++r<i;)t[r]=e[r];return t}(d):c?(i=!1,h.slice()):u?(i=!1,u=new(c=(p=h).buffer).constructor(c.byteLength),new te(u).set(new te(c)),new p.constructor(u,p.byteOffset,p.length)):[]:function(e){if(O(e)&&w(e)==G)return null===(e=re(e))||"function"==typeof(e=T.call(e,"constructor")&&e.constructor)&&e instanceof e&&S.call(e)==Z}(h)||L(h)?L(f=d)?f=function(){for(var e,t,r=d,i=Te(d),n=void 0,o=!n,a=(n=n||{},-1),s=i.length;++a<s;){var l=i[a],c=void 0;void 0===c&&(c=r[l]),o?E(n,l,c):(c=c,t=void 0,t=(e=n)[l=l],T.call(e,l)&&k(t,c)&&(void 0!==c||l in e)||E(e,l,c))}return n}():I(d)&&!D(d)||(f="function"!=typeof h.constructor||_e(h)?{}:ce(re(h))):i=!1),i&&(l.set(h,f),a(f,h,o,s,l),l.delete(h))),ue(r,n,f)):(c=v?v(P(_,t),e,t+"",_,y,m):void 0,ue(_,t,c=void 0===c?e:c))},Te)}function v(e,t){var r,e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function m(e,t){e=null==e?void 0:e[t];return!I(t=e)||$&&$ in t||!(D(t)?ee:K).test(function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(t))?void 0:e}function fe(e,t){var r=typeof e;return(t=null==t?H:t)&&("number"==r||"symbol"!=r&&Y.test(e))&&-1<e&&e%1==0&&e<t}function _e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||l)}function P(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}ye=p?function(e,t){return p(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:xe,C=x=0;var ye,x,C,Q=function(){var e=se(),t=16-(e-C);if(C=e,0<t){if(800<=++x)return arguments[0]}else x=0;return ye.apply(void 0,arguments)};function k(e,t){return e===t||e!=e&&t!=t}var L=de(function(){return arguments}())?de:function(e){return O(e)&&T.call(e,"callee")&&!ne.call(e,"callee")},A=Array.isArray;function R(e){return null!=e&&ve(e.length)&&!D(e)}var ge=t||function(){return!1};function D(e){if(I(e))return(e=w(e))==j||e==W||e==V||e==z}function ve(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=H}function I(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){return null!=e&&"object"==typeof e}var me,Se=r?(me=r,function(e){return me(e)}):function(e){return O(e)&&ve(e.length)&&!!i[w(e)]};function Te(e){if(R(e)){var t,r=e,i=!0,n=A(r),o=!n&&L(r),a=!n&&!o&&ge(r),s=!n&&!o&&!a&&Se(r),l=n||o||a||s,c=l?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(r.length,String):[],u=c.length;for(t in r)!i&&!T.call(r,t)||l&&("length"==t||a&&("offset"==t||"parent"==t)||s&&("buffer"==t||"byteLength"==t||"byteOffset"==t)||fe(t,u))||c.push(t);return c}var p=e;if(I(p)){var d,h=_e(p),f=[];for(d in p)("constructor"!=d||!h&&T.call(p,d))&&f.push(d);return f}var _=[];if(null!=p)for(var y in Object(p))_.push(y);return _}be=function(e,t,r){he(e,t,r)};var be,Ee,we,N,Pe,c=Q((we=s=function(e,t){var r=-1,i=t.length,n=1<i?t[i-1]:void 0,o=2<i?t[2]:void 0,n=3<be.length&&"function"==typeof n?(i--,n):void 0;for(o&&function(e,t,r){var i;if(I(r))return("number"==(i=typeof t)?R(r)&&fe(t,r.length):"string"==i&&t in r)&&k(r[t],e)}(t[0],t[1],o)&&(n=i<3?void 0:n,i=1),e=Object(e);++r<i;){var a=t[r];a&&be(e,a,r)}return e},Pe=xe,N=ae(void 0===Ee?we.length-1:Ee,0),function(){for(var e=arguments,t=-1,r=ae(e.length-N,0),i=Array(r);++t<r;)i[t]=e[N+t];for(var t=-1,n=Array(N+1);++t<N;)n[t]=e[t];n[N]=Pe(i);var o=we,a=this,s=n;switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}),s+"");function xe(e){return e}e.exports=c},775:function(e){var n=Object.prototype.hasOwnProperty;function o(e){return"[Throws: "+(e?e.message:"?")+"]"}function i(e){var t=[];return function r(i){if(null===i||"object"!=typeof i)return i;if(-1!==t.indexOf(i))return"[Circular]";if(t.push(i),"function"==typeof i.toJSON)try{var e=r(i.toJSON());return t.pop(),e}catch(r){return o(r)}return e=Array.isArray(i)?i.map(r):Object.keys(i).reduce(function(e,t){return e[t]=r(function(e,t){if(n.call(e,t))try{}catch(e){return o(e)}return e[t]}(i,t)),e},{}),t.pop(),e}(e)}e.exports=function(e,t,r){return JSON.stringify(i(e),t,r)},e.exports.ensureProperties=i}},i={},Yo.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Yo.d(t,{a:t}),t},Yo.d=function(e,t){for(var r in t)Yo.o(t,r)&&!Yo.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Yo.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),Yo.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Yo.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},Yo.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},Qo={},function(){"use strict";Yo.r(Qo),Yo.d(Qo,{AACParser:function(){return x},AudioBody:function(){return mt},AvMultitrackType:function(){return Ct},AvcSPS:function(){return Se},BasicLoader:function(){return Je},BitBuffer:function(){return m},Box:function(){return v},ByteBuffer:function(){return A},CTrackTypeMap:function(){return Ae},Demuxer:function(){return No},DiscardType:function(){return se},EAudioCodecID:function(){return dt},EAudioPacketType:function(){return yt},EFormatType:function(){return g},EFrameType:function(){return wt},EH264NALType:function(){return K},EH265NALType:function(){return D},EH266NALType:function(){return I},EHandlerType:function(){return ce},ELoaderStatus:function(){return d},EPID:function(){return ao},ESampleFlag:function(){return E},ESoundType:function(){return _t},EStreamType:function(){return un},ETSPacketType:function(){return uo},ETagType:function(){return Qe},ETrackType:function(){return M},EVideoCodecID:function(){return F},EVideoCommand:function(){return Pt},EVideoPacketType:function(){return xt},ErrorCode:function(){return le},FLVParser:function(){return It},FullBox:function(){return a},H264NAL:function(){return Q},H265NAL:function(){return O},H266NAL:function(){return N},HLSParser:function(){return Eo},HevcSPS:function(){return Pe},Loader:function(){return tt},LoaderError:function(){return $e},MP4Parser:function(){return Gn},MP4RemuxStream:function(){return Go},MPEGTSParser:function(){return So},PAT:function(){return so},PES:function(){return lo},PMT:function(){return co},Remuxer:function(){return Ho},SOUND_RATE:function(){return gt},SOUND_SIZE:function(){return vt},ScriptBody:function(){return kt},TSHeader:function(){return ho},TagHeader:function(){return ht},VideoBody:function(){return At},VvcSPS:function(){return xe},esTypeMap:function(){return oo}});var x={},C=(Yo.r(x),Yo.d(x,{AAC_DURATION:function(){return L},AAC_SAMPLING_FREQUENCIES:function(){return k},addADTSHeader:function(){return B},getADTSHeaderLength:function(){return j},getADTSLength:function(){return W},isADTS:function(){return V},readAACSamples:function(){return q}}),{}),A=(Yo.r(C),Yo.d(C,{Box:function(){return v},avc1:function(){return Ot},avcC:function(){return Ie},btrt:function(){return Mt},co64:function(){return fn},ctts:function(){return dn},dinf:function(){return h},dref:function(){return Ut},edts:function(){return h},elst:function(){return tr},esds:function(){return _r},ftyp:function(){return yr},hdlr:function(){return mr},hev1:function(){return Nt},hvc1:function(){return Nt},hvcC:function(){return Ve},mdat:function(){return Sr},mdhd:function(){return Tr},mdia:function(){return h},mfhd:function(){return Ir},mfra:function(){return h},minf:function(){return h},moof:function(){return Rr},moov:function(){return h},mp4a:function(){return br},mvex:function(){return Or},mvhd:function(){return Er},pasp:function(){return Cr},sdtp:function(){return Nr},sidx:function(){return Mr},stbl:function(){return h},stco:function(){return hn},stsc:function(){return _n},stsd:function(){return yn},stss:function(){return gn},stsz:function(){return vn},stts:function(){return Sn},tfdt:function(){return ki},tfhd:function(){return tn},tkhd:function(){return kr},traf:function(){return Dr},trak:function(){return h},trex:function(){return sn},trun:function(){return pn},url:function(){return Lr},vmhd:function(){return Ar},vvc1:function(){return gr},vvcC:function(){return Dt},vvi1:function(){return vr}}),r.fromUint8=function(e){return new r(e.buffer,e.byteOffset,e.byteLength)},r.concatUint8s=function(e){return this.concatUint8.apply(this,e)},r.concatUint8=function(){for(var t,r,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length<=1?e[0]||new Uint8Array(0):(t=new Uint8Array(e.reduce(function(e,t){return e+t.byteLength},0)),r=0,e.forEach(function(e){t.set(e,r),r+=e.byteLength}),t)},r.concat=function(e,t){return r.concatUint8(new Uint8Array(e),new Uint8Array(t)).buffer},Object.defineProperty(r.prototype,"buffer",{get:function(){return this.dv.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unreadLength",{get:function(){return Math.max(this.end-this.offset,0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),r.prototype.readFloat=function(e){var t=0;switch(e){case 4:t=this.dv.getFloat32(this.offset);break;case 8:t=this.dv.getFloat64(this.offset);break;default:throw new Error("not supported for read float byte with "+e)}return this.offset+=e,t},r.prototype.back=function(e){this.offset-=e},r.prototype.skip=function(e){this.offset+=e},r.prototype.readInt=function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getInt8(t);case 2:return this.dv.getInt16(t);case 4:return this.dv.getInt32(t);default:throw new Error("not supported for read byte with "+e)}},r.prototype.read=function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getUint8(t);case 2:return this.dv.getUint16(t);case 3:return(this.dv.getUint16(t)<<8)+this.dv.getUint8(t+2);case 4:return this.dv.getUint32(t);default:return this.back(e-4),this.read(e-4)+this.dv.getUint32(t)*Math.pow(256,e-4)}},r.prototype.writeInt=function(e,t){var r=this.offset;switch(this.offset+=e,e){case 1:return this.dv.setInt8(r,t);case 2:return this.dv.setInt16(r,t);case 3:return this.dv.setInt8(r,t>>16),this.dv.setInt16(r+1,65535&t);case 4:return this.dv.setInt32(r,t);default:throw new Error("\u4e0d\u652f\u6301Byte write "+e)}},r.prototype.write=function(e,t){var r=this.offset;switch(this.offset+=e,e){case 1:return this.dv.setUint8(r,t);case 2:return this.dv.setUint16(r,t);case 3:return this.dv.setUint8(r,t>>>16),this.dv.setUint16(r+1,65535&t);case 4:return this.dv.setUint32(r,t);default:throw new Error("\u4e0d\u652f\u6301Byte write "+e)}},r.prototype.readToUint8=function(e){e=new Uint8Array(this.dv.buffer,this.offset,e||this.unreadLength);return this.offset+=e.byteLength,e},r.prototype.readToBuffer=function(e){e=this.offset||e?this.dv.buffer.slice(this.offset,e?this.offset+e:void 0):this.dv.buffer;return this.offset+=e.byteLength,e},r),k=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],L=1024,B=function(e,t){var r=t.audioObjectType,i=t.sampleRate,n=t.samplingFrequencyIndex,o=t.channelCount,t=t.numberOfRawDataBlocksInFrame,t=void 0===t?0:t,a=n,n=(0===n&&0<i&&(a=k.indexOf(i)),e.byteLength+7),i=new Uint8Array(7);return i[0]=255,i[1]=241,i[2]=r-1<<6,i[2]|=a<<2,i[2]|=(4&o)>>2,i[3]=(3&o)<<6,i[3]|=(6144&n)>>11,i[4]=(2047&n)>>3,i[5]=(7&n)<<5,i[5]|=31,i[6]=252,i[6]|=3&t,A.concatUint8(i,e)},V=function(e,t){return t<e.byteLength-1&&255===e[t]&&240==(246&e[t+1])},j=function(e,t){return 1&e[t+1]?7:9},W=function(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5},q=function(e){for(var t,r,i=[],n=0,o=e.byteLength;n+6<o;)V(e,n)?(t=j(e,n),r=W(e,n),i.push({audioObjectType:1+(e[2]>>>6),sampleRate:k[e[2]>>>2&15],samplingFrequencyIndex:e[2]>>>2&15,channelCount:(1&e[2])<<2|e[3]>>>6,numberOfRawDataBlocksInFrame:0,data:e.subarray(n+t,n+r)}),n+=r):n++;return i},m=(G.fromByte=function(e,t){return new G(e.read(t),t<<3)},G.prototype.skip=function(e){this.offset+=e},G.prototype.read=function(e){var t=this.len-this.offset-e;if(0<=t){for(var r=0,i=0;i<e;i++)r+=1<<i;return this.offset+=e,this.num>>>t&r}return console.warn("bit \u8bfb\u53d6\u4f4d\u6570\u8d85\u8fc7\u9650\u5236"),0},G);function G(e,t){this.num=e,this.len=t,this.offset=0}function r(e,t,r){this.dv=new DataView(e),this.offset=t||this.dv.byteOffset,this.start=this.offset,this.end=r?this.start+r:this.dv.byteLength}z.createAnnexbStartCode=function(){return new Uint8Array([0,0,0,1])},z.createVVCAnnexbStartCode=function(){return new Uint8Array([0,0,1])},z.createAVCCStartCode=function(e){return new Uint8Array([e>>24&255,e>>16&255,e>>8&255,255&e])},z.extractAVCCNAL=function(e,t){for(var r,i=[],n=new A(e.buffer,e.byteOffset,e.byteLength);n.unreadLength>t;){if((r=n.read(t+1))<=0||r>n.unreadLength){console.warn("extract avc nalu size wrong! lengthSizeMinusOne:",t,"size:",r);break}var o=n.offset-n.start;i.push(e.subarray(o,o+r)),n.skip(r)}return i},z.extractAnnexbNAL=function(r){for(var e=r.byteLength,i=[],t=0;t<e-3;)0===r[t]?0===r[t+1]?0===r[t+2]?0===r[t+3]?t++:(1===r[t+3]&&t+4<e&&i.push({prefixStart:t,start:t+4}),t+=4):(1===r[t+2]&&i.push({prefixStart:t,start:t+3}),t+=3):t+=2:t++;return i.length?i.map(function(e,t){t=i[t+1];return t?r.subarray(e.start,t.prefixStart):r.subarray(e.start)}):[]};var R=z;function z(){}var X,K;X=function(e,t){return(X=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(e=K=K||{})[e.UNUSED=0]="UNUSED",e[e.NON_IDR_SLICE=1]="NON_IDR_SLICE",e[e.DP_A=2]="DP_A",e[e.DP_B=3]="DP_B",e[e.DP_C=4]="DP_C",e[e.IDR=5]="IDR",e[e.SEI=6]="SEI",e[e.SPS=7]="SPS",e[e.PPS=8]="PPS",e[e.DIVIDER=9]="DIVIDER",e[e.SEQUENCE_END=10]="SEQUENCE_END",e[e.STREAM_END=11]="STREAM_END",e[e.FILL=12]="FILL";var D,Y,Q=function(r){function e(e){var t=r.call(this)||this,e=new m(e.read(1),8);return t.forbiddenZeroBit=e.read(1),t.nalRefIdc=e.read(2),t.nalType=e.read(5),t}var t=e,i=r;if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}return X(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n),e.extractNALType=function(e){return 31&e[0]},e.isSlice=function(e){e=this.extractNALType(e);return e>=K.NON_IDR_SLICE&&e<=K.IDR},e}(R),e=(Y=function(e,t){return(Y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(t=D=D||{})[t.TRAIL_N=0]="TRAIL_N",t[t.TRAIL_R=1]="TRAIL_R",t[t.TSA_N=2]="TSA_N",t[t.TSA_R=3]="TSA_R",t[t.STSA_N=4]="STSA_N",t[t.STSA_R=5]="STSA_R",t[t.RADL_N=6]="RADL_N",t[t.RADL_R=7]="RADL_R",t[t.RASL_N=8]="RASL_N",t[t.RASL_R=9]="RASL_R",t[t.VCL_N10=10]="VCL_N10",t[t.VCL_R11=11]="VCL_R11",t[t.VCL_N12=12]="VCL_N12",t[t.VCL_R13=13]="VCL_R13",t[t.VCL_N14=14]="VCL_N14",t[t.VCL_R15=15]="VCL_R15",t[t.BLA_W_LP=16]="BLA_W_LP",t[t.BLA_W_RADL=17]="BLA_W_RADL",t[t.BLA_N_LP=18]="BLA_N_LP",t[t.IDR_W_RADL=19]="IDR_W_RADL",t[t.IDR_N_LP=20]="IDR_N_LP",t[t.CRA=21]="CRA",t[t.VPS=32]="VPS",t[t.SPS=33]="SPS",t[t.PPS=34]="PPS",t[t.ACCESS_UNIT_DELIMITER=35]="ACCESS_UNIT_DELIMITER",t[t.EOS=36]="EOS",t[t.EOB=37]="EOB",t[t.FILLER_DATA=38]="FILLER_DATA",t[t.SEI=39]="SEI",t[t.SEI_SUFFIX=40]="SEI_SUFFIX",t[t.INVALID=64]="INVALID";e(Z,J=R),Z.extractNALType=function(e,t){return(126&e[t=void 0===t?0:t])>>1},Z.isNonRefNALType=function(e){switch(e){case D.TRAIL_N:case D.STSA_N:case D.RADL_N:case D.RASL_N:case D.VCL_N10:case D.VCL_N12:case D.VCL_N14:return!0;default:return!1}},Z.isNonRef=function(e){return this.isNonRefNALType(this.extractNALType(e))},Z.isSlice=function(e){e=this.extractNALType(e);return e>=D.TRAIL_N&&e<=D.CRA},Z.littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]},Z.parseHVCVideoData=function(e,t){for(var r=e.byteLength,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=[],o=0,a=0+t,s=this.littleEndian,l=!1;o<r;){if(r<=o+4){console.warn("parseHVCVideoData Malformed Nalu near timestamp "+a+", offset = "+o+", dataSize = "+r);break}var c=i.getUint32(o,!s);if(r-4<c)return void console.warn("parseHVCVideoData Malformed Nalus near timestamp "+a+", NaluSize > DataSize!");var u=i.getUint8(o+4)>>1&63,p=(16<=u&&u<=23&&(l=!0),0+o+4),u={type:u,data:e.subarray(p,p+c)};n.push(u),o+=4+c}return{keyframe:l,units:n}};var I,$,J,O=Z,t=($=function(e,t){return($=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function Z(e){var t=J.call(this)||this,e=new m(e.read(2),16);return t.forbiddenZeroBit=e.read(1),t.nalType=e.read(6),t.nhLayerId=e.read(6),t.nhTimeId=e.read(3),t}(e=I=I||{})[e.VVC_TRAIL_NUT=0]="VVC_TRAIL_NUT",e[e.VVC_STSA_NUT=1]="VVC_STSA_NUT",e[e.VVC_RADL_NUT=2]="VVC_RADL_NUT",e[e.VVC_RASL_NUT=3]="VVC_RASL_NUT",e[e.VVC_RSV_VCL_4=4]="VVC_RSV_VCL_4",e[e.VVC_RSV_VCL_5=5]="VVC_RSV_VCL_5",e[e.VVC_RSV_VCL_6=6]="VVC_RSV_VCL_6",e[e.VVC_IDR_W_RADL=7]="VVC_IDR_W_RADL",e[e.VVC_IDR_N_LP=8]="VVC_IDR_N_LP",e[e.VVC_CRA_NUT=9]="VVC_CRA_NUT",e[e.VVC_GDR_NUT=10]="VVC_GDR_NUT",e[e.VVC_RSV_IRAP_11=11]="VVC_RSV_IRAP_11",e[e.VVC_OPI_NUT=12]="VVC_OPI_NUT",e[e.VVC_DCI_NUT=13]="VVC_DCI_NUT",e[e.VVC_VPS_NUT=14]="VVC_VPS_NUT",e[e.VVC_SPS_NUT=15]="VVC_SPS_NUT",e[e.VVC_PPS_NUT=16]="VVC_PPS_NUT",e[e.VVC_PREFIX_APS_NUT=17]="VVC_PREFIX_APS_NUT",e[e.VVC_SUFFIX_APS_NUT=18]="VVC_SUFFIX_APS_NUT",e[e.VVC_PH_NUT=19]="VVC_PH_NUT",e[e.VVC_AUD_NUT=20]="VVC_AUD_NUT",e[e.VVC_EOS_NUT=21]="VVC_EOS_NUT",e[e.VVC_EOB_NUT=22]="VVC_EOB_NUT",e[e.VVC_PREFIX_SEI_NUT=23]="VVC_PREFIX_SEI_NUT",e[e.VVC_SUFFIX_SEI_NUT=24]="VVC_SUFFIX_SEI_NUT",e[e.VVC_FD_NUT=25]="VVC_FD_NUT",e[e.VVC_RSV_NVCL_26=26]="VVC_RSV_NVCL_26",e[e.VVC_RSV_NVCL_27=27]="VVC_RSV_NVCL_27",e[e.VVC_UNSPEC_28=28]="VVC_UNSPEC_28",e[e.VVC_UNSPEC_29=29]="VVC_UNSPEC_29",e[e.VVC_UNSPEC_30=30]="VVC_UNSPEC_30",e[e.VVC_UNSPEC_31=31]="VVC_UNSPEC_31";t(i,ee=R),i.parseNaluHeader=function(e){return{nuh_layer_id:63&e[0],nal_unit_type:e[1]>>3&31,nuh_temporal_id_plus1:7&e[1]}},i.extractNALType=function(e){return this.parseNaluHeader(e).nal_unit_type},i.isNonRefNALType=function(e){switch(e){case I.VVC_IDR_W_RADL:case I.VVC_IDR_N_LP:return!0;default:return!1}},i.isNonRef=function(e){return this.isNonRefNALType(this.extractNALType(e))},i.isSlice=function(e){e=this.extractNALType(e);return e<=I.VVC_RASL_NUT||e>=I.VVC_IDR_W_RADL&&e<=I.VVC_GDR_NUT},i.littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]},i.parseHVCVideoData=function(e,t){for(var r=e.byteLength,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=[],o=0,a=0+t,s=this.littleEndian,l=!1;o<r;){if(r<=o+4){console.warn("parseHVCVideoData Malformed Nalu near timestamp "+a+", offset = "+o+", dataSize = "+r);break}var c=i.getUint32(o,!s);if(r-4<c)return void console.warn("parseHVCVideoData Malformed Nalus near timestamp "+a+", NaluSize > DataSize!");var u=i.getUint8(o+4)>>1&63,p=(16<=u&&u<=23&&(l=!0),0+o+4),u={type:u,data:e.subarray(p,p+c)};n.push(u),o+=4+c}return{keyframe:l,units:n}};var ee,N=i,e=Yo(307),te=Yo.n(e);function i(e){var t=ee.call(this)||this,e=e.readToUint8(2),e={nuh_layer_id:63&e[0],nal_unit_type:e[1]>>3&31,nuh_temporal_id_plus1:7&e[1]};return t.forbiddenZeroBit=0,t.nalType=e.nal_unit_type,t.nhLayerId=e.nuh_layer_id,t.nhTimeId=e.nuh_temporal_id_plus1,t}function re(t,r){var i=!1;return Object.keys(r).forEach(function(e){te()(t[e],r[e])||(t[e]=r[e],i=!0)}),i}function ie(e){return e<10?"0"+e:e}var t=Yo(775),ne=Yo.n(t),oe="undefined"!=typeof performance&&"function"==typeof performance.now;function ae(){return(oe?performance:Date).now()}var u;(e=u=u||{})[e.TRACE=-1]="TRACE",e[e.DEBUG=0]="DEBUG",e[e.LOG=1]="LOG",e[e.INFO=2]="INFO",e[e.WARN=10]="WARN",e[e.ERROR=11]="ERROR",e[e.NONE=1e3]="NONE";var se,le,ce,g,M,ue=u.INFO,pe=u.ERROR,de=2e3,he=ae(),fe=[],_e=0,ye=(o.prototype._print=function(e,t){var r,i,n,o,a,s,l,c;ue<=e&&(r=ae()-he,n="[".concat(u[e],"][").concat(this.name,"][").concat((i=r,void 0===(n=!0)&&(n=!0),c=Math.floor(i/1e3),n=void 0!==n&&n,((o=c)===1/0?o:(s=Math.floor(o/60),s-=60*(a=Math.floor(s/60)),o=Math.floor(o-60*(60*a+s)),l=[],(n||0<a)&&l.push(ie(a)),l.push(ie(s)),l.push(ie(o)),l.join(":")))+"."+Math.floor(1e3*(i-1e3*c))),"]"),fe.push({id:_e++,level:e,name:this.name,timestamp:r,args:t,prefix:n,message:""}),fe.length>de&&fe.shift(),pe<=e)&&(a=(u[e]||"").toLowerCase(),s=console[a])&&s.apply(void 0,function(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}([n],t,!1))},o.prototype.getLogs=function(){return fe.map(function(e){return e.message=e.prefix+" "+e.args.map(function(e){return"string"==typeof e?e:ne()(e)}).join(" "),e})},o.prototype.clear=function(){fe=[]},o.prototype.setSize=function(e){de=e},o.prototype.setLevel=function(e){ue=e},o.prototype.getLevel=function(){return ue},o.prototype.setPrintLevel=function(e){pe=e},o.prototype.reset=function(){ue=u.INFO,pe=u.ERROR,de=2e3,he=ae(),fe=[],_e=0},o.LogLevel=u,o),U=(new ye("common"),new ye("demuxer")),ge=(n.prototype.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,i=new Uint8Array(4),t=Math.min(4,t);if(0===t)throw new Error("no bytes available");i.set(e.subarray(r,r+t)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*t,this.bytesAvailable-=t},n.prototype.skipBits=function(e){var t;this.bitsAvailable>e||(e=(e-=this.bitsAvailable)-((t=e>>3)<<3),this.bytesAvailable-=t,this.loadWord()),this.word<<=e,this.bitsAvailable-=e},n.prototype.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;return 32<e&&U.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,0<this.bitsAvailable?this.word<<=t:0<this.bytesAvailable&&this.loadWord(),0<(t=e-t)&&this.bitsAvailable?r<<t|this.readBits(t):r},n.prototype.skipLZ=function(){for(var e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},n.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},n.prototype.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},n.prototype.readUByte=function(){return this.readBits(8)},n.prototype.readUShort=function(){return this.readBits(16)},n.prototype.readUInt=function(){return this.readBits(32)},n.prototype.skipScalingList=function(e){for(var t=8,r=8,i=0;i<e;i++)t=0===(r=0!==r?(t+this.readEG()+256)%256:r)?t:r},n),ve=[100,110,122,244,44,83,86,118,128,138,144],me=[[0,1],[1,1],[12,11],[10,11],[16,11],[40,33],[24,11],[20,11],[32,11],[80,33],[18,11],[15,11],[64,33],[160,99],[4,3],[3,2],[2,1]],Se=(ke.generateCodec=function(e){return"avc1."+[e.generalProfileIdc,e.generalProfileCompatibility,e.generalLevelIdc].map(function(e){return(e=e.toString(16)).length<2?"0"+e:e}).join("")},ke),Te=[1,2,2,1],be=[1,2,1,1],Ee=[1,2,2,1],we=[1,2,1,1],Pe=(Ce.generateCodec=function(e){var t=["hvc1"],r=e.generalProfileSpace;t.push((0<r&&r<4?String.fromCharCode(64+r):"")+e.generalProfileIdc.toString()),t.push(e.generalProfileCompatibilityFlags.reverse().reduce(function(e,t){return e<<1|t},0).toString(16)),t.push((e.generalTierFlag?"H":"L")+e.generalLevelIdc);for(var i=!1,n=[],o=5;0<=o;o--){var a=e.generalConstraintIndicatorFlags[o];(a||i)&&(n.unshift(a.toString(16)),i=!0)}return t.concat(n).join(".")},Ce),xe=function(e){this.log2CtuSizeMinus5=0,this.ptlDpbHrdParamsPresentFlag=0,this.gdrEnabledFlag=0,this.refPicResamplingEnabledFlag=0,this.resChangeInClvsAllowedFlag=0,this.picWidthMaxInLumasamples=0,this.picHeightMaxInLumasamples=0,this.conformanceWindowFlag=0,this.profileTierPresentFlag=0,this.generalProfileIdc=0,this.generalTierFlag=0,this.generalLevelIdc=0,this.ptlFrameOnlyConstraintFlag=0,this.ptlMultiLayerEnabledFlag=0,this.subLayerProfilePresentFlags=[],this.ptlSubLayerLevelPresentFlags=[],this.subLayerLevelIdc=[],this.ptlNumSubProfiles=0,this.generalSubProfileIdc=[],this.gciPresentFlag=0,this.width=0,this.height=0,this.pixelRatio=[],this.codec="vvc1.1.L48.CA";var t,r,i,n=new ge(e),o=0;if(this.spsId=n.readBits(4),this.vpsId=n.readBits(4),this.maxSubLayersMinus1=n.readBits(3),this.chromaFormatIdc=n.readBits(2),this.log2CtuSizeMinus5=n.readBits(2),this.ptlDpbHrdParamsPresentFlag=n.readBits(1),o+=16,this.ptlDpbHrdParamsPresentFlag){if(this.profileTierPresentFlag=1,this.profileTierPresentFlag&&(this.generalProfileIdc=n.readBits(7),this.generalTierFlag=n.readBits(1),o+=8),this.generalLevelIdc=n.readBits(8),o+=8,this.ptlFrameOnlyConstraintFlag=n.readBits(1),this.ptlMultiLayerEnabledFlag=n.readBits(1),o+=2,this.profileTierPresentFlag&&(this.gciPresentFlag=n.readBits(1),o+=1,this.gciPresentFlag)){n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=3,n.skipBits(4),n.skipBits(2),o+=6,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=10,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,n.skipBits(2),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=5,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=16,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=13,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6;for(var a=n.readBits(8),s=(o+=8,0),l=(5<a&&(n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,s=6),0),l=0;l<a-s;l++)n.skipBits(1),o+=1}var e=8-o%8;for(n.skipBits(e),o+=e,l=this.maxSubLayersMinus1-1;0<=l;l--)this.ptlSubLayerLevelPresentFlags[l]=n.readBits(1),o+=1;for(n.skipBits(e=8-o%8),o+=e,l=this.maxSubLayersMinus1-1;0<=l;l--)this.ptlSubLayerLevelPresentFlags[l]&&(this.subLayerLevelIdc[l]=n.readBits(8),o+=8);if(this.profileTierPresentFlag)for(this.ptlNumSubProfiles=n.readBits(8),l=0;l<this.ptlNumSubProfiles;l++)this.generalSubProfileIdc[l]=n.readBits(32),o+=32}this.gdrEnabledFlag=n.readBits(1),this.refPicResamplingEnabledFlag=n.readBits(1),o+=2,this.refPicResamplingEnabledFlag&&(this.resChangeInClvsAllowedFlag=n.readBits(1),o+=1),this.picWidthMaxInLumasamples=n.readUEG(),this.picHeightMaxInLumasamples=n.readUEG(),o+=16,this.conformanceWindowFlag=n.readBits(1),o+=1,this.width=this.picWidthMaxInLumasamples,this.height=this.picHeightMaxInLumasamples,this.conformanceWindowFlag&&(e=Ee[this.chromaFormatIdc],i=we[this.chromaFormatIdc],t=n.readUEG()*e,e=n.readUEG()*e,r=n.readUEG()*i,i=n.readUEG()*i,this.width-=t+e,this.height-=r+i)};function Ce(e){var t=this;this.generalProfileSpace=0,this.generalTierFlag=0,this.generalProfileIdc=0,this.generalProfileCompatibilityFlags=[],this.generalConstraintIndicatorFlags=[],this.subLayerProfilePresentFlags=[],this.subLayerLevelPresentFlags=[],this.separateColourPlaneFlag=0,this.pixelRatio=[],this.codec="",this.checkProfileIdc=function(e){return t.generalProfileIdc===e||t.generalProfileCompatibilityFlags[e]};var r,i,n,o,a=new ge(e);for(this.vpsId=a.readBits(4),this.maxSubLayersMinus1=a.readBits(3),this.temporalIdNestingFlag=a.readBits(1),this.generalProfileSpace=a.readBits(2),this.generalTierFlag=a.readBits(1),this.generalProfileIdc=a.readBits(5),r=0;r<32;r++)this.generalProfileCompatibilityFlags[r]=a.readBits(1),0===this.generalProfileIdc&&0<r&&this.generalProfileCompatibilityFlags[r]&&(this.generalProfileIdc=r);for(r=0;r<6;r++)this.generalConstraintIndicatorFlags.push(a.readUByte());for(this.generalLevelIdc=a.readUByte(),r=0;r<this.maxSubLayersMinus1;r++)this.subLayerProfilePresentFlags[r]=a.readBits(1),this.subLayerLevelPresentFlags[r]=a.readBits(1);for(0<this.maxSubLayersMinus1&&a.skipBits(2*(8-this.maxSubLayersMinus1)),r=0;r<this.maxSubLayersMinus1;r++)this.subLayerProfilePresentFlags[r]&&a.skipBits(48),this.subLayerLevelPresentFlags[r]&&a.readUByte();this.spsId=a.readUEG(),this.codec=Ce.generateCodec(this),this.chromaFormatIdc=a.readUEG(),3===this.chromaFormatIdc&&(this.separateColourPlaneFlag=a.readBits(1)),this.separateColourPlaneFlag&&(this.chromaFormatIdc=0),this.width=a.readUEG(),this.height=a.readUEG(),a.readBits(1)&&(e=Te[this.chromaFormatIdc],o=be[this.chromaFormatIdc],i=a.readUEG()*e,e=a.readUEG()*e,n=a.readUEG()*o,o=a.readUEG()*o,this.width-=i+e,this.height-=n+o)}function ke(e){this.generalProfileSpace=0,this.generalTierFlag=0,this.generalProfileIdc=0,this.generalProfileCompatibility=0,this.crop=0,this.cropLeft=0,this.cropRight=0,this.cropTop=0,this.cropBottom=0,this.pixelRatio=[],this.codec="";var t,r,i=new ge(e);if(this.generalProfileIdc=i.readUByte(),this.generalProfileCompatibility=i.readUByte(),this.generalLevelIdc=i.readUByte(),this.spsId=i.readUEG(),this.codec=ke.generateCodec(this),-1<ve.indexOf(this.generalProfileIdc)){if(this.chromaFormatIdc=i.readUEG(),3===this.chromaFormatIdc&&i.skipBits(1),i.skipUEG(),i.skipUEG(),i.skipBits(1),i.readBits(1))for(t=0,r=3!==this.chromaFormatIdc?8:12;t<r;t++)i.readBits(1)&&(t<6?i.skipScalingList(16):i.skipScalingList(64))}else this.chromaFormatIdc=1;i.skipUEG();e=i.readUEG();if(0===e)i.skipUEG();else if(1===e)for(i.skipBits(1),i.skipEG(),i.skipEG(),t=0,r=i.readUEG();t<r;t++)i.skipEG();i.skipUEG(),i.skipBits(1);var n,e=i.readUEG()+1,o=i.readUEG()+1,a=i.readBits(1);a||i.skipBits(1),this.height=o*(2-a),i.skipBits(1),this.crop=i.readBits(1),this.crop&&(n=1<<(1===this.chromaFormatIdc||2===this.chromaFormatIdc?1:0),a=2-a<<(1===this.chromaFormatIdc?1:0),this.cropLeft=i.readUEG()*n,this.cropRight=i.readUEG()*n,this.cropTop=i.readUEG()*a,this.cropBottom=i.readUEG()*a),this.width=16*e-(this.cropRight+this.cropLeft),this.height=16*o-(this.cropTop+this.cropBottom),i.readBits(1)&&i.readBits(1)&&(255===(n=i.readUByte())?(this.pixelRatio[0]=i.readUByte()<<8|i.readUByte(),this.pixelRatio[1]=i.readUByte()<<8|i.readUByte()):n<me.length&&(this.pixelRatio=me[n]))}function n(e){this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}function o(e){var r=this;this.trace=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.TRACE,e)},this.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.DEBUG,e)},this.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.LOG,e)},this.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.INFO,e)},this.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.WARN,e)},this.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.ERROR,e)},this.name=e}(t=se=se||{})[t.NONE=-16]="NONE",t[t.DEFAULT=0]="DEFAULT",t[t.NONREF=8]="NONREF",t[t.BIDIR=16]="BIDIR",t[t.NONINTRA=24]="NONINTRA",t[t.NONKEY=32]="NONKEY",t[t.ALL=48]="ALL",(e=le=le||{})[e.ABORTED=1]="ABORTED",e[e.NETWORK=2]="NETWORK",e[e.DECODE=3]="DECODE",e[e.SRC_NOT_SUPPORTED=4]="SRC_NOT_SUPPORTED",e[e.PARSER=1001]="PARSER",e[e.WEBGL_NOT_SUPPORTED=10005]="WEBGL_NOT_SUPPORTED",e[e.COROUTINE=20001]="COROUTINE",e[e.BUFFERING=20003]="BUFFERING",e[e.RENDERER=20005]="RENDERER",(t=ce=ce||{}).VIDE="vide",t.SOUN="soun",(e=g=g||{})[e.FLV=0]="FLV",e[e.MP4=1]="MP4",e[e.HLS=2]="HLS",e[e.MPEGTS=3]="MPEGTS",e[e.UNKNOWN=4]="UNKNOWN",(t=M=M||{})[t.UNKNOWN=0]="UNKNOWN",t[t.VIDEO=1]="VIDEO",t[t.AUDIO=2]="AUDIO";function Le(e,t){var r=e.offset;this.start=t,this.size=e.read(4),this.type=String.fromCharCode(e.read(1),e.read(1),e.read(1),e.read(1)).trim(),1===this.size&&(this.size=e.read(8)),this.length=e.offset-r}(e={})[ce.VIDE]=M.VIDEO,e[ce.SOUN]=M.AUDIO;var E,Ae=e,e=((t=E=E||{})[t.DEGRADATION_PRIORITY_MASK=65535]="DEGRADATION_PRIORITY_MASK",t[t.IS_NON_SYNC=65536]="IS_NON_SYNC",t[t.PADDING_MASK=917504]="PADDING_MASK",t[t.REDUNDANCY_MASK=3145728]="REDUNDANCY_MASK",t[t.DEPENDED_MASK=12582912]="DEPENDED_MASK",t[t.DEPENDS_MASK=50331648]="DEPENDS_MASK",t[t.DEPENDS_NO=33554432]="DEPENDS_NO",t[t.DEPENDS_YES=16777216]="DEPENDS_YES",Be=function(e,t){return(Be=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Be(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Re=function(){return(Re=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},De=new Date("1904-01-01T00:00:00Z").getTime(),v=(Ge.prototype.append=function(e){this.children.push(e)},Ge.mapBoxToJSON=function(e){return Re({box:e},e.children.reduce(function(e,t){var r=t.header.type,i=e[r],t=Ge.mapBoxToJSON(t);return i?Array.isArray(i)?i.push(t):e[r]=[i,t]:e[r]=t,e},{}))},Ge),a=(e(qe,He=v),qe);Fe=function(e,t){return(Fe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Fe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(We,Ue=v);var Ie=We;Me=function(e,t){return(Me=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Oe(e){for(var t=e.byteLength,r=[],i=1;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?r.push(i+=2):i++;if(0===r.length)return e;for(var n=t-r.length,o=new Uint8Array(n),a=0,i=0;i<n;a++,i++)a===r[0]&&(a++,r.shift()),o[i]=e[a];return o}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(je,Ne=v);var Ne,Me,Ue,Fe,He,Be,Ve=je;function je(e,t){var r,i=Ne.call(this,e,t)||this;i.nalus=[],i.vps=[],i.sps=[],i.pps=[],i.sei=[],i.configVersion=t.read(1),r=new m(t.read(1),8),i.generalProfileSpace=r.read(2),i.generalTierFlag=r.read(1),i.generalProfileIdc=r.read(5),r=new m(t.read(4),32),i.generalProfileCompatibilityFlags=Array.from(new Array(32)).map(function(){return r.read(1)}),i.generalConstraintIndicatorFlags=Array.from(new Array(6)).map(function(){return t.read(1)}),i.generalLevelIdc=t.read(1),i.minSpatialSegmentationIdc=4095&t.read(2),i.parallelismType=3&t.read(1),i.chromaFormatIdc=3&t.read(1),i.bitDepthLumaMinus8=7&t.read(1),i.bitDepthChromaMinus8=7&t.read(1),i.avgFrameRate=t.read(2),r=new m(t.read(1),8),i.constantFrameRate=r.read(2),i.numTemporalLayers=r.read(3),i.temporalIdNested=r.read(1),i.lengthSizeMinusOne=r.read(2),i.nalus=[];for(var n=t.read(1),o=0;o<n;o++){var a=[],s=(r=new m(t.read(1),8)).read(1);r.read(1);for(var l=r.read(6),c=t.read(2),u=0;u<c;u++)a.push(new Uint8Array(t.read(2)).map(function(){return t.read(1)}));i.nalus.push({completeness:s,type:l,data:a}),l===D.VPS?a.forEach(function(e){return i.vps.push(e)}):l===D.SPS?a.forEach(function(e){return i.sps.push(e)}):l===D.PPS?a.forEach(function(e){return i.pps.push(e)}):l===D.SEI&&a.forEach(function(e){return i.sei.push(e)})}return i.codec=Pe.generateCodec(i),i}function We(e,t){var r=Ue.call(this,e,t)||this;r.sps=[],r.pps=[],r.configVersion=t.read(1),r.generalProfileIdc=t.read(1),r.generalProfileCompatibility=t.read(1),r.generalLevelIdc=t.read(1),r.lengthSizeMinusOne=3&t.read(1),r.numOfSequenceParameterSets=31&t.read(1);for(var i,n=0,o=[],n=0;n<r.numOfSequenceParameterSets;n++){for(i=t.read(2),o=[];i--;)o.push(t.read(1));r.sps.push(new Uint8Array(o))}for(r.numOfPictureParameterSets=31&t.read(1),n=0;n<r.numOfPictureParameterSets;n++){for(i=t.read(2),o=[];i--;)o.push(t.read(1));r.pps.push(new Uint8Array(o))}return r.codec=Se.generateCodec(r),r}function qe(e,t){e=He.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e}function Ge(e,t){this.children=[],this.isContainer=!1,this.toStandardTime=function(e){return e&&De+1e3*e},this.header=e}function ze(){var o=this;this._eventMap={},this.listeners=function(e){return o._eventMap[e]||[]},this.emit=function(e,t){e=o._eventMap[e];return!!Array.isArray(e)&&(e.forEach(function(e){return e(t)}),!0)},this.off=function(e,t){var r=o._eventMap[e];return Array.isArray(r)&&(o._eventMap[e]=r.filter(function(e){return e!==t})),o},this.removeAllListeners=function(e){return void 0===e?o._eventMap={}:o._eventMap[e]&&(o._eventMap[e]=[]),o},this.on=function(e,t){return o._eventMap[e]?o._eventMap[e].push(t):o._eventMap[e]=[t],o},this.once=function(i,n){return o.on(i,function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];o.off(i,e),n.apply(o,t)}),o},this.proxy=function(i,e){e.forEach(function(r){o.on(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.unshift(r),i.emit.apply(i,e)})})},this.proxyOnce=function(i,e){e.forEach(function(r){o.once(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.unshift(r),i.emit.apply(i,e)})})}}Xe=function(e,t){return(Xe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var d,Xe,Ke,Ye,Qe,t=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Xe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},$e=((e=d=d||{})[e.IDLE=0]="IDLE",e[e.LOADING=1]="LOADING",e[e.SUSPENGING=2]="SUSPENGING",e[e.ERROR=3]="ERROR",Ye=Error,t(et,Ye),et),Je=(t(s,Ke=ze),Object.defineProperty(s.prototype,"eof",{get:function(){return this.offset===this.total},enumerable:!1,configurable:!0}),s.prototype._changeStatus=function(e){this.status!==e&&(U.log("loader status changed: ".concat(d[this.status]," -> ").concat(d[e])),this.status=e)},s.prototype.jump=function(e){this.offset=e},s.prototype.load=function(e,t,r){return this.reset(),this.url=e,this.loadRange(t,r)},s.prototype.resume=function(){return this.loadRange(this.offset)},s.prototype.suspend=function(){var e=this.status;this._abort(),e===d.LOADING&&(this._changeStatus(d.SUSPENGING),this.emit("suspend",void 0))},s.prototype.abort=function(){var e=this.status;this._abort(),e!==d.SUSPENGING&&e!==d.LOADING||this.emit("abort",void 0)},s.prototype.reset=function(){this.abort(),this.offset=0,this.total=1/0,this.url=""},s.prototype.destroy=function(){this.removeAllListeners(),this.reset()},s),Ze={isIos:!1,isDingtalk:!1,isQQBrowser:!1},e=(window.navigator.userAgent||"").toLowerCase();function s(e){void 0===e&&(e={});var t=Ke.call(this)||this;return t.timeout=15e3,t.total=1/0,t.offset=0,t.status=d.IDLE,t.url="",t._handleError=function(e){"AbortError"!==e.name&&(t._changeStatus(d.ERROR),t.emit("error",{code:le.NETWORK,message:e.message,origin:e}))},t.timeout=e.timeout||t.timeout,t}function et(e){return Ye.call(this,e)||this}/(iPhone\sOS)\s([\d_]+)/i.test(e)&&(Ze.isIos=!0),-1<e.indexOf("dingtalk")?Ze.isDingtalk=!0:-1<e.indexOf("qqbrowser")&&(Ze.isQQBrowser=!0),st=function(e,t){return(st=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}st(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(pt,at=Je),pt.isSupported=function(){return Ze.isIos&&(Ze.isDingtalk||Ze.isQQBrowser)?(console.log("ios","isDingtalk",Ze.isDingtalk,"isQQBrowser",Ze.isQQBrowser),!1):"undefined"!=typeof AbortController&&"undefined"!=typeof ReadableStream},pt.prototype.loadRange=function(i,e){var n=this;if(void 0===i&&(i=0),void 0===e&&(e=1/0),!this.url||i>=this.total)return $o.resolve(!1);if(this.status===d.LOADING||this.status===d.ERROR)return $o.resolve(!1);U.info("\u6267\u884cload, ".concat(this.total," from=").concat(i," to=").concat(e," url=").concat(this.url)),this.abort();var t=new Headers,o=0<i||e<1/0;return o&&(e=Math.min(this.total-1,e),t.set("Range","bytes=".concat(i,"-").concat(e===1/0?"":e))),this._changeStatus(d.LOADING),this.controller=new AbortController,this.emit("loadstart",void 0),this.timer=setTimeout(this.triggerTimeout,this.timeout),fetch(this.url,{method:"GET",headers:t,signal:this.controller.signal}).then(function(e){if(clearTimeout(n.timer),200<=e.status&&e.status<300){var r;if(n.offset=i,o?(t=e.headers.get("Content-Range")||"",n.total=Number(t.split("/")[1])||n.total):n.total=Number(e.headers.get("Content-Length"))||n.total,e.body)return r=e.body.getReader(),function t(){return r.read().then(function(e){return e.done?(n.total===1/0&&(n.total=n.offset),n.controller=null,n._changeStatus(d.IDLE),n.emit("loadend",void 0),!0):(n.offset+=e.value.byteLength,n.emit("progress",{offset:n.offset-e.value.byteLength,data:e.value}),t())})}();if(e.arrayBuffer)return e.arrayBuffer().then(function(e){return n.offset+=e.byteLength,n.emit("progress",{offset:n.offset-e.byteLength,data:new Uint8Array(e)}),n.controller=null,n._changeStatus(d.IDLE),n.emit("loadend",void 0),!0})}var t=new $e("\u5a92\u4f53\u6d41\u6570\u636e\u4e0d\u5b58\u5728: ".concat(n.url));throw t.response=e,t}).catch(function(e){return clearTimeout(n.timer),n._handleError(e),!1})};t=pt;ot=function(e,t){return(ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ut,nt=Je),ut.prototype._abort=function(){var e=this.xhr;e&&(e.onerror=null,e.onprogress=null,e.onloadend=null,e.onreadystatechange=null,e.abort(),this.xhr=null,this._resolve(!1)),this._changeStatus(d.IDLE)},ut.prototype.loadRange=function(i,n){var u=this;return void 0===i&&(i=0),void 0===n&&(n=1/0),!this.url||i>=this.total||this.status===d.LOADING||this.status===d.ERROR?$o.resolve(!1):(this.abort(),new $o(function(e,t){u.xhr=new XMLHttpRequest,u._resolve=e;function r(e){var r,t=s.responseText,i=t.length,n=c,o=u.offset,a=i-n;0<a&&(u.offset+=a),!l&&e&&u.total===1/0&&(u.total=u.offset),0<a&&(c=i,u.emit("progress",{offset:o,data:(r=t.substring(n,i),new Uint8Array(r.length).map(function(e,t){return r.charCodeAt(t)}))}))}var s=u.xhr,l=0<i||n<1/0,c=(s.open("GET",u.url),l&&s.setRequestHeader("Range","bytes=".concat(i,"-").concat(n===1/0?"":n)),s.onreadystatechange=function(){var e;s.readyState===s.HEADERS_RECEIVED&&200<=s.status&&s.status<300&&(l?(e=s.getResponseHeader("Content-Range")||"",u.total=Number(e.split("/")[1])||u.total):u.total=Number(s.getResponseHeader("Content-Length"))||u.total),s.readyState>=s.HEADERS_RECEIVED&&clearTimeout(u._timer)},u.offset=i,0);s.timeout=u.timeout,s.onprogress=function(){r(!1)},s.onloadend=function(){r(!0),u.xhr=null,u._changeStatus(d.IDLE),u.emit("loadend",void 0),e(!0)},s.onerror=function(e){u.xhr=null;e=new Error(e.constructor.name);u._handleError(e),t(e)},s.overrideMimeType("text/plain; charset=x-user-defined"),u._changeStatus(d.LOADING),u.emit("loadstart",void 0),u._timer=setTimeout(u.triggerTimeout,u.timeout),s.send()}))};var e=ut,tt=t.isSupported()?t:e;it=function(e,t){return(it=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}it(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(l,rt=ze),Object.defineProperty(l.prototype,"loader",{get:function(){return this.customLoader||this.originLoader},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"url",{get:function(){return this.loader.url},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"status",{get:function(){return this.loader.status},enumerable:!1,configurable:!0}),l.probe=function(e){throw new Error("parser should implements static probe")},l.prototype.onProgress=function(e){},l.prototype.onLoadEnd=function(){},l.prototype.load=function(e){return this.reset(),this.loader.load(e)},l.prototype.suspend=function(){return this.loader.suspend()},l.prototype.resume=function(){return this.loader.resume()},l.prototype.reset=function(){this.loader.reset(),this.metadata=null},l.prototype.destroy=function(){this.reset(),this.loader.off("progress",this.onProgress),this.loader.off("loadend",this.onLoadEnd),this.originLoader.destroy(),this.removeAllListeners()};var rt,it,nt,ot,at,st,t=l,lt=(ct.BUFFER_LENGTH=9,ct);function ct(e){this.signature=String.fromCharCode(e.read(1),e.read(1),e.read(1)),this.version=e.read(1);var t=e.read(1),e=(this.size=e.read(4),new m(t,8));e.read(5),this.hasAudio=!!e.read(1),e.read(1),this.hasVideo=!!e.read(1)}function l(e){var t=rt.call(this)||this;return t.skipFrame=se.DEFAULT,t.metadata=null,t.options=e,t.onProgress=t.onProgress.bind(t),t.onLoadEnd=t.onLoadEnd.bind(t),t.originLoader=new tt(t.options),t.customLoader=e.loader,t.loader.on("progress",t.onProgress),t.loader.on("loadend",t.onLoadEnd),t.skipFrame=e.skipFrame||se.DEFAULT,t}function ut(){var e=null!==nt&&nt.apply(this,arguments)||this;return e.xhr=null,e._timer=-1,e._resolve=function(e){},e.triggerTimeout=function(){e._abort(),e._handleError(new Error("\u52a0\u8f7d\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5"))},e}function pt(){var e=null!==at&&at.apply(this,arguments)||this;return e.controller=null,e.timer=-1,e._abort=function(){clearTimeout(e.timer),e.controller&&!e.controller.signal.aborted&&(e.controller.abort(),e.controller=null),e._changeStatus(d.IDLE)},e.triggerTimeout=function(){e._abort(),e._handleError(new $e("\u52a0\u8f7d\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5"))},e}(e=Qe=Qe||{})[e.AUDIO=8]="AUDIO",e[e.VIDEO=9]="VIDEO",e[e.SCRIPT=18]="SCRIPT";ft.BUFFER_LENGTH=11;var dt,ht=ft;function ft(e){this.type=e.read(1),this.size=e.read(3),this.dts=e.read(3),this.dts|=e.read(1)<<24,e.skip(3)}(e=dt=dt||{})[e.PCM=0]="PCM",e[e.ADPCM=1]="ADPCM",e[e.MP3=2]="MP3",e[e.PCM_LE=3]="PCM_LE",e[e.NELLYMOSER_16KHZ_MONO=4]="NELLYMOSER_16KHZ_MONO",e[e.NELLYMOSER_8KHZ_MONO=5]="NELLYMOSER_8KHZ_MONO",e[e.NELLYMOSER=6]="NELLYMOSER",e[e.PCM_ALAW=7]="PCM_ALAW",e[e.PCM_MULAW=8]="PCM_MULAW",e[e.AAC=10]="AAC",e[e.SPEEX=11]="SPEEX";var _t,yt,gt=[5512,11025,22050,44100],vt=[8,16];(e=_t=_t||{})[e.MONO=0]="MONO",e[e.STEREO=1]="STEREO",(e=yt=yt||{})[e.ADTS_HEADER=0]="ADTS_HEADER",e[e.RAW=1]="RAW";St.readAudioSpecificConfig=function(e){var e=new m(e.read(2),16),t=e.read(5),r=e.read(4),e=e.read(4);return{audioObjectType:t,sampleRate:k[r],samplingFrequencyIndex:r,channelCount:e}};var c,mt=St;function St(e){var t=new m(e.read(1),8);this.codecId=t.read(4),this.sampleRate=gt[t.read(2)],this.sampleSize=vt[t.read(1)],this.soundType=t.read(1),this.packetType=e.read(1),this.data=e.readToUint8()}function Tt(t){var e=t.read(2);return Array.from(Array(e)).map(function(){var e=t.read(1);return 0<e?String.fromCharCode(e):""}).join("")}function bt(e){var t=Tt(e),e=Et(e);return{key:t,value:e.value,objectEnd:e.objectEnd}}function Et(e){var t={value:null,objectEnd:!1},r=e.read(1);switch(r){case c.NUMBER:t.value=e.readFloat(8);break;case c.BOOLEAN:t.value=!!e.read(1);break;case c.LONG_STRING:case c.STRING:t.value=Tt(e);break;case c.OBJECT_START:t.value=function(e){for(var t={};0<e.unreadLength;){var r=bt(e);if(r.objectEnd)break;t[r.key]=r.value}return t}(e);break;case c.ECMA_ARRAY:t.value=function(e){for(var t=e.read(4),r={};0<t--;){var i=bt(e);r[i.key]=i.value}return r}(e);break;case c.OBJECT_END:t.objectEnd=!0;break;case c.STRICT_ARRAY:t.value=function(e){for(var t=e.read(4),r=[];0<t--;){var i=Et(e);r.push(i.value)}return r}(e);break;case c.DATE:t.value=new Date(e.readFloat(8)+60*e.readInt(2)+1e3);break;default:console.warn("unknown AMF value type",r)}return t}(e=c=c||{})[e.NUMBER=0]="NUMBER",e[e.BOOLEAN=1]="BOOLEAN",e[e.STRING=2]="STRING",e[e.OBJECT_START=3]="OBJECT_START",e[e.NULL=5]="NULL",e[e.UNDEFINED=6]="UNDEFINED",e[e.REFERENCE=7]="REFERENCE",e[e.ECMA_ARRAY=8]="ECMA_ARRAY",e[e.OBJECT_END=9]="OBJECT_END",e[e.STRICT_ARRAY=10]="STRICT_ARRAY",e[e.DATE=11]="DATE",e[e.LONG_STRING=12]="LONG_STRING";var wt,Pt,F,xt,Ct,kt=function(e){this.name=Et(e).value,this.value=Et(e).value};(e=wt=wt||{})[e.KEY=1]="KEY",e[e.INTER=2]="INTER",e[e.DISP_INTER=3]="DISP_INTER",e[e.GENERATED_KEY=4]="GENERATED_KEY",e[e.VIDEO_INFO_CMD=5]="VIDEO_INFO_CMD",(e=Pt=Pt||{})[e.STARTSEEK=0]="STARTSEEK",e[e.ENDSEEK=1]="ENDSEEK",(e=F=F||{})[e.JPEG=1]="JPEG",e[e.H263=2]="H263",e[e.SCREEN=3]="SCREEN",e[e.VP6=4]="VP6",e[e.VP6A=5]="VP6A",e[e.SCREEN2=6]="SCREEN2",e[e.H264=7]="H264",e[e.REALH263=8]="REALH263",e[e.MPEG4=9]="MPEG4",e[e.H265=12]="H265",e[e.H266=14]="H266",(e=xt=xt||{})[e.AVC_SEQUENCE_HEADER=0]="AVC_SEQUENCE_HEADER",e[e.AVC_NALU=1]="AVC_NALU",e[e.AVC_END=2]="AVC_END",e[e.COCED_FRAMES_X=3]="COCED_FRAMES_X",e[e.METADATA=4]="METADATA",e[e.MPEG2_TS_SEQUENCE_START=5]="MPEG2_TS_SEQUENCE_START",e[e.MULTI_TRACK=6]="MULTI_TRACK",(e=Ct=Ct||{})[e.OneTrackOneCodec=0]="OneTrackOneCodec",e[e.ManyTracksOneCodec=1]="ManyTracksOneCodec",e[e.ManyTracksManyCodecs=2]="ManyTracksManyCodecs";Rt.prototype.bin2str=function(e){return String.fromCharCode.apply(null,e)},Rt.prototype.convertCodecNameToVideoCodecID=function(e){return/hvc1/.test(e)||/1cvh/.test(e)?F.H265:/vvc1/.test(e)||/1cvv/.test(e)||/vvi1/.test(e)?F.H266:void 0};var Lt,At=Rt,H={isFirefox:!1,isOpera:!1,isTrident:!1,isEdge:!1,isChrome:!1,isSafari:!1,isMQQBrowser:!1,isMobile:!1,isIos:!1,isDingtalk:!1},e=void 0!==window.navigator,p=e?window.navigator.userAgent:"";function Rt(e){this.videoCommand=Pt.STARTSEEK,this.codecId=F.H265,this.packetType=xt.AVC_NALU,this.cts=0,this.videoFourCC="";var t,r,i=new m(e.read(1),8);this.isExVideoHeader=i.read(1),this.type=i.read(3),this.videoFrameType=this.type,0===this.isExVideoHeader&&(this.codecId=i.read(4),this.packetType=e.read(1),this.type===wt.VIDEO_INFO_CMD)&&(this.videoCommand=e.read(1)),1===this.isExVideoHeader&&((i=i.read(4))!=xt.METADATA&&this.videoFrameType===wt.VIDEO_INFO_CMD?this.videoCommand=e.read(1):i==xt.MULTI_TRACK?(r=(t=new m(e.read(1),8)).read(4),i=t.read(4),r==Ct.ManyTracksManyCodecs&&(String.fromCharCode(e.read(1)),this.videoFourCC=this.bin2str(e.readToUint8(4)))):this.videoFourCC=this.bin2str(e.readToUint8(4)),this.packetType=i),this.codecId=this.convertCodecNameToVideoCodecID(this.videoFourCC)||this.codecId,this.cts=e.read(3)+4286578688^4286578688,this.data=e.readToUint8()}-1<p.indexOf("MQQBrowser")?H.isMQQBrowser=!0:-1<p.indexOf("Firefox")?H.isFirefox=!0:-1<p.indexOf("Opera")||-1<p.indexOf("OPR")?H.isOpera=!0:-1<p.indexOf("Trident")?H.isTrident=!0:-1<p.indexOf("Edge")?H.isEdge=!0:-1<p.indexOf("Chrome")?(H.isChrome=!0,(p.toLowerCase().match(/chrome\/([\d.]+)/)||[])[1]):-1<p.indexOf("Safari")||-1<p.indexOf("iPhone")||-1<p.indexOf("iPad")||-1<p.indexOf("iPod")?H.isSafari=!0:-1<p.toLowerCase().indexOf("dingtalk")&&(H.isDingtalk=!0),/(iPhone\sOS)\s([\d_]+)/i.test(p)&&(H.isIos=!0),e&&("maxTouchPoints"in(p=window.navigator)?H.isMobile=0<p.maxTouchPoints:"msMaxTouchPoints"in p?H.isMobile=0<p.msMaxTouchPoints:(e=null==(e=window.matchMedia)?void 0:e.call(window,"(pointer:coarse)"))&&"(pointer:coarse)"===e.media?H.isMobile=!!e.matches:"orientation"in window?H.isMobile=!0:(e=p.userAgent,H.isMobile=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(e)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(e))),er=function(e,t){return(er=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}er(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(lr,Zt=a);var Dt=lr;Jt=function(e,t){return(Jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(f,$t=t),f.probe=function(e){return!(e.byteLength<9)&&"FLV"===new lt(new A(e.buffer,e.byteOffset,e.byteLength)).signature},f.prototype.parse=function(e,t){var r=[];if(e.byteLength){this.unhandleBuffer&&(e=A.concat(this.unhandleBuffer,e),t-=this.unhandleBuffer.byteLength,this.unhandleBuffer=null);var i=new A(e);for(!this.header&&i.unreadLength>=lt.BUFFER_LENGTH&&(this.header=new lt(i),!1===this.header.hasVideo&&(this.header.hasVideo=!0),i.skip(this.header.size-lt.BUFFER_LENGTH));i.unreadLength>4+ht.BUFFER_LENGTH;){i.skip(4);var n=new ht(i);if(!(i.unreadLength>=n.size)){i.back(4+ht.BUFFER_LENGTH);break}var o=new A(i.buffer,i.offset,n.size);switch(i.skip(n.size),n.type){case Qe.VIDEO:r=r.concat(this.parseVideoBody(n,o,i.offset+t));break;case Qe.AUDIO:r=r.concat(this.parseAudioBody(n,o,i.offset+t));break;case Qe.SCRIPT:this.parseScriptBody(n,o);break;default:return U.warn("unknown tag type",n.type),r}}this.unhandleBuffer=i.unreadLength?i.readToBuffer():null}return r},f.prototype.checkMetadata=function(){var e=this.flvMetadata,t=this.header;if(console.log("checkMetadata flvMetadata:",e,"header:",t,", this.metadata:",this.metadata),t&&!this.metadata){var r=[];if(t.hasVideo){if(!this.videoTrackMeta||!this.videoLoaded)return void console.log("checkMetadata hasVideo no this.videoTrackMeta",this.videoTrackMeta,", this.videoLoaded",this.videoLoaded);this.videoTrackMeta.baseDTS=this.baseVideoDTS,this.videoTrackMeta.basePTS=this.baseVideoPTS,this.videoTrackMeta.fps=null==e?void 0:e.framerate,r.push(this.videoTrackMeta)}if(t.hasAudio){if(!this.audioTrackMeta||!this.audioLoaded)return void console.log("checkMetadata hasAudio no this.audioTrackMeta",this.audioTrackMeta,", this.audioLoaded",this.audioLoaded);this.audioTrackMeta.baseDTS=this.baseAudioDTS,this.audioTrackMeta.basePTS=this.baseAudioPTS,r.push(this.audioTrackMeta)}var t=this.options,i=t.live,t=t.progressive;this.metadata={formatType:g.FLV,live:!!i,progressive:!i&&!!t,url:this.loader.url,basePTS:Math.min.apply(Math,r.map(function(e){return e.basePTS||0})),baseDTS:Math.min.apply(Math,r.map(function(e){return e.baseDTS||0})),timescale:1e3,duration:1e3*((null==e?void 0:e.duration)||1/0),tracks:r},console.log("checkMetadata loadedmetadata",this.metadata),this.emit("loadedmetadata",this.metadata)}},f.prototype.parseVideoBody=function(e,t,r){var i=this,t=new At(t),n=(this.emit("loadedtag",{header:e,body:t}),[]),o=t.type===wt.KEY,a=!1;if(t.data.length)if(t.packetType===xt.AVC_SEQUENCE_HEADER){var s,l,c=this.flvMetadata||{},u={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:c.width||0,height:c.height||0,codec:"",pixelRatio:[],live:(null==(c=this.metadata)?void 0:c.live)||!1};t.codecId===F.H264?(s=new Le(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Ie(s,l),u.pps=c.pps,u.sps=c.sps,u.codec=c.codec,(c=c.sps[0])&&(v=new Se(c.subarray(1)),u.width=v.width,u.height=v.height)):t.codecId===F.H265?(R.extractAnnexbNAL(t.data).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);r.nalType<D.ACCESS_UNIT_DELIMITER&&(r.nalType===D.SPS?(t=new Pe(Oe(t.readToUint8())),u.sps.push(e),u.codec=t.codec,console.log("thisvideoTrackMeta sps.codec=",t.codec),u.width=t.width,u.height=t.height):r.nalType===D.VPS?u.vps.push(e):r.nalType===D.PPS&&u.pps.push(e))}),""===u.codec&&(s=new Le(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Ve(s,l),u.vps=c.vps,u.pps=c.pps,u.sps=c.sps,u.sei=c.sei,u.codec=c.codec,c.sps&&0<c.sps.length&&(v=new Pe(Oe(c.sps[0])),u.width=v.width,u.height=v.height),this.isHVCC=!0)):t.codecId===F.H266&&(R.extractAnnexbNAL(t.data).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new N(t);r.nalType<I.VVC_UNSPEC_31&&(r.nalType===I.VVC_SPS_NUT?(t=new xe(Oe(t.readToUint8())),u.width=t.width,u.height=t.height,u.codec=t.codec,u.sps.push(e)):r.nalType===I.VVC_VPS_NUT?u.vps.push(e):r.nalType===I.VVC_PPS_NUT&&u.pps.push(e))}),""===u.codec)&&(s=new Le(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Dt(s,l),u.vps=c.vps,u.pps=c.pps,u.sps=c.sps,u.sei=c.sei,u.codec=c.codec,this.isHVCC=!0),this.videoTrackMeta=u,this.checkMetadata()}else{var p=[];if(t.codecId===F.H266){var d={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(v=this.flvMetadata)?void 0:v.width)||0,height:(null==(s=this.flvMetadata)?void 0:s.height)||0,codec:"",pixelRatio:[],live:(null==(l=this.metadata)?void 0:l.live)||!1},h=[],f=[],_=[],y=[],c=[],c=4<t.data.length&&0===t.data[0]&&0===t.data[1]&&0===t.data[2]&&1===t.data[3]?R.extractAnnexbNAL(t.data):R.extractAVCCNAL(t.data,3),g=[],v=(c.forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new N(t);7<=r.nalType&&r.nalType<=10&&(o=!0,i.videoTrackMeta&&0<i.videoTrackMeta.sps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.sps[0]),i.videoTrackMeta&&0<i.videoTrackMeta.pps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.pps[0]),i.videoTrackMeta&&0<i.videoTrackMeta.vps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.vps[0]),i.videoTrackMeta)&&0<i.videoTrackMeta.sei.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.sei[0]),g.push(N.createAnnexbStartCode(),e),r.nalType<I.VVC_UNSPEC_31&&(r.nalType===I.VVC_SPS_NUT?(t=new xe(Oe(t.readToUint8())),d.width=t.width,d.height=t.height,d.codec=t.codec,h.push(e)):r.nalType===I.VVC_VPS_NUT?f.push(e):r.nalType===I.VVC_PPS_NUT?_.push(e):r.nalType===I.VVC_PREFIX_SEI_NUT&&y.push(e)),a=N.isNonRefNALType(r.nalType)}),A.concatUint8s(g));p.push(v),f.length&&(d.vps=f),h.length&&(d.sps=h),_.length&&(d.pps=_),y.length&&(d.sei=y),h.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],f.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),h.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),_.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),y.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=d)}else if(t.codecId!==F.H265||this.isHVCC){var m=R.extractAVCCNAL(t.data,3),S={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(s=this.flvMetadata)?void 0:s.width)||0,height:(null==(l=this.flvMetadata)?void 0:l.height)||0,codec:"",pixelRatio:[],live:(null==(c=this.metadata)?void 0:c.live)||!1},T=[],b=[],E=[],w=[];m.forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);16<=r.nalType&&r.nalType<=23&&(o=!0),r.nalType<D.ACCESS_UNIT_DELIMITER&&(r.nalType===D.SPS?(t=new Pe(Oe(t.readToUint8())),T.push(e),S.codec=t.codec,S.width=t.width,S.height=t.height):r.nalType===D.VPS?b.push(e):r.nalType===D.PPS?E.push(e):r.nalType===D.SEI?w.push(e):!H.isSafari||r.nalType===D.TRAIL_R||r.nalType===D.TRAIL_N||r.nalType===D.IDR_W_RADL||r.nalType===D.IDR_N_LP||r.nalType===D.CRA?p.push(e):console.warn("skip this nalu nalType:",r.nalType),a=O.isNonRefNALType(r.nalType))}),b.length&&(S.vps=b),T.length&&(S.sps=T),E.length&&(S.pps=E),w.length&&(S.sei=w),0<T.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],this.videoTrackMeta.sei=[],b.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),T.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),E.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),w.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=S)}else{if(this.skipFrame===se.NONREF&&O.isNonRefNALType(O.extractNALType(t.data,4)))return console.warn("skipFrame isNonRefNALType"),[];var m,P={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(v=this.flvMetadata)?void 0:v.width)||0,height:(null==(s=this.flvMetadata)?void 0:s.height)||0,codec:"",pixelRatio:[],live:(null==(l=this.metadata)?void 0:l.live)||!1},x=[],C=[],k=[],L=[];(m=R.extractAnnexbNAL(t.data)).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);16<=r.nalType&&r.nalType<=23&&(o=!0),r.nalType<D.ACCESS_UNIT_DELIMITER&&(r.nalType===D.SPS?(t=new Pe(Oe(t.readToUint8())),x.push(e),P.codec=t.codec,P.width=t.width,P.height=t.height):r.nalType===D.VPS?C.push(e):r.nalType===D.PPS?k.push(e):r.nalType===D.SEI&&L.push(e)),a=O.isNonRefNALType(r.nalType),p.push(e)}),C.length&&(P.vps=C),x.length&&(P.sps=x),k.length&&(P.pps=k),L.length&&(P.sei=L),x.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],C.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),x.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),k.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),L.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=P)}if(!this.videoLoaded&&this.videoTrackMeta){if(!o)return[];this.videoLoaded=!0,this.baseVideoDTS=e.dts,this.baseVideoPTS=t.cts+e.dts,this.checkMetadata()}this.videoTrackMeta&&t.codecId==F.H265&&o&&(this.videoTrackMeta.pps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.sps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.vps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.sei.forEach(function(e){return p.unshift(e)})),p.length&&(v={trackId:2,codec:(null==(c=this.videoTrackMeta)?void 0:c.codec)||"",trackType:M.VIDEO,isSync:o||t.type===wt.KEY,isNonRef:a,data:p,dts:e.dts,pts:e.dts+t.cts,offset:r,size:p.reduce(function(e,t){return e+t.byteLength},0)},n.push(v))}else U.warn("[videox] flv parse empty data",e,t);return n},f.prototype.parseAudioBody=function(e,t,r){var i,t=new mt(t),n=(this.emit("loadedtag",{header:e,body:t}),[]);return t.packetType===yt.ADTS_HEADER?(i=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),i=mt.readAudioSpecificConfig(i),this.audioTrackMeta={id:1,baseDTS:0,basePTS:0,type:M.AUDIO,codec:"mp4a.40."+i.audioObjectType,timescale:1e3,audioObjectType:i.audioObjectType,sampleRate:i.sampleRate,samplingFrequencyIndex:i.samplingFrequencyIndex,sampleSize:t.sampleSize,channelCount:i.channelCount},this.checkMetadata()):(this.audioLoaded||(this.audioLoaded=!0,this.baseAudioDTS=e.dts,this.baseAudioPTS=e.dts,this.checkMetadata()),n.push({codec:(null==(i=this.audioTrackMeta)?void 0:i.codec)||"",trackId:1,trackType:M.AUDIO,isSync:!0,isNonRef:!1,data:[t.data],dts:e.dts,pts:e.dts,offset:r,size:t.data.byteLength})),n},f.prototype.parseScriptBody=function(e,t){t=new kt(t),this.emit("loadedtag",{header:e,body:t}),e=t.value;e&&"onMetaData"===t.name&&(this.flvMetadata=e,U.info("flv script tag loaded, flv metadata:",this.flvMetadata))},f.prototype.onProgress=function(e){var t=e.data,e=e.offset;t.byteLength&&(t=this.parse(t.buffer,e)).length&&(e=void 0,this.cachePackets.length?(e=this.cachePackets.concat(t),this.cachePackets=[]):e=t,this.metadata&&this.loader.status!==d.SUSPENGING?this.emit("loadeddata",{packets:e}):this.cachePackets=e)},f.prototype.onLoadEnd=function(){this.loader.eof&&this.emit("end",void 0)},f.prototype.seek=function(){},f.prototype.reset=function(){$t.prototype.reset.call(this),this.cachePackets=[],this.videoLoaded=!1,this.audioLoaded=!1,this.baseVideoDTS=0,this.baseVideoPTS=0,this.baseAudioDTS=0,this.baseAudioPTS=0,this.header=null,this.unhandleBuffer=null,this.flvMetadata=null,this.videoTrackMeta=null,this.audioTrackMeta=null};var It=f;Qt=function(e,t){return(Qt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(sr,Yt=v);var h=sr;Kt=function(e,t){return(Kt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Kt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ar,Xt=h);var Ot=ar;zt=function(e,t){return(zt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(or,Gt=Ot);var Nt=or;qt=function(e,t){return(qt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(nr,Wt=v);var Mt=nr;jt=function(e,t){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ir,Vt=h);var Ut=ir;Bt=function(e,t){return(Bt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Bt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(rr,Ht=v);var Ft,Ht,Bt,Vt,jt,Wt,qt,Gt,zt,Xt,Kt,Yt,Qt,$t,Jt,Zt,er,tr=rr,p=(Ft=function(e,t){return(Ft=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ft(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function rr(e,t){var r=Ht.call(this,e,t)||this;r.entries=[],r.version=t.read(1),r.flag=t.read(3),r.entryCount=t.read(4);for(var i=0;i<r.entryCount;i++){var n=1===r.version;r.entries.push({segmentDuration:t.read(n?8:4),mediaTime:t.read(n?8:4),mediaRateInteger:t.read(2),mediaRateFraction:t.read(2)})}return r}function ir(e,t){e=Vt.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.entryCount=t.read(4),e}function nr(e,t){e=Wt.call(this,e,t)||this;return e.bufferSizeDB=t.read(4),e.maxBitrate=t.read(4),e.avgBitrate=t.read(4),e}function or(){return null!==Gt&&Gt.apply(this,arguments)||this}function ar(e,t){var e=Xt.call(this,e,t)||this,r=(t.skip(4),t.skip(2),e.bitReferenceId=t.read(2),e.codeStreamVersion=t.read(4),t.skip(4),t.skip(8),e.width=t.read(2),e.heigth=t.read(2),e.horizontalResolution=t.read(4),e.verticalResolution=t.read(4),t.skip(4),e.frameCount=t.read(2),Math.min(t.read(1),32));return e.compressorName=Array.from(new Array(r)).map(function(){return String.fromCharCode(t.read(1))}).join(""),t.skip(32-(r+1)),e.depth=t.read(2),t.skip(2),e}function sr(){var e=null!==Yt&&Yt.apply(this,arguments)||this;return e.isContainer=!0,e}function f(){var e=null!==$t&&$t.apply(this,arguments)||this;return e.header=null,e.flvMetadata=null,e.videoTrackMeta=null,e.audioTrackMeta=null,e.unhandleBuffer=null,e.cachePackets=[],e.videoLoaded=!1,e.baseVideoPTS=0,e.baseVideoDTS=0,e.audioLoaded=!1,e.baseAudioPTS=0,e.baseAudioDTS=0,e.isHVCC=!1,e.formatType=g.FLV,e}function lr(e,t){var r=Zt.call(this,e,t)||this,e=(r.generalTierFlag=0,r.numBytesConstraintInfo=0,r.generalProfileIdc=0,r.generalLevelIdc=0,r.chromaFormatIdc=0,r.bitDepthLumaMinus8=0,r.bitDepthChromaMinus8=0,r.avgFrameRate=0,r.constantFrameRate=0,r.lengthSizeMinusOne=0,r.olsIdx=0,r.ptlFrameOnlyConstraintFlag=0,r.ptlMultilayerEnabledFlag=0,r.maxPictureWidth=0,r.maxPictureHeight=0,r.nalus=[],r.vps=[],r.sps=[],r.pps=[],r.sei=[],r.codec="",r.codecTag="vvc1",(c=new m(t.read(1),8)).skip(5),c.read(2)),i=c.read(1);if(r.lengthSizeMinusOne=e,i){var e=(c=new m(t.read(3),24)).read(9),n=c.read(3),i=c.read(2),o=c.read(2),a=c.read(3),e=(r.olsIdx=e,r.constantFrameRate=i,r.chromaFormatIdc=o,r.bitDepthLumaMinus8=a,c.skip(5),(c=new m(t.read(2),16)).skip(2),c.read(6)),i=c.read(7),o=c.read(1),a=(r.numBytesConstraintInfo=e,r.generalTierFlag=o,r.generalProfileIdc=i,t.read(1)),o=(r.generalLevelIdc=a,(c=new m(t.read(1),8)).read(1)),i=c.read(1),s=(r.ptlFrameOnlyConstraintFlag=o,r.ptlMultilayerEnabledFlag=i,0),l=(0<e?c.skip(8*e-2):c.read(6),0);if(1<n){for(var c=new m(t.read(1),8),u=0,l=n-2;0<=l;--l)u|=c.read(1)<<l;for(l=n;l<=8&&1<n;++l)c.read(1);for(l=n-2;0<=l;--l)u&1<<l&&(l,t.read(1));var p=t.read(1),d=[];if(p)for(s=0;s<p;s++)d.push(t.readInt(1))}a=t.read(2),o=t.read(2),i=(r.maxPictureWidth=a,r.maxPictureHeight=o,t.read(2));r.avgFrameRate=i}for(var h=t.read(1),f=0,_=0,f=0;f<h;f++){(c=new m(t.read(1),8)).read(1),c.skip(2);var y=c.read(5),g=[],v=0;for(y!=I.VVC_DCI_NUT&&y!=I.VVC_OPI_NUT&&(v=t.read(2)),_=0;_<v;_++)g.push(new Uint8Array(t.read(2)).map(function(){return t.read(1)}));y===I.VVC_VPS_NUT?g.forEach(function(e){return r.vps.push(e)}):y===I.VVC_SPS_NUT?g.forEach(function(e){return r.sps.push(e)}):y===I.VVC_PPS_NUT&&g.forEach(function(e){return r.pps.push(e)})}return r.configVersion=0,r.codec="vvc1.1.L48.CA",r}(e=Lt=Lt||{})[e.OD=1]="OD",e[e.IOD=2]="IOD",e[e.ESD=3]="ESD",e[e.DCD=4]="DCD",e[e.DSD=5]="DSD",e[e.SLCD=6]="SLCD";{en.readSize=function(e){for(var t,r=0,i=4;i--&&(r=r<<7|127&(t=e.read(1)),128&t););return r},en.extractDescriptors=function(e){for(var t,r,i,n=[];e.unreadLength;){if(t=new en(e),i=new A(e.buffer,e.offset,t.size),e.skip(t.size),t.size<=0)return n;switch(t.tag){case Lt.ESD:r=new pr(t,i);break;case Lt.DCD:r=new dr(t,i);break;case Lt.DSD:r=new hr(t,i);break;case Lt.SLCD:r=new fr(t,i);break;default:r=null}r&&i.unreadLength&&(r.children=en.extractDescriptors(i)),n.push(r)}return n};var w,cr=en,ur=(Zi.findDescriptor=function(e,t){var r;return e.some(function(e){return!!(r=e.probe.tag===t?e:Zi.findDescriptor(e.children,t))}),r},Zi),pr=(p(Ji,Ci=ur),Ji),dr=(p($i,xi=ur),$i),hr=(p(Qi,Pi=ur),Qi),fr=(p(Yi,wi=ur),Yi);Ei=function(e,t){return(Ei=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var e,_r=((e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ei(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ki,bi=a),Ki);Ti=function(e,t){return(Ti=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var p,yr=((p=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ti(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Xi,Si=v),Xi);mi=function(e,t){return(mi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var e,gr=((e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}mi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(zi,vi=Ot),zi);gi=function(e,t){return(gi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var p,vr=((p=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}gi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Gi,yi=Ot),Gi);_i=function(e,t){return(_i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var e,mr=((e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(qi,fi=v),qi);hi=function(e,t){return(hi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var p,Sr=((p=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}hi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Wi,di=v),Wi);pi=function(e,t){return(pi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var e,Tr=((e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}pi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ji,ui=v),ji);ci=function(e,t){return(ci=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var p,br=((p=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ci(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Vi,li=h),Vi);si=function(e,t){return(si=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var e,Er=((e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}si(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Bi,ai=v),Bi),wr=(oi=function(e,t){return(oi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Hi),Pr=ni=v;if("function"!=typeof Pr&&null!==Pr)throw new TypeError("Class extends value "+String(Pr)+" is not a constructor or null");function xr(){this.constructor=wr}oi(wr,Pr),wr.prototype=null===Pr?Object.create(Pr):(xr.prototype=Pr.prototype,new xr);var Cr=Hi}ii=function(e,t){return(ii=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Fi,ri=v);var kr=Fi;ti=function(e,t){return(ti=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ti(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ui,ei=v);var Lr=Ui;Zr=function(e,t){return(Zr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Zr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Mi,Jr=v);var Ar=Mi;$r=function(e,t){return($r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$r(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ni,Qr=h);var Rr=Ni;Yr=function(e,t){return(Yr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Yr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Oi,Kr=h);var Dr=Oi;Xr=function(e,t){return(Xr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Xr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ii,zr=a);var Ir=Ii;Gr=function(e,t){return(Gr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Gr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Di,qr=h);var Or=Di;Wr=function(e,t){return(Wr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Wr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ri,jr=a);var Nr=Ri;Vr=function(e,t){return(Vr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Vr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ai,Br=a);var Mr=Ai;Hr=function(e,t){return(Hr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Hr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Li,Fr=a);var Ur,Fr,Hr,Br,Vr,jr,Wr,qr,Gr,zr,Xr,Kr,Yr,Qr,$r,Jr,Zr,ei,ti,ri,ii,ni,oi,ai,si,li,ci,ui,pi,di,hi,fi,_i,yi,gi,vi,mi,Si,Ti,bi,Ei,wi,Pi,xi,Ci,ki=Li,p=(Ur=function(e,t){return(Ur=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ur(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function Li(e,t){e=Fr.call(this,e,t)||this;return 1===e.version?e.baseMediaDecodeTime=t.read(8):e.baseMediaDecodeTime=t.read(4),e}function Ai(e,t){var r=Br.call(this,e,t)||this;r.references=[],r.trackId=t.read(4),r.timescale=t.read(4),0===r.version?(r.pts=t.read(4),r.offset=t.read(4)):(r.pts=t.read(8),r.offset=t.read(8)),t.skip(2),r.references=[];for(var i=t.read(2),n=0;n<i;n++){var o=new m(t.read(4),32),a=t.read(4),s=new m(t.read(4),32);r.references.push({type:o.read(1),size:o.read(31),duration:a,startWithSap:s.read(1),sapType:s.read(3),sapDeltaTime:s.read(28)})}return r}function Ri(e,t){var r=jr.call(this,e,t)||this;r.isLeadings=[],r.sampleDependsOns=[],r.sampleIsDependedOns=[],r.sampleHasRedundancys=[];for(var i=0,n=void 0;i<t.unreadLength;i++)n=new m(t.read(1),8),r.isLeadings[i]=n.read(2),r.sampleDependsOns[i]=n.read(2),r.sampleIsDependedOns[i]=n.read(2),r.sampleHasRedundancys[i]=n.read(2);return r}function Di(){return null!==qr&&qr.apply(this,arguments)||this}function Ii(){return null!==zr&&zr.apply(this,arguments)||this}function Oi(){return null!==Kr&&Kr.apply(this,arguments)||this}function Ni(){return null!==Qr&&Qr.apply(this,arguments)||this}function Mi(e,t){e=Jr.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.graphicsMode=t.read(2),e.opcolor=[t.read(2),t.read(2),t.read(2)],e}function Ui(e,t){e=ei.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e}function Fi(e,t){var r=ri.call(this,e,t)||this;r.matrix=[],r.version=t.read(1),r.flag=t.read(3),r.createTime=r.toStandardTime(t.read(4)),r.modifyTime=r.toStandardTime(t.read(4)),r.trackId=t.read(4),t.skip(4),r.duration=t.read(4),t.skip(8),r.layer=t.read(2),r.alternateGroup=t.read(2),r.volume=Number(t.read(1)+"."+t.read(1)),t.skip(2);for(var i=0;i<9;i++)r.matrix.push(Number(t.read(2)+"."+t.read(2)));return r.width=Number(t.read(2)+"."+t.read(2)),r.height=Number(t.read(2)+"."+t.read(2)),r}function Hi(e,t){var r=ni.call(this,e,t)||this;for(r.data=[];0<t.unreadLength;)r.data.push(t.read(1));return r}function Bi(e,t){var r=ai.call(this,e,t)||this;r.matrix=[],r.version=t.read(1),r.flag=t.read(3),r.createTime=r.toStandardTime(t.read(4)),r.modifyTime=r.toStandardTime(t.read(4)),r.timeScale=t.read(4),r.duration=t.read(4),r.rate=Number(t.read(2)+"."+t.read(2)),r.volume=Number(t.read(1)+"."+t.read(1)),t.skip(10);for(var i=0;i<9;i++)r.matrix.push(Number(t.read(2)+"."+t.read(2)));return t.skip(24),r.nextTrackId=t.read(4),r}function Vi(e,t){e=li.call(this,e,t)||this;return t.skip(6),e.dataReferenceIndex=t.read(2),t.skip(8),e.channelCount=t.read(2),e.sampleSize=t.read(2),t.skip(4),e.sampleRate=t.read(4)>>>16,e}function ji(e,t){function r(e){return 96+(31&e)}var e=ui.call(this,e,t)||this,i=(e.version=t.read(1),e.flag=t.read(3),1===e.version),i=(e.createTime=e.toStandardTime(t.read(i?8:4)),e.modifyTime=e.toStandardTime(t.read(i?8:4)),e.timeScale=t.read(4),e.duration=t.read(i?8:4),t.read(2));return e.language=String.fromCharCode(r(i>>10),r(i>>5),r(i)),e.quality=Number(t.read(1)+"."+t.read(1)),e}function Wi(e,t){var r=di.call(this,e,t)||this;return r.data=t.readToUint8(e.size-e.length),r}function qi(e,t){var r=fi.call(this,e,t)||this;for(r.name="",r.version=t.read(1),r.flag=t.read(3),r.preDefined=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),r.handleType=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),t.skip(12);0<t.unreadLength;)r.name+=String.fromCharCode(t.read(1));return r}function Gi(){return null!==yi&&yi.apply(this,arguments)||this}function zi(){return null!==vi&&vi.apply(this,arguments)||this}function Xi(e,t){var r=Si.call(this,e,t)||this;for(r.compatibleBrands=[],r.majorBrand=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),r.minorVersion=t.read(4);4<=t.unreadLength;)r.compatibleBrands.push(String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)));return r}function Ki(e,t){var e=bi.call(this,e,t)||this,t=(e.descriptors=[],e.audioObjectType=0,e.samplingFrequencyIndex=0,e.descriptors=cr.extractDescriptors(t),ur.findDescriptor(e.descriptors,Lt.DCD)),r=ur.findDescriptor(e.descriptors,Lt.DSD);return r&&(e.audioObjectType=r.audioObjectType,e.samplingFrequencyIndex=r.samplingFrequencyIndex),e.codec=t&&r?"mp4a."+t.mepg4Audio.toString(16)+"."+r.audioObjectType.toString(16):"mp4a",e}function Yi(e,t){e=wi.call(this,e)||this;return e.esId=t.read(2),e}function Qi(e,t){e=Pi.call(this,e)||this,t=new m(t.read(2),16);return e.audioObjectType=t.read(5),e.samplingFrequencyIndex=t.read(4),e.channel=t.read(4),e.frameLengthFlag=t.read(1),e.dependsOnCoreCoder=t.read(1),e.extesionFlag=t.read(1),e}function $i(e,t){e=xi.call(this,e)||this;return e.mepg4Audio=t.read(1),e.audioStream=t.read(1),e.bufferSize=t.read(3),e.maxBitrate=t.read(4),e.avgBitrate=t.read(4),e}function Ji(e,t){e=Ci.call(this,e)||this;return e.streamDependenceFlag=0,e.URLFlag=0,e.OCRStreamFlag=0,e.esId=t.read(2),e.esFlag=t.read(1),128&e.esFlag&&(e.streamDependenceFlag=t.read(2)),64&e.esFlag&&(e.URLFlag=t.read(1),t.skip(e.URLFlag)),32&e.esFlag&&(e.OCRStreamFlag=t.read(2)),e}function Zi(e){this.children=[],this.probe=e}function en(e){this.tag=e.read(1),this.size=en.readSize(e)}(e=w=w||{})[e.BASE_DATA_OFFSET=1]="BASE_DATA_OFFSET",e[e.SAMPLE_DESC=2]="SAMPLE_DESC",e[e.SAMPLE_DUR=8]="SAMPLE_DUR",e[e.SAMPLE_SIZE=16]="SAMPLE_SIZE",e[e.SAMPLE_FLAG=32]="SAMPLE_FLAG",e[e.DUR_EMPTY=65536]="DUR_EMPTY",e[e.DEFAULT_BASE_IS_MOOF=131072]="DEFAULT_BASE_IS_MOOF";p(cn,an=a);var P,tn=cn;on=function(e,t){return(on=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}on(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ln,nn=a);var rn,nn,on,an,sn=ln,e=(rn=function(e,t){return(rn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}rn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function ln(e,t){e=nn.call(this,e,t)||this;return e.trackId=t.read(4),e.defaultSampleDescriptionIndex=t.read(4),e.defaultSampleDuration=t.read(4),e.defaultSampleSize=t.read(4),e.defaultSampleFlag=t.read(4),e}function cn(e,t){e=an.call(this,e,t)||this;return e.baseDataOffset=0,e.defaultSampleDescriptionIndex=0,e.defaultSampleDuration=0,e.defaultSampleSize=0,e.defaultSampleFlag=0,e.trackId=t.read(4),e.flag&w.BASE_DATA_OFFSET&&(e.baseDataOffset=t.read(8)),e.flag&w.SAMPLE_DESC&&(e.defaultSampleDescriptionIndex=t.read(4)),e.flag&w.SAMPLE_DUR&&(e.defaultSampleDuration=t.read(4)),e.flag&w.SAMPLE_SIZE&&(e.defaultSampleSize=t.read(4)),e.flag&w.SAMPLE_FLAG&&(e.defaultSampleFlag=t.read(4)),e}(p=P=P||{})[p.DATA_OFFSET=1]="DATA_OFFSET",p[p.FIRST_FLAG=4]="FIRST_FLAG",p[p.DURATION=256]="DURATION",p[p.SIZE=512]="SIZE",p[p.FLAG=1024]="FLAG",p[p.CTS_OFFSET=2048]="CTS_OFFSET";e(no,qn=a);var un,pn=no;Wn=function(e,t){return(Wn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Wn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(io,jn=v);var dn=io;Vn=function(e,t){return(Vn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Vn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(ro,Bn=v);var hn=ro;Hn=function(e,t){return(Hn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Hn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(to,Fn=v);var fn=to;Un=function(e,t){return(Un=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Un(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(eo,Mn=v);var _n=eo;Nn=function(e,t){return(Nn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Zn,On=h);var yn=Zn;In=function(e,t){return(In=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}In(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Jn,Dn=h);var gn=Jn;Rn=function(e,t){return(Rn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Rn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})($n,An=v);var vn=$n;Ln=function(e,t){return(Ln=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function mn(e){return Array.isArray(e)?e:e?[e]:[]}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ln(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Qn,kn=v);var Sn=Qn,Tn=(Yn.prototype.addTrack=function(e){this.tracks.push(e)},Yn.prototype.getTracks=function(){return this.tracks},Yn.prototype.getTrackById=function(t){return this.tracks.find(function(e){return e.options.id===t})},Yn),bn=function(){return(bn=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},En=(Kn.prototype.getSamples=function(){return this.samples},Kn.prototype.getNextSampleOffset=function(){var e=this.samples[this.nextSampleIndex];return e?e.offset:0},Kn.prototype.addSample=function(e){this.samples.push(e),this.duration+=e.duration},Kn.prototype.processNextSample=function(e,t){void 0===t&&(t=0);var r=this.samples[this.nextSampleIndex];if(r)return this.processSample(e,t,r)},Kn.prototype.processSample=function(e,t,r){var i=(t=void 0===t?0:t)+e.byteLength,t=r.offset-t;if(0<=t&&r.offset+r.size<=i)return this.nextSampleIndex++,bn(bn({},r),{data:e.subarray(t,t+r.size)})},Kn.prototype.processSamples=function(e,t){void 0===t&&(t=0);for(var r=this.samples,i=[],n=this.nextSampleIndex,o=r.length;n<o;n++){var a=this.processSample(e,t,r[n]);if(!a)break;i.push(a)}return i},Kn.prototype.seek=function(e){for(var t,r=e*this.options.timeScale,i=-1,n=-1,o=0,a=this.samples.length;o<a;o++)if((t=this.samples[o]).isSync&&(n=o),t.dts+t.cts>=r){i=n;break}if(-1<i)return this.nextSampleIndex=i,this.samples[i]},Kn),wn=(Xn.prototype.createMedia=function(e){return this._parseMoovJSON(e)},Xn.prototype._parseMoovJSON=function(s){var l=this,e=s.mvhd.box,c=new Tn({duration:e.duration,timeScale:e.timeScale,rate:e.rate,modifyTime:e.modifyTime,createTime:e.createTime});return s.trak&&[].concat(s.trak).forEach(function(e){var t=e.tkhd,e=e.mdia,r=e.mdhd,i=e.hdlr,e=e.minf.stbl,t=t.box,i=i.box,r=r.box,n=Ae[i.handleType],e=l._buildSamples(e,n),o={id:t.trackId,name:i.name,handleType:i.handleType,type:n,createTime:t.createTime,modifyTime:t.modifyTime,layer:t.layer,volume:t.volume,matrix:t.matrix,duration:t.duration,width:t.width,height:t.height,timeScale:r.timeScale,language:r.language,quality:r.quality,defaultSampleDescriptionIndex:1,defaultSampleDuration:0,defaultSampleSize:0,defaultSampleFlag:0},n=null==(i=s.mvex)?void 0:i.trex,a=(n&&[].concat(n).forEach(function(e){e=e.box;o.defaultSampleDescriptionIndex=e.defaultSampleDescriptionIndex,o.defaultSampleDuration=e.defaultSampleDuration,o.defaultSampleSize=e.defaultSampleSize,o.defaultSampleFlag=e.defaultSampleFlag}),new En(o));e.forEach(function(e){return a.addSample(e)}),c.addTrack(a)}),c},Xn.prototype._buildSamples=function(e,n){var o,a,s,l,c,u,p,d,h,f,_,y,g,v,m,S,T,t=e.stts,r=e.stss,i=e.ctts,b=e.stsc,E=e.stsz||e.stz2;return E?(u=e.stco||e.co64,p=b.box,d=null==r?void 0:r.box,h=t.box,f=null==i?void 0:i.box,v=g=y=_=-1,m=0,S=[],(T=E.box.sampleSizes).forEach(function(e,t){var r={},i=p.entries;r.size=e,r.trackType=n,0===t?(a=1,o=0,r.chunkIndex=a,c=i[r.chunkRunIndex=o].samplePerChunk,l=0,s=o+1<i.length?i[o+1].firstChunk-1:1/0):t<c?(r.chunkIndex=a,r.chunkRunIndex=o):(a++,l=0,s<(r.chunkIndex=a)&&(s=++o+1<i.length?i[o+1].firstChunk-1:1/0),c+=i[r.chunkRunIndex=o].samplePerChunk),r.descriptionIndex=i[o].sampleDescriptionIndex-1,r.offset=u.box.chunkOffsets[r.chunkIndex-1]+l,l+=r.size,_<t&&(y++,_=Math.max(_,0),_+=h.sampleCounts[y]),0<t?((e=S[t-1]).duration=h.sampleDurations[y],r.dts=S[t-1].dts+e.duration):r.dts=0,f?(g<=t&&(v++,g=Math.max(g,0),g+=f.sampleCounts[v]),r.cts=f.sampleOffsets[v]):r.cts=0,d?t===d.sampleNumbers[m]-1?(r.isSync=!0,m++):r.isSync=!1:r.isSync=!0,r.isLast=t===T.length-1,S.push(r)}),S):[]},Xn),Pn=(zn.prototype.init=function(e){this.options=e},zn.prototype.parse=function(t){var r=this;mn(t.traf).forEach(function(e){return r._buildSamples(e,t.box)})},zn.prototype._buildSamples=function(e,t){var r=e.tfhd.box,i=this._getTrakById(r.trackId);if(i)for(var n=i.options,o=e.tfdt.box,a=r.flag,s=(a&w.SAMPLE_DESC?r:n).defaultSampleDescriptionIndex,l=(a&w.SAMPLE_DUR?r:n).defaultSampleDuration,c=(a&w.SAMPLE_SIZE?r:n).defaultSampleSize,u=(a&w.SAMPLE_FLAG?r:n).defaultSampleFlag,p=mn(e.trun),d=n.id,h=n.type,f=a&w.BASE_DATA_OFFSET?r.baseDataOffset:a&w.DEFAULT_BASE_IS_MOOF?t.header.start:0,_=0,y=0;y<p.length;y++)for(var g=p[y].box,v=g.flag,m=g.dataOffset+f,S=0;S<g.sampleCount;S++){var T={},b=(T.trackId=d,T.trackType=h,T.descriptionIndex=s,v&P.SIZE?T.size=g.sampleSizes[S]:T.size=c,v&P.DURATION?T.duration=g.sampleDurations[S]:T.duration=l,T.dts=0<_?_:o?o.baseMediaDecodeTime:0,_=T.dts+T.duration,v&P.CTS_OFFSET?T.cts=g.sampleCTSs[S]:T.cts=0,u);v&P.FLAG?b=g.sampleFlags[S]:0===S&&v&P.FIRST_FLAG&&(b=g.firstSampleFlag),T.offset=m,T.flag=b,T.isSync=!(b&(E.IS_NON_SYNC|E.DEPENDS_YES)),T.isLeading=b>>26&3,T.dependsOn=b>>24&3,T.isDependedOn=b>>22&3,T.hasRedundancy=b>>20&3,T.degradationPriority=65535&b,m+=T.size,T.isLast=y===p.length-1&&S===g.sampleCount-1,i.addSample(T)}},zn.prototype.destroy=function(){this.options=null},zn);Cn=function(e,t){return(Cn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Cn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(_,xn=t),_.probe=function(e){return!(e.byteLength<8)&&"ftyp"===[e[4],e[5],e[6],e[7]].map(function(e){return String.fromCharCode(e)}).join("")},_.prototype.processPackets=function(t,r){var e,i=this,n=[];return this.media&&t.byteLength&&(this.media.getTracks().forEach(function(e){e.processSamples(t,r).forEach(function(e){e=i.convertSampleToPacket(e);e&&n.push(e)})}),e=this.getMinNextSampleOffset()-r,this.unhandleBuffer=e>=t.byteLength?null:t.slice(e).buffer),n},_.prototype.seek=function(t){var e,r=this.options.progressive;this.unhandleBuffer=null,r&&this.loader.suspend(),null!=(e=this.media)&&e.getTracks().map(function(e){return e.seek(t)}),r&&this.loader.loadRange(this.getMinNextSampleOffset())},_.prototype.onProgress=function(e){var t=e.data,e=e.offset;t.length&&(this.unhandleBuffer&&(t=A.concatUint8(new Uint8Array(this.unhandleBuffer),t),e-=this.unhandleBuffer.byteLength,this.unhandleBuffer=null),this.metadata||this.parse(new A(t.buffer,0),e),this.metadata)&&((t=this.processPackets(t,e)).length&&this.emit("loadeddata",{packets:t}))},_.prototype.onLoadEnd=function(){this.loader.eof&&this.emit("end",void 0)},_.prototype.getMinNextSampleOffset=function(){return this.media?Math.min.apply(Math,this.media.getTracks().map(function(e){return e.getNextSampleOffset()})):0},_.prototype.parse=function(o,a){var s,l=this;void 0===a&&(a=0);for(var c=o.offset,u=0,p=this;8<=o.unreadLength;){var e=function(){var t,r,e,i,n;return u=o.offset-c,0===(t=new Le(o,a+u)).size?(e=new Error("box [".concat(t.type,"] size \u4e3a 0")),U.error(e),p.emit("error",{code:le.PARSER,message:e.message,origin:e}),"break"):p.options.progressive&&"mdat"===t.type&&!p.metadata?(r=t.start+t.size,p.loader.suspend(),p.unhandleBuffer=null,U.info("\u68c0\u6d4b\u5230mdat box\u5728moov box\u4e4b\u540e\uff0c\u8df3\u8f6cmoov\u8d77\u59cb\u504f\u79fb\u4f4d"),p.loader.loadRange(r).then(function(e){e&&(l.unhandleBuffer=null,l.loader.jump(t.start),l.loader.status!==d.SUSPENGING)&&l.loader.loadRange(t.start,r)}),{value:void 0}):(e=t.size-t.length,o.unreadLength>=e?((n=C[t.type])?(i=new A(o.buffer,o.offset,e),(s=new n(t,i)).isContainer&&((n=new _({sub:!0})).proxy(p,["loadedbox"]),n.parse(i,u+a+t.length),n.removeAllListeners(),n.boxes.forEach(function(e){s.append(e)}))):s=new v(t),o.skip(e),p.boxes.push(s),void p.emit("loadedbox",s)):(o.back(t.length),"break"))}();if("object"==typeof e)return e.value;if("break"===e)break}o.unreadLength&&(this.unhandleBuffer=o.readToBuffer())},_.prototype.reset=function(){xn.prototype.reset.call(this),this.boxes=[],this.unhandleBuffer=null,this.avcCBox=void 0,this.hvcCBox=void 0,this.mp4aBox=void 0,this.media=null,this.moofParser.destroy()};var xn,Cn,kn,Ln,An,Rn,Dn,In,On,Nn,Mn,Un,Fn,Hn,Bn,Vn,jn,Wn,qn,Gn=_;function _(e){var y=xn.call(this,e=void 0===e?{}:e)||this;return y.media=null,y.unhandleBuffer=null,y.formatType=g.MP4,y.boxes=[],y._handleBoxLoad=function(e){var t,o,a,s,l,c,u,p,d,h,f,r,i,_,n=e.header.type;"vvcC"===n?y.vvcCBox=e:"vvc1"===n||"vvi1"===n?y.vvcCBox&&(y.vvcCBox.codecTag=n):"hvcC"===n?y.hvcCBox=e:"hvc1"===n||"hev1"===n?y.hvcCBox&&(y.hvcCBox.codecTag=n):"avcC"===n?y.avcCBox=e:"esds"===n?y.esdsBox=e:"mp4a"===n?y.mp4aBox=e:"moov"===n?(i=v.mapBoxToJSON(e),y.media=y.moovParser.createMedia(i),y.moofParser.init({media:y.media}),r=(i=y.mp4aBox||{}).sampleRate,o=void 0===r?0:r,r=i.sampleSize,a=void 0===r?0:r,r=i.channelCount,s=void 0===r?0:r,r=(i=y.esdsBox||{}).audioObjectType,l=void 0===r?0:r,r=i.samplingFrequencyIndex,c=void 0===r?0:r,r=i.codec,u=void 0===r?"":r,p=[],d=[],h=[],y.hvcCBox?(d=y.hvcCBox.vps,h=y.hvcCBox.pps,p=y.hvcCBox.sps):y.vvcCBox?(h=y.vvcCBox.pps,p=y.vvcCBox.sps,p=y.vvcCBox.sps):y.avcCBox&&(h=y.avcCBox.pps,p=y.avcCBox.sps),r=(i=y.options).live,i=i.progressive,_=(null==(t=y.avcCBox)?void 0:t.codec)||"",y.vvcCBox?(_=y.vvcCBox.codec,f=y.vvcCBox?y.vvcCBox.codecTag:void 0):y.hvcCBox&&(_=y.hvcCBox?y.hvcCBox.codec:(null==(t=y.avcCBox)?void 0:t.codec)||"",f=y.hvcCBox?y.hvcCBox.codecTag:void 0),y.metadata={formatType:g.MP4,live:!!r,progressive:!r&&!!i,url:y.loader.url,basePTS:0,baseDTS:0,duration:y.media.options.duration,timescale:y.media.options.timeScale,tracks:y.media.getTracks().map(function(e){var t,r,i,n={};switch(n.id=e.options.id,n.type=e.options.type,n.timescale=e.options.timeScale,n.baseDTS=0,n.basePTS=0,n.type){case M.VIDEO:n.width=e.options.width,n.height=e.options.height,n.vps=d,n.sps=p,n.pps=h,n.rotate=(t=e.options.matrix).length<5||(r=Math.hypot(t[0],t[3]),i=Math.hypot(t[1],t[4]),0===r)||0===i?0:180*Math.atan2(t[1]/i,t[0]/r)/Math.PI,n.pixelRatio=[],n.codec=_,n.codecTag=f,n.fps=y.computeFps(e,null==(i=y.media)?void 0:i.options);break;case M.AUDIO:n.audioObjectType=l,n.sampleRate=o,n.samplingFrequencyIndex=c,n.sampleSize=a,n.channelCount=s,n.codec=u;break;default:n.type=M.UNKNOWN}return n})},U.info("loadedmetadata metadata:",y.metadata),y.emit("loadedmetadata",y.metadata)):"moof"===n&&(U.info("\u68c0\u6d4b\u5230moof box\u88ab\u52a0\u8f7d\uff0c\u5f53\u524d\u7d20\u6750\u4e3afMP4"),y.moofParser.parse(v.mapBoxToJSON(e)))},y.computeFps=function(e,t){return t?e.getSamples().length/(t.duration/t.timeScale):0},y.convertSampleToPacket=function(e){var t,r,i,n,o,a;return e.trackType===M.VIDEO&&(y.hvcCBox||y.avcCBox||y.vvcCBox)?(t=e.data,r=e.isSync,i=(n=y.hvcCBox||y.avcCBox||y.vvcCBox).lengthSizeMinusOne,n=n.codec,a=!1,y.vvcCBox&&4<t.length&&0===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&(a=!0),o=[],o=a?R.extractAnnexbNAL(t):R.extractAVCCNAL(t,i),a=!1,y.hvcCBox&&(a=o.every(function(e){return O.isNonRef(e)})),y.vvcCBox&&(a=o.every(function(e){N.isNonRef(e)})),r&&(y.hvcCBox?(y.hvcCBox.pps.forEach(function(e){return o.unshift(e)}),y.hvcCBox.sps.forEach(function(e){return o.unshift(e)}),y.hvcCBox.vps.forEach(function(e){return o.unshift(e)})):y.vvcCBox?(y.vvcCBox.pps.forEach(function(e){return o.unshift(e)}),y.vvcCBox.sps.forEach(function(e){return o.unshift(e)}),y.vvcCBox.vps.forEach(function(e){return o.unshift(e)})):y.avcCBox&&(y.avcCBox.pps.forEach(function(e){return o.unshift(e)}),y.avcCBox.sps.forEach(function(e){return o.unshift(e)}))),{codec:n,trackId:e.trackId,trackType:e.trackType,isLast:e.isLast,dts:e.dts,pts:e.cts+e.dts,isSync:e.isSync,isNonRef:a,data:o,size:o.reduce(function(e,t){return e+t.byteLength},0),offset:e.offset}):e.trackType===M.AUDIO&&y.esdsBox?{codec:y.esdsBox.codec,trackId:e.trackId,trackType:e.trackType,dts:e.dts,pts:e.cts+e.dts,isLast:e.isLast,isSync:!0,isNonRef:!1,data:[e.data],size:e.data.byteLength,offset:e.offset}:void 0},y.options=e,y.moovParser=new wn,y.moofParser=new Pn,e.sub||y.on("loadedbox",y._handleBoxLoad),y}function zn(){var r=this;this.options=null,this._getTrakById=function(t){var e;return null==(e=r.options)?void 0:e.media.getTracks().find(function(e){return e.options.id===t})}}function Xn(){}function Kn(e){this.samples=[],this.nextSampleIndex=0,this.duration=0,this.options=e}function Yn(e){this.tracks=[],this.options=e}function Qn(e,t){var r=kn.call(this,e,t)||this;r.sampleCounts=[],r.sampleDurations=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.sampleCounts[n]=t.read(4),r.sampleDurations[n]=t.read(4);return r}function $n(e,t){var r=An.call(this,e,t)||this;r.isContainer=!0,r.sampleSizes=[],r.version=t.read(1),r.flag=t.read(3),r.sampleSize=t.read(4);for(var i=t.read(4),n=0;n<i;n++)0===r.sampleSize?r.sampleSizes.push(t.read(4)):r.sampleSizes.push(r.sampleSize);return r}function Jn(e,t){var r=Dn.call(this,e,t)||this;r.sampleNumbers=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.sampleNumbers.push(t.read(4));return r}function Zn(e,t){e=On.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.entryCount=t.read(4),e}function eo(e,t){var r=Mn.call(this,e,t)||this;r.entries=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.entries.push({firstChunk:t.read(4),samplePerChunk:t.read(4),sampleDescriptionIndex:t.read(4)});return r}function to(e,t){var r=Fn.call(this,e,t)||this;r.chunkOffsets=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.chunkOffsets.push(t.read(8));return r}function ro(e,t){var r=Bn.call(this,e,t)||this;r.chunkOffsets=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.chunkOffsets.push(t.read(4));return r}function io(e,t){var r=jn.call(this,e,t)||this;r.sampleCounts=[],r.sampleOffsets=[],r.version=t.read(1),r.flag=t.read(3),r.entryCount=t.read(4);for(var i=0;i<r.entryCount;i++)r.sampleCounts.push(t.read(4)),r.sampleOffsets.push(t.readInt(4));return r}function no(e,t){var r=qn.call(this,e,t)||this;r.sampleDurations=[],r.sampleSizes=[],r.sampleFlags=[],r.sampleCTSs=[],r.sampleCount=t.read(4),r.flag&P.DATA_OFFSET?r.dataOffset=t.readInt(4):r.dataOffset=0,r.flag&P.FIRST_FLAG?r.firstSampleFlag=t.read(4):r.firstSampleFlag=0;for(var i=0;i<r.sampleCount;i++)r.flag&P.DURATION&&(r.sampleDurations[i]=t.read(4)),r.flag&P.SIZE&&(r.sampleSizes[i]=t.read(4)),r.flag&P.FLAG&&(r.sampleFlags[i]=t.read(4)),r.flag&P.CTS_OFFSET&&(0===r.version?r.sampleCTSs[i]=t.read(4):r.sampleCTSs[i]=t.readInt(4));return r}(p=un=un||{})[p.H264=27]="H264",p[p.H265=36]="H265",p[p.H266=51]="H266",p[p.AAC=15]="AAC";var oo={1:M.VIDEO,2:M.VIDEO,3:M.AUDIO,4:M.AUDIO,5:M.UNKNOWN,6:M.UNKNOWN,7:M.UNKNOWN,8:M.UNKNOWN,9:M.UNKNOWN,10:M.UNKNOWN,11:M.UNKNOWN,12:M.UNKNOWN,13:M.UNKNOWN,14:M.UNKNOWN,15:M.AUDIO,16:M.VIDEO,17:M.AUDIO,18:M.UNKNOWN,19:M.UNKNOWN,20:M.UNKNOWN,21:M.UNKNOWN,22:M.UNKNOWN,23:M.UNKNOWN,24:M.UNKNOWN,25:M.UNKNOWN,26:M.UNKNOWN,27:M.VIDEO,28:M.AUDIO,29:M.UNKNOWN,30:M.VIDEO,31:M.UNKNOWN,32:M.UNKNOWN,33:M.VIDEO,36:M.VIDEO,51:M.VIDEO,66:M.UNKNOWN,127:M.UNKNOWN,128:M.AUDIO,129:M.AUDIO,130:M.AUDIO,131:M.AUDIO,132:M.AUDIO,133:M.AUDIO,134:M.AUDIO,135:M.AUDIO,144:M.UNKNOWN,145:M.UNKNOWN,192:M.UNKNOWN,193:M.AUDIO,194:M.AUDIO,207:M.UNKNOWN,209:M.VIDEO,210:M.VIDEO,219:M.UNKNOWN,234:M.VIDEO};var ao,so=function(e){this.programs=[],this.tableId=e.read(1);var t=new m(e.read(2),16),t=(this.sectionSyntaxIndicator=t.read(1),t.skip(1),t.skip(2),this.sectionLength=t.read(12),this.transportStreamId=e.read(2),new m(e.read(1),8));t.skip(2),this.versionNumber=t.read(5),this.currentNextIndicator=t.read(1),this.sectionNumber=e.read(1),this.lastSectionNumber=e.read(1);for(var r=0;r<this.sectionLength-12;r+=4)this.programs.push({number:e.read(2),pid:8191&e.read(2)});this.crc32=e.read(4)},lo=function(e){this.streamId=e.read(1),this.pesPacketLength=e.read(2);var t=new m(e.read(2),16),t=(t.skip(2),this.pesScramblingControl=t.read(2),this.pesPriority=t.read(1),this.dataAlignmentIndicator=t.read(1),this.copyright=t.read(1),this.originalOrCopy=t.read(1),this.ptsDtsFlags=t.read(2),this.esCRFlag=t.read(1),this.esRateFlag=t.read(1),this.dsmTrickModeFlag=t.read(1),this.additionalCopyInfoFlag=t.read(1),this.pesCRCFlag=t.read(1),this.pesExtensionFlag=t.read(1),this.pesHeaderDataLength=e.read(1),e.offset),t=(2&this.ptsDtsFlags?(this.pts=(14&e.read(1))<<27|e.read(2)>>>1<<13|e.read(2)>>>3,this.pts*=4,e.back(1),this.pts+=(6&e.read(1))>>>1,1&this.ptsDtsFlags?(this.dts=(14&e.read(1))<<27|e.read(2)>>>1<<13|e.read(2)>>>3,this.dts*=4,e.back(1),this.dts+=(6&e.read(1))>>>1):this.dts=this.pts):(this.pts=0,this.dts=0),this.pesHeaderDataLength-(e.offset-t));0<t&&e.skip(t),this.data=e.readToUint8()},co=function(e){this.streams=[],this.tableId=e.read(1);var t=new m(e.read(2),16),t=(this.sectionSyntaxIndicator=t.read(1),t.skip(1),t.skip(2),this.sectionLength=t.read(12),this.programNumber=e.read(2),new m(e.read(1),8));t.skip(2),this.versionNumber=t.read(5),this.currentNextIndicator=t.read(1),this.sectionNumber=e.read(1),this.lastSectionNumber=e.read(1),this.pcrPid=8191&e.read(2),this.programInfoLength=4095&e.read(2);for(var r=12+this.programInfoLength;r<=this.sectionLength-2;r+=5){var i={streamType:e.read(1),pid:8191&e.read(2),esInfoLength:4095&e.read(2)};this.streams.push(i),e.skip(i.esInfoLength),r+=i.esInfoLength}this.crc32=e.read(4)};(e=ao=ao||{})[e.PAT=0]="PAT",e[e.CAT=1]="CAT",e[e.TSDT=2]="TSDT";mo.SYNC_BYTE=71;var uo,po,ho=mo,p=Yo(378),fo=Yo.n(p),_o=(Object.freeze({formatType:g.UNKNOWN,live:!1,progressive:!1,url:"",basePTS:0,baseDTS:0,timescale:0,duration:0,tracks:[]}),Object.freeze({type:M.VIDEO,id:0,baseDTS:0,basePTS:0,timescale:1e3,codec:"",width:0,height:0,vps:[],pps:[],sps:[],sei:[],pixelRatio:[],fps:25,live:!1})),yo=Object.freeze({type:M.AUDIO,id:1,baseDTS:0,basePTS:0,timescale:1e3,codec:"",audioObjectType:2,samplingFrequencyIndex:0,sampleRate:0,sampleSize:16,channelCount:0}),go=(Object.defineProperty(vo.prototype,"size",{get:function(){return this.list.length},enumerable:!1,configurable:!0}),vo.prototype.write=function(e){this.list.push(e)},vo.prototype.read=function(){return this.list.shift()},vo.prototype.readAll=function(){var e=this.list;return this.list=[],e},vo.prototype.clear=function(){this.list=[]},vo),e=(po=function(e,t){return(po=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}po(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function vo(){this.list=[]}function mo(e){var t=new m(e.read(4),32);this.syncByte=t.read(8),this.errorIndicator=t.read(1),this.payloadUnitStartIndicator=t.read(1),this.transportPriority=t.read(1),this.pid=t.read(13),this.transportScramblingControl=t.read(2),this.adaptationFlag=t.read(1),this.payloadFlag=t.read(1),this.continueCounter=t.read(4),this.adaptationFlag&&(t=e.read(1),e.skip(t)),this.payloadUnitStartIndicator&&e.skip(1)}(p=uo=uo||{})[p.UNKNOWN=0]="UNKNOWN",p[p.PAT=1]="PAT",p[p.PES=2]="PES",p[p.PMT=3]="PMT";e(T,Ro=t),T.probe=function(e){if(e.byteLength<1)return!1;for(var t=0,r=e.byteLength;t<r;t+=188)if(e[t]!==ho.SYNC_BYTE)return!1;return!0},T.prototype.splitToTsPacket=function(e){this.unhandleBuffer&&this.unhandleBuffer.byteLength&&(e=A.concat(this.unhandleBuffer,e),this.unhandleBuffer=void 0);for(var t=new Uint8Array(e),r=t.byteLength,i=0;i+188<=r;){if(t[i]!==ho.SYNC_BYTE){var n=new Uint8Array(t.buffer,i).findIndex(function(e){return e===ho.SYNC_BYTE});if(console.warn("[videox] mpegts sync byte error",t[i],i,n),-1<n){i+=n;continue}break}this.parseTsPacket(t.subarray(i,i+188)),i+=188}i<r&&(this.unhandleBuffer=e.slice(i))},T.prototype.parseTsPacket=function(e){var t,e=A.fromUint8(e),r=new ho(e),i=null;r.pid===ao.PAT?(i=new so(e),this.patPrograms=i.programs,this.emitTSPacket(uo.PAT,r,i)):this.patPrograms.some(function(e){return e.pid===r.pid})?(i=new co(e),(t=te()(this.pmtStreams,i.streams))&&this.emitPackets(),this.metadataChanged=t,this.pmtStreams=i.streams,this.emitTSPacket(uo.PMT,r,i)):(t=this.pmtStreams.find(function(e){return e.pid===r.pid}))?(r.payloadUnitStartIndicator&&this.parsePes(),this.prevPesSegments.push(e.readToUint8()),this.prevPesTSHeader=r,this.prevPmtStream=t):this.emitTSPacket(uo.UNKNOWN,r,i)},T.prototype.parsePes=function(){var e,t=this.prevPmtStream;this.prevPesSegments.length&&this.prevPesTSHeader&&t&&(e=A.fromUint8(A.concatUint8s(this.prevPesSegments)),this.prevPesSegments=[],1===e.read(2))&&(e=new lo(e),this.emitTSPacket(uo.PES,this.prevPesTSHeader,e),t.streamType===un.H265||t.streamType===un.H266||t.streamType===un.H264?this.parseVideoPes(e,t):t.streamType===un.AAC&&this.parseAudioPes(e,t))},T.prototype.parseVideoPes=function(e,t){var i,r=Math.round(e.dts/90),n=Math.round(e.pts/90),o=t.streamType===un.H265,a=t.streamType===un.H266,s={},l=!0,c=!1,u=[],p=[],d=[],h=[],e=R.extractAnnexbNAL(e.data);if(a?(i=[],e.forEach(function(e){var t,r=A.fromUint8(e);e.length<4?console.log("skip this too small nalu:",e):(t=new N(r)).nalType<I.VVC_AUD_NUT&&(t.nalType===I.VVC_SPS_NUT?(c=!0,r=new xe(Oe(r.readToUint8())),s.width=r.width,s.height=r.height,s.codec=r.codec,p.push(e)):t.nalType===I.VVC_VPS_NUT?d.push(e):t.nalType===I.VVC_PPS_NUT&&h.push(e),l=N.isNonRefNALType(t.nalType)&&l,i.push(N.createAnnexbStartCode(),e))}),a=A.concatUint8s(i),u.push(a)):e.forEach(function(e){var t,r,i=A.fromUint8(e);e.length<2||(o?(r=new O(i)).nalType<D.ACCESS_UNIT_DELIMITER&&(r.nalType>=D.VPS&&(r.nalType===D.SPS?(c=!0,t=new Pe(Oe(i.readToUint8())),s.width=t.width,s.height=t.height,s.pixelRatio=t.pixelRatio,s.codec=t.codec,p.push(e)):r.nalType===D.VPS?d.push(e):r.nalType===D.PPS&&h.push(e)),!H.isSafari||r.nalType===D.TRAIL_R||r.nalType===D.TRAIL_N||r.nalType===D.IDR_W_RADL||r.nalType===D.IDR_N_LP||r.nalType===D.CRA||r.nalType===D.SPS||r.nalType===D.VPS||r.nalType===D.PPS||r.nalType===D.SEI?u.push(e):console.warn("skip this nalu nalType:",r.nalType),l=O.isNonRefNALType(r.nalType)&&l):((r=new Q(i)).nalType<K.DIVIDER&&(r.nalType===K.SPS?(c=!0,t=new Se(Oe(i.readToUint8())),s.width=t.width,s.height=t.height,s.pixelRatio=t.pixelRatio,s.codec=t.codec,p.push(e)):r.nalType===K.PPS&&h.push(e),u.push(e)),l=!1))}),!this.videoLoaded){if(!c)return;this.videoLoaded=!0,s.baseDTS=r,s.basePTS=n}d.length&&(s.vps=d),p.length&&(s.sps=p),h.length&&(s.pps=h),this.videoMetadata?(this.metadataChanged=re(this.videoMetadata,s),this.metadataChanged&&this.emit("updatedtrackmetadata",this.videoMetadata)):(this.videoMetadata=fo()({},_o,s),this.metadataChanged=!0),this.checkMetadataChanged(),this.packetQueue.write({trackId:t.pid,codec:this.videoMetadata.codec,trackType:M.VIDEO,isSync:c,isNonRef:l,data:u,dts:r,pts:n,size:u.reduce(function(e,t){return e+t.byteLength},0)})},T.prototype.parseAudioPes=function(e,r){var t,i,n,o=this,a={},s=Math.round(e.dts/90),l=Math.round(e.pts/90),e=(this.audioLoaded||(this.audioLoaded=!0,a.baseDTS=s,a.basePTS=l),q(e.data));e.length&&(t=e[0],i="mp4a.40."+t.audioObjectType,a.codec=i,a.audioObjectType=t.audioObjectType,a.sampleRate=t.sampleRate,a.channelCount=t.channelCount,this.audioMetadata?(this.metadataChanged=re(this.audioMetadata,a),this.metadataChanged&&this.emit("updatedtrackmetadata",this.audioMetadata)):(this.audioMetadata=fo()({},yo,a),this.metadataChanged=!0),this.checkMetadataChanged(),n=Math.round(9e4*L/t.sampleRate/90),e.forEach(function(e,t){o.packetQueue.write({trackId:r.pid,codec:i,trackType:M.AUDIO,isSync:!0,isNonRef:!0,data:[e.data],dts:n*t+s,pts:n*t+l,size:e.data.byteLength})}))},T.prototype.checkMetadataChanged=function(){var t,e,r=this;return this.pmtStreams.length&&this.metadataChanged&&(t=[],this.pmtStreams.every(function(e){e=oo[e.streamType];return e===M.VIDEO?(r.videoMetadata&&t.push(r.videoMetadata),!(!r.videoMetadata||!r.videoMetadata.codec)):e!==M.AUDIO||(r.audioMetadata&&t.push(r.audioMetadata),!(!r.audioMetadata||!r.audioMetadata.codec))}))&&(e={formatType:g.MPEGTS,live:!1,progressive:!!this.options.progressive,url:this.loader.url,basePTS:Math.min.apply(Math,t.map(function(e){return e.basePTS||0})),baseDTS:Math.min.apply(Math,t.map(function(e){return e.baseDTS||0})),timescale:1e3,duration:0,tracks:t},this.metadataChanged=!1,this.metadata?re(this.metadata,e)&&this.emit("updatedmetadata",this.metadata):(this.metadata=e,this.emit("loadedmetadata",this.metadata))),this.metadataChanged},T.prototype.emitTSPacket=function(e,t,r){U.debug("loadedtspacket","type:",uo[e],"header:",t,"payload:",r),this.emit("loadedtspacket",{type:e,header:t,payload:r})},T.prototype.emitPackets=function(){var e;this.metadata&&this.loader.status!==d.SUSPENGING&&!this.metadataChanged&&0<this.packetQueue.size&&(e=this.packetQueue.readAll(),this.emit("loadeddata",{packets:e}))},T.prototype.continuousLoad=function(e){return this.loader.load(e)},T.prototype.parse=function(e){this.splitToTsPacket(e),this.emitPackets()},T.prototype.onProgress=function(e){e.data.byteLength&&this.parse(e.data.buffer)},T.prototype.onLoadEnd=function(){this.parsePes(),this.emitPackets(),this.loader.eof&&this.emit("end",void 0)},T.prototype.resume=function(){return this.options.progressive?Ro.prototype.resume.call(this):$o.resolve(!1)},T.prototype.flush=function(){this.unhandleBuffer=void 0,this.prevPesTSHeader=void 0,this.prevPmtStream=void 0,this.prevPesSegments=[]},T.prototype.seek=function(){this.reset(),this.loader.jump(0)},T.prototype.reset=function(){Ro.prototype.reset.call(this),this.flush(),this.audioLoaded=!1,this.videoLoaded=!1,this.packetQueue.clear(),this.patPrograms=[],this.pmtStreams=[],this.metadata=null,this.audioMetadata=void 0,this.videoMetadata=void 0,this.metadataChanged=!1};var So=T;Ao=function(e,t){return(Ao=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var To=function(){return(To=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},bo={M3U:/^#EXTM3U/,INF:/^#EXTINF:?([0-9\.]*)?,?(.*)?(?:\n|\r\n)(.*)$/,X_TARGETDURATION:/^#EXT-X-TARGETDURATION:?([0-9.]*)?/,X_VERSION:/^#EXT-X-VERSION:?([0-9.]*)?/,X_MEDIA_SEQUENCE:/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/,X_DISCONTINUITY_SEQUENCE:/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/,X_PLAYLIST_TYPE:/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/,X_BYTERANGE:/^#EXT-X-BYTERANGE:?(.*)?$/,X_ALLOW_CACHE:/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/,X_MAP:/^#EXT-X-MAP:?(.*)$/,X_STREAM_INF:/^#EXT-X-STREAM-INF:?(.*)$/,X_MEDIA:/^#EXT-X-MEDIA:?(.*)$/,X_ENDLIST:/^#EXT-X-ENDLIST/,X_DISCONTINUITY:/^#EXT-X-DISCONTINUITY/,X_PROGRAM_DATE_TIME:/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/,X_KEY:/^#EXT-X-KEY:?(.*)$/,X_START:/^#EXT-X-START:?(.*)$/,X_CUE_OUT_CONT:/^#EXT-X-CUE-OUT-CONT:?(.*)?$/,X_CUE_OUT:/^#EXT-X-CUE-OUT:?(.*)?$/,X_CUE_IN:/^#EXT-X-CUE-IN:?(.*)?$/,X_SKIP:/^#EXT-X-SKIP:(.*)$/,X_PART:/^#EXT-X-PART:(.*)$/,X_SERVER_CONTROL:/^#EXT-X-SERVER-CONTROL:(.*)$/,X_PART_INF:/^#EXT-X-PART-INF:(.*)$/,X_PRELOAD_HINT:/^#EXT-X-PRELOAD-HINT:(.*)$/,X_RENDITION_REPORT:/^#EXT-X-RENDITION-REPORT:(.*)$/},Eo=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ao(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(S,Lo=t),S.probe=function(e){var t;return 7<=e.byteLength&&(t=[],e.forEach(function(e){return t.push(String.fromCharCode(e))}),bo.M3U.test(t.join("")))},Object.defineProperty(S.prototype,"status",{get:function(){return this.loader.eof?this.mpegtsParser.status===d.IDLE?this.shouldContinuousLoad?d.LOADING:d.SUSPENGING:this.mpegtsParser.status:this.loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this.isLive?1/0:Math.round(1e3*this.segments.reduce(function(e,t){return e+t.duration},0))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentSegment",{get:function(){return this.segments[this.currSegmentIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"prevSegmentsTotalDuration",{get:function(){return this.segments.slice(0,this.currSegmentIndex).reduce(function(e,t){return e+t.duration},0)},enumerable:!1,configurable:!0}),S.prototype.insertSegment=function(t){var e=!this.segments.some(function(e){return e.uri===t.uri});return e&&this.segments.push(t),e},S.prototype.onProgress=function(e){this.bufferSegments.push(e)},S.prototype.onLoadEnd=function(){var r,e,i,n,o,a=this;this.loader.eof&&(e=A.concatUint8s(this.bufferSegments.map(function(e){return e.data})),this.bufferSegments=[],e.byteLength&&(e=(new TextDecoder).decode(e).split(/\n#/).map(function(e){return"#"+e.trim()}),i=0,o=n=!1,e.forEach(function(e){var t=e.match(bo.INF);t?(t={sequence:i,duration:parseFloat(t[1]),uri:new URL(t[3],a.url).href,discontinuity:o},a.insertSegment(t),a.emit("loadedsegment",t)):(r=e.match(bo.X_MEDIA_SEQUENCE))?i=Number(r[1]):bo.X_ENDLIST.test(e)?n=!0:bo.X_DISCONTINUITY.test(e)&&(o=!0)}),this.discontinuity=o,this.isLive=!n,this.segments.length||this.emit("error",{code:le.PARSER,message:"M3U8\u6587\u4ef6\u65e0TS\u6570\u636e"}),this.prevManifestLoadedTime=Date.now(),this.loadSegment()),U.info("hls manifest loaded, all segments length:",this.segments.length))},S.prototype.loadSegment=function(){var e,t,r=this;return this.shouldContinuousLoad?(e=this.segments[this.currSegmentIndex],this.isLive&&!e?(t=1e3*this.m3u8UpdateDuration-(Date.now()-this.prevManifestLoadedTime))<=0?this.loader.load(this.loader.url):new $o(function(e){clearTimeout(r.fetchTimer),r.fetchTimer=setTimeout(function(){e(r.loader.load(r.loader.url))},t)}):e?(this.cachePackets=[],this.m3u8UpdateDuration=e.duration||2,this.currSegmentStartPTS=void 0,this.mpegtsParser.continuousLoad(e.uri)):(this.ended=!0,$o.resolve(!1))):$o.resolve(!1)},S.prototype.suspend=function(){clearTimeout(this.fetchTimer),this.shouldContinuousLoad=!1},S.prototype.resume=function(){var e;return this.cachePackets.length?(e=this.cachePackets,this.cachePackets=[],this.emit("loadeddata",{packets:e}),$o.resolve(!1)):this.shouldContinuousLoad||this.ended?$o.resolve(!1):(this.shouldContinuousLoad=!0,this.loader.eof?this.mpegtsParser.loader.status===d.LOADING||this.mpegtsParser.loader.status===d.ERROR?$o.resolve(!0):this.loadSegment():Lo.prototype.resume.call(this))},S.prototype.seek=function(t){this.ended=!1;var r=0,e=this.segments.findIndex(function(e){return r+=e.duration,t<r});this.currSegmentIndex=-1<e?e:this.segments.length-1,this.cachePackets=[],this.bufferSegments=[],this.mpegtsParser.suspend(),this.mpegtsParser.flush(),this.shouldContinuousLoad=!0,this.loadSegment()},S.prototype.reset=function(){clearTimeout(this.fetchTimer),Lo.prototype.reset.call(this),this.discontinuity=!1,this.cachePackets=[],this.bufferSegments=[],this.shouldContinuousLoad=!0,this.mpegtsParser.reset(),this.segments=[],this.currSegmentIndex=0,this.isLive=!1,this.ended=!1},S.prototype.destroy=function(){Lo.prototype.destroy.call(this),this.mpegtsParser.loader.removeAllListeners(),this.mpegtsParser.destroy()},S),p=Yo(801),wo=Yo.n(p);ko=function(e,t){return(ko=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};function Po(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function xo(e){return e.split("").map(function(e){return e.charCodeAt(0)})}var Co,ko,Lo,Ao,Ro,Do=function(){return(Do=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},Io=["loadedmetadata","updatedmetadata","updatedtrackmetadata","loadeddata","error","end"],Oo=[Gn,Eo,It,So],No=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ko(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(y,Co=ze),y.prototype.createLoader=function(){var e=new tt(this.options);return e.proxy(this,["progress","error"]),e.proxyOnce(this,["loadstart","loadend"]),e.once("progress",this.handleFirstLoadData),e},y.prototype.createParser=function(e){e=new e(Do(Do({},this.options),{loader:this.loader}));return e.proxy(this,Io),e},Object.defineProperty(y.prototype,"skipFrame",{get:function(){return this.activeParser.skipFrame},set:function(e){U.info("\u8bbe\u7f6eskipFrame:",e),wo()(e)||(this.options.skipFrame=e,this.activeParser.skipFrame=e)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"status",{get:function(){return this.activeParser.status},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"url",{get:function(){return this.loader.url},enumerable:!1,configurable:!0}),y.prototype.parse=function(e){U.info("\u6267\u884cparse"),this.loader.reset(),this.handleFirstLoadData({offset:0,data:e}),this.activeParser.onLoadEnd()},y.prototype.load=function(e){return U.info("\u6267\u884cload",e),this.loader.destroy(),this.loader=this.createLoader(),this.loader.load(e)},y.prototype.seek=function(e){return U.info("\u6267\u884cseek",e),this.activeParser.seek(e)},y.prototype.suspend=function(){return this.activeParser.suspend()},y.prototype.resume=function(){return this.activeParser.resume()},y.prototype.destroy=function(){U.info("\u6267\u884cdestory"),this.loader.destroy(),this.activeParser.destroy(),this.removeAllListeners()},y);function y(e){void 0===e&&(e={});var i=Co.call(this)||this;return i.loader=new tt,i.parserClasses=Oo,i.logger=U,i.handleFirstLoadData=function(t){var e,r;t&&((r=i.parserClasses.find(function(e){return e.probe(t.data)}))?(e=i.activeParser.formatType,i.activeParser.destroy(),i.activeParser=i.createParser(r),U.info("\u5207\u6362parser, ".concat(g[e]," -> ").concat(g[i.activeParser.formatType])),i.emit("parserchange",void 0),i.activeParser.onProgress(t)):(r="\u672a\u627e\u5230\u5bf9\u5e94\u7684Parser, Byte\u6570\u636e: "+t.data.slice(0,20).join(","),U.error(r),i.emit("error",{code:le.PARSER,message:r})))},i.options=e,i.loader=i.createLoader(),i.activeParser=i.createParser(i.parserClasses[0]),i.logger.info("demuxer options",e),i}function S(e){var o=Lo.call(this,e)||this;return o.mpegtsParser=new So({progressive:!0,timeout:o.options.timeout}),o.currSegmentIndex=0,o.isLive=!1,o.shouldContinuousLoad=!0,o.ended=!1,o.prevManifestLoadedTime=0,o.fetchTimer=-1,o.discontinuity=!1,o.m3u8UpdateDuration=2,o.bufferSegments=[],o.cachePackets=[],o.formatType=g.HLS,o.segments=[],o.handleTSEnd=function(){o.currSegmentIndex>=o.segments.length-1&&o.emit("end",void 0)},o.handleTSLoadedMetadata=function(e){void 0===o.basePTS&&(o.basePTS=e.basePTS),void 0===o.baseDTS&&(o.baseDTS=e.baseDTS);e=To(To({},e),{formatType:g.HLS,live:o.isLive,progressive:!0,basePTS:o.basePTS,baseDTS:o.baseDTS,duration:o.duration,url:o.loader.url,discontinuity:o.discontinuity});o.metadata?re(o.metadata,e)&&o.emit("updatedmetadata",o.metadata):(o.metadata=e,o.emit("loadedmetadata",o.metadata))},o.handleTSLoadedData=function(e){var t,r,i,n,e=e.packets;e.length&&(null!=(t=o.currentSegment)&&t.discontinuity&&(t=e.slice().sort(function(e,t){return e.pts-t.pts}),void 0===o.currSegmentStartPTS&&(o.currSegmentStartPTS=t[0].pts),r=o.currSegmentStartPTS,i=Math.round(1e3*o.prevSegmentsTotalDuration)+(o.basePTS||0),t.forEach(function(e){var t=e.dts-e.pts;e.pts=i+e.pts-r,e.dts=e.pts+t})),o.cachePackets.length?(n=o.cachePackets.concat(e),o.cachePackets=[]):n=e,o.shouldContinuousLoad?o.emit("loadeddata",{packets:n}):o.cachePackets=n)},o.handleTSLoadEnd=function(){o.currSegmentIndex++,o.loadSegment()},o.mpegtsParser.on("loadedmetadata",o.handleTSLoadedMetadata),o.mpegtsParser.on("updatedmetadata",o.handleTSLoadedMetadata),o.mpegtsParser.on("loadeddata",o.handleTSLoadedData),o.mpegtsParser.on("end",o.handleTSEnd),o.mpegtsParser.loader.on("loadend",o.handleTSLoadEnd),o.mpegtsParser.loader.proxy(o,["error"]),o.mpegtsParser.proxy(o,["updatedtrackmetadata"]),o}function T(){var e=null!==Ro&&Ro.apply(this,arguments)||this;return e.patPrograms=[],e.pmtStreams=[],e.prevPesSegments=[],e.packetQueue=new go,e.audioLoaded=!1,e.videoLoaded=!1,e.metadataChanged=!1,e.metadata=null,e.formatType=g.MPEGTS,e}b.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=new Uint8Array(8),n=[i].concat(t.map(function(e){return new Uint8Array(e)})),o=n.reduce(function(e,t){return e+t.byteLength},0),a=new A(i.buffer);return a.write(4,o),xo(e).forEach(function(e){return a.write(1,e)}),A.concatUint8s(n)},b.prototype.avc1=function(e){var t=e.pixelRatio,r=e.vps,i=new ArrayBuffer(78),n=new A(i),t=(n.write(4,0),n.write(2,0),n.write(2,1),n.write(4,0),n.write(4,0),n.write(4,0),n.write(4,0),n.write(2,e.width),n.write(2,e.height),n.write(4,4718592),n.write(4,4718592),n.write(4,0),n.write(2,1),n.write(1,12),xo("@ali/splayer").forEach(function(e){return n.write(1,e)}),n.skip(19),n.write(2,24),n.write(2,65535),2===t.length?this.pasp(t[0],t[1]):[]);return r.length?this.create("hvc1",i,this.hvcC(e),t):this.create("avc1",i,this.avcC(e),t)},b.prototype.avcC=function(e){var t=e.sps,e=e.pps,r=[],i=[],t=(r.push(t.length),t.forEach(function(e){r.push(e.byteLength>>>8&255),r.push(255&e.byteLength),e.forEach(function(e){return r.push(e)})}),i.push(e.length),e.forEach(function(e){i.push(e.byteLength>>>8&255),i.push(255&e.byteLength),e.forEach(function(e){return i.push(e)})}),new ArrayBuffer(5)),e=new A(t);return e.write(1,1),e.write(1,r[4]||0),e.write(1,r[5]||0),e.write(1,r[6]||0),e.write(1,255),this.create("avcC",t,r,i)},b.prototype.btrt=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,1875072),t.write(4,3e6),t.write(4,3e6),this.create("btrt",e)},b.prototype.pasp=function(e,t){var r=new ArrayBuffer(8),i=new A(r);return i.write(4,e),i.write(4,t),this.create("pasp",r)},b.prototype.dinf=function(){return this.create("dinf",this.dref())},b.prototype.dref=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,1),this.create("dref",e,this.url())},b.prototype.esds=function(e){var t=e.audioObjectType,r=e.sampleRate,e=e.channelCount,i=new ArrayBuffer(33),n=new A(i),o=5<=t,a=(n.write(4,0),n.write(1,3),n.write(1,o?27:25),n.write(2,1),n.write(1,0),n.write(1,4),n.write(1,o?19:17),n.write(1,64),n.write(1,21),n.write(3,0),n.write(4,0),n.write(4,0),n.write(1,5),n.write(1,o?4:2),k.findIndex(function(e){return r===e}));return n.write(1,t<<3|(14&a)>>1),o?(n.write(1,(1&(t=a))<<7|e<<3|(14&t)>>1),n.write(1,(1&t)<<7|8),n.write(1,0)):n.write(1,(1&a)<<7|e<<3),n.back(4),n.skip(4),n.write(1,6),n.write(1,1),n.write(1,2),this.create("esds",i)},b.prototype.ftyp=function(){var e=new ArrayBuffer(16),t=new A(e);return xo("isom").forEach(function(e){return t.write(1,e)}),t.write(4,1),xo("isom").forEach(function(e){return t.write(1,e)}),xo("avc1").forEach(function(e){return t.write(1,e)}),this.create("ftyp",e)},b.prototype.hdlr=function(e){var t=new ArrayBuffer(37),r=new A(t);return r.skip(8),e===M.VIDEO?xo("vide").forEach(function(e){return r.write(1,e)}):e===M.AUDIO&&xo("soun").forEach(function(e){return r.write(1,e)}),r.skip(12),e===M.VIDEO?xo("VideoHandler").forEach(function(e){return r.write(1,e)}):e===M.AUDIO&&xo("SoundHandler").forEach(function(e){return r.write(1,e)}),r.write(1,0),this.create("hdlr",t)},b.prototype.hvcC=function(e){var t=e.vps,r=e.sps,e=e.pps,i=[],t=[{type:D.VPS,data:t},{type:D.SPS,data:r},{type:D.PPS,data:e}],e=(t.forEach(function(e){var t=e.type,e=e.data;i.push(128|t),i.push(e.length>>>8&255),i.push(255&e.length),e.forEach(function(e){i.push(e.byteLength>>>8&255),i.push(255&e.byteLength),e.forEach(function(e){return i.push(e)})})}),new ArrayBuffer(23)),n=new A(e),o=r.length?r[0]:[];n.write(1,1);for(var a=1;a<12;a++)n.write(1,o[a]||0);return n.write(1,0),n.write(2,0),n.write(1,0),n.write(1,1),n.write(1,0),n.write(1,0),n.write(2,0),n.write(1,15),n.write(1,t.length),this.create("hvcC",e,i)},b.prototype.mdat=function(e){return this.create("mdat",e)},b.prototype.mdhd=function(e){var t=new ArrayBuffer(24),r=new A(t);return r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,e.timescale),r.write(4,0),r.write(2,21956),r.write(2,0),this.create("mdhd",t)},b.prototype.mdia=function(e){return this.create("mdia",this.mdhd(e),this.hdlr(e.type),this.minf(e))},b.prototype.mfhd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e),this.create("mfhd",t)},b.prototype.minf=function(e){var t=e.type===M.VIDEO?this.vmhd():this.smhd();return this.create("minf",t,this.dinf(),this.stbl(e))},b.prototype.moof=function(e,t,i){var n=this,t=this.mfhd(t),o=8+t.byteLength+60*e.tracks.length+16*i.length+8,e=e.tracks.map(function(t){var e=i.filter(function(e){return e.trackType===t.type}),r=n.traf(t,e,o);return o+=e.reduce(function(e,t){return e+t.size},0),r});return this.create.apply(this,Po(["moof",t],e,!1))},b.prototype.moov=function(e){var t=this,r=e.tracks.map(function(e){return t.trak(e)});return this.create.apply(this,Po(Po(["moov",this.mvhd(e)],r,!1),[this.mvex(e)],!1))},b.prototype.mp4a=function(e){var t=new ArrayBuffer(28),r=new A(t);return r.write(4,0),r.write(2,0),r.write(2,1),r.write(4,0),r.write(4,0),r.write(2,e.channelCount),r.write(2,e.sampleSize),r.write(4,0),r.write(4,e.sampleRate<<16),this.create("mp4a",t,this.esds(e))},b.prototype.mvex=function(e){var t=this;return this.create.apply(this,Po(["mvex"],e.tracks.map(function(e){return t.trex(e)}),!1))},b.prototype.mvhd=function(e){var t=new ArrayBuffer(100),r=new A(t);return r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,e.timescale),r.write(4,e.duration),r.write(2,1),r.skip(2),r.write(1,1),r.skip(1),r.skip(10),[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0].forEach(function(e){return r.write(1,e)}),r.skip(24),r.write(4,4294967295),this.create("mvhd",t)},b.prototype.sdtp=function(e){var t=e.length,r=new ArrayBuffer(4+t),i=new A(r);i.write(4,0);for(var n=0;n<t;n++){var o=e[n];i.write(1,o.flag)}return this.create("sdtp",r)},b.prototype.smhd=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("smhd",e)},b.prototype.stbl=function(e){return this.create("stbl",this.stsd(e),this.stts(),this.stsc(),this.stsz(),this.stco())},b.prototype.stco=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stco",e)},b.prototype.stsc=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stsc",e)},b.prototype.stsd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,1),e.type===M.VIDEO?this.create("stsd",t,this.avc1(e)):e.type===M.AUDIO?this.create("stsd",t,this.mp4a(e)):this.create("stsd",t)},b.prototype.stsz=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,0),t.write(4,0),t.write(4,0),this.create("stsz",e)},b.prototype.stts=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stts",e)},b.prototype.tkhd=function(e){var t=new ArrayBuffer(84),r=new A(t);return r.write(4,7),r.write(4,0),r.write(4,0),r.write(4,e.id),r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,0),r.write(1,0),r.write(1,0),r.write(2,0),[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0].forEach(function(e){return r.write(1,e)}),r.write(2,e.width||0),r.write(2,0),r.write(2,e.height||0),r.write(2,0),this.create("tkhd",t)},b.prototype.tfdt=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e),this.create("tfdt",t)},b.prototype.tfhd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e.id),this.create("tfhd",t)},b.prototype.traf=function(e,t,r){void 0===r&&(r=0);var i=t.length?t[0].dts:0;return this.create("traf",this.tfhd(e),this.tfdt(i),this.trun(t,r))},b.prototype.trak=function(e){return this.create("trak",this.tkhd(e),this.mdia(e))},b.prototype.trex=function(e){var t=new ArrayBuffer(24),r=new A(t);return r.write(4,0),r.write(4,e.id),r.write(4,1),r.write(4,0),r.write(4,0),r.write(4,65537),this.create("trex",t)},b.prototype.trun=function(e,t){var r=e.length,i=new ArrayBuffer(12+16*r),n=new A(i);n.write(4,3841),n.write(4,e.length),n.write(4,t);for(var o=0;o<r;o++){var a=e[o];n.write(4,a.duration),n.write(4,a.size),n.write(4,a.flag),n.write(4,a.cts)}return this.create("trun",i)},b.prototype.vmhd=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,1),t.write(2,0),t.write(2,0),t.write(2,0),t.write(2,0),this.create("vmhd",e)},b.prototype.url=function(){var e=new ArrayBuffer(4);return new A(e).write(4,1),this.create("url ",e)};var Mo=b;function b(){}Fo.createSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return new Uint8Array},Fo.FRAME_DURATION=1024;var Uo=Fo;function Fo(){}Ko.prototype.updateConfig=function(e){Object.assign(this.config,e)},Ko.prototype.createInitSegment=function(){var e=A.concatUint8(this.generator.ftyp(),this.generator.moov(this.config));return this.offset=e.byteLength,e},Ko.prototype.createSegment=function(i){var n,e,o=this;return i.length?(n=[],this.config.tracks.forEach(function(t){var e,r=i.filter(function(e){return e.trackType===t.type});r.length&&(e=null,t.type===M.VIDEO?e=o.recaculateVideoSamples(r,t):t.type===M.AUDIO&&(e=o.recaculateAudioSamples(r,t)),e)&&(n.push(o.generator.moof(o.config,++o.sequenceNumber,e)),n.push(o.generator.mdat(A.concatUint8s(e.map(function(e){return e.data})))))}),e=A.concatUint8s(n),this.offset+=e.byteLength,e):new Uint8Array},Ko.prototype.createSlientFrames=function(e,t,r,i){var n=[];if(1.5*i<r){this.logger.warn("remux audio found pts hole at pts:",e,"timestamp:",(e-this.config.basePTS)/t.timescale,"gap duration:",r,"sample duration:",i);for(var o=Uo.createSilentFrame(t.codec,t.channelCount),a=Math.ceil(r/i),s=0;s<a;s++)n.push({flag:E.DEPENDS_NO,trackType:M.AUDIO,dts:e+i*s,cts:0,duration:i,size:o.byteLength,data:o,isSync:!0});n.length&&(n[n.length-1].duration=r-(a-1)*i)}return n},Ko.prototype.recaculateAudioSamples=function(e,t){var r=[];this.prevAudioPacket&&(e.unshift(this.prevAudioPacket),this.prevAudioPacket=void 0);var i,n,o=Math.round(Uo.FRAME_DURATION/t.sampleRate*t.timescale);!this.audioInited&&e.length&&(this.audioInited=!0,n=e[0].pts-this.config.basePTS,this.createSlientFrames(this.config.basePTS,t,n,o).forEach(function(e){r.push(e)}));for(var a,s,l=0,c=0,u=e.length;l<u;l++){if(i=e[l],a=e[l+1]){if((c=a.dts-i.dts)<0){if(!((a=e.findIndex(function(e){return i.dts<e.dts}))>l+1))break;c=e[a].dts-i.dts,l=a-1,this.logger.warn("remux audio found pts overlap at pts:",i.pts,"timestamp:",(i.pts-(this.config.basePTS||0))/t.timescale,"gap duration:",c,"sample duration:",o)}}else{if(!i.isLast||!r.length){this.prevAudioPacket=i;break}c=r[r.length-1].duration}0<c&&((a=this.createSlientFrames(i.pts+o,t,c-o,o)).length&&(c=o),s=A.concatUint8s(i.data),r.push({flag:E.DEPENDS_NO,trackType:M.AUDIO,size:s.byteLength,dts:i.dts,cts:i.pts-i.dts,duration:c,data:s,isSync:!0}),a.forEach(function(e){r.push(e)}))}return r.length&&this.recaculateSample(r[0],this.config.baseDTS),r},Ko.prototype.recaculateVideoSamples=function(o,a){var t;this.prevVideoPacket&&(o.unshift(this.prevVideoPacket),this.prevVideoPacket=void 0),this.videoInited||(this.videoInited=!0,t=Math.min.apply(Math,o.map(function(e){return e.pts})),o.find(function(e){return e.pts===t}).pts=this.config.basePTS);for(var s,l,c,u,p=[],d=this,e=0,r=0,i=0,n=o.length;e<n;e++){var h=function(e,t,r,i){if(s=o[e],l=o[e+1]){if((r=l.dts-s.dts)<0){for(l.dts=s.dts,t=e+1;t<i-1;t++)o[t].dts>o[t+1].dts&&(o[t+1].dts=o[t].dts);d.logger.warn("remux video found pts overlap at pts:",s.pts,"timestamp:",(s.pts-d.config.basePTS)/a.timescale,"gap packet number:",t-e,"gap duration:",r),r=0}}else{if(!s.isLast||!p.length)return d.prevVideoPacket=s,c=t,u=r,"break";r=p[p.length-1].duration}var n;0<=r&&(n=[],s.data.forEach(function(e){n.push(Q.createAVCCStartCode(e.length),e)}),e=A.concatUint8s(n),p.push({flag:s.isSync?E.DEPENDS_NO:E.IS_NON_SYNC|E.DEPENDS_YES,trackType:M.VIDEO,size:e.byteLength,dts:s.dts,cts:s.pts-s.dts,duration:r,data:e,isSync:s.isSync})),c=t,u=r}(e,r,i,n),r=c,i=u;if("break"===h)break}return p.length&&this.recaculateSample(p[0],this.config.baseDTS),p},Ko.prototype.recaculateSample=function(e,t){t=e.dts-t;return e.dts=t,e},Ko.prototype.flush=function(){this.prevAudioPacket=void 0,this.prevVideoPacket=void 0};var Ho=Ko;Wo=function(e,t){return(Wo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Wo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Xo,jo=ze),Xo.prototype.end=function(){this.emit("end",void 0)},Xo.prototype.pipe=function(t,r){return r?this.on("data",function(e){return t.write(r(e))}):this.on("data",function(e){return t.write(e)}),this.on("end",function(){return t.end()}),t};e=Xo;Vo=function(e,t){return(Vo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Bo,Vo,jo,Wo,qo=function(){return(qo=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},Go=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Vo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(zo,Bo=e),zo.prototype.remux=function(e,t){var r=this.remuxerMap.get(e);r&&t.length&&this.emit("data",{type:e,buffer:r.createSegment(t).buffer,eos:!!t[t.length-1].isLast})},zo.prototype.eos=function(){var r=this;this.pendingPacketsMap.forEach(function(e,t){r.pendingPacketsMap.delete(t),r.remux(t,e)})},zo.prototype.writeMetadata=function(e){var t=this;(this.metadata=e).tracks.forEach(function(e){return t.writeTrackMetadata(e)})},zo.prototype.writeTrackMetadata=function(e){this.eos();var t=this.remuxerMap.get(e.type);t&&(t.updateConfig(qo(qo({},this.metadata),{tracks:[e]})),this.emit("data",{type:e.type,buffer:t.createInitSegment().buffer,eos:!1}))},zo.prototype.write=function(e){var r=this,e=e.packets,i=this.pendingPacketsMap;e.forEach(function(e){var t=i.get(e.trackType);t?(t.push(e),10<=t.length&&(i.set(e.trackType,[]),r.remux(e.trackType,t))):i.set(e.trackType,[e])})},zo.prototype.flush=function(){this.remuxerMap.forEach(function(e){return e.flush()}),this.pendingPacketsMap.clear()},zo.prototype.end=function(){this.eos(),Bo.prototype.end.call(this)},zo);function zo(){var e=Bo.call(this)||this;return e.remuxerMap=new Map,e.pendingPacketsMap=new Map,e.metadata={},e.remuxerMap.set(M.VIDEO,new Ho),e.remuxerMap.set(M.AUDIO,new Ho),e}function Xo(){return null!==jo&&jo.apply(this,arguments)||this}function Ko(){this.logger=new ye("remux"),this.generator=new Mo,this.config={formatType:g.MP4,live:!1,progressive:!1,url:"",basePTS:0,baseDTS:0,timescale:0,duration:0,tracks:[]},this.sequenceNumber=0,this.offset=0,this.videoInited=!1,this.audioInited=!1,this.lastPacketMap=new Map}}(),Qo;function Yo(e){var t=i[e];return void 0!==t||(t=i[e]={id:e,loaded:!1,exports:{}},r[e](t,t.exports,Yo),t.loaded=!0),t.exports}var r,i,Qo},"object"==typeof r&&"object"==typeof t?t.exports=i():"object"==typeof r?r.VideoxMuxer=i():e.VideoxMuxer=i()},{"es6-promise":1}],43:[function(e,t,r){function a(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()}var s=e("./vttparse");t.exports={parse:function(e,t,r){var i,e=e.trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),n=[],o=new s;o.oncue=function(e){e.id=a(e.startTime)+a(e.endTime)+a(e.text),e.text=decodeURIComponent(escape(e.text)),e.isBig=!1;var t=e.text.split("#xywh=");2==t.length&&(t=t[1].split(","),e.x=t[0],e.y=t[1],e.w=t[2],e.h=t[3],e.isBig=!0),0<e.endTime&&n.push(e)},o.onparsingerror=function(e){i=e},o.onflush=function(){i&&r?(r(i),console.log(i)):t(n)},e.forEach(function(e){o.parse(e+"\n")}),o.flush()}}},{"./vttparse":45}],44:[function(e,t,r){function S(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function T(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)e[r]=i[r]}return e}function i(e,t,r){var i=this,n=function(){if("undefined"!=typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)}(),o={},a=(n?i=document.createElement("custom"):o.enumerable=!0,i.hasBeenReset=!1,""),s=!1,l=e,c=t,u=r,p=null,d="",h=!0,f="auto",_="start",y=50,g="middle",v=50,m="middle";if(Object.defineProperty(i,"id",T({},o,{get:function(){return a},set:function(e){a=""+e}})),Object.defineProperty(i,"pauseOnExit",T({},o,{get:function(){return s},set:function(e){s=!!e}})),Object.defineProperty(i,"startTime",T({},o,{get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",T({},o,{get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",T({},o,{get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",T({},o,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",T({},o,{get:function(){return d},set:function(e){e="string"==typeof(e=e)&&!!b[e.toLowerCase()]&&e.toLowerCase();if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",T({},o,{get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",T({},o,{get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",T({},o,{get:function(){return _},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",T({},o,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",T({},o,{get:function(){return g},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",T({},o,{get:function(){return v},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",T({},o,{get:function(){return m},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),i.displayState=void 0,n)return i}var b,n;t.exports="undefined"!=typeof window&&window.VTTCue?window.VTTCue:(b={"":!0,lr:!0,rl:!0},n={start:!0,middle:!0,end:!0,left:!0,right:!0},i.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},i)},{}],45:[function(e,t,r){function i(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}}var s=e("./vttcue");function n(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new i,this.regionList=[]}function l(){this.values=Object.create(null)}function c(e,t,r,i){var n,o,a=i?e.split(i):[e];for(n in a)"string"==typeof a[n]&&2===(o=a[n].split(r)).length&&t(o[0],o[1])}l.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var u=new s(0,0,0),p="middle"===u.align?"middle":"center";function d(i,e,o){var t,a,n=i;function r(){var e,t=(t=(t=i).match(/^(\d+):(\d{2})(:\d{2})?(\.\d{3})?/))?(e=(e=t[4])&&e.replace(".",""),t[3]?r(t[1],t[2],t[3].replace(":",""),e):59<t[1]?r(t[1],t[2],0,e):r(0,t[1],t[2],e)):null;function r(e,t,r,i){return 3600*(0|e)+60*(0|t)+(0|r)+(0|i)/1e3}if(null===t)throw new Error("Malformed timestamp: "+n);return i=i.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){i=i.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),"--\x3e"!==i.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);i=i.substr(3),s(),e.endTime=r(),s(),t=i,e=e,a=new l,c(t,function(e,t){switch(e){case"region":for(var r=o.length-1;0<=r;r--)if(o[r].id===t){a.set(e,o[r].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),n=i[0];a.integer(e,n),a.percent(e,n)&&a.set("snapToLines",!1),a.alt(e,n,["auto"]),2===i.length&&a.alt("lineAlign",i[1],["start",p,"end"]);break;case"position":i=t.split(","),a.percent(e,i[0]),2===i.length&&a.alt("positionAlign",i[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start",p,"end","left","right"])}},/:/,/\s/),e.region=a.get("region",null),e.vertical=a.get("vertical",""),"auto"===(t=a.get("line","auto"))&&-1===u.line&&(t=-1),e.line=t,e.lineAlign=a.get("lineAlign","start"),e.snapToLines=a.get("snapToLines",!0),e.size=a.get("size",100),e.align=a.get("align",p),"auto"===(t=a.get("position","auto"))&&50===u.position&&(t="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=t}n.prototype={parse:function(e){var i=this;function t(){for(var e=0,t=(t=i.buffer).replace(/<br(?: \/)?>/gi,"\n");e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var r=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,i.buffer=t.substr(e),r}e&&(i.buffer+=i.decoder.decode(e,{stream:!0}));try{if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var r,n=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!n||!n[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var o=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(o?o=!1:r=t(),i.state){case"HEADER":/:/.test(r)?c(r,function(e,t){"Region"===e&&console.log("parse region",t)},/:/):r||(i.state="ID");continue;case"NOTE":r||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){i.state="NOTE";break}if(!r)continue;if(i.cue=new s(0,0,""),i.state="CUE",-1===r.indexOf("--\x3e")){i.cue.id=r;continue}case"CUE":try{d(r,i.cue,i.regionList)}catch(e){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(o=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=r;continue;case"BADCUE":r||(i.state="ID");continue}}}catch(e){"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),!this.cue&&"HEADER"!==this.state||(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Error("Malformed WebVTT signature.")}catch(e){throw e}return this.onflush&&this.onflush(),this}},t.exports=n},{"./vttcue":44}],46:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,t,r){t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1})}var o=e("./vtt-parser"),s=e("./vtt-renderer"),l=e("./vtt-loader"),c=e("../../player/base/event/eventtype"),u=e("../../lib/ua"),p=e("../../lib/event"),d=e("../../ui/component/util"),e=function(){function e(e){this.parser=null,this.activeRenderer=null,this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.tickTimer=null,this.prevPosition=null,this._enabled=!1,this._isShow=!1,this.sleeper=new h,this.player=(e=e||{}).player,this.loader=new l,this.parser=new o,this.createRendererInstance(),this.bindEvents()}var t=e.prototype;return t.bindEvents=function(){function e(e){e.paramData.splayer&&r.switchRenderer(s.VttBasicRenderer.RENDER_TYPE_CUSTOM)}var t,r=this,i=this,n=this.player,o=(n.on(c.Private.TextTrackFounded,function(e){if("user"===e.paramData.from)r.hasUserTracks=!0;else if(r.hasUserTracks)return;e=e.paramData.textTracks;e&&e.length&&(r.enabled=!0,r.trackConfigs=e.map(function(e){return a({},e,{label:e.label||e.srclang,language:e.srclang})}),r.trackConfigs.forEach(function(e){r.activeRenderer.addTrack(e),"always"===n.getOptions().controlBarVisibility&&r.activeRenderer.forceUpdateCuesStyle({transform:"translateY(-44px)"},r.parser.cues)}))}),n.on(c.Private.UserTrackReset,function(){r.hasUserTracks=!1}),n.on(c.Player.H265PlayInfo,e),n.on(c.Player.H266PlayInfo,e),u.IS_IOS?(t=!1,n.on(c.Player.RequestFullScreen,function(){t=!0}),p.on(n.tag,"webkitendfullscreen",function(){t=!1}),p.on(n.tag.textTracks,"change",function(){var e;r.sleeper.isSleep||(r.sleeper.sleep(1e3),r.isCustomRenderer)||t&&(e=n.tag.textTracks,(e=Array.from(e).find(function(e){return"showing"===e.mode}))?r.activeTrackConfig&&r.activeTrackConfig.language===e.language||(r.switchTrack(e.language),n.trigger(c.Private.SelectorValueChange,{type:"cc",text:e.label})):n.trigger(c.Private.CCStateChanged,{value:"off",lang:""}))})):(n.on(c.Player.RequestFullScreen,this.adjustLayout.bind(this)),n.on(c.Player.CancelFullScreen,this.adjustLayout.bind(this)),o=d.debounce(function(){i.isCustomRenderer&&i.activeRenderer.resetCuesStyle(r.parser.cues)},100),p.on(window,"resize",o)),d.throttle(function(){i.isShow&&(i.activeRenderer.forceUpdateCuesStyle({transform:"translateY(-44px)"},i.parser.cues),i.player.paused())&&(i.activeRenderer.hide(),i.activeRenderer.restore())},100)),o=(n.on(c.Private.ShowBar,o),d.throttle(function(){i.isShow&&(i.activeRenderer.forceUpdateCuesStyle({transform:"none"},i.parser.cues),i.player.paused())&&(i.activeRenderer.hide(),i.activeRenderer.restore())},100));n.on(c.Private.HideBar,o),n.on(c.Private.VttHide,function(){r.hide()}),n.on(c.Private.VttSwitchTrack,function(e){r.switchTrack(e.paramData)}),n.on(c.Private.VttClearTracks,function(){r.reset()})},t.createRendererInstance=function(e){this.activeRenderer&&this.activeRenderer.dispose();var t=this.player.getOptions(),r={player:this.player};this.adaptPlatform(),e?e===s.VttBasicRenderer.RENDER_TYPE_NATIVE?this.activeRenderer=new s.NativeRenderer(r):(r.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(r)):t.useNativeTextRenderer?this.activeRenderer=new s.NativeRenderer(r):(r.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(r))},t.switchTrack=function(t){var e,r=this;this.trackConfigs&&this.trackConfigs.length&&(this.activeTrackConfig&&(this.parser.dispose(),this.parser=new o,this.activeRenderer.clearTrack(this.activeTrackConfig.language),this.activeRenderer.hide()),this.activeTrackConfig=t,e=this.trackConfigs.find(function(e){return e.language===t}))&&(e=e._loaded?"":(e||{}).src,this.loadVtt(e,function(){r.parseVtt(),r.activeRenderer.addCues(r.parser.cues,r.activeTrackConfig.language),r.show()}))},t.adaptPlatform=function(){var e=this.player.getOptions();u.IS_IOS&&(e.useNativeTextRenderer=!0)},t.loadVtt=function(e,t){var r=this;e?this.loader.loadFromUrl(e,function(e){r.activeTrackConfig._loaded=!0,r.vttText[r.activeTrackConfig.language]=e,t&&t()}):t&&t()},t.show=function(){this._isShow=!0,this.isCustomRenderer&&this.startTickTimeListener(),this.activeRenderer.show(this.activeTrackConfig.language);var e=this.player.el().getElementsByClassName("prism-controlbar")[0];e&&"block"===(null==(e=e.style)?void 0:e.display)&&this.activeRenderer.forceUpdateCuesStyle({transform:"translateY(-44px)"},this.parser.cues)},t.hide=function(){this._isShow=!1,this.clearTicker(),this.activeRenderer.hide()},t.switchRenderer=function(e){var t=this,r=s.VttBasicRenderer.RENDER_TYPE_NATIVE,i=s.VttBasicRenderer.RENDER_TYPE_CUSTOM;(e===r&&this.activeRenderer.type!==r||e===i&&this.activeRenderer.type!==i)&&(this.createRendererInstance(e),this.trackConfigs.forEach(function(e){return t.activeRenderer.addTrack(e)}),this.activeRenderer.addCues(this.parser.cues,this.activeTrackConfig.language),this.show())},t.parseVtt=function(){this.parser.parse(this.vttText[this.activeTrackConfig.language])},t.adjustLayout=function(){var e=this;this.isShow&&this.isCustomRenderer&&(this.activeRenderer.hide(),setTimeout(function(){e.activeRenderer.restore()},300))},t.startTickTimeListener=function(){var t=this;this.clearTicker(),this.tick(function(){var e=t.player.getCurrentTime();isNaN(e)||t.activeRenderer.renderCues(t.findTargetCues(e))})},t.tick=function(e){var t=this;this.tickTimer=requestAnimationFrame(function(){try{e()}catch(e){console.log("e",e)}t.tick(e)})},t.clearTicker=function(){this.tickTimer&&(cancelAnimationFrame(this.tickTimer),this.tickTimer=null)},t.getOverlayId=function(){var e=(this.player.el().getElementsByClassName("prism-text-overlay")||[])[0];if(e)return e.id},t.findTargetCues=function(e){if(this.parser&&e!==this.prevPosition){this.prevPosition=e;for(var t=[],r=0;r<this.parser.cues.length;r++){var i=this.parser.cues[r];if(e>=i.startTime&&e<=i.endTime)t.push(i);else if(e<i.startTime)break}return t}},t.reset=function(){this.clearTicker(),this.parser&&this.parser.reset(),this.activeRenderer&&this.activeRenderer.reset()},t.dispose=function(){this.clearTicker(),this.parser&&(this.parser.dispose(),this.parser=null),this.activeRenderer&&(this.activeRenderer.dispose(),this.activeRenderer=null),this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.prevPosition=null,this._enabled=!1,this._isShow=!1},n(e,[{key:"isShow",get:function(){return this._isShow}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e}},{key:"isCustomRenderer",get:function(){if(this.activeRenderer)return this.activeRenderer.type===s.VttBasicRenderer.RENDER_TYPE_CUSTOM}},{key:"activeTrackConfig",get:function(){var e;return null==(e=this.trackConfigs)?void 0:e.find(function(e){return e._isActive})},set:function(t){this.trackConfigs.forEach(function(e){return e._isActive=e.language===t})}}]),e}(),h=function(){function e(){this.value=!1,this.timer=null}return e.prototype.sleep=function(e){var t=this;this.timer&&clearTimeout(this.timer),this.value=!0,this.timer=setTimeout(function(){t.value=!1},e)},n(e,[{key:"isSleep",get:function(){return this.value}}]),e}();t.exports=e},{"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../../ui/component/util":132,"./vtt-loader":48,"./vtt-parser":49,"./vtt-renderer":50}],47:[function(e,t,r){function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function n(e,t){e.prototype=Object.create(t.prototype),o(e.prototype.constructor=e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,r){t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1})}var l=e("../../lib/data"),c={DISABLED:"disabled",SHOWING:"showing",HIDDEN:"hidden"},u={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",METADATA:"metadata",CHAPTERS:"chapters"},e=function(r){function e(e){var e=i({},e=void 0===e?{}:e,{kind:e.kind||u.SUBTITLES,language:e.language||e.srclang||""}),t=e.mode||c.DISABLED;e.default;return-1<[u.METADATA,u.CHAPTERS].indexOf(e.kind)&&(t=c.HIDDEN),e.mode=t,(t=r.call(this,e)||this)._cues=[],t._activeCues=[],t._settings={},t._nativeTrack=null,t._extData={},t._settings=e,t}n(e,r);var t=e.prototype;return t.setExtData=function(e){this._extData=i({},this._extData,e=void 0===e?{}:e)},t.addCue=function(e){this._cues.push(e),this.nativeTrack&&this.nativeTrack.addCue(e)},t.removeCue=function(t){this._cues=this._cues.filter(function(e){return e!==t}),this.nativeTrack&&this.nativeTrack.removeCue(t)},s(e,[{key:"default",get:function(){return this._settings.default}},{key:"mode",get:function(){return this._settings.mode},set:function(e){this._settings.mode=e,this.nativeTrack&&(this.nativeTrack.mode=e)}},{key:"language",get:function(){return this._settings.language},set:function(e){this._settings.language=e,this.nativeTrack&&(this.nativeTrack.language=e)}},{key:"cues",get:function(){return this._cues}},{key:"activeCues",get:function(){return this._activeCues}},{key:"nativeTrack",get:function(){return this._nativeTrack},set:function(e){this._nativeTrack=e}}]),e}(function(){function e(e){this._id=(e=void 0===e?{}:e).id||"prism-track-"+l.guid(),this._kind=e.kind||"",this._language=e.language||"",this._label=e.label||""}return s(e,[{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"id",get:function(){return this._id}},{key:"kind",get:function(){return this._kind}},{key:"language",get:function(){return this._language}}]),e}()),p=function(e){function t(){return e.call(this)||this}return n(t,e),t}(function(){function e(){this._trackList=[]}return e.prototype.addTrack=function(e){var t=this.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this._trackList[t]}}),-1===this._trackList.indexOf(e)&&this._trackList.push(e)},s(e,[{key:"length",get:function(){return this._trackList.length}},{key:"list",get:function(){return this._trackList}}]),e}());t.exports.TextTrack=e,t.exports.TextTrackList=p,t.exports.TRACK_MODE=c,t.exports.TRACK_KIND=u},{"../../lib/data":24}],48:[function(e,t,r){var i=e("../io");t.exports=function(){function e(){}return e.prototype.loadFromUrl=function(e,t){i.get(e,function(e){t(e)},function(e,t){console.log("ERR",e,t)})},e}()},{"../io":33}],49:[function(e,t,r){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var o=e("./vttjs").WebVTT,e=function(){function e(){var t=this;this._cues=[],this._regions=[],this.parser=new o.Parser(window,o.StringDecoder()),this.parser.onregion=function(e){t._regions.push(e)},this.parser.oncue=function(e){t._cues.push(e)},this.parser.onflush=function(){},this.parser.onparsingerror=function(e){}}var t,r,i=e.prototype;return i.parse=function(e){this.parser.parse(e),this.parser.flush()},i.reset=function(){this.parser.flush(),this._cues=[],this._regions=[]},i.dispose=function(){this.parser.flush(),this.parser=null,this._cues=[],this._regions=[]},i=e,(t=[{key:"cues",get:function(){return this._cues}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),e}();t.exports=e},{"./vttjs":51}],50:[function(e,t,r){function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),n(e.prototype.constructor=e,t)}function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}e("../../player/base/event/eventtype");var s=e("./text-track"),l=e("./vttjs").WebVTT,c=e("../../lib/dom"),u=s.TextTrack,p=s.TextTrackList,d=s.TRACK_MODE,h=(s.TRACK_KIND,function(){function e(e){this.player=null,this.type=null,this.trackList=null,this.overrideStyle={},this.player=(e=e||{}).player,this.defineTextTrackGetter(),this.trackList=new p}var t=e.prototype;return t.log=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];(e=console).log.apply(e,["[LOG:"+this.type+"]"].concat(r))},t.defineTextTrackGetter=function(){var e=this;this.player.getTextTracks=function(){return e.trackList||[]}},t.show=function(e){e=this.findTrackByLanguage(e);e&&(e.mode=d.SHOWING)},t.findTrackByLanguage=function(t){return this.trackList.list.find(function(e){return e.language===t})},t.clearCurrentCues=function(e){if(e){var t=e.mode;if(t===d.DISABLED&&(e.mode=d.HIDDEN),e.cues)for(var r=e.cues.length;r--;)e.removeCue(e.cues[r]);t===d.DISABLED&&(e.mode=t)}},t.addTrack=function(){},t.addCues=function(){},t.restore=function(){},t.renderCues=function(){},t.updateCuesStyle=function(){},t.clearTrack=function(e){this.clearCurrentCues(this.findTrackByLanguage(e))},t.clearAllTracks=function(){var t=this;this.trackList&&this.trackList.length&&this.trackList.list.forEach(function(e){e.mode=d.DISABLED,t.clearCurrentCues(e)}),this.trackList=new p},t.reset=function(){this.hide(),this.clearAllTracks()},t.dispose=function(){this.hide(),this.clearAllTracks(),this.player&&this.player.getTextTracks&&(this.player.getTextTracks=null),this.player=null,this.type=null},e}()),e=(h.RENDER_TYPE_CUSTOM="CUSTOM",h.RENDER_TYPE_NATIVE="NATIVE",function(r){function e(e){var t=r.call(this,e)||this;return t.overlayId=null,t.currentCues=null,e=e||{},t.type=h.RENDER_TYPE_CUSTOM,t.overlayId=e.overlayId,t}a(e,r);var t=e.prototype;return t.addTrack=function(e){var t=new u({kind:e.kind,label:e.label,language:e.language,default:e.default});t.mode=e.default?d.SHOWING:d.DISABLED,this.trackList.addTrack(t)},t.hide=function(){return l.processCues(window,[],document.getElementById(this.overlayId))},t.restore=function(){this.currentCues&&(this.currentCues.forEach(function(e){return e.displayState=null}),l.processCues(window,this.currentCues,this.overlayEl),this.updateCuesStyle(this.currentCues))},t.renderCues=function(e){e&&(this.currentCues=e,this.overlayEl||(this.overlayEl=document.getElementById(this.overlayId)),l.processCues(window,e,this.overlayEl),this.updateCuesStyle(e))},t.updateCuesStyle=function(e){var i=this;e.forEach(function(e){var t,r=e.displayState;r._styleSetDone||r&&(r.setAttribute("class","prism-cue"),i.overlayEl||(i.overlayEl=document.getElementById(i.overlayId)),e=i.overlayEl.offsetWidth,t=i.overlayEl.offsetHeight,(e=Math.min(e,t))&&(r.style.fontSize=.05*e+"px",r.style.height="auto",r.style.top="auto"),Object.keys(i.overrideStyle).forEach(function(e){i.tryUpdateStyle(r,e,i.overrideStyle[e])}),r._styleSetDone=!0)})},t.updateOverrideStyle=function(e){this.overrideStyle=i({},this.overrideStyle,e=void 0===e?{}:e)},t.forceUpdateCuesStyle=function(e,t){void 0===t&&(t=[]),this.updateOverrideStyle(e=void 0===e?{}:e),this.resetCuesStyle(t)},t.tryUpdateStyle=function(e,t,r){try{e.style[t]=r}catch(e){}},t.resetCuesStyle=function(e){e&&e.length&&e.forEach(function(e){e.displayState&&(e.displayState=null)})},t.dispose=function(){r.prototype.dispose.call(this),this.overlayId=null,this.currentCues=null},e}(h)),s=function(t){function e(e){return(e=t.call(this,e=void 0===e?{}:e)||this).type=h.RENDER_TYPE_NATIVE,e}a(e,t);var r,i,n=e.prototype;return n.addTrack=function(t){var e=this.player.tag,r=Array.from(e.textTracks)||[],i=r.find(function(e){return e.language===t.language}),r=i?(this.log("sameLangTrack",i,r),this.clearCurrentCues(i),i.kind=t.kind,i.label=t.label,i):e.addTextTrack(t.kind,t.label,t.language),i=(r.mode=t.default?d.SHOWING:d.DISABLED,new u(t));i.nativeTrack=r,this.trackList.addTrack(i)},n.addCues=function(e,t){var r;e&&e.length&&(r=this.trackList.list.find(function(e){return e.language===t}))&&e.forEach(function(e){r.addCue(e)})},n.hide=function(){this.trackList.list.forEach(function(e){e.mode=e.mode===d.SHOWING?d.HIDDEN:e.mode})},n.invalidAllTracks=function(){},n.forceUpdateCuesStyle=function(e,t){c.addCssByStyle("video::-webkit-media-text-track-container{transform: "+e.transform+";}")},n.dispose=function(){t.prototype.dispose.call(this)},n=e,(r=[{key:"activeTrack",get:function(){return this.trackList.list.find(function(e){return e.mode===d.SHOWING})}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(h);t.exports.VttBasicRenderer=h,t.exports.CustomRenderer=e,t.exports.NativeRenderer=s},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"./text-track":47,"./vttjs":51}],51:[function(e,t,r){t.exports={WebVTT:e("./vtt.js").WebVTT}},{"./vtt.js":52}],52:[function(e,t,r){var i=this;function o(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}var l,p=1;function n(e,t,r){switch(r){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),n=Services.prefs.getIntPref("webvtt.font.opacity")/100;l.fontSet=o(i,n);break;case"webvtt.font.scale":p=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),n=Services.prefs.getIntPref("webvtt.bg.opacity")/100;l.backgroundSet=o(i,n);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),n=Services.prefs.getCharPref("webvtt.edge.color");l.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+o(n)}}"undefined"!=typeof Services&&(l={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){n(0,0,e),Services.prefs.addObserver(e,n,!1)}));var a=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return s.prototype=e,new s};function s(){}function c(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function h(e){function t(e,t,r,i){return 3600*(0|e)+60*(0|t)+(0|r)+(0|i)/1e3}e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function u(){this.values=a(null)}function d(e,t,r,i){var n,o,a=i?e.split(i):[e];for(n in a)"string"==typeof a[n]&&2===(o=a[n].split(r)).length&&t(o[0],o[1])}((c.prototype=a(Error.prototype)).constructor=c).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},u.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var f={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\xa0"},_={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},g={rt:"ruby"};function v(e,t){function r(e){return f[e]}for(var i,n,o,a,s,l,c,u=e.document.createElement("div"),p=u,d=[];null!==(c=void 0,c=t?(c=(c=t.match(/^([^<]*)(<[^>]*>?)?/))[1]||c[2],t=t.substr(c.length),c):null);)"<"===c[0]?"/"===c[1]?d.length&&d[d.length-1]===c.substr(2).replace(">","")&&(d.pop(),p=p.parentNode):(o=h(c.substr(1,c.length-2)))?(i=e.document.createProcessingInstruction("timestamp",o),p.appendChild(i)):(n=c.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(o=n[1],a=n[3],l=s=void 0,l=_[o],i=l?((s=e.document.createElement(l)).localName=l,(l=y[o])&&a&&(s[l]=a.trim()),s):null)&&(o=p,g[(l=i).localName]&&g[l.localName]!==o.localName||(n[2]&&(i.className=n[2].substr(1).replace("."," ")),d.push(n[1]),p.appendChild(i),p=i)):p.appendChild(e.document.createTextNode(function(e){for(;n=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(n[0],r);return e}(c)));return u}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function S(e){var t=[],r="";if(e&&e.childNodes)for(o(t,e);r=function e(t){var r,i,n;return t&&t.length?(i=(r=t.pop()).textContent||r.innerText)?(n=i.match(/^.*(\n|\r)/))?n[t.length=0]:i:"ruby"===r.tagName?e(t):r.childNodes?(o(t,r),e(t)):void 0:null}(t);)for(var i=0;i<r.length;i++)if(function(e){for(var t=0;t<m.length;t++){var r=m[t];if(e>=r[0]&&e<=r[1])return 1}}(r.charCodeAt(i)))return"rtl";return"ltr";function o(e,t){for(var r=t.childNodes.length-1;0<=r;r--)e.push(t.childNodes[r])}}function T(){}function b(e,t,r){var i="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),n="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)",a="",n=(void 0!==l&&(n=l.fontSet,o=l.backgroundSet,a=l.edgeSet),i&&(n="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),T.call(this),this.cue=t,this.cueDiv=v(e,t.text),{color:n,backgroundColor:o,textShadow:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),s=(i||(n.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",n.unicodeBidi="plaintext"),this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={textAlign:"middle"===t.align?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},i||(n.direction=S(this.cueDiv),n.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"plaintext"),this.applyStyles(n),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function E(e){var t,r,i,n,o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop,n=(n=(n=e.div.childNodes)&&n[0])&&n.getClientRects&&n.getClientRects(),e=e.div.getBoundingClientRect(),n=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0),this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||t,this.bottom=e.bottom||i+(e.height||t),this.width=e.width||r,this.lineHeight=void 0!==n?n:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function w(e,t,s,l){var r,i=new E(t),n=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,r=t.textTrackList,i=0,n=0;n<r.length&&r[n]!==t;n++)"showing"===r[n].mode&&i++;return-1*++i}(n),a=[];if(n.snapToLines){switch(n.vertical){case"":a=["+y","-y"],r="height";break;case"rl":a=["+x","-x"],r="width";break;case"lr":a=["-x","+x"],r="width"}var c=i.lineHeight,u=c*Math.round(o),p=s[r]+c,d=a[0];Math.abs(u)>p&&(u=u<0?-1:1,u*=Math.ceil(p/c)*c),o<0&&(u+=""===n.vertical?s.height:s.width,a=a.reverse()),i.move(d,u)}else{var h=i.lineHeight/s.height*100;switch(n.lineAlign){case"middle":o-=h/2;break;case"end":o-=h}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],i=new E(t)}p=function(e,t){for(var r,i=new E(e),n=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(s,t[o])||e.within(s)&&e.overlapsAny(l);)e.move(t[o]);if(e.within(s))return e;var a=e.intersectPercentage(s);a<n&&(r=new E(e),n=a),e=new E(i)}return r||i}(i,a);t.move(p.toCSSCompatValues(s))}function P(){}T.prototype.applyStyles=function(e,t){for(var r in t=t||this.div,e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},T.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(b.prototype=a(T.prototype)).constructor=b,E.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},E.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},E.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},E.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},E.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},E.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||r}},P.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},P.convertCueToDOMTree=function(e,t){return e&&t?v(e,t):null},P.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",r.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(t))for(var n,o,a=[],s=E.getSimpleBoxPosition(i),l={font:Math.round(.05*s.height*100)/100*p+"px sans-serif"},c=0;c<t.length;c++)o=t[c],n=new b(e,o,l),i.appendChild(n.div),w(0,n,s,a),o.displayState=n.div,a.push(E.getSimpleBoxPosition(n));else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},(P.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof c))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var i=this;function t(){for(var e=i.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var r=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,i.buffer=e.substr(t),r}function r(e){d(e,function(e,t){var n;"Region"===e&&(e=t,n=new u,d(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r,i=t.split(",");2===i.length&&((r=new u).percent("x",i[0]),r.percent("y",i[1]),r.has("x")&&r.has("y"))&&(n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y")));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id"))&&((e=new i.window.VTTRegion).width=n.get("width",100),e.lines=n.get("lines",3),e.regionAnchorX=n.get("regionanchorX",0),e.regionAnchorY=n.get("regionanchorY",100),e.viewportAnchorX=n.get("viewportanchorX",0),e.viewportAnchorY=n.get("viewportanchorY",100),e.scroll=n.get("scroll",""),i.onregion&&i.onregion(e),i.regionList.push({id:n.get("id"),region:e}))},/:/)}e&&(i.buffer+=i.decoder.decode(e,{stream:!0}));try{if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var n,o=(n=t()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new c(c.Errors.BadSignature);i.state="HEADER"}for(var a=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(a?a=!1:n=t(),i.state){case"HEADER":/:/.test(n)?r(n):n||(i.state="ID");continue;case"NOTE":n||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){i.state="NOTE";break}if(!n)continue;if(i.cue=new i.window.VTTCue(0,0,""),i.state="CUE",-1===n.indexOf("--\x3e")){i.cue.id=n;continue}case"CUE":try{!function(t,r,o){var i=t;function e(){var e=h(t);if(null===e)throw new c(c.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function n(){t=t.replace(/^\s+/,"")}if(n(),r.startTime=e(),n(),"--\x3e"!==t.substr(0,3))throw new c(c.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),n(),r.endTime=e(),n();var a=t,s=new u;d(a,function(e,t){switch(e){case"region":for(var r=o.length-1;0<=r;r--)if(o[r].id===t){s.set(e,o[r].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),n=i[0];s.integer(e,n),s.percent(e,n)&&s.set("snapToLines",!1),s.alt(e,n,["auto"]),2===i.length&&s.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),s.percent(e,i[0]),2===i.length&&s.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),r.region=s.get("region",null),r.vertical=s.get("vertical","");try{r.line=s.get("line","auto")}catch(e){}r.lineAlign=s.get("lineAlign","start"),r.snapToLines=s.get("snapToLines",!0),r.size=s.get("size",100);try{r.align=s.get("align","center")}catch(e){r.align=s.get("align","middle")}try{r.position=s.get("position","auto")}catch(e){r.position=s.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},r.align)}r.positionAlign=s.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},r.align)}(n,i.cue,i.regionList)}catch(e){i.reportOrThrowError(e),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=n;continue;case"BADCUE":n||(i.state="ID");continue}}}catch(e){i.reportOrThrowError(e),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new c(c.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},i.WebVTT=P},{}],53:[function(e,t,r){var n=e("../lib/io");e("../lib/storage");function i(e){this._uploadDuration=e.logDuration||5,this._uploadCount=e.logCount||10,this._logReportTo=e.logReportTo,this._dumpLogReportTo=e.dumpLogReportTo,this._logs=[],this._retry=0,this._disposed=!1,this._supportLocalStorage=!0;var t,n=this;window&&(window.onbeforeunload=function(e){if(0<n._logs.length)if(n._supportLocalStorage)localStorage.setItem("__aliplayer_log_data",JSON.stringify(n._logs));else{n._report();for(var t=500,r=(new Date).getTime(),i=r;i<r+t;)i=(new Date).getTime()}});try{localStorage?(t=localStorage.getItem("__aliplayer_log_data"),localStorage.removeItem("__aliplayer_log_data"),t&&(this._logs=JSON.parse(t))):this._supportLocalStorage=!1}catch(e){this._supportLocalStorage=!1}this._start()}i.prototype.add=function(e){var t=this._logs.length;if(e.__time__=Math.round(new Date/1e3),0<t&&"4001"==e.e){var t=this._logs[t-1];if("4001"==t.e&&t.__time__-e.__time__<5)return}this._logs.push(e),(this._logs.length>this._uploadCount||"4001"==e.e||"2002"==e.e||"9002"==e.e&&null!=(t=e.args)&&t.includes("dump::"))&&this._report()},i.prototype.dispose=function(){this._report(),this._disposed=!0},i.prototype._start=function(){this._disposed=!1;this._retry=0,this._report()},i.prototype._report=function(t){var e,r,i;this._tickHandler&&(clearTimeout(this._tickHandler),this._tickHandler=null),0<(t=t||this._logs.splice(0,this._uploadCount)).length?(i={"Content-Type":"application/json;charset=UTF-8","x-log-apiversion":"0.6.0","x-log-bodyrawsize":(e=JSON.stringify({__logs__:t,__source__:""})).length},n.postWithHeader((r=this)._logReportTo,e,i,function(e){r._tick()},function(e){0==r._retry?(r._retry=1,r._report(t)):r._tick()})):this._tick()},i.prototype.reportDump=function(e){var t;e&&(t={"Content-Type":"application/json;charset=UTF-8","x-log-apiversion":"0.6.0","x-log-bodyrawsize":(e=JSON.stringify({__logs__:[e],__source__:""})).length},n.postWithHeader(this._dumpLogReportTo,e,t,function(e){},function(e){}))},i.prototype._tick=function(){var e;this._disposed||(this._retry=0,(e=this)._logs.length>this._uploadCount?e._report():this._tickHandler=setTimeout(function(){e._report()},1e3*this._uploadDuration))},t.exports=i},{"../lib/io":33,"../lib/storage":38}],54:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var i,n=e("../lib/oo"),s=e("../lib/object"),_=e("../lib/data"),l=e("../lib/io"),y=e("../lib/ua"),o=e("../lib/event"),g=e("../config"),c=e("../player/base/event/eventtype"),v=e("./util"),m=e("./log"),u=e("../lib/playerutil"),p=0,d={CREATE:1e3,STARTFETCHDATA:1003,COMPLETEFETCHDATA:1004,PREPARE:1101,PREPAREEND:1102,STARTPLAY:2e3,PLAY:2001,STOP:2002,PAUSE:2003,SEEK:2004,FULLSREEM:2005,QUITFULLSCREEM:2006,RESOLUTION:2007,RESOLUTION_DONE:2008,RECOVER:2010,SEEK_END:2011,PLAYABORT:2012,SEEKED:2014,CANPLAY:2018,FETCHEDIP:2020,CDNDETECT:2021,DETECT:2022,HEVCINFO:2023,UNDERLOAD:3002,LOADED:3001,RETRY:3003,HEARTBEAT:9001,TRACE:9002,DUMP:9003,ERROR:4001,ERRORRETRY:4002,RTSFALLBACK:4003,VOD_REQUEST_FATAL_ERROR:4004,VOD_REQUEST_FATAL_ERROR_RESUME:4005,LICENSE_RESULT:5004,SNAPSHOT:2027,ROTATE:2028,IMAGE:2029,THUMBNAILSTART:2031,THUMBNAILCOMPLETE:2032,CCSTART:2033,CCCOMPLETE:2034,AUDIOTRACKSTART:2033,AUDIOTRACKCOMPLETE:2034},e=n.extend({init:function(e,t,r){this.trackLog=r=void 0===r?!0:r,this.player=e,this.requestId="",this.sessionId=_.guid(),this.playId=0,this.firstPlay=!0,this.osName=y.os.name,this.osVersion=y.os.version||"",this.exName=y.browser.name,this.exVersion=y.browser.version||"",this.lightSaasVideoId="",this._logService="",this._h265ProbeInfo={},this.loadedDataReported=!1,this.startPlayReported=!1,this.canplayReported=!1,this.doPlayReported=!1,this.seekingData={seekingStartTime:0},this.pendingPrepareEndData=null,this.h265RenderTypeTimer=null,this.statisticsHistoryTimer=null,this.timeline=[{name:"init",ts:performance.now()}],g.logReportTo=t.logReportTo||g.logReportTo,this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},this.resetHeartBeatStatusData(),this.resetStatisticsHistoryData(),t.logBatched&&(this._logService=new m(g));var r=this.player.getOptions(),e=t.from||"",t=(r.isLive,r.isLive?"live":"vod"),i="pc",n=(y.IS_IPAD?i="pad":y.os.phone&&(i="phone"),this.encodeURL(y.getReferer())),o=y.getHref(),a=this.encodeURL(o),s="",o=(o&&(s=y.getHost(o)),g.h5Version),l=v.getUuid(),c=r.source?this.encodeURL(r.source):"",u=y.getHost(r.source),p=r.userId?r.userId+"":"0",d=this.sessionId,h=(new Date).getTime(),f=r.traceId||"";this._userNetInfo={cdnIp:"",localIp:""};this.opt={APIVersion:"0.6.0",t:h,ll:"info",lv:"1.0",pd:"player",md:"saas_player",ui:"saas_player",sm:"play",os:this.osName,ov:this.osVersion,et:this.exName,ev:this.exVersion,uat:y.USER_AGENT,hn:"0.0.0.0",bi:e,ri:d,e:"0",args:"0",li_ki:r.license.key||"",vt:t,tt:i,dm:"h5",av:o,uuid:l,vu:c,vd:u,ua:p,dn:"custom",cdn_ip:"0.0.0.0",app_n:s,r:n,pu:a,ti:f},this.bindEvent()},updateVideoInfo:function(e){e=e.from||"";this.opt.bi=e+"",this.updateSourceInfo()},updateSourceInfo:function(){var e,t=this.player.getOptions();t&&(e=t.source?this.encodeURL(t.source):"",t=y.getHost(t.source),this.opt.vu=e,this.opt.vd=t)},updateTraceId:function(e){this.opt.ti=e},updateLightSaasVideoId:function(e){this.lightSaasVideoId=e},replay:function(){this.reset(),this.player.trigger(c.Video.LoadStart),this.player.trigger(c.Video.LoadedMetadata),this.player.trigger(c.Video.LoadedData),this.startHeartBeat()},bindEvent:function(){var r=this;this.player.on(c.Private.Create,function(e){r._onCreate(e)}),this.player.on(c.Player.Init,function(){r._onPlayerInit()}),this.player.on(c.Video.LoadStart,function(){r._onPlayerloadstart()}),this.player.on(c.Video.LoadedMetadata,function(){r._onPlayerLoadMetadata()}),this.player.on(c.Video.LoadedData,function(){r._onPlayerLoaddata()}),this.player.on(c.Player.H265PlayInfo,function(e){r._onH265PlayInfo(e),r._onPlayerH265PlayInfo(e)}),this.player.on(c.Player.H266PlayInfo,function(e){r._onH265PlayInfo(e),r._onPlayerH265PlayInfo(e)}),this.player.on(c.Video.Play,function(){r._onPlayerPlay()}),this.player.on(c.Video.Playing,function(){r._onPlayerReady()}),this.player.on(c.Video.Ended,function(){r._onPlayerFinish()}),this.player.on(c.Video.Pause,function(){r._onPlayerPause()}),this.player.on("seeking",function(){r._onPlayerSeeking()}),this.player.on("seeked",function(){r._onPlayerSeeked()}),this.player.on(c.Private.LicenseHasResult,function(e){r._onLicenseHasResult(e)}),this.player.on(c.Private.SeekStart,function(e){r._onPlayerSeekStart(e)}),this.player.on(c.Private.EndStart,function(e){r._seekEndData=e.paramData}),this.player.on(c.Player.Waiting,function(){r._onPlayerLoaded()}),this.player.on(c.Video.CanPlayThrough,function(){}),this.player.on(c.Video.CanPlay,function(){r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._onPlayerUnderload(),r._onPlayerCanplay()}),this.player.on(c.Video.TimeUpdate,function(){r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._seekEndData&&r.player._seeking&&r._onPlayerSeekEnd()}),this.player.on(c.Player.Error,function(e){r._onPlayerError(e)}),this.player.on(c.Player.RequestFullScreen,function(){r._onFullscreenChange(1)}),this.player.on(c.Player.CancelFullScreen,function(){r._onFullscreenChange(0)}),this.player.on(c.Private.PREPARE,function(e){r._prepareTime=performance.now(),r._log("PREPARE",{dn:e.paramData}),r.timeline.push({name:"prepare",ts:performance.now()})}),this.player.on(c.Private.ManualPlay,function(){r.loadedDataReported||(r._prepareTime=performance.now(),r.timeline.push({name:"prepare2",ts:performance.now()}))}),this.player.on(c.Player.Snapshoted,function(){r._log("SNAPSHOT")}),this.player.on(c.Private.Retry,function(e){e=e.paramData||{};r._log("RETRY",{type:e.type,source:e.source})}),this.player.on(c.Player.RtsFallback,function(e){var t,e=e.paramData||{};r._log("RTSFALLBACK",{reason:null==(t=e.reason)?void 0:t.error_msg,url:e.fallbackUrl})}),this.player.on(c.Private.VodRequestException,function(e){e=e.paramData||{};r.reportVodException(e)}),this.player.on(c.Private.VodRequestExceptionResume,function(e){e=e.paramData||{};r.reportVodExceptionResume(e)}),this.player.on(c.Private.TraceLog,function(e){e=e.paramData||{};r._reportTrace(e)}),this.player.on(c.Private.DumpBuffer,function(e){e=e.paramData||{};r._reportDump(e)}),this.player.on(c.Private.StatisticsInfo,function(e){e=e.paramData||{};r._onStatisticsHistoryUpdate(e)}),this.player.on(c.Private.Timeline,function(e){e=e.paramData||{};r._onTimeline(e)}),o.on(this.player.tag,c.Video.Playing,function(){r.reportPlaying()}),o.on(this.player.tag,c.Video.TimeUpdate,function(){r.reportPlaying()}),this.startHeartBeat.call(this),this.startStatisticsHistory.call(this)},startStatisticsHistory:function(){var e=this;"n.dingtalk.com"===this.opt.app_n&&(this.statisticsHistoryTimer&&clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=setInterval(function(){e.player.trigger(c.Private.TraceLog,"[statistics_history]"+JSON.stringify(e.statisticsHistory)),e.resetStatisticsHistoryData()},this.player._options.statisticsReportInterval))},reportPlaying:function(){var e;this.doPlayReported||this.player.paused()||0===this.player.readyState()||(this.doPlayReported=!0,this.first_play_time=performance.now(),e={dsm:"fix",tc:this.first_play_time-this.loadstartTime,fc:this.first_play_time-this.playstartTime},this._log("PLAY",e))},removeEvent:function(){this.player.offAll("init"),this.player.offAll("ready"),this.player.offAll("ended"),this.player.offAll("play"),this.player.offAll("pause"),this.player.offAll("seekStart"),this.player.offAll("seekEnd"),this.player.offAll("canplaythrough"),this.player.offAll("playing"),this.player.offAll("timeupdate"),this.player.offAll("error"),this.player.offAll("fullscreenchange"),this.player.offAll("seeking"),this.player.offAll("seeked"),this.player.offAll(c.Private.PREPARE),this.player.offAll(c.Player.RtsFallback),o.off(this.player.tag,c.Video.Playing),o.off(this.player.tag,c.Video.TimeUpdate),this._logService&&this._logService.dispose(),clearInterval(i),clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=null},reset:function(){this.stucking=!1,this.startTimePlay=0,this.pause_flag=0,this.firstPlay=!1,this.playId=0,this._canPlay=0,this.seekingStartTime=0,this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},p=0,this.lightSaasVideoId="",this.resetHeartBeatStatusData(),this.resetStatisticsHistoryData(),i&&(clearInterval(i),i=null)},encodeURL:function(e){var t;return e?(t=this.player.getOptions())&&!t.logBatched?encodeURIComponent(e):e:""},startHeartBeat:function(){var o=this;i&&clearInterval(i),i=setInterval(function(){var n;o.player.getCurrentTime()&&(n=Math.floor(1e3*o.player.getCurrentTime()),o.player.paused()&&(o.prevStats.timestamp=0),++p>=o.player._options.heartHeatInterval)&&o.updateStats.call(o,function(e){var t=o._imageInfo()||{},r=o.player.tag.playbackRate,i=o.player.getVolume(),t={vt:n,interval:1e3*p,imgLength:t.imgLength,playbackRate:r,volume:i,bw:o._getbwEstimator()+"KB"},r=((t=e?a({},t,{dls:Math.floor(e.downloadSpeedPerSec),dfps:Math.floor(e.decodedFramesPerSec),pkl:Number((e.packageLossRate||0).toFixed(2)),rtt:1e3*e.rtt}):t).player_status=a({},o.heartBeatStatusData),o.player);t.time={play_time:parseFloat((r._playingTime/1e3).toFixed(2)),stuck_count:parseFloat(r._stuckCount.toFixed(2)),stuck_time:parseFloat((r._stuckTime/1e3).toFixed(2))},o._log("HEARTBEAT",t),p=0})},1e3)},updateStats:function(o){o=o||function(){};var a=this;this.player.getStats().then(function(e){var t,r,i,n;e?(n=a.prevStats,e.bytesReceived=e.bytesReceived||0,e.framesDecoded=e.framesDecoded||0,e.packetsLost=e.packetsLost||0,e.packetsReceived=e.packetsReceived||0,t=((a.prevStats=e).timestamp-n.timestamp)/1e3,r=(e.bytesReceived-n.bytesReceived)/t,i=(e.framesDecoded-n.framesDecoded)/t,n=(e.packetsLost-n.packetsLost)/(e.packetsLost-n.packetsLost+(e.packetsReceived-n.packetsReceived)),e=e.rtt,o({downloadSpeedPerSec:r,decodedFramesPerSec:i,packageLossRate:n,rtt:e,timeGap:t})):o()}).catch(function(e){console.log("error in monitor getStats: ",e),o()})},reportStartPlay:function(){this.startPlayReported||(this._log("STARTPLAY",{vt:(new Date).getTime()}),this.startPlayReported=!0)},reportCanplay:function(){this.canplayReported||(this._log("CANPLAY",{vt:(new Date).getTime()}),this.canplayReported=!0)},reportPlayAbort:function(e){this._log("PLAYABORT",{vt:(new Date).getTime(),from:e})},reportVodException:function(e){console.log("VOD_REQUEST_FATAL_ERROR",e),this._log("VOD_REQUEST_FATAL_ERROR",e)},reportVodExceptionResume:function(e){console.log("VOD_REQUEST_FATAL_ERROR_RESUME",e),this._log("VOD_REQUEST_FATAL_ERROR_RESUME",e)},resetStartPlayReportFlag:function(){this.startPlayReported=!1},resetCanplayReportFlag:function(){this.canplayReported=!1},resetLoadedDataReported:function(){this.loadedDataReported=!1,this._prepareTime=performance.now()},resetDoPlayReportFlag:function(){this.doPlayReported=!1},resetSessionId:function(){this.sessionId=_.guid()},resetHeartBeatStatusData:function(){this.heartBeatStatusData={t_last_pause:-1,t_last_resume:-1,t_last_load_start:-1,t_last_load_end:-1},this.player.startPlayTimeMonitor()},resetStatisticsHistoryData:function(){this.statisticsHistory={speed:[],framesDropped:[],downlink:[],type:[],rtt:[]}},resetTimeline:function(){var e=performance.now();this._createTime=e,this.timeline=[{name:"init",ts:e}]},resetVV:function(){this.startPlayReported&&(this.resetStartPlayReportFlag(),this.resetLoadedDataReported(),this.resetDoPlayReportFlag(),this.resetCanplayReportFlag(),this.resetSessionId(),this.resetTimeline())},updateH265ProbeInfo:function(e){this._h265ProbeInfo=e||{}},_onFullscreenChange:function(e){e?this._log("FULLSREEM",{}):this._log("QUITFULLSCREEM",{})},_onTimeline:function(t){var r=["frag_s","frag_f","frag_parsed"].includes(t.name);this.timeline.some(function(e){return r&&e.name===t.name})||this.timeline.push(t)},_onPlayerloadstart:function(){this.loadstartTime=performance.now(),this.playId=_.guid()},_onPlayerLoadMetadata:function(){this.loadMetaDataCost=performance.now()-this.loadstartTime,this.timeline.push({name:"meta",ts:performance.now()})},_onPlayerLoaddata:function(){var i,e,t,r,n=this;this.timeline.push({name:"loadeddata",ts:performance.now()}),this.loadedDataReported||(r=t=0,this.player.tag&&(t=this.player.tag.videoWidth,r=this.player.tag.videoHeight),i={fc:parseInt(performance.now()-this._createTime),tc:parseInt(performance.now()-this._prepareTime),cc:parseInt(performance.now()-this.loadstartTime),md:parseInt(this.loadMetaDataCost),mi:JSON.stringify({type:"video",definition:t+"*"+r})},this.timeline.forEach(function(e,t){try{var r=t?e.ts-n.timeline[t-1].ts:0;i["tl_"+e.name]=t+"#"+parseInt(r)}catch(e){}}),null!=(t=this.player.tag)&&t.duration&&(i.vdur=1e3*(null==(r=this.player.tag)?void 0:r.duration)),(5<this._h265ProbeInfo.codecCost||5<this._h265ProbeInfo.decoderCost)&&(t=Math.floor(this._h265ProbeInfo.codecCost)||0,r=Math.floor(this._h265ProbeInfo.decoderCost)||0,i.tc+=e=t+r,i.cc+=e,i.pcc=t,i.pdc=r),e=[{type:"audio"}],t={type:"video",codecType:null,isHardwareDecode:null},r=this._h265ProbeInfo.codecTag,u.isH265Codec(r)?t.codecType="h265":u.isH266Codec(r)?t.codecType="h266":u.isH264Codec(r)&&(t.codecType="h264"),e.push(t),i.decode_info=e,this._h265ProbeInfo.waitRenderType?(this.pendingPrepareEndData=i,this.h265RenderTypeTimer=setTimeout(function(){n._log("PREPAREEND",i),n.h265RenderTypeTimer=null},2e3)):this._log("PREPAREEND",i)),this.loadedDataReported=!0},_onStatisticsHistoryUpdate:function(e){"n.dingtalk.com"===this.opt.app_n&&(this.statisticsHistory.speed.push(parseInt(e.speed)),this.statisticsHistory.framesDropped.push(e.droppedFrames),e=navigator.connection)&&(this.statisticsHistory.downlink.push(e.downlink),this.statisticsHistory.type.push(e.effectiveType),this.statisticsHistory.rtt.push(e.rtt))},_onH265PlayInfo:function(e){var t,r;this.h265RenderTypeTimer&&(clearTimeout(this.h265RenderTypeTimer),this.h265RenderTypeTimer=null),this.pendingPrepareEndData&&(e=e.paramData,t=this.pendingPrepareEndData,this.pendingPrepareEndData=null,r=t.decode_info[1],"wasm"===e.renderType&&(r.isHardwareDecode=!1),this._log("PREPAREEND",t))},_onPlayerH265PlayInfo:function(e){e=e.paramData||{};this._log("HEVCINFO",{cd:e.codecTag,rd:e.renderType,si:e.simd,sio:e.simdOption,wt:e.wasmThreads,wto:e.wasmThreadsOption,sp:e.splayer})},_onPlayerCanplay:function(){this._canPlay=1,this.reportCanplay(),this.prevStats.timestamp||this.updateStats.call(this)},_onCreate:function(e){e=e.paramData||{};e.hasPa=!!e.playauth,delete e.playauth,e.hasSk=!!e.accessKeySecret,delete e.accessKeySecret,e.hasSt=!!e.securityToken,delete e.securityToken,this._log("CREATE",e),this._createTime=performance.now()},_onPlayerInit:function(){this.stucking=!1,this.pause_flag=0,this.startTimePlay=0,this._canPlay=0,this.seekingStartTime=0},_onPlayerReady:function(){this.startTimePlay||(this.startTimePlay=(new Date).getTime())},_onPlayerFinish:function(){this._log("STOP",{vt:Math.floor(1e3*this.player.getCurrentTime())}),this.reset()},_onPlayerPlay:function(){var e;this.playstartTime=(new Date).getTime(),0==this.playId&&(this.playId=_.guid()),this.player._isPreload()||(this.loadstartTime=performance.now()),this.doPlayReported&&this.pause_flag&&(this.pause_flag=0,this.pauseEndTime=(new Date).getTime(),this.heartBeatStatusData.t_last_resume=this.pauseEndTime,e=this.pauseEndTime-this.pauseTime,this._log("RECOVER",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:e,pass:e,t_last_pause:this.pauseTime}))},_onPlayerPause:function(){!this.doPlayReported||this.startTimePlay&&!this.player._seeking&&(this.pause_flag=1,this.pauseTime=(new Date).getTime(),this.heartBeatStatusData.t_last_pause=this.pauseTime,this.heartBeatStatusData.t_last_resume=-1,this._log("PAUSE",{vt:Math.floor(1e3*this.player.getCurrentTime())}))},_onLicenseHasResult:function(e){e=e.paramData||{};this._log("LICENSE_RESULT",{li_ri:e.result+" "+(e.errorCode||""),li_ti:e.featureId||"sdk"})},_onPlayerSeekStart:function(e){this.seekStartTime=e.paramData.fromTime,this.startTimePlay=0,this.seekStartStamp=(new Date).getTime()},_onPlayerSeekEnd:function(){this.seekEndStamp=(new Date).getTime(),this._log("SEEK",{drag_from_timestamp:Math.floor(1e3*this.seekStartTime),drag_to_timestamp:Math.floor(1e3*this._seekEndData.toTime)}),this._log("SEEK_END",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.seekEndStamp-this.seekStartStamp}),this._seekEndData=null},_onPlayerLoaded:function(){var e,t=this;this.doPlayReported&&!this.stucking&&"hidden"!==document.visibilityState&&(this.player._seeking?(this.seekingStartTime=this.player.getCurrentTime(),setTimeout(function(){var e=t.player.readyState()<4;t.player.readyState()||(e=!0),t.player.getCurrentTime()===t.seekingStartTime&&e&&(e=t._getbwEstimator(),t._log("UNDERLOAD",{vt:Math.floor(1e3*t.player.getCurrentTime()),bw:e,cbs:t._getCbs()}),t.stucking=!0,t.stuckStartTime=(new Date).getTime(),0===t._getCbs())&&(t.heartBeatStatusData.t_last_load_start=t.stuckStartTime,t.heartBeatStatusData.t_last_load_end=-1)},500)):(this.stuckStartTime=(new Date).getTime(),0===this._getCbs()&&(this.heartBeatStatusData.t_last_load_start=this.stuckStartTime,this.heartBeatStatusData.t_last_load_end=-1),this.stuckStartTime-this.startTimePlay<=1e3||(this.stucking=!0,e=this._getbwEstimator(),this._log("UNDERLOAD",{vt:Math.floor(1e3*this.player.getCurrentTime()),bw:e,cbs:this._getCbs()}),this.stuckStartTime=(new Date).getTime())))},_onPlayerUnderload:function(){var e,t,r,i;!this.doPlayReported&&this.player._options&&this.player._options.autoplay||this.stucking&&(e=Math.floor(1e3*this.player.getCurrentTime()),t=this.stuckStartTime||(new Date).getTime(),0<(r=Math.floor((new Date).getTime()-t))&&r<(1e3*this.player._options.waitingTimeout||6e4)&&(i=this._getbwEstimator(),0===this._getCbs()&&(this.heartBeatStatusData.t_last_load_end=(new Date).getTime()),this._log("LOADED",{vt:e,cost:r,bw:i,cbs:this._getCbs(),t_last_load_start:t})),this.seekStart=!1,this.stucking=!1)},_onPlayerSeeking:function(){this.seekStart=!0,this.seekingData.seekingStartTime=performance.now()},_onPlayerSeeked:function(){var e=this;this.player._splayer?this.player.one("canplay",function(){e._reportSeeked()}):this._reportSeeked()},_reportSeeked:function(){var e=performance.now(),e=Math.floor(e-this.seekingData.seekingStartTime);this._log("SEEKED",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:e})},_reportTrace:function(e){this._log("TRACE",{log:e})},_reportDump:function(e){this._log("DUMP",e)},_onPlayerError:function(e){this._reportTrace(e.paramData),this.playId=0,this.statisticsHistoryTimer&&(clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=null,this.resetStatisticsHistoryData())},_getbwEstimator:function(){var e=NaN;try{e=((e=this.player._getbwEstimator&&parseInt(this.player._getbwEstimator(),10))/8/1024).toFixed(2)}catch(e){}return e},_getCbs:function(){return!this.player.getOptions().isLive&&this.seekStart?1:0},_log:function(e,t){if(this.trackLog){this.updateSourceInfo();var r=s.copy(this.opt),i=(this.requestId=_.guid(),g.logReportTo),e=(r.e=d[e]+"",r.en=e,r.ri=this.sessionId,r.bi=r.bi&&String(r.bi),r.t=(new Date).getTime()+"",r.cdn_ip=this._userNetInfo.cdnIp,r.hn=this._userNetInfo.localIp,this.player.getCurrentQuality()),n=(""!=e&&(r.definition=e.definition),[]),e=(s.each(t,function(e,t){if("string"!=typeof t)try{t=JSON.stringify(t)}catch(e){}n.push(e+"="+t)}),""),t=this.player.getOptions(),e=((e=t&&t.vid||this.lightSaasVideoId?t.vid||this.lightSaasVideoId:e)&&n.push("vid="+e),"");(e=t&&t.mediaAuth?t.mediaAuth:e)&&n.push("pauth="+e);try{Aliplayer&&Aliplayer.__logCallback__&&(r.args=n,Aliplayer.__logCallback__(r))}catch(e){console.log(e)}if(""==(n=n.join("&"))&&(n="0"),r.args=this.encodeURL(n),this._logService){if(r.e===String(d.DUMP))return void this._logService.reportDump(r);this._logService.add(r)}else{var o=[];s.each(r,function(e,t){o.push(e+"="+t)}),o=o.join("&"),l.jsonp(i+"?"+o,function(){},function(){})}return this.sessionId}},_imageInfo:function(){try{var e,t,r,i,n,o,a;return/MSIE\s8\.0/.test(navigator.userAgent)?{}:(e=this.player.tag)?(t=document.createElement("canvas"),r=e.videoWidth,i=e.videoHeight,t.width=r,t.height=i,(n=t.getContext("2d")).save(),n.drawImage(e,0,0,r,i),n.restore(),o=t.toDataURL("image/jpeg",1),a="",{imgLength:(a=o?(a=o.substr(o.indexOf(",")+1))||"":a).length}):{}}catch(e){return{}}}});t.exports=e},{"../config":7,"../lib/data":24,"../lib/event":26,"../lib/io":33,"../lib/object":35,"../lib/oo":36,"../lib/playerutil":37,"../lib/ua":39,"../player/base/event/eventtype":63,"./log":53,"./util":55}],55:[function(e,t,r){var i=e("../lib/cookie"),n=e("../lib/data"),o=e("../lib/ua");t.exports.getUuid=function(){var e=i.get("p_h5_u");return e||(e=n.guid(),i.set("p_h5_u",e,730)),e},t.exports.getTerminalType=function(){var e="pc";return o.IS_IPAD?e="pad":o.IS_ANDROID?e="android":o.IS_IOS&&(e="iphone"),e},t.exports.returnUTCDate=function(e){var t=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate(),n=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),e=e.getUTCMilliseconds();return Date.UTC(t,r,i,n,o,a,e)},t.exports.getRfc822=function(e){return e.toUTCString().replace("UTC","GMT")}},{"../lib/cookie":23,"../lib/data":24,"../lib/ua":39}],56:[function(e,t,r){e("../../lib/oo"),e("../../lib/ua");t.exports={apiUrl:{default:"http://player.acfun.cn/js_data",hapame:"http://player.hapame.com/js_data"},ctype:"86",ev:4,defaultQuality:"mp4",defaultLanguage:"guoyu",ek:{a1:"bf",a8:"f",x2:"Kz0mooZM"},mk:{a3:"1z4i",a4:"86rv",a5:"f45",k3:"b7",nk:"m1uN9G6c"},PLAYERSTATE:{INIT:"PLAYER_STATE_INIT",READY:"PLAYER_STATE_READY",AD:"PLAYER_STATE_AD",PLAYING:"PLAYER_STATE_PLAYING",END:"PLAYER_STATE_END",ERROR:"PLAYER_STATE_ERROR"},userCache:{a1:"v",a2:"b"},langs:{default:{key:"guoyu",value:"\u56fd\u8bed",id:1},guoyu:{key:"guoyu",value:"\u56fd\u8bed",id:1},yue:{key:"yue",value:"\u7ca4\u8bed",id:2},chuan:{key:"chuan",value:"\u5ddd\u8bdd",id:3},tai:{key:"tai",value:"\u53f0\u6e7e",id:4},min:{key:"min",value:"\u95fd\u5357",id:5},en:{key:"en",value:"\u82f1\u8bed",id:6},ja:{key:"ja",value:"\u65e5\u8bed",id:7},kr:{key:"kr",value:"\u97e9\u8bed",id:8},in:{key:"in",value:"\u5370\u5ea6",id:9},ru:{key:"ru",value:"\u4fc4\u8bed",id:10},fr:{key:"fr",value:"\u6cd5\u8bed",id:11},de:{key:"de",value:"\u5fb7\u8bed",id:12},it:{key:"it",value:"\u610f\u8bed",id:13},es:{key:"es",value:"\u897f\u8bed",id:14},th:{key:"th",value:"\u6cf0\u8bed",id:15},po:{key:"po",value:"\u8461\u8bed",id:16},man:{key:"man",value:"\u6696\u7537",id:17},baby:{key:"baby",value:"\u840c\u7ae5",id:18}},stream_types:{flv:{key:"flv",quality:"flv",hd:0,suffix:"flv",play:!1,loghd:0},flvhd:{key:"flvhd",quality:"flv",hd:0,suffix:"flv",play:!1,loghd:0},mp4hd:{key:"mp4hd",quality:"mp4",hd:1,suffix:"mp4",play:!0,loghd:1},"3gphd":{key:"3gphd",quality:"mp4",hd:1,suffix:"mp4",play:!0,loghd:4},mp4hd2:{key:"mp4hd2",quality:"hd2",hd:2,suffix:"flv",play:!1,loghd:2},mp4hd3:{key:"mp4hd3",quality:"hd3",hd:3,suffix:"flv",play:!1,loghd:3},m3u8_flv:{key:"m3u8_flv",quality:"flv",hd:0,suffix:"m3u8",play:!0,loghd:0},m3u8_mp4:{key:"m3u8_mp4",quality:"mp4",hd:1,suffix:"m3u8",play:!0,loghd:0},m3u8_hd:{key:"m3u8_hd",quality:"hd2",hd:2,suffix:"m3u8",play:!0,loghd:0},m3u8_hd3:{key:"m3u8_hd3",quality:"hd3",hd:3,suffix:"m3u8",play:!0,loghd:0}},m3u8_types:{m3u8_flv:"flvhd",m3u8_mp4:"mp4hd",m3u8_hd:"mp4hd2",m3u8_hd3:"mp4hd3"},qualitys:{flv:0,mp4:1,hd2:2},getPlayerType:function(e){e="h5"==e?browser.isSupportH5M3U8?"h5m3u8":browser.isSupportH5MP4?"h5mp4":browser.isSupportFlash?"flash":"error":"flash"==e?browser.isSupportFlash?"flash":browser.isSupportH5M3U8?"h5m3u8":browser.isSupportH5MP4?"h5mp4":"error":"error";return e},k3:{a0:"3d9",a2:"ae1"},isPlayFromAli:!1,MONITOR_TYPE:{GET_LIST_NETWORK:"web_playlist_nt",GET_LIST_FORMAT:"web_playlist_ft"},MONITOR_STATUS_SUCCESS:0,MONITOR_STATUS_FAILED:-1}},{"../../lib/oo":36,"../../lib/ua":39}],57:[function(e,t,r){var n=e("./data/playdata"),i=e("../base/player"),u=e("../../lib/object"),o=e("./acconfig"),a=e("./data/log"),s=e("./acutil"),l=e("../hls/hlsinjector"),c=e("../../lib/playerutil"),p=e("../../lib/constants"),d=(request=e("./data/request"),{playing:"onPlayStart,onPlaying",ended:"onPlayEnd,onEnded",error:"onPlayError",waiting:"onWaiting",play:"onPlay",pause:"onPause",loadedmetadata:"onLoadedMetaData",loadeddata:"onLoadedData",seeked:"onSeeked",timeupdate:"onTimeUpdate"}),h=i.extend({init:function(e,t){var r=this;t.sign=t.embsig,i.call(this,e,t),f(this),this._loadData(function(){var e=c.canPlayHls();l.inject(r,h,i.prototype,r._options,function(){},!e),r._options.source=r._getM3u8src(),r.initPlay(!0),r.trigger("onPlayerReady")})}}),f=(h.prototype.play=function(){null!=this.tag.src&&""!=this.tag.src||(this._options.source=this._getM3u8src(),this.tag.src=this._options.source),this.tag.play()},h.prototype.language=function(e){return{key:this.currentLang.key,cn:this.currentLang.cn}},h.prototype.playVideo=function(e){var t=this;t._options=u.merge(t._options||{},e||{}),t._options.vid&&t._options.client_id?this._loadData(function(){t.initPlay(!0)}):t._setError(p.ErrorCode.InvalidParameter,"Param Error:please set vid && client_id")},h.prototype.sendAcfunMonitor=function(e,t,r,i){var n={};n.sign=this._options.embsig,n.vid=e,n.source=t,n.code=r,n.time=i,a.send("http://aplay-vod.cn-beijing.aliyuncs.com/acfun/monitor?"+s.urlParameter(n))},h.prototype._getM3u8src=function(){var e=this.playData.getM3u8srcByType(this.currentLang.key,this.data.type.key);return e=null!=e&&""!=e?e:this.playData.getM3u8src(this.currentLang.vid,this.currentQuality,this._options.password)},h.prototype._loadData=function(r){var i=this,t=(this._retryPlay||(this._retryPlay=0),arguments.callee),n=(new Date).getTime();request.getPlayData(i._options,function(e){console.log(e);var t=(new Date).getTime()-n;i.sendAcfunMonitor(i._options.vid,o.MONITOR_TYPE.GET_LIST_NETWORK,o.MONITOR_STATUS_SUCCESS,t),i._parseData(e,r)},function(){var e;this._retryPlay<3?(t(r),this._retryPlay++):(e=(new Date).getTime()-n,i.sendAcfunMonitor(i._options.vid,o.MONITOR_TYPE.GET_LIST_NETWORK,o.MONITOR_STATUS_FAILED,e),i._setError(p.ErrorCode.ServerAPIError,"Get PlayData Failed"),delete this._retryPlay)})},h.prototype._parseData=function(e,t){var r=this,i={};try{i=new n(e),r.videoData=e,r.playData=i,console.log(r.playData)}catch(e){return console.log(e.message),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED),void r._setError(p.ErrorCode.ServerAPIError,"Parse Data Error")}i.error?(r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED),r._setError(i.error.code,i.error.msg)):(r._setVideoData(o.defaultLanguage),t())},h.prototype._setVideoData=function(e){var t,r=this,i=r.playData.getIndexes();i.length<=0?(r._setError(p.ErrorCode.ServerAPIError,"Parse Data Error"),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED)):(e=r.playData.getIndexes(e)||i[0],r.currentLang=e,(t=r._getTypeByQuality(this._options.quality||o.defaultQuality))?(e=r.playData.getData(e.key,t.key),r.currentType=t,r.indexes=i,r.data=e,this._options.source=e.m3u8,r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_SUCCESS)):(r._setError(p.ErrorCode.FormatNotSupport,"\u6ca1\u6709\u5bf9\u5e94\u7684\u683c\u5f0f"),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED)))},h.prototype._getTypeByQuality=function(e){var t=this.currentLang.types;if(t.length<=0)return null;for(var r=[],i={mp4:["3gphd","mp4hd"],flv:["flvhd"],hd2:["mp4hd2"]},n=i[e],o=(n&&(r=r.concat(n),delete i[e]),u.each(i,function(e,t){r=r.concat(t)}),null),a=0,s=r.length;a<s;a++){for(var l=0,c=t.length;l<c;l++)if(r[a]==t[l].key){o=t[l];break}if(o)break}return o},h.prototype.currentTime=function(){return this.getCurrentTime()},h.prototype.duration=function(){return this.getDuration()},h.prototype.bind=function(e,t){return"onPlayError"==e?(this._onPlayErrorCallback=t,this):this.on(e,t)},h.prototype._setError=function(e,t){e={mediaId:this._options.vid||"",error_code:e,error_msg:t};this.logError(e)},function(n){u.each(d,function(e,i){"error"==e?n.on(e,function(e){var t;n._onPlayErrorCallback&&(t=4,n.tag&&n.tag.error&&(t=n.tag.error.code),n._onPlayErrorCallback(t,e?e.paramData:""))}):n.on(e,function(e){if(0<i.indexOf(","))for(var t=i.split(","),r=0;r<t.length;r++)n.trigger(t[r],e?e.paramData:"");else n.trigger(i,e?e.paramData:"")})})});t.exports=h},{"../../lib/constants":22,"../../lib/object":35,"../../lib/playerutil":37,"../base/player":86,"../hls/hlsinjector":93,"./acconfig":56,"./acutil":58,"./data/log":59,"./data/playdata":60,"./data/request":61}],58:[function(e,t,r){var i="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");t.exports={getRandomString:function(e){e=e||3;for(var t=i.length,r="";0<=e;)r+=i[Math.floor(Math.random()*t)],e--;return r},urlParameter:function(e){var t,r=[];for(t in e)r.push(t+"="+e[t]);return r.join("&")},translate:function(e,t){for(var r=[],i=0;i<e.length;i++){for(var n=0,n="a"<=e[i]&&e[i]<="z"?e[i].charCodeAt(0)-"a".charCodeAt(0):e[i]-"0"+26,o=0;o<36;o++)if(t[o]==n){n=o;break}r[i]=25<n?n-26:String.fromCharCode(n+97)}return r.join("")},decode64:function(e){if(!e)return"";e=e.toString();for(var t,r,i,n,o=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),a=e.length,s=0,l="";s<a;){for(;t=o[255&e.charCodeAt(s++)],s<a&&-1==t;);if(-1==t)break;for(;r=o[255&e.charCodeAt(s++)],s<a&&-1==r;);if(-1==r)break;l+=String.fromCharCode(t<<2|(48&r)>>4);do{if(61==(i=255&e.charCodeAt(s++)))return l}while(i=o[i],s<a&&-1==i);if(-1==i)break;l+=String.fromCharCode((15&r)<<4|(60&i)>>2);do{if(61==(n=255&e.charCodeAt(s++)))return l}while(n=o[n],s<a&&-1==n);if(-1==n)break;l+=String.fromCharCode((3&i)<<6|n)}return l},encode64:function(e){if(!e)return"";for(var t,r,i,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=(e=e.toString()).length,a=0,s="";a<o;){if(t=255&e.charCodeAt(a++),a==o){s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4)+"==";break}if(r=e.charCodeAt(a++),a==o){s=(s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4|(240&r)>>4))+n.charAt((15&r)<<2)+"=";break}i=e.charCodeAt(a++),s=(s=(s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4|(240&r)>>4))+n.charAt((15&r)<<2|(192&i)>>6))+n.charAt(63&i)}return s},jie:function(e,t){for(var r,i=[],n=0,o="",a=0;a<256;a++)i[a]=a;for(a=0;a<256;a++)n=(n+i[a]+e.charCodeAt(a%e.length))%256,r=i[a],i[a]=i[n],i[n]=r;for(var a=0,n=0,s=0;s<t.length;s++)r=i[a=(a+1)%256],i[a]=i[n=(n+i[a])%256],i[n]=r,o+=String.fromCharCode(t.charCodeAt(s)^i[(i[a]+i[n])%256]);return o}}},{}],59:[function(e,t,r){t.exports.send=function(e,t){var r=document.createElement("img");t&&r.addEventListener("error",t,!1),r.src=e+"&r_="+Math.floor(1e4*Math.random()),r.id="youku-uniplayer-stat"}},{}],60:[function(e,t,r){var i=e("../../../lib/oo"),_=e("../acconfig"),n=e("../acutil"),o=e("../../../lib/object"),e=i.extend({init:function(e){var r,n;this._initSecurity(e)&&this._checkData(e)?(this.videoData=e,r=this._parseData(e.stream),n=this._parseIndexes(r),this.getIndexes=function(e){if(0<arguments.length){for(var t=0,r=n.length;t<r;t++){var i=n[t];if(e==i.key)return i}return null}return n},this.getData=function(e,t){return 0<arguments.length?r[e]?1==arguments.length?r[e]:r[e].types[t]:null:r}):(this.getData=function(e,t){return null},this.getIndexes=function(e){return null})}});e.prototype.getLangByKey=function(e){return _.langs[e]},e.prototype.getTypeByKey=function(e){return _.stream_types[e]},e.prototype.getM3u8srcByType=function(e,t){return this.getData(e,t).m3u8},e.prototype.setError=function(e,t){this.error={code:e,msg:t}},e.prototype._initSecurity=function(e){var t;return void 0===e.security||void 0===e.security.encrypt_string?(this.setError(2004,"Parse Data Error"),!1):(t=n.jie(n.translate(_.mk.a3+"ogb"+_.userCache.a1,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),n.decode64(e.security.encrypt_string))).split("_").length<2?(this.error=new new Error(2004,"Parse Data Error"),!1):(this.sid=t.split("_")[0],this.token=t.split("_")[1],this.oip=e.security.ip,!0)},e.prototype._checkData=function(e){if(null!=e.error){e=e.error.code;if(-202==e||-203==e)return this.setError(4e3,"The Video Password Error"),!1;if(-402==e)return this.setError(2007,"No authority to access"),!1;if(-301==e||-303==e)return this.setError(3001,"No authority to access"),!1}return!0},e.prototype._parseIndexes=function(e){var r=[];return o.each(e,function(e,t){var a=[],s=[];o.each(t.types,function(e,t){for(var r=t.type.quality,i=(s.push({key:t.type.key,quality:r}),!1),n=0,o=a.length;n<o;n++)if(r==a[n]){i=!0;break}i||a.push(r)}),r.push({key:t.key,cn:t.cn,vid:t.vid,id:t.id,types:s,qualitys:a})}),console.log(r),r},e.prototype._parseData=function(e){for(var t={},r=0;r<e.length;r++){var i=e[r],n=this.getTypeByKey(i.stream_type),o=this.getLangByKey(i.audio_lang);if(n&&o&&-1==n.key.indexOf("m3u8")){for(var a=i.segs,s=0,l=0,c=[],u=0;u<a.length;u++){var p=a[u];if(null==p)break;var d={no:u,seconds:Number(p.total_milliseconds_video)/1e3,seconds_video:Number(i.milliseconds_video)/1e3,key:p.key,fileId:this._getFileId(i.stream_fileid,u),type:n,url:p.url};d.src=d.url||this._getVideoSrc(d),s+=parseInt(d.seconds),l+=parseInt(p.size),c.push(d)}this._getLangVid(o.key);t[o.key]||(t[o.key]={key:o.key,cn:o.value,id:o.id,vid:this._getLangVid(o.key),types:{}}),t[o.key].types[n.key]={no:r,logoFlag:"none"!=i.logo?1:0,type:n,segs:c,seconds:s,size:l}}}for(r=0;r<e.length;r++){var h,f,i=e[r],n=this.getTypeByKey(i.stream_type),o=this.getLangByKey(i.audio_lang);n&&o&&-1!=n.key.indexOf("m3u8")&&(h=i.m3u8,f=_.m3u8_types[n.key],t[o.key].types[f])&&(t[o.key].types[f].m3u8=h)}return t},e.prototype._getLangVid=function(e){var t=this.videoData.dvd;if(!t||!t.audiolang)return this.videoData.video.encodeid;for(var r=t.audiolang,i=0,n=r.length;i<=n;i++)if(e==r[i].langcode)return r[i].vid},e.prototype._getFileId=function(e,t){return null==e||""===e?"":e.slice(0,8)+(t=(t=1==(t=t.toString(16)).length?"0"+t:t).toUpperCase())+e.slice(10,e.length)},t.exports=e},{"../../../lib/object":35,"../../../lib/oo":36,"../acconfig":56,"../acutil":58}],61:[function(e,t,r){e("../../../lib/oo");var a=e("../../../lib/io"),s=e("../../../lib/object"),l=e("../acutil"),c=e("../acconfig");t.exports.getEncryptStr=function(e,t){return encodeURIComponent(l.encode64(l.rc4(l.translate(e,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),t)))},t.exports.getPlayData=function(e,r,i){var n=this,t=(console.log("--getPlayData--"),{vid:e.vid,ct:c.ctype,ev:c.ev}),o=(e.client_id&&(t.cid=e.client_id),e.sign&&(t.sign=e.sign),e.password&&(t.pwd=escape(e.password)),[]),t=(s.each(t,function(e,t){o.push(e+"="+t)}),o=o.join("&"),c.apiUrl.default);1==e.isHapame&&(t=c.apiUrl.hapame,o+="&dt=1"),t=t+"?"+o,a.jsonp(t,function(e){console.log("----getJson Succ----"),e.encrypt&&"1"===e.encrypt&&(t=n._decode(l.decode64(e.data)),e.data=JSON.parse(t));var t=e.data;t.stream||t.error?r(t):i({code:"101",note:"\u8be5\u89c6\u9891\u6682\u4e0d\u80fd\u64ad\u653e"})},function(e){console.log("----getJson Fail----"),i({code:"404",note:"\u83b7\u53d6\u6570\u636e\u5931\u8d25"})})},t.exports._decode=function(e){return l.jie(c.mk.nk+c.ek.x2,e)},t.exports._parsePaths=function(e,t){var r,i="";for(r in t=t||"/",e)i+=r+t+e[r]+t;return i}},{"../../../lib/io":33,"../../../lib/object":35,"../../../lib/oo":36,"../acconfig":56,"../acutil":58}],62:[function(e,t,r){var a=e("../../../lib/event"),s=e("./eventtype"),i=e("../eventHandler/video/index"),n=e("../eventHandler/player/index");t.exports.offAll=function(e){var t,r,i,n=e.tag,o=e._el;for(t in s.Video)a.off(n,s.Video[t]);for(r in s.Player)a.off(o,s.Player[r]);for(i in s.Private)a.off(o,s.Private[i])},t.exports.offVideoAll=function(e){var t,r=e.tag;for(t in s.Video)a.off(r,s.Video[t])},t.exports.onAll=function(e){i.bind(e),n.bind(e)}},{"../../../lib/event":26,"../eventHandler/player/index":67,"../eventHandler/video/index":77,"./eventtype":63}],63:[function(e,t,r){t.exports={Video:{TimeUpdate:"timeupdate",Play:"play",Playing:"playing",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",Suspend:"suspend",Stalled:"stalled",LoadStart:"loadstart",DurationChange:"durationchange",LoadedData:"loadeddata",LoadedMetadata:"loadedmetadata",Progress:"progress",CanPlayThrough:"canplaythrough",ContextMenu:"contextmenu",Seeking:"seeking",Seeked:"seeked",ManualEnded:"manualended",VolumeChange:"volumechange",RateChange:"ratechange",Resize:"resize"},Player:{TimeUpdate:"timeupdate",DurationChange:"durationchange",Init:"init",Ready:"ready",Play:"play",Playing:"playing",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",RequestFullScreen:"requestFullScreen",CancelFullScreen:"cancelFullScreen",Snapshoted:"snapshoted",Snapshoting:"snapshoting",OnM3u8Retry:"onM3u8Retry",LiveStreamStop:"liveStreamStop",AutoPlayPrevented:"autoPlayPrevented",AutoPlay:"autoplay",StartSeek:"startSeek",CompleteSeek:"completeSeek",TextTrackReady:"textTrackReady",AudioTrackReady:"audioTrackReady",AudioTrackUpdated:"audioTrackUpdated",LevelsLoaded:"levelsLoaded",AudioTrackSwitch:"audioTrackSwitch",AudioTrackSwitched:"audioTrackSwitched",LevelSwitch:"levelSwitch",LevelSwitched:"levelSwitched",MarkerDotOver:"markerDotOver",MarkerDotOut:"markerDotOut",DefaultBandWidth:"defaultbandwidth",ResolutionChange:"resolutionChange",SeiFrame:"seiFrame",RtsFallback:"rtsFallback",RtsTraceId:"rtsTraceId",H265PlayInfo:"h265PlayInfo",H266PlayInfo:"h266PlayInfo",H265DecoderOverload:"h265DecoderOverload",SettingSelected:"settingSelected",AutoResize:"autoResize",VideoUnavailable:"videoUnavailable"},Private:{Create:"create",Play_Btn_Show:"play_btn_show",UiH5Ready:"uiH5Ready",Error_Hide:"error_hide",Error_Show:"error_show",Info_Show:"info_show",Info_Hide:"info_hide",H5_Loading_Show:"h5_loading_show",H5_Loading_Hide:"h5_loading_hide",HideProgress:"hideProgress",CancelHideProgress:"cancelHideProgress",UpdateProgress:"updateProgress",UpdateCursorPosition:"updateCursorPosition",Click:"click",MouseOver:"mouseover",MouseOut:"mouseout",MouseEnter:"mouseenter",MouseLeave:"mouseleave",TouchStart:"touchstart",TouchMove:"touchmove",TouchEnd:"touchend",HideBar:"hideBar",ShowBar:"showBar",ControlBarClick:"controlBarClick",ReadyState:"readyState",SourceLoaded:"sourceloaded",QualityChange:"qualitychange",Play_Btn_Hide:"play_btn_hide",Cover_Hide:"cover_hide",Cover_Show:"cover_show",SeekStart:"seekStart",EndStart:"endStart",UpdateProgressBar:"updateProgressBar",LifeCycleChanged:"lifeCycleChanged",Dispose:"dispose",Created:"created",Snapshot_Hide:"snapshot_hide",AutoStreamShow:"auto_stream_show",AutoStreamHide:"auto_stream_hide",VolumnChanged:"volumnchanged",LiveShiftQueryCompleted:"liveShiftQueryCompleted",LiveShiftSwitchToLive:"LiveShiftSwitchToLive",StreamSelectorHide:"streamSelectorHide",SpeedSelectorHide:"speedSelectorHide",SettingShow:"settingShow",SettingHide:"settingHide",SelectorShow:"selectorShow",SelectorHide:"selectorHide",SettingListShow:"settingListShow",SettingListHide:"settingListHide",ThumbnailHide:"thumbnailHide",ThumbnailShow:"thumbnailShow",ThumbnailLoaded:"thumbnailLoaded",TooltipShow:"tooltipShow",TooltipHide:"tooltipHide",SelectorUpdateList:"selectorUpdateList",SelectorValueChange:"selectorValueChange",SelectorGenerateList:"selectorGenerateList",VolumeVisibilityChange:"volumeVisibilityChange",VolumeUpdatePosition:"volumeUpdatePosition",ChangeURL:"changeURL",UpdateToSettingList:"updateToSettingList",CCChanged:"CCChanged",CCStateChanged:"CCStateChanged",CCReset:"ccReset",TextTrackFounded:"textTrackFounded",UserTrackReset:"userTrackReset",PlayClick:"click",ProgressMarkerLoaded:"progressMarkerLoaded",MarkerTextShow:"markerTextShow",MarkerTextHide:"markerTextHide",PREPARE:"prepare",ProgressMarkerChanged:"progressMarkerChanged",SeiFrame:"privateSeiFrame",PlayInfoLoaded:"playInfoLoaded",Retry:"retry",LicenseHasResult:"licenseHasResult",LicenseTipShow:"licenseTipShow",LicenseTipHide:"licenseTipHide",PatchWaiting:"patchWaiting",VttHide:"vttHide",VttSwitchTrack:"vttSwitchTrack",VttClearTracks:"vttClearTracks",SafariDrmLevelSwitch:"safariDrmLevelSwitch",VodRequestException:"vodRequestException",VodRequestExceptionResume:"vodRequestExceptionResume",TraceLog:"traceLog",DumpBuffer:"dumpBuffer",PlaybackRateChanged:"playbackRateChanged",StatisticsInfo:"statisticsInfo",MutedAutoplay:"mutedAutoplay",Timeline:"timeline",ManualPlay:"manualPlay",UpdateWatchTime:"updateWatchTime"}}},{}],64:[function(e,t,r){e("../../event/eventtype");var i=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){(!n.IS_IOS||n.IS_IOS&&this._splayer&&2===this._splayer.renderType)&&i.removeClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],65:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t=this;t.trigger(i.Player.CompleteSeek,e.paramData.toTime),t.one(i.Player.CanPlay,function(){t._enteredProgressMarker&&t.pause()})}},{"../../event/eventtype":63}],66:[function(e,t,r){var i=e("../../event/eventtype"),n=(e("../../../../lib/constants"),e("../../../../lang/index"),e("../../../../monitor/util"));t.exports.handle=function(e){var t=this,e=e.paramData;t.trigger(i.Private.H5_Loading_Hide),t.trigger(i.Private.Cover_Hide),t.trigger(i.Private.Play_Btn_Hide),t.trigger(i.Private.SettingListHide),t.trigger(i.Private.SelectorHide),t.trigger(i.Private.VolumeVisibilityChange,""),e=e||{},t._monitor&&(e.uuid=n.getUuid(),e.serverRequestId=t._serverRequestId,e.requestId=t._monitor.sessionId,e.cdnIp=t._monitor._userNetInfo.cdnIp,e.localIp=t._monitor._userNetInfo.localIp),t._isError=!0,t.trigger(i.Private.Error_Show,e),t.trigger(i.Private.LifeCycleChanged,{type:i.Player.Error,data:e})}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../monitor/util":55,"../../event/eventtype":63}],67:[function(e,t,r){var i=e("../../event/eventtype"),o=e("../../../../lib/event"),a=e("./lifecyclecommon"),n={endStart:e("./endstart"),seekStart:e("./seekstart"),requestFullScreen:e("./requestfullscreen"),cancelFullScreen:e("./cancelfullscreen"),error:e("./error"),privateSeiFrame:e("./seiframe"),patchWaiting:e("../video/waiting")},s=[i.Private.EndStart,i.Private.SeekStart,i.Player.RequestFullScreen,i.Player.CancelFullScreen,i.Player.Error,i.Player.Ready,i.Private.Dispose,i.Private.Created,i.Private.SeiFrame,i.Private.PatchWaiting];t.exports.bind=function(e){e.el();for(var t=0;t<s.length;t++){var r=s[t];"undefined"!=n[r]&&!function(r,i,n){var e=r.el();o.on(e,i,function(e){var t=(n&&n.handle?n:a).handle;t.call(r,e,i)})}(e,r,n[r])}}},{"../../../../lib/event":26,"../../event/eventtype":63,"../video/waiting":85,"./cancelfullscreen":64,"./endstart":65,"./error":66,"./lifecyclecommon":68,"./requestfullscreen":69,"./seekstart":70,"./seiframe":71}],68:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e,t){this.trigger(i.Private.LifeCycleChanged,{type:t,data:e})}},{"../../event/eventtype":63}],69:[function(e,t,r){e("../../event/eventtype");var i=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){(!n.IS_IOS||n.IS_IOS&&this._splayer&&2===this._splayer.renderType)&&i.addClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],70:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){this._seeking=!0,this.trigger(i.Player.StartSeek,e.paramData.fromTime)}},{"../../event/eventtype":63}],71:[function(e,t,r){e("../../event/eventtype");t.exports.handle=function(e){var t,r,e=e.paramData,i=e.pts;this._hls2?i=parseInt(1e3*i):this._hls&&(t=e.pts,r=this._initPTS,i=parseInt((t-r)/90,10)),this._seis[i]=this._seis[i]||[],this._seis[i].push(e.dataContent)}},{"../../event/eventtype":63}],72:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t=this,r=(t._retrySwitchUrlCount=0,t._liveRetryCount=0,t._clearLiveErrorHandle(),t._dumpBuffer="ABORTED",(new Date).getTime()-t.readyTime);t._options.autoplay||t._options._autoplay||!t.paused()||(t.trigger(i.Private.H5_Loading_Hide),t.trigger(i.Private.Play_Btn_Show)),t.trigger(i.Player.CanPlay,{loadtime:r})}},{"../../event/eventtype":63}],73:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../lib/dom"),o=e("../../../../lib/ua");t.exports.handle=function(e){this._seeking=!1;var t=this.tag;"none"===t.style.display&&o.IS_IOS&&setTimeout(function(){n.css(t,"display","block")},100),this.trigger(i.Video.CanPlayThrough)}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],74:[function(e,t,r){t.exports.handle=function(e,t){var r="";e&&e.paramData&&(r=e.paramData),this.trigger(t,r)}},{}],75:[function(e,t,r){var i=e("../../event/eventtype");e("../../../../lang/index"),e("../../../../lib/event");t.exports.handle=function(e){var t=this;t.waiting=!1,t._ended=!0,t._currentTimeForDisableSeek=0,t.traceLog("video/ended.js","event::ended"),t.trigger(i.Private.Play_Btn_Show),t.trigger(i.Player.Ended,{playTime:t.getPlayTime()}),t.__disposed||(t._monitor&&t._monitor._onPlayerInit(),t._options.rePlay?(t._monitor&&t._monitor.startHeartBeat(),this._splayer||(t.seek(t._getPlayStartTime()),t.tag.play())):t._options.isLive&&t.trigger(i.Private.H5_Loading_Hide))}},{"../../../../lang/index":18,"../../../../lib/event":26,"../../event/eventtype":63}],76:[function(e,t,r){var s=e("../../event/eventtype"),l=e("../../../../lib/constants"),c=e("../../../../lang/index"),u=(e("../../../../lib/event"),e("../../../../lib/ua")),p=(e("../../../../lib/io"),e("../../../../lib/playerutil")),d="video/error.js";function h(t,e,r){var i=t._options,n=i.source||"";4===(e=4!==e&&u.IS_IOS&&/qqbrowser/i.test(u.USER_AGENT)?4:e)&&p.isHls(n)?p.detectRegionBlock(n,function(e){e?(e={mediaId:i.isLive?"ISLIVE":i.vid||"",error_code:l.ErrorCode.RegionBlock,error_msg:c.get("Error_Region_Block_Text"),diagnosis_info:c.get("Tip_Err_Blocked")},t.logError(e),t.trigger("error",e)):r()}):r()}t.exports.handle=function(e){if((e.target||e.srcElement).error){var i=this;if(i.waiting=!1,i._clearTimeout(),i.checkOnline()&&!i._splayer){var n,o="",t=e.target||e.srcElement,a=t.error&&t.error.message||"",o="";if(t.error&&t.error.code&&(n=t.error.code,o=l.VideoErrorCode[t.error.code],a=n+" || "+a),i.traceLog(d,"event::error#"+n+"#"+a),i._reportDumpBuffer&&i._reportDumpBuffer(),i._options.isLive)h(i,n,function(){i._options.liveRetry>i._liveRetryCount?i._reloadAndPlayForM3u8():(i._liveRetryCount=0,i.trigger(s.Player.LiveStreamStop),i._liveErrorHandle=setTimeout(function(){var e={mediaId:"ISLIVE",error_code:o,error_msg:a||c.get("Error_Play_Text")+"\uff0c"+c.get("Error_Retry_Text")};i.logError(e),e.display_msg=l.VideoErrorCodeText[n]||e.error_msg,i.trigger("error",e)}),u.IS_UC&&(i._liveErrorHandle=null))});else if(3==n){t="";if(-1<a.indexOf("no decoder found"))t=c.get("Error_No_Decoder_Text");else if(i._nudgeCount=i._nudgeCount||0,i._nudgeCount<5){i._nudgeCount++;var r=+i._nudgeCount,r=i.getCurrentTime()+r;if(i.traceLog(d,"decode error, try to nudge("+i._nudgeCount+"/5) from "+i.getCurrentTime()+" to "+r+"s, duration: "+i.getDuration()),r<i.getDuration())return void i._loadByUrlInner(i._options.source,r,!0)}else if(function(){var e=!1,t=this.getOptions();{var r;this._fallback||!p.isHls(t.source)||this._options._native||!p.canPlayHls()||this.swPlayer||(e=!0,this._options.useHlsPluginForSafari=!1,this._options._native=!0,this.traceLog(d,"fallback to native player"),r=this.getCurrentTime(),window.Aliplayer&&window.Aliplayer.reloadInstance(this._options,function(e){e._fallback=!0,t.isLive||e.seek(r)},this))}return e}.call(i)||function(){var e=!1,t=this.getOptions();{var r;!this._fallback&&p.isHls(t.source)&&this._options._native&&p.isSupportHls()&&(e=!0,this._options.useHlsPluginForSafari=!0,this._options._native=!1,this.traceLog(d,"fallback to MSE player"),r=this.getCurrentTime(),window.Aliplayer)&&window.Aliplayer.reloadInstance(this._options,function(e){e._fallback=!0,t.isLive||e.seek(r)},this)}return e}.call(i))return;r={mediaId:i._options.vid||"",error_code:o,error_msg:a};i.logError(r),r.display_msg=l.VideoErrorCodeText[n]+(t?"\uff0c"+t:""),r.diagnosis_info=c.get("Tip_Err_Decode")+"<br />"+c.get("Tip_Err_Common_Short")+a,i.trigger(s.Player.Error,r)}else i._reloadForVod()||h(i,n,function(){var e,t,r;e=c.get("Error_Play_Text"),t=!1,n<3?e=l.VideoErrorCodeText[n]:i._eventState==l.SUSPEND?(e=c.get("Error_Load_Abort_Text"),o=l.ErrorCode.RequestDataError):i._eventState==l.LOAD_START?(e=c.get("Error_Network_Text"),0<i._options.source.indexOf("auth_key")&&(e=e+"\uff0c"+c.get("Error_AuthKey_Text")),o=l.ErrorCode.StartLoadData):i._eventState==l.LOADED_METADATA&&(e=c.get("Error_Play_Text"),o=l.ErrorCode.PlayingError),e=e+"\uff0c"+c.get("Error_Retry_Text"),1<i._urls.length&&i._retrySwitchUrlCount<3&&-1==i._options.source.indexOf(".mpd")&&(i.switchUrl(),t=!0),r={mediaId:i._options.vid||"",error_code:o,error_msg:a},t||(i.logError(r),r.display_msg=e,i.trigger(s.Player.Error,r))})}}else this.traceLog(d,"video.MediaError is null, may be caused by non-video source, like invalid poster ("+(e.target||e.srcElement).poster+")")}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../lib/event":26,"../../../../lib/io":33,"../../../../lib/playerutil":37,"../../../../lib/ua":39,"../../event/eventtype":63}],77:[function(e,t,r){var n=e("../../../../lib/event"),o=e("../../event/eventtype"),i={canplay:e("./canplay"),canplaythrough:e("./canplaythrough"),common:e("./common"),ended:e("./ended"),error:e("./error"),pause:e("./pause"),play:e("./play"),playing:e("./playing"),waiting:e("./waiting"),timeupdate:e("./timeupdate"),manualended:e("./ended"),loadedmetadata:e("./loadedmetadata"),seeking:e("./seeking"),resize:e("./resize")};t.exports.bind=function(e){e.tag;for(var t in o.Video){t=o.Video[t];!function(t,r,i){var e=t.tag;n.on(e,r,function(e){i.handle.call(t,e,r),r!=o.Video.Error&&(r==o.Video.ManualEnded&&(r=o.Video.Ended),t.trigger(o.Private.LifeCycleChanged,{type:r,data:e}))})}(e,t,void 0!==i[t]?i[t]:i.common)}}},{"../../../../lib/event":26,"../../event/eventtype":63,"./canplay":72,"./canplaythrough":73,"./common":74,"./ended":75,"./error":76,"./loadedmetadata":78,"./pause":79,"./play":80,"./playing":81,"./resize":82,"./seeking":83,"./timeupdate":84,"./waiting":85}],78:[function(e,t,r){var i=e("../../event/eventtype");e("../../../../lib/playerutil");t.exports.handle=function(e){var t=this.tag,r=t.duration<1?0:t.duration;this._getSubVideoConfig().start>r-1&&(console.warn("Params.start ["+this._getSubVideoConfig().start+"] is greater than video.duration ["+r+"] - 1, seeking to 0"),this.setStartEnd(0,this._getSubVideoConfig().end)),this._getWatchTimeConfig().watchStartTime>r-1&&(console.warn("Params.watchStartTime ["+this._getWatchTimeConfig().watchStartTime+"] is greater than video.duration ["+r+"] - 1, seeking to 0"),this.setWatchTime(0,this._getWatchTimeConfig().watchEndTime)),this.trigger(i.Private.ReadyState),this._splayer&&this.trigger(i.Video.DurationChange),this.trigger(i.Video.LoadedMetadata),t.videoWidth&&t.videoHeight||this.trigger(i.Player.VideoUnavailable)}},{"../../../../lib/playerutil":37,"../../event/eventtype":63}],79:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../lib/ua");t.exports.handle=function(e){var t=this;t._seeking&&t._splayer||(t._hls&&t._options&&t._options.isLive&&n.IS_FIREFOX&&t.trigger(i.Private.Play_Btn_Show),t._clearTimeout(),t.trigger(i.Private.AutoStreamHide),t.trigger(i.Player.Pause),t._isManualPause&&(t.trigger(i.Private.Play_Btn_Show),t.trigger(i.Private.H5_Loading_Hide)),t.waiting=!1)}},{"../../../../lib/ua":39,"../../event/eventtype":63}],80:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){this.trigger(i.Private.Error_Hide),this.trigger(i.Private.Cover_Hide),this.trigger(i.Private.AutoStreamHide),this.waiting=!1,this.trigger(i.Player.Play)}},{"../../event/eventtype":63}],81:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t,r=this;this.tag.paused||(r.trigger(i.Private.H5_Loading_Hide),r.trigger(i.Private.Cover_Hide),r.trigger(i.Private.Info_Hide),r.waiting=!1,r._ended=!1,r._liveRetryCount=0,r._vodRetryCount=0,r._seeking=!1,t=r.getCurrentTime(),r._waitingReloadTime!=t&&(r._waitingTimeoutCount=0),r._checkTimeoutHandle&&(clearTimeout(r._checkTimeoutHandle),r._checkTimeoutHandle=null),r._waitingLoadedHandle&&(clearTimeout(r._waitingLoadedHandle),r._waitingLoadedHandle=null),r._ucSourceHandle&&(clearTimeout(r._ucSourceHandle),r._ucSourceHandle=null),r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._waitingTimeoutHandle&&(clearTimeout(r._waitingTimeoutHandle),r._waitingTimeoutHandle=null,r._ccService)&&r._options.isLive&&(t=r._ccService.getCurrentSubtitle(),r._setDefaultCC=!0,t)&&r._ccService.switch(t),r.trigger(i.Private.AutoStreamHide),r.trigger(i.Player.Playing),r.trigger(i.Private.Error_Hide),r.trigger(i.Private.Play_Btn_Hide))}},{"../../event/eventtype":63}],82:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../feature/ratioAdapter");t.exports.handle=function(e){this.trigger(i.Video.Resize);var t=this.getOptions();if(t.autoSize){if(!this._ratioAdapter){if(!0!==t.autoSize&&"width"!==t.autoSize&&"height"!==t.autoSize)return void console.warn("Unknown parameter [autoSize]: "+t.autoSize+", only true/height/width are supported");!0===t.autoSize&&(t.autoSize="height"),this._ratioAdapter=new n}this._ratioAdapter.autoResize(this.tag.videoWidth/this.tag.videoHeight,this,t.autoSize)}}},{"../../../../feature/ratioAdapter":14,"../../event/eventtype":63}],83:[function(e,t,r){var a=e("../../event/eventtype");e("../../../../lib/playerutil");t.exports.handle=function(e){var t,r,i,n=this.tag,o=(this.getOptions().disableSeek&&(o=n.currentTime-this._currentTimeForDisableSeek,.01<Math.abs(o))&&(n.currentTime=this._currentTimeForDisableSeek),n.currentTime);this._canSeek(o)||(t=this._getWatchTimeConfig(),i=0,(r=this._getSubVideoConfig()).start||r.end?i=o>r.end?r.end:r.start:(t.watchStartTime||t.watchEndTime)&&(i=o>t.watchEndTime?t.watchEndTime:t.watchStartTime),n.currentTime=i),this.trigger(a.Video.Seeking)}},{"../../../../lib/playerutil":37,"../../event/eventtype":63}],84:[function(e,t,r){var p=e("../../event/eventtype"),d=e("../../../../lib/ua"),h=e("../../../../lib/event"),f=e("../../plugin/status");function _(e){var t=this;null!=e&&e.length&&e.forEach(function(e){t.trigger(p.Player.SeiFrame,e)})}t.exports.handle=function(e){var t,r,i,n=this,o=(n._isError||n.trigger(p.Player.TimeUpdate,e.timeStamp),n._decodeErrorNudgeTimer||(n._decodeErrorNudgeTimer=setTimeout(function(){n._nudgeCount=0},3e3)),(d.IS_IOS||d.IS_MAC_SAFARI)&&(clearTimeout(n._waitingPatchTimer),n._waitingPatchTimer=setTimeout(function(){n.waiting||n._isError||n.paused()||n._disposed||(console.log("!!!!!!!manually waiting!!!!!!!"),n.trigger(p.Private.PatchWaiting))},3e3)),n.getCurrentTime()),e=(n.tag.seeking||(n._currentTimeForDisableSeek=o),n.waiting&&!n._TimeUpdateStamp&&(n._TimeUpdateStamp=o),0!=n.waiting&&n._TimeUpdateStamp==o||(n.trigger(p.Private.H5_Loading_Hide),n.trigger(p.Private.AutoStreamHide),n._checkTimeoutHandle&&clearTimeout(n._checkTimeoutHandle),n._waitingTimeoutHandle&&clearTimeout(n._waitingTimeoutHandle),n._waitingLoadedHandle&&clearTimeout(n._waitingLoadedHandle),n._ucSourceHandle&&(clearTimeout(n._ucSourceHandle),n._ucSourceHandle=null),n.waiting=!1),d.IS_ANDROID&&d.IS_UC&&(n._timeNotUpdateCount=n._timeNotUpdateCount||0,n.waiting||o!==n._TimeUpdateStamp||(n._timeNotUpdateCount++,2<=n._timeNotUpdateCount&&(n._timeNotUpdateCount=0,n.trigger(p.Private.PatchWaiting)))),n._TimeUpdateStamp=o,n._options.isLive||(t=n.getDuration(),e=!1,r=0,t<o&&!n.paused()?(r=1,e=!0):t-o<.2&&0<=d.browser.version.indexOf("49.")&&!n.paused()?(r=2,e=!0):n.exceedPreviewTime(o)?(r=3,e=!0):o>=n._getWatchTimeConfig().watchEndTime&&(r=4,e=!0,n.pause()),e&&setTimeout(function(){n._ended||(n._splayer||n.paused()||n.pause(),h.trigger(n.tag,p.Video.ManualEnded),n.traceLog&&n.traceLog("video/timeupdate.js","ManualEnded#"+r+"#"+o+"#"+t))},100)),n._player.tag),a=(e&&n._options.isLive&&(n._player.resolution&&0<e.videoWidth&&0<e.videoHeight&&(0<n._player.resolution.width||0<n._player.resolution.height)&&(n._player.resolution.width!==e.videoWidth||n._player.resolution.height!==e.videoHeight)&&(i={oldResolution:{width:n._player.resolution.width,height:n._player.resolution.height},newResolution:{width:e.videoWidth,height:e.videoHeight}},n.trigger(p.Player.ResolutionChange,i)),n._player.resolution.width=0==e.videoWidth?n._player.resolution.width:e.videoWidth,n._player.resolution.height=0==e.videoHeight?n._player.resolution.height:e.videoHeight),d.IS_CHROME&&Number(d.CHROME_VERSION)<50&&(n._playingSlientPause&&(clearTimeout(n._playingSlientPause),n._playingSlientPause=null),n._playingSlientPause=setTimeout(function(){var e,t;n._status!=f.playing||n.paused()||n._drm||n._urls.length||(e=n.getCurrentTime(),t=n._options.isLive?0:e,n._loadByUrlInner(n._options.source,t,e))},3e3)),n._seis||{}),s=Object.keys(a);if(0!==s.length)for(var l=parseInt(1e3*o,10)+300,c=0;c<s.length;c++){var u=s[c];if(!(u<=l))break;_.call(n,a[u]),delete a[u]}}},{"../../../../lib/event":26,"../../../../lib/ua":39,"../../event/eventtype":63,"../../plugin/status":90}],85:[function(e,t,r){var o=e("../../event/eventtype"),a=e("../../../../lib/constants"),s=e("../../../../lib/event"),l=e("../../../../lang/index"),c=e("../../../../lib/ua"),u=e("../../../../lib/playerutil"),p="video/waiting.js";t.exports.handle=function(e){var t=this;if(!t._options.isLive){var r=this.getCurrentTime(),i=this.getDuration();if(!t._ended&&0<i&&(i-r<.5||i<r))return t.pause(),t._ended=!0,s.trigger(this.tag,o.Video.ManualEnded),void(t.traceLog&&t.traceLog(p,"ManualEnded#"+r+"#"+i))}t.waiting=!0;function n(){t._checkTimeoutHandle&&(clearTimeout(t._checkTimeoutHandle),t._checkTimeoutHandle=null),t._waitingTimeoutHandle&&(clearTimeout(t._waitingTimeoutHandle),t._waitingTimeoutHandle=null),t._waitingLoadedHandle&&(clearTimeout(t._waitingLoadedHandle),t._waitingLoadedHandle=null),t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._ucSourceHandle&&(clearTimeout(t._ucSourceHandle),t._ucSourceHandle=null)}n(),t._waitingDelayLoadingShowHandle=setTimeout(function(){c.IS_IOS&&t.paused()||t.trigger(o.Private.H5_Loading_Show)},1e3*t._options.delayLoadingShow),t._TimeUpdateStamp=null,t._checkTimeoutHandle=setTimeout(function(){t.trigger(o.Private.AutoStreamShow)},1e3*t._options.loadDataTimeout),t.trigger(o.Player.Waiting),t._waitingTimeoutHandle=setTimeout(function(){var e;t.tag&&t._options&&(t.pause(),e={mediaId:t._options.vid||"",error_code:a.ErrorCode.LoadingTimeout,error_msg:l.get("Error_Waiting_Timeout_Text")},t.logError(e),t.trigger("error",e))},1e3*t._options.waitingTimeout);r=t._options;r.disableLiveHalfRetry&&r.isLive||r.disableVodHalfRetry&&!r.isLive||(t._waitingLoadedHandle=setTimeout(function(){var e=t.getCurrentTime();0==t._waitingTimeoutCount&&e!=t._waitingReloadTime&&(t.traceLog(p,"half-retry::"+t._options.waitingTimeout/2),t._waitingTimeoutCount=1,t._waitingReloadTime=e,e=t._options.isLive?0:e,t._loadByUrlInner(t._options.source,e,!0))},t._options.waitingTimeout/2*1e3)),c.IS_ANDROID&&c.IS_DINGTALK&&(t._ucSourceHandle=setTimeout(function(){u.detectRegionBlock(t._options.source,function(e){e&&(e={mediaId:t._options.vid,error_code:a.ErrorCode.RegionBlock,error_msg:l.get("Error_Region_Block_Text"),diagnosis_info:l.get("Tip_Err_Blocked")},t.logError(e),t.trigger("error",e))})},5e3)),t.on("error",function(){n()})}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../lib/event":26,"../../../../lib/playerutil":37,"../../../../lib/ua":39,"../../event/eventtype":63}],86:[function(e,t,M){var s="undefined"==typeof Promise?e("es6-promise").Promise:Promise,l=e("../../ui/component"),c=e("../../lib/object"),n=e("../../lib/dom"),u=e("../../lib/event"),p=e("../../ui/exports"),d=e("../../monitor/monitor"),h=e("../../lib/ua"),f=e("../../lib/constants"),_=e("../../lib/playerutil"),y=e("../../lib/util"),i=e("./x5play"),r=e("../../lib/cookie"),g=e("../../lang/index"),v=e("../../feature/autoplaydelay"),m=e("./event/eventmanager"),o=e("../../ui/component/cover"),a=e("../../ui/component/license-watermark"),S=e("../../feature/license"),T=e("../../ui/component/text-track-display"),b=e("../../commonui/autostreamselector"),E=e("./event/eventtype"),w=e("./plugin/lifecyclemanager"),P=e("../service/export"),x=e("../../ui/component/progressmarker"),C=e("../../feature/keyboardControl"),k=e("../../feature/AntiRecord"),L=(e("./eventHandler/video/index"),e("../../lib/vttnext/index")),A=e("../../lib/codec-probe"),R=e("../splayer/splayerinjector"),D=e("../../ui/component/util").throttle,I=e("../../feature/ratioAdapter"),O=e("../../feature/logoManager"),N="base/player.js",e=l.extend({init:function(e,t){var r,i,n=this,o=(this.tag=e,this.loaded=!1,this.played=!1,this.oncePlayed=!1,this.waiting=!1,this._urls=[],this._currentPlayIndex=0,this._retrySwitchUrlCount=0,this._isError=!1,this._isHls=!1,this._liveRetryCount=0,this._liveRetryTimer=null,this._flvDumpTimer=null,this._vodRetryCount=0,this._nudgeCount=0,this._seeking=!1,this._serverRequestId=0,this._waitingTimeoutCount=0,this._waitingReloadTime=0,this._created=!1,this._enteredProgressMarker=!1,this._liveShiftSeekStartTime=0,this._seis={},this._initPTS=0,this.isMutiLevel=!1,this._antiRecord=null,this._ratioAdapter=null,this._logoManager=null,this._clickPauseEnabled=!1,this._currentTimeForDisableSeek=0,this._loadByUrlStartTime=0,this._posOffset=0,this._onceLogged=!1,this._licenseHasResult=!1,this.__disposed=!1,this.resolution={width:0,height:0},void 0===t.skinLayout&&(t.skinLayout=_.getDefaultH5Layout()),null!=(e=t.skinLayoutIgnore)&&e.length&&(t.skinLayout=_.ignoreSkinLayouts(t.skinLayout,t.skinLayoutIgnore)),_.isRts(t.source)&&!t.autoplay&&(t.preload=!1),"SEA"===t.env&&(t.logReportTo="https://videocloud-sgp.ap-southeast-1.log.aliyuncs.com/logstores/newplayer/track",t.disableDumpBuffer=!0),l.call(this,this,t),this.addClass("prism-player"),t.plugins&&c.each(t.plugins,function(e,t){this[e](t)},this),this._createService(),this.UI={},t.useNativeControls?this.tag.setAttribute("controls","controls"):(this.UI=p,0==t.errorDisplay&&(this.UI.errorDisplay=void 0)),t.disablePip&&this.tag.setAttribute("disablePictureInPicture","true"),null);function a(e){var r,i=this;"file:"===window.location.protocol||this._licenseHasResult||(this._licenseHasResult=!0,t.license&&t.license.key&&t.license.domain?("native"!==e.paramData.renderType&&(e=e.paramData.codecTag,_.isH265Codec(e)?r=f.FEATURE_ID_H265:_.isH266Codec(e)&&(r=f.FEATURE_ID_H266)),S.getLicense(t.license.domain,t.license.key,"SEA"===t.env?"ap-southeast-1":"cn-shanghai").then(function(e){e=e.validate(f.PLAYER_SDK_CODE,r);if(0===e)i.trigger(E.Private.LicenseHasResult,{result:f.LicenseResultCode.Success,featureId:r});else{if(1===e)return s.reject(f.LicenseResultCode.NotFound);{if(2===e)return s.reject(f.LicenseResultCode.Expired);console.error("license validate unknown error")}}}).catch(function(e){var t=String(e).split("#"),t=(e=Number(t[0]),t[1]);i.trigger(E.Private.LicenseHasResult,{result:e,errorCode:t,featureId:r}),S.logError(e)})):(console.warn(g.get("Tip_License_Required")+(t.isLive?"":": https://help.aliyun.com/zh/vod/developer-reference/license-authorization-and-management#13133fa053843")),console.warn(g.get("Tip_License_Params")+": https://help.aliyun.com/zh/vod/developer-reference/integration"),this.trigger(E.Private.LicenseHasResult,{result:f.LicenseResultCode.LicenseKeyInvalid})))}!t.isLive&&t.clickPause&&(this._clickPauseEnabled=!0,u.on(this.tag,"click",function(){n._clickPauseEnabled&&(t.dbClickFullscreen?(o&&clearTimeout(o),o=setTimeout(function(){n.paused()?n.play(!0):n.pause(!0),o=null},t.clickPauseDelay)):n.paused()?n.play(!0):n.pause(!0))})),t.dbClickFullscreen&&(r=this.fullscreenService,u.on(this.tag,"dblclick",function(){o&&(clearTimeout(o),o=null),r.getIsFullScreen()?r.cancelFullScreen():r.requestFullScreen(),n.trigger(E.Private.MarkerTextHide)})),this.initChildren(),this._options.trackLog&&(this._monitor=new d(this,{video_id:0,album_id:0,from:this._options.from,source:this._options.source,logBatched:this._options.logBatched,logReportTo:this._options.logReportTo},this._options.trackLog)),m.onAll(this),this.trigger(E.Private.Create,t._userOptions),this._options.preventRecord&&(this._antiRecord=new k({player:this}),this._antiRecord.start()),this._lifeCycleManager=new w(this),this._overrideNativePlay(),this._liveshiftService&&!this._liveshiftService.validate()?(e={mediaId:this._options.vid||"",error_code:f.ErrorCode.InvalidParameter,error_msg:g.get("ShiftLiveTime_Error")},this.trigger(E.Player.Error,e)):(this._posOffset=this._getSubVideoConfig().start||0,this._options.extraInfo&&(e=this._options.extraInfo).liveRetry&&(this._options.liveRetry=e.liveRetry),this.on(E.Private.ReadyState,function(){this.trigger(E.Player.Ready)}),this.on(E.Player.H265PlayInfo,a),this.on(E.Player.H266PlayInfo,a),this.one(E.Player.CanPlay,a),this.on(E.Private.LicenseHasResult,function(e){var e=e.paramData||{},t=e.result,r=e.errorCode,i=e.featureId,e=f.LicenseResultCode;switch(t){case e.LicenseKeyInvalid:case e.DomainInvalid:this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.Empty)});break;case e.NotFound:this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.Unauthorized)});var n="";i===f.FEATURE_ID_H265&&(n="H265"),i===f.FEATURE_ID_H266&&(n="H266"),console.error(g.get("Tip_License_Feature"),n);break;case e.Expired:this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.Expired)});break;case e.CertInvalid:-1<["E003","E005","E006"].indexOf(r)?(this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.LicenseKeyInvalid)+"("+r+")"}),console.error(g.get("Tip_License_Check"))):"E008"===r?(this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.DomainInvalid)+"("+r+")"}),console.error(g.get("Tip_License_Domain"))):"E010"===r&&(this.trigger(E.Private.LicenseTipShow,{message:g.get(f.LicenseErrorKey.NotFound)+"("+r+")"}),console.error(g.get("Tip_License_Check")))}}),this._thumbnailService&&this._options.thumbnailUrl&&this._thumbnailService.get(this._options.thumbnailUrl),0<this._options.progressMarkers.length&&this.trigger(E.Private.ProgressMarkerLoaded,this._options.progressMarkers),this._options.source&&this._options._native&&this._executeReadyCallback(),this._options.autoplay||this._options.preload?this.trigger(E.Private.H5_Loading_Show):this.trigger(E.Private.Play_Btn_Show),this._extraMultiSources(),this._options.source&&(this.trigger(E.Private.PREPARE,"custom"),this._options.autoPlayDelay?(this._autoPlayDelay=new v(this),(i=this)._autoPlayDelay.handle(function(){i.initPlay()})):this.initPlay()),this._options.ratio&&(this._options.autoSize?console.warn("The parameter [ratio] will be ignored when [autoSize] is set."):(this._options.height&&console.warn("The parameter [height] will be ignored when [ratio] is set."),this._ratioAdapter=new I,this._ratioAdapter.autoResize(this._options.ratio,this))),C.init.call(this),null!=(e=this._options.logo)&&e.length&&(this._logoManager=new O({container:this.el(),video:this.tag,logo:this._options.logo})),this._vttBroker=new L({player:this}),this._getUserTextTracks())}});e.prototype.isSupportMSE=function(){return _.isSupportMSE()},e.prototype.initPlay=function(e){this._initPlayBehavior(e,this._options.source)},e.prototype.initChildren=function(){var e=this.options(),t=e.skinLayout;if(!1!==t&&!c.isArray(t))throw new Error("PrismPlayer Error: skinLayout should be false or type of array!");!1!==t&&0!==t.length&&(this.options({children:t}),l.prototype.initChildren.call(this)),this.UI.cover=o,e.className="",this.addChild("cover",e),this.UI.autoStreamSelector=b,this.addChild("autoStreamSelector",e),this.UI.progressMarker=x,this.addChild("progressMarker",e),this.UI.textTrackDisplay=T,this.addChild("textTrackDisplay",e),this.UI.licenseWatermark=a,this.addChild("licenseWatermark",e),this.trigger(E.Private.UiH5Ready)},e.prototype.createEl=function(){var e=!1,t=("VIDEO"!==this.tag.tagName?(this._el=this.tag,this.tag=l.prototype.createEl.call(this,"video"),this._options.playsinline&&(this.tag.setAttribute("webkit-playsinline",""),this.tag.setAttribute("playsinline",""),this.tag.setAttribute("x-webkit-airplay",""),this.tag.setAttribute("x5-playsinline",""))):(e=!0,this._el=this.tag.parentNode),this._el),r=this.tag,i=(this._options.enableSystemMenu||(r.addEventListener?r.addEventListener("contextmenu",function(e){e.preventDefault()},!1):r.attachEvent("oncontextmenu",function(){window.event.returnValue=!1})),r.player=this,n.getElementAttributes(r));return c.each(i,function(e){t.setAttribute(e,i[e])}),this.setVideoAttrs(),e||(r.parentNode&&r.parentNode.insertBefore(t,r),n.insertFirst(r,t)),t},e.prototype.setVideoAttrs=function(){var e=this._options.preload,t=this._options.autoplay;if(this.tag.style.width=this._options.videoWidth||"100%",this.tag.style.height=this._options.videoHeight||"100%",e&&this.tag.setAttribute("preload","preload"),t&&"15"!==h.IOS_VERSION&&this.tag.setAttribute("autoplay","autoplay"),h.IS_IOS&&this.tag.setAttribute("poster","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAMZJREFUeAHt0DEBAAAAwqD1T20LL4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMDAc2CcpAABaODCqQAAAABJRU5ErkJggg=="),(h.IS_UC||h.dingTalk())&&this.tag.setAttribute("renderer","standard"),this._options.extraInfo)for(var r in this._options.extraInfo)h.IS_OPPO&&"crossOrigin"===r||this.tag.setAttribute(r,this._options.extraInfo[r]);i.adaptX5Play(this)},e.prototype.checkOnline=function(){var e;return!(this._options&&!this._options.debug&&0==navigator.onLine&&((e={mediaId:this._options.vid||"",error_code:f.ErrorCode.NetworkUnavaiable,error_msg:g.get("Error_Offline_Text")}).display_msg=g.get("Error_Offline_Text"),this.trigger(E.Player.Error,e),1))},e.prototype.id=function(){return this.el().id},e.prototype.renderUI=function(){},e.prototype.switchUrl=function(){var e,t;this.traceLog(N,"switchUrl"),0!=this._urls.length&&(this._currentPlayIndex=this._currentPlayIndex+1,this._urls.length<=this._currentPlayIndex&&(this._currentPlayIndex=0,this._retrySwitchUrlCount++),e=this._urls[this._currentPlayIndex],r.set(f.SelectedStreamLevel,e.definition,365),this.trigger(E.Private.QualityChange,g.get("Quality_Change_Fail_Switch_Text")),t=this.getCurrentTime(),this._vodRetryCount=0,this._originalSource="",this._loadByUrlInner(e.Url,t,!0))},e.prototype.setControls=function(){var e=this.options();e.useNativeControls?this.tag.setAttribute("controls","controls"):"object"==typeof e.controls&&(e=this._initControlBar(e.controls),this.addChild(e))},e.prototype.enableClickPause=function(){this._clickPauseEnabled=!0},e.prototype.disableClickPause=function(){this._clickPauseEnabled=!1},e.prototype._initControlBar=function(e){return new ControlBar(this,e)},e.prototype.getMetaData=function(){},e.prototype.getReadyTime=function(){return this.readyTime},e.prototype.readyState=function(){return this.tag.readyState},e.prototype.getError=function(){return this.tag.error},e.prototype.getRecentOccuredEvent=function(){return this._eventState},e.prototype.getSourceUrl=function(){return this._options?this._options.source:""},e.prototype.getMonitorInfo=function(){return this._monitor?this._monitor.opt:{}},e.prototype.getCurrentQuality=function(){var e;return 0<this._urls.length?{width:(e=this._urls[this._currentPlayIndex]).width,url:e.Url,definition:e.definition}:""},e.prototype.getCurrentPDT=function(){var e;if((h.IS_SAFARI||h.IS_IOS)&&this.tag)return e=Date.parse(this.tag.getStartDate()),isNaN(e)?0:e+1e3*this.getCurrentTime()},e.prototype.stopPlayTimeMonitor=function(){this._playTimeMonitorTimer&&(clearInterval(this._playTimeMonitorTimer),this._playTimeMonitorTimer=null)},e.prototype.startPlayTimeMonitor=function(){var o=this,a=(this._playingTime=0,this._stuckTime=0,this._stuckCount=0,performance.now()),s=0,l=0,c=!1,u=0;this.stopPlayTimeMonitor(),this._playTimeMonitorTimer=setInterval(function(){var e=o.paused()?c=!0:!o.tag,t=1e3*o.getCurrentTime(),r=performance.now(),i=r-a,n=(a=r,(t-s)/o.tag.playbackRate);s=t,n<0&&(e=!0),null!=(t=o._monitor)&&t.canplayReported||(e=!0),(e="hidden"===document.visibilityState?!0:e)||(c?c=!1:n<.8*i?(i<r-l&&(o._stuckCount++,u=r),r-u>=1e3*o.getOptions().waitingTimeout?o.stopPlayTimeMonitor():(l=r,o._playingTime+=n,o._stuckTime+=i-n)):o._playingTime+=i)},1e3)},e.prototype.setSpeed=function(e,t){void 0===t&&(t=!0),this.tag&&(this._originalPlaybackRate=e,this.tag.playbackRate=e,t)&&this.trigger(E.Private.PlaybackRateChanged,e)},e.prototype.play=function(e){return this.traceLog(N,"play::"+e),e&&this.trigger(E.Private.ManualPlay),this.tag&&(this.tag.ended||this._ended?this.replay():((this._options.preload||this.loaded)&&this.tag.src||this._initLoad(this._options.source),this.trigger(E.Private.Cover_Hide),this.tag.play())),this._isManualPlay=e||!1,this},e.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this.seek(this._getPlayStartTime()),this.tag.play(),this},e.prototype._getPlayStartTime=function(){return Math.max(0,this._getWatchTimeConfig().watchStartTime||0,this._loadByUrlStartTime||0)},e.prototype._getWatchTimeConfig=function(){var e=this.getOptions(),t=e.start,r=e.end,i=e.watchStartTime,e=e.watchEndTime,i=Number(i),e=Number(e);return(i||e)&&(_.hasValue(t)||_.hasValue(r))?(this._logOnce("Params.watchStartTime and Params.watchEndTime will be ignored when Params.start or Params.end is set","warn"),{watchStartTime:void 0,watchEndTime:void 0}):(e=e||void 0,(i=i||void 0)<0&&(this._logOnce("Params.watchStartTime is less than 0 ["+i+"], setting to undefined","warn"),i=void 0),e<0&&(this._logOnce("Params.watchEndTime is less than 0 ["+e+"], setting to undefined","warn"),e=void 0),e<=i&&(this._logOnce("Params.watchEndTime("+e+") is less than Params.watchStartTime("+i+"), setting to [undefined, "+e+"]","warn"),i=void 0),{watchStartTime:i,watchEndTime:e})},e.prototype._getSubVideoConfig=function(){var e=this.getOptions(),t=e.start,e=e.end,t=Number(t);return e=(e=Number(e))||void 0,(t=t||void 0)<0&&(this._logOnce("Params.start is less than 0 ["+t+"], setting to undefined","warn"),t=void 0),e<0&&(this._logOnce("Params.end is less than 0 ["+e+"], setting to undefined","warn"),e=void 0),e<=t&&(this._logOnce("Params.start("+t+") is greater than Params.end("+e+"), setting to [undefined, "+e+"]","warn"),t=void 0),{start:t,end:e}},e.prototype.pause=function(e){return this.tag&&this.tag.pause(),this._isManualPause=e||!1,this},e.prototype.stop=function(){return this.traceLog(N,"stop"),this.tag.setAttribute("src",null),this},e.prototype.paused=function(){if(this.tag)return!1!==this.tag.paused},e.prototype.getDuration=function(){var e=0,t=(this.tag&&(e=this.isPreview()&&this._vodDuration||this.tag.duration),this._getSubVideoConfig()),r=t.start,t=t.end;return e=r||t?Math.min(this.tag.duration,t||this.tag.duration)-Math.max(0,r||0):e},e.prototype.getDisplayDuration=function(){var e=0,t=(this.tag&&(e=this._vodDuration||this.getDuration()),this._getSubVideoConfig()),r=t.start,t=t.end;return e=r||t?Math.min(this.tag.duration,t||this.tag.duration)-Math.max(0,r||0):e},e.prototype.getCurrentTime=function(){return this.tag?this.tag.currentTime-this._posOffset:0},e.prototype.seek=function(e){var t;if(!Number.isNaN(e)&&(e=Number(e),e+=this._posOffset,this._canSeek(e)))return this._ended=!1,t=this.tag.duration,this._doSeek(this,e=t<=e?t:e),this},e.prototype._doSeek=D(function(e){var t=e[0],e=e[1];try{var r=t._originalPlaybackRate||t.tag.playbackRate;-1!==["16"].indexOf(h.IOS_VERSION)&&!t.oncePlayed||(t.tag.currentTime=e),t._seeking=!0,t.traceLog(N,"doSeek::"+e),h.IS_IE11&&setTimeout(function(){t.tag&&(t.tag.playbackRate=r)})}catch(e){console.log(e)}},100),e.prototype.traceLog=function(e,t){this.trigger(E.Private.TraceLog,"["+e+"]"+t)},e.prototype._loadByUrlInner=function(e,t,r){this.loadByUrl(e,t,r,!0)},e.prototype.loadByUrl=function(i,e,n,o){var r=this,t=(this.traceLog(N,"loadByUrl::"+i+"#"+e+"#"+n+"#"+o),this._monitor&&this._monitor._onPlayerUnderload(),this._monitor&&!o&&(this._monitor.reportPlayAbort("loadByUrl"),this._monitor.resetVV()),/\.m3u8|\.flv|\.mp4|artc\:\/\/|rtmp\:\/\//gi),a=((this._options.source||"").match(t)||[])[0]!==((i||"").match(t)||[])[0];if(this._options.liveShiftSource&&(a=!1),this._options.enableH266&&(a=!1),this._h265InfoReported=!1,this._probeInfo||(this._probeInfo={}),this._probeInfo.codecTag=void 0,!a&&(_.isMp4(i)||_.isFlv(i)||_.isHls(i)))return this._options.forceH265||this._options.forceH266||!this._options.enableH265&&!this._options.enableH266||h.IS_ANDROID&&h.dingTalk()&&!_.isFlv(i)?void s.call(this):void A(i,function(e){var e=_.getVideoTrack(e.tracks),t=(e||{}).codecTag||(null==(t=(e||{}).codec)?void 0:t.split(".")[0]);r._probeInfo.codecTag=t,e&&_.isH265Codec(t)?_.isFlv(i)||_.isHls(i)?(r._splayer||(a=!0),s.call(r)):_.shouldUseBasePlayer({codecTag:t,url:i},function(e){e?(r._splayer&&(a=!0),r._probeInfo.codecTag&&R.reportH265PlayInfo.call(r,{renderType:"native",codecTag:r._probeInfo.codecTag})):r._splayer||(a=!0),s.call(r)}):(e&&_.isH266Codec(t)?r._splayer||(a=!0):r._splayer&&(a=!0),s.call(r))},function(e){s.call(r)});function s(){var t,r=this;a&&this._splayer&&this.removeChild(this._licenseWatermark),a&&window.Aliplayer?(console.log("[RELOAD INSTANCE]"),this.traceLog(N,"reloadInstance::"+i),this._options.source=i,window.Aliplayer.reloadInstance(this._options,function(){},this)):(o||(this._urls=[]),this._monitor&&!o&&(this._monitor.reset(),this._monitor.startHeartBeat()),this._isError=!1,this._clearTimeout(),this.trigger(E.Private.Error_Hide),this._options.source=i,this._posOffset=this._getSubVideoConfig().start||0,this._monitor&&this._monitor.updateVideoInfo({video_id:0,album_id:0,source:i,from:this._options.from}),o||(this.trigger(E.Private.ChangeURL),this._vodRetryCount=0),e&&this._canSeek(e)?this._loadByUrlStartTime=e-this._posOffset:this._loadByUrlStartTime=0,this._options._autoplay=n,this.initPlay(n),(t=this._options.autoplay||n)&&this.trigger(E.Private.Cover_Hide),t?this.trigger(E.Player.Play):this.trigger(E.Player.Pause),this._options.isLive||!e&&0!=e||isNaN(e)||u.one(this.tag,E.Video.CanPlay,function(e){t&&(h.IS_IOS||h.IS_MAC_SAFARI)&&r._splayer&&r.play()}))}s.call(this)},e.prototype.setLogo=function(e){this._logoManager&&this._logoManager.dispose(),this._logoManager=new O({container:this.el(),video:this.tag,logo:e})},e.prototype.dispose=function(){this.__disposed=!0,this.trigger(E.Private.Dispose),this.tag.pause(),m.offAll(this),C.dispose.call(this),this._ratioAdapter&&(this._ratioAdapter.dispose(),this._ratioAdapter=null),this._logoManager&&(this._logoManager.dispose(),this._logoManager=null),this._antiRecord&&(this._antiRecord.dispose(),this._antiRecord=null),this._monitor&&(this._monitor.reportPlayAbort("dispose"),this._monitor.removeEvent(),this._monitor=null),this._autoPlayDelay&&this._autoPlayDelay.dispose(),this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._playingSlientPause&&(clearTimeout(this._playingSlientPause),this._playingSlientPause=null),this._waitingLoadedHandle&&(clearTimeout(this._waitingLoadedHandle),this._waitingLoadedHandle=null),this._ucSourceHandle&&(clearTimeout(this._ucSourceHandle),this._ucSourceHandle=null),this._readyStateTimer&&(clearInterval(this._readyStateTimer),this._readyStateTimer=null),this._vodRetryCountHandle&&(clearTimeout(this._vodRetryCountHandle),this._vodRetryCountHandle=null),this._waitingDelayLoadingShowHandle&&(clearTimeout(this._waitingDelayLoadingShowHandle),this._waitingDelayLoadingShowHandle=null),this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this._flvDumpTimer&&(clearTimeout(this._flvDumpTimer),this._flvDumpTimer=null),this.stopPlayTimeMonitor(),this._disposeService(),this._clearLiveErrorHandle(),this._el.innerHTML="",this.destroy(),this._releaseMediaElement(),this._options.recreatePlayer=null,this._options=null,this.isMutiLevel=!1,this._seis={},this._initPTS=0,this._clickPauseEnabled=!1,this._currentTimeForDisableSeek=0,this._posOffset=0,this._onceLogged=!1},e.prototype._releaseMediaElement=function(){this.tag.removeAttribute("src"),this.tag.load(),this.tag=null},e.prototype.mute=function(e){return this._muteInner(),this._originalVolumn=this.tag.volume,e||(e=g.get("Volume_Mute"),this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})),this._setInnerVolume(0),this},e.prototype._muteInner=function(){this.tag.muted=!0,this.trigger(E.Private.VolumnChanged,-1)},e.prototype.unMute=function(e){return this._unMuteInner(),e||(e=g.get("Volume_UnMute"),this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})),this._setInnerVolume(this._originalVolumn||.5),this},e.prototype._unMuteInner=function(){this.tag.muted=!1,this.getOptions().mute&&(this.getOptions().mute=!1),this.trigger(E.Private.VolumnChanged,-2)},e.prototype.muted=function(){return this.tag&&this.tag.muted},e.prototype.getVolume=function(){return this.tag&&this.tag.volume},e.prototype.getOptions=function(){return this._options},e.prototype.setVolume=function(e,t){0!=(e=Math.min(1,Math.max(0,e)))?this._unMuteInner():0==e&&this._muteInner(),this._setInnerVolume(e);e=g.get("Curent_Volume")+"<span>"+(100*e).toFixed()+"%</span>";this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})},e.prototype._setInnerVolume=function(e){this.tag.volume=e,this.trigger(E.Private.VolumnChanged,e)},e.prototype.hideProgress=function(){this.trigger(E.Private.HideProgress)},e.prototype.cancelHideProgress=function(){this.trigger(E.Private.CancelHideProgress)},e.prototype.setPlayerSize=function(e,t){this._el&&(this._el.style.width=e,this._el.style.height=t)},e.prototype.getBuffered=function(){return this.tag.buffered},e.prototype.setRotate=function(e){this.tag&&(this._rotate=e,this._setTransform(),this.log("ROTATE",{rotation:e}))},e.prototype.getRotate=function(e){return void 0===this._rotate?0:this._rotate},e.prototype.setImage=function(e){this.tag&&(this._image=e,this._setTransform(),this.log("IMAGE",{mirror:"horizon"==e?2:1,text:e}))},e.prototype.getImage=function(){return this._image},e.prototype.cancelImage=function(){this.tag&&(this._image="",this._setTransform(),this.log("IMAGE",{mirror:0}))},e.prototype.setCover=function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&e&&(t.style.backgroundImage="url("+e+")",this._options.cover=e,this._options.autoplay||this.trigger(E.Private.Cover_Show))},e.prototype.setTextTracks=function(e){this._options.textTracks=e,e=_.unqiueTextTracks(e||[]),this.trigger(E.Private.VttClearTracks),e&&e.length&&this.trigger(E.Private.TextTrackFounded,{from:"user",textTracks:e}),this.trigger(E.Private.CCReset)},e.prototype._setTransform=function(){this._transformProp||(this._transformProp=n.getTransformName(this.tag));var e=" translate(-50%, -50%)";this._rotate&&(e+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?e+=" scaleY(-1)":"horizon"==this._image&&(e+=" scaleX(-1)")),this.tag.style[this._transformProp]=e},e.prototype._startPlay=function(){this.tag.paused&&this.tag.play()},e.prototype._initPlayBehavior=function(e,t){var r=this;return!this._checkSupportVideoType()&&(_.validateSource(t)?(void 0===e&&(e=!1),this._created||(this._created=!0,this.trigger(E.Private.Created)),this.loaded||this.trigger(E.Player.Init),this._options.mute&&this.mute(!0),this.one(E.Video.CanPlay,function(){var e=r._getPlayStartTime();r.getCurrentTime()<e&&r.seek(e),r._loadByUrlStartTime=0,1!==r.tag.playbackRate&&r.setSpeed(r.tag.playbackRate)}),this._options.autoplay||this._options._autoplay||this._options.preload||e?(this._options._preload=!0,this._initLoad(t),(this._options.autoplay||this._options._autoplay)&&this._startPlay()):this.trigger(E.Private.Play_Btn_Show),!0):((e={mediaId:this._options.vid||"",error_code:f.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=g.get("Error_Invalidate_Source"),this.trigger(E.Player.Error,e),!1))},e.prototype._isPreload=function(){return this._options.autoplay||this._options.preload||this._options._preload},e.prototype._initLoad=function(e){e&&(this._isPreload()&&!h.IS_MOBILE?this.trigger(E.Private.H5_Loading_Show):(this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Private.Play_Btn_Show)),this.tag.setAttribute("src",e),this.oncePlayed=!1,this.loaded=!0)},e.prototype._clearLiveErrorHandle=function(){this._liveErrorHandle&&(clearTimeout(this._liveErrorHandle),this._liveErrorHandle=null)},e.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(E.Player.OnM3u8Retry);var e=this._options,t=e.liveRetryInterval+e.liveRetryStep*this._liveRetryCount,r=this;this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this.traceLog(N,"reloadAndPlayForM3u8::#"+r._options.source+"#"+1e3*t),this._liveRetryTimer=setTimeout(function(){r._liveRetryCount++,r._loadByUrlInner(r._options.source,void 0,e.autoplay)},1e3*t)},e.prototype._checkSupportVideoType=function(){var e,t=this,r=this._options.source,i="";if(_.isRTMP(r)&&!this._options.useFlashPrism)i=g.get("Error_Not_Support_RTMP");else if(_.isDash(r)&&!_.isSupportMSE())i=g.get("Error_Not_Support_Mse_Dash");else if(!this.tag.canPlayType||!this._options.source||!h.IS_MOBILE)return"";return 0<r.indexOf("m3u8")?""!=this.tag.canPlayType("application/x-mpegURL")||_.isSupportHls()||(i=g.get("Error_Not_Support_M3U8_Text")):0<r.indexOf("mp4")?""==this.tag.canPlayType("video/mp4")&&(i=g.get("Error_Not_Support_MP4_Text")):(_.isRTMP(r)||_.isFlv(r))&&h.IS_MOBILE&&(this._options.useFlvPlugOnMobile?_.isSupportFlv()||(i=g.get("Error_Not_Support_Mse_Flv")):i=g.get("Error_Not_Support_Format_On_Mobile")),i&&(r=_.getFormat(r),e={mediaId:this._options.vid||"",error_code:f.ErrorCode.FormatNotSupport,error_msg:i+(r?"(format:"+r+")":"")},this.logError(e),e.display_msg=i,setTimeout(function(){t.trigger(E.Player.Error,e)})),i},e.prototype.getComponent=function(e){return this._lifeCycleManager.getComponent(e)},e.prototype.logError=function(e,t){(this._options.autoplay||this._options._autoplay)&&this._monitor&&this._monitor.reportStartPlay(),(e=e||{}).vt=this.getCurrentTime(),this.log(t?"ERRORRETRY":"ERROR",e)},e.prototype.log=function(e,t){var r=0,i=0;if(this._monitor)return this._options&&(r=this._options.vid||"0",i=this._options.from||"0"),this._monitor.updateVideoInfo({video_id:r,album_id:0,source:this._options.source,from:i}),this._monitor._log(e,t)},e.prototype.setSanpshotProperties=function(e,t,r){if(this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric.width=e,this._snapshotMatric.height=t,1<r)throw new Error("rate doesn't allow more than 1");this._snapshotMatric.rate=r},e.prototype.setSnapshotProperties=function(e,t,r){this.setSanpshotProperties(e,t,r)},e.prototype.takeSnapshot=function(){var e=document.createElement("canvas"),t=this.tag,r=t.videoWidth,i=t.videoHeight,n=this._getSanpshotMatric(),o=(e.width=n.width||r,e.height=n.height||i,this.getCurrentTime()),a=e.getContext("2d"),s=(a.save(),this.getImage()),s=("vertical"==s?(a.translate(0,e.height),a.scale(1,-1)):"horizon"==s&&(a.translate(e.width,0),a.scale(-1,1)),t),t=(this._splayer&&(s=2===this._splayer.renderType?this._el.querySelector("canvas"):this._el.querySelector("video")),a.drawImage(s,0,0,r,i),a.restore(),_.drawSnapshotText(a,this.getOptions()),""),s="";try{t=e.toDataURL("image/jpeg",n.rate||1)}catch(e){(s=e)&&s.message&&-1<s.message.indexOf("Tainted canvases")&&(s=new Error('\u622a\u56fe\u529f\u80fd\u9700\u8981\u8bbe\u7f6e\u64ad\u653e\u5668\u53c2\u6570 extraInfo: { crossOrigin:"anonymous" }'))}r="",i="";return t&&(a=(r=t).substr(r.indexOf(",")+1),i=y.toBinary(a)),{time:o,base64:r,binary:i,error:s}},e.prototype.getStatus=function(){return this._status||"init"},e.prototype.enterProgressMarker=function(){this._enteredProgressMarker=!0},e.prototype.isInProgressMarker=function(){return this._enteredProgressMarker},e.prototype.exitProgressMarker=function(){this._enteredProgressMarker=!1},e.prototype.setProgressMarkers=function(e){this.trigger(E.Private.ProgressMarkerChanged,e=e||[])},e.prototype.getProgressMarkers=function(){return this._progressMarkerService?this._progressMarkerService.progressMarkers:[]},e.prototype.setPreviewTime=function(e){this._options.playConfig||(this._options.playConfig={}),this._options.playConfig.PreviewTime=e},e.prototype.getPreviewTime=function(){var e=0;return e=this._options.playConfig?this._options.playConfig.PreviewTime:e},e.prototype.exceedPreviewTime=function(e){return this.isPreview()&&e>=this._options.playConfig.PreviewTime},e.prototype.isPreview=function(){var e=this._options.playConfig.PreviewTime,t=this._vodDuration||this.tag.duration;return 0<e&&e<t},e.prototype.getStats=function(){return new s(function(e){e()})},e.prototype.setTraceId=function(e){this._monitor&&this._monitor.updateTraceId(e)},e.prototype._canSeek=function(e){var t=this._getSubVideoConfig(),r=t.start,t=t.end;return r||t?!(e<r||t<e):!(!(r=this._getWatchTimeConfig()).watchStartTime||r.watchEndTime)||!(e<r.watchStartTime||e>r.watchEndTime)},e.prototype.setWatchTime=function(e,t){this._options.watchStartTime=e,this._options.watchEndTime=t,this.trigger(E.Private.UpdateWatchTime);e=this.getCurrentTime(),t=this._getWatchTimeConfig();e<t.watchStartTime?this.seek(t.watchStartTime):e>t.watchEndTime&&this.seek(t.watchEndTime)},e.prototype.setNextWatchTime=function(e,t){this._options.watchStartTime=e,this._options.watchEndTime=t},e.prototype.setStartEnd=function(e,t){this._options.start=e,this._options.end=t;e=this._getSubVideoConfig();this._posOffset=e.start||0,this.trigger(E.Player.DurationChange);t=this.getCurrentTime()+this._posOffset;t<e.start?this.seek(0):t>e.end&&this.seek(e.end-this._posOffset)},e.prototype.setNextStartEnd=function(e,t){this._options.start=e,this._options.end=t},e.prototype.getPlayTime=function(){return Math.round(this._playingTime/1e3)},e.prototype._getSanpshotMatric=function(){return this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric},e.prototype._autoplayFailedHandler=function(){var e,t=this;null!=(e=this.getOptions().autoplayPolicy)&&e.fallbackToMute&&!this.muted()?(this.mute(!0),(e=this.tag.play())?e.then(function(){t.trigger(E.Private.MutedAutoplay)}).catch(function(e){t.tag.paused?(console.warn("Muted autoplay failed",e),t.unMute(!0)):t.one("canplay",function(){t.trigger(E.Private.MutedAutoplay)})}):this.paused()?this.unMute(!0):this.trigger(E.Private.MutedAutoplay)):(this.oncePlayed=!1,this.trigger(E.Private.Play_Btn_Show),this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Player.AutoPlayPrevented),this.trigger(E.Player.AutoPlay,!1),this._options.cover&&this.trigger(E.Private.Cover_Show))},e.prototype._overrideNativePlay=function(){var r=this.tag.play,i=this;this.tag.play=function(){if(i._monitor&&i._monitor.reportStartPlay(),!i._options.source)return e={mediaId:i._options.vid||"",error_code:f.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"},i._options.vid||i._options.mediaAuth?void 0:(e.display_msg=g.get("Error_Empty_Source"),void i.trigger(E.Player.Error,e));i.readyTime=(new Date).getTime();var e=r.apply(i.tag),t=(i.oncePlayed=!0,void 0!==e&&e.then(function(){i.trigger(E.Player.AutoPlay,!0)}).catch(function(e){!i.tag||!i.tag.paused||i._isError||i._options._autoplay||i._switchedLevel||i._autoplayFailedHandler()}),i._originalPlaybackRate||i.tag.playbackRate);return setTimeout(function(){i.tag&&(i.tag.playbackRate=t)}),e}},e.prototype._extraMultiSources=function(){var e=this._options.source;if(e&&-1<e.indexOf("{")&&-1<e.indexOf("}")){var t="";try{t=JSON.parse(e)}catch(e){console.error(e),console.error("\u5730\u5740json\u4e32\u683c\u5f0f\u4e0d\u5bf9")}var r,i=[];for(r in t){var n=f.QualityLevels[r];i.push({definition:r,Url:t[r],desc:n||r})}this._setupSourceList(i)}return i},e.prototype._setupSourceList=function(e){var t;(e=void 0===e?[]:e).length&&(this._currentPlayIndex=_.findSelectedStreamLevel(e,this._options.defaultDefinition),t=e[this._currentPlayIndex],this._urls=e,this._options.source=t.Url,this.trigger(E.Private.SourceLoaded,t))},e.prototype._createService=function(){if(P)for(var e=P.length,t=0;t<e;t++){var r=P[t],i=r.condition;void 0===i?i=!0:"function"==typeof i&&(i=i.call(this)),i&&(this[r.name]=new r.service(this))}},e.prototype._disposeService=function(){if(P)for(var e=P.length,t=0;t<e;t++){var r=this[P[t].name];void 0!==r&&r.dispose&&r.dispose()}},e.prototype._executeReadyCallback=function(){this._options._readyCallbackCalled=!0;try{this._options.autoplay||this._options.preload||(this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Private.Play_Btn_Show)),this._options.readyCallback(this)}catch(e){console.log(e)}},e.prototype._clearTimeout=function(){this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._decodeErrorNudgeTimer&&(clearTimeout(this._decodeErrorNudgeTimer),this._decodeErrorNudgeTimer=null),this._clearLiveErrorHandle()},e.prototype._reloadForVod=function(){var e,t,r;return this._originalSource||(this._originalSource=this._options.source),!!(this._vodRetryCount<this._options.vodRetry&&navigator.onLine)&&(e=this.getCurrentTime(),(t=this._originalSource).indexOf("auth_key=")<0&&(t=t&&0<t.indexOf("?")?t+"&_t="+(new Date).valueOf():t+"?_t="+(new Date).valueOf()),this._vodRetryCountHandle&&clearTimeout(this._vodRetryCountHandle),(r=this).traceLog(N,"reloadForVod::#"+t+"#"+100*this._vodRetryCount),this._vodRetryCountHandle=setTimeout(function(){r._loadByUrlInner(t,e,r.getOptions().autoplay)},100*this._vodRetryCount),this._vodRetryCount=this._vodRetryCount+1,!0)},e.prototype._getUserTextTracks=function(){var e=this._options.textTracks||[];(e=_.unqiueTextTracks(e)).length&&this.trigger(E.Private.TextTrackFounded,{from:"user",textTracks:e})},e.prototype._logOnce=function(e,t){this._onceLogged||(console[t||"log"](e),this._onceLogged=!0)},t.exports=e},{"../../commonui/autostreamselector":4,"../../feature/AntiRecord":9,"../../feature/autoplaydelay":10,"../../feature/keyboardControl":11,"../../feature/license":12,"../../feature/logoManager":13,"../../feature/ratioAdapter":14,"../../lang/index":18,"../../lib/codec-probe":20,"../../lib/constants":22,"../../lib/cookie":23,"../../lib/dom":25,"../../lib/event":26,"../../lib/object":35,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../lib/vttnext/index":46,"../../monitor/monitor":54,"../../ui/component":103,"../../ui/component/cover":107,"../../ui/component/license-watermark":112,"../../ui/component/progressmarker":116,"../../ui/component/text-track-display":127,"../../ui/component/util":132,"../../ui/exports":135,"../service/export":96,"../splayer/splayerinjector":102,"./event/eventmanager":62,"./event/eventtype":63,"./eventHandler/video/index":77,"./plugin/lifecyclemanager":89,"./x5play":91,"es6-promise":1}],87:[function(e,t,r){e=e("../../../lib/oo").extend({});t.exports=e},{"../../../lib/oo":36}],88:[function(e,t,r){t.exports={createEl:"createEl",created:"created",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",timeUpdate:"timeupdate",error:"error",ended:"ended",dispose:"dispose",markerDotOver:"markerDotOver",markerDotOut:"markerDotOut"}},{}],89:[function(e,t,r){function i(i){(this._player=i)._status="init",this.components=[];var e=i.getOptions().components;if(e&&s.isArray(e)&&0<e.length)for(var t=0;t<e.length;t++){var r=e[t];if(!r)return void console.log("The "+t+" custome component is "+r);var n=void 0===r.type?r:r.type,o=void 0===r.args?[]:r.args,r=void 0===r.name?"":r.name;if(!n)return void console.log(r+" compenent is "+n);o=o&&0<o.length?[].concat.call([n],o):[],n=new(Function.prototype.bind.apply(n,o)),o=n[c.createEl];o&&"function"==typeof o&&o.call(n,i.el(),i),this.components.push({name:r,obj:n})}var a=this;i.on(l.Private.LifeCycleChanged,function(e){var t=e.paramData,r=t.type,t=t.data;r===l.Video.CanPlayThrough&&a._player.trigger(l.Player.TimeUpdate,t.target.currentTime),r===l.Video.Ended&&a._player.trigger(l.Player.TimeUpdate,a._player.getDuration()),0!=a.components.length&&u.call(a,i,e)})}var s=e("../../../lib/object"),l=e("../event/eventtype"),c=e("./lifecycle"),n=e("./status"),u=(i.prototype.getComponent=function(e){var t=null,r=this.components.length;if(e)for(var i=0;i<r;i++)if(this.components[i].name==e){t=this.components[i].obj;break}return t},function(e,t){if(t){for(var t=t.paramData,r=t.type,i=t.data,n=((t=r)!=l.Video.LoadStart&&t!=l.Video.LoadedData&&t!=l.Video.LoadedMetadata||(r=c.loading),p(e,r),this.components.length),o=0;o<n;o++){var a=this.components[o].obj,s=a[r];s&&"function"==typeof s&&s.call(a,e,i)}r==l.Private.Dispose&&(this.components=[])}}),p=function(e,t){void 0===n[t]||t==n.pause&&(e._status==n.error||e._status==n.ended)||t==n.ready&&e._status==n.playing||(e._status=t)};t.exports=i},{"../../../lib/object":35,"../event/eventtype":63,"./lifecycle":88,"./status":90}],90:[function(e,t,r){t.exports={init:"init",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",error:"error",ended:"ended"}},{}],91:[function(e,t,r){function i(e,t){var r=e.el().style.height,i=e.el().style.width,n=(e.originalLayout={container:{height:r,width:i},video:{width:e.tag.style.width,height:e.tag.style.height}},document.body.clientHeight*(window.devicePixelRatio||1)+"px"),o=document.body.clientWidth+"px";width=t?(height=n,o):(height=r.indexOf("%")?r:r+"px",i.indexOf("%")?i:i+"px"),e.tag.style.width=o,e.tag.style.height=n,e.el().style.height=t?n:height}var n=e("../../lib/ua"),o=e("../../lib/dom");t.exports.isAndroidX5=function(){return n.os.android&&n.is_X5||n.dingTalk()},t.exports.adaptX5Play=function(r){n.os.android&&n.is_X5&&("h5"==r._options.x5_type&&(r.tag.setAttribute("x5-video-player-type",r._options.x5_type),window.onresize=function(){var e,t;i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),"landscape"==(e=r)._x5VideoOrientation&&(e._originalTagWidth=e.tag.style.width,e._originalTagHeight=e.tag.style.height,(t=document.querySelector("#"+e.id()+" .prism-controlbar"))&&parseFloat(t.offsetHeight),e.tag.style.height="100%",e.tag.style.width=window.screen.width+"px")},r.tag.addEventListener("x5videoenterfullscreen",function(){i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),r.trigger("x5requestFullScreen")}),r.tag.addEventListener("x5videoexitfullscreen",function(){var e,t;(e=r).originalLayout&&(t=e.originalLayout,e.el().style.height=t.container.height,e.el().style.width=t.container.width,e.tag.style.width=t.video.width,e.tag.style.height=t.video.height),r.trigger("x5cancelFullScreen"),r.fullscreenService.getIsFullScreen()&&r.fullscreenService.cancelFullScreen()}),r.on("requestFullScreen",function(){"top"==r._options.x5_video_position&&o.removeClass(r.tag,"x5-top-left"),n.os.android&&n.is_X5&&r._options.x5LandscapeAsFullScreen&&(r.tag.setAttribute("x5-video-orientation","landscape"),r._x5VideoOrientation="landscape")}),r.on("cancelFullScreen",function(){"top"==r._options.x5_video_position&&o.addClass(r.tag,"x5-top-left"),n.os.android&&n.is_X5&&r._options.x5LandscapeAsFullScreen&&(r.tag.setAttribute("x5-video-orientation","portrait"),i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),r._x5VideoOrientation="portrait")})),void 0!==r._options.x5_fullscreen&&r._options.x5_fullscreen&&(r.tag.setAttribute("x5-video-player-fullscreen",r._options.x5_fullscreen),o.addClass(r.tag,"x5-full-screen")),"top"==r._options.x5_video_position&&o.addClass(r.tag,"x5-top-left"),void 0!==r._options.x5_orientation)&&r.tag.setAttribute("x5-video-orientation",r._options.x5_orientation)}},{"../../lib/dom":25,"../../lib/ua":39}],92:[function(e,t,r){!function(T){!function(){var l=e("../../lib/io"),_=e("../../config"),y=e("../../lib/constants"),p=e("../../lib/util"),d=e("../../lib/playerutil"),h=e("../../lib/ua"),g=e("../../lib/data"),v=e("../../lang/index"),m=e("../base/event/eventtype"),S="flvinjector.js";t.exports.inject=function(e,t,r,i,c,n){var u,o=i.source,a=i.optionFormat;function s(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyFlv(),this._superPt&&(t.prototype.play=this._superPt.play,t.prototype.pause=this._superPt.pause,t.prototype.initPlay=this._superPt.initPlay,t.prototype.seek=this._superPt.seek,t.prototype.canSeekable=this._superPt.canSeekable))}function f(e){try{for(var t=e.buffered.length,r="Len:"+t+";",i=0;i<t;i++)r+="["+(i+1)+"]"+e.buffered.start(i)+"~"+e.buffered.end(i);return r}catch(e){}}(n||(i=o,n=a,!e._flv&&d.isFlv(i,n)&&d.isSupportFlv()))&&(e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,t.prototype._checkFlvReady=function(){if(null==this._flv)throw new Error("please invoke this method after ready event")},e._isFlv=!0,e._flv=null,e._isLoadedFlv=!1,e._dumpBuffer=null,t.prototype.play=function(e){this.traceLog(S,"play::"+e),e&&this.trigger(m.Private.ManualPlay),this._checkFlvReady(),this._isManualPlay=e||!1;return this.trigger(m.Private.Cover_Hide),this._options.isLive&&e?this._loadByUrlInner(this._options.source,0,e):this.tag.ended||this._ended?this.replay():(0==this._seeking&&(e=0,this.tag.ended||this._ended||0==(e=this.getCurrentTime())&&(e=-1),-1!=e)&&this.seek(e),this.tag.paused&&(this._hasLoaded||(this._hasLoaded=!0,this._flv.load()),this._flv.play())),this},t.prototype.seek=function(e){this._checkFlvReady(),this._seeking=!0;var t=this.getDuration();t<=(e=Math.floor(e))&&(e=t);try{this._flv.currentTime=e}catch(e){console.log(e)}return this},t.prototype.pause=function(e){return this._checkFlvReady(),this._isManualPause=e||!1,this._flv.pause(),this},t.prototype.getProgramDateTime=function(){var e;return this._checkFlvReady(),this._metadata?(e=(e=this._flv.getFirstSample())&&e.pts?e.pts:0,console.log("\u63a8\u6d41\u65f6\u95f4\uff1a"+this._metadata.NtpTime),console.log("\u9996\u5e27PTS\uff1a"+e),this._metadata.NtpTime+e):""},t.prototype.initPlay=function(e){var t,r,i;function n(n,e){if(!n._disposed){var t=!n._flv,r=(n._destroyFlv(),n._options.isLive);if(r)if(!flvjs.getFeatureList().networkStreamIO)return(s={error_code:y.ErrorCode.FormatNotSupport,error_msg:v.get("Error_Not_Support_Mse_Flv")+"|streamIO(format:flv)"}).display_msg=s.error_msg,void n.trigger(m.Player.Error,s);var i,o={isLive:r,enableWorker:n._options.enableWorker,accurateSeek:!0},a=(h.IS_IE11&&(o.enableWorker=!1),{type:"flv",isLive:r,url:n._options.source});for(i in r?(o.enableStashBuffer=n._options.enableStashBufferForFlv,o.stashInitialSize=n._options.stashInitialSizeForFlv,o.autoCleanupSourceBuffer=!1):o.lazyLoadMaxDuration=600,o.statisticsInfoReportInterval=1e3,n._options.isLive&&(n._options.flvFrameChasing&&(o.flvFrameChasing=n._options.flvFrameChasing),n._options.chasingFirstParagraph&&(o.chasingFirstParagraph=n._options.chasingFirstParagraph),n._options.chasingSecondParagraph&&(o.chasingSecondParagraph=n._options.chasingSecondParagraph),n._options.chasingFirstSpeed&&(o.chasingFirstSpeed=n._options.chasingFirstSpeed),n._options.chasingSecondSpeed)&&(o.chasingSecondSpeed=n._options.chasingSecondSpeed),n._options.flvOption)"cors"==i||"hasAudio"==i||"withCredentials"==i||"hasVideo"==i||"type"==i?a[i]=n._options.flvOption[i]:o[i]=n._options.flvOption[i];flvjs.LoggingControl.enableAll=n._options.debug,n._flv=flvjs.createPlayer(a,o),u(n,n._flv),n._flv.on(flvjs.Events.DUMP_BUFFER,function(e){var t,r,i;n._options.disableDumpBuffer||0===n._liveRetryCount&&0===n._vodRetryCount&&0===n._nudgeCount&&"string"!=typeof n._dumpBuffer&&(n._flvDumpTimer||(n._flvDumpTimer=setTimeout(function(){n._reportDumpBuffer&&n._reportDumpBuffer()},5e3)),e=new Uint8Array(e),n._dumpBuffer?n._dumpBuffer=(t=n._dumpBuffer,r=e,(i=new Uint8Array(t.length+r.length)).set(t),i.set(r,t.length),i):n._dumpBuffer=e)});var s,l=p.throttle(function(e){n.traceLog(S,"dts_adjustment::"+e.from+"->"+e.to)},1e3);n._flv.on(flvjs.Events.DTS_ADJUSTMENT,function(e){l(e)}),n._flv.on(flvjs.Events.MEDIA_INFO,function(e){n._metadata=e.metadata}),n._flv.on(flvjs.Events.METADATA_ARRIVED,function(e){e&&e.dataContent&&e.dataContent.length&&n.trigger(m.Private.SeiFrame,{dataContent:e.dataContent,pts:e.pts})}),n._flv.on(flvjs.Events.STATISTICS_INFO,function(e){n.trigger(m.Private.StatisticsInfo,e)}),n._flv.attachMediaElement(n.tag),n._initPlayBehavior(e)&&((n._options.preload||n._options.autoplay)&&(n._hasLoaded=!0,n._flv.load()),n._options.autoplay&&!n.tag.paused&&n._flv.play(),c&&c(n._flv),t)&&(n._executeReadyCallback(),n._urls)&&0<n._urls.length&&(n._currentPlayIndex=d.findSelectedStreamLevel(n._urls,n._options.defaultDefinition),s=n._urls[n._currentPlayIndex],n._options.source=s.Url,n.trigger(m.Private.SourceLoaded,s))}}h.browser.safari&&this.trigger(m.Private.Snapshot_Hide),p.contentProtocolMixed(o,"",a)?((t={mediaId:this._options.vid||"",error_code:y.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=v.get("Request_Block_Text"),this.trigger(m.Player.Error,t)):(r=this)._isLoadedFlv&&"undefined"!=typeof Hls?setTimeout(function(){n(r,e)},1e3):(this.trigger(m.Private.H5_Loading_Show),i=performance.now(),function(e,t,r){var i="aliplayer-flv-min.js",n="",n=_.domain?"https://"+_.domain+_.path+_.h5Version+"/flv/"+i:"/build/flv/"+i,o=(this._options.assetPrefix&&(n=this._options.assetPrefix+"/flv/"+i),JSON.parse(T)&&(n="http://localhost:8000/dist/aliplayer-flv.js"),this);l.loadJS(n,function(){e.apply(o)},function(){r&&r()})}.call(r,function(){this.traceLog(S,"got js#"+parseInt(performance.now()-i)),this._isLoadedFlv=!0,n(this,e)},this._options.debug,function(){var e={mediaId:r._options.vid||"",mediaAuth:r._options.mediaAuth||"",error_code:y.ErrorCode.ModuleLoadError,error_msg:"flv module load error."};r.trigger(m.Player.Error,e)}))},t.prototype._reportDumpBuffer=function(){var e,t;this.__flvDumpTimer&&clearTimeout(this.__flvDumpTimer),this.__flvDumpTimer=null,this._dumpBuffer&&"string"!=typeof this._dumpBuffer&&(1048576<this._dumpBuffer.byteLength&&(this._dumpBuffer=this._dumpBuffer.slice(0,1048576)),e=this._dumpBuffer,this._dumpBuffer="REPORTED",performance.now(),e=p.arrayBufferToB64(e),t=g.guid(),this.traceLog(S,"dump::"+t),this.trigger(m.Private.DumpBuffer,{id:t,data:e}))},t.prototype._destroyFlv=function(){try{this._flv&&(this._flv.pause(),this._flv.destroy())}catch(e){console.log(e)}this.loaded=!1,this._hasLoaded=!1,this._flv=null,this._flvDumpTimer&&(clearTimeout(this._flvDumpTimer),this._flvDumpTimer=null),this._dumpBuffer=null},Object.defineProperty(t.prototype,"dispose",{enumerable:!0,configurable:!0,get:function(){return s},set:function(){return s}}),t.prototype.canSeekable=function(e){var t=this._flv.mediaInfo;return!(!this._flv._isTimepointBuffered(e)&&t&&!t.hasKeyframesIndex)},t.prototype._getbwEstimator=function(){var e;return 1024*(null==(e=this._flv)||null==(e=e.statisticsInfo)?void 0:e.speed)*8},u=function(p,d){var h=!1;d.on(flvjs.Events.ERROR,function(e,t,r){var i,n,o,a,s="flvjs-error::"+e+"#"+t+"#"+r.code+"#"+r.msg,l="BodyStreamBuffer was aborted"===r.msg&&d._config.lazyLoad;if(l){s+="#Maximum buffering duration exceeded, suspend transmuxing task";try{var c=d._msectl._sourceBuffers.video,u=d._msectl._sourceBuffers.audio;s+="#Video buffer:"+f(c)+"#Audio buffer:"+f(u)}catch(e){}}p.traceLog(S,s),p._reportDumpBuffer&&p._reportDumpBuffer(),e===flvjs.ErrorTypes.BUFFER_FULL||(p._flv.unload(),l)||p._isError||(i=y.ErrorCode.OtherError,n=v.get("Error_Play_Text"),o=null,t==flvjs.ErrorDetails.NETWORK_EXCEPTION?!(c=p.getOptions().source)||0!=c.toLowerCase().indexOf("http://")&&0!=c.toLowerCase().indexOf("https://")?(i=y.ErrorCode.InvalidSourceURL,n=v.get("Error_Invalidate_Source_Widthout_Protocal"),h=!0):n=navigator.onLine?(i=y.ErrorCode.RequestDataError,v.get("Maybe_Cors_Error")):(i=y.ErrorCode.NetworkError,v.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_STATUS_CODE_INVALID?"404"==r.code?(i=y.ErrorCode.NotFoundSourceURL,n=v.get("Error_Not_Found"),o=v.get("Tip_Err_Not_found")):"403"==r.code?(i=y.ErrorCode.AuthKeyExpired,n=v.get("Error_AuthKey_Text"),h=!0):(i=y.ErrorCode.NetworkError,n=v.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_TIMEOUT?(i=y.ErrorCode.LoadingTimeout,n=v.get("Error_Waiting_Timeout_Text")):t==flvjs.ErrorDetails.MEDIA_FORMAT_UNSUPPORTED||t==flvjs.ErrorDetails.MEDIA_CODEC_UNSUPPORTED?(i=y.ErrorCode.FormatNotSupport,n=v.get("Error_H5_Not_Support_Text")+"|codec(format:flv)",h=!0):t===flvjs.ErrorDetails.MEDIA_MSE_ERROR&&(u=p.tag.error)&&(i=y.VideoErrorCode[u.code],n=u.code+" || "+u.message),s=function(){var e;setTimeout(function(){p.trigger(m.Private.Play_Btn_Hide)}),p.checkOnline()&&(e={mediaId:p._options&&p._options.vid?p._options.vid:"",error_code:i,error_msg:n,diagnosis_info:o},p.logError(e),e.display_msg=n,_.cityBrain&&(p.flv=null),p.trigger(m.Player.Error,e))},p._options&&p._options.isLive&&!h?(a=p._options).liveRetry>p._liveRetryCount?(0==p._liveRetryCount&&p.trigger(m.Player.OnM3u8Retry),e=a.liveRetryInterval+a.liveRetryStep*p._liveRetryCount,p._liveRetryCount++,setTimeout(function(){p._isError||p._liveRetryTimer||p._loadByUrlInner(a.source)},1e3*e)):(p.trigger(m.Player.LiveStreamStop),s()):t===flvjs.ErrorDetails.MEDIA_MSE_ERROR&&11===r.code&&p.getCurrentTime()<p.getDuration()?(p._flv.unload(),p._flv.load(),p._flv.detachMediaElement(),p._flv.attachMediaElement(p.tag)):h?(p._flv.unload(),s()):p._reloadForVod()||s())})})}}.call(this)}.call(this,"false")},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/data":24,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../base/event/eventtype":63}],93:[function(e,t,r){!function(L){!function(){function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var g,_=e("../../lib/object"),y=e("../../lib/io"),v=e("../../config"),m=e("../../lib/constants"),S=e("../../lib/util"),T=e("../../lib/playerutil"),b=e("../../lib/ua"),E=e("../../lang/index"),w=e("../base/event/eventtype"),P="hlsinjector.js";function x(){this&&this._hls&&(this._hls.stopLoad(),this._hls.destroy(),this._hls=null)}function C(e){this.trigger(w.Private.Timeline,{name:e,ts:performance.now()})}function k(e,t){return t<e.maxNumRetry}t.exports.inject=function(e,t,r,i,n,o){e._hls2=!1;var a,s=i.source,l=i.useHlsPluginForSafari,c=i.useHlsPlugOnMobile,u=i.optionFormat;function p(e){this._checkHlsReady();try{this._superPt.seek.call(this,e),this.tag.paused&&this._stopLoadAsPaused&&this._hls.startLoad(e)}catch(e){console.log(e)}return this}function d(e,t){t.frag.level===this.currentLevel&&(this.off(g.Events.FRAG_BUFFERED,d),this.media.currentTime=this.media.currentTime+.01)}function h(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyHls(),this._superPt&&(t.prototype.play=this._superPt.play,t.prototype.pause=this._superPt.pause,t.prototype.initPlay=this._superPt.initPlay,t.prototype.replay=this._superPt.replay,t.prototype.stop=this._superPt.stop,t.prototype.seek=this._superPt.seek))}((n||"").length||o||(i=s,o=l,l=c,c=u,!e._hls&&T.isHls(i,c)&&(!T.canPlayHls()||T.isSafariUsedHlsPlugin(o)||l&&T.isUsedHlsPluginOnMobile())))&&(e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,t.prototype._checkHlsReady=function(){if(null==this._hls)throw new Error("please invoke this method after ready event")},e._isHls=!0,e._hls=null,e._isLoadedHls=!1,e._stopLoadAsPaused=!0,e._yekced_saved=n,t.prototype.play=function(e){this.traceLog(P,"play::"+e),e&&this.trigger(w.Private.ManualPlay),this._checkHlsReady(),this._isManualPlay=e||!1;return this.trigger(w.Private.Cover_Hide),this._options.autoplay||this._options.preload||this._loadSourced||(this._loadSourced=!0,this._options._autoplay=!0,this._hls.loadSource(this._options.source)),this.tag.ended||this._ended?this.replay():this.tag.paused&&(this.tag.play(),this._stopLoadAsPaused)&&(e=this.getCurrentTime(),this._hls.startLoad(e)),this},t.prototype.pause=function(e){return this.tag&&(this._checkHlsReady(),this.tag.pause(),this._stopLoadAsPaused)&&this._hls.stopLoad(),this._isManualPause=e||!1,this},t.prototype.stop=function(){return this._checkHlsReady(),this.tag.setAttribute("src",null),this._hls.stopLoad(),this},Object.defineProperty(t.prototype,"seek",{enumerable:!0,configurable:!0,get:function(){return p},set:function(){return p}}),t.prototype.getProgramDateTime=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";var e=this._hls.currentLevel,e=this._hls.levels[e].details;if(e){e=e.programDateTime;if(console.log("ProgramDateTime="+e),e)return new Date(e).valueOf()}return 0},t.prototype.getCurrentPDT=function(){var e,t;return this._checkHlsReady(),-1==this._hls.currentLevel?"":this._hls.playingDate?this._hls.playingDate.getTime():(e=(t=this._hls.streamController.fragPlaying||{}).pdt)?(t=1e3*t.startPTS,e+(1e3*this.getCurrentTime()-t)):0},t.prototype._switchLevel=function(e){this.traceLog(P,"switchLevel::"+e),this.trigger(w.Player.LevelSwitch);for(var t=this._hls.levels,r=!0,i=0;i<t.length;i++)if(t[i].url==e||t[i].url[0]==e){r=!1,this._hls2&&this._options.seamlessHandover?(this._hls.loadLevel=i,console.log("Seamlessly set nextLevel to",i)):(this._hls.on(g.Events.FRAG_BUFFERED,d),this._hls.currentLevel=i,console.log("Immediately set currentLevel to",i));break}r&&(this._hls.on(g.Events.FRAG_BUFFERED,d),this._hls.currentLevel=-1),this._switchedLevel=!0;var n=this;setTimeout(function(){n.trigger(w.Player.LevelSwitched),this._switchedLevel=!1},1e3)},t.prototype._getHlsVersion=function(e){!0===this._options.useHls2?(this._hls2=!0,e()):!1===this._options.useHls2&&e()},t.prototype.initPlay=function(r){var e,i;function n(s,t){if(!s._disposed){if(s._antiRecord)if(console.log("Manual check before load source"),s._antiRecord.check())return;var e,r=!s._hls,i=(s._destroyHls(),{xhrSetup:function(e,t){e.withCredentials=s._options.withCredentials||!1}}),n=(s._hls2||(n=s._options.loadingTimeOut||s._options.hlsLoadingTimeOut)&&(i.manifestLoadingTimeOut=n,i.levelLoadingTimeOut=n,i.fragLoadingTimeOut=n),s._hls2&&(i.manifestLoadPolicy=f({},g.DefaultConfig.manifestLoadPolicy),i.playlistLoadPolicy=f({},g.DefaultConfig.playlistLoadPolicy),i.fragLoadPolicy=f({},g.DefaultConfig.fragLoadPolicy),n=s._options.isLive?s._options.liveRetry:s._options.vodRetry,i.manifestLoadPolicy.default.errorRetry.maxNumRetry=n,s._options.isLive&&(i.manifestLoadPolicy.default.errorRetry.shouldRetry=k),i.manifestLoadPolicy.default.timeoutRetry.maxNumRetry=n,i.playlistLoadPolicy.default.errorRetry.maxNumRetry=n,s._options.isLive&&(i.playlistLoadPolicy.default.errorRetry.shouldRetry=k),i.playlistLoadPolicy.default.timeoutRetry.maxNumRetry=n,i.fragLoadPolicy.default.maxLoadTimeMs=2e4,i.fragLoadPolicy.default.errorRetry.shouldRetry=k,(n=s._options.hlsOption||{}).manifestLoadPolicy&&(i.manifestLoadPolicy=_.deepMerge(i.manifestLoadPolicy,n.manifestLoadPolicy),delete n.manifestLoadPolicy),n.playlistLoadPolicy&&(i.playlistLoadPolicy=_.deepMerge(i.playlistLoadPolicy,n.playlistLoadPolicy),delete n.playlistLoadPolicy),n.fragLoadPolicy&&(i.fragLoadPolicy=_.deepMerge(i.fragLoadPolicy,n.fragLoadPolicy),delete n.fragLoadPolicy),s._options.isLive)&&!b.IS_IE11&&(i.backBufferLength=12,i.liveDurationInfinity=!0),s._options.isLive&&(s._options.hlsFrameChasing&&(i.hlsFrameChasing=s._options.hlsFrameChasing),s._options.chasingFirstParagraph&&(i.chasingFirstParagraph=s._options.chasingFirstParagraph),s._options.chasingSecondParagraph&&(i.chasingSecondParagraph=s._options.chasingSecondParagraph),s._options.chasingFirstSpeed&&(i.chasingFirstSpeed=s._options.chasingFirstSpeed),s._options.chasingSecondSpeed)&&(i.chasingSecondSpeed=s._options.chasingSecondSpeed),s._options.defaultBandwidth&&(i.defaultBandwidth=s._options.defaultBandwidth),s._options.hlsBandWidthUpCacheTime&&(i.abrBandWidthUpCacheTime=s._options.hlsBandWidthUpCacheTime),s._options.seamlessHandover&&(i.seamlessHandover=s._options.seamlessHandover),s._options.liveSyncDurationCount&&(i.liveSyncDurationCount=s._options.liveSyncDurationCount),s._options.nudgeMaxRetry&&(i.nudgeMaxRetry=s._options.nudgeMaxRetry),s._options.maxMaxBufferLength&&(i.maxMaxBufferLength=s._options.maxMaxBufferLength),s._options.maxBufferSize&&(i.maxBufferSize=s._options.maxBufferSize),s._options.fragLoadingRetryDelay&&(i.fragLoadingRetryDelay=s._options.fragLoadingRetryDelay),s._options.maxBufferLength&&(i.maxBufferLength=s._options.maxBufferLength),s._options.accessKeyId&&(i.accessKeyId=s._options.accessKeyId),s._options.accessKeySecret&&(i.accessKeySecret=s._options.accessKeySecret),s._options.securityToken&&(i.securityToken=s._options.securityToken),s._options.app&&(i.app=s._options.app),s._options.stream&&(i.stream=s._options.stream),s._options.domain&&(i.domain=s._options.domain),s._options.regionId&&(i.regionId=s._options.regionId),s._yekced_saved&&(i._yekcedxx=s._yekced_saved,i._vpk=s._yekced_saved),i.enableWorker=s._options.enableWorker,i.debug=s._options.debug,s._stopLoadAsPaused=s._options.hlsOption.stopLoadAsPaused,s._getPlayStartTime()+s._posOffset);for(e in n&&(i.startPosition=n,console.log("hls.js startPosition => ",n)),s._options.hlsOption)i[e]=s._options.hlsOption[e];b.IS_IE11&&(i.enableWorker=!1),s._hls=new g(i),a(s,s._hls),s._loadSourced=!1,s._hls.attachMedia(s.tag),s._hls.on(g.Events.INIT_PTS_FOUND,function(e,t){s._initPTS=t.initPTS}),s._hls.on(g.Events.FRAG_LOADING,function(){C.call(s,"frag_s")}),s._hls.on(g.Events.FRAG_LOADED,function(){C.call(s,"frag_f")}),s._hls.on(g.Events.FRAG_PARSED,function(){C.call(s,"frag_parsed")}),s._hls.on(g.Events.FRAG_PARSED,function(e,t){var r,t=(null==t?void 0:t.frag)||{},i=t.elementaryStreams||{},i="Frag(sn"+t.sn+"): "+(null==(r=t.startPTS)?void 0:r.toFixed(3))+" -> "+(null==(r=t.endPTS)?void 0:r.toFixed(3))+"(v:"+(null==(r=i.video)||null==(r=r.startPTS)?void 0:r.toFixed(3))+"/"+(null==(r=i.video)||null==(r=r.endPTS)?void 0:r.toFixed(3))+";a:"+(null==(r=i.audio)||null==(r=r.startPTS)?void 0:r.toFixed(3))+"/"+(null==(r=i.audio)||null==(i=r.endPTS)?void 0:i.toFixed(3))+"); Duration: "+(null==(r=t.duration)?void 0:r.toFixed(3));s.trackLogFragBuffer&&(s.trackLogFragBuffer.push(i),10<s.trackLogFragBuffer.length)&&s.trackLogFragBuffer.shift()}),s._hls.on(g.Events.FRAG_PARSING_USERDATA,function(e,t){t&&t.dataContent&&t.dataContent.length?s.trigger(w.Private.SeiFrame,{dataContent:t.dataContent,pts:t.pts}):t.samples.forEach(function(e){s.trigger(w.Private.SeiFrame,{dataContent:e.userDataBytes,dataContentString:e.userData,pts:e.pts,uuid:e.uuid})})}),s._hls.on(g.Events.MEDIA_ATTACHED,function(){var e;s._hls.on(g.Events.MANIFEST_PARSED,function(){s._initPlayBehavior(t||s._loadSourced)}),s._hls.on(g.Events.AUDIO_TRACKS_UPDATED,function(e,t){s.trigger(w.Player.AudioTrackUpdated,t)}),s._hls.on(g.Events.MANIFEST_LOADED,function(e,t){s.trigger(w.Player.LevelsLoaded,t)}),s._hls.on(g.Events.LEVEL_SWITCHED,function(e,t){if(s._qualityService){for(var r=s._hls.levels[t.level].url,i=s._qualityService.levels,n="",o="",a=0;a<i.length;a++)if(i[a].Url==r){o=i[a].desc,n=i[a].bitrate;break}(o||n)&&s.trigger(w.Private.QualityChange,{levelSwitch:!0,url:r,bitrate:n,desc:o})}}),s._hls.on(g.Events.AUDIO_TRACK_SWITCH,function(e,t){s.trigger(w.Player.AudioTrackSwitch,t),setTimeout(function(){s.trigger(w.Player.AudioTrackSwitched,t)},1e3)}),(s._options.autoplay||s._options.preload||t)&&(s._loadSourced=!0,s._levels&&1<s._levels.length?(s._hls.trigger(g.Events.MANIFEST_LOADING,{}),s._hls.trigger(g.Events.MANIFEST_LOADED,{levels:s._levels})):s._hls.loadSource(s._options.source||"__INVALID__")),r?(s._executeReadyCallback(),s._urls&&0<s._urls.length&&(s._currentPlayIndex=T.findSelectedStreamLevel(s._urls,s._options.defaultDefinition),e=s._urls[s._currentPlayIndex],s._options.source=e.Url,s.trigger(w.Private.SourceLoaded,e))):s.trigger(w.Private.H5_Loading_Show)})}}this.trigger(w.Private.H5_Loading_Show),S.contentProtocolMixed(s,"",u)?((e={mediaId:(e=this.getOptions()||{}).vid||"",mediaAuth:e.mediaAuth||"",error_code:m.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=E.get("Request_Block_Text"),this.trigger(w.Player.Error,e)):(i=this)._isLoadedHls&&void 0!==g?n(this,r):(this.trigger(w.Private.H5_Loading_Show),this._getHlsVersion(function(e){var t=performance.now();!function(e,t,r){var i="aliplayer-hls-min.js",n=((t=t||{}).hls2&&(i="aliplayer-hls2-min.js"),t.enableHlsH265&&(i="aliplayer-hls2-hevc-min.js"),""),n=v.domain?"https://"+v.domain+v.path+v.h5Version+"/hls/"+i:"/build/hls/"+i,o=(t.assetPrefix&&(n=t.assetPrefix+"/hls/"+i),JSON.parse(L)&&(n="http://localhost:8080/dist/aliplayer-hls2.js"),C.call(this,"mod_hls_s"),this);y.loadJS(n,function(){C.call(o,"mod_hls_f"),g=window.AliHls||window.Hls,e.apply(o)},function(){r&&r()})}.call(i,function(){i.traceLog(P,"got js#"+parseInt(performance.now()-t)),i._isLoadedHls=!0,n(i,r)},{debug:i._options.debug,hls2:i._hls2,assetPrefix:i._options.assetPrefix,enableHlsH265:i._options.enableHlsH265},function(){var e={mediaId:i._options.vid||"",mediaAuth:i._options.mediaAuth||"",error_code:m.ErrorCode.ModuleLoadError,error_msg:"hls module load error."};i.trigger(w.Player.Error,e)})}),this.on("error",x))},t.prototype._getbwEstimator=function(){var e,t=NaN;return t=this._hls?(e=this._hls.abrController._bwEstimator)?e.getEstimate():this._hls.bandwidthEstimate:t},t.prototype._destroyHls=function(){this._hls&&this._hls.destroy(),this._hls=null,this.trackLogFragBuffer=[]},Object.defineProperty(t.prototype,"dispose",{enumerable:!0,configurable:!0,get:function(){return h},set:function(){return h}}),a=function(_,y){y.on(g.Events.MANIFEST_LOADING,function(){C.call(_,"mani_s")}),y.on(g.Events.MANIFEST_LOADED,function(){C.call(_,"mani_f")}),y.on(g.Events.DEFAULT_BANDWIDTH,function(e,t){_.trigger(w.Player.DefaultBandWidth,{width:t.width,height:t.height,bitrate:t.bitrate})}),y.on(g.Events.ERROR,function(e,t){var r="hlsjs-error::"+t.type+"#"+t.details+"#"+(null==(r=t.networkDetails)?void 0:r.status)+"#"+t.reason+"#bw:"+(_._getbwEstimator()/8/1024).toFixed(2)+"KB";if("manifestParsingError"===t.details)try{r+="#"+t.networkDetails.getResponseHeader("Content-Type")+"#"+t.networkDetails.getResponseHeader("Content-Length")}catch(e){}else if("fragLoadError"===t.details||"fragLoadTimeOut"===t.details)r+="#"+t.frag.url+"#retry:"+(null==(d=t.errorAction)?void 0:d.retryCount);else if("internalException"===t.details)try{r+="#"+t.event+"#"+(null==(n=t.error)?void 0:n.message)+"#"+(null==(a=t.error)?void 0:a.stack)}catch(e){}"internalException"!==t.details&&(r+="#"+t.error);try{r+="#"+(null==_||null==(s=_.trackLogFragBuffer)?void 0:s.toString())}catch(e){}if(_.traceLog(P,r),_._options&&t.details!=g.ErrorDetails.FRAG_LOOP_LOADING_ERROR&&1!=_._seeking&&0!=t.fatal){_._clearTimeout();function i(){_._liveErrorHandle&&clearTimeout(_._liveErrorHandle),y.stopLoad(),_.trigger(w.Player.LiveStreamStop),_._liveErrorHandle=setTimeout(h,500)}var n,o,a,s,l=m.ErrorCode.LoadedMetadata,c=E.get("Error_Play_Text"),u=!1,p=null,d=!1,h=(t.details==g.ErrorDetails.MANIFEST_LOAD_ERROR||t.details==g.ErrorDetails.LEVEL_LOAD_ERROR?(u=!0,n=t.networkDetails,o=Number(n.status),_.liveShiftSerivce&&_.liveShiftSerivce.isLiveShiftPlaying()&&404===o?(l=m.ErrorCode.NotFoundSourceURL,c=E.get("Error_Liveshift_M3U8_Not_Found_Text"),d=!0):404===o?(l=m.ErrorCode.NotFoundSourceURL,c=E.get("Error_Not_Found"),p=E.get("Tip_Err_Not_found")):403===o?(a=T.parseHttpHeaders(n)["x-tengine-error"])&&-1<m.RegionBlockMessages.indexOf(a)?(l=m.ErrorCode.RegionBlock,c=E.get("Error_Region_Block_Text"),p=E.get("Tip_Err_Blocked")):(l=m.ErrorCode.AuthKeyExpired,c=E.get("Error_AuthKey_Text")):c=0===o&&navigator.onLine?(l=m.ErrorCode.RequestDataError,c+"\uff0c"+E.get("Maybe_Cors_Error")):E.get("Error_Load_M3U8_Failed_Text")):t.details==g.ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details==g.ErrorDetails.LEVEL_LOAD_TIMEOUT?(u=!0,c=E.get("Error_Load_M3U8_Timeout_Text")):t.details==g.ErrorDetails.MANIFEST_PARSING_ERROR||t.details==g.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR?(u=!0,c=E.get("Error_M3U8_Decode_Text")):t.type==g.ErrorTypes.NETWORK_ERROR?(l=m.ErrorCode.NetworkError,c=E.get("Error_Network_Text")):t.type!=g.ErrorTypes.MUX_ERROR&&t.type!=g.ErrorTypes.MEDIA_ERROR||(l=m.ErrorCode.PlayDataDecode,c=E.get("Error_TX_Decode_Text")),c=c+"("+t.details+")",function(){var e;setTimeout(function(){_.trigger(w.Private.Play_Btn_Hide)}),_.checkOnline()&&(e={mediaId:(e=_.getOptions()||{}).vid||"",mediaAuth:e.mediaAuth||"",error_code:l,error_msg:t.details,diagnosis_info:p},_.logError(e),e.display_msg=c,_.trigger(w.Player.Error,e))}),f=_._options;if(f.isLive&&d)i();else if(_._hls2){if(u&&f.isLive)if(f.hlsOption.progressive){if(f.liveRetry>_._liveRetryCount)return 0==_._liveRetryCount&&_.trigger(w.Player.OnM3u8Retry),_.trigger(w.Private.H5_Loading_Show),_._hls.stopLoad(),_._liveRetryCount++,void setTimeout(function(){_.traceLog(P,"retry when live error in progressive mode#"+_._liveRetryCount),_._hls.loadSource(f.source)},1e3*_._liveRetryCount)}else 0===(null==(s=t.errorAction)?void 0:s.retryCount)&&_.trigger(w.Player.OnM3u8Retry);t.fatal&&i()}else f.isLive?f.liveRetry>_._liveRetryCount?(0==_._liveRetryCount&&_.trigger(w.Player.OnM3u8Retry),r=f.liveRetryInterval+f.liveRetryStep*_._liveRetryCount,_._liveRetryCount++,_.trigger(w.Private.H5_Loading_Show),setTimeout(function(){u&&_._loadByUrlInner(_._options.source,0,!0)},1e3*r)):i():(u&&-1<[403,404].indexOf(o)||!_._reloadForVod())&&h()}})})}}.call(this)}.call(this,"false")},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/io":33,"../../lib/object":35,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../base/event/eventtype":63}],94:[function(e,t,r){function i(t){this._player=t,this._video=t.tag;var r=this;this._isCreated=!1,this._canPlayTriggered=!1,this._defaultTrack="",t.on(n.Private.ChangeURL,function(){r._isCreated=!1,r._canPlayTriggered=!1,r._defaultTrack=""}),t.on(n.Player.CanPlay,function(){var e;r._player._drm||r._canPlayTriggered||((e=r._getTracks())&&(r._isCreated=!0,r._player._options.isVBR||r._hls||(t.trigger(n.Player.AudioTrackReady,e),r._notifyDefaultValue(e))),r._canPlayTriggered=!0)}),t.on(n.Player.AudioTrackUpdated,function(e){r._isCreated||(e=r._getTracks(e.paramData.audioTracks))&&(r._isCreated=!0,t.trigger(n.Player.AudioTrackReady,e),r._notifyDefaultValue(e))})}var n=e("../base/event/eventtype");i.prototype._notifyDefaultValue=function(e){!this._defaultTrack&&0<e.length&&(this._defaultTrack=e[0]),this._defaultTrack&&this._player.trigger(n.Private.SelectorUpdateList,{type:"audio",text:this._defaultTrack.text})},i.prototype.support=function(){return!!this._video.audioTracks},i.prototype._getTracks=function(e){if(!this.support()&&!e)return null;for(var t=[],r=(e=!this._video||!this._video.audioTracks||e&&0!=e.length?e:this._video.audioTracks)?e.length:0,i=0;i<r;i++){var n=e[i],o={value:n.id,text:n.label||n.name||n.language};(n.default||n.enabled)&&(this._defaultTrack=o),t.push(o)}return t},i.prototype.switch=function(e){if(this._player._hls)this._player._hls.audioTrack=+e;else if(this._player._switchAudioTrack)this._player._switchAudioTrack(e);else for(var t=this._video.audioTracks?this._video.audioTracks.length:0,r=0;r<t;r++){var i=this._video.audioTracks[r];i.id==e?i.enabled=!0:i.enabled=!1}},i.prototype.dispose=function(){this._player=null},t.exports=i},{"../base/event/eventtype":63}],95:[function(e,t,r){function i(e){this._video=e.tag,this._player=e,this._isCreated=!1,this._backupCC="",this.tracks=[],this._defaultTrack="",this._currentValue="",this._switchTimer=null,this._storedTracks=[];var t=this,r=(e.on(a.Player.LevelsLoaded,function(e){(s.IS_MAC_SAFARI||s.IS_IOS)&&(e&&e.paramData&&e.paramData.subtitles&&e.paramData.subtitles.length?t._storedTracks=e.paramData.subtitles||[]:t._resotreTracks())}),e.on(a.Private.SafariDrmLevelSwitch,function(){t._resotreTracks()}),e.on(a.Private.ChangeURL,function(e){e&&e.paramData&&"saas"===e.paramData.from||(t._disabledTracks(),t._isCreated=!1,t._defaultTrack="",t._backupCC="")}),e.on(a.Private.VttClearTracks,function(){t.switch("off"),t._disabledTracks(),t._isCreated=!1,t._defaultTrack={value:"off",text:"Off"},t.tracks=[t._defaultTrack],e.trigger(a.Private.SelectorGenerateList,{type:"cc"}),e.trigger(a.Private.CCStateChanged,{value:"off",lang:""})}),e.on(a.Player.CanPlay,function(){t._isCreated||(t.tracks=t._getTracks(),e.trigger(a.Player.TextTrackReady,t.tracks),e.trigger(a.Private.CCReset)),t._isCreated&&!t._player._setDefaultCC||!t._defaultTrack||(e.trigger(a.Private.SelectorUpdateList,{type:"cc",text:t._defaultTrack.text}),t.switch(t._defaultTrack.value),t._player._setDefaultCC=!1,t._isCreated=!0)}),s.os.ios&&parseFloat(s.os.version)<=15.1&&n.addCssByStyle("video::-webkit-media-text-track-container{position: relative; top: -44px !important;}"),"always"===e.getOptions().controlBarVisibility&&n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}"),o.throttle(function(){e._vttBroker&&e._vttBroker.enabled||n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}")},100)),r=(e.on(a.Private.ShowBar,r),o.throttle(function(){e._vttBroker&&e._vttBroker.enabled||n.addCssByStyle("video::-webkit-media-text-track-container{transform: none;}")},100));e.on(a.Private.HideBar,r),e.on(a.Private.CCReset,function(){t._updateSelectorList()})}var a=e("../base/event/eventtype"),n=(e("../../lib/event"),e("../../lib/dom")),s=e("../../lib/ua"),c=e("../../lib/cookie"),u=e("../../lib/constants"),o=e("../../ui/component/util");i.prototype._adaptiveCueStype=function(){var e,t=-10;s.IS_SAFARI?(t=-65,(e=this._player.fullscreenService)&&e.getIsFullScreen()&&(t=-95)):s.IS_MOBILE&&(t=-30),n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY("+t+"px) !important;}")},i.prototype.close=function(){for(var e=this.getTextTracks(),t=e.length,r=0;r<t;r++){var i=e[r];"expired"!=i.mode&&("showing"==i.mode&&(this._backupCC=i),i.mode="disabled")}this._player.trigger(a.Private.VttHide)},i.prototype.open=function(){var t,r,e;return!this.tracks||this.tracks.length<2||(r=this._backupCC?this._backupCC.language:"",e=this._backupCC?this._backupCC.label:"",this.tracks.forEach(function(e){r===e.value&&(t=!0)}),(r=t?r:e="")||(r=this.tracks[1].value,e=this.tracks[1].text),this.switch(r)),{label:e,language:r}},i.prototype.getCurrentSubtitle=function(){return this._currentValue},i.prototype._getTracks=function(){for(var e=this.getTextTracks(),t=e.length,r=(this._defaultTrack={value:"off",text:"Off"},[this._defaultTrack]),i=c.get(u.SelectedCC),n="",o=!1,a=0;a<t;a++){var s,l=e[a];"expired"==l.mode||"subtitles"!=l.kind&&"captions"!=l.kind||(s={value:l.language,text:l.label},l.default&&(this._defaultTrack=s,o=!0),s.value==i&&(n=s),r.push(s))}return!o&&n&&(this._defaultTrack=n),r},i.prototype._disabledTracks=function(){for(var e=this.getTextTracks(),t=e.length,r=0;r<t;r++)e[r].mode="expired"},i.prototype.switch=function(e){var t=this._player;if(this.close(),"off"!=e)for(var r=this.getTextTracks(),i=r.length,n=0;n<i;n++){var o=r[n];o.language===e&&"expired"!=o.mode&&(r[n].mode="showing",t.trigger(a.Private.VttSwitchTrack,o.language))}else this.close();this._currentValue=e,t.trigger(a.Private.CCChanged,e)},i.prototype.updateUI=function(t){var e="on",r="";r=t?(this.tracks.find(function(e){return e.value===t})||{}).text||"":(e="off","Off"),player.trigger(a.Private.CCChanged,e),player.trigger(a.Private.CCStateChanged,{value:e,lang:r})},i.prototype.dispose=function(){this._player=null,this._switchTimer&&(clearTimeout(this._switchTimer),this._switchTimer=null)},i.prototype._patchSafariTracks=function(){var t=this;if(s.IS_MAC_SAFARI||s.IS_IOS){if(!(this._video&&this._video.textTracks?this._video.textTracks.length:0)){var e=!1;if(e=this._video.textTracks&&this._video.textTracks.length?!0:e)return;for(var r=0;r<this._storedTracks.length;r++){var i=this._storedTracks[r],n=i.vttUrl,o=document.createElement("track");o.src=n,o.kind="subtitles",o.label=i.name,o.srclang=i.lang,this._video.appendChild(o)}}this._switchTimer&&clearTimeout(this._switchTimer),this._switchTimer=setTimeout(function(){var e=t.getCurrentSubtitle();e&&"off"!==e&&t.switch(e)},1e3)}},i.prototype.getTextTracks=function(){var e=this._player,t=e.tag;return e._vttBroker&&e._vttBroker.enabled&&e.getTextTracks?e.getTextTracks()||[]:t&&t.textTracks||[]},i.prototype._updateSelectorList=function(){var e=this._player;this.tracks=this._getTracks(),e.trigger(a.Private.SelectorGenerateList,{type:"cc",value:"Off"})},i.prototype._resotreTracks=function(){this._patchSafariTracks(),this.tracks=this._getTracks(),this._player.trigger(a.Player.TextTrackReady,this.tracks)},t.exports=i},{"../../lib/constants":22,"../../lib/cookie":23,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../ui/component/util":132,"../base/event/eventtype":63}],96:[function(e,t,r){var i=e("../../lib/playerutil");t.exports=[{service:e("./ccservice"),name:"_ccService",condition:!0},{service:e("./audiotrackservice"),name:"_audioTrackService"},{service:e("./qualityservice"),name:"_qualityService"},{service:e("./fullscreenservice"),name:"fullscreenService",condition:function(){return!0}},{service:e("./liveshiftservice"),name:"_liveshiftService",condition:function(){var e=this.options();return i.isLiveShift(e)}},{service:e("./thumbnailservice"),name:"_thumbnailService",condition:function(){return!0}},{service:e("./progressmarkerservice"),name:"_progressMarkerService",condition:function(){return!0}}]},{"../../lib/playerutil":37,"./audiotrackservice":94,"./ccservice":95,"./fullscreenservice":97,"./liveshiftservice":98,"./progressmarkerservice":99,"./qualityservice":100,"./thumbnailservice":101}],97:[function(e,t,r){function i(t){var r=this,i=(this.isFullWindow=!1,this.isFullScreen=!1,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer=null,this._player=t,this),n=l;this._fullscreenChanged=function(e){var t;null!=i._player&&(e.target||e.srcElement)===(e=i._player.el())&&(t=document[n.fullscreenElement],i.isFullScreen=t===e,(i.isFullScreenChanged=!0)===i.isFullScreen?i._player.trigger(s.Player.RequestFullScreen):i._player.trigger(s.Player.CancelFullScreen))},n&&o.on(document,n.eventName,this._fullscreenChanged),o.on(t.tag,"webkitendfullscreen",function(e){e=e.target||e.srcElement;t&&t.tag===e&&(r.isFullScreenChanged=!0,r.isFullScreen=!1,r._player.trigger(s.Player.CancelFullScreen),r._player.trigger(s.Private.Play_Btn_Show))})}var a=e("../../lib/ua"),n=e("../../lib/dom"),o=e("../../lib/event"),s=e("../base/event/eventtype"),l=(e("../base/x5play"),e("../../lang/index"),function(){n.createEl("div");var e={},t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullScreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitfullScreen"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitIsFullScreen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","mozFullScreen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","MSFullScreen"]],r=!1;if(!(r=a.IS_IOS&&(e.requestFn="webkitEnterFullscreen",e.cancelFn="webkitExitFullscreen",e.fullscreenElement="webkitFullscreenElement",e.eventName="webkitfullscreenchange",e.isFullScreen="webkitDisplayingFullscreen",document[e.requestFn])?!0:r)){for(var i=0;i<5;i++)if(t[i][1]in document){e.requestFn=t[i][0],e.cancelFn=t[i][1],e.fullscreenElement=t[i][2],e.eventName=t[i][4],e.isFullScreen=t[i][6];break}"requestFullscreen"in document?e.requestFn="requestFullscreen":"webkitRequestFullscreen"in document?e.requestFn="webkitRequestFullscreen":"webkitRequestFullScreen"in document?e.requestFn="webkitRequestFullScreen":"webkitEnterFullscreen"in document?e.requestFn="webkitEnterFullscreen":"mozRequestFullScreen"in document?e.requestFn="mozRequestFullScreen":"msRequestFullscreen"in document&&(e.requestFn="msRequestFullscreen"),"fullscreenchange"in document?e.eventName="fullscreenchange":"webkitfullscreenchange"in document||"webkitfullscreenchange"in document||"webkitfullscreenchange"in document?e.eventName="webkitfullscreenchange":"mozfullscreenchange"in document?e.eventName="mozfullscreenchange":"MSFullscreenChange"in document&&(e.eventName="MSFullscreenChange"),"fullScreen"in document?e.isFullScreen="fullScreen":"webkitfullScreen"in document?e.isFullScreen="webkitfullScreen":"webkitIsFullScreen"in document?e.isFullScreen="webkitIsFullScreen":"webkitDisplayingFullscreen"in document?e.isFullScreen="webkitDisplayingFullscreen":"mozFullScreen"in document?e.isFullScreen="mozFullScreen":"mozfullScreen"in document?e.isFullScreen="mozfullScreen":"MSFullScreen"in document&&(e.isFullScreen="MSFullScreen"),"fullscreenElement"in document?e.fullscreenElement="fullscreenElement":"webkitFullscreenElement"in document?e.fullscreenElement="webkitFullscreenElement":"webkitFullScreenElement"in document?e.fullscreenElement="webkitFullScreenElement":"mozFullScreenElement"in document?e.fullscreenElement="mozFullScreenElement":"msFullscreenElement"in document?e.fullscreenElement="msFullscreenElement":"MSFullscreenElement"in document&&(e.fullscreenElement="MSFullscreenElement")}return e.requestFn?e:null}()),c=(i.prototype.requestFullScreen=function(){var e=l,t=this._player.el(),r=this;if(a.IS_IOS){var i=this._player._splayer;if(!i||2!==i.renderType){t=this._player.tag,i&&2!==i.renderType&&(t=this._player.el().querySelector("video"));try{var n=t[e.requestFn]();n&&"function"==typeof n.catch&&n.catch(function(e){console.log(e)}),r._player.trigger(s.Player.RequestFullScreen)}catch(e){console.log(e)}return this}this._player._options.enableMockFullscreen=!0}this.isFullScreen=!0,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer||clearTimeout(this._cancelFullScreenTimer);r=this;if(e&&!this._player._options.enableMockFullscreen)try{var o=t[e.requestFn]();o&&"function"==typeof o.catch&&o.catch(function(e){console.log(e)}),this._requestFullScreenTimer=setTimeout(function(){r.isFullScreenChanged||(c.apply(r),r._player.trigger(s.Player.RequestFullScreen)),r._requestFullScreenTimer=null},1e3)}catch(e){console.log(e)}else c.apply(r),this._player.trigger(s.Player.RequestFullScreen);return this._player},i.prototype.cancelFullScreen=function(){var e=l,t=(this.isFullScreen=!1,this.isFullScreenChanged=!1,this._cancelFullScreenTimer=null,this._requestFullScreenTimer||clearTimeout(this._requestFullScreenTimer),this);if(e&&!this._player._options.enableMockFullscreen){try{var r=document[e.cancelFn]();r&&"function"==typeof r.catch&&r.catch(function(e){console.log(e)})}catch(e){console.log(e)}t._cancelFullScreenTimer=setTimeout(function(){t.isFullScreenChanged||(u.apply(t),t._player.trigger(s.Player.CancelFullScreen)),t._cancelFullScreenTimer=null},500)}else u.apply(t),this._player.trigger(s.Player.CancelFullScreen);return this._player.tag.paused||this._player.trigger(s.Player.Play),this._player},i.prototype.getIsFullScreen=function(){return this.isFullScreen},i.prototype.dispose=function(){this._player=null,l&&o.off(document,l.eventName,this._fullscreenChanged)},function(){this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",n.addClass(document.getElementsByTagName("body")[0],"prism-full-window")}),u=function(){this.isFullWindow=!1,document.documentElement.style.overflow=this.docOrigOverflow,n.removeClass(document.getElementsByTagName("body")[0],"prism-full-window")};t.exports=i},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../base/event/eventtype":63,"../base/x5play":91}],98:[function(e,t,r){function n(e,t){var r;if(e)return e=new Date(e),r=(t=new Date(t)).valueOf()/1e3-e.valueOf()/1e3,{start:e,end:t,endDisplay:s.extractTime(t),totalTime:r}}function o(e,t){t&&(e.currentTimestamp=t,e.currentTime=s.convertToDate(t),e.currentTimeDisplay=s.extractTime(e.currentTime),e.liveShiftStart=e.liveTimeRange.start,e.liveShiftEnd=e.liveTimeRange.end,e.liveShiftStartDisplay=s.extractTime(e.liveShiftStart),e.liveShiftEndDisplay=s.extractTime(e.liveShiftEnd),e.availableLiveShiftTime=t-e.liveShiftStart.valueOf()/1e3,e.timestampStart=s.convertToTimestamp(e.liveShiftStart),e.timestampEnd,s.convertToTimestamp(e.liveShiftEnd))}function i(t){function e(){var e=t._options.source;this._originalPlayUrl=e,this._liveShiftUrl=t._options.liveTimeShiftUrl,this.liveTimeRange=n(t._options.liveStartTime,t._options.liveOverTime),this.availableLiveShiftTime=0,this.seekTime=-1}this._player=t,this._isLiveShiftPlaying=!1;var i=this;e.call(this),t.liveShiftSerivce={setLiveTimeRange:function(e,t){i.setLiveTimeRange(e,t)},queryLiveShift:function(e,t,r){i.queryLiveShift(e,t,r)},isLiveShiftPlaying:function(){return i._isLiveShiftPlaying}},t.on(h.Private.ChangeURL,function(){e.call(i)})}var a=e("../../lib/io"),s=e("../../lib/util"),l=e("../../lib/playerutil"),c=e("../../lang/index"),u=e("../flv/flvinjector"),p=e("../hls/hlsinjector"),d=e("../../lib/constants"),h=e("../base/event/eventtype");e("../../lib/url");i.prototype.validate=function(){return!(this.liveTimeRange.start>=this.liveTimeRange.end)},i.prototype.switchToLive=function(){this.seekTime=-1;var e=this._originalPlayUrl,t=this._player._options.liveShiftSource,r=this._player._options.source;l.isHls(r)&&l.isFlv(e)&&t&&l.isHls(t)&&(this._player._hls&&this._player._destroyHls(),r=this._player._superType,t=this._player._Type,this._player._options._autoplay=!0,u.inject(this._player,t,r,this._player._options,"",!0)),this._player._loadByUrlInner(e,null,!0),this._isLiveShiftPlaying=!1,this._player.trigger(h.Private.LiveShiftSwitchToLive)},i.prototype.getBaseTime=function(){this.liveShiftStartDisplay;return-1==this.seekTime?s.parseTime(this.currentTimeDisplay):s.parseTime(this.liveShiftStartDisplay)+this.seekTime},i.prototype.getSourceUrl=function(e,t){var r=this._originalPlayUrl;return this.availableLiveShiftTime<e||(this._isLiveShiftPlaying=!0,e=parseInt(e),r=(r=this._switchLiveShiftPlayer(t))&&this._cleanUrl(r),t=parseInt(this.currentTimestamp)-e,-1===(r=-1==r.indexOf("?")?r+"?lhs_start_unix_s_0="+t:r+"&lhs_start_unix_s_0="+t).indexOf("aliyunols=on")&&(r+="&aliyunols=on"),-1===r.indexOf("continue=on")&&(r+="&continue=on")),r},i.prototype._cleanUrl=function(e){var t;return-1===e.indexOf("?")?e:(e=(e=(t=e.split("?"))[1])&&(0===(e=e.replace(/&?lhs_start_unix_s_0=[0-9]*/g,"")).indexOf("&")?e.replace("&",""):e))?t[0]+"?"+e:t[0]},i.prototype._switchLiveShiftPlayer=function(e){var t,r=this._originalPlayUrl,i=this._player._options.liveShiftSource,n=this._player._options.source;if(l.isHls(n))r=n;else if(l.isFlv(r)&&i&&l.isHls(i))return this._player._flv&&this._player._destroyFlv(),n=this._player._superType,t=this._player._Type,this._player._options._autoplay=!0,p.inject(this._player,t,n,this._player._options,"",!0),i;return r},i.prototype.getTimeline=function(t,i){var r;this._player.trigger(h.Private.LiveShiftQueryCompleted),this._liveShiftUrl?(r=this).queryLiveShift(this._liveShiftUrl,function(e){e?0==(e=e).retCode?(o(r,e.content.current),t&&t()):i({Code:d.ErrorCode.ServerAPIError,Message:e.retCode+"|"+e.description+"|"+e.content}):console.log("\u83b7\u53d6\u76f4\u64ad\u65f6\u79fb\u6570\u636e\u5931\u8d25")},function(e){if(i&&e){var t={};if(e){if("string"==typeof e&&-1<e.indexOf("403 Forbidden"))t.Code=d.ErrorCode.AuthKeyExpired,t.Message="Query liveshift failed:"+c.get("Error_AuthKey_Text");else{var r,t=e;try{r=JSON.parse(e)}catch(e){}r&&(t.Code=d.ErrorCode.ServerAPIError,t.Message=r.retCode+"|"+r.description+"|"+r.content)}i(t)}}}):(o(this,(new Date).valueOf()/1e3),t&&t())},i.prototype.start=function(e,t){function r(){i._loopHandler&&clearTimeout(i._loopHandler),i._loopHandler=setTimeout(function(){i.getTimeline(function(){},t),r()},e)}var i=this;i.getTimeline(function(e){i._localLiveTimeHandler||i.tickLocalLiveTime()},t),r()},i.prototype.tickLocalLiveTime=function(){var t=this;(function e(){t._localLiveTimeHandler=setTimeout(function(){t.currentTimestamp++,o(t,t.currentTimestamp),t._player.trigger(h.Private.LiveShiftQueryCompleted),e()},1e3)})()},i.prototype.setLiveTimeRange=function(e,t){e=e||this._player._options.liveStartTime,t=t||this._player._options.liveOverTime,this.liveTimeRange=n(e,t),o(this,this.currentTimestamp),this._player.trigger(h.Private.LiveShiftQueryCompleted)},i.prototype.queryLiveShift=function(e,r,i){a.get(e,function(e){var t;e?0==(t=JSON.parse(e)).retCode?r&&r(t):i&&i(t):i&&i(e)},function(e){i&&i(e)})},i.prototype.stop=function(e){this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null)},i.prototype.dispose=function(){this.stop(),this._localLiveTimeHandler&&(clearTimeout(this._localLiveTimeHandler),this._localLiveTimeHandler=null),this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null),this._player=null},t.exports=i},{"../../lang/index":18,"../../lib/constants":22,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/url":40,"../../lib/util":41,"../base/event/eventtype":63,"../flv/flvinjector":92,"../hls/hlsinjector":93}],99:[function(e,t,r){function i(a){function t(){var e=document.querySelector("#"+a.id()+" .prism-progress-marker");if(e){e.innerHTML="";var o=s._player.getDuration();if(0<o){for(var t=0;t<s.progressMarkers.length;t++){var r,i=s.progressMarkers[t];void 0!==i.offset&&""!==i.offset&&(i=document.createElement("div"),c.addClass(i,"prism-marker-dot"),r=s.progressMarkers[t].offset/o,i.style.left=100*r+"%",e.appendChild(i),r=function(e,t){return function(){s._player.trigger(l.Private.MarkerTextShow,{left:e,progressMarker:t})}}(r,s.progressMarkers[t]),u.on(i,"mouseover",r),u.on(i,"mouseout",function(e){s._player.trigger(l.Private.MarkerTextHide)}),u.on(i,"touchstart",r),u.on(i,"mousemove",function(e){e.preventDefault()}),u.on(i,"touchmove",function(e){e.preventDefault()}))}var n=document.querySelector("#"+s._player.id()+" .prism-progress-cursor");s._player.on(n,"click",function(e){for(var t=s._player.getCurrentTime(),r=0;r<s.progressMarkers.length;r++){var i,n=s.progressMarkers[r];n&&t-1<n.offset&&n.offset<t+1&&(i=n.offset/o*100+"%",s._player.trigger(l.Private.MarkerTextShow,{left:i,progressMarker:n}))}})}}}this.progressMarkers=[],this._player=a;var s=this;a.on(l.Private.ProgressMarkerLoaded,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e)}),a.on(l.Private.ProgressMarkerChanged,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e,t())}),a.on(l.Video.LoadedMetadata,t)}var l=e("../base/event/eventtype"),c=(e("../../lang/index"),e("../../lib/hls/hlsparse"),e("../../lib/object"),e("../../lib/dom")),u=e("../../lib/event");e("../../lib/playerutil");i.prototype.dispose=function(){this._player=null,this.progressMarkers=[]},t.exports=i},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/hls/hlsparse":31,"../../lib/object":35,"../../lib/playerutil":37,"../base/event/eventtype":63}],100:[function(e,t,r){function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function i(o){this.levels=[],this.drmUrl={},this._player=o;var a=this;o.on(l.Private.PlayInfoLoaded,function(e){for(var t=e.paramData.encryptUrlArr||[],r=[],i=0;i<t.length;i++){var n=t[i];n.encryptionType===d.VodEncryptionType["Widevine-FairPlay"]&&r.push(n)}a.drmUrl=r}),o.on(l.Player.LevelsLoaded,function(e){if(0<a.levels.length&&(a.levels=[]),(e=e.paramData)&&e.levels){for(var t,r=e.levels.length-1;-1<r;r--){var i,n=e.levels[r];n.url&&0<n.url.length&&n.attrs&&n.attrs.BANDWIDTH&&(i=n.url,u.isArray(i)&&(i=i[0]),i={Url:i=!o._hls&&o._options.isVBR&&o._options.isDrm?h.call(a,n):i,desc:Math.min(n.width,n.height),bitrate:n.bitrate,resolution:n.attrs.RESOLUTION,bandwidth:n.attrs.BANDWIDTH},a.levels.push(i))}"AUTO"===o._options.definition&&(o._urls=[],Object.assign(o._urls,this.levels)),a.levels.sort(function(e,t){return(e.bitrate||e.desc)-(t.bitrate||t.desc)}),a.levels=a.levels.map(function(e){return s({},e,{desc:e.desc+"p@"+parseInt(e.bitrate/1e3)+"k"})}),0<a.levels.length&&(t="",this._player._options.isVBR&&(t=c.get("Auto")),a.levels.push({Url:e.url,desc:t}),o.trigger(l.Private.SelectorUpdateList,{type:"quality",text:t}))}}),o.on(l.Video.LoadStart,function(){var e,t;o._options&&(e=o._options.source,t=o._options.isVBR,!o._hls)&&e&&p.isHls(e)&&(o._manuallySwitchDrmLevel?(o._manuallySwitchDrmLevel=!1,o.trigger(l.Private.SafariDrmLevelSwitch)):t&&a.loadLevels(e))})}var l=e("../base/event/eventtype"),c=e("../../lang/index"),n=e("../../lib/hls/hlsparse"),u=e("../../lib/object"),p=e("../../lib/playerutil"),d=e("../../lib/constants");function h(e){for(var t,r=this.drmUrl,i=0;i<this.drmUrl.length;i++)if(Number(e.height)===Number(r[i].height)){t=r[i].Url;break}return t}(i.prototype={loadLevels:function(e){var r=new n,i=this;r.load(e,function(e){var t;null!=(t=e.subtitles)&&t.forEach(function(t){r.loadMediaPlaylist({url:t.url},function(e){e=e.fragments[0];e&&(t.vttUrl=r.resolve(e.relurl,e.baseurl))},function(e){console.log("parse vtt url error: ",e)})}),i._player._created?i._player.trigger(l.Player.LevelsLoaded,e):i._player.one(l.Private.Created,function(){i._player.trigger(l.Player.LevelsLoaded,e)})})}}).dispose=function(){this._player=null},t.exports=i},{"../../lang/index":18,"../../lib/constants":22,"../../lib/hls/hlsparse":31,"../../lib/object":35,"../../lib/playerutil":37,"../base/event/eventtype":63}],101:[function(e,t,r){function i(e){this._player=e,this.cues=[],this.baseUrl="";var t=this;e.on(s.Private.ChangeURL,function(){t.cues=[],t.baseUrl=""})}var n=e("../../lib/io"),o=e("../../lib/url"),a=e("../../lib/vtt/thumbnailvtt"),s=e("../base/event/eventtype");(i.prototype={get:function(e){var t,r,i=this;this.baseUrl=(t=e,(r=o.parseUrl(t))&&(r=r.segments)&&0<r.length&&(r=r[r.length-1],baseUrl=t.replace(r,"")),baseUrl),n.get(e,function(e){e&&a.parse(e,function(e){i.cues=e,i._player.trigger(s.Private.ThumbnailLoaded,e)})},function(e){console.log(e)})},findAvailableCue:function(e){for(var t=this.cues.length,r=0;r<t;r++){var i=this.cues[r];if(i.startTime<=e&&e<i.endTime)return i}return null},makeUrl:function(e){return e=-1==e.indexOf("://")?this.baseUrl+e:e}}).dispose=function(){this._player=null},t.exports=i},{"../../lib/io":33,"../../lib/url":40,"../../lib/vtt/thumbnailvtt":43,"../base/event/eventtype":63}],102:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}var s=e("../../lib/io"),l=e("../base/event/eventtype"),c=e("../base/event/eventmanager"),i=(e("../../lib/event"),e("../../lib/util")),u=e("../../lib/dom"),p=e("../../lib/playerutil"),d=e("../../lib/constants"),h=e("../../lang/index"),f="splayerinjector.js";function _(e){var t=this._options,r=(v.call(this),!function(){p.isVideoTag(this.tag)&&(c.offVideoAll(this),this.tag.parentNode&&this.tag.parentNode.removeChild(this.tag),this.tag=null)}.call(this),Videox.Videox),i=t.splayerWasmDomain,i=(!i&&t.assetPrefix&&(i=t.assetPrefix+"/splayer"),new r(a({container:this._el,wasmDomain:i,progressive:!0,skipFrame:r.DiscardType.NONE,loop:t.rePlay,controls:!1,muted:!1,threads:t.h265Threads,simd:t.h265Simd,autoplay:t.autoplay||t._autoplay,live:t.isLive,poster:t.cover||void 0,src:t.source,trackOptions:{disable:!0},preload:t.preload?"auto":"none",timeout:1e3*t.waitingTimeout},t.splayerOptions||{}))),n=(t.debug&&(i.setLogLevel(r.LogLevel.LOG),i.setLogPrintLevel(r.LogLevel.LOG)),this._splayer=i,(this.tag=i).play),o=this;this.tag.play=function(){o._monitor&&o._monitor.reportStartPlay(),n.call(this)},function(){var e,t=this,r=document.createElement("video");for(e in r)!function(e){t.tag[e]||0===e.indexOf("on")||"function"!=typeof r[e]||(t.tag[e]=function(){console.warn("Function ["+e+"] is called on splayer, which should be a mistake."),r[e].apply(r,arguments)})}(e)}.call(this),function(e){var i=this,n=(c.onAll(this),this._splayer);n.addEventListener("error",function(e){var t,r,i,n=Videox.Videox,o=(e||{}).detail,a=Number((o||{}).code),n=n.ErrorCode;switch(this.traceLog(f,"splayer-error::"+a),a){case n.WASM_NOT_SUPPORTED:case n.CANVAS_NOT_SUPPORTED:case n.AUDIOCONTEXT_NOT_SUPPORTED:case n.WORKER_NOT_SUPPORTED:case n.WEBGL_NOT_SUPPORTED:t=d.ErrorCode.SplayerEnvCheckError,r=h.get("Splayer_Err_Env_Check")+" | "+y(o);break;case n.DECODE:t=d.ErrorCode.SplayerDecodeError,r=h.get("Splayer_Err_Decode")+" | "+y(o);break;case n.NETWORK:t=d.ErrorCode.NetworkError,r=h.get("Error_Network_Text")+" | "+y(o);var s=(o.origin||{}).response;s?404===(s=s.status)?(t=d.ErrorCode.NotFoundSourceURL,r=h.get("Error_Not_Found")+" | "+y(o),i=h.get("Tip_Err_Not_found")):403===s&&(t=d.ErrorCode.AuthKeyExpired,r=h.get("Error_AuthKey_Text")+" | "+y(o)):navigator.onLine&&(t=d.ErrorCode.RequestDataError,r=r+"\uff0c"+h.get("Maybe_Cors_Error"));break;case n.PARSER:t=d.ErrorCode.SplayerParserNotFound,r=h.get("Splayer_Err_Parser_Not_Found")+" | "+y(o);break;default:t=d.ErrorCode.OtherError,r="(SP)"+h.get("Error_Play_Text")+" | "+y(o)}i=i||h.get("Tip_Err_Splayer")+'<a href="https://help.aliyun.com/zh/vod/developer-reference/advanced-features-3#section-j4v-zwt-641" target="_blank">'+h.get("Tip_Err_Splayer_Doc")+"</a>";if(t===d.ErrorCode.NetworkError&&this._reloadForVod())return;try{this.pause()}catch(e){}a={error_code:t,error_msg:r,diagnosis_info:i};null!==a.error_code&&null!==a.error_msg&&(this.logError(a),this.trigger(l.Player.Error,a));m.call(this,{splayer:!0})}.bind(this)),n.addEventListener("decoderoverload",function(e){e=e.detail;delete e.shouldWarn,i.trigger(l.Player.H265DecoderOverload,e)}),n.addEventListener("loadedsupportinfo",function(e){var e=e.detail||{},t=e.detail||{},r=n.controller.options||{};n.renderType=e.renderer,m.call(i,{renderer:e.renderer,wasmThreads:t.wasmThreads&&r.threads,wasmThreadsOption:r.threads,simd:t.simd&&r.simd,simdOption:r.simd,codecTag:n.controller.videoTrack&&n.controller.videoTrack.codecTag||n.controller.videoTrack&&(null==(e=n.controller.videoTrack.codec)?void 0:e.split(".")[0]),splayer:!0})}),(this._options.autoplay||this._options._autoplay)&&(n.once("canplay",function(){n.paused&&i._autoplayFailedHandler()}),n.once("timeupdate",function(){i.trigger(l.Player.Play)}),this._monitor)&&this._monitor.reportStartPlay();n.on("playing",function(){i._monitor&&i._monitor.reportPlaying()}),n.on("timeupdate",function(){i._monitor&&i._monitor.reportPlaying()})}.call(this,e)}function y(e){var e=e=void 0===e?{}:e,t=e.code,e=e.message,r=Videox.Videox.ErrorCode,i="";return i=t?i+t+(": "+(e||r[t])):i}function g(e){return!i.contentProtocolMixed(e,"alwaysCheck")||((e={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=h.get("Request_Block_Text"),this.logError(e),this.trigger(l.Player.Error,e),!1)}function v(){this._splayer&&(this._splayer.destroy(),this._splayer=null)}function m(e){var t;void 0===e&&(e={}),!this._h265InfoReported&&(this._h265InfoReported=!0,t={0:"native",1:"mse",2:"wasm"},delete(e=a({codecTag:(this._probeInfo||{}).codecTag||e.codecTag,renderType:e.renderType||t[e.renderer]},e)).renderer,e.renderType!==t[2]&&(delete e.simd,delete e.simdOption,delete e.wasmThreads,delete e.wasmThreadsOption),this._splayerRenderType=e.renderType,t=e.codecTag)&&(p.isH265Codec(t)?this.trigger(l.Player.H265PlayInfo,e):p.isH266Codec(t)&&this.trigger(l.Player.H266PlayInfo,e))}t.exports.checkProtocol=g,t.exports.reportH265PlayInfo=m,t.exports.inject=function(e,t,r,i,n){function o(e,t){this._superPt.setPlayerSize.call(this,e,t);e=this._el.querySelector("canvas");e&&(t=this._el.offsetWidth/this._el.offsetHeight,e.offsetWidth/e.offsetHeight<t?(e.style.height="100%",e.style.width="initial"):(e.style.width="100%",e.style.height="initial"))}function a(){this._disposed||(this._superPt&&(this._superPt.dispose.call(this),t.prototype.replay=this._superPt.replay,t.prototype.setPlayerSize=this._superPt.setPlayerSize,t.prototype._setTransform=this._superPt._setTransform,t.prototype.initPlay=this._superPt.initPlay),v.call(this),this._Type=null,this._superType=null,this._superPt=null,this._disposed=!0,this._splayerLoaded=!1,this._h265InfoReported=!1,this._splayerRenderType=null)}e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,e._splayer=null,e._splayerLoaded=!1,e._probeInfo=n,e._splayerRenderType=null,t.prototype.initPlay=function(e){var t=this;this.trigger(l.Private.H5_Loading_Show),g.call(this,this._options.source)&&(this._splayerLoaded?_.call(this,e):function(e,t){var r=this._options,i=r.splayerUrl||"https://g.alicdn.com/apsara-media-components/amcom-splayer/0.7.8/dist/index.js";!r.splayerUrl&&r.assetPrefix&&(i=r.assetPrefix+"/splayer/index.js"),s.loadJS(i,e.bind(this),function(){t&&t()})}.call(this,function(){this._splayerLoaded=!0,_.call(this,e),t._executeReadyCallback()},function(){var e={mediaId:t._options.vid||"",mediaAuth:t._options.mediaAuth||"",error_code:d.ErrorCode.ModuleLoadError,error_msg:"splayer module load error."};t.trigger(l.Player.Error,e)}))},t.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this._splayer.load(),this._splayer.play(),this},Object.defineProperty(t.prototype,"setPlayerSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(){return o}}),t.prototype._setTransform=function(){var e=this._player.el(),t="wasm"===this._splayerRenderType,e=t?e.querySelector("canvas"):e.querySelector("video"),t=(this._transformProp||(this._transformProp=u.getTransformName(e)),t?"":" translate(-50%, -50%)");this._rotate&&(t+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?t+=" scaleY(-1)":"horizon"==this._image&&(t+=" scaleX(-1)")),e.style[this._transformProp]=t},Object.defineProperty(t.prototype,"dispose",{enumerable:!0,configurable:!0,get:function(){return a},set:function(){return a}})}},{"../../lang/index":18,"../../lib/constants":22,"../../lib/dom":25,"../../lib/event":26,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/util":41,"../base/event/eventmanager":62,"../base/event/eventtype":63}],103:[function(e,t,r){var i=e("../lib/oo"),n=e("../lib/data"),o=e("../lib/object"),a=e("../lib/dom"),s=e("../lib/event"),l=e("../lib/function"),c=e("../lib/layout"),u=(e("../lib/constants"),e("../lib/util"),e("../player/base/event/eventtype")),e=e("./component/util"),i=i.extend({init:function(e,t){var r=this,i=(this._player=e,this._eventState="",this._options=o.copy(t),this._el=this.createEl(),e.id);"function"==typeof e.id&&(i=e.id()),this._id=i+"_component_"+n.guid(),this._children=[],this._childIndex={},t.className&&this.addClass(t.className),this._player.on(u.Private.UiH5Ready,function(){r.renderUI(),r.syncUI(),r.bindEvent()})}});i.prototype.renderUI=function(){c.render(this.el(),this.options()),this.el().id=this.id()},i.prototype.syncUI=function(){},i.prototype.bindEvent=function(){},i.prototype.createEl=function(e,t){return a.createEl(e,t)},i.prototype.options=function(e){return void 0===e?this._options:this._options=o.merge(this._options,e)},i.prototype.el=function(){return this._el},i.prototype._contentEl,i.prototype.player=function(){return this._player},i.prototype.contentEl=function(){return this._contentEl||this._el},i.prototype._id,i.prototype.id=function(){return this._id},i.prototype.getId=function(){return this._id},i.prototype.addChild=function(e,t){var r;if("string"==typeof e){if(!this._player.UI[e])return;r=new this._player.UI[e](this._player,t)}else r=e;return this._children.push(r),"function"==typeof r.id&&(this._childIndex[r.id()]=r),"function"==typeof r.el&&r.el()&&((t=r.el()).id=r.id(),this.contentEl().appendChild(t)),r},i.prototype.removeChild=function(e){if(e&&this._children){for(var t,r=!1,i=this._children.length-1;0<=i;i--)if(this._children[i]===e){r=!0,this._children.splice(i,1);break}r&&(this._childIndex[e.id]=null,t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}},i.prototype.initChildren=function(){var e,t,r=this,i=this.options().children;if(i)if(o.isArray(i))for(var n=0;n<i.length;n++)t="string"==typeof(t=i[n])?(e=t,{}):(e=t.name,t),r.addChild(e,t);else o.each(i,function(e,t){!1!==t&&r.addChild(e,t)})},i.prototype.on=function(e,t){return s.on(this._el,e,l.bind(this,t)),this},i.prototype.off=function(e,t){return s.off(this._el,e,t),this},i.prototype.one=function(e,t){return s.one(this._el,e,l.bind(this,t)),this},i.prototype.trigger=function(e,t){if(this._el)return!t&&0!=t||(this._el.paramData=t),this._eventState=e,s.trigger(this._el,e),this},i.prototype.offAll=function(e){return s.off(this._el,e),this},i.prototype.addClass=function(e){return a.addClass(this._el,e),this},i.prototype.removeClass=function(e){return a.removeClass(this._el,e),this},i.prototype.show=function(){return this._el&&(this._el.style.display="block"),this},i.prototype.hide=function(){return this._el&&(this._el.style.display="none"),this},i.prototype.destroy=function(){if(this.trigger({type:"destroy",bubbles:!1}),this._children)for(var e=this._children.length-1;0<=e;e--)this._children[e].destroy&&this._children[e].destroy();"function"==typeof this.disposeUI&&this.disposeUI(),this.children_=null,this.childIndex_=null,this.offAll(),this._el.parentNode&&this._el.id!=this._player.id()&&this._el.parentNode.removeChild(this._el),n.removeData(this._el),this._el=null},i.prototype.registerControlBarTooltip=e.registerTooltipEvent,t.exports=i},{"../lib/constants":22,"../lib/data":24,"../lib/dom":25,"../lib/event":26,"../lib/function":28,"../lib/layout":34,"../lib/object":35,"../lib/oo":36,"../lib/util":41,"../player/base/event/eventtype":63,"./component/util":132}],104:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("../../player/base/plugin/status"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-big-play-btn")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="outter"></div>',e},bindEvent:function(){var r=this,e=(this._player.on(a.Player.Play,function(){r.addClass("playing"),r.removeClass("pause"),r._hide()}),this._player.on(a.Player.Pause,function(){var e,t;r._player._switchSourcing||(r.removeClass("playing"),r.addClass("pause"),e=r._player._status,t=r._player._seeking,e==s.ended)||e==s.error||e==s.playing||t||r._show()}),document.querySelector("#"+r.id()+" .outter"));o.on(this.el(),"mouseover",function(){n.addClass(e,"big-playbtn-hover-animation")}),o.on(this.el(),"mouseout",function(){n.removeClass(e,"big-playbtn-hover-animation")}),this.on(a.Private.PlayClick,function(){r._player.paused()?r._player.play(!0):r._player.pause(!0)}),this._player.on(a.Private.Play_Btn_Show,function(){r._show()}),this._player.on(a.Private.Play_Btn_Hide,function(){r._hide()})},_show:function(){n.css(this.el(),"display","block")},_hide:function(){n.css(this.el(),"display","none")}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../../player/base/plugin/status":90,"../component":103}],105:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("./util"),a=e("../../lang/index"),s=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.isOpened=!1,i.call(this,e,t),this.addClass("prism-cc-btn")},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var r=this;this.on("click",function(){n.addClass(r._el,"disabled");var e="on",t="";r.isOpened?(r._player._ccService.close(),e="off"):t=r._player._ccService.open().label,r._player.trigger(s.Private.CCChanged,e),r._player.trigger(s.Private.CCStateChanged,{value:e,lang:t}),r.disabledHandler&&clearTimeout(r.disabledHandler),r.disabledHandler=setTimeout(function(){n.removeClass(r._el,"disabled")},1e3),r._player.trigger(s.Private.MarkerTextHide)}),this._player.on(s.Private.CCChanged,function(e){e=e.paramData;r.isOpened="off"!=e}),o.registerTooltipEvent.call(this,this.el(),function(){return r.isOpened?a.get("CloseSubtitle"):a.get("OpenSubtitle")})},disposeUI:function(){this.disabledHandler&&(clearTimeout(this.disabledHandler),this.disabledHandler=null)}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],106:[function(e,t,r){var i=e("../component"),o=e("../../player/base/event/eventtype"),a=e("../../lib/event"),s=e("../../lib/dom"),l=e("../../lib/ua"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-controlbar"),this.initChildren(),this.onEvent()},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-controlbar-bg"></div>',e},onEvent:function(){var t,r=this.player(),e=r.options(),i=this,n=(a.on(this._el,"mouseover",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._el,"mouseout",function(e){var t=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(t,"display","none"),r.trigger(o.Private.ThumbnailHide)}),a.on(this._el,"click",function(e){r.trigger(o.Private.ControlBarClick,e)}),l.IS_IOS&&(a.on(this._el,"touchstart",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._player.tag,"touchstart",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","none"),r.trigger(o.Private.ThumbnailHide)})),this.timer=null,e.controlBarVisibility);"hover"==(n=1==e.controlBarForOver?"hover":n)?(i.hide(),t=function(){i._hideHandler&&clearTimeout(i._hideHandler),i._show(),r.fullscreenService.getIsFullScreen()&&i._hide()},r.on(o.Private.MouseOver,function(){t()}),a.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),a.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),r.on(o.Private.MouseOut,function(){i._hideHandler=setTimeout(function(){i.hide(),r.trigger(o.Private.HideBar),r.trigger(o.Private.ThumbnailHide),r.trigger(o.Private.VolumeVisibilityChange,""),r.trigger(o.Private.SettingListHide)})})):"click"==n?(r.on(o.Private.Click,function(e){r._isError||(e.preventDefault(),e.stopPropagation(),i._show(),i._hide())}),r.on(o.Player.Ready,function(){i._hide()}),r.on(o.Private.TouchStart,function(){i._show()}),r.on(o.Private.TouchMove,function(){i._show()}),r.on(o.Private.TouchEnd,function(){i._hide()})):"never"==n?i._hide():i._show()},_show:function(){this.show(),this._player.trigger(o.Private.ShowBar),this.timer&&(clearTimeout(this.timer),this.timer=null)},_hide:function(){var e=this,t=this.player().options(),t="never"==t.controlBarVisibility?0:t.showBarTime;this.timer=setTimeout(function(){e.hide(),e._player.trigger(o.Private.HideBar),e._player.trigger(o.Private.ThumbnailHide),e._player.trigger(o.Private.VolumeVisibilityChange,""),e._player.trigger(o.Private.SettingListHide)},t)},disposeUI:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this._hideHandler&&(clearTimeout(this._hideHandler),this._hideHandler=null)}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../component":103}],107:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-cover")},createEl:function(){var e=i.prototype.createEl.call(this,"div"),t=this.options().cover;return t?e.style.backgroundImage="url("+t+")":n.css(e,"display","none"),e},_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","none")},_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","block")},bindEvent:function(){this._player.on(o.Private.Cover_Show,this._show),this._player.on(o.Private.Cover_Hide,this._hide)}});t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],108:[function(e,t,r){var i=e("../component"),n=e("../../lib/util"),o=e("../../lib/dom"),a=e("../../lib/event"),s=e("../../lib/ua"),l=e("../../lang/index"),c=e("../../player/base/event/eventtype"),e=(e("../../lib/playerutil"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-ErrorMessage")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<div class='prism-error-content'><p></p></div><div class='prism-error-detail'><p></p></div><div class='prism-error-operation'><a class='prism-button prism-button-refresh'>"+l.get("Refresh_Text")+"</a><a class='prism-button prism-button-orange' target='_blank'>"+l.get("Detection_Text")+"</a></div><div class='prism-detect-info prism-center'><p class='errorCode'><span class='info-label'>code: </span><span class='info-content'></span></p><p class='vid'><span class='info-label'>vid: </span><span class='info-content'></span></p><p class='mediaAuth'><span class='info-label'>mediaAuth: </span><span class='info-content'></span></p><p class='uuid'><span class='info-label'>uuid: </span><span class='info-content'></span></p><p class='requestId'><span class='info-label'>requestId(player): </span><span class='info-content'></span></p><p class='vodRequestId'><span class='info-label'>requestId(vod): </span><span class='info-content'></span></p><p class='dateTime'><span class='info-label'>"+l.get("Play_DateTime")+": </span><span class='info-content'></span></p></div>",e},bindEvent:function(){var r=this,e=(r._player.on(c.Private.Error_Show,function(e){var t=null;r._player.getMonitorInfo&&(t=r._player.getMonitorInfo()),r._show(e,t)}),r._player.on(c.Private.Error_Hide,function(){r._hide()}),document.querySelector("#"+r.id()+" .prism-button-refresh")),t=(a.on(e,"click",function(){r._player.traceLog("error-display.js","refreshBtn::clicked"),location.reload(!0)}),s.IS_MOBILE&&(e=document.querySelector("#"+r.id()+" .prism-detect-info"),o.addClass(e,"prism-width90")),document.querySelector("#"+r.id()+" .prism-error-detail")),e=document.querySelector("#"+this.id()+" .prism-button-orange");o.css(t,"display","none"),a.on(e,"click",function(){o.css(t,"display","block")})},_show:function(e,t){var e=e.paramData,r=(e.mediaId&&e.mediaId,e.mediaAuth&&e.mediaAuth,e.display_msg||e.error_msg),r=(document.querySelector("#"+this.id()+" .prism-error-content p").innerHTML=r,document.querySelector("#"+this.id()+" .errorCode .info-content").innerText=e.error_code,e.diagnosis_info),r=(r?document.querySelector("#"+this.id()+" .prism-error-detail p").innerHTML=r:(r=document.querySelector("#"+this.id()+" .prism-button-orange"),o.css(r,"display","none")),document.querySelector("#"+this.id()+" .vid")),r=(e.mediaId?(o.css(r,"display","block"),document.querySelector("#"+this.id()+" .vid .info-content").innerText=e.mediaId):o.css(r,"display","none"),document.querySelector("#"+this.id()+" .mediaAuth")),e=(e.mediaAuth?(o.css(r,"display","block"),document.querySelector("#"+this.id()+" .mediaAuth .info-content").innerText=e.mediaAuth):o.css(r,"display","none"),e.uuid?document.querySelector("#"+this.id()+" .uuid .info-content").innerText=e.uuid:(r=document.querySelector("#"+this.id()+" .uuid"),o.css(r,"display","none")),e.requestId?document.querySelector("#"+this.id()+" .requestId .info-content").innerText=e.requestId:(r=document.querySelector("#"+this.id()+" .requestId"),o.css(r,"display","none")),e.serverRequestId?document.querySelector("#"+this.id()+" .vodRequestId .info-content").innerText=e.serverRequestId:(r=document.querySelector("#"+this.id()+" .vodRequestId"),o.css(r,"display","none")),document.querySelector("#"+this.id()+" .dateTime .info-content").innerText=n.formatDate(new Date,"yyyy-MM-dd HH:mm:ss"),document.querySelector("#"+this.id())),i=(o.css(e,"display","block"),this);i.playHideHandler&&clearTimeout(i.playHideHandler),i.playHideHandler=setTimeout(function(){i._player.trigger("play_btn_hide")})},_hide:function(){var e=document.querySelector("#"+this.id());o.css(e,"display","none")},disposeUI:function(){this.playHideHandler&&(clearTimeout(this.playHideHandler),this.playHideHandler=null)}}));t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],109:[function(e,t,r){var i=e("../component"),n=e("../../player/base/event/eventtype"),o=(e("../../lib/event"),e("../../lib/ua")),a=e("../../lang/index"),s=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-fullscreen-btn")},bindEvent:function(){var e=this;this._player.on(n.Player.RequestFullScreen,function(){o.IS_IOS||e.addClass("fullscreen")}),this._player.on(n.Player.CancelFullScreen,function(){e.removeClass("fullscreen")}),s.registerTooltipEvent.call(this,this.el(),function(){return e._player.fullscreenService.getIsFullScreen()?a.get("ExistFullScreen"):a.get("Fullscreen")}),this.on("click",function(){e._player.fullscreenService.getIsFullScreen()?e._player.fullscreenService.cancelFullScreen():e._player.fullscreenService.requestFullScreen(),e._player.trigger(n.Private.MarkerTextHide)})}});t.exports=e},{"../../lang/index":18,"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],110:[function(e,t,r){"use strict";var i=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),a=e("../../lib/ua.js"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-hide")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML=a.IS_ANDROID_FIREFOX?'<div class="circle-androidFirefox"></div> <div class="circle1-androidFirefox"></div>':'<div class="circle"></div> <div class="circle1"></div>',e},_loading_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-loading");t&&(n.removeClass(t,"prism-loading"),n.addClass(t,"prism-hide"))},_loading_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-hide");t&&(n.removeClass(t,"prism-hide"),n.addClass(t,"prism-loading"))},bindEvent:function(){this._player.on(o.Private.H5_Loading_Show,this._loading_show),this._player.on(o.Private.H5_Loading_Hide,this._loading_hide)}});t.exports=e},{"../../lib/dom":25,"../../lib/ua.js":39,"../../player/base/event/eventtype":63,"../component":103}],111:[function(e,t,r){var i=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=(e("../../lib/event"),e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-info-display")},createEl:function(){return i.prototype.createEl.call(this,"p")},bindEvent:function(){var r=this;r._player.on(o.Private.Info_Show,function(e){var t=document.querySelector("#"+r.id()),e=e.paramData;e&&(void 0!==e.text&&e.text?(t.innerHTML=e.text,void 0!==e.duration&&e.duration&&(r.handler&&clearTimeout(r.handler),r.handler=setTimeout(function(){n.css(t,"display","none")},e.duration)),"lb"==e.align?(n.addClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")):"tc"==e.align?(n.addClass(t,"prism-info-top-center"),n.removeClass(t,"prism-info-left-bottom")):(n.removeClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")),e.isBlack?n.addClass(t,"prism-info-black"):n.removeClass(t,"prism-info-black")):t.innerHTML=e,n.css(t,"display","block"))}),r._player.on(o.Private.Info_Hide,function(e){var t=document.querySelector("#"+r.id());n.css(t,"display","none")})},disposeUI:function(){this.handler&&(clearTimeout(this.handler),this.handler=null)}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],112:[function(e,t,r){var i=e("../component"),n=e("../../lang/index"),o=e("../../lib/dom"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-license-watermark")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML=this.genContent(),e},bindEvent:function(){var t=this;this._player.on(a.Private.LicenseTipShow,function(e){t._show(e)}),this._player.on(a.Private.LicenseTipHide,function(){t._hide()})},_show:function(e){var t=document.querySelector("#"+this.id()+".prism-license-watermark");t.innerHTML=this.genContent(e.paramData.message),o.css(t,"display","flex")},_hide:function(){var e=document.querySelector("#"+this.id()+".prism-license-watermark");o.css(e,"display","none")},genContent:function(e){var t="";try{t=this._player._monitor.sessionId}catch(e){}return'<div class="no-authorization">'+(e||n.get("License_No_Authorization"))+'</div><div class="license-request-id">'+t+'</div><a class="apply-button" target="_blank" href="https://help.aliyun.com/document_detail/434250.html">'+n.get("License_Click_To_Apply")+"</a>"}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],113:[function(e,t,r){var i=e("../component"),n=e("./util"),o=(e("../../lib/util"),e("../../lib/dom")),a=e("../../lib/event"),s=e("../../lib/playerutil"),l=e("../../lang/index"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-live-display")},createEl:function(){var e=i.prototype.createEl.call(this,"p");return e.innerText="LIVE",s.isLiveShift(this._player._options)&&o.addClass(e,"live-shift-display"),e},bindEvent:function(){var e=document.querySelector("#"+this.id()),t=this;s.isLiveShift(this._player._options)&&(a.on(e,"click",function(){t._player._liveshiftService.switchToLive()}),n.registerTooltipEvent.call(this,this.el(),l.get("SwitchToLive")))}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/playerutil":37,"../../lib/util":41,"../component":103,"./util":132}],114:[function(e,t,r){var i=e("../component"),n=e("../../player/base/event/eventtype"),o=e("./util"),a=e("../../lang/index"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-play-btn")},bindEvent:function(){var t=this;this._player.on(n.Player.Play,function(){t.addClass("playing")}),this._player.on(n.Player.Pause,function(){t.removeClass("playing")}),this.on(n.Private.PlayClick,function(){var e;t._player.paused()?(e=t._player.getCurrentTime(),(t._player.getDuration()<=e||t._player._ended||t._player.exceedPreviewTime(e))&&!t._player._splayer&&t._player.seek(t._player._getPlayStartTime()),t._player.play(!0),t.addClass("playing")):(t._player.pause(!0),t.removeClass("playing")),t._player.trigger(n.Private.MarkerTextHide)}),o.registerTooltipEvent.call(this,this.el(),function(){return t._player.paused()?a.get("Play"):a.get("Pause")})}});t.exports=e},{"../../lang/index":18,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],115:[function(e,t,r){var i=e("../component"),a=e("../../lib/dom"),s=(e("../../lib/constants"),e("../../lib/event")),l=e("../../lib/ua"),c=e("../../lib/function"),n=e("../../lang/index"),u=e("../../config"),o=e("../../lib/util"),p=(e("../../lib/playerutil"),e("../../player/base/event/eventtype")),d=e("./util").debounce,e=i.extend({init:function(e,t){i.call(this,e,t),this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this._thumbnailHideTimer=null,this.addClass("prism-progress"),e.getOptions().disableSeek&&this.addClass("prism-progress-disabled")},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-marker"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p><div class="prism-progress-mask-left"></div><div class="prism-progress-mask-right"></div>',e},bindEvent:function(){function t(e){r._progressDown=e}var e=this,r=this,i=(this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this._player._options.id+" .prism-progress-time"),this.thumbnailNode=document.querySelector(".prism-thumbnail"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),document.querySelector("#"+this.id())),n=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),o=(this.markerNode=document.querySelector("#"+this.id()+" .prism-progress-marker"),this.maskNodeLeft=document.querySelector("#"+this.id()+" .prism-progress-mask-left"),this.maskNodeRight=document.querySelector("#"+this.id()+" .prism-progress-mask-right"),"");this._player._options.skinsDomain=this._player._options.assetPrefix||this._player._options.skinsDomain,o=this._player._options.skinsDomain?this._player._options.skinsDomain+"/skins/default/img/dragcursor.png":u.domain?"https://"+u.domain+u.path+u.h5Version+"/skins/default/img/dragcursor.png":"/build/skins/default/img/dragcursor.png",n.src=o,s.on(this.cursorNode,"mousedown",function(e){r._onMouseDown(e)}),s.on(this.cursorNode,"touchstart",function(e){r._onMouseDown(e)}),s.on(i,"mousemove",function(e){r._progressMove(e)}),s.on(i,"touchmove",function(e){r._progressMove(e)});s.on(i,"mousedown",function(e){t(!0)}),s.on(i,"touchstart",function(e){t(!0)}),s.on(i,"mouseup",function(e){t(!1)}),s.on(i,"touchend",function(e){t(!1),r._moving&&l.IS_MOBILE&&(r._player.trigger(p.Private.EndStart,{toTime:r._lastSeekTime}),r._moving=!1)}),s.on(this._el,"click",function(e){r._onMouseClick(e)}),this._player.on(p.Private.HideProgress,function(e){r._hideProgress(e)}),this._player.on(p.Private.CancelHideProgress,function(e){r._cancelHideProgress(e)}),this._player.on(p.Private.HideBar,function(e){r._player._seeking=!1}),this._player.on(p.Video.LoadedMetadata,function(){e._updateMaskNode()}),this._player.on(p.Private.UpdateWatchTime,function(){e._updateMaskNode()}),s.on(i,p.Private.MouseOver,function(e){r._onMouseOver(e)}),s.on(i,p.Private.MouseOut,function(e){r._onMouseOut(e)}),s.on(this.controlNode,p.Private.MouseLeave,function(e){r._offMouseUp()}),s.on(this.maskNodeLeft,"mouseenter",function(){r._offMouseUp()}),s.on(this.maskNodeRight,"mouseenter",function(){r._offMouseUp()}),l.IS_PC?(n=d(function(){a.addClass(i,"prism-progress-hover"),a.addClass(r.cursorNode,"cursor-hover")},100),s.on(i,"mouseover",n),o=d(function(){a.removeClass(i,"prism-progress-hover"),a.removeClass(r.cursorNode,"cursor-hover"),r._progressDown=!1},100),s.on(i,"mouseout",o)):(a.addClass(i,"prism-progress-hover"),a.addClass(r.cursorNode,"cursor-hover")),this.bindTimeupdate=c.bind(this,this._onTimeupdate),this._player.on(p.Player.TimeUpdate,this.bindTimeupdate),l.IS_IPAD?this.interval=setInterval(function(){r._onProgress()},500):this._player.on(p.Video.Progress,function(){r._onProgress()}),this._player.on(p.Private.UpdateProgress,function(e){r._updateProgressBar(r.playedNode,e.paramData.targetTime)}),this._player.on(p.Private.UpdateCursorPosition,function(e){r._updateCursorPosition(e.paramData.targetTime)})},_progressMove:function(e){e.preventDefault();var t,r,i=this._getSeconds(e);i!=1/0&&(t=o.formatTime(i),r=this._getDistance(e),this.cursorNode)&&(this._player.trigger(p.Private.ThumbnailShow,{time:i,formatTime:t,left:r,progressWidth:this.el().offsetWidth}),this._autoHideThumbnail(),this._progressDown)&&this._onMouseMove(e)},_hideProgress:function(e){s.off(this.cursorNode,"mousedown"),s.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;s.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),s.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseInProgress||this._updateCursorPosition(this._player.getCurrentTime()),this._mouseInProgress=!0},_onMouseOut:function(e){var t=this;this._cursorHideHandler&&clearTimeout(this._cursorHideHandler),this._cursorHideHandler=setTimeout(function(){t._player.trigger(p.Private.ThumbnailHide),t._mouseInProgress=!1})},_getSeconds:function(e){var e=this._getDistance(e),t=this.el().offsetWidth,e=this._player.getDuration()?e/t*this._player.getDuration():0;return e=(e=e<0?0:e)>this._player.getDuration()?this._player.getDuration():e},_getDistance:function(e){if(e.touches&&e.touches[0]){for(var t=this.el().offsetLeft,r=this.el();r.offsetParent;){var r=r.offsetParent,i=a.getTranslateX(r);t+=r.offsetLeft+i}r.tagName&&"body"===r.tagName.toLowerCase()&&(t+=document.getElementsByTagName("html")[0].offsetLeft);var n=(e.touches?e.touches[0]:e).pageX-t;return n=n<0?0:n}return n=e.offsetX,e.target===this.cursorNode||e.target.offsetParent===this.cursorNode?n+=this.cursorNode.offsetLeft:e.target!==this._el&&e.target.offsetParent!==this._el&&e.target.offsetParent===this.markerNode&&(n+=e.target.offsetLeft),n},_onMouseClick:function(e){var t=this,r=t._getSeconds(e);t._canSeekable(r)?t._player._canSeek(r+t._posOffset)&&(t._player.exceedPreviewTime(r)&&(r=t._player.getPreviewTime()),this._seekTime=r,t._updateProgressBar(this.playedNode,r),t._updateCursorPosition(r),this._mouseClickTimeHandle&&clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=setTimeout(function(){t._player._seeking=!0,t._mouseDown&&!l.IS_MOBILE||(t._player.trigger(p.Private.SeekStart,{fromTime:t._player.getCurrentTime()}),t._player.trigger(p.Private.EndStart,{toTime:r})),t._player.seek(r),t._mouseDown=!1,t._mouseClickTimeHandle=null,t._inWaitingSeek=!1},0),this._inWaitingSeek=!0):t._player.trigger(p.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseDown:function(e){var t=this,e=(e.preventDefault(),this._mouseDown=!0,l.IS_PC&&this._player.trigger(p.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),s.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),s.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),s.on(this.controlNode,"mouseup",function(e){t._onControlBarMouseUp(e)}),s.on(this.controlNode,"touchend",function(e){t._onControlBarMouseUp(e)}),t._getSeconds(e));t._canSeekable(e)?t._player.exceedPreviewTime(e)&&t._player.getPreviewTime():t._player.trigger(p.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseUp:function(e){this._onMouseUpIntern(e)},_onControlBarMouseUp:function(e){this._onMouseUpIntern(e)},_onPlayerMouseUp:function(e){this._onMouseUpIntern(e)},_offMouseUp:function(){s.off(this.controlNode,"mousemove"),s.off(this.controlNode,"touchmove"),s.off(this.controlNode,"mouseup"),s.off(this.controlNode,"touchend")},_onMouseUpIntern:function(e){e.preventDefault(),this._offMouseUp();e=this._getDistance(e)/this.el().offsetWidth*this._player.getDuration();this._player.getDuration();isNaN(e)||this._player.seek(e),l.IS_PC&&this._player.trigger(p.Private.EndStart,{toTime:e}),this._autoHideThumbnail()},_onMouseMove:function(e){e.preventDefault(),!this._moving&&l.IS_MOBILE&&(this._player.trigger(p.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),this._moving=!0);e=this._getSeconds(e);this._player.exceedPreviewTime(e)&&(e=this._player.getPreviewTime()),this._player.seek(e),this._updateProgressBar(this.playedNode,e),this._updateCursorPosition(e),this._lastSeekTime=e},_onTimeupdate:function(e){var t=this._player._options.source,t=this._getUrlSuffix(t),r=!1;"mp4"===t&&(l.IS_MAC_SAFARI&&(r=!0),l.IS_IOS&&(r=!0),l.IS_IE11)&&(r=!0),"m3u8"===t&&l.IS_IE11&&(r=!0),"audio"==this._player._options.mediaType&&l.IS_IOS&&(this._player._seeking=!1),(this._inWaitingSeek||this._progressDown)&&!r||(this._updateProgressBar(this.playedNode,this._player.getCurrentTime()),this._updateCursorPosition(this._player.getCurrentTime()),this._player.trigger(p.Private.UpdateProgressBar,{time:this._player.getCurrentTime()}))},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var r=this._player.getDuration();1!=this._player._switchSourcing&&r&&(-1!=this._seekTime&&(this._player.getCurrentTime()>=this._seekTime||!this._player._seeking?this._seekTime=-1:t=this._seekTime),1<(t=t/r)&&(t=1),e)&&a.css(e,"width",100*t+"%")},_updateCursorPosition:function(e){var t,r,i,n=this._player.getDuration();1!=this._player._switchSourcing&&n&&(t=1,r=(this.cursorNode.offsetWidth||16)/2/(i=this._player.el().clientWidth),0!=i&&(t=1-r),i=(i=e/n-r)<0?0:i,this.cursorNode)&&(t<i?(a.css(this.cursorNode,"right","0px"),a.css(this.cursorNode,"left","auto")):(a.css(this.cursorNode,"right","auto"),a.css(this.cursorNode,"left",100*i+"%")))},_getUrlSuffix:function(e){return!e||"string"!=typeof e?"":((e=(e.split("?")[0]||"").split("."))[e.length-1]||"").toLowerCase()},_autoHideThumbnail:function(){var e=this;l.IS_MOBILE&&(this._thumbnailHideTimer&&clearTimeout(this._thumbnailHideTimer),this._thumbnailHideTimer=setTimeout(function(){e._moving||e._player.trigger(p.Private.ThumbnailHide)},2e3))},_makeUninteractible:function(t){["click","mousedown","mousemove","mouseup","touchstart","touchmove","touchend"].forEach(function(e){s.on(t,e,function(e){e.stopPropagation()})})},_updateMaskNode:function(){var e=this._player._getSubVideoConfig(),t=e.start,e=e.end;t||e?(a.css(this.maskNodeLeft,"width","0px"),a.css(this.maskNodeRight,"width","0px")):((t=this._player._getWatchTimeConfig()).watchStartTime&&t.watchEndTime?(e=100*Math.min(t.watchStartTime/this._player.getDuration(),1)+"%",a.css(this.maskNodeLeft,"width",e)):a.css(this.maskNodeLeft,"width","0px"),t.watchEndTime?(e=100*(1-Math.min(t.watchEndTime/this._player.getDuration(),1))+"%",a.css(this.maskNodeRight,"width",e)):a.css(this.maskNodeRight,"width","0px"),this._makeUninteractible(this.maskNodeLeft),this._makeUninteractible(this.maskNodeRight))},disposeUI:function(){this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this.cursorNodeHandler&&(clearTimeout(this.cursorNodeHandler),this.cursorNodeHandler=null),this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseClickTimeHandle&&(clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=null)}});t.exports=e},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/dom":25,"../../lib/event":26,"../../lib/function":28,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],116:[function(e,t,r){var i=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-marker-text")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<p></p>",e},bindEvent:function(){var i=this;i._player.on(a.Private.MarkerTextShow,function(e){var t=e.paramData,r=a.Player.MarkerDotOver;i._player.trigger(r,e.paramData),t.progressMarker.isCustomized?i._player.trigger(a.Private.LifeCycleChanged,{type:r,data:e.paramData}):(i._thumbnailShowHanlde&&(n.css(i.el(),"display","none"),clearTimeout(i._thumbnailShowHanlde)),i._thumbnailShowHanlde=setTimeout(function(){var e;document.querySelector("#"+i.id()+" p").innerText=t.progressMarker.text||"",t&&(n.css(i.el(),"display","block"),e=i._player.el().offsetWidth,left=e*t.left,width=i.el().offsetWidth,left+width>e?(n.css(i.el(),"right","0px"),n.css(i.el(),"left","auto")):(left=(left-=width/2)<0?0:left,n.css(i.el(),"right","auto"),n.css(i.el(),"left",left+"px")))},30))}),i._player.on(a.Private.MarkerTextHide,function(e){i._player.trigger(a.Player.MarkerDotOut),i._player.trigger(a.Private.LifeCycleChanged,{type:a.Player.MarkerDotOut,data:""}),i._thumbnailShowHanlde&&clearTimeout(i._thumbnailShowHanlde),n.css(i.el(),"display","none")}),o.on(i._player.tag,"click",function(e){e&&e.target==e.currentTarget&&i._player.trigger(a.Private.MarkerTextHide)}),o.on(i._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&i._player.trigger(a.Private.MarkerTextHide)})},disposeUI:function(){this._thumbnailShowHanlde&&(clearTimeout(this._thumbnailShowHanlde),this._thumbnailShowHanlde=null)}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],117:[function(e,t,r){var i=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),n=(e("../../../lib/event"),e("./util"),e("../../../lang/index")),l=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=n.get("AudioTrack"),this.Type="audio",this.Tooltip=n.get("AudioTrack_Switch_To"),i.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var n=this,o=document.querySelector("#"+n.id()+" .selector-list");document.querySelector("#"+n.id()+" .header");n._player.on(l.Private.ChangeURL,function(){n._hasGeneratedList=!1}),this._player.on(l.Player.AudioTrackSwitch,function(){s.addClass(o,"disabled")}),this._player.on(l.Player.AudioTrackSwitched,function(){s.removeClass(o,"disabled")}),n._player.on(l.Player.AudioTrackReady,function(e){!n._hasGeneratedList&&(n._clear(),e=e.paramData)&&(a.each(e,function(e,t){var r=s.createEl.call(n,"li",{key:e.value,text:e.text}),i=s.createEl.call(n,"span",{key:e.value,text:e.text});i.innerText=e.text,r.appendChild(i),o.appendChild(r)}),n._hasGeneratedList=!0)})},execute:function(e){this._player._audioTrackService.switch(e)}});t.exports=e},{"../../../lang/index":18,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],118:[function(e,t,r){var i=e("../../component"),n=(e("../../../lib/dom"),e("../../../player/base/event/eventtype")),o=e("./list"),a=e("../../../lang/index"),s=e("../util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass(t.className||"prism-setting-btn"),this._settingList=new o(e,t),e.addChild(this._settingList,t)},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var e=this;this.on("click",function(){e._settingList.isOpened?e._player.trigger(n.Private.SettingListHide):e._player.trigger(n.Private.SettingListShow),e._player.trigger(n.Private.SelectorHide),e._player.trigger(n.Private.MarkerTextHide),e._player.trigger(n.Private.VolumeVisibilityChange,"")}),s.registerTooltipEvent.call(this,this.el(),a.get("Setting"))}});t.exports=e},{"../../../lang/index":18,"../../../lib/dom":25,"../../../player/base/event/eventtype":63,"../../component":103,"../util":132,"./list":121}],119:[function(e,t,r){var i=e("./selector"),s=e("../../../lib/object"),l=e("../../../lib/dom"),n=(e("../../../lib/event"),e("./util"),e("../../../lib/cookie")),o=e("../../../lib/constants"),a=e("../../../lang/index"),c=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=a.get("Subtitle"),this.Type="cc",this.Tooltip=a.get("CC_Switch_To"),i.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var r=this;this._player.on(c.Private.CCStateChanged,function(e){var t=e.paramData.value,e=e.paramData.lang,e=("on"==t&&e?r._backCCText=e:"off"==t&&""==r._backCCText&&(r._backCCText=r._previousSelection.text),"Off");"on"==t&&(e=r._backCCText),r._player.trigger(c.Private.SelectorUpdateList,{type:"cc",text:e})})},generateList:function(n){var o=document.querySelector("#"+this.id()+" .selector-list"),e=this._player._ccService.tracks,a=this;s.each(e,function(e,t){var r=l.createEl.call(this,"li",{key:e.value,text:e.text}),i=l.createEl.call(this,"span",{key:e.value,text:e.text});e.text==n&&(l.addClass(r,"current"),a._previousSelection=r),i.innerText=e.text,r.appendChild(i),o.appendChild(r)})},execute:function(e){this._backCCText="",n.set(o.SelectedCC,e,365),this._player._ccService.switch(e)}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],120:[function(e,t,r){t.exports={CC:e("./cc"),Speed:e("./speed"),Quality:e("./quality"),Audio:e("./audio")}},{"./audio":117,"./cc":119,"./quality":122,"./speed":124}],121:[function(e,t,r){var o=e("../../component"),n=e("../../../lib/dom"),a=e("../../../lib/ua"),s=e("../../../lib/event"),l=e("../../../player/base/event/eventtype"),i=e("./export"),c=e("./util"),u=e("../../../lang/index"),e=o.extend({init:function(e,t){for(var r in this.isOpened=!1,o.call(this,e,t),this.addClass(t.className||"prism-setting-list"),i){r=new i[r](e,t);e.addChild(r,t)}},createEl:function(){var e=o.prototype.createEl.call(this,"div"),t="<div class='prism-setting-item prism-setting-{type}' type={type}><div class='setting-content'><span class='setting-title'>{value}</span><span class='array'></span><span class='current-setting'></span></div></div>",r=t.replace(/{type}/g,"speed").replace("{value}",u.get("Speed")),i=t.replace(/{type}/g,"cc").replace("{value}",u.get("Subtitle")),n=t.replace(/{type}/g,"audio").replace("{value}",u.get("AudioTrack")),t=t.replace(/{type}/g,"quality").replace("{value}",u.get("Quality"));return e.innerHTML=r+i+n+t,e},bindEvent:function(){function t(){i._player.trigger(l.Private.SettingListHide),i.isOpened=!1}function r(e){e&&e.type&&(document.querySelector("#"+i.id()+" .prism-setting-"+e.type+" .current-setting").innerText=e.text||"")}var i=this,e=(this._player.on(l.Private.SettingListShow,function(e){i.isOpened=!0;e=e.paramData;r(e),n.css(i.el(),"display","block")}),this._player.on(l.Private.UpdateToSettingList,function(e){e=e.paramData;r(e)}),this._player.on(l.Private.SelectorUpdateList,function(e){e=e.paramData;r(e),i._player.trigger(l.Private.SelectorValueChange,e)}),this._player.on(l.Private.SettingListHide,function(){i.isOpened=!1,n.css(i.el(),"display","none")}),s.on(this.el(),"click",function(e){i._player.trigger(l.Private.SettingListHide);var e=e.srcElement||e.target;(e=c.findItemElementForList(e))&&(e=e.getAttribute("type"),i._player.trigger(l.Private.SelectorShow,{type:e}))}),a.IS_MOBILE?"touchleave":"mouseleave");s.on(this.el(),e,function(){t()}),s.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),s.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),this._player.on(l.Private.QualityChange,function(e){var t,r,e=e.paramData;e.levelSwitch&&(t=document.querySelector("#"+i.id()+" .prism-setting-quality .current-setting"),r=u.get("Auto"),e=e.desc,-1<t.innerText.indexOf(r))&&(e&&-1<String(e).indexOf("(")?r=r+"-"+e:r+=e?"("+e+")":"",t.innerText=r)})}});t.exports=e},{"../../../lang/index":18,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/ua":39,"../../../player/base/event/eventtype":63,"../../component":103,"./export":120,"./util":125}],122:[function(e,t,r){var i=e("./selector"),s=e("../../../lib/object"),c=(e("../../../lib/util"),e("../../../lib/cookie")),l=e("../../../lib/dom"),u=(e("../../../lib/event"),e("../../../lib/constants")),p=e("../../../lang/index"),o=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=p.get("Quality"),this.Type="quality",this.Tooltip=p.get("Quality_Switch_To"),i.call(this,e,t),this._isMasterLevel=!1},showTip:function(e,t){this._player.trigger(o.Private.Info_Show,{text:e,duration:t,align:"lb"})},bindEvent:function(){this.bindCommonEvent();var n=this,e=(this._player.on(o.Private.QualityChange,function(e){var t,r,i=0<n._player._urls.length?n._player._urls:n._player._qualityService.levels;(data=e.paramData).levelSwitch?(t=data.desc||data.bitrate,n._autoSWitchDesc=t,n._updateText(t)):0<n._player._currentPlayIndex&&(n._autoSWitchDesc="",r=i[(t=n._player._currentPlayIndex)-1].desc,i=i[t].desc,n.showTip(r+e.paramData+i,1e3),n._player.trigger(o.Private.SelectorValueChange,{type:n.Type,text:i}))}),document.querySelector("#"+n.id()+" .selector-list"));this._player.on(o.Player.LevelSwitch,function(){l.addClass(e,"disabled")}),this._player.on(o.Player.LevelSwitched,function(){l.removeClass(e,"disabled")})},generateList:function(e){var n,t=this._player._urls,o=this._player._currentPlayIndex,r=this._player._qualityService.levels,a=(0<r.length&&(this._isMasterLevel=!0,this._player._options.isVBR)&&(o=(t=r).length-1),document.querySelector("#"+this.id()+" .selector-list"));0<t.length&&(n=this,s.each(t,function(e,t){var r,i;(e.desc||e.bitrate)&&(r=l.createEl.call(this,"li",{key:e.Url,index:t,text:e.desc||e.bitrate}),i=l.createEl.call(this,"span",{key:e.Url,index:t,text:e.desc||e.bitrate}),t==o&&(l.addClass(r,"current"),n._previousSelection=r),i.innerText=e.desc||e.bitrate,r.appendChild(i),a.appendChild(r))})),this._autoSWitchDesc&&this._updateText(this._autoSWitchDesc)},execute:function(e){if(this._player._switchSourcing=!0,this._isMasterLevel){for(var t,r=this._player._qualityService.levels,i=0;i<r.length;i++)r[i].Url==e&&r[i].desc!=p.get("Auto")&&(t=r[i],this._resetAutoText());this._player._switchLevel?this._player._switchLevel(e,t):(n=this._player.autoplay||"pause"!=this._player._status,this._player._loadByUrlInner(e,this._player.getCurrentTime(),n))}else{for(var n,o=this._player._urls.length,a=this._player._currentPlayIndex,s=-1,i=0;i<o;i++)if(this._player._urls[i].Url==e){s=this._player._currentPlayIndex=i,c.set(u.SelectedStreamLevel,this._player._urls[i].definition,365);break}a!=s&&-1<s&&(a=this._player.getCurrentTime(),n=this._player.autoplay||"pause"!=this._player._status,this._player.autoplay||0!=a||(n=!1),this._player._switchLevel&&!this._player._options.isLive&&this._player._options.isVBR?this._player._switchLevel(e):this._player._loadByUrlInner(e,a,n))}var l=this;setTimeout(function(){l._player._switchSourcing=!1})},_updateText:function(e){var t=document.querySelector("#"+this.id()+" .selector-list .current"),r=document.querySelector("#"+this.id()+" .selector-list .current span"),i=p.get("Auto");r&&r.innerText&&-1<r.innerText.indexOf(i)&&(e&&-1<String(e).indexOf("(")?i=i+"-"+e:i+=e?"("+e+")":"",r.innerText=i,t)&&(t.text=i)},_resetAutoText:function(){for(var e=p.get("Auto"),t=document.querySelectorAll("#"+this.id()+" .selector-list li"),r=0;r<=t.length;r++){var i=t[r],n=i.querySelector("span");if(-1<n.innerText.indexOf(e)){n.innerText=e,i.text=e;break}}}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123}],123:[function(e,t,r){var i=e("../../component"),n=(e("../../../lib/object"),e("../../../lib/util"),e("../../../lib/ua")),s=(e("../../../lib/cookie"),e("../../../lib/dom")),o=e("../../../lib/event"),l=e("./util"),c=(e("../../../lang/index"),e("../../../player/base/event/eventtype")),e=i.extend({init:function(e,t){this._hasGeneratedList=!1,this._previousSelection=null,this._backupSelector="",i.call(this,e,t),this.className=t.className||"prism-"+this.Type+"-selector prism-setting-selector",this.addClass(this.className)},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="header"><div class="left-array"></div><span>'+this.Name+'</span></div><ul class="selector-list"></ul>',e},bindEvent:function(){this.bindCommonEvent()},bindCommonEvent:function(){var a=this,e=document.querySelector("#"+a.id()+" .selector-list"),t=document.querySelector("#"+a.id()+" .header");function r(){a._hasGeneratedList||(a._clear(),a.generateList(a._backupSelector),a._backupSelector="",a._hasGeneratedList=!0)}this._player.on(c.Private.ChangeURL,function(){a._hasGeneratedList=!1}),o.on(t,"click",function(){a._player.trigger(c.Private.SelectorHide),a._player.trigger(c.Private.SettingListShow,{type:a.Type,text:a._previousSelection?a._previousSelection.text:""})}),o.on(e,"click",function(e){var e=e.srcElement||e.target,t=e.key,r=e.text;a._player.traceLog("selector.js","selector::click#"+a.Name+"#"+a.Type+"#"+r+"#"+t),a._player.trigger(c.Player.SettingSelected,{name:a.Name,type:a.Type,text:r,key:t}),void 0!==r&&(a._previousSelection&&s.removeClass(a._previousSelection,"current"),a._previousSelection=l.findliElementForSelector(e),s.addClass(a._previousSelection,"current"),a.execute&&a.execute(t),e=a.Tooltip+"<span>"+r+"</span>",a._player.trigger(c.Private.Info_Show,{text:e,duration:3e3,align:"lb"}))}),a._player.on(c.Private.SelectorHide,function(){i()}),a._player.on(c.Private.SelectorValueChange,function(e){var t=e.paramData;if(t&&t.type==a.Type){var r=document.querySelectorAll("#"+a.id()+" .selector-list li");if(r){for(var i=r.length,n=(0==i&&(a._backupSelector=t.text),-1),o=0;o<i;o++)if(r[o].text==t.text){n=o;break}a._previousSelection&&(s.removeClass(a._previousSelection,"current"),a._previousSelection=null),-1!==n?(s.addClass(r[n],"current"),a._previousSelection=r[n]):a._previousSelection||console.warn("UI Not Sync: No Such Option '"+t.text+"' in '"+t.type+"'")}}}),a._player.on(c.Private.SettingListShow,function(){r()}),a._player.on(c.Private.SelectorGenerateList,function(e){var t=e.paramData&&e.paramData.type,e=e.paramData&&e.paramData.value;t===a.Type&&(a._hasGeneratedList=!1,e&&(a._backupSelector=e),r())}),a._player.on(c.Private.SelectorShow,function(e){(e=e.paramData).type==a.Type&&(e=document.querySelector("#"+a._player.id()+" .prism-"+e.type+"-selector"),a._hasGeneratedList||r(),s.css(e,"display","block"))});var i=function(){s.css(a.el(),"display","none"),a._player.trigger(c.Private.UpdateToSettingList,{type:a.Type,text:a._previousSelection?a._previousSelection.text:""})},t=n.IS_MOBILE?"touchleave":"mouseleave";o.on(this.el(),t,function(){i()}),o.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&i()}),o.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&i()})},setSelected:function(e){},generateList:function(){},_clear:function(){document.querySelector("#"+this.id()+" .selector-list").innerHTML=""}});t.exports=e},{"../../../lang/index":18,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/ua":39,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"../../component":103,"./util":125}],124:[function(e,t,r){var i=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),l=(e("../../../lib/event"),e("./util"),e("../../../lib/constants")),n=e("../../../lang/index"),o=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){var r=this;this.Name=n.get("Speed"),this.Type="speed",this.Tooltip=n.get("Speed_Switch_To"),this.speedPreStore=1,this.listGenerated=!1,i.call(this,e,t),this._player.on(o.Private.PlaybackRateChanged,function(e){r.speedPreStore=e.paramData,r.listGenerated&&r._player.trigger(o.Private.SelectorUpdateList,{type:"speed",text:e.paramData})})},generateList:function(){var n=document.querySelector("#"+this.id()+" .selector-list"),e=this._player._options.speedLevels,e=this.verifySpeedLevels(e)?e:l.SpeedLevels,o=this;a.each(e,function(e,t){var r=s.createEl.call(this,"li",{key:e.key,text:e.text}),i=s.createEl.call(this,"span",{key:e.key,text:e.text});i.innerText=e.text,e.key==o.speedPreStore&&(s.addClass(r,"current"),o._previousSelection=r),r.appendChild(i),n.appendChild(r)}),this.listGenerated=!0},execute:function(e){this._player.setSpeed(e,!1)},verifySpeedLevels:function(e){var t=0;if(e&&e.length)try{e.forEach(function(e){"number"==typeof e.key&&e.key==e.key&&0<=e.key&&t++})}catch(e){return!1}return e&&t===e.length}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],125:[function(e,r,t){r.exports.findliElementForSelector=function(e){var t;return e&&"li"!=e.tagName.toLowerCase()?(t=e.parentElement)&&"li"==t.tagName.toLowerCase()?t:null:e},r.exports.findliElementByKey=function(e,t){document.querySelectors(e);return null},r.exports.findItemElementForList=function(e){var t;return!e||-1<e.className.indexOf("prism-setting-item")||(t=e.parentElement)&&(e=r.exports.findItemElementForList(t)),e}},{}],126:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lang/index"),a=e("../../player/base/event/eventtype"),s=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-snapshot-btn")},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var e=this,t=this._player;t.on(a.Private.Snapshot_Hide,function(){n.css(e._el,"display","none")}),s.registerTooltipEvent.call(this,this.el(),o.get("Snapshot")),this.on("click",function(){e.trigger(a.Player.Snapshoting),e.trigger(a.Player.Snapshoted,t.takeSnapshot())})}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],127:[function(e,t,r){var i=e("../component"),e=(e("../../lib/dom"),e("../../player/base/event/eventtype"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-text-overlay")},createEl:function(){return i.prototype.createEl.call(this,"div")},_hide:function(e){},_show:function(e){},bindEvent:function(){}}));t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],128:[function(e,t,r){var i=e("../component"),a=(e("../../lib/util"),e("../../lib/dom")),n=e("../../lib/event"),s=(e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),l=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-thumbnail")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<img></img><span></span>",e},bindEvent:function(){var o=this,e=(n.on(this._el,"mousemove",function(e){e.preventDefault()}),n.on(this._el,"touchmove",function(e){e.preventDefault()}),o._player.on(s.Private.ThumbnailLoaded,function(e){var t,r,i,e=e.paramData;e&&0<e.length&&(t=o._player._thumbnailService.makeUrl(e[0].text),o._player.log("THUMBNAILSTART",{tu:encodeURIComponent(t)}),r=(new Date).getTime(),e[0].isBig?(a.css(o.el(),"background","url("+t+")"),a.css(o.el(),"width",e[0].w+"px"),a.css(o.el(),"height",e[0].h+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-r})):((i=document.querySelector("#"+o.id()+" img")).onload=function(){var e=i.width,t=i.height;a.css(o.el(),"width",e+"px"),a.css(o.el(),"height",t+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-r})},i.src=t))}),l.throttle(function(e){var t,r,i,e=e[0],n=document.querySelector("#"+o.id()+" span"),e=e.paramData;n.innerText=e.formatTime,e&&((t=o._player._thumbnailService.findAvailableCue(e.time))?t.isBig?(r=o._player._thumbnailService.makeUrl(t.text),a.css(o.el(),"background","url("+r+")"),t.w,t.h,i=-1*t.x+"px "+-1*t.y+"px",a.css(o.el(),"background-position",i)):(i=document.querySelector("#"+o.id()+" img"),r=o._player._thumbnailService.makeUrl(t.text),i.src!=r&&(i.src=r)):(a.css(o.el(),"border","none"),a.css(n,"left","0px")),a.css(o.el(),"display","block"),i=0,r=(t?o.el():n).offsetWidth,i=e.left+r>e.progressWidth?e.left-r:(i=e.left-r/2)<0?0:i,a.css(o.el(),"left",i+"px"))},30));o._player.on(s.Private.ThumbnailShow,e),o._player.on(s.Private.ThumbnailHide,function(e){a.css(o.el(),"display","none")})},_createSamllThumbnail:function(){},disposeUI:function(){}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],129:[function(e,t,r){var i=e("../component"),n=e("../../lib/util"),o=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-time-display")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="duration">00:00</span>',e},bindEvent:function(){var t=this;this._player.on(o.Video.DurationChange,function(){var e=n.formatTime(t._player.getDisplayDuration());e?(document.querySelector("#"+t.id()+" .time-bound").style.display="inline",document.querySelector("#"+t.id()+" .duration").style.display="inline",document.querySelector("#"+t.id()+" .duration").innerText=e):(document.querySelector("#"+t.id()+" .duration").style.display="none",document.querySelector("#"+t.id()+" .time-bound").style.display="none")}),this._player.on(o.Video.TimeUpdate,function(){var e=t._player.getCurrentTime(),e=n.formatTime(e);document.querySelector("#"+t.id()+" .current-time")&&(e?(document.querySelector("#"+t.id()+" .current-time").style.display="inline",document.querySelector("#"+t.id()+" .current-time").innerText=e):document.querySelector("#"+t.id()+" .current-time").style.display="none")})}});t.exports=e},{"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],130:[function(e,t,r){var i=e("../component"),o=e("../../lib/dom"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-tooltip")},createEl:function(){var e=i.prototype.createEl.call(this,"p");return e.innerText="\u63d0\u793a\u4fe1\u606f",e},bindEvent:function(){var n=this;n._player.on(a.Private.TooltipShow,function(e){var t=document.querySelector("#"+n.id()),e=e.paramData,r=(t.innerText=e.text,o.css(t,"display","block"),t.offsetWidth),i=document.querySelector("#"+n._player.id()+" .prism-controlbar");i&&(i=i.offsetWidth,e.left+r>i?o.css(t,"left",i-r+"px"):o.css(t,"left",e.left-(r-e.width)/2+"px"))}),n._player.on(a.Private.TooltipHide,function(e){var t=document.querySelector("#"+n.id());o.css(t,"display","none")})}});t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],131:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../lang/index"),s=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-unmute-btn")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerText=a.get("Click_To_Unmute"),e},bindEvent:function(){var t=this;this._player.on(s.Private.MutedAutoplay,function(){var e;null!=(e=t._player.getOptions().autoplayPolicy)&&e.showUnmuteBtn&&t._show()}),o.on(this.el(),"click",function(){t._player.unMute(!0),t._hide()})},_show:function(){n.css(this.el(),"display","block")},_hide:function(){n.css(this.el(),"display","none")}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103}],132:[function(e,t,r){var i=e("../../lib/event"),s=e("../../player/base/event/eventtype");t.exports.registerTooltipEvent=function(e,n){function o(){a._controlbarTooltipHandler&&(clearTimeout(a._controlbarTooltipHandler),a._controlbarTooltipHandler=null)}var a=this;i.on(this.el(),"mouseover",function(e){o(),a._controlbarTooltipHandler=setTimeout(function(){a._player.trigger(s.Private.TooltipHide)},4e3);var t=a.el().offsetLeft,r=a.el().offsetWidth,i=n;"function"==typeof n&&(i=n.call(this)),a._player.trigger(s.Private.TooltipShow,{left:t,width:r,text:i})}),i.on(this.el(),"mouseout",function(){o(),a._player.trigger(s.Private.TooltipHide)})},t.exports.throttle=function(r,i){var n=Date.now();return function(){var e=arguments,t=Date.now();i<=t-n&&(r(e),n=t)}},t.exports.debounce=function(r,i){var n;return function(){var e=this,t=arguments;clearTimeout(n),n=setTimeout(function(){r.apply(e,t)},i)}}},{"../../lib/event":26,"../../player/base/event/eventtype":63}],133:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("./util"),l=e("../../lang/index"),c=e("./volumecontrol"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-volume");var r=new c(e,t);e.addChild(r,t),this.volumeControl=r},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-icon"><div class="short-horizontal"></div><div class="long-horizontal"></div></div>',e},bindEvent:function(){var r=this,i=r._player,e=(this.icon=document.querySelector("#"+r.id()+" .volume-icon"),s.registerTooltipEvent.call(this,this.el(),function(){return r._player.muted()||0==r._player.getVolume()?l.get("Muted"):l.get("Volume")}),o.on(this.icon,"click",function(e){var t;r.volumeControl._shown?i.muted()?i.unMute():i.mute():(t=r.el().offsetLeft,r._player.trigger(a.Private.SettingListHide),r._player.trigger(a.Private.SelectorHide),r._player.trigger(a.Private.VolumeVisibilityChange,t),r._player.trigger(a.Private.MarkerTextHide))}),document.querySelector("#"+r.id()+" .long-horizontal")),t=document.querySelector("#"+r.id()+" .short-horizontal");o.on(this.el(),"mouseover",function(){n.removeClass(e,"volume-hover-animation"),setTimeout(function(){n.addClass(e,"volume-hover-animation")}),setTimeout(function(){n.removeClass(e,"volume-hover-animation"),n.addClass(t,"volume-hover-animation"),setTimeout(function(){n.removeClass(t,"volume-hover-animation"),n.addClass(e,"volume-hover-animation")},300)},300)}),o.on(window,"resize",function(){var e;r.volumeControl._shown&&(e=r.el().offsetLeft,r._player.trigger(a.Private.VolumeUpdatePosition,e))})}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103,"./util":132,"./volumecontrol":134}],134:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=(e("./util"),e("../../lang/index"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-volume-control"),this._shown=!1},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-range"><div class="volume-value"></div><div class="volume-cursor"></div></div>',e},bindEvent:function(){var r=this;this.icon=document.querySelector("#"+r._player.id()+" .volume-icon"),this.control=document.querySelector("#"+r.id()),this.volumnValue=document.querySelector("#"+r.id()+" .volume-value"),this.volumnRange=document.querySelector("#"+r.id()+" .volume-range"),this.volumnCursor=document.querySelector("#"+r.id()+" .volume-cursor"),this._player.on(a.Private.VolumeVisibilityChange,function(e){var t,e=e.paramData;!r._shown&&e?(t=r._player.getVolume(),r._setVolumnUI(t),n.css(r.control,"display","block"),e&&r._updatePosition(e),r._shown=!0):r._hide()}),this._player.on(a.Private.VolumeUpdatePosition,function(e){e=e.paramData;r._shown&&r._updatePosition(e)}),this._player.on(a.Private.ControlBarClick,function(e){n.hasClass(e.paramData.target,"prism-controlbar-bg")&&r._hide()}),o.on(this.volumnRange,"click",function(e){e=n.getPointerPosition(r.volumnRange,e).y;e<0||1<e||(r._setVolumnUI(e=1<(e=e<0?0:e)?1:e),r._setMuteUI(e),r._player.setVolume(e))}),o.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&r._hide()}),o.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&r._hide()}),o.on(this.volumnCursor,"mousedown",function(e){r._onMouseDown(e)}),o.on(this.volumnCursor,"touchstart",function(e){r._onMouseDown(e)}),this._player.on(a.Private.VolumnChanged,function(e){e=e.paramData;-1<e&&r._setVolumnUI(e),r._setMuteUI(e)}),o.on(this.control,"mouseleave",function(){r._offEvent(),r._hide()}),o.on(this.control,"mouseover",function(){n.addClass(r.control,"hover")}),r._rangeBottom=r._getBottom()},_getBottom:function(){var e;return window.getComputedStyle?(e=window.getComputedStyle(this.volumnRange,null).getPropertyValue("bottom"),parseFloat(e)):26},_onMouseDown:function(e){var t=this;e.preventDefault(),o.on(this.control,"mousemove",function(e){t._onMouseMove(e)}),o.on(this.control,"touchmove",function(e){t._onMouseMove(e)}),o.on(this._player.tag,"mouseup",function(e){t._onMouseUp(e)}),o.on(this._player.tag,"touchend",function(e){t._onMouseUp(e)}),o.on(this.control,"mouseup",function(e){t._onMouseUp(e)}),o.on(this.control,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),this._offEvent(),this.volumnRange.offsetHeight&&(e=(this.volumnValue.offsetHeight/this.volumnRange.offsetHeight).toFixed(2),this._player.setVolume(e),this._setMuteUI(e))},_onMouseMove:function(e){e.preventDefault();e=n.getPointerPosition(this.volumnRange,e).y;e<0||1<e||this._setVolumnUI(e=1<(e=e<0?0:e)?1:e)},_getPosition:function(e){for(var t=this.volumnRange,r=0;t=t.offsetParent;)r+=t.offsetTop;var i=this.volumnRange.offsetHeight,n=this.volumnCursor.offsetHeight,o=(e.touches?e.touches[0]:e).pageY;return(i-((o=i<o-r?e.clientY:o)-r)+n)/this.volumnRange.offsetHeight},_offEvent:function(){o.off(this._player.tag,"mouseup"),o.off(this._player.tag,"touchend"),o.off(this.control,"mousemove"),o.off(this.control,"touchmove"),o.off(this.control,"mouseup"),o.off(this.control,"touchend")},_setMuteUI:function(e){isNaN(e)||(0==e||-1==e?n.addClass(this.icon,"mute"):n.removeClass(this.icon,"mute"))},_setVolumnUI:function(e){isNaN(e)||(n.css(this.volumnValue,"height",100*e+"%"),n.css(this.volumnCursor,"bottom",100*(e=1==e?.99:e)+"%"))},_hide:function(){n.css(this.control,"display","none"),this._shown=!1},_updatePosition:function(e){n.css(this.control,"left",e-5+"px")}}));t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],135:[function(e,t,r){t.exports={H5Loading:e("./component/h5-loading"),bigPlayButton:e("./component/big-play-button"),unmuteButton:e("./component/unmute-button"),controlBar:e("./component/controlbar"),progress:e("./component/progress"),playButton:e("./component/play-button"),liveDisplay:e("./component/live-display"),timeDisplay:e("./component/time-display"),fullScreenButton:e("./component/fullscreen-button"),volume:e("./component/volume"),snapshot:e("./component/snapshot"),errorDisplay:e("./component/error-display"),infoDisplay:e("./component/info-display"),liveShiftProgress:e("../commonui/liveshiftprogress"),liveShiftTimeDisplay:e("../commonui/livetimedisplay"),setting:e("./component/setting/button"),subtitle:e("./component/cc-button"),thumbnail:e("./component/thumbnail"),tooltip:e("./component/tooltip")}},{"../commonui/liveshiftprogress":5,"../commonui/livetimedisplay":6,"./component/big-play-button":104,"./component/cc-button":105,"./component/controlbar":106,"./component/error-display":108,"./component/fullscreen-button":109,"./component/h5-loading":110,"./component/info-display":111,"./component/live-display":113,"./component/play-button":114,"./component/progress":115,"./component/setting/button":118,"./component/snapshot":126,"./component/thumbnail":128,"./component/time-display":129,"./component/tooltip":130,"./component/unmute-button":131,"./component/volume":133}]},{},[8])(8)});
|
|
1
|
+
/*! aliyun-aliplayer - v2.29.0 - 2025-02-13 17.02.02 */
|
|
2
|
+
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Aliplayer=e()}(function(){return function i(n,o,a){function s(t,e){if(!o[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=o[t]={exports:{}},n[t][0].call(r.exports,function(e){return s(n[t][1][e]||e)},r,r.exports,i,n,o,a)}return o[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(j,r,i){!function(B,V){!function(){var e,t;e=this,t=function(){function l(e){return"function"==typeof e}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(n?n(d):M())};var e="undefined"!=typeof window?window:void 0,o=e||{},o=o.MutationObserver||o.WebKitMutationObserver,s="undefined"==typeof self&&void 0!==B&&"[object process]"==={}.toString.call(B),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(d,1)}}var p=new Array(1e3);function d(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}function h(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:u()}catch(e){return u()}}var f,_,y,M=void 0;function g(e,t){var r,i=this,n=new this.constructor(S),o=(void 0===n[m]&&R(n),i._state);return o?(r=arguments[o-1],a(function(){return A(o,n,r,i._result)})):k(i,n,e,t),n}function v(e){var t;return e&&"object"==typeof e&&e.constructor===this?e:(P(t=new this(S),e),t)}var M=s?function(){return B.nextTick(d)}:o?(_=0,s=new o(d),y=document.createTextNode(""),s.observe(y,{characterData:!0}),function(){y.data=_=++_%2}):c?((f=new MessageChannel).port1.onmessage=d,function(){return f.port2.postMessage(0)}):(void 0===e&&"function"==typeof j?h:u)(),m=Math.random().toString(36).substring(2);function S(){}var T=void 0,b=1,E=2;function U(e,i,n){a(function(t){var r=!1,e=((e,t,r,i)=>{try{e.call(t,r,i)}catch(e){return e}})(n,i,function(e){r||(r=!0,(i!==e?P:x)(t,e))},function(e){r||(r=!0,C(t,e))},t._label);!r&&e&&(r=!0,C(t,e))},e)}function w(e,t,r){var i,n;t.constructor===e.constructor&&r===g&&t.constructor.resolve===v?(i=e,(n=t)._state===b?x(i,n._result):n._state===E?C(i,n._result):k(n,void 0,function(e){return P(i,e)},function(e){return C(i,e)})):void 0!==r&&l(r)?U(e,t,r):x(e,t)}function P(t,e){if(t===e)C(t,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof e,null===e||"object"!=r&&"function"!=r)x(t,e);else{r=void 0;try{r=e.then}catch(e){return void C(t,e)}w(t,e,r)}var r}function F(e){e._onerror&&e._onerror(e._result),L(e)}function x(e,t){e._state===T&&(e._result=t,e._state=b,0!==e._subscribers.length)&&a(L,e)}function C(e,t){e._state===T&&(e._state=E,e._result=t,a(F,e))}function k(e,t,r,i){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+b]=r,n[o+E]=i,0===o&&e._state&&a(L,e)}function L(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var i,n=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],n=t[a+r],i?A(r,i,n,o):n(o);e._subscribers.length=0}}function A(e,t,r,i){var n=l(r),o=void 0,a=void 0,s=!0;if(n){try{o=r(i)}catch(e){s=!1,a=e}if(t===o)return void C(t,new TypeError("A promises callback cannot return that same promise."))}else o=i;t._state===T&&(n&&s?P(t,o):!1===s?C(t,a):e===b?x(t,o):e===E&&C(t,o))}var D=0;function R(e){e[m]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}I.prototype._enumerate=function(e){for(var t=0;this._state===T&&t<e.length;t++)this._eachEntry(e[t],t)},I.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,i=r.resolve;if(i===v){var n,o=void 0,a=void 0,s=!1;try{o=t.then}catch(e){s=!0,a=e}o===g&&t._state!==T?this._settledAt(t._state,e,t._result):"function"!=typeof o?(this._remaining--,this._result[e]=t):r===O?(n=new r(S),s?C(n,a):w(n,t,o),this._willSettleAt(n,e)):this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},I.prototype._settledAt=function(e,t,r){var i=this.promise;i._state===T&&(this._remaining--,e===E?C(i,r):this._result[t]=r),0===this._remaining&&x(i,this._result)},I.prototype._willSettleAt=function(e,t){var r=this;k(e,void 0,function(e){return r._settledAt(b,t,e)},function(e){return r._settledAt(E,t,e)})};var H=I;function I(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[m]||R(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(t),0!==this._remaining)||x(this.promise,this._result)):C(this.promise,new Error("Array Methods must be provided an Array"))}N.prototype.catch=function(e){return this.then(null,e)},N.prototype.finally=function(t){var r=this.constructor;return l(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)};var O=N;function N(e){if(this[m]=D++,this._result=this._state=void 0,this._subscribers=[],S!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof N))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var t=this;try{e(function(e){P(t,e)},function(e){C(t,e)})}catch(e){C(t,e)}}}return O.prototype.then=g,O.all=function(e){return new H(this,e).promise},O.race=function(n){var o=this;return r(n)?new o(function(e,t){for(var r=n.length,i=0;i<r;i++)o.resolve(n[i]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})},O.resolve=v,O.reject=function(e){var t=new this(S);return C(t,e),t},O._setScheduler=function(e){n=e},O._setAsap=function(e){a=e},O._asap=a,O.polyfill=function(){var e=void 0;if(void 0!==V)e=V;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=O},O.Promise=O},"object"==typeof i&&void 0!==r?r.exports=t():e.ES6Promise=t()}.call(this)}.call(this,j("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],2:[function(e,t,r){var i,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return(i=setTimeout)(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length)&&h()}function h(){if(!u){for(var e=s(d),t=(u=!0,c.length);t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,u=!1,!function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return(n=clearTimeout)(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function _(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=_,t.addListener=_,t.once=_,t.off=_,t.removeListener=_,t.removeAllListeners=_,t.emit=_,t.prependListener=_,t.prependOnceListener=_,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],3:[function(e,t,r){t.exports={name:"aliyun-aliplayer",version:"2.29.0",description:"\u963f\u91cc\u4e91 Web \u64ad\u653e\u5668",main:"./build/aliplayer-min",style:"./build/skins/default/aliplayer-min.css",files:["build"],repository:{type:"git",url:""},keywords:["aliyun","aliplayer"],scripts:{start:"npx grunt live","start:hls":"npx grunt live --hls=true","start:flv":"npx grunt live --flv=true",build:"npx grunt build",release:"commit-and-tag-version",prepublishOnly:"npm run build","test:unit":"karma start","test:unit:watch":"karma start --no-single-run"},devDependencies:{"@ali/mediabox-quality-tracer":"^0.23.0","@babel/core":"^7.26.0","@babel/preset-env":"^7.26.0","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","babel-loader":"^9.2.1","babel-plugin-es6-promise":"^1.1.1","babel-plugin-istanbul":"^7.0.0",babelify:"^10.0.0",chai:"^5.1.2","commit-and-tag-version":"^11.2.1","es6-promise":"^4.2.8",grunt:"^1.0.4","grunt-autoprefixer":"^3.0.4","grunt-babel":"^8.0.0","grunt-browserify":"^5.3.0","grunt-contrib-clean":"^2.0.0","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-cssmin":"^3.0.0","grunt-contrib-less":"^2.0.0","grunt-contrib-uglify":"^4.0.1","grunt-contrib-watch":"^1.1.0","grunt-run":"^0.8.1","grunt-text-replace":"^0.4.0",karma:"^6.4.4","karma-chrome-launcher":"^3.2.0","karma-coverage":"^2.2.1","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-webpack":"^5.0.1",mocha:"^11.0.1","node-args":"^2.1.8",sinon:"^19.0.2","sinon-chai":"^4.0.0",webpack:"^5.97.1"},dependencies:{"crypto-js":"^4.1.1"},optionalDependencies:{puppeteer:"^23.11.1"}}},{}],4:[function(e,t,r){var i=e("../ui/component"),n=(e("../lib/util"),e("../lib/dom")),o=e("../lib/event"),a=(e("../lib/ua"),e("../lang/index")),s=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-auto-stream-selector",this.addClass(this.className)},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<div><p class='tip-text'></p></div><div class='operators'><a class='prism-button prism-button-ok' type='button'>"+a.get("OK_Text")+"</a><a class='prism-button prism-button-cancel' target='_blank'>"+a.get("Cancel_Text")+"</a></div>",e},bindEvent:function(){var i=this,e=(i._player.on(s.Private.AutoStreamShow,function(e){var t,r=document.querySelector("#"+i.getId()+" .tip-text");i._player._getLowerQualityLevel&&(t=i._player._getLowerQualityLevel())&&(i._switchUrl=t,r.innerText=a.get("Auto_Stream_Tip_Text").replace("$$",t.item.desc),n.css(i.el(),"display","block"))}),i._player.on(s.Private.AutoStreamHide,function(e){document.querySelector("#"+i.getId()+" .tip-text");n.css(i.el(),"display","none")}),document.querySelector("#"+i.getId()+" .prism-button-ok")),e=(o.on(e,"click",function(){i._player._changeStream&&i._switchUrl&&(i._player._changeStream(i._switchUrl.index,a.get("Quality_Change_Text")),i._player.trigger(s.Private.SettingListHide)),n.css(i.el(),"display","none")}),document.querySelector("#"+i.getId()+" .prism-button-cancel"));o.on(e,"click",function(){n.css(i.el(),"display","none"),i._player.trigger(s.Private.SettingListHide)})}});t.exports=e},{"../lang/index":18,"../lib/dom":25,"../lib/event":26,"../lib/ua":39,"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],5:[function(e,t,r){var i=e("../ui/component"),a=e("../lib/dom"),n=e("../lib/event"),o=e("../lib/ua"),s=e("../lib/function"),l=(e("../lang/index"),e("../lib/util")),c=e("../config"),u=e("../lib/playerutil"),p=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-liveshift-progress",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-enable-liveshift"><div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p><div class="prism-liveshift-seperator"></div></div><div class="prism-disable-liveshift"></div>',e},bindEvent:function(){function t(e){r._progressDown=e}var r=this,e=(this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this.id()+" .prism-progress-time"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),this.seperatorNode=document.querySelector("#"+this.id()+" .prism-liveshift-seperator"),this.progressNode=document.querySelector("#"+this.id()+" .prism-enable-liveshift"),document.querySelector("#"+this.id()+" .prism-progress-cursor img")),i="//"+c.domain+c.path+c.h5Version+"/skins/default/img/dragcursor.png";this._player._options.skinsDomain=this._player._options.assetPrefix||this._player._options.skinsDomain,this._player._options.skinsDomain?i=this._player._options.skinsDomain+"/skins/default/img/dragcursor.png":c.domain?-1<c.domain.indexOf("localhost")&&(i="//"+c.domain+"/build/skins/default/img/dragcursor.png"):i=this._player&&this._player._options&&this._player._options.sdkDomain?this._player._options.sdkDomain+c.path+c.h5Version+"/skins/default/img/dragcursor.png":(c.path||"").substring(1)+c.h5Version+"/skins/default/img/dragcursor.png",e.src=i,n.on(this.cursorNode,"mousedown",function(e){r._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){r._onMouseDown(e)}),n.on(this.progressNode,"mousemove",function(e){r._progressMove(e)}),n.on(this.progressNode,"touchmove",function(e){r._progressMove(e)});n.on(this.progressNode,"mousedown",function(e){t(!0)}),n.on(this.progressNode,"touchstart",function(e){t(!0)}),n.on(this.progressNode,"mouseup",function(e){t(!1)}),n.on(this.progressNode,"touchend",function(e){t(!1)}),n.on(this._el,"click",function(e){r._onMouseClick(e)}),this._player.on(p.Private.HideProgress,function(e){r._hideProgress(e)}),this._player.on(p.Private.CancelHideProgress,function(e){r._cancelHideProgress(e)}),this._player.on(p.Private.ShowBar,function(){r._updateLayout()}),n.on(this.progressNode,p.Private.MouseOver,function(e){r._onMouseOver(e)}),n.on(this.progressNode,p.Private.MouseOut,function(e){r._onMouseOut(e)}),this.bindTimeupdate=s.bind(this,this._onTimeupdate),this._player.on(p.Player.TimeUpdate,this.bindTimeupdate),u.isLiveShift(this._player._options)&&r._liveshiftService.start(6e4,function(e){e={mediaId:r._player._options.vid||"",error_code:e.Code,error_msg:e.Message};r._player.logError(e),r._player.trigger(p.Player.Error,e)}),this._player.on(p.Private.LiveShiftQueryCompleted,function(){r._updateSeperator(),r._updateLayout()}),this._player.on(p.Private.LiveShiftSwitchToLive,function(){r._updateCursorPosition()}),this._player.on(p.Player.Pause,function(){r._liveshiftService.stop()}),o.IS_IPAD?this.interval=setInterval(function(){r._onProgress()},500):this._player.on(p.Video.Progress,function(){r._onProgress()})},_updateSeperator:function(){this._liveshiftService.currentTimeDisplay&&(this.seperatorNode.innerText=this._liveshiftService.currentTimeDisplay)},_updateLayout:function(){var e=this.seperatorNode.offsetWidth,t=this.el().offsetWidth,r=t-e;0!=e&&0!=r&&(a.css(this.progressNode,"width",100*(r-10)/t+"%"),a.css(this.seperatorNode,"right",-1*(e+10)+"px"))},_progressMove:function(e){var t=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime,t=(this.timeNode.innerText="-"+l.formatTime(r-t),r?t/r:0),r=1-this.timeNode.clientWidth/this.el().clientWidth,i=(r<t&&(t=r),this.timeNode&&(a.css(this.timeNode,"display","block"),a.css(this.timeNode,"left",100*t+"%")),this);!o.IS_PC&&i._progressDown&&(i.progressSeekTimer&&clearTimeout(i.progressSeekTimer),i.progressSeekTimer=setTimeout(function(){i._progressDown||i._onMouseClick(e)},200))},_hideProgress:function(e){n.off(this.cursorNode,"mousedown"),n.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;n.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._updateCursorPosition(this._getCurrentTime()),a.css(this.timeNode,"display","block")},_onMouseOut:function(e){a.css(this.timeNode,"display","none")},_getSeconds:function(e){if(e.touches&&e.touches[0]){for(var t,r=this.el().offsetLeft,i=this.el();i.offsetParent;){var i=i.offsetParent,n=a.getTranslateX(i);r+=i.offsetLeft+n}i.tagName&&"body"===i.tagName.toLowerCase()&&(r+=document.getElementsByTagName("html")[0].offsetLeft),(t=(e.touches?e.touches[0]:e).pageX-r)<0&&(t=0)}else t=e.offsetX,e.target!==this.cursorNode&&e.target.offsetParent!==this.cursorNode||(t+=this.cursorNode.offsetLeft),e.target!==this._el&&(e.target.offsetParent,this._el);var e=this.progressNode.offsetWidth,o=this._liveshiftService.availableLiveShiftTime;return sec=(sec=(sec=o?t/e*o:0)<0?0:sec)>o?o:sec},_onMouseClick:function(e){var t=this,e=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime,i=r-e,n=this._player._options,r=(i<=n.liveShiftMinOffset&&(e=r-(i=n.liveShiftMinOffset)),this._player.trigger(p.Private.SeekStart,{fromTime:this._getCurrentTime()}),this._liveshiftService.getSourceUrl(i)),n=u.isHls(t._player._options.source);t._player._loadByUrlInner(r,e,!0),t._player.trigger(p.Private.Play_Btn_Hide),t._liveshiftService.seekTime=e,t._player.trigger(p.Private.EndStart,{toTime:e}),t._updateProgressBar(this.playedNode,e),t._updateCursorPosition(e),setTimeout(function(){t._progressDown||t._onMouseOut()},500),n&&setTimeout(function(){t._player.play()})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._player.trigger(p.Private.SeekStart,{fromTime:this._getCurrentTime()}),n.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"mouseup",function(e){t._onMouseUp(e)}),n.on(this.controlNode,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),n.off(this.controlNode,"mousemove"),n.off(this.controlNode,"touchmove"),n.off(this._player.tag,"mouseup"),n.off(this._player.tag,"touchend"),n.off(this.controlNode,"mouseup"),n.off(this.controlNode,"touchend"),this._onMouseClick(e)},_onMouseMove:function(e){e.preventDefault()},_onTimeupdate:function(e){this._player._seeking||(o.IS_ANDROID&&o.IS_UC&&(this._hasResetFlagUC&&this._player.getCurrentTime()&&(this._hasResetFlagUC=!1,this._basePtsUC=this._player.getCurrentTime()),this._player.getCurrentTime()||(this._hasResetFlagUC=!0,this._basePtsUC=0)),this._updateProgressBar(this.playedNode,this._getCurrentTime()),this._updateCursorPosition(this._getCurrentTime()),this._player.trigger(p.Private.UpdateProgressBar,{time:this._getCurrentTime()}))},_getCurrentTime:function(){var e=this._liveshiftService.seekTime,e=(-1==e&&(e=0),this._player.getCurrentTime()+e);return o.IS_ANDROID&&o.IS_UC&&(e-=this._basePtsUC||0),e},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var r,i;1!=this._player._switchSourcing&&(i=0,-1==this._liveshiftService.seekTime?i=1:1<(i=(r=this._liveshiftService.availableLiveShiftTime)?t/r:0)&&(this._liveshiftService.seekTime=-(i=1)),this.liveShiftStartDisplay,e)&&a.css(e,"width",100*i+"%")},_updateCursorPosition:function(e){var t,r,i,n;this._player.el()&&1!=this._player._switchSourcing&&(i=0,n=1,t=this._player.el().clientWidth,-1==this._liveshiftService.seekTime?i=1:1<(i=(r=this._liveshiftService.availableLiveShiftTime)?e/r:0)&&(this._liveshiftService.seekTime=-1),0!=t&&(n=1-(e=10/t),i-=e),i=i<0?0:i,this.cursorNode)&&(n<i?(a.css(this.cursorNode,"right","0px"),a.css(this.cursorNode,"left","auto")):(a.css(this.cursorNode,"right","auto"),a.css(this.cursorNode,"left",100*i+"%")))}});t.exports=e},{"../config":7,"../lang/index":18,"../lib/dom":25,"../lib/event":26,"../lib/function":28,"../lib/playerutil":37,"../lib/ua":39,"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],6:[function(e,t,r){var i=e("../ui/component"),n=e("../lib/util"),o=e("../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.className=t.className||"prism-live-time-display",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="end-time">00:00</span><span class="live-text">Live: </span><span class="live-time"></span>',e},bindEvent:function(){var i=this;this._player.on(o.Video.TimeUpdate,function(){var e,t=i._liveshiftService,r=document.querySelector("#"+i.id()+" .current-time");t.liveShiftStartDisplay&&t.availableLiveShiftTime>t.seekTime&&-1!=t.seekTime?(e=i._liveshiftService.getBaseTime(),e=n.formatTime(e+i._player.getCurrentTime()),r.innerText=e):t.currentTimeDisplay&&(r.innerText=t.currentTimeDisplay)}),this._player.on(o.Private.LiveShiftQueryCompleted,function(){i.updateTime()})},updateTime:function(){document.querySelector("#"+this.id()+" .end-time").innerText=this._liveshiftService.liveTimeRange.endDisplay,document.querySelector("#"+this.id()+" .live-time").innerText=this._liveshiftService.currentTimeDisplay}});t.exports=e},{"../lib/util":41,"../player/base/event/eventtype":63,"../ui/component":103}],7:[function(e,t,r){e=e("../package.json");t.exports={domain:"g.alicdn.com",path:"/apsara-media-box/imp-web-player/",flashVersion:"2.8.2",h5Version:e.version.split("-")[0],rtsVersion:"2.9.1",cityBrain:!0,logDuration:3,logCount:100,logReportTo:"https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/newplayer/track",dumpLogReportTo:"https://web-video.cn-hangzhou.log.aliyuncs.com/logstores/player-dump/track"}},{"../package.json":3}],8:[function(e,t,r){function i(e,t,r){t.id||(t.id=e),t.readyCallback=r="function"!=typeof r?function(){}:r;var e=a.createWrapper(t,r),i=((r=a.handleOption(t)).skinLayout=[],r.withCredentials=!0,r.from="1084855783648729",e.player||new n(e,r));return r.events&&o.each(r.events,function(e,t){i.on(e,t)}),i}e("./lang/index").load();var n=e("./player/acfunc/acplayer"),o=(e("./lib/dom"),e("./lib/ua"),e("./lib/object")),a=e("./lib/playerutil"),e=(e("./config"),e("./lib/componentutil").register(i),window.ykv=i);(window.Aliplayer=i).players={},t.exports=e},{"./config":7,"./lang/index":18,"./lib/componentutil":21,"./lib/dom":25,"./lib/object":35,"./lib/playerutil":37,"./lib/ua":39,"./player/acfunc/acplayer":57}],9:[function(e,t,r){var i=e("../player/base/event/eventtype"),n=e("../lib/constants"),o=e("../lang/index");t.exports=(()=>{function e(e){var t=this;void 0===e&&(e={}),this.interval=3e3,this.player=null,this.timer=null,this.playerInitDone=!1,this.player=e.player,this.player.on(i.Player.Init,function(){t.playerInitDone=!0})}var t=e.prototype;return t.start=function(){var e=this;this.stop(),this.player&&this.player._options&&!this.player._options.preventRecord||(this.timer=setInterval(function(){e.playerInitDone&&e.check()},this.interval))},t.stop=function(){this.clearTimer()},t.check=function(){var e=!1,t=this.detectPrototype()||this.detectNativeFn();return(t||this.detectDeperateVideo())&&(console.log("isMediaSourceModified",t),this.clearTimer(),this.displayError(),this.setupErrorStyle(),this.destroyVideo(),localStorage.setItem("_intercept_mediastream_",""),e=!0),e},t.dispose=function(){this.stop(),this.player=null,this.playerInitDone=!1},t.clearTimer=function(){this.timer&&(clearInterval(this.timer),this.timer=null)},t.displayError=function(){var e=this.player,t={mediaId:e._options&&e._options.vid?e._options.vid:"",error_code:n.ErrorCode.RecordNotAllowed,error_msg:o.get("Record_Not_Allowed")};e.logError(t),e.trigger(i.Player.Error,t)},t.setupErrorStyle=function(){this.hideRetry();var e=document.querySelector(".prism-ErrorMessage");e&&(e.style.opacity="1",e.style.visibility="visible")},t.hideRetry=function(){var e=document.querySelector("#"+this.player.id()+" .prism-button-retry");e&&(e.style.display="none")},t.destroyVideo=function(){this.player._drm&&this.player.destroy();var e=this.player.tag;e&&e.parentNode&&e.parentNode.removeChild(e)},t.detectPrototype=function(){var e=window,t=e.MediaSource;return t&&e.EventTarget&&t.__proto__.__proto__===e.EventTarget},t.detectNativeFn=function(){var e=window.MediaSource;return e&&!this.isNativeFn(e.prototype.addSourceBuffer)},t.isNativeFn=function(e){var t=RegExp("^".concat(Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),"$")),r=typeof e;return null!==e&&("object"==r||"function"==r)&&t.test(e)},t.detectDeperateVideo=function(){var e=this.player.tag;if(e)return-1!==(e.getAttribute("id")||"").indexOf("360")},e})()},{"../lang/index":18,"../lib/constants":22,"../player/base/event/eventtype":63}],10:[function(e,t,r){var i=e("../lib/oo"),n=e("../lang/index"),e=i.extend({init:function(e,t){this._player=e,this._options=e.options()}}),o=(e.prototype.handle=function(e){var t,r;this._options.autoPlayDelay&&(t=(t=this._options.autoPlayDelayDisplayText)||n.get("AutoPlayDelayDisplayText").replace("$$",this._options.autoPlayDelay),this._player.trigger("info_show",t),this._player.trigger("h5_loading_hide"),this._player.trigger("play_btn_hide"),(r=this)._timeHandler=setTimeout(function(){r._player.trigger("info_hide"),r._options.autoPlayDelay=0,e&&e()},1e3*this._options.autoPlayDelay),this._player.on("play",function(){o(r)}),this._player.on("pause",function(){o(r)}))},e.prototype.dispose=function(){o(this),this._player=null},function(e){e._timeHandler&&(clearTimeout(e._timeHandler),e._timeHandler=null)});t.exports=e},{"../lang/index":18,"../lib/oo":36}],11:[function(e,t,r){var i=e("../lib/event"),n=e("../lib/data"),o=e("../player/base/event/eventtype"),a=n.guid(),e={};function s(e){var t,r,i=this._options.keyFastForwardStep,n=this._options.isLive;switch(e&&e.keyCode){case 39:n||(e.preventDefault(),t=this.getDuration(),r=this.getCurrentTime()+i,this.seek(r=t<r?t:r),l.call(this,r),c.call(this,r));break;case 37:n||(e.preventDefault(),r=this.getCurrentTime()-i,this.seek(r=r<0?0:r),l.call(this,r),c.call(this,r));break;case 38:e.preventDefault(),this.getVolume()<1&&0<=this.getVolume()&&this.setVolume(Number((this.getVolume()+.1).toFixed(1)));break;case 40:e.preventDefault(),0<this.getVolume()&&this.getVolume()<=1&&this.setVolume(Number((this.getVolume()-.1).toFixed(1)));break;case 32:if(n)return;e.preventDefault(),this.tag.paused?this.play(!0):this.pause(!0)}}function l(e){this.trigger(o.Private.UpdateProgress,{targetTime:e})}function c(e){this.trigger(o.Private.UpdateCursorPosition,{targetTime:e})}e.init=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,i.on(window.document,"keydown",e))},e.dispose=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,i.off(window.document,"keydown",e))},t.exports=e},{"../lib/data":24,"../lib/event":26,"../player/base/event/eventtype":63}],12:[function(e,t,r){var a="undefined"==typeof Promise?e("es6-promise").Promise:Promise,s=e("../lib/constants").LicenseResultCode,l=e("../lib/io"),i=((e={})[s.ResourceIncorrect]="license resource init error",e[s.LicenseKeyInvalid]="invalid license key",e[s.DomainInvalid]="invalid domain",e[s.CertInvalid]="invalid cert content",e[s.NotFound]="license not found",e[s.Expired]="license expired",e),e=(()=>{function e(){}return e.getLicense=function(r,i,n){var o=this;return this.isWasmSupported()?i?r?this.instance?a.resolve(this.instance):new a(function(e,t){o.resolvers.push(e),o.rejecters.push(t),1===o.resolvers.length&&l.loadJS("https://g.alicdn.com/apsara-media-components/amcom-web-license/0.5.1/index.js",function(){window.loadLicenseSource().then(function(e){var t=new e({business_id:2,domain_identity:r,license_key:i,region:n});return t.update().then(function(){o.instance=t,o.resolvers.forEach(function(e){e(t)})}).catch(function(t){o.rejecters.forEach(function(e){e(s.CertInvalid+"#"+(t||"").trim().split(":")[0])})})}).catch(function(){o.rejecters.forEach(function(e){e(s.ResourceIncorrect)})}).finally(function(){o.resolvers=[],o.rejecters=[]})},function(){o.rejecters.forEach(function(e){e(s.ResourceIncorrect)})})}):a.reject(s.DomainInvalid):a.reject(s.LicenseKeyInvalid):a.reject(s.WasmNotSupported)},e.isWasmSupported=function(){return"object"==typeof WebAssembly&&"function"==typeof WebAssembly.instantiate},e.logError=function(e){i[e]&&console.error(i[e])},e})();e.instance=void 0,e.resolvers=[],e.rejecters=[],t.exports=e},{"../lib/constants":22,"../lib/io":33,"es6-promise":1}],13:[function(e,t,r){function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=typeof(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(i.key),i)}}var a=e("../lib/event"),s="box",l="content",c="top-left",u="top-right",p="bottom-left",d="bottom-right",h="percentage",e=(()=>{function e(e){this._container=void 0,this._video=void 0,this._logoList=[],this._resizeDone=!0,this._observer=void 0,this._observer=new f,this._handleVideoResize=this._handleVideoResize.bind(this),this._handleWindowResize=this._handleWindowResize.bind(this),this._setLogo(e.logo),this._setElements(e.container,e.video)}var t,r,i=e.prototype;return i.dispose=function(){this._observer.dispose(),this._observer=void 0,a.off(this._video,"resize",this._handleVideoResize),a.off(document,"fullscreenchange",this._handleWindowResize),this._logoList.forEach(function(e){e.logo&&e.logo.remove()}),this._logoList=[],this._container=void 0,this._video=void 0,this._resizeDone=!0},i._setElements=function(e,t){this._container=e,this._video=t,this.loadedMeta?this._logoList.forEach(this._setupLogo.bind(this)):a.on(t,"resize",this._handleVideoResize),this._observer.observe(this._container,this._handleWindowResize),a.on(document,"fullscreenchange",this._handleWindowResize)},i._handleVideoResize=function(){!this._video.videoWidth||this._logoList.some(function(e){return e.logo})||this._logoList.forEach(this._setupLogo.bind(this))},i._handleWindowResize=function(){var e=this;this._container&&this._resizeDone&&this.loadedMeta&&(this._resizeDone=!1,window.requestAnimationFrame(function(){e._resizeDone=!0,e._logoList.forEach(e._placeLogo.bind(e))}))},i._setLogo=function(e){this._logoList=e.map(this._defauleValue)},i._setupLogo=function(e){var t=this,r=this._createLogo(e);(e.logo=r).onload=function(){t._placeLogo(e)}},i._createLogo=function(e){var t=document.createElement("img");return t.setAttribute("class","prism-logo"),t.src=e.src,t},i._placeLogo=function(e){var t=e.logo,r=this._calcSize(e),i=(r.width&&t.setAttribute("width",r.width+"px"),r.height&&t.setAttribute("height",r.height+"px"),this._calcMatrix(e));t.style.position="absolute",Object.keys(i).forEach(function(e){t.style[e]=i[e]+"px"}),this._container.appendChild(e.logo)},i._calcSize=function(e){return this._getPixel(e)},i._calcMatrix=function(e){var t=this._getPosition(e),r=this._getPixel(e,{width:e.offsetX,height:e.offsetY});return Object.keys(t).forEach(function(e){switch(e){case"top":t[e]+=r.height;break;case"bottom":t[e]-=r.height;break;case"left":t[e]+=r.width;break;case"right":t[e]-=r.width}}),t},i._getPosition=function(e){var t=e.origin,e=e.position,r=0,i=0;switch(t===l&&(r=Math.abs(this.videoSize.height-this.contentSize.height)/2,i=Math.abs(this.videoSize.width-this.contentSize.width)/2),e){case c:return{top:0+r,left:0+i};case u:return{top:0+r,right:0+i};case p:return{bottom:0+r,left:0+i};case d:return{bottom:0+r,right:0+i};default:return{top:0,left:0}}},i._formalize=function(e,t){var r=1,r=e.width/e.height>t.width/t.height?t.width/e.width:t.height/e.height;return{width:e.width*r,height:e.height*r}},i._getPixel=function(e,t){var t=void 0===t?{}:t,r=t.width,t=t.height,i=e.unit,n=e.origin;return isNaN(r)&&(r=e.width),isNaN(t)&&(t=e.height),i===h?{width:(e=n===s?this.videoSize:this.contentSize).width*r/100,height:e.height*t/100}:{width:r,height:t}},i._defauleValue=function(e){return n({},e,{position:e.position||c,offsetX:e.offsetX||0,offsetY:e.offsetY||0,origin:e.origin||s,unit:e.unit||h})},i=e,(t=[{key:"videoSize",get:function(){return this._video?{width:this._video.offsetWidth,height:this._video.offsetHeight}:{}}},{key:"contentSize",get:function(){var e;return this._video?(e={width:this._video.videoWidth,height:this._video.videoHeight},{width:(e=this._formalize(e,this.videoSize)).width,height:e.height}):{}}},{key:"loadedMeta",get:function(){return!!this._video.videoWidth}}])&&o(i.prototype,t),r&&o(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(),f=(t.exports=e,(()=>{function e(){this._frame=void 0}var t=e.prototype;return t.observe=function(e,t){var r=document.createElement("iframe");return r.style.cssText="position:absolute;left:0;top:-100%;width:100%;height:100%;margin:1px 0 0;border:none;opacity:0;visibility:hidden;pointer-events:none;",r.onload=function(){r.contentWindow.onresize=function(){t(e)}},e.appendChild(r),this._frame=r},t.dispose=function(){this._frame&&(this._frame.contentWindow.onresize=null,this._frame.remove(),this._frame=void 0)},e})())},{"../lib/event":26}],14:[function(e,t,r){var i=e("../lib/event"),n=e("../player/base/event/eventtype");t.exports=(()=>{function e(){this.player=void 0,this.ratio=void 0,this.resize=void 0,this.target=void 0,this.resize=this._resize.bind(this)}var t=e.prototype;return t.autoResize=function(e,t,r){void 0===r&&(r="height"),"number"!=typeof e?console.warn("Parameter [ratio] should be a number, like 16/9"):(this.target=r,this.ratio=e,this.player=t,i.on(window,"resize",this.resize),this.resize())},t._resize=function(){var e,t,r;null!=(e=this.player.fullscreenService)&&e.isFullScreen||(e=null==(e=this.player)?void 0:e.el())&&("height"===this.target?(r=(t=e.offsetWidth)/this.ratio,e.style.height=r+"px"):(t=(r=e.offsetHeight)*this.ratio,e.style.width=t+"px"),null!=(e=this.player))&&e.trigger(n.Player.AutoResize,{width:t,height:r})},t.dispose=function(){i.off(window,"resize",this.resize),this.player=void 0,this.ratio=void 0,this.resize=void 0,this.target=void 0},e})()},{"../lib/event":26,"../player/base/event/eventtype":63}],15:[function(e,t,r){t.exports={OD:"OD",FD:"360p",LD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Speed:"Speed",Speed_05X_Text:"0.5X",Speed_1X_Text:"Normal",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Refresh_Text:"Refresh",Cancel:"Cancel",Mute:"Mute",Click_To_Unmute:"Click to unmute",Snapshot:"Snapshot",Detection_Text:"Diagnose",Play_DateTime:"Time",Default:"Default",Quality_Change_Fail_Switch_Text:"Cannot play, switch to ",Quality_Change_Text:"Switching to ",Quality_Change_Result:"Switched to ",Quality_The_Url:"The url",AutoPlayDelayDisplayText:"Play in $$ seconds",Error_Load_Abort_Text:"Data abort erro",Error_Network_Text:"Loading failed due to network error",Error_Decode_Text:"Decode error",Error_No_Decoder_Text:"Unsupported codec",Error_Server_Network_NotSupport_Text:"Network error or \xa0the format of video is unsupported",Error_Offline_Text:"The network is unreachable, please click Refresh",Error_Play_Text:"Error occured while playing",Error_Retry_Text:" Please close or refresh",Error_AuthKey_Text:"Authentication expired or the domain is not in white list",Error_H5_Not_Support_Text:"The format/codec of video is not supported",Error_Not_Support_M3U8_Text:"The format of m3u8 is not supported by this explorer",Error_Not_Support_MP4_Text:"The format of mp4\xa0is not supported by this explorer",Error_Not_Support_encrypt_Text:"To play the encrypted video,please set encryptType to 1",Error_Encrypt_Fetch_Failed_Text:"Failed to fetch the encrypted video",Error_Vod_URL_Is_Empty_Text:"The url is empty",Error_Vod_Fetch_Urls_Text:"Error occured when fetch urls from vod service\uff0cplease close or refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Error_Playauth_Decode_Text:"PlayAuth parse failed",Error_Vid_Not_Same_Text:"Cannot renew url due to vid changed",Error_Playauth_Expired_Text:"Playauth expired, please close or refresh",Error_MTS_Fetch_Urls_Text:"Error occurred while requesting mst server",Error_Load_M3U8_Failed_Text:"The m3u8 file loaded failed,possibly due to HTTPS certificate issues, cross-origin problems, or DNS resolution failures",Error_Load_M3U8_Timeout_Text:"Timeout error occored\xa0when the\xa0m3u8 file loaded",Error_Liveshift_M3U8_Not_Found_Text:"No more liveshift video avaliable",Error_M3U8_Decode_Text:"The m3u8 file decoded failed",Error_TX_Decode_Text:"Video decoded failed",Error_Manifest_Decode_Text:"Failed to parse manifest",Error_Waiting_Timeout_Text:"Buffering timeout,\xa0please close or refresh",Error_Invalidate_Source:"Video shoud be mp4\u3001mp3\u3001m3u8\u3001mpd or flv",Error_Empty_Source:"Video URL shouldn't be empty",Error_Vid_Empty_Source:"vid's video URL hasn't been fetched",Error_Mediaauth_Empty_Source:"mediaAuth's video URL hasn't been fetched",Error_Fetch_NotStream:"The vid has no stream to play",Error_Fetch_Media_Not_Found:"Data is not found",Error_Not_Found:"Url is not found",Error_Drm_License_Request_Failed:"DRM license request failed",Error_Drm_Not_Supported:"DRM in not supported",Error_Drm_Load:"DRM load error",Error_Drm_No_Sts:"STS(accessKeyId/accessKeySecret/securityToken) is required for DRM playback",Error_Drm_Params_Missing:"Parameters for drm.widevine/fairplay, etc. are missing",Error_Region_Block_Text:"This video is not available in your region",Error_SW_Conflict:"Service Worker conflict. Please try disabling browser extensions, restarting the browser, and closing other tabs.",Error_SW_Register_Failed:"Service Worker registration failed.",Error_SW_ScriptURL_Empty:"Please provide the swScriptURL parameter.",Error_SW_ScriptURL_Https:"The swScriptURL parameter must use an absolute address with https:// protocol.",Error_SW_ScriptURL_Scope:"The swScriptURL (subpath: @scope1@) and the current webpage (subpath: @scope2@) must be under the same subpath.",Error_SW_Version_Not_Match:"The version number of swScriptURL (@swVersion@) must match the player version (@playerVersion@).",Error_SW_ScriptURL_ILlegal:"Please provide a valid swScriptURL(@detail@).",Error_SW_Https_required:"Https is required when playing Vod's encription video",Tip_Err_Common:"please contact us for support, the error detail is:<br />",Tip_Err_Common_Short:"the error detail is:<br />",Tip_Drm_Request_Err:"The request failed with an error, please check the browser console to check whether it is caused by DNS, HTTPS certificates, or network problems. <br/> If the above tests are fine,",Tip_Drm_Secure_Context:"DRM can only be accessed under https, localhost, 127.0.0.1 web pages, and manifest and media segments must also use https.",Tip_Drm_Key_System_Unavailable:"1. This browser does not support Widevine or the current Widevine configuration<br/>2. The request that pops up in the browser was rejected by the user<br/>3. Please open the browser settings, look for the [Protected Content] setting and allow",Tip_Drm_File_Not_Allowed:"Do not use the file:// to open the file directly, you need to use a https:// to access the file",Tip_Drm_Playlist_Hierarchy:"HLS playlist level error, the main list needs to be master playlist",Tip_Drm_Info_Missing:"Please make sure the parameters of drm.widevine/fairplay you provided are valid",Tip_Drm_Unsupported:"Your browser does not currently support Widevine. If you are using Chrome, you can visit the URL chrome://components/ to locate the 'Widevine Content Decryption Module' and click on 'Update'. If this module is not present, the browser will be unable to play DRM-protected videos.",Tip_Err_Decode:"The decoding error refers to the current audio/video frame is not compatible with the browser, you can try the following methods: <br />1.chrome/edge browser open the chrome://flags, search for Hardware-accelerated video decode, select disabled<br />2.If the decoding error persists, please transcode the video to fix the problem frame",Tip_Err_Rts_Http_Failed:"The error indicates that the RTS streaming request encountered an HTTP error, which is usually related to HTTPS certificate, DNS resolution, or network connectivity issues. Due to browser restrictions on JavaScript, the player cannot obtain detailed error information. If you need further information, you can follow these steps:<br>Right-click on a blank area of the browser and select 'Inspect'.<br>2.In the newly opened interface, select 'Console'.<br>3.Check for any red error messages:<br>If you see 'SSL', it means that you have not correctly configured the HTTPS certificate for the streaming domain.<br>If you see 'NOT RESOLVED', it means that the DNS resolution for your domain has failed.<br>You can also use the <a style='color:white;text-decoration:underline;' href='https://live.console.aliyun.com/#/tool/url' target='_blank'>ApsaraVideo Live Diagnostic Tool</a> for self-diagnosis.",Tip_Err_Not_found:"For live streams, this might be due to the broadcast not starting yet, having ended, or being disrupted. For on-demand videos, it could indicate the video is unavailable.",Tip_Err_Blocked:"If you have a network proxy enabled, please try disabling it and then retrying.",Tip_Err_Splayer:"For best practices regarding playback of H.265/H.266 encoded videos, please refer to",Tip_Err_Splayer_Doc:" this document.",Tip_SW_Register:"1.Please access the webpage using HTTPS<br>2.Please ensure that the provided swScriptURL is a complete address starting with https:// and is accessible.",Tip_License_Required:"Starting 2024-12-01, the new version of the player must be configured with a license to use. The license for the basic functions of the player can be applied for free and is valid for 1 year. Please apply in advance to avoid any disruption in usage ",Tip_License_Params:"After completing the application, please refer to this document to pass the license information into the SDK ",Tip_License_Check:"Please ensure that the provided license key/domain parameters match exactly with what were obtained from the VOD console.",Tip_License_Domain:"The current website domain does not match with your licensed domain",Tip_License_Feature:"The feature is not authorized by your license:",Live_End:"Live has finished",Play_Before_Fullscreen:"Please play before fullscreen",Can_Not_Seekable:"Can not seek to this position",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Request_Block_Text:"This request is blocked, the video Url should be over https",Open_Html_By_File:"Html page should be on the server",Maybe_Cors_Error:"there is a network error, possibly due to HTTPS certificate issues, cross-origin problems, or DNS resolution failures",Speed_Switch_To:"Speed switch to ",Curent_Volume:"Current volume:",Volume_Mute:"set to mute",Volume_UnMute:"set to unmute",ShiftLiveTime_Error:"Live start time should not be greater than over time",Error_Not_Support_Format_On_Mobile:"flv\u3001rmtp can't be supported on mobile\uff0cplease use m3u8",Error_Not_Support_Mse_Flv:"Flv is not supported by this browser.",Error_Not_Support_Mse_Dash:"Dash is not supported by this browser.",Error_Not_Support_RTMP:"RTMP is not supported by this browser.",SessionId_Ticket_Invalid:"please assign value for sessionId and ticket properties",Http_Error:" An HTTP network request failed with an error, but not from the server.",Http_Timeout:"A network request timed out",DRM_License_Expired:"DRM license is expired, please refresh",Not_Support_DRM:"Browser doesn't support DRM",CC_Switch_To:"Subtitle switch to ",AudioTrack_Switch_To:"Audio tracks switch to ",Subtitle:"Subtitle/CC",AudioTrack:"Audio Track",Quality:"Quality",Auto:"Auto",Quality_Switch_To:"Quality switching to ",Fullscreen:"Full Screen",Setting:"Settings",Volume:"Volume",Play:"Play",Pause:"Pause",CloseSubtitle:"Close CC",OpenSubtitle:"Open CC",ExistFullScreen:"Exit Full Screen",Muted:"Muted",Retry:"Retry",SwitchToLive:"Return to live",iOSNotSupportVodEncription:"Versions of iOS below 17.1 doesn't support Vod's private encription video",iOSVodEncriptionBlacklist:"Please use Safari/Chrome browser to play Vod's private encription video",UseChromeForVodEncription:"This browser desn't suport Vod's encription video, please use latest Chrome/Edge",Record_Not_Allowed:"Recording or playing in seperated window is not allowed, please disable related plugins or switch browser.",License_No_Authorization:"Aliplayer without Authorization",License_Click_To_Apply:"Click to apply",License_Empty:"License params are required",License_Not_Found:"Unregistered license",License_Expired:"Expired license",License_License_Key_Invalid:"Invalid license key",License_Domain_Invalid:"Unexpected domain",License_Feature_Unauthorized:"Unauthorized feature",Rts_Err_Http_Signal_Error:"(RTS)http signal error",Rts_Err_Play_Failed:"(RTS)play faild error",Rts_Err_No_Data_For:"s received no data",Rts_Err_Browser_Not_Support:"(RTS)browser not support",Rts_Err_Not_Support_Webrtc:"(RTS)not support webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)browser version too low",Rts_Err_Not_Support_H264:"(RTS)not support h264",Rts_Err_Create_Offer_Error:"(RTS)create offer error",Rts_Err_Play_Url_Error:"(RTS)play url error",Rts_Err_Subscribe_Nonthing:"(RTS)subscribe nonthing",Rts_Err_Http_Request_Failed:"(RTS)HTTP request failed",Rts_Err_Http_Answer_Failed:"(RTS)answer failed",Rts_Err_PeerConnection_Unknown:"(RTS)Unknown PeerConnection",Splayer_Err_Env_Check:"(SP)This browser can't play this media",Splayer_Err_Coroutine:"(SP)Coroutine error",Splayer_Err_Decoder:"(SP)Decode error",Splayer_Err_Buffering:"(SP)Buffering error",Splayer_Err_Parser_Not_Found:"(SP)Media container is not supported"}},{}],16:[function(e,t,r){t.exports={OD:"OD",LD:"360p",FD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Forbidden_Text:"Internal information is strictly forbidden to outsider",Refresh:"Refresh",Diagnosis:"Diagnosis",Live_Finished:"Live has finished, thanks for watching",Play:"Play",Pause:"Pause",Snapshot:"Snapshot",Replay:"Replay",Live:"Live",Encrypt:"Encrypt",Sound:"Sound",Fullscreen:"Full Screen",Exist_Fullscreen:"Exit Full-screen",Resolution:"Resolution",Next:"Next Video",Brightness:"Brightness",Default:"Default",Contrast:"Contrast",Titles_Credits:"Titles\xa0and\xa0Credits",Skip_Titles:"Skip Titles",Skip_Credits:"Skip Credits",Not_Support_Out_Site:"The video is not supported for outside website, please watch it by TaoTV",Watch_Now:"Watch now",Network_Error:"Network is unreachable, please try to refresh",Video_Error:"Playing a video error,\xa0please try to refresh",Decode_Error:"Data decoding\xa0error",Live_Not_Start:"Live has not started, to be expected",Live_Loading:"Live information is loading,\xa0please try to refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Live_End:"Live has finished",Live_Abrot:"Signal aborted,\xa0please try to refresh",Corss_Domain_Error:"Please ensure your domain has obtained IPC license and combined CNAME, \r\n or to set\xa0\xa0cross-domain accessing available",Url_Timeout_Error:"The video url is timeout,\xa0please try to refresh",Connetction_Error:"Sorry\uff0cthe video cannot play because of connection error, please try to watch other videos",Fetch_MTS_Error:"Fetching video list failed, please ensure",Token_Expired_Error:"Requesting open api failed, please ensure token expired or not",Video_Lists_Empty_Error:"The video list is empty, please check the format of video",Encrypted_Failed_Error:"Fetching encrypted file failed, please check the permission of player",Fetch_Failed_Permission_Error:"Fetching video list failed, please check the permission of player",Invalidate_Param_Error:"No video url, please check the parameters",AutoPlayDelayDisplayText:"Play in $$ seconds",Fetch_MTS_NOT_NotStream_Error:"The vid has no stream to play",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Open_Html_By_File:"Html page should be on the server",Cant_Use_Flash_On_Mobile:"Mobile doesn't support flash player\uff0cplease use h5 player",Flash_Not_Ready:"Flash Player plugin hasn't been installed <a href='https://www.flash.cn/' target='_blank'>install plugin</a>, or check if disable Flash plugin"}},{}],17:[function(e,t,r){t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Forbidden_Text:"\u5185\u90e8\u4fe1\u606f\uff0c\u4e25\u7981\u5916\u4f20",Refresh:"\u5237\u65b0",Diagnosis:"\u8bca\u65ad",Live_Finished:"\u76f4\u64ad\u5df2\u7ed3\u675f,\u8c22\u8c22\u89c2\u770b",Play:"\u64ad\u653e",Pause:"\u6682\u505c",Snapshot:"\u622a\u56fe",Replay:"\u91cd\u64ad",Live:"\u76f4\u64ad",Encrypt:"\u52a0\u5bc6",Sound:"\u58f0\u97f3",Fullscreen:"\u5168\u5c4f",Exist_Fullscreen:"\u9000\u51fa\u5168\u5c4f",Resolution:"\u6e05\u6670\u5ea6",Next:"\u4e0b\u4e00\u96c6",Brightness:"\u4eae\u5ea6",Default:"\u9ed8\u8ba4",Contrast:"\u5bf9\u6bd4\u5ea6",Titles_Credits:"\u7247\u5934\u7247\u5c3e",Skip_Titles:"\u8df3\u8fc7\u7247\u5934",Skip_Credits:"\u8df3\u8fc7\u7247\u5c3e",Not_Support_Out_Site:"\u8be5\u89c6\u9891\u6682\u4e0d\u652f\u6301\u7ad9\u5916\u64ad\u653e\uff0c\u8bf7\u5230\u6dd8TV\u89c2\u770b",Watch_Now:"\u7acb\u5373\u89c2\u770b",Network_Error:"\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u5c1d\u8bd5\u68c0\u67e5\u7f51\u7edc\u540e\u5237\u65b0\u8bd5\u8bd5",Video_Error:"\u89c6\u9891\u64ad\u653e\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Decode_Error:"\u64ad\u653e\u6570\u636e\u89e3\u7801\u9519\u8bef",Live_Not_Start:"\u4eb2\uff0c\u76f4\u64ad\u8fd8\u672a\u5f00\u59cb\u54e6\uff0c\u656c\u8bf7\u671f\u5f85",Live_Loading:"\u76f4\u64ad\u4fe1\u606f\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Live_Abrot:"\u5f53\u524d\u76f4\u64ad\u4fe1\u53f7\u4e2d\u65ad\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Corss_Domain_Error:"\u8bf7\u786e\u8ba4\u60a8\u7684\u57df\u540d\u5df2\u5b8c\u6210\u5907\u6848\u548cCNAME\u7ed1\u5b9a\uff0c\r\n\u5e76\u5904\u4e8e\u542f\u7528\u72b6\u6001\uff0c\u6216\u8d44\u6e90\u5141\u8bb8\u8de8\u8d8a\u8bbf\u95ee",Url_Timeout_Error:"\u60a8\u6240\u89c2\u770b\u7684\u89c6\u9891\u5730\u5740\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Connetction_Error:"\u62b1\u6b49,\u8be5\u89c6\u9891\u7531\u4e8e\u8fde\u63a5\u9519\u8bef\u6682\u65f6\u4e0d\u80fd\u64ad\u653e,\u8bf7\u89c2\u770b\u5176\u5b83\u89c6\u9891",Fetch_MTS_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4",Token_Expired_Error:"\u8bf7\u6c42\u63a5\u53e3\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4Token\u662f\u5426\u8fc7\u671f",Video_Lists_Empty_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u4e3a\u7a7a\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6570\u636e\u4e0e\u683c\u5f0f",Encrypted_Failed_Error:"\u83b7\u53d6\u89c6\u9891\u52a0\u5bc6\u79d8\u94a5\u9519\u8bef\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Fetch_Failed_Permission_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Invalidate_Param_Error:"\u65e0\u8f93\u5165\u89c6\u9891\uff0c\u8bf7\u786e\u8ba4\u8f93\u5165\u53c2\u6570",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Fetch_MTS_NOT_NotStream_Error:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Cant_Use_Flash_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301Flash\u64ad\u653e\u5668\uff0c\u8bf7\u4f7f\u7528h5\u64ad\u653e\u5668",Flash_Not_Ready:"Flash Player\u63d2\u4ef6\u672a\u5b89\u88c5<a href='https://www.flash.cn/' target='_blank'>\u5b89\u88c5\u63d2\u4ef6</a>\uff0c\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u8bf7\u68c0\u67e5\u662f\u5426\u88ab\u7981\u7528"}},{}],18:[function(a,e,t){function o(e,t,r){var i=d(e),n="",o=p(),n="flash"==e?"en-us"==o?a("./flash/en-us"):"zh-cn"==o?a("./flash/zh-cn"):t[o]:"en-us"==o?a("./en-us"):"zh-cn"==o?a("./zh-cn"):t[o];r&&(n=Object.assign({},n,r[o])),s.set(i,JSON.stringify(n)),u(e,n),r&&a("../lib/constants").updateByLanguage()}var r=a("../config"),s=a("../lib/storage"),i=(a("../lib/io"),"aliplayer_lang_data"),l="aliplayer_lang",c=function(){var e;return void 0!==window[l]&&window[l]||(e=(e=(navigator.language||navigator.browserLanguage).toLowerCase())&&-1<e.indexOf("zh")?"zh-cn":"en-us",window[l]=e),window[l]},u=function(e,t){e=d(e);window[e]=t},p=function(){return c()},d=function(e){var t=p();return i+"_"+(e=e||"h5")+"_"+r.h5Version.replace(/\./g,"_")+"_"+t};e.exports.setCurrentLanguage=function(e,t,r,i){var n=window[l];if(!("en-us"==(e=void 0!==e&&e?e:c())||"zh-cn"==e||r&&r[e]))throw new Error("There is not language resource for "+e+", please specify the language resource by languageTexts property");window[l]=e,o(t,r,i),e!=n&&a("../lib/constants").updateByLanguage()},e.exports.getCurrentLanguage=c,e.exports.getLanguageData=function(e,t){e=d(e);return window[e]},e.exports.load=o,e.exports.get=function(e,t,r){t=d(t=t||"h5"),t=window[t];if(t){var i=t[e];if(r)for(var n in r)i=i.replace(new RegExp("@"+n+"@","g"),r[n]);return i}}},{"../config":7,"../lib/constants":22,"../lib/io":33,"../lib/storage":38,"./en-us":15,"./flash/en-us":16,"./flash/zh-cn":17,"./zh-cn":19}],19:[function(e,t,r){t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Speed:"\u500d\u901f",Speed_05X_Text:"0.5X",Speed_1X_Text:"\u6b63\u5e38",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Quality_Change_Fail_Switch_Text:"\u4e0d\u80fd\u64ad\u653e\uff0c\u5207\u6362\u4e3a",Quality_Change_Text:"\u6b63\u5728\u4e3a\u60a8\u5207\u6362\u5230 ",Quality_Change_Result:"\u5df2\u5207\u6362\u5230 ",Quality_The_Url:"\u6b64\u5730\u5740",Refresh_Text:"\u5237\u65b0",Detection_Text:"\u67e5\u770b\u5efa\u8bae",Cancel:"\u53d6\u6d88",Mute:"\u9759\u97f3",Click_To_Unmute:"\u70b9\u51fb\u53d6\u6d88\u9759\u97f3",Snapshot:"\u622a\u56fe",Play_DateTime:"\u64ad\u653e\u65f6\u95f4",Default:"\u9ed8\u8ba4",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Error_Load_Abort_Text:"\u83b7\u53d6\u6570\u636e\u8fc7\u7a0b\u88ab\u4e2d\u6b62",Error_Network_Text:"\u7f51\u7edc\u9519\u8bef\u52a0\u8f7d\u6570\u636e\u5931\u8d25",Error_Decode_Text:"\u89e3\u7801\u9519\u8bef",Error_No_Decoder_Text:"\u4e0d\u652f\u6301\u6b64\u7f16\u7801\u683c\u5f0f",Error_Server_Network_NotSupport_Text:"\u670d\u52a1\u5668\u3001\u7f51\u7edc\u9519\u8bef\u6216\u683c\u5f0f\u4e0d\u652f\u6301",Error_Offline_Text:"\u7f51\u7edc\u4e0d\u53ef\u7528\uff0c\u8bf7\u786e\u5b9a",Error_Play_Text:"\u64ad\u653e\u51fa\u9519\u5566",Error_Retry_Text:"\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_AuthKey_Text:"\u53ef\u80fd\u9274\u6743\u8fc7\u671f\u3001\u57df\u540d\u4e0d\u5728\u767d\u540d\u5355\u6216\u8bf7\u6c42\u88ab\u62e6\u622a",Error_H5_Not_Support_Text:"\u4e0d\u652f\u6301\u6b64\u683c\u5f0f\u7684\u89c6\u9891",Error_Not_Support_M3U8_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301m3u8\u89c6\u9891\u64ad\u653e",Error_Not_Support_MP4_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301mp4\u89c6\u9891\u64ad\u653e",Error_Not_Support_encrypt_Text:"\u64ad\u653e\u79c1\u6709\u52a0\u5bc6\u89c6\u9891\uff0c\u8bf7\u8bbe\u7f6e\u5c5e\u6027encryptType\u4e3a1",Error_Encrypt_Fetch_Failed_Text:"\u8bf7\u6c42\u52a0\u5bc6\u5730\u5740\u5931\u8d25",Error_Vod_URL_Is_Empty_Text:"\u83b7\u53d6\u64ad\u653e\u5730\u5740\u4e3a\u7a7a",Error_Vod_Fetch_Urls_Text:"\u70b9\u64ad\u63a5\u53e3\u5f02\u5e38\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Playauth_Decode_Text:"playauth\u89e3\u6790\u9519\u8bef",Error_Vid_Not_Same_Text:"\u4e0d\u80fd\u66f4\u65b0\u5730\u5740\uff0cvid\u548c\u64ad\u653e\u4e2d\u7684\u4e0d\u4e00\u81f4",Error_Playauth_Expired_Text:"\u51ed\u8bc1\u5df2\u8fc7\u671f\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_MTS_Fetch_Urls_Text:"MTS\u83b7\u53d6\u53d6\u6570\u5931\u8d25",Error_Load_M3U8_Failed_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u5931\u8d25,\u53ef\u80fd\u662fhttps\u8bc1\u4e66\u3001\u8de8\u57df\u95ee\u9898\u6216DNS\u89e3\u6790\u5931\u8d25",Error_Load_M3U8_Timeout_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u8d85\u65f6",Error_Liveshift_M3U8_Not_Found_Text:"\u6ca1\u6709\u66f4\u591a\u65f6\u79fb\u89c6\u9891\u4e86",Error_M3U8_Decode_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u89e3\u6790\u5931\u8d25",Error_TX_Decode_Text:"\u89e3\u6790\u6570\u636e\u51fa\u9519",Error_Manifest_Decode_Text:"Manifest\u89e3\u6790\u51fa\u9519",Error_Waiting_Timeout_Text:"\u7f13\u51b2\u6570\u636e\u8d85\u65f6\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Invalidate_Source:"\u64ad\u653e\u5730\u5740\u683c\u5f0f\u9700\u8981\u4e3amp4\u3001mp3\u3001m3u8\u3001mpd\u6216flv",Error_Empty_Source:"\u64ad\u653e\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a",Error_Vid_Empty_Source:"vid\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Mediaauth_Empty_Source:"mediaAuth\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Fetch_NotStream:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Error_Fetch_Media_Not_Found:"\u6570\u636e\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664",Error_Not_Found:"\u64ad\u653e\u5730\u5740\u4e0d\u5b58\u5728",Error_Drm_License_Request_Failed:"DRM License \u8bf7\u6c42\u5931\u8d25",Error_Drm_Not_Supported:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 DRM \u64ad\u653e",Error_Drm_Load:"DRM \u64ad\u653e\u9519\u8bef",Error_Drm_No_Sts:"DRM \u64ad\u653e\u9700\u8981\u4f7f\u7528STS(accessKeyId/accessKeySecret/securityToken)",Error_Drm_Params_Missing:"\u7f3a\u5c11drm.widevine/fairplay\u7b49\u53c2\u6570",Error_Region_Block_Text:"\u60a8\u6240\u5728\u7684\u5730\u533a\u65e0\u6cd5\u89c2\u770b\u8be5\u89c6\u9891",Error_SW_Conflict:"ServiceWorker\u51b2\u7a81\uff0c\u8bf7\u5c1d\u8bd5\u7981\u7528\u6d4f\u89c8\u5668\u63d2\u4ef6\u3001\u91cd\u542f\u6d4f\u89c8\u5668\u5e76\u5173\u95ed\u5176\u4ed6\u7f51\u9875",Error_SW_Register_Failed:"Service Worker\u6ce8\u518c\u5931\u8d25",Error_SW_ScriptURL_Empty:"\u8bf7\u4f20\u5165 swScriptURL \u53c2\u6570",Error_SW_ScriptURL_Https:"swScriptURL\u53c2\u6570\u8bf7\u4f7f\u7528 https:// \u534f\u8bae\u7684\u7edd\u5bf9\u5730\u5740",Error_SW_ScriptURL_Scope:"swScriptURL(\u5b50\u8def\u5f84:@scope1@)\u548c\u5f53\u524d\u7f51\u9875(\u5b50\u8def\u5f84:@scope2@)\u5fc5\u987b\u5728\u540c\u4e00\u4e2a\u5b50\u8def\u5f84\u4e0b",Error_SW_Version_Not_Match:"swScriptURL\u7684\u7248\u672c\u53f7(@swVersion@)\u5fc5\u987b\u548c\u64ad\u653e\u5668\u7248\u672c(@playerVersion@)\u53f7\u4e00\u81f4",Error_SW_ScriptURL_ILlegal:"\u8bf7\u4f20\u5165\u5408\u6cd5\u7684swScriptURL(@detail@)",Error_SW_Https_required:"\u79c1\u6709\u52a0\u5bc6\u64ad\u653e\u9700\u8981\u4f7f\u7528 https \u73af\u5883",Tip_Err_Common:"\u60a8\u53ef\u8054\u7cfb\u552e\u540e\u652f\u6301\uff0c\u9519\u8bef\u8be6\u60c5:<br />",Tip_Err_Common_Short:"\u9519\u8bef\u8be6\u60c5:<br />",Tip_Drm_Request_Err:"\u8bf7\u6c42\u51fa\u9519\uff0c\u8bf7\u5148\u67e5\u770b\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\uff0c\u68c0\u67e5\u662f\u5426\u7531\u57df\u540d\u89e3\u6790\u3001https\u8bc1\u4e66\u3001\u6216\u7f51\u7edc\u95ee\u9898\u5f15\u8d77\u3002<br />\u82e5\u4ee5\u4e0a\u68c0\u67e5\u6ca1\u95ee\u9898\uff0c",Tip_Drm_Secure_Context:"DRM\u4ec5\u53ef\u4ee5\u5728https\u3001localhost\u3001127.0.0.1\u7f51\u9875\u4e0b\u8bbf\u95ee\uff0c\u540c\u65f6manifest\u548c\u5207\u7247\u4e5f\u5fc5\u987b\u4f7f\u7528https\u3002",Tip_Drm_Key_System_Unavailable:"1.\u6b64\u6d4f\u89c8\u5668\u4e0d\u652f\u6301Widevine\u6216\u8005\u5f53\u524d\u7684Widevine\u914d\u7f6e<br />2.\u6d4f\u89c8\u5668\u5f39\u51fa\u7684\u8bf7\u6c42\u88ab\u7528\u6237\u62d2\u7edd\u4e86<br />3.\u8bf7\u6253\u5f00\u6d4f\u89c8\u5668\u8bbe\u7f6e\uff0c\u67e5\u627e\u5173\u4e8e\u3010\u53d7\u4fdd\u62a4\u7684\u5185\u5bb9\u3011\u8bbe\u7f6e\u5e76\u5141\u8bb8",Tip_Drm_File_Not_Allowed:"\u8bf7\u4e0d\u8981\u4f7f\u7528file://\u76f4\u63a5\u6253\u5f00\u6587\u4ef6\uff0c\u9700\u8981\u4f7f\u7528https://\u8bbf\u95ee\u6587\u4ef6",Tip_Drm_Playlist_Hierarchy:"HLS\u64ad\u653e\u5217\u8868\u5c42\u7ea7\u9519\u8bef\uff0c\u4e3b\u5217\u8868\u9700\u8981\u662f master playlist",Tip_Drm_Info_Missing:"\u8bf7\u68c0\u67e5\u4f20\u5165\u7684drm.widevine/fairplay\u7b49\u53c2\u6570\u662f\u5426\u6709\u6548",Tip_Drm_Unsupported:"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 Widevine\uff0c\u5982\u679c\u662f Chrome\uff0c\u53ef\u4ee5\u8bbf\u95ee chrome://components/\uff0c\u67e5\u627e Widevine Content Decryption Module\uff0c\u5e76\u70b9\u51fb\u66f4\u65b0\u3002\u5982\u679c\u6ca1\u6709\u6b64\u6a21\u5757\uff0c\u5219\u8be5\u6d4f\u89c8\u5668\u65e0\u6cd5\u64ad\u653e DRM \u89c6\u9891\u3002",Tip_Err_Decode:"\u89e3\u7801\u9519\u8bef\u6307\u7684\u662f\u5f53\u524d\u97f3/\u89c6\u9891\u5e27\u4e0e\u6d4f\u89c8\u5668\u4e0d\u517c\u5bb9\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u5f0f\uff1a<br />1.chrome/edge \u6d4f\u89c8\u5668\u6253\u5f00chrome://flags\uff0c\u641c\u7d22 Hardware-accelerated video decode\uff0c\u9009\u62e9 disabled<br />2.\u5982\u679c\u89e3\u7801\u9519\u8bef\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u5bf9\u89c6\u9891\u8fdb\u884c\u8f6c\u7801\u5904\u7406\uff0c\u4ee5\u4fee\u590d\u95ee\u9898\u5e27<br />3.firefox\u6d4f\u89c8\u5668\u8bf7\u6253\u5f00about:support\uff0c\u4e0b\u62c9\u627e\u5230\u3010\u89e3\u7801\u5668\u652f\u6301\u4fe1\u606f\u3011\uff0c\u5982\u679c\u6ca1\u6709AAC\u5b57\u6837\uff0c\u4ee3\u8868\u4e0d\u652f\u6301\u97f3\u9891\u89e3\u7801\uff0c\u8bf7\u66f4\u6362\u6d4f\u89c8\u5668",Tip_Err_Rts_Http_Failed:"\u8be5\u9519\u8bef\u6307\u7684\u662fRTS\u62c9\u6d41\u8bf7\u6c42\u9047\u5230\u4e86\u4e00\u4e2ahttp\u9519\u8bef\uff0c\u4e00\u822c\u6765\u8bf4\u662fhttps\u8bc1\u4e66\u3001DNS\u89e3\u6790\u6216\u8005\u7f51\u7edc\u8fde\u901a\u6027\u95ee\u9898\uff0c\u7531\u4e8e\u6d4f\u89c8\u5668\u5bf9JS\u7684\u9650\u5236\uff0c\u64ad\u653e\u5668\u65e0\u6cd5\u53d6\u5f97\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u9700\u8981\u8fdb\u4e00\u6b65\u6392\u67e5\uff0c\u60a8\u53ef\u6309\u7167\u4ee5\u4e0b\u64cd\u4f5c\uff1a<br>1.\u53f3\u952e\u6d4f\u89c8\u5668\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u3010\u68c0\u67e5\u30112.\u5728\u65b0\u6253\u5f00\u7684\u754c\u9762\u4e2d\u9009\u62e9\u3010\u63a7\u5236\u53f0\u30113.\u67e5\u770b\u7ea2\u8272\u62a5\u9519\uff1a<br>\u5982\u679c\u6709SSL\u5b57\u6837\uff0c\u5219\u4ee3\u8868\u60a8\u6ca1\u6709\u4e3a\u62c9\u6d41\u57df\u540d\u6b63\u786e\u5730\u914d\u7f6ehttps\u8bc1\u4e66<br>\u5982\u679c\u6709NOT RESOLVED\u5b57\u6837\uff0c\u5219\u4ee3\u8868\u60a8\u7684\u57df\u540dDNS\u89e3\u6790\u5931\u8d25<br>\u60a8\u4e5f\u4f7f\u7528<a style='color:white;text-decoration:underline;' href='https://live.console.aliyun.com/#/tool/url' target='_blank'>\u963f\u91cc\u4e91\u76f4\u64ad\u8bca\u65ad\u5de5\u5177</a>\u8fdb\u884c\u81ea\u52a9\u6392\u67e5",Tip_Err_Not_found:"\u5982\u679c\u662f\u76f4\u64ad\uff0c\u53ef\u80fd\u662f\u76f4\u64ad\u672a\u5f00\u59cb/\u5df2\u505c\u6b62/\u5df2\u65ad\u6d41\uff1b\u5982\u679c\u662f\u70b9\u64ad\uff0c\u53ef\u80fd\u662f\u89c6\u9891\u4e0d\u5b58\u5728\u3002",Tip_Err_Blocked:"\u5982\u679c\u60a8\u5f00\u542f\u4e86\u7f51\u7edc\u4ee3\u7406\uff0c\u8bf7\u5173\u95ed\u540e\u91cd\u8bd5\u3002",Tip_Err_Splayer:"\u5173\u4e8e H.265/H.266 \u64ad\u653e\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u8bf7\u53c2\u8003",Tip_Err_Splayer_Doc:"\u6b64\u6587\u6863\u3002",Tip_SW_Register:"1.\u8bf7\u4f7f\u7528https\u8bbf\u95ee\u7f51\u9875<br>2.\u8bf7\u786e\u4fdd\u4f20\u5165\u7684swScriptURL\u662f\u4ee5https://\u5f00\u5934\u7684\u5b8c\u6574\u5730\u5740\uff0c\u4e14\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee",Tip_License_Required:"2024\u5e7412\u67081\u65e5\u8d77\uff0c\u65b0\u7248\u672c\u64ad\u653e\u5668\u9700\u8981\u914d\u7f6eLicense\u624d\u53ef\u4ee5\u4f7f\u7528\uff0c\u64ad\u653e\u5668\u57fa\u7840\u529f\u80fdLicense\u514d\u8d39\u7533\u8bf7\uff0c\u6709\u6548\u671f 1 \u5e74\uff0c\u8bf7\u63d0\u524d\u7533\u8bf7\u4ee5\u907f\u514d\u65e0\u6cd5\u4f7f\u7528",Tip_License_Params:"\u7533\u8bf7\u5b8c\u6210\u540e\uff0c\u8bf7\u53c2\u8003\u6b64\u6587\u6863\u5c06License\u4fe1\u606f\u4f20\u5165SDK",Tip_License_Check:"\u8bf7\u786e\u4fdd\u4f20\u5165\u7684 license key/domain \u53c2\u6570\u548c\u70b9\u64ad\u63a7\u5236\u53f0\u4e0a\u83b7\u53d6\u7684\u5b8c\u5168\u4e00\u81f4",Tip_License_Domain:"\u5f53\u524d\u7f51\u9875\u57df\u540d\u548c\u60a8\u7684 license \u6388\u6743\u57df\u540d\u4e0d\u4e00\u81f4",Tip_License_Feature:"\u60a8\u7684license\u672a\u6388\u6743\u529f\u80fd\uff1a",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Play_Before_Fullscreen:"\u64ad\u653e\u540e\u518d\u5168\u5c4f",Can_Not_Seekable:"\u4e0d\u80fdseek\u5230\u8fd9\u91cc",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Request_Block_Text:"\u6d4f\u89c8\u5668\u5b89\u5168\u7b56\u7565\u89c6\u9891\u5730\u5740\u4e0d\u80fd\u4e3ahttp\u534f\u8bae\uff0c\u4e0e\u7f51\u7ad9https\u534f\u8bae\u4e0d\u4e00\u81f4",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Maybe_Cors_Error:"\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\uff0c\u53ef\u80fd\u662fhttps\u8bc1\u4e66\u3001\u8de8\u57df\u95ee\u9898\u6216DNS\u89e3\u6790\u5931\u8d25",Speed_Switch_To:"\u500d\u901f\u5207\u6362\u5230 ",Curent_Volume:"\u5f53\u524d\u97f3\u91cf\uff1a",Volume_Mute:"\u8bbe\u7f6e\u4e3a\u9759\u97f3",Volume_UnMute:"\u8bbe\u7f6e\u4e3a\u975e\u9759\u97f3",ShiftLiveTime_Error:"\u76f4\u64ad\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u76f4\u64ad\u7ed3\u675f\u65f6\u95f4",Error_Not_Support_Format_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301flv\u3001rmtp\u89c6\u9891\uff0c\u8bf7\u4f7f\u7528m3u8",Error_Not_Support_Mse_Flv:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 flv \u89c6\u9891",Error_Not_Support_Mse_Dash:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 dash \u89c6\u9891",Error_Not_Support_RTMP:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 rtmp \u89c6\u9891",SessionId_Ticket_Invalid:"DRM\u89c6\u9891\u64ad\u653e\uff0csessionId\u548cticket\u5c5e\u6027\u4e0d\u80fd\u4e3a\u7a7a",Http_Error:"Http\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25",Http_Timeout:"http\u8bf7\u6c42\u8d85\u65f6",DRM_License_Expired:"DRM license\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0",Not_Support_DRM:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301DRM\u89c6\u9891\u7684\u64ad\u653e\u6216\u672a\u53d7\u5230\u7528\u6237\u8bb8\u53ef",CC_Switch_To:"\u5b57\u5e55\u5207\u6362\u5230 ",AudioTrack_Switch_To:"\u97f3\u8f68\u5207\u6362\u5230 ",Subtitle:"\u5b57\u5e55",AudioTrack:"\u97f3\u8f68",Quality:"\u6e05\u6670\u5ea6",Auto:"\u81ea\u52a8",Quality_Switch_To:"\u6b63\u5728\u5207\u6362\u6e05\u6670\u5ea6\u81f3 ",Fullscreen:"\u5168\u5c4f",Setting:"\u8bbe\u7f6e",Volume:"\u97f3\u91cf",Play:"\u64ad\u653e",Pause:"\u6682\u505c",CloseSubtitle:"\u5173\u95ed\u5b57\u5e55",OpenSubtitle:"\u6253\u5f00\u5b57\u5e55",ExistFullScreen:"\u9000\u51fa\u5168\u5c4f",Muted:"\u9759\u97f3",Retry:"\u91cd\u8bd5",SwitchToLive:"\u8fd4\u56de\u76f4\u64ad",iOSNotSupportVodEncription:"iOS17.1\u4ee5\u4e0b\u4e0d\u652f\u6301\u963f\u91cc\u4e91\u89c6\u9891\u79c1\u6709\u52a0\u5bc6\u64ad\u653e",iOSVodEncriptionBlacklist:"\u8bf7\u4f7f\u7528Safari/Chrome\u6d4f\u89c8\u5668\u64ad\u653e\u52a0\u5bc6\u89c6\u9891",UseChromeForVodEncription:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u70b9\u64ad\u52a0\u5bc6\u64ad\u653e\uff0c\u8bf7\u4f7f\u7528\u6700\u65b0Chrome/Edge\u6d4f\u89c8\u5668",Record_Not_Allowed:"\u7981\u6b62\u5f55\u5c4f\u6216\u5c0f\u7a97\u53e3\u64ad\u653e\uff0c\u8bf7\u5173\u95ed\u63d2\u4ef6\u6216\u66f4\u6362\u6d4f\u89c8\u5668",License_No_Authorization:"\u64ad\u653e\u5668SDK\u672a\u6fc0\u6d3b",License_Click_To_Apply:"\u70b9\u51fb\u7533\u8bf7License",License_Empty:"\u672a\u914d\u7f6eLicense",License_Not_Found:"License\u672a\u6ce8\u518c",License_Expired:"License\u5df2\u8fc7\u671f",License_License_Key_Invalid:"LicenseKey\u65e0\u6548",License_Domain_Invalid:"\u57df\u540d\u4e0d\u5339\u914d",License_Feature_Unauthorized:"\u529f\u80fd\u672a\u6388\u6743",Rts_Err_Http_Signal_Error:"(RTS)\u4fe1\u4ee4\u8bf7\u6c42\u5931\u8d25",Rts_Err_Play_Failed:"(RTS)\u64ad\u653e\u5931\u8d25",Rts_Err_No_Data_For:"\u79d2\u6ca1\u6709\u6570\u636e",Rts_Err_Browser_Not_Support:"(RTS)\u4e0d\u652f\u6301\u6b64\u6d4f\u89c8\u5668",Rts_Err_Not_Support_Webrtc:"(RTS)\u4e0d\u652f\u6301webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)\u6d4f\u89c8\u5668\u7248\u672c\u8fc7\u4f4e",Rts_Err_Not_Support_H264:"(RTS)\u4e0d\u652f\u6301H264",Rts_Err_Create_Offer_Error:"(RTS)create offer\u5931\u8d25",Rts_Err_Play_Url_Error:"(RTS)\u64ad\u653eurl\u534f\u8bae\u9519\u8bef",Rts_Err_Subscribe_Nonthing:"(RTS)\u53c2\u6570\u8bbe\u7f6e\u9519\u8bef",Rts_Err_Http_Request_Failed:"(RTS)HTTP\u8bf7\u6c42\u5931\u8d25",Rts_Err_Http_Answer_Failed:"(RTS)answer\u5931\u8d25",Rts_Err_PeerConnection_Unknown:"(RTS)PeerConnection\u5f02\u5e38",Splayer_Err_Env_Check:"(SP)\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u64ad\u653e\u8be5\u89c6\u9891",Splayer_Err_Coroutine:"(SP)Coroutine \u9519\u8bef",Splayer_Err_Decode:"(SP)\u89e3\u7801\u9519\u8bef",Splayer_Err_Buffering:"(SP)\u7f13\u51b2\u533a\u9519\u8bef",Splayer_Err_Parser_Not_Found:"(SP)\u4e0d\u652f\u6301\u7684\u5a92\u4f53\u5bb9\u5668"}},{}],20:[function(e,t,r){var n=e("./videox-muxer.min");function o(){}t.exports=function(e,t,r){void 0===t&&(t=o),void 0===r&&(r=o);var i=new n.Demuxer({progressive:!0});i.on("loadedmetadata",function(e){void 0===e&&(e={}),i.suspend(),i.destroy(),i=null,t(e)}),i.on("error",function(e){r(e),i.suspend(),i.destroy(),i=null}),i.load(e)}},{"./videox-muxer.min":42}],21:[function(e,t,r){var i=e("./oo"),n=e("../player/base/event/eventtype");t.exports.stopPropagation=function(e){window.event?window.event.cancelBubble=!0:e.stopPropagation()},t.exports.register=function(e){e.util={stopPropagation:t.exports.stopPropagation},e.Component=i.extend,e.EventType=n.Player}},{"../player/base/event/eventtype":63,"./oo":36}],22:[function(e,t,r){function i(){t.exports.VideoErrorCodeText={1:n.get("Error_Load_Abort_Text"),2:n.get("Error_Network_Text"),3:n.get("Error_Decode_Text"),4:n.get("Error_Server_Network_NotSupport_Text")},t.exports.VideoLevels={0:n.get("OD"),640:n.get("FD"),960:n.get("LD"),1280:n.get("SD"),1920:n.get("HD"),2580:n.get("2K"),3840:n.get("4K")},t.exports.QualityLevels={OD:n.get("OD"),LD:n.get("LD"),FD:n.get("FD"),SD:n.get("SD"),HD:n.get("HD"),"2K":n.get("2K"),"4K":n.get("4K"),XLD:n.get("XLD"),FHD:n.get("FHD"),SQ:n.get("SQ"),HQ:n.get("HQ")},t.exports.SpeedLevels=[{key:.5,text:n.get("Speed_05X_Text")},{key:1,text:n.get("Speed_1X_Text")},{key:1.25,text:n.get("Speed_125X_Text")},{key:1.5,text:n.get("Speed_15X_Text")},{key:2,text:n.get("Speed_2X_Text")}]}var n=e("../lang/index");t.exports.LOAD_START="loadstart",t.exports.LOADED_METADATA="loadedmetadata",t.exports.LOADED_DATA="loadeddata",t.exports.PROGRESS="progress",t.exports.CAN_PLAY="canplay",t.exports.CAN_PLYA_THROUGH="canplaythrough",t.exports.PLAY="play",t.exports.PAUSE="pause",t.exports.ENDED="ended",t.exports.PLAYING="playing",t.exports.WAITING="waiting",t.exports.ERROR="error",t.exports.SUSPEND="suspend",t.exports.STALLED="stalled",t.exports.DASH_QUALITY_PROTOCOL="quality_index://",t.exports.AuthKeyExpiredEvent="authkeyexpired",t.exports.USER_EVENT_NAME="__user_events__",t.exports.PLAYER_SCOPE="__aliplayerMessage__",t.exports.SW_MSG_EVT={SETUP:"setup",SETUP_ACK:"setupAck",DISPOSE:"dispose",ENC_SEGMENT:"encSegment",DEC_SEGMENT:"decSegment",ABORT_SEGMENT:"abortSegment"},t.exports.DM_MSG_EVT={SETUP:"setup",DEMUX:"demux",RESULT:"result",FLUSH:"flush",DISPOSE:"dispose",DISPOSED:"disposed",ERROR:"error"},t.exports.PLAYER_SDK_CODE=9203,t.exports.FEATURE_ID_H265=30001,t.exports.FEATURE_ID_H266=30002,t.exports.LicenseResultCode={Success:0,NotFound:1,Expired:2,CertInvalid:3,WasmNotSupported:4,ResourceIncorrect:5,LicenseKeyInvalid:6,DomainInvalid:7},t.exports.LicenseErrorKey={Empty:"License_Empty",NotFound:"License_Not_Found",Expired:"License_Expired",CertInvalid:"License_Cert_Invalid",LicenseKeyInvalid:"License_License_Key_Invalid",DomainInvalid:"License_Domain_Invalid",Unauthorized:"License_Feature_Unauthorized"},t.exports.DRMKeySystem={4:"com.microsoft.playready",5:"com.widevine.alpha"},t.exports.EncryptionType={Private:1,Standard:2,ChinaDRM:3,PlayReady:4,Widevine:5},t.exports.VodEncryptionType={AliyunVoDEncryption:1,HLSEncryption:2,Widevine:5,"Widevine-FairPlay":5},t.exports.DRMType={Widevine:"Widevine",PlayReady:"PlayReady"},t.exports.ErrorCode={InvalidParameter:4001,AuthKeyExpired:4002,InvalidSourceURL:4003,NotFoundSourceURL:4004,StartLoadData:4005,LoadedMetadata:4006,PlayingError:4007,LoadingTimeout:4008,RequestDataError:4009,EncrptyVideoNotSupport:4010,FormatNotSupport:4011,PlayauthDecode:4012,PlayDataDecode:4013,NetworkUnavaiable:4014,UserAbort:4015,NetworkError:4016,URLsIsEmpty:4017,DrmLicenseRequestFailed:4018,RecordNotAllowed:4019,MediaNotFound:4020,DrmNotSupported:4021,DrmLoadError:4022,RegionBlock:4023,ModuleLoadError:4034,CrossDomain:4027,OtherError:4400,ServerAPIError:4500,FlashNotInstalled:4600,RtsSignalError:4100,RtsPlayFailedError:4200,RtsNotSupportWebRtc:4110,RtsBrowserNotSupport:4111,RtsBrowserVersionTooLow:4112,RtsNotSupportH264:4113,RtsCreateOfferError:4114,RtsAutoPLayFaild:4115,RtsPlayUrlError:4116,RtsSubscribeNonthing:4117,RtsHtmlElementError:4118,RtsHtmlElementNotMatch:4119,RtsBrowserNotSupportRtc:4120,RtsHttpRequestFaild:4121,RtsHttpAnswerFaild:4122,RtsPeerConnectionUnknown:4123,SplayerEnvCheckError:4300,SplayerCoroutineError:4301,SplayerDecodeError:4302,SplayerBufferingError:4303,SplayerParserNotFound:4304},t.exports.AuthKeyExpired=7200,t.exports.AuthKeyRefreshExpired=7e3,t.exports.AuthInfoExpired=100,t.exports.VideoErrorCode={1:4015,2:4016,3:4013,4:4400},t.exports.RegionBlockMessages=["black location","denied by region block"],t.exports.IconType={FontClass:"fontclass",Symbol:"symbol",Sprite:"Sprite"},t.exports.SelectedStreamLevel="selectedStreamLevel",t.exports.SelectedCC="selectedCC",t.exports.HWDetectHvc1="HWDetectHvc1",t.exports.HWDetectHvc1Hls="HWDetectHvc1Hls",t.exports.HWDetectHev1="HWDetectHev1",t.exports.HWDetectHev1Hls="HWDetectHev1Hls",t.exports.WidthMapToLevel={0:"OD",640:"FD",960:"LD",1280:"SD",1920:"HD",2580:"2K",3840:"4K"};i(),t.exports.updateByLanguage=i},{"../lang/index":18}],23:[function(e,t,r){t.exports.get=function(e){for(var t=e+"",r=document.cookie.split(";"),i=0;i<r.length;i++){var n=r[i].trim();if(0==n.indexOf(t))return unescape(n.substring(t.length+1,n.length))}return""},t.exports.set=function(e,t,r){var i=new Date,r=(i.setTime(i.getTime()+24*r*60*60*1e3),"expires="+i.toGMTString());document.cookie=e+"="+escape(t)+"; "+r}},{}],24:[function(e,r,t){var i=e("./object");r.exports.cache={},r.exports.guid=function(e,t){var r,i,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||n.length,e)for(r=0;r<e;r++)o[r]=n[0|Math.random()*t];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",r=0;r<36;r++)o[r]||(i=0|16*Math.random(),o[r]=n[19==r?3&i|8:i]);return o.join("")},r.exports.expando="vdata"+(new Date).getTime(),r.exports.getData=function(e){var t=e[r.exports.expando];return t||(t=e[r.exports.expando]=r.exports.guid(),r.exports.cache[t]={}),r.exports.cache[t]},r.exports.hasData=function(e){var t="";return!(!(t=e?e[r.exports.expando]:t)||i.isEmpty(r.exports.cache[t]))},r.exports.removeData=function(t){var e="";if(e=t?t[r.exports.expando]:e){delete r.exports.cache[e];try{delete t[r.exports.expando]}catch(e){t.removeAttribute?t.removeAttribute(r.exports.expando):t[r.exports.expando]=null}}}},{"./object":35}],25:[function(e,l,t){var i=e("./object");l.exports.el=function(e){return document.getElementById(e)},l.exports.createEl=function(e,t){var r;return e=e||"div",t=t||{},r=document.createElement(e),i.each(t,function(e,t){-1!==e.indexOf("aria-")||"role"==e?r.setAttribute(e,t):r[e]=t}),r},l.exports.addClass=function(e,t){-1==(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className=""===e.className?t:e.className+" "+t)},l.exports.removeClass=function(e,t){var r,i;if(-1!=e.className.indexOf(t)){for(i=(r=e.className.split(" ")).length-1;0<=i;i--)r[i]===t&&r.splice(i,1);e.className=r.join(" ")}},l.exports.hasClass=function(e,t){return-1!=e.className.indexOf(t)},l.exports.getClasses=function(e){return e.className?e.className.split(" "):[]},l.exports.getElementAttributes=function(e){var t,r,i={};if(e&&e.attributes&&0<e.attributes.length)for(var n,o=(n=e.attributes).length-1;0<=o;o--)t=n[o].name,r=n[o].value,"boolean"!=typeof e[t]&&-1===",autoplay,controls,loop,muted,default,".indexOf(","+t+",")||(r=null!==r),i[t]=r;return i},l.exports.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},l.exports.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},l.exports.unblockTextSelection=function(){document.onselectstart=function(){return!0}},l.exports.css=function(r,e,t){return!(!r||!r.style)&&(e&&t?(r.style[e]=t,!0):t||"string"!=typeof e?!t&&"object"==typeof e&&(i.each(e,function(e,t){r.style[e]=t}),!0):r.style[e])},l.exports.getTransformName=function(e){for(var t=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],r=t[0],i=0,n=t.length;i<n;i++)if(void 0!==e.style[t[i]]){r=t[i];break}return r},l.exports.getTransformEventName=function(e,t){for(var r=["","Webkit","Moz","ms","O"],i=t.toLowerCase(),n=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],o=0,a=n.length;o<a;o++)if(void 0!==e.style[n[o]]){0!=o&&(i=r[o]+t);break}return i},l.exports.addCssByStyle=function(e){var t=document,r=t.createElement("style"),e=(r.setAttribute("type","text/css"),r.styleSheet?r.styleSheet.cssText=e:(e=t.createTextNode(e),r.appendChild(e)),t.getElementsByTagName("head"));(e.length?e[0]:t.documentElement).appendChild(r)},l.exports.getTranslateX=function(e){var t=0;if(e)try{var r=window.getComputedStyle(e),i=l.exports.getTransformName(e),t=new(window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix)(r[i]).m41}catch(e){console.log(e)}return t},l.exports.getPointerPosition=function(e,t){var r={},i=l.exports.findPosition(e),n=e.offsetWidth,e=e.offsetHeight,o=i.top,i=i.left,a=t.pageY,s=t.pageX;return t.changedTouches&&(s=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(o-a+e)/e)),r.x=Math.max(0,Math.min(1,(s-i)/n)),r},l.exports.findPosition=function(e){var t,r,i,n;return(t=e.getBoundingClientRect&&e.parentNode?e.getBoundingClientRect():t)?(e=document.documentElement,n=document.body,i=e.clientLeft||n.clientLeft||0,r=window.pageXOffset||n.scrollLeft,r=t.left+r-i,i=e.clientTop||n.clientTop||0,e=window.pageYOffset||n.scrollTop,n=t.top+e-i,{left:Math.round(r),top:Math.round(n)}):{left:0,top:0}}},{"./object":35}],26:[function(e,l,t){var c=e("./object"),u=e("./data"),r=e("./ua"),i=e("./fastclick");function p(t,r,e,i){c.each(e,function(e){t(r,e,i)})}l.exports.on=function(o,e,t){if(o){if(c.isArray(e))return p(l.exports.on,o,e,t);r.IS_MOBILE&&"click"==e&&i.attach(o);var a=u.getData(o);a.handlers||(a.handlers={}),a.handlers[e]||(a.handlers[e]=[]),t.guid||(t.guid=u.guid()),a.handlers[e].push(t),a.dispatcher||(a.disabled=!1,a.dispatcher=function(e){if(!a.disabled){e=l.exports.fixEvent(e);var t=a.handlers[e.type];if(t)for(var r=t.slice(0),i=0,n=r.length;i<n&&!e.isImmediatePropagationStopped();i++)r[i].call(o,e)}}),1==a.handlers[e].length&&(o.addEventListener?o.addEventListener(e,a.dispatcher,!1):o.attachEvent&&o.attachEvent("on"+e,a.dispatcher))}},l.exports.off=function(t,e,r){if(t&&u.hasData(t)){var i=u.getData(t);if(i.handlers){if(c.isArray(e))return p(l.exports.off,t,e,r);var n=function(e){i.handlers[e]=[],l.exports.cleanUpEvents(t,e)};if(e){var o=i.handlers[e];if(o)if(r){if(r.guid)for(var a=0;a<o.length;a++)o[a].guid===r.guid&&o.splice(a--,1);l.exports.cleanUpEvents(t,e)}else n(e)}else for(var s in i.handlers)n(s)}}},l.exports.cleanUpEvents=function(e,t){var r=u.getData(e);0===r.handlers[t].length&&(delete r.handlers[t],e.removeEventListener?e.removeEventListener(t,r.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,r.dispatcher)),c.isEmpty(r.handlers)&&(delete r.handlers,delete r.dispatcher,delete r.disabled),c.isEmpty(r)&&u.removeData(e)},l.exports.fixEvent=function(e){function t(){return!0}function r(){return!1}if(!e||!e.isPropagationStopped){var i,n,o,a=e||window.event;for(i in e={},a)"layerX"===i||"layerY"===i||"keyboardEvent.keyLocation"===i||"returnValue"==i&&a.preventDefault||(e[i]=a[i]);e.target||(e.target=e.srcElement||document),e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement,e.preventDefault=function(){a.preventDefault&&a.preventDefault(),e.returnValue=!1,e.isDefaultPrevented=t,e.defaultPrevented=!0},e.isDefaultPrevented=r,e.defaultPrevented=!1,e.stopPropagation=function(){a.stopPropagation&&a.stopPropagation(),e.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=r,e.stopImmediatePropagation=function(){a.stopImmediatePropagation&&a.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=r,null!=e.clientX&&(n=document.documentElement,o=document.body,e.pageX=e.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e},l.exports.trigger=function(e,t){var r,i,n;if(e)return r=u.hasData(e)?u.getData(e):{},i=e.parentNode||e.ownerDocument,"string"==typeof t&&(n=null,!e.paramData&&0!=e.paramData||(n=e.paramData,e.paramData=null,e.removeAttribute(n)),t={type:t,target:e,paramData:n}),t=l.exports.fixEvent(t),r.dispatcher&&r.dispatcher.call(e,t),i&&!t.isPropagationStopped()&&!1!==t.bubbles?l.exports.trigger(i,t):i||t.defaultPrevented||(n=u.getData(t.target),t.target[t.type]&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1)),!t.defaultPrevented},l.exports.one=function(e,t,r){if(e){if(c.isArray(t))return p(l.exports.one,e,t,r);var i=function(){l.exports.off(e,t,i),r.apply(this,arguments)};i.guid=r.guid=r.guid||u.guid(),l.exports.on(e,t,i)}}},{"./data":24,"./fastclick":27,"./object":35,"./ua":39}],27:[function(e,t,r){function a(n,e){var t;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=n,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!a.notNeeded(n)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],i=0,o=r.length;i<o;i++)this[r[i]]=((e,t)=>function(){return e.apply(t,arguments)})(this[r[i]],this);s&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(e,t,r){var i=Node.prototype.removeEventListener;"click"===e?i.call(n,e,t.hijacked||t,r):i.call(n,e,t,r)},n.addEventListener=function(e,t,r){var i=Node.prototype.addEventListener;"click"===e?i.call(n,e,t.hijacked||(t.hijacked=function(e){e.propagationStopped||t(e)}),r):i.call(n,e,t,r)}),"function"==typeof n.onclick&&(t=n.onclick,n.addEventListener("click",function(e){t(e)},!1),n.onclick=null)}}var i=0<=navigator.userAgent.indexOf("Windows Phone"),s=0<navigator.userAgent.indexOf("Android")&&!i,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!i,l=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=o&&/OS [6-7]_\d/.test(navigator.userAgent),n=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(o&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},a.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},a.prototype.sendClick=function(e,t){var r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),t=t.changedTouches[0],(r=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),r.forwardedTouchEvent=!0,e.dispatchEvent(r)},a.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(e){var t;o&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},a.prototype.updateScrollParent=function(e){var t,r=e.fastClickScrollParent;if(!r||!r.contains(e)){t=e;do{if(t.scrollHeight>t.offsetHeight){r=t,e.fastClickScrollParent=t;break}}while(t=t.parentElement)}r&&(r.fastClickLastScrollTop=r.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},a.prototype.onTouchStart=function(e){var t,r,i;if(!(1<e.targetTouches.length)){if(t=this.getTargetElementFromEventTarget(e.target),r=e.targetTouches[0],o){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(r.identifier&&r.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=r.identifier,this.updateScrollParent(t)}}this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=r.pageX,this.touchStartY=r.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault()}return!0},a.prototype.touchHasMoved=function(e){var e=e.changedTouches[0],t=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>t||Math.abs(e.pageY-this.touchStartY)>t},a.prototype.onTouchMove=function(e){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0},a.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(e){var t,r,i,n=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,t=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(i=e.changedTouches[0],(n=document.elementFromPoint(i.pageX-window.pageXOffset,i.pageY-window.pageYOffset)||n).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=n.tagName.toLowerCase())){if(r=this.findControl(n)){if(this.focus(n),s)return!1;n=r}}else if(this.needsFocus(n))return 100<e.timeStamp-t||o&&window.top!==window&&"input"===i?this.targetElement=null:(this.focus(n),this.sendClick(n,e),o&&"select"===i||(this.targetElement=null,e.preventDefault())),!1;return!(!o||l||!(r=n.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(n)||(e.preventDefault(),this.sendClick(n,e)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(e){return!this.targetElement||!(!e.forwardedTouchEvent&&e.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)&&(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),1))},a.prototype.onClick=function(e){return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===e.target.type&&0===e.detail||((e=this.onMouse(e))||(this.targetElement=null),e)},a.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(e){var t,r;if(void 0===window.ontouchstart)return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(31<r&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(n&&10<=(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=r[2]&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||"none"===e.style.touchAction||"manipulation"===e.style.touchAction},a.attach=function(e,t){return new a(e,t)},t.exports=a},{}],28:[function(e,t,r){var n=e("./data");t.exports.bind=function(e,t,r){t.guid||(t.guid=n.guid());function i(){return t.apply(e,arguments)}return i.guid=r?r+"_"+t.guid:t.guid,i}},{"./data":24}],29:[function(e,t,r){function k(){k=function(){return a};var l,a={},e=Object.prototype,c=e.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},i=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||"@@toStringTag";function o(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(l){o=function(e,t,r){return e[t]=r}}function s(e,t,r,i){var n,o,a,s,t=t&&t.prototype instanceof g?t:g,t=Object.create(t.prototype),i=new x(i||[]);return u(t,"_invoke",{value:(n=e,o=r,a=i,s=d,function(e,t){if(s===f)throw Error("Generator is already running");if(s===_){if("throw"===e)throw t;return{value:l,done:!0}}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){r=function e(t,r){var i=r.method,n=t.iterator[i];if(n===l)return r.delegate=null,"throw"===i&&t.iterator.return&&(r.method="return",r.arg=l,e(t,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;i=p(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;n=i.arg;return n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=l),r.delegate=null,y):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}(r,a);if(r){if(r===y)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===d)throw s=_,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=f;r=p(n,o,a);if("normal"===r.type){if(s=a.done?_:h,r.arg===y)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(s=_,a.method="throw",a.arg=r.arg)}})}),t}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=s;var d="suspendedStart",h="suspendedYield",f="executing",_="completed",y={};function g(){}function v(){}function m(){}var t={},S=(o(t,i,function(){return this}),Object.getPrototypeOf),S=S&&S(S(C([]))),T=(S&&S!==e&&c.call(S,i)&&(t=S),m.prototype=g.prototype=Object.create(t));function b(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function E(a,s){var t;u(this,"_invoke",{value:function(r,i){function e(){return new s(function(e,t){!function t(e,r,i,n){var o,e=p(a[e],a,r);if("throw"!==e.type)return(r=(o=e.arg).value)&&"object"==typeof r&&c.call(r,"__await")?s.resolve(r.__await).then(function(e){t("next",e,i,n)},function(e){t("throw",e,i,n)}):s.resolve(r).then(function(e){o.value=e,i(o)},function(e){return t("throw",e,i,n)});n(e.arg)}(r,i,e,t)})}return t=t?t.then(e,e):e()}})}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(t){if(t||""===t){var r,e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=l,e.done=!0,e}).next=e}throw new TypeError(typeof t+" is not iterable")}return u(T,"constructor",{value:v.prototype=m,configurable:!0}),u(m,"constructor",{value:v,configurable:!0}),v.displayName=o(m,n,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,o(e,n,"GeneratorFunction")),e.prototype=Object.create(T),e},a.awrap=function(e){return{__await:e}},b(E.prototype),o(E.prototype,r,function(){return this}),a.AsyncIterator=E,a.async=function(e,t,r,i,n){void 0===n&&(n=Promise);var o=new E(s(e,t,r,i),n);return a.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},b(T),o(T,n,"Generator"),o(T,i,function(){return this}),o(T,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,r=Object(e),i=[];for(t in r)i.push(t);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function e(e,t){return o.type="throw",o.arg=r,i.next=e,t&&(i.method="next",i.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],o=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=c.call(n,"catchLoc"),s=c.call(n,"finallyLoc");if(a&&s){if(this.prev<n.catchLoc)return e(n.catchLoc,!0);if(this.prev<n.finallyLoc)return e(n.finallyLoc)}else if(a){if(this.prev<n.catchLoc)return e(n.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return e(n.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&c.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}var o=(n=n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc?null:n)?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,i,n=this.tryEntries[t];if(n.tryLoc===e)return"throw"===(r=n.completion).type&&(i=r.arg,P(n)),i}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=l),y}},a}function l(e,t,r,i,n,o,a){try{var s=e[o](a),l=s.value}catch(e){return r(e)}s.done?t(l):Promise.resolve(l).then(i,n)}function a(s){return function(){var e=this,a=arguments;return new Promise(function(t,r){var i=s.apply(e,a);function n(e){l(i,t,r,n,o,"next",e)}function o(e){l(i,t,r,n,o,"throw",e)}n(void 0)})}}var i,s="undefined"==typeof Promise?e("es6-promise").Promise:Promise;e=self,i=function(){return(i={d:function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}).d(e={},{default:function(){return o}}),t=navigator.userAgent,r=/qqbrowser/i.test(t.toLowerCase()),n=/Edge/i.test(t),n=/Chrome/i.test(t)&&!n&&!r,v=/Safari/i.test(t)&&!n,r=t.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/),n=r&&r[1],m=n&&Number(n.split(".")[0]),S=(()=>{var t=a(k().mark(function e(t){var r;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return r=e.sent,e.abrupt("return",URL.createObjectURL(r));case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}})(),T={includeSystemHijack:!0,showVideo:!1,format:"mp4",codecTags:["hev1","hvc1"],timeout:2e3},o=function(_){return void 0===_&&(_={}),new s((()=>{var t=a(k().mark(function e(t){var r,i,n,o,a,s,l,c,u,p,d,h,f;return k().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=Object.assign({},T,_),r=o.includeSystemHijack,i=o.showVideo,l=o.codecTags,n=o.format,o=o.timeout,a=performance.now(),s=-1<l.indexOf("hvc1"),l=-1<l.indexOf("hev1"),u=c=!1,!(v&&m&&11<=m)){e.next=14;break}if(p=y("hvc1",n),e.t0=r,e.t0){e.next=9;break}return e.next=8,S(p);case 8:p=e.sent;case 9:return e.next=11,g(p,i,"hvc1",o);case 11:c=e.sent,e.next=34;break;case 14:if(!s){e.next=24;break}if(d=y("hvc1",n),e.t1=r,e.t1){e.next=21;break}return e.next=20,S(d);case 20:d=e.sent;case 21:return e.next=23,g(d,i,"hvc1",o);case 23:c=e.sent;case 24:if(!l){e.next=34;break}if(h=y("hev1",n),e.t2=r,e.t2){e.next=31;break}return e.next=30,S(h);case 30:h=e.sent;case 31:return e.next=33,g(h,i,"hev1",o);case 33:u=e.sent;case 34:f=performance.now(),t({isHvc1Supported:c,isHev1Supported:u,time:Math.ceil(f-a)});case 36:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}})())},e.default;function y(e,t){var r="hls"===(t=void 0===t?"mp4":t),i="";switch(e=void 0===e?"":e){case"hvc1":i=r?"https://player.alicdn.com/lib/detect-assets/01s_20x20_hvc1.m3u8":"https://ice-pub-media.myalicdn.com/vod-demo/hevc/01s_20x20_hvc1.mp4";break;case"hev1":i=r?"https://player.alicdn.com/lib/detect-assets/01s_20x20_hev1.m3u8":"https://ice-pub-media.myalicdn.com/vod-demo/hevc/01s_20x20_hev1.mp4";break;default:i=""}return i}function g(i,l,c,e){void 0===l&&(l=!1),void 0===c&&(c="");var u=performance.now(),p=e;return new s(function(o){e=i,void 0===(t=l?100:0)&&(t=100),(r=document.createElement("video")).setAttribute("width",""+t),r.setAttribute("height",""+t),r.setAttribute("muted","muted"),r.setAttribute("crossorigin","anonymous"),r.setAttribute("preload","preload"),r.setAttribute("autoplay","autoplay"),r.setAttribute("webkit-playsinline","webkit-playsinline"),r.setAttribute("playsinline","playsinline"),r.setAttribute("x-webkit-airplay","x-webkit-airplay"),r.setAttribute("playsinline","playsinline"),r.src=e;var e,t,r,a=r,s=setInterval(function(){var e,t,r,i,n;(performance.now()-u>p||0!==a.videoWidth)&&(clearInterval(s),e=0!==a.videoWidth,l?(a.setAttribute("controls","controls"),t=a,void 0===(r=c)&&(r=""),i=document.createElement("dv"),(n=document.createElement("h3")).innerText=r,i.appendChild(t),i.appendChild(n),document.body.appendChild(i)):(a.pause(),a=null),o(e))})})}var i,e,t,r,n,v,m,S,T,o},"object"==typeof r&&"object"==typeof t?t.exports=i():"object"==typeof r?r.hevcDetector=i():e.hevcDetector=i()},{"es6-promise":1}],30:[function(e,t,r){function i(e){for(var t in e="string"==typeof e?this.parseAttrList(e):e)e.hasOwnProperty(t)&&(this[t]=e[t])}var n=/^(\d+)x(\d+)$/,o=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g;i.prototype={decimalInteger:function(e){e=parseInt(this[e],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},hexadecimalInteger:function(e){if(this[e]){for(var t=(1&(t=(this[e]||"0x").slice(2)).length?"0":"")+t,r=new Uint8Array(t.length/2),i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(2*i,2*i+2),16);return r}return null},hexadecimalIntegerAsNumber:function(e){e=parseInt(this[e],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},decimalFloatingPoint:function(e){return parseFloat(this[e])},enumeratedString:function(e){return this[e]},decimalResolution:function(e){e=n.exec(this[e]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},parseAttrList:function(e){var t,r={};for(o.lastIndex=0;null!==(t=o.exec(e));){var i=t[2];0===i.indexOf('"')&&i.lastIndexOf('"')===i.length-1&&(i=i.slice(1,-1)),r[t[1]]=i}return r}},t.exports=i},{}],31:[function(e,t,r){function S(){this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[]}function i(){this.loaders={}}var n=e("../constants"),l=e("../playerutil"),T=e("./attrlist"),c=e("../io"),o=e("./urltoolkit"),u=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,p=/#EXT-X-MEDIA:(.*)/g,b=new RegExp([/#EXTINF:(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),E=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(PART-INF):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,d="RegionBlock",w=function(){this.method=null,this.key=null,this.iv=null,this._uri=null};S.prototype.getUrl=function(){return!this._url&&this.relurl&&(this._url=o.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},S.prototype.Seturl=function(e){this._url=e},S.prototype.getProgramDateTime=function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime},S.prototype.GetbyteRange=function(){var e,t,r;return this._byteRange||(e=this._byteRange=[],this.rawByteRange&&(1===(t=this.rawByteRange.split("@",2)).length?(r=this.lastByteRangeEndOffset,e[0]=r||0):e[0]=parseInt(t[1]),e[1]=parseInt(t[0])+e[0])),this._byteRange},S.prototype.getByteRangeStartOffset=function(){return this.byteRange[0]},S.prototype.getByteRangeEndOffset=function(){return this.byteRange[1]},S.prototype.getDecryptdata=function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata};i.prototype=((e={parseMasterPlaylist:function(e,t){var r=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var i={},n=i.attrs=new T(o[1]),o=(i.url=this.resolve(o[2],t),n.decimalResolution("RESOLUTION"));if(o&&(i.width=o.width,i.height=o.height),i.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),i.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?i.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?i.videoCodec=l:i.audioCodec=l}r.push(i)}return r},parseMasterPlaylistMedia:function(e,t,r,i){var n=[],o=0;for(p.lastIndex=0;null!=(s=p.exec(e));){var a={},s=new T(s[1]);s.TYPE===r&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=r,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),i&&(a.audioCodec=i),a.id=o++,n.push(a))}return n},avc1toavcoti:function(e){var t=e.split("."),r=2<t.length?(r=t.shift()+".",(r+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).substr(-4)):e;return r},load:function(o,a,i){var s=this;c.get(o,function(e){var t,r,i,n=s.parseMasterPlaylist(e,o);n.length&&(t=s.parseMasterPlaylistMedia(e,o,"AUDIO",n[0].audioCodec),r=s.parseMasterPlaylistMedia(e,o,"SUBTITLES"),t.length)&&(i=!1,t.forEach(function(e){e.url||(i=!0)}),!1===i)&&n[0].audioCodec&&!n[0].attrs.AUDIO&&(console.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),t.unshift({type:"main",name:"main"})),a({levels:n,audioTracks:t,subtitles:r,url:o,string:e})},function(e,t,r){i&&((r=l.parseHttpHeaders(r)["x-tengine-error"])&&-1<n.RegionBlockMessages.indexOf(r)&&(e=d),i(e,t))})},loadMediaPlaylist:function(e,t,r){var i=this,n=(e=e||{}).string,o=e.url;n?(e=i.parseLevelPlaylist(n,o),t(e)):c.get(o,function(e){e=i.parseLevelPlaylist(e,o);t(e)},function(e){r&&r(e)})},resolve:function(e,t){return o.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}}).parseMasterPlaylist=function(e,t){var r=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var i={},n=i.attrs=new T(o[1]),o=(i.url=this.resolve(o[2],t),n.decimalResolution("RESOLUTION"));if(o&&(i.width=o.width,i.height=o.height),i.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),i.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?i.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?i.videoCodec=l:i.audioCodec=l}r.push(i)}return r},e.parseMasterPlaylistMedia=function(e,t,r,i){var n=[],o=0;for(p.lastIndex=0;null!=(s=p.exec(e));){var a={},s=new T(s[1]);s.TYPE===r&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=r,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),i&&(a.audioCodec=i),a.id=o++,n.push(a))}return n},e.avc1toavcoti=function(e){var t=e.split("."),r=2<t.length?(r=t.shift()+".",(r+=parseInt(t.shift()).toString(16))+("000"+parseInt(t.shift()).toString(16)).substr(-4)):e;return r},e.parseLevelPlaylist=function(e,t,r,i){var n,o,a=0,s=0,l={type:null,version:null,url:t,fragments:[],live:!0,startSN:0},c=new w,u=0,p=null,d=new S;for(b.lastIndex=0;null!==(n=b.exec(e));){var h=n[1];if(h){d.duration=parseFloat(h);var f=(" "+n[2]).slice(1);d.title=f||null,d.tagList.push(f?["INF",h,f]:["INF",h])}else if(n[3])isNaN(d.duration)||(f=a++,d.type=i,d.start=s,d.levelkey=c,d.sn=f,d.level=r,d.cc=u,d.baseurl=t,d.relurl=(" "+n[3]).slice(1),l.fragments.push(d),s+=(p=d).duration,d=new S);else if(n[4])d.rawByteRange=(" "+n[4]).slice(1),p&&(h=p.byteRangeEndOffset)&&(d.lastByteRangeEndOffset=h);else if(n[5])d.rawProgramDateTime=(" "+n[5]).slice(1),d.tagList.push(["PROGRAM-DATE-TIME",d.rawProgramDateTime]),void 0===l.programDateTime&&(l.programDateTime=new Date(new Date(Date.parse(n[5]))-1e3*s));else{for(n=n[0].match(E),o=1;o<n.length&&void 0===n[o];o++);var _=(" "+n[o+1]).slice(1),y=(" "+n[o+2]).slice(1);switch(n[o]){case"#":d.tagList.push(y?[_,y]:[_]);break;case"PLAYLIST-TYPE":l.type=_.toUpperCase();break;case"MEDIA-SEQUENCE":a=l.startSN=parseInt(_);break;case"TARGETDURATION":l.targetduration=parseFloat(_);break;case"VERSION":l.version=parseInt(_);break;case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"DIS":u++,d.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":u=parseInt(_);break;case"KEY":var g=new T(_),v=g.enumeratedString("METHOD"),m=g.URI,g=g.hexadecimalInteger("IV");v&&(c=new w,m)&&0<=["AES-128","SAMPLE-AES"].indexOf(v)&&(c.method=v,c.baseuri=t,c.reluri=m,c.key=null,c.iv=g);break;case"START":v=new T(_).decimalFloatingPoint("TIME-OFFSET");isNaN(v)||(l.startTimeOffset=v);break;case"MAP":m=new T(_);d.relurl=m.URI,d.rawByteRange=m.BYTERANGE,d.baseurl=t,d.level=r,d.type=i,d.sn="initSegment",l.initSegment=d,d=new S;break;case"PART-INF":g=new T(_);l.partTarget=g.decimalFloatingPoint("PART-TARGET");break;default:console.log("line parsed but not handled: "+n)}}}return(d=p)&&!d.relurl&&(l.fragments.pop(),s-=d.duration),l.totalduration=s,l.averagetargetduration=s/l.fragments.length,l.endSN=a-1,l},e),i.ERROR_REGION_BLOCK=d,t.exports=i},{"../constants":22,"../io":33,"../playerutil":37,"./attrlist":30,"./urltoolkit":32}],32:[function(e,t,r){var i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,o=/^([^\/;?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=s.parseURL(e);if(i)return i.path=s.normalizePath(i.path),s.buildURLFromParts(i);throw new Error("Error trying to parse base URL.")}i=s.parseURL(t);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return r.alwaysNormalize?(i.path=s.normalizePath(i.path),s.buildURLFromParts(i)):t;t=s.parseURL(e);if(!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(e=o.exec(t.path),t.netLoc=e[1],t.path=e[2]),t.netLoc&&!t.path&&(t.path="/");var n,e={scheme:t.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};return i.netLoc||(e.netLoc=t.netLoc,"/"!==i.path[0]&&(i.path?(n=(n=t.path).substring(0,n.lastIndexOf("/")+1)+i.path,e.path=s.normalizePath(n)):(e.path=t.path,i.params||(e.params=t.params,i.query)||(e.query=t.query)))),null===e.path&&(e.path=r.alwaysNormalize?s.normalizePath(i.path):i.path),s.buildURLFromParts(e)},parseURL:function(e){e=i.exec(e);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};t.exports=s},{}],33:[function(e,s,t){var h=e("./url");s.exports.get=function(e,t,r,i,n,o){s.exports.ajax.call(this,"GET",e,{},t,r,i,n,void 0,o)},s.exports.post=function(e,t,r,i,n,o){var a={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json"};s.exports.ajax("POST",e,t,r,i,n,o,a)},s.exports.postWithHeader=function(e,t,r,i,n){s.exports.ajax("POST",e,t,i,n,!0,!1,r)},s.exports.ajax=function(e,t,r,i,n,o,a,s,l){var c,u,p;n=n||function(){},"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("This browser does not support XMLHttpRequest.")}),u=new XMLHttpRequest,l&&(u.timeout=l),l=h.parseUrl(t),p=window.location,!(l.protocol+l.host!==p.protocol+p.host)||!window.XDomainRequest||"withCredentials"in u?(c="file:"==l.protocol||"file:"==p.protocol,u.onreadystatechange=function(){4===u.readyState&&(200===u.status||c&&0===u.status?i(u.responseText):n(u.responseText,u.status,u))}):((u=new window.XDomainRequest).onload=function(){i(u.responseText)},u.onerror=n,u.onprogress=function(){},u.ontimeout=n);try{if(void 0===o&&(o=!0),u.open(e,t,o),a&&(u.withCredentials=!0),s)for(var d in s)s.hasOwnProperty(d)&&u.setRequestHeader(d,s[d])}catch(e){return void n(e)}try{u.send(r)}catch(e){n(e)}},s.exports.jsonp=function(e,t,r){var i="jsonp_callback_"+Math.round(1e5*Math.random()),n=document.createElement("script");e&&(n.src=e+(0<=e.indexOf("?")?"&":"?")+"callback="+i+"&cb="+i,n.onerror=function(){delete window[i],document.body.removeChild(n),r()},n.onload=function(){setTimeout(function(){window[i]&&(delete window[i],document.body.removeChild(n))},0)},window[i]=function(e){delete window[i],document.body.removeChild(n),t(e)},document.body.appendChild(n))},s.exports.loadJS=function(e,t,r){var i=document.getElementsByTagName("HEAD").item(0),n=document.createElement("script");n.setAttribute("crossorigin","anonymous"),e&&e.toLowerCase().indexOf("https://")<0&&e.toLowerCase().indexOf("http://")<0&&(e=document.URL.replace(/(\/[^\/]*?)$/i,"")+e),n.type="text/javascript",n.src=e,n.onload=function(){t&&t()},n.onerror=function(){r&&r()},i.appendChild(n)}},{"./url":40}],34:[function(e,t,r){var a=e("./dom");t.exports.render=function(e,t){var r=t.align||(t.className?"":"tl"),i=t.x||0,t=t.y||0,n=i.indexOf&&0<i.indexOf("%")?"":"px",o=t.indexOf&&0<t.indexOf("%")?"":"px";"tl"===r?a.css(e,{float:"left","margin-left":i+n,"margin-top":t+o}):"tr"===r?a.css(e,{float:"right","margin-right":i+n,"margin-top":t+o}):"tlabs"===r?a.css(e,{position:"absolute",left:i+n,top:t+o}):"trabs"===r?a.css(e,{position:"absolute",right:i+n,top:t+o}):"blabs"===r?a.css(e,{position:"absolute",left:i+n,bottom:t+o}):"brabs"===r?a.css(e,{position:"absolute",right:i+n,bottom:t+o}):"cc"===r&&a.addClass(e,"loading-center")}},{"./dom":25}],35:[function(e,a,t){var s=Object.prototype.hasOwnProperty;a.exports.create=Object.create||function(e){function t(){}return t.prototype=e,new t},a.exports.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(arg)},a.exports.isEmpty=function(e){for(var t in e)if(null!==e[t])return!1;return!0},a.exports.each=function(e,t,r){if(a.exports.isArray(e))for(var i=0,n=e.length;i<n&&!1!==t.call(r||this,e[i],i);++i);else for(var o in e)if(s.call(e,o)&&!1===t.call(r||this,o,e[o]))break;return e},a.exports.merge=function(e,t){if(t)for(var r in t)s.call(t,r)&&(e[r]=t[r]);return e},a.exports.deepMerge=function(e,t){var r,i,n;for(r in e=a.exports.copy(e),t)s.call(t,r)&&(i=e[r],n=t[r],a.exports.isPlain(i)&&a.exports.isPlain(n)?e[r]=a.exports.deepMerge(i,n):e[r]=t[r]);return e},a.exports.copy=function(e){return a.exports.merge({},e)},a.exports.isPlain=function(e){return!!e&&"object"==typeof e&&"[object Object]"===e.toString()&&e.constructor===Object},a.exports.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a.exports.unescape=function(e){return e.replace(/&([^;]+);/g,function(e,t){return{amp:"&",lt:"<",gt:">",quot:'"',"#x27":"'","#x60":"`"}[t.toLowerCase()]||e})}},{}],36:[function(e,t,r){var n,o=e("./object");(n=function(){}).extend=function(e){var t,r,i=(e=e||{}).init||this.prototype.init||function(){};for(r in(((t=function(){i.apply(this,arguments)}).prototype=o.create(this.prototype)).constructor=t).extend=n.extend,t.create=n.create,e)e.hasOwnProperty(r)&&(t.prototype[r]=e[r]);return t},n.create=function(){var e=o.create(this.prototype);return this.apply(e,arguments),e},t.exports=n},{"./object":35}],37:[function(e,f,t){var _=e("./object"),r=e("../config"),i=e("./dom"),n=e("./cookie"),o=e("./constants"),a=e("../lang/index"),l=e("./ua"),s=e("./io"),y=e("../player/base/plugin/defaultemptycomponent"),c=e("./hardware-decoding-detector"),g={preload:!0,autoplay:!0,autoplayPolicy:{fallbackToMute:!1,showUnmuteBtn:!0},useNativeControls:!1,width:"100%",height:"300px",cover:"",from:"",trackLog:!0,logBatched:!0,logReportTo:void 0,heartHeatInterval:30,isLive:!1,playsinline:!0,showBarTime:5e3,rePlay:!1,mute:!1,liveRetry:5,liveRetryInterval:1,liveRetryStep:0,disableVodHalfRetry:!1,disableLiveHalfRetry:!1,keyShortCuts:!1,keyFastForwardStep:10,isVBR:!1,vodRetry:3,format:"",definition:"",defaultDefinition:"",loadDataTimeout:20,waitingTimeout:60,waitingBufferedTime:3,delayLoadingShow:1,controlBarForOver:!1,controlBarVisibility:"hover",enableSystemMenu:!1,qualitySort:"asc",x5_video_position:"normal",x5_type:"",x5_fullscreen:!1,x5_orientation:"landscape|portrait",x5LandscapeAsFullScreen:!0,license:{},autoPlayDelay:0,autoPlayDelayDisplayText:"",useHlsPluginForSafari:!1,enableMSEForAndroid:!0,encryptType:0,language:"zh-cn",languageTexts:{},extLanguageTexts:{},mediaType:"video",outputType:"",playConfig:{},reAuthInfo:{},components:[],liveTimeShiftUrl:"",liveShiftSource:"",liveShiftTime:"",liveShiftMinOffset:30,videoHeight:"100%",videoWidth:"100%",enableWorker:!0,authTimeout:"",enableMockFullscreen:!1,region:"cn-shanghai",debug:!1,progressMarkers:[],ratio:void 0,snapshotWatermark:{left:"500",top:"100",text:"",font:"16px \u5b8b\u4f53",fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},liveStartTime:"",liveOverTime:"",enableStashBufferForFlv:!1,flvOption:{},hlsOption:{stopLoadAsPaused:!1},drmOption:{},hlsLoadingTimeOut:2e4,useHlsPlugOnMobile:!0,useFlvPlugOnMobile:!0,lowLatencyMode:!1,useHls2:!0,useDrm2:void 0,skipRtsSupportCheck:!1,rtsLoadDataTimeout:6e3,rtsOption:{},rtsFallback:!0,rtsFallbackSource:void 0,rtsFallbackType:void 0,rtsVersion:"",rtsSdkUrl:"",nudgeMaxRetry:5,tracks:[],recreatePlayer:function(){},diagnosisButtonVisible:!0,enableH265:!1,forceH265:!1,enableH266:!1,forceH266:!1,h265Threads:!0,h265Simd:!0,preventRecord:!1,traceId:"",mediaAuth:void 0,textTracks:void 0,_native:!0,hlsUriToken:"",thumbnailUrl:"",refreshAccessInfo:function(){},drmSessionTimeout:5e3,skinRes:"//"+r.domain+"/de/prismplayer-flash/"+r.flashVersion+"/atlas/defaultSkin",splayerUrl:null,splayerWasmDomain:null,logo:[],disablePip:!1,assetPrefix:null,clickPause:l.IS_PC,clickPauseDelay:200,statisticsReportInterval:5e3,skinLayoutIgnore:[],disableSeek:!1,dashjsUrl:null,dashOption:{},disableDumpBuffer:!1,useSW:!1,swScriptURL:void 0,env:"",autoSize:"",watchStartTime:void 0,watchEndTime:void 0,start:void 0,end:void 0,dbClickFullscreen:l.IS_PC,dbClickFullscreenDelay:200,enableHlsH265:!1,bitrateDisplayHandler:void 0},u=(f.exports.getDefaultH5Layout=function(){return[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"unmuteButton",align:"cc"},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:50},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}]},f.exports.getDefaultAudioLayout=function(){return[{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"volume",align:"tr",x:5,y:10}]}]},f.exports.getDefaultFlashLayout=function(){return[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"tlabs",x:0,y:0},{name:"playButton",align:"tl",x:15,y:26},{name:"nextButton",align:"tl",x:10,y:26},{name:"timeDisplay",align:"tl",x:10,y:24},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"streamButton",align:"tr",x:10,y:23},{name:"volume",align:"tr",x:10,y:25}]},{name:"fullControlBar",align:"tlabs",x:0,y:0,children:[{name:"fullTitle",align:"tl",x:25,y:6},{name:"fullNormalScreenButton",align:"tr",x:24,y:13},{name:"fullTimeDisplay",align:"tr",x:10,y:12},{name:"fullZoom",align:"cc"}]}]},f.exports.canPlayType=function(e){var t=document.createElement("video");return t.canPlayType?t.canPlayType(e):""},f.exports.canPlayHls=function(){return""!=f.exports.canPlayType("application/x-mpegURL")},f.exports.isUsedHlsPluginOnMobile=function(e){return!!(l.IS_MOBILE&&(l.IS_CHROME||l.IS_FIREFOX||l.IS_X5||l.IS_EDGE_NEW)&&f.exports.isSupportHls())},f.exports.isSafariUsedHlsPlugin=function(e){return!!(l.os.pc&&l.browser.safari&&e)},f.exports.validateSource=function(e){return!0},f.exports.supportH5Video=function(){return void 0!==document.createElement("video").canPlayType},f.exports.createWrapper=function(e){var t=e.id,t="string"==typeof t?(0===t.indexOf("#")&&(t=t.slice(1)),i.el(t)):t;if(t&&t.nodeName)return f.exports.adjustContainerLayout(t,e),t;throw new TypeError("\u6ca1\u6709\u4e3a\u64ad\u653e\u5668\u6307\u5b9a\u5bb9\u5668")},f.exports.adjustContainerLayout=function(e,t){t.width&&!e.style.width&&(e.style.width=t.width),t.height&&!e.style.height&&(e.style.height=t.height)},f.exports.isSupportHls=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,e=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),t=(l.IS_ANDROID&&l.is_X5&&(e=!0),!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove);return e&&t},f.exports.isSupportMMS=function(){return!!window.ManagedMediaSource},f.exports.isSupportFlv=function(){return f.exports.isSupportHls()},f.exports.isSupportMSE=function(){return f.exports.isSupportHls()||f.exports.isSupportMMS()},f.exports.isSupportedMediaSource=function(){return!!window.MediaSource&&!!MediaSource.isTypeSupported},f.exports.isSupportedDrm=function(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)&&f.exports.isSupportMSE()},f.exports.isAudio=function(t,e){if(e)return f.exports.isMp3Format(e);e=!1;try{e=t&&"mp3"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".mp3")}return e},f.exports.isLiveShift=function(e){return e.isLive&&e.liveStartTime&&e.liveOverTime},f.exports.isHls=function(t,e){if(e)return f.exports.isHlsFormat(e);e=!1;try{e=t&&"m3u8"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".m3u8")}return e},f.exports.isDash=function(t,e){if(e)return f.exports.isDashFormat(e);e=!1;try{e=t&&"mpd"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".mpd")}return e},f.exports.isFlv=function(t,e){if(e)return f.exports.isFlvFormat(e);e=!1;try{e=t&&"flv"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&0<t.toLowerCase().indexOf(".flv")}return e},f.exports.isRTMP=function(e){return e&&-1<e.toLowerCase().indexOf("rtmp:")},f.exports.isRts=function(e){return e&&-1<e.toLowerCase().indexOf("artc:")},f.exports.isMp4=function(t,e){if(e)return f.exports.isMp4Format(e);e=!1;try{e=t&&"mp4"===new URL("http:"+t).pathname.split(".").pop().toLowerCase()}catch(e){return t&&-1<t.toLowerCase().indexOf(".mp4")}return e},f.exports.isSupportedFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp3","mp4","mpd","hls","m3u8","flv"].indexOf(t)}catch(e){return!1}},f.exports.isMp3Format=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp3"].indexOf(t)}catch(e){return!1}},f.exports.isMp4Format=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mp4"].indexOf(t)}catch(e){return!1}},f.exports.isFlvFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["flv"].indexOf(t)}catch(e){return!1}},f.exports.isHlsFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["hls","m3u8"].indexOf(t)}catch(e){return!1}},f.exports.isDashFormat=function(e){if(!e)return!1;try{var t=e.toLowerCase();return~["mpd"].indexOf(t)}catch(e){return!1}},f.exports.getFormat=function(e){var t={artc:"rts",m3u8:"hls"},e=null==(e=/\.(mp4)|\.(mp3)|\.(m3u8)|\.(flv)|(artc):/.exec(e))?void 0:e[0];return e=e&&e.replace(/\.|:|artc|m3u8/gi,function(e){return t[e]||""})},f.exports.checkSecuritSupport=function(){return f.exports.isSupportMSE()?l.IS_IOS&&(l.IS_UC||l.IS_QUARK||l.IS_BAIDU)?a.get("iOSVodEncriptionBlacklist"):"":"serviceWorker"in navigator?void 0:"http:"===location.protocol?a.get("Error_SW_Https_required"):a.get("UseChromeForVodEncription")+"(SW not found)"},f.exports.nativeSupportH265=function(){return l.IS_IOS||l.IS_MAC_SAFARI},f.exports.findSelectedStreamLevel=function(e,t){var r=t;if(r||(r=n.get(o.SelectedStreamLevel))){for(var i=0;i<e.length;i++)if(e[i].definition==r)return i}else n.set(o.SelectedStreamLevel,e[0].definition,365);return 0},f.exports.getHistoryDetectResult=function(e,t){if(e)return t="hls"===t,"hvc1"===e?t?n.get(o.HWDetectHvc1Hls):n.get(o.HWDetectHvc1):"hev1"===e?t?n.get(o.HWDetectHev1Hls):n.get(o.HWDetectHev1):void 0},f.exports.setHistoryDetectResult=function(e,t,r){var i="unknownCodec",t="hls"===t;"hvc1"===e?i=t?o.HWDetectHvc1Hls:o.HWDetectHvc1:"hev1"===e&&(i=t?o.HWDetectHev1Hls:o.HWDetectHev1),n.set(i,r)},f.exports.handleOption=function(e,t){f.exports.isRts(e.source)&&(e.isLive=!0);var r,i=_.merge(_.copy(g),e),n=(e.autoplayPolicy&&(i.autoplayPolicy=_.merge(g.autoplayPolicy,e.autoplayPolicy)),[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]),o=!1;if(e.useFlashPrism||f.exports.isRTMP(e.source)?(o=!0,n=[{name:"liveIco",align:"tlabs",x:15,y:25},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"volume",align:"tr",x:10,y:25}]):(r=f.exports.isLiveShift(i))?(n.push({name:"liveShiftProgress",align:"tlabs",x:0,y:0}),n.push({name:"playButton",align:"tl",x:15,y:12}),n.push({name:"liveDisplay",align:"tl",x:15,y:6})):n.push({name:"liveDisplay",align:"tlabs",x:15,y:6}),e.isLive)if(void 0===e.skinLayout)i.skinLayout=[{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"unmuteButton",align:"cc"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"H5Loading",align:"cc"},{name:"controlBar",align:"blabs",x:0,y:0,children:f.exports.isRts(e.source)?[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"volume",align:"tr",x:5,y:10},{name:"liveDisplay",align:"tlabs",x:15,y:6}]:n}];else if(0!=e.skinLayout){for(var a=e.skinLayout.length,s=[],l=-1,c=0;c<a;c++)if("controlBar"==i.skinLayout[c].name){for(var l=c,u=i.skinLayout[c].children.length,p=0;p<u;p++){var d,h=i.skinLayout[c].children[p].name;"liveDisplay"!=h&&"liveIco"!=h&&"fullScreenButton"!=h&&"volume"!=h&&"snapshot"!=h&&"setting"!=h&&"subtitle"!=h&&(!r||"progress"!=h&&"playButton"!=h&&"timeDisplay"!=h)||(d=i.skinLayout[c].children[p],"progress"==h?d.name="liveShiftProgress":"timeDisplay"==h?d.name="liveShiftTimeDisplay":o&&"liveDisplay"==h&&(d.name="liveIco"),s.push(d))}break}-1!=l&&(i.skinLayout[l].children=s)}return(void 0===e.components||!e.components||_.isArray(e.components)&&0==e.components.length)&&"false"!=e.components&&(i.components=[y]),i},f.exports.ignoreSkinLayouts=function(e,t){var n;if(null!=t&&t.length&&null!=e&&e.length)return n=e,t.forEach(function(t){var r,i,e;-1<t.indexOf(".")?(e=t.split("."),r=e[0],i=e[1],(e=n.find(function(e){return e.name===r}))&&(e.children=e.children.filter(function(e){return e.name!==i}))):n=n.filter(function(e){return e.name!==t})}),n},f.exports.getLiveHostByRegion=function(e){var t="live.aliyuncs.com";return e&&-1<["ap-southeast-1","eu-central-1"].indexOf(e)?"live."+e+".aliyuncs.com":t},f.exports.isVideoTag=function(e){return e&&"string"==typeof e.nodeName&&"video"===e.nodeName.toLowerCase()},f.exports.unqiueTextTracks=function(e){var t=[],t=(e=void 0===e?[]:e).reduce(function(e,t){var r;return e.some(function(e){return e.srclang===t.srclang})?e:((r=t).label=t.label||t.srclang,[].concat(e,[r]))},[]),r={};return t.forEach(function(e,t){r[e.label]?r[e.label].push(t):r[e.label]=[t]}),Object.keys(r).forEach(function(e){e=r[e]||[];1<e.length&&e.forEach(function(e){t[e].label=t[e].label+"("+t[e].srclang+")"})}),t},f.exports.isHvc1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("hvc1")},f.exports.isHev1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("hev1")},f.exports.isVvccCodec=function(e){return-1<(e=void 0===e?"":e).indexOf("vvcC")},f.exports.isVvc1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("vvc1")},f.exports.isVvi1Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("vvi1")},f.exports.isH265Codec=function(e){return f.exports.isHvc1Codec(e=void 0===e?"":e)||f.exports.isHev1Codec(e)},f.exports.isH266Codec=function(e){return f.exports.isVvccCodec(e=void 0===e?"":e)||f.exports.isVvc1Codec(e)||f.exports.isVvi1Codec(e)},f.exports.isH264Codec=function(e){return-1<(e=void 0===e?"":e).indexOf("avc1")},f.exports.getVideoTrack=function(e){var t;return(e=void 0===e?[]:e).forEach(function(e){1===Number(e.type)&&(t=e)}),t},l.IS_ANDROID&&(l.dingTalk()||l.IS_UC||l.is_X5||l.IS_HUAWEI||l.IS_XIAOMI||l.IS_OPPO||l.IS_VIVO||l.IS_MEIZU||l.IS_SAMSUNG||l.IS_WEBVIEW)||l.os&&"windows"===l.os.name&&l.IS_UC);f.exports.shouldUseBasePlayer=function(e,t){var r,i,n,o=e.codecTag,e=e.url,a="supported",s="unsupported";return!o||(n=f.exports.isHvc1Codec(o),r=f.exports.isMp4(e),e=f.exports.isHls(e),r&&f.exports.nativeSupportH265()&&n)||r&&(()=>{if(!(!u&&(l.IS_CHROME||l.IS_EDGE_NEW)))return!1;var t=0;try{t=l.USER_AGENT.match(/Chrome\/(\d+)/i)[1]}catch(e){t=0}return!(parseInt(t)<104||!window.MediaSource||!window.MediaSource.isTypeSupported('video/mp4;codecs="hvc1.1.6.L120.90"'))})()?t(!0):u?(n=f.exports.getHistoryDetectResult(o,i=e?"hls":"mp4"))===a?t(!0):n===s?t(!1):void c({codecTags:[o],format:i,timeout:2e3}).then(function(e){e=e.isHev1Supported||e.isHvc1Supported;if(f.exports.setHistoryDetectResult(o,i,e?a:s),e)return t(!0);t(!1)}).catch(function(e){console.log("hevcDetector ERROR",e),t(!1)}):t(!1)},f.exports.parseHttpHeaders=function(e){if(e){var r={};try{e instanceof Response?e.headers.forEach(function(e,t){r[t]=e}):e.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(function(e){var e=e.split(": "),t=e.shift(),e=e.join(": ");r[t]=e})}catch(e){}return r}},f.exports.detectRegionBlock=function(e,i){s.get(e,function(){i(!1)},function(e,t,r){r=f.exports.parseHttpHeaders(r)["x-tengine-error"];403===t&&r&&-1<o.RegionBlockMessages.indexOf(r)?i(!0):i(!1)})},f.exports.drawSnapshotText=function(e,t){t=t.snapshotWatermark;t&&t.text&&(e.font=t.font,t.fillColor&&(e.fillStyle=t.fillColor,e.fillText(t.text,t.left,t.top)),t.strokeColor&&(e.strokeStyle=t.strokeColor,e.strokeText(t.text,t.left,t.top)),e.stroke())},f.exports.hasValue=function(e){return null!=e&&""!==e}},{"../config":7,"../lang/index":18,"../player/base/plugin/defaultemptycomponent":87,"./constants":22,"./cookie":23,"./dom":25,"./hardware-decoding-detector":29,"./io":33,"./object":35,"./ua":39}],38:[function(e,t,r){t.exports.set=function(t,r){try{window.localStorage&&localStorage.setItem(t,r)}catch(e){window[t+"_localStorage"]=r}},t.exports.get=function(t){try{if(window.localStorage)return localStorage.getItem(t)}catch(e){return window[t+"_localStorage"]}return""}},{}],39:[function(e,P,t){var r,i,n;if(P.exports.USER_AGENT=navigator.userAgent,P.exports.IS_IPHONE=/iPhone/i.test(P.exports.USER_AGENT),P.exports.IS_IPAD=/iPad/i.test(P.exports.USER_AGENT),P.exports.IS_IPOD=/iPod/i.test(P.exports.USER_AGENT),P.exports.IS_MAC=/mac/i.test(P.exports.USER_AGENT),P.exports.IS_EDGE=/Edge/i.test(P.exports.USER_AGENT),P.exports.IS_EDGE_NEW=/Edg/i.test(P.exports.USER_AGENT)&&!P.exports.IS_EDGE,P.exports.IS_IE11=/Trident\/7.0/i.test(P.exports.USER_AGENT),P.exports.IS_X5=/qqbrowser/i.test(P.exports.USER_AGENT.toLowerCase()),P.exports.IS_CHROME=/Chrome/i.test(P.exports.USER_AGENT)&&!P.exports.IS_EDGE&&!P.exports.IS_EDGE_NEW&&!P.exports.IS_X5,P.exports.IS_SAFARI=/Safari/i.test(P.exports.USER_AGENT)&&!P.exports.IS_CHROME&&!P.exports.IS_EDGE_NEW,P.exports.IS_FIREFOX=/Firefox/i.test(P.exports.USER_AGENT),P.exports.IS_UC=/ucweb|UCBrowser|UBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_QUARK=/Quark/i.test(P.exports.USER_AGENT),P.exports.IS_HUAWEI=/HuaweiBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_XIAOMI=/MiuiBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_OPPO=/HeyTapBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_VIVO=/VivoBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_MEIZU=/MZBrowser/i.test(P.exports.USER_AGENT),P.exports.IS_SAMSUNG=/samsungbrowser/i.test(P.exports.USER_AGENT),P.exports.IS_BAIDU=/baiduboxapp/i.test(P.exports.USER_AGENT),document.all)try{var o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");P.exports.HAS_FLASH=!!o}catch(e){P.exports.HAS_FLASH=!1}else navigator.plugins&&0<navigator.plugins.length?(o=navigator.plugins["Shockwave Flash"],P.exports.HAS_FLASH=!!o):P.exports.HAS_FLASH=!1;P.exports.IS_MAC_SAFARI=P.exports.IS_MAC&&P.exports.IS_SAFARI&&!P.exports.IS_CHROME&&!P.exports.HAS_FLASH,P.exports.IS_IOS=P.exports.IS_IPHONE||P.exports.IS_IPAD||P.exports.IS_IPOD,P.exports.IOS_VERSION=(()=>{var e=P.exports.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]})(),P.exports.IOS_FULL_VERSION=(()=>{var e=P.exports.USER_AGENT.match(/OS (\d+)_(\d+)_?/i);if(e&&e[1]&&e[2])return e[1]+"."+e[2]})(),P.exports.IS_HARMONY=/OpenHarmony/i.test(P.exports.USER_AGENT),P.exports.IS_ANDROID=/Android/i.test(P.exports.USER_AGENT)||P.exports.IS_HARMONY,P.exports.ANDROID_VERSION=(o=P.exports.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(i=o[1]&&parseFloat(o[1]),r=o[2]&&parseFloat(o[2]),i&&r?parseFloat(o[1]+"."+o[2]):i||null):null,P.exports.IS_OLD_ANDROID=P.exports.IS_ANDROID&&/webkit/i.test(P.exports.USER_AGENT)&&P.exports.ANDROID_VERSION<2.3,P.exports.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),P.exports.IS_MOBILE=P.exports.IS_IOS||P.exports.IS_ANDROID,P.exports.IS_H5=P.exports.IS_MOBILE||!P.exports.HAS_FLASH,P.exports.IS_PC=!P.exports.IS_MOBILE,P.exports.is_X5=/micromessenger/i.test(P.exports.USER_AGENT)||/qqbrowser/i.test(P.exports.USER_AGENT),P.exports.IS_ANDROID_FIREFOX=P.exports.IS_ANDROID&&P.exports.IS_FIREFOX,P.exports.CHROME_VERSION=P.exports.IS_CHROME&&P.exports.USER_AGENT.match(/Chrome\/(\d+)/i)[1],P.exports.getHost=function(e){var t,r,i="";return void 0===e||null==e||""==e?"":(t=e.indexOf("//"),r=e,i=r=-1<t?e.substring(t+2):r,(e=(i=(e=r.split("/"))&&0<e.length?e[0]:i).split(":"))&&0<e.length?e[0]:i)},P.exports.dingTalk=function(){var e=P.exports.USER_AGENT.toLowerCase();return/dingtalk/i.test(e)},P.exports.IS_DINGTALK=P.exports.dingTalk(),P.exports.wechat=function(){var e=P.exports.USER_AGENT.toLowerCase();return/micromessenger/i.test(e)},P.exports.inIFrame=function(){return self!=top},P.exports.getReferer=function(){var t=document.referrer;if(P.exports.inIFrame())try{t=top.document.referrer}catch(e){t=document.referrer}return t},P.exports.getHref=function(){location.href;if(P.exports.inIFrame())try{top.location.href}catch(e){location.href}return location.href},P.exports.check360=function(){return-1!=navigator.userAgent.indexOf("Safari")?(()=>{var e=navigator.userAgent.split(" ");if(-1!=e[e.length-1].indexOf("Safari"))for(var t in navigator.plugins)if("np-mswmp.dll"==navigator.plugins[t].filename)return!0;return!1})():(null==navigator.msPointerEnabled||navigator.msPointerEnabled)&&(1==navigator.msDoNotTrack||1==window.doNotTrack)&&(!!Number(window.screenX)&&window.screenLeft-window.screenX!=8||(-1!=navigator.userAgent.indexOf("MSIE 7.0")||-1!=navigator.userAgent.indexOf("MSIE 8.0"))&&null==console.count)},function(e,t){var r=this.os={},i=this.browser={},n=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),o=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=!!e.match(/\(Macintosh\; Intel /),s=e.match(/(iPad).*OS\s([\d_]+)/),l=e.match(/(iPod)(.*OS\s([\d_]+))?/),c=!s&&e.match(/(iPhone\sOS)\s([\d_]+)/),u=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),t=/Win\d{2}|Windows/.test(t),p=e.match(/Windows Phone ([\d.]+)/),d=u&&e.match(/TouchPad/),h=e.match(/Kindle\/([\d.]+)/),f=e.match(/Silk\/([\d._]+)/),_=e.match(/(BlackBerry).*Version\/([\d.]+)/),y=e.match(/(BB10).*Version\/([\d.]+)/),g=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=e.match(/PlayBook/),m=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),S=e.match(/Firefox\/([\d.]+)/),T=e.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),b=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),E=!m&&e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),w=E||e.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(i.webkit=!!n)&&(i.version=n[1]),o&&(r.android=!0,r.version=o[2]),c&&!l&&(r.ios=r.iphone=!0,r.version=c[2].replace(/_/g,".")),s&&(r.ios=r.ipad=!0,r.version=s[2].replace(/_/g,".")),l&&(r.ios=r.ipod=!0,r.version=l[3]?l[3].replace(/_/g,"."):null),p&&(r.wp=!0,r.version=p[1]),u&&(r.webos=!0,r.version=u[2]),d&&(r.touchpad=!0),_&&(r.blackberry=!0,r.version=_[2]),y&&(r.bb10=!0,r.version=y[2]),g&&(r.rimtabletos=!0,r.version=g[2]),v&&(i.playbook=!0),h&&(r.kindle=!0,r.version=h[1]),f&&(i.silk=!0,i.version=f[1]),!f&&r.android&&e.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),S&&(i.firefox=!0,i.version=S[1]),T&&(r.firefoxos=!0,r.version=T[1]),b&&(i.ie=!0,i.version=b[1]),w&&(a||r.ios||t||o)&&(i.safari=!0,r.ios||r.android||(i.version=w[1])),r.ios&&(i.version=r.version),E&&(i.webview=!0),a&&((n=e.match(/[\d]*_[\d]*_[\d]*/))&&0<n.length&&n[0]&&(r.version=n[0].replace(/_/g,".")),/MQBHD/.test(e))&&(i.version=((e.match(/.*OS\s([\d_]+)/)||[])[1]||"").replace(/_/g,".")),r.tablet=!!(s||v||o&&!e.match(/Mobile/)||S&&e.match(/Tablet/)||b&&!e.match(/Phone/)&&e.match(/Touch/)),r.phone=!(r.tablet||r.ipod||!(o||c||u||_||y||m&&e.match(/Android/)||m&&e.match(/CriOS\/([\d.]+)/)||S&&e.match(/Mobile/)||b&&e.match(/Touch/))),r.pc=!r.tablet&&!r.phone,a?r.name="macOS":t?(r.name="windows",r.version=(()=>{var e=navigator.userAgent,t="";return(-1<e.indexOf("Windows NT 5.0")||-1<e.indexOf("Windows 2000"))&&(t="2000"),(-1<e.indexOf("Windows NT 5.1")||-1<e.indexOf("Windows XP"))&&(t="XP"),(-1<e.indexOf("Windows NT 5.2")||-1<e.indexOf("Windows 2003"))&&(t="2003"),(-1<e.indexOf("Windows NT 6.0")||-1<e.indexOf("Windows Vista"))&&(t="Vista"),(-1<e.indexOf("Windows NT 6.1")||-1<e.indexOf("Windows 7"))&&(t="7"),(-1<e.indexOf("Windows NT 6.2")||-1<e.indexOf("Windows 8"))&&(t="8"),(-1<e.indexOf("Windows NT 6.3")||-1<e.indexOf("Windows 8.1"))&&(t="8.1"),t=-1<e.indexOf("Windows NT 10")||-1<e.indexOf("Windows 10")?"10":t})()):r.name=(()=>{var e=navigator.userAgent,t="other",r=P.exports.os;return r.ios?"iOS":r.android?"android":-1<e.indexOf("Baiduspider")?"Baiduspider":-1<e.indexOf("PlayStation")?"PS4":(r="Win32"==navigator.platform||"Windows"==navigator.platform||-1<e.indexOf("Windows"),(e="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform)&&(t="macOS"),"X11"!=navigator.platform||r||e||(t="Unix"),-1<String(navigator.platform).indexOf("Linux")&&(t="Linux"),r?"windows":t)})(),i.name=(l=navigator.userAgent.toLowerCase(),(p=P.exports.browser).firefox?"Firefox":p.ie?/edge/.test(l)?"Edge":"IE":P.exports.IS_EDGE_NEW?"EdgeChromium":/micromessenger/.test(l)?"\u5fae\u4fe1\u5185\u7f6e\u6d4f\u89c8\u5668":/qqbrowser/.test(l)?"QQ\u6d4f\u89c8\u5668":P.exports.IS_UC?"UC":P.exports.IS_QUARK?"Quark":P.exports.IS_DINGTALK?"Dingtalk":P.exports.IS_HUAWEI?"HuaweiBrowser":P.exports.IS_XIAOMI?"MiBrowser":P.exports.IS_OPPO?"OppoBrowser":P.exports.IS_VIVO?"VivoBrowser":P.exports.IS_MEIZU?"MeizuBrowser":P.exports.IS_SAMSUNG?"SamsungBrowser":P.exports.IS_WEBVIEW||/MQBHD/.test(l)?"webview":p.chrome?"Chrome":p.safari?"Safari":/baiduspider/.test(l)?"Baiduspider":/opera/.test(l)?"Opera":/360se/.test(l)?"360\u6d4f\u89c8\u5668":/bidubrowser/.test(l)?"\u767e\u5ea6\u6d4f\u89c8\u5668":/metasr/.test(l)?"\u641c\u72d7\u6d4f\u89c8\u5668":/lbbrowser/.test(l)?"\u730e\u8c79\u6d4f\u89c8\u5668":/playstation/.test(l)?"PS4\u6d4f\u89c8\u5668":void 0)}.call(P.exports,navigator.userAgent,navigator.platform),P.exports.IS_WEBVIEW=(r=P.exports.USER_AGENT,i=new RegExp("("+["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(Version).*(wv|.0.0.0)","Linux; U; Android"].join("|")+")","ig"),n=new RegExp("("+["VivoBrowser","MZBrowser","MiuiBrowser"].join("|")+")","ig"),!!r.match(i)&&!r.match(n))},{}],40:[function(e,t,r){var s=e("./dom");t.exports.getAbsoluteURL=function(e){return e=e.match(/^https?:\/\//)?e:s.createEl("div",{innerHTML:'<a href="'+e+'">x</a>'}).firstChild.href},t.exports.parseUrl=function(e){var t,r=["protocol","hostname","port","pathname","search","hash","host"],i=s.createEl("a",{href:e}),n=""===i.host&&"file:"!==i.protocol;n&&((t=s.createEl("div")).innerHTML='<a href="'+e+'"></a>',i=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t));for(var o={},a=0;a<r.length;a++)o[r[a]]=i[r[a]];return o.segments=i.pathname.replace(/^\//,"").split("/"),n&&document.body.removeChild(t),o}},{"./dom":25}],41:[function(e,r,t){var i=e("./dom"),n=e("./ua"),o=e("./playerutil");r.exports.formatTime=function(e){e=Math.max(0,e||0);var t,e=Math.floor(e),r=Math.floor(e/3600);return e%=3600,t=Math.floor(e/60),e=e%60,!(r===1/0||isNaN(r)||t===1/0||isNaN(t)||e==1/0||isNaN(e))&&("00"===(r=10<=r?r:"0"+r)?"":r+":")+(10<=t?t:"0"+t)+":"+(10<=e?e:"0"+e)},r.exports.extractTime=function(e){var t;return e?("00"===(t=10<=(t=parseInt(e.getHours()))?t:"0"+t)?"":t+":")+(t=10<=(t=parseInt(e.getMinutes()))?t:"0"+t)+":"+(t=10<=(t=parseInt(e.getSeconds()))?t:"0"+t):""},r.exports.convertToTimestamp=function(e,t){var r="";return e&&(t?r=e.gettime():(r=Date.parse(e),r/=1e3)),r},r.exports.convertToDate=function(e,t){var r="";return e&&(r=new Date).setTime(1e3*e),r},r.exports.parseTime=function(e){var t,r,i;return e?(i=r=t=0,3===(e=e.split(":")).length?(t=e[0],r=e[1],i=e[2]):2===e.length?(r=e[0],i=e[1]):1===e.length&&(i=e[0]),3600*(t=parseInt(t,10))+60*(r=parseInt(r,10))+(i=Math.ceil(parseFloat(i)))):"00:00:00"},r.exports.formatDate=function(e,t){var r,i={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[r]:("00"+i[r]).substr((""+i[r]).length)));return t},r.exports.sleep=function(e){for(var t=Date.now();Date.now()-t<=e;);},r.exports.htmlEncodeAll=function(e){return null==e?"":e.replace(/\</g,"<").replace(/\>/g,">").replace(/\&/g,"&").replace(/"/g,""").replace(/'/g,"'")},r.exports.toBinary=function(e){if(!window.atob)return"";for(var t=atob(e),r=t.length,i=new Uint8Array(r),n=0;n<r;n++)i[n]=t.charCodeAt(n);return i},r.exports.readyBinary=function(e){for(var t=new Uint8Array(e),r=t.length,i="",n=0;n<r;n++)i+=t[n];return i},r.exports.delayHide=function(e,t){e&&(void 0===t&&(t=1e3),e.delayHanlder&&clearTimeout(e.delayHanlder),e.delayHanlder=setTimeout(function(){i.css(e,"display","none")},t))},r.exports.openInFile=function(){return-1!=window.location.protocol.toLowerCase().indexOf("file")},r.exports.contentProtocolMixed=function(e,t,r){return!!((n.os.pc&&(o.isHls(e,r)&&!n.browser.safari||o.isFlv(e,r))||t)&&"https:"==window.location.protocol.toLowerCase()&&e&&-1<e.toLowerCase().indexOf("http://"))},r.exports.queryString=function(e){var t,r,i;return 2===(e=(e=decodeURIComponent(e)).split("?")).length&&(t=e[1].split("&"))?(r={},i=0,$(t).each(function(){var e=t[i].split("=");2===e.length&&(r[e[0]]=e[1].replace(/\+/g," ")),i++}),r):{}},r.exports.log=function(e){var t=window.location.href,t=r.exports.queryString(t);t&&1==t.debug&&console.log(e)},r.exports.arrayBufferToB64=function(e){for(var t="",r=new Uint8Array(e),i=r.byteLength,n=0;n<i;n++)t+=String.fromCharCode(r[n]);return window.btoa(t)},r.exports.b64ToArrayBuffer=function(e){for(var t=atob(e),r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r.buffer},r.exports.throttle=function(a,s){var l=null,c=0;return function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=Date.now(),o=s-(n-c);o<=0?(a.apply(this,r),c=n):(clearTimeout(l),l=setTimeout(function(){a.apply(e,r),c=Date.now()},o))}}},{"./dom":25,"./playerutil":37,"./ua":39}],42:[function(e,t,r){var i,hs="undefined"==typeof Promise?e("es6-promise").Promise:Promise;e=this,i=function(){var x={307:function(e,t,r){e=r.nmd(e);var i="__lodash_hash_undefined__",C=1,F=2,P=9007199254740991,k="[object Arguments]",L="[object Array]",x="[object AsyncFunction]",H="[object Boolean]",B="[object Date]",V="[object Error]",j="[object Function]",W="[object GeneratorFunction]",A="[object Map]",q="[object Number]",G="[object Null]",D="[object Object]",z="[object Promise]",X="[object Proxy]",K="[object RegExp]",R="[object Set]",Y="[object String]",Q="[object Undefined]",n="[object WeakMap]",$="[object ArrayBuffer]",I="[object DataView]",J=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,o={},r=(o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o[k]=o[L]=o[$]=o[H]=o[I]=o[B]=o[V]=o[j]=o[A]=o[q]=o[D]=o[K]=o[R]=o[Y]=o[n]=!1,"object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g),a="object"==typeof self&&self&&self.Object===Object&&self,a=r||a||Function("return this")(),t=t&&!t.nodeType&&t,s=t&&e&&!e.nodeType&&e,s=s&&s.exports===t,l=s&&r.process,t=(()=>{try{return l&&l.binding&&l.binding("util")}catch(e){}})(),r=t&&t.isTypedArray;function ee(e){var r=-1,i=Array(e.size);return e.forEach(function(e,t){i[++r]=[t,e]}),i}function te(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var re,ie,t=Array.prototype,c=Function.prototype,u=Object.prototype,p=a["__core-js_shared__"],ne=c.toString,O=u.hasOwnProperty,oe=(c=/[^.]+$/.exec(p&&p.keys&&p.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",ae=u.toString,se=RegExp("^"+ne.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p=s?a.Buffer:void 0,c=a.Symbol,le=a.Uint8Array,ce=u.propertyIsEnumerable,ue=t.splice,d=c?c.toStringTag:void 0,pe=Object.getOwnPropertySymbols,s=p?p.isBuffer:void 0,de=(re=Object.keys,ie=Object,function(e){return re(ie(e))}),t=b(a,"DataView"),h=b(a,"Map"),p=b(a,"Promise"),he=b(a,"Set"),a=b(a,"WeakMap"),f=b(Object,"create"),fe=E(t),_e=E(h),ye=E(p),ge=E(he),ve=E(a),c=c?c.prototype:void 0,me=c?c.valueOf:void 0;function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function g(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function v(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new g;++t<r;)this.add(e[t])}function N(e){e=this.__data__=new y(e);this.size=e.size}function Se(e,t){var r,i,n,o=U(e),a=!o&&Ce(e),s=!o&&!a&&ke(e),l=!o&&!a&&!s&&Ie(e),c=o||a||s||l,u=c?((e,t)=>{for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i})(e.length,String):[],p=u.length;for(r in e)!t&&!O.call(e,r)||c&&("length"==r||s&&("offset"==r||"parent"==r)||l&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||(i=r,n=p,(n=null==n?P:n)&&("number"==typeof i||Z.test(i))&&-1<i&&i%1==0&&i<n))||u.push(r);return u}function m(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function S(e){{if(null==e)return void 0===e?Q:G;if(d&&d in Object(e)){var t=e,r=O.call(t,d),i=t[d];try{var n=!(t[d]=void 0)}catch(t){}var o=ae.call(t);return n&&(r?t[d]=i:delete t[d]),o}return ae.call(e)}}function Te(e){return w(e)&&S(e)==k}function be(e,t,r,i,n){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:((e,t,r,i,n,o)=>{var a=U(e),s=U(t),l=a?L:M(e),s=s?L:M(t),c=(l=l==k?D:l)==D,u=(s=s==k?D:s)==D;if((s=l==s)&&ke(e)){if(!ke(t))return!1;c=!(a=!0)}if(s&&!c)return o=o||new N,(a||Ie(e)?Ee:(e,t,r,i,n,o)=>{switch(l){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $:return!(e.byteLength!=t.byteLength||!n(new le(e),new le(t)));case H:case B:case q:return xe(+e,+t);case V:return e.name==t.name&&e.message==t.message;case K:case Y:return e==t+"";case A:var a=ee;case R:a=a||te;if(e.size!=t.size&&!(r&C))return!1;var s=o.get(e);if(s)return s==t;r|=F,o.set(e,t);s=Ee(a(e),a(t),r,i,n,o);return o.delete(e),s;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1})(e,t,r,i,n,o);if(!(r&C)){a=c&&O.call(e,"__wrapped__"),c=u&&O.call(t,"__wrapped__");if(a||c)return n(a?e.value():e,c?t.value():t,r,i,o=o||new N)}if(s){o=o||new N;var p=e,d=t,h=r,f=i,_=n,y=o,g=h&C,v=we(p),m=v.length;if(m!=we(d).length&&!g)return!1;for(var S=m;S--;){var T=v[S];if(!(g?T in d:O.call(d,T)))return!1}u=y.get(p);if(u&&y.get(d))return u==d;for(var b=!0,E=(y.set(p,d),y.set(d,p),g);++S<m;){var w,P=p[T=v[S]],x=d[T];if(!(void 0===(w=f?g?f(x,P,T,d,p,y):f(P,x,T,p,d,y):w)?P===x||_(P,x,h,f,y):w)){b=!1;break}E=E||"constructor"==T}return b&&!E&&(u=p.constructor)!=(a=d.constructor)&&"constructor"in p&&"constructor"in d&&!("function"==typeof u&&u instanceof u&&"function"==typeof a&&a instanceof a)&&(b=!1),y.delete(p),y.delete(d),b}return!1})(e,t,r,i,be,n))}function Ee(e,t,r,i,n,o){var a=r&C,s=e.length,l=t.length;if(s!=l&&!(a&&s<l))return!1;l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,u=!0,p=r&F?new v:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var d,h=e[c],f=t[c];if(void 0!==(d=i?a?i(f,h,c,t,e,o):i(h,f,c,e,t,o):d)){if(d)continue;u=!1;break}if(p){if(!((e,t)=>{for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return 1})(t,function(e,t){return!p.has(t)&&(h===e||n(h,e,r,i,o))&&p.push(t)})){u=!1;break}}else if(h!==f&&!n(h,f,r,i,o)){u=!1;break}}return o.delete(e),o.delete(t),u}function we(e){var t=Pe,r=Oe(e);if(U(e))return r;for(var i=r,n=t(e),o=-1,a=n.length,s=i.length;++o<a;)i[s+o]=n[o];return i}function T(e,t){var r,e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function b(e,t){e=null==e?void 0:e[t];return!De(t=e)||oe&&oe in t||!(Le(t)?se:J).test(E(t))?void 0:e}_.prototype.clear=function(){this.__data__=f?f(null):{},this.size=0},_.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},_.prototype.get=function(e){var t,r=this.__data__;return f?(t=r[e])===i?void 0:t:O.call(r,e)?r[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return f?void 0!==t[e]:O.call(t,e)},_.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=f&&void 0===t?i:t,this},y.prototype.clear=function(){this.__data__=[],this.size=0},y.prototype.delete=function(e){var t=this.__data__,e=m(t,e);return!(e<0||(e==t.length-1?t.pop():ue.call(t,e,1),--this.size,0))},y.prototype.get=function(e){var t=this.__data__,e=m(t,e);return e<0?void 0:t[e][1]},y.prototype.has=function(e){return-1<m(this.__data__,e)},y.prototype.set=function(e,t){var r=this.__data__,i=m(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},g.prototype.clear=function(){this.size=0,this.__data__={hash:new _,map:new(h||y),string:new _}},g.prototype.delete=function(e){e=T(this,e).delete(e);return this.size-=e?1:0,e},g.prototype.get=function(e){return T(this,e).get(e)},g.prototype.has=function(e){return T(this,e).has(e)},g.prototype.set=function(e,t){var r=T(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},v.prototype.add=v.prototype.push=function(e){return this.__data__.set(e,i),this},v.prototype.has=function(e){return this.__data__.has(e)},N.prototype.clear=function(){this.__data__=new y,this.size=0},N.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},N.prototype.get=function(e){return this.__data__.get(e)},N.prototype.has=function(e){return this.__data__.has(e)},N.prototype.set=function(e,t){var r=this.__data__;if(r instanceof y){var i=r.__data__;if(!h||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new g(i)}return r.set(e,t),this.size=r.size,this};var Pe=pe?function(e){if(null==e)return[];e=Object(e);for(var t=pe(e),r=-1,i=null==t?0:t.length,n=0,o=[];++r<i;){var a=t[r];ce.call(e,a)&&(o[n++]=a)}return o}:function(){return[]},M=S;function E(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(t&&M(new t(new ArrayBuffer(1)))!=I||h&&M(new h)!=A||p&&M(p.resolve())!=z||he&&M(new he)!=R||a&&M(new a)!=n)&&(M=function(e){var t=S(e),e=t==D?e.constructor:void 0,e=e?E(e):"";if(e)switch(e){case fe:return I;case _e:return A;case ye:return z;case ge:return R;case ve:return n}return t});var Ce=Te(function(){return arguments}())?Te:function(e){return w(e)&&O.call(e,"callee")&&!ce.call(e,"callee")},U=Array.isArray,ke=s||function(){return!1};function Le(e){if(De(e))return(e=S(e))==j||e==W||e==x||e==X}function Ae(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=P}function De(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function w(e){return null!=e&&"object"==typeof e}var Re,Ie=r?(Re=r,function(e){return Re(e)}):function(e){return w(e)&&Ae(e.length)&&!!o[S(e)]};function Oe(e){return(null!=e&&Ae(e.length)&&!Le(e)?Se:e=>{if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||u))return de(e);var t,r,i=[];for(r in Object(e))O.call(e,r)&&"constructor"!=r&&i.push(r);return i})(e)}e.exports=function(e,t){return be(e,t)}},801:function(e){e.exports=function(e){return void 0===e}},378:function(e,t,r){e=r.nmd(e);var M,U,F="__lodash_hash_undefined__",H=9007199254740991,B="[object Arguments]",V="[object AsyncFunction]",j="[object Function]",W="[object GeneratorFunction]",q="[object Null]",G="[object Object]",z="[object Proxy]",X="[object Undefined]",K=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,i={},r=(i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i[B]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i[j]=i["[object Map]"]=i["[object Number]"]=i[G]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,"object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g),n="object"==typeof self&&self&&self.Object===Object&&self,n=r||n||Function("return this")(),t=t&&!t.nodeType&&t,o=t&&e&&!e.nodeType&&e,t=o&&o.exports===t,a=t&&r.process,r=(()=>{try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}})(),r=r&&r.isTypedArray,Q=Array.prototype,s=Function.prototype,l=Object.prototype,c=n["__core-js_shared__"],S=s.toString,T=l.hasOwnProperty,$=(s=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",J=l.toString,Z=S.call(Object),ee=RegExp("^"+S.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),c=t?n.Buffer:void 0,s=n.Symbol,te=n.Uint8Array,re=(c&&c.allocUnsafe,M=Object.getPrototypeOf,function(e){return M(U(e))}),ie=(U=Object).create,ne=l.propertyIsEnumerable,oe=Q.splice,u=s?s.toStringTag:void 0,p=(()=>{try{var e=m(Object,"defineProperty");return e({},"",{}),e}catch(e){}})(),t=c?c.isBuffer:void 0,ae=Math.max,se=Date.now,le=m(n,"Map"),d=m(Object,"create"),ce=function(e){if(!I(e))return{};if(ie)return ie(e);h.prototype=e;e=new h;return h.prototype=void 0,e};function h(){}function f(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function b(e){e=this.__data__=new _(e);this.size=e.size}function ue(e,t){var r,i=A(e),n=!i&&L(e),o=!i&&!n&&Se(e),a=!i&&!n&&!o&&Ee(e),s=i||n||o||a,l=s?((e,t)=>{for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i})(e.length,String):[],c=l.length;for(r in e)!t&&!T.call(e,r)||s&&("length"==r||o&&("offset"==r||"parent"==r)||a&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||ge(r,c))||l.push(r);return l}function pe(e,t,r){(void 0===r||k(e[t],r))&&(void 0!==r||t in e)||E(e,t,r)}function g(e,t){for(var r=e.length;r--;)if(k(e[r][0],t))return r;return-1}function E(e,t,r){"__proto__"==t&&p?p(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}f.prototype.clear=function(){this.__data__=d?d(null):{},this.size=0},f.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},f.prototype.get=function(e){var t,r=this.__data__;return d?(t=r[e])===F?void 0:t:T.call(r,e)?r[e]:void 0},f.prototype.has=function(e){var t=this.__data__;return d?void 0!==t[e]:T.call(t,e)},f.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=d&&void 0===t?F:t,this},_.prototype.clear=function(){this.__data__=[],this.size=0},_.prototype.delete=function(e){var t=this.__data__,e=g(t,e);return!(e<0||(e==t.length-1?t.pop():oe.call(t,e,1),--this.size,0))},_.prototype.get=function(e){var t=this.__data__,e=g(t,e);return e<0?void 0:t[e][1]},_.prototype.has=function(e){return-1<g(this.__data__,e)},_.prototype.set=function(e,t){var r=this.__data__,i=g(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},y.prototype.clear=function(){this.size=0,this.__data__={hash:new f,map:new(le||_),string:new f}},y.prototype.delete=function(e){e=v(this,e).delete(e);return this.size-=e?1:0,e},y.prototype.get=function(e){return v(this,e).get(e)},y.prototype.has=function(e){return v(this,e).has(e)},y.prototype.set=function(e,t){var r=v(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},b.prototype.clear=function(){this.__data__=new _,this.size=0},b.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},b.prototype.get=function(e){return this.__data__.get(e)},b.prototype.has=function(e){return this.__data__.has(e)},b.prototype.set=function(e,t){var r=this.__data__;if(r instanceof _){var i=r.__data__;if(!le||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new y(i)}return r.set(e,t),this.size=r.size,this};var de,he=function(e,t,r){for(var i=-1,n=Object(e),o=r(e),a=o.length;a--;){var s=o[de?a:++i];if(!1===t(n[s],s,n))break}return e};function w(e){{if(null==e)return void 0===e?X:q;if(u&&u in Object(e)){var t=e,r=T.call(t,u),i=t[u];try{var n=!(t[u]=void 0)}catch(t){}var o=J.call(t);return n&&(r?t[u]=i:delete t[u]),o}return J.call(e)}}function fe(e){return O(e)&&w(e)==B}function _e(e){return I(e)&&!($&&$ in e)&&(R(e)?ee:K).test((e=>{if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""})(e))}function ye(_,y,g,v,m){_!==y&&he(y,function(e,t){var r,i,n,o,a,s,l,c,u,p,d,h,f;m=m||new b,I(e)?(i=y,o=g,a=ye,s=v,l=m,d=P(r=_,n=t),h=P(i,n),(f=l.get(h))||((i=void 0===(f=s?s(d,h,n+"",r,i,l):void 0))&&(c=!(p=A(h))&&Se(h),u=!p&&!c&&Ee(h),f=h,p||c||u?f=A(d)?d:O(p=d)&&D(p)?((e,t)=>{var r=-1,i=e.length;for(t=t||Array(i);++r<i;)t[r]=e[r];return t})(d):c?(i=!1,h.slice()):u?(i=!1,u=new(c=(p=h).buffer).constructor(c.byteLength),new te(u).set(new te(c)),new p.constructor(u,p.byteOffset,p.length)):[]:(e=>{if(O(e)&&w(e)==G)return null===(e=re(e))||"function"==typeof(e=T.call(e,"constructor")&&e.constructor)&&e instanceof e&&S.call(e)==Z})(h)||L(h)?L(f=d)?f=(()=>{for(var e,t,r=d,i=we(d),n=void 0,o=!n,a=(n=n||{},-1),s=i.length;++a<s;){var l=i[a],c=void 0;void 0===c&&(c=r[l]),o?E(n,l,c):(c=c,t=void 0,t=(e=n)[l=l],T.call(e,l)&&k(t,c)&&(void 0!==c||l in e)||E(e,l,c))}return n})():I(d)&&!R(d)||(f="function"!=typeof h.constructor||ve(h)?{}:ce(re(h))):i=!1),i&&(l.set(h,f),a(f,h,o,s,l),l.delete(h))),pe(r,n,f)):(c=v?v(P(_,t),e,t+"",_,y,m):void 0,pe(_,t,c=void 0===c?e:c))},we)}function v(e,t){var r,e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function m(e,t){e=null==e?void 0:e[t];return _e(e)?e:void 0}function ge(e,t){var r=typeof e;return(t=null==t?H:t)&&("number"==r||"symbol"!=r&&Y.test(e))&&-1<e&&e%1==0&&e<t}function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||l)}function P(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}me=p?function(e,t){return p(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Le,C=x=0;var me,x,C,Q=function(){var e=se(),t=16-(e-C);if(C=e,0<t){if(800<=++x)return arguments[0]}else x=0;return me.apply(void 0,arguments)};function k(e,t){return e===t||e!=e&&t!=t}var L=fe(function(){return arguments}())?fe:function(e){return O(e)&&T.call(e,"callee")&&!ne.call(e,"callee")},A=Array.isArray;function D(e){return null!=e&&Te(e.length)&&!R(e)}var Se=t||function(){return!1};function R(e){if(I(e))return(e=w(e))==j||e==W||e==V||e==z}function Te(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=H}function I(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){return null!=e&&"object"==typeof e}var be,Ee=r?(be=r,function(e){return be(e)}):function(e){return O(e)&&Te(e.length)&&!!i[w(e)]};function we(e){if(D(e))return ue(e,!0);var t=e;if(I(t)){var r,i=ve(t),n=[];for(r in t)("constructor"!=r||!i&&T.call(t,r))&&n.push(r);return n}var o=[];if(null!=t)for(var a in Object(t))o.push(a);return o}Pe=function(e,t,r){ye(e,t,r)};var Pe,xe,Ce,N,ke,c=Q((Ce=s=function(e,t){var r=-1,i=t.length,n=1<i?t[i-1]:void 0,o=2<i?t[2]:void 0,n=3<Pe.length&&"function"==typeof n?(i--,n):void 0;for(o&&((e,t,r)=>{var i;if(I(r))return("number"==(i=typeof t)?D(r)&&ge(t,r.length):"string"==i&&t in r)&&k(r[t],e)})(t[0],t[1],o)&&(n=i<3?void 0:n,i=1),e=Object(e);++r<i;){var a=t[r];a&&Pe(e,a,r)}return e},ke=Le,N=ae(void 0===xe?Ce.length-1:xe,0),function(){for(var e=arguments,t=-1,r=ae(e.length-N,0),i=Array(r);++t<r;)i[t]=e[N+t];for(var t=-1,n=Array(N+1);++t<N;)n[t]=e[t];n[N]=ke(i);var o=Ce,a=this,s=n;switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}),s+"");function Le(e){return e}e.exports=c},775:function(e){var n=Object.prototype.hasOwnProperty;function o(e){return"[Throws: "+(e?e.message:"?")+"]"}function i(e){var t=[];return function r(i){if(null===i||"object"!=typeof i)return i;if(-1!==t.indexOf(i))return"[Circular]";if(t.push(i),"function"==typeof i.toJSON)try{var e=r(i.toJSON());return t.pop(),e}catch(r){return o(r)}return e=Array.isArray(i)?i.map(r):Object.keys(i).reduce(function(e,t){return e[t]=r(((e,t)=>{if(n.call(e,t))try{}catch(e){return o(e)}return e[t]})(i,t)),e},{}),t.pop(),e}(e)}e.exports=function(e,t,r){return JSON.stringify(i(e),t,r)},e.exports.ensureProperties=i}},C={};function i(e){var t=C[e];return void 0!==t||(t=C[e]={id:e,loaded:!1,exports:{}},x[e](t,t.exports,i),t.loaded=!0),t.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var k={},L=(i.r(k),i.d(k,{AACParser:function(){return L},AudioBody:function(){return Ot},AvMultitrackType:function(){return jt},AvcSPS:function(){return we},BasicLoader:function(){return st},BitBuffer:function(){return m},Box:function(){return v},ByteBuffer:function(){return A},CTrackTypeMap:function(){return Oe},Demuxer:function(){return $a},DiscardType:function(){return pe},EAudioCodecID:function(){return Ct},EAudioPacketType:function(){return Dt},EFormatType:function(){return g},EFrameType:function(){return Ht},EH264NALType:function(){return Q},EH265NALType:function(){return R},EH266NALType:function(){return I},EHandlerType:function(){return he},ELoaderStatus:function(){return d},EPID:function(){return ba},ESampleFlag:function(){return E},ESoundType:function(){return At},EStreamType:function(){return lo},ETSPacketType:function(){return Ca},ETagType:function(){return ot},ETrackType:function(){return M},EVideoCodecID:function(){return F},EVideoCommand:function(){return Bt},EVideoPacketType:function(){return Vt},ErrorCode:function(){return de},FLVParser:function(){return Jt},FullBox:function(){return Ue},H264NAL:function(){return Z},H265NAL:function(){return O},H266NAL:function(){return N},HLSParser:function(){return Ha},HevcSPS:function(){return Le},Loader:function(){return ft},LoaderError:function(){return at},MP4Parser:function(){return la},MP4RemuxStream:function(){return cs},MPEGTSParser:function(){return Ma},PAT:function(){return wa},PES:function(){return Pa},PMT:function(){return xa},Remuxer:function(){return ts},SOUND_RATE:function(){return Rt},SOUND_SIZE:function(){return It},ScriptBody:function(){return Wt},TSHeader:function(){return La},TagHeader:function(){return kt},VideoBody:function(){return Gt},VvcSPS:function(){return Ae},esTypeMap:function(){return Ea}}),{}),B=(i.r(L),i.d(L,{AAC_DURATION:function(){return j},AAC_SAMPLING_FREQUENCIES:function(){return V},addADTSHeader:function(){return W},getADTSHeaderLength:function(){return G},getADTSLength:function(){return z},isADTS:function(){return q},readAACSamples:function(){return X}}),{}),A=(i.r(B),i.d(B,{Box:function(){return v},avc1:function(){return ir},avcC:function(){return Be},btrt:function(){return cr},co64:function(){return mo},ctts:function(){return ho},dinf:function(){return p},dref:function(){return dr},edts:function(){return p},elst:function(){return Rr},esds:function(){return zr},ftyp:function(){return Xr},hdlr:function(){return Qr},hev1:function(){return ar},hvc1:function(){return ar},hvcC:function(){return Qe},mdat:function(){return $r},mdhd:function(){return Jr},mdia:function(){return p},mfhd:function(){return Ti},mfra:function(){return p},minf:function(){return p},moof:function(){return _i},moov:function(){return p},mp4a:function(){return Zr},mvex:function(){return wi},mvhd:function(){return ei},pasp:function(){return ii},sdtp:function(){return Ci},sidx:function(){return Ai},stbl:function(){return p},stco:function(){return yo},stsc:function(){return bo},stsd:function(){return Po},stss:function(){return ko},stsz:function(){return Do},stts:function(){return No},tfdt:function(){return Pn},tfhd:function(){return Jn},tkhd:function(){return ai},traf:function(){return vi},trak:function(){return p},trex:function(){return oo},trun:function(){return co},url:function(){return ci},vmhd:function(){return di},vvc1:function(){return Kr},vvcC:function(){return Yt},vvi1:function(){return Yr}}),r.fromUint8=function(e){return new r(e.buffer,e.byteOffset,e.byteLength)},r.concatUint8s=function(e){return this.concatUint8.apply(this,e)},r.concatUint8=function(){for(var t,r,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length<=1?e[0]||new Uint8Array(0):(t=new Uint8Array(e.reduce(function(e,t){return e+t.byteLength},0)),r=0,e.forEach(function(e){t.set(e,r),r+=e.byteLength}),t)},r.concat=function(e,t){return r.concatUint8(new Uint8Array(e),new Uint8Array(t)).buffer},Object.defineProperty(r.prototype,"buffer",{get:function(){return this.dv.buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unreadLength",{get:function(){return Math.max(this.end-this.offset,0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),r.prototype.readFloat=function(e){var t=0;switch(e){case 4:t=this.dv.getFloat32(this.offset);break;case 8:t=this.dv.getFloat64(this.offset);break;default:throw new Error("not supported for read float byte with "+e)}return this.offset+=e,t},r.prototype.back=function(e){this.offset-=e},r.prototype.skip=function(e){this.offset+=e},r.prototype.readInt=function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getInt8(t);case 2:return this.dv.getInt16(t);case 4:return this.dv.getInt32(t);default:throw new Error("not supported for read byte with "+e)}},r.prototype.read=function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getUint8(t);case 2:return this.dv.getUint16(t);case 3:return(this.dv.getUint16(t)<<8)+this.dv.getUint8(t+2);case 4:return this.dv.getUint32(t);default:return this.back(e-4),this.read(e-4)+this.dv.getUint32(t)*Math.pow(256,e-4)}},r.prototype.writeInt=function(e,t){var r=this.offset;switch(this.offset+=e,e){case 1:return this.dv.setInt8(r,t);case 2:return this.dv.setInt16(r,t);case 3:return this.dv.setInt8(r,t>>16),this.dv.setInt16(r+1,65535&t);case 4:return this.dv.setInt32(r,t);default:throw new Error("\u4e0d\u652f\u6301Byte write "+e)}},r.prototype.write=function(e,t){var r=this.offset;switch(this.offset+=e,e){case 1:return this.dv.setUint8(r,t);case 2:return this.dv.setUint16(r,t);case 3:return this.dv.setUint8(r,t>>>16),this.dv.setUint16(r+1,65535&t);case 4:return this.dv.setUint32(r,t);default:throw new Error("\u4e0d\u652f\u6301Byte write "+e)}},r.prototype.readToUint8=function(e){e=new Uint8Array(this.dv.buffer,this.offset,e||this.unreadLength);return this.offset+=e.byteLength,e},r.prototype.readToBuffer=function(e){e=this.offset||e?this.dv.buffer.slice(this.offset,e?this.offset+e:void 0):this.dv.buffer;return this.offset+=e.byteLength,e},r),V=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],j=1024,W=function(e,t){var r=t.audioObjectType,i=t.sampleRate,n=t.samplingFrequencyIndex,o=t.channelCount,t=t.numberOfRawDataBlocksInFrame,t=void 0===t?0:t,a=n,n=(0===n&&0<i&&(a=V.indexOf(i)),e.byteLength+7),i=new Uint8Array(7);return i[0]=255,i[1]=241,i[2]=r-1<<6,i[2]|=a<<2,i[2]|=(4&o)>>2,i[3]=(3&o)<<6,i[3]|=(6144&n)>>11,i[4]=(2047&n)>>3,i[5]=(7&n)<<5,i[5]|=31,i[6]=252,i[6]|=3&t,A.concatUint8(i,e)},q=function(e,t){return t<e.byteLength-1&&255===e[t]&&240==(246&e[t+1])},G=function(e,t){return 1&e[t+1]?7:9},z=function(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5},X=function(e){for(var t,r,i=[],n=0,o=e.byteLength;n+6<o;)q(e,n)?(t=G(e,n),r=z(e,n),i.push({audioObjectType:1+(e[2]>>>6),sampleRate:V[e[2]>>>2&15],samplingFrequencyIndex:e[2]>>>2&15,channelCount:(1&e[2])<<2|e[3]>>>6,numberOfRawDataBlocksInFrame:0,data:e.subarray(n+t,n+r)}),n+=r):n++;return i},m=(K.fromByte=function(e,t){return new K(e.read(t),t<<3)},K.prototype.skip=function(e){this.offset+=e},K.prototype.read=function(e){var t=this.len-this.offset-e;if(0<=t){for(var r=0,i=0;i<e;i++)r+=1<<i;return this.offset+=e,this.num>>>t&r}return console.warn("bit \u8bfb\u53d6\u4f4d\u6570\u8d85\u8fc7\u9650\u5236"),0},K);function K(e,t){this.num=e,this.len=t,this.offset=0}function r(e,t,r){this.dv=new DataView(e),this.offset=t||this.dv.byteOffset,this.start=this.offset,this.end=r?this.start+r:this.dv.byteLength}$.createAnnexbStartCode=function(){return new Uint8Array([0,0,0,1])},$.createVVCAnnexbStartCode=function(){return new Uint8Array([0,0,1])},$.createAVCCStartCode=function(e){return new Uint8Array([e>>24&255,e>>16&255,e>>8&255,255&e])},$.extractAVCCNAL=function(e,t){for(var r,i=[],n=new A(e.buffer,e.byteOffset,e.byteLength);n.unreadLength>t;){if((r=n.read(t+1))<=0||r>n.unreadLength){console.warn("extract avc nalu size wrong! lengthSizeMinusOne:",t,"size:",r);break}var o=n.offset-n.start;i.push(e.subarray(o,o+r)),n.skip(r)}return i},$.extractAnnexbNAL=function(r){for(var e=r.byteLength,i=[],t=0;t<e-3;)0===r[t]?0===r[t+1]?0===r[t+2]?0===r[t+3]?t++:(1===r[t+3]&&t+4<e&&i.push({prefixStart:t,start:t+4}),t+=4):(1===r[t+2]&&i.push({prefixStart:t,start:t+3}),t+=3):t+=2:t++;return i.length?i.map(function(e,t){t=i[t+1];return t?r.subarray(e.start,t.prefixStart):r.subarray(e.start)}):[]};var Y,Q,D=$;function $(){}Y=function(e,t){return(Y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=Q=Q||{})[e.UNUSED=0]="UNUSED",e[e.NON_IDR_SLICE=1]="NON_IDR_SLICE",e[e.DP_A=2]="DP_A",e[e.DP_B=3]="DP_B",e[e.DP_C=4]="DP_C",e[e.IDR=5]="IDR",e[e.SEI=6]="SEI",e[e.SPS=7]="SPS",e[e.PPS=8]="PPS",e[e.DIVIDER=9]="DIVIDER",e[e.SEQUENCE_END=10]="SEQUENCE_END",e[e.STREAM_END=11]="STREAM_END",e[e.FILL=12]="FILL";var R,J,Z=(r=>{function e(e){var t=r.call(this)||this,e=new m(e.read(1),8);return t.forbiddenZeroBit=e.read(1),t.nalRefIdc=e.read(2),t.nalType=e.read(5),t}var t=e,i=r;if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}return Y(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n),e.extractNALType=function(e){return 31&e[0]},e.isSlice=function(e){e=this.extractNALType(e);return e>=Q.NON_IDR_SLICE&&e<=Q.IDR},e})(D),e=(J=function(e,t){return(J=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}J(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(t=R=R||{})[t.TRAIL_N=0]="TRAIL_N",t[t.TRAIL_R=1]="TRAIL_R",t[t.TSA_N=2]="TSA_N",t[t.TSA_R=3]="TSA_R",t[t.STSA_N=4]="STSA_N",t[t.STSA_R=5]="STSA_R",t[t.RADL_N=6]="RADL_N",t[t.RADL_R=7]="RADL_R",t[t.RASL_N=8]="RASL_N",t[t.RASL_R=9]="RASL_R",t[t.VCL_N10=10]="VCL_N10",t[t.VCL_R11=11]="VCL_R11",t[t.VCL_N12=12]="VCL_N12",t[t.VCL_R13=13]="VCL_R13",t[t.VCL_N14=14]="VCL_N14",t[t.VCL_R15=15]="VCL_R15",t[t.BLA_W_LP=16]="BLA_W_LP",t[t.BLA_W_RADL=17]="BLA_W_RADL",t[t.BLA_N_LP=18]="BLA_N_LP",t[t.IDR_W_RADL=19]="IDR_W_RADL",t[t.IDR_N_LP=20]="IDR_N_LP",t[t.CRA=21]="CRA",t[t.VPS=32]="VPS",t[t.SPS=33]="SPS",t[t.PPS=34]="PPS",t[t.ACCESS_UNIT_DELIMITER=35]="ACCESS_UNIT_DELIMITER",t[t.EOS=36]="EOS",t[t.EOB=37]="EOB",t[t.FILLER_DATA=38]="FILLER_DATA",t[t.SEI=39]="SEI",t[t.SEI_SUFFIX=40]="SEI_SUFFIX",t[t.INVALID=64]="INVALID",e(re,te=D),re.extractNALType=function(e,t){return(126&e[t=void 0===t?0:t])>>1},re.isNonRefNALType=function(e){switch(e){case R.TRAIL_N:case R.STSA_N:case R.RADL_N:case R.RASL_N:case R.VCL_N10:case R.VCL_N12:case R.VCL_N14:return!0;default:return!1}},re.isNonRef=function(e){return this.isNonRefNALType(this.extractNALType(e))},re.isSlice=function(e){e=this.extractNALType(e);return e>=R.TRAIL_N&&e<=R.CRA},re.littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]},re.parseHVCVideoData=function(e,t){for(var r=e.byteLength,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=[],o=0,a=0+t,s=this.littleEndian,l=!1;o<r;){if(r<=o+4){console.warn("parseHVCVideoData Malformed Nalu near timestamp "+a+", offset = "+o+", dataSize = "+r);break}var c=i.getUint32(o,!s);if(r-4<c)return void console.warn("parseHVCVideoData Malformed Nalus near timestamp "+a+", NaluSize > DataSize!");var u=i.getUint8(o+4)>>1&63,p=(16<=u&&u<=23&&(l=!0),0+o+4),u={type:u,data:e.subarray(p,p+c)};n.push(u),o+=4+c}return{keyframe:l,units:n}};var I,ee,te,O=re,t=(ee=function(e,t){return(ee=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ee(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function re(e){var t=te.call(this)||this,e=new m(e.read(2),16);return t.forbiddenZeroBit=e.read(1),t.nalType=e.read(6),t.nhLayerId=e.read(6),t.nhTimeId=e.read(3),t}(e=I=I||{})[e.VVC_TRAIL_NUT=0]="VVC_TRAIL_NUT",e[e.VVC_STSA_NUT=1]="VVC_STSA_NUT",e[e.VVC_RADL_NUT=2]="VVC_RADL_NUT",e[e.VVC_RASL_NUT=3]="VVC_RASL_NUT",e[e.VVC_RSV_VCL_4=4]="VVC_RSV_VCL_4",e[e.VVC_RSV_VCL_5=5]="VVC_RSV_VCL_5",e[e.VVC_RSV_VCL_6=6]="VVC_RSV_VCL_6",e[e.VVC_IDR_W_RADL=7]="VVC_IDR_W_RADL",e[e.VVC_IDR_N_LP=8]="VVC_IDR_N_LP",e[e.VVC_CRA_NUT=9]="VVC_CRA_NUT",e[e.VVC_GDR_NUT=10]="VVC_GDR_NUT",e[e.VVC_RSV_IRAP_11=11]="VVC_RSV_IRAP_11",e[e.VVC_OPI_NUT=12]="VVC_OPI_NUT",e[e.VVC_DCI_NUT=13]="VVC_DCI_NUT",e[e.VVC_VPS_NUT=14]="VVC_VPS_NUT",e[e.VVC_SPS_NUT=15]="VVC_SPS_NUT",e[e.VVC_PPS_NUT=16]="VVC_PPS_NUT",e[e.VVC_PREFIX_APS_NUT=17]="VVC_PREFIX_APS_NUT",e[e.VVC_SUFFIX_APS_NUT=18]="VVC_SUFFIX_APS_NUT",e[e.VVC_PH_NUT=19]="VVC_PH_NUT",e[e.VVC_AUD_NUT=20]="VVC_AUD_NUT",e[e.VVC_EOS_NUT=21]="VVC_EOS_NUT",e[e.VVC_EOB_NUT=22]="VVC_EOB_NUT",e[e.VVC_PREFIX_SEI_NUT=23]="VVC_PREFIX_SEI_NUT",e[e.VVC_SUFFIX_SEI_NUT=24]="VVC_SUFFIX_SEI_NUT",e[e.VVC_FD_NUT=25]="VVC_FD_NUT",e[e.VVC_RSV_NVCL_26=26]="VVC_RSV_NVCL_26",e[e.VVC_RSV_NVCL_27=27]="VVC_RSV_NVCL_27",e[e.VVC_UNSPEC_28=28]="VVC_UNSPEC_28",e[e.VVC_UNSPEC_29=29]="VVC_UNSPEC_29",e[e.VVC_UNSPEC_30=30]="VVC_UNSPEC_30",e[e.VVC_UNSPEC_31=31]="VVC_UNSPEC_31",t(oe,ie=D),oe.parseNaluHeader=function(e){return{nuh_layer_id:63&e[0],nal_unit_type:e[1]>>3&31,nuh_temporal_id_plus1:7&e[1]}},oe.extractNALType=function(e){return this.parseNaluHeader(e).nal_unit_type},oe.isNonRefNALType=function(e){switch(e){case I.VVC_IDR_W_RADL:case I.VVC_IDR_N_LP:return!0;default:return!1}},oe.isNonRef=function(e){return this.isNonRefNALType(this.extractNALType(e))},oe.isSlice=function(e){e=this.extractNALType(e);return e<=I.VVC_RASL_NUT||e>=I.VVC_IDR_W_RADL&&e<=I.VVC_GDR_NUT},oe.littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]},oe.parseHVCVideoData=function(e,t){for(var r=e.byteLength,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n=[],o=0,a=0+t,s=this.littleEndian,l=!1;o<r;){if(r<=o+4){console.warn("parseHVCVideoData Malformed Nalu near timestamp "+a+", offset = "+o+", dataSize = "+r);break}var c=i.getUint32(o,!s);if(r-4<c)return void console.warn("parseHVCVideoData Malformed Nalus near timestamp "+a+", NaluSize > DataSize!");var u=i.getUint8(o+4)>>1&63,p=(16<=u&&u<=23&&(l=!0),0+o+4),u={type:u,data:e.subarray(p,p+c)};n.push(u),o+=4+c}return{keyframe:l,units:n}};var ie,N=oe,e=i(307),ne=i.n(e);function oe(e){var t=ie.call(this)||this,e=e.readToUint8(2),e={nuh_layer_id:63&e[0],nal_unit_type:e[1]>>3&31,nuh_temporal_id_plus1:7&e[1]};return t.forbiddenZeroBit=0,t.nalType=e.nal_unit_type,t.nhLayerId=e.nuh_layer_id,t.nhTimeId=e.nuh_temporal_id_plus1,t}function ae(t,r){var i=!1;return Object.keys(r).forEach(function(e){ne()(t[e],r[e])||(t[e]=r[e],i=!0)}),i}function se(e){return e<10?"0"+e:e}var u,t=i(775),le=i.n(t),ce="undefined"!=typeof performance&&"function"==typeof performance.now;function ue(){return(ce?performance:Date).now()}(e=u=u||{})[e.TRACE=-1]="TRACE",e[e.DEBUG=0]="DEBUG",e[e.LOG=1]="LOG",e[e.INFO=2]="INFO",e[e.WARN=10]="WARN",e[e.ERROR=11]="ERROR",e[e.NONE=1e3]="NONE";var pe,de,he,g,M,fe=u.INFO,_e=u.ERROR,ye=2e3,ge=ue(),ve=[],me=0,Se=(o.prototype._print=function(e,t){var r,i,n,o,a,s,l,c;fe<=e&&(r=ue()-ge,n="[".concat(u[e],"][").concat(this.name,"][").concat((i=r,void 0===(n=!0)&&(n=!0),c=Math.floor(i/1e3),n=void 0!==n&&n,((o=c)===1/0?o:(s=Math.floor(o/60),s-=60*(a=Math.floor(s/60)),o=Math.floor(o-60*(60*a+s)),l=[],(n||0<a)&&l.push(se(a)),l.push(se(s)),l.push(se(o)),l.join(":")))+"."+Math.floor(1e3*(i-1e3*c))),"]"),ve.push({id:me++,level:e,name:this.name,timestamp:r,args:t,prefix:n,message:""}),ve.length>ye&&ve.shift(),_e<=e)&&(a=(u[e]||"").toLowerCase(),s=console[a])&&s.apply(void 0,function(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}([n],t,!1))},o.prototype.getLogs=function(){return ve.map(function(e){return e.message=e.prefix+" "+e.args.map(function(e){return"string"==typeof e?e:le()(e)}).join(" "),e})},o.prototype.clear=function(){ve=[]},o.prototype.setSize=function(e){ye=e},o.prototype.setLevel=function(e){fe=e},o.prototype.getLevel=function(){return fe},o.prototype.setPrintLevel=function(e){_e=e},o.prototype.reset=function(){fe=u.INFO,_e=u.ERROR,ye=2e3,ge=ue(),ve=[],me=0},o.LogLevel=u,o),U=(new Se("common"),new Se("demuxer")),Te=(n.prototype.loadWord=function(){var e=this.data,t=this.bytesAvailable,r=e.byteLength-t,i=new Uint8Array(4),t=Math.min(4,t);if(0===t)throw new Error("no bytes available");i.set(e.subarray(r,r+t)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*t,this.bytesAvailable-=t},n.prototype.skipBits=function(e){var t;this.bitsAvailable>e||(e=(e-=this.bitsAvailable)-((t=e>>3)<<3),this.bytesAvailable-=t,this.loadWord()),this.word<<=e,this.bitsAvailable-=e},n.prototype.readBits=function(e){var t=Math.min(this.bitsAvailable,e),r=this.word>>>32-t;return 32<e&&U.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,0<this.bitsAvailable?this.word<<=t:0<this.bytesAvailable&&this.loadWord(),0<(t=e-t)&&this.bitsAvailable?r<<t|this.readBits(t):r},n.prototype.skipLZ=function(){for(var e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},n.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},n.prototype.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},n.prototype.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},n.prototype.readUByte=function(){return this.readBits(8)},n.prototype.readUShort=function(){return this.readBits(16)},n.prototype.readUInt=function(){return this.readBits(32)},n.prototype.skipScalingList=function(e){for(var t=8,r=8,i=0;i<e;i++)t=0===(r=0!==r?(t+this.readEG()+256)%256:r)?t:r},n),be=[100,110,122,244,44,83,86,118,128,138,144],Ee=[[0,1],[1,1],[12,11],[10,11],[16,11],[40,33],[24,11],[20,11],[32,11],[80,33],[18,11],[15,11],[64,33],[160,99],[4,3],[3,2],[2,1]],we=(Re.generateCodec=function(e){return"avc1."+[e.generalProfileIdc,e.generalProfileCompatibility,e.generalLevelIdc].map(function(e){return(e=e.toString(16)).length<2?"0"+e:e}).join("")},Re),Pe=[1,2,2,1],xe=[1,2,1,1],Ce=[1,2,2,1],ke=[1,2,1,1],Le=(De.generateCodec=function(e){var t=["hvc1"],r=e.generalProfileSpace;t.push((0<r&&r<4?String.fromCharCode(64+r):"")+e.generalProfileIdc.toString()),t.push(e.generalProfileCompatibilityFlags.reverse().reduce(function(e,t){return e<<1|t},0).toString(16)),t.push((e.generalTierFlag?"H":"L")+e.generalLevelIdc);for(var i=!1,n=[],o=5;0<=o;o--){var a=e.generalConstraintIndicatorFlags[o];(a||i)&&(n.unshift(a.toString(16)),i=!0)}return t.concat(n).join(".")},De),Ae=function(e){this.log2CtuSizeMinus5=0,this.ptlDpbHrdParamsPresentFlag=0,this.gdrEnabledFlag=0,this.refPicResamplingEnabledFlag=0,this.resChangeInClvsAllowedFlag=0,this.picWidthMaxInLumasamples=0,this.picHeightMaxInLumasamples=0,this.conformanceWindowFlag=0,this.profileTierPresentFlag=0,this.generalProfileIdc=0,this.generalTierFlag=0,this.generalLevelIdc=0,this.ptlFrameOnlyConstraintFlag=0,this.ptlMultiLayerEnabledFlag=0,this.subLayerProfilePresentFlags=[],this.ptlSubLayerLevelPresentFlags=[],this.subLayerLevelIdc=[],this.ptlNumSubProfiles=0,this.generalSubProfileIdc=[],this.gciPresentFlag=0,this.width=0,this.height=0,this.pixelRatio=[],this.codec="vvc1.1.L48.CA";var t,r,i,n=new Te(e),o=0;if(this.spsId=n.readBits(4),this.vpsId=n.readBits(4),this.maxSubLayersMinus1=n.readBits(3),this.chromaFormatIdc=n.readBits(2),this.log2CtuSizeMinus5=n.readBits(2),this.ptlDpbHrdParamsPresentFlag=n.readBits(1),o+=16,this.ptlDpbHrdParamsPresentFlag){if(this.profileTierPresentFlag=1,this.profileTierPresentFlag&&(this.generalProfileIdc=n.readBits(7),this.generalTierFlag=n.readBits(1),o+=8),this.generalLevelIdc=n.readBits(8),o+=8,this.ptlFrameOnlyConstraintFlag=n.readBits(1),this.ptlMultiLayerEnabledFlag=n.readBits(1),o+=2,this.profileTierPresentFlag&&(this.gciPresentFlag=n.readBits(1),o+=1,this.gciPresentFlag)){n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=3,n.skipBits(4),n.skipBits(2),o+=6,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=10,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,n.skipBits(2),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=5,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=16,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=13,n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6;for(var a=n.readBits(8),s=(o+=8,0),l=(5<a&&(n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),n.skipBits(1),o+=6,s=6),0),l=0;l<a-s;l++)n.skipBits(1),o+=1}var e=8-o%8;for(n.skipBits(e),o+=e,l=this.maxSubLayersMinus1-1;0<=l;l--)this.ptlSubLayerLevelPresentFlags[l]=n.readBits(1),o+=1;for(n.skipBits(e=8-o%8),o+=e,l=this.maxSubLayersMinus1-1;0<=l;l--)this.ptlSubLayerLevelPresentFlags[l]&&(this.subLayerLevelIdc[l]=n.readBits(8),o+=8);if(this.profileTierPresentFlag)for(this.ptlNumSubProfiles=n.readBits(8),l=0;l<this.ptlNumSubProfiles;l++)this.generalSubProfileIdc[l]=n.readBits(32),o+=32}this.gdrEnabledFlag=n.readBits(1),this.refPicResamplingEnabledFlag=n.readBits(1),o+=2,this.refPicResamplingEnabledFlag&&(this.resChangeInClvsAllowedFlag=n.readBits(1),o+=1),this.picWidthMaxInLumasamples=n.readUEG(),this.picHeightMaxInLumasamples=n.readUEG(),o+=16,this.conformanceWindowFlag=n.readBits(1),o+=1,this.width=this.picWidthMaxInLumasamples,this.height=this.picHeightMaxInLumasamples,this.conformanceWindowFlag&&(e=Ce[this.chromaFormatIdc],i=ke[this.chromaFormatIdc],t=n.readUEG()*e,e=n.readUEG()*e,r=n.readUEG()*i,i=n.readUEG()*i,this.width-=t+e,this.height-=r+i)};function De(e){var t=this;this.generalProfileSpace=0,this.generalTierFlag=0,this.generalProfileIdc=0,this.generalProfileCompatibilityFlags=[],this.generalConstraintIndicatorFlags=[],this.subLayerProfilePresentFlags=[],this.subLayerLevelPresentFlags=[],this.separateColourPlaneFlag=0,this.pixelRatio=[],this.codec="",this.checkProfileIdc=function(e){return t.generalProfileIdc===e||t.generalProfileCompatibilityFlags[e]};var r,i,n,o,a=new Te(e);for(this.vpsId=a.readBits(4),this.maxSubLayersMinus1=a.readBits(3),this.temporalIdNestingFlag=a.readBits(1),this.generalProfileSpace=a.readBits(2),this.generalTierFlag=a.readBits(1),this.generalProfileIdc=a.readBits(5),r=0;r<32;r++)this.generalProfileCompatibilityFlags[r]=a.readBits(1),0===this.generalProfileIdc&&0<r&&this.generalProfileCompatibilityFlags[r]&&(this.generalProfileIdc=r);for(r=0;r<6;r++)this.generalConstraintIndicatorFlags.push(a.readUByte());for(this.generalLevelIdc=a.readUByte(),r=0;r<this.maxSubLayersMinus1;r++)this.subLayerProfilePresentFlags[r]=a.readBits(1),this.subLayerLevelPresentFlags[r]=a.readBits(1);for(0<this.maxSubLayersMinus1&&a.skipBits(2*(8-this.maxSubLayersMinus1)),r=0;r<this.maxSubLayersMinus1;r++)this.subLayerProfilePresentFlags[r]&&a.skipBits(48),this.subLayerLevelPresentFlags[r]&&a.readUByte();this.spsId=a.readUEG(),this.codec=De.generateCodec(this),this.chromaFormatIdc=a.readUEG(),3===this.chromaFormatIdc&&(this.separateColourPlaneFlag=a.readBits(1)),this.separateColourPlaneFlag&&(this.chromaFormatIdc=0),this.width=a.readUEG(),this.height=a.readUEG(),a.readBits(1)&&(e=Pe[this.chromaFormatIdc],o=xe[this.chromaFormatIdc],i=a.readUEG()*e,e=a.readUEG()*e,n=a.readUEG()*o,o=a.readUEG()*o,this.width-=i+e,this.height-=n+o)}function Re(e){this.generalProfileSpace=0,this.generalTierFlag=0,this.generalProfileIdc=0,this.generalProfileCompatibility=0,this.crop=0,this.cropLeft=0,this.cropRight=0,this.cropTop=0,this.cropBottom=0,this.pixelRatio=[],this.codec="";var t,r,i=new Te(e);if(this.generalProfileIdc=i.readUByte(),this.generalProfileCompatibility=i.readUByte(),this.generalLevelIdc=i.readUByte(),this.spsId=i.readUEG(),this.codec=Re.generateCodec(this),-1<be.indexOf(this.generalProfileIdc)){if(this.chromaFormatIdc=i.readUEG(),3===this.chromaFormatIdc&&i.skipBits(1),i.skipUEG(),i.skipUEG(),i.skipBits(1),i.readBits(1))for(t=0,r=3!==this.chromaFormatIdc?8:12;t<r;t++)i.readBits(1)&&(t<6?i.skipScalingList(16):i.skipScalingList(64))}else this.chromaFormatIdc=1;i.skipUEG();e=i.readUEG();if(0===e)i.skipUEG();else if(1===e)for(i.skipBits(1),i.skipEG(),i.skipEG(),t=0,r=i.readUEG();t<r;t++)i.skipEG();i.skipUEG(),i.skipBits(1);var n,e=i.readUEG()+1,o=i.readUEG()+1,a=i.readBits(1);a||i.skipBits(1),this.height=o*(2-a),i.skipBits(1),this.crop=i.readBits(1),this.crop&&(n=1<<(1===this.chromaFormatIdc||2===this.chromaFormatIdc?1:0),a=2-a<<(1===this.chromaFormatIdc?1:0),this.cropLeft=i.readUEG()*n,this.cropRight=i.readUEG()*n,this.cropTop=i.readUEG()*a,this.cropBottom=i.readUEG()*a),this.width=16*e-(this.cropRight+this.cropLeft),this.height=16*o-(this.cropTop+this.cropBottom),i.readBits(1)&&i.readBits(1)&&(255===(n=i.readUByte())?(this.pixelRatio[0]=i.readUByte()<<8|i.readUByte(),this.pixelRatio[1]=i.readUByte()<<8|i.readUByte()):n<Ee.length&&(this.pixelRatio=Ee[n]))}function n(e){this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}function o(e){var r=this;this.trace=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.TRACE,e)},this.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.DEBUG,e)},this.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.LOG,e)},this.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.INFO,e)},this.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.WARN,e)},this.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r._print(u.ERROR,e)},this.name=e}function Ie(e,t){var r=e.offset;this.start=t,this.size=e.read(4),this.type=String.fromCharCode(e.read(1),e.read(1),e.read(1),e.read(1)).trim(),1===this.size&&(this.size=e.read(8)),this.length=e.offset-r}(t=pe=pe||{})[t.NONE=-16]="NONE",t[t.DEFAULT=0]="DEFAULT",t[t.NONREF=8]="NONREF",t[t.BIDIR=16]="BIDIR",t[t.NONINTRA=24]="NONINTRA",t[t.NONKEY=32]="NONKEY",t[t.ALL=48]="ALL",(e=de=de||{})[e.ABORTED=1]="ABORTED",e[e.NETWORK=2]="NETWORK",e[e.DECODE=3]="DECODE",e[e.SRC_NOT_SUPPORTED=4]="SRC_NOT_SUPPORTED",e[e.PARSER=1001]="PARSER",e[e.WEBGL_NOT_SUPPORTED=10005]="WEBGL_NOT_SUPPORTED",e[e.COROUTINE=20001]="COROUTINE",e[e.BUFFERING=20003]="BUFFERING",e[e.RENDERER=20005]="RENDERER",(t=he=he||{}).VIDE="vide",t.SOUN="soun",(e=g=g||{})[e.FLV=0]="FLV",e[e.MP4=1]="MP4",e[e.HLS=2]="HLS",e[e.MPEGTS=3]="MPEGTS",e[e.UNKNOWN=4]="UNKNOWN",(t=M=M||{})[t.UNKNOWN=0]="UNKNOWN",t[t.VIDEO=1]="VIDEO",t[t.AUDIO=2]="AUDIO",(e={})[he.VIDE]=M.VIDEO,e[he.SOUN]=M.AUDIO;var E,Oe=e,e=((t=E=E||{})[t.DEGRADATION_PRIORITY_MASK=65535]="DEGRADATION_PRIORITY_MASK",t[t.IS_NON_SYNC=65536]="IS_NON_SYNC",t[t.PADDING_MASK=917504]="PADDING_MASK",t[t.REDUNDANCY_MASK=3145728]="REDUNDANCY_MASK",t[t.DEPENDED_MASK=12582912]="DEPENDED_MASK",t[t.DEPENDS_MASK=50331648]="DEPENDS_MASK",t[t.DEPENDS_NO=33554432]="DEPENDS_NO",t[t.DEPENDS_YES=16777216]="DEPENDS_YES",Ye=function(e,t){return(Ye=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Ne=function(){return(Ne=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},Me=new Date("1904-01-01T00:00:00Z").getTime(),v=(et.prototype.append=function(e){this.children.push(e)},et.mapBoxToJSON=function(e){return Ne({box:e},e.children.reduce(function(e,t){var r=t.header.type,i=e[r],t=et.mapBoxToJSON(t);return i?Array.isArray(i)?i.push(t):e[r]=[i,t]:e[r]=t,e},{}))},et),Ue=(e(Ze,Ke=v),Ze),Fe=(Xe=function(e,t){return(Xe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Je);if("function"!=typeof(h=ze=v)&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function He(){this.constructor=Fe}Xe(Fe,h),Fe.prototype=null===h?Object.create(h):(He.prototype=h.prototype,new He);var Be=Je;function Ve(e){for(var t=e.byteLength,r=[],i=1;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?r.push(i+=2):i++;if(0===r.length)return e;for(var n=t-r.length,o=new Uint8Array(n),a=0,i=0;i<n;a++,i++)a===r[0]&&(a++,r.shift()),o[i]=e[a];return o}Ge=function(e,t){return(Ge=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var je=$e;if("function"!=typeof(h=qe=v)&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function We(){this.constructor=je}Ge(je,h),je.prototype=null===h?Object.create(h):(We.prototype=h.prototype,new We);var qe,Ge,ze,Xe,Ke,Ye,Qe=$e;function $e(e,t){var r,i=qe.call(this,e,t)||this;i.nalus=[],i.vps=[],i.sps=[],i.pps=[],i.sei=[],i.configVersion=t.read(1),r=new m(t.read(1),8),i.generalProfileSpace=r.read(2),i.generalTierFlag=r.read(1),i.generalProfileIdc=r.read(5),r=new m(t.read(4),32),i.generalProfileCompatibilityFlags=Array.from(new Array(32)).map(function(){return r.read(1)}),i.generalConstraintIndicatorFlags=Array.from(new Array(6)).map(function(){return t.read(1)}),i.generalLevelIdc=t.read(1),i.minSpatialSegmentationIdc=4095&t.read(2),i.parallelismType=3&t.read(1),i.chromaFormatIdc=3&t.read(1),i.bitDepthLumaMinus8=7&t.read(1),i.bitDepthChromaMinus8=7&t.read(1),i.avgFrameRate=t.read(2),r=new m(t.read(1),8),i.constantFrameRate=r.read(2),i.numTemporalLayers=r.read(3),i.temporalIdNested=r.read(1),i.lengthSizeMinusOne=r.read(2),i.nalus=[];for(var n=t.read(1),o=0;o<n;o++){var a=[],s=(r=new m(t.read(1),8)).read(1);r.read(1);for(var l=r.read(6),c=t.read(2),u=0;u<c;u++)a.push(new Uint8Array(t.read(2)).map(function(){return t.read(1)}));i.nalus.push({completeness:s,type:l,data:a}),l===R.VPS?a.forEach(function(e){return i.vps.push(e)}):l===R.SPS?a.forEach(function(e){return i.sps.push(e)}):l===R.PPS?a.forEach(function(e){return i.pps.push(e)}):l===R.SEI&&a.forEach(function(e){return i.sei.push(e)})}return i.codec=Le.generateCodec(i),i}function Je(e,t){var r=ze.call(this,e,t)||this;r.sps=[],r.pps=[],r.configVersion=t.read(1),r.generalProfileIdc=t.read(1),r.generalProfileCompatibility=t.read(1),r.generalLevelIdc=t.read(1),r.lengthSizeMinusOne=3&t.read(1),r.numOfSequenceParameterSets=31&t.read(1);for(var i,n=0,o=[],n=0;n<r.numOfSequenceParameterSets;n++){for(i=t.read(2),o=[];i--;)o.push(t.read(1));r.sps.push(new Uint8Array(o))}for(r.numOfPictureParameterSets=31&t.read(1),n=0;n<r.numOfPictureParameterSets;n++){for(i=t.read(2),o=[];i--;)o.push(t.read(1));r.pps.push(new Uint8Array(o))}return r.codec=we.generateCodec(r),r}function Ze(e,t){e=Ke.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e}function et(e,t){this.children=[],this.isContainer=!1,this.toStandardTime=function(e){return e&&Me+1e3*e},this.header=e}function tt(){var o=this;this._eventMap={},this.listeners=function(e){return o._eventMap[e]||[]},this.emit=function(e,t){e=o._eventMap[e];return!!Array.isArray(e)&&(e.forEach(function(e){return e(t)}),!0)},this.off=function(e,t){var r=o._eventMap[e];return Array.isArray(r)&&(o._eventMap[e]=r.filter(function(e){return e!==t})),o},this.removeAllListeners=function(e){return void 0===e?o._eventMap={}:o._eventMap[e]&&(o._eventMap[e]=[]),o},this.on=function(e,t){return o._eventMap[e]?o._eventMap[e].push(t):o._eventMap[e]=[t],o},this.once=function(r,i){var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o.off(r,n),i.apply(o,e)};return o.on(r,n),o},this.proxy=function(i,e){e.forEach(function(r){o.on(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.unshift(r),i.emit.apply(i,e)})})},this.proxyOnce=function(i,e){e.forEach(function(r){o.once(r,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.unshift(r),i.emit.apply(i,e)})})}}rt=function(e,t){return(rt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var d,rt,it,nt,ot,t=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}rt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},at=((e=d=d||{})[e.IDLE=0]="IDLE",e[e.LOADING=1]="LOADING",e[e.SUSPENGING=2]="SUSPENGING",e[e.ERROR=3]="ERROR",nt=Error,t(ct,nt),ct),st=(t(a,it=tt),Object.defineProperty(a.prototype,"eof",{get:function(){return this.offset===this.total},enumerable:!1,configurable:!0}),a.prototype._changeStatus=function(e){this.status!==e&&(U.log("loader status changed: ".concat(d[this.status]," -> ").concat(d[e])),this.status=e)},a.prototype.jump=function(e){this.offset=e},a.prototype.load=function(e,t,r){return this.reset(),this.url=e,this.loadRange(t,r)},a.prototype.resume=function(){return this.loadRange(this.offset)},a.prototype.suspend=function(){var e=this.status;this._abort(),e===d.LOADING&&(this._changeStatus(d.SUSPENGING),this.emit("suspend",void 0))},a.prototype.abort=function(){var e=this.status;this._abort(),e!==d.SUSPENGING&&e!==d.LOADING||this.emit("abort",void 0)},a.prototype.reset=function(){this.abort(),this.offset=0,this.total=1/0,this.url=""},a.prototype.destroy=function(){this.removeAllListeners(),this.reset()},a),lt={isIos:!1,isDingtalk:!1,isQQBrowser:!1},e=(window.navigator.userAgent||"").toLowerCase();function a(e){void 0===e&&(e={});var t=it.call(this)||this;return t.timeout=15e3,t.total=1/0,t.offset=0,t.status=d.IDLE,t.url="",t._handleError=function(e){"AbortError"!==e.name&&(t._changeStatus(d.ERROR),t.emit("error",{code:de.NETWORK,message:e.message,origin:e}))},t.timeout=e.timeout||t.timeout,t}function ct(e){return nt.call(this,e)||this}/(iPhone\sOS)\s([\d_]+)/i.test(e)&&(lt.isIos=!0),-1<e.indexOf("dingtalk")?lt.isDingtalk=!0:-1<e.indexOf("qqbrowser")&&(lt.isQQBrowser=!0),bt=function(e,t){return(bt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var ut=xt;if("function"!=typeof(h=Tt=st)&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function pt(){this.constructor=ut}bt(ut,h),ut.prototype=null===h?Object.create(h):(pt.prototype=h.prototype,new pt),xt.isSupported=function(){return lt.isIos&&(lt.isDingtalk||lt.isQQBrowser)?(console.log("ios","isDingtalk",lt.isDingtalk,"isQQBrowser",lt.isQQBrowser),!1):"undefined"!=typeof AbortController&&"undefined"!=typeof ReadableStream},xt.prototype.loadRange=function(n,e){var o=this;if(void 0===n&&(n=0),void 0===e&&(e=1/0),!this.url||n>=this.total)return hs.resolve(!1);if(this.status===d.LOADING||this.status===d.ERROR)return hs.resolve(!1);U.info("\u6267\u884cload, ".concat(this.total," from=").concat(n," to=").concat(e," url=").concat(this.url)),this.abort();var t=new Headers,a=0<n||e<1/0;return a&&(e=Math.min(this.total-1,e),t.set("Range","bytes=".concat(n,"-").concat(e===1/0?"":e))),this._changeStatus(d.LOADING),this.controller=new AbortController,this.emit("loadstart",void 0),this.timer=setTimeout(this.triggerTimeout,this.timeout),fetch(this.url,{method:"GET",headers:t,signal:this.controller.signal}).then(function(e){if(clearTimeout(o.timer),200<=e.status&&e.status<300){var t,r;if(o.offset=n,a?(i=e.headers.get("Content-Range")||"",o.total=Number(i.split("/")[1])||o.total):o.total=Number(e.headers.get("Content-Length"))||o.total,e.body)return t=e.body.getReader(),(r=function(){return t.read().then(function(e){return e.done?(o.total===1/0&&(o.total=o.offset),o.controller=null,o._changeStatus(d.IDLE),o.emit("loadend",void 0),!0):(o.offset+=e.value.byteLength,o.emit("progress",{offset:o.offset-e.value.byteLength,data:e.value}),r())})})();if(e.arrayBuffer)return e.arrayBuffer().then(function(e){return o.offset+=e.byteLength,o.emit("progress",{offset:o.offset-e.byteLength,data:new Uint8Array(e)}),o.controller=null,o._changeStatus(d.IDLE),o.emit("loadend",void 0),!0})}var i=new at("\u5a92\u4f53\u6d41\u6570\u636e\u4e0d\u5b58\u5728: ".concat(o.url));throw i.response=e,i}).catch(function(e){return clearTimeout(o.timer),o._handleError(e),!1})},t=xt,St=function(e,t){return(St=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var dt=Pt;if("function"!=typeof(h=mt=st)&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function ht(){this.constructor=dt}St(dt,h),dt.prototype=null===h?Object.create(h):(ht.prototype=h.prototype,new ht),Pt.prototype._abort=function(){var e=this.xhr;e&&(e.onerror=null,e.onprogress=null,e.onloadend=null,e.onreadystatechange=null,e.abort(),this.xhr=null,this._resolve(!1)),this._changeStatus(d.IDLE)},Pt.prototype.loadRange=function(i,n){var u=this;return void 0===i&&(i=0),void 0===n&&(n=1/0),!this.url||i>=this.total||this.status===d.LOADING||this.status===d.ERROR?hs.resolve(!1):(this.abort(),new hs(function(e,t){u.xhr=new XMLHttpRequest,u._resolve=e;function r(e){var r,t=s.responseText,i=t.length,n=c,o=u.offset,a=i-n;0<a&&(u.offset+=a),!l&&e&&u.total===1/0&&(u.total=u.offset),0<a&&(c=i,u.emit("progress",{offset:o,data:(r=t.substring(n,i),new Uint8Array(r.length).map(function(e,t){return r.charCodeAt(t)}))}))}var s=u.xhr,l=0<i||n<1/0,c=(s.open("GET",u.url),l&&s.setRequestHeader("Range","bytes=".concat(i,"-").concat(n===1/0?"":n)),s.onreadystatechange=function(){var e;s.readyState===s.HEADERS_RECEIVED&&200<=s.status&&s.status<300&&(l?(e=s.getResponseHeader("Content-Range")||"",u.total=Number(e.split("/")[1])||u.total):u.total=Number(s.getResponseHeader("Content-Length"))||u.total),s.readyState>=s.HEADERS_RECEIVED&&clearTimeout(u._timer)},u.offset=i,0);s.timeout=u.timeout,s.onprogress=function(){r(!1)},s.onloadend=function(){r(!0),u.xhr=null,u._changeStatus(d.IDLE),u.emit("loadend",void 0),e(!0)},s.onerror=function(e){u.xhr=null;e=new Error(e.constructor.name);u._handleError(e),t(e)},s.overrideMimeType("text/plain; charset=x-user-defined"),u._changeStatus(d.LOADING),u.emit("loadstart",void 0),u._timer=setTimeout(u.triggerTimeout,u.timeout),s.send()}))};var e=Pt,ft=t.isSupported()?t:e,_t=(vt=function(e,t){return(vt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},s);if("function"!=typeof(h=gt=tt)&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function yt(){this.constructor=_t}vt(_t,h),_t.prototype=null===h?Object.create(h):(yt.prototype=h.prototype,new yt),Object.defineProperty(s.prototype,"loader",{get:function(){return this.customLoader||this.originLoader},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this.loader.url},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"status",{get:function(){return this.loader.status},enumerable:!1,configurable:!0}),s.probe=function(e){throw new Error("parser should implements static probe")},s.prototype.onProgress=function(e){},s.prototype.onLoadEnd=function(){},s.prototype.load=function(e){return this.reset(),this.loader.load(e)},s.prototype.suspend=function(){return this.loader.suspend()},s.prototype.resume=function(){return this.loader.resume()},s.prototype.reset=function(){this.loader.reset(),this.metadata=null},s.prototype.destroy=function(){this.reset(),this.loader.off("progress",this.onProgress),this.loader.off("loadend",this.onLoadEnd),this.originLoader.destroy(),this.removeAllListeners()};var gt,vt,mt,St,Tt,bt,t=s,Et=(wt.BUFFER_LENGTH=9,wt);function wt(e){this.signature=String.fromCharCode(e.read(1),e.read(1),e.read(1)),this.version=e.read(1);var t=e.read(1),e=(this.size=e.read(4),new m(t,8));e.read(5),this.hasAudio=!!e.read(1),e.read(1),this.hasVideo=!!e.read(1)}function s(e){var t=gt.call(this)||this;return t.skipFrame=pe.DEFAULT,t.metadata=null,t.options=e,t.onProgress=t.onProgress.bind(t),t.onLoadEnd=t.onLoadEnd.bind(t),t.originLoader=new ft(t.options),t.customLoader=e.loader,t.loader.on("progress",t.onProgress),t.loader.on("loadend",t.onLoadEnd),t.skipFrame=e.skipFrame||pe.DEFAULT,t}function Pt(){var e=null!==mt&&mt.apply(this,arguments)||this;return e.xhr=null,e._timer=-1,e._resolve=function(e){},e.triggerTimeout=function(){e._abort(),e._handleError(new Error("\u52a0\u8f7d\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5"))},e}function xt(){var e=null!==Tt&&Tt.apply(this,arguments)||this;return e.controller=null,e.timer=-1,e._abort=function(){clearTimeout(e.timer),e.controller&&!e.controller.signal.aborted&&(e.controller.abort(),e.controller=null),e._changeStatus(d.IDLE)},e.triggerTimeout=function(){e._abort(),e._handleError(new at("\u52a0\u8f7d\u8d85\u65f6\uff0c\u8bf7\u91cd\u8bd5"))},e}(e=ot=ot||{})[e.AUDIO=8]="AUDIO",e[e.VIDEO=9]="VIDEO",e[e.SCRIPT=18]="SCRIPT",Lt.BUFFER_LENGTH=11;var Ct,kt=Lt;function Lt(e){this.type=e.read(1),this.size=e.read(3),this.dts=e.read(3),this.dts|=e.read(1)<<24,e.skip(3)}(e=Ct=Ct||{})[e.PCM=0]="PCM",e[e.ADPCM=1]="ADPCM",e[e.MP3=2]="MP3",e[e.PCM_LE=3]="PCM_LE",e[e.NELLYMOSER_16KHZ_MONO=4]="NELLYMOSER_16KHZ_MONO",e[e.NELLYMOSER_8KHZ_MONO=5]="NELLYMOSER_8KHZ_MONO",e[e.NELLYMOSER=6]="NELLYMOSER",e[e.PCM_ALAW=7]="PCM_ALAW",e[e.PCM_MULAW=8]="PCM_MULAW",e[e.AAC=10]="AAC",e[e.SPEEX=11]="SPEEX";var At,Dt,Rt=[5512,11025,22050,44100],It=[8,16];(e=At=At||{})[e.MONO=0]="MONO",e[e.STEREO=1]="STEREO",(e=Dt=Dt||{})[e.ADTS_HEADER=0]="ADTS_HEADER",e[e.RAW=1]="RAW",Nt.readAudioSpecificConfig=function(e){var e=new m(e.read(2),16),t=e.read(5),r=e.read(4),e=e.read(4);return{audioObjectType:t,sampleRate:V[r],samplingFrequencyIndex:r,channelCount:e}};var l,Ot=Nt;function Nt(e){var t=new m(e.read(1),8);this.codecId=t.read(4),this.sampleRate=Rt[t.read(2)],this.sampleSize=It[t.read(1)],this.soundType=t.read(1),this.packetType=e.read(1),this.data=e.readToUint8()}function Mt(t){var e=t.read(2);return Array.from(Array(e)).map(function(){var e=t.read(1);return 0<e?String.fromCharCode(e):""}).join("")}function Ut(e){var t=Mt(e),e=Ft(e);return{key:t,value:e.value,objectEnd:e.objectEnd}}function Ft(e){var t={value:null,objectEnd:!1},r=e.read(1);switch(r){case l.NUMBER:t.value=e.readFloat(8);break;case l.BOOLEAN:t.value=!!e.read(1);break;case l.LONG_STRING:case l.STRING:t.value=Mt(e);break;case l.OBJECT_START:t.value=(e=>{for(var t={};0<e.unreadLength;){var r=Ut(e);if(r.objectEnd)break;t[r.key]=r.value}return t})(e);break;case l.ECMA_ARRAY:t.value=(e=>{for(var t=e.read(4),r={};0<t--;){var i=Ut(e);r[i.key]=i.value}return r})(e);break;case l.OBJECT_END:t.objectEnd=!0;break;case l.STRICT_ARRAY:t.value=(e=>{for(var t=e.read(4),r=[];0<t--;){var i=Ft(e);r.push(i.value)}return r})(e);break;case l.DATE:t.value=new Date(e.readFloat(8)+60*e.readInt(2)+1e3);break;default:console.warn("unknown AMF value type",r)}return t}(e=l=l||{})[e.NUMBER=0]="NUMBER",e[e.BOOLEAN=1]="BOOLEAN",e[e.STRING=2]="STRING",e[e.OBJECT_START=3]="OBJECT_START",e[e.NULL=5]="NULL",e[e.UNDEFINED=6]="UNDEFINED",e[e.REFERENCE=7]="REFERENCE",e[e.ECMA_ARRAY=8]="ECMA_ARRAY",e[e.OBJECT_END=9]="OBJECT_END",e[e.STRICT_ARRAY=10]="STRICT_ARRAY",e[e.DATE=11]="DATE",e[e.LONG_STRING=12]="LONG_STRING";var Ht,Bt,F,Vt,jt,Wt=function(e){this.name=Ft(e).value,this.value=Ft(e).value};(e=Ht=Ht||{})[e.KEY=1]="KEY",e[e.INTER=2]="INTER",e[e.DISP_INTER=3]="DISP_INTER",e[e.GENERATED_KEY=4]="GENERATED_KEY",e[e.VIDEO_INFO_CMD=5]="VIDEO_INFO_CMD",(e=Bt=Bt||{})[e.STARTSEEK=0]="STARTSEEK",e[e.ENDSEEK=1]="ENDSEEK",(e=F=F||{})[e.JPEG=1]="JPEG",e[e.H263=2]="H263",e[e.SCREEN=3]="SCREEN",e[e.VP6=4]="VP6",e[e.VP6A=5]="VP6A",e[e.SCREEN2=6]="SCREEN2",e[e.H264=7]="H264",e[e.REALH263=8]="REALH263",e[e.MPEG4=9]="MPEG4",e[e.H265=12]="H265",e[e.H266=14]="H266",(e=Vt=Vt||{})[e.AVC_SEQUENCE_HEADER=0]="AVC_SEQUENCE_HEADER",e[e.AVC_NALU=1]="AVC_NALU",e[e.AVC_END=2]="AVC_END",e[e.COCED_FRAMES_X=3]="COCED_FRAMES_X",e[e.METADATA=4]="METADATA",e[e.MPEG2_TS_SEQUENCE_START=5]="MPEG2_TS_SEQUENCE_START",e[e.MULTI_TRACK=6]="MULTI_TRACK",(e=jt=jt||{})[e.OneTrackOneCodec=0]="OneTrackOneCodec",e[e.ManyTracksOneCodec=1]="ManyTracksOneCodec",e[e.ManyTracksManyCodecs=2]="ManyTracksManyCodecs",zt.prototype.bin2str=function(e){return String.fromCharCode.apply(null,e)},zt.prototype.convertCodecNameToVideoCodecID=function(e){return/hvc1/.test(e)||/1cvh/.test(e)?F.H265:/vvc1/.test(e)||/1cvv/.test(e)||/vvi1/.test(e)?F.H266:void 0};var qt,Gt=zt,H={isFirefox:!1,isOpera:!1,isTrident:!1,isEdge:!1,isChrome:!1,isSafari:!1,isMQQBrowser:!1,isMobile:!1,isIos:!1,isDingtalk:!1},e=void 0!==window.navigator;function zt(e){this.videoCommand=Bt.STARTSEEK,this.codecId=F.H265,this.packetType=Vt.AVC_NALU,this.cts=0,this.videoFourCC="";var t,r,i=new m(e.read(1),8);this.isExVideoHeader=i.read(1),this.type=i.read(3),this.videoFrameType=this.type,0===this.isExVideoHeader&&(this.codecId=i.read(4),this.packetType=e.read(1),this.type===Ht.VIDEO_INFO_CMD)&&(this.videoCommand=e.read(1)),1===this.isExVideoHeader&&((i=i.read(4))!=Vt.METADATA&&this.videoFrameType===Ht.VIDEO_INFO_CMD?this.videoCommand=e.read(1):i==Vt.MULTI_TRACK?(r=(t=new m(e.read(1),8)).read(4),i=t.read(4),r==jt.ManyTracksManyCodecs&&(String.fromCharCode(e.read(1)),this.videoFourCC=this.bin2str(e.readToUint8(4)))):this.videoFourCC=this.bin2str(e.readToUint8(4)),this.packetType=i),this.codecId=this.convertCodecNameToVideoCodecID(this.videoFourCC)||this.codecId,this.cts=e.read(3)+4286578688^4286578688,this.data=e.readToUint8()}-1<(h=e?window.navigator.userAgent:"").indexOf("MQQBrowser")?H.isMQQBrowser=!0:-1<h.indexOf("Firefox")?H.isFirefox=!0:-1<h.indexOf("Opera")||-1<h.indexOf("OPR")?H.isOpera=!0:-1<h.indexOf("Trident")?H.isTrident=!0:-1<h.indexOf("Edge")?H.isEdge=!0:-1<h.indexOf("Chrome")?(H.isChrome=!0,(h.toLowerCase().match(/chrome\/([\d.]+)/)||[])[1]):-1<h.indexOf("Safari")||-1<h.indexOf("iPhone")||-1<h.indexOf("iPad")||-1<h.indexOf("iPod")?H.isSafari=!0:-1<h.toLowerCase().indexOf("dingtalk")&&(H.isDingtalk=!0),/(iPhone\sOS)\s([\d_]+)/i.test(h)&&(H.isIos=!0),e&&("maxTouchPoints"in(h=window.navigator)?H.isMobile=0<h.maxTouchPoints:"msMaxTouchPoints"in h?H.isMobile=0<h.msMaxTouchPoints:(e=null==(e=window.matchMedia)?void 0:e.call(window,"(pointer:coarse)"))&&"(pointer:coarse)"===e.media?H.isMobile=!!e.matches:"orientation"in window?H.isMobile=!0:(e=h.userAgent,H.isMobile=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(e)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(e))),Dr=function(e,t){return(Dr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Xt=Hr,c=Ar=Ue;if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Kt(){this.constructor=Xt}Dr(Xt,c),Xt.prototype=null===c?Object.create(c):(Kt.prototype=c.prototype,new Kt);var Yt=Hr,Qt=(Lr=function(e,t){return(Lr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},f);if("function"!=typeof(c=kr=t)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function $t(){this.constructor=Qt}Lr(Qt,c),Qt.prototype=null===c?Object.create(c):($t.prototype=c.prototype,new $t),f.probe=function(e){return!(e.byteLength<9)&&"FLV"===new Et(new A(e.buffer,e.byteOffset,e.byteLength)).signature},f.prototype.parse=function(e,t){var r=[];if(e.byteLength){this.unhandleBuffer&&(e=A.concat(this.unhandleBuffer,e),t-=this.unhandleBuffer.byteLength,this.unhandleBuffer=null);var i=new A(e);for(!this.header&&i.unreadLength>=Et.BUFFER_LENGTH&&(this.header=new Et(i),!1===this.header.hasVideo&&(this.header.hasVideo=!0),i.skip(this.header.size-Et.BUFFER_LENGTH));i.unreadLength>4+kt.BUFFER_LENGTH;){i.skip(4);var n=new kt(i);if(!(i.unreadLength>=n.size)){i.back(4+kt.BUFFER_LENGTH);break}var o=new A(i.buffer,i.offset,n.size);switch(i.skip(n.size),n.type){case ot.VIDEO:r=r.concat(this.parseVideoBody(n,o,i.offset+t));break;case ot.AUDIO:r=r.concat(this.parseAudioBody(n,o,i.offset+t));break;case ot.SCRIPT:this.parseScriptBody(n,o);break;default:return U.warn("unknown tag type",n.type),r}}this.unhandleBuffer=i.unreadLength?i.readToBuffer():null}return r},f.prototype.checkMetadata=function(){var e=this.flvMetadata,t=this.header;if(console.log("checkMetadata flvMetadata:",e,"header:",t,", this.metadata:",this.metadata),t&&!this.metadata){var r=[];if(t.hasVideo){if(!this.videoTrackMeta||!this.videoLoaded)return void console.log("checkMetadata hasVideo no this.videoTrackMeta",this.videoTrackMeta,", this.videoLoaded",this.videoLoaded);this.videoTrackMeta.baseDTS=this.baseVideoDTS,this.videoTrackMeta.basePTS=this.baseVideoPTS,this.videoTrackMeta.fps=null==e?void 0:e.framerate,r.push(this.videoTrackMeta)}if(t.hasAudio){if(!this.audioTrackMeta||!this.audioLoaded)return void console.log("checkMetadata hasAudio no this.audioTrackMeta",this.audioTrackMeta,", this.audioLoaded",this.audioLoaded);this.audioTrackMeta.baseDTS=this.baseAudioDTS,this.audioTrackMeta.basePTS=this.baseAudioPTS,r.push(this.audioTrackMeta)}var t=this.options,i=t.live;this.metadata={formatType:g.FLV,live:!!i,progressive:!i&&!!t.progressive,url:this.loader.url,basePTS:Math.min.apply(Math,r.map(function(e){return e.basePTS||0})),baseDTS:Math.min.apply(Math,r.map(function(e){return e.baseDTS||0})),timescale:1e3,duration:1e3*((null==e?void 0:e.duration)||1/0),tracks:r},console.log("checkMetadata loadedmetadata",this.metadata),this.emit("loadedmetadata",this.metadata)}},f.prototype.parseVideoBody=function(e,t,r){var i=this,t=new Gt(t),n=(this.emit("loadedtag",{header:e,body:t}),[]),o=t.type===Ht.KEY,a=!1;if(t.data.length)if(t.packetType===Vt.AVC_SEQUENCE_HEADER){var s,l,c=this.flvMetadata||{},u={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:c.width||0,height:c.height||0,codec:"",pixelRatio:[],live:(null==(c=this.metadata)?void 0:c.live)||!1};t.codecId===F.H264?(s=new Ie(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Be(s,l),u.pps=c.pps,u.sps=c.sps,u.codec=c.codec,(c=c.sps[0])&&(v=new we(c.subarray(1)),u.width=v.width,u.height=v.height)):t.codecId===F.H265?(D.extractAnnexbNAL(t.data).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);r.nalType<R.ACCESS_UNIT_DELIMITER&&(r.nalType===R.SPS?(t=new Le(Ve(t.readToUint8())),u.sps.push(e),u.codec=t.codec,console.log("thisvideoTrackMeta sps.codec=",t.codec),u.width=t.width,u.height=t.height):r.nalType===R.VPS?u.vps.push(e):r.nalType===R.PPS&&u.pps.push(e))}),""===u.codec&&(s=new Ie(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Qe(s,l),u.vps=c.vps,u.pps=c.pps,u.sps=c.sps,u.sei=c.sei,u.codec=c.codec,c.sps&&0<c.sps.length&&(v=new Le(Ve(c.sps[0])),u.width=v.width,u.height=v.height),this.isHVCC=!0)):t.codecId===F.H266&&(D.extractAnnexbNAL(t.data).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new N(t);r.nalType<I.VVC_UNSPEC_31&&(r.nalType===I.VVC_SPS_NUT?(t=new Ae(Ve(t.readToUint8())),u.width=t.width,u.height=t.height,u.codec=t.codec,u.sps.push(e)):r.nalType===I.VVC_VPS_NUT?u.vps.push(e):r.nalType===I.VVC_PPS_NUT&&u.pps.push(e))}),""===u.codec)&&(s=new Ie(new A(new ArrayBuffer(8)),0),l=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),c=new Yt(s,l),u.vps=c.vps,u.pps=c.pps,u.sps=c.sps,u.sei=c.sei,u.codec=c.codec,this.isHVCC=!0),this.videoTrackMeta=u,this.checkMetadata()}else{var p=[];if(t.codecId===F.H266){var d={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(v=this.flvMetadata)?void 0:v.width)||0,height:(null==(s=this.flvMetadata)?void 0:s.height)||0,codec:"",pixelRatio:[],live:(null==(l=this.metadata)?void 0:l.live)||!1},h=[],f=[],_=[],y=[],c=[],c=4<t.data.length&&0===t.data[0]&&0===t.data[1]&&0===t.data[2]&&1===t.data[3]?D.extractAnnexbNAL(t.data):D.extractAVCCNAL(t.data,3),g=[],v=(c.forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new N(t);7<=r.nalType&&r.nalType<=10&&(o=!0,i.videoTrackMeta&&0<i.videoTrackMeta.sps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.sps[0]),i.videoTrackMeta&&0<i.videoTrackMeta.pps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.pps[0]),i.videoTrackMeta&&0<i.videoTrackMeta.vps.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.vps[0]),i.videoTrackMeta)&&0<i.videoTrackMeta.sei.length&&g.push(N.createAnnexbStartCode(),i.videoTrackMeta.sei[0]),g.push(N.createAnnexbStartCode(),e),r.nalType<I.VVC_UNSPEC_31&&(r.nalType===I.VVC_SPS_NUT?(t=new Ae(Ve(t.readToUint8())),d.width=t.width,d.height=t.height,d.codec=t.codec,h.push(e)):r.nalType===I.VVC_VPS_NUT?f.push(e):r.nalType===I.VVC_PPS_NUT?_.push(e):r.nalType===I.VVC_PREFIX_SEI_NUT&&y.push(e)),a=N.isNonRefNALType(r.nalType)}),A.concatUint8s(g));p.push(v),f.length&&(d.vps=f),h.length&&(d.sps=h),_.length&&(d.pps=_),y.length&&(d.sei=y),h.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],f.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),h.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),_.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),y.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=d)}else if(t.codecId!==F.H265||this.isHVCC){var m=D.extractAVCCNAL(t.data,3),S={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(s=this.flvMetadata)?void 0:s.width)||0,height:(null==(l=this.flvMetadata)?void 0:l.height)||0,codec:"",pixelRatio:[],live:(null==(c=this.metadata)?void 0:c.live)||!1},T=[],b=[],E=[],w=[];m.forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);16<=r.nalType&&r.nalType<=23&&(o=!0),r.nalType<R.ACCESS_UNIT_DELIMITER&&(r.nalType===R.SPS?(t=new Le(Ve(t.readToUint8())),T.push(e),S.codec=t.codec,S.width=t.width,S.height=t.height):r.nalType===R.VPS?b.push(e):r.nalType===R.PPS?E.push(e):r.nalType===R.SEI?w.push(e):!H.isSafari||r.nalType===R.TRAIL_R||r.nalType===R.TRAIL_N||r.nalType===R.IDR_W_RADL||r.nalType===R.IDR_N_LP||r.nalType===R.CRA?p.push(e):console.warn("skip this nalu nalType:",r.nalType),a=O.isNonRefNALType(r.nalType))}),b.length&&(S.vps=b),T.length&&(S.sps=T),E.length&&(S.pps=E),w.length&&(S.sei=w),0<T.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],this.videoTrackMeta.sei=[],b.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),T.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),E.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),w.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=S)}else{if(this.skipFrame===pe.NONREF&&O.isNonRefNALType(O.extractNALType(t.data,4)))return console.warn("skipFrame isNonRefNALType"),[];var m,P={type:M.VIDEO,id:2,baseDTS:0,basePTS:0,timescale:1e3,vps:[],sps:[],pps:[],sei:[],width:(null==(v=this.flvMetadata)?void 0:v.width)||0,height:(null==(s=this.flvMetadata)?void 0:s.height)||0,codec:"",pixelRatio:[],live:(null==(l=this.metadata)?void 0:l.live)||!1},x=[],C=[],k=[],L=[];(m=D.extractAnnexbNAL(t.data)).forEach(function(e){var t=new A(e.buffer,e.byteOffset,e.length),r=new O(t);16<=r.nalType&&r.nalType<=23&&(o=!0),r.nalType<R.ACCESS_UNIT_DELIMITER&&(r.nalType===R.SPS?(t=new Le(Ve(t.readToUint8())),x.push(e),P.codec=t.codec,P.width=t.width,P.height=t.height):r.nalType===R.VPS?C.push(e):r.nalType===R.PPS?k.push(e):r.nalType===R.SEI&&L.push(e)),a=O.isNonRefNALType(r.nalType),p.push(e)}),C.length&&(P.vps=C),x.length&&(P.sps=x),k.length&&(P.pps=k),L.length&&(P.sei=L),x.length&&(this.videoTrackMeta?(this.videoTrackMeta.vps=[],this.videoTrackMeta.sps=[],this.videoTrackMeta.pps=[],C.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.vps.push(e)}),x.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sps.push(e)}),k.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.pps.push(e)}),L.forEach(function(e){var t;return null==(t=i.videoTrackMeta)?void 0:t.sei.push(e)})):this.videoTrackMeta=P)}if(!this.videoLoaded&&this.videoTrackMeta){if(!o)return[];this.videoLoaded=!0,this.baseVideoDTS=e.dts,this.baseVideoPTS=t.cts+e.dts,this.checkMetadata()}this.videoTrackMeta&&t.codecId==F.H265&&o&&(this.videoTrackMeta.pps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.sps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.vps.forEach(function(e){return p.unshift(e)}),this.videoTrackMeta.sei.forEach(function(e){return p.unshift(e)})),p.length&&(v={trackId:2,codec:(null==(c=this.videoTrackMeta)?void 0:c.codec)||"",trackType:M.VIDEO,isSync:o||t.type===Ht.KEY,isNonRef:a,data:p,dts:e.dts,pts:e.dts+t.cts,offset:r,size:p.reduce(function(e,t){return e+t.byteLength},0)},n.push(v))}else U.warn("[videox] flv parse empty data",e,t);return n},f.prototype.parseAudioBody=function(e,t,r){var i,t=new Ot(t),n=(this.emit("loadedtag",{header:e,body:t}),[]);return t.packetType===Dt.ADTS_HEADER?(i=new A(t.data.buffer,t.data.byteOffset,t.data.byteLength),i=Ot.readAudioSpecificConfig(i),this.audioTrackMeta={id:1,baseDTS:0,basePTS:0,type:M.AUDIO,codec:"mp4a.40."+i.audioObjectType,timescale:1e3,audioObjectType:i.audioObjectType,sampleRate:i.sampleRate,samplingFrequencyIndex:i.samplingFrequencyIndex,sampleSize:t.sampleSize,channelCount:i.channelCount},this.checkMetadata()):(this.audioLoaded||(this.audioLoaded=!0,this.baseAudioDTS=e.dts,this.baseAudioPTS=e.dts,this.checkMetadata()),n.push({codec:(null==(i=this.audioTrackMeta)?void 0:i.codec)||"",trackId:1,trackType:M.AUDIO,isSync:!0,isNonRef:!1,data:[t.data],dts:e.dts,pts:e.dts,offset:r,size:t.data.byteLength})),n},f.prototype.parseScriptBody=function(e,t){t=new Wt(t),this.emit("loadedtag",{header:e,body:t}),e=t.value;e&&"onMetaData"===t.name&&(this.flvMetadata=e,U.info("flv script tag loaded, flv metadata:",this.flvMetadata))},f.prototype.onProgress=function(e){var t=e.data;t.byteLength&&(t=this.parse(t.buffer,e.offset)).length&&(e=void 0,this.cachePackets.length?(e=this.cachePackets.concat(t),this.cachePackets=[]):e=t,this.metadata&&this.loader.status!==d.SUSPENGING?this.emit("loadeddata",{packets:e}):this.cachePackets=e)},f.prototype.onLoadEnd=function(){this.loader.eof&&this.emit("end",void 0)},f.prototype.seek=function(){},f.prototype.reset=function(){kr.prototype.reset.call(this),this.cachePackets=[],this.videoLoaded=!1,this.audioLoaded=!1,this.baseVideoDTS=0,this.baseVideoPTS=0,this.baseAudioDTS=0,this.baseAudioPTS=0,this.header=null,this.unhandleBuffer=null,this.flvMetadata=null,this.videoTrackMeta=null,this.audioTrackMeta=null};var Jt=f,Zt=(Cr=function(e,t){return(Cr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Fr);if("function"!=typeof(c=xr=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function er(){this.constructor=Zt}Cr(Zt,c),Zt.prototype=null===c?Object.create(c):(er.prototype=c.prototype,new er);var p=Fr,tr=(Pr=function(e,t){return(Pr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Ur);if("function"!=typeof(c=wr=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function rr(){this.constructor=tr}Pr(tr,c),tr.prototype=null===c?Object.create(c):(rr.prototype=c.prototype,new rr);var ir=Ur,nr=(Er=function(e,t){return(Er=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Mr);if("function"!=typeof(c=br=ir)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function or(){this.constructor=nr}Er(nr,c),nr.prototype=null===c?Object.create(c):(or.prototype=c.prototype,new or);var ar=Mr,sr=(Tr=function(e,t){return(Tr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Nr);if("function"!=typeof(c=Sr=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function lr(){this.constructor=sr}Tr(sr,c),sr.prototype=null===c?Object.create(c):(lr.prototype=c.prototype,new lr);var cr=Nr,ur=(mr=function(e,t){return(mr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Or);if("function"!=typeof(c=vr=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function pr(){this.constructor=ur}mr(ur,c),ur.prototype=null===c?Object.create(c):(pr.prototype=c.prototype,new pr);var dr=Or,hr=(gr=function(e,t){return(gr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Ir);if("function"!=typeof(c=yr=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function fr(){this.constructor=hr}gr(hr,c),hr.prototype=null===c?Object.create(c):(fr.prototype=c.prototype,new fr);var _r,yr,gr,vr,mr,Sr,Tr,br,Er,wr,Pr,xr,Cr,kr,Lr,Ar,Dr,Rr=Ir,h=(_r=function(e,t){return(_r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_r(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function Ir(e,t){var r=yr.call(this,e,t)||this;r.entries=[],r.version=t.read(1),r.flag=t.read(3),r.entryCount=t.read(4);for(var i=0;i<r.entryCount;i++){var n=1===r.version;r.entries.push({segmentDuration:t.read(n?8:4),mediaTime:t.read(n?8:4),mediaRateInteger:t.read(2),mediaRateFraction:t.read(2)})}return r}function Or(e,t){e=vr.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.entryCount=t.read(4),e}function Nr(e,t){e=Sr.call(this,e,t)||this;return e.bufferSizeDB=t.read(4),e.maxBitrate=t.read(4),e.avgBitrate=t.read(4),e}function Mr(){return null!==br&&br.apply(this,arguments)||this}function Ur(e,t){var e=wr.call(this,e,t)||this,r=(t.skip(4),t.skip(2),e.bitReferenceId=t.read(2),e.codeStreamVersion=t.read(4),t.skip(4),t.skip(8),e.width=t.read(2),e.heigth=t.read(2),e.horizontalResolution=t.read(4),e.verticalResolution=t.read(4),t.skip(4),e.frameCount=t.read(2),Math.min(t.read(1),32));return e.compressorName=Array.from(new Array(r)).map(function(){return String.fromCharCode(t.read(1))}).join(""),t.skip(32-(r+1)),e.depth=t.read(2),t.skip(2),e}function Fr(){var e=null!==xr&&xr.apply(this,arguments)||this;return e.isContainer=!0,e}function f(){var e=null!==kr&&kr.apply(this,arguments)||this;return e.header=null,e.flvMetadata=null,e.videoTrackMeta=null,e.audioTrackMeta=null,e.unhandleBuffer=null,e.cachePackets=[],e.videoLoaded=!1,e.baseVideoPTS=0,e.baseVideoDTS=0,e.audioLoaded=!1,e.baseAudioPTS=0,e.baseAudioDTS=0,e.isHVCC=!1,e.formatType=g.FLV,e}function Hr(e,t){var r=Ar.call(this,e,t)||this,e=(r.generalTierFlag=0,r.numBytesConstraintInfo=0,r.generalProfileIdc=0,r.generalLevelIdc=0,r.chromaFormatIdc=0,r.bitDepthLumaMinus8=0,r.bitDepthChromaMinus8=0,r.avgFrameRate=0,r.constantFrameRate=0,r.lengthSizeMinusOne=0,r.olsIdx=0,r.ptlFrameOnlyConstraintFlag=0,r.ptlMultilayerEnabledFlag=0,r.maxPictureWidth=0,r.maxPictureHeight=0,r.nalus=[],r.vps=[],r.sps=[],r.pps=[],r.sei=[],r.codec="",r.codecTag="vvc1",(c=new m(t.read(1),8)).skip(5),c.read(2)),i=c.read(1);if(r.lengthSizeMinusOne=e,i){var e=(c=new m(t.read(3),24)).read(9),n=c.read(3),i=c.read(2),o=c.read(2),a=c.read(3),e=(r.olsIdx=e,r.constantFrameRate=i,r.chromaFormatIdc=o,r.bitDepthLumaMinus8=a,c.skip(5),(c=new m(t.read(2),16)).skip(2),c.read(6)),i=c.read(7),o=c.read(1),a=(r.numBytesConstraintInfo=e,r.generalTierFlag=o,r.generalProfileIdc=i,t.read(1)),o=(r.generalLevelIdc=a,(c=new m(t.read(1),8)).read(1)),i=c.read(1),s=(r.ptlFrameOnlyConstraintFlag=o,r.ptlMultilayerEnabledFlag=i,0),l=(0<e?c.skip(8*e-2):c.read(6),0);if(1<n){for(var c=new m(t.read(1),8),u=0,l=n-2;0<=l;--l)u|=c.read(1)<<l;for(l=n;l<=8&&1<n;++l)c.read(1);for(l=n-2;0<=l;--l)u&1<<l&&(l,t.read(1));var p=t.read(1),d=[];if(p)for(s=0;s<p;s++)d.push(t.readInt(1))}a=t.read(2),o=t.read(2),i=(r.maxPictureWidth=a,r.maxPictureHeight=o,t.read(2));r.avgFrameRate=i}for(var h=t.read(1),f=0,_=0,f=0;f<h;f++){(c=new m(t.read(1),8)).read(1),c.skip(2);var y=c.read(5),g=[],v=0;for(y!=I.VVC_DCI_NUT&&y!=I.VVC_OPI_NUT&&(v=t.read(2)),_=0;_<v;_++)g.push(new Uint8Array(t.read(2)).map(function(){return t.read(1)}));y===I.VVC_VPS_NUT?g.forEach(function(e){return r.vps.push(e)}):y===I.VVC_SPS_NUT?g.forEach(function(e){return r.sps.push(e)}):y===I.VVC_PPS_NUT&&g.forEach(function(e){return r.pps.push(e)})}return r.configVersion=0,r.codec="vvc1.1.L48.CA",r}(e=qt=qt||{})[e.OD=1]="OD",e[e.IOD=2]="IOD",e[e.ESD=3]="ESD",e[e.DCD=4]="DCD",e[e.DSD=5]="DSD",e[e.SLCD=6]="SLCD",$n.readSize=function(e){for(var t,r=0,i=4;i--&&(r=r<<7|127&(t=e.read(1)),128&t););return r},$n.extractDescriptors=function(e){for(var t,r,i,n=[];e.unreadLength;){if(t=new $n(e),i=new A(e.buffer,e.offset,t.size),e.skip(t.size),t.size<=0)return n;switch(t.tag){case qt.ESD:r=new jr(t,i);break;case qt.DCD:r=new Wr(t,i);break;case qt.DSD:r=new qr(t,i);break;case qt.SLCD:r=new Gr(t,i);break;default:r=null}r&&i.unreadLength&&(r.children=$n.extractDescriptors(i)),n.push(r)}return n};var w,Br=$n,Vr=(Qn.findDescriptor=function(e,t){var r;return e.some(function(e){return!!(r=e.probe.tag===t?e:Qn.findDescriptor(e.children,t))}),r},Qn),jr=(h(Yn,wn=Vr),Yn),Wr=(h(Kn,En=Vr),Kn),qr=(h(Xn,bn=Vr),Xn),Gr=(h(zn,Tn=Vr),zn),zr=(Sn=function(e,t){return(Sn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Sn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Gn,mn=Ue),Gn),Xr=(vn=function(e,t){return(vn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(h=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}vn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(qn,gn=v),qn),Kr=(yn=function(e,t){return(yn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Wn,_n=ir),Wn),Yr=(fn=function(e,t){return(fn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(h=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}fn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(jn,hn=ir),jn),Qr=(dn=function(e,t){return(dn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}dn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Vn,pn=v),Vn),$r=(un=function(e,t){return(un=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(h=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}un(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Bn,cn=v),Bn),Jr=(ln=function(e,t){return(ln=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Hn,sn=v),Hn),Zr=(an=function(e,t){return(an=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(h=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}an(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Fn,on=p),Fn),ei=(nn=function(e,t){return(nn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},(e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}nn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Un,rn=v),Un),ti=(tn=function(e,t){return(tn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Mn);if("function"!=typeof(c=en=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function ri(){this.constructor=ti}tn(ti,c),ti.prototype=null===c?Object.create(c):(ri.prototype=c.prototype,new ri);var ii=Mn,ni=(Zi=function(e,t){return(Zi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Nn);if("function"!=typeof(c=Ji=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function oi(){this.constructor=ni}Zi(ni,c),ni.prototype=null===c?Object.create(c):(oi.prototype=c.prototype,new oi);var ai=Nn,si=($i=function(e,t){return($i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},On);if("function"!=typeof(c=Qi=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function li(){this.constructor=si}$i(si,c),si.prototype=null===c?Object.create(c):(li.prototype=c.prototype,new li);var ci=On,ui=(Yi=function(e,t){return(Yi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},In);if("function"!=typeof(c=Ki=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function pi(){this.constructor=ui}Yi(ui,c),ui.prototype=null===c?Object.create(c):(pi.prototype=c.prototype,new pi);var di=In,hi=(Xi=function(e,t){return(Xi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Rn);if("function"!=typeof(c=zi=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function fi(){this.constructor=hi}Xi(hi,c),hi.prototype=null===c?Object.create(c):(fi.prototype=c.prototype,new fi);var _i=Rn,yi=(Gi=function(e,t){return(Gi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Dn);if("function"!=typeof(c=qi=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function gi(){this.constructor=yi}Gi(yi,c),yi.prototype=null===c?Object.create(c):(gi.prototype=c.prototype,new gi);var vi=Dn,mi=(Wi=function(e,t){return(Wi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},An);if("function"!=typeof(c=ji=Ue)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Si(){this.constructor=mi}Wi(mi,c),mi.prototype=null===c?Object.create(c):(Si.prototype=c.prototype,new Si);var Ti=An,bi=(Vi=function(e,t){return(Vi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Ln);if("function"!=typeof(c=Bi=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Ei(){this.constructor=bi}Vi(bi,c),bi.prototype=null===c?Object.create(c):(Ei.prototype=c.prototype,new Ei);var wi=Ln,Pi=(Hi=function(e,t){return(Hi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},kn);if("function"!=typeof(c=Fi=Ue)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function xi(){this.constructor=Pi}Hi(Pi,c),Pi.prototype=null===c?Object.create(c):(xi.prototype=c.prototype,new xi);var Ci=kn,ki=(Ui=function(e,t){return(Ui=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Cn);if("function"!=typeof(c=Mi=Ue)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Li(){this.constructor=ki}Ui(ki,c),ki.prototype=null===c?Object.create(c):(Li.prototype=c.prototype,new Li);var Ai=Cn,Di=(Ni=function(e,t){return(Ni=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},xn);if("function"!=typeof(c=Oi=Ue)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Ri(){this.constructor=Di}Ni(Di,c),Di.prototype=null===c?Object.create(c):(Ri.prototype=c.prototype,new Ri);var Ii,Oi,Ni,Mi,Ui,Fi,Hi,Bi,Vi,ji,Wi,qi,Gi,zi,Xi,Ki,Yi,Qi,$i,Ji,Zi,en,tn,rn,nn,on,an,sn,ln,cn,un,pn,dn,hn,fn,_n,yn,gn,vn,mn,Sn,Tn,bn,En,wn,Pn=xn,h=(Ii=function(e,t){return(Ii=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ii(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function xn(e,t){e=Oi.call(this,e,t)||this;return 1===e.version?e.baseMediaDecodeTime=t.read(8):e.baseMediaDecodeTime=t.read(4),e}function Cn(e,t){var r=Mi.call(this,e,t)||this;r.references=[],r.trackId=t.read(4),r.timescale=t.read(4),0===r.version?(r.pts=t.read(4),r.offset=t.read(4)):(r.pts=t.read(8),r.offset=t.read(8)),t.skip(2),r.references=[];for(var i=t.read(2),n=0;n<i;n++){var o=new m(t.read(4),32),a=t.read(4),s=new m(t.read(4),32);r.references.push({type:o.read(1),size:o.read(31),duration:a,startWithSap:s.read(1),sapType:s.read(3),sapDeltaTime:s.read(28)})}return r}function kn(e,t){var r=Fi.call(this,e,t)||this;r.isLeadings=[],r.sampleDependsOns=[],r.sampleIsDependedOns=[],r.sampleHasRedundancys=[];for(var i=0,n=void 0;i<t.unreadLength;i++)n=new m(t.read(1),8),r.isLeadings[i]=n.read(2),r.sampleDependsOns[i]=n.read(2),r.sampleIsDependedOns[i]=n.read(2),r.sampleHasRedundancys[i]=n.read(2);return r}function Ln(){return null!==Bi&&Bi.apply(this,arguments)||this}function An(){return null!==ji&&ji.apply(this,arguments)||this}function Dn(){return null!==qi&&qi.apply(this,arguments)||this}function Rn(){return null!==zi&&zi.apply(this,arguments)||this}function In(e,t){e=Ki.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.graphicsMode=t.read(2),e.opcolor=[t.read(2),t.read(2),t.read(2)],e}function On(e,t){e=Qi.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e}function Nn(e,t){var r=Ji.call(this,e,t)||this;r.matrix=[],r.version=t.read(1),r.flag=t.read(3),r.createTime=r.toStandardTime(t.read(4)),r.modifyTime=r.toStandardTime(t.read(4)),r.trackId=t.read(4),t.skip(4),r.duration=t.read(4),t.skip(8),r.layer=t.read(2),r.alternateGroup=t.read(2),r.volume=Number(t.read(1)+"."+t.read(1)),t.skip(2);for(var i=0;i<9;i++)r.matrix.push(Number(t.read(2)+"."+t.read(2)));return r.width=Number(t.read(2)+"."+t.read(2)),r.height=Number(t.read(2)+"."+t.read(2)),r}function Mn(e,t){var r=en.call(this,e,t)||this;for(r.data=[];0<t.unreadLength;)r.data.push(t.read(1));return r}function Un(e,t){var r=rn.call(this,e,t)||this;r.matrix=[],r.version=t.read(1),r.flag=t.read(3),r.createTime=r.toStandardTime(t.read(4)),r.modifyTime=r.toStandardTime(t.read(4)),r.timeScale=t.read(4),r.duration=t.read(4),r.rate=Number(t.read(2)+"."+t.read(2)),r.volume=Number(t.read(1)+"."+t.read(1)),t.skip(10);for(var i=0;i<9;i++)r.matrix.push(Number(t.read(2)+"."+t.read(2)));return t.skip(24),r.nextTrackId=t.read(4),r}function Fn(e,t){e=on.call(this,e,t)||this;return t.skip(6),e.dataReferenceIndex=t.read(2),t.skip(8),e.channelCount=t.read(2),e.sampleSize=t.read(2),t.skip(4),e.sampleRate=t.read(4)>>>16,e}function Hn(e,t){function r(e){return 96+(31&e)}var e=sn.call(this,e,t)||this,i=(e.version=t.read(1),e.flag=t.read(3),1===e.version),i=(e.createTime=e.toStandardTime(t.read(i?8:4)),e.modifyTime=e.toStandardTime(t.read(i?8:4)),e.timeScale=t.read(4),e.duration=t.read(i?8:4),t.read(2));return e.language=String.fromCharCode(r(i>>10),r(i>>5),r(i)),e.quality=Number(t.read(1)+"."+t.read(1)),e}function Bn(e,t){var r=cn.call(this,e,t)||this;return r.data=t.readToUint8(e.size-e.length),r}function Vn(e,t){var r=pn.call(this,e,t)||this;for(r.name="",r.version=t.read(1),r.flag=t.read(3),r.preDefined=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),r.handleType=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),t.skip(12);0<t.unreadLength;)r.name+=String.fromCharCode(t.read(1));return r}function jn(){return null!==hn&&hn.apply(this,arguments)||this}function Wn(){return null!==_n&&_n.apply(this,arguments)||this}function qn(e,t){var r=gn.call(this,e,t)||this;for(r.compatibleBrands=[],r.majorBrand=String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)),r.minorVersion=t.read(4);4<=t.unreadLength;)r.compatibleBrands.push(String.fromCharCode(t.read(1),t.read(1),t.read(1),t.read(1)));return r}function Gn(e,t){var e=mn.call(this,e,t)||this,t=(e.descriptors=[],e.audioObjectType=0,e.samplingFrequencyIndex=0,e.descriptors=Br.extractDescriptors(t),Vr.findDescriptor(e.descriptors,qt.DCD)),r=Vr.findDescriptor(e.descriptors,qt.DSD);return r&&(e.audioObjectType=r.audioObjectType,e.samplingFrequencyIndex=r.samplingFrequencyIndex),e.codec=t&&r?"mp4a."+t.mepg4Audio.toString(16)+"."+r.audioObjectType.toString(16):"mp4a",e}function zn(e,t){e=Tn.call(this,e)||this;return e.esId=t.read(2),e}function Xn(e,t){e=bn.call(this,e)||this,t=new m(t.read(2),16);return e.audioObjectType=t.read(5),e.samplingFrequencyIndex=t.read(4),e.channel=t.read(4),e.frameLengthFlag=t.read(1),e.dependsOnCoreCoder=t.read(1),e.extesionFlag=t.read(1),e}function Kn(e,t){e=En.call(this,e)||this;return e.mepg4Audio=t.read(1),e.audioStream=t.read(1),e.bufferSize=t.read(3),e.maxBitrate=t.read(4),e.avgBitrate=t.read(4),e}function Yn(e,t){e=wn.call(this,e)||this;return e.streamDependenceFlag=0,e.URLFlag=0,e.OCRStreamFlag=0,e.esId=t.read(2),e.esFlag=t.read(1),128&e.esFlag&&(e.streamDependenceFlag=t.read(2)),64&e.esFlag&&(e.URLFlag=t.read(1),t.skip(e.URLFlag)),32&e.esFlag&&(e.OCRStreamFlag=t.read(2)),e}function Qn(e){this.children=[],this.probe=e}function $n(e){this.tag=e.read(1),this.size=$n.readSize(e)}(e=w=w||{})[e.BASE_DATA_OFFSET=1]="BASE_DATA_OFFSET",e[e.SAMPLE_DESC=2]="SAMPLE_DESC",e[e.SAMPLE_DUR=8]="SAMPLE_DUR",e[e.SAMPLE_SIZE=16]="SAMPLE_SIZE",e[e.SAMPLE_FLAG=32]="SAMPLE_FLAG",e[e.DUR_EMPTY=65536]="DUR_EMPTY",e[e.DEFAULT_BASE_IS_MOOF=131072]="DEFAULT_BASE_IS_MOOF",h(so,no=Ue);var P,Jn=so,Zn=(io=function(e,t){return(io=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},ao);if("function"!=typeof(c=ro=Ue)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function eo(){this.constructor=Zn}io(Zn,c),Zn.prototype=null===c?Object.create(c):(eo.prototype=c.prototype,new eo);var to,ro,io,no,oo=ao,e=(to=function(e,t){return(to=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}to(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function ao(e,t){e=ro.call(this,e,t)||this;return e.trackId=t.read(4),e.defaultSampleDescriptionIndex=t.read(4),e.defaultSampleDuration=t.read(4),e.defaultSampleSize=t.read(4),e.defaultSampleFlag=t.read(4),e}function so(e,t){e=no.call(this,e,t)||this;return e.baseDataOffset=0,e.defaultSampleDescriptionIndex=0,e.defaultSampleDuration=0,e.defaultSampleSize=0,e.defaultSampleFlag=0,e.trackId=t.read(4),e.flag&w.BASE_DATA_OFFSET&&(e.baseDataOffset=t.read(8)),e.flag&w.SAMPLE_DESC&&(e.defaultSampleDescriptionIndex=t.read(4)),e.flag&w.SAMPLE_DUR&&(e.defaultSampleDuration=t.read(4)),e.flag&w.SAMPLE_SIZE&&(e.defaultSampleSize=t.read(4)),e.flag&w.SAMPLE_FLAG&&(e.defaultSampleFlag=t.read(4)),e}(h=P=P||{})[h.DATA_OFFSET=1]="DATA_OFFSET",h[h.FIRST_FLAG=4]="FIRST_FLAG",h[h.DURATION=256]="DURATION",h[h.SIZE=512]="SIZE",h[h.FLAG=1024]="FLAG",h[h.CTS_OFFSET=2048]="CTS_OFFSET",e(Ta,sa=Ue);var lo,co=Ta,uo=(aa=function(e,t){return(aa=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},Sa);if("function"!=typeof(c=oa=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function po(){this.constructor=uo}aa(uo,c),uo.prototype=null===c?Object.create(c):(po.prototype=c.prototype,new po);var ho=Sa,fo=(na=function(e,t){return(na=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},ma);if("function"!=typeof(c=ia=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function _o(){this.constructor=fo}na(fo,c),fo.prototype=null===c?Object.create(c):(_o.prototype=c.prototype,new _o);var yo=ma,go=(ra=function(e,t){return(ra=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},va);if("function"!=typeof(c=ta=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function vo(){this.constructor=go}ra(go,c),go.prototype=null===c?Object.create(c):(vo.prototype=c.prototype,new vo);var mo=va,So=(ea=function(e,t){return(ea=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},ga);if("function"!=typeof(c=Zo=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function To(){this.constructor=So}ea(So,c),So.prototype=null===c?Object.create(c):(To.prototype=c.prototype,new To);var bo=ga,Eo=(Jo=function(e,t){return(Jo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},ya);if("function"!=typeof(c=$o=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function wo(){this.constructor=Eo}Jo(Eo,c),Eo.prototype=null===c?Object.create(c):(wo.prototype=c.prototype,new wo);var Po=ya,xo=(Qo=function(e,t){return(Qo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},_a);if("function"!=typeof(c=Yo=p)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Co(){this.constructor=xo}Qo(xo,c),xo.prototype=null===c?Object.create(c):(Co.prototype=c.prototype,new Co);var ko=_a,Lo=(Ko=function(e,t){return(Ko=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},fa);if("function"!=typeof(c=Xo=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Ao(){this.constructor=Lo}Ko(Lo,c),Lo.prototype=null===c?Object.create(c):(Ao.prototype=c.prototype,new Ao);var Do=fa;function Ro(e){return Array.isArray(e)?e:e?[e]:[]}zo=function(e,t){return(zo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Io=ha;if("function"!=typeof(c=Go=v)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function Oo(){this.constructor=Io}zo(Io,c),Io.prototype=null===c?Object.create(c):(Oo.prototype=c.prototype,new Oo);var No=ha,Mo=(da.prototype.addTrack=function(e){this.tracks.push(e)},da.prototype.getTracks=function(){return this.tracks},da.prototype.getTrackById=function(t){return this.tracks.find(function(e){return e.options.id===t})},da),Uo=function(){return(Uo=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},Fo=(pa.prototype.getSamples=function(){return this.samples},pa.prototype.getNextSampleOffset=function(){var e=this.samples[this.nextSampleIndex];return e?e.offset:0},pa.prototype.addSample=function(e){this.samples.push(e),this.duration+=e.duration},pa.prototype.processNextSample=function(e,t){void 0===t&&(t=0);var r=this.samples[this.nextSampleIndex];if(r)return this.processSample(e,t,r)},pa.prototype.processSample=function(e,t,r){var i=(t=void 0===t?0:t)+e.byteLength,t=r.offset-t;if(0<=t&&r.offset+r.size<=i)return this.nextSampleIndex++,Uo(Uo({},r),{data:e.subarray(t,t+r.size)})},pa.prototype.processSamples=function(e,t){void 0===t&&(t=0);for(var r=this.samples,i=[],n=this.nextSampleIndex,o=r.length;n<o;n++){var a=this.processSample(e,t,r[n]);if(!a)break;i.push(a)}return i},pa.prototype.seek=function(e){for(var t,r=e*this.options.timeScale,i=-1,n=-1,o=0,a=this.samples.length;o<a;o++)if((t=this.samples[o]).isSync&&(n=o),r<=t.dts+t.cts){i=n;break}if(-1<i)return this.nextSampleIndex=i,this.samples[i]},pa),Ho=(ua.prototype.createMedia=function(e){return this._parseMoovJSON(e)},ua.prototype._parseMoovJSON=function(s){var l=this,e=s.mvhd.box,c=new Mo({duration:e.duration,timeScale:e.timeScale,rate:e.rate,modifyTime:e.modifyTime,createTime:e.createTime});return s.trak&&[].concat(s.trak).forEach(function(e){var t=e.tkhd,e=e.mdia,r=e.mdhd,i=e.minf.stbl,t=t.box,e=e.hdlr.box,r=r.box,n=Oe[e.handleType],i=l._buildSamples(i,n),o={id:t.trackId,name:e.name,handleType:e.handleType,type:n,createTime:t.createTime,modifyTime:t.modifyTime,layer:t.layer,volume:t.volume,matrix:t.matrix,duration:t.duration,width:t.width,height:t.height,timeScale:r.timeScale,language:r.language,quality:r.quality,defaultSampleDescriptionIndex:1,defaultSampleDuration:0,defaultSampleSize:0,defaultSampleFlag:0},n=null==(e=s.mvex)?void 0:e.trex,a=(n&&[].concat(n).forEach(function(e){e=e.box;o.defaultSampleDescriptionIndex=e.defaultSampleDescriptionIndex,o.defaultSampleDuration=e.defaultSampleDuration,o.defaultSampleSize=e.defaultSampleSize,o.defaultSampleFlag=e.defaultSampleFlag}),new Fo(o));i.forEach(function(e){return a.addSample(e)}),c.addTrack(a)}),c},ua.prototype._buildSamples=function(e,n){var o,a,s,l,c,u,p,d,h,f,_,y,g,v,m,S,T,t=e.stts,r=e.stss,i=e.ctts,b=e.stsz||e.stz2;return b?(u=e.stco||e.co64,p=e.stsc.box,d=null==r?void 0:r.box,h=t.box,f=null==i?void 0:i.box,v=g=y=_=-1,m=0,S=[],(T=b.box.sampleSizes).forEach(function(e,t){var r={},i=p.entries;r.size=e,r.trackType=n,0===t?(a=1,o=0,r.chunkIndex=a,c=i[r.chunkRunIndex=o].samplePerChunk,l=0,s=o+1<i.length?i[o+1].firstChunk-1:1/0):t<c?(r.chunkIndex=a,r.chunkRunIndex=o):(a++,l=0,s<(r.chunkIndex=a)&&(s=++o+1<i.length?i[o+1].firstChunk-1:1/0),c+=i[r.chunkRunIndex=o].samplePerChunk),r.descriptionIndex=i[o].sampleDescriptionIndex-1,r.offset=u.box.chunkOffsets[r.chunkIndex-1]+l,l+=r.size,_<t&&(y++,_=Math.max(_,0),_+=h.sampleCounts[y]),0<t?((e=S[t-1]).duration=h.sampleDurations[y],r.dts=S[t-1].dts+e.duration):r.dts=0,f?(g<=t&&(v++,g=Math.max(g,0),g+=f.sampleCounts[v]),r.cts=f.sampleOffsets[v]):r.cts=0,d?t===d.sampleNumbers[m]-1?(r.isSync=!0,m++):r.isSync=!1:r.isSync=!0,r.isLast=t===T.length-1,S.push(r)}),S):[]},ua),Bo=(ca.prototype.init=function(e){this.options=e},ca.prototype.parse=function(t){var r=this;Ro(t.traf).forEach(function(e){return r._buildSamples(e,t.box)})},ca.prototype._buildSamples=function(e,t){var r=e.tfhd.box,i=this._getTrakById(r.trackId);if(i)for(var n=i.options,o=e.tfdt.box,a=r.flag,s=(a&w.SAMPLE_DESC?r:n).defaultSampleDescriptionIndex,l=(a&w.SAMPLE_DUR?r:n).defaultSampleDuration,c=(a&w.SAMPLE_SIZE?r:n).defaultSampleSize,u=(a&w.SAMPLE_FLAG?r:n).defaultSampleFlag,p=Ro(e.trun),d=n.id,h=n.type,f=a&w.BASE_DATA_OFFSET?r.baseDataOffset:a&w.DEFAULT_BASE_IS_MOOF?t.header.start:0,_=0,y=0;y<p.length;y++)for(var g=p[y].box,v=g.flag,m=g.dataOffset+f,S=0;S<g.sampleCount;S++){var T={},b=(T.trackId=d,T.trackType=h,T.descriptionIndex=s,v&P.SIZE?T.size=g.sampleSizes[S]:T.size=c,v&P.DURATION?T.duration=g.sampleDurations[S]:T.duration=l,T.dts=0<_?_:o?o.baseMediaDecodeTime:0,_=T.dts+T.duration,v&P.CTS_OFFSET?T.cts=g.sampleCTSs[S]:T.cts=0,u);v&P.FLAG?b=g.sampleFlags[S]:0===S&&v&P.FIRST_FLAG&&(b=g.firstSampleFlag),T.offset=m,T.flag=b,T.isSync=!(b&(E.IS_NON_SYNC|E.DEPENDS_YES)),T.isLeading=b>>26&3,T.dependsOn=b>>24&3,T.isDependedOn=b>>22&3,T.hasRedundancy=b>>20&3,T.degradationPriority=65535&b,m+=T.size,T.isLast=y===p.length-1&&S===g.sampleCount-1,i.addSample(T)}},ca.prototype.destroy=function(){this.options=null},ca),Vo=(qo=function(e,t){return(qo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},_);if("function"!=typeof(c=Wo=t)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function jo(){this.constructor=Vo}qo(Vo,c),Vo.prototype=null===c?Object.create(c):(jo.prototype=c.prototype,new jo),_.probe=function(e){return!(e.byteLength<8)&&"ftyp"===[e[4],e[5],e[6],e[7]].map(function(e){return String.fromCharCode(e)}).join("")},_.prototype.processPackets=function(t,r){var e,i=this,n=[];return this.media&&t.byteLength&&(this.media.getTracks().forEach(function(e){e.processSamples(t,r).forEach(function(e){e=i.convertSampleToPacket(e);e&&n.push(e)})}),e=this.getMinNextSampleOffset()-r,this.unhandleBuffer=e>=t.byteLength?null:t.slice(e).buffer),n},_.prototype.seek=function(t){var e,r=this.options.progressive;this.unhandleBuffer=null,r&&this.loader.suspend(),null!=(e=this.media)&&e.getTracks().map(function(e){return e.seek(t)}),r&&this.loader.loadRange(this.getMinNextSampleOffset())},_.prototype.onProgress=function(e){var t=e.data,e=e.offset;t.length&&(this.unhandleBuffer&&(t=A.concatUint8(new Uint8Array(this.unhandleBuffer),t),e-=this.unhandleBuffer.byteLength,this.unhandleBuffer=null),this.metadata||this.parse(new A(t.buffer,0),e),this.metadata)&&((t=this.processPackets(t,e)).length&&this.emit("loadeddata",{packets:t}))},_.prototype.onLoadEnd=function(){this.loader.eof&&this.emit("end",void 0)},_.prototype.getMinNextSampleOffset=function(){return this.media?Math.min.apply(Math,this.media.getTracks().map(function(e){return e.getNextSampleOffset()})):0},_.prototype.parse=function(o,a){var s,l=this;void 0===a&&(a=0);for(var c=o.offset,u=0,p=this;8<=o.unreadLength;){var e=(()=>{var t,r,e,i,n;return u=o.offset-c,0===(t=new Ie(o,a+u)).size?(e=new Error("box [".concat(t.type,"] size \u4e3a 0")),U.error(e),p.emit("error",{code:de.PARSER,message:e.message,origin:e}),"break"):p.options.progressive&&"mdat"===t.type&&!p.metadata?(r=t.start+t.size,p.loader.suspend(),p.unhandleBuffer=null,U.info("\u68c0\u6d4b\u5230mdat box\u5728moov box\u4e4b\u540e\uff0c\u8df3\u8f6cmoov\u8d77\u59cb\u504f\u79fb\u4f4d"),p.loader.loadRange(r).then(function(e){e&&(l.unhandleBuffer=null,l.loader.jump(t.start),l.loader.status!==d.SUSPENGING)&&l.loader.loadRange(t.start,r)}),{value:void 0}):(e=t.size-t.length)<=o.unreadLength?((n=B[t.type])?(i=new A(o.buffer,o.offset,e),(s=new n(t,i)).isContainer&&((n=new _({sub:!0})).proxy(p,["loadedbox"]),n.parse(i,u+a+t.length),n.removeAllListeners(),n.boxes.forEach(function(e){s.append(e)}))):s=new v(t),o.skip(e),p.boxes.push(s),void p.emit("loadedbox",s)):(o.back(t.length),"break")})();if("object"==typeof e)return e.value;if("break"===e)break}o.unreadLength&&(this.unhandleBuffer=o.readToBuffer())},_.prototype.reset=function(){Wo.prototype.reset.call(this),this.boxes=[],this.unhandleBuffer=null,this.avcCBox=void 0,this.hvcCBox=void 0,this.mp4aBox=void 0,this.media=null,this.moofParser.destroy()};var Wo,qo,Go,zo,Xo,Ko,Yo,Qo,$o,Jo,Zo,ea,ta,ra,ia,na,oa,aa,sa,la=_;function _(e){var y=Wo.call(this,e=void 0===e?{}:e)||this;return y.media=null,y.unhandleBuffer=null,y.formatType=g.MP4,y.boxes=[],y._handleBoxLoad=function(e){var t,o,a,s,l,c,u,p,d,h,f,r,i,_,n=e.header.type;"vvcC"===n?y.vvcCBox=e:"vvc1"===n||"vvi1"===n?y.vvcCBox&&(y.vvcCBox.codecTag=n):"hvcC"===n?y.hvcCBox=e:"hvc1"===n||"hev1"===n?y.hvcCBox&&(y.hvcCBox.codecTag=n):"avcC"===n?y.avcCBox=e:"esds"===n?y.esdsBox=e:"mp4a"===n?y.mp4aBox=e:"moov"===n?(r=v.mapBoxToJSON(e),y.media=y.moovParser.createMedia(r),y.moofParser.init({media:y.media}),i=(r=y.mp4aBox||{}).sampleRate,o=void 0===i?0:i,a=void 0===(i=r.sampleSize)?0:i,s=void 0===(i=r.channelCount)?0:i,i=(r=y.esdsBox||{}).audioObjectType,l=void 0===i?0:i,c=void 0===(i=r.samplingFrequencyIndex)?0:i,u=void 0===(i=r.codec)?"":i,p=[],d=[],h=[],y.hvcCBox?(d=y.hvcCBox.vps,h=y.hvcCBox.pps,p=y.hvcCBox.sps):y.vvcCBox?(h=y.vvcCBox.pps,p=y.vvcCBox.sps,p=y.vvcCBox.sps):y.avcCBox&&(h=y.avcCBox.pps,p=y.avcCBox.sps),i=(r=y.options).live,_=(null==(t=y.avcCBox)?void 0:t.codec)||"",y.vvcCBox?(_=y.vvcCBox.codec,f=y.vvcCBox?y.vvcCBox.codecTag:void 0):y.hvcCBox&&(_=y.hvcCBox?y.hvcCBox.codec:(null==(t=y.avcCBox)?void 0:t.codec)||"",f=y.hvcCBox?y.hvcCBox.codecTag:void 0),y.metadata={formatType:g.MP4,live:!!i,progressive:!i&&!!r.progressive,url:y.loader.url,basePTS:0,baseDTS:0,duration:y.media.options.duration,timescale:y.media.options.timeScale,tracks:y.media.getTracks().map(function(e){var t,r,i,n={};switch(n.id=e.options.id,n.type=e.options.type,n.timescale=e.options.timeScale,n.baseDTS=0,n.basePTS=0,n.type){case M.VIDEO:n.width=e.options.width,n.height=e.options.height,n.vps=d,n.sps=p,n.pps=h,n.rotate=(t=e.options.matrix).length<5||(r=Math.hypot(t[0],t[3]),i=Math.hypot(t[1],t[4]),0===r)||0===i?0:180*Math.atan2(t[1]/i,t[0]/r)/Math.PI,n.pixelRatio=[],n.codec=_,n.codecTag=f,n.fps=y.computeFps(e,null==(i=y.media)?void 0:i.options);break;case M.AUDIO:n.audioObjectType=l,n.sampleRate=o,n.samplingFrequencyIndex=c,n.sampleSize=a,n.channelCount=s,n.codec=u;break;default:n.type=M.UNKNOWN}return n})},U.info("loadedmetadata metadata:",y.metadata),y.emit("loadedmetadata",y.metadata)):"moof"===n&&(U.info("\u68c0\u6d4b\u5230moof box\u88ab\u52a0\u8f7d\uff0c\u5f53\u524d\u7d20\u6750\u4e3afMP4"),y.moofParser.parse(v.mapBoxToJSON(e)))},y.computeFps=function(e,t){return t?e.getSamples().length/(t.duration/t.timeScale):0},y.convertSampleToPacket=function(e){var t,r,i,n,o,a;return e.trackType===M.VIDEO&&(y.hvcCBox||y.avcCBox||y.vvcCBox)?(t=e.data,r=e.isSync,i=(n=y.hvcCBox||y.avcCBox||y.vvcCBox).lengthSizeMinusOne,n=n.codec,a=!1,y.vvcCBox&&4<t.length&&0===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&(a=!0),o=[],o=a?D.extractAnnexbNAL(t):D.extractAVCCNAL(t,i),a=!1,y.hvcCBox&&(a=o.every(function(e){return O.isNonRef(e)})),y.vvcCBox&&(a=o.every(function(e){N.isNonRef(e)})),r&&(y.hvcCBox?(y.hvcCBox.pps.forEach(function(e){return o.unshift(e)}),y.hvcCBox.sps.forEach(function(e){return o.unshift(e)}),y.hvcCBox.vps.forEach(function(e){return o.unshift(e)})):y.vvcCBox?(y.vvcCBox.pps.forEach(function(e){return o.unshift(e)}),y.vvcCBox.sps.forEach(function(e){return o.unshift(e)}),y.vvcCBox.vps.forEach(function(e){return o.unshift(e)})):y.avcCBox&&(y.avcCBox.pps.forEach(function(e){return o.unshift(e)}),y.avcCBox.sps.forEach(function(e){return o.unshift(e)}))),{codec:n,trackId:e.trackId,trackType:e.trackType,isLast:e.isLast,dts:e.dts,pts:e.cts+e.dts,isSync:e.isSync,isNonRef:a,data:o,size:o.reduce(function(e,t){return e+t.byteLength},0),offset:e.offset}):e.trackType===M.AUDIO&&y.esdsBox?{codec:y.esdsBox.codec,trackId:e.trackId,trackType:e.trackType,dts:e.dts,pts:e.cts+e.dts,isLast:e.isLast,isSync:!0,isNonRef:!1,data:[e.data],size:e.data.byteLength,offset:e.offset}:void 0},y.options=e,y.moovParser=new Ho,y.moofParser=new Bo,e.sub||y.on("loadedbox",y._handleBoxLoad),y}function ca(){var r=this;this.options=null,this._getTrakById=function(t){var e;return null==(e=r.options)?void 0:e.media.getTracks().find(function(e){return e.options.id===t})}}function ua(){}function pa(e){this.samples=[],this.nextSampleIndex=0,this.duration=0,this.options=e}function da(e){this.tracks=[],this.options=e}function ha(e,t){var r=Go.call(this,e,t)||this;r.sampleCounts=[],r.sampleDurations=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.sampleCounts[n]=t.read(4),r.sampleDurations[n]=t.read(4);return r}function fa(e,t){var r=Xo.call(this,e,t)||this;r.isContainer=!0,r.sampleSizes=[],r.version=t.read(1),r.flag=t.read(3),r.sampleSize=t.read(4);for(var i=t.read(4),n=0;n<i;n++)0===r.sampleSize?r.sampleSizes.push(t.read(4)):r.sampleSizes.push(r.sampleSize);return r}function _a(e,t){var r=Yo.call(this,e,t)||this;r.sampleNumbers=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.sampleNumbers.push(t.read(4));return r}function ya(e,t){e=$o.call(this,e,t)||this;return e.version=t.read(1),e.flag=t.read(3),e.entryCount=t.read(4),e}function ga(e,t){var r=Zo.call(this,e,t)||this;r.entries=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.entries.push({firstChunk:t.read(4),samplePerChunk:t.read(4),sampleDescriptionIndex:t.read(4)});return r}function va(e,t){var r=ta.call(this,e,t)||this;r.chunkOffsets=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.chunkOffsets.push(t.read(8));return r}function ma(e,t){var r=ia.call(this,e,t)||this;r.chunkOffsets=[],r.version=t.read(1),r.flag=t.read(3);for(var i=t.read(4),n=0;n<i;n++)r.chunkOffsets.push(t.read(4));return r}function Sa(e,t){var r=oa.call(this,e,t)||this;r.sampleCounts=[],r.sampleOffsets=[],r.version=t.read(1),r.flag=t.read(3),r.entryCount=t.read(4);for(var i=0;i<r.entryCount;i++)r.sampleCounts.push(t.read(4)),r.sampleOffsets.push(t.readInt(4));return r}function Ta(e,t){var r=sa.call(this,e,t)||this;r.sampleDurations=[],r.sampleSizes=[],r.sampleFlags=[],r.sampleCTSs=[],r.sampleCount=t.read(4),r.flag&P.DATA_OFFSET?r.dataOffset=t.readInt(4):r.dataOffset=0,r.flag&P.FIRST_FLAG?r.firstSampleFlag=t.read(4):r.firstSampleFlag=0;for(var i=0;i<r.sampleCount;i++)r.flag&P.DURATION&&(r.sampleDurations[i]=t.read(4)),r.flag&P.SIZE&&(r.sampleSizes[i]=t.read(4)),r.flag&P.FLAG&&(r.sampleFlags[i]=t.read(4)),r.flag&P.CTS_OFFSET&&(0===r.version?r.sampleCTSs[i]=t.read(4):r.sampleCTSs[i]=t.readInt(4));return r}(h=lo=lo||{})[h.H264=27]="H264",h[h.H265=36]="H265",h[h.H266=51]="H266",h[h.AAC=15]="AAC";var ba,Ea={1:M.VIDEO,2:M.VIDEO,3:M.AUDIO,4:M.AUDIO,5:M.UNKNOWN,6:M.UNKNOWN,7:M.UNKNOWN,8:M.UNKNOWN,9:M.UNKNOWN,10:M.UNKNOWN,11:M.UNKNOWN,12:M.UNKNOWN,13:M.UNKNOWN,14:M.UNKNOWN,15:M.AUDIO,16:M.VIDEO,17:M.AUDIO,18:M.UNKNOWN,19:M.UNKNOWN,20:M.UNKNOWN,21:M.UNKNOWN,22:M.UNKNOWN,23:M.UNKNOWN,24:M.UNKNOWN,25:M.UNKNOWN,26:M.UNKNOWN,27:M.VIDEO,28:M.AUDIO,29:M.UNKNOWN,30:M.VIDEO,31:M.UNKNOWN,32:M.UNKNOWN,33:M.VIDEO,36:M.VIDEO,51:M.VIDEO,66:M.UNKNOWN,127:M.UNKNOWN,128:M.AUDIO,129:M.AUDIO,130:M.AUDIO,131:M.AUDIO,132:M.AUDIO,133:M.AUDIO,134:M.AUDIO,135:M.AUDIO,144:M.UNKNOWN,145:M.UNKNOWN,192:M.UNKNOWN,193:M.AUDIO,194:M.AUDIO,207:M.UNKNOWN,209:M.VIDEO,210:M.VIDEO,219:M.UNKNOWN,234:M.VIDEO},wa=function(e){this.programs=[],this.tableId=e.read(1);var t=new m(e.read(2),16),t=(this.sectionSyntaxIndicator=t.read(1),t.skip(1),t.skip(2),this.sectionLength=t.read(12),this.transportStreamId=e.read(2),new m(e.read(1),8));t.skip(2),this.versionNumber=t.read(5),this.currentNextIndicator=t.read(1),this.sectionNumber=e.read(1),this.lastSectionNumber=e.read(1);for(var r=0;r<this.sectionLength-12;r+=4)this.programs.push({number:e.read(2),pid:8191&e.read(2)});this.crc32=e.read(4)},Pa=function(e){this.streamId=e.read(1),this.pesPacketLength=e.read(2);var t=new m(e.read(2),16),t=(t.skip(2),this.pesScramblingControl=t.read(2),this.pesPriority=t.read(1),this.dataAlignmentIndicator=t.read(1),this.copyright=t.read(1),this.originalOrCopy=t.read(1),this.ptsDtsFlags=t.read(2),this.esCRFlag=t.read(1),this.esRateFlag=t.read(1),this.dsmTrickModeFlag=t.read(1),this.additionalCopyInfoFlag=t.read(1),this.pesCRCFlag=t.read(1),this.pesExtensionFlag=t.read(1),this.pesHeaderDataLength=e.read(1),e.offset),t=(2&this.ptsDtsFlags?(this.pts=(14&e.read(1))<<27|e.read(2)>>>1<<13|e.read(2)>>>3,this.pts*=4,e.back(1),this.pts+=(6&e.read(1))>>>1,1&this.ptsDtsFlags?(this.dts=(14&e.read(1))<<27|e.read(2)>>>1<<13|e.read(2)>>>3,this.dts*=4,e.back(1),this.dts+=(6&e.read(1))>>>1):this.dts=this.pts):(this.pts=0,this.dts=0),this.pesHeaderDataLength-(e.offset-t));0<t&&e.skip(t),this.data=e.readToUint8()},xa=function(e){this.streams=[],this.tableId=e.read(1);var t=new m(e.read(2),16),t=(this.sectionSyntaxIndicator=t.read(1),t.skip(1),t.skip(2),this.sectionLength=t.read(12),this.programNumber=e.read(2),new m(e.read(1),8));t.skip(2),this.versionNumber=t.read(5),this.currentNextIndicator=t.read(1),this.sectionNumber=e.read(1),this.lastSectionNumber=e.read(1),this.pcrPid=8191&e.read(2),this.programInfoLength=4095&e.read(2);for(var r=12+this.programInfoLength;r<=this.sectionLength-2;r+=5){var i={streamType:e.read(1),pid:8191&e.read(2),esInfoLength:4095&e.read(2)};this.streams.push(i),e.skip(i.esInfoLength),r+=i.esInfoLength}this.crc32=e.read(4)};(e=ba=ba||{})[e.PAT=0]="PAT",e[e.CAT=1]="CAT",e[e.TSDT=2]="TSDT",Na.SYNC_BYTE=71;var Ca,ka,La=Na,h=i(378),Aa=i.n(h),Da=(Object.freeze({formatType:g.UNKNOWN,live:!1,progressive:!1,url:"",basePTS:0,baseDTS:0,timescale:0,duration:0,tracks:[]}),Object.freeze({type:M.VIDEO,id:0,baseDTS:0,basePTS:0,timescale:1e3,codec:"",width:0,height:0,vps:[],pps:[],sps:[],sei:[],pixelRatio:[],fps:25,live:!1})),Ra=Object.freeze({type:M.AUDIO,id:1,baseDTS:0,basePTS:0,timescale:1e3,codec:"",audioObjectType:2,samplingFrequencyIndex:0,sampleRate:0,sampleSize:16,channelCount:0}),Ia=(Object.defineProperty(Oa.prototype,"size",{get:function(){return this.list.length},enumerable:!1,configurable:!0}),Oa.prototype.write=function(e){this.list.push(e)},Oa.prototype.read=function(){return this.list.shift()},Oa.prototype.readAll=function(){var e=this.list;return this.list=[],e},Oa.prototype.clear=function(){this.list=[]},Oa),e=(ka=function(e,t){return(ka=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ka(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function Oa(){this.list=[]}function Na(e){var t=new m(e.read(4),32);this.syncByte=t.read(8),this.errorIndicator=t.read(1),this.payloadUnitStartIndicator=t.read(1),this.transportPriority=t.read(1),this.pid=t.read(13),this.transportScramblingControl=t.read(2),this.adaptationFlag=t.read(1),this.payloadFlag=t.read(1),this.continueCounter=t.read(4),this.adaptationFlag&&(t=e.read(1),e.skip(t)),this.payloadUnitStartIndicator&&e.skip(1)}(h=Ca=Ca||{})[h.UNKNOWN=0]="UNKNOWN",h[h.PAT=1]="PAT",h[h.PES=2]="PES",h[h.PMT=3]="PMT",e(T,Xa=t),T.probe=function(e){if(e.byteLength<1)return!1;for(var t=0,r=e.byteLength;t<r;t+=188)if(e[t]!==La.SYNC_BYTE)return!1;return!0},T.prototype.splitToTsPacket=function(e){this.unhandleBuffer&&this.unhandleBuffer.byteLength&&(e=A.concat(this.unhandleBuffer,e),this.unhandleBuffer=void 0);for(var t=new Uint8Array(e),r=t.byteLength,i=0;i+188<=r;){if(t[i]!==La.SYNC_BYTE){var n=new Uint8Array(t.buffer,i).findIndex(function(e){return e===La.SYNC_BYTE});if(console.warn("[videox] mpegts sync byte error",t[i],i,n),-1<n){i+=n;continue}break}this.parseTsPacket(t.subarray(i,i+188)),i+=188}i<r&&(this.unhandleBuffer=e.slice(i))},T.prototype.parseTsPacket=function(e){var t,e=A.fromUint8(e),r=new La(e),i=null;r.pid===ba.PAT?(i=new wa(e),this.patPrograms=i.programs,this.emitTSPacket(Ca.PAT,r,i)):this.patPrograms.some(function(e){return e.pid===r.pid})?(i=new xa(e),(t=ne()(this.pmtStreams,i.streams))&&this.emitPackets(),this.metadataChanged=t,this.pmtStreams=i.streams,this.emitTSPacket(Ca.PMT,r,i)):(t=this.pmtStreams.find(function(e){return e.pid===r.pid}))?(r.payloadUnitStartIndicator&&this.parsePes(),this.prevPesSegments.push(e.readToUint8()),this.prevPesTSHeader=r,this.prevPmtStream=t):this.emitTSPacket(Ca.UNKNOWN,r,i)},T.prototype.parsePes=function(){var e,t=this.prevPmtStream;this.prevPesSegments.length&&this.prevPesTSHeader&&t&&(e=A.fromUint8(A.concatUint8s(this.prevPesSegments)),this.prevPesSegments=[],1===e.read(2))&&(e=new Pa(e),this.emitTSPacket(Ca.PES,this.prevPesTSHeader,e),t.streamType===lo.H265||t.streamType===lo.H266||t.streamType===lo.H264?this.parseVideoPes(e,t):t.streamType===lo.AAC&&this.parseAudioPes(e,t))},T.prototype.parseVideoPes=function(e,t){var i,r=Math.round(e.dts/90),n=Math.round(e.pts/90),o=t.streamType===lo.H265,a=t.streamType===lo.H266,s={},l=!0,c=!1,u=[],p=[],d=[],h=[],e=D.extractAnnexbNAL(e.data);if(a?(i=[],e.forEach(function(e){var t,r=A.fromUint8(e);e.length<4?console.log("skip this too small nalu:",e):(t=new N(r)).nalType<I.VVC_AUD_NUT&&(t.nalType===I.VVC_SPS_NUT?(c=!0,r=new Ae(Ve(r.readToUint8())),s.width=r.width,s.height=r.height,s.codec=r.codec,p.push(e)):t.nalType===I.VVC_VPS_NUT?d.push(e):t.nalType===I.VVC_PPS_NUT&&h.push(e),l=N.isNonRefNALType(t.nalType)&&l,i.push(N.createAnnexbStartCode(),e))}),a=A.concatUint8s(i),u.push(a)):e.forEach(function(e){var t,r,i=A.fromUint8(e);e.length<2||(o?(r=new O(i)).nalType<R.ACCESS_UNIT_DELIMITER&&(r.nalType>=R.VPS&&(r.nalType===R.SPS?(c=!0,t=new Le(Ve(i.readToUint8())),s.width=t.width,s.height=t.height,s.pixelRatio=t.pixelRatio,s.codec=t.codec,p.push(e)):r.nalType===R.VPS?d.push(e):r.nalType===R.PPS&&h.push(e)),!H.isSafari||r.nalType===R.TRAIL_R||r.nalType===R.TRAIL_N||r.nalType===R.IDR_W_RADL||r.nalType===R.IDR_N_LP||r.nalType===R.CRA||r.nalType===R.SPS||r.nalType===R.VPS||r.nalType===R.PPS||r.nalType===R.SEI?u.push(e):console.warn("skip this nalu nalType:",r.nalType),l=O.isNonRefNALType(r.nalType)&&l):((r=new Z(i)).nalType<Q.DIVIDER&&(r.nalType===Q.SPS?(c=!0,t=new we(Ve(i.readToUint8())),s.width=t.width,s.height=t.height,s.pixelRatio=t.pixelRatio,s.codec=t.codec,p.push(e)):r.nalType===Q.PPS&&h.push(e),u.push(e)),l=!1))}),!this.videoLoaded){if(!c)return;this.videoLoaded=!0,s.baseDTS=r,s.basePTS=n}d.length&&(s.vps=d),p.length&&(s.sps=p),h.length&&(s.pps=h),this.videoMetadata?(this.metadataChanged=ae(this.videoMetadata,s),this.metadataChanged&&this.emit("updatedtrackmetadata",this.videoMetadata)):(this.videoMetadata=Aa()({},Da,s),this.metadataChanged=!0),this.checkMetadataChanged(),this.packetQueue.write({trackId:t.pid,codec:this.videoMetadata.codec,trackType:M.VIDEO,isSync:c,isNonRef:l,data:u,dts:r,pts:n,size:u.reduce(function(e,t){return e+t.byteLength},0)})},T.prototype.parseAudioPes=function(e,r){var t,i,n,o=this,a={},s=Math.round(e.dts/90),l=Math.round(e.pts/90),e=(this.audioLoaded||(this.audioLoaded=!0,a.baseDTS=s,a.basePTS=l),X(e.data));e.length&&(t=e[0],i="mp4a.40."+t.audioObjectType,a.codec=i,a.audioObjectType=t.audioObjectType,a.sampleRate=t.sampleRate,a.channelCount=t.channelCount,this.audioMetadata?(this.metadataChanged=ae(this.audioMetadata,a),this.metadataChanged&&this.emit("updatedtrackmetadata",this.audioMetadata)):(this.audioMetadata=Aa()({},Ra,a),this.metadataChanged=!0),this.checkMetadataChanged(),n=Math.round(9e4*j/t.sampleRate/90),e.forEach(function(e,t){o.packetQueue.write({trackId:r.pid,codec:i,trackType:M.AUDIO,isSync:!0,isNonRef:!0,data:[e.data],dts:n*t+s,pts:n*t+l,size:e.data.byteLength})}))},T.prototype.checkMetadataChanged=function(){var t,e,r=this;return this.pmtStreams.length&&this.metadataChanged&&(t=[],this.pmtStreams.every(function(e){e=Ea[e.streamType];return e===M.VIDEO?(r.videoMetadata&&t.push(r.videoMetadata),!(!r.videoMetadata||!r.videoMetadata.codec)):e!==M.AUDIO||(r.audioMetadata&&t.push(r.audioMetadata),!(!r.audioMetadata||!r.audioMetadata.codec))}))&&(e={formatType:g.MPEGTS,live:!1,progressive:!!this.options.progressive,url:this.loader.url,basePTS:Math.min.apply(Math,t.map(function(e){return e.basePTS||0})),baseDTS:Math.min.apply(Math,t.map(function(e){return e.baseDTS||0})),timescale:1e3,duration:0,tracks:t},this.metadataChanged=!1,this.metadata?ae(this.metadata,e)&&this.emit("updatedmetadata",this.metadata):(this.metadata=e,this.emit("loadedmetadata",this.metadata))),this.metadataChanged},T.prototype.emitTSPacket=function(e,t,r){U.debug("loadedtspacket","type:",Ca[e],"header:",t,"payload:",r),this.emit("loadedtspacket",{type:e,header:t,payload:r})},T.prototype.emitPackets=function(){var e;this.metadata&&this.loader.status!==d.SUSPENGING&&!this.metadataChanged&&0<this.packetQueue.size&&(e=this.packetQueue.readAll(),this.emit("loadeddata",{packets:e}))},T.prototype.continuousLoad=function(e){return this.loader.load(e)},T.prototype.parse=function(e){this.splitToTsPacket(e),this.emitPackets()},T.prototype.onProgress=function(e){e.data.byteLength&&this.parse(e.data.buffer)},T.prototype.onLoadEnd=function(){this.parsePes(),this.emitPackets(),this.loader.eof&&this.emit("end",void 0)},T.prototype.resume=function(){return this.options.progressive?Xa.prototype.resume.call(this):hs.resolve(!1)},T.prototype.flush=function(){this.unhandleBuffer=void 0,this.prevPesTSHeader=void 0,this.prevPmtStream=void 0,this.prevPesSegments=[]},T.prototype.seek=function(){this.reset(),this.loader.jump(0)},T.prototype.reset=function(){Xa.prototype.reset.call(this),this.flush(),this.audioLoaded=!1,this.videoLoaded=!1,this.packetQueue.clear(),this.patPrograms=[],this.pmtStreams=[],this.metadata=null,this.audioMetadata=void 0,this.videoMetadata=void 0,this.metadataChanged=!1};var Ma=T,Ua=(za=function(e,t){return(za=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},function(){return(Ua=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)}),Fa={M3U:/^#EXTM3U/,INF:/^#EXTINF:?([0-9\.]*)?,?(.*)?(?:\n|\r\n)(.*)$/,X_TARGETDURATION:/^#EXT-X-TARGETDURATION:?([0-9.]*)?/,X_VERSION:/^#EXT-X-VERSION:?([0-9.]*)?/,X_MEDIA_SEQUENCE:/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/,X_DISCONTINUITY_SEQUENCE:/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/,X_PLAYLIST_TYPE:/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/,X_BYTERANGE:/^#EXT-X-BYTERANGE:?(.*)?$/,X_ALLOW_CACHE:/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/,X_MAP:/^#EXT-X-MAP:?(.*)$/,X_STREAM_INF:/^#EXT-X-STREAM-INF:?(.*)$/,X_MEDIA:/^#EXT-X-MEDIA:?(.*)$/,X_ENDLIST:/^#EXT-X-ENDLIST/,X_DISCONTINUITY:/^#EXT-X-DISCONTINUITY/,X_PROGRAM_DATE_TIME:/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/,X_KEY:/^#EXT-X-KEY:?(.*)$/,X_START:/^#EXT-X-START:?(.*)$/,X_CUE_OUT_CONT:/^#EXT-X-CUE-OUT-CONT:?(.*)?$/,X_CUE_OUT:/^#EXT-X-CUE-OUT:?(.*)?$/,X_CUE_IN:/^#EXT-X-CUE-IN:?(.*)?$/,X_SKIP:/^#EXT-X-SKIP:(.*)$/,X_PART:/^#EXT-X-PART:(.*)$/,X_SERVER_CONTROL:/^#EXT-X-SERVER-CONTROL:(.*)$/,X_PART_INF:/^#EXT-X-PART-INF:(.*)$/,X_PRELOAD_HINT:/^#EXT-X-PRELOAD-HINT:(.*)$/,X_RENDITION_REPORT:/^#EXT-X-RENDITION-REPORT:(.*)$/},Ha=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}za(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(S,Ga=t),S.probe=function(e){var t;return 7<=e.byteLength&&(t=[],e.forEach(function(e){return t.push(String.fromCharCode(e))}),Fa.M3U.test(t.join("")))},Object.defineProperty(S.prototype,"status",{get:function(){return this.loader.eof?this.mpegtsParser.status===d.IDLE?this.shouldContinuousLoad?d.LOADING:d.SUSPENGING:this.mpegtsParser.status:this.loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this.isLive?1/0:Math.round(1e3*this.segments.reduce(function(e,t){return e+t.duration},0))},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentSegment",{get:function(){return this.segments[this.currSegmentIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"prevSegmentsTotalDuration",{get:function(){return this.segments.slice(0,this.currSegmentIndex).reduce(function(e,t){return e+t.duration},0)},enumerable:!1,configurable:!0}),S.prototype.insertSegment=function(t){var e=!this.segments.some(function(e){return e.uri===t.uri});return e&&this.segments.push(t),e},S.prototype.onProgress=function(e){this.bufferSegments.push(e)},S.prototype.onLoadEnd=function(){var r,e,i,n,o,a=this;this.loader.eof&&(e=A.concatUint8s(this.bufferSegments.map(function(e){return e.data})),this.bufferSegments=[],e.byteLength&&(e=(new TextDecoder).decode(e).split(/\n#/).map(function(e){return"#"+e.trim()}),i=0,o=n=!1,e.forEach(function(e){var t=e.match(Fa.INF);t?(t={sequence:i,duration:parseFloat(t[1]),uri:new URL(t[3],a.url).href,discontinuity:o},a.insertSegment(t),a.emit("loadedsegment",t)):(r=e.match(Fa.X_MEDIA_SEQUENCE))?i=Number(r[1]):Fa.X_ENDLIST.test(e)?n=!0:Fa.X_DISCONTINUITY.test(e)&&(o=!0)}),this.discontinuity=o,this.isLive=!n,this.segments.length||this.emit("error",{code:de.PARSER,message:"M3U8\u6587\u4ef6\u65e0TS\u6570\u636e"}),this.prevManifestLoadedTime=Date.now(),this.loadSegment()),U.info("hls manifest loaded, all segments length:",this.segments.length))},S.prototype.loadSegment=function(){var e,t,r=this;return this.shouldContinuousLoad?(e=this.segments[this.currSegmentIndex],this.isLive&&!e?(t=1e3*this.m3u8UpdateDuration-(Date.now()-this.prevManifestLoadedTime))<=0?this.loader.load(this.loader.url):new hs(function(e){clearTimeout(r.fetchTimer),r.fetchTimer=setTimeout(function(){e(r.loader.load(r.loader.url))},t)}):e?(this.cachePackets=[],this.m3u8UpdateDuration=e.duration||2,this.currSegmentStartPTS=void 0,this.mpegtsParser.continuousLoad(e.uri)):(this.ended=!0,hs.resolve(!1))):hs.resolve(!1)},S.prototype.suspend=function(){clearTimeout(this.fetchTimer),this.shouldContinuousLoad=!1},S.prototype.resume=function(){var e;return this.cachePackets.length?(e=this.cachePackets,this.cachePackets=[],this.emit("loadeddata",{packets:e}),hs.resolve(!1)):this.shouldContinuousLoad||this.ended?hs.resolve(!1):(this.shouldContinuousLoad=!0,this.loader.eof?this.mpegtsParser.loader.status===d.LOADING||this.mpegtsParser.loader.status===d.ERROR?hs.resolve(!0):this.loadSegment():Ga.prototype.resume.call(this))},S.prototype.seek=function(t){this.ended=!1;var r=0,e=this.segments.findIndex(function(e){return r+=e.duration,t<r});this.currSegmentIndex=-1<e?e:this.segments.length-1,this.cachePackets=[],this.bufferSegments=[],this.mpegtsParser.suspend(),this.mpegtsParser.flush(),this.shouldContinuousLoad=!0,this.loadSegment()},S.prototype.reset=function(){clearTimeout(this.fetchTimer),Ga.prototype.reset.call(this),this.discontinuity=!1,this.cachePackets=[],this.bufferSegments=[],this.shouldContinuousLoad=!0,this.mpegtsParser.reset(),this.segments=[],this.currSegmentIndex=0,this.isLive=!1,this.ended=!1},S.prototype.destroy=function(){Ga.prototype.destroy.call(this),this.mpegtsParser.loader.removeAllListeners(),this.mpegtsParser.destroy()},S),h=i(801),Ba=i.n(h);function Va(e,t,r){if(r||2===arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||((i=i||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function ja(e){return e.split("").map(function(e){return e.charCodeAt(0)})}qa=function(e,t){return(qa=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var Wa,qa,Ga,za,Xa,Ka=function(){return(Ka=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},Ya=["loadedmetadata","updatedmetadata","updatedtrackmetadata","loadeddata","error","end"],Qa=[la,Ha,Jt,Ma],$a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}qa(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(y,Wa=tt),y.prototype.createLoader=function(){var e=new ft(this.options);return e.proxy(this,["progress","error"]),e.proxyOnce(this,["loadstart","loadend"]),e.once("progress",this.handleFirstLoadData),e},y.prototype.createParser=function(e){e=new e(Ka(Ka({},this.options),{loader:this.loader}));return e.proxy(this,Ya),e},Object.defineProperty(y.prototype,"skipFrame",{get:function(){return this.activeParser.skipFrame},set:function(e){U.info("\u8bbe\u7f6eskipFrame:",e),Ba()(e)||(this.options.skipFrame=e,this.activeParser.skipFrame=e)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"status",{get:function(){return this.activeParser.status},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"url",{get:function(){return this.loader.url},enumerable:!1,configurable:!0}),y.prototype.parse=function(e){U.info("\u6267\u884cparse"),this.loader.reset(),this.handleFirstLoadData({offset:0,data:e}),this.activeParser.onLoadEnd()},y.prototype.load=function(e){return U.info("\u6267\u884cload",e),this.loader.destroy(),this.loader=this.createLoader(),this.loader.load(e)},y.prototype.seek=function(e){return U.info("\u6267\u884cseek",e),this.activeParser.seek(e)},y.prototype.suspend=function(){return this.activeParser.suspend()},y.prototype.resume=function(){return this.activeParser.resume()},y.prototype.destroy=function(){U.info("\u6267\u884cdestory"),this.loader.destroy(),this.activeParser.destroy(),this.removeAllListeners()},y);function y(e){void 0===e&&(e={});var i=Wa.call(this)||this;return i.loader=new ft,i.parserClasses=Qa,i.logger=U,i.handleFirstLoadData=function(t){var e,r;t&&((r=i.parserClasses.find(function(e){return e.probe(t.data)}))?(e=i.activeParser.formatType,i.activeParser.destroy(),i.activeParser=i.createParser(r),U.info("\u5207\u6362parser, ".concat(g[e]," -> ").concat(g[i.activeParser.formatType])),i.emit("parserchange",void 0),i.activeParser.onProgress(t)):(r="\u672a\u627e\u5230\u5bf9\u5e94\u7684Parser, Byte\u6570\u636e: "+t.data.slice(0,20).join(","),U.error(r),i.emit("error",{code:de.PARSER,message:r})))},i.options=e,i.loader=i.createLoader(),i.activeParser=i.createParser(i.parserClasses[0]),i.logger.info("demuxer options",e),i}function S(e){var o=Ga.call(this,e)||this;return o.mpegtsParser=new Ma({progressive:!0,timeout:o.options.timeout}),o.currSegmentIndex=0,o.isLive=!1,o.shouldContinuousLoad=!0,o.ended=!1,o.prevManifestLoadedTime=0,o.fetchTimer=-1,o.discontinuity=!1,o.m3u8UpdateDuration=2,o.bufferSegments=[],o.cachePackets=[],o.formatType=g.HLS,o.segments=[],o.handleTSEnd=function(){o.currSegmentIndex>=o.segments.length-1&&o.emit("end",void 0)},o.handleTSLoadedMetadata=function(e){void 0===o.basePTS&&(o.basePTS=e.basePTS),void 0===o.baseDTS&&(o.baseDTS=e.baseDTS);e=Ua(Ua({},e),{formatType:g.HLS,live:o.isLive,progressive:!0,basePTS:o.basePTS,baseDTS:o.baseDTS,duration:o.duration,url:o.loader.url,discontinuity:o.discontinuity});o.metadata?ae(o.metadata,e)&&o.emit("updatedmetadata",o.metadata):(o.metadata=e,o.emit("loadedmetadata",o.metadata))},o.handleTSLoadedData=function(e){var t,r,i,n,e=e.packets;e.length&&(null!=(t=o.currentSegment)&&t.discontinuity&&(t=e.slice().sort(function(e,t){return e.pts-t.pts}),void 0===o.currSegmentStartPTS&&(o.currSegmentStartPTS=t[0].pts),r=o.currSegmentStartPTS,i=Math.round(1e3*o.prevSegmentsTotalDuration)+(o.basePTS||0),t.forEach(function(e){var t=e.dts-e.pts;e.pts=i+e.pts-r,e.dts=e.pts+t})),o.cachePackets.length?(n=o.cachePackets.concat(e),o.cachePackets=[]):n=e,o.shouldContinuousLoad?o.emit("loadeddata",{packets:n}):o.cachePackets=n)},o.handleTSLoadEnd=function(){o.currSegmentIndex++,o.loadSegment()},o.mpegtsParser.on("loadedmetadata",o.handleTSLoadedMetadata),o.mpegtsParser.on("updatedmetadata",o.handleTSLoadedMetadata),o.mpegtsParser.on("loadeddata",o.handleTSLoadedData),o.mpegtsParser.on("end",o.handleTSEnd),o.mpegtsParser.loader.on("loadend",o.handleTSLoadEnd),o.mpegtsParser.loader.proxy(o,["error"]),o.mpegtsParser.proxy(o,["updatedtrackmetadata"]),o}function T(){var e=null!==Xa&&Xa.apply(this,arguments)||this;return e.patPrograms=[],e.pmtStreams=[],e.prevPesSegments=[],e.packetQueue=new Ia,e.audioLoaded=!1,e.videoLoaded=!1,e.metadataChanged=!1,e.metadata=null,e.formatType=g.MPEGTS,e}b.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=new Uint8Array(8),n=[i].concat(t.map(function(e){return new Uint8Array(e)})),o=n.reduce(function(e,t){return e+t.byteLength},0),a=new A(i.buffer);return a.write(4,o),ja(e).forEach(function(e){return a.write(1,e)}),A.concatUint8s(n)},b.prototype.avc1=function(e){var t=e.pixelRatio,r=e.vps,i=new ArrayBuffer(78),n=new A(i),t=(n.write(4,0),n.write(2,0),n.write(2,1),n.write(4,0),n.write(4,0),n.write(4,0),n.write(4,0),n.write(2,e.width),n.write(2,e.height),n.write(4,4718592),n.write(4,4718592),n.write(4,0),n.write(2,1),n.write(1,12),ja("@ali/splayer").forEach(function(e){return n.write(1,e)}),n.skip(19),n.write(2,24),n.write(2,65535),2===t.length?this.pasp(t[0],t[1]):[]);return r.length?this.create("hvc1",i,this.hvcC(e),t):this.create("avc1",i,this.avcC(e),t)},b.prototype.avcC=function(e){var t=e.sps,e=e.pps,r=[],i=[],t=(r.push(t.length),t.forEach(function(e){r.push(e.byteLength>>>8&255),r.push(255&e.byteLength),e.forEach(function(e){return r.push(e)})}),i.push(e.length),e.forEach(function(e){i.push(e.byteLength>>>8&255),i.push(255&e.byteLength),e.forEach(function(e){return i.push(e)})}),new ArrayBuffer(5)),e=new A(t);return e.write(1,1),e.write(1,r[4]||0),e.write(1,r[5]||0),e.write(1,r[6]||0),e.write(1,255),this.create("avcC",t,r,i)},b.prototype.btrt=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,1875072),t.write(4,3e6),t.write(4,3e6),this.create("btrt",e)},b.prototype.pasp=function(e,t){var r=new ArrayBuffer(8),i=new A(r);return i.write(4,e),i.write(4,t),this.create("pasp",r)},b.prototype.dinf=function(){return this.create("dinf",this.dref())},b.prototype.dref=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,1),this.create("dref",e,this.url())},b.prototype.esds=function(e){var t=e.audioObjectType,r=e.sampleRate,e=e.channelCount,i=new ArrayBuffer(33),n=new A(i),o=5<=t,a=(n.write(4,0),n.write(1,3),n.write(1,o?27:25),n.write(2,1),n.write(1,0),n.write(1,4),n.write(1,o?19:17),n.write(1,64),n.write(1,21),n.write(3,0),n.write(4,0),n.write(4,0),n.write(1,5),n.write(1,o?4:2),V.findIndex(function(e){return r===e}));return n.write(1,t<<3|(14&a)>>1),o?(n.write(1,(1&(t=a))<<7|e<<3|(14&t)>>1),n.write(1,(1&t)<<7|8),n.write(1,0)):n.write(1,(1&a)<<7|e<<3),n.back(4),n.skip(4),n.write(1,6),n.write(1,1),n.write(1,2),this.create("esds",i)},b.prototype.ftyp=function(){var e=new ArrayBuffer(16),t=new A(e);return ja("isom").forEach(function(e){return t.write(1,e)}),t.write(4,1),ja("isom").forEach(function(e){return t.write(1,e)}),ja("avc1").forEach(function(e){return t.write(1,e)}),this.create("ftyp",e)},b.prototype.hdlr=function(e){var t=new ArrayBuffer(37),r=new A(t);return r.skip(8),e===M.VIDEO?ja("vide").forEach(function(e){return r.write(1,e)}):e===M.AUDIO&&ja("soun").forEach(function(e){return r.write(1,e)}),r.skip(12),e===M.VIDEO?ja("VideoHandler").forEach(function(e){return r.write(1,e)}):e===M.AUDIO&&ja("SoundHandler").forEach(function(e){return r.write(1,e)}),r.write(1,0),this.create("hdlr",t)},b.prototype.hvcC=function(e){var t=e.vps,r=e.sps,i=[],t=[{type:R.VPS,data:t},{type:R.SPS,data:r},{type:R.PPS,data:e.pps}],e=(t.forEach(function(e){var t=e.type,e=e.data;i.push(128|t),i.push(e.length>>>8&255),i.push(255&e.length),e.forEach(function(e){i.push(e.byteLength>>>8&255),i.push(255&e.byteLength),e.forEach(function(e){return i.push(e)})})}),new ArrayBuffer(23)),n=new A(e),o=r.length?r[0]:[];n.write(1,1);for(var a=1;a<12;a++)n.write(1,o[a]||0);return n.write(1,0),n.write(2,0),n.write(1,0),n.write(1,1),n.write(1,0),n.write(1,0),n.write(2,0),n.write(1,15),n.write(1,t.length),this.create("hvcC",e,i)},b.prototype.mdat=function(e){return this.create("mdat",e)},b.prototype.mdhd=function(e){var t=new ArrayBuffer(24),r=new A(t);return r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,e.timescale),r.write(4,0),r.write(2,21956),r.write(2,0),this.create("mdhd",t)},b.prototype.mdia=function(e){return this.create("mdia",this.mdhd(e),this.hdlr(e.type),this.minf(e))},b.prototype.mfhd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e),this.create("mfhd",t)},b.prototype.minf=function(e){var t=e.type===M.VIDEO?this.vmhd():this.smhd();return this.create("minf",t,this.dinf(),this.stbl(e))},b.prototype.moof=function(e,t,i){var n=this,t=this.mfhd(t),o=8+t.byteLength+60*e.tracks.length+16*i.length+8,e=e.tracks.map(function(t){var e=i.filter(function(e){return e.trackType===t.type}),r=n.traf(t,e,o);return o+=e.reduce(function(e,t){return e+t.size},0),r});return this.create.apply(this,Va(["moof",t],e,!1))},b.prototype.moov=function(e){var t=this,r=e.tracks.map(function(e){return t.trak(e)});return this.create.apply(this,Va(Va(["moov",this.mvhd(e)],r,!1),[this.mvex(e)],!1))},b.prototype.mp4a=function(e){var t=new ArrayBuffer(28),r=new A(t);return r.write(4,0),r.write(2,0),r.write(2,1),r.write(4,0),r.write(4,0),r.write(2,e.channelCount),r.write(2,e.sampleSize),r.write(4,0),r.write(4,e.sampleRate<<16),this.create("mp4a",t,this.esds(e))},b.prototype.mvex=function(e){var t=this;return this.create.apply(this,Va(["mvex"],e.tracks.map(function(e){return t.trex(e)}),!1))},b.prototype.mvhd=function(e){var t=new ArrayBuffer(100),r=new A(t);return r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,e.timescale),r.write(4,e.duration),r.write(2,1),r.skip(2),r.write(1,1),r.skip(1),r.skip(10),[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0].forEach(function(e){return r.write(1,e)}),r.skip(24),r.write(4,4294967295),this.create("mvhd",t)},b.prototype.sdtp=function(e){var t=e.length,r=new ArrayBuffer(4+t),i=new A(r);i.write(4,0);for(var n=0;n<t;n++){var o=e[n];i.write(1,o.flag)}return this.create("sdtp",r)},b.prototype.smhd=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("smhd",e)},b.prototype.stbl=function(e){return this.create("stbl",this.stsd(e),this.stts(),this.stsc(),this.stsz(),this.stco())},b.prototype.stco=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stco",e)},b.prototype.stsc=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stsc",e)},b.prototype.stsd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,1),e.type===M.VIDEO?this.create("stsd",t,this.avc1(e)):e.type===M.AUDIO?this.create("stsd",t,this.mp4a(e)):this.create("stsd",t)},b.prototype.stsz=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,0),t.write(4,0),t.write(4,0),this.create("stsz",e)},b.prototype.stts=function(){var e=new ArrayBuffer(8),t=new A(e);return t.write(4,0),t.write(4,0),this.create("stts",e)},b.prototype.tkhd=function(e){var t=new ArrayBuffer(84),r=new A(t);return r.write(4,7),r.write(4,0),r.write(4,0),r.write(4,e.id),r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,0),r.write(4,0),r.write(1,0),r.write(1,0),r.write(2,0),[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0].forEach(function(e){return r.write(1,e)}),r.write(2,e.width||0),r.write(2,0),r.write(2,e.height||0),r.write(2,0),this.create("tkhd",t)},b.prototype.tfdt=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e),this.create("tfdt",t)},b.prototype.tfhd=function(e){var t=new ArrayBuffer(8),r=new A(t);return r.write(4,0),r.write(4,e.id),this.create("tfhd",t)},b.prototype.traf=function(e,t,r){void 0===r&&(r=0);var i=t.length?t[0].dts:0;return this.create("traf",this.tfhd(e),this.tfdt(i),this.trun(t,r))},b.prototype.trak=function(e){return this.create("trak",this.tkhd(e),this.mdia(e))},b.prototype.trex=function(e){var t=new ArrayBuffer(24),r=new A(t);return r.write(4,0),r.write(4,e.id),r.write(4,1),r.write(4,0),r.write(4,0),r.write(4,65537),this.create("trex",t)},b.prototype.trun=function(e,t){var r=e.length,i=new ArrayBuffer(12+16*r),n=new A(i);n.write(4,3841),n.write(4,e.length),n.write(4,t);for(var o=0;o<r;o++){var a=e[o];n.write(4,a.duration),n.write(4,a.size),n.write(4,a.flag),n.write(4,a.cts)}return this.create("trun",i)},b.prototype.vmhd=function(){var e=new ArrayBuffer(12),t=new A(e);return t.write(4,1),t.write(2,0),t.write(2,0),t.write(2,0),t.write(2,0),this.create("vmhd",e)},b.prototype.url=function(){var e=new ArrayBuffer(4);return new A(e).write(4,1),this.create("url ",e)};var Ja=b;function b(){}es.createSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return new Uint8Array},es.FRAME_DURATION=1024;var Za=es;function es(){}ds.prototype.updateConfig=function(e){Object.assign(this.config,e)},ds.prototype.createInitSegment=function(){var e=A.concatUint8(this.generator.ftyp(),this.generator.moov(this.config));return this.offset=e.byteLength,e},ds.prototype.createSegment=function(i){var n,e,o=this;return i.length?(n=[],this.config.tracks.forEach(function(t){var e,r=i.filter(function(e){return e.trackType===t.type});r.length&&(e=null,t.type===M.VIDEO?e=o.recaculateVideoSamples(r,t):t.type===M.AUDIO&&(e=o.recaculateAudioSamples(r,t)),e)&&(n.push(o.generator.moof(o.config,++o.sequenceNumber,e)),n.push(o.generator.mdat(A.concatUint8s(e.map(function(e){return e.data})))))}),e=A.concatUint8s(n),this.offset+=e.byteLength,e):new Uint8Array},ds.prototype.createSlientFrames=function(e,t,r,i){var n=[];if(1.5*i<r){this.logger.warn("remux audio found pts hole at pts:",e,"timestamp:",(e-this.config.basePTS)/t.timescale,"gap duration:",r,"sample duration:",i);for(var o=Za.createSilentFrame(t.codec,t.channelCount),a=Math.ceil(r/i),s=0;s<a;s++)n.push({flag:E.DEPENDS_NO,trackType:M.AUDIO,dts:e+i*s,cts:0,duration:i,size:o.byteLength,data:o,isSync:!0});n.length&&(n[n.length-1].duration=r-(a-1)*i)}return n},ds.prototype.recaculateAudioSamples=function(e,t){var r=[];this.prevAudioPacket&&(e.unshift(this.prevAudioPacket),this.prevAudioPacket=void 0);var i,n,o=Math.round(Za.FRAME_DURATION/t.sampleRate*t.timescale);!this.audioInited&&e.length&&(this.audioInited=!0,n=e[0].pts-this.config.basePTS,this.createSlientFrames(this.config.basePTS,t,n,o).forEach(function(e){r.push(e)}));for(var a,s,l=0,c=0,u=e.length;l<u;l++){if(i=e[l],a=e[l+1]){if((c=a.dts-i.dts)<0){if(!((a=e.findIndex(function(e){return i.dts<e.dts}))>l+1))break;c=e[a].dts-i.dts,l=a-1,this.logger.warn("remux audio found pts overlap at pts:",i.pts,"timestamp:",(i.pts-(this.config.basePTS||0))/t.timescale,"gap duration:",c,"sample duration:",o)}}else{if(!i.isLast||!r.length){this.prevAudioPacket=i;break}c=r[r.length-1].duration}0<c&&((a=this.createSlientFrames(i.pts+o,t,c-o,o)).length&&(c=o),s=A.concatUint8s(i.data),r.push({flag:E.DEPENDS_NO,trackType:M.AUDIO,size:s.byteLength,dts:i.dts,cts:i.pts-i.dts,duration:c,data:s,isSync:!0}),a.forEach(function(e){r.push(e)}))}return r.length&&this.recaculateSample(r[0],this.config.baseDTS),r},ds.prototype.recaculateVideoSamples=function(o,a){var t;this.prevVideoPacket&&(o.unshift(this.prevVideoPacket),this.prevVideoPacket=void 0),this.videoInited||(this.videoInited=!0,t=Math.min.apply(Math,o.map(function(e){return e.pts})),o.find(function(e){return e.pts===t}).pts=this.config.basePTS);for(var s,l,c,u,p=[],d=this,e=0,r=0,i=0,n=o.length;e<n;e++){var h=((e,t,r,i)=>{if(s=o[e],l=o[e+1]){if((r=l.dts-s.dts)<0){for(l.dts=s.dts,t=e+1;t<i-1;t++)o[t].dts>o[t+1].dts&&(o[t+1].dts=o[t].dts);d.logger.warn("remux video found pts overlap at pts:",s.pts,"timestamp:",(s.pts-d.config.basePTS)/a.timescale,"gap packet number:",t-e,"gap duration:",r),r=0}}else{if(!s.isLast||!p.length)return d.prevVideoPacket=s,c=t,u=r,"break";r=p[p.length-1].duration}var n;0<=r&&(n=[],s.data.forEach(function(e){n.push(Z.createAVCCStartCode(e.length),e)}),e=A.concatUint8s(n),p.push({flag:s.isSync?E.DEPENDS_NO:E.IS_NON_SYNC|E.DEPENDS_YES,trackType:M.VIDEO,size:e.byteLength,dts:s.dts,cts:s.pts-s.dts,duration:r,data:e,isSync:s.isSync})),c=t,u=r})(e,r,i,n),r=c,i=u;if("break"===h)break}return p.length&&this.recaculateSample(p[0],this.config.baseDTS),p},ds.prototype.recaculateSample=function(e,t){t=e.dts-t;return e.dts=t,e},ds.prototype.flush=function(){this.prevAudioPacket=void 0,this.prevVideoPacket=void 0};var ts=ds,rs=(ss=function(e,t){return(ss=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)},ps);if("function"!=typeof(c=as=tt)&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function is(){this.constructor=rs}ss(rs,c),rs.prototype=null===c?Object.create(c):(is.prototype=c.prototype,new is),ps.prototype.end=function(){this.emit("end",void 0)},ps.prototype.pipe=function(t,r){return r?this.on("data",function(e){return t.write(r(e))}):this.on("data",function(e){return t.write(e)}),this.on("end",function(){return t.end()}),t},os=function(e,t){return(os=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var ns,os,as,ss,ls=function(){return(ls=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},cs=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}os(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(us,ns=e=ps),us.prototype.remux=function(e,t){var r=this.remuxerMap.get(e);r&&t.length&&this.emit("data",{type:e,buffer:r.createSegment(t).buffer,eos:!!t[t.length-1].isLast})},us.prototype.eos=function(){var r=this;this.pendingPacketsMap.forEach(function(e,t){r.pendingPacketsMap.delete(t),r.remux(t,e)})},us.prototype.writeMetadata=function(e){var t=this;(this.metadata=e).tracks.forEach(function(e){return t.writeTrackMetadata(e)})},us.prototype.writeTrackMetadata=function(e){this.eos();var t=this.remuxerMap.get(e.type);t&&(t.updateConfig(ls(ls({},this.metadata),{tracks:[e]})),this.emit("data",{type:e.type,buffer:t.createInitSegment().buffer,eos:!1}))},us.prototype.write=function(e){var r=this,e=e.packets,i=this.pendingPacketsMap;e.forEach(function(e){var t=i.get(e.trackType);t?(t.push(e),10<=t.length&&(i.set(e.trackType,[]),r.remux(e.trackType,t))):i.set(e.trackType,[e])})},us.prototype.flush=function(){this.remuxerMap.forEach(function(e){return e.flush()}),this.pendingPacketsMap.clear()},us.prototype.end=function(){this.eos(),ns.prototype.end.call(this)},us);function us(){var e=ns.call(this)||this;return e.remuxerMap=new Map,e.pendingPacketsMap=new Map,e.metadata={},e.remuxerMap.set(M.VIDEO,new ts),e.remuxerMap.set(M.AUDIO,new ts),e}function ps(){return null!==as&&as.apply(this,arguments)||this}function ds(){this.logger=new Se("remux"),this.generator=new Ja,this.config={formatType:g.MP4,live:!1,progressive:!1,url:"",basePTS:0,baseDTS:0,timescale:0,duration:0,tracks:[]},this.sequenceNumber=0,this.offset=0,this.videoInited=!1,this.audioInited=!1,this.lastPacketMap=new Map}return k},"object"==typeof r&&"object"==typeof t?t.exports=i():"object"==typeof r?r.VideoxMuxer=i():e.VideoxMuxer=i()},{"es6-promise":1}],43:[function(e,t,r){function a(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return(t>>>0).toString()}var s=e("./vttparse");t.exports={parse:function(e,t,r){var i,e=e.trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),n=[],o=new s;o.oncue=function(e){e.id=a(e.startTime)+a(e.endTime)+a(e.text),e.text=decodeURIComponent(escape(e.text)),e.isBig=!1;var t=e.text.split("#xywh=");2==t.length&&(t=t[1].split(","),e.x=t[0],e.y=t[1],e.w=t[2],e.h=t[3],e.isBig=!0),0<e.endTime&&n.push(e)},o.onparsingerror=function(e){i=e},o.onflush=function(){i&&r?(r(i),console.log(i)):t(n)},e.forEach(function(e){o.parse(e+"\n")}),o.flush()}}},{"./vttparse":45}],44:[function(e,t,r){function S(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function T(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)e[r]=i[r]}return e}function i(e,t,r){var i=this,n=(()=>{if("undefined"!=typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)})(),o={},a=(n?i=document.createElement("custom"):o.enumerable=!0,i.hasBeenReset=!1,""),s=!1,l=e,c=t,u=r,p=null,d="",h=!0,f="auto",_="start",y=50,g="middle",v=50,m="middle";if(Object.defineProperty(i,"id",T({},o,{get:function(){return a},set:function(e){a=""+e}})),Object.defineProperty(i,"pauseOnExit",T({},o,{get:function(){return s},set:function(e){s=!!e}})),Object.defineProperty(i,"startTime",T({},o,{get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",T({},o,{get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",T({},o,{get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",T({},o,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",T({},o,{get:function(){return d},set:function(e){e="string"==typeof(e=e)&&!!b[e.toLowerCase()]&&e.toLowerCase();if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",T({},o,{get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",T({},o,{get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",T({},o,{get:function(){return _},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",T({},o,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",T({},o,{get:function(){return g},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",T({},o,{get:function(){return v},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",T({},o,{get:function(){return m},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),i.displayState=void 0,n)return i}var b,n;t.exports="undefined"!=typeof window&&window.VTTCue?window.VTTCue:(b={"":!0,lr:!0,rl:!0},n={start:!0,middle:!0,end:!0,left:!0,right:!0},i.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},i)},{}],45:[function(e,t,r){function i(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}}var s=e("./vttcue");function n(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new i,this.regionList=[]}function l(){this.values=Object.create(null)}function c(e,t,r,i){var n,o,a=i?e.split(i):[e];for(n in a)"string"==typeof a[n]&&2===(o=a[n].split(r)).length&&t(o[0],o[1])}l.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var u=new s(0,0,0),p="middle"===u.align?"middle":"center";function d(i,e,o){var t,a,n=i;function r(){var e,t=(t=(t=i).match(/^(\d+):(\d{2})(:\d{2})?(\.\d{3})?/))?(e=(e=t[4])&&e.replace(".",""),t[3]?r(t[1],t[2],t[3].replace(":",""),e):59<t[1]?r(t[1],t[2],0,e):r(0,t[1],t[2],e)):null;function r(e,t,r,i){return 3600*(0|e)+60*(0|t)+(0|r)+(0|i)/1e3}if(null===t)throw new Error("Malformed timestamp: "+n);return i=i.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){i=i.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),"--\x3e"!==i.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);i=i.substr(3),s(),e.endTime=r(),s(),t=i,e=e,a=new l,c(t,function(e,t){switch(e){case"region":for(var r=o.length-1;0<=r;r--)if(o[r].id===t){a.set(e,o[r].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),n=i[0];a.integer(e,n),a.percent(e,n)&&a.set("snapToLines",!1),a.alt(e,n,["auto"]),2===i.length&&a.alt("lineAlign",i[1],["start",p,"end"]);break;case"position":i=t.split(","),a.percent(e,i[0]),2===i.length&&a.alt("positionAlign",i[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start",p,"end","left","right"])}},/:/,/\s/),e.region=a.get("region",null),e.vertical=a.get("vertical",""),"auto"===(t=a.get("line","auto"))&&-1===u.line&&(t=-1),e.line=t,e.lineAlign=a.get("lineAlign","start"),e.snapToLines=a.get("snapToLines",!0),e.size=a.get("size",100),e.align=a.get("align",p),"auto"===(t=a.get("position","auto"))&&50===u.position&&(t="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=t}n.prototype={parse:function(e){var i=this;function t(){for(var e=0,t=(t=i.buffer).replace(/<br(?: \/)?>/gi,"\n");e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var r=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,i.buffer=t.substr(e),r}e&&(i.buffer+=i.decoder.decode(e,{stream:!0}));try{if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var r,n=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!n||!n[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var o=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(o?o=!1:r=t(),i.state){case"HEADER":/:/.test(r)?c(r,function(e,t){"Region"===e&&console.log("parse region",t)},/:/):r||(i.state="ID");continue;case"NOTE":r||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){i.state="NOTE";break}if(!r)continue;if(i.cue=new s(0,0,""),i.state="CUE",-1===r.indexOf("--\x3e")){i.cue.id=r;continue}case"CUE":try{d(r,i.cue,i.regionList)}catch(e){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(o=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=r;continue;case"BADCUE":r||(i.state="ID");continue}}}catch(e){"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),!this.cue&&"HEADER"!==this.state||(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Error("Malformed WebVTT signature.")}catch(e){throw e}return this.onflush&&this.onflush(),this}},t.exports=n},{"./vttcue":44}],46:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=typeof(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(i.key),i)}}function n(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=e("./vtt-parser"),s=e("./vtt-renderer"),l=e("./vtt-loader"),c=e("../../player/base/event/eventtype"),u=e("../../lib/ua"),p=e("../../lib/event"),d=e("../../ui/component/util"),h=s.CTR_BAR_HEIGHT,e=(()=>{function e(e){this.parser=null,this.activeRenderer=null,this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.tickTimer=null,this.prevPosition=null,this._enabled=!1,this._isShow=!1,this.sleeper=new f,this.player=(e=e||{}).player,this.loader=new l,this.parser=new o,this.createRendererInstance(),this.bindEvents()}var t=e.prototype;return t.bindEvents=function(){function e(e){e.paramData.splayer&&r.switchRenderer(s.VttBasicRenderer.RENDER_TYPE_CUSTOM)}var t,r=this,i=this,n=this.player,o=(n.on(c.Private.TextTrackFounded,function(e){if("user"===e.paramData.from)r.hasUserTracks=!0;else if(r.hasUserTracks)return;e=e.paramData.textTracks;e&&e.length&&(r.enabled=!0,r.trackConfigs=e.map(function(e){return a({},e,{label:e.label||e.srclang,language:e.srclang})}),r.trackConfigs.forEach(function(e){r.activeRenderer.addTrack(e),"always"===n.getOptions().controlBarVisibility&&r.activeRenderer.forceUpdateCuesStyle({transform:"translateY("+("-"+h+"px")+")"},r.parser.cues)}))}),n.on(c.Private.UserTrackReset,function(){r.hasUserTracks=!1}),n.on(c.Player.H265PlayInfo,e),n.on(c.Player.H266PlayInfo,e),u.IS_IOS?(t=!1,n.on(c.Player.RequestFullScreen,function(){t=!0}),p.on(n.tag,"webkitendfullscreen",function(){t=!1}),p.on(n.tag.textTracks,"change",function(){var e;r.sleeper.isSleep||(r.sleeper.sleep(1e3),r.isCustomRenderer)||t&&(e=n.tag.textTracks,(e=Array.from(e).find(function(e){return"showing"===e.mode}))?r.activeTrackConfig&&r.activeTrackConfig.language===e.language||(r.switchTrack(e.language),n.trigger(c.Private.SelectorValueChange,{type:"cc",text:e.label})):n.trigger(c.Private.CCStateChanged,{value:"off",lang:""}))})):(n.on(c.Player.RequestFullScreen,this.adjustLayout.bind(this)),n.on(c.Player.CancelFullScreen,this.adjustLayout.bind(this)),o=d.debounce(function(){i.isCustomRenderer&&i.activeRenderer.resetCuesStyle(r.parser.cues)},100),p.on(window,"resize",o)),d.throttle(function(){i.isShow&&(i.activeRenderer.forceUpdateCuesStyle({transform:"translateY("+("-"+h+"px")+")"},i.parser.cues),i.isCustomRenderer)&&i.player.paused()&&(i.activeRenderer.hide(),i.activeRenderer.restore())},100)),o=(n.on(c.Private.ShowBar,o),d.throttle(function(){i.isShow&&(i.activeRenderer.forceUpdateCuesStyle({transform:"none"},i.parser.cues),i.isCustomRenderer)&&i.player.paused()&&(i.activeRenderer.hide(),i.activeRenderer.restore())},100));n.on(c.Private.HideBar,o),n.on(c.Private.VttHide,function(){r.hide()}),n.on(c.Private.VttSwitchTrack,function(e){r.switchTrack(e.paramData)}),n.on(c.Private.VttClearTracks,function(){r.reset()})},t.createRendererInstance=function(e){this.activeRenderer&&this.activeRenderer.dispose();var t=this.player.getOptions(),r={player:this.player};this.adaptPlatform(),e?e===s.VttBasicRenderer.RENDER_TYPE_NATIVE?this.activeRenderer=new s.NativeRenderer(r):(r.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(r)):t.useNativeTextRenderer?this.activeRenderer=new s.NativeRenderer(r):(r.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(r))},t.switchTrack=function(t){var e,r=this;this.trackConfigs&&this.trackConfigs.length&&(this.activeTrackConfig&&(this.parser.dispose(),this.parser=new o,this.activeRenderer.clearTrack(this.activeTrackConfig.language),this.activeRenderer.hide()),this.activeTrackConfig=t,e=this.trackConfigs.find(function(e){return e.language===t}))&&(e=e._loaded?"":(e||{}).src,this.loadVtt(e,function(){r.parseVtt(),r.activeRenderer.addCues(r.parser.cues,r.activeTrackConfig.language),r.show()}))},t.adaptPlatform=function(){var e=this.player.getOptions();u.IS_IOS&&(e.useNativeTextRenderer=!0)},t.loadVtt=function(e,t){var r=this;e?this.loader.loadFromUrl(e,function(e){r.activeTrackConfig._loaded=!0,r.vttText[r.activeTrackConfig.language]=e,t&&t()}):t&&t()},t.show=function(){this._isShow=!0,this.isCustomRenderer&&this.startTickTimeListener(),this.activeRenderer.show(this.activeTrackConfig.language);var e=this.player.el().getElementsByClassName("prism-controlbar")[0];e&&"block"===(null==(e=e.style)?void 0:e.display)&&this.activeRenderer.forceUpdateCuesStyle({transform:"translateY("+("-"+h+"px")+")"},this.parser.cues)},t.hide=function(){this._isShow=!1,this.clearTicker(),this.activeRenderer.hide()},t.switchRenderer=function(e){var t=this,r=s.VttBasicRenderer.RENDER_TYPE_NATIVE,i=s.VttBasicRenderer.RENDER_TYPE_CUSTOM;(e===r&&this.activeRenderer.type!==r||e===i&&this.activeRenderer.type!==i)&&(this.createRendererInstance(e),this.trackConfigs.forEach(function(e){return t.activeRenderer.addTrack(e)}),this.activeRenderer.addCues(this.parser.cues,this.activeTrackConfig.language),this.show())},t.parseVtt=function(){this.parser.parse(this.vttText[this.activeTrackConfig.language])},t.adjustLayout=function(){var e=this;this.isShow&&this.isCustomRenderer&&(this.activeRenderer.hide(),setTimeout(function(){e.activeRenderer.restore()},300))},t.startTickTimeListener=function(){var t=this;this.clearTicker(),this.tick(function(){var e=t.player.getCurrentTime();isNaN(e)||t.activeRenderer.renderCues(t.findTargetCues(e))})},t.tick=function(e){var t=this;this.tickTimer=requestAnimationFrame(function(){try{e()}catch(e){console.log("e",e)}t.tick(e)})},t.clearTicker=function(){this.tickTimer&&(cancelAnimationFrame(this.tickTimer),this.tickTimer=null)},t.getOverlayId=function(){var e=(this.player.el().getElementsByClassName("prism-text-overlay")||[])[0];if(e)return e.id},t.findTargetCues=function(e){if(this.parser&&e!==this.prevPosition){this.prevPosition=e;for(var t=[],r=0;r<this.parser.cues.length;r++){var i=this.parser.cues[r];if(e>=i.startTime&&e<=i.endTime)t.push(i);else if(e<i.startTime)break}return t}},t.reset=function(){this.clearTicker(),this.parser&&this.parser.reset(),this.activeRenderer&&this.activeRenderer.reset()},t.dispose=function(){this.clearTicker(),this.parser&&(this.parser.dispose(),this.parser=null),this.activeRenderer&&(this.activeRenderer.dispose(),this.activeRenderer=null),this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.prevPosition=null,this._enabled=!1,this._isShow=!1},n(e,[{key:"isShow",get:function(){return this._isShow}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e}},{key:"isCustomRenderer",get:function(){if(this.activeRenderer)return this.activeRenderer.type===s.VttBasicRenderer.RENDER_TYPE_CUSTOM}},{key:"activeTrackConfig",get:function(){var e;return null==(e=this.trackConfigs)?void 0:e.find(function(e){return e._isActive})},set:function(t){this.trackConfigs.forEach(function(e){return e._isActive=e.language===t})}}])})(),f=(()=>{function e(){this.value=!1,this.timer=null}return e.prototype.sleep=function(e){var t=this;this.timer&&clearTimeout(this.timer),this.value=!0,this.timer=setTimeout(function(){t.value=!1},e)},n(e,[{key:"isSleep",get:function(){return this.value}}])})();t.exports=e},{"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../../ui/component/util":132,"./vtt-loader":48,"./vtt-parser":49,"./vtt-renderer":50}],47:[function(e,t,r){function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}function n(e,t){e.prototype=Object.create(t.prototype),o(e.prototype.constructor=e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=typeof(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(i.key),i)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=e("../../lib/data"),c={DISABLED:"disabled",SHOWING:"showing",HIDDEN:"hidden"},u={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",METADATA:"metadata",CHAPTERS:"chapters"},e=(r=>{function e(e){var e=i({},e=void 0===e?{}:e,{kind:e.kind||u.SUBTITLES,language:e.language||e.srclang||""}),t=e.mode||c.DISABLED;return-1<[u.METADATA,u.CHAPTERS].indexOf(e.kind)&&(t=c.HIDDEN),e.mode=t,(t=r.call(this,e)||this)._cues=[],t._activeCues=[],t._settings={},t._nativeTrack=null,t._extData={},t._settings=e,t}n(e,r);var t=e.prototype;return t.setExtData=function(e){this._extData=i({},this._extData,e=void 0===e?{}:e)},t.addCue=function(e){this._cues.push(e),this.nativeTrack&&this.nativeTrack.addCue(e)},t.removeCue=function(t){this._cues=this._cues.filter(function(e){return e!==t}),this.nativeTrack&&this.nativeTrack.removeCue(t)},s(e,[{key:"default",get:function(){return this._settings.default}},{key:"mode",get:function(){return this._settings.mode},set:function(e){this._settings.mode=e,this.nativeTrack&&(this.nativeTrack.mode=e)}},{key:"language",get:function(){return this._settings.language},set:function(e){this._settings.language=e,this.nativeTrack&&(this.nativeTrack.language=e)}},{key:"cues",get:function(){return this._cues}},{key:"activeCues",get:function(){return this._activeCues}},{key:"nativeTrack",get:function(){return this._nativeTrack},set:function(e){this._nativeTrack=e}}])})((()=>s(function(e){this._id=(e=void 0===e?{}:e).id||"prism-track-"+l.guid(),this._kind=e.kind||"",this._language=e.language||"",this._label=e.label||""},[{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"id",get:function(){return this._id}},{key:"kind",get:function(){return this._kind}},{key:"language",get:function(){return this._language}}]))()),p=(e=>{function t(){return e.call(this)||this}return n(t,e),t})((()=>{function e(){this._trackList=[]}return e.prototype.addTrack=function(e){var t=this.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this._trackList[t]}}),-1===this._trackList.indexOf(e)&&this._trackList.push(e)},s(e,[{key:"length",get:function(){return this._trackList.length}},{key:"list",get:function(){return this._trackList}}])})());t.exports.TextTrack=e,t.exports.TextTrackList=p,t.exports.TRACK_MODE=c,t.exports.TRACK_KIND=u},{"../../lib/data":24}],48:[function(e,t,r){var i=e("../io");t.exports=(()=>{function e(){}return e.prototype.loadFromUrl=function(e,t){i.get(e,function(e){t(e)},function(e,t){console.log("ERR",e,t)})},e})()},{"../io":33}],49:[function(e,t,r){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=typeof(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(i.key),i)}}var o=e("./vttjs").WebVTT,e=(()=>{function e(){var t=this;this._cues=[],this._regions=[],this.parser=new o.Parser(window,o.StringDecoder()),this.parser.onregion=function(e){t._regions.push(e)},this.parser.oncue=function(e){t._cues.push(e)},this.parser.onflush=function(){},this.parser.onparsingerror=function(e){}}var t,r,i=e.prototype;return i.parse=function(e){this.parser.parse(e),this.parser.flush()},i.reset=function(){this.parser.flush(),this._cues=[],this._regions=[]},i.dispose=function(){this.parser.flush(),this.parser=null,this._cues=[],this._regions=[]},i=e,(t=[{key:"cues",get:function(){return this._cues}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})();t.exports=e},{"./vttjs":51}],50:[function(e,t,r){function o(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(e=>"symbol"==typeof(e=((e,t)=>{if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);if("object"!=typeof(r=r.call(e,t||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"))?e:e+"")(i.key),i)}}function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),n(e.prototype.constructor=e,t)}function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}e("../../player/base/event/eventtype");var s=e("./text-track"),l=e("./vttjs").WebVTT,c=e("../../lib/dom"),u=s.TextTrack,p=s.TextTrackList,d=s.TRACK_MODE,h=(s.TRACK_KIND,(()=>{function e(e){this.player=null,this.type=null,this.trackList=null,this.overrideStyle={},this.player=(e=e||{}).player,this.defineTextTrackGetter(),this.trackList=new p}var t=e.prototype;return t.log=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];(e=console).log.apply(e,["[LOG:"+this.type+"]"].concat(r))},t.defineTextTrackGetter=function(){var e=this;this.player.getTextTracks=function(){return e.trackList||[]}},t.show=function(e){e=this.findTrackByLanguage(e);e&&(e.mode=d.SHOWING)},t.findTrackByLanguage=function(t){return this.trackList.list.find(function(e){return e.language===t})},t.clearCurrentCues=function(e){if(e){var t=e.mode;if(t===d.DISABLED&&(e.mode=d.HIDDEN),e.cues)for(var r=e.cues.length;r--;)e.removeCue(e.cues[r]);t===d.DISABLED&&(e.mode=t)}},t.addTrack=function(){},t.addCues=function(){},t.restore=function(){},t.renderCues=function(){},t.updateCuesStyle=function(){},t.clearTrack=function(e){this.clearCurrentCues(this.findTrackByLanguage(e))},t.clearAllTracks=function(){var t=this;this.trackList&&this.trackList.length&&this.trackList.list.forEach(function(e){e.mode=d.DISABLED,t.clearCurrentCues(e)}),this.trackList=new p},t.reset=function(){this.hide(),this.clearAllTracks()},t.dispose=function(){this.hide(),this.clearAllTracks(),this.player&&this.player.getTextTracks&&(this.player.getTextTracks=null),this.player=null,this.type=null},e})()),e=(h.RENDER_TYPE_CUSTOM="CUSTOM",h.RENDER_TYPE_NATIVE="NATIVE",(r=>{function e(e){var t=r.call(this,e)||this;return t.overlayId=null,t.currentCues=null,e=e||{},t.type=h.RENDER_TYPE_CUSTOM,t.overlayId=e.overlayId,t}a(e,r);var t=e.prototype;return t.addTrack=function(e){var t=new u({kind:e.kind,label:e.label,language:e.language,default:e.default});t.mode=e.default?d.SHOWING:d.DISABLED,this.trackList.addTrack(t)},t.hide=function(){return l.processCues(window,[],document.getElementById(this.overlayId))},t.restore=function(){this.currentCues&&(this.currentCues.forEach(function(e){return e.displayState=null}),l.processCues(window,this.currentCues,this.overlayEl),this.updateCuesStyle(this.currentCues))},t.renderCues=function(e){e&&(this.currentCues=e,this.overlayEl||(this.overlayEl=document.getElementById(this.overlayId)),l.processCues(window,e,this.overlayEl),this.updateCuesStyle(e))},t.updateCuesStyle=function(e){var i=this;e.forEach(function(e){var t,r=e.displayState;r._styleSetDone||r&&(r.setAttribute("class","prism-cue"),i.overlayEl||(i.overlayEl=document.getElementById(i.overlayId)),e=i.overlayEl.offsetWidth,t=i.overlayEl.offsetHeight,(e=Math.min(e,t))&&(r.style.fontSize=.05*e+"px",r.style.height="auto",r.style.top="auto"),44<((e,t)=>(e=e.getBoundingClientRect(),t.getBoundingClientRect().bottom-e.bottom))(r,i.overlayEl)&&(i.overrideStyle.transform="none"),Object.keys(i.overrideStyle).forEach(function(e){i.tryUpdateStyle(r,e,i.overrideStyle[e])}),r._styleSetDone=!0)})},t.updateOverrideStyle=function(e){this.overrideStyle=i({},this.overrideStyle,e=void 0===e?{}:e)},t.forceUpdateCuesStyle=function(e,t){void 0===t&&(t=[]),this.updateOverrideStyle(e=void 0===e?{}:e),this.resetCuesStyle(t)},t.tryUpdateStyle=function(e,t,r){try{e.style[t]=r}catch(e){}},t.resetCuesStyle=function(e){e&&e.length&&e.forEach(function(e){e.displayState&&(e.displayState=null)})},t.dispose=function(){r.prototype.dispose.call(this),this.overlayId=null,this.currentCues=null},e})(h)),s=(t=>{function e(e){return(e=t.call(this,e=void 0===e?{}:e)||this).type=h.RENDER_TYPE_NATIVE,e}a(e,t);var r,i,n=e.prototype;return n.addTrack=function(t){var e=this.player.tag,r=Array.from(e.textTracks)||[],i=r.find(function(e){return e.language===t.language}),r=i?(this.log("sameLangTrack",i,r),this.clearCurrentCues(i),i.kind=t.kind,i.label=t.label,i):e.addTextTrack(t.kind,t.label,t.language),i=(r.mode=t.default?d.SHOWING:d.DISABLED,new u(t));i.nativeTrack=r,this.trackList.addTrack(i)},n.addCues=function(e,t){var r;e&&e.length&&(r=this.trackList.list.find(function(e){return e.language===t}))&&e.forEach(function(e){r.addCue(e)})},n.hide=function(){this.trackList.list.forEach(function(e){e.mode=e.mode===d.SHOWING?d.HIDDEN:e.mode})},n.invalidAllTracks=function(){},n.forceUpdateCuesStyle=function(e,t){c.addCssByStyle("video::-webkit-media-text-track-container{transform: "+e.transform+";}")},n.dispose=function(){t.prototype.dispose.call(this)},n=e,(r=[{key:"activeTrack",get:function(){return this.trackList.list.find(function(e){return e.mode===d.SHOWING})}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n})(h);t.exports.VttBasicRenderer=h,t.exports.CustomRenderer=e,t.exports.NativeRenderer=s,t.exports.CTR_BAR_HEIGHT=44},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"./text-track":47,"./vttjs":51}],51:[function(e,t,r){t.exports={WebVTT:e("./vtt.js").WebVTT}},{"./vtt.js":52}],52:[function(e,t,r){var i=this;function o(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}var l,p=1;function n(e,t,r){switch(r){case"webvtt.font.color":case"webvtt.font.opacity":var i=Services.prefs.getCharPref("webvtt.font.color"),n=Services.prefs.getIntPref("webvtt.font.opacity")/100;l.fontSet=o(i,n);break;case"webvtt.font.scale":p=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":i=Services.prefs.getCharPref("webvtt.bg.color"),n=Services.prefs.getIntPref("webvtt.bg.opacity")/100;l.backgroundSet=o(i,n);break;case"webvtt.edge.color":case"webvtt.edge.type":i=Services.prefs.getIntPref("webvtt.edge.type"),n=Services.prefs.getCharPref("webvtt.edge.color");l.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][i]+o(n)}}"undefined"!=typeof Services&&(l={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){n(0,0,e),Services.prefs.addObserver(e,n,!1)}));var a=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return s.prototype=e,new s};function s(){}function c(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function h(e){function t(e,t,r,i){return 3600*(0|e)+60*(0|t)+(0|r)+(0|i)/1e3}e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function u(){this.values=a(null)}function d(e,t,r,i){var n,o,a=i?e.split(i):[e];for(n in a)"string"==typeof a[n]&&2===(o=a[n].split(r)).length&&t(o[0],o[1])}((c.prototype=a(Error.prototype)).constructor=c).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},u.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,r){for(var i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var f={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\xa0"},_={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},g={rt:"ruby"};function v(e,t){function r(e){return f[e]}for(var i,n,o,a,s,l,c,u=e.document.createElement("div"),p=u,d=[];null!==(c=void 0,c=t?(c=(c=t.match(/^([^<]*)(<[^>]*>?)?/))[1]||c[2],t=t.substr(c.length),c):null);)"<"===c[0]?"/"===c[1]?d.length&&d[d.length-1]===c.substr(2).replace(">","")&&(d.pop(),p=p.parentNode):(o=h(c.substr(1,c.length-2)))?(i=e.document.createProcessingInstruction("timestamp",o),p.appendChild(i)):(n=c.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(o=n[1],a=n[3],l=s=void 0,l=_[o],i=l?((s=e.document.createElement(l)).localName=l,(l=y[o])&&a&&(s[l]=a.trim()),s):null)&&(o=p,g[(l=i).localName]&&g[l.localName]!==o.localName||(n[2]&&(i.className=n[2].substr(1).replace("."," ")),d.push(n[1]),p.appendChild(i),p=i)):p.appendChild(e.document.createTextNode((e=>{for(;n=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(n[0],r);return e})(c)));return u}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function S(e){var t=[],r="";if(e&&e.childNodes)for(o(t,e);r=function e(t){var r,i,n;return t&&t.length?(i=(r=t.pop()).textContent||r.innerText)?(n=i.match(/^.*(\n|\r)/))?n[t.length=0]:i:"ruby"===r.tagName?e(t):r.childNodes?(o(t,r),e(t)):void 0:null}(t);)for(var i=0;i<r.length;i++)if((e=>{for(var t=0;t<m.length;t++){var r=m[t];if(e>=r[0]&&e<=r[1])return 1}})(r.charCodeAt(i)))return"rtl";return"ltr";function o(e,t){for(var r=t.childNodes.length-1;0<=r;r--)e.push(t.childNodes[r])}}function T(){}function b(e,t,r){var i="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),n="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)",a="",n=(void 0!==l&&(n=l.fontSet,o=l.backgroundSet,a=l.edgeSet),i&&(n="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),T.call(this),this.cue=t,this.cueDiv=v(e,t.text),{color:n,backgroundColor:o,textShadow:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"}),s=(i||(n.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",n.unicodeBidi="plaintext"),this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={textAlign:"middle"===t.align?"center":t.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},i||(n.direction=S(this.cueDiv),n.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(n),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function E(e){var t,r,i,n,o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop,n=(n=(n=e.div.childNodes)&&n[0])&&n.getClientRects&&n.getClientRects(),e=e.div.getBoundingClientRect(),n=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0),this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||t,this.bottom=e.bottom||i+(e.height||t),this.width=e.width||r,this.lineHeight=void 0!==n?n:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function w(e,t,s,l){var r,i=new E(t),n=t.cue,o=(e=>{if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,r=t.textTrackList,i=0,n=0;n<r.length&&r[n]!==t;n++)"showing"===r[n].mode&&i++;return-1*++i})(n),a=[];if(n.snapToLines){switch(n.vertical){case"":a=["+y","-y"],r="height";break;case"rl":a=["+x","-x"],r="width";break;case"lr":a=["-x","+x"],r="width"}var c=i.lineHeight,u=c*Math.round(o),p=s[r]+c,d=a[0];Math.abs(u)>p&&(u=u<0?-1:1,u*=Math.ceil(p/c)*c),o<0&&(u+=""===n.vertical?s.height:s.width,a=a.reverse()),i.move(d,u)}else{var h=i.lineHeight/s.height*100;switch(n.lineAlign){case"middle":o-=h/2;break;case"end":o-=h}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],i=new E(t)}p=((e,t)=>{for(var r,i=new E(e),n=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(s,t[o])||e.within(s)&&e.overlapsAny(l);)e.move(t[o]);if(e.within(s))return e;var a=e.intersectPercentage(s);a<n&&(r=new E(e),n=a),e=new E(i)}return r||i})(i,a);t.move(p.toCSSCompatValues(s))}function P(){}T.prototype.applyStyles=function(e,t){for(var r in t=t||this.div,e)e.hasOwnProperty(r)&&(t.style[r]=e[r])},T.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(b.prototype=a(T.prototype)).constructor=b,E.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},E.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},E.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},E.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},E.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},E.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,r=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||r}},P.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},P.convertCueToDOMTree=function(e,t){return e&&t?v(e,t):null},P.processCues=function(e,t,r){if(!e||!t||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",r.appendChild(i),(e=>{for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1})(t))for(var n,o,a=[],s=E.getSimpleBoxPosition(i),l={font:Math.round(.05*s.height*100)/100*p+"px sans-serif"},c=0;c<t.length;c++)n=new b(e,o=t[c],l),i.appendChild(n.div),w(0,n,s,a),o.displayState=n.div,a.push(E.getSimpleBoxPosition(n));else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},(P.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof c))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var i=this;function t(){for(var e=i.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var r=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,i.buffer=e.substr(t),r}function r(e){d(e,function(e,t){var n;"Region"===e&&(e=t,n=new u,d(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r,i=t.split(",");2===i.length&&((r=new u).percent("x",i[0]),r.percent("y",i[1]),r.has("x")&&r.has("y"))&&(n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y")));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id"))&&((e=new i.window.VTTRegion).width=n.get("width",100),e.lines=n.get("lines",3),e.regionAnchorX=n.get("regionanchorX",0),e.regionAnchorY=n.get("regionanchorY",100),e.viewportAnchorX=n.get("viewportanchorX",0),e.viewportAnchorY=n.get("viewportanchorY",100),e.scroll=n.get("scroll",""),i.onregion&&i.onregion(e),i.regionList.push({id:n.get("id"),region:e}))},/:/)}e&&(i.buffer+=i.decoder.decode(e,{stream:!0}));try{if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var n,o=(n=t()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new c(c.Errors.BadSignature);i.state="HEADER"}for(var a=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(a?a=!1:n=t(),i.state){case"HEADER":/:/.test(n)?r(n):n||(i.state="ID");continue;case"NOTE":n||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){i.state="NOTE";break}if(!n)continue;if(i.cue=new i.window.VTTCue(0,0,""),i.state="CUE",-1===n.indexOf("--\x3e")){i.cue.id=n;continue}case"CUE":try{((t,r,o)=>{var i=t;function e(){var e=h(t);if(null===e)throw new c(c.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function n(){t=t.replace(/^\s+/,"")}if(n(),r.startTime=e(),n(),"--\x3e"!==t.substr(0,3))throw new c(c.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),n(),r.endTime=e(),n();var a=t,s=new u;d(a,function(e,t){switch(e){case"region":for(var r=o.length-1;0<=r;r--)if(o[r].id===t){s.set(e,o[r].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),n=i[0];s.integer(e,n),s.percent(e,n)&&s.set("snapToLines",!1),s.alt(e,n,["auto"]),2===i.length&&s.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),s.percent(e,i[0]),2===i.length&&s.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),r.region=s.get("region",null),r.vertical=s.get("vertical","");try{r.line=s.get("line","auto")}catch(e){}r.lineAlign=s.get("lineAlign","start"),r.snapToLines=s.get("snapToLines",!0),r.size=s.get("size",100);try{r.align=s.get("align","center")}catch(e){r.align=s.get("align","middle")}try{r.position=s.get("position","auto")}catch(e){r.position=s.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},r.align)}r.positionAlign=s.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},r.align)})(n,i.cue,i.regionList)}catch(e){i.reportOrThrowError(e),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=n;continue;case"BADCUE":n||(i.state="ID");continue}}}catch(e){i.reportOrThrowError(e),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new c(c.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},i.WebVTT=P},{}],53:[function(e,t,r){var n=e("../lib/io");e("../lib/storage");function i(e){this._uploadDuration=e.logDuration||5,this._uploadCount=e.logCount||10,this._logReportTo=e.logReportTo,this._dumpLogReportTo=e.dumpLogReportTo,this._logs=[],this._retry=0,this._disposed=!1,this._supportLocalStorage=!0;var t;try{localStorage?(t=localStorage.getItem("__aliplayer_log_data"),localStorage.removeItem("__aliplayer_log_data"),t&&(this._logs=JSON.parse(t))):this._supportLocalStorage=!1}catch(e){this._supportLocalStorage=!1}this._start()}i.prototype.add=function(e){var t=this._logs.length;if(e.__time__=Math.round(new Date/1e3),0<t&&"4001"==e.e){var t=this._logs[t-1];if("4001"==t.e&&t.__time__-e.__time__<5)return}this._logs.push(e),(this._logs.length>this._uploadCount||"4001"==e.e||"2002"==e.e||"9002"==e.e&&null!=(t=e.args)&&t.includes("dump::"))&&this._report()},i.prototype.dispose=function(){this._report(),this._disposed=!0},i.prototype._start=function(){this._disposed=!1;this._retry=0,this._report()},i.prototype._report=function(t){var e,r,i;this._tickHandler&&(clearTimeout(this._tickHandler),this._tickHandler=null),0<(t=t||this._logs.splice(0,this._uploadCount)).length?(i={"Content-Type":"application/json;charset=UTF-8","x-log-apiversion":"0.6.0","x-log-bodyrawsize":(e=JSON.stringify({__logs__:t,__source__:""})).length},n.postWithHeader((r=this)._logReportTo,e,i,function(e){r._tick()},function(e){0==r._retry?(r._retry=1,r._report(t)):r._tick()})):this._tick()},i.prototype.reportDump=function(e){var t;e&&(t={"Content-Type":"application/json;charset=UTF-8","x-log-apiversion":"0.6.0","x-log-bodyrawsize":(e=JSON.stringify({__logs__:[e],__source__:""})).length},n.postWithHeader(this._dumpLogReportTo,e,t,function(e){},function(e){}))},i.prototype._tick=function(){var e;this._disposed||(this._retry=0,(e=this)._logs.length>this._uploadCount?e._report():this._tickHandler=setTimeout(function(){e._report()},1e3*this._uploadDuration))},t.exports=i},{"../lib/io":33,"../lib/storage":38}],54:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}var i,n=e("../lib/oo"),s=e("../lib/object"),_=e("../lib/data"),l=e("../lib/io"),y=e("../lib/ua"),o=e("../lib/event"),g=e("../config"),c=e("../player/base/event/eventtype"),v=e("./util"),m=e("./log"),u=e("../lib/playerutil"),p=0,d={CREATE:1e3,STARTFETCHDATA:1003,COMPLETEFETCHDATA:1004,PREPARE:1101,PREPAREEND:1102,STARTPLAY:2e3,PLAY:2001,STOP:2002,PAUSE:2003,SEEK:2004,FULLSREEM:2005,QUITFULLSCREEM:2006,RESOLUTION:2007,RESOLUTION_DONE:2008,RECOVER:2010,SEEK_END:2011,PLAYABORT:2012,SEEKED:2014,CANPLAY:2018,FETCHEDIP:2020,CDNDETECT:2021,DETECT:2022,HEVCINFO:2023,UNDERLOAD:3002,LOADED:3001,RETRY:3003,HEARTBEAT:9001,TRACE:9002,DUMP:9003,ERROR:4001,ERRORRETRY:4002,RTSFALLBACK:4003,VOD_REQUEST_FATAL_ERROR:4004,VOD_REQUEST_FATAL_ERROR_RESUME:4005,LICENSE_RESULT:5004,SNAPSHOT:2027,ROTATE:2028,IMAGE:2029,THUMBNAILSTART:2031,THUMBNAILCOMPLETE:2032,CCSTART:2033,CCCOMPLETE:2034,AUDIOTRACKSTART:2033,AUDIOTRACKCOMPLETE:2034},e=n.extend({init:function(e,t,r){this.trackLog=r=void 0===r?!0:r,this.player=e,this.requestId="",this.sessionId=_.guid(),this.playId=0,this.firstPlay=!0,this.osName=y.os.name,this.osVersion=y.os.version||"",this.exName=y.browser.name,this.exVersion=y.browser.version||"",this.lightSaasVideoId="",this._logService="",this._h265ProbeInfo={},this.loadedDataReported=!1,this.startPlayReported=!1,this.canplayReported=!1,this.doPlayReported=!1,this.seekingData={seekingStartTime:0},this.pendingPrepareEndData=null,this.h265RenderTypeTimer=null,this.statisticsHistoryTimer=null,this.timeline=[{name:"init",ts:performance.now()}],g.logReportTo=t.logReportTo||g.logReportTo,this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},this.resetHeartBeatStatusData(),this.resetStatisticsHistoryData(),t.logBatched&&(this._logService=new m(g));var r=this.player.getOptions(),e=t.from||"",t=(r.isLive,r.isLive?"live":"vod"),i="pc",n=(y.IS_IPAD?i="pad":y.os.phone&&(i="phone"),this.encodeURL(y.getReferer())),o=y.getHref(),a=this.encodeURL(o),s="",o=(o&&(s=y.getHost(o)),g.h5Version),l=v.getUuid(),c=r.source?this.encodeURL(r.source):"",u=y.getHost(r.source),p=r.userId?r.userId+"":"0",d=this.sessionId,h=(new Date).getTime(),f=r.traceId||"";this._userNetInfo={cdnIp:"",localIp:""};this.opt={APIVersion:"0.6.0",t:h,ll:"info",lv:"1.0",pd:"player",md:"saas_player",ui:"saas_player",sm:"play",os:this.osName,ov:this.osVersion,et:this.exName,ev:this.exVersion,uat:y.USER_AGENT,hn:"0.0.0.0",bi:e,ri:d,e:"0",args:"0",li_ki:r.license.key||"",vt:t,tt:i,dm:"h5",av:o,uuid:l,vu:c,vd:u,ua:p,dn:"custom",cdn_ip:"0.0.0.0",app_n:s,r:n,pu:a,ti:f},this.bindEvent()},updateVideoInfo:function(e){e=e.from||"";this.opt.bi=e+"",this.updateSourceInfo()},updateSourceInfo:function(){var e,t=this.player.getOptions();t&&(e=t.source?this.encodeURL(t.source):"",t=y.getHost(t.source),this.opt.vu=e,this.opt.vd=t)},updateTraceId:function(e){this.opt.ti=e},updateLightSaasVideoId:function(e){this.lightSaasVideoId=e},replay:function(){this.reset(),this.player.trigger(c.Video.LoadStart),this.player.trigger(c.Video.LoadedMetadata),this.player.trigger(c.Video.LoadedData),this.startHeartBeat()},bindEvent:function(){var r=this;this.player.on(c.Private.Create,function(e){r._onCreate(e)}),this.player.on(c.Player.Init,function(){r._onPlayerInit()}),this.player.on(c.Video.LoadStart,function(){r._onPlayerloadstart()}),this.player.on(c.Video.LoadedMetadata,function(){r._onPlayerLoadMetadata()}),this.player.on(c.Video.LoadedData,function(){r._onPlayerLoaddata()}),this.player.on(c.Player.H265PlayInfo,function(e){r._onH265PlayInfo(e),r._onPlayerH265PlayInfo(e)}),this.player.on(c.Player.H266PlayInfo,function(e){r._onH265PlayInfo(e),r._onPlayerH265PlayInfo(e)}),this.player.on(c.Video.Play,function(){r._onPlayerPlay()}),this.player.on(c.Video.Playing,function(){r._onPlayerReady()}),this.player.on(c.Video.Ended,function(){r._onPlayerFinish()}),this.player.on(c.Video.Pause,function(){r._onPlayerPause()}),this.player.on("seeking",function(){r._onPlayerSeeking()}),this.player.on("seeked",function(){r._onPlayerSeeked()}),this.player.on(c.Private.LicenseHasResult,function(e){r._onLicenseHasResult(e)}),this.player.on(c.Private.SeekStart,function(e){r._onPlayerSeekStart(e)}),this.player.on(c.Private.EndStart,function(e){r._seekEndData=e.paramData}),this.player.on(c.Player.Waiting,function(){r._onPlayerLoaded()}),this.player.on(c.Video.CanPlayThrough,function(){}),this.player.on(c.Video.CanPlay,function(){r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._onPlayerUnderload(),r._onPlayerCanplay()}),this.player.on(c.Video.TimeUpdate,function(){r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._seekEndData&&r.player._seeking&&r._onPlayerSeekEnd()}),this.player.on(c.Player.Error,function(e){r._onPlayerError(e)}),this.player.on(c.Player.RequestFullScreen,function(){r._onFullscreenChange(1)}),this.player.on(c.Player.CancelFullScreen,function(){r._onFullscreenChange(0)}),this.player.on(c.Private.PREPARE,function(e){r._prepareTime=performance.now(),r._log("PREPARE",{dn:e.paramData}),r.timeline.push({name:"prepare",ts:performance.now()})}),this.player.on(c.Private.ManualPlay,function(){r.loadedDataReported||(r._prepareTime=performance.now(),r.timeline.push({name:"prepare2",ts:performance.now()}))}),this.player.on(c.Player.Snapshoted,function(){r._log("SNAPSHOT")}),this.player.on(c.Private.Retry,function(e){e=e.paramData||{};r._log("RETRY",{type:e.type,source:e.source})}),this.player.on(c.Player.RtsFallback,function(e){var t,e=e.paramData||{};r._log("RTSFALLBACK",{reason:null==(t=e.reason)?void 0:t.error_msg,url:e.fallbackUrl})}),this.player.on(c.Private.VodRequestException,function(e){e=e.paramData||{};r.reportVodException(e)}),this.player.on(c.Private.VodRequestExceptionResume,function(e){e=e.paramData||{};r.reportVodExceptionResume(e)}),this.player.on(c.Private.TraceLog,function(e){e=e.paramData||{};r._reportTrace(e)}),this.player.on(c.Private.DumpBuffer,function(e){e=e.paramData||{};r._reportDump(e)}),this.player.on(c.Private.StatisticsInfo,function(e){e=e.paramData||{};r._onStatisticsHistoryUpdate(e)}),this.player.on(c.Private.Timeline,function(e){e=e.paramData||{};r._onTimeline(e)}),o.on(this.player.tag,c.Video.Playing,function(){r.reportPlaying()}),o.on(this.player.tag,c.Video.TimeUpdate,function(){r.reportPlaying()}),this.startHeartBeat.call(this),this.startStatisticsHistory.call(this)},startStatisticsHistory:function(){var e=this;"n.dingtalk.com"===this.opt.app_n&&(this.statisticsHistoryTimer&&clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=setInterval(function(){e.player.trigger(c.Private.TraceLog,"[statistics_history]"+JSON.stringify(e.statisticsHistory)),e.resetStatisticsHistoryData()},this.player._options.statisticsReportInterval))},reportPlaying:function(){var e;this.doPlayReported||this.player.paused()||0===this.player.readyState()||(this.doPlayReported=!0,this.first_play_time=performance.now(),e={dsm:"fix",tc:this.first_play_time-this.loadstartTime,fc:this.first_play_time-this.playstartTime},this._log("PLAY",e))},removeEvent:function(){this.player.offAll("init"),this.player.offAll("ready"),this.player.offAll("ended"),this.player.offAll("play"),this.player.offAll("pause"),this.player.offAll("seekStart"),this.player.offAll("seekEnd"),this.player.offAll("canplaythrough"),this.player.offAll("playing"),this.player.offAll("timeupdate"),this.player.offAll("error"),this.player.offAll("fullscreenchange"),this.player.offAll("seeking"),this.player.offAll("seeked"),this.player.offAll(c.Private.PREPARE),this.player.offAll(c.Player.RtsFallback),o.off(this.player.tag,c.Video.Playing),o.off(this.player.tag,c.Video.TimeUpdate),this._logService&&this._logService.dispose(),clearInterval(i),clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=null},reset:function(){this.stucking=!1,this.startTimePlay=0,this.pause_flag=0,this.firstPlay=!1,this.playId=0,this._canPlay=0,this.seekingStartTime=0,this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},p=0,this.lightSaasVideoId="",this.resetHeartBeatStatusData(),this.resetStatisticsHistoryData(),i&&(clearInterval(i),i=null)},encodeURL:function(e){var t;return e?(t=this.player.getOptions())&&!t.logBatched?encodeURIComponent(e):e:""},startHeartBeat:function(){var o=this;i&&clearInterval(i),i=setInterval(function(){var n;o.player.getCurrentTime()&&(n=Math.floor(1e3*o.player.getCurrentTime()),o.player.paused()&&(o.prevStats.timestamp=0),++p>=o.player._options.heartHeatInterval)&&o.updateStats.call(o,function(e){var t=o._imageInfo()||{},r=o.player.tag.playbackRate,i=o.player.getVolume(),t={vt:n,interval:1e3*p,imgLength:t.imgLength,playbackRate:r,volume:i,bw:o._getbwEstimator()+"KB"},r=((t=e?a({},t,{dls:Math.floor(e.downloadSpeedPerSec),dfps:Math.floor(e.decodedFramesPerSec),pkl:Number((e.packageLossRate||0).toFixed(2)),rtt:1e3*e.rtt}):t).player_status=a({},o.heartBeatStatusData),o.player);t.time={play_time:parseFloat((r._playingTime/1e3).toFixed(2)),stuck_count:parseFloat(r._stuckCount.toFixed(2)),stuck_time:parseFloat((r._stuckTime/1e3).toFixed(2))},o._log("HEARTBEAT",t),p=0})},1e3)},updateStats:function(i){i=i||function(){};var n=this;this.player.getStats().then(function(e){var t,r;e?(t=n.prevStats,e.bytesReceived=e.bytesReceived||0,e.framesDecoded=e.framesDecoded||0,e.packetsLost=e.packetsLost||0,e.packetsReceived=e.packetsReceived||0,r=((n.prevStats=e).timestamp-t.timestamp)/1e3,i({downloadSpeedPerSec:(e.bytesReceived-t.bytesReceived)/r,decodedFramesPerSec:(e.framesDecoded-t.framesDecoded)/r,packageLossRate:(e.packetsLost-t.packetsLost)/(e.packetsLost-t.packetsLost+(e.packetsReceived-t.packetsReceived)),rtt:e.rtt,timeGap:r})):i()}).catch(function(e){console.log("error in monitor getStats: ",e),i()})},reportStartPlay:function(){this.startPlayReported||(this._log("STARTPLAY",{vt:(new Date).getTime()}),this.startPlayReported=!0)},reportCanplay:function(){this.canplayReported||(this._log("CANPLAY",{vt:(new Date).getTime()}),this.canplayReported=!0)},reportPlayAbort:function(e){this._log("PLAYABORT",{vt:(new Date).getTime(),from:e})},reportVodException:function(e){console.log("VOD_REQUEST_FATAL_ERROR",e),this._log("VOD_REQUEST_FATAL_ERROR",e)},reportVodExceptionResume:function(e){console.log("VOD_REQUEST_FATAL_ERROR_RESUME",e),this._log("VOD_REQUEST_FATAL_ERROR_RESUME",e)},resetStartPlayReportFlag:function(){this.startPlayReported=!1},resetCanplayReportFlag:function(){this.canplayReported=!1},resetLoadedDataReported:function(){this.loadedDataReported=!1,this._prepareTime=performance.now()},resetDoPlayReportFlag:function(){this.doPlayReported=!1},resetSessionId:function(){this.sessionId=_.guid()},resetHeartBeatStatusData:function(){this.heartBeatStatusData={t_last_pause:-1,t_last_resume:-1,t_last_load_start:-1,t_last_load_end:-1},this.player.startPlayTimeMonitor()},resetStatisticsHistoryData:function(){this.statisticsHistory={speed:[],framesDropped:[],downlink:[],type:[],rtt:[]}},resetTimeline:function(){var e=performance.now();this._createTime=e,this.timeline=[{name:"init",ts:e}]},resetVV:function(){this.startPlayReported&&(this.resetStartPlayReportFlag(),this.resetLoadedDataReported(),this.resetDoPlayReportFlag(),this.resetCanplayReportFlag(),this.resetSessionId(),this.resetTimeline())},updateH265ProbeInfo:function(e){this._h265ProbeInfo=e||{}},_onFullscreenChange:function(e){e?this._log("FULLSREEM",{}):this._log("QUITFULLSCREEM",{})},_onTimeline:function(t){var r=["frag_s","frag_f","frag_parsed"].includes(t.name);this.timeline.some(function(e){return r&&e.name===t.name})||this.timeline.push(t)},_onPlayerloadstart:function(){this.loadstartTime=performance.now(),this.playId=_.guid()},_onPlayerLoadMetadata:function(){this.loadMetaDataCost=performance.now()-this.loadstartTime,this.timeline.push({name:"meta",ts:performance.now()})},_onPlayerLoaddata:function(){var i,e,t,r,n=this;this.timeline.push({name:"loadeddata",ts:performance.now()}),this.loadedDataReported||(r=t=0,this.player.tag&&(t=this.player.tag.videoWidth,r=this.player.tag.videoHeight),i={fc:parseInt(performance.now()-this._createTime),tc:parseInt(performance.now()-this._prepareTime),cc:parseInt(performance.now()-this.loadstartTime),md:parseInt(this.loadMetaDataCost),mi:JSON.stringify({type:"video",definition:t+"*"+r})},this.timeline.forEach(function(e,t){try{var r=t?e.ts-n.timeline[t-1].ts:0;i["tl_"+e.name]=t+"#"+parseInt(r)}catch(e){}}),null!=(t=this.player.tag)&&t.duration&&(i.vdur=1e3*(null==(r=this.player.tag)?void 0:r.duration)),(5<this._h265ProbeInfo.codecCost||5<this._h265ProbeInfo.decoderCost)&&(t=Math.floor(this._h265ProbeInfo.codecCost)||0,r=Math.floor(this._h265ProbeInfo.decoderCost)||0,i.tc+=e=t+r,i.cc+=e,i.pcc=t,i.pdc=r),e=[{type:"audio"}],t={type:"video",codecType:null,isHardwareDecode:null},r=this._h265ProbeInfo.codecTag,u.isH265Codec(r)?t.codecType="h265":u.isH266Codec(r)?t.codecType="h266":u.isH264Codec(r)&&(t.codecType="h264"),e.push(t),i.decode_info=e,this._h265ProbeInfo.waitRenderType?(this.pendingPrepareEndData=i,this.h265RenderTypeTimer=setTimeout(function(){n._log("PREPAREEND",i),n.h265RenderTypeTimer=null},2e3)):this._log("PREPAREEND",i)),this.loadedDataReported=!0},_onStatisticsHistoryUpdate:function(e){"n.dingtalk.com"===this.opt.app_n&&(this.statisticsHistory.speed.push(parseInt(e.speed)),this.statisticsHistory.framesDropped.push(e.droppedFrames),e=navigator.connection)&&(this.statisticsHistory.downlink.push(e.downlink),this.statisticsHistory.type.push(e.effectiveType),this.statisticsHistory.rtt.push(e.rtt))},_onH265PlayInfo:function(e){var t,r;this.h265RenderTypeTimer&&(clearTimeout(this.h265RenderTypeTimer),this.h265RenderTypeTimer=null),this.pendingPrepareEndData&&(e=e.paramData,t=this.pendingPrepareEndData,this.pendingPrepareEndData=null,r=t.decode_info[1],"wasm"===e.renderType&&(r.isHardwareDecode=!1),this._log("PREPAREEND",t))},_onPlayerH265PlayInfo:function(e){e=e.paramData||{};this._log("HEVCINFO",{cd:e.codecTag,rd:e.renderType,si:e.simd,sio:e.simdOption,wt:e.wasmThreads,wto:e.wasmThreadsOption,sp:e.splayer})},_onPlayerCanplay:function(){this._canPlay=1,this.reportCanplay(),this.prevStats.timestamp||this.updateStats.call(this)},_onCreate:function(e){e=e.paramData||{};e.hasPa=!!e.playauth,delete e.playauth,e.hasSk=!!e.accessKeySecret,delete e.accessKeySecret,e.hasSt=!!e.securityToken,delete e.securityToken,this._log("CREATE",e),this._createTime=performance.now()},_onPlayerInit:function(){this.stucking=!1,this.pause_flag=0,this.startTimePlay=0,this._canPlay=0,this.seekingStartTime=0},_onPlayerReady:function(){this.startTimePlay||(this.startTimePlay=(new Date).getTime())},_onPlayerFinish:function(){this._log("STOP",{vt:Math.floor(1e3*this.player.getCurrentTime())}),this.reset()},_onPlayerPlay:function(){var e;this.playstartTime=(new Date).getTime(),0==this.playId&&(this.playId=_.guid()),this.player._isPreload()||(this.loadstartTime=performance.now()),this.doPlayReported&&this.pause_flag&&(this.pause_flag=0,this.pauseEndTime=(new Date).getTime(),this.heartBeatStatusData.t_last_resume=this.pauseEndTime,e=this.pauseEndTime-this.pauseTime,this._log("RECOVER",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:e,pass:e,t_last_pause:this.pauseTime}))},_onPlayerPause:function(){!this.doPlayReported||this.startTimePlay&&!this.player._seeking&&(this.pause_flag=1,this.pauseTime=(new Date).getTime(),this.heartBeatStatusData.t_last_pause=this.pauseTime,this.heartBeatStatusData.t_last_resume=-1,this._log("PAUSE",{vt:Math.floor(1e3*this.player.getCurrentTime())}))},_onLicenseHasResult:function(e){e=e.paramData||{};this._log("LICENSE_RESULT",{li_ri:e.result+" "+(e.errorCode||""),li_ti:e.featureId||"sdk"})},_onPlayerSeekStart:function(e){this.seekStartTime=e.paramData.fromTime,this.startTimePlay=0,this.seekStartStamp=(new Date).getTime()},_onPlayerSeekEnd:function(){this.seekEndStamp=(new Date).getTime(),this._log("SEEK",{drag_from_timestamp:Math.floor(1e3*this.seekStartTime),drag_to_timestamp:Math.floor(1e3*this._seekEndData.toTime)}),this._log("SEEK_END",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.seekEndStamp-this.seekStartStamp}),this._seekEndData=null},_onPlayerLoaded:function(){var e,t=this;this.doPlayReported&&!this.stucking&&"hidden"!==document.visibilityState&&(this.player._seeking?(this.seekingStartTime=this.player.getCurrentTime(),setTimeout(function(){var e=t.player.readyState()<4;t.player.readyState()||(e=!0),t.player.getCurrentTime()===t.seekingStartTime&&e&&(e=t._getbwEstimator(),t._log("UNDERLOAD",{vt:Math.floor(1e3*t.player.getCurrentTime()),bw:e,cbs:t._getCbs()}),t.stucking=!0,t.stuckStartTime=(new Date).getTime(),0===t._getCbs())&&(t.heartBeatStatusData.t_last_load_start=t.stuckStartTime,t.heartBeatStatusData.t_last_load_end=-1)},500)):(this.stuckStartTime=(new Date).getTime(),0===this._getCbs()&&(this.heartBeatStatusData.t_last_load_start=this.stuckStartTime,this.heartBeatStatusData.t_last_load_end=-1),this.stuckStartTime-this.startTimePlay<=1e3||(this.stucking=!0,e=this._getbwEstimator(),this._log("UNDERLOAD",{vt:Math.floor(1e3*this.player.getCurrentTime()),bw:e,cbs:this._getCbs()}),this.stuckStartTime=(new Date).getTime())))},_onPlayerUnderload:function(){var e,t,r,i;!this.doPlayReported&&this.player._options&&this.player._options.autoplay||this.stucking&&(e=Math.floor(1e3*this.player.getCurrentTime()),t=this.stuckStartTime||(new Date).getTime(),0<(r=Math.floor((new Date).getTime()-t))&&r<(1e3*this.player._options.waitingTimeout||6e4)&&(i=this._getbwEstimator(),0===this._getCbs()&&(this.heartBeatStatusData.t_last_load_end=(new Date).getTime()),this._log("LOADED",{vt:e,cost:r,bw:i,cbs:this._getCbs(),t_last_load_start:t})),this.seekStart=!1,this.stucking=!1)},_onPlayerSeeking:function(){this.seekStart=!0,this.seekingData.seekingStartTime=performance.now()},_onPlayerSeeked:function(){var e=this;this.player._splayer?this.player.one("canplay",function(){e._reportSeeked()}):this._reportSeeked()},_reportSeeked:function(){var e=performance.now(),e=Math.floor(e-this.seekingData.seekingStartTime);this._log("SEEKED",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:e})},_reportTrace:function(e){this._log("TRACE",{log:e})},_reportDump:function(e){this._log("DUMP",e)},_onPlayerError:function(e){this._reportTrace(e.paramData),this.playId=0,this.statisticsHistoryTimer&&(clearInterval(this.statisticsHistoryTimer),this.statisticsHistoryTimer=null,this.resetStatisticsHistoryData())},_getbwEstimator:function(){var e=NaN;try{e=((e=this.player._getbwEstimator&&parseInt(this.player._getbwEstimator(),10))/8/1024).toFixed(2)}catch(e){}return e},_getCbs:function(){return!this.player.getOptions().isLive&&this.seekStart?1:0},_log:function(e,t){if(this.trackLog){this.updateSourceInfo();var r=s.copy(this.opt),i=(this.requestId=_.guid(),g.logReportTo),e=(r.e=d[e]+"",r.en=e,r.ri=this.sessionId,r.bi=r.bi&&String(r.bi),r.t=(new Date).getTime()+"",r.cdn_ip=this._userNetInfo.cdnIp,r.hn=this._userNetInfo.localIp,this.player.getCurrentQuality()),n=(""!=e&&(r.definition=e.definition),[]),e=(s.each(t,function(e,t){if("string"!=typeof t)try{t=JSON.stringify(t)}catch(e){}n.push(e+"="+t)}),""),t=this.player.getOptions(),e=((e=t&&t.vid||this.lightSaasVideoId?t.vid||this.lightSaasVideoId:e)&&n.push("vid="+e),"");(e=t&&t.mediaAuth?t.mediaAuth:e)&&n.push("pauth="+e);try{Aliplayer&&Aliplayer.__logCallback__&&(r.args=n,Aliplayer.__logCallback__(r))}catch(e){console.log(e)}if(""==(n=n.join("&"))&&(n="0"),r.args=this.encodeURL(n),this._logService){if(r.e===String(d.DUMP))return void this._logService.reportDump(r);this._logService.add(r)}else{var o=[];s.each(r,function(e,t){o.push(e+"="+t)}),o=o.join("&"),l.jsonp(i+"?"+o,function(){},function(){})}return this.sessionId}},_imageInfo:function(){try{var e,t,r,i,n,o,a;return/MSIE\s8\.0/.test(navigator.userAgent)?{}:(e=this.player.tag)?(t=document.createElement("canvas"),r=e.videoWidth,i=e.videoHeight,t.width=r,t.height=i,(n=t.getContext("2d")).save(),n.drawImage(e,0,0,r,i),n.restore(),o=t.toDataURL("image/jpeg",1),a="",{imgLength:(a=o?(a=o.substr(o.indexOf(",")+1))||"":a).length}):{}}catch(e){return{}}}});t.exports=e},{"../config":7,"../lib/data":24,"../lib/event":26,"../lib/io":33,"../lib/object":35,"../lib/oo":36,"../lib/playerutil":37,"../lib/ua":39,"../player/base/event/eventtype":63,"./log":53,"./util":55}],55:[function(e,t,r){var i=e("../lib/cookie"),n=e("../lib/data"),o=e("../lib/ua");t.exports.getUuid=function(){var e=i.get("p_h5_u");return e||(e=n.guid(),i.set("p_h5_u",e,730)),e},t.exports.getTerminalType=function(){var e="pc";return o.IS_IPAD?e="pad":o.IS_ANDROID?e="android":o.IS_IOS&&(e="iphone"),e},t.exports.returnUTCDate=function(e){var t=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate(),n=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),e=e.getUTCMilliseconds();return Date.UTC(t,r,i,n,o,a,e)},t.exports.getRfc822=function(e){return e.toUTCString().replace("UTC","GMT")}},{"../lib/cookie":23,"../lib/data":24,"../lib/ua":39}],56:[function(e,t,r){e("../../lib/oo"),e("../../lib/ua");t.exports={apiUrl:{default:"http://player.acfun.cn/js_data",hapame:"http://player.hapame.com/js_data"},ctype:"86",ev:4,defaultQuality:"mp4",defaultLanguage:"guoyu",ek:{a1:"bf",a8:"f",x2:"Kz0mooZM"},mk:{a3:"1z4i",a4:"86rv",a5:"f45",k3:"b7",nk:"m1uN9G6c"},PLAYERSTATE:{INIT:"PLAYER_STATE_INIT",READY:"PLAYER_STATE_READY",AD:"PLAYER_STATE_AD",PLAYING:"PLAYER_STATE_PLAYING",END:"PLAYER_STATE_END",ERROR:"PLAYER_STATE_ERROR"},userCache:{a1:"v",a2:"b"},langs:{default:{key:"guoyu",value:"\u56fd\u8bed",id:1},guoyu:{key:"guoyu",value:"\u56fd\u8bed",id:1},yue:{key:"yue",value:"\u7ca4\u8bed",id:2},chuan:{key:"chuan",value:"\u5ddd\u8bdd",id:3},tai:{key:"tai",value:"\u53f0\u6e7e",id:4},min:{key:"min",value:"\u95fd\u5357",id:5},en:{key:"en",value:"\u82f1\u8bed",id:6},ja:{key:"ja",value:"\u65e5\u8bed",id:7},kr:{key:"kr",value:"\u97e9\u8bed",id:8},in:{key:"in",value:"\u5370\u5ea6",id:9},ru:{key:"ru",value:"\u4fc4\u8bed",id:10},fr:{key:"fr",value:"\u6cd5\u8bed",id:11},de:{key:"de",value:"\u5fb7\u8bed",id:12},it:{key:"it",value:"\u610f\u8bed",id:13},es:{key:"es",value:"\u897f\u8bed",id:14},th:{key:"th",value:"\u6cf0\u8bed",id:15},po:{key:"po",value:"\u8461\u8bed",id:16},man:{key:"man",value:"\u6696\u7537",id:17},baby:{key:"baby",value:"\u840c\u7ae5",id:18}},stream_types:{flv:{key:"flv",quality:"flv",hd:0,suffix:"flv",play:!1,loghd:0},flvhd:{key:"flvhd",quality:"flv",hd:0,suffix:"flv",play:!1,loghd:0},mp4hd:{key:"mp4hd",quality:"mp4",hd:1,suffix:"mp4",play:!0,loghd:1},"3gphd":{key:"3gphd",quality:"mp4",hd:1,suffix:"mp4",play:!0,loghd:4},mp4hd2:{key:"mp4hd2",quality:"hd2",hd:2,suffix:"flv",play:!1,loghd:2},mp4hd3:{key:"mp4hd3",quality:"hd3",hd:3,suffix:"flv",play:!1,loghd:3},m3u8_flv:{key:"m3u8_flv",quality:"flv",hd:0,suffix:"m3u8",play:!0,loghd:0},m3u8_mp4:{key:"m3u8_mp4",quality:"mp4",hd:1,suffix:"m3u8",play:!0,loghd:0},m3u8_hd:{key:"m3u8_hd",quality:"hd2",hd:2,suffix:"m3u8",play:!0,loghd:0},m3u8_hd3:{key:"m3u8_hd3",quality:"hd3",hd:3,suffix:"m3u8",play:!0,loghd:0}},m3u8_types:{m3u8_flv:"flvhd",m3u8_mp4:"mp4hd",m3u8_hd:"mp4hd2",m3u8_hd3:"mp4hd3"},qualitys:{flv:0,mp4:1,hd2:2},getPlayerType:function(e){e="h5"==e?browser.isSupportH5M3U8?"h5m3u8":browser.isSupportH5MP4?"h5mp4":browser.isSupportFlash?"flash":"error":"flash"==e?browser.isSupportFlash?"flash":browser.isSupportH5M3U8?"h5m3u8":browser.isSupportH5MP4?"h5mp4":"error":"error";return e},k3:{a0:"3d9",a2:"ae1"},isPlayFromAli:!1,MONITOR_TYPE:{GET_LIST_NETWORK:"web_playlist_nt",GET_LIST_FORMAT:"web_playlist_ft"},MONITOR_STATUS_SUCCESS:0,MONITOR_STATUS_FAILED:-1}},{"../../lib/oo":36,"../../lib/ua":39}],57:[function(e,t,r){var n=e("./data/playdata"),i=e("../base/player"),u=e("../../lib/object"),o=e("./acconfig"),a=e("./data/log"),s=e("./acutil"),l=e("../hls/hlsinjector"),c=e("../../lib/playerutil"),p=e("../../lib/constants"),d=(request=e("./data/request"),{playing:"onPlayStart,onPlaying",ended:"onPlayEnd,onEnded",error:"onPlayError",waiting:"onWaiting",play:"onPlay",pause:"onPause",loadedmetadata:"onLoadedMetaData",loadeddata:"onLoadedData",seeked:"onSeeked",timeupdate:"onTimeUpdate"}),h=i.extend({init:function(e,t){var r=this;t.sign=t.embsig,i.call(this,e,t),f(this),this._loadData(function(){var e=c.canPlayHls();l.inject(r,h,i.prototype,r._options,function(){},!e),r._options.source=r._getM3u8src(),r.initPlay(!0),r.trigger("onPlayerReady")})}}),f=(h.prototype.play=function(){null!=this.tag.src&&""!=this.tag.src||(this._options.source=this._getM3u8src(),this.tag.src=this._options.source),this.tag.play()},h.prototype.language=function(e){return{key:this.currentLang.key,cn:this.currentLang.cn}},h.prototype.playVideo=function(e){var t=this;t._options=u.merge(t._options||{},e||{}),t._options.vid&&t._options.client_id?this._loadData(function(){t.initPlay(!0)}):t._setError(p.ErrorCode.InvalidParameter,"Param Error:please set vid && client_id")},h.prototype.sendAcfunMonitor=function(e,t,r,i){var n={};n.sign=this._options.embsig,n.vid=e,n.source=t,n.code=r,n.time=i,a.send("http://aplay-vod.cn-beijing.aliyuncs.com/acfun/monitor?"+s.urlParameter(n))},h.prototype._getM3u8src=function(){var e=this.playData.getM3u8srcByType(this.currentLang.key,this.data.type.key);return e=null!=e&&""!=e?e:this.playData.getM3u8src(this.currentLang.vid,this.currentQuality,this._options.password)},h.prototype._loadData=function(r){var i=this,t=(this._retryPlay||(this._retryPlay=0),arguments.callee),n=(new Date).getTime();request.getPlayData(i._options,function(e){console.log(e);var t=(new Date).getTime()-n;i.sendAcfunMonitor(i._options.vid,o.MONITOR_TYPE.GET_LIST_NETWORK,o.MONITOR_STATUS_SUCCESS,t),i._parseData(e,r)},function(){var e;this._retryPlay<3?(t(r),this._retryPlay++):(e=(new Date).getTime()-n,i.sendAcfunMonitor(i._options.vid,o.MONITOR_TYPE.GET_LIST_NETWORK,o.MONITOR_STATUS_FAILED,e),i._setError(p.ErrorCode.ServerAPIError,"Get PlayData Failed"),delete this._retryPlay)})},h.prototype._parseData=function(e,t){var r=this,i={};try{i=new n(e),r.videoData=e,r.playData=i,console.log(r.playData)}catch(e){return console.log(e.message),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED),void r._setError(p.ErrorCode.ServerAPIError,"Parse Data Error")}i.error?(r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED),r._setError(i.error.code,i.error.msg)):(r._setVideoData(o.defaultLanguage),t())},h.prototype._setVideoData=function(e){var t,r=this,i=r.playData.getIndexes();i.length<=0?(r._setError(p.ErrorCode.ServerAPIError,"Parse Data Error"),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED)):(e=r.playData.getIndexes(e)||i[0],r.currentLang=e,(t=r._getTypeByQuality(this._options.quality||o.defaultQuality))?(e=r.playData.getData(e.key,t.key),r.currentType=t,r.indexes=i,r.data=e,this._options.source=e.m3u8,r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_SUCCESS)):(r._setError(p.ErrorCode.FormatNotSupport,"\u6ca1\u6709\u5bf9\u5e94\u7684\u683c\u5f0f"),r.sendAcfunMonitor(r._options.vid,o.MONITOR_TYPE.GET_LIST_FORMAT,o.MONITOR_STATUS_FAILED)))},h.prototype._getTypeByQuality=function(e){var t=this.currentLang.types;if(t.length<=0)return null;for(var r=[],i={mp4:["3gphd","mp4hd"],flv:["flvhd"],hd2:["mp4hd2"]},n=i[e],o=(n&&(r=r.concat(n),delete i[e]),u.each(i,function(e,t){r=r.concat(t)}),null),a=0,s=r.length;a<s;a++){for(var l=0,c=t.length;l<c;l++)if(r[a]==t[l].key){o=t[l];break}if(o)break}return o},h.prototype.currentTime=function(){return this.getCurrentTime()},h.prototype.duration=function(){return this.getDuration()},h.prototype.bind=function(e,t){return"onPlayError"==e?(this._onPlayErrorCallback=t,this):this.on(e,t)},h.prototype._setError=function(e,t){e={mediaId:this._options.vid||"",error_code:e,error_msg:t};this.logError(e)},function(n){u.each(d,function(e,i){"error"==e?n.on(e,function(e){var t;n._onPlayErrorCallback&&(t=4,n.tag&&n.tag.error&&(t=n.tag.error.code),n._onPlayErrorCallback(t,e?e.paramData:""))}):n.on(e,function(e){if(0<i.indexOf(","))for(var t=i.split(","),r=0;r<t.length;r++)n.trigger(t[r],e?e.paramData:"");else n.trigger(i,e?e.paramData:"")})})});t.exports=h},{"../../lib/constants":22,"../../lib/object":35,"../../lib/playerutil":37,"../base/player":86,"../hls/hlsinjector":93,"./acconfig":56,"./acutil":58,"./data/log":59,"./data/playdata":60,"./data/request":61}],58:[function(e,t,r){var i="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");t.exports={getRandomString:function(e){e=e||3;for(var t=i.length,r="";0<=e;)r+=i[Math.floor(Math.random()*t)],e--;return r},urlParameter:function(e){var t,r=[];for(t in e)r.push(t+"="+e[t]);return r.join("&")},translate:function(e,t){for(var r=[],i=0;i<e.length;i++){for(var n=0,n="a"<=e[i]&&e[i]<="z"?e[i].charCodeAt(0)-"a".charCodeAt(0):e[i]-"0"+26,o=0;o<36;o++)if(t[o]==n){n=o;break}r[i]=25<n?n-26:String.fromCharCode(n+97)}return r.join("")},decode64:function(e){if(!e)return"";e=e.toString();for(var t,r,i,n,o=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),a=e.length,s=0,l="";s<a;){for(;t=o[255&e.charCodeAt(s++)],s<a&&-1==t;);if(-1==t)break;for(;r=o[255&e.charCodeAt(s++)],s<a&&-1==r;);if(-1==r)break;l+=String.fromCharCode(t<<2|(48&r)>>4);do{if(61==(i=255&e.charCodeAt(s++)))return l}while(i=o[i],s<a&&-1==i);if(-1==i)break;l+=String.fromCharCode((15&r)<<4|(60&i)>>2);do{if(61==(n=255&e.charCodeAt(s++)))return l}while(n=o[n],s<a&&-1==n);if(-1==n)break;l+=String.fromCharCode((3&i)<<6|n)}return l},encode64:function(e){if(!e)return"";for(var t,r,i,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=(e=e.toString()).length,a=0,s="";a<o;){if(t=255&e.charCodeAt(a++),a==o){s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4)+"==";break}if(r=e.charCodeAt(a++),a==o){s=(s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4|(240&r)>>4))+n.charAt((15&r)<<2)+"=";break}i=e.charCodeAt(a++),s=(s=(s=(s+=n.charAt(t>>2))+n.charAt((3&t)<<4|(240&r)>>4))+n.charAt((15&r)<<2|(192&i)>>6))+n.charAt(63&i)}return s},jie:function(e,t){for(var r,i=[],n=0,o="",a=0;a<256;a++)i[a]=a;for(a=0;a<256;a++)n=(n+i[a]+e.charCodeAt(a%e.length))%256,r=i[a],i[a]=i[n],i[n]=r;for(var a=0,n=0,s=0;s<t.length;s++)r=i[a=(a+1)%256],i[a]=i[n=(n+i[a])%256],i[n]=r,o+=String.fromCharCode(t.charCodeAt(s)^i[(i[a]+i[n])%256]);return o}}},{}],59:[function(e,t,r){t.exports.send=function(e,t){var r=document.createElement("img");t&&r.addEventListener("error",t,!1),r.src=e+"&r_="+Math.floor(1e4*Math.random()),r.id="youku-uniplayer-stat"}},{}],60:[function(e,t,r){var i=e("../../../lib/oo"),_=e("../acconfig"),n=e("../acutil"),o=e("../../../lib/object"),e=i.extend({init:function(e){var r,n;this._initSecurity(e)&&this._checkData(e)?(this.videoData=e,r=this._parseData(e.stream),n=this._parseIndexes(r),this.getIndexes=function(e){if(0<arguments.length){for(var t=0,r=n.length;t<r;t++){var i=n[t];if(e==i.key)return i}return null}return n},this.getData=function(e,t){return 0<arguments.length?r[e]?1==arguments.length?r[e]:r[e].types[t]:null:r}):(this.getData=function(e,t){return null},this.getIndexes=function(e){return null})}});e.prototype.getLangByKey=function(e){return _.langs[e]},e.prototype.getTypeByKey=function(e){return _.stream_types[e]},e.prototype.getM3u8srcByType=function(e,t){return this.getData(e,t).m3u8},e.prototype.setError=function(e,t){this.error={code:e,msg:t}},e.prototype._initSecurity=function(e){var t;return void 0===e.security||void 0===e.security.encrypt_string?(this.setError(2004,"Parse Data Error"),!1):(t=n.jie(n.translate(_.mk.a3+"ogb"+_.userCache.a1,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),n.decode64(e.security.encrypt_string))).split("_").length<2?(this.error=new new Error(2004,"Parse Data Error"),!1):(this.sid=t.split("_")[0],this.token=t.split("_")[1],this.oip=e.security.ip,!0)},e.prototype._checkData=function(e){if(null!=e.error){e=e.error.code;if(-202==e||-203==e)return this.setError(4e3,"The Video Password Error"),!1;if(-402==e)return this.setError(2007,"No authority to access"),!1;if(-301==e||-303==e)return this.setError(3001,"No authority to access"),!1}return!0},e.prototype._parseIndexes=function(e){var r=[];return o.each(e,function(e,t){var a=[],s=[];o.each(t.types,function(e,t){for(var r=t.type.quality,i=(s.push({key:t.type.key,quality:r}),!1),n=0,o=a.length;n<o;n++)if(r==a[n]){i=!0;break}i||a.push(r)}),r.push({key:t.key,cn:t.cn,vid:t.vid,id:t.id,types:s,qualitys:a})}),console.log(r),r},e.prototype._parseData=function(e){for(var t={},r=0;r<e.length;r++){var i=e[r],n=this.getTypeByKey(i.stream_type),o=this.getLangByKey(i.audio_lang);if(n&&o&&-1==n.key.indexOf("m3u8")){for(var a=i.segs,s=0,l=0,c=[],u=0;u<a.length;u++){var p=a[u];if(null==p)break;var d={no:u,seconds:Number(p.total_milliseconds_video)/1e3,seconds_video:Number(i.milliseconds_video)/1e3,key:p.key,fileId:this._getFileId(i.stream_fileid,u),type:n,url:p.url};d.src=d.url||this._getVideoSrc(d),s+=parseInt(d.seconds),l+=parseInt(p.size),c.push(d)}this._getLangVid(o.key);t[o.key]||(t[o.key]={key:o.key,cn:o.value,id:o.id,vid:this._getLangVid(o.key),types:{}}),t[o.key].types[n.key]={no:r,logoFlag:"none"!=i.logo?1:0,type:n,segs:c,seconds:s,size:l}}}for(r=0;r<e.length;r++){var h,f,i=e[r],n=this.getTypeByKey(i.stream_type),o=this.getLangByKey(i.audio_lang);n&&o&&-1!=n.key.indexOf("m3u8")&&(h=i.m3u8,f=_.m3u8_types[n.key],t[o.key].types[f])&&(t[o.key].types[f].m3u8=h)}return t},e.prototype._getLangVid=function(e){var t=this.videoData.dvd;if(!t||!t.audiolang)return this.videoData.video.encodeid;for(var r=t.audiolang,i=0,n=r.length;i<=n;i++)if(e==r[i].langcode)return r[i].vid},e.prototype._getFileId=function(e,t){return null==e||""===e?"":e.slice(0,8)+(t=(t=1==(t=t.toString(16)).length?"0"+t:t).toUpperCase())+e.slice(10,e.length)},t.exports=e},{"../../../lib/object":35,"../../../lib/oo":36,"../acconfig":56,"../acutil":58}],61:[function(e,t,r){e("../../../lib/oo");var a=e("../../../lib/io"),s=e("../../../lib/object"),l=e("../acutil"),c=e("../acconfig");t.exports.getEncryptStr=function(e,t){return encodeURIComponent(l.encode64(l.rc4(l.translate(e,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),t)))},t.exports.getPlayData=function(e,r,i){var n=this,t=(console.log("--getPlayData--"),{vid:e.vid,ct:c.ctype,ev:c.ev}),o=(e.client_id&&(t.cid=e.client_id),e.sign&&(t.sign=e.sign),e.password&&(t.pwd=escape(e.password)),[]),t=(s.each(t,function(e,t){o.push(e+"="+t)}),o=o.join("&"),c.apiUrl.default);1==e.isHapame&&(t=c.apiUrl.hapame,o+="&dt=1"),t=t+"?"+o,a.jsonp(t,function(e){console.log("----getJson Succ----"),e.encrypt&&"1"===e.encrypt&&(t=n._decode(l.decode64(e.data)),e.data=JSON.parse(t));var t=e.data;t.stream||t.error?r(t):i({code:"101",note:"\u8be5\u89c6\u9891\u6682\u4e0d\u80fd\u64ad\u653e"})},function(e){console.log("----getJson Fail----"),i({code:"404",note:"\u83b7\u53d6\u6570\u636e\u5931\u8d25"})})},t.exports._decode=function(e){return l.jie(c.mk.nk+c.ek.x2,e)},t.exports._parsePaths=function(e,t){var r,i="";for(r in t=t||"/",e)i+=r+t+e[r]+t;return i}},{"../../../lib/io":33,"../../../lib/object":35,"../../../lib/oo":36,"../acconfig":56,"../acutil":58}],62:[function(e,t,r){var a=e("../../../lib/event"),s=e("./eventtype"),i=e("../eventHandler/video/index"),n=e("../eventHandler/player/index");t.exports.offAll=function(e){var t,r,i,n=e.tag,o=e._el;for(t in s.Video)a.off(n,s.Video[t]);for(r in s.Player)a.off(o,s.Player[r]);for(i in s.Private)a.off(o,s.Private[i])},t.exports.offVideoAll=function(e){var t,r=e.tag;for(t in s.Video)a.off(r,s.Video[t])},t.exports.onAll=function(e){i.bind(e),n.bind(e)}},{"../../../lib/event":26,"../eventHandler/player/index":67,"../eventHandler/video/index":77,"./eventtype":63}],63:[function(e,t,r){t.exports={Video:{TimeUpdate:"timeupdate",Play:"play",Playing:"playing",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",Suspend:"suspend",Stalled:"stalled",LoadStart:"loadstart",DurationChange:"durationchange",LoadedData:"loadeddata",LoadedMetadata:"loadedmetadata",Progress:"progress",CanPlayThrough:"canplaythrough",ContextMenu:"contextmenu",Seeking:"seeking",Seeked:"seeked",ManualEnded:"manualended",VolumeChange:"volumechange",RateChange:"ratechange",Resize:"resize"},Player:{TimeUpdate:"timeupdate",DurationChange:"durationchange",Init:"init",Ready:"ready",Play:"play",Playing:"playing",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",RequestFullScreen:"requestFullScreen",CancelFullScreen:"cancelFullScreen",Snapshoted:"snapshoted",Snapshoting:"snapshoting",OnM3u8Retry:"onM3u8Retry",LiveStreamStop:"liveStreamStop",AutoPlayPrevented:"autoPlayPrevented",AutoPlay:"autoplay",StartSeek:"startSeek",CompleteSeek:"completeSeek",TextTrackReady:"textTrackReady",AudioTrackReady:"audioTrackReady",AudioTrackUpdated:"audioTrackUpdated",LevelsLoaded:"levelsLoaded",AudioTrackSwitch:"audioTrackSwitch",AudioTrackSwitched:"audioTrackSwitched",LevelSwitch:"levelSwitch",LevelSwitched:"levelSwitched",MarkerDotOver:"markerDotOver",MarkerDotOut:"markerDotOut",DefaultBandWidth:"defaultbandwidth",ResolutionChange:"resolutionChange",SeiFrame:"seiFrame",RtsFallback:"rtsFallback",RtsTraceId:"rtsTraceId",H265PlayInfo:"h265PlayInfo",H266PlayInfo:"h266PlayInfo",H265DecoderOverload:"h265DecoderOverload",SettingSelected:"settingSelected",AutoResize:"autoResize",VideoUnavailable:"videoUnavailable"},Private:{Create:"create",Play_Btn_Show:"play_btn_show",UiH5Ready:"uiH5Ready",Error_Hide:"error_hide",Error_Show:"error_show",Info_Show:"info_show",Info_Hide:"info_hide",H5_Loading_Show:"h5_loading_show",H5_Loading_Hide:"h5_loading_hide",HideProgress:"hideProgress",CancelHideProgress:"cancelHideProgress",UpdateProgress:"updateProgress",UpdateCursorPosition:"updateCursorPosition",Click:"click",MouseOver:"mouseover",MouseOut:"mouseout",MouseEnter:"mouseenter",MouseLeave:"mouseleave",TouchStart:"touchstart",TouchMove:"touchmove",TouchEnd:"touchend",HideBar:"hideBar",ShowBar:"showBar",ControlBarClick:"controlBarClick",ReadyState:"readyState",SourceLoaded:"sourceloaded",QualityChange:"qualitychange",Play_Btn_Hide:"play_btn_hide",Cover_Hide:"cover_hide",Cover_Show:"cover_show",SeekStart:"seekStart",EndStart:"endStart",UpdateProgressBar:"updateProgressBar",LifeCycleChanged:"lifeCycleChanged",Dispose:"dispose",Created:"created",Snapshot_Hide:"snapshot_hide",AutoStreamShow:"auto_stream_show",AutoStreamHide:"auto_stream_hide",VolumnChanged:"volumnchanged",LiveShiftQueryCompleted:"liveShiftQueryCompleted",LiveShiftSwitchToLive:"LiveShiftSwitchToLive",StreamSelectorHide:"streamSelectorHide",SpeedSelectorHide:"speedSelectorHide",SettingShow:"settingShow",SettingHide:"settingHide",SelectorShow:"selectorShow",SelectorHide:"selectorHide",SettingListShow:"settingListShow",SettingListHide:"settingListHide",ThumbnailHide:"thumbnailHide",ThumbnailShow:"thumbnailShow",ThumbnailLoaded:"thumbnailLoaded",TooltipShow:"tooltipShow",TooltipHide:"tooltipHide",SelectorUpdateList:"selectorUpdateList",SelectorValueChange:"selectorValueChange",SelectorGenerateList:"selectorGenerateList",VolumeVisibilityChange:"volumeVisibilityChange",VolumeUpdatePosition:"volumeUpdatePosition",ChangeURL:"changeURL",UpdateToSettingList:"updateToSettingList",CCChanged:"CCChanged",CCStateChanged:"CCStateChanged",CCReset:"ccReset",TextTrackFounded:"textTrackFounded",UserTrackReset:"userTrackReset",PlayClick:"click",ProgressMarkerLoaded:"progressMarkerLoaded",MarkerTextShow:"markerTextShow",MarkerTextHide:"markerTextHide",PREPARE:"prepare",ProgressMarkerChanged:"progressMarkerChanged",SeiFrame:"privateSeiFrame",PlayInfoLoaded:"playInfoLoaded",Retry:"retry",LicenseHasResult:"licenseHasResult",LicenseTipShow:"licenseTipShow",LicenseTipHide:"licenseTipHide",PatchWaiting:"patchWaiting",VttHide:"vttHide",VttSwitchTrack:"vttSwitchTrack",VttClearTracks:"vttClearTracks",SafariDrmLevelSwitch:"safariDrmLevelSwitch",VodRequestException:"vodRequestException",VodRequestExceptionResume:"vodRequestExceptionResume",TraceLog:"traceLog",DumpBuffer:"dumpBuffer",PlaybackRateChanged:"playbackRateChanged",StatisticsInfo:"statisticsInfo",MutedAutoplay:"mutedAutoplay",Timeline:"timeline",ManualPlay:"manualPlay",UpdateWatchTime:"updateWatchTime"}}},{}],64:[function(e,t,r){e("../../event/eventtype");var i=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){n.IS_IOS&&(n.IS_IOS,!this._splayer||2!==this._splayer.renderType)||i.removeClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],65:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t=this;t.trigger(i.Player.CompleteSeek,e.paramData.toTime),t.one(i.Player.CanPlay,function(){t._enteredProgressMarker&&t.pause()})}},{"../../event/eventtype":63}],66:[function(e,t,r){var i=e("../../event/eventtype"),n=(e("../../../../lib/constants"),e("../../../../lang/index"),e("../../../../monitor/util"));t.exports.handle=function(e){var t=this,e=e.paramData;t.trigger(i.Private.H5_Loading_Hide),t.trigger(i.Private.Cover_Hide),t.trigger(i.Private.Play_Btn_Hide),t.trigger(i.Private.SettingListHide),t.trigger(i.Private.SelectorHide),t.trigger(i.Private.VolumeVisibilityChange,""),e=e||{},t._monitor&&(e.uuid=n.getUuid(),e.serverRequestId=t._serverRequestId,e.requestId=t._monitor.sessionId,e.cdnIp=t._monitor._userNetInfo.cdnIp,e.localIp=t._monitor._userNetInfo.localIp),t._isError=!0,t.trigger(i.Private.Error_Show,e),t.trigger(i.Private.LifeCycleChanged,{type:i.Player.Error,data:e})}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../monitor/util":55,"../../event/eventtype":63}],67:[function(e,t,r){var i=e("../../event/eventtype"),o=e("../../../../lib/event"),a=e("./lifecyclecommon"),n={endStart:e("./endstart"),seekStart:e("./seekstart"),requestFullScreen:e("./requestfullscreen"),cancelFullScreen:e("./cancelfullscreen"),error:e("./error"),privateSeiFrame:e("./seiframe"),patchWaiting:e("../video/waiting")},s=[i.Private.EndStart,i.Private.SeekStart,i.Player.RequestFullScreen,i.Player.CancelFullScreen,i.Player.Error,i.Player.Ready,i.Private.Dispose,i.Private.Created,i.Private.SeiFrame,i.Private.PatchWaiting];t.exports.bind=function(e){e.el();for(var t=0;t<s.length;t++){var r=s[t];"undefined"!=n[r]&&((r,i,n)=>{var e=r.el();o.on(e,i,function(e){var t=(n&&n.handle?n:a).handle;t.call(r,e,i)})})(e,r,n[r])}}},{"../../../../lib/event":26,"../../event/eventtype":63,"../video/waiting":85,"./cancelfullscreen":64,"./endstart":65,"./error":66,"./lifecyclecommon":68,"./requestfullscreen":69,"./seekstart":70,"./seiframe":71}],68:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e,t){this.trigger(i.Private.LifeCycleChanged,{type:t,data:e})}},{"../../event/eventtype":63}],69:[function(e,t,r){e("../../event/eventtype");var i=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){n.IS_IOS&&(n.IS_IOS,!this._splayer||2!==this._splayer.renderType)||i.addClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],70:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){this._seeking=!0,this.trigger(i.Player.StartSeek,e.paramData.fromTime)}},{"../../event/eventtype":63}],71:[function(e,t,r){e("../../event/eventtype");t.exports.handle=function(e){var t,r,e=e.paramData,i=e.pts;this._hls2?i=parseInt(1e3*i):this._hls&&(t=e.pts,r=this._initPTS,i=parseInt((t-r)/90,10)),this._seis[i]=this._seis[i]||[],this._seis[i].push(e.dataContent)}},{"../../event/eventtype":63}],72:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t=this,r=(t._retrySwitchUrlCount=0,t._liveRetryCount=0,t._clearLiveErrorHandle(),t._dumpBuffer="ABORTED",(new Date).getTime()-t.readyTime);t._options.autoplay||t._options._autoplay||!t.paused()||(t.trigger(i.Private.H5_Loading_Hide),t.trigger(i.Private.Play_Btn_Show)),t.trigger(i.Player.CanPlay,{loadtime:r})}},{"../../event/eventtype":63}],73:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../lib/dom"),o=e("../../../../lib/ua");t.exports.handle=function(e){this._seeking=!1;var t=this.tag;"none"===t.style.display&&o.IS_IOS&&setTimeout(function(){n.css(t,"display","block")},100),this.trigger(i.Video.CanPlayThrough)}},{"../../../../lib/dom":25,"../../../../lib/ua":39,"../../event/eventtype":63}],74:[function(e,t,r){t.exports.handle=function(e,t){var r="";e&&e.paramData&&(r=e.paramData),this.trigger(t,r)}},{}],75:[function(e,t,r){var i=e("../../event/eventtype");e("../../../../lang/index"),e("../../../../lib/event");t.exports.handle=function(e){var t=this;t.waiting=!1,t._ended=!0,t._currentTimeForDisableSeek=0,t.traceLog("video/ended.js","event::ended"),t.trigger(i.Private.Play_Btn_Show),t.trigger(i.Player.Ended,{playTime:t.getPlayTime()}),t.__disposed||(t._monitor&&t._monitor._onPlayerInit(),t._options.rePlay?(t._monitor&&t._monitor.startHeartBeat(),this._splayer||(t.seek(t._getPlayStartTime()),t.tag.play())):t._options.isLive&&t.trigger(i.Private.H5_Loading_Hide))}},{"../../../../lang/index":18,"../../../../lib/event":26,"../../event/eventtype":63}],76:[function(e,t,r){var s=e("../../event/eventtype"),l=e("../../../../lib/constants"),c=e("../../../../lang/index"),u=(e("../../../../lib/event"),e("../../../../lib/ua")),p=(e("../../../../lib/io"),e("../../../../lib/playerutil")),d="video/error.js";function h(t,e,r){var i=t._options,n=i.source||"";4===(e=4!==e&&u.IS_IOS&&/qqbrowser/i.test(u.USER_AGENT)?4:e)&&p.isHls(n)?p.detectRegionBlock(n,function(e){e?(e={mediaId:i.isLive?"ISLIVE":i.vid||"",error_code:l.ErrorCode.RegionBlock,error_msg:c.get("Error_Region_Block_Text"),diagnosis_info:c.get("Tip_Err_Blocked")},t.logError(e),t.trigger("error",e)):r()}):r()}t.exports.handle=function(e){if((e.target||e.srcElement).error){var i=this;if(i.waiting=!1,i._clearTimeout(),i.checkOnline()&&!i._splayer&&!i._drm){var n,o="",t=e.target||e.srcElement,a=t.error&&t.error.message||"",o="";if(t.error&&t.error.code&&(n=t.error.code,o=l.VideoErrorCode[t.error.code],a=n+" || "+a),i.traceLog(d,"event::error#"+n+"#"+a),i._reportDumpBuffer&&i._reportDumpBuffer(),i._options.isLive)h(i,n,function(){i._options.liveRetry>i._liveRetryCount?i._reloadAndPlayForM3u8():(i._liveRetryCount=0,i.trigger(s.Player.LiveStreamStop),i._liveErrorHandle=setTimeout(function(){var e={mediaId:"ISLIVE",error_code:o,error_msg:a||c.get("Error_Play_Text")+"\uff0c"+c.get("Error_Retry_Text")};i.logError(e),e.display_msg=l.VideoErrorCodeText[n]||e.error_msg,i.trigger("error",e)}),u.IS_UC&&(i._liveErrorHandle=null))});else if(3==n){t="";if(-1<a.indexOf("no decoder found"))t=c.get("Error_No_Decoder_Text");else if(i._nudgeCount=i._nudgeCount||0,i._nudgeCount<5){i._nudgeCount++;var r=+i._nudgeCount,r=i.getCurrentTime()+r;if(i.traceLog(d,"decode error, try to nudge("+i._nudgeCount+"/5) from "+i.getCurrentTime()+" to "+r+"s, duration: "+i.getDuration()),r<i.getDuration())return void i._loadByUrlInner(i._options.source,r,!0)}else if(function(){var e=!1,t=this.getOptions();{var r;this._fallback||!p.isHls(t.source)||this._options._native||!p.canPlayHls()||this.swPlayer||(e=!0,this._options.useHlsPluginForSafari=!1,this._options._native=!0,this.traceLog(d,"fallback to native player"),r=this.getCurrentTime(),window.Aliplayer&&window.Aliplayer.reloadInstance(this._options,function(e){e._fallback=!0,t.isLive||e.seek(r)},this))}return e}.call(i)||function(){var e=!1,t=this.getOptions();{var r;!this._fallback&&p.isHls(t.source)&&this._options._native&&p.isSupportHls()&&(e=!0,this._options.useHlsPluginForSafari=!0,this._options._native=!1,this.traceLog(d,"fallback to MSE player"),r=this.getCurrentTime(),window.Aliplayer)&&window.Aliplayer.reloadInstance(this._options,function(e){e._fallback=!0,t.isLive||e.seek(r)},this)}return e}.call(i))return;r={mediaId:i._options.vid||"",error_code:o,error_msg:a};i.logError(r),r.display_msg=l.VideoErrorCodeText[n]+(t?"\uff0c"+t:""),r.diagnosis_info=c.get("Tip_Err_Decode")+"<br />"+c.get("Tip_Err_Common_Short")+a,i.trigger(s.Player.Error,r)}else i._reloadForVod()||h(i,n,function(){var e,t,r;e=c.get("Error_Play_Text"),t=!1,n<3?e=l.VideoErrorCodeText[n]:i._eventState==l.SUSPEND?(e=c.get("Error_Load_Abort_Text"),o=l.ErrorCode.RequestDataError):i._eventState==l.LOAD_START?(e=c.get("Error_Network_Text"),0<i._options.source.indexOf("auth_key")&&(e=e+"\uff0c"+c.get("Error_AuthKey_Text")),o=l.ErrorCode.StartLoadData):i._eventState==l.LOADED_METADATA&&(e=c.get("Error_Play_Text"),o=l.ErrorCode.PlayingError),e=e+"\uff0c"+c.get("Error_Retry_Text"),1<i._urls.length&&i._retrySwitchUrlCount<3&&-1==i._options.source.indexOf(".mpd")&&(i.switchUrl(),t=!0),r={mediaId:i._options.vid||"",error_code:o,error_msg:a},t||(i.logError(r),r.display_msg=e,i.trigger(s.Player.Error,r))})}}else this.traceLog(d,"video.MediaError is null, may be caused by non-video source, like invalid poster ("+(e.target||e.srcElement).poster+")")}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../lib/event":26,"../../../../lib/io":33,"../../../../lib/playerutil":37,"../../../../lib/ua":39,"../../event/eventtype":63}],77:[function(e,t,r){var n=e("../../../../lib/event"),o=e("../../event/eventtype"),i={canplay:e("./canplay"),canplaythrough:e("./canplaythrough"),common:e("./common"),ended:e("./ended"),error:e("./error"),pause:e("./pause"),play:e("./play"),playing:e("./playing"),waiting:e("./waiting"),timeupdate:e("./timeupdate"),manualended:e("./ended"),loadedmetadata:e("./loadedmetadata"),seeking:e("./seeking"),resize:e("./resize")};t.exports.bind=function(e){e.tag;for(var t in o.Video){t=o.Video[t];((t,r,i)=>{var e=t.tag;n.on(e,r,function(e){i.handle.call(t,e,r),r!=o.Video.Error&&(r==o.Video.ManualEnded&&(r=o.Video.Ended),t.trigger(o.Private.LifeCycleChanged,{type:r,data:e}))})})(e,t,void 0!==i[t]?i[t]:i.common)}}},{"../../../../lib/event":26,"../../event/eventtype":63,"./canplay":72,"./canplaythrough":73,"./common":74,"./ended":75,"./error":76,"./loadedmetadata":78,"./pause":79,"./play":80,"./playing":81,"./resize":82,"./seeking":83,"./timeupdate":84,"./waiting":85}],78:[function(e,t,r){var i=e("../../event/eventtype");e("../../../../lib/playerutil");t.exports.handle=function(e){var t=this.tag,r=t.duration<1?0:t.duration;this._getSubVideoConfig().start>r-1&&(console.warn("Params.start ["+this._getSubVideoConfig().start+"] is greater than video.duration ["+r+"] - 1, seeking to 0"),this.setStartEnd(0,this._getSubVideoConfig().end)),this._getWatchTimeConfig().watchStartTime>r-1&&(console.warn("Params.watchStartTime ["+this._getWatchTimeConfig().watchStartTime+"] is greater than video.duration ["+r+"] - 1, seeking to 0"),this.setWatchTime(0,this._getWatchTimeConfig().watchEndTime)),this.trigger(i.Private.ReadyState),this._splayer&&this.trigger(i.Video.DurationChange),this.trigger(i.Video.LoadedMetadata),t.videoWidth&&t.videoHeight||this.trigger(i.Player.VideoUnavailable)}},{"../../../../lib/playerutil":37,"../../event/eventtype":63}],79:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../lib/ua");t.exports.handle=function(e){var t=this;t._seeking&&t._splayer||(t._hls&&t._options&&t._options.isLive&&n.IS_FIREFOX&&t.trigger(i.Private.Play_Btn_Show),t._clearTimeout(),t.trigger(i.Private.AutoStreamHide),t.trigger(i.Player.Pause),t._isManualPause&&(t.trigger(i.Private.Play_Btn_Show),t.trigger(i.Private.H5_Loading_Hide)),t.waiting=!1)}},{"../../../../lib/ua":39,"../../event/eventtype":63}],80:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){this.trigger(i.Private.Error_Hide),this.trigger(i.Private.Cover_Hide),this.trigger(i.Private.AutoStreamHide),this.waiting=!1,this.trigger(i.Player.Play)}},{"../../event/eventtype":63}],81:[function(e,t,r){var i=e("../../event/eventtype");t.exports.handle=function(e){var t,r=this;this.tag.paused||(r.trigger(i.Private.H5_Loading_Hide),r.trigger(i.Private.Cover_Hide),r.trigger(i.Private.Info_Hide),r.waiting=!1,r._ended=!1,r._liveRetryCount=0,r._vodRetryCount=0,r._seeking=!1,t=r.getCurrentTime(),r._waitingReloadTime!=t&&(r._waitingTimeoutCount=0),r._checkTimeoutHandle&&(clearTimeout(r._checkTimeoutHandle),r._checkTimeoutHandle=null),r._waitingLoadedHandle&&(clearTimeout(r._waitingLoadedHandle),r._waitingLoadedHandle=null),r._ucSourceHandle&&(clearTimeout(r._ucSourceHandle),r._ucSourceHandle=null),r._waitingDelayLoadingShowHandle&&(clearTimeout(r._waitingDelayLoadingShowHandle),r._waitingDelayLoadingShowHandle=null),r._waitingTimeoutHandle&&(clearTimeout(r._waitingTimeoutHandle),r._waitingTimeoutHandle=null,r._ccService)&&r._options.isLive&&(t=r._ccService.getCurrentSubtitle(),r._setDefaultCC=!0,t)&&r._ccService.switch(t),r.trigger(i.Private.AutoStreamHide),r.trigger(i.Player.Playing),r.trigger(i.Private.Error_Hide),r.trigger(i.Private.Play_Btn_Hide))}},{"../../event/eventtype":63}],82:[function(e,t,r){var i=e("../../event/eventtype"),n=e("../../../../feature/ratioAdapter");t.exports.handle=function(e){this.trigger(i.Video.Resize);var t=this.getOptions();if(t.autoSize){if(!this._ratioAdapter){if(!0!==t.autoSize&&"width"!==t.autoSize&&"height"!==t.autoSize)return void console.warn("Unknown parameter [autoSize]: "+t.autoSize+", only true/height/width are supported");!0===t.autoSize&&(t.autoSize="height"),this._ratioAdapter=new n}this._ratioAdapter.autoResize(this.tag.videoWidth/this.tag.videoHeight,this,t.autoSize)}}},{"../../../../feature/ratioAdapter":14,"../../event/eventtype":63}],83:[function(e,t,r){var a=e("../../event/eventtype");e("../../../../lib/playerutil");t.exports.handle=function(e){var t,r,i,n=this.tag,o=(this.getOptions().disableSeek&&(o=n.currentTime-this._currentTimeForDisableSeek,.01<Math.abs(o))&&(n.currentTime=this._currentTimeForDisableSeek),n.currentTime);this._canSeek(o)||(t=this._getWatchTimeConfig(),i=0,(r=this._getSubVideoConfig()).start||r.end?i=o>r.end?r.end:r.start:(t.watchStartTime||t.watchEndTime)&&(i=o>t.watchEndTime?t.watchEndTime:t.watchStartTime),n.currentTime=i),this.trigger(a.Video.Seeking)}},{"../../../../lib/playerutil":37,"../../event/eventtype":63}],84:[function(e,t,r){var p=e("../../event/eventtype"),d=e("../../../../lib/ua"),h=e("../../../../lib/event"),f=e("../../plugin/status");function _(e){var t=this;null!=e&&e.length&&e.forEach(function(e){t.trigger(p.Player.SeiFrame,e)})}t.exports.handle=function(e){var t,r,i,n=this,o=(n._isError||n.trigger(p.Player.TimeUpdate,e.timeStamp),n._decodeErrorNudgeTimer||(n._decodeErrorNudgeTimer=setTimeout(function(){n._nudgeCount=0},3e3)),(d.IS_IOS||d.IS_MAC_SAFARI)&&(clearTimeout(n._waitingPatchTimer),n._waitingPatchTimer=setTimeout(function(){n.waiting||n._isError||n.paused()||n._disposed||(console.log("!!!!!!!manually waiting!!!!!!!"),n.trigger(p.Private.PatchWaiting))},3e3)),n.getCurrentTime()),e=(n.tag.seeking||(n._currentTimeForDisableSeek=o),n.waiting&&!n._TimeUpdateStamp&&(n._TimeUpdateStamp=o),0!=n.waiting&&n._TimeUpdateStamp==o||0===o||(n.trigger(p.Private.H5_Loading_Hide),n.trigger(p.Private.AutoStreamHide),n._checkTimeoutHandle&&clearTimeout(n._checkTimeoutHandle),n._waitingTimeoutHandle&&clearTimeout(n._waitingTimeoutHandle),n._waitingLoadedHandle&&clearTimeout(n._waitingLoadedHandle),n._ucSourceHandle&&(clearTimeout(n._ucSourceHandle),n._ucSourceHandle=null),n.waiting=!1),d.IS_ANDROID&&d.IS_UC&&(n._timeNotUpdateCount=n._timeNotUpdateCount||0,n.waiting||o!==n._TimeUpdateStamp||(n._timeNotUpdateCount++,2<=n._timeNotUpdateCount&&(n._timeNotUpdateCount=0,n.trigger(p.Private.PatchWaiting)))),n._TimeUpdateStamp=o,n._options.isLive||(t=n.getDuration(),e=!1,r=0,t<o&&!n.paused()?(r=1,e=!0):t-o<.2&&0<=d.browser.version.indexOf("49.")&&!n.paused()?(r=2,e=!0):n.exceedPreviewTime(o)?(r=3,e=!0):o>=n._getWatchTimeConfig().watchEndTime&&(r=4,e=!0,n.pause()),e&&setTimeout(function(){n._ended||(n._splayer||n.paused()||n.pause(),h.trigger(n.tag,p.Video.ManualEnded),n.traceLog&&n.traceLog("video/timeupdate.js","ManualEnded#"+r+"#"+o+"#"+t))},100)),n._player.tag),a=(e&&n._options.isLive&&(n._player.resolution&&0<e.videoWidth&&0<e.videoHeight&&(0<n._player.resolution.width||0<n._player.resolution.height)&&(n._player.resolution.width!==e.videoWidth||n._player.resolution.height!==e.videoHeight)&&(i={oldResolution:{width:n._player.resolution.width,height:n._player.resolution.height},newResolution:{width:e.videoWidth,height:e.videoHeight}},n.trigger(p.Player.ResolutionChange,i)),n._player.resolution.width=0==e.videoWidth?n._player.resolution.width:e.videoWidth,n._player.resolution.height=0==e.videoHeight?n._player.resolution.height:e.videoHeight),d.IS_CHROME&&Number(d.CHROME_VERSION)<50&&(n._playingSlientPause&&(clearTimeout(n._playingSlientPause),n._playingSlientPause=null),n._playingSlientPause=setTimeout(function(){var e,t;n._status!=f.playing||n.paused()||n._drm||n._urls.length||(e=n.getCurrentTime(),t=n._options.isLive?0:e,n._loadByUrlInner(n._options.source,t,e))},3e3)),n._seis||{}),s=Object.keys(a);if(0!==s.length)for(var l=parseInt(1e3*o,10)+300,c=0;c<s.length;c++){var u=s[c];if(!(u<=l))break;_.call(n,a[u]),delete a[u]}}},{"../../../../lib/event":26,"../../../../lib/ua":39,"../../event/eventtype":63,"../../plugin/status":90}],85:[function(e,t,r){var o=e("../../event/eventtype"),a=e("../../../../lib/constants"),s=e("../../../../lib/event"),l=e("../../../../lang/index"),c=e("../../../../lib/ua"),u=e("../../../../lib/playerutil"),p="video/waiting.js";t.exports.handle=function(e){var t=this;if(!t._options.isLive){var r=this.getCurrentTime(),i=this.getDuration();if(!t._ended&&0<i&&(i-r<.5||i<r))return t.pause(),t._ended=!0,s.trigger(this.tag,o.Video.ManualEnded),void(t.traceLog&&t.traceLog(p,"ManualEnded#"+r+"#"+i))}t.waiting=!0;function n(){t._checkTimeoutHandle&&(clearTimeout(t._checkTimeoutHandle),t._checkTimeoutHandle=null),t._waitingTimeoutHandle&&(clearTimeout(t._waitingTimeoutHandle),t._waitingTimeoutHandle=null),t._waitingLoadedHandle&&(clearTimeout(t._waitingLoadedHandle),t._waitingLoadedHandle=null),t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._ucSourceHandle&&(clearTimeout(t._ucSourceHandle),t._ucSourceHandle=null)}n(),t._waitingDelayLoadingShowHandle=setTimeout(function(){c.IS_IOS&&t.paused()||t._isError||t.trigger(o.Private.H5_Loading_Show)},1e3*t._options.delayLoadingShow),t._TimeUpdateStamp=null,t._checkTimeoutHandle=setTimeout(function(){t.trigger(o.Private.AutoStreamShow)},1e3*t._options.loadDataTimeout),t.trigger(o.Player.Waiting),t._waitingTimeoutHandle=setTimeout(function(){var e;t.tag&&t._options&&(t.pause(),e={mediaId:t._options.vid||"",error_code:a.ErrorCode.LoadingTimeout,error_msg:l.get("Error_Waiting_Timeout_Text")},t.logError(e),t.trigger("error",e))},1e3*t._options.waitingTimeout);r=t._options;r.disableLiveHalfRetry&&r.isLive||r.disableVodHalfRetry&&!r.isLive||(t._waitingLoadedHandle=setTimeout(function(){var e=t.getCurrentTime();0==t._waitingTimeoutCount&&e!=t._waitingReloadTime&&(t.traceLog(p,"half-retry::"+t._options.waitingTimeout/2),t._waitingTimeoutCount=1,t._waitingReloadTime=e,e=t._options.isLive?0:e,t._loadByUrlInner(t._options.source,e,!0))},t._options.waitingTimeout/2*1e3)),c.IS_ANDROID&&c.IS_DINGTALK&&(t._ucSourceHandle=setTimeout(function(){u.detectRegionBlock(t._options.source,function(e){e&&(e={mediaId:t._options.vid,error_code:a.ErrorCode.RegionBlock,error_msg:l.get("Error_Region_Block_Text"),diagnosis_info:l.get("Tip_Err_Blocked")},t.logError(e),t.trigger("error",e))})},5e3)),t.on("error",function(){n()})}},{"../../../../lang/index":18,"../../../../lib/constants":22,"../../../../lib/event":26,"../../../../lib/playerutil":37,"../../../../lib/ua":39,"../../event/eventtype":63}],86:[function(e,t,M){var n="undefined"==typeof Promise?e("es6-promise").Promise:Promise,o=e("../../ui/component"),a=e("../../lib/object"),s=e("../../lib/dom"),l=e("../../lib/event"),c=e("../../ui/exports"),u=e("../../monitor/monitor"),p=e("../../lib/ua"),d=e("../../lib/constants"),h=e("../../lib/playerutil"),f=e("../../lib/util"),i=e("./x5play"),r=e("../../lib/cookie"),_=e("../../lang/index"),y=e("../../feature/autoplaydelay"),g=e("./event/eventmanager"),v=e("../../ui/component/cover"),m=e("../../ui/component/license-watermark"),S=e("../../feature/license"),T=e("../../ui/component/text-track-display"),b=e("../../commonui/autostreamselector"),E=e("./event/eventtype"),w=e("./plugin/lifecyclemanager"),P=e("../service/export"),x=e("../../ui/component/progressmarker"),C=e("../../feature/keyboardControl"),k=e("../../feature/AntiRecord"),L=(e("./eventHandler/video/index"),e("../../lib/vttnext/index")),A=e("../../lib/codec-probe"),D=e("../splayer/splayerinjector"),R=e("../../ui/component/util").throttle,I=e("../../feature/ratioAdapter"),O=e("../../feature/logoManager"),N="base/player.js",e=o.extend({init:function(e,t){var r;function i(e){var r,i=this;"file:"===window.location.protocol||this._licenseHasResult||(this._licenseHasResult=!0,t.license&&t.license.key&&t.license.domain?("native"!==e.paramData.renderType&&(e=e.paramData.codecTag,h.isH265Codec(e)?r=d.FEATURE_ID_H265:h.isH266Codec(e)&&(r=d.FEATURE_ID_H266)),S.getLicense(t.license.domain,t.license.key,"SEA"===t.env?"ap-southeast-1":"cn-shanghai").then(function(e){e=e.validate(d.PLAYER_SDK_CODE,r);if(0===e)i.trigger(E.Private.LicenseHasResult,{result:d.LicenseResultCode.Success,featureId:r});else{if(1===e)return n.reject(d.LicenseResultCode.NotFound);{if(2===e)return n.reject(d.LicenseResultCode.Expired);console.error("license validate unknown error")}}}).catch(function(e){var t=String(e).split("#"),t=(e=Number(t[0]),t[1]);i.trigger(E.Private.LicenseHasResult,{result:e,errorCode:t,featureId:r}),S.logError(e)})):(console.warn(_.get("Tip_License_Required")+(t.isLive?"":": https://help.aliyun.com/zh/vod/developer-reference/license-authorization-and-management#13133fa053843")),console.warn(_.get("Tip_License_Params")+": https://help.aliyun.com/zh/vod/developer-reference/integration"),this.trigger(E.Private.LicenseHasResult,{result:d.LicenseResultCode.LicenseKeyInvalid})))}this.tag=e,this.loaded=!1,this.played=!1,this.oncePlayed=!1,this.waiting=!1,this._urls=[],this._currentPlayIndex=0,this._retrySwitchUrlCount=0,this._isError=!1,this._isHls=!1,this._liveRetryCount=0,this._liveRetryTimer=null,this._flvDumpTimer=null,this._vodRetryCount=0,this._nudgeCount=0,this._seeking=!1,this._serverRequestId=0,this._waitingTimeoutCount=0,this._waitingReloadTime=0,this._created=!1,this._enteredProgressMarker=!1,this._liveShiftSeekStartTime=0,this._seis={},this._initPTS=0,this.isMutiLevel=!1,this._antiRecord=null,this._ratioAdapter=null,this._logoManager=null,this._clickPauseEnabled=!1,this._currentTimeForDisableSeek=0,this._loadByUrlStartTime=0,this._posOffset=0,this._onceLogged=!1,this._licenseHasResult=!1,this.__disposed=!1,this.resolution={width:0,height:0},void 0===t.skinLayout&&(t.skinLayout=h.getDefaultH5Layout()),null!=(e=t.skinLayoutIgnore)&&e.length&&(t.skinLayout=h.ignoreSkinLayouts(t.skinLayout,t.skinLayoutIgnore)),h.isRts(t.source)&&!t.autoplay&&(t.preload=!1),"SEA"===t.env&&(t.logReportTo="https://videocloud-sgp.ap-southeast-1.log.aliyuncs.com/logstores/newplayer/track",t.disableDumpBuffer=!0),o.call(this,this,t),this.addClass("prism-player"),t.plugins&&a.each(t.plugins,function(e,t){this[e](t)},this),this._createService(),this.UI={},t.useNativeControls?this.tag.setAttribute("controls","controls"):(this.UI=c,0==t.errorDisplay&&(this.UI.errorDisplay=void 0)),t.disablePip&&this.tag.setAttribute("disablePictureInPicture","true"),this._handleClickPause_dbClickFullscreen(t),this.initChildren(),this._options.trackLog&&(this._monitor=new u(this,{video_id:0,album_id:0,from:this._options.from,source:this._options.source,logBatched:this._options.logBatched,logReportTo:this._options.logReportTo},this._options.trackLog)),g.onAll(this),this.trigger(E.Private.Create,t._userOptions),this._options.preventRecord&&(this._antiRecord=new k({player:this}),this._antiRecord.start()),this._lifeCycleManager=new w(this),this._overrideNativePlay(),this._liveshiftService&&!this._liveshiftService.validate()?(e={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidParameter,error_msg:_.get("ShiftLiveTime_Error")},this.trigger(E.Player.Error,e)):(this._posOffset=this._getSubVideoConfig().start||0,this._options.extraInfo&&(e=this._options.extraInfo).liveRetry&&(this._options.liveRetry=e.liveRetry),this.on(E.Private.ReadyState,function(){this.trigger(E.Player.Ready)}),this.on(E.Player.H265PlayInfo,i),this.on(E.Player.H266PlayInfo,i),this.one(E.Player.CanPlay,i),this.on(E.Private.LicenseHasResult,function(e){var e=e.paramData||{},t=e.result,r=e.errorCode,i=e.featureId,e=d.LicenseResultCode;switch(t){case e.LicenseKeyInvalid:case e.DomainInvalid:this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.Empty)});break;case e.NotFound:this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.Unauthorized)});var n="";i===d.FEATURE_ID_H265&&(n="H265"),i===d.FEATURE_ID_H266&&(n="H266"),console.error(_.get("Tip_License_Feature"),n);break;case e.Expired:this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.Expired)});break;case e.CertInvalid:-1<["E003","E005","E006"].indexOf(r)?(this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.LicenseKeyInvalid)+"("+r+")"}),console.error(_.get("Tip_License_Check"))):"E008"===r?(this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.DomainInvalid)+"("+r+")"}),console.error(_.get("Tip_License_Domain"))):"E010"===r&&(this.trigger(E.Private.LicenseTipShow,{message:_.get(d.LicenseErrorKey.NotFound)+"("+r+")"}),console.error(_.get("Tip_License_Check")))}}),this._thumbnailService&&this._options.thumbnailUrl&&this._thumbnailService.get(this._options.thumbnailUrl),0<this._options.progressMarkers.length&&this.trigger(E.Private.ProgressMarkerLoaded,this._options.progressMarkers),this._options.source&&this._options._native&&this._executeReadyCallback(),this._options.autoplay||this._options.preload?this.trigger(E.Private.H5_Loading_Show):this.trigger(E.Private.Play_Btn_Show),this._extraMultiSources(),this._options.source&&(this.trigger(E.Private.PREPARE,"custom"),this._options.autoPlayDelay?(this._autoPlayDelay=new y(this),(r=this)._autoPlayDelay.handle(function(){r.initPlay()})):this.initPlay()),this._options.ratio&&(this._options.autoSize?console.warn("The parameter [ratio] will be ignored when [autoSize] is set."):(this._options.height&&console.warn("The parameter [height] will be ignored when [ratio] is set."),this._ratioAdapter=new I,this._ratioAdapter.autoResize(this._options.ratio,this))),C.init.call(this),null!=(e=this._options.logo)&&e.length&&(this._logoManager=new O({container:this.el(),video:this.tag,logo:this._options.logo})),this._vttBroker=new L({player:this}),this._getUserTextTracks())}});e.prototype.isSupportMSE=function(){return h.isSupportMSE()},e.prototype.initPlay=function(e){this._initPlayBehavior(e,this._options.source)},e.prototype.initChildren=function(){var e=this.options(),t=e.skinLayout;if(!1!==t&&!a.isArray(t))throw new Error("PrismPlayer Error: skinLayout should be false or type of array!");!1!==t&&0!==t.length&&(this.options({children:t}),o.prototype.initChildren.call(this)),this.UI.cover=v,e.className="",this.addChild("cover",e),this.UI.autoStreamSelector=b,this.addChild("autoStreamSelector",e),this.UI.progressMarker=x,this.addChild("progressMarker",e),this.UI.textTrackDisplay=T,this.addChild("textTrackDisplay",e),this.UI.licenseWatermark=m,this.addChild("licenseWatermark",e),this.trigger(E.Private.UiH5Ready)},e.prototype.createEl=function(){var e=!1,t=("VIDEO"!==this.tag.tagName?(this._el=this.tag,this.tag=o.prototype.createEl.call(this,"video"),this._options.playsinline&&(this.tag.setAttribute("webkit-playsinline",""),this.tag.setAttribute("playsinline",""),this.tag.setAttribute("x-webkit-airplay",""),this.tag.setAttribute("x5-playsinline",""))):(e=!0,this._el=this.tag.parentNode),this._el),r=this.tag,i=(this._options.enableSystemMenu||(r.addEventListener?r.addEventListener("contextmenu",function(e){e.preventDefault()},!1):r.attachEvent("oncontextmenu",function(){window.event.returnValue=!1})),r.player=this,s.getElementAttributes(r));return a.each(i,function(e){t.setAttribute(e,i[e])}),this.setVideoAttrs(),e||(r.parentNode&&r.parentNode.insertBefore(t,r),s.insertFirst(r,t)),t},e.prototype.setVideoAttrs=function(){var e=this._options.preload,t=this._options.autoplay;if(this.tag.style.width=this._options.videoWidth||"100%",this.tag.style.height=this._options.videoHeight||"100%",e&&this.tag.setAttribute("preload","preload"),t&&"15"!==p.IOS_VERSION&&this.tag.setAttribute("autoplay","autoplay"),p.IS_IOS&&this.tag.setAttribute("poster","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAMZJREFUeAHt0DEBAAAAwqD1T20LL4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMDAc2CcpAABaODCqQAAAABJRU5ErkJggg=="),(p.IS_UC||p.dingTalk())&&this.tag.setAttribute("renderer","standard"),this._options.extraInfo)for(var r in this._options.extraInfo)p.IS_OPPO&&"crossOrigin"===r||this.tag.setAttribute(r,this._options.extraInfo[r]);i.adaptX5Play(this)},e.prototype.checkOnline=function(){var e;return!(this._options&&!this._options.debug&&0==navigator.onLine&&((e={mediaId:this._options.vid||"",error_code:d.ErrorCode.NetworkUnavaiable,error_msg:_.get("Error_Offline_Text")}).display_msg=_.get("Error_Offline_Text"),this.trigger(E.Player.Error,e),1))},e.prototype.id=function(){return this.el().id},e.prototype.renderUI=function(){},e.prototype.switchUrl=function(){var e,t;this.traceLog(N,"switchUrl"),0!=this._urls.length&&(this._currentPlayIndex=this._currentPlayIndex+1,this._urls.length<=this._currentPlayIndex&&(this._currentPlayIndex=0,this._retrySwitchUrlCount++),e=this._urls[this._currentPlayIndex],r.set(d.SelectedStreamLevel,e.definition,365),this.trigger(E.Private.QualityChange,_.get("Quality_Change_Fail_Switch_Text")),t=this.getCurrentTime(),this._vodRetryCount=0,this._originalSource="",this._loadByUrlInner(e.Url,t,!0))},e.prototype.setControls=function(){var e=this.options();e.useNativeControls?this.tag.setAttribute("controls","controls"):"object"==typeof e.controls&&(e=this._initControlBar(e.controls),this.addChild(e))},e.prototype.enableClickPause=function(){this._clickPauseEnabled=!0},e.prototype.disableClickPause=function(){this._clickPauseEnabled=!1},e.prototype._initControlBar=function(e){return new ControlBar(this,e)},e.prototype.getMetaData=function(){},e.prototype.getReadyTime=function(){return this.readyTime},e.prototype.readyState=function(){return this.tag.readyState},e.prototype.getError=function(){return this.tag.error},e.prototype.getRecentOccuredEvent=function(){return this._eventState},e.prototype.getSourceUrl=function(){return this._options?this._options.source:""},e.prototype.getMonitorInfo=function(){return this._monitor?this._monitor.opt:{}},e.prototype.getCurrentQuality=function(){var e;return 0<this._urls.length?{width:(e=this._urls[this._currentPlayIndex]).width,url:e.Url,definition:e.definition}:""},e.prototype.getCurrentPDT=function(){var e;if((p.IS_SAFARI||p.IS_IOS)&&this.tag)return e=Date.parse(this.tag.getStartDate()),isNaN(e)?0:e+1e3*this.getCurrentTime()},e.prototype.stopPlayTimeMonitor=function(){this._playTimeMonitorTimer&&(clearInterval(this._playTimeMonitorTimer),this._playTimeMonitorTimer=null)},e.prototype.startPlayTimeMonitor=function(){var o=this,a=(this._playingTime=0,this._stuckTime=0,this._stuckCount=0,performance.now()),s=0,l=0,c=!1,u=0;this.stopPlayTimeMonitor(),this._playTimeMonitorTimer=setInterval(function(){var e=o.paused()?c=!0:!o.tag,t=1e3*o.getCurrentTime(),r=performance.now(),i=r-a,n=(a=r,(t-s)/o.tag.playbackRate);s=t,n<0&&(e=!0),null!=(t=o._monitor)&&t.canplayReported||(e=!0),(e="hidden"===document.visibilityState?!0:e)||(c?c=!1:n<.8*i?(i<r-l&&(o._stuckCount++,u=r),r-u>=1e3*o.getOptions().waitingTimeout?o.stopPlayTimeMonitor():(l=r,o._playingTime+=n,o._stuckTime+=i-n)):o._playingTime+=i)},1e3)},e.prototype.setSpeed=function(e,t){void 0===t&&(t=!0),this.tag&&(this._originalPlaybackRate=e,this.tag.playbackRate=e,t)&&this.trigger(E.Private.PlaybackRateChanged,e)},e.prototype.play=function(e){return this.traceLog(N,"play::"+e),e&&this.trigger(E.Private.ManualPlay),this.tag&&(this.tag.ended||this._ended?this.replay():((this._options.preload||this.loaded)&&this.tag.src||this._initLoad(this._options.source),this.trigger(E.Private.Cover_Hide),this.tag.play())),this._isManualPlay=e||!1,this},e.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this.seek(this._getPlayStartTime()),this.tag.play(),this},e.prototype._getPlayStartTime=function(){return Math.max(0,this._getWatchTimeConfig().watchStartTime||0,this._loadByUrlStartTime||0)},e.prototype._getWatchTimeConfig=function(){var e=this.getOptions(),t=e.start,r=e.end,i=e.watchStartTime,e=e.watchEndTime,i=Number(i),e=Number(e);return(i||e)&&(h.hasValue(t)||h.hasValue(r))?(this._logOnce("Params.watchStartTime and Params.watchEndTime will be ignored when Params.start or Params.end is set","warn"),{watchStartTime:void 0,watchEndTime:void 0}):(e=e||void 0,(i=i||void 0)<0&&(this._logOnce("Params.watchStartTime is less than 0 ["+i+"], setting to undefined","warn"),i=void 0),e<0&&(this._logOnce("Params.watchEndTime is less than 0 ["+e+"], setting to undefined","warn"),e=void 0),e<=i&&(this._logOnce("Params.watchEndTime("+e+") is less than Params.watchStartTime("+i+"), setting to [undefined, "+e+"]","warn"),i=void 0),{watchStartTime:i,watchEndTime:e})},e.prototype._getSubVideoConfig=function(){var e=this.getOptions(),t=e.start,e=e.end,t=Number(t);return e=(e=Number(e))||void 0,(t=t||void 0)<0&&(this._logOnce("Params.start is less than 0 ["+t+"], setting to undefined","warn"),t=void 0),e<0&&(this._logOnce("Params.end is less than 0 ["+e+"], setting to undefined","warn"),e=void 0),e<=t&&(this._logOnce("Params.start("+t+") is greater than Params.end("+e+"), setting to [undefined, "+e+"]","warn"),t=void 0),{start:t,end:e}},e.prototype.pause=function(e){return this.tag&&this.tag.pause(),this._isManualPause=e||!1,this},e.prototype.stop=function(){return this.traceLog(N,"stop"),this.tag.setAttribute("src",null),this},e.prototype.paused=function(){if(this.tag)return!1!==this.tag.paused},e.prototype.getDuration=function(){var e=0,t=(this.tag&&(e=this.isPreview()&&this._vodDuration||this.tag.duration),this._getSubVideoConfig()),r=t.start,t=t.end;return e=r||t?Math.min(this.tag.duration,t||this.tag.duration)-Math.max(0,r||0):e},e.prototype.getDisplayDuration=function(){var e=0,t=(this.tag&&(e=this._vodDuration||this.getDuration()),this._getSubVideoConfig()),r=t.start,t=t.end;return e=r||t?Math.min(this.tag.duration,t||this.tag.duration)-Math.max(0,r||0):e},e.prototype.getCurrentTime=function(){return this.tag?this.tag.currentTime-this._posOffset:0},e.prototype.seek=function(e){var t;if(!Number.isNaN(e)&&(e=Number(e),e+=this._posOffset,this._canSeek(e)))return this._ended=!1,t=this.tag.duration,this._doSeek(this,e=t<=e?t:e),this},e.prototype._doSeek=R(function(e){var t=e[0],e=e[1];try{var r=t._originalPlaybackRate||t.tag.playbackRate;-1!==["16"].indexOf(p.IOS_VERSION)&&!t.oncePlayed||(t.tag.currentTime=e),t._seeking=!0,t.traceLog(N,"doSeek::"+e),p.IS_IE11&&setTimeout(function(){t.tag&&(t.tag.playbackRate=r)})}catch(e){console.log(e)}},100),e.prototype.traceLog=function(e,t){this.trigger(E.Private.TraceLog,"["+e+"]"+t)},e.prototype._loadByUrlInner=function(e,t,r){this.loadByUrl(e,t,r,!0)},e.prototype.loadByUrl=function(i,e,n,o){var r=this,t=(this.traceLog(N,"loadByUrl::"+i+"#"+e+"#"+n+"#"+o),this._monitor&&this._monitor._onPlayerUnderload(),this._monitor&&!o&&(this._monitor.reportPlayAbort("loadByUrl"),this._monitor.resetVV()),/\.m3u8|\.flv|\.mp4|artc\:\/\/|rtmp\:\/\//gi),a=((this._options.source||"").match(t)||[])[0]!==((i||"").match(t)||[])[0];if(this._options.liveShiftSource&&(a=!1),this._options.enableH266&&(a=!1),this._h265InfoReported=!1,this._probeInfo||(this._probeInfo={}),this._probeInfo.codecTag=void 0,!a&&(h.isMp4(i)||h.isFlv(i)||h.isHls(i)))return this._options.forceH265||this._options.forceH266||!this._options.enableH265&&!this._options.enableH266||p.IS_ANDROID&&p.dingTalk()&&!h.isFlv(i)?void s.call(this):void A(i,function(e){var e=h.getVideoTrack(e.tracks),t=(e||{}).codecTag||(null==(t=(e||{}).codec)?void 0:t.split(".")[0]);r._probeInfo.codecTag=t,e&&h.isH265Codec(t)?h.isFlv(i)||h.isHls(i)?(r._splayer||(a=!0),s.call(r)):h.shouldUseBasePlayer({codecTag:t,url:i},function(e){e?(r._splayer&&(a=!0),r._probeInfo.codecTag&&D.reportH265PlayInfo.call(r,{renderType:"native",codecTag:r._probeInfo.codecTag})):r._splayer||(a=!0),s.call(r)}):(e&&h.isH266Codec(t)?r._splayer||(a=!0):r._splayer&&(a=!0),s.call(r))},function(e){s.call(r)});function s(){var t,r=this;a&&this._splayer&&this.removeChild(this._licenseWatermark),a&&window.Aliplayer?(console.log("[RELOAD INSTANCE]"),this.traceLog(N,"reloadInstance::"+i),this._options.source=i,window.Aliplayer.reloadInstance(this._options,function(){},this)):(o||(this._urls=[]),this._monitor&&!o&&(this._monitor.reset(),this._monitor.startHeartBeat()),this._isError=!1,this._clearTimeout(),this.trigger(E.Private.Error_Hide),this._options.source=i,this._posOffset=this._getSubVideoConfig().start||0,this._monitor&&this._monitor.updateVideoInfo({video_id:0,album_id:0,source:i,from:this._options.from}),o||(this.trigger(E.Private.ChangeURL),this._vodRetryCount=0),e&&this._canSeek(e)?this._loadByUrlStartTime=e-this._posOffset:this._loadByUrlStartTime=0,this._options._autoplay=n,this.initPlay(n),(t=this._options.autoplay||n)&&this.trigger(E.Private.Cover_Hide),t?this.trigger(E.Player.Play):this.trigger(E.Player.Pause),this._options.isLive||!e&&0!=e||isNaN(e)||l.one(this.tag,E.Video.CanPlay,function(e){t&&(p.IS_IOS||p.IS_MAC_SAFARI)&&r._splayer&&r.play()}))}s.call(this)},e.prototype.setLogo=function(e){this._logoManager&&this._logoManager.dispose(),this._logoManager=new O({container:this.el(),video:this.tag,logo:e})},e.prototype.dispose=function(){this.__disposed||(this.__disposed=!0,this.trigger(E.Private.Dispose),this.tag.pause(),g.offAll(this),C.dispose.call(this),this._ratioAdapter&&(this._ratioAdapter.dispose(),this._ratioAdapter=null),this._logoManager&&(this._logoManager.dispose(),this._logoManager=null),this._antiRecord&&(this._antiRecord.dispose(),this._antiRecord=null),this._monitor&&(this._monitor.reportPlayAbort("dispose"),this._monitor.removeEvent(),this._monitor=null),this._autoPlayDelay&&this._autoPlayDelay.dispose(),this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._playingSlientPause&&(clearTimeout(this._playingSlientPause),this._playingSlientPause=null),this._waitingLoadedHandle&&(clearTimeout(this._waitingLoadedHandle),this._waitingLoadedHandle=null),this._ucSourceHandle&&(clearTimeout(this._ucSourceHandle),this._ucSourceHandle=null),this._readyStateTimer&&(clearInterval(this._readyStateTimer),this._readyStateTimer=null),this._vodRetryCountHandle&&(clearTimeout(this._vodRetryCountHandle),this._vodRetryCountHandle=null),this._waitingDelayLoadingShowHandle&&(clearTimeout(this._waitingDelayLoadingShowHandle),this._waitingDelayLoadingShowHandle=null),this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this._flvDumpTimer&&(clearTimeout(this._flvDumpTimer),this._flvDumpTimer=null),this.stopPlayTimeMonitor(),this._disposeService(),this._clearLiveErrorHandle(),this._el.innerHTML="",this.destroy(),this._releaseMediaElement(),this._options.recreatePlayer=null,this._options=null,this.isMutiLevel=!1,this._seis={},this._initPTS=0,this._clickPauseEnabled=!1,this._currentTimeForDisableSeek=0,this._posOffset=0,this._onceLogged=!1)},e.prototype._releaseMediaElement=function(){this.tag.removeAttribute("src"),this.tag.load(),this.tag=null},e.prototype.mute=function(e){return this._muteInner(),this._originalVolumn=this.tag.volume,e||(e=_.get("Volume_Mute"),this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})),this._setInnerVolume(0),this},e.prototype._muteInner=function(){this.tag.muted=!0,this.trigger(E.Private.VolumnChanged,-1)},e.prototype.unMute=function(e){return this._unMuteInner(),e||(e=_.get("Volume_UnMute"),this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})),this._setInnerVolume(this._originalVolumn||.5),this},e.prototype._unMuteInner=function(){this.tag.muted=!1,this.getOptions().mute&&(this.getOptions().mute=!1),this.trigger(E.Private.VolumnChanged,-2)},e.prototype.muted=function(){return this.tag&&this.tag.muted},e.prototype.getVolume=function(){return this.tag&&this.tag.volume},e.prototype.getOptions=function(){return this._options},e.prototype.setVolume=function(e,t){0!=(e=Math.min(1,Math.max(0,e)))?this._unMuteInner():0==e&&this._muteInner(),this._setInnerVolume(e);e=_.get("Curent_Volume")+"<span>"+(100*e).toFixed()+"%</span>";this._player.trigger(E.Private.Info_Show,{text:e,duration:1e3,align:"lb"})},e.prototype._setInnerVolume=function(e){this.tag.volume=e,this.trigger(E.Private.VolumnChanged,e)},e.prototype.hideProgress=function(){this.trigger(E.Private.HideProgress)},e.prototype.cancelHideProgress=function(){this.trigger(E.Private.CancelHideProgress)},e.prototype.setPlayerSize=function(e,t){this._el&&(this._el.style.width=e,this._el.style.height=t)},e.prototype.getBuffered=function(){return this.tag.buffered},e.prototype.setRotate=function(e){this.tag&&(this._rotate=e,this._setTransform(),this.log("ROTATE",{rotation:e}))},e.prototype.getRotate=function(e){return void 0===this._rotate?0:this._rotate},e.prototype.setImage=function(e){this.tag&&(this._image=e,this._setTransform(),this.log("IMAGE",{mirror:"horizon"==e?2:1,text:e}))},e.prototype.getImage=function(){return this._image},e.prototype.cancelImage=function(){this.tag&&(this._image="",this._setTransform(),this.log("IMAGE",{mirror:0}))},e.prototype.setCover=function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&e&&(t.style.backgroundImage="url("+e+")",this._options.cover=e,this._options.autoplay||this.trigger(E.Private.Cover_Show))},e.prototype.setTextTracks=function(e){this._options.textTracks=e,e=h.unqiueTextTracks(e||[]),this.trigger(E.Private.VttClearTracks),e&&e.length&&this.trigger(E.Private.TextTrackFounded,{from:"user",textTracks:e}),this.trigger(E.Private.CCReset)},e.prototype._setTransform=function(){this._transformProp||(this._transformProp=s.getTransformName(this.tag));var e=" translate(-50%, -50%)";this._rotate&&(e+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?e+=" scaleY(-1)":"horizon"==this._image&&(e+=" scaleX(-1)")),this.tag.style[this._transformProp]=e},e.prototype._startPlay=function(){this.tag.paused&&this.tag.play()},e.prototype._initPlayBehavior=function(e,t){var r=this;return!this._checkSupportVideoType()&&(h.validateSource(t)?(void 0===e&&(e=!1),this._created||(this._created=!0,this.trigger(E.Private.Created)),this.loaded||this.trigger(E.Player.Init),this._options.mute&&this.mute(!0),this.one(E.Video.CanPlay,function(){var e=r._getPlayStartTime();r.getCurrentTime()<e&&r.seek(e),r._loadByUrlStartTime=0,1!==r.tag.playbackRate&&r.setSpeed(r.tag.playbackRate)}),this._options.autoplay||this._options._autoplay||this._options.preload||e?(this._options._preload=!0,this._initLoad(t),!this._options.autoplay&&!this._options._autoplay||this._isError||this._startPlay()):this.trigger(E.Private.Play_Btn_Show),!0):((e={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=_.get("Error_Invalidate_Source"),this.trigger(E.Player.Error,e),!1))},e.prototype._isPreload=function(){return this._options.autoplay||this._options.preload||this._options._preload},e.prototype._initLoad=function(e){e&&(this._isPreload()&&!p.IS_MOBILE?this.trigger(E.Private.H5_Loading_Show):(this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Private.Play_Btn_Show)),this.tag.setAttribute("src",e),this.oncePlayed=!1,this.loaded=!0)},e.prototype._clearLiveErrorHandle=function(){this._liveErrorHandle&&(clearTimeout(this._liveErrorHandle),this._liveErrorHandle=null)},e.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(E.Player.OnM3u8Retry);var e=this._options,t=e.liveRetryInterval+e.liveRetryStep*this._liveRetryCount,r=this;this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this.traceLog(N,"reloadAndPlayForM3u8::#"+r._options.source+"#"+1e3*t),this._liveRetryTimer=setTimeout(function(){r._liveRetryCount++,r._loadByUrlInner(r._options.source,void 0,e.autoplay)},1e3*t)},e.prototype._checkSupportVideoType=function(){var e,t=this,r=this._options.source,i="";if(h.isRTMP(r)&&!this._options.useFlashPrism)i=_.get("Error_Not_Support_RTMP");else if(h.isDash(r)&&!h.isSupportMSE())i=_.get("Error_Not_Support_Mse_Dash");else if(!this.tag.canPlayType||!this._options.source||!p.IS_MOBILE)return"";return 0<r.indexOf("m3u8")?""!=this.tag.canPlayType("application/x-mpegURL")||h.isSupportHls()||(i=_.get("Error_Not_Support_M3U8_Text")):0<r.indexOf("mp4")?""==this.tag.canPlayType("video/mp4")&&(i=_.get("Error_Not_Support_MP4_Text")):(h.isRTMP(r)||h.isFlv(r))&&p.IS_MOBILE&&(this._options.useFlvPlugOnMobile?h.isSupportFlv()||(i=_.get("Error_Not_Support_Mse_Flv")):i=_.get("Error_Not_Support_Format_On_Mobile")),i&&(r=h.getFormat(r),e={mediaId:this._options.vid||"",error_code:d.ErrorCode.FormatNotSupport,error_msg:i+(r?"(format:"+r+")":"")},this.logError(e),e.display_msg=i,setTimeout(function(){t.trigger(E.Player.Error,e)})),i},e.prototype._handleClickPause_dbClickFullscreen=function(e){var t,r,i,n=this,o=null;!e.isLive&&e.clickPause&&(this._clickPauseEnabled=!0,t=p.IS_IOS?"touchstart":"click",l.on(this.tag,t,function(){n._clickPauseEnabled&&(e.dbClickFullscreen?(o&&clearTimeout(o),o=setTimeout(function(){n.paused()?n.play(!0):n.pause(!0),o=null},e.clickPauseDelay)):n.paused()?n.play(!0):n.pause(!0))})),e.dbClickFullscreen&&(r=function(){o&&(clearTimeout(o),o=null);var e=this.fullscreenService;e.getIsFullScreen()?e.cancelFullScreen():e.requestFullScreen(),this.trigger(E.Private.MarkerTextHide)},p.IS_IOS?(i=null,l.on(this.tag,"touchstart",function(){i=i?(r.call(n),clearTimeout(i),null):setTimeout(function(){i=null},e.dbClickFullscreenDelay)})):l.on(this.tag,"dblclick",function(){r.call(n)}))},e.prototype.getComponent=function(e){return this._lifeCycleManager.getComponent(e)},e.prototype.logError=function(e,t){(this._options.autoplay||this._options._autoplay)&&this._monitor&&this._monitor.reportStartPlay(),(e=e||{}).vt=this.getCurrentTime(),this.log(t?"ERRORRETRY":"ERROR",e)},e.prototype.log=function(e,t){var r=0,i=0;if(this._monitor)return this._options&&(r=this._options.vid||"0",i=this._options.from||"0"),this._monitor.updateVideoInfo({video_id:r,album_id:0,source:this._options.source,from:i}),this._monitor._log(e,t)},e.prototype.setSanpshotProperties=function(e,t,r){if(this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric.width=e,this._snapshotMatric.height=t,1<r)throw new Error("rate doesn't allow more than 1");this._snapshotMatric.rate=r},e.prototype.setSnapshotProperties=function(e,t,r){this.setSanpshotProperties(e,t,r)},e.prototype.takeSnapshot=function(){var e=document.createElement("canvas"),t=this.tag,r=t.videoWidth,i=t.videoHeight,n=this._getSanpshotMatric(),o=(e.width=n.width||r,e.height=n.height||i,this.getCurrentTime()),a=e.getContext("2d"),s=(a.save(),this.getImage()),s=("vertical"==s?(a.translate(0,e.height),a.scale(1,-1)):"horizon"==s&&(a.translate(e.width,0),a.scale(-1,1)),t),t=(this._splayer&&(s=2===this._splayer.renderType?this._el.querySelector("canvas"):this._el.querySelector("video")),a.drawImage(s,0,0,r,i),a.restore(),h.drawSnapshotText(a,this.getOptions()),""),s="";try{t=e.toDataURL("image/jpeg",n.rate||1)}catch(e){(s=e)&&s.message&&-1<s.message.indexOf("Tainted canvases")&&(s=new Error('\u622a\u56fe\u529f\u80fd\u9700\u8981\u8bbe\u7f6e\u64ad\u653e\u5668\u53c2\u6570 extraInfo: { crossOrigin:"anonymous" }'))}r="",i="";return t&&(a=(r=t).substr(r.indexOf(",")+1),i=f.toBinary(a)),{time:o,base64:r,binary:i,error:s}},e.prototype.getStatus=function(){return this._status||"init"},e.prototype.enterProgressMarker=function(){this._enteredProgressMarker=!0},e.prototype.isInProgressMarker=function(){return this._enteredProgressMarker},e.prototype.exitProgressMarker=function(){this._enteredProgressMarker=!1},e.prototype.setProgressMarkers=function(e){this.trigger(E.Private.ProgressMarkerChanged,e=e||[])},e.prototype.getProgressMarkers=function(){return this._progressMarkerService?this._progressMarkerService.progressMarkers:[]},e.prototype.setPreviewTime=function(e){this._options.playConfig||(this._options.playConfig={}),this._options.playConfig.PreviewTime=e},e.prototype.getPreviewTime=function(){var e=0;return e=this._options.playConfig?this._options.playConfig.PreviewTime:e},e.prototype.exceedPreviewTime=function(e){return this.isPreview()&&e>=this._options.playConfig.PreviewTime},e.prototype.isPreview=function(){var e=this._options.playConfig.PreviewTime,t=this._vodDuration||this.tag.duration;return 0<e&&e<t},e.prototype.getStats=function(){return new n(function(e){e()})},e.prototype.setTraceId=function(e){this._monitor&&this._monitor.updateTraceId(e)},e.prototype._canSeek=function(e){var t=this._getSubVideoConfig(),r=t.start,t=t.end;return r||t?!(e<r||t<e):!(!(r=this._getWatchTimeConfig()).watchStartTime||r.watchEndTime)||!(e<r.watchStartTime||e>r.watchEndTime)},e.prototype.setWatchTime=function(e,t){this._options.watchStartTime=e,this._options.watchEndTime=t,this.trigger(E.Private.UpdateWatchTime);e=this.getCurrentTime(),t=this._getWatchTimeConfig();e<t.watchStartTime?this.seek(t.watchStartTime):e>t.watchEndTime&&this.seek(t.watchEndTime)},e.prototype.setNextWatchTime=function(e,t){this._options.watchStartTime=e,this._options.watchEndTime=t},e.prototype.setStartEnd=function(e,t){this._options.start=e,this._options.end=t;e=this._getSubVideoConfig();this._posOffset=e.start||0,this.trigger(E.Player.DurationChange);t=this.getCurrentTime()+this._posOffset;t<e.start?this.seek(0):t>e.end&&this.seek(e.end-this._posOffset)},e.prototype.setNextStartEnd=function(e,t){this._options.start=e,this._options.end=t},e.prototype.getPlayTime=function(){return Math.round(this._playingTime/1e3)},e.prototype._getSanpshotMatric=function(){return this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric},e.prototype._autoplayFailedHandler=function(){var e,t=this;null!=(e=this.getOptions().autoplayPolicy)&&e.fallbackToMute&&!this.muted()?(this.mute(!0),(e=this.tag.play())?e.then(function(){t.trigger(E.Private.MutedAutoplay)}).catch(function(e){t.tag.paused?(console.warn("Muted autoplay failed",e),t.unMute(!0)):t.one("canplay",function(){t.trigger(E.Private.MutedAutoplay)})}):this.paused()?this.unMute(!0):this.trigger(E.Private.MutedAutoplay)):(this.oncePlayed=!1,this.trigger(E.Private.Play_Btn_Show),this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Player.AutoPlayPrevented),this.trigger(E.Player.AutoPlay,!1),this._options.cover&&this.trigger(E.Private.Cover_Show))},e.prototype._overrideNativePlay=function(){var r=this.tag.play,i=this;this.tag.play=function(){if(i._monitor&&i._monitor.reportStartPlay(),!i._options.source)return e={mediaId:i._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"},i._options.vid||i._options.mediaAuth?void 0:(e.display_msg=_.get("Error_Empty_Source"),void i.trigger(E.Player.Error,e));i.readyTime=(new Date).getTime();var e=r.apply(i.tag),t=(i.oncePlayed=!0,void 0!==e&&e.then(function(){i.trigger(E.Player.AutoPlay,!0)}).catch(function(e){!i.tag||!i.tag.paused||i._isError||i._options._autoplay||i._switchedLevel||i._autoplayFailedHandler()}),i._originalPlaybackRate||i.tag.playbackRate);return setTimeout(function(){i.tag&&(i.tag.playbackRate=t)}),e}},e.prototype._extraMultiSources=function(){var e=this._options.source;if(e&&-1<e.indexOf("{")&&-1<e.indexOf("}")){var t="";try{t=JSON.parse(e)}catch(e){console.error(e),console.error("\u5730\u5740json\u4e32\u683c\u5f0f\u4e0d\u5bf9")}var r,i=[];for(r in t){var n=d.QualityLevels[r];i.push({definition:r,Url:t[r],desc:n||r})}this._setupSourceList(i)}return i},e.prototype._setupSourceList=function(e){var t;(e=void 0===e?[]:e).length&&(this._currentPlayIndex=h.findSelectedStreamLevel(e,this._options.defaultDefinition),t=e[this._currentPlayIndex],this._urls=e,this._options.source=t.Url,this.trigger(E.Private.SourceLoaded,t))},e.prototype._createService=function(){if(P)for(var e=P.length,t=0;t<e;t++){var r=P[t],i=r.condition;void 0===i?i=!0:"function"==typeof i&&(i=i.call(this)),i&&(this[r.name]=new r.service(this))}},e.prototype._disposeService=function(){if(P)for(var e=P.length,t=0;t<e;t++){var r=this[P[t].name];void 0!==r&&r.dispose&&r.dispose()}},e.prototype._executeReadyCallback=function(){if(!this._options._readyCallbackCalled){this._options._readyCallbackCalled=!0;try{this._options.autoplay||this._options.preload||(this.trigger(E.Private.H5_Loading_Hide),this.trigger(E.Private.Play_Btn_Show)),this._options.readyCallback(this)}catch(e){console.log(e)}}},e.prototype._clearTimeout=function(){this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._decodeErrorNudgeTimer&&(clearTimeout(this._decodeErrorNudgeTimer),this._decodeErrorNudgeTimer=null),this._clearLiveErrorHandle()},e.prototype._reloadForVod=function(){var e,t,r;return this._originalSource||(this._originalSource=this._options.source),!!(this._vodRetryCount<this._options.vodRetry&&navigator.onLine)&&(e=this.getCurrentTime(),(t=this._originalSource).indexOf("auth_key=")<0&&(t=t&&0<t.indexOf("?")?t+"&_t="+(new Date).valueOf():t+"?_t="+(new Date).valueOf()),this._vodRetryCountHandle&&clearTimeout(this._vodRetryCountHandle),(r=this).traceLog(N,"reloadForVod::#"+t+"#"+100*this._vodRetryCount),this._vodRetryCountHandle=setTimeout(function(){r._loadByUrlInner(t,e,r.getOptions().autoplay)},100*this._vodRetryCount),this._vodRetryCount=this._vodRetryCount+1,!0)},e.prototype._getUserTextTracks=function(){var e=this._options.textTracks||[];(e=h.unqiueTextTracks(e)).length&&this.trigger(E.Private.TextTrackFounded,{from:"user",textTracks:e})},e.prototype._logOnce=function(e,t){this._onceLogged||(console[t||"log"](e),this._onceLogged=!0)},t.exports=e},{"../../commonui/autostreamselector":4,"../../feature/AntiRecord":9,"../../feature/autoplaydelay":10,"../../feature/keyboardControl":11,"../../feature/license":12,"../../feature/logoManager":13,"../../feature/ratioAdapter":14,"../../lang/index":18,"../../lib/codec-probe":20,"../../lib/constants":22,"../../lib/cookie":23,"../../lib/dom":25,"../../lib/event":26,"../../lib/object":35,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../lib/vttnext/index":46,"../../monitor/monitor":54,"../../ui/component":103,"../../ui/component/cover":107,"../../ui/component/license-watermark":112,"../../ui/component/progressmarker":116,"../../ui/component/text-track-display":127,"../../ui/component/util":132,"../../ui/exports":135,"../service/export":96,"../splayer/splayerinjector":102,"./event/eventmanager":62,"./event/eventtype":63,"./eventHandler/video/index":77,"./plugin/lifecyclemanager":89,"./x5play":91,"es6-promise":1}],87:[function(e,t,r){e=e("../../../lib/oo").extend({});t.exports=e},{"../../../lib/oo":36}],88:[function(e,t,r){t.exports={createEl:"createEl",created:"created",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",timeUpdate:"timeupdate",error:"error",ended:"ended",dispose:"dispose",markerDotOver:"markerDotOver",markerDotOut:"markerDotOut"}},{}],89:[function(e,t,r){function i(i){(this._player=i)._status="init",this.components=[];var e=i.getOptions().components;if(e&&s.isArray(e)&&0<e.length)for(var t=0;t<e.length;t++){var r=e[t];if(!r)return void console.log("The "+t+" custome component is "+r);var n=void 0===r.type?r:r.type,o=void 0===r.args?[]:r.args,r=void 0===r.name?"":r.name;if(!n)return void console.log(r+" compenent is "+n);o=o&&0<o.length?[].concat.call([n],o):[],n=new(Function.prototype.bind.apply(n,o)),o=n[c.createEl];o&&"function"==typeof o&&o.call(n,i.el(),i),this.components.push({name:r,obj:n})}var a=this;i.on(l.Private.LifeCycleChanged,function(e){var t=e.paramData,r=t.type;r===l.Video.CanPlayThrough&&a._player.trigger(l.Player.TimeUpdate,t.data.target.currentTime),r===l.Video.Ended&&a._player.trigger(l.Player.TimeUpdate,a._player.getDuration()),0!=a.components.length&&u.call(a,i,e)})}var s=e("../../../lib/object"),l=e("../event/eventtype"),c=e("./lifecycle"),n=e("./status"),u=(i.prototype.getComponent=function(e){var t=null,r=this.components.length;if(e)for(var i=0;i<r;i++)if(this.components[i].name==e){t=this.components[i].obj;break}return t},function(e,t){if(t){for(var t=t.paramData,r=t.type,i=t.data,n=((t=r)!=l.Video.LoadStart&&t!=l.Video.LoadedData&&t!=l.Video.LoadedMetadata||(r=c.loading),p(e,r),this.components.length),o=0;o<n;o++){var a=this.components[o].obj,s=a[r];s&&"function"==typeof s&&s.call(a,e,i)}r==l.Private.Dispose&&(this.components=[])}}),p=function(e,t){void 0===n[t]||t==n.pause&&(e._status==n.error||e._status==n.ended)||t==n.ready&&e._status==n.playing||(e._status=t)};t.exports=i},{"../../../lib/object":35,"../event/eventtype":63,"./lifecycle":88,"./status":90}],90:[function(e,t,r){t.exports={init:"init",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",error:"error",ended:"ended"}},{}],91:[function(e,t,r){function i(e,t){var r=e.el().style.height,i=e.el().style.width,n=(e.originalLayout={container:{height:r,width:i},video:{width:e.tag.style.width,height:e.tag.style.height}},document.body.clientHeight*(window.devicePixelRatio||1)+"px"),o=document.body.clientWidth+"px";width=t?(height=n,o):(height=r.indexOf("%")?r:r+"px",i.indexOf("%")?i:i+"px"),e.tag.style.width=o,e.tag.style.height=n,e.el().style.height=t?n:height}var n=e("../../lib/ua"),o=e("../../lib/dom");t.exports.isAndroidX5=function(){return n.os.android&&n.is_X5||n.dingTalk()},t.exports.adaptX5Play=function(r){n.os.android&&n.is_X5&&("h5"==r._options.x5_type&&(r.tag.setAttribute("x5-video-player-type",r._options.x5_type),window.onresize=function(){var e,t;i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),"landscape"==(e=r)._x5VideoOrientation&&(e._originalTagWidth=e.tag.style.width,e._originalTagHeight=e.tag.style.height,(t=document.querySelector("#"+e.id()+" .prism-controlbar"))&&parseFloat(t.offsetHeight),e.tag.style.height="100%",e.tag.style.width=window.screen.width+"px")},r.tag.addEventListener("x5videoenterfullscreen",function(){i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),r.trigger("x5requestFullScreen")}),r.tag.addEventListener("x5videoexitfullscreen",function(){var e,t;(e=r).originalLayout&&(t=e.originalLayout,e.el().style.height=t.container.height,e.el().style.width=t.container.width,e.tag.style.width=t.video.width,e.tag.style.height=t.video.height),r.trigger("x5cancelFullScreen"),r.fullscreenService.getIsFullScreen()&&r.fullscreenService.cancelFullScreen()}),r.on("requestFullScreen",function(){"top"==r._options.x5_video_position&&o.removeClass(r.tag,"x5-top-left"),n.os.android&&n.is_X5&&r._options.x5LandscapeAsFullScreen&&(r.tag.setAttribute("x5-video-orientation","landscape"),r._x5VideoOrientation="landscape")}),r.on("cancelFullScreen",function(){"top"==r._options.x5_video_position&&o.addClass(r.tag,"x5-top-left"),n.os.android&&n.is_X5&&r._options.x5LandscapeAsFullScreen&&(r.tag.setAttribute("x5-video-orientation","portrait"),i(r,r._options.x5_fullscreen||"center"==r._options.x5_video_position),r._x5VideoOrientation="portrait")})),void 0!==r._options.x5_fullscreen&&r._options.x5_fullscreen&&(r.tag.setAttribute("x5-video-player-fullscreen",r._options.x5_fullscreen),o.addClass(r.tag,"x5-full-screen")),"top"==r._options.x5_video_position&&o.addClass(r.tag,"x5-top-left"),void 0!==r._options.x5_orientation)&&r.tag.setAttribute("x5-video-orientation",r._options.x5_orientation)}},{"../../lib/dom":25,"../../lib/ua":39}],92:[function(e,t,r){!function(T){!function(){var l=e("../../lib/io"),_=e("../../config"),y=e("../../lib/constants"),p=e("../../lib/util"),d=e("../../lib/playerutil"),h=e("../../lib/ua"),g=e("../../lib/data"),v=e("../../lang/index"),m=e("../base/event/eventtype"),S="flvinjector.js";t.exports.inject=function(e,t,r,i,c,n){var u,o=i.source,a=i.optionFormat;function s(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyFlv(),this._superPt&&(t.prototype.play=this._superPt.play,t.prototype.pause=this._superPt.pause,t.prototype.initPlay=this._superPt.initPlay,t.prototype.seek=this._superPt.seek,t.prototype.canSeekable=this._superPt.canSeekable))}function f(e){try{for(var t=e.buffered.length,r="Len:"+t+";",i=0;i<t;i++)r+="["+(i+1)+"]"+e.buffered.start(i)+"~"+e.buffered.end(i);return r}catch(e){}}(n||(i=o,n=a,!e._flv&&d.isFlv(i,n)&&d.isSupportFlv()))&&(e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,t.prototype._checkFlvReady=function(){if(null==this._flv)throw new Error("please invoke this method after ready event")},e._isFlv=!0,e._flv=null,e._isLoadedFlv=!1,e._dumpBuffer=null,t.prototype.play=function(e){this.traceLog(S,"play::"+e),e&&this.trigger(m.Private.ManualPlay),this._checkFlvReady(),this._isManualPlay=e||!1;return this.trigger(m.Private.Cover_Hide),this._options.isLive&&e?this._loadByUrlInner(this._options.source,0,e):this.tag.ended||this._ended?this.replay():(0==this._seeking&&(e=0,this.tag.ended||this._ended||0==(e=this.getCurrentTime())&&(e=-1),-1!=e)&&this.seek(e),this.tag.paused&&(this._hasLoaded||(this._hasLoaded=!0,this._flv.load()),this._flv.play())),this},t.prototype.seek=function(e){this._checkFlvReady(),this._seeking=!0;var t=this.getDuration();t<=(e=Math.floor(e))&&(e=t);try{this._flv.currentTime=e}catch(e){console.log(e)}return this},t.prototype.pause=function(e){return this._checkFlvReady(),this._isManualPause=e||!1,this._flv.pause(),this},t.prototype.getProgramDateTime=function(){var e;return this._checkFlvReady(),this._metadata?(e=(e=this._flv.getFirstSample())&&e.pts?e.pts:0,console.log("\u63a8\u6d41\u65f6\u95f4\uff1a"+this._metadata.NtpTime),console.log("\u9996\u5e27PTS\uff1a"+e),this._metadata.NtpTime+e):""},t.prototype.initPlay=function(e){var t,r,i;function n(n,e){if(!n._disposed){var t=!n._flv,r=(n._destroyFlv(),n._options.isLive);if(r)if(!flvjs.getFeatureList().networkStreamIO)return(s={error_code:y.ErrorCode.FormatNotSupport,error_msg:v.get("Error_Not_Support_Mse_Flv")+"|streamIO(format:flv)"}).display_msg=s.error_msg,void n.trigger(m.Player.Error,s);var i,o={isLive:r,enableWorker:n._options.enableWorker,accurateSeek:!0},a=(h.IS_IE11&&(o.enableWorker=!1),{type:"flv",isLive:r,url:n._options.source});for(i in r?(o.enableStashBuffer=n._options.enableStashBufferForFlv,o.stashInitialSize=n._options.stashInitialSizeForFlv,o.autoCleanupSourceBuffer=!1):o.lazyLoadMaxDuration=600,o.statisticsInfoReportInterval=1e3,n._options.isLive&&(n._options.flvFrameChasing&&(o.flvFrameChasing=n._options.flvFrameChasing),n._options.chasingFirstParagraph&&(o.chasingFirstParagraph=n._options.chasingFirstParagraph),n._options.chasingSecondParagraph&&(o.chasingSecondParagraph=n._options.chasingSecondParagraph),n._options.chasingFirstSpeed&&(o.chasingFirstSpeed=n._options.chasingFirstSpeed),n._options.chasingSecondSpeed)&&(o.chasingSecondSpeed=n._options.chasingSecondSpeed),n._options.flvOption)"cors"==i||"hasAudio"==i||"withCredentials"==i||"hasVideo"==i||"type"==i?a[i]=n._options.flvOption[i]:o[i]=n._options.flvOption[i];flvjs.LoggingControl.enableAll=n._options.debug,n._flv=flvjs.createPlayer(a,o),u(n,n._flv),n._flv.on(flvjs.Events.DUMP_BUFFER,function(e){var t,r,i;n._options.disableDumpBuffer||0===n._liveRetryCount&&0===n._vodRetryCount&&0===n._nudgeCount&&"string"!=typeof n._dumpBuffer&&(n._flvDumpTimer||(n._flvDumpTimer=setTimeout(function(){n._reportDumpBuffer&&n._reportDumpBuffer()},5e3)),e=new Uint8Array(e),n._dumpBuffer?n._dumpBuffer=(t=n._dumpBuffer,r=e,(i=new Uint8Array(t.length+r.length)).set(t),i.set(r,t.length),i):n._dumpBuffer=e)});var s,l=p.throttle(function(e){n.traceLog(S,"dts_adjustment::"+e.from+"->"+e.to)},1e3);n._flv.on(flvjs.Events.DTS_ADJUSTMENT,function(e){l(e)}),n._flv.on(flvjs.Events.MEDIA_INFO,function(e){n._metadata=e.metadata}),n._flv.on(flvjs.Events.METADATA_ARRIVED,function(e){e&&e.dataContent&&e.dataContent.length&&n.trigger(m.Private.SeiFrame,{dataContent:e.dataContent,pts:e.pts})}),n._flv.on(flvjs.Events.STATISTICS_INFO,function(e){n.trigger(m.Private.StatisticsInfo,e)}),n._flv.attachMediaElement(n.tag),n._initPlayBehavior(e)&&((n._options.preload||n._options.autoplay)&&(n._hasLoaded=!0,n._flv.load()),n._options.autoplay&&!n.tag.paused&&n._flv.play(),c&&c(n._flv),t)&&(n._executeReadyCallback(),n._urls)&&0<n._urls.length&&(n._currentPlayIndex=d.findSelectedStreamLevel(n._urls,n._options.defaultDefinition),s=n._urls[n._currentPlayIndex],n._options.source=s.Url,n.trigger(m.Private.SourceLoaded,s))}}h.browser.safari&&this.trigger(m.Private.Snapshot_Hide),p.contentProtocolMixed(o,"",a)?((t={mediaId:this._options.vid||"",error_code:y.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=v.get("Request_Block_Text"),this.trigger(m.Player.Error,t)):(r=this)._isLoadedFlv&&"undefined"!=typeof Hls?setTimeout(function(){n(r,e)},1e3):(this.trigger(m.Private.H5_Loading_Show),i=performance.now(),function(e,t,r){var i="aliplayer-flv-min.js",n="",n=_.domain?"https://"+_.domain+_.path+_.h5Version+"/flv/"+i:"/build/flv/"+i,o=(this._options.assetPrefix&&(n=this._options.assetPrefix+"/flv/"+i),JSON.parse(T)&&(n="http://localhost:8000/dist/aliplayer-flv.js"),this);l.loadJS(n,function(){e.apply(o)},function(){r&&r()})}.call(r,function(){this.traceLog(S,"got js#"+parseInt(performance.now()-i)),this._isLoadedFlv=!0,n(this,e)},this._options.debug,function(){var e={mediaId:r._options.vid||"",mediaAuth:r._options.mediaAuth||"",error_code:y.ErrorCode.ModuleLoadError,error_msg:"flv module load error."};r.trigger(m.Player.Error,e)}))},t.prototype._reportDumpBuffer=function(){var e,t;this.__flvDumpTimer&&clearTimeout(this.__flvDumpTimer),this.__flvDumpTimer=null,this._dumpBuffer&&"string"!=typeof this._dumpBuffer&&(1048576<this._dumpBuffer.byteLength&&(this._dumpBuffer=this._dumpBuffer.slice(0,1048576)),e=this._dumpBuffer,this._dumpBuffer="REPORTED",performance.now(),e=p.arrayBufferToB64(e),t=g.guid(),this.traceLog(S,"dump::"+t),this.trigger(m.Private.DumpBuffer,{id:t,data:e}))},t.prototype._destroyFlv=function(){try{this._flv&&(this._flv.pause(),this._flv.destroy())}catch(e){console.log(e)}this.loaded=!1,this._hasLoaded=!1,this._flv=null,this._flvDumpTimer&&(clearTimeout(this._flvDumpTimer),this._flvDumpTimer=null),this._dumpBuffer=null},Object.defineProperty(t.prototype,"dispose",{enumerable:!0,configurable:!0,get:function(){return s},set:function(){return s}}),t.prototype.canSeekable=function(e){var t=this._flv.mediaInfo;return!(!this._flv._isTimepointBuffered(e)&&t&&!t.hasKeyframesIndex)},t.prototype._getbwEstimator=function(){var e;return 1024*(null==(e=this._flv)||null==(e=e.statisticsInfo)?void 0:e.speed)*8},u=function(p,d){var h=!1;d.on(flvjs.Events.ERROR,function(e,t,r){var i,n,o,a,s="flvjs-error::"+e+"#"+t+"#"+r.code+"#"+r.msg,l="BodyStreamBuffer was aborted"===r.msg&&d._config.lazyLoad;if(l){s+="#Maximum buffering duration exceeded, suspend transmuxing task";try{var c=d._msectl._sourceBuffers.video,u=d._msectl._sourceBuffers.audio;s+="#Video buffer:"+f(c)+"#Audio buffer:"+f(u)}catch(e){}}p.traceLog(S,s),p._reportDumpBuffer&&p._reportDumpBuffer(),e===flvjs.ErrorTypes.BUFFER_FULL||(p._flv.unload(),l)||p._isError||(i=y.ErrorCode.OtherError,n=v.get("Error_Play_Text"),o=null,t==flvjs.ErrorDetails.NETWORK_EXCEPTION?!(c=p.getOptions().source)||0!=c.toLowerCase().indexOf("http://")&&0!=c.toLowerCase().indexOf("https://")?(i=y.ErrorCode.InvalidSourceURL,n=v.get("Error_Invalidate_Source_Widthout_Protocal"),h=!0):n=navigator.onLine?(i=y.ErrorCode.RequestDataError,v.get("Maybe_Cors_Error")):(i=y.ErrorCode.NetworkError,v.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_STATUS_CODE_INVALID?"404"==r.code?(i=y.ErrorCode.NotFoundSourceURL,n=v.get("Error_Not_Found"),o=v.get("Tip_Err_Not_found")):"403"==r.code?(i=y.ErrorCode.AuthKeyExpired,n=v.get("Error_AuthKey_Text"),h=!0):(i=y.ErrorCode.NetworkError,n=v.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_TIMEOUT?(i=y.ErrorCode.LoadingTimeout,n=v.get("Error_Waiting_Timeout_Text")):t==flvjs.ErrorDetails.MEDIA_FORMAT_UNSUPPORTED||t==flvjs.ErrorDetails.MEDIA_CODEC_UNSUPPORTED?(i=y.ErrorCode.FormatNotSupport,n=v.get("Error_H5_Not_Support_Text")+"|codec(format:flv)",h=!0):t===flvjs.ErrorDetails.MEDIA_MSE_ERROR&&(u=p.tag.error)&&(i=y.VideoErrorCode[u.code],n=u.code+" || "+u.message),s=function(){var e;setTimeout(function(){p.trigger(m.Private.Play_Btn_Hide)}),p.checkOnline()&&(e={mediaId:p._options&&p._options.vid?p._options.vid:"",error_code:i,error_msg:n,diagnosis_info:o},p.logError(e),e.display_msg=n,_.cityBrain&&(p.flv=null),p.trigger(m.Player.Error,e))},p._options&&p._options.isLive&&!h?(a=p._options).liveRetry>p._liveRetryCount?(0==p._liveRetryCount&&p.trigger(m.Player.OnM3u8Retry),e=a.liveRetryInterval+a.liveRetryStep*p._liveRetryCount,p._liveRetryCount++,setTimeout(function(){p._isError||p._liveRetryTimer||p._loadByUrlInner(a.source)},1e3*e)):(p.trigger(m.Player.LiveStreamStop),s()):t===flvjs.ErrorDetails.MEDIA_MSE_ERROR&&11===r.code&&p.getCurrentTime()<p.getDuration()?(p._flv.unload(),p._flv.load(),p._flv.detachMediaElement(),p._flv.attachMediaElement(p.tag)):h?(p._flv.unload(),s()):p._reloadForVod()||s())})})}}.call(this)}.call(this,"false")},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/data":24,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../base/event/eventtype":63}],93:[function(e,t,r){!function(k){!function(){function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}var y,d=e("../../lib/object"),h=e("../../lib/io"),f=e("../../config"),g=e("../../lib/constants"),_=e("../../lib/util"),v=e("../../lib/playerutil"),m=e("../../lib/ua"),S=e("../../lang/index"),T=e("../base/event/eventtype"),b="hlsinjector.js";function E(){this&&this._hls&&(this._hls.stopLoad(),this._hls.destroy(),this._hls=null)}function w(e){this.trigger(T.Private.Timeline,{name:e,ts:performance.now()})}function P(e,t){return t<e.maxNumRetry}var x={};function C(e,t){t.frag.level===this.currentLevel&&(this.off(y.Events.FRAG_BUFFERED,C),this.media.currentTime=this.media.currentTime+.01)}t.exports.inject=function(e,t,r,i,n,o){e._hls2=!1;var a,s,l,c=i.source,u=i.optionFormat;((n||"").length||o||(o=c,a=i.useHlsPluginForSafari,i=i.useHlsPlugOnMobile,s=u,!e._hls&&v.isHls(o,s)&&(!v.canPlayHls()||v.isSafariUsedHlsPlugin(a)||i&&v.isUsedHlsPluginOnMobile())))&&(e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,e._isHls=!0,e._hls=null,e._isLoadedHls=!1,e._stopLoadAsPaused=!0,e._yekced_saved=n,x.seek||(x.seek=r.prototype.seek),x.dispose||(x.dispose=r.prototype.dispose),e.initPlay=function(r){var e,i;function n(s,t){if(!s._disposed){if(s._antiRecord)if(console.log("Manual check before load source"),s._antiRecord.check())return;var e,r=!s._hls,i=(s._destroyHls(),{xhrSetup:function(e,t){e.withCredentials=s._options.withCredentials||!1}}),n=(s._hls2||(n=s._options.loadingTimeOut||s._options.hlsLoadingTimeOut)&&(i.manifestLoadingTimeOut=n,i.levelLoadingTimeOut=n,i.fragLoadingTimeOut=n),s._hls2&&(i.manifestLoadPolicy=p({},y.DefaultConfig.manifestLoadPolicy),i.playlistLoadPolicy=p({},y.DefaultConfig.playlistLoadPolicy),i.fragLoadPolicy=p({},y.DefaultConfig.fragLoadPolicy),n=s._options.isLive?s._options.liveRetry:s._options.vodRetry,i.manifestLoadPolicy.default.errorRetry.maxNumRetry=n,s._options.isLive&&(i.manifestLoadPolicy.default.errorRetry.shouldRetry=P),i.manifestLoadPolicy.default.timeoutRetry.maxNumRetry=n,i.playlistLoadPolicy.default.errorRetry.maxNumRetry=n,s._options.isLive&&(i.playlistLoadPolicy.default.errorRetry.shouldRetry=P),i.playlistLoadPolicy.default.timeoutRetry.maxNumRetry=n,i.fragLoadPolicy.default.maxLoadTimeMs=2e4,i.fragLoadPolicy.default.errorRetry.shouldRetry=P,(n=s._options.hlsOption||{}).manifestLoadPolicy&&(i.manifestLoadPolicy=d.deepMerge(i.manifestLoadPolicy,n.manifestLoadPolicy),delete n.manifestLoadPolicy),n.playlistLoadPolicy&&(i.playlistLoadPolicy=d.deepMerge(i.playlistLoadPolicy,n.playlistLoadPolicy),delete n.playlistLoadPolicy),n.fragLoadPolicy&&(i.fragLoadPolicy=d.deepMerge(i.fragLoadPolicy,n.fragLoadPolicy),delete n.fragLoadPolicy),s._options.isLive)&&!m.IS_IE11&&(i.backBufferLength=12,i.liveDurationInfinity=!0),s._options.isLive&&(s._options.hlsFrameChasing&&(i.hlsFrameChasing=s._options.hlsFrameChasing),s._options.chasingFirstParagraph&&(i.chasingFirstParagraph=s._options.chasingFirstParagraph),s._options.chasingSecondParagraph&&(i.chasingSecondParagraph=s._options.chasingSecondParagraph),s._options.chasingFirstSpeed&&(i.chasingFirstSpeed=s._options.chasingFirstSpeed),s._options.chasingSecondSpeed)&&(i.chasingSecondSpeed=s._options.chasingSecondSpeed),s._options.defaultBandwidth&&(i.defaultBandwidth=s._options.defaultBandwidth),s._options.hlsBandWidthUpCacheTime&&(i.abrBandWidthUpCacheTime=s._options.hlsBandWidthUpCacheTime),s._options.seamlessHandover&&(i.seamlessHandover=s._options.seamlessHandover),s._options.liveSyncDurationCount&&(i.liveSyncDurationCount=s._options.liveSyncDurationCount),s._options.nudgeMaxRetry&&(i.nudgeMaxRetry=s._options.nudgeMaxRetry),s._options.maxMaxBufferLength&&(i.maxMaxBufferLength=s._options.maxMaxBufferLength),s._options.maxBufferSize&&(i.maxBufferSize=s._options.maxBufferSize),s._options.fragLoadingRetryDelay&&(i.fragLoadingRetryDelay=s._options.fragLoadingRetryDelay),s._options.maxBufferLength&&(i.maxBufferLength=s._options.maxBufferLength),s._options.accessKeyId&&(i.accessKeyId=s._options.accessKeyId),s._options.accessKeySecret&&(i.accessKeySecret=s._options.accessKeySecret),s._options.securityToken&&(i.securityToken=s._options.securityToken),s._options.app&&(i.app=s._options.app),s._options.stream&&(i.stream=s._options.stream),s._options.domain&&(i.domain=s._options.domain),s._options.regionId&&(i.regionId=s._options.regionId),s._yekced_saved&&(i._yekcedxx=s._yekced_saved,i._vpk=s._yekced_saved),i.enableWorker=s._options.enableWorker,i.debug=s._options.debug,s._stopLoadAsPaused=s._options.hlsOption.stopLoadAsPaused,s._getPlayStartTime()+s._posOffset);for(e in n&&(i.startPosition=n,console.log("hls.js startPosition => ",n)),s._options.hlsOption)i[e]=s._options.hlsOption[e];m.IS_IE11&&(i.enableWorker=!1),s._hls=new y(i),l(s,s._hls),s._loadSourced=!1,s._hls.attachMedia(s.tag),s._hls.on(y.Events.INIT_PTS_FOUND,function(e,t){s._initPTS=t.initPTS}),s._hls.on(y.Events.FRAG_LOADING,function(){w.call(s,"frag_s")}),s._hls.on(y.Events.FRAG_LOADED,function(){w.call(s,"frag_f")}),s._hls.on(y.Events.FRAG_PARSED,function(){w.call(s,"frag_parsed")}),s._hls.on(y.Events.FRAG_PARSED,function(e,t){var t=(null==t?void 0:t.frag)||{},r=t.elementaryStreams||{},i="Frag(sn"+t.sn+"): "+(null==(i=t.startPTS)?void 0:i.toFixed(3))+" -> "+(null==(i=t.endPTS)?void 0:i.toFixed(3))+"(v:"+(null==(i=r.video)||null==(i=i.startPTS)?void 0:i.toFixed(3))+"/"+(null==(i=r.video)||null==(i=i.endPTS)?void 0:i.toFixed(3))+";a:"+(null==(i=r.audio)||null==(i=i.startPTS)?void 0:i.toFixed(3))+"/"+(null==(i=r.audio)||null==(i=i.endPTS)?void 0:i.toFixed(3))+"); Duration: "+(null==(r=t.duration)?void 0:r.toFixed(3));s.trackLogFragBuffer&&(s.trackLogFragBuffer.push(i),10<s.trackLogFragBuffer.length)&&s.trackLogFragBuffer.shift()}),s._hls.on(y.Events.FRAG_PARSING_USERDATA,function(e,t){t&&t.dataContent&&t.dataContent.length?s.trigger(T.Private.SeiFrame,{dataContent:t.dataContent,pts:t.pts}):t.samples.forEach(function(e){s.trigger(T.Private.SeiFrame,{dataContent:e.userDataBytes,dataContentString:e.userData,pts:e.pts,uuid:e.uuid})})}),s._hls.on(y.Events.MEDIA_ATTACHED,function(){var e;s._hls.on(y.Events.MANIFEST_PARSED,function(){s._initPlayBehavior(t||s._loadSourced)}),s._hls.on(y.Events.AUDIO_TRACKS_UPDATED,function(e,t){s.trigger(T.Player.AudioTrackUpdated,t)}),s._hls.on(y.Events.MANIFEST_LOADED,function(e,t){s.trigger(T.Player.LevelsLoaded,t)}),s._hls.on(y.Events.LEVEL_SWITCHED,function(e,t){if(s._qualityService){for(var r=s._hls.levels[t.level].url,i=s._qualityService.levels,n="",o="",a=0;a<i.length;a++)if(i[a].Url==r){o=i[a].desc,n=i[a].bitrate;break}(o||n)&&s.trigger(T.Private.QualityChange,{levelSwitch:!0,url:r,bitrate:n,desc:o})}}),s._hls.on(y.Events.AUDIO_TRACK_SWITCH,function(e,t){s.trigger(T.Player.AudioTrackSwitch,t),setTimeout(function(){s.trigger(T.Player.AudioTrackSwitched,t)},1e3)}),(s._options.autoplay||s._options.preload||t)&&(s._loadSourced=!0,s._levels&&1<s._levels.length?(s._hls.trigger(y.Events.MANIFEST_LOADING,{}),s._hls.trigger(y.Events.MANIFEST_LOADED,{levels:s._levels})):s._hls.loadSource(s._options.source||"__INVALID__")),r?(s._executeReadyCallback(),s._urls&&0<s._urls.length&&(s._currentPlayIndex=v.findSelectedStreamLevel(s._urls,s._options.defaultDefinition),e=s._urls[s._currentPlayIndex],s._options.source=e.Url,s.trigger(T.Private.SourceLoaded,e))):s.trigger(T.Private.H5_Loading_Show)})}}this.trigger(T.Private.H5_Loading_Show),_.contentProtocolMixed(c,"",u)?(e=this.getOptions()||{},(e={mediaId:e.vid||"",mediaAuth:e.mediaAuth||"",error_code:g.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=S.get("Request_Block_Text"),this.trigger(T.Player.Error,e)):(i=this)._isLoadedHls&&void 0!==y?n(this,r):(this.trigger(T.Private.H5_Loading_Show),this._getHlsVersion(function(e){var t=performance.now();!function(e,t,r){var i="aliplayer-hls-min.js",n=((t=t||{}).hls2&&(i="aliplayer-hls2-min.js"),t.enableHlsH265&&(i="aliplayer-hls2-hevc-min.js"),""),n=f.domain?"https://"+f.domain+f.path+f.h5Version+"/hls/"+i:"/build/hls/"+i,o=(t.assetPrefix&&(n=t.assetPrefix+"/hls/"+i),JSON.parse(k)&&(n="http://localhost:8080/dist/aliplayer-hls2.js"),w.call(this,"mod_hls_s"),this);h.loadJS(n,function(){w.call(o,"mod_hls_f"),y=window.AliHls||window.Hls,e.apply(o)},function(){r&&r()})}.call(i,function(){i.traceLog(b,"got js#"+parseInt(performance.now()-t)),i._isLoadedHls=!0,n(i,r)},{debug:i._options.debug,hls2:i._hls2,assetPrefix:i._options.assetPrefix,enableHlsH265:i._options.enableHlsH265},function(){var e={mediaId:i._options.vid||"",mediaAuth:i._options.mediaAuth||"",error_code:g.ErrorCode.ModuleLoadError,error_msg:"hls module load error."};i.trigger(T.Player.Error,e)})}),this.on("error",E))}.bind(e),e.seek=function(e){this._checkHlsReady();try{x.seek.call(this,e),this.tag.paused&&this._stopLoadAsPaused&&this._hls.startLoad(e)}catch(e){console.log(e)}return this}.bind(e),e.pause=function(e){this.tag&&(this._checkHlsReady(),this.tag.pause(),this._stopLoadAsPaused)&&this._hls.stopLoad();return this._isManualPause=e||!1,this}.bind(e),e.play=function(e){this.traceLog(b,"play::"+e),e&&this.trigger(T.Private.ManualPlay);this._checkHlsReady(),this._isManualPlay=e||!1,this.trigger(T.Private.Cover_Hide),this._options.autoplay||this._options.preload||this._loadSourced||(this._loadSourced=!0,this._options._autoplay=!0,this._hls.loadSource(this._options.source));this.tag.ended||this._ended?this.replay():this.tag.paused&&(this.tag.play(),this._stopLoadAsPaused)&&(e=this.getCurrentTime(),this._hls.startLoad(e));return this}.bind(e),e.stop=function(){return this._checkHlsReady(),this.tag.setAttribute("src",null),this._hls.stopLoad(),this}.bind(e),e.dispose=function(){this._disposed||(this._disposed=!0,x.dispose.call(this),this._destroyHls())}.bind(e),e.getCurrentPDT=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";if(this._hls.playingDate)return this._hls.playingDate.getTime();var e,t=this._hls.streamController.fragPlaying||{},r=t.pdt;return r?(t=1e3*t.startPTS,e=1e3*this.getCurrentTime(),r+(e-t)):0}.bind(e),e.getProgramDateTime=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";var e=this._hls.currentLevel,e=this._hls.levels[e].details;if(e){e=e.programDateTime;if(e)return new Date(e).valueOf()}return 0}.bind(e),e._checkHlsReady=function(){if(null==this._hls)throw new Error("please invoke this method after ready event")}.bind(e),e._getHlsVersion=function(e){!0===this._options.useHls2?(this._hls2=!0,e()):!1===this._options.useHls2&&e()}.bind(e),e._getbwEstimator=function(){var e=NaN;{var t;this._hls&&(t=this._hls.abrController._bwEstimator,e=t?t.getEstimate():this._hls.bandwidthEstimate)}return e}.bind(e),e._destroyHls=function(){this._hls&&this._hls.destroy();this._hls=null,this.trackLogFragBuffer=[]}.bind(e),e._switchLevel=function(e){for(var t=this,r=(this.traceLog(b,"switchLevel::"+e),this.trigger(T.Player.LevelSwitch),this._hls.levels),i=!0,n=0;n<r.length;n++)if(r[n].url==e||r[n].url[0]==e){i=!1,this._hls2&&this._options.seamlessHandover?(this._hls.loadLevel=n,console.log("Seamlessly set nextLevel to",n)):(this._hls.on(y.Events.FRAG_BUFFERED,C),this._hls.currentLevel=n,console.log("Immediately set currentLevel to",n));break}i&&(this._hls.on(y.Events.FRAG_BUFFERED,C),this._hls.currentLevel=-1);this._switchedLevel=!0,setTimeout(function(){t.trigger(T.Player.LevelSwitched),t._switchedLevel=!1},1e3)}.bind(e),l=function(f,_){_.on(y.Events.MANIFEST_LOADING,function(){w.call(f,"mani_s")}),_.on(y.Events.MANIFEST_LOADED,function(){w.call(f,"mani_f")}),_.on(y.Events.DEFAULT_BANDWIDTH,function(e,t){f.trigger(T.Player.DefaultBandWidth,{width:t.width,height:t.height,bitrate:t.bitrate})}),_.on(y.Events.ERROR,function(e,t){var r="hlsjs-error::"+t.type+"#"+t.details+"#"+(null==(r=t.networkDetails)?void 0:r.status)+"#"+t.reason+"#bw:"+(f._getbwEstimator()/8/1024).toFixed(2)+"KB";if("manifestParsingError"===t.details)try{r+="#"+t.networkDetails.getResponseHeader("Content-Type")+"#"+t.networkDetails.getResponseHeader("Content-Length")}catch(e){}else if("fragLoadError"===t.details||"fragLoadTimeOut"===t.details)r+="#"+t.frag.url+"#retry:"+(null==(u=t.errorAction)?void 0:u.retryCount);else if("internalException"===t.details)try{r+="#"+t.event+"#"+(null==(o=t.error)?void 0:o.message)+"#"+(null==(n=t.error)?void 0:n.stack)}catch(e){}"internalException"!==t.details&&(r+="#"+t.error);try{r+="#"+(null==f||null==(d=f.trackLogFragBuffer)?void 0:d.toString())}catch(e){}if(f.traceLog(b,r),f._options&&t.details!=y.ErrorDetails.FRAG_LOOP_LOADING_ERROR&&1!=f._seeking&&0!=t.fatal){f._clearTimeout();var i,n,o,a=g.ErrorCode.LoadedMetadata,s=S.get("Error_Play_Text"),l=!1,c=null,u=!1,p=(t.details==y.ErrorDetails.MANIFEST_LOAD_ERROR||t.details==y.ErrorDetails.LEVEL_LOAD_ERROR?(l=!0,o=t.networkDetails,i=Number(o.status),f.liveShiftSerivce&&f.liveShiftSerivce.isLiveShiftPlaying()&&404===i?(a=g.ErrorCode.NotFoundSourceURL,s=S.get("Error_Liveshift_M3U8_Not_Found_Text"),u=!0):404===i?(a=g.ErrorCode.NotFoundSourceURL,s=S.get("Error_Not_Found"),c=S.get("Tip_Err_Not_found")):403===i?(n=v.parseHttpHeaders(o)["x-tengine-error"])&&-1<g.RegionBlockMessages.indexOf(n)?(a=g.ErrorCode.RegionBlock,s=S.get("Error_Region_Block_Text"),c=S.get("Tip_Err_Blocked")):(a=g.ErrorCode.AuthKeyExpired,s=S.get("Error_AuthKey_Text")):s=0===i&&navigator.onLine?(a=g.ErrorCode.RequestDataError,s+"\uff0c"+S.get("Maybe_Cors_Error")):S.get("Error_Load_M3U8_Failed_Text")):t.details==y.ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details==y.ErrorDetails.LEVEL_LOAD_TIMEOUT?(l=!0,s=S.get("Error_Load_M3U8_Timeout_Text")):t.details==y.ErrorDetails.MANIFEST_PARSING_ERROR||t.details==y.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR?(l=!0,s=S.get("Error_M3U8_Decode_Text")):t.type==y.ErrorTypes.NETWORK_ERROR?(a=g.ErrorCode.NetworkError,s=S.get("Error_Network_Text")):t.type!=y.ErrorTypes.MUX_ERROR&&t.type!=y.ErrorTypes.MEDIA_ERROR||(a=g.ErrorCode.PlayDataDecode,s=S.get("Error_TX_Decode_Text")),s=s+"("+t.details+")",function(){var e;setTimeout(function(){f.trigger(T.Private.Play_Btn_Hide)}),f.checkOnline()&&(e={mediaId:(e=f.getOptions()||{}).vid||"",mediaAuth:e.mediaAuth||"",error_code:a,error_msg:t.details,diagnosis_info:c},f.logError(e),e.display_msg=s,f.trigger(T.Player.Error,e))}),d=function(){f._liveErrorHandle&&clearTimeout(f._liveErrorHandle),_.stopLoad(),f.trigger(T.Player.LiveStreamStop),f._liveErrorHandle=setTimeout(p,500)},h=f._options;if(h.isLive&&u)d();else if(f._hls2){if(l&&h.isLive)if(h.hlsOption.progressive){if(h.liveRetry>f._liveRetryCount)return 0==f._liveRetryCount&&f.trigger(T.Player.OnM3u8Retry),f.trigger(T.Private.H5_Loading_Show),f._hls.stopLoad(),f._liveRetryCount++,void setTimeout(function(){f.traceLog(b,"retry when live error in progressive mode#"+f._liveRetryCount),f._hls.loadSource(h.source)},1e3*f._liveRetryCount)}else 0===(null==(r=t.errorAction)?void 0:r.retryCount)&&f.trigger(T.Player.OnM3u8Retry);t.fatal&&d()}else h.isLive?h.liveRetry>f._liveRetryCount?(0==f._liveRetryCount&&f.trigger(T.Player.OnM3u8Retry),o=h.liveRetryInterval+h.liveRetryStep*f._liveRetryCount,f._liveRetryCount++,f.trigger(T.Private.H5_Loading_Show),setTimeout(function(){l&&f._loadByUrlInner(f._options.source,0,!0)},1e3*o)):d():(l&&-1<[403,404].indexOf(i)||!f._reloadForVod())&&p()}})})}}.call(this)}.call(this,"false")},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/io":33,"../../lib/object":35,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../base/event/eventtype":63}],94:[function(e,t,r){function i(t){this._player=t,this._video=t.tag;var r=this;this._isCreated=!1,this._canPlayTriggered=!1,this._defaultTrack="",t.on(n.Private.ChangeURL,function(){r._isCreated=!1,r._canPlayTriggered=!1,r._defaultTrack=""}),t.on(n.Player.CanPlay,function(){var e;r._player._drm||r._canPlayTriggered||((e=r._getTracks())&&(r._isCreated=!0,r._player._options.isVBR||r._hls||(t.trigger(n.Player.AudioTrackReady,e),r._notifyDefaultValue(e))),r._canPlayTriggered=!0)}),t.on(n.Player.AudioTrackUpdated,function(e){r._isCreated||(e=r._getTracks(e.paramData.audioTracks))&&(r._isCreated=!0,t.trigger(n.Player.AudioTrackReady,e),r._notifyDefaultValue(e))})}var n=e("../base/event/eventtype");i.prototype._notifyDefaultValue=function(e){!this._defaultTrack&&0<e.length&&(this._defaultTrack=e[0]),this._defaultTrack&&this._player.trigger(n.Private.SelectorUpdateList,{type:"audio",text:this._defaultTrack.text})},i.prototype.support=function(){return!!this._video.audioTracks},i.prototype._getTracks=function(e){if(!this.support()&&!e)return null;for(var t=[],r=(e=!this._video||!this._video.audioTracks||e&&0!=e.length?e:this._video.audioTracks)?e.length:0,i=0;i<r;i++){var n=e[i],o={value:n.id,text:n.label||n.name||n.language};(n.default||n.enabled)&&(this._defaultTrack=o),t.push(o)}return t},i.prototype.switch=function(e){if(this._player._hls)this._player._hls.audioTrack=+e;else if(this._player._switchAudioTrack)this._player._switchAudioTrack(e);else for(var t=this._video.audioTracks?this._video.audioTracks.length:0,r=0;r<t;r++){var i=this._video.audioTracks[r];i.id==e?i.enabled=!0:i.enabled=!1}},i.prototype.dispose=function(){this._player=null},t.exports=i},{"../base/event/eventtype":63}],95:[function(e,t,r){function i(t){this._video=t.tag,this._player=t,this._isCreated=!1,this._backupCC="",this.tracks=[],this._defaultTrack="",this._currentValue="",this._switchTimer=null,this._storedTracks=[];var r=this,e=(t.on(a.Player.LevelsLoaded,function(e){t.getOptions().useDrm2||(s.IS_MAC_SAFARI||s.IS_IOS)&&(e&&e.paramData&&e.paramData.subtitles&&e.paramData.subtitles.length?r._storedTracks=e.paramData.subtitles||[]:r._resotreTracks())}),t.on(a.Private.SafariDrmLevelSwitch,function(){r._resotreTracks()}),t.on(a.Private.ChangeURL,function(e){e&&e.paramData&&"saas"===e.paramData.from||(r._disabledTracks(),r._isCreated=!1,r._defaultTrack="",r._backupCC="")}),t.on(a.Private.VttClearTracks,function(){r.switch("off"),r._disabledTracks(),r._isCreated=!1,r._defaultTrack={value:"off",text:"Off"},r.tracks=[r._defaultTrack],t.trigger(a.Private.SelectorGenerateList,{type:"cc"}),t.trigger(a.Private.CCStateChanged,{value:"off",lang:""})}),t.on(a.Player.CanPlay,function(){r._isCreated||(r.tracks=r._getTracks(),t.trigger(a.Player.TextTrackReady,r.tracks),t.trigger(a.Private.CCReset)),r._isCreated&&!r._player._setDefaultCC||!r._defaultTrack||(t.trigger(a.Private.SelectorUpdateList,{type:"cc",text:r._defaultTrack.text}),r.switch(r._defaultTrack.value),r._player._setDefaultCC=!1,r._isCreated=!0)}),s.os.ios&&parseFloat(s.os.version)<=15.1&&n.addCssByStyle("video::-webkit-media-text-track-container{position: relative; top: -44px !important;}"),"always"===t.getOptions().controlBarVisibility&&n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}"),o.throttle(function(){t._vttBroker&&t._vttBroker.enabled||n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}")},100)),e=(t.on(a.Private.ShowBar,e),o.throttle(function(){t._vttBroker&&t._vttBroker.enabled||n.addCssByStyle("video::-webkit-media-text-track-container{transform: none;}")},100));t.on(a.Private.HideBar,e),t.on(a.Private.CCReset,function(){r._updateSelectorList()})}var a=e("../base/event/eventtype"),n=(e("../../lib/event"),e("../../lib/dom")),s=e("../../lib/ua"),c=e("../../lib/cookie"),u=e("../../lib/constants"),o=e("../../ui/component/util");i.prototype._adaptiveCueStype=function(){var e,t=-10;s.IS_SAFARI?(t=-65,(e=this._player.fullscreenService)&&e.getIsFullScreen()&&(t=-95)):s.IS_MOBILE&&(t=-30),n.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY("+t+"px) !important;}")},i.prototype.close=function(){for(var e=this.getTextTracks(),t=e.length,r=0;r<t;r++){var i=e[r];"expired"!=i.mode&&("showing"==i.mode&&(this._backupCC=i),i.mode="disabled",this._player._switchDrmTextTrack)&&this._player._switchDrmTextTrack()}this._player.trigger(a.Private.VttHide)},i.prototype.open=function(){var t,r,e;return!this.tracks||this.tracks.length<2||(r=this._backupCC?this._backupCC.language:"",e=this._backupCC?this._backupCC.label:"",this.tracks.forEach(function(e){r===e.value&&(t=!0)}),(r=t?r:e="")||(r=this.tracks[1].value,e=this.tracks[1].text),this.switch(r)),{label:e,language:r}},i.prototype.getCurrentSubtitle=function(){return this._currentValue},i.prototype._getTracks=function(){for(var e=this.getTextTracks(),t=e.length,r=(this._defaultTrack={value:"off",text:"Off"},[this._defaultTrack]),i=c.get(u.SelectedCC),n="",o=!1,a=0;a<t;a++){var s,l=e[a];"expired"==l.mode||"subtitles"!=l.kind&&"captions"!=l.kind||(s={value:l.language,text:l.label},l.default&&(this._defaultTrack=s,o=!0),s.value==i&&(n=s),r.push(s))}return!o&&n&&(this._defaultTrack=n),r},i.prototype._disabledTracks=function(){for(var e=this.getTextTracks(),t=e.length,r=0;r<t;r++)e[r].mode="expired"},i.prototype.switch=function(e){var t=this._player;if(this.close(),"off"!=e)for(var r=this.getTextTracks(),i=r.length,n=0;n<i;n++){var o=r[n];o.language===e&&"expired"!=o.mode&&(t._switchDrmTextTrack&&t._switchDrmTextTrack(e),r[n].mode="showing",t.trigger(a.Private.VttSwitchTrack,o.language))}else this.close();this._currentValue=e,t.trigger(a.Private.CCChanged,e)},i.prototype.updateUI=function(t){var e=this._player,r="on",i="";i=t?(this.tracks.find(function(e){return e.value===t})||{}).text||"":(r="off","Off"),e.trigger(a.Private.CCChanged,r),e.trigger(a.Private.CCStateChanged,{value:r,lang:i})},i.prototype.dispose=function(){this._player=null,this._switchTimer&&(clearTimeout(this._switchTimer),this._switchTimer=null)},i.prototype._patchSafariTracks=function(){var t=this;if(s.IS_MAC_SAFARI||s.IS_IOS){if(!(this._video&&this._video.textTracks?this._video.textTracks.length:0)){var e=!1;if(e=this._video.textTracks&&this._video.textTracks.length?!0:e)return;for(var r=0;r<this._storedTracks.length;r++){var i=this._storedTracks[r],n=i.vttUrl,o=document.createElement("track");o.src=n,o.kind="subtitles",o.label=i.name,o.srclang=i.lang,this._video.appendChild(o)}}this._switchTimer&&clearTimeout(this._switchTimer),this._switchTimer=setTimeout(function(){var e=t.getCurrentSubtitle();e&&"off"!==e&&t.switch(e)},1e3)}},i.prototype.getTextTracks=function(){var e=this._player,t=e.tag;return e._vttBroker&&e._vttBroker.enabled&&e.getTextTracks?e.getTextTracks()||[]:e._getDrmTextTracks?e._getDrmTextTracks()||[]:t&&t.textTracks||[]},i.prototype._updateSelectorList=function(){var e=this._player;this.tracks=this._getTracks(),e.trigger(a.Private.SelectorGenerateList,{type:"cc",value:"Off"})},i.prototype._resotreTracks=function(){this._patchSafariTracks(),this.tracks=this._getTracks(),this._player.trigger(a.Player.TextTrackReady,this.tracks)},t.exports=i},{"../../lib/constants":22,"../../lib/cookie":23,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../ui/component/util":132,"../base/event/eventtype":63}],96:[function(e,t,r){var i=e("../../lib/playerutil");t.exports=[{service:e("./ccservice"),name:"_ccService",condition:!0},{service:e("./audiotrackservice"),name:"_audioTrackService"},{service:e("./qualityservice"),name:"_qualityService"},{service:e("./fullscreenservice"),name:"fullscreenService",condition:function(){return!0}},{service:e("./liveshiftservice"),name:"_liveshiftService",condition:function(){var e=this.options();return i.isLiveShift(e)}},{service:e("./thumbnailservice"),name:"_thumbnailService",condition:function(){return!0}},{service:e("./progressmarkerservice"),name:"_progressMarkerService",condition:function(){return!0}}]},{"../../lib/playerutil":37,"./audiotrackservice":94,"./ccservice":95,"./fullscreenservice":97,"./liveshiftservice":98,"./progressmarkerservice":99,"./qualityservice":100,"./thumbnailservice":101}],97:[function(e,t,r){function i(t){var r=this,i=(this.isFullWindow=!1,this.isFullScreen=!1,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer=null,this._player=t,this),n=l;this._fullscreenChanged=function(e){var t;null!=i._player&&(e.target||e.srcElement)===(e=i._player.el())&&(t=document[n.fullscreenElement],i.isFullScreen=t===e,(i.isFullScreenChanged=!0)===i.isFullScreen?i._player.trigger(s.Player.RequestFullScreen):i._player.trigger(s.Player.CancelFullScreen))},n&&o.on(document,n.eventName,this._fullscreenChanged),o.on(t.tag,"webkitendfullscreen",function(e){e=e.target||e.srcElement;t&&t.tag===e&&(r.isFullScreenChanged=!0,r.isFullScreen=!1,r._player.trigger(s.Player.CancelFullScreen),r._player.trigger(s.Private.Play_Btn_Show))})}var a=e("../../lib/ua"),n=e("../../lib/dom"),o=e("../../lib/event"),s=e("../base/event/eventtype"),l=(e("../base/x5play"),e("../../lang/index"),(()=>{n.createEl("div");var e={},t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullScreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitfullScreen"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitIsFullScreen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","mozFullScreen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","MSFullScreen"]],r=!1;if(!(r=a.IS_IOS&&(e.requestFn="webkitEnterFullscreen",e.cancelFn="webkitExitFullscreen",e.fullscreenElement="webkitFullscreenElement",e.eventName="webkitfullscreenchange",e.isFullScreen="webkitDisplayingFullscreen",document[e.requestFn])?!0:r)){for(var i=0;i<5;i++)if(t[i][1]in document){e.requestFn=t[i][0],e.cancelFn=t[i][1],e.fullscreenElement=t[i][2],e.eventName=t[i][4],e.isFullScreen=t[i][6];break}"requestFullscreen"in document?e.requestFn="requestFullscreen":"webkitRequestFullscreen"in document?e.requestFn="webkitRequestFullscreen":"webkitRequestFullScreen"in document?e.requestFn="webkitRequestFullScreen":"webkitEnterFullscreen"in document?e.requestFn="webkitEnterFullscreen":"mozRequestFullScreen"in document?e.requestFn="mozRequestFullScreen":"msRequestFullscreen"in document&&(e.requestFn="msRequestFullscreen"),"fullscreenchange"in document?e.eventName="fullscreenchange":"webkitfullscreenchange"in document||"webkitfullscreenchange"in document||"webkitfullscreenchange"in document?e.eventName="webkitfullscreenchange":"mozfullscreenchange"in document?e.eventName="mozfullscreenchange":"MSFullscreenChange"in document&&(e.eventName="MSFullscreenChange"),"fullScreen"in document?e.isFullScreen="fullScreen":"webkitfullScreen"in document?e.isFullScreen="webkitfullScreen":"webkitIsFullScreen"in document?e.isFullScreen="webkitIsFullScreen":"webkitDisplayingFullscreen"in document?e.isFullScreen="webkitDisplayingFullscreen":"mozFullScreen"in document?e.isFullScreen="mozFullScreen":"mozfullScreen"in document?e.isFullScreen="mozfullScreen":"MSFullScreen"in document&&(e.isFullScreen="MSFullScreen"),"fullscreenElement"in document?e.fullscreenElement="fullscreenElement":"webkitFullscreenElement"in document?e.fullscreenElement="webkitFullscreenElement":"webkitFullScreenElement"in document?e.fullscreenElement="webkitFullScreenElement":"mozFullScreenElement"in document?e.fullscreenElement="mozFullScreenElement":"msFullscreenElement"in document?e.fullscreenElement="msFullscreenElement":"MSFullscreenElement"in document&&(e.fullscreenElement="MSFullscreenElement")}return e.requestFn?e:null})()),c=(i.prototype.requestFullScreen=function(){var e=l,t=this._player.el(),r=this;if(a.IS_IOS){var i=this._player._splayer;if(!i||2!==i.renderType){t=this._player.tag,i&&2!==i.renderType&&(t=this._player.el().querySelector("video"));try{var n=t[e.requestFn]();n&&"function"==typeof n.catch&&n.catch(function(e){console.log(e)}),r._player.trigger(s.Player.RequestFullScreen)}catch(e){console.log(e)}return this}this._player._options.enableMockFullscreen=!0}this.isFullScreen=!0,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer||clearTimeout(this._cancelFullScreenTimer);r=this;if(e&&!this._player._options.enableMockFullscreen)try{var o=t[e.requestFn]();o&&"function"==typeof o.catch&&o.catch(function(e){console.log(e)}),this._requestFullScreenTimer=setTimeout(function(){r.isFullScreenChanged||(c.apply(r),r._player.trigger(s.Player.RequestFullScreen)),r._requestFullScreenTimer=null},1e3)}catch(e){console.log(e)}else c.apply(r),this._player.trigger(s.Player.RequestFullScreen);return this._player},i.prototype.cancelFullScreen=function(){var e=l,t=(this.isFullScreen=!1,this.isFullScreenChanged=!1,this._cancelFullScreenTimer=null,this._requestFullScreenTimer||clearTimeout(this._requestFullScreenTimer),this);if(e&&!this._player._options.enableMockFullscreen){try{var r=document[e.cancelFn]();r&&"function"==typeof r.catch&&r.catch(function(e){console.log(e)})}catch(e){console.log(e)}t._cancelFullScreenTimer=setTimeout(function(){t.isFullScreenChanged||(u.apply(t),t._player.trigger(s.Player.CancelFullScreen)),t._cancelFullScreenTimer=null},500)}else u.apply(t),this._player.trigger(s.Player.CancelFullScreen);return this._player.tag.paused||this._player.trigger(s.Player.Play),this._player},i.prototype.getIsFullScreen=function(){return this.isFullScreen},i.prototype.dispose=function(){this._player=null,l&&o.off(document,l.eventName,this._fullscreenChanged)},function(){this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",n.addClass(document.getElementsByTagName("body")[0],"prism-full-window")}),u=function(){this.isFullWindow=!1,document.documentElement.style.overflow=this.docOrigOverflow,n.removeClass(document.getElementsByTagName("body")[0],"prism-full-window")};t.exports=i},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../base/event/eventtype":63,"../base/x5play":91}],98:[function(e,t,r){function n(e,t){var r;if(e)return e=new Date(e),r=(t=new Date(t)).valueOf()/1e3-e.valueOf()/1e3,{start:e,end:t,endDisplay:s.extractTime(t),totalTime:r}}function o(e,t){t&&(e.currentTimestamp=t,e.currentTime=s.convertToDate(t),e.currentTimeDisplay=s.extractTime(e.currentTime),e.liveShiftStart=e.liveTimeRange.start,e.liveShiftEnd=e.liveTimeRange.end,e.liveShiftStartDisplay=s.extractTime(e.liveShiftStart),e.liveShiftEndDisplay=s.extractTime(e.liveShiftEnd),e.availableLiveShiftTime=t-e.liveShiftStart.valueOf()/1e3,e.timestampStart=s.convertToTimestamp(e.liveShiftStart),e.timestampEnd,s.convertToTimestamp(e.liveShiftEnd))}function i(t){function e(){var e=t._options.source;this._originalPlayUrl=e,this._liveShiftUrl=t._options.liveTimeShiftUrl,this.liveTimeRange=n(t._options.liveStartTime,t._options.liveOverTime),this.availableLiveShiftTime=0,this.seekTime=-1}this._player=t,this._isLiveShiftPlaying=!1;var i=this;e.call(this),t.liveShiftSerivce={setLiveTimeRange:function(e,t){i.setLiveTimeRange(e,t)},queryLiveShift:function(e,t,r){i.queryLiveShift(e,t,r)},isLiveShiftPlaying:function(){return i._isLiveShiftPlaying}},t.on(h.Private.ChangeURL,function(){e.call(i)})}var a=e("../../lib/io"),s=e("../../lib/util"),l=e("../../lib/playerutil"),c=e("../../lang/index"),u=e("../flv/flvinjector"),p=e("../hls/hlsinjector"),d=e("../../lib/constants"),h=e("../base/event/eventtype");e("../../lib/url");i.prototype.validate=function(){return!(this.liveTimeRange.start>=this.liveTimeRange.end)},i.prototype.switchToLive=function(){this.seekTime=-1;var e=this._originalPlayUrl,t=this._player._options.liveShiftSource,r=this._player._options.source;l.isHls(r)&&l.isFlv(e)&&t&&l.isHls(t)&&(this._player._hls&&this._player._destroyHls(),r=this._player._superType,t=this._player._Type,this._player._options._autoplay=!0,u.inject(this._player,t,r,this._player._options,"",!0)),this._player._loadByUrlInner(e,null,!0),this._isLiveShiftPlaying=!1,this._player.trigger(h.Private.LiveShiftSwitchToLive)},i.prototype.getBaseTime=function(){this.liveShiftStartDisplay;return-1==this.seekTime?s.parseTime(this.currentTimeDisplay):s.parseTime(this.liveShiftStartDisplay)+this.seekTime},i.prototype.getSourceUrl=function(e,t){var r=this._originalPlayUrl;return this.availableLiveShiftTime<e||(this._isLiveShiftPlaying=!0,e=parseInt(e),r=(r=this._switchLiveShiftPlayer(t))&&this._cleanUrl(r),t=parseInt(this.currentTimestamp)-e,-1===(r=-1==r.indexOf("?")?r+"?lhs_start_unix_s_0="+t:r+"&lhs_start_unix_s_0="+t).indexOf("aliyunols=on")&&(r+="&aliyunols=on"),-1===r.indexOf("continue=on")&&(r+="&continue=on")),r},i.prototype._cleanUrl=function(e){var t;return-1===e.indexOf("?")?e:(e=(e=(t=e.split("?"))[1])&&(0===(e=e.replace(/&?lhs_start_unix_s_0=[0-9]*/g,"")).indexOf("&")?e.replace("&",""):e))?t[0]+"?"+e:t[0]},i.prototype._switchLiveShiftPlayer=function(e){var t,r=this._originalPlayUrl,i=this._player._options.liveShiftSource,n=this._player._options.source;if(l.isHls(n))r=n;else if(l.isFlv(r)&&i&&l.isHls(i))return this._player._flv&&this._player._destroyFlv(),n=this._player._superType,t=this._player._Type,this._player._options._autoplay=!0,p.inject(this._player,t,n,this._player._options,"",!0),i;return r},i.prototype.getTimeline=function(t,i){var r;this._player.trigger(h.Private.LiveShiftQueryCompleted),this._liveShiftUrl?(r=this).queryLiveShift(this._liveShiftUrl,function(e){e?0==(e=e).retCode?(o(r,e.content.current),t&&t()):i({Code:d.ErrorCode.ServerAPIError,Message:e.retCode+"|"+e.description+"|"+e.content}):console.log("\u83b7\u53d6\u76f4\u64ad\u65f6\u79fb\u6570\u636e\u5931\u8d25")},function(e){if(i&&e){var t={};if(e){if("string"==typeof e&&-1<e.indexOf("403 Forbidden"))t.Code=d.ErrorCode.AuthKeyExpired,t.Message="Query liveshift failed:"+c.get("Error_AuthKey_Text");else{var r,t=e;try{r=JSON.parse(e)}catch(e){}r&&(t.Code=d.ErrorCode.ServerAPIError,t.Message=r.retCode+"|"+r.description+"|"+r.content)}i(t)}}}):(o(this,(new Date).valueOf()/1e3),t&&t())},i.prototype.start=function(e,t){var r=this,i=function(){r._loopHandler&&clearTimeout(r._loopHandler),r._loopHandler=setTimeout(function(){r.getTimeline(function(){},t),i()},e)};r.getTimeline(function(e){r._localLiveTimeHandler||r.tickLocalLiveTime()},t),i()},i.prototype.tickLocalLiveTime=function(){function e(){t._localLiveTimeHandler=setTimeout(function(){t.currentTimestamp++,o(t,t.currentTimestamp),t._player.trigger(h.Private.LiveShiftQueryCompleted),e()},1e3)}var t=this;e()},i.prototype.setLiveTimeRange=function(e,t){e=e||this._player._options.liveStartTime,t=t||this._player._options.liveOverTime,this.liveTimeRange=n(e,t),o(this,this.currentTimestamp),this._player.trigger(h.Private.LiveShiftQueryCompleted)},i.prototype.queryLiveShift=function(e,r,i){a.get(e,function(e){var t;e?0==(t=JSON.parse(e)).retCode?r&&r(t):i&&i(t):i&&i(e)},function(e){i&&i(e)})},i.prototype.stop=function(e){this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null)},i.prototype.dispose=function(){this.stop(),this._localLiveTimeHandler&&(clearTimeout(this._localLiveTimeHandler),this._localLiveTimeHandler=null),this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null),this._player=null},t.exports=i},{"../../lang/index":18,"../../lib/constants":22,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/url":40,"../../lib/util":41,"../base/event/eventtype":63,"../flv/flvinjector":92,"../hls/hlsinjector":93}],99:[function(e,t,r){function i(a){function t(){var e=document.querySelector("#"+a.id()+" .prism-progress-marker");if(e){e.innerHTML="";var o=s._player.getDuration();if(0<o){for(var t=0;t<s.progressMarkers.length;t++){var r,i=s.progressMarkers[t];void 0!==i.offset&&""!==i.offset&&(i=document.createElement("div"),c.addClass(i,"prism-marker-dot"),r=s.progressMarkers[t].offset/o,i.style.left=100*r+"%",e.appendChild(i),r=((e,t)=>function(){s._player.trigger(l.Private.MarkerTextShow,{left:e,progressMarker:t})})(r,s.progressMarkers[t]),u.on(i,"mouseover",r),u.on(i,"mouseout",function(e){s._player.trigger(l.Private.MarkerTextHide)}),u.on(i,"touchstart",r),u.on(i,"mousemove",function(e){e.preventDefault()}),u.on(i,"touchmove",function(e){e.preventDefault()}))}var n=document.querySelector("#"+s._player.id()+" .prism-progress-cursor");s._player.on(n,"click",function(e){for(var t=s._player.getCurrentTime(),r=0;r<s.progressMarkers.length;r++){var i,n=s.progressMarkers[r];n&&t-1<n.offset&&n.offset<t+1&&(i=n.offset/o*100+"%",s._player.trigger(l.Private.MarkerTextShow,{left:i,progressMarker:n}))}})}}}this.progressMarkers=[],this._player=a;var s=this;a.on(l.Private.ProgressMarkerLoaded,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e)}),a.on(l.Private.ProgressMarkerChanged,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e,t())}),a.on(l.Video.LoadedMetadata,t)}var l=e("../base/event/eventtype"),c=(e("../../lang/index"),e("../../lib/hls/hlsparse"),e("../../lib/object"),e("../../lib/dom")),u=e("../../lib/event");e("../../lib/playerutil");i.prototype.dispose=function(){this._player=null,this.progressMarkers=[]},t.exports=i},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/hls/hlsparse":31,"../../lib/object":35,"../../lib/playerutil":37,"../base/event/eventtype":63}],100:[function(e,t,r){function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}function i(o){this.levels=[],this.drmUrl={},this._player=o;var a=this;o.on(l.Private.PlayInfoLoaded,function(e){for(var t=e.paramData.encryptUrlArr||[],r=[],i=0;i<t.length;i++){var n=t[i];n.encryptionType===d.VodEncryptionType["Widevine-FairPlay"]&&r.push(n)}a.drmUrl=r}),o.on(l.Player.LevelsLoaded,function(e){if(0<a.levels.length&&(a.levels=[]),(e=e.paramData)&&e.levels){for(var t=e.levels.length-1;-1<t;t--){var r,i=e.levels[t];i.url&&0<i.url.length&&i.attrs&&i.attrs.BANDWIDTH&&(r=i.url,u.isArray(r)&&(r=r[0]),r={Url:r=!o._hls&&o._options.isVBR&&o._options.isDrm&&o._options.vid?h.call(a,i):r,desc:Math.min(i.width,i.height),bitrate:i.bitrate,resolution:i.attrs.RESOLUTION,bandwidth:i.attrs.BANDWIDTH},a.levels.push(r))}"AUTO"===o._options.definition&&(o._urls=[],Object.assign(o._urls,this.levels)),a.levels.sort(function(e,t){return(e.bitrate||e.desc)-(t.bitrate||t.desc)}),a.levels=((e,t)=>"function"==typeof t?e.map(function(e){return s({},e,{desc:t({bandwidth:Number(e.bandwidth),bitrate:Number(e.bitrate),width:Number(e.resolution.split("x")[0]),height:Number(e.resolution.split("x")[1])})})}):e.map(function(e){return s({},e,{desc:e.desc+"p@"+parseInt(e.bitrate/1e3)+"k"})}))(a.levels,o._options.bitrateDisplayHandler);var n="";this._player._options.isVBR&&(n=c.get("Auto")),a.levels.push({Url:e.url,desc:n}),o.trigger(l.Private.SelectorUpdateList,{type:"quality",text:n})}}),o.on(l.Video.LoadStart,function(){var e,t,r;o._options&&(e=o._options.source,t=o._options.isVBR,r=o._options.useDrm2,!o._hls)&&e&&p.isHls(e)&&(o._manuallySwitchDrmLevel?(o._manuallySwitchDrmLevel=!1,o.trigger(l.Private.SafariDrmLevelSwitch)):t&&!r&&a.loadLevels(e))})}var l=e("../base/event/eventtype"),c=e("../../lang/index"),n=e("../../lib/hls/hlsparse"),u=e("../../lib/object"),p=e("../../lib/playerutil"),d=e("../../lib/constants");function h(e){for(var t,r=this.drmUrl,i=0;i<this.drmUrl.length;i++)if(Number(e.height)===Number(r[i].height)){t=r[i].Url;break}return t}(i.prototype={loadLevels:function(e){var r=new n,i=this;r.load(e,function(e){var t;null!=(t=e.subtitles)&&t.forEach(function(t){r.loadMediaPlaylist({url:t.url},function(e){e=e.fragments[0];e&&(t.vttUrl=r.resolve(e.relurl,e.baseurl))},function(e){console.log("parse vtt url error: ",e)})}),i._player._created?i._player.trigger(l.Player.LevelsLoaded,e):i._player.one(l.Private.Created,function(){i._player.trigger(l.Player.LevelsLoaded,e)})})}}).dispose=function(){this._player=null},t.exports=i},{"../../lang/index":18,"../../lib/constants":22,"../../lib/hls/hlsparse":31,"../../lib/object":35,"../../lib/playerutil":37,"../base/event/eventtype":63}],101:[function(e,t,r){function i(e){this._player=e,this.cues=[],this.baseUrl="";var t=this;e.on(l.Private.ChangeURL,function(){t.cues=[],t.baseUrl=""})}var o=e("../../lib/io"),a=e("../../lib/url"),s=e("../../lib/vtt/thumbnailvtt"),l=e("../base/event/eventtype");(i.prototype={get:function(e){var t,r,i,n=this;this.baseUrl=(t=e,r="",(i=a.parseUrl(t))&&(i=i.segments)&&0<i.length&&(i=i[i.length-1],r=t.split("?")[0].replace(i,"")),r),o.get(e,function(e){e&&s.parse(e,function(e){n.cues=e,n._player.trigger(l.Private.ThumbnailLoaded,e)})},function(e){console.log(e)})},findAvailableCue:function(e){for(var t=this.cues.length,r=0;r<t;r++){var i=this.cues[r];if(i.startTime<=e&&e<i.endTime)return i}return null},makeUrl:function(e){return e=-1==e.indexOf("://")?this.baseUrl+e:e}}).dispose=function(){this._player=null},t.exports=i},{"../../lib/io":33,"../../lib/url":40,"../../lib/vtt/thumbnailvtt":43,"../base/event/eventtype":63}],102:[function(e,t,r){function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,i=arguments[t];for(r in i)!{}.hasOwnProperty.call(i,r)||(e[r]=i[r])}return e}).apply(null,arguments)}var s=e("../../lib/io"),l=e("../base/event/eventtype"),c=e("../base/event/eventmanager"),i=(e("../../lib/event"),e("../../lib/util")),u=e("../../lib/dom"),p=e("../../lib/playerutil"),d=e("../../lib/constants"),h=e("../../lang/index"),f="splayerinjector.js";function _(e){var t=this._options,r=(v.call(this),!function(){p.isVideoTag(this.tag)&&(c.offVideoAll(this),this.tag.parentNode&&this.tag.parentNode.removeChild(this.tag),this.tag=null)}.call(this),Videox.Videox),i=t.splayerWasmDomain,i=(!i&&t.assetPrefix&&(i=t.assetPrefix+"/splayer"),new r(a({container:this._el,wasmDomain:i,progressive:!0,skipFrame:r.DiscardType.NONE,loop:t.rePlay,controls:!1,muted:!1,threads:t.h265Threads,simd:t.h265Simd,autoplay:t.autoplay||t._autoplay,live:t.isLive,poster:t.cover||void 0,src:t.source,trackOptions:{disable:!0},preload:t.preload?"auto":"none",timeout:1e3*t.waitingTimeout},t.splayerOptions||{}))),n=(t.debug&&(i.setLogLevel(r.LogLevel.LOG),i.setLogPrintLevel(r.LogLevel.LOG)),this._splayer=i,(this.tag=i).play),o=this;this.tag.play=function(){o._monitor&&o._monitor.reportStartPlay(),n.call(this)},function(){var e,t=this,r=document.createElement("video");for(e in r)(e=>{t.tag[e]||0===e.indexOf("on")||"function"!=typeof r[e]||(t.tag[e]=function(){console.warn("Function ["+e+"] is called on splayer, which should be a mistake."),r[e].apply(r,arguments)})})(e)}.call(this),function(e){var i=this,n=(c.onAll(this),this._splayer);n.addEventListener("error",function(e){var t,r,i,n=Videox.Videox,o=(e||{}).detail,a=Number((o||{}).code),n=n.ErrorCode;switch(this.traceLog(f,"splayer-error::"+a),a){case n.WASM_NOT_SUPPORTED:case n.CANVAS_NOT_SUPPORTED:case n.AUDIOCONTEXT_NOT_SUPPORTED:case n.WORKER_NOT_SUPPORTED:case n.WEBGL_NOT_SUPPORTED:t=d.ErrorCode.SplayerEnvCheckError,r=h.get("Splayer_Err_Env_Check")+" | "+y(o);break;case n.DECODE:t=d.ErrorCode.SplayerDecodeError,r=h.get("Splayer_Err_Decode")+" | "+y(o);break;case n.NETWORK:t=d.ErrorCode.NetworkError,r=h.get("Error_Network_Text")+" | "+y(o);var s=(o.origin||{}).response;s?404===(s=s.status)?(t=d.ErrorCode.NotFoundSourceURL,r=h.get("Error_Not_Found")+" | "+y(o),i=h.get("Tip_Err_Not_found")):403===s&&(t=d.ErrorCode.AuthKeyExpired,r=h.get("Error_AuthKey_Text")+" | "+y(o)):navigator.onLine&&(t=d.ErrorCode.RequestDataError,r=r+"\uff0c"+h.get("Maybe_Cors_Error"));break;case n.PARSER:t=d.ErrorCode.SplayerParserNotFound,r=h.get("Splayer_Err_Parser_Not_Found")+" | "+y(o);break;default:t=d.ErrorCode.OtherError,r="(SP)"+h.get("Error_Play_Text")+" | "+y(o)}i=i||h.get("Tip_Err_Splayer")+'<a href="https://help.aliyun.com/zh/vod/developer-reference/advanced-features-3#section-j4v-zwt-641" target="_blank">'+h.get("Tip_Err_Splayer_Doc")+"</a>";if(t===d.ErrorCode.NetworkError&&this._reloadForVod())return;try{this.pause()}catch(e){}a={error_code:t,error_msg:r,diagnosis_info:i};null!==a.error_code&&null!==a.error_msg&&(this.logError(a),this.trigger(l.Player.Error,a));m.call(this,{splayer:!0})}.bind(this)),n.addEventListener("decoderoverload",function(e){e=e.detail;delete e.shouldWarn,i.trigger(l.Player.H265DecoderOverload,e)}),n.addEventListener("loadedsupportinfo",function(e){var e=e.detail||{},t=e.detail||{},r=n.controller.options||{};n.renderType=e.renderer,m.call(i,{renderer:e.renderer,wasmThreads:t.wasmThreads&&r.threads,wasmThreadsOption:r.threads,simd:t.simd&&r.simd,simdOption:r.simd,codecTag:n.controller.videoTrack&&n.controller.videoTrack.codecTag||n.controller.videoTrack&&(null==(e=n.controller.videoTrack.codec)?void 0:e.split(".")[0]),splayer:!0})}),(this._options.autoplay||this._options._autoplay)&&(n.once("canplay",function(){n.paused&&i._autoplayFailedHandler()}),n.once("timeupdate",function(){i.trigger(l.Player.Play)}),this._monitor)&&this._monitor.reportStartPlay();n.on("playing",function(){i._monitor&&i._monitor.reportPlaying()}),n.on("timeupdate",function(){i._monitor&&i._monitor.reportPlaying()})}.call(this,e)}function y(e){var e=e=void 0===e?{}:e,t=e.code,r=Videox.Videox.ErrorCode,i="";return i=t?i+t+(": "+(e.message||r[t])):i}function g(e){return!i.contentProtocolMixed(e,"alwaysCheck")||((e={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"}).display_msg=h.get("Request_Block_Text"),this.logError(e),this.trigger(l.Player.Error,e),!1)}function v(){this._splayer&&(this._splayer.destroy(),this._splayer=null)}function m(e){var t;void 0===e&&(e={}),!this._h265InfoReported&&(this._h265InfoReported=!0,t={0:"native",1:"mse",2:"wasm"},delete(e=a({codecTag:(this._probeInfo||{}).codecTag||e.codecTag,renderType:e.renderType||t[e.renderer]},e)).renderer,e.renderType!==t[2]&&(delete e.simd,delete e.simdOption,delete e.wasmThreads,delete e.wasmThreadsOption),this._splayerRenderType=e.renderType,t=e.codecTag)&&(p.isH265Codec(t)?this.trigger(l.Player.H265PlayInfo,e):p.isH266Codec(t)&&this.trigger(l.Player.H266PlayInfo,e))}t.exports.checkProtocol=g,t.exports.reportH265PlayInfo=m,t.exports.inject=function(e,t,r,i,n){function o(e,t){this._superPt.setPlayerSize.call(this,e,t);e=this._el.querySelector("canvas");e&&(t=this._el.offsetWidth/this._el.offsetHeight,e.offsetWidth/e.offsetHeight<t?(e.style.height="100%",e.style.width="initial"):(e.style.width="100%",e.style.height="initial"))}function a(){this._disposed||(this._superPt&&(this._superPt.dispose.call(this),t.prototype.replay=this._superPt.replay,t.prototype.setPlayerSize=this._superPt.setPlayerSize,t.prototype._setTransform=this._superPt._setTransform,t.prototype.initPlay=this._superPt.initPlay),v.call(this),this._Type=null,this._superType=null,this._superPt=null,this._disposed=!0,this._splayerLoaded=!1,this._h265InfoReported=!1,this._splayerRenderType=null)}e._Type=t,e._superType=r,e._superPt=r.prototype,e._disposed=!1,e._splayer=null,e._splayerLoaded=!1,e._probeInfo=n,e._splayerRenderType=null,t.prototype.initPlay=function(e){var t=this;this.trigger(l.Private.H5_Loading_Show),g.call(this,this._options.source)&&(this._splayerLoaded?_.call(this,e):function(e,t){var r=this._options,i=r.splayerUrl||"https://g.alicdn.com/apsara-media-components/amcom-splayer/0.7.8/dist/index.js";!r.splayerUrl&&r.assetPrefix&&(i=r.assetPrefix+"/splayer/index.js"),s.loadJS(i,e.bind(this),function(){t&&t()})}.call(this,function(){this._splayerLoaded=!0,_.call(this,e),t._executeReadyCallback()},function(){var e={mediaId:t._options.vid||"",mediaAuth:t._options.mediaAuth||"",error_code:d.ErrorCode.ModuleLoadError,error_msg:"splayer module load error."};t.trigger(l.Player.Error,e)}))},t.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this._splayer.load(),this._splayer.play(),this},Object.defineProperty(t.prototype,"setPlayerSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(){return o}}),t.prototype._setTransform=function(){var e=this._player.el(),t="wasm"===this._splayerRenderType,e=t?e.querySelector("canvas"):e.querySelector("video"),t=(this._transformProp||(this._transformProp=u.getTransformName(e)),t?"":" translate(-50%, -50%)");this._rotate&&(t+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?t+=" scaleY(-1)":"horizon"==this._image&&(t+=" scaleX(-1)")),e.style[this._transformProp]=t},Object.defineProperty(t.prototype,"dispose",{enumerable:!0,configurable:!0,get:function(){return a},set:function(){return a}})}},{"../../lang/index":18,"../../lib/constants":22,"../../lib/dom":25,"../../lib/event":26,"../../lib/io":33,"../../lib/playerutil":37,"../../lib/util":41,"../base/event/eventmanager":62,"../base/event/eventtype":63}],103:[function(e,t,r){var i=e("../lib/oo"),n=e("../lib/data"),o=e("../lib/object"),a=e("../lib/dom"),s=e("../lib/event"),l=e("../lib/function"),c=e("../lib/layout"),u=(e("../lib/constants"),e("../lib/util"),e("../player/base/event/eventtype")),e=e("./component/util"),i=i.extend({init:function(e,t){var r=this,i=(this._player=e,this._eventState="",this._options=o.copy(t),this._el=this.createEl(),e.id);"function"==typeof e.id&&(i=e.id()),this._id=i+"_component_"+n.guid(),this._children=[],this._childIndex={},t.className&&this.addClass(t.className),this._player.on(u.Private.UiH5Ready,function(){r.renderUI(),r.syncUI(),r.bindEvent()})}});i.prototype.renderUI=function(){c.render(this.el(),this.options()),this.el().id=this.id()},i.prototype.syncUI=function(){},i.prototype.bindEvent=function(){},i.prototype.createEl=function(e,t){return a.createEl(e,t)},i.prototype.options=function(e){return void 0===e?this._options:this._options=o.merge(this._options,e)},i.prototype.el=function(){return this._el},i.prototype._contentEl,i.prototype.player=function(){return this._player},i.prototype.contentEl=function(){return this._contentEl||this._el},i.prototype._id,i.prototype.id=function(){return this._id},i.prototype.getId=function(){return this._id},i.prototype.addChild=function(e,t){var r;if("string"==typeof e){if(!this._player.UI[e])return;r=new this._player.UI[e](this._player,t)}else r=e;return this._children.push(r),"function"==typeof r.id&&(this._childIndex[r.id()]=r),"function"==typeof r.el&&r.el()&&((t=r.el()).id=r.id(),this.contentEl().appendChild(t)),r},i.prototype.removeChild=function(e){if(e&&this._children){for(var t,r=!1,i=this._children.length-1;0<=i;i--)if(this._children[i]===e){r=!0,this._children.splice(i,1);break}r&&(this._childIndex[e.id]=null,t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}},i.prototype.initChildren=function(){var e,t,r=this,i=this.options().children;if(i)if(o.isArray(i))for(var n=0;n<i.length;n++)t="string"==typeof(t=i[n])?(e=t,{}):(e=t.name,t),r.addChild(e,t);else o.each(i,function(e,t){!1!==t&&r.addChild(e,t)})},i.prototype.on=function(e,t){return s.on(this._el,e,l.bind(this,t)),this},i.prototype.off=function(e,t){return s.off(this._el,e,t),this},i.prototype.one=function(e,t){return s.one(this._el,e,l.bind(this,t)),this},i.prototype.trigger=function(e,t){if(this._el)return!t&&0!=t||(this._el.paramData=t),this._eventState=e,s.trigger(this._el,e),this},i.prototype.offAll=function(e){return s.off(this._el,e),this},i.prototype.addClass=function(e){return a.addClass(this._el,e),this},i.prototype.removeClass=function(e){return a.removeClass(this._el,e),this},i.prototype.show=function(){return this._el&&(this._el.style.display="block"),this},i.prototype.hide=function(){return this._el&&(this._el.style.display="none"),this},i.prototype.destroy=function(){if(this.trigger({type:"destroy",bubbles:!1}),this._children)for(var e=this._children.length-1;0<=e;e--)this._children[e].destroy&&this._children[e].destroy();"function"==typeof this.disposeUI&&this.disposeUI(),this.children_=null,this.childIndex_=null,this.offAll(),this._el.parentNode&&this._el.id!=this._player.id()&&this._el.parentNode.removeChild(this._el),n.removeData(this._el),this._el=null},i.prototype.registerControlBarTooltip=e.registerTooltipEvent,t.exports=i},{"../lib/constants":22,"../lib/data":24,"../lib/dom":25,"../lib/event":26,"../lib/function":28,"../lib/layout":34,"../lib/object":35,"../lib/oo":36,"../lib/util":41,"../player/base/event/eventtype":63,"./component/util":132}],104:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("../../player/base/plugin/status"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-big-play-btn")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="outter"></div>',e},bindEvent:function(){var r=this,e=(this._player.on(a.Player.Play,function(){r.addClass("playing"),r.removeClass("pause"),r._hide()}),this._player.on(a.Player.Pause,function(){var e,t;r._player._switchSourcing||(r.removeClass("playing"),r.addClass("pause"),e=r._player._status,t=r._player._seeking,e==s.ended)||e==s.error||e==s.playing||t||r._show()}),document.querySelector("#"+r.id()+" .outter"));o.on(this.el(),"mouseover",function(){n.addClass(e,"big-playbtn-hover-animation")}),o.on(this.el(),"mouseout",function(){n.removeClass(e,"big-playbtn-hover-animation")}),this.on(a.Private.PlayClick,function(){r._player.paused()?r._player.play(!0):r._player.pause(!0)}),this._player.on(a.Private.Play_Btn_Show,function(){r._show()}),this._player.on(a.Private.Play_Btn_Hide,function(){r._hide()})},_show:function(){n.css(this.el(),"display","block")},_hide:function(){n.css(this.el(),"display","none")}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../../player/base/plugin/status":90,"../component":103}],105:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("./util"),a=e("../../lang/index"),s=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.isOpened=!1,i.call(this,e,t),this.addClass("prism-cc-btn")},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var r=this;this.on("click",function(){n.addClass(r._el,"disabled");var e="on",t="";r.isOpened?(r._player._ccService.close(),e="off"):t=r._player._ccService.open().label,r._player.trigger(s.Private.CCChanged,e),r._player.trigger(s.Private.CCStateChanged,{value:e,lang:t}),r.disabledHandler&&clearTimeout(r.disabledHandler),r.disabledHandler=setTimeout(function(){n.removeClass(r._el,"disabled")},1e3),r._player.trigger(s.Private.MarkerTextHide)}),this._player.on(s.Private.CCChanged,function(e){e=e.paramData;r.isOpened="off"!=e}),o.registerTooltipEvent.call(this,this.el(),function(){return r.isOpened?a.get("CloseSubtitle"):a.get("OpenSubtitle")})},disposeUI:function(){this.disabledHandler&&(clearTimeout(this.disabledHandler),this.disabledHandler=null)}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],106:[function(e,t,r){var i=e("../component"),o=e("../../player/base/event/eventtype"),a=e("../../lib/event"),s=e("../../lib/dom"),l=e("../../lib/ua"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-controlbar"),this.initChildren(),this.onEvent()},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-controlbar-bg"></div>',e},onEvent:function(){var t,r=this.player(),e=r.options(),i=this,n=(a.on(this._el,"mouseover",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._el,"mouseout",function(e){var t=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(t,"display","none"),r.trigger(o.Private.ThumbnailHide)}),a.on(this._el,"click",function(e){r.trigger(o.Private.ControlBarClick,e)}),l.IS_IOS&&(a.on(this._el,"touchstart",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._player.tag,"touchstart",function(){var e=document.querySelector("#"+i.id()+" .prism-progress-cursor");s.css(e,"display","none"),r.trigger(o.Private.ThumbnailHide)})),this.timer=null,e.controlBarVisibility);"hover"==(n=1==e.controlBarForOver?"hover":n)?(i.hide(),t=function(){i._hideHandler&&clearTimeout(i._hideHandler),i._show(),r.fullscreenService.getIsFullScreen()&&i._hide()},r.on(o.Private.MouseOver,function(){t()}),a.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),a.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),r.on(o.Private.MouseOut,function(){i._hideHandler=setTimeout(function(){i.hide(),r.trigger(o.Private.HideBar),r.trigger(o.Private.ThumbnailHide),r.trigger(o.Private.VolumeVisibilityChange,""),r.trigger(o.Private.SettingListHide)})})):"click"==n?(r.on(o.Private.Click,function(e){r._isError||(e.preventDefault(),e.stopPropagation(),i._show(),i._hide())}),r.on(o.Player.Ready,function(){i._hide()}),r.on(o.Private.TouchStart,function(){i._show()}),r.on(o.Private.TouchMove,function(){i._show()}),r.on(o.Private.TouchEnd,function(){i._hide()})):"never"==n?i._hide():i._show()},_show:function(){this.show(),this._player.trigger(o.Private.ShowBar),this.timer&&(clearTimeout(this.timer),this.timer=null)},_hide:function(){var e=this,t=this.player().options(),t="never"==t.controlBarVisibility?0:t.showBarTime;this.timer=setTimeout(function(){e.hide(),e._player.trigger(o.Private.HideBar),e._player.trigger(o.Private.ThumbnailHide),e._player.trigger(o.Private.VolumeVisibilityChange,""),e._player.trigger(o.Private.SettingListHide)},t)},disposeUI:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this._hideHandler&&(clearTimeout(this._hideHandler),this._hideHandler=null)}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../component":103}],107:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-cover")},createEl:function(){var e=i.prototype.createEl.call(this,"div"),t=this.options().cover;return t?e.style.backgroundImage="url("+t+")":n.css(e,"display","none"),e},_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","none")},_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","block")},bindEvent:function(){this._player.on(o.Private.Cover_Show,this._show),this._player.on(o.Private.Cover_Hide,this._hide)}});t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],108:[function(e,t,r){var i=e("../component"),n=e("../../lib/util"),o=e("../../lib/dom"),a=e("../../lib/event"),s=e("../../lib/ua"),l=e("../../lang/index"),c=e("../../player/base/event/eventtype"),e=(e("../../lib/playerutil"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-ErrorMessage")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<div class='prism-error-content'><p></p></div><div class='prism-error-detail'><p></p></div><div class='prism-error-operation'><a class='prism-button prism-button-refresh'>"+l.get("Refresh_Text")+"</a><a class='prism-button prism-button-orange' target='_blank'>"+l.get("Detection_Text")+"</a></div><div class='prism-detect-info prism-center'><p class='errorCode'><span class='info-label'>code: </span><span class='info-content'></span></p><p class='vid'><span class='info-label'>vid: </span><span class='info-content'></span></p><p class='mediaAuth'><span class='info-label'>mediaAuth: </span><span class='info-content'></span></p><p class='uuid'><span class='info-label'>uuid: </span><span class='info-content'></span></p><p class='requestId'><span class='info-label'>requestId(player): </span><span class='info-content'></span></p><p class='vodRequestId'><span class='info-label'>requestId(vod): </span><span class='info-content'></span></p><p class='dateTime'><span class='info-label'>"+l.get("Play_DateTime")+": </span><span class='info-content'></span></p></div>",e},bindEvent:function(){var r=this,e=(r._player.on(c.Private.Error_Show,function(e){var t=null;r._player.getMonitorInfo&&(t=r._player.getMonitorInfo()),r._show(e,t)}),r._player.on(c.Private.Error_Hide,function(){r._hide()}),document.querySelector("#"+r.id()+" .prism-button-refresh")),t=(a.on(e,"click",function(){r._player.traceLog("error-display.js","refreshBtn::clicked"),location.reload(!0)}),s.IS_MOBILE&&(e=document.querySelector("#"+r.id()+" .prism-detect-info"),o.addClass(e,"prism-width90")),document.querySelector("#"+r.id()+" .prism-error-detail")),e=document.querySelector("#"+this.id()+" .prism-button-orange");o.css(t,"display","none"),a.on(e,"click",function(){o.css(t,"display","block")})},_show:function(e,t){var e=e.paramData,r=(e.mediaId&&e.mediaId,e.mediaAuth&&e.mediaAuth,e.display_msg||e.error_msg),r=(document.querySelector("#"+this.id()+" .prism-error-content p").innerHTML=r,document.querySelector("#"+this.id()+" .errorCode .info-content").innerText=e.error_code,e.diagnosis_info),r=(r?document.querySelector("#"+this.id()+" .prism-error-detail p").innerHTML=r:(r=document.querySelector("#"+this.id()+" .prism-button-orange"),o.css(r,"display","none")),document.querySelector("#"+this.id()+" .vid")),r=(e.mediaId?(o.css(r,"display","block"),document.querySelector("#"+this.id()+" .vid .info-content").innerText=e.mediaId):o.css(r,"display","none"),document.querySelector("#"+this.id()+" .mediaAuth")),e=(e.mediaAuth?(o.css(r,"display","block"),document.querySelector("#"+this.id()+" .mediaAuth .info-content").innerText=e.mediaAuth):o.css(r,"display","none"),e.uuid?document.querySelector("#"+this.id()+" .uuid .info-content").innerText=e.uuid:(r=document.querySelector("#"+this.id()+" .uuid"),o.css(r,"display","none")),e.requestId?document.querySelector("#"+this.id()+" .requestId .info-content").innerText=e.requestId:(r=document.querySelector("#"+this.id()+" .requestId"),o.css(r,"display","none")),e.serverRequestId?document.querySelector("#"+this.id()+" .vodRequestId .info-content").innerText=e.serverRequestId:(r=document.querySelector("#"+this.id()+" .vodRequestId"),o.css(r,"display","none")),document.querySelector("#"+this.id()+" .dateTime .info-content").innerText=n.formatDate(new Date,"yyyy-MM-dd HH:mm:ss"),document.querySelector("#"+this.id())),i=(o.css(e,"display","block"),this);i.playHideHandler&&clearTimeout(i.playHideHandler),i.playHideHandler=setTimeout(function(){i._player.trigger("play_btn_hide")})},_hide:function(){var e=document.querySelector("#"+this.id());o.css(e,"display","none")},disposeUI:function(){this.playHideHandler&&(clearTimeout(this.playHideHandler),this.playHideHandler=null)}}));t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],109:[function(e,t,r){var i=e("../component"),n=e("../../player/base/event/eventtype"),o=(e("../../lib/event"),e("../../lib/ua")),a=e("../../lang/index"),s=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-fullscreen-btn")},bindEvent:function(){var e=this;this._player.on(n.Player.RequestFullScreen,function(){o.IS_IOS||e.addClass("fullscreen")}),this._player.on(n.Player.CancelFullScreen,function(){e.removeClass("fullscreen")}),s.registerTooltipEvent.call(this,this.el(),function(){return e._player.fullscreenService.getIsFullScreen()?a.get("ExistFullScreen"):a.get("Fullscreen")}),this.on("click",function(){e._player.fullscreenService.getIsFullScreen()?e._player.fullscreenService.cancelFullScreen():e._player.fullscreenService.requestFullScreen(),e._player.trigger(n.Private.MarkerTextHide)})}});t.exports=e},{"../../lang/index":18,"../../lib/event":26,"../../lib/ua":39,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],110:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),a=e("../../lib/ua.js"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-hide")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML=a.IS_ANDROID_FIREFOX?'<div class="circle-androidFirefox"></div> <div class="circle1-androidFirefox"></div>':'<div class="circle"></div> <div class="circle1"></div>',e},_loading_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-loading");t&&(n.removeClass(t,"prism-loading"),n.addClass(t,"prism-hide"))},_loading_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-hide");t&&(n.removeClass(t,"prism-hide"),n.addClass(t,"prism-loading"))},bindEvent:function(){this._player.on(o.Private.H5_Loading_Show,this._loading_show),this._player.on(o.Private.H5_Loading_Hide,this._loading_hide)}});t.exports=e},{"../../lib/dom":25,"../../lib/ua.js":39,"../../player/base/event/eventtype":63,"../component":103}],111:[function(e,t,r){var i=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=(e("../../lib/event"),e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-info-display")},createEl:function(){return i.prototype.createEl.call(this,"p")},bindEvent:function(){var r=this;r._player.on(o.Private.Info_Show,function(e){var t=document.querySelector("#"+r.id()),e=e.paramData;e&&(void 0!==e.text&&e.text?(t.innerHTML=e.text,void 0!==e.duration&&e.duration&&(r.handler&&clearTimeout(r.handler),r.handler=setTimeout(function(){n.css(t,"display","none")},e.duration)),"lb"==e.align?(n.addClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")):"tc"==e.align?(n.addClass(t,"prism-info-top-center"),n.removeClass(t,"prism-info-left-bottom")):(n.removeClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")),e.isBlack?n.addClass(t,"prism-info-black"):n.removeClass(t,"prism-info-black")):t.innerHTML=e,n.css(t,"display","block"))}),r._player.on(o.Private.Info_Hide,function(e){var t=document.querySelector("#"+r.id());n.css(t,"display","none")})},disposeUI:function(){this.handler&&(clearTimeout(this.handler),this.handler=null)}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],112:[function(e,t,r){var i=e("../component"),n=e("../../lang/index"),o=e("../../lib/dom"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-license-watermark")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML=this.genContent(),e},bindEvent:function(){var t=this;this._player.on(a.Private.LicenseTipShow,function(e){t._show(e)}),this._player.on(a.Private.LicenseTipHide,function(){t._hide()})},_show:function(e){var t=document.querySelector("#"+this.id()+".prism-license-watermark");t.innerHTML=this.genContent(e.paramData.message),o.css(t,"display","flex")},_hide:function(){var e=document.querySelector("#"+this.id()+".prism-license-watermark");o.css(e,"display","none")},genContent:function(e){var t="";try{t=this._player._monitor.sessionId}catch(e){}return'<div class="no-authorization">'+(e||n.get("License_No_Authorization"))+'</div><div class="license-request-id">'+t+'</div><a class="apply-button" target="_blank" href="https://help.aliyun.com/document_detail/434250.html">'+n.get("License_Click_To_Apply")+"</a>"}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],113:[function(e,t,r){var i=e("../component"),n=e("./util"),o=(e("../../lib/util"),e("../../lib/dom")),a=e("../../lib/event"),s=e("../../lib/playerutil"),l=e("../../lang/index"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-live-display")},createEl:function(){var e=i.prototype.createEl.call(this,"p");return e.innerText="LIVE",s.isLiveShift(this._player._options)&&o.addClass(e,"live-shift-display"),e},bindEvent:function(){var e=document.querySelector("#"+this.id()),t=this;s.isLiveShift(this._player._options)&&(a.on(e,"click",function(){t._player._liveshiftService.switchToLive()}),n.registerTooltipEvent.call(this,this.el(),l.get("SwitchToLive")))}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/playerutil":37,"../../lib/util":41,"../component":103,"./util":132}],114:[function(e,t,r){var i=e("../component"),n=e("../../player/base/event/eventtype"),o=e("./util"),a=e("../../lang/index"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-play-btn")},bindEvent:function(){var t=this;this._player.on(n.Player.Play,function(){t.addClass("playing")}),this._player.on(n.Player.Pause,function(){t.removeClass("playing")}),this.on(n.Private.PlayClick,function(){var e;t._player.paused()?(e=t._player.getCurrentTime(),(t._player.getDuration()<=e||t._player._ended||t._player.exceedPreviewTime(e))&&!t._player._splayer&&t._player.seek(t._player._getPlayStartTime()),t._player.play(!0),t.addClass("playing")):(t._player.pause(!0),t.removeClass("playing")),t._player.trigger(n.Private.MarkerTextHide)}),o.registerTooltipEvent.call(this,this.el(),function(){return t._player.paused()?a.get("Play"):a.get("Pause")})}});t.exports=e},{"../../lang/index":18,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],115:[function(e,t,r){var i=e("../component"),a=e("../../lib/dom"),s=(e("../../lib/constants"),e("../../lib/event")),l=e("../../lib/ua"),c=e("../../lib/function"),n=e("../../lang/index"),u=e("../../config"),o=e("../../lib/util"),p=(e("../../lib/playerutil"),e("../../player/base/event/eventtype")),d=e("./util").debounce,e=i.extend({init:function(e,t){i.call(this,e,t),this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this._thumbnailHideTimer=null,this.addClass("prism-progress"),e.getOptions().disableSeek&&this.addClass("prism-progress-disabled")},createEl:function(){var e=i.prototype.createEl.call(this);return e.innerHTML='<div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-marker"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p><div class="prism-progress-mask-left"></div><div class="prism-progress-mask-right"></div>',e},bindEvent:function(){function t(e){r._progressDown=e}var e=this,r=this,i=(this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this._player._options.id+" .prism-progress-time"),this.thumbnailNode=document.querySelector(".prism-thumbnail"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),document.querySelector("#"+this.id())),n=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),o=(this.markerNode=document.querySelector("#"+this.id()+" .prism-progress-marker"),this.maskNodeLeft=document.querySelector("#"+this.id()+" .prism-progress-mask-left"),this.maskNodeRight=document.querySelector("#"+this.id()+" .prism-progress-mask-right"),"");this._player._options.skinsDomain=this._player._options.assetPrefix||this._player._options.skinsDomain,o=this._player._options.skinsDomain?this._player._options.skinsDomain+"/skins/default/img/dragcursor.png":u.domain?"https://"+u.domain+u.path+u.h5Version+"/skins/default/img/dragcursor.png":"/build/skins/default/img/dragcursor.png",n&&(n.src=o),s.on(this.cursorNode,"mousedown",function(e){r._onMouseDown(e)}),s.on(this.cursorNode,"touchstart",function(e){r._onMouseDown(e)}),s.on(i,"mousemove",function(e){r._progressMove(e)}),s.on(i,"touchmove",function(e){r._progressMove(e)});s.on(i,"mousedown",function(e){t(!0)}),s.on(i,"touchstart",function(e){t(!0)}),s.on(i,"mouseup",function(e){t(!1)}),s.on(i,"touchend",function(e){t(!1),r._moving&&l.IS_MOBILE&&(r._player.trigger(p.Private.EndStart,{toTime:r._lastSeekTime}),r._moving=!1)}),s.on(this._el,"click",function(e){r._onMouseClick(e)}),this._player.on(p.Private.HideProgress,function(e){r._hideProgress(e)}),this._player.on(p.Private.CancelHideProgress,function(e){r._cancelHideProgress(e)}),this._player.on(p.Private.HideBar,function(e){r._player._seeking=!1}),this._player.on(p.Video.LoadedMetadata,function(){e._updateMaskNode()}),this._player.on(p.Private.UpdateWatchTime,function(){e._updateMaskNode()}),s.on(i,p.Private.MouseOver,function(e){r._onMouseOver(e)}),s.on(i,p.Private.MouseOut,function(e){r._onMouseOut(e)}),s.on(this.controlNode,p.Private.MouseLeave,function(e){r._offMouseUp()}),s.on(this.maskNodeLeft,"mouseenter",function(){r._offMouseUp()}),s.on(this.maskNodeRight,"mouseenter",function(){r._offMouseUp()}),l.IS_PC?(n=d(function(){a.addClass(i,"prism-progress-hover"),a.addClass(r.cursorNode,"cursor-hover")},100),s.on(i,"mouseover",n),o=d(function(){a.removeClass(i,"prism-progress-hover"),a.removeClass(r.cursorNode,"cursor-hover"),r._progressDown=!1},100),s.on(i,"mouseout",o)):(a.addClass(i,"prism-progress-hover"),a.addClass(r.cursorNode,"cursor-hover")),this.bindTimeupdate=c.bind(this,this._onTimeupdate),this._player.on(p.Player.TimeUpdate,this.bindTimeupdate),l.IS_IPAD?this.interval=setInterval(function(){r._onProgress()},500):this._player.on(p.Video.Progress,function(){r._onProgress()}),this._player.on(p.Private.UpdateProgress,function(e){r._updateProgressBar(r.playedNode,e.paramData.targetTime)}),this._player.on(p.Private.UpdateCursorPosition,function(e){r._updateCursorPosition(e.paramData.targetTime)})},_progressMove:function(e){e.preventDefault();var t,r,i=this._getSeconds(e);i!=1/0&&(t=o.formatTime(i),r=this._getDistance(e),this.cursorNode)&&(this._player.trigger(p.Private.ThumbnailShow,{time:i,formatTime:t,left:r,progressWidth:this.el().offsetWidth}),this._autoHideThumbnail(),this._progressDown)&&this._onMouseMove(e)},_hideProgress:function(e){s.off(this.cursorNode,"mousedown"),s.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;s.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),s.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseInProgress||this._updateCursorPosition(this._player.getCurrentTime()),this._mouseInProgress=!0},_onMouseOut:function(e){var t=this;this._cursorHideHandler&&clearTimeout(this._cursorHideHandler),this._cursorHideHandler=setTimeout(function(){t._player.trigger(p.Private.ThumbnailHide),t._mouseInProgress=!1})},_getSeconds:function(e){var e=this._getDistance(e),t=this.el().offsetWidth,e=this._player.getDuration()?e/t*this._player.getDuration():0;return e=(e=e<0?0:e)>this._player.getDuration()?this._player.getDuration():e},_getDistance:function(e){if(e.touches&&e.touches[0]){for(var t=this.el().offsetLeft,r=this.el();r.offsetParent;){var r=r.offsetParent,i=a.getTranslateX(r);t+=r.offsetLeft+i}r.tagName&&"body"===r.tagName.toLowerCase()&&(t+=document.getElementsByTagName("html")[0].offsetLeft);var n=(e.touches?e.touches[0]:e).pageX-t;return n=n<0?0:n}return n=e.offsetX,e.target===this.cursorNode||e.target.offsetParent===this.cursorNode?n+=this.cursorNode.offsetLeft:e.target!==this._el&&e.target.offsetParent!==this._el&&e.target.offsetParent===this.markerNode&&(n+=e.target.offsetLeft),n},_onMouseClick:function(e){var t=this,r=t._getSeconds(e);t._canSeekable(r)?t._player._canSeek(r+t._posOffset)&&(t._player.exceedPreviewTime(r)&&(r=t._player.getPreviewTime()),this._seekTime=r,t._updateProgressBar(this.playedNode,r),t._updateCursorPosition(r),this._mouseClickTimeHandle&&clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=setTimeout(function(){t._player._seeking=!0,t._mouseDown&&!l.IS_MOBILE||(t._player.trigger(p.Private.SeekStart,{fromTime:t._player.getCurrentTime()}),t._player.trigger(p.Private.EndStart,{toTime:r})),t._player.seek(r),t._mouseDown=!1,t._mouseClickTimeHandle=null,t._inWaitingSeek=!1},0),this._inWaitingSeek=!0):t._player.trigger(p.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseDown:function(e){var t=this,e=(e.preventDefault(),this._mouseDown=!0,l.IS_PC&&this._player.trigger(p.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),s.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),s.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),s.on(this.controlNode,"mouseup",function(e){t._onControlBarMouseUp(e)}),s.on(this.controlNode,"touchend",function(e){t._onControlBarMouseUp(e)}),t._getSeconds(e));t._canSeekable(e)?t._player.exceedPreviewTime(e)&&t._player.getPreviewTime():t._player.trigger(p.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseUp:function(e){this._onMouseUpIntern(e)},_onControlBarMouseUp:function(e){this._onMouseUpIntern(e)},_onPlayerMouseUp:function(e){this._onMouseUpIntern(e)},_offMouseUp:function(){s.off(this.controlNode,"mousemove"),s.off(this.controlNode,"touchmove"),s.off(this.controlNode,"mouseup"),s.off(this.controlNode,"touchend")},_onMouseUpIntern:function(e){e.preventDefault(),this._offMouseUp();e=this._getDistance(e)/this.el().offsetWidth*this._player.getDuration();this._player.getDuration();isNaN(e)||this._player.seek(e),l.IS_PC&&this._player.trigger(p.Private.EndStart,{toTime:e}),this._autoHideThumbnail()},_onMouseMove:function(e){e.preventDefault(),!this._moving&&l.IS_MOBILE&&(this._player.trigger(p.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),this._moving=!0);e=this._getSeconds(e);this._player.exceedPreviewTime(e)&&(e=this._player.getPreviewTime()),this._player.seek(e),this._updateProgressBar(this.playedNode,e),this._updateCursorPosition(e),this._lastSeekTime=e},_onTimeupdate:function(e){var t=this._player._options.source,t=this._getUrlSuffix(t),r=!1;"mp4"===t&&(l.IS_MAC_SAFARI&&(r=!0),l.IS_IOS&&(r=!0),l.IS_IE11)&&(r=!0),"m3u8"===t&&l.IS_IE11&&(r=!0),"audio"==this._player._options.mediaType&&l.IS_IOS&&(this._player._seeking=!1),(this._inWaitingSeek||this._progressDown)&&!r||(this._updateProgressBar(this.playedNode,this._player.getCurrentTime()),this._updateCursorPosition(this._player.getCurrentTime()),this._player.trigger(p.Private.UpdateProgressBar,{time:this._player.getCurrentTime()}))},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var r=this._player.getDuration();1!=this._player._switchSourcing&&r&&(-1!=this._seekTime&&(this._player.getCurrentTime()>=this._seekTime||!this._player._seeking?this._seekTime=-1:t=this._seekTime),1<(t=t/r)&&(t=1),e)&&a.css(e,"width",100*t+"%")},_updateCursorPosition:function(e){var t,r,i,n=this._player.getDuration();1!=this._player._switchSourcing&&n&&(t=1,r=(this.cursorNode.offsetWidth||16)/2/(i=this._player.el().clientWidth),0!=i&&(t=1-r),i=(i=e/n-r)<0?0:i,this.cursorNode)&&(t<i?(a.css(this.cursorNode,"right","0px"),a.css(this.cursorNode,"left","auto")):(a.css(this.cursorNode,"right","auto"),a.css(this.cursorNode,"left",100*i+"%")))},_getUrlSuffix:function(e){return!e||"string"!=typeof e?"":((e=(e.split("?")[0]||"").split("."))[e.length-1]||"").toLowerCase()},_autoHideThumbnail:function(){var e=this;l.IS_MOBILE&&(this._thumbnailHideTimer&&clearTimeout(this._thumbnailHideTimer),this._thumbnailHideTimer=setTimeout(function(){e._moving||e._player.trigger(p.Private.ThumbnailHide)},2e3))},_makeUninteractible:function(t){["click","mousedown","mousemove","mouseup","touchstart","touchmove","touchend"].forEach(function(e){s.on(t,e,function(e){e.stopPropagation()})})},_updateMaskNode:function(){var e,t=this._player._getSubVideoConfig();t.start||t.end?(a.css(this.maskNodeLeft,"width","0px"),a.css(this.maskNodeRight,"width","0px")):((t=this._player._getWatchTimeConfig()).watchStartTime&&t.watchEndTime?(e=100*Math.min(t.watchStartTime/this._player.getDuration(),1)+"%",a.css(this.maskNodeLeft,"width",e)):a.css(this.maskNodeLeft,"width","0px"),t.watchEndTime?(e=100*(1-Math.min(t.watchEndTime/this._player.getDuration(),1))+"%",a.css(this.maskNodeRight,"width",e)):a.css(this.maskNodeRight,"width","0px"),this._makeUninteractible(this.maskNodeLeft),this._makeUninteractible(this.maskNodeRight))},disposeUI:function(){this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this.cursorNodeHandler&&(clearTimeout(this.cursorNodeHandler),this.cursorNodeHandler=null),this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseClickTimeHandle&&(clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=null),this.interval&&(clearInterval(this.interval),this.interval=null)}});t.exports=e},{"../../config":7,"../../lang/index":18,"../../lib/constants":22,"../../lib/dom":25,"../../lib/event":26,"../../lib/function":28,"../../lib/playerutil":37,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],116:[function(e,t,r){var i=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-marker-text")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<p></p>",e},bindEvent:function(){var i=this;i._player.on(a.Private.MarkerTextShow,function(e){var t=e.paramData,r=a.Player.MarkerDotOver;i._player.trigger(r,e.paramData),t.progressMarker.isCustomized?i._player.trigger(a.Private.LifeCycleChanged,{type:r,data:e.paramData}):(i._thumbnailShowHanlde&&(n.css(i.el(),"display","none"),clearTimeout(i._thumbnailShowHanlde)),i._thumbnailShowHanlde=setTimeout(function(){var e;document.querySelector("#"+i.id()+" p").innerText=t.progressMarker.text||"",t&&(n.css(i.el(),"display","block"),e=i._player.el().offsetWidth,left=e*t.left,width=i.el().offsetWidth,left+width>e?(n.css(i.el(),"right","0px"),n.css(i.el(),"left","auto")):(left=(left-=width/2)<0?0:left,n.css(i.el(),"right","auto"),n.css(i.el(),"left",left+"px")))},30))}),i._player.on(a.Private.MarkerTextHide,function(e){i._player.trigger(a.Player.MarkerDotOut),i._player.trigger(a.Private.LifeCycleChanged,{type:a.Player.MarkerDotOut,data:""}),i._thumbnailShowHanlde&&clearTimeout(i._thumbnailShowHanlde),n.css(i.el(),"display","none")}),o.on(i._player.tag,"click",function(e){e&&e.target==e.currentTarget&&i._player.trigger(a.Private.MarkerTextHide)}),o.on(i._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&i._player.trigger(a.Private.MarkerTextHide)})},disposeUI:function(){this._thumbnailShowHanlde&&(clearTimeout(this._thumbnailShowHanlde),this._thumbnailShowHanlde=null)}});t.exports=e},{"../../lib/dom":25,"../../lib/event":26,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],117:[function(e,t,r){var i=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),n=(e("../../../lib/event"),e("./util"),e("../../../lang/index")),l=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=n.get("AudioTrack"),this.Type="audio",this.Tooltip=n.get("AudioTrack_Switch_To"),i.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var n=this,o=document.querySelector("#"+n.id()+" .selector-list");document.querySelector("#"+n.id()+" .header");n._player.on(l.Private.ChangeURL,function(){n._hasGeneratedList=!1}),this._player.on(l.Player.AudioTrackSwitch,function(){s.addClass(o,"disabled")}),this._player.on(l.Player.AudioTrackSwitched,function(){s.removeClass(o,"disabled")}),n._player.on(l.Player.AudioTrackReady,function(e){!n._hasGeneratedList&&(n._clear(),e=e.paramData)&&(a.each(e,function(e,t){var r=s.createEl.call(n,"li",{key:e.value,text:e.text}),i=s.createEl.call(n,"span",{key:e.value,text:e.text});i.innerText=e.text,r.appendChild(i),o.appendChild(r)}),n._hasGeneratedList=!0)})},execute:function(e){this._player._audioTrackService.switch(e)}});t.exports=e},{"../../../lang/index":18,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],118:[function(e,t,r){var i=e("../../component"),n=(e("../../../lib/dom"),e("../../../player/base/event/eventtype")),o=e("./list"),a=e("../../../lang/index"),s=e("../util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass(t.className||"prism-setting-btn"),this._settingList=new o(e,t),e.addChild(this._settingList,t)},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var e=this;this.on("click",function(){e._settingList.isOpened?e._player.trigger(n.Private.SettingListHide):e._player.trigger(n.Private.SettingListShow),e._player.trigger(n.Private.SelectorHide),e._player.trigger(n.Private.MarkerTextHide),e._player.trigger(n.Private.VolumeVisibilityChange,"")}),s.registerTooltipEvent.call(this,this.el(),a.get("Setting"))}});t.exports=e},{"../../../lang/index":18,"../../../lib/dom":25,"../../../player/base/event/eventtype":63,"../../component":103,"../util":132,"./list":121}],119:[function(e,t,r){var i=e("./selector"),s=e("../../../lib/object"),l=e("../../../lib/dom"),n=(e("../../../lib/event"),e("./util"),e("../../../lib/cookie")),o=e("../../../lib/constants"),a=e("../../../lang/index"),c=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=a.get("Subtitle"),this.Type="cc",this.Tooltip=a.get("CC_Switch_To"),i.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var r=this;this._player.on(c.Private.CCStateChanged,function(e){var t=e.paramData.value,e=e.paramData.lang,e=("on"==t&&e?r._backCCText=e:"off"==t&&""==r._backCCText&&(r._backCCText=r._previousSelection.text),"Off");"on"==t&&(e=r._backCCText),r._player.trigger(c.Private.SelectorUpdateList,{type:"cc",text:e})})},generateList:function(n){var o=document.querySelector("#"+this.id()+" .selector-list"),e=this._player._ccService.tracks,a=this;s.each(e,function(e,t){var r=l.createEl.call(this,"li",{key:e.value,text:e.text}),i=l.createEl.call(this,"span",{key:e.value,text:e.text});e.text==n&&(l.addClass(r,"current"),a._previousSelection=r),i.innerText=e.text,r.appendChild(i),o.appendChild(r)})},execute:function(e){this._backCCText="",n.set(o.SelectedCC,e,365),this._player._ccService.switch(e)}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],120:[function(e,t,r){t.exports={CC:e("./cc"),Speed:e("./speed"),Quality:e("./quality"),Audio:e("./audio")}},{"./audio":117,"./cc":119,"./quality":122,"./speed":124}],121:[function(e,t,r){var o=e("../../component"),n=e("../../../lib/dom"),a=e("../../../lib/ua"),s=e("../../../lib/event"),l=e("../../../player/base/event/eventtype"),i=e("./export"),c=e("./util"),u=e("../../../lang/index"),e=o.extend({init:function(e,t){for(var r in this.isOpened=!1,o.call(this,e,t),this.addClass(t.className||"prism-setting-list"),i){r=new i[r](e,t);e.addChild(r,t)}},createEl:function(){var e=o.prototype.createEl.call(this,"div"),t="<div class='prism-setting-item prism-setting-{type}' type={type}><div class='setting-content'><span class='setting-title'>{value}</span><span class='array'></span><span class='current-setting'></span></div></div>",r=t.replace(/{type}/g,"speed").replace("{value}",u.get("Speed")),i=t.replace(/{type}/g,"cc").replace("{value}",u.get("Subtitle")),n=t.replace(/{type}/g,"audio").replace("{value}",u.get("AudioTrack")),t=t.replace(/{type}/g,"quality").replace("{value}",u.get("Quality"));return e.innerHTML=r+i+n+t,e},bindEvent:function(){function t(){i._player.trigger(l.Private.SettingListHide),i.isOpened=!1}function r(e){e&&e.type&&(document.querySelector("#"+i.id()+" .prism-setting-"+e.type+" .current-setting").innerText=e.text||"")}var i=this,e=(this._player.on(l.Private.SettingListShow,function(e){i.isOpened=!0;e=e.paramData;r(e),n.css(i.el(),"display","block")}),this._player.on(l.Private.UpdateToSettingList,function(e){e=e.paramData;r(e)}),this._player.on(l.Private.SelectorUpdateList,function(e){e=e.paramData;r(e),i._player.trigger(l.Private.SelectorValueChange,e)}),this._player.on(l.Private.SettingListHide,function(){i.isOpened=!1,n.css(i.el(),"display","none")}),s.on(this.el(),"click",function(e){i._player.trigger(l.Private.SettingListHide);var e=e.srcElement||e.target;(e=c.findItemElementForList(e))&&(e=e.getAttribute("type"),i._player.trigger(l.Private.SelectorShow,{type:e}))}),a.IS_MOBILE?"touchleave":"mouseleave");s.on(this.el(),e,function(){t()}),s.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),s.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),this._player.on(l.Private.QualityChange,function(e){var t,r,e=e.paramData;e.levelSwitch&&(t=document.querySelector("#"+i.id()+" .prism-setting-quality .current-setting"),r=u.get("Auto"),e=e.desc,-1<t.innerText.indexOf(r))&&(e&&-1<String(e).indexOf("(")?r=r+"-"+e:r+=e?"("+e+")":"",t.innerText=r)})}});t.exports=e},{"../../../lang/index":18,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/ua":39,"../../../player/base/event/eventtype":63,"../../component":103,"./export":120,"./util":125}],122:[function(e,t,r){var i=e("./selector"),s=e("../../../lib/object"),c=(e("../../../lib/util"),e("../../../lib/cookie")),l=e("../../../lib/dom"),u=(e("../../../lib/event"),e("../../../lib/constants")),p=e("../../../lang/index"),o=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){this.Name=p.get("Quality"),this.Type="quality",this.Tooltip=p.get("Quality_Switch_To"),i.call(this,e,t),this._isMasterLevel=!1},showTip:function(e,t){this._player.trigger(o.Private.Info_Show,{text:e,duration:t,align:"lb"})},bindEvent:function(){this.bindCommonEvent();var n=this,e=(this._player.on(o.Private.QualityChange,function(e){var t,r,i=0<n._player._urls.length?n._player._urls:n._player._qualityService.levels;(data=e.paramData).levelSwitch?(t=data.desc||data.bitrate,n._autoSWitchDesc=t,n._updateText(t)):0<n._player._currentPlayIndex&&(n._autoSWitchDesc="",r=i[(t=n._player._currentPlayIndex)-1].desc,i=i[t].desc,n.showTip(r+e.paramData+i,1e3),n._player.trigger(o.Private.SelectorValueChange,{type:n.Type,text:i}))}),document.querySelector("#"+n.id()+" .selector-list"));this._player.on(o.Player.LevelSwitch,function(){l.addClass(e,"disabled")}),this._player.on(o.Player.LevelSwitched,function(){l.removeClass(e,"disabled")})},generateList:function(e){var n,t=this._player._urls,o=this._player._currentPlayIndex,r=this._player._qualityService.levels,a=(0<r.length&&(this._isMasterLevel=!0,this._player._options.isVBR)&&(o=(t=r).length-1),document.querySelector("#"+this.id()+" .selector-list"));0<t.length&&(n=this,s.each(t,function(e,t){var r,i;(e.desc||e.bitrate)&&(r=l.createEl.call(this,"li",{key:e.Url,index:t,text:e.desc||e.bitrate}),i=l.createEl.call(this,"span",{key:e.Url,index:t,text:e.desc||e.bitrate}),t==o&&(l.addClass(r,"current"),n._previousSelection=r),i.innerText=e.desc||e.bitrate,r.appendChild(i),a.appendChild(r))})),this._autoSWitchDesc&&this._updateText(this._autoSWitchDesc)},execute:function(e){if(this._player._switchSourcing=!0,this._isMasterLevel){for(var t,r=this._player._qualityService.levels,i=0;i<r.length;i++)r[i].Url==e&&r[i].desc!=p.get("Auto")&&(t=r[i],this._resetAutoText());this._player._switchLevel?this._player._switchLevel(e,t):(n=this._player.autoplay||"pause"!=this._player._status,this._player._loadByUrlInner(e,this._player.getCurrentTime(),n))}else{for(var n,o=this._player._urls.length,a=this._player._currentPlayIndex,s=-1,i=0;i<o;i++)if(this._player._urls[i].Url==e){s=this._player._currentPlayIndex=i,c.set(u.SelectedStreamLevel,this._player._urls[i].definition,365);break}a!=s&&-1<s&&(a=this._player.getCurrentTime(),n=this._player.autoplay||"pause"!=this._player._status,this._player.autoplay||0!=a||(n=!1),this._player._switchLevel&&!this._player._options.isLive&&this._player._options.isVBR?this._player._switchLevel(e):this._player._loadByUrlInner(e,a,n))}var l=this;setTimeout(function(){l._player._switchSourcing=!1})},_updateText:function(e){var t=document.querySelector("#"+this.id()+" .selector-list .current"),r=document.querySelector("#"+this.id()+" .selector-list .current span"),i=p.get("Auto");r&&r.innerText&&-1<r.innerText.indexOf(i)&&(e&&-1<String(e).indexOf("(")?i=i+"-"+e:i+=e?"("+e+")":"",r.innerText=i,t)&&(t.text=i)},_resetAutoText:function(){for(var e=p.get("Auto"),t=document.querySelectorAll("#"+this.id()+" .selector-list li"),r=0;r<t.length;r++){var i=t[r],n=i.querySelector("span");if(-1<n.innerText.indexOf(e)){n.innerText=e,i.text=e;break}}}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123}],123:[function(e,t,r){var i=e("../../component"),n=(e("../../../lib/object"),e("../../../lib/util"),e("../../../lib/ua")),s=(e("../../../lib/cookie"),e("../../../lib/dom")),o=e("../../../lib/event"),l=e("./util"),c=(e("../../../lang/index"),e("../../../player/base/event/eventtype")),e=i.extend({init:function(e,t){this._hasGeneratedList=!1,this._previousSelection=null,this._backupSelector="",i.call(this,e,t),this.className=t.className||"prism-"+this.Type+"-selector prism-setting-selector",this.addClass(this.className)},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="header"><div class="left-array"></div><span>'+this.Name+'</span></div><ul class="selector-list"></ul>',e},bindEvent:function(){this.bindCommonEvent()},bindCommonEvent:function(){var a=this,e=document.querySelector("#"+a.id()+" .selector-list"),t=document.querySelector("#"+a.id()+" .header");function r(){a._hasGeneratedList||(a._clear(),a.generateList(a._backupSelector),a._backupSelector="",a._hasGeneratedList=!0)}this._player.on(c.Private.ChangeURL,function(){a._hasGeneratedList=!1}),o.on(t,"click",function(){a._player.trigger(c.Private.SelectorHide),a._player.trigger(c.Private.SettingListShow,{type:a.Type,text:a._previousSelection?a._previousSelection.text:""})}),o.on(e,"click",function(e){var e=e.srcElement||e.target,t=e.key,r=e.text;a._player.traceLog("selector.js","selector::click#"+a.Name+"#"+a.Type+"#"+r+"#"+t),a._player.trigger(c.Player.SettingSelected,{name:a.Name,type:a.Type,text:r,key:t}),void 0!==r&&(a._previousSelection&&s.removeClass(a._previousSelection,"current"),a._previousSelection=l.findliElementForSelector(e),s.addClass(a._previousSelection,"current"),a.execute&&a.execute(t),e=a.Tooltip+"<span>"+r+"</span>",a._player.trigger(c.Private.Info_Show,{text:e,duration:3e3,align:"lb"}))}),a._player.on(c.Private.SelectorHide,function(){i()}),a._player.on(c.Private.SelectorValueChange,function(e){var t=e.paramData;if(t&&t.type==a.Type){var r=document.querySelectorAll("#"+a.id()+" .selector-list li");if(r){for(var i=r.length,n=(0==i&&(a._backupSelector=t.text),-1),o=0;o<i;o++)if(r[o].text==t.text){n=o;break}a._previousSelection&&(s.removeClass(a._previousSelection,"current"),a._previousSelection=null),-1!==n?(s.addClass(r[n],"current"),a._previousSelection=r[n]):a._previousSelection||console.warn("UI Not Sync: No Such Option '"+t.text+"' in '"+t.type+"'")}}}),a._player.on(c.Private.SettingListShow,function(){r()}),a._player.on(c.Private.SelectorGenerateList,function(e){var t=e.paramData&&e.paramData.type,e=e.paramData&&e.paramData.value;t===a.Type&&(a._hasGeneratedList=!1,e&&(a._backupSelector=e),r())}),a._player.on(c.Private.SelectorShow,function(e){(e=e.paramData).type==a.Type&&(e=document.querySelector("#"+a._player.id()+" .prism-"+e.type+"-selector"),a._hasGeneratedList||r(),s.css(e,"display","block"))});var i=function(){s.css(a.el(),"display","none"),a._player.trigger(c.Private.UpdateToSettingList,{type:a.Type,text:a._previousSelection?a._previousSelection.text:""})},t=n.IS_MOBILE?"touchleave":"mouseleave";o.on(this.el(),t,function(){i()}),o.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&i()}),o.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&i()})},setSelected:function(e){},generateList:function(){},_clear:function(){document.querySelector("#"+this.id()+" .selector-list").innerHTML=""}});t.exports=e},{"../../../lang/index":18,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/ua":39,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"../../component":103,"./util":125}],124:[function(e,t,r){var i=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),l=(e("../../../lib/event"),e("./util"),e("../../../lib/constants")),n=e("../../../lang/index"),o=e("../../../player/base/event/eventtype"),e=i.extend({init:function(e,t){var r=this;this.Name=n.get("Speed"),this.Type="speed",this.Tooltip=n.get("Speed_Switch_To"),this.speedPreStore=1,this.listGenerated=!1,i.call(this,e,t),this._player.on(o.Private.PlaybackRateChanged,function(e){r.speedPreStore=e.paramData,r.listGenerated&&r._player.trigger(o.Private.SelectorUpdateList,{type:"speed",text:e.paramData})})},generateList:function(){var n=document.querySelector("#"+this.id()+" .selector-list"),e=this._player._options.speedLevels,e=this.verifySpeedLevels(e)?e:l.SpeedLevels,o=this;a.each(e,function(e,t){var r=s.createEl.call(this,"li",{key:e.key,text:e.text}),i=s.createEl.call(this,"span",{key:e.key,text:e.text});i.innerText=e.text,e.key==o.speedPreStore&&(s.addClass(r,"current"),o._previousSelection=r),r.appendChild(i),n.appendChild(r)}),this.listGenerated=!0},execute:function(e){this._player.setSpeed(e,!1)},verifySpeedLevels:function(e){var t=0;if(e&&e.length)try{e.forEach(function(e){"number"==typeof e.key&&e.key==e.key&&0<=e.key&&t++})}catch(e){return!1}return e&&t===e.length}});t.exports=e},{"../../../lang/index":18,"../../../lib/constants":22,"../../../lib/cookie":23,"../../../lib/dom":25,"../../../lib/event":26,"../../../lib/object":35,"../../../lib/util":41,"../../../player/base/event/eventtype":63,"./selector":123,"./util":125}],125:[function(e,r,t){r.exports.findliElementForSelector=function(e){var t;return e&&"li"!=e.tagName.toLowerCase()?(t=e.parentElement)&&"li"==t.tagName.toLowerCase()?t:null:e},r.exports.findliElementByKey=function(e,t){document.querySelectors(e);return null},r.exports.findItemElementForList=function(e){var t;return!e||-1<e.className.indexOf("prism-setting-item")||(t=e.parentElement)&&(e=r.exports.findItemElementForList(t)),e}},{}],126:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lang/index"),a=e("../../player/base/event/eventtype"),s=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-snapshot-btn")},createEl:function(){return i.prototype.createEl.call(this,"div")},bindEvent:function(){var e=this,t=this._player;t.on(a.Private.Snapshot_Hide,function(){n.css(e._el,"display","none")}),s.registerTooltipEvent.call(this,this.el(),o.get("Snapshot")),this.on("click",function(){e.trigger(a.Player.Snapshoting),e.trigger(a.Player.Snapshoted,t.takeSnapshot())})}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],127:[function(e,t,r){var i=e("../component"),e=(e("../../lib/dom"),e("../../player/base/event/eventtype"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-text-overlay")},createEl:function(){return i.prototype.createEl.call(this,"div")},_hide:function(e){},_show:function(e){},bindEvent:function(){}}));t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],128:[function(e,t,r){var i=e("../component"),a=(e("../../lib/util"),e("../../lib/dom")),n=e("../../lib/event"),s=(e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),l=e("./util"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-thumbnail")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML="<img></img><span></span>",e},bindEvent:function(){var o=this,e=(n.on(this._el,"mousemove",function(e){e.preventDefault()}),n.on(this._el,"touchmove",function(e){e.preventDefault()}),o._player.on(s.Private.ThumbnailLoaded,function(e){var t,r,i,e=e.paramData;e&&0<e.length&&(t=o._player._thumbnailService.makeUrl(e[0].text),o._player.log("THUMBNAILSTART",{tu:encodeURIComponent(t)}),r=(new Date).getTime(),e[0].isBig?(a.css(o.el(),"background","url("+t+")"),a.css(o.el(),"width",e[0].w+"px"),a.css(o.el(),"height",e[0].h+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-r})):((i=document.querySelector("#"+o.id()+" img")).onload=function(){var e=i.width,t=i.height;a.css(o.el(),"width",e+"px"),a.css(o.el(),"height",t+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-r})},i.src=t))}),l.throttle(function(e){var t,r,i,e=e[0],n=document.querySelector("#"+o.id()+" span"),e=e.paramData;n.innerText=e.formatTime,e&&((t=o._player._thumbnailService.findAvailableCue(e.time))?t.isBig?(r=o._player._thumbnailService.makeUrl(t.text),a.css(o.el(),"background","url("+r+")"),t.w,t.h,i=-1*t.x+"px "+-1*t.y+"px",a.css(o.el(),"background-position",i)):(i=document.querySelector("#"+o.id()+" img"),r=o._player._thumbnailService.makeUrl(t.text),i.src!=r&&(i.src=r)):(a.css(o.el(),"border","none"),a.css(n,"left","0px")),a.css(o.el(),"display","block"),i=0,r=(t?o.el():n).offsetWidth,i=e.left+r>e.progressWidth?e.left-r:(i=e.left-r/2)<0?0:i,a.css(o.el(),"left",i+"px"))},30));o._player.on(s.Private.ThumbnailShow,e),o._player.on(s.Private.ThumbnailHide,function(e){a.css(o.el(),"display","none")})},_createSamllThumbnail:function(){},disposeUI:function(){}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../lib/ua":39,"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],129:[function(e,t,r){var i=e("../component"),n=e("../../lib/util"),o=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-time-display")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="duration">00:00</span>',e},bindEvent:function(){var t=this;this._player.on(o.Video.DurationChange,function(){var e=n.formatTime(t._player.getDisplayDuration());e?(document.querySelector("#"+t.id()+" .time-bound").style.display="inline",document.querySelector("#"+t.id()+" .duration").style.display="inline",document.querySelector("#"+t.id()+" .duration").innerText=e):(document.querySelector("#"+t.id()+" .duration").style.display="none",document.querySelector("#"+t.id()+" .time-bound").style.display="none")}),this._player.on(o.Video.TimeUpdate,function(){var e=t._player.getCurrentTime(),e=n.formatTime(e);document.querySelector("#"+t.id()+" .current-time")&&(e?(document.querySelector("#"+t.id()+" .current-time").style.display="inline",document.querySelector("#"+t.id()+" .current-time").innerText=e):document.querySelector("#"+t.id()+" .current-time").style.display="none")})}});t.exports=e},{"../../lib/util":41,"../../player/base/event/eventtype":63,"../component":103}],130:[function(e,t,r){var i=e("../component"),o=e("../../lib/dom"),a=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-tooltip")},createEl:function(){var e=i.prototype.createEl.call(this,"p");return e.innerText="\u63d0\u793a\u4fe1\u606f",e},bindEvent:function(){var n=this;n._player.on(a.Private.TooltipShow,function(e){var t=document.querySelector("#"+n.id()),e=e.paramData,r=(t.innerText=e.text,o.css(t,"display","block"),t.offsetWidth),i=document.querySelector("#"+n._player.id()+" .prism-controlbar");i&&(i=i.offsetWidth,e.left+r>i?o.css(t,"left",i-r+"px"):o.css(t,"left",e.left-(r-e.width)/2+"px"))}),n._player.on(a.Private.TooltipHide,function(e){var t=document.querySelector("#"+n.id());o.css(t,"display","none")})}});t.exports=e},{"../../lib/dom":25,"../../player/base/event/eventtype":63,"../component":103}],131:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../lang/index"),s=e("../../player/base/event/eventtype"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-unmute-btn")},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerText=a.get("Click_To_Unmute"),e},bindEvent:function(){var t=this;this._player.on(s.Private.MutedAutoplay,function(){var e;null!=(e=t._player.getOptions().autoplayPolicy)&&e.showUnmuteBtn&&t._show()}),o.on(this.el(),"click",function(){t._player.unMute(!0),t._hide()})},_show:function(){n.css(this.el(),"display","block")},_hide:function(){n.css(this.el(),"display","none")}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103}],132:[function(e,t,r){var i=e("../../lib/event"),s=e("../../player/base/event/eventtype");t.exports.registerTooltipEvent=function(e,n){function o(){a._controlbarTooltipHandler&&(clearTimeout(a._controlbarTooltipHandler),a._controlbarTooltipHandler=null)}var a=this;i.on(this.el(),"mouseover",function(e){o(),a._controlbarTooltipHandler=setTimeout(function(){a._player.trigger(s.Private.TooltipHide)},4e3);var t=a.el().offsetLeft,r=a.el().offsetWidth,i=n;"function"==typeof n&&(i=n.call(this)),a._player.trigger(s.Private.TooltipShow,{left:t,width:r,text:i})}),i.on(this.el(),"mouseout",function(){o(),a._player.trigger(s.Private.TooltipHide)})},t.exports.throttle=function(r,i){var n=Date.now();return function(){var e=arguments,t=Date.now();i<=t-n&&(r(e),n=t)}},t.exports.debounce=function(r,i){var n;return function(){var e=this,t=arguments;clearTimeout(n),n=setTimeout(function(){r.apply(e,t)},i)}}},{"../../lib/event":26,"../../player/base/event/eventtype":63}],133:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("./util"),l=e("../../lang/index"),c=e("./volumecontrol"),e=i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-volume");var r=new c(e,t);e.addChild(r,t),this.volumeControl=r},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-icon"><div class="short-horizontal"></div><div class="long-horizontal"></div></div>',e},bindEvent:function(){var r=this,i=r._player,e=(this.icon=document.querySelector("#"+r.id()+" .volume-icon"),s.registerTooltipEvent.call(this,this.el(),function(){return r._player.muted()||0==r._player.getVolume()?l.get("Muted"):l.get("Volume")}),o.on(this.icon,"click",function(e){var t;r.volumeControl._shown?i.muted()?i.unMute():i.mute():(t=r.el().offsetLeft,r._player.trigger(a.Private.SettingListHide),r._player.trigger(a.Private.SelectorHide),r._player.trigger(a.Private.VolumeVisibilityChange,t),r._player.trigger(a.Private.MarkerTextHide))}),document.querySelector("#"+r.id()+" .long-horizontal")),t=document.querySelector("#"+r.id()+" .short-horizontal");o.on(this.el(),"mouseover",function(){n.removeClass(e,"volume-hover-animation"),setTimeout(function(){n.addClass(e,"volume-hover-animation")}),setTimeout(function(){n.removeClass(e,"volume-hover-animation"),n.addClass(t,"volume-hover-animation"),setTimeout(function(){n.removeClass(t,"volume-hover-animation"),n.addClass(e,"volume-hover-animation")},300)},300)}),o.on(window,"resize",function(){var e;r.volumeControl._shown&&(e=r.el().offsetLeft,r._player.trigger(a.Private.VolumeUpdatePosition,e))})}});t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103,"./util":132,"./volumecontrol":134}],134:[function(e,t,r){var i=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=(e("./util"),e("../../lang/index"),i.extend({init:function(e,t){i.call(this,e,t),this.addClass("prism-volume-control"),this._shown=!1},createEl:function(){var e=i.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-range"><div class="volume-value"></div><div class="volume-cursor"></div></div>',e},bindEvent:function(){var r=this;this.icon=document.querySelector("#"+r._player.id()+" .volume-icon"),this.control=document.querySelector("#"+r.id()),this.volumnValue=document.querySelector("#"+r.id()+" .volume-value"),this.volumnRange=document.querySelector("#"+r.id()+" .volume-range"),this.volumnCursor=document.querySelector("#"+r.id()+" .volume-cursor"),this._player.on(a.Private.VolumeVisibilityChange,function(e){var t,e=e.paramData;!r._shown&&e?(t=r._player.getVolume(),r._setVolumnUI(t),n.css(r.control,"display","block"),e&&r._updatePosition(e),r._shown=!0):r._hide()}),this._player.on(a.Private.VolumeUpdatePosition,function(e){e=e.paramData;r._shown&&r._updatePosition(e)}),this._player.on(a.Private.ControlBarClick,function(e){n.hasClass(e.paramData.target,"prism-controlbar-bg")&&r._hide()}),o.on(this.volumnRange,"click",function(e){e=n.getPointerPosition(r.volumnRange,e).y;e<0||1<e||(r._setVolumnUI(e=1<(e=e<0?0:e)?1:e),r._setMuteUI(e),r._player.setVolume(e))}),o.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&r._hide()}),o.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&r._hide()}),o.on(this.volumnCursor,"mousedown",function(e){r._onMouseDown(e)}),o.on(this.volumnCursor,"touchstart",function(e){r._onMouseDown(e)}),this._player.on(a.Private.VolumnChanged,function(e){e=e.paramData;-1<e&&r._setVolumnUI(e),r._setMuteUI(e)}),o.on(this.control,"mouseleave",function(){r._offEvent(),r._hide()}),o.on(this.control,"mouseover",function(){n.addClass(r.control,"hover")}),r._rangeBottom=r._getBottom()},_getBottom:function(){var e;return window.getComputedStyle?(e=window.getComputedStyle(this.volumnRange,null).getPropertyValue("bottom"),parseFloat(e)):26},_onMouseDown:function(e){var t=this;e.preventDefault(),o.on(this.control,"mousemove",function(e){t._onMouseMove(e)}),o.on(this.control,"touchmove",function(e){t._onMouseMove(e)}),o.on(this._player.tag,"mouseup",function(e){t._onMouseUp(e)}),o.on(this._player.tag,"touchend",function(e){t._onMouseUp(e)}),o.on(this.control,"mouseup",function(e){t._onMouseUp(e)}),o.on(this.control,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),this._offEvent(),this.volumnRange.offsetHeight&&(e=(this.volumnValue.offsetHeight/this.volumnRange.offsetHeight).toFixed(2),this._player.setVolume(e),this._setMuteUI(e))},_onMouseMove:function(e){e.preventDefault();e=n.getPointerPosition(this.volumnRange,e).y;e<0||1<e||this._setVolumnUI(e=1<(e=e<0?0:e)?1:e)},_getPosition:function(e){for(var t=this.volumnRange,r=0;t=t.offsetParent;)r+=t.offsetTop;var i=this.volumnRange.offsetHeight,n=this.volumnCursor.offsetHeight,o=(e.touches?e.touches[0]:e).pageY;return(i-((o=i<o-r?e.clientY:o)-r)+n)/this.volumnRange.offsetHeight},_offEvent:function(){o.off(this._player.tag,"mouseup"),o.off(this._player.tag,"touchend"),o.off(this.control,"mousemove"),o.off(this.control,"touchmove"),o.off(this.control,"mouseup"),o.off(this.control,"touchend")},_setMuteUI:function(e){isNaN(e)||(0==e||-1==e?n.addClass(this.icon,"mute"):n.removeClass(this.icon,"mute"))},_setVolumnUI:function(e){isNaN(e)||(n.css(this.volumnValue,"height",100*e+"%"),n.css(this.volumnCursor,"bottom",100*(e=1==e?.99:e)+"%"))},_hide:function(){n.css(this.control,"display","none"),this._shown=!1},_updatePosition:function(e){n.css(this.control,"left",e-5+"px")}}));t.exports=e},{"../../lang/index":18,"../../lib/dom":25,"../../lib/event":26,"../../player/base/event/eventtype":63,"../component":103,"./util":132}],135:[function(e,t,r){t.exports={H5Loading:e("./component/h5-loading"),bigPlayButton:e("./component/big-play-button"),unmuteButton:e("./component/unmute-button"),controlBar:e("./component/controlbar"),progress:e("./component/progress"),playButton:e("./component/play-button"),liveDisplay:e("./component/live-display"),timeDisplay:e("./component/time-display"),fullScreenButton:e("./component/fullscreen-button"),volume:e("./component/volume"),snapshot:e("./component/snapshot"),errorDisplay:e("./component/error-display"),infoDisplay:e("./component/info-display"),liveShiftProgress:e("../commonui/liveshiftprogress"),liveShiftTimeDisplay:e("../commonui/livetimedisplay"),setting:e("./component/setting/button"),subtitle:e("./component/cc-button"),thumbnail:e("./component/thumbnail"),tooltip:e("./component/tooltip")}},{"../commonui/liveshiftprogress":5,"../commonui/livetimedisplay":6,"./component/big-play-button":104,"./component/cc-button":105,"./component/controlbar":106,"./component/error-display":108,"./component/fullscreen-button":109,"./component/h5-loading":110,"./component/info-display":111,"./component/live-display":113,"./component/play-button":114,"./component/progress":115,"./component/setting/button":118,"./component/snapshot":126,"./component/thumbnail":128,"./component/time-display":129,"./component/tooltip":130,"./component/unmute-button":131,"./component/volume":133}]},{},[8])(8)});
|