iking-web-ui-pro 0.2.28 → 0.2.29

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 (37) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +927 -872
  2. package/dist/IKPreviewFile/ik.index.umd.js +36 -36
  3. package/dist/IKSearch/ik.index.es.js +727 -665
  4. package/dist/IKSearch/ik.index.umd.js +2 -2
  5. package/dist/IKSearch/style.css +1 -1
  6. package/dist/IkApprovalProcess/ik.index.es.js +580 -527
  7. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  8. package/dist/IkApprovalProcess/style.css +1 -1
  9. package/dist/IkApprovalProcessDetail/ik.index.es.js +674 -619
  10. package/dist/IkApprovalProcessDetail/ik.index.umd.js +38 -38
  11. package/dist/IkCalendar/ik.index.es.js +1815 -1753
  12. package/dist/IkCalendar/ik.index.umd.js +1 -1
  13. package/dist/IkCalendar/style.css +1 -1
  14. package/dist/IkDescription/ik.index.es.js +1086 -1031
  15. package/dist/IkDescription/ik.index.umd.js +36 -36
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +970 -915
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +42 -42
  18. package/dist/IkPageFull/ik.index.es.js +1038 -976
  19. package/dist/IkPageFull/ik.index.umd.js +3 -3
  20. package/dist/IkPageFull/style.css +1 -1
  21. package/dist/IkPickerUser/ik.index.es.js +741 -679
  22. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  23. package/dist/IkPickerUser/style.css +1 -1
  24. package/dist/IkPlayer/ik.index.es.js +54 -1
  25. package/dist/IkPlayer/ik.index.umd.js +1 -1
  26. package/dist/IkPreviewFileDialog/ik.index.es.js +54 -1
  27. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  28. package/dist/IkUploadFile/ik.index.es.js +1592 -1531
  29. package/dist/IkUploadFile/ik.index.umd.js +57 -57
  30. package/dist/IkUploadFile/style.css +1 -1
  31. package/dist/IkUploadImage/ik.index.es.js +143 -90
  32. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  33. package/dist/index.es.js +15155 -15092
  34. package/dist/index.umd.js +106 -106
  35. package/dist/src/utils/use-provider.d.ts +1 -0
  36. package/dist/style.css +1 -1
  37. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as Le, createCommentVNode as he, createVNode as J, unref as j, withCtx as de, normalizeClass as Q, normalizeStyle as oe, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ie, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
