iking-web-ui-pro 0.2.43 → 0.2.44

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