iking-web-ui-pro 0.2.34 → 0.2.36

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 (39) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +612 -605
  2. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  3. package/dist/IKSearch/ik.index.es.js +623 -623
  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 +463 -463
  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 +683 -676
  10. package/dist/IkApprovalProcessDetail/ik.index.umd.js +46 -46
  11. package/dist/IkCalendar/ik.index.es.js +1583 -1583
  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 +835 -852
  15. package/dist/IkDescription/ik.index.umd.js +46 -46
  16. package/dist/IkDescription/style.css +1 -1
  17. package/dist/IkDetailPreviewFiles/ik.index.es.js +864 -857
  18. package/dist/IkDetailPreviewFiles/ik.index.umd.js +46 -46
  19. package/dist/IkPageFull/ik.index.es.js +689 -689
  20. package/dist/IkPageFull/ik.index.umd.js +3 -3
  21. package/dist/IkPageFull/style.css +1 -1
  22. package/dist/IkPickerUser/ik.index.es.js +317 -317
  23. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  24. package/dist/IkPickerUser/style.css +1 -1
  25. package/dist/IkPlayer/ik.index.es.js +342 -339
  26. package/dist/IkPlayer/ik.index.umd.js +45 -45
  27. package/dist/IkPreviewFileDialog/ik.index.es.js +509 -506
  28. package/dist/IkPreviewFileDialog/ik.index.umd.js +46 -46
  29. package/dist/IkUploadFile/ik.index.es.js +1719 -1718
  30. package/dist/IkUploadFile/ik.index.umd.js +56 -56
  31. package/dist/IkUploadFile/style.css +1 -1
  32. package/dist/IkUploadImage/ik.index.es.js +273 -270
  33. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  34. package/dist/index.es.js +13879 -13901
  35. package/dist/index.umd.js +106 -106
  36. package/dist/src/components/IkDescription/index.d.ts +0 -76
  37. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +0 -36
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as qt, toDisplayString as Zt, createVNode as K, unref as P, mergeModels as vt, useModel as ai, ref as Ce, h as Qn, mergeProps as er, createSlots as tr, renderSlot as Je, getCurrentScope as ir, onScopeDispose as nr, watch as at, markRaw as Ii, effectScope as rr, shallowRef as sr, nextTick as oi, onMounted as ar, Teleport as pn, Transition as vn, withModifiers as or, Fragment as Jt, resolveDynamicComponent as lr, renderList as ur, withDirectives as cr, vShow as fr, reactive as hr } from "vue";
2
- import { ikColor as dr, paramType as Pi, _ as Mt, buildUUID as mn } from "iking-utils-pro";
3
- import { useLocale as gr, useNamespace as yn, useZIndex as pr, ElIcon as Ie, EVENT_CODE as We } from "element-plus";
1
+ import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as qt, toDisplayString as Zt, createVNode as K, unref as P, mergeModels as vt, useModel as ai, ref as Ce, h as er, mergeProps as tr, createSlots as ir, renderSlot as Je, getCurrentScope as nr, onScopeDispose as rr, watch as at, markRaw as Ii, effectScope as sr, shallowRef as ar, nextTick as oi, onMounted as or, Teleport as vn, Transition as mn, withModifiers as lr, Fragment as Jt, resolveDynamicComponent as ur, renderList as cr, withDirectives as fr, vShow as hr, reactive as dr } from "vue";
2
+ import { ikColor as gr, paramType as Pi, _ as Mt, buildUUID as yn } from "iking-utils-pro";
3
+ import { useLocale as pr, useNamespace as _n, useZIndex as vr, ElIcon as Ie, EVENT_CODE as We } from "element-plus";
4
4
  const et = (o, a) => {
5
5
  if (o.install = (r) => {
6
6
  for (const t of [o, ...Object.values(a ?? {})])
@@ -31,7 +31,7 @@ const et = (o, a) => {
31
31
  if (typeof t == "string" && (t.includes(u) || t === u))
32
32
  return e[u];
33
33
  return "unknown";
34
- }, vr = {
34
+ }, mr = {
35
35
  ".doc": "word",
36
36
  ".docx": "word",
37
37
  ".docxf": "word",
@@ -118,13 +118,13 @@ const et = (o, a) => {
118
118
  ".pdf": "pdf"
119
119
  }, Ai = (o) => {
120
120
  const a = o == null ? void 0 : o.toLocaleLowerCase(), r = a != null && a.startsWith(".") ? a : `.${a}`;
121
- return r && vr[r] || "unknow";
122
- }, mr = (o) => {
121
+ return r && mr[r] || "unknow";
122
+ }, yr = (o) => {
123
123
  let a = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
124
124
  return r.includes(o) && (a = "word"), t.includes(o) && (a = "cell"), e.includes(o) && (a = "slide"), i.includes(o) && (a = "text-pdf"), a;
125
125
  };
126
126
  /*! Element Plus Icons Vue v2.3.1 */
127
- var yr = /* @__PURE__ */ Q({
127
+ var _r = /* @__PURE__ */ Q({
128
128
  name: "ArrowLeft",
129
129
  __name: "arrow-left",
130
130
  setup(o) {
@@ -138,7 +138,7 @@ var yr = /* @__PURE__ */ Q({
138
138
  })
139
139
  ]));
140
140
  }
141
- }), _r = yr, Cr = /* @__PURE__ */ Q({
141
+ }), Cr = _r, kr = /* @__PURE__ */ Q({
142
142
  name: "ArrowRight",
143
143
  __name: "arrow-right",
144
144
  setup(o) {
@@ -152,7 +152,7 @@ var yr = /* @__PURE__ */ Q({
152
152
  })
153
153
  ]));
154
154
  }
155
- }), kr = Cr, br = /* @__PURE__ */ Q({
155
+ }), br = kr, wr = /* @__PURE__ */ Q({
156
156
  name: "Close",
157
157
  __name: "close",
158
158
  setup(o) {
@@ -166,7 +166,7 @@ var yr = /* @__PURE__ */ Q({
166
166
  })
167
167
  ]));
168
168
  }
169
- }), _n = br, wr = /* @__PURE__ */ Q({
169
+ }), Cn = wr, Tr = /* @__PURE__ */ Q({
170
170
  name: "FullScreen",
171
171
  __name: "full-screen",
172
172
  setup(o) {
@@ -180,7 +180,7 @@ var yr = /* @__PURE__ */ Q({
180
180
  })
181
181
  ]));
182
182
  }
183
- }), Tr = wr, Er = /* @__PURE__ */ Q({
183
+ }), Er = Tr, Sr = /* @__PURE__ */ Q({
184
184
  name: "RefreshLeft",
185
185
  __name: "refresh-left",
186
186
  setup(o) {
@@ -194,7 +194,7 @@ var yr = /* @__PURE__ */ Q({
194
194
  })
195
195
  ]));
196
196
  }
197
- }), Sr = Er, xr = /* @__PURE__ */ Q({
197
+ }), xr = Sr, Ir = /* @__PURE__ */ Q({
198
198
  name: "RefreshRight",
199
199
  __name: "refresh-right",
200
200
  setup(o) {
@@ -208,7 +208,7 @@ var yr = /* @__PURE__ */ Q({
208
208
  })
209
209
  ]));
210
210
  }
211
- }), Ir = xr, Pr = /* @__PURE__ */ Q({
211
+ }), Pr = Ir, Lr = /* @__PURE__ */ Q({
212
212
  name: "ScaleToOriginal",
213
213
  __name: "scale-to-original",
214
214
  setup(o) {
@@ -222,7 +222,7 @@ var yr = /* @__PURE__ */ Q({
222
222
  })
223
223
  ]));
224
224
  }
225
- }), Lr = Pr, Ar = /* @__PURE__ */ Q({
225
+ }), Ar = Lr, Dr = /* @__PURE__ */ Q({
226
226
  name: "ZoomIn",
227
227
  __name: "zoom-in",
228
228
  setup(o) {
@@ -236,7 +236,7 @@ var yr = /* @__PURE__ */ Q({
236
236
  })
237
237
  ]));
238
238
  }
239
- }), Dr = Ar, Rr = /* @__PURE__ */ Q({
239
+ }), Rr = Dr, Or = /* @__PURE__ */ Q({
240
240
  name: "ZoomOut",
241
241
  __name: "zoom-out",
242
242
  setup(o) {
@@ -250,86 +250,89 @@ var yr = /* @__PURE__ */ Q({
250
250
  })
251
251
  ]));
252
252
  }
