iking-web-ui-pro 0.2.42 → 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 -353
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- 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 -360
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +44 -44
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- 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 -300
- package/dist/IkDescription/ik.index.umd.js +44 -44
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -308
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- 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 -344
- package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
- package/dist/IkPreviewFileDialog/style.css +1 -1
- 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 -334
- package/dist/IkUploadFile/ik.index.umd.js +46 -46
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +387 -387
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12395 -12385
- package/dist/index.umd.js +109 -109
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IkOnlyOffice/style.css +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as J, computed as Y, openBlock as S, createElementBlock as D, createElementVNode as T, inject as ot, mergeModels as Ct, useModel as
|
|
2
|
-
import { buildUUID as kn, ikColor as pr, paramType as
|
|
1
|
+
import { defineComponent as J, computed as Y, openBlock as S, createElementBlock as D, createElementVNode as T, inject as ot, mergeModels as Ct, useModel as ci, ref as de, reactive as nr, watch as ut, nextTick as fi, Fragment as Ve, createBlock as pe, unref as E, createCommentVNode as ee, createVNode as G, withCtx as Q, resolveComponent as ct, normalizeClass as K, normalizeStyle as ue, createTextVNode as Qt, toDisplayString as nt, h as rr, mergeProps as sr, createSlots as or, renderSlot as Oe, getCurrentScope as ar, onScopeDispose as lr, markRaw as Oi, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as _n, Transition as Cn, withModifiers as ei, resolveDynamicComponent as hr, renderList as ti, withDirectives as dr, vShow as gr } from "vue";
|
|
2
|
+
import { buildUUID as kn, ikColor as pr, paramType as ii, _ as Bt, ikFile as vr } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as mr, useNamespace as wn, useZIndex as yr, ElIcon as Pe, EVENT_CODE as Ke } from "element-plus";
|
|
4
4
|
const Fe = (a, o) => {
|
|
5
5
|
if (a.install = (r) => {
|
|
@@ -9,7 +9,7 @@ const Fe = (a, o) => {
|
|
|
9
9
|
for (const [r, t] of Object.entries(o))
|
|
10
10
|
a[r] = t;
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, ni = (a, o) => {
|
|
13
13
|
var i, n, s, l;
|
|
14
14
|
const r = (i = a == null ? void 0 : a.response) != null && i.data ? Ri((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || Ri(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
|
|
15
15
|
sheet: "excel",
|
|
@@ -619,7 +619,7 @@ const Fe = (a, o) => {
|
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
|
-
const o = a, r = Y(() => o.file ?
|
|
622
|
+
const o = a, r = Y(() => o.file ? ni(o.file, o.fields) : o.type);
|
|
623
623
|
return (t, e) => r.value === "image" ? (S(), D("svg", kr, Sr)) : r.value === "zip" ? (S(), D("svg", xr, Lr)) : r.value === "ppt" ? (S(), D("svg", Ar, Rr)) : r.value === "word" ? (S(), D("svg", Mr, Br)) : r.value === "pdf" ? (S(), D("svg", Hr, Vr)) : r.value === "txt" ? (S(), D("svg", jr, $r)) : r.value === "audio" ? (S(), D("svg", Kr, qr)) : r.value === "video" ? (S(), D("svg", Zr, es)) : r.value === "excel" ? (S(), D("svg", ts, ss)) : r.value === "exe" ? (S(), D("svg", os, fs)) : r.value === "json" ? (S(), D("svg", hs, vs)) : (S(), D("svg", ms, ks));
|
|
624
624
|
}
|
|
625
625
|
}), bs = Fe(ws);
|
|
@@ -751,7 +751,7 @@ var Ts = /* @__PURE__ */ J({
|
|
|
751
751
|
]));
|
|
752
752
|
}
|
|
753
753
|
}), Us = Hs;
|
|
754
|
-
const
|
|
754
|
+
const hi = (a, o) => {
|
|
755
755
|
const r = a.__vccOpts || a;
|
|
756
756
|
for (const [t, e] of o)
|
|
757
757
|
r[t] = e;
|
|
@@ -866,7 +866,7 @@ const At = (a, o) => {
|
|
|
866
866
|
}),
|
|
867
867
|
emits: ["update:show"],
|
|
868
868
|
setup(a) {
|
|
869
|
-
const o = a, r =
|
|
869
|
+
const o = a, r = ci(a, "show"), t = Y(() => ({
|
|
870
870
|
name: "name",
|
|
871
871
|
url: "url",
|
|
872
872
|
suffix: "suffix",
|
|
@@ -884,10 +884,10 @@ const At = (a, o) => {
|
|
|
884
884
|
...u,
|
|
885
885
|
name: u[t.value.name],
|
|
886
886
|
url: ft(o.loadUrl, b)
|
|
887
|
-
}, u &&
|
|
887
|
+
}, u && ni(u, t.value) === "image") {
|
|
888
888
|
n.image = !0;
|
|
889
889
|
return;
|
|
890
|
-
} else if (u &&
|
|
890
|
+
} else if (u && ni(u, t.value) === "video") {
|
|
891
891
|
n.video = !0;
|
|
892
892
|
return;
|
|
893
893
|
} else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
|
|
@@ -919,7 +919,7 @@ const At = (a, o) => {
|
|
|
919
919
|
}
|
|
920
920
|
};
|
|
921
921
|
ut([r, o.file], ([u, c]) => {
|
|
922
|
-
u &&
|
|
922
|
+
u && fi(() => {
|
|
923
923
|
s(o.file);
|
|
924
924
|
});
|
|
925
925
|
});
|
|
@@ -932,7 +932,7 @@ const At = (a, o) => {
|
|
|
932
932
|
Ve,
|
|
933
933
|
{ key: 0 },
|
|
934
934
|
[
|
|
935
|
-
(h = i.value) != null && h.url && n.image ? (S(), pe(E(
|
|
935
|
+
(h = i.value) != null && h.url && n.image ? (S(), pe(E(Po), {
|
|
936
936
|
key: 0,
|
|
937
937
|
onClose: c[0] || (c[0] = (g) => l()),
|
|
938
938
|
ref: "previewImgRef",
|
|
@@ -940,9 +940,9 @@ const At = (a, o) => {
|
|
|
940
940
|
teleported: "",
|
|
941
941
|
"z-index": 9999
|
|
942
942
|
}, null, 8, ["url-list"])) : ee("v-if", !0),
|
|
943
|
-
ee('
|
|
943
|
+
ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
944
944
|
ee(" 文档类 "),
|
|
945
|
-
G(E(
|
|
945
|
+
G(E(Gl), {
|
|
946
946
|
modelValue: n.video,
|
|
947
947
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
|
|
948
948
|
url: (p = i.value) == null ? void 0 : p.url
|
|
@@ -965,7 +965,7 @@ const At = (a, o) => {
|
|
|
965
965
|
default: Q(() => {
|
|
966
966
|
var g;
|
|
967
967
|
return [
|
|
968
|
-
G(E(
|
|
968
|
+
G(E(ho), {
|
|
969
969
|
"config-options": e.value,
|
|
970
970
|
"document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
|
|
971
971
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1172,7 +1172,7 @@ const Ws = Fe(js), Gs = {
|
|
|
1172
1172
|
type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
|
|
1173
1173
|
}, {
|
|
1174
1174
|
default: Q(() => [
|
|
1175
|
-
|
|
1175
|
+
Qt(
|
|
1176
1176
|
nt(r.value.title),
|
|
1177
1177
|
1
|
|
1178
1178
|
/* TEXT */
|
|
@@ -1184,7 +1184,7 @@ const Ws = Fe(js), Gs = {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
1186
|
});
|
|
1187
|
-
const Qs = /* @__PURE__ */
|
|
1187
|
+
const Qs = /* @__PURE__ */ hi(Js, [["__scopeId", "data-v-52806adf"]]), tt = Fe(Qs), eo = /* @__PURE__ */ J({
|
|
1188
1188
|
__name: "CloseIcon",
|
|
1189
1189
|
props: {
|
|
1190
1190
|
showBg: {
|
|
@@ -1215,7 +1215,7 @@ const Qs = /* @__PURE__ */ At(Js, [["__scopeId", "data-v-52806adf"]]), tt = Fe(Q
|
|
|
1215
1215
|
));
|
|
1216
1216
|
}
|
|
1217
1217
|
});
|
|
1218
|
-
const to = /* @__PURE__ */
|
|
1218
|
+
const to = /* @__PURE__ */ hi(eo, [["__scopeId", "data-v-da39e979"]]), io = { class: "base-header" }, no = /* @__PURE__ */ J({
|
|
1219
1219
|
__name: "IkBaseDialog",
|
|
1220
1220
|
props: /* @__PURE__ */ Ct({
|
|
1221
1221
|
title: { default: "" },
|
|
@@ -1236,7 +1236,7 @@ const to = /* @__PURE__ */ At(eo, [["__scopeId", "data-v-da39e979"]]), io = { cl
|
|
|
1236
1236
|
}),
|
|
1237
1237
|
emits: ["update:modelValue"],
|
|
1238
1238
|
setup(a) {
|
|
1239
|
-
const o = a, r =
|
|
1239
|
+
const o = a, r = ci(a, "modelValue"), t = de(o.fullscreen), e = () => {
|
|
1240
1240
|
t.value = !t.value;
|
|
1241
1241
|
}, i = J({
|
|
1242
1242
|
setup() {
|
|
@@ -1260,7 +1260,7 @@ const to = /* @__PURE__ */ At(eo, [["__scopeId", "data-v-da39e979"]]), io = { cl
|
|
|
1260
1260
|
}), or({
|
|
1261
1261
|
icon: Q(() => [
|
|
1262
1262
|
Oe(n.$slots, "title", {}, () => [
|
|
1263
|
-
|
|
1263
|
+
Qt(
|
|
1264
1264
|
nt(n.title),
|
|
1265
1265
|
1
|
|
1266
1266
|
/* TEXT */
|
|
@@ -1270,7 +1270,7 @@ const to = /* @__PURE__ */ At(eo, [["__scopeId", "data-v-da39e979"]]), io = { cl
|
|
|
1270
1270
|
header: Q(() => [
|
|
1271
1271
|
T("div", io, [
|
|
1272
1272
|
Oe(n.$slots, "header", {}, () => [
|
|
1273
|
-
|
|
1273
|
+
Qt(
|
|
1274
1274
|
nt(n.title),
|
|
1275
1275
|
1
|
|
1276
1276
|
/* TEXT */
|
|
@@ -1656,40 +1656,39 @@ const fo = /* @__PURE__ */ J({
|
|
|
1656
1656
|
/* STYLE */
|
|
1657
1657
|
));
|
|
1658
1658
|
}
|
|
1659
|
-
});
|
|
1660
|
-
const ho = /* @__PURE__ */ At(fo, [["__scopeId", "data-v-98d51ef9"]]), go = Fe(ho);
|
|
1659
|
+
}), ho = Fe(fo);
|
|
1661
1660
|
var Ni;
|
|
1662
|
-
const En = typeof window < "u",
|
|
1661
|
+
const En = typeof window < "u", go = (a) => typeof a == "string", po = () => {
|
|
1663
1662
|
};
|
|
1664
1663
|
En && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1665
1664
|
function Sn(a) {
|
|
1666
1665
|
return typeof a == "function" ? a() : E(a);
|
|
1667
1666
|
}
|
|
1668
|
-
function
|
|
1667
|
+
function vo(a) {
|
|
1669
1668
|
return a;
|
|
1670
1669
|
}
|
|
1671
|
-
function
|
|
1670
|
+
function mo(a) {
|
|
1672
1671
|
return ar() ? (lr(a), !0) : !1;
|
|
1673
1672
|
}
|
|
1674
|
-
function
|
|
1673
|
+
function yo(a) {
|
|
1675
1674
|
var o;
|
|
1676
1675
|
const r = Sn(a);
|
|
1677
1676
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
1678
1677
|
}
|
|
1679
|
-
const
|
|
1678
|
+
const _o = En ? window : void 0;
|
|
1680
1679
|
function pt(...a) {
|
|
1681
1680
|
let o, r, t, e;
|
|
1682
|
-
if (
|
|
1683
|
-
return
|
|
1681
|
+
if (go(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = _o) : [o, r, t, e] = a, !o)
|
|
1682
|
+
return po;
|
|
1684
1683
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1685
1684
|
const i = [], n = () => {
|
|
1686
1685
|
i.forEach((c) => c()), i.length = 0;
|
|
1687
|
-
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ut(() => [
|
|
1686
|
+
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ut(() => [yo(o), Sn(e)], ([c, h]) => {
|
|
1688
1687
|
n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
|
|
1689
1688
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1690
1689
|
l(), n();
|
|
1691
1690
|
};
|
|
1692
|
-
return
|
|
1691
|
+
return mo(u), u;
|
|
1693
1692
|
}
|
|
1694
1693
|
const Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
|
|
1695
1694
|
Bi[Hi] = Bi[Hi] || {};
|
|
@@ -1697,15 +1696,15 @@ var Ui;
|
|
|
1697
1696
|
(function(a) {
|
|
1698
1697
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
1699
1698
|
})(Ui || (Ui = {}));
|
|
1700
|
-
var
|
|
1699
|
+
var Co = Object.defineProperty, zi = Object.getOwnPropertySymbols, ko = Object.prototype.hasOwnProperty, wo = Object.prototype.propertyIsEnumerable, Vi = (a, o, r) => o in a ? Co(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, bo = (a, o) => {
|
|
1701
1700
|
for (var r in o || (o = {}))
|
|
1702
|
-
|
|
1701
|
+
ko.call(o, r) && Vi(a, r, o[r]);
|
|
1703
1702
|
if (zi)
|
|
1704
1703
|
for (var r of zi(o))
|
|
1705
|
-
|
|
1704
|
+
wo.call(o, r) && Vi(a, r, o[r]);
|
|
1706
1705
|
return a;
|
|
1707
1706
|
};
|
|
1708
|
-
const
|
|
1707
|
+
const To = {
|
|
1709
1708
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1710
1709
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1711
1710
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1731,10 +1730,10 @@ const Eo = {
|
|
|
1731
1730
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1732
1731
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1733
1732
|
};
|
|
1734
|
-
|
|
1735
|
-
linear:
|
|
1736
|
-
},
|
|
1737
|
-
const
|
|
1733
|
+
bo({
|
|
1734
|
+
linear: vo
|
|
1735
|
+
}, To);
|
|
1736
|
+
const Eo = {
|
|
1738
1737
|
/**
|
|
1739
1738
|
* @description preview link list.
|
|
1740
1739
|
*/
|
|
@@ -1804,15 +1803,15 @@ const So = {
|
|
|
1804
1803
|
crossorigin: {
|
|
1805
1804
|
type: ["anonymous", "use-credentials", ""]
|
|
1806
1805
|
}
|
|
1807
|
-
},
|
|
1806
|
+
}, So = {
|
|
1808
1807
|
close: () => !0,
|
|
1809
|
-
switch: (a) =>
|
|
1810
|
-
rotate: (a) =>
|
|
1811
|
-
},
|
|
1808
|
+
switch: (a) => ii.isNumber(a),
|
|
1809
|
+
rotate: (a) => ii.isNumber(a)
|
|
1810
|
+
}, xo = ["src", "crossorigin"], Io = /* @__PURE__ */ J({
|
|
1812
1811
|
name: "ElImageViewer",
|
|
1813
1812
|
__name: "IkImageViewer",
|
|
1814
|
-
props:
|
|
1815
|
-
emits:
|
|
1813
|
+
props: Eo,
|
|
1814
|
+
emits: So,
|
|
1816
1815
|
setup(a, { expose: o, emit: r }) {
|
|
1817
1816
|
const t = (N) => Object.keys(N), e = {
|
|
1818
1817
|
CONTAIN: {
|
|
@@ -1845,17 +1844,17 @@ const So = {
|
|
|
1845
1844
|
let _e = X / N, Ie = ge / N;
|
|
1846
1845
|
const st = W * Math.PI / 180, Ai = Math.cos(st), Di = Math.sin(st);
|
|
1847
1846
|
_e = _e * Ai + Ie * Di, Ie = Ie * Ai - X / N * Di;
|
|
1848
|
-
const
|
|
1847
|
+
const Nt = {
|
|
1849
1848
|
transform: `scale(${N}) rotate(${W}deg) translate(${_e}px, ${Ie}px)`,
|
|
1850
1849
|
transition: ye ? "transform .3s" : ""
|
|
1851
1850
|
};
|
|
1852
|
-
return m.value.name === e.CONTAIN.name && (
|
|
1851
|
+
return m.value.name === e.CONTAIN.name && (Nt.maxWidth = Nt.maxHeight = "100%"), Nt;
|
|
1853
1852
|
});
|
|
1854
1853
|
function Z() {
|
|
1855
1854
|
ne(), n("close");
|
|
1856
1855
|
}
|
|
1857
1856
|
function z() {
|
|
1858
|
-
const N =
|
|
1857
|
+
const N = Bt.throttle((X) => {
|
|
1859
1858
|
switch (X.code) {
|
|
1860
1859
|
case Ke.esc:
|
|
1861
1860
|
i.closeOnPressEscape && Z();
|
|
@@ -1876,7 +1875,7 @@ const So = {
|
|
|
1876
1875
|
He("zoomOut");
|
|
1877
1876
|
break;
|
|
1878
1877
|
}
|
|
1879
|
-
}), W =
|
|
1878
|
+
}), W = Bt.throttle((X) => {
|
|
1880
1879
|
const ge = X.deltaY || X.deltaX;
|
|
1881
1880
|
He(ge < 0 ? "zoomIn" : "zoomOut", {
|
|
1882
1881
|
zoomRate: i.zoomRate,
|
|
@@ -1900,7 +1899,7 @@ const So = {
|
|
|
1900
1899
|
if (p.value || N.button !== 0 || !c.value)
|
|
1901
1900
|
return;
|
|
1902
1901
|
y.value.enableTransition = !1;
|
|
1903
|
-
const { offsetX: W, offsetY: X } = y.value, ge = N.pageX, ye = N.pageY, _e =
|
|
1902
|
+
const { offsetX: W, offsetY: X } = y.value, ge = N.pageX, ye = N.pageY, _e = Bt.throttle((st) => {
|
|
1904
1903
|
y.value = {
|
|
1905
1904
|
...y.value,
|
|
1906
1905
|
offsetX: W + st.pageX - ge,
|
|
@@ -1926,15 +1925,15 @@ const So = {
|
|
|
1926
1925
|
const N = t(e), W = Object.values(e), X = m.value.name, ye = ((W == null ? void 0 : W.findIndex((_e) => _e.name === X)) + 1) % N.length;
|
|
1927
1926
|
m.value = e[N[ye]], xi();
|
|
1928
1927
|
}
|
|
1929
|
-
function
|
|
1928
|
+
function Ft(N) {
|
|
1930
1929
|
const W = i.urlList.length;
|
|
1931
1930
|
g.value = (N + W) % W;
|
|
1932
1931
|
}
|
|
1933
1932
|
function Pi() {
|
|
1934
|
-
w.value && !i.infinite ||
|
|
1933
|
+
w.value && !i.infinite || Ft(g.value - 1);
|
|
1935
1934
|
}
|
|
1936
1935
|
function Li() {
|
|
1937
|
-
P.value && !i.infinite ||
|
|
1936
|
+
P.value && !i.infinite || Ft(g.value + 1);
|
|
1938
1937
|
}
|
|
1939
1938
|
function He(N, W = {}) {
|
|
1940
1939
|
if (p.value)
|
|
@@ -1966,7 +1965,7 @@ const So = {
|
|
|
1966
1965
|
y.value.enableTransition = Ie;
|
|
1967
1966
|
}
|
|
1968
1967
|
return ut(F, () => {
|
|
1969
|
-
|
|
1968
|
+
fi(() => {
|
|
1970
1969
|
const N = h.value[0];
|
|
1971
1970
|
N != null && N.complete || (p.value = !0);
|
|
1972
1971
|
});
|
|
@@ -1979,7 +1978,7 @@ const So = {
|
|
|
1979
1978
|
/**
|
|
1980
1979
|
* @description manually switch image
|
|
1981
1980
|
*/
|
|
1982
|
-
setActiveItem:
|
|
1981
|
+
setActiveItem: Ft
|
|
1983
1982
|
}), (N, W) => (S(), pe(_n, { to: "body" }, [
|
|
1984
1983
|
G(Cn, {
|
|
1985
1984
|
name: "viewer-fade",
|
|
@@ -2000,7 +1999,7 @@ const So = {
|
|
|
2000
1999
|
"div",
|
|
2001
2000
|
{
|
|
2002
2001
|
class: K(E(l).e("mask")),
|
|
2003
|
-
onClick: W[0] || (W[0] =
|
|
2002
|
+
onClick: W[0] || (W[0] = ei((X) => N.hideOnClickModal && Z(), ["self"]))
|
|
2004
2003
|
},
|
|
2005
2004
|
null,
|
|
2006
2005
|
2
|
|
@@ -2162,7 +2161,7 @@ const So = {
|
|
|
2162
2161
|
(S(!0), D(
|
|
2163
2162
|
Ve,
|
|
2164
2163
|
null,
|
|
2165
|
-
|
|
2164
|
+
ti(N.urlList, (X, ge) => dr((S(), D("img", {
|
|
2166
2165
|
ref_for: !0,
|
|
2167
2166
|
ref: (ye) => h.value[ge] = ye,
|
|
2168
2167
|
key: X,
|
|
@@ -2173,7 +2172,7 @@ const So = {
|
|
|
2173
2172
|
onLoad: ae,
|
|
2174
2173
|
onError: le,
|
|
2175
2174
|
onMousedown: we
|
|
2176
|
-
}, null, 46,
|
|
2175
|
+
}, null, 46, xo)), [
|
|
2177
2176
|
[gr, ge === g.value]
|
|
2178
2177
|
])),
|
|
2179
2178
|
128
|
|
@@ -2194,7 +2193,7 @@ const So = {
|
|
|
2194
2193
|
})
|
|
2195
2194
|
]));
|
|
2196
2195
|
}
|
|
2197
|
-
}),
|
|
2196
|
+
}), Po = Fe(Io);
|
|
2198
2197
|
function ji(a, o) {
|
|
2199
2198
|
var r = Object.keys(a);
|
|
2200
2199
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2258,19 +2257,19 @@ function L(a, o) {
|
|
|
2258
2257
|
}
|
|
2259
2258
|
}), Object.defineProperty(a, "prototype", {
|
|
2260
2259
|
writable: !1
|
|
2261
|
-
}), o &&
|
|
2260
|
+
}), o && ri(a, o);
|
|
2262
2261
|
}
|
|
2263
2262
|
function O(a) {
|
|
2264
2263
|
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
2265
2264
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
2266
2265
|
}, O(a);
|
|
2267
2266
|
}
|
|
2268
|
-
function
|
|
2269
|
-
return
|
|
2267
|
+
function ri(a, o) {
|
|
2268
|
+
return ri = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
2270
2269
|
return t.__proto__ = e, t;
|
|
2271
|
-
},
|
|
2270
|
+
}, ri(a, o);
|
|
2272
2271
|
}
|
|
2273
|
-
function
|
|
2272
|
+
function Lo() {
|
|
2274
2273
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2275
2274
|
return !1;
|
|
2276
2275
|
if (typeof Proxy == "function")
|
|
@@ -2295,7 +2294,7 @@ function pi(a, o) {
|
|
|
2295
2294
|
return v(a);
|
|
2296
2295
|
}
|
|
2297
2296
|
function A(a) {
|
|
2298
|
-
var o =
|
|
2297
|
+
var o = Lo();
|
|
2299
2298
|
return function() {
|
|
2300
2299
|
var t = O(a), e;
|
|
2301
2300
|
if (o) {
|
|
@@ -2306,14 +2305,14 @@ function A(a) {
|
|
|
2306
2305
|
return pi(this, e);
|
|
2307
2306
|
};
|
|
2308
2307
|
}
|
|
2309
|
-
function
|
|
2308
|
+
function Ao(a, o) {
|
|
2310
2309
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
2311
2310
|
;
|
|
2312
2311
|
return a;
|
|
2313
2312
|
}
|
|
2314
2313
|
function M() {
|
|
2315
2314
|
return typeof Reflect < "u" && Reflect.get ? M = Reflect.get.bind() : M = function(o, r, t) {
|
|
2316
|
-
var e =
|
|
2315
|
+
var e = Ao(o, r);
|
|
2317
2316
|
if (e) {
|
|
2318
2317
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2319
2318
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -2321,38 +2320,38 @@ function M() {
|
|
|
2321
2320
|
}, M.apply(this, arguments);
|
|
2322
2321
|
}
|
|
2323
2322
|
function ve(a) {
|
|
2324
|
-
return
|
|
2323
|
+
return Do(a) || Oo(a) || Ro(a) || Mo();
|
|
2325
2324
|
}
|
|
2326
|
-
function
|
|
2325
|
+
function Do(a) {
|
|
2327
2326
|
if (Array.isArray(a))
|
|
2328
|
-
return
|
|
2327
|
+
return si(a);
|
|
2329
2328
|
}
|
|
2330
|
-
function
|
|
2329
|
+
function Oo(a) {
|
|
2331
2330
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2332
2331
|
return Array.from(a);
|
|
2333
2332
|
}
|
|
2334
|
-
function
|
|
2333
|
+
function Ro(a, o) {
|
|
2335
2334
|
if (a) {
|
|
2336
2335
|
if (typeof a == "string")
|
|
2337
|
-
return
|
|
2336
|
+
return si(a, o);
|
|
2338
2337
|
var r = Object.prototype.toString.call(a).slice(8, -1);
|
|
2339
2338
|
if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
|
|
2340
2339
|
return Array.from(a);
|
|
2341
2340
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
2342
|
-
return
|
|
2341
|
+
return si(a, o);
|
|
2343
2342
|
}
|
|
2344
2343
|
}
|
|
2345
|
-
function
|
|
2344
|
+
function si(a, o) {
|
|
2346
2345
|
(o == null || o > a.length) && (o = a.length);
|
|
2347
2346
|
for (var r = 0, t = new Array(o); r < o; r++)
|
|
2348
2347
|
t[r] = a[r];
|
|
2349
2348
|
return t;
|
|
2350
2349
|
}
|
|
2351
|
-
function
|
|
2350
|
+
function Mo() {
|
|
2352
2351
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2353
2352
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2354
2353
|
}
|
|
2355
|
-
function
|
|
2354
|
+
function Fo(a, o) {
|
|
2356
2355
|
if (typeof a != "object" || a === null)
|
|
2357
2356
|
return a;
|
|
2358
2357
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2365,7 +2364,7 @@ function No(a, o) {
|
|
|
2365
2364
|
return (o === "string" ? String : Number)(a);
|
|
2366
2365
|
}
|
|
2367
2366
|
function xn(a) {
|
|
2368
|
-
var o =
|
|
2367
|
+
var o = Fo(a, "string");
|
|
2369
2368
|
return typeof o == "symbol" ? o : String(o);
|
|
2370
2369
|
}
|
|
2371
2370
|
var In = { exports: {} };
|
|
@@ -2481,37 +2480,37 @@ var In = { exports: {} };
|
|
|
2481
2480
|
})(In);
|
|
2482
2481
|
var Pn = In.exports;
|
|
2483
2482
|
const Ln = /* @__PURE__ */ di(Pn);
|
|
2484
|
-
var
|
|
2483
|
+
var No = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Ht = {
|
|
2485
2484
|
info: "color: #525252; background-color: #90ee90;",
|
|
2486
2485
|
error: "color: #525252; background-color: red;",
|
|
2487
2486
|
warn: "color: #525252; background-color: yellow; "
|
|
2488
|
-
},
|
|
2487
|
+
}, Ut = "%c[xgplayer]", H = {
|
|
2489
2488
|
config: {
|
|
2490
|
-
debug:
|
|
2489
|
+
debug: No ? 3 : 0
|
|
2491
2490
|
},
|
|
2492
2491
|
logInfo: function(o) {
|
|
2493
2492
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2494
2493
|
e[i - 1] = arguments[i];
|
|
2495
|
-
this.config.debug >= 3 && (r = console).log.apply(r, [
|
|
2494
|
+
this.config.debug >= 3 && (r = console).log.apply(r, [Ut, Ht.info, o].concat(e));
|
|
2496
2495
|
},
|
|
2497
2496
|
logWarn: function(o) {
|
|
2498
2497
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
2499
2498
|
e[i - 1] = arguments[i];
|
|
2500
|
-
this.config.debug >= 1 && (r = console).warn.apply(r, [
|
|
2499
|
+
this.config.debug >= 1 && (r = console).warn.apply(r, [Ut, Ht.warn, o].concat(e));
|
|
2501
2500
|
},
|
|
2502
2501
|
logError: function(o) {
|
|
2503
2502
|
var r;
|
|
2504
2503
|
if (!(this.config.debug < 1)) {
|
|
2505
2504
|
for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
2506
2505
|
i[n - 1] = arguments[n];
|
|
2507
|
-
(r = console)[t].apply(r, [
|
|
2506
|
+
(r = console)[t].apply(r, [Ut, Ht.error, o].concat(i));
|
|
2508
2507
|
}
|
|
2509
2508
|
}
|
|
2510
2509
|
};
|
|
2511
|
-
function
|
|
2510
|
+
function Bo(a) {
|
|
2512
2511
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2513
2512
|
}
|
|
2514
|
-
var
|
|
2513
|
+
var Ho = /* @__PURE__ */ function() {
|
|
2515
2514
|
function a(o) {
|
|
2516
2515
|
x(this, a), this.bufferedList = o;
|
|
2517
2516
|
}
|
|
@@ -2757,7 +2756,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
2757
2756
|
a.style[t] = o[t];
|
|
2758
2757
|
});
|
|
2759
2758
|
};
|
|
2760
|
-
function
|
|
2759
|
+
function Uo(a, o) {
|
|
2761
2760
|
for (var r = 0, t = o.length; r < t; r++)
|
|
2762
2761
|
if (a.indexOf(o[r]) > -1)
|
|
2763
2762
|
return !0;
|
|
@@ -2771,7 +2770,7 @@ f.filterStyleFromText = function(a) {
|
|
|
2771
2770
|
return t.map(function(n) {
|
|
2772
2771
|
if (n) {
|
|
2773
2772
|
var s = n.split(":");
|
|
2774
|
-
s.length > 1 && (
|
|
2773
|
+
s.length > 1 && (Uo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
2775
2774
|
}
|
|
2776
2775
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
2777
2776
|
a.style[n] = i[n];
|
|
@@ -2836,7 +2835,7 @@ f.getBuffered2 = function(a) {
|
|
|
2836
2835
|
}
|
|
2837
2836
|
else
|
|
2838
2837
|
e = r;
|
|
2839
|
-
return new
|
|
2838
|
+
return new Ho(e);
|
|
2840
2839
|
};
|
|
2841
2840
|
f.getEventPos = function(a) {
|
|
2842
2841
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -2960,7 +2959,7 @@ function An(a) {
|
|
|
2960
2959
|
var o = se(a);
|
|
2961
2960
|
return a !== null && (o === "object" || o === "function");
|
|
2962
2961
|
}
|
|
2963
|
-
function
|
|
2962
|
+
function zo(a, o, r) {
|
|
2964
2963
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
2965
2964
|
if (typeof a != "function")
|
|
2966
2965
|
throw new TypeError("Expected a function");
|
|
@@ -3019,21 +3018,21 @@ function Vo(a, o, r) {
|
|
|
3019
3018
|
}
|
|
3020
3019
|
return Z.cancel = U, Z.flush = R, Z.pending = te, Z;
|
|
3021
3020
|
}
|
|
3022
|
-
function
|
|
3021
|
+
function Vo(a, o, r) {
|
|
3023
3022
|
var t = !0, e = !0;
|
|
3024
3023
|
if (typeof a != "function")
|
|
3025
3024
|
throw new TypeError("Expected a function");
|
|
3026
|
-
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
3025
|
+
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), zo(a, o, {
|
|
3027
3026
|
leading: t,
|
|
3028
3027
|
trailing: e,
|
|
3029
3028
|
maxWait: o
|
|
3030
3029
|
});
|
|
3031
3030
|
}
|
|
3032
|
-
function
|
|
3031
|
+
function jo() {
|
|
3033
3032
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3034
3033
|
return a === "zh-cn" && (a = "zh"), a;
|
|
3035
3034
|
}
|
|
3036
|
-
function
|
|
3035
|
+
function Wo(a, o, r) {
|
|
3037
3036
|
if (a) {
|
|
3038
3037
|
var t = a.getAttribute(r);
|
|
3039
3038
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -3042,7 +3041,7 @@ function Go(a, o, r) {
|
|
|
3042
3041
|
var Gi = {
|
|
3043
3042
|
android: /(Android)\s([\d.]+)/,
|
|
3044
3043
|
ios: /(Version)\/([\d.]+)/
|
|
3045
|
-
},
|
|
3044
|
+
}, Go = ["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 = {
|
|
3046
3045
|
get device() {
|
|
3047
3046
|
var a = B.os;
|
|
3048
3047
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -3105,7 +3104,7 @@ var Gi = {
|
|
|
3105
3104
|
if (this.supportResult)
|
|
3106
3105
|
return this.supportResult;
|
|
3107
3106
|
var r = document.createElement("video");
|
|
3108
|
-
return typeof r.canPlayType == "function" &&
|
|
3107
|
+
return typeof r.canPlayType == "function" && Go.map(function(t) {
|
|
3109
3108
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
3110
3109
|
}), this.supportResult = o, r = null, o;
|
|
3111
3110
|
},
|
|
@@ -3144,7 +3143,7 @@ var Gi = {
|
|
|
3144
3143
|
return Promise.resolve(r);
|
|
3145
3144
|
}
|
|
3146
3145
|
}
|
|
3147
|
-
},
|
|
3146
|
+
}, oi = "3.0.18", $i = {
|
|
3148
3147
|
1: "media",
|
|
3149
3148
|
2: "media",
|
|
3150
3149
|
3: "media",
|
|
@@ -3174,7 +3173,7 @@ var Gi = {
|
|
|
3174
3173
|
var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, p = r.errorCode || e.code;
|
|
3175
3174
|
Ki[p] && (p = Ki[p]);
|
|
3176
3175
|
var g = {
|
|
3177
|
-
playerVersion:
|
|
3176
|
+
playerVersion: oi,
|
|
3178
3177
|
currentTime: n,
|
|
3179
3178
|
duration: i,
|
|
3180
3179
|
ended: s,
|
|
@@ -3193,33 +3192,33 @@ var Gi = {
|
|
|
3193
3192
|
}), g;
|
|
3194
3193
|
} else if (arguments.length > 1) {
|
|
3195
3194
|
for (var m = {
|
|
3196
|
-
playerVersion:
|
|
3195
|
+
playerVersion: oi,
|
|
3197
3196
|
domain: document.domain
|
|
3198
3197
|
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
3199
3198
|
m[y[k]] = arguments[k];
|
|
3200
3199
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
3201
3200
|
}
|
|
3202
3201
|
}
|
|
3203
|
-
), he = "play", vi = "playing", We = "ended", rt = "pause", dt = "error",
|
|
3202
|
+
), he = "play", vi = "playing", We = "ended", rt = "pause", dt = "error", At = "seeking", Se = "seeked", fe = "timeupdate", gt = "waiting", Ee = "canplay", $o = "canplaythrough", Ne = "durationchange", Dn = "volumechange", xe = "loadeddata", Ko = "loadedmetadata", On = "ratechange", Rn = "progress", mi = "loadstart", Ge = "emptied", Yo = "stalled", Xo = "suspend", qo = "abort", Zo = "bufferedChange", yi = "focus", Mn = "blur", _i = "ready", Fn = "urlNull", je = "autoplay_started", Ci = "autoplay_was_prevented", Dt = "complete", wt = "replay", ki = "destroy", Ot = "urlchange", ai = "download_speed_change", Nn = "leaveplayer", Bn = "enterplayer", Hn = "loading", be = "fullscreen_change", bt = "cssFullscreen_change", Tt = "mini_state_change", wi = "definition_change", Jo = "before_definition_change", li = "after_definition_change", Qo = "SEI_PARSED", ea = "retry", Re = "video_resize", ui = "pip_change", Un = "rotate", zn = "screenShot", Et = "playnext", Vn = "shortcut", jn = "xglog", St = "user_action", Rt = "reset", Wn = "source_error", Gn = "source_success", ta = "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 = {
|
|
3204
3203
|
STATS_INFO: "stats_info",
|
|
3205
3204
|
STATS_DOWNLOAD: "stats_download",
|
|
3206
3205
|
STATS_RESET: "stats_reset"
|
|
3207
3206
|
}, Yn = "fps_stuck";
|
|
3208
|
-
const
|
|
3207
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3209
3208
|
__proto__: null,
|
|
3210
|
-
ABORT:
|
|
3211
|
-
AFTER_DEFINITION_CHANGE:
|
|
3209
|
+
ABORT: qo,
|
|
3210
|
+
AFTER_DEFINITION_CHANGE: li,
|
|
3212
3211
|
AUTOPLAY_PREVENTED: Ci,
|
|
3213
3212
|
AUTOPLAY_STARTED: je,
|
|
3214
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3215
|
-
BUFFER_CHANGE:
|
|
3213
|
+
BEFORE_DEFINITION_CHANGE: Jo,
|
|
3214
|
+
BUFFER_CHANGE: Zo,
|
|
3216
3215
|
CANPLAY: Ee,
|
|
3217
|
-
CANPLAY_THROUGH:
|
|
3218
|
-
COMPLETE:
|
|
3216
|
+
CANPLAY_THROUGH: $o,
|
|
3217
|
+
COMPLETE: Dt,
|
|
3219
3218
|
CSS_FULLSCREEN_CHANGE: bt,
|
|
3220
3219
|
DEFINITION_CHANGE: wi,
|
|
3221
3220
|
DESTROY: ki,
|
|
3222
|
-
DOWNLOAD_SPEED_CHANGE:
|
|
3221
|
+
DOWNLOAD_SPEED_CHANGE: ai,
|
|
3223
3222
|
DURATION_CHANGE: Ne,
|
|
3224
3223
|
EMPTIED: Ge,
|
|
3225
3224
|
ENDED: We,
|
|
@@ -3229,12 +3228,12 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3229
3228
|
FULLSCREEN_CHANGE: be,
|
|
3230
3229
|
LEAVE_PLAYER: Nn,
|
|
3231
3230
|
LOADED_DATA: xe,
|
|
3232
|
-
LOADED_METADATA:
|
|
3231
|
+
LOADED_METADATA: Ko,
|
|
3233
3232
|
LOADING: Hn,
|
|
3234
3233
|
LOAD_START: mi,
|
|
3235
3234
|
MINI_STATE_CHANGE: Tt,
|
|
3236
3235
|
PAUSE: rt,
|
|
3237
|
-
PIP_CHANGE:
|
|
3236
|
+
PIP_CHANGE: ui,
|
|
3238
3237
|
PLAY: he,
|
|
3239
3238
|
PLAYER_BLUR: Mn,
|
|
3240
3239
|
PLAYER_FOCUS: yi,
|
|
@@ -3244,22 +3243,22 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3244
3243
|
RATE_CHANGE: On,
|
|
3245
3244
|
READY: _i,
|
|
3246
3245
|
REPLAY: wt,
|
|
3247
|
-
RESET:
|
|
3248
|
-
RETRY:
|
|
3246
|
+
RESET: Rt,
|
|
3247
|
+
RETRY: ea,
|
|
3249
3248
|
ROTATE: Un,
|
|
3250
3249
|
SCREEN_SHOT: zn,
|
|
3251
3250
|
SEEKED: Se,
|
|
3252
|
-
SEEKING:
|
|
3253
|
-
SEI_PARSED:
|
|
3251
|
+
SEEKING: At,
|
|
3252
|
+
SEI_PARSED: Qo,
|
|
3254
3253
|
SHORTCUT: Vn,
|
|
3255
3254
|
SOURCE_ERROR: Wn,
|
|
3256
3255
|
SOURCE_SUCCESS: Gn,
|
|
3257
|
-
STALLED:
|
|
3256
|
+
STALLED: Yo,
|
|
3258
3257
|
STATS_EVENTS: Kn,
|
|
3259
|
-
SUSPEND:
|
|
3260
|
-
SWITCH_SUBTITLE:
|
|
3258
|
+
SUSPEND: Xo,
|
|
3259
|
+
SWITCH_SUBTITLE: ta,
|
|
3261
3260
|
TIME_UPDATE: fe,
|
|
3262
|
-
URL_CHANGE:
|
|
3261
|
+
URL_CHANGE: Ot,
|
|
3263
3262
|
URL_NULL: Fn,
|
|
3264
3263
|
USER_ACTION: St,
|
|
3265
3264
|
VIDEO_EVENTS: $n,
|
|
@@ -3268,10 +3267,10 @@ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3268
3267
|
WAITING: gt,
|
|
3269
3268
|
XGLOG: jn
|
|
3270
3269
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3271
|
-
function
|
|
3270
|
+
function zt(a, o) {
|
|
3272
3271
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3273
3272
|
}
|
|
3274
|
-
function
|
|
3273
|
+
function na(a, o) {
|
|
3275
3274
|
return function(r, t) {
|
|
3276
3275
|
var e = {
|
|
3277
3276
|
player: o,
|
|
@@ -3296,17 +3295,17 @@ function ra(a, o) {
|
|
|
3296
3295
|
o._rate = o.media && o.media.playbackRate;
|
|
3297
3296
|
}
|
|
3298
3297
|
if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
|
|
3299
|
-
var n =
|
|
3298
|
+
var n = zt.bind(o, a, e);
|
|
3300
3299
|
try {
|
|
3301
3300
|
o.mediaEventMiddleware[a].call(o, e, n);
|
|
3302
3301
|
} catch (s) {
|
|
3303
|
-
throw
|
|
3302
|
+
throw zt.call(o, a, e), s;
|
|
3304
3303
|
}
|
|
3305
3304
|
} else
|
|
3306
|
-
|
|
3305
|
+
zt.call(o, a, e);
|
|
3307
3306
|
};
|
|
3308
3307
|
}
|
|
3309
|
-
var
|
|
3308
|
+
var ra = /* @__PURE__ */ function(a) {
|
|
3310
3309
|
L(r, a);
|
|
3311
3310
|
var o = A(r);
|
|
3312
3311
|
function r(t) {
|
|
@@ -3350,7 +3349,7 @@ var sa = /* @__PURE__ */ function(a) {
|
|
|
3350
3349
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3351
3350
|
this._evHandlers || (this._evHandlers = $n.map(function(n) {
|
|
3352
3351
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3353
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3352
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, na(n, e));
|
|
3354
3353
|
})), this._evHandlers.forEach(function(n) {
|
|
3355
3354
|
var s = Object.keys(n)[0];
|
|
3356
3355
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3660,7 +3659,7 @@ var sa = /* @__PURE__ */ function(a) {
|
|
|
3660
3659
|
},
|
|
3661
3660
|
set: function(e) {
|
|
3662
3661
|
if (this.media) {
|
|
3663
|
-
if (this.emit(
|
|
3662
|
+
if (this.emit(Ot, e), this.emit(gt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3664
3663
|
this.onWaiting();
|
|
3665
3664
|
return;
|
|
3666
3665
|
}
|
|
@@ -3724,7 +3723,7 @@ var sa = /* @__PURE__ */ function(a) {
|
|
|
3724
3723
|
M(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3725
3724
|
}
|
|
3726
3725
|
}]), r;
|
|
3727
|
-
}(Ln),
|
|
3726
|
+
}(Ln), sa = /* @__PURE__ */ function() {
|
|
3728
3727
|
function a() {
|
|
3729
3728
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3730
3729
|
name: "xgplayer",
|
|
@@ -3900,7 +3899,7 @@ function Te(a, o, r) {
|
|
|
3900
3899
|
} else
|
|
3901
3900
|
return r.call.apply(r, [a, a].concat(e));
|
|
3902
3901
|
}
|
|
3903
|
-
function
|
|
3902
|
+
function Vt(a, o) {
|
|
3904
3903
|
H.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
|
|
3905
3904
|
}
|
|
3906
3905
|
var Me = /* @__PURE__ */ function() {
|
|
@@ -3967,7 +3966,7 @@ var Me = /* @__PURE__ */ function() {
|
|
|
3967
3966
|
value: function(r, t) {
|
|
3968
3967
|
var e = this;
|
|
3969
3968
|
if (!r || !t || !this.player) {
|
|
3970
|
-
|
|
3969
|
+
Vt(this.pluginName, "plugin.on(event, callback)");
|
|
3971
3970
|
return;
|
|
3972
3971
|
}
|
|
3973
3972
|
typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3979,7 +3978,7 @@ var Me = /* @__PURE__ */ function() {
|
|
|
3979
3978
|
value: function(r, t) {
|
|
3980
3979
|
var e = this;
|
|
3981
3980
|
if (!r || !t || !this.player) {
|
|
3982
|
-
|
|
3981
|
+
Vt(this.pluginName, "plugin.once(event, callback)");
|
|
3983
3982
|
return;
|
|
3984
3983
|
}
|
|
3985
3984
|
typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -3991,7 +3990,7 @@ var Me = /* @__PURE__ */ function() {
|
|
|
3991
3990
|
value: function(r, t) {
|
|
3992
3991
|
var e = this;
|
|
3993
3992
|
if (!r || !t || !this.player) {
|
|
3994
|
-
|
|
3993
|
+
Vt(this.pluginName, "plugin.off(event, callback)");
|
|
3995
3994
|
return;
|
|
3996
3995
|
}
|
|
3997
3996
|
typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
|
|
@@ -4088,40 +4087,40 @@ var Me = /* @__PURE__ */ function() {
|
|
|
4088
4087
|
return "pluginName";
|
|
4089
4088
|
}
|
|
4090
4089
|
}]), a;
|
|
4091
|
-
}(),
|
|
4090
|
+
}(), oa = 9;
|
|
4092
4091
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
4093
4092
|
var Ye = Element.prototype;
|
|
4094
4093
|
Ye.matches = Ye.matchesSelector || Ye.mozMatchesSelector || Ye.msMatchesSelector || Ye.oMatchesSelector || Ye.webkitMatchesSelector;
|
|
4095
4094
|
}
|
|
4096
|
-
function
|
|
4097
|
-
for (; a && a.nodeType !==
|
|
4095
|
+
function aa(a, o) {
|
|
4096
|
+
for (; a && a.nodeType !== oa; ) {
|
|
4098
4097
|
if (typeof a.matches == "function" && a.matches(o))
|
|
4099
4098
|
return a;
|
|
4100
4099
|
a = a.parentNode;
|
|
4101
4100
|
}
|
|
4102
4101
|
}
|
|
4103
|
-
var
|
|
4104
|
-
function
|
|
4105
|
-
var i =
|
|
4102
|
+
var la = aa, ua = la;
|
|
4103
|
+
function jt(a, o, r, t, e) {
|
|
4104
|
+
var i = fa.apply(this, arguments);
|
|
4106
4105
|
return a.addEventListener(r, i, e), {
|
|
4107
4106
|
destroy: function() {
|
|
4108
4107
|
a.removeEventListener(r, i, e);
|
|
4109
4108
|
}
|
|
4110
4109
|
};
|
|
4111
4110
|
}
|
|
4112
|
-
function
|
|
4113
|
-
return typeof a.addEventListener == "function" ?
|
|
4114
|
-
return
|
|
4111
|
+
function ca(a, o, r, t, e) {
|
|
4112
|
+
return typeof a.addEventListener == "function" ? jt.apply(null, arguments) : typeof r == "function" ? jt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
4113
|
+
return jt(i, o, r, t, e);
|
|
4115
4114
|
}));
|
|
4116
4115
|
}
|
|
4117
|
-
function
|
|
4116
|
+
function fa(a, o, r, t) {
|
|
4118
4117
|
return function(e) {
|
|
4119
|
-
e.delegateTarget =
|
|
4118
|
+
e.delegateTarget = ua(e.target, o), e.delegateTarget && t.call(a, e);
|
|
4120
4119
|
};
|
|
4121
4120
|
}
|
|
4122
|
-
var
|
|
4123
|
-
const Qi = /* @__PURE__ */ di(
|
|
4124
|
-
var
|
|
4121
|
+
var ha = ca;
|
|
4122
|
+
const Qi = /* @__PURE__ */ di(ha);
|
|
4123
|
+
var da = {
|
|
4125
4124
|
CONTROLS: "controls",
|
|
4126
4125
|
ROOT: "root"
|
|
4127
4126
|
}, $ = {
|
|
@@ -4138,13 +4137,13 @@ var ga = {
|
|
|
4138
4137
|
ICON_DISABLE: "xg-icon-disable",
|
|
4139
4138
|
ICON_HIDE: "xg-icon-hide"
|
|
4140
4139
|
};
|
|
4141
|
-
function
|
|
4140
|
+
function Wt(a) {
|
|
4142
4141
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4143
4142
|
}
|
|
4144
|
-
function
|
|
4143
|
+
function ga(a, o) {
|
|
4145
4144
|
return se(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
4146
4145
|
}
|
|
4147
|
-
function
|
|
4146
|
+
function pa(a, o) {
|
|
4148
4147
|
return se(a) === "object" && a.attr && se(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
4149
4148
|
o[r] = a.attr[r];
|
|
4150
4149
|
}), o;
|
|
@@ -4155,8 +4154,8 @@ function tn(a, o) {
|
|
|
4155
4154
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
4156
4155
|
a.setAttribute(n, t[n]);
|
|
4157
4156
|
}), a;
|
|
4158
|
-
if (
|
|
4159
|
-
return t.src =
|
|
4157
|
+
if (Wt(a) || Wt(a.url))
|
|
4158
|
+
return t.src = Wt(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
|
|
4160
4159
|
if (typeof a == "function")
|
|
4161
4160
|
try {
|
|
4162
4161
|
return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
|
|
@@ -4167,14 +4166,14 @@ function tn(a, o) {
|
|
|
4167
4166
|
}
|
|
4168
4167
|
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);
|
|
4169
4168
|
}
|
|
4170
|
-
function
|
|
4169
|
+
function va(a, o) {
|
|
4171
4170
|
var r = o.config.icons || o.playerConfig.icons;
|
|
4172
4171
|
Object.keys(a).map(function(t) {
|
|
4173
4172
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
4174
|
-
r && r[t] && (i =
|
|
4173
|
+
r && r[t] && (i = ga(r[t], i), n = pa(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;
|
|
4175
4174
|
});
|
|
4176
4175
|
}
|
|
4177
|
-
function
|
|
4176
|
+
function ma(a, o) {
|
|
4178
4177
|
Object.keys(a).map(function(r) {
|
|
4179
4178
|
Object.defineProperty(o.langText, r, {
|
|
4180
4179
|
get: function() {
|
|
@@ -4198,9 +4197,9 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4198
4197
|
var i = e.root, n = null;
|
|
4199
4198
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4200
4199
|
var s = this.registerIcons() || {};
|
|
4201
|
-
|
|
4200
|
+
va(s, this), this.langText = {};
|
|
4202
4201
|
var l = this.registerLanguageTexts() || {};
|
|
4203
|
-
|
|
4202
|
+
ma(l, this);
|
|
4204
4203
|
var u = "";
|
|
4205
4204
|
try {
|
|
4206
4205
|
u = this.render();
|
|
@@ -4469,7 +4468,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4469
4468
|
}, {
|
|
4470
4469
|
key: "ROOT_TYPES",
|
|
4471
4470
|
get: function() {
|
|
4472
|
-
return
|
|
4471
|
+
return da;
|
|
4473
4472
|
}
|
|
4474
4473
|
}, {
|
|
4475
4474
|
key: "POSITIONS",
|
|
@@ -4477,7 +4476,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4477
4476
|
return $;
|
|
4478
4477
|
}
|
|
4479
4478
|
}]), r;
|
|
4480
|
-
}(Me),
|
|
4479
|
+
}(Me), ya = /* @__PURE__ */ function() {
|
|
4481
4480
|
function a() {
|
|
4482
4481
|
var o = this;
|
|
4483
4482
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4487,7 +4486,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4487
4486
|
o.__runHandler(r[e].target);
|
|
4488
4487
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4489
4488
|
try {
|
|
4490
|
-
this.observer = new window.ResizeObserver(
|
|
4489
|
+
this.observer = new window.ResizeObserver(Vo(this.__trigger, 100, {
|
|
4491
4490
|
trailing: !0
|
|
4492
4491
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4493
4492
|
} catch (r) {
|
|
@@ -4542,17 +4541,17 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4542
4541
|
}
|
|
4543
4542
|
}]), a;
|
|
4544
4543
|
}(), lt = null;
|
|
4545
|
-
function
|
|
4546
|
-
return lt || (lt = new
|
|
4544
|
+
function _a(a, o) {
|
|
4545
|
+
return lt || (lt = new ya()), lt.addObserver(a, o), lt;
|
|
4547
4546
|
}
|
|
4548
|
-
function
|
|
4547
|
+
function Ca(a, o) {
|
|
4549
4548
|
lt.unObserver(a, o);
|
|
4550
4549
|
}
|
|
4551
4550
|
var ie = {
|
|
4552
4551
|
pluginGroup: {},
|
|
4553
4552
|
init: function(o) {
|
|
4554
4553
|
var r = o._pluginInfoId;
|
|
4555
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4554
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && _a(o.root, function() {
|
|
4556
4555
|
o.resize();
|
|
4557
4556
|
}), this.pluginGroup[r] = {
|
|
4558
4557
|
_originalOptions: o.config || {},
|
|
@@ -4738,7 +4737,7 @@ var ie = {
|
|
|
4738
4737
|
destroy: function(o) {
|
|
4739
4738
|
var r = o._pluginInfoId;
|
|
4740
4739
|
if (this.pluginGroup[r]) {
|
|
4741
|
-
|
|
4740
|
+
Ca(o.root);
|
|
4742
4741
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
4743
4742
|
var n = i[e];
|
|
4744
4743
|
this.unRegister(r, n);
|
|
@@ -4824,7 +4823,7 @@ function nn() {
|
|
|
4824
4823
|
ignores: [],
|
|
4825
4824
|
whitelist: [],
|
|
4826
4825
|
inactive: 3e3,
|
|
4827
|
-
lang:
|
|
4826
|
+
lang: jo(),
|
|
4828
4827
|
controls: !0,
|
|
4829
4828
|
marginControls: !1,
|
|
4830
4829
|
fullscreenTarget: null,
|
|
@@ -4860,7 +4859,7 @@ function nn() {
|
|
|
4860
4859
|
}
|
|
4861
4860
|
};
|
|
4862
4861
|
}
|
|
4863
|
-
var
|
|
4862
|
+
var ka = function(o, r) {
|
|
4864
4863
|
var t, e, i;
|
|
4865
4864
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
4866
4865
|
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;
|
|
@@ -4869,7 +4868,7 @@ var wa = function(o, r) {
|
|
|
4869
4868
|
});
|
|
4870
4869
|
var m = o.config.i18n || [];
|
|
4871
4870
|
g.push.apply(g, ve(m)), o.config.i18n = g;
|
|
4872
|
-
},
|
|
4871
|
+
}, wa = /* @__PURE__ */ function(a) {
|
|
4873
4872
|
L(r, a);
|
|
4874
4873
|
var o = A(r);
|
|
4875
4874
|
function r() {
|
|
@@ -5030,7 +5029,7 @@ var wa = function(o, r) {
|
|
|
5030
5029
|
};
|
|
5031
5030
|
}
|
|
5032
5031
|
}]), r;
|
|
5033
|
-
}(j),
|
|
5032
|
+
}(j), ba = {
|
|
5034
5033
|
LANG: "en",
|
|
5035
5034
|
TEXT: {
|
|
5036
5035
|
ERROR_TYPES: {
|
|
@@ -5125,7 +5124,7 @@ function Zn() {
|
|
|
5125
5124
|
ce.textKeys[a] = a;
|
|
5126
5125
|
});
|
|
5127
5126
|
}
|
|
5128
|
-
function
|
|
5127
|
+
function Ta(a, o) {
|
|
5129
5128
|
var r = [];
|
|
5130
5129
|
if (o || (o = ce), !!o.lang) {
|
|
5131
5130
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -5148,7 +5147,7 @@ function bi(a, o) {
|
|
|
5148
5147
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? ht(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Zn();
|
|
5149
5148
|
}
|
|
5150
5149
|
}
|
|
5151
|
-
function
|
|
5150
|
+
function Ea(a) {
|
|
5152
5151
|
var o, r = {
|
|
5153
5152
|
lang: {},
|
|
5154
5153
|
langKeys: [],
|
|
@@ -5157,7 +5156,7 @@ function Sa(a) {
|
|
|
5157
5156
|
};
|
|
5158
5157
|
return ht(r.lang, ce.lang), (o = r.langKeys).push.apply(o, ve(ce.langKeys)), ht(r.textKeys, ce.textKeys), r;
|
|
5159
5158
|
}
|
|
5160
|
-
bi(
|
|
5159
|
+
bi(ba);
|
|
5161
5160
|
var it = {
|
|
5162
5161
|
get textKeys() {
|
|
5163
5162
|
return ce.textKeys;
|
|
@@ -5171,9 +5170,9 @@ var it = {
|
|
|
5171
5170
|
a[o] = ce.lang[o];
|
|
5172
5171
|
}), ce.lang["zh-cn"] && (a.zh = ce.lang["zh-cn"] || {}), a;
|
|
5173
5172
|
},
|
|
5174
|
-
extend:
|
|
5173
|
+
extend: Ta,
|
|
5175
5174
|
use: bi,
|
|
5176
|
-
init:
|
|
5175
|
+
init: Ea
|
|
5177
5176
|
}, V = {
|
|
5178
5177
|
INITIAL: 1,
|
|
5179
5178
|
READY: 2,
|
|
@@ -5183,7 +5182,7 @@ var it = {
|
|
|
5183
5182
|
RUNNING: 6,
|
|
5184
5183
|
ENDED: 7,
|
|
5185
5184
|
DESTROYED: 8
|
|
5186
|
-
}, rn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], oe = {},
|
|
5185
|
+
}, rn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], oe = {}, Gt = null, Jn = /* @__PURE__ */ function(a) {
|
|
5187
5186
|
L(r, a);
|
|
5188
5187
|
var o = A(r);
|
|
5189
5188
|
function r() {
|
|
@@ -5266,11 +5265,11 @@ var it = {
|
|
|
5266
5265
|
}], [{
|
|
5267
5266
|
key: "getInstance",
|
|
5268
5267
|
value: function() {
|
|
5269
|
-
return
|
|
5268
|
+
return Gt || (Gt = new r()), Gt;
|
|
5270
5269
|
}
|
|
5271
5270
|
}]), r;
|
|
5272
5271
|
}(Pn.EventEmitter);
|
|
5273
|
-
function
|
|
5272
|
+
function Sa(a) {
|
|
5274
5273
|
for (var o = Object.keys(oe), r = 0; r < o.length; r++) {
|
|
5275
5274
|
var t = oe[o[r]];
|
|
5276
5275
|
if (t.root === a)
|
|
@@ -5278,7 +5277,7 @@ function xa(a) {
|
|
|
5278
5277
|
}
|
|
5279
5278
|
return null;
|
|
5280
5279
|
}
|
|
5281
|
-
var
|
|
5280
|
+
var xa = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Mt = /* @__PURE__ */ function(a) {
|
|
5282
5281
|
L(r, a);
|
|
5283
5282
|
var o = A(r);
|
|
5284
5283
|
function r(t) {
|
|
@@ -5308,7 +5307,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5308
5307
|
to: !1
|
|
5309
5308
|
}]
|
|
5310
5309
|
});
|
|
5311
|
-
var b =
|
|
5310
|
+
var b = Wo(k, e.playerId, ze);
|
|
5312
5311
|
if (m || k && (k === e._fullscreenEl || b))
|
|
5313
5312
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5314
5313
|
else if (e.fullscreen) {
|
|
@@ -5328,7 +5327,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5328
5327
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5329
5328
|
}), _(v(e), "_onWebkitendfullscreen", function(g) {
|
|
5330
5329
|
e.onFullscreenChange(g, !1);
|
|
5331
|
-
}), Xn(v(e),
|
|
5330
|
+
}), Xn(v(e), xa), e.config = i, e._pluginInfoId = f.generateSessionId(), Bo(v(e));
|
|
5332
5331
|
var n = e.constructor.defaultPreset;
|
|
5333
5332
|
if (e.config.presets.length) {
|
|
5334
5333
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5357,7 +5356,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5357
5356
|
}, e._offsetInfo = {
|
|
5358
5357
|
currentTime: -1,
|
|
5359
5358
|
duration: 0
|
|
5360
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = it.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
5359
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = it.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new sa(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5361
5360
|
isActiveLocked: !1
|
|
5362
5361
|
}, e.instManager = Le;
|
|
5363
5362
|
var l = e._initDOM();
|
|
@@ -5389,7 +5388,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5389
5388
|
msg: "container id can't be empty"
|
|
5390
5389
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5391
5390
|
}
|
|
5392
|
-
var s =
|
|
5391
|
+
var s = Sa(this.root);
|
|
5393
5392
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(ze, this.playerId), (e = Le) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5394
5393
|
var l = this.constructor.XgVideoProxy;
|
|
5395
5394
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5399,7 +5398,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5399
5398
|
this.attachVideoEvents(c), this.media = c;
|
|
5400
5399
|
}
|
|
5401
5400
|
if (this.media.setAttribute(ze, this.playerId), this.config.controls) {
|
|
5402
|
-
var h = this.config.controls.root || null, d = ie.register(this,
|
|
5401
|
+
var h = this.config.controls.root || null, d = ie.register(this, wa, {
|
|
5403
5402
|
root: h
|
|
5404
5403
|
});
|
|
5405
5404
|
this.controls = d;
|
|
@@ -5468,7 +5467,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5468
5467
|
H.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (B.os.isIpad || B.os.isPhone) && this.mediaPlay());
|
|
5469
5468
|
var l = this.config.startTime;
|
|
5470
5469
|
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Ee, this.canPlayFunc), (!this.hasStart || this.state < V.ATTACHED) && ie.afterInit(this), this.hasStart = !0, this.setState(V.ATTACHED), f.setTimeout(this, function() {
|
|
5471
|
-
i.emit(
|
|
5470
|
+
i.emit(Dt);
|
|
5472
5471
|
}, 0);
|
|
5473
5472
|
}
|
|
5474
5473
|
}
|
|
@@ -5507,7 +5506,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5507
5506
|
value: function() {
|
|
5508
5507
|
var e = this;
|
|
5509
5508
|
this.config.presets.forEach(function(i) {
|
|
5510
|
-
|
|
5509
|
+
ka(e, i);
|
|
5511
5510
|
});
|
|
5512
5511
|
}
|
|
5513
5512
|
}, {
|
|
@@ -5739,11 +5738,11 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5739
5738
|
seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
|
|
5740
5739
|
}, e));
|
|
5741
5740
|
l && l.then ? l.then(function() {
|
|
5742
|
-
n.emit(
|
|
5741
|
+
n.emit(li, {
|
|
5743
5742
|
from: i,
|
|
5744
5743
|
to: e
|
|
5745
5744
|
});
|
|
5746
|
-
}) : this.emit(
|
|
5745
|
+
}) : this.emit(li, {
|
|
5747
5746
|
from: i,
|
|
5748
5747
|
to: e
|
|
5749
5748
|
});
|
|
@@ -5761,7 +5760,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
5761
5760
|
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, p = C.LOADING, g = [i, n, s, l, u, c, h, d, p];
|
|
5762
5761
|
this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, g.forEach(function(m) {
|
|
5763
5762
|
e.removeClass(m);
|
|
5764
|
-
}), this.addClass(C.NO_START), this.emit(
|
|
5763
|
+
}), this.addClass(C.NO_START), this.emit(Rt);
|
|
5765
5764
|
}
|
|
5766
5765
|
}, {
|
|
5767
5766
|
key: "reset",
|
|
@@ -6287,7 +6286,7 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
6287
6286
|
}, {
|
|
6288
6287
|
key: "version",
|
|
6289
6288
|
get: function() {
|
|
6290
|
-
return
|
|
6289
|
+
return oi;
|
|
6291
6290
|
}
|
|
6292
6291
|
}, {
|
|
6293
6292
|
key: "playerId",
|
|
@@ -6469,10 +6468,10 @@ var Ia = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Le = null, Ft = /
|
|
|
6469
6468
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6470
6469
|
}
|
|
6471
6470
|
}]), r;
|
|
6472
|
-
}(
|
|
6473
|
-
_(
|
|
6474
|
-
_(
|
|
6475
|
-
|
|
6471
|
+
}(ra);
|
|
6472
|
+
_(Mt, "defaultPreset", null);
|
|
6473
|
+
_(Mt, "XgVideoProxy", null);
|
|
6474
|
+
Mt.instManager = Jn.getInstance();
|
|
6476
6475
|
function re() {
|
|
6477
6476
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6478
6477
|
}
|
|
@@ -6484,7 +6483,7 @@ var Ae = {
|
|
|
6484
6483
|
WAIT_END: "waitingEnd",
|
|
6485
6484
|
SEEK_START: "seekStart",
|
|
6486
6485
|
SEEK_END: "seekEnd"
|
|
6487
|
-
},
|
|
6486
|
+
}, Ia = /* @__PURE__ */ function(a) {
|
|
6488
6487
|
L(r, a);
|
|
6489
6488
|
var o = A(r);
|
|
6490
6489
|
function r() {
|
|
@@ -6543,11 +6542,11 @@ var Ae = {
|
|
|
6543
6542
|
e.vt = re(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
6544
6543
|
var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
|
|
6545
6544
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ae.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
6546
|
-
}), this.on(
|
|
6545
|
+
}), this.on(At, this._onSeeking), this.on(Se, this._onSeeked), this.on(ki, function() {
|
|
6547
6546
|
e.endState("destroy");
|
|
6548
|
-
}), this.on(
|
|
6547
|
+
}), this.on(Ot, function() {
|
|
6549
6548
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6550
|
-
}), this.on([vi, Ee], this._onPlaying), this.on(gt, this._onWaiting), this.on(dt, this._onError), this.on(
|
|
6549
|
+
}), this.on([vi, Ee], this._onPlaying), this.on(gt, this._onWaiting), this.on(dt, this._onError), this.on(Rt, function() {
|
|
6551
6550
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6552
6551
|
});
|
|
6553
6552
|
}
|
|
@@ -6635,13 +6634,13 @@ var Ae = {
|
|
|
6635
6634
|
}
|
|
6636
6635
|
}]), r;
|
|
6637
6636
|
}(j);
|
|
6638
|
-
function
|
|
6637
|
+
function Pa() {
|
|
6639
6638
|
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">
|
|
6640
6639
|
<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>
|
|
6641
6640
|
</svg>
|
|
6642
6641
|
`, "image/svg+xml").firstChild;
|
|
6643
6642
|
}
|
|
6644
|
-
var
|
|
6643
|
+
var La = /* @__PURE__ */ function(a) {
|
|
6645
6644
|
L(r, a);
|
|
6646
6645
|
var o = A(r);
|
|
6647
6646
|
function r() {
|
|
@@ -6651,7 +6650,7 @@ var Aa = /* @__PURE__ */ function(a) {
|
|
|
6651
6650
|
key: "registerIcons",
|
|
6652
6651
|
value: function() {
|
|
6653
6652
|
return {
|
|
6654
|
-
replay:
|
|
6653
|
+
replay: Pa
|
|
6655
6654
|
};
|
|
6656
6655
|
}
|
|
6657
6656
|
}, {
|
|
@@ -6724,7 +6723,7 @@ var Aa = /* @__PURE__ */ function(a) {
|
|
|
6724
6723
|
};
|
|
6725
6724
|
}
|
|
6726
6725
|
}]), r;
|
|
6727
|
-
}(j),
|
|
6726
|
+
}(j), Aa = /* @__PURE__ */ function(a) {
|
|
6728
6727
|
L(r, a);
|
|
6729
6728
|
var o = A(r);
|
|
6730
6729
|
function r() {
|
|
@@ -6761,7 +6760,7 @@ var Aa = /* @__PURE__ */ function(a) {
|
|
|
6761
6760
|
e.isEndedShow && f.removeClass(e.root, "hide");
|
|
6762
6761
|
}), this.config.hideCanplay ? (this.once(fe, function() {
|
|
6763
6762
|
e.onTimeUpdate();
|
|
6764
|
-
}), this.on(
|
|
6763
|
+
}), this.on(Ot, function() {
|
|
6765
6764
|
f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(fe, function() {
|
|
6766
6765
|
e.onTimeUpdate();
|
|
6767
6766
|
});
|
|
@@ -6849,7 +6848,7 @@ function Ei() {
|
|
|
6849
6848
|
`, "image/svg+xml").firstChild;
|
|
6850
6849
|
}
|
|
6851
6850
|
var ke = {};
|
|
6852
|
-
function
|
|
6851
|
+
function Da(a, o) {
|
|
6853
6852
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
6854
6853
|
start: null,
|
|
6855
6854
|
end: null
|
|
@@ -6867,7 +6866,7 @@ function an(a) {
|
|
|
6867
6866
|
window.clearTimeout(ke[o].id), delete ke[o];
|
|
6868
6867
|
});
|
|
6869
6868
|
}
|
|
6870
|
-
var
|
|
6869
|
+
var Oa = /* @__PURE__ */ function(a) {
|
|
6871
6870
|
L(r, a);
|
|
6872
6871
|
var o = A(r);
|
|
6873
6872
|
function r(t) {
|
|
@@ -6896,7 +6895,7 @@ var Ra = /* @__PURE__ */ function(a) {
|
|
|
6896
6895
|
e.onPlayPause("play");
|
|
6897
6896
|
}), this.on(rt, function() {
|
|
6898
6897
|
e.onPlayPause("pause");
|
|
6899
|
-
}), this.on(
|
|
6898
|
+
}), this.on(Rt, function() {
|
|
6900
6899
|
e.onPlayerReset();
|
|
6901
6900
|
}), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
|
|
6902
6901
|
pre: function(l) {
|
|
@@ -6959,7 +6958,7 @@ var Ra = /* @__PURE__ */ function(a) {
|
|
|
6959
6958
|
key: "animate",
|
|
6960
6959
|
value: function(e) {
|
|
6961
6960
|
var i = this;
|
|
6962
|
-
this._animateId =
|
|
6961
|
+
this._animateId = Da("pauseplay", 400, {
|
|
6963
6962
|
start: function() {
|
|
6964
6963
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
6965
6964
|
},
|
|
@@ -7042,7 +7041,7 @@ var Ra = /* @__PURE__ */ function(a) {
|
|
|
7042
7041
|
};
|
|
7043
7042
|
}
|
|
7044
7043
|
}]), r;
|
|
7045
|
-
}(j),
|
|
7044
|
+
}(j), Ra = /* @__PURE__ */ function(a) {
|
|
7046
7045
|
L(r, a);
|
|
7047
7046
|
var o = A(r);
|
|
7048
7047
|
function r() {
|
|
@@ -7142,7 +7141,7 @@ function un(a) {
|
|
|
7142
7141
|
return r && o;
|
|
7143
7142
|
}
|
|
7144
7143
|
var Si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Qn = Si.length;
|
|
7145
|
-
function
|
|
7144
|
+
function Ma() {
|
|
7146
7145
|
for (var a = {
|
|
7147
7146
|
width: 0,
|
|
7148
7147
|
height: 0,
|
|
@@ -7156,15 +7155,15 @@ function Fa() {
|
|
|
7156
7155
|
}
|
|
7157
7156
|
return a;
|
|
7158
7157
|
}
|
|
7159
|
-
function
|
|
7158
|
+
function Fa(a) {
|
|
7160
7159
|
var o = window.getComputedStyle(a);
|
|
7161
7160
|
return o;
|
|
7162
7161
|
}
|
|
7163
7162
|
function cn(a) {
|
|
7164
7163
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || se(a) !== "object" || !a.nodeType)) {
|
|
7165
|
-
var o =
|
|
7164
|
+
var o = Fa(a);
|
|
7166
7165
|
if (o.display === "none")
|
|
7167
|
-
return
|
|
7166
|
+
return Ma();
|
|
7168
7167
|
var r = {};
|
|
7169
7168
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
7170
7169
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < Qn; e++) {
|
|
@@ -7177,14 +7176,14 @@ function cn(a) {
|
|
|
7177
7176
|
return y !== !1 && (r.height = y + (g ? 0 : u + p)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + p), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
|
|
7178
7177
|
}
|
|
7179
7178
|
}
|
|
7180
|
-
function
|
|
7179
|
+
function $t(a, o) {
|
|
7181
7180
|
for (var r = 0; r < a.length; r++) {
|
|
7182
7181
|
var t = a[r];
|
|
7183
7182
|
if (t.identifier === o)
|
|
7184
7183
|
return t;
|
|
7185
7184
|
}
|
|
7186
7185
|
}
|
|
7187
|
-
var
|
|
7186
|
+
var Kt = {
|
|
7188
7187
|
START: "dragStart",
|
|
7189
7188
|
MOVE: "dragMove",
|
|
7190
7189
|
ENDED: "dragEnded"
|
|
@@ -7192,7 +7191,7 @@ var Yt = {
|
|
|
7192
7191
|
mousedown: ["mousemove", "mouseup"],
|
|
7193
7192
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7194
7193
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7195
|
-
},
|
|
7194
|
+
}, Na = /* @__PURE__ */ function(a) {
|
|
7196
7195
|
L(r, a);
|
|
7197
7196
|
var o = A(r);
|
|
7198
7197
|
function r(t) {
|
|
@@ -7295,19 +7294,19 @@ var Yt = {
|
|
|
7295
7294
|
}, {
|
|
7296
7295
|
key: "ontouchmove",
|
|
7297
7296
|
value: function(e) {
|
|
7298
|
-
var i =
|
|
7297
|
+
var i = $t(e.changedTouches, this.touchIdentifier);
|
|
7299
7298
|
i && this.dragMove(e, i);
|
|
7300
7299
|
}
|
|
7301
7300
|
}, {
|
|
7302
7301
|
key: "ontouchend",
|
|
7303
7302
|
value: function(e) {
|
|
7304
|
-
var i =
|
|
7303
|
+
var i = $t(e.changedTouches, this.touchIdentifier);
|
|
7305
7304
|
i && this.dragEnd(e, i), e.preventDefault();
|
|
7306
7305
|
}
|
|
7307
7306
|
}, {
|
|
7308
7307
|
key: "ontouchcancel",
|
|
7309
7308
|
value: function(e) {
|
|
7310
|
-
var i =
|
|
7309
|
+
var i = $t(e.changedTouches, this.touchIdentifier);
|
|
7311
7310
|
i && this.dragCancel(e, i);
|
|
7312
7311
|
}
|
|
7313
7312
|
}, {
|
|
@@ -7322,12 +7321,12 @@ var Yt = {
|
|
|
7322
7321
|
}, {
|
|
7323
7322
|
key: "dragRealStart",
|
|
7324
7323
|
value: function(e, i) {
|
|
7325
|
-
this.isDragging = !0, this.animate(), this.emit(
|
|
7324
|
+
this.isDragging = !0, this.animate(), this.emit(Kt.START, this.startPos);
|
|
7326
7325
|
}
|
|
7327
7326
|
}, {
|
|
7328
7327
|
key: "dragEnd",
|
|
7329
7328
|
value: function(e, i) {
|
|
7330
|
-
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(
|
|
7329
|
+
this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Kt.ENDED)), this.presetInfo());
|
|
7331
7330
|
}
|
|
7332
7331
|
}, {
|
|
7333
7332
|
key: "_dragPointerMove",
|
|
@@ -7343,7 +7342,7 @@ var Yt = {
|
|
|
7343
7342
|
value: function(e, i) {
|
|
7344
7343
|
if (e = e || window.event, !!this.isDown) {
|
|
7345
7344
|
var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
|
|
7346
|
-
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(
|
|
7345
|
+
c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(Kt.MOVE, this.position);
|
|
7347
7346
|
}
|
|
7348
7347
|
}
|
|
7349
7348
|
}, {
|
|
@@ -7402,7 +7401,7 @@ var Yt = {
|
|
|
7402
7401
|
return parseInt(e, 10);
|
|
7403
7402
|
}
|
|
7404
7403
|
}]), r;
|
|
7405
|
-
}(Ln),
|
|
7404
|
+
}(Ln), Ba = /* @__PURE__ */ function(a) {
|
|
7406
7405
|
L(r, a);
|
|
7407
7406
|
var o = A(r);
|
|
7408
7407
|
function r(t) {
|
|
@@ -7458,7 +7457,7 @@ var Yt = {
|
|
|
7458
7457
|
i.controls.registerPlugin(ln, s, ln.pluginName);
|
|
7459
7458
|
}
|
|
7460
7459
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7461
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7460
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Na(this.player.root, {
|
|
7462
7461
|
handle: this.root
|
|
7463
7462
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7464
7463
|
}
|
|
@@ -7556,7 +7555,7 @@ var Yt = {
|
|
|
7556
7555
|
mouseenter: "onMouseEnter",
|
|
7557
7556
|
mouseleave: "onMouseLeave",
|
|
7558
7557
|
mousemove: "onMouseMove"
|
|
7559
|
-
},
|
|
7558
|
+
}, Yt = ["videoClick", "videoDbClick"], Xt = /* @__PURE__ */ function(a) {
|
|
7560
7559
|
L(r, a);
|
|
7561
7560
|
var o = A(r);
|
|
7562
7561
|
function r() {
|
|
@@ -7585,7 +7584,7 @@ var Yt = {
|
|
|
7585
7584
|
}), _(v(t), "onVideoClick", function(s) {
|
|
7586
7585
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
7587
7586
|
s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
|
|
7588
|
-
t._clickCount && (t._clickCount--, Te(v(t),
|
|
7587
|
+
t._clickCount && (t._clickCount--, Te(v(t), Yt[0], function(h, d) {
|
|
7589
7588
|
t.switchPlayPause(d.e);
|
|
7590
7589
|
}, {
|
|
7591
7590
|
e: s,
|
|
@@ -7599,7 +7598,7 @@ var Yt = {
|
|
|
7599
7598
|
t._clickCount = 0;
|
|
7600
7599
|
return;
|
|
7601
7600
|
}
|
|
7602
|
-
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(v(t),
|
|
7601
|
+
t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(v(t), Yt[1], function(h, d) {
|
|
7603
7602
|
t.emitUserAction(d.e, "switch_fullscreen", {
|
|
7604
7603
|
props: "fullscreen",
|
|
7605
7604
|
from: u.fullscreen,
|
|
@@ -7616,7 +7615,7 @@ var Yt = {
|
|
|
7616
7615
|
key: "afterCreate",
|
|
7617
7616
|
value: function() {
|
|
7618
7617
|
var e = this;
|
|
7619
|
-
this._clickCount = 0,
|
|
7618
|
+
this._clickCount = 0, Yt.map(function(n) {
|
|
7620
7619
|
e.__hooks[n] = null;
|
|
7621
7620
|
});
|
|
7622
7621
|
var i = this.playerConfig.isMobileSimulateMode;
|
|
@@ -7672,12 +7671,12 @@ var Yt = {
|
|
|
7672
7671
|
TOUCH_MOVE: "touchmove",
|
|
7673
7672
|
TOUCH_START: "touchstart",
|
|
7674
7673
|
TOUCH_END: "touchend"
|
|
7675
|
-
},
|
|
7674
|
+
}, Ha = {
|
|
7676
7675
|
start: "touchstart",
|
|
7677
7676
|
end: "touchend",
|
|
7678
7677
|
move: "touchmove",
|
|
7679
7678
|
cancel: "touchcancel"
|
|
7680
|
-
},
|
|
7679
|
+
}, Ua = {
|
|
7681
7680
|
start: "mousedown",
|
|
7682
7681
|
end: "mouseup",
|
|
7683
7682
|
move: "mousemove",
|
|
@@ -7686,7 +7685,7 @@ var Yt = {
|
|
|
7686
7685
|
function hn(a) {
|
|
7687
7686
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7688
7687
|
}
|
|
7689
|
-
function
|
|
7688
|
+
function za() {
|
|
7690
7689
|
return {
|
|
7691
7690
|
pressDelay: 600,
|
|
7692
7691
|
dbClickDelay: 200,
|
|
@@ -7696,7 +7695,7 @@ function Va() {
|
|
|
7696
7695
|
needPreventDefault: !0
|
|
7697
7696
|
};
|
|
7698
7697
|
}
|
|
7699
|
-
var
|
|
7698
|
+
var Va = /* @__PURE__ */ function() {
|
|
7700
7699
|
function a(o) {
|
|
7701
7700
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7702
7701
|
eventType: "touch"
|
|
@@ -7717,9 +7716,9 @@ var ja = /* @__PURE__ */ function() {
|
|
|
7717
7716
|
start: !1,
|
|
7718
7717
|
x: 0,
|
|
7719
7718
|
y: 0
|
|
7720
|
-
}, this.config =
|
|
7719
|
+
}, this.config = za(), Object.keys(t).map(function(e) {
|
|
7721
7720
|
r.config[e] = t[e];
|
|
7722
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7721
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Ua : Ha, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7723
7722
|
}
|
|
7724
7723
|
return I(a, [{
|
|
7725
7724
|
key: "_initEvent",
|
|
@@ -7798,7 +7797,7 @@ var ja = /* @__PURE__ */ function() {
|
|
|
7798
7797
|
}
|
|
7799
7798
|
}]), a;
|
|
7800
7799
|
}();
|
|
7801
|
-
function
|
|
7800
|
+
function ja() {
|
|
7802
7801
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
7803
7802
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
7804
7803
|
<path opacity="0.54"
|
|
@@ -7812,7 +7811,7 @@ var Xe = {
|
|
|
7812
7811
|
SEEKING: "seeking",
|
|
7813
7812
|
PLAYBACK: "playbackrate",
|
|
7814
7813
|
LIGHT: ""
|
|
7815
|
-
},
|
|
7814
|
+
}, qt = ["videoClick", "videoDbClick"], Wa = /* @__PURE__ */ function(a) {
|
|
7816
7815
|
L(r, a);
|
|
7817
7816
|
var o = A(r);
|
|
7818
7817
|
function r(t) {
|
|
@@ -7884,7 +7883,7 @@ var Xe = {
|
|
|
7884
7883
|
value: function() {
|
|
7885
7884
|
return {
|
|
7886
7885
|
seekTipIcon: {
|
|
7887
|
-
icon:
|
|
7886
|
+
icon: ja,
|
|
7888
7887
|
class: "xg-seek-pre"
|
|
7889
7888
|
}
|
|
7890
7889
|
};
|
|
@@ -7893,13 +7892,13 @@ var Xe = {
|
|
|
7893
7892
|
key: "afterCreate",
|
|
7894
7893
|
value: function() {
|
|
7895
7894
|
var e = this;
|
|
7896
|
-
|
|
7895
|
+
qt.map(function(d) {
|
|
7897
7896
|
e.__hooks[d] = null;
|
|
7898
7897
|
});
|
|
7899
7898
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
7900
7899
|
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();
|
|
7901
7900
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
7902
|
-
this.touch = new
|
|
7901
|
+
this.touch = new Va(this.root, {
|
|
7903
7902
|
eventType: l,
|
|
7904
7903
|
needPreventDefault: !this.config.disableGesture
|
|
7905
7904
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -8076,7 +8075,7 @@ var Xe = {
|
|
|
8076
8075
|
key: "onClick",
|
|
8077
8076
|
value: function(e) {
|
|
8078
8077
|
var i = this, n = this.player;
|
|
8079
|
-
Te(this,
|
|
8078
|
+
Te(this, qt[0], function(s, l) {
|
|
8080
8079
|
i.clickHandler(l.e);
|
|
8081
8080
|
}, {
|
|
8082
8081
|
e,
|
|
@@ -8087,7 +8086,7 @@ var Xe = {
|
|
|
8087
8086
|
key: "onDbClick",
|
|
8088
8087
|
value: function(e) {
|
|
8089
8088
|
var i = this, n = this.player;
|
|
8090
|
-
Te(this,
|
|
8089
|
+
Te(this, qt[1], function(s, l) {
|
|
8091
8090
|
i.dbClickHandler(l.e);
|
|
8092
8091
|
}, {
|
|
8093
8092
|
e,
|
|
@@ -8241,7 +8240,7 @@ var Xe = {
|
|
|
8241
8240
|
}
|
|
8242
8241
|
}]), r;
|
|
8243
8242
|
}(j);
|
|
8244
|
-
function
|
|
8243
|
+
function Ga(a) {
|
|
8245
8244
|
a.preventDefault(), a.returnValue = !1;
|
|
8246
8245
|
}
|
|
8247
8246
|
function dn(a) {
|
|
@@ -8490,7 +8489,7 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8490
8489
|
isPress: n
|
|
8491
8490
|
}, this.keyCodeMap[s[l]]));
|
|
8492
8491
|
}
|
|
8493
|
-
|
|
8492
|
+
Ga(i), i.stopPropagation();
|
|
8494
8493
|
break;
|
|
8495
8494
|
}
|
|
8496
8495
|
}
|
|
@@ -8532,13 +8531,13 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8532
8531
|
}
|
|
8533
8532
|
}]), r;
|
|
8534
8533
|
}(Me);
|
|
8535
|
-
function
|
|
8534
|
+
function $a() {
|
|
8536
8535
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8537
8536
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8538
8537
|
</svg>
|
|
8539
8538
|
`, "image/svg+xml").firstChild;
|
|
8540
8539
|
}
|
|
8541
|
-
var
|
|
8540
|
+
var Ka = /* @__PURE__ */ function(a) {
|
|
8542
8541
|
L(r, a);
|
|
8543
8542
|
var o = A(r);
|
|
8544
8543
|
function r() {
|
|
@@ -8548,7 +8547,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8548
8547
|
key: "registerIcons",
|
|
8549
8548
|
value: function() {
|
|
8550
8549
|
return {
|
|
8551
|
-
loadingIcon:
|
|
8550
|
+
loadingIcon: $a
|
|
8552
8551
|
};
|
|
8553
8552
|
}
|
|
8554
8553
|
}, {
|
|
@@ -8577,7 +8576,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8577
8576
|
};
|
|
8578
8577
|
}
|
|
8579
8578
|
}]), r;
|
|
8580
|
-
}(j),
|
|
8579
|
+
}(j), Ya = [{
|
|
8581
8580
|
tag: "xg-cache",
|
|
8582
8581
|
className: "xgplayer-progress-cache",
|
|
8583
8582
|
styleKey: "cachedColor"
|
|
@@ -8585,7 +8584,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8585
8584
|
tag: "xg-played",
|
|
8586
8585
|
className: "xgplayer-progress-played",
|
|
8587
8586
|
styleKey: "playedColor"
|
|
8588
|
-
}],
|
|
8587
|
+
}], Xa = /* @__PURE__ */ function() {
|
|
8589
8588
|
function a(o) {
|
|
8590
8589
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8591
8590
|
percent: 1
|
|
@@ -8772,7 +8771,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8772
8771
|
var l = f.createDom("xg-inner", "", {
|
|
8773
8772
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
8774
8773
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
8775
|
-
return r.root.appendChild(l),
|
|
8774
|
+
return r.root.appendChild(l), Ya.forEach(function(u) {
|
|
8776
8775
|
l.appendChild(f.createDom(u.tag, "", {
|
|
8777
8776
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
8778
8777
|
}, u.className));
|
|
@@ -8788,7 +8787,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8788
8787
|
}(), pn = {
|
|
8789
8788
|
POINT: "inner-focus-point",
|
|
8790
8789
|
HIGHLIGHT: "inner-focus-highlight"
|
|
8791
|
-
},
|
|
8790
|
+
}, qa = /* @__PURE__ */ function(a) {
|
|
8792
8791
|
L(r, a);
|
|
8793
8792
|
var o = A(r);
|
|
8794
8793
|
function r(t) {
|
|
@@ -8918,7 +8917,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
8918
8917
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
8919
8918
|
}
|
|
8920
8919
|
});
|
|
8921
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
8920
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new Xa(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
8922
8921
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
8923
8922
|
}));
|
|
8924
8923
|
}
|
|
@@ -9228,7 +9227,7 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
9228
9227
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
9229
9228
|
}
|
|
9230
9229
|
}]), r;
|
|
9231
|
-
}(j),
|
|
9230
|
+
}(j), Za = /* @__PURE__ */ function(a) {
|
|
9232
9231
|
L(r, a);
|
|
9233
9232
|
var o = A(r);
|
|
9234
9233
|
function r() {
|
|
@@ -9316,14 +9315,14 @@ var Ya = /* @__PURE__ */ function(a) {
|
|
|
9316
9315
|
}
|
|
9317
9316
|
}]), r;
|
|
9318
9317
|
}($e);
|
|
9319
|
-
function
|
|
9318
|
+
function Ja() {
|
|
9320
9319
|
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">
|
|
9321
9320
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9322
9321
|
<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>
|
|
9323
9322
|
</g>
|
|
9324
9323
|
</svg>`, "image/svg+xml").firstChild;
|
|
9325
9324
|
}
|
|
9326
|
-
var
|
|
9325
|
+
var Qa = /* @__PURE__ */ function(a) {
|
|
9327
9326
|
L(r, a);
|
|
9328
9327
|
var o = A(r);
|
|
9329
9328
|
function r() {
|
|
@@ -9342,7 +9341,7 @@ var el = /* @__PURE__ */ function(a) {
|
|
|
9342
9341
|
value: function() {
|
|
9343
9342
|
return {
|
|
9344
9343
|
screenBack: {
|
|
9345
|
-
icon:
|
|
9344
|
+
icon: Ja,
|
|
9346
9345
|
class: "xg-fullscreen-back"
|
|
9347
9346
|
}
|
|
9348
9347
|
};
|
|
@@ -9384,19 +9383,19 @@ var el = /* @__PURE__ */ function(a) {
|
|
|
9384
9383
|
}
|
|
9385
9384
|
}]), r;
|
|
9386
9385
|
}(j);
|
|
9387
|
-
function
|
|
9386
|
+
function el() {
|
|
9388
9387
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9389
9388
|
<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>
|
|
9390
9389
|
</svg>
|
|
9391
9390
|
`, "image/svg+xml").firstChild;
|
|
9392
9391
|
}
|
|
9393
|
-
function
|
|
9392
|
+
function tl() {
|
|
9394
9393
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9395
9394
|
<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>
|
|
9396
9395
|
</svg>
|
|
9397
9396
|
`, "image/svg+xml").firstChild;
|
|
9398
9397
|
}
|
|
9399
|
-
var
|
|
9398
|
+
var il = /* @__PURE__ */ function(a) {
|
|
9400
9399
|
L(r, a);
|
|
9401
9400
|
var o = A(r);
|
|
9402
9401
|
function r() {
|
|
@@ -9431,7 +9430,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9431
9430
|
var u = e.find(".xg-tips");
|
|
9432
9431
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9433
9432
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9434
|
-
plugin:
|
|
9433
|
+
plugin: Qa,
|
|
9435
9434
|
options: {
|
|
9436
9435
|
config: {
|
|
9437
9436
|
onClick: function(u) {
|
|
@@ -9447,11 +9446,11 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9447
9446
|
value: function() {
|
|
9448
9447
|
return {
|
|
9449
9448
|
fullscreen: {
|
|
9450
|
-
icon:
|
|
9449
|
+
icon: el,
|
|
9451
9450
|
class: "xg-get-fullscreen"
|
|
9452
9451
|
},
|
|
9453
9452
|
exitFullscreen: {
|
|
9454
|
-
icon:
|
|
9453
|
+
icon: tl,
|
|
9455
9454
|
class: "xg-exit-fullscreen"
|
|
9456
9455
|
}
|
|
9457
9456
|
};
|
|
@@ -9532,7 +9531,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9532
9531
|
};
|
|
9533
9532
|
}
|
|
9534
9533
|
}]), r;
|
|
9535
|
-
}($e),
|
|
9534
|
+
}($e), nl = /* @__PURE__ */ function(a) {
|
|
9536
9535
|
L(r, a);
|
|
9537
9536
|
var o = A(r);
|
|
9538
9537
|
function r(t) {
|
|
@@ -9682,7 +9681,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9682
9681
|
};
|
|
9683
9682
|
}
|
|
9684
9683
|
}]), r;
|
|
9685
|
-
}(j),
|
|
9684
|
+
}(j), rl = /* @__PURE__ */ function(a) {
|
|
9686
9685
|
L(r, a);
|
|
9687
9686
|
var o = A(r);
|
|
9688
9687
|
function r() {
|
|
@@ -9738,7 +9737,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9738
9737
|
return I(r, [{
|
|
9739
9738
|
key: "afterCreate",
|
|
9740
9739
|
value: function() {
|
|
9741
|
-
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ne, this._onDurationChange), this.on(xe, this._onLoadedData), this.on(fe, this._onTimeupdate), this.on(
|
|
9740
|
+
this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ne, this._onDurationChange), this.on(xe, this._onLoadedData), this.on(fe, this._onTimeupdate), this.on(At, this._onSeeking), this.on(he, this._onPlay);
|
|
9742
9741
|
}
|
|
9743
9742
|
}, {
|
|
9744
9743
|
key: "setConfig",
|
|
@@ -9820,28 +9819,28 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9820
9819
|
}
|
|
9821
9820
|
}]), r;
|
|
9822
9821
|
}(Me);
|
|
9823
|
-
function
|
|
9822
|
+
function sl() {
|
|
9824
9823
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9825
9824
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9826
9825
|
<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>
|
|
9827
9826
|
</svg>
|
|
9828
9827
|
`, "image/svg+xml").firstChild;
|
|
9829
9828
|
}
|
|
9830
|
-
function
|
|
9829
|
+
function ol() {
|
|
9831
9830
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9832
9831
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9833
9832
|
<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>
|
|
9834
9833
|
</svg>
|
|
9835
9834
|
`, "image/svg+xml").firstChild;
|
|
9836
9835
|
}
|
|
9837
|
-
function
|
|
9836
|
+
function al() {
|
|
9838
9837
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
9839
9838
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
9840
9839
|
<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>
|
|
9841
9840
|
</svg>
|
|
9842
9841
|
`, "image/svg+xml").firstChild;
|
|
9843
9842
|
}
|
|
9844
|
-
var
|
|
9843
|
+
var ll = /* @__PURE__ */ function(a) {
|
|
9845
9844
|
L(r, a);
|
|
9846
9845
|
var o = A(r);
|
|
9847
9846
|
function r() {
|
|
@@ -9889,15 +9888,15 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9889
9888
|
value: function() {
|
|
9890
9889
|
return {
|
|
9891
9890
|
volumeSmall: {
|
|
9892
|
-
icon:
|
|
9891
|
+
icon: ol,
|
|
9893
9892
|
class: "xg-volume-small"
|
|
9894
9893
|
},
|
|
9895
9894
|
volumeLarge: {
|
|
9896
|
-
icon:
|
|
9895
|
+
icon: sl,
|
|
9897
9896
|
class: "xg-volume"
|
|
9898
9897
|
},
|
|
9899
9898
|
volumeMuted: {
|
|
9900
|
-
icon:
|
|
9899
|
+
icon: al,
|
|
9901
9900
|
class: "xg-volume-mute"
|
|
9902
9901
|
}
|
|
9903
9902
|
};
|
|
@@ -10036,7 +10035,7 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
10036
10035
|
}
|
|
10037
10036
|
}]), r;
|
|
10038
10037
|
}(j);
|
|
10039
|
-
function
|
|
10038
|
+
function ul() {
|
|
10040
10039
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10041
10040
|
<g clip-path="url(#clip0)">
|
|
10042
10041
|
<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"/>
|
|
@@ -10050,7 +10049,7 @@ function cl() {
|
|
|
10050
10049
|
</svg>
|
|
10051
10050
|
`, "image/svg+xml").firstChild;
|
|
10052
10051
|
}
|
|
10053
|
-
var
|
|
10052
|
+
var cl = /* @__PURE__ */ function(a) {
|
|
10054
10053
|
L(r, a);
|
|
10055
10054
|
var o = A(r);
|
|
10056
10055
|
function r(t) {
|
|
@@ -10113,7 +10112,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
10113
10112
|
key: "registerIcons",
|
|
10114
10113
|
value: function() {
|
|
10115
10114
|
return {
|
|
10116
|
-
rotate:
|
|
10115
|
+
rotate: ul
|
|
10117
10116
|
};
|
|
10118
10117
|
}
|
|
10119
10118
|
}, {
|
|
@@ -10146,14 +10145,14 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
10146
10145
|
}
|
|
10147
10146
|
}]), r;
|
|
10148
10147
|
}($e);
|
|
10149
|
-
function
|
|
10148
|
+
function fl() {
|
|
10150
10149
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10151
10150
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10152
10151
|
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"
|
|
10153
10152
|
fill="white" />
|
|
10154
10153
|
</svg>`, "image/svg+xml").firstChild;
|
|
10155
10154
|
}
|
|
10156
|
-
function
|
|
10155
|
+
function hl() {
|
|
10157
10156
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10158
10157
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10159
10158
|
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"
|
|
@@ -10167,7 +10166,7 @@ var qe = {
|
|
|
10167
10166
|
PIP: "picture-in-picture",
|
|
10168
10167
|
INLINE: "inline",
|
|
10169
10168
|
FULLSCREEN: "fullscreen"
|
|
10170
|
-
},
|
|
10169
|
+
}, dl = /* @__PURE__ */ function(a) {
|
|
10171
10170
|
L(r, a);
|
|
10172
10171
|
var o = A(r);
|
|
10173
10172
|
function r() {
|
|
@@ -10198,7 +10197,7 @@ var qe = {
|
|
|
10198
10197
|
key: "afterCreate",
|
|
10199
10198
|
value: function() {
|
|
10200
10199
|
var e = this;
|
|
10201
|
-
this.isPIPAvailable() && (M(O(r.prototype), "afterCreate", this).call(this), this.pMode = qe.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(
|
|
10200
|
+
this.isPIPAvailable() && (M(O(r.prototype), "afterCreate", this).call(this), this.pMode = qe.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Dt, function() {
|
|
10202
10201
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10203
10202
|
}));
|
|
10204
10203
|
}
|
|
@@ -10207,11 +10206,11 @@ var qe = {
|
|
|
10207
10206
|
value: function() {
|
|
10208
10207
|
return {
|
|
10209
10208
|
pipIcon: {
|
|
10210
|
-
icon:
|
|
10209
|
+
icon: fl,
|
|
10211
10210
|
class: "xg-get-pip"
|
|
10212
10211
|
},
|
|
10213
10212
|
pipIconExit: {
|
|
10214
|
-
icon:
|
|
10213
|
+
icon: hl,
|
|
10215
10214
|
class: "xg-exit-pip"
|
|
10216
10215
|
}
|
|
10217
10216
|
};
|
|
@@ -10230,9 +10229,9 @@ var qe = {
|
|
|
10230
10229
|
var n = i.paused;
|
|
10231
10230
|
f.setTimeout(e, function() {
|
|
10232
10231
|
!n && i.mediaPlay();
|
|
10233
|
-
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(
|
|
10232
|
+
}, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(ui, !1);
|
|
10234
10233
|
}, this.enterPIPCallback = function(n) {
|
|
10235
|
-
i.emit(
|
|
10234
|
+
i.emit(ui, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
10236
10235
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
10237
10236
|
var s = i.media.webkitPresentationMode;
|
|
10238
10237
|
e.pMode === qe.FULLSCREEN && s !== qe.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === qe.PIP ? e.enterPIPCallback(n) : s === qe.INLINE && e.leavePIPCallback(n);
|
|
@@ -10370,13 +10369,13 @@ var qe = {
|
|
|
10370
10369
|
}
|
|
10371
10370
|
}]), r;
|
|
10372
10371
|
}($e);
|
|
10373
|
-
function
|
|
10372
|
+
function gl() {
|
|
10374
10373
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10375
10374
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10376
10375
|
</svg>
|
|
10377
10376
|
`, "image/svg+xml").firstChild;
|
|
10378
10377
|
}
|
|
10379
|
-
var
|
|
10378
|
+
var pl = /* @__PURE__ */ function(a) {
|
|
10380
10379
|
L(r, a);
|
|
10381
10380
|
var o = A(r);
|
|
10382
10381
|
function r(t) {
|
|
@@ -10395,7 +10394,7 @@ var vl = /* @__PURE__ */ function(a) {
|
|
|
10395
10394
|
key: "registerIcons",
|
|
10396
10395
|
value: function() {
|
|
10397
10396
|
return {
|
|
10398
|
-
playNext:
|
|
10397
|
+
playNext: gl
|
|
10399
10398
|
};
|
|
10400
10399
|
}
|
|
10401
10400
|
}, {
|
|
@@ -10517,9 +10516,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10517
10516
|
};
|
|
10518
10517
|
});
|
|
10519
10518
|
})(er);
|
|
10520
|
-
var
|
|
10521
|
-
const
|
|
10522
|
-
function
|
|
10519
|
+
var vl = er.exports;
|
|
10520
|
+
const ml = /* @__PURE__ */ di(vl);
|
|
10521
|
+
function yl() {
|
|
10523
10522
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10524
10523
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10525
10524
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10536,7 +10535,7 @@ function _l() {
|
|
|
10536
10535
|
</svg>
|
|
10537
10536
|
`, "image/svg+xml").firstChild;
|
|
10538
10537
|
}
|
|
10539
|
-
var
|
|
10538
|
+
var _l = /* @__PURE__ */ function(a) {
|
|
10540
10539
|
L(r, a);
|
|
10541
10540
|
var o = A(r);
|
|
10542
10541
|
function r(t) {
|
|
@@ -10547,7 +10546,7 @@ var Cl = /* @__PURE__ */ function(a) {
|
|
|
10547
10546
|
var n = e.playerConfig.url, s = "";
|
|
10548
10547
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10549
10548
|
var l = e.getAbsoluteURL(s);
|
|
10550
|
-
|
|
10549
|
+
ml(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10551
10550
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10552
10551
|
}, 300);
|
|
10553
10552
|
}
|
|
@@ -10566,7 +10565,7 @@ var Cl = /* @__PURE__ */ function(a) {
|
|
|
10566
10565
|
key: "registerIcons",
|
|
10567
10566
|
value: function() {
|
|
10568
10567
|
return {
|
|
10569
|
-
download:
|
|
10568
|
+
download: yl
|
|
10570
10569
|
};
|
|
10571
10570
|
}
|
|
10572
10571
|
}, {
|
|
@@ -10608,7 +10607,7 @@ var Cl = /* @__PURE__ */ function(a) {
|
|
|
10608
10607
|
};
|
|
10609
10608
|
}
|
|
10610
10609
|
}]), r;
|
|
10611
|
-
}($e),
|
|
10610
|
+
}($e), Cl = /* @__PURE__ */ function(a) {
|
|
10612
10611
|
L(r, a);
|
|
10613
10612
|
var o = A(r);
|
|
10614
10613
|
function r() {
|
|
@@ -10734,7 +10733,7 @@ var Cl = /* @__PURE__ */ function(a) {
|
|
|
10734
10733
|
};
|
|
10735
10734
|
}
|
|
10736
10735
|
}]), r;
|
|
10737
|
-
}($e),
|
|
10736
|
+
}($e), kl = /* @__PURE__ */ function() {
|
|
10738
10737
|
function a(o) {
|
|
10739
10738
|
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);
|
|
10740
10739
|
var r = this.config.maxHeight;
|
|
@@ -10814,7 +10813,7 @@ var Cl = /* @__PURE__ */ function(a) {
|
|
|
10814
10813
|
CLICK: "click",
|
|
10815
10814
|
HOVER: "hover"
|
|
10816
10815
|
};
|
|
10817
|
-
function
|
|
10816
|
+
function wl(a, o) {
|
|
10818
10817
|
return a === Ce.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
10819
10818
|
}
|
|
10820
10819
|
var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
@@ -10928,7 +10927,7 @@ var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
|
10928
10927
|
var c = {
|
|
10929
10928
|
config: {
|
|
10930
10929
|
data: e || [],
|
|
10931
|
-
className:
|
|
10930
|
+
className: wl(s.listType, s.position),
|
|
10932
10931
|
onItemClick: function(m, y) {
|
|
10933
10932
|
n.onItemClick(m, y);
|
|
10934
10933
|
},
|
|
@@ -10938,7 +10937,7 @@ var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
|
10938
10937
|
};
|
|
10939
10938
|
if (this.config.isShowIcon) {
|
|
10940
10939
|
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === Ce.MIDDLE ? d - 50 : d;
|
|
10941
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
10940
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new kl(c), this.changeCurrentText(), this.show();
|
|
10942
10941
|
}
|
|
10943
10942
|
this._resizeList();
|
|
10944
10943
|
}
|
|
@@ -10989,7 +10988,7 @@ var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
|
10989
10988
|
};
|
|
10990
10989
|
}
|
|
10991
10990
|
}]), r;
|
|
10992
|
-
}(j),
|
|
10991
|
+
}(j), bl = /* @__PURE__ */ function(a) {
|
|
10993
10992
|
L(r, a);
|
|
10994
10993
|
var o = A(r);
|
|
10995
10994
|
function r(t) {
|
|
@@ -11090,7 +11089,7 @@ var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
|
11090
11089
|
});
|
|
11091
11090
|
}
|
|
11092
11091
|
}]), r;
|
|
11093
|
-
}(Lt),
|
|
11092
|
+
}(Lt), Tl = /* @__PURE__ */ function(a) {
|
|
11094
11093
|
L(r, a);
|
|
11095
11094
|
var o = A(r);
|
|
11096
11095
|
function r(t) {
|
|
@@ -11183,13 +11182,13 @@ var Ue = B.device === "mobile", Lt = /* @__PURE__ */ function(a) {
|
|
|
11183
11182
|
}
|
|
11184
11183
|
}]), r;
|
|
11185
11184
|
}(Lt);
|
|
11186
|
-
function
|
|
11185
|
+
function El() {
|
|
11187
11186
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11188
11187
|
<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>
|
|
11189
11188
|
</svg>
|
|
11190
11189
|
`, "image/svg+xml").firstChild;
|
|
11191
11190
|
}
|
|
11192
|
-
function
|
|
11191
|
+
function Sl() {
|
|
11193
11192
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11194
11193
|
<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>
|
|
11195
11194
|
</svg>
|
|
@@ -11249,11 +11248,11 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11249
11248
|
value: function() {
|
|
11250
11249
|
return {
|
|
11251
11250
|
cssFullscreen: {
|
|
11252
|
-
icon:
|
|
11251
|
+
icon: El,
|
|
11253
11252
|
class: "xg-get-cssfull"
|
|
11254
11253
|
},
|
|
11255
11254
|
exitCssFullscreen: {
|
|
11256
|
-
icon:
|
|
11255
|
+
icon: Sl,
|
|
11257
11256
|
class: "xg-exit-cssfull"
|
|
11258
11257
|
}
|
|
11259
11258
|
};
|
|
@@ -11289,7 +11288,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11289
11288
|
};
|
|
11290
11289
|
}
|
|
11291
11290
|
}]), r;
|
|
11292
|
-
}($e),
|
|
11291
|
+
}($e), xl = /* @__PURE__ */ function(a) {
|
|
11293
11292
|
L(r, a);
|
|
11294
11293
|
var o = A(r);
|
|
11295
11294
|
function r() {
|
|
@@ -11350,7 +11349,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11350
11349
|
return "error";
|
|
11351
11350
|
}
|
|
11352
11351
|
}]), r;
|
|
11353
|
-
}(j),
|
|
11352
|
+
}(j), Il = /* @__PURE__ */ function(a) {
|
|
11354
11353
|
L(r, a);
|
|
11355
11354
|
var o = A(r);
|
|
11356
11355
|
function r() {
|
|
@@ -11580,7 +11579,7 @@ var yn = {
|
|
|
11580
11579
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11581
11580
|
}
|
|
11582
11581
|
};
|
|
11583
|
-
function
|
|
11582
|
+
function Pl(a) {
|
|
11584
11583
|
var o = a.config, r = a.player;
|
|
11585
11584
|
Object.keys(yn).map(function(e) {
|
|
11586
11585
|
a[e] = yn[e].bind(a);
|
|
@@ -11604,7 +11603,7 @@ var Je = {
|
|
|
11604
11603
|
click: "onProgressClick",
|
|
11605
11604
|
mouseover: "onProgressMouseOver",
|
|
11606
11605
|
mouseenter: "onProgressMouseOver"
|
|
11607
|
-
},
|
|
11606
|
+
}, Ll = /* @__PURE__ */ function(a) {
|
|
11608
11607
|
L(r, a);
|
|
11609
11608
|
var o = A(r);
|
|
11610
11609
|
function r(t) {
|
|
@@ -11655,7 +11654,7 @@ var Je = {
|
|
|
11655
11654
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11656
11655
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11657
11656
|
e.setTimeContent(f.format(i));
|
|
11658
|
-
}),
|
|
11657
|
+
}), Pl(this), this.on(Ne, function() {
|
|
11659
11658
|
e.show();
|
|
11660
11659
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11661
11660
|
}
|
|
@@ -11879,7 +11878,7 @@ var Je = {
|
|
|
11879
11878
|
};
|
|
11880
11879
|
}
|
|
11881
11880
|
}]), r;
|
|
11882
|
-
}(j),
|
|
11881
|
+
}(j), Al = /* @__PURE__ */ function(a) {
|
|
11883
11882
|
L(r, a);
|
|
11884
11883
|
var o = A(r);
|
|
11885
11884
|
function r(t) {
|
|
@@ -12014,10 +12013,10 @@ var Je = {
|
|
|
12014
12013
|
}
|
|
12015
12014
|
}]), r;
|
|
12016
12015
|
}(j);
|
|
12017
|
-
function
|
|
12016
|
+
function Zt(a) {
|
|
12018
12017
|
return a ? "background:".concat(a, ";") : "";
|
|
12019
12018
|
}
|
|
12020
|
-
var
|
|
12019
|
+
var Dl = /* @__PURE__ */ function(a) {
|
|
12021
12020
|
L(r, a);
|
|
12022
12021
|
var o = A(r);
|
|
12023
12022
|
function r() {
|
|
@@ -12074,9 +12073,9 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
12074
12073
|
var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
|
|
12075
12074
|
if (n) {
|
|
12076
12075
|
var s = this.config, l = s.mode, u = s.height, c = {
|
|
12077
|
-
cached:
|
|
12078
|
-
played:
|
|
12079
|
-
progress:
|
|
12076
|
+
cached: Zt(i.cachedColor),
|
|
12077
|
+
played: Zt(i.playedColor),
|
|
12078
|
+
progress: Zt(i.progressColor),
|
|
12080
12079
|
height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
|
|
12081
12080
|
}, h = l === "show" ? "xg-mini-progress-show" : "";
|
|
12082
12081
|
return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
|
|
@@ -12105,14 +12104,14 @@ var Ol = /* @__PURE__ */ function(a) {
|
|
|
12105
12104
|
FRAME_RATE: "framerate",
|
|
12106
12105
|
POSTER: "poster"
|
|
12107
12106
|
};
|
|
12108
|
-
function
|
|
12107
|
+
function Ol() {
|
|
12109
12108
|
try {
|
|
12110
12109
|
return parseInt(window.performance.now(), 10);
|
|
12111
12110
|
} catch {
|
|
12112
12111
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12113
12112
|
}
|
|
12114
12113
|
}
|
|
12115
|
-
function
|
|
12114
|
+
function Rl() {
|
|
12116
12115
|
try {
|
|
12117
12116
|
var a = document.createElement("canvas").getContext;
|
|
12118
12117
|
return !!a;
|
|
@@ -12120,7 +12119,7 @@ function Ml() {
|
|
|
12120
12119
|
return !1;
|
|
12121
12120
|
}
|
|
12122
12121
|
}
|
|
12123
|
-
var yt = null,
|
|
12122
|
+
var yt = null, Ml = /* @__PURE__ */ function(a) {
|
|
12124
12123
|
L(r, a);
|
|
12125
12124
|
var o = A(r);
|
|
12126
12125
|
function r() {
|
|
@@ -12141,7 +12140,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12141
12140
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12142
12141
|
}
|
|
12143
12142
|
}), _(v(t), "start", function(s, l) {
|
|
12144
|
-
var u = t.player.video, c =
|
|
12143
|
+
var u = t.player.video, c = Ol(), h = t.checkVideoIsSupport(u);
|
|
12145
12144
|
!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 === Qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
12146
12145
|
}), _(v(t), "stop", function() {
|
|
12147
12146
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -12161,7 +12160,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12161
12160
|
x: 0,
|
|
12162
12161
|
y: 0,
|
|
12163
12162
|
pi: 0
|
|
12164
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(
|
|
12163
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Dt, function() {
|
|
12165
12164
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12166
12165
|
}), s !== Qe.POSTER && (s !== Qe.FIRST_FRAME && (this.on(Ge, function() {
|
|
12167
12166
|
e.stop();
|
|
@@ -12314,7 +12313,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12314
12313
|
}, {
|
|
12315
12314
|
key: "isSupport",
|
|
12316
12315
|
get: function() {
|
|
12317
|
-
return typeof yt == "boolean" || (yt =
|
|
12316
|
+
return typeof yt == "boolean" || (yt = Rl()), yt;
|
|
12318
12317
|
}
|
|
12319
12318
|
}, {
|
|
12320
12319
|
key: "supportCanvasFilter",
|
|
@@ -12322,7 +12321,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12322
12321
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
12323
12322
|
}
|
|
12324
12323
|
}]), r;
|
|
12325
|
-
}(j),
|
|
12324
|
+
}(j), Fl = {
|
|
12326
12325
|
LANG: "zh-cn",
|
|
12327
12326
|
TEXT: {
|
|
12328
12327
|
ERROR_TYPES: {
|
|
@@ -12397,7 +12396,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12397
12396
|
FORWARD: "快进中",
|
|
12398
12397
|
LIVE_TIP: "直播"
|
|
12399
12398
|
}
|
|
12400
|
-
}, at = "info",
|
|
12399
|
+
}, at = "info", Jt = Kn, Nl = /* @__PURE__ */ function(a) {
|
|
12401
12400
|
L(r, a);
|
|
12402
12401
|
var o = A(r);
|
|
12403
12402
|
function r() {
|
|
@@ -12436,7 +12435,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12436
12435
|
}, {
|
|
12437
12436
|
key: "afterCreate",
|
|
12438
12437
|
value: function() {
|
|
12439
|
-
this.reset(), this.on(St, this._recordUserActions), this.on(
|
|
12438
|
+
this.reset(), this.on(St, this._recordUserActions), this.on(Jt.STATS_INFO, this._recordInfo), this.on(Jt.STATS_DOWNLOAD, this._downloadStats), this.on(Jt.STATS_RESET, this._onReset);
|
|
12440
12439
|
}
|
|
12441
12440
|
}, {
|
|
12442
12441
|
key: "destroy",
|
|
@@ -12584,7 +12583,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12584
12583
|
var e = this, i = this.config.useGapJump;
|
|
12585
12584
|
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(gt, this.onGapJump), this.on(he, function() {
|
|
12586
12585
|
e.hasPlayed = !0;
|
|
12587
|
-
}), this.on(
|
|
12586
|
+
}), this.on(At, function() {
|
|
12588
12587
|
e.seekingEventReceived = !0;
|
|
12589
12588
|
}));
|
|
12590
12589
|
}
|
|
@@ -12631,7 +12630,7 @@ var yt = null, Fl = /* @__PURE__ */ function(a) {
|
|
|
12631
12630
|
}]), r;
|
|
12632
12631
|
}(j);
|
|
12633
12632
|
ir.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12634
|
-
var
|
|
12633
|
+
var Bl = /* @__PURE__ */ function(a) {
|
|
12635
12634
|
L(r, a);
|
|
12636
12635
|
var o = A(r);
|
|
12637
12636
|
function r() {
|
|
@@ -12677,7 +12676,7 @@ var Hl = /* @__PURE__ */ function(a) {
|
|
|
12677
12676
|
};
|
|
12678
12677
|
}
|
|
12679
12678
|
}]), r;
|
|
12680
|
-
}(j), et = "cdn", _t = ["cdn"],
|
|
12679
|
+
}(j), et = "cdn", _t = ["cdn"], Hl = /* @__PURE__ */ function(a) {
|
|
12681
12680
|
L(r, a);
|
|
12682
12681
|
var o = A(r);
|
|
12683
12682
|
function r() {
|
|
@@ -12736,13 +12735,13 @@ var Hl = /* @__PURE__ */ function(a) {
|
|
|
12736
12735
|
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : et, l = t.getSpeed(s), u = v(t), c = u.player;
|
|
12737
12736
|
if (c)
|
|
12738
12737
|
if (s === et)
|
|
12739
|
-
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(
|
|
12738
|
+
(!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ai, {
|
|
12740
12739
|
speed: l,
|
|
12741
12740
|
realTimeSpeed: c.realTimeSpeed
|
|
12742
12741
|
}));
|
|
12743
12742
|
else {
|
|
12744
12743
|
var h = t.getSpeedName("avg", s);
|
|
12745
|
-
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(
|
|
12744
|
+
(!c[h] || l !== c[h]) && (c[h] = l, c.emit(ai, {
|
|
12746
12745
|
speed: l,
|
|
12747
12746
|
realTimeSpeed: c.realTimeSpeed
|
|
12748
12747
|
}));
|
|
@@ -12803,7 +12802,7 @@ var Hl = /* @__PURE__ */ function(a) {
|
|
|
12803
12802
|
};
|
|
12804
12803
|
}
|
|
12805
12804
|
}]), r;
|
|
12806
|
-
}(j),
|
|
12805
|
+
}(j), Ul = /* @__PURE__ */ function(a) {
|
|
12807
12806
|
L(r, a);
|
|
12808
12807
|
var o = A(r);
|
|
12809
12808
|
function r() {
|
|
@@ -12913,24 +12912,24 @@ var Hl = /* @__PURE__ */ function(a) {
|
|
|
12913
12912
|
}
|
|
12914
12913
|
}]), r;
|
|
12915
12914
|
}(j);
|
|
12916
|
-
it.use(
|
|
12917
|
-
var
|
|
12915
|
+
it.use(Fl);
|
|
12916
|
+
var zl = /* @__PURE__ */ I(function a(o, r) {
|
|
12918
12917
|
var t, e, i;
|
|
12919
12918
|
x(this, a);
|
|
12920
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
12921
|
-
this.plugins = [
|
|
12919
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [rl, qa, Dl, Ll, nl], u = [].concat(l, [Za, il, cl, pl, bl, Tl, _l, Cl, ll, dl]), c = [La, Aa, Oa, Ka, Ra, xl, Il, Al, Ba];
|
|
12920
|
+
this.plugins = [Nl, Ia].concat(ve(u), c, [ir, Bl]);
|
|
12922
12921
|
var h = n ? "mobile" : B.device;
|
|
12923
12922
|
switch (h) {
|
|
12924
12923
|
case "pc":
|
|
12925
|
-
(t = this.plugins).push.apply(t, [gn,
|
|
12924
|
+
(t = this.plugins).push.apply(t, [gn, Xt, vn, Hl, Ul]);
|
|
12926
12925
|
break;
|
|
12927
12926
|
case "mobile":
|
|
12928
|
-
(e = this.plugins).push.apply(e, [
|
|
12927
|
+
(e = this.plugins).push.apply(e, [Wa]);
|
|
12929
12928
|
break;
|
|
12930
12929
|
default:
|
|
12931
|
-
(i = this.plugins).push.apply(i, [gn,
|
|
12930
|
+
(i = this.plugins).push.apply(i, [gn, Xt, vn]);
|
|
12932
12931
|
}
|
|
12933
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
12932
|
+
(B.os.isIpad || h === "pc") && this.plugins.push(Ml), B.os.isIpad && this.plugins.push(Xt), this.ignores = [], this.i18n = [];
|
|
12934
12933
|
}), me = /* @__PURE__ */ function(a) {
|
|
12935
12934
|
L(r, a);
|
|
12936
12935
|
var o = A(r);
|
|
@@ -12938,18 +12937,18 @@ var Vl = /* @__PURE__ */ I(function a(o, r) {
|
|
|
12938
12937
|
return x(this, r), o.apply(this, arguments);
|
|
12939
12938
|
}
|
|
12940
12939
|
return I(r);
|
|
12941
|
-
}(
|
|
12942
|
-
_(me, "defaultPreset",
|
|
12940
|
+
}(Mt);
|
|
12941
|
+
_(me, "defaultPreset", zl);
|
|
12943
12942
|
_(me, "Util", f);
|
|
12944
12943
|
_(me, "Sniffer", B);
|
|
12945
12944
|
_(me, "Errors", kt);
|
|
12946
|
-
_(me, "Events",
|
|
12945
|
+
_(me, "Events", ia);
|
|
12947
12946
|
_(me, "Plugin", j);
|
|
12948
12947
|
_(me, "BasePlugin", Me);
|
|
12949
12948
|
_(me, "I18N", it);
|
|
12950
12949
|
_(me, "STATE_CLASS", C);
|
|
12951
12950
|
_(me, "InstManager", Jn);
|
|
12952
|
-
const
|
|
12951
|
+
const Vl = ["id"], jl = /* @__PURE__ */ J({
|
|
12953
12952
|
name: "ElImageViewer",
|
|
12954
12953
|
__name: "Player",
|
|
12955
12954
|
props: /* @__PURE__ */ Ct({
|
|
@@ -12999,12 +12998,12 @@ const jl = ["id"], Wl = /* @__PURE__ */ J({
|
|
|
12999
12998
|
}, s = Y(() => ({
|
|
13000
12999
|
...n,
|
|
13001
13000
|
...t.config
|
|
13002
|
-
})), l = o, u =
|
|
13001
|
+
})), l = o, u = ci(a, "modelValue"), c = kn(), h = wn("image-viewer");
|
|
13003
13002
|
function d() {
|
|
13004
13003
|
l("close"), u.value = !1, r.destroy();
|
|
13005
13004
|
}
|
|
13006
13005
|
return ut(() => u.value, (p) => {
|
|
13007
|
-
p &&
|
|
13006
|
+
p && fi(() => {
|
|
13008
13007
|
r = new me({
|
|
13009
13008
|
id: c,
|
|
13010
13009
|
url: i.value,
|
|
@@ -13047,7 +13046,7 @@ const jl = ["id"], Wl = /* @__PURE__ */ J({
|
|
|
13047
13046
|
class: K(E(h).e("canvas"))
|
|
13048
13047
|
},
|
|
13049
13048
|
[
|
|
13050
|
-
T("div", { id: E(c) }, null, 8,
|
|
13049
|
+
T("div", { id: E(c) }, null, 8, Vl),
|
|
13051
13050
|
ee(" CLOSE "),
|
|
13052
13051
|
T(
|
|
13053
13052
|
"span",
|
|
@@ -13084,7 +13083,7 @@ const jl = ["id"], Wl = /* @__PURE__ */ J({
|
|
|
13084
13083
|
};
|
|
13085
13084
|
}
|
|
13086
13085
|
});
|
|
13087
|
-
const
|
|
13086
|
+
const Wl = /* @__PURE__ */ hi(jl, [["__scopeId", "data-v-b301aa7d"]]), Gl = Fe(Wl), $l = ["onClick"], Kl = { class: "fileName simple" }, Yl = ["onClick"], Xl = { class: "text" }, ql = { class: "fileName" }, Zl = { class: "size" }, Jl = /* @__PURE__ */ J({
|
|
13088
13087
|
__name: "IkPreviewFile",
|
|
13089
13088
|
props: {
|
|
13090
13089
|
list: {
|
|
@@ -13184,7 +13183,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13184
13183
|
),
|
|
13185
13184
|
g[s.value.name] || g.attachmentName
|
|
13186
13185
|
);
|
|
13187
|
-
}, d = Y(() =>
|
|
13186
|
+
}, d = Y(() => ii.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) => {
|
|
13188
13187
|
var y;
|
|
13189
13188
|
const m = g[s.value.name] || g.attachmentName;
|
|
13190
13189
|
return {
|
|
@@ -13208,14 +13207,14 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13208
13207
|
a.simple ? (S(!0), D(
|
|
13209
13208
|
Ve,
|
|
13210
13209
|
{ key: 0 },
|
|
13211
|
-
|
|
13210
|
+
ti(p.value, (P, F) => (S(), D("div", {
|
|
13212
13211
|
class: "iking-privew-annex simple",
|
|
13213
13212
|
onClick: (U) => c(P),
|
|
13214
13213
|
style: ue({ width: d.value })
|
|
13215
13214
|
}, [
|
|
13216
13215
|
T(
|
|
13217
13216
|
"div",
|
|
13218
|
-
|
|
13217
|
+
Kl,
|
|
13219
13218
|
nt(P.name),
|
|
13220
13219
|
1
|
|
13221
13220
|
/* TEXT */
|
|
@@ -13228,7 +13227,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13228
13227
|
[
|
|
13229
13228
|
G(E(tt), {
|
|
13230
13229
|
name: "iksvg_daochu",
|
|
13231
|
-
onClick:
|
|
13230
|
+
onClick: ei((U) => h(P), ["stop"]),
|
|
13232
13231
|
size: 20,
|
|
13233
13232
|
active: ""
|
|
13234
13233
|
}, null, 8, ["onClick"]),
|
|
@@ -13245,7 +13244,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13245
13244
|
2
|
|
13246
13245
|
/* CLASS */
|
|
13247
13246
|
)
|
|
13248
|
-
], 12,
|
|
13247
|
+
], 12, $l))),
|
|
13249
13248
|
256
|
|
13250
13249
|
/* UNKEYED_FRAGMENT */
|
|
13251
13250
|
)) : (S(), pe(y, { key: 1 }, {
|
|
@@ -13253,7 +13252,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13253
13252
|
(S(!0), D(
|
|
13254
13253
|
Ve,
|
|
13255
13254
|
null,
|
|
13256
|
-
|
|
13255
|
+
ti(p.value, (P, F) => {
|
|
13257
13256
|
var U;
|
|
13258
13257
|
return S(), D(
|
|
13259
13258
|
"div",
|
|
@@ -13276,17 +13275,17 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13276
13275
|
class: "ikui-w-auto",
|
|
13277
13276
|
fields: s.value
|
|
13278
13277
|
}, null, 8, ["file", "style", "fields"]),
|
|
13279
|
-
T("div",
|
|
13278
|
+
T("div", Xl, [
|
|
13280
13279
|
T(
|
|
13281
13280
|
"div",
|
|
13282
|
-
|
|
13281
|
+
ql,
|
|
13283
13282
|
nt(P.name),
|
|
13284
13283
|
1
|
|
13285
13284
|
/* TEXT */
|
|
13286
13285
|
),
|
|
13287
13286
|
T(
|
|
13288
13287
|
"div",
|
|
13289
|
-
|
|
13288
|
+
Zl,
|
|
13290
13289
|
nt(E(zs)(P.size)),
|
|
13291
13290
|
1
|
|
13292
13291
|
/* TEXT */
|
|
@@ -13300,7 +13299,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13300
13299
|
[
|
|
13301
13300
|
G(E(tt), {
|
|
13302
13301
|
name: "iksvg_daochu",
|
|
13303
|
-
onClick:
|
|
13302
|
+
onClick: ei((R) => h(P), ["stop"]),
|
|
13304
13303
|
bg: a.showBg,
|
|
13305
13304
|
size: a.showBg ? "default" : 20,
|
|
13306
13305
|
title: "下载"
|
|
@@ -13319,7 +13318,7 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13319
13318
|
2
|
|
13320
13319
|
/* CLASS */
|
|
13321
13320
|
)
|
|
13322
|
-
], 8,
|
|
13321
|
+
], 8, Yl)
|
|
13323
13322
|
],
|
|
13324
13323
|
6
|
|
13325
13324
|
/* CLASS, STYLE */
|
|
@@ -13352,8 +13351,8 @@ const Gl = /* @__PURE__ */ At(Wl, [["__scopeId", "data-v-b301aa7d"]]), $l = Fe(G
|
|
|
13352
13351
|
};
|
|
13353
13352
|
}
|
|
13354
13353
|
});
|
|
13355
|
-
const
|
|
13354
|
+
const iu = Fe(Jl);
|
|
13356
13355
|
export {
|
|
13357
|
-
|
|
13358
|
-
|
|
13356
|
+
iu as IkPreviewFile,
|
|
13357
|
+
iu as default
|
|
13359
13358
|
};
|