iking-web-ui-pro 0.2.43 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +352 -354
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKSearch/ik.index.es.js +111 -109
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IkApprovalProcess/ik.index.es.js +167 -158
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +359 -361
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +44 -44
- package/dist/IkCalendar/ik.index.es.js +355 -353
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +299 -301
- package/dist/IkDescription/ik.index.umd.js +44 -44
- package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -309
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
- package/dist/IkOnlyOffice/ik.index.es.js +13 -19
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +154 -152
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPickerUser/ik.index.es.js +119 -117
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +343 -345
- package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +8803 -8741
- package/dist/IkTinymce/ik.index.umd.js +38 -38
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +333 -335
- package/dist/IkUploadFile/ik.index.umd.js +46 -46
- package/dist/index.es.js +6738 -6729
- package/dist/index.umd.js +106 -106
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IkOnlyOffice/style.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as
|
|
1
|
+
import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as Ct, useModel as fi, reactive as nr, watch as st, nextTick as hi, createTextVNode as ii, h as rr, mergeProps as sr, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Oi, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as _n, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, pushScopeId as pr, popScopeId as vr } from "vue";
|
|
2
2
|
import { paramType as ni, ikFile as mr, buildUUID as Cn, ikColor as yr, _ as Ut, ikUrl as _r } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as kr, useNamespace as wn, useZIndex as Cr, ElIcon as Ae, EVENT_CODE as Xe } from "element-plus";
|
|
4
4
|
const Pe = (a, o) => {
|
|
@@ -751,7 +751,7 @@ var xs = /* @__PURE__ */ Z({
|
|
|
751
751
|
]));
|
|
752
752
|
}
|
|
753
753
|
}), js = Vs;
|
|
754
|
-
const
|
|
754
|
+
const Dt = (a, o) => {
|
|
755
755
|
const r = a.__vccOpts || a;
|
|
756
756
|
for (const [t, e] of o)
|
|
757
757
|
r[t] = e;
|
|
@@ -1100,7 +1100,7 @@ const Fi = [
|
|
|
1100
1100
|
});
|
|
1101
1101
|
const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
1102
1102
|
__name: "IkPreviewFileDialog",
|
|
1103
|
-
props: /* @__PURE__ */
|
|
1103
|
+
props: /* @__PURE__ */ Ct({
|
|
1104
1104
|
file: {
|
|
1105
1105
|
type: Object,
|
|
1106
1106
|
default: () => []
|
|
@@ -1149,7 +1149,6 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1149
1149
|
var c, h, d, p, g, v, y;
|
|
1150
1150
|
try {
|
|
1151
1151
|
const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, w = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(), L = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
|
|
1152
|
-
debugger;
|
|
1153
1152
|
if (i.value = {
|
|
1154
1153
|
...u,
|
|
1155
1154
|
name: u[t.value.name],
|
|
@@ -1202,7 +1201,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1202
1201
|
Ee,
|
|
1203
1202
|
{ key: 0 },
|
|
1204
1203
|
[
|
|
1205
|
-
(h = i.value) != null && h.url && n.image ? (E(), pe(S(
|
|
1204
|
+
(h = i.value) != null && h.url && n.image ? (E(), pe(S(Uo), {
|
|
1206
1205
|
key: 0,
|
|
1207
1206
|
onClose: c[0] || (c[0] = (g) => l()),
|
|
1208
1207
|
ref: "previewImgRef",
|
|
@@ -1210,9 +1209,9 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1210
1209
|
teleported: "",
|
|
1211
1210
|
"z-index": 9999
|
|
1212
1211
|
}, null, 8, ["url-list"])) : ee("v-if", !0),
|
|
1213
|
-
ee('
|
|
1212
|
+
ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1214
1213
|
ee(" 文档类 "),
|
|
1215
|
-
j(S(
|
|
1214
|
+
j(S(iu), {
|
|
1216
1215
|
modelValue: n.video,
|
|
1217
1216
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
|
|
1218
1217
|
url: (p = i.value) == null ? void 0 : p.url
|
|
@@ -1235,7 +1234,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1235
1234
|
default: Q(() => {
|
|
1236
1235
|
var g;
|
|
1237
1236
|
return [
|
|
1238
|
-
j(S(
|
|
1237
|
+
j(S(To), {
|
|
1239
1238
|
"config-options": e.value,
|
|
1240
1239
|
"document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
|
|
1241
1240
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1454,7 +1453,7 @@ const to = Pe(eo), io = {
|
|
|
1454
1453
|
};
|
|
1455
1454
|
}
|
|
1456
1455
|
});
|
|
1457
|
-
const co = /* @__PURE__ */
|
|
1456
|
+
const co = /* @__PURE__ */ Dt(uo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(co), fo = /* @__PURE__ */ Z({
|
|
1458
1457
|
__name: "CloseIcon",
|
|
1459
1458
|
props: {
|
|
1460
1459
|
showBg: {
|
|
@@ -1485,9 +1484,9 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(c
|
|
|
1485
1484
|
));
|
|
1486
1485
|
}
|
|
1487
1486
|
});
|
|
1488
|
-
const ho = /* @__PURE__ */
|
|
1487
|
+
const ho = /* @__PURE__ */ Dt(fo, [["__scopeId", "data-v-da39e979"]]), go = { class: "base-header" }, po = /* @__PURE__ */ Z({
|
|
1489
1488
|
__name: "IkBaseDialog",
|
|
1490
|
-
props: /* @__PURE__ */
|
|
1489
|
+
props: /* @__PURE__ */ Ct({
|
|
1491
1490
|
title: { default: "" },
|
|
1492
1491
|
cancelText: { default: "取消" },
|
|
1493
1492
|
confirmText: { default: "确认" },
|
|
@@ -1926,40 +1925,39 @@ const bo = /* @__PURE__ */ Z({
|
|
|
1926
1925
|
/* STYLE */
|
|
1927
1926
|
));
|
|
1928
1927
|
}
|
|
1929
|
-
});
|
|
1930
|
-
const To = /* @__PURE__ */ gt(bo, [["__scopeId", "data-v-98d51ef9"]]), Eo = Pe(To);
|
|
1928
|
+
}), To = Pe(bo);
|
|
1931
1929
|
var Ni;
|
|
1932
|
-
const En = typeof window < "u",
|
|
1930
|
+
const En = typeof window < "u", Eo = (a) => typeof a == "string", So = () => {
|
|
1933
1931
|
};
|
|
1934
1932
|
En && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1935
1933
|
function Sn(a) {
|
|
1936
1934
|
return typeof a == "function" ? a() : S(a);
|
|
1937
1935
|
}
|
|
1938
|
-
function
|
|
1936
|
+
function xo(a) {
|
|
1939
1937
|
return a;
|
|
1940
1938
|
}
|
|
1941
|
-
function
|
|
1939
|
+
function Io(a) {
|
|
1942
1940
|
return ar() ? (lr(a), !0) : !1;
|
|
1943
1941
|
}
|
|
1944
|
-
function
|
|
1942
|
+
function Po(a) {
|
|
1945
1943
|
var o;
|
|
1946
1944
|
const r = Sn(a);
|
|
1947
1945
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
1948
1946
|
}
|
|
1949
|
-
const
|
|
1950
|
-
function
|
|
1947
|
+
const Lo = En ? window : void 0;
|
|
1948
|
+
function vt(...a) {
|
|
1951
1949
|
let o, r, t, e;
|
|
1952
|
-
if (
|
|
1953
|
-
return
|
|
1950
|
+
if (Eo(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Lo) : [o, r, t, e] = a, !o)
|
|
1951
|
+
return So;
|
|
1954
1952
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1955
1953
|
const i = [], n = () => {
|
|
1956
1954
|
i.forEach((c) => c()), i.length = 0;
|
|
1957
|
-
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [
|
|
1955
|
+
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [Po(o), Sn(e)], ([c, h]) => {
|
|
1958
1956
|
n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
|
|
1959
1957
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1960
1958
|
l(), n();
|
|
1961
1959
|
};
|
|
1962
|
-
return
|
|
1960
|
+
return Io(u), u;
|
|
1963
1961
|
}
|
|
1964
1962
|
const Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
|
|
1965
1963
|
Bi[Hi] = Bi[Hi] || {};
|
|
@@ -1967,15 +1965,15 @@ var Ui;
|
|
|
1967
1965
|
(function(a) {
|
|
1968
1966
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
1969
1967
|
})(Ui || (Ui = {}));
|
|
1970
|
-
var
|
|
1968
|
+
var Ao = Object.defineProperty, zi = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, Vi = (a, o, r) => o in a ? Ao(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Ro = (a, o) => {
|
|
1971
1969
|
for (var r in o || (o = {}))
|
|
1972
|
-
|
|
1970
|
+
Do.call(o, r) && Vi(a, r, o[r]);
|
|
1973
1971
|
if (zi)
|
|
1974
1972
|
for (var r of zi(o))
|
|
1975
|
-
|
|
1973
|
+
Oo.call(o, r) && Vi(a, r, o[r]);
|
|
1976
1974
|
return a;
|
|
1977
1975
|
};
|
|
1978
|
-
const
|
|
1976
|
+
const Fo = {
|
|
1979
1977
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1980
1978
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1981
1979
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -2001,10 +1999,10 @@ const Mo = {
|
|
|
2001
1999
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
2002
2000
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
2003
2001
|
};
|
|
2004
|
-
|
|
2005
|
-
linear:
|
|
2006
|
-
},
|
|
2007
|
-
const
|
|
2002
|
+
Ro({
|
|
2003
|
+
linear: xo
|
|
2004
|
+
}, Fo);
|
|
2005
|
+
const Mo = {
|
|
2008
2006
|
/**
|
|
2009
2007
|
* @description preview link list.
|
|
2010
2008
|
*/
|
|
@@ -2074,15 +2072,15 @@ const No = {
|
|
|
2074
2072
|
crossorigin: {
|
|
2075
2073
|
type: ["anonymous", "use-credentials", ""]
|
|
2076
2074
|
}
|
|
2077
|
-
},
|
|
2075
|
+
}, No = {
|
|
2078
2076
|
close: () => !0,
|
|
2079
2077
|
switch: (a) => ni.isNumber(a),
|
|
2080
2078
|
rotate: (a) => ni.isNumber(a)
|
|
2081
|
-
},
|
|
2079
|
+
}, Bo = ["src", "crossorigin"], Ho = /* @__PURE__ */ Z({
|
|
2082
2080
|
name: "ElImageViewer",
|
|
2083
2081
|
__name: "IkImageViewer",
|
|
2084
|
-
props:
|
|
2085
|
-
emits:
|
|
2082
|
+
props: Mo,
|
|
2083
|
+
emits: No,
|
|
2086
2084
|
setup(a, { expose: o, emit: r }) {
|
|
2087
2085
|
const t = (N) => Object.keys(N), e = {
|
|
2088
2086
|
CONTAIN: {
|
|
@@ -2154,7 +2152,7 @@ const No = {
|
|
|
2154
2152
|
});
|
|
2155
2153
|
});
|
|
2156
2154
|
d.run(() => {
|
|
2157
|
-
|
|
2155
|
+
vt(document, "keydown", N), vt(document, "wheel", G);
|
|
2158
2156
|
});
|
|
2159
2157
|
}
|
|
2160
2158
|
function ne() {
|
|
@@ -2176,8 +2174,8 @@ const No = {
|
|
|
2176
2174
|
offsetX: G + at.pageX - ge,
|
|
2177
2175
|
offsetY: X + at.pageY - ye
|
|
2178
2176
|
};
|
|
2179
|
-
}), Le =
|
|
2180
|
-
|
|
2177
|
+
}), Le = vt(document, "mousemove", _e);
|
|
2178
|
+
vt(document, "mouseup", () => {
|
|
2181
2179
|
Le();
|
|
2182
2180
|
}), N.preventDefault();
|
|
2183
2181
|
}
|
|
@@ -2443,7 +2441,7 @@ const No = {
|
|
|
2443
2441
|
onLoad: ue,
|
|
2444
2442
|
onError: ce,
|
|
2445
2443
|
onMousedown: we
|
|
2446
|
-
}, null, 46,
|
|
2444
|
+
}, null, 46, Bo)), [
|
|
2447
2445
|
[gr, ge === g.value]
|
|
2448
2446
|
])),
|
|
2449
2447
|
128
|
|
@@ -2464,7 +2462,7 @@ const No = {
|
|
|
2464
2462
|
})
|
|
2465
2463
|
]));
|
|
2466
2464
|
}
|
|
2467
|
-
}),
|
|
2465
|
+
}), Uo = Pe(Ho);
|
|
2468
2466
|
function ji(a, o) {
|
|
2469
2467
|
var r = Object.keys(a);
|
|
2470
2468
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2540,7 +2538,7 @@ function si(a, o) {
|
|
|
2540
2538
|
return t.__proto__ = e, t;
|
|
2541
2539
|
}, si(a, o);
|
|
2542
2540
|
}
|
|
2543
|
-
function
|
|
2541
|
+
function zo() {
|
|
2544
2542
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2545
2543
|
return !1;
|
|
2546
2544
|
if (typeof Proxy == "function")
|
|
@@ -2565,7 +2563,7 @@ function pi(a, o) {
|
|
|
2565
2563
|
return m(a);
|
|
2566
2564
|
}
|
|
2567
2565
|
function D(a) {
|
|
2568
|
-
var o =
|
|
2566
|
+
var o = zo();
|
|
2569
2567
|
return function() {
|
|
2570
2568
|
var t = O(a), e;
|
|
2571
2569
|
if (o) {
|
|
@@ -2576,14 +2574,14 @@ function D(a) {
|
|
|
2576
2574
|
return pi(this, e);
|
|
2577
2575
|
};
|
|
2578
2576
|
}
|
|
2579
|
-
function
|
|
2577
|
+
function Vo(a, o) {
|
|
2580
2578
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
2581
2579
|
;
|
|
2582
2580
|
return a;
|
|
2583
2581
|
}
|
|
2584
2582
|
function F() {
|
|
2585
2583
|
return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(o, r, t) {
|
|
2586
|
-
var e =
|
|
2584
|
+
var e = Vo(o, r);
|
|
2587
2585
|
if (e) {
|
|
2588
2586
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2589
2587
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -2591,17 +2589,17 @@ function F() {
|
|
|
2591
2589
|
}, F.apply(this, arguments);
|
|
2592
2590
|
}
|
|
2593
2591
|
function ve(a) {
|
|
2594
|
-
return
|
|
2592
|
+
return jo(a) || Wo(a) || Go(a) || $o();
|
|
2595
2593
|
}
|
|
2596
|
-
function
|
|
2594
|
+
function jo(a) {
|
|
2597
2595
|
if (Array.isArray(a))
|
|
2598
2596
|
return oi(a);
|
|
2599
2597
|
}
|
|
2600
|
-
function
|
|
2598
|
+
function Wo(a) {
|
|
2601
2599
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2602
2600
|
return Array.from(a);
|
|
2603
2601
|
}
|
|
2604
|
-
function
|
|
2602
|
+
function Go(a, o) {
|
|
2605
2603
|
if (a) {
|
|
2606
2604
|
if (typeof a == "string")
|
|
2607
2605
|
return oi(a, o);
|
|
@@ -2618,11 +2616,11 @@ function oi(a, o) {
|
|
|
2618
2616
|
t[r] = a[r];
|
|
2619
2617
|
return t;
|
|
2620
2618
|
}
|
|
2621
|
-
function
|
|
2619
|
+
function $o() {
|
|
2622
2620
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2623
2621
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2624
2622
|
}
|
|
2625
|
-
function
|
|
2623
|
+
function Ko(a, o) {
|
|
2626
2624
|
if (typeof a != "object" || a === null)
|
|
2627
2625
|
return a;
|
|
2628
2626
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2635,7 +2633,7 @@ function Yo(a, o) {
|
|
|
2635
2633
|
return (o === "string" ? String : Number)(a);
|
|
2636
2634
|
}
|
|
2637
2635
|
function xn(a) {
|
|
2638
|
-
var o =
|
|
2636
|
+
var o = Ko(a, "string");
|
|
2639
2637
|
return typeof o == "symbol" ? o : String(o);
|
|
2640
2638
|
}
|
|
2641
2639
|
var In = { exports: {} };
|
|
@@ -2751,13 +2749,13 @@ var In = { exports: {} };
|
|
|
2751
2749
|
})(In);
|
|
2752
2750
|
var Pn = In.exports;
|
|
2753
2751
|
const Ln = /* @__PURE__ */ di(Pn);
|
|
2754
|
-
var
|
|
2752
|
+
var Yo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, zt = {
|
|
2755
2753
|
info: "color: #525252; background-color: #90ee90;",
|
|
2756
2754
|
error: "color: #525252; background-color: red;",
|
|
2757
2755
|
warn: "color: #525252; background-color: yellow; "
|
|
2758
2756
|
}, Vt = "%c[xgplayer]", H = {
|
|
2759
2757
|
config: {
|
|
2760
|
-
debug:
|
|
2758
|
+
debug: Yo ? 3 : 0
|
|
2761
2759
|
},
|
|
2762
2760
|
logInfo: function(o) {
|
|
2763
2761
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2778,10 +2776,10 @@ var Xo = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2778
2776
|
}
|
|
2779
2777
|
}
|
|
2780
2778
|
};
|
|
2781
|
-
function
|
|
2779
|
+
function Xo(a) {
|
|
2782
2780
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2783
2781
|
}
|
|
2784
|
-
var
|
|
2782
|
+
var qo = /* @__PURE__ */ function() {
|
|
2785
2783
|
function a(o) {
|
|
2786
2784
|
x(this, a), this.bufferedList = o;
|
|
2787
2785
|
}
|
|
@@ -3027,7 +3025,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
3027
3025
|
a.style[t] = o[t];
|
|
3028
3026
|
});
|
|
3029
3027
|
};
|
|
3030
|
-
function
|
|
3028
|
+
function Zo(a, o) {
|
|
3031
3029
|
for (var r = 0, t = o.length; r < t; r++)
|
|
3032
3030
|
if (a.indexOf(o[r]) > -1)
|
|
3033
3031
|
return !0;
|
|
@@ -3041,7 +3039,7 @@ f.filterStyleFromText = function(a) {
|
|
|
3041
3039
|
return t.map(function(n) {
|
|
3042
3040
|
if (n) {
|
|
3043
3041
|
var s = n.split(":");
|
|
3044
|
-
s.length > 1 && (
|
|
3042
|
+
s.length > 1 && (Zo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
3045
3043
|
}
|
|
3046
3044
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3047
3045
|
a.style[n] = i[n];
|
|
@@ -3106,7 +3104,7 @@ f.getBuffered2 = function(a) {
|
|
|
3106
3104
|
}
|
|
3107
3105
|
else
|
|
3108
3106
|
e = r;
|
|
3109
|
-
return new
|
|
3107
|
+
return new qo(e);
|
|
3110
3108
|
};
|
|
3111
3109
|
f.getEventPos = function(a) {
|
|
3112
3110
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -3230,7 +3228,7 @@ function An(a) {
|
|
|
3230
3228
|
var o = ae(a);
|
|
3231
3229
|
return a !== null && (o === "object" || o === "function");
|
|
3232
3230
|
}
|
|
3233
|
-
function
|
|
3231
|
+
function Jo(a, o, r) {
|
|
3234
3232
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3235
3233
|
if (typeof a != "function")
|
|
3236
3234
|
throw new TypeError("Expected a function");
|
|
@@ -3289,21 +3287,21 @@ function Qo(a, o, r) {
|
|
|
3289
3287
|
}
|
|
3290
3288
|
return J.cancel = U, J.flush = R, J.pending = te, J;
|
|
3291
3289
|
}
|
|
3292
|
-
function
|
|
3290
|
+
function Qo(a, o, r) {
|
|
3293
3291
|
var t = !0, e = !0;
|
|
3294
3292
|
if (typeof a != "function")
|
|
3295
3293
|
throw new TypeError("Expected a function");
|
|
3296
|
-
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
3294
|
+
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jo(a, o, {
|
|
3297
3295
|
leading: t,
|
|
3298
3296
|
trailing: e,
|
|
3299
3297
|
maxWait: o
|
|
3300
3298
|
});
|
|
3301
3299
|
}
|
|
3302
|
-
function
|
|
3300
|
+
function ea() {
|
|
3303
3301
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3304
3302
|
return a === "zh-cn" && (a = "zh"), a;
|
|
3305
3303
|
}
|
|
3306
|
-
function
|
|
3304
|
+
function ta(a, o, r) {
|
|
3307
3305
|
if (a) {
|
|
3308
3306
|
var t = a.getAttribute(r);
|
|
3309
3307
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -3312,7 +3310,7 @@ function ia(a, o, r) {
|
|
|
3312
3310
|
var Gi = {
|
|
3313
3311
|
android: /(Android)\s([\d.]+)/,
|
|
3314
3312
|
ios: /(Version)\/([\d.]+)/
|
|
3315
|
-
},
|
|
3313
|
+
}, ia = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], B = {
|
|
3316
3314
|
get device() {
|
|
3317
3315
|
var a = B.os;
|
|
3318
3316
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -3375,7 +3373,7 @@ var Gi = {
|
|
|
3375
3373
|
if (this.supportResult)
|
|
3376
3374
|
return this.supportResult;
|
|
3377
3375
|
var r = document.createElement("video");
|
|
3378
|
-
return typeof r.canPlayType == "function" &&
|
|
3376
|
+
return typeof r.canPlayType == "function" && ia.map(function(t) {
|
|
3379
3377
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
3380
3378
|
}), this.supportResult = o, r = null, o;
|
|
3381
3379
|
},
|
|
@@ -3428,7 +3426,7 @@ var Gi = {
|
|
|
3428
3426
|
4: 5104,
|
|
3429
3427
|
5: 5105,
|
|
3430
3428
|
6: 5106
|
|
3431
|
-
},
|
|
3429
|
+
}, wt = /* @__PURE__ */ I(
|
|
3432
3430
|
function a(o) {
|
|
3433
3431
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3434
3432
|
errorType: "",
|
|
@@ -3470,23 +3468,23 @@ var Gi = {
|
|
|
3470
3468
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3471
3469
|
}
|
|
3472
3470
|
}
|
|
3473
|
-
), de = "play", vi = "playing", $e = "ended", ot = "pause",
|
|
3471
|
+
), de = "play", vi = "playing", $e = "ended", ot = "pause", gt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", pt = "waiting", Se = "canplay", na = "canplaythrough", Ue = "durationchange", Dn = "volumechange", Ie = "loadeddata", ra = "loadedmetadata", On = "ratechange", Rn = "progress", mi = "loadstart", Ke = "emptied", sa = "stalled", oa = "suspend", aa = "abort", la = "bufferedChange", yi = "focus", Fn = "blur", _i = "ready", Mn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Rt = "complete", bt = "replay", Ci = "destroy", Ft = "urlchange", li = "download_speed_change", Nn = "leaveplayer", Bn = "enterplayer", Hn = "loading", be = "fullscreen_change", Tt = "cssFullscreen_change", Et = "mini_state_change", wi = "definition_change", ua = "before_definition_change", ui = "after_definition_change", ca = "SEI_PARSED", fa = "retry", Be = "video_resize", ci = "pip_change", Un = "rotate", zn = "screenShot", St = "playnext", Vn = "shortcut", jn = "xglog", xt = "user_action", Mt = "reset", Wn = "source_error", Gn = "source_success", ha = "switch_subtitle", $n = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Kn = {
|
|
3474
3472
|
STATS_INFO: "stats_info",
|
|
3475
3473
|
STATS_DOWNLOAD: "stats_download",
|
|
3476
3474
|
STATS_RESET: "stats_reset"
|
|
3477
3475
|
}, Yn = "fps_stuck";
|
|
3478
|
-
const
|
|
3476
|
+
const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3479
3477
|
__proto__: null,
|
|
3480
|
-
ABORT:
|
|
3478
|
+
ABORT: aa,
|
|
3481
3479
|
AFTER_DEFINITION_CHANGE: ui,
|
|
3482
3480
|
AUTOPLAY_PREVENTED: ki,
|
|
3483
3481
|
AUTOPLAY_STARTED: Ge,
|
|
3484
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3485
|
-
BUFFER_CHANGE:
|
|
3482
|
+
BEFORE_DEFINITION_CHANGE: ua,
|
|
3483
|
+
BUFFER_CHANGE: la,
|
|
3486
3484
|
CANPLAY: Se,
|
|
3487
|
-
CANPLAY_THROUGH:
|
|
3485
|
+
CANPLAY_THROUGH: na,
|
|
3488
3486
|
COMPLETE: Rt,
|
|
3489
|
-
CSS_FULLSCREEN_CHANGE:
|
|
3487
|
+
CSS_FULLSCREEN_CHANGE: Tt,
|
|
3490
3488
|
DEFINITION_CHANGE: wi,
|
|
3491
3489
|
DESTROY: Ci,
|
|
3492
3490
|
DOWNLOAD_SPEED_CHANGE: li,
|
|
@@ -3494,54 +3492,54 @@ const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3494
3492
|
EMPTIED: Ke,
|
|
3495
3493
|
ENDED: $e,
|
|
3496
3494
|
ENTER_PLAYER: Bn,
|
|
3497
|
-
ERROR:
|
|
3495
|
+
ERROR: gt,
|
|
3498
3496
|
FPS_STUCK: Yn,
|
|
3499
3497
|
FULLSCREEN_CHANGE: be,
|
|
3500
3498
|
LEAVE_PLAYER: Nn,
|
|
3501
3499
|
LOADED_DATA: Ie,
|
|
3502
|
-
LOADED_METADATA:
|
|
3500
|
+
LOADED_METADATA: ra,
|
|
3503
3501
|
LOADING: Hn,
|
|
3504
3502
|
LOAD_START: mi,
|
|
3505
|
-
MINI_STATE_CHANGE:
|
|
3503
|
+
MINI_STATE_CHANGE: Et,
|
|
3506
3504
|
PAUSE: ot,
|
|
3507
3505
|
PIP_CHANGE: ci,
|
|
3508
3506
|
PLAY: de,
|
|
3509
3507
|
PLAYER_BLUR: Fn,
|
|
3510
3508
|
PLAYER_FOCUS: yi,
|
|
3511
3509
|
PLAYING: vi,
|
|
3512
|
-
PLAYNEXT:
|
|
3510
|
+
PLAYNEXT: St,
|
|
3513
3511
|
PROGRESS: Rn,
|
|
3514
3512
|
RATE_CHANGE: On,
|
|
3515
3513
|
READY: _i,
|
|
3516
|
-
REPLAY:
|
|
3514
|
+
REPLAY: bt,
|
|
3517
3515
|
RESET: Mt,
|
|
3518
|
-
RETRY:
|
|
3516
|
+
RETRY: fa,
|
|
3519
3517
|
ROTATE: Un,
|
|
3520
3518
|
SCREEN_SHOT: zn,
|
|
3521
3519
|
SEEKED: xe,
|
|
3522
3520
|
SEEKING: Ot,
|
|
3523
|
-
SEI_PARSED:
|
|
3521
|
+
SEI_PARSED: ca,
|
|
3524
3522
|
SHORTCUT: Vn,
|
|
3525
3523
|
SOURCE_ERROR: Wn,
|
|
3526
3524
|
SOURCE_SUCCESS: Gn,
|
|
3527
|
-
STALLED:
|
|
3525
|
+
STALLED: sa,
|
|
3528
3526
|
STATS_EVENTS: Kn,
|
|
3529
|
-
SUSPEND:
|
|
3530
|
-
SWITCH_SUBTITLE:
|
|
3527
|
+
SUSPEND: oa,
|
|
3528
|
+
SWITCH_SUBTITLE: ha,
|
|
3531
3529
|
TIME_UPDATE: he,
|
|
3532
3530
|
URL_CHANGE: Ft,
|
|
3533
3531
|
URL_NULL: Mn,
|
|
3534
|
-
USER_ACTION:
|
|
3532
|
+
USER_ACTION: xt,
|
|
3535
3533
|
VIDEO_EVENTS: $n,
|
|
3536
3534
|
VIDEO_RESIZE: Be,
|
|
3537
3535
|
VOLUME_CHANGE: Dn,
|
|
3538
|
-
WAITING:
|
|
3536
|
+
WAITING: pt,
|
|
3539
3537
|
XGLOG: jn
|
|
3540
3538
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3541
3539
|
function jt(a, o) {
|
|
3542
3540
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3543
3541
|
}
|
|
3544
|
-
function
|
|
3542
|
+
function ga(a, o) {
|
|
3545
3543
|
return function(r, t) {
|
|
3546
3544
|
var e = {
|
|
3547
3545
|
player: o,
|
|
@@ -3576,7 +3574,7 @@ function pa(a, o) {
|
|
|
3576
3574
|
jt.call(o, a, e);
|
|
3577
3575
|
};
|
|
3578
3576
|
}
|
|
3579
|
-
var
|
|
3577
|
+
var pa = /* @__PURE__ */ function(a) {
|
|
3580
3578
|
A(r, a);
|
|
3581
3579
|
var o = D(r);
|
|
3582
3580
|
function r(t) {
|
|
@@ -3620,7 +3618,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3620
3618
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3621
3619
|
this._evHandlers || (this._evHandlers = $n.map(function(n) {
|
|
3622
3620
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3623
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3621
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, ga(n, e));
|
|
3624
3622
|
})), this._evHandlers.forEach(function(n) {
|
|
3625
3623
|
var s = Object.keys(n)[0];
|
|
3626
3624
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3672,7 +3670,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3672
3670
|
l ? l.error(h, p) : n.errorHandler("error", p);
|
|
3673
3671
|
}
|
|
3674
3672
|
var g = $i[4];
|
|
3675
|
-
n.emit(Wn, new
|
|
3673
|
+
n.emit(Wn, new wt(n, {
|
|
3676
3674
|
errorType: g,
|
|
3677
3675
|
errorCode: 4,
|
|
3678
3676
|
errorMessage: "sources_load_error",
|
|
@@ -3709,7 +3707,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3709
3707
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3710
3708
|
code: 6,
|
|
3711
3709
|
message: l
|
|
3712
|
-
}), this.emit(e, new
|
|
3710
|
+
}), this.emit(e, new wt(this, {
|
|
3713
3711
|
errorType: s,
|
|
3714
3712
|
errorCode: n.code,
|
|
3715
3713
|
errorMessage: n.message || "",
|
|
@@ -3930,7 +3928,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3930
3928
|
},
|
|
3931
3929
|
set: function(e) {
|
|
3932
3930
|
if (this.media) {
|
|
3933
|
-
if (this.emit(Ft, e), this.emit(
|
|
3931
|
+
if (this.emit(Ft, e), this.emit(pt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3934
3932
|
this.onWaiting();
|
|
3935
3933
|
return;
|
|
3936
3934
|
}
|
|
@@ -3994,7 +3992,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3994
3992
|
F(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3995
3993
|
}
|
|
3996
3994
|
}]), r;
|
|
3997
|
-
}(Ln),
|
|
3995
|
+
}(Ln), va = /* @__PURE__ */ function() {
|
|
3998
3996
|
function a() {
|
|
3999
3997
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
4000
3998
|
name: "xgplayer",
|
|
@@ -4073,7 +4071,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
4073
4071
|
}
|
|
4074
4072
|
}]), a;
|
|
4075
4073
|
}(), Yi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], We = "data-xgplayerid";
|
|
4076
|
-
function
|
|
4074
|
+
function mt(a, o, r) {
|
|
4077
4075
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
4078
4076
|
e[i - 3] = arguments[i];
|
|
4079
4077
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -4083,7 +4081,7 @@ function yt(a, o, r) {
|
|
|
4083
4081
|
r.call.apply(r, [a].concat(l));
|
|
4084
4082
|
}) : r.call.apply(r, [a].concat(e)));
|
|
4085
4083
|
}
|
|
4086
|
-
function
|
|
4084
|
+
function It(a, o) {
|
|
4087
4085
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
4088
4086
|
pre: null,
|
|
4089
4087
|
next: null
|
|
@@ -4101,23 +4099,23 @@ function Pt(a, o) {
|
|
|
4101
4099
|
try {
|
|
4102
4100
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
4103
4101
|
s ? s.then ? s.then(function(l) {
|
|
4104
|
-
l !== !1 &&
|
|
4102
|
+
l !== !1 && mt.apply(void 0, [e, o, r.next].concat(ve(t)));
|
|
4105
4103
|
}).catch(function(l) {
|
|
4106
4104
|
throw l;
|
|
4107
|
-
}) :
|
|
4105
|
+
}) : mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4108
4106
|
} catch (l) {
|
|
4109
4107
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
4110
4108
|
}
|
|
4111
4109
|
else
|
|
4112
|
-
|
|
4110
|
+
mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4113
4111
|
}).bind(this);
|
|
4114
4112
|
}
|
|
4115
|
-
function
|
|
4113
|
+
function Pt(a, o) {
|
|
4116
4114
|
var r = this.__hooks;
|
|
4117
4115
|
if (r)
|
|
4118
4116
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
4119
4117
|
}
|
|
4120
|
-
function
|
|
4118
|
+
function Lt(a, o) {
|
|
4121
4119
|
var r = this.__hooks;
|
|
4122
4120
|
r && delete r[a];
|
|
4123
4121
|
}
|
|
@@ -4302,21 +4300,21 @@ var He = /* @__PURE__ */ function() {
|
|
|
4302
4300
|
}, {
|
|
4303
4301
|
key: "hook",
|
|
4304
4302
|
value: function(r, t) {
|
|
4305
|
-
return
|
|
4303
|
+
return It.call.apply(It, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4306
4304
|
}
|
|
4307
4305
|
}, {
|
|
4308
4306
|
key: "useHooks",
|
|
4309
4307
|
value: function(r, t) {
|
|
4310
4308
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4311
4309
|
i[n - 2] = arguments[n];
|
|
4312
|
-
return
|
|
4310
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4313
4311
|
}
|
|
4314
4312
|
}, {
|
|
4315
4313
|
key: "removeHooks",
|
|
4316
4314
|
value: function(r, t) {
|
|
4317
4315
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4318
4316
|
i[n - 2] = arguments[n];
|
|
4319
|
-
return
|
|
4317
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4320
4318
|
}
|
|
4321
4319
|
}, {
|
|
4322
4320
|
key: "registerPlugin",
|
|
@@ -4358,40 +4356,40 @@ var He = /* @__PURE__ */ function() {
|
|
|
4358
4356
|
return "pluginName";
|
|
4359
4357
|
}
|
|
4360
4358
|
}]), a;
|
|
4361
|
-
}(),
|
|
4359
|
+
}(), ma = 9;
|
|
4362
4360
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
4363
4361
|
var qe = Element.prototype;
|
|
4364
4362
|
qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
|
|
4365
4363
|
}
|
|
4366
|
-
function
|
|
4367
|
-
for (; a && a.nodeType !==
|
|
4364
|
+
function ya(a, o) {
|
|
4365
|
+
for (; a && a.nodeType !== ma; ) {
|
|
4368
4366
|
if (typeof a.matches == "function" && a.matches(o))
|
|
4369
4367
|
return a;
|
|
4370
4368
|
a = a.parentNode;
|
|
4371
4369
|
}
|
|
4372
4370
|
}
|
|
4373
|
-
var
|
|
4371
|
+
var _a = ya, ka = _a;
|
|
4374
4372
|
function Gt(a, o, r, t, e) {
|
|
4375
|
-
var i =
|
|
4373
|
+
var i = wa.apply(this, arguments);
|
|
4376
4374
|
return a.addEventListener(r, i, e), {
|
|
4377
4375
|
destroy: function() {
|
|
4378
4376
|
a.removeEventListener(r, i, e);
|
|
4379
4377
|
}
|
|
4380
4378
|
};
|
|
4381
4379
|
}
|
|
4382
|
-
function
|
|
4380
|
+
function Ca(a, o, r, t, e) {
|
|
4383
4381
|
return typeof a.addEventListener == "function" ? Gt.apply(null, arguments) : typeof r == "function" ? Gt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
4384
4382
|
return Gt(i, o, r, t, e);
|
|
4385
4383
|
}));
|
|
4386
4384
|
}
|
|
4387
|
-
function
|
|
4385
|
+
function wa(a, o, r, t) {
|
|
4388
4386
|
return function(e) {
|
|
4389
|
-
e.delegateTarget =
|
|
4387
|
+
e.delegateTarget = ka(e.target, o), e.delegateTarget && t.call(a, e);
|
|
4390
4388
|
};
|
|
4391
4389
|
}
|
|
4392
|
-
var
|
|
4393
|
-
const Qi = /* @__PURE__ */ di(
|
|
4394
|
-
var
|
|
4390
|
+
var ba = Ca;
|
|
4391
|
+
const Qi = /* @__PURE__ */ di(ba);
|
|
4392
|
+
var Ta = {
|
|
4395
4393
|
CONTROLS: "controls",
|
|
4396
4394
|
ROOT: "root"
|
|
4397
4395
|
}, $ = {
|
|
@@ -4411,10 +4409,10 @@ var Ea = {
|
|
|
4411
4409
|
function $t(a) {
|
|
4412
4410
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4413
4411
|
}
|
|
4414
|
-
function
|
|
4412
|
+
function Ea(a, o) {
|
|
4415
4413
|
return ae(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
4416
4414
|
}
|
|
4417
|
-
function
|
|
4415
|
+
function Sa(a, o) {
|
|
4418
4416
|
return ae(a) === "object" && a.attr && ae(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
4419
4417
|
o[r] = a.attr[r];
|
|
4420
4418
|
}), o;
|
|
@@ -4437,14 +4435,14 @@ function tn(a, o) {
|
|
|
4437
4435
|
}
|
|
4438
4436
|
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (H.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
4439
4437
|
}
|
|
4440
|
-
function
|
|
4438
|
+
function xa(a, o) {
|
|
4441
4439
|
var r = o.config.icons || o.playerConfig.icons;
|
|
4442
4440
|
Object.keys(a).map(function(t) {
|
|
4443
4441
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
4444
|
-
r && r[t] && (i =
|
|
4442
|
+
r && r[t] && (i = Ea(r[t], i), n = Sa(r[t], n), s = tn(r[t], t, i, n, o.pluginName)), !s && e && (s = tn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
4445
4443
|
});
|
|
4446
4444
|
}
|
|
4447
|
-
function
|
|
4445
|
+
function Ia(a, o) {
|
|
4448
4446
|
Object.keys(a).map(function(r) {
|
|
4449
4447
|
Object.defineProperty(o.langText, r, {
|
|
4450
4448
|
get: function() {
|
|
@@ -4468,9 +4466,9 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4468
4466
|
var i = e.root, n = null;
|
|
4469
4467
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4470
4468
|
var s = this.registerIcons() || {};
|
|
4471
|
-
|
|
4469
|
+
xa(s, this), this.langText = {};
|
|
4472
4470
|
var l = this.registerLanguageTexts() || {};
|
|
4473
|
-
|
|
4471
|
+
Ia(l, this);
|
|
4474
4472
|
var u = "";
|
|
4475
4473
|
try {
|
|
4476
4474
|
u = this.render();
|
|
@@ -4739,7 +4737,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4739
4737
|
}, {
|
|
4740
4738
|
key: "ROOT_TYPES",
|
|
4741
4739
|
get: function() {
|
|
4742
|
-
return
|
|
4740
|
+
return Ta;
|
|
4743
4741
|
}
|
|
4744
4742
|
}, {
|
|
4745
4743
|
key: "POSITIONS",
|
|
@@ -4747,7 +4745,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4747
4745
|
return $;
|
|
4748
4746
|
}
|
|
4749
4747
|
}]), r;
|
|
4750
|
-
}(He),
|
|
4748
|
+
}(He), Pa = /* @__PURE__ */ function() {
|
|
4751
4749
|
function a() {
|
|
4752
4750
|
var o = this;
|
|
4753
4751
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4757,7 +4755,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4757
4755
|
o.__runHandler(r[e].target);
|
|
4758
4756
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4759
4757
|
try {
|
|
4760
|
-
this.observer = new window.ResizeObserver(
|
|
4758
|
+
this.observer = new window.ResizeObserver(Qo(this.__trigger, 100, {
|
|
4761
4759
|
trailing: !0
|
|
4762
4760
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4763
4761
|
} catch (r) {
|
|
@@ -4812,17 +4810,17 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4812
4810
|
}
|
|
4813
4811
|
}]), a;
|
|
4814
4812
|
}(), ct = null;
|
|
4815
|
-
function
|
|
4816
|
-
return ct || (ct = new
|
|
4813
|
+
function La(a, o) {
|
|
4814
|
+
return ct || (ct = new Pa()), ct.addObserver(a, o), ct;
|
|
4817
4815
|
}
|
|
4818
|
-
function
|
|
4816
|
+
function Aa(a, o) {
|
|
4819
4817
|
ct.unObserver(a, o);
|
|
4820
4818
|
}
|
|
4821
4819
|
var ie = {
|
|
4822
4820
|
pluginGroup: {},
|
|
4823
4821
|
init: function(o) {
|
|
4824
4822
|
var r = o._pluginInfoId;
|
|
4825
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4823
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && La(o.root, function() {
|
|
4826
4824
|
o.resize();
|
|
4827
4825
|
}), this.pluginGroup[r] = {
|
|
4828
4826
|
_originalOptions: o.config || {},
|
|
@@ -5008,7 +5006,7 @@ var ie = {
|
|
|
5008
5006
|
destroy: function(o) {
|
|
5009
5007
|
var r = o._pluginInfoId;
|
|
5010
5008
|
if (this.pluginGroup[r]) {
|
|
5011
|
-
|
|
5009
|
+
Aa(o.root);
|
|
5012
5010
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
5013
5011
|
var n = i[e];
|
|
5014
5012
|
this.unRegister(r, n);
|
|
@@ -5094,7 +5092,7 @@ function nn() {
|
|
|
5094
5092
|
ignores: [],
|
|
5095
5093
|
whitelist: [],
|
|
5096
5094
|
inactive: 3e3,
|
|
5097
|
-
lang:
|
|
5095
|
+
lang: ea(),
|
|
5098
5096
|
controls: !0,
|
|
5099
5097
|
marginControls: !1,
|
|
5100
5098
|
fullscreenTarget: null,
|
|
@@ -5130,7 +5128,7 @@ function nn() {
|
|
|
5130
5128
|
}
|
|
5131
5129
|
};
|
|
5132
5130
|
}
|
|
5133
|
-
var
|
|
5131
|
+
var Da = function(o, r) {
|
|
5134
5132
|
var t, e, i;
|
|
5135
5133
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5136
5134
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, p = n.i18n, g = p === void 0 ? [] : p;
|
|
@@ -5139,7 +5137,7 @@ var Oa = function(o, r) {
|
|
|
5139
5137
|
});
|
|
5140
5138
|
var v = o.config.i18n || [];
|
|
5141
5139
|
g.push.apply(g, ve(v)), o.config.i18n = g;
|
|
5142
|
-
},
|
|
5140
|
+
}, Oa = /* @__PURE__ */ function(a) {
|
|
5143
5141
|
A(r, a);
|
|
5144
5142
|
var o = D(r);
|
|
5145
5143
|
function r() {
|
|
@@ -5173,7 +5171,7 @@ var Oa = function(o, r) {
|
|
|
5173
5171
|
};
|
|
5174
5172
|
Object.keys(u).map(function(h) {
|
|
5175
5173
|
e.root.style[h] = u[h];
|
|
5176
|
-
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(
|
|
5174
|
+
}), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(Et, function(h) {
|
|
5177
5175
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
5178
5176
|
});
|
|
5179
5177
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -5300,7 +5298,7 @@ var Oa = function(o, r) {
|
|
|
5300
5298
|
};
|
|
5301
5299
|
}
|
|
5302
5300
|
}]), r;
|
|
5303
|
-
}(W),
|
|
5301
|
+
}(W), Ra = {
|
|
5304
5302
|
LANG: "en",
|
|
5305
5303
|
TEXT: {
|
|
5306
5304
|
ERROR_TYPES: {
|
|
@@ -5395,7 +5393,7 @@ function Zn() {
|
|
|
5395
5393
|
fe.textKeys[a] = a;
|
|
5396
5394
|
});
|
|
5397
5395
|
}
|
|
5398
|
-
function
|
|
5396
|
+
function Fa(a, o) {
|
|
5399
5397
|
var r = [];
|
|
5400
5398
|
if (o || (o = fe), !!o.lang) {
|
|
5401
5399
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -5418,7 +5416,7 @@ function bi(a, o) {
|
|
|
5418
5416
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Zn();
|
|
5419
5417
|
}
|
|
5420
5418
|
}
|
|
5421
|
-
function
|
|
5419
|
+
function Ma(a) {
|
|
5422
5420
|
var o, r = {
|
|
5423
5421
|
lang: {},
|
|
5424
5422
|
langKeys: [],
|
|
@@ -5427,7 +5425,7 @@ function Na(a) {
|
|
|
5427
5425
|
};
|
|
5428
5426
|
return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, ve(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
|
|
5429
5427
|
}
|
|
5430
|
-
bi(
|
|
5428
|
+
bi(Ra);
|
|
5431
5429
|
var nt = {
|
|
5432
5430
|
get textKeys() {
|
|
5433
5431
|
return fe.textKeys;
|
|
@@ -5441,9 +5439,9 @@ var nt = {
|
|
|
5441
5439
|
a[o] = fe.lang[o];
|
|
5442
5440
|
}), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
|
|
5443
5441
|
},
|
|
5444
|
-
extend:
|
|
5442
|
+
extend: Fa,
|
|
5445
5443
|
use: bi,
|
|
5446
|
-
init:
|
|
5444
|
+
init: Ma
|
|
5447
5445
|
}, V = {
|
|
5448
5446
|
INITIAL: 1,
|
|
5449
5447
|
READY: 2,
|
|
@@ -5540,7 +5538,7 @@ var nt = {
|
|
|
5540
5538
|
}
|
|
5541
5539
|
}]), r;
|
|
5542
5540
|
}(Pn.EventEmitter);
|
|
5543
|
-
function
|
|
5541
|
+
function Na(a) {
|
|
5544
5542
|
for (var o = Object.keys(le), r = 0; r < o.length; r++) {
|
|
5545
5543
|
var t = le[o[r]];
|
|
5546
5544
|
if (t.root === a)
|
|
@@ -5548,7 +5546,7 @@ function Ba(a) {
|
|
|
5548
5546
|
}
|
|
5549
5547
|
return null;
|
|
5550
5548
|
}
|
|
5551
|
-
var
|
|
5549
|
+
var Ba = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /* @__PURE__ */ function(a) {
|
|
5552
5550
|
A(r, a);
|
|
5553
5551
|
var o = D(r);
|
|
5554
5552
|
function r(t) {
|
|
@@ -5566,7 +5564,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5566
5564
|
e.resize();
|
|
5567
5565
|
}, 100);
|
|
5568
5566
|
}, C = f.getFullScreenEl();
|
|
5569
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
5567
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(xt, {
|
|
5570
5568
|
eventType: "system",
|
|
5571
5569
|
action: "switch_fullscreen",
|
|
5572
5570
|
pluginName: "player",
|
|
@@ -5578,7 +5576,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5578
5576
|
to: !1
|
|
5579
5577
|
}]
|
|
5580
5578
|
});
|
|
5581
|
-
var b =
|
|
5579
|
+
var b = ta(C, e.playerId, We);
|
|
5582
5580
|
if (v || C && (C === e._fullscreenEl || b))
|
|
5583
5581
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5584
5582
|
else if (e.fullscreen) {
|
|
@@ -5598,7 +5596,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5598
5596
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5599
5597
|
}), _(m(e), "_onWebkitendfullscreen", function(g) {
|
|
5600
5598
|
e.onFullscreenChange(g, !1);
|
|
5601
|
-
}), Xn(m(e),
|
|
5599
|
+
}), Xn(m(e), Ba), e.config = i, e._pluginInfoId = f.generateSessionId(), Xo(m(e));
|
|
5602
5600
|
var n = e.constructor.defaultPreset;
|
|
5603
5601
|
if (e.config.presets.length) {
|
|
5604
5602
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5627,7 +5625,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5627
5625
|
}, e._offsetInfo = {
|
|
5628
5626
|
currentTime: -1,
|
|
5629
5627
|
duration: 0
|
|
5630
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
5628
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new va(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5631
5629
|
isActiveLocked: !1
|
|
5632
5630
|
}, e.instManager = De;
|
|
5633
5631
|
var l = e._initDOM();
|
|
@@ -5653,13 +5651,13 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5653
5651
|
if (n && n.nodeType === 1)
|
|
5654
5652
|
this.root = n;
|
|
5655
5653
|
else
|
|
5656
|
-
return this.emit(
|
|
5654
|
+
return this.emit(gt, new wt("use", this.config.vid, {
|
|
5657
5655
|
line: 32,
|
|
5658
5656
|
handle: "Constructor",
|
|
5659
5657
|
msg: "container id can't be empty"
|
|
5660
5658
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5661
5659
|
}
|
|
5662
|
-
var s =
|
|
5660
|
+
var s = Na(this.root);
|
|
5663
5661
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(We, this.playerId), (e = De) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5664
5662
|
var l = this.constructor.XgVideoProxy;
|
|
5665
5663
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5669,7 +5667,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5669
5667
|
this.attachVideoEvents(c), this.media = c;
|
|
5670
5668
|
}
|
|
5671
5669
|
if (this.media.setAttribute(We, this.playerId), this.config.controls) {
|
|
5672
|
-
var h = this.config.controls.root || null, d = ie.register(this,
|
|
5670
|
+
var h = this.config.controls.root || null, d = ie.register(this, Oa, {
|
|
5673
5671
|
root: h
|
|
5674
5672
|
});
|
|
5675
5673
|
this.controls = d;
|
|
@@ -5777,7 +5775,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5777
5775
|
value: function() {
|
|
5778
5776
|
var e = this;
|
|
5779
5777
|
this.config.presets.forEach(function(i) {
|
|
5780
|
-
|
|
5778
|
+
Da(e, i);
|
|
5781
5779
|
});
|
|
5782
5780
|
}
|
|
5783
5781
|
}, {
|
|
@@ -6077,7 +6075,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6077
6075
|
i && i.catch && i.catch(function(n) {
|
|
6078
6076
|
console.log(n);
|
|
6079
6077
|
});
|
|
6080
|
-
}), e.emit(
|
|
6078
|
+
}), e.emit(bt), e.onPlay();
|
|
6081
6079
|
});
|
|
6082
6080
|
}
|
|
6083
6081
|
}, {
|
|
@@ -6156,7 +6154,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6156
6154
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
6157
6155
|
this.changeFullStyle(this.root, e, i);
|
|
6158
6156
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
6159
|
-
l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
6157
|
+
l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Tt, !0);
|
|
6160
6158
|
}
|
|
6161
6159
|
}, {
|
|
6162
6160
|
key: "exitCssFullscreen",
|
|
@@ -6168,7 +6166,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6168
6166
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
6169
6167
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(be, !1)) : this.removeClass(e);
|
|
6170
6168
|
}
|
|
6171
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
6169
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Tt, !1);
|
|
6172
6170
|
}
|
|
6173
6171
|
}, {
|
|
6174
6172
|
key: "getRotateFullscreen",
|
|
@@ -6333,7 +6331,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6333
6331
|
value: function(e, i, n) {
|
|
6334
6332
|
if (!(!this.media || !i || !e)) {
|
|
6335
6333
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
6336
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
6334
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(xt, q({
|
|
6337
6335
|
eventType: s,
|
|
6338
6336
|
action: i,
|
|
6339
6337
|
currentTime: this.currentTime,
|
|
@@ -6419,7 +6417,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6419
6417
|
value: function(e) {
|
|
6420
6418
|
var i = this;
|
|
6421
6419
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Te(this, "playnext", function() {
|
|
6422
|
-
i.start(), i.emit(
|
|
6420
|
+
i.start(), i.emit(St, e);
|
|
6423
6421
|
});
|
|
6424
6422
|
}
|
|
6425
6423
|
}, {
|
|
@@ -6658,17 +6656,17 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6658
6656
|
}, {
|
|
6659
6657
|
key: "hook",
|
|
6660
6658
|
value: function(e, i) {
|
|
6661
|
-
return
|
|
6659
|
+
return It.call.apply(It, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6662
6660
|
}
|
|
6663
6661
|
}, {
|
|
6664
6662
|
key: "useHooks",
|
|
6665
6663
|
value: function(e, i) {
|
|
6666
|
-
return
|
|
6664
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6667
6665
|
}
|
|
6668
6666
|
}, {
|
|
6669
6667
|
key: "removeHooks",
|
|
6670
6668
|
value: function(e, i) {
|
|
6671
|
-
return
|
|
6669
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6672
6670
|
}
|
|
6673
6671
|
}, {
|
|
6674
6672
|
key: "usePluginHooks",
|
|
@@ -6739,7 +6737,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6739
6737
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6740
6738
|
}
|
|
6741
6739
|
}]), r;
|
|
6742
|
-
}(
|
|
6740
|
+
}(pa);
|
|
6743
6741
|
_(Nt, "defaultPreset", null);
|
|
6744
6742
|
_(Nt, "XgVideoProxy", null);
|
|
6745
6743
|
Nt.instManager = Jn.getInstance();
|
|
@@ -6754,7 +6752,7 @@ var Oe = {
|
|
|
6754
6752
|
WAIT_END: "waitingEnd",
|
|
6755
6753
|
SEEK_START: "seekStart",
|
|
6756
6754
|
SEEK_END: "seekEnd"
|
|
6757
|
-
},
|
|
6755
|
+
}, Ha = /* @__PURE__ */ function(a) {
|
|
6758
6756
|
A(r, a);
|
|
6759
6757
|
var o = D(r);
|
|
6760
6758
|
function r() {
|
|
@@ -6817,7 +6815,7 @@ var Oe = {
|
|
|
6817
6815
|
e.endState("destroy");
|
|
6818
6816
|
}), this.on(Ft, function() {
|
|
6819
6817
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6820
|
-
}), this.on([vi, Se], this._onPlaying), this.on(
|
|
6818
|
+
}), this.on([vi, Se], this._onPlaying), this.on(pt, this._onWaiting), this.on(gt, this._onError), this.on(Mt, function() {
|
|
6821
6819
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6822
6820
|
});
|
|
6823
6821
|
}
|
|
@@ -6905,13 +6903,13 @@ var Oe = {
|
|
|
6905
6903
|
}
|
|
6906
6904
|
}]), r;
|
|
6907
6905
|
}(W);
|
|
6908
|
-
function
|
|
6906
|
+
function Ua() {
|
|
6909
6907
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
6910
6908
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
6911
6909
|
</svg>
|
|
6912
6910
|
`, "image/svg+xml").firstChild;
|
|
6913
6911
|
}
|
|
6914
|
-
var
|
|
6912
|
+
var za = /* @__PURE__ */ function(a) {
|
|
6915
6913
|
A(r, a);
|
|
6916
6914
|
var o = D(r);
|
|
6917
6915
|
function r() {
|
|
@@ -6921,7 +6919,7 @@ var Va = /* @__PURE__ */ function(a) {
|
|
|
6921
6919
|
key: "registerIcons",
|
|
6922
6920
|
value: function() {
|
|
6923
6921
|
return {
|
|
6924
|
-
replay:
|
|
6922
|
+
replay: Ua
|
|
6925
6923
|
};
|
|
6926
6924
|
}
|
|
6927
6925
|
}, {
|
|
@@ -6994,7 +6992,7 @@ var Va = /* @__PURE__ */ function(a) {
|
|
|
6994
6992
|
};
|
|
6995
6993
|
}
|
|
6996
6994
|
}]), r;
|
|
6997
|
-
}(W),
|
|
6995
|
+
}(W), Va = /* @__PURE__ */ function(a) {
|
|
6998
6996
|
A(r, a);
|
|
6999
6997
|
var o = D(r);
|
|
7000
6998
|
function r() {
|
|
@@ -7119,7 +7117,7 @@ function Ei() {
|
|
|
7119
7117
|
`, "image/svg+xml").firstChild;
|
|
7120
7118
|
}
|
|
7121
7119
|
var Ce = {};
|
|
7122
|
-
function
|
|
7120
|
+
function ja(a, o) {
|
|
7123
7121
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
7124
7122
|
start: null,
|
|
7125
7123
|
end: null
|
|
@@ -7137,7 +7135,7 @@ function an(a) {
|
|
|
7137
7135
|
window.clearTimeout(Ce[o].id), delete Ce[o];
|
|
7138
7136
|
});
|
|
7139
7137
|
}
|
|
7140
|
-
var
|
|
7138
|
+
var Wa = /* @__PURE__ */ function(a) {
|
|
7141
7139
|
A(r, a);
|
|
7142
7140
|
var o = D(r);
|
|
7143
7141
|
function r(t) {
|
|
@@ -7229,7 +7227,7 @@ var Ga = /* @__PURE__ */ function(a) {
|
|
|
7229
7227
|
key: "animate",
|
|
7230
7228
|
value: function(e) {
|
|
7231
7229
|
var i = this;
|
|
7232
|
-
this._animateId =
|
|
7230
|
+
this._animateId = ja("pauseplay", 400, {
|
|
7233
7231
|
start: function() {
|
|
7234
7232
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
7235
7233
|
},
|
|
@@ -7312,7 +7310,7 @@ var Ga = /* @__PURE__ */ function(a) {
|
|
|
7312
7310
|
};
|
|
7313
7311
|
}
|
|
7314
7312
|
}]), r;
|
|
7315
|
-
}(W),
|
|
7313
|
+
}(W), Ga = /* @__PURE__ */ function(a) {
|
|
7316
7314
|
A(r, a);
|
|
7317
7315
|
var o = D(r);
|
|
7318
7316
|
function r() {
|
|
@@ -7412,7 +7410,7 @@ function un(a) {
|
|
|
7412
7410
|
return r && o;
|
|
7413
7411
|
}
|
|
7414
7412
|
var Si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Qn = Si.length;
|
|
7415
|
-
function
|
|
7413
|
+
function $a() {
|
|
7416
7414
|
for (var a = {
|
|
7417
7415
|
width: 0,
|
|
7418
7416
|
height: 0,
|
|
@@ -7426,15 +7424,15 @@ function Ka() {
|
|
|
7426
7424
|
}
|
|
7427
7425
|
return a;
|
|
7428
7426
|
}
|
|
7429
|
-
function
|
|
7427
|
+
function Ka(a) {
|
|
7430
7428
|
var o = window.getComputedStyle(a);
|
|
7431
7429
|
return o;
|
|
7432
7430
|
}
|
|
7433
7431
|
function cn(a) {
|
|
7434
7432
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || ae(a) !== "object" || !a.nodeType)) {
|
|
7435
|
-
var o =
|
|
7433
|
+
var o = Ka(a);
|
|
7436
7434
|
if (o.display === "none")
|
|
7437
|
-
return
|
|
7435
|
+
return $a();
|
|
7438
7436
|
var r = {};
|
|
7439
7437
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
7440
7438
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < Qn; e++) {
|
|
@@ -7462,7 +7460,7 @@ var Xt = {
|
|
|
7462
7460
|
mousedown: ["mousemove", "mouseup"],
|
|
7463
7461
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7464
7462
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7465
|
-
},
|
|
7463
|
+
}, Ya = /* @__PURE__ */ function(a) {
|
|
7466
7464
|
A(r, a);
|
|
7467
7465
|
var o = D(r);
|
|
7468
7466
|
function r(t) {
|
|
@@ -7672,7 +7670,7 @@ var Xt = {
|
|
|
7672
7670
|
return parseInt(e, 10);
|
|
7673
7671
|
}
|
|
7674
7672
|
}]), r;
|
|
7675
|
-
}(Ln),
|
|
7673
|
+
}(Ln), Xa = /* @__PURE__ */ function(a) {
|
|
7676
7674
|
A(r, a);
|
|
7677
7675
|
var o = D(r);
|
|
7678
7676
|
function r(t) {
|
|
@@ -7728,7 +7726,7 @@ var Xt = {
|
|
|
7728
7726
|
i.controls.registerPlugin(ln, s, ln.pluginName);
|
|
7729
7727
|
}
|
|
7730
7728
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7731
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7729
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ya(this.player.root, {
|
|
7732
7730
|
handle: this.root
|
|
7733
7731
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7734
7732
|
}
|
|
@@ -7761,7 +7759,7 @@ var Xt = {
|
|
|
7761
7759
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7762
7760
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7763
7761
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7764
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7762
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(Et, !0), i.isMini = this.isMini = !0;
|
|
7765
7763
|
}
|
|
7766
7764
|
}
|
|
7767
7765
|
}, {
|
|
@@ -7773,7 +7771,7 @@ var Xt = {
|
|
|
7773
7771
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7774
7772
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7775
7773
|
s.style[l] = e.lastStyle[l];
|
|
7776
|
-
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(
|
|
7774
|
+
}), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(Et, !1), this.isMini = i.isMini = !1;
|
|
7777
7775
|
}
|
|
7778
7776
|
}, {
|
|
7779
7777
|
key: "destroy",
|
|
@@ -7822,7 +7820,7 @@ var Xt = {
|
|
|
7822
7820
|
};
|
|
7823
7821
|
}
|
|
7824
7822
|
}]), r;
|
|
7825
|
-
}(W),
|
|
7823
|
+
}(W), yt = {
|
|
7826
7824
|
mouseenter: "onMouseEnter",
|
|
7827
7825
|
mouseleave: "onMouseLeave",
|
|
7828
7826
|
mousemove: "onMouseMove"
|
|
@@ -7896,8 +7894,8 @@ var Xt = {
|
|
|
7896
7894
|
key: "initEvents",
|
|
7897
7895
|
value: function() {
|
|
7898
7896
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7899
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7900
|
-
s.addEventListener(u, e[
|
|
7897
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(yt).map(function(u) {
|
|
7898
|
+
s.addEventListener(u, e[yt[u]], !1);
|
|
7901
7899
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7902
7900
|
}
|
|
7903
7901
|
}, {
|
|
@@ -7919,8 +7917,8 @@ var Xt = {
|
|
|
7919
7917
|
key: "destroy",
|
|
7920
7918
|
value: function() {
|
|
7921
7919
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
7922
|
-
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
7923
|
-
s.removeEventListener(l, e[
|
|
7920
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(yt).map(function(l) {
|
|
7921
|
+
s.removeEventListener(l, e[yt[l]], !1);
|
|
7924
7922
|
});
|
|
7925
7923
|
}
|
|
7926
7924
|
}], [{
|
|
@@ -7942,12 +7940,12 @@ var Xt = {
|
|
|
7942
7940
|
TOUCH_MOVE: "touchmove",
|
|
7943
7941
|
TOUCH_START: "touchstart",
|
|
7944
7942
|
TOUCH_END: "touchend"
|
|
7945
|
-
},
|
|
7943
|
+
}, qa = {
|
|
7946
7944
|
start: "touchstart",
|
|
7947
7945
|
end: "touchend",
|
|
7948
7946
|
move: "touchmove",
|
|
7949
7947
|
cancel: "touchcancel"
|
|
7950
|
-
},
|
|
7948
|
+
}, Za = {
|
|
7951
7949
|
start: "mousedown",
|
|
7952
7950
|
end: "mouseup",
|
|
7953
7951
|
move: "mousemove",
|
|
@@ -7956,7 +7954,7 @@ var Xt = {
|
|
|
7956
7954
|
function hn(a) {
|
|
7957
7955
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7958
7956
|
}
|
|
7959
|
-
function
|
|
7957
|
+
function Ja() {
|
|
7960
7958
|
return {
|
|
7961
7959
|
pressDelay: 600,
|
|
7962
7960
|
dbClickDelay: 200,
|
|
@@ -7966,7 +7964,7 @@ function Qa() {
|
|
|
7966
7964
|
needPreventDefault: !0
|
|
7967
7965
|
};
|
|
7968
7966
|
}
|
|
7969
|
-
var
|
|
7967
|
+
var Qa = /* @__PURE__ */ function() {
|
|
7970
7968
|
function a(o) {
|
|
7971
7969
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7972
7970
|
eventType: "touch"
|
|
@@ -7987,9 +7985,9 @@ var el = /* @__PURE__ */ function() {
|
|
|
7987
7985
|
start: !1,
|
|
7988
7986
|
x: 0,
|
|
7989
7987
|
y: 0
|
|
7990
|
-
}, this.config =
|
|
7988
|
+
}, this.config = Ja(), Object.keys(t).map(function(e) {
|
|
7991
7989
|
r.config[e] = t[e];
|
|
7992
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7990
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Za : qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7993
7991
|
}
|
|
7994
7992
|
return I(a, [{
|
|
7995
7993
|
key: "_initEvent",
|
|
@@ -8068,7 +8066,7 @@ var el = /* @__PURE__ */ function() {
|
|
|
8068
8066
|
}
|
|
8069
8067
|
}]), a;
|
|
8070
8068
|
}();
|
|
8071
|
-
function
|
|
8069
|
+
function el() {
|
|
8072
8070
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
8073
8071
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8074
8072
|
<path opacity="0.54"
|
|
@@ -8082,7 +8080,7 @@ var Ze = {
|
|
|
8082
8080
|
SEEKING: "seeking",
|
|
8083
8081
|
PLAYBACK: "playbackrate",
|
|
8084
8082
|
LIGHT: ""
|
|
8085
|
-
}, Jt = ["videoClick", "videoDbClick"],
|
|
8083
|
+
}, Jt = ["videoClick", "videoDbClick"], tl = /* @__PURE__ */ function(a) {
|
|
8086
8084
|
A(r, a);
|
|
8087
8085
|
var o = D(r);
|
|
8088
8086
|
function r(t) {
|
|
@@ -8154,7 +8152,7 @@ var Ze = {
|
|
|
8154
8152
|
value: function() {
|
|
8155
8153
|
return {
|
|
8156
8154
|
seekTipIcon: {
|
|
8157
|
-
icon:
|
|
8155
|
+
icon: el,
|
|
8158
8156
|
class: "xg-seek-pre"
|
|
8159
8157
|
}
|
|
8160
8158
|
};
|
|
@@ -8169,7 +8167,7 @@ var Ze = {
|
|
|
8169
8167
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
8170
8168
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
8171
8169
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
8172
|
-
this.touch = new
|
|
8170
|
+
this.touch = new Qa(this.root, {
|
|
8173
8171
|
eventType: l,
|
|
8174
8172
|
needPreventDefault: !this.config.disableGesture
|
|
8175
8173
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -8511,7 +8509,7 @@ var Ze = {
|
|
|
8511
8509
|
}
|
|
8512
8510
|
}]), r;
|
|
8513
8511
|
}(W);
|
|
8514
|
-
function
|
|
8512
|
+
function il(a) {
|
|
8515
8513
|
a.preventDefault(), a.returnValue = !1;
|
|
8516
8514
|
}
|
|
8517
8515
|
function dn(a) {
|
|
@@ -8760,7 +8758,7 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8760
8758
|
isPress: n
|
|
8761
8759
|
}, this.keyCodeMap[s[l]]));
|
|
8762
8760
|
}
|
|
8763
|
-
|
|
8761
|
+
il(i), i.stopPropagation();
|
|
8764
8762
|
break;
|
|
8765
8763
|
}
|
|
8766
8764
|
}
|
|
@@ -8802,13 +8800,13 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8802
8800
|
}
|
|
8803
8801
|
}]), r;
|
|
8804
8802
|
}(He);
|
|
8805
|
-
function
|
|
8803
|
+
function nl() {
|
|
8806
8804
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8807
8805
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8808
8806
|
</svg>
|
|
8809
8807
|
`, "image/svg+xml").firstChild;
|
|
8810
8808
|
}
|
|
8811
|
-
var
|
|
8809
|
+
var rl = /* @__PURE__ */ function(a) {
|
|
8812
8810
|
A(r, a);
|
|
8813
8811
|
var o = D(r);
|
|
8814
8812
|
function r() {
|
|
@@ -8818,7 +8816,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8818
8816
|
key: "registerIcons",
|
|
8819
8817
|
value: function() {
|
|
8820
8818
|
return {
|
|
8821
|
-
loadingIcon:
|
|
8819
|
+
loadingIcon: nl
|
|
8822
8820
|
};
|
|
8823
8821
|
}
|
|
8824
8822
|
}, {
|
|
@@ -8847,7 +8845,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8847
8845
|
};
|
|
8848
8846
|
}
|
|
8849
8847
|
}]), r;
|
|
8850
|
-
}(W),
|
|
8848
|
+
}(W), sl = [{
|
|
8851
8849
|
tag: "xg-cache",
|
|
8852
8850
|
className: "xgplayer-progress-cache",
|
|
8853
8851
|
styleKey: "cachedColor"
|
|
@@ -8855,7 +8853,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8855
8853
|
tag: "xg-played",
|
|
8856
8854
|
className: "xgplayer-progress-played",
|
|
8857
8855
|
styleKey: "playedColor"
|
|
8858
|
-
}],
|
|
8856
|
+
}], ol = /* @__PURE__ */ function() {
|
|
8859
8857
|
function a(o) {
|
|
8860
8858
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8861
8859
|
percent: 1
|
|
@@ -9042,7 +9040,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9042
9040
|
var l = f.createDom("xg-inner", "", {
|
|
9043
9041
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
9044
9042
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
9045
|
-
return r.root.appendChild(l),
|
|
9043
|
+
return r.root.appendChild(l), sl.forEach(function(u) {
|
|
9046
9044
|
l.appendChild(f.createDom(u.tag, "", {
|
|
9047
9045
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
9048
9046
|
}, u.className));
|
|
@@ -9058,7 +9056,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9058
9056
|
}(), pn = {
|
|
9059
9057
|
POINT: "inner-focus-point",
|
|
9060
9058
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9061
|
-
},
|
|
9059
|
+
}, al = /* @__PURE__ */ function(a) {
|
|
9062
9060
|
A(r, a);
|
|
9063
9061
|
var o = D(r);
|
|
9064
9062
|
function r(t) {
|
|
@@ -9188,7 +9186,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9188
9186
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
9189
9187
|
}
|
|
9190
9188
|
});
|
|
9191
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
9189
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new ol(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
9192
9190
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
9193
9191
|
}));
|
|
9194
9192
|
}
|
|
@@ -9498,7 +9496,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9498
9496
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
9499
9497
|
}
|
|
9500
9498
|
}]), r;
|
|
9501
|
-
}(W),
|
|
9499
|
+
}(W), ll = /* @__PURE__ */ function(a) {
|
|
9502
9500
|
A(r, a);
|
|
9503
9501
|
var o = D(r);
|
|
9504
9502
|
function r() {
|
|
@@ -9510,7 +9508,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9510
9508
|
var e = this;
|
|
9511
9509
|
F(O(r.prototype), "afterCreate", this).call(this);
|
|
9512
9510
|
var i = this.player, n = this.config;
|
|
9513
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot,
|
|
9511
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot, gt, Ke], function() {
|
|
9514
9512
|
e.animate(i.paused);
|
|
9515
9513
|
}), this.on(de, function() {
|
|
9516
9514
|
e.animate(i.paused);
|
|
@@ -9586,14 +9584,14 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9586
9584
|
}
|
|
9587
9585
|
}]), r;
|
|
9588
9586
|
}(Ye);
|
|
9589
|
-
function
|
|
9587
|
+
function ul() {
|
|
9590
9588
|
return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9591
9589
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9592
9590
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
9593
9591
|
</g>
|
|
9594
9592
|
</svg>`, "image/svg+xml").firstChild;
|
|
9595
9593
|
}
|
|
9596
|
-
var
|
|
9594
|
+
var cl = /* @__PURE__ */ function(a) {
|
|
9597
9595
|
A(r, a);
|
|
9598
9596
|
var o = D(r);
|
|
9599
9597
|
function r() {
|
|
@@ -9612,7 +9610,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
9612
9610
|
value: function() {
|
|
9613
9611
|
return {
|
|
9614
9612
|
screenBack: {
|
|
9615
|
-
icon:
|
|
9613
|
+
icon: ul,
|
|
9616
9614
|
class: "xg-fullscreen-back"
|
|
9617
9615
|
}
|
|
9618
9616
|
};
|
|
@@ -9654,19 +9652,19 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
9654
9652
|
}
|
|
9655
9653
|
}]), r;
|
|
9656
9654
|
}(W);
|
|
9657
|
-
function
|
|
9655
|
+
function fl() {
|
|
9658
9656
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9659
9657
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
9660
9658
|
</svg>
|
|
9661
9659
|
`, "image/svg+xml").firstChild;
|
|
9662
9660
|
}
|
|
9663
|
-
function
|
|
9661
|
+
function hl() {
|
|
9664
9662
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9665
9663
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
9666
9664
|
</svg>
|
|
9667
9665
|
`, "image/svg+xml").firstChild;
|
|
9668
9666
|
}
|
|
9669
|
-
var
|
|
9667
|
+
var dl = /* @__PURE__ */ function(a) {
|
|
9670
9668
|
A(r, a);
|
|
9671
9669
|
var o = D(r);
|
|
9672
9670
|
function r() {
|
|
@@ -9701,7 +9699,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9701
9699
|
var u = e.find(".xg-tips");
|
|
9702
9700
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9703
9701
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9704
|
-
plugin:
|
|
9702
|
+
plugin: cl,
|
|
9705
9703
|
options: {
|
|
9706
9704
|
config: {
|
|
9707
9705
|
onClick: function(u) {
|
|
@@ -9717,11 +9715,11 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9717
9715
|
value: function() {
|
|
9718
9716
|
return {
|
|
9719
9717
|
fullscreen: {
|
|
9720
|
-
icon:
|
|
9718
|
+
icon: fl,
|
|
9721
9719
|
class: "xg-get-fullscreen"
|
|
9722
9720
|
},
|
|
9723
9721
|
exitFullscreen: {
|
|
9724
|
-
icon:
|
|
9722
|
+
icon: hl,
|
|
9725
9723
|
class: "xg-exit-fullscreen"
|
|
9726
9724
|
}
|
|
9727
9725
|
};
|
|
@@ -9802,7 +9800,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9802
9800
|
};
|
|
9803
9801
|
}
|
|
9804
9802
|
}]), r;
|
|
9805
|
-
}(Ye),
|
|
9803
|
+
}(Ye), gl = /* @__PURE__ */ function(a) {
|
|
9806
9804
|
A(r, a);
|
|
9807
9805
|
var o = D(r);
|
|
9808
9806
|
function r(t) {
|
|
@@ -9952,7 +9950,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9952
9950
|
};
|
|
9953
9951
|
}
|
|
9954
9952
|
}]), r;
|
|
9955
|
-
}(W),
|
|
9953
|
+
}(W), pl = /* @__PURE__ */ function(a) {
|
|
9956
9954
|
A(r, a);
|
|
9957
9955
|
var o = D(r);
|
|
9958
9956
|
function r() {
|
|
@@ -10090,28 +10088,28 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
10090
10088
|
}
|
|
10091
10089
|
}]), r;
|
|
10092
10090
|
}(He);
|
|
10093
|
-
function
|
|
10091
|
+
function vl() {
|
|
10094
10092
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10095
10093
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10096
10094
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
10097
10095
|
</svg>
|
|
10098
10096
|
`, "image/svg+xml").firstChild;
|
|
10099
10097
|
}
|
|
10100
|
-
function
|
|
10098
|
+
function ml() {
|
|
10101
10099
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10102
10100
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10103
10101
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
10104
10102
|
</svg>
|
|
10105
10103
|
`, "image/svg+xml").firstChild;
|
|
10106
10104
|
}
|
|
10107
|
-
function
|
|
10105
|
+
function yl() {
|
|
10108
10106
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10109
10107
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10110
10108
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
10111
10109
|
</svg>
|
|
10112
10110
|
`, "image/svg+xml").firstChild;
|
|
10113
10111
|
}
|
|
10114
|
-
var
|
|
10112
|
+
var _l = /* @__PURE__ */ function(a) {
|
|
10115
10113
|
A(r, a);
|
|
10116
10114
|
var o = D(r);
|
|
10117
10115
|
function r() {
|
|
@@ -10159,15 +10157,15 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10159
10157
|
value: function() {
|
|
10160
10158
|
return {
|
|
10161
10159
|
volumeSmall: {
|
|
10162
|
-
icon:
|
|
10160
|
+
icon: ml,
|
|
10163
10161
|
class: "xg-volume-small"
|
|
10164
10162
|
},
|
|
10165
10163
|
volumeLarge: {
|
|
10166
|
-
icon:
|
|
10164
|
+
icon: vl,
|
|
10167
10165
|
class: "xg-volume"
|
|
10168
10166
|
},
|
|
10169
10167
|
volumeMuted: {
|
|
10170
|
-
icon:
|
|
10168
|
+
icon: yl,
|
|
10171
10169
|
class: "xg-volume-mute"
|
|
10172
10170
|
}
|
|
10173
10171
|
};
|
|
@@ -10306,7 +10304,7 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10306
10304
|
}
|
|
10307
10305
|
}]), r;
|
|
10308
10306
|
}(W);
|
|
10309
|
-
function
|
|
10307
|
+
function kl() {
|
|
10310
10308
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10311
10309
|
<g clip-path="url(#clip0)">
|
|
10312
10310
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -10320,7 +10318,7 @@ function Cl() {
|
|
|
10320
10318
|
</svg>
|
|
10321
10319
|
`, "image/svg+xml").firstChild;
|
|
10322
10320
|
}
|
|
10323
|
-
var
|
|
10321
|
+
var Cl = /* @__PURE__ */ function(a) {
|
|
10324
10322
|
A(r, a);
|
|
10325
10323
|
var o = D(r);
|
|
10326
10324
|
function r(t) {
|
|
@@ -10383,7 +10381,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10383
10381
|
key: "registerIcons",
|
|
10384
10382
|
value: function() {
|
|
10385
10383
|
return {
|
|
10386
|
-
rotate:
|
|
10384
|
+
rotate: kl
|
|
10387
10385
|
};
|
|
10388
10386
|
}
|
|
10389
10387
|
}, {
|
|
@@ -10416,14 +10414,14 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10416
10414
|
}
|
|
10417
10415
|
}]), r;
|
|
10418
10416
|
}(Ye);
|
|
10419
|
-
function
|
|
10417
|
+
function wl() {
|
|
10420
10418
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10421
10419
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10422
10420
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
10423
10421
|
fill="white" />
|
|
10424
10422
|
</svg>`, "image/svg+xml").firstChild;
|
|
10425
10423
|
}
|
|
10426
|
-
function
|
|
10424
|
+
function bl() {
|
|
10427
10425
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10428
10426
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10429
10427
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -10437,7 +10435,7 @@ var Je = {
|
|
|
10437
10435
|
PIP: "picture-in-picture",
|
|
10438
10436
|
INLINE: "inline",
|
|
10439
10437
|
FULLSCREEN: "fullscreen"
|
|
10440
|
-
},
|
|
10438
|
+
}, Tl = /* @__PURE__ */ function(a) {
|
|
10441
10439
|
A(r, a);
|
|
10442
10440
|
var o = D(r);
|
|
10443
10441
|
function r() {
|
|
@@ -10477,11 +10475,11 @@ var Je = {
|
|
|
10477
10475
|
value: function() {
|
|
10478
10476
|
return {
|
|
10479
10477
|
pipIcon: {
|
|
10480
|
-
icon:
|
|
10478
|
+
icon: wl,
|
|
10481
10479
|
class: "xg-get-pip"
|
|
10482
10480
|
},
|
|
10483
10481
|
pipIconExit: {
|
|
10484
|
-
icon:
|
|
10482
|
+
icon: bl,
|
|
10485
10483
|
class: "xg-exit-pip"
|
|
10486
10484
|
}
|
|
10487
10485
|
};
|
|
@@ -10640,20 +10638,20 @@ var Je = {
|
|
|
10640
10638
|
}
|
|
10641
10639
|
}]), r;
|
|
10642
10640
|
}(Ye);
|
|
10643
|
-
function
|
|
10641
|
+
function El() {
|
|
10644
10642
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10645
10643
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10646
10644
|
</svg>
|
|
10647
10645
|
`, "image/svg+xml").firstChild;
|
|
10648
10646
|
}
|
|
10649
|
-
var
|
|
10647
|
+
var Sl = /* @__PURE__ */ function(a) {
|
|
10650
10648
|
A(r, a);
|
|
10651
10649
|
var o = D(r);
|
|
10652
10650
|
function r(t) {
|
|
10653
10651
|
var e;
|
|
10654
10652
|
return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10655
10653
|
var n = m(e), s = n.player;
|
|
10656
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
10654
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(St, e.idx + 1)) : (e.nextHandler(), s.emit(St));
|
|
10657
10655
|
}), e.idx = -1, e;
|
|
10658
10656
|
}
|
|
10659
10657
|
return I(r, [{
|
|
@@ -10665,7 +10663,7 @@ var xl = /* @__PURE__ */ function(a) {
|
|
|
10665
10663
|
key: "registerIcons",
|
|
10666
10664
|
value: function() {
|
|
10667
10665
|
return {
|
|
10668
|
-
playNext:
|
|
10666
|
+
playNext: El
|
|
10669
10667
|
};
|
|
10670
10668
|
}
|
|
10671
10669
|
}, {
|
|
@@ -10787,9 +10785,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10787
10785
|
};
|
|
10788
10786
|
});
|
|
10789
10787
|
})(er);
|
|
10790
|
-
var
|
|
10791
|
-
const
|
|
10792
|
-
function
|
|
10788
|
+
var xl = er.exports;
|
|
10789
|
+
const Il = /* @__PURE__ */ di(xl);
|
|
10790
|
+
function Pl() {
|
|
10793
10791
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10794
10792
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10795
10793
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10806,7 +10804,7 @@ function Ll() {
|
|
|
10806
10804
|
</svg>
|
|
10807
10805
|
`, "image/svg+xml").firstChild;
|
|
10808
10806
|
}
|
|
10809
|
-
var
|
|
10807
|
+
var Ll = /* @__PURE__ */ function(a) {
|
|
10810
10808
|
A(r, a);
|
|
10811
10809
|
var o = D(r);
|
|
10812
10810
|
function r(t) {
|
|
@@ -10817,7 +10815,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10817
10815
|
var n = e.playerConfig.url, s = "";
|
|
10818
10816
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10819
10817
|
var l = e.getAbsoluteURL(s);
|
|
10820
|
-
|
|
10818
|
+
Il(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10821
10819
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10822
10820
|
}, 300);
|
|
10823
10821
|
}
|
|
@@ -10836,7 +10834,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10836
10834
|
key: "registerIcons",
|
|
10837
10835
|
value: function() {
|
|
10838
10836
|
return {
|
|
10839
|
-
download:
|
|
10837
|
+
download: Pl
|
|
10840
10838
|
};
|
|
10841
10839
|
}
|
|
10842
10840
|
}, {
|
|
@@ -10878,7 +10876,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10878
10876
|
};
|
|
10879
10877
|
}
|
|
10880
10878
|
}]), r;
|
|
10881
|
-
}(Ye),
|
|
10879
|
+
}(Ye), Al = /* @__PURE__ */ function(a) {
|
|
10882
10880
|
A(r, a);
|
|
10883
10881
|
var o = D(r);
|
|
10884
10882
|
function r() {
|
|
@@ -11004,7 +11002,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
11004
11002
|
};
|
|
11005
11003
|
}
|
|
11006
11004
|
}]), r;
|
|
11007
|
-
}(Ye),
|
|
11005
|
+
}(Ye), Dl = /* @__PURE__ */ function() {
|
|
11008
11006
|
function a(o) {
|
|
11009
11007
|
x(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
11010
11008
|
var r = this.config.maxHeight;
|
|
@@ -11084,10 +11082,10 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
11084
11082
|
CLICK: "click",
|
|
11085
11083
|
HOVER: "hover"
|
|
11086
11084
|
};
|
|
11087
|
-
function
|
|
11085
|
+
function Ol(a, o) {
|
|
11088
11086
|
return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11089
11087
|
}
|
|
11090
|
-
var je = B.device === "mobile",
|
|
11088
|
+
var je = B.device === "mobile", At = /* @__PURE__ */ function(a) {
|
|
11091
11089
|
A(r, a);
|
|
11092
11090
|
var o = D(r);
|
|
11093
11091
|
function r(t) {
|
|
@@ -11198,7 +11196,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11198
11196
|
var c = {
|
|
11199
11197
|
config: {
|
|
11200
11198
|
data: e || [],
|
|
11201
|
-
className:
|
|
11199
|
+
className: Ol(s.listType, s.position),
|
|
11202
11200
|
onItemClick: function(v, y) {
|
|
11203
11201
|
n.onItemClick(v, y);
|
|
11204
11202
|
},
|
|
@@ -11208,7 +11206,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11208
11206
|
};
|
|
11209
11207
|
if (this.config.isShowIcon) {
|
|
11210
11208
|
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
|
|
11211
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
11209
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Dl(c), this.changeCurrentText(), this.show();
|
|
11212
11210
|
}
|
|
11213
11211
|
this._resizeList();
|
|
11214
11212
|
}
|
|
@@ -11259,7 +11257,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11259
11257
|
};
|
|
11260
11258
|
}
|
|
11261
11259
|
}]), r;
|
|
11262
|
-
}(W),
|
|
11260
|
+
}(W), Rl = /* @__PURE__ */ function(a) {
|
|
11263
11261
|
A(r, a);
|
|
11264
11262
|
var o = D(r);
|
|
11265
11263
|
function r(t) {
|
|
@@ -11348,7 +11346,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11348
11346
|
}, {
|
|
11349
11347
|
key: "defaultConfig",
|
|
11350
11348
|
get: function() {
|
|
11351
|
-
return q(q({},
|
|
11349
|
+
return q(q({}, At.defaultConfig), {}, {
|
|
11352
11350
|
position: $.CONTROLS_RIGHT,
|
|
11353
11351
|
index: 3,
|
|
11354
11352
|
list: [],
|
|
@@ -11360,7 +11358,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11360
11358
|
});
|
|
11361
11359
|
}
|
|
11362
11360
|
}]), r;
|
|
11363
|
-
}(
|
|
11361
|
+
}(At), Fl = /* @__PURE__ */ function(a) {
|
|
11364
11362
|
A(r, a);
|
|
11365
11363
|
var o = D(r);
|
|
11366
11364
|
function r(t) {
|
|
@@ -11442,7 +11440,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11442
11440
|
}, {
|
|
11443
11441
|
key: "defaultConfig",
|
|
11444
11442
|
get: function() {
|
|
11445
|
-
return q(q({},
|
|
11443
|
+
return q(q({}, At.defaultConfig), {}, {
|
|
11446
11444
|
position: $.CONTROLS_RIGHT,
|
|
11447
11445
|
index: 4,
|
|
11448
11446
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -11452,14 +11450,14 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11452
11450
|
});
|
|
11453
11451
|
}
|
|
11454
11452
|
}]), r;
|
|
11455
|
-
}(
|
|
11456
|
-
function
|
|
11453
|
+
}(At);
|
|
11454
|
+
function Ml() {
|
|
11457
11455
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11458
11456
|
<path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
11459
11457
|
</svg>
|
|
11460
11458
|
`, "image/svg+xml").firstChild;
|
|
11461
11459
|
}
|
|
11462
|
-
function
|
|
11460
|
+
function Nl() {
|
|
11463
11461
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11464
11462
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
11465
11463
|
</svg>
|
|
@@ -11480,7 +11478,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11480
11478
|
key: "afterCreate",
|
|
11481
11479
|
value: function() {
|
|
11482
11480
|
var e = this;
|
|
11483
|
-
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
11481
|
+
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Tt, function(i) {
|
|
11484
11482
|
e.animate(i);
|
|
11485
11483
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11486
11484
|
pre: function(n) {
|
|
@@ -11519,11 +11517,11 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11519
11517
|
value: function() {
|
|
11520
11518
|
return {
|
|
11521
11519
|
cssFullscreen: {
|
|
11522
|
-
icon:
|
|
11520
|
+
icon: Ml,
|
|
11523
11521
|
class: "xg-get-cssfull"
|
|
11524
11522
|
},
|
|
11525
11523
|
exitCssFullscreen: {
|
|
11526
|
-
icon:
|
|
11524
|
+
icon: Nl,
|
|
11527
11525
|
class: "xg-exit-cssfull"
|
|
11528
11526
|
}
|
|
11529
11527
|
};
|
|
@@ -11559,7 +11557,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11559
11557
|
};
|
|
11560
11558
|
}
|
|
11561
11559
|
}]), r;
|
|
11562
|
-
}(Ye),
|
|
11560
|
+
}(Ye), Bl = /* @__PURE__ */ function(a) {
|
|
11563
11561
|
A(r, a);
|
|
11564
11562
|
var o = D(r);
|
|
11565
11563
|
function r() {
|
|
@@ -11573,7 +11571,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11573
11571
|
pre: function(n) {
|
|
11574
11572
|
n.preventDefault(), n.stopPropagation();
|
|
11575
11573
|
}
|
|
11576
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
11574
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(gt, function(i) {
|
|
11577
11575
|
e.onError(i);
|
|
11578
11576
|
});
|
|
11579
11577
|
}
|
|
@@ -11620,7 +11618,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11620
11618
|
return "error";
|
|
11621
11619
|
}
|
|
11622
11620
|
}]), r;
|
|
11623
|
-
}(W),
|
|
11621
|
+
}(W), Hl = /* @__PURE__ */ function(a) {
|
|
11624
11622
|
A(r, a);
|
|
11625
11623
|
var o = D(r);
|
|
11626
11624
|
function r() {
|
|
@@ -11850,7 +11848,7 @@ var yn = {
|
|
|
11850
11848
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11851
11849
|
}
|
|
11852
11850
|
};
|
|
11853
|
-
function
|
|
11851
|
+
function Ul(a) {
|
|
11854
11852
|
var o = a.config, r = a.player;
|
|
11855
11853
|
Object.keys(yn).map(function(e) {
|
|
11856
11854
|
a[e] = yn[e].bind(a);
|
|
@@ -11874,7 +11872,7 @@ var et = {
|
|
|
11874
11872
|
click: "onProgressClick",
|
|
11875
11873
|
mouseover: "onProgressMouseOver",
|
|
11876
11874
|
mouseenter: "onProgressMouseOver"
|
|
11877
|
-
},
|
|
11875
|
+
}, zl = /* @__PURE__ */ function(a) {
|
|
11878
11876
|
A(r, a);
|
|
11879
11877
|
var o = D(r);
|
|
11880
11878
|
function r(t) {
|
|
@@ -11925,7 +11923,7 @@ var et = {
|
|
|
11925
11923
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11926
11924
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11927
11925
|
e.setTimeContent(f.format(i));
|
|
11928
|
-
}),
|
|
11926
|
+
}), Ul(this), this.on(Ue, function() {
|
|
11929
11927
|
e.show();
|
|
11930
11928
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11931
11929
|
}
|
|
@@ -12149,7 +12147,7 @@ var et = {
|
|
|
12149
12147
|
};
|
|
12150
12148
|
}
|
|
12151
12149
|
}]), r;
|
|
12152
|
-
}(W),
|
|
12150
|
+
}(W), Vl = /* @__PURE__ */ function(a) {
|
|
12153
12151
|
A(r, a);
|
|
12154
12152
|
var o = D(r);
|
|
12155
12153
|
function r(t) {
|
|
@@ -12287,7 +12285,7 @@ var et = {
|
|
|
12287
12285
|
function Qt(a) {
|
|
12288
12286
|
return a ? "background:".concat(a, ";") : "";
|
|
12289
12287
|
}
|
|
12290
|
-
var
|
|
12288
|
+
var jl = /* @__PURE__ */ function(a) {
|
|
12291
12289
|
A(r, a);
|
|
12292
12290
|
var o = D(r);
|
|
12293
12291
|
function r() {
|
|
@@ -12375,14 +12373,14 @@ var Wl = /* @__PURE__ */ function(a) {
|
|
|
12375
12373
|
FRAME_RATE: "framerate",
|
|
12376
12374
|
POSTER: "poster"
|
|
12377
12375
|
};
|
|
12378
|
-
function
|
|
12376
|
+
function Wl() {
|
|
12379
12377
|
try {
|
|
12380
12378
|
return parseInt(window.performance.now(), 10);
|
|
12381
12379
|
} catch {
|
|
12382
12380
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12383
12381
|
}
|
|
12384
12382
|
}
|
|
12385
|
-
function
|
|
12383
|
+
function Gl() {
|
|
12386
12384
|
try {
|
|
12387
12385
|
var a = document.createElement("canvas").getContext;
|
|
12388
12386
|
return !!a;
|
|
@@ -12390,7 +12388,7 @@ function $l() {
|
|
|
12390
12388
|
return !1;
|
|
12391
12389
|
}
|
|
12392
12390
|
}
|
|
12393
|
-
var
|
|
12391
|
+
var _t = null, $l = /* @__PURE__ */ function(a) {
|
|
12394
12392
|
A(r, a);
|
|
12395
12393
|
var o = D(r);
|
|
12396
12394
|
function r() {
|
|
@@ -12411,7 +12409,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12411
12409
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12412
12410
|
}
|
|
12413
12411
|
}), _(m(t), "start", function(s, l) {
|
|
12414
|
-
var u = t.player.video, c =
|
|
12412
|
+
var u = t.player.video, c = Wl(), h = t.checkVideoIsSupport(u);
|
|
12415
12413
|
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === tt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(m(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
12416
12414
|
}), _(m(t), "stop", function() {
|
|
12417
12415
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -12584,7 +12582,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12584
12582
|
}, {
|
|
12585
12583
|
key: "isSupport",
|
|
12586
12584
|
get: function() {
|
|
12587
|
-
return typeof
|
|
12585
|
+
return typeof _t == "boolean" || (_t = Gl()), _t;
|
|
12588
12586
|
}
|
|
12589
12587
|
}, {
|
|
12590
12588
|
key: "supportCanvasFilter",
|
|
@@ -12592,7 +12590,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12592
12590
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
12593
12591
|
}
|
|
12594
12592
|
}]), r;
|
|
12595
|
-
}(W),
|
|
12593
|
+
}(W), Kl = {
|
|
12596
12594
|
LANG: "zh-cn",
|
|
12597
12595
|
TEXT: {
|
|
12598
12596
|
ERROR_TYPES: {
|
|
@@ -12667,7 +12665,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12667
12665
|
FORWARD: "快进中",
|
|
12668
12666
|
LIVE_TIP: "直播"
|
|
12669
12667
|
}
|
|
12670
|
-
}, ut = "info", ei = Kn,
|
|
12668
|
+
}, ut = "info", ei = Kn, Yl = /* @__PURE__ */ function(a) {
|
|
12671
12669
|
A(r, a);
|
|
12672
12670
|
var o = D(r);
|
|
12673
12671
|
function r() {
|
|
@@ -12706,7 +12704,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12706
12704
|
}, {
|
|
12707
12705
|
key: "afterCreate",
|
|
12708
12706
|
value: function() {
|
|
12709
|
-
this.reset(), this.on(
|
|
12707
|
+
this.reset(), this.on(xt, this._recordUserActions), this.on(ei.STATS_INFO, this._recordInfo), this.on(ei.STATS_DOWNLOAD, this._downloadStats), this.on(ei.STATS_RESET, this._onReset);
|
|
12710
12708
|
}
|
|
12711
12709
|
}, {
|
|
12712
12710
|
key: "destroy",
|
|
@@ -12852,7 +12850,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12852
12850
|
key: "afterCreate",
|
|
12853
12851
|
value: function() {
|
|
12854
12852
|
var e = this, i = this.config.useGapJump;
|
|
12855
|
-
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(
|
|
12853
|
+
i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(pt, this.onGapJump), this.on(de, function() {
|
|
12856
12854
|
e.hasPlayed = !0;
|
|
12857
12855
|
}), this.on(Ot, function() {
|
|
12858
12856
|
e.seekingEventReceived = !0;
|
|
@@ -12901,7 +12899,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12901
12899
|
}]), r;
|
|
12902
12900
|
}(W);
|
|
12903
12901
|
ir.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12904
|
-
var
|
|
12902
|
+
var Xl = /* @__PURE__ */ function(a) {
|
|
12905
12903
|
A(r, a);
|
|
12906
12904
|
var o = D(r);
|
|
12907
12905
|
function r() {
|
|
@@ -12925,7 +12923,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12925
12923
|
key: "afterCreate",
|
|
12926
12924
|
value: function() {
|
|
12927
12925
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12928
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12926
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(pt, this.onWaiting), this.on([vi, Se], function() {
|
|
12929
12927
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12930
12928
|
}), this.on(de, function() {
|
|
12931
12929
|
e.hasPlayed = !0;
|
|
@@ -12947,7 +12945,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12947
12945
|
};
|
|
12948
12946
|
}
|
|
12949
12947
|
}]), r;
|
|
12950
|
-
}(W), it = "cdn",
|
|
12948
|
+
}(W), it = "cdn", kt = ["cdn"], ql = /* @__PURE__ */ function(a) {
|
|
12951
12949
|
A(r, a);
|
|
12952
12950
|
var o = D(r);
|
|
12953
12951
|
function r() {
|
|
@@ -12966,7 +12964,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12966
12964
|
}), _(m(t), "startTimer", function() {
|
|
12967
12965
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12968
12966
|
}), _(m(t), "initSpeedList", function() {
|
|
12969
|
-
t.speedListCache = {},
|
|
12967
|
+
t.speedListCache = {}, kt.forEach(function(s) {
|
|
12970
12968
|
t.speedListCache[s] = [];
|
|
12971
12969
|
});
|
|
12972
12970
|
}), _(m(t), "_onRealSpeedChange", function(s) {
|
|
@@ -13023,7 +13021,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13023
13021
|
key: "afterCreate",
|
|
13024
13022
|
value: function() {
|
|
13025
13023
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13026
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
13024
|
+
(n == null ? void 0 : n.length) > 0 && kt.push.apply(kt, ve(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ie, bt], this.startTimer);
|
|
13027
13025
|
}
|
|
13028
13026
|
}, {
|
|
13029
13027
|
key: "getSpeedName",
|
|
@@ -13050,7 +13048,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13050
13048
|
key: "destroy",
|
|
13051
13049
|
value: function() {
|
|
13052
13050
|
var e = this;
|
|
13053
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ie,
|
|
13051
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ie, bt], this.startTimer), kt.forEach(function(i) {
|
|
13054
13052
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
13055
13053
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
13056
13054
|
}
|
|
@@ -13073,7 +13071,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13073
13071
|
};
|
|
13074
13072
|
}
|
|
13075
13073
|
}]), r;
|
|
13076
|
-
}(W),
|
|
13074
|
+
}(W), Zl = /* @__PURE__ */ function(a) {
|
|
13077
13075
|
A(r, a);
|
|
13078
13076
|
var o = D(r);
|
|
13079
13077
|
function r() {
|
|
@@ -13183,24 +13181,24 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13183
13181
|
}
|
|
13184
13182
|
}]), r;
|
|
13185
13183
|
}(W);
|
|
13186
|
-
nt.use(
|
|
13187
|
-
var
|
|
13184
|
+
nt.use(Kl);
|
|
13185
|
+
var Jl = /* @__PURE__ */ I(function a(o, r) {
|
|
13188
13186
|
var t, e, i;
|
|
13189
13187
|
x(this, a);
|
|
13190
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
13191
|
-
this.plugins = [
|
|
13188
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [pl, al, jl, zl, gl], u = [].concat(l, [ll, dl, Cl, Sl, Rl, Fl, Ll, Al, _l, Tl]), c = [za, Va, Wa, rl, Ga, Bl, Hl, Vl, Xa];
|
|
13189
|
+
this.plugins = [Yl, Ha].concat(ve(u), c, [ir, Xl]);
|
|
13192
13190
|
var h = n ? "mobile" : B.device;
|
|
13193
13191
|
switch (h) {
|
|
13194
13192
|
case "pc":
|
|
13195
|
-
(t = this.plugins).push.apply(t, [gn, Zt, vn,
|
|
13193
|
+
(t = this.plugins).push.apply(t, [gn, Zt, vn, ql, Zl]);
|
|
13196
13194
|
break;
|
|
13197
13195
|
case "mobile":
|
|
13198
|
-
(e = this.plugins).push.apply(e, [
|
|
13196
|
+
(e = this.plugins).push.apply(e, [tl]);
|
|
13199
13197
|
break;
|
|
13200
13198
|
default:
|
|
13201
13199
|
(i = this.plugins).push.apply(i, [gn, Zt, vn]);
|
|
13202
13200
|
}
|
|
13203
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
13201
|
+
(B.os.isIpad || h === "pc") && this.plugins.push($l), B.os.isIpad && this.plugins.push(Zt), this.ignores = [], this.i18n = [];
|
|
13204
13202
|
}), me = /* @__PURE__ */ function(a) {
|
|
13205
13203
|
A(r, a);
|
|
13206
13204
|
var o = D(r);
|
|
@@ -13209,20 +13207,20 @@ var Ql = /* @__PURE__ */ I(function a(o, r) {
|
|
|
13209
13207
|
}
|
|
13210
13208
|
return I(r);
|
|
13211
13209
|
}(Nt);
|
|
13212
|
-
_(me, "defaultPreset",
|
|
13210
|
+
_(me, "defaultPreset", Jl);
|
|
13213
13211
|
_(me, "Util", f);
|
|
13214
13212
|
_(me, "Sniffer", B);
|
|
13215
|
-
_(me, "Errors",
|
|
13216
|
-
_(me, "Events",
|
|
13213
|
+
_(me, "Errors", wt);
|
|
13214
|
+
_(me, "Events", da);
|
|
13217
13215
|
_(me, "Plugin", W);
|
|
13218
13216
|
_(me, "BasePlugin", He);
|
|
13219
13217
|
_(me, "I18N", nt);
|
|
13220
13218
|
_(me, "STATE_CLASS", k);
|
|
13221
13219
|
_(me, "InstManager", Jn);
|
|
13222
|
-
const
|
|
13220
|
+
const Ql = ["id"], eu = /* @__PURE__ */ Z({
|
|
13223
13221
|
name: "ElImageViewer",
|
|
13224
13222
|
__name: "Player",
|
|
13225
|
-
props: /* @__PURE__ */
|
|
13223
|
+
props: /* @__PURE__ */ Ct({
|
|
13226
13224
|
url: {
|
|
13227
13225
|
type: String,
|
|
13228
13226
|
default: ""
|
|
@@ -13243,7 +13241,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13243
13241
|
},
|
|
13244
13242
|
modelModifiers: {}
|
|
13245
13243
|
}),
|
|
13246
|
-
emits: /* @__PURE__ */
|
|
13244
|
+
emits: /* @__PURE__ */ Ct({
|
|
13247
13245
|
close: () => !0
|
|
13248
13246
|
}, ["update:modelValue"]),
|
|
13249
13247
|
setup(a, { emit: o }) {
|
|
@@ -13317,7 +13315,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13317
13315
|
class: K(S(h).e("canvas"))
|
|
13318
13316
|
},
|
|
13319
13317
|
[
|
|
13320
|
-
T("div", { id: S(c) }, null, 8,
|
|
13318
|
+
T("div", { id: S(c) }, null, 8, Ql),
|
|
13321
13319
|
ee(" CLOSE "),
|
|
13322
13320
|
T(
|
|
13323
13321
|
"span",
|
|
@@ -13354,22 +13352,22 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13354
13352
|
};
|
|
13355
13353
|
}
|
|
13356
13354
|
});
|
|
13357
|
-
const
|
|
13355
|
+
const tu = /* @__PURE__ */ Dt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(tu), nu = (a) => (pr("data-v-6a92bbab"), a = a(), vr(), a), ru = {
|
|
13358
13356
|
key: 0,
|
|
13359
13357
|
class: "preview-files"
|
|
13360
|
-
},
|
|
13358
|
+
}, su = {
|
|
13361
13359
|
class: "flex",
|
|
13362
13360
|
style: { width: "80%", "align-items": "center" }
|
|
13363
|
-
},
|
|
13361
|
+
}, ou = ["onClick"], au = ["title"], lu = { style: { color: "#b8c6d9" } }, uu = ["onClick"], cu = /* @__PURE__ */ nu(() => /* @__PURE__ */ T(
|
|
13364
13362
|
"span",
|
|
13365
13363
|
null,
|
|
13366
13364
|
"预览",
|
|
13367
13365
|
-1
|
|
13368
13366
|
/* HOISTED */
|
|
13369
|
-
)),
|
|
13367
|
+
)), fu = {
|
|
13370
13368
|
key: 1,
|
|
13371
13369
|
class: "flex preview-img"
|
|
13372
|
-
},
|
|
13370
|
+
}, hu = /* @__PURE__ */ Z({
|
|
13373
13371
|
__name: "IkDetailPreviewFiles",
|
|
13374
13372
|
props: {
|
|
13375
13373
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -13427,7 +13425,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13427
13425
|
var d, p;
|
|
13428
13426
|
const h = rt("el-image");
|
|
13429
13427
|
return E(), P("div", null, [
|
|
13430
|
-
o.fileType === "file" ? (E(), P("div",
|
|
13428
|
+
o.fileType === "file" ? (E(), P("div", ru, [
|
|
13431
13429
|
(E(!0), P(
|
|
13432
13430
|
Ee,
|
|
13433
13431
|
null,
|
|
@@ -13442,7 +13440,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13442
13440
|
})
|
|
13443
13441
|
},
|
|
13444
13442
|
[
|
|
13445
|
-
T("div",
|
|
13443
|
+
T("div", su, [
|
|
13446
13444
|
j(S(Me), {
|
|
13447
13445
|
name: n(g),
|
|
13448
13446
|
style: oe(`color:${s(g)}`),
|
|
@@ -13454,23 +13452,23 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13454
13452
|
}, [
|
|
13455
13453
|
T("p", {
|
|
13456
13454
|
title: g.name
|
|
13457
|
-
}, Ne(g.name), 9,
|
|
13455
|
+
}, Ne(g.name), 9, au),
|
|
13458
13456
|
T(
|
|
13459
13457
|
"p",
|
|
13460
|
-
|
|
13458
|
+
lu,
|
|
13461
13459
|
Ne((g.size / 1024).toFixed(2)) + "KB",
|
|
13462
13460
|
1
|
|
13463
13461
|
/* TEXT */
|
|
13464
13462
|
)
|
|
13465
|
-
], 8,
|
|
13463
|
+
], 8, ou)
|
|
13466
13464
|
]),
|
|
13467
13465
|
T("div", {
|
|
13468
13466
|
class: "file-preview",
|
|
13469
13467
|
onClick: (y) => i(g)
|
|
13470
13468
|
}, [
|
|
13471
13469
|
j(S(Me), { name: "iksvg_yulan" }),
|
|
13472
|
-
|
|
13473
|
-
], 8,
|
|
13470
|
+
cu
|
|
13471
|
+
], 8, uu)
|
|
13474
13472
|
],
|
|
13475
13473
|
4
|
|
13476
13474
|
/* STYLE */
|
|
@@ -13479,7 +13477,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13479
13477
|
/* KEYED_FRAGMENT */
|
|
13480
13478
|
))
|
|
13481
13479
|
])) : ee("v-if", !0),
|
|
13482
|
-
o.fileType === "img" ? (E(), P("div",
|
|
13480
|
+
o.fileType === "img" ? (E(), P("div", fu, [
|
|
13483
13481
|
(E(!0), P(
|
|
13484
13482
|
Ee,
|
|
13485
13483
|
null,
|
|
@@ -13510,8 +13508,8 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13510
13508
|
};
|
|
13511
13509
|
}
|
|
13512
13510
|
});
|
|
13513
|
-
const
|
|
13511
|
+
const du = /* @__PURE__ */ Dt(hu, [["__scopeId", "data-v-6a92bbab"]]), mu = Pe(du);
|
|
13514
13512
|
export {
|
|
13515
|
-
|
|
13516
|
-
|
|
13513
|
+
mu as IKDetailPreviewFiles,
|
|
13514
|
+
mu as default
|
|
13517
13515
|
};
|