mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
9 lines
145 KiB
JavaScript
9 lines
145 KiB
JavaScript
/*!
|
|
* artplayer-react.js v3.5.15
|
|
* Github: https://github.com/zhw2590582/ArtPlayer#readme
|
|
* (c) 2017-2020 Harvey Zack
|
|
* Released under the MIT License.
|
|
*/
|
|
|
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ArtplayerReact=e()}(this,(function(){"use strict";var t=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o};var e=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i};var r=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function n(t,e){return t(e={exports:{}},e.exports),e.exports}var o=n((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=e=function(t){return typeof t}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(r)}t.exports=e}));var i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t},l=n((function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e}));var s=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)};var u=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var f=function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?u(t):e},p=n((function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(r)}t.exports=e})),d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;function v(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var m=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=v(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))y.call(r,a)&&(o[a]=r[a]);if(d){n=d(r);for(var c=0;c<n.length;c++)h.call(r,n[c])&&(o[n[c]]=r[n[c]])}}return o},b="function"==typeof Symbol&&Symbol.for,g=b?Symbol.for("react.element"):60103,w=b?Symbol.for("react.portal"):60106,x=b?Symbol.for("react.fragment"):60107,O=b?Symbol.for("react.strict_mode"):60108,k=b?Symbol.for("react.profiler"):60114,j=b?Symbol.for("react.provider"):60109,P=b?Symbol.for("react.context"):60110,S=b?Symbol.for("react.forward_ref"):60112,R=b?Symbol.for("react.suspense"):60113,E=b?Symbol.for("react.memo"):60115,$=b?Symbol.for("react.lazy"):60116,C="function"==typeof Symbol&&Symbol.iterator;function D(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A={};function z(t,e,r){this.props=t,this.context=e,this.refs=A,this.updater=r||T}function _(){}function L(t,e,r){this.props=t,this.context=e,this.refs=A,this.updater=r||T}z.prototype.isReactComponent={},z.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(D(85));this.updater.enqueueSetState(this,t,e,"setState")},z.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=z.prototype;var M=L.prototype=new _;M.constructor=L,m(M,z.prototype),M.isPureReactComponent=!0;var q={current:null},I={current:null},F=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function W(t,e,r){var n,o={},i=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(i=""+e.key),e)F.call(e,n)&&!N.hasOwnProperty(n)&&(o[n]=e[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),s=0;s<c;s++)l[s]=arguments[s+2];o.children=l}if(t&&t.defaultProps)for(n in c=t.defaultProps)void 0===o[n]&&(o[n]=c[n]);return{$$typeof:g,type:t,key:i,ref:a,props:o,_owner:I.current}}function V(t){return"object"==typeof t&&null!==t&&t.$$typeof===g}var H=/\/+/g,U=[];function B(t,e,r,n){if(U.length){var o=U.pop();return o.result=t,o.keyPrefix=e,o.func=r,o.context=n,o.count=0,o}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function Y(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>U.length&&U.push(t)}function X(t,e,r,n){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var i=!1;if(null===t)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case g:case w:i=!0}}if(i)return r(n,t,""===e?"."+Z(t,0):e),1;if(i=0,e=""===e?".":e+":",Array.isArray(t))for(var a=0;a<t.length;a++){var c=e+Z(o=t[a],a);i+=X(o,c,r,n)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=C&&t[C]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),a=0;!(o=t.next()).done;)i+=X(o=o.value,c=e+Z(o,a++),r,n);else if("object"===o)throw r=""+t,Error(D(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return i}function J(t,e,r){return null==t?0:X(t,"",e,r)}function Z(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function Q(t,e){t.func.call(t.context,e,t.count++)}function G(t,e,r){var n=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?K(t,n,r,(function(t){return t})):null!=t&&(V(t)&&(t=function(t,e){return{$$typeof:g,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(H,"$&/")+"/")+r)),n.push(t))}function K(t,e,r,n,o){var i="";null!=r&&(i=(""+r).replace(H,"$&/")+"/"),J(t,G,e=B(e,i,n,o)),Y(e)}function tt(){var t=q.current;if(null===t)throw Error(D(321));return t}var et={Children:{map:function(t,e,r){if(null==t)return t;var n=[];return K(t,n,null,e,r),n},forEach:function(t,e,r){if(null==t)return t;J(t,Q,e=B(null,null,e,r)),Y(e)},count:function(t){return J(t,(function(){return null}),null)},toArray:function(t){var e=[];return K(t,e,null,(function(t){return t})),e},only:function(t){if(!V(t))throw Error(D(143));return t}},createRef:function(){return{current:null}},Component:z,PureComponent:L,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:P,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:j,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:S,render:t}},lazy:function(t){return{$$typeof:$,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:E,type:t,compare:void 0===e?null:e}},useCallback:function(t,e){return tt().useCallback(t,e)},useContext:function(t,e){return tt().useContext(t,e)},useEffect:function(t,e){return tt().useEffect(t,e)},useImperativeHandle:function(t,e,r){return tt().useImperativeHandle(t,e,r)},useDebugValue:function(){},useLayoutEffect:function(t,e){return tt().useLayoutEffect(t,e)},useMemo:function(t,e){return tt().useMemo(t,e)},useReducer:function(t,e,r){return tt().useReducer(t,e,r)},useRef:function(t){return tt().useRef(t)},useState:function(t){return tt().useState(t)},Fragment:x,Profiler:k,StrictMode:O,Suspense:R,createElement:W,cloneElement:function(t,e,r){if(null==t)throw Error(D(267,t));var n=m({},t.props),o=t.key,i=t.ref,a=t._owner;if(null!=e){if(void 0!==e.ref&&(i=e.ref,a=I.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in e)F.call(e,l)&&!N.hasOwnProperty(l)&&(n[l]=void 0===e[l]&&void 0!==c?c[l]:e[l])}var l=arguments.length-2;if(1===l)n.children=r;else if(1<l){c=Array(l);for(var s=0;s<l;s++)c[s]=arguments[s+2];n.children=c}return{$$typeof:g,type:t.type,key:o,ref:i,props:n,_owner:a}},createFactory:function(t){var e=W.bind(null,t);return e.type=t,e},isValidElement:V,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:q,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:I,IsSomeRendererActing:{current:!1},assign:m}},rt={default:et},nt=rt&&et||rt,ot=nt.default||nt,it=function(){};if("production"!==process.env.NODE_ENV){var at="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ct={},lt=Function.call.bind(Object.prototype.hasOwnProperty);it=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function st(t,e,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(lt(t,i)){var a;try{if("function"!=typeof t[i]){var c=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[i]+"`.");throw c.name="Invariant Violation",c}a=t[i](e,i,n,r,null,at)}catch(t){a=t}if(!a||a instanceof Error||it((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in ct)){ct[a.message]=!0;var l=o?o():"";it("Failed "+r+" type: "+a.message+(null!=l?l:""))}}}st.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ct={})};var ut=st,ft=n((function(t){"production"!==process.env.NODE_ENV&&function(){var e=m,r=ut,n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function O(t){if(null===t||"object"!=typeof t)return null;var e=x&&t[x]||t["@@iterator"];return"function"==typeof e?e:null}var k=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=0,i="Warning: "+t.replace(/%s/g,(function(){return r[o++]}));"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(t){}},j=function(t,e){if(void 0===e)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];k.apply(void 0,[e].concat(n))}},P=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===e)throw new Error("`warningWithoutStack(condition, format, ...args)` requires a warning message argument");if(n.length>8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!t){if("undefined"!=typeof console){var i=n.map((function(t){return""+t}));i.unshift("Warning: "+e),Function.prototype.apply.call(console.error,console,i)}try{var a=0,c="Warning: "+e.replace(/%s/g,(function(){return n[a++]}));throw new Error(c)}catch(t){}}},S={};function R(t,e){var r=t.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+e;S[o]||(P(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,n),S[o]=!0)}var E={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,r){R(t,"forceUpdate")},enqueueReplaceState:function(t,e,r,n){R(t,"replaceState")},enqueueSetState:function(t,e,r,n){R(t,"setState")}},$={};function C(t,e,r){this.props=t,this.context=e,this.refs=$,this.updater=r||E}Object.freeze($),C.prototype.isReactComponent={},C.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},C.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var D={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},T=function(t,e){Object.defineProperty(C.prototype,t,{get:function(){j(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var A in D)D.hasOwnProperty(A)&&T(A,D[A]);function z(){}function _(t,e,r){this.props=t,this.context=e,this.refs=$,this.updater=r||E}z.prototype=C.prototype;var L=_.prototype=new z;L.constructor=_,e(L,C.prototype),L.isPureReactComponent=!0;var M={current:null},q={current:null},I=/^(.*)[\\\/]/;function F(t){if(null==t)return null;if("number"==typeof t.tag&&P(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case a:return"Fragment";case i:return"Portal";case l:return"Profiler";case c:return"StrictMode";case d:return"Suspense";case y:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case u:return"Context.Consumer";case s:return"Context.Provider";case p:return n=t,o=t.render,f="ForwardRef",m=o.displayName||o.name||"",n.displayName||(""!==m?f+"("+m+")":f);case h:return F(t.type);case v:var e=1===(r=t)._status?r._result:null;if(e)return F(e)}var r,n,o,f,m;return null}var N={},W=null;function V(t){W=t}N.getCurrentStack=null,N.getStackAddendum=function(){var t="";if(W){var e=F(W.type),r=W._owner;t+=function(t,e,r){var n="";if(e){var o=e.fileName,i=o.replace(I,"");if(/^index\./.test(i)){var a=o.match(I);if(a){var c=a[1];c&&(i=c.replace(I,"")+"/"+i)}}n=" (at "+i+":"+e.lineNumber+")"}else r&&(n=" (created by "+r+")");return"\n in "+(t||"Unknown")+n}(e,W._source,r&&F(r.type))}var n=N.getCurrentStack;return n&&(t+=n()||""),t};var H={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:q,IsSomeRendererActing:{current:!1},assign:e};e(H,{ReactDebugCurrentFrame:N,ReactComponentTreeHook:{}});var U,B,Y=function(t,e){if(!t){for(var r=H.ReactDebugCurrentFrame,n=r.getStackAddendum(),o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];P.apply(void 0,[!1,e+"%s"].concat(i,[n]))}},X=Object.prototype.hasOwnProperty,J={key:!0,ref:!0,__self:!0,__source:!0};function Z(t){if(X.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function Q(t){if(X.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}function G(t,e){var r=function(){U||(U=!0,P(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};r.isReactWarning=!0,Object.defineProperty(t,"key",{get:r,configurable:!0})}function K(t,e){var r=function(){B||(B=!0,P(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};r.isReactWarning=!0,Object.defineProperty(t,"ref",{get:r,configurable:!0})}var tt=function(t,e,r,n,i,a,c){var l={$$typeof:o,type:t,key:e,ref:r,props:c,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function et(t,e,r){var n,o={},i=null,a=null,c=null,l=null;if(null!=e)for(n in Z(e)&&(a=e.ref),Q(e)&&(i=""+e.key),c=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)X.call(e,n)&&!J.hasOwnProperty(n)&&(o[n]=e[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var u=Array(s),f=0;f<s;f++)u[f]=arguments[f+2];Object.freeze&&Object.freeze(u),o.children=u}if(t&&t.defaultProps){var p=t.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof t?t.displayName||t.name||"Unknown":t;i&&G(o,d),a&&K(o,d)}return tt(t,i,a,c,l,q.current,o)}function rt(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o,i,a=e({},t.props),c=t.key,l=t.ref,s=t._self,u=t._source,f=t._owner;if(null!=r)for(o in Z(r)&&(l=r.ref,f=q.current),Q(r)&&(c=""+r.key),t.type&&t.type.defaultProps&&(i=t.type.defaultProps),r)X.call(r,o)&&!J.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),y=0;y<p;y++)d[y]=arguments[y+2];a.children=d}return tt(t.type,c,l,s,u,f,a)}function nt(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var ot=!1,it=/\/+/g;function at(t){return(""+t).replace(it,"$&/")}var ct,lt=[];function st(t,e,r,n){if(lt.length){var o=lt.pop();return o.result=t,o.keyPrefix=e,o.func=r,o.context=n,o.count=0,o}return{result:t,keyPrefix:e,func:r,context:n,count:0}}function ft(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,lt.length<10&<.push(t)}function pt(t,e,r,n){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var c,l=!1;if(null===t)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case i:l=!0}}if(l)return r(n,t,""===e?"."+yt(t,0):e),1;var s=0,u=""===e?".":e+":";if(Array.isArray(t))for(var f=0;f<t.length;f++)s+=pt(c=t[f],u+yt(c,f),r,n);else{var p=O(t);if("function"==typeof p){p===t.entries&&(ot||Y(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead."),ot=!0);for(var d,y=p.call(t),h=0;!(d=y.next()).done;)s+=pt(c=d.value,u+yt(c,h++),r,n)}else if("object"===a){var v;v=" If you meant to render a collection of children, use an array instead."+N.getStackAddendum();var m=""+t;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===m?"object with keys {"+Object.keys(t).join(", ")+"}":m)+")."+v)}}return s}function dt(t,e,r){return null==t?0:pt(t,"",e,r)}function yt(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(r=t.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(t){return n[t]}))):e.toString(36);var r,n}function ht(t,e,r){var n=t.func,o=t.context;n.call(o,e,t.count++)}function vt(t,e,r){var n,o,i=t.result,a=t.keyPrefix,c=t.func,l=t.context,s=c.call(l,e,t.count++);Array.isArray(s)?mt(s,i,r,(function(t){return t})):null!=s&&(nt(s)&&(n=s,o=a+(!s.key||e&&e.key===s.key?"":at(s.key)+"/")+r,s=tt(n.type,o,n.ref,n._self,n._source,n._owner,n.props)),i.push(s))}function mt(t,e,r,n,o){var i="";null!=r&&(i=at(r)+"/");var a=st(e,i,n,o);dt(t,vt,a),ft(a)}function bt(t){return"string"==typeof t||"function"==typeof t||t===a||t===f||t===l||t===c||t===d||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===h||t.$$typeof===s||t.$$typeof===u||t.$$typeof===p||t.$$typeof===b||t.$$typeof===g||t.$$typeof===w)}function gt(){var t=M.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function wt(){if(q.current){var t=F(q.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}function xt(t){return null!=t&&void 0!==(e=t.__source)?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":"";var e}ct=!1;var Ot={};function kt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var r=function(t){var e=wt();if(!e){var r="string"==typeof t?t:t.displayName||t.name;r&&(e="\n\nCheck the top-level render call using <"+r+">.")}return e}(e);if(!Ot[r]){Ot[r]=!0;var n="";t&&t._owner&&t._owner!==q.current&&(n=" It was passed a child from "+F(t._owner.type)+"."),V(t),Y(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,n),V(null)}}}function jt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];nt(n)&&kt(n,e)}else if(nt(t))t._store&&(t._store.validated=!0);else if(t){var o=O(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)nt(i.value)&&kt(i.value,e)}}function Pt(t){var e=t.type;if(null!=e&&"string"!=typeof e){var n,o=F(e);if("function"==typeof e)n=e.propTypes;else{if("object"!=typeof e||e.$$typeof!==p&&e.$$typeof!==h)return;n=e.propTypes}n?(V(t),r(n,t.props,"prop",o,N.getStackAddendum),V(null)):void 0===e.PropTypes||ct||(ct=!0,P(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")),"function"==typeof e.getDefaultProps&&(e.getDefaultProps.isReactClassApproved||P(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function St(t){V(t);for(var e=Object.keys(t.props),r=0;r<e.length;r++){var n=e[r];if("children"!==n&&"key"!==n){Y(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n);break}}null!==t.ref&&Y(!1,"Invalid attribute `ref` supplied to `React.Fragment`."),V(null)}function Rt(t,e,r){var n=bt(t);if(!n){var i="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c,l=xt(e);i+=l||wt(),null===t?c="null":Array.isArray(t)?c="array":void 0!==t&&t.$$typeof===o?(c="<"+(F(t.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):c=typeof t,Y(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,i)}var s=et.apply(this,arguments);if(null==s)return s;if(n)for(var u=2;u<arguments.length;u++)jt(arguments[u],t);return t===a?St(s):Pt(s),s}try{var Et=Object.freeze({}),$t=new Map([[Et,null]]),Ct=new Set([Et]);$t.set(0,0),Ct.add(0)}catch(t){}var Dt={Children:{map:function(t,e,r){if(null==t)return t;var n=[];return mt(t,n,null,e,r),n},forEach:function(t,e,r){if(null==t)return t;var n=st(null,null,e,r);dt(t,ht,n),ft(n)},count:function(t){return dt(t,(function(){return null}),null)},toArray:function(t){var e=[];return mt(t,e,null,(function(t){return t})),e},only:function(t){if(!nt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},createRef:function(){var t={current:null};return Object.seal(t),t},Component:C,PureComponent:_,createContext:function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&P(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",e);var r={$$typeof:u,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:s,_context:r};var n=!1,o=!1,i={$$typeof:u,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(i,{Provider:{get:function(){return o||(o=!0,Y(!1,"Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(t){r.Provider=t}},_currentValue:{get:function(){return r._currentValue},set:function(t){r._currentValue=t}},_currentValue2:{get:function(){return r._currentValue2},set:function(t){r._currentValue2=t}},_threadCount:{get:function(){return r._threadCount},set:function(t){r._threadCount=t}},Consumer:{get:function(){return n||(n=!0,Y(!1,"Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=i,r._currentRenderer=null,r._currentRenderer2=null,r},forwardRef:function(t){return null!=t&&t.$$typeof===h?P(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?P(!1,"forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&P(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null!=t.defaultProps||null!=t.propTypes)&&P(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:p,render:t}},lazy:function(t){var e,r,n={$$typeof:v,_ctor:t,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){Y(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(t){Y(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=t,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},memo:function(t,e){return bt(t)||P(!1,"memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:h,type:t,compare:void 0===e?null:e}},useCallback:function(t,e){return gt().useCallback(t,e)},useContext:function(t,e){var r=gt();if(void 0!==e&&Y(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context){var n=t._context;n.Consumer===t?Y(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===t&&Y(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(t,e)},useEffect:function(t,e){return gt().useEffect(t,e)},useImperativeHandle:function(t,e,r){return gt().useImperativeHandle(t,e,r)},useDebugValue:function(t,e){return gt().useDebugValue(t,e)},useLayoutEffect:function(t,e){return gt().useLayoutEffect(t,e)},useMemo:function(t,e){return gt().useMemo(t,e)},useReducer:function(t,e,r){return gt().useReducer(t,e,r)},useRef:function(t){return gt().useRef(t)},useState:function(t){return gt().useState(t)},Fragment:a,Profiler:l,StrictMode:c,Suspense:d,createElement:Rt,cloneElement:function(t,e,r){for(var n=rt.apply(this,arguments),o=2;o<arguments.length;o++)jt(arguments[o],n.type);return Pt(n),n},createFactory:function(t){var e=Rt.bind(null,t);return e.type=t,Object.defineProperty(e,"type",{enumerable:!1,get:function(){return j(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},isValidElement:nt,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H},Tt=Object.freeze({default:Dt}),At=Tt&&Dt||Tt,zt=At.default||At;t.exports=zt}()})),pt=n((function(t){"production"===process.env.NODE_ENV?t.exports=ot:t.exports=ft}));!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('.art-undercover{background:#000;position:fixed;top:0;left:0;display:none;height:100%;width:100%;opacity:.9;z-index:10}.art-video-player{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;margin:0 auto;z-index:20;width:100%;height:100%;outline:0;zoom:1;font-family:Roboto,Arial,Helvetica,sans-serif;color:#eee;background-color:#000;text-align:left;direction:ltr;font-size:14px;line-height:1.3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none}.art-video-player *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:5px}.art-video-player ::-webkit-scrollbar-thumb{background-color:#666}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:#ccc}.art-video-player .art-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.5}.art-video-player .art-icon svg{fill:#fff}.art-video-player img{max-width:100%;vertical-align:top}@supports ((-webkit-backdrop-filter:initial) or (backdrop-filter:initial)){.art-video-player .art-backdrop-filter{-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);background-color:rgba(0,0,0,.7)!important}}.art-video-player .art-video{position:absolute;z-index:10;left:0;top:0;right:0;bottom:0;width:100%;height:100%;background-color:#000;cursor:pointer}.art-video-player .art-subtitle{display:none;position:absolute;z-index:20;bottom:10px;width:100%;padding:0 20px;text-align:center;color:#fff;font-size:20px;pointer-events:none;text-shadow:.5px .5px .5px rgba(0,0,0,.5)}.art-video-player .art-subtitle p{word-break:break-all;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin:5px 0 0;line-height:1}.art-video-player .art-bilingual p:nth-child(2){font-size:.6em}.art-video-player.art-subtitle-show .art-subtitle{display:block}.art-video-player.art-control-show .art-subtitle{bottom:50px}.art-video-player .art-danmuku{z-index:30}.art-video-player .art-danmuku,.art-video-player .art-layers{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.art-video-player .art-layers{display:none;z-index:40}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:block}.art-video-player .art-mask{display:none;z-index:50;left:0;top:0;right:0;bottom:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.art-video-player .art-mask,.art-video-player .art-mask .art-state{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute}.art-video-player .art-mask .art-state{right:30px;bottom:55px;width:60px;height:60px;opacity:.6}.art-video-player.art-mask-show .art-mask,.art-video-player .art-mask .art-state{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-loading{display:none;position:absolute;z-index:70;left:0;top:0;right:0;bottom:0;width:100%;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;pointer-events:none}.art-video-player.art-loading-show .art-loading{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-bottom{position:absolute;z-index:60;left:0;right:0;bottom:0;height:100px;padding:55px 10px 0;opacity:0;visibility:hidden;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;pointer-events:none;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom}.art-video-player .art-bottom .art-progress{position:relative;pointer-events:auto}.art-video-player .art-bottom .art-progress .art-control-progress{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:4px;cursor:pointer}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner{position:relative;height:50%;width:100%;background:hsla(0,0%,100%,.2)}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{position:absolute;z-index:10;left:0;top:0;right:0;bottom:0;height:100%;width:0;background:hsla(0,0%,100%,.4)}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{position:absolute;z-index:20;left:0;top:0;right:0;bottom:0;height:100%;width:0}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{position:absolute;z-index:30;left:0;top:0;right:0;bottom:0;height:100%;pointer-events:none}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{display:inline-block;position:absolute;left:0;top:0;width:7px;height:100%;background:#fff;pointer-events:auto}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{display:none;position:absolute;z-index:40;top:-5px;left:-6.5px;width:13px;height:13px;border-radius:50%}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator.art-show-indicator{display:block}.art-video-player .art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{display:none;position:absolute;z-index:50;top:-25px;left:0;height:20px;padding:0 5px;line-height:20px;color:#fff;font-size:12px;text-align:center;background:rgba(0,0,0,.7);border-radius:3px;font-weight:700;white-space:nowrap}.art-video-player .art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-video-player .art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner .art-progress-indicator,.art-video-player .art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner .art-progress-tip{display:block}.art-video-player .art-bottom .art-progress .art-control-thumbnails{display:none;position:absolute;bottom:8px;left:0;pointer-events:none;background-color:rgba(0,0,0,.7)}.art-video-player .art-bottom .art-progress .art-control-loop{display:none;position:absolute;width:100%;height:100%;left:0;top:0;right:0;bottom:0;pointer-events:none}.art-video-player .art-bottom .art-progress .art-control-loop .art-loop-point{position:absolute;left:0;top:-2px;width:2px;height:8px;background:hsla(0,0%,100%,.75)}.art-video-player .art-bottom .art-controls{position:relative;pointer-events:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:40px;padding:5px 0}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-controls .art-controls-left,.art-video-player .art-bottom .art-controls .art-controls-right{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-bottom .art-controls .art-control{opacity:.9;font-size:12px;height:36px;min-width:36px;line-height:36px;text-align:center;cursor:pointer;white-space:nowrap}.art-video-player .art-bottom .art-controls .art-control .art-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;float:left;height:36px;width:36px}.art-video-player .art-bottom .art-controls .art-control:hover{opacity:1}.art-video-player .art-bottom .art-controls .art-control-onlyText{padding:0 10px}.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel{position:relative;float:left;width:0;height:100%;-webkit-transition:margin .2s cubic-bezier(.4,0,1,1),width .2s cubic-bezier(.4,0,1,1);transition:margin .2s cubic-bezier(.4,0,1,1),width .2s cubic-bezier(.4,0,1,1);overflow:hidden}.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle{position:absolute;top:50%;left:0;width:12px;height:12px;border-radius:12px;margin-top:-6px;background:#fff}.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:before{left:-54px;background:#fff}.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:after{left:6px;background:hsla(0,0%,100%,.2)}.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:after,.art-video-player .art-bottom .art-controls .art-control-volume .art-volume-panel .art-volume-slider-handle:before{content:"";position:absolute;display:block;top:50%;height:3px;margin-top:-2px;width:60px}.art-video-player .art-bottom .art-controls .art-control-volume:hover .art-volume-panel{width:60px}.art-video-player .art-bottom .art-controls .art-control-quality{position:relative;z-index:30}.art-video-player .art-bottom .art-controls .art-control-quality .art-qualitys{display:none;position:absolute;bottom:35px;width:100px;padding:5px 0;text-align:center;color:#fff;background:rgba(0,0,0,.8);border-radius:3px}.art-video-player .art-bottom .art-controls .art-control-quality .art-qualitys .art-quality-item{height:30px;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 2px rgba(0,0,0,.5)}.art-video-player .art-bottom .art-controls .art-control-quality .art-qualitys .art-quality-item:hover{background-color:hsla(0,0%,100%,.1)}.art-video-player .art-bottom .art-controls .art-control-quality:hover .art-qualitys{display:block}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1;visibility:visible}.art-video-player.art-destroy .art-progress-indicator,.art-video-player.art-destroy .art-progress-tip,.art-video-player.art-error .art-progress-indicator,.art-video-player.art-error .art-progress-tip{display:none!important}.art-video-player .art-notice{display:none;font-size:14px;position:absolute;z-index:80;left:0;top:0;padding:10px;width:100%;pointer-events:none}.art-video-player .art-notice .art-notice-inner{display:inline-block;padding:5px 10px;color:#fff;background:rgba(0,0,0,.6);border-radius:3px}.art-video-player.art-notice-show .art-notice{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-contextmenus{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:120;left:0;top:0;min-width:200px;padding:5px 0;background:rgba(0,0,0,.9);border-radius:3px}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;font-size:12px;display:block;color:#fff;padding:10px 15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 2px rgba(0,0,0,.5);border-bottom:1px solid hsla(0,0%,100%,.1)}.art-video-player .art-contextmenus .art-contextmenu a{color:#fff;text-decoration:none}.art-video-player .art-contextmenus .art-contextmenu span{display:inline-block;padding:0 7px}.art-video-player .art-contextmenus .art-contextmenu span.art-current,.art-video-player .art-contextmenus .art-contextmenu span:hover{color:#00c9ff}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:hsla(0,0%,100%,.1)}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus,.art-video-player .art-settings{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-settings{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:90;left:0;top:0;height:100%;width:100%;opacity:0;visibility:hidden;pointer-events:none;overflow:hidden}.art-video-player .art-settings .art-setting-inner{position:absolute;top:0;right:-300px;bottom:0;width:300px;height:100%;font-size:12px;background:rgba(0,0,0,.9);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;overflow:auto}.art-video-player .art-settings .art-setting-inner .art-setting-body{overflow-y:auto;width:100%;height:100%}.art-video-player .art-settings .art-setting-inner .art-setting-body .art-setting{border-bottom:1px solid hsla(0,0%,100%,.1);padding:10px 15px}.art-video-player .art-settings .art-setting-inner .art-setting-body .art-setting .art-setting-header{margin-bottom:5px}.art-video-player .art-settings .art-setting-radio{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-settings .art-setting-radio .art-radio-item{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 2px}.art-video-player .art-settings .art-setting-radio .art-radio-item button{height:22px;width:100%;border:none;outline:none;color:#fff;background:hsla(0,0%,100%,.2);border-radius:2px}.art-video-player .art-settings .art-setting-radio .art-radio-item.current button,.art-video-player .art-settings .art-setting-radio .art-radio-item button:active{background-color:#00a1d6}.art-video-player .art-settings .art-setting-range input{width:100%;height:3px;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:hsla(0,0%,100%,.5)}.art-video-player .art-settings .art-setting-checkbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.art-video-player .art-settings .art-setting-checkbox input{height:14px;width:14px;margin-right:5px}.art-video-player .art-settings .art-setting-upload{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player .art-settings .art-setting-upload .art-upload-btn{width:80px;height:22px;line-height:22px;border:none;outline:none;color:#fff;background:hsla(0,0%,100%,.2);border-radius:2px;text-align:center}.art-video-player .art-settings .art-setting-upload .art-upload-value{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:22px;line-height:22px;padding-left:10px}.art-video-player.art-setting-show .art-settings{opacity:1;visibility:visible;pointer-events:auto}.art-video-player.art-setting-show .art-settings .art-setting-inner{right:0}.art-video-player .art-info{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;left:10px;top:10px;z-index:100;width:350px;min-height:150px;padding:10px;color:#fff;font-size:12px;font-family:Noto Sans CJK SC DemiLight,Roboto,Segoe UI,Tahoma,Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;background:rgba(0,0,0,.9)}.art-video-player .art-info .art-info-item{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}.art-video-player .art-info .art-info-item .art-info-title{width:100px;text-align:right}.art-video-player .art-info .art-info-item .art-info-content{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:5px}.art-video-player .art-info .art-info-close{position:absolute;top:5px;right:5px;cursor:pointer}.art-video-player.art-info-show .art-info{display:-webkit-box;display:-ms-flexbox;display:flex}.art-video-player.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio] video{-webkit-box-sizing:content-box;box-sizing:content-box;-o-object-fit:fill;object-fit:fill}.art-video-player.art-fullscreen-web{position:fixed;z-index:9999;width:100%!important;height:100%!important;left:0;top:0;right:0;bottom:0}.art-fullscreen-rotate{position:fixed;z-index:9999;width:100%;height:100%;left:0;top:0;right:0;bottom:0;background:#000}.art-video-player .art-mini-header{display:none;position:absolute;z-index:110;left:0;top:0;right:0;height:35px;line-height:35px;color:#fff;background:rgba(0,0,0,.5);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;opacity:0;visibility:hidden;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.art-video-player .art-mini-header .art-mini-title{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:move}.art-video-player .art-mini-header .art-mini-close{width:35px;text-align:center;font-size:22px;cursor:pointer}.art-video-player.art-is-dragging{opacity:.7}.art-video-player.art-mini{position:fixed;z-index:9999;width:400px;height:225px;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.2);box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.2)}.art-video-player.art-mini .art-mini-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.art-video-player.art-mini.art-hover .art-mini-header{opacity:1;visibility:visible}.art-video-player.art-mini .art-mask .art-state{position:static}.art-video-player.art-mini .art-bottom,.art-video-player.art-mini .art-contextmenu,.art-video-player.art-mini .art-danmu,.art-video-player.art-mini .art-info,.art-video-player.art-mini .art-layers,.art-video-player.art-mini .art-notice,.art-video-player.art-mini .art-setting,.art-video-player.art-mini .art-subtitle{display:none!important}.art-auto-size{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.art-video-player[data-flip=horizontal] .art-video{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.art-video-player .art-control-selector{position:relative}.art-video-player .art-control-selector .art-selector-list{display:none;position:absolute;bottom:35px;width:100px;padding:5px 0;text-align:center;color:#fff;background:rgba(0,0,0,.8);border-radius:3px}.art-video-player .art-control-selector .art-selector-list .art-selector-item{height:30px;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 2px rgba(0,0,0,.5)}.art-video-player .art-control-selector .art-selector-list .art-selector-item:hover{background-color:hsla(0,0%,100%,.1)}.art-video-player .art-control-selector:hover .art-selector-list{display:block}:root{--balloon-color:rgba(16,16,16,0.95);--balloon-font-size:12px;--balloon-move:4px}button[aria-label][data-balloon-pos]{overflow:visible}[aria-label][data-balloon-pos]{position:relative;cursor:pointer}[aria-label][data-balloon-pos]:after{text-indent:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;font-style:normal;text-shadow:none;font-size:var(--balloon-font-size);background:var(--balloon-color);border-radius:2px;color:#fff;content:attr(aria-label);padding:.5em 1em;white-space:nowrap;line-height:1.2}[aria-label][data-balloon-pos]:after,[aria-label][data-balloon-pos]:before{opacity:0;pointer-events:none;-webkit-transition:all .18s ease-out .18s;transition:all .18s ease-out .18s;position:absolute;z-index:10}[aria-label][data-balloon-pos]:before{width:0;height:0;border:5px solid transparent;border-top:5px solid var(--balloon-color);content:""}[aria-label][data-balloon-pos]:hover:after,[aria-label][data-balloon-pos]:hover:before{opacity:1;pointer-events:none}[aria-label][data-balloon-pos][data-balloon-pos=up]:after{margin-bottom:10px}[aria-label][data-balloon-pos][data-balloon-pos=up]:after,[aria-label][data-balloon-pos][data-balloon-pos=up]:before{bottom:100%;left:50%;-webkit-transform:translate(-50%,var(--balloon-move));transform:translate(-50%,var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:before{-webkit-transform:translate(-50%);transform:translate(-50%)}');var dt=n((function(t,e){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e=Object.prototype.toString,r=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var o=t(r);if("boolean"===o)return"boolean";if("string"===o)return"string";if("number"===o)return"number";if("symbol"===o)return"symbol";if("function"===o)return function(t){return"GeneratorFunction"===n(t)}(r)?"generatorfunction":"function";if(function(t){return Array.isArray?Array.isArray(t):t instanceof Array}(r))return"array";if(function(t){return!(!t.constructor||"function"!=typeof t.constructor.isBuffer)&&t.constructor.isBuffer(t)}(r))return"buffer";if(function(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(r))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(r))return"error";if(function(t){return t instanceof RegExp||"string"==typeof t.flags&&"boolean"==typeof t.ignoreCase&&"boolean"==typeof t.multiline&&"boolean"==typeof t.global}(r))return"regexp";switch(n(r)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(t){return"function"==typeof t.throw&&"function"==typeof t.return&&"function"==typeof t.next}(r))return"generator";switch(o=e.call(r)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return o.slice(8,-1).toLowerCase().replace(/\s/g,"")};function n(t){return t.constructor?t.constructor.name:null}function o(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:["option"];return i(t,e,n),a(t,e,n),function(t,e,n){var c=r(e),l=r(t);if("object"===c){if("object"!==l)throw new Error("[Type Error]: '".concat(n.join("."),"' require 'object' type, but got '").concat(l,"'"));Object.keys(e).forEach((function(r){var c=t[r],l=e[r],s=n.slice();s.push(r),i(c,l,s),a(c,l,s),o(c,l,s)}))}if("array"===c){if("array"!==l)throw new Error("[Type Error]: '".concat(n.join("."),"' require 'array' type, but got '").concat(l,"'"));t.forEach((function(r,c){var l=t[c],s=e[c]||e[0],u=n.slice();u.push(c),i(l,s,u),a(l,s,u),o(l,s,u)}))}}(t,e,n),t}function i(t,e,n){if("string"===r(e)){var o=r(t);if("?"===e[0]&&(e=e.slice(1)+"|undefined"),!(-1<e.indexOf("|")?e.split("|").map((function(t){return t.toLowerCase().trim()})).filter(Boolean).some((function(t){return o===t})):e.toLowerCase().trim()===o))throw new Error("[Type Error]: '".concat(n.join("."),"' require '").concat(e,"' type, but got '").concat(o,"'"))}}function a(t,e,n){if("function"===r(e)){var o=e(t,r(t),n);if(!0!==o){var i=r(o);throw"string"===i?new Error(o):"error"===i?o:new Error("[Validator Error]: The scheme for '".concat(n.join("."),"' validator require return true, but got '").concat(o,"'"))}}}return o.kindOf=r,o}()})),yt=function(){function t(){i(this,t)}return c(t,[{key:"on",value:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this}},{key:"once",value:function(t,e,r){var n=this;function o(){n.off(t,o);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];e.apply(r,a)}return o._=e,this.on(t,o,r)}},{key:"emit",value:function(t){for(var e=((this.e||(this.e={}))[t]||[]).slice(),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(var i=0;i<e.length;i+=1)e[i].fn.apply(e[i].ctx,n);return this}},{key:"off",value:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,a=n.length;i<a;i+=1)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}}]),t}(),ht=window.navigator.userAgent,vt=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ht),mt=/^((?!chrome|android).)*safari/i.test(ht),bt=/MicroMessenger/i.test(ht);function gt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e.querySelector(t)}function wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Array.from(e.querySelectorAll(t))}function xt(t,e){return t.classList.add(e)}function Ot(t,e){return t.classList.remove(e)}function kt(t,e){return t.classList.contains(e)}function jt(t,e){return e instanceof Element?t.appendChild(e):t.insertAdjacentHTML("beforeend",String(e)),t.lastElementChild||t.lastChild}function Pt(t,e,r){return t.style[e]=r,t}function St(t,e){return Object.keys(e).forEach((function(r){Pt(t,r,e[r])})),t}function Rt(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=window.getComputedStyle(t,null).getPropertyValue(e);return r?parseFloat(n):n}function Et(t){return Array.from(t.parentElement.children).filter((function(e){return e!==t}))}function $t(t,e){Et(t).forEach((function(t){return Ot(t,e)})),xt(t,e)}function Ct(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"up";vt||(t.setAttribute("aria-label",e),t.setAttribute("data-balloon-pos",r))}function Dt(t){var e=t.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,o=e.top<=r&&e.top+e.height>=0,i=e.left<=n&&e.left+e.width>=0;return o&&i}function Tt(t,e){return t.composedPath&&t.composedPath().indexOf(e)>-1}var At=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")};var zt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}},_t=n((function(t){function e(r,n,o){return zt()?t.exports=e=Reflect.construct:t.exports=e=function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},e.apply(null,arguments)}t.exports=e}));function Lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Mt=function(t){s(r,t);var e=Lt(r);function r(t,n){var o;return i(this,r),o=e.call(this,t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(u(o),n||o.constructor),o.name="ArtPlayerError",o}return r}(n((function(t){function e(r){var n="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){if(null===t||!At(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return _t(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),l(e,t)},e(r)}t.exports=e}))(Error));function qt(t,e){if(!t)throw new Mt(e);return t}function It(t){return"WEBVTT \r\n\r\n".concat(t.replace(/{[\s\S]*?}/g,"").replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").concat("\r\n\r\n"))}function Ft(t){return URL.createObjectURL(new Blob([t],{type:"text/vtt"}))}function Nt(t){var e=new RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(/[:.]/).map((function(t,e,r){if(e===r.length-1){if(1===t.length)return".".concat(t,"00");if(2===t.length)return".".concat(t,"0")}else if(1===t.length)return(0===e?"0":":0")+t;return 0===e?t:e===r.length-1?".".concat(t):":".concat(t)})).join("")}return"WEBVTT\n\n".concat(t.split(/\r?\n/).map((function(t){var n=t.match(e);return n?{start:r(n[1].trim()),end:r(n[2].trim()),text:n[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,"\n").trim().split(/\r?\n/).map((function(t){return t.trim()})).join("\n")}:null})).filter((function(t){return t})).map((function(t,e){return t?"".concat(e+1,"\n").concat(t.start," --\x3e ").concat(t.end,"\n").concat(t.text):""})).filter((function(t){return t.trim()})).join("\n\n"))}function Wt(t){return t.includes("?")?Wt(t.split("?")[0]):t.includes("#")?Wt(t.split("#")[0]):t.trim().toLowerCase().split(".").pop()}function Vt(t,e){var r=document.createElement("a");r.style.display="none",r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}var Ht=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n};var Ut=function(t){if(Array.isArray(t))return Ht(t)};var Bt=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)};var Yt=function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(t,e):void 0}};var Xt=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Jt=function(t){return Ut(t)||Bt(t)||Yt(t)||Xt()},Zt=Object.defineProperty,Qt=Object.prototype.hasOwnProperty;function Gt(t,e){return Qt.call(t,e)}function Kt(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(t,e){return Object.getOwnPropertyNames(e).forEach((function(r){qt(!Gt(t,r),"Target attribute name is duplicated: ".concat(r)),Zt(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}),t)}function te(){for(var t=function(t){return t&&"object"===o(t)&&!Array.isArray(t)},e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.reduce((function(e,r){return Object.keys(r).forEach((function(n){var o=e[n],i=r[n];Array.isArray(o)&&Array.isArray(i)?e[n]=o.concat.apply(o,Jt(i)):!t(o)||!t(i)||i instanceof Element?e[n]=i:e[n]=te(o,i)})),e}),{})}function ee(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(e){return setTimeout(e,t)}))}function re(t,e,r){var n;function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var c=function(){n=null,t.apply(r,i)};clearTimeout(n),n=setTimeout(c,e)}return o.clearTimeout=function(){clearTimeout(n)},o}function ne(t,e){var r,n,o=!1;return function i(){for(var a=arguments.length,c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];if(o)return r=c,void(n=this);o=!0,t.apply(this,c),setTimeout((function(){o=!1,r&&(i.apply(n,r),r=null,n=null)}),e)}}function oe(t,e,r){return Math.max(Math.min(t,Math.max(e,r)),Math.min(e,r))}function ie(t){var e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*r);return(e>0?[e,r,n]:[r,n]).map((function(t){return t<10?"0".concat(t):String(t)})).join(":")}function ae(t){return t.replace(/[&<>'"]/g,(function(t){return{"&":"&","<":"<",">":">","'":"'",'"':"""}[t]||t}))}var ce=Object.freeze({__proto__:null,query:gt,queryAll:wt,addClass:xt,removeClass:Ot,hasClass:kt,append:jt,remove:function(t){return t.parentNode.removeChild(t)},setStyle:Pt,setStyles:St,getStyle:Rt,sublings:Et,inverseClass:$t,tooltip:Ct,isInViewport:Dt,includeFromEvent:Tt,ArtPlayerError:Mt,errorHandle:qt,srtToVtt:It,vttToBlob:Ft,assToVtt:Nt,getExt:Wt,download:Vt,def:Zt,has:Gt,proxyPropertys:Kt,mergeDeep:te,sleep:ee,debounce:re,throttle:ne,clamp:oe,secondToTime:ie,escape:ae,userAgent:ht,isMobile:vt,isSafari:mt,isWechat:bt});function le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ue="boolean",fe="string",pe="number",de="object",ye="function";function he(t,e,r){return qt(e===fe||t instanceof Element,"".concat(r.join(".")," require '").concat(fe,"' or 'Element' type"))}var ve={html:he,disable:"?".concat(ue),name:"?".concat(fe),index:"?".concat(pe),style:"?".concat(de),click:"?".concat(ye),mounted:"?".concat(ye),tooltip:"?".concat(fe),selector:"?".concat("array"),onSelect:"?".concat(ye)},me={container:he,url:fe,poster:fe,title:fe,theme:fe,lang:fe,volume:pe,isLive:ue,muted:ue,autoplay:ue,autoSize:ue,autoMini:ue,loop:ue,flip:ue,rotate:ue,playbackRate:ue,aspectRatio:ue,screenshot:ue,setting:ue,hotkey:ue,pip:ue,mutex:ue,light:ue,backdrop:ue,fullscreen:ue,fullscreenWeb:ue,subtitleOffset:ue,miniProgressBar:ue,localVideo:ue,localSubtitle:ue,networkMonitor:ue,plugins:[ye],whitelist:["".concat(fe,"|").concat(ye,"|").concat("regexp")],layers:[ve],contextmenu:[ve],controls:[se(se({},ve),{},{position:function(t,e,r){var n=["top","left","right"];return qt(n.includes(t),"".concat(r.join(".")," only accept ").concat(n.toString()," as parameters"))}})],quality:[{default:"?".concat(ue),name:fe,url:fe}],highlight:[{time:pe,text:fe}],thumbnails:{url:fe,number:pe,width:pe,height:pe,column:pe},subtitle:{url:fe,style:de,encoding:fe,bilingual:ue},moreVideoAttr:de,icons:de,customType:de},be={propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"]},ge=function t(e){i(this,t);var r=e.constructor.kindOf,n=e.option.whitelist;this.state=!e.isMobile||n.some((function(t){switch(r(t)){case"string":return"*"===t||e.userAgent.indexOf(t)>-1;case"function":return t(e.userAgent);case"regexp":return t.test(e.userAgent);default:return!1}}))},we=function(){function t(e){var r=this;i(this,t),this.art=e,e.option.container instanceof Element?this.$container=e.option.container:(this.$container=gt(e.option.container),qt(this.$container,"No container element found by ".concat(e.option.container))),qt(e.constructor.instances.every((function(t){return t.template.$container!==r.$container})),"Cannot mount multiple instances on the same dom element"),qt(this.$container.clientWidth&&this.$container.clientHeight,"The width and height of the container cannot be 0"),e.whitelist.state?this.desktop():this.mobile()}return c(t,[{key:"query",value:function(t){return gt(t,this.$container)}},{key:"desktop",value:function(){var t=this.art.option,e=t.theme,r=t.backdrop;this.$container.innerHTML='<div class="art-undercover"></div><div class="art-video-player art-subtitle-show art-layer-show" style="--theme: '.concat(e,'"><video class="art-video"></video><div class="art-subtitle"></div><div class="art-danmuku"></div><div class="art-layers"></div><div class="art-mask"><div class="art-state"></div></div><div class="art-bottom"><div class="art-progress"></div><div class="art-controls"><div class="art-controls-left"></div><div class="art-controls-right"></div></div></div><div class="art-loading"></div><div class="art-notice"><div class="art-notice-inner"></div></div><div class="art-settings"><div class="art-setting-inner"><div class="art-setting-body"></div></div></div><div class="art-info"><div class="art-info-panel"><div class="art-info-item"><div class="art-info-title">Player version:</div><div class="art-info-content">3.5.15</div></div><div class="art-info-item"><div class="art-info-title">Video url:</div><div class="art-info-content" data-video="src"></div></div><div class="art-info-item"><div class="art-info-title">Video volume:</div><div class="art-info-content" data-video="volume"></div></div><div class="art-info-item"><div class="art-info-title">Video time:</div><div class="art-info-content" data-video="currentTime"></div></div><div class="art-info-item"><div class="art-info-title">Video duration:</div><div class="art-info-content" data-video="duration"></div></div><div class="art-info-item"><div class="art-info-title">Video resolution:</div><div class="art-info-content"><span data-video="videoWidth"></span> x <span data-video="videoHeight"></span></div></div></div><div class="art-info-close">[x]</div></div><div class="art-mini-header"><div class="art-mini-title"></div><div class="art-mini-close">xD7</div></div><div class="art-contextmenus"></div></div>'),this.$undercover=this.query(".art-undercover"),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$settingInner=this.query(".art-setting-inner"),this.$settingBody=this.query(".art-setting-body"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$miniHeader=this.query(".art-mini-header"),this.$miniTitle=this.query(".art-mini-title"),this.$miniClose=this.query(".art-mini-close"),this.$contextmenu=this.query(".art-contextmenus"),r&&(xt(this.$settingInner,"art-backdrop-filter"),xt(this.$info,"art-backdrop-filter"),xt(this.$contextmenu,"art-backdrop-filter")),this.art.isMobile&&xt(this.$container,"art-mobile")}},{key:"mobile",value:function(){this.$container.innerHTML='<div class="art-video-player"><video class="art-video"></video></div>',this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video")}},{key:"destroy",value:function(t){t?this.$container.innerHTML="":xt(this.$player,"art-destroy")}}]),t}(),xe={"Video info":"统计信息",Close:"关闭","Light Off":"关灯","Light On":"开灯","Video load failed":"加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音",Flip:"翻转",Rotate:"旋转",Horizontal:"水平",Vertical:"垂直",Reconnect:"重新连接","Hide subtitle":"隐藏字幕","Show subtitle":"显示字幕","Hide danmu":"隐藏弹幕","Show danmu":"显示弹幕","Show setting":"显示设置","Hide setting":"隐藏设置",Screenshot:"截图","Play speed":"播放速度","Aspect ratio":"画面比例",Default:"默认",Normal:"正常",Open:"打开","Switch video":"切换","Switch subtitle":"切换字幕",Fullscreen:"全屏","Exit fullscreen":"退出全屏","Web fullscreen":"网页全屏","Exit web fullscreen":"退出网页全屏","Mini player":"迷你播放器","PIP mode":"画中画模式","Exit PIP mode":"退出画中画模式","PIP not supported":"不支持画中画模式","Local Subtitle":"本地字幕","Local Video":"本地视频","Subtitle offset time":"字幕偏移时间","No subtitles found":"未发现字幕"},Oe={"Video info":"統計訊息",Close:"關閉","Light Off":"關燈","Light On":"開燈","Video load failed":"載入失敗",Volume:"音量",Play:"播放",Pause:"暫停",Rate:"速度",Mute:"靜音",Flip:"翻轉",Rotate:"旋轉",Horizontal:"水平",Vertical:"垂直",Reconnect:"重新連接","Hide subtitle":"隱藏字幕","Show subtitle":"顯示字幕","Hide danmu":"隱藏彈幕","Show danmu":"顯示彈幕","Show setting":"顯示设置","Hide setting":"隱藏设置",Screenshot:"截圖","Play speed":"播放速度","Aspect ratio":"畫面比例",Default:"默認",Normal:"正常",Open:"打開","Switch video":"切換","Switch subtitle":"切換字幕",Fullscreen:"全屏","Exit fullscreen":"退出全屏","Web fullscreen":"網頁全屏","Exit web fullscreen":"退出網頁全屏","Mini player":"迷你播放器","PIP mode":"畫中畫模式","Exit PIP mode":"退出畫中畫模式","PIP not supported":"不支持畫中畫模式","Local Subtitle":"本地字幕","Local Video":"本地視頻","Subtitle offset time":"字幕偏移時間","No subtitles found":"未發現字幕"},ke=function(){function t(e){i(this,t),this.art=e,this.languages={"zh-cn":xe,"zh-tw":Oe},this.init()}return c(t,[{key:"init",value:function(){var t=this.art.option.lang.toLowerCase();this.language=this.languages[t]||{}}},{key:"get",value:function(t){return this.language[t]||t}},{key:"update",value:function(t){this.languages=te(this.languages,t),this.init()}}]),t}();var je=n((function(t){!function(){var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},r=t.exports,n=function(){for(var t,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,o=r.length,i={};n<o;n++)if((t=r[n])&&t[1]in e){for(n=0;n<t.length;n++)i[r[0][n]]=t[n];return i}return!1}(),o={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(t){return new Promise(function(r,o){var i=function(){this.off("change",i),r()}.bind(this);this.on("change",i);var a=(t=t||e.documentElement)[n.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}.bind(this))},exit:function(){return new Promise(function(t,r){if(this.isFullscreen){var o=function(){this.off("change",o),t()}.bind(this);this.on("change",o);var i=e[n.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,r){var n=o[t];n&&e.addEventListener(n,r,!1)},off:function(t,r){var n=o[t];n&&e.removeEventListener(n,r,!1)},raw:n};n?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(e[n.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(e[n.fullscreenEnabled])}}}),r?t.exports=i:window.screenfull=i):r?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}()}));je.isEnabled;function Pe(t,e){var r=t.i18n,n=t.notice,o=t.template.$video;document.pictureInPictureEnabled?function(t,e){var r=t.template.$video,n=t.events.proxy,o=t.notice;r.disablePictureInPicture=!1,Zt(e,"pip",{get:function(){return document.pictureInPictureElement},set:function(t){t?r.requestPictureInPicture().catch((function(t){throw o.show=t,t})):document.exitPictureInPicture().catch((function(t){throw o.show=t,t}))}}),n(r,"enterpictureinpicture",(function(){t.emit("pip",!0)})),n(r,"leavepictureinpicture",(function(){t.emit("pip")}))}(t,e):o.webkitSupportsPresentationMode?function(t,e){var r=t.template.$video;r.webkitSetPresentationMode("inline"),Zt(e,"pip",{get:function(){return"picture-in-picture"===r.webkitPresentationMode},set:function(e){e?(r.webkitSetPresentationMode("picture-in-picture"),t.emit("pip",!0)):(r.webkitSetPresentationMode("inline"),t.emit("pip"))}})}(t,e):Zt(e,"pip",{get:function(){return!1},set:function(){n.show=r.get("PIP not supported")}}),Zt(e,"pipToggle",{set:function(t){t&&(e.pip=!e.pip)}})}var Se=function t(e){var r;i(this,t),function(t,e){var r=t.option,n=r.type,o=r.customType,i=t.template.$video;Zt(e,"url",{get:function(){return i.src},set:function(e){var r=n||Wt(e),a=o[r];r&&a?ee().then((function(){t.loading.show=!0;var n=a.call(t,i,e,t);Zt(t,r,{value:n})})):(i.src=e,t.option.url=e,t.emit("url",e))}})}(e,this),function(t,e){var r=t.option,n=t.events.proxy,o=t.template,i=o.$player,a=o.$video,c=t.i18n,l=t.notice,s=0;n(a,"click",(function(){e.toggle=!0})),be.events.forEach((function(e){n(a,e,(function(e){t.emit("video:".concat(e.type),e)}))})),t.on("video:canplay",(function(){s=0,t.loading.show=!1})),t.once("video:canplay",(function(){t.loading.show=!1,t.controls.show=!0,t.mask.show=!0,t.emit("ready")})),t.on("video:ended",(function(){r.loop?(e.seek=0,e.play=!0,t.controls.show=!1,t.mask.show=!1):(t.controls.show=!0,t.mask.show=!0)})),t.on("video:error",(function(){s<5?ee(1e3).then((function(){s+=1,e.url=r.url,l.show="".concat(c.get("Reconnect"),": ").concat(s)})):(t.loading.show=!1,t.controls.show=!1,xt(i,"art-error"),ee(1e3).then((function(){l.show=c.get("Video load failed"),t.destroy(!1)})))})),t.once("video:loadedmetadata",(function(){e.autoSize=r.autoSize,t.isMobile&&(t.loading.show=!1,t.controls.show=!0,t.mask.show=!0,t.emit("ready"))})),t.on("video:loadstart",(function(){t.loading.show=!0})),t.on("video:pause",(function(){t.controls.show=!0,t.mask.show=!0})),t.on("video:play",(function(){t.mask.show=!1})),t.on("video:playing",(function(){t.mask.show=!1})),t.on("video:seeked",(function(){t.loading.show=!1})),t.on("video:seeking",(function(){t.loading.show=!0})),t.on("video:timeupdate",(function(){t.mask.show=!1})),t.on("video:waiting",(function(){t.loading.show=!0}))}(e,this),function(t,e){var r=t.option,n=t.storage,o=t.template.$video;Object.keys(r.moreVideoAttr).forEach((function(t){o[t]=r.moreVideoAttr[t]})),r.muted&&(o.muted=r.muted),r.volume&&(o.volume=oe(r.volume,0,1));var i=n.get("volume");i&&(o.volume=oe(i,0,1)),r.poster&&(o.poster=r.poster),r.autoplay&&(o.autoplay=r.autoplay),o.controls=!1,e.url=r.url}(e,this),function(t,e){var r,n=["mini","pip","fullscreen","fullscreenWeb","fullscreenRotate"];(r=n).forEach((function(n){t.on(n,(function(){e[n]&&r.filter((function(t){return t!==n})).forEach((function(t){e[t]&&(e[t]=!1)}))}))})),Zt(e,"normalSize",{get:function(){return n.every((function(t){return!e[t]}))}})}(e,this),function(t,e){var r=t.i18n,n=t.notice,o=t.constructor.instances,i=t.option.mutex,a=t.template.$video;Zt(e,"play",{set:function(c){if(c){var l=a.play();l.then&&l.then().catch((function(t){throw n.show=t,t})),i&&o.filter((function(e){return e!==t})).forEach((function(t){t.player.pause=!0})),n.show=r.get("Play"),t.emit("play")}else e.pause=!0}})}(e,this),function(t,e){var r=t.template.$video,n=t.i18n,o=t.notice;Zt(e,"pause",{get:function(){return r.paused},set:function(i){i?(r.pause(),o.show=n.get("Pause"),t.emit("pause")):e.play=!0}})}(e,this),Zt(r=this,"toggle",{set:function(t){t&&(r.playing?r.pause=!0:r.play=!0)}}),function(t,e){var r=t.notice;Zt(e,"seek",{set:function(n){e.currentTime=n,t.emit("seek",e.currentTime),e.duration&&(r.show="".concat(ie(e.currentTime)," / ").concat(ie(e.duration)))}}),Zt(e,"forward",{set:function(t){e.seek=e.currentTime+t}}),Zt(e,"backward",{set:function(t){e.seek=e.currentTime-t}})}(e,this),function(t,e){var r=t.template.$video,n=t.i18n,o=t.notice,i=t.storage;Zt(e,"volume",{get:function(){return r.volume||0},set:function(e){r.volume=oe(e,0,1),o.show="".concat(n.get("Volume"),": ").concat(parseInt(100*r.volume,10)),0!==r.volume&&i.set("volume",r.volume),t.emit("volume",r.volume)}}),Zt(e,"muted",{get:function(){return r.muted},set:function(e){r.muted=e,t.emit("volume",r.volume)}})}(e,this),function(t,e){var r=t.template.$video;Zt(e,"currentTime",{get:function(){return r.currentTime||0},set:function(t){r.currentTime=oe(t,0,e.duration||1/0)}})}(e,this),function(t,e){Zt(e,"duration",{get:function(){return t.template.$video.duration||1/0}})}(e,this),function(t,e){var r=t.i18n,n=t.notice;function o(o,i,a){if(o!==e.url){URL.revokeObjectURL(e.url);var c=e.playing;e.url=o,t.once("video:canplay",(function(){e.playbackRate=!1,e.aspectRatio=!1,e.flip="normal",e.autoSize=!0,e.currentTime=a,c&&(e.play=!0)})),i&&(n.show="".concat(r.get("Switch video"),": ").concat(i)),t.emit("switch",o)}}Zt(e,"switchQuality",{value:function(t,r){return o(t,r,e.currentTime)}}),Zt(e,"switchUrl",{value:function(t,e){return o(t,e,0)}})}(e,this),function(t,e){var r=t.template,n=r.$video,o=r.$player,i=t.i18n,a=t.notice;Zt(e,"playbackRate",{get:function(){return o.dataset.playbackRate},set:function(r){if(r){if(r===o.dataset.playbackRate)return;var c=[.5,.75,1,1.25,1.5,1.75,2];qt(c.includes(r),"'playbackRate' only accept ".concat(c.toString()," as parameters")),n.playbackRate=r,o.dataset.playbackRate=r,a.show="".concat(i.get("Rate"),": ").concat(1===r?i.get("Normal"):"".concat(r,"x")),t.emit("playbackRate",r)}else e.playbackRate&&(e.playbackRate=1,delete o.dataset.playbackRate,t.emit("playbackRate"))}}),Zt(e,"playbackRateReset",{set:function(t){if(t){var r=o.dataset.playbackRate;r&&(e.playbackRate=Number(r))}}})}(e,this),function(t,e){var r=t.template,n=r.$video,o=r.$player,i=t.i18n,a=t.notice;Zt(e,"aspectRatio",{get:function(){return o.dataset.aspectRatio||""},set:function(e){e||(e="default");var r=["default","4:3","16:9"];if(qt(r.includes(e),"'aspectRatio' only accept ".concat(r.toString()," as parameters")),"default"===e)Pt(n,"width",null),Pt(n,"height",null),Pt(n,"padding",null),delete o.dataset.aspectRatio;else{var c=e.split(":"),l=n.videoWidth,s=n.videoHeight,u=o.clientWidth,f=o.clientHeight,p=l/s,d=c[0]/c[1];if(p>d){var y=d*s/l;Pt(n,"width","".concat(100*y,"%")),Pt(n,"height","100%"),Pt(n,"padding","0 ".concat((u-u*y)/2,"px"))}else{var h=l/d/s;Pt(n,"width","100%"),Pt(n,"height","".concat(100*h,"%")),Pt(n,"padding","".concat((f-f*h)/2,"px 0"))}o.dataset.aspectRatio=e}a.show="".concat(i.get("Aspect ratio"),": ").concat("default"===e?i.get("Default"):e),t.emit("aspectRatio",e)}}),Zt(e,"aspectRatioReset",{set:function(t){if(t&&e.aspectRatio){var r=e.aspectRatio;e.aspectRatio=r}}})}(e,this),function(t,e){var r=t.option,n=t.notice,o=t.template.$video,i=document.createElement("canvas");Zt(e,"getDataURL",{value:function(){return new Promise((function(t,e){try{i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0),t(i.toDataURL("image/png"))}catch(t){n.show=t,e(t)}}))}}),Zt(e,"getBlobUrl",{value:function(){return new Promise((function(t,e){try{i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0),i.toBlob((function(e){t(URL.createObjectURL(e))}))}catch(t){n.show=t,e(t)}}))}}),Zt(e,"screenshot",{value:function(){e.getDataURL().then((function(e){Vt(e,"".concat(r.title||"artplayer","_").concat(ie(o.currentTime),".png")),t.emit("screenshot",e)}))}})}(e,this),function(t,e){var r=t.template.$player;Zt(e,"fullscreen",{get:function(){return je.isFullscreen},set:function(n){n?je.request(r).then((function(){xt(r,"art-fullscreen"),e.aspectRatioReset=!0,t.emit("resize"),t.emit("fullscreen",!0)})):je.exit().then((function(){Ot(r,"art-fullscreen"),e.aspectRatioReset=!0,e.autoSize=t.option.autoSize,t.emit("resize"),t.emit("fullscreen")}))}}),Zt(e,"fullscreenToggle",{set:function(t){t&&(e.fullscreen=!e.fullscreen)}})}(e,this),function(t,e){var r=t.template.$player;Zt(e,"fullscreenWeb",{get:function(){return kt(r,"art-fullscreen-web")},set:function(n){n?(xt(r,"art-fullscreen-web"),e.aspectRatioReset=!0,t.emit("resize"),t.emit("fullscreenWeb",!0)):(Ot(r,"art-fullscreen-web"),e.aspectRatioReset=!0,e.autoSize=t.option.autoSize,t.emit("resize"),t.emit("fullscreenWeb"))}}),Zt(e,"fullscreenWebToggle",{set:function(t){t&&(e.fullscreenWeb=!e.fullscreenWeb)}})}(e,this),function(t,e){var r=t.template,n=r.$container,o=r.$player;Zt(e,"fullscreenRotate",{get:function(){return kt(n,"art-fullscreen-rotate")},set:function(r){if(r){xt(n,"art-fullscreen-rotate"),e.autoSize=!0;var i=document.body,a=i.clientHeight,c=i.clientWidth,l=o.clientHeight,s=o.clientWidth;if(c/a<s/l){var u=Math.min(a/s,c/l).toFixed(2);Pt(o,"transform","rotate(90deg) scale(".concat(u,",").concat(u,")")),t.emit("resize"),t.emit("fullscreenRotate",!0)}}else Ot(n,"art-fullscreen-rotate"),e.autoSize=t.option.autoSize,Pt(o,"transform",null),t.emit("resize"),t.emit("fullscreenRotate")}}),Zt(e,"fullscreenRotateToggle",{set:function(t){t&&(e.fullscreenRotate=!e.fullscreenRotate)}})}(e,this),Pe(e,this),function(t,e){var r=t.template.$video;Zt(e,"loaded",{get:function(){return e.loadedTime/r.duration}}),Zt(e,"loadedTime",{get:function(){return r.buffered.length?r.buffered.end(r.buffered.length-1):0}})}(e,this),function(t,e){Zt(e,"played",{get:function(){return e.currentTime/e.duration}})}(0,this),function(t,e){var r=t.template.$video;Zt(e,"playing",{get:function(){return!!(r.currentTime>0&&!r.paused&&!r.ended&&r.readyState>2)}})}(e,this),function(t,e){var r=t.template,n=r.$container,o=r.$player,i=r.$video;Zt(e,"autoSize",{get:function(){return kt(n,"art-auto-size")},set:function(r){if(r){var a=i.videoWidth,c=i.videoHeight,l=n.getBoundingClientRect(),s=l.width,u=l.height,f=a/c,p=s/u;if(xt(n,"art-auto-size"),p>f)Pt(o,"width","".concat(u*f/s*100,"%")),Pt(o,"height","100%");else{var d=s/f/u*100;Pt(o,"width","100%"),Pt(o,"height","".concat(d,"%"))}t.emit("autoSize",{width:e.width,height:e.height})}else Ot(n,"art-auto-size"),Pt(o,"width",null),Pt(o,"height",null),t.emit("autoSize")}})}(e,this),function(t,e){Zt(e,"rect",{get:function(){return t.template.$player.getBoundingClientRect()}}),["bottom","height","left","right","top","width"].forEach((function(t){Zt(e,t,{get:function(){return e.rect[t]}})})),Zt(e,"x",{get:function(){return e.left+window.pageXOffset}}),Zt(e,"y",{get:function(){return e.top+window.pageYOffset}})}(e,this),function(t,e){var r=t.template.$player,n=t.i18n,o=t.notice;Zt(e,"flip",{get:function(){return r.dataset.flip},set:function(i){i||(i="normal");var a=["normal","horizontal","vertical"];qt(a.includes(i),"'flip' only accept ".concat(a.toString()," as parameters")),"normal"===i?delete r.dataset.flip:(e.rotate=!1,r.dataset.flip=i);var c=i.replace(i[0],i[0].toUpperCase());o.show="".concat(n.get("Flip"),": ").concat(n.get(c)),t.emit("flip",i)}}),Zt(e,"flipReset",{set:function(t){if(t&&e.flip){var r=e.flip;e.flip=r}}})}(e,this),function(t,e){var r=t.template.$undercover;Zt(e,"light",{get:function(){return"none"!==Rt(r,"display",!1)},set:function(e){Pt(r,"display",e?"block":"none"),t.emit("light",e)}})}(e,this),function(t,e){var r=t.i18n,n=t.option,o=t.storage,i=t.events.proxy,a=t.template,c=a.$player,l=a.$miniClose,s=a.$miniTitle,u=a.$miniHeader,f="",p=!1,d=0,y=0,h=0,v=0;i(u,"mousedown",(function(t){p=!0,d=t.pageX,y=t.pageY,h=e.left,v=e.top})),i(document,"mousemove",(function(t){if(p){xt(c,"art-is-dragging");var e=v+t.pageY-y,r=h+t.pageX-d;Pt(c,"top","".concat(e,"px")),Pt(c,"left","".concat(r,"px")),o.set("top",e),o.set("left",r)}})),i(document,"mouseup",(function(){p=!1,Ot(c,"art-is-dragging")})),i(l,"click",(function(){e.mini=!1,p=!1,Ot(c,"art-is-dragging")})),jt(s,n.title||r.get("Mini player")),Zt(e,"mini",{get:function(){return kt(c,"art-mini")},set:function(r){if(r){e.autoSize=!1,f=c.style.cssText,xt(c,"art-mini");var i=o.get("top"),a=o.get("left");if(i&&a)Pt(c,"top","".concat(i,"px")),Pt(c,"left","".concat(a,"px")),Dt(u)||(o.del("top"),o.del("left"),e.mini=!0);else{var l=document.body,s=l.clientHeight-e.height-50,p=l.clientWidth-e.width-50;o.set("top",s),o.set("left",p),Pt(c,"top","".concat(s,"px")),Pt(c,"left","".concat(p,"px"))}e.aspectRatio=!1,e.playbackRate=!1,t.emit("mini",!0)}else c.style.cssText=f,Ot(c,"art-mini"),Pt(c,"top",null),Pt(c,"left",null),e.aspectRatio=!1,e.playbackRate=!1,e.autoSize=n.autoSize,t.emit("mini")}}),Zt(e,"miniToggle",{set:function(t){t&&(e.mini=!e.mini)}})}(e,this),function(t,e){var r=[];Zt(e,"loop",{get:function(){return r},set:function(n){if(Array.isArray(n)&&"number"==typeof n[0]&&"number"==typeof n[1]){var o=oe(n[0],0,Math.min(n[1],e.duration)),i=oe(n[1],o,e.duration);i-o>=1?(r=[o,i],t.emit("loop",r)):(r=[],t.emit("loop"))}else r=[],t.emit("loop")}}),t.on("video:timeupdate",(function(){r.length&&(e.currentTime<r[0]||e.currentTime>r[1])&&(e.seek=r[0])}))}(e,this),function(t,e){var r=t.template,n=r.$video,o=r.$player,i=t.i18n,a=t.notice;Zt(e,"rotate",{get:function(){return Number(o.dataset.rotate)||0},set:function(r){r||(r=0);var c=[-270,-180,-90,0,90,180,270];if(qt(c.includes(r),"'rotate' only accept ".concat(c.toString()," as parameters")),0===r)delete o.dataset.rotate,Pt(n,"transform",null);else{e.flip=!1,o.dataset.rotate=r;var l=function(){var t=n.clientWidth,e=n.clientHeight,r=o.clientWidth,i=o.clientHeight;return r/i>t/e?r/e:i/t},s=0,u=1;switch(r){case-270:s=90,u=l();break;case-180:s=180;break;case-90:s=270,u=l();break;case 90:s=90,u=l();break;case 180:s=180;break;case 270:s=270,u=l()}Pt(n,"transform","rotate(".concat(s,"deg) scale(").concat(u,")"))}a.show="".concat(i.get("Rotate"),": ").concat(r,"°"),t.emit("rotate",r)}}),Zt(e,"rotateReset",{set:function(t){if(t&&e.rotate){var r=e.rotate;e.rotate=r}}})}(e,this),Kt(e,this)};var Re=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t},Ee=n((function(t){function e(r,n,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=e=Reflect.get:t.exports=e=function(t,e,r){var n=Re(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},e(r,n,o||r)}t.exports=e})),$e=function(){function t(e){i(this,t),this.id=0,this.art=e,this.add=this.add.bind(this)}return c(t,[{key:"add",value:function(t){var e=this,r="function"==typeof t?t(this.art):t;if(this.$parent&&this.name&&!r.disable){var n=r.name||"".concat(this.name).concat(this.id);qt(!Gt(this,n),"Cannot add an existing name [".concat(n,"] to the [").concat(this.name,"]")),this.id+=1;var o=document.createElement("div");xt(o,"art-".concat(this.name)),xt(o,"art-".concat(this.name,"-").concat(n));var i=Array.from(this.$parent.children);o.dataset.index=r.index||this.id;var a=i.find((function(t){return Number(t.dataset.index)>=Number(o.dataset.index)}));a?a.insertAdjacentElement("beforebegin",o):jt(this.$parent,o),r.html&&jt(o,r.html),r.style&&St(o,r.style),r.tooltip&&Ct(o,r.tooltip),r.click&&this.art.events.proxy(o,"click",(function(t){t.preventDefault(),r.click.call(e.art,e,t)})),r.selector&&["left","right"].includes(r.position)&&this.selector(r,o),r.mounted&&r.mounted.call(this.art,o),1===o.childNodes.length&&3===o.childNodes[0].nodeType&&xt(o,"art-control-onlyText")}}},{key:"selector",value:function(t,e){var r=this,n=this.art.events,o=n.hover,i=n.proxy;xt(e,"art-control-selector");var a=document.createElement("div");xt(a,"art-selector-value"),jt(a,t.html),e.innerText="",jt(e,a);var c=t.selector.map((function(t){return'<div class="art-selector-item">'.concat(t.name,"</div>")})).join(""),l=document.createElement("div");xt(l,"art-selector-list"),jt(l,c),jt(e,l);var s=function(){l.style.left="-".concat(Rt(l,"width")/2-Rt(e,"width")/2,"px")};o(e,s),i(e,"click",(function(e){if(kt(e.target,"art-selector-item")){var n=e.target.innerText;if(a.innerText===n)return;var o=t.selector.find((function(t){return t.name===n}));a.innerText=n,s(),o&&(t.onSelect&&t.onSelect.call(r.art,o),r.art.emit("selector",o))}}))}},{key:"show",get:function(){return kt(this.art.template.$player,"art-".concat(this.name,"-show"))},set:function(t){var e=this.art.template.$player,r="art-".concat(this.name,"-show");t?xt(e,r):Ot(e,r),this.art.emit(this.name,t)}},{key:"toggle",set:function(t){t&&(this.show=!this.show)}}]),t}();function Ce(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function De(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Te(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ae(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ze(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fe(t,e){var r=t.template.$progress,n=t.player,o=r.getBoundingClientRect().left,i=oe(e.pageX-o,0,r.clientWidth),a=i/r.clientWidth*n.duration;return{second:a,time:ie(a),width:i,percentage:oe(i/r.clientWidth,0,1)}}function Ne(t){return function(e){var r=e.option,n=r.highlight,o=r.theme,i=e.events.proxy,a=e.player;return Ie(Ie({},t),{},{html:'<div class="art-control-progress-inner"><div class="art-progress-loaded"></div><div class="art-progress-played" style="background: '.concat(o,'"></div><div class="art-progress-highlight"></div><div class="art-progress-indicator" style="background: ').concat(o,'"></div><div class="art-progress-tip art-tip"></div></div>'),mounted:function(t){var r=!1,o=gt(".art-progress-loaded",t),c=gt(".art-progress-played",t),l=gt(".art-progress-highlight",t),s=gt(".art-progress-indicator",t),u=gt(".art-progress-tip",t);function f(t,e){"loaded"===t&&Pt(o,"width","".concat(100*e,"%")),"played"===t&&(Pt(c,"width","".concat(100*e,"%")),Pt(s,"left","calc(".concat(100*e,"% - ").concat(Rt(s,"width")/2,"px)")))}n.forEach((function(t){var e=oe(t.time,0,a.duration)/a.duration*100;jt(l,'<span data-text="'.concat(t.text,'" data-time="').concat(t.time,'" style="left: ').concat(e,'%"></span>'))})),f("loaded",a.loaded),e.on("video:progress",(function(){f("loaded",a.loaded)})),e.on("video:timeupdate",(function(){f("played",a.played)})),e.on("video:ended",(function(){f("played",1)})),i(t,"mousemove",(function(r){Pt(u,"display","block"),Tt(r,l)?function(r){var n=Fe(e,r).width,o=r.target.dataset.text;u.innerHTML=o;var i=u.clientWidth;n<=i/2?Pt(u,"left",0):n>t.clientWidth-i/2?Pt(u,"left","".concat(t.clientWidth-i,"px")):Pt(u,"left","".concat(n-i/2,"px"))}(r):function(r){var n=Fe(e,r),o=n.width,i=n.time;u.innerHTML=i;var a=u.clientWidth;o<=a/2?Pt(u,"left",0):o>t.clientWidth-a/2?Pt(u,"left","".concat(t.clientWidth-a,"px")):Pt(u,"left","".concat(o-a/2,"px"))}(r)})),i(t,"mouseout",(function(){Pt(u,"display","none")})),i(t,"click",(function(t){if(t.target!==s){var r=Fe(e,t),n=r.second;f("played",r.percentage),a.seek=n}})),i(s,"mousedown",(function(){r=!0})),i(document,"mousemove",(function(t){if(r){var n=Fe(e,t),o=n.second,i=n.percentage;xt(s,"art-show-indicator"),f("played",i),a.seek=o}})),i(document,"mouseup",(function(){r&&(r=!1,Ot(s,"art-show-indicator"))}))}})}}function We(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ve(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?We(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function He(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ue(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?He(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Be(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xe(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ge(t){return function(e){return Qe(Qe({},t),{},{mounted:function(t){var r=e.option.thumbnails,n=e.template.$progress,o=e.events,i=o.proxy,a=o.loadImg,c=!1,l=!1;i(n,"mousemove",(function(o){c||(c=!0,a(r.url).then((function(){l=!0}))),l&&(Pt(t,"display","block"),function(o){var i=Fe(e,o).width,a=r.url,c=r.height,l=r.width,s=r.number,u=r.column,f=n.clientWidth/s,p=Math.floor(i/f),d=Math.ceil(p/u)-1,y=p%u||u-1;Pt(t,"backgroundImage","url(".concat(a,")")),Pt(t,"height","".concat(c,"px")),Pt(t,"width","".concat(l,"px")),Pt(t,"backgroundPosition","-".concat(y*l,"px -").concat(d*c,"px")),i<=l/2?Pt(t,"left",0):i>n.clientWidth-l/2?Pt(t,"left","".concat(n.clientWidth-l,"px")):Pt(t,"left","".concat(i-l/2,"px"))}(o))})),i(n,"mouseout",(function(){Pt(t,"display","none")}))}})}}function Ke(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function er(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?er(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var ar=function(t){s(r,t);var e=ir(r);function r(t){var n;i(this,r),(n=e.call(this,t)).name="control";var o=t.option,a=t.player,c=t.template.$player;return n.delayHide=re((function(){a.playing&&n.show&&(xt(c,"art-hide-cursor"),Ot(c,"art-hover"),n.show=!1)}),3e3),n.cancelDelayHide=n.delayHide.clearTimeout,t.once("ready",(function(){n.add(Ne({name:"progress",disable:o.isLive,position:"top",index:10})),n.add(Ge({name:"thumbnails",disable:!o.thumbnails.url||o.isLive,position:"top",index:20})),n.add(function(t){return function(e){return or(or({},t),{},{mounted:function(t){var r=e.player,n=jt(t,'<span class="art-loop-point"></span>'),o=jt(t,'<span class="art-loop-point"></span>');e.on("loop",(function(e){e?(Pt(t,"display","block"),Pt(n,"left","calc(".concat(e[0]/r.duration*100,"% - ").concat(n.clientWidth,"px)")),Pt(o,"left","".concat(e[1]/r.duration*100,"%"))):Pt(t,"display","none")}))}})}}({name:"loop",disable:!1,position:"top",index:30})),n.add(function(t){return function(e){return Me(Me({},t),{},{mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.player,a=jt(t,n.play),c=jt(t,n.pause);function l(){Pt(a,"display","flex"),Pt(c,"display","none")}function s(){Pt(a,"display","none"),Pt(c,"display","flex")}Ct(a,o.get("Play")),Ct(c,o.get("Pause")),r(a,"click",(function(){i.play=!0})),r(c,"click",(function(){i.pause=!0})),i.playing?s():l(),e.on("video:playing",(function(){s()})),e.on("video:pause",(function(){l()}))}})}}({name:"playAndPause",disable:!1,position:"left",index:10})),n.add(function(t){return function(e){return Ye(Ye({},t),{},{mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.player,i=e.i18n,a=!1,c=jt(t,n.volume),l=jt(t,n.volumeClose),s=jt(t,'<div class="art-volume-panel"></div>'),u=jt(s,'<div class="art-volume-slider-handle"></div>');function f(t){var e=s.getBoundingClientRect().left;return oe(t.pageX-e-6,0,54)/48}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.7;if(o.muted||0===t)Pt(c,"display","none"),Pt(l,"display","flex"),Pt(u,"left","0");else{var e=48*t;Pt(c,"display","flex"),Pt(l,"display","none"),Pt(u,"left","".concat(e,"px"))}}Ct(c,i.get("Mute")),Pt(l,"display","none"),e.isMobile&&Pt(s,"display","none"),p(o.volume),e.on("video:volumechange",(function(){p(o.volume)})),r(c,"click",(function(){o.muted=!0})),r(l,"click",(function(){o.muted=!1})),r(s,"click",(function(t){o.muted=!1,o.volume=f(t)})),r(u,"mousedown",(function(){a=!0})),r(t,"mousemove",(function(t){a&&(o.muted=!1,o.volume=f(t))})),r(document,"mouseup",(function(){a&&(a=!1)}))}})}}({name:"volume",disable:!1,position:"left",index:20})),n.add(function(t){return function(e){return Ue(Ue({},t),{},{mounted:function(t){function r(){var r="".concat(ie(e.player.currentTime)," / ").concat(ie(e.player.duration));r!==t.innerText&&(t.innerText=r)}r(),["video:loadedmetadata","video:timeupdate","video:progress"].forEach((function(t){e.on(t,r)}))}})}}({name:"time",disable:o.isLive,position:"left",index:30})),n.add(function(t){return function(e){var r=e.option.quality,n=r.find((function(t){return t.default}))||r[0];return rr(rr({},t),{},{html:n?n.name:"",selector:r,onSelect:function(t){e.player.switchQuality(t.url,t.name)}})}}({name:"quality",disable:0===o.quality.length,position:"right",index:10})),n.add(function(t){return function(e){return tr(tr({},t),{},{tooltip:e.i18n.get("Screenshot"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.player;jt(t,n.screenshot),r(t,"click",(function(){o.screenshot()}))}})}}({name:"screenshot",disable:!o.screenshot,position:"right",index:20})),n.add(function(t){return function(e){return Ve(Ve({},t),{},{tooltip:e.i18n.get("Hide subtitle"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.subtitle;jt(t,n.subtitle),r(t,"click",(function(){i.toggle=!0})),e.on("subtitle",(function(e){Ct(t,o.get(e?"Hide subtitle":"Show subtitle"))}))}})}}({name:"subtitle",disable:!o.subtitle.url,position:"right",index:30})),n.add(function(t){return function(e){return Je(Je({},t),{},{tooltip:e.i18n.get("Show setting"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.setting;jt(t,n.setting),r(t,"click",(function(){i.toggle=!0})),e.on("setting",(function(e){Ct(t,o.get(e?"Hide setting":"Show setting"))}))}})}}({name:"setting",disable:!o.setting,position:"right",index:40})),n.add(function(t){return function(e){return _e(_e({},t),{},{tooltip:e.i18n.get("PIP mode"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.player;jt(t,n.pip),r(t,"click",(function(){i.pipToggle=!0})),e.on("pip",(function(e){Ct(t,o.get(e?"Exit PIP mode":"PIP mode"))}))}})}}({name:"pip",disable:!o.pip,position:"right",index:50})),n.add(function(t){return function(e){return Ae(Ae({},t),{},{tooltip:e.i18n.get("Web fullscreen"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.player;jt(t,n.fullscreenWeb),r(t,"click",(function(){i.fullscreenWebToggle=!0})),e.on("fullscreenWeb",(function(e){Ct(t,o.get(e?"Exit web fullscreen":"Web fullscreen"))}))}})}}({name:"fullscreenWeb",disable:!o.fullscreenWeb,position:"right",index:60})),n.add(function(t){return function(e){return De(De({},t),{},{tooltip:e.i18n.get("Fullscreen"),mounted:function(t){var r=e.events.proxy,n=e.icons,o=e.i18n,i=e.player;jt(t,n.fullscreen),r(t,"click",(function(){i.fullscreenToggle=!0})),e.on("fullscreen",(function(e){Ct(t,o.get(e?"Exit fullscreen":"Fullscreen"))}))}})}}({name:"fullscreen",disable:!o.fullscreen,position:"right",index:70})),o.controls.forEach((function(t){n.add(t)}))})),n}return c(r,[{key:"add",value:function(t){var e="function"==typeof t?t(this.art):t,n=this.art.template,o=n.$progress,i=n.$controlsLeft,a=n.$controlsRight;switch(e.position){case"top":this.$parent=o;break;case"left":this.$parent=i;break;case"right":this.$parent=a;break;default:qt(!1,"Control option.position must one of 'top', 'left', 'right'")}Ee(p(r.prototype),"add",this).call(this,e)}}]),r}($e);function cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function br(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var wr=function(t){s(r,t);var e=gr(r);function r(t){var n;i(this,r),(n=e.call(this,t)).name="contextmenu";var o=t.option,a=t.template,c=a.$player,l=a.$contextmenu,s=t.events.proxy;return n.$parent=l,t.once("ready",(function(){n.add(function(t){return function(e){var r=e.i18n,n=e.player;return lr(lr({},t),{},{html:"".concat(r.get("Play speed"),':<span data-rate="0.5">0.5</span><span data-rate="0.75">0.75</span><span data-rate="1.0" class="art-current">').concat(r.get("Normal"),'</span><span data-rate="1.25">1.25</span><span data-rate="1.5">1.5</span><span data-rate="2.0">2.0</span>'),click:function(t,e){var r=e.target.dataset.rate;r&&(n.playbackRate=Number(r),t.show=!1)},mounted:function(t){e.on("playbackRate",(function(e){var r=wt("span",t).find((function(t){return Number(t.dataset.rate)===e}));r&&$t(r,"art-current")}))}})}}({disable:!o.playbackRate,name:"playbackRate",index:10})),n.add(function(t){return function(e){var r=e.i18n,n=e.player;return ur(ur({},t),{},{html:"".concat(r.get("Aspect ratio"),':<span data-ratio="default" class="art-current">').concat(r.get("Default"),'</span><span data-ratio="4:3">4:3</span><span data-ratio="16:9">16:9</span>'),click:function(t,e){var r=e.target.dataset.ratio;r&&(n.aspectRatio=r,t.show=!1)},mounted:function(t){e.on("aspectRatio",(function(e){var r=wt("span",t).find((function(t){return t.dataset.ratio===e}));r&&$t(r,"art-current")}))}})}}({disable:!o.aspectRatio,name:"aspectRatio",index:20})),n.add(function(t){return function(e){return pr(pr({},t),{},{html:e.i18n.get("Video info"),click:function(t){e.info.show=!0,t.show=!1}})}}({disable:!1,name:"info",index:30})),n.add(function(t){return yr(yr({},t),{},{html:'<a href="https://artplayer.org" target="_blank">ArtPlayer 3.5.15</a>'})}({disable:!1,name:"version",index:40})),n.add(function(t){return function(e){var r=e.i18n,n=e.player;return vr(vr({},t),{},{html:r.get("Light Off"),click:function(t){n.light=!n.light,t.show=!1},mounted:function(t){e.on("light",(function(e){t.innerText=r.get(e?"Light On":"Light Off")}))}})}}({disable:!o.light,name:"light",index:50})),n.add(function(t){return function(e){return br(br({},t),{},{html:e.i18n.get("Close"),click:function(t){t.show=!1}})}}({disable:!1,name:"close",index:60})),o.contextmenu.forEach((function(t){n.add(t)})),s(c,"contextmenu",(function(t){t.preventDefault(),n.show=!0;var e=t.clientX,r=t.clientY,o=c.getBoundingClientRect(),i=o.height,a=o.width,s=o.left,u=o.top,f=l.getBoundingClientRect(),p=f.height,d=f.width,y=e-s,h=r-u;e+d>s+a&&(y=a-d),r+p>u+i&&(h=i-p),St(l,{top:"".concat(h,"px"),left:"".concat(y,"px")})})),s(c,"click",(function(t){Tt(t,l)||(n.show=!1)})),t.on("blur",(function(){n.show=!1}))})),n}return r}($e);function xr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Or=function(t){s(r,t);var e=xr(r);function r(t){var n;i(this,r),(n=e.call(this,t)).name="info";var o=t.template,a=o.$infoPanel,c=o.$infoClose,l=o.$video;(0,t.events.proxy)(c,"click",(function(){n.show=!1}));var s=null,u=wt("[data-video]",a);function f(){u.forEach((function(t){var e=l[t.dataset.video];t.innerText="number"==typeof e?e.toFixed(2):e})),s=setTimeout((function(){f()}),1e3)}return t.on("destroy",(function(){clearTimeout(s)})),t.on("info",(function(t){clearTimeout(s),t&&f()})),n}return r}($e);function kr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var jr=function(t){s(r,t);var e=kr(r);function r(t){var n;i(this,r),(n=e.call(this,t)).name="subtitle";var o=t.option.subtitle,a=t.template.$subtitle;return St(a,o.style),o.url&&n.init(o.url),o.bilingual&&xt(a,"art-bilingual"),n}return c(r,[{key:"style",value:function(t,e){var r=this.art.template.$subtitle;return"object"===o(t)?St(r,t):Pt(r,t,e)}},{key:"update",value:function(){var t=this.art.template.$subtitle;t.innerHTML="",this.activeCue&&(t.innerHTML=this.activeCue.text.split(/\r?\n/).map((function(t){return"<p>".concat(ae(t),"</p>")})).join(""),this.art.emit("subtitleUpdate",this.activeCue.text))}},{key:"switch",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.art,o=n.i18n,i=n.notice;return this.init(t,r).then((function(t){return r.name&&(i.show="".concat(o.get("Switch subtitle"),": ").concat(r.name)),e.art.emit("subtitleSwitch",t),t}))}},{key:"init",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.art,o=n.notice,i=n.events.proxy,a=n.option.subtitle,c=n.template,l=c.$subtitle,s=c.$video,u=c.$track;if(!u){var f=document.createElement("track");f.default=!0,f.kind="metadata",s.appendChild(f),this.art.template.$track=f,i(this.textTrack,"cuechange",this.update.bind(this))}return fetch(t).then((function(t){return t.arrayBuffer()})).then((function(n){var o=new TextDecoder(r.encoding||a.encoding).decode(n);switch(e.art.emit("subtitleLoad",t),r.ext||Wt(t)){case"srt":return Ft(It(o));case"ass":return Ft(Nt(o));case"vtt":return Ft(o);default:return t}})).then((function(t){return l.innerHTML="",e.url===t||(URL.revokeObjectURL(e.url),e.art.template.$track.src=t),t})).catch((function(t){throw o.show=t,t}))}},{key:"url",get:function(){return this.art.template.$track.src}},{key:"textTrack",get:function(){return this.art.template.$video.textTracks[0]}},{key:"activeCue",get:function(){return this.textTrack.activeCues[0]}}]),r}($e);var Pr=function(){function t(e){var r=this;i(this,t),this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.loadImg=this.loadImg.bind(this),e.whitelist.state&&e.once("ready",(function(){!function(t,e){var r=t.controls,n=t.template.$player;e.proxy(document,["click","contextmenu"],(function(e){Tt(e,n)?(t.isFocus=!0,t.emit("focus")):(t.isFocus=!1,t.emit("blur"))})),t.on("blur",(function(){r.delayHide()}))}(e,r),function(t,e){var r=t.controls,n=t.template.$player;e.hover(n,(function(){xt(n,"art-hover"),t.emit("hover",!0)}),(function(){Ot(n,"art-hover"),t.emit("hover")})),t.on("hover",(function(t){t||r.delayHide()}))}(e,r),function(t,e){var r=t.template,n=r.$player,o=r.$video,i=t.player,a=t.controls;e.proxy(n,"mousemove",(function(e){t.emit("mousemove",e)})),t.on("mousemove",(function(t){a.cancelDelayHide(),Ot(n,"art-hide-cursor"),a.show=!0,i.pip||t.target!==o||a.delayHide()}))}(e,r),function(t,e){var r=t.option,n=t.player,o=ne((function(){n.normalSize&&(n.autoSize=r.autoSize),n.aspectRatioReset=!0,t.emit("resize")}),500);e.proxy(window,["orientationchange","resize"],(function(){o()}))}(e,r),function(t,e){if(t.isMobile&&!t.option.isLive){var r=t.player,n=t.notice,o=t.template.$video,i=!1,a=0,c=0;e.proxy(o,"touchstart",(function(t){1===t.touches.length&&(i=!0,a=t.touches[0].clientX)})),e.proxy(document,"touchmove",(function(t){if(1===t.touches.length&&i){var e=oe((t.touches[0].clientX-a)/o.clientWidth,-1,1);c=oe(r.currentTime+60*e,0,r.duration),n.show="".concat(ie(c)," / ").concat(ie(r.duration))}})),e.proxy(document,"touchend",(function(){i&&c&&(r.seek=c),i=!1,a=0,c=0}))}}(e,r),function(t,e){var r=t.player,n=t.option.autoMini,o=t.template.$container,i=re((function(){t.emit("view",Dt(o))}),200);e.proxy(window,"scroll",(function(){i()})),t.on("view",(function(t){n&&(r.mini=!t)}))}(e,r)}))}return c(t,[{key:"proxy",value:function(t,e,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Array.isArray(e))return e.map((function(e){return n.proxy(t,e,r,o)}));t.addEventListener(e,r,o);var i=function(){return t.removeEventListener(e,r,o)};return this.destroyEvents.push(i),i}},{key:"hover",value:function(t,e,r){e&&this.proxy(t,"mouseenter",e),r&&this.proxy(t,"mouseleave",r)}},{key:"loadImg",value:function(t){var e=this;return new Promise((function(r,n){var o;if(t instanceof HTMLImageElement)o=t;else{if("string"!=typeof t)return n(t);(o=new Image).src=t}return o.complete?r(o):(e.proxy(o,"load",(function(){return r(o)})),e.proxy(o,"error",(function(){return n(o)})),t)}))}},{key:"destroy",value:function(){this.destroyEvents.forEach((function(t){return t()}))}}]),t}(),Sr=function(){function t(e){var r=this;i(this,t),this.keys={};var n=e.option,o=e.player,a=e.events.proxy;n.hotkey&&e.once("ready",(function(){r.add(27,(function(){o.fullscreenWeb&&(o.fullscreenWeb=!1)})),r.add(32,(function(){o.toggle=!0})),r.add(37,(function(){o.backward=5})),r.add(38,(function(){o.volume+=.1})),r.add(39,(function(){o.forward=5})),r.add(40,(function(){o.volume-=.1})),a(window,"keydown",(function(t){if(e.isFocus){var n=document.activeElement.tagName.toUpperCase(),o=document.activeElement.getAttribute("contenteditable");if("INPUT"!==n&&"TEXTAREA"!==n&&""!==o&&"true"!==o){var i=r.keys[t.keyCode];i&&(t.preventDefault(),i.forEach((function(t){return t.call(e)})),e.emit("hotkey",t))}}}))}))}return c(t,[{key:"add",value:function(t,e){this.keys[t]?this.keys[t].push(e):this.keys[t]=[e]}}]),t}();function Rr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Er=function(t){s(r,t);var e=Rr(r);function r(t){var n;return i(this,r),(n=e.call(this,t)).name="layer",n.$parent=t.template.$layer,t.once("ready",(function(){t.option.layers.forEach((function(t){n.add(t)}))})),n}return r}($e);function $r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Cr=function(t){s(r,t);var e=$r(r);function r(t){var n;return i(this,r),(n=e.call(this,t)).name="loading",jt(t.template.$loading,t.icons.loading),n}return r}($e),Dr=function(){function t(e){i(this,t),this.art=e,this.time=2e3,this.timer=null}return c(t,[{key:"show",set:function(t){var e=this.art.template,r=e.$player,n=e.$noticeInner;n.innerText=t instanceof Error?t.message.trim():t,xt(r,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout((function(){n.innerText="",Ot(r,"art-notice-show")}),this.time)}}]),t}();function Tr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Ar=function(t){s(r,t);var e=Tr(r);function r(t){var n;return i(this,r),(n=e.call(this,t)).name="mask",jt(t.template.$state,t.icons.state),n}return r}($e);function zr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var _r=function t(e){var n=this;i(this,t);var o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({loading:'<svg xmlns="http://www.w3.org/2000/svg" width="50px" height="50px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"/><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(0 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-1s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(30 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(60 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(90 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.75s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(120 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(150 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(180 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(210 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(240 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(270 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.25s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(300 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#ffffff" transform="rotate(330 50 50) translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"/></rect></svg>',state:'<svg xmlns="http://www.w3.org/2000/svg" height="60" width="60" style="filter: drop-shadow(0px 1px 1px black);" viewBox="0 0 24 24"><path d="M20,2H4C1.8,2,0,3.8,0,6v12c0,2.2,1.8,4,4,4h16c2.2,0,4-1.8,4-4V6C24,3.8,22.2,2,20,2z M15.6,12.8L10.5,16 C9.9,16.5,9,16,9,15.2V8.8C9,8,9.9,7.5,10.5,8l5.1,3.2C16.3,11.5,16.3,12.5,15.6,12.8z"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 22 22"><path d="M17.982 9.275L8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45z"></path></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 22 22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2zM15 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2z"></path></svg>',volume:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 22 22"><path d="M10.188 4.65L6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39zM14.446 3.778a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8.001 8.001 0 0 0 19 11a8.001 8.001 0 0 0-4.554-7.222z"></path><path d="M15 11a3.998 3.998 0 0 0-2-3.465v6.93A3.998 3.998 0 0 0 15 11z"></path></svg>',volumeClose:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 22 22"><path d="M15 11a3.998 3.998 0 0 0-2-3.465v2.636l1.865 1.865A4.02 4.02 0 0 0 15 11z"></path><path d="M13.583 5.583A5.998 5.998 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8.001 8.001 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805zM18.778 18.778l-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806c.215-.102.424-.214.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416zM11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172V5.04z"></path></svg>',subtitle:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 48 48"><path d="M0 0h48v48H0z" fill="none"/><path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"/></svg>',screenshot:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 50 50">\t<path d="M 19.402344 6 C 17.019531 6 14.96875 7.679688 14.5 10.011719 L 14.097656 12 L 9 12 C 6.238281 12 4 14.238281 4 17 L 4 38 C 4 40.761719 6.238281 43 9 43 L 41 43 C 43.761719 43 46 40.761719 46 38 L 46 17 C 46 14.238281 43.761719 12 41 12 L 35.902344 12 L 35.5 10.011719 C 35.03125 7.679688 32.980469 6 30.597656 6 Z M 25 17 C 30.519531 17 35 21.480469 35 27 C 35 32.519531 30.519531 37 25 37 C 19.480469 37 15 32.519531 15 27 C 15 21.480469 19.480469 17 25 17 Z M 25 19 C 20.589844 19 17 22.589844 17 27 C 17 31.410156 20.589844 35 25 35 C 29.410156 35 33 31.410156 33 27 C 33 22.589844 29.410156 19 25 19 Z "/></svg>',setting:'<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 22 22"><circle cx="11" cy="11" r="2"></circle><path d="M19.164 8.861L17.6 8.6a6.978 6.978 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1.001 1.001 0 0 0-1.272.23l-1.008 1.225a7.04 7.04 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A6.997 6.997 0 0 0 4.4 8.6l-1.564.261A.999.999 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.089 7.089 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a.999.999 0 0 0 .835-.986V9.847a.999.999 0 0 0-.836-.986zM11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"></path></svg>',fullscreen:'<svg xmlns="http://www.w3.org/2000/svg" height="36" width="36" viewBox="0 0 36 36">\t<path d="m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"></path>\t<path d="m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"></path>\t<path d="m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"></path>\t<path d="M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"></path></svg>',fullscreenWeb:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" height="36" width="36">\t<path d="m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z" fill-rule="evenodd"></path></svg>',pip:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" height="32" width="32"><path d="M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z"></path></svg>'},e.option.icons);Object.keys(o).forEach((function(t){Zt(n,t,{get:function(){var e=document.createElement("i");return xt(e,"art-icon"),xt(e,"art-icon-".concat(t)),jt(e,o[t]),e}})}))};function Lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Wr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var Ur=function(t){s(r,t);var e=Hr(r);function r(t){var n;i(this,r),(n=e.call(this,t)).name="setting";var o=t.option,a=t.template,c=a.$setting,l=a.$settingBody,s=t.events.proxy;return n.$parent=l,o.setting&&(t.once("ready",(function(){s(c,"click",(function(t){t.target===c&&(n.show=!1)})),n.add(function(t){return function(e){var r=e.i18n,n=e.player;return Mr(Mr({},t),{},{html:'<div class="art-setting-header">'.concat(r.get("Flip"),'</div><div class="art-setting-radio"><div class="art-radio-item current"><button type="button" data-value="normal">').concat(r.get("Normal"),'</button></div><div class="art-radio-item"><button type="button" data-value="horizontal">').concat(r.get("Horizontal"),'</button></div><div class="art-radio-item"><button type="button" data-value="vertical">').concat(r.get("Vertical"),"</button></div></div>"),click:function(t,e){var r=e.target.dataset.value;r&&(n.flip=r)},mounted:function(t){e.on("flip",(function(e){var r=wt("button",t).find((function(t){return t.dataset.value===e}));r&&$t(r.parentElement,"current")}))}})}}({disable:!o.flip,name:"flip"})),n.add(function(t){return function(e){var r=e.i18n,n=e.player;return Ir(Ir({},t),{},{html:'<div class="art-setting-header">'.concat(r.get("Rotate"),': <span class="art-rotate-value">0°</span></div><div class="art-setting-radio"><div class="art-radio-item"><button type="button" data-value="90">+90°</button></div><div class="art-radio-item"><button type="button" data-value="-90">-90°</button></div></div>'),click:function(t,e){var r=e.target.dataset.value;if(r){var o=n.rotate+Number(r);n.rotate=360===o||-360===o?0:o}else n.rotate=0},mounted:function(t){var r=gt(".art-rotate-value",t);e.on("rotate",(function(t){r.innerText="".concat(t||0,"°")}))}})}}({disable:!o.rotate,name:"rotate"})),n.add(function(t){return function(e){var r=e.i18n,n=e.player;return Nr(Nr({},t),{},{html:'<div class="art-setting-header">'.concat(r.get("Aspect ratio"),'</div><div class="art-setting-radio"><div class="art-radio-item current"><button type="button" data-value="default">').concat(r.get("Default"),'</button></div><div class="art-radio-item"><button type="button" data-value="4:3">4:3</button></div><div class="art-radio-item"><button type="button" data-value="16:9">16:9</button></div></div>'),click:function(t,e){var r=e.target.dataset.value;r&&(n.aspectRatio=r)},mounted:function(t){e.on("aspectRatio",(function(e){var r=wt("button",t).find((function(t){return t.dataset.value===e}));r&&$t(r.parentElement,"current")}))}})}}({disable:!o.aspectRatio,name:"aspectRatio"})),n.add(function(t){return function(e){var r=e.i18n,n=e.player,o=e.events.proxy;return Vr(Vr({},t),{},{html:'<div class="art-setting-header">'.concat(r.get("Play speed"),': <span class="art-subtitle-value">1.0</span>x</div><div class="art-setting-range"><input class="art-subtitle-range" value="1" type="range" min="0.5" max="2" step="0.25"></div>'),mounted:function(t){var r=gt(".art-setting-range input",t),i=gt(".art-subtitle-value",t);o(r,"change",(function(){var t=r.value;i.innerText=t,n.playbackRate=Number(t)})),e.on("playbackRate",(function(t){t&&r.value!==t&&(r.value=t,i.innerText=t)}))}})}}({disable:!o.playbackRate,name:"playbackRate"}))})),t.on("blur",(function(){n.show=!1}))),n}return r}($e),Br=function(){function t(){i(this,t),this.name="artplayer_settings"}return c(t,[{key:"get",value:function(t){var e=JSON.parse(localStorage.getItem(this.name))||{};return t?e[t]:e}},{key:"set",value:function(t,e){var n=Object.assign({},this.get(),r({},t,e));localStorage.setItem(this.name,JSON.stringify(n))}},{key:"del",value:function(t){var e=this.get();delete e[t],localStorage.setItem(this.name,JSON.stringify(e))}},{key:"clean",value:function(){localStorage.removeItem(this.name)}}]),t}();function Yr(t){var e=t.i18n,r=t.subtitle,n=t.events.proxy;return{title:"Subtitle",name:"subtitleOffset",index:20,html:'<div class="art-setting-header">'.concat(e.get("Subtitle offset time"),': <span class="art-subtitle-value">0</span>s</div><div class="art-setting-range"><input class="art-subtitle-range" value="0" type="range" min="-5" max="5" step="0.5"></div>'),mounted:function(e){var o=gt(".art-setting-range input",e),i=gt(".art-subtitle-value",e);n(o,"change",(function(){var e=o.value;i.innerText=e,t.plugins.subtitleOffset.offset(Number(e))})),t.on("subtitle:switch",(function(){o.value=0,i.innerText=0})),t.on("subtitleOffset",(function(t){r.update(),o.value!==t&&(o.value=t,i.innerText=t)}))}}}function Xr(t){var e=t.constructor.utils.clamp,r=t.setting,n=t.notice,o=t.template,i=t.i18n,a=t.player;r.add(Yr);var c=[];return t.on("subtitle:switch",(function(){c=[]})),{name:"subtitleOffset",offset:function(r){if(o.$track&&o.$track.track){var l=Array.from(o.$track.track.cues),s=e(r,-5,5);l.forEach((function(t,r){c[r]||(c[r]={startTime:t.startTime,endTime:t.endTime}),t.startTime=e(c[r].startTime+s,0,a.duration),t.endTime=e(c[r].endTime+s,0,a.duration)})),n.show="".concat(i.get("Subtitle offset time"),": ").concat(r,"s"),t.emit("subtitleOffset",r)}else n.show="".concat(i.get("No subtitles found")),t.emit("subtitleOffset",0)}}}function Jr(t){var e=t.events.proxy,r=t.template,n=t.player,o=t.option,i=t.setting,a=t.i18n;function c(e){if(e){var i=r.$video.canPlayType(e.type);if("maybe"===i||"probably"===i){var a=URL.createObjectURL(e);o.title=e.name,n.switchUrl(a,e.name),t.emit("localVideo",e)}else qt(!1,"Playback of this file format is not supported")}}function l(t){var r=jt(t,'<input type="file">');Pt(t,"position","relative"),St(r,{position:"absolute",width:"100%",height:"100%",left:"0",top:"0",opacity:"0"}),e(r,"change",(function(){c(r.files[0])}))}return e(r.$player,"dragover",(function(t){t.preventDefault()})),e(r.$player,"drop",(function(t){t.preventDefault(),c(t.dataTransfer.files[0])})),t.once("ready",(function(){i.add({title:"Local Video",name:"localVideo",index:30,html:'<div class="art-setting-header">'.concat(a.get("Local Video"),'</div><div class="art-setting-upload"><div class="art-upload-btn">').concat(a.get("Open"),'</div><div class="art-upload-value"></div></div>'),mounted:function(e){var r=gt(".art-upload-btn",e),n=gt(".art-upload-value",e);t.on("localVideo",(function(t){n.textContent=t.name,n.title=t.name})),l(r)}})})),{name:"localVideo",attach:l}}function Zr(t){var e=t.events.proxy,r=t.subtitle,n=t.setting,o=t.i18n;function i(n){var o=jt(n,'<input type="file">');Pt(n,"position","relative"),St(o,{position:"absolute",width:"100%",height:"100%",left:"0",top:"0",opacity:"0"}),e(o,"change",(function(){!function(e){if(e){var n=Wt(e.name);["ass","vtt","srt"].includes(n)?(r.switch(URL.createObjectURL(e),{name:e.name,ext:n}),t.emit("localSubtitle",e)):qt(!1,"Only supports subtitle files in .ass, .vtt and .srt format")}}(o.files[0])}))}return t.once("ready",(function(){n.add({title:"Local Subtitle",name:"localSubtitle",index:40,html:'<div class="art-setting-header">'.concat(o.get("Local Subtitle"),'</div><div class="art-setting-upload"><div class="art-upload-btn">').concat(o.get("Open"),'</div><div class="art-upload-value"></div></div>'),mounted:function(e){var r=gt(".art-upload-btn",e),n=gt(".art-upload-value",e);t.on("localSubtitle",(function(t){n.textContent=t.name,n.title=t.name})),i(r)}})})),{name:"localSubtitle",attach:i}}function Qr(t){var e=t.layers,r=t.player,n=t.option.theme;return e.add({name:"miniProgressBar",style:{display:"none",position:"absolute",left:0,right:0,bottom:0,height:"2px",background:n},mounted:function(e){t.on("control",(function(t){e.style.display=t?"none":"block"})),t.on("destroy",(function(){e.style.display="none"})),t.on("video:timeupdate",(function(){e.style.width="".concat(100*r.played,"%")}))}}),{name:"miniProgressBar"}}function Gr(t){var e=1e4,r=0,n=0,o=0,i=null;function a(){r=0,n=0,o=0,cancelAnimationFrame(i),i=null}function c(){i||function a(){t.isDestroy||(i=requestAnimationFrame((function(){var i=Date.now();if(o){var c=i-o;n+=c,t.player.playing||(r+=c)}o=i,t.emit("networkMonitor",r/n),n>=e&&(r=0,n=0),a()})))}()}return t.on("play",c),t.on("pause",a),{name:"networkMonitor",reset:a,start:c,sample:function(t){e=t}}}var Kr=function(){function t(e){var r=this;i(this,t),this.art=e,this.id=0;var n=e.option;n.subtitle.url&&n.subtitleOffset&&this.add(Xr),!n.isLive&&n.miniProgressBar&&this.add(Qr),n.localVideo&&this.add(Jr),n.localSubtitle&&this.add(Zr),n.networkMonitor&&this.add(Gr),e.option.plugins.forEach((function(t){r.add(t)}))}return c(t,[{key:"add",value:function(t){this.id+=1;var e=t.call(this,this.art),r=e&&e.name||t.name||"plugin".concat(this.id);return qt(!Gt(this,r),"Cannot add a plugin that already has the same name: ".concat(r)),Zt(this,r,{value:e}),this}}]),t}(),tn=function t(e){i(this,t);var r=e.option,n=e.events.proxy,o=e.template.$video;be.events.forEach((function(t){n(o,t,(function(t){e.emit("video:".concat(t.type),t)}))})),Object.keys(r.moreVideoAttr).forEach((function(t){o[t]=r.moreVideoAttr[t]})),r.muted&&(o.muted=r.muted),r.volume&&(o.volume=oe(r.volume,0,1)),r.poster&&(o.poster=r.poster),r.autoplay&&(o.autoplay=r.autoplay),o.controls=!0;var a=r.type||Wt(r.url),c=r.customType[a];a&&c?(c(o,r.url,e),e.emit("customType",a)):(o.src=r.url,e.emit("url",o.src))};function en(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}var rn=0,nn=[],on=function(t){s(r,t);var e=en(r);function r(t){var n;return i(this,r),(n=e.call(this)).option=dt(te(r.option,t),me),n.isFocus=!1,n.isDestroy=!1,n.userAgent=ht,n.isMobile=vt,n.isWechat=bt,n.whitelist=new ge(u(n)),n.template=new we(u(n)),n.events=new Pr(u(n)),n.whitelist.state?(n.storage=new Br(u(n)),n.icons=new _r(u(n)),n.i18n=new ke(u(n)),n.notice=new Dr(u(n)),n.player=new Se(u(n)),n.layers=new Er(u(n)),n.controls=new ar(u(n)),n.contextmenu=new wr(u(n)),n.subtitle=new jr(u(n)),n.info=new Or(u(n)),n.loading=new Cr(u(n)),n.hotkey=new Sr(u(n)),n.mask=new Ar(u(n)),n.setting=new Ur(u(n)),n.plugins=new Kr(u(n))):n.mobile=new tn(u(n)),rn+=1,n.id=rn,nn.push(u(n)),n}return c(r,[{key:"destroy",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.events.destroy(),this.template.destroy(t),nn.splice(nn.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}],[{key:"instances",get:function(){return nn}},{key:"version",get:function(){return"3.5.15"}},{key:"env",get:function(){return'"production"'}},{key:"config",get:function(){return be}},{key:"utils",get:function(){return ce}},{key:"scheme",get:function(){return me}},{key:"Emitter",get:function(){return yt}},{key:"validator",get:function(){return dt}},{key:"kindOf",get:function(){return dt.kindOf}},{key:"option",get:function(){return{container:"#artplayer",url:"",poster:"",title:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,rotate:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,light:!1,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,localVideo:!1,localSubtitle:!1,networkMonitor:!1,layers:[],contextmenu:[],controls:[],quality:[],highlight:[],plugins:[],whitelist:[],switcher:[],thumbnails:{url:"",number:60,width:160,height:90,column:10},subtitle:{url:"",style:{},encoding:"utf-8",bilingual:!1},moreVideoAttr:{controls:!1,preload:mt?"auto":"metadata"},icons:{},customType:{},lang:navigator.language.toLowerCase()}}}]),r}(yt);function an(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?an(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ln(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=p(t);if(e){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}return console.log("%c ArtPlayer %c 3.5.15 %c https://artplayer.org","color: #fff; background: #5f5f5f","color: #fff; background: #4bc729",""),function(t){s(n,t);var r=ln(n);function n(t){var e;return i(this,n),e=r.call(this,t),on.utils.errorHandle(t.option&&"object"===o(t.option),"The prop 'option' object cannot be missing"),e.instance=null,e.artRef=pt.createRef(),e}return c(n,[{key:"componentDidMount",value:function(){var t=this.props,e=t.option,r=t.getInstance;this.instance=new on(cn(cn({},e),{},{container:this.artRef.current})),r&&"function"==typeof r&&r(this.instance)}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.destroy&&this.instance.destroy()}},{key:"render",value:function(){var t=this.props,r=(t.option,t.getInstance,e(t,["option","getInstance"]));return pt.createElement("div",cn({ref:this.artRef},r))}}]),n}(pt.Component)}));
|