You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__Detail__Videos__in...

1 line
160 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[143,6],{"+qE3":function(e,t,i){"use strict";var s,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};function a(e){console&&console.warn&&console.warn(e)}s=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var h=10;function d(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function c(e,t,i,s){var r,n,o;if(d(i),n=e._events,void 0===n?(n=e._events=Object.create(null),e._eventsCount=0):(void 0!==n.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),n=e._events),o=n[t]),void 0===o)o=n[t]=i,++e._eventsCount;else if("function"===typeof o?o=n[t]=s?[i,o]:[o,i]:s?o.unshift(i):o.push(i),r=u(e),r>0&&o.length>r&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,a(l)}return e}function _(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,i){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=_.bind(s);return r.listener=i,s.wrapFn=r,r}function f(e,t,i){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"===typeof r?i?[r.listener||r]:[r]:i?v(r):g(r,r.length)}function p(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"===typeof i)return 1;if(void 0!==i)return i.length}return 0}function g(e,t){for(var i=new Array(t),s=0;s<t;++s)i[s]=e[s];return i}function E(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return h},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");h=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var s="error"===e,r=this._events;if(void 0!==r)s=s&&void 0===r.error;else if(!s)return!1;if(s){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)n(l,this,t);else{var h=l.length,d=g(l,h);for(i=0;i<h;++i)n(d[i],this,t)}return!0},l.prototype.addListener=function(e,t){return c(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return c(this,e,t,!0)},l.prototype.once=function(e,t){return d(t),this.on(e,m(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,m(this,e,t)),this},l.prototype.removeListener=function(e,t){var i,s,r,n,a;if(d(t),s=this._events,void 0===s)return this;if(i=s[e],void 0===i)return this;if(i===t||i.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!==typeof i){for(r=-1,n=i.length-1;n>=0;n--)if(i[n]===t||i[n].listener===t){a=i[n].listener,r=n;break}if(r<0)return this;0===r?i.shift():E(i,r),1===i.length&&(s[e]=i[0]),void 0!==s.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,i,s;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,n=Object.keys(i);for(s=0;s<n.length;++s)r=n[s],"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=i[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);return this},l.prototype.listeners=function(e){return f(this,e,!0)},l.prototype.rawListeners=function(e){return f(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},l.prototype.listenerCount=p,l.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},"0r65":function(e,t){var i=arguments[3],s=arguments[4],r=arguments[5],n=JSON.stringify;e.exports=function(e,t){for(var a,o=Object.keys(r),l=0,h=o.length;l<h;l++){var d=o[l],u=r[d].exports;if(u===e||u&&u.default===e){a=d;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(l=0,h=o.length;l<h;l++){d=o[l];c[d]=d}s[a]=["function(require,module,exports){"+e+"(self); }",c]}var _=Math.floor(Math.pow(16,8)*Math.random()).toString(16),m={};m[a]=a,s[_]=["function(require,module,exports){var f = require("+n(a)+");(f.default ? f.default : f)(self);}",m];var f={};function p(e){for(var t in f[e]=!0,s[e][1]){var i=s[e][1][t];f[i]||p(i)}}p(_);var g="("+i+")({"+Object.keys(f).map((function(e){return n(e)+":["+s[e][0]+","+n(s[e][1])+"]"})).join(",")+"},{},["+n(_)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,v=new Blob([g],{type:"text/javascript"});if(t&&t.bare)return v;var b=E.createObjectURL(v),S=new Worker(b);return S.objectURL=b,S}},"1vsH":function(e,t,i){"use strict";i.d(t,"h",(function(){return o})),i.d(t,"j",(function(){return l})),i.d(t,"c",(function(){return h})),i.d(t,"f",(function(){return d})),i.d(t,"b",(function(){return u})),i.d(t,"d",(function(){return c})),i.d(t,"e",(function(){return _})),i.d(t,"g",(function(){return m})),i.d(t,"a",(function(){return f})),i.d(t,"u",(function(){return p})),i.d(t,"v",(function(){return g})),i.d(t,"w",(function(){return E})),i.d(t,"p",(function(){return v})),i.d(t,"o",(function(){return b})),i.d(t,"n",(function(){return S})),i.d(t,"m",(function(){return y})),i.d(t,"t",(function(){return A})),i.d(t,"i",(function(){return R})),i.d(t,"s",(function(){return L})),i.d(t,"q",(function(){return w})),i.d(t,"k",(function(){return T})),i.d(t,"r",(function(){return k})),i.d(t,"l",(function(){return C}));var s=i("q1tI"),r=i.n(s),n=i("aCH8"),a=i.n(n),o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],l=e=>{var t={[-1]:"\u91cd\u505a\u4e2d",0:"\u672a\u5f00\u542f",1:"\u672a\u901a\u5173",2:"\u6309\u65f6\u901a\u5173"};return t[e]||"\u8fdf\u4ea4\u901a\u5173"},h=e=>{var t,i,s={[-1]:{name:"\u91cd\u505a\u4e2d",class:"c-orange"},0:{name:"\u672a\u5f00\u542f",class:"c-black"},1:{name:"\u672a\u901a\u5173",class:"c-red"},2:{name:"\u6309\u65f6\u901a\u5173",class:"c-green"},3:{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}};return r.a.createElement("span",{className:null===s||void 0===s||null===(t=s[e.status])||void 0===t?void 0:t["class"]},null===s||void 0===s||null===(i=s[e.status])||void 0===i?void 0:i["name"])},d=e=>{var t=e.status,i={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return r.a.createElement("span",{className:i[t]["class"]},i[t]["name"])}catch(s){console.log("utils.StatusGraduationProjectTags",e.status)}},u={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},c={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},_=e=>{var t={"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},i=[];e.is_random&&i.push(r.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((e,s)=>{i.push(r.a.createElement("span",{key:s,className:t[e]&&t[e]["class"]},e))})}catch(s){console.log("utils.status.tag:",s,e.status)}return i},m=e=>{var t,i,s={[-1]:{name:"\u91cd\u505a\u4e2d",class:"c-orange"},0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u672a\u901a\u5173",class:"c-red"},2:{name:"\u6309\u65f6\u901a\u5173",class:"c-green"},3:{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}};return r.a.createElement("span",{className:null===(t=s[e.status])||void 0===t?void 0:t["class"]},null===(i=s[e.status])||void 0===i?void 0:i["name"])},f=e=>{var t,i,s={0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u6309\u65f6\u63d0\u4ea4",class:"c-green"},2:{name:"\u5ef6\u65f6\u63d0\u4ea4",class:"c-red"}};return r.a.createElement("span",{className:null===(t=s[e.status])||void 0===t?void 0:t["class"]},null===(i=s[e.status])||void 0===i?void 0:i["name"])},p=(e,t)=>{"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var 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()},s=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,s[RegExp.$1.length-1][e.getDay()])),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},g=e=>{if(!e)return"0";console.log("time:",e);var t=60,i=60*t,s=24*i,r=e/s,n=e/i,a=e/t;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(n%24)+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":n>1?parseInt(n.toString())+"\u65f6"+Math.floor(a%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>=1?parseInt(a.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":e+"\u79d2"},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=0;if(e){i=e.length;for(var s=0;s<i;s++){var r=e.charCodeAt(s);r>=55296&&r<=56319&&(i--,s++)}}return i<=t},v=(e,t,i)=>{if(t){var s=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,n=r.test(t),a=s.test(t);(!0===n||!0===a||t.length<2||t.length>=21)&&i("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}i()},b=(e,t,i)=>{if(t){var s=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,n=r.test(t),a=s.test(t);(!0===n||!0===a||t.length<2||t.length>=11)&&i("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}i()},S=e=>{if(!e)return"";for(var t=e.length-1,i="",s=0;s<t;s++)i+="*";var r=e.substr(0,1)+i;return r},y=(e,t)=>{var i=new FileReader;i.addEventListener("load",()=>t(i.result)),i.readAsDataURL(e)};function A(e){var t="79e33abd4b6588941ab7622aed1e67e8";return a()(t+e)}function R(e,t){var i=document.createElement("a");document.body.appendChild(i),i.href=t,i.download=e;var s=document.createEvent("MouseEvents");s.initEvent("click",!1,!1),i.dispatchEvent(s),document.body.removeChild(i)}var L=e=>{var t=e.url,i=e.query;if(!t)return"";if(i){var s=[];for(var r in i)i.hasOwnProperty(r)&&s.push("".concat(r,"=").concat(i[r]));t=-1!==t.indexOf("?")?"".concat(t,"&").concat(s.join("&")):"".concat(t,"?").concat(s.join("&"))}return t};function w(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,s=0;s<t.length;s++)if(e.indexOf(t[s])>0){i=!1;break}return i}var T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},k=e=>{var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var i=document.createEvent("MouseEvents");i.initEvent("click",!1,!1),t.dispatchEvent(i),document.body.removeChild(t)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))}},BdwD:function(e,t,i){"use strict";var s=i("q1tI"),r=i.n(s),n=()=>r.a.createElement("section",{className:"tc animated fadeIn",style:{color:"#999",margin:"200px auto"}},r.a.createElement("img",{src:i("FOrL")}),r.a.createElement("p",{className:"mt20"},"\u6682\u65f6\u8fd8\u6ca1\u6709\u76f8\u5173\u6570\u636e\u54e6!"));t["a"]=n},DiaT:function(e,t,i){e.exports={flex_box_center:"flex_box_center___3uxel",flex_space_between:"flex_space_between___3ADww",flex_box_vertical_center:"flex_box_vertical_center___1ZeOt",flex_box_center_end:"flex_box_center_end___14b6Y",flex_box_column:"flex_box_column___qufu9",searchBar:"searchBar___3h7FD",left:"left___1eaNv",active:"active___1H1f3",searchBarBorder:"searchBarBorder___OHSwY",firstLi:"firstLi___3T_mj",otherLi:"otherLi___Edh0Y",button:"button___2C1wH"}},E2g8:function(e,t,i){(function(t,i){(function(t,i){e.exports=i()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function s(e){return"function"===typeof e}var r=void 0;r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var n=r,a=0,o=void 0,l=void 0,h=function(e,t){y[a]=e,y[a+1]=t,a+=2,2===a&&(l?l(A):L())};function d(e){l=e}function u(e){h=e}var c="undefined"!==typeof window?window:void 0,_=c||{},m=_.MutationObserver||_.WebKitMutationObserver,f="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),p="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function g(){return function(){return t.nextTick(A)}}function E(){return"undefined"!==typeof o?function(){o(A)}:S()}function v(){var e=0,t=new m(A),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=A,function(){return e.port2.postMessage(0)}}function S(){var e=setTimeout;return function(){return e(A,1)}}var y=new Array(1e3);function A(){for(var e=0;e<a;e+=2){var t=y[e],i=y[e+1];t(i),y[e]=void 0,y[e+1]=void 0}a=0}function R(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,E()}catch(t){return S()}}var L=void 0;function w(e,t){var i=this,s=new this.constructor(C);void 0===s[k]&&Y(s);var r=i._state;if(r){var n=arguments[r-1];h((function(){return H(r,s,n,i._result)}))}else j(i,s,e,t);return s}function T(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var i=new t(C);return F(i,e),i}L=f?g():m?v():p?b():void 0===c?R():S();var k=Math.random().toString(36).substring(2);function C(){}var D=void 0,O=1,I=2;function x(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function B(e,t,i,s){try{e.call(t,i,s)}catch(r){return r}}function N(e,t,i){h((function(e){var s=!1,r=B(i,t,(function(i){s||(s=!0,t!==i?F(e,i):V(e,i))}),(function(t){s||(s=!0,z(e,t))}),"Settle: "+(e._label||" unknown promise"));!s&&r&&(s=!0,z(e,r))}),e)}function U(e,t){t._state===O?V(e,t._result):t._state===I?z(e,t._result):j(t,void 0,(function(t){return F(e,t)}),(function(t){return z(e,t)}))}function P(e,t,i){t.constructor===e.constructor&&i===w&&t.constructor.resolve===T?U(e,t):void 0===i?V(e,t):s(i)?N(e,t,i):V(e,t)}function F(t,i){if(t===i)z(t,x());else if(e(i)){var s=void 0;try{s=i.then}catch(r){return void z(t,r)}P(t,i,s)}else V(t,i)}function G(e){e._onerror&&e._onerror(e._result),W(e)}function V(e,t){e._state===D&&(e._result=t,e._state=O,0!==e._subscribers.length&&h(W,e))}function z(e,t){e._state===D&&(e._state=I,e._result=t,h(G,e))}function j(e,t,i,s){var r=e._subscribers,n=r.length;e._onerror=null,r[n]=t,r[n+O]=i,r[n+I]=s,0===n&&e._state&&h(W,e)}function W(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var s=void 0,r=void 0,n=e._result,a=0;a<t.length;a+=3)s=t[a],r=t[a+i],s?H(i,s,r,n):r(n);e._subscribers.length=0}}function H(e,t,i,r){var n=s(i),a=void 0,o=void 0,l=!0;if(n){try{a=i(r)}catch(h){l=!1,o=h}if(t===a)return void z(t,M())}else a=r;t._state!==D||(n&&l?F(t,a):!1===l?z(t,o):e===O?V(t,a):e===I&&z(t,a))}function q(e,t){try{t((function(t){F(e,t)}),(function(t){z(e,t)}))}catch(i){z(e,i)}}var K=0;function X(){return K++}function Y(e){e[k]=K++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Q(){return new Error("Array Methods must be provided an Array")}var Z=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(C),this.promise[k]||Y(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?V(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&V(this.promise,this._result))):z(this.promise,Q())}return e.prototype._enumerate=function(e){for(var t=0;this._state===D&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,s=i.resolve;if(s===T){var r=void 0,n=void 0,a=!1;try{r=e.then}catch(l){a=!0,n=l}if(r===w&&e._state!==D)this._settledAt(e._state,t,e._result);else if("function"!==typeof r)this._remaining--,this._result[t]=e;else if(i===se){var o=new i(C);a?z(o,n):P(o,e,r),this._willSettleAt(o,t)}else this._willSettleAt(new i((function(t){return t(e)})),t)}else this._willSettleAt(s(e),t)},e.prototype._settledAt=function(e,t,i){var s=this.promise;s._state===D&&(this._remaining--,e===I?z(s,i):this._result[t]=i),0===this._remaining&&V(s,this._result)},e.prototype._willSettleAt=function(e,t){var i=this;j(e,void 0,(function(e){return i._settledAt(O,t,e)}),(function(e){return i._settledAt(I,t,e)}))},e}();function J(e){return new Z(this,e).promise}function $(e){var t=this;return n(e)?new t((function(i,s){for(var r=e.length,n=0;n<r;n++)t.resolve(e[n]).then(i,s)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function ee(e){var t=this,i=new t(C);return z(i,e),i}function te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ie(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var se=function(){function e(t){this[k]=X(),this._result=this._state=void 0,this._subscribers=[],C!==t&&("function"!==typeof t&&te(),this instanceof e?q(this,t):ie())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,i=t.constructor;return s(e)?t.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):t.then(e,e)},e}();function re(){var e=void 0;if("undefined"!==typeof i)e=i;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var s=null;try{s=Object.prototype.toString.call(t.resolve())}catch(r){}if("[object Promise]"===s&&!t.cast)return}e.Promise=se}return se.prototype.then=w,se.all=J,se.race=$,se.resolve=T,se.reject=ee,se._setScheduler=d,se._setAsap=u,se._asap=h,se.polyfill=re,se.Promise=se,se}))}).call(this,i("Q2Ig"),i("yLpj"))},FOrL:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},NLgs:function(e,t,i){"use strict";i.d(t,"c",(function(){return d})),i.d(t,"d",(function(){return u})),i.d(t,"b",(function(){return _})),i.d(t,"a",(function(){return m}));i("2qtc");var s=i("kLXV"),r=i("q1tI"),n=i.n(r),a=i("9kvl"),o=i("xKgJ"),l=i("1vsH"),h=i("m3rI"),d=e=>!(!u(e)||!c()),u=e=>!!Object(o["g"])()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),c=()=>{var e,t=Object(a["b"])()._store.getState(),i=t.user;return!!(null===(e=i.userInfo)||void 0===e?void 0:e.profile_completed)||(s["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:n.a.createElement("div",{className:"tc font16"},"\u60a8\u9700\u8981\u53bb\u5b8c\u5584\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:()=>{a["c"].push("/account/profile/edit")}}),!1)},_=()=>{var e,t=Object(a["b"])()._store.getState(),i=t.user;return!!(null===(e=i.userInfo)||void 0===e?void 0:e.professional_certification)||(s["a"].confirm({title:"\u63d0\u793a",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60a8\u9700\u8981\u53bb\u5b8c\u6210\u60a8\u7684\u804c\u4e1a\u8ba4\u8bc1\uff0c\u624d\u80fd\u4f7f\u7528\u6b64\u529f\u80fd"),okText:"\u7acb\u5373\u5b8c\u5584",cancelText:"\u7a0d\u540e\u5b8c\u5584",onOk:()=>{a["c"].push("/account/certification")}}),!1)},m=()=>!!Object(o["a"])()||(s["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:n.a.createElement("div",{className:"tc"},n.a.createElement("p",null,"\u60a8\u53ef\u4ee5\u5728QQ\u670d\u52a1\u7fa4\u5411\u7ba1\u7406\u5458\u7533\u8bf7\uff0c\u83b7\u5f97\u7ee7\u7eed\u64cd\u4f5c\u7684\u6743\u9650"),n.a.createElement("img",{src:"".concat(h["a"].IMG_SERVER,"images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:()=>{Object(l["r"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},"O+cW":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAxBAMAAACYObKJAAAAJ1BMVEVHcExNrf9Rsf9Mrf9NrP9Nrv9YwP9Orv9Mrf9Mrf9PsP9Nrv9MrP+DjnPJAAAADHRSTlMAfxrg9o0JTZ/CMF1yzN3wAAABGUlEQVQ4y9XUMUsDQRAF4OEgl5A00VaLa21FDIRtRNKlELuAxUm6VAEbC4t0aa4K2F0RCFhZGMgfkDsx0fejnA0pvM3Mbpu89n0HN8vuEFH8fAUxt9OUbJ6gpmP7Gjy5Y/DgA19EdWD9RmJGGTCmIYoxKakbXNMLvkmNLTNMdNDAmgzmOmiioD5SHcQoCSBPuD008HgaAHl57weAK/aAK/aBIwRQFRKoCBGgbAcAfkPgMwQuA+Am8YNe4p/ify+BSi+Aau8C4/YuWLm9C+L0CK69CAwSvY/4+ef40EELGzrnNaRmyHfnnbeMmgw/vIYw0/oL8AKLDMrXEzGDPgqeYOHbtF07Sq73m+0RtIzWF7sTiJbyP5zZ7/8AWuhzsJnNY38AAAAASUVORK5CYII="},TCK6:function(e,t,i){e.exports={flex_box_center:"flex_box_center___2m6N-",flex_space_between:"flex_space_between___1YWzb",flex_box_vertical_center:"flex_box_vertical_center___TJW-N",flex_box_center_end:"flex_box_center_end___1mFE6",flex_box_column:"flex_box_column___gsNfr",wrap:"wrap___2PwVj",midWrap:"midWrap___29enJ",color999:"color999___3o5k6",orderWrap:"orderWrap___2zmQy",orderIconWrap:"orderIconWrap___3P8VT",orderAsc:"orderAsc___4gPdP",orderDesc:"orderDesc___3GGeL",color4CACFF:"color4CACFF___3sJTn",h10:"h10___1sfuo",cursorPointer:"cursorPointer___26hrz",orderTextWrap:"orderTextWrap___lD6F_",cardWrap:"cardWrap___3Ie3A",countWrap:"countWrap___1xIRg",colorRed:"colorRed___15aYF",modal:"modal___3ramp"}},XxMO:function(e,t,i){"use strict";i.r(t);i("cWXX");var s=i("/ezw"),r=(i("DjyN"),i("NUBc")),n=(i("miYZ"),i("tsqr")),a=(i("2qtc"),i("kLXV")),o=i("WmNS"),l=i.n(o),h=i("9og8"),d=i("tJVT"),u=i("PpiC"),c=i("q1tI"),_=i.n(c),m=i("WHYC"),f=i("9kvl"),p=i("BdwD"),g=i("0Owb"),E=(i("IzEo"),i("bx4M")),v=(i("5Dmo"),i("3S7+")),b=(i("T2oS"),i("W9HT")),S=i("zpA9"),y=i.n(S),A=i("O+cW"),R=i.n(A),L=i("P5Jw"),w=i("rHp0"),T=i.n(w),k=(i("+L6B"),i("2/Rp")),C=(i("5NDa"),i("5rEg"));class D{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let i=1;i<arguments.length;i++){let e=arguments[i];if(void 0!==e&&null!==e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}return t},"function"!==typeof self.Promise&&i("E2g8").polyfill()}}D.install();var O=D,I=i("+qE3"),x=i.n(I);class M{static e(e,t){e&&!M.FORCE_GLOBAL_TAG||(e=M.GLOBAL_TAG);let i=`[${e}] > ${t}`;M.ENABLE_CALLBACK&&M.emitter.emit("log","error",i),M.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}static i(e,t){e&&!M.FORCE_GLOBAL_TAG||(e=M.GLOBAL_TAG);let i=`[${e}] > ${t}`;M.ENABLE_CALLBACK&&M.emitter.emit("log","info",i),M.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}static w(e,t){e&&!M.FORCE_GLOBAL_TAG||(e=M.GLOBAL_TAG);let i=`[${e}] > ${t}`;M.ENABLE_CALLBACK&&M.emitter.emit("log","warn",i),M.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}static d(e,t){e&&!M.FORCE_GLOBAL_TAG||(e=M.GLOBAL_TAG);let i=`[${e}] > ${t}`;M.ENABLE_CALLBACK&&M.emitter.emit("log","debug",i),M.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}static v(e,t){e&&!M.FORCE_GLOBAL_TAG||(e=M.GLOBAL_TAG);let i=`[${e}] > ${t}`;M.ENABLE_CALLBACK&&M.emitter.emit("log","verbose",i),M.ENABLE_VERBOSE&&console.log(i)}}M.GLOBAL_TAG="flv.js",M.FORCE_GLOBAL_TAG=!1,M.ENABLE_ERROR=!0,M.ENABLE_INFO=!0,M.ENABLE_WARN=!0,M.ENABLE_DEBUG=!0,M.ENABLE_VERBOSE=!0,M.ENABLE_CALLBACK=!1,M.emitter=new x.a;var B=M;class N{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var U=N;class P{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class F extends P{constructor(e){super(e)}get name(){return"IllegalStateException"}}class G extends P{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class V extends P{constructor(e){super(e)}get name(){return"NotImplementedException"}}const z={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},j={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class W{constructor(e){this._type=e||"undefined",this._status=z.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=z.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===z.kConnecting||this._status===z.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new V("Unimplemented abstract function!")}abort(){throw new V("Unimplemented abstract function!")}}let H={};function q(){let e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],s={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:i[0]||""},r={};if(s.browser){r[s.browser]=!0;let e=s.majorVersion.split(".");r.version={major:parseInt(s.majorVersion,10),string:s.version},e.length>1&&(r.version.minor=parseInt(e[1],10)),e.length>2&&(r.version.build=parseInt(e[2],10))}if(s.platform&&(r[s.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;let e="msie";s.browser=e,r[e]=!0}if(r.edge){delete r.edge;let e="msedge";s.browser=e,r[e]=!0}if(r.opr){let e="opera";s.browser=e,r[e]=!0}if(r.safari&&r.android){let e="android";s.browser=e,r[e]=!0}r.name=s.browser,r.platform=s.platform;for(let n in H)H.hasOwnProperty(n)&&delete H[n];Object.assign(H,r)}q();var K=H;class X extends W{static isSupported(){try{let e=K.msedge&&K.version.minor>=15048,t=!K.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);let s=this._seekHandler.getConfig(i,t),r=new self.Headers;if("object"===typeof s.headers){let e=s.headers;for(let t in e)e.hasOwnProperty(t)&&r.append(t,e[t])}let n={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===typeof this._config.headers)for(let a in this._config.headers)r.append(a,this._config.headers[a]);!1===e.cors&&(n.mode="same-origin"),e.withCredentials&&(n.credentials="include"),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),this._status=z.kConnecting,self.fetch(s.url,n).then(e=>{if(this._requestAbort)return this._requestAbort=!1,void(this._status=z.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==s.url&&this._onURLRedirect){let t=this._seekHandler.removeURLParameters(e.url);this._onURLRedirect(t)}let t=e.headers.get("Content-Length");return null!=t&&(this._contentLength=parseInt(t),0!==this._contentLength&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,e.body.getReader())}if(this._status=z.kError,!this._onError)throw new P("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(j.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(e=>{if(this._status=z.kError,!this._onError)throw e;this._onError(j.EXCEPTION,{code:-1,msg:e.message})})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(null!==this._contentLength&&this._receivedLength<this._contentLength){this._status=z.kError;let e=j.EARLY_EOF,t={code:-1,msg:"Fetch stream meet Early-EOF"};if(!this._onError)throw new P(t.msg);this._onError(e,t)}else this._status=z.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(!0===this._requestAbort)return this._requestAbort=!1,this._status=z.kComplete,e.cancel();this._status=z.kBuffering;let i=t.value.buffer,s=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,s,this._receivedLength),this._pump(e)}}).catch(e=>{if(11===e.code&&K.msedge)return;this._status=z.kError;let t=0,i=null;if(19!==e.code&&"network error"!==e.message||!(null===this._contentLength||null!==this._contentLength&&this._receivedLength<this._contentLength)?(t=j.EXCEPTION,i={code:e.code,msg:e.message}):(t=j.EARLY_EOF,i={code:e.code,msg:"Fetch stream meet Early-EOF"}),!this._onError)throw new P(i.msg);this._onError(t,i)})}}var Y=X;class Q extends W{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(e){return B.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);let s=this._seekHandler.getConfig(i,t);this._requestURL=s.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",s.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"===typeof s.headers){let e=s.headers;for(let t in e)e.hasOwnProperty(t)&&r.setRequestHeader(t,e[t])}if("object"===typeof this._config.headers){let e=this._config.headers;for(let t in e)e.hasOwnProperty(t)&&r.setRequestHeader(t,e[t])}this._status=z.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=z.kComplete}_onReadyStateChange(e){let t=e.target;if(2===t.readyState){if(void 0!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){let e=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(e)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=z.kError,!this._onError)throw new P("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(j.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=z.kBuffering}}_onProgress(e){if(this._status===z.kError)return;null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onLoadEnd(e){!0!==this._requestAbort?this._status!==z.kError&&(this._status=z.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}_onXhrError(e){this._status=z.kError;let t=0,i=null;if(this._contentLength&&e.loaded<this._contentLength?(t=j.EARLY_EOF,i={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=j.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new P(i.msg);this._onError(t,i)}}var Z=Q;class J extends W{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(e){return B.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new U,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=z.kConnecting;let i=!1;void 0!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(i=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||i?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}_openSubRange(){let e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,i=t+e;null!=this._contentLength&&i-this._range.from>=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let i=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?i=this._currentRedirectedURL:void 0!=e.redirectedURL&&(i=e.redirectedURL));let s=this._seekHandler.getConfig(i,t);this._currentRequestURL=s.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",s.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),"object"===typeof s.headers){let e=s.headers;for(let t in e)e.hasOwnProperty(t)&&r.setRequestHeader(t,e[t])}if("object"===typeof this._config.headers){let e=this._config.headers;for(let t in e)e.hasOwnProperty(t)&&r.setRequestHeader(t,e[t])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=z.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){let e=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&e!==this._currentRedirectedURL&&(this._currentRedirectedURL=e,this._onURLRedirect&&this._onURLRedirect(e))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=z.kBuffering}else{if(this._status=z.kError,!this._onError)throw new P("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(j.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}_onProgress(e){if(this._status===z.kError)return;if(null===this._contentLength){let t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;let i=e.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,i=t.length-1,s=0,r=0,n=i;if(e<t[0])return t[0];while(r<=n){if(s=r+Math.floor((n-r)/2),s===i||e>=t[s]&&e<t[s+1])return t[s];t[s]<e?r=s+1:n=s-1}}_onLoad(e){if(this._status===z.kError)return;if(this._waitForTotalLength)return void(this._waitForTotalLength=!1);this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){let e=this._normalizeSpeed(t);this._currentSpeedNormalized!==e&&(this._currentSpeedNormalized=e,this._currentChunkSizeKB=e)}let i=e.target.response,s=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;let r=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():r=!0,this._onDataArrival&&this._onDataArrival(i,s,this._receivedLength),r&&(this._status=z.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=z.kError;let t=0,i=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=j.EARLY_EOF,i={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=j.EXCEPTION,i={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new P(i.msg);this._onError(t,i)}}var $=J;class ee extends W{static isSupported(){try{return"undefined"!==typeof self.WebSocket}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=z.kConnecting}catch(t){this._status=z.kError;let e={code:t.code,msg:t.message};if(!this._onError)throw new P(e.msg);this._onError(j.EXCEPTION,e)}}abort(){let e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=z.kComplete}_onWebSocketOpen(e){this._status=z.kBuffering}_onWebSocketClose(e){!0!==this._requestAbort?(this._status=z.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=z.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new P(t.msg);this._onError(j.EXCEPTION,t)}}_dispatchArrayBuffer(e){let t=e,i=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onWebSocketError(e){this._status=z.kError;let t={code:e.code,msg:e.message};if(!this._onError)throw new P(t.msg);this._onError(j.EXCEPTION,t)}}var te=ee;class ie{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let i={};if(0!==t.from||-1!==t.to){let e;e=-1!==t.to?`bytes=${t.from.toString()}-${t.to.toString()}`:`bytes=${t.from.toString()}-`,i["Range"]=e}else this._zeroStart&&(i["Range"]="bytes=0-");return{url:e,headers:i}}removeURLParameters(e){return e}}var se=ie;class re{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let i=e;if(0!==t.from||-1!==t.to){let e=!0;-1===i.indexOf("?")&&(i+="?",e=!1),e&&(i+="&"),i+=`${this._startName}=${t.from.toString()}`,-1!==t.to&&(i+=`&${this._endName}=${t.to.toString()}`)}return{url:i,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],i=void 0,s=e.indexOf("?");-1!==s&&(i=e.substring(s+1));let r="";if(void 0!=i&&i.length>0){let e=i.split("&");for(let t=0;t<e.length;t++){let i=e[t].split("="),s=t>0;i[0]!==this._startName&&i[0]!==this._endName&&(s&&(r+="&"),r+=e[t])}}return 0===r.length?t:t+"?"+r}}var ne=re;class ae{constructor(e,t,i){this.TAG="IOController",this._config=t,this._extraData=i,this._stashInitialSize=393216,void 0!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new U,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===$?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if("range"===e.seekType)this._seekHandler=new se(this._config.rangeLoadZeroStart);else if("param"===e.seekType){let t=e.seekParamStart||"bstart",i=e.seekParamEnd||"bend";this._seekHandler=new ne(t,i)}else{if("custom"!==e.seekType)throw new G("Invalid seekType in config: "+e.seekType);if("function"!==typeof e.customSeekHandler)throw new G("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}_selectLoader(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=te;else if(Y.isSupported())this._loaderClass=Y;else if(Z.isSupported())this._loaderClass=Z;else{if(!$.isSupported())throw new P("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=$}}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let i={from:e,to:-1};this._currentRange={from:i.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,i),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||"string"!==typeof e||0===e.length)throw new G("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;while(t+1048576<e)t*=2;if(t+=1048576,t===this._bufferSize)return;let i=new ArrayBuffer(t);if(this._stashUsed>0){let e=new Uint8Array(this._stashBuffer,0,this._stashUsed),s=new Uint8Array(i,0,t);s.set(e,0)}this._stashBuffer=i,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,i=t.length-1,s=0,r=0,n=i;if(e<t[0])return t[0];while(r<=n){if(s=r+Math.floor((n-r)/2),s===i||e>=t[s]&&e<t[s+1])return t[s];t[s]<e?r=s+1:n=s-1}}_adjustStashSize(e){let t=0;t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);let i=1024*t+1048576;this._bufferSize<i&&this._expandBuffer(i),this._stashSize=1024*t}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,i){if(!this._onDataArrival)throw new F("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let s=this._speedSampler.lastSecondKBps;if(0!==s){let e=this._normalizeSpeed(s);this._speedNormalized!==e&&(this._speedNormalized=e,this._adjustStashSize(e))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize){let t=new Uint8Array(this._stashBuffer,0,this._stashSize);t.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let i=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),s=this._dispatchChunks(t,this._stashByteStart);if(s<t.byteLength){if(s>0){let e=new Uint8Array(t,s);i.set(e,0),this._stashUsed=e.byteLength,this._stashByteStart+=s}}else this._stashUsed=0,this._stashByteStart+=s;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let s=this._dispatchChunks(e,t);if(s<e.byteLength){let r=e.byteLength-s;r>this._bufferSize&&(this._expandBuffer(r),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e,s),0),this._stashUsed+=r,this._stashByteStart=t+s}}}else if(0===this._stashUsed){let i=this._dispatchChunks(e,t);if(i<e.byteLength){let s=e.byteLength-i;s>this._bufferSize&&this._expandBuffer(s);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e,i),0),this._stashUsed+=s,this._stashByteStart=t+i}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let t=new Uint8Array(this._stashBuffer,0,this._bufferSize);t.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let i=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(i<this._stashUsed&&i>0){let e=new Uint8Array(this._stashBuffer,i);t.set(e,0)}this._stashUsed-=i,this._stashByteStart+=i}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(t,this._stashByteStart),s=t.byteLength-i;if(i<t.byteLength){if(!e){if(i>0){let e=new Uint8Array(this._stashBuffer,0,this._bufferSize),s=new Uint8Array(t,i);e.set(s,0),this._stashUsed=s.byteLength,this._stashByteStart+=i}return 0}B.w(this.TAG,s+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,s}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(B.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=j.UNRECOVERABLE_EARLY_EOF),e){case j.EARLY_EOF:if(!this._config.isLive&&this._totalLength){let e=this._currentRange.to+1;return void(e<this._totalLength&&(B.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(e,!1)))}e=j.UNRECOVERABLE_EARLY_EOF;break;case j.UNRECOVERABLE_EARLY_EOF:case j.CONNECTING_TIMEOUT:case j.HTTP_STATUS_CODE_INVALID:case j.EXCEPTION:break}if(!this._onError)throw new P("IOException: "+t.msg);this._onError(e,t)}}var oe=ae;const le={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function he(){return Object.assign({},le)}class de{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new oe({},he()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t}static getNetworkLoaderTypeName(){let e=new oe({},he()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){void 0==de.videoElement&&(de.videoElement=window.document.createElement("video"));let t=de.videoElement.canPlayType(e);return"probably"===t||"maybe"==t}static getFeatureList(){let e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=de.supportMSEH264Playback(),e.networkStreamIO=de.supportNetworkStreamIO(),e.networkLoaderName=de.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=de.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=de.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=de.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ue=de;const ce={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};var _e=ce;class me{static get forceGlobalTag(){return B.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){B.FORCE_GLOBAL_TAG=e,me._notifyChange()}static get globalTag(){return B.GLOBAL_TAG}static set globalTag(e){B.GLOBAL_TAG=e,me._notifyChange()}static get enableAll(){return B.ENABLE_VERBOSE&&B.ENABLE_DEBUG&&B.ENABLE_INFO&&B.ENABLE_WARN&&B.ENABLE_ERROR}static set enableAll(e){B.ENABLE_VERBOSE=e,B.ENABLE_DEBUG=e,B.ENABLE_INFO=e,B.ENABLE_WARN=e,B.ENABLE_ERROR=e,me._notifyChange()}static get enableDebug(){return B.ENABLE_DEBUG}static set enableDebug(e){B.ENABLE_DEBUG=e,me._notifyChange()}static get enableVerbose(){return B.ENABLE_VERBOSE}static set enableVerbose(e){B.ENABLE_VERBOSE=e,me._notifyChange()}static get enableInfo(){return B.ENABLE_INFO}static set enableInfo(e){B.ENABLE_INFO=e,me._notifyChange()}static get enableWarn(){return B.ENABLE_WARN}static set enableWarn(e){B.ENABLE_WARN=e,me._notifyChange()}static get enableError(){return B.ENABLE_ERROR}static set enableError(e){B.ENABLE_ERROR=e,me._notifyChange()}static getConfig(){return{globalTag:B.GLOBAL_TAG,forceGlobalTag:B.FORCE_GLOBAL_TAG,enableVerbose:B.ENABLE_VERBOSE,enableDebug:B.ENABLE_DEBUG,enableInfo:B.ENABLE_INFO,enableWarn:B.ENABLE_WARN,enableError:B.ENABLE_ERROR,enableCallback:B.ENABLE_CALLBACK}}static applyConfig(e){B.GLOBAL_TAG=e.globalTag,B.FORCE_GLOBAL_TAG=e.forceGlobalTag,B.ENABLE_VERBOSE=e.enableVerbose,B.ENABLE_DEBUG=e.enableDebug,B.ENABLE_INFO=e.enableInfo,B.ENABLE_WARN=e.enableWarn,B.ENABLE_ERROR=e.enableError,B.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=me.emitter;if(e.listenerCount("change")>0){let t=me.getConfig();e.emit("change",t)}}static registerListener(e){me.emitter.addListener("change",e)}static removeListener(e){me.emitter.removeListener("change",e)}static addLogListener(e){B.emitter.addListener("log",e),B.emitter.listenerCount("log")>0&&(B.ENABLE_CALLBACK=!0,me._notifyChange())}static removeLogListener(e){B.emitter.removeListener("log",e),0===B.emitter.listenerCount("log")&&(B.ENABLE_CALLBACK=!1,me._notifyChange())}}me.emitter=new x.a;var fe=me;class pe{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}isSeekable(){return!0===this.hasKeyframesIndex}getNearestKeyframe(e){if(null==this.keyframesIndex)return null;let t=this.keyframesIndex,i=this._search(t.times,e);return{index:i,milliseconds:t.times[i],fileposition:t.filepositions[i]}}_search(e,t){let i=0,s=e.length-1,r=0,n=0,a=s;t<e[0]&&(i=0,n=a+1);while(n<=a){if(r=n+Math.floor((a-n)/2),r===s||t>=e[r]&&t<e[r+1]){i=r;break}e[r]<t?n=r+1:a=r-1}return i}}var ge=pe;function Ee(e,t,i){let s=e;if(t+i<s.length){while(i--)if(128!==(192&s[++t]))return!1;return!0}return!1}function ve(e){let t=[],i=e,s=0,r=e.length;while(s<r)if(i[s]<128)t.push(String.fromCharCode(i[s])),++s;else{if(i[s]<192);else if(i[s]<224){if(Ee(i,s,1)){let e=(31&i[s])<<6|63&i[s+1];if(e>=128){t.push(String.fromCharCode(65535&e)),s+=2;continue}}}else if(i[s]<240){if(Ee(i,s,2)){let e=(15&i[s])<<12|(63&i[s+1])<<6|63&i[s+2];if(e>=2048&&55296!==(63488&e)){t.push(String.fromCharCode(65535&e)),s+=3;continue}}}else if(i[s]<248&&Ee(i,s,3)){let e=(7&i[s])<<18|(63&i[s+1])<<12|(63&i[s+2])<<6|63&i[s+3];if(e>65536&&e<1114112){e-=65536,t.push(String.fromCharCode(e>>>10|55296)),t.push(String.fromCharCode(1023&e|56320)),s+=4;continue}}t.push(String.fromCharCode(65533)),++s}return t.join("")}var be=ve;let Se=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();class ye{static parseScriptData(e,t,i){let s={};try{let r=ye.parseValue(e,t,i),n=ye.parseValue(e,t+r.size,i-r.size);s[r.data]=n.data}catch(r){B.e("AMF",r.toString())}return s}static parseObject(e,t,i){if(i<3)throw new F("Data not enough when parse ScriptDataObject");let s=ye.parseString(e,t,i),r=ye.parseValue(e,t+s.size,i-s.size),n=r.objectEnd;return{data:{name:s.data,value:r.data},size:s.size+r.size,objectEnd:n}}static parseVariable(e,t,i){return ye.parseObject(e,t,i)}static parseString(e,t,i){if(i<2)throw new F("Data not enough when parse String");let s,r=new DataView(e,t,i),n=r.getUint16(0,!Se);return s=n>0?be(new Uint8Array(e,t+2,n)):"",{data:s,size:2+n}}static parseLongString(e,t,i){if(i<4)throw new F("Data not enough when parse LongString");let s,r=new DataView(e,t,i),n=r.getUint32(0,!Se);return s=n>0?be(new Uint8Array(e,t+4,n)):"",{data:s,size:4+n}}static parseDate(e,t,i){if(i<10)throw new F("Data size invalid when parse Date");let s=new DataView(e,t,i),r=s.getFloat64(0,!Se),n=s.getInt16(8,!Se);return r+=60*n*1e3,{data:new Date(r),size:10}}static parseValue(e,t,i){if(i<1)throw new F("Data not enough when parse Value");let s,r=new DataView(e,t,i),n=1,a=r.getUint8(0),o=!1;try{switch(a){case 0:s=r.getFloat64(1,!Se),n+=8;break;case 1:{let e=r.getUint8(1);s=!!e,n+=1;break}case 2:{let r=ye.parseString(e,t+1,i-1);s=r.data,n+=r.size;break}case 3:{s={};let a=0;9===(16777215&r.getUint32(i-4,!Se))&&(a=3);while(n<i-4){let r=ye.parseObject(e,t+n,i-n-a);if(r.objectEnd)break;s[r.data.name]=r.data.value,n+=r.size}if(n<=i-3){let e=16777215&r.getUint32(n-1,!Se);9===e&&(n+=3)}break}case 8:{s={},n+=4;let a=0;9===(16777215&r.getUint32(i-4,!Se))&&(a=3);while(n<i-8){let r=ye.parseVariable(e,t+n,i-n-a);if(r.objectEnd)break;s[r.data.name]=r.data.value,n+=r.size}if(n<=i-3){let e=16777215&r.getUint32(n-1,!Se);9===e&&(n+=3)}break}case 9:s=void 0,n=1,o=!0;break;case 10:{s=[];let a=r.getUint32(1,!Se);n+=4;for(let r=0;r<a;r++){let r=ye.parseValue(e,t+n,i-n);s.push(r.data),n+=r.size}break}case 11:{let r=ye.parseDate(e,t+1,i-1);s=r.data,n+=r.size;break}case 12:{let r=ye.parseString(e,t+1,i-1);s=r.data,n+=r.size;break}default:n=i,B.w("AMF","Unsupported AMF value type "+a)}}catch(l){B.e("AMF",l.toString())}return{data:s,size:n,objectEnd:o}}}var Ae=ye;class Re{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=8*e.byteLength,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new F("ExpGolomb: _fillCurrentWord() but no bytes available");let t=Math.min(4,e),i=new Uint8Array(4);i.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(i.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t}readBits(e){if(e>32)throw new G("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}let t=this._current_word_bits_left?this._current_word:0;t>>>=32-this._current_word_bits_left;let i=e-this._current_word_bits_left;this._fillCurrentWord();let s=Math.min(i,this._current_word_bits_left),r=this._current_word>>>32-s;return this._current_word<<=s,this._current_word_bits_left-=s,t=t<<s|r,t}readBool(){return 1===this.readBits(1)}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(0!==(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}var Le=Re;class we{static _ebsp2rbsp(e){let t=e,i=t.byteLength,s=new Uint8Array(i),r=0;for(let n=0;n<i;n++)n>=2&&3===t[n]&&0===t[n-1]&&0===t[n-2]||(s[r]=t[n],r++);return new Uint8Array(s.buffer,0,r)}static parseSPS(e){let t=we._ebsp2rbsp(e),i=new Le(t);i.readByte();let s=i.readByte();i.readByte();let r=i.readByte();i.readUEG();let n=we.getProfileString(s),a=we.getLevelString(r),o=1,l=420,h=[0,420,422,444],d=8;if((100===s||110===s||122===s||244===s||44===s||83===s||86===s||118===s||128===s||138===s||144===s)&&(o=i.readUEG(),3===o&&i.readBits(1),o<=3&&(l=h[o]),d=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool())){let e=3!==o?8:12;for(let t=0;t<e;t++)i.readBool()&&(t<6?we._skipScalingList(i,16):we._skipScalingList(i,64))}i.readUEG();let u=i.readUEG();if(0===u)i.readUEG();else if(1===u){i.readBits(1),i.readSEG(),i.readSEG();let e=i.readUEG();for(let t=0;t<e;t++)i.readSEG()}let c=i.readUEG();i.readBits(1);let _=i.readUEG(),m=i.readUEG(),f=i.readBits(1);0===f&&i.readBits(1),i.readBits(1);let p=0,g=0,E=0,v=0,b=i.readBool();b&&(p=i.readUEG(),g=i.readUEG(),E=i.readUEG(),v=i.readUEG());let S=1,y=1,A=0,R=!0,L=0,w=0,T=i.readBool();if(T){if(i.readBool()){let e=i.readByte(),t=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],s=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];e>0&&e<16?(S=t[e-1],y=s[e-1]):255===e&&(S=i.readByte()<<8|i.readByte(),y=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){let e=i.readBits(32),t=i.readBits(32);R=i.readBool(),L=t,w=2*e,A=L/w}}let k=1;1===S&&1===y||(k=S/y);let C=0,D=0;if(0===o)C=1,D=2-f;else{let e=3===o?1:2,t=1===o?2:1;C=e,D=t*(2-f)}let O=16*(_+1),I=16*(m+1)*(2-f);O-=(p+g)*C,I-=(E+v)*D;let x=Math.ceil(O*k);return i.destroy(),i=null,{profile_string:n,level_string:a,bit_depth:d,ref_frames:c,chroma_format:l,chroma_format_string:we.getChromaFormatString(l),frame_rate:{fixed:R,fps:A,fps_den:w,fps_num:L},sar_ratio:{width:S,height:y},codec_size:{width:O,height:I},present_size:{width:x,height:I}}}static _skipScalingList(e,t){let i=8,s=8,r=0;for(let n=0;n<t;n++)0!==s&&(r=e.readSEG(),s=(i+r+256)%256),i=0===s?i:s}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Te=we;const ke={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};var Ce=ke;function De(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}class Oe{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new ge,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),i={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return i;let s=(4&t[4])>>>2!==0,r=0!==(1&t[4]),n=De(t,5);return n<9?i:{match:!0,consumed:n,dataOffset:n,hasAudioTrack:s,hasVideoTrack:r}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new ge}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new F("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let i=0,s=this._littleEndian;if(0===t){if(!(e.byteLength>13))return 0;{let t=Oe.probe(e);i=t.dataOffset}}if(this._firstParse){this._firstParse=!1,t+i!==this._dataOffset&&B.w(this.TAG,"First time parsing but chunk byteStart invalid!");let r=new DataView(e,i),n=r.getUint32(0,!s);0!==n&&B.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4}while(i<e.byteLength){this._dispatch=!0;let r=new DataView(e,i);if(i+11+4>e.byteLength)break;let n=r.getUint8(0),a=16777215&r.getUint32(0,!s);if(i+11+a+4>e.byteLength)break;if(8!==n&&9!==n&&18!==n){B.w(this.TAG,`Unsupported tag type ${n}, skipped`),i+=11+a+4;continue}let o=r.getUint8(4),l=r.getUint8(5),h=r.getUint8(6),d=r.getUint8(7),u=h|l<<8|o<<16|d<<24,c=16777215&r.getUint32(7,!s);0!==c&&B.w(this.TAG,"Meet tag which has StreamID != 0!");let _=i+11;switch(n){case 8:this._parseAudioData(e,_,a,u);break;case 9:this._parseVideoData(e,_,a,u,t+i);break;case 18:this._parseScriptData(e,_,a);break}let m=r.getUint32(11+a,!s);m!==11+a&&B.w(this.TAG,"Invalid PrevTagSize "+m),i+=11+a+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}_parseScriptData(e,t,i){let s=Ae.parseScriptData(e,t,i);if(s.hasOwnProperty("onMetaData")){if(null==s.onMetaData||"object"!==typeof s.onMetaData)return void B.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&B.w(this.TAG,"Found another onMetaData tag!"),this._metadata=s;let e=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},e)),"boolean"===typeof e.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=e.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof e.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=e.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof e.audiodatarate&&(this._mediaInfo.audioDataRate=e.audiodatarate),"number"===typeof e.videodatarate&&(this._mediaInfo.videoDataRate=e.videodatarate),"number"===typeof e.width&&(this._mediaInfo.width=e.width),"number"===typeof e.height&&(this._mediaInfo.height=e.height),"number"===typeof e.duration){if(!this._durationOverrided){let t=Math.floor(e.duration*this._timescale);this._duration=t,this._mediaInfo.duration=t}}else this._mediaInfo.duration=0;if("number"===typeof e.framerate){let t=Math.floor(1e3*e.framerate);if(t>0){let e=t/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=e,this._referenceFrameRate.fps_num=t,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=e}}if("object"===typeof e.keyframes){this._mediaInfo.hasKeyframesIndex=!0;let t=e.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(t),e.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=e,B.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(s).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},s))}_parseKeyframesIndex(e){let t=[],i=[];for(let s=1;s<e.times.length;s++){let r=this._timestampBase+Math.floor(1e3*e.times[s]);t.push(r),i.push(e.filepositions[s])}return{times:t,filepositions:i}}_parseAudioData(e,t,i,s){if(i<=1)return void B.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");if(!0===this._hasAudioFlagOverrided&&!1===this._hasAudio)return;this._littleEndian;let r=new DataView(e,t,i),n=r.getUint8(0),a=n>>>4;if(2!==a&&10!==a)return void this._onError(Ce.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+a);let o=0,l=(12&n)>>>2;if(!(l>=0&&l<=4))return void this._onError(Ce.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l);o=this._flvSoundRateTable[l];let h=1&n,d=this._audioMetadata,u=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),d=this._audioMetadata={},d.type="audio",d.id=u.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=o,d.channelCount=0===h?1:2),10===a){let r=this._parseAACAudioData(e,t+1,i-1);if(void 0==r)return;if(0===r.packetType){d.config&&B.w(this.TAG,"Found another AudioSpecificConfig!");let e=r.data;d.audioSampleRate=e.samplingRate,d.channelCount=e.channelCount,d.codec=e.codec,d.originalCodec=e.originalCodec,d.config=e.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,B.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d);let t=this._mediaInfo;t.audioCodec=d.originalCodec,t.audioSampleRate=d.audioSampleRate,t.audioChannelCount=d.channelCount,t.hasVideo?null!=t.videoCodec&&(t.mimeType='video/x-flv; codecs="'+t.videoCodec+","+t.audioCodec+'"'):t.mimeType='video/x-flv; codecs="'+t.audioCodec+'"',t.isComplete()&&this._onMediaInfo(t)}else if(1===r.packetType){let e=this._timestampBase+s,t={unit:r.data,length:r.data.byteLength,dts:e,pts:e};u.samples.push(t),u.length+=r.data.length}else B.e(this.TAG,"Flv: Unsupported AAC data type "+r.packetType)}else if(2===a){if(!d.codec){let s=this._parseMP3AudioData(e,t+1,i-1,!0);if(void 0==s)return;d.audioSampleRate=s.samplingRate,d.channelCount=s.channelCount,d.codec=s.codec,d.originalCodec=s.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,B.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d);let r=this._mediaInfo;r.audioCodec=d.codec,r.audioSampleRate=d.audioSampleRate,r.audioChannelCount=d.channelCount,r.audioDataRate=s.bitRate,r.hasVideo?null!=r.videoCodec&&(r.mimeType='video/x-flv; codecs="'+r.videoCodec+","+r.audioCodec+'"'):r.mimeType='video/x-flv; codecs="'+r.audioCodec+'"',r.isComplete()&&this._onMediaInfo(r)}let r=this._parseMP3AudioData(e,t+1,i-1,!1);if(void 0==r)return;let n=this._timestampBase+s,a={unit:r,length:r.byteLength,dts:n,pts:n};u.samples.push(a),u.length+=r.length}}_parseAACAudioData(e,t,i){if(i<=1)return void B.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");let s={},r=new Uint8Array(e,t,i);return s.packetType=r[0],0===r[0]?s.data=this._parseAACAudioSpecificConfig(e,t+1,i-1):s.data=r.subarray(1),s}_parseAACAudioSpecificConfig(e,t,i){let s=new Uint8Array(e,t,i),r=null,n=0,a=0,o=null,l=0,h=null;if(n=a=s[0]>>>3,l=(7&s[0])<<1|s[1]>>>7,l<0||l>=this._mpegSamplingRates.length)return void this._onError(Ce.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");let d=this._mpegSamplingRates[l],u=(120&s[1])>>>3;if(u<0||u>=8)return void this._onError(Ce.FORMAT_ERROR,"Flv: AAC invalid channel configuration");5===n&&(h=(7&s[1])<<1|s[2]>>>7,o=(124&s[2])>>>2);let c=self.navigator.userAgent.toLowerCase();return-1!==c.indexOf("firefox")?l>=6?(n=5,r=new Array(4),h=l-3):(n=2,r=new Array(2),h=l):-1!==c.indexOf("android")?(n=2,r=new Array(2),h=l):(n=5,h=l,r=new Array(4),l>=6?h=l-3:1===u&&(n=2,r=new Array(2),h=l)),r[0]=n<<3,r[0]|=(15&l)>>>1,r[1]=(15&l)<<7,r[1]|=(15&u)<<3,5===n&&(r[1]|=(15&h)>>>1,r[2]=(1&h)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:d,channelCount:u,codec:"mp4a.40."+n,originalCodec:"mp4a.40."+a}}_parseMP3AudioData(e,t,i,s){if(i<4)return void B.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");this._littleEndian;let r=new Uint8Array(e,t,i),n=null;if(s){if(255!==r[0])return;let e=r[1]>>>3&3,t=(6&r[1])>>1,i=(240&r[2])>>>4,s=(12&r[2])>>>2,a=r[3]>>>6&3,o=3!==a?2:1,l=0,h=0,d=34,u="mp3";switch(e){case 0:l=this._mpegAudioV25SampleRateTable[s];break;case 2:l=this._mpegAudioV20SampleRateTable[s];break;case 3:l=this._mpegAudioV10SampleRateTable[s];break}switch(t){case 1:d=34,i<this._mpegAudioL3BitRateTable.length&&(h=this._mpegAudioL3BitRateTable[i]);break;case 2:d=33,i<this._mpegAudioL2BitRateTable.length&&(h=this._mpegAudioL2BitRateTable[i]);break;case 3:d=32,i<this._mpegAudioL1BitRateTable.length&&(h=this._mpegAudioL1BitRateTable[i]);break}n={bitRate:h,samplingRate:l,channelCount:o,codec:u,originalCodec:u}}else n=r;return n}_parseVideoData(e,t,i,s,r){if(i<=1)return void B.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");if(!0===this._hasVideoFlagOverrided&&!1===this._hasVideo)return;let n=new Uint8Array(e,t,i)[0],a=(240&n)>>>4,o=15&n;7===o?this._parseAVCVideoPacket(e,t+1,i-1,s,r,a):this._onError(Ce.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+o)}_parseAVCVideoPacket(e,t,i,s,r,n){if(i<4)return void B.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");let a=this._littleEndian,o=new DataView(e,t,i),l=o.getUint8(0),h=16777215&o.getUint32(0,!a),d=h<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(e,t+4,i-4);else if(1===l)this._parseAVCVideoData(e,t+4,i-4,s,r,n,d);else if(2!==l)return void this._onError(Ce.FORMAT_ERROR,"Flv: Invalid video packet type "+l)}_parseAVCDecoderConfigurationRecord(e,t,i){if(i<7)return void B.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");let s=this._videoMetadata,r=this._videoTrack,n=this._littleEndian,a=new DataView(e,t,i);s?"undefined"!==typeof s.avcc&&B.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),s=this._videoMetadata={},s.type="video",s.id=r.id,s.timescale=this._timescale,s.duration=this._duration);let o=a.getUint8(0),l=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1!==o||0===l)return void this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");if(this._naluLengthSize=1+(3&a.getUint8(4)),3!==this._naluLengthSize&&4!==this._naluLengthSize)return void this._onError(Ce.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));let h=31&a.getUint8(5);if(0===h)return void this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");h>1&&B.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+h);let d=6;for(let c=0;c<h;c++){let i=a.getUint16(d,!n);if(d+=2,0===i)continue;let r=new Uint8Array(e,t+d,i);d+=i;let o=Te.parseSPS(r);if(0!==c)continue;s.codecWidth=o.codec_size.width,s.codecHeight=o.codec_size.height,s.presentWidth=o.present_size.width,s.presentHeight=o.present_size.height,s.profile=o.profile_string,s.level=o.level_string,s.bitDepth=o.bit_depth,s.chromaFormat=o.chroma_format,s.sarRatio=o.sar_ratio,s.frameRate=o.frame_rate,!1!==o.frame_rate.fixed&&0!==o.frame_rate.fps_num&&0!==o.frame_rate.fps_den||(s.frameRate=this._referenceFrameRate);let l=s.frameRate.fps_den,h=s.frameRate.fps_num;s.refSampleDuration=s.timescale*(l/h);let u=r.subarray(1,4),_="avc1.";for(let e=0;e<3;e++){let t=u[e].toString(16);t.length<2&&(t="0"+t),_+=t}s.codec=_;let m=this._mediaInfo;m.width=s.codecWidth,m.height=s.codecHeight,m.fps=s.frameRate.fps,m.profile=s.profile,m.level=s.level,m.refFrames=o.ref_frames,m.chromaFormat=o.chroma_format_string,m.sarNum=s.sarRatio.width,m.sarDen=s.sarRatio.height,m.videoCodec=_,m.hasAudio?null!=m.audioCodec&&(m.mimeType='video/x-flv; codecs="'+m.videoCodec+","+m.audioCodec+'"'):m.mimeType='video/x-flv; codecs="'+m.videoCodec+'"',m.isComplete()&&this._onMediaInfo(m)}let u=a.getUint8(d);if(0!==u){u>1&&B.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+u),d++;for(let e=0;e<u;e++){let e=a.getUint16(d,!n);d+=2,0!==e&&(d+=e)}s.avcc=new Uint8Array(i),s.avcc.set(new Uint8Array(e,t,i),0),B.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",s)}else this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}_parseAVCVideoData(e,t,i,s,r,n,a){let o=this._littleEndian,l=new DataView(e,t,i),h=[],d=0,u=0;const c=this._naluLengthSize;let _=this._timestampBase+s,m=1===n;while(u<i){if(u+4>=i){B.w(this.TAG,`Malformed Nalu near timestamp ${_}, offset = ${u}, dataSize = ${i}`);break}let s=l.getUint32(u,!o);if(3===c&&(s>>>=8),s>i-c)return void B.w(this.TAG,`Malformed Nalus near timestamp ${_}, NaluSize > DataSize!`);let r=31&l.getUint8(u+c);5===r&&(m=!0);let n=new Uint8Array(e,t+u,c+s),a={type:r,data:n};h.push(a),d+=n.byteLength,u+=c+s}if(h.length){let e=this._videoTrack,t={units:h,length:d,isKeyframe:m,dts:_,cts:a,pts:_+a};m&&(t.fileposition=r),e.samples.push(t),e.length+=d}}}var Ie=Oe;class xe{static init(){xe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in xe.types)xe.types.hasOwnProperty(t)&&(xe.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=xe.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,i=null,s=Array.prototype.slice.call(arguments,1),r=s.length;for(let a=0;a<r;a++)t+=s[a].byteLength;i=new Uint8Array(t),i[0]=t>>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);let n=8;for(let a=0;a<r;a++)i.set(s[a],n),n+=s[a].byteLength;return i}static generateInitSegment(e){let t=xe.box(xe.types.ftyp,xe.constants.FTYP),i=xe.moov(e),s=new Uint8Array(t.byteLength+i.byteLength);return s.set(t,0),s.set(i,t.byteLength),s}static moov(e){let t=xe.mvhd(e.timescale,e.duration),i=xe.trak(e),s=xe.mvex(e);return xe.box(xe.types.moov,t,i,s)}static mvhd(e,t){return xe.box(xe.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return xe.box(xe.types.trak,xe.tkhd(e),xe.mdia(e))}static tkhd(e){let t=e.id,i=e.duration,s=e.presentWidth,r=e.presentHeight;return xe.box(xe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,s>>>8&255,255&s,0,0,r>>>8&255,255&r,0,0]))}static mdia(e){return xe.box(xe.types.mdia,xe.mdhd(e),xe.hdlr(e),xe.minf(e))}static mdhd(e){let t=e.timescale,i=e.duration;return xe.box(xe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static hdlr(e){let t=null;return t="audio"===e.type?xe.constants.HDLR_AUDIO:xe.constants.HDLR_VIDEO,xe.box(xe.types.hdlr,t)}static minf(e){let t=null;return t="audio"===e.type?xe.box(xe.types.smhd,xe.constants.SMHD):xe.box(xe.types.vmhd,xe.constants.VMHD),xe.box(xe.types.minf,t,xe.dinf(),xe.stbl(e))}static dinf(){let e=xe.box(xe.types.dinf,xe.box(xe.types.dref,xe.constants.DREF));return e}static stbl(e){let t=xe.box(xe.types.stbl,xe.stsd(e),xe.box(xe.types.stts,xe.constants.STTS),xe.box(xe.types.stsc,xe.constants.STSC),xe.box(xe.types.stsz,xe.constants.STSZ),xe.box(xe.types.stco,xe.constants.STCO));return t}static stsd(e){return"audio"===e.type?"mp3"===e.codec?xe.box(xe.types.stsd,xe.constants.STSD_PREFIX,xe.mp3(e)):xe.box(xe.types.stsd,xe.constants.STSD_PREFIX,xe.mp4a(e)):xe.box(xe.types.stsd,xe.constants.STSD_PREFIX,xe.avc1(e))}static mp3(e){let t=e.channelCount,i=e.audioSampleRate,s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return xe.box(xe.types[".mp3"],s)}static mp4a(e){let t=e.channelCount,i=e.audioSampleRate,s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return xe.box(xe.types.mp4a,s,xe.esds(e))}static esds(e){let t=e.config||[],i=t.length,s=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(t).concat([6,1,2]));return xe.box(xe.types.esds,s)}static avc1(e){let t=e.avcc,i=e.codecWidth,s=e.codecHeight,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,s>>>8&255,255&s,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return xe.box(xe.types.avc1,r,xe.box(xe.types.avcC,t))}static mvex(e){return xe.box(xe.types.mvex,xe.trex(e))}static trex(e){let t=e.id,i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return xe.box(xe.types.trex,i)}static moof(e,t){return xe.box(xe.types.moof,xe.mfhd(e.sequenceNumber),xe.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return xe.box(xe.types.mfhd,t)}static traf(e,t){let i=e.id,s=xe.box(xe.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),r=xe.box(xe.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),n=xe.sdtp(e),a=xe.trun(e,n.byteLength+16+16+8+16+8+8);return xe.box(xe.types.traf,s,r,a,n)}static sdtp(e){let t=e.samples||[],i=t.length,s=new Uint8Array(4+i);for(let r=0;r<i;r++){let e=t[r].flags;s[r+4]=e.isLeading<<6|e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy}return xe.box(xe.types.sdtp,s)}static trun(e,t){let i=e.samples||[],s=i.length,r=12+16*s,n=new Uint8Array(r);t+=8+r,n.set([0,0,15,1,s>>>24&255,s>>>16&255,s>>>8&255,255&s,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(let a=0;a<s;a++){let e=i[a].duration,t=i[a].size,s=i[a].flags,r=i[a].cts;n.set([e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.isNonSync,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r],12+16*a)}return xe.box(xe.types.trun,n)}static mdat(e){return xe.box(xe.types.mdat,e)}}xe.init();var Me=xe;class Be{static getSilentFrame(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 null}}var Ne=Be;class Ue{constructor(e,t,i,s,r){this.dts=e,this.pts=t,this.duration=i,this.originalDts=s,this.isSyncPoint=r,this.fileposition=null}}class Pe{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class Fe{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(0==this._list.length)return null;let t=this._list,i=0,s=t.length-1,r=0,n=0,a=s;e<t[0].dts&&(i=0,n=a+1);while(n<=a){if(r=n+Math.floor((a-n)/2),r===s||e>=t[r].dts&&e<t[r+1].dts){i=r;break}t[r].dts<e?n=r+1:a=r-1}return this._list[i]}}class Ge{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return 0===this._list.length}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(0===t.length)return-2;let i=t.length-1,s=0,r=0,n=i,a=0;if(e<t[0].originalBeginDts)return a=-1,a;while(r<=n){if(s=r+Math.floor((n-r)/2),s===i||e>t[s].lastSample.originalDts&&e<t[s+1].originalBeginDts){a=s;break}t[s].originalBeginDts<e?r=s+1:n=s-1}return a}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,i=e,s=this._lastAppendLocation,r=0;-1!==s&&s<t.length&&i.originalBeginDts>=t[s].lastSample.originalDts&&(s===t.length-1||s<t.length-1&&i.originalBeginDts<t[s+1].originalBeginDts)?r=s+1:t.length>0&&(r=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,i)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),i=this._list[t].syncPoints;while(0===i.length&&t>0)t--,i=this._list[t].syncPoints;return i.length>0?i[i.length-1]:null}}class Ve{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Ge("audio"),this._videoSegmentInfoList=new Ge("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!K.chrome||!(K.version.major<50||50===K.version.major&&K.version.build<2661)),this._fillSilentAfterSeek=K.msedge||K.msie,this._mp3UseMpegAudio=!K.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new F("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let i=null,s="mp4",r=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(s="mpeg",r="",i=new Uint8Array):i=Me.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,i=Me.generateInitSegment(t)}if(!this._onInitSegment)throw new F("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:i.buffer,codec:r,container:`${e}/${s}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,i={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);let s={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(s.samples.push(t),s.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(i,!0),this._remuxAudio(s,!0)}_remuxAudio(e,t){if(null==this._audioMeta)return;let i=e,s=i.samples,r=void 0,n=-1,a=-1,o=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,h=this._dtsBaseInited&&void 0===this._audioNextDts,d=!1;if(!s||0===s.length)return;if(1===s.length&&!t)return;let u=0,c=null,_=0;l?(u=0,_=i.length):(u=8,_=8+i.length);let m=null;if(s.length>1&&(m=s.pop(),_-=m.length),null!=this._audioStashedLastSample){let e=this._audioStashedLastSample;this._audioStashedLastSample=null,s.unshift(e),_+=e.length}null!=m&&(this._audioStashedLastSample=m);let f=s[0].dts-this._dtsBase;if(this._audioNextDts)r=f-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(d=!0);else{let e=this._audioSegmentInfoList.getLastSampleBefore(f);if(null!=e){let t=f-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;r=f-i}else r=0}if(d){let e=f-r,t=this._videoSegmentInfoList.getLastSegmentBefore(f);if(null!=t&&t.beginDts<e){let i=Ne.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(i){let r=t.beginDts,n=e-t.beginDts;B.v(this.TAG,`InsertPrefixSilentAudio: dts: ${r}, duration: ${n}`),s.unshift({unit:i,dts:r,pts:r}),_+=i.byteLength}}else d=!1}let p=[];for(let S=0;S<s.length;S++){let e=s[S],t=e.unit,i=e.dts-this._dtsBase,a=i-r;-1===n&&(n=a);let l=0;if(S!==s.length-1){let e=s[S+1].dts-this._dtsBase-r;l=e-a}else if(null!=m){let e=m.dts-this._dtsBase-r;l=e-a}else l=p.length>=1?p[p.length-1].duration:Math.floor(o);let h=!1,d=null;if(l>1.5*o&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!K.safari){h=!0;let e=Math.abs(l-o),s=Math.ceil(e/o),r=a+o;B.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\ndts: ${a+l} ms, expected: ${a+Math.round(o)} ms, delta: ${Math.round(e)} ms, generate: ${s} frames`);let n=Ne.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==n&&(B.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),n=t),d=[];for(let t=0;t<s;t++){let e=Math.round(r);if(d.length>0){let t=d[d.length-1];t.duration=e-t.dts}let t={dts:e,pts:e,cts:0,unit:n,size:n.byteLength,duration:0,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};d.push(t),_+=t.size,r+=o}let u=d[d.length-1];u.duration=a+l-u.dts,l=Math.round(o)}p.push({dts:a,pts:a,cts:0,unit:e.unit,size:e.unit.byteLength,duration:l,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),h&&p.push.apply(p,d)}l?c=new Uint8Array(_):(c=new Uint8Array(_),c[0]=_>>>24&255,c[1]=_>>>16&255,c[2]=_>>>8&255,c[3]=255&_,c.set(Me.types.mdat,4));for(let S=0;S<p.length;S++){let e=p[S].unit;c.set(e,u),u+=e.byteLength}let g=p[p.length-1];a=g.dts+g.duration,this._audioNextDts=a;let E=new Pe;E.beginDts=n,E.endDts=a,E.beginPts=n,E.endPts=a,E.originalBeginDts=p[0].originalDts,E.originalEndDts=g.originalDts+g.duration,E.firstSample=new Ue(p[0].dts,p[0].pts,p[0].duration,p[0].originalDts,!1),E.lastSample=new Ue(g.dts,g.pts,g.duration,g.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(E),i.samples=p,i.sequenceNumber++;let v=null;v=l?new Uint8Array:Me.moof(i,n),i.samples=[],i.length=0;let b={type:"audio",data:this._mergeBoxes(v,c).buffer,sampleCount:p.length,info:E};l&&h&&(b.timestampOffset=n),this._onMediaSegment("audio",b)}_remuxVideo(e,t){if(null==this._videoMeta)return;let i=e,s=i.samples,r=void 0,n=-1,a=-1,o=-1,l=-1;if(!s||0===s.length)return;if(1===s.length&&!t)return;let h=8,d=null,u=8+e.length,c=null;if(s.length>1&&(c=s.pop(),u-=c.length),null!=this._videoStashedLastSample){let e=this._videoStashedLastSample;this._videoStashedLastSample=null,s.unshift(e),u+=e.length}null!=c&&(this._videoStashedLastSample=c);let _=s[0].dts-this._dtsBase;if(this._videoNextDts)r=_-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let e=this._videoSegmentInfoList.getLastSampleBefore(_);if(null!=e){let t=_-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;r=_-i}else r=0}let m=new Pe,f=[];for(let E=0;E<s.length;E++){let e=s[E],t=e.dts-this._dtsBase,i=e.isKeyframe,a=t-r,l=e.cts,h=a+l;-1===n&&(n=a,o=h);let d=0;if(E!==s.length-1){let e=s[E+1].dts-this._dtsBase-r;d=e-a}else if(null!=c){let e=c.dts-this._dtsBase-r;d=e-a}else d=f.length>=1?f[f.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(i){let t=new Ue(a,h,d,e.dts,!0);t.fileposition=e.fileposition,m.appendSyncPoint(t)}f.push({dts:a,pts:h,cts:l,units:e.units,size:e.length,isKeyframe:i,duration:d,originalDts:t,flags:{isLeading:0,dependsOn:i?2:1,isDependedOn:i?1:0,hasRedundancy:0,isNonSync:i?0:1}})}d=new Uint8Array(u),d[0]=u>>>24&255,d[1]=u>>>16&255,d[2]=u>>>8&255,d[3]=255&u,d.set(Me.types.mdat,4);for(let E=0;E<f.length;E++){let e=f[E].units;while(e.length){let t=e.shift(),i=t.data;d.set(i,h),h+=i.byteLength}}let p=f[f.length-1];if(a=p.dts+p.duration,l=p.pts+p.duration,this._videoNextDts=a,m.beginDts=n,m.endDts=a,m.beginPts=o,m.endPts=l,m.originalBeginDts=f[0].originalDts,m.originalEndDts=p.originalDts+p.duration,m.firstSample=new Ue(f[0].dts,f[0].pts,f[0].duration,f[0].originalDts,f[0].isKeyframe),m.lastSample=new Ue(p.dts,p.pts,p.duration,p.originalDts,p.isKeyframe),this._isLive||this._videoSegmentInfoList.append(m),i.samples=f,i.sequenceNumber++,this._forceFirstIDR){let e=f[0].flags;e.dependsOn=2,e.isNonSync=0}let g=Me.moof(i,n);i.samples=[],i.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(g,d).buffer,sampleCount:f.length,info:m})}_mergeBoxes(e,t){let i=new Uint8Array(e.byteLength+t.byteLength);return i.set(e,0),i.set(t,e.byteLength),i}}var ze=Ve;const je={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};var We=je;class He{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new x.a,this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!==typeof e.cors&&(e.cors=!0),"boolean"!==typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let i=0;this._mediaDataSource.segments.forEach(s=>{s.timestampBase=i,i+=s.duration,s.cors=e.cors,s.withCredentials=e.withCredentials,t.referrerPolicy&&(s.referrerPolicy=t.referrerPolicy)}),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let i=this._mediaDataSource.segments[e],s=this._ioctl=new oe(i,this._config,e);s.onError=this._onIOException.bind(this),s.onSeeked=this._onIOSeeked.bind(this),s.onComplete=this._onIOComplete.bind(this),s.onRedirect=this._onIORedirect.bind(this),s.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):s.onDataArrival=this._onInitChunkArrival.bind(this),s.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(null==this._mediaInfo||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e;else{let t=i.getNearestKeyframe(e);this._remuxer.seek(t.milliseconds),this._ioctl.seek(t.fileposition),this._pendingResolveSeekPoint=t.milliseconds}}else{let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let s=i.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,s.fileposition),this._pendingResolveSeekPoint=s.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,i=t.length-1;for(let s=0;s<t.length;s++)if(e<t[s].timestampBase){i=s-1;break}return i}_onInitChunkArrival(e,t){let i=null,s=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,s=this._demuxer.parseChunks(e,t);else if((i=Ie.probe(e)).match){this._demuxer=new Ie(i,this._config),this._remuxer||(this._remuxer=new ze(this._config));let r=this._mediaDataSource;void 0==r.duration||isNaN(r.duration)||(this._demuxer.overridedDuration=r.duration),"boolean"===typeof r.hasAudio&&(this._demuxer.overridedHasAudio=r.hasAudio),"boolean"===typeof r.hasVideo&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),s=this._demuxer.parseChunks(e,t)}else i=null,B.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(We.DEMUX_ERROR,Ce.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),s=0;return s}_onMediaInfo(e){null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,ge.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,ge.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(()=>{let e=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(e)})}_onMetaDataArrived(e){this._emitter.emit(We.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(We.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let t=e,i=t+1;i<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(i)):(this._remuxer.flushStashedSamples(),this._emitter.emit(We.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(We.RECOVERED_EARLY_EOF)}_onIOException(e,t){B.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(We.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){B.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(We.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(We.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(We.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){let e=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,K.safari&&e.length>0&&e[0].originalDts===i&&(i=e[0].pts),this._emitter.emit(We.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],i=Object.assign({},t);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(We.MEDIA_INFO,i)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(We.STATISTICS_INFO,e)}}var qe=He;let Ke=function(e){let t=null,i=m.bind(this);function s(t,i){let s={msg:We.INIT_SEGMENT,data:{type:t,data:i}};e.postMessage(s,[i.data])}function r(t,i){let s={msg:We.MEDIA_SEGMENT,data:{type:t,data:i}};e.postMessage(s,[i.data])}function n(){let t={msg:We.LOADING_COMPLETE};e.postMessage(t)}function a(){let t={msg:We.RECOVERED_EARLY_EOF};e.postMessage(t)}function o(t){let i={msg:We.MEDIA_INFO,data:t};e.postMessage(i)}function l(t){let i={msg:We.METADATA_ARRIVED,data:t};e.postMessage(i)}function h(t){let i={msg:We.SCRIPTDATA_ARRIVED,data:t};e.postMessage(i)}function d(t){let i={msg:We.STATISTICS_INFO,data:t};e.postMessage(i)}function u(t,i){e.postMessage({msg:We.IO_ERROR,data:{type:t,info:i}})}function c(t,i){e.postMessage({msg:We.DEMUX_ERROR,data:{type:t,info:i}})}function _(t){e.postMessage({msg:We.RECOMMEND_SEEKPOINT,data:t})}function m(t,i){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:i}})}O.install(),e.addEventListener("message",(function(m){switch(m.data.cmd){case"init":t=new qe(m.data.param[0],m.data.param[1]),t.on(We.IO_ERROR,u.bind(this)),t.on(We.DEMUX_ERROR,c.bind(this)),t.on(We.INIT_SEGMENT,s.bind(this)),t.on(We.MEDIA_SEGMENT,r.bind(this)),t.on(We.LOADING_COMPLETE,n.bind(this)),t.on(We.RECOVERED_EARLY_EOF,a.bind(this)),t.on(We.MEDIA_INFO,o.bind(this)),t.on(We.METADATA_ARRIVED,l.bind(this)),t.on(We.SCRIPTDATA_ARRIVED,h.bind(this)),t.on(We.STATISTICS_INFO,d.bind(this)),t.on(We.RECOMMEND_SEEKPOINT,_.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(m.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let e=m.data.param;fe.applyConfig(e),!0===e.enableCallback?fe.addLogListener(i):fe.removeLogListener(i);break}}}))};var Xe=Ke;class Ye{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new x.a,t.enableWorker&&"undefined"!==typeof Worker)try{let s=i("0r65");this._worker=s(Xe),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},fe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:fe.getConfig()})}catch(s){B.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(e,t)}else this._controller=new qe(e,t);if(this._controller){let e=this._controller;e.on(We.IO_ERROR,this._onIOError.bind(this)),e.on(We.DEMUX_ERROR,this._onDemuxError.bind(this)),e.on(We.INIT_SEGMENT,this._onInitSegment.bind(this)),e.on(We.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),e.on(We.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),e.on(We.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),e.on(We.MEDIA_INFO,this._onMediaInfo.bind(this)),e.on(We.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),e.on(We.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),e.on(We.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),e.on(We.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),fe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return null!=this._worker}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(We.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(We.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(We.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(We.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(We.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(We.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(We.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(We.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(We.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(We.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(We.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,i=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case We.INIT_SEGMENT:case We.MEDIA_SEGMENT:this._emitter.emit(t.msg,i.type,i.data);break;case We.LOADING_COMPLETE:case We.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case We.MEDIA_INFO:Object.setPrototypeOf(i,ge.prototype),this._emitter.emit(t.msg,i);break;case We.METADATA_ARRIVED:case We.SCRIPTDATA_ARRIVED:case We.STATISTICS_INFO:this._emitter.emit(t.msg,i);break;case We.IO_ERROR:case We.DEMUX_ERROR:this._emitter.emit(t.msg,i.type,i.info);break;case We.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,i);break;case"logcat_callback":B.emitter.emit("log",i.type,i.logcat);break;default:break}}}var Qe=Ye;const Ze={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};var Je=Ze;class $e{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new x.a,this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Fe}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new F("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let t=this._mediaSource;for(let i in this._sourceBuffers){let s=this._pendingSegments[i];s.splice(0,s.length),this._pendingSegments[i]=null,this._pendingRemoveRanges[i]=null,this._lastInitSegments[i]=null;let r=this._sourceBuffers[i];if(r){if("closed"!==t.readyState){try{t.removeSourceBuffer(r)}catch(e){B.e(this.TAG,e.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[i]=null,this._sourceBuffers[i]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(e){B.e(this.TAG,e.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);let i=e,s=""+i.container;i.codec&&i.codec.length>0&&(s+=";codecs="+i.codec);let r=!1;if(B.v(this.TAG,"Received Initialization Segment, mimeType: "+s),this._lastInitSegments[i.type]=i,s!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])B.v(this.TAG,`Notice: ${i.type} mimeType changed, origin: ${this._mimeTypes[i.type]}, target: ${s}`);else{r=!0;try{let e=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(s);e.addEventListener("error",this.e.onSourceBufferError),e.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(n){return B.e(this.TAG,n.message),void this._emitter.emit(Je.ERROR,{code:n.code,msg:n.message})}}this._mimeTypes[i.type]=s}t||this._pendingSegments[i.type].push(i),r||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),K.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let i=this._sourceBuffers[t.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}seek(e){for(let i in this._sourceBuffers){if(!this._sourceBuffers[i])continue;let e=this._sourceBuffers[i];if("open"===this._mediaSource.readyState)try{e.abort()}catch(t){B.e(this.TAG,t.message)}this._idrList.clear();let s=this._pendingSegments[i];if(s.splice(0,s.length),"closed"!==this._mediaSource.readyState){for(let t=0;t<e.buffered.length;t++){let s=e.buffered.start(t),r=e.buffered.end(t);this._pendingRemoveRanges[i].push({start:s,end:r})}if(e.updating||this._doRemoveRanges(),K.safari){let t=this._lastInitSegments[i];t&&(this._pendingSegments[i].push(t),e.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let i=this._sourceBuffers[t];if(i){let t=i.buffered;if(t.length>=1&&e-t.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let i=this._sourceBuffers[t];if(i){let s=i.buffered,r=!1;for(let i=0;i<s.length;i++){let n=s.start(i),a=s.end(i);if(n<=e&&e<a+3){if(e-n>=this._config.autoCleanupMaxBackwardDuration){r=!0;let i=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:n,end:i})}}else a<e&&(r=!0,this._pendingRemoveRanges[t].push({start:n,end:a}))}r&&!i.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(0===this._mediaElement.readyState||"open"!==this._mediaSource.readyState)return;if(e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,i=this._pendingMediaDuration;i>0&&(isNaN(t)||i>t)&&(B.v(this.TAG,`Update MediaSource duration from ${t} to ${i}`),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],i=this._pendingRemoveRanges[e];while(i.length&&!t.updating){let e=i.shift();t.remove(e.start,e.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let i in e)if(this._sourceBuffers[i]&&!this._sourceBuffers[i].updating&&e[i].length>0){let s=e[i].shift();if(s.timestampOffset){let e=this._sourceBuffers[i].timestampOffset,t=s.timestampOffset/1e3,r=Math.abs(e-t);r>.1&&(B.v(this.TAG,`Update MPEG audio timestampOffset from ${e} to ${t}`),this._sourceBuffers[i].timestampOffset=t),delete s.timestampOffset}if(!s.data||0===s.data.byteLength)continue;try{this._sourceBuffers[i].appendBuffer(s.data),this._isBufferFull=!1,"video"===i&&s.hasOwnProperty("info")&&this._idrList.appendArray(s.info.syncPoints)}catch(t){this._pendingSegments[i].unshift(s),22===t.code?(this._isBufferFull||this._emitter.emit(Je.BUFFER_FULL),this._isBufferFull=!0):(B.e(this.TAG,t.message),this._emitter.emit(Je.ERROR,{code:t.code,msg:t.message}))}}}_onSourceOpen(){if(B.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;while(e.length){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Je.SOURCE_OPEN)}_onSourceEnded(){B.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){B.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Je.UPDATE_END)}_onSourceBufferError(e){B.e(this.TAG,"SourceBuffer Error: "+e)}}var et=$e;const tt={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},it={NETWORK_EXCEPTION:j.EXCEPTION,NETWORK_STATUS_CODE_INVALID:j.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:j.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:j.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ce.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ce.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ce.CODEC_UNSUPPORTED};class st{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new x.a,this._config=he(),"object"===typeof t&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new G("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let i=K.chrome&&(K.version.major<50||50===K.version.major&&K.version.build<2661);this._alwaysSeekKeyframe=!!(i||K.msedge||K.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===_e.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then(()=>{this._emitter.emit(_e.MEDIA_INFO,this.mediaInfo)}):e===_e.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then(()=>{this._emitter.emit(_e.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new et(this._config),this._msectl.on(Je.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Je.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Je.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Je.ERROR,e=>{this._emitter.emit(_e.ERROR,tt.MEDIA_ERROR,it.MEDIA_MSE_ERROR,e)}),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new F("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new F("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Qe(this._mediaDataSource,this._config),this._transmuxer.on(We.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(We.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let e=this._mediaElement.currentTime;t.info.endDts>=1e3*(e+this._config.lazyLoadMaxDuration)&&null==this._progressChecker&&(B.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(We.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(_e.LOADING_COMPLETE)}),this._transmuxer.on(We.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(_e.RECOVERED_EARLY_EOF)}),this._transmuxer.on(We.IO_ERROR,(e,t)=>{this._emitter.emit(_e.ERROR,tt.NETWORK_ERROR,e,t)}),this._transmuxer.on(We.DEMUX_ERROR,(e,t)=>{this._emitter.emit(_e.ERROR,tt.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(We.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(_e.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(We.METADATA_ARRIVED,e=>{this._emitter.emit(_e.METADATA_ARRIVED,e)}),this._transmuxer.on(We.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(_e.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(We.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(_e.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(We.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()))}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,s=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,s=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,s=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=s),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,i=0,s=0;for(let r=0;r<e.length;r++){let n=e.start(r),a=e.end(r);if(n<=t&&t<a){i=n,s=a;break}}s>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(B.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){B.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,i=!1;for(let s=0;s<t.length;s++){let r=t.start(s),n=t.end(s);if(e>=r&&e<n){e>=n-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(B.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let i=0;i<t.length;i++){let s=t.start(i),r=t.end(i);if(e>=s&&e<r)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),i=!1,s=0;if(e<1&&this._mediaElement.buffered.length>0){let t=this._mediaElement.buffered.start(0);(t<1&&e<t||K.safari)&&(i=!0,s=K.safari?.1:t)}if(i)this._requestSetTime=!0,this._mediaElement.currentTime=s;else if(t){if(this._alwaysSeekKeyframe){let t=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=t?t.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let e=t.buffered;e.length>0&&t.currentTime<e.start(0)&&(B.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${e.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=e.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,i=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&i.length>0){let e=i.start(0);if(e<1&&t<e||K.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=K.safari?.1:e)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let e=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=e&&(this._requestSetTime=!0,this._mediaElement.currentTime=e.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var rt=st;class nt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new x.a,this._config=he(),"object"===typeof t&&Object.assign(this._config,t),"flv"===e.type.toLowerCase())throw new G("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new G(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===_e.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(()=>{this._emitter.emit(_e.MEDIA_INFO,this.mediaInfo)}):e===_e.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(()=>{this._emitter.emit(_e.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new F("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,s=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,s=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,s=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=s),e}_onvLoadedMetadata(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(_e.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(_e.STATISTICS_INFO,this.statisticsInfo)}}var at=nt;function ot(e,t){let i=e;if(null==i||"object"!==typeof i)throw new G("MediaDataSource must be an javascript object!");if(!i.hasOwnProperty("type"))throw new G("MediaDataSource must has type field to indicate video file type!");switch(i.type){case"flv":return new rt(i,t);default:return new at(i,t)}}function lt(){return ue.supportMSEH264Playback()}function ht(){return ue.getFeatureList()}O.install();let dt={};dt.createPlayer=ot,dt.isSupported=lt,dt.getFeatureList=ht,dt.BaseLoader=W,dt.LoaderStatus=z,dt.LoaderErrors=j,dt.Events=_e,dt.ErrorTypes=tt,dt.ErrorDetails=it,dt.FlvPlayer=rt,dt.NativePlayer=at,dt.LoggingControl=fe,Object.defineProperty(dt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var ut=dt;function ct(e,t){return e-t}function _t(e){e.sort(ct);for(var t=0,i=0;i<e.length-1;i++){var s=Math.abs(e[i+1]-e[i]);s<21&&(t+=s)}return t}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});var mt=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,ft=e=>{var t=e.src,i=e.videoId,s=e.logWatchHistory,r=e.courseId,n=void 0===r?null:r,a=t.split(".").pop(),o="flv"===a,d=Object(c["useRef"])(),u=navigator.userAgent.toLowerCase().match(mt),m=u?u[0]:"pc",f=0,p=0,g=0,E=null,v=!1,b=20,S=1,y=!1,A=!1,R=[],L=Object(c["useCallback"])((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={point:d.current.currentTime};function a(){return o.apply(this,arguments)}function o(){return o=Object(h["a"])(l.a.mark((function t(){var i;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return y=!0,t.next=3,s(r);case 3:i=t.sent,E=i,y=!1,e&&e();case 7:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}E?(r["log_id"]=E,r["watch_duration"]=_t(R),r["total_duration"]=p):(n?(r["video_id"]=parseInt(i,10),r["course_id"]=parseInt(n,10)):r["video_id"]=i,r["duration"]=f,r["device"]=m),t&&(r["ed"]="1"),a()}),[i,n]);return Object(c["useEffect"])(()=>{var e=null;return ut.isSupported&&o?(e=ut.createPlayer({type:"flv",volume:.8,cors:!0,url:t,muted:!1}),d.current&&(e.attachMediaElement(d.current),e.load())):d.current.setAttribute("src",t),()=>{e&&(e.unload(),e.pause(),e.destroy(),e=null)}},[d,o,t]),Object(c["useEffect"])(()=>{function e(){R.push(d.current.currentTime),v||(v=!0,L())}function t(){return i.apply(this,arguments)}function i(){return i=Object(h["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:R.push(d.current.currentTime),L(()=>{E=null,g=0,v=!1,y=!1,A=!1,R=[],p=0,S=1},!0);case 2:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function s(){if(!A){var e=d.current.currentTime,t=e-g;Math.abs(t)<10?(p+=Math.abs(t),g=e,y||p-S*b>=0&&(S++,R.push(g),L())):g=e}}function r(){A=!0}function n(){d.current.playing&&R.push(d.current.currentTime,g),g=d.current.currentTime,A=!1}function a(){f=d.current.duration,f<=20&&(b=f/3),d.current.addEventListener("play",e)}return d.current.addEventListener("canplay",a),d.current.addEventListener("ended",t),d.current.addEventListener("seeking",r),d.current.addEventListener("seeked",n),d.current.addEventListener("timeupdate",s),()=>{d.current.removeEventListener("canplay",a),d.current.removeEventListener("play",e),d.current.removeEventListener("ended",t),d.current.removeEventListener("seeking",r),d.current.removeEventListener("seeked",n),d.current.removeEventListener("timeupdate",s),d.current.playing&&(R.push(g,d.current.currentTime),L())}},[d,t]),_.a.createElement("video",{ref:d,controls:!0,autoPlay:!1,controlsList:"nodownload",muted:!1})},pt=i("po3F"),gt=i.n(pt),Et=e=>{var t=e.visible,i=e.width,s=e.videoId,r=e.file_url,o=e.copyUrl,l=e.logWatchHistory,h=void 0===l?()=>{}:l,d=e.onClose,u=void 0===d?()=>{}:d;return _.a.createElement(a["a"],{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:t,title:null,footer:null,width:i,className:gt.a.modal},_.a.createElement("i",{className:"".concat(gt.a.closeIcon," iconfont icon-htmal5icon19"),onClick:u}),t&&_.a.createElement(ft,{src:atob(r),videoId:s,logWatchHistory:h}),_.a.createElement("div",{className:gt.a.wrap},_.a.createElement(C["a"],{className:gt.a.input,value:o}),_.a.createElement(L["CopyToClipboard"],{text:o,onCopy:()=>n["a"].success("\u590d\u5236\u6210\u529f")},_.a.createElement(k["a"],{type:"primary"},"\u590d\u5236\u89c6\u9891\u5730\u5740"))))},vt="90%",bt="55%",St=e=>{var t=e.data,i=e.isReview,s=e.onDelete,r=void 0===s?()=>{}:s,a=e.logWatchHistory,o=void 0===a?()=>{}:a,l=Object(c["useState"])(),h=Object(d["a"])(l,2),u=h[0],m=h[1],f=Object(c["useState"])({}),p=Object(d["a"])(f,2),S=p[0],A=p[1],w=e=>{m(!0),A({videoId:e.id,file_url:e.file_url,copyUrl:k(e.play_url||e.file_url,e.cover_url),logWatchHistory:o})},k=(e,t)=>{if(e)return'<video src="'.concat(atob(e),'" controls="true" controlslist="nodownload" width="').concat(vt,'" height="').concat(bt,'" poster="').concat(t,'">\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 video \u6807\u7b7e\u3002</video>')};return _.a.createElement(_.a.Fragment,null,t&&t.map((e,t)=>{var s=(e.transcoded||e.link)&&e.cover_url||y.a;return _.a.createElement("a",{className:T.a.wrap,key:e.id},_.a.createElement(E["a"],{className:"animated fadeIn ".concat(T.a.cardWrap)},_.a.createElement(b["a"],{tip:"\u6b63\u5728\u8f6c\u7801\uff0c\u8bf7\u7a0d\u7b49...",spinning:!e.transcoded&&!e.link},_.a.createElement("span",{className:T.a.imgWrap,onClick:()=>{!i&&w(e)}},_.a.createElement("img",{src:s}),e.link&&_.a.createElement("a",{className:T.a.linkWrap,href:e.link,target:"_blank",title:e.title},_.a.createElement("span",{className:T.a.link},"\u5916\u94fe")),!i&&_.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:T.a.mask}),_.a.createElement("div",{className:T.a.playIconWrap},_.a.createElement("img",{className:T.a.playIcon,src:R.a}))))),_.a.createElement("div",{className:T.a.cardBottom},_.a.createElement("div",{className:T.a.bottomTitle},e.title),_.a.createElement("div",{className:T.a.timeWrap},_.a.createElement("div",{className:T.a.time},e.total_time&&"\u7d2f\u8ba1\u5b66\u4e60\u65f6\u957f\uff1a".concat(e.total_time))),_.a.createElement("div",{className:T.a.bottomActionWrap},_.a.createElement("span",{className:T.a.peopleWrap},!!e.people_num&&_.a.createElement(v["a"],{title:"\u89c2\u770b\u4eba\u6570",placement:"bottom"},_.a.createElement("i",{className:"icon-dianjiliang iconfont font12"},e.people_num))),_.a.createElement("div",null,!i&&_.a.createElement(L["CopyToClipboard"],{text:k(e.play_url||e.file_url,e.cover_url),onCopy:()=>n["a"].success("\u590d\u5236\u6210\u529f")},_.a.createElement(v["a"],{title:"\u590d\u5236\u94fe\u63a5",placement:"bottom"},_.a.createElement("i",{className:"".concat(T.a.actionIcon," icon-fuzhi iconfont")}))),_.a.createElement(v["a"],{title:"\u5220\u9664",placement:"bottom"},_.a.createElement("i",{className:"".concat(T.a.actionIcon," icon-shanchu iconfont"),onClick:()=>r(e.id)})))))))}),_.a.createElement(Et,Object(g["a"])({},S,{visible:u,width:800,onClose:()=>{m(!1),A({})}})))},yt=St,At=i("DiaT"),Rt=i.n(At),Lt=e=>{var t=e.params,i=void 0===t?{}:t,s=e.handleChangeCategory,r=void 0===s?()=>{}:s,n=e.onUpload,a=void 0===n?()=>{}:n;return _.a.createElement(_.a.Fragment,null,_.a.createElement("div",{className:Rt.a.searchBar},_.a.createElement("div",{className:Rt.a.left},_.a.createElement("li",{className:"".concat(Rt.a.firstLi," ").concat("all"===i.category&&Rt.a.active)},_.a.createElement("a",{onClick:()=>r("all")},"\u5168\u90e8\u89c6\u9891")),_.a.createElement("li",{className:"".concat(Rt.a.otherLi," ").concat("pending"===i.category&&Rt.a.active)},_.a.createElement("a",{onClick:()=>r("pending")},"\u5f85\u5ba1\u6838\u89c6\u9891"))),_.a.createElement(k["a"],{type:"primary",className:Rt.a.button,onClick:a},"\u4e0a\u4f20\u89c6\u9891")))},wt=i("TCK6"),Tt=i.n(wt),kt=i("NLgs"),Ct=e=>{var t=e.user,i=(e.userDetail,e.globalSetting,e.loading),o=e.dispatch,g=(Object(u["a"])(e,["user","userDetail","globalSetting","loading","dispatch"]),Object(m["l"])()),E=Object(c["useRef"])(),v=Object(c["useState"])(0),b=Object(d["a"])(v,2),S=b[0],y=b[1],A=Object(c["useState"])([]),R=Object(d["a"])(A,2),L=R[0],w=R[1],T=Object(c["useState"])({category:"all",page:1,per_page:16,sort_by:"published_at",sort_direction:"desc",username:null}),k=Object(d["a"])(T,2),C=k[0],D=k[1];Object(c["useEffect"])(()=>{var e;E.current=null===(e=g.pathname.split("/"))||void 0===e?void 0:e[2],C.username=E.current,D(C),O(C)},[]);var O=function(){var e=Object(h["a"])(l.a.mark((function e(t){var i;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("all"!==C.category){e.next=6;break}return e.next=3,o({type:"userDetail/getVideos",payload:t});case 3:i=e.sent,e.next=9;break;case 6:return e.next=8,o({type:"userDetail/getReviewVideos",payload:t});case 8:i=e.sent;case 9:i&&(y(i.count||0),w(i.videos||[]));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=e=>{C.category=e,C.page=1,D(C),O(C)},x=()=>{C.sort_direction="desc"===C.sort_direction?"asc":"desc",D(C),O(C)},M=e=>{C.page=e,D(C),O(C)},B=()=>{var e,i;((null===(e=t.userInfo)||void 0===e?void 0:e.admin)||(null===(i=t.userInfo)||void 0===i?void 0:i.is_teacher)&&Object(kt["b"])())&&f["c"].push("/users/".concat(E.current,"/videos/upload"))},N=e=>{a["a"].confirm({title:"\u63d0\u793a",centered:!0,content:_.a.createElement("div",{className:Tt.a.modal},_.a.createElement("div",null,"\u8be5\u89c6\u9891\u5c06\u88ab\u5220\u9664\uff0c\u4e0d\u53ef\u6062\u590d"),_.a.createElement("div",null,"\u662f\u5426\u786e\u8ba4\u5220\u9664?")),okText:"\u786e\u8ba4",cancelText:"\u53d6\u6d88",onOk:function(){var t=Object(h["a"])(l.a.mark((function t(){var i;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o({type:"userDetail/deleteVideo",payload:{id:e,username:E.current}});case 2:i=t.sent,i&&(n["a"].info("\u89c6\u9891\u5220\u9664\u6210\u529f\uff01"),O(C));case 4:case"end":return t.stop()}}),t)})));function i(){return t.apply(this,arguments)}return i}()})},U=e=>o({type:"userDetail/logWatchHistory",payload:e});return _.a.createElement("div",{className:Tt.a.wrap},_.a.createElement("div",null,_.a.createElement(Lt,{params:C,handleChangeCategory:I,onUpload:B}),_.a.createElement("div",{className:Tt.a.midWrap},_.a.createElement("span",{className:Tt.a.color999},"\u5171",_.a.createElement("span",{className:Tt.a.colorRed},S),"\u4e2a\u89c6\u9891"),"all"===C.category&&_.a.createElement("div",{className:Tt.a.orderWrap},_.a.createElement("span",{className:Tt.a.orderTextWrap},"\u6700\u65b0\u4e0a\u4f20"),_.a.createElement("span",{className:Tt.a.orderIconWrap},_.a.createElement("span",{className:Tt.a.orderAsc},_.a.createElement("i",{className:"asc"===C.sort_direction?"iconfont icon-sanjiaoxing-up font12 ".concat(Tt.a.color4CACFF," ").concat(Tt.a.h10," ").concat(Tt.a.cursorPointer):"iconfont icon-sanjiaoxing-up font12 ".concat(Tt.a.h10," ").concat(Tt.a.cursorPointer),onClick:()=>x()})),_.a.createElement("span",{className:Tt.a.orderDesc},_.a.createElement("i",{className:"desc"===C.sort_direction?"iconfont icon-sanjiaoxing-down font12 ".concat(Tt.a.color4CACFF," ").concat(Tt.a.h10," ").concat(Tt.a.cursorPointer):"iconfont icon-sanjiaoxing-down font12 ".concat(Tt.a.h10," ").concat(Tt.a.cursorPointer),onClick:()=>x()}))))),_.a.createElement(s["a"],{loading:!(!i["userDetail/getVideos"]&&!i["userDetail/getReviewVideos"]),active:!0,paragraph:{rows:5}},_.a.createElement("div",{className:Tt.a.cardWrap},!L.length&&_.a.createElement(p["a"],null),_.a.createElement(yt,{data:L,isReview:"pending"===C.category,onDelete:N,logWatchHistory:U})),S>16&&_.a.createElement("div",{className:Tt.a.countWrap},_.a.createElement(r["a"],{showQuickJumper:!0,showSizeChanger:!1,total:S,onChange:e=>M(e),pageSize:16,current:C.page})))))};t["default"]=Object(f["a"])(e=>{var t=e.user,i=e.userDetail,s=e.loading,r=e.globalSetting;return{user:t,userDetail:i,globalSetting:r,loading:s.effects}})(Ct)},po3F:function(e,t,i){e.exports={modal:"modal___3Y0Wf",closeIcon:"closeIcon___2U9hd",wrap:"wrap___3bgrF",input:"input___e0HRQ"}},rHp0:function(e,t,i){e.exports={flex_box_center:"flex_box_center___2-GY4",flex_space_between:"flex_space_between___23GVb",flex_box_vertical_center:"flex_box_vertical_center___6PomO",flex_box_center_end:"flex_box_center_end___1Ipg1",flex_box_column:"flex_box_column___3m5MC",wrap:"wrap___2oRqO",mask:"mask___3vrt3",playIconWrap:"playIconWrap___3zNa5",playIcon:"playIcon___1x8C5",linkWrap:"linkWrap___tlbb_",link:"link___3E7j7",imgWrap:"imgWrap___3oWQ1",cardBottom:"cardBottom___3qX0x",bottomTitle:"bottomTitle___sGy0p",timeWrap:"timeWrap___3j3QV",time:"time___3vp2-",bottomActionWrap:"bottomActionWrap___EGSk2",peopleWrap:"peopleWrap___2NTgO",actionIcon:"actionIcon___1kusF"}},xKgJ:function(e,t,i){"use strict";i.d(t,"h",(function(){return l})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return d})),i.d(t,"k",(function(){return u})),i.d(t,"d",(function(){return c})),i.d(t,"f",(function(){return _})),i.d(t,"j",(function(){return m})),i.d(t,"e",(function(){return f})),i.d(t,"i",(function(){return p})),i.d(t,"a",(function(){return g})),i.d(t,"g",(function(){return E})),i.d(t,"l",(function(){return v}));var s,r,n=i("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(s||(s={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(r||(r={}));var a=e=>{var t=Object(n["b"])()._store.getState(),i=t.user,s=i.userInfo;return e.some(e=>e==(null===s||void 0===s?void 0:s.role))},o=e=>{var t=Object(n["b"])()._store.getState(),i=t.user,s=i.userInfo;return e.some(e=>{var t;return e==(null===s||void 0===s||null===(t=s.course)||void 0===t?void 0:t.course_role)})},l=()=>{var e=Object(n["b"])()._store.getState(),t=e.user,i=t.userInfo;return i.main_site},h=()=>{var e,t=Object(n["b"])()._store.getState(),i=t.user,s=i.userInfo;return null===s||void 0===s||null===(e=s.course)||void 0===e?void 0:e.course_is_end},d=()=>o([r.SuperAdmin,r.Operation,r.Admin,r.Teacher,r.Assistant]),u=()=>o([r.SuperAdmin]),c=()=>o([r.SuperAdmin,r.Operation,r.Admin]),_=()=>o([r.SuperAdmin,r.Operation,r.Admin,r.Teacher]),m=()=>o([r.Student]),f=()=>o([r.SuperAdmin,r.Operation,r.Admin,r.Teacher,r.Assistant,r.Student]),p=()=>{var e=Object(n["b"])()._store.getState(),t=e.user,i=t.userInfo;return(null===i||void 0===i?void 0:i.course_identity)>=6},g=function(){return a([s.SuperAdmin,s.Operation,s.CertifiedTeacher,s.TrainingProduction])},E=()=>{var e,t=Object(n["b"])()._store.getState(),i=t.user;return!!(null===(e=i.userInfo)||void 0===e?void 0:e.login)},v=()=>{var e=Object(n["b"])()._store.getState(),t=e.user;return t.userInfo}},zpA9:function(e,t,i){e.exports=i.p+"static/default.4759ba28.png"}}]);