1
+ import { defineComponent as ue, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as me, createCommentVNode as ne, createVNode as re, unref as V, withCtx as de, normalizeClass as J, normalizeStyle as ae, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ae, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
2
2
  import { buildUUID as Vi, ikColor as xn, paramType as Pn, ikFile as In } from "iking-utils-pro";
3
3
  import { useNamespace as An } from "element-plus";
4
4
  const De = (a, o) => {
@@ -598,7 +598,7 @@ const De = (a, o) => {
598
598
  Ar,
599
599
  Lr,
600
600
  Dr
601
- ], Or = /* @__PURE__ */ le({
601
+ ], Or = /* @__PURE__ */ ue({
602
602
  __name: "IkFileIcon",
603
603
  props: {
604
604
  type: {
@@ -624,7 +624,7 @@ const De = (a, o) => {
624
624
  }
625
625
  }), Fr = De(Or);
626
626
  /*! Element Plus Icons Vue v2.3.1 */
627
- var Mr = /* @__PURE__ */ le({
627
+ var Mr = /* @__PURE__ */ ue({
628
628
  name: "Close",
629
629
  __name: "close",
630
630
  setup(a) {
@@ -659,9 +659,62 @@ const yt = (a, o) => {
659
659
  cUploadUrl: e,
660
660
  cToken: n,
661
661
  cOnlyofficeConfig: l,
662
- cUserInfo: c
662
+ cUserInfo: c,
663
+ cOnlyofficePreviewType: [
664
+ "csv",
665
+ "djvu",
666
+ "doc",
667
+ "docm",
668
+ "docx",
669
+ "docxf",
670
+ "dot",
671
+ "dotm",
672
+ "dotx",
673
+ "epub",
674
+ "fb2",
675
+ "fodp",
676
+ "fods",
677
+ "fodt",
678
+ "htm",
679
+ "html",
680
+ "mht",
681
+ "odp",
682
+ "ods",
683
+ "odt",
684
+ "oform",
685
+ "otp",
686
+ "ots",
687
+ "ott",
688
+ "oxps",
689
+ "pdf",
690
+ "pot",
691
+ "potm",
692
+ "potx",
693
+ "pps",
694
+ "ppsm",
695
+ "ppsx",
696
+ "ppt",
697
+ "pptm",
698
+ "pptx",
699
+ "rtf",
700
+ "txt",
701
+ "xls",
702
+ "xlsb",
703
+ "xlsm",
704
+ "xlsx",
705
+ "xlt",
706
+ "xltm",
707
+ "xltx",
708
+ "xml",
709
+ "xps",
710
+ "png",
711
+ "jpeg",
712
+ "jpg",
713
+ "video",
714
+ "mp4"
715
+ ]
663
716
  };
664
- }, ji = Hr, Ur = /* @__PURE__ */ le({
717
+ }, ji = Hr, Ur = /* @__PURE__ */ ue({
665
718
  __name: "IkPreviewFileDialog",
666
719
  props: /* @__PURE__ */ at({
667
720
  file: {
@@ -709,9 +762,9 @@ const yt = (a, o) => {
709
762
  office: !1,
710
763
  video: !1
711
764
  }), s = (u) => {
712
- var c, h, d, g, p, m, _;
765
+ var c, h, d, p, g, m, y;
713
766
  try {
714
- const w = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = w[t.value.url] || (w == null ? void 0 : w.id) || w.attachmentId, C = (h = w[t.value.suffix] || w.attachmentSuffix) == null ? void 0 : h.toLowerCase(), F = w[t.value.name] || (w == null ? void 0 : w.attachmentName) || (w == null ? void 0 : w.originName);
767
+ 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(), I = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
715
768
  if (i.value = {
716
769
  ...u,
717
770
  name: u[t.value.name],
@@ -722,13 +775,13 @@ const yt = (a, o) => {
722
775
  } else if (u && Ht(u, t.value) === "video") {
723
776
  n.video = !0;
724
777
  return;
725
- } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(C)) {
778
+ } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
726
779
  n.office = !0, e.value = {
727
780
  ...o.onlyOfficeConfig,
728
781
  editorConfig: {
729
- ...((g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) || {},
782
+ ...((p = o.onlyOfficeConfig) == null ? void 0 : p.editorConfig) || {},
730
783
  customization: {
731
- ...((m = (p = o.onlyOfficeConfig) == null ? void 0 : p.editorConfig) == null ? void 0 : m.customization) || {},
784
+ ...((m = (g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) == null ? void 0 : m.customization) || {},
732
785
  review: {
733
786
  reviewDisplay: "final"
734
787
  }
@@ -736,17 +789,17 @@ const yt = (a, o) => {
736
789
  },
737
790
  document: {
738
791
  key: Vi(),
739
- title: F,
792
+ title: I,
740
793
  url: Qe(o.loadUrl, b),
741
- fileType: C,
742
- ...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
794
+ fileType: w,
795
+ ...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
743
796
  },
744
- documentType: Dn(C)
797
+ documentType: Dn(w)
745
798
  };
746
799
  return;
747
800
  }
748
- } catch (w) {
749
- console.info("预览错误: ", w);
801
+ } catch (k) {
802
+ console.info("预览错误: ", k);
750
803
  }
751
804
  };
752
805
  Ui([r, o.file], ([u, c]) => {
@@ -758,27 +811,27 @@ const yt = (a, o) => {
758
811
  r.value = !1, n.office = !1, n.image = !1, n.video = !1, i.value = null;
759
812
  };
760
813
  return (u, c) => {
761
- var d, g, p;
814
+ var d, p, g;
762
815
  const h = $e("el-image-viewer");
763
816
  return r.value ? (L(), N(
764
817
  Ze,
765
818
  { key: 0 },
766
819
  [
767
- (d = i.value) != null && d.url && n.image ? (L(), Le(h, {
820
+ (d = i.value) != null && d.url && n.image ? (L(), me(h, {
768
821
  key: 0,
769
822
  onClose: c[0] || (c[0] = (m) => l()),
770
823
  ref: "previewImgRef",
771
- "url-list": [(g = i.value) == null ? void 0 : g.url],
824
+ "url-list": [(p = i.value) == null ? void 0 : p.url],
772
825
  teleported: ""
773
- }, null, 8, ["url-list"])) : he("v-if", !0),
774
- he(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
775
- he(" 文档类 "),
776
- J(j(xa), {
826
+ }, null, 8, ["url-list"])) : ne("v-if", !0),
827
+ ne(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
828
+ ne(" 文档类 "),
829
+ re(V(xa), {
777
830
  modelValue: n.video,
778
831
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
779
- url: (p = i.value) == null ? void 0 : p.url
832
+ url: (g = i.value) == null ? void 0 : g.url
780
833
  }, null, 8, ["modelValue", "url"]),
781
- J(j(ts), {
834
+ re(V(ts), {
782
835
  modelValue: n.office,
783
836
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
784
837
  draggable: "",
@@ -796,7 +849,7 @@ const yt = (a, o) => {
796
849
  default: de(() => {
797
850
  var m;
798
851
  return [
799
- J(j(cs), {
852
+ re(V(cs), {
800
853
  "config-options": e.value,
801
854
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
802
855
  }, null, 8, ["config-options", "document-server-url"])
@@ -808,7 +861,7 @@ const yt = (a, o) => {
808
861
  ],
809
862
  64
810
863
  /* STABLE_FRAGMENT */
811
- )) : he("v-if", !0);
864
+ )) : ne("v-if", !0);
812
865
  };
813
866
  }
814
867
  });
@@ -823,7 +876,7 @@ const zr = De(Ur), Vr = {
823
876
  key: 1,
824
877
  class: "h-[1em] w-[1em]",
825
878
  "aria-hidden": "true"
826
- }, $r = ["xlink:href"], Yr = ["src"], Xr = /* @__PURE__ */ le({
879
+ }, $r = ["xlink:href"], Yr = ["src"], Xr = /* @__PURE__ */ ue({
827
880
  name: "IkSvgIcon",
828
881
  __name: "index",
829
882
  props: {
@@ -888,7 +941,7 @@ const zr = De(Ur), Vr = {
888
941
  "i",
889
942
  {
890
943
  key: 0,
891
- class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
944
+ class: J(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
892
945
  [i.name]: t.value === "unocss",
893
946
  "show-bg": r.value.showBg || r.value.bg,
894
947
  default: r.value.size === "default",
@@ -901,16 +954,16 @@ const zr = De(Ur), Vr = {
901
954
  active: r.value.active,
902
955
  disabled: r.value.disabled
903
956
  }]),
904
- style: oe(e.value)
957
+ style: ae(e.value)
905
958
  },
906
959
  [
907
- he(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
960
+ ne(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
908
961
  t.value === "iksig" ? (L(), N(
909
962
  "i",
910
963
  {
911
964
  key: 0,
912
- class: Q(`iksig ${r.value.name}`),
913
- style: oe(e.value)
965
+ class: J(`iksig ${r.value.name}`),
966
+ style: ae(e.value)
914
967
  },
915
968
  null,
916
969
  6
@@ -927,8 +980,8 @@ const zr = De(Ur), Vr = {
927
980
  "i",
928
981
  {
929
982
  key: 3,
930
- class: Q(r.value.name),
931
- style: oe(e.value)
983
+ class: J(r.value.name),
984
+ style: ae(e.value)
932
985
  },
933
986
  null,
934
987
  6
@@ -937,7 +990,7 @@ const zr = De(Ur), Vr = {
937
990
  ],
938
991
  6
939
992
  /* CLASS, STYLE */
940
- )) : (L(), Le(s, {
993
+ )) : (L(), me(s, {
941
994
  key: 1,
942
995
  content: r.value.title,
943
996
  placement: "top"
@@ -946,7 +999,7 @@ const zr = De(Ur), Vr = {
946
999
  S(
947
1000
  "i",
948
1001
  {
949
- class: Q(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1002
+ class: J(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
950
1003
  [i.name]: t.value === "unocss",
951
1004
  "show-bg": r.value.showBg || r.value.bg,
952
1005
  default: r.value.size === "default",
@@ -958,15 +1011,15 @@ const zr = De(Ur), Vr = {
958
1011
  error: r.value.error || r.value.type === "error",
959
1012
  active: r.value.active
960
1013
  }]),
961
- style: oe(e.value)
1014
+ style: ae(e.value)
962
1015
  },
963
1016
  [
964
1017
  t.value === "iksig" ? (L(), N(
965
1018
  "i",
966
1019
  {
967
1020
  key: 0,
968
- class: Q(`iksig ${r.value.name}`),
969
- style: oe(e.value)
1021
+ class: J(`iksig ${r.value.name}`),
1022
+ style: ae(e.value)
970
1023
  },
971
1024
  null,
972
1025
  6
@@ -983,8 +1036,8 @@ const zr = De(Ur), Vr = {
983
1036
  "i",
984
1037
  {
985
1038
  key: 3,
986
- class: Q(r.value.name),
987
- style: oe(e.value)
1039
+ class: J(r.value.name),
1040
+ style: ae(e.value)
988
1041
  },
989
1042
  null,
990
1043
  6
@@ -998,7 +1051,7 @@ const zr = De(Ur), Vr = {
998
1051
  _: 1
999
1052
  /* STABLE */
1000
1053
  }, 8, ["content"]))
1001
- ])) : (L(), Le(l, {
1054
+ ])) : (L(), me(l, {
1002
1055
  key: 1,
1003
1056
  type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
1004
1057
  }, {
@@ -1015,7 +1068,7 @@ const zr = De(Ur), Vr = {
1015
1068
  };
1016
1069
  }
1017
1070
  });
1018
- const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(qr), Zr = /* @__PURE__ */ le({
1071
+ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(qr), Zr = /* @__PURE__ */ ue({
1019
1072
  __name: "CloseIcon",
1020
1073
  props: {
1021
1074
  showBg: {
@@ -1031,10 +1084,10 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(q
1031
1084
  return (o, r) => (L(), N(
1032
1085
  "div",
1033
1086
  {
1034
- class: Q({ "exit-main-page-maximize": a.showBg && a.fullscreen })
1087
+ class: J({ "exit-main-page-maximize": a.showBg && a.fullscreen })
1035
1088
  },
1036
1089
  [
1037
- J(j(je), {
1090
+ re(V(je), {
1038
1091
  name: "iksvg_guanbidanchuang",
1039
1092
  title: "关闭",
1040
1093
  size: 20,
@@ -1046,7 +1099,7 @@ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(q
1046
1099
  ));
1047
1100
  }
1048
1101
  });
1049
- const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ le({
1102
+ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ ue({
1050
1103
  __name: "IkBaseDialog",
1051
1104
  props: /* @__PURE__ */ at({
1052
1105
  title: { default: "" },
@@ -1069,7 +1122,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { cl
1069
1122
  setup(a) {
1070
1123
  const o = a, r = Kt(a, "modelValue"), t = Ke(o.fullscreen), e = () => {
1071
1124
  t.value = !t.value;
1072
- }, i = le({
1125
+ }, i = ue({
1073
1126
  setup() {
1074
1127
  return () => wn(Jr, {
1075
1128
  showBg: o.showCloseBg,
@@ -1079,17 +1132,17 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { cl
1079
1132
  });
1080
1133
  return (n, s) => {
1081
1134
  const l = $e("el-dialog");
1082
- return L(), Le(l, bn({
1135
+ return L(), me(l, bn({
1083
1136
  modelValue: r.value,
1084
1137
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
1085
1138
  }, n.$attrs, {
1086
- "close-icon": j(i),
1139
+ "close-icon": V(i),
1087
1140
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
1088
1141
  fullscreen: t.value,
1089
1142
  "modal-class": "baseDialog"
1090
1143
  }), Tn({
1091
1144
  icon: de(() => [
1092
- Ie(n.$slots, "title", {}, () => [
1145
+ Ae(n.$slots, "title", {}, () => [
1093
1146
  Bt(
1094
1147
  Ge(n.title),
1095
1148
  1
@@ -1099,7 +1152,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { cl
1099
1152
  ]),
1100
1153
  header: de(() => [
1101
1154
  S("div", Qr, [
1102
- Ie(n.$slots, "header", {}, () => [
1155
+ Ae(n.$slots, "header", {}, () => [
1103
1156
  Bt(
1104
1157
  Ge(n.title),
1105
1158
  1
@@ -1107,16 +1160,16 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { cl
1107
1160
  )
1108
1161
  ])
1109
1162
  ]),
1110
- n.$attrs.showClose ? (L(), Le(j(je), {
1163
+ n.$attrs.showClose ? (L(), me(V(je), {
1111
1164
  key: 0,
1112
1165
  onClick: e,
1113
1166
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1114
1167
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1115
1168
  title: t.value ? "退出全屏" : "全屏"
1116
- }, null, 8, ["name", "title"])) : he("v-if", !0)
1169
+ }, null, 8, ["name", "title"])) : ne("v-if", !0)
1117
1170
  ]),
1118
1171
  default: de(() => [
1119
- Ie(n.$slots, "default")
1172
+ Ae(n.$slots, "default")
1120
1173
  ]),
1121
1174
  _: 2
1122
1175
  /* DYNAMIC */
@@ -1124,7 +1177,7 @@ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-da39e979"]]), Qr = { cl
1124
1177
  n.$slots.footer ? {
1125
1178
  name: "footer",
1126
1179
  fn: de(() => [
1127
- Ie(n.$slots, "footer")
1180
+ Ae(n.$slots, "footer")
1128
1181
  ]),
1129
1182
  key: "0"
1130
1183
  } : void 0
@@ -1264,7 +1317,7 @@ var ss = function(a, o) {
1264
1317
  }, e.onerror = function(i) {
1265
1318
  e.removeAttribute("loading"), t(i);
1266
1319
  }, e.setAttribute("loading", ""), e;
1267
- }, Yt = le({
1320
+ }, Yt = ue({
1268
1321
  name: "DocumentEditor",
1269
1322
  props: {
1270
1323
  id: {
@@ -1439,7 +1492,7 @@ function as(a, o, r, t, e, i) {
1439
1492
  }
1440
1493
  Yt.render = as;
1441
1494
  Yt.__file = "src/components/DocumentEditor.vue";
1442
- const ls = /* @__PURE__ */ le({
1495
+ const ls = /* @__PURE__ */ ue({
1443
1496
  __name: "IkOnlyOffice",
1444
1497
  props: {
1445
1498
  // 文件服务器的服务的地址
@@ -1471,10 +1524,10 @@ const ls = /* @__PURE__ */ le({
1471
1524
  return (e, i) => (L(), N(
1472
1525
  "div",
1473
1526
  {
1474
- style: oe({ height: o.officeHeight })
1527
+ style: ae({ height: o.officeHeight })
1475
1528
  },
1476
1529
  [
1477
- J(j(Yt), {
1530
+ re(V(Yt), {
1478
1531
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1479
1532
  ref: "editorRef",
1480
1533
  "document-server-url": a.documentServerUrl,
@@ -1502,7 +1555,7 @@ function W(a) {
1502
1555
  for (var o = 1; o < arguments.length; o++) {
1503
1556
  var r = arguments[o] != null ? arguments[o] : {};
1504
1557
  o % 2 ? fi(Object(r), !0).forEach(function(t) {
1505
- y(a, t, r[t]);
1558
+ _(a, t, r[t]);
1506
1559
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : fi(Object(r)).forEach(function(t) {
1507
1560
  Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(r, t));
1508
1561
  });
@@ -1532,7 +1585,7 @@ function E(a, o, r) {
1532
1585
  writable: !1
1533
1586
  }), a;
1534
1587
  }
1535
- function y(a, o, r) {
1588
+ function _(a, o, r) {
1536
1589
  return o = Wi(o), o in a ? Object.defineProperty(a, o, {
1537
1590
  value: r,
1538
1591
  enumerable: !0,
@@ -1553,10 +1606,10 @@ function x(a, o) {
1553
1606
  writable: !1
1554
1607
  }), o && Ut(a, o);
1555
1608
  }
1556
- function I(a) {
1557
- return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1609
+ function A(a) {
1610
+ return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1558
1611
  return r.__proto__ || Object.getPrototypeOf(r);
1559
- }, I(a);
1612
+ }, A(a);
1560
1613
  }
1561
1614
  function Ut(a, o) {
1562
1615
  return Ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
@@ -1590,9 +1643,9 @@ function Xt(a, o) {
1590
1643
  function P(a) {
1591
1644
  var o = fs();
1592
1645
  return function() {
1593
- var t = I(a), e;
1646
+ var t = A(a), e;
1594
1647
  if (o) {
1595
- var i = I(this).constructor;
1648
+ var i = A(this).constructor;
1596
1649
  e = Reflect.construct(t, arguments, i);
1597
1650
  } else
1598
1651
  e = t.apply(this, arguments);
@@ -1600,20 +1653,20 @@ function P(a) {
1600
1653
  };
1601
1654
  }
1602
1655
  function hs(a, o) {
1603
- for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = I(a), a !== null); )
1656
+ for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = A(a), a !== null); )
1604
1657
  ;
1605
1658
  return a;
1606
1659
  }
1607
- function A() {
1608
- return typeof Reflect < "u" && Reflect.get ? A = Reflect.get.bind() : A = function(o, r, t) {
1660
+ function D() {
1661
+ return typeof Reflect < "u" && Reflect.get ? D = Reflect.get.bind() : D = function(o, r, t) {
1609
1662
  var e = hs(o, r);
1610
1663
  if (e) {
1611
1664
  var i = Object.getOwnPropertyDescriptor(e, r);
1612
1665
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
1613
1666
  }
1614
- }, A.apply(this, arguments);
1667
+ }, D.apply(this, arguments);
1615
1668
  }
1616
- function ae(a) {
1669
+ function le(a) {
1617
1670
  return ds(a) || gs(a) || ps(a) || vs();
1618
1671
  }
1619
1672
  function ds(a) {
@@ -1673,8 +1726,8 @@ var Gi = { exports: {} };
1673
1726
  function i(l, u, c, h, d) {
1674
1727
  if (typeof c != "function")
1675
1728
  throw new TypeError("The listener must be a function");
1676
- var g = new e(c, h || l, d), p = r ? r + u : u;
1677
- return l._events[p] ? l._events[p].fn ? l._events[p] = [l._events[p], g] : l._events[p].push(g) : (l._events[p] = g, l._eventsCount++), l;
1729
+ var p = new e(c, h || l, d), g = r ? r + u : u;
1730
+ return l._events[g] ? l._events[g].fn ? l._events[g] = [l._events[g], p] : l._events[g].push(p) : (l._events[g] = p, l._eventsCount++), l;
1678
1731
  }
1679
1732
  function n(l, u) {
1680
1733
  --l._eventsCount === 0 ? l._events = new t() : delete l._events[u];
@@ -1695,56 +1748,56 @@ var Gi = { exports: {} };
1695
1748
  return [];
1696
1749
  if (h.fn)
1697
1750
  return [h.fn];
1698
- for (var d = 0, g = h.length, p = new Array(g); d < g; d++)
1699
- p[d] = h[d].fn;
1700
- return p;
1751
+ for (var d = 0, p = h.length, g = new Array(p); d < p; d++)
1752
+ g[d] = h[d].fn;
1753
+ return g;
1701
1754
  }, s.prototype.listenerCount = function(u) {
1702
1755
  var c = r ? r + u : u, h = this._events[c];
1703
1756
  return h ? h.fn ? 1 : h.length : 0;
1704
- }, s.prototype.emit = function(u, c, h, d, g, p) {
1757
+ }, s.prototype.emit = function(u, c, h, d, p, g) {
1705
1758
  var m = r ? r + u : u;
1706
1759
  if (!this._events[m])
1707
1760
  return !1;
1708
- var _ = this._events[m], w = arguments.length, b, C;
1709
- if (_.fn) {
1710
- switch (_.once && this.removeListener(u, _.fn, void 0, !0), w) {
1761
+ var y = this._events[m], k = arguments.length, b, w;
1762
+ if (y.fn) {
1763
+ switch (y.once && this.removeListener(u, y.fn, void 0, !0), k) {
1711
1764
  case 1:
1712
- return _.fn.call(_.context), !0;
1765
+ return y.fn.call(y.context), !0;
1713
1766
  case 2:
1714
- return _.fn.call(_.context, c), !0;
1767
+ return y.fn.call(y.context, c), !0;
1715
1768
  case 3:
1716
- return _.fn.call(_.context, c, h), !0;
1769
+ return y.fn.call(y.context, c, h), !0;
1717
1770
  case 4:
1718
- return _.fn.call(_.context, c, h, d), !0;
1771
+ return y.fn.call(y.context, c, h, d), !0;
1719
1772
  case 5:
1720
- return _.fn.call(_.context, c, h, d, g), !0;
1773
+ return y.fn.call(y.context, c, h, d, p), !0;
1721
1774
  case 6:
1722
- return _.fn.call(_.context, c, h, d, g, p), !0;
1775
+ return y.fn.call(y.context, c, h, d, p, g), !0;
1723
1776
  }
1724
- for (C = 1, b = new Array(w - 1); C < w; C++)
1725
- b[C - 1] = arguments[C];
1726
- _.fn.apply(_.context, b);
1777
+ for (w = 1, b = new Array(k - 1); w < k; w++)
1778
+ b[w - 1] = arguments[w];
1779
+ y.fn.apply(y.context, b);
1727
1780
  } else {
1728
- var F = _.length, R;
1729
- for (C = 0; C < F; C++)
1730
- switch (_[C].once && this.removeListener(u, _[C].fn, void 0, !0), w) {
1781
+ var I = y.length, O;
1782
+ for (w = 0; w < I; w++)
1783
+ switch (y[w].once && this.removeListener(u, y[w].fn, void 0, !0), k) {
1731
1784
  case 1:
1732
- _[C].fn.call(_[C].context);
1785
+ y[w].fn.call(y[w].context);
1733
1786
  break;
1734
1787
  case 2:
1735
- _[C].fn.call(_[C].context, c);
1788
+ y[w].fn.call(y[w].context, c);
1736
1789
  break;
1737
1790
  case 3:
1738
- _[C].fn.call(_[C].context, c, h);
1791
+ y[w].fn.call(y[w].context, c, h);
1739
1792
  break;
1740
1793
  case 4:
1741
- _[C].fn.call(_[C].context, c, h, d);
1794
+ y[w].fn.call(y[w].context, c, h, d);
1742
1795
  break;
1743
1796
  default:
1744
1797
  if (!b)
1745
- for (R = 1, b = new Array(w - 1); R < w; R++)
1746
- b[R - 1] = arguments[R];
1747
- _[C].fn.apply(_[C].context, b);
1798
+ for (O = 1, b = new Array(k - 1); O < k; O++)
1799
+ b[O - 1] = arguments[O];
1800
+ y[w].fn.apply(y[w].context, b);
1748
1801
  }
1749
1802
  }
1750
1803
  return !0;
@@ -1753,18 +1806,18 @@ var Gi = { exports: {} };
1753
1806
  }, s.prototype.once = function(u, c, h) {
1754
1807
  return i(this, u, c, h, !0);
1755
1808
  }, s.prototype.removeListener = function(u, c, h, d) {
1756
- var g = r ? r + u : u;
1757
- if (!this._events[g])
1809
+ var p = r ? r + u : u;
1810
+ if (!this._events[p])
1758
1811
  return this;
1759
1812
  if (!c)
1760
- return n(this, g), this;
1761
- var p = this._events[g];
1762
- if (p.fn)
1763
- p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
1813
+ return n(this, p), this;
1814
+ var g = this._events[p];
1815
+ if (g.fn)
1816
+ g.fn === c && (!d || g.once) && (!h || g.context === h) && n(this, p);
1764
1817
  else {
1765
- for (var m = 0, _ = [], w = p.length; m < w; m++)
1766
- (p[m].fn !== c || d && !p[m].once || h && p[m].context !== h) && _.push(p[m]);
1767
- _.length ? this._events[g] = _.length === 1 ? _[0] : _ : n(this, g);
1818
+ for (var m = 0, y = [], k = g.length; m < k; m++)
1819
+ (g[m].fn !== c || d && !g[m].once || h && g[m].context !== h) && y.push(g[m]);
1820
+ y.length ? this._events[p] = y.length === 1 ? y[0] : y : n(this, p);
1768
1821
  }
1769
1822
  return this;
1770
1823
  }, s.prototype.removeAllListeners = function(u) {
@@ -1939,7 +1992,7 @@ f.deepMerge = function(a, o) {
1939
1992
  if (f.typeOf(o[r]) === "Array" && f.typeOf(a[r]) === "Array") {
1940
1993
  if (f.typeOf(a[r]) === "Array") {
1941
1994
  var t;
1942
- (t = a[r]).push.apply(t, ae(o[r]));
1995
+ (t = a[r]).push.apply(t, le(o[r]));
1943
1996
  }
1944
1997
  } else
1945
1998
  f.typeOf(a[r]) === f.typeOf(o[r]) && a[r] !== null && f.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? f.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
@@ -2254,63 +2307,63 @@ function Yi(a) {
2254
2307
  return a !== null && (o === "object" || o === "function");
2255
2308
  }
2256
2309
  function ws(a, o, r) {
2257
- var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
2310
+ var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
2258
2311
  if (typeof a != "function")
2259
2312
  throw new TypeError("Expected a function");
2260
2313
  o = +o || 0, Yi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
2261
- function p(H) {
2262
- var ee = t, re = e;
2263
- return t = e = void 0, u = H, n = a.apply(re, ee), n;
2314
+ function g(U) {
2315
+ var Q = t, se = e;
2316
+ return t = e = void 0, u = U, n = a.apply(se, Q), n;
2264
2317
  }
2265
- function m(H, ee) {
2266
- return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, ee);
2318
+ function m(U, Q) {
2319
+ return p ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(U)) : setTimeout(U, Q);
2267
2320
  }
2268
- function _(H) {
2269
- if (g)
2270
- return window.cancelAnimationFrame(H);
2271
- clearTimeout(H);
2321
+ function y(U) {
2322
+ if (p)
2323
+ return window.cancelAnimationFrame(U);
2324
+ clearTimeout(U);
2272
2325
  }
2273
- function w(H) {
2274
- return u = H, s = m(F, o), c ? p(H) : n;
2326
+ function k(U) {
2327
+ return u = U, s = m(I, o), c ? g(U) : n;
2275
2328
  }
2276
- function b(H) {
2277
- var ee = H - l, re = H - u, se = o - ee;
2278
- return h ? Math.min(se, i - re) : se;
2329
+ function b(U) {
2330
+ var Q = U - l, se = U - u, oe = o - Q;
2331
+ return h ? Math.min(oe, i - se) : oe;
2279
2332
  }
2280
- function C(H) {
2281
- var ee = H - l, re = H - u;
2282
- return l === void 0 || ee >= o || ee < 0 || h && re >= i;
2333
+ function w(U) {
2334
+ var Q = U - l, se = U - u;
2335
+ return l === void 0 || Q >= o || Q < 0 || h && se >= i;
2283
2336
  }
2284
- function F() {
2285
- var H = Date.now();
2286
- if (C(H))
2287
- return R(H);
2288
- s = m(F, b(H));
2337
+ function I() {
2338
+ var U = Date.now();
2339
+ if (w(U))
2340
+ return O(U);
2341
+ s = m(I, b(U));
2289
2342
  }
2290
- function R(H) {
2291
- return s = void 0, d && t ? p(H) : (t = e = void 0, n);
2343
+ function O(U) {
2344
+ return s = void 0, d && t ? g(U) : (t = e = void 0, n);
2292
2345
  }
2293
- function z() {
2294
- s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
2346
+ function H() {
2347
+ s !== void 0 && y(s), u = 0, t = l = e = s = void 0;
2295
2348
  }
2296
- function D() {
2297
- return s === void 0 ? n : R(Date.now());
2349
+ function R() {
2350
+ return s === void 0 ? n : O(Date.now());
2298
2351
  }
2299
2352
  function q() {
2300
2353
  return s !== void 0;
2301
2354
  }
2302
2355
  function G() {
2303
- for (var H = Date.now(), ee = C(H), re = arguments.length, se = new Array(re), Se = 0; Se < re; Se++)
2304
- se[Se] = arguments[Se];
2305
- if (t = se, e = this, l = H, ee) {
2356
+ for (var U = Date.now(), Q = w(U), se = arguments.length, oe = new Array(se), xe = 0; xe < se; xe++)
2357
+ oe[xe] = arguments[xe];
2358
+ if (t = oe, e = this, l = U, Q) {
2306
2359
  if (s === void 0)
2307
- return w(l);
2360
+ return k(l);
2308
2361
  if (h)
2309
- return s = m(F, o), p(l);
2362
+ return s = m(I, o), g(l);
2310
2363
  }
2311
- return s === void 0 && (s = m(F, o)), n;
2364
+ return s === void 0 && (s = m(I, o)), n;
2312
2365
  }
2313
- return G.cancel = z, G.flush = D, G.pending = q, G;
2366
+ return G.cancel = H, G.flush = R, G.pending = q, G;
2314
2367
  }
2315
2368
  function bs(a, o, r) {
2316
2369
  var t = !0, e = !0;
@@ -2335,9 +2388,9 @@ function Es(a, o, r) {
2335
2388
  var di = {
2336
2389
  android: /(Android)\s([\d.]+)/,
2337
2390
  ios: /(Version)\/([\d.]+)/
2338
- }, Ss = ["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"], O = {
2391
+ }, Ss = ["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"], F = {
2339
2392
  get device() {
2340
- var a = O.os;
2393
+ var a = F.os;
2341
2394
  return a.isPc ? "pc" : "mobile";
2342
2395
  },
2343
2396
  get browser() {
@@ -2464,9 +2517,9 @@ var di = {
2464
2517
  T(this, a);
2465
2518
  var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
2466
2519
  if (o.media) {
2467
- 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, g = r.errorCode || e.code;
2468
- pi[g] && (g = pi[g]);
2469
- var p = {
2520
+ 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;
2521
+ pi[p] && (p = pi[p]);
2522
+ var g = {
2470
2523
  playerVersion: Vt,
2471
2524
  currentTime: n,
2472
2525
  duration: i,
@@ -2475,25 +2528,25 @@ var di = {
2475
2528
  networkState: d,
2476
2529
  src: l || u,
2477
2530
  errorType: r.errorType,
2478
- errorCode: g,
2531
+ errorCode: p,
2479
2532
  message: r.errorMessage || e.message,
2480
2533
  mediaError: e,
2481
2534
  originError: r.originError ? r.originError.stack : "",
2482
2535
  host: f.getHostFromUrl(l || u)
2483
2536
  };
2484
2537
  return r.ext && Object.keys(r.ext).map(function(b) {
2485
- p[b] = r.ext[b];
2486
- }), p;
2538
+ g[b] = r.ext[b];
2539
+ }), g;
2487
2540
  } else if (arguments.length > 1) {
2488
2541
  for (var m = {
2489
2542
  playerVersion: Vt,
2490
2543
  domain: document.domain
2491
- }, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], w = 0; w < arguments.length; w++)
2492
- m[_[w]] = arguments[w];
2544
+ }, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
2545
+ m[y[k]] = arguments[k];
2493
2546
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2494
2547
  }
2495
2548
  }
2496
- ), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Te = "durationchange", Xi = "volumechange", ye = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Ae = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", we = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2549
+ ), ie = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", ye = "seeked", te = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Ee = "durationchange", Xi = "volumechange", _e = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Le = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", be = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2497
2550
  STATS_INFO: "stats_info",
2498
2551
  STATS_DOWNLOAD: "stats_download",
2499
2552
  STATS_RESET: "stats_reset"
@@ -2503,7 +2556,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2503
2556
  ABORT: Ls,
2504
2557
  AFTER_DEFINITION_CHANGE: Wt,
2505
2558
  AUTOPLAY_PREVENTED: ei,
2506
- AUTOPLAY_STARTED: Ae,
2559
+ AUTOPLAY_STARTED: Le,
2507
2560
  BEFORE_DEFINITION_CHANGE: Rs,
2508
2561
  BUFFER_CHANGE: Ds,
2509
2562
  CANPLAY: ve,
@@ -2513,7 +2566,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2513
2566
  DEFINITION_CHANGE: ii,
2514
2567
  DESTROY: ti,
2515
2568
  DOWNLOAD_SPEED_CHANGE: jt,
2516
- DURATION_CHANGE: Te,
2569
+ DURATION_CHANGE: Ee,
2517
2570
  EMPTIED: Oe,
2518
2571
  ENDED: Re,
2519
2572
  ENTER_PLAYER: tn,
@@ -2521,14 +2574,14 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2521
2574
  FPS_STUCK: hn,
2522
2575
  FULLSCREEN_CHANGE: ge,
2523
2576
  LEAVE_PLAYER: en,
2524
- LOADED_DATA: ye,
2577
+ LOADED_DATA: _e,
2525
2578
  LOADED_METADATA: Ps,
2526
2579
  LOADING: nn,
2527
2580
  LOAD_START: Zt,
2528
2581
  MINI_STATE_CHANGE: ft,
2529
2582
  PAUSE: Ye,
2530
2583
  PIP_CHANGE: Gt,
2531
- PLAY: ne,
2584
+ PLAY: ie,
2532
2585
  PLAYER_BLUR: Ji,
2533
2586
  PLAYER_FOCUS: Jt,
2534
2587
  PLAYING: qt,
@@ -2541,7 +2594,7 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2541
2594
  RETRY: Fs,
2542
2595
  ROTATE: rn,
2543
2596
  SCREEN_SHOT: sn,
2544
- SEEKED: me,
2597
+ SEEKED: ye,
2545
2598
  SEEKING: _t,
2546
2599
  SEI_PARSED: Os,
2547
2600
  SHORTCUT: on,
@@ -2551,12 +2604,12 @@ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2551
2604
  STATS_EVENTS: fn,
2552
2605
  SUSPEND: As,
2553
2606
  SWITCH_SUBTITLE: Ms,
2554
- TIME_UPDATE: ie,
2607
+ TIME_UPDATE: te,
2555
2608
  URL_CHANGE: kt,
2556
2609
  URL_NULL: Qi,
2557
2610
  USER_ACTION: dt,
2558
2611
  VIDEO_EVENTS: cn,
2559
- VIDEO_RESIZE: we,
2612
+ VIDEO_RESIZE: be,
2560
2613
  VOLUME_CHANGE: Xi,
2561
2614
  WAITING: it,
2562
2615
  XGLOG: an
@@ -2619,7 +2672,7 @@ var Hs = /* @__PURE__ */ function(a) {
2619
2672
  "data-index": -1
2620
2673
  }, t.videoConfig, t.videoAttributes);
2621
2674
  var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
2622
- return O.isWeixin && O.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
2675
+ return F.isWeixin && F.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
2623
2676
  }
2624
2677
  return E(r, [{
2625
2678
  key: "setEventsMiddleware",
@@ -2643,7 +2696,7 @@ var Hs = /* @__PURE__ */ function(a) {
2643
2696
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2644
2697
  this._evHandlers || (this._evHandlers = cn.map(function(n) {
2645
2698
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2646
- return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Bs(n, e));
2699
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Bs(n, e));
2647
2700
  })), this._evHandlers.forEach(function(n) {
2648
2701
  var s = Object.keys(n)[0];
2649
2702
  i.addEventListener(s, n[s], !1);
@@ -2688,15 +2741,15 @@ var Hs = /* @__PURE__ */ function(a) {
2688
2741
  !this._sourceError && (this._sourceError = function(h) {
2689
2742
  var d = parseInt(h.target.getAttribute("data-index"), 10);
2690
2743
  if (n._videoSourceIndex--, n._videoSourceIndex === 0 || d >= n._videoSourceCount) {
2691
- var g = {
2744
+ var p = {
2692
2745
  code: 4,
2693
2746
  message: "sources_load_error"
2694
2747
  };
2695
- l ? l.error(h, g) : n.errorHandler("error", g);
2748
+ l ? l.error(h, p) : n.errorHandler("error", p);
2696
2749
  }
2697
- var p = gi[4];
2750
+ var g = gi[4];
2698
2751
  n.emit(ln, new lt(n, {
2699
- errorType: p,
2752
+ errorType: g,
2700
2753
  errorCode: 4,
2701
2754
  errorMessage: "sources_load_error",
2702
2755
  mediaError: {
@@ -2988,33 +3041,33 @@ var Hs = /* @__PURE__ */ function(a) {
2988
3041
  value: function(e, i) {
2989
3042
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
2990
3043
  l[u - 2] = arguments[u];
2991
- (n = A(I(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
3044
+ (n = D(A(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
2992
3045
  }
2993
3046
  }, {
2994
3047
  key: "on",
2995
3048
  value: function(e, i) {
2996
3049
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
2997
3050
  l[u - 2] = arguments[u];
2998
- (n = A(I(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
3051
+ (n = D(A(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
2999
3052
  }
3000
3053
  }, {
3001
3054
  key: "once",
3002
3055
  value: function(e, i) {
3003
3056
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
3004
3057
  l[u - 2] = arguments[u];
3005
- (n = A(I(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
3058
+ (n = D(A(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
3006
3059
  }
3007
3060
  }, {
3008
3061
  key: "off",
3009
3062
  value: function(e, i) {
3010
3063
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
3011
3064
  l[u - 2] = arguments[u];
3012
- (n = A(I(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
3065
+ (n = D(A(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
3013
3066
  }
3014
3067
  }, {
3015
3068
  key: "offAll",
3016
3069
  value: function() {
3017
- A(I(r.prototype), "removeAllListeners", this).call(this);
3070
+ D(A(r.prototype), "removeAllListeners", this).call(this);
3018
3071
  }
3019
3072
  }]), r;
3020
3073
  }($i), Us = /* @__PURE__ */ function() {
@@ -3095,7 +3148,7 @@ var Hs = /* @__PURE__ */ function(a) {
3095
3148
  t.clear();
3096
3149
  }
3097
3150
  }]), a;
3098
- }(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
3151
+ }(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ie = "data-xgplayerid";
3099
3152
  function nt(a, o, r) {
3100
3153
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3101
3154
  e[i - 3] = arguments[i];
@@ -3124,7 +3177,7 @@ function gt(a, o) {
3124
3177
  try {
3125
3178
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
3126
3179
  s ? s.then ? s.then(function(l) {
3127
- l !== !1 && nt.apply(void 0, [e, o, r.next].concat(ae(t)));
3180
+ l !== !1 && nt.apply(void 0, [e, o, r.next].concat(le(t)));
3128
3181
  }).catch(function(l) {
3129
3182
  throw l;
3130
3183
  }) : nt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && nt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
@@ -3196,7 +3249,7 @@ function pe(a, o, r) {
3196
3249
  function xt(a, o) {
3197
3250
  M.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3198
3251
  }
3199
- var be = /* @__PURE__ */ function() {
3252
+ var Te = /* @__PURE__ */ function() {
3200
3253
  function a(o) {
3201
3254
  T(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), dn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
3202
3255
  }
@@ -3417,7 +3470,7 @@ const ki = /* @__PURE__ */ $t($s);
3417
3470
  var Ys = {
3418
3471
  CONTROLS: "controls",
3419
3472
  ROOT: "root"
3420
- }, V = {
3473
+ }, j = {
3421
3474
  ROOT: "root",
3422
3475
  ROOT_LEFT: "rootLeft",
3423
3476
  ROOT_RIGHT: "rootRight",
@@ -3477,7 +3530,7 @@ function Js(a, o) {
3477
3530
  });
3478
3531
  });
3479
3532
  }
3480
- var U = /* @__PURE__ */ function(a) {
3533
+ var z = /* @__PURE__ */ function(a) {
3481
3534
  x(r, a);
3482
3535
  var o = P(r);
3483
3536
  function r() {
@@ -3487,7 +3540,7 @@ var U = /* @__PURE__ */ function(a) {
3487
3540
  return E(r, [{
3488
3541
  key: "__init",
3489
3542
  value: function(e) {
3490
- if (A(I(r.prototype), "__init", this).call(this, e), !!e.root) {
3543
+ if (D(A(r.prototype), "__init", this).call(this, e), !!e.root) {
3491
3544
  var i = e.root, n = null;
3492
3545
  this.icons = {}, this.root = null, this.parent = null;
3493
3546
  var s = this.registerIcons() || {};
@@ -3581,7 +3634,7 @@ var U = /* @__PURE__ */ function(a) {
3581
3634
  value: function(e) {
3582
3635
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
3583
3636
  i.root = i.root || this.root;
3584
- var s = A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
3637
+ var s = D(A(r.prototype), "registerPlugin", this).call(this, e, i, n);
3585
3638
  return this._children.push(s), s;
3586
3639
  }
3587
3640
  }, {
@@ -3716,7 +3769,7 @@ var U = /* @__PURE__ */ function(a) {
3716
3769
  n.destroy();
3717
3770
  }), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
3718
3771
  i.unRegisterPlugin(n.pluginName);
3719
- }), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), A(I(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
3772
+ }), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), D(A(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
3720
3773
  e[n] = null;
3721
3774
  });
3722
3775
  }
@@ -3727,12 +3780,12 @@ var U = /* @__PURE__ */ function(a) {
3727
3780
  if (s) {
3728
3781
  for (var c = 0, h = null, d = ""; c < s; c++) {
3729
3782
  h = i.children[c];
3730
- var g = Number(h.getAttribute("data-index"));
3731
- if (g >= l) {
3783
+ var p = Number(h.getAttribute("data-index"));
3784
+ if (p >= l) {
3732
3785
  d = "beforebegin";
3733
3786
  break;
3734
3787
  } else
3735
- g < l && (d = "afterend");
3788
+ p < l && (d = "afterend");
3736
3789
  }
3737
3790
  return u ? d === "afterend" ? i.appendChild(e) : i.insertBefore(e, h) : h.insertAdjacentHTML(d, e), d === "afterend" ? i.children[i.children.length - 1] : i.children[c];
3738
3791
  } else
@@ -3767,13 +3820,13 @@ var U = /* @__PURE__ */ function(a) {
3767
3820
  }, {
3768
3821
  key: "POSITIONS",
3769
3822
  get: function() {
3770
- return V;
3823
+ return j;
3771
3824
  }
3772
3825
  }]), r;
3773
- }(be), Qs = /* @__PURE__ */ function() {
3826
+ }(Te), Qs = /* @__PURE__ */ function() {
3774
3827
  function a() {
3775
3828
  var o = this;
3776
- if (T(this, a), y(this, "__trigger", function(r) {
3829
+ if (T(this, a), _(this, "__trigger", function(r) {
3777
3830
  var t = (/* @__PURE__ */ new Date()).getTime();
3778
3831
  o.timeStamp = t;
3779
3832
  for (var e = 0; e < r.length; e++)
@@ -3792,7 +3845,7 @@ var U = /* @__PURE__ */ function(a) {
3792
3845
  value: function(r, t) {
3793
3846
  if (this.observer) {
3794
3847
  this.observer && this.observer.observe(r);
3795
- for (var e = r.getAttribute(Pe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3848
+ for (var e = r.getAttribute(Ie), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3796
3849
  i[s] && r === i[s].target && (n = s);
3797
3850
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
3798
3851
  target: r,
@@ -4039,7 +4092,7 @@ var K = {
4039
4092
  delete this.pluginGroup[r], delete o._pluginInfoId;
4040
4093
  }
4041
4094
  }
4042
- }, k = {
4095
+ }, C = {
4043
4096
  DEFAULT: "xgplayer",
4044
4097
  DEFAULT_SKIN: "xgplayer-skin-default",
4045
4098
  ENTER: "xgplayer-is-enter",
@@ -4156,12 +4209,12 @@ function Ti() {
4156
4209
  var io = function(o, r) {
4157
4210
  var t, e, i;
4158
4211
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
4159
- 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, g = n.i18n, p = g === void 0 ? [] : g;
4160
- o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, ae(l)), (e = o.config.ignores).push.apply(e, ae(c)), Object.keys(d).map(function(_) {
4161
- o.config.icons[_] || (o.config.icons[_] = d[_]);
4212
+ 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;
4213
+ o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, le(l)), (e = o.config.ignores).push.apply(e, le(c)), Object.keys(d).map(function(y) {
4214
+ o.config.icons[y] || (o.config.icons[y] = d[y]);
4162
4215
  });
4163
4216
  var m = o.config.i18n || [];
4164
- p.push.apply(p, ae(m)), o.config.i18n = p;
4217
+ g.push.apply(g, le(m)), o.config.i18n = g;
4165
4218
  }, no = /* @__PURE__ */ function(a) {
4166
4219
  x(r, a);
4167
4220
  var o = P(r);
@@ -4170,12 +4223,12 @@ var io = function(o, r) {
4170
4223
  T(this, r);
4171
4224
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
4172
4225
  i[n] = arguments[n];
4173
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onMouseEnter", function(s) {
4226
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onMouseEnter", function(s) {
4174
4227
  var l = v(t), u = l.player, c = l.playerConfig;
4175
4228
  c.closeControlsBlur && u.focus({
4176
4229
  autoHide: !1
4177
4230
  });
4178
- }), y(v(t), "onMouseLeave", function(s) {
4231
+ }), _(v(t), "onMouseLeave", function(s) {
4179
4232
  var l = v(t), u = l.player;
4180
4233
  u.focus();
4181
4234
  }), t;
@@ -4183,14 +4236,14 @@ var io = function(o, r) {
4183
4236
  return E(r, [{
4184
4237
  key: "beforeCreate",
4185
4238
  value: function(e) {
4186
- !e.config.mode && O.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
4239
+ !e.config.mode && F.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
4187
4240
  }
4188
4241
  }, {
4189
4242
  key: "afterCreate",
4190
4243
  value: function() {
4191
4244
  var e = this, i = this.config, n = i.disable, s = i.height, l = i.mode;
4192
4245
  if (!n) {
4193
- l === "flex" && this.player.addClass(k.FLEX_CONTROLS);
4246
+ l === "flex" && this.player.addClass(C.FLEX_CONTROLS);
4194
4247
  var u = {
4195
4248
  height: "".concat(s, "px")
4196
4249
  };
@@ -4200,7 +4253,7 @@ var io = function(o, r) {
4200
4253
  h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
4201
4254
  });
4202
4255
  var c = this.playerConfig.isMobileSimulateMode;
4203
- O.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
4256
+ F.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
4204
4257
  }
4205
4258
  }
4206
4259
  }, {
@@ -4227,12 +4280,12 @@ var io = function(o, r) {
4227
4280
  }, {
4228
4281
  key: "recoverAutoHide",
4229
4282
  value: function() {
4230
- this.config.autoHide && f.addClass(this.root, k.CONTROLS_AUTOHIDE);
4283
+ this.config.autoHide && f.addClass(this.root, C.CONTROLS_AUTOHIDE);
4231
4284
  }
4232
4285
  }, {
4233
4286
  key: "pauseAutoHide",
4234
4287
  value: function() {
4235
- f.removeClass(this.root, k.CONTROLS_AUTOHIDE);
4288
+ f.removeClass(this.root, C.CONTROLS_AUTOHIDE);
4236
4289
  }
4237
4290
  }, {
4238
4291
  key: "show",
@@ -4258,29 +4311,29 @@ var io = function(o, r) {
4258
4311
  if (!i.root) {
4259
4312
  var l = i.position ? i.position : i.config && i.config.position ? i.config.position : s.position;
4260
4313
  switch (l) {
4261
- case V.CONTROLS_LEFT:
4314
+ case j.CONTROLS_LEFT:
4262
4315
  i.root = this.left;
4263
4316
  break;
4264
- case V.CONTROLS_RIGHT:
4317
+ case j.CONTROLS_RIGHT:
4265
4318
  i.root = this.right;
4266
4319
  break;
4267
- case V.CONTROLS_CENTER:
4320
+ case j.CONTROLS_CENTER:
4268
4321
  i.root = this.center;
4269
4322
  break;
4270
- case V.CONTROLS:
4323
+ case j.CONTROLS:
4271
4324
  i.root = this.root;
4272
4325
  break;
4273
4326
  default:
4274
4327
  i.root = this.left;
4275
4328
  }
4276
- return A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
4329
+ return D(A(r.prototype), "registerPlugin", this).call(this, e, i, n);
4277
4330
  }
4278
4331
  }
4279
4332
  }
4280
4333
  }, {
4281
4334
  key: "destroy",
4282
4335
  value: function() {
4283
- O.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
4336
+ F.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
4284
4337
  }
4285
4338
  }, {
4286
4339
  key: "render",
@@ -4293,7 +4346,7 @@ var io = function(o, r) {
4293
4346
  "flex-controls": i === "flex"
4294
4347
  }, {
4295
4348
  "bottom-controls": i === "bottom"
4296
- }, y({}, k.CONTROLS_AUTOHIDE, n), {
4349
+ }, _({}, C.CONTROLS_AUTOHIDE, n), {
4297
4350
  "xgplayer-controls-initshow": s || !n
4298
4351
  });
4299
4352
  return '<xg-controls class="'.concat(u, `" unselectable="on">
@@ -4323,7 +4376,7 @@ var io = function(o, r) {
4323
4376
  };
4324
4377
  }
4325
4378
  }]), r;
4326
- }(U), ro = {
4379
+ }(z), ro = {
4327
4380
  LANG: "en",
4328
4381
  TEXT: {
4329
4382
  ERROR_TYPES: {
@@ -4398,7 +4451,7 @@ var io = function(o, r) {
4398
4451
  FORWARD: "forward",
4399
4452
  LIVE_TIP: "Live"
4400
4453
  }
4401
- }, te = {
4454
+ }, ee = {
4402
4455
  lang: {},
4403
4456
  langKeys: [],
4404
4457
  textKeys: []
@@ -4408,19 +4461,19 @@ function et(a, o) {
4408
4461
  var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
4409
4462
  if (t === "Array") {
4410
4463
  var i;
4411
- e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ae(o[r]));
4464
+ e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, le(o[r]));
4412
4465
  } else
4413
4466
  t === "Object" ? (e !== "Object" && (a[r] = {}), et(a[r], o[r])) : a[r] = o[r];
4414
4467
  }), a;
4415
4468
  }
4416
4469
  function pn() {
4417
- Object.keys(te.lang.en).map(function(a) {
4418
- te.textKeys[a] = a;
4470
+ Object.keys(ee.lang.en).map(function(a) {
4471
+ ee.textKeys[a] = a;
4419
4472
  });
4420
4473
  }
4421
4474
  function so(a, o) {
4422
4475
  var r = [];
4423
- if (o || (o = te), !!o.lang) {
4476
+ if (o || (o = ee), !!o.lang) {
4424
4477
  f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
4425
4478
  var n = i === "zh" ? "zh-cn" : i;
4426
4479
  return {
@@ -4436,7 +4489,7 @@ function so(a, o) {
4436
4489
  }
4437
4490
  function ni(a, o) {
4438
4491
  var r = a.LANG;
4439
- if (o || (o = te), !!o.lang) {
4492
+ if (o || (o = ee), !!o.lang) {
4440
4493
  var t = a.TEXT || {};
4441
4494
  r === "zh" && (r = "zh-cn"), o.lang[r] ? et(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4442
4495
  }
@@ -4448,21 +4501,21 @@ function oo(a) {
4448
4501
  textKeys: {},
4449
4502
  pId: a
4450
4503
  };
4451
- return et(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), et(r.textKeys, te.textKeys), r;
4504
+ return et(r.lang, ee.lang), (o = r.langKeys).push.apply(o, le(ee.langKeys)), et(r.textKeys, ee.textKeys), r;
4452
4505
  }
4453
4506
  ni(ro);
4454
4507
  var We = {
4455
4508
  get textKeys() {
4456
- return te.textKeys;
4509
+ return ee.textKeys;
4457
4510
  },
4458
4511
  get langKeys() {
4459
- return te.langKeys;
4512
+ return ee.langKeys;
4460
4513
  },
4461
4514
  get lang() {
4462
4515
  var a = {};
4463
- return te.langKeys.map(function(o) {
4464
- a[o] = te.lang[o];
4465
- }), te.lang["zh-cn"] && (a.zh = te.lang["zh-cn"] || {}), a;
4516
+ return ee.langKeys.map(function(o) {
4517
+ a[o] = ee.lang[o];
4518
+ }), ee.lang["zh-cn"] && (a.zh = ee.lang["zh-cn"] || {}), a;
4466
4519
  },
4467
4520
  extend: so,
4468
4521
  use: ni,
@@ -4571,24 +4624,24 @@ function ao(a) {
4571
4624
  }
4572
4625
  return null;
4573
4626
  }
4574
- var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /* @__PURE__ */ function(a) {
4627
+ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, Ce = null, bt = /* @__PURE__ */ function(a) {
4575
4628
  x(r, a);
4576
4629
  var o = P(r);
4577
4630
  function r(t) {
4578
4631
  var e;
4579
4632
  T(this, r);
4580
4633
  var i = f.deepMerge(Ti(), t);
4581
- e = o.call(this, i), y(v(e), "canPlayFunc", function() {
4634
+ e = o.call(this, i), _(v(e), "canPlayFunc", function() {
4582
4635
  if (e.config) {
4583
- var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
4584
- M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ve, e.canPlayFunc), e.removeClass(k.ENTER);
4636
+ var g = e.config, m = g.autoplay, y = g.defaultPlaybackRate;
4637
+ M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(ve, e.canPlayFunc), e.removeClass(C.ENTER);
4585
4638
  }
4586
- }), y(v(e), "onFullscreenChange", function(p, m) {
4587
- var _ = function() {
4639
+ }), _(v(e), "onFullscreenChange", function(g, m) {
4640
+ var y = function() {
4588
4641
  f.setTimeout(v(e), function() {
4589
4642
  e.resize();
4590
4643
  }, 100);
4591
- }, w = f.getFullScreenEl();
4644
+ }, k = f.getFullScreenEl();
4592
4645
  e._fullActionFrom ? e._fullActionFrom = "" : e.emit(dt, {
4593
4646
  eventType: "system",
4594
4647
  action: "switch_fullscreen",
@@ -4601,26 +4654,26 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4601
4654
  to: !1
4602
4655
  }]
4603
4656
  });
4604
- var b = Es(w, e.playerId, Pe);
4605
- if (m || w && (w === e._fullscreenEl || b))
4606
- _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, w, k.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4657
+ var b = Es(k, e.playerId, Ie);
4658
+ if (m || k && (k === e._fullscreenEl || b))
4659
+ y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4607
4660
  else if (e.fullscreen) {
4608
- _();
4609
- var C = v(e), F = C._fullScreenOffset, R = C.config;
4610
- if (R.needFullscreenScroll ? (window.scrollTo(F.left, F.top), f.setTimeout(v(e), function() {
4661
+ y();
4662
+ var w = v(e), I = w._fullScreenOffset, O = w.config;
4663
+ if (O.needFullscreenScroll ? (window.scrollTo(I.left, I.top), f.setTimeout(v(e), function() {
4611
4664
  e.fullscreen = !1, e._fullScreenOffset = null;
4612
4665
  }, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
4613
- e.removeClass(k.FULLSCREEN);
4666
+ e.removeClass(C.FULLSCREEN);
4614
4667
  else {
4615
- var z = e._fullscreenEl;
4616
- !z && (e.root.contains(p.target) || p.target === e.root) && (z = p.target), e.recoverFullStyle(e.root, z, k.FULLSCREEN);
4668
+ var H = e._fullscreenEl;
4669
+ !H && (e.root.contains(g.target) || g.target === e.root) && (H = g.target), e.recoverFullStyle(e.root, H, C.FULLSCREEN);
4617
4670
  }
4618
4671
  e._fullscreenEl = null, e.emit(ge, !1);
4619
4672
  }
4620
- }), y(v(e), "_onWebkitbeginfullscreen", function(p) {
4621
- e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4622
- }), y(v(e), "_onWebkitendfullscreen", function(p) {
4623
- e.onFullscreenChange(p, !1);
4673
+ }), _(v(e), "_onWebkitbeginfullscreen", function(g) {
4674
+ e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
4675
+ }), _(v(e), "_onWebkitendfullscreen", function(g) {
4676
+ e.onFullscreenChange(g, !1);
4624
4677
  }), dn(v(e), lo), e.config = i, e._pluginInfoId = f.generateSessionId(), _s(v(e));
4625
4678
  var n = e.constructor.defaultPreset;
4626
4679
  if (e.config.presets.length) {
@@ -4650,18 +4703,18 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4650
4703
  }, e._offsetInfo = {
4651
4704
  currentTime: -1,
4652
4705
  duration: 0
4653
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), O.os.isAndroid && O.osVersion > 0 && O.osVersion < 6 && (e.config.autoplay = !1), e.database = new Us(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4706
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), F.os.isAndroid && F.osVersion > 0 && F.osVersion < 6 && (e.config.autoplay = !1), e.database = new Us(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4654
4707
  isActiveLocked: !1
4655
- }, e.instManager = _e;
4708
+ }, e.instManager = Ce;
4656
4709
  var l = e._initDOM();
4657
4710
  if (!l)
4658
4711
  return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Xt(e);
4659
4712
  var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
4660
4713
  if (!d && h.list && h.list.length > 0) {
4661
- var g = h.list.find(function(p) {
4662
- return p.definition && p.definition === h.defaultDefinition;
4714
+ var p = h.list.find(function(g) {
4715
+ return g.definition && g.definition === h.defaultDefinition;
4663
4716
  });
4664
- g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
4717
+ p || (h.defaultDefinition = h.list[0].definition, p = h.list[0]), e.config.url = p.url, e.curDefinition = p;
4665
4718
  }
4666
4719
  return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(B.READY), f.setTimeout(v(e), function() {
4667
4720
  e.emit(Qt);
@@ -4683,7 +4736,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4683
4736
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4684
4737
  }
4685
4738
  var s = ao(this.root);
4686
- s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = _e) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
4739
+ s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ie, this.playerId), (e = Ce) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
4687
4740
  var l = this.constructor.XgVideoProxy;
4688
4741
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4689
4742
  var u = this.innerContainer || this.root;
@@ -4691,31 +4744,31 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4691
4744
  var c = new l(u, this.config, this.mediaConfig);
4692
4745
  this.attachVideoEvents(c), this.media = c;
4693
4746
  }
4694
- if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
4747
+ if (this.media.setAttribute(Ie, this.playerId), this.config.controls) {
4695
4748
  var h = this.config.controls.root || null, d = K.register(this, no, {
4696
4749
  root: h
4697
4750
  });
4698
4751
  this.controls = d;
4699
4752
  }
4700
- var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : O.device;
4701
- if (this.addClass("".concat(k.DEFAULT, " ").concat(k.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : k.NO_CONTROLS)), this.config.autoplay ? this.addClass(k.ENTER) : this.addClass(k.NO_START), this.config.fluid) {
4702
- var p = this.config, m = p.width, _ = p.height;
4703
- (typeof m != "number" || typeof _ != "number") && (m = 600, _ = 337.5);
4704
- var w = {
4753
+ var p = this.config.isMobileSimulateMode === "mobile" ? "mobile" : F.device;
4754
+ if (this.addClass("".concat(C.DEFAULT, " ").concat(C.INACTIVE, " xgplayer-").concat(p, " ").concat(this.config.controls ? "" : C.NO_CONTROLS)), this.config.autoplay ? this.addClass(C.ENTER) : this.addClass(C.NO_START), this.config.fluid) {
4755
+ var g = this.config, m = g.width, y = g.height;
4756
+ (typeof m != "number" || typeof y != "number") && (m = 600, y = 337.5);
4757
+ var k = {
4705
4758
  width: "100%",
4706
4759
  height: "0",
4707
4760
  "max-width": "100%",
4708
- "padding-top": "".concat(_ * 100 / m, "%")
4761
+ "padding-top": "".concat(y * 100 / m, "%")
4709
4762
  };
4710
- Object.keys(w).forEach(function(D) {
4711
- i.root.style[D] = w[D];
4763
+ Object.keys(k).forEach(function(R) {
4764
+ i.root.style[R] = k[R];
4712
4765
  });
4713
4766
  } else
4714
- ["width", "height"].forEach(function(D) {
4715
- i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
4767
+ ["width", "height"].forEach(function(R) {
4768
+ i.config[R] && (typeof i.config[R] != "number" ? i.root.style[R] = i.config[R] : i.root.style[R] = "".concat(i.config[R], "px"));
4716
4769
  });
4717
- var b = this.root.getBoundingClientRect(), C = b.width, F = b.height, R = b.left, z = b.top;
4718
- return this.sizeInfo.width = C, this.sizeInfo.height = F, this.sizeInfo.left = R, this.sizeInfo.top = z, !0;
4770
+ var b = this.root.getBoundingClientRect(), w = b.width, I = b.height, O = b.left, H = b.top;
4771
+ return this.sizeInfo.width = w, this.sizeInfo.height = I, this.sizeInfo.left = O, this.sizeInfo.top = H, !0;
4719
4772
  }
4720
4773
  }, {
4721
4774
  key: "_initBaseDoms",
@@ -4732,9 +4785,9 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4732
4785
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
4733
4786
  }), vi.forEach(function(i) {
4734
4787
  document && document.addEventListener(i, e.onFullscreenChange);
4735
- }), O.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ye, this.resize), this.playFunc = function() {
4788
+ }), F.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(_e, this.resize), this.playFunc = function() {
4736
4789
  e.config.closeFocusVideoFocus || e.media.focus();
4737
- }, this.once(ne, this.playFunc);
4790
+ }, this.once(ie, this.playFunc);
4738
4791
  }
4739
4792
  }, {
4740
4793
  key: "_unbindEvents",
@@ -4742,7 +4795,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4742
4795
  var e = this;
4743
4796
  this.root.removeEventListener("mousemove", this.mousemoveFunc), vi.forEach(function(i) {
4744
4797
  document.removeEventListener(i, e.onFullscreenChange);
4745
- }), this.playFunc && this.off(ne, this.playFunc), this.off(ve, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4798
+ }), this.playFunc && this.off(ie, this.playFunc), this.off(ve, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4746
4799
  }
4747
4800
  }, {
4748
4801
  key: "_clearUserTimer",
@@ -4758,7 +4811,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4758
4811
  var n = this.innerContainer ? this.innerContainer : this.root;
4759
4812
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
4760
4813
  var s = this.media.readyState;
4761
- M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (O.os.isIpad || O.os.isPhone) && this.mediaPlay());
4814
+ M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (F.os.isIpad || F.os.isPhone) && this.mediaPlay());
4762
4815
  var l = this.config.startTime;
4763
4816
  this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < B.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(B.ATTACHED), f.setTimeout(this, function() {
4764
4817
  i.emit(Ct);
@@ -4781,17 +4834,17 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4781
4834
  if (!i && c[d.toLowerCase()])
4782
4835
  return;
4783
4836
  if (h.lazy && h.loader) {
4784
- var g = K.lazyRegister(e, h);
4785
- h.forceBeforeInit && (g.then(function() {
4786
- e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
4787
- }).catch(function(p) {
4788
- M.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
4789
- }), e._loadingPlugins.push(g));
4837
+ var p = K.lazyRegister(e, h);
4838
+ h.forceBeforeInit && (p.then(function() {
4839
+ e._loadingPlugins.splice(e._loadingPlugins.indexOf(p), 1);
4840
+ }).catch(function(g) {
4841
+ M.logError("_registerPlugins:loadingPlugin", g), e._loadingPlugins.splice(e._loadingPlugins.indexOf(p), 1);
4842
+ }), e._loadingPlugins.push(p));
4790
4843
  return;
4791
4844
  }
4792
4845
  return e.registerPlugin(h);
4793
- } catch (p) {
4794
- M.logError("_registerPlugins:", p);
4846
+ } catch (g) {
4847
+ M.logError("_registerPlugins:", g);
4795
4848
  }
4796
4849
  });
4797
4850
  }
@@ -4808,14 +4861,14 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4808
4861
  value: function(e) {
4809
4862
  var i = null;
4810
4863
  switch (e) {
4811
- case V.ROOT_RIGHT:
4864
+ case j.ROOT_RIGHT:
4812
4865
  this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
4813
4866
  break;
4814
- case V.ROOT_LEFT:
4867
+ case j.ROOT_LEFT:
4815
4868
  this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
4816
4869
  break;
4817
- case V.ROOT_TOP:
4818
- this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, k.TOP_BAR_AUTOHIDE)), i = this.topBar;
4870
+ case j.ROOT_TOP:
4871
+ this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, C.TOP_BAR_AUTOHIDE)), i = this.topBar;
4819
4872
  break;
4820
4873
  default:
4821
4874
  i = this.innerContainer || this.root;
@@ -4836,7 +4889,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4836
4889
  }, {
4837
4890
  key: "deregister",
4838
4891
  value: function(e) {
4839
- typeof e == "string" ? K.unRegister(this, e) : e instanceof be && K.unRegister(this, e.pluginName);
4892
+ typeof e == "string" ? K.unRegister(this, e) : e instanceof Te && K.unRegister(this, e.pluginName);
4840
4893
  }
4841
4894
  }, {
4842
4895
  key: "unRegisterPlugin",
@@ -4848,7 +4901,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4848
4901
  key: "removePluginFromConfig",
4849
4902
  value: function(e) {
4850
4903
  var i;
4851
- if (typeof e == "string" ? i = e : e instanceof be && (i = e.pluginName), !!i)
4904
+ if (typeof e == "string" ? i = e : e instanceof Te && (i = e.pluginName), !!i)
4852
4905
  for (var n = this.config.plugins.length - 1; n > -1; n--) {
4853
4906
  var s = this.config.plugins[n];
4854
4907
  if (s.pluginName.toLowerCase() === i.toLowerCase()) {
@@ -4919,8 +4972,8 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4919
4972
  var u = this.paused && !this.isError;
4920
4973
  return this.src = s, new Promise(function(c, h) {
4921
4974
  var d = function(m) {
4922
- n.off("timeupdate", g), n.off("canplay", g), h(m);
4923
- }, g = function() {
4975
+ n.off("timeupdate", p), n.off("canplay", p), h(m);
4976
+ }, p = function() {
4924
4977
  n.duration > 0 && n.__startTime > 0 && (n.currentTime = n.__startTime, n.__startTime = -1), u && n.pause(), n.off("error", d), c(!0);
4925
4978
  };
4926
4979
  if (n.once("error", d), !s) {
@@ -4930,7 +4983,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4930
4983
  });
4931
4984
  return;
4932
4985
  }
4933
- O.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
4986
+ F.os.isAndroid ? n.once("timeupdate", p) : n.once("canplay", p), n.play();
4934
4987
  });
4935
4988
  }
4936
4989
  }, {
@@ -4943,38 +4996,38 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4943
4996
  value: function() {
4944
4997
  var e = this;
4945
4998
  if (!this.hasStart && this.state < B.ATTACHED) {
4946
- this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
4999
+ this.removeClass(C.NO_START), this.addClass(C.ENTER), this.start(), this._useAutoplay = !0;
4947
5000
  return;
4948
5001
  }
4949
- this.state < B.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
4950
- var i = A(I(r.prototype), "play", this).call(this);
5002
+ this.state < B.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
5003
+ var i = D(A(r.prototype), "play", this).call(this);
4951
5004
  return i !== void 0 && i && i.then ? i.then(function() {
4952
- e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < B.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(B.RUNNING), e.emit(Ae));
5005
+ e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < B.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(B.RUNNING), e.emit(Le));
4953
5006
  }).catch(function(n) {
4954
5007
  if (M.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
4955
- e.onError(), e.removeClass(k.ENTER);
5008
+ e.onError(), e.removeClass(C.ENTER);
4956
5009
  return;
4957
5010
  }
4958
5011
  n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
4959
- e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(B.NOTALLOW);
5012
+ e._errorTimer = null, e.emit(ei), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(B.NOTALLOW);
4960
5013
  }, 0));
4961
- }) : (M.logWarn("video.play not return promise"), this.state < B.RUNNING && (this.setState(B.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Ae))), i;
5014
+ }) : (M.logWarn("video.play not return promise"), this.state < B.RUNNING && (this.setState(B.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Le))), i;
4962
5015
  }
4963
5016
  }, {
4964
5017
  key: "mediaPause",
4965
5018
  value: function() {
4966
- A(I(r.prototype), "pause", this).call(this);
5019
+ D(A(r.prototype), "pause", this).call(this);
4967
5020
  }
4968
5021
  }, {
4969
5022
  key: "videoPause",
4970
5023
  value: function() {
4971
- A(I(r.prototype), "pause", this).call(this);
5024
+ D(A(r.prototype), "pause", this).call(this);
4972
5025
  }
4973
5026
  }, {
4974
5027
  key: "play",
4975
5028
  value: function() {
4976
5029
  var e = this;
4977
- return this.removeClass(k.PAUSED), pe(this, "play", function() {
5030
+ return this.removeClass(C.PAUSED), pe(this, "play", function() {
4978
5031
  return e.mediaPlay();
4979
5032
  });
4980
5033
  }
@@ -4983,7 +5036,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4983
5036
  value: function() {
4984
5037
  var e = this;
4985
5038
  pe(this, "pause", function() {
4986
- A(I(r.prototype), "pause", e).call(e);
5039
+ D(A(r.prototype), "pause", e).call(e);
4987
5040
  });
4988
5041
  }
4989
5042
  }, {
@@ -4992,8 +5045,8 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
4992
5045
  var n = this;
4993
5046
  if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
4994
5047
  var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
4995
- e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(me, this._onceSeekCanplay), this._onceSeekCanplay = function() {
4996
- switch (n.removeClass(k.ENTER), n.isSeeking = !1, c) {
5048
+ e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(ye, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5049
+ switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
4997
5050
  case "play":
4998
5051
  n.play();
4999
5052
  break;
@@ -5004,7 +5057,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5004
5057
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5005
5058
  }
5006
5059
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5007
- }, this.once(me, this._onceSeekCanplay), this.state < B.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5060
+ }, this.once(ye, this._onceSeekCanplay), this.state < B.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5008
5061
  }
5009
5062
  }
5010
5063
  }, {
@@ -5046,15 +5099,15 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5046
5099
  value: function() {
5047
5100
  this.load(), this.reloadFunc = function() {
5048
5101
  this.play();
5049
- }, this.once(ye, this.reloadFunc);
5102
+ }, this.once(_e, this.reloadFunc);
5050
5103
  }
5051
5104
  }, {
5052
5105
  key: "resetState",
5053
5106
  value: function() {
5054
- var e = this, i = k.NOT_ALLOW_AUTOPLAY, n = k.PLAYING, s = k.NO_START, l = k.PAUSED, u = k.REPLAY, c = k.ENTER, h = k.ENDED, d = k.ERROR, g = k.LOADING, p = [i, n, s, l, u, c, h, d, g];
5055
- this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
5107
+ 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];
5108
+ 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) {
5056
5109
  e.removeClass(m);
5057
- }), this.addClass(k.NO_START), this.emit(wt);
5110
+ }), this.addClass(C.NO_START), this.emit(wt);
5058
5111
  }
5059
5112
  }, {
5060
5113
  key: "reset",
@@ -5076,7 +5129,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5076
5129
  value: function() {
5077
5130
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5078
5131
  if (!(!s || !l)) {
5079
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5132
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = Ce) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), D(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5080
5133
  for (var u = n.children, c = 0; c < u.length; c++)
5081
5134
  n.removeChild(u[c]);
5082
5135
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5094,8 +5147,8 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5094
5147
  key: "replay",
5095
5148
  value: function() {
5096
5149
  var e = this;
5097
- this.removeClass(k.ENDED), this.currentTime = 0, this.isSeeking = !1, pe(this, "replay", function() {
5098
- e.once(me, function() {
5150
+ this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, pe(this, "replay", function() {
5151
+ e.once(ye, function() {
5099
5152
  var i = e.mediaPlay();
5100
5153
  i && i.catch && i.catch(function(n) {
5101
5154
  console.log(n);
@@ -5107,7 +5160,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5107
5160
  key: "retry",
5108
5161
  value: function() {
5109
5162
  var e = this;
5110
- this.removeClass(k.ERROR), this.addClass(k.LOADING), pe(this, "retry", function() {
5163
+ this.removeClass(C.ERROR), this.addClass(C.LOADING), pe(this, "retry", function() {
5111
5164
  var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
5112
5165
  url: n
5113
5166
  } : e._preProcessUrl(n);
@@ -5119,12 +5172,12 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5119
5172
  }, {
5120
5173
  key: "changeFullStyle",
5121
5174
  value: function(e, i, n, s) {
5122
- e && (s || (s = k.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Pe, this.playerId)));
5175
+ e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Ie, this.playerId)));
5123
5176
  }
5124
5177
  }, {
5125
5178
  key: "recoverFullStyle",
5126
5179
  value: function(e, i, n, s) {
5127
- s || (s = k.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Pe));
5180
+ s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Ie));
5128
5181
  }
5129
5182
  }, {
5130
5183
  key: "getFullscreen",
@@ -5176,7 +5229,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5176
5229
  value: function() {
5177
5230
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
5178
5231
  this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
5179
- var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
5232
+ var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
5180
5233
  this.changeFullStyle(this.root, e, i);
5181
5234
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5182
5235
  l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ct, !0);
@@ -5184,7 +5237,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5184
5237
  }, {
5185
5238
  key: "exitCssFullscreen",
5186
5239
  value: function() {
5187
- var e = this._cssfullscreenEl ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
5240
+ var e = this._cssfullscreenEl ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
5188
5241
  if (!this.fullscreen)
5189
5242
  this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
5190
5243
  else {
@@ -5198,14 +5251,14 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5198
5251
  value: function() {
5199
5252
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
5200
5253
  this.cssfullscreen && this.exitCssFullscreen(e);
5201
- var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
5202
- this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(ge, !0);
5254
+ var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
5255
+ this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(ge, !0);
5203
5256
  }
5204
5257
  }, {
5205
5258
  key: "exitRotateFullscreen",
5206
5259
  value: function(e) {
5207
- var i = this._fullscreenEl !== this.root ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
5208
- this.recoverFullStyle(this.root, this._fullscreenEl, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(ge, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
5260
+ var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
5261
+ this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(ge, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
5209
5262
  }
5210
5263
  }, {
5211
5264
  key: "setRotateDeg",
@@ -5250,7 +5303,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5250
5303
  autoHide: !0,
5251
5304
  delay: 3e3
5252
5305
  }, n = this.innerStates;
5253
- if (this.isActive = !0, this.removeClass(k.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (n.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || n.isActiveLocked) {
5306
+ if (this.isActive = !0, this.removeClass(C.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (n.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || n.isActiveLocked) {
5254
5307
  this._clearUserTimer();
5255
5308
  return;
5256
5309
  }
@@ -5265,7 +5318,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5265
5318
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.ignorePaused, n = i === void 0 ? !1 : i;
5266
5319
  if (!this.innerStates.isActiveLocked) {
5267
5320
  var s = this.config.closePauseVideoFocus;
5268
- this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(k.INACTIVE);
5321
+ this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(C.INACTIVE);
5269
5322
  }
5270
5323
  }
5271
5324
  }, {
@@ -5276,7 +5329,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5276
5329
  }, {
5277
5330
  key: "onCanplay",
5278
5331
  value: function() {
5279
- this.removeClass(k.ENTER), this.removeClass(k.ERROR), this.removeClass(k.LOADING), this.isCanplay = !0, this.waitTimer && f.clearTimeout(this, this.waitTimer);
5332
+ this.removeClass(C.ENTER), this.removeClass(C.ERROR), this.removeClass(C.LOADING), this.isCanplay = !0, this.waitTimer && f.clearTimeout(this, this.waitTimer);
5280
5333
  }
5281
5334
  }, {
5282
5335
  key: "onLoadeddata",
@@ -5286,44 +5339,44 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5286
5339
  }, {
5287
5340
  key: "onLoadstart",
5288
5341
  value: function() {
5289
- this.removeClass(k.ERROR), this.isCanplay = !1;
5342
+ this.removeClass(C.ERROR), this.isCanplay = !1;
5290
5343
  }
5291
5344
  }, {
5292
5345
  key: "onPlay",
5293
5346
  value: function() {
5294
- this.state === B.ENDED && this.setState(B.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
5347
+ this.state === B.ENDED && this.setState(B.RUNNING), this.removeClass(C.PAUSED), this.ended && this.removeClass(C.ENDED), !this.config.closePlayVideoFocus && this.focus();
5295
5348
  }
5296
5349
  }, {
5297
5350
  key: "onPause",
5298
5351
  value: function() {
5299
- this.addClass(k.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
5352
+ this.addClass(C.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
5300
5353
  }
5301
5354
  }, {
5302
5355
  key: "onEnded",
5303
5356
  value: function() {
5304
- this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(B.ENDED);
5357
+ this.updateAcc("ended"), this.addClass(C.ENDED), this.setState(B.ENDED);
5305
5358
  }
5306
5359
  }, {
5307
5360
  key: "onError",
5308
5361
  value: function() {
5309
- this.isError = !0, this.updateAcc("error"), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.removeClass(k.LOADING), this.addClass(k.ERROR);
5362
+ this.isError = !0, this.updateAcc("error"), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.removeClass(C.LOADING), this.addClass(C.ERROR);
5310
5363
  }
5311
5364
  }, {
5312
5365
  key: "onSeeking",
5313
5366
  value: function() {
5314
- this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(k.SEEKING);
5367
+ this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(C.SEEKING);
5315
5368
  }
5316
5369
  }, {
5317
5370
  key: "onSeeked",
5318
5371
  value: function() {
5319
- this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(k.LOADING), this.removeClass(k.SEEKING);
5372
+ this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(C.LOADING), this.removeClass(C.SEEKING);
5320
5373
  }
5321
5374
  }, {
5322
5375
  key: "onWaiting",
5323
5376
  value: function() {
5324
5377
  var e = this;
5325
5378
  this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
5326
- e.addClass(k.LOADING), e.emit(nn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5379
+ e.addClass(C.LOADING), e.emit(nn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5327
5380
  }, this.config.minWaitDelay);
5328
5381
  }
5329
5382
  }, {
@@ -5331,7 +5384,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5331
5384
  value: function() {
5332
5385
  var e = this;
5333
5386
  this.isError = !1;
5334
- var i = k.NO_START, n = k.PAUSED, s = k.ENDED, l = k.ERROR, u = k.REPLAY, c = k.LOADING, h = [i, n, s, l, u, c];
5387
+ var i = C.NO_START, n = C.PAUSED, s = C.ENDED, l = C.ERROR, u = C.REPLAY, c = C.LOADING, h = [i, n, s, l, u, c];
5335
5388
  h.forEach(function(d) {
5336
5389
  e.removeClass(d);
5337
5390
  }), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
@@ -5339,7 +5392,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5339
5392
  }, {
5340
5393
  key: "onTimeupdate",
5341
5394
  value: function() {
5342
- !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === B.NOTALLOW && this.duration && (this.setState(B.RUNNING), this.emit(Ae)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5395
+ !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === B.NOTALLOW && this.duration && (this.setState(B.RUNNING), this.emit(Le)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5343
5396
  }
5344
5397
  }, {
5345
5398
  key: "onVolumechange",
@@ -5383,8 +5436,8 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5383
5436
  }, n = i || {}, s = n.startDiff, l = s === void 0 ? 0 : s, u = n.endDiff, c = u === void 0 ? 0 : u, h = this.media.buffered;
5384
5437
  if (!h || h.length === 0 || !this.duration)
5385
5438
  return !0;
5386
- for (var d = e || this.media.currentTime || 0.2, g = h.length, p = 0; p < g; p++)
5387
- if (h.start(p) + l <= d && h.end(p) - c > d)
5439
+ for (var d = e || this.media.currentTime || 0.2, p = h.length, g = 0; g < p; g++)
5440
+ if (h.start(g) + l <= d && h.end(g) - c > d)
5388
5441
  return !0;
5389
5442
  return !1;
5390
5443
  }
@@ -5398,16 +5451,16 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5398
5451
  this.videoPos.pi = c, u = u < 0 ? 0 : u;
5399
5452
  var h = {
5400
5453
  rotate: u
5401
- }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, w = this.innerContainer, b = _.offsetWidth, C = w ? w.offsetHeight : _.offsetHeight, F = C, R = b;
5454
+ }, d = 0, p = 0, g = 1, m = Math.abs(u / 90), y = this.root, k = this.innerContainer, b = y.offsetWidth, w = k ? k.offsetHeight : y.offsetHeight, I = w, O = b;
5402
5455
  if (m % 2 === 0)
5403
- p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(R, "px"), this.media.style.height = "".concat(F, "px");
5456
+ g = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = g, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - p : p, this.media.style.width = "".concat(O, "px"), this.media.style.height = "".concat(I, "px");
5404
5457
  else if (m % 2 === 1) {
5405
- R = C, F = b;
5406
- var z = C - b;
5407
- g = -z / 2 / R * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / F * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(R, "px"), this.media.style.height = "".concat(F, "px");
5458
+ O = w, I = b;
5459
+ var H = w - b;
5460
+ p = -H / 2 / O * 100, h.x = m === 3 ? p + i / 2 : p - i / 2, d = H / 2 / I * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = g, this.media.style.width = "".concat(O, "px"), this.media.style.height = "".concat(I, "px");
5408
5461
  }
5409
- var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
5410
- this.media.style.transform = D, this.media.style.webkitTransform = D;
5462
+ var R = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
5463
+ this.media.style.transform = R, this.media.style.webkitTransform = R;
5411
5464
  }
5412
5465
  }
5413
5466
  }
@@ -5455,18 +5508,18 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5455
5508
  var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
5456
5509
  if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
5457
5510
  this._videoHeight = l, this._videoWidth = s;
5458
- var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10), w = g, b = p, C = {};
5459
- c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? C.paddingTop = "".concat(b * 100 / w, "%") : C.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (w = m * p / 1e3, C.width = "".concat(w, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(C).forEach(function(R) {
5460
- e.root.style[R] = C[R];
5461
- }), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
5462
- var F = {
5511
+ var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, g = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(p / g * 1e3, 10), k = p, b = g, w = {};
5512
+ c === "auto" && y > m || c === "fixWidth" ? (b = p / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / k, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (k = m * g / 1e3, w.width = "".concat(k, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(O) {
5513
+ e.root.style[O] = w[O];
5514
+ }), (h === "fillHeight" && y < m || h === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
5515
+ var I = {
5463
5516
  videoScale: m,
5464
- vWidth: w,
5517
+ vWidth: k,
5465
5518
  vHeight: b,
5466
- cWidth: w,
5519
+ cWidth: k,
5467
5520
  cHeight: b + d
5468
5521
  };
5469
- this.resizePosition(), this.emit(we, F);
5522
+ this.resizePosition(), this.emit(be, I);
5470
5523
  }
5471
5524
  }
5472
5525
  }
@@ -5606,18 +5659,18 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5606
5659
  }, {
5607
5660
  key: "readyState",
5608
5661
  get: function() {
5609
- return A(I(r.prototype), "readyState", this);
5662
+ return D(A(r.prototype), "readyState", this);
5610
5663
  }
5611
5664
  }, {
5612
5665
  key: "error",
5613
5666
  get: function() {
5614
- var e = A(I(r.prototype), "error", this);
5667
+ var e = D(A(r.prototype), "error", this);
5615
5668
  return this.i18n[e] || e;
5616
5669
  }
5617
5670
  }, {
5618
5671
  key: "networkState",
5619
5672
  get: function() {
5620
- return A(I(r.prototype), "networkState", this);
5673
+ return D(A(r.prototype), "networkState", this);
5621
5674
  }
5622
5675
  }, {
5623
5676
  key: "fullscreenChanging",
@@ -5711,7 +5764,7 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5711
5764
  key: "setUserActive",
5712
5765
  value: function(e, i) {
5713
5766
  var n;
5714
- typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n = _e) === null || n === void 0 || n.setActive(this.playerId, e);
5767
+ typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), f.typeOf(i) === Boolean && (this.muted = i)), (n = Ce) === null || n === void 0 || n.setActive(this.playerId, e);
5715
5768
  }
5716
5769
  }], [{
5717
5770
  key: "debugger",
@@ -5724,32 +5777,32 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5724
5777
  }, {
5725
5778
  key: "instManager",
5726
5779
  get: function() {
5727
- return _e;
5780
+ return Ce;
5728
5781
  },
5729
5782
  set: function(e) {
5730
- _e = e;
5783
+ Ce = e;
5731
5784
  }
5732
5785
  }, {
5733
5786
  key: "getCurrentUserActivePlayerId",
5734
5787
  value: function() {
5735
5788
  var e;
5736
- return (e = _e) === null || e === void 0 ? void 0 : e.getActiveId();
5789
+ return (e = Ce) === null || e === void 0 ? void 0 : e.getActiveId();
5737
5790
  }
5738
5791
  }, {
5739
5792
  key: "setCurrentUserActive",
5740
5793
  value: function(e, i) {
5741
5794
  var n;
5742
- (n = _e) === null || n === void 0 || n.setActive(e, i);
5795
+ (n = Ce) === null || n === void 0 || n.setActive(e, i);
5743
5796
  }
5744
5797
  }, {
5745
5798
  key: "isHevcSupported",
5746
5799
  value: function() {
5747
- return O.isHevcSupported();
5800
+ return F.isHevcSupported();
5748
5801
  }
5749
5802
  }, {
5750
5803
  key: "probeConfigSupported",
5751
5804
  value: function(e) {
5752
- return O.probeConfigSupported(e);
5805
+ return F.probeConfigSupported(e);
5753
5806
  }
5754
5807
  }, {
5755
5808
  key: "install",
@@ -5763,13 +5816,13 @@ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /
5763
5816
  }
5764
5817
  }]), r;
5765
5818
  }(Hs);
5766
- y(bt, "defaultPreset", null);
5767
- y(bt, "XgVideoProxy", null);
5819
+ _(bt, "defaultPreset", null);
5820
+ _(bt, "XgVideoProxy", null);
5768
5821
  bt.instManager = vn.getInstance();
5769
5822
  function $() {
5770
5823
  return (/* @__PURE__ */ new Date()).getTime();
5771
5824
  }
5772
- var Ce = {
5825
+ var ke = {
5773
5826
  LOAD_START: "loadstart",
5774
5827
  LOADED_DATA: "loadeddata",
5775
5828
  FIRST_FRAME: "firstFrame",
@@ -5785,11 +5838,11 @@ var Ce = {
5785
5838
  T(this, r);
5786
5839
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
5787
5840
  i[n] = arguments[n];
5788
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onTimeupdate", function() {
5841
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onTimeupdate", function() {
5789
5842
  t._state.isTimeUpdate = !0, t._state.autoplayStart && (M.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
5790
- }), y(v(t), "_onAutoplayStart", function() {
5843
+ }), _(v(t), "_onAutoplayStart", function() {
5791
5844
  M.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
5792
- }), y(v(t), "_onReset", function() {
5845
+ }), _(v(t), "_onReset", function() {
5793
5846
  t._state = {
5794
5847
  autoplayStart: !1,
5795
5848
  isFFLoading: !1,
@@ -5797,31 +5850,31 @@ var Ce = {
5797
5850
  isFFSend: !1,
5798
5851
  isLs: !1
5799
5852
  }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = $(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(v(t), t._waitTimer), t._waittTimer && f.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
5800
- }), y(v(t), "_onSeeking", function() {
5801
- t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = $(), t.emitLog(Ce.SEEK_START, {
5853
+ }), _(v(t), "_onSeeking", function() {
5854
+ t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = $(), t.emitLog(ke.SEEK_START, {
5802
5855
  start: $()
5803
5856
  }));
5804
- }), y(v(t), "_onSeeked", function() {
5857
+ }), _(v(t), "_onSeeked", function() {
5805
5858
  t.suspendSeekingStatus("seeked");
5806
- }), y(v(t), "_onWaitingLoadStart", function() {
5807
- t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = $(), t.fixedWaitingStart = $(), t._waitType = 1, t.emitLog(Ce.WAIT_START, {
5859
+ }), _(v(t), "_onWaitingLoadStart", function() {
5860
+ t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = $(), t.fixedWaitingStart = $(), t._waitType = 1, t.emitLog(ke.WAIT_START, {
5808
5861
  fixedStart: t.fixedWaitingStart,
5809
5862
  start: t.waitingStart,
5810
5863
  type: 1,
5811
5864
  endType: "loadstart"
5812
5865
  }));
5813
- }), y(v(t), "_onWaiting", function() {
5866
+ }), _(v(t), "_onWaiting", function() {
5814
5867
  t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = $(), t._waitTimer = f.setTimeout(v(t), function() {
5815
- t._isWaiting && (t.waitingStart = $(), f.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ce.WAIT_START, {
5868
+ t._isWaiting && (t.waitingStart = $(), f.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(ke.WAIT_START, {
5816
5869
  fixedStart: t.fixedWaitingStart,
5817
5870
  start: t.waitingStart,
5818
5871
  type: t._waitType,
5819
5872
  endType: t._waitType === 2 ? "seek" : "playing"
5820
5873
  }));
5821
5874
  }, 200));
5822
- }), y(v(t), "_onError", function() {
5875
+ }), _(v(t), "_onError", function() {
5823
5876
  t.suspendSeekingStatus("error"), t.suspendWaitingStatus("error");
5824
- }), y(v(t), "_onPlaying", function() {
5877
+ }), _(v(t), "_onPlaying", function() {
5825
5878
  t._isWaiting && t.suspendWaitingStatus("playing");
5826
5879
  }), t;
5827
5880
  }
@@ -5831,12 +5884,12 @@ var Ce = {
5831
5884
  var e = this;
5832
5885
  this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Zt, function() {
5833
5886
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
5834
- e.startCostTime = $() - e.newPointTime, M.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ce.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = $(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5835
- }), this.on(ye, function() {
5887
+ e.startCostTime = $() - e.newPointTime, M.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(ke.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = $(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5888
+ }), this.on(_e, function() {
5836
5889
  e.vt = $(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5837
5890
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
5838
- M.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(Ce.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5839
- }), this.on(_t, this._onSeeking), this.on(me, this._onSeeked), this.on(ti, function() {
5891
+ M.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(ke.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5892
+ }), this.on(_t, this._onSeeking), this.on(ye, this._onSeeked), this.on(ti, function() {
5840
5893
  e.endState("destroy");
5841
5894
  }), this.on(kt, function() {
5842
5895
  e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
@@ -5847,14 +5900,14 @@ var Ce = {
5847
5900
  }, {
5848
5901
  key: "_initOnceEvents",
5849
5902
  value: function() {
5850
- this.off(Ae, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(Ae, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
5903
+ this.off(Le, this._onAutoplayStart), this.off(te, this._onTimeupdate), this.once(Le, this._onAutoplayStart), this.once(te, this._onTimeupdate);
5851
5904
  }
5852
5905
  }, {
5853
5906
  key: "_sendFF",
5854
5907
  value: function(e) {
5855
5908
  this.s = $();
5856
5909
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
5857
- M.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (M.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ce.FIRST_FRAME, {
5910
+ M.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (M.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(ke.FIRST_FRAME, {
5858
5911
  fvt: this.fvt,
5859
5912
  costTime: this.fvt,
5860
5913
  vt: this.vt,
@@ -5880,7 +5933,7 @@ var Ce = {
5880
5933
  value: function(e) {
5881
5934
  if (this.seekingStart) {
5882
5935
  var i = $(), n = i - this.seekingStart;
5883
- this.seekingStart = 0, this.emitLog(Ce.SEEK_END, {
5936
+ this.seekingStart = 0, this.emitLog(ke.SEEK_END, {
5884
5937
  end: i,
5885
5938
  costTime: n,
5886
5939
  endType: e
@@ -5892,7 +5945,7 @@ var Ce = {
5892
5945
  value: function(e) {
5893
5946
  if (this._waitTimer && (f.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (f.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
5894
5947
  var i = $(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
5895
- this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ce.WAIT_END, {
5948
+ this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(ke.WAIT_END, {
5896
5949
  fixedCostTime: s > l ? l : s,
5897
5950
  costTime: n > l ? l : n,
5898
5951
  type: e === "loadeddata" ? 1 : this._waitType,
@@ -5927,7 +5980,7 @@ var Ce = {
5927
5980
  };
5928
5981
  }
5929
5982
  }]), r;
5930
- }(U);
5983
+ }(z);
5931
5984
  function co() {
5932
5985
  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">
5933
5986
  <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>
@@ -5951,7 +6004,7 @@ var fo = /* @__PURE__ */ function(a) {
5951
6004
  key: "afterCreate",
5952
6005
  value: function() {
5953
6006
  var e = this;
5954
- U.insert(this.icons.replay, this.root, 0), this.__handleReplay = this.hook("replayClick", function() {
6007
+ z.insert(this.icons.replay, this.root, 0), this.__handleReplay = this.hook("replayClick", function() {
5955
6008
  e.player.replay();
5956
6009
  }, {
5957
6010
  pre: function(n) {
@@ -5968,7 +6021,7 @@ var fo = /* @__PURE__ */ function(a) {
5968
6021
  i.setAttribute("transform", n);
5969
6022
  }
5970
6023
  }
5971
- }), this.on(ne, function() {
6024
+ }), this.on(ie, function() {
5972
6025
  e.hide();
5973
6026
  });
5974
6027
  }
@@ -6017,7 +6070,7 @@ var fo = /* @__PURE__ */ function(a) {
6017
6070
  };
6018
6071
  }
6019
6072
  }]), r;
6020
- }(U), ho = /* @__PURE__ */ function(a) {
6073
+ }(z), ho = /* @__PURE__ */ function(a) {
6021
6074
  x(r, a);
6022
6075
  var o = P(r);
6023
6076
  function r() {
@@ -6052,13 +6105,13 @@ var fo = /* @__PURE__ */ function(a) {
6052
6105
  var e = this;
6053
6106
  this.on(Re, function() {
6054
6107
  e.isEndedShow && f.removeClass(e.root, "hide");
6055
- }), this.config.hideCanplay ? (this.once(ie, function() {
6108
+ }), this.config.hideCanplay ? (this.once(te, function() {
6056
6109
  e.onTimeUpdate();
6057
6110
  }), this.on(kt, function() {
6058
- f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ie, function() {
6111
+ f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(te, function() {
6059
6112
  e.onTimeUpdate();
6060
6113
  });
6061
- })) : this.on(ne, function() {
6114
+ })) : this.on(ie, function() {
6062
6115
  f.addClass(e.root, "hide");
6063
6116
  });
6064
6117
  }
@@ -6076,7 +6129,7 @@ var fo = /* @__PURE__ */ function(a) {
6076
6129
  key: "onTimeUpdate",
6077
6130
  value: function() {
6078
6131
  var e = this;
6079
- this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(ie, function() {
6132
+ this.player.currentTime ? f.removeClass(this.root, "xg-showplay") : this.once(te, function() {
6080
6133
  e.onTimeUpdate();
6081
6134
  });
6082
6135
  }
@@ -6128,7 +6181,7 @@ var fo = /* @__PURE__ */ function(a) {
6128
6181
  };
6129
6182
  }
6130
6183
  }]), r;
6131
- }(U);
6184
+ }(z);
6132
6185
  function ri() {
6133
6186
  return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6134
6187
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
@@ -6141,23 +6194,23 @@ function si() {
6141
6194
  </svg>
6142
6195
  `, "image/svg+xml").firstChild;
6143
6196
  }
6144
- var fe = {};
6197
+ var he = {};
6145
6198
  function go(a, o) {
6146
6199
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6147
6200
  start: null,
6148
6201
  end: null
6149
6202
  };
6150
- return fe[a] && window.clearTimeout(fe[a].id), fe[a] = {}, r.start && r.start(), fe[a].id = window.setTimeout(function() {
6151
- r.end && r.end(), window.clearTimeout(fe[a].id), delete fe[a];
6152
- }, o), fe[a].id;
6203
+ return he[a] && window.clearTimeout(he[a].id), he[a] = {}, r.start && r.start(), he[a].id = window.setTimeout(function() {
6204
+ r.end && r.end(), window.clearTimeout(he[a].id), delete he[a];
6205
+ }, o), he[a].id;
6153
6206
  }
6154
6207
  function Pi(a) {
6155
6208
  if (a) {
6156
6209
  window.clearTimeout(a);
6157
6210
  return;
6158
6211
  }
6159
- Object.keys(fe).map(function(o) {
6160
- window.clearTimeout(fe[o].id), delete fe[o];
6212
+ Object.keys(he).map(function(o) {
6213
+ window.clearTimeout(he[o].id), delete he[o];
6161
6214
  });
6162
6215
  }
6163
6216
  var po = /* @__PURE__ */ function(a) {
@@ -6165,11 +6218,11 @@ var po = /* @__PURE__ */ function(a) {
6165
6218
  var o = P(r);
6166
6219
  function r(t) {
6167
6220
  var e;
6168
- return T(this, r), e = o.call(this, t), y(v(e), "onPlayerReset", function() {
6221
+ return T(this, r), e = o.call(this, t), _(v(e), "onPlayerReset", function() {
6169
6222
  e.autoPlayStart = !1;
6170
6223
  var i = e.config.mode === "auto" ? "auto-hide" : "hide";
6171
6224
  e.setAttr("data-state", "play"), f.removeClass(e.root, i), e.show();
6172
- }), y(v(e), "onAutoplayStart", function() {
6225
+ }), _(v(e), "onAutoplayStart", function() {
6173
6226
  if (!e.autoPlayStart) {
6174
6227
  var i = e.config.mode === "auto" ? "auto-hide" : "hide";
6175
6228
  f.addClass(e.root, i), e.autoPlayStart = !0, e.onPlayPause("play");
@@ -6182,10 +6235,10 @@ var po = /* @__PURE__ */ function(a) {
6182
6235
  var e = this, i = this.player, n = this.playerConfig;
6183
6236
  this.initIcons(), this.once(Qt, function() {
6184
6237
  n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
6185
- }), this.on(Ae, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
6238
+ }), this.on(Le, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
6186
6239
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
6187
6240
  e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
6188
- }), this.on(ne, function() {
6241
+ }), this.on(ie, function() {
6189
6242
  e.onPlayPause("play");
6190
6243
  }), this.on(Ye, function() {
6191
6244
  e.onPlayPause("pause");
@@ -6335,7 +6388,7 @@ var po = /* @__PURE__ */ function(a) {
6335
6388
  };
6336
6389
  }
6337
6390
  }]), r;
6338
- }(U), vo = /* @__PURE__ */ function(a) {
6391
+ }(z), vo = /* @__PURE__ */ function(a) {
6339
6392
  x(r, a);
6340
6393
  var o = P(r);
6341
6394
  function r() {
@@ -6370,8 +6423,8 @@ var po = /* @__PURE__ */ function(a) {
6370
6423
  };
6371
6424
  }
6372
6425
  }]), r;
6373
- }(U);
6374
- function Ee(a, o, r) {
6426
+ }(z);
6427
+ function Se(a, o, r) {
6375
6428
  try {
6376
6429
  return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
6377
6430
  `).concat(a.i18n[o], `
@@ -6424,12 +6477,12 @@ var Ii = /* @__PURE__ */ function(a) {
6424
6477
  key: "defaultConfig",
6425
6478
  get: function() {
6426
6479
  return {
6427
- position: V.CONTROLS_RIGHT,
6480
+ position: j.CONTROLS_RIGHT,
6428
6481
  index: 10
6429
6482
  };
6430
6483
  }
6431
6484
  }]), r;
6432
- }(U);
6485
+ }(z);
6433
6486
  function Ai(a) {
6434
6487
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
6435
6488
  return r && o;
@@ -6464,10 +6517,10 @@ function Li(a) {
6464
6517
  var i = oi[e], n = o[i], s = parseFloat(n);
6465
6518
  r[i] = Number.isNaN(s) ? 0 : s;
6466
6519
  }
6467
- var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Ai(o.width);
6468
- m !== !1 && (r.width = m + (p ? 0 : l + d));
6469
- var _ = Ai(o.height);
6470
- return _ !== !1 && (r.height = _ + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
6520
+ var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, g = t, m = Ai(o.width);
6521
+ m !== !1 && (r.width = m + (g ? 0 : l + d));
6522
+ var y = Ai(o.height);
6523
+ 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;
6471
6524
  }
6472
6525
  }
6473
6526
  function Lt(a, o) {
@@ -6700,12 +6753,12 @@ var Dt = {
6700
6753
  var o = P(r);
6701
6754
  function r(t) {
6702
6755
  var e;
6703
- T(this, r), e = o.call(this, t), y(v(e), "onCancelClick", function(s) {
6756
+ T(this, r), e = o.call(this, t), _(v(e), "onCancelClick", function(s) {
6704
6757
  e.exitMini(), e.isClose = !0;
6705
- }), y(v(e), "onCenterClick", function(s) {
6758
+ }), _(v(e), "onCenterClick", function(s) {
6706
6759
  var l = v(e), u = l.player;
6707
6760
  u.paused ? u.play() : u.pause();
6708
- }), y(v(e), "onScroll", function(s) {
6761
+ }), _(v(e), "onScroll", function(s) {
6709
6762
  if (!(!window.scrollY && window.scrollY !== 0 || Math.abs(window.scrollY - e.pos.scrollY) < 50)) {
6710
6763
  var l = parseInt(f.getCss(e.player.root, "height"));
6711
6764
  l += e.config.scrollTop, e.pos.scrollY = window.scrollY, window.scrollY > l + 5 ? !e.isMini && !e.isClose && e.getMini() : window.scrollY <= l && (e.isMini && e.exitMini(), e.isClose = !1);
@@ -6731,7 +6784,7 @@ var Dt = {
6731
6784
  var e = this;
6732
6785
  this.initIcons(), this.on(Ye, function() {
6733
6786
  e.setAttr("data-state", "pause");
6734
- }), this.on(ne, function() {
6787
+ }), this.on(ie, function() {
6735
6788
  e.setAttr("data-state", "play");
6736
6789
  });
6737
6790
  }
@@ -6812,7 +6865,7 @@ var Dt = {
6812
6865
  return `
6813
6866
  <xg-mini-layer class="xg-mini-layer">
6814
6867
  <xg-mini-header class="xgplayer-mini-header">
6815
- `.concat(Ee(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6868
+ `.concat(Se(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6816
6869
  </xg-mini-header>
6817
6870
  <div class="mini-cancel-btn">
6818
6871
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
@@ -6845,7 +6898,7 @@ var Dt = {
6845
6898
  };
6846
6899
  }
6847
6900
  }]), r;
6848
- }(U), rt = {
6901
+ }(z), rt = {
6849
6902
  mouseenter: "onMouseEnter",
6850
6903
  mouseleave: "onMouseLeave",
6851
6904
  mousemove: "onMouseMove"
@@ -6857,17 +6910,17 @@ var Dt = {
6857
6910
  T(this, r);
6858
6911
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
6859
6912
  i[n] = arguments[n];
6860
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onMouseMove", function(s) {
6913
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onMouseMove", function(s) {
6861
6914
  var l = v(t), u = l.player, c = l.playerConfig;
6862
6915
  u.isActive || (u.focus({
6863
6916
  autoHide: !c.closeDelayBlur
6864
6917
  }), !c.closeFocusVideoFocus && u.media.focus());
6865
- }), y(v(t), "onMouseEnter", function(s) {
6918
+ }), _(v(t), "onMouseEnter", function(s) {
6866
6919
  var l = v(t), u = l.playerConfig, c = l.player;
6867
6920
  !u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
6868
6921
  autoHide: !1
6869
6922
  }) : c.focus(), t.emit(tn);
6870
- }), y(v(t), "onMouseLeave", function(s) {
6923
+ }), _(v(t), "onMouseLeave", function(s) {
6871
6924
  var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
6872
6925
  !u && !h && (c ? t.player.focus({
6873
6926
  autoHide: !0,
@@ -6875,7 +6928,7 @@ var Dt = {
6875
6928
  }) : t.player.blur({
6876
6929
  ignorePaused: !0
6877
6930
  })), t.emit(en);
6878
- }), y(v(t), "onVideoClick", function(s) {
6931
+ }), _(v(t), "onVideoClick", function(s) {
6879
6932
  var l = v(t), u = l.player, c = l.playerConfig;
6880
6933
  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() {
6881
6934
  t._clickCount && (t._clickCount--, pe(v(t), Rt[0], function(h, d) {
@@ -6885,7 +6938,7 @@ var Dt = {
6885
6938
  paused: u.paused
6886
6939
  }), clearTimeout(t.clickTimer), t.clickTimer = null);
6887
6940
  }, 300));
6888
- }), y(v(t), "onVideoDblClick", function(s) {
6941
+ }), _(v(t), "onVideoDblClick", function(s) {
6889
6942
  var l = v(t), u = l.player, c = l.playerConfig;
6890
6943
  if (!(c.closeVideoDblclick || !s.target || s.target !== u.media && s.target !== u.media.__canvas)) {
6891
6944
  if (!c.closeVideoClick && t._clickCount < 2) {
@@ -6913,7 +6966,7 @@ var Dt = {
6913
6966
  e.__hooks[n] = null;
6914
6967
  });
6915
6968
  var i = this.playerConfig.isMobileSimulateMode;
6916
- i === "mobile" || O.device === "mobile" && !O.os.isIpad || this.initEvents();
6969
+ i === "mobile" || F.device === "mobile" && !F.os.isIpad || this.initEvents();
6917
6970
  }
6918
6971
  }, {
6919
6972
  key: "initEvents",
@@ -6957,7 +7010,7 @@ var Dt = {
6957
7010
  return {};
6958
7011
  }
6959
7012
  }]), r;
6960
- }(be), ke = {
7013
+ }(Te), we = {
6961
7014
  PRESS: "press",
6962
7015
  PRESS_END: "pressend",
6963
7016
  DOUBlE_CLICK: "doubleclick",
@@ -6994,17 +7047,17 @@ var To = /* @__PURE__ */ function() {
6994
7047
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6995
7048
  eventType: "touch"
6996
7049
  };
6997
- T(this, a), y(this, "onTouchStart", function(e) {
7050
+ T(this, a), _(this, "onTouchStart", function(e) {
6998
7051
  var i = r._pos, n = r.root, s = Ri(e.touches);
6999
- i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(ke.TOUCH_START, e);
7000
- }), y(this, "onTouchCancel", function(e) {
7052
+ i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(we.TOUCH_START, e);
7053
+ }), _(this, "onTouchCancel", function(e) {
7001
7054
  r.onTouchEnd(e);
7002
- }), y(this, "onTouchEnd", function(e) {
7055
+ }), _(this, "onTouchEnd", function(e) {
7003
7056
  var i = r._pos, n = r.root;
7004
- r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(ke.PRESS_END, e), r.trigger(ke.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7005
- }), y(this, "onTouchMove", function(e) {
7057
+ r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(we.PRESS_END, e), r.trigger(we.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7058
+ }), _(this, "onTouchMove", function(e) {
7006
7059
  var i = r._pos, n = r.config, s = Ri(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
7007
- Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(ke.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(ke.TOUCH_MOVE, e));
7060
+ Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(we.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(we.TOUCH_MOVE, e));
7008
7061
  }), this._pos = {
7009
7062
  moving: !1,
7010
7063
  start: !1,
@@ -7024,7 +7077,7 @@ var To = /* @__PURE__ */ function() {
7024
7077
  value: function(r) {
7025
7078
  var t = this, e = this.config;
7026
7079
  this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
7027
- t.trigger(ke.PRESS, r), t._pos.press = !0, t.__clearPress();
7080
+ t.trigger(we.PRESS, r), t._pos.press = !0, t.__clearPress();
7028
7081
  }, e.pressDelay);
7029
7082
  }
7030
7083
  }, {
@@ -7037,11 +7090,11 @@ var To = /* @__PURE__ */ function() {
7037
7090
  value: function(r) {
7038
7091
  var t = this, e = this.config;
7039
7092
  if (this.dbIntrvalId) {
7040
- this.__clearDb(), this.trigger(ke.DOUBlE_CLICK, r);
7093
+ this.__clearDb(), this.trigger(we.DOUBlE_CLICK, r);
7041
7094
  return;
7042
7095
  }
7043
7096
  this.dbIntrvalId = setTimeout(function() {
7044
- t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(ke.CLICK, r);
7097
+ t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(we.CLICK, r);
7045
7098
  }, e.dbClickDelay);
7046
7099
  }
7047
7100
  }, {
@@ -7110,29 +7163,29 @@ var Ne = {
7110
7163
  var o = P(r);
7111
7164
  function r(t) {
7112
7165
  var e;
7113
- return T(this, r), e = o.call(this, t), y(v(e), "onTouchStart", function(i) {
7166
+ return T(this, r), e = o.call(this, t), _(v(e), "onTouchStart", function(i) {
7114
7167
  var n = v(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
7115
7168
  if (h && !l.disableGesture && e.duration > 0 && !s.ended) {
7116
7169
  u.isStart = !0, e.timer && clearTimeout(e.timer), f.checkIsFunction(c.disableSwipeHandler) && c.disableSwipeHandler(), e.find(".xg-dur").innerHTML = f.format(e.duration);
7117
7170
  var d = e.root.getBoundingClientRect();
7118
7171
  s.rotateDeg === 90 ? (u.top = d.left, u.left = d.top, u.width = d.height, u.height = d.width) : (u.top = d.top, u.left = d.left, u.width = d.width, u.height = d.height);
7119
- var g = parseInt(h.pageX - u.left, 10), p = parseInt(h.pageY - u.top, 10);
7120
- u.x = s.rotateDeg === 90 ? p : g, u.y = s.rotateDeg === 90 ? g : p, u.scopeL = l.scopeL * u.width, u.scopeR = (1 - l.scopeR) * u.width, u.scopeM1 = u.width * (1 - l.scopeM) / 2, u.scopeM2 = u.width - u.scopeM1;
7172
+ var p = parseInt(h.pageX - u.left, 10), g = parseInt(h.pageY - u.top, 10);
7173
+ u.x = s.rotateDeg === 90 ? g : p, u.y = s.rotateDeg === 90 ? p : g, u.scopeL = l.scopeL * u.width, u.scopeR = (1 - l.scopeR) * u.width, u.scopeM1 = u.width * (1 - l.scopeM) / 2, u.scopeM2 = u.width - u.scopeM1;
7121
7174
  }
7122
- }), y(v(e), "onTouchMove", function(i) {
7175
+ }), _(v(e), "onTouchMove", function(i) {
7123
7176
  var n = e.getTouche(i), s = v(e), l = s.pos, u = s.config, c = s.player;
7124
7177
  if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
7125
- var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, _ = c.rotateDeg === 90 ? g : p;
7126
- if (Math.abs(m - l.x) > h || Math.abs(_ - l.y) > h) {
7127
- var w = m - l.x, b = _ - l.y, C = l.scope;
7128
- if (C === -1 && (C = e.checkScope(m, _, w, b, l), C === 0 && (d ? c.blur() : c.focus({
7178
+ var h = u.miniMoveStep, d = u.hideControlsActive, p = parseInt(n.pageX - l.left, 10), g = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? g : p, y = c.rotateDeg === 90 ? p : g;
7179
+ if (Math.abs(m - l.x) > h || Math.abs(y - l.y) > h) {
7180
+ var k = m - l.x, b = y - l.y, w = l.scope;
7181
+ if (w === -1 && (w = e.checkScope(m, y, k, b, l), w === 0 && (d ? c.blur() : c.focus({
7129
7182
  autoHide: !1
7130
- }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = C), C === -1 || C > 0 && !u.gestureY || C === 0 && !u.gestureX)
7183
+ }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = w), w === -1 || w > 0 && !u.gestureY || w === 0 && !u.gestureX)
7131
7184
  return;
7132
- e.executeMove(w, b, C, l.width, l.height), l.x = m, l.y = _;
7185
+ e.executeMove(k, b, w, l.width, l.height), l.x = m, l.y = y;
7133
7186
  }
7134
7187
  }
7135
- }), y(v(e), "onTouchEnd", function(i) {
7188
+ }), _(v(e), "onTouchEnd", function(i) {
7136
7189
  var n = v(e), s = n.player, l = n.pos, u = n.playerConfig;
7137
7190
  if (setTimeout(function() {
7138
7191
  s.getPlugin("progress") && s.getPlugin("progress").resetSeekState();
@@ -7141,9 +7194,9 @@ var Ne = {
7141
7194
  var c = e.config, h = c.disableGesture, d = c.gestureX;
7142
7195
  !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ne.AUTO);
7143
7196
  }
7144
- }), y(v(e), "onRootTouchMove", function(i) {
7197
+ }), _(v(e), "onRootTouchMove", function(i) {
7145
7198
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
7146
- }), y(v(e), "onRootTouchEnd", function(i) {
7199
+ }), _(v(e), "onRootTouchEnd", function(i) {
7147
7200
  e.pos.scope > -1 && e.onTouchEnd(i);
7148
7201
  }), e.pos = {
7149
7202
  isStart: !1,
@@ -7199,12 +7252,12 @@ var Ne = {
7199
7252
  d.preventDefault();
7200
7253
  }), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
7201
7254
  var u = this.player.controls;
7202
- u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Te, function() {
7203
- var d = e.player, g = e.config;
7204
- d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
7255
+ u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Ee, function() {
7256
+ var d = e.player, p = e.config;
7257
+ d.duration * 1e3 < p.moveDuration && (p.moveDuration = d.duration * 1e3);
7205
7258
  }), this.on([ve, Re], function() {
7206
- var d = e.pos, g = d.time, p = d.isStart;
7207
- !p && g > 0 && (e.pos.time = 0);
7259
+ var d = e.pos, p = d.time, g = d.isStart;
7260
+ !g && p > 0 && (e.pos.time = 0);
7208
7261
  });
7209
7262
  var c = {
7210
7263
  touchstart: "onTouchStart",
@@ -7216,8 +7269,8 @@ var Ne = {
7216
7269
  doubleclick: "onDbClick"
7217
7270
  };
7218
7271
  if (Object.keys(c).map(function(d) {
7219
- e.touch.on(d, function(g) {
7220
- e[c[d]](g);
7272
+ e.touch.on(d, function(p) {
7273
+ e[c[d]](p);
7221
7274
  });
7222
7275
  }), !n.disableActive) {
7223
7276
  var h = s.plugins.progress;
@@ -7246,12 +7299,12 @@ var Ne = {
7246
7299
  var e = this.playerConfig || {}, i = e.commonStyle, n = i.playedColor, s = i.progressColor, l = i.timePreviewStyle, u = i.curTimeColor, c = i.durationColor;
7247
7300
  if (n && (this.find(".xg-curbar").style.backgroundColor = n), s && (this.find(".xg-bar").style.backgroundColor = s), l) {
7248
7301
  var h = this.find(".time-preview");
7249
- Object.keys(l).forEach(function(p) {
7250
- h.style[p] = l[p];
7302
+ Object.keys(l).forEach(function(g) {
7303
+ h.style[g] = l[g];
7251
7304
  });
7252
7305
  }
7253
- var d = u || n, g = c;
7254
- d && (this.find(".xg-cur").style.color = d), g && (this.find(".xg-dur").style.color = g), this.config.disableTimeProgress && f.addClass(this.find(".xg-timebar"), "hide");
7306
+ var d = u || n, p = c;
7307
+ d && (this.find(".xg-cur").style.color = d), p && (this.find(".xg-dur").style.color = p), this.config.disableTimeProgress && f.addClass(this.find(".xg-timebar"), "hide");
7255
7308
  }
7256
7309
  }, {
7257
7310
  key: "resetPos",
@@ -7316,7 +7369,7 @@ var Ne = {
7316
7369
  this.updateBrightness(i / l);
7317
7370
  break;
7318
7371
  case 2:
7319
- O.os.isIos || this.updateVolume(i / l);
7372
+ F.os.isIos || this.updateVolume(i / l);
7320
7373
  break;
7321
7374
  }
7322
7375
  }
@@ -7533,7 +7586,7 @@ var Ne = {
7533
7586
  };
7534
7587
  }
7535
7588
  }]), r;
7536
- }(U);
7589
+ }(z);
7537
7590
  function xo(a) {
7538
7591
  a.preventDefault(), a.returnValue = !1;
7539
7592
  }
@@ -7549,18 +7602,18 @@ var Fi = /* @__PURE__ */ function(a) {
7549
7602
  T(this, r);
7550
7603
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
7551
7604
  i[n] = arguments[n];
7552
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onBodyKeyDown", function(s) {
7605
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onBodyKeyDown", function(s) {
7553
7606
  if (t.player) {
7554
- var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, m = g.disableBodyTrigger, _ = g.isIgnoreUserActive;
7555
- if (p || m || !(d.isUserActive || _) || Oi(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
7607
+ var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, p = t.config, g = p.disable, m = p.disableBodyTrigger, y = p.isIgnoreUserActive;
7608
+ if (g || m || !(d.isUserActive || y) || Oi(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
7556
7609
  h.isBodyKeyDown = !1;
7557
7610
  return;
7558
7611
  }
7559
7612
  !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !Oi(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
7560
7613
  }
7561
- }), y(v(t), "onBodyKeyUp", function(s) {
7614
+ }), _(v(t), "onBodyKeyUp", function(s) {
7562
7615
  t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
7563
- }), y(v(t), "onKeydown", function(s) {
7616
+ }), _(v(t), "onKeydown", function(s) {
7564
7617
  if (t.player) {
7565
7618
  var l = s || window.event, u = v(t), c = u._keyState;
7566
7619
  if (!l.repeat) {
@@ -7570,7 +7623,7 @@ var Fi = /* @__PURE__ */ function(a) {
7570
7623
  }
7571
7624
  c.isKeyDown && t.handleKeyDown(l);
7572
7625
  }
7573
- }), y(v(t), "onKeyup", function(s) {
7626
+ }), _(v(t), "onKeyup", function(s) {
7574
7627
  t.player && (t.player.root.removeEventListener("keyup", t.onKeyup), t.handleKeyUp(s));
7575
7628
  }), t;
7576
7629
  }
@@ -7697,17 +7750,17 @@ var Fi = /* @__PURE__ */ function(a) {
7697
7750
  }, {
7698
7751
  key: "seek",
7699
7752
  value: function(e) {
7700
- var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, g = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
7701
- h + g <= d ? h = h + g : h = d;
7702
- var p = f.getCurrentTimeByOffset(h, c), m = {
7753
+ var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, p = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
7754
+ h + p <= d ? h = h + p : h = d;
7755
+ var g = f.getCurrentTimeByOffset(h, c), m = {
7703
7756
  currentTime: {
7704
7757
  from: n,
7705
- to: p
7758
+ to: g
7706
7759
  }
7707
7760
  };
7708
7761
  this.emitUserAction(e, "seek", {
7709
7762
  props: m
7710
- }), this.player.currentTime = p;
7763
+ }), this.player.currentTime = g;
7711
7764
  }
7712
7765
  }, {
7713
7766
  key: "seekBack",
@@ -7773,10 +7826,10 @@ var Fi = /* @__PURE__ */ function(a) {
7773
7826
  key: "handleKeyCode",
7774
7827
  value: function(e, i, n) {
7775
7828
  for (var s = Object.keys(this.keyCodeMap), l = 0; l < s.length; l++) {
7776
- var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, g = u.pressAction, p = u.disablePress;
7829
+ var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, p = u.pressAction, g = u.disablePress;
7777
7830
  if (h === e) {
7778
- if (!d && !(n && p)) {
7779
- var m = n && g || c;
7831
+ if (!d && !(n && g)) {
7832
+ var m = n && p || c;
7780
7833
  typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(on, W({
7781
7834
  key: s[l],
7782
7835
  target: i.target,
@@ -7824,7 +7877,7 @@ var Fi = /* @__PURE__ */ function(a) {
7824
7877
  };
7825
7878
  }
7826
7879
  }]), r;
7827
- }(be);
7880
+ }(Te);
7828
7881
  function Po() {
7829
7882
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7830
7883
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
@@ -7866,11 +7919,11 @@ var Io = /* @__PURE__ */ function(a) {
7866
7919
  key: "defaultConfig",
7867
7920
  get: function() {
7868
7921
  return {
7869
- position: V.ROOT
7922
+ position: j.ROOT
7870
7923
  };
7871
7924
  }
7872
7925
  }]), r;
7873
- }(U), Ao = [{
7926
+ }(z), Ao = [{
7874
7927
  tag: "xg-cache",
7875
7928
  className: "xgplayer-progress-cache",
7876
7929
  styleKey: "cachedColor"
@@ -8086,73 +8139,73 @@ var Io = /* @__PURE__ */ function(a) {
8086
8139
  var o = P(r);
8087
8140
  function r(t) {
8088
8141
  var e;
8089
- return T(this, r), e = o.call(this, t), y(v(e), "onMoveOnly", function(i, n) {
8142
+ return T(this, r), e = o.call(this, t), _(v(e), "onMoveOnly", function(i, n) {
8090
8143
  var s = v(e), l = s.pos, u = s.config, c = s.player, h = n;
8091
8144
  if (i) {
8092
8145
  f.event(i);
8093
- var d = f.getEventPos(i, c.zoom), g = c.rotateDeg === 90 ? d.clientY : d.clientX;
8094
- if (l.moving && Math.abs(l.x - g) < u.miniMoveStep)
8146
+ var d = f.getEventPos(i, c.zoom), p = c.rotateDeg === 90 ? d.clientY : d.clientX;
8147
+ if (l.moving && Math.abs(l.x - p) < u.miniMoveStep)
8095
8148
  return;
8096
- l.moving = !0, l.x = g, h = e.computeTime(i, g);
8149
+ l.moving = !0, l.x = p, h = e.computeTime(i, p);
8097
8150
  }
8098
8151
  e.triggerCallbacks("dragmove", h, i), e._updateInnerFocus(h);
8099
- }), y(v(e), "onBodyClick", function(i) {
8152
+ }), _(v(e), "onBodyClick", function(i) {
8100
8153
  e.pos.isLocked && (e.pos.isLocked = !1, i.preventDefault(), i.stopPropagation());
8101
- }), y(v(e), "_mouseDownHandler", function(i, n) {
8154
+ }), _(v(e), "_mouseDownHandler", function(i, n) {
8102
8155
  e._state.time = n.currentTime, e.updateWidth(n.currentTime, n.seekTime, n.percent, 0), e._updateInnerFocus(n);
8103
- }), y(v(e), "_mouseUpHandler", function(i, n) {
8156
+ }), _(v(e), "_mouseUpHandler", function(i, n) {
8104
8157
  var s = v(e), l = s.pos;
8105
8158
  l.moving && e.updateWidth(n.currentTime, n.seekTime, n.percent, 2);
8106
- }), y(v(e), "_mouseMoveHandler", function(i, n) {
8159
+ }), _(v(e), "_mouseMoveHandler", function(i, n) {
8107
8160
  var s = v(e), l = s._state, u = s.pos, c = s.config, h = s.player;
8108
8161
  l.time < n.currentTime ? n.forward = !0 : n.forward = !1, l.time = n.currentTime, u.isDown && !u.moving && (u.moving = !0, c.isPauseMoving && h.pause(), e.triggerCallbacks("dragstart", n, i), e.emitUserAction("drag", "dragstart", n)), e.updateWidth(n.currentTime, n.seekTime, n.percent, 1), e.triggerCallbacks("dragmove", n, i), e._updateInnerFocus(n);
8109
- }), y(v(e), "onMouseDown", function(i) {
8110
- var n = v(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), g = l.rotateDeg === 90 ? d.clientY : d.clientX;
8162
+ }), _(v(e), "onMouseDown", function(i) {
8163
+ var n = v(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), p = l.rotateDeg === 90 ? d.clientY : d.clientX;
8111
8164
  if (!(l.isMini || c.closeMoveSeek || !h.allowSeekAfterEnded && l.ended)) {
8112
8165
  if (!l.duration && !l.isPlaying) {
8113
8166
  l.play();
8114
8167
  return;
8115
8168
  }
8116
- i.stopPropagation(), e.focus(), f.checkIsFunction(h.disableSwipeHandler) && h.disableSwipeHandler(), f.checkIsFunction(c.onMoveStart) && c.onMoveStart(), f.event(i), u.x = g, u.isDown = !0, u.moving = !1, s.prePlayTime = l.currentTime, l.focus({
8169
+ i.stopPropagation(), e.focus(), f.checkIsFunction(h.disableSwipeHandler) && h.disableSwipeHandler(), f.checkIsFunction(c.onMoveStart) && c.onMoveStart(), f.event(i), u.x = p, u.isDown = !0, u.moving = !1, s.prePlayTime = l.currentTime, l.focus({
8117
8170
  autoHide: !1
8118
8171
  }), e.isProgressMoving = !0, f.addClass(e.progressBtn, "active");
8119
- var p = e.computeTime(i, g);
8120
- p.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, p);
8172
+ var g = e.computeTime(i, p);
8173
+ g.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, g);
8121
8174
  var m = i.type;
8122
8175
  return m === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
8123
8176
  }
8124
- }), y(v(e), "onMouseUp", function(i) {
8177
+ }), _(v(e), "onMouseUp", function(i) {
8125
8178
  var n = v(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = n._state;
8126
8179
  i.stopPropagation(), i.preventDefault(), f.checkIsFunction(c.enableSwipeHandler) && c.enableSwipeHandler(), f.checkIsFunction(l.onMoveEnd) && l.onMoveEnd(), f.event(i), f.removeClass(e.progressBtn, "active");
8127
8180
  var d = e.computeTime(i, u.x);
8128
8181
  d.prePlayTime = h.prePlayTime, u.moving ? (e.triggerCallbacks("dragend", d, i), e.emitUserAction("drag", "dragend", d)) : (e.triggerCallbacks("click", d, i), e.emitUserAction("click", "click", d)), e._mouseUpHandlerHook(i, d), u.moving = !1, u.isDown = !1, u.x = 0, u.y = 0, u.isLocked = !0, h.prePlayTime = 0, h.time = 0;
8129
- var g = i.type;
8130
- g === "touchend" || g === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(v(e), function() {
8182
+ var p = i.type;
8183
+ p === "touchend" || p === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(v(e), function() {
8131
8184
  e.resetSeekState();
8132
8185
  }, 1), s.focus();
8133
- }), y(v(e), "onMouseMove", function(i) {
8186
+ }), _(v(e), "onMouseMove", function(i) {
8134
8187
  var n = v(e), s = n._state, l = n.pos, u = n.player, c = n.config;
8135
8188
  f.checkTouchSupport() && i.preventDefault(), f.event(i);
8136
- var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX, g = Math.abs(l.x - d);
8137
- if (!(l.moving && g < c.miniMoveStep || !l.moving && g < c.miniStartStep)) {
8189
+ var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX, p = Math.abs(l.x - d);
8190
+ if (!(l.moving && p < c.miniMoveStep || !l.moving && p < c.miniStartStep)) {
8138
8191
  l.x = d;
8139
- var p = e.computeTime(i, d);
8140
- p.prePlayTime = s.prePlayTime, e._mouseMoveHandlerHook(i, p);
8192
+ var g = e.computeTime(i, d);
8193
+ g.prePlayTime = s.prePlayTime, e._mouseMoveHandlerHook(i, g);
8141
8194
  }
8142
- }), y(v(e), "onMouseOut", function(i) {
8195
+ }), _(v(e), "onMouseOut", function(i) {
8143
8196
  e.triggerCallbacks("mouseout", null, i);
8144
- }), y(v(e), "onMouseOver", function(i) {
8197
+ }), _(v(e), "onMouseOver", function(i) {
8145
8198
  e.triggerCallbacks("mouseover", null, i);
8146
- }), y(v(e), "onMouseEnter", function(i) {
8199
+ }), _(v(e), "onMouseEnter", function(i) {
8147
8200
  var n = v(e), s = n.player, l = n.pos;
8148
8201
  if (!(l.isDown || l.isEnter || s.isMini || !s.config.allowSeekAfterEnded && s.ended)) {
8149
8202
  l.isEnter = !0, e.bind("mousemove", e.onMoveOnly), e.bind("mouseleave", e.onMouseLeave), f.event(i);
8150
8203
  var u = f.getEventPos(i, s.zoom), c = s.rotateDeg === 90 ? u.clientY : u.clientX, h = e.computeTime(i, c);
8151
8204
  e.triggerCallbacks("mouseenter", h, i), e.focus();
8152
8205
  }
8153
- }), y(v(e), "onMouseLeave", function(i) {
8206
+ }), _(v(e), "onMouseLeave", function(i) {
8154
8207
  e.triggerCallbacks("mouseleave", null, i), e.unlock(), e._updateInnerFocus(null);
8155
- }), y(v(e), "onVideoResize", function() {
8208
+ }), _(v(e), "onVideoResize", function() {
8156
8209
  var i = e.pos, n = i.x, s = i.isDown, l = i.isEnter;
8157
8210
  if (l && !s) {
8158
8211
  var u = e.computeTime(null, n);
@@ -8239,11 +8292,11 @@ var Io = /* @__PURE__ */ function(a) {
8239
8292
  fragAutoFocus: s,
8240
8293
  fragClass: l,
8241
8294
  style: this.playerConfig.commonStyle || {}
8242
- }), O.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Te, function() {
8295
+ }), F.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Ee, function() {
8243
8296
  e.onMouseLeave();
8244
- }), this.on(ie, function() {
8297
+ }), this.on(te, function() {
8245
8298
  e.onTimeupdate();
8246
- }), this.on(me, function() {
8299
+ }), this.on(ye, function() {
8247
8300
  e.onTimeupdate(), e.onCacheUpdate();
8248
8301
  }), this.on(Zi, function() {
8249
8302
  e.onCacheUpdate();
@@ -8251,7 +8304,7 @@ var Io = /* @__PURE__ */ function(a) {
8251
8304
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
8252
8305
  }), this.on(Oe, function() {
8253
8306
  e.onReset();
8254
- }), this.on(we, function() {
8307
+ }), this.on(be, function() {
8255
8308
  e.onVideoResize();
8256
8309
  }), this.bindDomEvents(), this.initCustomStyle();
8257
8310
  }
@@ -8350,20 +8403,20 @@ var Io = /* @__PURE__ */ function(a) {
8350
8403
  }, {
8351
8404
  key: "computeTime",
8352
8405
  value: function(e, i) {
8353
- var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, g, p = i;
8354
- n.rotateDeg === 90 ? (d = u, g = c) : (d = l, g = h);
8355
- var m = p - g;
8406
+ var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, p, g = i;
8407
+ n.rotateDeg === 90 ? (d = u, p = c) : (d = l, p = h);
8408
+ var m = g - p;
8356
8409
  m = m > d ? d : m < 0 ? 0 : m;
8357
- var _ = m / d;
8358
- _ = _ < 0 ? 0 : _ > 1 ? 1 : _;
8359
- var w = parseInt(_ * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(w, n.timeSegments);
8410
+ var y = m / d;
8411
+ y = y < 0 ? 0 : y > 1 ? 1 : y;
8412
+ var k = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(k, n.timeSegments);
8360
8413
  return {
8361
- percent: _,
8362
- currentTime: w,
8414
+ percent: y,
8415
+ currentTime: k,
8363
8416
  seekTime: b,
8364
8417
  offset: m,
8365
8418
  width: d,
8366
- left: g,
8419
+ left: p,
8367
8420
  e
8368
8421
  };
8369
8422
  }
@@ -8464,7 +8517,7 @@ var Io = /* @__PURE__ */ function(a) {
8464
8517
  key: "defaultConfig",
8465
8518
  get: function() {
8466
8519
  return {
8467
- position: V.CONTROLS_CENTER,
8520
+ position: j.CONTROLS_CENTER,
8468
8521
  index: 0,
8469
8522
  disable: !1,
8470
8523
  isDragingSeek: !0,
@@ -8492,7 +8545,7 @@ var Io = /* @__PURE__ */ function(a) {
8492
8545
  return Mi;
8493
8546
  }
8494
8547
  }]), r;
8495
- }(U), Fe = /* @__PURE__ */ function(a) {
8548
+ }(z), Fe = /* @__PURE__ */ function(a) {
8496
8549
  x(r, a);
8497
8550
  var o = P(r);
8498
8551
  function r() {
@@ -8500,11 +8553,11 @@ var Io = /* @__PURE__ */ function(a) {
8500
8553
  T(this, r);
8501
8554
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
8502
8555
  i[n] = arguments[n];
8503
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onMouseenter", function(s) {
8556
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onMouseenter", function(s) {
8504
8557
  t.emit("icon_mouseenter", {
8505
8558
  pluginName: t.pluginName
8506
8559
  });
8507
- }), y(v(t), "_onMouseLeave", function(s) {
8560
+ }), _(v(t), "_onMouseLeave", function(s) {
8508
8561
  t.emit("icon_mouseleave", {
8509
8562
  pluginName: t.pluginName
8510
8563
  });
@@ -8521,7 +8574,7 @@ var Io = /* @__PURE__ */ function(a) {
8521
8574
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
8522
8575
  }
8523
8576
  }]), r;
8524
- }(U), Ro = /* @__PURE__ */ function(a) {
8577
+ }(z), Ro = /* @__PURE__ */ function(a) {
8525
8578
  x(r, a);
8526
8579
  var o = P(r);
8527
8580
  function r() {
@@ -8531,11 +8584,11 @@ var Io = /* @__PURE__ */ function(a) {
8531
8584
  key: "afterCreate",
8532
8585
  value: function() {
8533
8586
  var e = this;
8534
- A(I(r.prototype), "afterCreate", this).call(this);
8587
+ D(A(r.prototype), "afterCreate", this).call(this);
8535
8588
  var i = this.player, n = this.config;
8536
8589
  n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, tt, Oe], function() {
8537
8590
  e.animate(i.paused);
8538
- }), this.on(ne, function() {
8591
+ }), this.on(ie, function() {
8539
8592
  e.animate(i.paused);
8540
8593
  }), this.animate(!0));
8541
8594
  }
@@ -8581,7 +8634,7 @@ var Io = /* @__PURE__ */ function(a) {
8581
8634
  }, {
8582
8635
  key: "destroy",
8583
8636
  value: function() {
8584
- A(I(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
8637
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
8585
8638
  }
8586
8639
  }, {
8587
8640
  key: "render",
@@ -8590,7 +8643,7 @@ var Io = /* @__PURE__ */ function(a) {
8590
8643
  return `<xg-icon class="xgplayer-play">
8591
8644
  <div class="xgplayer-icon">
8592
8645
  </div>
8593
- `.concat(Ee(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
8646
+ `.concat(Se(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
8594
8647
  </xg-icon>`);
8595
8648
  }
8596
8649
  }], [{
@@ -8602,7 +8655,7 @@ var Io = /* @__PURE__ */ function(a) {
8602
8655
  key: "defaultConfig",
8603
8656
  get: function() {
8604
8657
  return {
8605
- position: V.CONTROLS_LEFT,
8658
+ position: j.CONTROLS_LEFT,
8606
8659
  index: 0,
8607
8660
  disable: !1
8608
8661
  };
@@ -8671,12 +8724,12 @@ var Fo = /* @__PURE__ */ function(a) {
8671
8724
  key: "defaultConfig",
8672
8725
  get: function() {
8673
8726
  return {
8674
- position: V.ROOT_TOP,
8727
+ position: j.ROOT_TOP,
8675
8728
  index: 0
8676
8729
  };
8677
8730
  }
8678
8731
  }]), r;
8679
- }(U);
8732
+ }(z);
8680
8733
  function Mo() {
8681
8734
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8682
8735
  <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>
@@ -8697,7 +8750,7 @@ var Bo = /* @__PURE__ */ function(a) {
8697
8750
  T(this, r);
8698
8751
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
8699
8752
  i[n] = arguments[n];
8700
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onOrientationChange", function(s) {
8753
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onOrientationChange", function(s) {
8701
8754
  t.player.fullscreen && t.config.rotateFullscreen && (window.orientation === 90 || window.orientation === -90 ? t.player.setRotateDeg(0) : t.player.setRotateDeg(90));
8702
8755
  }), t;
8703
8756
  }
@@ -8705,7 +8758,7 @@ var Bo = /* @__PURE__ */ function(a) {
8705
8758
  key: "afterCreate",
8706
8759
  value: function() {
8707
8760
  var e = this;
8708
- A(I(r.prototype), "afterCreate", this).call(this);
8761
+ D(A(r.prototype), "afterCreate", this).call(this);
8709
8762
  var i = this.config, n = this.playerConfig;
8710
8763
  if (!i.disable) {
8711
8764
  i.target && (this.playerConfig.fullscreenTarget = this.config.target);
@@ -8732,7 +8785,7 @@ var Bo = /* @__PURE__ */ function(a) {
8732
8785
  }
8733
8786
  }
8734
8787
  }
8735
- })), O.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
8788
+ })), F.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
8736
8789
  }
8737
8790
  }
8738
8791
  }, {
@@ -8752,7 +8805,7 @@ var Bo = /* @__PURE__ */ function(a) {
8752
8805
  }, {
8753
8806
  key: "destroy",
8754
8807
  value: function() {
8755
- A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.handleFullscreen), O.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
8808
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", F.device === "mobile" ? "touchend" : "click", this.handleFullscreen), F.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
8756
8809
  }
8757
8810
  }, {
8758
8811
  key: "initIcons",
@@ -8781,7 +8834,7 @@ var Bo = /* @__PURE__ */ function(a) {
8781
8834
  return `<xg-icon class="xgplayer-fullscreen">
8782
8835
  <div class="xgplayer-icon">
8783
8836
  </div>
8784
- `.concat(Ee(this, e, this.playerConfig.isHideTips), `
8837
+ `.concat(Se(this, e, this.playerConfig.isHideTips), `
8785
8838
  </xg-icon>`);
8786
8839
  }
8787
8840
  }
@@ -8812,7 +8865,7 @@ var Bo = /* @__PURE__ */ function(a) {
8812
8865
  key: "defaultConfig",
8813
8866
  get: function() {
8814
8867
  return {
8815
- position: V.CONTROLS_RIGHT,
8868
+ position: j.CONTROLS_RIGHT,
8816
8869
  index: 0,
8817
8870
  useCssFullscreen: !1,
8818
8871
  rotateFullscreen: !1,
@@ -8853,7 +8906,7 @@ var Bo = /* @__PURE__ */ function(a) {
8853
8906
  key: "afterCreate",
8854
8907
  value: function() {
8855
8908
  var e = this, i = this.player.controls.config.mode;
8856
- this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Te, me, ie], function(n) {
8909
+ this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ee, ye, te], function(n) {
8857
8910
  n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
8858
8911
  }), this.on(Re, function() {
8859
8912
  e.onTimeUpdate(!0);
@@ -8941,7 +8994,7 @@ var Bo = /* @__PURE__ */ function(a) {
8941
8994
  var e = this, i = this.player, n = function() {
8942
8995
  e.isActiving = !1;
8943
8996
  };
8944
- this.off(me, n), i.isSeeking && i.media.seeking ? this.once(me, n) : this.isActiving = !1;
8997
+ this.off(ye, n), i.isSeeking && i.media.seeking ? this.once(ye, n) : this.isActiving = !1;
8945
8998
  }
8946
8999
  }, {
8947
9000
  key: "destroy",
@@ -8969,13 +9022,13 @@ var Bo = /* @__PURE__ */ function(a) {
8969
9022
  key: "defaultConfig",
8970
9023
  get: function() {
8971
9024
  return {
8972
- position: V.CONTROLS_LEFT,
9025
+ position: j.CONTROLS_LEFT,
8973
9026
  index: 2,
8974
9027
  disable: !1
8975
9028
  };
8976
9029
  }
8977
9030
  }]), r;
8978
- }(U), Uo = /* @__PURE__ */ function(a) {
9031
+ }(z), Uo = /* @__PURE__ */ function(a) {
8979
9032
  x(r, a);
8980
9033
  var o = P(r);
8981
9034
  function r() {
@@ -8983,20 +9036,20 @@ var Bo = /* @__PURE__ */ function(a) {
8983
9036
  T(this, r);
8984
9037
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
8985
9038
  i[n] = arguments[n];
8986
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onDurationChange", function() {
9039
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onDurationChange", function() {
8987
9040
  t.updateSegments();
8988
9041
  var s = t.player, l = s.currentTime, u = s.timeSegments;
8989
9042
  if (t._checkIfEnabled(u)) {
8990
9043
  var c = f.getIndexByTime(l, u), h = f.getOffsetCurrentTime(l, u, c);
8991
9044
  t.player.offsetCurrentTime = h, t.changeIndex(c, u);
8992
9045
  }
8993
- }), y(v(t), "_onLoadedData", function() {
9046
+ }), _(v(t), "_onLoadedData", function() {
8994
9047
  var s = t.player.timeSegments;
8995
9048
  if (t._checkIfEnabled(s)) {
8996
9049
  var l = f.getOffsetCurrentTime(0, s);
8997
9050
  t.player.offsetCurrentTime = l, t.changeIndex(0, s), t.curPos.start > 0 && (t.player.currentTime = t.curPos.start);
8998
9051
  }
8999
- }), y(v(t), "_onTimeupdate", function() {
9052
+ }), _(v(t), "_onTimeupdate", function() {
9000
9053
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9001
9054
  if (t._checkIfEnabled(u)) {
9002
9055
  var c = u.length;
@@ -9005,11 +9058,11 @@ var Bo = /* @__PURE__ */ function(a) {
9005
9058
  h !== t.curIndex && t.changeIndex(h, u);
9006
9059
  var d = f.getOffsetCurrentTime(l, u, h);
9007
9060
  if (t.player.offsetCurrentTime = d, !!t.curPos) {
9008
- var g = t.curPos, p = g.start, m = g.end;
9009
- l < p ? t.player.currentTime = p : l > m && h >= c - 1 && t.player.pause();
9061
+ var p = t.curPos, g = p.start, m = p.end;
9062
+ l < g ? t.player.currentTime = g : l > m && h >= c - 1 && t.player.pause();
9010
9063
  }
9011
9064
  }
9012
- }), y(v(t), "_onSeeking", function() {
9065
+ }), _(v(t), "_onSeeking", function() {
9013
9066
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9014
9067
  if (t._checkIfEnabled(u))
9015
9068
  if (l < u[0].start)
@@ -9023,7 +9076,7 @@ var Bo = /* @__PURE__ */ function(a) {
9023
9076
  h >= 0 && (t.player.currentTime = h);
9024
9077
  }
9025
9078
  }
9026
- }), y(v(t), "_onPlay", function() {
9079
+ }), _(v(t), "_onPlay", function() {
9027
9080
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9028
9081
  t._checkIfEnabled(u) && l >= u[u.length - 1].end && (t.player.currentTime = u[0].start);
9029
9082
  }), t;
@@ -9031,7 +9084,7 @@ var Bo = /* @__PURE__ */ function(a) {
9031
9084
  return E(r, [{
9032
9085
  key: "afterCreate",
9033
9086
  value: function() {
9034
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Te, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(_t, this._onSeeking), this.on(ne, this._onPlay);
9087
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ee, this._onDurationChange), this.on(_e, this._onLoadedData), this.on(te, this._onTimeupdate), this.on(_t, this._onSeeking), this.on(ie, this._onPlay);
9035
9088
  }
9036
9089
  }, {
9037
9090
  key: "setConfig",
@@ -9083,8 +9136,8 @@ var Bo = /* @__PURE__ */ function(a) {
9083
9136
  return l;
9084
9137
  var d = e - i;
9085
9138
  if (d < 0 && e < c) {
9086
- var g = i > c ? i - c : 0;
9087
- return l = n - 1 >= 0 ? s[n - 1].end + d + g : 0, l;
9139
+ var p = i > c ? i - c : 0;
9140
+ return l = n - 1 >= 0 ? s[n - 1].end + d + p : 0, l;
9088
9141
  }
9089
9142
  return -1;
9090
9143
  }
@@ -9112,7 +9165,7 @@ var Bo = /* @__PURE__ */ function(a) {
9112
9165
  };
9113
9166
  }
9114
9167
  }]), r;
9115
- }(be);
9168
+ }(Te);
9116
9169
  function zo() {
9117
9170
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9118
9171
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
@@ -9142,35 +9195,35 @@ var Wo = /* @__PURE__ */ function(a) {
9142
9195
  T(this, r);
9143
9196
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
9144
9197
  i[n] = arguments[n];
9145
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onBarMousedown", function(s) {
9198
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onBarMousedown", function(s) {
9146
9199
  var l = v(t), u = l.player, c = t.find(".xgplayer-bar");
9147
9200
  f.event(s);
9148
- var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom), g = h.height - (d.clientY - h.top);
9149
- if (d.h = g, d.barH = h.height, t.pos = d, !(g < -2))
9150
- return t.updateVolumePos(g, s), document.addEventListener("mouseup", t.onBarMouseUp), t._d.isStart = !0, !1;
9151
- }), y(v(t), "onBarMouseMove", function(s) {
9201
+ var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom), p = h.height - (d.clientY - h.top);
9202
+ if (d.h = p, d.barH = h.height, t.pos = d, !(p < -2))
9203
+ return t.updateVolumePos(p, s), document.addEventListener("mouseup", t.onBarMouseUp), t._d.isStart = !0, !1;
9204
+ }), _(v(t), "onBarMouseMove", function(s) {
9152
9205
  var l = v(t), u = l._d;
9153
9206
  if (u.isStart) {
9154
9207
  var c = v(t), h = c.pos, d = c.player;
9155
9208
  s.preventDefault(), s.stopPropagation(), f.event(s);
9156
- var g = f.getEventPos(s, d.zoom);
9209
+ var p = f.getEventPos(s, d.zoom);
9157
9210
  u.isMoving = !0;
9158
- var p = h.h - g.clientY + h.clientY;
9159
- p > h.barH || t.updateVolumePos(p, s);
9211
+ var g = h.h - p.clientY + h.clientY;
9212
+ g > h.barH || t.updateVolumePos(g, s);
9160
9213
  }
9161
- }), y(v(t), "onBarMouseUp", function(s) {
9214
+ }), _(v(t), "onBarMouseUp", function(s) {
9162
9215
  f.event(s), document.removeEventListener("mouseup", t.onBarMouseUp);
9163
9216
  var l = v(t), u = l._d;
9164
9217
  u.isStart = !1, u.isMoving = !1;
9165
- }), y(v(t), "onMouseenter", function(s) {
9218
+ }), _(v(t), "onMouseenter", function(s) {
9166
9219
  t._d.isActive = !0, t.focus(), t.emit("icon_mouseenter", {
9167
9220
  pluginName: t.pluginName
9168
9221
  });
9169
- }), y(v(t), "onMouseleave", function(s) {
9222
+ }), _(v(t), "onMouseleave", function(s) {
9170
9223
  t._d.isActive = !1, t.unFocus(100, !1, s), t.emit("icon_mouseleave", {
9171
9224
  pluginName: t.pluginName
9172
9225
  });
9173
- }), y(v(t), "onVolumeChange", function(s) {
9226
+ }), _(v(t), "onVolumeChange", function(s) {
9174
9227
  if (t.player) {
9175
9228
  var l = t.player, u = l.muted, c = l.volume;
9176
9229
  t._d.isMoving || (t.find(".xgplayer-drag").style.height = u || c === 0 ? "4px" : "".concat(c * 100, "%"), t.config.showValueLabel && t.updateVolumeValue()), t.animate(u, c);
@@ -9212,7 +9265,7 @@ var Wo = /* @__PURE__ */ function(a) {
9212
9265
  pre: function(u) {
9213
9266
  u.preventDefault(), u.stopPropagation();
9214
9267
  }
9215
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), O.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Xi, this.onVolumeChange), this.once(ye, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9268
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), F.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Xi, this.onVolumeChange), this.once(_e, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9216
9269
  }
9217
9270
  }
9218
9271
  }, {
@@ -9290,7 +9343,7 @@ var Wo = /* @__PURE__ */ function(a) {
9290
9343
  }, {
9291
9344
  key: "destroy",
9292
9345
  value: function() {
9293
- this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
9346
+ this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", F.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
9294
9347
  }
9295
9348
  }, {
9296
9349
  key: "render",
@@ -9319,7 +9372,7 @@ var Wo = /* @__PURE__ */ function(a) {
9319
9372
  key: "defaultConfig",
9320
9373
  get: function() {
9321
9374
  return {
9322
- position: V.CONTROLS_RIGHT,
9375
+ position: j.CONTROLS_RIGHT,
9323
9376
  index: 1,
9324
9377
  disable: !1,
9325
9378
  showValueLabel: !1,
@@ -9328,7 +9381,7 @@ var Wo = /* @__PURE__ */ function(a) {
9328
9381
  };
9329
9382
  }
9330
9383
  }]), r;
9331
- }(U);
9384
+ }(z);
9332
9385
  function Go() {
9333
9386
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
9334
9387
  <g clip-path="url(#clip0)">
@@ -9355,7 +9408,7 @@ var Ko = /* @__PURE__ */ function(a) {
9355
9408
  value: function() {
9356
9409
  var e = this;
9357
9410
  if (!this.config.disable) {
9358
- A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(we, function() {
9411
+ D(A(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(be, function() {
9359
9412
  e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
9360
9413
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
9361
9414
  }, 100);
@@ -9367,7 +9420,7 @@ var Ko = /* @__PURE__ */ function(a) {
9367
9420
  }, {
9368
9421
  key: "destroy",
9369
9422
  value: function() {
9370
- A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
9423
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
9371
9424
  }
9372
9425
  }, {
9373
9426
  key: "onBtnClick",
@@ -9381,17 +9434,17 @@ var Ko = /* @__PURE__ */ function(a) {
9381
9434
  this.player.videoRotateDeg = e;
9382
9435
  return;
9383
9436
  }
9384
- var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, _ = 0, w = 0;
9385
- (e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2, w = -(d - g) / 2);
9386
- var b = "translate(".concat(_, "px,").concat(w, "px) rotate(").concat(e, "turn)"), C = {
9437
+ var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, p = c && i ? c.offsetHeight : u.offsetHeight, g = s, m = l, y = 0, k = 0;
9438
+ (e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), m = "".concat(d, "px"), y = -(p - d) / 2, k = -(d - p) / 2);
9439
+ var b = "translate(".concat(y, "px,").concat(k, "px) rotate(").concat(e, "turn)"), w = {
9387
9440
  transformOrigin: "center center",
9388
9441
  transform: b,
9389
9442
  webKitTransform: b,
9390
9443
  height: m,
9391
- width: p
9392
- }, F = i ? h : u, R = i ? n.getPlugin("poster") : null;
9393
- Object.keys(C).map(function(z) {
9394
- F.style[z] = C[z], R && R.root && (R.root.style[z] = C[z]);
9444
+ width: g
9445
+ }, I = i ? h : u, O = i ? n.getPlugin("poster") : null;
9446
+ Object.keys(w).map(function(H) {
9447
+ I.style[H] = w[H], O && O.root && (O.root.style[H] = w[H]);
9395
9448
  });
9396
9449
  }
9397
9450
  }, {
@@ -9417,7 +9470,7 @@ var Ko = /* @__PURE__ */ function(a) {
9417
9470
  <xg-icon class="xgplayer-rotate">
9418
9471
  <div class="xgplayer-icon">
9419
9472
  </div>
9420
- `.concat(Ee(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
9473
+ `.concat(Se(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
9421
9474
  </xg-icon>`);
9422
9475
  }
9423
9476
  }], [{
@@ -9429,7 +9482,7 @@ var Ko = /* @__PURE__ */ function(a) {
9429
9482
  key: "defaultConfig",
9430
9483
  get: function() {
9431
9484
  return {
9432
- position: V.CONTROLS_RIGHT,
9485
+ position: j.CONTROLS_RIGHT,
9433
9486
  index: 6,
9434
9487
  innerRotate: !0,
9435
9488
  clockwise: !1,
@@ -9468,7 +9521,7 @@ var Be = {
9468
9521
  T(this, r);
9469
9522
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
9470
9523
  i[n] = arguments[n];
9471
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "switchPIP", function(s) {
9524
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "switchPIP", function(s) {
9472
9525
  if (!t.isPIPAvailable())
9473
9526
  return !1;
9474
9527
  s.stopPropagation && s.stopPropagation(), t.isPip ? (t.exitPIP(), t.emitUserAction(s, "change_pip", {
@@ -9491,7 +9544,7 @@ var Be = {
9491
9544
  key: "afterCreate",
9492
9545
  value: function() {
9493
9546
  var e = this;
9494
- this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Be.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
9547
+ this.isPIPAvailable() && (D(A(r.prototype), "afterCreate", this).call(this), this.pMode = Be.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
9495
9548
  e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9496
9549
  }));
9497
9550
  }
@@ -9534,9 +9587,9 @@ var Be = {
9534
9587
  }, {
9535
9588
  key: "copyStyleIntoPiPWindow",
9536
9589
  value: function(e) {
9537
- var i = ae(document.styleSheets).map(function(s) {
9590
+ var i = le(document.styleSheets).map(function(s) {
9538
9591
  try {
9539
- return ae(s.cssRules).map(function(u) {
9592
+ return le(s.cssRules).map(function(u) {
9540
9593
  return u.cssText;
9541
9594
  }).join("");
9542
9595
  } catch {
@@ -9564,20 +9617,20 @@ var Be = {
9564
9617
  u.width = c.width, u.height = c.height;
9565
9618
  }
9566
9619
  documentPictureInPicture.requestWindow(u).then(function(h) {
9567
- var d = s.docPiPNode, g = s.docPiPStyle;
9620
+ var d = s.docPiPNode, p = s.docPiPStyle;
9568
9621
  e.enterPIPCallback();
9569
- var p = d || i.root, m = p.parentElement, _ = p.previousSibling, w = p.nextSibling;
9622
+ var g = d || i.root, m = g.parentElement, y = g.previousSibling, k = g.nextSibling;
9570
9623
  e.copyStyleIntoPiPWindow(h);
9571
9624
  var b = document.createElement("style");
9572
- if (b.append("body{padding:0; margin:0;}"), g) {
9573
- var C = "";
9574
- typeof g == "string" ? C = g : typeof g == "function" && (C = g.call(s)), C && b.append(C);
9625
+ if (b.append("body{padding:0; margin:0;}"), p) {
9626
+ var w = "";
9627
+ typeof p == "string" ? w = p : typeof p == "function" && (w = p.call(s)), w && b.append(w);
9575
9628
  } else
9576
- p === i.root && b.append(`
9629
+ g === i.root && b.append(`
9577
9630
  .xgplayer{width: 100%!important; height: 100%!important;}
9578
9631
  `);
9579
- h.document.head.append(b), h.document.body.append(p), h.addEventListener("pagehide", function(F) {
9580
- m && (w ? m.insertBefore(p, w) : _ ? m.insertBefore(p, _.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
9632
+ h.document.head.append(b), h.document.body.append(g), h.addEventListener("pagehide", function(I) {
9633
+ m && (k ? m.insertBefore(g, k) : y ? m.insertBefore(g, y.nextSibling) : m.appendChild(g)), e.leavePIPCallback();
9581
9634
  }, {
9582
9635
  once: !0
9583
9636
  });
@@ -9623,7 +9676,7 @@ var Be = {
9623
9676
  }, {
9624
9677
  key: "destroy",
9625
9678
  value: function() {
9626
- A(I(r.prototype), "destroy", this).call(this);
9679
+ D(A(r.prototype), "destroy", this).call(this);
9627
9680
  var e = this.player;
9628
9681
  e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
9629
9682
  }
@@ -9634,7 +9687,7 @@ var Be = {
9634
9687
  return `<xg-icon class="xgplayer-pip">
9635
9688
  <div class="xgplayer-icon xg-icon-disable">
9636
9689
  </div>
9637
- `.concat(Ee(this, "PIP", this.playerConfig.isHideTips), `
9690
+ `.concat(Se(this, "PIP", this.playerConfig.isHideTips), `
9638
9691
  </xg-icon>`);
9639
9692
  }
9640
9693
  }], [{
@@ -9646,7 +9699,7 @@ var Be = {
9646
9699
  key: "defaultConfig",
9647
9700
  get: function() {
9648
9701
  return {
9649
- position: V.CONTROLS_RIGHT,
9702
+ position: j.CONTROLS_RIGHT,
9650
9703
  index: 6,
9651
9704
  showIcon: !1,
9652
9705
  preferDocument: !1,
@@ -9674,7 +9727,7 @@ var Zo = /* @__PURE__ */ function(a) {
9674
9727
  var o = P(r);
9675
9728
  function r(t) {
9676
9729
  var e;
9677
- return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
9730
+ return T(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
9678
9731
  var n = v(e), s = n.player;
9679
9732
  i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(ht, e.idx + 1)) : (e.nextHandler(), s.emit(ht));
9680
9733
  }), e.idx = -1, e;
@@ -9695,7 +9748,7 @@ var Zo = /* @__PURE__ */ function(a) {
9695
9748
  key: "initEvents",
9696
9749
  value: function() {
9697
9750
  this.nextHandler = this.hook("nextClick", this.changeSrc);
9698
- var e = O.device === "mobile" ? "touchend" : "click";
9751
+ var e = F.device === "mobile" ? "touchend" : "click";
9699
9752
  this.bind(e, this.playNext), this.show();
9700
9753
  }
9701
9754
  }, {
@@ -9717,7 +9770,7 @@ var Zo = /* @__PURE__ */ function(a) {
9717
9770
  <xg-icon class="xgplayer-playnext">
9718
9771
  <div class="xgplayer-icon">
9719
9772
  </div>
9720
- `.concat(Ee(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9773
+ `.concat(Se(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9721
9774
  </xg-icon>
9722
9775
  `);
9723
9776
  }
@@ -9730,81 +9783,81 @@ var Zo = /* @__PURE__ */ function(a) {
9730
9783
  key: "defaultConfig",
9731
9784
  get: function() {
9732
9785
  return {
9733
- position: V.CONTROLS_LEFT,
9786
+ position: j.CONTROLS_LEFT,
9734
9787
  index: 1,
9735
9788
  url: null,
9736
9789
  urlList: []
9737
9790
  };
9738
9791
  }
9739
9792
  }]), r;
9740
- }(U), yn = { exports: {} };
9793
+ }(z), yn = { exports: {} };
9741
9794
  (function(a, o) {
9742
9795
  (function(r, t) {
9743
9796
  a.exports = t();
9744
9797
  })(is, function() {
9745
9798
  return function r(t, e, i) {
9746
- var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(D) {
9747
- return String(D);
9748
- }, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, _;
9749
- if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
9750
- var w = new XMLHttpRequest();
9751
- return w.open("GET", c, !0), w.responseType = "blob", w.onload = function(D) {
9752
- r(D.target.response, p, s);
9799
+ var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(R) {
9800
+ return String(R);
9801
+ }, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download", m, y;
9802
+ if (p = p.call ? p.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (g = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
9803
+ var k = new XMLHttpRequest();
9804
+ return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(R) {
9805
+ r(R.target.response, g, s);
9753
9806
  }, setTimeout(function() {
9754
- w.send();
9755
- }, 0), w;
9807
+ k.send();
9808
+ }, 0), k;
9756
9809
  }
9757
9810
  if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
9758
- if (u.length > 1024 * 1024 * 1.999 && g !== d)
9759
- u = R(u), l = u.type || s;
9811
+ if (u.length > 1024 * 1024 * 1.999 && p !== d)
9812
+ u = O(u), l = u.type || s;
9760
9813
  else
9761
9814
  return navigator.msSaveBlob ? (
9762
9815
  // IE10 can't do a[download], only Blobs:
9763
- navigator.msSaveBlob(R(u), p)
9764
- ) : z(u);
9816
+ navigator.msSaveBlob(O(u), g)
9817
+ ) : H(u);
9765
9818
  else if (/([\x80-\xff])/.test(u)) {
9766
- var b = 0, C = new Uint8Array(u.length), F = C.length;
9767
- for (b; b < F; ++b)
9768
- C[b] = u.charCodeAt(b);
9769
- u = new g([C], { type: l });
9770
- }
9771
- m = u instanceof g ? u : new g([u], { type: l });
9772
- function R(D) {
9773
- var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, ee = H(q.pop()), re = ee.length, se = 0, Se = new Uint8Array(re);
9774
- for (se; se < re; ++se)
9775
- Se[se] = ee.charCodeAt(se);
9776
- return new g([Se], { type: G });
9777
- }
9778
- function z(D, q) {
9819
+ var b = 0, w = new Uint8Array(u.length), I = w.length;
9820
+ for (b; b < I; ++b)
9821
+ w[b] = u.charCodeAt(b);
9822
+ u = new p([w], { type: l });
9823
+ }
9824
+ m = u instanceof p ? u : new p([u], { type: l });
9825
+ function O(R) {
9826
+ var q = R.split(/[:;,]/), G = q[1], U = q[2] == "base64" ? atob : decodeURIComponent, Q = U(q.pop()), se = Q.length, oe = 0, xe = new Uint8Array(se);
9827
+ for (oe; oe < se; ++oe)
9828
+ xe[oe] = Q.charCodeAt(oe);
9829
+ return new p([xe], { type: G });
9830
+ }
9831
+ function H(R, q) {
9779
9832
  if ("download" in h)
9780
- return h.href = D, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
9833
+ return h.href = R, h.setAttribute("download", g), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
9781
9834
  h.click(), document.body.removeChild(h), q === !0 && setTimeout(function() {
9782
9835
  n.URL.revokeObjectURL(h.href);
9783
9836
  }, 250);
9784
9837
  }, 66), !0;
9785
9838
  if (/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))
9786
- return /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), window.open(D) || confirm(`Displaying New Document
9839
+ return /^data:/.test(R) && (R = "data:" + R.replace(/^data:([\w\/\-\+]+)/, s)), window.open(R) || confirm(`Displaying New Document
9787
9840
 
9788
- Use Save As... to download, then click back to return to this page.`) && (location.href = D), !0;
9841
+ Use Save As... to download, then click back to return to this page.`) && (location.href = R), !0;
9789
9842
  var G = document.createElement("iframe");
9790
- document.body.appendChild(G), !q && /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), G.src = D, setTimeout(function() {
9843
+ document.body.appendChild(G), !q && /^data:/.test(R) && (R = "data:" + R.replace(/^data:([\w\/\-\+]+)/, s)), G.src = R, setTimeout(function() {
9791
9844
  document.body.removeChild(G);
9792
9845
  }, 333);
9793
9846
  }
9794
9847
  if (navigator.msSaveBlob)
9795
- return navigator.msSaveBlob(m, p);
9848
+ return navigator.msSaveBlob(m, g);
9796
9849
  if (n.URL)
9797
- z(n.URL.createObjectURL(m), !0);
9850
+ H(n.URL.createObjectURL(m), !0);
9798
9851
  else {
9799
9852
  if (typeof m == "string" || m.constructor === d)
9800
9853
  try {
9801
- return z("data:" + l + ";base64," + n.btoa(m));
9854
+ return H("data:" + l + ";base64," + n.btoa(m));
9802
9855
  } catch {
9803
- return z("data:" + l + "," + encodeURIComponent(m));
9856
+ return H("data:" + l + "," + encodeURIComponent(m));
9804
9857
  }
9805
- _ = new FileReader(), _.onload = function(D) {
9806
- z(this.result);
9807
- }, _.readAsDataURL(m);
9858
+ y = new FileReader(), y.onload = function(R) {
9859
+ H(this.result);
9860
+ }, y.readAsDataURL(m);
9808
9861
  }
9809
9862
  return !0;
9810
9863
  };
@@ -9834,7 +9887,7 @@ var ta = /* @__PURE__ */ function(a) {
9834
9887
  var o = P(r);
9835
9888
  function r(t) {
9836
9889
  var e;
9837
- return T(this, r), e = o.call(this, t), y(v(e), "download", function(i) {
9890
+ return T(this, r), e = o.call(this, t), _(v(e), "download", function(i) {
9838
9891
  if (!e.isLock) {
9839
9892
  e.emitUserAction(i, "download");
9840
9893
  var n = e.playerConfig.url, s = "";
@@ -9849,7 +9902,7 @@ var ta = /* @__PURE__ */ function(a) {
9849
9902
  return E(r, [{
9850
9903
  key: "afterCreate",
9851
9904
  value: function() {
9852
- A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
9905
+ D(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
9853
9906
  pre: function(i) {
9854
9907
  i.preventDefault(), i.stopPropagation();
9855
9908
  }
@@ -9874,7 +9927,7 @@ var ta = /* @__PURE__ */ function(a) {
9874
9927
  }, {
9875
9928
  key: "destroy",
9876
9929
  value: function() {
9877
- A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
9930
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
9878
9931
  }
9879
9932
  }, {
9880
9933
  key: "render",
@@ -9883,7 +9936,7 @@ var ta = /* @__PURE__ */ function(a) {
9883
9936
  return `<xg-icon class="xgplayer-download">
9884
9937
  <div class="xgplayer-icon">
9885
9938
  </div>
9886
- `.concat(Ee(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9939
+ `.concat(Se(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9887
9940
  </xg-icon>`);
9888
9941
  }
9889
9942
  }], [{
@@ -9895,7 +9948,7 @@ var ta = /* @__PURE__ */ function(a) {
9895
9948
  key: "defaultConfig",
9896
9949
  get: function() {
9897
9950
  return {
9898
- position: V.CONTROLS_RIGHT,
9951
+ position: j.CONTROLS_RIGHT,
9899
9952
  index: 3,
9900
9953
  disable: !0
9901
9954
  };
@@ -9915,11 +9968,11 @@ var ta = /* @__PURE__ */ function(a) {
9915
9968
  }, {
9916
9969
  key: "afterCreate",
9917
9970
  value: function() {
9918
- A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
9971
+ D(A(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
9919
9972
  var e = this.config;
9920
9973
  this.initSize = function(i) {
9921
9974
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
9922
- }, this.once(we, this.initSize);
9975
+ }, this.once(be, this.initSize);
9923
9976
  }
9924
9977
  }, {
9925
9978
  key: "onPluginsReady",
@@ -9966,17 +10019,17 @@ var ta = /* @__PURE__ */ function(a) {
9966
10019
  quality: 0.92,
9967
10020
  type: "image/png"
9968
10021
  }, l = this.config, u = this.player, c = s.quality || l.quality, h = s.type || l.type;
9969
- return new Promise(function(d, g) {
9970
- var p = null, m;
10022
+ return new Promise(function(d, p) {
10023
+ var g = null, m;
9971
10024
  if (u.media.canvas)
9972
- p = u.media.canvas;
10025
+ g = u.media.canvas;
9973
10026
  else {
9974
- n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
9975
- var _ = u.media.videoWidth / u.media.videoHeight, w = p.width / p.height, b = 0, C = 0, F = u.media.videoWidth, R = u.media.videoHeight, z, D, q, G;
9976
- _ > w ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === w ? (q = p.width, G = p.height, z = 0, D = 0) : _ < w && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, C, F, R, z, D, q, G);
10027
+ n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas, m = n.canvasCtx;
10028
+ var y = u.media.videoWidth / u.media.videoHeight, k = g.width / g.height, b = 0, w = 0, I = u.media.videoWidth, O = u.media.videoHeight, H, R, q, G;
10029
+ y > k ? (q = g.width, G = g.width / y, H = 0, R = Math.round((g.height - G) / 2)) : y === k ? (q = g.width, G = g.height, H = 0, R = 0) : y < k && (q = g.height * y, G = g.height, H = Math.round((g.width - q) / 2), R = 0), m.drawImage(u.media, b, w, I, O, H, R, q, G);
9977
10030
  }
9978
- var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
9979
- H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
10031
+ var U = g.toDataURL(h, c).replace(h, "image/octet-stream");
10032
+ U = U.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(U);
9980
10033
  });
9981
10034
  }
9982
10035
  }, {
@@ -9989,7 +10042,7 @@ var ta = /* @__PURE__ */ function(a) {
9989
10042
  }, {
9990
10043
  key: "destroy",
9991
10044
  value: function() {
9992
- A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(we, this.initSize);
10045
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
9993
10046
  }
9994
10047
  }, {
9995
10048
  key: "render",
@@ -10013,7 +10066,7 @@ var ta = /* @__PURE__ */ function(a) {
10013
10066
  key: "defaultConfig",
10014
10067
  get: function() {
10015
10068
  return {
10016
- position: V.CONTROLS_RIGHT,
10069
+ position: j.CONTROLS_RIGHT,
10017
10070
  index: 5,
10018
10071
  quality: 0.92,
10019
10072
  type: "image/png",
@@ -10035,7 +10088,7 @@ var ta = /* @__PURE__ */ function(a) {
10035
10088
  maxHeight: r
10036
10089
  }), this.onItemClick = this.onItemClick.bind(this), this.renderItemList();
10037
10090
  var t = this.config.domEventType === "touch" ? "touchend" : "click";
10038
- this._delegates = U.delegate.call(this, this.root, "li", t, this.onItemClick);
10091
+ this._delegates = z.delegate.call(this, this.root, "li", t, this.onItemClick);
10039
10092
  }
10040
10093
  return E(a, [{
10041
10094
  key: "renderItemList",
@@ -10099,7 +10152,7 @@ var ta = /* @__PURE__ */ function(a) {
10099
10152
  }), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
10100
10153
  }
10101
10154
  }]), a;
10102
- }(), ce = {
10155
+ }(), fe = {
10103
10156
  SIDE: "side",
10104
10157
  MIDDLE: "middle",
10105
10158
  DEFAULT: "default"
@@ -10108,28 +10161,28 @@ var ta = /* @__PURE__ */ function(a) {
10108
10161
  HOVER: "hover"
10109
10162
  };
10110
10163
  function ra(a, o) {
10111
- return a === ce.SIDE ? o === V.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10164
+ return a === fe.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10112
10165
  }
10113
- var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10166
+ var Pe = F.device === "mobile", mt = /* @__PURE__ */ function(a) {
10114
10167
  x(r, a);
10115
10168
  var o = P(r);
10116
10169
  function r(t) {
10117
10170
  var e;
10118
- return T(this, r), e = o.call(this, t), y(v(e), "onEnter", function(i) {
10171
+ return T(this, r), e = o.call(this, t), _(v(e), "onEnter", function(i) {
10119
10172
  i.stopPropagation(), e.emit("icon_mouseenter", {
10120
10173
  pluginName: e.pluginName
10121
10174
  }), e.switchActiveState(i);
10122
- }), y(v(e), "switchActiveState", function(i) {
10175
+ }), _(v(e), "switchActiveState", function(i) {
10123
10176
  i.stopPropagation();
10124
10177
  var n = e.config.toggleMode;
10125
10178
  n === He.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10126
- }), y(v(e), "onLeave", function(i) {
10179
+ }), _(v(e), "onLeave", function(i) {
10127
10180
  i.stopPropagation(), e.emit("icon_mouseleave", {
10128
10181
  pluginName: e.pluginName
10129
- }), e.config.listType !== ce.SIDE && e.isActive && e.toggle(!1);
10130
- }), y(v(e), "onListEnter", function(i) {
10182
+ }), e.config.listType !== fe.SIDE && e.isActive && e.toggle(!1);
10183
+ }), _(v(e), "onListEnter", function(i) {
10131
10184
  e.enterType = 2;
10132
- }), y(v(e), "onListLeave", function(i) {
10185
+ }), _(v(e), "onListLeave", function(i) {
10133
10186
  e.enterType = 0, e.isActive && e.toggle(!1);
10134
10187
  }), e.isIcons = !1, e.isActive = !1, e.curValue = null, e.curIndex = 0, e;
10135
10188
  }
@@ -10142,13 +10195,13 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10142
10195
  key: "afterCreate",
10143
10196
  value: function() {
10144
10197
  var e = this, i = this.config;
10145
- this.initIcons(), xe = xe || this.domEventType === "touch", xe && O.device === "mobile" && i.listType === ce.DEFAULT && (i.listType = ce.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([we, ge], function() {
10198
+ this.initIcons(), Pe = Pe || this.domEventType === "touch", Pe && F.device === "mobile" && i.listType === fe.DEFAULT && (i.listType = fe.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([be, ge], function() {
10146
10199
  e._resizeList();
10147
10200
  }), this.once(ve, function() {
10148
10201
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
10149
- }), xe && this.on(Jt, function() {
10202
+ }), Pe && this.on(Jt, function() {
10150
10203
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
10151
- }), xe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
10204
+ }), Pe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
10152
10205
  }
10153
10206
  }, {
10154
10207
  key: "initIcons",
@@ -10186,7 +10239,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10186
10239
  value: function(e) {
10187
10240
  if (!(e === this.isActive || this.config.disable)) {
10188
10241
  var i = this.player.controls, n = this.config.listType;
10189
- e ? (n === ce.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === ce.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
10242
+ e ? (n === fe.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === fe.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
10190
10243
  }
10191
10244
  }
10192
10245
  }, {
@@ -10196,7 +10249,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10196
10249
  var n = this.config, s = n.listType, l = n.list;
10197
10250
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
10198
10251
  var u = this.config.isItemClickHide;
10199
- (u || xe || s === ce.SIDE) && this.toggle(!1);
10252
+ (u || Pe || s === fe.SIDE) && this.toggle(!1);
10200
10253
  }
10201
10254
  }, {
10202
10255
  key: "onIconClick",
@@ -10222,16 +10275,16 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10222
10275
  config: {
10223
10276
  data: e || [],
10224
10277
  className: ra(s.listType, s.position),
10225
- onItemClick: function(m, _) {
10226
- n.onItemClick(m, _);
10278
+ onItemClick: function(m, y) {
10279
+ n.onItemClick(m, y);
10227
10280
  },
10228
- domEventType: xe ? "touch" : "mouse"
10281
+ domEventType: Pe ? "touch" : "mouse"
10229
10282
  },
10230
- root: s.listType === ce.SIDE ? u.innerContainer || u.root : this.root
10283
+ root: s.listType === fe.SIDE ? u.innerContainer || u.root : this.root
10231
10284
  };
10232
10285
  if (this.config.isShowIcon) {
10233
- var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === ce.MIDDLE ? d - 50 : d;
10234
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new na(c), this.changeCurrentText(), this.show();
10286
+ var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === fe.MIDDLE ? d - 50 : d;
10287
+ p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new na(c), this.changeCurrentText(), this.show();
10235
10288
  }
10236
10289
  this._resizeList();
10237
10290
  }
@@ -10239,7 +10292,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10239
10292
  key: "_resizeList",
10240
10293
  value: function() {
10241
10294
  if (this.config.heightLimit) {
10242
- var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === ce.MIDDLE ? i - 50 : i;
10295
+ var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === fe.MIDDLE ? i - 50 : i;
10243
10296
  this.optionsList && this.optionsList.setStyle({
10244
10297
  maxHeight: "".concat(n, "px")
10245
10298
  });
@@ -10269,7 +10322,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10269
10322
  key: "defaultConfig",
10270
10323
  get: function() {
10271
10324
  return {
10272
- position: V.CONTROLS_RIGHT,
10325
+ position: j.CONTROLS_RIGHT,
10273
10326
  index: 100,
10274
10327
  list: [],
10275
10328
  listType: "default",
@@ -10282,7 +10335,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10282
10335
  };
10283
10336
  }
10284
10337
  }]), r;
10285
- }(U), sa = /* @__PURE__ */ function(a) {
10338
+ }(z), sa = /* @__PURE__ */ function(a) {
10286
10339
  x(r, a);
10287
10340
  var o = P(r);
10288
10341
  function r(t) {
@@ -10301,7 +10354,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10301
10354
  key: "afterCreate",
10302
10355
  value: function() {
10303
10356
  var e = this;
10304
- A(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10357
+ D(A(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10305
10358
  e.changeDefinitionList(i);
10306
10359
  }), this.on(ii, function(i) {
10307
10360
  e.renderItemList(e.config.list, i.to);
@@ -10337,7 +10390,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10337
10390
  });
10338
10391
  return (c.selected || c.definition && c.definition == s) && (d.selected = !0, l = h), d;
10339
10392
  });
10340
- A(I(r.prototype), "renderItemList", this).call(this, u, l);
10393
+ D(A(r.prototype), "renderItemList", this).call(this, u, l);
10341
10394
  }
10342
10395
  }, {
10343
10396
  key: "changeDefinitionList",
@@ -10355,7 +10408,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10355
10408
  key: "onItemClick",
10356
10409
  value: function(e, i) {
10357
10410
  var n = this.player.definitionList;
10358
- A(I(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
10411
+ D(A(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
10359
10412
  from: i.from,
10360
10413
  to: i.to
10361
10414
  });
@@ -10372,7 +10425,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10372
10425
  key: "defaultConfig",
10373
10426
  get: function() {
10374
10427
  return W(W({}, mt.defaultConfig), {}, {
10375
- position: V.CONTROLS_RIGHT,
10428
+ position: j.CONTROLS_RIGHT,
10376
10429
  index: 3,
10377
10430
  list: [],
10378
10431
  defaultDefinition: "",
@@ -10405,19 +10458,19 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10405
10458
  key: "afterCreate",
10406
10459
  value: function() {
10407
10460
  var e = this;
10408
- A(I(r.prototype), "afterCreate", this).call(this), this.on(qi, function() {
10461
+ D(A(r.prototype), "afterCreate", this).call(this), this.on(qi, function() {
10409
10462
  e.curValue !== e.player.playbackRate && e.renderItemList();
10410
10463
  }), this.renderItemList();
10411
10464
  }
10412
10465
  }, {
10413
10466
  key: "show",
10414
10467
  value: function(e) {
10415
- !this.config.list || this.config.list.length === 0 || A(I(r.prototype), "show", this).call(this);
10468
+ !this.config.list || this.config.list.length === 0 || D(A(r.prototype), "show", this).call(this);
10416
10469
  }
10417
10470
  }, {
10418
10471
  key: "onItemClick",
10419
10472
  value: function(e, i) {
10420
- A(I(r.prototype), "onItemClick", this).call(this, e, i);
10473
+ D(A(r.prototype), "onItemClick", this).call(this, e, i);
10421
10474
  var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
10422
10475
  if (!s || s === this.curValue)
10423
10476
  return !1;
@@ -10442,7 +10495,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10442
10495
  };
10443
10496
  return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
10444
10497
  });
10445
- A(I(r.prototype), "renderItemList", this).call(this, s, n);
10498
+ D(A(r.prototype), "renderItemList", this).call(this, s, n);
10446
10499
  }
10447
10500
  }, {
10448
10501
  key: "changeCurrentText",
@@ -10455,7 +10508,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10455
10508
  }, {
10456
10509
  key: "destroy",
10457
10510
  value: function() {
10458
- A(I(r.prototype), "destroy", this).call(this);
10511
+ D(A(r.prototype), "destroy", this).call(this);
10459
10512
  }
10460
10513
  }], [{
10461
10514
  key: "pluginName",
@@ -10466,7 +10519,7 @@ var xe = O.device === "mobile", mt = /* @__PURE__ */ function(a) {
10466
10519
  key: "defaultConfig",
10467
10520
  get: function() {
10468
10521
  return W(W({}, mt.defaultConfig), {}, {
10469
- position: V.CONTROLS_RIGHT,
10522
+ position: j.CONTROLS_RIGHT,
10470
10523
  index: 4,
10471
10524
  list: [2, 1.5, 1, 0.75, 0.5],
10472
10525
  className: "xgplayer-playbackrate",
@@ -10503,7 +10556,7 @@ var Ni = /* @__PURE__ */ function(a) {
10503
10556
  key: "afterCreate",
10504
10557
  value: function() {
10505
10558
  var e = this;
10506
- A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ct, function(i) {
10559
+ D(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ct, function(i) {
10507
10560
  e.animate(i);
10508
10561
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
10509
10562
  pre: function(n) {
@@ -10554,7 +10607,7 @@ var Ni = /* @__PURE__ */ function(a) {
10554
10607
  }, {
10555
10608
  key: "destroy",
10556
10609
  value: function() {
10557
- A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
10610
+ D(A(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
10558
10611
  }
10559
10612
  }, {
10560
10613
  key: "render",
@@ -10563,7 +10616,7 @@ var Ni = /* @__PURE__ */ function(a) {
10563
10616
  return `<xg-icon class='xgplayer-cssfullscreen'>
10564
10617
  <div class="xgplayer-icon">
10565
10618
  </div>
10566
- `.concat(Ee(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
10619
+ `.concat(Se(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
10567
10620
  </xg-icon>`);
10568
10621
  }
10569
10622
  }], [{
@@ -10575,7 +10628,7 @@ var Ni = /* @__PURE__ */ function(a) {
10575
10628
  key: "defaultConfig",
10576
10629
  get: function() {
10577
10630
  return {
10578
- position: V.CONTROLS_RIGHT,
10631
+ position: j.CONTROLS_RIGHT,
10579
10632
  index: 1,
10580
10633
  disable: !1,
10581
10634
  target: null
@@ -10643,7 +10696,7 @@ var Ni = /* @__PURE__ */ function(a) {
10643
10696
  return "error";
10644
10697
  }
10645
10698
  }]), r;
10646
- }(U), ca = /* @__PURE__ */ function(a) {
10699
+ }(z), ca = /* @__PURE__ */ function(a) {
10647
10700
  x(r, a);
10648
10701
  var o = P(r);
10649
10702
  function r() {
@@ -10695,7 +10748,7 @@ var Ni = /* @__PURE__ */ function(a) {
10695
10748
  }, {
10696
10749
  key: "render",
10697
10750
  value: function() {
10698
- return '<xg-prompt class="xgplayer-prompt '.concat(k.CONTROLS_FOLLOW, `">
10751
+ return '<xg-prompt class="xgplayer-prompt '.concat(C.CONTROLS_FOLLOW, `">
10699
10752
  <span class="xgplayer-prompt-detail"></span>
10700
10753
  </xg-prompt>`);
10701
10754
  }
@@ -10721,7 +10774,7 @@ var Ni = /* @__PURE__ */ function(a) {
10721
10774
  };
10722
10775
  }
10723
10776
  }]), r;
10724
- }(U), Bi = {
10777
+ }(z), Bi = {
10725
10778
  time: 0,
10726
10779
  text: "",
10727
10780
  id: 1,
@@ -10884,9 +10937,9 @@ function fa(a) {
10884
10937
  }), a.ispotsInit = !1, a.playerSize = {
10885
10938
  left: r.sizeInfo.left,
10886
10939
  width: r.sizeInfo.width
10887
- }, a.on(Te, function() {
10940
+ }, a.on(Ee, function() {
10888
10941
  a.ispotsInit ? a.updateDuration() : a.initDots();
10889
- }), a.on(we, function() {
10942
+ }), a.on(be, function() {
10890
10943
  a.positionDots();
10891
10944
  });
10892
10945
  }
@@ -10902,7 +10955,7 @@ var Ue = {
10902
10955
  var o = P(r);
10903
10956
  function r(t) {
10904
10957
  var e;
10905
- return T(this, r), e = o.call(this, t), y(v(e), "onMousemove", function(i) {
10958
+ return T(this, r), e = o.call(this, t), _(v(e), "onMousemove", function(i) {
10906
10959
  if (!e.config.disable) {
10907
10960
  if (f.hasClass(i.target, "xg-spot-content") && e.config.isHideThumbnailHover) {
10908
10961
  e.player.plugins.progress.onMouseLeave(i);
@@ -10910,20 +10963,20 @@ var Ue = {
10910
10963
  }
10911
10964
  (e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
10912
10965
  }
10913
- }), y(v(e), "onMousedown", function(i) {
10966
+ }), _(v(e), "onMousedown", function(i) {
10914
10967
  e.config.disable || (e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
10915
- }), y(v(e), "onMouseup", function(i) {
10968
+ }), _(v(e), "onMouseup", function(i) {
10916
10969
  if (e.isDrag) {
10917
10970
  var n = e.player.plugins.progress;
10918
10971
  n && n.pos && (n.onMouseUp(i), !n.pos.isEnter && n.onMouseLeave(i));
10919
10972
  }
10920
- }), y(v(e), "onDotMouseLeave", function(i) {
10973
+ }), _(v(e), "onDotMouseLeave", function(i) {
10921
10974
  if (!e.config.disable) {
10922
10975
  e._curDot.removeEventListener("mouseleave", e.onDotMouseLeave), e.blurDot(i.target), e._curDot = null;
10923
10976
  var n = e.player.plugins.progress;
10924
10977
  n && n.enableBlur(), e.show();
10925
10978
  }
10926
- }), y(v(e), "onProgressMouseOver", function(i, n) {
10979
+ }), _(v(e), "onProgressMouseOver", function(i, n) {
10927
10980
  if (!e.config.disable && f.hasClass(n.target, "xgplayer-spot") && !e._curDot) {
10928
10981
  e._curDot = n.target, e.focusDot(n.target), e._curDot.children.length > 0 && e.hide();
10929
10982
  var s = e.player.plugins.progress;
@@ -10948,7 +11001,7 @@ var Ue = {
10948
11001
  n.seekTime && e.player.seek(n.seekTime);
10949
11002
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10950
11003
  e.setTimeContent(f.format(i));
10951
- }), fa(this), this.on(Te, function() {
11004
+ }), fa(this), this.on(Ee, function() {
10952
11005
  e.show();
10953
11006
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
10954
11007
  }
@@ -10972,7 +11025,7 @@ var Ue = {
10972
11025
  var e = this, i = this.player.plugins.progress;
10973
11026
  if (i && (Object.keys(Ue).map(function(s) {
10974
11027
  e[Ue[s]] = e[Ue[s]].bind(e), i.addCallBack(s, e[Ue[s]]);
10975
- }), O.device !== "mobile")) {
11028
+ }), F.device !== "mobile")) {
10976
11029
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
10977
11030
  var n = this.hook("previewClick", function() {
10978
11031
  });
@@ -11009,8 +11062,8 @@ var Ue = {
11009
11062
  var n = this.root, s = this.previewLine, l = this.player, u = this.config, c = l.controls.mode, h = c === "flex", d = n.getBoundingClientRect().width;
11010
11063
  if (!(!d && this._hasThumnail)) {
11011
11064
  d = this._hasThumnail && d < u.width ? u.width : d;
11012
- var g = e - d / 2, p;
11013
- g < 0 && !h ? (g = 0, p = e - d / 2) : g > i - d && !h ? (p = g - (i - d), g = i - d) : p = 0, p !== void 0 && (s.style.transform = "translateX(".concat(p.toFixed(2), "px)")), n.style.transform = "translateX(".concat(g.toFixed(2), "px) translateZ(0)");
11065
+ var p = e - d / 2, g;
11066
+ p < 0 && !h ? (p = 0, g = e - d / 2) : p > i - d && !h ? (g = p - (i - d), p = i - d) : g = 0, g !== void 0 && (s.style.transform = "translateX(".concat(g.toFixed(2), "px)")), n.style.transform = "translateX(".concat(p.toFixed(2), "px) translateZ(0)");
11014
11067
  }
11015
11068
  }
11016
11069
  }, {
@@ -11048,7 +11101,7 @@ var Ue = {
11048
11101
  key: "registerThumbnail",
11049
11102
  value: function() {
11050
11103
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11051
- if (O.device !== "mobile") {
11104
+ if (F.device !== "mobile") {
11052
11105
  var i = this.player, n = this.config, s = i.getPlugin("thumbnail");
11053
11106
  if (s && s.setConfig(e), !s || !s.usable || !n.isShowThumbnail) {
11054
11107
  f.addClass(this.root, "short-line no-thumbnail");
@@ -11136,7 +11189,7 @@ var Ue = {
11136
11189
  }, {
11137
11190
  key: "render",
11138
11191
  value: function() {
11139
- return O.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
11192
+ return F.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
11140
11193
  <div class="xg-spot-content">
11141
11194
  <div class="xg-spot-thumbnail">
11142
11195
  <span class="xg-spot-time"></span>
@@ -11172,7 +11225,7 @@ var Ue = {
11172
11225
  };
11173
11226
  }
11174
11227
  }]), r;
11175
- }(U), da = /* @__PURE__ */ function(a) {
11228
+ }(z), da = /* @__PURE__ */ function(a) {
11176
11229
  x(r, a);
11177
11230
  var o = P(r);
11178
11231
  function r(t) {
@@ -11183,7 +11236,7 @@ var Ue = {
11183
11236
  key: "afterCreate",
11184
11237
  value: function() {
11185
11238
  var e = this;
11186
- this.usable && this.initThumbnail(), this.on([Te], function() {
11239
+ this.usable && this.initThumbnail(), this.on([Ee], function() {
11187
11240
  var i = e.config, n = i.pic_num, s = i.interval;
11188
11241
  e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
11189
11242
  });
@@ -11234,28 +11287,28 @@ var Ue = {
11234
11287
  value: function(e) {
11235
11288
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, s = this.config, l = s.pic_num, u = s.row, c = s.col, h = s.width, d = s.height;
11236
11289
  this.interval = Math.round(this.player.duration / l);
11237
- var g = Math.ceil(e / this.interval);
11238
- g = g > l ? l : g;
11239
- var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), _ = m > 0 ? Math.ceil(m / c) - 1 : 0, w = m > 0 ? m - _ * c - 1 : 0, b = 0, C = 0;
11290
+ var p = Math.ceil(e / this.interval);
11291
+ p = p > l ? l : p;
11292
+ var g = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1, m = p - g * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, k = m > 0 ? m - y * c - 1 : 0, b = 0, w = 0;
11240
11293
  if (i && n) {
11241
- var F = i / n;
11242
- F < h / d ? (C = n, b = C * (h / d)) : (b = i, C = b / (h / d));
11294
+ var I = i / n;
11295
+ I < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
11243
11296
  } else
11244
- n ? i || (C = n || d, b = C * (h / d)) : (b = i || h, C = b / (h / d));
11245
- var R = this.getUrlByIndex(p);
11297
+ n ? i || (w = n || d, b = w * (h / d)) : (b = i || h, w = b / (h / d));
11298
+ var O = this.getUrlByIndex(g);
11246
11299
  return {
11247
- urlIndex: p,
11248
- rowIndex: _,
11249
- colIndex: w,
11250
- url: R,
11251
- height: C,
11300
+ urlIndex: g,
11301
+ rowIndex: y,
11302
+ colIndex: k,
11303
+ url: O,
11304
+ height: w,
11252
11305
  width: b,
11253
11306
  style: {
11254
- backgroundImage: "url(".concat(R, ")"),
11307
+ backgroundImage: "url(".concat(O, ")"),
11255
11308
  backgroundSize: "".concat(b * c, "px auto"),
11256
- backgroundPosition: "-".concat(w * b, "px -").concat(_ * C, "px"),
11309
+ backgroundPosition: "-".concat(k * b, "px -").concat(y * w, "px"),
11257
11310
  width: "".concat(b, "px"),
11258
- height: "".concat(C, "px")
11311
+ height: "".concat(w, "px")
11259
11312
  }
11260
11313
  };
11261
11314
  }
@@ -11265,10 +11318,10 @@ var Ue = {
11265
11318
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", u = this.config, c = u.pic_num, h = u.urls;
11266
11319
  if (!(c <= 0 || !h || h.length === 0)) {
11267
11320
  var d = this.getPosition(i, n, s);
11268
- this.preload(d.urlIndex), Object.keys(d.style).map(function(g) {
11269
- e.style[g] = d.style[g];
11270
- }), Object.keys(l).map(function(g) {
11271
- e.style[g] = l[g];
11321
+ this.preload(d.urlIndex), Object.keys(d.style).map(function(p) {
11322
+ e.style[p] = d.style[p];
11323
+ }), Object.keys(l).map(function(p) {
11324
+ e.style[p] = l[p];
11272
11325
  });
11273
11326
  }
11274
11327
  }
@@ -11306,7 +11359,7 @@ var Ue = {
11306
11359
  };
11307
11360
  }
11308
11361
  }]), r;
11309
- }(U);
11362
+ }(z);
11310
11363
  function Mt(a) {
11311
11364
  return a ? "background:".concat(a, ";") : "";
11312
11365
  }
@@ -11318,7 +11371,7 @@ var ga = /* @__PURE__ */ function(a) {
11318
11371
  T(this, r);
11319
11372
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11320
11373
  i[n] = arguments[n];
11321
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onTimeupdate", function() {
11374
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onTimeupdate", function() {
11322
11375
  var s = t.player.ended, l = v(t), u = l.offsetDuration, c = t.currentTime;
11323
11376
  c = f.adjustTimeByDuration(c, u, s), t.update({
11324
11377
  played: c
@@ -11340,7 +11393,7 @@ var ga = /* @__PURE__ */ function(a) {
11340
11393
  key: "afterCreate",
11341
11394
  value: function() {
11342
11395
  var e = this;
11343
- this.root && (this.on(ie, this.onTimeupdate), this.on(Oe, function() {
11396
+ this.root && (this.on(te, this.onTimeupdate), this.on(Oe, function() {
11344
11397
  e.reset();
11345
11398
  }));
11346
11399
  }
@@ -11392,7 +11445,7 @@ var ga = /* @__PURE__ */ function(a) {
11392
11445
  };
11393
11446
  }
11394
11447
  }]), r;
11395
- }(U), ze = {
11448
+ }(z), ze = {
11396
11449
  REAL_TIME: "realtime",
11397
11450
  FIRST_FRAME: "firstframe",
11398
11451
  FRAME_RATE: "framerate",
@@ -11421,22 +11474,22 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11421
11474
  T(this, r);
11422
11475
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11423
11476
  i[n] = arguments[n];
11424
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onLoadedData", function(s) {
11425
- t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(ie, t.renderOnTimeupdate), t.on(ie, t.renderOnTimeupdate));
11426
- }), y(v(t), "onVisibilitychange", function(s) {
11477
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onLoadedData", function(s) {
11478
+ t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(te, t.renderOnTimeupdate), t.on(te, t.renderOnTimeupdate));
11479
+ }), _(v(t), "onVisibilitychange", function(s) {
11427
11480
  document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
11428
- }), y(v(t), "renderOnTimeupdate", function(s) {
11481
+ }), _(v(t), "renderOnTimeupdate", function(s) {
11429
11482
  if (t._frameCount > 0)
11430
11483
  t.renderOnce(), t._frameCount--;
11431
11484
  else {
11432
- t._isLoaded = !0, t.off(ie, t.renderOnTimeupdate);
11485
+ t._isLoaded = !0, t.off(te, t.renderOnTimeupdate);
11433
11486
  var l = t.config.startInterval;
11434
11487
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
11435
11488
  }
11436
- }), y(v(t), "start", function(s, l) {
11489
+ }), _(v(t), "start", function(s, l) {
11437
11490
  var u = t.player.video, c = pa(), h = t.checkVideoIsSupport(u);
11438
11491
  !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 === ze.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));
11439
- }), y(v(t), "stop", function() {
11492
+ }), _(v(t), "stop", function() {
11440
11493
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
11441
11494
  }), t;
11442
11495
  }
@@ -11458,12 +11511,12 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11458
11511
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11459
11512
  }), s !== ze.POSTER && (s !== ze.FIRST_FRAME && (this.on(Oe, function() {
11460
11513
  e.stop();
11461
- }), this.on(ne, function() {
11514
+ }), this.on(ie, function() {
11462
11515
  var u = e.config.startInterval;
11463
11516
  e._checkIfCanStart() && e.start(0, u);
11464
11517
  }), this.on(Ye, function() {
11465
11518
  e.stop();
11466
- })), this.on(ye, this.onLoadedData), this.on(Zt, function() {
11519
+ })), this.on(_e, this.onLoadedData), this.on(Zt, function() {
11467
11520
  e._isLoaded = !1, e.stop();
11468
11521
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
11469
11522
  }
@@ -11510,7 +11563,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11510
11563
  if (!e)
11511
11564
  return null;
11512
11565
  var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
11513
- if (i && !(O.browser === "safari" && f.isMSE(i)))
11566
+ if (i && !(F.browser === "safari" && f.isMSE(i)))
11514
11567
  return i;
11515
11568
  var n = i ? i.tagName.toLowerCase() : "";
11516
11569
  return n === "canvas" || n === "img" ? i : null;
@@ -11564,12 +11617,12 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11564
11617
  if (u !== n.width || c !== n.height || n.pi !== i) {
11565
11618
  var h = parseInt(u / c * 100, 10);
11566
11619
  n.pi = i, n.width !== u && (n.width = this.canvas.width = u), n.height !== c && (n.height = this.canvas.height = c);
11567
- var d = c, g = u;
11568
- h < i ? g = parseInt(c * i / 100, 10) : h > i && (d = parseInt(u * 100 / i, 10)), n.rwidth = g * s.multiple, n.rheight = d * s.multiple, n.x = (u - n.rwidth) / 2, n.y = (c - n.rheight) / 2;
11620
+ var d = c, p = u;
11621
+ h < i ? p = parseInt(c * i / 100, 10) : h > i && (d = parseInt(u * 100 / i, 10)), n.rwidth = p * s.multiple, n.rheight = d * s.multiple, n.x = (u - n.rwidth) / 2, n.y = (c - n.rheight) / 2;
11569
11622
  }
11570
11623
  this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
11571
- } catch (p) {
11572
- M.logError("plugin:DynamicBg", p);
11624
+ } catch (g) {
11625
+ M.logError("plugin:DynamicBg", g);
11573
11626
  }
11574
11627
  }
11575
11628
  }, {
@@ -11612,10 +11665,10 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11612
11665
  }, {
11613
11666
  key: "supportCanvasFilter",
11614
11667
  value: function() {
11615
- return !(O.browser === "safari" || O.browser === "firefox");
11668
+ return !(F.browser === "safari" || F.browser === "firefox");
11616
11669
  }
11617
11670
  }]), r;
11618
- }(U), ya = {
11671
+ }(z), ya = {
11619
11672
  LANG: "zh-cn",
11620
11673
  TEXT: {
11621
11674
  ERROR_TYPES: {
@@ -11698,7 +11751,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11698
11751
  T(this, r);
11699
11752
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11700
11753
  i[n] = arguments[n];
11701
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "_recordUserActions", function(s) {
11754
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "_recordUserActions", function(s) {
11702
11755
  var l = t._getTime(), u = Object.assign({}, s, {
11703
11756
  msg: s.msg || s.action
11704
11757
  });
@@ -11707,11 +11760,11 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11707
11760
  }, l), {}, {
11708
11761
  payload: u
11709
11762
  }));
11710
- }), y(v(t), "_onReset", function() {
11763
+ }), _(v(t), "_onReset", function() {
11711
11764
  t.reset();
11712
- }), y(v(t), "_recordInfo", function(s) {
11765
+ }), _(v(t), "_recordInfo", function(s) {
11713
11766
  t.info(s);
11714
- }), y(v(t), "_downloadStats", function() {
11767
+ }), _(v(t), "_downloadStats", function() {
11715
11768
  var s = t.getStats(), l = new Blob([JSON.stringify(s)], {
11716
11769
  type: "application/json"
11717
11770
  }), u = window.URL.createObjectURL(l), c = document.createElement("a");
@@ -11776,7 +11829,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11776
11829
  key: "reset",
11777
11830
  value: function() {
11778
11831
  var e;
11779
- this._stats = (e = {}, y(e, qe, []), y(e, "media", {}), e);
11832
+ this._stats = (e = {}, _(e, qe, []), _(e, "media", {}), e);
11780
11833
  }
11781
11834
  }, {
11782
11835
  key: "getStats",
@@ -11834,7 +11887,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11834
11887
  return {};
11835
11888
  }
11836
11889
  }]), r;
11837
- }(be), Cn = /* @__PURE__ */ function(a) {
11890
+ }(Te), Cn = /* @__PURE__ */ function(a) {
11838
11891
  x(r, a);
11839
11892
  var o = P(r);
11840
11893
  function r() {
@@ -11842,7 +11895,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11842
11895
  T(this, r);
11843
11896
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11844
11897
  i[n] = arguments[n];
11845
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onGapJump", function() {
11898
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onGapJump", function() {
11846
11899
  var s = v(t), l = s.player, u = s.config;
11847
11900
  if (l.media.readyState !== HTMLMediaElement.HAVE_NOTHING) {
11848
11901
  if (l.media.seeking) {
@@ -11851,13 +11904,13 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11851
11904
  } else
11852
11905
  t.seekingEventReceived = !1;
11853
11906
  if (!(l.media.paused && l.media.currentTime !== 0 && t.hasPlayed)) {
11854
- var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, g = l.media.currentTime, p = t._getIndex(c, g, d);
11855
- if (!(p === null || p === 0)) {
11856
- console.log("GapJump bufferRange ", c.start(p), c.end(p));
11857
- var m = c.start(p) + 0.1, _ = l.media.duration;
11858
- if (!(m > _)) {
11859
- var w = m - g, b = w <= h;
11860
- w < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
11907
+ var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, p = l.media.currentTime, g = t._getIndex(c, p, d);
11908
+ if (!(g === null || g === 0)) {
11909
+ console.log("GapJump bufferRange ", c.start(g), c.end(g));
11910
+ var m = c.start(g) + 0.1, y = l.media.duration;
11911
+ if (!(m > y)) {
11912
+ var k = m - p, b = k <= h;
11913
+ k < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", g, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", p - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
11861
11914
  type: "oneevent",
11862
11915
  end_type: "gap",
11863
11916
  vid: l.config.vid,
@@ -11875,7 +11928,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11875
11928
  key: "afterCreate",
11876
11929
  value: function() {
11877
11930
  var e = this, i = this.config.useGapJump;
11878
- 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(it, this.onGapJump), this.on(ne, function() {
11931
+ 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(it, this.onGapJump), this.on(ie, function() {
11879
11932
  e.hasPlayed = !0;
11880
11933
  }), this.on(_t, function() {
11881
11934
  e.seekingEventReceived = !0;
@@ -11922,7 +11975,7 @@ var st = null, ma = /* @__PURE__ */ function(a) {
11922
11975
  };
11923
11976
  }
11924
11977
  }]), r;
11925
- }(U);
11978
+ }(z);
11926
11979
  Cn.BROWSER_GAP_TOLERANCE = 1e-3;
11927
11980
  var Ca = /* @__PURE__ */ function(a) {
11928
11981
  x(r, a);
@@ -11932,10 +11985,10 @@ var Ca = /* @__PURE__ */ function(a) {
11932
11985
  T(this, r);
11933
11986
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11934
11987
  i[n] = arguments[n];
11935
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "onWaiting", function() {
11988
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "onWaiting", function() {
11936
11989
  var s = v(t), l = s.config;
11937
11990
  t.jumpCnt > l.jumpCntMax || t.timer || l.useWaitingTimeoutJump === !1 || (t.timer = setTimeout(t.onJump, l.waitingTime * 1e3));
11938
- }), y(v(t), "onJump", function() {
11991
+ }), _(v(t), "onJump", function() {
11939
11992
  var s = v(t), l = s.player, u = s.config;
11940
11993
  if (clearTimeout(t.timer), t.timer = null, !(t.jumpCnt > u.jumpCntMax || u.useWaitingTimeoutJump === !1) && !(l.media.paused && l.media.currentTime !== 0 && t.hasPlayed)) {
11941
11994
  t.jumpSize = u.jumpSize * (t.jumpCnt + 1), t.jumpCnt === u.jumpSize && t.jumpSize < 6 && (t.jumpSize = 6);
@@ -11950,7 +12003,7 @@ var Ca = /* @__PURE__ */ function(a) {
11950
12003
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
11951
12004
  n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(it, this.onWaiting), this.on([qt, ve], function() {
11952
12005
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
11953
- }), this.on(ne, function() {
12006
+ }), this.on(ie, function() {
11954
12007
  e.hasPlayed = !0;
11955
12008
  }));
11956
12009
  }
@@ -11970,7 +12023,7 @@ var Ca = /* @__PURE__ */ function(a) {
11970
12023
  };
11971
12024
  }
11972
12025
  }]), r;
11973
- }(U), Ve = "cdn", ot = ["cdn"], ka = /* @__PURE__ */ function(a) {
12026
+ }(z), Ve = "cdn", ot = ["cdn"], ka = /* @__PURE__ */ function(a) {
11974
12027
  x(r, a);
11975
12028
  var o = P(r);
11976
12029
  function r() {
@@ -11978,7 +12031,7 @@ var Ca = /* @__PURE__ */ function(a) {
11978
12031
  T(this, r);
11979
12032
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11980
12033
  i[n] = arguments[n];
11981
- return t = o.call.apply(o, [this].concat(i)), y(v(t), "getSpeed", function() {
12034
+ return t = o.call.apply(o, [this].concat(i)), _(v(t), "getSpeed", function() {
11982
12035
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve;
11983
12036
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
11984
12037
  return 0;
@@ -11986,30 +12039,30 @@ var Ca = /* @__PURE__ */ function(a) {
11986
12039
  return t.speedListCache[s].map(function(u) {
11987
12040
  l += u;
11988
12041
  }), Math.floor(l / t.speedListCache[s].length);
11989
- }), y(v(t), "startTimer", function() {
12042
+ }), _(v(t), "startTimer", function() {
11990
12043
  f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
11991
- }), y(v(t), "initSpeedList", function() {
12044
+ }), _(v(t), "initSpeedList", function() {
11992
12045
  t.speedListCache = {}, ot.forEach(function(s) {
11993
12046
  t.speedListCache[s] = [];
11994
12047
  });
11995
- }), y(v(t), "_onRealSpeedChange", function(s) {
12048
+ }), _(v(t), "_onRealSpeedChange", function(s) {
11996
12049
  s.speed && t.appendList(s.speed, s.type || Ve);
11997
- }), y(v(t), "testSpeed", function() {
12050
+ }), _(v(t), "testSpeed", function() {
11998
12051
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
11999
12052
  var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
12000
12053
  if (!(t.cnt >= c)) {
12001
12054
  t.cnt++;
12002
12055
  try {
12003
- var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
12056
+ var p = (/* @__PURE__ */ new Date()).getTime(), g = null, m = new XMLHttpRequest();
12004
12057
  t.xhr = m, m.open("GET", d);
12005
- var _ = {}, w = Math.floor(Math.random() * 10);
12006
- _.Range = "bytes=" + w + "-" + (u + w), _ && Object.keys(_).forEach(function(b) {
12007
- m.setRequestHeader(b, _[b]);
12058
+ var y = {}, k = Math.floor(Math.random() * 10);
12059
+ y.Range = "bytes=" + k + "-" + (u + k), y && Object.keys(y).forEach(function(b) {
12060
+ m.setRequestHeader(b, y[b]);
12008
12061
  }), m.onreadystatechange = function() {
12009
12062
  if (m.readyState === 4) {
12010
- t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
12011
- var b = m.getResponseHeader("Content-Length") / 1024 * 8, C = Math.round(b * 1e3 / (p - g));
12012
- t.appendList(C), t.timer = setTimeout(t.testSpeed, h);
12063
+ t.xhr = null, g = (/* @__PURE__ */ new Date()).getTime();
12064
+ var b = m.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (g - p));
12065
+ t.appendList(w), t.timer = setTimeout(t.testSpeed, h);
12013
12066
  }
12014
12067
  }, m.send();
12015
12068
  } catch (b) {
@@ -12017,7 +12070,7 @@ var Ca = /* @__PURE__ */ function(a) {
12017
12070
  }
12018
12071
  }
12019
12072
  }
12020
- }), y(v(t), "appendList", function(s) {
12073
+ }), _(v(t), "appendList", function(s) {
12021
12074
  var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ve;
12022
12075
  if (!(!t.speedListCache || !t.speedListCache[l])) {
12023
12076
  var u = t.config.saveSpeedMax;
@@ -12025,7 +12078,7 @@ var Ca = /* @__PURE__ */ function(a) {
12025
12078
  var c = v(t), h = c.player;
12026
12079
  h && (l === Ve ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12027
12080
  }
12028
- }), y(v(t), "updateSpeed", function() {
12081
+ }), _(v(t), "updateSpeed", function() {
12029
12082
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve, l = t.getSpeed(s), u = v(t), c = u.player;
12030
12083
  if (c)
12031
12084
  if (s === Ve)
@@ -12046,7 +12099,7 @@ var Ca = /* @__PURE__ */ function(a) {
12046
12099
  key: "afterCreate",
12047
12100
  value: function() {
12048
12101
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12049
- (n == null ? void 0 : n.length) > 0 && ot.push.apply(ot, ae(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ye, ut], this.startTimer);
12102
+ (n == null ? void 0 : n.length) > 0 && ot.push.apply(ot, le(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([_e, ut], this.startTimer);
12050
12103
  }
12051
12104
  }, {
12052
12105
  key: "getSpeedName",
@@ -12073,7 +12126,7 @@ var Ca = /* @__PURE__ */ function(a) {
12073
12126
  key: "destroy",
12074
12127
  value: function() {
12075
12128
  var e = this;
12076
- this.off("real_time_speed", this._onRealSpeedChange), this.off([ye, ut], this.startTimer), ot.forEach(function(i) {
12129
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([_e, ut], this.startTimer), ot.forEach(function(i) {
12077
12130
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12078
12131
  }), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
12079
12132
  }
@@ -12096,7 +12149,7 @@ var Ca = /* @__PURE__ */ function(a) {
12096
12149
  };
12097
12150
  }
12098
12151
  }]), r;
12099
- }(U), wa = /* @__PURE__ */ function(a) {
12152
+ }(z), wa = /* @__PURE__ */ function(a) {
12100
12153
  x(r, a);
12101
12154
  var o = P(r);
12102
12155
  function r() {
@@ -12108,7 +12161,7 @@ var Ca = /* @__PURE__ */ function(a) {
12108
12161
  var e = this, i = this.player, n = this.config, s = i.media || i.video;
12109
12162
  if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !n.disabled) {
12110
12163
  var l = s.getVideoPlaybackQuality;
12111
- l && (this.on(ne, function() {
12164
+ l && (this.on(ie, function() {
12112
12165
  e._startTick();
12113
12166
  }), this.on(Ye, function() {
12114
12167
  e._stopTick();
@@ -12153,12 +12206,12 @@ var Ca = /* @__PURE__ */ function(a) {
12153
12206
  }, {
12154
12207
  key: "_checkStuck",
12155
12208
  value: function(e, i, n, s) {
12156
- var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, g = l.buffered;
12209
+ var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, p = l.buffered;
12157
12210
  if (!(u || c || h < 4)) {
12158
- var p = this._checkBuffer(d, g), m = p.enoughBuffer, _ = p.buffers;
12211
+ var g = this._checkBuffer(d, p), m = g.enoughBuffer, y = g.buffers;
12159
12212
  m && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
12160
12213
  currentTime: d,
12161
- buffers: _,
12214
+ buffers: y,
12162
12215
  curDecodedFrames: e,
12163
12216
  totalVideoFrames: i,
12164
12217
  droppedVideoFrames: n,
@@ -12205,14 +12258,14 @@ var Ca = /* @__PURE__ */ function(a) {
12205
12258
  };
12206
12259
  }
12207
12260
  }]), r;
12208
- }(U);
12261
+ }(z);
12209
12262
  We.use(ya);
12210
12263
  var ba = /* @__PURE__ */ E(function a(o, r) {
12211
12264
  var t, e, i;
12212
12265
  T(this, a);
12213
12266
  var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Uo, Do, ga, ha, Ho], u = [].concat(l, [Ro, Bo, Ko, Zo, sa, oa, ta, ia, Wo, Xo]), c = [fo, ho, po, Io, vo, ua, ca, da, Co];
12214
- this.plugins = [_a, uo].concat(ae(u), c, [Cn, Ca]);
12215
- var h = n ? "mobile" : O.device;
12267
+ this.plugins = [_a, uo].concat(le(u), c, [Cn, Ca]);
12268
+ var h = n ? "mobile" : F.device;
12216
12269
  switch (h) {
12217
12270
  case "pc":
12218
12271
  (t = this.plugins).push.apply(t, [Fi, Ot, Ni, ka, wa]);
@@ -12223,8 +12276,8 @@ var ba = /* @__PURE__ */ E(function a(o, r) {
12223
12276
  default:
12224
12277
  (i = this.plugins).push.apply(i, [Fi, Ot, Ni]);
12225
12278
  }
12226
- (O.os.isIpad || h === "pc") && this.plugins.push(ma), O.os.isIpad && this.plugins.push(Ot), this.ignores = [], this.i18n = [];
12227
- }), ue = /* @__PURE__ */ function(a) {
12279
+ (F.os.isIpad || h === "pc") && this.plugins.push(ma), F.os.isIpad && this.plugins.push(Ot), this.ignores = [], this.i18n = [];
12280
+ }), ce = /* @__PURE__ */ function(a) {
12228
12281
  x(r, a);
12229
12282
  var o = P(r);
12230
12283
  function r() {
@@ -12232,17 +12285,17 @@ var ba = /* @__PURE__ */ E(function a(o, r) {
12232
12285
  }
12233
12286
  return E(r);
12234
12287
  }(bt);
12235
- y(ue, "defaultPreset", ba);
12236
- y(ue, "Util", f);
12237
- y(ue, "Sniffer", O);
12238
- y(ue, "Errors", lt);
12239
- y(ue, "Events", Ns);
12240
- y(ue, "Plugin", U);
12241
- y(ue, "BasePlugin", be);
12242
- y(ue, "I18N", We);
12243
- y(ue, "STATE_CLASS", k);
12244
- y(ue, "InstManager", vn);
12245
- const Ta = ["id"], Ea = /* @__PURE__ */ le({
12288
+ _(ce, "defaultPreset", ba);
12289
+ _(ce, "Util", f);
12290
+ _(ce, "Sniffer", F);
12291
+ _(ce, "Errors", lt);
12292
+ _(ce, "Events", Ns);
12293
+ _(ce, "Plugin", z);
12294
+ _(ce, "BasePlugin", Te);
12295
+ _(ce, "I18N", We);
12296
+ _(ce, "STATE_CLASS", C);
12297
+ _(ce, "InstManager", vn);
12298
+ const Ta = ["id"], Ea = /* @__PURE__ */ ue({
12246
12299
  name: "ElImageViewer",
12247
12300
  __name: "Player",
12248
12301
  props: /* @__PURE__ */ at({
@@ -12296,21 +12349,21 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
12296
12349
  function d() {
12297
12350
  l("close"), u.value = !1, r.destroy();
12298
12351
  }
12299
- return Ui(() => u.value, (g) => {
12300
- g && zi(() => {
12301
- r = new ue({
12352
+ return Ui(() => u.value, (p) => {
12353
+ p && zi(() => {
12354
+ r = new ce({
12302
12355
  id: c,
12303
12356
  url: i.value,
12304
12357
  ...s.value
12305
12358
  });
12306
12359
  });
12307
- }), (g, p) => {
12360
+ }), (p, g) => {
12308
12361
  const m = $e("el-icon");
12309
- return u.value ? (L(), Le(En, {
12362
+ return u.value ? (L(), me(En, {
12310
12363
  key: 0,
12311
12364
  to: "body"
12312
12365
  }, [
12313
- J(Sn, {
12366
+ re(Sn, {
12314
12367
  name: "viewer-fade",
12315
12368
  appear: ""
12316
12369
  }, {
@@ -12320,38 +12373,38 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
12320
12373
  {
12321
12374
  ref: "wrapper",
12322
12375
  tabindex: -1,
12323
- class: Q(j(h).e("wrapper")),
12324
- style: oe({ zIndex: a.zIndex })
12376
+ class: J(V(h).e("wrapper")),
12377
+ style: ae({ zIndex: a.zIndex })
12325
12378
  },
12326
12379
  [
12327
12380
  S(
12328
12381
  "div",
12329
12382
  {
12330
- class: Q(j(h).e("mask"))
12383
+ class: J(V(h).e("mask"))
12331
12384
  },
12332
12385
  null,
12333
12386
  2
12334
12387
  /* CLASS */
12335
12388
  ),
12336
- he(" CANVAS "),
12389
+ ne(" CANVAS "),
12337
12390
  S(
12338
12391
  "div",
12339
12392
  {
12340
- class: Q(j(h).e("canvas"))
12393
+ class: J(V(h).e("canvas"))
12341
12394
  },
12342
12395
  [
12343
- S("div", { id: j(c) }, null, 8, Ta),
12344
- he(" CLOSE "),
12396
+ S("div", { id: V(c) }, null, 8, Ta),
12397
+ ne(" CLOSE "),
12345
12398
  S(
12346
12399
  "span",
12347
12400
  {
12348
- class: Q([j(h).e("btn"), j(h).e("close")]),
12401
+ class: J([V(h).e("btn"), V(h).e("close")]),
12349
12402
  onClick: d
12350
12403
  },
12351
12404
  [
12352
- J(m, { onClick: d }, {
12405
+ re(m, { onClick: d }, {
12353
12406
  default: de(() => [
12354
- J(j(Nr))
12407
+ re(V(Nr))
12355
12408
  ]),
12356
12409
  _: 1
12357
12410
  /* STABLE */
@@ -12364,7 +12417,7 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
12364
12417
  2
12365
12418
  /* CLASS */
12366
12419
  ),
12367
- Ie(g.$slots, "default", {}, void 0, !0)
12420
+ Ae(p.$slots, "default", {}, void 0, !0)
12368
12421
  ],
12369
12422
  6
12370
12423
  /* CLASS, STYLE */
@@ -12373,11 +12426,11 @@ const Ta = ["id"], Ea = /* @__PURE__ */ le({
12373
12426
  _: 3
12374
12427
  /* FORWARDED */
12375
12428
  })
12376
- ])) : he("v-if", !0);
12429
+ ])) : ne("v-if", !0);
12377
12430
  };
12378
12431
  }
12379
12432
  });
12380
- const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(Sa), Pa = ["onClick"], Ia = { class: "fileName simple" }, Aa = ["onClick"], La = { class: "text" }, Da = { class: "fileName" }, Ra = { class: "size" }, Oa = /* @__PURE__ */ le({
12433
+ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(Sa), Pa = ["onClick"], Ia = { class: "fileName simple" }, Aa = ["onClick"], La = { class: "text" }, Da = { class: "fileName" }, Ra = { class: "size" }, Oa = /* @__PURE__ */ ue({
12381
12434
  __name: "IkPreviewFile",
12382
12435
  props: {
12383
12436
  list: {
@@ -12453,81 +12506,82 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
12453
12506
  },
12454
12507
  emits: ["handPreview"],
12455
12508
  setup(a, { emit: o }) {
12456
- const r = a, { cLoadUrl: t, cOnlyofficeConfig: e } = ji(r), i = o, n = Y(() => ({
12509
+ const r = a, { cLoadUrl: t, cOnlyofficeConfig: e, cOnlyofficePreviewType: i } = ji(r), n = o, s = Y(() => ({
12457
12510
  name: "name",
12458
12511
  url: "url",
12459
12512
  suffix: "suffix",
12460
12513
  size: "size",
12461
12514
  ...r.field
12462
- })), s = Ke({}), l = Ke(!1), u = (g) => {
12463
- var p, m;
12464
- s.value = {
12515
+ })), l = Ke({}), u = Ke(!1), c = (g) => {
12516
+ var m, y;
12517
+ console.log("priview", g), l.value = {
12465
12518
  ...g,
12466
12519
  name: g.name,
12467
12520
  url: Qe(
12468
12521
  t.value,
12469
- g.url || ((m = (p = g == null ? void 0 : g.response) == null ? void 0 : p.data) == null ? void 0 : m.id) || (g == null ? void 0 : g.id)
12522
+ g.url || ((y = (m = g == null ? void 0 : g.response) == null ? void 0 : m.data) == null ? void 0 : y.id) || (g == null ? void 0 : g.id)
12470
12523
  )
12471
- }, r.isOnlyOfficePreview && (l.value = !0), i("handPreview", s.value);
12472
- }, c = (g) => {
12524
+ }, r.isOnlyOfficePreview && (u.value = !0), n("handPreview", l.value);
12525
+ }, h = (g) => {
12473
12526
  In.downloadFile(
12474
12527
  Qe(
12475
12528
  t.value,
12476
- g[n.value.url] || g.attachmentId || g.id
12529
+ g[s.value.url] || g.attachmentId || g.id
12477
12530
  ),
12478
- g[n.value.name] || g.attachmentName
12531
+ g[s.value.name] || g.attachmentName
12479
12532
  );
12480
- }, h = Y(() => Pn.isNumber(r.width) ? `${r.width}px` : r.width), d = Y(() => r.list.map((g) => ({
12533
+ }, d = Y(() => Pn.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) => ({
12481
12534
  ...g,
12482
- name: g[n.value.name] || g.attachmentName,
12483
- size: g[n.value.size] || g.fileSize || g.attachmentSize,
12484
- suffix: g[n.value.suffix] || g.attachmentSuffix
12535
+ name: g[s.value.name] || g.attachmentName,
12536
+ size: g[s.value.size] || g.fileSize || g.attachmentSize,
12537
+ suffix: g[s.value.suffix] || g.attachmentSuffix
12485
12538
  })));
12486
- return (g, p) => {
12487
- var _, w, b;
12488
- const m = $e("tmplate");
12539
+ return (g, m) => {
12540
+ var k, b, w;
12541
+ const y = $e("tmplate");
12489
12542
  return L(), N(
12490
12543
  Ze,
12491
12544
  null,
12492
12545
  [
12493
- (_ = a.list) != null && _.length ? (L(), N(
12546
+ (k = a.list) != null && k.length ? (L(), N(
12494
12547
  Ze,
12495
12548
  { key: 0 },
12496
12549
  [
12497
12550
  a.simple ? (L(!0), N(
12498
12551
  Ze,
12499
12552
  { key: 0 },
12500
- ai(d.value, (C, F) => (L(), N("div", {
12553
+ ai(p.value, (I, O) => (L(), N("div", {
12501
12554
  class: "iking-privew-annex simple",
12502
- onClick: (R) => u(C),
12503
- style: oe({ width: h.value })
12555
+ onClick: (H) => c(I),
12556
+ style: ae({ width: d.value })
12504
12557
  }, [
12505
12558
  S(
12506
12559
  "div",
12507
12560
  Ia,
12508
- Ge(C.name),
12561
+ Ge(I.name),
12509
12562
  1
12510
12563
  /* TEXT */
12511
12564
  ),
12512
12565
  S(
12513
12566
  "div",
12514
12567
  {
12515
- class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
12568
+ class: J(["flex flex-center", { "hover-show": a.iconHoverShow }])
12516
12569
  },
12517
12570
  [
12518
- J(j(je), {
12571
+ re(V(je), {
12519
12572
  name: "iksvg_daochu",
12520
- onClick: li((R) => c(C), ["stop"]),
12573
+ onClick: li((H) => h(I), ["stop"]),
12521
12574
  size: 20,
12522
12575
  active: ""
12523
12576
  }, null, 8, ["onClick"]),
12524
- J(j(je), {
12577
+ V(i).includes(I.suffix) ? (L(), me(V(je), {
12578
+ key: 0,
12525
12579
  name: "iksvg_yulan",
12526
12580
  size: 20,
12527
12581
  active: ""
12528
- }),
12529
- Ie(g.$slots, "operation", {
12530
- data: { ...C, findex: F }
12582
+ })) : ne("v-if", !0),
12583
+ Ae(g.$slots, "operation", {
12584
+ data: { ...I, findex: O }
12531
12585
  })
12532
12586
  ],
12533
12587
  2
@@ -12536,46 +12590,46 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
12536
12590
  ], 12, Pa))),
12537
12591
  256
12538
12592
  /* UNKEYED_FRAGMENT */
12539
- )) : (L(), Le(m, { key: 1 }, {
12593
+ )) : (L(), me(y, { key: 1 }, {
12540
12594
  default: de(() => [
12541
12595
  (L(!0), N(
12542
12596
  Ze,
12543
12597
  null,
12544
- ai(d.value, (C, F) => {
12545
- var R;
12598
+ ai(p.value, (I, O) => {
12599
+ var H;
12546
12600
  return L(), N(
12547
12601
  "div",
12548
12602
  {
12549
- class: Q(["iking-privew-annex", { "is-bg": a.showBg }]),
12550
- key: F,
12551
- style: oe({
12552
- marginBottom: F == ((R = a.list) == null ? void 0 : R.length) - 1 ? "0" : "10px",
12553
- width: h.value
12603
+ class: J(["iking-privew-annex", { "is-bg": a.showBg }]),
12604
+ key: O,
12605
+ style: ae({
12606
+ marginBottom: O == ((H = a.list) == null ? void 0 : H.length) - 1 ? "0" : "10px",
12607
+ width: d.value
12554
12608
  })
12555
12609
  },
12556
12610
  [
12557
12611
  S("div", {
12558
12612
  class: "file-card",
12559
- onClick: (z) => u(C)
12613
+ onClick: (R) => c(I)
12560
12614
  }, [
12561
- J(j(Fr), {
12562
- file: C,
12563
- style: oe({ height: `${a.iconSize}px` }),
12615
+ re(V(Fr), {
12616
+ file: I,
12617
+ style: ae({ height: `${a.iconSize}px` }),
12564
12618
  class: "ikui-w-auto",
12565
- fields: n.value
12619
+ fields: s.value
12566
12620
  }, null, 8, ["file", "style", "fields"]),
12567
12621
  S("div", La, [
12568
12622
  S(
12569
12623
  "div",
12570
12624
  Da,
12571
- Ge(C.name),
12625
+ Ge(I.name),
12572
12626
  1
12573
12627
  /* TEXT */
12574
12628
  ),
12575
12629
  S(
12576
12630
  "div",
12577
12631
  Ra,
12578
- Ge(j(Br)(C.size)),
12632
+ Ge(V(Br)(I.size)),
12579
12633
  1
12580
12634
  /* TEXT */
12581
12635
  )
@@ -12583,24 +12637,25 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
12583
12637
  S(
12584
12638
  "div",
12585
12639
  {
12586
- class: Q(["flex flex-center", { "hover-show": a.iconHoverShow }])
12640
+ class: J(["flex flex-center", { "hover-show": a.iconHoverShow }])
12587
12641
  },
12588
12642
  [
12589
- J(j(je), {
12643
+ re(V(je), {
12590
12644
  name: "iksvg_daochu",
12591
- onClick: li((z) => c(C), ["stop"]),
12645
+ onClick: li((R) => h(I), ["stop"]),
12592
12646
  bg: a.showBg,
12593
12647
  size: a.showBg ? "default" : 20,
12594
12648
  title: "下载"
12595
12649
  }, null, 8, ["onClick", "bg", "size"]),
12596
- J(j(je), {
12650
+ V(i).includes(I.suffix) ? (L(), me(V(je), {
12651
+ key: 0,
12597
12652
  name: "iksvg_yulan",
12598
12653
  bg: a.showBg,
12599
12654
  size: a.showBg ? "default" : 20,
12600
12655
  title: "预览"
12601
- }, null, 8, ["bg", "size"]),
12602
- Ie(g.$slots, "operation", {
12603
- data: { ...C, findex: F }
12656
+ }, null, 8, ["bg", "size"])) : ne("v-if", !0),
12657
+ Ae(g.$slots, "operation", {
12658
+ data: { ...I, findex: O }
12604
12659
  })
12605
12660
  ],
12606
12661
  2
@@ -12622,15 +12677,15 @@ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(S
12622
12677
  ],
12623
12678
  64
12624
12679
  /* STABLE_FRAGMENT */
12625
- )) : he("v-if", !0),
12626
- J(j(zr), {
12627
- show: l.value,
12628
- "onUpdate:show": p[0] || (p[0] = (C) => l.value = C),
12629
- loadUrl: j(t),
12630
- file: s.value,
12631
- onlyofficeServer: ((w = j(e)) == null ? void 0 : w.serverUrl) || a.onlyofficeServer,
12632
- onlyOfficeConfig: j(e),
12633
- onlyOfficeAccept: ((b = j(e)) == null ? void 0 : b.accept) || a.onlyOfficeAccept
12680
+ )) : ne("v-if", !0),
12681
+ re(V(zr), {
12682
+ show: u.value,
12683
+ "onUpdate:show": m[0] || (m[0] = (I) => u.value = I),
12684
+ loadUrl: V(t),
12685
+ file: l.value,
12686
+ onlyofficeServer: ((b = V(e)) == null ? void 0 : b.serverUrl) || a.onlyofficeServer,
12687
+ onlyOfficeConfig: V(e),
12688
+ onlyOfficeAccept: ((w = V(e)) == null ? void 0 : w.accept) || a.onlyOfficeAccept
12634
12689
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
12635
12690
  ],
12636
12691
  64