text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.xgplayer=t():e.xgplayer=t()}(window,(function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=113)}([function(e,t,r){"use strict";r.d(t,"h",(function(){return n})),r.d(t,"o",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"t",(function(){return l})),r.d(t,"v",(function(){return s})),r.d(t,"l",(function(){return c})),r.d(t,"m",(function(){return u})),r.d(t,"k",(function(){return d})),r.d(t,"w",(function(){return g})),r.d(t,"j",(function(){return f})),r.d(t,"g",(function(){return y})),r.d(t,"c",(function(){return h})),r.d(t,"b",(function(){return x})),r.d(t,"i",(function(){return v})),r.d(t,"q",(function(){return m})),r.d(t,"p",(function(){return b})),r.d(t,"r",(function(){return E})),r.d(t,"s",(function(){return w})),r.d(t,"n",(function(){return T})),r.d(t,"e",(function(){return O})),r.d(t,"u",(function(){return _})),r.d(t,"a",(function(){return S})),r.d(t,"f",(function(){return R})),r.d(t,"x",(function(){return A}));var i=r(7);function n(e="div",t="",r={},i=""){let n=document.createElement(e);return n.className=i,n.innerHTML=t,Object.keys(r).forEach(t=>{let i=t,o=r[t];"video"===e||"audio"===e?o&&n.setAttribute(i,o):n.setAttribute(i,o)}),n}function o(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,e=>e===t):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function a(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(t=>{t&&e.classList.add(t)}):o(e,t)||(e.className+=" "+t))}function l(e,t){e&&(e.classList?t.split(/\s+/g).forEach(t=>{e.classList.remove(t)}):o(e,t)&&t.split(/\s+/g).forEach(t=>{let r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}))}function s(e,t){e&&t.split(/\s+/g).forEach(t=>{o(e,t)?l(e,t):a(e,t)})}function c(e=document,t){let r;try{r=e.querySelector(t)}catch(i){0===t.indexOf("#")&&(r=e.getElementById(t.slice(1)))}return r}function p(e,t,r){let i=String(r),n=t>>0,o=Math.ceil(n/i.length),a=[],l=String(e);for(;o--;)a.push(i);return a.join("").substring(0,n-l.length)+l}function u(e){if(window.isNaN(e))return"";let t=p(Math.floor(e/3600),2,0),r=p(Math.floor((e-3600*t)/60),2,0),i=p(Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,i]:[t,r,i]).join(":")}function d(e){if(e.touches){let t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function g(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function f(e,t){if("Object"===g(t)&&"Object"===g(e))return Object.keys(t).forEach(r=>{"Object"!==g(t[r])||t[r]instanceof Node?"Array"===g(t[r])?e[r]="Array"===g(e[r])?e[r].concat(t[r]):t[r]:e[r]=t[r]:e[r]?f(e[r],t[r]):e[r]=t[r]}),e}function y(e){if(e&&1===e.nodeType){let t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,e=>{t.setAttribute(e.name,e.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function h(e,t,r,i){e._interval[t]||(e._interval[t]=setInterval(r.bind(e),i))}function x(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function v(e,t,r,i){let o=n("xg-"+e,"",{},`xgplayer-${e}-img`);if(o.style.backgroundImage=`url("${t}")`,r&&i){let t,n,a;["px","rem","em","pt","dp","vw","vh","vm","%"].every(e=>!(r.indexOf(e)>-1&&i.indexOf(e)>-1)||(t=Number(r.slice(0,r.indexOf(e)).trim()),n=Number(i.slice(0,i.indexOf(e)).trim()),a=e,!1)),o.style.width=`${t}${a}`,o.style.height=`${n}${a}`,o.style.backgroundSize=`${t}${a} ${n}${a}`,o.style.margin="start"===e?`-${n/2}${a} auto auto -${t/2}${a}`:"auto 5px auto 5px"}return o}function m(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function b(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function k(e,t,r,i){e.once(i,(function n(){e.off(t,r),e.off(i,n)}))}function E(e,t,r,i){if(i)e.on(t,r),k(e,t,r,i);else{let i=n=>{r(n),e.off(t,i)};e.on(t,i)}}function w(e,t,r,i){if(i)e.once(t,r),k(e,t,r,i);else{let i=n=>{r(n),e.off(t,i)};e.once(t,i)}}function T(e,t=.5){let r=[];for(let t=0;t<e.length;t++)r.push({start:e.start(t)<.5?0:e.start(t),end:e.end(t)});r.sort((function(e,t){let r=e.start-t.start;return r||t.end-e.end}));let n=[];if(t)for(let e=0;e<r.length;e++){let i=n.length;if(i){let o=n[i-1].end;r[e].start-o<t?r[e].end>o&&(n[i-1].end=r[e].end):n.push(r[e])}else n.push(r[e])}else n=r;return new i.a(n)}function O(){return!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)}function _(e,t,r){let i=e.style;try{i[t]=r}catch(e){i.setProperty(t,r)}}const S={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"};function R(e){return"function"==typeof e.webkitSetPresentationMode}const A={createDom:n,hasClass:o,addClass:a,removeClass:l,toggleClass:s,findDom:c,padStart:p,format:u,event:d,typeOf:g,deepCopy:f,getBgImage:function(e){let t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";let r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},copyDom:y,setInterval:h,clearInterval:x,createImgBtn:v,isWeiXin:m,isUc:b,computeWatchDur:function(e=[]){let t=[];for(let r=0;r<e.length;r++)if(!(!e[r].end||e[r].begin<0||e[r].end<0||e[r].end<e[r].begin))if(t.length<1)t.push({begin:e[r].begin,end:e[r].end});else for(let i=0;i<t.length;i++){let n=e[r].begin,o=e[r].end;if(o<t[i].begin){t.splice(i,0,{begin:n,end:o});break}if(!(n>t[i].end)){let e=t[i].begin,r=t[i].end;t[i].begin=Math.min(n,e),t[i].end=Math.max(o,r);break}if(i>t.length-2){t.push({begin:n,end:o});break}}let r=0;for(let e=0;e<t.length;e++)r+=t[e].end-t[e].begin;return r},offInDestroy:k,on:E,once:w,getBuffered2:T,checkIsBrowser:O,setStyle:_}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var n=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(o).concat([n]).join("\n")}var a;return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var o=this[n][0];"number"==typeof o&&(i[o]=!0)}for(n=0;n<e.length;n++){var a=e[n];"number"==typeof a[0]&&i[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),t.push(a))}},t}},function(e,t,r){var i,n,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===n&&(n=i.apply(this,arguments)),n}),l=function(e){return document.querySelector(e)},s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,p=0,u=[],d=r(39);function g(e,t){for(var r=0;r<e.length;r++){var i=e[r],n=o[i.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](i.parts[a]);for(;a<i.parts.length;a++)n.parts.push(m(i.parts[a],t))}else{var l=[];for(a=0;a<i.parts.length;a++)l.push(m(i.parts[a],t));o[i.id]={id:i.id,refs:1,parts:l}}}}function f(e,t){for(var r=[],i={},n=0;n<e.length;n++){var o=e[n],a=t.base?o[0]+t.base:o[0],l={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(l):r.push(i[a]={id:a,parts:[l]})}return r}function y(e,t){var r=s(e.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===e.insertAt)i?i.nextSibling?r.insertBefore(t,i.nextSibling):r.appendChild(t):r.insertBefore(t,r.firstChild),u.push(t);else if("bottom"===e.insertAt)r.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var n=s(e.insertInto+" "+e.insertAt.before);r.insertBefore(t,n)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function x(e){var t=document.createElement("style");return e.attrs.type="text/css",v(t,e.attrs),y(e,t),t}function v(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}function m(e,t){var r,i,n,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=p++;r=c||(c=x(t)),i=E.bind(null,r,a,!1),n=E.bind(null,r,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",v(t,e.attrs),y(e,t),t}(t),i=T.bind(null,r,t),n=function(){h(r),r.href&&URL.revokeObjectURL(r.href)}):(r=x(t),i=w.bind(null,r),n=function(){h(r)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else n()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=f(e,t);return g(r,t),function(e){for(var i=[],n=0;n<r.length;n++){var a=r[n];(l=o[a.id]).refs--,i.push(l)}e&&g(f(e,t),t);for(n=0;n<i.length;n++){var l;if(0===(l=i[n]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete o[l.id]}}}};var b,k=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function E(e,t,r,i){var n=r?"":i.css;if(e.styleSheet)e.styleSheet.cssText=k(t,n);else{var o=document.createTextNode(n),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function w(e,t){var r=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function T(e,t,r){var i=r.css,n=r.sourceMap,o=void 0===t.convertToAbsoluteUrls&&n;(t.convertToAbsoluteUrls||o)&&(i=d(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var a=new Blob([i],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t,r){"use strict";let i={};Object.defineProperty(i,"device",{get:function(){return i.os.isPc?"pc":"mobile"}}),Object.defineProperty(i,"browser",{get:function(){let e=navigator.userAgent.toLowerCase(),t={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(t).filter(r=>t[r].test(e)))[0]||""}}),Object.defineProperty(i,"os",{get:function(){let e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,i=/(?:Android)/.test(e),n=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||i&&!/(?:Mobile)/.test(e)||n&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:i,isPc:!(a||i||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:n}}}),t.a=i},function(e,t,r){"use strict";var i=r(8);const n={network:{code:1,msg:"视频下载错误",remark:"只要视频下载错误就使用此类型，无论是video本身的超时还是xhr的分段请求超时或者资源不存在"},mse:{code:2,msg:"流追加错误",remark:"追加流的时候如果类型不对、无法被正确解码则会触发此类错误"},parse:{code:3,msg:"解析错误",remark:"mp4、hls、flv我们都是使用js进行格式解析，如果解析失败则会触发此类错误"},format:{code:4,msg:"格式错误",remark:"如果浏览器不支持的格式导致播放错误"},decoder:{code:5,msg:"解码错误",remark:"浏览器解码异常会抛出此类型错误"},runtime:{code:6,msg:"语法错误",remark:"播放器语法错误"},timeout:{code:7,msg:"播放超时",remark:"播放过程中无法正常请求下一个分段导致播放中断"},other:{code:8,msg:"其他错误",remark:"不可知的错误或被忽略的错误类型"}};t.a=class{constructor(e,t,r,o,a,l,s,c,p={line:"",handle:"",msg:"",version:""},u,d){let g={};if(arguments.length>1)g.playerVersion=i.a,g.errorType=e,g.domain=document.domain,g.duration=r,g.currentTime=t,g.networkState=o,g.readyState=a,g.currentSrc=s,g.src=l,g.ended=c,g.errd=p,g.ex=(n[e]||{}).msg,g.errorCode=u,g.mediaError=d;else{const e=arguments[0];Object.keys(e).map(t=>{g[t]=e[t]}),g.ex=(e.type&&n[e.type]||{}).msg}return g}}},function(e,t,r){"use strict";var i=r(11),n=r.n(i),o=r(0),a=r(4);var l=class{constructor(e){this._hasStart=!1,this.videoConfig={controls:!!e.isShowControl,autoplay:e.autoplay,playsinline:e.playsinline,"webkit-playsinline":e.playsinline,"x5-playsinline":e.playsinline,"x5-video-player-type":e["x5-video-player-type"]||e.x5VideoPlayerType,"x5-video-player-fullscreen":e["x5-video-player-fullscreen"]||e.x5VideoPlayerFullscreen,"x5-video-orientation":e["x5-video-orientation"]||e.x5VideoOrientation,airplay:e.airplay,"webkit-airplay":e.airplay,tabindex:2,mediaType:e.mediaType||"video"},e.muted&&(this.videoConfig.muted="muted"),e.loop&&(this.videoConfig.loop="loop");let t="";if(this.textTrackShowDefault=!0,e.nativeTextTrack&&Array.isArray(e.nativeTextTrack)&&(e.nativeTextTrack.length>0&&!e.nativeTextTrack.some(e=>e.default)&&(e.nativeTextTrack[0].default=!0,this.textTrackShowDefault=!1),e.nativeTextTrack.some(e=>{if(e.src&&e.label&&e.default)return t+=`<track src="${e.src}" `,e.kind&&(t+=`kind="${e.kind}" `),t+=`label="${e.label}" `,e.srclang&&(t+=`srclang="${e.srclang}" `),t+=(e.default?"default":"")+">",!0}),this.videoConfig.crossorigin="anonymous"),e.textTrackStyle){let t=document.createElement("style");this.textTrackStyle=t,document.head.appendChild(t);let r="";for(let t in e.textTrackStyle)r+=`${t}: ${e.textTrackStyle[t]};`;let i=e.id?"#"+e.id:e.el.id?"#"+e.el.id:"."+e.el.className;t.sheet.insertRule?t.sheet.insertRule(`${i} video::cue { ${r} }`,0):t.sheet.addRule&&t.sheet.addRule(i+" video::cue",r)}let r=e.el?e.el:Object(o.l)(document,"#"+e.id);const i=this.constructor.XgVideoProxy;if(i&&this.videoConfig.mediaType===i.mediaType?this.video=new i(r,e):this.video=Object(o.h)(this.videoConfig.mediaType,t,this.videoConfig,""),e.videoStyle&&Object.keys(e.videoStyle).forEach(t=>{Object(o.u)(this.video,t,e.videoStyle[t])}),!this.textTrackShowDefault&&t){this.video.getElementsByTagName("Track")[0].track.mode="hidden"}e.autoplay&&(this.video.autoplay=!0,e.autoplayMuted&&(this.video.muted=!0)),this.ev=["play","playing","pause","ended","error","seeking","seeked","progress","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","ratechange","loadedmetadata","loadeddata","loadstart"].map(e=>({[e]:`on${e.charAt(0).toUpperCase()}${e.slice(1)}`})),n()(this),this._interval={};let a="0,0",l=this;const s=e=>{this&&("play"===e?this.hasStart=!0:"canplay"===e?Object(o.t)(this.root,"xgplayer-is-enter"):"waiting"===e?this.inWaitingStart=(new Date).getTime():"playing"===e&&(Object(o.t)(this.root,"xgplayer-is-enter"),this.inWaitingStart&&(this.inWaitingStart=void 0)),"error"===e?this._onError(e):this.emit(e,this),this.hasOwnProperty("_interval")&&(["ended","error","timeupdate"].indexOf(e)<0?(Object(o.b)(this,"bufferedChange"),Object(o.c)(this,"bufferedChange",(function(){if(this.video&&this.video.buffered){let e=[];for(let t=0,r=this.video.buffered.length;t<r;t++)e.push([this.video.buffered.start(t),this.video.buffered.end(t)]);e.toString()!==a&&(a=e.toString(),this.emit("bufferedChange",e))}}),200)):"timeupdate"!==e&&Object(o.b)(this,"bufferedChange")))},c=t=>{e.videoEventMiddleware&&"function"==typeof e.videoEventMiddleware[t]?e.videoEventMiddleware[t].call(this,this,t,s):s.call(this,t)};this.ev.forEach(e=>{l.evItem=Object.keys(e)[0];let t=Object.keys(e)[0];l.video.addEventListener(Object.keys(e)[0],c.bind(l,t))})}_onError(e){this.video&&this.video.error&&this.emit(e,new a.a("other",this.currentTime,this.duration,this.networkState,this.readyState,this.currentSrc,this.src,this.ended,{line:162,msg:this.error,handle:"Constructor"},this.video.error.code,this.video.error))}get hasStart(){return this._hasStart}set hasStart(e){"boolean"!=typeof e||!0!==e||this._hasStart||(this._hasStart=!0,this.emit("hasstart"))}destroy(){this.textTrackStyle&&this.textTrackStyle.parentNode.removeChild(this.textTrackStyle)}play(){return this.video.play()}pause(){this.video.pause()}canPlayType(e){return this.video.canPlayType(e)}getBufferedRange(e){let t=[0,0],r=this.video;e||(e=r.buffered);let i=r.currentTime;if(e)for(let r=0,n=e.length;r<n&&(t[0]=e.start(r),t[1]=e.end(r),!(t[0]<=i&&i<=t[1]));r++);return t[0]-i<=0&&i-t[1]<=0?t:[0,0]}proxyOn(e,t){Object(o.r)(this,e,t,"destroy")}proxyOnce(e,t){Object(o.s)(this,e,t,"destroy")}set autoplay(e){this.video&&(this.video.autoplay=e)}get autoplay(){return!!this.video&&this.video.autoplay}get buffered(){return this.video?this.video.buffered:void 0}get buffered2(){return Object(o.n)(this.video.buffered)}get crossOrigin(){return!!this.video&&this.video.crossOrigin}set crossOrigin(e){this.video&&(this.video.crossOrigin=e)}get currentSrc(){return this.video?this.video.currentSrc:void 0}get currentTime(){return this.video&&this.video.currentTime||0}set currentTime(e){("function"!=typeof isFinite||isFinite(e))&&(Object(o.o)(this.root,"xgplayer-ended")?(this.once("playing",()=>{this.video.currentTime=e}),this.replay()):this.video.currentTime=e,this.emit("currentTimeChange",e))}get defaultMuted(){return!!this.video&&this.video.defaultMuted}set defaultMuted(e){this.video&&(this.video.defaultMuted=e)}get duration(){return this.config.duration?this.video?Math.min(this.config.duration,this.video.duration):this.config.duration:this.video?this.video.duration:null}get ended(){return!this.video||(this.video.ended||!1)}get error(){let e=this.video.error;if(!e)return null;let t=[{en:"MEDIA_ERR_ABORTED",cn:"取回过程被用户中止"},{en:"MEDIA_ERR_NETWORK",cn:"当下载时发生错误"},{en:"MEDIA_ERR_DECODE",cn:"当解码时发生错误"},{en:"MEDIA_ERR_SRC_NOT_SUPPORTED",cn:"不支持音频/视频"}];return this.lang?this.lang[t[e.code-1].en]:t[e.code-1].en}get loop(){return!!this.video&&this.video.loop}set loop(e){this.video&&(this.video.loop=e)}get muted(){return!!this.video&&this.video.muted}set muted(e){this.video&&(this.video.muted=e)}get networkState(){let e=[{en:"NETWORK_EMPTY",cn:"音频/视频尚未初始化"},{en:"NETWORK_IDLE",cn:"音频/视频是活动的且已选取资源，但并未使用网络"},{en:"NETWORK_LOADING",cn:"浏览器正在下载数据"},{en:"NETWORK_NO_SOURCE",cn:"未找到音频/视频来源"}];return this.lang?this.lang[e[this.video.networkState].en]:e[this.video.networkState].en}get paused(){return Object(o.o)(this.root,"xgplayer-pause")}get playbackRate(){return this.video?this.video.playbackRate:1}set playbackRate(e){this.video&&(this.video.playbackRate=e)}get played(){return this.video?this.video.played:void 0}get preload(){return!!this.video&&this.video.preload}set preload(e){this.video&&(this.video.preload=e)}get readyState(){let e=[{en:"HAVE_NOTHING",cn:"没有关于音频/视频是否就绪的信息"},{en:"HAVE_METADATA",cn:"关于音频/视频就绪的元数据"},{en:"HAVE_CURRENT_DATA",cn:"关于当前播放位置的数据是可用的，但没有足够的数据来播放下一帧/毫秒"},{en:"HAVE_FUTURE_DATA",cn:"当前及至少下一帧的数据是可用的"},{en:"HAVE_ENOUGH_DATA",cn:"可用数据足以开始播放"}];return this.lang?this.lang[e[this.video.readyState].en]:e[this.video.readyState]}get seekable(){return!!this.video&&this.video.seekable}get seeking(){return!!this.video&&this.video.seeking}get src(){return this.video?this.video.src:void 0}set src(e){Object(o.o)(this.root,"xgplayer-ended")||this.emit("urlchange",this.video.src),Object(o.t)(this.root,"xgplayer-ended xgplayer-is-replay xgplayer-is-error"),this.video.pause(),this.emit("pause"),this.video.src=e,this.emit("srcChange")}set poster(e){let t=Object(o.l)(this.root,".xgplayer-poster");t&&(t.style.backgroundImage=`url(${e})`)}get volume(){return this.video?this.video.volume:1}set volume(e){this.video&&(this.video.volume=e)}get fullscreen(){return Object(o.o)(this.root,"xgplayer-is-fullscreen")||Object(o.o)(this.root,"xgplayer-fullscreen-active")}get bullet(){return!!Object(o.l)(this.root,"xg-danmu")&&Object(o.o)(Object(o.l)(this.root,"xg-danmu"),"xgplayer-has-danmu")}get textTrack(){return Object(o.o)(this.root,"xgplayer-is-textTrack")}get pip(){return Object(o.o)(this.root,"xgplayer-pip-active")}},s=r(3),c=r(7),p=r(12),u=r.n(p),d=r(9),g=(r(37),r(8));class f extends l{constructor(e){if(super(e),this.config=Object(o.j)({width:600,height:337.5,ignores:[],whitelist:[],lang:(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase(),inactive:3e3,volume:.6,controls:!0,controlsList:["nodownload"]},e),this.version=g.a,this.userTimer=null,this.waitTimer=null,this.history=[],this.isProgressMoving=!1,this.root=Object(o.l)(document,"#"+this.config.id),this.controls=Object(o.h)("xg-controls","",{unselectable:"on",onselectstart:"return false"},"xgplayer-controls"),this.config.isShowControl&&(this.controls.style.display="none"),!this.root){let e=this.config.el;if(!e||1!==e.nodeType)return this.emit("error",new a.a({type:"use",errd:{line:45,handle:"Constructor",msg:"container id can't be empty"},vid:this.config.vid})),console.error("container id can't be empty"),!1;this.root=e}if(Object(o.d)(this.root,`xgplayer xgplayer-${s.a.device} xgplayer-nostart xgplayer-pause ${this.config.controls?"":"xgplayer-no-controls"}`),this.root.appendChild(this.controls),this.config.fluid?(this.root.style["max-width"]="100%",this.root.style.width="100%",this.root.style.height="0",this.root.style["padding-top"]=100*this.config.height/this.config.width+"%",this.video.style.position="absolute",this.video.style.top="0",this.video.style.left="0"):(this.config.width&&("number"!=typeof this.config.width?this.root.style.width=this.config.width:this.root.style.width=this.config.width+"px"),this.config.height&&("number"!=typeof this.config.height?this.root.style.height=this.config.height:this.root.style.height=this.config.height+"px")),this.config.execBeforePluginsCall&&this.config.execBeforePluginsCall.forEach(e=>{e.call(this,this)}),this.config.closeI18n||f.install(d.a.name,d.a.method),this.config.controlStyle&&"String"===Object(o.w)(this.config.controlStyle)){let e=this;fetch(e.config.controlStyle,{method:"GET",headers:{Accept:"application/json"}}).then((function(t){t.ok&&t.json().then((function(t){for(var r in t)t.hasOwnProperty(r)&&(e.config[r]=t[r]);e.pluginsCall()}))})).catch((function(e){console.log("Fetch错误:"+e)}))}else this.pluginsCall();this.config.controlPlugins&&f.controlsRun(this.config.controlPlugins,this),this.ev.forEach(e=>{let t=Object.keys(e)[0],r=this[e[t]];r&&this.on(t,r)}),["focus","blur"].forEach(e=>{this.on(e,this["on"+e.charAt(0).toUpperCase()+e.slice(1)])});let t=this;this.mousemoveFunc=function(){t.emit("focus"),t.config.closeFocusVideoFocus||t.video.focus()},this.root.addEventListener("mousemove",this.mousemoveFunc),this.playFunc=function(){t.emit("focus"),t.config.closePlayVideoFocus||t.video.focus()},t.once("play",this.playFunc),this.getVideoSize=function(){if(this.video.videoWidth&&this.video.videoHeight){let e=t.root.getBoundingClientRect();"auto"===t.config.fitVideoSize?e.width/e.height>this.video.videoWidth/this.video.videoHeight?t.root.style.height=this.video.videoHeight/this.video.videoWidth*e.width+"px":t.root.style.width=this.video.videoWidth/this.video.videoHeight*e.height+"px":"fixWidth"===t.config.fitVideoSize?t.root.style.height=this.video.videoHeight/this.video.videoWidth*e.width+"px":"fixHeight"===t.config.fitVideoSize&&(t.root.style.width=this.video.videoWidth/this.video.videoHeight*e.height+"px")}},t.once("loadeddata",this.getVideoSize),setTimeout(()=>{this.emit("ready"),this.isReady=!0},0),this.config.videoInit&&Object(o.o)(this.root,"xgplayer-nostart")&&this.start(),t.config.rotate&&(t.on("requestFullscreen",this.updateRotateDeg),t.on("exitFullscreen",this.updateRotateDeg)),t.once("destroy",(function e(){t.root.removeEventListener("mousemove",t.mousemoveFunc),t.off("destroy",e)}))}attachVideo(){this.video&&1===this.video.nodeType&&this.root.insertBefore(this.video,this.root.firstChild),setTimeout(()=>{this.emit("complete"),this.danmu&&"function"==typeof this.danmu.resize&&this.danmu.resize()},1)}start(e=this.config.url){if(!this.video)return;let t=this;e&&""!==e?(this.canPlayFunc=function(){t.off("canplay",t.canPlayFunc);let e=t.video.play();void 0!==e&&e&&e.then((function(){t.emit("autoplay started")})).catch((function(){t.emit("autoplay was prevented"),Object(o.d)(t.root,"xgplayer-is-autoplay")}))},"Array"!==Object(o.w)(e)?"String"===Object(o.w)(e)&&e.indexOf("blob:")>-1&&e===this.video.src||(this.video.src=e):e.forEach(e=>{this.video.appendChild(Object(o.h)("source","",{src:""+e.src,type:""+(e.type||"")}))}),this.config.autoplay&&(s.a.os.isPhone?this.canPlayFunc():this.on("canplay",this.canPlayFunc)),this.config.disableStartLoad||this.video.load(),this.attachVideo()):this.emit("urlNull")}reload(){this.video.load(),this.reloadFunc=function(){let e=this.play();void 0!==e&&e&&e.catch(e=>{})},this.once("loadeddata",this.reloadFunc)}destroy(e=!0){let t=this;clearInterval(this.bulletResizeTimer);for(let e in this._interval)clearInterval(this._interval[e]),this._interval[e]=null;function r(){if(this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),e){this.root.innerHTML="";let e=this.root.className.split(" ");e.length>0?this.root.className=e.filter(e=>e.indexOf("xgplayer")<0).join(" "):this.root.className=""}for(let e in this)delete this[e];u()(this)}this.checkTimer&&clearInterval(this.checkTimer),this.waitTimer&&clearTimeout(this.waitTimer),this.ev.forEach(e=>{let t=Object.keys(e)[0],r=this[e[t]];r&&this.off(t,r)}),this.loadeddataFunc&&this.off("loadeddata",this.loadeddataFunc),this.reloadFunc&&this.off("loadeddata",this.reloadFunc),this.replayFunc&&this.off("play",this.replayFunc),this.playFunc&&this.off("play",this.playFunc),this.getVideoSize&&this.off("loadeddata",this.getVideoSize),["focus","blur"].forEach(e=>{this.off(e,this["on"+e.charAt(0).toUpperCase()+e.slice(1)])}),this.config.keyShortcut&&"on"!==this.config.keyShortcut||["video","controls"].forEach(e=>{this[e]&&this[e].removeEventListener("keydown",(function(e){t.onKeydown(e,t)}))}),this.paused?r.call(this):(this.pause(),this.once("pause",r)),super.destroy()}replay(){let e=this._replay;if(Object(o.t)(this.root,"xgplayer-ended"),s.a.browser.indexOf("ie")>-1&&(this.emit("play"),this.emit("playing")),e&&e instanceof Function)e();else{this.currentTime=0;let e=this.play();void 0!==e&&e&&e.catch(e=>{})}}userGestureTrigEvent(e,t){const r=(e,t)=>{this.emit(e,t)};this.config.userGestureEventMiddleware&&"function"==typeof this.config.userGestureEventMiddleware[e]?this.config.userGestureEventMiddleware[e].call(this,this,e,t,r):r.call(this,e,t)}pluginsCall(){f.plugins.s_i18n&&f.plugins.s_i18n.call(this,this);let e=this;if(f.plugins){let t=this.config.ignores;Object.keys(f.plugins).forEach(r=>{let i=f.plugins[r];i&&"function"==typeof i?t.some(e=>r===e||r==="s_"+e)||"s_i18n"===r||(["pc","tablet","mobile"].some(e=>e===r)?r===s.a.device&&setTimeout(()=>{e.video&&i.call(e,e)},0):i.call(this,this)):console.warn("plugin name",r,"is invalid")})}}onFocus(){let e=this;Object(o.o)(this.root,"xgplayer-inactive")&&e.emit("controlShow"),Object(o.t)(this.root,"xgplayer-inactive"),e.userTimer&&clearTimeout(e.userTimer),e.userTimer=setTimeout((function(){e.emit("blur")}),e.config.inactive)}onBlur(){!this.config.enablePausedInactive&&this.paused||this.ended||this.config.closeInactive||(Object(o.o)(this.root,"xgplayer-inactive")||this.emit("controlHide"),Object(o.d)(this.root,"xgplayer-inactive"))}onPlay(){Object(o.d)(this.root,"xgplayer-isloading"),Object(o.d)(this.root,"xgplayer-playing"),Object(o.t)(this.root,"xgplayer-pause")}onPause(){Object(o.d)(this.root,"xgplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}onEnded(){Object(o.d)(this.root,"xgplayer-ended"),Object(o.t)(this.root,"xgplayer-playing")}onSeeking(){this.isSeeking=!0,this.onWaiting()}onSeeked(){this.once("timeupdate",()=>{this.isSeeking=!1}),this.waitTimer&&clearTimeout(this.waitTimer),Object(o.t)(this.root,"xgplayer-isloading")}onWaiting(){let e=this;e.waitTimer&&clearTimeout(e.waitTimer),e.checkTimer&&(clearInterval(e.checkTimer),e.checkTimer=null);let t=e.currentTime;e.waitTimer=setTimeout((function(){Object(o.d)(e.root,"xgplayer-isloading"),e.checkTimer=setInterval((function(){e.currentTime!==t&&(Object(o.t)(e.root,"xgplayer-isloading"),clearInterval(e.checkTimer),e.checkTimer=null)}),1e3)}),500)}onPlaying(){this.paused||(this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),Object(o.t)(this.root,"xgplayer-isloading xgplayer-nostart xgplayer-pause xgplayer-ended xgplayer-is-error xgplayer-replay"),Object(o.d)(this.root,"xgplayer-playing"))}static install(e,t){Object(o.e)()&&(f.plugins||(f.plugins={}),f.plugins[e]||(f.plugins[e]=t))}static installAll(e){for(let t=0;t<e.length;t++)f.install(e[t].name,e[t].method)}static use(e,t){f.plugins||(f.plugins={}),f.plugins[e]=t}static useAll(e){for(let t in e)f.use(e[t].name,e[t].method)}static controlsRun(e,t){e.forEach((function(e){e.method.call(t)}))}}f.util=o.x,f.sniffer=s.a,f.Errors=a.a,f.XgplayerTimeRange=c.a;t.a=f},function(e,t,r){"use strict";var i=r(28)();e.exports=function(e){return e!==i&&null!==e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.bufferedList=e}start(e){return this.bufferedList[e].start}end(e){return this.bufferedList[e].end}get length(){return this.bufferedList.length}}},function(e){e.exports=JSON.parse('{"a":"2.31.4"}')},function(e,t,r){"use strict";var i=r(0);t.a={name:"s_i18n",method:function(){let e=this,t={en:{HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"Pip",MINIPLAYER:"Miniplayer",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",MINIPLAYER_DRAG:"Click and hold to drag",AIRPLAY_TIPS:"Airplay"},"zh-cn":{HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的，但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源，但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"当下载时发生错误",MEDIA_ERR_DECODE:"当解码时发生错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",MINIPLAYER:"迷你播放器",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",MINIPLAYER_DRAG:"点击按住可拖动视频",AIRPLAY_TIPS:"隔空播放"},"zh-hk":{HAVE_NOTHING:"沒有關於音頻/視頻是否就緒的信息",HAVE_METADATA:"音頻/視頻的元數據已就緒",HAVE_CURRENT_DATA:"關於當前播放位置的數據是可用的，但沒有足夠的數據來播放下壹幀/毫秒",HAVE_FUTURE_DATA:"當前及至少下壹幀的數據是可用的",HAVE_ENOUGH_DATA:"可用數據足以開始播放",NETWORK_EMPTY:"音頻/視頻尚未初始化",NETWORK_IDLE:"音頻/視頻是活動的且已選取資源，但並未使用網絡",NETWORK_LOADING:"瀏覽器正在下載數據",NETWORK_NO_SOURCE:"未找到音頻/視頻來源",MEDIA_ERR_ABORTED:"取回過程被用戶中止",MEDIA_ERR_NETWORK:"當下載時發生錯誤",MEDIA_ERR_DECODE:"當解碼時發生錯誤",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音頻/視頻格式",REPLAY:"重播",ERROR:"網絡連接似乎出現了問題",PLAY_TIPS:"播放",PAUSE_TIPS:"暫停",PLAYNEXT_TIPS:"下壹集",DOWNLOAD_TIPS:"下載",ROTATE_TIPS:"旋轉",RELOAD_TIPS:"重新載入",FULLSCREEN_TIPS:"進入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"進入樣式全屏",EXITCSSFULLSCREEN_TIPS:"退出樣式全屏",TEXTTRACK:"字幕",PIP:"畫中畫",MINIPLAYER:"迷妳播放器",SCREENSHOT:"截圖",LIVE:"正在直播",OFF:"關閉",MINIPLAYER_DRAG:"點擊按住可拖動視頻",AIRPLAY_TIPS:"隔空播放"},jp:{HAVE_NOTHING:"オーディオ/ビデオが準備できているか情報がありません",HAVE_METADATA:"オーディオ/ビデオのメタデータは準備できています",HAVE_CURRENT_DATA:"現在の再生位置に関するデータは利用可能ですが、次のフレーム/ミリ秒を再生するのに十分なデータがありません",HAVE_FUTURE_DATA:"現在、少なくとも次のフレームのデータが利用可能です",HAVE_ENOUGH_DATA:"利用可能なデータは再生を開始するのに十分です",NETWORK_EMPTY:"オーディオ/ビデオが初期化されていません",NETWORK_IDLE:"オーディオ/ビデオはアクティブでリソースが選択されていますが、ネットワークが使用されていません",NETWORK_LOADING:"ブラウザーはデータをダウンロードしています",NETWORK_NO_SOURCE:"オーディオ/ビデオ のソースが見つかりません",MEDIA_ERR_ABORTED:"ユーザーによってフェッチプロセスが中止されました",MEDIA_ERR_NETWORK:"ダウンロード中にエラーが発生しました",MEDIA_ERR_DECODE:"デコード中にエラーが発生しました",MEDIA_ERR_SRC_NOT_SUPPORTED:"オーディオ/ビデオ の形式がサポートされていません",REPLAY:"リプレイ",ERROR:"ネットワークの接続に問題が発生しました",PLAY_TIPS:"プレイ",PAUSE_TIPS:"一時停止",PLAYNEXT_TIPS:"次をプレイ",DOWNLOAD_TIPS:"ダウンロード",ROTATE_TIPS:"回転",RELOAD_TIPS:"再読み込み",FULLSCREEN_TIPS:"フルスクリーン",EXITFULLSCREEN_TIPS:"フルスクリーンを終了",CSSFULLSCREEN_TIPS:"シアターモード",EXITCSSFULLSCREEN_TIPS:"シアターモードを終了",TEXTTRACK:"字幕",PIP:"ミニプレーヤー",MINIPLAYER:"ミニプレーヤー",SCREENSHOT:"スクリーンショット",LIVE:"生放送",OFF:"オフ",MINIPLAYER_DRAG:"ボタンを押して働画をドラッグする",AIRPLAY_TIPS:"隔空放送"}};Object.defineProperty(e,"lang",{get:function(){return e.config&&t[e.config.lang]||t.en},set:function(e){"Object"===Object(i.w)(e)&&Object.keys(e).forEach(r=>{t[r]=e[r]})}})}}},function(e,t,r){"use strict";e.exports=function(e){return null!=e}},function(e,t,r){"use strict";var i,n,o,a,l,s,c,p=r(17),u=r(34),d=Function.prototype.apply,g=Function.prototype.call,f=Object.create,y=Object.defineProperty,h=Object.defineProperties,x=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var r,n;return u(t),n=this,i.call(this,e,r=function(){o.call(n,e,r),d.call(t,this,arguments)}),r.__eeOnceListener__=t,this},l={on:i=function(e,t){var r;return u(t),x.call(this,"__ee__")?r=this.__ee__:(r=v.value=f(null),y(this,"__ee__",v),v.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},once:n,off:o=function(e,t){var r,i,n,o;if(u(t),!x.call(this,"__ee__"))return this;if(!(r=this.__ee__)[e])return this;if("object"==typeof(i=r[e]))for(o=0;n=i[o];++o)n!==t&&n.__eeOnceListener__!==t||(2===i.length?r[e]=i[o?0:1]:i.splice(o,1));else i!==t&&i.__eeOnceListener__!==t||delete r[e];return this},emit:a=function(e){var t,r,i,n,o;if(x.call(this,"__ee__")&&(n=this.__ee__[e]))if("object"==typeof n){for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];for(n=n.slice(),t=0;i=n[t];++t)d.call(i,this,o)}else switch(arguments.length){case 1:g.call(n,this);break;case 2:g.call(n,this,arguments[1]);break;case 3:g.call(n,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];d.call(n,this,o)}}},s={on:p(i),once:p(n),off:p(o),emit:p(a)},c=h({},s),e.exports=t=function(e){return null==e?f(c):h(Object(e),s)},t.methods=l},function(e,t,r){"use strict";var i=r(35),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t,r=arguments[1];if(i(e),void 0===r)n.call(e,"__ee__")&&delete e.__ee__;else{if(!(t=n.call(e,"__ee__")&&e.__ee__))return;t[r]&&delete t[r]}}},function(e,t,r){"use strict";var i=r(0);t.a={name:"mobile",method:function(){let e,t=this,r=t.root,n=0,o={first:"",second:""};function a(e){t.video.addEventListener("touchend",(function(e){t.onElementTouchend(e,t.video)})),t.video.addEventListener("touchstart",()=>{t.isTouchMove=!1}),t.video.addEventListener("touchmove",()=>{t.isTouchMove=!0}),t.config.autoplay&&t.start()}t.onElementTouchend=function(t,a){this.config.closeVideoPreventDefault||t.preventDefault(),this.config.closeVideoStopPropagation||t.stopPropagation();let l=this;if(Object(i.o)(r,"xgplayer-inactive")?l.emit("focus"):l.emit("blur"),!l.config.closeVideoTouch&&!l.isTouchMove){function s(){e=setTimeout((function(){if(Object(i.o)(l.root,"xgplayer-nostart"))return!1;if(!l.ended)if(l.paused){let e=l.play();void 0!==e&&e&&e.catch(e=>{})}else l.pause();n=0}),200)}l.config.closeVideoClick||(n++,e&&clearTimeout(e),1===n?l.config.enableVideoDbltouch?o.first=new Date:s():2===n&&l.config.enableVideoDbltouch?(o.second=new Date,Math.abs(o.first-o.second)<400?s():(o.first=new Date,n=1)):n=0)}},t.once("ready",a),t.once("destroy",(function e(){t.off("ready",a),t.off("destroy",e)}))}}},function(e,t,r){"use strict";var i=r(0);t.a={name:"pc",method:function(){let e=this;if(!e.controls||!e.video)return;let t,r=e.controls,n=e.root,o=0;function a(){clearTimeout(e.leavePlayerTimer),e.emit("focus",e)}function l(){e.config.closePlayerBlur||(e.leavePlayerTimer=setTimeout((function(){e.emit("blur",e)}),e.config.leavePlayerTime||0))}function s(t){e.config.autoplay&&e.start()}e.onElementClick=function(e,r){this.config.closeVideoPreventDefault||e.preventDefault(),this.config.closeVideoStopPropagation||e.stopPropagation();let n=this;n.config.closeVideoClick||(o++,t&&clearTimeout(t),1===o?t=setTimeout((function(){if(Object(i.o)(n.root,"xgplayer-nostart"))return!1;if(!n.ended)if(n.paused){let e=n.play();void 0!==e&&e&&e.catch(e=>{})}else n.pause();o=0}),200):o=0)},e.video.addEventListener("click",(function(t){e.onElementClick(t,e.video)}),!1),e.onElementDblclick=function(e,t){this.config.closeVideoPreventDefault||e.preventDefault(),this.config.closeVideoStopPropagation||e.stopPropagation();if(!this.config.closeVideoDblclick){let e=r.querySelector(".xgplayer-fullscreen");if(e){let t;document.createEvent?(t=document.createEvent("Event"),t.initEvent("click",!0,!0)):t=new Event("click"),e.dispatchEvent(t)}}},e.video.addEventListener("dblclick",(function(t){e.onElementDblclick(t,e.video)}),!1),n.addEventListener("mouseenter",a),n.addEventListener("mouseleave",l),r.addEventListener("mouseenter",(function(t){e.userTimer&&clearTimeout(e.userTimer)})),r.addEventListener("mouseleave",(function(t){e.config.closeControlsBlur||e.emit("focus",e)})),r.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation()})),e.once("ready",s),e.once("destroy",(function t(){n.removeEventListener("mouseenter",a),n.removeEventListener("mouseleave",l),e.off("ready",s),e.off("destroy",t)}))}}},function(e,t,r){"use strict";var i=r(0);t.a={name:"start",method:function(){let e=this,t=e.root;function r(){e.off("canplay",r);let t=e.play();void 0!==t&&t&&t.catch(e=>{})}function n(){Object(i.o)(t,"xgplayer-nostart")?(Object(i.t)(t,"xgplayer-nostart"),Object(i.d)(t,"xgplayer-is-enter"),"function"==typeof t.contains?e.video&&1===e.video.nodeType&&!t.contains(e.video)||e.video&&1!==e.video.nodeType&&void 0===e.video.mediaSource?(e.once("canplay",r),e.start()):r():e.video&&1===e.video.nodeType&&!t.querySelector(this.videoConfig.mediaType)||e.video&&1!==e.video.nodeType&&void 0===e.video.mediaSource?(e.once("canplay",r),e.start()):r()):e.paused&&(Object(i.t)(t,"xgplayer-nostart xgplayer-isloading"),setTimeout(()=>{let t=e.play();void 0!==t&&t&&t.catch(e=>{})},10))}e.on("startBtnClick",n),e.once("destroy",(function t(){e.off("startBtnClick",n),e.off("canplay",r),e.off("destroy",t)}))}}},function(e,t,r){"use strict";var i=r(0);r(40);t.a={name:"s_start",method:function(){let e=this,t=e.root,r=Object(i.h)("xg-start",'<div class="xgplayer-icon-play"><svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">\n  <path transform="translate(15,15) scale(0.04,0.04)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n</div>\n                                      <div class="xgplayer-icon-pause"><svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">\n  <path transform="translate(15,15) scale(0.04 0.04)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n</div>',{},"xgplayer-start");function n(e){Object(i.d)(e.root,"xgplayer-skin-default"),e.config&&(e.config.autoplay&&!Object(i.q)()&&!Object(i.p)()&&Object(i.d)(e.root,"xgplayer-is-enter"),e.config.lang&&"en"===e.config.lang?Object(i.d)(e.root,"xgplayer-lang-is-en"):"jp"===e.config.lang&&Object(i.d)(e.root,"xgplayer-lang-is-jp"),e.config.enableContextmenu||e.video.addEventListener("contextmenu",e=>{e.preventDefault(),e.stopPropagation()}))}e.config&&e.config.hideStartBtn&&Object(i.d)(t,"xgplayer-start-hide"),e.isReady?(t.appendChild(r),n(e)):e.once("ready",()=>{t.appendChild(r),n(e)}),e.once("autoplay was prevented",()=>{Object(i.t)(e.root,"xgplayer-is-enter"),Object(i.d)(e.root,"xgplayer-nostart")}),e.once("canplay",()=>{Object(i.t)(e.root,"xgplayer-is-enter")}),r.onclick=t=>{t.preventDefault(),t.stopPropagation(),e.userGestureTrigEvent("startBtnClick")}}}},function(e,t,r){"use strict";var i=r(10),n=r(18),o=r(22),a=r(30),l=r(31);(e.exports=function(e,t){var r,n,s,c,p;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],i(e)?(r=l.call(e,"c"),n=l.call(e,"e"),s=l.call(e,"w")):(r=s=!0,n=!1),p={value:t,configurable:r,enumerable:n,writable:s},c?o(a(c),p):p}).gs=function(e,t,r){var s,c,p,u;return"string"!=typeof e?(p=r,r=t,t=e,e=null):p=arguments[3],i(t)?n(t)?i(r)?n(r)||(p=r,r=void 0):r=void 0:(p=t,t=r=void 0):t=void 0,i(e)?(s=l.call(e,"c"),c=l.call(e,"e")):(s=!0,c=!1),u={get:t,set:r,configurable:s,enumerable:c},p?o(a(p),u):u}},function(e,t,r){"use strict";var i=r(19),n=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!i(e)&&!n.test(o.call(e))}},function(e,t,r){"use strict";var i=r(20);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!i(e)}},function(e,t,r){"use strict";var i=r(21);e.exports=function(e){if(!i(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},function(e,t,r){"use strict";var i=r(10),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!i(e)&&hasOwnProperty.call(n,typeof e)}},function(e,t,r){"use strict";e.exports=r(23)()?Object.assign:r(24)},function(e,t,r){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,r){"use strict";var i=r(25),n=r(29),o=Math.max;e.exports=function(e,t){var r,a,l,s=o(arguments.length,2);for(e=Object(n(e)),l=function(i){try{e[i]=t[i]}catch(e){r||(r=e)}},a=1;a<s;++a)i(t=arguments[a]).forEach(l);if(void 0!==r)throw r;return e}},function(e,t,r){"use strict";e.exports=r(26)()?Object.keys:r(27)},function(e,t,r){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,r){"use strict";var i=r(6),n=Object.keys;e.exports=function(e){return n(i(e)?Object(e):e)}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";var i=r(6);e.exports=function(e){if(!i(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,r){"use strict";var i=r(6),n=Array.prototype.forEach,o=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};e.exports=function(e){var t=o(null);return n.call(arguments,(function(e){i(e)&&a(Object(e),t)})),t}},function(e,t,r){"use strict";e.exports=r(32)()?String.prototype.contains:r(33)},function(e,t,r){"use strict";var i="razdwatrzy";e.exports=function(){return"function"==typeof i.contains&&(!0===i.contains("dwa")&&!1===i.contains("foo"))}},function(e,t,r){"use strict";var i=String.prototype.indexOf;e.exports=function(e){return i.call(this,e,arguments[1])>-1}},function(e,t,r){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,r){"use strict";var i=r(36);e.exports=function(e){if(!i(e))throw new TypeError(e+" is not an Object");return e}},function(e,t,r){"use strict";var i=r(6),n={function:!0,object:!0};e.exports=function(e){return i(e)&&n[typeof e]||!1}},function(e,t,r){var i=r(38);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default{background:#000;width:100%;height:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.xgplayer-skin-default *{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.xgplayer-skin-default.xgplayer-rotate-fullscreen{position:absolute;top:0;left:100%;bottom:0;right:0;height:100vw!important;width:100vh!important;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.xgplayer-skin-default.xgplayer-is-fullscreen{width:100%!important;height:100%!important;padding-top:0!important;z-index:9999}.xgplayer-skin-default.xgplayer-is-fullscreen.xgplayer-inactive{cursor:none}.xgplayer-skin-default video{width:100%;height:100%;outline:none}.xgplayer-skin-default .xgplayer-none{display:none}@-webkit-keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}.xgplayer-skin-default .xgplayer-controls{display:-webkit-flex;display:-moz-box;display:flex;position:absolute;bottom:0;left:0;right:0;height:40px;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.37),rgba(0,0,0,.75),rgba(0,0,0,.75));z-index:10}.xgplayer-skin-default.xgplayer-inactive .xgplayer-controls,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-progress,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-time,.xgplayer-skin-default.xgplayer-no-controls .xgplayer-controls,.xgplayer-skin-default.xgplayer-nostart .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-live{display:block}.xgplayer-skin-default .xgplayer-live{display:block;font-size:12px;color:#fff;line-height:40px;-webkit-order:1;-moz-box-ordinal-group:2;order:1}.xgplayer-skin-default .xgplayer-icon{display:block;width:40px;height:40px;overflow:hidden;fill:#fff}.xgplayer-skin-default .xgplayer-icon svg{position:absolute}.xgplayer-skin-default .xgplayer-tips{background:rgba(0,0,0,.54);border-radius:1px;display:none;position:absolute;font-family:PingFangSC-Regular;font-size:11px;color:#fff;padding:2px 4px;text-align:center;top:-30px;left:50%;margin-left:-16px;width:auto;white-space:nowrap}.xgplayer-skin-default.xgplayer-mobile .xgplayer-tips{display:none!important}.xgplayer-skin-default .xgplayer-screen-container{display:block;width:100%}",""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var r=t.protocol+"//"+t.host,i=r+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var n,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(n=0===o.indexOf("//")?o:0===o.indexOf("/")?r+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(n)+")")}))}},function(e,t,r){var i=r(41);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-start{border-radius:50%;display:inline-block;width:70px;height:70px;background:rgba(0,0,0,.38);overflow:hidden;text-align:center;line-height:70px;vertical-align:middle;position:absolute;left:50%;top:50%;z-index:115;margin:-35px auto auto -35px;cursor:pointer}.xgplayer-skin-default .xgplayer-start div{position:absolute}.xgplayer-skin-default .xgplayer-start div svg{fill:hsla(0,0%,100%,.7)}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-start:hover{opacity:.85}.xgplayer-skin-default.xgplayer-pause.xgplayer-start-hide .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-start-hide .xgplayer-start{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start{display:inline-block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start,.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-pause{display:none}",""])},function(e,t,r){"use strict";var i=r(0);t.a={name:"fullscreen",method:function(){let e=this,t=e.root;function r(){e.config.rotateFullscreen?Object(i.o)(t,"xgplayer-rotate-fullscreen")?e.exitRotateFullscreen():e.getRotateFullscreen():Object(i.o)(t,"xgplayer-is-fullscreen")?e.exitFullscreen(t):e.getFullscreen(t)}function n(){let r=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;r&&r===t?(Object(i.d)(t,"xgplayer-is-fullscreen"),e.emit("requestFullscreen")):Object(i.o)(t,"xgplayer-is-fullscreen")&&(Object(i.t)(t,"xgplayer-is-fullscreen"),e.emit("exitFullscreen")),e.danmu&&"function"==typeof e.danmu.resize&&e.danmu.resize()}function o(r){e.video.webkitPresentationMode!==i.a.FULLSCREEN&&(Object(i.t)(t,"xgplayer-is-fullscreen"),e.emit("exitFullscreen"))}e.on("fullscreenBtnClick",r),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(e=>{document.addEventListener(e,n)}),e.video.addEventListener("webkitbeginfullscreen",(function(){Object(i.d)(t,"xgplayer-is-fullscreen"),e.emit("requestFullscreen")})),e.video.addEventListener("webkitendfullscreen",(function(){Object(i.t)(t,"xgplayer-is-fullscreen"),e.emit("exitFullscreen")})),Object(i.f)(e.video)&&e.video.addEventListener("webkitpresentationmodechanged",o),e.once("destroy",(function t(){e.off("fullscreenBtnClick",r),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(e=>{document.removeEventListener(e,n)}),Object(i.f)(e.video)&&e.video.removeEventListener("webkitpresentationmodechanged",o),e.off("destroy",t)})),e.getFullscreen=function(e){let t=this;if(e.requestFullscreen){let r=e.requestFullscreen();r&&r.catch((function(){t.emit("fullscreen error")}))}else e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):t.video.webkitSupportsFullscreen?t.video.webkitEnterFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():Object(i.d)(e,"xgplayer-is-cssfullscreen")},e.exitFullscreen=function(e){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),Object(i.t)(e,"xgplayer-is-cssfullscreen")},e.getRotateFullscreen=function(){let e=this;document.documentElement.style.width="100%",document.documentElement.style.height="100%",e.config.fluid&&(e.root.style["padding-top"]="",e.root.style["max-width"]="unset"),e.root&&!Object(i.o)(e.root,"xgplayer-rotate-fullscreen")&&Object(i.d)(e.root,"xgplayer-rotate-fullscreen"),e.emit("getRotateFullscreen")},e.exitRotateFullscreen=function(){let e=this;document.documentElement.style.width="unset",document.documentElement.style.height="unset",e.config.fluid&&(e.root.style.width="100%",e.root.style.height="0",e.root.style["padding-top"]=100*e.config.height/e.config.width+"%",e.root.style["max-width"]="100%"),e.root&&Object(i.o)(e.root,"xgplayer-rotate-fullscreen")&&Object(i.t)(e.root,"xgplayer-rotate-fullscreen"),e.emit("exitRotateFullscreen")}}}},function(e,t,r){"use strict";var i=r(0);t.a={name:"play",method:function(){let e=this;function t(){if(e.config.allowPlayAfterEnded||!e.ended)if(Object(i.o)(e.root,"xgplayer-nostart")&&e.start(),e.paused){let t=e.play();void 0!==t&&t&&t.catch(e=>{})}else e.pause()}e.on("playBtnClick",t),e.once("destroy",(function r(){e.off("playBtnClick",t),e.off("destroy",r)}))}}},function(e,t,r){"use strict";var i=r(0);t.a={name:"replay",method:function(){let e=this,t=e.root;function r(){Object(i.t)(t,"xgplayer-is-replay"),e.replay()}e.on("replayBtnClick",r),e.on("ended",(function(){e.config.loop||Object(i.d)(t,"xgplayer-is-replay")})),e.once("destroy",(function t(){e.off("replayBtnClick",r),e.off("destroy",t)}))}}},function(e,t,r){"use strict";var i=r(0);r(55);t.a={name:"s_poster",method:function(){let e=this.root;if(!this.config.poster)return;let t=Object(i.h)("xg-poster","",{},"xgplayer-poster");t.style.backgroundImage=`url(${this.config.poster})`,e.appendChild(t)}}},function(e,t,r){"use strict";var i=r(0);r(57);t.a={name:"s_flex",method:function(){let e=Object(i.h)("xg-placeholder","",{},"xgplayer-placeholder");this.controls.appendChild(e)}}},function(e,t,r){"use strict";var i=r(0),n=r(3);r(63);const o=e=>Object(i.o)(e.root,"xgplayer-rotate-fullscreen");t.a={name:"s_progress",method:function(){let e,t=this,r=Object(i.h)("xg-progress",'<xg-outer class="xgplayer-progress-outer">\n                                                   <xg-cache class="xgplayer-progress-cache"></xg-cache>\n                                                   <xg-played class="xgplayer-progress-played">\n                                                     <xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>\n                                                     <xg-point class="xgplayer-progress-point xgplayer-tips"></xg-point>\n                                                     <xg-thumbnail class="xgplayer-progress-thumbnail xgplayer-tips"></xg-thumbnail>\n                                                   </xg-played>\n                                                 </xg-outer>',{tabindex:1},"xgplayer-progress");t.controls.appendChild(r);let a=r.querySelector(".xgplayer-progress-played"),l=r.querySelector(".xgplayer-progress-outer"),s=r.querySelector(".xgplayer-progress-cache"),c=r.querySelector(".xgplayer-progress-point"),p=r.querySelector(".xgplayer-progress-thumbnail");function u(e,n){e.addEventListener("mouseenter",(function(t){n&&(Object(i.d)(e,"xgplayer-progress-dot-show"),Object(i.d)(r,"xgplayer-progress-dot-active"))})),e.addEventListener("mouseleave",(function(t){n&&(Object(i.t)(e,"xgplayer-progress-dot-show"),Object(i.t)(r,"xgplayer-progress-dot-active"))})),e.addEventListener("touchend",(function(o){o.stopPropagation(),n&&(Object(i.o)(e,"xgplayer-progress-dot-show")||Object.keys(t.dotArr).forEach((function(e){t.dotArr[e]&&Object(i.t)(t.dotArr[e],"xgplayer-progress-dot-show")})),Object(i.v)(e,"xgplayer-progress-dot-show"),Object(i.v)(r,"xgplayer-progress-dot-active"))}))}function d(){t.config.progressDot&&"Array"===Object(i.w)(t.config.progressDot)&&t.config.progressDot.forEach(e=>{if(e.time>=0&&e.time<=t.duration){let r=Object(i.h)("xg-progress-dot",e.text?`<span class="xgplayer-progress-tip">${e.text}</span>`:"",{},"xgplayer-progress-dot");if(r.style.left=e.time/t.duration*100+"%",e.duration>=0&&(r.style.width=Math.min(e.duration,t.duration-e.time)/t.duration*100+"%"),e.style)for(let t in e.style)r.style[t]=e.style[t];l.appendChild(r),t.dotArr[e.time]=r,u(r,e.text)}})}t.dotArr={},t.once("canplay",d),t.addProgressDot=function(e,r,n,o){if(!t.dotArr[e]&&e>=0&&e<=t.duration){let a=Object(i.h)("xg-progress-dot",r?`<span class="xgplayer-progress-tip">${r}</span>`:"",{},"xgplayer-progress-dot");if(a.style.left=e/t.duration*100+"%",n>=0&&(a.style.width=Math.min(n,t.duration-e)/t.duration*100+"%"),o)for(let e in o)a.style[e]=o[e];l.appendChild(a),t.dotArr[e]=a,u(a,r)}},t.removeProgressDot=function(e){if(e>=0&&e<=t.duration&&t.dotArr[e]){let r=t.dotArr[e];r.parentNode.removeChild(r),r=null,t.dotArr[e]=null}},t.removeAllProgressDot=function(){Object.keys(t.dotArr).forEach((function(e){if(t.dotArr[e]){let r=t.dotArr[e];r.parentNode.removeChild(r),r=null,t.dotArr[e]=null}}))};let g,f,y,h=0,x=0,v=0,m=0,b=0,k=0,E=[],w=function(){t.config.thumbnail&&(t.config.thumbnail.isShowCoverPreview&&!g&&(a.removeChild(p),g=Object(i.h)("xg-coverpreview",'<xg-outer class="xgplayer-coverpreview-outer">\n            <xg-thumbnail class="xgplayer-coverpreview-thumbnail"></xg-thumbnail>\n            <xg-point class="xgplayer-coverpreview-point"></xg-point>\n          </xg-outer>',{tabindex:1},"xgplayer-coverpreview"),y=g.querySelector(".xgplayer-coverpreview-outer"),f=g.querySelector(".xgplayer-coverpreview-point"),p=g.querySelector(".xgplayer-coverpreview-thumbnail"),t.root.appendChild(g)),h=t.config.thumbnail.pic_num,x=t.config.thumbnail.width,v=t.config.thumbnail.height,m=t.config.thumbnail.col,b=t.config.thumbnail.row,E=t.config.thumbnail.urls,p.style.width=x+"px",p.style.height=v+"px")};t.on("loadedmetadata",w),"function"==typeof t.config.disableSwipeHandler&&"function"==typeof t.config.enableSwipeHandler&&(t.root.addEventListener("touchmove",e=>{e.preventDefault(),t.disableSwipe||(t.disableSwipe=!0,t.config.disableSwipeHandler.call(t))}),t.root.addEventListener("touchstart",e=>{t.disableSwipe=!0,t.config.disableSwipeHandler.call(t)}),t.root.addEventListener("touchend",e=>{t.disableSwipe=!1,t.config.enableSwipeHandler.call(t)})),["touchstart","mousedown"].forEach(l=>{r.addEventListener(l,(function(l){if(t.config.disableProgress)return;if(l.stopPropagation(),Object(i.k)(l),l._target===c||!t.config.allowSeekAfterEnded&&t.ended)return!0;r.focus();let{left:s}=a.getBoundingClientRect();const u=o(t);u?(s=a.getBoundingClientRect().top,e=r.getBoundingClientRect().height):(e=r.getBoundingClientRect().width,s=a.getBoundingClientRect().left);let d=function(r){r.stopPropagation(),Object(i.k)(r),t.isProgressMoving=!0;let n=(u?r.clientY:r.clientX)-s;n>e&&(n=e);let o=n/e*t.duration;if(o<0&&(o=0),t.config.allowSeekPlayed&&Number(o).toFixed(1)>t.maxPlayedTime);else if(a.style.width=100*n/e+"%","video"!==t.videoConfig.mediaType||t.dash||t.config.closeMoveSeek){let e=Object(i.l)(t.controls,".xgplayer-time");e&&(e.innerHTML=`<span class="xgplayer-time-current">${Object(i.m)(o||0)}</span><span>${Object(i.m)(t.duration)}</span>`)}else t.currentTime=Number(o).toFixed(1);if(t.config.thumbnail&&t.config.thumbnail.isShowCoverPreview){f.innerHTML=`<span>${Object(i.m)(o)}</span> / ${Object(i.m)(t.duration||0)}`,k=t.duration/h;let e=Math.floor(o/k);p.style.backgroundImage=`url(${E[Math.ceil((e+1)/(m*b))-1]})`;let r=e+1-m*b*(Math.ceil((e+1)/(m*b))-1),n=Math.ceil(r/b)-1,a=r-n*b-1;p.style["background-position"]=`-${a*x}px -${n*v}px`,g.style.display="block"}t.emit("focus")},y=function(o){if(o.stopPropagation(),Object(i.k)(o),window.removeEventListener("mousemove",d),window.removeEventListener("touchmove",d,{passive:!1}),window.removeEventListener("mouseup",y),window.removeEventListener("touchend",y),n.a.browser.indexOf("ie")<0&&r.blur(),!t.isProgressMoving||t.videoConfig&&"audio"===t.videoConfig.mediaType||t.dash||t.config.closeMoveSeek){let r=(u?o.clientY:o.clientX)-s;r>e&&(r=e);let i=r/e*t.duration;i<0&&(i=0),t.config.allowSeekPlayed&&Number(i).toFixed(1)>t.maxPlayedTime||(a.style.width=100*r/e+"%",t.currentTime=Number(i).toFixed(1))}t.config.thumbnail&&t.config.thumbnail.isShowCoverPreview&&(g.style.display="none"),t.emit("focus"),t.isProgressMoving=!1};return window.addEventListener("mousemove",d),window.addEventListener("touchmove",d,{passive:!1}),window.addEventListener("mouseup",y),window.addEventListener("touchend",y),!0}))}),r.addEventListener("mouseenter",(function(e){if(!t.config.allowSeekAfterEnded&&t.ended)return!0;const n=o(t);let a=n?r.getBoundingClientRect().top:r.getBoundingClientRect().left,l=n?r.getBoundingClientRect().height:r.getBoundingClientRect().width,s=function(e){let o=((n?e.clientY:e.clientX)-a)/l*t.duration;o=o<0?0:o,c.textContent=Object(i.m)(o);let s=c.getBoundingClientRect().width;if(t.config.thumbnail&&!t.config.thumbnail.isShowCoverPreview){k=t.duration/h;let r=Math.floor(o/k);p.style.backgroundImage=`url(${E[Math.ceil((r+1)/(m*b))-1]})`;let i=r+1-m*b*(Math.ceil((r+1)/(m*b))-1),u=Math.ceil(i/b)-1,d=i-u*b-1;p.style["background-position"]=`-${d*x}px -${u*v}px`;let g=(n?e.clientY:e.clientX)-a-x/2;g=g>0?g:0,g=g<l-x?g:l-x,p.style.left=g+"px",p.style.top=-10-v+"px",p.style.display="block",c.style.left=g+x/2-s/2+"px"}else{let t=e.clientX-a-s/2;t=t>0?t:0,t=t>l-s?l-s:t,c.style.left=t+"px"}Object(i.o)(r,"xgplayer-progress-dot-active")?c.style.display="none":c.style.display="block"},u=function(e){s(e)},d=function(e){r.removeEventListener("mousemove",u,!1),r.removeEventListener("mouseleave",d,!1),s(e),c.style.display="none",t.config.thumbnail&&!t.config.thumbnail.isShowCoverPreview&&(p.style.display="none")};r.addEventListener("mousemove",u,!1),r.addEventListener("mouseleave",d,!1),s(e)}),!1);let T=function(){if(void 0===t.maxPlayedTime&&(t.maxPlayedTime=0),t.maxPlayedTime<t.currentTime&&(t.maxPlayedTime=t.currentTime),!e&&r&&(e=r.getBoundingClientRect().width),!t.isProgressMoving&&!t.isSeeking&&!t.seeking){const e=t.currentTime/t.duration,i=Number(a.style.width.replace("%","")||"0")/Number(r.style.width||"100");Math.abs(e-i)<=1&&(a.style.width=100*t.currentTime/t.duration+"%")}};t.on("timeupdate",T);let O=function(e){a.style.width=100*e/t.duration+"%"};t.on("currentTimeChange",O);let _=function(){a.style.width="0%"};t.on("srcChange",_);let S=function(){let e=t.buffered;if(e&&e.length>0){let r=e.end(e.length-1);for(let i=0,n=e.length;i<n;i++)if(t.currentTime>=e.start(i)&&t.currentTime<=e.end(i)){r=e.end(i);for(let t=i+1;t<e.length;t++)if(e.start(t)-e.end(t-1)>=2){r=e.end(t-1);break}break}s.style.width=r/t.duration*100+"%"}};const R=["bufferedChange","cacheupdate","ended","timeupdate"];R.forEach(e=>{t.on(e,S)}),t.once("destroy",(function e(){t.removeAllProgressDot(),t.off("canplay",d),t.off("timeupdate",T),t.off("currentTimeChange",O),t.off("srcChange",_),t.off("loadedmetadata",w),R.forEach(e=>{t.off(e,S)}),t.off("destroy",e)}))}}},function(e,t,r){"use strict";var i=r(0);r(65);t.a={name:"s_time",method:function(){let e=this,t=Object(i.h)("xg-time",`<span class="xgplayer-time-current">${e.currentTime||Object(i.m)(0)}</span>\n                                           <span>${e.duration||Object(i.m)(0)}</span>`,{},"xgplayer-time");e.once("ready",()=>{e.controls&&e.controls.appendChild(t)});let r=function(){"audio"===e.videoConfig.mediaType&&e.isProgressMoving&&e.dash||(t.innerHTML=`<span class="xgplayer-time-current">${Object(i.m)(e.currentTime||0)}</span><span>${Object(i.m)(e.duration)}</span>`)};e.on("durationchange",r),e.on("timeupdate",r),e.once("destroy",(function t(){e.off("durationchange",r),e.off("timeupdate",r),e.off("destroy",t)}))}}},function(e,t,r){"use strict";var i=r(0);r(53);t.a={name:"s_play",method:function(){let e,t=this,r=t.config.playBtn?t.config.playBtn:{};e="img"===r.type?Object(i.i)("play",r.url.play,r.width,r.height):Object(i.h)("xg-play",'<xg-icon class="xgplayer-icon">\n                                      <div class="xgplayer-icon-play"><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n  <path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n</div>\n                                      <div class="xgplayer-icon-pause"><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n  <path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n</div>\n                                     </xg-icon>',{},"xgplayer-play");let n={};n.play=t.lang.PLAY_TIPS,n.pause=t.lang.PAUSE_TIPS;let o=Object(i.h)("xg-tips",`<span class="xgplayer-tip-play">${n.play}</span>\n                                        <span class="xgplayer-tip-pause">${n.pause}</span>`,{},"xgplayer-tips");e.appendChild(o),t.once("ready",()=>{t.controls&&t.controls.appendChild(e)}),["click","touchend"].forEach(r=>{e.addEventListener(r,(function(e){e.preventDefault(),e.stopPropagation(),t.userGestureTrigEvent("playBtnClick")}))})}}},function(e,t,r){"use strict";var i=r(0);r(59);t.a={name:"s_fullscreen",method:function(){let e,t=this,r=t.config.fullscreenBtn?t.config.fullscreenBtn:{};e="img"===r.type?Object(i.i)("fullscreen",r.url.request,r.width,r.height):Object(i.h)("xg-fullscreen",'<xg-icon class="xgplayer-icon">\n                                             <div class="xgplayer-icon-requestfull"><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n  <path transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>\n</svg>\n</div>\n                                             <div class="xgplayer-icon-exitfull"><svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n  <path transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>\n</svg>\n</div>\n                                           </xg-icon>',{},"xgplayer-fullscreen");let n={};n.requestfull=t.lang.FULLSCREEN_TIPS,n.exitfull=t.lang.EXITFULLSCREEN_TIPS;let o=Object(i.h)("xg-tips",`<span class="xgplayer-tip-requestfull">${n.requestfull}</span>\n                                        <span class="xgplayer-tip-exitfull">${n.exitfull}</span>`,{},"xgplayer-tips");e.appendChild(o),t.once("ready",()=>{t.controls&&t.controls.appendChild(e)}),["click","touchend"].forEach(r=>{e.addEventListener(r,(function(e){e.preventDefault(),e.stopPropagation(),t.userGestureTrigEvent("fullscreenBtnClick")}))})}}},function(e,t,r){"use strict";var i=r(0);r(61);t.a={name:"s_loading",method:function(){let e=this.root,t=Object(i.h)("xg-loading",'<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 100 100">\n  <path d="M100,50A50,50,0,1,1,50,0"></path>\n</svg>\n',{},"xgplayer-loading");this.once("ready",()=>{e.appendChild(t)})}}},function(e,t,r){"use strict";var i=r(0);r(67);t.a={name:"s_replay",method:function(){let e=this,t=e.root,r=e.lang.REPLAY,n=Object(i.h)("xg-replay",`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" width="78" height="78" viewbox="0 0 78 78">\n  <path d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>\n</svg>\n\n                                         <xg-replay-txt class="xgplayer-replay-txt">${r}</xg-replay-txt>\n                                        `,{},"xgplayer-replay");function o(){let e=n.querySelector("path");if(e){let t=window.getComputedStyle(e).getPropertyValue("transform");if("string"==typeof t&&t.indexOf("none")>-1)return;e.setAttribute("transform",t)}}e.once("ready",()=>{t.appendChild(n)}),e.on("ended",o),n.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation()}));let a=n.querySelector("svg");["click","touchend"].forEach(t=>{a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.userGestureTrigEvent("replayBtnClick")}))}),e.once("destroy",(function t(){e.off("ended",o),e.off("destroy",t)}))}}},function(e,t,r){var i=r(54);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-play,.xgplayer-skin-default .xgplayer-play-img{width:40px;position:relative;-webkit-order:0;-moz-box-ordinal-group:1;order:0;display:block;cursor:pointer;margin-left:3px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-play .xgplayer-icon{margin-top:3px;width:32px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-play .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}.xgplayer-skin-default .xgplayer-play-img:hover,.xgplayer-skin-default .xgplayer-play:hover{opacity:.85}.xgplayer-skin-default .xgplayer-play-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-play:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}",""])},function(e,t,r){var i=r(56);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-poster{display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-size:cover;background-position:50%}.xgplayer-skin-default.xgplayer-nostart .xgplayer-poster{display:block}",""])},function(e,t,r){var i=r(58);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-placeholder{-webkit-flex:1;-moz-box-flex:1;flex:1;-webkit-order:3;-moz-box-ordinal-group:4;order:3;display:block}",""])},function(e,t,r){var i=r(60);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-fullscreen,.xgplayer-skin-default .xgplayer-fullscreen-img{position:relative;-webkit-order:13;-moz-box-ordinal-group:14;order:13;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img:hover,.xgplayer-skin-default .xgplayer-fullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-fullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}",""])},function(e,t,r){var i=r(62);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-loading{display:none;width:100px;height:100px;overflow:hidden;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);position:absolute;left:50%;top:50%;margin:-50px auto auto -50px}.xgplayer-skin-default .xgplayer-loading svg{border-radius:50%;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-animation:loadingRotate 1s linear infinite;animation:loadingRotate 1s linear infinite}.xgplayer-skin-default .xgplayer-loading svg path{stroke:#ddd;stroke-dasharray:236;-webkit-animation:loadingDashOffset 2s linear infinite;animation:loadingDashOffset 2s linear infinite;animation-direction:alternate-reverse;fill:none;stroke-width:12px}.xgplayer-skin-default.xgplayer-nostart .xgplayer-loading{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-loading{display:none!important}.xgplayer-skin-default.xgplayer-isloading .xgplayer-loading{display:block}",""])},function(e,t,r){var i=r(64);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-progress{display:block;position:absolute;height:20px;line-height:20px;left:12px;right:12px;outline:none;top:-15px;z-index:35}.xgplayer-skin-default .xgplayer-progress-outer{background:hsla(0,0%,100%,.3);display:block;height:3px;line-height:3px;margin-top:8.5px;width:100%;position:relative;cursor:pointer}.xgplayer-skin-default .xgplayer-progress-cache,.xgplayer-skin-default .xgplayer-progress-played{display:block;height:100%;line-height:1;position:absolute;left:0;top:0}.xgplayer-skin-default .xgplayer-progress-cache{width:0;background:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-progress-played{display:block;width:0;background-image:linear-gradient(-90deg,#fa1f41,#e31106);border-radius:0 1.5px 1.5px 0}.xgplayer-skin-default .xgplayer-progress-btn{display:none;position:absolute;left:0;top:-5px;width:13px;height:13px;border-radius:30px;background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.26);left:100%;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%);z-index:36}.xgplayer-skin-default .xgplayer-progress-point{position:absolute}.xgplayer-skin-default .xgplayer-progress-point.xgplayer-tips{margin-left:0;top:-25px;display:none;z-index:100}.xgplayer-skin-default .xgplayer-progress-dot{display:inline-block;position:absolute;height:3px;width:5px;top:0;background:#fff;border-radius:6px;z-index:16}.xgplayer-skin-default .xgplayer-progress-dot .xgplayer-progress-tip{position:absolute;bottom:200%;right:50%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);height:auto;line-height:30px;width:auto;background:rgba(0,0,0,.3);border-radius:6px;border:1px solid rgba(0,0,0,.8);cursor:default;white-space:nowrap;display:none}.xgplayer-skin-default .xgplayer-progress-dot-show .xgplayer-progress-tip{display:block}.xgplayer-skin-default .xgplayer-progress-thumbnail{position:absolute;-moz-box-sizing:border-box;box-sizing:border-box}.xgplayer-skin-default .xgplayer-progress-thumbnail.xgplayer-tips{margin-left:0;display:none;z-index:99}.xgplayer-skin-default .xgplayer-coverpreview{position:absolute;width:100%;height:100%;top:0;left:0;display:none}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer{position:absolute;display:block;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-thumbnail{display:block}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point{display:block;text-align:center;font-family:PingFangSC-Regular;font-size:11px;color:#ccc;padding:2px 4px}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point span{color:#fff}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-outer{height:6px;margin-top:7px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-dot,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-dot{height:6px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-btn{display:block;top:-3px}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-volume-active .xgplayer-progress{z-index:15}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress-btn{display:block!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-outer{height:3px!important;margin-top:8.5px!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-btn{display:block!important;top:-5px!important}",""])},function(e,t,r){var i=r(66);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,'.xgplayer-skin-default .xgplayer-time{-webkit-order:2;-moz-box-ordinal-group:3;order:2;font-family:ArialMT;font-size:13px;color:#fff;line-height:40px;height:40px;text-align:center;display:inline-block;margin:auto 8px}.xgplayer-skin-default .xgplayer-time span{color:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current{color:#fff}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current:after{content:"/";display:inline-block;padding:0 3px}',""])},function(e,t,r){var i=r(68);"string"==typeof i&&(i=[[e.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};r(2)(i,n);i.locals&&(e.exports=i.locals)},function(e,t,r){(e.exports=r(1)(!1)).push([e.i,".xgplayer-skin-default .xgplayer-replay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:105;display:none;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;background:rgba(0,0,0,.54);-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column}.xgplayer-skin-default .xgplayer-replay svg{background:rgba(0,0,0,.58);border-radius:100%;cursor:pointer}.xgplayer-skin-default .xgplayer-replay svg path{-webkit-transform:translate(20px,21px);-ms-transform:translate(20px,21px);transform:translate(20px,21px);fill:#ddd}.xgplayer-skin-default .xgplayer-replay svg:hover{background:rgba(0,0,0,.38)}.xgplayer-skin-default .xgplayer-replay svg:hover path{fill:#fff}.xgplayer-skin-default .xgplayer-replay .xgplayer-replay-txt{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#fff;line-height:34px}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-replay{display:-webkit-flex;display:-moz-box;display:flex}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){e.exports=r(114)},function(e,t,r){"use strict";r.r(t);var i=r(5),n=r(46),o=r(42),a=r(50),l=r(51),s=r(13),c=r(14),p=r(43),u=r(49),d=r(47),g=r(45),f=r(48),y=r(15),h=r(16),x=r(44),v=r(52);[n.a,o.a,a.a,l.a,s.a,c.a,p.a,u.a,d.a,g.a,f.a,y.a,h.a,x.a,v.a].forEach((function(e){i.a.install(e.name,e.method)})),t.default=i.a}])}));
  //# sourceMappingURL=simple_player.js.map