253
- }), Or = Rr;
253
+ }), Mr = Or;
254
254
  const xt = (o, a) => {
255
255
  const r = o.__vccOpts || o;
256
256
  for (const [t, e] of a)
257
257
  r[t] = e;
258
258
  return r;
259
- }, Mr = (o) => {
260
- const a = nt("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = nt("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = nt("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = nt("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = nt("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value));
259
+ }, Di = [
260
+ "csv",
261
+ "djvu",
262
+ "doc",
263
+ "docm",
264
+ "docx",
265
+ "docxf",
266
+ "dot",
267
+ "dotm",
268
+ "dotx",
269
+ "epub",
270
+ "fb2",
271
+ "fodp",
272
+ "fods",
273
+ "fodt",
274
+ "htm",
275
+ "html",
276
+ "mht",
277
+ "odp",
278
+ "ods",
279
+ "odt",
280
+ "oform",
281
+ "otp",
282
+ "ots",
283
+ "ott",
284
+ "oxps",
285
+ "pdf",
286
+ "pot",
287
+ "potm",
288
+ "potx",
289
+ "pps",
290
+ "ppsm",
291
+ "ppsx",
292
+ "ppt",
293
+ "pptm",
294
+ "pptx",
295
+ "rtf",
296
+ "txt",
297
+ "xls",
298
+ "xlsb",
299
+ "xlsm",
300
+ "xlsx",
301
+ "xlt",
302
+ "xltm",
303
+ "xltx",
304
+ "xml",
305
+ "xps",
306
+ "png",
307
+ "jpeg",
308
+ "jpg",
309
+ "webp",
310
+ "video",
311
+ "mp4",
312
+ "flv",
313
+ "tls"
314
+ ], Nr = (o) => {
315
+ const a = nt("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = nt("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = nt("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = nt("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = nt("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value)), h = [...Di, ...Di.map((d) => d.toLocaleUpperCase())];
261
316
  return {
262
317
  cLoadUrl: r,
263
318
  cUploadUrl: e,
264
319
  cToken: n,
265
320
  cOnlyofficeConfig: l,
266
321
  cUserInfo: c,
267
- cOnlyofficePreviewType: [
268
- "csv",
269
- "djvu",
270
- "doc",
271
- "docm",
272
- "docx",
273
- "docxf",
274
- "dot",
275
- "dotm",
276
- "dotx",
277
- "epub",
278
- "fb2",
279
- "fodp",
280
- "fods",
281
- "fodt",
282
- "htm",
283
- "html",
284
- "mht",
285
- "odp",
286
- "ods",
287
- "odt",
288
- "oform",
289
- "otp",
290
- "ots",
291
- "ott",
292
- "oxps",
293
- "pdf",
294
- "pot",
295
- "potm",
296
- "potx",
297
- "pps",
298
- "ppsm",
299
- "ppsx",
300
- "ppt",
301
- "pptm",
302
- "pptx",
303
- "rtf",
304
- "txt",
305
- "xls",
306
- "xlsb",
307
- "xlsm",
308
- "xlsx",
309
- "xlt",
310
- "xltm",
311
- "xltx",
312
- "xml",
313
- "xps",
314
- "png",
315
- "jpeg",
316
- "jpg",
317
- "video",
318
- "mp4"
319
- ]
322
+ cOnlyofficePreviewType: h
320
323
  };
321
- }, Nr = Mr, Fr = {
324
+ }, Fr = Nr, Br = {
322
325
  key: 0,
323
326
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
324
- }, Br = {
327
+ }, Hr = {
325
328
  key: 1,
326
329
  class: "h-[1em] w-[1em]",
327
330
  "aria-hidden": "true"
328
- }, Hr = ["xlink:href"], Ur = ["src"], Vr = {
331
+ }, Ur = ["xlink:href"], Vr = ["src"], zr = {
329
332
  key: 1,
330
333
  class: "h-[1em] w-[1em]",
331
334
  "aria-hidden": "true"
332
- }, zr = ["xlink:href"], jr = ["src"], Wr = /* @__PURE__ */ Q({
335
+ }, jr = ["xlink:href"], Wr = ["src"], Gr = /* @__PURE__ */ Q({
333
336
  name: "IkSvgIcon",
334
337
  __name: "index",
335
338
  props: {
@@ -382,14 +385,14 @@ const xt = (o, a) => {
382
385
  padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
383
386
  ...r.value.color && t.value !== "iksig" ? {
384
387
  "--ik-color-icon-dark": r.value.color,
385
- "--ik-color-icon-light": r.value.colorLight || dr.setOpacity(r.value.color, r.value.opacity)
388
+ "--ik-color-icon-light": r.value.colorLight || gr.setOpacity(r.value.color, r.value.opacity)
386
389
  } : {}
387
390
  };
388
391
  return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
389
392
  });
390
393
  return (i, n) => {
391
394
  const s = pt("el-tooltip"), l = pt("el-button");
392
- return r.value.tableIconType === "icon" || !r.value.tableIconType ? (N(), W("span", Fr, [
395
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (N(), W("span", Br, [
393
396
  r.value.notip || !r.value.title ? (N(), W(
394
397
  "i",
395
398
  {
@@ -421,15 +424,15 @@ const xt = (o, a) => {
421
424
  null,
422
425
  6
423
426
  /* CLASS, STYLE */
424
- )) : t.value === "svg" ? (N(), W("svg", Br, [
427
+ )) : t.value === "svg" ? (N(), W("svg", Hr, [
425
428
  j("use", {
426
429
  "xlink:href": `#${r.value.name}`
427
- }, null, 8, Hr)
430
+ }, null, 8, Ur)
428
431
  ])) : t.value === "img" ? (N(), W("img", {
429
432
  key: 2,
430
433
  src: r.value.name,
431
434
  class: "h-[1em] w-[1em]"
432
- }, null, 8, Ur)) : (N(), W(
435
+ }, null, 8, Vr)) : (N(), W(
433
436
  "i",
434
437
  {
435
438
  key: 3,
@@ -477,15 +480,15 @@ const xt = (o, a) => {
477
480
  null,
478
481
  6
479
482
  /* CLASS, STYLE */
480
- )) : t.value === "svg" ? (N(), W("svg", Vr, [
483
+ )) : t.value === "svg" ? (N(), W("svg", zr, [
481
484
  j("use", {
482
485
  "xlink:href": `#${r.value.name}`
483
- }, null, 8, zr)
486
+ }, null, 8, jr)
484
487
  ])) : t.value === "img" ? (N(), W("img", {
485
488
  key: 2,
486
489
  src: r.value.name,
487
490
  class: "h-[1em] w-[1em]"
488
- }, null, 8, jr)) : (N(), W(
491
+ }, null, 8, Wr)) : (N(), W(
489
492
  "i",
490
493
  {
491
494
  key: 3,
@@ -521,7 +524,7 @@ const xt = (o, a) => {
521
524
  };
522
525
  }
523
526
  });
524
- const Gr = /* @__PURE__ */ xt(Wr, [["__scopeId", "data-v-52806adf"]]), Cn = et(Gr), Kr = /* @__PURE__ */ Q({
527
+ const Kr = /* @__PURE__ */ xt(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(Kr), Yr = /* @__PURE__ */ Q({
525
528
  __name: "CloseIcon",
526
529
  props: {
527
530
  showBg: {
@@ -540,7 +543,7 @@ const Gr = /* @__PURE__ */ xt(Wr, [["__scopeId", "data-v-52806adf"]]), Cn = et(G
540
543
  class: Y({ "exit-main-page-maximize": o.showBg && o.fullscreen })
541
544
  },
542
545
  [
543
- K(P(Cn), {
546
+ K(P(kn), {
544
547
  name: "iksvg_guanbidanchuang",
545
548
  title: "关闭",
546
549
  size: 20,
@@ -552,7 +555,7 @@ const Gr = /* @__PURE__ */ xt(Wr, [["__scopeId", "data-v-52806adf"]]), Cn = et(G
552
555
  ));
553
556
  }
554
557
  });
555
- const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { class: "base-header" }, Xr = /* @__PURE__ */ Q({
558
+ const $r = /* @__PURE__ */ xt(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { class: "base-header" }, qr = /* @__PURE__ */ Q({
556
559
  __name: "IkBaseDialog",
557
560
  props: /* @__PURE__ */ vt({
558
561
  title: { default: "" },
@@ -577,7 +580,7 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
577
580
  t.value = !t.value;
578
581
  }, i = Q({
579
582
  setup() {
580
- return () => Qn(Yr, {
583
+ return () => er($r, {
581
584
  showBg: a.showCloseBg,
582
585
  fullscreen: a.fullscreen
583
586
  });
@@ -585,7 +588,7 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
585
588
  });
586
589
  return (n, s) => {
587
590
  const l = pt("el-dialog");
588
- return N(), De(l, er({
591
+ return N(), De(l, tr({
589
592
  modelValue: r.value,
590
593
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
591
594
  "align-center": ""
@@ -594,7 +597,7 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
594
597
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
595
598
  fullscreen: t.value,
596
599
  "modal-class": "baseDialog"
597
- }), tr({
600
+ }), ir({
598
601
  icon: Z(() => [
599
602
  Je(n.$slots, "title", {}, () => [
600
603
  qt(
@@ -605,7 +608,7 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
605
608
  ])
606
609
  ]),
607
610
  header: Z(() => [
608
- j("div", $r, [
611
+ j("div", Xr, [
609
612
  Je(n.$slots, "header", {}, () => [
610
613
  qt(
611
614
  Zt(n.title),
@@ -614,7 +617,7 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
614
617
  )
615
618
  ])
616
619
  ]),
617
- n.$attrs.showClose ? (N(), De(P(Cn), {
620
+ n.$attrs.showClose ? (N(), De(P(kn), {
618
621
  key: 0,
619
622
  onClick: e,
620
623
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -639,12 +642,12 @@ const Yr = /* @__PURE__ */ xt(Kr, [["__scopeId", "data-v-da39e979"]]), $r = { cl
639
642
  };
640
643
  }
641
644
  });
642
- const qr = et(Xr);
643
- var Zr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
645
+ const Zr = et(qr);
646
+ var Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
644
647
  function li(o) {
645
648
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
646
649
  }
647
- function Jr(o, a, r, t) {
650
+ function Qr(o, a, r, t) {
648
651
  function e(i) {
649
652
  return i instanceof r ? i : new r(function(n) {
650
653
  n(i);
@@ -671,7 +674,7 @@ function Jr(o, a, r, t) {
671
674
  u((t = t.apply(o, a || [])).next());
672
675
  });
673
676
  }
674
- function Qr(o, a) {
677
+ function es(o, a) {
675
678
  var r = { label: 0, sent: function() {
676
679
  if (i[0] & 1)
677
680
  throw i[1];
@@ -736,9 +739,9 @@ function Qr(o, a) {
736
739
  return { value: u[0] ? u[1] : void 0, done: !0 };
737
740
  }
738
741
  }
739
- var es = function(o, a) {
740
- return Jr(void 0, void 0, void 0, function() {
741
- return Qr(this, function(r) {
742
+ var ts = function(o, a) {
743
+ return Qr(void 0, void 0, void 0, function() {
744
+ return es(this, function(r) {
742
745
  return [2, new Promise(function(t, e) {
743
746
  try {
744
747
  if (window.DocsAPI)
@@ -750,12 +753,12 @@ var es = function(o, a) {
750
753
  if (!l) {
751
754
  if (clearInterval(n), window.DocsAPI)
752
755
  return t(null);
753
- var u = Di(a, o, t, e);
756
+ var u = Ri(a, o, t, e);
754
757
  i.remove(), document.body.appendChild(u);
755
758
  }
756
759
  }, 500);
757
760
  else {
758
- var s = Di(a, o, t, e);
761
+ var s = Ri(a, o, t, e);
759
762
  document.body.appendChild(s);
760
763
  }
761
764
  } catch (l) {
@@ -764,7 +767,7 @@ var es = function(o, a) {
764
767
  })];
765
768
  });
766
769
  });
767
- }, Di = function(o, a, r, t) {
770
+ }, Ri = function(o, a, r, t) {
768
771
  var e = document.createElement("script");
769
772
  return e.id = o, e.type = "text/javascript", e.src = a, e.async = !0, e.onload = function() {
770
773
  e.removeAttribute("loading"), r(null);
@@ -826,7 +829,7 @@ var es = function(o, a) {
826
829
  var o = this, a = this.documentServerUrl;
827
830
  a.endsWith("/") || (a += "/");
828
831
  var r = "".concat(a, "web-apps/apps/api/documents/api.js");
829
- es(r, "onlyoffice-api-script").then(function() {
832
+ ts(r, "onlyoffice-api-script").then(function() {
830
833
  return o.onLoad();
831
834
  }).catch(function() {
832
835
  o.onError(-2);
@@ -940,13 +943,13 @@ var es = function(o, a) {
940
943
  }
941
944
  }
942
945
  });
943
- const ts = ["id"];
944
- function is(o, a, r, t, e, i) {
945
- return N(), W("div", { id: o.id }, null, 8, ts);
946
+ const is = ["id"];
947
+ function ns(o, a, r, t, e, i) {
948
+ return N(), W("div", { id: o.id }, null, 8, is);
946
949
  }
947
- ui.render = is;
950
+ ui.render = ns;
948
951
  ui.__file = "src/components/DocumentEditor.vue";
949
- const ns = /* @__PURE__ */ Q({
952
+ const rs = /* @__PURE__ */ Q({
950
953
  __name: "IkOnlyOffice",
951
954
  props: {
952
955
  // 文件服务器的服务的地址
@@ -994,55 +997,55 @@ const ns = /* @__PURE__ */ Q({
994
997
  ));
995
998
  }
996
999
  });
997
- const rs = /* @__PURE__ */ xt(ns, [["__scopeId", "data-v-98d51ef9"]]), ss = et(rs);
998
- var Ri;
999
- const kn = typeof window < "u", as = (o) => typeof o == "string", os = () => {
1000
+ const ss = /* @__PURE__ */ xt(rs, [["__scopeId", "data-v-98d51ef9"]]), as = et(ss);
1001
+ var Oi;
1002
+ const bn = typeof window < "u", os = (o) => typeof o == "string", ls = () => {
1000
1003
  };
1001
- kn && ((Ri = window == null ? void 0 : window.navigator) != null && Ri.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1002
- function bn(o) {
1004
+ bn && ((Oi = window == null ? void 0 : window.navigator) != null && Oi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1005
+ function wn(o) {
1003
1006
  return typeof o == "function" ? o() : P(o);
1004
1007
  }
1005
- function ls(o) {
1006
- return o;
1007
- }
1008
1008
  function us(o) {
1009
- return ir() ? (nr(o), !0) : !1;
1009
+ return o;
1010
1010
  }
1011
1011
  function cs(o) {
1012
+ return nr() ? (rr(o), !0) : !1;
1013
+ }
1014
+ function fs(o) {
1012
1015
  var a;
1013
- const r = bn(o);
1016
+ const r = wn(o);
1014
1017
  return (a = r == null ? void 0 : r.$el) != null ? a : r;
1015
1018
  }
1016
- const fs = kn ? window : void 0;
1019
+ const hs = bn ? window : void 0;
1017
1020
  function ct(...o) {
1018
1021
  let a, r, t, e;
1019
- if (as(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = fs) : [a, r, t, e] = o, !a)
1020
- return os;
1022
+ if (os(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = hs) : [a, r, t, e] = o, !a)
1023
+ return ls;
1021
1024
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1022
1025
  const i = [], n = () => {
1023
1026
  i.forEach((c) => c()), i.length = 0;
1024
- }, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [cs(a), bn(e)], ([c, h]) => {
1027
+ }, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [fs(a), wn(e)], ([c, h]) => {
1025
1028
  n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, h))));
1026
1029
  }, { immediate: !0, flush: "post" }), u = () => {
1027
1030
  l(), n();
1028
1031
  };
1029
- return us(u), u;
1032
+ return cs(u), u;
1030
1033
  }
1031
- const Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Mi = "__vueuse_ssr_handlers__";
1032
- Oi[Mi] = Oi[Mi] || {};
1033
- var Ni;
1034
+ const Mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ni = "__vueuse_ssr_handlers__";
1035
+ Mi[Ni] = Mi[Ni] || {};
1036
+ var Fi;
1034
1037
  (function(o) {
1035
1038
  o.UP = "UP", o.RIGHT = "RIGHT", o.DOWN = "DOWN", o.LEFT = "LEFT", o.NONE = "NONE";
1036
- })(Ni || (Ni = {}));
1037
- var hs = Object.defineProperty, Fi = Object.getOwnPropertySymbols, ds = Object.prototype.hasOwnProperty, gs = Object.prototype.propertyIsEnumerable, Bi = (o, a, r) => a in o ? hs(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, ps = (o, a) => {
1039
+ })(Fi || (Fi = {}));
1040
+ var ds = Object.defineProperty, Bi = Object.getOwnPropertySymbols, gs = Object.prototype.hasOwnProperty, ps = Object.prototype.propertyIsEnumerable, Hi = (o, a, r) => a in o ? ds(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, vs = (o, a) => {
1038
1041
  for (var r in a || (a = {}))
1039
- ds.call(a, r) && Bi(o, r, a[r]);
1040
- if (Fi)
1041
- for (var r of Fi(a))
1042
- gs.call(a, r) && Bi(o, r, a[r]);
1042
+ gs.call(a, r) && Hi(o, r, a[r]);
1043
+ if (Bi)
1044
+ for (var r of Bi(a))
1045
+ ps.call(a, r) && Hi(o, r, a[r]);
1043
1046
  return o;
1044
1047
  };
1045
- const vs = {
1048
+ const ms = {
1046
1049
  easeInSine: [0.12, 0, 0.39, 0],
1047
1050
  easeOutSine: [0.61, 1, 0.88, 1],
1048
1051
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1068,10 +1071,10 @@ const vs = {
1068
1071
  easeOutBack: [0.34, 1.56, 0.64, 1],
1069
1072
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1070
1073
  };
1071
- ps({
1072
- linear: ls
1073
- }, vs);
1074
- const ms = {
1074
+ vs({
1075
+ linear: us
1076
+ }, ms);
1077
+ const ys = {
1075
1078
  /**
1076
1079
  * @description preview link list.
1077
1080
  */
@@ -1141,26 +1144,26 @@ const ms = {
1141
1144
  crossorigin: {
1142
1145
  type: ["anonymous", "use-credentials", ""]
1143
1146
  }
1144
- }, ys = {
1147
+ }, _s = {
1145
1148
  close: () => !0,
1146
1149
  switch: (o) => Pi.isNumber(o),
1147
1150
  rotate: (o) => Pi.isNumber(o)
1148
- }, _s = ["src", "crossorigin"], Cs = /* @__PURE__ */ Q({
1151
+ }, Cs = ["src", "crossorigin"], ks = /* @__PURE__ */ Q({
1149
1152
  name: "ElImageViewer",
1150
1153
  __name: "IkImageViewer",
1151
- props: ms,
1152
- emits: ys,
1154
+ props: ys,
1155
+ emits: _s,
1153
1156
  setup(o, { expose: a, emit: r }) {
1154
1157
  const t = (D) => Object.keys(D), e = {
1155
1158
  CONTAIN: {
1156
1159
  name: "contain",
1157
- icon: Ii(Tr)
1160
+ icon: Ii(Er)
1158
1161
  },
1159
1162
  ORIGINAL: {
1160
1163
  name: "original",
1161
- icon: Ii(Lr)
1164
+ icon: Ii(Ar)
1162
1165
  }
1163
- }, i = o, n = r, { t: s } = gr(), l = yn("image-viewer"), { nextZIndex: u } = pr(), c = Ce(), h = Ce([]), d = rr(), g = Ce(!0), p = Ce(i.initialIndex), y = sr(e.CONTAIN), m = Ce({
1166
+ }, i = o, n = r, { t: s } = pr(), l = _n("image-viewer"), { nextZIndex: u } = vr(), c = Ce(), h = Ce([]), d = sr(), g = Ce(!0), p = Ce(i.initialIndex), y = ar(e.CONTAIN), m = Ce({
1164
1167
  scale: 1,
1165
1168
  deg: 0,
1166
1169
  offsetX: 0,
@@ -1309,7 +1312,7 @@ const ms = {
1309
1312
  });
1310
1313
  }), at(p, (D) => {
1311
1314
  bi(), n("switch", D);
1312
- }), ar(() => {
1315
+ }), or(() => {
1313
1316
  var D, V;
1314
1317
  F(), (V = (D = c.value) == null ? void 0 : D.focus) == null || V.call(D);
1315
1318
  }), a({
@@ -1317,8 +1320,8 @@ const ms = {
1317
1320
  * @description manually switch image
1318
1321
  */
1319
1322
  setActiveItem: Rt
1320
- }), (D, V) => (N(), De(pn, { to: "body" }, [
1321
- K(vn, {
1323
+ }), (D, V) => (N(), De(vn, { to: "body" }, [
1324
+ K(mn, {
1322
1325
  name: "viewer-fade",
1323
1326
  appear: ""
1324
1327
  }, {
@@ -1337,7 +1340,7 @@ const ms = {
1337
1340
  "div",
1338
1341
  {
1339
1342
  class: Y(P(l).e("mask")),
1340
- onClick: V[0] || (V[0] = or(($) => D.hideOnClickModal && q(), ["self"]))
1343
+ onClick: V[0] || (V[0] = lr(($) => D.hideOnClickModal && q(), ["self"]))
1341
1344
  },
1342
1345
  null,
1343
1346
  2
@@ -1353,7 +1356,7 @@ const ms = {
1353
1356
  [
1354
1357
  K(P(Ie), null, {
1355
1358
  default: Z(() => [
1356
- K(P(_n))
1359
+ K(P(Cn))
1357
1360
  ]),
1358
1361
  _: 1
1359
1362
  /* STABLE */
@@ -1376,7 +1379,7 @@ const ms = {
1376
1379
  [
1377
1380
  K(P(Ie), null, {
1378
1381
  default: Z(() => [
1379
- K(P(_r))
1382
+ K(P(Cr))
1380
1383
  ]),
1381
1384
  _: 1
1382
1385
  /* STABLE */
@@ -1394,7 +1397,7 @@ const ms = {
1394
1397
  [
1395
1398
  K(P(Ie), null, {
1396
1399
  default: Z(() => [
1397
- K(P(kr))
1400
+ K(P(br))
1398
1401
  ]),
1399
1402
  _: 1
1400
1403
  /* STABLE */
@@ -1424,7 +1427,7 @@ const ms = {
1424
1427
  onClick: V[1] || (V[1] = ($) => Fe("zoomOut"))
1425
1428
  }, {
1426
1429
  default: Z(() => [
1427
- K(P(Or))
1430
+ K(P(Mr))
1428
1431
  ]),
1429
1432
  _: 1
1430
1433
  /* STABLE */
@@ -1433,7 +1436,7 @@ const ms = {
1433
1436
  onClick: V[2] || (V[2] = ($) => Fe("zoomIn"))
1434
1437
  }, {
1435
1438
  default: Z(() => [
1436
- K(P(Dr))
1439
+ K(P(Rr))
1437
1440
  ]),
1438
1441
  _: 1
1439
1442
  /* STABLE */
@@ -1449,7 +1452,7 @@ const ms = {
1449
1452
  ),
1450
1453
  K(P(Ie), { onClick: wi }, {
1451
1454
  default: Z(() => [
1452
- (N(), De(lr(y.value.icon)))
1455
+ (N(), De(ur(y.value.icon)))
1453
1456
  ]),
1454
1457
  _: 1
1455
1458
  /* STABLE */
@@ -1467,7 +1470,7 @@ const ms = {
1467
1470
  onClick: V[3] || (V[3] = ($) => Fe("anticlockwise"))
1468
1471
  }, {
1469
1472
  default: Z(() => [
1470
- K(P(Sr))
1473
+ K(P(xr))
1471
1474
  ]),
1472
1475
  _: 1
1473
1476
  /* STABLE */
@@ -1476,7 +1479,7 @@ const ms = {
1476
1479
  onClick: V[4] || (V[4] = ($) => Fe("clockwise"))
1477
1480
  }, {
1478
1481
  default: Z(() => [
1479
- K(P(Ir))
1482
+ K(P(Pr))
1480
1483
  ]),
1481
1484
  _: 1
1482
1485
  /* STABLE */
@@ -1499,7 +1502,7 @@ const ms = {
1499
1502
  (N(!0), W(
1500
1503
  Jt,
1501
1504
  null,
1502
- ur(D.urlList, ($, he) => cr((N(), W("img", {
1505
+ cr(D.urlList, ($, he) => fr((N(), W("img", {
1503
1506
  ref_for: !0,
1504
1507
  ref: (pe) => h.value[he] = pe,
1505
1508
  key: $,
@@ -1510,8 +1513,8 @@ const ms = {
1510
1513
  onLoad: oe,
1511
1514
  onError: le,
1512
1515
  onMousedown: ke
1513
- }, null, 46, _s)), [
1514
- [fr, he === p.value]
1516
+ }, null, 46, Cs)), [
1517
+ [hr, he === p.value]
1515
1518
  ])),
1516
1519
  128
1517
1520
  /* KEYED_FRAGMENT */
@@ -1531,8 +1534,8 @@ const ms = {
1531
1534
  })
1532
1535
  ]));
1533
1536
  }
1534
- }), ks = et(Cs);
1535
- function Hi(o, a) {
1537
+ }), bs = et(ks);
1538
+ function Ui(o, a) {
1536
1539
  var r = Object.keys(o);
1537
1540
  if (Object.getOwnPropertySymbols) {
1538
1541
  var t = Object.getOwnPropertySymbols(o);
@@ -1545,9 +1548,9 @@ function Hi(o, a) {
1545
1548
  function X(o) {
1546
1549
  for (var a = 1; a < arguments.length; a++) {
1547
1550
  var r = arguments[a] != null ? arguments[a] : {};
1548
- a % 2 ? Hi(Object(r), !0).forEach(function(t) {
1551
+ a % 2 ? Ui(Object(r), !0).forEach(function(t) {
1549
1552
  _(o, t, r[t]);
1550
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : Hi(Object(r)).forEach(function(t) {
1553
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : Ui(Object(r)).forEach(function(t) {
1551
1554
  Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(r, t));
1552
1555
  });
1553
1556
  }
@@ -1565,19 +1568,19 @@ function T(o, a) {
1565
1568
  if (!(o instanceof a))
1566
1569
  throw new TypeError("Cannot call a class as a function");
1567
1570
  }
1568
- function Ui(o, a) {
1571
+ function Vi(o, a) {
1569
1572
  for (var r = 0; r < a.length; r++) {
1570
1573
  var t = a[r];
1571
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, wn(t.key), t);
1574
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, Tn(t.key), t);
1572
1575
  }
1573
1576
  }
1574
1577
  function E(o, a, r) {
1575
- return a && Ui(o.prototype, a), r && Ui(o, r), Object.defineProperty(o, "prototype", {
1578
+ return a && Vi(o.prototype, a), r && Vi(o, r), Object.defineProperty(o, "prototype", {
1576
1579
  writable: !1
1577
1580
  }), o;
1578
1581
  }
1579
1582
  function _(o, a, r) {
1580
- return a = wn(a), a in o ? Object.defineProperty(o, a, {
1583
+ return a = Tn(a), a in o ? Object.defineProperty(o, a, {
1581
1584
  value: r,
1582
1585
  enumerable: !0,
1583
1586
  configurable: !0,
@@ -1607,7 +1610,7 @@ function ei(o, a) {
1607
1610
  return t.__proto__ = e, t;
1608
1611
  }, ei(o, a);
1609
1612
  }
1610
- function bs() {
1613
+ function ws() {
1611
1614
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1612
1615
  return !1;
1613
1616
  if (typeof Proxy == "function")
@@ -1632,7 +1635,7 @@ function ci(o, a) {
1632
1635
  return v(o);
1633
1636
  }
1634
1637
  function x(o) {
1635
- var a = bs();
1638
+ var a = ws();
1636
1639
  return function() {
1637
1640
  var t = I(o), e;
1638
1641
  if (a) {
@@ -1643,14 +1646,14 @@ function x(o) {
1643
1646
  return ci(this, e);
1644
1647
  };
1645
1648
  }
1646
- function ws(o, a) {
1649
+ function Ts(o, a) {
1647
1650
  for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = I(o), o !== null); )
1648
1651
  ;
1649
1652
  return o;
1650
1653
  }
1651
1654
  function L() {
1652
1655
  return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(a, r, t) {
1653
- var e = ws(a, r);
1656
+ var e = Ts(a, r);
1654
1657
  if (e) {
1655
1658
  var i = Object.getOwnPropertyDescriptor(e, r);
1656
1659
  return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
@@ -1658,17 +1661,17 @@ function L() {
1658
1661
  }, L.apply(this, arguments);
1659
1662
  }
1660
1663
  function de(o) {
1661
- return Ts(o) || Es(o) || Ss(o) || xs();
1664
+ return Es(o) || Ss(o) || xs(o) || Is();
1662
1665
  }
1663
- function Ts(o) {
1666
+ function Es(o) {
1664
1667
  if (Array.isArray(o))
1665
1668
  return ti(o);
1666
1669
  }
1667
- function Es(o) {
1670
+ function Ss(o) {
1668
1671
  if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
1669
1672
  return Array.from(o);
1670
1673
  }
1671
- function Ss(o, a) {
1674
+ function xs(o, a) {
1672
1675
  if (o) {
1673
1676
  if (typeof o == "string")
1674
1677
  return ti(o, a);
@@ -1685,11 +1688,11 @@ function ti(o, a) {
1685
1688
  t[r] = o[r];
1686
1689
  return t;
1687
1690
  }
1688
- function xs() {
1691
+ function Is() {
1689
1692
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1690
1693
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1691
1694
  }
1692
- function Is(o, a) {
1695
+ function Ps(o, a) {
1693
1696
  if (typeof o != "object" || o === null)
1694
1697
  return o;
1695
1698
  var r = o[Symbol.toPrimitive];
@@ -1701,11 +1704,11 @@ function Is(o, a) {
1701
1704
  }
1702
1705
  return (a === "string" ? String : Number)(o);
1703
1706
  }
1704
- function wn(o) {
1705
- var a = Is(o, "string");
1707
+ function Tn(o) {
1708
+ var a = Ps(o, "string");
1706
1709
  return typeof a == "symbol" ? a : String(a);
1707
1710
  }
1708
- var Tn = { exports: {} };
1711
+ var En = { exports: {} };
1709
1712
  (function(o) {
1710
1713
  var a = Object.prototype.hasOwnProperty, r = "~";
1711
1714
  function t() {
@@ -1815,16 +1818,16 @@ var Tn = { exports: {} };
1815
1818
  var c;
1816
1819
  return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
1817
1820
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, o.exports = s;
1818
- })(Tn);
1819
- var En = Tn.exports;
1820
- const Sn = /* @__PURE__ */ li(En);
1821
- var Ps = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Nt = {
1821
+ })(En);
1822
+ var Sn = En.exports;
1823
+ const xn = /* @__PURE__ */ li(Sn);
1824
+ var Ls = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Nt = {
1822
1825
  info: "color: #525252; background-color: #90ee90;",
1823
1826
  error: "color: #525252; background-color: red;",
1824
1827
  warn: "color: #525252; background-color: yellow; "
1825
1828
  }, Ft = "%c[xgplayer]", M = {
1826
1829
  config: {
1827
- debug: Ps ? 3 : 0
1830
+ debug: Ls ? 3 : 0
1828
1831
  },
1829
1832
  logInfo: function(a) {
1830
1833
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
@@ -1845,10 +1848,10 @@ var Ps = typeof window < "u" && window.location && window.location.href.indexOf(
1845
1848
  }
1846
1849
  }
1847
1850
  };
1848
- function Ls(o) {
1851
+ function As(o) {
1849
1852
  o.logInfo = M.logInfo.bind(o), o.logWarn = M.logWarn.bind(o), o.logError = M.logError.bind(o);
1850
1853
  }
1851
- var As = /* @__PURE__ */ function() {
1854
+ var Ds = /* @__PURE__ */ function() {
1852
1855
  function o(a) {
1853
1856
  T(this, o), this.bufferedList = a;
1854
1857
  }
@@ -2094,7 +2097,7 @@ f.setStyleFromCsstext = function(o, a) {
2094
2097
  o.style[t] = a[t];
2095
2098
  });
2096
2099
  };
2097
- function Ds(o, a) {
2100
+ function Rs(o, a) {
2098
2101
  for (var r = 0, t = a.length; r < t; r++)
2099
2102
  if (o.indexOf(a[r]) > -1)
2100
2103
  return !0;
@@ -2108,7 +2111,7 @@ f.filterStyleFromText = function(o) {
2108
2111
  return t.map(function(n) {
2109
2112
  if (n) {
2110
2113
  var s = n.split(":");
2111
- s.length > 1 && (Ds(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2114
+ s.length > 1 && (Rs(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2112
2115
  }
2113
2116
  }), o.setAttribute("style", ""), Object.keys(i).map(function(n) {
2114
2117
  o.style[n] = i[n];
@@ -2173,7 +2176,7 @@ f.getBuffered2 = function(o) {
2173
2176
  }
2174
2177
  else
2175
2178
  e = r;
2176
- return new As(e);
2179
+ return new Ds(e);
2177
2180
  };
2178
2181
  f.getEventPos = function(o) {
2179
2182
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -2293,15 +2296,15 @@ f.getCurrentTimeByOffset = function(o, a) {
2293
2296
  }
2294
2297
  return o;
2295
2298
  };
2296
- function xn(o) {
2299
+ function In(o) {
2297
2300
  var a = re(o);
2298
2301
  return o !== null && (a === "object" || a === "function");
2299
2302
  }
2300
- function Rs(o, a, r) {
2303
+ function Os(o, a, r) {
2301
2304
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
2302
2305
  if (typeof o != "function")
2303
2306
  throw new TypeError("Expected a function");
2304
- a = +a || 0, xn(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
2307
+ a = +a || 0, In(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
2305
2308
  function p(F) {
2306
2309
  var ie = t, oe = e;
2307
2310
  return t = e = void 0, u = F, n = o.apply(oe, ie), n;
@@ -2356,30 +2359,30 @@ function Rs(o, a, r) {
2356
2359
  }
2357
2360
  return q.cancel = z, q.flush = A, q.pending = ee, q;
2358
2361
  }
2359
- function Os(o, a, r) {
2362
+ function Ms(o, a, r) {
2360
2363
  var t = !0, e = !0;
2361
2364
  if (typeof o != "function")
2362
2365
  throw new TypeError("Expected a function");
2363
- return xn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Rs(o, a, {
2366
+ return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Os(o, a, {
2364
2367
  leading: t,
2365
2368
  trailing: e,
2366
2369
  maxWait: a
2367
2370
  });
2368
2371
  }
2369
- function Ms() {
2372
+ function Ns() {
2370
2373
  var o = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
2371
2374
  return o === "zh-cn" && (o = "zh"), o;
2372
2375
  }
2373
- function Ns(o, a, r) {
2376
+ function Fs(o, a, r) {
2374
2377
  if (o) {
2375
2378
  var t = o.getAttribute(r);
2376
2379
  return !!(t && t === a && (o.tagName === "VIDEO" || o.tagName === "AUDIO"));
2377
2380
  }
2378
2381
  }
2379
- var Vi = {
2382
+ var zi = {
2380
2383
  android: /(Android)\s([\d.]+)/,
2381
2384
  ios: /(Version)\/([\d.]+)/
2382
- }, Fs = ["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"], R = {
2385
+ }, Bs = ["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"], R = {
2383
2386
  get device() {
2384
2387
  var o = R.os;
2385
2388
  return o.isPc ? "pc" : "mobile";
@@ -2418,7 +2421,7 @@ var Vi = {
2418
2421
  if (typeof navigator > "u")
2419
2422
  return 0;
2420
2423
  var o = navigator.userAgent, a = "";
2421
- /(?:iPhone)|(?:iPad|PlayBook)/.test(o) ? a = Vi.ios : a = Vi.android;
2424
+ /(?:iPhone)|(?:iPad|PlayBook)/.test(o) ? a = zi.ios : a = zi.android;
2422
2425
  var r = a ? a.exec(o) : [];
2423
2426
  if (r && r.length >= 3) {
2424
2427
  var t = r[2].split(".");
@@ -2442,7 +2445,7 @@ var Vi = {
2442
2445
  if (this.supportResult)
2443
2446
  return this.supportResult;
2444
2447
  var r = document.createElement("video");
2445
- return typeof r.canPlayType == "function" && Fs.map(function(t) {
2448
+ return typeof r.canPlayType == "function" && Bs.map(function(t) {
2446
2449
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
2447
2450
  }), this.supportResult = a, r = null, a;
2448
2451
  },
@@ -2481,14 +2484,14 @@ var Vi = {
2481
2484
  return Promise.resolve(r);
2482
2485
  }
2483
2486
  }
2484
- }, ii = "3.0.18", zi = {
2487
+ }, ii = "3.0.18", ji = {
2485
2488
  1: "media",
2486
2489
  2: "media",
2487
2490
  3: "media",
2488
2491
  4: "media",
2489
2492
  5: "media",
2490
2493
  6: "media"
2491
- }, ji = {
2494
+ }, Wi = {
2492
2495
  1: 5101,
2493
2496
  2: 5102,
2494
2497
  3: 5103,
@@ -2509,7 +2512,7 @@ var Vi = {
2509
2512
  var t = a && a.i18n ? a.i18n.ERROR_TYPES : null;
2510
2513
  if (a.media) {
2511
2514
  var e = r.mediaError ? r.mediaError : a.media.error || {}, i = a.duration, n = a.currentTime, s = a.ended, l = a.src, u = a.currentSrc, c = a.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
2512
- ji[g] && (g = ji[g]);
2515
+ Wi[g] && (g = Wi[g]);
2513
2516
  var p = {
2514
2517
  playerVersion: ii,
2515
2518
  currentTime: n,
@@ -2537,21 +2540,21 @@ var Vi = {
2537
2540
  return y.ex = t ? (t[arguments[0]] || {}).msg : "", y;
2538
2541
  }
2539
2542
  }
2540
- ), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", It = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Bs = "canplaythrough", Me = "durationchange", In = "volumechange", Se = "loadeddata", Hs = "loadedmetadata", Pn = "ratechange", Ln = "progress", hi = "loadstart", ze = "emptied", Us = "stalled", Vs = "suspend", zs = "abort", js = "bufferedChange", di = "focus", An = "blur", gi = "ready", Dn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", Pt = "complete", yt = "replay", vi = "destroy", Lt = "urlchange", ni = "download_speed_change", Rn = "leaveplayer", On = "enterplayer", Mn = "loading", be = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Ws = "before_definition_change", ri = "after_definition_change", Gs = "SEI_PARSED", Ks = "retry", Re = "video_resize", si = "pip_change", Nn = "rotate", Fn = "screenShot", kt = "playnext", Bn = "shortcut", Hn = "xglog", bt = "user_action", At = "reset", Un = "source_error", Vn = "source_success", Ys = "switch_subtitle", zn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], jn = {
2543
+ ), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", It = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Hs = "canplaythrough", Me = "durationchange", Pn = "volumechange", Se = "loadeddata", Us = "loadedmetadata", Ln = "ratechange", An = "progress", hi = "loadstart", ze = "emptied", Vs = "stalled", zs = "suspend", js = "abort", Ws = "bufferedChange", di = "focus", Dn = "blur", gi = "ready", Rn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", Pt = "complete", yt = "replay", vi = "destroy", Lt = "urlchange", ni = "download_speed_change", On = "leaveplayer", Mn = "enterplayer", Nn = "loading", be = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Gs = "before_definition_change", ri = "after_definition_change", Ks = "SEI_PARSED", Ys = "retry", Re = "video_resize", si = "pip_change", Fn = "rotate", Bn = "screenShot", kt = "playnext", Hn = "shortcut", Un = "xglog", bt = "user_action", At = "reset", Vn = "source_error", zn = "source_success", $s = "switch_subtitle", jn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Wn = {
2541
2544
  STATS_INFO: "stats_info",
2542
2545
  STATS_DOWNLOAD: "stats_download",
2543
2546
  STATS_RESET: "stats_reset"
2544
- }, Wn = "fps_stuck";
2545
- const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2547
+ }, Gn = "fps_stuck";
2548
+ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2546
2549
  __proto__: null,
2547
- ABORT: zs,
2550
+ ABORT: js,
2548
2551
  AFTER_DEFINITION_CHANGE: ri,
2549
2552
  AUTOPLAY_PREVENTED: pi,
2550
2553
  AUTOPLAY_STARTED: Ue,
2551
- BEFORE_DEFINITION_CHANGE: Ws,
2552
- BUFFER_CHANGE: js,
2554
+ BEFORE_DEFINITION_CHANGE: Gs,
2555
+ BUFFER_CHANGE: Ws,
2553
2556
  CANPLAY: Te,
2554
- CANPLAY_THROUGH: Bs,
2557
+ CANPLAY_THROUGH: Hs,
2555
2558
  COMPLETE: Pt,
2556
2559
  CSS_FULLSCREEN_CHANGE: _t,
2557
2560
  DEFINITION_CHANGE: mi,
@@ -2560,55 +2563,55 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2560
2563
  DURATION_CHANGE: Me,
2561
2564
  EMPTIED: ze,
2562
2565
  ENDED: Ve,
2563
- ENTER_PLAYER: On,
2566
+ ENTER_PLAYER: Mn,
2564
2567
  ERROR: lt,
2565
- FPS_STUCK: Wn,
2568
+ FPS_STUCK: Gn,
2566
2569
  FULLSCREEN_CHANGE: be,
2567
- LEAVE_PLAYER: Rn,
2570
+ LEAVE_PLAYER: On,
2568
2571
  LOADED_DATA: Se,
2569
- LOADED_METADATA: Hs,
2570
- LOADING: Mn,
2572
+ LOADED_METADATA: Us,
2573
+ LOADING: Nn,
2571
2574
  LOAD_START: hi,
2572
2575
  MINI_STATE_CHANGE: Ct,
2573
2576
  PAUSE: tt,
2574
2577
  PIP_CHANGE: si,
2575
2578
  PLAY: fe,
2576
- PLAYER_BLUR: An,
2579
+ PLAYER_BLUR: Dn,
2577
2580
  PLAYER_FOCUS: di,
2578
2581
  PLAYING: fi,
2579
2582
  PLAYNEXT: kt,
2580
- PROGRESS: Ln,
2581
- RATE_CHANGE: Pn,
2583
+ PROGRESS: An,
2584
+ RATE_CHANGE: Ln,
2582
2585
  READY: gi,
2583
2586
  REPLAY: yt,
2584
2587
  RESET: At,
2585
- RETRY: Ks,
2586
- ROTATE: Nn,
2587
- SCREEN_SHOT: Fn,
2588
+ RETRY: Ys,
2589
+ ROTATE: Fn,
2590
+ SCREEN_SHOT: Bn,
2588
2591
  SEEKED: Ee,
2589
2592
  SEEKING: It,
2590
- SEI_PARSED: Gs,
2591
- SHORTCUT: Bn,
2592
- SOURCE_ERROR: Un,
2593
- SOURCE_SUCCESS: Vn,
2594
- STALLED: Us,
2595
- STATS_EVENTS: jn,
2596
- SUSPEND: Vs,
2597
- SWITCH_SUBTITLE: Ys,
2593
+ SEI_PARSED: Ks,
2594
+ SHORTCUT: Hn,
2595
+ SOURCE_ERROR: Vn,
2596
+ SOURCE_SUCCESS: zn,
2597
+ STALLED: Vs,
2598
+ STATS_EVENTS: Wn,
2599
+ SUSPEND: zs,
2600
+ SWITCH_SUBTITLE: $s,
2598
2601
  TIME_UPDATE: ce,
2599
2602
  URL_CHANGE: Lt,
2600
- URL_NULL: Dn,
2603
+ URL_NULL: Rn,
2601
2604
  USER_ACTION: bt,
2602
- VIDEO_EVENTS: zn,
2605
+ VIDEO_EVENTS: jn,
2603
2606
  VIDEO_RESIZE: Re,
2604
- VOLUME_CHANGE: In,
2607
+ VOLUME_CHANGE: Pn,
2605
2608
  WAITING: ut,
2606
- XGLOG: Hn
2609
+ XGLOG: Un
2607
2610
  }, Symbol.toStringTag, { value: "Module" }));
2608
2611
  function Bt(o, a) {
2609
2612
  !this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
2610
2613
  }
2611
- function Xs(o, a) {
2614
+ function qs(o, a) {
2612
2615
  return function(r, t) {
2613
2616
  var e = {
2614
2617
  player: a,
@@ -2643,7 +2646,7 @@ function Xs(o, a) {
2643
2646
  Bt.call(a, o, e);
2644
2647
  };
2645
2648
  }
2646
- var qs = /* @__PURE__ */ function(o) {
2649
+ var Zs = /* @__PURE__ */ function(o) {
2647
2650
  S(r, o);
2648
2651
  var a = x(r);
2649
2652
  function r(t) {
@@ -2685,9 +2688,9 @@ var qs = /* @__PURE__ */ function(o) {
2685
2688
  key: "attachVideoEvents",
2686
2689
  value: function() {
2687
2690
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2688
- this._evHandlers || (this._evHandlers = zn.map(function(n) {
2691
+ this._evHandlers || (this._evHandlers = jn.map(function(n) {
2689
2692
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2690
- return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Xs(n, e));
2693
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, qs(n, e));
2691
2694
  })), this._evHandlers.forEach(function(n) {
2692
2695
  var s = Object.keys(n)[0];
2693
2696
  i.addEventListener(s, n[s], !1);
@@ -2719,7 +2722,7 @@ var qs = /* @__PURE__ */ function(o) {
2719
2722
  var s = e.children;
2720
2723
  if (s) {
2721
2724
  this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
2722
- n.emit(Vn, {
2725
+ n.emit(zn, {
2723
2726
  src: h.target.currentSrc,
2724
2727
  host: f.getHostFromUrl(h.target.currentSrc)
2725
2728
  });
@@ -2738,8 +2741,8 @@ var qs = /* @__PURE__ */ function(o) {
2738
2741
  };
2739
2742
  l ? l.error(h, g) : n.errorHandler("error", g);
2740
2743
  }
2741
- var p = zi[4];
2742
- n.emit(Un, new mt(n, {
2744
+ var p = ji[4];
2745
+ n.emit(Vn, new mt(n, {
2743
2746
  errorType: p,
2744
2747
  errorCode: 4,
2745
2748
  errorMessage: "sources_load_error",
@@ -2772,7 +2775,7 @@ var qs = /* @__PURE__ */ function(o) {
2772
2775
  value: function(e) {
2773
2776
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
2774
2777
  if (this.media && (this.media.error || i)) {
2775
- var n = this.media.error || i, s = n.code ? zi[n.code] : "other", l = n.message;
2778
+ var n = this.media.error || i, s = n.code ? ji[n.code] : "other", l = n.message;
2776
2779
  this.media.currentSrc || (l = "empty_src", n = {
2777
2780
  code: 6,
2778
2781
  message: l
@@ -3061,7 +3064,7 @@ var qs = /* @__PURE__ */ function(o) {
3061
3064
  L(I(r.prototype), "removeAllListeners", this).call(this);
3062
3065
  }
3063
3066
  }]), r;
3064
- }(Sn), Zs = /* @__PURE__ */ function() {
3067
+ }(xn), Js = /* @__PURE__ */ function() {
3065
3068
  function o() {
3066
3069
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3067
3070
  name: "xgplayer",
@@ -3139,7 +3142,7 @@ var qs = /* @__PURE__ */ function(o) {
3139
3142
  t.clear();
3140
3143
  }
3141
3144
  }]), o;
3142
- }(), Wi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Gi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Ki = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], He = "data-xgplayerid";
3145
+ }(), Gi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Ki = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], He = "data-xgplayerid";
3143
3146
  function ft(o, a, r) {
3144
3147
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3145
3148
  e[i - 3] = arguments[i];
@@ -3188,14 +3191,14 @@ function Et(o, a) {
3188
3191
  var r = this.__hooks;
3189
3192
  r && delete r[o];
3190
3193
  }
3191
- function Yi(o) {
3194
+ function $i(o) {
3192
3195
  if (!(!this.plugins || !this.plugins[o.toLowerCase()])) {
3193
3196
  for (var a = this.plugins[o.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
3194
3197
  t[e - 1] = arguments[e];
3195
3198
  return a.useHooks && a.useHooks.apply(a, t);
3196
3199
  }
3197
3200
  }
3198
- function $i(o) {
3201
+ function Xi(o) {
3199
3202
  if (!(!this.plugins || !this.plugins[o.toLowerCase()])) {
3200
3203
  var a = this.plugins[o.toLowerCase()];
3201
3204
  if (a) {
@@ -3205,7 +3208,7 @@ function $i(o) {
3205
3208
  }
3206
3209
  }
3207
3210
  }
3208
- function Gn(o) {
3211
+ function Kn(o) {
3209
3212
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3210
3213
  o.__hooks = {}, a && a.map(function(r) {
3211
3214
  o.__hooks[r] = null;
@@ -3218,7 +3221,7 @@ function Gn(o) {
3218
3221
  }
3219
3222
  });
3220
3223
  }
3221
- function Kn(o) {
3224
+ function Yn(o) {
3222
3225
  o.__hooks = null;
3223
3226
  }
3224
3227
  function we(o, a, r) {
@@ -3242,7 +3245,7 @@ function Ht(o, a) {
3242
3245
  }
3243
3246
  var Oe = /* @__PURE__ */ function() {
3244
3247
  function o(a) {
3245
- T(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Gn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
3248
+ T(this, o), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Kn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
3246
3249
  }
3247
3250
  return E(o, [{
3248
3251
  key: "beforeCreate",
@@ -3406,7 +3409,7 @@ var Oe = /* @__PURE__ */ function() {
3406
3409
  var r = this, t = this.player, e = this.pluginName;
3407
3410
  this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
3408
3411
  r[i] = null;
3409
- }), t.unRegisterPlugin(e), Kn(this);
3412
+ }), t.unRegisterPlugin(e), Yn(this);
3410
3413
  }
3411
3414
  }], [{
3412
3415
  key: "defineGetterOrSetter",
@@ -3425,40 +3428,40 @@ var Oe = /* @__PURE__ */ function() {
3425
3428
  return "pluginName";
3426
3429
  }
3427
3430
  }]), o;
3428
- }(), Js = 9;
3431
+ }(), Qs = 9;
3429
3432
  if (typeof Element < "u" && !Element.prototype.matches) {
3430
3433
  var Ge = Element.prototype;
3431
3434
  Ge.matches = Ge.matchesSelector || Ge.mozMatchesSelector || Ge.msMatchesSelector || Ge.oMatchesSelector || Ge.webkitMatchesSelector;
3432
3435
  }
3433
- function Qs(o, a) {
3434
- for (; o && o.nodeType !== Js; ) {
3436
+ function ea(o, a) {
3437
+ for (; o && o.nodeType !== Qs; ) {
3435
3438
  if (typeof o.matches == "function" && o.matches(a))
3436
3439
  return o;
3437
3440
  o = o.parentNode;
3438
3441
  }
3439
3442
  }
3440
- var ea = Qs, ta = ea;
3443
+ var ta = ea, ia = ta;
3441
3444
  function Ut(o, a, r, t, e) {
3442
- var i = na.apply(this, arguments);
3445
+ var i = ra.apply(this, arguments);
3443
3446
  return o.addEventListener(r, i, e), {
3444
3447
  destroy: function() {
3445
3448
  o.removeEventListener(r, i, e);
3446
3449
  }
3447
3450
  };
3448
3451
  }
3449
- function ia(o, a, r, t, e) {
3452
+ function na(o, a, r, t, e) {
3450
3453
  return typeof o.addEventListener == "function" ? Ut.apply(null, arguments) : typeof r == "function" ? Ut.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
3451
3454
  return Ut(i, a, r, t, e);
3452
3455
  }));
3453
3456
  }
3454
- function na(o, a, r, t) {
3457
+ function ra(o, a, r, t) {
3455
3458
  return function(e) {
3456
- e.delegateTarget = ta(e.target, a), e.delegateTarget && t.call(o, e);
3459
+ e.delegateTarget = ia(e.target, a), e.delegateTarget && t.call(o, e);
3457
3460
  };
3458
3461
  }
3459
- var ra = ia;
3460
- const Xi = /* @__PURE__ */ li(ra);
3461
- var sa = {
3462
+ var sa = na;
3463
+ const qi = /* @__PURE__ */ li(sa);
3464
+ var aa = {
3462
3465
  CONTROLS: "controls",
3463
3466
  ROOT: "root"
3464
3467
  }, G = {
@@ -3471,22 +3474,22 @@ var sa = {
3471
3474
  CONTROLS_RIGHT: "controlsRight",
3472
3475
  CONTROLS_CENTER: "controlsCenter",
3473
3476
  CONTROLS: "controls"
3474
- }, qi = {
3477
+ }, Zi = {
3475
3478
  ICON_DISABLE: "xg-icon-disable",
3476
3479
  ICON_HIDE: "xg-icon-hide"
3477
3480
  };
3478
3481
  function Vt(o) {
3479
3482
  return o ? o.indexOf && /^(?:http|data:|\/)/.test(o) : !1;
3480
3483
  }
3481
- function aa(o, a) {
3484
+ function oa(o, a) {
3482
3485
  return re(o) === "object" && o.class && typeof o.class == "string" ? "".concat(a, " ").concat(o.class) : a;
3483
3486
  }
3484
- function oa(o, a) {
3487
+ function la(o, a) {
3485
3488
  return re(o) === "object" && o.attr && re(o.attr) === "object" && Object.keys(o.attr).map(function(r) {
3486
3489
  a[r] = o.attr[r];
3487
3490
  }), a;
3488
3491
  }
3489
- function Zi(o, a) {
3492
+ function Ji(o, a) {
3490
3493
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, e = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", i = null;
3491
3494
  if (o instanceof window.Element)
3492
3495
  return f.addClass(o, r), Object.keys(t).map(function(n) {
@@ -3504,14 +3507,14 @@ function Zi(o, a) {
3504
3507
  }
3505
3508
  return typeof o == "string" ? f.createDomFromHtml(o, t, r) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
3506
3509
  }
3507
- function la(o, a) {
3510
+ function ua(o, a) {
3508
3511
  var r = a.config.icons || a.playerConfig.icons;
3509
3512
  Object.keys(o).map(function(t) {
3510
3513
  var e = o[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
3511
- r && r[t] && (i = aa(r[t], i), n = oa(r[t], n), s = Zi(r[t], t, i, n, a.pluginName)), !s && e && (s = Zi(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
3514
+ r && r[t] && (i = oa(r[t], i), n = la(r[t], n), s = Ji(r[t], t, i, n, a.pluginName)), !s && e && (s = Ji(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
3512
3515
  });
3513
3516
  }
3514
- function ua(o, a) {
3517
+ function ca(o, a) {
3515
3518
  Object.keys(o).map(function(r) {
3516
3519
  Object.defineProperty(a.langText, r, {
3517
3520
  get: function() {
@@ -3535,9 +3538,9 @@ var U = /* @__PURE__ */ function(o) {
3535
3538
  var i = e.root, n = null;
3536
3539
  this.icons = {}, this.root = null, this.parent = null;
3537
3540
  var s = this.registerIcons() || {};
3538
- la(s, this), this.langText = {};
3541
+ ua(s, this), this.langText = {};
3539
3542
  var l = this.registerLanguageTexts() || {};
3540
- ua(l, this);
3543
+ ca(l, this);
3541
3544
  var u = "";
3542
3545
  try {
3543
3546
  u = this.render();
@@ -3608,12 +3611,12 @@ var U = /* @__PURE__ */ function(o) {
3608
3611
  }, {
3609
3612
  key: "disable",
3610
3613
  value: function() {
3611
- this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), qi.ICON_DISABLE);
3614
+ this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), Zi.ICON_DISABLE);
3612
3615
  }
3613
3616
  }, {
3614
3617
  key: "enable",
3615
3618
  value: function() {
3616
- this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), qi.ICON_DISABLE);
3619
+ this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), Zi.ICON_DISABLE);
3617
3620
  }
3618
3621
  }, {
3619
3622
  key: "children",
@@ -3794,11 +3797,11 @@ var U = /* @__PURE__ */ function(o) {
3794
3797
  if (e instanceof window.Node && typeof s == "function")
3795
3798
  if (Array.isArray(n))
3796
3799
  n.forEach(function(h) {
3797
- var d = Xi(e, i, h, s, l);
3800
+ var d = qi(e, i, h, s, l);
3798
3801
  d.key = "".concat(i, "_").concat(h), u.push(d);
3799
3802
  });
3800
3803
  else {
3801
- var c = Xi(e, i, n, s, l);
3804
+ var c = qi(e, i, n, s, l);
3802
3805
  c.key = "".concat(i, "_").concat(n), u.push(c);
3803
3806
  }
3804
3807
  return u;
@@ -3806,7 +3809,7 @@ var U = /* @__PURE__ */ function(o) {
3806
3809
  }, {
3807
3810
  key: "ROOT_TYPES",
3808
3811
  get: function() {
3809
- return sa;
3812
+ return aa;
3810
3813
  }
3811
3814
  }, {
3812
3815
  key: "POSITIONS",
@@ -3814,7 +3817,7 @@ var U = /* @__PURE__ */ function(o) {
3814
3817
  return G;
3815
3818
  }
3816
3819
  }]), r;
3817
- }(Oe), ca = /* @__PURE__ */ function() {
3820
+ }(Oe), fa = /* @__PURE__ */ function() {
3818
3821
  function o() {
3819
3822
  var a = this;
3820
3823
  if (T(this, o), _(this, "__trigger", function(r) {
@@ -3824,7 +3827,7 @@ var U = /* @__PURE__ */ function(o) {
3824
3827
  a.__runHandler(r[e].target);
3825
3828
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
3826
3829
  try {
3827
- this.observer = new window.ResizeObserver(Os(this.__trigger, 100, {
3830
+ this.observer = new window.ResizeObserver(Ms(this.__trigger, 100, {
3828
3831
  trailing: !0
3829
3832
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
3830
3833
  } catch (r) {
@@ -3879,17 +3882,17 @@ var U = /* @__PURE__ */ function(o) {
3879
3882
  }
3880
3883
  }]), o;
3881
3884
  }(), st = null;
3882
- function fa(o, a) {
3883
- return st || (st = new ca()), st.addObserver(o, a), st;
3884
- }
3885
3885
  function ha(o, a) {
3886
+ return st || (st = new fa()), st.addObserver(o, a), st;
3887
+ }
3888
+ function da(o, a) {
3886
3889
  st.unObserver(o, a);
3887
3890
  }
3888
3891
  var te = {
3889
3892
  pluginGroup: {},
3890
3893
  init: function(a) {
3891
3894
  var r = a._pluginInfoId;
3892
- r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && fa(a.root, function() {
3895
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && ha(a.root, function() {
3893
3896
  a.resize();
3894
3897
  }), this.pluginGroup[r] = {
3895
3898
  _originalOptions: a.config || {},
@@ -4075,7 +4078,7 @@ var te = {
4075
4078
  destroy: function(a) {
4076
4079
  var r = a._pluginInfoId;
4077
4080
  if (this.pluginGroup[r]) {
4078
- ha(a.root);
4081
+ da(a.root);
4079
4082
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
4080
4083
  var n = i[e];
4081
4084
  this.unRegister(r, n);
@@ -4114,7 +4117,7 @@ var te = {
4114
4117
  MOBILE: "xgplayer-mobile",
4115
4118
  MINI: "xgplayer-mini"
4116
4119
  };
4117
- function Ji() {
4120
+ function Qi() {
4118
4121
  return {
4119
4122
  id: "",
4120
4123
  el: null,
@@ -4161,7 +4164,7 @@ function Ji() {
4161
4164
  ignores: [],
4162
4165
  whitelist: [],
4163
4166
  inactive: 3e3,
4164
- lang: Ms(),
4167
+ lang: Ns(),
4165
4168
  controls: !0,
4166
4169
  marginControls: !1,
4167
4170
  fullscreenTarget: null,
@@ -4197,7 +4200,7 @@ function Ji() {
4197
4200
  }
4198
4201
  };
4199
4202
  }
4200
- var da = function(a, r) {
4203
+ var ga = function(a, r) {
4201
4204
  var t, e, i;
4202
4205
  r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
4203
4206
  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;
@@ -4206,7 +4209,7 @@ var da = function(a, r) {
4206
4209
  });
4207
4210
  var y = a.config.i18n || [];
4208
4211
  p.push.apply(p, de(y)), a.config.i18n = p;
4209
- }, ga = /* @__PURE__ */ function(o) {
4212
+ }, pa = /* @__PURE__ */ function(o) {
4210
4213
  S(r, o);
4211
4214
  var a = x(r);
4212
4215
  function r() {
@@ -4367,7 +4370,7 @@ var da = function(a, r) {
4367
4370
  };
4368
4371
  }
4369
4372
  }]), r;
4370
- }(U), pa = {
4373
+ }(U), va = {
4371
4374
  LANG: "en",
4372
4375
  TEXT: {
4373
4376
  ERROR_TYPES: {
@@ -4457,12 +4460,12 @@ function ot(o, a) {
4457
4460
  t === "Object" ? (e !== "Object" && (o[r] = {}), ot(o[r], a[r])) : o[r] = a[r];
4458
4461
  }), o;
4459
4462
  }
4460
- function Yn() {
4463
+ function $n() {
4461
4464
  Object.keys(ue.lang.en).map(function(o) {
4462
4465
  ue.textKeys[o] = o;
4463
4466
  });
4464
4467
  }
4465
- function va(o, a) {
4468
+ function ma(o, a) {
4466
4469
  var r = [];
4467
4470
  if (a || (a = ue), !!a.lang) {
4468
4471
  f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
@@ -4475,17 +4478,17 @@ function va(o, a) {
4475
4478
  var t = a, e = t.lang;
4476
4479
  r.map(function(i) {
4477
4480
  i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) : yi(i, a);
4478
- }), Yn();
4481
+ }), $n();
4479
4482
  }
4480
4483
  }
4481
4484
  function yi(o, a) {
4482
4485
  var r = o.LANG;
4483
4486
  if (a || (a = ue), !!a.lang) {
4484
4487
  var t = o.TEXT || {};
4485
- r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), Yn();
4488
+ r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), $n();
4486
4489
  }
4487
4490
  }
4488
- function ma(o) {
4491
+ function ya(o) {
4489
4492
  var a, r = {
4490
4493
  lang: {},
4491
4494
  langKeys: [],
@@ -4494,7 +4497,7 @@ function ma(o) {
4494
4497
  };
4495
4498
  return ot(r.lang, ue.lang), (a = r.langKeys).push.apply(a, de(ue.langKeys)), ot(r.textKeys, ue.textKeys), r;
4496
4499
  }
4497
- yi(pa);
4500
+ yi(va);
4498
4501
  var Qe = {
4499
4502
  get textKeys() {
4500
4503
  return ue.textKeys;
@@ -4508,9 +4511,9 @@ var Qe = {
4508
4511
  o[a] = ue.lang[a];
4509
4512
  }), ue.lang["zh-cn"] && (o.zh = ue.lang["zh-cn"] || {}), o;
4510
4513
  },
4511
- extend: va,
4514
+ extend: ma,
4512
4515
  use: yi,
4513
- init: ma
4516
+ init: ya
4514
4517
  }, H = {
4515
4518
  INITIAL: 1,
4516
4519
  READY: 2,
@@ -4520,7 +4523,7 @@ var Qe = {
4520
4523
  RUNNING: 6,
4521
4524
  ENDED: 7,
4522
4525
  DESTROYED: 8
4523
- }, Qi = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, zt = null, $n = /* @__PURE__ */ function(o) {
4526
+ }, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, zt = null, Xn = /* @__PURE__ */ function(o) {
4524
4527
  S(r, o);
4525
4528
  var a = x(r);
4526
4529
  function r() {
@@ -4606,8 +4609,8 @@ var Qe = {
4606
4609
  return zt || (zt = new r()), zt;
4607
4610
  }
4608
4611
  }]), r;
4609
- }(En.EventEmitter);
4610
- function ya(o) {
4612
+ }(Sn.EventEmitter);
4613
+ function _a(o) {
4611
4614
  for (var a = Object.keys(se), r = 0; r < a.length; r++) {
4612
4615
  var t = se[a[r]];
4613
4616
  if (t.root === o)
@@ -4615,13 +4618,13 @@ function ya(o) {
4615
4618
  }
4616
4619
  return null;
4617
4620
  }
4618
- var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /* @__PURE__ */ function(o) {
4621
+ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /* @__PURE__ */ function(o) {
4619
4622
  S(r, o);
4620
4623
  var a = x(r);
4621
4624
  function r(t) {
4622
4625
  var e;
4623
4626
  T(this, r);
4624
- var i = f.deepMerge(Ji(), t);
4627
+ var i = f.deepMerge(Qi(), t);
4625
4628
  e = a.call(this, i), _(v(e), "canPlayFunc", function() {
4626
4629
  if (e.config) {
4627
4630
  var p = e.config, y = p.autoplay, m = p.defaultPlaybackRate;
@@ -4645,7 +4648,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4645
4648
  to: !1
4646
4649
  }]
4647
4650
  });
4648
- var w = Ns(k, e.playerId, He);
4651
+ var w = Fs(k, e.playerId, He);
4649
4652
  if (y || k && (k === e._fullscreenEl || w))
4650
4653
  m(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4651
4654
  else if (e.fullscreen) {
@@ -4665,7 +4668,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4665
4668
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4666
4669
  }), _(v(e), "_onWebkitendfullscreen", function(p) {
4667
4670
  e.onFullscreenChange(p, !1);
4668
- }), Gn(v(e), _a), e.config = i, e._pluginInfoId = f.generateSessionId(), Ls(v(e));
4671
+ }), Kn(v(e), Ca), e.config = i, e._pluginInfoId = f.generateSessionId(), As(v(e));
4669
4672
  var n = e.constructor.defaultPreset;
4670
4673
  if (e.config.presets.length) {
4671
4674
  var s = e.config.presets.indexOf("default");
@@ -4694,7 +4697,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4694
4697
  }, e._offsetInfo = {
4695
4698
  currentTime: -1,
4696
4699
  duration: 0
4697
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4700
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Js(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4698
4701
  isActiveLocked: !1
4699
4702
  }, e.instManager = Pe;
4700
4703
  var l = e._initDOM();
@@ -4726,7 +4729,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4726
4729
  msg: "container id can't be empty"
4727
4730
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4728
4731
  }
4729
- var s = ya(this.root);
4732
+ var s = _a(this.root);
4730
4733
  s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(He, this.playerId), (e = Pe) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
4731
4734
  var l = this.constructor.XgVideoProxy;
4732
4735
  if (l && this.mediaConfig.mediaType === l.mediaType) {
@@ -4736,7 +4739,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4736
4739
  this.attachVideoEvents(c), this.media = c;
4737
4740
  }
4738
4741
  if (this.media.setAttribute(He, this.playerId), this.config.controls) {
4739
- var h = this.config.controls.root || null, d = te.register(this, ga, {
4742
+ var h = this.config.controls.root || null, d = te.register(this, pa, {
4740
4743
  root: h
4741
4744
  });
4742
4745
  this.controls = d;
@@ -4774,7 +4777,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4774
4777
  var e = this;
4775
4778
  ["focus", "blur"].forEach(function(i) {
4776
4779
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
4777
- }), Wi.forEach(function(i) {
4780
+ }), Gi.forEach(function(i) {
4778
4781
  document && document.addEventListener(i, e.onFullscreenChange);
4779
4782
  }), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Se, this.resize), this.playFunc = function() {
4780
4783
  e.config.closeFocusVideoFocus || e.media.focus();
@@ -4784,7 +4787,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4784
4787
  key: "_unbindEvents",
4785
4788
  value: function() {
4786
4789
  var e = this;
4787
- this.root.removeEventListener("mousemove", this.mousemoveFunc), Wi.forEach(function(i) {
4790
+ this.root.removeEventListener("mousemove", this.mousemoveFunc), Gi.forEach(function(i) {
4788
4791
  document.removeEventListener(i, e.onFullscreenChange);
4789
4792
  }), this.playFunc && this.off(fe, this.playFunc), this.off(Te, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4790
4793
  }
@@ -4797,7 +4800,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4797
4800
  key: "_startInit",
4798
4801
  value: function(e) {
4799
4802
  var i = this;
4800
- if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Dn), M.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4803
+ if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Rn), M.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4801
4804
  this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
4802
4805
  var n = this.innerContainer ? this.innerContainer : this.root;
4803
4806
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
@@ -4844,7 +4847,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
4844
4847
  value: function() {
4845
4848
  var e = this;
4846
4849
  this.config.presets.forEach(function(i) {
4847
- da(e, i);
4850
+ ga(e, i);
4848
4851
  });
4849
4852
  }
4850
4853
  }, {
@@ -5109,7 +5112,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5109
5112
  if (s && (i.map(function(u) {
5110
5113
  e.deregister(u);
5111
5114
  }), n)) {
5112
- var l = Ji();
5115
+ var l = Qi();
5113
5116
  Object.keys(this.config).keys(function(u) {
5114
5117
  e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
5115
5118
  });
@@ -5120,7 +5123,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5120
5123
  value: function() {
5121
5124
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5122
5125
  if (!(!s || !l)) {
5123
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(He), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(vi), (e = Pe) === null || e === void 0 || e.remove(this), te.destroy(this), Kn(this), L(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5126
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(He), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(vi), (e = Pe) === null || e === void 0 || e.remove(this), te.destroy(this), Yn(this), L(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5124
5127
  for (var u = n.children, c = 0; c < u.length; c++)
5125
5128
  n.removeChild(u[c]);
5126
5129
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5182,8 +5185,8 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5182
5185
  if (s === this._fullscreenEl)
5183
5186
  return this.onFullscreenChange(), Promise.resolve();
5184
5187
  try {
5185
- for (var l = 0; l < Gi.length; l++) {
5186
- var u = Gi[l];
5188
+ for (var l = 0; l < Ki.length; l++) {
5189
+ var u = Ki[l];
5187
5190
  if (e[u]) {
5188
5191
  var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
5189
5192
  return c && c.then ? c : Promise.resolve();
@@ -5202,8 +5205,8 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5202
5205
  var i = this.media;
5203
5206
  this._fullActionFrom = "exit";
5204
5207
  try {
5205
- for (var n = 0; n < Ki.length; n++) {
5206
- var s = Ki[n];
5208
+ for (var n = 0; n < Yi.length; n++) {
5209
+ var s = Yi[n];
5207
5210
  if (document[s]) {
5208
5211
  var l = document[s]();
5209
5212
  return l && l.then ? l : Promise.resolve();
@@ -5282,7 +5285,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5282
5285
  this.onBlur(e);
5283
5286
  return;
5284
5287
  }
5285
- this._clearUserTimer(), this.emit(An, X({
5288
+ this._clearUserTimer(), this.emit(Dn, X({
5286
5289
  paused: this.paused,
5287
5290
  ended: this.ended
5288
5291
  }, e));
@@ -5367,7 +5370,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5367
5370
  value: function() {
5368
5371
  var e = this;
5369
5372
  this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
5370
- e.addClass(C.LOADING), e.emit(Mn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5373
+ e.addClass(C.LOADING), e.emit(Nn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5371
5374
  }, this.config.minWaitDelay);
5372
5375
  }
5373
5376
  }, {
@@ -5527,7 +5530,7 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5527
5530
  }, {
5528
5531
  key: "setState",
5529
5532
  value: function(e) {
5530
- M.logInfo("setState", "state from:".concat(Qi[this.state], " to:").concat(Qi[e])), this._state = e;
5533
+ M.logInfo("setState", "state from:".concat(en[this.state], " to:").concat(en[e])), this._state = e;
5531
5534
  }
5532
5535
  }, {
5533
5536
  key: "_preProcessUrl",
@@ -5693,18 +5696,18 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5693
5696
  }, {
5694
5697
  key: "avgSpeed",
5695
5698
  get: function() {
5696
- return tn;
5699
+ return nn;
5697
5700
  },
5698
5701
  set: function(e) {
5699
- tn = e;
5702
+ nn = e;
5700
5703
  }
5701
5704
  }, {
5702
5705
  key: "realTimeSpeed",
5703
5706
  get: function() {
5704
- return en;
5707
+ return tn;
5705
5708
  },
5706
5709
  set: function(e) {
5707
- en = e;
5710
+ tn = e;
5708
5711
  }
5709
5712
  }, {
5710
5713
  key: "offsetCurrentTime",
@@ -5742,14 +5745,14 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5742
5745
  value: function(e, i, n) {
5743
5746
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
5744
5747
  l[u - 3] = arguments[u];
5745
- return Yi.call.apply(Yi, [this].concat(Array.prototype.slice.call(arguments)));
5748
+ return $i.call.apply($i, [this].concat(Array.prototype.slice.call(arguments)));
5746
5749
  }
5747
5750
  }, {
5748
5751
  key: "removePluginHooks",
5749
5752
  value: function(e, i, n) {
5750
5753
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
5751
5754
  l[u - 3] = arguments[u];
5752
- return $i.call.apply($i, [this].concat(Array.prototype.slice.call(arguments)));
5755
+ return Xi.call.apply(Xi, [this].concat(Array.prototype.slice.call(arguments)));
5753
5756
  }
5754
5757
  }, {
5755
5758
  key: "setUserActive",
@@ -5806,10 +5809,10 @@ var _a = ["play", "pause", "replay", "retry"], en = 0, tn = 0, Pe = null, Dt = /
5806
5809
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
5807
5810
  }
5808
5811
  }]), r;
5809
- }(qs);
5812
+ }(Zs);
5810
5813
  _(Dt, "defaultPreset", null);
5811
5814
  _(Dt, "XgVideoProxy", null);
5812
- Dt.instManager = $n.getInstance();
5815
+ Dt.instManager = Xn.getInstance();
5813
5816
  function ne() {
5814
5817
  return (/* @__PURE__ */ new Date()).getTime();
5815
5818
  }
@@ -5821,7 +5824,7 @@ var Le = {
5821
5824
  WAIT_END: "waitingEnd",
5822
5825
  SEEK_START: "seekStart",
5823
5826
  SEEK_END: "seekEnd"
5824
- }, Ca = /* @__PURE__ */ function(o) {
5827
+ }, ka = /* @__PURE__ */ function(o) {
5825
5828
  S(r, o);
5826
5829
  var a = x(r);
5827
5830
  function r() {
@@ -5948,7 +5951,7 @@ var Le = {
5948
5951
  key: "emitLog",
5949
5952
  value: function(e, i) {
5950
5953
  var n = this.player;
5951
- this.emit(Hn, X({
5954
+ this.emit(Un, X({
5952
5955
  t: ne(),
5953
5956
  host: f.getHostFromUrl(n.currentSrc),
5954
5957
  vtype: n.vtype,
@@ -5972,13 +5975,13 @@ var Le = {
5972
5975
  }
5973
5976
  }]), r;
5974
5977
  }(U);
5975
- function ka() {
5978
+ function ba() {
5976
5979
  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">
5977
5980
  <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>
5978
5981
  </svg>
5979
5982
  `, "image/svg+xml").firstChild;
5980
5983
  }
5981
- var ba = /* @__PURE__ */ function(o) {
5984
+ var wa = /* @__PURE__ */ function(o) {
5982
5985
  S(r, o);
5983
5986
  var a = x(r);
5984
5987
  function r() {
@@ -5988,7 +5991,7 @@ var ba = /* @__PURE__ */ function(o) {
5988
5991
  key: "registerIcons",
5989
5992
  value: function() {
5990
5993
  return {
5991
- replay: ka
5994
+ replay: ba
5992
5995
  };
5993
5996
  }
5994
5997
  }, {
@@ -6061,7 +6064,7 @@ var ba = /* @__PURE__ */ function(o) {
6061
6064
  };
6062
6065
  }
6063
6066
  }]), r;
6064
- }(U), wa = /* @__PURE__ */ function(o) {
6067
+ }(U), Ta = /* @__PURE__ */ function(o) {
6065
6068
  S(r, o);
6066
6069
  var a = x(r);
6067
6070
  function r() {
@@ -6186,7 +6189,7 @@ function Ci() {
6186
6189
  `, "image/svg+xml").firstChild;
6187
6190
  }
6188
6191
  var ye = {};
6189
- function Ta(o, a) {
6192
+ function Ea(o, a) {
6190
6193
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6191
6194
  start: null,
6192
6195
  end: null
@@ -6195,7 +6198,7 @@ function Ta(o, a) {
6195
6198
  r.end && r.end(), window.clearTimeout(ye[o].id), delete ye[o];
6196
6199
  }, a), ye[o].id;
6197
6200
  }
6198
- function nn(o) {
6201
+ function rn(o) {
6199
6202
  if (o) {
6200
6203
  window.clearTimeout(o);
6201
6204
  return;
@@ -6204,7 +6207,7 @@ function nn(o) {
6204
6207
  window.clearTimeout(ye[a].id), delete ye[a];
6205
6208
  });
6206
6209
  }
6207
- var Ea = /* @__PURE__ */ function(o) {
6210
+ var Sa = /* @__PURE__ */ function(o) {
6208
6211
  S(r, o);
6209
6212
  var a = x(r);
6210
6213
  function r(t) {
@@ -6296,7 +6299,7 @@ var Ea = /* @__PURE__ */ function(o) {
6296
6299
  key: "animate",
6297
6300
  value: function(e) {
6298
6301
  var i = this;
6299
- this._animateId = Ta("pauseplay", 400, {
6302
+ this._animateId = Ea("pauseplay", 400, {
6300
6303
  start: function() {
6301
6304
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
6302
6305
  },
@@ -6308,7 +6311,7 @@ var Ea = /* @__PURE__ */ function(o) {
6308
6311
  }, {
6309
6312
  key: "endAnimate",
6310
6313
  value: function() {
6311
- f.removeClass(this.root, "interact"), nn(this._animateId), this._animateId = null;
6314
+ f.removeClass(this.root, "interact"), rn(this._animateId), this._animateId = null;
6312
6315
  }
6313
6316
  }, {
6314
6317
  key: "switchPausePlay",
@@ -6352,7 +6355,7 @@ var Ea = /* @__PURE__ */ function(o) {
6352
6355
  }, {
6353
6356
  key: "destroy",
6354
6357
  value: function() {
6355
- this.unbind(["click", "touchend"], this.clickHandler), nn(this._animateId);
6358
+ this.unbind(["click", "touchend"], this.clickHandler), rn(this._animateId);
6356
6359
  }
6357
6360
  }, {
6358
6361
  key: "render",
@@ -6379,7 +6382,7 @@ var Ea = /* @__PURE__ */ function(o) {
6379
6382
  };
6380
6383
  }
6381
6384
  }]), r;
6382
- }(U), Sa = /* @__PURE__ */ function(o) {
6385
+ }(U), xa = /* @__PURE__ */ function(o) {
6383
6386
  S(r, o);
6384
6387
  var a = x(r);
6385
6388
  function r() {
@@ -6424,7 +6427,7 @@ function Ne(o, a, r) {
6424
6427
  return '<div class="xg-tips hide"></div>';
6425
6428
  }
6426
6429
  }
6427
- var rn = /* @__PURE__ */ function(o) {
6430
+ var sn = /* @__PURE__ */ function(o) {
6428
6431
  S(r, o);
6429
6432
  var a = x(r);
6430
6433
  function r() {
@@ -6474,12 +6477,12 @@ var rn = /* @__PURE__ */ function(o) {
6474
6477
  }
6475
6478
  }]), r;
6476
6479
  }(U);
6477
- function sn(o) {
6480
+ function an(o) {
6478
6481
  var a = parseFloat(o), r = o.indexOf("%") === -1 && !Number.isNaN(a);
6479
6482
  return r && a;
6480
6483
  }
6481
- var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Xn = ki.length;
6482
- function xa() {
6484
+ var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], qn = ki.length;
6485
+ function Ia() {
6483
6486
  for (var o = {
6484
6487
  width: 0,
6485
6488
  height: 0,
@@ -6487,30 +6490,30 @@ function xa() {
6487
6490
  innerHeight: 0,
6488
6491
  outerWidth: 0,
6489
6492
  outerHeight: 0
6490
- }, a = 0; a < Xn; a++) {
6493
+ }, a = 0; a < qn; a++) {
6491
6494
  var r = ki[a];
6492
6495
  o[r] = 0;
6493
6496
  }
6494
6497
  return o;
6495
6498
  }
6496
- function Ia(o) {
6499
+ function Pa(o) {
6497
6500
  var a = window.getComputedStyle(o);
6498
6501
  return a;
6499
6502
  }
6500
- function an(o) {
6503
+ function on(o) {
6501
6504
  if (typeof o == "string" && (o = document.querySelector(o)), !(!o || re(o) !== "object" || !o.nodeType)) {
6502
- var a = Ia(o);
6505
+ var a = Pa(o);
6503
6506
  if (a.display === "none")
6504
- return xa();
6507
+ return Ia();
6505
6508
  var r = {};
6506
6509
  r.width = o.offsetWidth, r.height = o.offsetHeight;
6507
- for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < Xn; e++) {
6510
+ for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < qn; e++) {
6508
6511
  var i = ki[e], n = a[i], s = parseFloat(n);
6509
6512
  r[i] = Number.isNaN(s) ? 0 : s;
6510
6513
  }
6511
- 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, y = sn(a.width);
6514
+ 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, y = an(a.width);
6512
6515
  y !== !1 && (r.width = y + (p ? 0 : l + d));
6513
- var m = sn(a.height);
6516
+ var m = an(a.height);
6514
6517
  return m !== !1 && (r.height = m + (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;
6515
6518
  }
6516
6519
  }
@@ -6525,11 +6528,11 @@ var Wt = {
6525
6528
  START: "dragStart",
6526
6529
  MOVE: "dragMove",
6527
6530
  ENDED: "dragEnded"
6528
- }, on = {
6531
+ }, ln = {
6529
6532
  mousedown: ["mousemove", "mouseup"],
6530
6533
  touchstart: ["touchmove", "touchend", "touchcancel"],
6531
6534
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
6532
- }, Pa = /* @__PURE__ */ function(o) {
6535
+ }, La = /* @__PURE__ */ function(o) {
6533
6536
  S(r, o);
6534
6537
  var a = x(r);
6535
6538
  function r(t) {
@@ -6546,7 +6549,7 @@ var Wt = {
6546
6549
  key: "_bindStartEvent",
6547
6550
  value: function() {
6548
6551
  var e = this;
6549
- "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), on[this._startKey].map(function(i) {
6552
+ "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), ln[this._startKey].map(function(i) {
6550
6553
  e["on".concat(i)] = e["on".concat(i)].bind(e);
6551
6554
  });
6552
6555
  }
@@ -6560,7 +6563,7 @@ var Wt = {
6560
6563
  value: function(e) {
6561
6564
  var i = this;
6562
6565
  if (e) {
6563
- var n = on[this._startKey];
6566
+ var n = ln[this._startKey];
6564
6567
  n.map(function(s) {
6565
6568
  window.addEventListener(s, i["on".concat(s)]);
6566
6569
  }), this._boundPointerEvents = n;
@@ -6652,7 +6655,7 @@ var Wt = {
6652
6655
  value: function(e, i) {
6653
6656
  if (!(!this._root || this.isDown || !this.isEnabled)) {
6654
6657
  this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
6655
- var n = an(this._root);
6658
+ var n = on(this._root);
6656
6659
  this.startPos.x = this.position.x, this.startPos.y = this.position.y, this.startPos.maxY = window.innerHeight - n.height, this.startPos.maxX = window.innerWidth - n.width, this.setLeftTop(), this.isDown = !0, this._bindPostStartEvents(e);
6657
6660
  }
6658
6661
  }
@@ -6733,13 +6736,13 @@ var Wt = {
6733
6736
  key: "_getPositionCoord",
6734
6737
  value: function(e, i) {
6735
6738
  if (e.indexOf("%") !== -1) {
6736
- var n = an(this._root.parentNode);
6739
+ var n = on(this._root.parentNode);
6737
6740
  return n ? parseFloat(e) / 100 * n[i] : 0;
6738
6741
  }
6739
6742
  return parseInt(e, 10);
6740
6743
  }
6741
6744
  }]), r;
6742
- }(Sn), La = /* @__PURE__ */ function(o) {
6745
+ }(xn), Aa = /* @__PURE__ */ function(o) {
6743
6746
  S(r, o);
6744
6747
  var a = x(r);
6745
6748
  function r(t) {
@@ -6792,10 +6795,10 @@ var Wt = {
6792
6795
  }
6793
6796
  }
6794
6797
  };
6795
- i.controls.registerPlugin(rn, s, rn.pluginName);
6798
+ i.controls.registerPlugin(sn, s, sn.pluginName);
6796
6799
  }
6797
6800
  var l = f.checkTouchSupport() ? "touchend" : "click";
6798
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Pa(this.player.root, {
6801
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new La(this.player.root, {
6799
6802
  handle: this.root
6800
6803
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
6801
6804
  }
@@ -6910,7 +6913,7 @@ var Wt = {
6910
6913
  var l = v(t), u = l.playerConfig, c = l.player;
6911
6914
  !u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
6912
6915
  autoHide: !1
6913
- }) : c.focus(), t.emit(On);
6916
+ }) : c.focus(), t.emit(Mn);
6914
6917
  }), _(v(t), "onMouseLeave", function(s) {
6915
6918
  var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
6916
6919
  !u && !h && (c ? t.player.focus({
@@ -6918,7 +6921,7 @@ var Wt = {
6918
6921
  delay: c
6919
6922
  }) : t.player.blur({
6920
6923
  ignorePaused: !0
6921
- })), t.emit(Rn);
6924
+ })), t.emit(On);
6922
6925
  }), _(v(t), "onVideoClick", function(s) {
6923
6926
  var l = v(t), u = l.player, c = l.playerConfig;
6924
6927
  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() {
@@ -7009,21 +7012,21 @@ var Wt = {
7009
7012
  TOUCH_MOVE: "touchmove",
7010
7013
  TOUCH_START: "touchstart",
7011
7014
  TOUCH_END: "touchend"
7012
- }, Aa = {
7015
+ }, Da = {
7013
7016
  start: "touchstart",
7014
7017
  end: "touchend",
7015
7018
  move: "touchmove",
7016
7019
  cancel: "touchcancel"
7017
- }, Da = {
7020
+ }, Ra = {
7018
7021
  start: "mousedown",
7019
7022
  end: "mouseup",
7020
7023
  move: "mousemove",
7021
7024
  cancel: "mouseleave"
7022
7025
  };
7023
- function ln(o) {
7026
+ function un(o) {
7024
7027
  return o && o.length > 0 ? o[o.length - 1] : null;
7025
7028
  }
7026
- function Ra() {
7029
+ function Oa() {
7027
7030
  return {
7028
7031
  pressDelay: 600,
7029
7032
  dbClickDelay: 200,
@@ -7033,13 +7036,13 @@ function Ra() {
7033
7036
  needPreventDefault: !0
7034
7037
  };
7035
7038
  }
7036
- var Oa = /* @__PURE__ */ function() {
7039
+ var Ma = /* @__PURE__ */ function() {
7037
7040
  function o(a) {
7038
7041
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7039
7042
  eventType: "touch"
7040
7043
  };
7041
7044
  T(this, o), _(this, "onTouchStart", function(e) {
7042
- var i = r._pos, n = r.root, s = ln(e.touches);
7045
+ var i = r._pos, n = r.root, s = un(e.touches);
7043
7046
  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(Ae.TOUCH_START, e);
7044
7047
  }), _(this, "onTouchCancel", function(e) {
7045
7048
  r.onTouchEnd(e);
@@ -7047,16 +7050,16 @@ var Oa = /* @__PURE__ */ function() {
7047
7050
  var i = r._pos, n = r.root;
7048
7051
  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(Ae.PRESS_END, e), r.trigger(Ae.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7049
7052
  }), _(this, "onTouchMove", function(e) {
7050
- var i = r._pos, n = r.config, s = ln(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;
7053
+ var i = r._pos, n = r.config, s = un(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;
7051
7054
  Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Ae.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Ae.TOUCH_MOVE, e));
7052
7055
  }), this._pos = {
7053
7056
  moving: !1,
7054
7057
  start: !1,
7055
7058
  x: 0,
7056
7059
  y: 0
7057
- }, this.config = Ra(), Object.keys(t).map(function(e) {
7060
+ }, this.config = Oa(), Object.keys(t).map(function(e) {
7058
7061
  r.config[e] = t[e];
7059
- }), this.root = a, this.events = t.eventType === "mouse" ? Da : Aa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7062
+ }), this.root = a, this.events = t.eventType === "mouse" ? Ra : Da, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7060
7063
  }
7061
7064
  return E(o, [{
7062
7065
  key: "_initEvent",
@@ -7135,7 +7138,7 @@ var Oa = /* @__PURE__ */ function() {
7135
7138
  }
7136
7139
  }]), o;
7137
7140
  }();
7138
- function Ma() {
7141
+ function Na() {
7139
7142
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
7140
7143
  xmlns:xlink="http://www.w3.org/1999/xlink">
7141
7144
  <path opacity="0.54"
@@ -7149,7 +7152,7 @@ var Ke = {
7149
7152
  SEEKING: "seeking",
7150
7153
  PLAYBACK: "playbackrate",
7151
7154
  LIGHT: ""
7152
- }, Yt = ["videoClick", "videoDbClick"], Na = /* @__PURE__ */ function(o) {
7155
+ }, Yt = ["videoClick", "videoDbClick"], Fa = /* @__PURE__ */ function(o) {
7153
7156
  S(r, o);
7154
7157
  var a = x(r);
7155
7158
  function r(t) {
@@ -7221,7 +7224,7 @@ var Ke = {
7221
7224
  value: function() {
7222
7225
  return {
7223
7226
  seekTipIcon: {
7224
- icon: Ma,
7227
+ icon: Na,
7225
7228
  class: "xg-seek-pre"
7226
7229
  }
7227
7230
  };
@@ -7236,7 +7239,7 @@ var Ke = {
7236
7239
  var i = this.playerConfig, n = this.config, s = this.player;
7237
7240
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
7238
7241
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
7239
- this.touch = new Oa(this.root, {
7242
+ this.touch = new Ma(this.root, {
7240
7243
  eventType: l,
7241
7244
  needPreventDefault: !this.config.disableGesture
7242
7245
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -7578,14 +7581,14 @@ var Ke = {
7578
7581
  }
7579
7582
  }]), r;
7580
7583
  }(U);
7581
- function Fa(o) {
7584
+ function Ba(o) {
7582
7585
  o.preventDefault(), o.returnValue = !1;
7583
7586
  }
7584
- function un(o) {
7587
+ function cn(o) {
7585
7588
  var a = o.tagName;
7586
7589
  return !!(a === "INPUT" || a === "TEXTAREA" || o.isContentEditable);
7587
7590
  }
7588
- var cn = /* @__PURE__ */ function(o) {
7591
+ var fn = /* @__PURE__ */ function(o) {
7589
7592
  S(r, o);
7590
7593
  var a = x(r);
7591
7594
  function r() {
@@ -7596,11 +7599,11 @@ var cn = /* @__PURE__ */ function(o) {
7596
7599
  return t = a.call.apply(a, [this].concat(i)), _(v(t), "onBodyKeyDown", function(s) {
7597
7600
  if (t.player) {
7598
7601
  var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, y = g.disableBodyTrigger, m = g.isIgnoreUserActive;
7599
- if (p || y || !(d.isUserActive || m) || un(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
7602
+ if (p || y || !(d.isUserActive || m) || cn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
7600
7603
  h.isBodyKeyDown = !1;
7601
7604
  return;
7602
7605
  }
7603
- !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !un(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
7606
+ !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !cn(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
7604
7607
  }
7605
7608
  }), _(v(t), "onBodyKeyUp", function(s) {
7606
7609
  t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
@@ -7821,13 +7824,13 @@ var cn = /* @__PURE__ */ function(o) {
7821
7824
  if (h === e) {
7822
7825
  if (!d && !(n && p)) {
7823
7826
  var y = n && g || c;
7824
- typeof y == "function" ? c(i, this.player, n) : typeof y == "string" && typeof this[y] == "function" && this[y](i, this.player, n), this.emit(Bn, X({
7827
+ typeof y == "function" ? c(i, this.player, n) : typeof y == "string" && typeof this[y] == "function" && this[y](i, this.player, n), this.emit(Hn, X({
7825
7828
  key: s[l],
7826
7829
  target: i.target,
7827
7830
  isPress: n
7828
7831
  }, this.keyCodeMap[s[l]]));
7829
7832
  }
7830
- Fa(i), i.stopPropagation();
7833
+ Ba(i), i.stopPropagation();
7831
7834
  break;
7832
7835
  }
7833
7836
  }
@@ -7869,13 +7872,13 @@ var cn = /* @__PURE__ */ function(o) {
7869
7872
  }
7870
7873
  }]), r;
7871
7874
  }(Oe);
7872
- function Ba() {
7875
+ function Ha() {
7873
7876
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7874
7877
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
7875
7878
  </svg>
7876
7879
  `, "image/svg+xml").firstChild;
7877
7880
  }
7878
- var Ha = /* @__PURE__ */ function(o) {
7881
+ var Ua = /* @__PURE__ */ function(o) {
7879
7882
  S(r, o);
7880
7883
  var a = x(r);
7881
7884
  function r() {
@@ -7885,7 +7888,7 @@ var Ha = /* @__PURE__ */ function(o) {
7885
7888
  key: "registerIcons",
7886
7889
  value: function() {
7887
7890
  return {
7888
- loadingIcon: Ba
7891
+ loadingIcon: Ha
7889
7892
  };
7890
7893
  }
7891
7894
  }, {
@@ -7914,7 +7917,7 @@ var Ha = /* @__PURE__ */ function(o) {
7914
7917
  };
7915
7918
  }
7916
7919
  }]), r;
7917
- }(U), Ua = [{
7920
+ }(U), Va = [{
7918
7921
  tag: "xg-cache",
7919
7922
  className: "xgplayer-progress-cache",
7920
7923
  styleKey: "cachedColor"
@@ -7922,7 +7925,7 @@ var Ha = /* @__PURE__ */ function(o) {
7922
7925
  tag: "xg-played",
7923
7926
  className: "xgplayer-progress-played",
7924
7927
  styleKey: "playedColor"
7925
- }], Va = /* @__PURE__ */ function() {
7928
+ }], za = /* @__PURE__ */ function() {
7926
7929
  function o(a) {
7927
7930
  T(this, o), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
7928
7931
  percent: 1
@@ -8109,7 +8112,7 @@ var Ha = /* @__PURE__ */ function(o) {
8109
8112
  var l = f.createDom("xg-inner", "", {
8110
8113
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
8111
8114
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
8112
- return r.root.appendChild(l), Ua.forEach(function(u) {
8115
+ return r.root.appendChild(l), Va.forEach(function(u) {
8113
8116
  l.appendChild(f.createDom(u.tag, "", {
8114
8117
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
8115
8118
  }, u.className));
@@ -8122,10 +8125,10 @@ var Ha = /* @__PURE__ */ function(o) {
8122
8125
  return this.root;
8123
8126
  }
8124
8127
  }]), o;
8125
- }(), fn = {
8128
+ }(), hn = {
8126
8129
  POINT: "inner-focus-point",
8127
8130
  HIGHLIGHT: "inner-focus-highlight"
8128
- }, za = /* @__PURE__ */ function(o) {
8131
+ }, ja = /* @__PURE__ */ function(o) {
8129
8132
  S(r, o);
8130
8133
  var a = x(r);
8131
8134
  function r(t) {
@@ -8255,7 +8258,7 @@ var Ha = /* @__PURE__ */ function(o) {
8255
8258
  e.emitUserAction("fragment_focus", "fragment_focus", u);
8256
8259
  }
8257
8260
  });
8258
- this.innerList ? this.innerList.reset(s) : (this.innerList = new Va(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8261
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new za(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8259
8262
  e[l] = e.innerList[l].bind(e.innerList);
8260
8263
  }));
8261
8264
  }
@@ -8289,7 +8292,7 @@ var Ha = /* @__PURE__ */ function(o) {
8289
8292
  e.onTimeupdate();
8290
8293
  }), this.on(Ee, function() {
8291
8294
  e.onTimeupdate(), e.onCacheUpdate();
8292
- }), this.on(Ln, function() {
8295
+ }), this.on(An, function() {
8293
8296
  e.onCacheUpdate();
8294
8297
  }), this.on(Ve, function() {
8295
8298
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
@@ -8518,7 +8521,7 @@ var Ha = /* @__PURE__ */ function(o) {
8518
8521
  fragments: [{
8519
8522
  percent: 1
8520
8523
  }],
8521
- fragFocusClass: fn.POINT,
8524
+ fragFocusClass: hn.POINT,
8522
8525
  fragClass: "",
8523
8526
  fragAutoFocus: !1,
8524
8527
  miniMoveStep: 5,
@@ -8533,7 +8536,7 @@ var Ha = /* @__PURE__ */ function(o) {
8533
8536
  }, {
8534
8537
  key: "FRAGMENT_FOCUS_CLASS",
8535
8538
  get: function() {
8536
- return fn;
8539
+ return hn;
8537
8540
  }
8538
8541
  }]), r;
8539
8542
  }(U), je = /* @__PURE__ */ function(o) {
@@ -8565,7 +8568,7 @@ var Ha = /* @__PURE__ */ function(o) {
8565
8568
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
8566
8569
  }
8567
8570
  }]), r;
8568
- }(U), ja = /* @__PURE__ */ function(o) {
8571
+ }(U), Wa = /* @__PURE__ */ function(o) {
8569
8572
  S(r, o);
8570
8573
  var a = x(r);
8571
8574
  function r() {
@@ -8653,14 +8656,14 @@ var Ha = /* @__PURE__ */ function(o) {
8653
8656
  }
8654
8657
  }]), r;
8655
8658
  }(je);
8656
- function Wa() {
8659
+ function Ga() {
8657
8660
  return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
8658
8661
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8659
8662
  <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
8660
8663
  </g>
8661
8664
  </svg>`, "image/svg+xml").firstChild;
8662
8665
  }
8663
- var Ga = /* @__PURE__ */ function(o) {
8666
+ var Ka = /* @__PURE__ */ function(o) {
8664
8667
  S(r, o);
8665
8668
  var a = x(r);
8666
8669
  function r() {
@@ -8679,7 +8682,7 @@ var Ga = /* @__PURE__ */ function(o) {
8679
8682
  value: function() {
8680
8683
  return {
8681
8684
  screenBack: {
8682
- icon: Wa,
8685
+ icon: Ga,
8683
8686
  class: "xg-fullscreen-back"
8684
8687
  }
8685
8688
  };
@@ -8721,19 +8724,19 @@ var Ga = /* @__PURE__ */ function(o) {
8721
8724
  }
8722
8725
  }]), r;
8723
8726
  }(U);
8724
- function Ka() {
8727
+ function Ya() {
8725
8728
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8726
8729
  <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>
8727
8730
  </svg>
8728
8731
  `, "image/svg+xml").firstChild;
8729
8732
  }
8730
- function Ya() {
8733
+ function $a() {
8731
8734
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8732
8735
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
8733
8736
  </svg>
8734
8737
  `, "image/svg+xml").firstChild;
8735
8738
  }
8736
- var $a = /* @__PURE__ */ function(o) {
8739
+ var Xa = /* @__PURE__ */ function(o) {
8737
8740
  S(r, o);
8738
8741
  var a = x(r);
8739
8742
  function r() {
@@ -8768,7 +8771,7 @@ var $a = /* @__PURE__ */ function(o) {
8768
8771
  var u = e.find(".xg-tips");
8769
8772
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8770
8773
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
8771
- plugin: Ga,
8774
+ plugin: Ka,
8772
8775
  options: {
8773
8776
  config: {
8774
8777
  onClick: function(u) {
@@ -8784,11 +8787,11 @@ var $a = /* @__PURE__ */ function(o) {
8784
8787
  value: function() {
8785
8788
  return {
8786
8789
  fullscreen: {
8787
- icon: Ka,
8790
+ icon: Ya,
8788
8791
  class: "xg-get-fullscreen"
8789
8792
  },
8790
8793
  exitFullscreen: {
8791
- icon: Ya,
8794
+ icon: $a,
8792
8795
  class: "xg-exit-fullscreen"
8793
8796
  }
8794
8797
  };
@@ -8869,7 +8872,7 @@ var $a = /* @__PURE__ */ function(o) {
8869
8872
  };
8870
8873
  }
8871
8874
  }]), r;
8872
- }(je), Xa = /* @__PURE__ */ function(o) {
8875
+ }(je), qa = /* @__PURE__ */ function(o) {
8873
8876
  S(r, o);
8874
8877
  var a = x(r);
8875
8878
  function r(t) {
@@ -9019,7 +9022,7 @@ var $a = /* @__PURE__ */ function(o) {
9019
9022
  };
9020
9023
  }
9021
9024
  }]), r;
9022
- }(U), qa = /* @__PURE__ */ function(o) {
9025
+ }(U), Za = /* @__PURE__ */ function(o) {
9023
9026
  S(r, o);
9024
9027
  var a = x(r);
9025
9028
  function r() {
@@ -9157,28 +9160,28 @@ var $a = /* @__PURE__ */ function(o) {
9157
9160
  }
9158
9161
  }]), r;
9159
9162
  }(Oe);
9160
- function Za() {
9163
+ function Ja() {
9161
9164
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9162
9165
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9163
9166
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9164
9167
  </svg>
9165
9168
  `, "image/svg+xml").firstChild;
9166
9169
  }
9167
- function Ja() {
9170
+ function Qa() {
9168
9171
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9169
9172
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9170
9173
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9171
9174
  </svg>
9172
9175
  `, "image/svg+xml").firstChild;
9173
9176
  }
9174
- function Qa() {
9177
+ function eo() {
9175
9178
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9176
9179
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9177
9180
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
9178
9181
  </svg>
9179
9182
  `, "image/svg+xml").firstChild;
9180
9183
  }
9181
- var eo = /* @__PURE__ */ function(o) {
9184
+ var to = /* @__PURE__ */ function(o) {
9182
9185
  S(r, o);
9183
9186
  var a = x(r);
9184
9187
  function r() {
@@ -9226,15 +9229,15 @@ var eo = /* @__PURE__ */ function(o) {
9226
9229
  value: function() {
9227
9230
  return {
9228
9231
  volumeSmall: {
9229
- icon: Ja,
9232
+ icon: Qa,
9230
9233
  class: "xg-volume-small"
9231
9234
  },
9232
9235
  volumeLarge: {
9233
- icon: Za,
9236
+ icon: Ja,
9234
9237
  class: "xg-volume"
9235
9238
  },
9236
9239
  volumeMuted: {
9237
- icon: Qa,
9240
+ icon: eo,
9238
9241
  class: "xg-volume-mute"
9239
9242
  }
9240
9243
  };
@@ -9256,7 +9259,7 @@ var eo = /* @__PURE__ */ function(o) {
9256
9259
  pre: function(u) {
9257
9260
  u.preventDefault(), u.stopPropagation();
9258
9261
  }
9259
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.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(In, this.onVolumeChange), this.once(Se, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9262
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.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(Pn, this.onVolumeChange), this.once(Se, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9260
9263
  }
9261
9264
  }
9262
9265
  }, {
@@ -9373,7 +9376,7 @@ var eo = /* @__PURE__ */ function(o) {
9373
9376
  }
9374
9377
  }]), r;
9375
9378
  }(U);
9376
- function to() {
9379
+ function io() {
9377
9380
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
9378
9381
  <g clip-path="url(#clip0)">
9379
9382
  <path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
@@ -9387,7 +9390,7 @@ function to() {
9387
9390
  </svg>
9388
9391
  `, "image/svg+xml").firstChild;
9389
9392
  }
9390
- var io = /* @__PURE__ */ function(o) {
9393
+ var no = /* @__PURE__ */ function(o) {
9391
9394
  S(r, o);
9392
9395
  var a = x(r);
9393
9396
  function r(t) {
@@ -9444,13 +9447,13 @@ var io = /* @__PURE__ */ function(o) {
9444
9447
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = this.player;
9445
9448
  this.rotateDeg || (this.rotateDeg = 0);
9446
9449
  var l = e ? 1 : -1;
9447
- this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(Nn, this.rotateDeg * 360);
9450
+ this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(Fn, this.rotateDeg * 360);
9448
9451
  }
9449
9452
  }, {
9450
9453
  key: "registerIcons",
9451
9454
  value: function() {
9452
9455
  return {
9453
- rotate: to
9456
+ rotate: io
9454
9457
  };
9455
9458
  }
9456
9459
  }, {
@@ -9483,14 +9486,14 @@ var io = /* @__PURE__ */ function(o) {
9483
9486
  }
9484
9487
  }]), r;
9485
9488
  }(je);
9486
- function no() {
9489
+ function ro() {
9487
9490
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9488
9491
  <path fill-rule="evenodd" clip-rule="evenodd"
9489
9492
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
9490
9493
  fill="white" />
9491
9494
  </svg>`, "image/svg+xml").firstChild;
9492
9495
  }
9493
- function ro() {
9496
+ function so() {
9494
9497
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9495
9498
  <path fill-rule="evenodd" clip-rule="evenodd"
9496
9499
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
@@ -9504,7 +9507,7 @@ var Ye = {
9504
9507
  PIP: "picture-in-picture",
9505
9508
  INLINE: "inline",
9506
9509
  FULLSCREEN: "fullscreen"
9507
- }, so = /* @__PURE__ */ function(o) {
9510
+ }, ao = /* @__PURE__ */ function(o) {
9508
9511
  S(r, o);
9509
9512
  var a = x(r);
9510
9513
  function r() {
@@ -9544,11 +9547,11 @@ var Ye = {
9544
9547
  value: function() {
9545
9548
  return {
9546
9549
  pipIcon: {
9547
- icon: no,
9550
+ icon: ro,
9548
9551
  class: "xg-get-pip"
9549
9552
  },
9550
9553
  pipIconExit: {
9551
- icon: ro,
9554
+ icon: so,
9552
9555
  class: "xg-exit-pip"
9553
9556
  }
9554
9557
  };
@@ -9707,13 +9710,13 @@ var Ye = {
9707
9710
  }
9708
9711
  }]), r;
9709
9712
  }(je);
9710
- function ao() {
9713
+ function oo() {
9711
9714
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9712
9715
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
9713
9716
  </svg>
9714
9717
  `, "image/svg+xml").firstChild;
9715
9718
  }
9716
- var oo = /* @__PURE__ */ function(o) {
9719
+ var lo = /* @__PURE__ */ function(o) {
9717
9720
  S(r, o);
9718
9721
  var a = x(r);
9719
9722
  function r(t) {
@@ -9732,7 +9735,7 @@ var oo = /* @__PURE__ */ function(o) {
9732
9735
  key: "registerIcons",
9733
9736
  value: function() {
9734
9737
  return {
9735
- playNext: ao
9738
+ playNext: oo
9736
9739
  };
9737
9740
  }
9738
9741
  }, {
@@ -9781,11 +9784,11 @@ var oo = /* @__PURE__ */ function(o) {
9781
9784
  };
9782
9785
  }
9783
9786
  }]), r;
9784
- }(U), qn = { exports: {} };
9787
+ }(U), Zn = { exports: {} };
9785
9788
  (function(o, a) {
9786
9789
  (function(r, t) {
9787
9790
  o.exports = t();
9788
- })(Zr, function() {
9791
+ })(Jr, function() {
9789
9792
  return function r(t, e, i) {
9790
9793
  var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(A) {
9791
9794
  return String(A);
@@ -9853,10 +9856,10 @@ Use Save As... to download, then click back to return to this page.`) && (locati
9853
9856
  return !0;
9854
9857
  };
9855
9858
  });
9856
- })(qn);
9857
- var lo = qn.exports;
9858
- const uo = /* @__PURE__ */ li(lo);
9859
- function co() {
9859
+ })(Zn);
9860
+ var uo = Zn.exports;
9861
+ const co = /* @__PURE__ */ li(uo);
9862
+ function fo() {
9860
9863
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
9861
9864
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9862
9865
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -9873,7 +9876,7 @@ function co() {
9873
9876
  </svg>
9874
9877
  `, "image/svg+xml").firstChild;
9875
9878
  }
9876
- var fo = /* @__PURE__ */ function(o) {
9879
+ var ho = /* @__PURE__ */ function(o) {
9877
9880
  S(r, o);
9878
9881
  var a = x(r);
9879
9882
  function r(t) {
@@ -9884,7 +9887,7 @@ var fo = /* @__PURE__ */ function(o) {
9884
9887
  var n = e.playerConfig.url, s = "";
9885
9888
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
9886
9889
  var l = e.getAbsoluteURL(s);
9887
- uo(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9890
+ co(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9888
9891
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
9889
9892
  }, 300);
9890
9893
  }
@@ -9903,7 +9906,7 @@ var fo = /* @__PURE__ */ function(o) {
9903
9906
  key: "registerIcons",
9904
9907
  value: function() {
9905
9908
  return {
9906
- download: co
9909
+ download: fo
9907
9910
  };
9908
9911
  }
9909
9912
  }, {
@@ -9945,7 +9948,7 @@ var fo = /* @__PURE__ */ function(o) {
9945
9948
  };
9946
9949
  }
9947
9950
  }]), r;
9948
- }(je), ho = /* @__PURE__ */ function(o) {
9951
+ }(je), go = /* @__PURE__ */ function(o) {
9949
9952
  S(r, o);
9950
9953
  var a = x(r);
9951
9954
  function r() {
@@ -10000,7 +10003,7 @@ var fo = /* @__PURE__ */ function(o) {
10000
10003
  e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
10001
10004
  var n = this.config;
10002
10005
  this.shot(n.width, n.height).then(function(s) {
10003
- i.emit(Fn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10006
+ i.emit(Bn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10004
10007
  });
10005
10008
  }
10006
10009
  }, {
@@ -10071,7 +10074,7 @@ var fo = /* @__PURE__ */ function(o) {
10071
10074
  };
10072
10075
  }
10073
10076
  }]), r;
10074
- }(je), go = /* @__PURE__ */ function() {
10077
+ }(je), po = /* @__PURE__ */ function() {
10075
10078
  function o(a) {
10076
10079
  T(this, o), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
10077
10080
  var r = this.config.maxHeight;
@@ -10151,7 +10154,7 @@ var fo = /* @__PURE__ */ function(o) {
10151
10154
  CLICK: "click",
10152
10155
  HOVER: "hover"
10153
10156
  };
10154
- function po(o, a) {
10157
+ function vo(o, a) {
10155
10158
  return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10156
10159
  }
10157
10160
  var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
@@ -10265,7 +10268,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10265
10268
  var c = {
10266
10269
  config: {
10267
10270
  data: e || [],
10268
- className: po(s.listType, s.position),
10271
+ className: vo(s.listType, s.position),
10269
10272
  onItemClick: function(y, m) {
10270
10273
  n.onItemClick(y, m);
10271
10274
  },
@@ -10275,7 +10278,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10275
10278
  };
10276
10279
  if (this.config.isShowIcon) {
10277
10280
  var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === me.MIDDLE ? d - 50 : d;
10278
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new go(c), this.changeCurrentText(), this.show();
10281
+ g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new po(c), this.changeCurrentText(), this.show();
10279
10282
  }
10280
10283
  this._resizeList();
10281
10284
  }
@@ -10326,7 +10329,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10326
10329
  };
10327
10330
  }
10328
10331
  }]), r;
10329
- }(U), vo = /* @__PURE__ */ function(o) {
10332
+ }(U), mo = /* @__PURE__ */ function(o) {
10330
10333
  S(r, o);
10331
10334
  var a = x(r);
10332
10335
  function r(t) {
@@ -10427,7 +10430,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10427
10430
  });
10428
10431
  }
10429
10432
  }]), r;
10430
- }(St), mo = /* @__PURE__ */ function(o) {
10433
+ }(St), yo = /* @__PURE__ */ function(o) {
10431
10434
  S(r, o);
10432
10435
  var a = x(r);
10433
10436
  function r(t) {
@@ -10449,7 +10452,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10449
10452
  key: "afterCreate",
10450
10453
  value: function() {
10451
10454
  var e = this;
10452
- L(I(r.prototype), "afterCreate", this).call(this), this.on(Pn, function() {
10455
+ L(I(r.prototype), "afterCreate", this).call(this), this.on(Ln, function() {
10453
10456
  e.curValue !== e.player.playbackRate && e.renderItemList();
10454
10457
  }), this.renderItemList();
10455
10458
  }
@@ -10520,19 +10523,19 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10520
10523
  }
10521
10524
  }]), r;
10522
10525
  }(St);
10523
- function yo() {
10526
+ function _o() {
10524
10527
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10525
10528
  <path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
10526
10529
  </svg>
10527
10530
  `, "image/svg+xml").firstChild;
10528
10531
  }
10529
- function _o() {
10532
+ function Co() {
10530
10533
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10531
10534
  <path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
10532
10535
  </svg>
10533
10536
  `, "image/svg+xml").firstChild;
10534
10537
  }
10535
- var hn = /* @__PURE__ */ function(o) {
10538
+ var dn = /* @__PURE__ */ function(o) {
10536
10539
  S(r, o);
10537
10540
  var a = x(r);
10538
10541
  function r() {
@@ -10586,11 +10589,11 @@ var hn = /* @__PURE__ */ function(o) {
10586
10589
  value: function() {
10587
10590
  return {
10588
10591
  cssFullscreen: {
10589
- icon: yo,
10592
+ icon: _o,
10590
10593
  class: "xg-get-cssfull"
10591
10594
  },
10592
10595
  exitCssFullscreen: {
10593
- icon: _o,
10596
+ icon: Co,
10594
10597
  class: "xg-exit-cssfull"
10595
10598
  }
10596
10599
  };
@@ -10626,7 +10629,7 @@ var hn = /* @__PURE__ */ function(o) {
10626
10629
  };
10627
10630
  }
10628
10631
  }]), r;
10629
- }(je), Co = /* @__PURE__ */ function(o) {
10632
+ }(je), ko = /* @__PURE__ */ function(o) {
10630
10633
  S(r, o);
10631
10634
  var a = x(r);
10632
10635
  function r() {
@@ -10687,7 +10690,7 @@ var hn = /* @__PURE__ */ function(o) {
10687
10690
  return "error";
10688
10691
  }
10689
10692
  }]), r;
10690
- }(U), ko = /* @__PURE__ */ function(o) {
10693
+ }(U), bo = /* @__PURE__ */ function(o) {
10691
10694
  S(r, o);
10692
10695
  var a = x(r);
10693
10696
  function r() {
@@ -10765,7 +10768,7 @@ var hn = /* @__PURE__ */ function(o) {
10765
10768
  };
10766
10769
  }
10767
10770
  }]), r;
10768
- }(U), dn = {
10771
+ }(U), gn = {
10769
10772
  time: 0,
10770
10773
  text: "",
10771
10774
  id: 1,
@@ -10775,12 +10778,12 @@ var hn = /* @__PURE__ */ function(o) {
10775
10778
  width: 6,
10776
10779
  height: 6
10777
10780
  };
10778
- function Zn(o) {
10779
- Object.keys(dn).map(function(a) {
10780
- o[a] === void 0 && (o[a] = dn[a]);
10781
+ function Jn(o) {
10782
+ Object.keys(gn).map(function(a) {
10783
+ o[a] === void 0 && (o[a] = gn[a]);
10781
10784
  });
10782
10785
  }
10783
- var gn = {
10786
+ var pn = {
10784
10787
  _updateDotDom: function(a, r) {
10785
10788
  if (r) {
10786
10789
  var t = this.calcuPosition(a.time, a.duration), e = a.style || {};
@@ -10797,7 +10800,7 @@ var gn = {
10797
10800
  },
10798
10801
  createDot: function(a) {
10799
10802
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
10800
- if (t && (r && (Zn(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
10803
+ if (t && (r && (Jn(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
10801
10804
  var e = this.calcuPosition(a.time, a.duration), i = a.style || {};
10802
10805
  i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
10803
10806
  var n = "xgspot_".concat(a.id, " xgplayer-spot");
@@ -10917,14 +10920,14 @@ var gn = {
10917
10920
  return r.find('xg-spot[data-id="'.concat(a, '"]'));
10918
10921
  }
10919
10922
  };
10920
- function bo(o) {
10923
+ function wo(o) {
10921
10924
  var a = o.config, r = o.player;
10922
- Object.keys(gn).map(function(e) {
10923
- o[e] = gn[e].bind(o);
10925
+ Object.keys(pn).map(function(e) {
10926
+ o[e] = pn[e].bind(o);
10924
10927
  });
10925
10928
  var t = r.config.progressDot || a.ispots || [];
10926
10929
  o._ispots = t.map(function(e) {
10927
- return Zn(e), e;
10930
+ return Jn(e), e;
10928
10931
  }), o.ispotsInit = !1, o.playerSize = {
10929
10932
  left: r.sizeInfo.left,
10930
10933
  width: r.sizeInfo.width
@@ -10941,7 +10944,7 @@ var Xe = {
10941
10944
  click: "onProgressClick",
10942
10945
  mouseover: "onProgressMouseOver",
10943
10946
  mouseenter: "onProgressMouseOver"
10944
- }, wo = /* @__PURE__ */ function(o) {
10947
+ }, To = /* @__PURE__ */ function(o) {
10945
10948
  S(r, o);
10946
10949
  var a = x(r);
10947
10950
  function r(t) {
@@ -10992,7 +10995,7 @@ var Xe = {
10992
10995
  n.seekTime && e.player.seek(n.seekTime);
10993
10996
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10994
10997
  e.setTimeContent(f.format(i));
10995
- }), bo(this), this.on(Me, function() {
10998
+ }), wo(this), this.on(Me, function() {
10996
10999
  e.show();
10997
11000
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
10998
11001
  }
@@ -11216,7 +11219,7 @@ var Xe = {
11216
11219
  };
11217
11220
  }
11218
11221
  }]), r;
11219
- }(U), To = /* @__PURE__ */ function(o) {
11222
+ }(U), Eo = /* @__PURE__ */ function(o) {
11220
11223
  S(r, o);
11221
11224
  var a = x(r);
11222
11225
  function r(t) {
@@ -11354,7 +11357,7 @@ var Xe = {
11354
11357
  function $t(o) {
11355
11358
  return o ? "background:".concat(o, ";") : "";
11356
11359
  }
11357
- var Eo = /* @__PURE__ */ function(o) {
11360
+ var So = /* @__PURE__ */ function(o) {
11358
11361
  S(r, o);
11359
11362
  var a = x(r);
11360
11363
  function r() {
@@ -11442,14 +11445,14 @@ var Eo = /* @__PURE__ */ function(o) {
11442
11445
  FRAME_RATE: "framerate",
11443
11446
  POSTER: "poster"
11444
11447
  };
11445
- function So() {
11448
+ function xo() {
11446
11449
  try {
11447
11450
  return parseInt(window.performance.now(), 10);
11448
11451
  } catch {
11449
11452
  return (/* @__PURE__ */ new Date()).getTime();
11450
11453
  }
11451
11454
  }
11452
- function xo() {
11455
+ function Io() {
11453
11456
  try {
11454
11457
  var o = document.createElement("canvas").getContext;
11455
11458
  return !!o;
@@ -11457,7 +11460,7 @@ function xo() {
11457
11460
  return !1;
11458
11461
  }
11459
11462
  }
11460
- var dt = null, Io = /* @__PURE__ */ function(o) {
11463
+ var dt = null, Po = /* @__PURE__ */ function(o) {
11461
11464
  S(r, o);
11462
11465
  var a = x(r);
11463
11466
  function r() {
@@ -11478,7 +11481,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11478
11481
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
11479
11482
  }
11480
11483
  }), _(v(t), "start", function(s, l) {
11481
- var u = t.player.video, c = So(), h = t.checkVideoIsSupport(u);
11484
+ var u = t.player.video, c = xo(), h = t.checkVideoIsSupport(u);
11482
11485
  !h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
11483
11486
  }), _(v(t), "stop", function() {
11484
11487
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
@@ -11651,7 +11654,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11651
11654
  }, {
11652
11655
  key: "isSupport",
11653
11656
  get: function() {
11654
- return typeof dt == "boolean" || (dt = xo()), dt;
11657
+ return typeof dt == "boolean" || (dt = Io()), dt;
11655
11658
  }
11656
11659
  }, {
11657
11660
  key: "supportCanvasFilter",
@@ -11659,7 +11662,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11659
11662
  return !(R.browser === "safari" || R.browser === "firefox");
11660
11663
  }
11661
11664
  }]), r;
11662
- }(U), Po = {
11665
+ }(U), Lo = {
11663
11666
  LANG: "zh-cn",
11664
11667
  TEXT: {
11665
11668
  ERROR_TYPES: {
@@ -11734,7 +11737,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11734
11737
  FORWARD: "快进中",
11735
11738
  LIVE_TIP: "直播"
11736
11739
  }
11737
- }, rt = "info", Xt = jn, Lo = /* @__PURE__ */ function(o) {
11740
+ }, rt = "info", Xt = Wn, Ao = /* @__PURE__ */ function(o) {
11738
11741
  S(r, o);
11739
11742
  var a = x(r);
11740
11743
  function r() {
@@ -11878,7 +11881,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11878
11881
  return {};
11879
11882
  }
11880
11883
  }]), r;
11881
- }(Oe), Jn = /* @__PURE__ */ function(o) {
11884
+ }(Oe), Qn = /* @__PURE__ */ function(o) {
11882
11885
  S(r, o);
11883
11886
  var a = x(r);
11884
11887
  function r() {
@@ -11967,8 +11970,8 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11967
11970
  }
11968
11971
  }]), r;
11969
11972
  }(U);
11970
- Jn.BROWSER_GAP_TOLERANCE = 1e-3;
11971
- var Ao = /* @__PURE__ */ function(o) {
11973
+ Qn.BROWSER_GAP_TOLERANCE = 1e-3;
11974
+ var Do = /* @__PURE__ */ function(o) {
11972
11975
  S(r, o);
11973
11976
  var a = x(r);
11974
11977
  function r() {
@@ -12014,7 +12017,7 @@ var Ao = /* @__PURE__ */ function(o) {
12014
12017
  };
12015
12018
  }
12016
12019
  }]), r;
12017
- }(U), Ze = "cdn", gt = ["cdn"], Do = /* @__PURE__ */ function(o) {
12020
+ }(U), Ze = "cdn", gt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
12018
12021
  S(r, o);
12019
12022
  var a = x(r);
12020
12023
  function r() {
@@ -12140,7 +12143,7 @@ var Ao = /* @__PURE__ */ function(o) {
12140
12143
  };
12141
12144
  }
12142
12145
  }]), r;
12143
- }(U), Ro = /* @__PURE__ */ function(o) {
12146
+ }(U), Oo = /* @__PURE__ */ function(o) {
12144
12147
  S(r, o);
12145
12148
  var a = x(r);
12146
12149
  function r() {
@@ -12207,7 +12210,7 @@ var Ao = /* @__PURE__ */ function(o) {
12207
12210
  totalVideoFrames: i,
12208
12211
  droppedVideoFrames: n,
12209
12212
  checkInterval: s
12210
- }), this._currentStuckCount >= this.config.stuckCount && (this.emit(Wn, this._payload), this._reset())) : this._reset());
12213
+ }), this._currentStuckCount >= this.config.stuckCount && (this.emit(Gn, this._payload), this._reset())) : this._reset());
12211
12214
  }
12212
12215
  }
12213
12216
  }, {
@@ -12250,24 +12253,24 @@ var Ao = /* @__PURE__ */ function(o) {
12250
12253
  }
12251
12254
  }]), r;
12252
12255
  }(U);
12253
- Qe.use(Po);
12254
- var Oo = /* @__PURE__ */ E(function o(a, r) {
12256
+ Qe.use(Lo);
12257
+ var Mo = /* @__PURE__ */ E(function o(a, r) {
12255
12258
  var t, e, i;
12256
12259
  T(this, o);
12257
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [qa, za, Eo, wo, Xa], u = [].concat(l, [ja, $a, io, oo, vo, mo, fo, ho, eo, so]), c = [ba, wa, Ea, Ha, Sa, Co, ko, To, La];
12258
- this.plugins = [Lo, Ca].concat(de(u), c, [Jn, Ao]);
12260
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Za, ja, So, To, qa], u = [].concat(l, [Wa, Xa, no, lo, mo, yo, ho, go, to, ao]), c = [wa, Ta, Sa, Ua, xa, ko, bo, Eo, Aa];
12261
+ this.plugins = [Ao, ka].concat(de(u), c, [Qn, Do]);
12259
12262
  var h = n ? "mobile" : R.device;
12260
12263
  switch (h) {
12261
12264
  case "pc":
12262
- (t = this.plugins).push.apply(t, [cn, Kt, hn, Do, Ro]);
12265
+ (t = this.plugins).push.apply(t, [fn, Kt, dn, Ro, Oo]);
12263
12266
  break;
12264
12267
  case "mobile":
12265
- (e = this.plugins).push.apply(e, [Na]);
12268
+ (e = this.plugins).push.apply(e, [Fa]);
12266
12269
  break;
12267
12270
  default:
12268
- (i = this.plugins).push.apply(i, [cn, Kt, hn]);
12271
+ (i = this.plugins).push.apply(i, [fn, Kt, dn]);
12269
12272
  }
12270
- (R.os.isIpad || h === "pc") && this.plugins.push(Io), R.os.isIpad && this.plugins.push(Kt), this.ignores = [], this.i18n = [];
12273
+ (R.os.isIpad || h === "pc") && this.plugins.push(Po), R.os.isIpad && this.plugins.push(Kt), this.ignores = [], this.i18n = [];
12271
12274
  }), ge = /* @__PURE__ */ function(o) {
12272
12275
  S(r, o);
12273
12276
  var a = x(r);
@@ -12276,17 +12279,17 @@ var Oo = /* @__PURE__ */ E(function o(a, r) {
12276
12279
  }
12277
12280
  return E(r);
12278
12281
  }(Dt);
12279
- _(ge, "defaultPreset", Oo);
12282
+ _(ge, "defaultPreset", Mo);
12280
12283
  _(ge, "Util", f);
12281
12284
  _(ge, "Sniffer", R);
12282
12285
  _(ge, "Errors", mt);
12283
- _(ge, "Events", $s);
12286
+ _(ge, "Events", Xs);
12284
12287
  _(ge, "Plugin", U);
12285
12288
  _(ge, "BasePlugin", Oe);
12286
12289
  _(ge, "I18N", Qe);
12287
12290
  _(ge, "STATE_CLASS", C);
12288
- _(ge, "InstManager", $n);
12289
- const Mo = ["id"], No = /* @__PURE__ */ Q({
12291
+ _(ge, "InstManager", Xn);
12292
+ const No = ["id"], Fo = /* @__PURE__ */ Q({
12290
12293
  name: "ElImageViewer",
12291
12294
  __name: "Player",
12292
12295
  props: /* @__PURE__ */ vt({
@@ -12315,7 +12318,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12315
12318
  }, ["update:modelValue"]),
12316
12319
  setup(o, { emit: a }) {
12317
12320
  let r = null;
12318
- const t = o, { cLoadUrl: e } = Nr(t), i = J(() => Qt(e.value, t.url)), n = {
12321
+ const t = o, { cLoadUrl: e } = Fr(t), i = J(() => Qt(e.value, t.url)), n = {
12319
12322
  width: "100%",
12320
12323
  height: "100%",
12321
12324
  // 是否自动播放
@@ -12336,7 +12339,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12336
12339
  }, s = J(() => ({
12337
12340
  ...n,
12338
12341
  ...t.config
12339
- })), l = a, u = ai(o, "modelValue"), c = mn(), h = yn("image-viewer");
12342
+ })), l = a, u = ai(o, "modelValue"), c = yn(), h = _n("image-viewer");
12340
12343
  function d() {
12341
12344
  l("close"), u.value = !1, r.destroy();
12342
12345
  }
@@ -12350,11 +12353,11 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12350
12353
  });
12351
12354
  }), (g, p) => {
12352
12355
  const y = pt("el-icon");
12353
- return u.value ? (N(), De(pn, {
12356
+ return u.value ? (N(), De(vn, {
12354
12357
  key: 0,
12355
12358
  to: "body"
12356
12359
  }, [
12357
- K(vn, {
12360
+ K(mn, {
12358
12361
  name: "viewer-fade",
12359
12362
  appear: ""
12360
12363
  }, {
@@ -12384,7 +12387,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12384
12387
  class: Y(P(h).e("canvas"))
12385
12388
  },
12386
12389
  [
12387
- j("div", { id: P(c) }, null, 8, Mo),
12390
+ j("div", { id: P(c) }, null, 8, No),
12388
12391
  ae(" CLOSE "),
12389
12392
  j(
12390
12393
  "span",
@@ -12395,7 +12398,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12395
12398
  [
12396
12399
  K(y, { onClick: d }, {
12397
12400
  default: Z(() => [
12398
- K(P(_n))
12401
+ K(P(Cn))
12399
12402
  ]),
12400
12403
  _: 1
12401
12404
  /* STABLE */
@@ -12421,7 +12424,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12421
12424
  };
12422
12425
  }
12423
12426
  });
12424
- const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(Fo), Ho = /* @__PURE__ */ Q({
12427
+ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(Bo), Uo = /* @__PURE__ */ Q({
12425
12428
  __name: "IkPreviewFileDialog",
12426
12429
  props: /* @__PURE__ */ vt({
12427
12430
  file: {
@@ -12464,7 +12467,7 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12464
12467
  suffix: "suffix",
12465
12468
  size: "fileSize",
12466
12469
  ...a.field
12467
- })), e = Ce(null), i = Ce(null), n = hr({
12470
+ })), e = Ce(null), i = Ce(null), n = dr({
12468
12471
  image: !1,
12469
12472
  office: !1,
12470
12473
  video: !1
@@ -12495,13 +12498,13 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12495
12498
  }
12496
12499
  },
12497
12500
  document: {
12498
- key: mn(),
12501
+ key: yn(),
12499
12502
  title: B,
12500
12503
  url: Qt(a.loadUrl, w),
12501
12504
  fileType: b,
12502
12505
  ...((m = a.onlyOfficeConfig) == null ? void 0 : m.document) || {}
12503
12506
  },
12504
- documentType: mr(b)
12507
+ documentType: yr(b)
12505
12508
  };
12506
12509
  return;
12507
12510
  }
@@ -12523,7 +12526,7 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12523
12526
  Jt,
12524
12527
  { key: 0 },
12525
12528
  [
12526
- (h = i.value) != null && h.url && n.image ? (N(), De(P(ks), {
12529
+ (h = i.value) != null && h.url && n.image ? (N(), De(P(bs), {
12527
12530
  key: 0,
12528
12531
  onClose: c[0] || (c[0] = (p) => l()),
12529
12532
  ref: "previewImgRef",
@@ -12533,12 +12536,12 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12533
12536
  }, null, 8, ["url-list"])) : ae("v-if", !0),
12534
12537
  ae(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
12535
12538
  ae(" 文档类 "),
12536
- K(P(Bo), {
12539
+ K(P(Ho), {
12537
12540
  modelValue: n.video,
12538
12541
  "onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
12539
12542
  url: (g = i.value) == null ? void 0 : g.url
12540
12543
  }, null, 8, ["modelValue", "url"]),
12541
- K(P(qr), {
12544
+ K(P(Zr), {
12542
12545
  modelValue: n.office,
12543
12546
  "onUpdate:modelValue": c[2] || (c[2] = (p) => n.office = p),
12544
12547
  draggable: "",
@@ -12556,7 +12559,7 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12556
12559
  default: Z(() => {
12557
12560
  var p;
12558
12561
  return [
12559
- K(P(ss), {
12562
+ K(P(as), {
12560
12563
  "config-options": e.value,
12561
12564
  "document-server-url": ((p = o.onlyOfficeConfig) == null ? void 0 : p.serverUrl) || o.onlyofficeServer
12562
12565
  }, null, 8, ["config-options", "document-server-url"])
@@ -12572,8 +12575,8 @@ const Fo = /* @__PURE__ */ xt(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12572
12575
  };
12573
12576
  }
12574
12577
  });
12575
- const jo = et(Ho);
12578
+ const Wo = et(Uo);
12576
12579
  export {
12577
- jo as IkPreviewFileDialog,
12578
- jo as default
12580
+ Wo as IkPreviewFileDialog,
12581
+ Wo as default
12579
12582
  };