9 lines
169 KiB
JavaScript
9 lines
169 KiB
JavaScript
|
|
|
||
|
|
/*!
|
||
|
|
* artplayer.js v5.2.2
|
||
|
|
* Github: https://github.com/zhw2590582/ArtPlayer
|
||
|
|
* (c) 2017-2025 Harvey Zack
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/
|
||
|
|
!function (e, t, r, a, o) { var i = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : "undefined" != typeof global ? global : {}, n = "function" == typeof i[a] && i[a], s = n.cache || {}, l = "undefined" != typeof module && "function" == typeof module.require && module.require.bind(module); function c(t, r) { if (!s[t]) { if (!e[t]) { var o = "function" == typeof i[a] && i[a]; if (!r && o) return o(t, !0); if (n) return n(t, !0); if (l && "string" == typeof t) return l(t); var p = Error("Cannot find module '" + t + "'"); throw p.code = "MODULE_NOT_FOUND", p } d.resolve = function (r) { var a = e[t][1][r]; return null != a ? a : r }, d.cache = {}; var u = s[t] = new c.Module(t); e[t][0].call(u.exports, d, u, u.exports, this) } return s[t].exports; function d(e) { var t = d.resolve(e); return !1 === t ? {} : c(t) } } c.isParcelRequire = !0, c.Module = function (e) { this.id = e, this.bundle = c, this.exports = {} }, c.modules = e, c.cache = s, c.parent = n, c.register = function (t, r) { e[t] = [function (e, t) { t.exports = r }, {}] }, Object.defineProperty(c, "root", { get: function () { return i[a] } }), i[a] = c; for (var p = 0; p < t.length; p++)c(t[p]); if (r) { var u = c(r); "object" == typeof exports && "undefined" != typeof module ? module.exports = u : "function" == typeof define && define.amd && define(function () { return u }) } }({ "5lTcX": [function (e, t, r) { var a = e("@parcel/transformer-js/src/esmodule-helpers.js"); a.defineInteropFlag(r); var o = e("bundle-text:./style/index.less"), i = a.interopDefault(o), n = e("option-validator"), s = a.interopDefault(n), l = e("./utils/emitter"), c = a.interopDefault(l), p = e("./utils"), u = e("./scheme"), d = a.interopDefault(u), f = e("./config"), h = a.interopDefault(f), m = e("./template"), g = a.interopDefault(m), v = e("./i18n"), y = a.interopDefault(v), b = e("./player"), x = a.interopDefault(b), w = e("./control"), j = a.interopDefault(w), k = e("./contextmenu"), C = a.interopDefault(k), S = e("./info"), I = a.interopDefault(S), T = e("./subtitle"), $ = a.interopDefault(T), E = e("./events"), M = a.interopDefault(E), F = e("./hotkey"), H = a.interopDefault(F), D = e("./layer"), z = a.interopDefault(D), A = e("./loading"), R = a.interopDefault(A), O = e("./notice"), L = a.interopDefault(O), Y = e("./mask"), P = a.interopDefault(Y), V = e("./icons"), q = a.interopDefault(V), _ = e("./setting"), N = a.interopDefault(_), B = e("./storage"), W = a.interopDefault(B), U = e("./plugins"), K = a.interopDefault(U); let Z = 0, X = []; class G extends c.default { constructor(e, t) { super(), this.id = ++Z; let r = p.mergeDeep(G.option, e); if (r.container = e.container, this.option = (0, s.default)(r, d.default), this.isLock = !1, this.isReady = !1, this.isFocus = !1, this.isInput = !1, this.isRotate = !1, this.isDestroy = !1, this.template = new g.default(this), this.events = new M.default(this), this.storage = new W.default(this), this.icons = new q.default(this), this.i18n = new y.default(this), this.notice = new L.default(this), this.player = new x.default(this), this.layers = new z.default(this), this.controls = new j.default(this), this.contextmenu = new C.default(this), this.subtitle = new $.default(this), this.info = new I.default(this), this.loading = new R.default(this), this.hotkey = new H.default(this), this.mask = new P.default(this), this.setting = new N.default(this), this.plugins = new K.default(this), "function" == typeof t && this.on("ready", () => t.call(this, this)), G.DEBUG) { let e = e => console.log(`[ART.${this.id}] -> ${e}`); e("Version@" + G.version), e("Env@" + G.env), e("Build@" + G.build); for (let t = 0; t < h.default.events.length; t++)this.on("video:" + h.default.events[t], t => e("Event@" + t.type)) } X.push(this) } static get instances() { return X } static get version() { return "5.2.2" } static get env() { return "production" } static get build() { return "2025-01-19 17:32:44" } static get config() { return h.default } static get utils() { return p } static ge
|